mdjournal 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-BgIfGW7c.js +399 -0
- package/dist/client/dist/assets/index-BgIfGW7c.js +399 -0
- package/dist/client/dist/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/dist/packages/contract/mdjournal/schemas/types.d.ts +2 -2
- package/dist/packages/contract/mdjournal/schemas/types.d.ts.map +1 -1
- package/dist/packages/contract/mdjournal/schemas/validators.d.ts +2 -4
- package/dist/packages/contract/mdjournal/schemas/validators.d.ts.map +1 -1
- package/dist/packages/contract/mdjournal/schemas/validators.js +1 -6
- package/dist/packages/contract/mdjournal/schemas/validators.js.map +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-wglmnVmW.js +0 -402
- package/dist/client/dist/assets/index-wglmnVmW.js +0 -402
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
function VP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function Ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iy={exports:{}},Dc={};var mw;function FP(){if(mw)return Dc;mw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var c=null;if(s!==void 0&&(c=""+s),a.key!==void 0&&(c=""+a.key),"key"in a){s={};for(var d in a)d!=="key"&&(s[d]=a[d])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:s}}return Dc.Fragment=t,Dc.jsx=n,Dc.jsxs=n,Dc}var pw;function kP(){return pw||(pw=1,iy.exports=FP()),iy.exports}var U=kP(),ly={exports:{}},Nt={};var gw;function WP(){if(gw)return Nt;gw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,C={};function x(A,z,k){this.props=A,this.context=z,this.refs=C,this.updater=k||b}x.prototype.isReactComponent={},x.prototype.setState=function(A,z){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,z,"setState")},x.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=x.prototype;function w(A,z,k){this.props=A,this.context=z,this.refs=C,this.updater=k||b}var E=w.prototype=new R;E.constructor=w,$(E,x.prototype),E.isPureReactComponent=!0;var T=Array.isArray;function N(){}var O={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function B(A,z,k){var X=k.ref;return{$$typeof:e,type:A,key:z,ref:X!==void 0?X:null,props:k}}function L(A,z){return B(A.type,z,A.props)}function V(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function G(A){var z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(k){return z[k]})}var Y=/\/+/g;function q(A,z){return typeof A=="object"&&A!==null&&A.key!=null?G(""+A.key):z.toString(36)}function H(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(N,N):(A.status="pending",A.then(function(z){A.status==="pending"&&(A.status="fulfilled",A.value=z)},function(z){A.status==="pending"&&(A.status="rejected",A.reason=z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,z,k,X,Q){var Z=typeof A;(Z==="undefined"||Z==="boolean")&&(A=null);var J=!1;if(A===null)J=!0;else switch(Z){case"bigint":case"string":case"number":J=!0;break;case"object":switch(A.$$typeof){case e:case t:J=!0;break;case g:return J=A._init,_(J(A._payload),z,k,X,Q)}}if(J)return Q=Q(A),J=X===""?"."+q(A,0):X,T(Q)?(k="",J!=null&&(k=J.replace(Y,"$&/")+"/"),_(Q,z,k,"",function(re){return re})):Q!=null&&(V(Q)&&(Q=L(Q,k+(Q.key==null||A&&A.key===Q.key?"":(""+Q.key).replace(Y,"$&/")+"/")+J)),z.push(Q)),1;J=0;var oe=X===""?".":X+":";if(T(A))for(var ne=0;ne<A.length;ne++)X=A[ne],Z=oe+q(X,ne),J+=_(X,z,k,Z,Q);else if(ne=v(A),typeof ne=="function")for(A=ne.call(A),ne=0;!(X=A.next()).done;)X=X.value,Z=oe+q(X,ne++),J+=_(X,z,k,Z,Q);else if(Z==="object"){if(typeof A.then=="function")return _(H(A),z,k,X,Q);throw z=String(A),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return J}function j(A,z,k){if(A==null)return A;var X=[],Q=0;return _(A,X,"","",function(Z){return z.call(k,Z,Q++)}),X}function I(A){if(A._status===-1){var z=A._result;z=z(),z.then(function(k){(A._status===0||A._status===-1)&&(A._status=1,A._result=k)},function(k){(A._status===0||A._status===-1)&&(A._status=2,A._result=k)}),A._status===-1&&(A._status=0,A._result=z)}if(A._status===1)return A._result.default;throw A._result}var D=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},F={map:j,forEach:function(A,z,k){j(A,function(){z.apply(this,arguments)},k)},count:function(A){var z=0;return j(A,function(){z++}),z},toArray:function(A){return j(A,function(z){return z})||[]},only:function(A){if(!V(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Nt.Activity=h,Nt.Children=F,Nt.Component=x,Nt.Fragment=n,Nt.Profiler=a,Nt.PureComponent=w,Nt.StrictMode=r,Nt.Suspense=f,Nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Nt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return O.H.useMemoCache(A)}},Nt.cache=function(A){return function(){return A.apply(null,arguments)}},Nt.cacheSignal=function(){return null},Nt.cloneElement=function(A,z,k){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var X=$({},A.props),Q=A.key;if(z!=null)for(Z in z.key!==void 0&&(Q=""+z.key),z)!P.call(z,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&z.ref===void 0||(X[Z]=z[Z]);var Z=arguments.length-2;if(Z===1)X.children=k;else if(1<Z){for(var J=Array(Z),oe=0;oe<Z;oe++)J[oe]=arguments[oe+2];X.children=J}return B(A.type,Q,X)},Nt.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},Nt.createElement=function(A,z,k){var X,Q={},Z=null;if(z!=null)for(X in z.key!==void 0&&(Z=""+z.key),z)P.call(z,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(Q[X]=z[X]);var J=arguments.length-2;if(J===1)Q.children=k;else if(1<J){for(var oe=Array(J),ne=0;ne<J;ne++)oe[ne]=arguments[ne+2];Q.children=oe}if(A&&A.defaultProps)for(X in J=A.defaultProps,J)Q[X]===void 0&&(Q[X]=J[X]);return B(A,Z,Q)},Nt.createRef=function(){return{current:null}},Nt.forwardRef=function(A){return{$$typeof:d,render:A}},Nt.isValidElement=V,Nt.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:I}},Nt.memo=function(A,z){return{$$typeof:m,type:A,compare:z===void 0?null:z}},Nt.startTransition=function(A){var z=O.T,k={};O.T=k;try{var X=A(),Q=O.S;Q!==null&&Q(k,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(N,D)}catch(Z){D(Z)}finally{z!==null&&k.types!==null&&(z.types=k.types),O.T=z}},Nt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Nt.use=function(A){return O.H.use(A)},Nt.useActionState=function(A,z,k){return O.H.useActionState(A,z,k)},Nt.useCallback=function(A,z){return O.H.useCallback(A,z)},Nt.useContext=function(A){return O.H.useContext(A)},Nt.useDebugValue=function(){},Nt.useDeferredValue=function(A,z){return O.H.useDeferredValue(A,z)},Nt.useEffect=function(A,z){return O.H.useEffect(A,z)},Nt.useEffectEvent=function(A){return O.H.useEffectEvent(A)},Nt.useId=function(){return O.H.useId()},Nt.useImperativeHandle=function(A,z,k){return O.H.useImperativeHandle(A,z,k)},Nt.useInsertionEffect=function(A,z){return O.H.useInsertionEffect(A,z)},Nt.useLayoutEffect=function(A,z){return O.H.useLayoutEffect(A,z)},Nt.useMemo=function(A,z){return O.H.useMemo(A,z)},Nt.useOptimistic=function(A,z){return O.H.useOptimistic(A,z)},Nt.useReducer=function(A,z,k){return O.H.useReducer(A,z,k)},Nt.useRef=function(A){return O.H.useRef(A)},Nt.useState=function(A){return O.H.useState(A)},Nt.useSyncExternalStore=function(A,z,k){return O.H.useSyncExternalStore(A,z,k)},Nt.useTransition=function(){return O.H.useTransition()},Nt.version="19.2.4",Nt}var hw;function xS(){return hw||(hw=1,ly.exports=WP()),ly.exports}var l=xS();const ie=Ra(l),qP=VP({__proto__:null,default:ie},[l]);var sy={exports:{}},jc={},cy={exports:{}},uy={};var yw;function YP(){return yw||(yw=1,(function(e){function t(_,j){var I=_.length;_.push(j);e:for(;0<I;){var D=I-1>>>1,F=_[D];if(0<a(F,j))_[D]=j,_[I]=F,I=D;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var j=_[0],I=_.pop();if(I!==j){_[0]=I;e:for(var D=0,F=_.length,A=F>>>1;D<A;){var z=2*(D+1)-1,k=_[z],X=z+1,Q=_[X];if(0>a(k,I))X<F&&0>a(Q,k)?(_[D]=Q,_[X]=I,D=X):(_[D]=k,_[z]=I,D=z);else if(X<F&&0>a(Q,I))_[D]=Q,_[X]=I,D=X;else break e}}return j}function a(_,j){var I=_.sortIndex-j.sortIndex;return I!==0?I:_.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],m=[],g=1,h=null,y=3,v=!1,b=!1,$=!1,C=!1,x=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function E(_){for(var j=n(m);j!==null;){if(j.callback===null)r(m);else if(j.startTime<=_)r(m),j.sortIndex=j.expirationTime,t(f,j);else break;j=n(m)}}function T(_){if($=!1,E(_),!b)if(n(f)!==null)b=!0,N||(N=!0,G());else{var j=n(m);j!==null&&H(T,j.startTime-_)}}var N=!1,O=-1,P=5,B=-1;function L(){return C?!0:!(e.unstable_now()-B<P)}function V(){if(C=!1,N){var _=e.unstable_now();B=_;var j=!0;try{e:{b=!1,$&&($=!1,R(O),O=-1),v=!0;var I=y;try{t:{for(E(_),h=n(f);h!==null&&!(h.expirationTime>_&&L());){var D=h.callback;if(typeof D=="function"){h.callback=null,y=h.priorityLevel;var F=D(h.expirationTime<=_);if(_=e.unstable_now(),typeof F=="function"){h.callback=F,E(_),j=!0;break t}h===n(f)&&r(f),E(_)}else r(f);h=n(f)}if(h!==null)j=!0;else{var A=n(m);A!==null&&H(T,A.startTime-_),j=!1}}break e}finally{h=null,y=I,v=!1}j=void 0}}finally{j?G():N=!1}}}var G;if(typeof w=="function")G=function(){w(V)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,q=Y.port2;Y.port1.onmessage=V,G=function(){q.postMessage(null)}}else G=function(){x(V,0)};function H(_,j){O=x(function(){_(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(_){switch(y){case 1:case 2:case 3:var j=3;break;default:j=y}var I=y;y=j;try{return _()}finally{y=I}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=y;y=_;try{return j()}finally{y=I}},e.unstable_scheduleCallback=function(_,j,I){var D=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?D+I:D):I=D,_){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=I+F,_={id:g++,callback:j,priorityLevel:_,startTime:I,expirationTime:F,sortIndex:-1},I>D?(_.sortIndex=I,t(m,_),n(f)===null&&_===n(m)&&($?(R(O),O=-1):$=!0,H(T,I-D))):(_.sortIndex=F,t(f,_),b||v||(b=!0,N||(N=!0,G()))),_},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(_){var j=y;return function(){var I=y;y=j;try{return _.apply(this,arguments)}finally{y=I}}}})(uy)),uy}var bw;function UP(){return bw||(bw=1,cy.exports=YP()),cy.exports}var dy={exports:{}},wr={};var vw;function GP(){if(vw)return wr;vw=1;var e=xS();function t(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(f,m,g){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:f,containerInfo:m,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wr.createPortal=function(f,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(f,m,null,g)},wr.flushSync=function(f){var m=c.T,g=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=m,r.p=g,r.d.f()}},wr.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(f,m))},wr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},wr.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var g=m.as,h=d(g,m.crossOrigin),y=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:v}):g==="script"&&r.d.X(f,{crossOrigin:h,integrity:y,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},wr.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=d(m.as,m.crossOrigin);r.d.M(f,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(f)},wr.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,h=d(g,m.crossOrigin);r.d.L(f,g,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},wr.preloadModule=function(f,m){if(typeof f=="string")if(m){var g=d(m.as,m.crossOrigin);r.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(f)},wr.requestFormReset=function(f){r.d.r(f)},wr.unstable_batchedUpdates=function(f,m){return f(m)},wr.useFormState=function(f,m,g){return c.H.useFormState(f,m,g)},wr.useFormStatus=function(){return c.H.useHostTransitionStatus()},wr.version="19.2.4",wr}var Sw;function i4(){if(Sw)return dy.exports;Sw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dy.exports=GP(),dy.exports}var Cw;function XP(){if(Cw)return jc;Cw=1;var e=UP(),t=xS(),n=i4();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var i=o,u=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(u=i.return),o=i.return;while(o)}return i.tag===3?u:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function d(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function m(o){var i=o.alternate;if(!i){if(i=s(o),i===null)throw Error(r(188));return i!==o?null:o}for(var u=o,p=i;;){var S=u.return;if(S===null)break;var M=S.alternate;if(M===null){if(p=S.return,p!==null){u=p;continue}break}if(S.child===M.child){for(M=S.child;M;){if(M===u)return f(S),o;if(M===p)return f(S),i;M=M.sibling}throw Error(r(188))}if(u.return!==p.return)u=S,p=M;else{for(var W=!1,ee=S.child;ee;){if(ee===u){W=!0,u=S,p=M;break}if(ee===p){W=!0,p=S,u=M;break}ee=ee.sibling}if(!W){for(ee=M.child;ee;){if(ee===u){W=!0,u=M,p=S;break}if(ee===p){W=!0,p=M,u=S;break}ee=ee.sibling}if(!W)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:i}function g(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=g(o),i!==null)return i;o=o.sibling}return null}var h=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function G(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var Y=Symbol.for("react.client.reference");function q(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Y?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case $:return"Fragment";case x:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case B:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case w:return o.displayName||"Context";case R:return(o._context.displayName||"Context")+".Consumer";case E:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case O:return i=o.displayName||null,i!==null?i:q(o.type)||"Memo";case P:i=o._payload,o=o._init;try{return q(o(i))}catch{}}return null}var H=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},D=[],F=-1;function A(o){return{current:o}}function z(o){0>F||(o.current=D[F],D[F]=null,F--)}function k(o,i){F++,D[F]=o.current,o.current=i}var X=A(null),Q=A(null),Z=A(null),J=A(null);function oe(o,i){switch(k(Z,i),k(Q,o),k(X,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?jx(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=jx(i),o=_x(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}z(X),k(X,o)}function ne(){z(X),z(Q),z(Z)}function re(o){o.memoizedState!==null&&k(J,o);var i=X.current,u=_x(i,o.type);i!==u&&(k(Q,o),k(X,u))}function ce(o){Q.current===o&&(z(X),z(Q)),J.current===o&&(z(J),Ic._currentValue=I)}var fe,le;function pe(o){if(fe===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);fe=i&&i[1]||"",le=-1<u.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+fe+o+le}var ae=!1;function se(o,i){if(!o||ae)return"";ae=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(i){var qe=function(){throw Error()};if(Object.defineProperty(qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(qe,[])}catch(Te){var Ee=Te}Reflect.construct(o,[],qe)}else{try{qe.call()}catch(Te){Ee=Te}o.call(qe.prototype)}}else{try{throw Error()}catch(Te){Ee=Te}(qe=o())&&typeof qe.catch=="function"&&qe.catch(function(){})}}catch(Te){if(Te&&Ee&&typeof Te.stack=="string")return[Te.stack,Ee.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=p.DetermineComponentFrameRoot(),W=M[0],ee=M[1];if(W&&ee){var ue=W.split(`
|
|
4
|
+
`),we=ee.split(`
|
|
5
|
+
`);for(S=p=0;p<ue.length&&!ue[p].includes("DetermineComponentFrameRoot");)p++;for(;S<we.length&&!we[S].includes("DetermineComponentFrameRoot");)S++;if(p===ue.length||S===we.length)for(p=ue.length-1,S=we.length-1;1<=p&&0<=S&&ue[p]!==we[S];)S--;for(;1<=p&&0<=S;p--,S--)if(ue[p]!==we[S]){if(p!==1||S!==1)do if(p--,S--,0>S||ue[p]!==we[S]){var je=`
|
|
6
|
+
`+ue[p].replace(" at new "," at ");return o.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",o.displayName)),je}while(1<=p&&0<=S);break}}}finally{ae=!1,Error.prepareStackTrace=u}return(u=o?o.displayName||o.name:"")?pe(u):""}function he(o,i){switch(o.tag){case 26:case 27:case 5:return pe(o.type);case 16:return pe("Lazy");case 13:return o.child!==i&&i!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return se(o.type,!1);case 11:return se(o.type.render,!1);case 1:return se(o.type,!0);case 31:return pe("Activity");default:return""}}function ge(o){try{var i="",u=null;do i+=he(o,u),u=o,o=o.return;while(o);return i}catch(p){return`
|
|
7
|
+
Error generating stack: `+p.message+`
|
|
8
|
+
`+p.stack}}var be=Object.prototype.hasOwnProperty,Ne=e.unstable_scheduleCallback,ve=e.unstable_cancelCallback,xe=e.unstable_shouldYield,de=e.unstable_requestPaint,Se=e.unstable_now,Me=e.unstable_getCurrentPriorityLevel,Ae=e.unstable_ImmediatePriority,Ie=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,Ze=e.unstable_LowPriority,He=e.unstable_IdlePriority,Ve=e.log,_e=e.unstable_setDisableYieldValue,Ue=null,Pe=null;function Ce(o){if(typeof Ve=="function"&&_e(o),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(Ue,o)}catch{}}var Fe=Math.clz32?Math.clz32:Xe,Je=Math.log,Be=Math.LN2;function Xe(o){return o>>>=0,o===0?32:31-(Je(o)/Be|0)|0}var Oe=256,Ke=262144,nt=4194304;function ot(o){var i=o&42;if(i!==0)return i;switch(o&-o){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function lt(o,i,u){var p=o.pendingLanes;if(p===0)return 0;var S=0,M=o.suspendedLanes,W=o.pingedLanes;o=o.warmLanes;var ee=p&134217727;return ee!==0?(p=ee&~M,p!==0?S=ot(p):(W&=ee,W!==0?S=ot(W):u||(u=ee&~o,u!==0&&(S=ot(u))))):(ee=p&~M,ee!==0?S=ot(ee):W!==0?S=ot(W):u||(u=p&~o,u!==0&&(S=ot(u)))),S===0?0:i!==0&&i!==S&&(i&M)===0&&(M=S&-S,u=i&-i,M>=u||M===32&&(u&4194048)!==0)?i:S}function Ct(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function $t(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ke(){var o=nt;return nt<<=1,(nt&62914560)===0&&(nt=4194304),o}function et(o){for(var i=[],u=0;31>u;u++)i.push(o);return i}function De(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function ze(o,i,u,p,S,M){var W=o.pendingLanes;o.pendingLanes=u,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=u,o.entangledLanes&=u,o.errorRecoveryDisabledLanes&=u,o.shellSuspendCounter=0;var ee=o.entanglements,ue=o.expirationTimes,we=o.hiddenUpdates;for(u=W&~u;0<u;){var je=31-Fe(u),qe=1<<je;ee[je]=0,ue[je]=-1;var Ee=we[je];if(Ee!==null)for(we[je]=null,je=0;je<Ee.length;je++){var Te=Ee[je];Te!==null&&(Te.lane&=-536870913)}u&=~qe}p!==0&&We(o,p,0),M!==0&&S===0&&o.tag!==0&&(o.suspendedLanes|=M&~(W&~i))}function We(o,i,u){o.pendingLanes|=i,o.suspendedLanes&=~i;var p=31-Fe(i);o.entangledLanes|=i,o.entanglements[p]=o.entanglements[p]|1073741824|u&261930}function Re(o,i){var u=o.entangledLanes|=i;for(o=o.entanglements;u;){var p=31-Fe(u),S=1<<p;S&i|o[p]&i&&(o[p]|=i),u&=~S}}function Ge(o,i){var u=i&-i;return u=(u&42)!==0?1:Qe(u),(u&(o.suspendedLanes|i))!==0?0:u}function Qe(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function at(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ut(){var o=j.p;return o!==0?o:(o=window.event,o===void 0?32:iw(o.type))}function _t(o,i){var u=j.p;try{return j.p=o,i()}finally{j.p=u}}var Rt=Math.random().toString(36).slice(2),Et="__reactFiber$"+Rt,mn="__reactProps$"+Rt,Tt="__reactContainer$"+Rt,pt="__reactEvents$"+Rt,tt="__reactListeners$"+Rt,mt="__reactHandles$"+Rt,Ot="__reactResources$"+Rt,Ut="__reactMarker$"+Rt;function rn(o){delete o[Et],delete o[mn],delete o[pt],delete o[tt],delete o[mt]}function Gt(o){var i=o[Et];if(i)return i;for(var u=o.parentNode;u;){if(i=u[Tt]||u[Et]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(o=Wx(o);o!==null;){if(u=o[Et])return u;o=Wx(o)}return i}o=u,u=o.parentNode}return null}function cn(o){if(o=o[Et]||o[Tt]){var i=o.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return o}return null}function pn(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function gr(o){var i=o[Ot];return i||(i=o[Ot]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function gn(o){o[Ut]=!0}var Cr=new Set,zn={};function Kn(o,i){Qn(o,i),Qn(o+"Capture",i)}function Qn(o,i){for(zn[o]=i,o=0;o<i.length;o++)Cr.add(i[o])}var Nr=RegExp("^[: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]*$"),bt={},Mn={};function In(o){return be.call(Mn,o)?!0:be.call(bt,o)?!1:Nr.test(o)?Mn[o]=!0:(bt[o]=!0,!1)}function $r(o,i,u){if(In(i))if(u===null)o.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var p=i.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+u)}}function xr(o,i,u){if(u===null)o.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+u)}}function Zn(o,i,u,p){if(p===null)o.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttributeNS(i,u,""+p)}}function An(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Eo(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ta(o,i,u){var p=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);if(!o.hasOwnProperty(i)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,M=p.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return S.call(this)},set:function(W){u=""+W,M.call(this,W)}}),Object.defineProperty(o,i,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(W){u=""+W},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Mo(o){if(!o._valueTracker){var i=Eo(o)?"checked":"value";o._valueTracker=ta(o,i,""+o[i])}}function Bo(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var u=i.getValue(),p="";return o&&(p=Eo(o)?o.checked?"true":"false":o.value),o=p,o!==u?(i.setValue(o),!0):!1}function Lo(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var rt=/[\n"\\]/g;function xt(o){return o.replace(rt,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function lo(o,i,u,p,S,M,W,ee){o.name="",W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?o.type=W:o.removeAttribute("type"),i!=null?W==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+An(i)):o.value!==""+An(i)&&(o.value=""+An(i)):W!=="submit"&&W!=="reset"||o.removeAttribute("value"),i!=null?Vo(o,W,An(i)):u!=null?Vo(o,W,An(u)):p!=null&&o.removeAttribute("value"),S==null&&M!=null&&(o.defaultChecked=!!M),S!=null&&(o.checked=S&&typeof S!="function"&&typeof S!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?o.name=""+An(ee):o.removeAttribute("name")}function Ia(o,i,u,p,S,M,W,ee){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(o.type=M),i!=null||u!=null){if(!(M!=="submit"&&M!=="reset"||i!=null)){Mo(o);return}u=u!=null?""+An(u):"",i=i!=null?""+An(i):u,ee||i===o.value||(o.value=i),o.defaultValue=i}p=p??S,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=ee?o.checked:!!p,o.defaultChecked=!!p,W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"&&(o.name=W),Mo(o)}function Vo(o,i,u){i==="number"&&Lo(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function Ur(o,i,u,p){if(o=o.options,i){i={};for(var S=0;S<u.length;S++)i["$"+u[S]]=!0;for(u=0;u<o.length;u++)S=i.hasOwnProperty("$"+o[u].value),o[u].selected!==S&&(o[u].selected=S),S&&p&&(o[u].defaultSelected=!0)}else{for(u=""+An(u),i=null,S=0;S<o.length;S++){if(o[S].value===u){o[S].selected=!0,p&&(o[S].defaultSelected=!0);return}i!==null||o[S].disabled||(i=o[S])}i!==null&&(i.selected=!0)}}function Pa(o,i,u){if(i!=null&&(i=""+An(i),i!==o.value&&(o.value=i),u==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=u!=null?""+An(u):""}function vl(o,i,u,p){if(i==null){if(p!=null){if(u!=null)throw Error(r(92));if(H(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),i=u}u=An(i),o.defaultValue=u,p=o.textContent,p===u&&p!==""&&p!==null&&(o.value=p),Mo(o)}function Fo(o,i){if(i){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=i;return}}o.textContent=i}var Mt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yt(o,i,u){var p=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":p?o.setProperty(i,u):typeof u!="number"||u===0||Mt.has(i)?i==="float"?o.cssFloat=u:o[i]=(""+u).trim():o[i]=u+"px"}function Jn(o,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||i!=null&&i.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var S in i)p=i[S],i.hasOwnProperty(S)&&u[S]!==p&&yt(o,S,p)}else for(var M in i)i.hasOwnProperty(M)&&yt(o,M,i[M])}function Ar(o){if(o.indexOf("-")===-1)return!1;switch(o){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 Sl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ag=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Cl(o){return ag.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Ro(){}var kt=null;function vt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var wt=null,un=null;function Fn(o){var i=cn(o);if(i&&(o=i.stateNode)){var u=o[mn]||null;e:switch(o=i.stateNode,i.type){case"input":if(lo(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+xt(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var p=u[i];if(p!==o&&p.form===o.form){var S=p[mn]||null;if(!S)throw Error(r(90));lo(p,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(i=0;i<u.length;i++)p=u[i],p.form===o.form&&Bo(p)}break e;case"textarea":Pa(o,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&Ur(o,!!u.multiple,i,!1)}}}var Us=!1;function j1(o,i,u){if(Us)return o(i,u);Us=!0;try{var p=o(i);return p}finally{if(Us=!1,(wt!==null||un!==null)&&(hf(),wt&&(i=wt,o=un,un=wt=null,Fn(i),o)))for(i=0;i<o.length;i++)Fn(o[i])}}function Gs(o,i){var u=o.stateNode;if(u===null)return null;var p=u[mn]||null;if(p===null)return null;u=p[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ig=!1;if(na)try{var Xs={};Object.defineProperty(Xs,"passive",{get:function(){ig=!0}}),window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{ig=!1}var za=null,lg=null,Od=null;function _1(){if(Od)return Od;var o,i=lg,u=i.length,p,S="value"in za?za.value:za.textContent,M=S.length;for(o=0;o<u&&i[o]===S[o];o++);var W=u-o;for(p=1;p<=W&&i[u-p]===S[M-p];p++);return Od=S.slice(o,1<p?1-p:void 0)}function Nd(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function Id(){return!0}function H1(){return!1}function Dr(o){function i(u,p,S,M,W){this._reactName=u,this._targetInst=S,this.type=p,this.nativeEvent=M,this.target=W,this.currentTarget=null;for(var ee in o)o.hasOwnProperty(ee)&&(u=o[ee],this[ee]=u?u(M):M[ee]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Id:H1,this.isPropagationStopped=H1,this}return h(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Id)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Id)},persist:function(){},isPersistent:Id}),i}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pd=Dr(Ci),Ks=h({},Ci,{view:0,detail:0}),B3=Dr(Ks),sg,cg,Qs,zd=h({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Qs&&(Qs&&o.type==="mousemove"?(sg=o.screenX-Qs.screenX,cg=o.screenY-Qs.screenY):cg=sg=0,Qs=o),sg)},movementY:function(o){return"movementY"in o?o.movementY:cg}}),B1=Dr(zd),L3=h({},zd,{dataTransfer:0}),V3=Dr(L3),F3=h({},Ks,{relatedTarget:0}),ug=Dr(F3),k3=h({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),W3=Dr(k3),q3=h({},Ci,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Y3=Dr(q3),U3=h({},Ci,{data:0}),L1=Dr(U3),G3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X3={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"},K3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q3(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=K3[o])?!!i[o]:!1}function dg(){return Q3}var Z3=h({},Ks,{key:function(o){if(o.key){var i=G3[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=Nd(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?X3[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dg,charCode:function(o){return o.type==="keypress"?Nd(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Nd(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),J3=Dr(Z3),eI=h({},zd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),V1=Dr(eI),tI=h({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dg}),nI=Dr(tI),rI=h({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),oI=Dr(rI),aI=h({},zd,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),iI=Dr(aI),lI=h({},Ci,{newState:0,oldState:0}),sI=Dr(lI),cI=[9,13,27,32],fg=na&&"CompositionEvent"in window,Zs=null;na&&"documentMode"in document&&(Zs=document.documentMode);var uI=na&&"TextEvent"in window&&!Zs,F1=na&&(!fg||Zs&&8<Zs&&11>=Zs),k1=" ",W1=!1;function q1(o,i){switch(o){case"keyup":return cI.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Y1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var $l=!1;function dI(o,i){switch(o){case"compositionend":return Y1(i);case"keypress":return i.which!==32?null:(W1=!0,k1);case"textInput":return o=i.data,o===k1&&W1?null:o;default:return null}}function fI(o,i){if($l)return o==="compositionend"||!fg&&q1(o,i)?(o=_1(),Od=lg=za=null,$l=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return F1&&i.locale!=="ko"?null:i.data;default:return null}}var mI={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 U1(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!mI[o.type]:i==="textarea"}function G1(o,i,u,p){wt?un?un.push(p):un=[p]:wt=p,i=xf(i,"onChange"),0<i.length&&(u=new Pd("onChange","change",null,u,p),o.push({event:u,listeners:i}))}var Js=null,ec=null;function pI(o){Nx(o,0)}function Ad(o){var i=pn(o);if(Bo(i))return o}function X1(o,i){if(o==="change")return i}var K1=!1;if(na){var mg;if(na){var pg="oninput"in document;if(!pg){var Q1=document.createElement("div");Q1.setAttribute("oninput","return;"),pg=typeof Q1.oninput=="function"}mg=pg}else mg=!1;K1=mg&&(!document.documentMode||9<document.documentMode)}function Z1(){Js&&(Js.detachEvent("onpropertychange",J1),ec=Js=null)}function J1(o){if(o.propertyName==="value"&&Ad(ec)){var i=[];G1(i,ec,o,vt(o)),j1(pI,i)}}function gI(o,i,u){o==="focusin"?(Z1(),Js=i,ec=u,Js.attachEvent("onpropertychange",J1)):o==="focusout"&&Z1()}function hI(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Ad(ec)}function yI(o,i){if(o==="click")return Ad(i)}function bI(o,i){if(o==="input"||o==="change")return Ad(i)}function vI(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Gr=typeof Object.is=="function"?Object.is:vI;function tc(o,i){if(Gr(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var u=Object.keys(o),p=Object.keys(i);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var S=u[p];if(!be.call(i,S)||!Gr(o[S],i[S]))return!1}return!0}function eC(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function tC(o,i){var u=eC(o);o=0;for(var p;u;){if(u.nodeType===3){if(p=o+u.textContent.length,o<=i&&p>=i)return{node:u,offset:i-o};o=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=eC(u)}}function nC(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?nC(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function rC(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Lo(o.document);i instanceof o.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)o=i.contentWindow;else break;i=Lo(o.document)}return i}function gg(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var SI=na&&"documentMode"in document&&11>=document.documentMode,xl=null,hg=null,nc=null,yg=!1;function oC(o,i,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;yg||xl==null||xl!==Lo(p)||(p=xl,"selectionStart"in p&&gg(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),nc&&tc(nc,p)||(nc=p,p=xf(hg,"onSelect"),0<p.length&&(i=new Pd("onSelect","select",null,i,u),o.push({event:i,listeners:p}),i.target=xl)))}function $i(o,i){var u={};return u[o.toLowerCase()]=i.toLowerCase(),u["Webkit"+o]="webkit"+i,u["Moz"+o]="moz"+i,u}var wl={animationend:$i("Animation","AnimationEnd"),animationiteration:$i("Animation","AnimationIteration"),animationstart:$i("Animation","AnimationStart"),transitionrun:$i("Transition","TransitionRun"),transitionstart:$i("Transition","TransitionStart"),transitioncancel:$i("Transition","TransitionCancel"),transitionend:$i("Transition","TransitionEnd")},bg={},aC={};na&&(aC=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function xi(o){if(bg[o])return bg[o];if(!wl[o])return o;var i=wl[o],u;for(u in i)if(i.hasOwnProperty(u)&&u in aC)return bg[o]=i[u];return o}var iC=xi("animationend"),lC=xi("animationiteration"),sC=xi("animationstart"),CI=xi("transitionrun"),$I=xi("transitionstart"),xI=xi("transitioncancel"),cC=xi("transitionend"),uC=new Map,vg="abort auxClick beforeToggle 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(" ");vg.push("scrollEnd");function To(o,i){uC.set(o,i),Kn(i,[o])}var Dd=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},so=[],El=0,Sg=0;function jd(){for(var o=El,i=Sg=El=0;i<o;){var u=so[i];so[i++]=null;var p=so[i];so[i++]=null;var S=so[i];so[i++]=null;var M=so[i];if(so[i++]=null,p!==null&&S!==null){var W=p.pending;W===null?S.next=S:(S.next=W.next,W.next=S),p.pending=S}M!==0&&dC(u,S,M)}}function _d(o,i,u,p){so[El++]=o,so[El++]=i,so[El++]=u,so[El++]=p,Sg|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Cg(o,i,u,p){return _d(o,i,u,p),Hd(o)}function wi(o,i){return _d(o,null,null,i),Hd(o)}function dC(o,i,u){o.lanes|=u;var p=o.alternate;p!==null&&(p.lanes|=u);for(var S=!1,M=o.return;M!==null;)M.childLanes|=u,p=M.alternate,p!==null&&(p.childLanes|=u),M.tag===22&&(o=M.stateNode,o===null||o._visibility&1||(S=!0)),o=M,M=M.return;return o.tag===3?(M=o.stateNode,S&&i!==null&&(S=31-Fe(u),o=M.hiddenUpdates,p=o[S],p===null?o[S]=[i]:p.push(i),i.lane=u|536870912),M):null}function Hd(o){if(50<wc)throw wc=0,Nh=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Ml={};function wI(o,i,u,p){this.tag=o,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(o,i,u,p){return new wI(o,i,u,p)}function $g(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ra(o,i){var u=o.alternate;return u===null?(u=Xr(o.tag,i,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=i,u.type=o.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=o.flags&65011712,u.childLanes=o.childLanes,u.lanes=o.lanes,u.child=o.child,u.memoizedProps=o.memoizedProps,u.memoizedState=o.memoizedState,u.updateQueue=o.updateQueue,i=o.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u.refCleanup=o.refCleanup,u}function fC(o,i){o.flags&=65011714;var u=o.alternate;return u===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,i=u.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function Bd(o,i,u,p,S,M){var W=0;if(p=o,typeof o=="function")$g(o)&&(W=1);else if(typeof o=="string")W=OP(o,u,X.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case B:return o=Xr(31,u,i,S),o.elementType=B,o.lanes=M,o;case $:return Ei(u.children,S,M,i);case C:W=8,S|=24;break;case x:return o=Xr(12,u,i,S|2),o.elementType=x,o.lanes=M,o;case T:return o=Xr(13,u,i,S),o.elementType=T,o.lanes=M,o;case N:return o=Xr(19,u,i,S),o.elementType=N,o.lanes=M,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:W=10;break e;case R:W=9;break e;case E:W=11;break e;case O:W=14;break e;case P:W=16,p=null;break e}W=29,u=Error(r(130,o===null?"null":typeof o,"")),p=null}return i=Xr(W,u,i,S),i.elementType=o,i.type=p,i.lanes=M,i}function Ei(o,i,u,p){return o=Xr(7,o,p,i),o.lanes=u,o}function xg(o,i,u){return o=Xr(6,o,null,i),o.lanes=u,o}function mC(o){var i=Xr(18,null,null,0);return i.stateNode=o,i}function wg(o,i,u){return i=Xr(4,o.children!==null?o.children:[],o.key,i),i.lanes=u,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var pC=new WeakMap;function co(o,i){if(typeof o=="object"&&o!==null){var u=pC.get(o);return u!==void 0?u:(i={value:o,source:i,stack:ge(i)},pC.set(o,i),i)}return{value:o,source:i,stack:ge(i)}}var Rl=[],Tl=0,Ld=null,rc=0,uo=[],fo=0,Aa=null,ko=1,Wo="";function oa(o,i){Rl[Tl++]=rc,Rl[Tl++]=Ld,Ld=o,rc=i}function gC(o,i,u){uo[fo++]=ko,uo[fo++]=Wo,uo[fo++]=Aa,Aa=o;var p=ko;o=Wo;var S=32-Fe(p)-1;p&=~(1<<S),u+=1;var M=32-Fe(i)+S;if(30<M){var W=S-S%5;M=(p&(1<<W)-1).toString(32),p>>=W,S-=W,ko=1<<32-Fe(i)+S|u<<S|p,Wo=M+o}else ko=1<<M|u<<S|p,Wo=o}function Eg(o){o.return!==null&&(oa(o,1),gC(o,1,0))}function Mg(o){for(;o===Ld;)Ld=Rl[--Tl],Rl[Tl]=null,rc=Rl[--Tl],Rl[Tl]=null;for(;o===Aa;)Aa=uo[--fo],uo[fo]=null,Wo=uo[--fo],uo[fo]=null,ko=uo[--fo],uo[fo]=null}function hC(o,i){uo[fo++]=ko,uo[fo++]=Wo,uo[fo++]=Aa,ko=i.id,Wo=i.overflow,Aa=o}var hr=null,Rn=null,Zt=!1,Da=null,mo=!1,Rg=Error(r(519));function ja(o){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oc(co(i,o)),Rg}function yC(o){var i=o.stateNode,u=o.type,p=o.memoizedProps;switch(i[Et]=o,i[mn]=p,u){case"dialog":qt("cancel",i),qt("close",i);break;case"iframe":case"object":case"embed":qt("load",i);break;case"video":case"audio":for(u=0;u<Mc.length;u++)qt(Mc[u],i);break;case"source":qt("error",i);break;case"img":case"image":case"link":qt("error",i),qt("load",i);break;case"details":qt("toggle",i);break;case"input":qt("invalid",i),Ia(i,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":qt("invalid",i);break;case"textarea":qt("invalid",i),vl(i,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||p.suppressHydrationWarning===!0||Ax(i.textContent,u)?(p.popover!=null&&(qt("beforetoggle",i),qt("toggle",i)),p.onScroll!=null&&qt("scroll",i),p.onScrollEnd!=null&&qt("scrollend",i),p.onClick!=null&&(i.onclick=Ro),i=!0):i=!1,i||ja(o,!0)}function bC(o){for(hr=o.return;hr;)switch(hr.tag){case 5:case 31:case 13:mo=!1;return;case 27:case 3:mo=!0;return;default:hr=hr.return}}function Ol(o){if(o!==hr)return!1;if(!Zt)return bC(o),Zt=!0,!1;var i=o.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=o.type,u=!(u!=="form"&&u!=="button")||qh(o.type,o.memoizedProps)),u=!u),u&&Rn&&ja(o),bC(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=kx(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=kx(o)}else i===27?(i=Rn,Ka(o.type)?(o=Kh,Kh=null,Rn=o):Rn=i):Rn=hr?go(o.stateNode.nextSibling):null;return!0}function Mi(){Rn=hr=null,Zt=!1}function Tg(){var o=Da;return o!==null&&(Br===null?Br=o:Br.push.apply(Br,o),Da=null),o}function oc(o){Da===null?Da=[o]:Da.push(o)}var Og=A(null),Ri=null,aa=null;function _a(o,i,u){k(Og,i._currentValue),i._currentValue=u}function ia(o){o._currentValue=Og.current,z(Og)}function Ng(o,i,u){for(;o!==null;){var p=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,p!==null&&(p.childLanes|=i)):p!==null&&(p.childLanes&i)!==i&&(p.childLanes|=i),o===u)break;o=o.return}}function Ig(o,i,u,p){var S=o.child;for(S!==null&&(S.return=o);S!==null;){var M=S.dependencies;if(M!==null){var W=S.child;M=M.firstContext;e:for(;M!==null;){var ee=M;M=S;for(var ue=0;ue<i.length;ue++)if(ee.context===i[ue]){M.lanes|=u,ee=M.alternate,ee!==null&&(ee.lanes|=u),Ng(M.return,u,o),p||(W=null);break e}M=ee.next}}else if(S.tag===18){if(W=S.return,W===null)throw Error(r(341));W.lanes|=u,M=W.alternate,M!==null&&(M.lanes|=u),Ng(W,u,o),W=null}else W=S.child;if(W!==null)W.return=S;else for(W=S;W!==null;){if(W===o){W=null;break}if(S=W.sibling,S!==null){S.return=W.return,W=S;break}W=W.return}S=W}}function Nl(o,i,u,p){o=null;for(var S=i,M=!1;S!==null;){if(!M){if((S.flags&524288)!==0)M=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var W=S.alternate;if(W===null)throw Error(r(387));if(W=W.memoizedProps,W!==null){var ee=S.type;Gr(S.pendingProps.value,W.value)||(o!==null?o.push(ee):o=[ee])}}else if(S===J.current){if(W=S.alternate,W===null)throw Error(r(387));W.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(o!==null?o.push(Ic):o=[Ic])}S=S.return}o!==null&&Ig(i,o,u,p),i.flags|=262144}function Vd(o){for(o=o.firstContext;o!==null;){if(!Gr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ti(o){Ri=o,aa=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function yr(o){return vC(Ri,o)}function Fd(o,i){return Ri===null&&Ti(o),vC(o,i)}function vC(o,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},aa===null){if(o===null)throw Error(r(308));aa=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else aa=aa.next=i;return u}var EI=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(u,p){o.push(p)}};this.abort=function(){i.aborted=!0,o.forEach(function(u){return u()})}},MI=e.unstable_scheduleCallback,RI=e.unstable_NormalPriority,kn={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pg(){return{controller:new EI,data:new Map,refCount:0}}function ac(o){o.refCount--,o.refCount===0&&MI(RI,function(){o.controller.abort()})}var ic=null,zg=0,Il=0,Pl=null;function TI(o,i){if(ic===null){var u=ic=[];zg=0,Il=jh(),Pl={status:"pending",value:void 0,then:function(p){u.push(p)}}}return zg++,i.then(SC,SC),i}function SC(){if(--zg===0&&ic!==null){Pl!==null&&(Pl.status="fulfilled");var o=ic;ic=null,Il=0,Pl=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function OI(o,i){var u=[],p={status:"pending",value:null,reason:null,then:function(S){u.push(S)}};return o.then(function(){p.status="fulfilled",p.value=i;for(var S=0;S<u.length;S++)(0,u[S])(i)},function(S){for(p.status="rejected",p.reason=S,S=0;S<u.length;S++)(0,u[S])(void 0)}),p}var CC=_.S;_.S=function(o,i){ox=Se(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&TI(o,i),CC!==null&&CC(o,i)};var Oi=A(null);function Ag(){var o=Oi.current;return o!==null?o:xn.pooledCache}function kd(o,i){i===null?k(Oi,Oi.current):k(Oi,i.pool)}function $C(){var o=Ag();return o===null?null:{parent:kn._currentValue,pool:o}}var zl=Error(r(460)),Dg=Error(r(474)),Wd=Error(r(542)),qd={then:function(){}};function xC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function wC(o,i,u){switch(u=o[u],u===void 0?o.push(i):u!==i&&(i.then(Ro,Ro),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,MC(o),o;default:if(typeof i.status=="string")i.then(Ro,Ro);else{if(o=xn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(p){if(i.status==="pending"){var S=i;S.status="fulfilled",S.value=p}},function(p){if(i.status==="pending"){var S=i;S.status="rejected",S.reason=p}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,MC(o),o}throw Ii=i,zl}}function Ni(o){try{var i=o._init;return i(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ii=u,zl):u}}var Ii=null;function EC(){if(Ii===null)throw Error(r(459));var o=Ii;return Ii=null,o}function MC(o){if(o===zl||o===Wd)throw Error(r(483))}var Al=null,lc=0;function Yd(o){var i=lc;return lc+=1,Al===null&&(Al=[]),wC(Al,o,i)}function sc(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function Ud(o,i){throw i.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function RC(o){function i(ye,me){if(o){var $e=ye.deletions;$e===null?(ye.deletions=[me],ye.flags|=16):$e.push(me)}}function u(ye,me){if(!o)return null;for(;me!==null;)i(ye,me),me=me.sibling;return null}function p(ye){for(var me=new Map;ye!==null;)ye.key!==null?me.set(ye.key,ye):me.set(ye.index,ye),ye=ye.sibling;return me}function S(ye,me){return ye=ra(ye,me),ye.index=0,ye.sibling=null,ye}function M(ye,me,$e){return ye.index=$e,o?($e=ye.alternate,$e!==null?($e=$e.index,$e<me?(ye.flags|=67108866,me):$e):(ye.flags|=67108866,me)):(ye.flags|=1048576,me)}function W(ye){return o&&ye.alternate===null&&(ye.flags|=67108866),ye}function ee(ye,me,$e,Le){return me===null||me.tag!==6?(me=xg($e,ye.mode,Le),me.return=ye,me):(me=S(me,$e),me.return=ye,me)}function ue(ye,me,$e,Le){var gt=$e.type;return gt===$?je(ye,me,$e.props.children,Le,$e.key):me!==null&&(me.elementType===gt||typeof gt=="object"&>!==null&>.$$typeof===P&&Ni(gt)===me.type)?(me=S(me,$e.props),sc(me,$e),me.return=ye,me):(me=Bd($e.type,$e.key,$e.props,null,ye.mode,Le),sc(me,$e),me.return=ye,me)}function we(ye,me,$e,Le){return me===null||me.tag!==4||me.stateNode.containerInfo!==$e.containerInfo||me.stateNode.implementation!==$e.implementation?(me=wg($e,ye.mode,Le),me.return=ye,me):(me=S(me,$e.children||[]),me.return=ye,me)}function je(ye,me,$e,Le,gt){return me===null||me.tag!==7?(me=Ei($e,ye.mode,Le,gt),me.return=ye,me):(me=S(me,$e),me.return=ye,me)}function qe(ye,me,$e){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=xg(""+me,ye.mode,$e),me.return=ye,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case v:return $e=Bd(me.type,me.key,me.props,null,ye.mode,$e),sc($e,me),$e.return=ye,$e;case b:return me=wg(me,ye.mode,$e),me.return=ye,me;case P:return me=Ni(me),qe(ye,me,$e)}if(H(me)||G(me))return me=Ei(me,ye.mode,$e,null),me.return=ye,me;if(typeof me.then=="function")return qe(ye,Yd(me),$e);if(me.$$typeof===w)return qe(ye,Fd(ye,me),$e);Ud(ye,me)}return null}function Ee(ye,me,$e,Le){var gt=me!==null?me.key:null;if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return gt!==null?null:ee(ye,me,""+$e,Le);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case v:return $e.key===gt?ue(ye,me,$e,Le):null;case b:return $e.key===gt?we(ye,me,$e,Le):null;case P:return $e=Ni($e),Ee(ye,me,$e,Le)}if(H($e)||G($e))return gt!==null?null:je(ye,me,$e,Le,null);if(typeof $e.then=="function")return Ee(ye,me,Yd($e),Le);if($e.$$typeof===w)return Ee(ye,me,Fd(ye,$e),Le);Ud(ye,$e)}return null}function Te(ye,me,$e,Le,gt){if(typeof Le=="string"&&Le!==""||typeof Le=="number"||typeof Le=="bigint")return ye=ye.get($e)||null,ee(me,ye,""+Le,gt);if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case v:return ye=ye.get(Le.key===null?$e:Le.key)||null,ue(me,ye,Le,gt);case b:return ye=ye.get(Le.key===null?$e:Le.key)||null,we(me,ye,Le,gt);case P:return Le=Ni(Le),Te(ye,me,$e,Le,gt)}if(H(Le)||G(Le))return ye=ye.get($e)||null,je(me,ye,Le,gt,null);if(typeof Le.then=="function")return Te(ye,me,$e,Yd(Le),gt);if(Le.$$typeof===w)return Te(ye,me,$e,Fd(me,Le),gt);Ud(me,Le)}return null}function st(ye,me,$e,Le){for(var gt=null,on=null,dt=me,Ht=me=0,Kt=null;dt!==null&&Ht<$e.length;Ht++){dt.index>Ht?(Kt=dt,dt=null):Kt=dt.sibling;var an=Ee(ye,dt,$e[Ht],Le);if(an===null){dt===null&&(dt=Kt);break}o&&dt&&an.alternate===null&&i(ye,dt),me=M(an,me,Ht),on===null?gt=an:on.sibling=an,on=an,dt=Kt}if(Ht===$e.length)return u(ye,dt),Zt&&oa(ye,Ht),gt;if(dt===null){for(;Ht<$e.length;Ht++)dt=qe(ye,$e[Ht],Le),dt!==null&&(me=M(dt,me,Ht),on===null?gt=dt:on.sibling=dt,on=dt);return Zt&&oa(ye,Ht),gt}for(dt=p(dt);Ht<$e.length;Ht++)Kt=Te(dt,ye,Ht,$e[Ht],Le),Kt!==null&&(o&&Kt.alternate!==null&&dt.delete(Kt.key===null?Ht:Kt.key),me=M(Kt,me,Ht),on===null?gt=Kt:on.sibling=Kt,on=Kt);return o&&dt.forEach(function(ti){return i(ye,ti)}),Zt&&oa(ye,Ht),gt}function St(ye,me,$e,Le){if($e==null)throw Error(r(151));for(var gt=null,on=null,dt=me,Ht=me=0,Kt=null,an=$e.next();dt!==null&&!an.done;Ht++,an=$e.next()){dt.index>Ht?(Kt=dt,dt=null):Kt=dt.sibling;var ti=Ee(ye,dt,an.value,Le);if(ti===null){dt===null&&(dt=Kt);break}o&&dt&&ti.alternate===null&&i(ye,dt),me=M(ti,me,Ht),on===null?gt=ti:on.sibling=ti,on=ti,dt=Kt}if(an.done)return u(ye,dt),Zt&&oa(ye,Ht),gt;if(dt===null){for(;!an.done;Ht++,an=$e.next())an=qe(ye,an.value,Le),an!==null&&(me=M(an,me,Ht),on===null?gt=an:on.sibling=an,on=an);return Zt&&oa(ye,Ht),gt}for(dt=p(dt);!an.done;Ht++,an=$e.next())an=Te(dt,ye,Ht,an.value,Le),an!==null&&(o&&an.alternate!==null&&dt.delete(an.key===null?Ht:an.key),me=M(an,me,Ht),on===null?gt=an:on.sibling=an,on=an);return o&&dt.forEach(function(LP){return i(ye,LP)}),Zt&&oa(ye,Ht),gt}function Cn(ye,me,$e,Le){if(typeof $e=="object"&&$e!==null&&$e.type===$&&$e.key===null&&($e=$e.props.children),typeof $e=="object"&&$e!==null){switch($e.$$typeof){case v:e:{for(var gt=$e.key;me!==null;){if(me.key===gt){if(gt=$e.type,gt===$){if(me.tag===7){u(ye,me.sibling),Le=S(me,$e.props.children),Le.return=ye,ye=Le;break e}}else if(me.elementType===gt||typeof gt=="object"&>!==null&>.$$typeof===P&&Ni(gt)===me.type){u(ye,me.sibling),Le=S(me,$e.props),sc(Le,$e),Le.return=ye,ye=Le;break e}u(ye,me);break}else i(ye,me);me=me.sibling}$e.type===$?(Le=Ei($e.props.children,ye.mode,Le,$e.key),Le.return=ye,ye=Le):(Le=Bd($e.type,$e.key,$e.props,null,ye.mode,Le),sc(Le,$e),Le.return=ye,ye=Le)}return W(ye);case b:e:{for(gt=$e.key;me!==null;){if(me.key===gt)if(me.tag===4&&me.stateNode.containerInfo===$e.containerInfo&&me.stateNode.implementation===$e.implementation){u(ye,me.sibling),Le=S(me,$e.children||[]),Le.return=ye,ye=Le;break e}else{u(ye,me);break}else i(ye,me);me=me.sibling}Le=wg($e,ye.mode,Le),Le.return=ye,ye=Le}return W(ye);case P:return $e=Ni($e),Cn(ye,me,$e,Le)}if(H($e))return st(ye,me,$e,Le);if(G($e)){if(gt=G($e),typeof gt!="function")throw Error(r(150));return $e=gt.call($e),St(ye,me,$e,Le)}if(typeof $e.then=="function")return Cn(ye,me,Yd($e),Le);if($e.$$typeof===w)return Cn(ye,me,Fd(ye,$e),Le);Ud(ye,$e)}return typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint"?($e=""+$e,me!==null&&me.tag===6?(u(ye,me.sibling),Le=S(me,$e),Le.return=ye,ye=Le):(u(ye,me),Le=xg($e,ye.mode,Le),Le.return=ye,ye=Le),W(ye)):u(ye,me)}return function(ye,me,$e,Le){try{lc=0;var gt=Cn(ye,me,$e,Le);return Al=null,gt}catch(dt){if(dt===zl||dt===Wd)throw dt;var on=Xr(29,dt,null,ye.mode);return on.lanes=Le,on.return=ye,on}}}var Pi=RC(!0),TC=RC(!1),Ha=!1;function jg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _g(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ba(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function La(o,i,u){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(ln&2)!==0){var S=p.pending;return S===null?i.next=i:(i.next=S.next,S.next=i),p.pending=i,i=Hd(o),dC(o,null,u),i}return _d(o,p,i,u),Hd(o)}function cc(o,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var p=i.lanes;p&=o.pendingLanes,u|=p,i.lanes=u,Re(o,u)}}function Hg(o,i){var u=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var S=null,M=null;if(u=u.firstBaseUpdate,u!==null){do{var W={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};M===null?S=M=W:M=M.next=W,u=u.next}while(u!==null);M===null?S=M=i:M=M.next=i}else S=M=i;u={baseState:p.baseState,firstBaseUpdate:S,lastBaseUpdate:M,shared:p.shared,callbacks:p.callbacks},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=i:o.next=i,u.lastBaseUpdate=i}var Bg=!1;function uc(){if(Bg){var o=Pl;if(o!==null)throw o}}function dc(o,i,u,p){Bg=!1;var S=o.updateQueue;Ha=!1;var M=S.firstBaseUpdate,W=S.lastBaseUpdate,ee=S.shared.pending;if(ee!==null){S.shared.pending=null;var ue=ee,we=ue.next;ue.next=null,W===null?M=we:W.next=we,W=ue;var je=o.alternate;je!==null&&(je=je.updateQueue,ee=je.lastBaseUpdate,ee!==W&&(ee===null?je.firstBaseUpdate=we:ee.next=we,je.lastBaseUpdate=ue))}if(M!==null){var qe=S.baseState;W=0,je=we=ue=null,ee=M;do{var Ee=ee.lane&-536870913,Te=Ee!==ee.lane;if(Te?(Xt&Ee)===Ee:(p&Ee)===Ee){Ee!==0&&Ee===Il&&(Bg=!0),je!==null&&(je=je.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var st=o,St=ee;Ee=i;var Cn=u;switch(St.tag){case 1:if(st=St.payload,typeof st=="function"){qe=st.call(Cn,qe,Ee);break e}qe=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=St.payload,Ee=typeof st=="function"?st.call(Cn,qe,Ee):st,Ee==null)break e;qe=h({},qe,Ee);break e;case 2:Ha=!0}}Ee=ee.callback,Ee!==null&&(o.flags|=64,Te&&(o.flags|=8192),Te=S.callbacks,Te===null?S.callbacks=[Ee]:Te.push(Ee))}else Te={lane:Ee,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},je===null?(we=je=Te,ue=qe):je=je.next=Te,W|=Ee;if(ee=ee.next,ee===null){if(ee=S.shared.pending,ee===null)break;Te=ee,ee=Te.next,Te.next=null,S.lastBaseUpdate=Te,S.shared.pending=null}}while(!0);je===null&&(ue=qe),S.baseState=ue,S.firstBaseUpdate=we,S.lastBaseUpdate=je,M===null&&(S.shared.lanes=0),qa|=W,o.lanes=W,o.memoizedState=qe}}function OC(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function NC(o,i){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)OC(u[o],i)}var Dl=A(null),Gd=A(0);function IC(o,i){o=ga,k(Gd,o),k(Dl,i),ga=o|i.baseLanes}function Lg(){k(Gd,ga),k(Dl,Dl.current)}function Vg(){ga=Gd.current,z(Dl),z(Gd)}var Kr=A(null),po=null;function Va(o){var i=o.alternate;k(Bn,Bn.current&1),k(Kr,o),po===null&&(i===null||Dl.current!==null||i.memoizedState!==null)&&(po=o)}function Fg(o){k(Bn,Bn.current),k(Kr,o),po===null&&(po=o)}function PC(o){o.tag===22?(k(Bn,Bn.current),k(Kr,o),po===null&&(po=o)):Fa()}function Fa(){k(Bn,Bn.current),k(Kr,Kr.current)}function Qr(o){z(Kr),po===o&&(po=null),z(Bn)}var Bn=A(0);function Xd(o){for(var i=o;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Gh(u)||Xh(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var la=0,Dt=null,vn=null,Wn=null,Kd=!1,jl=!1,zi=!1,Qd=0,fc=0,_l=null,NI=0;function Dn(){throw Error(r(321))}function kg(o,i){if(i===null)return!1;for(var u=0;u<i.length&&u<o.length;u++)if(!Gr(o[u],i[u]))return!1;return!0}function Wg(o,i,u,p,S,M){return la=M,Dt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,_.H=o===null||o.memoizedState===null?g$:ah,zi=!1,M=u(p,S),zi=!1,jl&&(M=AC(i,u,p,S)),zC(o),M}function zC(o){_.H=gc;var i=vn!==null&&vn.next!==null;if(la=0,Wn=vn=Dt=null,Kd=!1,fc=0,_l=null,i)throw Error(r(300));o===null||qn||(o=o.dependencies,o!==null&&Vd(o)&&(qn=!0))}function AC(o,i,u,p){Dt=o;var S=0;do{if(jl&&(_l=null),fc=0,jl=!1,25<=S)throw Error(r(301));if(S+=1,Wn=vn=null,o.updateQueue!=null){var M=o.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}_.H=h$,M=i(u,p)}while(jl);return M}function II(){var o=_.H,i=o.useState()[0];return i=typeof i.then=="function"?mc(i):i,o=o.useState()[0],(vn!==null?vn.memoizedState:null)!==o&&(Dt.flags|=1024),i}function qg(){var o=Qd!==0;return Qd=0,o}function Yg(o,i,u){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~u}function Ug(o){if(Kd){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Kd=!1}la=0,Wn=vn=Dt=null,jl=!1,fc=Qd=0,_l=null}function Ir(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wn===null?Dt.memoizedState=Wn=o:Wn=Wn.next=o,Wn}function Ln(){if(vn===null){var o=Dt.alternate;o=o!==null?o.memoizedState:null}else o=vn.next;var i=Wn===null?Dt.memoizedState:Wn.next;if(i!==null)Wn=i,vn=o;else{if(o===null)throw Dt.alternate===null?Error(r(467)):Error(r(310));vn=o,o={memoizedState:vn.memoizedState,baseState:vn.baseState,baseQueue:vn.baseQueue,queue:vn.queue,next:null},Wn===null?Dt.memoizedState=Wn=o:Wn=Wn.next=o}return Wn}function Zd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mc(o){var i=fc;return fc+=1,_l===null&&(_l=[]),o=wC(_l,o,i),i=Dt,(Wn===null?i.memoizedState:Wn.next)===null&&(i=i.alternate,_.H=i===null||i.memoizedState===null?g$:ah),o}function Jd(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return mc(o);if(o.$$typeof===w)return yr(o)}throw Error(r(438,String(o)))}function Gg(o){var i=null,u=Dt.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var p=Dt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(i={data:p.data.map(function(S){return S.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Zd(),Dt.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(o),p=0;p<o;p++)u[p]=L;return i.index++,u}function sa(o,i){return typeof i=="function"?i(o):i}function ef(o){var i=Ln();return Xg(i,vn,o)}function Xg(o,i,u){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var S=o.baseQueue,M=p.pending;if(M!==null){if(S!==null){var W=S.next;S.next=M.next,M.next=W}i.baseQueue=S=M,p.pending=null}if(M=o.baseState,S===null)o.memoizedState=M;else{i=S.next;var ee=W=null,ue=null,we=i,je=!1;do{var qe=we.lane&-536870913;if(qe!==we.lane?(Xt&qe)===qe:(la&qe)===qe){var Ee=we.revertLane;if(Ee===0)ue!==null&&(ue=ue.next={lane:0,revertLane:0,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),qe===Il&&(je=!0);else if((la&Ee)===Ee){we=we.next,Ee===Il&&(je=!0);continue}else qe={lane:0,revertLane:we.revertLane,gesture:null,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},ue===null?(ee=ue=qe,W=M):ue=ue.next=qe,Dt.lanes|=Ee,qa|=Ee;qe=we.action,zi&&u(M,qe),M=we.hasEagerState?we.eagerState:u(M,qe)}else Ee={lane:qe,revertLane:we.revertLane,gesture:we.gesture,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null},ue===null?(ee=ue=Ee,W=M):ue=ue.next=Ee,Dt.lanes|=qe,qa|=qe;we=we.next}while(we!==null&&we!==i);if(ue===null?W=M:ue.next=ee,!Gr(M,o.memoizedState)&&(qn=!0,je&&(u=Pl,u!==null)))throw u;o.memoizedState=M,o.baseState=W,o.baseQueue=ue,p.lastRenderedState=M}return S===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function Kg(o){var i=Ln(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var p=u.dispatch,S=u.pending,M=i.memoizedState;if(S!==null){u.pending=null;var W=S=S.next;do M=o(M,W.action),W=W.next;while(W!==S);Gr(M,i.memoizedState)||(qn=!0),i.memoizedState=M,i.baseQueue===null&&(i.baseState=M),u.lastRenderedState=M}return[M,p]}function DC(o,i,u){var p=Dt,S=Ln(),M=Zt;if(M){if(u===void 0)throw Error(r(407));u=u()}else u=i();var W=!Gr((vn||S).memoizedState,u);if(W&&(S.memoizedState=u,qn=!0),S=S.queue,Jg(HC.bind(null,p,S,o),[o]),S.getSnapshot!==i||W||Wn!==null&&Wn.memoizedState.tag&1){if(p.flags|=2048,Hl(9,{destroy:void 0},_C.bind(null,p,S,u,i),null),xn===null)throw Error(r(349));M||(la&127)!==0||jC(p,i,u)}return u}function jC(o,i,u){o.flags|=16384,o={getSnapshot:i,value:u},i=Dt.updateQueue,i===null?(i=Zd(),Dt.updateQueue=i,i.stores=[o]):(u=i.stores,u===null?i.stores=[o]:u.push(o))}function _C(o,i,u,p){i.value=u,i.getSnapshot=p,BC(i)&&LC(o)}function HC(o,i,u){return u(function(){BC(i)&&LC(o)})}function BC(o){var i=o.getSnapshot;o=o.value;try{var u=i();return!Gr(o,u)}catch{return!0}}function LC(o){var i=wi(o,2);i!==null&&Lr(i,o,2)}function Qg(o){var i=Ir();if(typeof o=="function"){var u=o;if(o=u(),zi){Ce(!0);try{u()}finally{Ce(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:o},i}function VC(o,i,u,p){return o.baseState=u,Xg(o,vn,typeof p=="function"?p:sa)}function PI(o,i,u,p,S){if(rf(o))throw Error(r(485));if(o=i.action,o!==null){var M={payload:S,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){M.listeners.push(W)}};_.T!==null?u(!0):M.isTransition=!1,p(M),u=i.pending,u===null?(M.next=i.pending=M,FC(i,M)):(M.next=u.next,i.pending=u.next=M)}}function FC(o,i){var u=i.action,p=i.payload,S=o.state;if(i.isTransition){var M=_.T,W={};_.T=W;try{var ee=u(S,p),ue=_.S;ue!==null&&ue(W,ee),kC(o,i,ee)}catch(we){Zg(o,i,we)}finally{M!==null&&W.types!==null&&(M.types=W.types),_.T=M}}else try{M=u(S,p),kC(o,i,M)}catch(we){Zg(o,i,we)}}function kC(o,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){WC(o,i,p)},function(p){return Zg(o,i,p)}):WC(o,i,u)}function WC(o,i,u){i.status="fulfilled",i.value=u,qC(i),o.state=u,i=o.pending,i!==null&&(u=i.next,u===i?o.pending=null:(u=u.next,i.next=u,FC(o,u)))}function Zg(o,i,u){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do i.status="rejected",i.reason=u,qC(i),i=i.next;while(i!==p)}o.action=null}function qC(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function YC(o,i){return i}function UC(o,i){if(Zt){var u=xn.formState;if(u!==null){e:{var p=Dt;if(Zt){if(Rn){t:{for(var S=Rn,M=mo;S.nodeType!==8;){if(!M){S=null;break t}if(S=go(S.nextSibling),S===null){S=null;break t}}M=S.data,S=M==="F!"||M==="F"?S:null}if(S){Rn=go(S.nextSibling),p=S.data==="F!";break e}}ja(p)}p=!1}p&&(i=u[0])}}return u=Ir(),u.memoizedState=u.baseState=i,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YC,lastRenderedState:i},u.queue=p,u=f$.bind(null,Dt,p),p.dispatch=u,p=Qg(!1),M=oh.bind(null,Dt,!1,p.queue),p=Ir(),S={state:i,dispatch:null,action:o,pending:null},p.queue=S,u=PI.bind(null,Dt,S,M,u),S.dispatch=u,p.memoizedState=o,[i,u,!1]}function GC(o){var i=Ln();return XC(i,vn,o)}function XC(o,i,u){if(i=Xg(o,i,YC)[0],o=ef(sa)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var p=mc(i)}catch(W){throw W===zl?Wd:W}else p=i;i=Ln();var S=i.queue,M=S.dispatch;return u!==i.memoizedState&&(Dt.flags|=2048,Hl(9,{destroy:void 0},zI.bind(null,S,u),null)),[p,M,o]}function zI(o,i){o.action=i}function KC(o){var i=Ln(),u=vn;if(u!==null)return XC(i,u,o);Ln(),i=i.memoizedState,u=Ln();var p=u.queue.dispatch;return u.memoizedState=o,[i,p,!1]}function Hl(o,i,u,p){return o={tag:o,create:u,deps:p,inst:i,next:null},i=Dt.updateQueue,i===null&&(i=Zd(),Dt.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=o.next=o:(p=u.next,u.next=o,o.next=p,i.lastEffect=o),o}function QC(){return Ln().memoizedState}function tf(o,i,u,p){var S=Ir();Dt.flags|=o,S.memoizedState=Hl(1|i,{destroy:void 0},u,p===void 0?null:p)}function nf(o,i,u,p){var S=Ln();p=p===void 0?null:p;var M=S.memoizedState.inst;vn!==null&&p!==null&&kg(p,vn.memoizedState.deps)?S.memoizedState=Hl(i,M,u,p):(Dt.flags|=o,S.memoizedState=Hl(1|i,M,u,p))}function ZC(o,i){tf(8390656,8,o,i)}function Jg(o,i){nf(2048,8,o,i)}function AI(o){Dt.flags|=4;var i=Dt.updateQueue;if(i===null)i=Zd(),Dt.updateQueue=i,i.events=[o];else{var u=i.events;u===null?i.events=[o]:u.push(o)}}function JC(o){var i=Ln().memoizedState;return AI({ref:i,nextImpl:o}),function(){if((ln&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function e$(o,i){return nf(4,2,o,i)}function t$(o,i){return nf(4,4,o,i)}function n$(o,i){if(typeof i=="function"){o=o();var u=i(o);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function r$(o,i,u){u=u!=null?u.concat([o]):null,nf(4,4,n$.bind(null,i,o),u)}function eh(){}function o$(o,i){var u=Ln();i=i===void 0?null:i;var p=u.memoizedState;return i!==null&&kg(i,p[1])?p[0]:(u.memoizedState=[o,i],o)}function a$(o,i){var u=Ln();i=i===void 0?null:i;var p=u.memoizedState;if(i!==null&&kg(i,p[1]))return p[0];if(p=o(),zi){Ce(!0);try{o()}finally{Ce(!1)}}return u.memoizedState=[p,i],p}function th(o,i,u){return u===void 0||(la&1073741824)!==0&&(Xt&261930)===0?o.memoizedState=i:(o.memoizedState=u,o=ix(),Dt.lanes|=o,qa|=o,u)}function i$(o,i,u,p){return Gr(u,i)?u:Dl.current!==null?(o=th(o,u,p),Gr(o,i)||(qn=!0),o):(la&42)===0||(la&1073741824)!==0&&(Xt&261930)===0?(qn=!0,o.memoizedState=u):(o=ix(),Dt.lanes|=o,qa|=o,i)}function l$(o,i,u,p,S){var M=j.p;j.p=M!==0&&8>M?M:8;var W=_.T,ee={};_.T=ee,oh(o,!1,i,u);try{var ue=S(),we=_.S;if(we!==null&&we(ee,ue),ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var je=OI(ue,p);pc(o,i,je,eo(o))}else pc(o,i,p,eo(o))}catch(qe){pc(o,i,{then:function(){},status:"rejected",reason:qe},eo())}finally{j.p=M,W!==null&&ee.types!==null&&(W.types=ee.types),_.T=W}}function DI(){}function nh(o,i,u,p){if(o.tag!==5)throw Error(r(476));var S=s$(o).queue;l$(o,S,i,I,u===null?DI:function(){return c$(o),u(p)})}function s$(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:I},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:u},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function c$(o){var i=s$(o);i.next===null&&(i=o.alternate.memoizedState),pc(o,i.next.queue,{},eo())}function rh(){return yr(Ic)}function u$(){return Ln().memoizedState}function d$(){return Ln().memoizedState}function jI(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var u=eo();o=Ba(u);var p=La(i,o,u);p!==null&&(Lr(p,i,u),cc(p,i,u)),i={cache:Pg()},o.payload=i;return}i=i.return}}function _I(o,i,u){var p=eo();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},rf(o)?m$(i,u):(u=Cg(o,i,u,p),u!==null&&(Lr(u,o,p),p$(u,i,p)))}function f$(o,i,u){var p=eo();pc(o,i,u,p)}function pc(o,i,u,p){var S={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(rf(o))m$(i,S);else{var M=o.alternate;if(o.lanes===0&&(M===null||M.lanes===0)&&(M=i.lastRenderedReducer,M!==null))try{var W=i.lastRenderedState,ee=M(W,u);if(S.hasEagerState=!0,S.eagerState=ee,Gr(ee,W))return _d(o,i,S,0),xn===null&&jd(),!1}catch{}if(u=Cg(o,i,S,p),u!==null)return Lr(u,o,p),p$(u,i,p),!0}return!1}function oh(o,i,u,p){if(p={lane:2,revertLane:jh(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},rf(o)){if(i)throw Error(r(479))}else i=Cg(o,u,p,2),i!==null&&Lr(i,o,2)}function rf(o){var i=o.alternate;return o===Dt||i!==null&&i===Dt}function m$(o,i){jl=Kd=!0;var u=o.pending;u===null?i.next=i:(i.next=u.next,u.next=i),o.pending=i}function p$(o,i,u){if((u&4194048)!==0){var p=i.lanes;p&=o.pendingLanes,u|=p,i.lanes=u,Re(o,u)}}var gc={readContext:yr,use:Jd,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn};gc.useEffectEvent=Dn;var g$={readContext:yr,use:Jd,useCallback:function(o,i){return Ir().memoizedState=[o,i===void 0?null:i],o},useContext:yr,useEffect:ZC,useImperativeHandle:function(o,i,u){u=u!=null?u.concat([o]):null,tf(4194308,4,n$.bind(null,i,o),u)},useLayoutEffect:function(o,i){return tf(4194308,4,o,i)},useInsertionEffect:function(o,i){tf(4,2,o,i)},useMemo:function(o,i){var u=Ir();i=i===void 0?null:i;var p=o();if(zi){Ce(!0);try{o()}finally{Ce(!1)}}return u.memoizedState=[p,i],p},useReducer:function(o,i,u){var p=Ir();if(u!==void 0){var S=u(i);if(zi){Ce(!0);try{u(i)}finally{Ce(!1)}}}else S=i;return p.memoizedState=p.baseState=S,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:S},p.queue=o,o=o.dispatch=_I.bind(null,Dt,o),[p.memoizedState,o]},useRef:function(o){var i=Ir();return o={current:o},i.memoizedState=o},useState:function(o){o=Qg(o);var i=o.queue,u=f$.bind(null,Dt,i);return i.dispatch=u,[o.memoizedState,u]},useDebugValue:eh,useDeferredValue:function(o,i){var u=Ir();return th(u,o,i)},useTransition:function(){var o=Qg(!1);return o=l$.bind(null,Dt,o.queue,!0,!1),Ir().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,u){var p=Dt,S=Ir();if(Zt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),xn===null)throw Error(r(349));(Xt&127)!==0||jC(p,i,u)}S.memoizedState=u;var M={value:u,getSnapshot:i};return S.queue=M,ZC(HC.bind(null,p,M,o),[o]),p.flags|=2048,Hl(9,{destroy:void 0},_C.bind(null,p,M,u,i),null),u},useId:function(){var o=Ir(),i=xn.identifierPrefix;if(Zt){var u=Wo,p=ko;u=(p&~(1<<32-Fe(p)-1)).toString(32)+u,i="_"+i+"R_"+u,u=Qd++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=NI++,i="_"+i+"r_"+u.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:rh,useFormState:UC,useActionState:UC,useOptimistic:function(o){var i=Ir();i.memoizedState=i.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=oh.bind(null,Dt,!0,u),u.dispatch=i,[o,i]},useMemoCache:Gg,useCacheRefresh:function(){return Ir().memoizedState=jI.bind(null,Dt)},useEffectEvent:function(o){var i=Ir(),u={impl:o};return i.memoizedState=u,function(){if((ln&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},ah={readContext:yr,use:Jd,useCallback:o$,useContext:yr,useEffect:Jg,useImperativeHandle:r$,useInsertionEffect:e$,useLayoutEffect:t$,useMemo:a$,useReducer:ef,useRef:QC,useState:function(){return ef(sa)},useDebugValue:eh,useDeferredValue:function(o,i){var u=Ln();return i$(u,vn.memoizedState,o,i)},useTransition:function(){var o=ef(sa)[0],i=Ln().memoizedState;return[typeof o=="boolean"?o:mc(o),i]},useSyncExternalStore:DC,useId:u$,useHostTransitionStatus:rh,useFormState:GC,useActionState:GC,useOptimistic:function(o,i){var u=Ln();return VC(u,vn,o,i)},useMemoCache:Gg,useCacheRefresh:d$};ah.useEffectEvent=JC;var h$={readContext:yr,use:Jd,useCallback:o$,useContext:yr,useEffect:Jg,useImperativeHandle:r$,useInsertionEffect:e$,useLayoutEffect:t$,useMemo:a$,useReducer:Kg,useRef:QC,useState:function(){return Kg(sa)},useDebugValue:eh,useDeferredValue:function(o,i){var u=Ln();return vn===null?th(u,o,i):i$(u,vn.memoizedState,o,i)},useTransition:function(){var o=Kg(sa)[0],i=Ln().memoizedState;return[typeof o=="boolean"?o:mc(o),i]},useSyncExternalStore:DC,useId:u$,useHostTransitionStatus:rh,useFormState:KC,useActionState:KC,useOptimistic:function(o,i){var u=Ln();return vn!==null?VC(u,vn,o,i):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:Gg,useCacheRefresh:d$};h$.useEffectEvent=JC;function ih(o,i,u,p){i=o.memoizedState,u=u(p,i),u=u==null?i:h({},i,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var lh={enqueueSetState:function(o,i,u){o=o._reactInternals;var p=eo(),S=Ba(p);S.payload=i,u!=null&&(S.callback=u),i=La(o,S,p),i!==null&&(Lr(i,o,p),cc(i,o,p))},enqueueReplaceState:function(o,i,u){o=o._reactInternals;var p=eo(),S=Ba(p);S.tag=1,S.payload=i,u!=null&&(S.callback=u),i=La(o,S,p),i!==null&&(Lr(i,o,p),cc(i,o,p))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var u=eo(),p=Ba(u);p.tag=2,i!=null&&(p.callback=i),i=La(o,p,u),i!==null&&(Lr(i,o,u),cc(i,o,u))}};function y$(o,i,u,p,S,M,W){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,M,W):i.prototype&&i.prototype.isPureReactComponent?!tc(u,p)||!tc(S,M):!0}function b$(o,i,u,p){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,p),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,p),i.state!==o&&lh.enqueueReplaceState(i,i.state,null)}function Ai(o,i){var u=i;if("ref"in i){u={};for(var p in i)p!=="ref"&&(u[p]=i[p])}if(o=o.defaultProps){u===i&&(u=h({},u));for(var S in o)u[S]===void 0&&(u[S]=o[S])}return u}function v$(o){Dd(o)}function S$(o){console.error(o)}function C$(o){Dd(o)}function of(o,i){try{var u=o.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(p){setTimeout(function(){throw p})}}function $$(o,i,u){try{var p=o.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function sh(o,i,u){return u=Ba(u),u.tag=3,u.payload={element:null},u.callback=function(){of(o,i)},u}function x$(o){return o=Ba(o),o.tag=3,o}function w$(o,i,u,p){var S=u.type.getDerivedStateFromError;if(typeof S=="function"){var M=p.value;o.payload=function(){return S(M)},o.callback=function(){$$(i,u,p)}}var W=u.stateNode;W!==null&&typeof W.componentDidCatch=="function"&&(o.callback=function(){$$(i,u,p),typeof S!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var ee=p.stack;this.componentDidCatch(p.value,{componentStack:ee!==null?ee:""})})}function HI(o,i,u,p,S){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(i=u.alternate,i!==null&&Nl(i,u,S,!0),u=Kr.current,u!==null){switch(u.tag){case 31:case 13:return po===null?yf():u.alternate===null&&jn===0&&(jn=3),u.flags&=-257,u.flags|=65536,u.lanes=S,p===qd?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([p]):i.add(p),zh(o,p,S)),!1;case 22:return u.flags|=65536,p===qd?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([p]):u.add(p)),zh(o,p,S)),!1}throw Error(r(435,u.tag))}return zh(o,p,S),yf(),!1}if(Zt)return i=Kr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=S,p!==Rg&&(o=Error(r(422),{cause:p}),oc(co(o,u)))):(p!==Rg&&(i=Error(r(423),{cause:p}),oc(co(i,u))),o=o.current.alternate,o.flags|=65536,S&=-S,o.lanes|=S,p=co(p,u),S=sh(o.stateNode,p,S),Hg(o,S),jn!==4&&(jn=2)),!1;var M=Error(r(520),{cause:p});if(M=co(M,u),xc===null?xc=[M]:xc.push(M),jn!==4&&(jn=2),i===null)return!0;p=co(p,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,o=S&-S,u.lanes|=o,o=sh(u.stateNode,p,o),Hg(u,o),!1;case 1:if(i=u.type,M=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Ya===null||!Ya.has(M))))return u.flags|=65536,S&=-S,u.lanes|=S,S=x$(S),w$(S,o,u,p),Hg(u,S),!1}u=u.return}while(u!==null);return!1}var ch=Error(r(461)),qn=!1;function br(o,i,u,p){i.child=o===null?TC(i,null,u,p):Pi(i,o.child,u,p)}function E$(o,i,u,p,S){u=u.render;var M=i.ref;if("ref"in p){var W={};for(var ee in p)ee!=="ref"&&(W[ee]=p[ee])}else W=p;return Ti(i),p=Wg(o,i,u,W,M,S),ee=qg(),o!==null&&!qn?(Yg(o,i,S),ca(o,i,S)):(Zt&&ee&&Eg(i),i.flags|=1,br(o,i,p,S),i.child)}function M$(o,i,u,p,S){if(o===null){var M=u.type;return typeof M=="function"&&!$g(M)&&M.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=M,R$(o,i,M,p,S)):(o=Bd(u.type,null,p,i,i.mode,S),o.ref=i.ref,o.return=i,i.child=o)}if(M=o.child,!yh(o,S)){var W=M.memoizedProps;if(u=u.compare,u=u!==null?u:tc,u(W,p)&&o.ref===i.ref)return ca(o,i,S)}return i.flags|=1,o=ra(M,p),o.ref=i.ref,o.return=i,i.child=o}function R$(o,i,u,p,S){if(o!==null){var M=o.memoizedProps;if(tc(M,p)&&o.ref===i.ref)if(qn=!1,i.pendingProps=p=M,yh(o,S))(o.flags&131072)!==0&&(qn=!0);else return i.lanes=o.lanes,ca(o,i,S)}return uh(o,i,u,p,S)}function T$(o,i,u,p){var S=p.children,M=o!==null?o.memoizedState:null;if(o===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((i.flags&128)!==0){if(M=M!==null?M.baseLanes|u:u,o!==null){for(p=i.child=o.child,S=0;p!==null;)S=S|p.lanes|p.childLanes,p=p.sibling;p=S&~M}else p=0,i.child=null;return O$(o,i,M,u,p)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&kd(i,M!==null?M.cachePool:null),M!==null?IC(i,M):Lg(),PC(i);else return p=i.lanes=536870912,O$(o,i,M!==null?M.baseLanes|u:u,u,p)}else M!==null?(kd(i,M.cachePool),IC(i,M),Fa(),i.memoizedState=null):(o!==null&&kd(i,null),Lg(),Fa());return br(o,i,S,u),i.child}function hc(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function O$(o,i,u,p,S){var M=Ag();return M=M===null?null:{parent:kn._currentValue,pool:M},i.memoizedState={baseLanes:u,cachePool:M},o!==null&&kd(i,null),Lg(),PC(i),o!==null&&Nl(o,i,p,!0),i.childLanes=S,null}function af(o,i){return i=sf({mode:i.mode,children:i.children},o.mode),i.ref=o.ref,o.child=i,i.return=o,i}function N$(o,i,u){return Pi(i,o.child,null,u),o=af(i,i.pendingProps),o.flags|=2,Qr(i),i.memoizedState=null,o}function BI(o,i,u){var p=i.pendingProps,S=(i.flags&128)!==0;if(i.flags&=-129,o===null){if(Zt){if(p.mode==="hidden")return o=af(i,p),i.lanes=536870912,hc(null,o);if(Fg(i),(o=Rn)?(o=Fx(o,mo),o=o!==null&&o.data==="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:Aa!==null?{id:ko,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},u=mC(o),u.return=i,i.child=u,hr=i,Rn=null)):o=null,o===null)throw ja(i);return i.lanes=536870912,null}return af(i,p)}var M=o.memoizedState;if(M!==null){var W=M.dehydrated;if(Fg(i),S)if(i.flags&256)i.flags&=-257,i=N$(o,i,u);else if(i.memoizedState!==null)i.child=o.child,i.flags|=128,i=null;else throw Error(r(558));else if(qn||Nl(o,i,u,!1),S=(u&o.childLanes)!==0,qn||S){if(p=xn,p!==null&&(W=Ge(p,u),W!==0&&W!==M.retryLane))throw M.retryLane=W,wi(o,W),Lr(p,o,W),ch;yf(),i=N$(o,i,u)}else o=M.treeContext,Rn=go(W.nextSibling),hr=i,Zt=!0,Da=null,mo=!1,o!==null&&hC(i,o),i=af(i,p),i.flags|=4096;return i}return o=ra(o.child,{mode:p.mode,children:p.children}),o.ref=i.ref,i.child=o,o.return=i,o}function lf(o,i){var u=i.ref;if(u===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(o===null||o.ref!==u)&&(i.flags|=4194816)}}function uh(o,i,u,p,S){return Ti(i),u=Wg(o,i,u,p,void 0,S),p=qg(),o!==null&&!qn?(Yg(o,i,S),ca(o,i,S)):(Zt&&p&&Eg(i),i.flags|=1,br(o,i,u,S),i.child)}function I$(o,i,u,p,S,M){return Ti(i),i.updateQueue=null,u=AC(i,p,u,S),zC(o),p=qg(),o!==null&&!qn?(Yg(o,i,M),ca(o,i,M)):(Zt&&p&&Eg(i),i.flags|=1,br(o,i,u,M),i.child)}function P$(o,i,u,p,S){if(Ti(i),i.stateNode===null){var M=Ml,W=u.contextType;typeof W=="object"&&W!==null&&(M=yr(W)),M=new u(p,M),i.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=lh,i.stateNode=M,M._reactInternals=i,M=i.stateNode,M.props=p,M.state=i.memoizedState,M.refs={},jg(i),W=u.contextType,M.context=typeof W=="object"&&W!==null?yr(W):Ml,M.state=i.memoizedState,W=u.getDerivedStateFromProps,typeof W=="function"&&(ih(i,u,W,p),M.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(W=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),W!==M.state&&lh.enqueueReplaceState(M,M.state,null),dc(i,p,M,S),uc(),M.state=i.memoizedState),typeof M.componentDidMount=="function"&&(i.flags|=4194308),p=!0}else if(o===null){M=i.stateNode;var ee=i.memoizedProps,ue=Ai(u,ee);M.props=ue;var we=M.context,je=u.contextType;W=Ml,typeof je=="object"&&je!==null&&(W=yr(je));var qe=u.getDerivedStateFromProps;je=typeof qe=="function"||typeof M.getSnapshotBeforeUpdate=="function",ee=i.pendingProps!==ee,je||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(ee||we!==W)&&b$(i,M,p,W),Ha=!1;var Ee=i.memoizedState;M.state=Ee,dc(i,p,M,S),uc(),we=i.memoizedState,ee||Ee!==we||Ha?(typeof qe=="function"&&(ih(i,u,qe,p),we=i.memoizedState),(ue=Ha||y$(i,u,ue,p,Ee,we,W))?(je||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(i.flags|=4194308)):(typeof M.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=p,i.memoizedState=we),M.props=p,M.state=we,M.context=W,p=ue):(typeof M.componentDidMount=="function"&&(i.flags|=4194308),p=!1)}else{M=i.stateNode,_g(o,i),W=i.memoizedProps,je=Ai(u,W),M.props=je,qe=i.pendingProps,Ee=M.context,we=u.contextType,ue=Ml,typeof we=="object"&&we!==null&&(ue=yr(we)),ee=u.getDerivedStateFromProps,(we=typeof ee=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(W!==qe||Ee!==ue)&&b$(i,M,p,ue),Ha=!1,Ee=i.memoizedState,M.state=Ee,dc(i,p,M,S),uc();var Te=i.memoizedState;W!==qe||Ee!==Te||Ha||o!==null&&o.dependencies!==null&&Vd(o.dependencies)?(typeof ee=="function"&&(ih(i,u,ee,p),Te=i.memoizedState),(je=Ha||y$(i,u,je,p,Ee,Te,ue)||o!==null&&o.dependencies!==null&&Vd(o.dependencies))?(we||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(p,Te,ue),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(p,Te,ue)),typeof M.componentDidUpdate=="function"&&(i.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof M.componentDidUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=1024),i.memoizedProps=p,i.memoizedState=Te),M.props=p,M.state=Te,M.context=ue,p=je):(typeof M.componentDidUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(i.flags|=1024),p=!1)}return M=p,lf(o,i),p=(i.flags&128)!==0,M||p?(M=i.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:M.render(),i.flags|=1,o!==null&&p?(i.child=Pi(i,o.child,null,S),i.child=Pi(i,null,u,S)):br(o,i,u,S),i.memoizedState=M.state,o=i.child):o=ca(o,i,S),o}function z$(o,i,u,p){return Mi(),i.flags|=256,br(o,i,u,p),i.child}var dh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fh(o){return{baseLanes:o,cachePool:$C()}}function mh(o,i,u){return o=o!==null?o.childLanes&~u:0,i&&(o|=Jr),o}function A$(o,i,u){var p=i.pendingProps,S=!1,M=(i.flags&128)!==0,W;if((W=M)||(W=o!==null&&o.memoizedState===null?!1:(Bn.current&2)!==0),W&&(S=!0,i.flags&=-129),W=(i.flags&32)!==0,i.flags&=-33,o===null){if(Zt){if(S?Va(i):Fa(),(o=Rn)?(o=Fx(o,mo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:Aa!==null?{id:ko,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},u=mC(o),u.return=i,i.child=u,hr=i,Rn=null)):o=null,o===null)throw ja(i);return Xh(o)?i.lanes=32:i.lanes=536870912,null}var ee=p.children;return p=p.fallback,S?(Fa(),S=i.mode,ee=sf({mode:"hidden",children:ee},S),p=Ei(p,S,u,null),ee.return=i,p.return=i,ee.sibling=p,i.child=ee,p=i.child,p.memoizedState=fh(u),p.childLanes=mh(o,W,u),i.memoizedState=dh,hc(null,p)):(Va(i),ph(i,ee))}var ue=o.memoizedState;if(ue!==null&&(ee=ue.dehydrated,ee!==null)){if(M)i.flags&256?(Va(i),i.flags&=-257,i=gh(o,i,u)):i.memoizedState!==null?(Fa(),i.child=o.child,i.flags|=128,i=null):(Fa(),ee=p.fallback,S=i.mode,p=sf({mode:"visible",children:p.children},S),ee=Ei(ee,S,u,null),ee.flags|=2,p.return=i,ee.return=i,p.sibling=ee,i.child=p,Pi(i,o.child,null,u),p=i.child,p.memoizedState=fh(u),p.childLanes=mh(o,W,u),i.memoizedState=dh,i=hc(null,p));else if(Va(i),Xh(ee)){if(W=ee.nextSibling&&ee.nextSibling.dataset,W)var we=W.dgst;W=we,p=Error(r(419)),p.stack="",p.digest=W,oc({value:p,source:null,stack:null}),i=gh(o,i,u)}else if(qn||Nl(o,i,u,!1),W=(u&o.childLanes)!==0,qn||W){if(W=xn,W!==null&&(p=Ge(W,u),p!==0&&p!==ue.retryLane))throw ue.retryLane=p,wi(o,p),Lr(W,o,p),ch;Gh(ee)||yf(),i=gh(o,i,u)}else Gh(ee)?(i.flags|=192,i.child=o.child,i=null):(o=ue.treeContext,Rn=go(ee.nextSibling),hr=i,Zt=!0,Da=null,mo=!1,o!==null&&hC(i,o),i=ph(i,p.children),i.flags|=4096);return i}return S?(Fa(),ee=p.fallback,S=i.mode,ue=o.child,we=ue.sibling,p=ra(ue,{mode:"hidden",children:p.children}),p.subtreeFlags=ue.subtreeFlags&65011712,we!==null?ee=ra(we,ee):(ee=Ei(ee,S,u,null),ee.flags|=2),ee.return=i,p.return=i,p.sibling=ee,i.child=p,hc(null,p),p=i.child,ee=o.child.memoizedState,ee===null?ee=fh(u):(S=ee.cachePool,S!==null?(ue=kn._currentValue,S=S.parent!==ue?{parent:ue,pool:ue}:S):S=$C(),ee={baseLanes:ee.baseLanes|u,cachePool:S}),p.memoizedState=ee,p.childLanes=mh(o,W,u),i.memoizedState=dh,hc(o.child,p)):(Va(i),u=o.child,o=u.sibling,u=ra(u,{mode:"visible",children:p.children}),u.return=i,u.sibling=null,o!==null&&(W=i.deletions,W===null?(i.deletions=[o],i.flags|=16):W.push(o)),i.child=u,i.memoizedState=null,u)}function ph(o,i){return i=sf({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function sf(o,i){return o=Xr(22,o,null,i),o.lanes=0,o}function gh(o,i,u){return Pi(i,o.child,null,u),o=ph(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function D$(o,i,u){o.lanes|=i;var p=o.alternate;p!==null&&(p.lanes|=i),Ng(o.return,i,u)}function hh(o,i,u,p,S,M){var W=o.memoizedState;W===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:S,treeForkCount:M}:(W.isBackwards=i,W.rendering=null,W.renderingStartTime=0,W.last=p,W.tail=u,W.tailMode=S,W.treeForkCount=M)}function j$(o,i,u){var p=i.pendingProps,S=p.revealOrder,M=p.tail;p=p.children;var W=Bn.current,ee=(W&2)!==0;if(ee?(W=W&1|2,i.flags|=128):W&=1,k(Bn,W),br(o,i,p,u),p=Zt?rc:0,!ee&&o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&D$(o,u,i);else if(o.tag===19)D$(o,u,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(S){case"forwards":for(u=i.child,S=null;u!==null;)o=u.alternate,o!==null&&Xd(o)===null&&(S=u),u=u.sibling;u=S,u===null?(S=i.child,i.child=null):(S=u.sibling,u.sibling=null),hh(i,!1,S,u,M,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,S=i.child,i.child=null;S!==null;){if(o=S.alternate,o!==null&&Xd(o)===null){i.child=S;break}o=S.sibling,S.sibling=u,u=S,S=o}hh(i,!0,u,null,M,p);break;case"together":hh(i,!1,null,null,void 0,p);break;default:i.memoizedState=null}return i.child}function ca(o,i,u){if(o!==null&&(i.dependencies=o.dependencies),qa|=i.lanes,(u&i.childLanes)===0)if(o!==null){if(Nl(o,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,u=ra(o,o.pendingProps),i.child=u,u.return=i;o.sibling!==null;)o=o.sibling,u=u.sibling=ra(o,o.pendingProps),u.return=i;u.sibling=null}return i.child}function yh(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&Vd(o)))}function LI(o,i,u){switch(i.tag){case 3:oe(i,i.stateNode.containerInfo),_a(i,kn,o.memoizedState.cache),Mi();break;case 27:case 5:re(i);break;case 4:oe(i,i.stateNode.containerInfo);break;case 10:_a(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Fg(i),null;break;case 13:var p=i.memoizedState;if(p!==null)return p.dehydrated!==null?(Va(i),i.flags|=128,null):(u&i.child.childLanes)!==0?A$(o,i,u):(Va(i),o=ca(o,i,u),o!==null?o.sibling:null);Va(i);break;case 19:var S=(o.flags&128)!==0;if(p=(u&i.childLanes)!==0,p||(Nl(o,i,u,!1),p=(u&i.childLanes)!==0),S){if(p)return j$(o,i,u);i.flags|=128}if(S=i.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),k(Bn,Bn.current),p)break;return null;case 22:return i.lanes=0,T$(o,i,u,i.pendingProps);case 24:_a(i,kn,o.memoizedState.cache)}return ca(o,i,u)}function _$(o,i,u){if(o!==null)if(o.memoizedProps!==i.pendingProps)qn=!0;else{if(!yh(o,u)&&(i.flags&128)===0)return qn=!1,LI(o,i,u);qn=(o.flags&131072)!==0}else qn=!1,Zt&&(i.flags&1048576)!==0&&gC(i,rc,i.index);switch(i.lanes=0,i.tag){case 16:e:{var p=i.pendingProps;if(o=Ni(i.elementType),i.type=o,typeof o=="function")$g(o)?(p=Ai(o,p),i.tag=1,i=P$(null,i,o,p,u)):(i.tag=0,i=uh(null,i,o,p,u));else{if(o!=null){var S=o.$$typeof;if(S===E){i.tag=11,i=E$(null,i,o,p,u);break e}else if(S===O){i.tag=14,i=M$(null,i,o,p,u);break e}}throw i=q(o)||o,Error(r(306,i,""))}}return i;case 0:return uh(o,i,i.type,i.pendingProps,u);case 1:return p=i.type,S=Ai(p,i.pendingProps),P$(o,i,p,S,u);case 3:e:{if(oe(i,i.stateNode.containerInfo),o===null)throw Error(r(387));p=i.pendingProps;var M=i.memoizedState;S=M.element,_g(o,i),dc(i,p,null,u);var W=i.memoizedState;if(p=W.cache,_a(i,kn,p),p!==M.cache&&Ig(i,[kn],u,!0),uc(),p=W.element,M.isDehydrated)if(M={element:p,isDehydrated:!1,cache:W.cache},i.updateQueue.baseState=M,i.memoizedState=M,i.flags&256){i=z$(o,i,p,u);break e}else if(p!==S){S=co(Error(r(424)),i),oc(S),i=z$(o,i,p,u);break e}else for(o=i.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Rn=go(o.firstChild),hr=i,Zt=!0,Da=null,mo=!0,u=TC(i,null,p,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Mi(),p===S){i=ca(o,i,u);break e}br(o,i,p,u)}i=i.child}return i;case 26:return lf(o,i),o===null?(u=Gx(i.type,null,i.pendingProps,null))?i.memoizedState=u:Zt||(u=i.type,o=i.pendingProps,p=wf(Z.current).createElement(u),p[Et]=i,p[mn]=o,vr(p,u,o),gn(p),i.stateNode=p):i.memoizedState=Gx(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return re(i),o===null&&Zt&&(p=i.stateNode=qx(i.type,i.pendingProps,Z.current),hr=i,mo=!0,S=Rn,Ka(i.type)?(Kh=S,Rn=go(p.firstChild)):Rn=S),br(o,i,i.pendingProps.children,u),lf(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&Zt&&((S=p=Rn)&&(p=hP(p,i.type,i.pendingProps,mo),p!==null?(i.stateNode=p,hr=i,Rn=go(p.firstChild),mo=!1,S=!0):S=!1),S||ja(i)),re(i),S=i.type,M=i.pendingProps,W=o!==null?o.memoizedProps:null,p=M.children,qh(S,M)?p=null:W!==null&&qh(S,W)&&(i.flags|=32),i.memoizedState!==null&&(S=Wg(o,i,II,null,null,u),Ic._currentValue=S),lf(o,i),br(o,i,p,u),i.child;case 6:return o===null&&Zt&&((o=u=Rn)&&(u=yP(u,i.pendingProps,mo),u!==null?(i.stateNode=u,hr=i,Rn=null,o=!0):o=!1),o||ja(i)),null;case 13:return A$(o,i,u);case 4:return oe(i,i.stateNode.containerInfo),p=i.pendingProps,o===null?i.child=Pi(i,null,p,u):br(o,i,p,u),i.child;case 11:return E$(o,i,i.type,i.pendingProps,u);case 7:return br(o,i,i.pendingProps,u),i.child;case 8:return br(o,i,i.pendingProps.children,u),i.child;case 12:return br(o,i,i.pendingProps.children,u),i.child;case 10:return p=i.pendingProps,_a(i,i.type,p.value),br(o,i,p.children,u),i.child;case 9:return S=i.type._context,p=i.pendingProps.children,Ti(i),S=yr(S),p=p(S),i.flags|=1,br(o,i,p,u),i.child;case 14:return M$(o,i,i.type,i.pendingProps,u);case 15:return R$(o,i,i.type,i.pendingProps,u);case 19:return j$(o,i,u);case 31:return BI(o,i,u);case 22:return T$(o,i,u,i.pendingProps);case 24:return Ti(i),p=yr(kn),o===null?(S=Ag(),S===null&&(S=xn,M=Pg(),S.pooledCache=M,M.refCount++,M!==null&&(S.pooledCacheLanes|=u),S=M),i.memoizedState={parent:p,cache:S},jg(i),_a(i,kn,S)):((o.lanes&u)!==0&&(_g(o,i),dc(i,null,null,u),uc()),S=o.memoizedState,M=i.memoizedState,S.parent!==p?(S={parent:p,cache:p},i.memoizedState=S,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=S),_a(i,kn,p)):(p=M.cache,_a(i,kn,p),p!==S.cache&&Ig(i,[kn],u,!0))),br(o,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function ua(o){o.flags|=4}function bh(o,i,u,p,S){if((i=(o.mode&32)!==0)&&(i=!1),i){if(o.flags|=16777216,(S&335544128)===S)if(o.stateNode.complete)o.flags|=8192;else if(ux())o.flags|=8192;else throw Ii=qd,Dg}else o.flags&=-16777217}function H$(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Jx(i))if(ux())o.flags|=8192;else throw Ii=qd,Dg}function cf(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?ke():536870912,o.lanes|=i,Fl|=i)}function yc(o,i){if(!Zt)switch(o.tailMode){case"hidden":i=o.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function Tn(o){var i=o.alternate!==null&&o.alternate.child===o.child,u=0,p=0;if(i)for(var S=o.child;S!==null;)u|=S.lanes|S.childLanes,p|=S.subtreeFlags&65011712,p|=S.flags&65011712,S.return=o,S=S.sibling;else for(S=o.child;S!==null;)u|=S.lanes|S.childLanes,p|=S.subtreeFlags,p|=S.flags,S.return=o,S=S.sibling;return o.subtreeFlags|=p,o.childLanes=u,i}function VI(o,i,u){var p=i.pendingProps;switch(Mg(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tn(i),null;case 1:return Tn(i),null;case 3:return u=i.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),i.memoizedState.cache!==p&&(i.flags|=2048),ia(kn),ne(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&(Ol(i)?ua(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Tg())),Tn(i),null;case 26:var S=i.type,M=i.memoizedState;return o===null?(ua(i),M!==null?(Tn(i),H$(i,M)):(Tn(i),bh(i,S,null,p,u))):M?M!==o.memoizedState?(ua(i),Tn(i),H$(i,M)):(Tn(i),i.flags&=-16777217):(o=o.memoizedProps,o!==p&&ua(i),Tn(i),bh(i,S,o,p,u)),null;case 27:if(ce(i),u=Z.current,S=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&ua(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return Tn(i),null}o=X.current,Ol(i)?yC(i):(o=qx(S,p,u),i.stateNode=o,ua(i))}return Tn(i),null;case 5:if(ce(i),S=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&ua(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return Tn(i),null}if(M=X.current,Ol(i))yC(i);else{var W=wf(Z.current);switch(M){case 1:M=W.createElementNS("http://www.w3.org/2000/svg",S);break;case 2:M=W.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;default:switch(S){case"svg":M=W.createElementNS("http://www.w3.org/2000/svg",S);break;case"math":M=W.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;case"script":M=W.createElement("div"),M.innerHTML="<script><\/script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof p.is=="string"?W.createElement("select",{is:p.is}):W.createElement("select"),p.multiple?M.multiple=!0:p.size&&(M.size=p.size);break;default:M=typeof p.is=="string"?W.createElement(S,{is:p.is}):W.createElement(S)}}M[Et]=i,M[mn]=p;e:for(W=i.child;W!==null;){if(W.tag===5||W.tag===6)M.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===i)break e;for(;W.sibling===null;){if(W.return===null||W.return===i)break e;W=W.return}W.sibling.return=W.return,W=W.sibling}i.stateNode=M;e:switch(vr(M,S,p),S){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&ua(i)}}return Tn(i),bh(i,i.type,o===null?null:o.memoizedProps,i.pendingProps,u),null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==p&&ua(i);else{if(typeof p!="string"&&i.stateNode===null)throw Error(r(166));if(o=Z.current,Ol(i)){if(o=i.stateNode,u=i.memoizedProps,p=null,S=hr,S!==null)switch(S.tag){case 27:case 5:p=S.memoizedProps}o[Et]=i,o=!!(o.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||Ax(o.nodeValue,u)),o||ja(i,!0)}else o=wf(o).createTextNode(p),o[Et]=i,i.stateNode=o}return Tn(i),null;case 31:if(u=i.memoizedState,o===null||o.memoizedState!==null){if(p=Ol(i),u!==null){if(o===null){if(!p)throw Error(r(318));if(o=i.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Et]=i}else Mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Tn(i),o=!1}else u=Tg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return i.flags&256?(Qr(i),i):(Qr(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Tn(i),null;case 13:if(p=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(S=Ol(i),p!==null&&p.dehydrated!==null){if(o===null){if(!S)throw Error(r(318));if(S=i.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[Et]=i}else Mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Tn(i),S=!1}else S=Tg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=S),S=!0;if(!S)return i.flags&256?(Qr(i),i):(Qr(i),null)}return Qr(i),(i.flags&128)!==0?(i.lanes=u,i):(u=p!==null,o=o!==null&&o.memoizedState!==null,u&&(p=i.child,S=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(S=p.alternate.memoizedState.cachePool.pool),M=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(M=p.memoizedState.cachePool.pool),M!==S&&(p.flags|=2048)),u!==o&&u&&(i.child.flags|=8192),cf(i,i.updateQueue),Tn(i),null);case 4:return ne(),o===null&&Lh(i.stateNode.containerInfo),Tn(i),null;case 10:return ia(i.type),Tn(i),null;case 19:if(z(Bn),p=i.memoizedState,p===null)return Tn(i),null;if(S=(i.flags&128)!==0,M=p.rendering,M===null)if(S)yc(p,!1);else{if(jn!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(M=Xd(o),M!==null){for(i.flags|=128,yc(p,!1),o=M.updateQueue,i.updateQueue=o,cf(i,o),i.subtreeFlags=0,o=u,u=i.child;u!==null;)fC(u,o),u=u.sibling;return k(Bn,Bn.current&1|2),Zt&&oa(i,p.treeForkCount),i.child}o=o.sibling}p.tail!==null&&Se()>pf&&(i.flags|=128,S=!0,yc(p,!1),i.lanes=4194304)}else{if(!S)if(o=Xd(M),o!==null){if(i.flags|=128,S=!0,o=o.updateQueue,i.updateQueue=o,cf(i,o),yc(p,!0),p.tail===null&&p.tailMode==="hidden"&&!M.alternate&&!Zt)return Tn(i),null}else 2*Se()-p.renderingStartTime>pf&&u!==536870912&&(i.flags|=128,S=!0,yc(p,!1),i.lanes=4194304);p.isBackwards?(M.sibling=i.child,i.child=M):(o=p.last,o!==null?o.sibling=M:i.child=M,p.last=M)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=Se(),o.sibling=null,u=Bn.current,k(Bn,S?u&1|2:u&1),Zt&&oa(i,p.treeForkCount),o):(Tn(i),null);case 22:case 23:return Qr(i),Vg(),p=i.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(i.flags|=8192):p&&(i.flags|=8192),p?(u&536870912)!==0&&(i.flags&128)===0&&(Tn(i),i.subtreeFlags&6&&(i.flags|=8192)):Tn(i),u=i.updateQueue,u!==null&&cf(i,u.retryQueue),u=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==u&&(i.flags|=2048),o!==null&&z(Oi),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ia(kn),Tn(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function FI(o,i){switch(Mg(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return ia(kn),ne(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return ce(i),null;case 31:if(i.memoizedState!==null){if(Qr(i),i.alternate===null)throw Error(r(340));Mi()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 13:if(Qr(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Mi()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return z(Bn),null;case 4:return ne(),null;case 10:return ia(i.type),null;case 22:case 23:return Qr(i),Vg(),o!==null&&z(Oi),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return ia(kn),null;case 25:return null;default:return null}}function B$(o,i){switch(Mg(i),i.tag){case 3:ia(kn),ne();break;case 26:case 27:case 5:ce(i);break;case 4:ne();break;case 31:i.memoizedState!==null&&Qr(i);break;case 13:Qr(i);break;case 19:z(Bn);break;case 10:ia(i.type);break;case 22:case 23:Qr(i),Vg(),o!==null&&z(Oi);break;case 24:ia(kn)}}function bc(o,i){try{var u=i.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var S=p.next;u=S;do{if((u.tag&o)===o){p=void 0;var M=u.create,W=u.inst;p=M(),W.destroy=p}u=u.next}while(u!==S)}}catch(ee){yn(i,i.return,ee)}}function ka(o,i,u){try{var p=i.updateQueue,S=p!==null?p.lastEffect:null;if(S!==null){var M=S.next;p=M;do{if((p.tag&o)===o){var W=p.inst,ee=W.destroy;if(ee!==void 0){W.destroy=void 0,S=i;var ue=u,we=ee;try{we()}catch(je){yn(S,ue,je)}}}p=p.next}while(p!==M)}}catch(je){yn(i,i.return,je)}}function L$(o){var i=o.updateQueue;if(i!==null){var u=o.stateNode;try{NC(i,u)}catch(p){yn(o,o.return,p)}}}function V$(o,i,u){u.props=Ai(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(p){yn(o,i,p)}}function vc(o,i){try{var u=o.ref;if(u!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof u=="function"?o.refCleanup=u(p):u.current=p}}catch(S){yn(o,i,S)}}function qo(o,i){var u=o.ref,p=o.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(S){yn(o,i,S)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(S){yn(o,i,S)}else u.current=null}function F$(o){var i=o.type,u=o.memoizedProps,p=o.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(S){yn(o,o.return,S)}}function vh(o,i,u){try{var p=o.stateNode;uP(p,o.type,u,i),p[mn]=i}catch(S){yn(o,o.return,S)}}function k$(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ka(o.type)||o.tag===4}function Sh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||k$(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Ka(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ch(o,i,u){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(o,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(o),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=Ro));else if(p!==4&&(p===27&&Ka(o.type)&&(u=o.stateNode,i=null),o=o.child,o!==null))for(Ch(o,i,u),o=o.sibling;o!==null;)Ch(o,i,u),o=o.sibling}function uf(o,i,u){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?u.insertBefore(o,i):u.appendChild(o);else if(p!==4&&(p===27&&Ka(o.type)&&(u=o.stateNode),o=o.child,o!==null))for(uf(o,i,u),o=o.sibling;o!==null;)uf(o,i,u),o=o.sibling}function W$(o){var i=o.stateNode,u=o.memoizedProps;try{for(var p=o.type,S=i.attributes;S.length;)i.removeAttributeNode(S[0]);vr(i,p,u),i[Et]=o,i[mn]=u}catch(M){yn(o,o.return,M)}}var da=!1,Yn=!1,$h=!1,q$=typeof WeakSet=="function"?WeakSet:Set,sr=null;function kI(o,i){if(o=o.containerInfo,kh=If,o=rC(o),gg(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var S=p.anchorOffset,M=p.focusNode;p=p.focusOffset;try{u.nodeType,M.nodeType}catch{u=null;break e}var W=0,ee=-1,ue=-1,we=0,je=0,qe=o,Ee=null;t:for(;;){for(var Te;qe!==u||S!==0&&qe.nodeType!==3||(ee=W+S),qe!==M||p!==0&&qe.nodeType!==3||(ue=W+p),qe.nodeType===3&&(W+=qe.nodeValue.length),(Te=qe.firstChild)!==null;)Ee=qe,qe=Te;for(;;){if(qe===o)break t;if(Ee===u&&++we===S&&(ee=W),Ee===M&&++je===p&&(ue=W),(Te=qe.nextSibling)!==null)break;qe=Ee,Ee=qe.parentNode}qe=Te}u=ee===-1||ue===-1?null:{start:ee,end:ue}}else u=null}u=u||{start:0,end:0}}else u=null;for(Wh={focusedElem:o,selectionRange:u},If=!1,sr=i;sr!==null;)if(i=sr,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,sr=o;else for(;sr!==null;){switch(i=sr,M=i.alternate,o=i.flags,i.tag){case 0:if((o&4)!==0&&(o=i.updateQueue,o=o!==null?o.events:null,o!==null))for(u=0;u<o.length;u++)S=o[u],S.ref.impl=S.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&M!==null){o=void 0,u=i,S=M.memoizedProps,M=M.memoizedState,p=u.stateNode;try{var st=Ai(u.type,S);o=p.getSnapshotBeforeUpdate(st,M),p.__reactInternalSnapshotBeforeUpdate=o}catch(St){yn(u,u.return,St)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,u=o.nodeType,u===9)Uh(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Uh(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,sr=o;break}sr=i.return}}function Y$(o,i,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:ma(o,u),p&4&&bc(5,u);break;case 1:if(ma(o,u),p&4)if(o=u.stateNode,i===null)try{o.componentDidMount()}catch(W){yn(u,u.return,W)}else{var S=Ai(u.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(S,i,o.__reactInternalSnapshotBeforeUpdate)}catch(W){yn(u,u.return,W)}}p&64&&L$(u),p&512&&vc(u,u.return);break;case 3:if(ma(o,u),p&64&&(o=u.updateQueue,o!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{NC(o,i)}catch(W){yn(u,u.return,W)}}break;case 27:i===null&&p&4&&W$(u);case 26:case 5:ma(o,u),i===null&&p&4&&F$(u),p&512&&vc(u,u.return);break;case 12:ma(o,u);break;case 31:ma(o,u),p&4&&X$(o,u);break;case 13:ma(o,u),p&4&&K$(o,u),p&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=ZI.bind(null,u),bP(o,u))));break;case 22:if(p=u.memoizedState!==null||da,!p){i=i!==null&&i.memoizedState!==null||Yn,S=da;var M=Yn;da=p,(Yn=i)&&!M?pa(o,u,(u.subtreeFlags&8772)!==0):ma(o,u),da=S,Yn=M}break;case 30:break;default:ma(o,u)}}function U$(o){var i=o.alternate;i!==null&&(o.alternate=null,U$(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&rn(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Nn=null,jr=!1;function fa(o,i,u){for(u=u.child;u!==null;)G$(o,i,u),u=u.sibling}function G$(o,i,u){if(Pe&&typeof Pe.onCommitFiberUnmount=="function")try{Pe.onCommitFiberUnmount(Ue,u)}catch{}switch(u.tag){case 26:Yn||qo(u,i),fa(o,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Yn||qo(u,i);var p=Nn,S=jr;Ka(u.type)&&(Nn=u.stateNode,jr=!1),fa(o,i,u),Tc(u.stateNode),Nn=p,jr=S;break;case 5:Yn||qo(u,i);case 6:if(p=Nn,S=jr,Nn=null,fa(o,i,u),Nn=p,jr=S,Nn!==null)if(jr)try{(Nn.nodeType===9?Nn.body:Nn.nodeName==="HTML"?Nn.ownerDocument.body:Nn).removeChild(u.stateNode)}catch(M){yn(u,i,M)}else try{Nn.removeChild(u.stateNode)}catch(M){yn(u,i,M)}break;case 18:Nn!==null&&(jr?(o=Nn,Lx(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),Kl(o)):Lx(Nn,u.stateNode));break;case 4:p=Nn,S=jr,Nn=u.stateNode.containerInfo,jr=!0,fa(o,i,u),Nn=p,jr=S;break;case 0:case 11:case 14:case 15:ka(2,u,i),Yn||ka(4,u,i),fa(o,i,u);break;case 1:Yn||(qo(u,i),p=u.stateNode,typeof p.componentWillUnmount=="function"&&V$(u,i,p)),fa(o,i,u);break;case 21:fa(o,i,u);break;case 22:Yn=(p=Yn)||u.memoizedState!==null,fa(o,i,u),Yn=p;break;default:fa(o,i,u)}}function X$(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Kl(o)}catch(u){yn(i,i.return,u)}}}function K$(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Kl(o)}catch(u){yn(i,i.return,u)}}function WI(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new q$),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new q$),i;default:throw Error(r(435,o.tag))}}function df(o,i){var u=WI(o);i.forEach(function(p){if(!u.has(p)){u.add(p);var S=JI.bind(null,o,p);p.then(S,S)}})}function _r(o,i){var u=i.deletions;if(u!==null)for(var p=0;p<u.length;p++){var S=u[p],M=o,W=i,ee=W;e:for(;ee!==null;){switch(ee.tag){case 27:if(Ka(ee.type)){Nn=ee.stateNode,jr=!1;break e}break;case 5:Nn=ee.stateNode,jr=!1;break e;case 3:case 4:Nn=ee.stateNode.containerInfo,jr=!0;break e}ee=ee.return}if(Nn===null)throw Error(r(160));G$(M,W,S),Nn=null,jr=!1,M=S.alternate,M!==null&&(M.return=null),S.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Q$(i,o),i=i.sibling}var Oo=null;function Q$(o,i){var u=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:_r(i,o),Hr(o),p&4&&(ka(3,o,o.return),bc(3,o),ka(5,o,o.return));break;case 1:_r(i,o),Hr(o),p&512&&(Yn||u===null||qo(u,u.return)),p&64&&da&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(u=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var S=Oo;if(_r(i,o),Hr(o),p&512&&(Yn||u===null||qo(u,u.return)),p&4){var M=u!==null?u.memoizedState:null;if(p=o.memoizedState,u===null)if(p===null)if(o.stateNode===null){e:{p=o.type,u=o.memoizedProps,S=S.ownerDocument||S;t:switch(p){case"title":M=S.getElementsByTagName("title")[0],(!M||M[Ut]||M[Et]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=S.createElement(p),S.head.insertBefore(M,S.querySelector("head > title"))),vr(M,p,u),M[Et]=o,gn(M),p=M;break e;case"link":var W=Qx("link","href",S).get(p+(u.href||""));if(W){for(var ee=0;ee<W.length;ee++)if(M=W[ee],M.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&M.getAttribute("rel")===(u.rel==null?null:u.rel)&&M.getAttribute("title")===(u.title==null?null:u.title)&&M.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){W.splice(ee,1);break t}}M=S.createElement(p),vr(M,p,u),S.head.appendChild(M);break;case"meta":if(W=Qx("meta","content",S).get(p+(u.content||""))){for(ee=0;ee<W.length;ee++)if(M=W[ee],M.getAttribute("content")===(u.content==null?null:""+u.content)&&M.getAttribute("name")===(u.name==null?null:u.name)&&M.getAttribute("property")===(u.property==null?null:u.property)&&M.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&M.getAttribute("charset")===(u.charSet==null?null:u.charSet)){W.splice(ee,1);break t}}M=S.createElement(p),vr(M,p,u),S.head.appendChild(M);break;default:throw Error(r(468,p))}M[Et]=o,gn(M),p=M}o.stateNode=p}else Zx(S,o.type,o.stateNode);else o.stateNode=Kx(S,p,o.memoizedProps);else M!==p?(M===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):M.count--,p===null?Zx(S,o.type,o.stateNode):Kx(S,p,o.memoizedProps)):p===null&&o.stateNode!==null&&vh(o,o.memoizedProps,u.memoizedProps)}break;case 27:_r(i,o),Hr(o),p&512&&(Yn||u===null||qo(u,u.return)),u!==null&&p&4&&vh(o,o.memoizedProps,u.memoizedProps);break;case 5:if(_r(i,o),Hr(o),p&512&&(Yn||u===null||qo(u,u.return)),o.flags&32){S=o.stateNode;try{Fo(S,"")}catch(st){yn(o,o.return,st)}}p&4&&o.stateNode!=null&&(S=o.memoizedProps,vh(o,S,u!==null?u.memoizedProps:S)),p&1024&&($h=!0);break;case 6:if(_r(i,o),Hr(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,u=o.stateNode;try{u.nodeValue=p}catch(st){yn(o,o.return,st)}}break;case 3:if(Rf=null,S=Oo,Oo=Ef(i.containerInfo),_r(i,o),Oo=S,Hr(o),p&4&&u!==null&&u.memoizedState.isDehydrated)try{Kl(i.containerInfo)}catch(st){yn(o,o.return,st)}$h&&($h=!1,Z$(o));break;case 4:p=Oo,Oo=Ef(o.stateNode.containerInfo),_r(i,o),Hr(o),Oo=p;break;case 12:_r(i,o),Hr(o);break;case 31:_r(i,o),Hr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,df(o,p)));break;case 13:_r(i,o),Hr(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(mf=Se()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,df(o,p)));break;case 22:S=o.memoizedState!==null;var ue=u!==null&&u.memoizedState!==null,we=da,je=Yn;if(da=we||S,Yn=je||ue,_r(i,o),Yn=je,da=we,Hr(o),p&8192)e:for(i=o.stateNode,i._visibility=S?i._visibility&-2:i._visibility|1,S&&(u===null||ue||da||Yn||Di(o)),u=null,i=o;;){if(i.tag===5||i.tag===26){if(u===null){ue=u=i;try{if(M=ue.stateNode,S)W=M.style,typeof W.setProperty=="function"?W.setProperty("display","none","important"):W.display="none";else{ee=ue.stateNode;var qe=ue.memoizedProps.style,Ee=qe!=null&&qe.hasOwnProperty("display")?qe.display:null;ee.style.display=Ee==null||typeof Ee=="boolean"?"":(""+Ee).trim()}}catch(st){yn(ue,ue.return,st)}}}else if(i.tag===6){if(u===null){ue=i;try{ue.stateNode.nodeValue=S?"":ue.memoizedProps}catch(st){yn(ue,ue.return,st)}}}else if(i.tag===18){if(u===null){ue=i;try{var Te=ue.stateNode;S?Vx(Te,!0):Vx(ue.stateNode,!1)}catch(st){yn(ue,ue.return,st)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}p&4&&(p=o.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,df(o,u))));break;case 19:_r(i,o),Hr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,df(o,p)));break;case 30:break;case 21:break;default:_r(i,o),Hr(o)}}function Hr(o){var i=o.flags;if(i&2){try{for(var u,p=o.return;p!==null;){if(k$(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var S=u.stateNode,M=Sh(o);uf(o,M,S);break;case 5:var W=u.stateNode;u.flags&32&&(Fo(W,""),u.flags&=-33);var ee=Sh(o);uf(o,ee,W);break;case 3:case 4:var ue=u.stateNode.containerInfo,we=Sh(o);Ch(o,we,ue);break;default:throw Error(r(161))}}catch(je){yn(o,o.return,je)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function Z$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;Z$(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function ma(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Y$(o,i.alternate,i),i=i.sibling}function Di(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:ka(4,i,i.return),Di(i);break;case 1:qo(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&V$(i,i.return,u),Di(i);break;case 27:Tc(i.stateNode);case 26:case 5:qo(i,i.return),Di(i);break;case 22:i.memoizedState===null&&Di(i);break;case 30:Di(i);break;default:Di(i)}o=o.sibling}}function pa(o,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var p=i.alternate,S=o,M=i,W=M.flags;switch(M.tag){case 0:case 11:case 15:pa(S,M,u),bc(4,M);break;case 1:if(pa(S,M,u),p=M,S=p.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(we){yn(p,p.return,we)}if(p=M,S=p.updateQueue,S!==null){var ee=p.stateNode;try{var ue=S.shared.hiddenCallbacks;if(ue!==null)for(S.shared.hiddenCallbacks=null,S=0;S<ue.length;S++)OC(ue[S],ee)}catch(we){yn(p,p.return,we)}}u&&W&64&&L$(M),vc(M,M.return);break;case 27:W$(M);case 26:case 5:pa(S,M,u),u&&p===null&&W&4&&F$(M),vc(M,M.return);break;case 12:pa(S,M,u);break;case 31:pa(S,M,u),u&&W&4&&X$(S,M);break;case 13:pa(S,M,u),u&&W&4&&K$(S,M);break;case 22:M.memoizedState===null&&pa(S,M,u),vc(M,M.return);break;case 30:break;default:pa(S,M,u)}i=i.sibling}}function xh(o,i){var u=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==u&&(o!=null&&o.refCount++,u!=null&&ac(u))}function wh(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&ac(o))}function No(o,i,u,p){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)J$(o,i,u,p),i=i.sibling}function J$(o,i,u,p){var S=i.flags;switch(i.tag){case 0:case 11:case 15:No(o,i,u,p),S&2048&&bc(9,i);break;case 1:No(o,i,u,p);break;case 3:No(o,i,u,p),S&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&ac(o)));break;case 12:if(S&2048){No(o,i,u,p),o=i.stateNode;try{var M=i.memoizedProps,W=M.id,ee=M.onPostCommit;typeof ee=="function"&&ee(W,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ue){yn(i,i.return,ue)}}else No(o,i,u,p);break;case 31:No(o,i,u,p);break;case 13:No(o,i,u,p);break;case 23:break;case 22:M=i.stateNode,W=i.alternate,i.memoizedState!==null?M._visibility&2?No(o,i,u,p):Sc(o,i):M._visibility&2?No(o,i,u,p):(M._visibility|=2,Bl(o,i,u,p,(i.subtreeFlags&10256)!==0||!1)),S&2048&&xh(W,i);break;case 24:No(o,i,u,p),S&2048&&wh(i.alternate,i);break;default:No(o,i,u,p)}}function Bl(o,i,u,p,S){for(S=S&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var M=o,W=i,ee=u,ue=p,we=W.flags;switch(W.tag){case 0:case 11:case 15:Bl(M,W,ee,ue,S),bc(8,W);break;case 23:break;case 22:var je=W.stateNode;W.memoizedState!==null?je._visibility&2?Bl(M,W,ee,ue,S):Sc(M,W):(je._visibility|=2,Bl(M,W,ee,ue,S)),S&&we&2048&&xh(W.alternate,W);break;case 24:Bl(M,W,ee,ue,S),S&&we&2048&&wh(W.alternate,W);break;default:Bl(M,W,ee,ue,S)}i=i.sibling}}function Sc(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=o,p=i,S=p.flags;switch(p.tag){case 22:Sc(u,p),S&2048&&xh(p.alternate,p);break;case 24:Sc(u,p),S&2048&&wh(p.alternate,p);break;default:Sc(u,p)}i=i.sibling}}var Cc=8192;function Ll(o,i,u){if(o.subtreeFlags&Cc)for(o=o.child;o!==null;)ex(o,i,u),o=o.sibling}function ex(o,i,u){switch(o.tag){case 26:Ll(o,i,u),o.flags&Cc&&o.memoizedState!==null&&NP(u,Oo,o.memoizedState,o.memoizedProps);break;case 5:Ll(o,i,u);break;case 3:case 4:var p=Oo;Oo=Ef(o.stateNode.containerInfo),Ll(o,i,u),Oo=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=Cc,Cc=16777216,Ll(o,i,u),Cc=p):Ll(o,i,u));break;default:Ll(o,i,u)}}function tx(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function $c(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var p=i[u];sr=p,rx(p,o)}tx(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)nx(o),o=o.sibling}function nx(o){switch(o.tag){case 0:case 11:case 15:$c(o),o.flags&2048&&ka(9,o,o.return);break;case 3:$c(o);break;case 12:$c(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,ff(o)):$c(o);break;default:$c(o)}}function ff(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var p=i[u];sr=p,rx(p,o)}tx(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:ka(8,i,i.return),ff(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,ff(i));break;default:ff(i)}o=o.sibling}}function rx(o,i){for(;sr!==null;){var u=sr;switch(u.tag){case 0:case 11:case 15:ka(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:ac(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,sr=p;else e:for(u=o;sr!==null;){p=sr;var S=p.sibling,M=p.return;if(U$(p),p===u){sr=null;break e}if(S!==null){S.return=M,sr=S;break e}sr=M}}}var qI={getCacheForType:function(o){var i=yr(kn),u=i.data.get(o);return u===void 0&&(u=o(),i.data.set(o,u)),u},cacheSignal:function(){return yr(kn).controller.signal}},YI=typeof WeakMap=="function"?WeakMap:Map,ln=0,xn=null,Wt=null,Xt=0,hn=0,Zr=null,Wa=!1,Vl=!1,Eh=!1,ga=0,jn=0,qa=0,ji=0,Mh=0,Jr=0,Fl=0,xc=null,Br=null,Rh=!1,mf=0,ox=0,pf=1/0,gf=null,Ya=null,er=0,Ua=null,kl=null,ha=0,Th=0,Oh=null,ax=null,wc=0,Nh=null;function eo(){return(ln&2)!==0&&Xt!==0?Xt&-Xt:_.T!==null?jh():ut()}function ix(){if(Jr===0)if((Xt&536870912)===0||Zt){var o=Ke;Ke<<=1,(Ke&3932160)===0&&(Ke=262144),Jr=o}else Jr=536870912;return o=Kr.current,o!==null&&(o.flags|=32),Jr}function Lr(o,i,u){(o===xn&&(hn===2||hn===9)||o.cancelPendingCommit!==null)&&(Wl(o,0),Ga(o,Xt,Jr,!1)),De(o,u),((ln&2)===0||o!==xn)&&(o===xn&&((ln&2)===0&&(ji|=u),jn===4&&Ga(o,Xt,Jr,!1)),Yo(o))}function lx(o,i,u){if((ln&6)!==0)throw Error(r(327));var p=!u&&(i&127)===0&&(i&o.expiredLanes)===0||Ct(o,i),S=p?XI(o,i):Ph(o,i,!0),M=p;do{if(S===0){Vl&&!p&&Ga(o,i,0,!1);break}else{if(u=o.current.alternate,M&&!UI(u)){S=Ph(o,i,!1),M=!1;continue}if(S===2){if(M=i,o.errorRecoveryDisabledLanes&M)var W=0;else W=o.pendingLanes&-536870913,W=W!==0?W:W&536870912?536870912:0;if(W!==0){i=W;e:{var ee=o;S=xc;var ue=ee.current.memoizedState.isDehydrated;if(ue&&(Wl(ee,W).flags|=256),W=Ph(ee,W,!1),W!==2){if(Eh&&!ue){ee.errorRecoveryDisabledLanes|=M,ji|=M,S=4;break e}M=Br,Br=S,M!==null&&(Br===null?Br=M:Br.push.apply(Br,M))}S=W}if(M=!1,S!==2)continue}}if(S===1){Wl(o,0),Ga(o,i,0,!0);break}e:{switch(p=o,M=S,M){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Ga(p,i,Jr,!Wa);break e;case 2:Br=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(S=mf+300-Se(),10<S)){if(Ga(p,i,Jr,!Wa),lt(p,0,!0)!==0)break e;ha=i,p.timeoutHandle=Hx(sx.bind(null,p,u,Br,gf,Rh,i,Jr,ji,Fl,Wa,M,"Throttled",-0,0),S);break e}sx(p,u,Br,gf,Rh,i,Jr,ji,Fl,Wa,M,null,-0,0)}}break}while(!0);Yo(o)}function sx(o,i,u,p,S,M,W,ee,ue,we,je,qe,Ee,Te){if(o.timeoutHandle=-1,qe=i.subtreeFlags,qe&8192||(qe&16785408)===16785408){qe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ro},ex(i,M,qe);var st=(M&62914560)===M?mf-Se():(M&4194048)===M?ox-Se():0;if(st=IP(qe,st),st!==null){ha=M,o.cancelPendingCommit=st(hx.bind(null,o,i,M,u,p,S,W,ee,ue,je,qe,null,Ee,Te)),Ga(o,M,W,!we);return}}hx(o,i,M,u,p,S,W,ee,ue)}function UI(o){for(var i=o;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var S=u[p],M=S.getSnapshot;S=S.value;try{if(!Gr(M(),S))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ga(o,i,u,p){i&=~Mh,i&=~ji,o.suspendedLanes|=i,o.pingedLanes&=~i,p&&(o.warmLanes|=i),p=o.expirationTimes;for(var S=i;0<S;){var M=31-Fe(S),W=1<<M;p[M]=-1,S&=~W}u!==0&&We(o,u,i)}function hf(){return(ln&6)===0?(Ec(0),!1):!0}function Ih(){if(Wt!==null){if(hn===0)var o=Wt.return;else o=Wt,aa=Ri=null,Ug(o),Al=null,lc=0,o=Wt;for(;o!==null;)B$(o.alternate,o),o=o.return;Wt=null}}function Wl(o,i){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,mP(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ha=0,Ih(),xn=o,Wt=u=ra(o.current,null),Xt=i,hn=0,Zr=null,Wa=!1,Vl=Ct(o,i),Eh=!1,Fl=Jr=Mh=ji=qa=jn=0,Br=xc=null,Rh=!1,(i&8)!==0&&(i|=i&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=i;0<p;){var S=31-Fe(p),M=1<<S;i|=o[S],p&=~M}return ga=i,jd(),u}function cx(o,i){Dt=null,_.H=gc,i===zl||i===Wd?(i=EC(),hn=3):i===Dg?(i=EC(),hn=4):hn=i===ch?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Zr=i,Wt===null&&(jn=1,of(o,co(i,o.current)))}function ux(){var o=Kr.current;return o===null?!0:(Xt&4194048)===Xt?po===null:(Xt&62914560)===Xt||(Xt&536870912)!==0?o===po:!1}function dx(){var o=_.H;return _.H=gc,o===null?gc:o}function fx(){var o=_.A;return _.A=qI,o}function yf(){jn=4,Wa||(Xt&4194048)!==Xt&&Kr.current!==null||(Vl=!0),(qa&134217727)===0&&(ji&134217727)===0||xn===null||Ga(xn,Xt,Jr,!1)}function Ph(o,i,u){var p=ln;ln|=2;var S=dx(),M=fx();(xn!==o||Xt!==i)&&(gf=null,Wl(o,i)),i=!1;var W=jn;e:do try{if(hn!==0&&Wt!==null){var ee=Wt,ue=Zr;switch(hn){case 8:Ih(),W=6;break e;case 3:case 2:case 9:case 6:Kr.current===null&&(i=!0);var we=hn;if(hn=0,Zr=null,ql(o,ee,ue,we),u&&Vl){W=0;break e}break;default:we=hn,hn=0,Zr=null,ql(o,ee,ue,we)}}GI(),W=jn;break}catch(je){cx(o,je)}while(!0);return i&&o.shellSuspendCounter++,aa=Ri=null,ln=p,_.H=S,_.A=M,Wt===null&&(xn=null,Xt=0,jd()),W}function GI(){for(;Wt!==null;)mx(Wt)}function XI(o,i){var u=ln;ln|=2;var p=dx(),S=fx();xn!==o||Xt!==i?(gf=null,pf=Se()+500,Wl(o,i)):Vl=Ct(o,i);e:do try{if(hn!==0&&Wt!==null){i=Wt;var M=Zr;t:switch(hn){case 1:hn=0,Zr=null,ql(o,i,M,1);break;case 2:case 9:if(xC(M)){hn=0,Zr=null,px(i);break}i=function(){hn!==2&&hn!==9||xn!==o||(hn=7),Yo(o)},M.then(i,i);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:xC(M)?(hn=0,Zr=null,px(i)):(hn=0,Zr=null,ql(o,i,M,7));break;case 5:var W=null;switch(Wt.tag){case 26:W=Wt.memoizedState;case 5:case 27:var ee=Wt;if(W?Jx(W):ee.stateNode.complete){hn=0,Zr=null;var ue=ee.sibling;if(ue!==null)Wt=ue;else{var we=ee.return;we!==null?(Wt=we,bf(we)):Wt=null}break t}}hn=0,Zr=null,ql(o,i,M,5);break;case 6:hn=0,Zr=null,ql(o,i,M,6);break;case 8:Ih(),jn=6;break e;default:throw Error(r(462))}}KI();break}catch(je){cx(o,je)}while(!0);return aa=Ri=null,_.H=p,_.A=S,ln=u,Wt!==null?0:(xn=null,Xt=0,jd(),jn)}function KI(){for(;Wt!==null&&!xe();)mx(Wt)}function mx(o){var i=_$(o.alternate,o,ga);o.memoizedProps=o.pendingProps,i===null?bf(o):Wt=i}function px(o){var i=o,u=i.alternate;switch(i.tag){case 15:case 0:i=I$(u,i,i.pendingProps,i.type,void 0,Xt);break;case 11:i=I$(u,i,i.pendingProps,i.type.render,i.ref,Xt);break;case 5:Ug(i);default:B$(u,i),i=Wt=fC(i,ga),i=_$(u,i,ga)}o.memoizedProps=o.pendingProps,i===null?bf(o):Wt=i}function ql(o,i,u,p){aa=Ri=null,Ug(i),Al=null,lc=0;var S=i.return;try{if(HI(o,S,i,u,Xt)){jn=1,of(o,co(u,o.current)),Wt=null;return}}catch(M){if(S!==null)throw Wt=S,M;jn=1,of(o,co(u,o.current)),Wt=null;return}i.flags&32768?(Zt||p===1?o=!0:Vl||(Xt&536870912)!==0?o=!1:(Wa=o=!0,(p===2||p===9||p===3||p===6)&&(p=Kr.current,p!==null&&p.tag===13&&(p.flags|=16384))),gx(i,o)):bf(i)}function bf(o){var i=o;do{if((i.flags&32768)!==0){gx(i,Wa);return}o=i.return;var u=VI(i.alternate,i,ga);if(u!==null){Wt=u;return}if(i=i.sibling,i!==null){Wt=i;return}Wt=i=o}while(i!==null);jn===0&&(jn=5)}function gx(o,i){do{var u=FI(o.alternate,o);if(u!==null){u.flags&=32767,Wt=u;return}if(u=o.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(o=o.sibling,o!==null)){Wt=o;return}Wt=o=u}while(o!==null);jn=6,Wt=null}function hx(o,i,u,p,S,M,W,ee,ue){o.cancelPendingCommit=null;do vf();while(er!==0);if((ln&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(M=i.lanes|i.childLanes,M|=Sg,ze(o,u,M,W,ee,ue),o===xn&&(Wt=xn=null,Xt=0),kl=i,Ua=o,ha=u,Th=M,Oh=S,ax=p,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,eP(Ye,function(){return Cx(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||p){p=_.T,_.T=null,S=j.p,j.p=2,W=ln,ln|=4;try{kI(o,i,u)}finally{ln=W,j.p=S,_.T=p}}er=1,yx(),bx(),vx()}}function yx(){if(er===1){er=0;var o=Ua,i=kl,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=_.T,_.T=null;var p=j.p;j.p=2;var S=ln;ln|=4;try{Q$(i,o);var M=Wh,W=rC(o.containerInfo),ee=M.focusedElem,ue=M.selectionRange;if(W!==ee&&ee&&ee.ownerDocument&&nC(ee.ownerDocument.documentElement,ee)){if(ue!==null&&gg(ee)){var we=ue.start,je=ue.end;if(je===void 0&&(je=we),"selectionStart"in ee)ee.selectionStart=we,ee.selectionEnd=Math.min(je,ee.value.length);else{var qe=ee.ownerDocument||document,Ee=qe&&qe.defaultView||window;if(Ee.getSelection){var Te=Ee.getSelection(),st=ee.textContent.length,St=Math.min(ue.start,st),Cn=ue.end===void 0?St:Math.min(ue.end,st);!Te.extend&&St>Cn&&(W=Cn,Cn=St,St=W);var ye=tC(ee,St),me=tC(ee,Cn);if(ye&&me&&(Te.rangeCount!==1||Te.anchorNode!==ye.node||Te.anchorOffset!==ye.offset||Te.focusNode!==me.node||Te.focusOffset!==me.offset)){var $e=qe.createRange();$e.setStart(ye.node,ye.offset),Te.removeAllRanges(),St>Cn?(Te.addRange($e),Te.extend(me.node,me.offset)):($e.setEnd(me.node,me.offset),Te.addRange($e))}}}}for(qe=[],Te=ee;Te=Te.parentNode;)Te.nodeType===1&&qe.push({element:Te,left:Te.scrollLeft,top:Te.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<qe.length;ee++){var Le=qe[ee];Le.element.scrollLeft=Le.left,Le.element.scrollTop=Le.top}}If=!!kh,Wh=kh=null}finally{ln=S,j.p=p,_.T=u}}o.current=i,er=2}}function bx(){if(er===2){er=0;var o=Ua,i=kl,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=_.T,_.T=null;var p=j.p;j.p=2;var S=ln;ln|=4;try{Y$(o,i.alternate,i)}finally{ln=S,j.p=p,_.T=u}}er=3}}function vx(){if(er===4||er===3){er=0,de();var o=Ua,i=kl,u=ha,p=ax;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?er=5:(er=0,kl=Ua=null,Sx(o,o.pendingLanes));var S=o.pendingLanes;if(S===0&&(Ya=null),at(u),i=i.stateNode,Pe&&typeof Pe.onCommitFiberRoot=="function")try{Pe.onCommitFiberRoot(Ue,i,void 0,(i.current.flags&128)===128)}catch{}if(p!==null){i=_.T,S=j.p,j.p=2,_.T=null;try{for(var M=o.onRecoverableError,W=0;W<p.length;W++){var ee=p[W];M(ee.value,{componentStack:ee.stack})}}finally{_.T=i,j.p=S}}(ha&3)!==0&&vf(),Yo(o),S=o.pendingLanes,(u&261930)!==0&&(S&42)!==0?o===Nh?wc++:(wc=0,Nh=o):wc=0,Ec(0)}}function Sx(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,ac(i)))}function vf(){return yx(),bx(),vx(),Cx()}function Cx(){if(er!==5)return!1;var o=Ua,i=Th;Th=0;var u=at(ha),p=_.T,S=j.p;try{j.p=32>u?32:u,_.T=null,u=Oh,Oh=null;var M=Ua,W=ha;if(er=0,kl=Ua=null,ha=0,(ln&6)!==0)throw Error(r(331));var ee=ln;if(ln|=4,nx(M.current),J$(M,M.current,W,u),ln=ee,Ec(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(Ue,M)}catch{}return!0}finally{j.p=S,_.T=p,Sx(o,i)}}function $x(o,i,u){i=co(u,i),i=sh(o.stateNode,i,2),o=La(o,i,2),o!==null&&(De(o,2),Yo(o))}function yn(o,i,u){if(o.tag===3)$x(o,o,u);else for(;i!==null;){if(i.tag===3){$x(i,o,u);break}else if(i.tag===1){var p=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Ya===null||!Ya.has(p))){o=co(u,o),u=x$(2),p=La(i,u,2),p!==null&&(w$(u,p,i,o),De(p,2),Yo(p));break}}i=i.return}}function zh(o,i,u){var p=o.pingCache;if(p===null){p=o.pingCache=new YI;var S=new Set;p.set(i,S)}else S=p.get(i),S===void 0&&(S=new Set,p.set(i,S));S.has(u)||(Eh=!0,S.add(u),o=QI.bind(null,o,i,u),i.then(o,o))}function QI(o,i,u){var p=o.pingCache;p!==null&&p.delete(i),o.pingedLanes|=o.suspendedLanes&u,o.warmLanes&=~u,xn===o&&(Xt&u)===u&&(jn===4||jn===3&&(Xt&62914560)===Xt&&300>Se()-mf?(ln&2)===0&&Wl(o,0):Mh|=u,Fl===Xt&&(Fl=0)),Yo(o)}function xx(o,i){i===0&&(i=ke()),o=wi(o,i),o!==null&&(De(o,i),Yo(o))}function ZI(o){var i=o.memoizedState,u=0;i!==null&&(u=i.retryLane),xx(o,u)}function JI(o,i){var u=0;switch(o.tag){case 31:case 13:var p=o.stateNode,S=o.memoizedState;S!==null&&(u=S.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(i),xx(o,u)}function eP(o,i){return Ne(o,i)}var Sf=null,Yl=null,Ah=!1,Cf=!1,Dh=!1,Xa=0;function Yo(o){o!==Yl&&o.next===null&&(Yl===null?Sf=Yl=o:Yl=Yl.next=o),Cf=!0,Ah||(Ah=!0,nP())}function Ec(o,i){if(!Dh&&Cf){Dh=!0;do for(var u=!1,p=Sf;p!==null;){if(o!==0){var S=p.pendingLanes;if(S===0)var M=0;else{var W=p.suspendedLanes,ee=p.pingedLanes;M=(1<<31-Fe(42|o)+1)-1,M&=S&~(W&~ee),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(u=!0,Rx(p,M))}else M=Xt,M=lt(p,p===xn?M:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(M&3)===0||Ct(p,M)||(u=!0,Rx(p,M));p=p.next}while(u);Dh=!1}}function tP(){wx()}function wx(){Cf=Ah=!1;var o=0;Xa!==0&&fP()&&(o=Xa);for(var i=Se(),u=null,p=Sf;p!==null;){var S=p.next,M=Ex(p,i);M===0?(p.next=null,u===null?Sf=S:u.next=S,S===null&&(Yl=u)):(u=p,(o!==0||(M&3)!==0)&&(Cf=!0)),p=S}er!==0&&er!==5||Ec(o),Xa!==0&&(Xa=0)}function Ex(o,i){for(var u=o.suspendedLanes,p=o.pingedLanes,S=o.expirationTimes,M=o.pendingLanes&-62914561;0<M;){var W=31-Fe(M),ee=1<<W,ue=S[W];ue===-1?((ee&u)===0||(ee&p)!==0)&&(S[W]=$t(ee,i)):ue<=i&&(o.expiredLanes|=ee),M&=~ee}if(i=xn,u=Xt,u=lt(o,o===i?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,u===0||o===i&&(hn===2||hn===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&ve(p),o.callbackNode=null,o.callbackPriority=0;if((u&3)===0||Ct(o,u)){if(i=u&-u,i===o.callbackPriority)return i;switch(p!==null&&ve(p),at(u)){case 2:case 8:u=Ie;break;case 32:u=Ye;break;case 268435456:u=He;break;default:u=Ye}return p=Mx.bind(null,o),u=Ne(u,p),o.callbackPriority=i,o.callbackNode=u,i}return p!==null&&p!==null&&ve(p),o.callbackPriority=2,o.callbackNode=null,2}function Mx(o,i){if(er!==0&&er!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(vf()&&o.callbackNode!==u)return null;var p=Xt;return p=lt(o,o===xn?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(lx(o,p,i),Ex(o,Se()),o.callbackNode!=null&&o.callbackNode===u?Mx.bind(null,o):null)}function Rx(o,i){if(vf())return null;lx(o,i,!0)}function nP(){pP(function(){(ln&6)!==0?Ne(Ae,tP):wx()})}function jh(){if(Xa===0){var o=Il;o===0&&(o=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),Xa=o}return Xa}function Tx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Cl(""+o)}function Ox(o,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,o.id&&u.setAttribute("form",o.id),i.parentNode.insertBefore(u,i),o=new FormData(o),u.parentNode.removeChild(u),o}function rP(o,i,u,p,S){if(i==="submit"&&u&&u.stateNode===S){var M=Tx((S[mn]||null).action),W=p.submitter;W&&(i=(i=W[mn]||null)?Tx(i.formAction):W.getAttribute("formAction"),i!==null&&(M=i,W=null));var ee=new Pd("action","action",null,p,S);o.push({event:ee,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Xa!==0){var ue=W?Ox(S,W):new FormData(S);nh(u,{pending:!0,data:ue,method:S.method,action:M},null,ue)}}else typeof M=="function"&&(ee.preventDefault(),ue=W?Ox(S,W):new FormData(S),nh(u,{pending:!0,data:ue,method:S.method,action:M},M,ue))},currentTarget:S}]})}}for(var _h=0;_h<vg.length;_h++){var Hh=vg[_h],oP=Hh.toLowerCase(),aP=Hh[0].toUpperCase()+Hh.slice(1);To(oP,"on"+aP)}To(iC,"onAnimationEnd"),To(lC,"onAnimationIteration"),To(sC,"onAnimationStart"),To("dblclick","onDoubleClick"),To("focusin","onFocus"),To("focusout","onBlur"),To(CI,"onTransitionRun"),To($I,"onTransitionStart"),To(xI,"onTransitionCancel"),To(cC,"onTransitionEnd"),Qn("onMouseEnter",["mouseout","mouseover"]),Qn("onMouseLeave",["mouseout","mouseover"]),Qn("onPointerEnter",["pointerout","pointerover"]),Qn("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mc="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(" "),iP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mc));function Nx(o,i){i=(i&4)!==0;for(var u=0;u<o.length;u++){var p=o[u],S=p.event;p=p.listeners;e:{var M=void 0;if(i)for(var W=p.length-1;0<=W;W--){var ee=p[W],ue=ee.instance,we=ee.currentTarget;if(ee=ee.listener,ue!==M&&S.isPropagationStopped())break e;M=ee,S.currentTarget=we;try{M(S)}catch(je){Dd(je)}S.currentTarget=null,M=ue}else for(W=0;W<p.length;W++){if(ee=p[W],ue=ee.instance,we=ee.currentTarget,ee=ee.listener,ue!==M&&S.isPropagationStopped())break e;M=ee,S.currentTarget=we;try{M(S)}catch(je){Dd(je)}S.currentTarget=null,M=ue}}}}function qt(o,i){var u=i[pt];u===void 0&&(u=i[pt]=new Set);var p=o+"__bubble";u.has(p)||(Ix(i,o,2,!1),u.add(p))}function Bh(o,i,u){var p=0;i&&(p|=4),Ix(u,o,p,i)}var $f="_reactListening"+Math.random().toString(36).slice(2);function Lh(o){if(!o[$f]){o[$f]=!0,Cr.forEach(function(u){u!=="selectionchange"&&(iP.has(u)||Bh(u,!1,o),Bh(u,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[$f]||(i[$f]=!0,Bh("selectionchange",!1,i))}}function Ix(o,i,u,p){switch(iw(i)){case 2:var S=AP;break;case 8:S=DP;break;default:S=ty}u=S.bind(null,i,u,o),S=void 0,!ig||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(S=!0),p?S!==void 0?o.addEventListener(i,u,{capture:!0,passive:S}):o.addEventListener(i,u,!0):S!==void 0?o.addEventListener(i,u,{passive:S}):o.addEventListener(i,u,!1)}function Vh(o,i,u,p,S){var M=p;if((i&1)===0&&(i&2)===0&&p!==null)e:for(;;){if(p===null)return;var W=p.tag;if(W===3||W===4){var ee=p.stateNode.containerInfo;if(ee===S)break;if(W===4)for(W=p.return;W!==null;){var ue=W.tag;if((ue===3||ue===4)&&W.stateNode.containerInfo===S)return;W=W.return}for(;ee!==null;){if(W=Gt(ee),W===null)return;if(ue=W.tag,ue===5||ue===6||ue===26||ue===27){p=M=W;continue e}ee=ee.parentNode}}p=p.return}j1(function(){var we=M,je=vt(u),qe=[];e:{var Ee=uC.get(o);if(Ee!==void 0){var Te=Pd,st=o;switch(o){case"keypress":if(Nd(u)===0)break e;case"keydown":case"keyup":Te=J3;break;case"focusin":st="focus",Te=ug;break;case"focusout":st="blur",Te=ug;break;case"beforeblur":case"afterblur":Te=ug;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=B1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=V3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=nI;break;case iC:case lC:case sC:Te=W3;break;case cC:Te=oI;break;case"scroll":case"scrollend":Te=B3;break;case"wheel":Te=iI;break;case"copy":case"cut":case"paste":Te=Y3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=V1;break;case"toggle":case"beforetoggle":Te=sI}var St=(i&4)!==0,Cn=!St&&(o==="scroll"||o==="scrollend"),ye=St?Ee!==null?Ee+"Capture":null:Ee;St=[];for(var me=we,$e;me!==null;){var Le=me;if($e=Le.stateNode,Le=Le.tag,Le!==5&&Le!==26&&Le!==27||$e===null||ye===null||(Le=Gs(me,ye),Le!=null&&St.push(Rc(me,Le,$e))),Cn)break;me=me.return}0<St.length&&(Ee=new Te(Ee,st,null,u,je),qe.push({event:Ee,listeners:St}))}}if((i&7)===0){e:{if(Ee=o==="mouseover"||o==="pointerover",Te=o==="mouseout"||o==="pointerout",Ee&&u!==kt&&(st=u.relatedTarget||u.fromElement)&&(Gt(st)||st[Tt]))break e;if((Te||Ee)&&(Ee=je.window===je?je:(Ee=je.ownerDocument)?Ee.defaultView||Ee.parentWindow:window,Te?(st=u.relatedTarget||u.toElement,Te=we,st=st?Gt(st):null,st!==null&&(Cn=s(st),St=st.tag,st!==Cn||St!==5&&St!==27&&St!==6)&&(st=null)):(Te=null,st=we),Te!==st)){if(St=B1,Le="onMouseLeave",ye="onMouseEnter",me="mouse",(o==="pointerout"||o==="pointerover")&&(St=V1,Le="onPointerLeave",ye="onPointerEnter",me="pointer"),Cn=Te==null?Ee:pn(Te),$e=st==null?Ee:pn(st),Ee=new St(Le,me+"leave",Te,u,je),Ee.target=Cn,Ee.relatedTarget=$e,Le=null,Gt(je)===we&&(St=new St(ye,me+"enter",st,u,je),St.target=$e,St.relatedTarget=Cn,Le=St),Cn=Le,Te&&st)t:{for(St=lP,ye=Te,me=st,$e=0,Le=ye;Le;Le=St(Le))$e++;Le=0;for(var gt=me;gt;gt=St(gt))Le++;for(;0<$e-Le;)ye=St(ye),$e--;for(;0<Le-$e;)me=St(me),Le--;for(;$e--;){if(ye===me||me!==null&&ye===me.alternate){St=ye;break t}ye=St(ye),me=St(me)}St=null}else St=null;Te!==null&&Px(qe,Ee,Te,St,!1),st!==null&&Cn!==null&&Px(qe,Cn,st,St,!0)}}e:{if(Ee=we?pn(we):window,Te=Ee.nodeName&&Ee.nodeName.toLowerCase(),Te==="select"||Te==="input"&&Ee.type==="file")var on=X1;else if(U1(Ee))if(K1)on=bI;else{on=hI;var dt=gI}else Te=Ee.nodeName,!Te||Te.toLowerCase()!=="input"||Ee.type!=="checkbox"&&Ee.type!=="radio"?we&&Ar(we.elementType)&&(on=X1):on=yI;if(on&&(on=on(o,we))){G1(qe,on,u,je);break e}dt&&dt(o,Ee,we),o==="focusout"&&we&&Ee.type==="number"&&we.memoizedProps.value!=null&&Vo(Ee,"number",Ee.value)}switch(dt=we?pn(we):window,o){case"focusin":(U1(dt)||dt.contentEditable==="true")&&(xl=dt,hg=we,nc=null);break;case"focusout":nc=hg=xl=null;break;case"mousedown":yg=!0;break;case"contextmenu":case"mouseup":case"dragend":yg=!1,oC(qe,u,je);break;case"selectionchange":if(SI)break;case"keydown":case"keyup":oC(qe,u,je)}var Ht;if(fg)e:{switch(o){case"compositionstart":var Kt="onCompositionStart";break e;case"compositionend":Kt="onCompositionEnd";break e;case"compositionupdate":Kt="onCompositionUpdate";break e}Kt=void 0}else $l?q1(o,u)&&(Kt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Kt="onCompositionStart");Kt&&(F1&&u.locale!=="ko"&&($l||Kt!=="onCompositionStart"?Kt==="onCompositionEnd"&&$l&&(Ht=_1()):(za=je,lg="value"in za?za.value:za.textContent,$l=!0)),dt=xf(we,Kt),0<dt.length&&(Kt=new L1(Kt,o,null,u,je),qe.push({event:Kt,listeners:dt}),Ht?Kt.data=Ht:(Ht=Y1(u),Ht!==null&&(Kt.data=Ht)))),(Ht=uI?dI(o,u):fI(o,u))&&(Kt=xf(we,"onBeforeInput"),0<Kt.length&&(dt=new L1("onBeforeInput","beforeinput",null,u,je),qe.push({event:dt,listeners:Kt}),dt.data=Ht)),rP(qe,o,we,u,je)}Nx(qe,i)})}function Rc(o,i,u){return{instance:o,listener:i,currentTarget:u}}function xf(o,i){for(var u=i+"Capture",p=[];o!==null;){var S=o,M=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||M===null||(S=Gs(o,u),S!=null&&p.unshift(Rc(o,S,M)),S=Gs(o,i),S!=null&&p.push(Rc(o,S,M))),o.tag===3)return p;o=o.return}return[]}function lP(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Px(o,i,u,p,S){for(var M=i._reactName,W=[];u!==null&&u!==p;){var ee=u,ue=ee.alternate,we=ee.stateNode;if(ee=ee.tag,ue!==null&&ue===p)break;ee!==5&&ee!==26&&ee!==27||we===null||(ue=we,S?(we=Gs(u,M),we!=null&&W.unshift(Rc(u,we,ue))):S||(we=Gs(u,M),we!=null&&W.push(Rc(u,we,ue)))),u=u.return}W.length!==0&&o.push({event:i,listeners:W})}var sP=/\r\n?/g,cP=/\u0000|\uFFFD/g;function zx(o){return(typeof o=="string"?o:""+o).replace(sP,`
|
|
9
|
+
`).replace(cP,"")}function Ax(o,i){return i=zx(i),zx(o)===i}function Sn(o,i,u,p,S,M){switch(u){case"children":typeof p=="string"?i==="body"||i==="textarea"&&p===""||Fo(o,p):(typeof p=="number"||typeof p=="bigint")&&i!=="body"&&Fo(o,""+p);break;case"className":xr(o,"class",p);break;case"tabIndex":xr(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":xr(o,u,p);break;case"style":Jn(o,p,M);break;case"data":if(i!=="object"){xr(o,"data",p);break}case"src":case"href":if(p===""&&(i!=="a"||u!=="href")){o.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(u);break}p=Cl(""+p),o.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){o.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof M=="function"&&(u==="formAction"?(i!=="input"&&Sn(o,i,"name",S.name,S,null),Sn(o,i,"formEncType",S.formEncType,S,null),Sn(o,i,"formMethod",S.formMethod,S,null),Sn(o,i,"formTarget",S.formTarget,S,null)):(Sn(o,i,"encType",S.encType,S,null),Sn(o,i,"method",S.method,S,null),Sn(o,i,"target",S.target,S,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(u);break}p=Cl(""+p),o.setAttribute(u,p);break;case"onClick":p!=null&&(o.onclick=Ro);break;case"onScroll":p!=null&&qt("scroll",o);break;case"onScrollEnd":p!=null&&qt("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(S.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}u=Cl(""+p),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(u,""+p):o.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(u,""):o.removeAttribute(u);break;case"capture":case"download":p===!0?o.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(u,p):o.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(u,p):o.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(u):o.setAttribute(u,p);break;case"popover":qt("beforetoggle",o),qt("toggle",o),$r(o,"popover",p);break;case"xlinkActuate":Zn(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Zn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Zn(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Zn(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Zn(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Zn(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":$r(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Sl.get(u)||u,$r(o,u,p))}}function Fh(o,i,u,p,S,M){switch(u){case"style":Jn(o,p,M);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(S.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"children":typeof p=="string"?Fo(o,p):(typeof p=="number"||typeof p=="bigint")&&Fo(o,""+p);break;case"onScroll":p!=null&&qt("scroll",o);break;case"onScrollEnd":p!=null&&qt("scrollend",o);break;case"onClick":p!=null&&(o.onclick=Ro);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zn.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(S=u.endsWith("Capture"),i=u.slice(2,S?u.length-7:void 0),M=o[mn]||null,M=M!=null?M[u]:null,typeof M=="function"&&o.removeEventListener(i,M,S),typeof p=="function")){typeof M!="function"&&M!==null&&(u in o?o[u]=null:o.hasAttribute(u)&&o.removeAttribute(u)),o.addEventListener(i,p,S);break e}u in o?o[u]=p:p===!0?o.setAttribute(u,""):$r(o,u,p)}}}function vr(o,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",o),qt("load",o);var p=!1,S=!1,M;for(M in u)if(u.hasOwnProperty(M)){var W=u[M];if(W!=null)switch(M){case"src":p=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Sn(o,i,M,W,u,null)}}S&&Sn(o,i,"srcSet",u.srcSet,u,null),p&&Sn(o,i,"src",u.src,u,null);return;case"input":qt("invalid",o);var ee=M=W=S=null,ue=null,we=null;for(p in u)if(u.hasOwnProperty(p)){var je=u[p];if(je!=null)switch(p){case"name":S=je;break;case"type":W=je;break;case"checked":ue=je;break;case"defaultChecked":we=je;break;case"value":M=je;break;case"defaultValue":ee=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(r(137,i));break;default:Sn(o,i,p,je,u,null)}}Ia(o,M,ee,ue,we,W,S,!1);return;case"select":qt("invalid",o),p=W=M=null;for(S in u)if(u.hasOwnProperty(S)&&(ee=u[S],ee!=null))switch(S){case"value":M=ee;break;case"defaultValue":W=ee;break;case"multiple":p=ee;default:Sn(o,i,S,ee,u,null)}i=M,u=W,o.multiple=!!p,i!=null?Ur(o,!!p,i,!1):u!=null&&Ur(o,!!p,u,!0);return;case"textarea":qt("invalid",o),M=S=p=null;for(W in u)if(u.hasOwnProperty(W)&&(ee=u[W],ee!=null))switch(W){case"value":p=ee;break;case"defaultValue":S=ee;break;case"children":M=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:Sn(o,i,W,ee,u,null)}vl(o,p,S,M);return;case"option":for(ue in u)u.hasOwnProperty(ue)&&(p=u[ue],p!=null)&&(ue==="selected"?o.selected=p&&typeof p!="function"&&typeof p!="symbol":Sn(o,i,ue,p,u,null));return;case"dialog":qt("beforetoggle",o),qt("toggle",o),qt("cancel",o),qt("close",o);break;case"iframe":case"object":qt("load",o);break;case"video":case"audio":for(p=0;p<Mc.length;p++)qt(Mc[p],o);break;case"image":qt("error",o),qt("load",o);break;case"details":qt("toggle",o);break;case"embed":case"source":case"link":qt("error",o),qt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(we in u)if(u.hasOwnProperty(we)&&(p=u[we],p!=null))switch(we){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Sn(o,i,we,p,u,null)}return;default:if(Ar(i)){for(je in u)u.hasOwnProperty(je)&&(p=u[je],p!==void 0&&Fh(o,i,je,p,u,void 0));return}}for(ee in u)u.hasOwnProperty(ee)&&(p=u[ee],p!=null&&Sn(o,i,ee,p,u,null))}function uP(o,i,u,p){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,M=null,W=null,ee=null,ue=null,we=null,je=null;for(Te in u){var qe=u[Te];if(u.hasOwnProperty(Te)&&qe!=null)switch(Te){case"checked":break;case"value":break;case"defaultValue":ue=qe;default:p.hasOwnProperty(Te)||Sn(o,i,Te,null,p,qe)}}for(var Ee in p){var Te=p[Ee];if(qe=u[Ee],p.hasOwnProperty(Ee)&&(Te!=null||qe!=null))switch(Ee){case"type":M=Te;break;case"name":S=Te;break;case"checked":we=Te;break;case"defaultChecked":je=Te;break;case"value":W=Te;break;case"defaultValue":ee=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,i));break;default:Te!==qe&&Sn(o,i,Ee,Te,p,qe)}}lo(o,W,ee,ue,we,je,M,S);return;case"select":Te=W=ee=Ee=null;for(M in u)if(ue=u[M],u.hasOwnProperty(M)&&ue!=null)switch(M){case"value":break;case"multiple":Te=ue;default:p.hasOwnProperty(M)||Sn(o,i,M,null,p,ue)}for(S in p)if(M=p[S],ue=u[S],p.hasOwnProperty(S)&&(M!=null||ue!=null))switch(S){case"value":Ee=M;break;case"defaultValue":ee=M;break;case"multiple":W=M;default:M!==ue&&Sn(o,i,S,M,p,ue)}i=ee,u=W,p=Te,Ee!=null?Ur(o,!!u,Ee,!1):!!p!=!!u&&(i!=null?Ur(o,!!u,i,!0):Ur(o,!!u,u?[]:"",!1));return;case"textarea":Te=Ee=null;for(ee in u)if(S=u[ee],u.hasOwnProperty(ee)&&S!=null&&!p.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:Sn(o,i,ee,null,p,S)}for(W in p)if(S=p[W],M=u[W],p.hasOwnProperty(W)&&(S!=null||M!=null))switch(W){case"value":Ee=S;break;case"defaultValue":Te=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:S!==M&&Sn(o,i,W,S,p,M)}Pa(o,Ee,Te);return;case"option":for(var st in u)Ee=u[st],u.hasOwnProperty(st)&&Ee!=null&&!p.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:Sn(o,i,st,null,p,Ee));for(ue in p)Ee=p[ue],Te=u[ue],p.hasOwnProperty(ue)&&Ee!==Te&&(Ee!=null||Te!=null)&&(ue==="selected"?o.selected=Ee&&typeof Ee!="function"&&typeof Ee!="symbol":Sn(o,i,ue,Ee,p,Te));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var St in u)Ee=u[St],u.hasOwnProperty(St)&&Ee!=null&&!p.hasOwnProperty(St)&&Sn(o,i,St,null,p,Ee);for(we in p)if(Ee=p[we],Te=u[we],p.hasOwnProperty(we)&&Ee!==Te&&(Ee!=null||Te!=null))switch(we){case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,i));break;default:Sn(o,i,we,Ee,p,Te)}return;default:if(Ar(i)){for(var Cn in u)Ee=u[Cn],u.hasOwnProperty(Cn)&&Ee!==void 0&&!p.hasOwnProperty(Cn)&&Fh(o,i,Cn,void 0,p,Ee);for(je in p)Ee=p[je],Te=u[je],!p.hasOwnProperty(je)||Ee===Te||Ee===void 0&&Te===void 0||Fh(o,i,je,Ee,p,Te);return}}for(var ye in u)Ee=u[ye],u.hasOwnProperty(ye)&&Ee!=null&&!p.hasOwnProperty(ye)&&Sn(o,i,ye,null,p,Ee);for(qe in p)Ee=p[qe],Te=u[qe],!p.hasOwnProperty(qe)||Ee===Te||Ee==null&&Te==null||Sn(o,i,qe,Ee,p,Te)}function Dx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dP(){if(typeof performance.getEntriesByType=="function"){for(var o=0,i=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var S=u[p],M=S.transferSize,W=S.initiatorType,ee=S.duration;if(M&&ee&&Dx(W)){for(W=0,ee=S.responseEnd,p+=1;p<u.length;p++){var ue=u[p],we=ue.startTime;if(we>ee)break;var je=ue.transferSize,qe=ue.initiatorType;je&&Dx(qe)&&(ue=ue.responseEnd,W+=je*(ue<ee?1:(ee-we)/(ue-we)))}if(--p,i+=8*(M+W)/(S.duration/1e3),o++,10<o)break}}if(0<o)return i/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var kh=null,Wh=null;function wf(o){return o.nodeType===9?o:o.ownerDocument}function jx(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _x(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function qh(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Yh=null;function fP(){var o=window.event;return o&&o.type==="popstate"?o===Yh?!1:(Yh=o,!0):(Yh=null,!1)}var Hx=typeof setTimeout=="function"?setTimeout:void 0,mP=typeof clearTimeout=="function"?clearTimeout:void 0,Bx=typeof Promise=="function"?Promise:void 0,pP=typeof queueMicrotask=="function"?queueMicrotask:typeof Bx<"u"?function(o){return Bx.resolve(null).then(o).catch(gP)}:Hx;function gP(o){setTimeout(function(){throw o})}function Ka(o){return o==="head"}function Lx(o,i){var u=i,p=0;do{var S=u.nextSibling;if(o.removeChild(u),S&&S.nodeType===8)if(u=S.data,u==="/$"||u==="/&"){if(p===0){o.removeChild(S),Kl(i);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Tc(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,Tc(u);for(var M=u.firstChild;M;){var W=M.nextSibling,ee=M.nodeName;M[Ut]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&M.rel.toLowerCase()==="stylesheet"||u.removeChild(M),M=W}}else u==="body"&&Tc(o.ownerDocument.body);u=S}while(u);Kl(i)}function Vx(o,i){var u=o;o=0;do{var p=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(o===0)break;o--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||o++;u=p}while(u)}function Uh(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Uh(u),rn(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function hP(o,i,u,p){for(;o.nodeType===1;){var S=u;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[Ut])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(M=o.getAttribute("rel"),M==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(M!==S.rel||o.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||o.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||o.getAttribute("title")!==(S.title==null?null:S.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(M=o.getAttribute("src"),(M!==(S.src==null?null:S.src)||o.getAttribute("type")!==(S.type==null?null:S.type)||o.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&M&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var M=S.name==null?null:""+S.name;if(S.type==="hidden"&&o.getAttribute("name")===M)return o}else return o;if(o=go(o.nextSibling),o===null)break}return null}function yP(o,i,u){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=go(o.nextSibling),o===null))return null;return o}function Fx(o,i){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!i||(o=go(o.nextSibling),o===null))return null;return o}function Gh(o){return o.data==="$?"||o.data==="$~"}function Xh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function bP(o,i){var u=o.ownerDocument;if(o.data==="$~")o._reactRetry=i;else if(o.data!=="$?"||u.readyState!=="loading")i();else{var p=function(){i(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function go(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return o}var Kh=null;function kx(o){o=o.nextSibling;for(var i=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(i===0)return go(o.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}o=o.nextSibling}return null}function Wx(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return o;i--}else u!=="/$"&&u!=="/&"||i++}o=o.previousSibling}return null}function qx(o,i,u){switch(i=wf(u),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Tc(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);rn(o)}var ho=new Map,Yx=new Set;function Ef(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ya=j.d;j.d={f:vP,r:SP,D:CP,C:$P,L:xP,m:wP,X:MP,S:EP,M:RP};function vP(){var o=ya.f(),i=hf();return o||i}function SP(o){var i=cn(o);i!==null&&i.tag===5&&i.type==="form"?c$(i):ya.r(o)}var Ul=typeof document>"u"?null:document;function Ux(o,i,u){var p=Ul;if(p&&typeof i=="string"&&i){var S=xt(i);S='link[rel="'+o+'"][href="'+S+'"]',typeof u=="string"&&(S+='[crossorigin="'+u+'"]'),Yx.has(S)||(Yx.add(S),o={rel:o,crossOrigin:u,href:i},p.querySelector(S)===null&&(i=p.createElement("link"),vr(i,"link",o),gn(i),p.head.appendChild(i)))}}function CP(o){ya.D(o),Ux("dns-prefetch",o,null)}function $P(o,i){ya.C(o,i),Ux("preconnect",o,i)}function xP(o,i,u){ya.L(o,i,u);var p=Ul;if(p&&o&&i){var S='link[rel="preload"][as="'+xt(i)+'"]';i==="image"&&u&&u.imageSrcSet?(S+='[imagesrcset="'+xt(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(S+='[imagesizes="'+xt(u.imageSizes)+'"]')):S+='[href="'+xt(o)+'"]';var M=S;switch(i){case"style":M=Gl(o);break;case"script":M=Xl(o)}ho.has(M)||(o=h({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:o,as:i},u),ho.set(M,o),p.querySelector(S)!==null||i==="style"&&p.querySelector(Oc(M))||i==="script"&&p.querySelector(Nc(M))||(i=p.createElement("link"),vr(i,"link",o),gn(i),p.head.appendChild(i)))}}function wP(o,i){ya.m(o,i);var u=Ul;if(u&&o){var p=i&&typeof i.as=="string"?i.as:"script",S='link[rel="modulepreload"][as="'+xt(p)+'"][href="'+xt(o)+'"]',M=S;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Xl(o)}if(!ho.has(M)&&(o=h({rel:"modulepreload",href:o},i),ho.set(M,o),u.querySelector(S)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Nc(M)))return}p=u.createElement("link"),vr(p,"link",o),gn(p),u.head.appendChild(p)}}}function EP(o,i,u){ya.S(o,i,u);var p=Ul;if(p&&o){var S=gr(p).hoistableStyles,M=Gl(o);i=i||"default";var W=S.get(M);if(!W){var ee={loading:0,preload:null};if(W=p.querySelector(Oc(M)))ee.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":i},u),(u=ho.get(M))&&Qh(o,u);var ue=W=p.createElement("link");gn(ue),vr(ue,"link",o),ue._p=new Promise(function(we,je){ue.onload=we,ue.onerror=je}),ue.addEventListener("load",function(){ee.loading|=1}),ue.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,Mf(W,i,p)}W={type:"stylesheet",instance:W,count:1,state:ee},S.set(M,W)}}}function MP(o,i){ya.X(o,i);var u=Ul;if(u&&o){var p=gr(u).hoistableScripts,S=Xl(o),M=p.get(S);M||(M=u.querySelector(Nc(S)),M||(o=h({src:o,async:!0},i),(i=ho.get(S))&&Zh(o,i),M=u.createElement("script"),gn(M),vr(M,"link",o),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},p.set(S,M))}}function RP(o,i){ya.M(o,i);var u=Ul;if(u&&o){var p=gr(u).hoistableScripts,S=Xl(o),M=p.get(S);M||(M=u.querySelector(Nc(S)),M||(o=h({src:o,async:!0,type:"module"},i),(i=ho.get(S))&&Zh(o,i),M=u.createElement("script"),gn(M),vr(M,"link",o),u.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},p.set(S,M))}}function Gx(o,i,u,p){var S=(S=Z.current)?Ef(S):null;if(!S)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=Gl(u.href),u=gr(S).hoistableStyles,p=u.get(i),p||(p={type:"style",instance:null,count:0,state:null},u.set(i,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){o=Gl(u.href);var M=gr(S).hoistableStyles,W=M.get(o);if(W||(S=S.ownerDocument||S,W={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(o,W),(M=S.querySelector(Oc(o)))&&!M._p&&(W.instance=M,W.state.loading=5),ho.has(o)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ho.set(o,u),M||TP(S,o,u,W.state))),i&&p===null)throw Error(r(528,""));return W}if(i&&p!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Xl(u),u=gr(S).hoistableScripts,p=u.get(i),p||(p={type:"script",instance:null,count:0,state:null},u.set(i,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Gl(o){return'href="'+xt(o)+'"'}function Oc(o){return'link[rel="stylesheet"]['+o+"]"}function Xx(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function TP(o,i,u,p){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?p.loading=1:(i=o.createElement("link"),p.preload=i,i.addEventListener("load",function(){return p.loading|=1}),i.addEventListener("error",function(){return p.loading|=2}),vr(i,"link",u),gn(i),o.head.appendChild(i))}function Xl(o){return'[src="'+xt(o)+'"]'}function Nc(o){return"script[async]"+o}function Kx(o,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var p=o.querySelector('style[data-href~="'+xt(u.href)+'"]');if(p)return i.instance=p,gn(p),p;var S=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),gn(p),vr(p,"style",S),Mf(p,u.precedence,o),i.instance=p;case"stylesheet":S=Gl(u.href);var M=o.querySelector(Oc(S));if(M)return i.state.loading|=4,i.instance=M,gn(M),M;p=Xx(u),(S=ho.get(S))&&Qh(p,S),M=(o.ownerDocument||o).createElement("link"),gn(M);var W=M;return W._p=new Promise(function(ee,ue){W.onload=ee,W.onerror=ue}),vr(M,"link",p),i.state.loading|=4,Mf(M,u.precedence,o),i.instance=M;case"script":return M=Xl(u.src),(S=o.querySelector(Nc(M)))?(i.instance=S,gn(S),S):(p=u,(S=ho.get(M))&&(p=h({},u),Zh(p,S)),o=o.ownerDocument||o,S=o.createElement("script"),gn(S),vr(S,"link",p),o.head.appendChild(S),i.instance=S);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(p=i.instance,i.state.loading|=4,Mf(p,u.precedence,o));return i.instance}function Mf(o,i,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=p.length?p[p.length-1]:null,M=S,W=0;W<p.length;W++){var ee=p[W];if(ee.dataset.precedence===i)M=ee;else if(M!==S)break}M?M.parentNode.insertBefore(o,M.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(o,i.firstChild))}function Qh(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function Zh(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Rf=null;function Qx(o,i,u){if(Rf===null){var p=new Map,S=Rf=new Map;S.set(u,p)}else S=Rf,p=S.get(u),p||(p=new Map,S.set(u,p));if(p.has(o))return p;for(p.set(o,null),u=u.getElementsByTagName(o),S=0;S<u.length;S++){var M=u[S];if(!(M[Ut]||M[Et]||o==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var W=M.getAttribute(i)||"";W=o+W;var ee=p.get(W);ee?ee.push(M):p.set(W,[M])}}return p}function Zx(o,i,u){o=o.ownerDocument||o,o.head.insertBefore(u,i==="title"?o.querySelector("head > title"):null)}function OP(o,i,u){if(u===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(o=i.disabled,typeof i.precedence=="string"&&o==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Jx(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function NP(o,i,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var S=Gl(p.href),M=i.querySelector(Oc(S));if(M){i=M._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(o.count++,o=Tf.bind(o),i.then(o,o)),u.state.loading|=4,u.instance=M,gn(M);return}M=i.ownerDocument||i,p=Xx(p),(S=ho.get(S))&&Qh(p,S),M=M.createElement("link"),gn(M);var W=M;W._p=new Promise(function(ee,ue){W.onload=ee,W.onerror=ue}),vr(M,"link",p),u.instance=M}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(o.count++,u=Tf.bind(o),i.addEventListener("load",u),i.addEventListener("error",u))}}var Jh=0;function IP(o,i){return o.stylesheets&&o.count===0&&Nf(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var p=setTimeout(function(){if(o.stylesheets&&Nf(o,o.stylesheets),o.unsuspend){var M=o.unsuspend;o.unsuspend=null,M()}},6e4+i);0<o.imgBytes&&Jh===0&&(Jh=62500*dP());var S=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Nf(o,o.stylesheets),o.unsuspend)){var M=o.unsuspend;o.unsuspend=null,M()}},(o.imgBytes>Jh?50:800)+i);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(p),clearTimeout(S)}}:null}function Tf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Of=null;function Nf(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Of=new Map,i.forEach(PP,o),Of=null,Tf.call(o))}function PP(o,i){if(!(i.state.loading&4)){var u=Of.get(o);if(u)var p=u.get(null);else{u=new Map,Of.set(o,u);for(var S=o.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<S.length;M++){var W=S[M];(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")&&(u.set(W.dataset.precedence,W),p=W)}p&&u.set(null,p)}S=i.instance,W=S.getAttribute("data-precedence"),M=u.get(W)||p,M===p&&u.set(null,S),u.set(W,S),this.count++,p=Tf.bind(this),S.addEventListener("load",p),S.addEventListener("error",p),M?M.parentNode.insertBefore(S,M.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(S,o.firstChild)),i.state.loading|=4}}var Ic={$$typeof:w,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function zP(o,i,u,p,S,M,W,ee,ue){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=p,this.onUncaughtError=S,this.onCaughtError=M,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ue,this.incompleteTransitions=new Map}function ew(o,i,u,p,S,M,W,ee,ue,we,je,qe){return o=new zP(o,i,u,W,ue,we,je,qe,ee),i=1,M===!0&&(i|=24),M=Xr(3,null,null,i),o.current=M,M.stateNode=o,i=Pg(),i.refCount++,o.pooledCache=i,i.refCount++,M.memoizedState={element:p,isDehydrated:u,cache:i},jg(M),o}function tw(o){return o?(o=Ml,o):Ml}function nw(o,i,u,p,S,M){S=tw(S),p.context===null?p.context=S:p.pendingContext=S,p=Ba(i),p.payload={element:u},M=M===void 0?null:M,M!==null&&(p.callback=M),u=La(o,p,i),u!==null&&(Lr(u,o,i),cc(u,o,i))}function rw(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<i?u:i}}function ey(o,i){rw(o,i),(o=o.alternate)&&rw(o,i)}function ow(o){if(o.tag===13||o.tag===31){var i=wi(o,67108864);i!==null&&Lr(i,o,67108864),ey(o,67108864)}}function aw(o){if(o.tag===13||o.tag===31){var i=eo();i=Qe(i);var u=wi(o,i);u!==null&&Lr(u,o,i),ey(o,i)}}var If=!0;function AP(o,i,u,p){var S=_.T;_.T=null;var M=j.p;try{j.p=2,ty(o,i,u,p)}finally{j.p=M,_.T=S}}function DP(o,i,u,p){var S=_.T;_.T=null;var M=j.p;try{j.p=8,ty(o,i,u,p)}finally{j.p=M,_.T=S}}function ty(o,i,u,p){if(If){var S=ny(p);if(S===null)Vh(o,i,p,Pf,u),lw(o,p);else if(_P(S,o,i,u,p))p.stopPropagation();else if(lw(o,p),i&4&&-1<jP.indexOf(o)){for(;S!==null;){var M=cn(S);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var W=ot(M.pendingLanes);if(W!==0){var ee=M;for(ee.pendingLanes|=2,ee.entangledLanes|=2;W;){var ue=1<<31-Fe(W);ee.entanglements[1]|=ue,W&=~ue}Yo(M),(ln&6)===0&&(pf=Se()+500,Ec(0))}}break;case 31:case 13:ee=wi(M,2),ee!==null&&Lr(ee,M,2),hf(),ey(M,2)}if(M=ny(p),M===null&&Vh(o,i,p,Pf,u),M===S)break;S=M}S!==null&&p.stopPropagation()}else Vh(o,i,p,null,u)}}function ny(o){return o=vt(o),ry(o)}var Pf=null;function ry(o){if(Pf=null,o=Gt(o),o!==null){var i=s(o);if(i===null)o=null;else{var u=i.tag;if(u===13){if(o=c(i),o!==null)return o;o=null}else if(u===31){if(o=d(i),o!==null)return o;o=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Pf=o,null}function iw(o){switch(o){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Me()){case Ae:return 2;case Ie:return 8;case Ye:case Ze:return 32;case He:return 268435456;default:return 32}default:return 32}}var oy=!1,Qa=null,Za=null,Ja=null,Pc=new Map,zc=new Map,ei=[],jP="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".split(" ");function lw(o,i){switch(o){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":Pc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":zc.delete(i.pointerId)}}function Ac(o,i,u,p,S,M){return o===null||o.nativeEvent!==M?(o={blockedOn:i,domEventName:u,eventSystemFlags:p,nativeEvent:M,targetContainers:[S]},i!==null&&(i=cn(i),i!==null&&ow(i)),o):(o.eventSystemFlags|=p,i=o.targetContainers,S!==null&&i.indexOf(S)===-1&&i.push(S),o)}function _P(o,i,u,p,S){switch(i){case"focusin":return Qa=Ac(Qa,o,i,u,p,S),!0;case"dragenter":return Za=Ac(Za,o,i,u,p,S),!0;case"mouseover":return Ja=Ac(Ja,o,i,u,p,S),!0;case"pointerover":var M=S.pointerId;return Pc.set(M,Ac(Pc.get(M)||null,o,i,u,p,S)),!0;case"gotpointercapture":return M=S.pointerId,zc.set(M,Ac(zc.get(M)||null,o,i,u,p,S)),!0}return!1}function sw(o){var i=Gt(o.target);if(i!==null){var u=s(i);if(u!==null){if(i=u.tag,i===13){if(i=c(u),i!==null){o.blockedOn=i,_t(o.priority,function(){aw(u)});return}}else if(i===31){if(i=d(u),i!==null){o.blockedOn=i,_t(o.priority,function(){aw(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function zf(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var u=ny(o.nativeEvent);if(u===null){u=o.nativeEvent;var p=new u.constructor(u.type,u);kt=p,u.target.dispatchEvent(p),kt=null}else return i=cn(u),i!==null&&ow(i),o.blockedOn=u,!1;i.shift()}return!0}function cw(o,i,u){zf(o)&&u.delete(i)}function HP(){oy=!1,Qa!==null&&zf(Qa)&&(Qa=null),Za!==null&&zf(Za)&&(Za=null),Ja!==null&&zf(Ja)&&(Ja=null),Pc.forEach(cw),zc.forEach(cw)}function Af(o,i){o.blockedOn===i&&(o.blockedOn=null,oy||(oy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,HP)))}var Df=null;function uw(o){Df!==o&&(Df=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Df===o&&(Df=null);for(var i=0;i<o.length;i+=3){var u=o[i],p=o[i+1],S=o[i+2];if(typeof p!="function"){if(ry(p||u)===null)continue;break}var M=cn(u);M!==null&&(o.splice(i,3),i-=3,nh(M,{pending:!0,data:S,method:u.method,action:p},p,S))}}))}function Kl(o){function i(ue){return Af(ue,o)}Qa!==null&&Af(Qa,o),Za!==null&&Af(Za,o),Ja!==null&&Af(Ja,o),Pc.forEach(i),zc.forEach(i);for(var u=0;u<ei.length;u++){var p=ei[u];p.blockedOn===o&&(p.blockedOn=null)}for(;0<ei.length&&(u=ei[0],u.blockedOn===null);)sw(u),u.blockedOn===null&&ei.shift();if(u=(o.ownerDocument||o).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var S=u[p],M=u[p+1],W=S[mn]||null;if(typeof M=="function")W||uw(u);else if(W){var ee=null;if(M&&M.hasAttribute("formAction")){if(S=M,W=M[mn]||null)ee=W.formAction;else if(ry(S)!==null)continue}else ee=W.action;typeof ee=="function"?u[p+1]=ee:(u.splice(p,3),p-=3),uw(u)}}}function dw(){function o(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(W){return S=W})},focusReset:"manual",scroll:"manual"})}function i(){S!==null&&(S(),S=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,S=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),S!==null&&(S(),S=null)}}}function ay(o){this._internalRoot=o}jf.prototype.render=ay.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,p=eo();nw(u,p,o,i,null,null)},jf.prototype.unmount=ay.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;nw(o.current,2,null,o,null,null),hf(),i[Tt]=null}};function jf(o){this._internalRoot=o}jf.prototype.unstable_scheduleHydration=function(o){if(o){var i=ut();o={blockedOn:null,target:o,priority:i};for(var u=0;u<ei.length&&i!==0&&i<ei[u].priority;u++);ei.splice(u,0,o),u===0&&sw(o)}};var fw=t.version;if(fw!=="19.2.4")throw Error(r(527,fw,"19.2.4"));j.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=m(i),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var BP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_f.isDisabled&&_f.supportsFiber)try{Ue=_f.inject(BP),Pe=_f}catch{}}return jc.createRoot=function(o,i){if(!a(o))throw Error(r(299));var u=!1,p="",S=v$,M=S$,W=C$;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(S=i.onUncaughtError),i.onCaughtError!==void 0&&(M=i.onCaughtError),i.onRecoverableError!==void 0&&(W=i.onRecoverableError)),i=ew(o,1,!1,null,null,u,p,null,S,M,W,dw),o[Tt]=i.current,Lh(o),new ay(i)},jc.hydrateRoot=function(o,i,u){if(!a(o))throw Error(r(299));var p=!1,S="",M=v$,W=S$,ee=C$,ue=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onUncaughtError!==void 0&&(M=u.onUncaughtError),u.onCaughtError!==void 0&&(W=u.onCaughtError),u.onRecoverableError!==void 0&&(ee=u.onRecoverableError),u.formState!==void 0&&(ue=u.formState)),i=ew(o,1,!0,i,u??null,p,S,ue,M,W,ee,dw),i.context=tw(null),u=i.current,p=eo(),p=Qe(p),S=Ba(p),S.callback=null,La(u,S,p),u=p,i.current.lanes=u,De(i,u),Yo(i),o[Tt]=i.current,Lh(o),new jf(i)},jc.version="19.2.4",jc}var $w;function KP(){if($w)return sy.exports;$w=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sy.exports=XP(),sy.exports}var l4=KP();function ct(e){const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>t.current?.(...r),[])}function kr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const xw=kr()?l.useLayoutEffect:l.useEffect,Pt=(e,t)=>{const n=l.useRef(!0);xw(()=>e(n.current),t),xw(()=>(n.current=!1,()=>{n.current=!0}),[])},s4=(e,t)=>{Pt(n=>{if(!n)return e()},t)};function Bm(e){const t=l.useRef(!1),[n,r]=l.useState(e);l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function a(s,c){c&&t.current||r(s)}return[n,a]}function Yt(e,t){const[n,r]=l.useState(e),a=t!==void 0?t:n;return Pt(s=>{s||r(t)},[t]),[a,r]}var fy={exports:{}},dn={};var ww;function QP(){if(ww)return dn;ww=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function $(C){if(typeof C=="object"&&C!==null){var x=C.$$typeof;switch(x){case e:switch(C=C.type,C){case n:case a:case r:case m:case g:return C;default:switch(C=C&&C.$$typeof,C){case d:case c:case f:case y:case h:case s:return C;default:return x}}case t:return x}}}return dn.ContextConsumer=c,dn.ContextProvider=s,dn.Element=e,dn.ForwardRef=f,dn.Fragment=n,dn.Lazy=y,dn.Memo=h,dn.Portal=t,dn.Profiler=a,dn.StrictMode=r,dn.Suspense=m,dn.SuspenseList=g,dn.isAsyncMode=function(){return!1},dn.isConcurrentMode=function(){return!1},dn.isContextConsumer=function(C){return $(C)===c},dn.isContextProvider=function(C){return $(C)===s},dn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},dn.isForwardRef=function(C){return $(C)===f},dn.isFragment=function(C){return $(C)===n},dn.isLazy=function(C){return $(C)===y},dn.isMemo=function(C){return $(C)===h},dn.isPortal=function(C){return $(C)===t},dn.isProfiler=function(C){return $(C)===a},dn.isStrictMode=function(C){return $(C)===r},dn.isSuspense=function(C){return $(C)===m},dn.isSuspenseList=function(C){return $(C)===g},dn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===a||C===r||C===m||C===g||C===v||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===h||C.$$typeof===s||C.$$typeof===c||C.$$typeof===f||C.$$typeof===b||C.getModuleId!==void 0)},dn.typeOf=$,dn}var Ew;function ZP(){return Ew||(Ew=1,fy.exports=QP()),fy.exports}var my=ZP();function ld(e,t,n){const r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const JP=Symbol.for("react.element"),ez=Symbol.for("react.transitional.element"),tz=Symbol.for("react.fragment");function c4(e){return e&&typeof e=="object"&&(e.$$typeof===JP||e.$$typeof===ez)&&e.type===tz}const nz=Number(l.version.split(".")[0]),rz=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},ir=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{rz(r,n)})}},Ta=(...e)=>ld(()=>ir(...e),e,(t,n)=>t.length!==n.length||t.every((r,a)=>r!==n[a])),ul=e=>{if(!e)return!1;if(wS(e)&&nz>=19)return!0;const t=my.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==my.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==my.ForwardRef)};function wS(e){return l.isValidElement(e)&&!c4(e)}const oz=e=>wS(e)&&ul(e),yi=e=>{if(e&&wS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Ao(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function u4(e,t,n,r){if(!t.length)return n;const[a,...s]=t;let c;return!e&&typeof a=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},r&&n===void 0&&s.length===1?delete c[a][s[0]]:c[a]=u4(c[a],s,n,r),c}function So(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Ao(e,t.slice(0,-1))?e:u4(e,t,n,r)}function az(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Mw(e){return Array.isArray(e)?[]:{}}const iz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function d4(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let a=Mw(e[0]);return e.forEach(s=>{function c(d,f){const m=new Set(f),g=Ao(s,d),h=Array.isArray(g);if(h||az(g)){if(!m.has(g)){m.add(g);const y=Ao(a,d);h?a=So(a,d,r(y,g)):(!y||typeof y!="object")&&(a=So(a,d,Mw(g))),iz(g).forEach(v=>{Object.getOwnPropertyDescriptor(g,v).enumerable&&c([...d,v],m)})}}else a=So(a,d,g)}c([])}),a}function Ca(...e){return d4(e)}let yb={};const lz=e=>{};function sz(e,t){}function cz(e,t){}function uz(){yb={}}function f4(e,t,n){!t&&!yb[n]&&(e(!1,n),yb[n]=!0)}function rr(e,t){f4(sz,e,t)}function dz(e,t){f4(cz,e,t)}rr.preMessage=lz;rr.resetWarned=uz;rr.noteOnce=dz;function nn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function mr(e,t={}){let n=[];return ie.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(mr(r)):c4(r)&&r.props?n=n.concat(mr(r.props.children,t)):n.push(r))}),n}const fz=l.createContext({});function xs(e){return e instanceof HTMLElement||e instanceof SVGElement}function ws(e){return e&&typeof e=="object"&&xs(e.nativeElement)?e.nativeElement:xs(e)?e:null}const bb=l.createContext(null);function mz({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),a=l.useContext(bb),s=l.useCallback((c,d,f)=>{n.current+=1;const m=n.current;r.current.push({size:c,element:d,data:f}),Promise.resolve().then(()=>{m===n.current&&(t?.(r.current),r.current=[])}),a?.(c,d,f)},[t,a]);return l.createElement(bb.Provider,{value:s},e)}const ci=new Map;function pz(e){e.forEach(t=>{const{target:n}=t;ci.get(n)?.forEach(r=>r(n))})}let py;function m4(){return py||(py=new ResizeObserver(pz)),py}function gz(e,t){ci.has(e)||(ci.set(e,new Set),m4().observe(e)),ci.get(e).add(t)}function hz(e,t){ci.has(e)&&(ci.get(e).delete(t),ci.get(e).size||(m4().unobserve(e),ci.delete(e)))}function p4(e,t,n,r){const a=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=ct(d=>{const{width:f,height:m}=d.getBoundingClientRect(),{offsetWidth:g,offsetHeight:h}=d,y=Math.floor(f),v=Math.floor(m);if(a.current.width!==y||a.current.height!==v||a.current.offsetWidth!==g||a.current.offsetHeight!==h){const b={width:y,height:v,offsetWidth:g,offsetHeight:h};a.current=b;const $=g===Math.round(f)?f:g,C=h===Math.round(m)?m:h,x={...b,offsetWidth:$,offsetHeight:C};r?.(x,d),Promise.resolve().then(()=>{n?.(x,d)})}}),c=typeof t=="function";l.useEffect(()=>{const d=c?t():t;return d&&e&&gz(d,s),()=>{d&&hz(d,s)}},[e,c?0:t])}function yz(e,t){const{children:n,disabled:r,onResize:a,data:s}=e,c=l.useRef(null),d=l.useContext(bb),f=typeof n=="function",m=f?n(c):n,g=!f&&l.isValidElement(m)&&ul(m),h=g?yi(m):null,y=Ta(h,c),v=()=>ws(c.current);return l.useImperativeHandle(t,()=>v()),p4(!r,v,a,(b,$)=>{d?.(b,$,s)}),g?l.cloneElement(m,{ref:y}):m}const bz=l.forwardRef(yz);function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vb.apply(this,arguments)}const vz="rc-observer-key";function Sz(e,t){const{children:n}=e;return(typeof n=="function"?[n]:mr(n)).map((a,s)=>{const c=a?.key||`${vz}-${s}`;return l.createElement(bz,vb({},e,{key:c,ref:s===0?t:void 0}),a)})}const oo=l.forwardRef(Sz);oo.Collection=mz;function g4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=g4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function K(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=g4(e))&&(r&&(r+=" "),r+=t);return r}function Sb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cz(e){if(Array.isArray(e))return Sb(e)}function $z(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h4(e,t){if(e){if(typeof e=="string")return Sb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sb(e,t):void 0}}function xz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function En(e){return Cz(e)||$z(e)||h4(e)||xz()}let y4=e=>+setTimeout(e,16),b4=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(y4=e=>window.requestAnimationFrame(e),b4=e=>window.cancelAnimationFrame(e));let Rw=0;const ES=new Map;function v4(e){ES.delete(e)}const Lt=(e,t=1)=>{Rw+=1;const n=Rw;function r(a){if(a===0)v4(n),e();else{const s=y4(()=>{r(a-1)});ES.set(n,s)}}return r(t),n};Lt.cancel=e=>{const t=ES.get(e);return v4(e),b4(t)};const yu="ant",$p="anticon",wz=["outlined","borderless","filled","underlined"],Ez=(e,t)=>t||(e?`${yu}-${e}`:yu),ft=l.createContext({getPrefixCls:Ez,iconPrefixCls:$p}),{Consumer:Dee}=ft,Tw={};function zt(e){const t=l.useContext(ft),{getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:s}=t,c=t[e];return{classNames:Tw,styles:Tw,...c,getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:s}}function bu(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Cb(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const Ow="data-rc-order",Nw="data-rc-priority",Mz="rc-util-key",$b=new Map;function S4({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Mz}function xp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Rz(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function MS(e){return Array.from(($b.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function C4(e,t={}){if(!kr())return null;const{csp:n,prepend:r,priority:a=0}=t,s=Rz(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(Ow,s),c&&a&&d.setAttribute(Nw,`${a}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;const f=xp(t),{firstChild:m}=f;if(r){if(c){const g=(t.styles||MS(f)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(Ow)))return!1;const y=Number(h.getAttribute(Nw)||0);return a>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,m)}else f.appendChild(d);return d}function $4(e,t={}){let{styles:n}=t;return n||=MS(xp(t)),n.find(r=>r.getAttribute(S4(t))===e)}function vu(e,t={}){const n=$4(e,t);n&&xp(t).removeChild(n)}function Tz(e,t){const n=$b.get(e);if(!n||!Cb(document,n)){const r=C4("",t),{parentNode:a}=r;$b.set(e,a),e.removeChild(r)}}function di(e,t,n={}){const r=xp(n),a=MS(r),s={...n,styles:a};Tz(r,s);const c=$4(t,s);if(c)return s.csp?.nonce&&c.nonce!==s.csp?.nonce&&(c.nonce=s.csp?.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const d=C4(e,s);return d.setAttribute(S4(s),t),d}function Su(e,t,n=!1){const r=new Set;function a(s,c,d=1){const f=r.has(s);if(rr(!f,"Warning: There may be circular references"),f)return!1;if(s===c)return!0;if(n&&d>1)return!1;r.add(s);const m=d+1;if(Array.isArray(s)){if(!Array.isArray(c)||s.length!==c.length)return!1;for(let g=0;g<s.length;g++)if(!a(s[g],c[g],m))return!1;return!0}if(s&&c&&typeof s=="object"&&typeof c=="object"){const g=Object.keys(s);return g.length!==Object.keys(c).length?!1:g.every(h=>a(s[h],c[h],m))}return!1}return a(e,t)}const Oz="%";function xb(e){return e.join(Oz)}let Iw=0;class Nz{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(xb(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(xb(t),n)}opUpdate(t,n){const r=this.cache.get(t),a=n(r);a===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,a),this.updateTimes.set(t,Iw),Iw+=1)}}const RS="data-token-hash",xa="data-css-hash",Ji="__cssinjs_instance__";function Iz(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${xa}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(a=>{a[Ji]||=e,a[Ji]===e&&document.head.insertBefore(a,n)});const r={};Array.from(document.querySelectorAll(`style[${xa}]`)).forEach(a=>{const s=a.getAttribute(xa);r[s]?a[Ji]===e&&a.parentNode?.removeChild(a):r[s]=!0})}return new Nz(e)}const sd=l.createContext({hashPriority:"low",cache:Iz(),defaultCache:!0,autoPrefix:!1});function Pz(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class Lm{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(a=>{r?r=r?.map?.get(a):r=void 0}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Lm.MAX_CACHE_SIZE+Lm.MAX_CACHE_OFFSET){const[a]=this.keys.reduce((s,c)=>{const[,d]=s;return this.internalGet(c)[1]<d?[c,this.internalGet(c)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(a)}this.keys.push(t)}let r=this.cache;t.forEach((a,s)=>{if(s===t.length-1)r.set(a,{value:[n,this.cacheCallTimes++]});else{const c=r.get(a);c?c.map||(c.map=new Map):r.set(a,{map:new Map}),r=r.get(a).map}})}deleteByPath(t,n){const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),r.value?.[0];const a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Pz(n,t)),this.deleteByPath(this.cache,t)}}let Pw=0;class x4{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Pw,t.length===0&&(t.length>0,void 0),Pw+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const gy=new Lm;function wb(e){const t=Array.isArray(e)?e:[e];return gy.has(t)||gy.set(t,new x4(t)),gy.get(t)}const zz=new WeakMap,hy={};function Az(e,t){let n=zz;for(let r=0;r<t.length;r+=1){const a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(hy)||n.set(hy,e()),n.get(hy)}const zw=new WeakMap;function iu(e){let t=zw.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof x4?t+=r.id:r&&typeof r=="object"?t+=iu(r):t+=r}),t=bu(t),zw.set(e,t)),t}function Dz(e,t){return bu(`${t}_${iu(e)}`)}const Eb=kr();function te(e){return typeof e=="number"?`${e}px`:e}function w4(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const jz=e=>e!=null,Sm=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),_z=(e,t,n)=>{const{hashCls:r,hashPriority:a="low"}=n||{};return Object.keys(e).length?`${w4({hashCls:r,hashPriority:a})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([s,c])=>`${s}:${c};`).join("")}}`:""},E4=(e,t,n)=>{const{hashCls:r,hashPriority:a="low",prefix:s,unitless:c,ignore:d,preserve:f}=n||{},m={},g={};return Object.entries(e).forEach(([h,y])=>{if(f?.[h])g[h]=y;else if((typeof y=="string"||typeof y=="number")&&!d?.[h]){const v=Sm(h,s);m[v]=typeof y=="number"&&!c?.[h]?`${y}px`:String(y),g[h]=`var(${v})`}}),[g,_z(m,t,{scope:n?.scope,hashCls:r,hashPriority:a})]},Hf=new Map;function TS(e,t,n,r,a){const{cache:s}=l.useContext(sd),c=[e,...t],d=xb(c),f=h=>{s.opUpdate(d,y=>{const[v=0,b]=y||[void 0,void 0],C=b||n(),x=[v,C];return h?h(x):x})};l.useMemo(()=>{f()},[d]);const g=s.opGet(d)[1];return l.useInsertionEffect(()=>(f(([h,y])=>[h+1,y]),Hf.has(d)||(a?.(g),Hf.set(d,!0),Promise.resolve().then(()=>{Hf.delete(d)})),()=>{s.opUpdate(d,h=>{const[y=0,v]=h||[];return y-1===0?(r?.(v,!1),Hf.delete(d),null):[y-1,v]})}),[d]),g}const Hz={},Bz="css",Yi=new Map;function Lz(e){Yi.set(e,(Yi.get(e)||0)+1)}function Vz(e,t){typeof document<"u"&&document.querySelectorAll(`style[${RS}="${e}"]`).forEach(r=>{r[Ji]===t&&r.parentNode?.removeChild(r)})}const Fz=-1;function kz(e,t){Yi.set(e,(Yi.get(e)||0)-1);const n=new Set;Yi.forEach((r,a)=>{r<=0&&n.add(a)}),Yi.size-n.size>Fz&&n.forEach(r=>{Vz(r,t),Yi.delete(r)})}const Wz=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},qz="token";function Yz(e,t,n){const{cache:{instanceId:r},container:a,hashPriority:s}=l.useContext(sd),{salt:c="",override:d=Hz,formatToken:f,getComputedToken:m,cssVar:g}=n,h=Az(()=>Object.assign({},...t),t),y=iu(h),v=iu(d),b=iu(g);return TS(qz,[c,e.id,y,v,b],()=>{const C=m?m(h,d,e):Wz(h,d,e,f),x={...C},R=`${c}_${g.prefix}`,w=bu(R),E=`${Bz}-${w}`;x._tokenKey=Dz(x,R);const[T,N]=E4(C,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:s,hashCls:g.hashed?E:void 0});return T._hashId=w,Lz(g.key),[T,E,x,N,g.key]},([,,,,C])=>{kz(C,r)},([,,,C,x])=>{if(!C)return;const R=di(C,bu(`css-var-${x}`),{mark:xa,prepend:"queue",attachTo:a,priority:-999});R[Ji]=r,R.setAttribute(RS,x)})}var Uz={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},On="-ms-",lu="-moz-",sn="-webkit-",M4="comm",OS="rule",NS="decl",Gz="@import",Xz="@namespace",R4="@keyframes",Kz="@layer",T4=Math.abs,IS=String.fromCharCode,Mb=Object.assign;function Qz(e,t){return tr(e,0)^45?(((t<<2^tr(e,0))<<2^tr(e,1))<<2^tr(e,2))<<2^tr(e,3):0}function O4(e){return e.trim()}function va(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function Cm(e,t,n){return e.indexOf(t,n)}function tr(e,t){return e.charCodeAt(t)|0}function nl(e,t,n){return e.slice(t,n)}function Po(e){return e.length}function N4(e){return e.length}function Qc(e,t){return t.push(e),e}function Zz(e,t){return e.map(t).join("")}function Aw(e,t){return e.filter(function(n){return!va(n,t)})}var wp=1,Es=1,I4=0,$o=0,Un=0,As="";function Ep(e,t,n,r,a,s,c,d){return{value:e,root:t,parent:n,type:r,props:a,children:s,line:wp,column:Es,length:c,return:"",siblings:d}}function oi(e,t){return Mb(Ep("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ql(e){for(;e.root;)e=oi(e.root,{children:[e]});Qc(e,e.siblings)}function Jz(){return Un}function e8(){return Un=$o>0?tr(As,--$o):0,Es--,Un===10&&(Es=1,wp--),Un}function Do(){return Un=$o<I4?tr(As,$o++):0,Es++,Un===10&&(Es=1,wp++),Un}function ui(){return tr(As,$o)}function $m(){return $o}function Mp(e,t){return nl(As,e,t)}function Cu(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 t8(e){return wp=Es=1,I4=Po(As=e),$o=0,[]}function n8(e){return As="",e}function yy(e){return O4(Mp($o-1,Rb(e===91?e+2:e===40?e+1:e)))}function r8(e){for(;(Un=ui())&&Un<33;)Do();return Cu(e)>2||Cu(Un)>3?"":" "}function o8(e,t){for(;--t&&Do()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return Mp(e,$m()+(t<6&&ui()==32&&Do()==32))}function Rb(e){for(;Do();)switch(Un){case e:return $o;case 34:case 39:e!==34&&e!==39&&Rb(Un);break;case 40:e===41&&Rb(e);break;case 92:Do();break}return $o}function a8(e,t){for(;Do()&&e+Un!==57;)if(e+Un===84&&ui()===47)break;return"/*"+Mp(t,$o-1)+"*"+IS(e===47?e:Do())}function i8(e){for(;!Cu(ui());)Do();return Mp(e,$o)}function Dw(e){return n8(xm("",null,null,null,[""],e=t8(e),0,[0],e))}function xm(e,t,n,r,a,s,c,d,f){for(var m=0,g=0,h=c,y=0,v=0,b=0,$=1,C=1,x=1,R=0,w="",E=a,T=s,N=r,O=w;C;)switch(b=R,R=Do()){case 40:if(b!=108&&tr(O,h-1)==58){Cm(O+=Vt(yy(R),"&","&\f"),"&\f",T4(m?d[m-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:O+=yy(R);break;case 9:case 10:case 13:case 32:O+=r8(b);break;case 92:O+=o8($m()-1,7);continue;case 47:switch(ui()){case 42:case 47:Qc(l8(a8(Do(),$m()),t,n,f),f),(Cu(b||1)==5||Cu(ui()||1)==5)&&Po(O)&&nl(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*$:d[m++]=Po(O)*x;case 125*$:case 59:case 0:switch(R){case 0:case 125:C=0;case 59+g:x==-1&&(O=Vt(O,/\f/g,"")),v>0&&(Po(O)-h||$===0&&b===47)&&Qc(v>32?_w(O+";",r,n,h-1,f):_w(Vt(O," ","")+";",r,n,h-2,f),f);break;case 59:O+=";";default:if(Qc(N=jw(O,t,n,m,g,a,d,w,E=[],T=[],h,s),s),R===123)if(g===0)xm(O,t,N,N,E,s,h,d,T);else{switch(y){case 99:if(tr(O,3)===110)break;case 108:if(tr(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?xm(e,N,N,r&&Qc(jw(e,N,N,0,0,a,d,w,a,E=[],h,T),T),a,T,h,d,r?E:T):xm(O,N,N,N,[""],T,0,d,T)}}m=g=v=0,$=x=1,w=O="",h=c;break;case 58:h=1+Po(O),v=b;default:if($<1){if(R==123)--$;else if(R==125&&$++==0&&e8()==125)continue}switch(O+=IS(R),R*$){case 38:x=g>0?1:(O+="\f",-1);break;case 44:d[m++]=(Po(O)-1)*x,x=1;break;case 64:ui()===45&&(O+=yy(Do())),y=ui(),g=h=Po(w=O+=i8($m())),R++;break;case 45:b===45&&Po(O)==2&&($=0)}}return s}function jw(e,t,n,r,a,s,c,d,f,m,g,h){for(var y=a-1,v=a===0?s:[""],b=N4(v),$=0,C=0,x=0;$<r;++$)for(var R=0,w=nl(e,y+1,y=T4(C=c[$])),E=e;R<b;++R)(E=O4(C>0?v[R]+" "+w:Vt(w,/&\f/g,v[R])))&&(f[x++]=E);return Ep(e,t,n,a===0?OS:d,f,m,g,h)}function l8(e,t,n,r){return Ep(e,t,n,M4,IS(Jz()),nl(e,2,-2),0,r)}function _w(e,t,n,r,a){return Ep(e,t,n,NS,nl(e,0,r),nl(e,r+1,-1),r,a)}function P4(e,t,n){switch(Qz(e,t)){case 5103:return sn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return sn+e+e;case 4855:return sn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return lu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sn+e+lu+e+On+e+e;case 5936:switch(tr(e,t+11)){case 114:return sn+e+On+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sn+e+On+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sn+e+On+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return sn+e+On+e+e;case 6165:return sn+e+On+"flex-"+e+e;case 5187:return sn+e+Vt(e,/(\w+).+(:[^]+)/,sn+"box-$1$2"+On+"flex-$1$2")+e;case 5443:return sn+e+On+"flex-item-"+Vt(e,/flex-|-self/g,"")+(va(e,/flex-|baseline/)?"":On+"grid-row-"+Vt(e,/flex-|-self/g,""))+e;case 4675:return sn+e+On+"flex-line-pack"+Vt(e,/align-content|flex-|-self/g,"")+e;case 5548:return sn+e+On+Vt(e,"shrink","negative")+e;case 5292:return sn+e+On+Vt(e,"basis","preferred-size")+e;case 6060:return sn+"box-"+Vt(e,"-grow","")+sn+e+On+Vt(e,"grow","positive")+e;case 4554:return sn+Vt(e,/([^-])(transform)/g,"$1"+sn+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,sn+"$1"),/(image-set)/,sn+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,sn+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,sn+"box-pack:$3"+On+"flex-pack:$3"),/space-between/,"justify")+sn+e+e;case 4200:if(!va(e,/flex-|baseline/))return On+"grid-column-align"+nl(e,t)+e;break;case 2592:case 3360:return On+Vt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,va(r.props,/grid-\w+-end/)})?~Cm(e+(n=n[t].value),"span",0)?e:On+Vt(e,"-start","")+e+On+"grid-row-span:"+(~Cm(n,"span",0)?va(n,/\d+/):+va(n,/\d+/)-+va(e,/\d+/))+";":On+Vt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return va(r.props,/grid-\w+-start/)})?e:On+Vt(Vt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,sn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Po(e)-1-t>6)switch(tr(e,t+1)){case 109:if(tr(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+sn+"$2-$3$1"+lu+(tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cm(e,"stretch",0)?P4(Vt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,s,c,d,f,m){return On+a+":"+s+m+(c?On+a+"-span:"+(d?f:+f-+s)+m:"")+e});case 4949:if(tr(e,t+6)===121)return Vt(e,":",":"+sn)+e;break;case 6444:switch(tr(e,tr(e,14)===45?18:11)){case 120:return Vt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+sn+(tr(e,14)===45?"inline-":"")+"box$3$1"+sn+"$2$3$1"+On+"$2box$3")+e;case 100:return Vt(e,":",":"+On)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vt(e,"scroll-","scroll-snap-")+e}return e}function $u(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Hw(e,t,n,r){switch(e.type){case Kz:if(e.children.length)break;case Gz:case Xz:case NS:return e.return=e.return||e.value;case M4:return"";case R4:return e.return=e.value+"{"+$u(e.children,r)+"}";case OS:if(!Po(e.value=e.props.join(",")))return""}return Po(n=$u(e.children,r))?e.return=e.value+"{"+n+"}":""}function s8(e){var t=N4(e);return function(n,r,a,s){for(var c="",d=0;d<t;d++)c+=e[d](n,r,a,s)||"";return c}}function c8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case NS:e.return=P4(e.value,e.length,n);return;case R4:return $u([oi(e,{value:Vt(e.value,"@","@"+sn)})],r);case OS:if(e.length)return Zz(n=e.props,function(a){switch(va(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ql(oi(e,{props:[Vt(a,/:(read-\w+)/,":"+lu+"$1")]})),Ql(oi(e,{props:[a]})),Mb(e,{props:Aw(n,r)});break;case"::placeholder":Ql(oi(e,{props:[Vt(a,/:(plac\w+)/,":"+sn+"input-$1")]})),Ql(oi(e,{props:[Vt(a,/:(plac\w+)/,":"+lu+"$1")]})),Ql(oi(e,{props:[Vt(a,/:(plac\w+)/,On+"input-$1")]})),Ql(oi(e,{props:[a]})),Mb(e,{props:Aw(n,r)});break}return""})}}const Bw="data-ant-cssinjs-cache-path",z4="_FILE_STYLE__";let el,A4=!0;function u8(){if(!el&&(el={},kr())){const e=document.createElement("div");e.className=Bw,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[a,s]=r.split(":");el[a]=s});const n=document.querySelector(`style[${Bw}]`);n&&(A4=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function d8(e){return u8(),!!el[e]}function f8(e){const t=el[e];let n=null;if(t&&kr())if(A4)n=z4;else{const r=document.querySelector(`style[${xa}="${el[e]}"]`);r?n=r.innerHTML:delete el[e]}return[n,t]}const m8="_skip_check_",D4="_multi_value_";function by(e,t){return(t?$u(Dw(e),s8([c8,Hw])):$u(Dw(e),Hw)).replace(/\{%%%\:[^;];}/g,";")}function p8(e){return typeof e=="object"&&e&&(m8 in e||D4 in e)}function Lw(e,t,n="high"){if(!t)return e;const r=w4({hashCls:t,hashPriority:n});return e.split(",").map(s=>{const c=s.trim().split(/\s+/);let d=c[0]||"";const f=d.match(/^\w+/)?.[0]||"";return d=`${f}${r}${d.slice(f.length)}`,[d,...c.slice(1)].join(" ")}).join(",")}const Tb=(e,t={},{root:n,injectHash:r,parentSelectors:a}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:c,path:d,hashPriority:f,transformers:m=[],linters:g=[]}=t;let h="",y={};function v(C){const x=C.getName(s);if(!y[x]){const[R]=Tb(C.style,t,{root:!1,parentSelectors:a});y[x]=`@keyframes ${C.getName(s)}${R}`}}function b(C,x=[]){return C.forEach(R=>{Array.isArray(R)?b(R,x):R&&x.push(R)}),x}return b(Array.isArray(e)?e:[e]).forEach(C=>{const x=typeof C=="string"&&!n?{}:C;if(typeof x=="string")h+=`${x}
|
|
11
|
+
`;else if(x._keyframe)v(x);else{const R=m.reduce((w,E)=>E?.visit?.(w)||w,x);Object.keys(R).forEach(w=>{const E=R[w];if(typeof E=="object"&&E&&(w!=="animationName"||!E._keyframe)&&!p8(E)){let T=!1,N=w.trim(),O=!1;(n||r)&&s?N.startsWith("@")?T=!0:N==="&"?N=Lw("",s,f):N=Lw(w,s,f):n&&!s&&(N==="&"||N==="")&&(N="",O=!0);const[P,B]=Tb(E,t,{root:O,injectHash:T,parentSelectors:[...a,N]});y={...y,...B},h+=`${N}${P}`}else{let T=function(O,P){const B=O.replace(/[A-Z]/g,V=>`-${V.toLowerCase()}`);let L=P;!Uz[O]&&typeof L=="number"&&L!==0&&(L=`${L}px`),O==="animationName"&&P?._keyframe&&(v(P),L=P.getName(s)),h+=`${B}:${L};`};const N=E?.value??E;typeof E=="object"&&E?.[D4]&&Array.isArray(N)?N.forEach(O=>{T(w,O)}):jz(N)&&T(w,N)}})}}),n?c&&(h&&(h=`@layer ${c.name} {${h}}`),c.dependencies&&(y[`@layer ${c.name}`]=c.dependencies.map(C=>`@layer ${C}, ${c.name};`).join(`
|
|
12
|
+
`))):h=`{${h}}`,[h,y]};function j4(e,t){return bu(`${e.join("%")}${t}`)}const g8="style";function Ob(e,t){const{path:n,hashId:r,layer:a,nonce:s,clientOnly:c,order:d=0}=e,{mock:f,hashPriority:m,container:g,transformers:h,linters:y,cache:v,layer:b,autoPrefix:$}=l.useContext(sd),C=[r||""];b&&C.push("layer"),C.push(...n);let x=Eb;TS(g8,C,()=>{const R=C.join("|");if(d8(R)){const[P,B]=f8(R);if(P)return[P,B,{},c,d]}const w=t(),[E,T]=Tb(w,{hashId:r,hashPriority:m,layer:b?a:void 0,path:n.join("-"),transformers:h,linters:y}),N=by(E,$||!1),O=j4(C,N);return[N,O,T,c,d]},(R,w)=>{const[,E]=R;w&&Eb&&vu(E,{mark:xa,attachTo:g})},R=>{const[w,E,T,,N]=R;if(x&&w!==z4){const O={mark:xa,prepend:b?!1:"queue",attachTo:g,priority:N},P=typeof s=="function"?s():s;P&&(O.csp={nonce:P});const B=[],L=[];Object.keys(T).forEach(G=>{G.startsWith("@layer")?B.push(G):L.push(G)}),B.forEach(G=>{di(by(T[G],$||!1),`_layer-${G}`,{...O,prepend:!0})});const V=di(w,E,O);V[Ji]=v.instanceId,L.forEach(G=>{di(by(T[G],$||!1),`_effect-${G}`,O)})}})}const h8="cssVar",y8=(e,t)=>{const{key:n,prefix:r,unitless:a,ignore:s,token:c,hashId:d,scope:f=""}=e,{cache:{instanceId:m},container:g,hashPriority:h}=l.useContext(sd),{_tokenKey:y}=c,v=[...e.path,n,f,y];return TS(h8,v,()=>{const $=t(),[C,x]=E4($,n,{prefix:r,unitless:a,ignore:s,scope:f,hashPriority:h,hashCls:d}),R=j4(v,x);return[C,x,R,n]},([,,$])=>{Eb&&vu($,{mark:xa,attachTo:g})},([,$,C])=>{if(!$)return;const x=di($,C,{mark:xa,prepend:"queue",attachTo:g,priority:-999});x[Ji]=m,x.setAttribute(RS,n)})};class jt{name;style;constructor(t,n){this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Zl(e){return e.notSplit=!0,e}Zl(["borderTop","borderBottom"]),Zl(["borderTop"]),Zl(["borderBottom"]),Zl(["borderLeft","borderRight"]),Zl(["borderLeft"]),Zl(["borderRight"]);function Xn(e){"@babel/helpers - typeof";return Xn=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},Xn(e)}function b8(e){if(Array.isArray(e))return e}function v8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function S8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _4(e,t){return b8(e)||v8(e,t)||h4(e,t)||S8()}function C8(e,t){if(Xn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H4(e){var t=C8(e,"string");return Xn(t)=="symbol"?t:t+""}function dr(e,t,n){return(t=H4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vw(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H4(r.key),r)}}function fl(e,t,n){return t&&$8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(e,t){return xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xu(e,t)}function PS(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&&xu(e,t)}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rl(e)}function Rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rp=function(){return!!e})()}function B4(e,t){if(t&&(Xn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vs(e)}function L4(e){var t=Rp();return function(){var n,r=rl(e);if(t){var a=rl(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return B4(this,n)}}var x8=fl(function e(){dl(this,e)}),V4="CALC_UNIT",w8=new RegExp(V4,"g");function vy(e){return typeof e=="number"?"".concat(e).concat(V4):e}var E8=(function(e){PS(n,e);var t=L4(n);function n(r,a){var s;dl(this,n),s=t.call(this),dr(vs(s),"result",""),dr(vs(s),"unitlessCssVar",void 0),dr(vs(s),"lowPriority",void 0);var c=Xn(r);return s.unitlessCssVar=a,r instanceof n?s.result="(".concat(r.result,")"):c==="number"?s.result=vy(r):c==="string"&&(s.result=r),s}return fl(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(vy(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(vy(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var s=this,c=a||{},d=c.unit,f=!0;return typeof d=="boolean"?f=d:Array.from(this.unitlessCssVar).some(function(m){return s.result.includes(m)})&&(f=!1),this.result=this.result.replace(w8,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(x8),M8=function(t,n){var r=E8;return function(a){return new r(a,n)}},Fw=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function kw(e,t,n,r){var a=Hn({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var f=_4(d,2),m=f[0],g=f[1];if(a!=null&&a[m]||a!=null&&a[g]){var h;(h=a[g])!==null&&h!==void 0||(a[g]=a?.[m])}})}var c=Hn(Hn({},n),a);return Object.keys(c).forEach(function(d){c[d]===t[d]&&delete c[d]}),c}var F4=typeof CSSINJS_STATISTIC<"u",Nb=!0;function It(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!F4)return Object.assign.apply(Object,[{}].concat(t));Nb=!1;var r={};return t.forEach(function(a){if(Xn(a)==="object"){var s=Object.keys(a);s.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),Nb=!0,r}var Ww={};function R8(){}var T8=function(t){var n,r=t,a=R8;return F4&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,d){if(Nb){var f;(f=n)===null||f===void 0||f.add(d)}return c[d]}}),a=function(c,d){var f;Ww[c]={global:Array.from(n),component:Hn(Hn({},(f=Ww[c])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:a}};function qw(e,t,n){if(typeof n=="function"){var r;return n(It(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function O8(e){return{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(s){return te(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(s){return te(s)}).join(","),")")}}}var N8=1e3*60*10,I8=(function(){function e(){dl(this,e),dr(this,"map",new Map),dr(this,"objectIDMap",new WeakMap),dr(this,"nextID",0),dr(this,"lastAccessBeat",new Map),dr(this,"accessBeat",0)}return fl(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(s){return s&&Xn(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Xn(s),"_").concat(s)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,s){r-a>N8&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Yw=new I8;function P8(e,t){return ie.useMemo(function(){var n=Yw.get(t);if(n)return n;var r=e();return Yw.set(t,r),r},t)}var z8=function(){return{}};function A8(e){var t=e.useCSP,n=t===void 0?z8:t,r=e.useToken,a=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function f(y,v,b,$){var C=Array.isArray(y)?y[0]:y;function x(P){return"".concat(String(C)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var R=$?.unitless||{},w=typeof d=="function"?d(y):{},E=Hn(Hn({},w),{},dr({},x("zIndexPopup"),!0));Object.keys(R).forEach(function(P){E[x(P)]=R[P]});var T=Hn(Hn({},$),{},{unitless:E,prefixToken:x}),N=g(y,v,b,T),O=m(C,b,T);return function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,L=N(P,B),V=O(B);return[L,V]}}function m(y,v,b){var $=b.unitless,C=b.prefixToken,x=b.ignore;return function(R){var w=r(),E=w.cssVar,T=w.realToken;return y8({path:[y],prefix:E.prefix,key:E.key,unitless:$,ignore:x,token:T,scope:R},function(){var N=qw(y,T,v),O=kw(y,T,N,{deprecatedTokens:b?.deprecatedTokens});return N&&Object.keys(N).forEach(function(P){O[C(P)]=O[P],delete O[P]}),O}),E?.key}}function g(y,v,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(y)?y:[y,y],x=_4(C,1),R=x[0],w=C.join("-"),E=e.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=r(),P=O.theme,B=O.realToken,L=O.hashId,V=O.token,G=O.cssVar,Y=O.zeroRuntime,q=l.useMemo(function(){return Y},[]);if(q)return L;var H=a(),_=H.rootPrefixCls,j=H.iconPrefixCls,I=n(),D="css",F=P8(function(){var Q=new Set;return Object.keys($.unitless||{}).forEach(function(Z){Q.add(Sm(Z,G.prefix)),Q.add(Sm(Z,Fw(R,G.prefix)))}),M8(D,Q)},[D,R,G?.prefix]),A=O8(),z=A.max,k=A.min,X={theme:P,token:V,hashId:L,nonce:function(){return I.nonce},clientOnly:$.clientOnly,layer:E,order:$.order||-999};return typeof s=="function"&&Ob(Hn(Hn({},X),{},{clientOnly:!1,path:["Shared",_]}),function(){return s(V,{prefix:{rootPrefixCls:_,iconPrefixCls:j},csp:I})}),Ob(Hn(Hn({},X),{},{path:[w,T,j]}),function(){if($.injectStyle===!1)return[];var Q=T8(V),Z=Q.token,J=Q.flush,oe=qw(R,B,b),ne=".".concat(T),re=kw(R,B,oe,{deprecatedTokens:$.deprecatedTokens});oe&&Xn(oe)==="object"&&Object.keys(oe).forEach(function(pe){oe[pe]="var(".concat(Sm(pe,Fw(R,G.prefix)),")")});var ce=It(Z,{componentCls:ne,prefixCls:T,iconCls:".".concat(j),antCls:".".concat(_),calc:F,max:z,min:k},oe),fe=v(ce,{hashId:L,prefixCls:T,rootPrefixCls:_,iconPrefixCls:j});J(R,re);var le=typeof c=="function"?c(ce,T,N,$.resetFont):null;return[$.resetStyle===!1?null:le,fe]}),L}}function h(y,v,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=g(y,v,b,Hn({resetStyle:!1,order:-998},$)),x=function(w){var E=w.prefixCls,T=w.rootCls,N=T===void 0?E:T;return C(E,N),null};return x}return{genStyleHooks:f,genSubStyleComponent:h,genComponentStyleHook:g}}const pi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function wm(e){return(e+8)/e}function D8(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,s=e*Math.E**(a/5),c=r>1?Math.floor(s):Math.ceil(s);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:wm(n)}))}const j8="6.2.2",k4={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"},wu={...k4,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
14
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
15
|
+
'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},_8={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},cr=Math.round;function Sy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Uw=(e,t,n)=>n===0?e:e/100;function _c(e,t){const n=t||255;return e>n?n:e<0?0:e}class tn{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(s){return r.startsWith(s)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(a("rgb"))this.fromRgbString(r);else if(a("hsl"))this.fromHslString(r);else if(a("hsv")||a("hsb"))this.fromHsvString(r);else{const s=_8[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof tn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=_c(t.r),this.g=_c(t.g),this.b=_c(t.b),this.a=typeof t.a=="number"?_c(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(s){const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=cr(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(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_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){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,s=d=>(r[d]-this[d])*a+this[d],c={r:cr(s("r")),g:cr(s("g")),b:cr(s("b")),a:cr(s("a")*100)/100};return this._c(c)}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){const n=this._c(t),r=this.a+n.a*(1-this.a),a=s=>cr((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}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="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=cr(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=cr(this.getHSLSaturation()*100),r=cr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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,n,r){const a=this.clone();return a[t]=_c(n,r),a}_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){const n=t.replace("#","");function r(a,s){return parseInt(n[a]+n[s||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){const s=(t%360+360)%360;if(this._h=s,this._hsl_s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const v=cr(r*255);this.r=v,this.g=v,this.b=v;return}let c=0,d=0,f=0;const m=s/60,g=(1-Math.abs(2*r-1))*n,h=g*(1-Math.abs(m%2-1));m>=0&&m<1?(c=g,d=h):m>=1&&m<2?(c=h,d=g):m>=2&&m<3?(d=g,f=h):m>=3&&m<4?(d=h,f=g):m>=4&&m<5?(c=h,f=g):m>=5&&m<6&&(c=g,f=h);const y=r-g/2;this.r=cr((c+y)*255),this.g=cr((d+y)*255),this.b=cr((f+y)*255)}fromHsv({h:t,s:n,v:r,a}){const s=(t%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof a=="number"?a:1;const c=cr(r*255);if(this.r=c,this.g=c,this.b=c,n<=0)return;const d=s/60,f=Math.floor(d),m=d-f,g=cr(r*(1-n)*255),h=cr(r*(1-n*m)*255),y=cr(r*(1-n*(1-m))*255);switch(f){case 0:this.g=y,this.b=g;break;case 1:this.r=h,this.b=g;break;case 2:this.r=g,this.b=y;break;case 3:this.r=g,this.g=h;break;case 4:this.r=y,this.g=g;break;default:this.g=g,this.b=h;break}}fromHsvString(t){const n=Sy(t,Uw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Sy(t,Uw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Sy(t,(r,a)=>a.includes("%")?cr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Bf=2,Gw=.16,H8=.05,B8=.05,L8=.15,W4=5,q4=4,V8=[{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 Xw(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bf*t:Math.round(e.h)+Bf*t:r=n?Math.round(e.h)+Bf*t:Math.round(e.h)-Bf*t,r<0?r+=360:r>=360&&(r-=360),r}function Kw(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Gw*t:t===q4?r=e.s+Gw:r=e.s+H8*t,r>1&&(r=1),n&&t===W4&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Qw(e,t,n){let r;return n?r=e.v+B8*t:r=e.v-L8*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function zS(e,t={}){const n=[],r=new tn(e),a=r.toHsv();for(let s=W4;s>0;s-=1){const c=new tn({h:Xw(a,s,!0),s:Kw(a,s,!0),v:Qw(a,s,!0)});n.push(c)}n.push(r);for(let s=1;s<=q4;s+=1){const c=new tn({h:Xw(a,s),s:Kw(a,s),v:Qw(a,s)});n.push(c)}return t.theme==="dark"?V8.map(({index:s,amount:c})=>new tn(t.backgroundColor||"#141414").mix(n[s],c).toHexString()):n.map(s=>s.toHexString())}const Ss={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"},Ib=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ib.primary=Ib[5];const Pb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Pb.primary=Pb[5];const zb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];zb.primary=zb[5];const Vm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Vm.primary=Vm[5];const Ab=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ab.primary=Ab[5];const Db=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Db.primary=Db[5];const jb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];jb.primary=jb[5];const _b=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_b.primary=_b[5];const Fm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fm.primary=Fm[5];const Hb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Hb.primary=Hb[5];const Bb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Bb.primary=Bb[5];const Lb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Lb.primary=Lb[5];const Vb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Vb.primary=Vb[5];const Cy={red:Ib,volcano:Pb,orange:zb,gold:Vm,yellow:Ab,lime:Db,green:jb,cyan:_b,blue:Fm,geekblue:Hb,purple:Bb,magenta:Lb,grey:Vb};function F8(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:s,colorInfo:c,colorPrimary:d,colorBgBase:f,colorTextBase:m}=e,g=t(d),h=t(r),y=t(a),v=t(s),b=t(c),$=n(f,m),C=e.colorLink||e.colorInfo,x=t(C),R=new tn(v[1]).mix(new tn(v[3]),50).toHexString();return{...$,colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:R,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new tn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const k8=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function W8(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1,...k8(r)}}const q8=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Y8=e=>{const t=D8(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),a=n[1],s=n[0],c=n[2],d=r[1],f=r[0],m=r[2];return{fontSizeSM:s,fontSize:a,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:m,lineHeightSM:f,fontHeight:Math.round(d*a),fontHeightLG:Math.round(m*c),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function U8(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const yo=(e,t)=>new tn(e).setA(t).toRgbString(),Jl=(e,t)=>new tn(e).darken(t).toHexString(),G8=e=>{const t=zS(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]}},X8=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:yo(r,.88),colorTextSecondary:yo(r,.65),colorTextTertiary:yo(r,.45),colorTextQuaternary:yo(r,.25),colorFill:yo(r,.15),colorFillSecondary:yo(r,.06),colorFillTertiary:yo(r,.04),colorFillQuaternary:yo(r,.02),colorBgSolid:yo(r,1),colorBgSolidHover:yo(r,.75),colorBgSolidActive:yo(r,.95),colorBgLayout:Jl(n,4),colorBgContainer:Jl(n,0),colorBgElevated:Jl(n,0),colorBgSpotlight:yo(r,.85),colorBgBlur:"transparent",colorBorder:Jl(n,15),colorBorderDisabled:Jl(n,15),colorBorderSecondary:Jl(n,6)}};function Y4(e){Ss.pink=Ss.magenta,Cy.pink=Cy.magenta;const t=Object.keys(k4).map(n=>{const r=e[n]===Ss[n]?Cy[n]:zS(e[n]);return Array.from({length:10},()=>1).reduce((a,s,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],a),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...F8(e,{generateColorPalettes:G8,generateNeutralColorPalettes:X8}),...Y8(e.fontSize),...U8(e),...q8(e),...W8(e)}}const U4=wb(Y4),km={token:wu,override:{override:wu},hashed:!0},G4=ie.createContext(km);function $y(e){return e>=0&&e<=255}function Zc(e,t){const{r:n,g:r,b:a,a:s}=new tn(e).toRgb();if(s<1)return e;const{r:c,g:d,b:f}=new tn(t).toRgb();for(let m=.01;m<=1;m+=.01){const g=Math.round((n-c*(1-m))/m),h=Math.round((r-d*(1-m))/m),y=Math.round((a-f*(1-m))/m);if($y(g)&&$y(h)&&$y(y))return new tn({r:g,g:h,b:y,a:Math.round(m*100)/100}).toRgbString()}return new tn({r:n,g:r,b:a,a:1}).toRgbString()}function K8(e){const{override:t,...n}=e,r={...t};Object.keys(wu).forEach(y=>{delete r[y]});const a={...n,...r},s=480,c=576,d=768,f=992,m=1200,g=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),{...a,colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Zc(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Zc(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Zc(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Zc(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
16
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
17
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
18
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
19
|
+
`,boxShadowSecondary:`
|
|
20
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowTertiary:`
|
|
24
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
25
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
26
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
27
|
+
`,screenXS:s,screenXSMin:s,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
28
|
+
0 1px 2px -2px ${new tn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
29
|
+
0 3px 6px 0 ${new tn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
30
|
+
0 5px 12px 4px ${new tn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
31
|
+
`,boxShadowDrawerRight:`
|
|
32
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowDrawerLeft:`
|
|
36
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
37
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
38
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
39
|
+
`,boxShadowDrawerUp:`
|
|
40
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
41
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
42
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
43
|
+
`,boxShadowDrawerDown:`
|
|
44
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
45
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
46
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
47
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}const X4={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},Q8={motionBase:!0,motionUnit:!0},Z8={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},K4=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a,...s}=t;let c={...r,override:a};return c=K8(c),s&&Object.entries(s).forEach(([d,f])=>{const{theme:m,...g}=f;let h=g;m&&(h=K4({...c,...g},{override:g},m)),c[d]=h}),c};function qr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a,zeroRuntime:s}=ie.useContext(G4),c={prefix:a?.prefix??"ant",key:a?.key??"css-var-root"},d=`${j8}-${t||""}`,f=n||U4,[m,g,h]=Yz(f,[wu,e],{salt:d,override:r,getComputedToken:K4,cssVar:{...c,unitless:X4,ignore:Q8,preserve:Z8}});return[f,h,t?g:"",m,c,!!s]}const xo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ds=()=>({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"}}),ol=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),J8=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"}}}),e5=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...d,...c,[a]:c}}},jo=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),wo=(e,t)=>({"&:focus-visible":jo(e,t)}),Q4=e=>({[`.${e}`]:{...Ds(),[`.${e} .${e}-icon`]:{display:"block"}}}),Z4=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...wo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:At,genComponentStyleHook:t5,genSubStyleComponent:cd}=A8({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(ft);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a,s]=qr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a,zeroRuntime:s}},useCSP:()=>{const{csp:e}=l.useContext(ft);return e??{}},getResetStyles:(e,t)=>{const n=J8(e);return[n,{"&":n},Q4(t?.prefix.iconPrefixCls??$p)]},getCommonStyle:e5,getCompUnitless:()=>X4}),en=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,c)=>c?`var(${n}${s}, ${c})`:`var(${n}${s})`]};function Tp(e,t){return pi.reduce((n,r)=>{const a=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],d=e[`${r}7`];return{...n,...t(r,{lightColor:a,lightBorderColor:s,darkColor:c,textColor:d})}},{})}const n5=(e,t)=>(qr(),Ob({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Q4(e)));var r5={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"};const AS=l.createContext({});function J4(e){return e?.getRootNode?.()}function o5(e){return J4(e)instanceof ShadowRoot}function Wm(e){return o5(e)?J4(e):null}function a5(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function i5(e,t){rr(e,`[@ant-design/icons] ${t}`)}function Zw(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Jw(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[a5(n)]=r),t},{})}function Fb(e,t,n){return n?ie.createElement(e.tag,{key:t,...Jw(e.attrs),...n},(e.children||[]).map((r,a)=>Fb(r,`${t}-${e.tag}-${a}`))):ie.createElement(e.tag,{key:t,...Jw(e.attrs)},(e.children||[]).map((r,a)=>Fb(r,`${t}-${e.tag}-${a}`)))}function eT(e){return zS(e)[0]}function tT(e){return e?Array.isArray(e)?e:[e]:[]}const l5=`
|
|
48
|
+
.anticon {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
color: inherit;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
line-height: 0;
|
|
54
|
+
text-align: center;
|
|
55
|
+
text-transform: none;
|
|
56
|
+
vertical-align: -0.125em;
|
|
57
|
+
text-rendering: optimizeLegibility;
|
|
58
|
+
-webkit-font-smoothing: antialiased;
|
|
59
|
+
-moz-osx-font-smoothing: grayscale;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.anticon > * {
|
|
63
|
+
line-height: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.anticon svg {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
vertical-align: inherit;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.anticon::before {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.anticon .anticon-icon {
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.anticon[tabindex] {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.anticon-spin::before,
|
|
84
|
+
.anticon-spin {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
87
|
+
animation: loadingCircle 1s infinite linear;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@-webkit-keyframes loadingCircle {
|
|
91
|
+
100% {
|
|
92
|
+
-webkit-transform: rotate(360deg);
|
|
93
|
+
transform: rotate(360deg);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@keyframes loadingCircle {
|
|
98
|
+
100% {
|
|
99
|
+
-webkit-transform: rotate(360deg);
|
|
100
|
+
transform: rotate(360deg);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`,s5=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(AS);let a=l5;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {
|
|
104
|
+
${a}
|
|
105
|
+
}`),l.useEffect(()=>{const s=e.current,c=Wm(s);di(a,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},su={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function c5({primaryColor:e,secondaryColor:t}){su.primaryColor=e,su.secondaryColor=t||eT(e),su.calculated=!!t}function u5(){return{...su}}const js=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:s,secondaryColor:c,...d}=e,f=l.useRef(null);let m=su;if(s&&(m={primaryColor:s,secondaryColor:c||eT(s)}),s5(f),i5(Zw(t),`icon should be icon definiton, but got ${t}`),!Zw(t))return null;let g=t;return g&&typeof g.icon=="function"&&(g={...g,icon:g.icon(m.primaryColor,m.secondaryColor)}),Fb(g.icon,`svg-${g.name}`,{className:n,onClick:r,style:a,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:f})};js.displayName="IconReact";js.getTwoToneColors=u5;js.setTwoToneColors=c5;function nT(e){const[t,n]=tT(e);return js.setTwoToneColors({primaryColor:t,secondaryColor:n})}function d5(){const e=js.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}nT(Fm.primary);const ht=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:a,rotate:s,tabIndex:c,onClick:d,twoToneColor:f,...m}=e,{prefixCls:g="anticon",rootClassName:h}=l.useContext(AS),y=K(h,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!a||r.name==="loading"},n);let v=c;v===void 0&&d&&(v=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[$,C]=tT(f);return l.createElement("span",kb({role:"img","aria-label":r.name},m,{ref:t,tabIndex:v,onClick:d,className:y}),l.createElement(js,{icon:r,primaryColor:$,secondaryColor:C,style:b}))});ht.getTwoToneColor=d5;ht.setTwoToneColor=nT;function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wb.apply(this,arguments)}const f5=(e,t)=>l.createElement(ht,Wb({},e,{ref:t,icon:r5})),Op=l.forwardRef(f5);var m5={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"};function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qb.apply(this,arguments)}const p5=(e,t)=>l.createElement(ht,qb({},e,{ref:t,icon:m5})),_s=l.forwardRef(p5);var g5={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"};function Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yb.apply(this,arguments)}const h5=(e,t)=>l.createElement(ht,Yb({},e,{ref:t,icon:g5})),Yr=l.forwardRef(h5);var y5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(this,arguments)}const b5=(e,t)=>l.createElement(ht,Ub({},e,{ref:t,icon:y5})),Hs=l.forwardRef(b5);var v5={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gb.apply(this,arguments)}const S5=(e,t)=>l.createElement(ht,Gb({},e,{ref:t,icon:v5})),DS=l.forwardRef(S5),rT=l.createContext({});function C5({children:e,...t}){return l.createElement(rT.Provider,{value:t},e)}function $5(e){const[,t]=l.useReducer(s=>s+1,0),n=l.useRef(e),r=ct(()=>n.current),a=ct(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,a]}const Sa="none",Lf="appear",Vf="enter",Ff="leave",eE="none",zo="prepare",ms="start",ps="active",jS="end",oT="prepared";function tE(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function x5(e,t){const n={animationend:tE("Animation","AnimationEnd"),transitionend:tE("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const w5=x5(kr(),typeof window<"u"?window:{});let aT={};kr()&&({style:aT}=document.createElement("div"));const kf={};function iT(e){if(kf[e])return kf[e];const t=w5[e];if(t){const n=Object.keys(t),r=n.length;for(let a=0;a<r;a+=1){const s=n[a];if(Object.prototype.hasOwnProperty.call(t,s)&&s in aT)return kf[e]=t[s],kf[e]}}return""}const lT=iT("animationend"),sT=iT("transitionend"),E5=!!(lT&&sT),nE=lT||"animationend",rE=sT||"transitionend";function oE(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const M5=(e=>{const t=l.useRef();function n(a){a&&(a.removeEventListener(rE,e),a.removeEventListener(nE,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(rE,e),a.addEventListener(nE,e),t.current=a)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),cT=kr()?l.useLayoutEffect:l.useEffect,R5=(()=>{const e=l.useRef(null);function t(){Lt.cancel(e.current)}function n(r,a=2){t();const s=Lt(()=>{a<=1?r({isCanceled:()=>s!==e.current}):n(r,a-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]}),T5=[zo,ms,ps,jS],O5=[zo,oT],uT=!1,N5=!0;function dT(e){return e===ps||e===jS}const I5=((e,t,n)=>{const[r,a]=Bm(eE),[s,c]=R5();function d(){a(zo,!0)}const f=t?O5:T5;return cT(()=>{if(r!==eE&&r!==jS){const m=f.indexOf(r),g=f[m+1],h=n(r);h===uT?a(g,!0):g&&s(y=>{function v(){y.isCanceled()||a(g,!0)}h===!0?v():Promise.resolve(h).then(v)})}},[e,r]),l.useEffect(()=>()=>{c()},[]),[d,r]});function P5(e,t,n,{motionEnter:r=!0,motionAppear:a=!0,motionLeave:s=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:f,onEnterPrepare:m,onLeavePrepare:g,onAppearStart:h,onEnterStart:y,onLeaveStart:v,onAppearActive:b,onEnterActive:$,onLeaveActive:C,onAppearEnd:x,onEnterEnd:R,onLeaveEnd:w,onVisibleChanged:E}){const[T,N]=Bm(),[O,P]=$5(Sa),[B,L]=Bm(null),V=O(),G=l.useRef(!1),Y=l.useRef(null);function q(){return n()}const H=l.useRef(!1);function _(){P(Sa),L(null,!0)}const j=ct(J=>{const oe=O();if(oe===Sa)return;const ne=q();if(J&&!J.deadline&&J.target!==ne)return;const re=H.current;let ce;oe===Lf&&re?ce=x?.(ne,J):oe===Vf&&re?ce=R?.(ne,J):oe===Ff&&re&&(ce=w?.(ne,J)),re&&ce!==!1&&_()}),[I]=M5(j),D=J=>{switch(J){case Lf:return{[zo]:f,[ms]:h,[ps]:b};case Vf:return{[zo]:m,[ms]:y,[ps]:$};case Ff:return{[zo]:g,[ms]:v,[ps]:C};default:return{}}},F=l.useMemo(()=>D(V),[V]),[A,z]=I5(V,!e,J=>{if(J===zo){const oe=F[zo];return oe?oe(q()):uT}return z in F&&L(F[z]?.(q(),null)||null),z===ps&&V!==Sa&&(I(q()),c>0&&(clearTimeout(Y.current),Y.current=setTimeout(()=>{j({deadline:!0})},c))),z===oT&&_(),N5}),k=dT(z);H.current=k;const X=l.useRef(null);cT(()=>{if(G.current&&X.current===t)return;N(t);const J=G.current;G.current=!0;let oe;!J&&t&&a&&(oe=Lf),J&&t&&r&&(oe=Vf),(J&&!t&&s||!J&&d&&!t&&s)&&(oe=Ff);const ne=D(oe);oe&&(e||ne[zo])?(P(oe),A()):P(Sa),X.current=t},[t]),l.useEffect(()=>{(V===Lf&&!a||V===Vf&&!r||V===Ff&&!s)&&P(Sa)},[a,r,s]),l.useEffect(()=>()=>{G.current=!1,clearTimeout(Y.current)},[]);const Q=l.useRef(!1);l.useEffect(()=>{T&&(Q.current=!0),T!==void 0&&V===Sa&&((Q.current||T)&&E?.(T),Q.current=!0)},[T,V]);let Z=B;return F[zo]&&z===ms&&(Z={transition:"none",...Z}),[O,z,Z,T??t]}function z5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(a,s){return!!(a.motionName&&t&&s!==!1)}const r=l.forwardRef((a,s)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:f,children:m,motionName:g,leavedClassName:h,eventProps:y}=a,{motion:v}=l.useContext(rT),b=n(a,v),$=l.useRef();function C(){return ws($.current)}const[x,R,w,E]=P5(b,c,C,a),T=x(),N=l.useRef(E);E&&(N.current=!0);const O=l.useMemo(()=>{const L={};return Object.defineProperties(L,{nativeElement:{enumerable:!0,get:C},inMotion:{enumerable:!0,get:()=>()=>x()!==Sa},enableMotion:{enumerable:!0,get:()=>()=>b}}),L},[]);l.useImperativeHandle(s,()=>O,[]);let P;const B={...y,visible:c};if(!m)P=null;else if(T===Sa)E?P=m({...B},$):!d&&N.current&&h?P=m({...B,className:h},$):f||!d&&!h?P=m({...B,style:{display:"none"}},$):P=null;else{let L;R===zo?L="prepare":dT(R)?L="active":R===ms&&(L="start");const V=oE(g,`${T}-${L}`);P=m({...B,className:K(oE(g,T),{[V]:V&&L,[g]:typeof g=="string"}),style:w},$)}return l.isValidElement(P)&&ul(P)&&(yi(P)||(P=l.cloneElement(P,{ref:$}))),P});return r.displayName="CSSMotion",r}const Sr=z5(E5),Xb="add",Kb="keep",Qb="remove",xy="removed";function A5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Zb(e=[]){return e.map(A5)}function D5(e=[],t=[]){let n=[],r=0;const a=t.length,s=Zb(e),c=Zb(t);s.forEach(m=>{let g=!1;for(let h=r;h<a;h+=1){const y=c[h];if(y.key===m.key){r<h&&(n=n.concat(c.slice(r,h).map(v=>({...v,status:Xb}))),r=h),n.push({...y,status:Kb}),r+=1,g=!0;break}}g||n.push({...m,status:Qb})}),r<a&&(n=n.concat(c.slice(r).map(m=>({...m,status:Xb}))));const d={};return n.forEach(({key:m})=>{d[m]=(d[m]||0)+1}),Object.keys(d).filter(m=>d[m]>1).forEach(m=>{n=n.filter(({key:g,status:h})=>g!==m||h!==Qb),n.forEach(g=>{g.key===m&&(g.status=Kb)})}),n}function Jb(){return Jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jb.apply(this,arguments)}const j5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function _5(e,t=Sr){class n extends l.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:a},{keyEntities:s}){const c=Zb(a);return{keyEntities:D5(s,c).filter(f=>{const m=s.find(({key:g})=>f.key===g);return!(m&&m.status===xy&&f.status===Qb)})}}removeKey=a=>{this.setState(s=>({keyEntities:s.keyEntities.map(d=>d.key!==a?d:{...d,status:xy})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:d})=>d!==xy).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:a}=this.state,{component:s,children:c,onVisibleChanged:d,onAllRemoved:f,...m}=this.props,g=s||l.Fragment,h={};return j5.forEach(y=>{h[y]=m[y],delete m[y]}),delete m.keys,l.createElement(g,m,a.map(({status:y,...v},b)=>{const $=y===Xb||y===Kb;return l.createElement(t,Jb({},h,{key:v.key,visible:$,eventProps:v,onVisibleChanged:C=>{d?.(C,{key:v.key}),C||this.removeKey(v.key)}}),(C,x)=>c({...C,index:b},x))}))}}return n}const H5=_5(),B5=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
106
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
107
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
108
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
109
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
110
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
111
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
112
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
113
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
114
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
115
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
116
|
+
summary tabIndex target title type useMap value width wmode wrap`,L5=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
117
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
118
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
119
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
120
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
121
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
122
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,V5=`${B5} ${L5}`.split(/[\s\n]+/),F5="aria-",k5="data-";function aE(e,t){return e.indexOf(t)===0}function Pn(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(a=>{(n.aria&&(a==="role"||aE(a,F5))||n.data&&aE(a,k5)||n.attr&&V5.includes(a))&&(r[a]=e[a])}),r}const fT={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var W5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function iE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(n),!0).forEach(function(r){q5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q5(e,t,n){return t=Y5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y5(e){var t=U5(e,"string");return Eu(t)=="symbol"?t:String(t)}function U5(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G5=lE(lE({},W5),{},{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",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const mT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Mu={lang:{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"],...G5},timePickerLocale:{...mT}},to="${label} is not a valid ${type}",wa={locale:"en",Pagination:fT,DatePicker:Mu,TimePicker:mT,Calendar:Mu,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Em={...wa.Modal},Mm=[];const sE=()=>Mm.reduce((e,t)=>({...e,...t}),wa.Modal);function X5(e){if(e){const t={...e};return Mm.push(t),Em=sE(),()=>{Mm=Mm.filter(n=>n!==t),Em=sE()}}Em={...wa.Modal}}function pT(){return Em}const _S=l.createContext(void 0),ao=(e,t)=>{const n=l.useContext(_S),r=l.useMemo(()=>{const s=t||wa[e],c=n?.[e]??{};return{...typeof s=="function"?s():s,...c||{}}},[e,t,n]),a=l.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?wa.locale:s},[n]);return[r,a]},K5="internalMark",Q5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>X5(t?.Modal),[t]);const a=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(_S.Provider,{value:a},n)};function ev(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}const Rr=e=>e!=null,Ms=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},gT={},cE=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(n={...n,...e}),n},Z5=(e,t,n)=>e===!1?!1:e?ev(n,t,e):t===!1?!1:t?ev(n,t):n.closable?n:!1,J5=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:a,...s}=e;let c=a;const d=Pn(s,!0);return Rr(c)&&(r&&(c=r(c)),c=ie.isValidElement(c)?ie.cloneElement(c,{"aria-label":n,...c.props,...d}):ie.createElement("span",{"aria-label":n,...d},c)),[c,d]},eA=(e,t,n=gT,r="Close")=>{const a=cE(e?.closable,e?.closeIcon),s=cE(t?.closable,t?.closeIcon),c={closeIcon:ie.createElement(Yr,null),...n},d=Z5(a,s,c),f=typeof d!="boolean"?!!d?.disabled:!1;if(d===!1)return[!1,null,f,{}];const[m,g]=J5(d,c,r);return[!0,m,f,g]},HS=(e,t,n=gT)=>{const[r]=ao("global",wa.global);return ie.useMemo(()=>eA(e,t,{closeIcon:ie.createElement(Yr,null),...n},r.close),[e,t,n,r.close])},tA=()=>ie.useReducer(e=>e+1,0),uE=e=>e&&typeof e=="object"?e:typeof e=="boolean"?{enabled:e,blur:e}:{},hT=(e,t,n)=>l.useMemo(()=>{const r=uE(e),s={...uE(t),...r},c=s.blur!==!1?`${n}-mask-blur`:void 0;return[s.enabled!==!1,{mask:c}]},[e,t,n]),BS=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,a)=>(Object.keys(a||{}).forEach(s=>{const c=n[s],d=a[s];if(c&&typeof c=="object")if(d&&typeof d=="object")r[s]=BS(c,r[s],d);else{const{_default:f}=c;f&&(r[s]=r[s]||{},r[s][f]=K(r[s][f],d))}else r[s]=K(r[s],d)}),r),{})},nA=(e,...t)=>l.useMemo(()=>BS.apply(void 0,[e].concat(t)),[e].concat(t)),yT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),rA=(...e)=>l.useMemo(()=>yT.apply(void 0,e),[].concat(e)),tv=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],s=n[r]||{};n[r]=a?tv(s,a):s}}),n},gs=(e,t)=>typeof e=="function"?e(t):e,Ft=(e,t,n,r)=>{const a=e.map(f=>f?gs(f,n):void 0),s=t.map(f=>f?gs(f,n):void 0),c=nA.apply(void 0,[r].concat(En(a))),d=rA.apply(void 0,En(s));return l.useMemo(()=>r?[tv(c,r),tv(d,r)]:[c,d],[c,d,r])},dE=e=>e==="horizontal"||e==="vertical",ud=(e,t,n)=>l.useMemo(()=>{const r=dE(e);let a;return r?a=e:typeof t=="boolean"?a=t?"vertical":"horizontal":a=dE(n)?n:"horizontal",[a,a==="vertical"]},[n,e,t]),oA=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(En(a),[r])),()=>{t(a=>a.filter(s=>s!==r))}),[]);return[e,n]},dd=ie.createContext(void 0),ai=100,aA=10,bT=ai*aA,vT={Modal:ai,Drawer:ai,Popover:ai,Popconfirm:ai,Tooltip:ai,Tour:ai,FloatButton:ai},iA={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},lA=e=>e in vT,bi=(e,t)=>{const[,n]=qr(),r=ie.useContext(dd),a=lA(e);let s;if(t!==void 0)s=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+vT[e]:c+=iA[e],s=[r===void 0?t:c,c]}return s},Wf=(e,t,n,r,a)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),sA=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:s,fontSizeLG:c,lineHeight:d,borderRadiusLG:f,motionEaseInOutCirc:m,withDescriptionIconSize:g,colorText:h,colorTextHeading:y,withDescriptionPadding:v,defaultPadding:b}=e;return{[t]:{...Jt(e),position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:f,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:d},"&-title":{color:y},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${m}, opacity ${n} ${m},
|
|
123
|
+
padding-top ${n} ${m}, padding-bottom ${n} ${m},
|
|
124
|
+
margin-bottom ${n} ${m}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:v,[`${t}-icon`]:{marginInlineEnd:a,fontSize:g,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:y,fontSize:c},[`${t}-description`]:{display:"block",color:h}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},cA=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:s,colorWarningBorder:c,colorWarningBg:d,colorError:f,colorErrorBorder:m,colorErrorBg:g,colorInfo:h,colorInfoBorder:y,colorInfoBg:v}=e;return{[t]:{"&-success":Wf(a,r,n,e,t),"&-info":Wf(v,y,h,e,t),"&-warning":Wf(d,c,s,e,t),"&-error":{...Wf(g,m,f,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},uA=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:s,colorIcon:c,colorIconHover:d}=e;return{[t]:{"&-actions":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:s,lineHeight:te(s),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:d}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:d}}}}},dA=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),fA=At("Alert",e=>[sA(e),cA(e),uA(e)],dA),mA=e=>{const{icon:t,type:n,className:r,style:a,successIcon:s,infoIcon:c,warningIcon:d,errorIcon:f}=e,m={success:s??l.createElement(Op,null),info:c??l.createElement(DS,null),error:f??l.createElement(_s,null),warning:d??l.createElement(Hs,null)};return l.createElement("span",{className:r,style:a},t??m[n])},pA=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:s,className:c,style:d}=e,f=r===!0||r===void 0?l.createElement(Yr,null):r;return t?l.createElement("button",{type:"button",onClick:a,className:K(`${n}-close-icon`,c),tabIndex:0,style:d,...s},f):null},ST=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,title:s,banner:c,className:d,rootClassName:f,style:m,onMouseEnter:g,onMouseLeave:h,onClick:y,afterClose:v,showIcon:b,closable:$,closeText:C,closeIcon:x,action:R,id:w,styles:E,classNames:T,...N}=e,O=s??a,[P,B]=l.useState(!1),L=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:L.current}));const{getPrefixCls:V,direction:G,closable:Y,closeIcon:q,className:H,style:_,classNames:j,styles:I,successIcon:D,infoIcon:F,warningIcon:A,errorIcon:z}=zt("alert"),k=V("alert",r),[X,Q]=fA(k),{onClose:Z,afterClose:J}=$&&typeof $=="object"?$:{},oe=be=>{B(!0),(Z??e.onClose)?.(be)},ne=l.useMemo(()=>e.type!==void 0?e.type:c?"warning":"info",[e.type,c]),re=l.useMemo(()=>typeof $=="object"&&$.closeIcon||C?!0:typeof $=="boolean"?$:x!==!1&&Rr(x)?!0:!!Y,[C,x,$,Y]),ce=c&&b===void 0?!0:b,fe={...e,prefixCls:k,type:ne,showIcon:ce,closable:re},[le,pe]=Ft([j,T],[I,E],{props:fe}),ae=K(k,`${k}-${ne}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!ce,[`${k}-banner`]:!!c,[`${k}-rtl`]:G==="rtl"},H,d,f,le.root,Q,X),se=Pn(N,{aria:!0,data:!0}),he=l.useMemo(()=>typeof $=="object"&&$.closeIcon?$.closeIcon:C||(x!==void 0?x:typeof Y=="object"&&Y.closeIcon?Y.closeIcon:q),[x,$,Y,C,q]),ge=l.useMemo(()=>{const be=$??Y;return typeof be=="object"?Pn(be,{data:!0,aria:!0}):{}},[$,Y]);return l.createElement(Sr,{visible:!P,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:be=>({maxHeight:be.offsetHeight}),onLeaveEnd:J??v},({className:be,style:Ne},ve)=>l.createElement("div",{id:w,ref:ir(L,ve),"data-show":!P,className:K(ae,be),style:{...pe.root,..._,...m,...Ne},onMouseEnter:g,onMouseLeave:h,onClick:y,role:"alert",...se},ce?l.createElement(mA,{className:K(`${k}-icon`,le.icon),style:pe.icon,description:n,icon:e.icon,prefixCls:k,type:ne,successIcon:D,infoIcon:F,warningIcon:A,errorIcon:z}):null,l.createElement("div",{className:K(`${k}-section`,le.section),style:pe.section},O?l.createElement("div",{className:K(`${k}-title`,le.title),style:pe.title},O):null,n?l.createElement("div",{className:K(`${k}-description`,le.description),style:pe.description},n):null),R?l.createElement("div",{className:K(`${k}-actions`,le.actions),style:pe.actions},R):null,l.createElement(pA,{className:le.close,style:pe.close,isClosable:re,prefixCls:k,closeIcon:he,handleClose:oe,ariaProps:ge})))});function gA(e,t,n){return t=rl(t),B4(e,Rp()?Reflect.construct(t,n||[],rl(e).constructor):t.apply(e,n))}let hA=(function(e){function t(){var n;return dl(this,t),n=gA(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return PS(t,e),fl(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,title:a,description:s,id:c,children:d}=this.props,{error:f,info:m}=this.state,g=a??r,h=m?.componentStack||null,y=typeof g>"u"?(f||"").toString():g,v=typeof s>"u"?h:s;return f?l.createElement(ST,{id:c,type:"error",title:y,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},v)}):d}}])})(l.Component);const CT=ST;CT.ErrorBoundary=hA;const lr=e=>`${e}-css-var`,yA=l.createContext(void 0);var al=i4();const $T=l.createContext(null);let bA=!1;function vA(e){return bA}const fE=[];function SA(e,t){const[n]=l.useState(()=>kr()?document.createElement("div"):null),r=l.useRef(!1),a=l.useContext($T),[s,c]=l.useState(fE),d=a||(r.current?void 0:g=>{c(h=>[g,...h])});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function m(){n.parentElement?.removeChild(n),r.current=!1}return Pt(()=>(e?a?a(f):f():m(),m),[e]),Pt(()=>{s.length&&(s.forEach(g=>g()),c(fE))},[s]),[n,d]}function CA(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let a,s;if(e){const f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;const m=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(m.width,10),h=parseInt(m.height,10);try{const y=g?`width: ${m.width};`:"",v=h?`height: ${m.height};`:"";di(`
|
|
125
|
+
#${t}::-webkit-scrollbar {
|
|
126
|
+
${y}
|
|
127
|
+
${v}
|
|
128
|
+
}`,t)}catch(y){console.error(y),a=g,s=h}}document.body.appendChild(n);const c=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,d=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),vu(t),{width:c,height:d}}function $A(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:CA(e)}function xA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const wA=`rc-util-locker-${Date.now()}`;let mE=0;function EA(e){const t=!!e,[n]=l.useState(()=>(mE+=1,`${wA}_${mE}`));Pt(()=>{if(t){const r=$A(document.body).width,a=xA();di(`
|
|
129
|
+
html body {
|
|
130
|
+
overflow-y: hidden;
|
|
131
|
+
${a?`width: calc(100% - ${r}px);`:""}
|
|
132
|
+
}`,n)}else vu(n);return()=>{vu(n)}},[t,n])}function MA(){return{...qP}.useId}let pE=0;const gE=MA(),Jo=gE?(function(t){const n=gE();return t||n}):(function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const a=pE;pE+=1,r(`rc_unique_${a}`)},[]),t||n});let Xi=[];const RA=200;let xT=0;const wT=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-xT<RA)return;const n=Xi.length;for(let r=n-1;r>=0;r-=1)Xi[r].onEsc({top:r===n-1,event:e})}},ET=()=>{xT=Date.now()};function TA(){window.addEventListener("keydown",wT),window.addEventListener("compositionend",ET)}function OA(){Xi.length===0&&(window.removeEventListener("keydown",wT),window.removeEventListener("compositionend",ET))}function NA(e,t){const n=Jo(),r=ct(t),a=()=>{Xi.find(c=>c.id===n)||Xi.push({id:n,onEsc:r})},s=()=>{Xi=Xi.filter(c=>c.id!==n)};l.useMemo(()=>{e?a():e||s()},[e]),l.useEffect(()=>{if(e)return a(),TA(),()=>{s(),OA()}},[e])}const hE=e=>e===!1?!1:!kr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,fd=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:a,debug:s,autoDestroy:c=!0,children:d,onEsc:f}=e,[m,g]=l.useState(n),h=m||n;l.useEffect(()=>{(c||n)&&g(n)},[n,c]);const[y,v]=l.useState(()=>hE(a));l.useEffect(()=>{const T=hE(a);v(()=>T??null)});const[b,$]=SA(h&&!y),C=y??b;EA(r&&n&&kr()&&(C===b||C===document.body)),NA(n,f);let x=null;d&&ul(d)&&t&&(x=yi(d));const R=Ta(x,t);if(!h||!kr()||y===void 0)return null;const w=C===!1||vA();let E=d;return t&&(E=l.cloneElement(d,{ref:R})),l.createElement($T.Provider,{value:$},w?E:al.createPortal(E,C))});function IA(e){const{prefixCls:t,align:n,arrow:r,arrowPos:a}=e,{className:s,content:c,style:d}=r||{},{x:f=0,y:m=0}=a,g=l.useRef(null);if(!n||!n.points)return null;const h={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],v=n.points[1],b=y[0],$=y[1],C=v[0],x=v[1];b===C||!["t","b"].includes(b)?h.top=m:b==="t"?h.top=0:h.bottom=0,$===x||!["l","r"].includes($)?h.left=f:$==="l"?h.left=0:h.right=0}return l.createElement("div",{ref:g,className:K(`${t}-arrow`,s),style:{...h,...d}},c)}function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}function PA(e){const{prefixCls:t,open:n,zIndex:r,mask:a,motion:s,mobile:c}=e;return a?l.createElement(Sr,nv({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:d})=>l.createElement("div",{style:{zIndex:r},className:K(`${t}-mask`,c&&`${t}-mobile-mask`,d)})):null}const zA=l.memo(({children:e})=>e,(e,t)=>t.cache);function MT(e,t,n,r,a,s,c,d){const f="auto",m=e?{}:{left:"-1000vw",top:"-1000vh",right:f,bottom:f};if(!e&&(t||!n)){const{points:g}=r,h=r.dynamicInset||r._experimental?.dynamicInset,y=h&&g[0][1]==="r",v=h&&g[0][0]==="b";y?(m.right=a,m.left=f):(m.left=c,m.right=f),v?(m.bottom=s,m.top=f):(m.top=d,m.bottom=f)}return m}function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rv.apply(this,arguments)}const RT=l.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:a,prefixCls:s,style:c,target:d,onVisibleChanged:f,open:m,keepDom:g,fresh:h,onClick:y,mask:v,arrow:b,arrowPos:$,align:C,motion:x,maskMotion:R,mobile:w,forceRender:E,getPopupContainer:T,autoDestroy:N,portal:O,children:P,zIndex:B,onMouseEnter:L,onMouseLeave:V,onPointerEnter:G,onPointerDownCapture:Y,ready:q,offsetX:H,offsetY:_,offsetR:j,offsetB:I,onAlign:D,onPrepare:F,onResize:A,stretch:z,targetWidth:k,targetHeight:X}=e,Q=typeof r=="function"?r():r,Z=m||g,J=!!w,[oe,ne,re]=l.useMemo(()=>w?[w.mask,w.maskMotion,w.motion]:[v,R,x],[w,v,R,x]),ce=T?.length>0,[fe,le]=l.useState(!T||!ce);Pt(()=>{!fe&&ce&&d&&le(!0)},[fe,ce,d]);const pe=ct((he,ge)=>{A?.(he,ge),D()}),ae=MT(J,q,m,C,j,I,H,_);if(!fe)return null;const se={};return z&&(z.includes("height")&&X?se.height=X:z.includes("minHeight")&&X&&(se.minHeight=X),z.includes("width")&&k?se.width=k:z.includes("minWidth")&&k&&(se.minWidth=k)),m||(se.pointerEvents="none"),l.createElement(O,{open:E||Z,getContainer:T&&(()=>T(d)),autoDestroy:N,onEsc:n},l.createElement(PA,{prefixCls:s,open:m,zIndex:B,mask:oe,motion:ne,mobile:J}),l.createElement(oo,{onResize:pe,disabled:!m},he=>l.createElement(Sr,rv({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:`${s}-hidden`},re,{onAppearPrepare:F,onEnterPrepare:F,visible:m,onVisibleChanged:ge=>{x?.onVisibleChanged?.(ge),f(ge)}}),({className:ge,style:be},Ne)=>{const ve=K(s,ge,a,{[`${s}-mobile`]:J});return l.createElement("div",{ref:ir(he,t,Ne),className:ve,style:{"--arrow-x":`${$.x||0}px`,"--arrow-y":`${$.y||0}px`,...ae,...se,...be,boxSizing:"border-box",zIndex:B,...c},onMouseEnter:L,onMouseLeave:V,onPointerEnter:G,onClick:y,onPointerDownCapture:Y},b&&l.createElement(IA,{prefixCls:s,arrow:b,arrowPos:$,align:C}),l.createElement(zA,{cache:!m&&!h},Q))})),P)}),qm=l.createContext(null),TT=l.createContext(null);function yE(e){return e?Array.isArray(e)?e:[e]:[]}function AA(e,t,n){return l.useMemo(()=>{const r=yE(t??e),a=yE(n??e),s=new Set(r),c=new Set(a);return s.has("hover")&&!s.has("click")&&s.add("touch"),c.has("hover")&&!c.has("click")&&c.add("touch"),[s,c]},[e,t,n])}const Np=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function DA(e=[],t=[],n){const r=(a,s)=>a[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function OT(e,t,n,r){const{points:a}=n,s=Object.keys(e);for(let c=0;c<s.length;c+=1){const d=s[c];if(DA(e[d]?.points,a,r))return`${t}-placement-${d}`}return""}function md(e){return e.ownerDocument.defaultView}function ov(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:a,overflowY:s,overflow:c}=md(n).getComputedStyle(n);[a,s,c].some(d=>r.includes(d))&&t.push(n),n=n.parentElement}return t}function Ru(e,t=1){return Number.isNaN(e)?t:e}function Hc(e){return Ru(parseFloat(e),0)}function bE(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:a,overflowClipMargin:s,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:f,borderRightWidth:m}=md(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:h,clientHeight:y,offsetWidth:v,clientWidth:b}=r,$=Hc(c),C=Hc(d),x=Hc(f),R=Hc(m),w=Ru(Math.round(g.width/v*1e3)/1e3),E=Ru(Math.round(g.height/h*1e3)/1e3),T=(v-b-x-R)*w,N=(h-y-$-C)*E,O=$*E,P=C*E,B=x*w,L=R*w;let V=0,G=0;if(a==="clip"){const j=Hc(s);V=j*w,G=j*E}const Y=g.x+B-V,q=g.y+O-G,H=Y+g.width+2*V-B-L-T,_=q+g.height+2*G-O-P-N;n.left=Math.max(n.left,Y),n.top=Math.max(n.top,q),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,_)}),n}function vE(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function SE(e,t){const[n,r]=t||[];return[vE(e.width,n),vE(e.height,r)]}function CE(e=""){return[e[0],e[1]]}function es(e,t){const n=t[0],r=t[1];let a,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:s}}function ni(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function $E(e){return e.join("")}function NT(e,t,n,r,a,s,c,d){const[f,m]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),g=l.useRef(0),h=l.useMemo(()=>!t||d?[]:ov(t),[t]),y=l.useRef({});e||(y.current={});const b=ct(()=>{if(t&&n&&e&&!d){let Ce=function(bt,Mn,In=pe){const $r=Y.x+bt,xr=Y.y+Mn,Zn=$r+k,An=xr+z,Eo=Math.max($r,In.left),ta=Math.max(xr,In.top),Mo=Math.min(Zn,In.right),Bo=Math.min(An,In.bottom);return Math.max(0,(Mo-Eo)*(Bo-ta))},Re=function(){et=Y.y+Pe,De=et+z,ze=Y.x+Ue,We=ze+k};const x=t,R=x.ownerDocument,w=md(x),{position:E}=w.getComputedStyle(x),T=x.style.left,N=x.style.top,O=x.style.right,P=x.style.bottom,B=x.style.overflow,L={...a[r],...s},V=R.createElement("div");x.parentElement?.appendChild(V),V.style.left=`${x.offsetLeft}px`,V.style.top=`${x.offsetTop}px`,V.style.position=E,V.style.height=`${x.offsetHeight}px`,V.style.width=`${x.offsetWidth}px`,x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";let G;if(Array.isArray(n))G={x:n[0],y:n[1],width:0,height:0};else{const bt=n.getBoundingClientRect();bt.x=bt.x??bt.left,bt.y=bt.y??bt.top,G={x:bt.x,y:bt.y,width:bt.width,height:bt.height}}const Y=x.getBoundingClientRect(),{height:q,width:H}=w.getComputedStyle(x);Y.x=Y.x??Y.left,Y.y=Y.y??Y.top;const{clientWidth:_,clientHeight:j,scrollWidth:I,scrollHeight:D,scrollTop:F,scrollLeft:A}=R.documentElement,z=Y.height,k=Y.width,X=G.height,Q=G.width,Z={left:0,top:0,right:_,bottom:j},J={left:-A,top:-F,right:I-A,bottom:D-F};let{htmlRegion:oe}=L;const ne="visible",re="visibleFirst";oe!=="scroll"&&oe!==re&&(oe=ne);const ce=oe===re,fe=bE(J,h),le=bE(Z,h),pe=oe===ne?le:fe,ae=ce?le:pe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";const se=x.getBoundingClientRect();x.style.left=T,x.style.top=N,x.style.right=O,x.style.bottom=P,x.style.overflow=B,x.parentElement?.removeChild(V);const he=Ru(Math.round(k/parseFloat(H)*1e3)/1e3),ge=Ru(Math.round(z/parseFloat(q)*1e3)/1e3);if(he===0||ge===0||xs(n)&&!Np(n))return;const{offset:be,targetOffset:Ne}=L;let[ve,xe]=SE(Y,be);const[de,Se]=SE(G,Ne);G.x-=de,G.y-=Se;const[Me,Ae]=L.points||[],Ie=CE(Ae),Ye=CE(Me),Ze=es(G,Ie),He=es(Y,Ye),Ve={...L};let _e=[Ye,Ie],Ue=Ze.x-He.x+ve,Pe=Ze.y-He.y+xe;const Fe=Ce(Ue,Pe),Je=Ce(Ue,Pe,le),Be=es(G,["t","l"]),Xe=es(Y,["t","l"]),Oe=es(G,["b","r"]),Ke=es(Y,["b","r"]),nt=L.overflow||{},{adjustX:ot,adjustY:lt,shiftX:Ct,shiftY:$t}=nt,ke=bt=>typeof bt=="boolean"?bt:bt>=0;let et,De,ze,We;Re();const Ge=ke(lt),Qe=Ye[0]===Ie[0];if(Ge&&Ye[0]==="t"&&(De>ae.bottom||y.current.bt)){let bt=Pe;Qe?bt-=z-X:bt=Be.y-Ke.y-xe;const Mn=Ce(Ue,bt),In=Ce(Ue,bt,le);Mn>Fe||Mn===Fe&&(!ce||In>=Je)?(y.current.bt=!0,Pe=bt,xe=-xe,_e=[ni(_e[0],0),ni(_e[1],0)]):y.current.bt=!1}if(Ge&&Ye[0]==="b"&&(et<ae.top||y.current.tb)){let bt=Pe;Qe?bt+=z-X:bt=Oe.y-Xe.y-xe;const Mn=Ce(Ue,bt),In=Ce(Ue,bt,le);Mn>Fe||Mn===Fe&&(!ce||In>=Je)?(y.current.tb=!0,Pe=bt,xe=-xe,_e=[ni(_e[0],0),ni(_e[1],0)]):y.current.tb=!1}const at=ke(ot),ut=Ye[1]===Ie[1];if(at&&Ye[1]==="l"&&(We>ae.right||y.current.rl)){let bt=Ue;ut?bt-=k-Q:bt=Be.x-Ke.x-ve;const Mn=Ce(bt,Pe),In=Ce(bt,Pe,le);Mn>Fe||Mn===Fe&&(!ce||In>=Je)?(y.current.rl=!0,Ue=bt,ve=-ve,_e=[ni(_e[0],1),ni(_e[1],1)]):y.current.rl=!1}if(at&&Ye[1]==="r"&&(ze<ae.left||y.current.lr)){let bt=Ue;ut?bt+=k-Q:bt=Oe.x-Xe.x-ve;const Mn=Ce(bt,Pe),In=Ce(bt,Pe,le);Mn>Fe||Mn===Fe&&(!ce||In>=Je)?(y.current.lr=!0,Ue=bt,ve=-ve,_e=[ni(_e[0],1),ni(_e[1],1)]):y.current.lr=!1}Ve.points=[$E(_e[0]),$E(_e[1])],Re();const _t=Ct===!0?0:Ct;typeof _t=="number"&&(ze<le.left&&(Ue-=ze-le.left-ve,G.x+Q<le.left+_t&&(Ue+=G.x-le.left+Q-_t)),We>le.right&&(Ue-=We-le.right-ve,G.x>le.right-_t&&(Ue+=G.x-le.right+_t)));const Rt=$t===!0?0:$t;typeof Rt=="number"&&(et<le.top&&(Pe-=et-le.top-xe,G.y+X<le.top+Rt&&(Pe+=G.y-le.top+X-Rt)),De>le.bottom&&(Pe-=De-le.bottom-xe,G.y>le.bottom-Rt&&(Pe+=G.y-le.bottom+Rt)));const Et=Y.x+Ue,mn=Et+k,Tt=Y.y+Pe,pt=Tt+z,tt=G.x,mt=tt+Q,Ot=G.y,Ut=Ot+X,rn=Math.max(Et,tt),Gt=Math.min(mn,mt),pn=(rn+Gt)/2-Et,gr=Math.max(Tt,Ot),gn=Math.min(pt,Ut),zn=(gr+gn)/2-Tt;c?.(t,Ve);let Kn=se.right-Y.x-(Ue+Y.width),Qn=se.bottom-Y.y-(Pe+Y.height);he===1&&(Ue=Math.floor(Ue),Kn=Math.floor(Kn)),ge===1&&(Pe=Math.floor(Pe),Qn=Math.floor(Qn));const Nr={ready:!0,offsetX:Ue/he,offsetY:Pe/ge,offsetR:Kn/he,offsetB:Qn/ge,arrowX:pn/he,arrowY:zn/ge,scaleX:he,scaleY:ge,align:Ve};m(Nr)}}),$=()=>{g.current+=1;const x=g.current;Promise.resolve().then(()=>{g.current===x&&b()})},C=()=>{m(x=>({...x,ready:!1}))};return Pt(C,[r]),Pt(()=>{e||C()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,$]}function IT(){const e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,a)=>{t(),a===0?r():e.current=setTimeout(()=>{r()},a*1e3)};return l.useEffect(()=>()=>{t()},[]),n}function jA(e,t,n,r,a){Pt(()=>{if(e&&t&&n){let h=function(){r(),a()};const s=t,c=n,d=ov(s),f=ov(c),m=md(c),g=new Set([m,...d,...f]);return g.forEach(y=>{y.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),()=>{g.forEach(y=>{y.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function _A(e,t,n,r,a,s,c,d){const f=l.useRef(e);f.current=e;const m=l.useRef(!1);l.useEffect(()=>{if(t&&r&&(!a||s)){const h=()=>{m.current=!1},y=$=>{f.current&&!c($.composedPath?.()?.[0]||$.target)&&!m.current&&d(!1)},v=md(r);v.addEventListener("pointerdown",h,!0),v.addEventListener("mousedown",y,!0),v.addEventListener("contextmenu",y,!0);const b=Wm(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),()=>{v.removeEventListener("pointerdown",h,!0),v.removeEventListener("mousedown",y,!0),v.removeEventListener("contextmenu",y,!0),b&&(b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0))}}},[t,n,r,a,s]);function g(){m.current=!0}return g}function HA(){const[e,t]=ie.useState(null),[n,r]=ie.useState(!1),[a,s]=ie.useState(!1),c=ie.useRef(null),d=ct(m=>{m===!1?(c.current=null,r(!1)):a&&n?c.current=m:(r(!0),t(m),c.current=null,n||s(!0))}),f=ct(m=>{m?(s(!1),c.current&&(t(c.current),c.current=null)):(s(!1),c.current=null)});return[d,n,e,f]}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}const BA=e=>{const{prefixCls:t,isMobile:n,ready:r,open:a,align:s,offsetR:c,offsetB:d,offsetX:f,offsetY:m,arrowPos:g,popupSize:h,motion:y,uniqueContainerClassName:v,uniqueContainerStyle:b}=e,$=`${t}-unique-container`,[C,x]=ie.useState(!1),R=MT(n,r,a,s,c,d,f,m),w=ie.useRef(R);r&&(w.current=R);const E={};return h&&(E.width=h.width,E.height=h.height),ie.createElement(Sr,av({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${$}-hidden`},y,{visible:a,onVisibleChanged:T=>{x(T)}}),({className:T,style:N})=>{const O=K($,T,v,{[`${$}-visible`]:C});return ie.createElement("div",{className:O,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...w.current,...E,...N,...b}})})},LA=({children:e,postTriggerProps:t})=>{const[n,r,a,s]=HA(),c=l.useMemo(()=>!a||!t?a:t(a),[a,t]),[d,f]=l.useState(null),[m,g]=l.useState(null),h=l.useRef(null),y=ct(I=>{h.current=I,xs(I)&&d!==I&&f(I)}),v=l.useRef(null),b=IT(),$=ct((I,D)=>{v.current=D,b(()=>{n(I)},I.delay)}),C=I=>{b(()=>{v.current?.()||n(!1)},I)},x=ct(I=>{s(I)}),[R,w,E,T,N,O,P,,,B,L]=NT(r,d,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),V=l.useMemo(()=>{if(!c)return"";const I=OT(c.builtinPlacements||{},c.prefixCls||"",B,!1);return K(I,c.getPopupClassNameFromAlign?.(B))},[B,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),G=l.useMemo(()=>({show:$,hide:C}),[]);l.useEffect(()=>{L()},[c?.target]);const Y=ct(()=>(L(),Promise.resolve())),q=l.useRef({}),H=l.useContext(qm),_=l.useMemo(()=>({registerSubPopup:(I,D)=>{q.current[I]=D,H?.registerSubPopup(I,D)}}),[H]),j=c?.prefixCls;return l.createElement(TT.Provider,{value:G},e,c&&l.createElement(qm.Provider,{value:_},l.createElement(RT,{ref:y,portal:fd,onEsc:c.onEsc,prefixCls:j,popup:c.popup,className:K(c.popupClassName,V,`${j}-unique-controlled`),style:c.popupStyle,target:c.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:x,ready:R,offsetX:w,offsetY:E,offsetR:T,offsetB:N,onAlign:L,onPrepare:Y,onResize:I=>g({width:I.offsetWidth,height:I.offsetHeight}),arrowPos:{x:O,y:P},align:B,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},l.createElement(BA,{prefixCls:j,isMobile:!1,ready:R,open:r,align:B,offsetR:T,offsetB:N,offsetX:w,offsetY:E,arrowPos:{x:O,y:P},popupSize:m,motion:c.popupMotion,uniqueContainerClassName:K(c.uniqueContainerClassName,V),uniqueContainerStyle:c.uniqueContainerStyle}))))};function VA(e=fd){return l.forwardRef((n,r)=>{const{prefixCls:a="rc-trigger-popup",children:s,action:c="hover",showAction:d,hideAction:f,popupVisible:m,defaultPopupVisible:g,onOpenChange:h,afterOpenChange:y,onPopupVisibleChange:v,afterPopupVisibleChange:b,mouseEnterDelay:$,mouseLeaveDelay:C=.1,focusDelay:x,blurDelay:R,mask:w,maskClosable:E=!0,getPopupContainer:T,forceRender:N,autoDestroy:O,popup:P,popupClassName:B,uniqueContainerClassName:L,uniqueContainerStyle:V,popupStyle:G,popupPlacement:Y,builtinPlacements:q={},popupAlign:H,zIndex:_,stretch:j,getPopupClassNameFromAlign:I,fresh:D,unique:F,alignPoint:A,onPopupClick:z,onPopupAlign:k,arrow:X,popupMotion:Q,maskMotion:Z,mobile:J,...oe}=n,ne=O||!1,re=m===void 0,ce=!!J,fe=l.useRef({}),le=l.useContext(qm),pe=l.useMemo(()=>({registerSubPopup:(rt,xt)=>{fe.current[rt]=xt,le?.registerSubPopup(rt,xt)}}),[le]),ae=l.useContext(TT),se=Jo(),[he,ge]=l.useState(null),be=l.useRef(null),Ne=ct(rt=>{be.current=rt,xs(rt)&&he!==rt&&ge(rt),le?.registerSubPopup(se,rt)}),[ve,xe]=l.useState(null),de=l.useRef(null),Se=ct(rt=>{const xt=ws(rt);xs(xt)&&ve!==xt&&(xe(xt),de.current=xt)}),Me={},Ae=ct(rt=>{const xt=ve;return xt?.contains(rt)||Wm(xt)?.host===rt||rt===xt||he?.contains(rt)||Wm(he)?.host===rt||rt===he||Object.values(fe.current).some(lo=>lo?.contains(rt)||rt===lo)}),Ie=X?{...X!==!0?X:{}}:null,[Ye,Ze]=Yt(g||!1,m),He=Ye||!1,Ve=l.useMemo(()=>{const rt=typeof s=="function"?s({open:He}):s;return l.Children.only(rt)},[s,He]),_e=Ve?.props||{},Ue=ct(()=>He),Pe=ct((rt=0)=>({popup:P,target:ve,delay:rt,prefixCls:a,popupClassName:B,uniqueContainerClassName:L,uniqueContainerStyle:V,popupStyle:G,popupPlacement:Y,builtinPlacements:q,popupAlign:H,zIndex:_,mask:w,maskClosable:E,popupMotion:Q,maskMotion:Z,arrow:Ie,getPopupContainer:T,getPopupClassNameFromAlign:I,id:se,onEsc:Xe}));Pt(()=>{ae&&F&&ve&&!re&&!le&&(He?ae.show(Pe($),Ue):ae.hide(C))},[He,ve]);const Ce=l.useRef(He);Ce.current=He;const Fe=ct(rt=>{al.flushSync(()=>{He!==rt&&(Ze(rt),h?.(rt),v?.(rt))})}),Je=IT(),Be=(rt,xt=0)=>{if(m!==void 0){Je(()=>{Fe(rt)},xt);return}if(ae&&F&&re&&!le){rt?ae.show(Pe(xt),Ue):ae.hide(xt);return}Je(()=>{Fe(rt)},xt)};function Xe({top:rt}){rt&&Be(!1)}const[Oe,Ke]=l.useState(!1);Pt(rt=>{(!rt||He)&&Ke(!0)},[He]);const[nt,ot]=l.useState(null),[lt,Ct]=l.useState(null),$t=rt=>{Ct([rt.clientX,rt.clientY])},[ke,et,De,ze,We,Re,Ge,Qe,at,ut,_t]=NT(He,he,A&<!==null?lt:ve,Y,q,H,k,ce),[Rt,Et]=AA(c,d,f),mn=Rt.has("click"),Tt=Et.has("click")||Et.has("contextMenu"),pt=ct(()=>{Oe||_t()});jA(He,ve,he,pt,()=>{Ce.current&&A&&Tt&&Be(!1)}),Pt(()=>{pt()},[lt,Y]),Pt(()=>{He&&!q?.[Y]&&pt()},[JSON.stringify(H)]);const mt=l.useMemo(()=>{const rt=OT(q,a,ut,A);return K(rt,I?.(ut))},[ut,I,q,a,A]);l.useImperativeHandle(r,()=>({nativeElement:de.current,popupElement:be.current,forceAlign:pt}));const[Ot,Ut]=l.useState(0),[rn,Gt]=l.useState(0),cn=()=>{if(j&&ve){const rt=ve.getBoundingClientRect();Ut(rt.width),Gt(rt.height)}},pn=()=>{cn(),pt()},gr=rt=>{Ke(!1),_t(),y?.(rt),b?.(rt)},gn=()=>new Promise(rt=>{cn(),ot(()=>rt)});Pt(()=>{nt&&(_t(),nt(),ot(null))},[nt]);function Cr(rt,xt,lo,Ia,Vo){Me[rt]=(Ur,...Pa)=>{(!Vo||!Vo())&&(Ia?.(Ur),Be(xt,lo)),_e[rt]?.(Ur,...Pa)}}const zn=Rt.has("touch"),Kn=Et.has("touch"),Qn=l.useRef(!1);(zn||Kn)&&(Me.onTouchStart=(...rt)=>{Qn.current=!0,Ce.current&&Kn?Be(!1):!Ce.current&&zn&&Be(!0),_e.onTouchStart?.(...rt)}),(mn||Tt)&&(Me.onClick=(rt,...xt)=>{Ce.current&&Tt?Be(!1):!Ce.current&&mn&&($t(rt),Be(!0)),_e.onClick?.(rt,...xt),Qn.current=!1});const Nr=_A(He,Tt||Kn,ve,he,w,E,Ae,Be),bt=Rt.has("hover"),Mn=Et.has("hover");let In,$r;const xr=()=>Qn.current;if(bt){const rt=xt=>{$t(xt)};Cr("onMouseEnter",!0,$,rt,xr),Cr("onPointerEnter",!0,$,rt,xr),In=xt=>{(He||Oe)&&he?.contains(xt.target)&&Be(!0,$)},A&&(Me.onMouseMove=xt=>{_e.onMouseMove?.(xt)})}Mn&&(Cr("onMouseLeave",!1,C,void 0,xr),Cr("onPointerLeave",!1,C,void 0,xr),$r=()=>{Be(!1,C)}),Rt.has("focus")&&Cr("onFocus",!0,x),Et.has("focus")&&Cr("onBlur",!1,R),Rt.has("contextMenu")&&(Me.onContextMenu=(rt,...xt)=>{Ce.current&&Et.has("contextMenu")?Be(!1):($t(rt),Be(!0)),rt.preventDefault(),_e.onContextMenu?.(rt,...xt)});const Zn=l.useRef(!1);Zn.current||=N||He||Oe;const An={..._e,...Me},Eo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(rt=>{oe[rt]&&(Eo[rt]=(...xt)=>{An[rt]?.(...xt),oe[rt](...xt)})});const Mo={x:Re,y:Ge};p4(He,ve,pn);const Bo=Ta(Se,yi(Ve)),Lo=l.cloneElement(Ve,{...An,...Eo,ref:Bo});return l.createElement(l.Fragment,null,Lo,Zn.current&&(!ae||!F)&&l.createElement(qm.Provider,{value:pe},l.createElement(RT,{portal:e,ref:Ne,prefixCls:a,popup:P,className:K(B,!ce&&mt),style:G,target:ve,onMouseEnter:In,onMouseLeave:$r,onPointerEnter:In,zIndex:_,open:He,keepDom:Oe,fresh:D,onClick:z,onPointerDownCapture:Nr,mask:w,motion:Q,maskMotion:Z,onVisibleChanged:gr,onPrepare:gn,forceRender:N,autoDestroy:ne,getPopupContainer:T,onEsc:Xe,align:ut,arrow:Ie,arrowPos:Mo,ready:ke,offsetX:et,offsetY:De,offsetR:ze,offsetB:We,onAlign:pt,stretch:j,targetWidth:Ot/Qe,targetHeight:rn/at,mobile:J})))})}const pd=VA(fd);function PT(e){return e&&ie.isValidElement(e)&&e.type===ie.Fragment}const zT=(e,t,n)=>ie.isValidElement(e)?ie.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function or(e,t){return zT(e,e,t)}const FA=({children:e})=>{const{getPrefixCls:t}=ie.useContext(ft),n=t();return ie.isValidElement(e)?ie.createElement(Sr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:a})=>or(e,s=>({className:K(s.className,a),style:{...s.style,...r}}))):e},qf=[null,null];function kA(e){if(qf[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),qf[0]=e,qf[1]=t}return qf[1]}const AT=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:a,popup:s}=n,c=typeof s=="function"?s():s,d=kA(a);return{...n,getPopupContainer:null,arrow:!1,popup:ie.createElement(FA,{key:r},c),builtinPlacements:d}};return ie.createElement(LA,{postTriggerProps:t},e)},Wr=l.createContext(!1),DT=({children:e,disabled:t})=>{const n=l.useContext(Wr);return l.createElement(Wr.Provider,{value:t??n},e)},Rs=l.createContext(void 0),WA=({children:e,size:t})=>{const n=l.useContext(Rs);return l.createElement(Rs.Provider,{value:t||n},e)};function qA(){const e=l.useContext(Wr),t=l.useContext(Rs);return{componentDisabled:e,componentSize:t}}function YA(e,t,n){const r=e||{},a=r.inherit===!1||!t?{...km,hashed:t?.hashed??km.hashed,cssVar:t?.cssVar}:t,s=l.useId();return ld(()=>{if(!e)return t;const c={...a.components};Object.keys(e.components||{}).forEach(m=>{c[m]={...c[m],...e.components[m]}});const d=`css-var-${s.replace(/:/g,"")}`,f={prefix:n?.prefixCls,...a.cssVar,...r.cssVar,key:r.cssVar?.key||d};return{...a,...r,token:{...a.token,...r.token},components:c,cssVar:f}},[r,a],(c,d)=>c.some((f,m)=>{const g=d[m];return!Su(f,g,!0)}))}const xE=l.createContext(!0);function UA(e){const t=l.useContext(xE),{children:n}=e,[,r]=qr(),{motion:a}=r,s=l.useRef(!1);return s.current||(s.current=t!==a),s.current?l.createElement(xE.Provider,{value:a},l.createElement(C5,{motion:a},n)):n}const GA=()=>null,XA=({iconPrefixCls:e,csp:t})=>(n5(e,t),null),KA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ym,jT,_T,HT;function wy(){return Ym||yu}function QA(){return jT||$p}const ZA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Ym=t),n!==void 0&&(jT=n),"holderRender"in e&&(HT=a),r&&(_T=r)},BT=()=>({getPrefixCls:(e,t)=>t||(e?`${wy()}-${e}`:wy()),getIconPrefixCls:QA,getRootPrefixCls:()=>Ym||wy(),getTheme:()=>_T,holderRender:HT}),JA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,affix:s,anchor:c,form:d,locale:f,componentSize:m,direction:g,space:h,splitter:y,virtual:v,dropdownMatchSelectWidth:b,popupMatchSelectWidth:$,popupOverflow:C,legacyLocale:x,parentContext:R,iconPrefixCls:w,theme:E,componentDisabled:T,segmented:N,statistic:O,spin:P,calendar:B,carousel:L,cascader:V,collapse:G,typography:Y,checkbox:q,descriptions:H,divider:_,drawer:j,skeleton:I,steps:D,image:F,layout:A,list:z,mentions:k,modal:X,progress:Q,result:Z,slider:J,breadcrumb:oe,masonry:ne,menu:re,pagination:ce,input:fe,textArea:le,otp:pe,empty:ae,badge:se,radio:he,rate:ge,ribbon:be,switch:Ne,transfer:ve,avatar:xe,message:de,tag:Se,table:Me,card:Ae,cardMeta:Ie,tabs:Ye,timeline:Ze,timePicker:He,upload:Ve,notification:_e,tree:Ue,colorPicker:Pe,datePicker:Ce,rangePicker:Fe,flex:Je,wave:Be,dropdown:Xe,warning:Oe,tour:Ke,tooltip:nt,popover:ot,popconfirm:lt,qrcode:Ct,floatButton:$t,floatButtonGroup:ke,variant:et,inputNumber:De,treeSelect:ze,watermark:We}=e,Re=l.useCallback((mt,Ot)=>{const{prefixCls:Ut}=e;if(Ot)return Ot;const rn=Ut||R.getPrefixCls("");return mt?`${rn}-${mt}`:rn},[R.getPrefixCls,e.prefixCls]),Ge=w||R.iconPrefixCls||$p,Qe=n||R.csp,at=YA(E,R.theme,{prefixCls:Re("")}),ut={csp:Qe,autoInsertSpaceInButton:r,alert:a,affix:s,anchor:c,locale:f||x,direction:g,space:h,splitter:y,virtual:v,popupMatchSelectWidth:$??b,popupOverflow:C,getPrefixCls:Re,iconPrefixCls:Ge,theme:at,segmented:N,statistic:O,spin:P,calendar:B,carousel:L,cascader:V,collapse:G,typography:Y,checkbox:q,descriptions:H,divider:_,drawer:j,skeleton:I,steps:D,image:F,input:fe,textArea:le,otp:pe,layout:A,list:z,mentions:k,modal:X,progress:Q,result:Z,slider:J,breadcrumb:oe,masonry:ne,menu:re,pagination:ce,empty:ae,badge:se,radio:he,rate:ge,ribbon:be,switch:Ne,transfer:ve,avatar:xe,message:de,tag:Se,table:Me,card:Ae,cardMeta:Ie,tabs:Ye,timeline:Ze,timePicker:He,upload:Ve,notification:_e,tree:Ue,colorPicker:Pe,datePicker:Ce,rangePicker:Fe,flex:Je,wave:Be,dropdown:Xe,warning:Oe,tour:Ke,tooltip:nt,popover:ot,popconfirm:lt,qrcode:Ct,floatButton:$t,floatButtonGroup:ke,variant:et,inputNumber:De,treeSelect:ze,watermark:We},_t={...R};Object.keys(ut).forEach(mt=>{ut[mt]!==void 0&&(_t[mt]=ut[mt])}),KA.forEach(mt=>{const Ot=e[mt];Ot&&(_t[mt]=Ot)}),typeof r<"u"&&(_t.button={autoInsertSpace:r,..._t.button});const Rt=ld(()=>_t,_t,(mt,Ot)=>{const Ut=Object.keys(mt),rn=Object.keys(Ot);return Ut.length!==rn.length||Ut.some(Gt=>mt[Gt]!==Ot[Gt])}),{layer:Et}=l.useContext(sd),mn=l.useMemo(()=>({prefixCls:Ge,csp:Qe,layer:Et?"antd":void 0}),[Ge,Qe,Et]);let Tt=l.createElement(l.Fragment,null,l.createElement(XA,{iconPrefixCls:Ge,csp:Qe}),l.createElement(GA,{dropdownMatchSelectWidth:b}),t);const pt=l.useMemo(()=>Ca(wa.Form?.defaultValidateMessages||{},Rt.locale?.Form?.defaultValidateMessages||{},Rt.form?.validateMessages||{},d?.validateMessages||{}),[Rt,d?.validateMessages]);Object.keys(pt).length>0&&(Tt=l.createElement(yA.Provider,{value:pt},Tt)),f&&(Tt=l.createElement(Q5,{locale:f,_ANT_MARK__:K5},Tt)),Tt=l.createElement(AS.Provider,{value:mn},Tt),m&&(Tt=l.createElement(WA,{size:m},Tt)),Tt=l.createElement(UA,null,Tt),nt?.unique&&(Tt=l.createElement(AT,null,Tt));const tt=l.useMemo(()=>{const{algorithm:mt,token:Ot,components:Ut,cssVar:rn,...Gt}=at||{},cn=mt&&(!Array.isArray(mt)||mt.length>0)?wb(mt):U4,pn={};Object.entries(Ut||{}).forEach(([gn,Cr])=>{const zn={...Cr};"algorithm"in zn&&(zn.algorithm===!0?zn.theme=cn:(Array.isArray(zn.algorithm)||typeof zn.algorithm=="function")&&(zn.theme=wb(zn.algorithm)),delete zn.algorithm),pn[gn]=zn});const gr={...wu,...Ot};return{...Gt,theme:cn,token:gr,components:pn,override:{override:gr,...pn},cssVar:rn}},[at]);return E&&(Tt=l.createElement(G4.Provider,{value:tt},Tt)),Rt.warning&&(Tt=l.createElement(fz.Provider,{value:Rt.warning},Tt)),T!==void 0&&(Tt=l.createElement(DT,{disabled:T},Tt)),l.createElement(ft.Provider,{value:Rt},Tt)},ea=e=>{const t=l.useContext(ft),n=l.useContext(_S);return l.createElement(JA,{parentContext:t,legacyLocale:n,...e})};ea.ConfigContext=ft;ea.SizeContext=Rs;ea.config=ZA;ea.useConfig=qA;Object.defineProperty(ea,"SizeContext",{get:()=>Rs});const it={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Um.apply(this,arguments)}const LT=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,duration:s=4.5,showProgress:c,pauseOnHover:d=!0,eventKey:f,content:m,closable:g,props:h,onClick:y,onNoticeClose:v,times:b,hovering:$}=e,[C,x]=l.useState(!1),[R,w]=l.useState(0),[E,T]=l.useState(0),N=$||C,O=typeof s=="number"?s:0,P=O>0&&c,B=()=>{v(f)},L=H=>{(H.key==="Enter"||H.code==="Enter"||H.keyCode===it.ENTER)&&B()};l.useEffect(()=>{if(!N&&O>0){const H=Date.now()-E,_=setTimeout(()=>{B()},O*1e3-E);return()=>{d&&clearTimeout(_),T(Date.now()-H)}}},[O,N,b]),l.useEffect(()=>{if(!N&&P&&(d||E===0)){const H=performance.now();let _;const j=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(I=>{const D=I+E-H,F=Math.min(D/(O*1e3),1);w(F*100),F<1&&j()})};return j(),()=>{d&&cancelAnimationFrame(_)}}},[O,E,N,P,b]);const V=l.useMemo(()=>typeof g=="object"&&g!==null?g:{},[g]),G=Pn(V,!0),Y=100-(!R||R<0?0:R>100?100:R),q=`${n}-notice`;return l.createElement("div",Um({},h,{ref:t,className:K(q,a,{[`${q}-closable`]:g}),style:r,onMouseEnter:H=>{x(!0),h?.onMouseEnter?.(H)},onMouseLeave:H=>{x(!1),h?.onMouseLeave?.(H)},onClick:y}),l.createElement("div",{className:`${q}-content`},m),g&&l.createElement("button",Um({className:`${q}-close`,onKeyDown:L,"aria-label":"Close"},G,{onClick:H=>{H.preventDefault(),H.stopPropagation(),B()}}),V.closeIcon??"x"),P&&l.createElement("progress",{className:`${q}-progress`,max:"100",value:Y},Y+"%"))}),VT=ie.createContext({}),eD=({children:e,classNames:t})=>ie.createElement(VT.Provider,{value:{classNames:t}},e),wE=8,EE=3,ME=16,tD=e=>{const t={offset:wE,threshold:EE,gap:ME};return e&&typeof e=="object"&&(t.offset=e.offset??wE,t.threshold=e.threshold??EE,t.gap=e.gap??ME),[!!e,t]};function Gm(){return Gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gm.apply(this,arguments)}const nD=e=>{const{configList:t,placement:n,prefixCls:r,className:a,style:s,motion:c,onAllNoticeRemoved:d,onNoticeClose:f,stack:m}=e,{classNames:g}=l.useContext(VT),h=l.useRef({}),[y,v]=l.useState(null),[b,$]=l.useState([]),C=t.map(O=>({config:O,key:String(O.key)})),[x,{offset:R,threshold:w,gap:E}]=tD(m),T=x&&(b.length>0||C.length<=w),N=typeof c=="function"?c(n):c;return l.useEffect(()=>{x&&b.length>1&&$(O=>O.filter(P=>C.some(({key:B})=>P===B)))},[b,C,x]),l.useEffect(()=>{x&&h.current[C[C.length-1]?.key]&&v(h.current[C[C.length-1]?.key])},[C,x]),ie.createElement(H5,Gm({key:n,className:K(r,`${r}-${n}`,g?.list,a,{[`${r}-stack`]:!!x,[`${r}-stack-expanded`]:T}),style:s,keys:C,motionAppear:!0},N,{onAllRemoved:()=>{d(n)}}),({config:O,className:P,style:B,index:L},V)=>{const{key:G,times:Y}=O,q=String(G),{className:H,style:_,classNames:j,styles:I,...D}=O,F=C.findIndex(z=>z.key===q),A={};if(x){const z=C.length-1-(F>-1?F:L-1),k=n==="top"||n==="bottom"?"-50%":"0";if(z>0){A.height=T?h.current[q]?.offsetHeight:y?.offsetHeight;let X=0;for(let J=0;J<z;J++)X+=h.current[C[C.length-1-J].key]?.offsetHeight+E;const Q=(T?X:z*R)*(n.startsWith("top")?1:-1),Z=!T&&y?.offsetWidth&&h.current[q]?.offsetWidth?(y?.offsetWidth-R*2*(z<3?z:3))/h.current[q]?.offsetWidth:1;A.transform=`translate3d(${k}, ${Q}px, 0) scaleX(${Z})`}else A.transform=`translate3d(${k}, 0, 0)`}return ie.createElement("div",{ref:V,className:K(`${r}-notice-wrapper`,P,j?.wrapper),style:{...B,...A,...I?.wrapper},onMouseEnter:()=>$(z=>z.includes(q)?z:[...z,q]),onMouseLeave:()=>$(z=>z.filter(k=>k!==q))},ie.createElement(LT,Gm({},D,{ref:z=>{F>-1?h.current[q]=z:delete h.current[q]},prefixCls:r,classNames:j,styles:I,className:K(H,g?.notice),style:_,times:Y,key:G,eventKey:G,onNoticeClose:f,hovering:x&&b.length>0})))})},rD=l.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:a,maxCount:s,className:c,style:d,onAllRemoved:f,stack:m,renderNotifications:g}=e,[h,y]=l.useState([]),v=w=>{const E=h.find(P=>P.key===w),T=E?.closable,N=T&&typeof T=="object"?T:{},{onClose:O}=N;O?.(),E?.onClose?.(),y(P=>P.filter(B=>B.key!==w))};l.useImperativeHandle(t,()=>({open:w=>{y(E=>{let T=[...E];const N=T.findIndex(P=>P.key===w.key),O={...w};return N>=0?(O.times=(E[N]?.times||0)+1,T[N]=O):(O.times=0,T.push(O)),s>0&&T.length>s&&(T=T.slice(-s)),T})},close:w=>{v(w)},destroy:()=>{y([])}}));const[b,$]=l.useState({});l.useEffect(()=>{const w={};h.forEach(E=>{const{placement:T="topRight"}=E;T&&(w[T]=w[T]||[],w[T].push(E))}),Object.keys(b).forEach(E=>{w[E]=w[E]||[]}),$(w)},[h]);const C=w=>{$(E=>{const T={...E};return(T[w]||[]).length||delete T[w],T})},x=l.useRef(!1);if(l.useEffect(()=>{Object.keys(b).length>0?x.current=!0:x.current&&(f?.(),x.current=!1)},[b]),!r)return null;const R=Object.keys(b);return al.createPortal(l.createElement(l.Fragment,null,R.map(w=>{const E=b[w],T=l.createElement(nD,{key:w,configList:E,placement:w,prefixCls:n,className:c?.(w),style:d?.(w),motion:a,onNoticeClose:v,onAllNoticeRemoved:C,stack:m});return g?g(T,{prefixCls:n,key:w}):T})),r)}),oD=()=>document.body;let RE=0;function aD(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const a=n[r];a!==void 0&&(t[r]=a)})}),t}function iD(e={}){const{getContainer:t=oD,motion:n,prefixCls:r,maxCount:a,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:m,...g}=e,[h,y]=l.useState(),v=l.useRef(),b=l.createElement(rD,{container:h,ref:v,prefixCls:r,motion:n,maxCount:a,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:m}),[$,C]=l.useState([]),x=ct(w=>{const E=aD(g,w);(E.key===null||E.key===void 0)&&(E.key=`rc-notification-${RE}`,RE+=1),C(T=>[...T,{type:"open",config:E}])}),R=l.useMemo(()=>({open:x,close:w=>{C(E=>[...E,{type:"close",key:w}])},destroy:()=>{C(w=>[...w,{type:"destroy"}])}}),[]);return l.useEffect(()=>{y(t())}),l.useEffect(()=>{if(v.current&&$.length){$.forEach(T=>{switch(T.type){case"open":v.current.open(T.config);break;case"close":v.current.close(T.key);break;case"destroy":v.current.destroy();break}});let w,E;C(T=>((w!==T||!E)&&(w=T,E=T.filter(N=>!$.includes(N))),E))}},[$]),[R,b]}var lD={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"};function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(this,arguments)}const sD=(e,t)=>l.createElement(ht,iv({},e,{ref:t,icon:lD})),Ip=l.forwardRef(sD),cD=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:s,colorError:c,colorWarning:d,colorInfo:f,fontSizeLG:m,motionEaseInOutCirc:g,motionDurationSlow:h,marginXS:y,paddingXS:v,borderRadiusLG:b,zIndexPopup:$,contentPadding:C,contentBg:x}=e,R=`${t}-notice`,w=new jt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),E=new jt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:m},[`${R}-content`]:{display:"inline-block",padding:C,background:x,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:d},[`${t}-info > ${n},
|
|
133
|
+
${t}-loading > ${n}`]:{color:f}};return[{[t]:{...Jt(e),color:a,position:"fixed",top:y,width:"100%",pointerEvents:"none",zIndex:$,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
134
|
+
${t}-move-up-appear,
|
|
135
|
+
${t}-move-up-enter
|
|
136
|
+
`]:{animationName:w,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`
|
|
137
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
138
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
139
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${R}-wrapper`]:{...T}}},{[`${t}-notice-pure-panel`]:{...T,padding:0,textAlign:"start"}}]},uD=e=>({zIndexPopup:e.zIndexPopupBase+bT+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),FT=At("Message",e=>{const t=It(e,{height:150});return cD(t)},uD),dD={info:l.createElement(DS,null),success:l.createElement(Op,null),error:l.createElement(_s,null),warning:l.createElement(Hs,null),loading:l.createElement(Ip,null)},kT=e=>{const{prefixCls:t,type:n,icon:r,children:a,classNames:s,styles:c}=e,d=r||n&&dD[n],f=or(d,m=>{const g={...m?.style,...c?.icon};return{className:K(m.className,s?.icon),style:g}});return l.createElement("div",{className:K(`${t}-custom-content`,`${t}-${n}`)},f,l.createElement("span",{className:s?.content,style:c?.content},a))},fD=e=>{const{prefixCls:t,className:n,style:r,type:a,icon:s,content:c,classNames:d,styles:f,...m}=e,{getPrefixCls:g,className:h,style:y,classNames:v,styles:b}=zt("message"),$=t||g("message"),C=lr($),[x,R]=FT($,C),[w,E]=Ft([v,d],[b,f],{props:e});return l.createElement(LT,{...m,prefixCls:$,className:K(h,w.root,n,x,`${$}-notice-pure-panel`,R,C),style:{...E.root,...y,...r},eventKey:"pure",duration:null,content:l.createElement(kT,{prefixCls:$,type:a,icon:s,classNames:w,styles:E},c)})};function mD(e,t){return{motionName:t??`${e}-move-up`}}function LS(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t?.()};return r.then=(a,s)=>n.then(a,s),r.promise=n,r}const pD=8,gD=3,hD=({children:e,prefixCls:t})=>{const n=lr(t),[r,a]=FT(t,n);return l.createElement(eD,{classNames:{list:K(r,a,n)}},e)},yD=(e,{prefixCls:t,key:n})=>l.createElement(hD,{prefixCls:t,key:n},e),bD=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:s,duration:c=gD,rtl:d,transitionName:f,onAllRemoved:m,pauseOnHover:g=!0}=e,{getPrefixCls:h,direction:y,getPopupContainer:v}=zt("message"),{message:b}=l.useContext(ft),$=r||h("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??pD}),x=()=>K({[`${$}-rtl`]:d??y==="rtl"}),R=()=>mD($,f),[w,E]=Ft([e?.classNames,b?.classNames],[e?.styles,b?.styles],{props:e}),[T,N]=iD({prefixCls:$,style:C,className:x,motion:R,closable:!1,duration:c,getContainer:()=>a?.()||v?.()||document.body,maxCount:s,onAllRemoved:m,renderNotifications:yD,pauseOnHover:g});return l.useImperativeHandle(t,()=>({...T,prefixCls:$,message:b,classNames:w,styles:E})),N});let TE=0;function WT(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=f=>{t.current?.close(f)},a=f=>{if(!t.current){const A=()=>{};return A.then=()=>{},A}const{open:m,prefixCls:g,message:h,classNames:y,styles:v}=t.current,b=h?.className||{},$=h?.style||{},C=h?.classNames||{},x=h?.styles||{},R=`${g}-notice`,{content:w,icon:E,type:T,key:N,className:O,style:P,onClose:B,classNames:L={},styles:V={},...G}=f;let Y=N;Rr(Y)||(TE+=1,Y=`antd-message-${TE}`);const q={...e,...f},H=gs(C,{props:q}),_=gs(L,{props:q}),j=gs(x,{props:q}),I=gs(V,{props:q}),D=BS(void 0,H,_,y),F=yT(j,I,v);return LS(A=>(m({...G,key:Y,content:l.createElement(kT,{prefixCls:g,type:T,icon:E,classNames:D,styles:F},w),placement:"top",className:K({[`${R}-${T}`]:T},O,b,D.root),style:{...F.root,...$,...P},onClose:()=>{B?.(),A()}}),()=>{r(Y)}))},c={open:a,destroy:f=>{f!==void 0?r(f):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const m=(g,h,y)=>{let v;g&&typeof g=="object"&&"content"in g?v=g:v={content:g};let b,$;typeof h=="function"?$=h:(b=h,$=y);const C={onClose:$,duration:b,...v,type:f};return a(C)};c[f]=m}),c},[]),l.createElement(bD,{key:"message-holder",...e,ref:t})]}function vD(e){return WT(e)}const Xm="__rc_react_root__";function VS(e,t){const n=t[Xm]||l4.createRoot(t);n.render(e),t[Xm]=n}async function qT(e){return Promise.resolve().then(()=>{e[Xm]?.unmount(),delete e[Xm]})}const Ey=()=>({height:0,opacity:0}),OE=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},SD=e=>({height:e?e.offsetHeight:0}),My=(e,t)=>t?.deadline===!0||t.propertyName==="height",YT=(e=yu)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ey,onEnterStart:Ey,onAppearActive:OE,onEnterActive:OE,onLeaveStart:SD,onLeaveActive:Ey,onAppearEnd:My,onEnterEnd:My,onLeaveEnd:My,motionDeadline:500}),Qo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,CD=e=>{const{componentCls:t,colorPrimary:n,antCls:r}=e,[,a]=en(r,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:a("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},$D=t5("Wave",CD),gd=`${yu}-wave-target`;function NE(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function xD(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:a,backgroundColor:s}=n;return t&&NE(n[t])?n[t]:[r,a,s].find(NE)??null}function Ry(e){return Number.isNaN(e)?0:e}const wD=e=>{const{className:t,target:n,component:r,colorSource:a}=e,s=l.useRef(null),{getPrefixCls:c}=l.useContext(ft),d=c(),[f]=en(d,"wave"),[m,g]=l.useState(null),[h,y]=l.useState([]),[v,b]=l.useState(0),[$,C]=l.useState(0),[x,R]=l.useState(0),[w,E]=l.useState(0),[T,N]=l.useState(!1),O={left:v,top:$,width:x,height:w,borderRadius:h.map(L=>`${L}px`).join(" ")};m&&(O[f("color")]=m);function P(){const L=getComputedStyle(n);g(xD(n,a));const V=L.position==="static",{borderLeftWidth:G,borderTopWidth:Y}=L;b(V?n.offsetLeft:Ry(-Number.parseFloat(G))),C(V?n.offsetTop:Ry(-Number.parseFloat(Y))),R(n.offsetWidth),E(n.offsetHeight);const{borderTopLeftRadius:q,borderTopRightRadius:H,borderBottomLeftRadius:_,borderBottomRightRadius:j}=L;y([q,H,j,_].map(I=>Ry(Number.parseFloat(I))))}if(l.useEffect(()=>{if(n){const L=Lt(()=>{P(),N(!0)});let V;return typeof ResizeObserver<"u"&&(V=new ResizeObserver(P),V.observe(n)),()=>{Lt.cancel(L),V?.disconnect()}}},[n]),!T)return null;const B=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(gd);return l.createElement(Sr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(L,V)=>{if(V.deadline||V.propertyName==="opacity"){const G=s.current?.parentElement;qT(G).then(()=>{G?.remove()})}return!1}},({className:L},V)=>l.createElement("div",{ref:ir(s,V),className:K(t,L,{"wave-quick":B}),style:O}))},ED=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),VS(l.createElement(wD,{...t,target:e}),r)},MD=(e,t,n,r)=>{const{wave:a}=l.useContext(ft),[,s,c]=qr(),d=ct(g=>{const h=e.current;if(a?.disabled||!h)return;const y=h.querySelector(`.${gd}`)||h,{showEffect:v}=a||{};(v||ED)(y,{className:t,token:s,component:n,event:g,hashId:c,colorSource:r})}),f=l.useRef(null);return l.useEffect(()=>()=>{Lt.cancel(f.current)},[]),g=>{Lt.cancel(f.current),f.current=Lt(()=>{d(g)})}},hd=e=>{const{children:t,disabled:n,component:r,colorSource:a}=e,{getPrefixCls:s}=l.useContext(ft),c=l.useRef(null),d=s("wave"),f=$D(d),m=MD(c,K(d,f),r,a);if(ie.useEffect(()=>{const h=c.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const y=v=>{!Np(v.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")&&!h.className.includes("disabled:")||h.getAttribute("aria-disabled")==="true"||h.className.includes("-leave")||m(v)};return h.addEventListener("click",y,!0),()=>{h.removeEventListener("click",y,!0)}},[n]),!ie.isValidElement(t))return t??null;const g=ul(t)?ir(yi(t),c):c;return or(t,{ref:g})},pr=e=>{const t=ie.useContext(Rs);return ie.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},RD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},TD=At(["Space","Compact"],e=>[RD(e)],()=>({}),{resetStyle:!1}),Pp=l.createContext(null),Oa=(e,t)=>{const n=l.useContext(Pp),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:s,isLastItem:c}=n,d=a==="vertical"?"-vertical-":"-";return K(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:s,[`${e}-compact${d}last-item`]:c,[`${e}-compact${d}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},OD=e=>{const{children:t}=e;return l.createElement(Pp.Provider,{value:null},t)},ND=e=>{const{children:t,...n}=e;return l.createElement(Pp.Provider,{value:l.useMemo(()=>n,[n])},t)},UT=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ft),{size:r,direction:a,orientation:s,block:c,prefixCls:d,className:f,rootClassName:m,children:g,vertical:h,...y}=e,[v,b]=ud(s,h,a),$=pr(N=>r??N),C=t("space-compact",d),[x]=TD(C),R=K(C,x,{[`${C}-rtl`]:n==="rtl",[`${C}-block`]:c,[`${C}-vertical`]:b},f,m),w=l.useContext(Pp),E=mr(g),T=l.useMemo(()=>E.map((N,O)=>{const P=N?.key||`${C}-item-${O}`;return l.createElement(ND,{key:P,compactSize:$,compactDirection:v,isFirstItem:O===0&&(!w||w?.isFirstItem),isLastItem:O===E.length-1&&(!w||w?.isLastItem)},N)}),[E,w,v,$,C]);return E.length===0?null:l.createElement("div",{className:R,...y},T)},GT=l.createContext(void 0),ID=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ft),{prefixCls:r,size:a,className:s,...c}=e,d=t("btn-group",r),[,,f]=qr(),m=l.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),g=K(d,{[`${d}-${m}`]:m,[`${d}-rtl`]:n==="rtl"},s,f);return l.createElement(GT.Provider,{value:a},l.createElement("div",{...c,className:g}))},IE=/^[\u4E00-\u9FA5]{2}$/,lv=IE.test.bind(IE);function FS(e){return e==="danger"?{danger:!0}:{type:e}}function PE(e){return typeof e=="string"}function Ty(e){return e==="text"||e==="link"}function PD(e,t,n,r){if(!Rr(e)||e==="")return;const a=t?" ":"";return typeof e!="string"&&typeof e!="number"&&PE(e.type)&&lv(e.props.children)?or(e,s=>{const c=K(s.className,r)||void 0,d={...n,...s.style};return{...s,children:s.children.split("").join(a),className:c,style:d}}):PE(e)?ie.createElement("span",{className:r,style:n},lv(e)?e.split("").join(a):e):PT(e)?ie.createElement("span",{className:r,style:n},e):or(e,s=>({...s,className:K(s.className,r)||void 0,style:{...s.style,...n}}))}function zD(e,t,n,r){let a=!1;const s=[];return ie.Children.forEach(e,c=>{const d=typeof c,f=d==="string"||d==="number";if(a&&f){const m=s.length-1,g=s[m];s[m]=`${g}${c}`}else s.push(c);a=f}),ie.Children.map(s,c=>PD(c,t,n,r))}["default","primary","danger"].concat(En(pi));const XT=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:s}=e,c=K(`${s}-icon`,n);return ie.createElement("span",{ref:t,className:c,style:r},a)}),zE=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:s}=e,c=K(`${n}-loading-icon`,r);return ie.createElement(XT,{prefixCls:n,className:c,style:a,ref:t},ie.createElement(Ip,{className:s}))}),Oy=()=>({width:0,opacity:0,transform:"scale(0)"}),Ny=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),AD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:s,mount:c}=e,d=!!n;return r?ie.createElement(zE,{prefixCls:t,className:a,style:s}):ie.createElement(Sr,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Oy,onAppearActive:Ny,onEnterStart:Oy,onEnterActive:Ny,onLeaveStart:Ny,onLeaveActive:Oy},({className:f,style:m},g)=>{const h={...s,...m};return ie.createElement(zE,{prefixCls:t,className:K(a,f),style:h,ref:g})})},AE=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),DD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:s}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},AE(`${t}-primary`,a),AE(`${t}-danger`,s)]}},Iy=e=>Math.round(Number(e||0)),jD=e=>{if(e instanceof tn)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Tu extends tn{constructor(t){super(jD(t))}toHsbString(){const t=this.toHsb(),n=Iy(t.s*100),r=Iy(t.b*100),a=Iy(t.h),s=t.a,c=`hsb(${a}, ${n}%, ${r}%)`,d=`hsba(${a}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?c:d}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const _D=e=>e instanceof Tu?e:new Tu(e);_D("#1677ff");const HD=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",BD=(e,t)=>e?HD(e,t):"";let Km=(function(){function e(t){if(dl(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:r,percent:a})=>({color:new e(r),percent:a})),this.metaColor=new Tu(this.colors[0].color.metaColor)):this.metaColor=new Tu(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return fl(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return BD(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(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const s=n.colors[a];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var LD={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"};function sv(){return sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sv.apply(this,arguments)}const VD=(e,t)=>l.createElement(ht,sv({},e,{ref:t,icon:LD})),Ts=l.forwardRef(VD);function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(null,arguments)}const FD=ie.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:a,style:s,children:c,isActive:d,role:f,classNames:m,styles:g}=e,[h,y]=ie.useState(d||r);return ie.useEffect(()=>{(r||d)&&y(!0)},[r,d]),h?ie.createElement("div",{ref:t,className:K(`${n}-panel`,{[`${n}-panel-active`]:d,[`${n}-panel-inactive`]:!d},a),style:s,role:f},ie.createElement("div",{className:K(`${n}-body`,m?.body),style:g?.body},c)):null}),KT=ie.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:a,onItemClick:s,forceRender:c,className:d,classNames:f={},styles:m={},prefixCls:g,collapsible:h,accordion:y,panelKey:v,extra:b,header:$,expandIcon:C,openMotion:x,destroyOnHidden:R,children:w,...E}=e,T=h==="disabled",N=b!=null&&typeof b!="boolean",O={onClick:()=>{s?.(v)},onKeyDown:Y=>{(Y.key==="Enter"||Y.keyCode===it.ENTER||Y.which===it.ENTER)&&s?.(v)},role:y?"tab":"button","aria-expanded":a,"aria-disabled":T,tabIndex:T?-1:0},P=typeof C=="function"?C(e):ie.createElement("i",{className:"arrow"}),B=P&&ie.createElement("div",Gn({className:K(`${g}-expand-icon`,f?.icon),style:m?.icon},["header","icon"].includes(h)?O:{}),P),L=K(`${g}-item`,{[`${g}-item-active`]:a,[`${g}-item-disabled`]:T},d),G={className:K(r,`${g}-header`,{[`${g}-collapsible-${h}`]:!!h},f?.header),style:m?.header,...["header","icon"].includes(h)?{}:O};return ie.createElement("div",Gn({},E,{ref:t,className:L}),ie.createElement("div",G,n&&B,ie.createElement("span",Gn({className:K(`${g}-title`,f?.title),style:m?.title},h==="header"?O:{}),$),N&&ie.createElement("div",{className:`${g}-extra`},b)),ie.createElement(Sr,Gn({visible:a,leavedClassName:`${g}-panel-hidden`},x,{forceRender:c,removeOnLeave:R}),({className:Y,style:q},H)=>ie.createElement(FD,{ref:H,prefixCls:g,className:Y,classNames:f,style:q,styles:m,isActive:a,forceRender:c,role:y?"tabpanel":void 0},w)))});function QT(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),a={};return r.forEach(s=>{a[s]=n(e[s],t[s])}),a}function kD(e,t){return QT(e,t,(n,r)=>K(n,r))}function WD(e,t){return QT(e,t,(n,r)=>({...n,...r}))}const qD=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:a,destroyOnHidden:s,onItemClick:c,activeKey:d,openMotion:f,expandIcon:m,classNames:g,styles:h}=t;return e.map((y,v)=>{const{children:b,label:$,key:C,collapsible:x,onItemClick:R,destroyOnHidden:w,classNames:E,styles:T,...N}=y,O=String(C??v),P=x??a,B=w??s,L=G=>{P!=="disabled"&&(c(G),R?.(G))};let V=!1;return r?V=d[0]===O:V=d.indexOf(O)>-1,ie.createElement(KT,Gn({},N,{classNames:kD(g,E),styles:WD(h,T),prefixCls:n,key:O,panelKey:O,isActive:V,accordion:r,openMotion:f,expandIcon:m,header:$,collapsible:P,onItemClick:L,destroyOnHidden:B}),b)})},YD=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:a,collapsible:s,destroyOnHidden:c,onItemClick:d,activeKey:f,openMotion:m,expandIcon:g,classNames:h,styles:y}=n,v=e.key||String(t),{header:b,headerClass:$,destroyOnHidden:C,collapsible:x,onItemClick:R}=e.props;let w=!1;a?w=f[0]===v:w=f.indexOf(v)>-1;const E=x??s,T=O=>{E!=="disabled"&&(d(O),R?.(O))},N={key:v,panelKey:v,header:b,headerClass:$,classNames:h,styles:y,isActive:w,prefixCls:r,destroyOnHidden:C??c,openMotion:m,accordion:a,children:e.props.children,onItemClick:T,expandIcon:g,collapsible:E};return typeof e.type=="string"?e:(Object.keys(N).forEach(O=>{typeof N[O]>"u"&&delete N[O]}),ie.cloneElement(e,N))};function UD(e,t,n){return Array.isArray(e)?qD(e,n):mr(t).map((r,a)=>YD(r,a,n))}function DE(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const GD=ie.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:a,accordion:s,className:c,children:d,collapsible:f,openMotion:m,expandIcon:g,activeKey:h,defaultActiveKey:y,onChange:v,items:b,classNames:$,styles:C}=e,x=K(n,c),[R,w]=Yt(y,h),E=DE(R),T=ct(P=>{const B=DE(P);w(B),v?.(B)}),N=P=>{T(s?E[0]===P?[]:[P]:E.includes(P)?E.filter(B=>B!==P):[...E,P])};rr(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const O=UD(b,d,{prefixCls:n,accordion:s,openMotion:m,expandIcon:g,collapsible:f,destroyOnHidden:r,onItemClick:N,activeKey:E,classNames:$,styles:C});return ie.createElement("div",Gn({ref:t,className:x,style:a,role:s?"tablist":void 0},Pn(e,{aria:!0,data:!0})),O)}),kS=Object.assign(GD,{Panel:KT}),{Panel:jee}=kS,XD=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(ft),{prefixCls:r,className:a,showArrow:s=!0}=e,c=n("collapse",r),d=K({[`${c}-no-arrow`]:!s},a);return l.createElement(kS.Panel,{ref:t,...e,prefixCls:c,className:d})}),ZT=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
140
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
141
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),KD=e=>({animationDuration:e,animationFillMode:"both"}),QD=e=>({animationDuration:e,animationFillMode:"both"}),zp=(e,t,n,r,a=!1)=>{const s=a?"&":"";return{[`
|
|
142
|
+
${s}${e}-enter,
|
|
143
|
+
${s}${e}-appear
|
|
144
|
+
`]:{...KD(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...QD(r),animationPlayState:"paused"},[`
|
|
145
|
+
${s}${e}-enter${e}-enter-active,
|
|
146
|
+
${s}${e}-appear${e}-appear-active
|
|
147
|
+
`]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ZD=new jt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),JD=new jt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),JT=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[zp(r,ZD,JD,e.motionDurationMid,t),{[`
|
|
148
|
+
${a}${r}-enter,
|
|
149
|
+
${a}${r}-appear
|
|
150
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},ej=new jt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tj=new jt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),nj=new jt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rj=new jt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oj=new jt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aj=new jt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ij=new jt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lj=new jt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),sj={"move-up":{inKeyframes:ij,outKeyframes:lj},"move-down":{inKeyframes:ej,outKeyframes:tj},"move-left":{inKeyframes:nj,outKeyframes:rj},"move-right":{inKeyframes:oj,outKeyframes:aj}},Os=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:s}=sj[t];return[zp(r,a,s,e.motionDurationMid),{[`
|
|
151
|
+
${r}-enter,
|
|
152
|
+
${r}-appear
|
|
153
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ap=new jt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Dp=new jt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jp=new jt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_p=new jt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),cj=new jt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uj=new jt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),dj=new jt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),fj=new jt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),mj={"slide-up":{inKeyframes:Ap,outKeyframes:Dp},"slide-down":{inKeyframes:jp,outKeyframes:_p},"slide-left":{inKeyframes:cj,outKeyframes:uj},"slide-right":{inKeyframes:dj,outKeyframes:fj}},Zo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:s}=mj[t];return[zp(r,a,s,e.motionDurationMid),{[`
|
|
154
|
+
${r}-enter,
|
|
155
|
+
${r}-appear
|
|
156
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},pj=new jt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gj=new jt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),jE=new jt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_E=new jt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),hj=new jt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),yj=new jt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),bj=new jt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),vj=new jt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Sj=new jt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Cj=new jt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),$j=new jt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xj=new jt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wj={zoom:{inKeyframes:pj,outKeyframes:gj},"zoom-big":{inKeyframes:jE,outKeyframes:_E},"zoom-big-fast":{inKeyframes:jE,outKeyframes:_E},"zoom-left":{inKeyframes:bj,outKeyframes:vj},"zoom-right":{inKeyframes:Sj,outKeyframes:Cj},"zoom-up":{inKeyframes:hj,outKeyframes:yj},"zoom-down":{inKeyframes:$j,outKeyframes:xj}},yd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:s}=wj[t];return[zp(r,a,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
157
|
+
${r}-enter,
|
|
158
|
+
${r}-appear
|
|
159
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ej=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:s,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:d,collapsePanelBorderRadius:f,lineWidth:m,lineType:g,colorBorder:h,colorText:y,colorTextHeading:v,colorTextDisabled:b,fontSizeLG:$,lineHeight:C,lineHeightLG:x,marginSM:R,paddingSM:w,paddingLG:E,paddingXS:T,motionDurationSlow:N,fontSizeIcon:O,contentPadding:P,fontHeight:B,fontHeightLG:L}=e,V=`${te(m)} ${g} ${h}`;return{[t]:{...Jt(e),backgroundColor:a,border:V,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:V,"&:first-child":{[`
|
|
160
|
+
&,
|
|
161
|
+
& > ${t}-header`]:{borderRadius:`${te(f)} ${te(f)} 0 0`}},"&:last-child":{[`
|
|
162
|
+
&,
|
|
163
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:v,lineHeight:C,cursor:"pointer",transition:`all ${N}, visibility 0s`,...wo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:B,display:"flex",alignItems:"center",marginInlineEnd:R},[`${t}-arrow`]:{...Ds(),fontSize:O,transition:`transform ${N}`,svg:{transition:`transform ${N}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:y,backgroundColor:n,borderTop:V,[`& > ${t}-body`]:{padding:P},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(w).sub(T).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:w}}},"&-large":{[`> ${t}-item`]:{fontSize:$,lineHeight:x,[`> ${t}-header`]:{padding:d,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:L,marginInlineStart:e.calc(E).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:b,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:R}}}}}}},Mj=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Rj=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${s}`},[`
|
|
164
|
+
> ${t}-item:last-child,
|
|
165
|
+
> ${t}-item:last-child ${t}-header
|
|
166
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Tj=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},Oj=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),Nj=At("Collapse",e=>{const t=It(e,{collapseHeaderPaddingSM:`${te(e.paddingXS)} ${te(e.paddingSM)}`,collapseHeaderPaddingLG:`${te(e.padding)} ${te(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Ej(t),Rj(t),Tj(t),Mj(t),ZT(t)]},Oj),Ij=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:s,style:c,classNames:d,styles:f}=zt("collapse"),{prefixCls:m,className:g,rootClassName:h,style:y,bordered:v=!0,ghost:b,size:$,expandIconPlacement:C,expandIconPosition:x,children:R,destroyInactivePanel:w,destroyOnHidden:E,expandIcon:T,classNames:N,styles:O}=e,P=pr(z=>$??z??"middle"),B=n("collapse",m),L=n(),[V,G]=Nj(B),Y=C??x??"start",q={...e,size:P,bordered:v,expandIconPlacement:Y},[H,_]=Ft([d,N],[f,O],{props:q}),j=T??a,I=l.useCallback((z={})=>{const k=typeof j=="function"?j(z):l.createElement(Ts,{rotate:z.isActive?r==="rtl"?-90:90:void 0,"aria-label":z.isActive?"expanded":"collapsed"});return or(k,X=>({className:K(X.className,`${B}-arrow`)}))},[j,B,r]),D=K(`${B}-icon-placement-${Y}`,{[`${B}-borderless`]:!v,[`${B}-rtl`]:r==="rtl",[`${B}-ghost`]:!!b,[`${B}-${P}`]:P!=="middle"},s,g,h,V,G,H.root),F=l.useMemo(()=>({...YT(L),motionAppear:!1,leavedClassName:`${B}-panel-hidden`}),[L,B]),A=l.useMemo(()=>R?mr(R).map(z=>z):null,[R]);return l.createElement(kS,{ref:t,openMotion:F,...nn(e,["rootClassName"]),expandIcon:I,prefixCls:B,className:D,style:{..._.root,...c,...y},classNames:H,styles:_,destroyOnHidden:E??w},A)}),HE=Object.assign(Ij,{Panel:XD}),Pj=e=>e instanceof Km?e:new Km(e),eO=(e,t)=>{const{r:n,g:r,b:a,a:s}=e.toRgb(),c=new Tu(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+a*.114>192},tO=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return It(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},nO=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,a=e.contentLineHeight??wm(t),s=e.contentLineHeightSM??wm(n),c=e.contentLineHeightLG??wm(r),d=eO(new Km(e.colorBgSolid),"#fff")?"#000":"#fff",f=pi.reduce((h,y)=>({...h,[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Zc(e[`${y}1`],e.colorBgContainer)}`}),{}),m=e.colorBgContainerDisabled,g=e.colorBgContainerDisabled;return{...f,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,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:d,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:a,contentLineHeightSM:s,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-t*a)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*c)/2-e.lineWidth,0),defaultBgDisabled:m,dashedBgDisabled:g}},zj=e=>{const{componentCls:t,antCls:n}=e,[r,a]=en(n,"btn");return{[t]:[{[r("border-width")]:"1px",[r("border-color")]:"#000",[r("border-color-hover")]:a("border-color"),[r("border-color-active")]:a("border-color"),[r("border-color-disabled")]:a("border-color"),[r("border-style")]:"solid",[r("text-color")]:"#000",[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color"),[r("text-color-disabled")]:a("text-color"),[r("bg-color")]:"#ddd",[r("bg-color-hover")]:a("bg-color"),[r("bg-color-active")]:a("bg-color"),[r("bg-color-disabled")]:e.colorBgContainerDisabled,[r("bg-color-container")]:e.colorBgContainer,[r("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[r("solid-bg-color")]:a("color-base"),[r("solid-bg-color-hover")]:a("color-hover"),[r("solid-bg-color-active")]:a("color-active"),[r("border-color")]:"transparent",[r("text-color")]:e.colorTextLightSolid,[r("bg-color")]:a("solid-bg-color"),[r("bg-color-hover")]:a("solid-bg-color-hover"),[r("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("border-color")]:a("color-base"),[r("border-color-hover")]:a("color-hover"),[r("border-color-active")]:a("color-active"),[r("bg-color")]:a("bg-color-container"),[r("text-color")]:a("color-base"),[r("text-color-hover")]:a("color-hover"),[r("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[r("border-style")]:"dashed",[r("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[r("border-color")]:"transparent",[r("text-color")]:a("color-base"),[r("bg-color")]:a("color-light"),[r("bg-color-hover")]:a("color-light-hover"),[r("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[r("border-color")]:"transparent",[r("text-color")]:a("color-base"),[r("text-color-hover")]:a("color-hover"),[r("text-color-active")]:a("color-active"),[r("bg-color")]:"transparent",[r("bg-color-hover")]:"transparent",[r("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[r("bg-color-hover")]:a("color-light"),[r("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[r("color-base")]:e.colorLink,[r("color-hover")]:e.colorLinkHover,[r("color-active")]:e.colorLinkActive},[`&${t}-color-primary`]:{[r("color-base")]:e.colorPrimary,[r("color-hover")]:e.colorPrimaryHover,[r("color-active")]:e.colorPrimaryActive,[r("color-light")]:e.colorPrimaryBg,[r("color-light-hover")]:e.colorPrimaryBgHover,[r("color-light-active")]:e.colorPrimaryBorder,[r("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.primaryColor,[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[r("color-base")]:e.colorError,[r("color-hover")]:e.colorErrorHover,[r("color-active")]:e.colorErrorActive,[r("color-light")]:e.colorErrorBg,[r("color-light-hover")]:e.colorErrorBgFilledHover,[r("color-light-active")]:e.colorErrorBgActive,[r("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.dangerColor,[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[r("solid-bg-color")]:e.colorBgSolid,[r("solid-bg-color-hover")]:e.colorBgSolidHover,[r("solid-bg-color-active")]:e.colorBgSolidActive,[r("color-base")]:e.defaultBorderColor,[r("color-hover")]:e.defaultHoverBorderColor,[r("color-active")]:e.defaultActiveBorderColor,[r("color-light")]:e.colorFillTertiary,[r("color-light-hover")]:e.colorFillSecondary,[r("color-light-active")]:e.colorFill,[r("text-color")]:e.colorText,[r("text-color-hover")]:e.defaultHoverBorderColor,[r("text-color-active")]:e.defaultActiveBorderColor,[r("shadow")]:e.defaultShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.solidTextColor,[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[r("text-color-hover")]:a("text-color"),[r("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("bg-color-hover")]:e.defaultHoverBg,[r("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[r("text-color")]:e.textTextColor,[r("text-color-hover")]:e.textTextHoverColor,[r("text-color-active")]:e.textTextActiveColor,[r("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("text-color")]:e.defaultGhostColor,[r("border-color")]:e.defaultGhostBorderColor}}}},pi.map(s=>{const c=e[`${s}6`],d=e[`${s}1`],f=e[`${s}5`],m=e[`${s}2`],g=e[`${s}3`],h=e[`${s}7`],y=e[`${s}ShadowColor`];return{[`&${t}-color-${s}`]:{[r("color-base")]:c,[r("color-hover")]:f,[r("color-active")]:h,[r("color-light")]:d,[r("color-light-hover")]:m,[r("color-light-active")]:g,[r("shadow")]:y}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[r("bg-color")]:"transparent",[r("shadow")]:"none"}}]}},Aj=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:s,motionEaseInOut:c,iconGap:d,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ds(),"> a":{color:"currentColor"},"&:not(:disabled)":wo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${s} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(d).mul(-1).equal()}}}}}},Dj=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),WS=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:s,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:f,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:a,height:r,padding:`${te(f)} ${te(c)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:Dj(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},jj=e=>{const t=It(e,{fontSize:e.contentFontSize});return WS(t,e.componentCls)},_j=e=>{const t=It(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return WS(t,`${e.componentCls}-sm`)},Hj=e=>{const t=It(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return WS(t,`${e.componentCls}-lg`)},Bj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Lj=At("Button",e=>{const t=tO(e);return[Aj(t),jj(t),_j(t),Hj(t),Bj(t),zj(t),DD(t)]},nO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Vj(e,t,n,r){const{focusElCls:a,focus:s,borderElCls:c}=n,d=c?"> *":"",f=["hover",s?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${d}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[f]:{zIndex:3},...a?{[`&${a}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function Fj(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function bd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,s=`${a}-compact`;return{[s]:{...Vj(e,s,t,a),...Fj(a,s,t)}}}function kj(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Wj(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 qj(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...kj(e,t,e.componentCls),...Wj(e.componentCls,t)}}}const Yj=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,s=a(r).mul(-1).equal(),c=d=>{const f=`${t}-compact${d?"-vertical":""}-item`,m=`${f}${t}-primary:not([disabled])`;return{[f]:{transition:"none"},[`${m} + ${m}::before`]:{position:"absolute",top:d?s:0,insetInlineStart:d?0:s,backgroundColor:n,content:'""',width:d?"100%":r,height:d?r:"100%"}}};return{...c(),...c(!0)}},Uj=cd(["Button","compact"],e=>{const t=tO(e);return[bd(t),qj(t),Yj(t)]},nO);function Gj(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}}const Xj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Kj=ie.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:a,color:s,variant:c,type:d,danger:f=!1,shape:m,size:g,disabled:h,className:y,rootClassName:v,children:b,icon:$,iconPosition:C,iconPlacement:x,ghost:R=!1,block:w=!1,htmlType:E="button",classNames:T,styles:N,style:O,autoInsertSpace:P,autoFocus:B,...L}=e,V=mr(b),G=d||"default",{button:Y}=ie.useContext(ft),q=m||Y?.shape||"default",[H,_]=l.useMemo(()=>{if(s&&c)return[s,c];if(d||f){const lt=Xj[G]||[];return f?["danger",lt[1]]:lt}return Y?.color&&Y?.variant?[Y.color,Y.variant]:["default","outlined"]},[s,c,d,f,Y?.color,Y?.variant,G]),[j,I]=l.useMemo(()=>R&&_==="solid"?[H,"outlined"]:[H,_],[H,_,R]),D=j==="danger",F=D?"dangerous":j,{getPrefixCls:A,direction:z,autoInsertSpace:k,className:X,style:Q,classNames:Z,styles:J}=zt("button"),oe=P??k??!0,ne=A("btn",a),[re,ce]=Lj(ne),fe=l.useContext(Wr),le=h??fe,pe=l.useContext(GT),ae=l.useMemo(()=>Gj(r),[r]),[se,he]=l.useState(ae.loading),[ge,be]=l.useState(!1),Ne=l.useRef(null),ve=Ta(t,Ne),xe=V.length===1&&!$&&!Ty(I),de=l.useRef(!0);ie.useEffect(()=>(de.current=!1,()=>{de.current=!0}),[]),Pt(()=>{let lt=null;ae.delay>0?lt=setTimeout(()=>{lt=null,he(!0)},ae.delay):he(ae.loading);function Ct(){lt&&(clearTimeout(lt),lt=null)}return Ct},[ae.delay,ae.loading]),l.useEffect(()=>{if(!Ne.current||!oe)return;const lt=Ne.current.textContent||"";xe&&lv(lt)?ge||be(!0):ge&&be(!1)}),l.useEffect(()=>{B&&Ne.current&&Ne.current.focus()},[]);const Se=ie.useCallback(lt=>{if(se||le){lt.preventDefault();return}e.onClick?.(("href"in e,lt))},[e.onClick,se,le]),{compactSize:Me,compactItemClassnames:Ae}=Oa(ne,z),Ie={large:"lg",small:"sm",middle:void 0},Ye=pr(lt=>g??Me??pe??lt),Ze=Ye?Ie[Ye]??"":"",He=se?"loading":$,Ve=x??C??"start",_e=nn(L,["navigate"]),Ue={...e,type:G,color:j,variant:I,danger:D,shape:q,size:Ye,disabled:le,loading:se,iconPlacement:Ve},[Pe,Ce]=Ft([n?void 0:Z,T],[n?void 0:J,N],{props:Ue}),Fe=K(ne,re,ce,{[`${ne}-${q}`]:q!=="default"&&q!=="square"&&q,[`${ne}-${G}`]:G,[`${ne}-dangerous`]:f,[`${ne}-color-${F}`]:F,[`${ne}-variant-${I}`]:I,[`${ne}-${Ze}`]:Ze,[`${ne}-icon-only`]:!b&&b!==0&&!!He,[`${ne}-background-ghost`]:R&&!Ty(I),[`${ne}-loading`]:se,[`${ne}-two-chinese-chars`]:ge&&oe&&!se,[`${ne}-block`]:w,[`${ne}-rtl`]:z==="rtl",[`${ne}-icon-end`]:Ve==="end"},Ae,y,v,X,Pe.root),Je={...Ce.root,...Q,...O},Be={className:Pe.icon,style:Ce.icon},Xe=lt=>ie.createElement(XT,{prefixCls:ne,...Be},lt),Oe=ie.createElement(AD,{existIcon:!!$,prefixCls:ne,loading:se,mount:de.current,...Be});let Ke;$&&!se?Ke=Xe($):r&&typeof r=="object"&&r.icon?Ke=Xe(r.icon):Ke=Oe;const nt=Rr(b)?zD(b,xe&&oe,Ce.content,Pe.content):null;if(_e.href!==void 0)return ie.createElement("a",{..._e,className:K(Fe,{[`${ne}-disabled`]:le}),href:le?void 0:_e.href,style:Je,onClick:Se,ref:ve,tabIndex:le?-1:0,"aria-disabled":le},Ke,nt);let ot=ie.createElement("button",{...L,type:E,className:Fe,style:Je,onClick:Se,disabled:le,ref:ve},Ke,nt,Ae&&ie.createElement(Uj,{prefixCls:ne}));return Ty(I)||(ot=ie.createElement(hd,{component:"Button",disabled:se},ot)),ot}),Bt=Kj;Bt.Group=ID;Bt.__ANT_BUTTON=!0;const Py=e=>typeof e?.then=="function",qS=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:s,autoFocus:c,emitEvent:d,isSilent:f,quitOnNullishReturnValue:m,actionFn:g}=e,h=l.useRef(!1),y=l.useRef(null),[v,b]=Bm(!1),$=(...R)=>{s?.(...R)};l.useEffect(()=>{let R=null;return c&&(R=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{R&&clearTimeout(R)}},[c]);const C=R=>{Py(R)&&(b(!0),R.then((...w)=>{b(!1,!0),$.apply(void 0,w),h.current=!1},w=>{if(b(!1,!0),h.current=!1,!f?.())return Promise.reject(w)}))},x=R=>{if(h.current)return;if(h.current=!0,!g){$();return}let w;if(d){if(w=g(R),m&&!Py(w)){h.current=!1,$(R);return}}else if(g.length)w=g(s),h.current=!1;else if(w=g(),!Py(w)){$();return}C(w)};return l.createElement(Bt,{...FS(t),onClick:x,loading:v,prefixCls:r,...a,ref:y},n)},vd=ie.createContext({}),{Provider:rO}=vd,BE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:s,close:c,onCancel:d,onConfirm:f,onClose:m}=l.useContext(vd);return a?ie.createElement(qS,{isSilent:r,actionFn:d,close:(...g)=>{c?.(...g),f?.(!1),m?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},LE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:s,okType:c,onConfirm:d,onOk:f,onClose:m}=l.useContext(vd);return ie.createElement(qS,{isSilent:n,type:c||"primary",actionFn:f,close:(...g)=>{t?.(...g),d?.(!0),m?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},s)},oO=l.createContext({});function VE(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function FE(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function Qj(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=FE(a),n.top+=FE(a,!0),n}function kE(e,t=!1){if(Np(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),s=Number(a);let c=null;return a&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function YS(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>kE(r,t));return kE(e,t)&&n.unshift(e),n}function aO(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let Cs=null,ii=[];function iO(){return ii[ii.length-1]}function Zj(e){const{activeElement:t}=document;return e===t||e.contains(t)}function zy(){const e=iO(),{activeElement:t}=document;if(e&&!Zj(e)){const n=YS(e);(n.includes(Cs)?Cs:n[0])?.focus()}else Cs=t}function WE(e){if(e.key==="Tab"){const{activeElement:t}=document,n=iO(),r=YS(n),a=r[r.length-1];e.shiftKey&&t===r[0]?Cs=a:!e.shiftKey&&t===a&&(Cs=r[0])}}function Jj(e){return e&&(ii=ii.filter(t=>t!==e),ii.push(e),window.addEventListener("focusin",zy),window.addEventListener("keydown",WE,!0),zy()),()=>{Cs=null,ii=ii.filter(t=>t!==e),ii.length===0&&(window.removeEventListener("focusin",zy),window.removeEventListener("keydown",WE,!0))}}function lO(e,t){l.useEffect(()=>{if(e){const n=t();if(n)return Jj(n)}},[e])}const e_=l.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}const sO=ie.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,title:s,ariaId:c,footer:d,closable:f,closeIcon:m,onClose:g,children:h,bodyStyle:y,bodyProps:v,modalRender:b,onMouseDown:$,onMouseUp:C,holderRef:x,visible:R,forceRender:w,width:E,height:T,classNames:N,styles:O,isFixedPos:P,focusTrap:B}=e,{panel:L}=ie.useContext(oO),V=l.useRef(null),G=Ta(x,L,V);lO(R&&P&&B!==!1,()=>V.current),ie.useImperativeHandle(t,()=>({focus:()=>{V.current?.focus({preventScroll:!0})}}));const Y={};E!==void 0&&(Y.width=E),T!==void 0&&(Y.height=T);const q=d?ie.createElement("div",{className:K(`${n}-footer`,N?.footer),style:{...O?.footer}},d):null,H=s?ie.createElement("div",{className:K(`${n}-header`,N?.header),style:{...O?.header}},ie.createElement("div",{className:K(`${n}-title`,N?.title),id:c,style:{...O?.title}},s)):null,_=l.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:m??ie.createElement("span",{className:`${n}-close-x`})}:{},[f,m,n]),j=Pn(_,!0),I=typeof f=="object"&&f.disabled,D=f?ie.createElement("button",Qm({type:"button",onClick:g,"aria-label":"Close"},j,{className:`${n}-close`,disabled:I}),_.closeIcon):null,F=ie.createElement("div",{className:K(`${n}-container`,N?.container),style:O?.container},D,H,ie.createElement("div",Qm({className:K(`${n}-body`,N?.body),style:{...y,...O?.body}},v),h),q);return ie.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:G,style:{...a,...Y},className:K(n,r),onMouseDown:$,onMouseUp:C,tabIndex:-1},ie.createElement(e_,{shouldUpdate:R||w},b?b(F):F))});function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}const t_=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:a,className:s,visible:c,forceRender:d,destroyOnHidden:f,motionName:m,ariaId:g,onVisibleChanged:h,mousePosition:y}=e,v=l.useRef(null),b=l.useRef(null);l.useImperativeHandle(t,()=>({...b.current,inMotion:v.current.inMotion,enableMotion:v.current.enableMotion}));const[$,C]=l.useState(),x={};$&&(x.transformOrigin=$);function R(){if(!v.current?.nativeElement)return;const w=Qj(v.current.nativeElement);C(y&&(y.x||y.y)?`${y.x-w.left}px ${y.y-w.top}px`:"")}return l.createElement(Sr,{visible:c,onVisibleChanged:h,onAppearPrepare:R,onEnterPrepare:R,forceRender:d,motionName:m,removeOnLeave:f,ref:v},({className:w,style:E},T)=>l.createElement(sO,cv({},e,{ref:b,title:r,ariaId:g,prefixCls:n,holderRef:T,style:{...E,...a,...x},className:K(s,w)})))});function uv(){return uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uv.apply(this,arguments)}const n_=e=>{const{prefixCls:t,style:n,visible:r,maskProps:a,motionName:s,className:c}=e;return l.createElement(Sr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:d,style:f},m)=>l.createElement("div",uv({ref:m,style:{...f,...n},className:K(`${t}-mask`,d,c)},a)))};function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(this,arguments)}const r_=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:a=!0,wrapStyle:s,wrapClassName:c,wrapProps:d,onClose:f,afterOpenChange:m,afterClose:g,transitionName:h,animation:y,closable:v=!0,mask:b=!0,maskTransitionName:$,maskAnimation:C,maskClosable:x=!0,maskStyle:R,maskProps:w,rootClassName:E,rootStyle:T,classNames:N,styles:O}=e,P=l.useRef(null),B=l.useRef(null),L=l.useRef(null),[V,G]=l.useState(r),[Y,q]=l.useState(!1),H=Jo();function _(){Cb(B.current,document.activeElement)||(P.current=document.activeElement)}function j(){Cb(B.current,document.activeElement)||L.current?.focus()}function I(){if(G(!1),b&&P.current&&a){try{P.current.focus({preventScroll:!0})}catch{}P.current=null}V&&g?.()}function D(J){J?j():I(),m?.(J)}function F(J){f?.(J)}const A=l.useRef(!1),z=l.useRef(null),k=()=>{clearTimeout(z.current),A.current=!0},X=()=>{z.current=setTimeout(()=>{A.current=!1})};let Q=null;x&&(Q=J=>{A.current?A.current=!1:B.current===J.target&&F(J)}),l.useEffect(()=>{if(r){if(G(!0),_(),B.current){const J=getComputedStyle(B.current);q(J.position==="fixed")}}else V&&L.current.enableMotion()&&!L.current.inMotion()&&I()},[r]),l.useEffect(()=>()=>{clearTimeout(z.current)},[]);const Z={zIndex:n,...s,...O?.wrapper,display:V?null:"none"};return l.createElement("div",cu({className:K(`${t}-root`,E),style:T},Pn(e,{data:!0})),l.createElement(n_,{prefixCls:t,visible:b&&r,motionName:VE(t,$,C),style:{zIndex:n,...R,...O?.mask},maskProps:w,className:N?.mask}),l.createElement("div",cu({className:K(`${t}-wrap`,c,N?.wrapper),ref:B,onClick:Q,style:Z},d),l.createElement(t_,cu({},e,{isFixedPos:Y,onMouseDown:k,onMouseUp:X,ref:L,closable:v,ariaId:H,prefixCls:t,visible:r&&V,onClose:F,onVisibleChanged:D,motionName:VE(t,h,y)}))))};function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dv.apply(this,arguments)}const o_=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:a=!1,afterClose:s,closable:c,panelRef:d,keyboard:f=!0,onClose:m}=e,[g,h]=l.useState(t),y=l.useMemo(()=>({panel:d}),[d]),v=({top:b,event:$})=>{if(b&&f){$.stopPropagation(),m?.($);return}};return l.useEffect(()=>{t&&h(!0)},[t]),!r&&a&&!g?null:l.createElement(oO.Provider,{value:y},l.createElement(fd,{open:t||r||g,onEsc:v,autoDestroy:!1,getContainer:n,autoLock:t||g},l.createElement(r_,dv({},e,{destroyOnHidden:a,afterClose:()=>{const b=c&&typeof c=="object"?c:{},{afterClose:$}=b||{};$?.(),s?.(),h(!1)}}))))},Ki="RC_FORM_INTERNAL_HOOKS",$n=()=>{rr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ns=l.createContext({getFieldValue:$n,getFieldsValue:$n,getFieldError:$n,getFieldWarning:$n,getFieldsError:$n,isFieldsTouched:$n,isFieldTouched:$n,isFieldValidating:$n,isFieldsValidating:$n,resetFields:$n,setFields:$n,setFieldValue:$n,setFieldsValue:$n,validateFields:$n,submit:$n,getInternalHooks:()=>($n(),{dispatch:$n,initEntityValue:$n,registerField:$n,useSubscribe:$n,setInitialValues:$n,destroyForm:$n,setCallbacks:$n,registerWatch:$n,getFields:$n,setValidateMessages:$n,setPreserve:$n,getInitialValue:$n})}),Zm=l.createContext(null);function fv(e){return e==null?[]:Array.isArray(e)?e:[e]}function a_(e){return e&&!!e._init}function mv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var pv=mv();function i_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function l_(e,t,n){if(Rp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&xu(a,n.prototype),a}function gv(e){var t=typeof Map=="function"?new Map:void 0;return gv=function(r){if(r===null||!i_(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return l_(r,arguments,rl(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),xu(a,r)},gv(e)}var s_=/%[sdj%]/g,c_=function(){};function hv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ro(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(s_,function(d){if(d==="%%")return"%";if(a>=s)return d;switch(d){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function u_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||u_(t)&&typeof e=="string"&&!e)}function d_(e,t,n){var r=[],a=0,s=e.length;function c(d){r.push.apply(r,En(d||[])),a++,a===s&&n(r)}e.forEach(function(d){t(d,c)})}function qE(e,t,n){var r=0,a=e.length;function s(c){if(c&&c.length){n(c);return}var d=r;r=r+1,d<a?t(e[d],s):n([])}s([])}function f_(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,En(e[n]||[]))}),t}var YE=(function(e){PS(n,e);var t=L4(n);function n(r,a){var s;return dl(this,n),s=t.call(this,"Async Validation Error"),dr(vs(s),"errors",void 0),dr(vs(s),"fields",void 0),s.errors=r,s.fields=a,s}return fl(n)})(gv(Error));function m_(e,t,n,r,a){if(t.first){var s=new Promise(function(y,v){var b=function(x){return r(x),x.length?v(new YE(x,hv(x))):y(a)},$=f_(e);qE($,n,b)});return s.catch(function(y){return y}),s}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],d=Object.keys(e),f=d.length,m=0,g=[],h=new Promise(function(y,v){var b=function(C){if(g.push.apply(g,C),m++,m===f)return r(g),g.length?v(new YE(g,hv(g))):y(a)};d.length||(r(g),y(a)),d.forEach(function($){var C=e[$];c.indexOf($)!==-1?qE(C,n,b):d_(C,n,b)})});return h.catch(function(y){return y}),h}function p_(e){return!!(e&&e.message!==void 0)}function g_(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function UE(e,t){return function(n){var r;return e.fullFields?r=g_(t,e.fullFields):r=t[n.field||e.fullField],p_(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function GE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Xn(r)==="object"&&Xn(e[n])==="object"?e[n]=Hn(Hn({},e[n]),r):e[n]=r}}return e}var ts="enum",h_=function(t,n,r,a,s){t[ts]=Array.isArray(t[ts])?t[ts]:[],t[ts].indexOf(n)===-1&&a.push(ro(s.messages[ts],t.fullField,t[ts].join(", ")))},y_=function(t,n,r,a,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||a.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},b_=function(t,n,r,a,s){var c=typeof t.len=="number",d=typeof t.min=="number",f=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,h=null,y=typeof n=="number",v=typeof n=="string",b=Array.isArray(n);if(y?h="number":v?h="string":b&&(h="array"),!h)return!1;b&&(g=n.length),v&&(g=n.replace(m,"_").length),c?g!==t.len&&a.push(ro(s.messages[h].len,t.fullField,t.len)):d&&!f&&g<t.min?a.push(ro(s.messages[h].min,t.fullField,t.min)):f&&!d&&g>t.max?a.push(ro(s.messages[h].max,t.fullField,t.max)):d&&f&&(g<t.min||g>t.max)&&a.push(ro(s.messages[h].range,t.fullField,t.min,t.max))},cO=function(t,n,r,a,s,c){t.required&&(!r.hasOwnProperty(t.field)||ar(n,c||t.type))&&a.push(ro(s.messages.required,t.fullField))},Yf;const v_=(function(){if(Yf)return Yf;var e="[a-fA-F\\d:]",t=function(N){return N&&N.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(s),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),f=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(c,"$")),g=function(N){return N&&N.exact?d:new RegExp("(?:".concat(t(N)).concat(n).concat(t(N),")|(?:").concat(t(N)).concat(c).concat(t(N),")"),"g")};g.v4=function(T){return T&&T.exact?f:new RegExp("".concat(t(T)).concat(n).concat(t(T)),"g")},g.v6=function(T){return T&&T.exact?m:new RegExp("".concat(t(T)).concat(c).concat(t(T)),"g")};var h="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",v=g.v4().source,b=g.v6().source,$="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",R="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',E="(?:".concat(h,"|www\\.)").concat(y,"(?:localhost|").concat(v,"|").concat(b,"|").concat($).concat(C).concat(x,")").concat(R).concat(w);return Yf=new RegExp("(?:^".concat(E,"$)"),"i"),Yf});var Ay={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Jc={integer:function(t){return Jc.number(t)&&parseInt(t,10)===t},float:function(t){return Jc.number(t)&&!Jc.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 Xn(t)==="object"&&!Jc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ay.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Ay.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(v_())},hex:function(t){return typeof t=="string"&&!!t.match(Ay.hex)}},S_=function(t,n,r,a,s){if(t.required&&n===void 0){cO(t,n,r,a,s);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=t.type;c.indexOf(d)>-1?Jc[d](n)||a.push(ro(s.messages.types[d],t.fullField,t.type)):d&&Xn(n)!==t.type&&a.push(ro(s.messages.types[d],t.fullField,t.type))},C_=function(t,n,r,a,s){(/^\s+$/.test(n)||n==="")&&a.push(ro(s.messages.whitespace,t.fullField))};const Qt={required:cO,whitespace:C_,type:S_,range:b_,enum:h_,pattern:y_};var $_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s)}r(c)},x_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();Qt.required(t,n,a,c,s,"array"),n!=null&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},w_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt.type(t,n,a,c,s)}r(c)},E_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n,"date")&&!t.required)return r();if(Qt.required(t,n,a,c,s),!ar(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Qt.type(t,f,a,c,s),f&&Qt.range(t,f.getTime(),a,c,s)}}r(c)},M_="enum",R_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt[M_](t,n,a,c,s)}r(c)},T_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},O_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},N_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt.type(t,n,a,c,s)}r(c)},I_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s))}r(c)},P_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),n!==void 0&&Qt.type(t,n,a,c,s)}r(c)},z_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n,"string")&&!t.required)return r();Qt.required(t,n,a,c,s),ar(n,"string")||Qt.pattern(t,n,a,c,s)}r(c)},A_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Qt.required(t,n,a,c,s),ar(n)||Qt.type(t,n,a,c,s)}r(c)},D_=function(t,n,r,a,s){var c=[],d=Array.isArray(n)?"array":Xn(n);Qt.required(t,n,a,c,s,d),r(c)},j_=function(t,n,r,a,s){var c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ar(n,"string")&&!t.required)return r();Qt.required(t,n,a,c,s,"string"),ar(n,"string")||(Qt.type(t,n,a,c,s),Qt.range(t,n,a,c,s),Qt.pattern(t,n,a,c,s),t.whitespace===!0&&Qt.whitespace(t,n,a,c,s))}r(c)},Uf=function(t,n,r,a,s){var c=t.type,d=[],f=t.required||!t.required&&a.hasOwnProperty(t.field);if(f){if(ar(n,c)&&!t.required)return r();Qt.required(t,n,a,d,s,c),ar(n,c)||Qt.type(t,n,a,d,s)}r(d)};const uu={string:j_,method:N_,number:I_,boolean:w_,regexp:A_,integer:O_,float:T_,array:x_,object:P_,enum:R_,pattern:z_,date:E_,url:Uf,hex:Uf,email:Uf,tel:Uf,required:D_,any:$_};var Sd=(function(){function e(t){dl(this,e),dr(this,"rules",null),dr(this,"_messages",pv),this.define(t)}return fl(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Xn(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var s=n[a];r.rules[a]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=GE(mv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,d=a,f=s;if(typeof d=="function"&&(f=d,d={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,c),Promise.resolve(c);function m(b){var $=[],C={};function x(w){if(Array.isArray(w)){var E;$=(E=$).concat.apply(E,En(w))}else $.push(w)}for(var R=0;R<b.length;R++)x(b[R]);$.length?(C=hv($),f($,C)):f(null,c)}if(d.messages){var g=this.messages();g===pv&&(g=mv()),GE(g,d.messages),d.messages=g}else d.messages=this.messages();var h={},y=d.keys||Object.keys(this.rules);y.forEach(function(b){var $=r.rules[b],C=c[b];$.forEach(function(x){var R=x;typeof R.transform=="function"&&(c===n&&(c=Hn({},c)),C=c[b]=R.transform(C),C!=null&&(R.type=R.type||(Array.isArray(C)?"array":Xn(C)))),typeof R=="function"?R={validator:R}:R=Hn({},R),R.validator=r.getValidationMethod(R),R.validator&&(R.field=b,R.fullField=R.fullField||b,R.type=r.getType(R),h[b]=h[b]||[],h[b].push({rule:R,value:C,source:c,field:b}))})});var v={};return m_(h,d,function(b,$){var C=b.rule,x=(C.type==="object"||C.type==="array")&&(Xn(C.fields)==="object"||Xn(C.defaultField)==="object");x=x&&(C.required||!C.required&&b.value),C.field=b.field;function R(O,P){return Hn(Hn({},P),{},{fullField:"".concat(C.fullField,".").concat(O),fullFields:C.fullFields?[].concat(En(C.fullFields),[O]):[O]})}function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(O)?O:[O];!d.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&C.message!==void 0&&C.message!==null&&(P=[].concat(C.message));var B=P.map(UE(C,c));if(d.first&&B.length)return v[C.field]=1,$(B);if(!x)$(B);else{if(C.required&&!b.value)return C.message!==void 0?B=[].concat(C.message).map(UE(C,c)):d.error&&(B=[d.error(C,ro(d.messages.required,C.field))]),$(B);var L={};C.defaultField&&Object.keys(b.value).map(function(Y){L[Y]=C.defaultField}),L=Hn(Hn({},L),b.rule.fields);var V={};Object.keys(L).forEach(function(Y){var q=L[Y],H=Array.isArray(q)?q:[q];V[Y]=H.map(R.bind(null,Y))});var G=new e(V);G.messages(d.messages),b.rule.options&&(b.rule.options.messages=d.messages,b.rule.options.error=d.error),G.validate(b.value,b.rule.options||d,function(Y){var q=[];B&&B.length&&q.push.apply(q,En(B)),Y&&Y.length&&q.push.apply(q,En(Y)),$(q.length?q:null)})}}var E;if(C.asyncValidator)E=C.asyncValidator(C,b.value,w,b.source,d);else if(C.validator){try{E=C.validator(C,b.value,w,b.source,d)}catch(O){var T,N;(T=(N=console).error)===null||T===void 0||T.call(N,O),d.suppressValidatorError||setTimeout(function(){throw O},0),w(O.message)}E===!0?w():E===!1?w(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):E instanceof Array?w(E):E instanceof Error&&w(E.message)}E&&E.then&&E.then(function(){return w()},function(O){return w(O)})},function(b){m(b)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!uu.hasOwnProperty(n.type))throw new Error(ro("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?uu.required:uu[this.getType(n)]||void 0}}]),e})();dr(Sd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");uu[t]=n});dr(Sd,"warning",c_);dr(Sd,"messages",pv);dr(Sd,"validators",uu);const Vr="'${name}' is not a valid ${type}",uO={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:Vr,method:Vr,array:Vr,object:Vr,number:Vr,date:Vr,boolean:Vr,integer:Vr,float:Vr,regexp:Vr,email:Vr,tel:Vr,url:Vr,hex:Vr},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}"}},XE=Sd;function __(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const KE="CODE_LOGIC_ERROR";async function yv(e,t,n,r,a){const s={...n};if(delete s.ruleIndex,XE.warning=()=>{},s.validator){const y=s.validator;s.validator=(...v)=>{try{return y(...v)}catch(b){return console.error(b),Promise.reject(KE)}}}let c=null;s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField);const d=new XE({[e]:[s]}),f=Ca(uO,r.validateMessages);d.messages(f);let m=[];try{await Promise.resolve(d.validate({[e]:t},{...r}))}catch(y){y.errors&&(m=y.errors.map(({message:v},b)=>{const $=v===KE?f.default:v;return l.isValidElement($)?l.cloneElement($,{key:`error_${b}`}):$}))}if(!m.length&&c&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((v,b)=>yv(`${e}.${b}`,v,c,r,a)))).reduce((v,b)=>[...v,...b],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...a};return m.map(y=>typeof y=="string"?__(y,g):y)}function H_(e,t,n,r,a,s){const c=e.join("."),d=n.map((m,g)=>{const h=m.validator,y={...m,ruleIndex:g};return h&&(y.validator=(v,b,$)=>{let C=!1;const R=h(v,b,(...w)=>{Promise.resolve().then(()=>{rr(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||$(...w)})});C=R&&typeof R.then=="function"&&typeof R.catch=="function",rr(C,"`callback` is deprecated. Please return a promise instead."),C&&R.then(()=>{$()}).catch(w=>{$(w||" ")})}),y}).sort(({warningOnly:m,ruleIndex:g},{warningOnly:h,ruleIndex:y})=>!!m==!!h?g-y:m?1:-1);let f;if(a===!0)f=new Promise(async(m,g)=>{for(let h=0;h<d.length;h+=1){const y=d[h],v=await yv(c,t,y,r,s);if(v.length){g([{errors:v,rule:y}]);return}}m([])});else{const m=d.map(g=>yv(c,t,g,r,s).then(h=>({errors:h,rule:g})));f=(a?L_(m):B_(m)).then(g=>Promise.reject(g))}return f.catch(m=>m),f}async function B_(e){return Promise.all(e).then(t=>[].concat(...t))}async function L_(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(a=>{a.errors.length&&n([a]),t+=1,t===e.length&&n([])})})})}function _n(e){return fv(e)}function QE(e,t){let n={};return t.forEach(r=>{const a=Ao(e,r);n=So(n,r,a)}),n}function $s(e,t,n=!1){return e&&e.some(r=>Jm(t,r,n))}function Jm(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,a)=>e[a]===r)}function V_(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(s=>{const c=e[s],d=t[s];return typeof c=="function"&&typeof d=="function"?!0:c===d})}function F_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function ZE(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const a=e[t],s=t-n;return s>0?[...e.slice(0,n),a,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),a,...e.slice(n+1,r)]:e}function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}const _i=[],Bc=[];function Dy(e,t,n,r,a,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==a}class k_ extends l.Component{static contextType=Ns;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=_i;warnings=Bc;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(Ki);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:r}=n,{registerField:a}=r(Ki);this.cancelRegisterFunc=a(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:n,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,t,_n(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:n}=this.props,{prefixName:r=[]}=n;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:n}=this.props;return t.map(r=>typeof r=="function"?r(n):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:n}=this.props;if(n){const r={...this.getMeta(),destroy:t};Su(this.metaCache,r)||n(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,n,r)=>{const{shouldUpdate:a,dependencies:s=[],onReset:c}=this.props,{store:d}=r,f=this.getNamePath(),m=this.getValue(t),g=this.getValue(d),h=n&&$s(n,f);switch(r.type==="valueUpdate"&&r.source==="external"&&!Su(m,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=_i,this.warnings=Bc,this.triggerMetaEvent()),r.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=_i,this.warnings=Bc,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(a&&Dy(a,t,d,m,g,r)){this.reRender();return}break}case"setField":{const{data:y}=r;if(h){"touched"in y&&(this.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(this.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(this.errors=y.errors||_i),"warnings"in y&&(this.warnings=y.warnings||Bc),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&$s(n,f,!0)){this.reRender();return}if(a&&!f.length&&Dy(a,t,d,m,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(_n).some(v=>$s(r.relatedFields,v))){this.reRender();return}break}default:if(h||(!s.length||f.length||a)&&Dy(a,t,d,m,g,r)){this.reRender();return}break}a===!0&&this.reRender()};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:a,validateOnly:s=!1}=t||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:d=!1,messageVariables:f,validateDebounce:m}=this.props;let g=this.getRules();if(a&&(g=g.filter(y=>y).filter(y=>{const{validateTrigger:v}=y;return v?fv(v).includes(a):!0})),m&&a&&(await new Promise(y=>{setTimeout(y,m)}),this.validatePromise!==c))return[];const h=H_(n,r,g,t,d,f);return h.catch(y=>y).then((y=_i)=>{if(this.validatePromise===c){this.validatePromise=null;const v=[],b=[];y.forEach?.(({rule:{warningOnly:$},errors:C=_i})=>{$?b.push(...C):v.push(...C)}),this.errors=v,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),h});return s||(this.validatePromise=c,this.dirty=!0,this.errors=_i,this.warnings=Bc,this.triggerMetaEvent(),this.reRender()),c};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:n}=t.getInternalHooks(Ki);return n(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const n=mr(t);return n.length!==1||!l.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:n}=this.props.fieldContext,r=this.getNamePath();return Ao(t||n(!0),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:a,getValueFromEvent:s,normalize:c,valuePropName:d="value",getValueProps:f,fieldContext:m}=this.props,g=a!==void 0?a:m.validateTrigger,h=this.getNamePath(),{getInternalHooks:y,getFieldsValue:v}=m,{dispatch:b}=y(Ki),$=this.getValue(),C=f||(T=>({[d]:T})),x=t[r],R=n!==void 0?C($):{},w={...t,...R};return w[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;s?N=s(...T):N=F_(d,...T),c&&(N=c(N,$,v(!0))),N!==$&&b({type:"updateValue",namePath:h,value:N}),x&&x(...T)},fv(g||[]).forEach(T=>{const N=w[T];w[T]=(...O)=>{N&&N(...O);const{rules:P}=this.props;P&&P.length&&b({type:"validateField",namePath:h,triggerName:T})}}),w};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:a}=this.getOnlyChild(n);let s;return a?s=r:l.isValidElement(r)?s=l.cloneElement(r,this.getControlled(r.props)):(rr(!r,"`children` of Field is not validate ReactElement."),s=r),l.createElement(l.Fragment,{key:t},s)}}function dO({name:e,...t}){const n=l.useContext(Ns),r=l.useContext(Zm),a=e!==void 0?_n(e):void 0,s=t.isListField??!!r;let c="keep";return s||(c=`_${(a||[]).join("_")}`),l.createElement(k_,bv({key:c,name:a,isListField:s},t,{fieldContext:n}))}function W_({name:e,initialValue:t,children:n,rules:r,validateTrigger:a,isListField:s}){const c=l.useContext(Ns),d=l.useContext(Zm),m=l.useRef({keys:[],id:0}).current,g=l.useMemo(()=>[..._n(c.prefixName)||[],..._n(e)],[c.prefixName,e]),h=l.useMemo(()=>({...c,prefixName:g}),[c,g]),y=l.useMemo(()=>({getKey:b=>{const $=g.length,C=b[$];return[m.keys[C],b.slice($+1)]}}),[m,g]);if(typeof n!="function")return rr(!1,"Form.List only accepts function as children."),null;const v=(b,$,{source:C})=>C==="internal"?!1:b!==$;return l.createElement(Zm.Provider,{value:y},l.createElement(Ns.Provider,{value:h},l.createElement(dO,{name:[],shouldUpdate:v,rules:r,validateTrigger:a,initialValue:t,isList:!0,isListField:s??!!d},({value:b=[],onChange:$},C)=>{const{getFieldValue:x}=c,R=()=>x(g||[])||[],w={add:(T,N)=>{const O=R();N>=0&&N<=O.length?(m.keys=[...m.keys.slice(0,N),m.id,...m.keys.slice(N)],$([...O.slice(0,N),T,...O.slice(N)])):(m.keys=[...m.keys,m.id],$([...O,T])),m.id+=1},remove:T=>{const N=R(),O=new Set(Array.isArray(T)?T:[T]);O.size<=0||(m.keys=m.keys.filter((P,B)=>!O.has(B)),$(N.filter((P,B)=>!O.has(B))))},move(T,N){if(T===N)return;const O=R();T<0||T>=O.length||N<0||N>=O.length||(m.keys=ZE(m.keys,T,N),$(ZE(O,T,N)))}};let E=b||[];return Array.isArray(E)||(E=[]),n(E.map((T,N)=>{let O=m.keys[N];return O===void 0&&(m.keys[N]=m.id,O=m.keys[N],m.id+=1),{name:N,key:O,isListField:!0}}),w,C)})))}function q_(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((a,s)=>{e.forEach((c,d)=>{c.catch(f=>(t=!0,f)).then(f=>{n-=1,r[d]=f,!(n>0)&&(t&&s(r),a(r))})})}):Promise.resolve([])}const vv="__@field_split__";function Gf(e){return e.map(t=>`${typeof t}:${t}`).join(vv)}class ns{kvs=new Map;set(t,n){this.kvs.set(Gf(t),n)}get(t){return this.kvs.get(Gf(t))}getAsPrefix(t){const n=Gf(t),r=n+vv,a=[],s=this.kvs.get(n);return s!==void 0&&a.push(s),this.kvs.forEach((c,d)=>{d.startsWith(r)&&a.push(c)}),a}update(t,n){const r=this.get(t),a=n(r);a?this.set(t,a):this.delete(t)}delete(t){this.kvs.delete(Gf(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const a=n.split(vv);return t({key:a.map(s=>{const[,c,d]=s.match(/^([^:]*):(.*)$/);return c==="number"?Number(d):d}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}const Y_=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class U_{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!Jm(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;Y_(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),a=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,a,this.namePathList)}),this.namePathList=[]}})}}class G_{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new U_(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===Ki?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(rr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,n)=>{if(this.initialValues=t||{},n){let r=Ca(t,this.store);this.prevWithoutPreserves?.map(({key:a})=>{r=So(r,a,Ao(t,a))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new ns;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=Ao(this.initialValues,t);return t.length?Ca(n):n};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const n=new ns;return this.getFieldEntities(t).forEach(r=>{const a=r.getNamePath();n.set(a,r)}),n};getFieldEntitiesForNamePathList=(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(a=>{const s=_n(a),c=r.getAsPrefix(s);return c.length?c:[{INVALIDATE_NAME_PATH:s}]}):t.map(a=>{const s=_n(a);return r.get(s)||{INVALIDATE_NAME_PATH:_n(a)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,a;if(t===!0||Array.isArray(t)?(r=t,a=n):t&&typeof t=="object"&&(a=t.filter),r===!0&&!a)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),c=[],d=[];s.forEach(m=>{const g=m.INVALIDATE_NAME_PATH||m.getNamePath();if(m.isList?.()){d.push(g);return}if(!a)c.push(g);else{const h="getMeta"in m?m.getMeta():null;a(h)&&c.push(g)}});let f=QE(this.store,c.map(_n));return d.forEach(m=>{Ao(f,m)||(f=So(f,m,[]))}),f};getFieldValue=t=>{this.warningUnhooked();const n=_n(t);return Ao(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,a)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:_n(t[a]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=_n(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=_n(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let a,s=!1;t.length===0?a=null:t.length===1?Array.isArray(n)?(a=n.map(_n),s=!1):(a=null,s=n):(a=n.map(_n),s=r);const c=this.getFieldEntities(!0),d=h=>h.isFieldTouched();if(!a)return s?c.every(h=>d(h)||h.isList()):c.some(d);const f=new ns;a.forEach(h=>{f.set(h,[])}),c.forEach(h=>{const y=h.getNamePath();a.forEach(v=>{v.every((b,$)=>y[$]===b)&&f.update(v,b=>[...b,h])})});const m=h=>h.some(d),g=f.map(({value:h})=>h);return s?g.every(m):g.some(m)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(a=>a.isFieldValidating());const r=t.map(_n);return n.some(a=>{const s=a.getNamePath();return $s(r,s)&&a.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new ns,r=this.getFieldEntities(!0);r.forEach(c=>{const{initialValue:d}=c.props,f=c.getNamePath();if(d!==void 0){const m=n.get(f)||new Set;m.add({entity:c,value:d}),n.set(f,m)}});const a=c=>{c.forEach(d=>{const{initialValue:f}=d.props;if(f!==void 0){const m=d.getNamePath();if(this.getInitialValue(m)!==void 0)rr(!1,`Form already set 'initialValues' with path '${m.join(".")}'. Field can not overwrite it.`);else{const h=n.get(m);if(h&&h.size>1)rr(!1,`Multiple Field with path '${m.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(h){const y=this.getFieldValue(m);!d.isListField()&&(!t.skipExist||y===void 0)&&this.updateStore(So(this.store,m,[...h][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(c=>{const d=n.get(c);d&&s.push(...[...d].map(f=>f.entity))})):s=r,a(s)};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(Ca(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(_n);r.forEach(a=>{const s=this.getInitialValue(a);this.updateStore(So(this.store,a,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)};setFields=t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(a=>{const{name:s,...c}=a,d=_n(s);r.push(d),"value"in c&&this.updateStore(So(this.store,d,c.value)),this.notifyObservers(n,[d],{type:"setField",data:a})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const a=r.getNamePath(),c={...r.getMeta(),name:a,value:this.getFieldValue(a)};return Object.defineProperty(c,"originRCField",{value:!0}),c});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Ao(this.store,r)===void 0&&this.updateStore(So(this.store,r,n))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,a,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==t),!this.isMergedPreserve(a)&&(!r||s.length>1)){const c=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==c&&this.fieldEntities.every(d=>!Jm(d.getNamePath(),n))){const d=this.store;this.updateStore(So(d,n,c,!0)),this.notifyObservers(d,[n],{type:"remove"}),this.triggerDependenciesUpdate(d,n)}}this.notifyWatch([n])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(t,n,r)=>{if(this.subscribable){const a={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,a)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r};updateValue=(t,n)=>{const r=_n(t),a=this.store;this.updateStore(So(this.store,r,n)),this.notifyObservers(a,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(a,r),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(r),f=QE(this.store,[r]),m=this.getFieldsValue(),g=d4([m,f],{prepareArray:h=>d?.isList()?[]:[...h||[]]});c(f,g)}this.triggerOnFieldsChange([r,...s])};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const r=Ca(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const n=new Set,r=[],a=new ns;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(f=>{const m=_n(f);a.update(m,(g=new Set)=>(g.add(c),g))})});const s=c=>{(a.get(c)||new Set).forEach(f=>{if(!n.has(f)){n.add(f);const m=f.getNamePath();f.isFieldDirty()&&m.length&&(r.push(m),s(m))}})};return s(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const a=this.getFields();if(n){const c=new ns;n.forEach(({name:d,errors:f})=>{c.set(d,f)}),a.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const s=a.filter(({name:c})=>$s(t,c));s.length&&r(s,a)}};validateFields=(t,n)=>{this.warningUnhooked();let r,a;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,a=n):a=t;const s=!!r,c=s?r.map(_n):[],d=[...c],f=[],m=String(Date.now()),g=new Set,{recursive:h,dirty:y}=a||{};this.getFieldEntities(!0).forEach(C=>{const x=C.getNamePath();if(s||((!C.isList()||!c.some(R=>Jm(R,x,!0)))&&d.push(x),c.push(x)),!(!C.props.rules||!C.props.rules.length)&&!(y&&!C.isFieldDirty())&&(g.add(x.join(m)),!s||$s(c,x,h))){const R=C.validateRules({validateMessages:{...uO,...this.validateMessages},...a});f.push(R.then(()=>({name:x,errors:[],warnings:[]})).catch(w=>{const E=[],T=[];return w.forEach?.(({rule:{warningOnly:N},errors:O})=>{N?T.push(...O):E.push(...O)}),E.length?Promise.reject({name:x,errors:E,warnings:T}):{name:x,errors:E,warnings:T}}))}});const v=q_(f);this.lastValidatePromise=v,v.catch(C=>C).then(C=>{const x=C.map(({name:R})=>R);this.notifyObservers(this.store,x,{type:"validateFinish"}),this.triggerOnFieldsChange(x,C)});const b=v.then(()=>this.lastValidatePromise===v?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(C=>{const x=C.filter(w=>w&&w.errors.length),R=x[0]?.errors?.[0];return Promise.reject({message:R,values:this.getFieldsValue(c),errorFields:x,outOfDate:this.lastValidatePromise!==v})});b.catch(C=>C);const $=c.filter(C=>g.has(C.join(m)));return this.triggerOnFieldsChange($),b};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})}}function fO(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},a=new G_(r);t.current=a.getForm()}return[t.current]}const Sv=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),X_=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const a=l.useContext(Sv),s=l.useRef({});return l.createElement(Sv.Provider,{value:{...a,validateMessages:{...a.validateMessages,...e},triggerFormChange:(c,d)=>{t&&t(c,{changedFields:d,forms:s.current}),a.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{n&&n(c,{values:d,forms:s.current}),a.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(s.current={...s.current,[c]:d}),a.registerForm(c,d)},unregisterForm:c=>{const d={...s.current};delete d[c],s.current=d,a.unregisterForm(c)}}},r)};function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(this,arguments)}const K_=({name:e,initialValues:t,fields:n,form:r,preserve:a,children:s,component:c="form",validateMessages:d,validateTrigger:f="onChange",onValuesChange:m,onFieldsChange:g,onFinish:h,onFinishFailed:y,clearOnDestroy:v,...b},$)=>{const C=l.useRef(null),x=l.useContext(Sv),[R]=fO(r),{useSubscribe:w,setInitialValues:E,setCallbacks:T,setValidateMessages:N,setPreserve:O,destroyForm:P}=R.getInternalHooks(Ki);l.useImperativeHandle($,()=>({...R,nativeElement:C.current})),l.useEffect(()=>(x.registerForm(e,R),()=>{x.unregisterForm(e)}),[x,R,e]),N({...x.validateMessages,...d}),T({onValuesChange:m,onFieldsChange:(H,..._)=>{x.triggerFormChange(e,H),g&&g(H,..._)},onFinish:H=>{x.triggerFormFinish(e,H),h&&h(H)},onFinishFailed:y}),O(a);const B=l.useRef(null);E(t,!B.current),B.current||(B.current=!0),l.useEffect(()=>()=>P(v),[]);let L;const V=typeof s=="function";if(V){const H=R.getFieldsValue(!0);L=s(H,R)}else L=s;w(!V);const G=l.useRef(null);l.useEffect(()=>{V_(G.current||[],n||[])||R.setFields(n||[]),G.current=n},[n,R]);const Y=l.useMemo(()=>({...R,validateTrigger:f}),[R,f]),q=l.createElement(Zm.Provider,{value:null},l.createElement(Ns.Provider,{value:Y},L));return c===!1?q:l.createElement(c,Cv({},b,{ref:C,onSubmit:H=>{H.preventDefault(),H.stopPropagation(),R.submit()},onReset:H=>{H.preventDefault(),R.resetFields(),b.onReset?.(H)}}),q)};function jy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Q_(...e){const[t,n={}]=e,r=a_(n)?{form:n}:n,a=r.form,[s,c]=l.useState(()=>typeof t=="function"?t({}):void 0),d=l.useMemo(()=>jy(s),[s]),f=l.useRef(d);f.current=d;const m=l.useContext(Ns),g=a||m,h=g&&g._init,{getFieldsValue:y,getInternalHooks:v}=g,{registerWatch:b}=v(Ki),$=ct((x,R)=>{const w=r.preserve?R??y(!0):x??y(),E=typeof t=="function"?t(w):Ao(w,_n(t));jy(s)!==jy(E)&&c(E)}),C=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{h&&$()},[h,C]),l.useEffect(()=>h?b((R,w)=>{$(R,w)}):void 0,[h]),s}const Z_=l.forwardRef(K_),Cd=Z_;Cd.FormProvider=X_;Cd.Field=dO;Cd.List=W_;Cd.useForm=fO;Cd.useWatch=Q_;const Or=l.createContext({}),J_=({children:e,status:t,override:n})=>{const r=l.useContext(Or),a=l.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return l.createElement(Or.Provider,{value:a},e)},eH=l.createContext(void 0),Ea=e=>{const{space:t,form:n,children:r}=e;if(!Rr(r))return null;let a=r;return n&&(a=ie.createElement(J_,{override:!0,status:!0},a)),t&&(a=ie.createElement(OD,null,a)),a},tH=e=>{if(kr()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function JE(e,t){return tH(e)}const nH=()=>kr()&&window.document.documentElement;function mO(e,t,n){return l.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const Hp=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:s}=e,c=K({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),d=K({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),f=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:K(t,c,d,n),style:{...f,...r}})},rH=new jt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),US=e=>({height:e,lineHeight:te(e)}),fi=e=>({width:e,...US(e)}),oH=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:rH,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_y=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...US(e)}),aH=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...fi(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...fi(a)},[`${t}${t}-sm`]:{...fi(s)}}},iH=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:n,..._y(t,d)},[`${r}-lg`]:{..._y(a,d)},[`${r}-sm`]:{..._y(s,d)}}},pO=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:a}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...fi(a(r).mul(2).equal())}},lH=e=>({[e.skeletonNodeCls]:{...pO(e)}}),sH=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...pO(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...fi(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Hy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},By=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...US(e)}),cH=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:d(r).mul(2).equal(),minWidth:d(r).mul(2).equal(),...By(r,d)},...Hy(e,r,n),[`${n}-lg`]:{...By(a,d)},...Hy(e,a,`${n}-lg`),[`${n}-sm`]:{...By(s,d)},...Hy(e,s,`${n}-sm`)}},uH=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:s,skeletonInputCls:c,skeletonNodeCls:d,skeletonImageCls:f,controlHeight:m,controlHeightLG:g,controlHeightSM:h,gradientFromColor:y,padding:v,marginSM:b,borderRadius:$,titleHeight:C,blockRadius:x,paragraphLiHeight:R,controlHeightXS:w,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...fi(m)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...fi(g)},[`${n}-sm`]:{...fi(h)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:y,borderRadius:x,[`+ ${a}`]:{marginBlockStart:h}},[a]:{padding:0,"> li":{width:"100%",height:R,listStyle:"none",background:y,borderRadius:x,"+ li":{marginBlockStart:w}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${a} > li`]:{borderRadius:$}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...cH(e),...aH(e),...iH(e),...lH(e),...sH(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
167
|
+
${r},
|
|
168
|
+
${a} > li,
|
|
169
|
+
${n},
|
|
170
|
+
${s},
|
|
171
|
+
${c},
|
|
172
|
+
${d},
|
|
173
|
+
${f}
|
|
174
|
+
`]:{...oH(e)}}}},dH=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},$d=At("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=It(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return uH(r)},dH,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),fH=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:a,active:s,style:c,styles:d,shape:f="circle",size:m="default",...g}=e,{getPrefixCls:h}=l.useContext(ft),y=h("skeleton",t),[v,b]=$d(y),$=K(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,a,v,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Hp,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:m,...g}))},mH=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:a,active:s,style:c,styles:d,block:f=!1,size:m="default",...g}=e,{getPrefixCls:h}=l.useContext(ft),y=h("skeleton",t),[v,b]=$d(y),$=K(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},a?.root,n,r,v,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Hp,{prefixCls:`${y}-button`,className:a?.content,style:{...d?.content,...c},size:m,...g}))},gO=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:a,internalClassName:s,style:c,styles:d,active:f,children:m}=e,{getPrefixCls:g}=l.useContext(ft),h=g("skeleton",t),[y,v]=$d(h),b=K(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,a,v);return l.createElement("div",{className:b,style:d?.root},l.createElement("div",{className:K(r?.content,s||`${h}-node`),style:{...d?.content,...c}},m))},pH=e=>{const{getPrefixCls:t}=l.useContext(ft),n=t("skeleton",e.prefixCls);return l.createElement(gO,{...e,internalClassName:`${n}-image`},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},gH=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:a,active:s,block:c,style:d,styles:f,size:m="default",...g}=e,{getPrefixCls:h}=l.useContext(ft),y=h("skeleton",t),[v,b]=$d(y),$=K(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,a,v,b);return l.createElement("div",{className:$,style:f?.root},l.createElement(Hp,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:m,...g}))},hH=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},yH=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,s=Array.from({length:a}).map((c,d)=>l.createElement("li",{key:d,style:{width:hH(d,e)}}));return l.createElement("ul",{className:K(t,n),style:r},s)},bH=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:K(e,t),style:{width:n,...r}});function Ly(e){return e&&typeof e=="object"?e:{}}function vH(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function SH(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function CH(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const vi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,classNames:s,style:c,styles:d,children:f,avatar:m=!1,title:g=!0,paragraph:h=!0,active:y,round:v}=e,{getPrefixCls:b,direction:$,className:C,style:x,classNames:R,styles:w}=zt("skeleton"),E=b("skeleton",t),[T,N]=$d(E),O={...e,avatar:m,title:g,paragraph:h},[P,B]=Ft([R,s],[w,d],{props:O});if(n||!("loading"in e)){const L=!!m,V=!!g,G=!!h;let Y;if(L){const _={className:P.avatar,prefixCls:`${E}-avatar`,...vH(V,G),...Ly(m),style:B.avatar};Y=l.createElement("div",{className:K(P.header,`${E}-header`),style:B.header},l.createElement(Hp,{..._}))}let q;if(V||G){let _;if(V){const I={className:P.title,prefixCls:`${E}-title`,...SH(L,G),...Ly(g),style:B.title};_=l.createElement(bH,{...I})}let j;if(G){const I={className:P.paragraph,prefixCls:`${E}-paragraph`,...CH(L,V),...Ly(h),style:B.paragraph};j=l.createElement(yH,{...I})}q=l.createElement("div",{className:K(P.section,`${E}-section`),style:B.section},_,j)}const H=K(E,{[`${E}-with-avatar`]:L,[`${E}-active`]:y,[`${E}-rtl`]:$==="rtl",[`${E}-round`]:v},P.root,C,r,a,T,N);return l.createElement("div",{className:H,style:{...B.root,...x,...c}},Y,q)}return f??null};vi.Button=mH;vi.Avatar=fH;vi.Input=gH;vi.Image=pH;vi.Node=gO;function e2(){}const $H=l.createContext({add:e2,remove:e2});function hO(e){const t=l.useContext($H),n=l.useRef(null);return ct(a=>{if(a){const s=e?a.querySelector(e):a;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const t2=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(vd);return ie.createElement(Bt,{onClick:n,...e},t)},n2=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(vd);return ie.createElement(Bt,{...FS(n),loading:e,onClick:a,...t},r)};function yO(e,t){return ie.createElement("span",{className:`${e}-close-x`},t||ie.createElement(Yr,{className:`${e}-close-icon`}))}const bO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:m}=e,[g]=ao("Modal",pT()),h=t||g?.okText,y=r||g?.cancelText,v=ie.useMemo(()=>({confirmLoading:a,okButtonProps:d,cancelButtonProps:f,okTextLocale:h,cancelTextLocale:y,okType:n,onOk:s,onCancel:c}),[a,d,f,h,y,n,s,c]);let b;return typeof m=="function"||typeof m>"u"?(b=ie.createElement(ie.Fragment,null,ie.createElement(t2,null),ie.createElement(n2,null)),typeof m=="function"&&(b=m(b,{OkBtn:n2,CancelBtn:t2})),b=ie.createElement(rO,{value:v},b)):b=m,ie.createElement(DT,{disabled:!1},b)},xH=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},wH=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},EH=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:a}=e,[s,c]=en(a,"grid"),[,d]=en(a,"col"),f={};for(let m=r;m>=0;m--)m===0?(f[`${n}${t}-${m}`]={display:"none"},f[`${n}-push-${m}`]={insetInlineStart:"auto"},f[`${n}-pull-${m}`]={insetInlineEnd:"auto"},f[`${n}${t}-push-${m}`]={insetInlineStart:"auto"},f[`${n}${t}-pull-${m}`]={insetInlineEnd:"auto"},f[`${n}${t}-offset-${m}`]={marginInlineStart:0},f[`${n}${t}-order-${m}`]={order:0}):(f[`${n}${t}-${m}`]=[{[s("display")]:"block",display:"block"},{display:c("display"),flex:`0 0 ${m/r*100}%`,maxWidth:`${m/r*100}%`}],f[`${n}${t}-push-${m}`]={insetInlineStart:`${m/r*100}%`},f[`${n}${t}-pull-${m}`]={insetInlineEnd:`${m/r*100}%`},f[`${n}${t}-offset-${m}`]={marginInlineStart:`${m/r*100}%`},f[`${n}${t}-order-${m}`]={order:m});return f[`${n}${t}-flex`]={flex:d(`${t.replace(/-/,"")}-flex`)},f},$v=(e,t)=>EH(e,t),MH=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...$v(e,n)}}),RH=()=>({}),TH=()=>({}),OH=At("Grid",xH,RH),vO=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),NH=At("Grid",e=>{const t=It(e,{gridColumns:24}),n=vO(t);return delete n.xs,[wH(t),$v(t,""),$v(t,"-xs"),Object.keys(n).map(r=>MH(t,n[r],`-${r}`)).reduce((r,a)=>({...r,...a}),{})]},TH);function r2(e){return{position:e,inset:0}}const IH=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...r2("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...r2("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:JT(e)}]},PH=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Jt(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...jo(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...wo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${te(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
175
|
+
${t}-body,
|
|
176
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},zH=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},AH=e=>{const{componentCls:t}=e,n=vO(e),r={...n};delete r.xs;const a=`--${t.replace(".","")}-`,s=Object.keys(r).map(c=>({[`@media (min-width: ${te(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(En(Object.keys(n).map((c,d)=>{const f=Object.keys(n)[d-1];return f?{[`${a}${c}-width`]:`var(${a}${f}-width)`}:null})),[{width:`var(${a}xs-width)`}],En(s))}}},SO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return It(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},CO=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),$O=At("Modal",e=>{const t=SO(e);return[PH(t),zH(t),IH(t),yd(t,"zoom"),AH(t)]},CO,{unitless:{titleLineHeight:!0}});let xv;const DH=e=>{xv={x:e.pageX,y:e.pageY},setTimeout(()=>{xv=null},100)};nH()&&document.documentElement.addEventListener("click",DH,!0);const xO=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:s,centered:c,getContainer:d,style:f,width:m=520,footer:g,classNames:h,styles:y,children:v,loading:b,confirmLoading:$,zIndex:C,mousePosition:x,onOk:R,onCancel:w,okButtonProps:E,cancelButtonProps:T,destroyOnHidden:N,destroyOnClose:O,panelRef:P=null,closable:B,mask:L,modalRender:V,focusTriggerAfterClose:G,focusable:Y,...q}=e,{getPopupContainer:H,getPrefixCls:_,direction:j,className:I,style:D,classNames:F,styles:A,centered:z,cancelButtonProps:k,okButtonProps:X,mask:Q}=zt("modal"),{modal:Z}=l.useContext(ft),[J,oe]=l.useMemo(()=>typeof B=="boolean"?[void 0,void 0]:[B?.afterClose,B?.onClose],[B]),ne=_("modal",t),re=_(),[ce,fe]=hT(L,Q,ne),le=mO(Y,ce,G),pe=Be=>{$||(w?.(Be),oe?.())},ae=Be=>{R?.(Be),oe?.()},se=lr(ne),[he,ge]=$O(ne,se),be=K(s,{[`${ne}-centered`]:c??z,[`${ne}-wrap-rtl`]:j==="rtl"}),Ne=g!==null&&!b?l.createElement(bO,{...e,okButtonProps:{...X,...E},onOk:ae,cancelButtonProps:{...k,...T},onCancel:pe}):null,[ve,xe,de,Se]=HS(Ms(e),Ms(Z),{closable:!0,closeIcon:l.createElement(Yr,{className:`${ne}-close-icon`}),closeIconRender:Be=>yO(ne,Be)}),Me=ve?{disabled:de,closeIcon:xe,afterClose:J,...Se}:!1,Ae=V?Be=>l.createElement("div",{className:`${ne}-render`},V(Be)):void 0,Ie=`.${ne}-${V?"render":"container"}`,Ye=hO(Ie),Ze=ir(P,Ye),[He,Ve]=bi("Modal",C),_e={...e,width:m,panelRef:P,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ce,zIndex:He},[Ue,Pe]=Ft([F,h,fe],[A,y],{props:_e}),[Ce,Fe]=l.useMemo(()=>m&&typeof m=="object"?[void 0,m]:[m,void 0],[m]),Je=l.useMemo(()=>{const Be={};return Fe&&Object.keys(Fe).forEach(Xe=>{const Oe=Fe[Xe];Oe!==void 0&&(Be[`--${ne}-${Xe}-width`]=typeof Oe=="number"?`${Oe}px`:Oe)}),Be},[ne,Fe]);return l.createElement(Ea,{form:!0,space:!0},l.createElement(dd.Provider,{value:Ve},l.createElement(o_,{width:Ce,...q,zIndex:He,getContainer:d===void 0?H:d,prefixCls:ne,rootClassName:K(he,r,ge,se,Ue.root),rootStyle:Pe.root,footer:Ne,visible:a,mousePosition:x??xv,onClose:pe,closable:Me,closeIcon:xe,transitionName:Qo(re,"zoom",e.transitionName),maskTransitionName:Qo(re,"fade",e.maskTransitionName),mask:ce,className:K(he,n,I),style:{...D,...f,...Je},classNames:{...Ue,wrapper:K(Ue.wrapper,be)},styles:Pe,panelRef:Ze,destroyOnHidden:N??O,modalRender:Ae,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},b?l.createElement(vi,{active:!0,title:!1,paragraph:{rows:4},className:`${ne}-body-skeleton`}):v)))},jH=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:s,lineHeight:c,modalTitleHeight:d,fontHeight:f,confirmBodyPadding:m}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...ol()},[`&${t} ${t}-body`]:{padding:m},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${te(e.marginSM)})`},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${te(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${g}-container`]:{color:e.colorText,fontSize:s,lineHeight:c},[`${g}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${g}-error ${g}-body > ${e.iconCls}`]:{color:e.colorError},[`${g}-warning ${g}-body > ${e.iconCls},
|
|
177
|
+
${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},_H=cd(["Modal","confirm"],e=>{const t=SO(e);return jH(t)},CO,{order:-1e3}),wO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:m,autoFocusButton:g,focusable:h,...y}=e;let v=n;if(!n&&n!==null)switch(c){case"info":v=l.createElement(DS,null);break;case"success":v=l.createElement(Op,null);break;case"error":v=l.createElement(_s,null);break;default:v=l.createElement(Hs,null)}const b=d??c==="confirm",$=l.useMemo(()=>{const L=h?.autoFocusButton||g;return L||L===null?L:"ok"},[g,h?.autoFocusButton]),[C]=ao("Modal"),x=m||C,R=r||(b?x?.okText:x?.justOkText),w=a||x?.cancelText,{closable:E}=y,{onClose:T}=E&&typeof E=="object"?E:{},N=l.useMemo(()=>({autoFocusButton:$,cancelTextLocale:w,okTextLocale:R,mergedOkCancel:b,onClose:T,...y}),[$,w,R,b,T,y]),O=l.createElement(l.Fragment,null,l.createElement(BE,null),l.createElement(LE,null)),P=e.title!==void 0&&e.title!==null,B=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:K(B,{[`${B}-has-title`]:P})},v,l.createElement("div",{className:`${s}-paragraph`},P&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(rO,{value:N},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(O,{OkBtn:LE,CancelBtn:BE}):O)):f,l.createElement(_H,{prefixCls:t}))},HH=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:m=!1,onConfirm:g,styles:h,title:y,okButtonProps:v,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:C}=zt("modal"),x=`${s}-confirm`,R=e.width||416,w=e.style||{},E=K(x,`${x}-${e.type}`,{[`${x}-rtl`]:a==="rtl"},e.className),T=e.maskClosable===void 0?!1:e.maskClosable,[,N]=qr(),O=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+bT,[n,N]);return l.createElement(xO,{...e,className:E,wrapClassName:K({[`${x}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Qo(d||"","zoom",e.transitionName),maskTransitionName:Qo(d||"","fade",e.maskTransitionName),maskClosable:T,style:w,styles:{body:f,mask:r,...h},width:R,zIndex:O,closable:m},l.createElement(wO,{...e,confirmPrefixCls:x,okButtonProps:{...C,...v},cancelButtonProps:{...$,...b}}))},EO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(ea,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(HH,{...e}))},Qi=[];let MO="";function RO(){return MO}const BH=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,a=pT(),s=l.useContext(ft),c=RO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ie.createElement(EO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??a,getContainer:f})};function xd(e){const t=BT(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},a;function s(...m){m.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...m.slice(1));for(let h=0;h<Qi.length;h++)if(Qi[h]===d){Qi.splice(h,1);break}qT(n).then(()=>{})}const c=m=>{clearTimeout(a),a=setTimeout(()=>{const g=t.getPrefixCls(void 0,RO()),h=t.getIconPrefixCls(),y=t.getTheme(),v=ie.createElement(BH,{...m});VS(ie.createElement(ea,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(v):v),n)})};function d(...m){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,m)}},c(r)}function f(m){typeof m=="function"?r=m(r):r={...r,...m},c(r)}return c(r),Qi.push(d),{destroy:d,update:f}}function TO(e){return{...e,type:"warning"}}function OO(e){return{...e,type:"info"}}function NO(e){return{...e,type:"success"}}function IO(e){return{...e,type:"error"}}function PO(e){return{...e,type:"confirm"}}function LH({rootPrefixCls:e}){MO=e}const VH=({afterClose:e,config:t,...n},r)=>{const[a,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:m}=l.useContext(ft),g=m("modal"),h=m(),y=()=>{e(),c.afterClose?.()},v=(...C)=>{s(!1),C.some(R=>R?.triggerCancel)&&c.onCancel?.(()=>{},...C.slice(1))};l.useImperativeHandle(r,()=>({destroy:v,update:C=>{d(x=>{const R=typeof C=="function"?C(x):C;return{...x,...R}})}}));const b=c.okCancel??c.type==="confirm",[$]=ao("Modal",wa.Modal);return l.createElement(EO,{prefixCls:g,rootPrefixCls:h,...c,close:v,open:a,afterClose:y,okText:c.okText||(b?$?.okText:$?.justOkText),direction:c.direction||f,cancelText:c.cancelText||$?.cancelText,...n})},FH=l.forwardRef(VH);let o2=0;const kH=l.memo(l.forwardRef((e,t)=>{const[n,r]=oA();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function WH(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(En(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){o2+=1;const f=l.createRef();let m;const g=new Promise($=>{m=$});let h=!1,y;const v=l.createElement(FH,{key:`modal-${o2}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:$=>{m($)}});return y=e.current?.patchElement(v),y&&Qi.push(y),{destroy:()=>{function $(){f.current?.destroy()}f.current?$():n(C=>[].concat(En(C),[$]))},update:$=>{function C(){f.current?.update($)}f.current?C():n(x=>[].concat(En(x),[C]))},then:$=>(h=!0,g.then($))}},[]);return[l.useMemo(()=>({info:r(OO),success:r(NO),error:r(IO),warning:r(TO),confirm:r(PO)}),[r]),l.createElement(kH,{key:"modal-holder",ref:e})]}const qH=ie.createContext({});function zO(e){return t=>l.createElement(ea,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const Bp=(e,t,n,r,a)=>zO(c=>{const{prefixCls:d,style:f}=c,m=l.useRef(null),[g,h]=l.useState(0),[y,v]=l.useState(0),[b,$]=Yt(!1,c.open),{getPrefixCls:C}=l.useContext(ft),x=C(r||"select",d);l.useEffect(()=>{if($(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),v(O.offsetWidth)}),T=setInterval(()=>{const N=a?`.${a(x)}`:`.${x}-dropdown`,O=m.current?.querySelector(N);O&&(clearInterval(T),E.observe(O))},10);return()=>{clearInterval(T),E.disconnect()}}},[x]);let R={...c,style:{...f,margin:0},open:b,getPopupContainer:()=>m.current};t&&Object.assign(R,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:m,style:w},l.createElement(e,{...R}))}),YH=(e,t,n,r,a=!1,s,c)=>{const d=l.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return l.useMemo(()=>{const f=!a&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,a,t.length,s,c])},AO=l.createContext(null);function ml(){return l.useContext(AO)}function UH(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function DO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function GH(e,t,n,r){const a=ct(s=>{if(r)return;let c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),s._ori_target&&(c=s._ori_target),t&&!DO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",a),()=>window.removeEventListener("mousedown",a)),[a])}function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}const XH=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},KH=(e,t)=>{const{prefixCls:n,disabled:r,visible:a,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:m,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:v,popupMatchSelectWidth:b,popupRender:$,popupAlign:C,getPopupContainer:x,empty:R,onPopupVisibleChange:w,onPopupMouseEnter:E,onPopupMouseDown:T,onPopupBlur:N,...O}=e,P=`${n}-dropdown`;let B=c;$&&(B=$(c));const L=l.useMemo(()=>v||XH(b),[v,b]),V=d?`${P}-${d}`:f,G=typeof b=="number",Y=l.useMemo(()=>G?null:b===!1?"minWidth":"width",[b,G]);let q=m;G&&(q={...m,width:b});const H=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>H.current?.popupElement})),l.createElement(pd,wv({},O,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:P,popupMotion:{motionName:V},popup:l.createElement("div",{onMouseEnter:E,onMouseDown:T,onBlur:N},B),ref:H,stretch:Y,popupAlign:C,popupVisible:a,getPopupContainer:x,popupClassName:K(g,{[`${P}-empty`]:R}),popupStyle:q,onPopupVisibleChange:w}),s)},QH=l.forwardRef(KH);function a2(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function Ev(e){return typeof e<"u"&&!Number.isNaN(e)}function jO(e,t){const{label:n,value:r,options:a,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:a||"options",groupLabel:s||c}}function ZH(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:a,value:s,options:c,groupLabel:d}=jO(t,!1);function f(m,g){Array.isArray(m)&&m.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:a2(h,r.length),groupOption:g,data:h,label:h[a],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:a2(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function Mv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return rr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const JH=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const a=(c,[d,...f])=>{if(!d)return[c];const m=c.split(d);return r=r||m.length>1,m.reduce((g,h)=>[...g,...a(h,f)],[]).filter(Boolean)},s=a(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function eB(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:a,value:s})=>["number","string"].includes(typeof a)?a:s).join(", ")}`,n.length>r?", ...":null)}const tB=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},GS=(e,t=1)=>{if(t<=0){e();return}tB(()=>{GS(e,t-1)})};function nB(e,t,n,r){const[a,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),[f,m]=l.useState(!1),h=r(a?c:!1),y=l.useRef(0),v=ct($=>{n&&h!==$&&n($),d($)}),b=ct(($,C={})=>{const{cancelFun:x}=C;y.current+=1;const R=y.current,w=typeof $=="boolean"?$:!h;m(!w);function E(){R===y.current&&!x?.()&&(v(w),m(!1))}w?E():GS(()=>{E()})});return[h,b,f]}function Vy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const _O=l.createContext(null);function wd(){return l.useContext(_O)}const HO=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:a,style:s,syncWidth:c,value:d,className:f,autoComplete:m,...g}=e,{prefixCls:h,mode:y,onSearch:v,onSearchSubmit:b,onInputBlur:$,autoFocus:C,tokenWithEnter:x,placeholder:R,components:{input:w="input"}}=wd(),{id:E,classNames:T,styles:N,open:O,activeDescendantId:P,role:B,disabled:L}=ml()||{},V=K(`${h}-input`,T?.input,f),G=l.useRef(!1),Y=l.useRef(null),q=l.useRef(null);l.useImperativeHandle(t,()=>q.current);const H=Q=>{let{value:Z}=Q.target;if(x&&Y.current&&/[\r\n]/.test(Y.current)){const J=Y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Z=Z.replace(J,Y.current)}Y.current=null,v&&v(Z,!0,G.current),n?.(Q)},_=Q=>{const{key:Z}=Q,{value:J}=Q.currentTarget;Z==="Enter"&&y==="tags"&&!G.current&&b&&b(J),r?.(Q)},j=Q=>{$?.(),a?.(Q)},I=()=>{G.current=!0},D=Q=>{if(G.current=!1,y!=="combobox"){const{value:Z}=Q.currentTarget;v?.(Z,!0,!1)}},F=Q=>{const{clipboardData:Z}=Q,J=Z?.getData("text");Y.current=J||""},[A,z]=l.useState(void 0);Pt(()=>{const Q=q.current;if(c&&Q){Q.style.width="0px";const Z=Q.scrollWidth;z(Z),Q.style.width=""}},[c,d]);const k={id:E,type:y==="combobox"?"text":"search",...g,ref:q,style:{...N?.input,...s,"--select-input-width":A},autoFocus:C,autoComplete:m||"off",className:V,disabled:L,value:d||"",onChange:H,onKeyDown:_,onBlur:j,onPaste:F,onCompositionStart:I,onCompositionEnd:D,role:B||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${E}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${E}_list`:void 0,"aria-activedescendant":O?P:void 0};if(l.isValidElement(w)){const Q=w.props||{},Z={placeholder:e.placeholder||R,...k,...Q};return Object.keys(Q).forEach(J=>{const oe=Q[J];typeof oe=="function"&&(Z[J]=(...ne)=>{oe(...ne),k[J]?.(...ne)})}),Z.ref=ir(w.ref,k.ref),l.cloneElement(w,Z)}const X=w;return l.createElement(X,k)});function BO(e){const{prefixCls:t,placeholder:n,displayValues:r}=wd(),{classNames:a,styles:s}=ml(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:K(`${t}-placeholder`,a?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const XS=l.createContext(null);function LO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function rB(e){return e!=null}function oB(e){return!e&&e!==0}function i2(e){return["string","number"].includes(typeof e)}function Rv(e){let t;return e&&(i2(e.title)?t=e.title.toString():i2(e.label)&&(t=e.label.toString())),t}function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}const aB=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:a,displayValues:s,maxLength:c,mode:d}=wd(),{triggerOpen:f,title:m,showSearch:g,classNames:h,styles:y}=ml(),v=l.useContext(XS),[b,$]=l.useState(!1),C=d==="combobox",x=s[0],R=l.useMemo(()=>C&&a&&!b&&f?a:g?r:"",[C,a,b,f,r,g]),w=l.useMemo(()=>{const E={className:`${n}-content-value`,style:R?{visibility:"hidden"}:{}};if(x&&v?.flattenOptions){const T=v.flattenOptions.find(N=>N.value===x.value);if(T?.data){const{className:N,style:O}=T.data;Object.assign(E,{title:Rv(T.data),className:K(E.className,N),style:{...E.style,...O}})}}return x&&!E.title&&(E.title=Rv(x)),m!==void 0&&(E.title=m),E},[x,v?.flattenOptions,n,R,m]);return l.useEffect(()=>{C&&$(!1)},[C,a]),l.createElement("div",{className:K(`${n}-content`,h?.content),style:y?.content},x?l.createElement("div",w,x.label):l.createElement(BO,{show:!R}),l.createElement(HO,Tv({ref:t},e,{value:R,maxLength:d==="combobox"?c:void 0,onChange:E=>{$(!0),e.onChange?.(E)}})))}),rs=void 0;function iB(e,t){const{prefixCls:n,invalidate:r,item:a,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:m,className:g,style:h,children:y,display:v,order:b,component:$="div",...C}=e,x=c&&!v;function R(O){f(m,O)}l.useEffect(()=>()=>{R(null)},[]);const w=s&&a!==rs?s(a,{index:b}):y;let E;r||(E={opacity:x?0:1,height:x?0:rs,overflowY:x?"hidden":rs,order:c?b:rs,pointerEvents:x?"none":rs,position:x?"absolute":rs});const T={};x&&(T["aria-hidden"]=!0);let N=l.createElement($,Gn({className:K(!r&&n,g),style:{...E,...h}},T,C,{ref:t}),w);return c&&(N=l.createElement(oo,{onResize:({offsetWidth:O})=>{R(O)},disabled:d},N)),N}const eu=l.forwardRef(iB);function lB(e){if(typeof MessageChannel>"u")Lt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function sB(){const e=l.useRef(null);return n=>{e.current||(e.current=[],lB(()=>{al.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function os(e,t){const[n,r]=l.useState(t),a=ct(s=>{e(()=>{r(s)})});return[n,a]}const ep=ie.createContext(null),cB=(e,t)=>{const n=l.useContext(ep);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Gn({},f,{ref:t}))}const{className:r,...a}=n,{className:s,...c}=e;return l.createElement(ep.Provider,{value:null},l.createElement(eu,Gn({ref:t,className:K(r,s)},a,c)))},uB=l.forwardRef(cB),VO="responsive",FO="invalidate";function dB(e){return`+ ${e.length} ...`}function fB(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:a,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:m,className:g,maxCount:h,renderRest:y,renderRawRest:v,prefix:b,suffix:$,component:C="div",itemComponent:x,onVisibleChange:R,...w}=e,E=f==="full",T=sB(),[N,O]=os(T,null),P=N||0,[B,L]=os(T,new Map),[V,G]=os(T,0),[Y,q]=os(T,0),[H,_]=os(T,0),[j,I]=os(T,0),[D,F]=l.useState(null),[A,z]=l.useState(null),k=l.useMemo(()=>A===null&&E?Number.MAX_SAFE_INTEGER:A||0,[A,N]),[X,Q]=l.useState(!1),Z=`${n}-item`,J=Math.max(V,Y),oe=h===VO,ne=r.length&&oe,re=h===FO,ce=ne||typeof h=="number"&&r.length>h,fe=l.useMemo(()=>{let Ve=r;return ne?N===null&&E?Ve=r:Ve=r.slice(0,Math.min(r.length,P/d)):typeof h=="number"&&(Ve=r.slice(0,h)),Ve},[r,d,N,h,ne]),le=l.useMemo(()=>ne?r.slice(k+1):r.slice(fe.length),[r,fe,ne,k]),pe=l.useCallback((Ve,_e)=>typeof c=="function"?c(Ve):(c&&Ve?.[c])??_e,[c]),ae=l.useCallback(a||(Ve=>Ve),[a]);function se(Ve,_e,Ue){A===Ve&&(_e===void 0||_e===D)||(z(Ve),Ue||(Q(Ve<r.length-1),R?.(Ve)),_e!==void 0&&F(_e))}function he(Ve,_e){O(_e.clientWidth)}function ge(Ve,_e){L(Ue=>{const Pe=new Map(Ue);return _e===null?Pe.delete(Ve):Pe.set(Ve,_e),Pe})}function be(Ve,_e){q(_e),G(Y)}function Ne(Ve,_e){_(_e)}function ve(Ve,_e){I(_e)}function xe(Ve){return B.get(pe(fe[Ve],Ve))}Pt(()=>{if(P&&typeof J=="number"&&fe){let Ve=H+j;const _e=fe.length,Ue=_e-1;if(!_e){se(0,null);return}for(let Pe=0;Pe<_e;Pe+=1){let Ce=xe(Pe);if(E&&(Ce=Ce||0),Ce===void 0){se(Pe-1,void 0,!0);break}if(Ve+=Ce,Ue===0&&Ve<=P||Pe===Ue-1&&Ve+xe(Ue)<=P){se(Ue,null);break}else if(Ve+J>P){se(Pe-1,Ve-Ce-j+Y);break}}$&&xe(0)+j>P&&F(null)}},[P,B,Y,H,j,pe,fe]);const de=X&&!!le.length;let Se={};D!==null&&ne&&(Se={position:"absolute",left:D,top:0});const Me={prefixCls:Z,responsive:ne,component:x,invalidate:re},Ae=s?(Ve,_e)=>{const Ue=pe(Ve,_e);return l.createElement(ep.Provider,{key:Ue,value:{...Me,order:_e,item:Ve,itemKey:Ue,registerSize:ge,display:_e<=k}},s(Ve,_e))}:(Ve,_e)=>{const Ue=pe(Ve,_e);return l.createElement(eu,Gn({},Me,{order:_e,key:Ue,item:Ve,renderItem:ae,itemKey:Ue,registerSize:ge,display:_e<=k}))},Ie={order:de?k:Number.MAX_SAFE_INTEGER,className:`${Z}-rest`,registerSize:be,display:de},Ye=y||dB,Ze=v?l.createElement(ep.Provider,{value:{...Me,...Ie}},v(le)):l.createElement(eu,Gn({},Me,Ie),typeof Ye=="function"?Ye(le):Ye),He=l.createElement(C,Gn({className:K(!re&&n,g),style:m,ref:t},w),b&&l.createElement(eu,Gn({},Me,{responsive:oe,responsiveDisabled:!ne,order:-1,className:`${Z}-prefix`,registerSize:Ne,display:!0}),b),fe.map(Ae),ce?Ze:null,$&&l.createElement(eu,Gn({},Me,{responsive:oe,responsiveDisabled:!ne,order:k,className:`${Z}-suffix`,registerSize:ve,display:!0,style:Se}),$));return oe?l.createElement(oo,{onResize:he,disabled:!ne},He):He}const Ko=l.forwardRef(fB);Ko.Item=uB;Ko.RESPONSIVE=VO;Ko.INVALIDATE=FO;const kO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:a,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(a):r;return l.createElement("span",{className:t,onMouseDown:m=>{m.preventDefault(),c?.(m)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:K(t.split(/\s+/).map(m=>`${m}-icon`))},s))};function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}function mB(e){return e.key??e.value}const l2=e=>{e.preventDefault(),e.stopPropagation()},pB=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:a,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=wd(),{disabled:m,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:v,tagRender:b,maxTagPlaceholder:$,maxTagTextLength:C,maxTagCount:x,classNames:R,styles:w}=ml(),E=`${r}-selection-item`;let T=s;!h&&c==="multiple"&&v!==!1&&(T="");const N=g&&T||"",O=g&&!m,P=f??"×",B=$??(j=>`+ ${j.length} ...`),L=b,V=j=>{y(j)},G=j=>{d?.(j)},Y=(j,I,D,F,A)=>l.createElement("span",{title:Rv(j),className:K(E,{[`${E}-disabled`]:D},R?.item),style:w?.item},l.createElement("span",{className:K(`${E}-content`,R?.itemContent),style:w?.itemContent},I),F&&l.createElement(kO,{className:K(`${E}-remove`,R?.itemRemove),style:w?.itemRemove,onMouseDown:l2,onClick:A,customizeIcon:P},"×")),q=(j,I,D,F,A,z,k)=>{const X=Q=>{l2(Q),V(!h)};return l.createElement("span",{onMouseDown:X},L({label:I,value:j,index:k?.index,disabled:D,closable:F,onClose:A,isMaxTag:!!z}))},H=(j,I)=>{const{disabled:D,label:F,value:A}=j,z=!m&&!D;let k=F;if(typeof C=="number"&&(typeof F=="string"||typeof F=="number")){const Q=String(k);Q.length>C&&(k=`${Q.slice(0,C)}...`)}const X=Q=>{Q&&Q.stopPropagation(),G(j)};return typeof L=="function"?q(A,k,D,z,X,void 0,I):Y(j,k,D,z,X)},_=j=>{if(!a.length)return null;const I=typeof B=="function"?B(j):B;return typeof L=="function"?q(void 0,I,!1,!1,void 0,!0):Y({title:I},I,!1)};return l.createElement(Ko,{prefixCls:`${r}-content`,className:R?.content,style:w?.content,prefix:!a.length&&!N&&l.createElement(BO,null),data:a,renderItem:H,renderRest:_,suffix:l.createElement(HO,Ov({ref:n,disabled:m,readOnly:!O},t,{value:N||"",syncWidth:!0})),itemKey:mB,maxCount:x})}),gB=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:a,tabIndex:s}=wd(),c=ml(),{showSearch:d}=c,m={...Pn(c,{aria:!0}),onKeyDown:a,readOnly:!d,tabIndex:s};return r?l.createElement(pB,{ref:n,inputProps:m}):l.createElement(aB,{ref:n,inputProps:m})});function hB(e){return e&&![it.ESC,it.SHIFT,it.BACKSPACE,it.TAB,it.WIN_KEY,it.ALT,it.META,it.WIN_KEY_RIGHT,it.CTRL,it.SEMICOLON,it.EQUALS,it.CAPS_LOCK,it.CONTEXT_MENU,it.UP,it.LEFT,it.RIGHT,it.F1,it.F2,it.F3,it.F4,it.F5,it.F6,it.F7,it.F8,it.F9,it.F10,it.F11,it.F12].includes(e)}function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}const yB=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],bB=l.forwardRef(function(t,n){const{prefixCls:r,className:a,style:s,prefix:c,suffix:d,clearIcon:f,children:m,multiple:g,displayValues:h,placeholder:y,mode:v,searchValue:b,onSearch:$,onSearchSubmit:C,onInputBlur:x,maxLength:R,autoFocus:w,onMouseDown:E,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:P,components:B,...L}=t,{triggerOpen:V,toggleOpen:G,showSearch:Y,disabled:q,loading:H,classNames:_,styles:j}=ml(),I=l.useRef(null),D=l.useRef(null),F=ct(J=>{const{which:oe}=J,ne=D.current instanceof HTMLTextAreaElement;if(!ne&&V&&(oe===it.UP||oe===it.DOWN)&&J.preventDefault(),N&&N(J),ne&&!V&&~[it.UP,it.DOWN,it.LEFT,it.RIGHT].indexOf(oe))return;!(J.ctrlKey||J.altKey||J.metaKey)&&hB(oe)&&G(!0)});l.useImperativeHandle(n,()=>({focus:J=>{(D.current||I.current).focus?.(J)},blur:()=>{(D.current||I.current).blur?.()},nativeElement:I.current}));const A=ct(J=>{if(!q){const oe=ws(D.current);J.nativeEvent._ori_target=oe,oe&&J.target!==oe&&!oe.contains(J.target)&&J.preventDefault();const ne=V&&!g&&(v==="combobox"||Y);J.nativeEvent._select_lazy?V&&G(!1):(D.current?.focus(),ne||G())}E?.(J)}),{root:z}=B,k=nn(L,yB),X=Pn(k,{aria:!0}),Q=Object.keys(X),Z={...t,onInputKeyDown:F};return z?l.isValidElement(z)?l.cloneElement(z,{...k,ref:ir(z.ref,I)}):l.createElement(z,tp({},k,{ref:I})):l.createElement(_O.Provider,{value:Z},l.createElement("div",tp({},nn(k,Q),{ref:I,className:a,style:s,onMouseDown:A}),l.createElement(Vy,{className:K(`${r}-prefix`,_?.prefix),style:j?.prefix},c),l.createElement(gB,{ref:D}),l.createElement(Vy,{className:K(`${r}-suffix`,{[`${r}-suffix-loading`]:H},_?.suffix),style:j?.suffix},d),f&&l.createElement(Vy,{className:K(`${r}-clear`,_?.clear),style:j?.clear,onMouseDown:J=>{J.nativeEvent._select_lazy=!0,T?.(J)}},f),m))});function vB(e,t,n){return l.useMemo(()=>{let{root:r,input:a}=e||{};return n&&(r=n()),t&&(a=t()),{root:r,input:a}},[e,t,n])}function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nv.apply(this,arguments)}const Iv=e=>e==="tags"||e==="multiple",SB=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:a,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:m="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:v,emptyOptions:b,notFoundContent:$="Not Found",onClear:C,maxCount:x,placeholder:R,mode:w,disabled:E,loading:T,getInputElement:N,getRawInputElement:O,open:P,defaultOpen:B,onPopupVisibleChange:L,activeValue:V,onActiveValueChange:G,activeDescendantId:Y,searchValue:q,autoClearSearchValue:H,onSearch:_,onSearchSplit:j,tokenSeparators:I,allowClear:D,prefix:F,suffix:A,suffixIcon:z,clearIcon:k,OptionList:X,animation:Q,transitionName:Z,popupStyle:J,popupClassName:oe,popupMatchSelectWidth:ne,popupRender:re,popupAlign:ce,placement:fe,builtinPlacements:le,getPopupContainer:pe,showAction:ae=[],onFocus:se,onBlur:he,onKeyUp:ge,onKeyDown:be,onMouseDown:Ne,components:ve,...xe}=e,de=Iv(w),Se=l.useRef(null),Me=l.useRef(null),Ae=l.useRef(null),[Ie,Ye]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:Se.current?.focus,blur:Se.current?.blur,scrollTo:tt=>Ae.current?.scrollTo(tt),nativeElement:ws(Se.current)}));const Ze=vB(ve,N,O),He=l.useMemo(()=>{if(w!=="combobox")return q;const tt=y[0]?.value;return typeof tt=="string"||typeof tt=="number"?String(tt):""},[q,w,y]),Ve=w==="combobox"&&typeof N=="function"&&N()||null,_e=!$&&b,[Ue,Pe,Ce]=nB(B||!1,P,L,tt=>E||_e?!1:tt),Fe=l.useMemo(()=>(I||[]).some(tt=>[`
|
|
178
|
+
`,`\r
|
|
179
|
+
`].includes(tt)),[I]),Je=(tt,mt,Ot)=>{if(de&&Ev(x)&&y.length>=x)return;let Ut=!0,rn=tt;G?.(null);const Gt=JH(tt,I,Ev(x)?x-y.length:void 0),cn=Ot?null:Gt;return w!=="combobox"&&cn&&(rn="",j?.(cn),Pe(!1),Ut=!1),_&&He!==rn&&_(rn,{source:mt?"typing":"effect"}),tt&&mt&&Ut&&Pe(!0),Ut},Be=tt=>{!tt||!tt.trim()||_(tt,{source:"submit"})};l.useEffect(()=>{!Ue&&!de&&w!=="combobox"&&Je("",!1,!1)},[Ue]),l.useEffect(()=>{E&&(Pe(!1),Ye(!1))},[E,Ue]);const[Xe,Oe]=UH(),Ke=l.useRef(!1),nt=tt=>{const mt=Xe(),{key:Ot}=tt,Ut=Ot==="Enter";if(Ut&&(w!=="combobox"&&tt.preventDefault(),Ue||Pe(!0)),Oe(!!He),Ot==="Backspace"&&!mt&&de&&!He&&y.length){const rn=[...y];let Gt=null;for(let cn=rn.length-1;cn>=0;cn-=1){const pn=rn[cn];if(!pn.disabled){rn.splice(cn,1),Gt=pn;break}}Gt&&v(rn,{type:"remove",values:[Gt]})}Ue&&(!Ut||!Ke.current)&&(Ut&&(Ke.current=!0),Ae.current?.onKeyDown(tt)),be?.(tt)},ot=(tt,...mt)=>{Ue&&Ae.current?.onKeyUp(tt,...mt),tt.key==="Enter"&&(Ke.current=!1),ge?.(tt,...mt)},lt=ct(tt=>{const mt=y.filter(Ot=>Ot!==tt);v(mt,{type:"remove",values:[tt]})}),Ct=()=>{Ke.current=!1},$t=()=>[ws(Se.current),Me.current?.getPopupElement()];GH($t,Ue,Pe,!!Ze.root);const ke=l.useRef(!1),et=tt=>{Ye(!0),E||(ae.includes("focus")&&Pe(!0),se?.(tt))},De=()=>{Ue&&!ke.current&&Pe(!1,{cancelFun:()=>DO($t(),document.activeElement)})},ze=tt=>{Ye(!1),He&&(w==="tags"?_(He,{source:"submit"}):w==="multiple"&&_("",{source:"blur"})),De(),E||he?.(tt)},We=(tt,...mt)=>{const{target:Ot}=tt;Me.current?.getPopupElement()?.contains(Ot)&&Pe&&Pe(!0),Ne?.(tt,...mt),ke.current=!0,GS(()=>{ke.current=!1})},[,Re]=l.useState({});function Ge(){Re({})}let Qe;Ze.root&&(Qe=tt=>{Pe(tt)});const at=l.useMemo(()=>({...e,notFoundContent:$,open:Ue,triggerOpen:Ue,id:n,showSearch:d,multiple:de,toggleOpen:Pe,showScrollBar:m,styles:s,classNames:c,lockOptions:Ce}),[e,$,Pe,n,d,de,Ue,m,s,c,Ce]),ut=l.useMemo(()=>{const tt=A??z;return typeof tt=="function"?tt({searchValue:He,open:Ue,focused:Ie,showSearch:d,loading:T}):tt},[A,z,He,Ue,Ie,d,T]),_t=()=>{C?.(),Se.current?.focus(),v([],{type:"clear",values:y}),Je("",!1,!1)},{allowClear:Rt,clearIcon:Et}=YH(r,y,D,k,E,He,w),mn=l.createElement(X,{ref:Ae}),Tt=K(r,a,{[`${r}-focused`]:Ie,[`${r}-multiple`]:de,[`${r}-single`]:!de,[`${r}-allow-clear`]:Rt,[`${r}-show-arrow`]:ut!=null,[`${r}-disabled`]:E,[`${r}-loading`]:T,[`${r}-open`]:Ue,[`${r}-customize-input`]:Ve,[`${r}-show-search`]:d});let pt=l.createElement(bB,Nv({},xe,{ref:Se,prefixCls:r,className:Tt,focused:Ie,prefix:F,suffix:ut,clearIcon:Et,multiple:de,mode:w,displayValues:y,placeholder:R,searchValue:He,activeValue:V,onSearch:Je,onSearchSubmit:Be,onInputBlur:Ct,onFocus:et,onBlur:ze,onClearMouseDown:_t,onKeyDown:nt,onKeyUp:ot,onSelectorRemove:lt,tokenWithEnter:Fe,onMouseDown:We,components:Ze}));return pt=l.createElement(QH,{ref:Me,disabled:E,prefixCls:r,visible:Ue,popupElement:mn,animation:Q,transitionName:Z,popupStyle:J,popupClassName:oe,direction:g,popupMatchSelectWidth:ne,popupRender:re,popupAlign:ce,placement:fe,builtinPlacements:le,getPopupContainer:pe,empty:b,onPopupVisibleChange:Qe,onPopupMouseEnter:Ge,onPopupMouseDown:We,onPopupBlur:De},pt),l.createElement(AO.Provider,{value:at},l.createElement(eB,{visible:Ie&&!Ue,values:y}),pt)}),KS=()=>null;KS.isSelectOptGroup=!0;const QS=()=>null;QS.isSelectOption=!0;const WO=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:a,onInnerResize:s,innerProps:c,rtl:d,extra:f},m)=>{let g={},h={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},h={...h,transform:`translateY(${t}px)`,[d?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:g},l.createElement(oo,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Gn({style:h,className:K({[`${a}-holder-inner`]:a}),ref:m},c),r,f)))});WO.displayName="Filler";function CB({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function $B(e,t,n,r,a,s,c,{getKey:d}){return e.slice(t,n+1).map((f,m)=>{const g=t+m,h=c(f,g,{style:{width:r},offsetX:a}),y=d(f);return l.createElement(CB,{key:y,setRef:v=>s(f,v)},h)})}function xB(e,t,n){const r=e.length,a=t.length;let s,c;if(r===0&&a===0)return null;r<a?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let m=null,g=Math.abs(r-a)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),v=f(c[h]);if(y!==v){m=h,g=g||y!==f(c[h+1]);break}}return m===null?null:{index:m,multiple:g}}function wB(e,t,n){const[r,a]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=xB(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),a(e)},[e]),[s]}const s2=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),qO=((e,t,n,r)=>{const a=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),a.current=!0,s.current=setTimeout(()=>{a.current=!1},50)}const d=l.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,(f,m,g=!1)=>{const h=f?m<0&&d.current.left||m>0&&d.current.right:m<0&&d.current.top||m>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),a.current=!1):(!h||a.current)&&c(),!a.current&&h}});function EB(e,t,n,r,a,s,c){const d=l.useRef(0),f=l.useRef(null),m=l.useRef(null),g=l.useRef(!1),h=qO(t,n,r,a);function y(R,w){if(Lt.cancel(f.current),h(!1,w))return;const E=R;if(!E._virtualHandled)E._virtualHandled=!0;else return;d.current+=w,m.current=w,s2||E.preventDefault(),f.current=Lt(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function v(R,w){c(w,!0),s2||R.preventDefault()}const b=l.useRef(null),$=l.useRef(null);function C(R){if(!e)return;Lt.cancel($.current),$.current=Lt(()=>{b.current=null},2);const{deltaX:w,deltaY:E,shiftKey:T}=R;let N=w,O=E;(b.current==="sx"||!b.current&&T&&E&&!w)&&(N=E,O=0,b.current="sx");const P=Math.abs(N),B=Math.abs(O);b.current===null&&(b.current=s&&P>B?"x":"y"),b.current==="y"?y(R,O):v(R,N)}function x(R){e&&(g.current=R.detail===m.current)}return[C,x]}function MB(e,t,n,r){const[a,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let m=a.get(d),g=a.get(f);if(m===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const v=e[y],b=t(v);a.set(b,y);const $=n.get(b)??r;if(s[y]=(s[y-1]||0)+$,b===d&&(m=y),b===f&&(g=y),m!==void 0&&g!==void 0)break}}return{top:s[m-1]||0,bottom:s[g]}}}class RB{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function c2(e){const t=parseFloat(e);return isNaN(t)?0:t}function TB(e,t,n){const[r,a]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new RB),d=l.useRef(0);function f(){d.current+=1}function m(h=!1){f();const y=()=>{let v=!1;s.current.forEach((b,$)=>{if(b&&b.offsetParent){const{offsetHeight:C}=b,{marginTop:x,marginBottom:R}=getComputedStyle(b),w=c2(x),E=c2(R),T=C+w+E;c.current.get($)!==T&&(c.current.set($,T),v=!0)}}),v&&a(b=>b+1)};if(h)y();else{d.current+=1;const v=d.current;Promise.resolve().then(()=>{v===d.current&&y()})}}function g(h,y){const v=e(h);s.current.get(v),y?(s.current.set(v,y),m()):s.current.delete(v)}return l.useEffect(()=>f,[]),[g,m,c.current,r]}const u2=14/15;function OB(e,t,n){const r=l.useRef(!1),a=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const m=y=>{if(r.current){const v=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let $=a.current-v,C=s.current-b;const x=Math.abs($)>Math.abs(C);x?a.current=v:s.current=b;const R=n(x,x?$:C,!1,y);R&&y.preventDefault(),clearInterval(d.current),R&&(d.current=setInterval(()=>{x?$*=u2:C*=u2;const w=Math.floor(x?$:C);(!n(x,w,!0)||Math.abs(w)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",m,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",m),c.current.removeEventListener("touchend",g))},Pt(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function d2(e){return Math.floor(e**.5)}function Pv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function NB(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let a=!1,s,c;const d=()=>{Lt.cancel(s)},f=()=>{d(),s=Lt(()=>{n(c),f()})},m=()=>{a=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const v=y;v._virtualHandled||(v._virtualHandled=!0,a=!0)},h=y=>{if(a){const v=Pv(y,!1),{top:b,bottom:$}=r.getBoundingClientRect();if(v<=b){const C=b-v;c=-d2(C),f()}else if(v>=$){const C=v-$;c=d2(C),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",m),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",m),d()}}},[e])}const IB=10;function PB(e,t,n,r,a,s,c,d){const f=l.useRef(),[m,g]=l.useState(null);return Pt(()=>{if(m&&m.times<IB){if(!e.current){g(w=>({...w}));return}s();const{targetAlign:h,originAlign:y,index:v,offset:b}=m,$=e.current.clientHeight;let C=!1,x=h,R=null;if($){const w=h||y;let E=0,T=0,N=0;const O=Math.min(t.length-1,v);for(let B=0;B<=O;B+=1){const L=a(t[B]);T=E;const V=n.get(L);N=T+(V===void 0?r:V),E=N}let P=w==="top"?b:$-b;for(let B=O;B>=0;B-=1){const L=a(t[B]),V=n.get(L);if(V===void 0){C=!0;break}if(P-=V,P<=0)break}switch(w){case"top":R=T-b;break;case"bottom":R=N-$+b;break;default:{const{scrollTop:B}=e.current,L=B+$;T<B?x="top":N>L&&(x="bottom")}}R!==null&&c(R),R!==m.lastTop&&(C=!0)}C&&g({...m,times:m.times+1,targetAlign:x,lastTop:R})}},[m,e.current]),h=>{if(h==null){d();return}if(Lt.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:v}=h;"index"in h?{index:y}=h:y=t.findIndex($=>a($)===h.key);const{offset:b=0}=h;g({times:0,index:y,offset:b,originAlign:v})}}}const f2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:a,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:m,spinSize:g,containerSize:h,style:y,thumbStyle:v,showScrollBar:b}=e,[$,C]=l.useState(!1),[x,R]=l.useState(null),[w,E]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[P,B]=l.useState(b),L=l.useRef(),V=()=>{b===!0||b===!1||(clearTimeout(L.current),B(!0),L.current=setTimeout(()=>{B(!1)},3e3))},G=s-h||0,Y=h-g||0,q=l.useMemo(()=>a===0||G===0?0:a/G*Y,[a,G,Y]),H=k=>{k.stopPropagation(),k.preventDefault()},_=l.useRef({top:q,dragging:$,pageY:x,startTop:w});_.current={top:q,dragging:$,pageY:x,startTop:w};const j=k=>{C(!0),R(Pv(k,m)),E(_.current.top),c(),k.stopPropagation(),k.preventDefault()};l.useEffect(()=>{const k=Z=>{Z.preventDefault()},X=N.current,Q=O.current;return X.addEventListener("touchstart",k,{passive:!1}),Q.addEventListener("touchstart",j,{passive:!1}),()=>{X.removeEventListener("touchstart",k),Q.removeEventListener("touchstart",j)}},[]);const I=l.useRef();I.current=G;const D=l.useRef();D.current=Y,l.useEffect(()=>{if($){let k;const X=Z=>{const{dragging:J,pageY:oe,startTop:ne}=_.current;Lt.cancel(k);const re=N.current.getBoundingClientRect(),ce=h/(m?re.width:re.height);if(J){const fe=(Pv(Z,m)-oe)*ce;let le=ne;!T&&m?le-=fe:le+=fe;const pe=I.current,ae=D.current,se=ae?le/ae:0;let he=Math.ceil(se*pe);he=Math.max(he,0),he=Math.min(he,pe),k=Lt(()=>{f(he,m)})}},Q=()=>{C(!1),d()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",Q,{passive:!0}),window.addEventListener("touchend",Q,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),Lt.cancel(k)}}},[$]),l.useEffect(()=>(V(),()=>{clearTimeout(L.current)}),[a]),l.useImperativeHandle(t,()=>({delayHidden:V}));const F=`${n}-scrollbar`,A={position:"absolute",visibility:P?null:"hidden"},z={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(A,{height:8,left:0,right:0,bottom:0}),Object.assign(z,{height:"100%",width:g,[T?"left":"right"]:q})):(Object.assign(A,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(z,{width:"100%",height:g,top:q})),l.createElement("div",{ref:N,className:K(F,{[`${F}-horizontal`]:m,[`${F}-vertical`]:!m,[`${F}-visible`]:P}),style:{...A,...y},onMouseDown:H,onMouseMove:V},l.createElement("div",{ref:O,className:K(`${F}-thumb`,{[`${F}-thumb-moving`]:$}),style:{...z,...v},onMouseDown:j}))}),zB=20;function m2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,zB),Math.floor(n)}const AB=[],DB={overflowY:"auto",overflowAnchor:"none"};function jB(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:a,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:m,itemKey:g,virtual:h,direction:y,scrollWidth:v,component:b="div",onScroll:$,onVirtualScroll:C,onVisibleChange:x,innerProps:R,extraRender:w,styles:E,showScrollBar:T="optional",...N}=e,O=l.useCallback(De=>typeof g=="function"?g(De):De?.[g],[g]),[P,B,L,V]=TB(O),G=!!(h!==!1&&a&&s),Y=l.useMemo(()=>Object.values(L.maps).reduce((De,ze)=>De+ze,0),[L.id,L.maps]),q=G&&f&&(Math.max(s*f.length,Y)>a||!!v),H=y==="rtl",_=K(n,{[`${n}-rtl`]:H},r),j=f||AB,I=l.useRef(),D=l.useRef(),F=l.useRef(),[A,z]=l.useState(0),[k,X]=l.useState(0),[Q,Z]=l.useState(!1),J=()=>{Z(!0)},oe=()=>{Z(!1)},ne={getKey:O};function re(De){z(ze=>{let We;typeof De=="function"?We=De(ze):We=De;const Re=Ie(We);return I.current.scrollTop=Re,Re})}const ce=l.useRef({start:0,end:j.length}),fe=l.useRef(),[le]=wB(j,O);fe.current=le;const{scrollHeight:pe,start:ae,end:se,offset:he}=l.useMemo(()=>{if(!G)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!q)return{scrollHeight:D.current?.offsetHeight||0,start:0,end:j.length-1,offset:void 0};let De=0,ze,We,Re;const Ge=j.length;for(let Qe=0;Qe<Ge;Qe+=1){const at=j[Qe],ut=O(at),_t=L.get(ut),Rt=De+(_t===void 0?s:_t);Rt>=A&&ze===void 0&&(ze=Qe,We=De),Rt>A+a&&Re===void 0&&(Re=Qe),De=Rt}return ze===void 0&&(ze=0,We=0,Re=Math.ceil(a/s)),Re===void 0&&(Re=j.length-1),Re=Math.min(Re+1,j.length-1),{scrollHeight:De,start:ze,end:Re,offset:We}},[q,G,A,j,V,a]);ce.current.start=ae,ce.current.end=se,l.useLayoutEffect(()=>{const De=L.getRecord();if(De.size===1){const ze=Array.from(De.keys())[0],We=De.get(ze),Re=j[ae];if(Re&&We===void 0&&O(Re)===ze){const at=L.get(ze)-s;re(ut=>ut+at)}}L.resetRecord()},[pe]);const[ge,be]=l.useState({width:0,height:a}),Ne=De=>{be({width:De.offsetWidth,height:De.offsetHeight})},ve=l.useRef(),xe=l.useRef(),de=l.useMemo(()=>m2(ge.width,v),[ge.width,v]),Se=l.useMemo(()=>m2(ge.height,pe),[ge.height,pe]),Me=pe-a,Ae=l.useRef(Me);Ae.current=Me;function Ie(De){let ze=De;return Number.isNaN(Ae.current)||(ze=Math.min(ze,Ae.current)),ze=Math.max(ze,0),ze}const Ye=A<=0,Ze=A>=Me,He=k<=0,Ve=k>=v,_e=qO(Ye,Ze,He,Ve),Ue=()=>({x:H?-k:k,y:A}),Pe=l.useRef(Ue()),Ce=ct(De=>{if(C){const ze={...Ue(),...De};(Pe.current.x!==ze.x||Pe.current.y!==ze.y)&&(C(ze),Pe.current=ze)}});function Fe(De,ze){const We=De;ze?(al.flushSync(()=>{X(We)}),Ce()):re(We)}function Je(De){const{scrollTop:ze}=De.currentTarget;ze!==A&&re(ze),$?.(De),Ce()}const Be=De=>{let ze=De;const We=v?v-ge.width:0;return ze=Math.max(ze,0),ze=Math.min(ze,We),ze},Xe=ct((De,ze)=>{ze?(al.flushSync(()=>{X(We=>{const Re=We+(H?-De:De);return Be(Re)})}),Ce()):re(We=>We+De)}),[Oe,Ke]=EB(G,Ye,Ze,He,Ve,!!v,Xe);OB(G,I,(De,ze,We,Re)=>{const Ge=Re;return _e(De,ze,We)?!1:!Ge||!Ge._virtualHandled?(Ge&&(Ge._virtualHandled=!0),Oe({preventDefault(){},deltaX:De?ze:0,deltaY:De?0:ze}),!0):!1}),NB(q,I,De=>{re(ze=>ze+De)}),Pt(()=>{function De(We){const Re=Ye&&We.detail<0,Ge=Ze&&We.detail>0;G&&!Re&&!Ge&&We.preventDefault()}const ze=I.current;return ze.addEventListener("wheel",Oe,{passive:!1}),ze.addEventListener("DOMMouseScroll",Ke,{passive:!0}),ze.addEventListener("MozMousePixelScroll",De,{passive:!1}),()=>{ze.removeEventListener("wheel",Oe),ze.removeEventListener("DOMMouseScroll",Ke),ze.removeEventListener("MozMousePixelScroll",De)}},[G,Ye,Ze]),Pt(()=>{if(v){const De=Be(k);X(De),Ce({x:De})}},[ge.width,v]);const nt=()=>{ve.current?.delayHidden(),xe.current?.delayHidden()},ot=PB(I,j,L,s,O,()=>B(!0),re,nt);l.useImperativeHandle(t,()=>({nativeElement:F.current,getScrollInfo:Ue,scrollTo:De=>{function ze(We){return We&&typeof We=="object"&&("left"in We||"top"in We)}ze(De)?(De.left!==void 0&&X(Be(De.left)),ot(De.top)):ot(De)}})),Pt(()=>{if(x){const De=j.slice(ae,se+1);x(De,j)}},[ae,se,j]);const lt=MB(j,O,L,s),Ct=w?.({start:ae,end:se,virtual:q,offsetX:k,offsetY:he,rtl:H,getSize:lt}),$t=$B(j,ae,se,v,k,P,m,ne);let ke=null;a&&(ke={[c?"height":"maxHeight"]:a,...DB},G&&(ke.overflowY="hidden",v&&(ke.overflowX="hidden"),Q&&(ke.pointerEvents="none")));const et={};return H&&(et.dir="rtl"),l.createElement("div",Gn({ref:F,style:{...d,position:"relative"},className:_},et,N),l.createElement(oo,{onResize:Ne},l.createElement(b,{className:`${n}-holder`,style:ke,ref:I,onScroll:Je,onMouseEnter:nt},l.createElement(WO,{prefixCls:n,height:pe,offsetX:k,offsetY:he,scrollWidth:v,onInnerResize:B,ref:D,innerProps:R,rtl:H,extra:Ct},$t))),q&&pe>a&&l.createElement(f2,{ref:ve,prefixCls:n,scrollOffset:A,scrollRange:pe,rtl:H,onScroll:Fe,onStartMove:J,onStopMove:oe,spinSize:Se,containerSize:ge.height,style:E?.verticalScrollBar,thumbStyle:E?.verticalScrollBarThumb,showScrollBar:T}),q&&v>ge.width&&l.createElement(f2,{ref:xe,prefixCls:n,scrollOffset:k,scrollRange:v,rtl:H,onScroll:Fe,onStartMove:J,onStopMove:oe,spinSize:de,containerSize:ge.width,horizontal:!0,style:E?.horizontalScrollBar,thumbStyle:E?.horizontalScrollBarThumb,showScrollBar:T}))}const YO=l.forwardRef(jB);YO.displayName="List";function _B(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function p2(e){return typeof e=="string"||typeof e=="number"}const HB=(e,t)=>{const{prefixCls:n,id:r,open:a,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:m,onPopupScroll:g,showScrollBar:h,lockOptions:y}=ml(),{maxCount:v,flattenOptions:b,onActiveValue:$,defaultActiveFirstOption:C,onSelect:x,menuItemSelectedIcon:R,rawValues:w,fieldNames:E,virtual:T,direction:N,listHeight:O,listItemHeight:P,optionRender:B,classNames:L,styles:V}=l.useContext(XS),G=`${n}-item`,Y=ld(()=>b,[a,y],(re,ce)=>ce[0]&&!ce[1]),q=l.useRef(null),H=l.useMemo(()=>s&&Ev(v)&&w?.size>=v,[s,v,w?.size]),_=re=>{re.preventDefault()},j=re=>{q.current?.scrollTo(typeof re=="number"?{index:re}:re)},I=l.useCallback(re=>c==="combobox"?!1:w.has(re),[c,[...w].toString(),w.size]),D=(re,ce=1)=>{const fe=Y.length;for(let le=0;le<fe;le+=1){const pe=(re+le*ce+fe)%fe,{group:ae,data:se}=Y[pe]||{};if(!ae&&!se?.disabled&&(I(se.value)||!H))return pe}return-1},[F,A]=l.useState(()=>D(0)),z=(re,ce=!1)=>{A(re);const fe={source:ce?"keyboard":"mouse"},le=Y[re];if(!le){$(null,-1,fe);return}$(le.value,re,fe)};l.useEffect(()=>{z(C!==!1?D(0):-1)},[Y.length,d]);const k=l.useCallback(re=>c==="combobox"?String(re).toLowerCase()===d.toLowerCase():w.has(re),[c,d,[...w].toString(),w.size]);l.useEffect(()=>{let re;if(!s&&a&&w.size===1){const ce=Array.from(w)[0],fe=Y.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===ce);fe!==-1&&(z(fe),re=setTimeout(()=>{j(fe)}))}return a&&q.current?.scrollTo(void 0),()=>clearTimeout(re)},[a,d]);const X=re=>{re!==void 0&&x(re,{selected:!w.has(re)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:re=>{const{which:ce,ctrlKey:fe}=re;switch(ce){case it.N:case it.P:case it.UP:case it.DOWN:{let le=0;if(ce===it.UP?le=-1:ce===it.DOWN?le=1:_B()&&fe&&(ce===it.N?le=1:ce===it.P&&(le=-1)),le!==0){const pe=D(F+le,le);j(pe),z(pe,!0)}break}case it.TAB:case it.ENTER:{const le=Y[F];if(!le||le.data.disabled)return X(void 0);!H||w.has(le.value)?X(le.value):X(void 0),a&&re.preventDefault();break}case it.ESC:f(!1),a&&re.stopPropagation()}},onKeyUp:()=>{},scrollTo:re=>{j(re)}})),Y.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${G}-empty`,onMouseDown:_},m);const Q=Object.keys(E).map(re=>E[re]),Z=re=>re.label;function J(re,ce){const{group:fe}=re;return{role:fe?"presentation":"option",id:`${r}_list_${ce}`}}const oe=re=>{const ce=Y[re];if(!ce)return null;const fe=ce.data||{},{value:le}=fe,{group:pe}=ce,ae=Pn(fe,!0),se=Z(ce);return ce?l.createElement("div",du({"aria-label":typeof se=="string"&&!pe?se:null},ae,{key:re},J(ce,re),{"aria-selected":k(le)}),le):null},ne={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,T&&l.createElement("div",du({},ne,{style:{height:0,width:0,overflow:"hidden"}}),oe(F-1),oe(F),oe(F+1)),l.createElement(YO,{itemKey:"key",ref:q,data:Y,height:O,itemHeight:P,fullHeight:!1,onMouseDown:_,onScroll:g,virtual:T,direction:N,innerProps:T?null:ne,showScrollBar:h,className:L?.popup?.list,style:V?.popup?.list},(re,ce)=>{const{group:fe,groupOption:le,data:pe,label:ae,value:se}=re,{key:he}=pe;if(fe){const Ue=pe.title??(p2(ae)?ae.toString():void 0);return l.createElement("div",{className:K(G,`${G}-group`,pe.className),title:Ue},ae!==void 0?ae:he)}const{disabled:ge,title:be,children:Ne,style:ve,className:xe,...de}=pe,Se=nn(de,Q),Me=I(se),Ae=ge||!Me&&H,Ie=`${G}-option`,Ye=K(G,Ie,xe,L?.popup?.listItem,{[`${Ie}-grouped`]:le,[`${Ie}-active`]:F===ce&&!Ae,[`${Ie}-disabled`]:Ae,[`${Ie}-selected`]:Me}),Ze=Z(re),He=!R||typeof R=="function"||Me,Ve=typeof Ze=="number"?Ze:Ze||se;let _e=p2(Ve)?Ve.toString():void 0;return be!==void 0&&(_e=be),l.createElement("div",du({},Pn(Se),T?{}:J(re,ce),{"aria-selected":T?void 0:k(se),className:Ye,title:_e,onMouseMove:()=>{F===ce||Ae||z(ce)},onClick:()=>{Ae||X(se)},style:{...V?.popup?.listItem,...ve}}),l.createElement("div",{className:`${Ie}-content`},typeof B=="function"?B(re,{index:ce}):Ve),l.isValidElement(R)||Me,He&&l.createElement(kO,{className:`${G}-option-state`,customizeIcon:R,customizeIconProps:{value:se,disabled:Ae,isSelected:Me}},Me?"✓":null))}))},BB=l.forwardRef(HB),LB=((e,t)=>{const n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(()=>{const{values:s,options:c}=n.current,d=e.map(g=>g.label===void 0?{...g,label:s.get(g.value)?.label}:g),f=new Map,m=new Map;return d.forEach(g=>{f.set(g.value,g),m.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=m,d},[e,t]),a=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,a]});function Fy(e,t){return LO(e).join("").toUpperCase().includes(t)}const VB=((e,t,n,r,a)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],m=typeof r=="function",g=n.toUpperCase(),h=m?r:(v,b)=>a&&a.length?a.some($=>Fy(b[$],g)):b[s]?Fy(b[c!=="children"?c:"label"],g):Fy(b[d],g),y=m?v=>Mv(v):v=>v;return e.forEach(v=>{if(v[s]){if(h(n,y(v)))f.push(v);else{const $=v[s].filter(C=>h(n,y(C)));$.length&&f.push({...v,[s]:$})}return}h(n,y(v))&&f.push(v)}),f},[e,r,a,n,t]));function FB(e){const{key:t,props:{children:n,value:r,...a}}=e;return{key:t,value:r!==void 0?r:t,children:n,...a}}function UO(e,t=!1){return mr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:a},key:s,props:{children:c,...d}}=n;return t||!a?FB(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:UO(c)}}).filter(n=>n)}const kB=(e,t,n,r,a)=>l.useMemo(()=>{let s=e;!e&&(s=UO(t));const d=new Map,f=new Map,m=(h,y,v)=>{v&&typeof v=="string"&&h.set(y[v],y)},g=(h,y=!1)=>{for(let v=0;v<h.length;v+=1){const b=h[v];!b[n.options]||y?(d.set(b[n.value],b),m(f,b,n.label),r.forEach($=>{m(f,b,$)}),m(f,b,a)):g(b[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,a]);function g2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function WB(e,t,n){const{filterOption:r,searchValue:a,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const m=typeof e=="object",g={filterOption:r,searchValue:a,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...m?e:{}};return[m||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,a,s,c,d,f])}function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zv.apply(this,arguments)}const qB=["inputValue"];function YB(e){return!e||typeof e!="object"}const UB=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:a="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:m,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:v,onSelect:b,onDeselect:$,onActive:C,popupMatchSelectWidth:x=!0,optionLabelProp:R,options:w,optionRender:E,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:P,direction:B,listHeight:L=200,listItemHeight:V=20,labelRender:G,value:Y,defaultValue:q,labelInValue:H,onChange:_,maxCount:j,classNames:I,styles:D,...F}=e,A={searchValue:f,onSearch:m,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:v},[z,k]=WB(d,A,r),{filterOption:X,searchValue:Q,optionFilterProp:Z,filterSort:J,onSearch:oe,autoClearSearchValue:ne=!0}=k,re=l.useMemo(()=>Z?Array.isArray(Z)?Z:[Z]:[],[Z]),ce=Jo(n),fe=Iv(r),le=!!(!w&&T),pe=l.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),ae=l.useMemo(()=>jO(c,le),[JSON.stringify(c),le]),[se,he]=Yt("",Q),ge=se||"",be=kB(w,T,ae,re,R),{valueOptions:Ne,labelOptions:ve,options:xe}=be,de=l.useCallback(Re=>LO(Re).map(Qe=>{let at,ut,_t,Rt;YB(Qe)?at=Qe:(ut=Qe.label,at=Qe.value);const Et=Ne.get(at);return Et&&(ut===void 0&&(ut=Et?.[R||ae.label]),_t=Et?.disabled,Rt=Et?.title),{label:ut,value:at,key:at,disabled:_t,title:Rt}}),[ae,R,Ne]),[Se,Me]=Yt(q,Y),Ae=l.useMemo(()=>{const Ge=de(fe&&Se===null?[]:Se);return r==="combobox"&&oB(Ge[0]?.value)?[]:Ge},[Se,de,r,fe]),[Ie,Ye]=LB(Ae,Ne),Ze=l.useMemo(()=>{if(!r&&Ie.length===1){const Re=Ie[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return Ie.map(Re=>({...Re,label:(typeof G=="function"?G(Re):Re.label)??Re.value}))},[r,Ie,G]),He=l.useMemo(()=>new Set(Ie.map(Re=>Re.value)),[Ie]);l.useEffect(()=>{if(r==="combobox"){const Re=Ie[0]?.value;he(rB(Re)?String(Re):"")}},[Ie]);const Ve=g2((Re,Ge)=>{const Qe=Ge??Re;return{[ae.value]:Re,[ae.label]:Qe}}),_e=l.useMemo(()=>{if(r!=="tags")return xe;const Re=[...xe],Ge=Qe=>Ne.has(Qe);return[...Ie].sort((Qe,at)=>Qe.value<at.value?-1:1).forEach(Qe=>{const at=Qe.value;Ge(at)||Re.push(Ve(at,Qe.label))}),Re},[Ve,xe,Ne,Ie,r]),Ue=VB(_e,ae,ge,pe,re),Pe=l.useMemo(()=>{const Re=Ge=>re.length?re.some(Qe=>Ge?.[Qe]===ge):Ge?.value===ge;return r!=="tags"||!ge||Ue.some(Ge=>Re(Ge))||Ue.some(Ge=>Ge[ae.value]===ge)?Ue:[Ve(ge),...Ue]},[Ve,re,r,Ue,ge,ae]),Ce=Re=>[...Re].sort((Qe,at)=>J(Qe,at,{searchValue:ge})).map(Qe=>Array.isArray(Qe.options)?{...Qe,options:Qe.options.length>0?Ce(Qe.options):Qe.options}:Qe),Fe=l.useMemo(()=>J?Ce(Pe):Pe,[Pe,J,ge]),Je=l.useMemo(()=>ZH(Fe,{fieldNames:ae,childrenAsData:le}),[Fe,ae,le]),Be=Re=>{const Ge=de(Re);if(Me(Ge),_&&(Ge.length!==Ie.length||Ge.some((Qe,at)=>Ie[at]?.value!==Qe?.value))){const Qe=H?Ge.map(({label:ut,value:_t})=>({label:ut,value:_t})):Ge.map(ut=>ut.value),at=Ge.map(ut=>Mv(Ye(ut.value)));_(fe?Qe:Qe[0],fe?at:at[0])}},[Xe,Oe]=l.useState(null),[Ke,nt]=l.useState(0),ot=N!==void 0?N:r!=="combobox",lt=l.useRef(),Ct=l.useCallback((Re,Ge,{source:Qe="keyboard"}={})=>{nt(Ge),s&&r==="combobox"&&Re!==null&&Qe==="keyboard"&&Oe(String(Re));const at=Promise.resolve().then(()=>{lt.current===at&&C?.(Re)});lt.current=at},[s,r,C]),$t=(Re,Ge,Qe)=>{const at=()=>{const ut=Ye(Re);return[H?{label:ut?.[ae.label],value:Re}:Re,Mv(ut)]};if(Ge&&b){const[ut,_t]=at();b(ut,_t)}else if(!Ge&&$&&Qe!=="clear"){const[ut,_t]=at();$(ut,_t)}},ke=g2((Re,Ge)=>{let Qe;const at=fe?Ge.selected:!0;at?Qe=fe?[...Ie,Re]:[Re]:Qe=Ie.filter(ut=>ut.value!==Re),Be(Qe),$t(Re,at),r==="combobox"?Oe(""):(!Iv||ne)&&(he(""),Oe(""))}),et=(Re,Ge)=>{Be(Re);const{type:Qe,values:at}=Ge;(Qe==="remove"||Qe==="clear")&&at.forEach(ut=>{$t(ut.value,!1,Qe)})},De=(Re,Ge)=>{if(he(Re),Oe(null),Ge.source==="submit"){const Qe=(Re||"").trim();if(Qe){const at=Array.from(new Set([...He,Qe]));Be(at),$t(Qe,!0),he("")}return}Ge.source!=="blur"&&(r==="combobox"&&Be(Re),oe?.(Re))},ze=Re=>{let Ge=Re;r!=="tags"&&(Ge=Re.map(at=>ve.get(at)?.value).filter(at=>at!==void 0));const Qe=Array.from(new Set([...He,...Ge]));Be(Qe),Qe.forEach(at=>{$t(at,!0)})},We=l.useMemo(()=>({...be,flattenOptions:Je,onActiveValue:Ct,defaultActiveFirstOption:ot,onSelect:ke,menuItemSelectedIcon:O,rawValues:He,fieldNames:ae,virtual:P!==!1&&x!==!1,direction:B,listHeight:L,listItemHeight:V,childrenAsData:le,maxCount:j,optionRender:E,classNames:I,styles:D}),[j,be,Je,Ct,ot,ke,O,He,ae,P,x,B,L,V,le,E,I,D]);return l.createElement(XS.Provider,{value:We},l.createElement(SB,zv({},F,{id:ce,prefixCls:a,ref:t,omitDomProps:qB,mode:r,classNames:I,styles:D,displayValues:Ze,onDisplayValuesChange:et,maxCount:j,direction:B,showSearch:z,searchValue:ge,onSearch:De,autoClearSearchValue:ne,onSearchSplit:ze,popupMatchSelectWidth:x,OptionList:BB,emptyOptions:!Je.length,activeValue:Xe,activeDescendantId:`${ce}_list_${Ke}`})))}),ZS=UB;ZS.Option=QS;ZS.OptGroup=KS;const il=(e,t,n)=>K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Bs=(e,t)=>t||e,GB=()=>{const[,e]=qr(),[t]=ao("Empty"),r=new tn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.7)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),l.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),l.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),l.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),l.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),l.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},l.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),l.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},XB=()=>{const[,e]=qr(),[t]=ao("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new tn(n).onBackground(s).toHexString(),shadowColor:new tn(r).onBackground(s).toHexString(),contentColor:new tn(a).onBackground(s).toHexString()}),[n,r,a,s]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:c},l.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),l.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:f}))))},KB=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:s,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:c,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},QB=At("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=It(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return KB(a)}),GO=l.createElement(GB,null),XO=l.createElement(XB,null),Ui=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a,description:s,children:c,imageStyle:d,style:f,classNames:m,styles:g,...h}=e,{getPrefixCls:y,direction:v,className:b,style:$,classNames:C,styles:x,image:R}=zt("empty"),w=y("empty",r),[E,T]=QB(w),[N,O]=Ft([C,m],[x,g],{props:e}),[P]=ao("Empty"),B=typeof s<"u"?s:P?.description,L=typeof B=="string"?B:"empty",V=a??R??GO;let G=null;return typeof V=="string"?G=l.createElement("img",{draggable:!1,alt:L,src:V}):G=V,l.createElement("div",{className:K(E,T,w,b,{[`${w}-normal`]:V===XO,[`${w}-rtl`]:v==="rtl"},t,n,N.root),style:{...O.root,...$,...f},...h},l.createElement("div",{className:K(`${w}-image`,N.image),style:{...d,...O.image}},G),B&&l.createElement("div",{className:K(`${w}-description`,N.description),style:O.description},B),c&&l.createElement("div",{className:K(`${w}-footer`,N.footer),style:O.footer},c))};Ui.PRESENTED_IMAGE_DEFAULT=GO;Ui.PRESENTED_IMAGE_SIMPLE=XO;const KO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(ft),r=n("empty");switch(t){case"Table":case"List":return ie.createElement(Ui,{image:Ui.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ie.createElement(Ui,{image:Ui.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ie.createElement(Ui,null)}},Ls=(e,t,n)=>{const{variant:r,[e]:a}=l.useContext(ft),s=l.useContext(eH),c=a?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=wz.includes(d);return[d,f]},ZB=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function JB(e,t){return e||ZB(t)}const h2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},e9=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Jt(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,[`
|
|
180
|
+
${a}${d}bottomLeft,
|
|
181
|
+
${s}${d}bottomLeft
|
|
182
|
+
`]:{animationName:Ap},[`
|
|
183
|
+
${a}${d}topLeft,
|
|
184
|
+
${s}${d}topLeft,
|
|
185
|
+
${a}${d}topRight,
|
|
186
|
+
${s}${d}topRight
|
|
187
|
+
`]:{animationName:jp},[`${c}${d}bottomLeft`]:{animationName:Dp},[`
|
|
188
|
+
${c}${d}topLeft,
|
|
189
|
+
${c}${d}topRight
|
|
190
|
+
`]:{animationName:_p},"&-hidden":{display:"none"},[r]:{...h2(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...xo},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...h2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Zo(e,"slide-up"),Zo(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down")]},t9=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},y2=4,n9=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:a,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:c,lineWidth:d,colorIcon:f,colorIconHover:m,inputPaddingHorizontalBase:g,antCls:h}=e,[y,v]=en(h,"select");return{"&-multiple":{[y("multi-item-background")]:e.multipleItemBg,[y("multi-item-border-color")]:"transparent",[y("multi-item-border-radius")]:e.borderRadiusSM,[y("multi-item-height")]:e.multipleItemHeight,[y("multi-padding-base")]:`calc((${v("height")} - ${v("multi-item-height")}) / 2)`,[y("multi-padding-vertical")]:`calc(${v("multi-padding-base")} - ${c} - ${d})`,[y("multi-item-padding-horizontal")]:`calc(${g} - ${v("multi-padding-vertical")} - ${d} * 2)`,paddingBlock:v("multi-padding-vertical"),paddingInlineStart:`calc(${v("multi-padding-base")} - ${d})`,[`${t}-prefix`]:{marginInlineStart:v("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:v("line-height"),insetInlineStart:v("multi-item-padding-horizontal"),width:`calc(100% - ${v("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:v("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${y2}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
191
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:v("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${v("multi-item-height")} - ${d} * 2)`,border:`${d} solid ${v("multi-item-border-color")}`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:v("multi-item-background"),borderRadius:v("multi-item-border-radius"),paddingInlineStart:a,paddingInlineEnd:s,transition:["height","line-height","padding"].map(b=>`${b} ${e.motionDurationSlow}`).join(","),"&-content":{...xo,marginInlineEnd:s},"&-remove":{...Ds(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add(v("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:y2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[y("multi-item-height")]:e.multipleItemHeightSM,[y("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[y("multi-item-height")]:e.multipleItemHeightLG,[y("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[y("multi-item-border-color")]:e.colorSplit,[y("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[y("multi-item-border-color")]:"transparent"}}}}},ky=(e,t)=>{const{componentCls:n,antCls:r}=e,[a]=en(r,"select"),{border:s,borderHover:c,borderActive:d,borderOutline:f}=t,m=t.background||e.selectorBg||e.colorBgContainer;return{[a("border-color")]:s,[a("background-color")]:m,[a("color")]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[a("border-color")]:c,[a("background-color")]:t.backgroundHover||m},[`&${n}-focused`]:{[a("border-color")]:d,[a("background-color")]:t.backgroundActive||m,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${f}`}},[`&${n}-disabled`]:{[a("border-color")]:t.borderDisabled||t.border,[a("background-color")]:t.backgroundDisabled||t.background}}},Xf=(e,t,n,r={},a={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[ky(e,n),{[`&${c}-status-error`]:ky(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:ky(e,{...n,color:a.color||e.colorWarning,...a})},s]}},r9=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,iconCls:a,antCls:s,calc:c}=e,[d,f]=en(s,"select");return{[t]:[{[d("border-radius")]:e.borderRadius,[d("border-color")]:"#000",[d("border-size")]:e.lineWidth,[d("background-color")]:e.colorBgContainer,[d("font-size")]:e.fontSize,[d("line-height")]:e.lineHeight,[d("font-height")]:n,[d("color")]:e.colorText,[d("height")]:r,[d("padding-horizontal")]:c(e.paddingSM).sub(e.lineWidth).equal(),[d("padding-vertical")]:`calc((${f("height")} - ${f("font-height")}) / 2 - ${f("border-size")})`,...Jt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:f("border-radius"),borderWidth:f("border-size"),borderStyle:e.lineType,borderColor:f("border-color"),background:f("background-color"),fontSize:f("font-size"),lineHeight:f("line-height"),color:f("color"),paddingInline:f("padding-horizontal"),paddingBlock:f("padding-vertical"),[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...xo,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:c(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...xo,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[d("height")]:e.controlHeightSM,[d("padding-horizontal")]:c(e.paddingXS).sub(e.lineWidth).equal(),[d("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:f("padding-horizontal")}},"&-lg":{[d("height")]:e.controlHeightLG,[d("font-size")]:e.fontSizeLG,[d("line-height")]:e.lineHeightLG,[d("font-height")]:e.fontHeightLG,[d("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:`calc(${f("padding-vertical")} * -1)`,lineHeight:`calc(${f("font-height")} + ${f("padding-vertical")} * 2)`},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},n9(e),Xf(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),Xf(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Xf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Xf(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),t9(e)]}},o9=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:m,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:v,colorBgContainer:b,colorFillSecondary:$,colorBgContainerDisabled:C,colorTextDisabled:x,colorPrimaryHover:R,colorPrimary:w,controlOutline:E}=e,T=d*2,N=r*2,O=Math.min(a-T,a-N),P=Math.min(s-T,s-N),B=Math.min(c-T,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:m+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:v,optionPadding:`${(a-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:$,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:P,multipleItemHeightLG:B,multipleSelectorBgDisabled:C,multipleItemColorDisabled:x,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:R,activeBorderColor:w,activeOutlineColor:E,selectAffixPadding:d}},a9=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Jt(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...xo,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},i9=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},a9(e),e9(e),{[`${t}-rtl`]:{direction:"rtl"}},bd(e,{focusElCls:`${t}-focused`})]},l9=At("Select",(e,{rootPrefixCls:t})=>{const n=It(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[i9(n),r9(n)]},o9,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var s9={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"};function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}const c9=(e,t)=>l.createElement(ht,Av({},e,{ref:t,icon:s9})),pl=l.forwardRef(c9);var u9={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"};function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dv.apply(this,arguments)}const d9=(e,t)=>l.createElement(ht,Dv({},e,{ref:t,icon:u9})),f9=l.forwardRef(d9);var m9={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"};function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jv.apply(this,arguments)}const p9=(e,t)=>l.createElement(ht,jv({},e,{ref:t,icon:m9})),QO=l.forwardRef(p9);function ZO({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:s,hasFeedback:c,showSuffixIcon:d,feedbackIcon:f,showArrow:m,componentName:g}){const h=t??l.createElement(_s,null),y=C=>e===null&&!c&&!m?null:l.createElement(l.Fragment,null,d!==!1&&C,c&&f);let v=null;e!==void 0?v=y(e):a?v=y(l.createElement(Ip,{spin:!0})):v=({open:C,showSearch:x})=>y(C&&x?l.createElement(QO,null):l.createElement(f9,null));let b=null;n!==void 0?b=n:s?b=l.createElement(pl,null):b=null;let $=null;return r!==void 0?$=r:$=l.createElement(Yr,null),{clearIcon:h,suffixIcon:v,itemIcon:b,removeIcon:$}}function g9(e){return ie.useMemo(()=>{if(e)return(...t)=>ie.createElement(Ea,{space:!0},e.apply(void 0,t))},[e])}function h9(e,t){return t!==void 0?t:e!==null}const JO="SECRET_COMBOBOX_MODE_DO_NOT_USE",y9=(e,t)=>{const{prefixCls:n,bordered:r,className:a,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:m=256,placement:g,listItemHeight:h,size:y,disabled:v,notFoundContent:b,status:$,builtinPlacements:C,dropdownMatchSelectWidth:x,popupMatchSelectWidth:R,direction:w,style:E,allowClear:T,variant:N,popupStyle:O,dropdownStyle:P,transitionName:B,tagRender:L,maxCount:V,prefix:G,dropdownRender:Y,popupRender:q,onDropdownVisibleChange:H,onOpenChange:_,styles:j,classNames:I,...D}=e,{getPopupContainer:F,getPrefixCls:A,renderEmpty:z,direction:k,virtual:X,popupMatchSelectWidth:Q,popupOverflow:Z}=l.useContext(ft),{showSearch:J,style:oe,styles:ne,className:re,classNames:ce}=zt("select"),[,fe]=qr(),le=h??fe?.controlHeight,pe=A("select",n),ae=A(),se=w??k,{compactSize:he,compactItemClassnames:ge}=Oa(pe,se),[be,Ne]=Ls("select",N,r),ve=lr(pe),[xe,de]=l9(pe,ve),Se=l.useMemo(()=>{const{mode:Ge}=e;if(Ge!=="combobox")return Ge===JO?"combobox":Ge},[e.mode]),Me=Se==="multiple"||Se==="tags",Ae=h9(e.suffixIcon,e.showArrow),Ie=R??x??Q,Ye=g9(q||Y),Ze=_||H,{status:He,hasFeedback:Ve,isFormItemInput:_e,feedbackIcon:Ue}=l.useContext(Or),Pe=Bs(He,$);let Ce;b!==void 0?Ce=b:Se==="combobox"?Ce=null:Ce=z?.("Select")||l.createElement(KO,{componentName:"Select"});const{suffixIcon:Fe,itemIcon:Je,removeIcon:Be,clearIcon:Xe}=ZO({...D,multiple:Me,hasFeedback:Ve,feedbackIcon:Ue,showSuffixIcon:Ae,componentName:"Select"}),Oe=T===!0?{clearIcon:Xe}:T,Ke=nn(D,["suffixIcon","itemIcon"]),nt=pr(Ge=>y??he??Ge),ot=l.useContext(Wr),lt=v??ot,Ct={...e,variant:be,status:Pe,disabled:lt,size:nt},[$t,ke]=Ft([ce,I],[ne,j],{props:Ct},{popup:{_default:"root"}}),et=K($t.popup?.root,d,f,{[`${pe}-dropdown-${se}`]:se==="rtl"},s,de,ve,xe),De={...ke.popup?.root,...O??P},ze=K({[`${pe}-lg`]:nt==="large",[`${pe}-sm`]:nt==="small",[`${pe}-rtl`]:se==="rtl",[`${pe}-${be}`]:Ne,[`${pe}-in-form-item`]:_e},il(pe,Pe,Ve),ge,re,a,$t.root,s,de,ve,xe),We=l.useMemo(()=>g!==void 0?g:se==="rtl"?"bottomRight":"bottomLeft",[g,se]),[Re]=bi("SelectLike",ke.popup?.root?.zIndex??De?.zIndex);return l.createElement(ZS,{ref:t,virtual:X,classNames:$t,styles:ke,showSearch:J,...Ke,style:{...ke.root,...oe,...E},popupMatchSelectWidth:Ie,transitionName:Qo(ae,"slide-up",B),builtinPlacements:JB(C,Z),listHeight:m,listItemHeight:le,mode:Se,prefixCls:pe,placement:We,direction:se,prefix:G,suffixIcon:Fe,menuItemSelectedIcon:Je,removeIcon:Be,allowClear:Oe,notFoundContent:Ce,className:ze,getPopupContainer:c||F,popupClassName:et,disabled:lt,popupStyle:{...ke.popup?.root,...De,zIndex:Re},maxCount:Me?V:void 0,tagRender:Me?L:void 0,popupRender:Ye,onPopupVisibleChange:Ze})},Fr=l.forwardRef(y9),b9=Bp(Fr,"popupAlign");Fr.SECRET_COMBOBOX_MODE_DO_NOT_USE=JO;Fr.Option=QS;Fr.OptGroup=KS;Fr._InternalPanelDoNotUseOrYouWillBeFired=b9;const ll=["xxl","xl","lg","md","sm","xs"],v9=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),S9=e=>{const t=e,n=[].concat(ll).reverse();return n.forEach((r,a)=>{const s=r.toUpperCase(),c=`screen${s}Min`,d=`screen${s}`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);if(a<n.length-1){const f=`screen${s}Max`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);const g=`screen${n[a+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},C9=()=>{const[,e]=qr(),t=v9(S9(e));return ie.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return a=s,n.forEach(c=>c(a)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(a),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:m})=>{this.dispatch({...a,[s]:m})},f=window.matchMedia(c);typeof f?.addEventListener=="function"&&f.addEventListener("change",d),this.matchHandlers[c]={mql:f,listener:d},d(f)})},unregister(){Object.values(t).forEach(s=>{const c=this.matchHandlers[s];typeof c?.mql?.removeEventListener=="function"&&c.mql.removeEventListener("change",c?.listener)}),n.clear()}}},[t])};function Lp(e=!0,t={}){const n=l.useRef(t),[,r]=tA(),a=C9();return Pt(()=>{const s=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(s)},[]),n.current}const Is=e=>e?typeof e=="function"?e():e:null,JS=e=>{const{children:t,prefixCls:n,id:r,classNames:a,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:K(`${n}-container`,a?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},as={shiftX:64,adjustY:1},is={adjustX:1,shiftY:!0},bo=[0,0],$9={left:{points:["cr","cl"],overflow:is,offset:[-4,0],targetOffset:bo},right:{points:["cl","cr"],overflow:is,offset:[4,0],targetOffset:bo},top:{points:["bc","tc"],overflow:as,offset:[0,-4],targetOffset:bo},bottom:{points:["tc","bc"],overflow:as,offset:[0,4],targetOffset:bo},topLeft:{points:["bl","tl"],overflow:as,offset:[0,-4],targetOffset:bo},leftTop:{points:["tr","tl"],overflow:is,offset:[-4,0],targetOffset:bo},topRight:{points:["br","tr"],overflow:as,offset:[0,-4],targetOffset:bo},rightTop:{points:["tl","tr"],overflow:is,offset:[4,0],targetOffset:bo},bottomRight:{points:["tr","br"],overflow:as,offset:[0,4],targetOffset:bo},rightBottom:{points:["bl","br"],overflow:is,offset:[4,0],targetOffset:bo},bottomLeft:{points:["tl","bl"],overflow:as,offset:[0,4],targetOffset:bo},leftBottom:{points:["br","bl"],overflow:is,offset:[-4,0],targetOffset:bo}};function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(this,arguments)}const x9=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:a=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:m,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:v,getTooltipContainer:b,arrowContent:$,overlay:C,id:x,showArrow:R=!0,classNames:w,styles:E,...T}=e,N=Jo(x),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const B=l.useMemo(()=>{if(!R)return!1;const V=R===!0?{}:R;return{...V,className:K(V.className,w?.arrow),style:{...V.style,...E?.arrow},content:V.content??$}},[R,w?.arrow,E?.arrow,$]),L=({open:V})=>{const G=l.Children.only(c),Y={"aria-describedby":C&&V?N:void 0};return l.cloneElement(G,Y)};return l.createElement(pd,_v({popupClassName:w?.root,prefixCls:s,popup:l.createElement(JS,{key:"content",prefixCls:s,id:N,classNames:w,styles:E},C),action:n,builtinPlacements:$9,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:m,defaultPopupVisible:v,autoDestroy:y,mouseLeaveDelay:a,popupStyle:E?.root,mouseEnterDelay:r,arrow:B,uniqueContainerClassName:w?.uniqueContainer,uniqueContainerStyle:E?.uniqueContainer},P),L)});function Vp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,s=0,c=a,d=r*1/Math.sqrt(2),f=a-r*(1-1/Math.sqrt(2)),m=a-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*a-m,y=g,v=2*a-d,b=f,$=2*a-s,C=c,x=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),R=r*(Math.sqrt(2)-1),w=`polygon(${R}px 100%, 50% ${R}px, ${2*a-R}px 100%, ${R}px 100%)`,E=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${m} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${v} ${b} A ${r} ${r} 0 0 0 ${$} ${C} Z')`;return{arrowShadowWidth:x,arrowPath:E,arrowPolygon:w}}const e6=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:d,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},t6=8;function Fp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?t6:r}}function Kf(e,t){return e?t:{}}const e1=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:s,arrowOffsetHorizontal:c,antCls:d}=e,[f]=en(d,"tooltip"),{arrowDistance:m=0,arrowPlacement:g={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...e6(e,t,a),"&:before":{background:t}}],...Kf(!!g.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[f("arrow-offset-horizontal")]:c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[f("arrow-offset-horizontal")]:`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Kf(!!g.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[f("arrow-offset-horizontal")]:c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[f("arrow-offset-horizontal")]:`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Kf(!!g.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}}),...Kf(!!g.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}})}}};function w9(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c={...s,...a};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const b2={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"]}},E9={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"]}},M9=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function n6(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},m=Fp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(b2).forEach(g=>{const y={...r&&E9[g]||b2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,M9.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-a;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+a;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-a;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+a;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-m.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=m.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-m.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=m.arrowOffsetHorizontal*2-d;break}y.overflow=w9(g,m,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const t1=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ie.useMemo(()=>{const r=n(e),a=n(t);return{...a,...r,show:r.show??a.show??!0}},[e,t])},v2="50%",R9=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:m,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:v,antCls:b}=e,[$,C]=en(b,"tooltip"),x=t(c).add(v).add(y).equal(),w={minWidth:t(c).mul(2).add(v).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:C("overlay-color",a),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:m,boxSizing:"border-box"},E={[$("valid-offset-x")]:C("arrow-offset-horizontal","var(--arrow-x)"),transformOrigin:[C("valid-offset-x",v2),`var(--arrow-y, ${v2})`].join(" ")};return[{[n]:{...Jt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...E,"&-hidden":{display:"none"},[$("arrow-background-color")]:s,[`${n}-container`]:[w,JT(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,t6)}},[`${n}-content`]:{position:"relative"},...Tp(e,(T,{darkColor:N})=>({[`&${n}-${T}`]:{[`${n}-container`]:{backgroundColor:N},[`${n}-arrow`]:{[$("arrow-background-color")]:N}}})),"&-rtl":{direction:"rtl"}}},e1(e,C("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...w,...E,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},T9=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Fp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Vp(It(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),r6=(e,t,n=!0)=>At("Tooltip",a=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d,maxWidth:f}=a,m=It(a,{tooltipMaxWidth:f,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[R9(m),yd(a,"zoom-big-fast")]},T9,{resetStyle:!1,injectStyle:n})(e,t),O9=pi.map(e=>`${e}-inverse`),N9=["success","processing","error","default","warning"];function kp(e,t=!0){return t?[].concat(En(O9),En(pi)).includes(e):pi.includes(e)}function I9(e){return N9.includes(e)}const o6=(e,t,n)=>{const r=kp(n),[a]=en(e,"tooltip"),s=K({[`${t}-${n}`]:n&&r}),c={},d={},f=Pj(n).toRgb(),g=(.299*f.r+.587*f.g+.114*f.b)/255<.5?"#FFF":"#000";return n&&!r&&(c.background=n,c[a("overlay-color")]=g,d[a("arrow-background-color")]=n),{className:s,overlayStyle:c,arrowStyle:d}},P9=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:m}=l.useContext(ft),g=m("tooltip",t),h=m(),y=lr(g),[v,b]=r6(g,y),$=o6(h,g,s),C=$.arrowStyle,x=l.useMemo(()=>({container:{...c,...$.overlayStyle}}),[c,$.overlayStyle]),R={...e,placement:r},[w,E]=Ft([d],[x,f],{props:R}),T=K(y,v,b,g,`${g}-pure`,`${g}-placement-${r}`,n,$.className);return l.createElement("div",{className:T,style:C},l.createElement("div",{className:`${g}-arrow`}),l.createElement(JS,{...e,className:v,prefixCls:g,classNames:w,styles:E},a))},z9=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:a,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:m,destroyOnHidden:g,title:h,overlay:y,trigger:v,builtinPlacements:b,autoAdjustOverflow:$=!0,motion:C,getPopupContainer:x,placement:R="top",mouseEnterDelay:w=.1,mouseLeaveDelay:E=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:P,overlayInnerStyle:B,overlayStyle:L,overlayClassName:V,...G}=e,[,Y]=qr(),{getPopupContainer:q,getPrefixCls:H,direction:_,className:j,style:I,classNames:D,styles:F,arrow:A,trigger:z}=zt("tooltip"),k=t1(f,A),X=k.show,Q=v||z||"hover",Z=l.useRef(null),J=()=>{Z.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:J,nativeElement:Z.current?.nativeElement,popupElement:Z.current?.popupElement}));const[oe,ne]=Yt(e.defaultOpen??!1,e.open),re=!h&&!y&&h!==0,ce=Fe=>{ne(re?!1:Fe),!re&&P&&P(Fe)},fe=l.useMemo(()=>b||n6({arrowPointAtCenter:k?.pointAtCenter??!1,autoAdjustOverflow:$,arrowWidth:X?Y.sizePopupArrow:0,borderRadius:Y.borderRadius,offset:Y.marginXXS,visibleFirst:!0}),[k,b,Y,X,$]),le=l.useMemo(()=>h===0?h:y||h||"",[y,h]),pe=l.createElement(Ea,{space:!0,form:!0},typeof le=="function"?le():le),ae={...e,trigger:Q,color:s,placement:R,builtinPlacements:b,openClassName:r,arrow:f,autoAdjustOverflow:$,getPopupContainer:x,children:c,destroyTooltipOnHide:m,destroyOnHidden:g},[se,he]=Ft([D,O],[F,N],{props:ae}),ge=H("tooltip",n),be=H(),Ne=e["data-popover-inject"];let ve=oe;!("open"in e)&&re&&(ve=!1);const xe=l.isValidElement(c)&&!PT(c)?c:l.createElement("span",null,c),de=xe.props,Se=!de.className||typeof de.className=="string"?K(de.className,r||`${ge}-open`):de.className,Me=lr(ge),[Ae,Ie]=r6(ge,Me,!Ne),Ye=o6(be,ge,s),Ze=Ye.arrowStyle,He=K(Me,Ae,Ie),Ve=K(V,{[`${ge}-rtl`]:_==="rtl"},Ye.className,T,He,j,se.root),[_e,Ue]=bi("Tooltip",G.zIndex),Pe={...he.container,...B,...Ye.overlayStyle},Ce=l.createElement(x9,{unique:!0,...G,trigger:Q,zIndex:_e,showArrow:X,placement:R,mouseEnterDelay:w,mouseLeaveDelay:E,prefixCls:ge,classNames:{root:Ve,container:se.container,arrow:se.arrow,uniqueContainer:K(He,se.container)},styles:{root:{...Ze,...he.root,...I,...L},container:Pe,uniqueContainer:Pe,arrow:he.arrow},getTooltipContainer:x||a||q,ref:Z,builtinPlacements:fe,overlay:pe,visible:ve,onVisibleChange:ce,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${ge}-arrow-content`}),motion:{motionName:Qo(be,"zoom-big-fast",typeof C?.motionName=="string"?C?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!m},ve?or(xe,{className:Se}):xe);return l.createElement(dd.Provider,{value:Ue},Ce)}),fr=z9;fr._InternalPanelDoNotUseOrYouWillBeFired=P9;fr.UniqueProvider=AT;const S2="50%",A9=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:m,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:v,innerContentPadding:b,titlePadding:$,antCls:C}=e,[x,R]=en(C,"tooltip");return[{[t]:{...Jt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[x("valid-offset-x")]:R("arrow-offset-horizontal","var(--arrow-x)"),transformOrigin:[R("valid-offset-x",S2),`var(--arrow-y, ${S2})`].join(" "),[x("arrow-background-color")]:h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:f,boxShadow:c,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:g,color:d,fontWeight:a,borderBottom:v,padding:$},[`${t}-content`]:{color:n,padding:b}}},e1(e,R("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},D9=e=>{const{componentCls:t,antCls:n}=e,[r]=en(n,"tooltip");return{[t]:pi.map(a=>{const s=e[`${a}6`];return{[`&${t}-${a}`]:{[r("arrow-background-color")]:s,[`${t}-inner`]:{backgroundColor:s},[`${t}-arrow`]:{background:"transparent"}}}})}},j9=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:m,colorSplit:g,paddingSM:h}=e,y=n-r,v=y/2,b=y/2-t,$=a;return{titleMinWidth:177,zIndexPopup:c+30,...Vp(e),...Fp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${v}px ${$}px ${b}px`:0,titleBorderBottom:s?`${t}px ${m} ${g}`:"none",innerContentPadding:s?`${h}px ${$}px`:0}},a6=At("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=It(e,{popoverBg:t,popoverColor:n});return[A9(r),D9(r),yd(r,"zoom-big")]},j9,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),i6=e=>{const{title:t,content:n,prefixCls:r,classNames:a,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:K(`${r}-title`,a?.title),style:s?.title},t),n&&l.createElement("div",{className:K(`${r}-content`,a?.content),style:s?.content},n))},_9=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:s="top",title:c,content:d,children:f,classNames:m,styles:g}=e,h=Is(c),y=Is(d),v={...e,placement:s},[b,$]=Ft([m],[g],{props:v}),C=K(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:C,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(JS,{...e,className:t,prefixCls:n,classNames:b,styles:$},f||l.createElement(i6,{prefixCls:n,title:h,content:y,classNames:b,styles:$})))},l6=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:a}=l.useContext(ft),s=a("popover",t),[c,d]=a6(s);return l.createElement(_9,{...r,prefixCls:s,hashId:c,className:K(n,d)})},H9=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:a,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:m=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:v,classNames:b,motion:$,arrow:C,...x}=e,{getPrefixCls:R,className:w,style:E,classNames:T,styles:N,arrow:O,trigger:P}=zt("popover"),B=R("popover",n),[L,V]=a6(B),G=R(),Y=t1(C,O),q=d||P||"hover",H={...e,placement:c,trigger:q,mouseEnterDelay:m,mouseLeaveDelay:g,overlayStyle:y,styles:v,classNames:b},[_,j]=Ft([T,b],[N,v],{props:H}),I=K(s,L,V,w,_.root),[D,F]=Yt(e.defaultOpen??!1,e.open),A=X=>{F(X),h?.(X)},z=Is(r),k=Is(a);return l.createElement(fr,{unique:!1,arrow:Y,placement:c,trigger:q,mouseEnterDelay:m,mouseLeaveDelay:g,...x,prefixCls:B,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...j.root,...E,...y},container:j.container,arrow:j.arrow},ref:t,open:D,onOpenChange:A,overlay:z||k?l.createElement(i6,{prefixCls:B,title:z,content:k,classNames:_,styles:j}):null,motion:{motionName:Qo(G,"zoom-big",typeof $?.motionName=="string"?$?.motionName:void 0)},"data-popover-inject":!0},f)}),s6=H9;s6._InternalPanelDoNotUseOrYouWillBeFired=l6;const C2=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let s;return a&&(s={position:"absolute",top:`${a}00%`,left:0}),l.createElement("span",{style:s,className:K(`${t}-only-unit`,{current:r})},n)};function B9(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const L9=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),s=Math.abs(n),[c,d]=l.useState(a),[f,m]=l.useState(s),g=()=>{d(a),m(s)};l.useEffect(()=>{const v=setTimeout(g,1e3);return()=>clearTimeout(v)},[a]);let h,y;if(c===a||Number.isNaN(a)||Number.isNaN(c))h=[l.createElement(C2,{...e,key:a,current:!0})],y={transition:"none"};else{h=[];const v=a+10,b=[];for(let R=a;R<=v;R+=1)b.push(R);const $=f<s?1:-1,C=b.findIndex(R=>R%10===c);h=($<0?b.slice(0,C+1):b.slice(C)).map((R,w)=>{const E=R%10;return l.createElement(C2,{...e,key:R,value:E,offset:$<0?w-C:w,current:w===C})}),y={transform:`translateY(${-B9(c,a,$)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},V9=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:s,style:c,title:d,show:f,component:m="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(ft),v=y("scroll-number",n),b={...h,"data-show":f,style:c,className:K(v,a,s),title:d};let $=r;if(r&&Number(r)%1===0){const C=String(r).split("");$=l.createElement("bdi",null,C.map((x,R)=>l.createElement(L9,{prefixCls:v,count:Number(r),value:x,key:C.length-R})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?or(g,C=>({className:K(`${v}-custom-component`,C?.className,s)})):l.createElement(m,{...b,ref:t},$)}),F9=new jt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),k9=new jt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),W9=new jt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),q9=new jt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Y9=new jt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),U9=new jt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),G9=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:m,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:v}=e,b=`${r}-scroll-number`,$=Tp(e,(C,{darkColor:x})=>({[`&${t} ${t}-color-${C}`]:{background:x,[`&:not(${t}-count)`]:{color:x},"a:hover &":{background:x}}}));return{[t]:{...Jt(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:m,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(g).div(2).equal(),boxShadow:`0 0 0 ${te(a)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:h,height:h,fontSize:c,lineHeight:te(h),borderRadius:v(h).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${te(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${te(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:U9,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:d,height:d,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:F9,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:y,color:e.colorText,fontSize:e.fontSize}},...$,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:k9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:W9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:q9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Y9,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},c6=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,m=e.colorErrorHover;return It(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:m,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},u6=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},X9=At("Badge",e=>{const t=c6(e);return G9(t)},u6),K9=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:a,status:s,text:c,color:d,count:f=null,overflowCount:m=99,dot:g=!1,size:h="default",title:y,offset:v,style:b,className:$,rootClassName:C,classNames:x,styles:R,showZero:w=!1,...E}=e,{getPrefixCls:T,direction:N,className:O,style:P,classNames:B,styles:L}=zt("badge"),V=T("badge",n),[G,Y]=X9(V),q={...e,overflowCount:m,size:h,dot:g,showZero:w},[H,_]=Ft([B,x],[L,R],{props:q}),j=f>m?`${m}+`:f,I=j==="0"||j===0||c==="0"||c===0,D=f===null||I&&!w,F=(Rr(s)||Rr(d))&&D,A=Rr(s)||!I,z=g&&!I,k=z?"":j,X=l.useMemo(()=>((!Rr(k)||k==="")&&(!Rr(c)||c==="")||I&&!w)&&!z,[k,I,w,z,c]),Q=l.useRef(f);X||(Q.current=f);const Z=Q.current,J=l.useRef(k);X||(J.current=k);const oe=J.current,ne=l.useRef(z);X||(ne.current=z);const re=l.useMemo(()=>{if(!v)return{...P,...b};const be=Number.parseInt(v[0],10);return{...{marginTop:v[1],insetInlineEnd:-be},...P,...b}},[v,b,P]),ce=y??(typeof Z=="string"||typeof Z=="number"?Z:void 0),fe=!X&&(c===0?w:!!c&&c!==!0),le=fe?l.createElement("span",{className:`${V}-status-text`},c):null,pe=!Z||typeof Z!="object"?void 0:or(Z,be=>({style:{...re,...be.style}})),ae=kp(d,!1),se=K(H.indicator,{[`${V}-status-dot`]:F,[`${V}-status-${s}`]:!!s,[`${V}-color-${d}`]:ae}),he={};d&&!ae&&(he.color=d,he.background=d);const ge=K(V,{[`${V}-status`]:F,[`${V}-not-a-wrapper`]:!a,[`${V}-rtl`]:N==="rtl"},$,C,O,H.root,G,Y);if(!a&&F&&(c||A||!D)){const be=re.color;return l.createElement("span",{ref:t,...E,className:ge,style:{..._.root,...re}},l.createElement("span",{className:se,style:{..._.indicator,...he}}),fe&&l.createElement("span",{style:{color:be},className:`${V}-status-text`},c))}return l.createElement("span",{ref:t,...E,className:ge,style:_.root},a,l.createElement(Sr,{visible:!X,motionName:`${V}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:be})=>{const Ne=T("scroll-number",r),ve=ne.current,xe=K(H.indicator,{[`${V}-dot`]:ve,[`${V}-count`]:!ve,[`${V}-count-sm`]:h==="small",[`${V}-multiple-words`]:!ve&&oe&&oe.toString().length>1,[`${V}-status-${s}`]:!!s,[`${V}-color-${d}`]:ae});let de={..._.indicator,...re};return d&&!ae&&(de=de||{},de.background=d),l.createElement(V9,{prefixCls:Ne,show:!X,motionClassName:be,className:xe,count:oe,title:ce,style:de,key:"scrollNumber"},pe)}),le)}),Q9=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=Tp(e,(m,{darkColor:g})=>({[`&${c}-color-${m}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Jt(e),position:"absolute",top:r,padding:`0 ${te(e.paddingXS)}`,color:e.colorPrimary,lineHeight:te(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-content`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${te(s(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(a).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(a).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},Z9=At(["Badge","Ribbon"],e=>{const t=c6(e);return Q9(t)},u6),J9=e=>{const{className:t,prefixCls:n,style:r,color:a,children:s,text:c,placement:d="end",rootClassName:f,styles:m,classNames:g}=e,{getPrefixCls:h,direction:y,className:v,style:b,classNames:$,styles:C}=zt("ribbon"),x=h("ribbon",n),R=`${x}-wrapper`,[w,E]=Z9(x,R),T={...e,placement:d},[N,O]=Ft([$,g],[C,m],{props:T}),P=kp(a,!1),B=K(x,`${x}-placement-${d}`,{[`${x}-rtl`]:y==="rtl",[`${x}-color-${a}`]:P},t,v,N.indicator),L={},V={};return a&&!P&&(L.background=a,V.color=a),l.createElement("div",{className:K(R,f,w,E,N.root),style:O.root},s,l.createElement("div",{className:K(B,w),style:{...L,...O.indicator,...b,...r}},l.createElement("span",{className:K(`${x}-content`,N.content),style:O.content},c),l.createElement("div",{className:`${x}-corner`,style:V})))},gi=K9;gi.Ribbon=J9;var e7={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"};function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}const t7=(e,t)=>l.createElement(ht,Hv({},e,{ref:t,icon:e7})),Ou=l.forwardRef(t7),{ESC:n7,TAB:r7}=it;function o7({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:a}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>a.current?.focus?(a.current.focus(),s.current=!0,!0):!1,f=m=>{switch(m.keyCode){case n7:c();break;case r7:{let g=!1;s.current||(g=d()),g?m.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Lt(d,3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const a7=l.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:a}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=ir(t,yi(s));return ie.createElement(ie.Fragment,null,r&&ie.createElement("div",{className:`${a}-arrow`}),ie.cloneElement(s,{ref:ul(s)?c:void 0}))}),ls={adjustX:1,adjustY:1},ss=[0,0],i7={topLeft:{points:["bl","tl"],overflow:ls,offset:[0,-4],targetOffset:ss},top:{points:["bc","tc"],overflow:ls,offset:[0,-4],targetOffset:ss},topRight:{points:["br","tr"],overflow:ls,offset:[0,-4],targetOffset:ss},bottomLeft:{points:["tl","bl"],overflow:ls,offset:[0,4],targetOffset:ss},bottom:{points:["tc","bc"],overflow:ls,offset:[0,4],targetOffset:ss},bottomRight:{points:["tr","br"],overflow:ls,offset:[0,4],targetOffset:ss}};function Bv(){return Bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bv.apply(this,arguments)}const d6=ie.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:a,animation:s,align:c,placement:d="bottomLeft",placements:f=i7,getPopupContainer:m,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:v,visible:b,trigger:$=["hover"],autoFocus:C,overlay:x,children:R,onVisibleChange:w,...E}=e,[T,N]=ie.useState(),O="visible"in e?b:T,P=s?`${r}-${s}`:a,B=ie.useRef(null),L=ie.useRef(null),V=ie.useRef(null);ie.useImperativeHandle(t,()=>B.current);const G=F=>{N(F),w?.(F)};o7({visible:O,triggerRef:V,onVisibleChange:G,autoFocus:C,overlayRef:L});const Y=F=>{const{onOverlayClick:A}=e;N(!1),A&&A(F)},q=()=>ie.createElement(a7,{ref:L,overlay:x,prefixCls:r,arrow:n}),H=()=>typeof x=="function"?q:q(),_=()=>{const{minOverlayWidthMatchTrigger:F,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?F:!A},j=()=>{const{openClassName:F}=e;return F!==void 0?F:`${r}-open`},I=ie.cloneElement(R,{className:K(R.props?.className,O&&j()),ref:ul(R)?ir(V,yi(R)):void 0});let D=h;return!D&&$.indexOf("contextMenu")!==-1&&(D=["click"]),ie.createElement(pd,Bv({builtinPlacements:f},E,{prefixCls:r,ref:B,popupClassName:K(y,{[`${r}-show-arrow`]:n}),popupStyle:v,action:$,showAction:g,hideAction:D,popupPlacement:d,popupAlign:c,popupMotion:{motionName:P},popupVisible:O,stretch:_()?"minWidth":"",popup:H(),onOpenChange:G,onPopupClick:Y,getPopupContainer:m}),I)}),l7=e=>typeof e!="object"&&typeof e!="function"||e===null,f6=l.createContext(null);function m6(e,t){return`${e}-${t}`}function p6(e){const t=l.useContext(f6);return m6(t,e)}const _o=l.createContext(null);function s7(e,t){const n={...e};return Object.keys(t).forEach(r=>{const a=t[r];a!==void 0&&(n[r]=a)}),n}function Nu({children:e,locked:t,...n}){const r=l.useContext(_o),a=ld(()=>s7(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!Su(s[1],c[1],!0)));return l.createElement(_o.Provider,{value:a},e)}const c7=[],g6=l.createContext(null);function Wp(){return l.useContext(g6)}const h6=l.createContext(c7);function Vs(e){const t=l.useContext(h6);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const y6=l.createContext(null),n1=l.createContext({}),{LEFT:Lv,RIGHT:Vv,UP:Fv,DOWN:Rm,ENTER:Tm,ESC:b6,HOME:Lc,END:Vc}=it,$2=[Fv,Rm,Lv,Vv];function u7(e,t,n,r){const a="prev",s="next",c="children",d="parent";if(e==="inline"&&r===Tm)return{inlineTrigger:!0};const f={[Fv]:a,[Rm]:s},m={[Lv]:n?s:a,[Vv]:n?a:s,[Rm]:c,[Tm]:c},g={[Fv]:a,[Rm]:s,[Tm]:c,[b6]:d,[Lv]:n?c:d,[Vv]:n?d:c};switch({inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case a:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function d7(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function f7(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function r1(e,t){return YS(e,!0).filter(r=>t.has(r))}function x2(e,t,n,r=1){if(!e)return null;const a=r1(e,t),s=a.length;let c=a.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,a[c]}const np=(e,t)=>{const n=new Set,r=new Map,a=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${m6(t,s)}']`);c&&(n.add(c),a.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:a}};function m7(e,t,n,r,a,s,c,d,f,m){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Lt.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),v=>{const{which:b}=v;if([...$2,Tm,b6,Lc,Vc].includes(b)){const $=s();let C=np($,r);const{elements:x,key2element:R,element2key:w}=C,E=R.get(t),T=f7(E,x),N=w.get(T),O=u7(e,c(N,!0).length===1,n,b);if(!O&&b!==Lc&&b!==Vc)return;($2.includes(b)||[Lc,Vc].includes(b))&&v.preventDefault();const P=B=>{if(B){let L=B;const V=B.querySelector("a");V?.getAttribute("href")&&(L=V);const G=w.get(B);d(G),y(),g.current=Lt(()=>{h.current===G&&L.focus()})}};if([Lc,Vc].includes(b)||O.sibling||!T){let B;!T||e==="inline"?B=a.current:B=d7(T);let L;const V=r1(B,x);b===Lc?L=V[0]:b===Vc?L=V[V.length-1]:L=x2(B,x,T,O.offset),P(L)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=Lt(()=>{C=np($,r);const B=T.getAttribute("aria-controls"),L=document.getElementById(B),V=x2(L,C.elements);P(V)},5);else if(O.offset<0){const B=c(N,!0),L=B[B.length-2],V=R.get(L);f(L,!1),P(V)}}m?.(v)}}function p7(e){Promise.resolve().then(e)}const o1="__RC_UTIL_PATH_SPLIT__",w2=e=>e.join(o1),g7=e=>e.split(o1),kv="rc-menu-more";function h7(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,a]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback(($,C)=>{const x=w2(C);n.current.set(x,$),t.current.set($,x),s.current+=1;const R=s.current;p7(()=>{R===s.current&&d()})},[]),m=l.useCallback(($,C)=>{const x=w2(C);n.current.delete(x),t.current.delete($)},[]),g=l.useCallback($=>{a($)},[]),h=l.useCallback(($,C)=>{const x=t.current.get($)||"",R=g7(x);return C&&r.includes(R[0])&&R.unshift(kv),R},[r]),y=l.useCallback(($,C)=>$.filter(x=>x!==void 0).some(x=>h(x,!0).includes(C)),[h]),v=()=>{const $=[...t.current.keys()];return r.length&&$.push(kv),$},b=l.useCallback($=>{const C=`${t.current.get($)}${o1}`,x=new Set;return[...n.current.keys()].forEach(R=>{R.startsWith(C)&&x.add(n.current.get(R))}),x},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:m,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:v,getSubPathKeys:b}}function tu(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function v6(e,t,n,r){const{activeKey:a,onActive:s,onInactive:c}=l.useContext(_o),d={active:a===e};return t||(d.onMouseEnter=f=>{n?.({key:e,domEvent:f}),s(e)},d.onMouseLeave=f=>{r?.({key:e,domEvent:f}),c(e)}),d}function S6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(_o);if(t!=="inline")return null;const a=e;return n?{paddingRight:a*r}:{paddingLeft:a*r}}function C6({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=l.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function rp({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(rr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(this,arguments)}class y7 extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...a}=this.props,s=nn(a,["eventKey","popupClassName","popupOffset","onTitleClick"]);return rr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Ko.Item,Iu({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const b7=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:a,warnKey:s,disabled:c,itemIcon:d,children:f,role:m,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:v,onFocus:b,...$}=e,C=p6(a),{prefixCls:x,onItemClick:R,disabled:w,overflowDisabled:E,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(_o),{_internalRenderMenuItem:P}=l.useContext(n1),B=`${x}-item`,L=l.useRef(),V=l.useRef(),G=w||c,Y=Ta(t,V),q=Vs(a),H=Z=>({key:a,keyPath:[...q].reverse(),item:L.current,domEvent:Z}),_=d||T,{active:j,...I}=v6(a,G,g,h),D=N.includes(a),F=S6(q.length),A=Z=>{if(G)return;const J=H(Z);y?.(rp(J)),R(J)},z=Z=>{if(v?.(Z),Z.which===it.ENTER){const J=H(Z);y?.(rp(J)),R(J)}},k=Z=>{O(a),b?.(Z)},X={};e.role==="option"&&(X["aria-selected"]=D);let Q=l.createElement(y7,Iu({ref:L,elementRef:Y,role:m===null?"none":m||"menuitem",tabIndex:c?null:-1,"data-menu-id":E&&C?null:C},nn($,["extra"]),I,X,{component:"li","aria-disabled":c,style:{...F,...n},className:K(B,{[`${B}-active`]:j,[`${B}-selected`]:D,[`${B}-disabled`]:G},r),onClick:A,onKeyDown:z,onFocus:k}),f,l.createElement(C6,{props:{...e,isSelected:D},icon:_}));return P&&(Q=P(Q,e,{selected:D})),Q});function v7(e,t){const{eventKey:n}=e,r=Wp(),a=Vs(n);return l.useEffect(()=>{if(r)return r.registerPath(n,a),()=>{r.unregisterPath(n,a)}},[a]),r?null:l.createElement(b7,Iu({},e,{ref:t}))}const Ed=l.forwardRef(v7);function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wv.apply(this,arguments)}const S7=({className:e,children:t,...n},r)=>{const{prefixCls:a,mode:s,rtl:c}=l.useContext(_o);return l.createElement("ul",Wv({className:K(a,c&&`${a}-rtl`,`${a}-sub`,`${a}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},$6=l.forwardRef(S7);function a1(e,t){return mr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:a}=n;let s=n.props?.eventKey??a;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}const Mr={adjustX:1,adjustY:1},C7={topLeft:{points:["bl","tl"],overflow:Mr},topRight:{points:["br","tr"],overflow:Mr},bottomLeft:{points:["tl","bl"],overflow:Mr},bottomRight:{points:["tr","br"],overflow:Mr},leftTop:{points:["tr","tl"],overflow:Mr},leftBottom:{points:["br","bl"],overflow:Mr},rightTop:{points:["tl","tr"],overflow:Mr},rightBottom:{points:["bl","br"],overflow:Mr}},$7={topLeft:{points:["bl","tl"],overflow:Mr},topRight:{points:["br","tr"],overflow:Mr},bottomLeft:{points:["tl","bl"],overflow:Mr},bottomRight:{points:["tr","br"],overflow:Mr},rightTop:{points:["tr","tl"],overflow:Mr},rightBottom:{points:["br","bl"],overflow:Mr},leftTop:{points:["tl","tr"],overflow:Mr},leftBottom:{points:["bl","br"],overflow:Mr}};function x6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const x7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function w7({prefixCls:e,visible:t,children:n,popup:r,popupStyle:a,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:m}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:v,builtinPlacements:b,triggerSubMenuAction:$,forceSubMenuRender:C,rootClassName:x,motion:R,defaultMotions:w}=l.useContext(_o),[E,T]=l.useState(!1),N=h?{...$7,...b}:{...C7,...b},O=x7[f],P=x6(f,R,w),B=l.useRef(P);f!=="inline"&&(B.current=P);const L={...B.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},V=l.useRef();return l.useEffect(()=>(V.current=Lt(()=>{T(t)}),()=>{Lt.cancel(V.current)}),[t]),l.createElement(pd,{prefixCls:e,popupClassName:K(`${e}-popup`,{[`${e}-rtl`]:h},s,x),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:O,popupVisible:E,popup:r,popupStyle:a,popupAlign:c&&{offset:c},action:d?[]:[$],mouseEnterDelay:y,mouseLeaveDelay:v,onPopupVisibleChange:m,forceRender:C,popupMotion:L,fresh:!0},n)}function qv(){return qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qv.apply(this,arguments)}function E7({id:e,open:t,keyPath:n,children:r}){const a="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:m}=l.useContext(_o),g=l.useRef(!1);g.current=m===a;const[h,y]=l.useState(!g.current),v=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[m]);const b={...x6(a,d,f)};n.length>1&&(b.motionAppear=!1);const $=b.onVisibleChanged;return b.onVisibleChanged=C=>(!g.current&&!C&&y(!0),$?.(C)),h?null:l.createElement(Nu,{mode:a,locked:!g.current},l.createElement(Sr,qv({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:C,style:x})=>l.createElement($6,{id:e,className:C,style:x},r)))}function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pu.apply(this,arguments)}const M7=l.forwardRef((e,t)=>{const{style:n,className:r,styles:a,classNames:s,title:c,eventKey:d,warnKey:f,disabled:m,internalPopupClose:g,children:h,itemIcon:y,expandIcon:v,popupClassName:b,popupOffset:$,popupStyle:C,onClick:x,onMouseEnter:R,onMouseLeave:w,onTitleClick:E,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...P}=e,B=p6(d),{prefixCls:L,mode:V,openKeys:G,disabled:Y,overflowDisabled:q,activeKey:H,selectedKeys:_,itemIcon:j,expandIcon:I,onItemClick:D,onOpenChange:F,onActive:A,popupRender:z}=l.useContext(_o),{_internalRenderSubMenuItem:k}=l.useContext(n1),{isSubPathKey:X}=l.useContext(y6),Q=Vs(),Z=`${L}-submenu`,J=Y||m,oe=l.useRef(),ne=l.useRef(),re=y??j,ce=v??I,fe=G.includes(d),le=!q&&fe,pe=X(_,d),{active:ae,...se}=v6(d,J,T,N),[he,ge]=l.useState(!1),be=Ce=>{J||ge(Ce)},Ne=Ce=>{be(!0),R?.({key:d,domEvent:Ce})},ve=Ce=>{be(!1),w?.({key:d,domEvent:Ce})},xe=l.useMemo(()=>ae||(V!=="inline"?he||X([H],d):!1),[V,ae,H,he,d,X]),de=S6(Q.length),Se=Ce=>{J||(E?.({key:d,domEvent:Ce}),V==="inline"&&F(d,!fe))},Me=tu(Ce=>{x?.(rp(Ce)),D(Ce)}),Ae=Ce=>{V!=="inline"&&F(d,Ce)},Ie=()=>{A(d)},Ye=B&&`${B}-popup`,Ze=l.useMemo(()=>l.createElement(C6,{icon:V!=="horizontal"?ce:void 0,props:{...e,isOpen:le,isSubMenu:!0}},l.createElement("i",{className:`${Z}-arrow`})),[V,ce,e,le,Z]);let He=l.createElement("div",Pu({role:"menuitem",style:de,className:`${Z}-title`,tabIndex:J?null:-1,ref:oe,title:typeof c=="string"?c:null,"data-menu-id":q&&B?null:B,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":J,onClick:Se,onFocus:Ie},se),c,Ze);const Ve=l.useRef(V);V!=="inline"&&Q.length>1?Ve.current="vertical":Ve.current=V;const _e=Ve.current,Ue=l.useMemo(()=>{const Ce=l.createElement(Nu,{classNames:s,styles:a,mode:_e==="horizontal"?"vertical":_e},l.createElement($6,{id:Ye,ref:ne},h)),Fe=O||z;return Fe?Fe(Ce,{item:e,keys:Q}):Ce},[O,z,Q,Ye,h,e,_e]);if(!q){const Ce=Ve.current;He=l.createElement(w7,{mode:Ce,prefixCls:Z,visible:!g&&le&&V!=="inline",popupClassName:b,popupOffset:$,popupStyle:C,popup:Ue,disabled:J,onVisibleChange:Ae},He)}let Pe=l.createElement(Ko.Item,Pu({ref:t,role:"none"},P,{component:"li",style:n,className:K(Z,`${Z}-${V}`,r,{[`${Z}-open`]:le,[`${Z}-active`]:xe,[`${Z}-selected`]:pe,[`${Z}-disabled`]:J}),onMouseEnter:Ne,onMouseLeave:ve}),He,!q&&l.createElement(E7,{id:Ye,open:le,keyPath:Q},h));return k&&(Pe=k(Pe,e,{selected:pe,active:xe,open:le,disabled:J})),l.createElement(Nu,{classNames:s,styles:a,onItemClick:Me,mode:V==="horizontal"?"vertical":V,itemIcon:re,expandIcon:ce},Pe)}),qp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=Vs(n),s=a1(r,a),c=Wp();l.useEffect(()=>{if(c)return c.registerPath(n,a),()=>{c.unregisterPath(n,a)}},[a]);let d;return c?d=s:d=l.createElement(M7,Pu({ref:t},e),s),l.createElement(h6.Provider,{value:a},d)});function i1({className:e,style:t}){const{prefixCls:n}=l.useContext(_o);return Wp()?null:l.createElement("li",{role:"separator",className:K(`${n}-item-divider`,e),style:t})}function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(this,arguments)}const R7=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:a,children:s,...c}=e,{prefixCls:d,classNames:f,styles:m}=l.useContext(_o),g=`${d}-item-group`;return l.createElement("li",op({ref:t,role:"presentation"},c,{onClick:h=>h.stopPropagation(),className:K(g,n)}),l.createElement("div",{role:"presentation",className:K(`${g}-title`,f?.listTitle),style:m?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:K(`${g}-list`,f?.list),style:m?.list},s))}),l1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=Vs(n),s=a1(r,a);return Wp()?s:l.createElement(R7,op({ref:t},nn(e,["warnKey"])),s)});function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hs.apply(this,arguments)}function Yv(e,t,n){const{item:r,group:a,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:m,children:g,key:h,type:y,extra:v,...b}=d,$=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(a,hs({key:$},b,{title:m}),Yv(g,t,n)):l.createElement(s,hs({key:$},b,{title:m}),Yv(g,t,n)):y==="divider"?l.createElement(c,hs({key:$},b)):l.createElement(r,hs({key:$},b,{extra:v}),m,(!!v||v===0)&&l.createElement("span",{className:`${n}-item-extra`},v))}return null}).filter(d=>d)}function E2(e,t,n,r,a){let s=e;const c={divider:i1,item:Ed,group:l1,submenu:qp,...r};return t&&(s=Yv(t,c,a)),a1(s,n)}function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}const Hi=[],T7=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:a,className:s,styles:c,classNames:d,tabIndex:f=0,items:m,children:g,direction:h,id:y,mode:v="vertical",inlineCollapsed:b,disabled:$,disabledOverflow:C,subMenuOpenDelay:x=.1,subMenuCloseDelay:R=.1,forceSubMenuRender:w,defaultOpenKeys:E,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:P=!0,multiple:B=!1,defaultSelectedKeys:L,selectedKeys:V,onSelect:G,onDeselect:Y,inlineIndent:q=24,motion:H,defaultMotions:_,triggerSubMenuAction:j="hover",builtinPlacements:I,itemIcon:D,expandIcon:F,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:z,getPopupContainer:k,onClick:X,onOpenChange:Q,onKeyDown:Z,openAnimation:J,openTransitionName:oe,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re,_internalComponents:ce,popupRender:fe,...le}=e,[pe,ae]=l.useMemo(()=>[E2(g,m,Hi,ce,n),E2(g,m,Hi,{},n)],[g,m,ce]),[se,he]=l.useState(!1),ge=l.useRef(),be=Jo(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ne=h==="rtl",[ve,xe]=Yt(E,T),de=ve||Hi,Se=(pt,tt=!1)=>{function mt(){xe(pt),Q?.(pt)}tt?al.flushSync(mt):mt()},[Me,Ae]=l.useState(de),Ie=l.useRef(!1),[Ye,Ze]=l.useMemo(()=>(v==="inline"||v==="vertical")&&b?["vertical",b]:[v,!1],[v,b]),He=Ye==="inline",[Ve,_e]=l.useState(Ye),[Ue,Pe]=l.useState(Ze);l.useEffect(()=>{_e(Ye),Pe(Ze),Ie.current&&(He?xe(Me):Se(Hi))},[Ye,Ze]);const[Ce,Fe]=l.useState(0),Je=Ce>=pe.length-1||Ve!=="horizontal"||C;l.useEffect(()=>{He&&Ae(de)},[de]),l.useEffect(()=>(Ie.current=!0,()=>{Ie.current=!1}),[]);const{registerPath:Be,unregisterPath:Xe,refreshOverflowKeys:Oe,isSubPathKey:Ke,getKeyPath:nt,getKeys:ot,getSubPathKeys:lt}=h7(),Ct=l.useMemo(()=>({registerPath:Be,unregisterPath:Xe}),[Be,Xe]),$t=l.useMemo(()=>({isSubPathKey:Ke}),[Ke]);l.useEffect(()=>{Oe(Je?Hi:pe.slice(Ce+1).map(pt=>pt.key))},[Ce,Je]);const[ke,et]=Yt(N||O&&pe[0]?.key,N),De=tu(pt=>{et(pt)}),ze=tu(()=>{et(void 0)});l.useImperativeHandle(t,()=>({list:ge.current,focus:pt=>{const tt=ot(),{elements:mt,key2element:Ot,element2key:Ut}=np(tt,be),rn=r1(ge.current,mt);let Gt;ke&&tt.includes(ke)?Gt=ke:Gt=rn[0]?Ut.get(rn[0]):pe.find(pn=>!pn.props.disabled)?.key;const cn=Ot.get(Gt);Gt&&cn&&cn?.focus?.(pt)},findItem:({key:pt})=>{const tt=ot(),{key2element:mt}=np(tt,be);return mt.get(pt)||null}}));const[We,Re]=Yt(L||[],V),Ge=l.useMemo(()=>Array.isArray(We)?We:We==null?Hi:[We],[We]),Qe=pt=>{if(P){const{key:tt}=pt,mt=Ge.includes(tt);let Ot;B?mt?Ot=Ge.filter(rn=>rn!==tt):Ot=[...Ge,tt]:Ot=[tt],Re(Ot);const Ut={...pt,selectedKeys:Ot};mt?Y?.(Ut):G?.(Ut)}!B&&de.length&&Ve!=="inline"&&Se(Hi)},at=tu(pt=>{X?.(rp(pt)),Qe(pt)}),ut=tu((pt,tt)=>{let mt=de.filter(Ot=>Ot!==pt);if(tt)mt.push(pt);else if(Ve!=="inline"){const Ot=lt(pt);mt=mt.filter(Ut=>!Ot.has(Ut))}Su(de,mt,!0)||Se(mt,!0)}),Rt=m7(Ve,ke,Ne,be,ge,ot,nt,et,(pt,tt)=>{const mt=tt??!de.includes(pt);ut(pt,mt)},Z);l.useEffect(()=>{he(!0)},[]);const Et=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re}),[ne,re]),mn=Ve!=="horizontal"||C?pe:pe.map((pt,tt)=>l.createElement(Nu,{key:pt.key,overflowDisabled:tt>Ce,classNames:d,styles:c},pt)),Tt=l.createElement(Ko,Uv({id:y,ref:ge,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Ed,className:K(n,`${n}-root`,`${n}-${Ve}`,s,{[`${n}-inline-collapsed`]:Ue,[`${n}-rtl`]:Ne},r),dir:h,style:a,role:"menu",tabIndex:f,data:mn,renderRawItem:pt=>pt,renderRawRest:pt=>{const tt=pt.length,mt=tt?pe.slice(-tt):null;return l.createElement(qp,{eventKey:kv,title:A,disabled:Je,internalPopupClose:tt===0,popupClassName:z},mt)},maxCount:Ve!=="horizontal"||C?Ko.INVALIDATE:Ko.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:pt=>{Fe(pt)},onKeyDown:Rt},le));return l.createElement(n1.Provider,{value:Et},l.createElement(f6.Provider,{value:be},l.createElement(Nu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:Ve,openKeys:de,rtl:Ne,disabled:$,motion:se?H:null,defaultMotions:se?_:null,activeKey:ke,onActive:De,onInactive:ze,selectedKeys:Ge,inlineIndent:q,subMenuOpenDelay:x,subMenuCloseDelay:R,forceSubMenuRender:w,builtinPlacements:I,triggerSubMenuAction:j,getPopupContainer:k,itemIcon:D,expandIcon:F,onItemClick:at,onOpenChange:ut,popupRender:fe},l.createElement(y6.Provider,{value:$t},Tt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(g6.Provider,{value:Ct},ae)))))}),Fs=T7;Fs.Item=Ed;Fs.SubMenu=qp;Fs.ItemGroup=l1;Fs.Divider=i1;var O7={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gv.apply(this,arguments)}const N7=(e,t)=>l.createElement(ht,Gv({},e,{ref:t,icon:O7})),I7=l.forwardRef(N7),w6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),P7=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:m,bodyBg:g,headerBg:h}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:s,padding:c,color:d,lineHeight:te(s),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:m,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},E6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:a,footerPadding:`${s}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:a}},M6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],R6=At("Layout",P7,E6,{deprecatedTokens:M6}),z7=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:m,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:v,lightTriggerColor:b,lightTriggerBg:$,bodyBg:C}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:te(c),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:h,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(y)} ${te(y)} 0`,cursor:"pointer",transition:`background-color ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${te(y)} 0 0 ${te(y)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:b,background:$},[`${t}-zero-width-trigger`]:{color:b,background:$,border:`1px solid ${C}`,borderInlineStart:0}}}}},A7=At(["Layout","Sider"],z7,E6,{deprecatedTokens:M6}),M2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},D7=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Yp=l.createContext({}),j7=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),T6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:m=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:v,breakpoint:b,onCollapse:$,onBreakpoint:C,...x}=e,{siderHook:R}=l.useContext(w6),[w,E]=l.useState("collapsed"in e?e.collapsed:c),[T,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const O=(J,oe)=>{"collapsed"in e||E(J),$?.(J,oe)},{getPrefixCls:P,direction:B}=l.useContext(ft),L=P("layout-sider",n),[V,G]=A7(L),Y=l.useRef(null);Y.current=J=>{N(J.matches),C?.(J.matches),w!==J.matches&&O(J.matches,"responsive")},l.useEffect(()=>{function J(ne){return Y.current?.(ne)}let oe;return typeof window?.matchMedia<"u"&&b&&b in M2&&(oe=window.matchMedia(`screen and (max-width: ${M2[b]})`),typeof oe?.addEventListener=="function"&&oe.addEventListener("change",J),J(oe)),()=>{typeof oe?.removeEventListener=="function"&&oe.removeEventListener("change",J)}},[b]),l.useEffect(()=>{const J=j7("ant-sider-");return R.addSider(J),()=>R.removeSider(J)},[]);const q=()=>{O(!w,"clickTrigger")},H=nn(x,["collapsed"]),_=w?y:h,j=D7(_)?`${_}px`:String(_),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:q,className:K(`${L}-zero-width-trigger`,`${L}-zero-width-trigger-${g?"right":"left"}`),style:v},a||l.createElement(I7,null)):null,D=B==="rtl"==!g,z={expanded:D?l.createElement(Ts,null):l.createElement(Ou,null),collapsed:D?l.createElement(Ou,null):l.createElement(Ts,null)}[w?"collapsed":"expanded"],k=a!==null?I||l.createElement("div",{className:`${L}-trigger`,onClick:q,style:{width:j}},a||z):null,X={...f,flex:`0 0 ${j}`,maxWidth:j,minWidth:j,width:j},Q=K(L,`${L}-${d}`,{[`${L}-collapsed`]:!!w,[`${L}-has-trigger`]:m&&a!==null&&!I,[`${L}-below`]:!!T,[`${L}-zero-width`]:Number.parseFloat(j)===0},r,V,G),Z=l.useMemo(()=>({siderCollapsed:w}),[w]);return l.createElement(Yp.Provider,{value:Z},l.createElement("aside",{className:Q,...H,style:X,ref:t},l.createElement("div",{className:`${L}-children`},s),m||T&&I?k:null))});var _7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xv.apply(this,arguments)}const H7=(e,t)=>l.createElement(ht,Xv({},e,{ref:t,icon:_7})),s1=l.forwardRef(H7),ap=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),O6=e=>{const{prefixCls:t,className:n,dashed:r,...a}=e,{getPrefixCls:s}=l.useContext(ft),c=s("menu",t),d=K({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(i1,{className:d,...a})},N6=e=>{const{className:t,children:n,icon:r,title:a,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:m,disableMenuItemTitleTooltip:g,inlineCollapsed:h,styles:y,classNames:v}=l.useContext(ap),b=E=>{const T=n?.[0],N=l.createElement("span",{className:K(`${d}-title-content`,f?v?.itemContent:v?.subMenu?.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:f?y?.itemContent:y?.subMenu?.itemContent},n);return(!r||l.isValidElement(n)&&n.type==="span")&&n&&E&&f&&typeof T=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},T.charAt(0)):N},{siderCollapsed:$}=l.useContext(Yp);let C=a;typeof a>"u"?C=f?n:"":a===!1&&(C="");const x={title:C};!$&&!h&&(x.title=null,x.open=!1);const R=mr(n).length;let w=l.createElement(Ed,{...nn(e,["title","icon","danger"]),className:K(f?v?.item:v?.subMenu?.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?R+1:R)===1},t),style:{...f?y?.item:y?.subMenu?.item,...e.style},title:typeof a=="string"?a:void 0},or(r,E=>({className:K(`${d}-item-icon`,f?v?.itemIcon:v?.subMenu?.itemIcon,E.className),style:{...f?y?.itemIcon:y?.subMenu?.itemIcon,...E.style}})),b(h));return g||(w=l.createElement(fr,{...x,placement:m==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},w)),w},ip=l.createContext(null),B7=l.forwardRef((e,t)=>{const{children:n,...r}=e,a=l.useContext(ip),s=l.useMemo(()=>({...a,...r}),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=oz(n),d=Ta(t,c?yi(n):null);return l.createElement(ip.Provider,{value:s},l.createElement(Ea,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),L7=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${t}-item:hover,
|
|
192
|
+
> ${t}-item-active,
|
|
193
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background-color ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},V7=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
194
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(t)})`}}}}),R2=e=>jo(e),T2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:s,groupTitleColor:c,itemBg:d,subMenuItemBg:f,itemSelectedBg:m,activeBarHeight:g,activeBarWidth:h,activeBarBorderWidth:y,motionDurationSlow:v,motionEaseInOut:b,motionEaseOut:$,itemPaddingInline:C,motionDurationMid:x,itemHoverColor:R,lineType:w,colorSplit:E,itemDisabledColor:T,dangerItemColor:N,dangerItemHoverColor:O,dangerItemSelectedColor:P,dangerItemActiveBg:B,dangerItemSelectedBg:L,popupBg:V,itemHoverBg:G,itemActiveBg:Y,menuSubMenuBg:q,horizontalItemSelectedColor:H,horizontalItemSelectedBg:_,horizontalItemBorderRadius:j,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...R2(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...R2(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:R}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:G},"&:active":{backgroundColor:Y}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:G},"&:active":{backgroundColor:Y}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:B}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:m,[`&${n}-item-danger`]:{backgroundColor:L}},[`&${n}-submenu > ${n}`]:{backgroundColor:q},[`&${n}-popup > ${n}`]:{backgroundColor:V},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:V},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${v} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:H}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${w} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(h)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${$}`,`opacity ${x} ${$}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${b}`,`opacity ${x} ${b}`].join(",")}}}}}},O2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:s,marginXS:c,itemMarginBlock:d,itemWidth:f,itemPaddingInline:m}=e,g=e.calc(s).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:d,width:f},[`> ${t}-item,
|
|
195
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
196
|
+
${t}-submenu-title`]:{paddingInlineEnd:g}}},F7=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:s,controlHeightLG:c,motionEaseOut:d,paddingXL:f,itemMarginInline:m,fontSizeLG:g,motionDurationFast:h,motionDurationSlow:y,paddingXS:v,boxShadowSecondary:b,collapsedWidth:$,collapsedIconSize:C}=e,x={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...O2(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...O2(e),boxShadow:b}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${te(e.calc(c).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${y}`,`background-color ${y}`,`padding ${h} ${d}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:x,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:x}},{[`${t}-inline-collapsed`]:{width:$,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:g,textAlign:"center"}}},[`> ${t}-item,
|
|
197
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
198
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
199
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${te(e.calc(C).div(2).equal())} - ${te(m)})`,textOverflow:"clip",[`
|
|
200
|
+
${t}-submenu-arrow,
|
|
201
|
+
${t}-submenu-expand-icon
|
|
202
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,lineHeight:te(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:{...xo,paddingInline:v}}}]},N2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:s,iconCls:c,iconSize:d,iconMarginInlineEnd:f}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${r} ${s}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Ds()},[`&${t}-item-only-child`]:{[`> ${c}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},I2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:s,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background-color ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${te(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(c)})`}}}}},k7=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:s,motionEaseInOut:c,paddingXS:d,padding:f,colorSplit:m,lineWidth:g,zIndexPopup:h,borderRadiusLG:y,subMenuItemBorderRadius:v,menuArrowSize:b,menuArrowOffset:$,lineType:C,groupTitleLineHeight:x,groupTitleFontSize:R}=e;return[{"":{[n]:{...ol(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Jt(e),...ol(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${te(d)} ${te(f)}`,fontSize:R,lineHeight:x,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${c}`,`background-color ${a} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${c}`,`background-color ${a} ${c}`,`padding ${s} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background-color ${a} ${c}`,`padding ${a} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:C,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...N2(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${te(e.calc(r).mul(2).equal())} ${te(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:y,...N2(e),...I2(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...I2(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
|
203
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te($)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc($).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc($).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te($)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},W7=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:v,controlHeightLG:b,lineHeight:$,colorBgElevated:C,marginXXS:x,padding:R,fontSize:w,controlHeightSM:E,fontSizeLG:T,colorTextLightSolid:N,colorErrorHover:O}=e,P=e.activeBarWidth??0,B=e.activeBarBorderWidth??g,L=e.itemMarginInline??e.marginXXS,V=new tn(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:B,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:$,collapsedWidth:b*2,popupBg:C,itemMarginBlock:x,itemPaddingInline:R,horizontalLineHeight:`${b*1.15}px`,iconSize:w,iconMarginInlineEnd:E-w,collapsedIconSize:T,groupTitleFontSize:w,darkItemDisabledColor:new tn(N).setA(.25).toRgbString(),darkItemColor:V,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:V,darkItemHoverColor:N,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${B}px)`:`calc(100% - ${L*2}px)`}},q7=(e,t=e,n=!0)=>At("Menu",a=>{const{colorBgElevated:s,controlHeightLG:c,fontSize:d,darkItemColor:f,darkDangerItemColor:m,darkItemBg:g,darkSubMenuItemBg:h,darkItemSelectedColor:y,darkItemSelectedBg:v,darkDangerItemSelectedBg:b,darkItemHoverBg:$,darkGroupTitleColor:C,darkItemHoverColor:x,darkItemDisabledColor:R,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:T,popupBg:N,darkPopupBg:O}=a,P=a.calc(d).div(7).mul(5).equal(),B=It(a,{menuArrowSize:P,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(P).mul(.25).equal(),menuSubMenuBg:s,calc:a.calc,popupBg:N}),L=It(B,{itemColor:f,itemHoverColor:x,groupTitleColor:C,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:O,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:$,itemDisabledColor:R,dangerItemColor:m,dangerItemHoverColor:w,dangerItemSelectedColor:E,dangerItemActiveBg:T,dangerItemSelectedBg:b,menuSubMenuBg:h,horizontalItemSelectedColor:y,horizontalItemSelectedBg:v});return[k7(B),L7(B),F7(B),T2(B,"light"),T2(L,"dark"),V7(B),ZT(B),Zo(B,"slide-up"),Zo(B,"slide-down"),yd(B,"zoom-big")]},W7,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),I6=e=>{const{popupClassName:t,icon:n,title:r,theme:a}=e,s=l.useContext(ap),{prefixCls:c,inlineCollapsed:d,theme:f,classNames:m,styles:g}=s,h=Vs();let y;if(!n)y=d&&!h.length&&r&&typeof r=="string"?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},r.charAt(0)):l.createElement("span",{className:`${c}-title-content`},r);else{const $=l.isValidElement(r)&&r.type==="span";y=l.createElement(l.Fragment,null,or(n,C=>({className:K(C.className,`${c}-item-icon`,m?.itemIcon),style:{...C.style,...g?.itemIcon}})),$?r:l.createElement("span",{className:`${c}-title-content`},r))}const v=l.useMemo(()=>({...s,firstLevel:!1}),[s]),[b]=bi("Menu");return l.createElement(ap.Provider,{value:v},l.createElement(qp,{...nn(e,["icon"]),title:y,classNames:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},styles:{list:g?.subMenu?.list,listTitle:g?.subMenu?.itemTitle},popupClassName:K(c,t,m?.popup?.root,`${c}-${a||f}`),popupStyle:{zIndex:b,...e.popupStyle,...g?.popup?.root}}))};function Wy(e){return e===null||e===!1}const Y7={item:N6,submenu:I6,divider:O6},U7=l.forwardRef((e,t)=>{const n=l.useContext(ip),r=n||{},{prefixCls:a,className:s,style:c,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:g,siderCollapsed:h,rootClassName:y,mode:v,selectable:b,onClick:$,overflowedIndicatorPopupClassName:C,classNames:x,styles:R,...w}=e,{menu:E}=l.useContext(ft),{getPrefixCls:T,getPopupContainer:N,direction:O,className:P,style:B,classNames:L,styles:V}=zt("menu"),G=T(),Y=nn(w,["collapsedWidth"]);r.validator?.({mode:v});const q=ct((...ne)=>{$?.(...ne),r.onClick?.()}),H=r.mode||v,_=b??r.selectable,j=g??h,I={...e,mode:H,inlineCollapsed:j,selectable:_,theme:d},[D,F]=Ft([L,x],[V,R],{props:I},{popup:{_default:"root"},subMenu:{_default:"item"}}),A={horizontal:{motionName:`${G}-slide-up`},inline:YT(G),other:{motionName:`${G}-zoom-big`}},z=T("menu",a||r.prefixCls),k=lr(z),[X,Q]=q7(z,k,!n),Z=K(`${z}-${d}`,P,s),J=l.useMemo(()=>{if(typeof f=="function"||Wy(f))return f||null;if(typeof r.expandIcon=="function"||Wy(r.expandIcon))return r.expandIcon||null;if(typeof E?.expandIcon=="function"||Wy(E?.expandIcon))return E?.expandIcon||null;const ne=f??r?.expandIcon??E?.expandIcon;return or(ne,{className:K(`${z}-submenu-expand-icon`,l.isValidElement(ne)?ne.props?.className:void 0)})},[f,r?.expandIcon,E?.expandIcon,z]),oe=l.useMemo(()=>({prefixCls:z,inlineCollapsed:j||!1,direction:O,firstLevel:!0,theme:d,mode:H,disableMenuItemTitleTooltip:m,classNames:D,styles:F}),[z,j,O,m,d,H,D,F]);return l.createElement(ip.Provider,{value:null},l.createElement(ap.Provider,{value:oe},l.createElement(Fs,{getPopupContainer:N,overflowedIndicator:l.createElement(s1,null),overflowedIndicatorPopupClassName:K(z,`${z}-${d}`,C),classNames:{list:D.list,listTitle:D.itemTitle},styles:{list:F.list,listTitle:F.itemTitle},mode:H,selectable:_,onClick:q,...Y,inlineCollapsed:j,style:{...F.root,...B,...c},className:Z,prefixCls:z,direction:O,defaultMotions:A,expandIcon:J,ref:t,rootClassName:K(y,X,r.rootClassName,Q,k,D.root),_internalComponents:Y7})))}),Md=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Yp);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{n.current?.focus(a)}})),l.createElement(U7,{ref:n,...e,...r})});Md.Item=N6;Md.SubMenu=I6;Md.Divider=O6;Md.ItemGroup=l1;const G7=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},X7=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:s,antCls:c,iconCls:d,motionDurationMid:f,paddingBlock:m,fontSize:g,dropdownEdgeChildPadding:h,colorTextDisabled:y,fontSizeIcon:v,controlPaddingHorizontal:b,colorBgElevated:$}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:v},[`${d}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
204
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
205
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
|
|
206
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
|
|
207
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
|
|
208
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ap},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
|
|
209
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
|
|
210
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
|
|
211
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
|
|
212
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
|
|
213
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:jp},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
214
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
215
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Dp},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
216
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
217
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_p}}},e1(e,$,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Jt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:$,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...wo(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(m)} ${te(b)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${te(m)} ${te(b)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...wo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:$,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:v,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:$,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Zo(e,"slide-up"),Zo(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down"),yd(e,"zoom-big")]]},K7=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Fp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Vp(e)}),Q7=At("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,s=It(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[X7(s),G7(s)]},K7,{resetStyle:!1}),Up=e=>{const{menu:t,arrow:n,prefixCls:r,children:a,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:m,overlayClassName:g,rootClassName:h,overlayStyle:y,open:v,onOpenChange:b,mouseEnterDelay:$=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:x=!0,placement:R="",transitionName:w,classNames:E,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:P,direction:B,getPopupContainer:L,className:V,style:G,classNames:Y,styles:q}=zt("dropdown"),H={...e,mouseEnterDelay:$,mouseLeaveDelay:C,autoAdjustOverflow:x},[_,j]=Ft([Y,E],[q,T],{props:H}),I={...G,...y,...j.root},D=f||d,F=l.useMemo(()=>{const ve=P();return w!==void 0?w:R.includes("top")?`${ve}-slide-down`:`${ve}-slide-up`},[P,R,w]),A=l.useMemo(()=>R?R.includes("Center")?R.slice(0,R.indexOf("Center")):R:B==="rtl"?"bottomRight":"bottomLeft",[R,B]),z=P("dropdown",r),k=lr(z),[X,Q]=Q7(z,k),[,Z]=qr(),J=l.Children.only(l7(a)?l.createElement("span",null,a):a),oe=or(J,{className:K(`${z}-trigger`,{[`${z}-rtl`]:B==="rtl"},J.props.className),disabled:J.props.disabled??c}),ne=c?[]:s,re=!!ne?.includes("contextMenu"),[ce,fe]=Yt(!1,v),le=ct(ve=>{b?.(ve,{source:"trigger"}),fe(ve)}),pe=K(g,h,X,Q,k,V,_.root,{[`${z}-rtl`]:B==="rtl"}),ae=n6({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:x,offset:Z.marginXXS,arrowWidth:n?Z.sizePopupArrow:0,borderRadius:Z.borderRadius}),se=ct(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),fe(!1))}),he=()=>{const ve=nn(_,["root"]),xe=nn(j,["root"]);let de;return t?.items&&(de=l.createElement(Md,{...t,classNames:{...ve,subMenu:{...ve}},styles:{...xe,subMenu:{...xe}}})),D&&(de=D(de)),de=l.Children.only(typeof de=="string"?l.createElement("span",null,de):de),l.createElement(B7,{prefixCls:`${z}-menu`,rootClassName:K(Q,k),expandIcon:l.createElement("span",{className:`${z}-menu-submenu-arrow`},B==="rtl"?l.createElement(Ou,{className:`${z}-menu-submenu-arrow-icon`}):l.createElement(Ts,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:({mode:Se})=>{}},de)},[ge,be]=bi("Dropdown",I.zIndex);let Ne=l.createElement(d6,{alignPoint:re,...nn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:C,visible:ce,builtinPlacements:ae,arrow:!!n,overlayClassName:pe,prefixCls:z,getPopupContainer:m||L,transitionName:F,trigger:ne,overlay:he,placement:A,onVisibleChange:le,overlayStyle:{...I,zIndex:ge},autoDestroy:O??N},oe);return ge&&(Ne=l.createElement(dd.Provider,{value:be},Ne)),Ne},Z7=Bp(Up,"align",void 0,"dropdown",e=>e),J7=e=>l.createElement(Z7,{...e},l.createElement("span",null));Up._InternalPanelDoNotUseOrYouWillBeFired=J7;var Om={exports:{}},eL=Om.exports,P2;function P6(){return P2||(P2=1,(function(e,t){(function(n,r){e.exports=r()})(eL,(function(){var n=1e3,r=6e4,a=36e5,s="millisecond",c="second",d="minute",f="hour",m="day",g="week",h="month",y="quarter",v="year",b="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var H=["th","st","nd","rd"],_=q%100;return"["+q+(H[(_-20)%10]||H[_]||H[0])+"]"}},w=function(q,H,_){var j=String(q);return!j||j.length>=H?q:""+Array(H+1-j.length).join(_)+q},E={s:w,z:function(q){var H=-q.utcOffset(),_=Math.abs(H),j=Math.floor(_/60),I=_%60;return(H<=0?"+":"-")+w(j,2,"0")+":"+w(I,2,"0")},m:function q(H,_){if(H.date()<_.date())return-q(_,H);var j=12*(_.year()-H.year())+(_.month()-H.month()),I=H.clone().add(j,h),D=_-I<0,F=H.clone().add(j+(D?-1:1),h);return+(-(j+(_-I)/(D?I-F:F-I))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:h,y:v,w:g,d:m,D:b,h:f,m:d,s:c,ms:s,Q:y}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},T="en",N={};N[T]=R;var O="$isDayjsObject",P=function(q){return q instanceof G||!(!q||!q[O])},B=function q(H,_,j){var I;if(!H)return T;if(typeof H=="string"){var D=H.toLowerCase();N[D]&&(I=D),_&&(N[D]=_,I=D);var F=H.split("-");if(!I&&F.length>1)return q(F[0])}else{var A=H.name;N[A]=H,I=A}return!j&&I&&(T=I),I||!j&&T},L=function(q,H){if(P(q))return q.clone();var _=typeof H=="object"?H:{};return _.date=q,_.args=arguments,new G(_)},V=E;V.l=B,V.i=P,V.w=function(q,H){return L(q,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var G=(function(){function q(_){this.$L=B(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var H=q.prototype;return H.parse=function(_){this.$d=(function(j){var I=j.date,D=j.utc;if(I===null)return new Date(NaN);if(V.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var F=I.match(C);if(F){var A=F[2]-1||0,z=(F[7]||"0").substring(0,3);return D?new Date(Date.UTC(F[1],A,F[3]||1,F[4]||0,F[5]||0,F[6]||0,z)):new Date(F[1],A,F[3]||1,F[4]||0,F[5]||0,F[6]||0,z)}}return new Date(I)})(_),this.init()},H.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},H.$utils=function(){return V},H.isValid=function(){return this.$d.toString()!==$},H.isSame=function(_,j){var I=L(_);return this.startOf(j)<=I&&I<=this.endOf(j)},H.isAfter=function(_,j){return L(_)<this.startOf(j)},H.isBefore=function(_,j){return this.endOf(j)<L(_)},H.$g=function(_,j,I){return V.u(_)?this[j]:this.set(I,_)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(_,j){var I=this,D=!!V.u(j)||j,F=V.p(_),A=function(ne,re){var ce=V.w(I.$u?Date.UTC(I.$y,re,ne):new Date(I.$y,re,ne),I);return D?ce:ce.endOf(m)},z=function(ne,re){return V.w(I.toDate()[ne].apply(I.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(re)),I)},k=this.$W,X=this.$M,Q=this.$D,Z="set"+(this.$u?"UTC":"");switch(F){case v:return D?A(1,0):A(31,11);case h:return D?A(1,X):A(0,X+1);case g:var J=this.$locale().weekStart||0,oe=(k<J?k+7:k)-J;return A(D?Q-oe:Q+(6-oe),X);case m:case b:return z(Z+"Hours",0);case f:return z(Z+"Minutes",1);case d:return z(Z+"Seconds",2);case c:return z(Z+"Milliseconds",3);default:return this.clone()}},H.endOf=function(_){return this.startOf(_,!1)},H.$set=function(_,j){var I,D=V.p(_),F="set"+(this.$u?"UTC":""),A=(I={},I[m]=F+"Date",I[b]=F+"Date",I[h]=F+"Month",I[v]=F+"FullYear",I[f]=F+"Hours",I[d]=F+"Minutes",I[c]=F+"Seconds",I[s]=F+"Milliseconds",I)[D],z=D===m?this.$D+(j-this.$W):j;if(D===h||D===v){var k=this.clone().set(b,1);k.$d[A](z),k.init(),this.$d=k.set(b,Math.min(this.$D,k.daysInMonth())).$d}else A&&this.$d[A](z);return this.init(),this},H.set=function(_,j){return this.clone().$set(_,j)},H.get=function(_){return this[V.p(_)]()},H.add=function(_,j){var I,D=this;_=Number(_);var F=V.p(j),A=function(X){var Q=L(D);return V.w(Q.date(Q.date()+Math.round(X*_)),D)};if(F===h)return this.set(h,this.$M+_);if(F===v)return this.set(v,this.$y+_);if(F===m)return A(1);if(F===g)return A(7);var z=(I={},I[d]=r,I[f]=a,I[c]=n,I)[F]||1,k=this.$d.getTime()+_*z;return V.w(k,this)},H.subtract=function(_,j){return this.add(-1*_,j)},H.format=function(_){var j=this,I=this.$locale();if(!this.isValid())return I.invalidDate||$;var D=_||"YYYY-MM-DDTHH:mm:ssZ",F=V.z(this),A=this.$H,z=this.$m,k=this.$M,X=I.weekdays,Q=I.months,Z=I.meridiem,J=function(re,ce,fe,le){return re&&(re[ce]||re(j,D))||fe[ce].slice(0,le)},oe=function(re){return V.s(A%12||12,re,"0")},ne=Z||function(re,ce,fe){var le=re<12?"AM":"PM";return fe?le.toLowerCase():le};return D.replace(x,(function(re,ce){return ce||(function(fe){switch(fe){case"YY":return String(j.$y).slice(-2);case"YYYY":return V.s(j.$y,4,"0");case"M":return k+1;case"MM":return V.s(k+1,2,"0");case"MMM":return J(I.monthsShort,k,Q,3);case"MMMM":return J(Q,k);case"D":return j.$D;case"DD":return V.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return J(I.weekdaysMin,j.$W,X,2);case"ddd":return J(I.weekdaysShort,j.$W,X,3);case"dddd":return X[j.$W];case"H":return String(A);case"HH":return V.s(A,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ne(A,z,!0);case"A":return ne(A,z,!1);case"m":return String(z);case"mm":return V.s(z,2,"0");case"s":return String(j.$s);case"ss":return V.s(j.$s,2,"0");case"SSS":return V.s(j.$ms,3,"0");case"Z":return F}return null})(re)||F.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(_,j,I){var D,F=this,A=V.p(j),z=L(_),k=(z.utcOffset()-this.utcOffset())*r,X=this-z,Q=function(){return V.m(F,z)};switch(A){case v:D=Q()/12;break;case h:D=Q();break;case y:D=Q()/3;break;case g:D=(X-k)/6048e5;break;case m:D=(X-k)/864e5;break;case f:D=X/a;break;case d:D=X/r;break;case c:D=X/n;break;default:D=X}return I?D:V.a(D)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return N[this.$L]},H.locale=function(_,j){if(!_)return this.$L;var I=this.clone(),D=B(_,j,!0);return D&&(I.$L=D),I},H.clone=function(){return V.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},q})(),Y=G.prototype;return L.prototype=Y,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",m],["$M",h],["$y",v],["$D",b]].forEach((function(q){Y[q[1]]=function(H){return this.$g(H,q[0],q[1])}})),L.extend=function(q,H){return q.$i||(q(H,G,L),q.$i=!0),L},L.locale=B,L.isDayjs=P,L.unix=function(q){return L(1e3*q)},L.en=N[T],L.Ls=N,L.p={},L}))})(Om)),Om.exports}var tL=P6();const bn=Ra(tL);var Nm={exports:{}},nL=Nm.exports,z2;function rL(){return z2||(z2=1,(function(e,t){(function(n,r){e.exports=r()})(nL,(function(){return function(n,r){r.prototype.weekday=function(a){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(a)?d:this.subtract(d,"day").add(a,"day")}}}))})(Nm)),Nm.exports}var oL=rL();const aL=Ra(oL);var Im={exports:{}},iL=Im.exports,A2;function lL(){return A2||(A2=1,(function(e,t){(function(n,r){e.exports=r()})(iL,(function(){return function(n,r,a){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,v,b,$){var C=h.name?h:h.$locale(),x=c(C[y]),R=c(C[v]),w=x||R.map((function(T){return T.slice(0,b)}));if(!$)return w;var E=C.weekStart;return w.map((function(T,N){return w[(N+(E||0))%7]}))},f=function(){return a.Ls[a.locale()]},m=function(h,y){return h.formats[y]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,$,C){return $||C.slice(1)}))})(h.formats[y.toUpperCase()])},g=function(){var h=this;return{months:function(y){return y?y.format("MMMM"):d(h,"months")},monthsShort:function(y){return y?y.format("MMM"):d(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):d(h,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):d(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):d(h,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return m(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},a.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(y){return m(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},a.months=function(){return d(f(),"months")},a.monthsShort=function(){return d(f(),"monthsShort","months",3)},a.weekdays=function(h){return d(f(),"weekdays",null,null,h)},a.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},a.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(Im)),Im.exports}var sL=lL();const cL=Ra(sL);var Pm={exports:{}},uL=Pm.exports,D2;function dL(){return D2||(D2=1,(function(e,t){(function(n,r){e.exports=r()})(uL,(function(){var n="week",r="year";return function(a,s,c){var d=s.prototype;d.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(m),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(m).startOf(n).subtract(1,"millisecond"),v=this.diff(y,n,!0);return v<0?c(this).startOf("week").week():Math.ceil(v)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Pm)),Pm.exports}var fL=dL();const mL=Ra(fL);var zm={exports:{}},pL=zm.exports,j2;function gL(){return j2||(j2=1,(function(e,t){(function(n,r){e.exports=r()})(pL,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),s=this.week(),c=this.year();return s===1&&a===11?c+1:a===0&&s>=52?c-1:c}}}))})(zm)),zm.exports}var hL=gL();const yL=Ra(hL);var Am={exports:{}},bL=Am.exports,_2;function vL(){return _2||(_2=1,(function(e,t){(function(n,r){e.exports=r()})(bL,(function(){return function(n,r){var a=r.prototype,s=a.format;a.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var m=this.$utils(),g=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return f.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return f.ordinal(d.week(),"W");case"w":case"ww":return m.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(d.$H===0?24:d.$H),h==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return h}}));return s.bind(this)(g)}}}))})(Am)),Am.exports}var SL=vL();const CL=Ra(SL);var Dm={exports:{}},$L=Dm.exports,H2;function xL(){return H2||(H2=1,(function(e,t){(function(n,r){e.exports=r()})($L,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},m=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(x){this[C]=+x}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var R=x.match(/([+-]|\d\d)/g),w=60*R[1]+(+R[2]||0);return w===0?0:R[0]==="+"?-w:w})(C)}],y=function(C){var x=f[C];return x&&(x.indexOf?x:x.s.concat(x.f))},v=function(C,x){var R,w=f.meridiem;if(w){for(var E=1;E<=24;E+=1)if(C.indexOf(w(E,0,x))>-1){R=E>12;break}}else R=C===(x?"pm":"PM");return R},b={A:[d,function(C){this.afternoon=v(C,!1)}],a:[d,function(C){this.afternoon=v(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[s,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[c,g("seconds")],ss:[c,g("seconds")],m:[c,g("minutes")],mm:[c,g("minutes")],H:[c,g("hours")],h:[c,g("hours")],HH:[c,g("hours")],hh:[c,g("hours")],D:[c,g("day")],DD:[s,g("day")],Do:[d,function(C){var x=f.ordinal,R=C.match(/\d+/);if(this.day=R[0],x)for(var w=1;w<=31;w+=1)x(w).replace(/\[|\]/g,"")===C&&(this.day=w)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(C){var x=y("months"),R=(y("monthsShort")||x.map((function(w){return w.slice(0,3)}))).indexOf(C)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[d,function(C){var x=y("months").indexOf(C)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(C){this.year=m(C)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function $(C){var x,R;x=C,R=f&&f.formats;for(var w=(C=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,V,G){var Y=G&&G.toUpperCase();return V||R[G]||n[G]||R[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(q,H,_){return H||_.slice(1)}))}))).match(r),E=w.length,T=0;T<E;T+=1){var N=w[T],O=b[N],P=O&&O[0],B=O&&O[1];w[T]=B?{regex:P,parser:B}:N.replace(/^\[|\]$/g,"")}return function(L){for(var V={},G=0,Y=0;G<E;G+=1){var q=w[G];if(typeof q=="string")Y+=q.length;else{var H=q.regex,_=q.parser,j=L.slice(Y),I=H.exec(j)[0];_.call(V,I),L=L.replace(I,"")}}return(function(D){var F=D.afternoon;if(F!==void 0){var A=D.hours;F?A<12&&(D.hours+=12):A===12&&(D.hours=0),delete D.afternoon}})(V),V}}return function(C,x,R){R.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(m=C.parseTwoDigitYear);var w=x.prototype,E=w.parse;w.parse=function(T){var N=T.date,O=T.utc,P=T.args;this.$u=O;var B=P[1];if(typeof B=="string"){var L=P[2]===!0,V=P[3]===!0,G=L||V,Y=P[2];V&&(Y=P[2]),f=this.$locale(),!L&&Y&&(f=R.Ls[Y]),this.$d=(function(j,I,D,F){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*j);var A=$(I)(j),z=A.year,k=A.month,X=A.day,Q=A.hours,Z=A.minutes,J=A.seconds,oe=A.milliseconds,ne=A.zone,re=A.week,ce=new Date,fe=X||(z||k?1:ce.getDate()),le=z||ce.getFullYear(),pe=0;z&&!k||(pe=k>0?k-1:ce.getMonth());var ae,se=Q||0,he=Z||0,ge=J||0,be=oe||0;return ne?new Date(Date.UTC(le,pe,fe,se,he,ge,be+60*ne.offset*1e3)):D?new Date(Date.UTC(le,pe,fe,se,he,ge,be)):(ae=new Date(le,pe,fe,se,he,ge,be),re&&(ae=F(ae).week(re).toDate()),ae)}catch{return new Date("")}})(N,B,O,R),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),G&&N!=this.format(B)&&(this.$d=new Date("")),f={}}else if(B instanceof Array)for(var q=B.length,H=1;H<=q;H+=1){P[1]=B[H-1];var _=R.apply(this,P);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}H===q&&(this.$d=new Date(""))}else E.call(this,T)}}}))})(Dm)),Dm.exports}var wL=xL();const EL=Ra(wL);bn.extend(EL);bn.extend(CL);bn.extend(aL);bn.extend(cL);bn.extend(mL);bn.extend(yL);bn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var c=(s||"").replace("Wo","wo");return r.bind(this)(c)}});var ML={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Bi=function(t){var n=ML[t];return n||t.split("_")[0]},z6={getNow:function(){var t=bn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return bn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return bn().locale(Bi(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Bi(t)).weekday(0)},getWeek:function(t,n){return n.locale(Bi(t)).week()},getShortWeekDays:function(t){return bn().locale(Bi(t)).localeData().weekdaysMin()},getShortMonths:function(t){return bn().locale(Bi(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Bi(t)).format(r)},parse:function(t,n,r){for(var a=Bi(t),s=0;s<r.length;s+=1){var c=r[s],d=n;if(c.includes("wo")||c.includes("Wo")){for(var f=d.split("-")[0],m=d.split("-")[1],g=bn(f,"YYYY").startOf("year").locale(a),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===m)return y}return null}var v=bn(d,c,!0).locale(a);if(v.isValid())return v}return null}}};function RL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Ho=l.createContext(null);function zu(e){"@babel/helpers - typeof";return zu=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},zu(e)}function B2(e,t,n){return t=TL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TL(e){var t=OL(e,"string");return zu(t)=="symbol"?t:String(t)}function OL(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NL={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function A6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,m=e.placement,g=e.builtinPlacements,h=g===void 0?NL:g,y=e.direction,v=e.visible,b=e.onClose,$=l.useContext(Ho),C=$.prefixCls,x="".concat(C,"-dropdown"),R=RL(m,y==="rtl");return l.createElement(pd,{showAction:[],hideAction:["click"],popupPlacement:R,builtinPlacements:h,prefixCls:x,popupMotion:{motionName:s},popup:t,popupAlign:a,popupVisible:v,popupClassName:K(r,B2(B2({},"".concat(x,"-range"),f),"".concat(x,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(E){E||b()}},d)}function IL(e){return DL(e)||AL(e)||zL(e)||PL()}function PL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
218
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zL(e,t){if(e){if(typeof e=="string")return Kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kv(e,t)}}function AL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DL(e){if(Array.isArray(e))return Kv(e)}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c1(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function gl(e){return e==null?[]:Array.isArray(e)?e:[e]}function fu(e,t,n){var r=IL(e);return r[t]=n,r}function Gp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function D6(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function j6(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(s){return e[s]});return r!==a?e[a]:void 0}function _6(e){return Gp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function L2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function V2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(n),!0).forEach(function(r){jL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jL(e,t,n){return t=_L(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _L(e){var t=HL(e,"string");return Au(t)=="symbol"?t:String(t)}function HL(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u1(e,t,n,r){var a=l.useMemo(function(){return e||function(c,d){var f=c;return t&&d.type==="date"?t(f,d.today):n&&d.type==="month"?n(f,d.locale):d.originNode}},[e,n,t]),s=l.useCallback(function(c,d){return a(c,V2(V2({},d),{},{range:r}))},[a,r]);return s}function BL(e,t){return kL(e)||FL(e,t)||VL(e,t)||LL()}function LL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
219
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VL(e,t){if(e){if(typeof e=="string")return F2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F2(e,t)}}function F2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function kL(e){if(Array.isArray(e))return e}function H6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=BL(r,2),s=a[0],c=a[1],d=function(g,h){c(function(y){return fu(y,h,g)})},f=l.useMemo(function(){return s.map(function(m,g){if(m)return!0;var h=e[g];return h?!!(!n[g]&&!h||h&&t(h,{activeIndex:g})):!1})},[e,s,t,n]);return[f,d]}function Du(e){"@babel/helpers - typeof";return Du=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},Du(e)}function k2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function W2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k2(Object(n),!0).forEach(function(r){WL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WL(e,t,n){return t=qL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qL(e){var t=YL(e,"string");return Du(t)=="symbol"?t:String(t)}function YL(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B6(e,t,n,r,a){var s="",c=[];return e&&c.push(a?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),a&&(s+=" A"),s}function UL(e,t,n,r,a,s){var c=e.fieldDateTimeFormat,d=e.fieldDateFormat,f=e.fieldTimeFormat,m=e.fieldMonthFormat,g=e.fieldYearFormat,h=e.fieldWeekFormat,y=e.fieldQuarterFormat,v=e.yearFormat,b=e.cellYearFormat,$=e.cellQuarterFormat,C=e.dayFormat,x=e.cellDateFormat,R=B6(t,n,r,a,s);return W2(W2({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(R),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:f||R,fieldMonthFormat:m||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:y||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:$||"[Q]Q",cellDateFormat:x||C||"D"})}function L6(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return ie.useMemo(function(){return UL(e,n,r,a,s,c)},[e,n,r,a,s,c])}function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){GL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GL(e,t,n){return t=XL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XL(e){var t=KL(e,"string");return sl(t)=="symbol"?t:String(t)}function KL(e,t){if(sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qv(e,t){return eV(e)||JL(e,t)||ZL(e,t)||QL()}function QL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
220
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZL(e,t){if(e){if(typeof e=="string")return Y2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y2(e,t)}}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function eV(e){if(Array.isArray(e))return e}function sl(e){"@babel/helpers - typeof";return sl=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},sl(e)}function Fc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var tV=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function nV(e){var t=Gp(e,tV),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=sl(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function rV(e){return e&&typeof e=="string"}function V6(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function F6(e,t,n,r,a){var s=t,c=n,d=r;if(!e&&!s&&!c&&!d&&!a)s=!0,c=!0,d=!0;else if(e){var f,m,g,h=[s,c,d].some(function(b){return b===!1}),y=[s,c,d].some(function(b){return b===!0}),v=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:v,c=(m=c)!==null&&m!==void 0?m:v,d=(g=d)!==null&&g!==void 0?g:v}return[s,c,d,a]}function k6(e){var t=e.showTime,n=nV(e),r=Qv(n,2),a=r[0],s=r[1],c=t&&sl(t)==="object"?t:{},d=ys(ys({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),f=d.showMillisecond,m=d.showHour,g=d.showMinute,h=d.showSecond,y=V6(m,g,h,f),v=F6(y,m,g,h,f),b=Qv(v,3);return m=b[0],g=b[1],h=b[2],[d,ys(ys({},d),{},{showHour:m,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function W6(e,t,n,r,a){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=D6(e,a,null),f=d,m=[t,n],g=0;g<m.length;g+=1){var h=gl(m[g])[0];if(rV(h)){f=h;break}}var y=c.showHour,v=c.showMinute,b=c.showSecond,$=c.showMillisecond,C=c.use12Hours,x=Fc(f,["a","A","LT","LLL","LTS"],C),R=V6(y,v,b,$);R||(y=Fc(f,["H","h","k","LT","LLL"]),v=Fc(f,["m","LT","LLL"]),b=Fc(f,["s","LTS"]),$=Fc(f,["SSS"]));var w=F6(R,y,v,b,$),E=Qv(w,3);y=E[0],v=E[1],b=E[2];var T=t||B6(y,v,b,$,x);return ys(ys({},c),{},{format:T,showHour:y,showMinute:v,showSecond:b,showMillisecond:$,use12Hours:x})}return null}function Zv(e){"@babel/helpers - typeof";return Zv=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},Zv(e)}function oV(e,t,n){if(t===!1)return null;var r=t&&Zv(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var qy=7;function Si(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Jv(e,t,n){return Si(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function cl(e,t,n){return Si(t,n,function(){return e.getYear(t)===e.getYear(n)})}function U2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function aV(e,t,n){return Si(t,n,function(){return cl(e,t,n)&&U2(e,t)===U2(e,n)})}function d1(e,t,n){return Si(t,n,function(){return cl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function f1(e,t,n){return Si(t,n,function(){return cl(e,t,n)&&d1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function q6(e,t,n){return Si(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Y6(e,t,n){return Si(t,n,function(){return f1(e,t,n)&&q6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function nu(e,t,n,r){return Si(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return cl(e,a,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Tr(e,t,n,r,a){switch(a){case"date":return f1(e,n,r);case"week":return nu(e,t.locale,n,r);case"month":return d1(e,n,r);case"quarter":return aV(e,n,r);case"year":return cl(e,n,r);case"decade":return Jv(e,n,r);case"time":return q6(e,n,r);default:return Y6(e,n,r)}}function Xp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Qf(e,t,n,r,a){return Tr(e,t,n,r,a)?!0:e.isAfter(n,r)}function iV(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),s=t.getWeekDay(a),c=t.addDate(a,r-s);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function nr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function lp(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,d){n?r=e[c](r,e[a[d]](n)):r=e[c](r,0)}),r}function lV(e,t,n,r,a){var s=ct(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Tr(e,t,r,c,d.type)||a&&e.isAfter(c,a)&&!Tr(e,t,a,c,d.type))});return s}function e0(e){"@babel/helpers - typeof";return e0=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},e0(e)}function sV(e,t,n){return l.useMemo(function(){var r=D6(e,t,n),a=gl(r),s=a[0],c=e0(s)==="object"&&s.type==="mask"?s.format:null;return[a.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),c]},[e,t,n])}function cV(e,t,n){return typeof e[0]=="function"||n?!0:t}function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function G2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(r){dV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dV(e,t,n){return t=fV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fV(e){var t=mV(e,"string");return ju(t)=="symbol"?t:String(t)}function mV(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pV(e,t,n,r){var a=ct(function(s,c){var d=uV({type:t},c);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var f,m=c&&c.activeIndex===1?"end":"start",g=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,s,m,{from:d.from}))||{},h=g.disabledHours,y=g.disabledMinutes,v=g.disabledSeconds,b=g.disabledMilliseconds,$=r.disabledHours,C=r.disabledMinutes,x=r.disabledSeconds,R=h||$,w=y||C,E=v||x,T=e.getHour(s),N=e.getMinute(s),O=e.getSecond(s),P=e.getMillisecond(s);if(R&&R().includes(T)||w&&w(T).includes(N)||E&&E(T,N).includes(O)||b&&b(T,N,O).includes(P))return!0}return!1});return a}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function X2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(n),!0).forEach(function(r){gV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gV(e,t,n){return t=hV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hV(e){var t=yV(e,"string");return _u(t)=="symbol"?t:String(t)}function yV(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K2(e,t){return CV(e)||SV(e,t)||vV(e,t)||bV()}function bV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
221
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vV(e,t){if(e){if(typeof e=="string")return Q2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q2(e,t)}}function Q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function CV(e){if(Array.isArray(e))return e}function Zf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&gl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function U6(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,s=a===void 0?"date":a,c=e.prefixCls,d=c===void 0?"rc-picker":c,f=e.previewValue,m=f===void 0?"hover":f,g=e.styles,h=g===void 0?{}:g,y=e.classNames,v=y===void 0?{}:y,b=e.order,$=b===void 0?!0:b,C=e.components,x=C===void 0?{}:C,R=e.inputRender,w=e.allowClear,E=e.clearIcon,T=e.needConfirm,N=e.multiple,O=e.format,P=e.inputReadOnly,B=e.disabledDate,L=e.minDate,V=e.maxDate,G=e.showTime,Y=e.value,q=e.defaultValue,H=e.pickerValue,_=e.defaultPickerValue,j=Zf(Y),I=Zf(q),D=Zf(H),F=Zf(_),A=s==="date"&&G?"datetime":s,z=A==="time"||A==="datetime",k=z||N,X=T??z,Q=k6(e),Z=K2(Q,4),J=Z[0],oe=Z[1],ne=Z[2],re=Z[3],ce=L6(r,oe),fe=l.useMemo(function(){return W6(A,ne,re,J,ce)},[A,ne,re,J,ce]),le=l.useMemo(function(){return kc(kc({},e),{},{previewValue:m,prefixCls:d,locale:ce,picker:s,styles:h,classNames:v,order:$,components:kc({input:R},x),clearIcon:oV(d,w,E),showTime:fe,value:j,defaultValue:I,pickerValue:D,defaultPickerValue:F},t?.())},[e]),pe=sV(A,ce,O),ae=K2(pe,2),se=ae[0],he=ae[1],ge=cV(se,P,N),be=lV(n,r,B,L,V),Ne=pV(n,s,be,fe),ve=l.useMemo(function(){return kc(kc({},le),{},{needConfirm:X,inputReadOnly:ge,disabledDate:be})},[le,X,ge,be]);return[ve,A,k,se,he,Ne]}function Z2(e,t){return EV(e)||wV(e,t)||xV(e,t)||$V()}function $V(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
222
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xV(e,t){if(e){if(typeof e=="string")return J2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J2(e,t)}}function J2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function EV(e){if(Array.isArray(e))return e}function MV(e,t,n){var r=Yt(t,e),a=Z2(r,2),s=a[0],c=a[1],d=ie.useState({}),f=Z2(d,2),m=f[1],g=ct(function(C){c(C),m({})}),h=ie.useRef(e),y=ie.useRef(),v=function(){Lt.cancel(y.current)},b=ct(function(){g(h.current),n&&s!==h.current&&n(h.current)}),$=ct(function(C,x){v(),h.current=C,C||x?b():y.current=Lt(b)});return ie.useEffect(function(){return v},[]),[s,$]}function RV(e,t){return IV(e)||NV(e,t)||OV(e,t)||TV()}function TV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
223
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OV(e,t){if(e){if(typeof e=="string")return eM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eM(e,t)}}function eM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function IV(e){if(Array.isArray(e))return e}function G6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(g){return g})?!1:e,s=MV(a,t||!1,r),c=RV(s,2),d=c[0],f=c[1];function m(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!h.inherit||d)&&f(g,h.force)}return[d,m]}function X6(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var s;(s=t.current)===null||s===void 0||s.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function PV(e,t){return jV(e)||DV(e,t)||AV(e,t)||zV()}function zV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
224
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AV(e,t){if(e){if(typeof e=="string")return tM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tM(e,t)}}function tM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function jV(e){if(Array.isArray(e))return e}function K6(e,t){return l.useMemo(function(){return e||(t?(rr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=PV(n,2),a=r[0],s=r[1];return{label:a,value:s}})):[])},[e,t])}function m1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,s4(function(){if(e)r.current(e);else{var a=Lt(function(){r.current(e)},n);return function(){Lt.cancel(a)}}},[e])}function nM(e,t){return LV(e)||BV(e,t)||HV(e,t)||_V()}function _V(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
225
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HV(e,t){if(e){if(typeof e=="string")return rM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rM(e,t)}}function rM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function LV(e){if(Array.isArray(e))return e}function Q6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=nM(r,2),s=a[0],c=a[1],d=l.useState(!1),f=nM(d,2),m=f[0],g=f[1],h=l.useRef([]),y=l.useRef(null),v=l.useRef(null),b=function(E){y.current=E},$=function(E){return y.current===E},C=function(E){g(E)},x=function(E){return E&&(v.current=E),v.current},R=function(E){var T=h.current,N=new Set(T.filter(function(P){return E[P]||t[P]})),O=T[T.length-1]===0?1:0;return N.size>=2||e[O]?null:O};return m1(m||n,function(){m||(h.current=[],b(null))}),l.useEffect(function(){m&&h.current.push(s)},[m,s]),[m,C,x,s,c,R,h.current,b,$]}function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function aM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(r){VV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VV(e,t,n){return t=FV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FV(e){var t=kV(e,"string");return Hu(t)=="symbol"?t:String(t)}function kV(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WV(e,t){return GV(e)||UV(e,t)||YV(e,t)||qV()}function qV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
226
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YV(e,t){if(e){if(typeof e=="string")return iM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iM(e,t)}}function iM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function GV(e){if(Array.isArray(e))return e}function XV(e,t,n,r,a,s){var c=n[n.length-1],d=function(m,g){var h=WV(e,2),y=h[0],v=h[1],b=aM(aM({},g),{},{from:j6(e,n)});return c===1&&t[0]&&y&&!Tr(r,a,y,m,b.type)&&r.isAfter(y,m)||c===0&&t[1]&&v&&!Tr(r,a,v,m,b.type)&&r.isAfter(m,v)?!0:s?.(m,b)};return d}function Yy(e,t){return JV(e)||ZV(e,t)||QV(e,t)||KV()}function KV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
227
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QV(e,t){if(e){if(typeof e=="string")return lM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lM(e,t)}}function lM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function JV(e){if(Array.isArray(e))return e}function ru(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Uy=[];function Z6(e,t,n,r,a,s,c,d){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Uy,m=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Uy,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Uy,h=arguments.length>11?arguments[11]:void 0,y=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,b=c==="time",$=s||0,C=function(j){var I=e.getNow();return b&&(I=lp(e,I)),f[j]||n[j]||I},x=Yy(m,2),R=x[0],w=x[1],E=Yt(function(){return C(0)},R),T=Yy(E,2),N=T[0],O=T[1],P=Yt(function(){return C(1)},w),B=Yy(P,2),L=B[0],V=B[1],G=l.useMemo(function(){var _=[N,L][$];return b?_:lp(e,_,g[$])},[b,N,L,$,e,g]),Y=function(j){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",D=[O,V][$];D(j);var F=[N,L];F[$]=j,h&&(!Tr(e,t,N,F[0],c)||!Tr(e,t,L,F[1],c))&&h(F,{source:I,range:$===1?"end":"start",mode:r})},q=function(j,I){if(d){var D={date:"month",week:"month",month:"year",quarter:"year"},F=D[c];if(F&&!Tr(e,t,j,I,F))return ru(e,c,I,-1);if(c==="year"&&j){var A=Math.floor(e.getYear(j)/10),z=Math.floor(e.getYear(I)/10);if(A!==z)return ru(e,c,I,-1)}}return I},H=l.useRef(null);return Pt(function(){if(a&&!f[$]){var _=b?null:e.getNow();if(H.current!==null&&H.current!==$?_=[N,L][$^1]:n[$]?_=$===0?n[0]:q(n[0],n[1]):n[$^1]&&(_=n[$^1]),_){y&&e.isAfter(y,_)&&(_=y);var j=d?ru(e,c,_,1):_;v&&e.isAfter(j,v)&&(_=d?ru(e,c,v,-1):v),Y(_,"reset")}}},[a,$,n[$]]),l.useEffect(function(){a?H.current=$:H.current=null},[a,$]),Pt(function(){a&&f&&f[$]&&Y(f[$],"reset")},[a,$]),[G,Y]}function eF(e,t){return oF(e)||rF(e,t)||nF(e,t)||tF()}function tF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
228
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nF(e,t){if(e){if(typeof e=="string")return sM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sM(e,t)}}function sM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function oF(e){if(Array.isArray(e))return e}function J6(e,t){var n=l.useRef(e),r=l.useState({}),a=eF(r,2),s=a[1],c=function(m){return m&&t!==void 0?t:n.current},d=function(m){n.current=m,s({})};return[c,d,c(!0)]}function $a(e,t){return lF(e)||iF(e,t)||eN(e,t)||aF()}function aF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
229
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function lF(e){if(Array.isArray(e))return e}function p1(e){return uF(e)||cF(e)||eN(e)||sF()}function sF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
230
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eN(e,t){if(e){if(typeof e=="string")return t0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t0(e,t)}}function cF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uF(e){if(Array.isArray(e))return t0(e)}function t0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dF=[];function tN(e,t,n){var r=function(c){return c.map(function(d){return nr(d,{generateConfig:e,locale:t,format:n[0]})})},a=function(c,d){for(var f=Math.max(c.length,d.length),m=-1,g=0;g<f;g+=1){var h=c[g]||null,y=d[g]||null;if(h!==y&&!Y6(e,h,y)){m=g;break}}return[m<0,m!==0]};return[r,a]}function nN(e,t){return p1(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function fF(e){var t=J6(e),n=$a(t,2),r=n[0],a=n[1],s=ct(function(){a(e)});return l.useEffect(function(){s()},[e]),[r,a]}function rN(e,t,n,r,a,s,c,d,f){var m=Yt(s,c),g=$a(m,2),h=g[0],y=g[1],v=h||dF,b=fF(v),$=$a(b,2),C=$[0],x=$[1],R=tN(e,t,n),w=$a(R,2),E=w[0],T=w[1],N=ct(function(P){var B=p1(P);if(r)for(var L=0;L<2;L+=1)B[L]=B[L]||null;else a&&(B=nN(B.filter(function(_){return _}),e));var V=T(C(),B),G=$a(V,2),Y=G[0],q=G[1];if(!Y&&(x(B),d)){var H=E(B);d(B,H,{range:q?"end":"start"})}}),O=function(){f&&f(C())};return[v,y,C,N,O]}function oN(e,t,n,r,a,s,c,d,f,m){var g=e.generateConfig,h=e.locale,y=e.picker,v=e.onChange,b=e.allowEmpty,$=e.order,C=s.some(function(Y){return Y})?!1:$,x=tN(g,h,c),R=$a(x,2),w=R[0],E=R[1],T=J6(t),N=$a(T,2),O=N[0],P=N[1],B=ct(function(){P(t)});l.useEffect(function(){B()},[t]);var L=ct(function(Y){var q=Y===null,H=p1(Y||O());if(q)for(var _=Math.max(s.length,H.length),j=0;j<_;j+=1)s[j]||(H[j]=null);C&&H[0]&&H[1]&&(H=nN(H,g)),a(H);var I=H,D=$a(I,2),F=D[0],A=D[1],z=!F,k=!A,X=b?(!z||b[0])&&(!k||b[1]):!0,Q=!$||z||k||Tr(g,h,F,A,y)||g.isAfter(A,F),Z=(s[0]||!F||!m(F,{activeIndex:0}))&&(s[1]||!A||!m(A,{from:F,activeIndex:1})),J=q||X&&Q&&Z;if(J){n(H);var oe=E(H,t),ne=$a(oe,1),re=ne[0];if(v&&!re){var ce=H.every(function(fe){return!fe});v(q&&ce?null:H,ce?null:w(H))}}return J}),V=ct(function(Y,q){var H=fu(O(),Y,r()[Y]);P(H),q&&L()}),G=!d&&!f;return m1(!G,function(){G&&(L(),a(t),B())},2),[V,L]}function aN(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function mF(e){return yF(e)||hF(e)||gF(e)||pF()}function pF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
231
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gF(e,t){if(e){if(typeof e=="string")return n0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n0(e,t)}}function hF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yF(e){if(Array.isArray(e))return n0(e)}function n0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bF(e,t,n,r,a,s){var c=e;function d(h,y,v){var b=s[h](c),$=v.find(function(w){return w.value===b});if(!$||$.disabled){var C=v.filter(function(w){return!w.disabled}),x=mF(C).reverse(),R=x.find(function(w){return w.value<=b})||C[0];R&&(b=R.value,c=s[y](c,b))}return b}var f=d("getHour","setHour",t()),m=d("getMinute","setMinute",n(f)),g=d("getSecond","setSecond",r(f,m));return d("getMillisecond","setMillisecond",a(f,m,g)),c}function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function cM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){vF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vF(e,t,n){return t=SF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SF(e){var t=CF(e,"string");return Bu(t)=="symbol"?t:String(t)}function CF(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jf(e,t){return EF(e)||wF(e,t)||xF(e,t)||$F()}function $F(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
232
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xF(e,t){if(e){if(typeof e=="string")return dM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dM(e,t)}}function dM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function EF(e){if(Array.isArray(e))return e}function em(){return[]}function tm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],d=n>=1?n|0:1,f=e;f<=t;f+=d){var m=a.includes(f);(!m||!r)&&c.push({label:c1(f,s),value:f,disabled:m})}return c}function g1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,s=r.hourStep,c=s===void 0?1:s,d=r.minuteStep,f=d===void 0?1:d,m=r.secondStep,g=m===void 0?1:m,h=r.millisecondStep,y=h===void 0?100:h,v=r.hideDisabledOptions,b=r.disabledTime,$=r.disabledHours,C=r.disabledMinutes,x=r.disabledSeconds,R=l.useMemo(function(){return n||e.getNow()},[n,e]),w=l.useCallback(function(I){var D=b?.(I)||{};return[D.disabledHours||$||em,D.disabledMinutes||C||em,D.disabledSeconds||x||em,D.disabledMilliseconds||em]},[b,$,C,x]),E=l.useMemo(function(){return w(R)},[R,w]),T=Jf(E,4),N=T[0],O=T[1],P=T[2],B=T[3],L=l.useCallback(function(I,D,F,A){var z=tm(0,23,c,v,I()),k=a?z.map(function(J){return uM(uM({},J),{},{label:c1(J.value%12||12,2)})}):z,X=function(oe){return tm(0,59,f,v,D(oe))},Q=function(oe,ne){return tm(0,59,g,v,F(oe,ne))},Z=function(oe,ne,re){return tm(0,999,y,v,A(oe,ne,re),3)};return[k,X,Q,Z]},[v,c,a,y,f,g]),V=l.useMemo(function(){return L(N,O,P,B)},[L,N,O,P,B]),G=Jf(V,4),Y=G[0],q=G[1],H=G[2],_=G[3],j=function(D,F){var A=function(){return Y},z=q,k=H,X=_;if(F){var Q=w(F),Z=Jf(Q,4),J=Z[0],oe=Z[1],ne=Z[2],re=Z[3],ce=L(J,oe,ne,re),fe=Jf(ce,4),le=fe[0],pe=fe[1],ae=fe[2],se=fe[3];A=function(){return le},z=pe,k=ae,X=se}var he=bF(D,A,z,k,X,e);return he};return[j,Y,q,H,_]}function MF(e,t){return NF(e)||OF(e,t)||TF(e,t)||RF()}function RF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
233
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TF(e,t){if(e){if(typeof e=="string")return fM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(e,t)}}function fM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function NF(e){if(Array.isArray(e))return e}function IF(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,s=e.showTime,c=e.onSubmit,d=e.onNow,f=e.invalid,m=e.needConfirm,g=e.generateConfig,h=e.disabledDate,y=l.useContext(Ho),v=y.prefixCls,b=y.locale,$=y.button,C=$===void 0?"button":$,x=y.classNames,R=y.styles,w=g.getNow(),E=g1(g,s,w),T=MF(E,1),N=T[0],O=r?.(t),P=h(w,{type:t}),B=function(){if(!P){var _=N(w);d(_)}},L="".concat(v,"-now"),V="".concat(L,"-btn"),G=a&&l.createElement("li",{className:L},l.createElement("a",{className:K(V,P&&"".concat(V,"-disabled")),"aria-disabled":P,onClick:B},n==="date"?b.today:b.now)),Y=m&&l.createElement("li",{className:"".concat(v,"-ok")},l.createElement(C,{disabled:f,onClick:c},b.ok)),q=(G||Y)&&l.createElement("ul",{className:"".concat(v,"-ranges")},G,Y);return!O&&!q?null:l.createElement("div",{className:K("".concat(v,"-footer"),x.popup.footer),style:R.popup.footer},O&&l.createElement("div",{className:"".concat(v,"-footer-extra")},O),q)}function mM(e){return DF(e)||AF(e)||zF(e)||PF()}function PF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
234
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zF(e,t){if(e){if(typeof e=="string")return r0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r0(e,t)}}function AF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DF(e){if(Array.isArray(e))return r0(e)}function r0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iN(e,t,n){function r(a,s){var c=a.findIndex(function(f){return Tr(e,t,f,s,n)});if(c===-1)return[].concat(mM(a),[s]);var d=mM(a);return d.splice(c,1),d}return r}var lN=l.createContext(null),hl=l.createContext(null);function Kp(){return l.useContext(hl)}function ks(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,s=e.disabledDate,c=e.minDate,d=e.maxDate,f=e.cellRender,m=e.hoverValue,g=e.hoverRangeValue,h=e.onHover,y=e.values,v=e.pickerValue,b=e.onSelect,$=e.prevIcon,C=e.nextIcon,x=e.superPrevIcon,R=e.superNextIcon,w=l.useContext(lN),E=w.classNames,T=w.styles,N=r.getNow(),O={now:N,values:y,pickerValue:v,prefixCls:n,classNames:E,styles:T,disabledDate:s,minDate:c,maxDate:d,cellRender:f,hoverValue:m,hoverRangeValue:g,onHover:h,locale:a,generateConfig:r,onSelect:b,panelType:t,prevIcon:$,nextIcon:C,superPrevIcon:x,superNextIcon:R};return[O,N]}var mi=l.createContext({});function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pM(Object(n),!0).forEach(function(r){Wi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wi(e,t,n){return t=_F(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _F(e){var t=HF(e,"string");return Lu(t)=="symbol"?t:String(t)}function HF(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BF(e,t){return kF(e)||FF(e,t)||VF(e,t)||LF()}function LF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
235
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VF(e,t){if(e){if(typeof e=="string")return gM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gM(e,t)}}function gM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function kF(e){if(Array.isArray(e))return e}function Rd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,s=e.prefixColumn,c=e.rowClassName,d=e.titleFormat,f=e.getCellText,m=e.getCellClassName,g=e.headerCells,h=e.cellSelection,y=h===void 0?!0:h,v=e.disabledDate,b=Kp(),$=b.prefixCls,C=b.classNames,x=b.styles,R=b.panelType,w=b.now,E=b.disabledDate,T=b.cellRender,N=b.onHover,O=b.hoverValue,P=b.hoverRangeValue,B=b.generateConfig,L=b.values,V=b.locale,G=b.onSelect,Y=v||E,q="".concat($,"-cell"),H=l.useContext(mi),_=H.onCellDblClick,j=function(Q){return L.some(function(Z){return Z&&Tr(B,V,Q,Z,R)})},I=[],D=0;D<t;D+=1){for(var F=[],A=void 0,z=function(){var Q=D*n+k,Z=a(r,Q),J=Y?.(Z,{type:R});k===0&&(A=Z,s&&F.push(s(A)));var oe=!1,ne=!1,re=!1;if(y&&P){var ce=BF(P,2),fe=ce[0],le=ce[1];oe=Xp(B,fe,le,Z),ne=Tr(B,V,Z,fe,R),re=Tr(B,V,Z,le,R)}var pe=d?nr(Z,{locale:V,format:d,generateConfig:B}):void 0,ae=l.createElement("div",{className:"".concat(q,"-inner")},f(Z));F.push(l.createElement("td",{key:k,title:pe,className:K(q,C.item,jF(Wi(Wi(Wi(Wi(Wi(Wi({},"".concat(q,"-disabled"),J),"".concat(q,"-hover"),(O||[]).some(function(se){return Tr(B,V,Z,se,R)})),"".concat(q,"-in-range"),oe&&!ne&&!re),"".concat(q,"-range-start"),ne),"".concat(q,"-range-end"),re),"".concat($,"-cell-selected"),!P&&R!=="week"&&j(Z)),m(Z))),style:x.item,onClick:function(){J||G(Z)},onDoubleClick:function(){!J&&_&&_()},onMouseEnter:function(){J||N?.(Z)},onMouseLeave:function(){J||N?.(null)}},T?T(Z,{prefixCls:$,originNode:ae,today:w,type:R,locale:V}):ae))},k=0;k<n;k+=1)z();I.push(l.createElement("tr",{key:D,className:c?.(A)},F))}return l.createElement("div",{className:K("".concat($,"-body"),C.body),style:x.body},l.createElement("table",{className:K("".concat($,"-content"),C.content),style:x.content},g&&l.createElement("thead",null,l.createElement("tr",null,g)),l.createElement("tbody",null,I)))}var nm={visibility:"hidden"};function Ws(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,s=e.getEnd,c=e.children,d=Kp(),f=d.prefixCls,m=d.classNames,g=d.styles,h=d.prevIcon,y=h===void 0?"‹":h,v=d.nextIcon,b=v===void 0?"›":v,$=d.superPrevIcon,C=$===void 0?"«":$,x=d.superNextIcon,R=x===void 0?"»":x,w=d.minDate,E=d.maxDate,T=d.generateConfig,N=d.locale,O=d.pickerValue,P=d.panelType,B="".concat(f,"-header"),L=l.useContext(mi),V=L.hidePrev,G=L.hideNext,Y=L.hideHeader,q=l.useMemo(function(){if(!w||!t||!s)return!1;var X=s(t(-1,O));return!Qf(T,N,X,w,P)},[w,t,O,s,T,N,P]),H=l.useMemo(function(){if(!w||!n||!s)return!1;var X=s(n(-1,O));return!Qf(T,N,X,w,P)},[w,n,O,s,T,N,P]),_=l.useMemo(function(){if(!E||!t||!a)return!1;var X=a(t(1,O));return!Qf(T,N,E,X,P)},[E,t,O,a,T,N,P]),j=l.useMemo(function(){if(!E||!n||!a)return!1;var X=a(n(1,O));return!Qf(T,N,E,X,P)},[E,n,O,a,T,N,P]),I=function(Q){t&&r(t(Q,O))},D=function(Q){n&&r(n(Q,O))};if(Y)return null;var F="".concat(B,"-prev-btn"),A="".concat(B,"-next-btn"),z="".concat(B,"-super-prev-btn"),k="".concat(B,"-super-next-btn");return l.createElement("div",{className:K(B,m.header),style:g.header},n&&l.createElement("button",{type:"button","aria-label":N.previousYear,onClick:function(){return D(-1)},tabIndex:-1,className:K(z,H&&"".concat(z,"-disabled")),disabled:H,style:V?nm:{}},C),t&&l.createElement("button",{type:"button","aria-label":N.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:K(F,q&&"".concat(F,"-disabled")),disabled:q,style:V?nm:{}},y),l.createElement("div",{className:"".concat(B,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":N.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:K(A,_&&"".concat(A,"-disabled")),disabled:_,style:G?nm:{}},b),n&&l.createElement("button",{type:"button","aria-label":N.nextYear,onClick:function(){return D(1)},tabIndex:-1,className:K(k,j&&"".concat(k,"-disabled")),disabled:j,style:G?nm:{}},R))}function Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function Gy(e,t,n){return t=WF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WF(e){var t=qF(e,"string");return Vu(t)=="symbol"?t:String(t)}function qF(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YF(e,t){return KF(e)||XF(e,t)||GF(e,t)||UF()}function UF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
236
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GF(e,t){if(e){if(typeof e=="string")return hM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hM(e,t)}}function hM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function KF(e){if(Array.isArray(e))return e}function Qp(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,s=e.generateConfig,c=e.pickerValue,d=e.onPickerValueChange,f=e.onModeChange,m=e.mode,g=m===void 0?"date":m,h=e.disabledDate,y=e.onSelect,v=e.onHover,b=e.showWeek,$="".concat(t,"-").concat(r,"-panel"),C="".concat(t,"-cell"),x=g==="week",R=ks(e,g),w=YF(R,2),E=w[0],T=w[1],N=s.locale.getWeekFirstDay(a.locale),O=s.setDate(c,1),P=iV(a.locale,s,O),B=s.getMonth(c),L=b===void 0?x:b,V=L?function(z){var k=h?.(z,{type:"week"});return l.createElement("td",{key:"week",className:K(C,"".concat(C,"-week"),Gy({},"".concat(C,"-disabled"),k)),onClick:function(){k||y(z)},onMouseEnter:function(){k||v?.(z)},onMouseLeave:function(){k||v?.(null)}},l.createElement("div",{className:"".concat(C,"-inner")},s.locale.getWeek(a.locale,z)))}:null,G=[],Y=a.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(a.locale):[]);V&&G.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var q=0;q<qy;q+=1)G.push(l.createElement("th",{key:q},Y[(q+N)%qy]));var H=function(k,X){return s.addDate(k,X)},_=function(k){return nr(k,{locale:a,format:a.cellDateFormat,generateConfig:s})},j=function(k){var X=Gy(Gy({},"".concat(t,"-cell-in-view"),d1(s,k,c)),"".concat(t,"-cell-today"),f1(s,k,T));return X},I=a.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(a.locale):[]),D=l.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(c,{locale:a,format:a.yearFormat,generateConfig:s})),F=l.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){f("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?nr(c,{locale:a,format:a.monthFormat,generateConfig:s}):I[B]),A=a.monthBeforeYear?[F,D]:[D,F];return l.createElement(hl.Provider,{value:E},l.createElement("div",{className:K($,b&&"".concat($,"-show-week"))},l.createElement(Ws,{offset:function(k){return s.addMonth(c,k)},superOffset:function(k){return s.addYear(c,k)},onChange:d,getStart:function(k){return s.setDate(k,1)},getEnd:function(k){var X=s.setDate(k,1);return X=s.addMonth(X,1),s.addDate(X,-1)}},A),l.createElement(Rd,o0({titleFormat:a.fieldDateFormat},e,{colNum:qy,rowNum:6,baseDate:P,headerCells:G,getCellDate:H,getCellText:_,getCellClassName:j,prefixColumn:V,cellSelection:!x}))))}var QF=1/3;function ZF(e,t){var n=l.useRef(!1),r=l.useRef(null),a=l.useRef(null),s=function(){return n.current},c=function(){Lt.cancel(r.current),n.current=!1},d=l.useRef(),f=function(){var h=e.current;if(a.current=null,d.current=0,h){var y=h.querySelector('[data-value="'.concat(t,'"]')),v=h.querySelector("li"),b=function $(){c(),n.current=!0,d.current+=1;var C=h.scrollTop,x=v.offsetTop,R=y.offsetTop,w=R-x;if(R===0&&y!==v||!Np(h)){d.current<=5&&(r.current=Lt($));return}var E=C+(w-C)*QF,T=Math.abs(w-E);if(a.current!==null&&a.current<T){c();return}if(a.current=T,T<=1){h.scrollTop=w,c();return}h.scrollTop=E,r.current=Lt($)};y&&v&&b()}},m=ct(f);return[m,c,s]}function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function yM(e,t,n){return t=JF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){var t=ek(e,"string");return Fu(t)=="symbol"?t:String(t)}function ek(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tk(e){return ok(e)||rk(e)||sN(e)||nk()}function nk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
237
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ok(e){if(Array.isArray(e))return a0(e)}function ak(e,t){return sk(e)||lk(e,t)||sN(e,t)||ik()}function ik(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
238
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sN(e,t){if(e){if(typeof e=="string")return a0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a0(e,t)}}function a0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function sk(e){if(Array.isArray(e))return e}var ck=300;function uk(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function Wc(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,s=e.onChange,c=e.onHover,d=e.onDblClick,f=e.changeOnScroll,m=Kp(),g=m.prefixCls,h=m.cellRender,y=m.now,v=m.locale,b=m.classNames,$=m.styles,C="".concat(g,"-time-panel"),x="".concat(g,"-time-panel-cell"),R=l.useRef(null),w=l.useRef(),E=function(){clearTimeout(w.current)},T=ZF(R,n??r),N=ak(T,3),O=N[0],P=N[1],B=N[2];Pt(function(){return O(),E(),function(){P(),E()}},[n,r,uk(t)]);var L=function(Y){E();var q=Y.target;!B()&&f&&(w.current=setTimeout(function(){var H=R.current,_=H.querySelector("li").offsetTop,j=Array.from(H.querySelectorAll("li")),I=j.map(function(k){return k.offsetTop-_}),D=I.map(function(k,X){return t[X].disabled?Number.MAX_SAFE_INTEGER:Math.abs(k-q.scrollTop)}),F=Math.min.apply(Math,tk(D)),A=D.findIndex(function(k){return k===F}),z=t[A];z&&!z.disabled&&s(z.value)},ck))},V="".concat(C,"-column");return l.createElement("ul",{className:V,ref:R,"data-type":a,onScroll:L},t.map(function(G){var Y=G.label,q=G.value,H=G.disabled,_=l.createElement("div",{className:"".concat(x,"-inner")},Y);return l.createElement("li",{key:q,style:$.item,className:K(x,b.item,yM(yM({},"".concat(x,"-selected"),n===q),"".concat(x,"-disabled"),H)),onClick:function(){H||s(q)},onDoubleClick:function(){!H&&d&&d()},onMouseEnter:function(){c(q)},onMouseLeave:function(){c(null)},"data-value":q},h?h(q,{prefixCls:g,originNode:_,today:y,type:"time",subType:a,locale:v}):_)}))}function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gi.apply(this,arguments)}function qc(e,t){return pk(e)||mk(e,t)||fk(e,t)||dk()}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
239
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fk(e,t){if(e){if(typeof e=="string")return bM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bM(e,t)}}function bM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function pk(e){if(Array.isArray(e))return e}function ri(e){return e<12}function gk(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,s=e.use12Hours,c=e.changeOnScroll,d=Kp(),f=d.prefixCls,m=d.classNames,g=d.styles,h=d.values,y=d.generateConfig,v=d.locale,b=d.onSelect,$=d.onHover,C=$===void 0?function(){}:$,x=d.pickerValue,R=h?.[0]||null,w=l.useContext(mi),E=w.onCellDblClick,T=g1(y,e,R),N=qc(T,5),O=N[0],P=N[1],B=N[2],L=N[3],V=N[4],G=function(Oe){var Ke=R&&y[Oe](R),nt=x&&y[Oe](x);return[Ke,nt]},Y=G("getHour"),q=qc(Y,2),H=q[0],_=q[1],j=G("getMinute"),I=qc(j,2),D=I[0],F=I[1],A=G("getSecond"),z=qc(A,2),k=z[0],X=z[1],Q=G("getMillisecond"),Z=qc(Q,2),J=Z[0],oe=Z[1],ne=H===null?null:ri(H)?"am":"pm",re=l.useMemo(function(){return s?ri(H)?P.filter(function(Xe){return ri(Xe.value)}):P.filter(function(Xe){return!ri(Xe.value)}):P},[H,P,s]),ce=function(Oe,Ke){var nt,ot=Oe.filter(function(lt){return!lt.disabled});return Ke??(ot==null||(nt=ot[0])===null||nt===void 0?void 0:nt.value)},fe=ce(P,H),le=l.useMemo(function(){return B(fe)},[B,fe]),pe=ce(le,D),ae=l.useMemo(function(){return L(fe,pe)},[L,fe,pe]),se=ce(ae,k),he=l.useMemo(function(){return V(fe,pe,se)},[V,fe,pe,se]),ge=ce(he,J),be=l.useMemo(function(){if(!s)return[];var Xe=y.getNow(),Oe=y.setHour(Xe,6),Ke=y.setHour(Xe,18),nt=function(lt,Ct){var $t=v.cellMeridiemFormat;return $t?nr(lt,{generateConfig:y,locale:v,format:$t}):Ct};return[{label:nt(Oe,"AM"),value:"am",disabled:P.every(function(ot){return ot.disabled||!ri(ot.value)})},{label:nt(Ke,"PM"),value:"pm",disabled:P.every(function(ot){return ot.disabled||ri(ot.value)})}]},[P,s,y,v]),Ne=function(Oe){var Ke=O(Oe);b(Ke)},ve=l.useMemo(function(){var Xe=R||x||y.getNow(),Oe=function(nt){return nt!=null};return Oe(H)?(Xe=y.setHour(Xe,H),Xe=y.setMinute(Xe,D),Xe=y.setSecond(Xe,k),Xe=y.setMillisecond(Xe,J)):Oe(_)?(Xe=y.setHour(Xe,_),Xe=y.setMinute(Xe,F),Xe=y.setSecond(Xe,X),Xe=y.setMillisecond(Xe,oe)):Oe(fe)&&(Xe=y.setHour(Xe,fe),Xe=y.setMinute(Xe,pe),Xe=y.setSecond(Xe,se),Xe=y.setMillisecond(Xe,ge)),Xe},[R,x,H,D,k,J,fe,pe,se,ge,_,F,X,oe,y]),xe=function(Oe,Ke){return Oe===null?null:y[Ke](ve,Oe)},de=function(Oe){return xe(Oe,"setHour")},Se=function(Oe){return xe(Oe,"setMinute")},Me=function(Oe){return xe(Oe,"setSecond")},Ae=function(Oe){return xe(Oe,"setMillisecond")},Ie=function(Oe){return Oe===null?null:Oe==="am"&&!ri(H)?y.setHour(ve,H-12):Oe==="pm"&&ri(H)?y.setHour(ve,H+12):ve},Ye=function(Oe){Ne(de(Oe))},Ze=function(Oe){Ne(Se(Oe))},He=function(Oe){Ne(Me(Oe))},Ve=function(Oe){Ne(Ae(Oe))},_e=function(Oe){Ne(Ie(Oe))},Ue=function(Oe){C(de(Oe))},Pe=function(Oe){C(Se(Oe))},Ce=function(Oe){C(Me(Oe))},Fe=function(Oe){C(Ae(Oe))},Je=function(Oe){C(Ie(Oe))},Be={onDblClick:E,changeOnScroll:c};return l.createElement("div",{className:K("".concat(f,"-content"),m.content),style:g.content},t&&l.createElement(Wc,Gi({units:re,value:H,optionalValue:_,type:"hour",onChange:Ye,onHover:Ue},Be)),n&&l.createElement(Wc,Gi({units:le,value:D,optionalValue:F,type:"minute",onChange:Ze,onHover:Pe},Be)),r&&l.createElement(Wc,Gi({units:ae,value:k,optionalValue:X,type:"second",onChange:He,onHover:Ce},Be)),a&&l.createElement(Wc,Gi({units:he,value:J,optionalValue:oe,type:"millisecond",onChange:Ve,onHover:Fe},Be)),s&&l.createElement(Wc,Gi({units:be,value:ne,type:"meridiem",onChange:_e,onHover:Je},Be)))}function hk(e,t){return Sk(e)||vk(e,t)||bk(e,t)||yk()}function yk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
240
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bk(e,t){if(e){if(typeof e=="string")return vM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vM(e,t)}}function vM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Sk(e){if(Array.isArray(e))return e}function cN(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,s=e.showTime,c=s||{},d=c.format,f="".concat(t,"-time-panel"),m=ks(e,"time"),g=hk(m,1),h=g[0];return l.createElement(hl.Provider,{value:h},l.createElement("div",{className:K(f)},l.createElement(Ws,null,n?nr(n,{locale:r,format:d,generateConfig:a}):" "),l.createElement(gk,s)))}function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}function Ck(e,t){return Ek(e)||wk(e,t)||xk(e,t)||$k()}function $k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
241
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xk(e,t){if(e){if(typeof e=="string")return SM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SM(e,t)}}function SM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Ek(e){if(Array.isArray(e))return e}function Mk(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,s=e.value,c=e.pickerValue,d=e.onHover,f="".concat(t,"-datetime-panel"),m=g1(n,r),g=Ck(m,1),h=g[0],y=function(C){return s?lp(n,C,s):lp(n,C,c)},v=function(C){d?.(C&&y(C))},b=function(C){var x=y(C);a(h(x,x))};return l.createElement("div",{className:f},l.createElement(Qp,i0({},e,{onSelect:b,onHover:v})),l.createElement(cN,e))}function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function Rk(e,t,n){return t=Tk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tk(e){var t=Ok(e,"string");return ku(t)=="symbol"?t:String(t)}function Ok(e,t){if(ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nk(e,t){return Ak(e)||zk(e,t)||Pk(e,t)||Ik()}function Ik(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
242
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pk(e,t){if(e){if(typeof e=="string")return CM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CM(e,t)}}function CM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Ak(e){if(Array.isArray(e))return e}function Dk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d="".concat(t,"-decade-panel"),f=ks(e,"decade"),m=Nk(f,1),g=m[0],h=function(N){var O=Math.floor(r.getYear(N)/100)*100;return r.setYear(N,O)},y=function(N){var O=h(N);return r.addYear(O,99)},v=h(a),b=y(a),$=r.addYear(v,-10),C=function(N,O){return r.addYear(N,O*10)},x=function(N){var O=n.cellYearFormat,P=nr(N,{locale:n,format:O,generateConfig:r}),B=nr(r.addYear(N,9),{locale:n,format:O,generateConfig:r});return"".concat(P,"-").concat(B)},R=function(N){return Rk({},"".concat(t,"-cell-in-view"),Jv(r,N,v)||Jv(r,N,b)||Xp(r,v,b,N))},w=s?function(T,N){var O=r.setDate(T,1),P=r.setMonth(O,0),B=r.setYear(P,Math.floor(r.getYear(P)/10)*10),L=r.addYear(B,10),V=r.addDate(L,-1);return s(B,N)&&s(V,N)}:null,E="".concat(nr(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(nr(b,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ws,{superOffset:function(N){return r.addYear(a,N*100)},onChange:c,getStart:h,getEnd:y},E),l.createElement(Rd,l0({},e,{disabledDate:w,colNum:3,rowNum:4,baseDate:$,getCellDate:C,getCellText:x,getCellClassName:R}))))}function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}function jk(e,t,n){return t=_k(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _k(e){var t=Hk(e,"string");return Wu(t)=="symbol"?t:String(t)}function Hk(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bk(e,t){return kk(e)||Fk(e,t)||Vk(e,t)||Lk()}function Lk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
243
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vk(e,t){if(e){if(typeof e=="string")return $M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $M(e,t)}}function $M(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function kk(e){if(Array.isArray(e))return e}function Wk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-month-panel"),m=ks(e,"month"),g=Bk(m,1),h=g[0],y=r.setMonth(a,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),b=function(E,T){return r.addMonth(E,T)},$=function(E){var T=r.getMonth(E);return n.monthFormat?nr(E,{locale:n,format:n.monthFormat,generateConfig:r}):v[T]},C=function(){return jk({},"".concat(t,"-cell-in-view"),!0)},x=s?function(w,E){var T=r.setDate(w,1),N=r.setMonth(T,r.getMonth(T)+1),O=r.addDate(N,-1);return s(T,E)&&s(O,E)}:null,R=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){d("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ws,{superOffset:function(E){return r.addYear(a,E)},onChange:c,getStart:function(E){return r.setMonth(E,0)},getEnd:function(E){return r.setMonth(E,11)}},R),l.createElement(Rd,s0({},e,{disabledDate:x,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:b,getCellText:$,getCellClassName:C}))))}function qu(e){"@babel/helpers - typeof";return qu=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},qu(e)}function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.apply(this,arguments)}function qk(e,t,n){return t=Yk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yk(e){var t=Uk(e,"string");return qu(t)=="symbol"?t:String(t)}function Uk(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gk(e,t){return Zk(e)||Qk(e,t)||Kk(e,t)||Xk()}function Xk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
244
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kk(e,t){if(e){if(typeof e=="string")return xM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xM(e,t)}}function xM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Zk(e){if(Array.isArray(e))return e}function Jk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,d="".concat(t,"-quarter-panel"),f=ks(e,"quarter"),m=Gk(f,1),g=m[0],h=r.setMonth(a,0),y=function(x,R){return r.addMonth(x,R*3)},v=function(x){return nr(x,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},b=function(){return qk({},"".concat(t,"-cell-in-view"),!0)},$=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ws,{superOffset:function(x){return r.addYear(a,x)},onChange:s,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},$),l.createElement(Rd,c0({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:h,getCellDate:y,getCellText:v,getCellClassName:b}))))}function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(this,arguments)}function eW(e,t,n){return t=tW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tW(e){var t=nW(e,"string");return Yu(t)=="symbol"?t:String(t)}function nW(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rW(e,t){return lW(e)||iW(e,t)||aW(e,t)||oW()}function oW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
245
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aW(e,t){if(e){if(typeof e=="string")return wM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wM(e,t)}}function wM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function lW(e){if(Array.isArray(e))return e}function sW(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,s=e.hoverValue,c=e.hoverRangeValue,d=r.locale,f="".concat(t,"-week-panel-row"),m=function(h){var y={};if(c){var v=rW(c,2),b=v[0],$=v[1],C=nu(n,d,b,h),x=nu(n,d,$,h);y["".concat(f,"-range-start")]=C,y["".concat(f,"-range-end")]=x,y["".concat(f,"-range-hover")]=!C&&!x&&Xp(n,b,$,h)}return s&&(y["".concat(f,"-hover")]=s.some(function(R){return nu(n,d,h,R)})),K(f,eW({},"".concat(f,"-selected"),!c&&nu(n,d,a,h)),y)};return l.createElement(Qp,u0({},e,{mode:"week",panelName:"week",rowClassName:m}))}function Uu(e){"@babel/helpers - typeof";return Uu=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},Uu(e)}function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d0.apply(this,arguments)}function cW(e,t,n){return t=uW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uW(e){var t=dW(e,"string");return Uu(t)=="symbol"?t:String(t)}function dW(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fW(e,t){return hW(e)||gW(e,t)||pW(e,t)||mW()}function mW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
246
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pW(e,t){if(e){if(typeof e=="string")return EM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EM(e,t)}}function EM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function hW(e){if(Array.isArray(e))return e}function yW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-year-panel"),m=ks(e,"year"),g=fW(m,1),h=g[0],y=function(O){var P=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,P)},v=function(O){var P=y(O);return r.addYear(P,9)},b=y(a),$=v(a),C=r.addYear(b,-1),x=function(O,P){return r.addYear(O,P)},R=function(O){return nr(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},w=function(O){return cW({},"".concat(t,"-cell-in-view"),cl(r,O,b)||cl(r,O,$)||Xp(r,b,$,O))},E=s?function(N,O){var P=r.setMonth(N,0),B=r.setDate(P,1),L=r.addYear(B,1),V=r.addDate(L,-1);return s(B,O)&&s(V,O)}:null,T=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){d("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},nr(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-",nr($,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(hl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ws,{superOffset:function(O){return r.addYear(a,O*10)},onChange:c,getStart:y,getEnd:v},T),l.createElement(Rd,d0({},e,{disabledDate:E,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:C,getCellDate:x,getCellText:R,getCellClassName:w}))))}function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}function MM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function RM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MM(Object(n),!0).forEach(function(r){uN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uN(e,t,n){return t=bW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bW(e){var t=vW(e,"string");return Gu(t)=="symbol"?t:String(t)}function vW(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TM(e){return $W(e)||CW(e)||dN(e)||SW()}function SW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
247
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $W(e){if(Array.isArray(e))return m0(e)}function Yc(e,t){return EW(e)||wW(e,t)||dN(e,t)||xW()}function xW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
248
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dN(e,t){if(e){if(typeof e=="string")return m0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m0(e,t)}}function m0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function EW(e){if(Array.isArray(e))return e}var MW={date:Qp,datetime:Mk,week:sW,month:Wk,quarter:Jk,year:yW,decade:Dk,time:cN};function RW(e,t){var n=e.classNames,r=e.styles,a=e.locale,s=e.generateConfig,c=e.direction,d=e.prefixCls,f=e.tabIndex,m=f===void 0?0:f,g=e.multiple,h=e.defaultValue,y=e.value,v=e.onChange,b=e.onSelect,$=e.defaultPickerValue,C=e.pickerValue,x=e.onPickerValueChange,R=e.mode,w=e.onPanelChange,E=e.picker,T=E===void 0?"date":E,N=e.showTime,O=e.hoverValue,P=e.hoverRangeValue,B=e.cellRender,L=e.dateRender,V=e.monthCellRender,G=e.components,Y=G===void 0?{}:G,q=e.hideHeader,H=l.useContext(Ho)||{},_=H.prefixCls,j=H.classNames,I=H.styles,D=_||d||"rc-picker",F=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:F.current}});var A=k6(e),z=Yc(A,4),k=z[0],X=z[1],Q=z[2],Z=z[3],J=L6(a,X),oe=T==="date"&&N?"datetime":T,ne=l.useMemo(function(){return W6(oe,Q,Z,k,J)},[oe,Q,Z,k,J]),re=s.getNow(),ce=Yt(T||"date",R),fe=Yc(ce,2),le=fe[0],pe=fe[1],ae=le==="date"&&ne?"datetime":le,se=iN(s,a,oe),he=Yt(h,y),ge=Yc(he,2),be=ge[0],Ne=ge[1],ve=l.useMemo(function(){var Oe=gl(be).filter(function(Ke){return Ke});return g?Oe:Oe.slice(0,1)},[be,g]),xe=ct(function(Oe){Ne(Oe),v&&(Oe===null||ve.length!==Oe.length||ve.some(function(Ke,nt){return!Tr(s,a,Ke,Oe[nt],oe)}))&&v?.(g?Oe:Oe[0])}),de=ct(function(Oe){if(b?.(Oe),le===T){var Ke=g?se(ve,Oe):[Oe];xe(Ke)}}),Se=Yt($||ve[0]||re,C),Me=Yc(Se,2),Ae=Me[0],Ie=Me[1];l.useEffect(function(){ve[0]&&!C&&Ie(ve[0])},[ve[0]]);var Ye=function(Ke,nt){w?.(Ke||C,nt||le)},Ze=function(Ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ie(Ke),x?.(Ke),nt&&Ye(Ke)},He=function(Ke,nt){pe(Ke),nt&&Ze(nt),Ye(nt,Ke)},Ve=function(Ke){if(de(Ke),Ze(Ke),le!==T){var nt=["decade","year"],ot=[].concat(nt,["month"]),lt={quarter:[].concat(nt,["quarter"]),week:[].concat(TM(ot),["week"]),date:[].concat(TM(ot),["date"])},Ct=lt[T]||ot,$t=Ct.indexOf(le),ke=Ct[$t+1];ke&&He(ke,Ke)}},_e=l.useMemo(function(){var Oe,Ke;if(Array.isArray(P)){var nt=Yc(P,2);Oe=nt[0],Ke=nt[1]}else Oe=P;return!Oe&&!Ke?null:(Oe=Oe||Ke,Ke=Ke||Oe,s.isAfter(Oe,Ke)?[Ke,Oe]:[Oe,Ke])},[P,s]),Ue=u1(B,L,V),Pe=Y[ae]||MW[ae]||Qp,Ce=l.useMemo(function(){var Oe,Ke,nt,ot;return{classNames:(Oe=(Ke=j?.popup)!==null&&Ke!==void 0?Ke:n)!==null&&Oe!==void 0?Oe:{},styles:(nt=(ot=I?.popup)!==null&&ot!==void 0?ot:r)!==null&&nt!==void 0?nt:{}}},[j,n,I,r]),Fe=l.useContext(mi),Je=l.useMemo(function(){return RM(RM({},Fe),{},{hideHeader:q})},[Fe,q]),Be="".concat(D,"-panel"),Xe=Gp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(lN.Provider,{value:Ce},l.createElement(mi.Provider,{value:Je},l.createElement("div",{ref:F,tabIndex:m,className:K(Be,uN({},"".concat(Be,"-rtl"),c==="rtl"))},l.createElement(Pe,f0({},Xe,{showTime:ne,prefixCls:D,locale:J,generateConfig:s,onModeChange:He,pickerValue:Ae,onPickerValueChange:function(Ke){Ze(Ke,!0)},value:ve[0],onSelect:Ve,values:ve,cellRender:Ue,hoverRangeValue:_e,hoverValue:O})))))}var jm=l.memo(l.forwardRef(RW));function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){TW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TW(e,t,n){return t=OW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OW(e){var t=NW(e,"string");return Xu(t)=="symbol"?t:String(t)}function NW(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,s=e.needConfirm,c=e.onSubmit,d=e.range,f=e.hoverValue,m=l.useContext(Ho),g=m.prefixCls,h=m.generateConfig,y=l.useCallback(function(R,w){return ru(h,t,R,w)},[h,t]),v=l.useMemo(function(){return y(r,1)},[r,y]),b=function(w){a(y(w,-1))},$={onCellDblClick:function(){s&&c()}},C=t==="time",x=Li(Li({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:C});return d?x.hoverRangeValue=f:x.hoverValue=f,n?l.createElement("div",{className:"".concat(g,"-panels")},l.createElement(mi.Provider,{value:Li(Li({},$),{},{hideNext:!0})},l.createElement(jm,x)),l.createElement(mi.Provider,{value:Li(Li({},$),{},{hidePrev:!0})},l.createElement(jm,p0({},x,{pickerValue:v,onPickerValueChange:b})))):l.createElement(mi.Provider,{value:Li({},$)},l.createElement(jm,x))}function NM(e){return typeof e=="function"?e():e}function PW(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(s,c){var d=s.label,f=s.value;return l.createElement("li",{key:c,onClick:function(){r(NM(f))},onMouseEnter:function(){a(NM(f))},onMouseLeave:function(){a(null)}},d)}))):null}function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){g0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g0(e,t,n){return t=AW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AW(e){var t=DW(e,"string");return Ku(t)=="symbol"?t:String(t)}function DW(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(this,arguments)}function Uc(e,t){return BW(e)||HW(e,t)||_W(e,t)||jW()}function jW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
249
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _W(e,t){if(e){if(typeof e=="string")return PM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PM(e,t)}}function PM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function BW(e){if(Array.isArray(e))return e}function fN(e){var t,n,r=e.panelRender,a=e.internalMode,s=e.picker,c=e.showNow,d=e.range,f=e.multiple,m=e.activeInfo,g=m===void 0?[0,0,0]:m,h=e.presets,y=e.onPresetHover,v=e.onPresetSubmit,b=e.onFocus,$=e.onBlur,C=e.onPanelMouseDown,x=e.direction,R=e.value,w=e.onSelect,E=e.isInvalid,T=e.defaultOpenValue,N=e.onOk,O=e.onSubmit,P=e.classNames,B=e.styles,L=l.useContext(Ho),V=L.prefixCls,G="".concat(V,"-panel"),Y=x==="rtl",q=l.useRef(null),H=l.useRef(null),_=l.useState(0),j=Uc(_,2),I=j[0],D=j[1],F=l.useState(0),A=Uc(F,2),z=A[0],k=A[1],X=l.useState(0),Q=Uc(X,2),Z=Q[0],J=Q[1],oe=function(He){He.width&&D(He.width)},ne=Uc(g,3),re=ne[0],ce=ne[1],fe=ne[2],le=l.useState(0),pe=Uc(le,2),ae=pe[0],se=pe[1];l.useEffect(function(){se(10)},[re]),l.useEffect(function(){if(d&&H.current){var Ze,He=((Ze=q.current)===null||Ze===void 0?void 0:Ze.offsetWidth)||0,Ve=H.current.getBoundingClientRect();if(!Ve.height||Ve.right<0){se(function(Ce){return Math.max(0,Ce-1)});return}var _e=(Y?ce-He:re)-Ve.left;if(J(_e),I&&I<fe){var Ue=Y?Ve.right-(ce-He+I):re+He-Ve.left-I,Pe=Math.max(0,Ue);k(Pe)}else k(0)}},[ae,Y,I,re,ce,fe,d]);function he(Ze){return Ze.filter(function(He){return He})}var ge=l.useMemo(function(){return he(gl(R))},[R]),be=s==="time"&&!ge.length,Ne=l.useMemo(function(){return be?he([T]):ge},[be,ge,T]),ve=be?T:ge,xe=l.useMemo(function(){return Ne.length?Ne.some(function(Ze){return E(Ze)}):!0},[Ne,E]),de=function(){be&&w(T),N(),O()},Se=l.createElement("div",{className:"".concat(V,"-panel-layout")},l.createElement(PW,{prefixCls:V,presets:h,onClick:v,onHover:y}),l.createElement("div",null,l.createElement(IW,sp({},e,{value:ve})),l.createElement(IF,sp({},e,{showNow:f?!1:c,invalid:xe,onSubmit:de}))));r&&(Se=r(Se));var Me="".concat(G,"-container"),Ae="marginLeft",Ie="marginRight",Ye=l.createElement("div",{onMouseDown:C,tabIndex:-1,className:K(Me,"".concat(V,"-").concat(a,"-panel-container"),P==null||(t=P.popup)===null||t===void 0?void 0:t.container),style:zW(g0(g0({},Y?Ie:Ae,z),Y?Ae:Ie,"auto"),B==null||(n=B.popup)===null||n===void 0?void 0:n.container),onFocus:b,onBlur:$},Se);return d&&(Ye=l.createElement("div",{onMouseDown:C,ref:H,className:K("".concat(V,"-range-wrapper"),"".concat(V,"-").concat(s,"-range-wrapper"))},l.createElement("div",{ref:q,className:"".concat(V,"-range-arrow"),style:{left:Z}}),l.createElement(oo,{onResize:oe},Ye))),Ye}function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function AM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(n),!0).forEach(function(r){LW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LW(e,t,n){return t=VW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VW(e){var t=FW(e,"string");return Qu(t)=="symbol"?t:String(t)}function FW(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mN(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,s=e.locale,c=e.preserveInvalidOnBlur,d=e.inputReadOnly,f=e.required,m=e["aria-required"],g=e.onSubmit,h=e.onFocus,y=e.onBlur,v=e.onInputChange,b=e.onInvalid,$=e.open,C=e.onOpenChange,x=e.onKeyDown,R=e.onChange,w=e.activeHelp,E=e.name,T=e.autoComplete,N=e.id,O=e.value,P=e.invalid,B=e.placeholder,L=e.disabled,V=e.activeIndex,G=e.allHelp,Y=e.picker,q=function(z,k){var X=a.locale.parse(s.locale,z,[k]);return X&&a.isValidate(X)?X:null},H=n[0],_=l.useCallback(function(A){return nr(A,{locale:s,format:H,generateConfig:a})},[s,a,H]),j=l.useMemo(function(){return O.map(_)},[O,_]),I=l.useMemo(function(){var A=Y==="time"?8:10,z=typeof H=="function"?H(a.getNow()).length:H.length;return Math.max(A,z)+2},[H,Y,a]),D=function(z){for(var k=0;k<n.length;k+=1){var X=n[k];if(typeof X=="string"){var Q=q(z,X);if(Q)return Q}}return!1},F=function(z){function k(Z){return z!==void 0?Z[z]:Z}var X=Pn(e,{aria:!0,data:!0}),Q=AM(AM({},X),{},{format:r,validateFormat:function(J){return!!D(J)},preserveInvalidOnBlur:c,readOnly:d,required:f,"aria-required":m,name:E,autoComplete:T,size:I,id:k(N),value:k(j)||"",invalid:k(P),placeholder:k(B),active:V===z,helped:G||w&&V===z,disabled:k(L),onFocus:function(J){h(J,z)},onBlur:function(J){y(J,z)},onSubmit:g,onChange:function(J){v();var oe=D(J);if(oe){b(!1,z),R(oe,z);return}b(!!J,z)},onHelp:function(){C(!0,{index:z})},onKeyDown:function(J){var oe=!1;if(x?.(J,function(){oe=!0}),!J.defaultPrevented&&!oe)switch(J.key){case"Escape":C(!1,{index:z});break;case"Enter":$||C(!0);break}}},t?.({valueTexts:j}));return Object.keys(Q).forEach(function(Z){Q[Z]===void 0&&delete Q[Z]}),Q};return[F,_]}var kW=["onMouseEnter","onMouseLeave"];function pN(e){return l.useMemo(function(){return Gp(e,kW)},[e])}var WW=["icon","type"],qW=["onClear"];function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}function gN(e,t){if(e==null)return{};var n=YW(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YW(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Zp(e){var t=e.icon,n=e.type,r=gN(e,WW),a=l.useContext(Ho),s=a.prefixCls,c=a.classNames,d=a.styles;return t?l.createElement("span",cp({className:K("".concat(s,"-").concat(n),c.suffix),style:d.suffix},r),t):null}function h0(e){var t=e.onClear,n=gN(e,qW);return l.createElement(Zp,cp({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function UW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hN(r.key),r)}}function XW(e,t,n){return t&&GW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rm(e,t,n){return t=hN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e){var t=KW(e,"string");return Zu(t)=="symbol"?t:String(t)}function KW(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xy=["YYYY","MM","DD","HH","mm","ss","SSS"],DM="顧",QW=(function(){function e(t){UW(this,e),rm(this,"format",void 0),rm(this,"maskFormat",void 0),rm(this,"cells",void 0),rm(this,"maskCells",void 0),this.format=t;var n=Xy.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return DM.repeat(d.length)});var a=new RegExp("(".concat(Xy.join("|"),")")),s=(t.split(a)||[]).filter(function(d){return d}),c=0;this.cells=s.map(function(d){var f=Xy.includes(d),m=c,g=c+d.length;return c=g,{text:d,mask:f,start:m,end:g}}),this.maskCells=this.cells.filter(function(d){return d.mask})}return XW(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,s=r.end;return[a||0,s||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],s=n[r];if(!s||a!==DM&&a!==s)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,s=0;s<this.maskCells.length;s+=1){var c=this.maskCells[s],d=c.start,f=c.end;if(n>=d&&n<=f)return s;var m=Math.min(Math.abs(n-d),Math.abs(n-f));m<r&&(r=m,a=s)}return a}}]),e})();function ZW(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}var JW=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}function jM(e,t,n){return t=eq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eq(e){var t=tq(e,"string");return Ju(t)=="symbol"?t:String(t)}function tq(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vi(e,t){return aq(e)||oq(e,t)||rq(e,t)||nq()}function nq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
250
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rq(e,t){if(e){if(typeof e=="string")return _M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _M(e,t)}}function _M(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function aq(e){if(Array.isArray(e))return e}function iq(e,t){if(e==null)return{};var n=lq(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lq(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var b0=l.forwardRef(function(e,t){var n=e.className,r=e.active,a=e.showActiveCls,s=a===void 0?!0:a,c=e.suffixIcon,d=e.format,f=e.validateFormat,m=e.onChange;e.onInput;var g=e.helped,h=e.onHelp,y=e.onSubmit,v=e.onKeyDown,b=e.preserveInvalidOnBlur,$=b===void 0?!1:b,C=e.invalid,x=e.clearIcon,R=iq(e,JW),w=e.value,E=e.onFocus,T=e.onBlur,N=e.onMouseUp,O=l.useContext(Ho),P=O.prefixCls,B=O.input,L=B===void 0?"input":B,V=O.classNames,G=O.styles,Y="".concat(P,"-input"),q=l.useState(!1),H=Vi(q,2),_=H[0],j=H[1],I=l.useState(w),D=Vi(I,2),F=D[0],A=D[1],z=l.useState(""),k=Vi(z,2),X=k[0],Q=k[1],Z=l.useState(null),J=Vi(Z,2),oe=J[0],ne=J[1],re=l.useState(null),ce=Vi(re,2),fe=ce[0],le=ce[1],pe=F||"";l.useEffect(function(){A(w)},[w]);var ae=l.useRef(null),se=l.useRef(null);l.useImperativeHandle(t,function(){return{nativeElement:ae.current,inputElement:se.current,focus:function(Je){se.current.focus(Je)},blur:function(){se.current.blur()}}});var he=l.useMemo(function(){return new QW(d||"")},[d]),ge=l.useMemo(function(){return g?[0,0]:he.getSelection(oe)},[he,oe,g]),be=Vi(ge,2),Ne=be[0],ve=be[1],xe=function(Je){Je&&Je!==d&&Je!==w&&h()},de=ct(function(Fe){f(Fe)&&m(Fe),A(Fe),xe(Fe)}),Se=function(Je){if(!d){var Be=Je.target.value;xe(Be),A(Be),m(Be)}},Me=function(Je){var Be=Je.clipboardData.getData("text");f(Be)&&de(Be)},Ae=l.useRef(!1),Ie=function(){Ae.current=!0},Ye=function(Je){var Be=Je.target,Xe=Be.selectionStart,Oe=he.getMaskCellIndex(Xe);ne(Oe),le({}),N?.(Je),Ae.current=!1},Ze=function(Je){j(!0),ne(0),Q(""),E(Je)},He=function(Je){T(Je)},Ve=function(Je){j(!1),He(Je)};m1(r,function(){!r&&!$&&A(w)});var _e=function(Je){Je.key==="Enter"&&f(pe)&&y(),v?.(Je)},Ue=function(Je){_e(Je);var Be=Je.key,Xe=null,Oe=null,Ke=ve-Ne,nt=d.slice(Ne,ve),ot=function(ke){ne(function(et){var De=et+ke;return De=Math.max(De,0),De=Math.min(De,he.size()-1),De})},lt=function(ke){var et=ZW(nt),De=Vi(et,3),ze=De[0],We=De[1],Re=De[2],Ge=pe.slice(Ne,ve),Qe=Number(Ge);if(isNaN(Qe))return String(Re||(ke>0?ze:We));var at=Qe+ke,ut=We-ze+1;return String(ze+(ut+at-ze)%ut)};switch(Be){case"Backspace":case"Delete":Xe="",Oe=nt;break;case"ArrowLeft":Xe="",ot(-1);break;case"ArrowRight":Xe="",ot(1);break;case"ArrowUp":Xe="",Oe=lt(1);break;case"ArrowDown":Xe="",Oe=lt(-1);break;default:isNaN(Number(Be))||(Xe=X+Be,Oe=Xe);break}if(Xe!==null&&(Q(Xe),Xe.length>=Ke&&(ot(1),Q(""))),Oe!==null){var Ct=pe.slice(0,Ne)+c1(Oe,Ke)+pe.slice(ve);de(Ct.slice(0,d.length))}le({})},Pe=l.useRef();Pt(function(){if(!(!_||!d||Ae.current)){if(!he.match(pe)){de(d);return}return se.current.setSelectionRange(Ne,ve),Pe.current=Lt(function(){se.current.setSelectionRange(Ne,ve)}),function(){Lt.cancel(Pe.current)}}},[he,d,_,pe,oe,Ne,ve,fe,de]);var Ce=d?{onFocus:Ze,onBlur:Ve,onKeyDown:Ue,onMouseDown:Ie,onMouseUp:Ye,onPaste:Me}:{};return l.createElement("div",{ref:ae,className:K(Y,jM(jM({},"".concat(Y,"-active"),r&&s),"".concat(Y,"-placeholder"),g),n)},l.createElement(L,y0({ref:se,"aria-invalid":C,autoComplete:"off"},R,{onKeyDown:_e,onBlur:He},Ce,{value:pe,onChange:Se,className:V.input,style:G.input})),l.createElement(Zp,{type:"suffix",icon:c}),x)}),sq=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],cq=["index"];function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mu.apply(this,arguments)}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ou(e,t,n){return t=uq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uq(e){var t=dq(e,"string");return Ps(t)=="symbol"?t:String(t)}function dq(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BM(e,t){return gq(e)||pq(e,t)||mq(e,t)||fq()}function fq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
251
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mq(e,t){if(e){if(typeof e=="string")return LM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LM(e,t)}}function LM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function gq(e){if(Array.isArray(e))return e}function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}function VM(e,t){if(e==null)return{};var n=hq(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hq(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function yq(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,s=e.suffixIcon,c=e.separator,d=c===void 0?"~":c,f=e.activeIndex;e.activeHelp,e.allHelp;var m=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var g=e.placeholder,h=e.className,y=e.style,v=e.onClick,b=e.onClear,$=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,x=e.invalid;e.inputReadOnly;var R=e.direction;e.onOpenChange;var w=e.onActiveInfo;e.placement;var E=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,N=e.tabIndex,O=VM(e,sq),P=R==="rtl",B=l.useContext(Ho),L=B.prefixCls,V=B.classNames,G=B.styles,Y=l.useMemo(function(){if(typeof n=="string")return[n];var ce=n||{};return[ce.start,ce.end]},[n]),q=l.useRef(),H=l.useRef(),_=l.useRef(),j=function(fe){var le;return(le=[H,_][fe])===null||le===void 0?void 0:le.current};l.useImperativeHandle(t,function(){return{nativeElement:q.current,focus:function(fe){if(Ps(fe)==="object"){var le,pe=fe||{},ae=pe.index,se=ae===void 0?0:ae,he=VM(pe,cq);(le=j(se))===null||le===void 0||le.focus(he)}else{var ge;(ge=j(fe??0))===null||ge===void 0||ge.focus()}},blur:function(){var fe,le;(fe=j(0))===null||fe===void 0||fe.blur(),(le=j(1))===null||le===void 0||le.blur()}}});var I=pN(O),D=l.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),F=mN(om(om({},e),{},{id:Y,placeholder:D})),A=BM(F,1),z=A[0],k=l.useState({position:"absolute",width:0}),X=BM(k,2),Q=X[0],Z=X[1],J=ct(function(){var ce=j(f);if(ce){var fe=ce.nativeElement.getBoundingClientRect(),le=q.current.getBoundingClientRect(),pe=fe.left-le.left;Z(function(ae){return om(om({},ae),{},{width:fe.width,left:pe})}),w([fe.left,fe.right,le.width])}});l.useEffect(function(){J()},[f]);var oe=a&&($[0]&&!C[0]||$[1]&&!C[1]),ne=T&&!C[0],re=T&&!ne&&!C[1];return l.createElement(oo,{onResize:J},l.createElement("div",mu({},I,{className:K(L,"".concat(L,"-range"),ou(ou(ou(ou({},"".concat(L,"-focused"),m),"".concat(L,"-disabled"),C.every(function(ce){return ce})),"".concat(L,"-invalid"),x.some(function(ce){return ce})),"".concat(L,"-rtl"),P),h),style:y,ref:q,onClick:v,onMouseDown:function(fe){var le=fe.target;le!==H.current.inputElement&&le!==_.current.inputElement&&fe.preventDefault(),E?.(fe)}}),r&&l.createElement("div",{className:K("".concat(L,"-prefix"),V.prefix),style:G.prefix},r),l.createElement(b0,mu({ref:H},z(0),{className:"".concat(L,"-input-start"),autoFocus:ne,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(L,"-range-separator")},d),l.createElement(b0,mu({ref:_},z(1),{className:"".concat(L,"-input-end"),autoFocus:re,tabIndex:N,"date-range":"end"})),l.createElement("div",{className:"".concat(L,"-active-bar"),style:Q}),l.createElement(Zp,{type:"suffix",icon:s}),oe&&l.createElement(h0,{icon:a,onClear:b})))}var bq=l.forwardRef(yq);function ed(e){"@babel/helpers - typeof";return ed=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},ed(e)}function FM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function am(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){vq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vq(e,t,n){return t=Sq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=Cq(e,"string");return ed(t)=="symbol"?t:String(t)}function Cq(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yN(e,t){return l.useMemo(function(){var n=am(am({},e),{},{popup:e?.popup||{}}),r=am(am({},t),{},{popup:t?.popup||{}});return[n,r]},[e,t])}function td(e){"@babel/helpers - typeof";return td=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},td(e)}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pu.apply(this,arguments)}function kM(e){return wq(e)||xq(e)||bN(e)||$q()}function $q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
252
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wq(e){if(Array.isArray(e))return v0(e)}function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function im(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WM(Object(n),!0).forEach(function(r){Eq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eq(e,t,n){return t=Mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mq(e){var t=Rq(e,"string");return td(t)=="symbol"?t:String(t)}function Rq(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vo(e,t){return Nq(e)||Oq(e,t)||bN(e,t)||Tq()}function Tq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
253
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bN(e,t){if(e){if(typeof e=="string")return v0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v0(e,t)}}function v0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Nq(e){if(Array.isArray(e))return e}function qM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function lm(e){return e===1?"end":"start"}function Iq(e,t){var n=U6(e,function(){var kt=e.disabled,vt=e.allowEmpty,wt=qM(kt,!1),un=qM(vt,!1);return{disabled:wt,allowEmpty:un}}),r=vo(n,6),a=r[0],s=r[1],c=r[2],d=r[3],f=r[4],m=r[5],g=a.prefixCls,h=a.rootClassName,y=a.styles,v=a.classNames,b=a.previewValue,$=a.defaultValue,C=a.value,x=a.needConfirm,R=a.onKeyDown,w=a.disabled,E=a.allowEmpty,T=a.disabledDate,N=a.minDate,O=a.maxDate,P=a.defaultOpen,B=a.open,L=a.onOpenChange,V=a.locale,G=a.generateConfig,Y=a.picker,q=a.showNow,H=a.showToday,_=a.showTime,j=a.mode,I=a.onPanelChange,D=a.onCalendarChange,F=a.onOk,A=a.defaultPickerValue,z=a.pickerValue,k=a.onPickerValueChange,X=a.inputReadOnly,Q=a.suffixIcon,Z=a.onFocus,J=a.onBlur,oe=a.presets,ne=a.ranges,re=a.components,ce=a.cellRender,fe=a.dateRender,le=a.monthCellRender,pe=a.onClick,ae=X6(t),se=yN(v,y),he=vo(se,2),ge=he[0],be=he[1],Ne=G6(B,P,w,L),ve=vo(Ne,2),xe=ve[0],de=ve[1],Se=function(vt,wt){(w.some(function(un){return!un})||!vt)&&de(vt,wt)},Me=rN(G,V,d,!0,!1,$,C,D,F),Ae=vo(Me,5),Ie=Ae[0],Ye=Ae[1],Ze=Ae[2],He=Ae[3],Ve=Ae[4],_e=Ze(),Ue=Q6(w,E,xe),Pe=vo(Ue,9),Ce=Pe[0],Fe=Pe[1],Je=Pe[2],Be=Pe[3],Xe=Pe[4],Oe=Pe[5],Ke=Pe[6],nt=Pe[7],ot=Pe[8],lt=function(vt,wt){Fe(!0),Z?.(vt,{range:lm(wt??Be)})},Ct=function(vt,wt){Fe(!1),J?.(vt,{range:lm(wt??Be)})},$t=l.useMemo(function(){if(!_)return null;var kt=_.disabledTime,vt=kt?function(wt){var un=lm(Be),Fn=j6(_e,Ke,Be);return kt(wt,un,{from:Fn})}:void 0;return im(im({},_),{},{disabledTime:vt})},[_,Be,_e,Ke]),ke=Yt([Y,Y],j),et=vo(ke,2),De=et[0],ze=et[1],We=De[Be]||Y,Re=We==="date"&&$t?"datetime":We,Ge=Re===Y&&Re!=="time",Qe=aN(Y,We,q,H,!0),at=oN(a,Ie,Ye,Ze,He,w,d,Ce,xe,m),ut=vo(at,2),_t=ut[0],Rt=ut[1],Et=XV(_e,w,Ke,G,V,T),mn=H6(_e,m,E),Tt=vo(mn,2),pt=Tt[0],tt=Tt[1],mt=Z6(G,V,_e,De,xe,Be,s,Ge,A,z,$t?.defaultOpenValue,k,N,O),Ot=vo(mt,2),Ut=Ot[0],rn=Ot[1],Gt=ct(function(kt,vt,wt){var un=fu(De,Be,vt);if((un[0]!==De[0]||un[1]!==De[1])&&ze(un),I&&wt!==!1){var Fn=kM(_e);kt&&(Fn[Be]=kt),I(Fn,un)}}),cn=function(vt,wt){return fu(_e,wt,vt)},pn=function(vt,wt){var un=_e;vt&&(un=cn(vt,Be)),nt(Be);var Fn=Oe(un);He(un),_t(Be,Fn===null),Fn===null?Se(!1,{force:!0}):wt||ae.current.focus({index:Fn})},gr=function(vt){var wt,un=vt.target.getRootNode();if(!ae.current.nativeElement.contains((wt=un.activeElement)!==null&&wt!==void 0?wt:document.activeElement)){var Fn=w.findIndex(function(Us){return!Us});Fn>=0&&ae.current.focus({index:Fn})}Se(!0),pe?.(vt)},gn=function(){Rt(null),Se(!1,{force:!0})},Cr=l.useState(null),zn=vo(Cr,2),Kn=zn[0],Qn=zn[1],Nr=l.useState(null),bt=vo(Nr,2),Mn=bt[0],In=bt[1],$r=l.useMemo(function(){return Mn||_e},[_e,Mn]);l.useEffect(function(){xe||In(null)},[xe]);var xr=l.useState([0,0,0]),Zn=vo(xr,2),An=Zn[0],Eo=Zn[1],ta=function(vt,wt){b==="hover"&&(In(vt),Qn(wt))},Mo=K6(oe,ne),Bo=function(vt){ta(vt,"preset")},Lo=function(vt){var wt=Rt(vt);wt&&Se(!1,{force:!0})},rt=function(vt){pn(vt)},xt=function(vt){ta(vt?cn(vt,Be):null,"cell")},lo=function(vt){Se(!0),lt(vt)},Ia=function(){Je("panel")},Vo=function(vt){var wt=fu(_e,Be,vt);He(wt),!x&&!c&&s===Re&&pn(vt)},Ur=function(){Se(!1)},Pa=u1(ce,fe,le,lm(Be)),vl=_e[Be]||null,Fo=ct(function(kt){return m(kt,{activeIndex:Be})}),Mt=l.useMemo(function(){var kt=Pn(a,!1),vt=nn(a,[].concat(kM(Object.keys(kt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]));return vt},[a]),yt=l.createElement(fN,pu({},Mt,{showNow:Qe,showTime:$t,range:!0,multiplePanel:Ge,activeInfo:An,disabledDate:Et,onFocus:lo,onBlur:Ct,onPanelMouseDown:Ia,picker:Y,mode:We,internalMode:Re,onPanelChange:Gt,format:f,value:vl,isInvalid:Fo,onChange:null,onSelect:Vo,pickerValue:Ut,defaultOpenValue:gl(_?.defaultOpenValue)[Be],onPickerValueChange:rn,hoverValue:$r,onHover:xt,needConfirm:x,onSubmit:pn,onOk:Ve,presets:Mo,onPresetHover:Bo,onPresetSubmit:Lo,onNow:rt,cellRender:Pa,classNames:ge,styles:be})),Jn=function(vt,wt){var un=cn(vt,wt);He(un)},Ar=function(){Je("input")},Sl=function(vt,wt){var un=Ke.length,Fn=Ke[un-1];if(un&&Fn!==wt&&x&&!E[Fn]&&!ot(Fn)&&_e[Fn]){ae.current.focus({index:Fn});return}Je("input"),Se(!0,{inherit:!0}),Be!==wt&&xe&&!x&&c&&pn(null,!0),Xe(wt),lt(vt,wt)},ag=function(vt,wt){if(Se(!1),!x&&Je()==="input"){var un=Oe(_e);_t(Be,un===null)}Ct(vt,wt)},Cl=function(vt,wt){vt.key==="Tab"&&pn(null,!0),R?.(vt,wt)},Ro=l.useMemo(function(){return{prefixCls:g,locale:V,generateConfig:G,button:re.button,input:re.input,classNames:ge,styles:be}},[g,V,G,re.button,re.input,ge,be]);return Pt(function(){xe&&Be!==void 0&&Gt(null,Y,!1)},[xe,Be,Y]),Pt(function(){var kt=Je();!xe&&kt==="input"&&(Se(!1),pn(null,!0)),!xe&&c&&!x&&kt==="panel"&&(Se(!0),pn())},[xe]),l.createElement(Ho.Provider,{value:Ro},l.createElement(A6,pu({},_6(a),{popupElement:yt,popupStyle:be.popup.root,popupClassName:K(h,ge.popup.root),visible:xe,onClose:Ur,range:!0}),l.createElement(bq,pu({},a,{ref:ae,className:K(a.className,h,ge.root),style:im(im({},be.root),a.style),suffixIcon:Q,activeIndex:Ce||xe?Be:null,activeHelp:!!Mn,allHelp:!!Mn&&Kn==="preset",focused:Ce,onFocus:Sl,onBlur:ag,onKeyDown:Cl,onSubmit:pn,value:$r,maskFormat:f,onChange:Jn,onInputChange:Ar,format:d,inputReadOnly:X,disabled:w,open:xe,onOpenChange:Se,onClick:gr,onClear:gn,invalid:pt,onInvalid:tt,onActiveInfo:Eo}))))}var Pq=l.forwardRef(Iq);function zq(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,s=a===void 0?"×":a,c=e.formatDate,d=e.disabled,f=e.maxTagCount,m=e.placeholder,g="".concat(t,"-selector"),h="".concat(t,"-selection"),y="".concat(h,"-overflow");function v(C,x){return l.createElement("span",{className:K("".concat(h,"-item")),title:typeof C=="string"?C:null},l.createElement("span",{className:"".concat(h,"-item-content")},C),!d&&x&&l.createElement("span",{onMouseDown:function(w){w.preventDefault()},onClick:x,className:"".concat(h,"-item-remove")},s))}function b(C){var x=c(C),R=function(E){E&&E.stopPropagation(),r(C)};return v(x,R)}function $(C){var x="+ ".concat(C.length," ...");return v(x)}return l.createElement("div",{className:g},l.createElement(Ko,{prefixCls:y,data:n,renderItem:b,renderRest:$,itemKey:function(x){return c(x)},maxCount:f}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},m))}function nd(e){"@babel/helpers - typeof";return nd=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},nd(e)}var Aq=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},up.apply(this,arguments)}function YM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function UM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YM(Object(n),!0).forEach(function(r){ds(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ds(e,t,n){return t=Dq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dq(e){var t=jq(e,"string");return nd(t)=="symbol"?t:String(t)}function jq(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _q(e,t){return Vq(e)||Lq(e,t)||Bq(e,t)||Hq()}function Hq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
254
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bq(e,t){if(e){if(typeof e=="string")return GM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GM(e,t)}}function GM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function Vq(e){if(Array.isArray(e))return e}function Fq(e,t){if(e==null)return{};var n=kq(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kq(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Wq(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,s=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var d=e.locale,f=e.generateConfig,m=e.placeholder,g=e.className,h=e.style,y=e.onClick,v=e.onClear,b=e.internalPicker,$=e.value,C=e.onChange,x=e.onSubmit;e.onInputChange;var R=e.multiple,w=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,T=e.invalid;e.inputReadOnly;var N=e.direction;e.onOpenChange;var O=e.onMouseDown;e.required,e["aria-required"];var P=e.autoFocus,B=e.tabIndex,L=e.removeIcon,V=Fq(e,Aq),G=N==="rtl",Y=l.useContext(Ho),q=Y.prefixCls,H=Y.classNames,_=Y.styles,j=l.useRef(),I=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(ne){var re;(re=I.current)===null||re===void 0||re.focus(ne)},blur:function(){var ne;(ne=I.current)===null||ne===void 0||ne.blur()}}});var D=pN(V),F=function(ne){C([ne])},A=function(ne){var re=$.filter(function(ce){return ce&&!Tr(f,d,ce,ne,b)});C(re),n||x()},z=mN(UM(UM({},e),{},{onChange:F}),function(oe){var ne=oe.valueTexts;return{value:ne[0]||"",active:c}}),k=_q(z,2),X=k[0],Q=k[1],Z=!!(a&&$.length&&!E),J=R?l.createElement(l.Fragment,null,l.createElement(zq,{prefixCls:q,value:$,onRemove:A,formatDate:Q,maxTagCount:w,disabled:E,removeIcon:L,placeholder:m}),l.createElement("input",{className:"".concat(q,"-multiple-input"),value:$.map(Q).join(","),ref:I,readOnly:!0,autoFocus:P,tabIndex:B}),l.createElement(Zp,{type:"suffix",icon:s}),Z&&l.createElement(h0,{icon:a,onClear:v})):l.createElement(b0,up({ref:I},X(),{autoFocus:P,tabIndex:B,suffixIcon:s,clearIcon:Z&&l.createElement(h0,{icon:a,onClear:v}),showActiveCls:!1}));return l.createElement("div",up({},D,{className:K(q,ds(ds(ds(ds(ds({},"".concat(q,"-multiple"),R),"".concat(q,"-focused"),c),"".concat(q,"-disabled"),E),"".concat(q,"-invalid"),T),"".concat(q,"-rtl"),G),g),style:h,ref:j,onClick:y,onMouseDown:function(ne){var re,ce=ne.target;ce!==((re=I.current)===null||re===void 0?void 0:re.inputElement)&&ne.preventDefault(),O?.(ne)}}),r&&l.createElement("div",{className:K("".concat(q,"-prefix"),H.prefix),style:_.prefix},r),J)}var qq=l.forwardRef(Wq);function rd(e){"@babel/helpers - typeof";return rd=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},rd(e)}function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gu.apply(this,arguments)}function XM(e){return Gq(e)||Uq(e)||vN(e)||Yq()}function Yq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
255
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gq(e){if(Array.isArray(e))return S0(e)}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(r){Xq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xq(e,t,n){return t=Kq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kq(e){var t=Qq(e,"string");return rd(t)=="symbol"?t:String(t)}function Qq(e,t){if(rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Io(e,t){return eY(e)||Jq(e,t)||vN(e,t)||Zq()}function Zq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
256
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vN(e,t){if(e){if(typeof e=="string")return S0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S0(e,t)}}function S0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,c,d=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){m=!0,a=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw a}}return d}}function eY(e){if(Array.isArray(e))return e}function tY(e,t){var n=U6(e),r=Io(n,6),a=r[0],s=r[1],c=r[2],d=r[3],f=r[4],m=r[5],g=a,h=g.prefixCls,y=g.rootClassName,v=g.styles,b=g.classNames,$=g.previewValue,C=g.order,x=g.defaultValue,R=g.value,w=g.needConfirm,E=g.onChange,T=g.onKeyDown,N=g.disabled,O=g.disabledDate,P=g.minDate,B=g.maxDate,L=g.defaultOpen,V=g.open,G=g.onOpenChange,Y=g.locale,q=g.generateConfig,H=g.picker,_=g.showNow,j=g.showToday,I=g.showTime,D=g.mode,F=g.onPanelChange,A=g.onCalendarChange,z=g.onOk,k=g.multiple,X=g.defaultPickerValue,Q=g.pickerValue,Z=g.onPickerValueChange,J=g.inputReadOnly,oe=g.suffixIcon,ne=g.removeIcon,re=g.onFocus,ce=g.onBlur,fe=g.presets,le=g.components,pe=g.cellRender,ae=g.dateRender,se=g.monthCellRender,he=g.onClick,ge=X6(t);function be(Mt){return Mt===null?null:k?Mt:Mt[0]}var Ne=iN(q,Y,s),ve=yN(b,v),xe=Io(ve,2),de=xe[0],Se=xe[1],Me=G6(V,L,[N],G),Ae=Io(Me,2),Ie=Ae[0],Ye=Ae[1],Ze=function(yt,Jn,Ar){if(A){var Sl=ba({},Ar);delete Sl.range,A(be(yt),be(Jn),Sl)}},He=function(yt){z?.(be(yt))},Ve=rN(q,Y,d,!1,C,x,R,Ze,He),_e=Io(Ve,5),Ue=_e[0],Pe=_e[1],Ce=_e[2],Fe=_e[3],Je=_e[4],Be=Ce(),Xe=Q6([N]),Oe=Io(Xe,4),Ke=Oe[0],nt=Oe[1],ot=Oe[2],lt=Oe[3],Ct=function(yt){nt(!0),re?.(yt,{})},$t=function(yt){nt(!1),ce?.(yt,{})},ke=Yt(H,D),et=Io(ke,2),De=et[0],ze=et[1],We=De==="date"&&I?"datetime":De,Re=aN(H,De,_,j),Ge=E&&function(Mt,yt){E(be(Mt),be(yt))},Qe=oN(ba(ba({},a),{},{onChange:Ge}),Ue,Pe,Ce,Fe,[],d,Ke,Ie,m),at=Io(Qe,2),ut=at[1],_t=H6(Be,m),Rt=Io(_t,2),Et=Rt[0],mn=Rt[1],Tt=l.useMemo(function(){return Et.some(function(Mt){return Mt})},[Et]),pt=function(yt,Jn){if(Z){var Ar=ba(ba({},Jn),{},{mode:Jn.mode[0]});delete Ar.range,Z(yt[0],Ar)}},tt=Z6(q,Y,Be,[De],Ie,lt,s,!1,X,Q,gl(I?.defaultOpenValue),pt,P,B),mt=Io(tt,2),Ot=mt[0],Ut=mt[1],rn=ct(function(Mt,yt,Jn){if(ze(yt),F&&Jn!==!1){var Ar=Mt||Be[Be.length-1];F(Ar,yt)}}),Gt=function(){ut(Ce()),Ye(!1,{force:!0})},cn=function(yt){!N&&!ge.current.nativeElement.contains(document.activeElement)&&ge.current.focus(),Ye(!0),he?.(yt)},pn=function(){ut(null),Ye(!1,{force:!0})},gr=l.useState(null),gn=Io(gr,2),Cr=gn[0],zn=gn[1],Kn=l.useState(null),Qn=Io(Kn,2),Nr=Qn[0],bt=Qn[1],Mn=l.useMemo(function(){var Mt=[Nr].concat(XM(Be)).filter(function(yt){return yt});return k?Mt:Mt.slice(0,1)},[Be,Nr,k]),In=l.useMemo(function(){return!k&&Nr?[Nr]:Be.filter(function(Mt){return Mt})},[Be,Nr,k]);l.useEffect(function(){Ie||bt(null)},[Ie]);var $r=function(yt,Jn){$==="hover"&&(bt(yt),zn(Jn))},xr=K6(fe),Zn=function(yt){$r(yt,"preset")},An=function(yt){var Jn=k?Ne(Ce(),yt):[yt],Ar=ut(Jn);Ar&&!k&&Ye(!1,{force:!0})},Eo=function(yt){An(yt)},ta=function(yt){$r(yt,"cell")},Mo=function(yt){Ye(!0),Ct(yt)},Bo=function(yt){if(ot("panel"),!(k&&We!==H)){var Jn=k?Ne(Ce(),yt):[yt];Fe(Jn),!w&&!c&&s===We&&Gt()}},Lo=function(){Ye(!1)},rt=u1(pe,ae,se),xt=l.useMemo(function(){var Mt=Pn(a,!1),yt=nn(a,[].concat(XM(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]));return ba(ba({},yt),{},{multiple:a.multiple})},[a]),lo=l.createElement(fN,gu({},xt,{showNow:Re,showTime:I,disabledDate:O,onFocus:Mo,onBlur:$t,picker:H,mode:De,internalMode:We,onPanelChange:rn,format:f,value:Be,isInvalid:m,onChange:null,onSelect:Bo,pickerValue:Ot,defaultOpenValue:I?.defaultOpenValue,onPickerValueChange:Ut,hoverValue:Mn,onHover:ta,needConfirm:w,onSubmit:Gt,onOk:Je,presets:xr,onPresetHover:Zn,onPresetSubmit:An,onNow:Eo,cellRender:rt,classNames:de,styles:Se})),Ia=function(yt){Fe(yt)},Vo=function(){ot("input")},Ur=function(yt){ot("input"),Ye(!0,{inherit:!0}),Ct(yt)},Pa=function(yt){Ye(!1),$t(yt)},vl=function(yt,Jn){yt.key==="Tab"&&Gt(),T?.(yt,Jn)},Fo=l.useMemo(function(){return{prefixCls:h,locale:Y,generateConfig:q,button:le.button,input:le.input,classNames:de,styles:Se}},[h,Y,q,le.button,le.input,de,Se]);return Pt(function(){Ie&<!==void 0&&rn(null,H,!1)},[Ie,lt,H]),Pt(function(){var Mt=ot();!Ie&&Mt==="input"&&(Ye(!1),Gt()),!Ie&&c&&!w&&Mt==="panel"&&Gt()},[Ie]),l.createElement(Ho.Provider,{value:Fo},l.createElement(A6,gu({},_6(a),{popupElement:lo,popupStyle:Se.popup.root,popupClassName:K(y,de.popup.root),visible:Ie,onClose:Lo}),l.createElement(qq,gu({},a,{ref:ge,className:K(a.className,y,de.root),style:ba(ba({},Se.root),a.style),suffixIcon:oe,removeIcon:ne,activeHelp:!!Nr,allHelp:!!Nr&&Cr==="preset",focused:Ke,onFocus:Ur,onBlur:Pa,onKeyDown:vl,onSubmit:Gt,value:In,maskFormat:f,onChange:Ia,onInputChange:Vo,internalPicker:s,format:d,inputReadOnly:J,disabled:N,open:Ie,onOpenChange:Ye,onClick:cn,onClear:pn,invalid:Tt,onInvalid:function(yt){mn(yt,0)}}))))}var nY=l.forwardRef(tY);function rY(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function oY(e){return rY(e).join("_")}const SN=l.createContext(void 0),aY=SN.Provider,CN=l.createContext(void 0),iY=CN.Provider;function C0(){return C0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C0.apply(this,arguments)}const $N=l.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:a,checked:s,disabled:c,defaultChecked:d=!1,type:f="checkbox",title:m,onChange:g,...h}=e,y=l.useRef(null),v=l.useRef(null),[b,$]=Yt(d,s);l.useImperativeHandle(t,()=>({focus:R=>{y.current?.focus(R)},blur:()=>{y.current?.blur()},input:y.current,nativeElement:v.current}));const C=K(n,r,{[`${n}-checked`]:b,[`${n}-disabled`]:c}),x=R=>{c||("checked"in e||$(R.target.checked),g?.({target:{...e,type:f,checked:R.target.checked},stopPropagation(){R.stopPropagation()},preventDefault(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return l.createElement("span",{className:C,title:m,style:a,ref:v},l.createElement("input",C0({},h,{className:`${n}-input`,ref:y,onChange:x,disabled:c,checked:!!b,type:f})),l.createElement("span",{className:`${n}-inner`}))});function xN(e){const t=ie.useRef(null),n=()=>{Lt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Lt(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e?.(s)}]}const lY=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Jt(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS}}}},sY=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:s,motionDurationMid:c,motionEaseInOutCirc:d,colorBgContainer:f,colorBorder:m,lineWidth:g,colorBgContainerDisabled:h,colorTextDisabled:y,paddingXS:v,dotColorDisabled:b,lineType:$,radioColor:C,radioBgColor:x,calc:R}=e,w=`${t}-inner`,T=R(a).sub(R(4).mul(2)),N=R(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:{...Jt(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${te(g)} ${$} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...Jt(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
|
|
257
|
+
&:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:jo(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:N,height:N,marginBlockStart:R(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:R(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:C,borderBlockStart:0,borderInlineStart:0,borderRadius:N,transform:"scale(0)",opacity:0,transition:`all ${s} ${d}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:N,height:N,backgroundColor:f,borderColor:m,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:x,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${s} ${d}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:m,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:y,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${R(T).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}}}},cY=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:s,colorBorder:c,motionDurationMid:d,buttonPaddingInline:f,fontSize:m,buttonBg:g,fontSizeLG:h,controlHeightLG:y,controlHeightSM:v,paddingXS:b,borderRadius:$,borderRadiusSM:C,borderRadiusLG:x,buttonCheckedBg:R,buttonSolidCheckedColor:w,colorTextDisabled:E,colorBgContainerDisabled:T,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:O,colorPrimary:P,colorPrimaryHover:B,colorPrimaryActive:L,buttonSolidCheckedBg:V,buttonSolidCheckedHoverBg:G,buttonSolidCheckedActiveBg:Y,calc:q}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:m,lineHeight:te(q(n).sub(q(a).mul(2)).equal()),background:g,border:`${te(a)} ${s} ${c}`,borderBlockStartWidth:q(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${d}`,`background-color ${d}`,`box-shadow ${d}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:q(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(a)} ${s} ${c}`,borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$},"&:first-child:last-child":{borderRadius:$},[`${r}-group-large &`]:{height:y,fontSize:h,lineHeight:te(q(y).sub(q(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:v,paddingInline:q(b).sub(a).equal(),paddingBlock:0,lineHeight:te(q(v).sub(q(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":jo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:R,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:B,borderColor:B,"&::before":{backgroundColor:B}},"&:active":{color:L,borderColor:L,"&::before":{backgroundColor:L}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:V,borderColor:V,"&:hover":{color:w,background:G,borderColor:G},"&:active":{color:w,background:Y,borderColor:Y}},"&-disabled":{color:E,backgroundColor:T,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:T,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:N,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},uY=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:s,colorText:c,colorBgContainer:d,colorTextDisabled:f,controlItemBgActiveDisabled:m,colorTextLightSolid:g,colorPrimary:h,colorPrimaryHover:y,colorPrimaryActive:v,colorWhite:b}=e,$=4,C=s,x=t?C-$*2:C-($+a)*2;return{radioSize:C,dotSize:x,dotColorDisabled:f,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:y,buttonSolidCheckedActiveBg:v,buttonBg:d,buttonCheckedBg:d,buttonColor:c,buttonCheckedBgDisabled:m,buttonCheckedColorDisabled:f,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?h:b,radioBgColor:t?d:h}},wN=At("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=It(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[lY(s),sY(s),cY(s)]},uY,{unitless:{radioSize:!0,dotSize:!0}}),dY=(e,t)=>{const n=l.useContext(SN),r=l.useContext(CN),{getPrefixCls:a,direction:s,className:c,style:d,classNames:f,styles:m}=zt("radio"),g=l.useRef(null),h=ir(t,g),{isFormItemInput:y}=l.useContext(Or),v=A=>{e.onChange?.(A),n?.onChange?.(A)},{prefixCls:b,className:$,rootClassName:C,children:x,style:R,title:w,classNames:E,styles:T,...N}=e,O=a("radio",b),P=(n?.optionType||r)==="button",B=P?`${O}-button`:O,L=lr(O),[V,G]=wN(O,L),Y={...N},q=l.useContext(Wr);n&&(Y.name=n.name,Y.onChange=v,Y.checked=e.value===n.value,Y.disabled=Y.disabled??n.disabled),Y.disabled=Y.disabled??q;const H={...e,...Y},[_,j]=Ft([f,E],[m,T],{props:H}),I=K(`${B}-wrapper`,{[`${B}-wrapper-checked`]:Y.checked,[`${B}-wrapper-disabled`]:Y.disabled,[`${B}-wrapper-rtl`]:s==="rtl",[`${B}-wrapper-in-form-item`]:y,[`${B}-wrapper-block`]:!!n?.block},c,$,C,_.root,V,G,L),[D,F]=xN(Y.onClick);return l.createElement(hd,{component:"Radio",disabled:Y.disabled},l.createElement("label",{className:I,style:{...j.root,...d,...R},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:D},l.createElement($N,{...Y,className:K(_.icon,{[gd]:!P}),style:j.icon,type:"radio",prefixCls:B,ref:h,onClick:F}),x!==void 0?l.createElement("span",{className:K(`${B}-label`,_.label),style:j.label},x):null))},dp=l.forwardRef(dY),fY=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ft),{name:a}=l.useContext(Or),s=Jo(oY(a)),{prefixCls:c,className:d,rootClassName:f,options:m,buttonStyle:g="outline",disabled:h,children:y,size:v,style:b,id:$,optionType:C,name:x=s,defaultValue:R,value:w,block:E=!1,onChange:T,onMouseEnter:N,onMouseLeave:O,onFocus:P,onBlur:B,orientation:L,vertical:V,role:G="radiogroup"}=e,[Y,q]=Yt(R,w),H=l.useCallback(Z=>{const J=Y,oe=Z.target.value;"value"in e||q(oe),oe!==J&&T?.(Z)},[Y,q,T]),_=n("radio",c),j=`${_}-group`,I=lr(_),[D,F]=wN(_,I);let A=y;m&&m.length>0&&(A=m.map(Z=>typeof Z=="string"||typeof Z=="number"?l.createElement(dp,{key:Z.toString(),prefixCls:_,disabled:h,value:Z,checked:Y===Z},Z):l.createElement(dp,{key:`radio-group-value-options-${Z.value}`,prefixCls:_,disabled:Z.disabled||h,value:Z.value,checked:Y===Z.value,title:Z.title,style:Z.style,className:Z.className,id:Z.id,required:Z.required},Z.label)));const z=pr(v),[,k]=ud(L,V),X=K(j,`${j}-${g}`,{[`${j}-${z}`]:z,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:E},d,f,D,F,I),Q=l.useMemo(()=>({onChange:H,value:Y,disabled:h,name:x,optionType:C,block:E}),[H,Y,h,x,C,E]);return l.createElement("div",{...Pn(e,{aria:!0,data:!0}),role:G,className:K(X,{[`${_}-group-vertical`]:k}),style:b,onMouseEnter:N,onMouseLeave:O,onFocus:P,onBlur:B,id:$,ref:t},l.createElement(aY,{value:Q},A))}),EN=l.memo(fY),mY=(e,t)=>{const{getPrefixCls:n}=l.useContext(ft),{prefixCls:r,...a}=e,s=n("radio",r);return l.createElement(iY,{value:"button"},l.createElement(dp,{prefixCls:s,...a,type:"radio",ref:t}))},$0=l.forwardRef(mY),h1=dp;h1.Button=$0;h1.Group=EN;h1.__ANT_RADIO=!0;const pY=10,gY=20;function hY(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:a,prefixCls:s,value:c,onChange:d,divRef:f}=e,m=r.getYear(c||r.getNow());let g=m-pY,h=g+gY;n&&(g=r.getYear(n[0]),h=r.getYear(n[1])+1);const y=a&&a.year==="年"?"年":"",v=[];for(let b=g;b<h;b++)v.push({label:`${b}${y}`,value:b});return l.createElement(Fr,{size:t?void 0:"small",options:v,value:m,className:`${s}-year-select`,onChange:b=>{let $=r.setYear(c,b);if(n){const[C,x]=n,R=r.getYear($),w=r.getMonth($);R===r.getYear(x)&&w>r.getMonth(x)&&($=r.setMonth($,r.getMonth(x))),R===r.getYear(C)&&w<r.getMonth(C)&&($=r.setMonth($,r.getMonth(C)))}d($)},getPopupContainer:()=>f.current})}function yY(e){const{prefixCls:t,fullscreen:n,validRange:r,value:a,generateConfig:s,locale:c,onChange:d,divRef:f}=e,m=s.getMonth(a||s.getNow());let g=0,h=11;if(r){const[b,$]=r,C=s.getYear(a);s.getYear($)===C&&(h=s.getMonth($)),s.getYear(b)===C&&(g=s.getMonth(b))}const y=c.shortMonths||s.locale.getShortMonths(c.locale),v=[];for(let b=g;b<=h;b+=1)v.push({label:y[b],value:b});return l.createElement(Fr,{size:n?void 0:"small",className:`${t}-month-select`,value:m,options:v,onChange:b=>{d(s.setMonth(a,b))},getPopupContainer:()=>f.current})}function bY(e){const{prefixCls:t,locale:n,mode:r,fullscreen:a,onModeChange:s}=e;return l.createElement(EN,{onChange:({target:{value:c}})=>{s(c)},value:r,size:a?void 0:"small",className:`${t}-mode-switch`},l.createElement($0,{value:"month"},n.month),l.createElement($0,{value:"year"},n.year))}function vY(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:a,onModeChange:s,className:c,style:d}=e,f=l.useRef(null),m=l.useContext(Or),g=l.useMemo(()=>({...m,isFormItemInput:!1}),[m]),h={...e,fullscreen:n,divRef:f};return l.createElement("div",{className:K(`${t}-header`,c),style:d,ref:f},l.createElement(Or.Provider,{value:g},l.createElement(hY,{...h,onChange:y=>{a(y,"year")}}),r==="month"&&l.createElement(yY,{...h,onChange:y=>{a(y,"month")}})),l.createElement(bY,{...h,onModeChange:s}))}function qs(e){return It(e,{inputAffixPadding:e.paddingXXS})}const Ys=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:s,controlHeightLG:c,fontSizeLG:d,lineHeightLG:f,paddingSM:m,controlPaddingHorizontalSM:g,controlPaddingHorizontal:h,colorFillAlter:y,colorPrimaryHover:v,colorPrimary:b,controlOutlineWidth:$,controlOutline:C,colorErrorOutline:x,colorWarningOutline:R,colorBgContainer:w,inputFontSize:E,inputFontSizeLG:T,inputFontSizeSM:N}=e,O=E||n,P=N||O,B=T||d,L=Math.round((t-O*r)/2*10)/10-a,V=Math.round((s-P*r)/2*10)/10-a,G=Math.ceil((c-B*f)/2*10)/10-a;return{paddingBlock:Math.max(L,0),paddingBlockSM:Math.max(V,0),paddingBlockLG:Math.max(G,0),paddingInline:m-a,paddingInlineSM:g-a,paddingInlineLG:h-a,addonBg:y,activeBorderColor:b,hoverBorderColor:v,activeShadow:`0 0 0 ${$}px ${C}`,errorActiveShadow:`0 0 0 ${$}px ${x}`,warningActiveShadow:`0 0 0 ${$}px ${R}`,hoverBg:w,activeBg:w,inputFontSize:O,inputFontSizeLG:B,inputFontSizeSM:P}},SY=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Jp=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])":{...SY(It(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),y1=(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}}),QM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...y1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),MN=(e,t)=>({"&-outlined":{...y1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Jp(e)},...QM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...QM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),ZM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),CY=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...ZM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...ZM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Jp(e)}}}}),RN=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},TN=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),JM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...TN(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),ON=(e,t)=>({"&-filled":{...TN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Jp(e)},...JM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...JM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),eR=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),$Y=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...eR(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...eR(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),NN=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),tR=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...NN(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`}}),IN=(e,t)=>({"&-underlined":{...NN(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"},...tR(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...tR(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),PN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),b1=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${te(t)} ${te(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},v1=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),S1=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...PN(e.colorTextPlaceholder),"&-lg":{...b1(e),...t.largeStyle},"&-sm":{...v1(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),xY=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...b1(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...v1(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${te(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...ol(),[`${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},[`
|
|
258
|
+
& > ${t}-affix-wrapper,
|
|
259
|
+
& > ${t}-number-affix-wrapper,
|
|
260
|
+
& > ${n}-picker-range
|
|
261
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
|
|
262
|
+
& > ${n}-select-auto-complete ${t},
|
|
263
|
+
& > ${n}-cascader-picker ${t},
|
|
264
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
265
|
+
& > ${n}-select:first-child,
|
|
266
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
267
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
268
|
+
& > ${n}-select:last-child,
|
|
269
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
270
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},wY=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Jt(e),...S1(e),...MN(e),...ON(e),...RN(e),...IN(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:c,paddingBottom:c}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},EY=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${te(e.inputAffixPadding)}`}}}},MY=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:s,colorIconHover:c,iconCls:d}=e,f=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[f]:{...S1(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...EY(e),[`${d}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}},[`${t}-underlined`]:{borderRadius:0},[m]:{[`${d}${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},RY=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Jt(e),...xY(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...CY(e),...$Y(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}}}}}},TY=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},zN=At(["Input","Shared"],e=>{const t=It(e,qs(e));return[wY(t),MY(t)]},Ys,{resetFont:!1}),AN=At(["Input","Component"],e=>{const t=It(e,qs(e));return[RY(t),TY(t),bd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Ys,{resetFont:!1}),OY=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,s=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(s).sub(a).equal(),0);return{basePadding:s,containerPadding:c,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},NY=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:s,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:d,colorIcon:f,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:g}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:g,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(g).mul(2).equal(),paddingInlineStart:s,paddingInlineEnd:e.calc(s).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:d,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(s).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...Ds(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}}}}}},Ky=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",s=OY(e);return[{[`${n}-multiple${a}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:te(s.itemLineHeight)}}}]},IY=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=It(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=It(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ky(a,"small"),Ky(e),Ky(s,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}},...NY(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},PY=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:s,cellHoverBg:c,lineWidth:d,lineType:f,colorPrimary:m,cellActiveWithRangeBg:g,colorTextLightSolid:h,colorTextDisabled:y,cellBgDisabled:v,colorFillSecondary:b}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:te(r),borderRadius:a,transition:`background-color ${s}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
271
|
+
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:c}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${te(d)} ${f} ${m}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
|
|
272
|
+
&-in-view${t}-range-start,
|
|
273
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:g}},[`&-in-view${t}-selected,
|
|
274
|
+
&-in-view${t}-range-start,
|
|
275
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:m},[`&${t}-disabled ${n}`]:{background:b}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:y,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:y}}},DN=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:s,cellWidth:c,paddingSM:d,paddingXS:f,paddingXXS:m,colorBgContainer:g,lineWidth:h,lineType:y,borderRadiusLG:v,colorPrimary:b,colorTextHeading:$,colorSplit:C,pickerControlIconBorderWidth:x,colorIcon:R,textHeight:w,motionDurationMid:E,colorIconHover:T,fontWeightStrong:N,cellHeight:O,pickerCellPaddingVertical:P,colorTextDisabled:B,colorText:L,fontSize:V,motionDurationSlow:G,withoutTimeCellHeight:Y,pickerQuarterPanelContentHeight:q,borderRadiusSM:H,colorTextLightSolid:_,cellHoverBg:j,timeColumnHeight:I,timeColumnWidth:D,timeCellHeight:F,controlItemBgActive:A,marginXXS:z,pickerDatePanelPaddingHorizontal:k,pickerControlIconMargin:X}=e,Q=e.calc(c).mul(7).add(e.calc(k).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:g,borderRadius:v,outline:"none","&-focused":{borderColor:b},"&-rtl":{[`${t}-prev-icon,
|
|
276
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
277
|
+
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Q},"&-header":{display:"flex",padding:`0 ${te(f)}`,color:$,borderBottom:`${te(h)} ${y} ${C}`,"> *":{flex:"none"},button:{padding:0,color:R,lineHeight:te(w),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:V,"&:hover":{color:T},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:te(w),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:f},"&:hover":{color:b}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:s,height:s,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:X,insetInlineStart:X,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:e.calc(O).add(e.calc(P).mul(2)).equal(),color:L,verticalAlign:"middle"}},"&-cell":{padding:`${te(P)} 0`,color:B,cursor:"pointer","&-in-view":{color:L},...PY(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(Y).mul(4).equal()},[r]:{padding:`0 ${te(f)}`}},"&-quarter-panel":{[`${t}-content`]:{height:q}},"&-decade-panel":{[r]:{padding:`0 ${te(e.calc(f).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${te(f)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${te(f)} ${te(k)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${E}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:j},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new tn(_).setA(.5).toHexString()},[r]:{color:_}}},"&-range-hover td:before":{background:A}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${te(f)} ${te(d)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${te(h)} ${y} ${C}`},[`${t}-date-panel,
|
|
278
|
+
${t}-time-panel`]:{transition:`opacity ${G}`},"&-active":{[`${t}-date-panel,
|
|
279
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:I},"&-column":{flex:"1 0 auto",width:D,margin:`${te(m)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background-color ${E}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${te(F)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${te(h)} ${y} ${C}`},"&-active":{background:new tn(A).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(D).sub(e.calc(z).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(D).sub(F).div(2).equal(),color:L,lineHeight:te(F),borderRadius:H,cursor:"pointer",transition:`background-color ${E}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:A}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:B,background:"transparent",cursor:"not-allowed"}}}}}}}}},zY=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:s,colorPrimary:c,cellActiveWithRangeBg:d,colorPrimaryBorder:f,lineType:m,colorSplit:g}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${te(r)} ${m} ${g}`,"&-extra":{padding:`0 ${te(a)}`,lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${te(r)} ${m} ${g}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:te(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${s}-tag-blue`]:{color:c,background:d,borderColor:f,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},jN=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},_N=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:s,lineWidth:c}=e,d=s*2,f=c*2,m=Math.min(n-d,n-f),g=Math.min(r-d,r-f),h=Math.min(a-d,a-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new tn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new tn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightSM:g,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},AY=e=>({...Ys(e),..._N(e),...Vp(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),DY=e=>{const{componentCls:t}=e;return{[t]:[{...MN(e),...IN(e),...ON(e),...RN(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Qy=(e,t)=>({padding:`${te(e)} ${te(t)}`}),jY=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},_Y=e=>{const{componentCls:t,antCls:n,paddingInline:r,lineWidth:a,lineType:s,colorBorder:c,borderRadius:d,motionDurationMid:f,colorTextDisabled:m,colorTextPlaceholder:g,colorTextQuaternary:h,fontSizeLG:y,inputFontSizeLG:v,fontSizeSM:b,inputFontSizeSM:$,controlHeightSM:C,paddingInlineSM:x,paddingXS:R,marginXS:w,colorIcon:E,lineWidthBold:T,colorPrimary:N,motionDurationSlow:O,zIndexPopup:P,paddingXXS:B,sizePopupArrow:L,colorBgElevated:V,borderRadiusLG:G,boxShadowSecondary:Y,borderRadiusSM:q,colorSplit:H,cellHoverBg:_,presetsWidth:j,presetsMaxWidth:I,boxShadowPopoverArrow:D,fontHeight:F,lineHeightLG:A}=e;return[{[t]:{...Jt(e),...Qy(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`,...PN(g),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:m,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:g}}},"&-large":{...Qy(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:v??y,lineHeight:A}},"&-small":{...Qy(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:$??b}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(R).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:h,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:E}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:h,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:E},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:T,background:N,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${te(R)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x}}},"&-dropdown":{...Jt(e),...DN(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
|
280
|
+
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
|
281
|
+
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
|
282
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
|
283
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
|
284
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:jp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
|
285
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
|
286
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
|
287
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ap},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
|
288
|
+
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:_p},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
|
289
|
+
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Dp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:B},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`,...e6(e,V,D),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:V,borderRadius:G,boxShadow:Y,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:j,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:R,borderInlineEnd:`${te(a)} ${s} ${H}`,li:{...xo,borderRadius:q,paddingInline:R,paddingBlock:e.calc(C).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:w},"&:hover":{background:_}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}},"&-dropdown-range":{padding:`${te(e.calc(L).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Zo(e,"slide-up"),Zo(e,"slide-down"),Os(e,"move-up"),Os(e,"move-down")]},HN=At("DatePicker",e=>{const t=It(qs(e),jN(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[zY(t),_Y(t),DY(t),jY(t),IY(t),bd(e,{focusElCls:`${e.componentCls}-focused`})]},AY),HY=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:a,itemActiveBg:s}=e;return{[t]:{...DN(e),...Jt(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${te(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${n}-panel`]:{background:a,border:0,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${te(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:te(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:te(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${te(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:s}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${te(e.calc(e.marginXS).div(2).equal())}`,padding:`${te(e.calc(e.paddingXS).div(2).equal())} ${te(e.paddingXS)} 0`,border:0,borderTop:`${te(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background-color ${e.motionDurationSlow}`,"&-value":{lineHeight:te(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${te(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${te(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},BY=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,..._N(e)}),LY=At("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=It(e,jN(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return HY(n)},BY),BN=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},x0=(e,t,n)=>{const{getMonth:r}=n;return BN(e,t,n)&&r(e)===r(t)},nR=(e,t,n)=>{const{getDate:r}=n;return x0(e,t,n)&&r(e)===r(t)},LN=e=>n=>{const{prefixCls:r,className:a,rootClassName:s,style:c,dateFullCellRender:d,dateCellRender:f,monthFullCellRender:m,monthCellRender:g,cellRender:h,fullCellRender:y,headerRender:v,value:b,defaultValue:$,disabledDate:C,mode:x,validRange:R,fullscreen:w=!0,showWeek:E,onChange:T,onPanelChange:N,onSelect:O,styles:P,classNames:B}=n,{getPrefixCls:L,direction:V,className:G,style:Y,classNames:q,styles:H}=zt("calendar"),_={...n,mode:x,fullscreen:w,showWeek:E},[j,I]=Ft([q,B],[H,P],{props:_}),[D,F,A,z,k,X]=l.useMemo(()=>{const{root:Me,header:Ae,...Ie}=j,{root:Ye,header:Ze,...He}=I;return[Me,Ae,Ie,Ye,Ze,He]},[j,I]),Q=L("picker",r),Z=`${Q}-calendar`,[J,oe]=LY(Q,Z),ne=e.getNow(),[re,ce]=Yt(()=>$||e.getNow(),b),[fe,le]=Yt("month",x),pe=l.useMemo(()=>fe==="year"?"month":"date",[fe]),ae=l.useCallback(Me=>(R?e.isAfter(R[0],Me)||e.isAfter(Me,R[1]):!1)||!!C?.(Me),[C,R]),se=(Me,Ae)=>{N?.(Me,Ae)},he=Me=>{ce(Me),nR(Me,re,e)||((pe==="date"&&!x0(Me,re,e)||pe==="month"&&!BN(Me,re,e))&&se(Me,fe),T?.(Me))},ge=Me=>{le(Me),se(re,Me)},be=(Me,Ae)=>{he(Me),O?.(Me,{source:Ae})},Ne=l.useCallback((Me,Ae)=>y?y(Me,Ae):d?d(Me):l.createElement("div",{className:K(`${Q}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:nR(ne,Me,e)})},l.createElement("div",{className:`${Z}-date-value`},String(e.getDate(Me)).padStart(2,"0")),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Me,Ae):f?.(Me))),[ne,Q,Z,y,d,h,f]),ve=l.useCallback((Me,Ae)=>{if(y)return y(Me,Ae);if(m)return m(Me);const Ie=Ae.locale.shortMonths||e.locale.getShortMonths(Ae.locale.locale);return l.createElement("div",{className:K(`${Q}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:x0(ne,Me,e)})},l.createElement("div",{className:`${Z}-date-value`},Ie[e.getMonth(Me)]),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Me,Ae):g?.(Me)))},[ne,Q,Z,y,m,h,g]),[xe]=ao("Calendar",Mu),de=Ca(xe,n.locale||{}),Se=(Me,Ae)=>{if(Ae.type==="date")return Ne(Me,Ae);if(Ae.type==="month")return ve(Me,{...Ae,locale:de?.lang})};return l.createElement("div",{className:K(Z,{[`${Z}-full`]:w,[`${Z}-mini`]:!w,[`${Z}-rtl`]:V==="rtl"},G,a,s,D,J,oe),style:{...z,...Y,...c}},v?v({value:re,type:fe,onChange:Me=>{be(Me,"customize")},onTypeChange:ge}):l.createElement(vY,{className:F,style:k,prefixCls:Z,value:re,generateConfig:e,mode:fe,fullscreen:w,locale:de?.lang,validRange:R,onChange:be,onModeChange:ge}),l.createElement(jm,{classNames:A,styles:X,value:re,prefixCls:Q,locale:de?.lang,generateConfig:e,cellRender:Se,onSelect:Me=>{be(Me,pe)},mode:pe,picker:pe,disabledDate:ae,hideHeader:!0,showWeek:E}))},VN=LN(z6);VN.generateCalendar=LN;var VY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w0.apply(this,arguments)}const FY=(e,t)=>l.createElement(ht,w0({},e,{ref:t,icon:VY})),fp=l.forwardRef(FY);var Gc={exports:{}},rR;function kY(){if(rR)return Gc.exports;rR=1,Gc.exports=r,Gc.exports.isMobile=r,Gc.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(a){a||(a={});let s=a.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;let c=e.test(s)&&!t.test(s)||!!a.tablet&&n.test(s);return!c&&a.tablet&&a.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(c=!0),c}return Gc.exports}var WY=kY();const qY=Ra(WY);let Zy;const YY=(()=>(typeof Zy>"u"&&(Zy=qY()),Zy)),C1=l.createContext(null),UY=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:a={}}=e,{size:s,align:c="center"}=a,[d,f]=l.useState(),m=l.useRef(),g=ie.useCallback(y=>typeof s=="function"?s(y):typeof s=="number"?s:y,[s]);function h(){Lt.cancel(m.current)}return l.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const v=r?"right":"left";c==="start"&&(y[v]=t[v]),c==="center"&&(y[v]=t[v]+t.width/2,y.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[v]=t[v]+t.width,y.transform="translateX(-100%)")}else y.height=g(t.height),c==="start"&&(y.top=t.top),c==="center"&&(y.top=t.top+t.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=t.top+t.height,y.transform="translateY(-100%)");return h(),m.current=Lt(()=>{d&&y&&Object.keys(y).every(b=>{const $=y[b],C=d[b];return typeof $=="number"&&typeof C=="number"?Math.round($)===Math.round(C):$===C})||f(y)}),h},[JSON.stringify(t),n,r,c,g]),{style:d}},oR={width:0,height:0,left:0,top:0};function GY(e,t,n){return l.useMemo(()=>{const r=new Map,a=t.get(e[0]?.key)||oR,s=a.left+a.width;for(let c=0;c<e.length;c+=1){const{key:d}=e[c];let f=t.get(d);f||(f=t.get(e[c-1]?.key)||oR);const m=r.get(d)||{...f};m.right=s-m.left-m.width,r.set(d,m)}return r},[e.map(r=>r.key).join("_"),t,n])}function aR(e,t){const n=l.useRef(e),[,r]=l.useState({});function a(s){const c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,r({})}return[n.current,a]}const XY=.1,iR=.01,_m=20,lR=.995**_m;function KY(e,t){const[n,r]=l.useState(),[a,s]=l.useState(0),[c,d]=l.useState(0),[f,m]=l.useState(),g=l.useRef();function h(x){const{screenX:R,screenY:w}=x.touches[0];r({x:R,y:w}),window.clearInterval(g.current)}function y(x){if(!n)return;const{screenX:R,screenY:w}=x.touches[0];r({x:R,y:w});const E=R-n.x,T=w-n.y;t(E,T);const N=Date.now();s(N),d(N-a),m({x:E,y:T})}function v(){if(n&&(r(null),m(null),f)){const x=f.x/c,R=f.y/c,w=Math.abs(x),E=Math.abs(R);if(Math.max(w,E)<XY)return;let T=x,N=R;g.current=window.setInterval(()=>{if(Math.abs(T)<iR&&Math.abs(N)<iR){window.clearInterval(g.current);return}T*=lR,N*=lR,t(T*_m,N*_m)},_m)}}const b=l.useRef();function $(x){const{deltaX:R,deltaY:w}=x;let E=0;const T=Math.abs(R),N=Math.abs(w);T===N?E=b.current==="x"?R:w:T>N?(E=R,b.current="x"):(E=w,b.current="y"),t(-E,-E)&&x.preventDefault()}const C=l.useRef(null);C.current={onTouchStart:h,onTouchMove:y,onTouchEnd:v,onWheel:$},l.useEffect(()=>{function x(T){C.current.onTouchStart(T)}function R(T){C.current.onTouchMove(T)}function w(T){C.current.onTouchEnd(T)}function E(T){C.current.onWheel(T)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",w,{passive:!0}),e.current.addEventListener("touchstart",x,{passive:!0}),e.current.addEventListener("wheel",E,{passive:!1}),()=>{document.removeEventListener("touchmove",R),document.removeEventListener("touchend",w)}},[])}function FN(e){const[t,n]=l.useState(0),r=l.useRef(0),a=l.useRef();return a.current=e,s4(()=>{a.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function QY(e){const t=l.useRef([]),[,n]=l.useState({}),r=l.useRef(typeof e=="function"?e():e),a=FN(()=>{let c=r.current;t.current.forEach(d=>{c=d(c)}),t.current=[],r.current=c,n({})});function s(c){t.current.push(c),a()}return[r.current,s]}const sR={width:0,height:0,left:0,top:0,right:0};function ZY(e,t,n,r,a,s,{tabs:c,tabPosition:d,rtl:f}){let m,g,h;return["top","bottom"].includes(d)?(m="width",g=f?"right":"left",h=Math.abs(n)):(m="height",g="top",h=-n),l.useMemo(()=>{if(!c.length)return[0,0];const y=c.length;let v=y;for(let $=0;$<y;$+=1){const C=e.get(c[$].key)||sR;if(Math.floor(C[g]+C[m])>Math.floor(h+t)){v=$-1;break}}let b=0;for(let $=y-1;$>=0;$-=1)if((e.get(c[$].key)||sR)[g]<h){b=$+1;break}return b>v?[0,-1]:[b,v]},[e,t,r,a,s,h,d,c.map(y=>y.key).join("_"),f])}function cR(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const JY="TABS_DQ";function kN(e){return String(e).replace(/"/g,JY)}function $1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const WN=l.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:a,style:s}=e;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":a?.addAriaLabel||"Add tab",onClick:c=>{r.onEdit("add",{event:c})}},r.addIcon||"+")}),uR=l.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:a}=e;if(!a)return null;let s,c={};return typeof a=="object"&&!l.isValidElement(a)?c=a:c.right=a,n==="right"&&(s=c.right),n==="left"&&(s=c.left),s?l.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}const eU=l.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:a,locale:s,mobile:c,more:d={},style:f,className:m,editable:g,tabBarGutter:h,rtl:y,removeAriaLabel:v,onTabClick:b,getPopupContainer:$,popupClassName:C,popupStyle:x}=e,[R,w]=l.useState(!1),[E,T]=l.useState(null),{icon:N="More"}=d,O=`${r}-more-popup`,P=`${n}-dropdown`,B=E!==null?`${O}-${E}`:null,L=s?.dropdownAriaLabel;function V(I,D){I.preventDefault(),I.stopPropagation(),g.onEdit("remove",{key:D,event:I})}const G=l.createElement(Fs,{onClick:({key:I,domEvent:D})=>{b(I,D),w(!1)},prefixCls:`${P}-menu`,id:O,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[E],"aria-label":L!==void 0?L:"expanded dropdown"},a.map(I=>{const{closable:D,disabled:F,closeIcon:A,key:z,label:k}=I,X=$1(D,A,g,F);return l.createElement(Ed,{key:z,id:`${O}-${z}`,role:"option","aria-controls":r&&`${r}-panel-${z}`,disabled:F},l.createElement("span",null,k),X&&l.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:Q=>{Q.stopPropagation(),V(Q,z)}},A||g.removeIcon||"×"))}));function Y(I){const D=a.filter(z=>!z.disabled);let F=D.findIndex(z=>z.key===E)||0;const A=D.length;for(let z=0;z<A;z+=1){F=(F+I+A)%A;const k=D[F];if(!k.disabled){T(k.key);return}}}function q(I){const{which:D}=I;if(!R){[it.DOWN,it.SPACE,it.ENTER].includes(D)&&(w(!0),I.preventDefault());return}switch(D){case it.UP:Y(-1),I.preventDefault();break;case it.DOWN:Y(1),I.preventDefault();break;case it.ESC:w(!1);break;case it.SPACE:case it.ENTER:E!==null&&b(E,I);break}}l.useEffect(()=>{const I=document.getElementById(B);I?.scrollIntoView&&I.scrollIntoView(!1)},[B,E]),l.useEffect(()=>{R||T(null)},[R]);const H={marginInlineStart:h};a.length||(H.visibility="hidden",H.order=1);const _=K(C,{[`${P}-rtl`]:y}),j=c?null:l.createElement(d6,E0({prefixCls:P,overlay:G,visible:a.length?R:!1,onVisibleChange:w,overlayClassName:_,overlayStyle:x,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:$},d),l.createElement("button",{type:"button",className:`${n}-nav-more`,style:H,"aria-haspopup":"listbox","aria-controls":O,id:`${r}-more`,"aria-expanded":R,onKeyDown:q},N));return l.createElement("div",{className:K(`${n}-nav-operations`,m),style:f,ref:t},j,l.createElement(WN,{prefixCls:n,locale:s,editable:g}))}),tU=l.memo(eU,(e,t)=>t.tabMoving),nU=e=>{const{prefixCls:t,id:n,active:r,focus:a,tab:{key:s,label:c,disabled:d,closeIcon:f,icon:m},closable:g,renderWrapper:h,removeAriaLabel:y,editable:v,onClick:b,onFocus:$,onBlur:C,onKeyDown:x,onMouseDown:R,onMouseUp:w,style:E,className:T,tabCount:N,currentPosition:O}=e,P=`${t}-tab`,B=$1(g,f,v,d);function L(H){d||b(H)}function V(H){H.preventDefault(),H.stopPropagation(),v.onEdit("remove",{key:s,event:H})}const G=l.useMemo(()=>m&&typeof c=="string"?l.createElement("span",null,c):c,[c,m]),Y=l.useRef(null);l.useEffect(()=>{a&&Y.current&&Y.current.focus()},[a]);const q=l.createElement("div",{key:s,"data-node-key":kN(s),className:K(P,T,{[`${P}-with-remove`]:B,[`${P}-active`]:r,[`${P}-disabled`]:d,[`${P}-focus`]:a}),style:E,onClick:L},l.createElement("div",{ref:Y,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:H=>{H.stopPropagation(),L(H)},onKeyDown:x,onMouseDown:R,onMouseUp:w,onFocus:$,onBlur:C},a&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${O} of ${N}`),m&&l.createElement("span",{className:`${P}-icon`},m),c&&G),B&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:H=>{H.stopPropagation(),V(H)}},f||v.removeIcon||"×"));return h?h(q):q};function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M0.apply(this,arguments)}const rU=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:a,offsetLeft:s}=e,{width:c,height:d,left:f,top:m}=e.getBoundingClientRect();return Math.abs(c-n)<1?[c,d,f-t.left,m-t.top]:[n,r,s,a]},cs=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:a}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,a]}return[t,n]},sm=(e,t)=>e[t?0:1],dR=l.forwardRef((e,t)=>{const{className:n,style:r,id:a,animated:s,activeKey:c,rtl:d,extra:f,editable:m,locale:g,tabPosition:h,tabBarGutter:y,children:v,onTabClick:b,onTabScroll:$,indicator:C,classNames:x,styles:R}=e,{prefixCls:w,tabs:E}=l.useContext(C1),T=l.useRef(null),N=l.useRef(null),O=l.useRef(null),P=l.useRef(null),B=l.useRef(null),L=l.useRef(null),V=l.useRef(null),G=h==="top"||h==="bottom",[Y,q]=aR(0,(ze,We)=>{G&&$&&$({direction:ze>We?"left":"right"})}),[H,_]=aR(0,(ze,We)=>{!G&&$&&$({direction:ze>We?"top":"bottom"})}),[j,I]=l.useState([0,0]),[D,F]=l.useState([0,0]),[A,z]=l.useState([0,0]),[k,X]=l.useState([0,0]),[Q,Z]=QY(new Map),J=GY(E,Q,D[0]),oe=sm(j,G),ne=sm(D,G),re=sm(A,G),ce=sm(k,G),fe=Math.floor(oe)<Math.floor(ne+re),le=fe?oe-ce:oe-re,pe=`${w}-nav-operations-hidden`;let ae=0,se=0;G&&d?(ae=0,se=Math.max(0,ne-le)):(ae=Math.min(0,le-ne),se=0);function he(ze){return ze<ae?ae:ze>se?se:ze}const ge=l.useRef(null),[be,Ne]=l.useState();function ve(){Ne(Date.now())}function xe(){ge.current&&clearTimeout(ge.current)}KY(P,(ze,We)=>{function Re(Ge,Qe){Ge(at=>he(at+Qe))}return fe?(G?Re(q,ze):Re(_,We),xe(),ve(),!0):!1}),l.useEffect(()=>(xe(),be&&(ge.current=setTimeout(()=>{Ne(0)},100)),xe),[be]);const[de,Se]=ZY(J,le,G?Y:H,ne,re,ce,{...e,tabs:E}),Me=ct((ze=c)=>{const We=J.get(ze)||{width:0,height:0,left:0,right:0,top:0};if(G){let Re=Y;d?We.right<Y?Re=We.right:We.right+We.width>Y+le&&(Re=We.right+We.width-le):We.left<-Y?Re=-We.left:We.left+We.width>-Y+le&&(Re=-(We.left+We.width-le)),_(0),q(he(Re))}else{let Re=H;We.top<-H?Re=-We.top:We.top+We.height>-H+le&&(Re=-(We.top+We.height-le)),q(0),_(he(Re))}}),[Ae,Ie]=l.useState(),[Ye,Ze]=l.useState(!1),He=E.filter(ze=>!ze.disabled).map(ze=>ze.key),Ve=ze=>{const We=He.indexOf(Ae||c),Re=He.length,Ge=(We+ze+Re)%Re,Qe=He[Ge];Ie(Qe)},_e=(ze,We)=>{const Re=He.indexOf(ze),Ge=E.find(at=>at.key===ze);$1(Ge?.closable,Ge?.closeIcon,m,Ge?.disabled)&&(We.preventDefault(),We.stopPropagation(),m.onEdit("remove",{key:ze,event:We}),Re===He.length-1?Ve(-1):Ve(1))},Ue=(ze,We)=>{Ze(!0),We.button===1&&_e(ze,We)},Pe=ze=>{const{code:We}=ze,Re=d&&G,Ge=He[0],Qe=He[He.length-1];switch(We){case"ArrowLeft":{G&&Ve(Re?1:-1);break}case"ArrowRight":{G&&Ve(Re?-1:1);break}case"ArrowUp":{ze.preventDefault(),G||Ve(-1);break}case"ArrowDown":{ze.preventDefault(),G||Ve(1);break}case"Home":{ze.preventDefault(),Ie(Ge);break}case"End":{ze.preventDefault(),Ie(Qe);break}case"Enter":case"Space":{ze.preventDefault(),b(Ae??c,ze);break}case"Backspace":case"Delete":{_e(Ae,ze);break}}},Ce={};G?Ce.marginInlineStart=y:Ce.marginTop=y;const Fe=E.map((ze,We)=>{const{key:Re}=ze;return l.createElement(nU,{id:a,prefixCls:w,key:Re,tab:ze,className:x?.item,style:We===0?R?.item:{...Ce,...R?.item},closable:ze.closable,editable:m,active:Re===c,focus:Re===Ae,renderWrapper:v,removeAriaLabel:g?.removeAriaLabel,tabCount:He.length,currentPosition:We+1,onClick:Ge=>{b(Re,Ge)},onKeyDown:Pe,onFocus:()=>{Ye||Ie(Re),Me(Re),ve(),P.current&&(d||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{Ie(void 0)},onMouseDown:Ge=>Ue(Re,Ge),onMouseUp:()=>{Ze(!1)}})}),Je=()=>Z(()=>{const ze=new Map,We=B.current?.getBoundingClientRect();return E.forEach(({key:Re})=>{const Ge=B.current?.querySelector(`[data-node-key="${kN(Re)}"]`);if(Ge){const[Qe,at,ut,_t]=rU(Ge,We);ze.set(Re,{width:Qe,height:at,left:ut,top:_t})}}),ze});l.useEffect(()=>{Je()},[E.map(ze=>ze.key).join("_")]);const Be=FN(()=>{const ze=cs(T),We=cs(N),Re=cs(O);I([ze[0]-We[0]-Re[0],ze[1]-We[1]-Re[1]]);const Ge=cs(V);z(Ge);const Qe=cs(L);X(Qe);const at=cs(B);F([at[0]-Ge[0],at[1]-Ge[1]]),Je()}),Xe=E.slice(0,de),Oe=E.slice(Se+1),Ke=[...Xe,...Oe],nt=J.get(c),{style:ot}=UY({activeTabOffset:nt,horizontal:G,indicator:C,rtl:d});l.useEffect(()=>{Me()},[c,ae,se,cR(nt),cR(J),G]),l.useEffect(()=>{Be()},[d]);const lt=!!Ke.length,Ct=`${w}-nav-wrap`;let $t,ke,et,De;return G?d?(ke=Y>0,$t=Y!==se):($t=Y<0,ke=Y!==ae):(et=H<0,De=H!==ae),l.createElement(oo,{onResize:Be},l.createElement("div",{ref:Ta(t,T),role:"tablist","aria-orientation":G?"horizontal":"vertical",className:K(`${w}-nav`,n,x?.header),style:{...R?.header,...r},onKeyDown:()=>{ve()}},l.createElement(uR,{ref:N,position:"left",extra:f,prefixCls:w}),l.createElement(oo,{onResize:Be},l.createElement("div",{className:K(Ct,{[`${Ct}-ping-left`]:$t,[`${Ct}-ping-right`]:ke,[`${Ct}-ping-top`]:et,[`${Ct}-ping-bottom`]:De}),ref:P},l.createElement(oo,{onResize:Be},l.createElement("div",{ref:B,className:`${w}-nav-list`,style:{transform:`translate(${Y}px, ${H}px)`,transition:be?"none":void 0}},Fe,l.createElement(WN,{ref:V,prefixCls:w,locale:g,editable:m,style:{...Fe.length===0?void 0:Ce,visibility:lt?"hidden":null}}),l.createElement("div",{className:K(`${w}-ink-bar`,x?.indicator,{[`${w}-ink-bar-animated`]:s.inkBar}),style:{...ot,...R?.indicator}}))))),l.createElement(tU,M0({},e,{removeAriaLabel:g?.removeAriaLabel,ref:L,prefixCls:w,tabs:Ke,className:!lt&&pe,popupStyle:R?.popup,tabMoving:!!be})),l.createElement(uR,{ref:O,position:"right",extra:f,prefixCls:w})))}),oU=({renderTabBar:e,...t})=>e?e(t,dR):l.createElement(dR,t),aU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,id:s,active:c,tabKey:d,children:f}=e,m=l.Children.count(f)>0;return l.createElement("div",{id:s&&`${s}-panel-${d}`,role:"tabpanel",tabIndex:c&&m?0:-1,"aria-labelledby":s&&`${s}-tab-${d}`,"aria-hidden":!c,style:a,className:K(n,c&&`${n}-active`,r),ref:t},f)});function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(this,arguments)}const iU=e=>{const{id:t,activeKey:n,animated:r,tabPosition:a,destroyOnHidden:s,contentStyle:c,contentClassName:d}=e,{prefixCls:f,tabs:m}=l.useContext(C1),g=r.tabPane,h=`${f}-tabpane`;return l.createElement("div",{className:K(`${f}-content-holder`)},l.createElement("div",{className:K(`${f}-content`,`${f}-content-${a}`,{[`${f}-content-animated`]:g})},m.map(y=>{const{key:v,forceRender:b,style:$,className:C,destroyOnHidden:x,...R}=y,w=v===n;return l.createElement(Sr,mp({key:v,visible:w,forceRender:b,removeOnLeave:!!(s??x),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:E,className:T},N)=>l.createElement(aU,mp({},R,{prefixCls:h,id:t,tabKey:v,animated:g,active:w,style:{...c,...$,...E},className:K(d,C,T),ref:N})))})))};function lU(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hu.apply(this,arguments)}let fR=0;const sU=l.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:a,items:s,direction:c,activeKey:d,defaultActiveKey:f,editable:m,animated:g,tabPosition:h="top",tabBarGutter:y,tabBarStyle:v,tabBarExtraContent:b,locale:$,more:C,destroyOnHidden:x,renderTabBar:R,onChange:w,onTabClick:E,onTabScroll:T,getPopupContainer:N,popupClassName:O,indicator:P,classNames:B,styles:L,...V}=e,G=l.useMemo(()=>(s||[]).filter(J=>J&&typeof J=="object"&&"key"in J),[s]),Y=c==="rtl",q=lU(g),[H,_]=l.useState(!1);l.useEffect(()=>{_(YY())},[]);const[j,I]=Yt(f??G[0]?.key,d),[D,F]=l.useState(()=>G.findIndex(J=>J.key===j));l.useEffect(()=>{let J=G.findIndex(oe=>oe.key===j);J===-1&&(J=Math.max(0,Math.min(D,G.length-1)),I(G[J]?.key)),F(J)},[G.map(J=>J.key).join("_"),j,D]);const[A,z]=Yt(null,n);l.useEffect(()=>{n||(z(`rc-tabs-${fR}`),fR+=1)},[]);function k(J,oe){E?.(J,oe);const ne=J!==j;I(J),ne&&w?.(J)}const X={id:A,activeKey:j,animated:q,tabPosition:h,rtl:Y,mobile:H},Q={...X,editable:m,locale:$,more:C,tabBarGutter:y,onTabClick:k,onTabScroll:T,extra:b,style:v,getPopupContainer:N,popupClassName:K(O,B?.popup),indicator:P,styles:L,classNames:B},Z=l.useMemo(()=>({tabs:G,prefixCls:r}),[G,r]);return l.createElement(C1.Provider,{value:Z},l.createElement("div",hu({ref:t,id:n,className:K(r,`${r}-${h}`,{[`${r}-mobile`]:H,[`${r}-editable`]:m,[`${r}-rtl`]:Y},a)},V),l.createElement(oU,hu({},Q,{renderTabBar:R})),l.createElement(iU,hu({destroyOnHidden:x},X,{contentStyle:L?.content,contentClassName:B?.content,animated:q}))))}),cU={motionAppear:!1,motionEnter:!0,motionLeave:!0};function uU(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...typeof t=="object"?t:{}},n.tabPane&&(n.tabPaneMotion={...cU,motionName:Qo(e,"switch")}),n}function dU(e){return e.filter(t=>t)}function fU(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=mr(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:s}=r,{tab:c,...d}=s||{};return{key:String(a),...d,label:c}}return null});return dU(n)}const mU=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Zo(e,"slide-up"),Zo(e,"slide-down")]]},pU=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:s,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${te(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:jo(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:te(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:te(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadiusLG)} 0 0 ${te(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},gU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Jt(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${te(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...xo,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${te(e.paddingXXS)} ${te(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},hU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:s,verticalItemMargin:c,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${te(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
290
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
291
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:d(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:te(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},yU=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:s,horizontalItemPaddingSM:c,horizontalItemPaddingLG:d}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:d,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${te(e.borderRadius)} ${te(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:s,minHeight:s}}}}}},bU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:s,horizontalItemPadding:c,itemSelectedColor:d,itemColor:f}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...wo(e)},"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:d},[`&${m}-focus ${m}-btn:focus-visible`]:jo(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:s}}}},vU=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:s}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:te(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:te(e.marginXS)},marginLeft:{_skip_check_:!0,value:te(s(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},SU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:s,itemActiveColor:c,colorBorderSecondary:d}=e;return{[t]:{...Jt(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} ${d}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:c},...wo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...bU(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...wo(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},CU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:s}=e,c=t||s,d=n||a,f=r||s+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:d,cardHeightLG:f,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(d-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},$U=At("Tabs",e=>{const t=It(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${te(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${te(e.horizontalItemGutter)}`});return[yU(t),vU(t),hU(t),gU(t),pU(t),SU(t),mU(t)]},CU),xU=()=>null,wU=l.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:a,size:s,onEdit:c,hideAdd:d,centered:f,addIcon:m,removeIcon:g,moreIcon:h,more:y,popupClassName:v,children:b,items:$,animated:C,style:x,indicatorSize:R,indicator:w,classNames:E,styles:T,destroyInactiveTabPane:N,destroyOnHidden:O,tabPlacement:P,tabPosition:B,...L}=e,{prefixCls:V}=L,{getPrefixCls:G,direction:Y,getPopupContainer:q,className:H,style:_,classNames:j,styles:I}=zt("tabs"),{tabs:D}=l.useContext(ft),F=G("tabs",V),A=lr(F),[z,k]=$U(F,A),X=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:X.current}));let Q;n==="editable-card"&&(Q={onEdit:(ae,{key:se,event:he})=>{c?.(ae==="add"?he:se,ae)},removeIcon:g??D?.removeIcon??l.createElement(Yr,null),addIcon:(m??D?.addIcon)||l.createElement(fp,null),showAdd:d!==!0});const Z=G(),J=pr(s),oe=fU($,b),ne=uU(F,C),re={align:w?.align??D?.indicator?.align,size:w?.size??R??D?.indicator?.size??D?.indicatorSize},ce=l.useMemo(()=>{const ae=P??B??void 0,se=Y==="rtl";switch(ae){case"start":return se?"right":"left";case"end":return se?"left":"right";default:return ae}},[P,B,Y]),fe={...e,size:J,tabPlacement:ce,items:oe},[le,pe]=Ft([j,E],[I,T],{props:fe},{popup:{_default:"root"}});return l.createElement(sU,{ref:X,direction:Y,getPopupContainer:q,...L,items:oe,className:K({[`${F}-${J}`]:J,[`${F}-card`]:["card","editable-card"].includes(n),[`${F}-editable-card`]:n==="editable-card",[`${F}-centered`]:f},H,r,a,le.root,z,k,A),classNames:{...le,popup:K(v,z,k,A,le.popup?.root)},styles:pe,style:{...pe.root,..._,...x},editable:Q,more:{icon:D?.more?.icon??D?.moreIcon??h??l.createElement(s1,null),transitionName:`${Z}-slide-up`,...y},prefixCls:F,animated:ne,indicator:re,destroyOnHidden:O??N,tabPosition:ce})}),x1=wU;x1.TabPane=xU;const qN=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{const{getPrefixCls:a}=l.useContext(ft),s=a("card",e),c=K(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return l.createElement("div",{...r,className:c})},EU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${te(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,...ol(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...xo,[`
|
|
292
|
+
> ${n}-typography,
|
|
293
|
+
> ${n}-typography-edit-content
|
|
294
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},MU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
295
|
+
${te(a)} 0 0 0 ${n},
|
|
296
|
+
0 ${te(a)} 0 0 ${n},
|
|
297
|
+
${te(a)} ${te(a)} 0 0 ${n},
|
|
298
|
+
${te(a)} 0 0 0 ${n} inset,
|
|
299
|
+
0 ${te(a)} 0 0 ${n} inset;
|
|
300
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},RU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:s,actionsBg:c}=e;return{margin:0,padding:0,listStyle:"none",background:c,borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`,...ol(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:te(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:te(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`}}}},TU=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...ol(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...xo},"&-description":{color:e.colorTextDescription}}),OU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(a)}`}}},NU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},IU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:s,bodyPadding:c,extraColor:d}=e;return{[t]:{...Jt(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:EU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:MU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:RU(e),[`${t}-meta`]:TU(e)},[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:OU(e),[`${t}-loading`]:NU(e),[`${t}-rtl`]:{direction:"rtl"}}},PU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${te(r)}`,fontSize:s,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},zU=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),AU=At("Card",e=>{const t=It(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[IU(t),PU(t)]},zU),DU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,s)=>{const c=`action-${s}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:c},l.createElement("span",null,a))}))},jU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:s,extra:c,headStyle:d={},bodyStyle:f={},title:m,loading:g,bordered:h,variant:y,size:v,type:b,cover:$,actions:C,tabList:x,children:R,activeTabKey:w,defaultActiveTabKey:E,tabBarExtraContent:T,hoverable:N,tabProps:O={},classNames:P,styles:B,...L}=e,{getPrefixCls:V,direction:G,className:Y,style:q,classNames:H,styles:_}=zt("card"),[j]=Ls("card",y,h),I=pr(v),D={...e,size:I,variant:j,loading:g},[F,A]=Ft([H,P],[_,B],{props:D}),z=de=>{e.onTabChange?.(de)},k=l.useMemo(()=>mr(R).some(Se=>l.isValidElement(Se)&&Se.type===qN),[R]),X=V("card",n),[Q,Z]=AU(X),J=l.createElement(vi,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),oe=w!==void 0,ne={...O,[oe?"activeKey":"defaultActiveKey"]:oe?w:E,tabBarExtraContent:T};let re;const ce=!I||I==="default"?"large":I,fe=x?l.createElement(x1,{size:ce,...ne,className:`${X}-head-tabs`,onChange:z,items:x.map(({tab:de,...Se})=>({label:de,...Se}))}):null;if(m||c||fe){const de=K(`${X}-head`,F.header),Se=K(`${X}-head-title`,F.title),Me=K(`${X}-extra`,F.extra),Ae={...d,...A.header};re=l.createElement("div",{className:de,style:Ae},l.createElement("div",{className:`${X}-head-wrapper`},m&&l.createElement("div",{className:Se,style:A.title},m),c&&l.createElement("div",{className:Me,style:A.extra},c)),fe)}const le=K(`${X}-cover`,F.cover),pe=$?l.createElement("div",{className:le,style:A.cover},$):null,ae=K(`${X}-body`,F.body),se={...f,...A.body},he=l.createElement("div",{className:ae,style:se},g?J:R),ge=K(`${X}-actions`,F.actions),be=C?.length?l.createElement(DU,{actionClasses:ge,actionStyle:A.actions,actions:C}):null,Ne=nn(L,["onTabChange"]),ve=K(X,Y,{[`${X}-loading`]:g,[`${X}-bordered`]:j!=="borderless",[`${X}-hoverable`]:N,[`${X}-contain-grid`]:k,[`${X}-contain-tabs`]:x?.length,[`${X}-${I}`]:I,[`${X}-type-${b}`]:!!b,[`${X}-rtl`]:G==="rtl"},r,a,Q,Z,F.root),xe={...A.root,...q,...s};return l.createElement("div",{ref:t,...Ne,className:ve,style:xe},re,pe,he,be)}),_U=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:s,style:c,classNames:d,styles:f,...m}=e,{getPrefixCls:g,className:h,style:y,classNames:v,styles:b}=zt("cardMeta"),C=`${g("card",t)}-meta`,[x,R]=Ft([v,d],[b,f],{props:e}),w=K(C,n,h,x.root),E={...y,...R.root,...c},T=K(`${C}-avatar`,x.avatar),N=K(`${C}-title`,x.title),O=K(`${C}-description`,x.description),P=K(`${C}-section`,x.section),B=r?l.createElement("div",{className:T,style:R.avatar},r):null,L=a?l.createElement("div",{className:N,style:R.title},a):null,V=s?l.createElement("div",{className:O,style:R.description},s):null,G=L||V?l.createElement("div",{className:P,style:R.section},L,V):null;return l.createElement("div",{...m,className:w,style:E},B,G)},Ma=jU;Ma.Grid=qN;Ma.Meta=_U;function HU(e,t,n){var r=n||{},a=r.noTrailing,s=a===void 0?!1:a,c=r.noLeading,d=c===void 0?!1:c,f=r.debounceMode,m=f===void 0?void 0:f,g,h=!1,y=0;function v(){g&&clearTimeout(g)}function b(C){var x=C||{},R=x.upcomingOnly,w=R===void 0?!1:R;v(),h=!w}function $(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];var w=this,E=Date.now()-y;if(h)return;function T(){y=Date.now(),t.apply(w,x)}function N(){g=void 0}!d&&m&&!g&&T(),v(),m===void 0&&E>e?d?(y=Date.now(),s||(g=setTimeout(m?N:T,e))):T():s!==!0&&(g=setTimeout(m?N:T,m===void 0?e-E:e))}return $.cancel=b,$}function BU(e,t,n){var r={},a=r.atBegin,s=a===void 0?!1:a;return HU(e,t,{debounceMode:s!==!1})}const LU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...Jt(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...Jt(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Jt(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`]:jo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${te(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
301
|
+
${n}:not(${n}-disabled),
|
|
302
|
+
${t}:not(${t}-disabled)
|
|
303
|
+
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-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}`}}},[`
|
|
304
|
+
${n}-checked:not(${n}-disabled),
|
|
305
|
+
${t}-checked:not(${t}-disabled)
|
|
306
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&: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}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-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 VU(e,t){const n=It(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return LU(n)}const YN=At("Checkbox",(e,{prefixCls:t})=>[VU(t,e)]),UN=ie.createContext(null),FU=(e,t)=>{const{prefixCls:n,className:r,rootClassName:a,children:s,indeterminate:c=!1,style:d,onMouseEnter:f,onMouseLeave:m,skipGroup:g=!1,disabled:h,classNames:y,styles:v,...b}=e,{getPrefixCls:$,direction:C,className:x,style:R,classNames:w,styles:E}=zt("checkbox"),T=l.useContext(UN),{isFormItemInput:N}=l.useContext(Or),O=l.useContext(Wr),P=(T?.disabled||h)??O,B={...e,indeterminate:c,disabled:P},[L,V]=Ft([w,y],[E,v],{props:B}),G=l.useRef(b.value),Y=l.useRef(null),q=ir(t,Y);l.useEffect(()=>{T?.registerValue(b.value)},[]),l.useEffect(()=>{if(!g)return b.value!==G.current&&(T?.cancelValue(G.current),T?.registerValue(b.value),G.current=b.value),()=>T?.cancelValue(b.value)},[b.value]),l.useEffect(()=>{Y.current?.input&&(Y.current.input.indeterminate=c)},[c]);const H=$("checkbox",n),_=lr(H),[j,I]=YN(H,_),D={...b};T&&!g&&(D.onChange=(...X)=>{b.onChange&&b.onChange.apply(b,X),T.toggleOption&&T.toggleOption({label:s,value:b.value})},D.name=T.name,D.checked=T.value.includes(b.value));const F=K(`${H}-wrapper`,{[`${H}-rtl`]:C==="rtl",[`${H}-wrapper-checked`]:D.checked,[`${H}-wrapper-disabled`]:P,[`${H}-wrapper-in-form-item`]:N},x,r,L.root,a,I,_,j),A=K(L.icon,{[`${H}-indeterminate`]:c},gd,j),[z,k]=xN(D.onClick);return l.createElement(hd,{component:"Checkbox",disabled:P},l.createElement("label",{className:F,style:{...V.root,...R,...d},onMouseEnter:f,onMouseLeave:m,onClick:z},l.createElement($N,{...D,onClick:k,prefixCls:H,className:A,style:V.icon,disabled:P,ref:q}),Rr(s)&&l.createElement("span",{className:K(`${H}-label`,L.label),style:V.label},s)))},GN=l.forwardRef(FU),kU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:s,className:c,rootClassName:d,style:f,onChange:m,role:g="group",...h}=e,{getPrefixCls:y,direction:v}=l.useContext(ft),[b,$]=l.useState(h.value||n||[]),[C,x]=l.useState([]);l.useEffect(()=>{"value"in h&&$(h.value||[])},[h.value]);const R=l.useMemo(()=>a.map(H=>typeof H=="string"||typeof H=="number"?{label:H,value:H}:H),[a]),w=H=>{x(_=>_.filter(j=>j!==H))},E=H=>{x(_=>[].concat(En(_),[H]))},T=H=>{const _=b.indexOf(H.value),j=En(b);_===-1?j.push(H.value):j.splice(_,1),"value"in h||$(j),m?.(j.filter(I=>C.includes(I)).sort((I,D)=>{const F=R.findIndex(z=>z.value===I),A=R.findIndex(z=>z.value===D);return F-A}))},N=y("checkbox",s),O=`${N}-group`,P=lr(N),[B,L]=YN(N,P),V=nn(h,["value","disabled"]),G=a.length?R.map(H=>l.createElement(GN,{prefixCls:N,key:H.value.toString(),disabled:"disabled"in H?H.disabled:h.disabled,value:H.value,checked:b.includes(H.value),onChange:H.onChange,className:K(`${O}-item`,H.className),style:H.style,title:H.title,id:H.id,required:H.required},H.label)):r,Y=l.useMemo(()=>({toggleOption:T,value:b,disabled:h.disabled,name:h.name,registerValue:E,cancelValue:w}),[T,b,h.disabled,h.name,E,w]),q=K(O,{[`${O}-rtl`]:v==="rtl"},c,d,L,P,B);return l.createElement("div",{className:q,style:f,role:g,...V,ref:t},l.createElement(UN.Provider,{value:Y},G))}),zs=GN;zs.Group=kU;zs.__ANT_CHECKBOX=!0;const XN=l.createContext({}),WU=e=>typeof e=="number"&&!Number.isNaN(e);function mR(e){return e==="auto"?"1 1 auto":WU(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const qU=["xs","sm","md","lg","xl","xxl"],YU=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ft),{gutter:a,wrap:s}=l.useContext(XN),{prefixCls:c,span:d,order:f,offset:m,push:g,pull:h,className:y,children:v,flex:b,style:$,...C}=e,x=n("col",c),R=n(),[w,E]=NH(x),[T]=en(R,"col"),N={};let O={};qU.forEach(L=>{let V={};const G=e[L];typeof G=="number"?V.span=G:typeof G=="object"&&(V=G||{}),delete C[L],O={...O,[`${x}-${L}-${V.span}`]:V.span!==void 0,[`${x}-${L}-order-${V.order}`]:V.order||V.order===0,[`${x}-${L}-offset-${V.offset}`]:V.offset||V.offset===0,[`${x}-${L}-push-${V.push}`]:V.push||V.push===0,[`${x}-${L}-pull-${V.pull}`]:V.pull||V.pull===0,[`${x}-rtl`]:r==="rtl"},V.flex&&(O[`${x}-${L}-flex`]=!0,N[T(`${L}-flex`)]=mR(V.flex))});const P=K(x,{[`${x}-${d}`]:d!==void 0,[`${x}-order-${f}`]:f,[`${x}-offset-${m}`]:m,[`${x}-push-${g}`]:g,[`${x}-pull-${h}`]:h},y,O,w,E),B={};if(a?.[0]){const L=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;B.paddingInline=L}return b&&(B.flex=mR(b),s===!1&&!B.minWidth&&(B.minWidth=0)),l.createElement("div",{...C,style:{...B,...$,...N},className:P,ref:t},v)});function UU(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((s,c)=>{if(typeof s=="object"&&s!==null)for(let d=0;d<ll.length;d++){const f=ll[d];if(a[f]&&s[f]!==void 0){n[c]=s[f];break}}else n[c]=s}),n}function pR(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let s=0;s<ll.length;s++){const c=ll[s];if(!t||!t[c])continue;const d=e[c];if(d!==void 0){r(d);return}}};return l.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const GU=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:s,style:c,children:d,gutter:f=0,wrap:m,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(ft),v=Lp(!0,null),b=pR(a,v),$=pR(r,v),C=h("row",n),[x,R]=OH(C),w=UU(f,v),E=K(C,{[`${C}-no-wrap`]:m===!1,[`${C}-${$}`]:$,[`${C}-${b}`]:b,[`${C}-rtl`]:y==="rtl"},s,x,R),T={};if(w?.[0]){const B=typeof w[0]=="number"?`${w[0]/-2}px`:`calc(${w[0]} / -2)`;T.marginInline=B}const[N,O]=w;T.rowGap=O;const P=l.useMemo(()=>({gutter:[N,O],wrap:m}),[N,O,m]);return l.createElement(XN.Provider,{value:P},l.createElement("div",{...g,className:E,style:{...T,...c},ref:t},d))}),XU=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},KU=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:s,orientationMargin:c,verticalMarginInline:d}=e,f=`${t}-rail`;return{[t]:{...Jt(e),borderBlockStart:`${te(a)} solid ${r}`,[f]:{borderBlockStart:`${te(a)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${te(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${te(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${te(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${f}-start, ${f}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${f}-start`]:{width:`calc(${c} * 100%)`},[`${f}-end`]:{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${f}-start`]:{width:`calc(100% - ${c} * 100%)`},[`${f}-end`]:{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${te(a)} 0 0`,[f]:{borderBlockStart:`${te(a)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${f}-start, ${f}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${te(a)} 0 0`,[f]:{borderBlockStart:`${te(a)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${f}-start`]:{width:0},[`${f}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${f}-start`]:{width:"100%"},[`${f}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},QU=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),ZU=At("Divider",e=>{const t=It(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[KU(t),XU(t)]},QU,{unitless:{orientationMargin:!0}}),JU=["left","right","center","start","end"],eG={small:"sm",middle:"md"},si=e=>{const{getPrefixCls:t,direction:n,className:r,style:a,classNames:s,styles:c}=zt("divider"),{prefixCls:d,type:f,orientation:m,vertical:g,titlePlacement:h,orientationMargin:y,className:v,rootClassName:b,children:$,dashed:C,variant:x="solid",plain:R,style:w,size:E,classNames:T,styles:N,...O}=e,P=t("divider",d),B=`${P}-rail`,[L,V]=ZU(P),G=pr(E),Y=eG[G],q=!!$,H=JU.includes(m||""),_=l.useMemo(()=>{const J=h??(H?m:"center");return J==="left"?n==="rtl"?"end":"start":J==="right"?n==="rtl"?"start":"end":J},[n,m,h,H]),j=_==="start"&&y!=null,I=_==="end"&&y!=null,[D,F]=ud(m,g,f),A={...e,orientation:D,titlePlacement:_,size:G},[z,k]=Ft([s,T],[c,N],{props:A}),X=K(P,r,L,V,`${P}-${D}`,{[`${P}-with-text`]:q,[`${P}-with-text-${_}`]:q,[`${P}-dashed`]:!!C,[`${P}-${x}`]:x!=="solid",[`${P}-plain`]:!!R,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:j,[`${P}-no-default-orientation-margin-end`]:I,[`${P}-${Y}`]:!!Y,[B]:!$,[z.rail]:z.rail&&!$},v,b,z.root),Q=l.useMemo(()=>typeof y=="number"?y:/^\d+$/.test(y)?Number(y):y,[y]),Z={marginInlineStart:j?Q:void 0,marginInlineEnd:I?Q:void 0};return l.createElement("div",{className:X,style:{...a,...k.root,...$?{}:k.rail,...w},...O,role:"separator"},$&&!F&&l.createElement(l.Fragment,null,l.createElement("div",{className:K(B,`${B}-start`,z.rail),style:k.rail}),l.createElement("span",{className:K(`${P}-inner-text`,z.content),style:{...Z,...k.content}},$),l.createElement("div",{className:K(B,`${B}-end`,z.rail),style:k.rail})))},gR=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},Uo=e=>e!==void 0?`${e}px`:void 0;function tG(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:a,motionName:s,onMotionStart:c,onMotionEnd:d,direction:f,vertical:m=!1}=e,g=l.useRef(null),[h,y]=l.useState(r),v=O=>{const P=a(O),B=n.current?.querySelectorAll(`.${t}-item`)[P];return B?.offsetParent&&B},[b,$]=l.useState(null),[C,x]=l.useState(null);Pt(()=>{if(h!==r){const O=v(h),P=v(r),B=gR(O,m),L=gR(P,m);y(r),$(B),x(L),O&&P?c():d()}},[r]);const R=l.useMemo(()=>Uo(m?b?.top??0:f==="rtl"?-b?.right:b?.left),[m,f,b]),w=l.useMemo(()=>Uo(m?C?.top??0:f==="rtl"?-C?.right:C?.left),[m,f,C]),E=()=>m?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},T=()=>m?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},N=()=>{$(null),x(null),d()};return!b||!C?null:l.createElement(Sr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:E,onAppearActive:T,onVisibleChanged:N},({className:O,style:P},B)=>{const L={...P,"--thumb-start-left":R,"--thumb-start-width":Uo(b?.width),"--thumb-active-left":w,"--thumb-active-width":Uo(C?.width),"--thumb-start-top":R,"--thumb-start-height":Uo(b?.height),"--thumb-active-top":w,"--thumb-active-height":Uo(C?.height)},V={ref:ir(g,B),style:L,className:K(`${t}-thumb`,O)};return l.createElement("div",V)})}function nG(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function rG(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=nG(t);return{...t,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const oG=({prefixCls:e,className:t,style:n,styles:r,classNames:a,data:s,disabled:c,checked:d,label:f,title:m,value:g,name:h,onChange:y,onFocus:v,onBlur:b,onKeyDown:$,onKeyUp:C,onMouseDown:x,itemRender:R=w=>w})=>{const w=T=>{c||y(T,g)},E=l.createElement("label",{className:K(t,{[`${e}-item-disabled`]:c}),style:n,onMouseDown:x},l.createElement("input",{name:h,className:`${e}-item-input`,type:"radio",disabled:c,checked:d,onChange:w,onFocus:v,onBlur:b,onKeyDown:$,onKeyUp:C}),l.createElement("div",{className:K(`${e}-item-label`,a?.label),title:m,style:r?.label},f));return R(E,{item:s})},aG=l.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:a,options:s=[],disabled:c,defaultValue:d,value:f,name:m,onChange:g,className:h="",style:y,styles:v,classNames:b,motionName:$="thumb-motion",itemRender:C,...x}=e,R=l.useRef(null),w=l.useMemo(()=>ir(R,t),[R,t]),E=l.useMemo(()=>rG(s),[s]),[T,N]=Yt(d??E[0]?.value,f),[O,P]=l.useState(!1),B=(z,k)=>{N(k),g?.(k)},L=nn(x,["children"]),[V,G]=l.useState(!1),[Y,q]=l.useState(!1),H=()=>{q(!0)},_=()=>{q(!1)},j=()=>{G(!1)},I=z=>{z.key==="Tab"&&G(!0)},D=z=>{const k=E.findIndex(J=>J.value===T),X=E.length,Q=(k+z+X)%X,Z=E[Q];Z&&(N(Z.value),g?.(Z.value))},F=z=>{switch(z.key){case"ArrowLeft":case"ArrowUp":D(-1);break;case"ArrowRight":case"ArrowDown":D(1);break}},A=z=>{const{value:k,disabled:X}=z;return l.createElement(oG,Gn({},z,{name:m,data:z,itemRender:C,key:k,prefixCls:n,className:K(z.className,`${n}-item`,b?.item,{[`${n}-item-selected`]:k===T&&!O,[`${n}-item-focused`]:Y&&V&&k===T}),style:v?.item,classNames:b,styles:v,checked:k===T,onChange:B,onFocus:H,onBlur:_,onKeyDown:F,onKeyUp:I,onMouseDown:j,disabled:!!c||!!X}))};return l.createElement("div",Gn({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":a?"vertical":"horizontal",style:y},L,{className:K(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:c,[`${n}-vertical`]:a},h),ref:w}),l.createElement("div",{className:`${n}-group`},l.createElement(tG,{vertical:a,prefixCls:n,value:T,containerRef:R,motionName:`${n}-${$}`,direction:r,getValueIndex:z=>E.findIndex(k=>k.value===z),onMotionStart:()=>{P(!0)},onMotionEnd:()=>{P(!1)}}),E.map(A)))}),iG=aG;function hR(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function yR(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const lG={overflow:"hidden",...xo},sG=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Jt(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...wo(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${te(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...yR(e),color:e.itemSelectedColor},"&-focused":jo(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:n,lineHeight:te(n),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,...lG},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...yR(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${te(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:te(r),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:te(a),padding:`0 ${te(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...hR(`&-disabled ${t}-item`,e),...hR(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},cG=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:s,lineWidthBold:c,colorBgLayout:d}=e;return{trackPadding:c,trackBg:d,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:s,itemSelectedColor:n}},uG=At("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=It(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return sG(r)},cG);function dG(e){return typeof e=="object"&&!!e?.icon}const fG=l.forwardRef((e,t)=>{const n=Jo(),{prefixCls:r,className:a,rootClassName:s,block:c,options:d=[],size:f="middle",style:m,vertical:g,orientation:h,shape:y="default",name:v=n,styles:b,classNames:$,...C}=e,{getPrefixCls:x,direction:R,className:w,style:E,classNames:T,styles:N}=zt("segmented"),O={...e,options:d,size:f,shape:y},[P,B]=Ft([T,$],[N,b],{props:O}),L=x("segmented",r),[V,G]=uG(L),Y=pr(f),q=l.useMemo(()=>d.map(D=>{if(dG(D)){const{icon:F,label:A,...z}=D;return{...z,label:l.createElement(l.Fragment,null,l.createElement("span",{className:K(`${L}-item-icon`,P.icon),style:B.icon},F),A&&l.createElement("span",null,A))}}return D}),[d,L,P.icon,B.icon]),[,H]=ud(h,g),_=K(a,s,w,P.root,{[`${L}-block`]:c,[`${L}-sm`]:Y==="small",[`${L}-lg`]:Y==="large",[`${L}-vertical`]:H,[`${L}-shape-${y}`]:y==="round"},V,G),j={...B.root,...E,...m},I=(D,{item:F})=>{if(!F.tooltip)return D;const A=typeof F.tooltip=="object"?F.tooltip:{title:F.tooltip};return l.createElement(fr,{...A},D)};return l.createElement(iG,{...C,name:v,className:_,style:j,classNames:P,styles:B,itemRender:I,options:q,ref:t,prefixCls:L,direction:R,vertical:H})}),mG=fG,pG=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:s,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:f,borderRadiusSM:m,colorBgContainerDisabled:g,lineWidth:h,antCls:y}=e,[v,b]=en(y,"space");return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:h,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:c,borderRadius:f},"&-small":{paddingInline:s,borderRadius:m,fontSize:d},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[v("addon-border-color")]:a,[v("addon-background")]:g,[v("addon-border-color-outlined")]:a,[v("addon-background-filled")]:g,borderColor:b("addon-border-color"),background:b("addon-background"),"&-variant-outlined":{[v("addon-border-color")]:b("addon-border-color-outlined")},"&-variant-filled":{[v("addon-border-color")]:"transparent",[v("addon-background")]:b("addon-background-filled"),[`&${t}-disabled`]:{[v("addon-border-color")]:a,[v("addon-background")]:g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[v("addon-border-color-outlined")]:e.colorError,[v("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[v("addon-border-color-outlined")]:e.colorWarning,[v("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},gG=At(["Space","Addon"],e=>[pG(e),bd(e,{focus:!1})]),hG=ie.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:s,variant:c="outlined",disabled:d,status:f,...m}=e,{getPrefixCls:g,direction:h}=ie.useContext(ft),y=g("space-addon",s),[v,b]=gG(y),{compactItemClassnames:$,compactSize:C}=Oa(y,h),x=il(y,f),R=K(y,v,$,b,`${y}-variant-${c}`,x,{[`${y}-${C}`]:C,[`${y}-disabled`]:d},n);return ie.createElement("div",{ref:t,className:R,style:a,...m},r)});function yG(e){return!!(e.addonBefore||e.addonAfter)}function bG(e){return!!(e.prefix||e.suffix||e.allowClear)}function bR(e,t,n){const r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...s)=>{t.setSelectionRange(...s)},a}function pp(e,t,n,r){if(!n)return;let a=t;if(t.type==="click"){a=bR(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=bR(t,e,r),n(a);return}n(a)}function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(this,arguments)}const KN=ie.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:a,prefix:s,suffix:c,addonBefore:d,addonAfter:f,className:m,style:g,disabled:h,readOnly:y,focused:v,triggerFocus:b,allowClear:$,value:C,handleReset:x,hidden:R,classes:w,classNames:E,dataAttrs:T,styles:N,components:O,onClear:P}=e,B=r??n,L=O?.affixWrapper||"span",V=O?.groupWrapper||"span",G=O?.wrapper||"span",Y=O?.groupAddon||"span",q=l.useRef(null),H=D=>{q.current?.contains(D.target)&&b?.()},_=bG(e);let j=l.cloneElement(B,{value:C,className:K(B.props?.className,!_&&E?.variant)||null});const I=l.useRef(null);if(ie.useImperativeHandle(t,()=>({nativeElement:I.current||q.current})),_){let D=null;if($){const k=!h&&!y&&C,X=`${a}-clear-icon`,Q=typeof $=="object"&&$?.clearIcon?$.clearIcon:"✖";D=ie.createElement("button",{type:"button",tabIndex:-1,onClick:Z=>{x?.(Z),P?.()},onMouseDown:Z=>Z.preventDefault(),className:K(X,{[`${X}-hidden`]:!k,[`${X}-has-suffix`]:!!c})},Q)}const F=`${a}-affix-wrapper`,A=K(F,{[`${a}-disabled`]:h,[`${F}-disabled`]:h,[`${F}-focused`]:v,[`${F}-readonly`]:y,[`${F}-input-with-clear-btn`]:c&&$&&C},w?.affixWrapper,E?.affixWrapper,E?.variant),z=(c||$)&&ie.createElement("span",{className:K(`${a}-suffix`,E?.suffix),style:N?.suffix},D,c);j=ie.createElement(L,R0({className:A,style:N?.affixWrapper,onClick:H},T?.affixWrapper,{ref:q}),s&&ie.createElement("span",{className:K(`${a}-prefix`,E?.prefix),style:N?.prefix},s),j,z)}if(yG(e)){const D=`${a}-group`,F=`${D}-addon`,A=`${D}-wrapper`,z=K(`${a}-wrapper`,D,w?.wrapper,E?.wrapper),k=K(A,{[`${A}-disabled`]:h},w?.group,E?.groupWrapper);j=ie.createElement(V,{className:k,ref:I},ie.createElement(G,{className:z},d&&ie.createElement(Y,{className:F},d),j,f&&ie.createElement(Y,{className:F},f)))}return ie.cloneElement(j,{className:K(j.props?.className,m)||null,style:{...j.props?.style,...g},hidden:R})});function QN(e,t){return l.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...a}=n;return{...a,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:a.strategy||(s=>s.length)}},[e,t])}function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gp.apply(this,arguments)}const vG=l.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:a,onBlur:s,onPressEnter:c,onKeyDown:d,onKeyUp:f,prefixCls:m="rc-input",disabled:g,htmlSize:h,className:y,maxLength:v,suffix:b,showCount:$,count:C,type:x="text",classes:R,classNames:w,styles:E,onCompositionStart:T,onCompositionEnd:N,...O}=e,[P,B]=l.useState(!1),L=l.useRef(!1),V=l.useRef(!1),G=l.useRef(null),Y=l.useRef(null),q=ae=>{G.current&&aO(G.current,ae)},[H,_]=Yt(e.defaultValue,e.value),j=H==null?"":String(H),[I,D]=l.useState(null),F=QN(C,$),A=F.max||v,z=F.strategy(j),k=!!A&&z>A;l.useImperativeHandle(t,()=>({focus:q,blur:()=>{G.current?.blur()},setSelectionRange:(ae,se,he)=>{G.current?.setSelectionRange(ae,se,he)},select:()=>{G.current?.select()},input:G.current,nativeElement:Y.current?.nativeElement||G.current})),l.useEffect(()=>{V.current&&(V.current=!1),B(ae=>ae&&g?!1:ae)},[g]);const X=(ae,se,he)=>{let ge=se;if(!L.current&&F.exceedFormatter&&F.max&&F.strategy(se)>F.max)ge=F.exceedFormatter(se,{max:F.max}),se!==ge&&D([G.current?.selectionStart||0,G.current?.selectionEnd||0]);else if(he.source==="compositionEnd")return;_(ge),G.current&&pp(G.current,ae,r,ge)};l.useEffect(()=>{I&&G.current?.setSelectionRange(...I)},[I]);const Q=ae=>{X(ae,ae.target.value,{source:"change"})},Z=ae=>{L.current=!1,X(ae,ae.currentTarget.value,{source:"compositionEnd"}),N?.(ae)},J=ae=>{c&&ae.key==="Enter"&&!V.current&&!ae.nativeEvent.isComposing&&(V.current=!0,c(ae)),d?.(ae)},oe=ae=>{ae.key==="Enter"&&(V.current=!1),f?.(ae)},ne=ae=>{B(!0),a?.(ae)},re=ae=>{V.current&&(V.current=!1),B(!1),s?.(ae)},ce=ae=>{_(""),q(),G.current&&pp(G.current,ae,r)},fe=k&&`${m}-out-of-range`,le=()=>{const ae=nn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ie.createElement("input",gp({autoComplete:n},ae,{onChange:Q,onFocus:ne,onBlur:re,onKeyDown:J,onKeyUp:oe,className:K(m,{[`${m}-disabled`]:g},w?.input),style:E?.input,ref:G,size:h,type:x,onCompositionStart:se=>{L.current=!0,T?.(se)},onCompositionEnd:Z}))},pe=()=>{const ae=Number(A)>0;if(b||F.show){const se=F.showFormatter?F.showFormatter({value:j,count:z,maxLength:A}):`${z}${ae?` / ${A}`:""}`;return ie.createElement(ie.Fragment,null,F.show&&ie.createElement("span",{className:K(`${m}-show-count-suffix`,{[`${m}-show-count-has-suffix`]:!!b},w?.count),style:{...E?.count}},se),b)}return null};return ie.createElement(KN,gp({},O,{prefixCls:m,className:K(y,fe),handleReset:ce,value:j,focused:P,triggerFocus:q,suffix:pe(),disabled:g,classes:R,classNames:w,styles:E,ref:Y}),le())}),ZN=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ie.createElement(_s,null)}),t};function JN(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function SG(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const eg=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:s,disabled:c,onBlur:d,onFocus:f,suffix:m,allowClear:g,addonAfter:h,addonBefore:y,className:v,style:b,styles:$,rootClassName:C,onChange:x,classNames:R,variant:w,...E}=e,{getPrefixCls:T,direction:N,allowClear:O,autoComplete:P,className:B,style:L,classNames:V,styles:G}=zt("input"),Y=T("input",n),q=l.useRef(null),H=lr(Y),[_,j]=zN(Y,C);AN(Y,H);const{compactSize:I,compactItemClassnames:D}=Oa(Y,N),F=pr(be=>s??I??be),A=ie.useContext(Wr),z=c??A,k={...e,size:F,disabled:z},[X,Q]=Ft([V,R],[G,$],{props:k}),{status:Z,hasFeedback:J,feedbackIcon:oe}=l.useContext(Or),ne=Bs(Z,a),re=SG(e)||!!J;l.useRef(re);const ce=JN(q,!0),fe=be=>{ce(),d?.(be)},le=be=>{ce(),f?.(be)},pe=be=>{ce(),x?.(be)},ae=(J||m)&&ie.createElement(ie.Fragment,null,m,J&&oe),se=ZN(g??O),[he,ge]=Ls("input",w,r);return ie.createElement(vG,{ref:ir(t,q),prefixCls:Y,autoComplete:P,...E,disabled:z,onBlur:fe,onFocus:le,style:{...Q.root,...L,...b},styles:Q,suffix:ae,allowClear:se,className:K(v,C,j,H,D,B,X.root),onChange:pe,addonBefore:y&&ie.createElement(Ea,{form:!0,space:!0},y),addonAfter:h&&ie.createElement(Ea,{form:!0,space:!0},h),classNames:{...X,input:K({[`${Y}-sm`]:F==="small",[`${Y}-lg`]:F==="large",[`${Y}-rtl`]:N==="rtl"},X.input,_),variant:K({[`${Y}-${he}`]:ge},il(Y,ne)),affixWrapper:K({[`${Y}-affix-wrapper-sm`]:F==="small",[`${Y}-affix-wrapper-lg`]:F==="large",[`${Y}-affix-wrapper-rtl`]:N==="rtl"},_),wrapper:K({[`${Y}-group-rtl`]:N==="rtl"},_),groupWrapper:K({[`${Y}-group-wrapper-sm`]:F==="small",[`${Y}-group-wrapper-lg`]:F==="large",[`${Y}-group-wrapper-rtl`]:N==="rtl",[`${Y}-group-wrapper-${he}`]:ge},il(`${Y}-group-wrapper`,ne,J),_)}})});var CG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(this,arguments)}const $G=(e,t)=>l.createElement(ht,T0({},e,{ref:t,icon:CG})),xG=l.forwardRef($G),e3=(e,t,n,r,a,s)=>{const{classNames:c,styles:d}=zt(e),[f,m]=Ft([c,t],[d,n],{props:s},{popup:{_default:"root"}});return l.useMemo(()=>{const g={...f,popup:{...f.popup,root:K(f.popup?.root,r)}},h={...m,popup:{...m.popup,root:{...m.popup?.root,...a}}};return[g,h]},[f,m,r,a])};function wG(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function EG(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function t3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=ZO({...e,componentName:"DatePicker"});return[l.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),a]}const[MG,RG]=["week","WeekPicker"],[TG,OG]=["month","MonthPicker"],[NG,IG]=["year","YearPicker"],[PG,zG]=["quarter","QuarterPicker"],[w1,vR]=["time","TimePicker"];var AG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}const DG=(e,t)=>l.createElement(ht,O0({},e,{ref:t,icon:AG})),n3=l.forwardRef(DG);var jG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N0.apply(this,arguments)}const _G=(e,t)=>l.createElement(ht,N0({},e,{ref:t,icon:jG})),Td=l.forwardRef(_G),r3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ie.createElement(ie.Fragment,null,e===w1?ie.createElement(Td,null):ie.createElement(n3,null),t&&n):r,HG=e=>l.createElement(Bt,{size:"small",type:"primary",...e});function o3(e){return l.useMemo(()=>({button:HG,...e}),[e])}const BG=e=>l.forwardRef((n,r)=>{const{prefixCls:a,getPopupContainer:s,components:c,className:d,style:f,classNames:m,styles:g,placement:h,size:y,disabled:v,bordered:b=!0,placeholder:$,status:C,variant:x,picker:R,dropdownClassName:w,popupClassName:E,popupStyle:T,rootClassName:N,suffixIcon:O,...P}=n,B=R===w1?"timePicker":"datePicker",[L,V]=e3(B,m,g,E||w,T),G=l.useRef(null),{getPrefixCls:Y,direction:q,getPopupContainer:H,rangePicker:_}=l.useContext(ft),j=Y("picker",a),{compactSize:I,compactItemClassnames:D}=Oa(j,q),F=Y(),[A,z]=Ls("rangePicker",x,b),k=lr(j),[X,Q]=HN(j,k),Z=K(X,Q,k,N),[J]=t3(n),oe=o3(c),ne=pr(Ne=>y??I??Ne),re=l.useContext(Wr),ce=v??re,fe=l.useContext(Or),{hasFeedback:le,status:pe,feedbackIcon:ae}=fe,se=r3({picker:R,hasFeedback:le,feedbackIcon:ae,suffixIcon:O});l.useImperativeHandle(r,()=>G.current);const[he]=ao("Calendar",Mu),ge=Ca(he,n.locale||{}),[be]=bi("DatePicker",V?.popup?.root?.zIndex);return l.createElement(Ea,{space:!0},l.createElement(Pq,{separator:l.createElement("span",{"aria-label":"to",className:`${j}-separator`},l.createElement(xG,null)),disabled:ce,ref:G,placement:h,placeholder:EG(ge,R,$),suffixIcon:se,prevIcon:l.createElement("span",{className:`${j}-prev-icon`}),nextIcon:l.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:R,...P,locale:ge.lang,getPopupContainer:s||H,generateConfig:e,components:oe,direction:q,prefixCls:j,rootClassName:Z,className:K({[`${j}-${ne}`]:ne,[`${j}-${A}`]:z},il(j,Bs(pe,C),le),D,d,_?.className),style:{..._?.style,...f},classNames:L,styles:{...V,popup:{...V.popup,root:{...V.popup.root,zIndex:be}}},allowClear:J}))}),LG=e=>{const t=(f,m)=>{const g=m===vR?"timePicker":"datePicker";return l.forwardRef((y,v)=>{const{prefixCls:b,getPopupContainer:$,components:C,style:x,className:R,size:w,bordered:E,placement:T,placeholder:N,disabled:O,status:P,variant:B,onCalendarChange:L,classNames:V,styles:G,dropdownClassName:Y,popupClassName:q,popupStyle:H,rootClassName:_,suffixIcon:j,...I}=y,{getPrefixCls:D,direction:F,getPopupContainer:A,[g]:z}=l.useContext(ft),k=D("picker",b),{compactSize:X,compactItemClassnames:Q}=Oa(k,F),Z=pr(Je=>w??X??Je),J=l.useContext(Wr),oe=O??J,ne={...y,size:Z,disabled:oe,status:P,variant:B},[re,ce]=e3(g,V,G,q||Y,H,ne),fe=l.useRef(null),[le,pe]=Ls("datePicker",B,E),ae=lr(k),[se,he]=HN(k,ae),ge=K(se,he,ae,_);l.useImperativeHandle(v,()=>fe.current);const be={showToday:!0},Ne=f||y.picker,ve=D(),{onSelect:xe,multiple:de}=I,Se=xe&&f==="time"&&!de,Me=(Je,Be,Xe)=>{L?.(Je,Be,Xe),Se&&xe(Je)},[Ae,Ie]=t3(y),Ye=o3(C),Ze=l.useContext(Or),{hasFeedback:He,status:Ve,feedbackIcon:_e}=Ze,Ue=r3({picker:Ne,hasFeedback:He,feedbackIcon:_e,suffixIcon:j}),[Pe]=ao("DatePicker",Mu),Ce=Ca(Pe,y.locale||{}),[Fe]=bi("DatePicker",ce?.popup?.root?.zIndex);return l.createElement(Ea,{space:!0},l.createElement(nY,{ref:fe,placeholder:wG(Ce,Ne,N),suffixIcon:Ue,placement:T,prevIcon:l.createElement("span",{className:`${k}-prev-icon`}),nextIcon:l.createElement("span",{className:`${k}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${k}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${k}-super-next-icon`}),transitionName:`${ve}-slide-up`,picker:f,onCalendarChange:Me,...be,...I,locale:Ce.lang,getPopupContainer:$||A,generateConfig:e,components:Ye,direction:F,disabled:oe,prefixCls:k,rootClassName:ge,className:K({[`${k}-${Z}`]:Z,[`${k}-${le}`]:pe},il(k,Bs(Ve,P),He),Q,z?.className,R),style:{...z?.style,...x},classNames:re,styles:{...ce,popup:{...ce.popup,root:{...ce.popup.root,zIndex:Fe}}},allowClear:Ae,removeIcon:Ie}))})},n=t(),r=t(MG,RG),a=t(TG,OG),s=t(NG,IG),c=t(PG,zG),d=t(w1,vR);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:s,TimePicker:d,QuarterPicker:c}},a3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:s,QuarterPicker:c}=LG(e),d=BG(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=a,f.RangePicker=d,f.TimePicker=s,f.QuarterPicker=c,f},yl=a3(z6),VG=Bp(yl,"popupAlign",void 0,"picker");yl._InternalPanelDoNotUseOrYouWillBeFired=VG;const FG=Bp(yl.RangePicker,"popupAlign",void 0,"picker");yl._InternalRangePanelDoNotUseOrYouWillBeFired=FG;yl.generatePicker=a3;const SR=l.createContext(null),i3=l.createContext({});function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I0.apply(this,arguments)}const kG=e=>{const{prefixCls:t,className:n,containerRef:r,...a}=e,{panel:s}=l.useContext(i3),c=Ta(s,r);return l.createElement("div",I0({className:K(`${t}-section`,n),role:"dialog",ref:c},Pn(e,{aria:!0}),{"aria-modal":"true"},a))};function WG(e){const{prefixCls:t,direction:n,className:r,style:a,maxSize:s,containerRef:c,currentSize:d,onResize:f,onResizeEnd:m,onResizeStart:g}=e,[h,y]=l.useState(!1),[v,b]=l.useState(0),[$,C]=l.useState(0),x=n==="left"||n==="right",R=ct(N=>{N.preventDefault(),N.stopPropagation(),y(!0),b(x?N.clientX:N.clientY);let O;if(typeof d=="number")O=d;else if(c?.current){const P=c.current.getBoundingClientRect();O=x?P.width:P.height}C(O),g?.(O)}),w=ct(N=>{if(!h)return;let P=(x?N.clientX:N.clientY)-v;(n==="right"||n==="bottom")&&(P=-P);let B=$+P;B<0&&(B=0),s&&B>s&&(B=s),f?.(B)}),E=l.useCallback(()=>{if(h&&(y(!1),c?.current)){const N=c.current.getBoundingClientRect(),O=x?N.width:N.height;m?.(O)}},[h,c,m,x]);return l.useEffect(()=>{if(h)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E)}},[h,w,E]),{dragElementProps:{className:K(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:h,[`${t}-dragger-horizontal`]:x,[`${t}-dragger-vertical`]:!x},r),style:a,onMouseDown:R},isDragging:h}}function Jy(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&rr(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function qG(e,t,n,r,a){lO(t&&(r??a!==!1),e),ie.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t])}function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bs.apply(this,arguments)}const YG=(e,t)=>{const{prefixCls:n,open:r,placement:a,inline:s,push:c,forceRender:d,autoFocus:f,focusTrap:m,classNames:g,rootClassName:h,rootStyle:y,zIndex:v,className:b,id:$,style:C,motion:x,width:R,height:w,size:E,maxSize:T,children:N,mask:O,maskClosable:P,maskMotion:B,maskClassName:L,maskStyle:V,afterOpenChange:G,onClose:Y,onMouseEnter:q,onMouseOver:H,onMouseLeave:_,onClick:j,onKeyDown:I,onKeyUp:D,styles:F,drawerRender:A,resizable:z,defaultSize:k}=e,X=l.useRef(null);l.useImperativeHandle(t,()=>X.current),qG(()=>X.current,r,f,m,O);const[Q,Z]=l.useState(!1),J=l.useContext(SR);let oe;typeof c=="boolean"?oe=c?{}:{distance:0}:oe=c||{};const ne=oe?.distance??J?.pushDistance??180,re=l.useMemo(()=>({pushDistance:ne,push:()=>{Z(!0)},pull:()=>{Z(!1)}}),[ne]);l.useEffect(()=>{r?J?.push?.():J?.pull?.()},[r]),l.useEffect(()=>()=>{J?.pull?.()},[]);const ce=l.createElement(Sr,bs({key:"mask"},B,{visible:O&&r}),({className:Ie,style:Ye},Ze)=>l.createElement("div",{className:K(`${n}-mask`,Ie,g?.mask,L),style:{...Ye,...V,...F?.mask},onClick:P&&r?Y:void 0,ref:Ze})),fe=typeof x=="function"?x(a):x,[le,pe]=l.useState(),ae=a==="left"||a==="right",se=l.useMemo(()=>Jy(E??(ae?R:w)??le??k??(ae?378:void 0)),[E,R,w,k,ae,le]),he=l.useMemo(()=>{const Ie={};if(Q&&ne)switch(a){case"top":Ie.transform=`translateY(${ne}px)`;break;case"bottom":Ie.transform=`translateY(${-ne}px)`;break;case"left":Ie.transform=`translateX(${ne}px)`;break;default:Ie.transform=`translateX(${-ne}px)`;break}return ae?Ie.width=Jy(se):Ie.height=Jy(se),Ie},[Q,ne,a,ae,se]),ge=l.useRef(null),be=!!z,Ne=typeof z=="object"&&z||{},ve=ct(Ie=>{pe(Ie),Ne.onResize?.(Ie)}),{dragElementProps:xe,isDragging:de}=WG({prefixCls:`${n}-resizable`,direction:a,className:g?.dragger,style:F?.dragger,maxSize:T,containerRef:ge,currentSize:se,onResize:ve,onResizeStart:Ne.onResizeStart,onResizeEnd:Ne.onResizeEnd}),Se={onMouseEnter:q,onMouseOver:H,onMouseLeave:_,onClick:j,onKeyDown:I,onKeyUp:D},Me=l.createElement(Sr,bs({key:"panel"},fe,{visible:r,forceRender:d,onVisibleChanged:G,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:Ie,style:Ye},Ze)=>{const He=l.createElement(kG,bs({id:$,containerRef:Ze,prefixCls:n,className:K(b,g?.section),style:{...C,...F?.section}},Pn(e,{aria:!0}),Se),N);return l.createElement("div",bs({ref:ge,className:K(`${n}-content-wrapper`,de&&`${n}-content-wrapper-dragging`,g?.wrapper,!de&&Ie),style:{...Ye,...he,...F?.wrapper}},Pn(e,{data:!0})),be&&l.createElement("div",xe),A?A(He):He)}),Ae={...y};return v&&(Ae.zIndex=v),l.createElement(SR.Provider,{value:re},l.createElement("div",{className:K(n,`${n}-${a}`,h,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:Ae,tabIndex:-1,ref:X},ce,Me))},UG=l.forwardRef(YG),GG=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:r="right",autoFocus:a=!0,keyboard:s=!0,width:c,height:d,size:f,maxSize:m,mask:g=!0,maskClosable:h=!0,getContainer:y,forceRender:v,afterOpenChange:b,destroyOnHidden:$,onMouseEnter:C,onMouseOver:x,onMouseLeave:R,onClick:w,onKeyDown:E,onKeyUp:T,onClose:N,resizable:O,defaultSize:P,focusTriggerAfterClose:B,panelRef:L}=e,[V,G]=l.useState(!1),[Y,q]=l.useState(!1);Pt(()=>{q(!0)},[]);const H=Y?t:!1,_=l.useRef(null),j=l.useRef(null);Pt(()=>{H&&(j.current=document.activeElement)},[H]);const I=k=>{G(k),b?.(k),!k&&B!==!1&&j.current&&!_.current?.contains(j.current)&&j.current?.focus({preventScroll:!0})},D=l.useMemo(()=>({panel:L}),[L]);if(!v&&!V&&!H&&$)return null;const A={...e,open:H,prefixCls:n,placement:r,autoFocus:a,keyboard:s,width:c,height:d,size:f,maxSize:m,defaultSize:P,mask:g,maskClosable:h,inline:y===!1,afterOpenChange:I,ref:_,resizable:O,...{onMouseEnter:C,onMouseOver:x,onMouseLeave:R,onClick:w,onKeyDown:E,onKeyUp:T}},z=({top:k,event:X})=>{k&&s&&(X.stopPropagation(),N?.(X))};return l.createElement(i3.Provider,{value:D},l.createElement(fd,{open:H||v||V,autoDestroy:!1,getContainer:y,autoLock:g&&(H||V),onEsc:z},l.createElement(UG,A)))},l3=e=>{const{prefixCls:t,ariaId:n,title:r,footer:a,extra:s,closable:c,loading:d,onClose:f,headerStyle:m,bodyStyle:g,footerStyle:h,children:y,classNames:v,styles:b}=e,$=zt("drawer"),{classNames:C,styles:x,closable:R}=$,[w,E]=Ft([C,v],[x,b],{props:{...e,closable:c??R}}),T=l.useMemo(()=>{const V=c??R;if(V!==!1)return typeof V=="object"&&V?.placement==="end"?"end":"start"},[c,R]),N=l.useCallback(V=>l.createElement("button",{type:"button",onClick:f,className:K(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},w.close),style:E.close},V),[f,t,T,w.close,E.close]),[O,P]=HS(Ms(e),Ms($),{closable:!0,closeIconRender:N}),B=()=>!r&&!O?null:l.createElement("div",{style:{...E.header,...m},className:K(`${t}-header`,w.header,{[`${t}-header-close-only`]:O&&!r&&!s})},l.createElement("div",{className:`${t}-header-title`},T==="start"&&P,r&&l.createElement("div",{className:K(`${t}-title`,w.title),style:E.title,id:n},r)),s&&l.createElement("div",{className:K(`${t}-extra`,w.extra),style:E.extra},s),T==="end"&&P),L=()=>a?l.createElement("div",{className:K(`${t}-footer`,w.footer),style:{...E.footer,...h}},a):null;return l.createElement(l.Fragment,null,B(),l.createElement("div",{className:K(`${t}-body`,w.body),style:{...E.body,...g}},d?l.createElement(vi,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),L())},XG=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},s3=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),c3=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...s3({opacity:e},{opacity:1})}),KG=(e,t)=>[c3(.7,t),s3({transform:XG(e)},{transform:"none"})],QG=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:c3(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>({...r,[`&-${a}`]:KG(a,n)}),{})}}},ZG=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:s,motionDurationSlow:c,motionDurationMid:d,paddingXS:f,padding:m,paddingLG:g,fontSizeLG:h,lineHeightLG:y,lineWidth:v,lineType:b,colorSplit:$,marginXS:C,colorIcon:x,colorIconHover:R,colorBgTextHover:w,colorBgTextActive:E,colorText:T,fontWeightStrong:N,footerPaddingBlock:O,footerPaddingInline:P,draggerSize:B,calc:L}=e,V=`${n}-content-wrapper`,G=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:s,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[V]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${V}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${V}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${V}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${V}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:s,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${te(m)} ${te(g)}`,fontSize:h,lineHeight:y,borderBottom:`${te(v)} ${b} ${$}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:L(h).add(f).equal(),height:L(h).add(f).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:x,fontWeight:N,fontSize:h,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${d}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:C},[`&:not(${n}-close-end)`]:{marginInlineEnd:C},"&:hover":{color:R,backgroundColor:w,textDecoration:"none"},"&:active":{backgroundColor:E},...wo(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:y},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${te(O)} ${te(P)}`,borderTop:`${te(v)} ${b} ${$}`},[G]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${G}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:B,cursor:"col-resize"},[`${G}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:B,cursor:"col-resize"},[`${G}-top`]:{insetInline:0,bottom:0,height:B,cursor:"row-resize"},[`${G}-bottom`]:{insetInline:0,top:0,height:B,cursor:"row-resize"},[`${V}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},JG=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),u3=At("Drawer",e=>{const t=It(e,{});return[ZG(t),QG(t)]},JG),eX={distance:180},CR=378,d3=e=>{const{rootClassName:t,size:n,defaultSize:r=CR,height:a,width:s,mask:c,push:d=eX,open:f,afterOpenChange:m,onClose:g,prefixCls:h,getContainer:y,panelRef:v=null,style:b,className:$,resizable:C,"aria-labelledby":x,focusable:R,maskStyle:w,drawerStyle:E,contentWrapperStyle:T,destroyOnClose:N,destroyOnHidden:O,...P}=e,{placement:B}=P,L=Jo(),V=P.title?L:void 0,{getPopupContainer:G,getPrefixCls:Y,direction:q,className:H,style:_,classNames:j,styles:I,mask:D}=zt("drawer"),F=Y("drawer",h),[A,z]=u3(F),k=y===void 0&&G?()=>G(document.body):y,X=l.useMemo(()=>typeof n=="number"?n:n==="large"?736:n==="default"?CR:typeof n=="string"?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!B||B==="left"||B==="right"?s:a,[n,B,s,a]),Q={motionName:Qo(F,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Z=ve=>({motionName:Qo(F,`panel-motion-${ve}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),J=hO(),oe=ir(v,J),[ne,re]=bi("Drawer",P.zIndex),[ce,fe]=hT(c,D,F),le=mO(R,k!==!1&&ce),{classNames:pe,styles:ae,rootStyle:se}=P,he={...e,zIndex:ne,panelRef:v,mask:ce,defaultSize:r,push:d,focusable:le},[ge,be]=Ft([j,pe],[I,ae],{props:he}),Ne=K({"no-mask":!ce,[`${F}-rtl`]:q==="rtl"},t,A,z,ge.root);return l.createElement(Ea,{form:!0,space:!0},l.createElement(dd.Provider,{value:re},l.createElement(GG,{prefixCls:F,onClose:g,maskMotion:Q,motion:Z,...P,classNames:{mask:K(ge.mask,fe.mask),section:ge.section,wrapper:ge.wrapper,dragger:ge.dragger},styles:{mask:{...be.mask,...w},section:{...be.section,...E},wrapper:{...be.wrapper,...T},dragger:be.dragger},open:f,mask:ce,push:d,size:X,defaultSize:r,style:{..._,...b},rootStyle:{...se,...be.root},className:K(H,$),rootClassName:Ne,getContainer:k,afterOpenChange:m,panelRef:oe,zIndex:ne,...C?{resizable:C}:{},"aria-labelledby":x??V,destroyOnHidden:O??N,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},l.createElement(l3,{prefixCls:F,size:n,...P,ariaId:V,onClose:g}))))},tX=e=>{const{prefixCls:t,style:n,className:r,placement:a="right",...s}=e,{getPrefixCls:c}=l.useContext(ft),d=c("drawer",t),[f,m]=u3(d),g=K(d,`${d}-pure`,`${d}-${a}`,f,m,r);return l.createElement("div",{className:g,style:n},l.createElement(l3,{prefixCls:d,...s}))};d3._InternalPanelDoNotUseOrYouWillBeFired=tX;function $R(e){return["small","middle","large"].includes(e)}function xR(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const f3=ie.createContext({latestIndex:0}),nX=f3.Provider,rX=e=>{const{className:t,prefix:n,index:r,children:a,separator:s,style:c,classNames:d,styles:f}=e,{latestIndex:m}=l.useContext(f3);return Rr(a)?l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:c},a),r<m&&s&&l.createElement("span",{className:K(`${n}-item-separator`,d?.separator),style:f?.separator},s)):null},oX=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},aX=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},iX=At("Space",e=>{const t=It(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[oX(t),aX(t)]},()=>({}),{resetStyle:!1}),lX=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:a,className:s,style:c,classNames:d,styles:f}=zt("space"),{size:m=a??"small",align:g,className:h,rootClassName:y,children:v,direction:b,orientation:$,prefixCls:C,split:x,separator:R,style:w,vertical:E,wrap:T=!1,classNames:N,styles:O,...P}=e,[B,L]=Array.isArray(m)?m:[m,m],V=$R(L),G=$R(B),Y=xR(L),q=xR(B),H=mr(v,{keepEmpty:!0}),[_,j]=ud($,E,b),I=g===void 0&&!j?"center":g,D=R??x,F=n("space",C),[A,z]=iX(F),k={...e,size:m,orientation:_,align:I},[X,Q]=Ft([d,N],[f,O],{props:k}),Z=K(F,s,A,`${F}-${_}`,{[`${F}-rtl`]:r==="rtl",[`${F}-align-${I}`]:I,[`${F}-gap-row-${L}`]:V,[`${F}-gap-col-${B}`]:G},h,y,z,X.root),J=K(`${F}-item`,X.item),oe=H.map((ce,fe)=>{const le=ce?.key||`${J}-${fe}`;return l.createElement(rX,{prefix:F,classNames:X,styles:Q,className:J,key:le,index:fe,separator:D,style:Q.item},ce)}),ne=l.useMemo(()=>({latestIndex:H.reduce((fe,le,pe)=>Rr(le)?pe:fe,0)}),[H]);if(H.length===0)return null;const re={};return T&&(re.flexWrap="wrap"),!G&&q&&(re.columnGap=B),!V&&Y&&(re.rowGap=L),l.createElement("div",{ref:t,className:Z,style:{...re,...Q.root,...c,...w},...P},l.createElement(nX,{value:ne},oe))}),fn=lX;fn.Compact=UT;fn.Addon=hG;const m3=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(ft),{prefixCls:a,type:s="default",danger:c,disabled:d,loading:f,onClick:m,htmlType:g,children:h,className:y,menu:v,arrow:b,autoFocus:$,trigger:C,align:x,open:R,onOpenChange:w,placement:E,getPopupContainer:T,href:N,icon:O=l.createElement(s1,null),title:P,buttonsRender:B=re=>re,mouseEnterDelay:L,mouseLeaveDelay:V,overlayClassName:G,overlayStyle:Y,destroyOnHidden:q,destroyPopupOnHide:H,dropdownRender:_,popupRender:j,...I}=e,D=n("dropdown",a),F=`${D}-button`,z={menu:v,arrow:b,autoFocus:$,align:x,disabled:d,trigger:d?[]:C,onOpenChange:w,getPopupContainer:T||t,mouseEnterDelay:L,mouseLeaveDelay:V,classNames:{root:G},styles:{root:Y},destroyOnHidden:q,popupRender:j||_},{compactSize:k,compactItemClassnames:X}=Oa(D,r),Q=K(F,X,y);"destroyPopupOnHide"in e&&(z.destroyPopupOnHide=H),"open"in e&&(z.open=R),"placement"in e?z.placement=E:z.placement=r==="rtl"?"bottomLeft":"bottomRight";const Z=l.createElement(Bt,{type:s,danger:c,disabled:d,loading:f,onClick:m,htmlType:g,href:N,title:P},h),J=l.createElement(Bt,{type:s,danger:c,icon:O}),[oe,ne]=B([Z,J]);return l.createElement(fn.Compact,{className:Q,size:k,block:!0,...I},oe,l.createElement(Up,{...z},ne))};m3.__ANT_BUTTON=!0;const E1=Up;E1.Button=m3;var sX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function P0(){return P0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P0.apply(this,arguments)}const cX=(e,t)=>l.createElement(ht,P0({},e,{ref:t,icon:sX})),hp=l.forwardRef(cX),uX=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ft),{prefixCls:r,className:a}=e,s=t("input-group",r),c=t("input"),[d,f]=AN(c),m=K(s,f,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},d,a),g=l.useContext(Or),h=l.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return l.createElement(Or.Provider,{value:h},l.createElement(fn.Compact,{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},dX=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},fX=At(["Input","OTP"],e=>{const t=It(e,qs(e));return dX(t)},Ys),mX=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:s,index:c,mask:d,onFocus:f,...m}=e,{getPrefixCls:g}=l.useContext(ft),h=g("otp"),y=typeof d=="string"?d:r,v=l.useRef(null);l.useImperativeHandle(t,()=>v.current);const b=R=>{a(c,R.target.value)},$=()=>{Lt(()=>{const R=v.current?.input;document.activeElement===R&&R&&R.select()})},C=R=>{f?.(R),$()},x=R=>{const{key:w,ctrlKey:E,metaKey:T}=R;w==="ArrowLeft"?s(c-1):w==="ArrowRight"?s(c+1):w==="z"&&(E||T)?R.preventDefault():w==="Backspace"&&!r&&s(c-1),$()};return l.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},d&&r!==""&&r!==void 0&&l.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},y),l.createElement(eg,{"aria-label":`OTP Input ${c+1}`,type:d===!0?"password":"text",...m,ref:v,value:r,onInput:b,onFocus:C,onKeyDown:x,onMouseDown:$,onMouseUp:$,className:K(n,{[`${h}-mask-input`]:d})}))});function cm(e){return(e||"").split("")}const pX=e=>{const{index:t,prefixCls:n,separator:r,className:a,style:s}=e,c=typeof r=="function"?r(t):r;return c?l.createElement("span",{className:K(`${n}-separator`,a),style:s},c):null},gX=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:s,value:c,onChange:d,formatter:f,separator:m,variant:g,disabled:h,status:y,autoFocus:v,mask:b,type:$,onInput:C,onFocus:x,inputMode:R,classNames:w,styles:E,className:T,style:N,...O}=e,{classNames:P,styles:B,getPrefixCls:L,direction:V,style:G,className:Y}=zt("otp"),q=L("otp",n),H={...e,length:r},[_,j]=Ft([P,w],[B,E],{props:H}),I=Pn(O,{aria:!0,data:!0,attr:!0}),[D,F]=fX(q),A=pr(se=>a??se),z=l.useContext(Or),k=Bs(z.status,y),X=l.useMemo(()=>({...z,status:k,hasFeedback:!1,feedbackIcon:null}),[z,k]),Q=l.useRef(null),Z=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{Z.current[0]?.focus()},blur:()=>{for(let se=0;se<r;se+=1)Z.current[se]?.blur()},nativeElement:Q.current}));const J=se=>f?f(se):se,[oe,ne]=l.useState(()=>cm(J(s||"")));l.useEffect(()=>{c!==void 0&&ne(cm(c))},[c]);const re=ct(se=>{ne(se),C&&C(se),d&&se.length===r&&se.every(he=>he)&&se.some((he,ge)=>oe[ge]!==he)&&d(se.join(""))}),ce=ct((se,he)=>{let ge=En(oe);for(let Ne=0;Ne<se;Ne+=1)ge[Ne]||(ge[Ne]="");he.length<=1?ge[se]=he:ge=ge.slice(0,se).concat(cm(he)),ge=ge.slice(0,r);for(let Ne=ge.length-1;Ne>=0&&!ge[Ne];Ne-=1)ge.pop();const be=J(ge.map(Ne=>Ne||" ").join(""));return ge=cm(be).map((Ne,ve)=>Ne===" "&&!ge[ve]?ge[ve]:Ne),ge}),fe=(se,he)=>{const ge=ce(se,he),be=Math.min(se+he.length,r-1);be!==se&&ge[se]!==void 0&&Z.current[be]?.focus(),re(ge)},le=se=>{Z.current[se]?.focus()},pe=(se,he)=>{for(let ge=0;ge<he;ge+=1)if(!Z.current[ge]?.input?.value){Z.current[ge]?.focus();break}x?.(se)},ae={variant:g,disabled:h,status:k,mask:b,type:$,inputMode:R};return l.createElement("div",{...I,ref:Q,className:K(T,q,{[`${q}-sm`]:A==="small",[`${q}-lg`]:A==="large",[`${q}-rtl`]:V==="rtl"},F,D,Y,_.root),style:{...j.root,...G,...N},role:"group"},l.createElement(Or.Provider,{value:X},Array.from({length:r}).map((se,he)=>{const ge=`otp-${he}`,be=oe[he]||"";return l.createElement(l.Fragment,{key:ge},l.createElement(mX,{ref:Ne=>{Z.current[he]=Ne},index:he,size:A,htmlSize:1,className:K(_.input,`${q}-input`),style:j.input,onChange:fe,value:be,onActiveChange:le,autoFocus:he===0&&v,onFocus:Ne=>pe(Ne,he),...ae}),he<r-1&&l.createElement(pX,{separator:m,index:he,prefixCls:q,className:K(_.separator),style:j.separator}))})))});var hX={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"};function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z0.apply(this,arguments)}const yX=(e,t)=>l.createElement(ht,z0({},e,{ref:t,icon:hX})),bX=l.forwardRef(yX);var vX={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"};function A0(){return A0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A0.apply(this,arguments)}const SX=(e,t)=>l.createElement(ht,A0({},e,{ref:t,icon:vX})),CX=l.forwardRef(SX),$X=e=>e?l.createElement(CX,null):l.createElement(bX,null),xX={click:"onClick",hover:"onMouseOver"},wX=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:s=$X,suffix:c}=e,d=l.useContext(Wr),f=n??d,m=typeof a=="object"&&a.visible!==void 0,[g,h]=l.useState(()=>m?a.visible:!1),y=l.useRef(null);l.useEffect(()=>{m&&h(a.visible)},[m,a]);const v=JN(y),b=()=>{if(f)return;g&&v();const V=!g;h(V),typeof a=="object"&&a.onVisibleChange?.(V)},$=V=>{const G=xX[r]||"",Y=s(g),q={[G]:b,className:`${V}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return l.cloneElement(l.isValidElement(Y)?Y:l.createElement("span",null,Y),q)},{className:C,prefixCls:x,inputPrefixCls:R,size:w,...E}=e,{getPrefixCls:T}=l.useContext(ft),N=T("input",R),O=T("input-password",x),P=a&&$(O),B=K(O,C,{[`${O}-${w}`]:!!w}),L={...nn(E,["suffix","iconRender","visibilityToggle"]),type:g?"text":"password",className:B,prefixCls:N,suffix:l.createElement(l.Fragment,null,P,c)};return w&&(L.size=w),l.createElement(eg,{ref:ir(t,y),...L})}),EX=e=>{const{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},MX=At(["Input","Search"],e=>[EX(e)]),RX=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:s,style:c,enterButton:d=!1,addonAfter:f,loading:m,disabled:g,onSearch:h,onChange:y,onCompositionStart:v,onCompositionEnd:b,variant:$,onPressEnter:C,classNames:x,styles:R,hidden:w,...E}=e,{direction:T,getPrefixCls:N,classNames:O,styles:P}=zt("inputSearch"),B={...e,enterButton:d},[L,V]=Ft([O,x],[P,R],{props:B},{button:{_default:"root"}}),G=l.useRef(!1),Y=N("input-search",n),q=N("input",r),[H,_]=MX(Y),{compactSize:j}=Oa(Y,T),I=pr(ae=>s??j??ae),D=l.useRef(null),F=ae=>{ae?.target&&ae.type==="click"&&h&&h(ae.target.value,ae,{source:"clear"}),y?.(ae)},A=ae=>{document.activeElement===D.current?.input&&ae.preventDefault()},z=ae=>{h&&h(D.current?.input?.value,ae,{source:"input"})},k=ae=>{G.current||m||(C?.(ae),z(ae))},X=typeof d=="boolean"?l.createElement(QO,null):null,Q=`${Y}-btn`,Z=K(Q,{[`${Q}-${$}`]:$});let J;const oe=d||{},ne=oe.type&&oe.type.__ANT_BUTTON===!0;ne||oe.type==="button"?J=or(oe,{onMouseDown:A,onClick:ae=>{oe?.props?.onClick?.(ae),z(ae)},key:"enterButton",...ne?{className:Z,size:I}:{}}):J=l.createElement(Bt,{classNames:L.button,styles:V.button,className:Z,color:d?"primary":"default",size:I,disabled:g,key:"enterButton",onMouseDown:A,onClick:z,loading:m,icon:X,variant:$==="borderless"||$==="filled"||$==="underlined"?"text":d?"solid":void 0},d),f&&(J=[J,or(f,{key:"addonAfter"})]);const re=K(Y,_,{[`${Y}-rtl`]:T==="rtl",[`${Y}-${I}`]:!!I,[`${Y}-with-button`]:!!d},a,H,L.root),ce=ae=>{G.current=!0,v?.(ae)},fe=ae=>{G.current=!1,b?.(ae)},le=Pn(E,{data:!0}),pe=nn({...E,classNames:nn(L,["button","root"]),styles:nn(V,["button","root"]),prefixCls:q,type:"search",size:I,variant:$,onPressEnter:k,onCompositionStart:ce,onCompositionEnd:fe,onChange:F,disabled:g},Object.keys(le));return l.createElement(UT,{className:re,style:{...c,...V.root},...le,hidden:w},l.createElement(eg,{ref:ir(D,t),...pe}),J)}),TX=`
|
|
307
|
+
min-height:0 !important;
|
|
308
|
+
max-height:none !important;
|
|
309
|
+
height:0 !important;
|
|
310
|
+
visibility:hidden !important;
|
|
311
|
+
overflow:hidden !important;
|
|
312
|
+
position:absolute !important;
|
|
313
|
+
z-index:-1000 !important;
|
|
314
|
+
top:0 !important;
|
|
315
|
+
right:0 !important;
|
|
316
|
+
pointer-events: none !important;
|
|
317
|
+
`,OX=["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"],eb={};let no;function NX(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&eb[n])return eb[n];const r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),f={sizingStyle:OX.map(m=>`${m}:${r.getPropertyValue(m)}`).join(";"),paddingSize:s,borderSize:c,boxSizing:a};return t&&n&&(eb[n]=f),f}function IX(e,t=!1,n=null,r=null){no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),no.setAttribute("name","hiddenTextarea"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");const{paddingSize:a,borderSize:s,boxSizing:c,sizingStyle:d}=NX(e,t);no.setAttribute("style",`${d};${TX}`),no.value=e.value||e.placeholder||"";let f,m,g,h=no.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=a),n!==null||r!==null){no.value=" ";const v=no.scrollHeight-a;n!==null&&(f=v*n,c==="border-box"&&(f=f+a+s),h=Math.max(f,h)),r!==null&&(m=v*r,c==="border-box"&&(m=m+a+s),g=h>m?"":"hidden",h=Math.min(m,h))}const y={height:h,overflowY:g,resize:"none"};return f&&(y.minHeight=f),m&&(y.maxHeight=m),y}function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.apply(this,arguments)}const tb=0,nb=1,rb=2,PX=l.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:a,autoSize:s,onResize:c,className:d,style:f,disabled:m,onChange:g,onInternalAutoSize:h,...y}=e,[v,b]=Yt(r,a),$=v??"",C=H=>{b(H.target.value),g?.(H)},x=l.useRef();l.useImperativeHandle(t,()=>({textArea:x.current}));const[R,w]=l.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),E=!!s,[T,N]=l.useState(rb),[O,P]=l.useState(),B=()=>{N(tb)};Pt(()=>{E&&B()},[a,R,w,E]),Pt(()=>{if(T===tb)N(nb);else if(T===nb){const H=IX(x.current,!1,R,w);N(rb),P(H)}},[T]);const L=l.useRef(),V=()=>{Lt.cancel(L.current)},G=H=>{T===rb&&(c?.(H),s&&(V(),L.current=Lt(()=>{B()})))};l.useEffect(()=>V,[]);const q={...f,...E?O:null};return(T===tb||T===nb)&&(q.overflowY="hidden",q.overflowX="hidden"),l.createElement(oo,{onResize:G,disabled:!(s||c)},l.createElement("textarea",D0({},y,{ref:x,style:q,className:K(n,d,{[`${n}-disabled`]:m}),disabled:m,value:$,onChange:C})))});function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(this,arguments)}const zX=ie.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:a,allowClear:s,maxLength:c,onCompositionStart:d,onCompositionEnd:f,suffix:m,prefixCls:g="rc-textarea",showCount:h,count:y,className:v,style:b,disabled:$,hidden:C,classNames:x,styles:R,onResize:w,onClear:E,onPressEnter:T,readOnly:N,autoSize:O,onKeyDown:P,...B},L)=>{const[V,G]=Yt(e,t),Y=V==null?"":String(V),[q,H]=ie.useState(!1),_=ie.useRef(!1),[j,I]=ie.useState(null),D=l.useRef(null),F=l.useRef(null),A=()=>F.current?.textArea,z=()=>{A().focus()};l.useImperativeHandle(L,()=>({resizableTextArea:F.current,focus:z,blur:()=>{A().blur()},nativeElement:D.current?.nativeElement||A()})),l.useEffect(()=>{H(xe=>!$&&xe)},[$]);const[k,X]=ie.useState(null);ie.useEffect(()=>{k&&A().setSelectionRange(...k)},[k]);const Q=QN(y,h),Z=Q.max??c,J=Number(Z)>0,oe=Q.strategy(Y),ne=!!Z&&oe>Z,re=(xe,de)=>{let Se=de;!_.current&&Q.exceedFormatter&&Q.max&&Q.strategy(de)>Q.max&&(Se=Q.exceedFormatter(de,{max:Q.max}),de!==Se&&X([A().selectionStart||0,A().selectionEnd||0])),G(Se),pp(xe.currentTarget,xe,a,Se)},ce=xe=>{_.current=!0,d?.(xe)},fe=xe=>{_.current=!1,re(xe,xe.currentTarget.value),f?.(xe)},le=xe=>{re(xe,xe.target.value)},pe=xe=>{xe.key==="Enter"&&T&&!xe.nativeEvent.isComposing&&T(xe),P?.(xe)},ae=xe=>{H(!0),n?.(xe)},se=xe=>{H(!1),r?.(xe)},he=xe=>{G(""),z(),pp(A(),xe,a)};let ge=m,be;Q.show&&(Q.showFormatter?be=Q.showFormatter({value:Y,count:oe,maxLength:Z}):be=`${oe}${J?` / ${Z}`:""}`,ge=ie.createElement(ie.Fragment,null,ge,ie.createElement("span",{className:K(`${g}-data-count`,x?.count),style:R?.count},be)));const Ne=xe=>{w?.(xe),A()?.style.height&&I(!0)},ve=!O&&!h&&!s;return ie.createElement(KN,{ref:D,value:Y,allowClear:s,handleReset:he,suffix:ge,prefixCls:g,classNames:{...x,affixWrapper:K(x?.affixWrapper,{[`${g}-show-count`]:h,[`${g}-textarea-allow-clear`]:s})},disabled:$,focused:q,className:K(v,ne&&`${g}-out-of-range`),style:{...b,...j&&!ve?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof be=="string"?be:void 0}},hidden:C,readOnly:N,onClear:E},ie.createElement(PX,j0({},B,{autoSize:O,maxLength:c,onKeyDown:pe,onChange:le,onFocus:ae,onBlur:se,onCompositionStart:ce,onCompositionEnd:fe,className:K(x?.textarea),style:{resize:b?.resize,...R?.textarea},disabled:$,prefixCls:g,onResize:Ne,ref:F,readOnly:N})))}),AX=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
318
|
+
&-allow-clear > ${t},
|
|
319
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
320
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},DX=At(["Input","TextArea"],e=>{const t=It(e,qs(e));return AX(t)},Ys,{resetFont:!1}),p3=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:a,disabled:s,status:c,allowClear:d,classNames:f,rootClassName:m,className:g,style:h,styles:y,variant:v,showCount:b,onMouseDown:$,onResize:C,...x}=e,{getPrefixCls:R,direction:w,allowClear:E,autoComplete:T,className:N,style:O,classNames:P,styles:B}=zt("textArea"),L=l.useContext(Wr),V=s??L,{status:G,hasFeedback:Y,feedbackIcon:q}=l.useContext(Or),H=Bs(G,c),[_,j]=Ft([P,f],[B,y],{props:e}),I=l.useRef(null);l.useImperativeHandle(t,()=>({resizableTextArea:I.current?.resizableTextArea,focus:ae=>{aO(I.current?.resizableTextArea?.textArea,ae)},blur:()=>I.current?.blur()}));const D=R("input",n),F=lr(D),[A,z]=zN(D,m);DX(D,F);const{compactSize:k,compactItemClassnames:X}=Oa(D,w),Q=pr(ae=>a??k??ae),[Z,J]=Ls("textArea",v,r),oe=ZN(d??E),[ne,re]=l.useState(!1),[ce,fe]=l.useState(!1),le=ae=>{re(!0),$?.(ae);const se=()=>{re(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},pe=ae=>{if(C?.(ae),ne&&typeof getComputedStyle=="function"){const se=I.current?.nativeElement?.querySelector("textarea");se&&getComputedStyle(se).resize==="both"&&fe(!0)}};return l.createElement(zX,{autoComplete:T,...x,style:{...j.root,...O,...h},styles:j,disabled:V,allowClear:oe,className:K(z,F,g,m,X,N,_.root,{[`${D}-textarea-affix-wrapper-resize-dirty`]:ce}),classNames:{..._,textarea:K({[`${D}-sm`]:Q==="small",[`${D}-lg`]:Q==="large"},A,_.textarea,ne&&`${D}-mouse-active`),variant:K({[`${D}-${Z}`]:J},il(D,H)),affixWrapper:K(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:w==="rtl",[`${D}-affix-wrapper-sm`]:Q==="small",[`${D}-affix-wrapper-lg`]:Q==="large",[`${D}-textarea-show-count`]:b||e.count?.show},A)},prefixCls:D,suffix:Y&&l.createElement("span",{className:`${D}-textarea-suffix`},q),showCount:b,ref:I,onResize:pe,onMouseDown:le})}),Pr=eg;Pr.Group=uX;Pr.Search=RX;Pr.TextArea=p3;Pr.Password=wX;Pr.OTP=gX;function jX(e,t,n){return typeof n=="boolean"?n:e.length?!0:mr(t).some(a=>a.type===T6)}const tg=({suffixCls:e,tagName:t,displayName:n})=>r=>l.forwardRef((s,c)=>l.createElement(r,{ref:c,suffixCls:e,tagName:t,...s})),M1=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:s,...c}=e,{getPrefixCls:d}=l.useContext(ft),f=d("layout",n),[m]=R6(f),g=r?`${f}-${r}`:f;return l.createElement(s,{className:K(n||g,a,m),ref:t,...c})}),_X=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(ft),[r,a]=l.useState([]),{prefixCls:s,className:c,rootClassName:d,children:f,hasSider:m,tagName:g,style:h,...y}=e,v=nn(y,["suffixCls"]),{getPrefixCls:b,className:$,style:C}=zt("layout"),x=b("layout",s),R=jX(r,f,m),[w,E]=R6(x),T=K(x,{[`${x}-has-sider`]:R,[`${x}-rtl`]:n==="rtl"},$,c,d,w,E),N=l.useMemo(()=>({siderHook:{addSider:O=>{a(P=>[].concat(En(P),[O]))},removeSider:O=>{a(P=>P.filter(B=>B!==O))}}}),[]);return l.createElement(w6.Provider,{value:N},l.createElement(g,{ref:t,className:T,style:{...C,...h},...v},f))}),HX=tg({tagName:"div",displayName:"Layout"})(_X),BX=tg({suffixCls:"header",tagName:"header",displayName:"Header"})(M1),LX=tg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(M1),VX=tg({suffixCls:"content",tagName:"main",displayName:"Content"})(M1),Na=HX;Na.Header=BX;Na.Footer=LX;Na.Content=VX;Na.Sider=T6;Na._InternalSiderContext=Yp;var FX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function _0(){return _0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_0.apply(this,arguments)}const kX=(e,t)=>l.createElement(ht,_0({},e,{ref:t,icon:FX})),wR=l.forwardRef(kX);var WX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function H0(){return H0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H0.apply(this,arguments)}const qX=(e,t)=>l.createElement(ht,H0({},e,{ref:t,icon:WX})),ER=l.forwardRef(qX),YX={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},UX=[10,20,50,100],GX=e=>{const{pageSizeOptions:t=UX,locale:n,changeSize:r,pageSize:a,goButton:s,quickGo:c,rootPrefixCls:d,disabled:f,buildOptionText:m,showSizeChanger:g,sizeChangerRender:h}=e,[y,v]=ie.useState(""),b=ie.useMemo(()=>!y||Number.isNaN(y)?void 0:Number(y),[y]),$=typeof m=="function"?m:P=>`${P} ${n.items_per_page}`,C=P=>{const B=P.target.value;/^\d*$/.test(B)&&v(B)},x=P=>{s||y===""||(v(""),!(P.relatedTarget&&(P.relatedTarget.className.includes(`${d}-item-link`)||P.relatedTarget.className.includes(`${d}-item`)))&&c?.(b))},R=P=>{y!==""&&(P.keyCode===it.ENTER||P.type==="click")&&(v(""),c?.(b))},w=()=>t.some(P=>P.toString()===a.toString())?t:t.concat([a]).sort((P,B)=>{const L=Number.isNaN(Number(P))?0:Number(P),V=Number.isNaN(Number(B))?0:Number(B);return L-V}),E=`${d}-options`;if(!g&&!c)return null;let T=null,N=null,O=null;return g&&h&&(T=h({disabled:f,size:a,onSizeChange:P=>{r?.(Number(P))},"aria-label":n.page_size,className:`${E}-size-changer`,options:w().map(P=>({label:$(P),value:P}))})),c&&(s&&(O=typeof s=="boolean"?ie.createElement("button",{type:"button",onClick:R,onKeyUp:R,disabled:f,className:`${E}-quick-jumper-button`},n.jump_to_confirm):ie.createElement("span",{onClick:R,onKeyUp:R},s)),N=ie.createElement("div",{className:`${E}-quick-jumper`},n.jump_to,ie.createElement("input",{disabled:f,type:"text",value:y,onChange:C,onKeyUp:R,onBlur:x,"aria-label":n.page}),n.page,O)),ie.createElement("li",{className:E},T,N)},Xc=e=>{const{rootPrefixCls:t,page:n,active:r,className:a,style:s,showTitle:c,onClick:d,onKeyPress:f,itemRender:m}=e,g=`${t}-item`,h=K(g,`${g}-${n}`,{[`${g}-active`]:r,[`${g}-disabled`]:!n},a),y=()=>{d(n)},v=$=>{f($,d,n)},b=m(n,"page",ie.createElement("a",{rel:"nofollow"},n));return b?ie.createElement("li",{title:c?String(n):null,className:h,style:s,onClick:y,onKeyDown:v,tabIndex:0},b):null};function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li.apply(this,arguments)}const XX=(e,t,n)=>n;function MR(){}function RR(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Fi(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const KX=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:a,styles:s,current:c,defaultCurrent:d=1,total:f=0,pageSize:m,defaultPageSize:g=10,onChange:h=MR,hideOnSinglePage:y,align:v,showPrevNextJumpers:b=!0,showQuickJumper:$,showLessItems:C,showTitle:x=!0,onShowSizeChange:R=MR,locale:w=YX,style:E,totalBoundaryShowSizeChanger:T=50,disabled:N,simple:O,showTotal:P,showSizeChanger:B=f>T,sizeChangerRender:L,pageSizeOptions:V,itemRender:G=XX,jumpPrevIcon:Y,jumpNextIcon:q,prevIcon:H,nextIcon:_}=e,j=ie.useRef(null),[I,D]=Yt(g,m),[F,A]=Yt(d,c),z=Math.max(1,Math.min(F,Fi(void 0,I,f))),[k,X]=ie.useState(z);l.useEffect(()=>{X(z)},[z]);const Q=Math.max(1,z-(C?3:5)),Z=Math.min(Fi(void 0,I,f),z+(C?3:5));function J(ke,et){let De=ke||ie.createElement("button",{type:"button","aria-label":et,className:`${t}-item-link`});return typeof ke=="function"&&(De=ie.createElement(ke,e)),De}function oe(ke){const et=ke.target.value,De=Fi(void 0,I,f);let ze;return et===""?ze=et:Number.isNaN(Number(et))?ze=k:et>=De?ze=De:ze=Number(et),ze}function ne(ke){return RR(ke)&&ke!==z&&RR(f)&&f>0}const re=f>I?$:!1;function ce(ke){(ke.keyCode===it.UP||ke.keyCode===it.DOWN)&&ke.preventDefault()}function fe(ke){const et=oe(ke);switch(et!==k&&X(et),ke.keyCode){case it.ENTER:ae(et);break;case it.UP:ae(et-1);break;case it.DOWN:ae(et+1);break}}function le(ke){ae(oe(ke))}function pe(ke){const et=Fi(ke,I,f),De=z>et&&et!==0?et:z;D(ke),X(De),R?.(z,ke),A(De),h?.(De,ke)}function ae(ke){if(ne(ke)&&!N){const et=Fi(void 0,I,f);let De=ke;return ke>et?De=et:ke<1&&(De=1),De!==k&&X(De),A(De),h?.(De,I),De}return z}const se=z>1,he=z<Fi(void 0,I,f);function ge(){se&&ae(z-1)}function be(){he&&ae(z+1)}function Ne(){ae(Q)}function ve(){ae(Z)}function xe(ke,et,...De){(ke.key==="Enter"||ke.charCode===it.ENTER||ke.keyCode===it.ENTER)&&et(...De)}function de(ke){xe(ke,ge)}function Se(ke){xe(ke,be)}function Me(ke){xe(ke,Ne)}function Ae(ke){xe(ke,ve)}function Ie(ke){const et=G(ke,"prev",J(H,"prev page"));return ie.isValidElement(et)?ie.cloneElement(et,{disabled:!se}):et}function Ye(ke){const et=G(ke,"next",J(_,"next page"));return ie.isValidElement(et)?ie.cloneElement(et,{disabled:!he}):et}function Ze(ke){(ke.type==="click"||ke.keyCode===it.ENTER)&&ae(k)}let He=null;const Ve=Pn(e,{aria:!0,data:!0}),_e=P&&ie.createElement("li",{className:`${t}-total-text`},P(f,[f===0?0:(z-1)*I+1,z*I>f?f:z*I]));let Ue=null;const Pe=Fi(void 0,I,f);if(y&&f<=I)return null;const Ce=[],Fe={rootPrefixCls:t,onClick:ae,onKeyPress:xe,showTitle:x,itemRender:G,page:-1,className:a?.item,style:s?.item},Je=z-1>0?z-1:0,Be=z+1<Pe?z+1:Pe,Xe=$&&$.goButton,Oe=typeof O=="object"?O.readOnly:!O;let Ke=Xe,nt=null;O&&(Xe&&(typeof Xe=="boolean"?Ke=ie.createElement("button",{type:"button",onClick:Ze,onKeyUp:Ze},w.jump_to_confirm):Ke=ie.createElement("span",{onClick:Ze,onKeyUp:Ze},Xe),Ke=ie.createElement("li",{title:x?`${w.jump_to}${z}/${Pe}`:null,className:`${t}-simple-pager`},Ke)),nt=ie.createElement("li",{title:x?`${z}/${Pe}`:null,className:K(`${t}-simple-pager`,a?.item),style:s?.item},Oe?k:ie.createElement("input",{type:"text","aria-label":w.jump_to,value:k,disabled:N,onKeyDown:ce,onKeyUp:fe,onChange:fe,onBlur:le,size:3}),ie.createElement("span",{className:`${t}-slash`},"/"),Pe));const ot=C?1:2;if(Pe<=3+ot*2){Pe||Ce.push(ie.createElement(Xc,li({},Fe,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ke=1;ke<=Pe;ke+=1)Ce.push(ie.createElement(Xc,li({},Fe,{key:ke,page:ke,active:z===ke})))}else{const ke=C?w.prev_3:w.prev_5,et=C?w.next_3:w.next_5,De=G(Q,"jump-prev",J(Y,"prev page")),ze=G(Z,"jump-next",J(q,"next page"));b&&(He=De?ie.createElement("li",{title:x?ke:null,key:"prev",onClick:Ne,tabIndex:0,onKeyDown:Me,className:K(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!Y})},De):null,Ue=ze?ie.createElement("li",{title:x?et:null,key:"next",onClick:ve,tabIndex:0,onKeyDown:Ae,className:K(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!q})},ze):null);let We=Math.max(1,z-ot),Re=Math.min(z+ot,Pe);z-1<=ot&&(Re=1+ot*2),Pe-z<=ot&&(We=Pe-ot*2);for(let Ge=We;Ge<=Re;Ge+=1)Ce.push(ie.createElement(Xc,li({},Fe,{key:Ge,page:Ge,active:z===Ge})));if(z-1>=ot*2&&z!==3&&(Ce[0]=ie.cloneElement(Ce[0],{className:K(`${t}-item-after-jump-prev`,Ce[0].props.className)}),Ce.unshift(He)),Pe-z>=ot*2&&z!==Pe-2){const Ge=Ce[Ce.length-1];Ce[Ce.length-1]=ie.cloneElement(Ge,{className:K(`${t}-item-before-jump-next`,Ge.props.className)}),Ce.push(Ue)}We!==1&&Ce.unshift(ie.createElement(Xc,li({},Fe,{key:1,page:1}))),Re!==Pe&&Ce.push(ie.createElement(Xc,li({},Fe,{key:Pe,page:Pe})))}let lt=Ie(Je);if(lt){const ke=!se||!Pe;lt=ie.createElement("li",{title:x?w.prev_page:null,onClick:ge,tabIndex:ke?null:0,onKeyDown:de,className:K(`${t}-prev`,a?.item,{[`${t}-disabled`]:ke}),style:s?.item,"aria-disabled":ke},lt)}let Ct=Ye(Be);if(Ct){let ke,et;O?(ke=!he,et=se?0:null):(ke=!he||!Pe,et=ke?null:0),Ct=ie.createElement("li",{title:x?w.next_page:null,onClick:be,tabIndex:et,onKeyDown:Se,className:K(`${t}-next`,a?.item,{[`${t}-disabled`]:ke}),style:s?.item,"aria-disabled":ke},Ct)}const $t=K(t,r,{[`${t}-start`]:v==="start",[`${t}-center`]:v==="center",[`${t}-end`]:v==="end",[`${t}-simple`]:O,[`${t}-disabled`]:N});return ie.createElement("ul",li({className:$t,style:E,ref:j},Ve),_e,lt,O?nt:Ce,Ct,ie.createElement(GX,{locale:w,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:pe,pageSize:I,pageSizeOptions:V,quickGo:re?ae:null,goButton:Ke,showSizeChanger:B,sizeChangerRender:L}))},QX=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},ZX=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...v1(e),width:e.paginationMiniQuickJumperInputWidth}}}}},JX=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...b1(e)}}}}},eK=e=>{const{componentCls:t,antCls:n}=e,[,r]=en(n,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${te(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${te(e.inputOutlineOffset)} 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},tK=e=>{const{componentCls:t,antCls:n}=e,[,r]=en(n,"pagination");return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
321
|
+
${t}-prev,
|
|
322
|
+
${t}-jump-prev,
|
|
323
|
+
${t}-jump-next
|
|
324
|
+
`]:{marginInlineEnd:r("item-spacing-actual")},[`
|
|
325
|
+
${t}-prev,
|
|
326
|
+
${t}-next,
|
|
327
|
+
${t}-jump-prev,
|
|
328
|
+
${t}-jump-next
|
|
329
|
+
`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:r("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:r("item-size-actual"),verticalAlign:"baseline",input:{...S1(e),...y1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Jp(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},nK=e=>{const{componentCls:t,antCls:n}=e,[,r]=en(n,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:te(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},rK=e=>{const{componentCls:t,antCls:n}=e,[r,a]=en(n,"pagination");return{[t]:{[r("item-size-actual")]:te(e.itemSize),[r("item-spacing-actual")]:te(e.marginXS),"&-small":{[r("item-size-actual")]:te(e.itemSizeSM),[r("item-spacing-actual")]:te(e.marginXXS)},"&-large":{[r("item-size-actual")]:te(e.itemSizeLG),[r("item-spacing-actual")]:te(e.marginSM)},...Jt(e),display:"flex",alignItems:"center","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:a("item-size-actual"),marginInlineEnd:a("item-spacing-actual"),lineHeight:te(e.calc(a("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...nK(e),...tK(e),...eK(e),...ZX(e),...JX(e),...QX(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},oK=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...wo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...jo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:jo(e)}}}},g3=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Ys(e)}),h3=e=>It(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},qs(e)),aK=At("Pagination",e=>{const t=h3(e);return[rK(t),oK(t)]},g3),iK=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},lK=cd(["Pagination","bordered"],e=>{const t=h3(e);return iK(t)},g3);function TR(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const sK=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:s,style:c,size:d,locale:f,responsive:m,showSizeChanger:g,selectComponentClass:h,pageSizeOptions:y,styles:v,classNames:b,...$}=e,{xs:C}=Lp(m),[,x]=qr(),{getPrefixCls:R,direction:w,showSizeChanger:E,className:T,style:N,classNames:O,styles:P,totalBoundaryShowSizeChanger:B}=zt("pagination"),L=R("pagination",n),[V,G]=aK(L),Y=pr(d),q=Y==="small"||!!(C&&!Y&&m),H={...e,size:Y},[_,j]=Ft([O,b],[P,v],{props:H}),[I]=ao("Pagination",fT),D={...I,...f},[F,A]=TR(g),[z,k]=TR(E),X=F??z,Q=A??k,Z=h||Fr,J=l.useMemo(()=>y?y.map(le=>Number(le)):void 0,[y]),oe=le=>{const{disabled:pe,size:ae,onSizeChange:se,"aria-label":he,className:ge,options:be}=le,{className:Ne,onChange:ve}=Q||{},xe=be.find(de=>String(de.value)===String(ae))?.value;return l.createElement(Z,{disabled:pe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:de=>de.parentNode,"aria-label":he,options:be,...Q,value:xe,onChange:(de,Se)=>{se?.(de),ve?.(de,Se)},size:Y,className:K(ge,Ne)})},ne=l.useMemo(()=>{const le=l.createElement("span",{className:`${L}-item-ellipsis`},"•••"),pe=l.createElement("button",{className:`${L}-item-link`,type:"button",tabIndex:-1},w==="rtl"?l.createElement(Ts,null):l.createElement(Ou,null)),ae=l.createElement("button",{className:`${L}-item-link`,type:"button",tabIndex:-1},w==="rtl"?l.createElement(Ou,null):l.createElement(Ts,null)),se=l.createElement("a",{className:`${L}-item-link`},l.createElement("div",{className:`${L}-item-container`},w==="rtl"?l.createElement(ER,{className:`${L}-item-link-icon`}):l.createElement(wR,{className:`${L}-item-link-icon`}),le)),he=l.createElement("a",{className:`${L}-item-link`},l.createElement("div",{className:`${L}-item-container`},w==="rtl"?l.createElement(wR,{className:`${L}-item-link-icon`}):l.createElement(ER,{className:`${L}-item-link-icon`}),le));return{prevIcon:pe,nextIcon:ae,jumpPrevIcon:se,jumpNextIcon:he}},[w,L]),re=R("select",r),ce=K({[`${L}-${t}`]:!!t,[`${L}-${Y}`]:Y,[`${L}-mini`]:q,[`${L}-rtl`]:w==="rtl",[`${L}-bordered`]:x.wireframe},T,a,s,_.root,V,G),fe={...j.root,...N,...c};return l.createElement(l.Fragment,null,x.wireframe&&l.createElement(lK,{prefixCls:L}),l.createElement(KX,{...ne,...$,styles:j,classNames:_,style:fe,prefixCls:L,selectPrefixCls:re,className:ce,locale:D,pageSizeOptions:J,showSizeChanger:X,totalBoundaryShowSizeChanger:$.totalBoundaryShowSizeChanger??B,sizeChangerRender:oe}))},yp=100,y3=yp/5,b3=yp/2-y3/2,ob=b3*2*Math.PI,OR=50,NR=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:K(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:b3,cx:OR,cy:OR,strokeWidth:y3,style:n})},cK=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[s,c]=l.useState(!1);Pt(()=>{e!==0&&c(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${ob/4}`,strokeDasharray:`${ob*d/100} ${ob*(100-d)/100}`};return l.createElement("span",{className:K(r,`${n}-progress`,d<=0&&a)},l.createElement("svg",{viewBox:`0 0 ${yp} ${yp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(NR,{dotClassName:n,hasCircleCls:!0}),l.createElement(NR,{dotClassName:n,style:f})))};function uK(e){const{prefixCls:t,percent:n=0,className:r,style:a}=e,s=`${t}-dot`,c=`${s}-holder`,d=`${c}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:K(c,r,n>0&&d),style:a},l.createElement("span",{className:K(s,`${t}-dot-spin`)},[1,2,3,4].map(f=>l.createElement("i",{className:`${t}-dot-item`,key:f})))),l.createElement(cK,{prefixCls:t,percent:n}))}function dK(e){const{prefixCls:t,indicator:n,percent:r,className:a,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?or(n,d=>({className:K(d.className,c,a),style:{...d.style,...s},percent:r})):l.createElement(uK,{prefixCls:t,percent:r,className:a,style:s})}const fK=new jt("antSpinMove",{to:{opacity:1}}),mK=new jt("antRotate",{to:{transform:"rotate(405deg)"}}),pK=e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Jt(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fK,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:mK,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}},gK=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},hK=At("Spin",e=>{const t=It(e,{spinDotDefault:e.colorTextDescription});return pK(t)},gK),yK=200,IR=[[30,.05],[70,.03],[96,.01]];function bK(e,t){const[n,r]=l.useState(0),a=l.useRef(null),s=t==="auto";return l.useEffect(()=>(s&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const d=100-c;for(let f=0;f<IR.length;f+=1){const[m,g]=IR[f];if(c<=m)return c+d*g}return c})},yK)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[s,e]),s?n:t}let v3;function vK(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const bp=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:a,rootClassName:s,size:c="default",tip:d,wrapperClassName:f,style:m,children:g,fullscreen:h=!1,indicator:y,percent:v,classNames:b,styles:$,...C}=e,{getPrefixCls:x,direction:R,indicator:w,className:E,style:T,classNames:N,styles:O}=zt("spin"),P=x("spin",t),[B,L]=hK(P),[V,G]=l.useState(()=>n&&!vK(n,r)),Y=bK(V,v);l.useEffect(()=>{if(n){const k=BU(r,()=>{G(!0)});return k(),()=>{k?.cancel?.()}}G(!1)},[r,n]);const q=l.useMemo(()=>typeof g<"u"&&!h,[g,h]),H={...e,size:c,spinning:V,tip:d,fullscreen:h,children:g,percent:Y},[_,j]=Ft([N,b],[O,$],{props:H}),I=K(P,E,{[`${P}-sm`]:c==="small",[`${P}-lg`]:c==="large",[`${P}-spinning`]:V,[`${P}-show-text`]:!!d,[`${P}-rtl`]:R==="rtl"},a,!h&&s,!h&&_.root,B,L),D=K(`${P}-container`,{[`${P}-blur`]:V}),F=y??w??v3,A={...T,...m},z=l.createElement("div",{...C,style:h?A:{...j.root,...A},className:I,"aria-live":"polite","aria-busy":V},l.createElement(dK,{className:_.indicator,style:j.indicator,prefixCls:P,indicator:F,percent:Y}),d&&(q||h)?l.createElement("div",{className:K(`${P}-text`,_.tip),style:j.tip},d):null);return q?l.createElement("div",{...C,className:K(`${P}-nested-loading`,f,_.wrapper,B,L),style:j.wrapper},V&&l.createElement("div",{key:"loading"},z),l.createElement("div",{className:D,key:"container"},g)):h?l.createElement("div",{className:K(`${P}-fullscreen`,{[`${P}-fullscreen-show`]:V},s,B,L,_.mask),style:j.mask},z):z};bp.setDefaultIndicator=e=>{v3=e};const R1=ie.createContext({});R1.Consumer;const SK=({prefixCls:e,className:t,avatar:n,title:r,description:a,...s})=>{const{getPrefixCls:c}=l.useContext(ft),d=c("list",e),f=K(`${d}-item-meta`,t),m=ie.createElement("div",{className:`${d}-item-meta-content`},r&&ie.createElement("h4",{className:`${d}-item-meta-title`},r),a&&ie.createElement("div",{className:`${d}-item-meta-description`},a));return ie.createElement("div",{...s,className:f},n&&ie.createElement("div",{className:`${d}-item-meta-avatar`},n),(r||a)&&m)},CK=ie.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:s,styles:c,className:d,classNames:f,colStyle:m,...g}=e,{grid:h,itemLayout:y}=l.useContext(R1),{getPrefixCls:v,list:b}=l.useContext(ft),$=O=>K(b?.item?.classNames?.[O],f?.[O]),C=O=>({...b?.item?.styles?.[O],...c?.[O]}),x=()=>{const O=mr(r);return O.some(B=>typeof B=="string")&&O.length>1},R=()=>y==="vertical"?!!s:!x(),w=v("list",n),E=a&&a.length>0&&ie.createElement("ul",{className:K(`${w}-item-action`,$("actions")),key:"actions",style:C("actions")},a.map((O,P)=>ie.createElement("li",{key:`${w}-item-action-${P}`},O,P!==a.length-1&&ie.createElement("em",{className:`${w}-item-action-split`})))),T=h?"div":"li",N=ie.createElement(T,{...g,...h?{}:{ref:t},className:K(`${w}-item`,{[`${w}-item-no-flex`]:!R()},d)},y==="vertical"&&s?[ie.createElement("div",{className:`${w}-item-main`,key:"content"},r,E),ie.createElement("div",{className:K(`${w}-item-extra`,$("extra")),key:"extra",style:C("extra")},s)]:[r,E,or(s,{key:"extra"})]);return h?ie.createElement(YU,{ref:t,flex:1,style:m},N):N}),S3=CK;S3.Meta=SK;const $K=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:s,itemPaddingLG:c,marginLG:d,borderRadiusLG:f}=e,m=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${m} ${m} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${m} ${m}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(a)} ${te(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},xK=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:s,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:s}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${te(c)}`}}}}}},wK=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:s,marginLG:c,padding:d,itemPadding:f,colorPrimary:m,itemPaddingSM:g,itemPaddingLG:h,paddingXS:y,margin:v,colorText:b,colorTextDescription:$,motionDurationSlow:C,lineWidth:x,headerBg:R,footerBg:w,emptyTextPadding:E,metaMarginBottom:T,avatarMarginRight:N,titleMarginBottom:O,descriptionFontSize:P}=e;return{[t]:{...Jt(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:R},[`${t}-footer`]:{background:w},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:N},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${te(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${C}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:$,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${te(y)}`,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:x,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${te(d)} 0`,color:$,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:E,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:v,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:c},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:d,marginInlineStart:"auto","> li":{padding:`0 ${te(d)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:g},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},EK=e=>({contentWidth:220,itemPadding:`${te(e.paddingContentVertical)} 0`,itemPaddingSM:`${te(e.paddingContentVerticalSM)} ${te(e.paddingContentHorizontal)}`,itemPaddingLG:`${te(e.paddingContentVerticalLG)} ${te(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),MK=At("List",e=>{const t=It(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[wK(t),$K(t),xK(t)]},EK),RK=(e,t)=>{const{pagination:n=!1,prefixCls:r,bordered:a=!1,split:s=!0,className:c,rootClassName:d,style:f,children:m,itemLayout:g,loadMore:h,grid:y,dataSource:v=[],size:b,header:$,footer:C,loading:x=!1,rowKey:R,renderItem:w,locale:E,...T}=e,N=n&&typeof n=="object"?n:{},[O,P]=l.useState(N.defaultCurrent||1),[B,L]=l.useState(N.defaultPageSize||10),{getPrefixCls:V,direction:G,className:Y,style:q}=zt("list"),{renderEmpty:H}=l.useContext(ft),_={current:1,total:0,position:"bottom"},j=ve=>(xe,de)=>{P(xe),L(de),n&&n?.[ve]?.(xe,de)},I=j("onChange"),D=j("onShowSizeChange"),F=(ve,xe)=>{if(!w)return null;let de;return typeof R=="function"?de=R(ve):R?de=ve[R]:de=ve.key,de||(de=`list-item-${xe}`),l.createElement(l.Fragment,{key:de},w(ve,xe))},A=!!(h||n||C),z=V("list",r),[k,X]=MK(z);let Q=x;typeof Q=="boolean"&&(Q={spinning:Q});const Z=!!Q?.spinning,J=pr(b);let oe="";switch(J){case"large":oe="lg";break;case"small":oe="sm";break}const ne=K(z,{[`${z}-vertical`]:g==="vertical",[`${z}-${oe}`]:oe,[`${z}-split`]:s,[`${z}-bordered`]:a,[`${z}-loading`]:Z,[`${z}-grid`]:!!y,[`${z}-something-after-last-item`]:A,[`${z}-rtl`]:G==="rtl"},Y,c,d,k,X),re=ev(_,{total:v.length,current:O,pageSize:B},n||{}),ce=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,ce);const fe=n&&l.createElement("div",{className:K(`${z}-pagination`)},l.createElement(sK,{align:"end",...re,onChange:I,onShowSizeChange:D}));let le=En(v);n&&v.length>(re.current-1)*re.pageSize&&(le=En(v).splice((re.current-1)*re.pageSize,re.pageSize));const pe=Object.keys(y||{}).some(ve=>["xs","sm","md","lg","xl","xxl"].includes(ve)),ae=Lp(pe),se=l.useMemo(()=>{for(let ve=0;ve<ll.length;ve+=1){const xe=ll[ve];if(ae[xe])return xe}},[ae]),he=l.useMemo(()=>{if(!y)return;const ve=se&&y[se]?y[se]:y.column;if(ve)return{width:`${100/ve}%`,maxWidth:`${100/ve}%`}},[JSON.stringify(y),se]);let ge=Z&&l.createElement("div",{style:{minHeight:53}});if(le.length>0){const ve=le.map(F);ge=y?l.createElement(GU,{gutter:y.gutter},l.Children.map(ve,xe=>l.createElement("div",{key:xe?.key,style:he},xe))):l.createElement("ul",{className:`${z}-items`},ve)}else!m&&!Z&&(ge=l.createElement("div",{className:`${z}-empty-text`},E?.emptyText||H?.("List")||l.createElement(KO,{componentName:"List"})));const be=re.position,Ne=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement(R1.Provider,{value:Ne},l.createElement("div",{ref:t,style:{...q,...f},className:ne,...T},(be==="top"||be==="both")&&fe,$&&l.createElement("div",{className:`${z}-header`},$),l.createElement(bp,{...Q},ge,m),C&&l.createElement("div",{className:`${z}-footer`},C),h||(be==="bottom"||be==="both")&&fe))},TK=l.forwardRef(RK),Co=TK;Co.Item=S3;const OK=(e,t=!1)=>t&&!Rr(e)?[]:Array.isArray(e)?e:[e];let qi=null,Zi=e=>e(),od=[],ad={};function PR(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=ad,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:a}}const NK=ie.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(ft),s=ad.prefixCls||a("message"),c=l.useContext(qH),[d,f]=WT({...n,prefixCls:s,...c.message});return ie.useImperativeHandle(t,()=>{const m={...d};return Object.keys(m).forEach(g=>{m[g]=(...h)=>(r(),d[g].apply(d,h))}),{instance:m,sync:r}}),f}),IK=ie.forwardRef((e,t)=>{const[n,r]=ie.useState(PR),a=()=>{r(PR)};ie.useEffect(a,[]);const s=BT(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),m=ie.createElement(NK,{ref:t,sync:a,messageConfig:n});return ie.createElement(ea,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(m):m)}),ng=()=>{if(!qi){const e=document.createDocumentFragment(),t={fragment:e};qi=t,Zi(()=>{VS(ie.createElement(IK,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,ng())})}}),e)});return}qi.instance&&(od.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Zi(()=>{const r=qi.instance.open({...ad,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Zi(()=>{qi?.instance.destroy(e.key)});break;default:Zi(()=>{var r;const a=(r=qi.instance)[t].apply(r,En(e.args));a?.then(e.resolve),e.setCloseFn(a)})}}),od=[])};function PK(e){ad={...ad,...e},Zi(()=>{qi?.sync?.()})}function zK(e){const t=LS(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return od.push(a),()=>{r?Zi(()=>{r()}):a.skipped=!0}});return ng(),t}function AK(e,t){const n=LS(r=>{let a;const s={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return od.push(s),()=>{a?Zi(()=>{a()}):s.skipped=!0}});return ng(),n}const DK=e=>{od.push({type:"destroy",key:e}),ng()},jK=["success","info","warning","error","loading"],_K={open:zK,destroy:DK,config:PK,useMessage:vD,_InternalPanelDoNotUseOrYouWillBeFired:fD},wn=_K;jK.forEach(e=>{wn[e]=(...t)=>AK(e,t)});const HK=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:s,title:c,children:d,footer:f,...m}=e,{getPrefixCls:g}=l.useContext(ft),h=g(),y=t||g("modal"),v=lr(h),[b,$]=$O(y,v),C=`${y}-confirm`;let x={};return s?x={closable:a??!1,title:"",footer:"",children:l.createElement(wO,{...e,prefixCls:y,confirmPrefixCls:C,rootPrefixCls:h,content:d})}:x={closable:a??!0,title:c,footer:f!==null&&l.createElement(bO,{...e}),children:d},l.createElement(sO,{prefixCls:y,className:K(b,`${y}-pure-panel`,s&&C,s&&`${C}-${s}`,n,$,v),...m,closeIcon:yO(y,r),closable:a,...x})},BK=zO(HK);function C3(e){return xd(TO(e))}const io=xO;io.useModal=WH;io.info=function(t){return xd(OO(t))};io.success=function(t){return xd(NO(t))};io.error=function(t){return xd(IO(t))};io.warning=C3;io.warn=C3;io.confirm=function(t){return xd(PO(t))};io.destroyAll=function(){for(;Qi.length;){const t=Qi.pop();t&&t()}};io.config=LH;io._InternalPanelDoNotUseOrYouWillBeFired=BK;const LK=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:s,colorWarning:c,marginXXS:d,marginXS:f,fontSize:m,fontWeightStrong:g,colorTextHeading:h}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:m},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:m,lineHeight:1,marginInlineEnd:f},[`${t}-title`]:{fontWeight:g,color:h,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:d,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:f}}}}},VK=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},$3=At("Popconfirm",e=>LK(e),VK,{resetStyle:!1}),x3=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:s,cancelText:c,okText:d,okType:f="primary",icon:m=l.createElement(Hs,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:v,onPopupClick:b,classNames:$,styles:C}=e,{getPrefixCls:x}=l.useContext(ft),[R]=ao("Popconfirm",wa.Popconfirm),w=Is(a),E=Is(s);return l.createElement("div",{className:`${t}-inner-content`,onClick:b},l.createElement("div",{className:`${t}-message`},m&&l.createElement("span",{className:`${t}-message-icon`},m),l.createElement("div",{className:`${t}-message-text`},w&&l.createElement("div",{className:K(`${t}-title`,$?.title),style:C?.title},w),E&&l.createElement("div",{className:K(`${t}-description`,$?.content),style:C?.content},E))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(Bt,{onClick:v,size:"small",...r},c||R?.cancelText),l.createElement(qS,{buttonProps:{size:"small",...FS(f),...n},actionFn:y,close:h,prefixCls:x("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||R?.okText)))},FK=e=>{const{prefixCls:t,placement:n,className:r,style:a,...s}=e,{getPrefixCls:c}=l.useContext(ft),d=c("popconfirm",t);return $3(d),l.createElement(l6,{placement:n,className:K(d,r),style:a,content:l.createElement(x3,{prefixCls:d,...s})})},kK=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:a,okType:s="primary",icon:c=l.createElement(Hs,null),children:d,overlayClassName:f,onOpenChange:m,overlayStyle:g,styles:h,arrow:y,classNames:v,...b}=e,{getPrefixCls:$,className:C,style:x,classNames:R,styles:w,arrow:E,trigger:T}=zt("popconfirm"),[N,O]=Yt(e.defaultOpen??!1,e.open),P=t1(y,E),B=a||T||"click",L=F=>{O(F),m?.(F)},V=()=>{L(!1)},G=F=>e.onConfirm?.call(void 0,F),Y=F=>{L(!1),e.onCancel?.call(void 0,F)},q=F=>{const{disabled:A=!1}=e;A||L(F)},H=$("popconfirm",n),_={...e,placement:r,trigger:B,okType:s,overlayStyle:g,styles:h,classNames:v},[j,I]=Ft([R,v],[w,h],{props:_}),D=K(H,C,f,j.root);return $3(H),l.createElement(s6,{arrow:P,...nn(b,["title"]),trigger:B,placement:r,onOpenChange:q,open:N,ref:t,classNames:{root:D,container:j.container,arrow:j.arrow},styles:{root:{...x,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(x3,{okType:s,icon:c,...e,prefixCls:H,close:V,onConfirm:G,onCancel:Y,classNames:j,styles:I}),"data-popover-inject":!0},d)}),B0=kK;B0._InternalPanelDoNotUseOrYouWillBeFired=FK;const WK={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},qK=()=>{const e=l.useRef([]),t=l.useRef(null);return l.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(a=>{if(!a)return;r=!0;const s=a.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(s.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},zR=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function AR(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),a=`${Math.floor(r*t)}%`;return`${e[n]} ${a}`})}const YK=l.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:a,radius:s,className:c,style:d,ptg:f,strokeLinecap:m,strokeWidth:g,size:h,gapDegree:y}=e,v=r&&typeof r=="object",b=v?"#FFF":void 0,$=h/2,C=l.createElement("circle",{className:K(`${n}-circle-path`,c),r:s,cx:$,cy:$,stroke:b,strokeLinecap:m,strokeWidth:g,opacity:f===0?0:1,style:d,ref:t});if(!v)return C;const x=`${a}-conic`,R=y?`${180+y/2}deg`:"0deg",w=AR(r,(360-y)/360),E=AR(r,1),T=`conic-gradient(from ${R}, ${w.join(", ")})`,N=`linear-gradient(to ${y?"bottom":"top"}, ${E.join(", ")})`;return l.createElement(l.Fragment,null,l.createElement("mask",{id:x},C),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${x})`},l.createElement(zR,{bg:N},l.createElement(zR,{bg:T}))))}),au=100,ab=(e,t,n,r,a,s,c,d,f,m,g=0)=>{const h=n/100*360*((360-s)/360),y=s===0?0:{bottom:0,top:180,left:90,right:-90}[c];let v=(100-r)/100*t;f==="round"&&r!==100&&(v+=m/2,v>=t&&(v=t-.01));const b=au/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:v+g,transform:`rotate(${a+h+y}deg)`,transformOrigin:`${b}px ${b}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}},UK=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:ie.createElement("style",null,`@keyframes ${n} {
|
|
330
|
+
0% { transform: rotate(0deg); }
|
|
331
|
+
100% { transform: rotate(360deg); }
|
|
332
|
+
}`)}});function L0(){return L0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L0.apply(this,arguments)}function DR(e){const t=e??[];return Array.isArray(t)?t:[t]}const GK=e=>{const{id:t,prefixCls:n,classNames:r={},styles:a={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:m,railColor:g,strokeLinecap:h,style:y,className:v,strokeColor:b,percent:$,loading:C,...x}={...WK,...e},R=au/2,w=Jo(t),E=`${w}-gradient`,T=R-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,P=N*((360-f)/360),{count:B,gap:L}=typeof s=="object"?s:{count:s,gap:2},V=DR($),G=DR(b),Y=G.find(z=>z&&typeof z=="object"),H=Y&&typeof Y=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:j}=UK({id:w,loading:C}),I=ab(N,P,0,100,O,f,m,g,H,c),D=qK(),F=()=>{let z=0;return V.map((k,X)=>{const Q=G[X]||G[G.length-1],Z=ab(N,P,z,k,O,f,m,Q,H,c);return z+=k,l.createElement(YK,{key:X,color:Q,ptg:k,radius:T,prefixCls:n,gradientId:E,className:r.track,style:{...Z,..._,...a.track},strokeLinecap:H,strokeWidth:c,gapDegree:f,ref:J=>{D[X]=J},size:au})}).reverse()},A=()=>{const z=Math.round(B*(V[0]/100)),k=100/B;let X=0;return new Array(B).fill(null).map((Q,Z)=>{const J=Z<=z-1?G[0]:g,oe=J&&typeof J=="object"?`url(#${E})`:void 0,ne=ab(N,P,X,k,O,f,m,J,"butt",c,L);return X+=(P-ne.strokeDashoffset+L)*100/P,l.createElement("circle",{key:Z,className:K(`${n}-circle-path`,r.track),r:T,cx:R,cy:R,stroke:oe,strokeWidth:c,opacity:1,style:{...ne,...a.track},ref:re=>{D[Z]=re}})})};return l.createElement("svg",L0({className:K(`${n}-circle`,r.root,v),viewBox:`0 0 ${au} ${au}`,style:{...a.root,...y},id:t,role:"presentation"},x),!B&&l.createElement("circle",{className:K(`${n}-circle-rail`,r.rail),r:T,cx:R,cy:R,stroke:g,strokeLinecap:H,strokeWidth:d||c,style:{...I,...a.rail}}),B?A():F(),j)};function tl(e){return!e||e<0?0:e>100?100:e}function vp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const XK=({percent:e,success:t})=>{const n=tl(vp({success:t}));return[n,tl(tl(e)-n)]},KK=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Ss.green,t||null]},rg=(e,t,n)=>{let r=-1,a=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,a=c??8):typeof e=="number"?[r,a]=[e,e]:[r=14,a=8]=Array.isArray(e)?e:[e.width,e.height],r*=s}else if(t==="line"){const s=n?.strokeWidth;typeof e=="string"||typeof e>"u"?a=s||(e==="small"?6:8):typeof e=="number"?[r,a]=[e,e]:[r=-1,a=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,a]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,a]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,a=e[0]??e[1]??120));return[r,a]},QK=3,ZK=e=>QK/e*100,jR=["root","body","indicator"],JK=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:a,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:m,width:g=120,type:h,children:y,success:v,size:b=g,steps:$}=e,{direction:C}=zt("progress"),x=a??s,[R,w]=rg(b,"circle");let{strokeWidth:E}=e;E===void 0&&(E=Math.max(ZK(R),6));const T={width:R,height:w,fontSize:R*.15+6},N=l.useMemo(()=>{if(m||m===0)return m;if(h==="dashboard")return 75},[m,h]),O=XK(e),P=l.useMemo(()=>{const H=(f??d)||h==="dashboard"&&"bottom"||void 0,_=C==="rtl";switch(H){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return H}},[C,f,d,h]),B=Object.prototype.toString.call(e.strokeColor)==="[object Object]",L=KK({success:v,strokeColor:e.strokeColor}),V=K(`${t}-body`,{[`${t}-circle-gradient`]:B},n.body),G=l.createElement(GK,{steps:$,percent:$?O[1]:O,strokeWidth:E,railWidth:E,strokeColor:$?L[1]:L,strokeLinecap:c,railColor:x,prefixCls:t,gapDegree:N,gapPosition:P,classNames:nn(n,jR),styles:nn(r,jR)}),Y=R<=20,q=l.createElement("div",{className:V,style:{...T,...r.body}},G,!Y&&y);return Y?l.createElement(fr,{title:y},q):q},V0="--progress-line-stroke-color",eQ=e=>{const t="-100%";return new jt("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},tQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Jt(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},nQ=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:eQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},rQ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{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%)",[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},oQ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},aQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},iQ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),lQ=At("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=It(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[tQ(n),nQ(n),rQ(n),oQ(n),aQ(n)]},iQ),sQ=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},cQ=(e,t)=>{const{from:n=Ss.blue,to:r=Ss.blue,direction:a=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=sQ(s),f=`linear-gradient(${a}, ${d})`;return{background:f,[V0]:f}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[V0]:c}},uQ=e=>{const{prefixCls:t,classNames:n,styles:r,direction:a,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:m="round",children:g,railColor:h,trailColor:y,percentPosition:v,success:b}=e,{align:$,type:C}=v,x=h??y,R=m==="square"||m==="butt"?0:void 0,w=c??[-1,d||(c==="small"?6:8)],[E,T]=rg(w,"line",{strokeWidth:d}),N={backgroundColor:x||void 0,borderRadius:R,height:T},O=`${t}-track`,P=f&&typeof f!="string"?cQ(f,a):{[V0]:f,background:f},B={width:`${tl(s)}%`,height:T,borderRadius:R,...P},L=vp(e),V={width:`${tl(L)}%`,height:T,borderRadius:R,backgroundColor:b?.strokeColor};return l.createElement("div",{className:K(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:$==="center"&&C==="outer"}),style:{width:E>0?E:"100%",...r.body}},l.createElement("div",{className:K(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:K(O,n.track),style:{...B,...r.track}},C==="inner"&&g),L!==void 0&&l.createElement("div",{className:K(O,`${O}-success`,n.track),style:{...V,...r.track}})),C==="outer"&&g)},dQ=e=>{const{classNames:t,styles:n,size:r,steps:a,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:m,trailColor:g,prefixCls:h,children:y}=e,v=s(a*(c/100)),$=r??[r==="small"?2:14,d],[C,x]=rg($,"step",{steps:a,strokeWidth:d}),R=C/a,w=Array.from({length:a}),E=m??g;for(let T=0;T<a;T++){const N=Array.isArray(f)?f[T]:f;w[T]=l.createElement("div",{key:T,className:K(`${h}-steps-item`,{[`${h}-steps-item-active`]:T<=v-1},t.track),style:{backgroundColor:T<=v-1?N:E,width:R,height:x,...n.track}})}return l.createElement("div",{className:K(`${h}-steps-body`,t.body),style:n.body},w,y)},fQ=["normal","exception","active","success"],mQ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,classNames:s,styles:c,steps:d,strokeColor:f,percent:m=0,size:g="default",showInfo:h=!0,type:y="line",status:v,format:b,style:$,percentPosition:C={},...x}=e,{align:R="end",type:w="outer"}=C,E=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(E){const J=typeof E=="string"?E:Object.values(E)[0];return new tn(J).isLight()}return!1},[f]),O=l.useMemo(()=>{const J=vp(e);return Number.parseInt(J!==void 0?(J??0)?.toString():(m??0)?.toString(),10)},[m,e.success]),P=l.useMemo(()=>!fQ.includes(v)&&O>=100?"success":v||"normal",[v,O]),{getPrefixCls:B,direction:L,className:V,style:G,classNames:Y,styles:q}=zt("progress"),H=B("progress",n),[_,j]=lQ(H),I={...e,percent:m,type:y,size:g,showInfo:h,percentPosition:C},[D,F]=Ft([Y,s],[q,c],{props:I}),A=y==="line",z=A&&!d,k=l.useMemo(()=>{if(!h)return null;const J=vp(e);let oe;const ne=b||(ce=>`${ce}%`),re=A&&N&&w==="inner";return w==="inner"||b||P!=="exception"&&P!=="success"?oe=ne(tl(m),tl(J)):P==="exception"?oe=A?l.createElement(_s,null):l.createElement(Yr,null):P==="success"&&(oe=A?l.createElement(Op,null):l.createElement(pl,null)),l.createElement("span",{className:K(`${H}-indicator`,{[`${H}-indicator-bright`]:re,[`${H}-indicator-${R}`]:z,[`${H}-indicator-${w}`]:z},D.indicator),style:F.indicator,title:typeof oe=="string"?oe:void 0},oe)},[h,m,O,P,y,H,b,A,N,w,R,z,D.indicator,F.indicator]),X={...e,classNames:D,styles:F};let Q;y==="line"?Q=d?l.createElement(dQ,{...X,strokeColor:T,prefixCls:H,steps:typeof d=="object"?d.count:d},k):l.createElement(uQ,{...X,strokeColor:E,prefixCls:H,direction:L,percentPosition:{align:R,type:w}},k):(y==="circle"||y==="dashboard")&&(Q=l.createElement(JK,{...X,strokeColor:E,prefixCls:H,progressStatus:P},k));const Z=K(H,`${H}-status-${P}`,{[`${H}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${H}-inline-circle`]:y==="circle"&&rg(g,"circle")[0]<=20,[`${H}-line`]:z,[`${H}-line-align-${R}`]:z,[`${H}-line-position-${w}`]:z,[`${H}-steps`]:d,[`${H}-show-info`]:h,[`${H}-${g}`]:typeof g=="string",[`${H}-rtl`]:L==="rtl"},V,r,a,D.root,_,j);return l.createElement("div",{ref:t,style:{...G,...F.root,...$},className:Z,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...nn(x,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},Q)});var pQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F0.apply(this,arguments)}const gQ=(e,t)=>l.createElement(ht,F0({},e,{ref:t,icon:pQ})),w3=l.forwardRef(gQ);function hQ(e){const{prefixCls:t,className:n,style:r,status:a}=e,s=`${t}-rail`;return l.createElement("div",{className:K(s,`${s}-${a}`,n),style:r})}const yQ=l.createContext({}),T1=l.createContext(null);function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k0.apply(this,arguments)}const E3=l.createContext({}),_R=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext(T1),{className:m,style:g}=l.useContext(E3),h=`${c}-item`;return l.createElement("div",k0({},Pn(s,!1),{ref:t,className:K(`${h}-icon`,d.itemIcon,m,n),style:{...f.itemIcon,...g,...r}}),a)});function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W0.apply(this,arguments)}function ib(e){return e!=null}function bQ(e){const{prefixCls:t,classNames:n,styles:r,data:a,last:s,nextStatus:c,active:d,index:f,itemRender:m,iconRender:g,itemWrapperRender:h,onClick:y}=e,v=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(yQ),{ItemComponent:$}=l.useContext(T1),{onClick:C,title:x,subTitle:R,content:w,description:E,disabled:T,icon:N,status:O,className:P,style:B,classNames:L={},styles:V={},...G}=a,Y=w??E,q={item:{...a,content:Y},index:f,active:d},H=!!(y||C)&&!T,_={};H&&(_.role="button",_.tabIndex=0,_.onClick=X=>{C?.(X),y(f)},_.onKeyDown=X=>{const{which:Q}=X;(Q===it.ENTER||Q===it.SPACE)&&y(f)});const j=O||"wait",I=ib(x),D=ib(R),F=K(v,`${v}-${j}`,{[`${v}-custom`]:N,[`${v}-active`]:d,[`${v}-disabled`]:T===!0,[`${v}-empty-header`]:!I&&!D},P,n.item,L.root);let A=l.createElement(_R,null);g&&(A=g(A,{...q,components:{Icon:_R}}));const z=l.createElement("div",{className:K(`${v}-wrapper`,n.itemWrapper,L.wrapper),style:{...r.itemWrapper,...V.wrapper}},l.createElement(E3.Provider,{value:{className:L.icon,style:V.icon}},A),l.createElement("div",{className:K(`${v}-section`,n.itemSection,L.section),style:{...r.itemSection,...V.section}},l.createElement("div",{className:K(`${v}-header`,n.itemHeader,L.header),style:{...r.itemHeader,...V.header}},I&&l.createElement("div",{className:K(`${v}-title`,n.itemTitle,L.title),style:{...r.itemTitle,...V.title}},x),D&&l.createElement("div",{title:typeof R=="string"?R:void 0,className:K(`${v}-subtitle`,n.itemSubtitle,L.subtitle),style:{...r.itemSubtitle,...V.subtitle}},R),!s&&l.createElement(hQ,{prefixCls:v,className:K(n.itemRail,L.rail),style:{...r.itemRail,...V.rail},status:b?O:c})),ib(Y)&&l.createElement("div",{className:K(`${v}-content`,n.itemContent,L.content),style:{...r.itemContent,...V.content}},Y)));let k=l.createElement($,W0({},G,_,{className:F,style:{...r.item,...V.root,...B}}),h?h(z):z);return m&&(k=m(k,q)||null),k}function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}const HR={};function vQ(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:a=HR,styles:s=HR,rootClassName:c,orientation:d,titlePlacement:f,components:m,status:g="process",current:h=0,initial:y=0,onChange:v,items:b,iconRender:$,itemRender:C,itemWrapperRender:x,...R}=e,w=d==="vertical",E=w?"vertical":"horizontal",T=!w&&f==="vertical"?"vertical":"horizontal",N=K(t,`${t}-${E}`,`${t}-title-${T}`,c,r,a.root),O=ie.useMemo(()=>(b||[]).filter(Boolean),[b]),P=ie.useMemo(()=>O.map(({status:q},H)=>{const _=y+H;return q||(_===h?g:_<h?"finish":"wait")}),[O,g,h,y]),B=q=>{v&&h!==q&&v(q)},{root:L="div",item:V="div"}=m||{},G=ie.useMemo(()=>({prefixCls:t,classNames:a,styles:s,ItemComponent:V}),[t,a,s,V]),Y=(q,H)=>{const _=y+H,j=P[H],I=P[H+1],D={...q,status:j};return ie.createElement(bQ,{key:_,prefixCls:t,classNames:a,styles:s,data:D,nextStatus:I,active:_===h,index:_,last:O.length-1===H,iconRender:$,itemRender:C,itemWrapperRender:x,onClick:v&&B})};return ie.createElement(L,q0({className:N,style:{...n,...s?.root}},R),ie.createElement(T1.Provider,{value:G},O.map(Y)))}const SQ=l.createContext(null),CQ=e=>{const{prefixCls:t}=e;return l.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},l.createElement("title",null,"Arrow"),l.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},$Q=e=>{const{prefixCls:t,rootPrefixCls:n,children:r,percent:a}=e,s=`${t}-item-progress-icon`,c=`${s}-circle`,[,d]=en(n,"cmp-steps"),f=`calc(${d("progress-radius")} * 2 * ${Math.PI*a/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${s}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a},l.createElement("title",null,"Progress"),l.createElement("circle",{className:K(c,`${c}-rail`)}),l.createElement("circle",{className:K(c,`${c}-ptg`),strokeDasharray:f,transform:"rotate(-90 50 50)"})),r)},xQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[a,s]=en(n,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[a("horizontal-rail-margin")]:`calc(${s("icon-size-max")} / 2 + ${s("item-wrapper-padding-top")})`,position:"static",marginTop:s("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:s("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},wQ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r,iconSize:a,lineWidth:s,lineType:c,antCls:d}=e,f=`${t}-item`,[m,g]=en(d,"cmp-steps");return{[t]:{[m("icon-size")]:a,[m("icon-border-width")]:s,[`${f}-icon`]:{width:g("icon-size"),height:g("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:g("icon-size"),textAlign:"center",borderRadius:g("icon-size"),border:`${g("icon-border-width")} ${c} transparent`,transition:["background-color","border","color","inset","transform"].map(h=>`${h} ${r}`).join(", "),zIndex:1},[`${f}-custom ${f}-icon`]:{background:"none",border:0,fontSize:n}}}},EQ=e=>{const{componentCls:t,inlineDotSize:n,paddingXS:r,lineWidth:a,antCls:s,calc:c}=e,d=c(r).add(a).equal(),f=`${t}-item`,[m,g]=en(s,"cmp-steps");return{[`${t}-inline`]:{[m("items-offset")]:"0",[m("item-wrapper-padding-top")]:d,display:"inline-flex","&:before":{content:'""',flex:g("items-offset")},[f]:{[m("title-vertical-row-gap")]:r,[m("icon-size")]:n,[m("icon-size-active")]:n,[m("title-font-size")]:e.fontSizeSM,[m("title-line-height")]:e.lineHeightSM,[m("item-title-color")]:e.colorTextSecondary,[m("subtitle-font-size")]:e.fontSizeSM,[m("subtitle-line-height")]:e.lineHeightSM,[m("item-subtitle-color")]:e.colorTextQuaternary,[m("rail-size")]:e.lineWidth,[m("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${f}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function MQ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const O1=(e,t,n)=>{const{calc:r,componentCls:a,descriptionMaxWidth:s,antCls:c}=e,d=`${a}-item`,[,f]=en(c,"cmp-steps");return{[`@container style(${MQ(s)})`]:[{[`${d}-icon`]:{marginInlineStart:r(s).sub(f("icon-size")).div(2).equal()},[`${d}-rail`]:{width:"auto",insetInlineStart:r(s).add(f("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(s).sub(f("icon-size")).div(2).sub(t).mul(-1).equal()}},n]}},RQ=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:a,margin:s,paddingSM:c,marginXXS:d,antCls:f,calc:m}=e,g=`${t}-item`,[h,y]=en(f,"cmp-steps");return{[t]:{[h("icon-size-max")]:`max(${y("icon-size")}, ${y("icon-size-active",y("icon-size"))})`,[`${g}-icon`]:{marginBlockStart:`calc((${y("heading-height")} - ${y("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[h("title-horizontal-item-margin")]:s,[h("title-horizontal-rail-margin")]:s,[h("title-horizontal-title-height")]:a,[h("heading-height")]:`max(${y("icon-size")}, ${y("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${g}:not(:first-child)`]:{marginInlineStart:y("title-horizontal-item-margin")},[`${g}:last-child`]:{flex:"0 1 auto"},[`${g}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${g}-wrapper`]:{columnGap:e.margin},[`${g}-empty-header`]:{[`${g}-header`]:{minHeight:"auto"},[`${g}-content`]:{marginTop:m(y("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${g}-section`]:{flex:1,minWidth:0},[`${g}-header`]:{minHeight:y("heading-height")},[`${g}-title`]:{flex:"0 1 auto"},[`${g}-content`]:{maxWidth:n},[`${g}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${g}-rail`]:{[h("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:y("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[h("title-vertical-row-gap")]:c,[h("title-horizontal-rail-gap")]:d,[h("heading-height")]:y("icon-size-max"),[`> ${g}`]:{flex:"1 1 0%",[`${g}-wrapper`]:{flexDirection:"column",rowGap:y("title-vertical-row-gap"),alignItems:"center"},[`${g}-section`]:{alignSelf:"stretch"},[`${g}-header`]:{flexDirection:"column",alignItems:"center"},[`${g}-title, ${g}-subtitle, ${g}-content`]:{textAlign:"center",maxWidth:"100%"},[`${g}-subtitle`]:{margin:0},[`${g}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${y("icon-size")} - ${y("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${y("icon-size")} / 2 + ${y("title-horizontal-rail-gap")})`}},...O1(e,r,{[`${g}:last-child`]:{flex:"none"},[`${g}-icon`]:{alignSelf:"flex-start"},[`${g}-section`]:{width:n}})}}},TQ=e=>{const{componentCls:t,fontSizeIcon:n,navContentMaxWidth:r,navArrowColor:a,colorPrimary:s,motionDurationSlow:c,antCls:d,calc:f}=e,m=`${t}-item`,g=s,[h,y]=en(d,"cmp-steps");return{[`${t}${t}-navigation`]:{[m.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${m}-wrapper`]:{paddingBlock:e.paddingSM},[`${m}-section`]:{maxWidth:r},[`${m}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:g,transition:`all ${c}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${a}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${a}`,content:'""'},[`&${m}-active`]:{[h("item-content-active-color")]:y("item-content-color"),[h("item-icon-active-bg-color")]:y("item-icon-bg-color"),[h("item-icon-active-border-color")]:y("item-icon-border-color"),[h("item-icon-active-text-color")]:y("item-icon-text-color")}},[`&${t}-horizontal`]:{[m]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${m}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:f(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[m.repeat(4)]:{[`${m}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${m}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:f(n).div(3).mul(2).equal(),height:f(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},OQ=e=>{const{componentCls:t,lineWidthBold:n,borderRadius:r,borderRadiusSM:a,motionDurationMid:s,paddingXS:c,lineType:d,paddingSM:f,antCls:m,calc:g}=e,h=`${t}-item`,[y,v]=en(m,"cmp-steps"),b=`${te(n)} ${d} ${v("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${h}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[h]:{flex:1,margin:0}}},{"&":{[y("panel-padding")]:f,[y("item-border-radius")]:r,[h]:{[y("panel-bg-color")]:v("item-icon-bg-color"),[y("panel-border-color")]:v("item-icon-border-color"),[y("panel-active-bg-color")]:v("item-icon-active-bg-color"),[y("panel-active-border-color")]:v("item-icon-active-border-color"),[y("panel-title-height")]:`calc(${v("title-font-size")} * ${v("title-line-height")})`,[y("item-base-height")]:g(v("panel-padding")).mul(2).add(v("icon-size")).add(v("panel-title-height")).equal(),[y("item-base-width")]:`calc(${v("item-base-height")} * 0.7071)`,transition:`background-color ${s}`}},[`${h}-icon`]:{display:"none"},[`${h}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:g(n).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:g(n).mul(2).add("100%").equal(),width:v("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:v("panel-bg-color"),stroke:v("panel-border-color"),strokeWidth:n,vectorEffect:"non-scaling-stroke",transition:`fill ${s}`}},[`${h}:last-child ${t}-panel-arrow`]:{display:"none"},[h]:{padding:v("panel-padding"),background:v("panel-bg-color"),position:"relative",borderBlock:b,"&:not(:first-child)":{paddingInlineStart:`calc(${v("panel-padding")} + ${v("item-base-width")})`},"&:first-child":{borderInlineStart:b,borderStartStartRadius:v("item-border-radius"),borderEndStartRadius:v("item-border-radius")},"&:last-child":{borderInlineEnd:b,borderStartEndRadius:v("item-border-radius"),borderEndEndRadius:v("item-border-radius")},"&-active":{background:v("panel-active-bg-color"),borderColor:v("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:v("panel-active-bg-color"),stroke:v("panel-active-border-color")}},[`${h}-title, ${h}-subtitle, ${h}-content`]:{color:v("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[y("panel-padding")]:c,[y("item-border-radius")]:a}},{[`&${t}-filled`]:{[h]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(n)} 0`,`calc(100% + ${v("item-base-width")}) 0`,`calc(100% + ${v("item-base-width")}) 100%`,`${te(n)} 100%`,`calc(${v("item-base-width")} + ${te(n)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:g(n).div(2).mul(-1).equal(),height:g(n).add("100%").equal()}}}]}},NQ=e=>{const{calc:t,antCls:n,componentCls:r,lineWidthBold:a,motionDurationSlow:s}=e,c=`${r}-item`,[d,f]=en(n,"cmp-steps"),m=t(a).add(a).equal();return{[`${r}${r}-with-progress`]:{[d("item-wrapper-padding-top")]:m,[`${c}${c}-process`]:{[`${c}-icon`]:{position:"relative"}},[`${c}-progress-icon`]:{"&-svg":{[d("svg-size")]:t(m).mul(2).add(f("icon-size")).equal(),[d("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${f("svg-size")}, 1px)))`,fontSize:f("svg-size"),lineHeight:f("icon-size-ptg-unitless"),position:"absolute",inset:t(m).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:f("icon-size-ptg-unitless"),strokeWidth:t(f("icon-size-ptg-unitless")).mul(a).equal(),[d("progress-radius")]:t(f("svg-size")).sub(a).mul(f("icon-size-ptg-unitless")).div(2).equal(),r:f("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${s} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},IQ=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:a,marginXXS:s,lineWidthBold:c,fontSizeSM:d,antCls:f}=e,m=`${t}-item`,[g,h]=en(f,"cmp-steps");return{[`${t}${t}-dot`]:{[g("icon-size-active")]:a,[g("icon-size")]:r,[g("dot-icon-size")]:r,[g("dot-icon-border-width")]:c,[g("rail-size")]:c,[g("icon-border-width")]:c,[`${m}-custom ${m}-icon`]:{fontSize:d},[`${m}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${m}-active ${m}-icon`]:{[g("icon-size")]:h("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:O1(e,s)}}}},PQ=e=>{const{componentCls:t,lineWidthBold:n,antCls:r}=e,a=`${t}-item`,[,s]=en(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${a}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[a]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${s("item-base-width")}) 0px`,`calc(100% - ${te(n)}) 0px`,`calc(100% - ${s("item-base-width")} - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,`calc(0px - ${s("item-base-width")}) 100%`].join(",")})`}}}}}}},zQ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:a,marginXS:s,fontHeight:c,marginSM:d,paddingXS:f,antCls:m}=e,[g]=en(m,"cmp-steps");return{[`${t}${t}-small`]:{[g("icon-size")]:n,[g("title-horizontal-item-margin")]:d,[g("title-vertical-row-gap")]:f,[g("title-font-size")]:r,[g("title-line-height")]:a,[g("title-horizontal-rail-margin")]:s,[g("title-horizontal-title-height")]:c,[`&${t}-horizontal${t}-title-vertical`]:O1(e,s)}}},um="wait",dm="process",fm="finish",mm="error",AQ=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:a,colorTextLabel:s,colorError:c,colorErrorHover:d,colorErrorBgFilledHover:f,colorFillTertiary:m,colorErrorBg:g,colorPrimaryBgHover:h,colorPrimaryBg:y,colorText:v,colorTextDescription:b,colorBgContainer:$,colorPrimaryHover:C,lineType:x,antCls:R}=e,w=`${t}-item`,[E,T]=en(R,"cmp-steps");return{[t]:[{[w]:{[E("item-solid-line-color")]:"#000",[E("item-title-color")]:"#000",[E("item-content-color")]:"#000",[E("item-subtitle-color")]:T("item-content-color"),[E("item-icon-custom-color")]:"#000",[E("item-icon-bg-color")]:"#000",[E("item-icon-border-color")]:"#000",[E("item-icon-text-color")]:"#fff",[E("item-icon-dot-color")]:"#000",[E("item-icon-dot-bg-color")]:T("item-icon-dot-color"),[E("item-icon-dot-border-color")]:T("item-icon-dot-color"),[E("item-text-hover-color")]:"#000",[E("item-icon-bg-hover-color")]:T("item-icon-bg-color"),[E("item-icon-border-hover-color")]:T("item-icon-border-color"),[E("item-icon-text-hover-color")]:T("item-icon-text-color"),[E("item-content-active-color")]:T("item-content-color"),[E("item-icon-active-bg-color")]:T("item-icon-bg-color"),[E("item-icon-active-border-color")]:T("item-icon-border-color"),[E("item-icon-active-text-color")]:T("item-icon-text-color"),[E("item-process-rail-line-style")]:x},[`${w}-rail`]:{borderColor:T("item-solid-line-color")},[`${w}-custom ${w}-icon`]:{color:T("item-icon-custom-color")},[`${w}-title`]:{color:T("item-title-color")},[`${w}-subtitle`]:{color:T("item-subtitle-color")},[`${w}-content`]:{color:T("item-content-color")},[`${w}-active ${w}-icon`]:{},[`${w}-active ${w}-content`]:{color:T("item-content-active-color")},[`${w}[role='button']:not(${w}-active):hover`]:{[`${w}-title, ${w}-content`]:{color:T("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${w}:not(${w}-custom)`]:{[`${w}-icon`]:{background:T("item-icon-bg-color"),borderColor:T("item-icon-border-color"),color:T("item-icon-text-color")},[`&[role='button']:not(${w}-active):hover`]:{[`${w}-icon`]:{background:T("item-icon-bg-hover-color"),borderColor:T("item-icon-border-hover-color"),color:T("item-icon-text-hover-color")}},[`&${w}-active`]:{[`${w}-icon`]:{background:T("item-icon-active-bg-color"),borderColor:T("item-icon-active-border-color"),color:T("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${w}-icon`]:{background:T("item-icon-dot-bg-color"),borderColor:T("item-icon-dot-border-color"),color:T("item-icon-dot-color"),[`&${w}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${w}-${um}`]:{[E("item-icon-custom-color")]:n,[E("item-title-color")]:b,[E("item-content-color")]:b,[E("item-content-active-color")]:v,[E("item-text-hover-color")]:C},[`${w}-rail-${um}`]:{[E("item-solid-line-color")]:n},[`${w}-${dm}`]:{[E("item-icon-custom-color")]:a,[E("item-title-color")]:v,[E("item-content-color")]:b,[E("item-content-active-color")]:v,[E("item-text-hover-color")]:C},[`${w}-rail-${dm}`]:{[E("item-solid-line-color")]:a,[E("rail-line-style")]:T("item-process-rail-line-style")},[`${w}-${fm}`]:{[E("item-icon-custom-color")]:a,[E("item-title-color")]:v,[E("item-content-color")]:b,[E("item-content-active-color")]:v,[E("item-text-hover-color")]:C},[`${w}-rail-${fm}`]:{[E("item-solid-line-color")]:a},[`${w}-${mm}`]:{[E("item-icon-custom-color")]:c,[E("item-title-color")]:c,[E("item-content-color")]:c,[E("item-content-active-color")]:c,[E("item-text-hover-color")]:d},[`${w}-rail-${mm}`]:{[E("item-solid-line-color")]:c}},{[`&${t}-filled`]:{[w]:{[E("item-icon-dot-border-color")]:"transparent"},[`${w}-${um}`]:{[E("item-icon-bg-color")]:m,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:s,[E("item-icon-dot-bg-color")]:n,[E("item-icon-bg-hover-color")]:h,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:a,[E("item-icon-active-bg-color")]:a,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r},[`${w}-${dm}, ${w}-${fm}`]:{[E("item-icon-bg-color")]:y,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:a,[E("item-icon-dot-bg-color")]:a,[E("item-icon-bg-hover-color")]:h,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:a,[E("item-icon-active-bg-color")]:a,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r},[`${w}-${mm}`]:{[E("item-icon-bg-color")]:g,[E("item-icon-border-color")]:"transparent",[E("item-icon-text-color")]:c,[E("item-icon-dot-bg-color")]:c,[E("item-icon-bg-hover-color")]:f,[E("item-icon-border-hover-color")]:"transparent",[E("item-icon-text-hover-color")]:c,[E("item-icon-active-bg-color")]:c,[E("item-icon-active-border-color")]:"transparent",[E("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[w]:{[E("item-icon-dot-bg-color")]:"transparent"},[`${w}-${um}`]:{[E("item-icon-bg-color")]:$,[E("item-icon-border-color")]:n,[E("item-icon-text-color")]:n,[E("item-icon-dot-color")]:n,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:C,[E("item-icon-text-hover-color")]:C,[E("item-icon-active-bg-color")]:m},[`${w}-${dm}, ${w}-${fm}`]:{[E("item-icon-bg-color")]:$,[E("item-icon-border-color")]:a,[E("item-icon-text-color")]:a,[E("item-icon-dot-color")]:a,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:C,[E("item-icon-text-hover-color")]:C,[E("item-icon-active-bg-color")]:y},[`${w}-${mm}`]:{[E("item-icon-bg-color")]:$,[E("item-icon-border-color")]:c,[E("item-icon-text-color")]:c,[E("item-icon-dot-color")]:c,[E("item-icon-bg-hover-color")]:"transparent",[E("item-icon-border-hover-color")]:d,[E("item-icon-text-hover-color")]:d,[E("item-icon-active-bg-color")]:g}}}]}},DQ=e=>{const{componentCls:t,marginXXS:n,paddingSM:r,controlHeight:a,antCls:s,calc:c}=e,d=`${t}-item`,[f,m]=en(s,"cmp-steps");return{[`${t}-vertical`]:{[f("vertical-rail-margin")]:c(n).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${d}`]:{minHeight:c(a).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${d}-icon`]:{marginInlineStart:`calc((${m("icon-size-max")} - ${m("icon-size")}) / 2)`},[`${d}-rail`]:{[f("rail-offset")]:c(m("heading-height")).sub(m("icon-size")).div(2).equal(),borderInlineStartWidth:m("rail-size"),position:"absolute",top:c(m("icon-size")).add(m("item-wrapper-padding-top")).add(m("rail-offset")).add(m("vertical-rail-margin")).equal(),insetInlineStart:c(m("icon-size-max")).div(2).equal(),bottom:c(m("vertical-rail-margin")).sub(m("rail-offset")).equal(),marginInlineStart:`calc(${m("rail-size")} / -2)`}}}}},jQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[a,s]=en(n,"cmp-steps");return{[t]:{[a("title-font-size")]:e.fontSizeLG,[a("title-line-height")]:e.lineHeightLG,[a("subtitle-font-size")]:e.fontSize,[a("subtitle-line-height")]:e.lineHeight,[a("item-wrapper-padding-top")]:"0px",[a("rail-size")]:e.lineWidth,[a("rail-line-style")]:e.lineType,...Jt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:s("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:s("title-font-size"),lineHeight:s("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:s("subtitle-font-size"),lineHeight:s("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:s("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:xo},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},_Q=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),HQ=At("Steps",e=>{const t=It(e,{inlineDotSize:6});return[jQ(t),wQ(t),DQ(t),xQ(t),RQ(t),zQ(t),IQ(t),AQ(t),TQ(t),OQ(t),EQ(t),NQ(t),PQ(t)]},_Q),BQ={itemIcon:gd},LQ=e=>{const{size:t,className:n,rootClassName:r,style:a,variant:s="filled",type:c,classNames:d,styles:f,direction:m,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:v,titlePlacement:b,ellipsis:$,offset:C=0,items:x,percent:R,current:w=0,onChange:E,iconRender:T,...N}=e,O=l.useContext(SQ),P=zt("steps"),{getPrefixCls:B,direction:L,className:V,style:G}=P;let Y,q,H={};O?H={root:O.rootComponent,item:O.itemComponent}:{classNames:Y,styles:q}=P;const _=B(),j=B("steps",e.prefixCls),I=`${j}-item-icon`,[D,F]=HQ(j),[A]=en(_,"cmp-steps"),z=pr(t),k=l.useMemo(()=>(x||[]).filter(Boolean),[x]),{xs:X}=Lp(h),Q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),Z=Q==="inline",J=Q==="dot"||Q==="inline",oe=l.useMemo(()=>Q==="dot"&&typeof y=="function"?y:void 0,[Q,y]),ne=l.useMemo(()=>{const Ne=g||m;return Q==="panel"?"horizontal":h&&X||Ne==="vertical"?"vertical":"horizontal"},[g,m,Q,h,X]),re=l.useMemo(()=>J||ne==="vertical"?ne==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||v||"horizontal",[J,v,ne,b,c]),ce=Z?void 0:R,fe={...e,variant:s,size:z,type:Q,orientation:ne,titlePlacement:re,current:w,percent:ce,responsive:h,offset:C},[le,pe]=Ft([BQ,Y,d],[q,f],{props:fe}),ae=(Ne,ve)=>{const{item:xe,index:de,active:Se,components:{Icon:Me}}=ve,{status:Ae,icon:Ie}=xe;let Ye=null;if(J||Ie)Ye=Ie;else switch(Ae){case"finish":Ye=l.createElement(pl,{className:`${I}-finish`});break;case"error":Ye=l.createElement(Yr,{className:`${I}-error`});break;default:{let He=l.createElement("span",{className:`${I}-number`},ve.index+1);Ae==="process"&&ce!==void 0&&(He=l.createElement($Q,{prefixCls:j,rootPrefixCls:_,percent:ce},He)),Ye=He}}let Ze=l.createElement(Me,null,Ye);return T?Ze=T(Ze,{index:de,active:Se,item:xe,components:{Icon:Me}}):typeof oe=="function"&&(Ze=oe(Ze,{index:de,...xe})),Ze},se=(Ne,ve)=>{let xe=Ne;return Z&&ve.item.content&&(xe=l.createElement(fr,{destroyOnHidden:!0,title:ve.item.content},Ne)),l.createElement(hd,{component:"Steps",disabled:ve.item.disabled||!E,colorSource:s==="filled"?"color":null},xe)},he=Q==="panel"?Ne=>l.createElement(l.Fragment,null,Ne,l.createElement(CQ,{prefixCls:j})):void 0,ge={[A("items-offset")]:`${C}`,...G,...a},be=K(V,`${j}-${s}`,{[`${j}-${Q}`]:Q!=="dot"?Q:!1,[`${j}-rtl`]:L==="rtl",[`${j}-dot`]:J,[`${j}-ellipsis`]:$,[`${j}-with-progress`]:ce!==void 0,[`${j}-${z}`]:z},n,r,D,F);return l.createElement(vQ,{...N,prefixCls:j,className:be,style:ge,classNames:le,styles:pe,orientation:ne,titlePlacement:re,components:H,current:w,items:k,onChange:E,iconRender:ae,itemRender:se,itemWrapperRender:he})};var VQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y0.apply(this,arguments)}const FQ=(e,t)=>l.createElement(ht,Y0({},e,{ref:t,icon:VQ})),kQ=l.forwardRef(FQ),WQ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[a]:{...Jt(e),display:"inline-block",height:"auto",paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:d,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${a}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${a}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${a}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${a}-default`]:{color:e.solidTextColor}},[`${a}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${a}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${a}-solid, &${a}-filled`]:{color:e.colorTextDisabled,[`${a}-close-icon`]:{color:e.colorTextDisabled}},[`${a}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},N1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return It(e,{tagFontSize:a,tagLineHeight:te(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},I1=e=>{const t=eO(new Km(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new tn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},P1=At("Tag",e=>{const t=N1(e);return WQ(t)},I1),M3=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:s,children:c,icon:d,onChange:f,onClick:m,disabled:g,...h}=e,{getPrefixCls:y,tag:v}=l.useContext(ft),b=l.useContext(Wr),$=g??b,C=T=>{$||(f?.(!s),m?.(T))},x=y("tag",n),[R,w]=P1(x),E=K(x,`${x}-checkable`,{[`${x}-checkable-checked`]:s,[`${x}-checkable-disabled`]:$},v?.className,a,R,w);return l.createElement("span",{...h,ref:t,style:{...r,...v?.style},className:E,onClick:C},d,l.createElement("span",null,c))});function qQ(e,t){const{id:n,prefixCls:r,rootClassName:a,className:s,style:c,classNames:d,styles:f,disabled:m,options:g,value:h,defaultValue:y,onChange:v,multiple:b,...$}=e,{getPrefixCls:C,direction:x,className:R,style:w,classNames:E,styles:T}=zt("tag"),N=C("tag",r),O=`${N}-checkable-group`,P=lr(N),[B,L]=P1(N,P),[V,G]=Ft([E,d],[T,f],{props:e}),Y=l.useMemo(()=>(g||[]).map(D=>D&&typeof D=="object"?D:{value:D,label:D}),[g]),[q,H]=Yt(y,h),_=(D,F)=>{let A=null;if(b){const z=q||[];A=D?[].concat(En(z),[F.value]):z.filter(k=>k!==F.value)}else A=D?F.value:null;H(A),v?.(A)},j=ie.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:j.current}));const I=Pn($,{aria:!0,data:!0});return ie.createElement("div",{...I,className:K(O,R,a,{[`${O}-disabled`]:m,[`${O}-rtl`]:x==="rtl"},B,L,s,V.root),style:{...w,...G.root,...c},id:n,ref:j},Y.map(D=>ie.createElement(M3,{key:D.value,className:K(`${O}-item`,V.item),style:G.item,checked:b?(q||[]).includes(D.value):q===D.value,onChange:F=>_(F,D),disabled:m},D.label)))}const YQ=ie.forwardRef(qQ);function UQ(e,t){const{color:n,variant:r,bordered:a}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":a===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=kp(n),m=I9(n),g={};if(!f&&!m&&d)if(c==="solid")g.backgroundColor=n;else{const h=new tn(d).toHsl();h.l=.95,g.backgroundColor=new tn(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,m,g]},[n,r,a,t])}const GQ=e=>Tp(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:a,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:a,color:n}}})),XQ=cd(["Tag","preset"],e=>{const t=N1(e);return GQ(t)},I1);function KQ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const pm=(e,t,n)=>{const r=KQ(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},QQ=cd(["Tag","status"],e=>{const t=N1(e);return[pm(t,"success","Success"),pm(t,"processing","Info"),pm(t,"error","Error"),pm(t,"warning","Warning")]},I1),ZQ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:s,children:c,icon:d,color:f,variant:m,onClose:g,bordered:h,disabled:y,href:v,target:b,styles:$,classNames:C,...x}=e,{getPrefixCls:R,direction:w,className:E,variant:T,style:N,classNames:O,styles:P}=zt("tag"),[B,L,V,G,Y]=UQ(e,T),q=V||G,H=l.useContext(Wr),_=y??H,{tag:j}=l.useContext(ft),[I,D]=l.useState(!0),F=nn(x,["closeIcon","closable"]),A={...e,color:L,variant:B,disabled:_,href:v,target:b,icon:d},[z,k]=Ft([O,C],[P,$],{props:A}),X=l.useMemo(()=>{let se={...k.root,...N,...s};return _||(se={...Y,...se}),se},[k.root,N,s,Y,_]),Q=R("tag",n),[Z,J]=P1(Q),oe=K(Q,E,z.root,`${Q}-${B}`,{[`${Q}-${L}`]:q,[`${Q}-hidden`]:!I,[`${Q}-rtl`]:w==="rtl",[`${Q}-disabled`]:_},r,a,Z,J),ne=se=>{_||(se.stopPropagation(),g?.(se),!se.defaultPrevented&&D(!1))},[,re]=HS(Ms(e),Ms(j),{closable:!1,closeIconRender:se=>{const he=l.createElement("span",{className:`${Q}-close-icon`,onClick:ne},se);return zT(se,he,ge=>({onClick:be=>{ge?.onClick?.(be),ne(be)},className:K(ge?.className,`${Q}-close-icon`)}))}}),ce=typeof x.onClick=="function"||c&&c.type==="a",fe=or(d,{className:K(l.isValidElement(d)?d.props?.className:"",z.icon),style:k.icon}),le=fe?l.createElement(l.Fragment,null,fe,c&&l.createElement("span",{className:z.content,style:k.content},c)):c,pe=v?"a":"span",ae=l.createElement(pe,{...F,ref:t,className:oe,style:X,href:_?void 0:v,target:b,onClick:_?void 0:F.onClick,...v&&_?{"aria-disabled":!0}:{}},le,re,V&&l.createElement(XQ,{key:"preset",prefixCls:Q}),G&&l.createElement(QQ,{key:"status",prefixCls:Q}));return ce?l.createElement(hd,{component:"Tag"},ae):ae}),ur=ZQ;ur.CheckableTag=M3;ur.CheckableTagGroup=YQ;const JQ={defaultSeed:km.token,defaultAlgorithm:Y4};var eZ={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"};function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U0.apply(this,arguments)}const tZ=(e,t)=>l.createElement(ht,U0({},e,{ref:t,icon:eZ})),Sp=l.forwardRef(tZ);var nZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function G0(){return G0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G0.apply(this,arguments)}const rZ=(e,t)=>l.createElement(ht,G0({},e,{ref:t,icon:nZ})),hi=l.forwardRef(rZ);var oZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function X0(){return X0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X0.apply(this,arguments)}const aZ=(e,t)=>l.createElement(ht,X0({},e,{ref:t,icon:oZ})),iZ=l.forwardRef(aZ),lZ=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:s}=r;return{marginBottom:a,color:n,fontWeight:s,fontSize:e,lineHeight:t}},sZ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
333
|
+
h${r}&,
|
|
334
|
+
div&-h${r},
|
|
335
|
+
div&-h${r} > textarea,
|
|
336
|
+
h${r}
|
|
337
|
+
`]=lZ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},cZ=e=>{const{componentCls:t,antCls:n}=e,r=`${n}-btn`;return{[`a&:not(${r}), a:not(${r})`]:{...Z4(e),[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},uZ=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Vm[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),dZ=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},fZ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),mZ=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),pZ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...sZ(e),[`
|
|
338
|
+
& + h1${t},
|
|
339
|
+
& + h2${t},
|
|
340
|
+
& + h3${t},
|
|
341
|
+
& + h4${t},
|
|
342
|
+
& + h5${t}
|
|
343
|
+
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}},...uZ(e),...cZ(e),[`
|
|
344
|
+
${t}-expand,
|
|
345
|
+
${t}-collapse,
|
|
346
|
+
${t}-edit,
|
|
347
|
+
${t}-copy
|
|
348
|
+
`]:{...Z4(e),marginInlineStart:e.marginXXS},...dZ(e),...fZ(e),...mZ(),"&-rtl":{direction:"rtl"}}}},gZ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),R3=At("Typography",pZ,gZ),hZ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:m,onCancel:g,onEnd:h,component:y,enterIcon:v=l.createElement(iZ,null)}=e,b=l.useRef(null),$=l.useRef(!1),C=l.useRef(null),[x,R]=l.useState(f);l.useEffect(()=>{R(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:Y}=b.current.resizableTextArea;Y.focus();const{length:q}=Y.value;Y.setSelectionRange(q,q)}},[]);const w=({target:Y})=>{R(Y.value.replace(/[\n\r]/g,""))},E=()=>{$.current=!0},T=()=>{$.current=!1},N=({keyCode:Y})=>{$.current||(C.current=Y)},O=()=>{m(x.trim())},P=({keyCode:Y,ctrlKey:q,altKey:H,metaKey:_,shiftKey:j})=>{C.current!==Y||$.current||q||H||_||j||(Y===it.ENTER?(O(),h?.()):Y===it.ESC&&g())},B=()=>{O()},[L,V]=R3(t),G=K(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,L,V);return l.createElement("div",{className:G,style:a},l.createElement(p3,{ref:b,maxLength:c,value:x,onChange:w,onKeyDown:N,onKeyUp:P,onCompositionStart:E,onCompositionEnd:T,onBlur:B,"aria-label":n,rows:1,autoSize:d}),v!==null?or(v,{className:`${t}-edit-content-confirm`}):null)},yZ=(e,t)=>{let n=!1;const r=a=>{a.stopPropagation(),a.preventDefault(),a.clipboardData?.clearData(),a.clipboardData?.setData("text/plain",e),t&&a.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},bZ=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function vZ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await bZ(e,n)||yZ(e,n))}const SZ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[a,s]=l.useState(!1),c=l.useRef(null),d=()=>{c.current&&clearTimeout(c.current)},f={};e.format&&(f.format=e.format),l.useEffect(()=>d,[]);const m=ct(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await vZ(h||OK(t,!0).join("")||"",f),s(!1),r(!0),d(),c.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(g)}catch(h){throw s(!1),h}});return{copied:n,copyLoading:a,onClick:m}};function lb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const CZ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},$Z=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??n,...e}:{title:e},[e,t,n]),T3=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:s,children:c,direction:d,style:f,...m}=e,{getPrefixCls:g,direction:h,className:y,style:v}=zt("typography"),b=d??h,$=g("typography",n),[C,x]=R3($),R=K($,y,{[`${$}-rtl`]:b==="rtl"},a,s,C,x),w={...v,...f};return l.createElement(r,{className:R,style:w,ref:t,...m},c)});var xZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K0.apply(this,arguments)}const wZ=(e,t)=>l.createElement(ht,K0({},e,{ref:t,icon:xZ})),O3=l.forwardRef(wZ);function BR(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function sb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function EZ(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const z1=e=>["string","number"].includes(typeof e),MZ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const m=BR(a),g=BR(s),{copied:h,copy:y}=n??{},v=t?h:y,b=sb(m[t?1:0],v),$=typeof b=="string"?b:v;return l.createElement(fr,{title:b},l.createElement("button",{type:"button",className:K(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":$,tabIndex:c},t?sb(g[1],l.createElement(pl,null),!0):sb(g[0],f?l.createElement(Ip,null):l.createElement(O3,null),!0)))},gm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),RZ=e=>e.reduce((t,n)=>t+(z1(n)?String(n).length:1),0);function LR(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const s=e[a],d=z1(s)?String(s).length:1,f=n+d;if(f>t){const m=t-n;return r.push(String(s).slice(0,m)),r}r.push(s),n=f}return e}const cb=0,ub=1,db=2,fb=3,VR=4,hm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function TZ(e){const{enableMeasure:t,width:n,text:r,children:a,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,m=l.useMemo(()=>mr(r),[r]),g=l.useMemo(()=>RZ(m),[r]),h=l.useMemo(()=>a(m,!1),[r]),[y,v]=l.useState(null),b=l.useRef(null),$=l.useRef(null),C=l.useRef(null),x=l.useRef(null),R=l.useRef(null),[w,E]=l.useState(!1),[T,N]=l.useState(cb),[O,P]=l.useState(0),[B,L]=l.useState(null);Pt(()=>{N(t&&n&&g?ub:cb)},[n,r,s,t,m]),Pt(()=>{if(T===ub){N(db);const q=$.current&&getComputedStyle($.current).whiteSpace;L(q)}else if(T===db){const q=!!C.current?.isExceed();N(q?fb:VR),v(q?[0,g]:null),E(q);const H=C.current?.getHeight()||0,_=s===1?0:x.current?.getHeight()||0,j=R.current?.getHeight()||0,I=Math.max(H,_+j);P(I+1),f(q)}},[T]);const V=y?Math.ceil((y[0]+y[1])/2):0;Pt(()=>{const[q,H]=y||[0,0];if(q!==H){const j=(b.current?.getHeight()||0)>O;let I=V;H-q===1&&(I=j?q:H),v(j?[q,I]:[I,H])}},[y,V]);const G=l.useMemo(()=>{if(!t)return a(m,!1);if(T!==fb||!y||y[0]!==y[1]){const q=a(m,!1);return[VR,cb].includes(T)?q:l.createElement("span",{style:{...hm,WebkitLineClamp:s}},q)}return a(c?m:LR(m,y[0]),w)},[c,T,y,m].concat(En(d))),Y={width:n,margin:0,padding:0,whiteSpace:B==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,G,T===db&&l.createElement(l.Fragment,null,l.createElement(gm,{style:{...Y,...hm,WebkitLineClamp:s},ref:C},h),l.createElement(gm,{style:{...Y,...hm,WebkitLineClamp:s-1},ref:x},h),l.createElement(gm,{style:{...Y,...hm,WebkitLineClamp:1},ref:R},a([],!0))),T===fb&&y&&y[0]!==y[1]&&l.createElement(gm,{style:{...Y,top:400},ref:b},a(LR(m,V),!0)),T===ub&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const OZ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(fr,{open:t?void 0:!1,...r},n);function NZ({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:s,italic:c},d){let f=d;function m(g,h){h&&(f=l.createElement(g,{},f))}return m("strong",a),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",s),m("i",c),f}const IZ="...",FR=["delete","mark","code","underline","strong","keyboard","italic"],og=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,type:s,disabled:c,children:d,ellipsis:f,editable:m,copyable:g,component:h,title:y,...v}=e,{getPrefixCls:b,direction:$}=l.useContext(ft),[C]=ao("Text"),x=l.useRef(null),R=l.useRef(null),w=b("typography",n),E=nn(v,FR),[T,N]=lb(m),[O,P]=Yt(!1,N.editing),{triggerType:B=["icon"]}=N,L=Ce=>{Ce&&N.onStart?.(),P(Ce)},V=CZ(O);Pt(()=>{!O&&V&&R.current?.focus()},[O]);const G=Ce=>{Ce?.preventDefault(),L(!0)},Y=Ce=>{N.onChange?.(Ce),L(!1)},q=()=>{N.onCancel?.(),L(!1)},[H,_]=lb(g),{copied:j,copyLoading:I,onClick:D}=SZ({copyConfig:_,children:d}),[F,A]=l.useState(!1),[z,k]=l.useState(!1),[X,Q]=l.useState(!1),[Z,J]=l.useState(!1),[oe,ne]=l.useState(!0),[re,ce]=lb(f,{expandable:!1,symbol:Ce=>Ce?C?.collapse:C?.expand}),[fe,le]=Yt(ce.defaultExpanded||!1,ce.expanded),pe=re&&(!fe||ce.expandable==="collapsible"),{rows:ae=1}=ce,se=l.useMemo(()=>pe&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||T||H),[pe,ce,T,H]);Pt(()=>{re&&!se&&(A(JE("webkitLineClamp")),k(JE("textOverflow")))},[se,re]);const[he,ge]=l.useState(pe),be=l.useMemo(()=>se?!1:ae===1?z:F,[se,z,F]);Pt(()=>{ge(be&&pe)},[be,pe]);const Ne=pe&&(he?Z:X),ve=pe&&ae===1&&he,xe=pe&&ae>1&&he,de=(Ce,Fe)=>{le(Fe.expanded),ce.onExpand?.(Ce,Fe)},[Se,Me]=l.useState(0),Ae=({offsetWidth:Ce})=>{Me(Ce)},Ie=Ce=>{Q(Ce),X!==Ce&&ce.onEllipsis?.(Ce)};l.useEffect(()=>{const Ce=x.current;if(re&&he&&Ce){const Fe=EZ(Ce);Z!==Fe&&J(Fe)}},[re,he,d,xe,oe,Se]),l.useEffect(()=>{const Ce=x.current;if(typeof IntersectionObserver>"u"||!Ce||!he||!pe)return;const Fe=new IntersectionObserver(()=>{ne(!!Ce.offsetParent)});return Fe.observe(Ce),()=>{Fe.disconnect()}},[he,pe]);const Ye=$Z(ce.tooltip,N.text,d),Ze=l.useMemo(()=>{if(!(!re||he))return[N.text,d,y,Ye.title].find(z1)},[re,he,y,Ye.title,Ne]);if(O)return l.createElement(hZ,{value:N.text??(typeof d=="string"?d:""),onSave:Y,onCancel:q,onEnd:N.onEnd,prefixCls:w,className:r,style:a,direction:$,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const He=()=>{const{expandable:Ce,symbol:Fe}=ce;return Ce?l.createElement("button",{type:"button",key:"expand",className:`${w}-${fe?"collapse":"expand"}`,onClick:Je=>de(Je,{expanded:!fe}),"aria-label":fe?C.collapse:C?.expand},typeof Fe=="function"?Fe(fe):Fe):null},Ve=()=>{if(!T)return;const{icon:Ce,tooltip:Fe,tabIndex:Je}=N,Be=mr(Fe)[0]||C?.edit,Xe=typeof Be=="string"?Be:"";return B.includes("icon")?l.createElement(fr,{key:"edit",title:Fe===!1?"":Be},l.createElement("button",{type:"button",ref:R,className:`${w}-edit`,onClick:G,"aria-label":Xe,tabIndex:Je},Ce||l.createElement(hi,{role:"button"}))):null},_e=()=>H?l.createElement(MZ,{key:"copy",..._,prefixCls:w,copied:j,locale:C,onCopy:D,loading:I,iconOnly:!Rr(d)}):null,Ue=Ce=>[Ce&&He(),Ve(),_e()],Pe=Ce=>[Ce&&!fe&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},IZ),ce.suffix,Ue(Ce)];return l.createElement(oo,{onResize:Ae,disabled:!pe},Ce=>l.createElement(OZ,{tooltipProps:Ye,enableEllipsis:pe,isEllipsis:Ne},l.createElement(T3,{className:K({[`${w}-${s}`]:s,[`${w}-disabled`]:c,[`${w}-ellipsis`]:re,[`${w}-ellipsis-single-line`]:ve,[`${w}-ellipsis-multiple-line`]:xe},r),prefixCls:n,style:{...a,WebkitLineClamp:xe?ae:void 0},component:h,ref:ir(Ce,x,t),direction:$,onClick:B.includes("text")?G:void 0,"aria-label":Ze?.toString(),title:y,...E},l.createElement(TZ,{enableMeasure:pe&&!he,text:d,rows:ae,width:Se,onEllipsis:Ie,expanded:fe,miscDeps:[j,fe,I,T,H,C].concat(En(FR.map(Fe=>e[Fe])))},(Fe,Je)=>NZ(e,l.createElement(l.Fragment,null,Fe.length>0&&Je&&!fe&&Ze?l.createElement("span",{key:"show-content","aria-hidden":!0},Fe):Fe,Pe(Je)))))))}),PZ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(og,{...d,ref:t,ellipsis:!!n,component:"a"},a)}),zZ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(og,{ref:t,...r,component:"div"},n)}),AZ=(e,t)=>{const{ellipsis:n,children:r,...a}=e,s=l.useMemo(()=>n&&typeof n=="object"?nn(n,["expandable","rows"]):n,[n]);return l.createElement(og,{ref:t,...a,ellipsis:s,component:"span"},r)},DZ=l.forwardRef(AZ),jZ=[1,2,3,4,5],_Z=l.forwardRef((e,t)=>{const{level:n=1,children:r,...a}=e,s=jZ.includes(n)?`h${n}`:"h1";return l.createElement(og,{ref:t,...a,component:s},r)}),zr=T3;zr.Text=DZ;zr.Link=PZ;zr.Title=_Z;zr.Paragraph=zZ;var Hm={exports:{}},HZ=Hm.exports,kR;function BZ(){return kR||(kR=1,(function(e,t){(function(n,r){e.exports=r(P6())})(HZ,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var a=r(n),s={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c){return c+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(c){return c<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return a.default.locale(s,null,!0),s}))})(Hm)),Hm.exports}BZ();var LZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(this,arguments)}const VZ=(e,t)=>l.createElement(ht,Q0({},e,{ref:t,icon:LZ})),WR=l.forwardRef(VZ);var FZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}const kZ=(e,t)=>l.createElement(ht,Z0({},e,{ref:t,icon:FZ})),WZ=l.forwardRef(kZ);var qZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"filled"};function J0(){return J0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J0.apply(this,arguments)}const YZ=(e,t)=>l.createElement(ht,J0({},e,{ref:t,icon:qZ})),UZ=l.forwardRef(YZ);var GZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}const XZ=(e,t)=>l.createElement(ht,eS({},e,{ref:t,icon:GZ})),A1=l.forwardRef(XZ);var KZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 01-51.7 0L308.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.3H689c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-square",theme:"filled"};function tS(){return tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tS.apply(this,arguments)}const QZ=(e,t)=>l.createElement(ht,tS({},e,{ref:t,icon:KZ})),ZZ=l.forwardRef(QZ);var JZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"};function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(this,arguments)}const eJ=(e,t)=>l.createElement(ht,nS({},e,{ref:t,icon:JZ})),N3=l.forwardRef(eJ);var tJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}const nJ=(e,t)=>l.createElement(ht,rS({},e,{ref:t,icon:tJ})),qR=l.forwardRef(nJ);var rJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}const oJ=(e,t)=>l.createElement(ht,oS({},e,{ref:t,icon:rJ})),aJ=l.forwardRef(oJ);var iJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aS.apply(this,arguments)}const lJ=(e,t)=>l.createElement(ht,aS({},e,{ref:t,icon:iJ})),sJ=l.forwardRef(lJ);var cJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}const uJ=(e,t)=>l.createElement(ht,iS({},e,{ref:t,icon:cJ})),dJ=l.forwardRef(uJ);var fJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}const mJ=(e,t)=>l.createElement(ht,lS({},e,{ref:t,icon:fJ})),pJ=l.forwardRef(mJ);var gJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"};function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}const hJ=(e,t)=>l.createElement(ht,sS({},e,{ref:t,icon:gJ})),yJ=l.forwardRef(hJ);var bJ={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"};function cS(){return cS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cS.apply(this,arguments)}const vJ=(e,t)=>l.createElement(ht,cS({},e,{ref:t,icon:bJ})),SJ=l.forwardRef(vJ);var CJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uS.apply(this,arguments)}const $J=(e,t)=>l.createElement(ht,uS({},e,{ref:t,icon:CJ})),xJ=l.forwardRef($J);var wJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}const EJ=(e,t)=>l.createElement(ht,dS({},e,{ref:t,icon:wJ})),I3=l.forwardRef(EJ);var MJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}const RJ=(e,t)=>l.createElement(ht,fS({},e,{ref:t,icon:MJ})),TJ=l.forwardRef(RJ);var OJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"};function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}const NJ=(e,t)=>l.createElement(ht,mS({},e,{ref:t,icon:OJ})),IJ=l.forwardRef(NJ);var PJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}const zJ=(e,t)=>l.createElement(ht,pS({},e,{ref:t,icon:PJ})),P3=l.forwardRef(zJ);var AJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"};function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(this,arguments)}const DJ=(e,t)=>l.createElement(ht,gS({},e,{ref:t,icon:AJ})),jJ=l.forwardRef(DJ);var _J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hS.apply(this,arguments)}const HJ=(e,t)=>l.createElement(ht,hS({},e,{ref:t,icon:_J})),BJ=l.forwardRef(HJ);var LJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yS.apply(this,arguments)}const VJ=(e,t)=>l.createElement(ht,yS({},e,{ref:t,icon:LJ})),D1=l.forwardRef(VJ);var FJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};function bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bS.apply(this,arguments)}const kJ=(e,t)=>l.createElement(ht,bS({},e,{ref:t,icon:FJ})),WJ=l.forwardRef(kJ);var qJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function vS(){return vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vS.apply(this,arguments)}const YJ=(e,t)=>l.createElement(ht,vS({},e,{ref:t,icon:qJ})),UJ=l.forwardRef(YJ);var GJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"};function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SS.apply(this,arguments)}const XJ=(e,t)=>l.createElement(ht,SS({},e,{ref:t,icon:GJ})),KJ=l.forwardRef(XJ);var QJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CS.apply(this,arguments)}const ZJ=(e,t)=>l.createElement(ht,CS({},e,{ref:t,icon:QJ})),z3=l.forwardRef(ZJ),A3=l.createContext(null),bl=()=>{const e=l.useContext(A3);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},JJ={},Go=typeof import.meta<"u"&&JJ?.VITE_API_URL||"/api";class D3 extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function Xo(e){if(!e.ok){const t=await e.json().catch(()=>({message:"API Error"}));throw new D3(e.status,t.message||`HTTP ${e.status}`,t.code)}if(!(e.status===204||e.headers.get("content-length")==="0"))return e.json()}const YR={async getCalendarData(e){const t=new URLSearchParams;e.year!==void 0&&t.set("year",String(e.year)),e.month!==void 0&&t.set("month",String(e.month));const n=`${Go}/calendar`+(t.toString()?"?"+t:""),r=await fetch(n);return Xo(r)},async getAvailableYearMonths(e){const t=`${Go}/calendar/months`,n=await fetch(t);return Xo(n)}},Cp={async getConfig(e){const t=`${Go}/config`,n=await fetch(t);return Xo(n)},async updateConfig(e){const t=`${Go}/config`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Xo(n)},async getRoutinesMarkdown(e){const t=`${Go}/config/routines/markdown`,n=await fetch(t);return Xo(n)},async saveRoutinesMarkdown(e){const t=`${Go}/config/routines/markdown`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Xo(n)}},eee={async getStatus(e){const t=`${Go}/git/status`,n=await fetch(t);return Xo(n)}},fs={async getReport(e){const t=`${Go}/reports/${e.date}`,n=await fetch(t);return Xo(n)},async saveReport(e){const t=`${Go}/reports/${e.date}`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Xo(n)},async deleteReport(e){const t=`${Go}/reports/${e.date}`,n=await fetch(t,{method:"DELETE"});await Xo(n)}},{TextArea:tee}=Pr,{Header:nee}=Na,{Text:Er}=zr,UR="dashboard_save_step",ree=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:a,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:m}=bl(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[v,b]=l.useState(()=>{const D=localStorage.getItem(UR);return D?parseInt(D,10):0}),[$,C]=l.useState(!1),[x,R]=l.useState(new Set),[w,E]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(UR,String(v))},[v]),l.useEffect(()=>{!g&&v>2&&b(2)},[g,v]);const O=l.useMemo(()=>{const D=new Set(m.unsavedDates),F=e.format("YYYY-MM-DD");return c.isDirty&&D.add(F),Array.from(D).sort((A,z)=>z.localeCompare(A))},[m.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(R(new Set(O)),N(!0),eee.getStatus({}).then(D=>E(D)).catch(D=>console.error("Git状態の取得に失敗:",D)).finally(()=>N(!1)))},[h,O]);const P=l.useMemo(()=>!!(x.size>0||v>=1&&w?.uncommitted&&w.uncommitted.count>0||v>=2&&w?.unpushed&&w.unpushed.count>0),[x.size,v,w]),B=l.useCallback(()=>{t(bn())},[t]),L=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),V=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),G=l.useCallback(()=>{y(!0)},[]),Y=l.useCallback(async()=>{if(!P){wn.warning("実行対象がありません");return}C(!0);try{const D=v>=1,F=v>=2,A=v>=3,z={git:D?{commit:!0,push:F}:void 0,slack:A?{post:!0}:void 0},k=Array.from(x);k.length>0?await d(k,z):(D||F)&&await d([e.format("YYYY-MM-DD")],z),y(!1)}catch{wn.error("操作に失敗しました")}finally{C(!1)}},[v,x,d,P,e]),q=l.useCallback((D,F)=>{R(A=>{const z=new Set(A);return F?z.add(D):z.delete(D),z})},[]),H=l.useCallback(D=>{R(D?new Set(O):new Set)},[O]),_=l.useCallback(D=>{const F=e.format("YYYY-MM-DD");return D===F?c.markdownContent||"(日報データがありません)":m.getUnsavedReport(D)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,m]),j=l.useMemo(()=>{const D=O.length;return U.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[U.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),U.jsxs("div",{children:["未保存: ",D,"件"]})]})},[O.length]),I=O.length>0;return U.jsxs(nee,{style:{background:"#fff",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #f0f0f0",position:"sticky",top:0,zIndex:100,height:64},children:[U.jsxs(fn,{size:"large",children:[U.jsxs("div",{className:"dashboard-title",style:{display:"flex",alignItems:"center",gap:12},children:[U.jsx(n3,{style:{fontSize:24,color:"#1890ff"}}),U.jsx(Er,{className:"dashboard-title-text",strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),U.jsxs(fn,{size:"small",children:[U.jsx(Bt,{size:"small",onClick:L,children:"◀"}),U.jsx(yl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),U.jsx(Bt,{size:"small",onClick:V,children:"▶"}),U.jsx(Bt,{type:"primary",size:"small",onClick:B,children:"今日"}),r.length>0&&U.jsxs(fn,{size:4,style:{marginLeft:8},children:[r.map(D=>U.jsx(ur,{color:D.color,closable:!0,onClose:()=>a?.(D.code),closeIcon:U.jsx(Yr,{style:{fontSize:10}}),children:D.code},D.code)),r.length>1&&U.jsx(ur,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),U.jsxs(fn,{size:"middle",align:"center",children:[U.jsx(Bt,{icon:U.jsx(SJ,{}),onClick:n,children:"取り込み"}),U.jsx(Bt,{type:"primary",icon:U.jsx(aJ,{}),onClick:G,loading:c.saving,children:"保存"}),U.jsx(fr,{title:j,children:U.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[U.jsx(pJ,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&U.jsx("span",{style:{position:"absolute",top:2,right:-6,minWidth:14,height:14,borderRadius:7,backgroundColor:"#ff4d4f",color:"#fff",fontSize:10,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center"},children:"!"})]})})]}),U.jsxs(io,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:Y,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:$,disabled:!P},width:900,children:[U.jsxs("div",{style:{marginBottom:24},children:[U.jsx(Er,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),U.jsx(LQ,{current:v,onChange:D=>b(D),items:[{title:"ローカル保存",description:"ファイルに保存",icon:U.jsx(kQ,{})},{title:"Commit",description:"Gitにコミット",icon:U.jsx(D1,{})},{title:"Push",description:"リモートに反映",icon:U.jsx(qR,{})},...g?[{title:"Slack",description:"日報を投稿",icon:U.jsx(WJ,{})}]:[]],style:{marginTop:16}})]}),U.jsxs("div",{style:{marginTop:16},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[U.jsxs(Er,{strong:!0,style:{fontSize:14},children:["保存対象 (",x.size,"/",O.length,"件)"]}),U.jsx(zs,{checked:x.size===O.length&&O.length>0,indeterminate:x.size>0&&x.size<O.length,onChange:D=>H(D.target.checked),children:"全選択"})]}),U.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((D,F)=>U.jsxs("div",{style:{padding:12,borderBottom:F<O.length-1?"1px solid #f0f0f0":"none",background:x.has(D)?"#f6ffed":"#fff"},children:[U.jsxs(zs,{checked:x.has(D),onChange:A=>q(D,A.target.checked),style:{marginBottom:8},children:[U.jsx(Er,{strong:!0,children:D}),D===e.format("YYYY-MM-DD")&&U.jsx(ur,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),x.has(D)&&U.jsx(tee,{value:_(D),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},D)),O.length===0&&U.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:U.jsx(Er,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),v>=1&&U.jsxs(U.Fragment,{children:[U.jsx(si,{style:{margin:"16px 0 12px"}}),U.jsxs("div",{children:[U.jsxs(Er,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[U.jsx(dJ,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?U.jsx("div",{style:{padding:16,textAlign:"center"},children:U.jsx(bp,{size:"small"})}):w?.uncommitted&&w.uncommitted.count>0?U.jsx(HE,{size:"small",items:[{key:"uncommitted",label:U.jsxs(Er,{type:"secondary",children:[w.uncommitted.count,"件の未コミットファイル"]}),children:U.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:w.uncommitted.files.map((D,F)=>U.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[U.jsx(hp,{style:{color:"#1890ff"}}),U.jsx(Er,{code:!0,style:{fontSize:11},children:D.path}),U.jsx(ur,{color:D.status==="D"?"red":D.status==="A"||D.status==="?"?"green":"blue",style:{fontSize:10},children:D.status==="D"?"削除":D.status==="A"?"追加":D.status==="?"?"新規":"変更"})]},F))})}],defaultActiveKey:["uncommitted"]}):U.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:U.jsx(Er,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),U.jsx(Er,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),v>=2&&U.jsxs(U.Fragment,{children:[U.jsx(si,{style:{margin:"16px 0 12px"}}),U.jsxs("div",{children:[U.jsxs(Er,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[U.jsx(qR,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?U.jsx("div",{style:{padding:16,textAlign:"center"},children:U.jsx(bp,{size:"small"})}):w?.unpushed&&w.unpushed.count>0?U.jsx(HE,{size:"small",items:[{key:"unpushed",label:U.jsxs(Er,{type:"secondary",children:[w.unpushed.count,"件の未プッシュコミット"]}),children:U.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:w.unpushed.commits.map((D,F)=>U.jsxs("div",{style:{padding:"8px 0",borderBottom:F<w.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[U.jsx(ur,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:D.hash}),U.jsx(Er,{style:{fontSize:12},children:D.message})]}),D.files.length>0&&U.jsxs("div",{style:{paddingLeft:16},children:[D.files.slice(0,5).map((A,z)=>U.jsxs("div",{style:{fontSize:11,color:"#666"},children:[U.jsx(hp,{style:{marginRight:4}}),A]},z)),D.files.length>5&&U.jsxs(Er,{type:"secondary",style:{fontSize:11},children:["... 他 ",D.files.length-5," ファイル"]})]})]},F))})}],defaultActiveKey:["unpushed"]}):U.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:U.jsx(Er,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),U.jsx(Er,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:mb}=zr,oee=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:a}=bl(),[s,c]=l.useState(e),d=bn(),f=l.useMemo(()=>{const w={};for(const E of n.days)E.hasReport&&(w[E.date]={actual:E.resultHours||0,plan:E.planHours||0});return w},[n.days]),m=l.useMemo(()=>{const w=new Map;for(const T of n.availableYearMonths){const N=`${T.year}-${T.month-1}`;w.has(N)||w.set(N,{year:T.year,month:T.month-1})}const E=`${d.year()}-${d.month()}`;w.has(E)||w.set(E,{year:d.year(),month:d.month()});for(let T=-2;T<=2;T++){const N=d.add(T,"month"),O=`${N.year()}-${N.month()}`;w.has(O)||w.set(O,{year:N.year(),month:N.month()})}return Array.from(w.values()).sort((T,N)=>T.year-N.year||T.month-N.month).map(T=>({...T,label:`${T.year}年${T.month+1}月`}))},[n.availableYearMonths,d]),g=m.map(w=>({value:`${w.year}-${w.month}`,label:w.label})),h=w=>{const[E,T]=w.split("-").map(Number),N=s.year(E).month(T);c(N),n.loadCalendar(E,T+1)},y=()=>{const w=m.findIndex(E=>E.year===s.year()&&E.month===s.month());if(w>0){const E=m[w-1],T=s.year(E.year).month(E.month);c(T),n.loadCalendar(E.year,E.month+1)}},v=()=>{const w=m.findIndex(E=>E.year===s.year()&&E.month===s.month());if(w<m.length-1){const E=m[w+1],T=s.year(E.year).month(E.month);c(T),n.loadCalendar(E.year,E.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const b=m.findIndex(w=>w.year===s.year()&&w.month===s.month()),$=b>0,C=b<m.length-1,x=w=>w>=9?"#ff4d4f":w>=8?"#52c41a":w>=6?"#1890ff":"#d9d9d9",R=w=>{const E=w.format("YYYY-MM-DD"),T=w.isBefore(d,"day"),N=w.isAfter(d,"day"),O=w.isSame(d,"day"),P=w.isSame(e,"day"),B=w.month()===s.month(),L=f[E],V=L?Math.min(L.actual/8*100,100):0,G=r.hasUnsavedChangesForDate(E)||P&&a.isDirty;return U.jsx(fr,{title:L?`稼働: ${L.actual}h${G?" (未保存)":""}`:G?"未保存":void 0,children:U.jsxs("div",{onClick:()=>t(E),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:B?1:.3},children:[(T||O)&&L&&U.jsx(mQ,{type:"circle",percent:V,size:30,strokeColor:x(L.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),G&&U.jsx(Hs,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),U.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||P?600:400,color:O||P?"#1890ff":"#000",background:P?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:w.date()})]})})};return U.jsxs(Ma,{title:U.jsx("div",{style:{display:"flex",justifyContent:"center"},children:U.jsxs(fn,{size:"small",children:[U.jsx(Bt,{size:"small",onClick:y,disabled:!$,children:"◀"}),U.jsx(Fr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),U.jsx(Bt,{size:"small",onClick:v,disabled:!C,children:"▶"})]})}),styles:{body:{padding:8}},children:[U.jsx("style",{children:`
|
|
349
|
+
.compact-calendar .ant-picker-content th,
|
|
350
|
+
.compact-calendar .ant-picker-content td {
|
|
351
|
+
padding: 2px 0 !important;
|
|
352
|
+
}
|
|
353
|
+
.compact-calendar .ant-picker-cell {
|
|
354
|
+
padding: 0 !important;
|
|
355
|
+
}
|
|
356
|
+
.compact-calendar .ant-picker-cell-inner {
|
|
357
|
+
min-width: 32px !important;
|
|
358
|
+
height: 32px !important;
|
|
359
|
+
line-height: 32px !important;
|
|
360
|
+
}
|
|
361
|
+
`}),U.jsx(VN,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:w=>{c(w),t(w.format("YYYY-MM-DD"))},fullCellRender:R,style:{border:"none"},headerRender:()=>null}),n.summary&&U.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:U.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[U.jsxs("span",{children:["稼働日数: ",n.summary.workDays??0,"日"]}),U.jsxs("span",{children:["合計: ",(n.summary.totalResultHours??0).toFixed(1),"h"]})]})}),U.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),U.jsx(mb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),U.jsx(mb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),U.jsx(mb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function id(e){const[t,n]=e.split(":").map(Number);return t*60+n}function ki(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:pb}=zr,aee=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:a,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:m,onMenuAction:g})=>{const h=t==="result",y=e.topPx,v=e.heightPx,b=r&&!a?y+s:y,C={items:[{key:"project",label:"プロジェクト変更",children:d.filter(x=>x.active).map(x=>({key:`project:${e.id}:${t}:${x.code}`,label:U.jsxs(fn,{children:[U.jsx(gi,{color:x.color}),x.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:U.jsx(A1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:U.jsx(Sp,{}),danger:!0}],onClick:({key:x})=>g(x),onSelect:({key:x})=>g(x),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return U.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:x=>m(x,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,b),height:Math.max(v,20),left:4,right:4,background:h?`${c(e.project)}90`:`${c(e.project)}40`,borderLeft:`3px solid ${c(e.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",cursor:r?"grabbing":"grab",transition:r?"none":"all 0.2s",fontSize:11,opacity:a?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!a?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx(pb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),U.jsx(pb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),U.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:U.jsx(E1,{menu:C,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:U.jsx(I3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:x=>x.stopPropagation(),onClick:x=>x.stopPropagation()})})})]}),e.description&&U.jsx(pb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:gb}=zr;function GR(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const iee=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:a,startHour:s=8,hourHeight:c=60})=>{if(!n||!e||e.type!=="plan")return null;const d=t/c*60,f=Math.round((e.startMinutes+d)/15)*15,m=GR(f),g=(f-s*60)/60*c;if(e.isBreak){const v=e.breakDuration||60,b=v/60*c,$=f+v,C=GR($);return U.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(b,20),left:4,right:4,background:"repeating-linear-gradient(45deg, rgba(200,200,200,0.3), rgba(200,200,200,0.3) 4px, rgba(180,180,180,0.3) 4px, rgba(180,180,180,0.3) 8px)",borderRadius:4,border:"2px dashed #52c41a",display:"flex",alignItems:"center",justifyContent:"center",opacity:.9,zIndex:5,pointerEvents:"none"},children:U.jsxs(gb,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",m,"〜",C]})})}const h=r.find(v=>v.id===e.itemId);if(!h)return null;const y=c;return U.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${a(h.project)}30`,borderLeft:`3px dashed ${a(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx(gb,{style:{fontSize:10,color:"#666",flexShrink:0},children:m}),U.jsx(gb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function XR(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function ym(e,t,n,r,a,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,m=(a+r)*60;d=Math.max(f,Math.min(m-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function lee({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:a=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,m]=l.useState(null),[g,h]=l.useState(0),[y,v]=l.useState(!1),b=l.useCallback((x,R,w,E,T,N)=>{x.preventDefault(),x.stopPropagation(),m({itemId:R,type:w,startY:x.clientY,startMinutes:E,isBreak:T,breakDuration:N}),h(0)},[]),$=l.useCallback(x=>{if(!f)return;const R=x.clientY-f.startY,w=c/4,E=Math.round(R/w)*w;if(h(E),f.type==="plan"&&e.current){const T=e.current.getBoundingClientRect(),N=x.clientX>=T.left&&x.clientX<=T.right;v(N)}},[f,e,c]),C=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const x=g!==0?ym(f.startMinutes,g,c,s,a,d):XR(f.startMinutes),R={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:x,project:"---",task:"休憩"},w=f.startMinutes+(f.breakDuration||60),E=g!==0?ym(w,g,c,s,a,d):XR(w),T=[...t.result,R];T.sort((N,O)=>N.time.localeCompare(O.time)),r(T),wn.success(`休憩(${x}〜${E})を実績にコピーしました`)}else{const x=t.plan.find(R=>R.id===f.itemId);if(x){const R=g!==0?ym(f.startMinutes,g,c,s,a,d):x.time,w={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:R,project:x.project,task:x.task},E=[...t.result,w];E.sort((T,N)=>T.time.localeCompare(N.time)),r(E),wn.success(`「${x.task}」を実績にコピーしました`)}}else if(g!==0){const x=ym(f.startMinutes,g,c,s,a,d),w=(f.type==="plan"?[...t.plan]:[...t.result]).map(E=>E.id===f.itemId?{...E,time:x}:E);w.sort((E,T)=>E.time.localeCompare(T.time)),f.type==="plan"?n(w):r(w),wn.success(`予定を ${x} に移動しました`)}m(null),h(0),v(!1)}},[f,g,y,t,n,r,a,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",C),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",C),document.body.style.cursor="",document.body.style.userSelect=""}},[f,$,C]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:b}}function see(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function $S(e){const t=[];for(const n of e)if(!n.task)t.push(`* ${n.time}`);else if(t.push(`* ${n.time} [${n.project}] ${n.task}`),n.description){const r=n.description.split(`
|
|
362
|
+
`);for(const a of r)t.push(` ${a}`)}return t}function KR(e,t){return[`## ${t}`,...$S(e)].join(`
|
|
363
|
+
`)}function QR(e){const t=e.split(`
|
|
364
|
+
`),n=[];let r=null,a=[];const s=()=>{r&&(a.length>0&&(r.description=a.join(`
|
|
365
|
+
`)),n.push(r),r=null,a=[])};for(let c=0;c<t.length;c++){const d=t[c];if(d.startsWith(" ")&&r){a.push(d.substring(2));continue}const f=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s+\[(\w+)\]\s+(.+)$/);if(f){s(),r={id:`s${Date.now()}-${c}`,time:f[1].padStart(5,"0"),project:f[2],task:f[3].trim()};continue}const m=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s*$/);m&&(s(),n.push({id:`break${Date.now()}-${c}`,time:m[1].padStart(5,"0"),project:"",task:""}))}return s(),n}function ZR(e,t=8,n=12,r=60){if(e.length===0)return[];const a=[...e].sort((f,m)=>f.time.localeCompare(m.time)),s=t*60,c=n*60,d=[];for(let f=0;f<a.length;f++){const m=a[f];if(!m.task)continue;const h=id(m.time);let y=60;for(let b=f+1;b<a.length;b++){const $=a[b],C=id($.time);if(C>h){y=C-h;break}}const v=h+y;d.push({id:m.id,time:m.time,project:m.project,task:m.task,description:m.description,duration:y,isBreak:!1,startMinutes:h,endMinutes:v,top:(h-s)/c*100,height:y/c*100,topPx:(h-s)/60*r,heightPx:y/60*r})}return d}function JR(e,t=8,n=12,r=60){if(e.length===0)return[];const a=[...e].sort((f,m)=>f.time.localeCompare(m.time)),s=[],c=t*60,d=n*60;for(let f=0;f<a.length;f++){const m=a[f];if(!m.task){let g=!1,h=0;for(let b=f+1;b<a.length;b++)if(a[b].task){h=id(a[b].time),g=!0;break}if(!g)continue;const y=id(m.time),v=h-y;s.push({id:m.id,startTime:m.time,endTime:see(h),startMinutes:y,endMinutes:h,duration:v,top:(y-c)/d*100,height:v/d*100,topPx:(y-c)/60*r,heightPx:v/60*r})}}return s}function cee(e,t={}){const{maxHours:n=36,defaultStartHour:r=8,defaultEndHour:a=20}=t;if(e.length===0)return{startHour:r,endHour:a,totalHours:a-r};let s=r*60,c=a*60;for(const g of e){const h=id(g.time);s=Math.min(s,h),c=Math.max(c,h)}c+=60;let d=Math.floor(s/60)-2;d<0&&(d=0);let f=Math.ceil(c/60)+2;const m=d+n;return f>m&&(f=m),{startHour:d,endHour:f,totalHours:f-d}}function uee(e){switch(e){case"completed":return"x";case"in_progress":return"*";case"on_hold":return"-";default:return" "}}function dee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";default:return"pending"}}function j3(e){const t=[];for(const n of e){const r=uee(n.status),a=n.priority==="high"?"!!!":n.priority==="medium"?"!!":n.priority==="low"?"!":"",s=n.deadline?` @${n.deadline}`:"";if(t.push(`- [${r}] [${n.project}] ${a}${n.task}${s}`),n.description){const c=n.description.split(`
|
|
366
|
+
`);for(const d of c)t.push(` ${d}`)}}return t}function e4(e,t){const n=["## [TODO]",""];return n.push(...j3(e)),n.push(""),n.push("## [NOTE]"),n.push(t),n.join(`
|
|
367
|
+
`)}function fee(e){const t=e.split(`
|
|
368
|
+
`),n=[];let r="P99",a=!1;const s=[];let c=null;const d=[],f=()=>{c&&(d.length>0&&(c.description=d.join(`
|
|
369
|
+
`)),n.push(c),c=null,d.length=0)};for(let m=0;m<t.length;m++){const g=t[m];if(g.match(/^##\s+\[NOTE\]/i)){f(),a=!0;continue}if(a){s.push(g);continue}const h=g.match(/^###\s+(\S+)/);if(h){f(),r=h[1];continue}if(c&&g.match(/^ {2}/)){d.push(g.substring(2));continue}const y=g.match(/^-\s+\[([xX\s*-])\]\s+(.+)$/);if(y){f();const v=y[1];let b=y[2],$=r;const C=b.match(/^\[([^\]]+)\]\s*/);C&&($=C[1],b=b.substring(C[0].length));let x;const R=b.match(/^(!!!|!!|!)/);if(R){const T=R[1];x=T==="!!!"?"high":T==="!!"?"medium":"low",b=b.substring(R[0].length)}let w;const E=b.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(E)w=E[1],b=b.substring(0,b.length-E[0].length);else{const T=b.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);T&&(w=T[1],b=b.substring(T[0].length))}w&&w.length===5&&(w=`${new Date().getFullYear()}-${w}`),c={id:`t${Date.now()}-${m}`,project:$,task:b.trim(),status:dee(v),deadline:w,priority:x}}}return f(),{todos:n,notes:s.join(`
|
|
370
|
+
`).trim()}}function _3(e){if(!e)return!1;const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);return n.setHours(0,0,0,0),n<t}function mee(e){if(!e)return!1;const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);n.setHours(0,0,0,0);const r=Math.ceil((n.getTime()-t.getTime())/(1e3*60*60*24));return r>=0&&r<=2}function pee(e,t,n="名前"){const r=s=>s.map(c=>`* ${c.time} [${c.project}] ${c.task}`).join(`
|
|
371
|
+
`),a=s=>s.map(c=>{const d=c.status==="completed"?"x":c.status==="in_progress"?"*":c.status==="on_hold"?"-":" ",f=c.deadline?`@${c.deadline} `:"",m=c.priority==="high"?"!!! ":c.priority==="medium"?"!! ":c.priority==="low"?"! ":"";return`- [${d}] ${f}${m}[${c.project}] ${c.task}`}).join(`
|
|
372
|
+
`);return`# [日報] ${n} ${t}
|
|
373
|
+
|
|
374
|
+
## [PLAN]
|
|
375
|
+
${r(e.plan)}
|
|
376
|
+
|
|
377
|
+
## [RESULT]
|
|
378
|
+
${r(e.result)}
|
|
379
|
+
|
|
380
|
+
## [TODO]
|
|
381
|
+
${a(e.todos)}
|
|
382
|
+
|
|
383
|
+
## [NOTE]
|
|
384
|
+
${e.notes||""}
|
|
385
|
+
`}const{Text:Vn}=zr,{TextArea:t4}=Pr,gee=({selectedDate:e,selectedProjects:t=[]})=>{const{report:n,config:r}=bl(),[a,s]=l.useState(!1),[c,d]=l.useState(!1),[f,m]=l.useState(null),g=l.useRef(null),h=l.useRef(null),y=n.report,v=r.projects,b=l.useMemo(()=>y?.plan||[],[y?.plan]),$=l.useMemo(()=>y?.result||[],[y?.result]),C=r.config?.timeline,x=C?.hourHeight??60,R=C?.maxHours??36,w=C?.defaultStartHour??8,E=C?.defaultEndHour??20,T=C?.snapMinutes??15,N=l.useMemo(()=>{const de=[...b,...$];return cee(de,{maxHours:R,defaultStartHour:w,defaultEndHour:E})},[b,$,R,w,E]),{startHour:O,endHour:P,totalHours:B}=N,L=B*x,[V,G]=l.useState(""),[Y,q]=l.useState(""),{dragState:H,dragOffset:_,isDraggingToResult:j,handleDragStart:I}=lee({resultAreaRef:h,currentReport:y,updatePlan:n.updatePlan,updateResult:n.updateResult,startHour:O,totalHours:B,hourHeight:x,snapMinutes:T}),D=de=>r.getProjectColor(de),F=bn(),A=e.isSame(F,"day"),z=F.hour()*60+F.minute(),k=Array.from({length:B+1},(de,Se)=>O+Se),X=l.useMemo(()=>ZR(b,O,B,x),[b,O,B,x]),Q=l.useMemo(()=>ZR($,O,B,x),[$,O,B,x]),Z=l.useMemo(()=>JR(b,O,B,x),[b,O,B,x]),J=l.useMemo(()=>JR($,O,B,x),[$,O,B,x]),oe=l.useMemo(()=>t.length>0?X.filter(de=>t.includes(de.project)):X,[X,t]),ne=l.useMemo(()=>t.length>0?Q.filter(de=>t.includes(de.project)):Q,[Q,t]),re=Z,ce=J,fe=l.useRef(null);l.useEffect(()=>{const de=e.format("YYYY-MM-DD");if(fe.current===de)return;const Se=[...b,...$];if(Se.length===0)return;const Me=Se.reduce((Ye,Ze)=>{const[He,Ve]=Ze.time.split(":").map(Number),_e=He*60+Ve;return _e<Ye?_e:Ye},1/0),Ae=Math.max(Me-30,O*60),Ie=(Ae-O*60)/60*x;requestAnimationFrame(()=>{g.current&&!a&&(g.current.scrollTop=Ie,fe.current=de,console.log(`[Timeline] Scrolled to ${Ae}min (${Math.floor(Ae/60)}:${String(Ae%60).padStart(2,"0")}), scrollTop=${Ie}px, firstItem=${Me}min, startHour=${O}`))})},[e,a,O,x,b,$]);const le=(de,Se)=>{n.deleteScheduleItem(Se,de),wn.success(`${Se==="plan"?"計画":"実績"}を削除しました`)},pe=l.useCallback((de,Se,Me)=>{n.updateScheduleItem(Me,de,{project:Se}),wn.success(`プロジェクトを ${Se} に変更しました`)},[n]),ae=de=>{n.addScheduleItem("result",{time:de.time,project:de.project,task:de.task,duration:de.duration}),wn.success(`「${de.task}」を実績にコピーしました`)},se=l.useCallback(de=>{if(de.startsWith("project:")){const Se=de.split(":"),Me=Se[1],Ae=Se[2],Ie=Se[3];pe(Me,Ie,Ae)}else if(de.startsWith("toResult:")){const[,Se]=de.split(":"),Me=y?.plan.find(Ae=>Ae.id===Se);Me&&ae(Me)}else if(de.startsWith("delete:")){const[,Se,Me]=de.split(":");le(Se,Me)}},[y,pe]),he=l.useMemo(()=>oe.reduce((de,Se)=>de+Se.duration,0),[oe]),ge=l.useMemo(()=>ne.reduce((de,Se)=>de+Se.duration,0),[ne]),be=l.useMemo(()=>{const de=new Map;for(const Ae of X)Ae.project&&!Ae.isBreak&&de.set(Ae.project,(de.get(Ae.project)||0)+Ae.duration);const Se=new Map;for(const Ae of Q)Ae.project&&!Ae.isBreak&&Se.set(Ae.project,(Se.get(Ae.project)||0)+Ae.duration);const Me=new Set([...de.keys(),...Se.keys()]);return Array.from(Me).map(Ae=>{const Ie=v.find(Ye=>Ye.code===Ae);return{project:Ae,projectName:Ie?.name||Ae,color:Ie?.color||"#999",planMinutes:de.get(Ae)||0,resultMinutes:Se.get(Ae)||0}}).sort((Ae,Ie)=>Ie.resultMinutes-Ae.resultMinutes||Ie.planMinutes-Ae.planMinutes)},[X,Q,v]),Ne=()=>{!a&&y&&(G(KR(y.plan,"[PLAN]")),q(KR(y.result,"[RESULT]"))),s(!a)},ve=()=>{const de=QR(V),Se=QR(Y);n.updatePlan(de),n.updateResult(Se),wn.success("反映しました"),s(!1)},xe=(de,Se)=>{const Me=Se?"result":"plan",Ae=f===`${Me}-${de.id}`,Ie=H?.itemId===de.id&&H?.type===Me,Ye=Ie&&j;return U.jsx(aee,{item:de,type:Me,isHovered:Ae,isDragging:Ie,isDraggingToResultArea:Ye,dragOffset:_,getProjectColor:D,projects:v,onHover:m,onDragStart:I,onMenuAction:se},de.id)};return U.jsxs(Ma,{title:U.jsxs(fn,{children:[U.jsx(Td,{}),U.jsx("span",{children:"タイムライン"}),U.jsx(ur,{children:e.format("MM/DD (ddd)")})]}),extra:U.jsx(fn,{children:a?U.jsxs(U.Fragment,{children:[U.jsx(Bt,{size:"small",icon:U.jsx(Yr,{}),onClick:()=>s(!1),children:"キャンセル"}),U.jsx(Bt,{type:"primary",size:"small",icon:U.jsx(pl,{}),onClick:ve,children:"OK"})]}):U.jsxs(U.Fragment,{children:[U.jsx(Bt,{size:"small",icon:U.jsx(WR,{}),onClick:()=>d(!0),children:"集計"}),U.jsx(Bt,{type:"primary",size:"small",icon:U.jsx(hi,{}),onClick:Ne,children:"編集"})]})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:[a?U.jsxs("div",{style:{display:"flex",flex:1,gap:12,overflow:"hidden"},children:[U.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[U.jsx(Vn,{strong:!0,style:{marginBottom:4,color:"#1890ff"},children:"計画"}),U.jsx(t4,{value:V,onChange:de=>G(de.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}),U.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[U.jsx(Vn,{strong:!0,style:{marginBottom:4,color:"#52c41a"},children:"実績"}),U.jsx(t4,{value:Y,onChange:de=>q(de.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]})]}):U.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[U.jsxs("div",{style:{display:"flex",flexShrink:0,paddingBottom:4,borderBottom:"1px solid #f0f0f0"},children:[U.jsx("div",{style:{width:40,flexShrink:0}}),U.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80},children:[U.jsx(P3,{style:{fontSize:12,color:"#1890ff"}}),U.jsx(Vn,{style:{fontSize:11,color:"#1890ff"},children:"計画"}),U.jsx(Vn,{strong:!0,style:{fontSize:12,color:"#1890ff"},children:ki(he)})]}),U.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80,marginLeft:8},children:[U.jsx(A1,{style:{fontSize:12,color:"#52c41a"}}),U.jsx(Vn,{style:{fontSize:11,color:"#52c41a"},children:j?"ここにドロップでコピー":"実績"}),U.jsx(Vn,{strong:!0,style:{fontSize:12,color:"#52c41a"},children:ki(ge)})]})]}),U.jsxs("div",{ref:g,style:{display:"flex",flex:1,overflow:"auto",minHeight:0},children:[U.jsx("div",{style:{width:40,flexShrink:0,position:"relative",height:L},children:k.map((de,Se)=>U.jsx("div",{style:{position:"absolute",top:Se*x,left:0,right:0,height:Se<k.length-1?x:0,borderTop:"1px solid #f0f0f0",paddingRight:4,textAlign:"right"},children:U.jsxs(Vn,{type:"secondary",style:{fontSize:10},children:[de,":00"]})},de))}),U.jsxs("div",{style:{flex:1,position:"relative",minWidth:80,height:L,background:"#fafafa"},children:[k.map(de=>U.jsx("div",{style:{position:"absolute",top:(de-O)*x,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},de)),A&&z>=O*60&&z<=P*60&&U.jsx("div",{style:{position:"absolute",top:(z-O*60)/60*x,left:0,right:0,borderTop:"2px solid #ff4d4f",zIndex:10},children:U.jsx("div",{style:{position:"absolute",left:-4,top:-6,width:10,height:10,borderRadius:"50%",background:"#ff4d4f"}})}),re.map(de=>{const Se=H?.itemId===de.id&&H?.isBreak;return U.jsx("div",{style:{position:"absolute",top:(de.startMinutes-O*60)/60*x+(Se?_:0),height:de.duration/60*x,left:4,right:4,background:"repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #e8e8e8 4px, #e8e8e8 8px)",borderRadius:4,border:"1px dashed #d9d9d9",display:"flex",alignItems:"center",justifyContent:"center",opacity:Se?.5:.8,cursor:"grab",transition:Se?"none":"opacity 0.2s"},onMouseDown:Me=>I(Me,de.id,"plan",de.startMinutes,!0,de.duration),children:U.jsx(Vn,{type:"secondary",style:{fontSize:10},children:"休憩"})},de.id)}),oe.map(de=>xe(de,!1))]}),U.jsxs("div",{ref:h,style:{flex:1,position:"relative",minWidth:80,marginLeft:8,height:L,background:"#fafafa",transition:"all 0.2s",...j&&{boxShadow:"0 0 0 2px #52c41a"}},children:[k.map(de=>U.jsx("div",{style:{position:"absolute",top:(de-O)*x,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},de)),ce.map(de=>{const Se=H?.itemId===de.id&&H?.isBreak;return U.jsx("div",{style:{position:"absolute",top:(de.startMinutes-O*60)/60*x+(Se?_:0),height:de.duration/60*x,left:4,right:4,background:"repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #e8e8e8 4px, #e8e8e8 8px)",borderRadius:4,border:"1px dashed #d9d9d9",display:"flex",alignItems:"center",justifyContent:"center",opacity:Se?.5:.8,cursor:"grab",transition:Se?"none":"opacity 0.2s"},onMouseDown:Me=>I(Me,de.id,"result",de.startMinutes,!0,de.duration),children:U.jsx(Vn,{type:"secondary",style:{fontSize:10},children:"休憩"})},de.id)}),ne.map(de=>xe(de,!0)),U.jsx(iee,{dragState:H,dragOffset:_,isDraggingToResult:j,planItems:b,getProjectColor:D,startHour:O,hourHeight:x})]})]})]}),U.jsx(io,{title:U.jsxs(fn,{children:[U.jsx(WR,{}),U.jsx("span",{children:"プロジェクト別稼働時間"}),U.jsx(ur,{children:e.format("MM/DD (ddd)")})]}),open:c,onCancel:()=>d(!1),footer:null,width:600,children:U.jsxs("div",{style:{padding:"16px 0"},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:24,padding:"12px 16px",background:"#fafafa",borderRadius:8},children:[U.jsxs("div",{style:{textAlign:"center"},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"計画"}),U.jsx("div",{children:U.jsx(Vn,{strong:!0,style:{fontSize:20,color:"#1890ff"},children:ki(he)})})]}),U.jsxs("div",{style:{textAlign:"center"},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"実績"}),U.jsx("div",{children:U.jsx(Vn,{strong:!0,style:{fontSize:20,color:"#52c41a"},children:ki(ge)})})]}),U.jsxs("div",{style:{textAlign:"center"},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"差分"}),U.jsx("div",{children:U.jsxs(Vn,{strong:!0,style:{fontSize:20,color:ge>=he?"#52c41a":"#ff4d4f"},children:[ge>=he?"+":"-",ki(Math.abs(ge-he))]})})]})]}),be.length>0?U.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:be.map(de=>{const Se=Math.max(...be.map(Ie=>Math.max(Ie.planMinutes,Ie.resultMinutes)),60),Me=de.planMinutes/Se*100,Ae=de.resultMinutes/Se*100;return U.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[U.jsx("div",{style:{width:12,height:12,borderRadius:2,background:de.color,flexShrink:0}}),U.jsxs(Vn,{strong:!0,style:{fontSize:13},children:["[",de.project,"] ",de.projectName]})]}),U.jsxs("div",{style:{marginLeft:20},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:2},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:11,width:32},children:"計画"}),U.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:U.jsx("div",{style:{width:`${Me}%`,height:"100%",background:`linear-gradient(90deg, ${de.color}88, ${de.color}cc)`,transition:"width 0.3s ease"}})}),U.jsx(Vn,{style:{fontSize:12,width:50,textAlign:"right",color:"#1890ff"},children:ki(de.planMinutes)})]}),U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:11,width:32},children:"実績"}),U.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:U.jsx("div",{style:{width:`${Ae}%`,height:"100%",background:de.color,transition:"width 0.3s ease"}})}),U.jsx(Vn,{style:{fontSize:12,width:50,textAlign:"right",color:"#52c41a"},children:ki(de.resultMinutes)})]})]})]},de.project)})}):U.jsx("div",{style:{textAlign:"center",padding:40},children:U.jsx(Vn,{type:"secondary",children:"データがありません"})})]})})]})},hee=({status:e,onClick:t})=>{const n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,cursor:"pointer",flexShrink:0},r={display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:2};switch(e){case"completed":return U.jsx("span",{style:n,onClick:t,children:U.jsx(ZZ,{style:{fontSize:18,color:"#52c41a"}})});case"in_progress":return U.jsx("span",{style:n,onClick:t,children:U.jsx("span",{style:{...r,border:"2px solid #1890ff"},children:U.jsx(UZ,{style:{fontSize:8,color:"#1890ff"}})})});case"on_hold":return U.jsx("span",{style:n,onClick:t,children:U.jsx("span",{style:{...r,border:"2px solid #faad14"},children:U.jsx(IJ,{style:{fontSize:8,color:"#faad14"}})})});default:return U.jsx("span",{style:n,onClick:t,children:U.jsx(WZ,{style:{fontSize:18,color:"#d9d9d9"}})})}},{Text:n4}=zr,{TextArea:yee}=Pr,bee=({todo:e,isHovered:t,isEditing:n,editText:r,editDeadline:a,editPriority:s,projects:c,onHover:d,onStatusChange:f,onSaveEdit:m,onCancelEdit:g,onEditTextChange:h,onEditDeadlineChange:y,onEditPriorityChange:v,onMenuAction:b})=>{const $=_3(e.deadline),C=mee(e.deadline),x=E=>E==="high"?U.jsx(ur,{color:"red",style:{margin:0,fontSize:10},children:"高"}):E==="medium"?U.jsx(ur,{color:"orange",style:{margin:0,fontSize:10},children:"中"}):null,w={items:[{key:"edit",label:"編集",icon:U.jsx(hi,{})},{key:"project",label:"プロジェクト変更",children:c.filter(E=>E.active).map(E=>({key:`project:${e.id}:${E.code}`,label:U.jsxs(fn,{children:[U.jsx(gi,{color:E.color}),E.name]})}))},{type:"divider"},{key:"delete",label:"削除",icon:U.jsx(Sp,{}),danger:!0}],onClick:({key:E})=>b(E,e),onSelect:({key:E})=>b(E,e),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return n?U.jsx(Co.Item,{style:{padding:"8px 12px",borderRadius:6,marginBottom:6,border:"1px solid #1890ff",background:"#e6f7ff"},children:U.jsxs("div",{style:{width:"100%"},children:[U.jsx(yee,{value:r,onChange:E=>h(E.target.value),autoSize:{minRows:2,maxRows:8},style:{marginBottom:8,fontSize:12},placeholder:`1行目: タスク名
|
|
386
|
+
2行目以降: 詳細説明(任意)`}),U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8},children:[U.jsxs(fn,{size:"small",children:[U.jsx(yl,{size:"small",placeholder:"期日",value:a?bn(a):null,onChange:E=>y(E?E.format("YYYY-MM-DD"):void 0),style:{width:120},format:"MM/DD"}),U.jsx(Fr,{size:"small",placeholder:"優先度",value:s,onChange:E=>v(E),allowClear:!0,style:{width:80},options:[{value:"high",label:U.jsx(ur,{color:"red",style:{margin:0},children:"高"})},{value:"medium",label:U.jsx(ur,{color:"orange",style:{margin:0},children:"中"})},{value:"low",label:U.jsx(ur,{color:"blue",style:{margin:0},children:"低"})}]})]}),U.jsxs(fn,{size:"small",children:[U.jsx(Bt,{size:"small",icon:U.jsx(Yr,{}),onClick:g,children:"キャンセル"}),U.jsx(Bt,{size:"small",type:"primary",icon:U.jsx(pl,{}),onClick:m,children:"OK"})]})]})]})}):U.jsx(Co.Item,{onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),style:{padding:"8px 12px",background:e.status==="completed"?"#fafafa":$?"#fff2f0":"transparent",opacity:e.status==="completed"?.6:1,borderRadius:6,marginBottom:6,border:$&&e.status!=="completed"?"1px solid #ffccc7":"1px solid #f0f0f0"},children:U.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},children:[U.jsx(hee,{status:e.status,onClick:()=>f(e.id)}),U.jsxs("div",{style:{flex:1,minWidth:0},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[U.jsx(n4,{delete:e.status==="completed",style:{fontWeight:500,fontSize:13},children:e.task}),x(e.priority),$&&e.status!=="completed"&&U.jsxs(ur,{color:"error",style:{margin:0,fontSize:10},children:[U.jsx(z3,{})," 期限切れ"]})]}),e.description&&U.jsx("div",{style:{marginTop:4,paddingLeft:4},children:U.jsx(n4,{type:"secondary",style:{fontSize:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})}),e.deadline&&U.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:4},children:U.jsx(fr,{title:`期限: ${e.deadline}`,children:U.jsxs(ur,{color:$?"error":C?"warning":"default",style:{margin:0,fontSize:10},children:[U.jsx(Td,{style:{marginRight:2}}),bn(e.deadline).format("MM/DD")]})})})]}),U.jsx(fn,{size:4,style:{visibility:t?"visible":"hidden",flexShrink:0},children:U.jsx(E1,{menu:w,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:U.jsx(I3,{style:{fontSize:16,color:"#666",cursor:"pointer",padding:"0 4px"},onClick:E=>E.stopPropagation()})})})]})})},vee=({filter:e,counts:t,onFilterChange:n})=>{const r=[{key:"all",icon:U.jsx(xJ,{}),label:"全て",count:t.all,color:"#666"},{key:"pending",icon:U.jsx(Td,{}),label:"未着手",count:t.pending,color:"#999"},{key:"in_progress",icon:U.jsx(P3,{}),label:"進行中",count:t.in_progress,color:"#1890ff"},{key:"completed",icon:U.jsx(A1,{}),label:"完了",count:t.completed,color:"#52c41a"},{key:"on_hold",icon:U.jsx(TJ,{}),label:"保留",count:t.on_hold,color:"#faad14"}];return U.jsx("div",{style:{display:"flex",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0},children:r.map(a=>U.jsxs("div",{onClick:()=>n(a.key),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"10px 4px",cursor:"pointer",background:e===a.key?"#fff":"transparent",borderBottom:e===a.key?`2px solid ${a.color}`:"2px solid transparent",transition:"all 0.2s"},children:[U.jsx("span",{style:{fontSize:14,color:e===a.key?a.color:"#999"},children:a.icon}),U.jsx("span",{style:{fontSize:11,color:e===a.key?a.color:"#999",fontWeight:e===a.key?600:400},children:a.label}),U.jsx(gi,{count:a.count,size:"small",style:{backgroundColor:e===a.key?a.color:"#d9d9d9",fontSize:10}})]},a.key))})},{Text:Kc}=zr,{TextArea:r4}=Pr,See=({selectedProjects:e=[]})=>{const{report:t,config:n}=bl(),[r,a]=l.useState("all"),[s,c]=l.useState(!1),[d,f]=l.useState(null),[m,g]=l.useState(null),[h,y]=l.useState(""),[v,b]=l.useState(void 0),[$,C]=l.useState(void 0),x=t.report,R=x?.todos||[],w=n.projects,[E,T]=l.useState(x?.notes||""),[N,O]=l.useState("");l.useEffect(()=>{x&&(T(x.notes||""),O(e4(x.todos,x.notes||"")))},[x]),l.useEffect(()=>{x&&E!==x.notes&&t.updateNotes(E)},[E]);const P=X=>n.getProjectColor(X),B=X=>n.getProjectName(X),L=e.length>0?R.filter(X=>e.includes(X.project)):R,V=L.filter(X=>!(r!=="all"&&X.status!==r)),G=V.filter(X=>X.deadline&&_3(X.deadline)&&X.status!=="completed"),Y=V.reduce((X,Q)=>{const Z=Q.project;return X[Z]||(X[Z]=[]),X[Z].push(Q),X},{}),q=X=>{t.toggleTodoStatus(X)},H=(X,Q)=>{t.updateTodo(X,{project:Q}),wn.success(`プロジェクトを ${Q} に変更しました`)},_=X=>{t.deleteTodo(X),wn.success("TODOを削除しました")},j=X=>{g(X.id);const Q=X.description?`${X.task}
|
|
387
|
+
${X.description}`:X.task;y(Q),b(X.deadline),C(X.priority)},I=()=>{if(m){const X=h.split(`
|
|
388
|
+
`),Q=X[0].trim(),Z=X.slice(1).join(`
|
|
389
|
+
`).trim()||void 0;t.updateTodo(m,{task:Q,description:Z,deadline:v,priority:$}),wn.success("更新しました"),g(null),y(""),b(void 0),C(void 0)}},D=()=>{g(null),y(""),b(void 0),C(void 0)},F=l.useCallback((X,Q)=>{if(X==="edit")j(Q);else if(X.startsWith("project:")){const Z=X.split(":"),J=Z[1],oe=Z[2];H(J,oe)}else X==="delete"&&_(Q.id)},[H]),A={all:L.length,pending:L.filter(X=>X.status==="pending").length,in_progress:L.filter(X=>X.status==="in_progress").length,completed:L.filter(X=>X.status==="completed").length,on_hold:L.filter(X=>X.status==="on_hold").length},z=()=>{!s&&x&&O(e4(x.todos,x.notes||"")),c(!s)},k=()=>{const{todos:X,notes:Q}=fee(N);t.updateTodos(X),t.updateNotes(Q),T(Q),wn.success("反映しました"),c(!1)};return U.jsx(Ma,{title:U.jsxs(fn,{children:[U.jsx(N3,{}),U.jsx("span",{children:"TODO"}),U.jsx(gi,{count:A.pending+A.in_progress,style:{backgroundColor:"#1890ff"}}),G.length>0&&U.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,marginLeft:8,padding:"2px 8px",backgroundColor:"#fff7e6",border:"1px solid #ffd591",borderRadius:4,fontSize:11,color:"#d46b08"},children:[U.jsx(z3,{}),U.jsxs("span",{children:[G.length,"件期限切れ"]})]})]}),extra:s?U.jsxs(fn,{children:[U.jsx(Bt,{size:"small",icon:U.jsx(Yr,{}),onClick:()=>c(!1),children:"キャンセル"}),U.jsx(Bt,{type:"primary",size:"small",icon:U.jsx(pl,{}),onClick:k,children:"OK"})]}):U.jsx(Bt,{type:"primary",size:"small",icon:U.jsx(hi,{}),onClick:z,children:"編集"}),style:{height:"100%"},styles:{body:{padding:0,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:s?U.jsxs("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column"},children:[U.jsx(Kc,{type:"secondary",style:{marginBottom:8,fontSize:11},children:"TODO: - [ ] タスク名 @期日 !優先度 / NOTE: ## [NOTE] 以降に自由記述"}),U.jsx(r4,{value:N,onChange:X=>O(X.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}):U.jsxs(U.Fragment,{children:[U.jsx(vee,{filter:r,counts:A,onFilterChange:a}),U.jsxs("div",{style:{flex:1,overflow:"auto",padding:"12px 12px 12px 12px"},children:[Object.entries(Y).map(([X,Q])=>U.jsxs("div",{style:{marginBottom:16},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 10px",background:"#f5f5f5",borderRadius:6},children:[U.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:P(X),flexShrink:0}}),U.jsxs(Kc,{type:"secondary",style:{fontSize:10},children:["[",X,"]"]}),U.jsx(Kc,{strong:!0,style:{fontSize:12},children:B(X)}),U.jsxs(Kc,{type:"secondary",style:{fontSize:11},children:["(",Q.length,")"]})]}),U.jsx(Co,{dataSource:Q,renderItem:Z=>U.jsx(bee,{todo:Z,isHovered:d===Z.id,isEditing:m===Z.id,editText:h,editDeadline:v,editPriority:$,projects:w,getProjectColor:P,onHover:f,onStatusChange:q,onStartEdit:j,onSaveEdit:I,onCancelEdit:D,onEditTextChange:y,onEditDeadlineChange:b,onEditPriorityChange:C,onMenuAction:F},Z.id),size:"small",split:!1})]},X)),U.jsx(si,{style:{margin:"16px 0 12px 0"}}),U.jsxs("div",{style:{marginBottom:12},children:[U.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:8},children:U.jsxs(fn,{children:[U.jsx(hp,{style:{color:"#666"}}),U.jsx(Kc,{strong:!0,style:{fontSize:12},children:"NOTE"})]})}),U.jsx(r4,{value:E,onChange:X=>T(X.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"メモを入力...",style:{fontSize:12}})]})]})]})})},{Text:bm}=zr,Cee=({selectedProjects:e=[],onToggleProject:t})=>{const{config:n,report:r}=bl(),a=n.projects,s=l.useMemo(()=>{const f=r.report?.todos||[];return a.filter(m=>m.active).map(m=>{const h=f.filter(y=>y.project===m.code).filter(y=>y.status!=="completed").length;return{...m,pendingTodos:h}})},[a,r.report?.todos]),c=l.useMemo(()=>s.reduce((f,m)=>(f[m.category]||(f[m.category]=[]),f[m.category].push(m),f),{}),[s]),d=f=>{t&&t(f)};return U.jsx(Ma,{title:U.jsxs(fn,{children:[U.jsx(jJ,{}),U.jsx("span",{children:"プロジェクト"})]}),extra:U.jsx(Bt,{type:"text",size:"small",icon:U.jsx(UJ,{})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Object.entries(c).map(([f,m])=>U.jsxs("div",{style:{marginBottom:12},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6,padding:"4px 8px",background:"#f5f5f5",borderRadius:4},children:[U.jsx(bm,{strong:!0,style:{fontSize:11},children:f}),U.jsxs(bm,{type:"secondary",style:{fontSize:10,marginLeft:6},children:["(",m.length,")"]})]}),U.jsx(Co,{dataSource:m,renderItem:g=>{const h=e.includes(g.code);return U.jsx(Co.Item,{onClick:()=>d(g.code),style:{padding:"8px 10px",marginBottom:4,borderRadius:6,border:h?`2px solid ${g.color}`:"1px solid #f0f0f0",cursor:"pointer",background:h?`${g.color}10`:"#fff",transition:"all 0.2s"},children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:g.color,flexShrink:0}}),U.jsxs("div",{style:{flex:1,minWidth:0},children:[U.jsxs(bm,{type:"secondary",style:{fontSize:10,marginRight:4},children:["[",g.code,"]"]}),U.jsx(bm,{strong:!0,style:{fontSize:12},children:g.name})]}),g.pendingTodos>0&&U.jsx(gi,{count:g.pendingTodos,size:"small",style:{backgroundColor:"#999"}})]})})},size:"small",split:!1})]},f))})},{TextArea:$ee}=Pr,{Text:us}=zr,xee=({onApplyRoutine:e})=>{const{config:t}=bl(),{loadConfig:n}=t,[r,a]=l.useState(new Set),[s,c]=l.useState(!1),[d,f]=l.useState(""),[m,g]=l.useState(!1),[h,y]=l.useState(!1),v=t.routines?.weekly||{},b=t.routines?.adhoc||[],$=t.routines?.monthly||{},C=t.routines?.quarterly||[],x=t.routines?.yearly||[],R=l.useCallback(async()=>{y(!0);try{const I=await Cp.getRoutinesMarkdown({});f(I.content),c(!0)}catch(I){console.error("Failed to load routines markdown:",I),wn.error("ルーチン設定の読み込みに失敗しました")}finally{y(!1)}},[]),w=l.useCallback(async()=>{g(!0);try{await Cp.saveRoutinesMarkdown({data:{content:d}}),wn.success("ルーチン設定を保存しました"),c(!1),await n()}catch(I){console.error("Failed to save routines markdown:",I),wn.error("ルーチン設定の保存に失敗しました")}finally{g(!1)}},[d,n]),E=l.useCallback(()=>{c(!1),f("")},[]),T=I=>t.getProjectColor(I),N=[{key:"monday",label:"月"},{key:"tuesday",label:"火"},{key:"wednesday",label:"水"},{key:"thursday",label:"木"},{key:"friday",label:"金"},{key:"saturday",label:"土"},{key:"sunday",label:"日"},{key:"adhoc",label:"随時"},{key:"monthly",label:"月次"},{key:"quarterly",label:"四半期"},{key:"yearly",label:"年次"}],O=bn().day(),P=O===0?"sunday":N[O-1].key,B=l.useMemo(()=>{const I=[];return $.schedule&&$.schedule.forEach(D=>{I.push({time:D.time,project:D.project,task:D.task,category:"plan"})}),$.start_of_month&&$.start_of_month.forEach(D=>{I.push({project:D.project,task:`[月初] ${D.task}`,category:D.category||"todo"})}),$.end_of_month&&$.end_of_month.forEach(D=>{I.push({project:D.project,task:`[月末] ${D.task}`,category:D.category||"todo"})}),I},[$]),L=l.useMemo(()=>{const I=[];return C.forEach(D=>{if(D.schedule&&D.schedule.forEach(F=>{I.push({time:F.time,project:F.project,task:F.task,category:"plan"})}),D.months.length>0){const F=D.months.join(",")+"月";D.tasks.forEach(A=>{I.push({project:A.project,task:`[${F}] ${A.task}`,category:A.category||"todo"})})}}),I},[C]),V=l.useMemo(()=>x.map(I=>I.time&&I.month===0&&I.day===0?{time:I.time,project:I.project,task:I.task,category:"plan"}:{project:I.project,task:I.task,category:"todo"}),[x]),G=(I,D)=>{const F=`${I}:${D}`;a(A=>{const z=new Set(A);return z.has(F)?z.delete(F):z.add(F),z})},Y=(I,D)=>{const F=D.map((z,k)=>`${I}:${k}`),A=F.every(z=>r.has(z));a(z=>{const k=new Set(z);return A?F.forEach(X=>k.delete(X)):F.forEach(X=>k.add(X)),k})},q=()=>{if(r.size===0){wn.info("追加するルーチンを選択してください");return}const I=[];if(r.forEach(D=>{const[F,A]=D.split(":"),z=parseInt(A,10);let k;if(F==="adhoc"?k=b[z]:F==="monthly"?k=B[z]:F==="quarterly"?k=L[z]:F==="yearly"?k=V[z]:k=v[F]?.[z],k){const X=k.time&&k.time!=="",Q=k.category||(X?"plan":"todo");I.push({time:k.time,project:k.project,task:k.task,duration:k.duration,category:Q})}}),I.length>0&&e){e(I),a(new Set);const D=I.filter(z=>z.category==="plan").length,F=I.filter(z=>z.category==="todo").length,A=[];D>0&&A.push(`PLAN: ${D}件`),F>0&&A.push(`TODO: ${F}件`),wn.success(`ルーチンを追加しました(${A.join("、")})`)}},H=(I,D)=>{const F=D.map((k,X)=>`${I}:${X}`),A=F.length>0&&F.every(k=>r.has(k)),z=F.some(k=>r.has(k));return U.jsxs("div",{children:[D.length>0&&U.jsx("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:U.jsx(zs,{checked:A,indeterminate:z&&!A,onChange:()=>Y(I,D),children:U.jsx(us,{type:"secondary",style:{fontSize:11},children:"すべて選択"})})}),D.length===0?U.jsx("div",{style:{textAlign:"center",padding:16},children:U.jsx(us,{type:"secondary",children:"ルーチンが登録されていません"})}):U.jsx(Co,{dataSource:D,renderItem:(k,X)=>{const Q=`${I}:${X}`,Z=r.has(Q),J=k.time&&k.time!=="",oe=k.category==="todo"||!J;return U.jsx(Co.Item,{style:{padding:"6px 8px",marginBottom:4,borderRadius:4,borderLeft:`3px solid ${T(k.project)}`,background:Z?"#e6f7ff":"#fafafa",cursor:"pointer",transition:"background 0.2s"},onClick:()=>G(I,String(X)),children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx(zs,{checked:Z,onClick:ne=>ne.stopPropagation(),onChange:()=>G(I,String(X))}),oe?U.jsxs(us,{style:{fontSize:11,color:"#52c41a",minWidth:40},children:[U.jsx(N3,{style:{marginRight:2}}),"TODO"]}):U.jsxs(us,{style:{fontSize:11,color:"#1890ff",minWidth:40,fontWeight:500},children:[U.jsx(Td,{style:{marginRight:2}}),k.time]}),U.jsx(ur,{color:T(k.project),style:{margin:0,fontSize:10},children:k.project}),U.jsx(us,{ellipsis:!0,style:{flex:1,fontSize:12},children:k.task}),k.duration&&k.duration>0&&U.jsx(us,{type:"secondary",style:{fontSize:10},children:_(k.duration)})]})})},size:"small",split:!1})]})},_=I=>{if(!I||isNaN(I))return"";const D=Math.floor(I/60),F=I%60;return D===0?`${F}分`:F===0?`${D}時間`:`${D}時間${F}分`},j=l.useMemo(()=>N.map(I=>{let D;I.key==="adhoc"?D=b:I.key==="monthly"?D=B:I.key==="quarterly"?D=L:I.key==="yearly"?D=V:D=v[I.key]||[];const F=I.key===P,A=D.filter((z,k)=>r.has(`${I.key}:${k}`)).length;return{key:I.key,label:U.jsxs(fn,{size:4,children:[U.jsx("span",{children:I.label}),F&&U.jsx(gi,{status:"processing"}),A>0&&U.jsx(gi,{count:A,size:"small",style:{backgroundColor:"#1890ff"}})]}),children:H(I.key,D)}}),[v,b,B,L,V,r,P]);return s?U.jsx(Ma,{title:U.jsxs(fn,{children:[U.jsx(hi,{}),U.jsx("span",{children:"ルーチン編集"})]}),extra:U.jsxs(fn,{children:[U.jsx(Bt,{size:"small",icon:U.jsx(Yr,{}),onClick:E,disabled:m,children:"キャンセル"}),U.jsx(Bt,{type:"primary",size:"small",icon:U.jsx(D1,{}),onClick:w,loading:m,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",display:"flex",flexDirection:"column"}},children:U.jsx($ee,{value:d,onChange:I=>f(I.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12,resize:"none"},placeholder:`## [ROUTINES]
|
|
390
|
+
|
|
391
|
+
### [Mon]
|
|
392
|
+
* 08:00 [P99] タスク確認
|
|
393
|
+
|
|
394
|
+
### [month]
|
|
395
|
+
- [ ] [P99] 月末タスク`})}):U.jsx(Ma,{title:U.jsxs(fn,{children:[U.jsx(w3,{}),U.jsx("span",{children:"ルーチン"})]}),extra:U.jsxs(fn,{children:[U.jsxs(Bt,{type:"primary",size:"small",icon:U.jsx(fp,{}),disabled:r.size===0,onClick:q,children:["追加 ",r.size>0&&`(${r.size})`]}),U.jsx(Bt,{size:"small",icon:U.jsx(hi,{}),onClick:R,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:U.jsx(x1,{defaultActiveKey:P,size:"small",items:j})})},{Text:hb}=zr,{TextArea:o4}=Pr,wee=()=>{const e=[];for(let t=6;t<=23;t++)for(let n=0;n<60;n+=15){const r=`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`;e.push({value:r,label:r})}return e},Eee=wee(),Mee=({selectedDate:e})=>{const{report:t,config:n}=bl(),[r,a]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[m,g]=l.useState([]),[h,y]=l.useState("");l.useEffect(()=>{t.report&&(c(t.report.plan),f(t.report.result),g(t.report.todos),y(t.report.notes||""))},[t.report]);const v=n.projects,b=n.routines?.weekly,$=()=>pee({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:m,notes:h,author:t.report?.author||"名前"},e.format("YYYY-MM-DD"),t.report?.author||"名前"),[C,x]=l.useState($()),R=v.filter(I=>I.active).map(I=>({value:I.code,label:U.jsxs(fn,{children:[U.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),w=()=>{if(!b)return[];const D=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[D]||[]},E=I=>{const D={id:`${I}-${Date.now()}`,time:bn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,D]):f([...d,D])},T=(I,D)=>{I==="plan"?c(s.filter(F=>F.id!==D)):f(d.filter(F=>F.id!==D))},N=(I,D,F,A)=>{const z=k=>k.map(X=>X.id===D?{...X,[F]:A}:X);I==="plan"?c(z(s)):f(z(d))},O=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...m,I])},P=(I,D,F)=>{g(m.map(A=>A.id===I?{...A,[D]:F}:A))},B=I=>{g(m.filter(D=>D.id!==I))},L=()=>{wn.success("保存しました")},V=()=>{const I=w(),D=I.map((F,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:F.time||"09:00",project:F.project,task:F.task,duration:F.duration}));c([...s,...D]),wn.success(`${I.length}件のルーチンを計画に追加しました`)},G=()=>{const D=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((F,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:F.time,project:F.project,task:F.task}));c([...s,...D]),wn.success("Googleカレンダーから計画を取り込みました")},Y=()=>{const I=s.map((D,F)=>({...D,id:`result-copy-${Date.now()}-${F}`}));f(I),wn.success("計画を実績にコピーしました")},q=(I,D)=>U.jsxs("div",{style:{marginBottom:16},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[U.jsx(hb,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),U.jsxs(fn,{children:[I==="plan"&&U.jsxs(U.Fragment,{children:[U.jsx(fr,{title:"ルーチンから取り込み",children:U.jsx(Bt,{size:"small",icon:U.jsx(w3,{}),onClick:V,children:"ルーチン"})}),U.jsx(fr,{title:"Googleカレンダーから取り込み",children:U.jsx(Bt,{size:"small",icon:U.jsx(yJ,{}),onClick:G,children:"GCal"})})]}),I==="result"&&U.jsx(fr,{title:"計画を実績にコピー",children:U.jsx(Bt,{size:"small",type:"primary",ghost:!0,icon:U.jsx(O3,{}),onClick:Y,children:"計画をコピー"})}),U.jsx(Bt,{size:"small",type:"primary",icon:U.jsx(fp,{}),onClick:()=>E(I),children:"追加"})]})]}),I==="result"&&U.jsx(CT,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),U.jsx(Co,{dataSource:D,renderItem:F=>U.jsx(Co.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:U.jsxs("div",{style:{width:"100%"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx(sJ,{style:{color:"#999",cursor:"grab"}}),U.jsx(Fr,{value:F.time,options:Eee,size:"small",style:{width:90},showSearch:!0,filterOption:(A,z)=>(z?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>N(I,F.id,"time",A),placeholder:"時刻"}),U.jsx(Fr,{value:F.project,options:R,size:"small",style:{width:150},onChange:A=>N(I,F.id,"project",A)}),U.jsx(Pr,{value:F.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>N(I,F.id,"task",A.target.value)}),U.jsx(B0,{title:"削除しますか?",onConfirm:()=>T(I,F.id),children:U.jsx(Bt,{type:"text",size:"small",danger:!0,icon:U.jsx(Sp,{})})})]}),U.jsx(Pr.TextArea,{value:F.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>N(I,F.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),H=()=>U.jsxs("div",{style:{marginBottom:16},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[U.jsx(hb,{strong:!0,style:{fontSize:14},children:"[TODO]"}),U.jsx(Bt,{size:"small",type:"primary",icon:U.jsx(fp,{}),onClick:O,children:"追加"})]}),U.jsx(Co,{dataSource:m,renderItem:I=>U.jsx(Co.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx(Fr,{value:I.status,size:"small",style:{width:110},onChange:D=>P(I.id,"status",D),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),U.jsx(Fr,{value:I.project,options:R,size:"small",style:{width:150},onChange:D=>P(I.id,"project",D)}),U.jsx(Pr,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:D=>P(I.id,"task",D.target.value)}),U.jsx(Pr,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:D=>P(I.id,"deadline",D.target.value)}),U.jsx(B0,{title:"削除しますか?",onConfirm:()=>B(I.id),children:U.jsx(Bt,{type:"text",size:"small",danger:!0,icon:U.jsx(Sp,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>U.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[q("plan",s),U.jsx(si,{style:{margin:"16px 0"}}),q("result",d),U.jsx(si,{style:{margin:"16px 0"}}),H(),U.jsx(si,{style:{margin:"16px 0"}}),U.jsxs("div",{children:[U.jsx(hb,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),U.jsx(o4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),j=()=>U.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:U.jsx("div",{style:{flex:1,overflow:"hidden"},children:U.jsx(o4,{value:C,onChange:I=>x(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return U.jsx(Ma,{title:U.jsxs(fn,{children:[U.jsx(hi,{}),U.jsx("span",{children:"日報編集"}),U.jsx(ur,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:U.jsxs(fn,{children:[U.jsx(mG,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:U.jsx(hi,{})},{label:"テキスト",value:"text",icon:U.jsx(hp,{})}],value:r,onChange:I=>{I==="text"&&x($()),a(I)}}),U.jsx(si,{type:"vertical"}),U.jsx(fr,{title:"元に戻す (Ctrl+Z)",children:U.jsx(Bt,{type:"text",size:"small",icon:U.jsx(KJ,{})})}),U.jsx(fr,{title:"やり直し (Ctrl+Shift+Z)",children:U.jsx(Bt,{type:"text",size:"small",icon:U.jsx(BJ,{})})}),U.jsx(si,{type:"vertical"}),U.jsx(Bt,{type:"primary",icon:U.jsx(D1,{}),onClick:L,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():j()})};function Ree(e){const[t,n]=l.useState(e||bn().format("YYYY-MM-DD")),[r,a]=l.useState(null),[s,c]=l.useState(null),[d,f]=l.useState(!1),[m,g]=l.useState(!1),[h,y]=l.useState(null),[v,b]=l.useState(!1),$=l.useCallback(async j=>{f(!0),y(null),n(j);try{let I;try{I=await fs.getReport({date:j})}catch(D){if(D instanceof D3&&D.status===404)I=null;else throw D}if(I)c(I.stats),a(vm(j,I.content));else{const D=H3(j),F=bn(j).subtract(1,"day").format("YYYY-MM-DD");try{const A=await fs.getReport({date:F});if(A){const k=vm(F,A.content).todos.filter(X=>X.status!=="completed");D.todos=k.map((X,Q)=>({...X,id:`carryover-${Date.now()}-${Q}`}))}}catch{}a(D),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),C=l.useCallback(async j=>{if(!r)return!1;g(!0),y(null);try{const I=a4(r),D=await fs.saveReport({date:t,data:{content:I,git:j?.git,slack:j?.slack}});if(D.saved){c(D.stats),b(!1);const F=await fs.getReport({date:t});return F&&(a(vm(t,F.content)),c(F.stats)),!0}return!1}catch(I){return y(I instanceof Error?I.message:"保存に失敗しました"),!1}finally{g(!1)}},[r,t]),x=l.useCallback(async()=>{try{return await fs.deleteReport({date:t}),a(null),c(null),b(!1),!0}catch(j){return y(j instanceof Error?j.message:"削除に失敗しました"),!1}},[t]),R=l.useCallback(j=>{a(I=>I?{...I,plan:j}:null),b(!0)},[]),w=l.useCallback(j=>{a(I=>I?{...I,result:j}:null),b(!0)},[]),E=l.useCallback(j=>{a(I=>I?{...I,todos:j}:null),b(!0)},[]),T=l.useCallback(j=>{a(I=>I?{...I,notes:j}:null),b(!0)},[]),N=l.useCallback(j=>{const I=vm(t,j);a(I),b(!0)},[t]),O=l.useCallback(j=>{a(I=>{if(!I)return null;const D={...j,id:`t${Date.now()}-${Math.random().toString(36).substring(2,9)}`};return{...I,todos:[...I.todos,D]}}),b(!0)},[]),P=l.useCallback((j,I)=>{a(D=>D?{...D,todos:D.todos.map(F=>F.id===j?{...F,...I}:F)}:null),b(!0)},[]),B=l.useCallback(j=>{a(I=>I?{...I,todos:I.todos.filter(D=>D.id!==j)}:null),b(!0)},[]),L=l.useCallback(j=>{a(I=>I?{...I,todos:I.todos.map(D=>D.id!==j?D:{...D,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[D.status]||"pending"})}:null),b(!0)},[]),V=l.useCallback((j,I)=>{a(D=>{if(!D)return null;const F={...I,id:`${j[0]}${Date.now()}-${Math.random().toString(36).substring(2,9)}`},A=[...D[j],F].sort((z,k)=>z.time.localeCompare(k.time));return{...D,[j]:A}}),b(!0)},[]),G=l.useCallback((j,I,D)=>{a(F=>{if(!F)return null;const A=F[j].map(z=>z.id===I?{...z,...D}:z);return A.sort((z,k)=>z.time.localeCompare(k.time)),{...F,[j]:A}}),b(!0)},[]),Y=l.useCallback((j,I)=>{a(D=>D?{...D,[j]:D[j].filter(F=>F.id!==I)}:null),b(!0)},[]),q=l.useCallback(j=>{a(I=>{if(!I)return null;const D=j.map((A,z)=>({...A,id:`p${Date.now()}-${z}`})),F=[...I.plan,...D].sort((A,z)=>A.time.localeCompare(z.time));return{...I,plan:F}}),b(!0)},[]),H=l.useCallback(()=>{a(j=>{if(!j)return null;const I=j.plan.map((D,F)=>({...D,id:`r${Date.now()}-${F}`}));return{...j,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&$(e)},[e,$]);const _=l.useMemo(()=>r?a4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:m,error:h,isDirty:v,loadReport:$,saveReport:C,deleteReport:x,updatePlan:R,updateResult:w,updateTodos:E,updateNotes:T,updateMarkdown:N,addTodo:O,updateTodo:P,deleteTodo:B,toggleTodoStatus:L,addScheduleItem:V,updateScheduleItem:G,deleteScheduleItem:Y,applyRoutine:q,copyPlanToResult:H}}function H3(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function vm(e,t){const n=H3(e),r=t.split(`
|
|
396
|
+
`);let a="",s="P99";const c=[],d=r[0]?.match(/^#\s+\[日報\]\s+(.+?)\s+(\d{4}-\d{2}-\d{2})/);d&&(n.author=d[1]);for(let f=0;f<r.length;f++){const m=r[f];if(m.match(/^##\s+\[PLAN\]/i)){a="plan";continue}if(m.match(/^##\s+\[RESULT\]/i)){a="result";continue}if(m.match(/^##\s+\[TODO\]/i)){a="todo";continue}if(m.match(/^##\s+\[NOTE\]/i)){a="note";continue}if(a==="todo"&&m.match(/^###\s+(.+)$/)){const g=m.match(/^###\s+(.+)$/);g&&(s=g[1].trim());continue}if((a==="plan"||a==="result")&&m.startsWith("*")){const g=m.match(/^\*\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s+(.+)$/);if(g){const y={id:`${a[0]}${f}`,time:g[1],project:g[2],task:g[3]};a==="plan"?n.plan.push(y):n.result.push(y);continue}const h=m.match(/^\*\s+(\d{2}:\d{2})\s*$/);if(h){const y={id:`break${a[0]}${f}`,time:h[1],project:"",task:""};a==="plan"?n.plan.push(y):n.result.push(y)}}if(a==="todo"&&m.startsWith("-")){const g=m.match(/^-\s+\[([xX\s*\->])\]\s+(.+)$/);if(g){const h=g[1];let y=g[2],v=s,b,$;const C=y.match(/^\[([^\]]+)\]\s*/);C&&(v=C[1],y=y.substring(C[0].length));const x=y.match(/^(!!!|!!|!)\s*/);if(x){const E=x[1];$=E==="!!!"?"high":E==="!!"?"medium":"low",y=y.substring(x[0].length)}const R=y.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(R)b=R[1],y=y.substring(0,y.length-R[0].length);else{const E=y.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);E&&(b=E[1],y=y.substring(E[0].length))}b&&b.length===5&&(b=`${new Date().getFullYear()}-${b}`);const w={id:`t${f}`,status:Tee(h),project:v,task:y.trim(),deadline:b,priority:$};n.todos.push(w);continue}}if(a==="todo"&&m.match(/^\s{2,}/)&&n.todos.length>0){const g=n.todos[n.todos.length-1],h=m.trim();g.description?g.description+=`
|
|
397
|
+
`+h:g.description=h;continue}a==="note"&&!m.startsWith("##")&&c.push(m)}return n.notes=c.join(`
|
|
398
|
+
`).trim(),n}function a4(e){const t=[];return t.push(`# [日報] ${e.author||"名前"} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...$S(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...$S(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...j3(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
|
|
399
|
+
`)}function Tee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function Oee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[a,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const b=await Cp.getConfig({});t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const $=await Cp.updateConfig({data:b});return t($),!0}catch($){return s($ instanceof Error?$.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(b=>e?.projects?.find($=>$.code===b),[e]),m=l.useCallback(b=>f(b)?.color||"#999",[f]),g=l.useCallback(b=>f(b)?.name||b,[f]),h=l.useCallback(()=>e?.projects?.filter(b=>b.active)||[],[e]),y=l.useCallback(b=>{if(!e?.routines?.weekly)return[];const C={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[b.day()];return e.routines.weekly[C]||[]},[e]),v=l.useCallback(b=>e?.routines?.monthly?e.routines.monthly[b]||[]:[],[e]);return l.useEffect(()=>{c()},[c]),{config:e,projects:e?.projects||[],routines:e?.routines||null,loading:n,error:a,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:m,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:v}}function Nee(e,t){const n=bn(),[r,a]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[m,g]=l.useState([]),[h,y]=l.useState(!1),[v,b]=l.useState(null),$=l.useCallback(async(O,P)=>{y(!0),b(null);try{const B=await YR.getCalendarData({year:O,month:P});f(B),a(O),c(P)}catch(B){b(B instanceof Error?B.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),C=l.useCallback(async()=>{try{const O=await YR.getAvailableYearMonths({});g(O.yearMonths)}catch(O){console.error("Failed to load available months:",O)}},[]),x=l.useCallback(()=>{const O=bn(`${r}-${s}-01`).subtract(1,"month");$(O.year(),O.month()+1)},[r,s,$]),R=l.useCallback(()=>{const O=bn(`${r}-${s}-01`).add(1,"month");$(O.year(),O.month()+1)},[r,s,$]),w=l.useCallback((O,P)=>{$(O,P)},[$]),E=l.useCallback(O=>d?.days.find(P=>P.date===O),[d]),T=l.useCallback(O=>E(O)?.hasReport||!1,[E]),N=l.useCallback(O=>{const P=E(O);return{plan:P?.planHours||0,result:P?.resultHours||0}},[E]);return l.useEffect(()=>{$(r,s),C()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:v,year:r,month:s,availableYearMonths:m,loadCalendar:$,loadAvailableMonths:C,goToPrevMonth:x,goToNextMonth:R,goToMonth:w,getDayStats:E,hasReport:T,getWorkHours:N}}function Iee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),a=l.useCallback(m=>e.has(m),[e]),s=l.useCallback((m,g,h,y)=>{if(h===y){t(v=>{const b=new Map(v);return b.delete(m),b});return}t(v=>{const b=new Map(v);return b.set(m,{date:m,report:g,originalMarkdown:h,currentMarkdown:y}),b})},[]),c=l.useCallback(m=>{t(g=>{const h=new Map(g);return h.delete(m),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(m=>e.get(m),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:a,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}bn.locale("ja");const{Content:Pee}=Na,zee=()=>{const[e,t]=l.useState(bn()),[n,r]=l.useState(!1),[a,s]=l.useState(!1),[c,d]=l.useState([]),f=Ree(e.format("YYYY-MM-DD")),m=Oee(),g=Nee(e.year(),e.month()+1),h=Iee(),y=l.useRef(h);y.current=h;const v=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const q=e.format("YYYY-MM-DD");v.current!==q&&(b.current=!0,v.current=q)},[e]),l.useEffect(()=>{if(b.current){b.current=!1;return}const q=e.format("YYYY-MM-DD");f.isDirty&&f.report&&y.current.setUnsavedReport(q,f.report,"",f.markdownContent)},[f.isDirty,f.report,f.markdownContent,e]);const[$,C]=l.useState(null),x=l.useRef(null),R=l.useRef(0),w=l.useRef(0),E=l.useCallback(async q=>{if(q){const H=q.format("YYYY-MM-DD");t(q),(q.month()!==e.month()||q.year()!==e.year())&&g.loadCalendar(q.year(),q.month()+1);const _=y.current.getUnsavedReport(H);await f.loadReport(H),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),T=l.useCallback(async q=>{const H=bn(q);t(H);const _=y.current.getUnsavedReport(q);await f.loadReport(q),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(q=>{d(H=>H.includes(q)?H.filter(_=>_!==q):[...H,q])},[]),O=l.useCallback(()=>{d([])},[]),P=c.map(q=>m.getProject(q)).filter(q=>q!==void 0),B=l.useCallback(async q=>{await f.saveReport(q)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),wn.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):wn.error("日報の保存に失敗しました")},[f,g,h,e]),L=l.useCallback(async(q,H)=>{let _=0,j=0;for(const I of q)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(H)?(_++,h.clearUnsavedReport(I)):j++;else{const D=h.getUnsavedReport(I);D&&((await fs.saveReport({date:I,data:{content:D.currentMarkdown,git:H?.git,slack:H?.slack}})).saved?(_++,h.clearUnsavedReport(I)):j++)}}catch{j++}_>0&&(wn.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),j>0&&wn.error(`${j}件の日報の保存に失敗しました`)},[f,e,h,g]),V=l.useCallback(q=>{const H=q.filter(j=>j.category==="plan"||!j.category&&j.time&&j.time!==""),_=q.filter(j=>j.category==="todo"||!j.category&&(!j.time||j.time===""));if(H.length>0){const j=H.map((I,D)=>({id:`routine-${Date.now()}-${D}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(j)}_.length>0&&_.forEach(j=>{f.addTodo({project:j.project,task:j.task,status:"pending"})}),s(!1)},[f]),G=l.useCallback(q=>{q.preventDefault();const H=x.current?.firstElementChild;if(!H||!x.current)return;R.current=q.clientX,w.current=H.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!x.current)return;const D=I.clientX-R.current,F=x.current.getBoundingClientRect().width,A=296,z=200,k=F-A-z-20;let X=w.current+D;X=Math.max(z,Math.min(k,X)),C(X)},j=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",j)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",j)},[]),Y={selectedDate:e,setSelectedDate:E,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:f,config:m,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:B,saveMultipleReports:L};return U.jsx(A3.Provider,{value:Y,children:U.jsx(ea,{theme:{algorithm:JQ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:U.jsxs(Na,{style:{height:"100vh",overflow:"hidden"},children:[U.jsx(ree,{selectedDate:e,onDateChange:E,onImportClick:()=>s(!0),selectedProjects:P,onRemoveProject:N,onClearProjectFilter:O}),U.jsx(Pee,{className:"dashboard-content",style:{padding:16,background:"#f0f2f5",flex:1,display:"flex",flexDirection:"column"},children:U.jsxs("div",{ref:x,className:"dashboard-container",children:[U.jsx("div",{className:"dashboard-timeline",style:{width:$??void 0,flex:$?void 0:1},children:U.jsx(gee,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),U.jsx("div",{className:"dashboard-resizer",onMouseDown:G,children:U.jsx("div",{className:"dashboard-resizer-handle"})}),U.jsx("div",{className:"dashboard-todo",children:U.jsx(See,{selectedDate:e,selectedProjects:c})}),U.jsxs("div",{className:"dashboard-right-column",children:[U.jsx("div",{className:"dashboard-calendar",children:U.jsx(oee,{selectedDate:e,onDateSelect:T,selectedProjects:c})}),U.jsx("div",{className:"dashboard-project",children:U.jsx(Cee,{selectedProjects:c,onToggleProject:N})})]})]})}),U.jsx(io,{title:null,open:n,onCancel:()=>r(!1),footer:null,width:"90%",style:{top:20},styles:{body:{height:"calc(100vh - 120px)",padding:0}},destroyOnHidden:!0,children:U.jsx(Mee,{selectedDate:e,onClose:()=>r(!1)})}),U.jsx(d3,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:a,children:U.jsx(xee,{onApplyRoutine:V})})]})})})},{Footer:_ee}=Na,{Text:Hee}=zr;function Aee(){return U.jsx(zee,{})}l4.createRoot(document.getElementById("root")).render(U.jsx(l.StrictMode,{children:U.jsx(Aee,{})}));
|