mdjournal 1.0.11 → 1.0.13

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.
@@ -1,402 +0,0 @@
1
- function CP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)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(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qh={exports:{}},Oc={};var nw;function $P(){if(nw)return Oc;nw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var c=null;if(s!==void 0&&(c=""+s),i.key!==void 0&&(c=""+i.key),"key"in i){s={};for(var d in i)d!=="key"&&(s[d]=i[d])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:c,ref:i!==void 0?i:null,props:s}}return Oc.Fragment=t,Oc.jsx=n,Oc.jsxs=n,Oc}var rw;function xP(){return rw||(rw=1,Qh.exports=$P()),Qh.exports}var X=xP(),Zh={exports:{}},Tt={};var ow;function wP(){if(ow)return Tt;ow=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=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"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function S(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,C={};function w(P,D,q){this.props=P,this.context=D,this.refs=C,this.updater=q||b}w.prototype.isReactComponent={},w.prototype.setState=function(P,D){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,D,"setState")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function M(){}M.prototype=w.prototype;function x(P,D,q){this.props=P,this.context=D,this.refs=C,this.updater=q||b}var R=x.prototype=new M;R.constructor=x,$(R,w.prototype),R.isPureReactComponent=!0;var T=Array.isArray;function N(){}var O={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function j(P,D,q){var G=q.ref;return{$$typeof:e,type:P,key:D,ref:G!==void 0?G:null,props:q}}function W(P,D){return j(P.type,D,P.props)}function F(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function Y(P){var D={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(q){return D[q]})}var U=/\/+/g;function L(P,D){return typeof P=="object"&&P!==null&&P.key!=null?Y(""+P.key):D.toString(36)}function B(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(N,N):(P.status="pending",P.then(function(D){P.status==="pending"&&(P.status="fulfilled",P.value=D)},function(D){P.status==="pending"&&(P.status="rejected",P.reason=D)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function _(P,D,q,G,K){var Z=typeof P;(Z==="undefined"||Z==="boolean")&&(P=null);var J=!1;if(P===null)J=!0;else switch(Z){case"bigint":case"string":case"number":J=!0;break;case"object":switch(P.$$typeof){case e:case t:J=!0;break;case g:return J=P._init,_(J(P._payload),D,q,G,K)}}if(J)return K=K(P),J=G===""?"."+L(P,0):G,T(K)?(q="",J!=null&&(q=J.replace(U,"$&/")+"/"),_(K,D,q,"",function(oe){return oe})):K!=null&&(F(K)&&(K=W(K,q+(K.key==null||P&&P.key===K.key?"":(""+K.key).replace(U,"$&/")+"/")+J)),D.push(K)),1;J=0;var ie=G===""?".":G+":";if(T(P))for(var ne=0;ne<P.length;ne++)G=P[ne],Z=ie+L(G,ne),J+=_(G,D,q,Z,K);else if(ne=S(P),typeof ne=="function")for(P=ne.call(P),ne=0;!(G=P.next()).done;)G=G.value,Z=ie+L(G,ne++),J+=_(G,D,q,Z,K);else if(Z==="object"){if(typeof P.then=="function")return _(B(P),D,q,G,K);throw D=String(P),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return J}function H(P,D,q){if(P==null)return P;var G=[],K=0;return _(P,G,"","",function(Z){return D.call(q,Z,K++)}),G}function I(P){if(P._status===-1){var D=P._result;D=D(),D.then(function(q){(P._status===0||P._status===-1)&&(P._status=1,P._result=q)},function(q){(P._status===0||P._status===-1)&&(P._status=2,P._result=q)}),P._status===-1&&(P._status=0,P._result=D)}if(P._status===1)return P._result.default;throw P._result}var A=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},V={map:H,forEach:function(P,D,q){H(P,function(){D.apply(this,arguments)},q)},count:function(P){var D=0;return H(P,function(){D++}),D},toArray:function(P){return H(P,function(D){return D})||[]},only:function(P){if(!F(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return Tt.Activity=h,Tt.Children=V,Tt.Component=w,Tt.Fragment=n,Tt.Profiler=i,Tt.PureComponent=x,Tt.StrictMode=r,Tt.Suspense=f,Tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Tt.__COMPILER_RUNTIME={__proto__:null,c:function(P){return O.H.useMemoCache(P)}},Tt.cache=function(P){return function(){return P.apply(null,arguments)}},Tt.cacheSignal=function(){return null},Tt.cloneElement=function(P,D,q){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var G=$({},P.props),K=P.key;if(D!=null)for(Z in D.key!==void 0&&(K=""+D.key),D)!z.call(D,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&D.ref===void 0||(G[Z]=D[Z]);var Z=arguments.length-2;if(Z===1)G.children=q;else if(1<Z){for(var J=Array(Z),ie=0;ie<Z;ie++)J[ie]=arguments[ie+2];G.children=J}return j(P.type,K,G)},Tt.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},Tt.createElement=function(P,D,q){var G,K={},Z=null;if(D!=null)for(G in D.key!==void 0&&(Z=""+D.key),D)z.call(D,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(K[G]=D[G]);var J=arguments.length-2;if(J===1)K.children=q;else if(1<J){for(var ie=Array(J),ne=0;ne<J;ne++)ie[ne]=arguments[ne+2];K.children=ie}if(P&&P.defaultProps)for(G in J=P.defaultProps,J)K[G]===void 0&&(K[G]=J[G]);return j(P,Z,K)},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(P){return{$$typeof:d,render:P}},Tt.isValidElement=F,Tt.lazy=function(P){return{$$typeof:g,_payload:{_status:-1,_result:P},_init:I}},Tt.memo=function(P,D){return{$$typeof:p,type:P,compare:D===void 0?null:D}},Tt.startTransition=function(P){var D=O.T,q={};O.T=q;try{var G=P(),K=O.S;K!==null&&K(q,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(N,A)}catch(Z){A(Z)}finally{D!==null&&q.types!==null&&(D.types=q.types),O.T=D}},Tt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Tt.use=function(P){return O.H.use(P)},Tt.useActionState=function(P,D,q){return O.H.useActionState(P,D,q)},Tt.useCallback=function(P,D){return O.H.useCallback(P,D)},Tt.useContext=function(P){return O.H.useContext(P)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(P,D){return O.H.useDeferredValue(P,D)},Tt.useEffect=function(P,D){return O.H.useEffect(P,D)},Tt.useEffectEvent=function(P){return O.H.useEffectEvent(P)},Tt.useId=function(){return O.H.useId()},Tt.useImperativeHandle=function(P,D,q){return O.H.useImperativeHandle(P,D,q)},Tt.useInsertionEffect=function(P,D){return O.H.useInsertionEffect(P,D)},Tt.useLayoutEffect=function(P,D){return O.H.useLayoutEffect(P,D)},Tt.useMemo=function(P,D){return O.H.useMemo(P,D)},Tt.useOptimistic=function(P,D){return O.H.useOptimistic(P,D)},Tt.useReducer=function(P,D,q){return O.H.useReducer(P,D,q)},Tt.useRef=function(P){return O.H.useRef(P)},Tt.useState=function(P){return O.H.useState(P)},Tt.useSyncExternalStore=function(P,D,q){return O.H.useSyncExternalStore(P,D,q)},Tt.useTransition=function(){return O.H.useTransition()},Tt.version="19.2.3",Tt}var aw;function mS(){return aw||(aw=1,Zh.exports=wP()),Zh.exports}var l=mS();const ae=wa(l),EP=CP({__proto__:null,default:ae},[l]);var Jh={exports:{}},Nc={},ey={exports:{}},ty={};var iw;function MP(){return iw||(iw=1,(function(e){function t(_,H){var I=_.length;_.push(H);e:for(;0<I;){var A=I-1>>>1,V=_[A];if(0<i(V,H))_[A]=H,_[I]=V,I=A;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var H=_[0],I=_.pop();if(I!==H){_[0]=I;e:for(var A=0,V=_.length,P=V>>>1;A<P;){var D=2*(A+1)-1,q=_[D],G=D+1,K=_[G];if(0>i(q,I))G<V&&0>i(K,q)?(_[A]=K,_[G]=I,A=G):(_[A]=q,_[D]=I,A=D);else if(G<V&&0>i(K,I))_[A]=K,_[G]=I,A=G;else break e}}return H}function i(_,H){var I=_.sortIndex-H.sortIndex;return I!==0?I:_.id-H.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=[],p=[],g=1,h=null,y=3,S=!1,b=!1,$=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function R(_){for(var H=n(p);H!==null;){if(H.callback===null)r(p);else if(H.startTime<=_)r(p),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(p)}}function T(_){if($=!1,R(_),!b)if(n(f)!==null)b=!0,N||(N=!0,Y());else{var H=n(p);H!==null&&B(T,H.startTime-_)}}var N=!1,O=-1,z=5,j=-1;function W(){return C?!0:!(e.unstable_now()-j<z)}function F(){if(C=!1,N){var _=e.unstable_now();j=_;var H=!0;try{e:{b=!1,$&&($=!1,M(O),O=-1),S=!0;var I=y;try{t:{for(R(_),h=n(f);h!==null&&!(h.expirationTime>_&&W());){var A=h.callback;if(typeof A=="function"){h.callback=null,y=h.priorityLevel;var V=A(h.expirationTime<=_);if(_=e.unstable_now(),typeof V=="function"){h.callback=V,R(_),H=!0;break t}h===n(f)&&r(f),R(_)}else r(f);h=n(f)}if(h!==null)H=!0;else{var P=n(p);P!==null&&B(T,P.startTime-_),H=!1}}break e}finally{h=null,y=I,S=!1}H=void 0}}finally{H?Y():N=!1}}}var Y;if(typeof x=="function")Y=function(){x(F)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,L=U.port2;U.port1.onmessage=F,Y=function(){L.postMessage(null)}}else Y=function(){w(F,0)};function B(_,H){O=w(function(){_(e.unstable_now())},H)}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"):z=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(_){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var I=y;y=H;try{return _()}finally{y=I}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(_,H){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=y;y=_;try{return H()}finally{y=I}},e.unstable_scheduleCallback=function(_,H,I){var A=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?A+I:A):I=A,_){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=I+V,_={id:g++,callback:H,priorityLevel:_,startTime:I,expirationTime:V,sortIndex:-1},I>A?(_.sortIndex=I,t(p,_),n(f)===null&&_===n(p)&&($?(M(O),O=-1):$=!0,B(T,I-A))):(_.sortIndex=V,t(f,_),b||S||(b=!0,N||(N=!0,Y()))),_},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(_){var H=y;return function(){var I=y;y=H;try{return _.apply(this,arguments)}finally{y=I}}}})(ty)),ty}var lw;function RP(){return lw||(lw=1,ey.exports=MP()),ey.exports}var ny={exports:{}},$r={};var sw;function TP(){if(sw)return $r;sw=1;var e=mS();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+p+" 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},i=Symbol.for("react.portal");function s(f,p,g){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:h==null?null:""+h,children:f,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return $r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$r.createPortal=function(f,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(f,p,null,g)},$r.flushSync=function(f){var p=c.T,g=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=p,r.p=g,r.d.f()}},$r.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(f,p))},$r.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},$r.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var g=p.as,h=d(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:S}):g==="script"&&r.d.X(f,{crossOrigin:h,integrity:y,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},$r.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);r.d.M(f,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(f)},$r.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,h=d(g,p.crossOrigin);r.d.L(f,g,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},$r.preloadModule=function(f,p){if(typeof f=="string")if(p){var g=d(p.as,p.crossOrigin);r.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(f)},$r.requestFormReset=function(f){r.d.r(f)},$r.unstable_batchedUpdates=function(f,p){return f(p)},$r.useFormState=function(f,p,g){return c.H.useFormState(f,p,g)},$r.useFormStatus=function(){return c.H.useHostTransitionStatus()},$r.version="19.2.3",$r}var cw;function G4(){if(cw)return ny.exports;cw=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(),ny.exports=TP(),ny.exports}var uw;function OP(){if(uw)return Nc;uw=1;var e=RP(),t=mS(),n=G4();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function c(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function p(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,m=a;;){var v=u.return;if(v===null)break;var E=v.alternate;if(E===null){if(m=v.return,m!==null){u=m;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===u)return f(v),o;if(E===m)return f(v),a;E=E.sibling}throw Error(r(188))}if(u.return!==m.return)u=v,m=E;else{for(var k=!1,ee=v.child;ee;){if(ee===u){k=!0,u=v,m=E;break}if(ee===m){k=!0,m=v,u=E;break}ee=ee.sibling}if(!k){for(ee=E.child;ee;){if(ee===u){k=!0,u=E,m=v;break}if(ee===m){k=!0,m=E,u=v;break}ee=ee.sibling}if(!k)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function g(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=g(o),a!==null)return a;o=o.sibling}return null}var h=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),x=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function Y(o){return o===null||typeof o!="object"?null:(o=F&&o[F]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function L(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case $:return"Fragment";case w:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case j:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case x:return o.displayName||"Context";case M:return(o._context.displayName||"Context")+".Consumer";case R:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case O:return a=o.displayName||null,a!==null?a:L(o.type)||"Memo";case z:a=o._payload,o=o._init;try{return L(o(a))}catch{}}return null}var B=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},A=[],V=-1;function P(o){return{current:o}}function D(o){0>V||(o.current=A[V],A[V]=null,V--)}function q(o,a){V++,A[V]=o.current,o.current=a}var G=P(null),K=P(null),Z=P(null),J=P(null);function ie(o,a){switch(q(Z,a),q(K,o),q(G,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?Ex(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=Ex(a),o=Mx(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}D(G),q(G,o)}function ne(){D(G),D(K),D(Z)}function oe(o){o.memoizedState!==null&&q(J,o);var a=G.current,u=Mx(a,o.type);a!==u&&(q(K,o),q(G,u))}function ue(o){K.current===o&&(D(G),D(K)),J.current===o&&(D(J),Ec._currentValue=I)}var le,fe;function ge(o){if(le===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);le=a&&a[1]||"",fe=-1<u.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+le+o+fe}var re=!1;function ce(o,a){if(!o||re)return"";re=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Re){var we=Re}Reflect.construct(o,[],Ve)}else{try{Ve.call()}catch(Re){we=Re}o.call(Ve.prototype)}}else{try{throw Error()}catch(Re){we=Re}(Ve=o())&&typeof Ve.catch=="function"&&Ve.catch(function(){})}}catch(Re){if(Re&&we&&typeof Re.stack=="string")return[Re.stack,we.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=m.DetermineComponentFrameRoot(),k=E[0],ee=E[1];if(k&&ee){var se=k.split(`
4
- `),xe=ee.split(`
5
- `);for(v=m=0;m<se.length&&!se[m].includes("DetermineComponentFrameRoot");)m++;for(;v<xe.length&&!xe[v].includes("DetermineComponentFrameRoot");)v++;if(m===se.length||v===xe.length)for(m=se.length-1,v=xe.length-1;1<=m&&0<=v&&se[m]!==xe[v];)v--;for(;1<=m&&0<=v;m--,v--)if(se[m]!==xe[v]){if(m!==1||v!==1)do if(m--,v--,0>v||se[m]!==xe[v]){var De=`
6
- `+se[m].replace(" at new "," at ");return o.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",o.displayName)),De}while(1<=m&&0<=v);break}}}finally{re=!1,Error.prepareStackTrace=u}return(u=o?o.displayName||o.name:"")?ge(u):""}function he(o,a){switch(o.tag){case 26:case 27:case 5:return ge(o.type);case 16:return ge("Lazy");case 13:return o.child!==a&&a!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return ce(o.type,!1);case 11:return ce(o.type.render,!1);case 1:return ce(o.type,!0);case 31:return ge("Activity");default:return""}}function pe(o){try{var a="",u=null;do a+=he(o,u),u=o,o=o.return;while(o);return a}catch(m){return`
7
- Error generating stack: `+m.message+`
8
- `+m.stack}}var Ce=Object.prototype.hasOwnProperty,de=e.unstable_scheduleCallback,ye=e.unstable_cancelCallback,Se=e.unstable_shouldYield,Ee=e.unstable_requestPaint,Pe=e.unstable_now,Ae=e.unstable_getCurrentPriorityLevel,Ye=e.unstable_ImmediatePriority,Ue=e.unstable_UserBlockingPriority,Xe=e.unstable_NormalPriority,et=e.unstable_LowPriority,Te=e.unstable_IdlePriority,_e=e.log,Le=e.unstable_setDisableYieldValue,Qe=null,ze=null;function ve(o){if(typeof _e=="function"&&Le(o),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(Qe,o)}catch{}}var Oe=Math.clz32?Math.clz32:Be,Ze=Math.log,qe=Math.LN2;function Be(o){return o>>>=0,o===0?32:31-(Ze(o)/qe|0)|0}var Ne=256,Ge=262144,rt=4194304;function ot(o){var a=o&42;if(a!==0)return a;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,a,u){var m=o.pendingLanes;if(m===0)return 0;var v=0,E=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var ee=m&134217727;return ee!==0?(m=ee&~E,m!==0?v=ot(m):(k&=ee,k!==0?v=ot(k):u||(u=ee&~o,u!==0&&(v=ot(u))))):(ee=m&~E,ee!==0?v=ot(ee):k!==0?v=ot(k):u||(u=m&~o,u!==0&&(v=ot(u)))),v===0?0:a!==0&&a!==v&&(a&E)===0&&(E=v&-v,u=a&-a,E>=u||E===32&&(u&4194048)!==0)?a:v}function St(o,a){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&a)===0}function Ct(o,a){switch(o){case 1:case 2:case 4:case 8:case 64:return a+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 a+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=rt;return rt<<=1,(rt&62914560)===0&&(rt=4194304),o}function at(o){for(var a=[],u=0;31>u;u++)a.push(o);return a}function je(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ie(o,a,u,m,v,E){var k=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,se=o.expirationTimes,xe=o.hiddenUpdates;for(u=k&~u;0<u;){var De=31-Oe(u),Ve=1<<De;ee[De]=0,se[De]=-1;var we=xe[De];if(we!==null)for(xe[De]=null,De=0;De<we.length;De++){var Re=we[De];Re!==null&&(Re.lane&=-536870913)}u&=~Ve}m!==0&&Fe(o,m,0),E!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=E&~(k&~a))}function Fe(o,a,u){o.pendingLanes|=a,o.suspendedLanes&=~a;var m=31-Oe(a);o.entangledLanes|=a,o.entanglements[m]=o.entanglements[m]|1073741824|u&261930}function Me(o,a){var u=o.entangledLanes|=a;for(o=o.entanglements;u;){var m=31-Oe(u),v=1<<m;v&a|o[m]&a&&(o[m]|=a),u&=~v}}function We(o,a){var u=a&-a;return u=(u&42)!==0?1:Je(u),(u&(o.suspendedLanes|a))!==0?0:u}function Je(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 it(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ft(){var o=H.p;return o!==0?o:(o=window.event,o===void 0?32:Xx(o.type))}function Ft(o,a){var u=H.p;try{return H.p=o,a()}finally{H.p=u}}var Dt=Math.random().toString(36).slice(2),$t="__reactFiber$"+Dt,tn="__reactProps$"+Dt,wt="__reactContainer$"+Dt,Ke="__reactEvents$"+Dt,Et="__reactListeners$"+Dt,mt="__reactHandles$"+Dt,Rt="__reactResources$"+Dt,Ut="__reactMarker$"+Dt;function an(o){delete o[$t],delete o[tn],delete o[Ke],delete o[Et],delete o[mt]}function kt(o){var a=o[$t];if(a)return a;for(var u=o.parentNode;u;){if(a=u[wt]||u[$t]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(o=zx(o);o!==null;){if(u=o[$t])return u;o=zx(o)}return a}o=u,u=o.parentNode}return null}function wn(o){if(o=o[$t]||o[wt]){var a=o.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return o}return null}function En(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o.stateNode;throw Error(r(33))}function Sr(o){var a=o[Rt];return a||(a=o[Rt]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function dn(o){o[Ut]=!0}var dr=new Set,Pn={};function Cr(o,a){fr(o,a),fr(o+"Capture",a)}function fr(o,a){for(Pn[o]=a,o=0;o<a.length;o++)dr.add(a[o])}var mr=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]*$"),Ir={},qr={};function yt(o){return Ce.call(qr,o)?!0:Ce.call(Ir,o)?!1:mr.test(o)?qr[o]=!0:(Ir[o]=!0,!1)}function Sn(o,a,u){if(yt(a))if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":o.removeAttribute(a);return;case"boolean":var m=a.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(a);return}}o.setAttribute(a,""+u)}}function Mn(o,a,u){if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttribute(a,""+u)}}function Vn(o,a,u,m){if(m===null)o.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttributeNS(a,u,""+m)}}function In(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function xo(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ko(o,a,u){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,a);if(!o.hasOwnProperty(a)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,E=m.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return v.call(this)},set:function(k){u=""+k,E.call(this,k)}}),Object.defineProperty(o,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function wo(o){if(!o._valueTracker){var a=xo(o)?"checked":"value";o._valueTracker=Ko(o,a,""+o[a])}}function jo(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return o&&(m=xo(o)?o.checked?"true":"false":o.value),o=m,o!==u?(a.setValue(o),!0):!1}function tt(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 Jt=/[\n"\\]/g;function _n(o){return o.replace(Jt,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Qo(o,a,u,m,v,E,k,ee){o.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?o.type=k:o.removeAttribute("type"),a!=null?k==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+In(a)):o.value!==""+In(a)&&(o.value=""+In(a)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),a!=null?_o(o,k,In(a)):u!=null?_o(o,k,In(u)):m!=null&&o.removeAttribute("value"),v==null&&E!=null&&(o.defaultChecked=!!E),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?o.name=""+In(ee):o.removeAttribute("name")}function Zo(o,a,u,m,v,E,k,ee){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(o.type=E),a!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){wo(o);return}u=u!=null?""+In(u):"",a=a!=null?""+In(a):u,ee||a===o.value||(o.value=a),o.defaultValue=a}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=ee?o.checked:!!m,o.defaultChecked=!!m,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),wo(o)}function _o(o,a,u){a==="number"&&tt(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function oo(o,a,u,m){if(o=o.options,a){a={};for(var v=0;v<u.length;v++)a["$"+u[v]]=!0;for(u=0;u<o.length;u++)v=a.hasOwnProperty("$"+o[u].value),o[u].selected!==v&&(o[u].selected=v),v&&m&&(o[u].defaultSelected=!0)}else{for(u=""+In(u),a=null,v=0;v<o.length;v++){if(o[v].value===u){o[v].selected=!0,m&&(o[v].defaultSelected=!0);return}a!==null||o[v].disabled||(a=o[v])}a!==null&&(a.selected=!0)}}function dl(o,a,u){if(a!=null&&(a=""+In(a),a!==o.value&&(o.value=a),u==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=u!=null?""+In(u):""}function fl(o,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(r(92));if(B(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),a=u}u=In(a),o.defaultValue=u,m=o.textContent,m===u&&m!==""&&m!==null&&(o.value=m),wo(o)}function Ho(o,a){if(a){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=a;return}}o.textContent=a}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 ht(o,a,u){var m=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?o.setProperty(a,""):a==="float"?o.cssFloat="":o[a]="":m?o.setProperty(a,u):typeof u!="number"||u===0||Mt.has(a)?a==="float"?o.cssFloat=u:o[a]=(""+u).trim():o[a]=u+"px"}function Kn(o,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(o=o.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||a!=null&&a.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var v in a)m=a[v],a.hasOwnProperty(v)&&u[v]!==m&&ht(o,v,m)}else for(var E in a)a.hasOwnProperty(E)&&ht(o,E,a[E])}function Pr(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 ml=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"]]),Kp=/^[\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 pl(o){return Kp.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Eo(){}var Vt=null;function bt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var xt=null,cn=null;function Fn(o){var a=wn(o);if(a&&(o=a.stateNode)){var u=o[tn]||null;e:switch(o=a.stateNode,a.type){case"input":if(Qo(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+_n(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var m=u[a];if(m!==o&&m.form===o.form){var v=m[tn]||null;if(!v)throw Error(r(90));Qo(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<u.length;a++)m=u[a],m.form===o.form&&jo(m)}break e;case"textarea":dl(o,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&oo(o,!!u.multiple,a,!1)}}}var Vs=!1;function E1(o,a,u){if(Vs)return o(a,u);Vs=!0;try{var m=o(a);return m}finally{if(Vs=!1,(xt!==null||cn!==null)&&(uf(),xt&&(a=xt,o=cn,cn=xt=null,Fn(a),o)))for(a=0;a<o.length;a++)Fn(o[a])}}function Fs(o,a){var u=o.stateNode;if(u===null)return null;var m=u[tn]||null;if(m===null)return null;u=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var Jo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qp=!1;if(Jo)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){Qp=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{Qp=!1}var Ta=null,Zp=null,xd=null;function M1(){if(xd)return xd;var o,a=Zp,u=a.length,m,v="value"in Ta?Ta.value:Ta.textContent,E=v.length;for(o=0;o<u&&a[o]===v[o];o++);var k=u-o;for(m=1;m<=k&&a[u-m]===v[E-m];m++);return xd=v.slice(o,1<m?1-m:void 0)}function wd(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Ed(){return!0}function R1(){return!1}function zr(o){function a(u,m,v,E,k){this._reactName=u,this._targetInst=v,this.type=m,this.nativeEvent=E,this.target=k,this.currentTarget=null;for(var ee in o)o.hasOwnProperty(ee)&&(u=o[ee],this[ee]=u?u(E):E[ee]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Ed:R1,this.isPropagationStopped=R1,this}return h(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Ed)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Ed)},persist:function(){},isPersistent:Ed}),a}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Md=zr(hi),Ws=h({},hi,{view:0,detail:0}),vN=zr(Ws),Jp,eg,qs,Rd=h({},Ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ng,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"?(Jp=o.screenX-qs.screenX,eg=o.screenY-qs.screenY):eg=Jp=0,qs=o),Jp)},movementY:function(o){return"movementY"in o?o.movementY:eg}}),T1=zr(Rd),SN=h({},Rd,{dataTransfer:0}),CN=zr(SN),$N=h({},Ws,{relatedTarget:0}),tg=zr($N),xN=h({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),wN=zr(xN),EN=h({},hi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),MN=zr(EN),RN=h({},hi,{data:0}),O1=zr(RN),TN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ON={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"},NN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IN(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=NN[o])?!!a[o]:!1}function ng(){return IN}var PN=h({},Ws,{key:function(o){if(o.key){var a=TN[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=wd(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?ON[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ng,charCode:function(o){return o.type==="keypress"?wd(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?wd(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),zN=zr(PN),AN=h({},Rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),N1=zr(AN),DN=h({},Ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ng}),jN=zr(DN),_N=h({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),HN=zr(_N),BN=h({},Rd,{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}),LN=zr(BN),VN=h({},hi,{newState:0,oldState:0}),FN=zr(VN),kN=[9,13,27,32],rg=Jo&&"CompositionEvent"in window,Ys=null;Jo&&"documentMode"in document&&(Ys=document.documentMode);var WN=Jo&&"TextEvent"in window&&!Ys,I1=Jo&&(!rg||Ys&&8<Ys&&11>=Ys),P1=" ",z1=!1;function A1(o,a){switch(o){case"keyup":return kN.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var gl=!1;function qN(o,a){switch(o){case"compositionend":return D1(a);case"keypress":return a.which!==32?null:(z1=!0,P1);case"textInput":return o=a.data,o===P1&&z1?null:o;default:return null}}function YN(o,a){if(gl)return o==="compositionend"||!rg&&A1(o,a)?(o=M1(),xd=Zp=Ta=null,gl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return I1&&a.locale!=="ko"?null:a.data;default:return null}}var UN={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 j1(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!UN[o.type]:a==="textarea"}function _1(o,a,u,m){xt?cn?cn.push(m):cn=[m]:xt=m,a=yf(a,"onChange"),0<a.length&&(u=new Md("onChange","change",null,u,m),o.push({event:u,listeners:a}))}var Us=null,Gs=null;function GN(o){vx(o,0)}function Td(o){var a=En(o);if(jo(a))return o}function H1(o,a){if(o==="change")return a}var B1=!1;if(Jo){var og;if(Jo){var ag="oninput"in document;if(!ag){var L1=document.createElement("div");L1.setAttribute("oninput","return;"),ag=typeof L1.oninput=="function"}og=ag}else og=!1;B1=og&&(!document.documentMode||9<document.documentMode)}function V1(){Us&&(Us.detachEvent("onpropertychange",F1),Gs=Us=null)}function F1(o){if(o.propertyName==="value"&&Td(Gs)){var a=[];_1(a,Gs,o,bt(o)),E1(GN,a)}}function XN(o,a,u){o==="focusin"?(V1(),Us=a,Gs=u,Us.attachEvent("onpropertychange",F1)):o==="focusout"&&V1()}function KN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Td(Gs)}function QN(o,a){if(o==="click")return Td(a)}function ZN(o,a){if(o==="input"||o==="change")return Td(a)}function JN(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Yr=typeof Object.is=="function"?Object.is:JN;function Xs(o,a){if(Yr(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var u=Object.keys(o),m=Object.keys(a);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var v=u[m];if(!Ce.call(a,v)||!Yr(o[v],a[v]))return!1}return!0}function k1(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function W1(o,a){var u=k1(o);o=0;for(var m;u;){if(u.nodeType===3){if(m=o+u.textContent.length,o<=a&&m>=a)return{node:u,offset:a-o};o=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=k1(u)}}function q1(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?q1(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function Y1(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var a=tt(o.document);a instanceof o.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)o=a.contentWindow;else break;a=tt(o.document)}return a}function ig(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}var eI=Jo&&"documentMode"in document&&11>=document.documentMode,hl=null,lg=null,Ks=null,sg=!1;function U1(o,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;sg||hl==null||hl!==tt(m)||(m=hl,"selectionStart"in m&&ig(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Ks&&Xs(Ks,m)||(Ks=m,m=yf(lg,"onSelect"),0<m.length&&(a=new Md("onSelect","select",null,a,u),o.push({event:a,listeners:m}),a.target=hl)))}function yi(o,a){var u={};return u[o.toLowerCase()]=a.toLowerCase(),u["Webkit"+o]="webkit"+a,u["Moz"+o]="moz"+a,u}var yl={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionrun:yi("Transition","TransitionRun"),transitionstart:yi("Transition","TransitionStart"),transitioncancel:yi("Transition","TransitionCancel"),transitionend:yi("Transition","TransitionEnd")},cg={},G1={};Jo&&(G1=document.createElement("div").style,"AnimationEvent"in window||(delete yl.animationend.animation,delete yl.animationiteration.animation,delete yl.animationstart.animation),"TransitionEvent"in window||delete yl.transitionend.transition);function bi(o){if(cg[o])return cg[o];if(!yl[o])return o;var a=yl[o],u;for(u in a)if(a.hasOwnProperty(u)&&u in G1)return cg[o]=a[u];return o}var X1=bi("animationend"),K1=bi("animationiteration"),Q1=bi("animationstart"),tI=bi("transitionrun"),nI=bi("transitionstart"),rI=bi("transitioncancel"),Z1=bi("transitionend"),J1=new Map,ug="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(" ");ug.push("scrollEnd");function Mo(o,a){J1.set(o,a),Cr(a,[o])}var Od=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ao=[],bl=0,dg=0;function Nd(){for(var o=bl,a=dg=bl=0;a<o;){var u=ao[a];ao[a++]=null;var m=ao[a];ao[a++]=null;var v=ao[a];ao[a++]=null;var E=ao[a];if(ao[a++]=null,m!==null&&v!==null){var k=m.pending;k===null?v.next=v:(v.next=k.next,k.next=v),m.pending=v}E!==0&&eC(u,v,E)}}function Id(o,a,u,m){ao[bl++]=o,ao[bl++]=a,ao[bl++]=u,ao[bl++]=m,dg|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function fg(o,a,u,m){return Id(o,a,u,m),Pd(o)}function vi(o,a){return Id(o,null,null,a),Pd(o)}function eC(o,a,u){o.lanes|=u;var m=o.alternate;m!==null&&(m.lanes|=u);for(var v=!1,E=o.return;E!==null;)E.childLanes|=u,m=E.alternate,m!==null&&(m.childLanes|=u),E.tag===22&&(o=E.stateNode,o===null||o._visibility&1||(v=!0)),o=E,E=E.return;return o.tag===3?(E=o.stateNode,v&&a!==null&&(v=31-Oe(u),o=E.hiddenUpdates,m=o[v],m===null?o[v]=[a]:m.push(a),a.lane=u|536870912),E):null}function Pd(o){if(50<bc)throw bc=0,Ch=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var vl={};function oI(o,a,u,m){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=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(o,a,u,m){return new oI(o,a,u,m)}function mg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ea(o,a){var u=o.alternate;return u===null?(u=Ur(o.tag,a,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=a,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,a=o.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u.refCleanup=o.refCleanup,u}function tC(o,a){o.flags&=65011714;var u=o.alternate;return u===null?(o.childLanes=0,o.lanes=a,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,a=u.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),o}function zd(o,a,u,m,v,E){var k=0;if(m=o,typeof o=="function")mg(o)&&(k=1);else if(typeof o=="string")k=cP(o,u,G.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case j:return o=Ur(31,u,a,v),o.elementType=j,o.lanes=E,o;case $:return Si(u.children,v,E,a);case C:k=8,v|=24;break;case w:return o=Ur(12,u,a,v|2),o.elementType=w,o.lanes=E,o;case T:return o=Ur(13,u,a,v),o.elementType=T,o.lanes=E,o;case N:return o=Ur(19,u,a,v),o.elementType=N,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case x:k=10;break e;case M:k=9;break e;case R:k=11;break e;case O:k=14;break e;case z:k=16,m=null;break e}k=29,u=Error(r(130,o===null?"null":typeof o,"")),m=null}return a=Ur(k,u,a,v),a.elementType=o,a.type=m,a.lanes=E,a}function Si(o,a,u,m){return o=Ur(7,o,m,a),o.lanes=u,o}function pg(o,a,u){return o=Ur(6,o,null,a),o.lanes=u,o}function nC(o){var a=Ur(18,null,null,0);return a.stateNode=o,a}function gg(o,a,u){return a=Ur(4,o.children!==null?o.children:[],o.key,a),a.lanes=u,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var rC=new WeakMap;function io(o,a){if(typeof o=="object"&&o!==null){var u=rC.get(o);return u!==void 0?u:(a={value:o,source:a,stack:pe(a)},rC.set(o,a),a)}return{value:o,source:a,stack:pe(a)}}var Sl=[],Cl=0,Ad=null,Qs=0,lo=[],so=0,Oa=null,Bo=1,Lo="";function ta(o,a){Sl[Cl++]=Qs,Sl[Cl++]=Ad,Ad=o,Qs=a}function oC(o,a,u){lo[so++]=Bo,lo[so++]=Lo,lo[so++]=Oa,Oa=o;var m=Bo;o=Lo;var v=32-Oe(m)-1;m&=~(1<<v),u+=1;var E=32-Oe(a)+v;if(30<E){var k=v-v%5;E=(m&(1<<k)-1).toString(32),m>>=k,v-=k,Bo=1<<32-Oe(a)+v|u<<v|m,Lo=E+o}else Bo=1<<E|u<<v|m,Lo=o}function hg(o){o.return!==null&&(ta(o,1),oC(o,1,0))}function yg(o){for(;o===Ad;)Ad=Sl[--Cl],Sl[Cl]=null,Qs=Sl[--Cl],Sl[Cl]=null;for(;o===Oa;)Oa=lo[--so],lo[so]=null,Lo=lo[--so],lo[so]=null,Bo=lo[--so],lo[so]=null}function aC(o,a){lo[so++]=Bo,lo[so++]=Lo,lo[so++]=Oa,Bo=a.id,Lo=a.overflow,Oa=o}var pr=null,Rn=null,Qt=!1,Na=null,co=!1,bg=Error(r(519));function Ia(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zs(io(a,o)),bg}function iC(o){var a=o.stateNode,u=o.type,m=o.memoizedProps;switch(a[$t]=o,a[tn]=m,u){case"dialog":qt("cancel",a),qt("close",a);break;case"iframe":case"object":case"embed":qt("load",a);break;case"video":case"audio":for(u=0;u<Sc.length;u++)qt(Sc[u],a);break;case"source":qt("error",a);break;case"img":case"image":case"link":qt("error",a),qt("load",a);break;case"details":qt("toggle",a);break;case"input":qt("invalid",a),Zo(a,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":qt("invalid",a);break;case"textarea":qt("invalid",a),fl(a,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||m.suppressHydrationWarning===!0||xx(a.textContent,u)?(m.popover!=null&&(qt("beforetoggle",a),qt("toggle",a)),m.onScroll!=null&&qt("scroll",a),m.onScrollEnd!=null&&qt("scrollend",a),m.onClick!=null&&(a.onclick=Eo),a=!0):a=!1,a||Ia(o,!0)}function lC(o){for(pr=o.return;pr;)switch(pr.tag){case 5:case 31:case 13:co=!1;return;case 27:case 3:co=!0;return;default:pr=pr.return}}function $l(o){if(o!==pr)return!1;if(!Qt)return lC(o),Qt=!0,!1;var a=o.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=o.type,u=!(u!=="form"&&u!=="button")||jh(o.type,o.memoizedProps)),u=!u),u&&Rn&&Ia(o),lC(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=Px(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=Px(o)}else a===27?(a=Rn,qa(o.type)?(o=Vh,Vh=null,Rn=o):Rn=a):Rn=pr?fo(o.stateNode.nextSibling):null;return!0}function Ci(){Rn=pr=null,Qt=!1}function vg(){var o=Na;return o!==null&&(_r===null?_r=o:_r.push.apply(_r,o),Na=null),o}function Zs(o){Na===null?Na=[o]:Na.push(o)}var Sg=P(null),$i=null,na=null;function Pa(o,a,u){q(Sg,a._currentValue),a._currentValue=u}function ra(o){o._currentValue=Sg.current,D(Sg)}function Cg(o,a,u){for(;o!==null;){var m=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),o===u)break;o=o.return}}function $g(o,a,u,m){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var E=v.dependencies;if(E!==null){var k=v.child;E=E.firstContext;e:for(;E!==null;){var ee=E;E=v;for(var se=0;se<a.length;se++)if(ee.context===a[se]){E.lanes|=u,ee=E.alternate,ee!==null&&(ee.lanes|=u),Cg(E.return,u,o),m||(k=null);break e}E=ee.next}}else if(v.tag===18){if(k=v.return,k===null)throw Error(r(341));k.lanes|=u,E=k.alternate,E!==null&&(E.lanes|=u),Cg(k,u,o),k=null}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===o){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}}function xl(o,a,u,m){o=null;for(var v=a,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var k=v.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var ee=v.type;Yr(v.pendingProps.value,k.value)||(o!==null?o.push(ee):o=[ee])}}else if(v===J.current){if(k=v.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Ec):o=[Ec])}v=v.return}o!==null&&$g(a,o,u,m),a.flags|=262144}function Dd(o){for(o=o.firstContext;o!==null;){if(!Yr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function xi(o){$i=o,na=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function gr(o){return sC($i,o)}function jd(o,a){return $i===null&&xi(o),sC(o,a)}function sC(o,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},na===null){if(o===null)throw Error(r(308));na=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else na=na.next=a;return u}var aI=typeof AbortController<"u"?AbortController:function(){var o=[],a=this.signal={aborted:!1,addEventListener:function(u,m){o.push(m)}};this.abort=function(){a.aborted=!0,o.forEach(function(u){return u()})}},iI=e.unstable_scheduleCallback,lI=e.unstable_NormalPriority,kn={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xg(){return{controller:new aI,data:new Map,refCount:0}}function Js(o){o.refCount--,o.refCount===0&&iI(lI,function(){o.controller.abort()})}var ec=null,wg=0,wl=0,El=null;function sI(o,a){if(ec===null){var u=ec=[];wg=0,wl=Rh(),El={status:"pending",value:void 0,then:function(m){u.push(m)}}}return wg++,a.then(cC,cC),a}function cC(){if(--wg===0&&ec!==null){El!==null&&(El.status="fulfilled");var o=ec;ec=null,wl=0,El=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function cI(o,a){var u=[],m={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return o.then(function(){m.status="fulfilled",m.value=a;for(var v=0;v<u.length;v++)(0,u[v])(a)},function(v){for(m.status="rejected",m.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),m}var uC=_.S;_.S=function(o,a){U$=Pe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&sI(o,a),uC!==null&&uC(o,a)};var wi=P(null);function Eg(){var o=wi.current;return o!==null?o:Cn.pooledCache}function _d(o,a){a===null?q(wi,wi.current):q(wi,a.pool)}function dC(){var o=Eg();return o===null?null:{parent:kn._currentValue,pool:o}}var Ml=Error(r(460)),Mg=Error(r(474)),Hd=Error(r(542)),Bd={then:function(){}};function fC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function mC(o,a,u){switch(u=o[u],u===void 0?o.push(a):u!==a&&(a.then(Eo,Eo),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,gC(o),o;default:if(typeof a.status=="string")a.then(Eo,Eo);else{if(o=Cn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=a,o.status="pending",o.then(function(m){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=m}},function(m){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=m}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,gC(o),o}throw Mi=a,Ml}}function Ei(o){try{var a=o._init;return a(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Mi=u,Ml):u}}var Mi=null;function pC(){if(Mi===null)throw Error(r(459));var o=Mi;return Mi=null,o}function gC(o){if(o===Ml||o===Hd)throw Error(r(483))}var Rl=null,tc=0;function Ld(o){var a=tc;return tc+=1,Rl===null&&(Rl=[]),mC(Rl,o,a)}function nc(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function Vd(o,a){throw a.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)))}function hC(o){function a(be,me){if(o){var $e=be.deletions;$e===null?(be.deletions=[me],be.flags|=16):$e.push(me)}}function u(be,me){if(!o)return null;for(;me!==null;)a(be,me),me=me.sibling;return null}function m(be){for(var me=new Map;be!==null;)be.key!==null?me.set(be.key,be):me.set(be.index,be),be=be.sibling;return me}function v(be,me){return be=ea(be,me),be.index=0,be.sibling=null,be}function E(be,me,$e){return be.index=$e,o?($e=be.alternate,$e!==null?($e=$e.index,$e<me?(be.flags|=67108866,me):$e):(be.flags|=67108866,me)):(be.flags|=1048576,me)}function k(be){return o&&be.alternate===null&&(be.flags|=67108866),be}function ee(be,me,$e,He){return me===null||me.tag!==6?(me=pg($e,be.mode,He),me.return=be,me):(me=v(me,$e),me.return=be,me)}function se(be,me,$e,He){var pt=$e.type;return pt===$?De(be,me,$e.props.children,He,$e.key):me!==null&&(me.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===z&&Ei(pt)===me.type)?(me=v(me,$e.props),nc(me,$e),me.return=be,me):(me=zd($e.type,$e.key,$e.props,null,be.mode,He),nc(me,$e),me.return=be,me)}function xe(be,me,$e,He){return me===null||me.tag!==4||me.stateNode.containerInfo!==$e.containerInfo||me.stateNode.implementation!==$e.implementation?(me=gg($e,be.mode,He),me.return=be,me):(me=v(me,$e.children||[]),me.return=be,me)}function De(be,me,$e,He,pt){return me===null||me.tag!==7?(me=Si($e,be.mode,He,pt),me.return=be,me):(me=v(me,$e),me.return=be,me)}function Ve(be,me,$e){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=pg(""+me,be.mode,$e),me.return=be,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case S:return $e=zd(me.type,me.key,me.props,null,be.mode,$e),nc($e,me),$e.return=be,$e;case b:return me=gg(me,be.mode,$e),me.return=be,me;case z:return me=Ei(me),Ve(be,me,$e)}if(B(me)||Y(me))return me=Si(me,be.mode,$e,null),me.return=be,me;if(typeof me.then=="function")return Ve(be,Ld(me),$e);if(me.$$typeof===x)return Ve(be,jd(be,me),$e);Vd(be,me)}return null}function we(be,me,$e,He){var pt=me!==null?me.key:null;if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return pt!==null?null:ee(be,me,""+$e,He);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case S:return $e.key===pt?se(be,me,$e,He):null;case b:return $e.key===pt?xe(be,me,$e,He):null;case z:return $e=Ei($e),we(be,me,$e,He)}if(B($e)||Y($e))return pt!==null?null:De(be,me,$e,He,null);if(typeof $e.then=="function")return we(be,me,Ld($e),He);if($e.$$typeof===x)return we(be,me,jd(be,$e),He);Vd(be,$e)}return null}function Re(be,me,$e,He,pt){if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return be=be.get($e)||null,ee(me,be,""+He,pt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case S:return be=be.get(He.key===null?$e:He.key)||null,se(me,be,He,pt);case b:return be=be.get(He.key===null?$e:He.key)||null,xe(me,be,He,pt);case z:return He=Ei(He),Re(be,me,$e,He,pt)}if(B(He)||Y(He))return be=be.get($e)||null,De(me,be,He,pt,null);if(typeof He.then=="function")return Re(be,me,$e,Ld(He),pt);if(He.$$typeof===x)return Re(be,me,$e,jd(me,He),pt);Vd(me,He)}return null}function st(be,me,$e,He){for(var pt=null,rn=null,ct=me,jt=me=0,Xt=null;ct!==null&&jt<$e.length;jt++){ct.index>jt?(Xt=ct,ct=null):Xt=ct.sibling;var on=we(be,ct,$e[jt],He);if(on===null){ct===null&&(ct=Xt);break}o&&ct&&on.alternate===null&&a(be,ct),me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on,ct=Xt}if(jt===$e.length)return u(be,ct),Qt&&ta(be,jt),pt;if(ct===null){for(;jt<$e.length;jt++)ct=Ve(be,$e[jt],He),ct!==null&&(me=E(ct,me,jt),rn===null?pt=ct:rn.sibling=ct,rn=ct);return Qt&&ta(be,jt),pt}for(ct=m(ct);jt<$e.length;jt++)Xt=Re(ct,be,jt,$e[jt],He),Xt!==null&&(o&&Xt.alternate!==null&&ct.delete(Xt.key===null?jt:Xt.key),me=E(Xt,me,jt),rn===null?pt=Xt:rn.sibling=Xt,rn=Xt);return o&&ct.forEach(function(Ka){return a(be,Ka)}),Qt&&ta(be,jt),pt}function vt(be,me,$e,He){if($e==null)throw Error(r(151));for(var pt=null,rn=null,ct=me,jt=me=0,Xt=null,on=$e.next();ct!==null&&!on.done;jt++,on=$e.next()){ct.index>jt?(Xt=ct,ct=null):Xt=ct.sibling;var Ka=we(be,ct,on.value,He);if(Ka===null){ct===null&&(ct=Xt);break}o&&ct&&Ka.alternate===null&&a(be,ct),me=E(Ka,me,jt),rn===null?pt=Ka:rn.sibling=Ka,rn=Ka,ct=Xt}if(on.done)return u(be,ct),Qt&&ta(be,jt),pt;if(ct===null){for(;!on.done;jt++,on=$e.next())on=Ve(be,on.value,He),on!==null&&(me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on);return Qt&&ta(be,jt),pt}for(ct=m(ct);!on.done;jt++,on=$e.next())on=Re(ct,be,jt,on.value,He),on!==null&&(o&&on.alternate!==null&&ct.delete(on.key===null?jt:on.key),me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on);return o&&ct.forEach(function(SP){return a(be,SP)}),Qt&&ta(be,jt),pt}function vn(be,me,$e,He){if(typeof $e=="object"&&$e!==null&&$e.type===$&&$e.key===null&&($e=$e.props.children),typeof $e=="object"&&$e!==null){switch($e.$$typeof){case S:e:{for(var pt=$e.key;me!==null;){if(me.key===pt){if(pt=$e.type,pt===$){if(me.tag===7){u(be,me.sibling),He=v(me,$e.props.children),He.return=be,be=He;break e}}else if(me.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===z&&Ei(pt)===me.type){u(be,me.sibling),He=v(me,$e.props),nc(He,$e),He.return=be,be=He;break e}u(be,me);break}else a(be,me);me=me.sibling}$e.type===$?(He=Si($e.props.children,be.mode,He,$e.key),He.return=be,be=He):(He=zd($e.type,$e.key,$e.props,null,be.mode,He),nc(He,$e),He.return=be,be=He)}return k(be);case b:e:{for(pt=$e.key;me!==null;){if(me.key===pt)if(me.tag===4&&me.stateNode.containerInfo===$e.containerInfo&&me.stateNode.implementation===$e.implementation){u(be,me.sibling),He=v(me,$e.children||[]),He.return=be,be=He;break e}else{u(be,me);break}else a(be,me);me=me.sibling}He=gg($e,be.mode,He),He.return=be,be=He}return k(be);case z:return $e=Ei($e),vn(be,me,$e,He)}if(B($e))return st(be,me,$e,He);if(Y($e)){if(pt=Y($e),typeof pt!="function")throw Error(r(150));return $e=pt.call($e),vt(be,me,$e,He)}if(typeof $e.then=="function")return vn(be,me,Ld($e),He);if($e.$$typeof===x)return vn(be,me,jd(be,$e),He);Vd(be,$e)}return typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint"?($e=""+$e,me!==null&&me.tag===6?(u(be,me.sibling),He=v(me,$e),He.return=be,be=He):(u(be,me),He=pg($e,be.mode,He),He.return=be,be=He),k(be)):u(be,me)}return function(be,me,$e,He){try{tc=0;var pt=vn(be,me,$e,He);return Rl=null,pt}catch(ct){if(ct===Ml||ct===Hd)throw ct;var rn=Ur(29,ct,null,be.mode);return rn.lanes=He,rn.return=be,rn}}}var Ri=hC(!0),yC=hC(!1),za=!1;function Rg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tg(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Aa(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Da(o,a,u){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(ln&2)!==0){var v=m.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),m.pending=a,a=Pd(o),eC(o,null,u),a}return Id(o,m,a,u),Pd(o)}function rc(o,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Me(o,u)}}function Og(o,a){var u=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var v=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var k={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?v=E=k:E=E.next=k,u=u.next}while(u!==null);E===null?v=E=a:E=E.next=a}else v=E=a;u={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:m.shared,callbacks:m.callbacks},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=a:o.next=a,u.lastBaseUpdate=a}var Ng=!1;function oc(){if(Ng){var o=El;if(o!==null)throw o}}function ac(o,a,u,m){Ng=!1;var v=o.updateQueue;za=!1;var E=v.firstBaseUpdate,k=v.lastBaseUpdate,ee=v.shared.pending;if(ee!==null){v.shared.pending=null;var se=ee,xe=se.next;se.next=null,k===null?E=xe:k.next=xe,k=se;var De=o.alternate;De!==null&&(De=De.updateQueue,ee=De.lastBaseUpdate,ee!==k&&(ee===null?De.firstBaseUpdate=xe:ee.next=xe,De.lastBaseUpdate=se))}if(E!==null){var Ve=v.baseState;k=0,De=xe=se=null,ee=E;do{var we=ee.lane&-536870913,Re=we!==ee.lane;if(Re?(Gt&we)===we:(m&we)===we){we!==0&&we===wl&&(Ng=!0),De!==null&&(De=De.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var st=o,vt=ee;we=a;var vn=u;switch(vt.tag){case 1:if(st=vt.payload,typeof st=="function"){Ve=st.call(vn,Ve,we);break e}Ve=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=vt.payload,we=typeof st=="function"?st.call(vn,Ve,we):st,we==null)break e;Ve=h({},Ve,we);break e;case 2:za=!0}}we=ee.callback,we!==null&&(o.flags|=64,Re&&(o.flags|=8192),Re=v.callbacks,Re===null?v.callbacks=[we]:Re.push(we))}else Re={lane:we,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},De===null?(xe=De=Re,se=Ve):De=De.next=Re,k|=we;if(ee=ee.next,ee===null){if(ee=v.shared.pending,ee===null)break;Re=ee,ee=Re.next,Re.next=null,v.lastBaseUpdate=Re,v.shared.pending=null}}while(!0);De===null&&(se=Ve),v.baseState=se,v.firstBaseUpdate=xe,v.lastBaseUpdate=De,E===null&&(v.shared.lanes=0),La|=k,o.lanes=k,o.memoizedState=Ve}}function bC(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function vC(o,a){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)bC(u[o],a)}var Tl=P(null),Fd=P(0);function SC(o,a){o=fa,q(Fd,o),q(Tl,a),fa=o|a.baseLanes}function Ig(){q(Fd,fa),q(Tl,Tl.current)}function Pg(){fa=Fd.current,D(Tl),D(Fd)}var Gr=P(null),uo=null;function ja(o){var a=o.alternate;q(Hn,Hn.current&1),q(Gr,o),uo===null&&(a===null||Tl.current!==null||a.memoizedState!==null)&&(uo=o)}function zg(o){q(Hn,Hn.current),q(Gr,o),uo===null&&(uo=o)}function CC(o){o.tag===22?(q(Hn,Hn.current),q(Gr,o),uo===null&&(uo=o)):_a()}function _a(){q(Hn,Hn.current),q(Gr,Gr.current)}function Xr(o){D(Gr),uo===o&&(uo=null),D(Hn)}var Hn=P(0);function kd(o){for(var a=o;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Bh(u)||Lh(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var oa=0,zt=null,yn=null,Wn=null,Wd=!1,Ol=!1,Ti=!1,qd=0,ic=0,Nl=null,uI=0;function zn(){throw Error(r(321))}function Ag(o,a){if(a===null)return!1;for(var u=0;u<a.length&&u<o.length;u++)if(!Yr(o[u],a[u]))return!1;return!0}function Dg(o,a,u,m,v,E){return oa=E,zt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=o===null||o.memoizedState===null?o$:Kg,Ti=!1,E=u(m,v),Ti=!1,Ol&&(E=xC(a,u,m,v)),$C(o),E}function $C(o){_.H=cc;var a=yn!==null&&yn.next!==null;if(oa=0,Wn=yn=zt=null,Wd=!1,ic=0,Nl=null,a)throw Error(r(300));o===null||qn||(o=o.dependencies,o!==null&&Dd(o)&&(qn=!0))}function xC(o,a,u,m){zt=o;var v=0;do{if(Ol&&(Nl=null),ic=0,Ol=!1,25<=v)throw Error(r(301));if(v+=1,Wn=yn=null,o.updateQueue!=null){var E=o.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}_.H=a$,E=a(u,m)}while(Ol);return E}function dI(){var o=_.H,a=o.useState()[0];return a=typeof a.then=="function"?lc(a):a,o=o.useState()[0],(yn!==null?yn.memoizedState:null)!==o&&(zt.flags|=1024),a}function jg(){var o=qd!==0;return qd=0,o}function _g(o,a,u){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~u}function Hg(o){if(Wd){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Wd=!1}oa=0,Wn=yn=zt=null,Ol=!1,ic=qd=0,Nl=null}function Tr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wn===null?zt.memoizedState=Wn=o:Wn=Wn.next=o,Wn}function Bn(){if(yn===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=yn.next;var a=Wn===null?zt.memoizedState:Wn.next;if(a!==null)Wn=a,yn=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));yn=o,o={memoizedState:yn.memoizedState,baseState:yn.baseState,baseQueue:yn.baseQueue,queue:yn.queue,next:null},Wn===null?zt.memoizedState=Wn=o:Wn=Wn.next=o}return Wn}function Yd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lc(o){var a=ic;return ic+=1,Nl===null&&(Nl=[]),o=mC(Nl,o,a),a=zt,(Wn===null?a.memoizedState:Wn.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?o$:Kg),o}function Ud(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return lc(o);if(o.$$typeof===x)return gr(o)}throw Error(r(438,String(o)))}function Bg(o){var a=null,u=zt.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var m=zt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(a={data:m.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Yd(),zt.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(o),m=0;m<o;m++)u[m]=W;return a.index++,u}function aa(o,a){return typeof a=="function"?a(o):a}function Gd(o){var a=Bn();return Lg(a,yn,o)}function Lg(o,a,u){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var v=o.baseQueue,E=m.pending;if(E!==null){if(v!==null){var k=v.next;v.next=E.next,E.next=k}a.baseQueue=v=E,m.pending=null}if(E=o.baseState,v===null)o.memoizedState=E;else{a=v.next;var ee=k=null,se=null,xe=a,De=!1;do{var Ve=xe.lane&-536870913;if(Ve!==xe.lane?(Gt&Ve)===Ve:(oa&Ve)===Ve){var we=xe.revertLane;if(we===0)se!==null&&(se=se.next={lane:0,revertLane:0,gesture:null,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null}),Ve===wl&&(De=!0);else if((oa&we)===we){xe=xe.next,we===wl&&(De=!0);continue}else Ve={lane:0,revertLane:xe.revertLane,gesture:null,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},se===null?(ee=se=Ve,k=E):se=se.next=Ve,zt.lanes|=we,La|=we;Ve=xe.action,Ti&&u(E,Ve),E=xe.hasEagerState?xe.eagerState:u(E,Ve)}else we={lane:Ve,revertLane:xe.revertLane,gesture:xe.gesture,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},se===null?(ee=se=we,k=E):se=se.next=we,zt.lanes|=Ve,La|=Ve;xe=xe.next}while(xe!==null&&xe!==a);if(se===null?k=E:se.next=ee,!Yr(E,o.memoizedState)&&(qn=!0,De&&(u=El,u!==null)))throw u;o.memoizedState=E,o.baseState=k,o.baseQueue=se,m.lastRenderedState=E}return v===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function Vg(o){var a=Bn(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var m=u.dispatch,v=u.pending,E=a.memoizedState;if(v!==null){u.pending=null;var k=v=v.next;do E=o(E,k.action),k=k.next;while(k!==v);Yr(E,a.memoizedState)||(qn=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,m]}function wC(o,a,u){var m=zt,v=Bn(),E=Qt;if(E){if(u===void 0)throw Error(r(407));u=u()}else u=a();var k=!Yr((yn||v).memoizedState,u);if(k&&(v.memoizedState=u,qn=!0),v=v.queue,Wg(RC.bind(null,m,v,o),[o]),v.getSnapshot!==a||k||Wn!==null&&Wn.memoizedState.tag&1){if(m.flags|=2048,Il(9,{destroy:void 0},MC.bind(null,m,v,u,a),null),Cn===null)throw Error(r(349));E||(oa&127)!==0||EC(m,a,u)}return u}function EC(o,a,u){o.flags|=16384,o={getSnapshot:a,value:u},a=zt.updateQueue,a===null?(a=Yd(),zt.updateQueue=a,a.stores=[o]):(u=a.stores,u===null?a.stores=[o]:u.push(o))}function MC(o,a,u,m){a.value=u,a.getSnapshot=m,TC(a)&&OC(o)}function RC(o,a,u){return u(function(){TC(a)&&OC(o)})}function TC(o){var a=o.getSnapshot;o=o.value;try{var u=a();return!Yr(o,u)}catch{return!0}}function OC(o){var a=vi(o,2);a!==null&&Hr(a,o,2)}function Fg(o){var a=Tr();if(typeof o=="function"){var u=o;if(o=u(),Ti){ve(!0);try{u()}finally{ve(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:o},a}function NC(o,a,u,m){return o.baseState=u,Lg(o,yn,typeof m=="function"?m:aa)}function fI(o,a,u,m,v){if(Qd(o))throw Error(r(485));if(o=a.action,o!==null){var E={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){E.listeners.push(k)}};_.T!==null?u(!0):E.isTransition=!1,m(E),u=a.pending,u===null?(E.next=a.pending=E,IC(a,E)):(E.next=u.next,a.pending=u.next=E)}}function IC(o,a){var u=a.action,m=a.payload,v=o.state;if(a.isTransition){var E=_.T,k={};_.T=k;try{var ee=u(v,m),se=_.S;se!==null&&se(k,ee),PC(o,a,ee)}catch(xe){kg(o,a,xe)}finally{E!==null&&k.types!==null&&(E.types=k.types),_.T=E}}else try{E=u(v,m),PC(o,a,E)}catch(xe){kg(o,a,xe)}}function PC(o,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){zC(o,a,m)},function(m){return kg(o,a,m)}):zC(o,a,u)}function zC(o,a,u){a.status="fulfilled",a.value=u,AC(a),o.state=u,a=o.pending,a!==null&&(u=a.next,u===a?o.pending=null:(u=u.next,a.next=u,IC(o,u)))}function kg(o,a,u){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,AC(a),a=a.next;while(a!==m)}o.action=null}function AC(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function DC(o,a){return a}function jC(o,a){if(Qt){var u=Cn.formState;if(u!==null){e:{var m=zt;if(Qt){if(Rn){t:{for(var v=Rn,E=co;v.nodeType!==8;){if(!E){v=null;break t}if(v=fo(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E==="F!"||E==="F"?v:null}if(v){Rn=fo(v.nextSibling),m=v.data==="F!";break e}}Ia(m)}m=!1}m&&(a=u[0])}}return u=Tr(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:DC,lastRenderedState:a},u.queue=m,u=t$.bind(null,zt,m),m.dispatch=u,m=Fg(!1),E=Xg.bind(null,zt,!1,m.queue),m=Tr(),v={state:a,dispatch:null,action:o,pending:null},m.queue=v,u=fI.bind(null,zt,v,E,u),v.dispatch=u,m.memoizedState=o,[a,u,!1]}function _C(o){var a=Bn();return HC(a,yn,o)}function HC(o,a,u){if(a=Lg(o,a,DC)[0],o=Gd(aa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=lc(a)}catch(k){throw k===Ml?Hd:k}else m=a;a=Bn();var v=a.queue,E=v.dispatch;return u!==a.memoizedState&&(zt.flags|=2048,Il(9,{destroy:void 0},mI.bind(null,v,u),null)),[m,E,o]}function mI(o,a){o.action=a}function BC(o){var a=Bn(),u=yn;if(u!==null)return HC(a,u,o);Bn(),a=a.memoizedState,u=Bn();var m=u.queue.dispatch;return u.memoizedState=o,[a,m,!1]}function Il(o,a,u,m){return o={tag:o,create:u,deps:m,inst:a,next:null},a=zt.updateQueue,a===null&&(a=Yd(),zt.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=o.next=o:(m=u.next,u.next=o,o.next=m,a.lastEffect=o),o}function LC(){return Bn().memoizedState}function Xd(o,a,u,m){var v=Tr();zt.flags|=o,v.memoizedState=Il(1|a,{destroy:void 0},u,m===void 0?null:m)}function Kd(o,a,u,m){var v=Bn();m=m===void 0?null:m;var E=v.memoizedState.inst;yn!==null&&m!==null&&Ag(m,yn.memoizedState.deps)?v.memoizedState=Il(a,E,u,m):(zt.flags|=o,v.memoizedState=Il(1|a,E,u,m))}function VC(o,a){Xd(8390656,8,o,a)}function Wg(o,a){Kd(2048,8,o,a)}function pI(o){zt.flags|=4;var a=zt.updateQueue;if(a===null)a=Yd(),zt.updateQueue=a,a.events=[o];else{var u=a.events;u===null?a.events=[o]:u.push(o)}}function FC(o){var a=Bn().memoizedState;return pI({ref:a,nextImpl:o}),function(){if((ln&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function kC(o,a){return Kd(4,2,o,a)}function WC(o,a){return Kd(4,4,o,a)}function qC(o,a){if(typeof a=="function"){o=o();var u=a(o);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function YC(o,a,u){u=u!=null?u.concat([o]):null,Kd(4,4,qC.bind(null,a,o),u)}function qg(){}function UC(o,a){var u=Bn();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&Ag(a,m[1])?m[0]:(u.memoizedState=[o,a],o)}function GC(o,a){var u=Bn();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&Ag(a,m[1]))return m[0];if(m=o(),Ti){ve(!0);try{o()}finally{ve(!1)}}return u.memoizedState=[m,a],m}function Yg(o,a,u){return u===void 0||(oa&1073741824)!==0&&(Gt&261930)===0?o.memoizedState=a:(o.memoizedState=u,o=X$(),zt.lanes|=o,La|=o,u)}function XC(o,a,u,m){return Yr(u,a)?u:Tl.current!==null?(o=Yg(o,u,m),Yr(o,a)||(qn=!0),o):(oa&42)===0||(oa&1073741824)!==0&&(Gt&261930)===0?(qn=!0,o.memoizedState=u):(o=X$(),zt.lanes|=o,La|=o,a)}function KC(o,a,u,m,v){var E=H.p;H.p=E!==0&&8>E?E:8;var k=_.T,ee={};_.T=ee,Xg(o,!1,a,u);try{var se=v(),xe=_.S;if(xe!==null&&xe(ee,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var De=cI(se,m);sc(o,a,De,Zr(o))}else sc(o,a,m,Zr(o))}catch(Ve){sc(o,a,{then:function(){},status:"rejected",reason:Ve},Zr())}finally{H.p=E,k!==null&&ee.types!==null&&(k.types=ee.types),_.T=k}}function gI(){}function Ug(o,a,u,m){if(o.tag!==5)throw Error(r(476));var v=QC(o).queue;KC(o,v,a,I,u===null?gI:function(){return ZC(o),u(m)})}function QC(o){var a=o.memoizedState;if(a!==null)return a;a={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:I},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:u},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function ZC(o){var a=QC(o);a.next===null&&(a=o.alternate.memoizedState),sc(o,a.next.queue,{},Zr())}function Gg(){return gr(Ec)}function JC(){return Bn().memoizedState}function e$(){return Bn().memoizedState}function hI(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var u=Zr();o=Aa(u);var m=Da(a,o,u);m!==null&&(Hr(m,a,u),rc(m,a,u)),a={cache:xg()},o.payload=a;return}a=a.return}}function yI(o,a,u){var m=Zr();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Qd(o)?n$(a,u):(u=fg(o,a,u,m),u!==null&&(Hr(u,o,m),r$(u,a,m)))}function t$(o,a,u){var m=Zr();sc(o,a,u,m)}function sc(o,a,u,m){var v={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Qd(o))n$(a,v);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var k=a.lastRenderedState,ee=E(k,u);if(v.hasEagerState=!0,v.eagerState=ee,Yr(ee,k))return Id(o,a,v,0),Cn===null&&Nd(),!1}catch{}if(u=fg(o,a,v,m),u!==null)return Hr(u,o,m),r$(u,a,m),!0}return!1}function Xg(o,a,u,m){if(m={lane:2,revertLane:Rh(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Qd(o)){if(a)throw Error(r(479))}else a=fg(o,u,m,2),a!==null&&Hr(a,o,2)}function Qd(o){var a=o.alternate;return o===zt||a!==null&&a===zt}function n$(o,a){Ol=Wd=!0;var u=o.pending;u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a}function r$(o,a,u){if((u&4194048)!==0){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Me(o,u)}}var cc={readContext:gr,use:Ud,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useLayoutEffect:zn,useInsertionEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useSyncExternalStore:zn,useId:zn,useHostTransitionStatus:zn,useFormState:zn,useActionState:zn,useOptimistic:zn,useMemoCache:zn,useCacheRefresh:zn};cc.useEffectEvent=zn;var o$={readContext:gr,use:Ud,useCallback:function(o,a){return Tr().memoizedState=[o,a===void 0?null:a],o},useContext:gr,useEffect:VC,useImperativeHandle:function(o,a,u){u=u!=null?u.concat([o]):null,Xd(4194308,4,qC.bind(null,a,o),u)},useLayoutEffect:function(o,a){return Xd(4194308,4,o,a)},useInsertionEffect:function(o,a){Xd(4,2,o,a)},useMemo:function(o,a){var u=Tr();a=a===void 0?null:a;var m=o();if(Ti){ve(!0);try{o()}finally{ve(!1)}}return u.memoizedState=[m,a],m},useReducer:function(o,a,u){var m=Tr();if(u!==void 0){var v=u(a);if(Ti){ve(!0);try{u(a)}finally{ve(!1)}}}else v=a;return m.memoizedState=m.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},m.queue=o,o=o.dispatch=yI.bind(null,zt,o),[m.memoizedState,o]},useRef:function(o){var a=Tr();return o={current:o},a.memoizedState=o},useState:function(o){o=Fg(o);var a=o.queue,u=t$.bind(null,zt,a);return a.dispatch=u,[o.memoizedState,u]},useDebugValue:qg,useDeferredValue:function(o,a){var u=Tr();return Yg(u,o,a)},useTransition:function(){var o=Fg(!1);return o=KC.bind(null,zt,o.queue,!0,!1),Tr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,u){var m=zt,v=Tr();if(Qt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),Cn===null)throw Error(r(349));(Gt&127)!==0||EC(m,a,u)}v.memoizedState=u;var E={value:u,getSnapshot:a};return v.queue=E,VC(RC.bind(null,m,E,o),[o]),m.flags|=2048,Il(9,{destroy:void 0},MC.bind(null,m,E,u,a),null),u},useId:function(){var o=Tr(),a=Cn.identifierPrefix;if(Qt){var u=Lo,m=Bo;u=(m&~(1<<32-Oe(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=qd++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=uI++,a="_"+a+"r_"+u.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:Gg,useFormState:jC,useActionState:jC,useOptimistic:function(o){var a=Tr();a.memoizedState=a.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Xg.bind(null,zt,!0,u),u.dispatch=a,[o,a]},useMemoCache:Bg,useCacheRefresh:function(){return Tr().memoizedState=hI.bind(null,zt)},useEffectEvent:function(o){var a=Tr(),u={impl:o};return a.memoizedState=u,function(){if((ln&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Kg={readContext:gr,use:Ud,useCallback:UC,useContext:gr,useEffect:Wg,useImperativeHandle:YC,useInsertionEffect:kC,useLayoutEffect:WC,useMemo:GC,useReducer:Gd,useRef:LC,useState:function(){return Gd(aa)},useDebugValue:qg,useDeferredValue:function(o,a){var u=Bn();return XC(u,yn.memoizedState,o,a)},useTransition:function(){var o=Gd(aa)[0],a=Bn().memoizedState;return[typeof o=="boolean"?o:lc(o),a]},useSyncExternalStore:wC,useId:JC,useHostTransitionStatus:Gg,useFormState:_C,useActionState:_C,useOptimistic:function(o,a){var u=Bn();return NC(u,yn,o,a)},useMemoCache:Bg,useCacheRefresh:e$};Kg.useEffectEvent=FC;var a$={readContext:gr,use:Ud,useCallback:UC,useContext:gr,useEffect:Wg,useImperativeHandle:YC,useInsertionEffect:kC,useLayoutEffect:WC,useMemo:GC,useReducer:Vg,useRef:LC,useState:function(){return Vg(aa)},useDebugValue:qg,useDeferredValue:function(o,a){var u=Bn();return yn===null?Yg(u,o,a):XC(u,yn.memoizedState,o,a)},useTransition:function(){var o=Vg(aa)[0],a=Bn().memoizedState;return[typeof o=="boolean"?o:lc(o),a]},useSyncExternalStore:wC,useId:JC,useHostTransitionStatus:Gg,useFormState:BC,useActionState:BC,useOptimistic:function(o,a){var u=Bn();return yn!==null?NC(u,yn,o,a):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:Bg,useCacheRefresh:e$};a$.useEffectEvent=FC;function Qg(o,a,u,m){a=o.memoizedState,u=u(m,a),u=u==null?a:h({},a,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var Zg={enqueueSetState:function(o,a,u){o=o._reactInternals;var m=Zr(),v=Aa(m);v.payload=a,u!=null&&(v.callback=u),a=Da(o,v,m),a!==null&&(Hr(a,o,m),rc(a,o,m))},enqueueReplaceState:function(o,a,u){o=o._reactInternals;var m=Zr(),v=Aa(m);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=Da(o,v,m),a!==null&&(Hr(a,o,m),rc(a,o,m))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var u=Zr(),m=Aa(u);m.tag=2,a!=null&&(m.callback=a),a=Da(o,m,u),a!==null&&(Hr(a,o,u),rc(a,o,u))}};function i$(o,a,u,m,v,E,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,E,k):a.prototype&&a.prototype.isPureReactComponent?!Xs(u,m)||!Xs(v,E):!0}function l$(o,a,u,m){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,m),a.state!==o&&Zg.enqueueReplaceState(a,a.state,null)}function Oi(o,a){var u=a;if("ref"in a){u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}if(o=o.defaultProps){u===a&&(u=h({},u));for(var v in o)u[v]===void 0&&(u[v]=o[v])}return u}function s$(o){Od(o)}function c$(o){console.error(o)}function u$(o){Od(o)}function Zd(o,a){try{var u=o.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function d$(o,a,u){try{var m=o.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Jg(o,a,u){return u=Aa(u),u.tag=3,u.payload={element:null},u.callback=function(){Zd(o,a)},u}function f$(o){return o=Aa(o),o.tag=3,o}function m$(o,a,u,m){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var E=m.value;o.payload=function(){return v(E)},o.callback=function(){d$(a,u,m)}}var k=u.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){d$(a,u,m),typeof v!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var ee=m.stack;this.componentDidCatch(m.value,{componentStack:ee!==null?ee:""})})}function bI(o,a,u,m,v){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&xl(a,u,v,!0),u=Gr.current,u!==null){switch(u.tag){case 31:case 13:return uo===null?df():u.alternate===null&&An===0&&(An=3),u.flags&=-257,u.flags|=65536,u.lanes=v,m===Bd?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),wh(o,m,v)),!1;case 22:return u.flags|=65536,m===Bd?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([m]):u.add(m)),wh(o,m,v)),!1}throw Error(r(435,u.tag))}return wh(o,m,v),df(),!1}if(Qt)return a=Gr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,m!==bg&&(o=Error(r(422),{cause:m}),Zs(io(o,u)))):(m!==bg&&(a=Error(r(423),{cause:m}),Zs(io(a,u))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,m=io(m,u),v=Jg(o.stateNode,m,v),Og(o,v),An!==4&&(An=2)),!1;var E=Error(r(520),{cause:m});if(E=io(E,u),yc===null?yc=[E]:yc.push(E),An!==4&&(An=2),a===null)return!0;m=io(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,o=v&-v,u.lanes|=o,o=Jg(u.stateNode,m,o),Og(u,o),!1;case 1:if(a=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Va===null||!Va.has(E))))return u.flags|=65536,v&=-v,u.lanes|=v,v=f$(v),m$(v,o,u,m),Og(u,v),!1}u=u.return}while(u!==null);return!1}var eh=Error(r(461)),qn=!1;function hr(o,a,u,m){a.child=o===null?yC(a,null,u,m):Ri(a,o.child,u,m)}function p$(o,a,u,m,v){u=u.render;var E=a.ref;if("ref"in m){var k={};for(var ee in m)ee!=="ref"&&(k[ee]=m[ee])}else k=m;return xi(a),m=Dg(o,a,u,k,E,v),ee=jg(),o!==null&&!qn?(_g(o,a,v),ia(o,a,v)):(Qt&&ee&&hg(a),a.flags|=1,hr(o,a,m,v),a.child)}function g$(o,a,u,m,v){if(o===null){var E=u.type;return typeof E=="function"&&!mg(E)&&E.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=E,h$(o,a,E,m,v)):(o=zd(u.type,null,m,a,a.mode,v),o.ref=a.ref,o.return=a,a.child=o)}if(E=o.child,!sh(o,v)){var k=E.memoizedProps;if(u=u.compare,u=u!==null?u:Xs,u(k,m)&&o.ref===a.ref)return ia(o,a,v)}return a.flags|=1,o=ea(E,m),o.ref=a.ref,o.return=a,a.child=o}function h$(o,a,u,m,v){if(o!==null){var E=o.memoizedProps;if(Xs(E,m)&&o.ref===a.ref)if(qn=!1,a.pendingProps=m=E,sh(o,v))(o.flags&131072)!==0&&(qn=!0);else return a.lanes=o.lanes,ia(o,a,v)}return th(o,a,u,m,v)}function y$(o,a,u,m){var v=m.children,E=o!==null?o.memoizedState:null;if(o===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((a.flags&128)!==0){if(E=E!==null?E.baseLanes|u:u,o!==null){for(m=a.child=o.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~E}else m=0,a.child=null;return b$(o,a,E,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&_d(a,E!==null?E.cachePool:null),E!==null?SC(a,E):Ig(),CC(a);else return m=a.lanes=536870912,b$(o,a,E!==null?E.baseLanes|u:u,u,m)}else E!==null?(_d(a,E.cachePool),SC(a,E),_a(),a.memoizedState=null):(o!==null&&_d(a,null),Ig(),_a());return hr(o,a,v,u),a.child}function uc(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function b$(o,a,u,m,v){var E=Eg();return E=E===null?null:{parent:kn._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},o!==null&&_d(a,null),Ig(),CC(a),o!==null&&xl(o,a,m,!0),a.childLanes=v,null}function Jd(o,a){return a=tf({mode:a.mode,children:a.children},o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function v$(o,a,u){return Ri(a,o.child,null,u),o=Jd(a,a.pendingProps),o.flags|=2,Xr(a),a.memoizedState=null,o}function vI(o,a,u){var m=a.pendingProps,v=(a.flags&128)!==0;if(a.flags&=-129,o===null){if(Qt){if(m.mode==="hidden")return o=Jd(a,m),a.lanes=536870912,uc(null,o);if(zg(a),(o=Rn)?(o=Ix(o,co),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Oa!==null?{id:Bo,overflow:Lo}:null,retryLane:536870912,hydrationErrors:null},u=nC(o),u.return=a,a.child=u,pr=a,Rn=null)):o=null,o===null)throw Ia(a);return a.lanes=536870912,null}return Jd(a,m)}var E=o.memoizedState;if(E!==null){var k=E.dehydrated;if(zg(a),v)if(a.flags&256)a.flags&=-257,a=v$(o,a,u);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(qn||xl(o,a,u,!1),v=(u&o.childLanes)!==0,qn||v){if(m=Cn,m!==null&&(k=We(m,u),k!==0&&k!==E.retryLane))throw E.retryLane=k,vi(o,k),Hr(m,o,k),eh;df(),a=v$(o,a,u)}else o=E.treeContext,Rn=fo(k.nextSibling),pr=a,Qt=!0,Na=null,co=!1,o!==null&&aC(a,o),a=Jd(a,m),a.flags|=4096;return a}return o=ea(o.child,{mode:m.mode,children:m.children}),o.ref=a.ref,a.child=o,o.return=a,o}function ef(o,a){var u=a.ref;if(u===null)o!==null&&o.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(o===null||o.ref!==u)&&(a.flags|=4194816)}}function th(o,a,u,m,v){return xi(a),u=Dg(o,a,u,m,void 0,v),m=jg(),o!==null&&!qn?(_g(o,a,v),ia(o,a,v)):(Qt&&m&&hg(a),a.flags|=1,hr(o,a,u,v),a.child)}function S$(o,a,u,m,v,E){return xi(a),a.updateQueue=null,u=xC(a,m,u,v),$C(o),m=jg(),o!==null&&!qn?(_g(o,a,E),ia(o,a,E)):(Qt&&m&&hg(a),a.flags|=1,hr(o,a,u,E),a.child)}function C$(o,a,u,m,v){if(xi(a),a.stateNode===null){var E=vl,k=u.contextType;typeof k=="object"&&k!==null&&(E=gr(k)),E=new u(m,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=Zg,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=m,E.state=a.memoizedState,E.refs={},Rg(a),k=u.contextType,E.context=typeof k=="object"&&k!==null?gr(k):vl,E.state=a.memoizedState,k=u.getDerivedStateFromProps,typeof k=="function"&&(Qg(a,u,k,m),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(k=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),k!==E.state&&Zg.enqueueReplaceState(E,E.state,null),ac(a,m,E,v),oc(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(o===null){E=a.stateNode;var ee=a.memoizedProps,se=Oi(u,ee);E.props=se;var xe=E.context,De=u.contextType;k=vl,typeof De=="object"&&De!==null&&(k=gr(De));var Ve=u.getDerivedStateFromProps;De=typeof Ve=="function"||typeof E.getSnapshotBeforeUpdate=="function",ee=a.pendingProps!==ee,De||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(ee||xe!==k)&&l$(a,E,m,k),za=!1;var we=a.memoizedState;E.state=we,ac(a,m,E,v),oc(),xe=a.memoizedState,ee||we!==xe||za?(typeof Ve=="function"&&(Qg(a,u,Ve,m),xe=a.memoizedState),(se=za||i$(a,u,se,m,we,xe,k))?(De||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=xe),E.props=m,E.state=xe,E.context=k,m=se):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{E=a.stateNode,Tg(o,a),k=a.memoizedProps,De=Oi(u,k),E.props=De,Ve=a.pendingProps,we=E.context,xe=u.contextType,se=vl,typeof xe=="object"&&xe!==null&&(se=gr(xe)),ee=u.getDerivedStateFromProps,(xe=typeof ee=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(k!==Ve||we!==se)&&l$(a,E,m,se),za=!1,we=a.memoizedState,E.state=we,ac(a,m,E,v),oc();var Re=a.memoizedState;k!==Ve||we!==Re||za||o!==null&&o.dependencies!==null&&Dd(o.dependencies)?(typeof ee=="function"&&(Qg(a,u,ee,m),Re=a.memoizedState),(De=za||i$(a,u,De,m,we,Re,se)||o!==null&&o.dependencies!==null&&Dd(o.dependencies))?(xe||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,Re,se),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,Re,se)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||k===o.memoizedProps&&we===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&we===o.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=Re),E.props=m,E.state=Re,E.context=se,m=De):(typeof E.componentDidUpdate!="function"||k===o.memoizedProps&&we===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&we===o.memoizedState||(a.flags|=1024),m=!1)}return E=m,ef(o,a),m=(a.flags&128)!==0,E||m?(E=a.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:E.render(),a.flags|=1,o!==null&&m?(a.child=Ri(a,o.child,null,v),a.child=Ri(a,null,u,v)):hr(o,a,u,v),a.memoizedState=E.state,o=a.child):o=ia(o,a,v),o}function $$(o,a,u,m){return Ci(),a.flags|=256,hr(o,a,u,m),a.child}var nh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rh(o){return{baseLanes:o,cachePool:dC()}}function oh(o,a,u){return o=o!==null?o.childLanes&~u:0,a&&(o|=Qr),o}function x$(o,a,u){var m=a.pendingProps,v=!1,E=(a.flags&128)!==0,k;if((k=E)||(k=o!==null&&o.memoizedState===null?!1:(Hn.current&2)!==0),k&&(v=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,o===null){if(Qt){if(v?ja(a):_a(),(o=Rn)?(o=Ix(o,co),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Oa!==null?{id:Bo,overflow:Lo}:null,retryLane:536870912,hydrationErrors:null},u=nC(o),u.return=a,a.child=u,pr=a,Rn=null)):o=null,o===null)throw Ia(a);return Lh(o)?a.lanes=32:a.lanes=536870912,null}var ee=m.children;return m=m.fallback,v?(_a(),v=a.mode,ee=tf({mode:"hidden",children:ee},v),m=Si(m,v,u,null),ee.return=a,m.return=a,ee.sibling=m,a.child=ee,m=a.child,m.memoizedState=rh(u),m.childLanes=oh(o,k,u),a.memoizedState=nh,uc(null,m)):(ja(a),ah(a,ee))}var se=o.memoizedState;if(se!==null&&(ee=se.dehydrated,ee!==null)){if(E)a.flags&256?(ja(a),a.flags&=-257,a=ih(o,a,u)):a.memoizedState!==null?(_a(),a.child=o.child,a.flags|=128,a=null):(_a(),ee=m.fallback,v=a.mode,m=tf({mode:"visible",children:m.children},v),ee=Si(ee,v,u,null),ee.flags|=2,m.return=a,ee.return=a,m.sibling=ee,a.child=m,Ri(a,o.child,null,u),m=a.child,m.memoizedState=rh(u),m.childLanes=oh(o,k,u),a.memoizedState=nh,a=uc(null,m));else if(ja(a),Lh(ee)){if(k=ee.nextSibling&&ee.nextSibling.dataset,k)var xe=k.dgst;k=xe,m=Error(r(419)),m.stack="",m.digest=k,Zs({value:m,source:null,stack:null}),a=ih(o,a,u)}else if(qn||xl(o,a,u,!1),k=(u&o.childLanes)!==0,qn||k){if(k=Cn,k!==null&&(m=We(k,u),m!==0&&m!==se.retryLane))throw se.retryLane=m,vi(o,m),Hr(k,o,m),eh;Bh(ee)||df(),a=ih(o,a,u)}else Bh(ee)?(a.flags|=192,a.child=o.child,a=null):(o=se.treeContext,Rn=fo(ee.nextSibling),pr=a,Qt=!0,Na=null,co=!1,o!==null&&aC(a,o),a=ah(a,m.children),a.flags|=4096);return a}return v?(_a(),ee=m.fallback,v=a.mode,se=o.child,xe=se.sibling,m=ea(se,{mode:"hidden",children:m.children}),m.subtreeFlags=se.subtreeFlags&65011712,xe!==null?ee=ea(xe,ee):(ee=Si(ee,v,u,null),ee.flags|=2),ee.return=a,m.return=a,m.sibling=ee,a.child=m,uc(null,m),m=a.child,ee=o.child.memoizedState,ee===null?ee=rh(u):(v=ee.cachePool,v!==null?(se=kn._currentValue,v=v.parent!==se?{parent:se,pool:se}:v):v=dC(),ee={baseLanes:ee.baseLanes|u,cachePool:v}),m.memoizedState=ee,m.childLanes=oh(o,k,u),a.memoizedState=nh,uc(o.child,m)):(ja(a),u=o.child,o=u.sibling,u=ea(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,o!==null&&(k=a.deletions,k===null?(a.deletions=[o],a.flags|=16):k.push(o)),a.child=u,a.memoizedState=null,u)}function ah(o,a){return a=tf({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function tf(o,a){return o=Ur(22,o,null,a),o.lanes=0,o}function ih(o,a,u){return Ri(a,o.child,null,u),o=ah(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function w$(o,a,u){o.lanes|=a;var m=o.alternate;m!==null&&(m.lanes|=a),Cg(o.return,a,u)}function lh(o,a,u,m,v,E){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:v,treeForkCount:E}:(k.isBackwards=a,k.rendering=null,k.renderingStartTime=0,k.last=m,k.tail=u,k.tailMode=v,k.treeForkCount=E)}function E$(o,a,u){var m=a.pendingProps,v=m.revealOrder,E=m.tail;m=m.children;var k=Hn.current,ee=(k&2)!==0;if(ee?(k=k&1|2,a.flags|=128):k&=1,q(Hn,k),hr(o,a,m,u),m=Qt?Qs:0,!ee&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&w$(o,u,a);else if(o.tag===19)w$(o,u,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(u=a.child,v=null;u!==null;)o=u.alternate,o!==null&&kd(o)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),lh(a,!1,v,u,E,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=a.child,a.child=null;v!==null;){if(o=v.alternate,o!==null&&kd(o)===null){a.child=v;break}o=v.sibling,v.sibling=u,u=v,v=o}lh(a,!0,u,null,E,m);break;case"together":lh(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function ia(o,a,u){if(o!==null&&(a.dependencies=o.dependencies),La|=a.lanes,(u&a.childLanes)===0)if(o!==null){if(xl(o,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,u=ea(o,o.pendingProps),a.child=u,u.return=a;o.sibling!==null;)o=o.sibling,u=u.sibling=ea(o,o.pendingProps),u.return=a;u.sibling=null}return a.child}function sh(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&Dd(o)))}function SI(o,a,u){switch(a.tag){case 3:ie(a,a.stateNode.containerInfo),Pa(a,kn,o.memoizedState.cache),Ci();break;case 27:case 5:oe(a);break;case 4:ie(a,a.stateNode.containerInfo);break;case 10:Pa(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,zg(a),null;break;case 13:var m=a.memoizedState;if(m!==null)return m.dehydrated!==null?(ja(a),a.flags|=128,null):(u&a.child.childLanes)!==0?x$(o,a,u):(ja(a),o=ia(o,a,u),o!==null?o.sibling:null);ja(a);break;case 19:var v=(o.flags&128)!==0;if(m=(u&a.childLanes)!==0,m||(xl(o,a,u,!1),m=(u&a.childLanes)!==0),v){if(m)return E$(o,a,u);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),q(Hn,Hn.current),m)break;return null;case 22:return a.lanes=0,y$(o,a,u,a.pendingProps);case 24:Pa(a,kn,o.memoizedState.cache)}return ia(o,a,u)}function M$(o,a,u){if(o!==null)if(o.memoizedProps!==a.pendingProps)qn=!0;else{if(!sh(o,u)&&(a.flags&128)===0)return qn=!1,SI(o,a,u);qn=(o.flags&131072)!==0}else qn=!1,Qt&&(a.flags&1048576)!==0&&oC(a,Qs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(o=Ei(a.elementType),a.type=o,typeof o=="function")mg(o)?(m=Oi(o,m),a.tag=1,a=C$(null,a,o,m,u)):(a.tag=0,a=th(null,a,o,m,u));else{if(o!=null){var v=o.$$typeof;if(v===R){a.tag=11,a=p$(null,a,o,m,u);break e}else if(v===O){a.tag=14,a=g$(null,a,o,m,u);break e}}throw a=L(o)||o,Error(r(306,a,""))}}return a;case 0:return th(o,a,a.type,a.pendingProps,u);case 1:return m=a.type,v=Oi(m,a.pendingProps),C$(o,a,m,v,u);case 3:e:{if(ie(a,a.stateNode.containerInfo),o===null)throw Error(r(387));m=a.pendingProps;var E=a.memoizedState;v=E.element,Tg(o,a),ac(a,m,null,u);var k=a.memoizedState;if(m=k.cache,Pa(a,kn,m),m!==E.cache&&$g(a,[kn],u,!0),oc(),m=k.element,E.isDehydrated)if(E={element:m,isDehydrated:!1,cache:k.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=$$(o,a,m,u);break e}else if(m!==v){v=io(Error(r(424)),a),Zs(v),a=$$(o,a,m,u);break e}else for(o=a.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Rn=fo(o.firstChild),pr=a,Qt=!0,Na=null,co=!0,u=yC(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ci(),m===v){a=ia(o,a,u);break e}hr(o,a,m,u)}a=a.child}return a;case 26:return ef(o,a),o===null?(u=_x(a.type,null,a.pendingProps,null))?a.memoizedState=u:Qt||(u=a.type,o=a.pendingProps,m=bf(Z.current).createElement(u),m[$t]=a,m[tn]=o,yr(m,u,o),dn(m),a.stateNode=m):a.memoizedState=_x(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return oe(a),o===null&&Qt&&(m=a.stateNode=Ax(a.type,a.pendingProps,Z.current),pr=a,co=!0,v=Rn,qa(a.type)?(Vh=v,Rn=fo(m.firstChild)):Rn=v),hr(o,a,a.pendingProps.children,u),ef(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&Qt&&((v=m=Rn)&&(m=KI(m,a.type,a.pendingProps,co),m!==null?(a.stateNode=m,pr=a,Rn=fo(m.firstChild),co=!1,v=!0):v=!1),v||Ia(a)),oe(a),v=a.type,E=a.pendingProps,k=o!==null?o.memoizedProps:null,m=E.children,jh(v,E)?m=null:k!==null&&jh(v,k)&&(a.flags|=32),a.memoizedState!==null&&(v=Dg(o,a,dI,null,null,u),Ec._currentValue=v),ef(o,a),hr(o,a,m,u),a.child;case 6:return o===null&&Qt&&((o=u=Rn)&&(u=QI(u,a.pendingProps,co),u!==null?(a.stateNode=u,pr=a,Rn=null,o=!0):o=!1),o||Ia(a)),null;case 13:return x$(o,a,u);case 4:return ie(a,a.stateNode.containerInfo),m=a.pendingProps,o===null?a.child=Ri(a,null,m,u):hr(o,a,m,u),a.child;case 11:return p$(o,a,a.type,a.pendingProps,u);case 7:return hr(o,a,a.pendingProps,u),a.child;case 8:return hr(o,a,a.pendingProps.children,u),a.child;case 12:return hr(o,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,Pa(a,a.type,m.value),hr(o,a,m.children,u),a.child;case 9:return v=a.type._context,m=a.pendingProps.children,xi(a),v=gr(v),m=m(v),a.flags|=1,hr(o,a,m,u),a.child;case 14:return g$(o,a,a.type,a.pendingProps,u);case 15:return h$(o,a,a.type,a.pendingProps,u);case 19:return E$(o,a,u);case 31:return vI(o,a,u);case 22:return y$(o,a,u,a.pendingProps);case 24:return xi(a),m=gr(kn),o===null?(v=Eg(),v===null&&(v=Cn,E=xg(),v.pooledCache=E,E.refCount++,E!==null&&(v.pooledCacheLanes|=u),v=E),a.memoizedState={parent:m,cache:v},Rg(a),Pa(a,kn,v)):((o.lanes&u)!==0&&(Tg(o,a),ac(a,null,null,u),oc()),v=o.memoizedState,E=a.memoizedState,v.parent!==m?(v={parent:m,cache:m},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),Pa(a,kn,m)):(m=E.cache,Pa(a,kn,m),m!==v.cache&&$g(a,[kn],u,!0))),hr(o,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function la(o){o.flags|=4}function ch(o,a,u,m,v){if((a=(o.mode&32)!==0)&&(a=!1),a){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(J$())o.flags|=8192;else throw Mi=Bd,Mg}else o.flags&=-16777217}function R$(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Fx(a))if(J$())o.flags|=8192;else throw Mi=Bd,Mg}function nf(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?ke():536870912,o.lanes|=a,Dl|=a)}function dc(o,a){if(!Qt)switch(o.tailMode){case"hidden":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Tn(o){var a=o.alternate!==null&&o.alternate.child===o.child,u=0,m=0;if(a)for(var v=o.child;v!==null;)u|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)u|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=m,o.childLanes=u,a}function CI(o,a,u){var m=a.pendingProps;switch(yg(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tn(a),null;case 1:return Tn(a),null;case 3:return u=a.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),a.memoizedState.cache!==m&&(a.flags|=2048),ra(kn),ne(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&($l(a)?la(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,vg())),Tn(a),null;case 26:var v=a.type,E=a.memoizedState;return o===null?(la(a),E!==null?(Tn(a),R$(a,E)):(Tn(a),ch(a,v,null,m,u))):E?E!==o.memoizedState?(la(a),Tn(a),R$(a,E)):(Tn(a),a.flags&=-16777217):(o=o.memoizedProps,o!==m&&la(a),Tn(a),ch(a,v,o,m,u)),null;case 27:if(ue(a),u=Z.current,v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&la(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return Tn(a),null}o=G.current,$l(a)?iC(a):(o=Ax(v,m,u),a.stateNode=o,la(a))}return Tn(a),null;case 5:if(ue(a),v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&la(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return Tn(a),null}if(E=G.current,$l(a))iC(a);else{var k=bf(Z.current);switch(E){case 1:E=k.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:E=k.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":E=k.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":E=k.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":E=k.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof m.is=="string"?k.createElement("select",{is:m.is}):k.createElement("select"),m.multiple?E.multiple=!0:m.size&&(E.size=m.size);break;default:E=typeof m.is=="string"?k.createElement(v,{is:m.is}):k.createElement(v)}}E[$t]=a,E[tn]=m;e:for(k=a.child;k!==null;){if(k.tag===5||k.tag===6)E.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===a)break e;for(;k.sibling===null;){if(k.return===null||k.return===a)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}a.stateNode=E;e:switch(yr(E,v,m),v){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&la(a)}}return Tn(a),ch(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,u),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==m&&la(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(o=Z.current,$l(a)){if(o=a.stateNode,u=a.memoizedProps,m=null,v=pr,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}o[$t]=a,o=!!(o.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||xx(o.nodeValue,u)),o||Ia(a,!0)}else o=bf(o).createTextNode(m),o[$t]=a,a.stateNode=o}return Tn(a),null;case 31:if(u=a.memoizedState,o===null||o.memoizedState!==null){if(m=$l(a),u!==null){if(o===null){if(!m)throw Error(r(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[$t]=a}else Ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tn(a),o=!1}else u=vg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return a.flags&256?(Xr(a),a):(Xr(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Tn(a),null;case 13:if(m=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=$l(a),m!==null&&m.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[$t]=a}else Ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tn(a),v=!1}else v=vg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(Xr(a),a):(Xr(a),null)}return Xr(a),(a.flags&128)!==0?(a.lanes=u,a):(u=m!==null,o=o!==null&&o.memoizedState!==null,u&&(m=a.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),E=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),E!==v&&(m.flags|=2048)),u!==o&&u&&(a.child.flags|=8192),nf(a,a.updateQueue),Tn(a),null);case 4:return ne(),o===null&&Ih(a.stateNode.containerInfo),Tn(a),null;case 10:return ra(a.type),Tn(a),null;case 19:if(D(Hn),m=a.memoizedState,m===null)return Tn(a),null;if(v=(a.flags&128)!==0,E=m.rendering,E===null)if(v)dc(m,!1);else{if(An!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(E=kd(o),E!==null){for(a.flags|=128,dc(m,!1),o=E.updateQueue,a.updateQueue=o,nf(a,o),a.subtreeFlags=0,o=u,u=a.child;u!==null;)tC(u,o),u=u.sibling;return q(Hn,Hn.current&1|2),Qt&&ta(a,m.treeForkCount),a.child}o=o.sibling}m.tail!==null&&Pe()>sf&&(a.flags|=128,v=!0,dc(m,!1),a.lanes=4194304)}else{if(!v)if(o=kd(E),o!==null){if(a.flags|=128,v=!0,o=o.updateQueue,a.updateQueue=o,nf(a,o),dc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!E.alternate&&!Qt)return Tn(a),null}else 2*Pe()-m.renderingStartTime>sf&&u!==536870912&&(a.flags|=128,v=!0,dc(m,!1),a.lanes=4194304);m.isBackwards?(E.sibling=a.child,a.child=E):(o=m.last,o!==null?o.sibling=E:a.child=E,m.last=E)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Pe(),o.sibling=null,u=Hn.current,q(Hn,v?u&1|2:u&1),Qt&&ta(a,m.treeForkCount),o):(Tn(a),null);case 22:case 23:return Xr(a),Pg(),m=a.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(a.flags|=8192):m&&(a.flags|=8192),m?(u&536870912)!==0&&(a.flags&128)===0&&(Tn(a),a.subtreeFlags&6&&(a.flags|=8192)):Tn(a),u=a.updateQueue,u!==null&&nf(a,u.retryQueue),u=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==u&&(a.flags|=2048),o!==null&&D(wi),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ra(kn),Tn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function $I(o,a){switch(yg(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return ra(kn),ne(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return ue(a),null;case 31:if(a.memoizedState!==null){if(Xr(a),a.alternate===null)throw Error(r(340));Ci()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(Xr(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ci()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return D(Hn),null;case 4:return ne(),null;case 10:return ra(a.type),null;case 22:case 23:return Xr(a),Pg(),o!==null&&D(wi),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return ra(kn),null;case 25:return null;default:return null}}function T$(o,a){switch(yg(a),a.tag){case 3:ra(kn),ne();break;case 26:case 27:case 5:ue(a);break;case 4:ne();break;case 31:a.memoizedState!==null&&Xr(a);break;case 13:Xr(a);break;case 19:D(Hn);break;case 10:ra(a.type);break;case 22:case 23:Xr(a),Pg(),o!==null&&D(wi);break;case 24:ra(kn)}}function fc(o,a){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var v=m.next;u=v;do{if((u.tag&o)===o){m=void 0;var E=u.create,k=u.inst;m=E(),k.destroy=m}u=u.next}while(u!==v)}}catch(ee){mn(a,a.return,ee)}}function Ha(o,a,u){try{var m=a.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var E=v.next;m=E;do{if((m.tag&o)===o){var k=m.inst,ee=k.destroy;if(ee!==void 0){k.destroy=void 0,v=a;var se=u,xe=ee;try{xe()}catch(De){mn(v,se,De)}}}m=m.next}while(m!==E)}}catch(De){mn(a,a.return,De)}}function O$(o){var a=o.updateQueue;if(a!==null){var u=o.stateNode;try{vC(a,u)}catch(m){mn(o,o.return,m)}}}function N$(o,a,u){u.props=Oi(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(m){mn(o,a,m)}}function mc(o,a){try{var u=o.ref;if(u!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof u=="function"?o.refCleanup=u(m):u.current=m}}catch(v){mn(o,a,v)}}function Vo(o,a){var u=o.ref,m=o.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(v){mn(o,a,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){mn(o,a,v)}else u.current=null}function I$(o){var a=o.type,u=o.memoizedProps,m=o.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(v){mn(o,o.return,v)}}function uh(o,a,u){try{var m=o.stateNode;WI(m,o.type,u,a),m[tn]=a}catch(v){mn(o,o.return,v)}}function P$(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&qa(o.type)||o.tag===4}function dh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||P$(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&&qa(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 fh(o,a,u){var m=o.tag;if(m===5||m===6)o=o.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(o,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(o),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Eo));else if(m!==4&&(m===27&&qa(o.type)&&(u=o.stateNode,a=null),o=o.child,o!==null))for(fh(o,a,u),o=o.sibling;o!==null;)fh(o,a,u),o=o.sibling}function rf(o,a,u){var m=o.tag;if(m===5||m===6)o=o.stateNode,a?u.insertBefore(o,a):u.appendChild(o);else if(m!==4&&(m===27&&qa(o.type)&&(u=o.stateNode),o=o.child,o!==null))for(rf(o,a,u),o=o.sibling;o!==null;)rf(o,a,u),o=o.sibling}function z$(o){var a=o.stateNode,u=o.memoizedProps;try{for(var m=o.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);yr(a,m,u),a[$t]=o,a[tn]=u}catch(E){mn(o,o.return,E)}}var sa=!1,Yn=!1,mh=!1,A$=typeof WeakSet=="function"?WeakSet:Set,ar=null;function xI(o,a){if(o=o.containerInfo,Ah=Ef,o=Y1(o),ig(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var v=m.anchorOffset,E=m.focusNode;m=m.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var k=0,ee=-1,se=-1,xe=0,De=0,Ve=o,we=null;t:for(;;){for(var Re;Ve!==u||v!==0&&Ve.nodeType!==3||(ee=k+v),Ve!==E||m!==0&&Ve.nodeType!==3||(se=k+m),Ve.nodeType===3&&(k+=Ve.nodeValue.length),(Re=Ve.firstChild)!==null;)we=Ve,Ve=Re;for(;;){if(Ve===o)break t;if(we===u&&++xe===v&&(ee=k),we===E&&++De===m&&(se=k),(Re=Ve.nextSibling)!==null)break;Ve=we,we=Ve.parentNode}Ve=Re}u=ee===-1||se===-1?null:{start:ee,end:se}}else u=null}u=u||{start:0,end:0}}else u=null;for(Dh={focusedElem:o,selectionRange:u},Ef=!1,ar=a;ar!==null;)if(a=ar,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ar=o;else for(;ar!==null;){switch(a=ar,E=a.alternate,o=a.flags,a.tag){case 0:if((o&4)!==0&&(o=a.updateQueue,o=o!==null?o.events:null,o!==null))for(u=0;u<o.length;u++)v=o[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&E!==null){o=void 0,u=a,v=E.memoizedProps,E=E.memoizedState,m=u.stateNode;try{var st=Oi(u.type,v);o=m.getSnapshotBeforeUpdate(st,E),m.__reactInternalSnapshotBeforeUpdate=o}catch(vt){mn(u,u.return,vt)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,u=o.nodeType,u===9)Hh(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Hh(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=a.sibling,o!==null){o.return=a.return,ar=o;break}ar=a.return}}function D$(o,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:ua(o,u),m&4&&fc(5,u);break;case 1:if(ua(o,u),m&4)if(o=u.stateNode,a===null)try{o.componentDidMount()}catch(k){mn(u,u.return,k)}else{var v=Oi(u.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(v,a,o.__reactInternalSnapshotBeforeUpdate)}catch(k){mn(u,u.return,k)}}m&64&&O$(u),m&512&&mc(u,u.return);break;case 3:if(ua(o,u),m&64&&(o=u.updateQueue,o!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{vC(o,a)}catch(k){mn(u,u.return,k)}}break;case 27:a===null&&m&4&&z$(u);case 26:case 5:ua(o,u),a===null&&m&4&&I$(u),m&512&&mc(u,u.return);break;case 12:ua(o,u);break;case 31:ua(o,u),m&4&&H$(o,u);break;case 13:ua(o,u),m&4&&B$(o,u),m&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=PI.bind(null,u),ZI(o,u))));break;case 22:if(m=u.memoizedState!==null||sa,!m){a=a!==null&&a.memoizedState!==null||Yn,v=sa;var E=Yn;sa=m,(Yn=a)&&!E?da(o,u,(u.subtreeFlags&8772)!==0):ua(o,u),sa=v,Yn=E}break;case 30:break;default:ua(o,u)}}function j$(o){var a=o.alternate;a!==null&&(o.alternate=null,j$(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&an(a)),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,Ar=!1;function ca(o,a,u){for(u=u.child;u!==null;)_$(o,a,u),u=u.sibling}function _$(o,a,u){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(Qe,u)}catch{}switch(u.tag){case 26:Yn||Vo(u,a),ca(o,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Yn||Vo(u,a);var m=Nn,v=Ar;qa(u.type)&&(Nn=u.stateNode,Ar=!1),ca(o,a,u),$c(u.stateNode),Nn=m,Ar=v;break;case 5:Yn||Vo(u,a);case 6:if(m=Nn,v=Ar,Nn=null,ca(o,a,u),Nn=m,Ar=v,Nn!==null)if(Ar)try{(Nn.nodeType===9?Nn.body:Nn.nodeName==="HTML"?Nn.ownerDocument.body:Nn).removeChild(u.stateNode)}catch(E){mn(u,a,E)}else try{Nn.removeChild(u.stateNode)}catch(E){mn(u,a,E)}break;case 18:Nn!==null&&(Ar?(o=Nn,Ox(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),kl(o)):Ox(Nn,u.stateNode));break;case 4:m=Nn,v=Ar,Nn=u.stateNode.containerInfo,Ar=!0,ca(o,a,u),Nn=m,Ar=v;break;case 0:case 11:case 14:case 15:Ha(2,u,a),Yn||Ha(4,u,a),ca(o,a,u);break;case 1:Yn||(Vo(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&N$(u,a,m)),ca(o,a,u);break;case 21:ca(o,a,u);break;case 22:Yn=(m=Yn)||u.memoizedState!==null,ca(o,a,u),Yn=m;break;default:ca(o,a,u)}}function H$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{kl(o)}catch(u){mn(a,a.return,u)}}}function B$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{kl(o)}catch(u){mn(a,a.return,u)}}function wI(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new A$),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new A$),a;default:throw Error(r(435,o.tag))}}function of(o,a){var u=wI(o);a.forEach(function(m){if(!u.has(m)){u.add(m);var v=zI.bind(null,o,m);m.then(v,v)}})}function Dr(o,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var v=u[m],E=o,k=a,ee=k;e:for(;ee!==null;){switch(ee.tag){case 27:if(qa(ee.type)){Nn=ee.stateNode,Ar=!1;break e}break;case 5:Nn=ee.stateNode,Ar=!1;break e;case 3:case 4:Nn=ee.stateNode.containerInfo,Ar=!0;break e}ee=ee.return}if(Nn===null)throw Error(r(160));_$(E,k,v),Nn=null,Ar=!1,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)L$(a,o),a=a.sibling}var Ro=null;function L$(o,a){var u=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Dr(a,o),jr(o),m&4&&(Ha(3,o,o.return),fc(3,o),Ha(5,o,o.return));break;case 1:Dr(a,o),jr(o),m&512&&(Yn||u===null||Vo(u,u.return)),m&64&&sa&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(u=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var v=Ro;if(Dr(a,o),jr(o),m&512&&(Yn||u===null||Vo(u,u.return)),m&4){var E=u!==null?u.memoizedState:null;if(m=o.memoizedState,u===null)if(m===null)if(o.stateNode===null){e:{m=o.type,u=o.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":E=v.getElementsByTagName("title")[0],(!E||E[Ut]||E[$t]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=v.createElement(m),v.head.insertBefore(E,v.querySelector("head > title"))),yr(E,m,u),E[$t]=o,dn(E),m=E;break e;case"link":var k=Lx("link","href",v).get(m+(u.href||""));if(k){for(var ee=0;ee<k.length;ee++)if(E=k[ee],E.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&E.getAttribute("rel")===(u.rel==null?null:u.rel)&&E.getAttribute("title")===(u.title==null?null:u.title)&&E.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){k.splice(ee,1);break t}}E=v.createElement(m),yr(E,m,u),v.head.appendChild(E);break;case"meta":if(k=Lx("meta","content",v).get(m+(u.content||""))){for(ee=0;ee<k.length;ee++)if(E=k[ee],E.getAttribute("content")===(u.content==null?null:""+u.content)&&E.getAttribute("name")===(u.name==null?null:u.name)&&E.getAttribute("property")===(u.property==null?null:u.property)&&E.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&E.getAttribute("charset")===(u.charSet==null?null:u.charSet)){k.splice(ee,1);break t}}E=v.createElement(m),yr(E,m,u),v.head.appendChild(E);break;default:throw Error(r(468,m))}E[$t]=o,dn(E),m=E}o.stateNode=m}else Vx(v,o.type,o.stateNode);else o.stateNode=Bx(v,m,o.memoizedProps);else E!==m?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,m===null?Vx(v,o.type,o.stateNode):Bx(v,m,o.memoizedProps)):m===null&&o.stateNode!==null&&uh(o,o.memoizedProps,u.memoizedProps)}break;case 27:Dr(a,o),jr(o),m&512&&(Yn||u===null||Vo(u,u.return)),u!==null&&m&4&&uh(o,o.memoizedProps,u.memoizedProps);break;case 5:if(Dr(a,o),jr(o),m&512&&(Yn||u===null||Vo(u,u.return)),o.flags&32){v=o.stateNode;try{Ho(v,"")}catch(st){mn(o,o.return,st)}}m&4&&o.stateNode!=null&&(v=o.memoizedProps,uh(o,v,u!==null?u.memoizedProps:v)),m&1024&&(mh=!0);break;case 6:if(Dr(a,o),jr(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,u=o.stateNode;try{u.nodeValue=m}catch(st){mn(o,o.return,st)}}break;case 3:if(Cf=null,v=Ro,Ro=vf(a.containerInfo),Dr(a,o),Ro=v,jr(o),m&4&&u!==null&&u.memoizedState.isDehydrated)try{kl(a.containerInfo)}catch(st){mn(o,o.return,st)}mh&&(mh=!1,V$(o));break;case 4:m=Ro,Ro=vf(o.stateNode.containerInfo),Dr(a,o),jr(o),Ro=m;break;case 12:Dr(a,o),jr(o);break;case 31:Dr(a,o),jr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,of(o,m)));break;case 13:Dr(a,o),jr(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(lf=Pe()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,of(o,m)));break;case 22:v=o.memoizedState!==null;var se=u!==null&&u.memoizedState!==null,xe=sa,De=Yn;if(sa=xe||v,Yn=De||se,Dr(a,o),Yn=De,sa=xe,jr(o),m&8192)e:for(a=o.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(u===null||se||sa||Yn||Ni(o)),u=null,a=o;;){if(a.tag===5||a.tag===26){if(u===null){se=u=a;try{if(E=se.stateNode,v)k=E.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{ee=se.stateNode;var Ve=se.memoizedProps.style,we=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;ee.style.display=we==null||typeof we=="boolean"?"":(""+we).trim()}}catch(st){mn(se,se.return,st)}}}else if(a.tag===6){if(u===null){se=a;try{se.stateNode.nodeValue=v?"":se.memoizedProps}catch(st){mn(se,se.return,st)}}}else if(a.tag===18){if(u===null){se=a;try{var Re=se.stateNode;v?Nx(Re,!0):Nx(se.stateNode,!1)}catch(st){mn(se,se.return,st)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}m&4&&(m=o.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,of(o,u))));break;case 19:Dr(a,o),jr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,of(o,m)));break;case 30:break;case 21:break;default:Dr(a,o),jr(o)}}function jr(o){var a=o.flags;if(a&2){try{for(var u,m=o.return;m!==null;){if(P$(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,E=dh(o);rf(o,E,v);break;case 5:var k=u.stateNode;u.flags&32&&(Ho(k,""),u.flags&=-33);var ee=dh(o);rf(o,ee,k);break;case 3:case 4:var se=u.stateNode.containerInfo,xe=dh(o);fh(o,xe,se);break;default:throw Error(r(161))}}catch(De){mn(o,o.return,De)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function V$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;V$(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function ua(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)D$(o,a.alternate,a),a=a.sibling}function Ni(o){for(o=o.child;o!==null;){var a=o;switch(a.tag){case 0:case 11:case 14:case 15:Ha(4,a,a.return),Ni(a);break;case 1:Vo(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&N$(a,a.return,u),Ni(a);break;case 27:$c(a.stateNode);case 26:case 5:Vo(a,a.return),Ni(a);break;case 22:a.memoizedState===null&&Ni(a);break;case 30:Ni(a);break;default:Ni(a)}o=o.sibling}}function da(o,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,v=o,E=a,k=E.flags;switch(E.tag){case 0:case 11:case 15:da(v,E,u),fc(4,E);break;case 1:if(da(v,E,u),m=E,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(xe){mn(m,m.return,xe)}if(m=E,v=m.updateQueue,v!==null){var ee=m.stateNode;try{var se=v.shared.hiddenCallbacks;if(se!==null)for(v.shared.hiddenCallbacks=null,v=0;v<se.length;v++)bC(se[v],ee)}catch(xe){mn(m,m.return,xe)}}u&&k&64&&O$(E),mc(E,E.return);break;case 27:z$(E);case 26:case 5:da(v,E,u),u&&m===null&&k&4&&I$(E),mc(E,E.return);break;case 12:da(v,E,u);break;case 31:da(v,E,u),u&&k&4&&H$(v,E);break;case 13:da(v,E,u),u&&k&4&&B$(v,E);break;case 22:E.memoizedState===null&&da(v,E,u),mc(E,E.return);break;case 30:break;default:da(v,E,u)}a=a.sibling}}function ph(o,a){var u=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(o!=null&&o.refCount++,u!=null&&Js(u))}function gh(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&Js(o))}function To(o,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)F$(o,a,u,m),a=a.sibling}function F$(o,a,u,m){var v=a.flags;switch(a.tag){case 0:case 11:case 15:To(o,a,u,m),v&2048&&fc(9,a);break;case 1:To(o,a,u,m);break;case 3:To(o,a,u,m),v&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&Js(o)));break;case 12:if(v&2048){To(o,a,u,m),o=a.stateNode;try{var E=a.memoizedProps,k=E.id,ee=E.onPostCommit;typeof ee=="function"&&ee(k,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(se){mn(a,a.return,se)}}else To(o,a,u,m);break;case 31:To(o,a,u,m);break;case 13:To(o,a,u,m);break;case 23:break;case 22:E=a.stateNode,k=a.alternate,a.memoizedState!==null?E._visibility&2?To(o,a,u,m):pc(o,a):E._visibility&2?To(o,a,u,m):(E._visibility|=2,Pl(o,a,u,m,(a.subtreeFlags&10256)!==0||!1)),v&2048&&ph(k,a);break;case 24:To(o,a,u,m),v&2048&&gh(a.alternate,a);break;default:To(o,a,u,m)}}function Pl(o,a,u,m,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=o,k=a,ee=u,se=m,xe=k.flags;switch(k.tag){case 0:case 11:case 15:Pl(E,k,ee,se,v),fc(8,k);break;case 23:break;case 22:var De=k.stateNode;k.memoizedState!==null?De._visibility&2?Pl(E,k,ee,se,v):pc(E,k):(De._visibility|=2,Pl(E,k,ee,se,v)),v&&xe&2048&&ph(k.alternate,k);break;case 24:Pl(E,k,ee,se,v),v&&xe&2048&&gh(k.alternate,k);break;default:Pl(E,k,ee,se,v)}a=a.sibling}}function pc(o,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=o,m=a,v=m.flags;switch(m.tag){case 22:pc(u,m),v&2048&&ph(m.alternate,m);break;case 24:pc(u,m),v&2048&&gh(m.alternate,m);break;default:pc(u,m)}a=a.sibling}}var gc=8192;function zl(o,a,u){if(o.subtreeFlags&gc)for(o=o.child;o!==null;)k$(o,a,u),o=o.sibling}function k$(o,a,u){switch(o.tag){case 26:zl(o,a,u),o.flags&gc&&o.memoizedState!==null&&uP(u,Ro,o.memoizedState,o.memoizedProps);break;case 5:zl(o,a,u);break;case 3:case 4:var m=Ro;Ro=vf(o.stateNode.containerInfo),zl(o,a,u),Ro=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=gc,gc=16777216,zl(o,a,u),gc=m):zl(o,a,u));break;default:zl(o,a,u)}}function W$(o){var a=o.alternate;if(a!==null&&(o=a.child,o!==null)){a.child=null;do a=o.sibling,o.sibling=null,o=a;while(o!==null)}}function hc(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];ar=m,Y$(m,o)}W$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)q$(o),o=o.sibling}function q$(o){switch(o.tag){case 0:case 11:case 15:hc(o),o.flags&2048&&Ha(9,o,o.return);break;case 3:hc(o);break;case 12:hc(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,af(o)):hc(o);break;default:hc(o)}}function af(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];ar=m,Y$(m,o)}W$(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),af(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,af(a));break;default:af(a)}o=o.sibling}}function Y$(o,a){for(;ar!==null;){var u=ar;switch(u.tag){case 0:case 11:case 15:Ha(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Js(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,ar=m;else e:for(u=o;ar!==null;){m=ar;var v=m.sibling,E=m.return;if(j$(m),m===u){ar=null;break e}if(v!==null){v.return=E,ar=v;break e}ar=E}}}var EI={getCacheForType:function(o){var a=gr(kn),u=a.data.get(o);return u===void 0&&(u=o(),a.data.set(o,u)),u},cacheSignal:function(){return gr(kn).controller.signal}},MI=typeof WeakMap=="function"?WeakMap:Map,ln=0,Cn=null,Wt=null,Gt=0,fn=0,Kr=null,Ba=!1,Al=!1,hh=!1,fa=0,An=0,La=0,Ii=0,yh=0,Qr=0,Dl=0,yc=null,_r=null,bh=!1,lf=0,U$=0,sf=1/0,cf=null,Va=null,Qn=0,Fa=null,jl=null,ma=0,vh=0,Sh=null,G$=null,bc=0,Ch=null;function Zr(){return(ln&2)!==0&&Gt!==0?Gt&-Gt:_.T!==null?Rh():ft()}function X$(){if(Qr===0)if((Gt&536870912)===0||Qt){var o=Ge;Ge<<=1,(Ge&3932160)===0&&(Ge=262144),Qr=o}else Qr=536870912;return o=Gr.current,o!==null&&(o.flags|=32),Qr}function Hr(o,a,u){(o===Cn&&(fn===2||fn===9)||o.cancelPendingCommit!==null)&&(_l(o,0),ka(o,Gt,Qr,!1)),je(o,u),((ln&2)===0||o!==Cn)&&(o===Cn&&((ln&2)===0&&(Ii|=u),An===4&&ka(o,Gt,Qr,!1)),Fo(o))}function K$(o,a,u){if((ln&6)!==0)throw Error(r(327));var m=!u&&(a&127)===0&&(a&o.expiredLanes)===0||St(o,a),v=m?OI(o,a):xh(o,a,!0),E=m;do{if(v===0){Al&&!m&&ka(o,a,0,!1);break}else{if(u=o.current.alternate,E&&!RI(u)){v=xh(o,a,!1),E=!1;continue}if(v===2){if(E=a,o.errorRecoveryDisabledLanes&E)var k=0;else k=o.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){a=k;e:{var ee=o;v=yc;var se=ee.current.memoizedState.isDehydrated;if(se&&(_l(ee,k).flags|=256),k=xh(ee,k,!1),k!==2){if(hh&&!se){ee.errorRecoveryDisabledLanes|=E,Ii|=E,v=4;break e}E=_r,_r=v,E!==null&&(_r===null?_r=E:_r.push.apply(_r,E))}v=k}if(E=!1,v!==2)continue}}if(v===1){_l(o,0),ka(o,a,0,!0);break}e:{switch(m=o,E=v,E){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ka(m,a,Qr,!Ba);break e;case 2:_r=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=lf+300-Pe(),10<v)){if(ka(m,a,Qr,!Ba),lt(m,0,!0)!==0)break e;ma=a,m.timeoutHandle=Rx(Q$.bind(null,m,u,_r,cf,bh,a,Qr,Ii,Dl,Ba,E,"Throttled",-0,0),v);break e}Q$(m,u,_r,cf,bh,a,Qr,Ii,Dl,Ba,E,null,-0,0)}}break}while(!0);Fo(o)}function Q$(o,a,u,m,v,E,k,ee,se,xe,De,Ve,we,Re){if(o.timeoutHandle=-1,Ve=a.subtreeFlags,Ve&8192||(Ve&16785408)===16785408){Ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Eo},k$(a,E,Ve);var st=(E&62914560)===E?lf-Pe():(E&4194048)===E?U$-Pe():0;if(st=dP(Ve,st),st!==null){ma=E,o.cancelPendingCommit=st(ax.bind(null,o,a,E,u,m,v,k,ee,se,De,Ve,null,we,Re)),ka(o,E,k,!xe);return}}ax(o,a,E,u,m,v,k,ee,se)}function RI(o){for(var a=o;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var v=u[m],E=v.getSnapshot;v=v.value;try{if(!Yr(E(),v))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ka(o,a,u,m){a&=~yh,a&=~Ii,o.suspendedLanes|=a,o.pingedLanes&=~a,m&&(o.warmLanes|=a),m=o.expirationTimes;for(var v=a;0<v;){var E=31-Oe(v),k=1<<E;m[E]=-1,v&=~k}u!==0&&Fe(o,u,a)}function uf(){return(ln&6)===0?(vc(0),!1):!0}function $h(){if(Wt!==null){if(fn===0)var o=Wt.return;else o=Wt,na=$i=null,Hg(o),Rl=null,tc=0,o=Wt;for(;o!==null;)T$(o.alternate,o),o=o.return;Wt=null}}function _l(o,a){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,UI(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ma=0,$h(),Cn=o,Wt=u=ea(o.current,null),Gt=a,fn=0,Kr=null,Ba=!1,Al=St(o,a),hh=!1,Dl=Qr=yh=Ii=La=An=0,_r=yc=null,bh=!1,(a&8)!==0&&(a|=a&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=a;0<m;){var v=31-Oe(m),E=1<<v;a|=o[v],m&=~E}return fa=a,Nd(),u}function Z$(o,a){zt=null,_.H=cc,a===Ml||a===Hd?(a=pC(),fn=3):a===Mg?(a=pC(),fn=4):fn=a===eh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Kr=a,Wt===null&&(An=1,Zd(o,io(a,o.current)))}function J$(){var o=Gr.current;return o===null?!0:(Gt&4194048)===Gt?uo===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?o===uo:!1}function ex(){var o=_.H;return _.H=cc,o===null?cc:o}function tx(){var o=_.A;return _.A=EI,o}function df(){An=4,Ba||(Gt&4194048)!==Gt&&Gr.current!==null||(Al=!0),(La&134217727)===0&&(Ii&134217727)===0||Cn===null||ka(Cn,Gt,Qr,!1)}function xh(o,a,u){var m=ln;ln|=2;var v=ex(),E=tx();(Cn!==o||Gt!==a)&&(cf=null,_l(o,a)),a=!1;var k=An;e:do try{if(fn!==0&&Wt!==null){var ee=Wt,se=Kr;switch(fn){case 8:$h(),k=6;break e;case 3:case 2:case 9:case 6:Gr.current===null&&(a=!0);var xe=fn;if(fn=0,Kr=null,Hl(o,ee,se,xe),u&&Al){k=0;break e}break;default:xe=fn,fn=0,Kr=null,Hl(o,ee,se,xe)}}TI(),k=An;break}catch(De){Z$(o,De)}while(!0);return a&&o.shellSuspendCounter++,na=$i=null,ln=m,_.H=v,_.A=E,Wt===null&&(Cn=null,Gt=0,Nd()),k}function TI(){for(;Wt!==null;)nx(Wt)}function OI(o,a){var u=ln;ln|=2;var m=ex(),v=tx();Cn!==o||Gt!==a?(cf=null,sf=Pe()+500,_l(o,a)):Al=St(o,a);e:do try{if(fn!==0&&Wt!==null){a=Wt;var E=Kr;t:switch(fn){case 1:fn=0,Kr=null,Hl(o,a,E,1);break;case 2:case 9:if(fC(E)){fn=0,Kr=null,rx(a);break}a=function(){fn!==2&&fn!==9||Cn!==o||(fn=7),Fo(o)},E.then(a,a);break e;case 3:fn=7;break e;case 4:fn=5;break e;case 7:fC(E)?(fn=0,Kr=null,rx(a)):(fn=0,Kr=null,Hl(o,a,E,7));break;case 5:var k=null;switch(Wt.tag){case 26:k=Wt.memoizedState;case 5:case 27:var ee=Wt;if(k?Fx(k):ee.stateNode.complete){fn=0,Kr=null;var se=ee.sibling;if(se!==null)Wt=se;else{var xe=ee.return;xe!==null?(Wt=xe,ff(xe)):Wt=null}break t}}fn=0,Kr=null,Hl(o,a,E,5);break;case 6:fn=0,Kr=null,Hl(o,a,E,6);break;case 8:$h(),An=6;break e;default:throw Error(r(462))}}NI();break}catch(De){Z$(o,De)}while(!0);return na=$i=null,_.H=m,_.A=v,ln=u,Wt!==null?0:(Cn=null,Gt=0,Nd(),An)}function NI(){for(;Wt!==null&&!Se();)nx(Wt)}function nx(o){var a=M$(o.alternate,o,fa);o.memoizedProps=o.pendingProps,a===null?ff(o):Wt=a}function rx(o){var a=o,u=a.alternate;switch(a.tag){case 15:case 0:a=S$(u,a,a.pendingProps,a.type,void 0,Gt);break;case 11:a=S$(u,a,a.pendingProps,a.type.render,a.ref,Gt);break;case 5:Hg(a);default:T$(u,a),a=Wt=tC(a,fa),a=M$(u,a,fa)}o.memoizedProps=o.pendingProps,a===null?ff(o):Wt=a}function Hl(o,a,u,m){na=$i=null,Hg(a),Rl=null,tc=0;var v=a.return;try{if(bI(o,v,a,u,Gt)){An=1,Zd(o,io(u,o.current)),Wt=null;return}}catch(E){if(v!==null)throw Wt=v,E;An=1,Zd(o,io(u,o.current)),Wt=null;return}a.flags&32768?(Qt||m===1?o=!0:Al||(Gt&536870912)!==0?o=!1:(Ba=o=!0,(m===2||m===9||m===3||m===6)&&(m=Gr.current,m!==null&&m.tag===13&&(m.flags|=16384))),ox(a,o)):ff(a)}function ff(o){var a=o;do{if((a.flags&32768)!==0){ox(a,Ba);return}o=a.return;var u=CI(a.alternate,a,fa);if(u!==null){Wt=u;return}if(a=a.sibling,a!==null){Wt=a;return}Wt=a=o}while(a!==null);An===0&&(An=5)}function ox(o,a){do{var u=$I(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),!a&&(o=o.sibling,o!==null)){Wt=o;return}Wt=o=u}while(o!==null);An=6,Wt=null}function ax(o,a,u,m,v,E,k,ee,se){o.cancelPendingCommit=null;do mf();while(Qn!==0);if((ln&6)!==0)throw Error(r(327));if(a!==null){if(a===o.current)throw Error(r(177));if(E=a.lanes|a.childLanes,E|=dg,Ie(o,u,E,k,ee,se),o===Cn&&(Wt=Cn=null,Gt=0),jl=a,Fa=o,ma=u,vh=E,Sh=v,G$=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,AI(Xe,function(){return ux(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=_.T,_.T=null,v=H.p,H.p=2,k=ln,ln|=4;try{xI(o,a,u)}finally{ln=k,H.p=v,_.T=m}}Qn=1,ix(),lx(),sx()}}function ix(){if(Qn===1){Qn=0;var o=Fa,a=jl,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=_.T,_.T=null;var m=H.p;H.p=2;var v=ln;ln|=4;try{L$(a,o);var E=Dh,k=Y1(o.containerInfo),ee=E.focusedElem,se=E.selectionRange;if(k!==ee&&ee&&ee.ownerDocument&&q1(ee.ownerDocument.documentElement,ee)){if(se!==null&&ig(ee)){var xe=se.start,De=se.end;if(De===void 0&&(De=xe),"selectionStart"in ee)ee.selectionStart=xe,ee.selectionEnd=Math.min(De,ee.value.length);else{var Ve=ee.ownerDocument||document,we=Ve&&Ve.defaultView||window;if(we.getSelection){var Re=we.getSelection(),st=ee.textContent.length,vt=Math.min(se.start,st),vn=se.end===void 0?vt:Math.min(se.end,st);!Re.extend&&vt>vn&&(k=vn,vn=vt,vt=k);var be=W1(ee,vt),me=W1(ee,vn);if(be&&me&&(Re.rangeCount!==1||Re.anchorNode!==be.node||Re.anchorOffset!==be.offset||Re.focusNode!==me.node||Re.focusOffset!==me.offset)){var $e=Ve.createRange();$e.setStart(be.node,be.offset),Re.removeAllRanges(),vt>vn?(Re.addRange($e),Re.extend(me.node,me.offset)):($e.setEnd(me.node,me.offset),Re.addRange($e))}}}}for(Ve=[],Re=ee;Re=Re.parentNode;)Re.nodeType===1&&Ve.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<Ve.length;ee++){var He=Ve[ee];He.element.scrollLeft=He.left,He.element.scrollTop=He.top}}Ef=!!Ah,Dh=Ah=null}finally{ln=v,H.p=m,_.T=u}}o.current=a,Qn=2}}function lx(){if(Qn===2){Qn=0;var o=Fa,a=jl,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=_.T,_.T=null;var m=H.p;H.p=2;var v=ln;ln|=4;try{D$(o,a.alternate,a)}finally{ln=v,H.p=m,_.T=u}}Qn=3}}function sx(){if(Qn===4||Qn===3){Qn=0,Ee();var o=Fa,a=jl,u=ma,m=G$;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Qn=5:(Qn=0,jl=Fa=null,cx(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(Va=null),it(u),a=a.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(Qe,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=_.T,v=H.p,H.p=2,_.T=null;try{for(var E=o.onRecoverableError,k=0;k<m.length;k++){var ee=m[k];E(ee.value,{componentStack:ee.stack})}}finally{_.T=a,H.p=v}}(ma&3)!==0&&mf(),Fo(o),v=o.pendingLanes,(u&261930)!==0&&(v&42)!==0?o===Ch?bc++:(bc=0,Ch=o):bc=0,vc(0)}}function cx(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,Js(a)))}function mf(){return ix(),lx(),sx(),ux()}function ux(){if(Qn!==5)return!1;var o=Fa,a=vh;vh=0;var u=it(ma),m=_.T,v=H.p;try{H.p=32>u?32:u,_.T=null,u=Sh,Sh=null;var E=Fa,k=ma;if(Qn=0,jl=Fa=null,ma=0,(ln&6)!==0)throw Error(r(331));var ee=ln;if(ln|=4,q$(E.current),F$(E,E.current,k,u),ln=ee,vc(0,!1),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(Qe,E)}catch{}return!0}finally{H.p=v,_.T=m,cx(o,a)}}function dx(o,a,u){a=io(u,a),a=Jg(o.stateNode,a,2),o=Da(o,a,2),o!==null&&(je(o,2),Fo(o))}function mn(o,a,u){if(o.tag===3)dx(o,o,u);else for(;a!==null;){if(a.tag===3){dx(a,o,u);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Va===null||!Va.has(m))){o=io(u,o),u=f$(2),m=Da(a,u,2),m!==null&&(m$(u,m,a,o),je(m,2),Fo(m));break}}a=a.return}}function wh(o,a,u){var m=o.pingCache;if(m===null){m=o.pingCache=new MI;var v=new Set;m.set(a,v)}else v=m.get(a),v===void 0&&(v=new Set,m.set(a,v));v.has(u)||(hh=!0,v.add(u),o=II.bind(null,o,a,u),a.then(o,o))}function II(o,a,u){var m=o.pingCache;m!==null&&m.delete(a),o.pingedLanes|=o.suspendedLanes&u,o.warmLanes&=~u,Cn===o&&(Gt&u)===u&&(An===4||An===3&&(Gt&62914560)===Gt&&300>Pe()-lf?(ln&2)===0&&_l(o,0):yh|=u,Dl===Gt&&(Dl=0)),Fo(o)}function fx(o,a){a===0&&(a=ke()),o=vi(o,a),o!==null&&(je(o,a),Fo(o))}function PI(o){var a=o.memoizedState,u=0;a!==null&&(u=a.retryLane),fx(o,u)}function zI(o,a){var u=0;switch(o.tag){case 31:case 13:var m=o.stateNode,v=o.memoizedState;v!==null&&(u=v.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(a),fx(o,u)}function AI(o,a){return de(o,a)}var pf=null,Bl=null,Eh=!1,gf=!1,Mh=!1,Wa=0;function Fo(o){o!==Bl&&o.next===null&&(Bl===null?pf=Bl=o:Bl=Bl.next=o),gf=!0,Eh||(Eh=!0,jI())}function vc(o,a){if(!Mh&&gf){Mh=!0;do for(var u=!1,m=pf;m!==null;){if(o!==0){var v=m.pendingLanes;if(v===0)var E=0;else{var k=m.suspendedLanes,ee=m.pingedLanes;E=(1<<31-Oe(42|o)+1)-1,E&=v&~(k&~ee),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,hx(m,E))}else E=Gt,E=lt(m,m===Cn?E:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(E&3)===0||St(m,E)||(u=!0,hx(m,E));m=m.next}while(u);Mh=!1}}function DI(){mx()}function mx(){gf=Eh=!1;var o=0;Wa!==0&&YI()&&(o=Wa);for(var a=Pe(),u=null,m=pf;m!==null;){var v=m.next,E=px(m,a);E===0?(m.next=null,u===null?pf=v:u.next=v,v===null&&(Bl=u)):(u=m,(o!==0||(E&3)!==0)&&(gf=!0)),m=v}Qn!==0&&Qn!==5||vc(o),Wa!==0&&(Wa=0)}function px(o,a){for(var u=o.suspendedLanes,m=o.pingedLanes,v=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var k=31-Oe(E),ee=1<<k,se=v[k];se===-1?((ee&u)===0||(ee&m)!==0)&&(v[k]=Ct(ee,a)):se<=a&&(o.expiredLanes|=ee),E&=~ee}if(a=Cn,u=Gt,u=lt(o,o===a?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,u===0||o===a&&(fn===2||fn===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&ye(m),o.callbackNode=null,o.callbackPriority=0;if((u&3)===0||St(o,u)){if(a=u&-u,a===o.callbackPriority)return a;switch(m!==null&&ye(m),it(u)){case 2:case 8:u=Ue;break;case 32:u=Xe;break;case 268435456:u=Te;break;default:u=Xe}return m=gx.bind(null,o),u=de(u,m),o.callbackPriority=a,o.callbackNode=u,a}return m!==null&&m!==null&&ye(m),o.callbackPriority=2,o.callbackNode=null,2}function gx(o,a){if(Qn!==0&&Qn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(mf()&&o.callbackNode!==u)return null;var m=Gt;return m=lt(o,o===Cn?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(K$(o,m,a),px(o,Pe()),o.callbackNode!=null&&o.callbackNode===u?gx.bind(null,o):null)}function hx(o,a){if(mf())return null;K$(o,a,!0)}function jI(){GI(function(){(ln&6)!==0?de(Ye,DI):mx()})}function Rh(){if(Wa===0){var o=wl;o===0&&(o=Ne,Ne<<=1,(Ne&261888)===0&&(Ne=256)),Wa=o}return Wa}function yx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:pl(""+o)}function bx(o,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,o.id&&u.setAttribute("form",o.id),a.parentNode.insertBefore(u,a),o=new FormData(o),u.parentNode.removeChild(u),o}function _I(o,a,u,m,v){if(a==="submit"&&u&&u.stateNode===v){var E=yx((v[tn]||null).action),k=m.submitter;k&&(a=(a=k[tn]||null)?yx(a.formAction):k.getAttribute("formAction"),a!==null&&(E=a,k=null));var ee=new Md("action","action",null,m,v);o.push({event:ee,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Wa!==0){var se=k?bx(v,k):new FormData(v);Ug(u,{pending:!0,data:se,method:v.method,action:E},null,se)}}else typeof E=="function"&&(ee.preventDefault(),se=k?bx(v,k):new FormData(v),Ug(u,{pending:!0,data:se,method:v.method,action:E},E,se))},currentTarget:v}]})}}for(var Th=0;Th<ug.length;Th++){var Oh=ug[Th],HI=Oh.toLowerCase(),BI=Oh[0].toUpperCase()+Oh.slice(1);Mo(HI,"on"+BI)}Mo(X1,"onAnimationEnd"),Mo(K1,"onAnimationIteration"),Mo(Q1,"onAnimationStart"),Mo("dblclick","onDoubleClick"),Mo("focusin","onFocus"),Mo("focusout","onBlur"),Mo(tI,"onTransitionRun"),Mo(nI,"onTransitionStart"),Mo(rI,"onTransitionCancel"),Mo(Z1,"onTransitionEnd"),fr("onMouseEnter",["mouseout","mouseover"]),fr("onMouseLeave",["mouseout","mouseover"]),fr("onPointerEnter",["pointerout","pointerover"]),fr("onPointerLeave",["pointerout","pointerover"]),Cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sc="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(" "),LI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sc));function vx(o,a){a=(a&4)!==0;for(var u=0;u<o.length;u++){var m=o[u],v=m.event;m=m.listeners;e:{var E=void 0;if(a)for(var k=m.length-1;0<=k;k--){var ee=m[k],se=ee.instance,xe=ee.currentTarget;if(ee=ee.listener,se!==E&&v.isPropagationStopped())break e;E=ee,v.currentTarget=xe;try{E(v)}catch(De){Od(De)}v.currentTarget=null,E=se}else for(k=0;k<m.length;k++){if(ee=m[k],se=ee.instance,xe=ee.currentTarget,ee=ee.listener,se!==E&&v.isPropagationStopped())break e;E=ee,v.currentTarget=xe;try{E(v)}catch(De){Od(De)}v.currentTarget=null,E=se}}}}function qt(o,a){var u=a[Ke];u===void 0&&(u=a[Ke]=new Set);var m=o+"__bubble";u.has(m)||(Sx(a,o,2,!1),u.add(m))}function Nh(o,a,u){var m=0;a&&(m|=4),Sx(u,o,m,a)}var hf="_reactListening"+Math.random().toString(36).slice(2);function Ih(o){if(!o[hf]){o[hf]=!0,dr.forEach(function(u){u!=="selectionchange"&&(LI.has(u)||Nh(u,!1,o),Nh(u,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[hf]||(a[hf]=!0,Nh("selectionchange",!1,a))}}function Sx(o,a,u,m){switch(Xx(a)){case 2:var v=pP;break;case 8:v=gP;break;default:v=Yh}u=v.bind(null,a,u,o),v=void 0,!Qp||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),m?v!==void 0?o.addEventListener(a,u,{capture:!0,passive:v}):o.addEventListener(a,u,!0):v!==void 0?o.addEventListener(a,u,{passive:v}):o.addEventListener(a,u,!1)}function Ph(o,a,u,m,v){var E=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var k=m.tag;if(k===3||k===4){var ee=m.stateNode.containerInfo;if(ee===v)break;if(k===4)for(k=m.return;k!==null;){var se=k.tag;if((se===3||se===4)&&k.stateNode.containerInfo===v)return;k=k.return}for(;ee!==null;){if(k=kt(ee),k===null)return;if(se=k.tag,se===5||se===6||se===26||se===27){m=E=k;continue e}ee=ee.parentNode}}m=m.return}E1(function(){var xe=E,De=bt(u),Ve=[];e:{var we=J1.get(o);if(we!==void 0){var Re=Md,st=o;switch(o){case"keypress":if(wd(u)===0)break e;case"keydown":case"keyup":Re=zN;break;case"focusin":st="focus",Re=tg;break;case"focusout":st="blur",Re=tg;break;case"beforeblur":case"afterblur":Re=tg;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":Re=T1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=CN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=jN;break;case X1:case K1:case Q1:Re=wN;break;case Z1:Re=HN;break;case"scroll":case"scrollend":Re=vN;break;case"wheel":Re=LN;break;case"copy":case"cut":case"paste":Re=MN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=N1;break;case"toggle":case"beforetoggle":Re=FN}var vt=(a&4)!==0,vn=!vt&&(o==="scroll"||o==="scrollend"),be=vt?we!==null?we+"Capture":null:we;vt=[];for(var me=xe,$e;me!==null;){var He=me;if($e=He.stateNode,He=He.tag,He!==5&&He!==26&&He!==27||$e===null||be===null||(He=Fs(me,be),He!=null&&vt.push(Cc(me,He,$e))),vn)break;me=me.return}0<vt.length&&(we=new Re(we,st,null,u,De),Ve.push({event:we,listeners:vt}))}}if((a&7)===0){e:{if(we=o==="mouseover"||o==="pointerover",Re=o==="mouseout"||o==="pointerout",we&&u!==Vt&&(st=u.relatedTarget||u.fromElement)&&(kt(st)||st[wt]))break e;if((Re||we)&&(we=De.window===De?De:(we=De.ownerDocument)?we.defaultView||we.parentWindow:window,Re?(st=u.relatedTarget||u.toElement,Re=xe,st=st?kt(st):null,st!==null&&(vn=s(st),vt=st.tag,st!==vn||vt!==5&&vt!==27&&vt!==6)&&(st=null)):(Re=null,st=xe),Re!==st)){if(vt=T1,He="onMouseLeave",be="onMouseEnter",me="mouse",(o==="pointerout"||o==="pointerover")&&(vt=N1,He="onPointerLeave",be="onPointerEnter",me="pointer"),vn=Re==null?we:En(Re),$e=st==null?we:En(st),we=new vt(He,me+"leave",Re,u,De),we.target=vn,we.relatedTarget=$e,He=null,kt(De)===xe&&(vt=new vt(be,me+"enter",st,u,De),vt.target=$e,vt.relatedTarget=vn,He=vt),vn=He,Re&&st)t:{for(vt=VI,be=Re,me=st,$e=0,He=be;He;He=vt(He))$e++;He=0;for(var pt=me;pt;pt=vt(pt))He++;for(;0<$e-He;)be=vt(be),$e--;for(;0<He-$e;)me=vt(me),He--;for(;$e--;){if(be===me||me!==null&&be===me.alternate){vt=be;break t}be=vt(be),me=vt(me)}vt=null}else vt=null;Re!==null&&Cx(Ve,we,Re,vt,!1),st!==null&&vn!==null&&Cx(Ve,vn,st,vt,!0)}}e:{if(we=xe?En(xe):window,Re=we.nodeName&&we.nodeName.toLowerCase(),Re==="select"||Re==="input"&&we.type==="file")var rn=H1;else if(j1(we))if(B1)rn=ZN;else{rn=KN;var ct=XN}else Re=we.nodeName,!Re||Re.toLowerCase()!=="input"||we.type!=="checkbox"&&we.type!=="radio"?xe&&Pr(xe.elementType)&&(rn=H1):rn=QN;if(rn&&(rn=rn(o,xe))){_1(Ve,rn,u,De);break e}ct&&ct(o,we,xe),o==="focusout"&&xe&&we.type==="number"&&xe.memoizedProps.value!=null&&_o(we,"number",we.value)}switch(ct=xe?En(xe):window,o){case"focusin":(j1(ct)||ct.contentEditable==="true")&&(hl=ct,lg=xe,Ks=null);break;case"focusout":Ks=lg=hl=null;break;case"mousedown":sg=!0;break;case"contextmenu":case"mouseup":case"dragend":sg=!1,U1(Ve,u,De);break;case"selectionchange":if(eI)break;case"keydown":case"keyup":U1(Ve,u,De)}var jt;if(rg)e:{switch(o){case"compositionstart":var Xt="onCompositionStart";break e;case"compositionend":Xt="onCompositionEnd";break e;case"compositionupdate":Xt="onCompositionUpdate";break e}Xt=void 0}else gl?A1(o,u)&&(Xt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Xt="onCompositionStart");Xt&&(I1&&u.locale!=="ko"&&(gl||Xt!=="onCompositionStart"?Xt==="onCompositionEnd"&&gl&&(jt=M1()):(Ta=De,Zp="value"in Ta?Ta.value:Ta.textContent,gl=!0)),ct=yf(xe,Xt),0<ct.length&&(Xt=new O1(Xt,o,null,u,De),Ve.push({event:Xt,listeners:ct}),jt?Xt.data=jt:(jt=D1(u),jt!==null&&(Xt.data=jt)))),(jt=WN?qN(o,u):YN(o,u))&&(Xt=yf(xe,"onBeforeInput"),0<Xt.length&&(ct=new O1("onBeforeInput","beforeinput",null,u,De),Ve.push({event:ct,listeners:Xt}),ct.data=jt)),_I(Ve,o,xe,u,De)}vx(Ve,a)})}function Cc(o,a,u){return{instance:o,listener:a,currentTarget:u}}function yf(o,a){for(var u=a+"Capture",m=[];o!==null;){var v=o,E=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=Fs(o,u),v!=null&&m.unshift(Cc(o,v,E)),v=Fs(o,a),v!=null&&m.push(Cc(o,v,E))),o.tag===3)return m;o=o.return}return[]}function VI(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Cx(o,a,u,m,v){for(var E=a._reactName,k=[];u!==null&&u!==m;){var ee=u,se=ee.alternate,xe=ee.stateNode;if(ee=ee.tag,se!==null&&se===m)break;ee!==5&&ee!==26&&ee!==27||xe===null||(se=xe,v?(xe=Fs(u,E),xe!=null&&k.unshift(Cc(u,xe,se))):v||(xe=Fs(u,E),xe!=null&&k.push(Cc(u,xe,se)))),u=u.return}k.length!==0&&o.push({event:a,listeners:k})}var FI=/\r\n?/g,kI=/\u0000|\uFFFD/g;function $x(o){return(typeof o=="string"?o:""+o).replace(FI,`
9
- `).replace(kI,"")}function xx(o,a){return a=$x(a),$x(o)===a}function bn(o,a,u,m,v,E){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||Ho(o,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&Ho(o,""+m);break;case"className":Mn(o,"class",m);break;case"tabIndex":Mn(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Mn(o,u,m);break;case"style":Kn(o,m,E);break;case"data":if(a!=="object"){Mn(o,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){o.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=pl(""+m),o.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="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 E=="function"&&(u==="formAction"?(a!=="input"&&bn(o,a,"name",v.name,v,null),bn(o,a,"formEncType",v.formEncType,v,null),bn(o,a,"formMethod",v.formMethod,v,null),bn(o,a,"formTarget",v.formTarget,v,null)):(bn(o,a,"encType",v.encType,v,null),bn(o,a,"method",v.method,v,null),bn(o,a,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=pl(""+m),o.setAttribute(u,m);break;case"onClick":m!=null&&(o.onclick=Eo);break;case"onScroll":m!=null&&qt("scroll",o);break;case"onScrollEnd":m!=null&&qt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}u=pl(""+m),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":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,""+m):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":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,""):o.removeAttribute(u);break;case"capture":case"download":m===!0?o.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,m):o.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(u,m):o.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(u):o.setAttribute(u,m);break;case"popover":qt("beforetoggle",o),qt("toggle",o),Sn(o,"popover",m);break;case"xlinkActuate":Vn(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Vn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Vn(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Vn(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Vn(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Vn(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Vn(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Vn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Vn(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Sn(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=ml.get(u)||u,Sn(o,u,m))}}function zh(o,a,u,m,v,E){switch(u){case"style":Kn(o,m,E);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"children":typeof m=="string"?Ho(o,m):(typeof m=="number"||typeof m=="bigint")&&Ho(o,""+m);break;case"onScroll":m!=null&&qt("scroll",o);break;case"onScrollEnd":m!=null&&qt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=Eo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pn.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),a=u.slice(2,v?u.length-7:void 0),E=o[tn]||null,E=E!=null?E[u]:null,typeof E=="function"&&o.removeEventListener(a,E,v),typeof m=="function")){typeof E!="function"&&E!==null&&(u in o?o[u]=null:o.hasAttribute(u)&&o.removeAttribute(u)),o.addEventListener(a,m,v);break e}u in o?o[u]=m:m===!0?o.setAttribute(u,""):Sn(o,u,m)}}}function yr(o,a,u){switch(a){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 m=!1,v=!1,E;for(E in u)if(u.hasOwnProperty(E)){var k=u[E];if(k!=null)switch(E){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:bn(o,a,E,k,u,null)}}v&&bn(o,a,"srcSet",u.srcSet,u,null),m&&bn(o,a,"src",u.src,u,null);return;case"input":qt("invalid",o);var ee=E=k=v=null,se=null,xe=null;for(m in u)if(u.hasOwnProperty(m)){var De=u[m];if(De!=null)switch(m){case"name":v=De;break;case"type":k=De;break;case"checked":se=De;break;case"defaultChecked":xe=De;break;case"value":E=De;break;case"defaultValue":ee=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r(137,a));break;default:bn(o,a,m,De,u,null)}}Zo(o,E,ee,se,xe,k,v,!1);return;case"select":qt("invalid",o),m=k=E=null;for(v in u)if(u.hasOwnProperty(v)&&(ee=u[v],ee!=null))switch(v){case"value":E=ee;break;case"defaultValue":k=ee;break;case"multiple":m=ee;default:bn(o,a,v,ee,u,null)}a=E,u=k,o.multiple=!!m,a!=null?oo(o,!!m,a,!1):u!=null&&oo(o,!!m,u,!0);return;case"textarea":qt("invalid",o),E=v=m=null;for(k in u)if(u.hasOwnProperty(k)&&(ee=u[k],ee!=null))switch(k){case"value":m=ee;break;case"defaultValue":v=ee;break;case"children":E=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:bn(o,a,k,ee,u,null)}fl(o,m,v,E);return;case"option":for(se in u)u.hasOwnProperty(se)&&(m=u[se],m!=null)&&(se==="selected"?o.selected=m&&typeof m!="function"&&typeof m!="symbol":bn(o,a,se,m,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(m=0;m<Sc.length;m++)qt(Sc[m],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(xe in u)if(u.hasOwnProperty(xe)&&(m=u[xe],m!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:bn(o,a,xe,m,u,null)}return;default:if(Pr(a)){for(De in u)u.hasOwnProperty(De)&&(m=u[De],m!==void 0&&zh(o,a,De,m,u,void 0));return}}for(ee in u)u.hasOwnProperty(ee)&&(m=u[ee],m!=null&&bn(o,a,ee,m,u,null))}function WI(o,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,E=null,k=null,ee=null,se=null,xe=null,De=null;for(Re in u){var Ve=u[Re];if(u.hasOwnProperty(Re)&&Ve!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":se=Ve;default:m.hasOwnProperty(Re)||bn(o,a,Re,null,m,Ve)}}for(var we in m){var Re=m[we];if(Ve=u[we],m.hasOwnProperty(we)&&(Re!=null||Ve!=null))switch(we){case"type":E=Re;break;case"name":v=Re;break;case"checked":xe=Re;break;case"defaultChecked":De=Re;break;case"value":k=Re;break;case"defaultValue":ee=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,a));break;default:Re!==Ve&&bn(o,a,we,Re,m,Ve)}}Qo(o,k,ee,se,xe,De,E,v);return;case"select":Re=k=ee=we=null;for(E in u)if(se=u[E],u.hasOwnProperty(E)&&se!=null)switch(E){case"value":break;case"multiple":Re=se;default:m.hasOwnProperty(E)||bn(o,a,E,null,m,se)}for(v in m)if(E=m[v],se=u[v],m.hasOwnProperty(v)&&(E!=null||se!=null))switch(v){case"value":we=E;break;case"defaultValue":ee=E;break;case"multiple":k=E;default:E!==se&&bn(o,a,v,E,m,se)}a=ee,u=k,m=Re,we!=null?oo(o,!!u,we,!1):!!m!=!!u&&(a!=null?oo(o,!!u,a,!0):oo(o,!!u,u?[]:"",!1));return;case"textarea":Re=we=null;for(ee in u)if(v=u[ee],u.hasOwnProperty(ee)&&v!=null&&!m.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:bn(o,a,ee,null,m,v)}for(k in m)if(v=m[k],E=u[k],m.hasOwnProperty(k)&&(v!=null||E!=null))switch(k){case"value":we=v;break;case"defaultValue":Re=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==E&&bn(o,a,k,v,m,E)}dl(o,we,Re);return;case"option":for(var st in u)we=u[st],u.hasOwnProperty(st)&&we!=null&&!m.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:bn(o,a,st,null,m,we));for(se in m)we=m[se],Re=u[se],m.hasOwnProperty(se)&&we!==Re&&(we!=null||Re!=null)&&(se==="selected"?o.selected=we&&typeof we!="function"&&typeof we!="symbol":bn(o,a,se,we,m,Re));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 vt in u)we=u[vt],u.hasOwnProperty(vt)&&we!=null&&!m.hasOwnProperty(vt)&&bn(o,a,vt,null,m,we);for(xe in m)if(we=m[xe],Re=u[xe],m.hasOwnProperty(xe)&&we!==Re&&(we!=null||Re!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,a));break;default:bn(o,a,xe,we,m,Re)}return;default:if(Pr(a)){for(var vn in u)we=u[vn],u.hasOwnProperty(vn)&&we!==void 0&&!m.hasOwnProperty(vn)&&zh(o,a,vn,void 0,m,we);for(De in m)we=m[De],Re=u[De],!m.hasOwnProperty(De)||we===Re||we===void 0&&Re===void 0||zh(o,a,De,we,m,Re);return}}for(var be in u)we=u[be],u.hasOwnProperty(be)&&we!=null&&!m.hasOwnProperty(be)&&bn(o,a,be,null,m,we);for(Ve in m)we=m[Ve],Re=u[Ve],!m.hasOwnProperty(Ve)||we===Re||we==null&&Re==null||bn(o,a,Ve,we,m,Re)}function wx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qI(){if(typeof performance.getEntriesByType=="function"){for(var o=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var v=u[m],E=v.transferSize,k=v.initiatorType,ee=v.duration;if(E&&ee&&wx(k)){for(k=0,ee=v.responseEnd,m+=1;m<u.length;m++){var se=u[m],xe=se.startTime;if(xe>ee)break;var De=se.transferSize,Ve=se.initiatorType;De&&wx(Ve)&&(se=se.responseEnd,k+=De*(se<ee?1:(ee-xe)/(se-xe)))}if(--m,a+=8*(E+k)/(v.duration/1e3),o++,10<o)break}}if(0<o)return a/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Ah=null,Dh=null;function bf(o){return o.nodeType===9?o:o.ownerDocument}function Ex(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 Mx(o,a){if(o===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&a==="foreignObject"?0:o}function jh(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var _h=null;function YI(){var o=window.event;return o&&o.type==="popstate"?o===_h?!1:(_h=o,!0):(_h=null,!1)}var Rx=typeof setTimeout=="function"?setTimeout:void 0,UI=typeof clearTimeout=="function"?clearTimeout:void 0,Tx=typeof Promise=="function"?Promise:void 0,GI=typeof queueMicrotask=="function"?queueMicrotask:typeof Tx<"u"?function(o){return Tx.resolve(null).then(o).catch(XI)}:Rx;function XI(o){setTimeout(function(){throw o})}function qa(o){return o==="head"}function Ox(o,a){var u=a,m=0;do{var v=u.nextSibling;if(o.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(m===0){o.removeChild(v),kl(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")$c(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,$c(u);for(var E=u.firstChild;E;){var k=E.nextSibling,ee=E.nodeName;E[Ut]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=k}}else u==="body"&&$c(o.ownerDocument.body);u=v}while(u);kl(a)}function Nx(o,a){var u=o;o=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(o===0)break;o--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||o++;u=m}while(u)}function Hh(o){var a=o.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Hh(u),an(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function KI(o,a,u,m){for(;o.nodeType===1;){var v=u;if(o.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Ut])switch(a){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(E=o.getAttribute("rel"),E==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(E!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(E=o.getAttribute("src"),(E!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(a==="input"&&o.type==="hidden"){var E=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===E)return o}else return o;if(o=fo(o.nextSibling),o===null)break}return null}function QI(o,a,u){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=fo(o.nextSibling),o===null))return null;return o}function Ix(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=fo(o.nextSibling),o===null))return null;return o}function Bh(o){return o.data==="$?"||o.data==="$~"}function Lh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function ZI(o,a){var u=o.ownerDocument;if(o.data==="$~")o._reactRetry=a;else if(o.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function fo(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return o}var Vh=null;function Px(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(a===0)return fo(o.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}o=o.nextSibling}return null}function zx(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return o;a--}else u!=="/$"&&u!=="/&"||a++}o=o.previousSibling}return null}function Ax(o,a,u){switch(a=bf(u),o){case"html":if(o=a.documentElement,!o)throw Error(r(452));return o;case"head":if(o=a.head,!o)throw Error(r(453));return o;case"body":if(o=a.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function $c(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);an(o)}var mo=new Map,Dx=new Set;function vf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var pa=H.d;H.d={f:JI,r:eP,D:tP,C:nP,L:rP,m:oP,X:iP,S:aP,M:lP};function JI(){var o=pa.f(),a=uf();return o||a}function eP(o){var a=wn(o);a!==null&&a.tag===5&&a.type==="form"?ZC(a):pa.r(o)}var Ll=typeof document>"u"?null:document;function jx(o,a,u){var m=Ll;if(m&&typeof a=="string"&&a){var v=_n(a);v='link[rel="'+o+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),Dx.has(v)||(Dx.add(v),o={rel:o,crossOrigin:u,href:a},m.querySelector(v)===null&&(a=m.createElement("link"),yr(a,"link",o),dn(a),m.head.appendChild(a)))}}function tP(o){pa.D(o),jx("dns-prefetch",o,null)}function nP(o,a){pa.C(o,a),jx("preconnect",o,a)}function rP(o,a,u){pa.L(o,a,u);var m=Ll;if(m&&o&&a){var v='link[rel="preload"][as="'+_n(a)+'"]';a==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+_n(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+_n(u.imageSizes)+'"]')):v+='[href="'+_n(o)+'"]';var E=v;switch(a){case"style":E=Vl(o);break;case"script":E=Fl(o)}mo.has(E)||(o=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:o,as:a},u),mo.set(E,o),m.querySelector(v)!==null||a==="style"&&m.querySelector(xc(E))||a==="script"&&m.querySelector(wc(E))||(a=m.createElement("link"),yr(a,"link",o),dn(a),m.head.appendChild(a)))}}function oP(o,a){pa.m(o,a);var u=Ll;if(u&&o){var m=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+_n(m)+'"][href="'+_n(o)+'"]',E=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Fl(o)}if(!mo.has(E)&&(o=h({rel:"modulepreload",href:o},a),mo.set(E,o),u.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(wc(E)))return}m=u.createElement("link"),yr(m,"link",o),dn(m),u.head.appendChild(m)}}}function aP(o,a,u){pa.S(o,a,u);var m=Ll;if(m&&o){var v=Sr(m).hoistableStyles,E=Vl(o);a=a||"default";var k=v.get(E);if(!k){var ee={loading:0,preload:null};if(k=m.querySelector(xc(E)))ee.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":a},u),(u=mo.get(E))&&Fh(o,u);var se=k=m.createElement("link");dn(se),yr(se,"link",o),se._p=new Promise(function(xe,De){se.onload=xe,se.onerror=De}),se.addEventListener("load",function(){ee.loading|=1}),se.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,Sf(k,a,m)}k={type:"stylesheet",instance:k,count:1,state:ee},v.set(E,k)}}}function iP(o,a){pa.X(o,a);var u=Ll;if(u&&o){var m=Sr(u).hoistableScripts,v=Fl(o),E=m.get(v);E||(E=u.querySelector(wc(v)),E||(o=h({src:o,async:!0},a),(a=mo.get(v))&&kh(o,a),E=u.createElement("script"),dn(E),yr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function lP(o,a){pa.M(o,a);var u=Ll;if(u&&o){var m=Sr(u).hoistableScripts,v=Fl(o),E=m.get(v);E||(E=u.querySelector(wc(v)),E||(o=h({src:o,async:!0,type:"module"},a),(a=mo.get(v))&&kh(o,a),E=u.createElement("script"),dn(E),yr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function _x(o,a,u,m){var v=(v=Z.current)?vf(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Vl(u.href),u=Sr(v).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){o=Vl(u.href);var E=Sr(v).hoistableStyles,k=E.get(o);if(k||(v=v.ownerDocument||v,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,k),(E=v.querySelector(xc(o)))&&!E._p&&(k.instance=E,k.state.loading=5),mo.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},mo.set(o,u),E||sP(v,o,u,k.state))),a&&m===null)throw Error(r(528,""));return k}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Fl(u),u=Sr(v).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Vl(o){return'href="'+_n(o)+'"'}function xc(o){return'link[rel="stylesheet"]['+o+"]"}function Hx(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function sP(o,a,u,m){o.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=o.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),yr(a,"link",u),dn(a),o.head.appendChild(a))}function Fl(o){return'[src="'+_n(o)+'"]'}function wc(o){return"script[async]"+o}function Bx(o,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=o.querySelector('style[data-href~="'+_n(u.href)+'"]');if(m)return a.instance=m,dn(m),m;var v=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),dn(m),yr(m,"style",v),Sf(m,u.precedence,o),a.instance=m;case"stylesheet":v=Vl(u.href);var E=o.querySelector(xc(v));if(E)return a.state.loading|=4,a.instance=E,dn(E),E;m=Hx(u),(v=mo.get(v))&&Fh(m,v),E=(o.ownerDocument||o).createElement("link"),dn(E);var k=E;return k._p=new Promise(function(ee,se){k.onload=ee,k.onerror=se}),yr(E,"link",m),a.state.loading|=4,Sf(E,u.precedence,o),a.instance=E;case"script":return E=Fl(u.src),(v=o.querySelector(wc(E)))?(a.instance=v,dn(v),v):(m=u,(v=mo.get(E))&&(m=h({},u),kh(m,v)),o=o.ownerDocument||o,v=o.createElement("script"),dn(v),yr(v,"link",m),o.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Sf(m,u.precedence,o));return a.instance}function Sf(o,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,E=v,k=0;k<m.length;k++){var ee=m[k];if(ee.dataset.precedence===a)E=ee;else if(E!==v)break}E?E.parentNode.insertBefore(o,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(o,a.firstChild))}function Fh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function kh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var Cf=null;function Lx(o,a,u){if(Cf===null){var m=new Map,v=Cf=new Map;v.set(u,m)}else v=Cf,m=v.get(u),m||(m=new Map,v.set(u,m));if(m.has(o))return m;for(m.set(o,null),u=u.getElementsByTagName(o),v=0;v<u.length;v++){var E=u[v];if(!(E[Ut]||E[$t]||o==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var k=E.getAttribute(a)||"";k=o+k;var ee=m.get(k);ee?ee.push(E):m.set(k,[E])}}return m}function Vx(o,a,u){o=o.ownerDocument||o,o.head.insertBefore(u,a==="title"?o.querySelector("head > title"):null)}function cP(o,a,u){if(u===1||a.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(o=a.disabled,typeof a.precedence=="string"&&o==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Fx(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function uP(o,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=Vl(m.href),E=a.querySelector(xc(v));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=$f.bind(o),a.then(o,o)),u.state.loading|=4,u.instance=E,dn(E);return}E=a.ownerDocument||a,m=Hx(m),(v=mo.get(v))&&Fh(m,v),E=E.createElement("link"),dn(E);var k=E;k._p=new Promise(function(ee,se){k.onload=ee,k.onerror=se}),yr(E,"link",m),u.instance=E}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(o.count++,u=$f.bind(o),a.addEventListener("load",u),a.addEventListener("error",u))}}var Wh=0;function dP(o,a){return o.stylesheets&&o.count===0&&wf(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var m=setTimeout(function(){if(o.stylesheets&&wf(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+a);0<o.imgBytes&&Wh===0&&(Wh=62500*qI());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&wf(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>Wh?50:800)+a);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function $f(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var xf=null;function wf(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,xf=new Map,a.forEach(fP,o),xf=null,$f.call(o))}function fP(o,a){if(!(a.state.loading&4)){var u=xf.get(o);if(u)var m=u.get(null);else{u=new Map,xf.set(o,u);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var k=v[E];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(u.set(k.dataset.precedence,k),m=k)}m&&u.set(null,m)}v=a.instance,k=v.getAttribute("data-precedence"),E=u.get(k)||m,E===m&&u.set(null,v),u.set(k,v),this.count++,m=$f.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),E?E.parentNode.insertBefore(v,E.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),a.state.loading|=4}}var Ec={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function mP(o,a,u,m,v,E,k,ee,se){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=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=se,this.incompleteTransitions=new Map}function kx(o,a,u,m,v,E,k,ee,se,xe,De,Ve){return o=new mP(o,a,u,k,se,xe,De,Ve,ee),a=1,E===!0&&(a|=24),E=Ur(3,null,null,a),o.current=E,E.stateNode=o,a=xg(),a.refCount++,o.pooledCache=a,a.refCount++,E.memoizedState={element:m,isDehydrated:u,cache:a},Rg(E),o}function Wx(o){return o?(o=vl,o):vl}function qx(o,a,u,m,v,E){v=Wx(v),m.context===null?m.context=v:m.pendingContext=v,m=Aa(a),m.payload={element:u},E=E===void 0?null:E,E!==null&&(m.callback=E),u=Da(o,m,a),u!==null&&(Hr(u,o,a),rc(u,o,a))}function Yx(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<a?u:a}}function qh(o,a){Yx(o,a),(o=o.alternate)&&Yx(o,a)}function Ux(o){if(o.tag===13||o.tag===31){var a=vi(o,67108864);a!==null&&Hr(a,o,67108864),qh(o,67108864)}}function Gx(o){if(o.tag===13||o.tag===31){var a=Zr();a=Je(a);var u=vi(o,a);u!==null&&Hr(u,o,a),qh(o,a)}}var Ef=!0;function pP(o,a,u,m){var v=_.T;_.T=null;var E=H.p;try{H.p=2,Yh(o,a,u,m)}finally{H.p=E,_.T=v}}function gP(o,a,u,m){var v=_.T;_.T=null;var E=H.p;try{H.p=8,Yh(o,a,u,m)}finally{H.p=E,_.T=v}}function Yh(o,a,u,m){if(Ef){var v=Uh(m);if(v===null)Ph(o,a,m,Mf,u),Kx(o,m);else if(yP(v,o,a,u,m))m.stopPropagation();else if(Kx(o,m),a&4&&-1<hP.indexOf(o)){for(;v!==null;){var E=wn(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var k=ot(E.pendingLanes);if(k!==0){var ee=E;for(ee.pendingLanes|=2,ee.entangledLanes|=2;k;){var se=1<<31-Oe(k);ee.entanglements[1]|=se,k&=~se}Fo(E),(ln&6)===0&&(sf=Pe()+500,vc(0))}}break;case 31:case 13:ee=vi(E,2),ee!==null&&Hr(ee,E,2),uf(),qh(E,2)}if(E=Uh(m),E===null&&Ph(o,a,m,Mf,u),E===v)break;v=E}v!==null&&m.stopPropagation()}else Ph(o,a,m,null,u)}}function Uh(o){return o=bt(o),Gh(o)}var Mf=null;function Gh(o){if(Mf=null,o=kt(o),o!==null){var a=s(o);if(a===null)o=null;else{var u=a.tag;if(u===13){if(o=c(a),o!==null)return o;o=null}else if(u===31){if(o=d(a),o!==null)return o;o=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Mf=o,null}function Xx(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(Ae()){case Ye:return 2;case Ue:return 8;case Xe:case et:return 32;case Te:return 268435456;default:return 32}default:return 32}}var Xh=!1,Ya=null,Ua=null,Ga=null,Mc=new Map,Rc=new Map,Xa=[],hP="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 Kx(o,a){switch(o){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":Mc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rc.delete(a.pointerId)}}function Tc(o,a,u,m,v,E){return o===null||o.nativeEvent!==E?(o={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:E,targetContainers:[v]},a!==null&&(a=wn(a),a!==null&&Ux(a)),o):(o.eventSystemFlags|=m,a=o.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),o)}function yP(o,a,u,m,v){switch(a){case"focusin":return Ya=Tc(Ya,o,a,u,m,v),!0;case"dragenter":return Ua=Tc(Ua,o,a,u,m,v),!0;case"mouseover":return Ga=Tc(Ga,o,a,u,m,v),!0;case"pointerover":var E=v.pointerId;return Mc.set(E,Tc(Mc.get(E)||null,o,a,u,m,v)),!0;case"gotpointercapture":return E=v.pointerId,Rc.set(E,Tc(Rc.get(E)||null,o,a,u,m,v)),!0}return!1}function Qx(o){var a=kt(o.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){o.blockedOn=a,Ft(o.priority,function(){Gx(u)});return}}else if(a===31){if(a=d(u),a!==null){o.blockedOn=a,Ft(o.priority,function(){Gx(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Rf(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var u=Uh(o.nativeEvent);if(u===null){u=o.nativeEvent;var m=new u.constructor(u.type,u);Vt=m,u.target.dispatchEvent(m),Vt=null}else return a=wn(u),a!==null&&Ux(a),o.blockedOn=u,!1;a.shift()}return!0}function Zx(o,a,u){Rf(o)&&u.delete(a)}function bP(){Xh=!1,Ya!==null&&Rf(Ya)&&(Ya=null),Ua!==null&&Rf(Ua)&&(Ua=null),Ga!==null&&Rf(Ga)&&(Ga=null),Mc.forEach(Zx),Rc.forEach(Zx)}function Tf(o,a){o.blockedOn===a&&(o.blockedOn=null,Xh||(Xh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bP)))}var Of=null;function Jx(o){Of!==o&&(Of=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Of===o&&(Of=null);for(var a=0;a<o.length;a+=3){var u=o[a],m=o[a+1],v=o[a+2];if(typeof m!="function"){if(Gh(m||u)===null)continue;break}var E=wn(u);E!==null&&(o.splice(a,3),a-=3,Ug(E,{pending:!0,data:v,method:u.method,action:m},m,v))}}))}function kl(o){function a(se){return Tf(se,o)}Ya!==null&&Tf(Ya,o),Ua!==null&&Tf(Ua,o),Ga!==null&&Tf(Ga,o),Mc.forEach(a),Rc.forEach(a);for(var u=0;u<Xa.length;u++){var m=Xa[u];m.blockedOn===o&&(m.blockedOn=null)}for(;0<Xa.length&&(u=Xa[0],u.blockedOn===null);)Qx(u),u.blockedOn===null&&Xa.shift();if(u=(o.ownerDocument||o).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var v=u[m],E=u[m+1],k=v[tn]||null;if(typeof E=="function")k||Jx(u);else if(k){var ee=null;if(E&&E.hasAttribute("formAction")){if(v=E,k=E[tn]||null)ee=k.formAction;else if(Gh(v)!==null)continue}else ee=k.action;typeof ee=="function"?u[m+1]=ee:(u.splice(m,3),m-=3),Jx(u)}}}function ew(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(k){return v=k})},focusReset:"manual",scroll:"manual"})}function a(){v!==null&&(v(),v=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),v!==null&&(v(),v=null)}}}function Kh(o){this._internalRoot=o}Nf.prototype.render=Kh.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=Zr();qx(u,m,o,a,null,null)},Nf.prototype.unmount=Kh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;qx(o.current,2,null,o,null,null),uf(),a[wt]=null}};function Nf(o){this._internalRoot=o}Nf.prototype.unstable_scheduleHydration=function(o){if(o){var a=ft();o={blockedOn:null,target:o,priority:a};for(var u=0;u<Xa.length&&a!==0&&a<Xa[u].priority;u++);Xa.splice(u,0,o),u===0&&Qx(o)}};var tw=t.version;if(tw!=="19.2.3")throw Error(r(527,tw,"19.2.3"));H.findDOMNode=function(o){var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=p(a),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var vP={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var If=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!If.isDisabled&&If.supportsFiber)try{Qe=If.inject(vP),ze=If}catch{}}return Nc.createRoot=function(o,a){if(!i(o))throw Error(r(299));var u=!1,m="",v=s$,E=c$,k=u$;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),a=kx(o,1,!1,null,null,u,m,null,v,E,k,ew),o[wt]=a.current,Ih(o),new Kh(a)},Nc.hydrateRoot=function(o,a,u){if(!i(o))throw Error(r(299));var m=!1,v="",E=s$,k=c$,ee=u$,se=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(ee=u.onRecoverableError),u.formState!==void 0&&(se=u.formState)),a=kx(o,1,!0,a,u??null,m,v,se,E,k,ee,ew),a.context=Wx(null),u=a.current,m=Zr(),m=Je(m),v=Aa(m),v.callback=null,Da(u,v,m),u=m,a.current.lanes=u,je(a,u),Fo(a),o[wt]=a.current,Ih(o),new Nf(a)},Nc.version="19.2.3",Nc}var dw;function NP(){if(dw)return Jh.exports;dw=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(),Jh.exports=OP(),Jh.exports}var X4=NP();function ut(e){const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>t.current?.(...r),[])}function Vr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const fw=Vr()?l.useLayoutEffect:l.useEffect,Nt=(e,t)=>{const n=l.useRef(!0);fw(()=>e(n.current),t),fw(()=>(n.current=!1,()=>{n.current=!0}),[])},K4=(e,t)=>{Nt(n=>{if(!n)return e()},t)};function Im(e){const t=l.useRef(!1),[n,r]=l.useState(e);l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(s,c){c&&t.current||r(s)}return[n,i]}function Yt(e,t){const[n,r]=l.useState(e),i=t!==void 0?t:n;return Nt(s=>{s||r(t)},[t]),[i,r]}var ry={exports:{}},un={};var mw;function IP(){if(mw)return un;mw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=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"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function $(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case e:switch(C=C.type,C){case n:case i:case r:case p: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 w}}case t:return w}}}return un.ContextConsumer=c,un.ContextProvider=s,un.Element=e,un.ForwardRef=f,un.Fragment=n,un.Lazy=y,un.Memo=h,un.Portal=t,un.Profiler=i,un.StrictMode=r,un.Suspense=p,un.SuspenseList=g,un.isAsyncMode=function(){return!1},un.isConcurrentMode=function(){return!1},un.isContextConsumer=function(C){return $(C)===c},un.isContextProvider=function(C){return $(C)===s},un.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},un.isForwardRef=function(C){return $(C)===f},un.isFragment=function(C){return $(C)===n},un.isLazy=function(C){return $(C)===y},un.isMemo=function(C){return $(C)===h},un.isPortal=function(C){return $(C)===t},un.isProfiler=function(C){return $(C)===i},un.isStrictMode=function(C){return $(C)===r},un.isSuspense=function(C){return $(C)===p},un.isSuspenseList=function(C){return $(C)===g},un.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===i||C===r||C===p||C===g||C===S||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)},un.typeOf=$,un}var pw;function PP(){return pw||(pw=1,ry.exports=IP()),ry.exports}var oy=PP();function td(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 zP=Symbol.for("react.element"),AP=Symbol.for("react.transitional.element"),DP=Symbol.for("react.fragment");function Q4(e){return e&&typeof e=="object"&&(e.$$typeof===zP||e.$$typeof===AP)&&e.type===DP}const jP=Number(l.version.split(".")[0]),_P=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},rr=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{_P(r,n)})}},fi=(...e)=>td(()=>rr(...e),e,(t,n)=>t.length!==n.length||t.every((r,i)=>r!==n[i])),tl=e=>{if(!e)return!1;if(pS(e)&&jP>=19)return!0;const t=oy.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==oy.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==oy.ForwardRef)};function pS(e){return l.isValidElement(e)&&!Q4(e)}const HP=e=>pS(e)&&tl(e),nl=e=>{if(e&&pS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Po(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 Z4(e,t,n,r){if(!t.length)return n;const[i,...s]=t;let c;return!e&&typeof i=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},r&&n===void 0&&s.length===1?delete c[i][s[0]]:c[i]=Z4(c[i],s,n,r),c}function yo(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Po(e,t.slice(0,-1))?e:Z4(e,t,n,r)}function BP(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function gw(e){return Array.isArray(e)?[]:{}}const LP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function J4(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let i=gw(e[0]);return e.forEach(s=>{function c(d,f){const p=new Set(f),g=Po(s,d),h=Array.isArray(g);if(h||BP(g)){if(!p.has(g)){p.add(g);const y=Po(i,d);h?i=yo(i,d,r(y,g)):(!y||typeof y!="object")&&(i=yo(i,d,gw(g))),LP(g).forEach(S=>{c([...d,S],p)})}}else i=yo(i,d,g)}c([])}),i}function is(...e){return J4(e)}let sb={};const VP=e=>{};function FP(e,t){}function kP(e,t){}function WP(){sb={}}function eR(e,t,n){!t&&!sb[n]&&(e(!1,n),sb[n]=!0)}function er(e,t){eR(FP,e,t)}function qP(e,t){eR(kP,e,t)}er.preMessage=VP;er.resetWarned=WP;er.noteOnce=qP;function nn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function cr(e,t={}){let n=[];return ae.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cr(r)):Q4(r)&&r.props?n=n.concat(cr(r.props.children,t)):n.push(r))}),n}const YP=l.createContext({});function ys(e){return e instanceof HTMLElement||e instanceof SVGElement}function du(e){return e&&typeof e=="object"&&ys(e.nativeElement)?e.nativeElement:ys(e)?e:null}const cb=l.createContext(null);function UP({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),i=l.useContext(cb),s=l.useCallback((c,d,f)=>{n.current+=1;const p=n.current;r.current.push({size:c,element:d,data:f}),Promise.resolve().then(()=>{p===n.current&&(t?.(r.current),r.current=[])}),i?.(c,d,f)},[t,i]);return l.createElement(cb.Provider,{value:s},e)}const ri=new Map;function GP(e){e.forEach(t=>{const{target:n}=t;ri.get(n)?.forEach(r=>r(n))})}let ay;function tR(){return ay||(ay=new ResizeObserver(GP)),ay}function XP(e,t){ri.has(e)||(ri.set(e,new Set),tR().observe(e)),ri.get(e).add(t)}function KP(e,t){ri.has(e)&&(ri.get(e).delete(t),ri.get(e).size||(tR().unobserve(e),ri.delete(e)))}function QP(e,t){const{children:n,disabled:r}=e,i=l.useRef(null),s=l.useContext(cb),c=typeof n=="function",d=c?n(i):n,f=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!c&&l.isValidElement(d)&&tl(d),g=p?nl(d):null,h=fi(g,i),y=()=>du(i.current);l.useImperativeHandle(t,()=>y());const S=l.useRef(e);S.current=e;const b=l.useCallback($=>{const{onResize:C,data:w}=S.current,{width:M,height:x}=$.getBoundingClientRect(),{offsetWidth:R,offsetHeight:T}=$,N=Math.floor(M),O=Math.floor(x);if(f.current.width!==N||f.current.height!==O||f.current.offsetWidth!==R||f.current.offsetHeight!==T){const z={width:N,height:O,offsetWidth:R,offsetHeight:T};f.current=z;const j=R===Math.round(M)?M:R,W=T===Math.round(x)?x:T,F={...z,offsetWidth:j,offsetHeight:W};s?.(F,$,w),C&&Promise.resolve().then(()=>{C(F,$)})}},[]);return l.useEffect(()=>{const $=y();return $&&!r&&XP($,b),()=>KP($,b)},[i.current,r]),p?l.cloneElement(d,{ref:h}):d}const ZP=l.forwardRef(QP);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 JP="rc-observer-key";function ez(e,t){const{children:n}=e;return(typeof n=="function"?[n]:cr(n)).map((i,s)=>{const c=i?.key||`${JP}-${s}`;return l.createElement(ZP,ub({},e,{key:c,ref:s===0?t:void 0}),i)})}const Lr=l.forwardRef(ez);Lr.Collection=UP;function nR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=nR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=nR(e))&&(r&&(r+=" "),r+=t);return r}function db(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 tz(e){if(Array.isArray(e))return db(e)}function nz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rR(e,t){if(e){if(typeof e=="string")return db(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)?db(e,t):void 0}}function rz(){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 xn(e){return tz(e)||nz(e)||rR(e)||rz()}let oR=e=>+setTimeout(e,16),aR=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(oR=e=>window.requestAnimationFrame(e),aR=e=>window.cancelAnimationFrame(e));let hw=0;const gS=new Map;function iR(e){gS.delete(e)}const _t=(e,t=1)=>{hw+=1;const n=hw;function r(i){if(i===0)iR(n),e();else{const s=oR(()=>{r(i-1)});gS.set(n,s)}}return r(t),n};_t.cancel=e=>{const t=gS.get(e);return iR(e),aR(t)};const fu="ant",mp="anticon",oz=["outlined","borderless","filled","underlined"],az=(e,t)=>t||(e?`${fu}-${e}`:fu),dt=l.createContext({getPrefixCls:az,iconPrefixCls:mp}),{Consumer:iee}=dt,yw={};function It(e){const t=l.useContext(dt),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}=t,c=t[e];return{classNames:yw,styles:yw,...c,getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}}function ms(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 fb(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 bw="data-rc-order",vw="data-rc-priority",iz="rc-util-key",mb=new Map;function lR({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:iz}function pp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function lz(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function hS(e){return Array.from((mb.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function sR(e,t={}){if(!Vr())return null;const{csp:n,prepend:r,priority:i=0}=t,s=lz(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(bw,s),c&&i&&d.setAttribute(vw,`${i}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;const f=pp(t),{firstChild:p}=f;if(r){if(c){const g=(t.styles||hS(f)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(bw)))return!1;const y=Number(h.getAttribute(vw)||0);return i>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,p)}else f.appendChild(d);return d}function cR(e,t={}){let{styles:n}=t;return n||=hS(pp(t)),n.find(r=>r.getAttribute(lR(t))===e)}function mu(e,t={}){const n=cR(e,t);n&&pp(t).removeChild(n)}function sz(e,t){const n=mb.get(e);if(!n||!fb(document,n)){const r=sR("",t),{parentNode:i}=r;mb.set(e,i),e.removeChild(r)}}function ii(e,t,n={}){const r=pp(n),i=hS(r),s={...n,styles:i};sz(r,s);const c=cR(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=sR(e,s);return d.setAttribute(lR(s),t),d}function pu(e,t,n=!1){const r=new Set;function i(s,c,d=1){const f=r.has(s);if(er(!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 p=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(!i(s[g],c[g],p))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=>i(s[h],c[h],p))}return!1}return i(e,t)}const cz="%";function pb(e){return e.join(cz)}let Sw=0;class uz{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(pb(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(pb(t),n)}opUpdate(t,n){const r=this.cache.get(t),i=n(r);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,Sw),Sw+=1)}}const yS="data-token-hash",Sa="data-css-hash",oi="__cssinjs_instance__";function dz(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Sa}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(i=>{i[oi]=i[oi]||e,i[oi]===e&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${Sa}]`)).forEach(i=>{const s=i.getAttribute(Sa);r[s]?i[oi]===e&&i.parentNode?.removeChild(i):r[s]=!0})}return new uz(e)}const nd=l.createContext({hashPriority:"low",cache:dz(),defaultCache:!0,autoPrefix:!1});function fz(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 Pm{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(i=>{r?r=r?.map?.get(i):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>Pm.MAX_CACHE_SIZE+Pm.MAX_CACHE_OFFSET){const[i]=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(i)}this.keys.push(t)}let r=this.cache;t.forEach((i,s)=>{if(s===t.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const c=r.get(i);c?c.map||(c.map=new Map):r.set(i,{map:new Map}),r=r.get(i).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 i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!fz(n,t)),this.deleteByPath(this.cache,t)}}let Cw=0;class uR{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Cw,t.length===0&&(t.length>0,void 0),Cw+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const iy=new Pm;function gb(e){const t=Array.isArray(e)?e:[e];return iy.has(t)||iy.set(t,new uR(t)),iy.get(t)}const mz=new WeakMap,ly={};function pz(e,t){let n=mz;for(let r=0;r<t.length;r+=1){const i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(ly)||n.set(ly,e()),n.get(ly)}const $w=new WeakMap;function eu(e){let t=$w.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof uR?t+=r.id:r&&typeof r=="object"?t+=eu(r):t+=r}),t=ms(t),$w.set(e,t)),t}function gz(e,t){return ms(`${t}_${eu(e)}`)}const hb=Vr();function te(e){return typeof e=="number"?`${e}px`:e}function hz(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const fm=(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(),yz=(e,t,n)=>{const{hashCls:r,hashPriority:i="low"}=n||{};return Object.keys(e).length?`${hz({hashCls:r,hashPriority:i})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([s,c])=>`${s}:${c};`).join("")}}`:""},dR=(e,t,n)=>{const{hashCls:r,hashPriority:i="low",prefix:s,unitless:c,ignore:d,preserve:f}=n||{},p={},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 S=fm(h,s);p[S]=typeof y=="number"&&!c?.[h]?`${y}px`:String(y),g[h]=`var(${S})`}}),[g,yz(p,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},Pf=new Map;function bS(e,t,n,r,i){const{cache:s}=l.useContext(nd),c=[e,...t],d=pb(c),f=h=>{s.opUpdate(d,y=>{const[S=0,b]=y||[void 0,void 0],C=b||n(),w=[S,C];return h?h(w):w})};l.useMemo(()=>{f()},[d]);const g=s.opGet(d)[1];return l.useInsertionEffect(()=>(f(([h,y])=>[h+1,y]),Pf.has(d)||(i?.(g),Pf.set(d,!0),Promise.resolve().then(()=>{Pf.delete(d)})),()=>{s.opUpdate(d,h=>{const[y=0,S]=h||[];return y-1===0?(r?.(S,!1),Pf.delete(d),null):[y-1,S]})}),[d]),g}const bz={},vz="css",Li=new Map;function Sz(e){Li.set(e,(Li.get(e)||0)+1)}function Cz(e,t){typeof document<"u"&&document.querySelectorAll(`style[${yS}="${e}"]`).forEach(r=>{r[oi]===t&&r.parentNode?.removeChild(r)})}const $z=-1;function xz(e,t){Li.set(e,(Li.get(e)||0)-1);const n=new Set;Li.forEach((r,i)=>{r<=0&&n.add(i)}),Li.size-n.size>$z&&n.forEach(r=>{Cz(r,t),Li.delete(r)})}const wz=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},Ez="token";function Mz(e,t,n){const{cache:{instanceId:r},container:i,hashPriority:s}=l.useContext(nd),{salt:c="",override:d=bz,formatToken:f,getComputedToken:p,cssVar:g}=n,h=pz(()=>Object.assign({},...t),t),y=eu(h),S=eu(d),b=eu(g);return bS(Ez,[c,e.id,y,S,b],()=>{const C=p?p(h,d,e):wz(h,d,e,f),w={...C},M=`${c}_${g.prefix}`,x=ms(M),R=`${vz}-${ms(M)}`;w._tokenKey=gz(w,M);const[T,N]=dR(C,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:s,hashCls:g.hashed?R:void 0});return T._hashId=x,Sz(g.key),[T,R,w,N,g.key]},([,,,,C])=>{xz(C,r)},([,,,C,w])=>{if(!C)return;const M=ii(C,ms(`css-var-${w}`),{mark:Sa,prepend:"queue",attachTo:i,priority:-999});M[oi]=r,M.setAttribute(yS,w)})}var Rz={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-",tu="-moz-",sn="-webkit-",fR="comm",vS="rule",SS="decl",Tz="@import",Oz="@namespace",mR="@keyframes",Nz="@layer",pR=Math.abs,CS=String.fromCharCode,yb=Object.assign;function Iz(e,t){return Zn(e,0)^45?(((t<<2^Zn(e,0))<<2^Zn(e,1))<<2^Zn(e,2))<<2^Zn(e,3):0}function gR(e){return e.trim()}function ya(e,t){return(e=t.exec(e))?e[0]:e}function Ht(e,t,n){return e.replace(t,n)}function mm(e,t,n){return e.indexOf(t,n)}function Zn(e,t){return e.charCodeAt(t)|0}function Gi(e,t,n){return e.slice(t,n)}function No(e){return e.length}function hR(e){return e.length}function qc(e,t){return t.push(e),e}function Pz(e,t){return e.map(t).join("")}function xw(e,t){return e.filter(function(n){return!ya(n,t)})}var gp=1,bs=1,yR=0,vo=0,Un=0,Ts="";function hp(e,t,n,r,i,s,c,d){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:gp,column:bs,length:c,return:"",siblings:d}}function Ja(e,t){return yb(hp("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Wl(e){for(;e.root;)e=Ja(e.root,{children:[e]});qc(e,e.siblings)}function zz(){return Un}function Az(){return Un=vo>0?Zn(Ts,--vo):0,bs--,Un===10&&(bs=1,gp--),Un}function zo(){return Un=vo<yR?Zn(Ts,vo++):0,bs++,Un===10&&(bs=1,gp++),Un}function ai(){return Zn(Ts,vo)}function pm(){return vo}function yp(e,t){return Gi(Ts,e,t)}function gu(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 Dz(e){return gp=bs=1,yR=No(Ts=e),vo=0,[]}function jz(e){return Ts="",e}function sy(e){return gR(yp(vo-1,bb(e===91?e+2:e===40?e+1:e)))}function _z(e){for(;(Un=ai())&&Un<33;)zo();return gu(e)>2||gu(Un)>3?"":" "}function Hz(e,t){for(;--t&&zo()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return yp(e,pm()+(t<6&&ai()==32&&zo()==32))}function bb(e){for(;zo();)switch(Un){case e:return vo;case 34:case 39:e!==34&&e!==39&&bb(Un);break;case 40:e===41&&bb(e);break;case 92:zo();break}return vo}function Bz(e,t){for(;zo()&&e+Un!==57;)if(e+Un===84&&ai()===47)break;return"/*"+yp(t,vo-1)+"*"+CS(e===47?e:zo())}function Lz(e){for(;!gu(ai());)zo();return yp(e,vo)}function ww(e){return jz(gm("",null,null,null,[""],e=Dz(e),0,[0],e))}function gm(e,t,n,r,i,s,c,d,f){for(var p=0,g=0,h=c,y=0,S=0,b=0,$=1,C=1,w=1,M=0,x="",R=i,T=s,N=r,O=x;C;)switch(b=M,M=zo()){case 40:if(b!=108&&Zn(O,h-1)==58){mm(O+=Ht(sy(M),"&","&\f"),"&\f",pR(p?d[p-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:O+=sy(M);break;case 9:case 10:case 13:case 32:O+=_z(b);break;case 92:O+=Hz(pm()-1,7);continue;case 47:switch(ai()){case 42:case 47:qc(Vz(Bz(zo(),pm()),t,n,f),f),(gu(b||1)==5||gu(ai()||1)==5)&&No(O)&&Gi(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*$:d[p++]=No(O)*w;case 125*$:case 59:case 0:switch(M){case 0:case 125:C=0;case 59+g:w==-1&&(O=Ht(O,/\f/g,"")),S>0&&(No(O)-h||$===0&&b===47)&&qc(S>32?Mw(O+";",r,n,h-1,f):Mw(Ht(O," ","")+";",r,n,h-2,f),f);break;case 59:O+=";";default:if(qc(N=Ew(O,t,n,p,g,i,d,x,R=[],T=[],h,s),s),M===123)if(g===0)gm(O,t,N,N,R,s,h,d,T);else{switch(y){case 99:if(Zn(O,3)===110)break;case 108:if(Zn(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?gm(e,N,N,r&&qc(Ew(e,N,N,0,0,i,d,x,i,R=[],h,T),T),i,T,h,d,r?R:T):gm(O,N,N,N,[""],T,0,d,T)}}p=g=S=0,$=w=1,x=O="",h=c;break;case 58:h=1+No(O),S=b;default:if($<1){if(M==123)--$;else if(M==125&&$++==0&&Az()==125)continue}switch(O+=CS(M),M*$){case 38:w=g>0?1:(O+="\f",-1);break;case 44:d[p++]=(No(O)-1)*w,w=1;break;case 64:ai()===45&&(O+=sy(zo())),y=ai(),g=h=No(x=O+=Lz(pm())),M++;break;case 45:b===45&&No(O)==2&&($=0)}}return s}function Ew(e,t,n,r,i,s,c,d,f,p,g,h){for(var y=i-1,S=i===0?s:[""],b=hR(S),$=0,C=0,w=0;$<r;++$)for(var M=0,x=Gi(e,y+1,y=pR(C=c[$])),R=e;M<b;++M)(R=gR(C>0?S[M]+" "+x:Ht(x,/&\f/g,S[M])))&&(f[w++]=R);return hp(e,t,n,i===0?vS:d,f,p,g,h)}function Vz(e,t,n,r){return hp(e,t,n,fR,CS(zz()),Gi(e,2,-2),0,r)}function Mw(e,t,n,r,i){return hp(e,t,n,SS,Gi(e,0,r),Gi(e,r+1,-1),r,i)}function bR(e,t,n){switch(Iz(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 tu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sn+e+tu+e+On+e+e;case 5936:switch(Zn(e,t+11)){case 114:return sn+e+On+Ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sn+e+On+Ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sn+e+On+Ht(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+Ht(e,/(\w+).+(:[^]+)/,sn+"box-$1$2"+On+"flex-$1$2")+e;case 5443:return sn+e+On+"flex-item-"+Ht(e,/flex-|-self/g,"")+(ya(e,/flex-|baseline/)?"":On+"grid-row-"+Ht(e,/flex-|-self/g,""))+e;case 4675:return sn+e+On+"flex-line-pack"+Ht(e,/align-content|flex-|-self/g,"")+e;case 5548:return sn+e+On+Ht(e,"shrink","negative")+e;case 5292:return sn+e+On+Ht(e,"basis","preferred-size")+e;case 6060:return sn+"box-"+Ht(e,"-grow","")+sn+e+On+Ht(e,"grow","positive")+e;case 4554:return sn+Ht(e,/([^-])(transform)/g,"$1"+sn+"$2")+e;case 6187:return Ht(Ht(Ht(e,/(zoom-|grab)/,sn+"$1"),/(image-set)/,sn+"$1"),e,"")+e;case 5495:case 3959:return Ht(e,/(image-set\([^]*)/,sn+"$1$`$1");case 4968:return Ht(Ht(e,/(.+:)(flex-)?(.*)/,sn+"box-pack:$3"+On+"flex-pack:$3"),/space-between/,"justify")+sn+e+e;case 4200:if(!ya(e,/flex-|baseline/))return On+"grid-column-align"+Gi(e,t)+e;break;case 2592:case 3360:return On+Ht(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ya(r.props,/grid-\w+-end/)})?~mm(e+(n=n[t].value),"span",0)?e:On+Ht(e,"-start","")+e+On+"grid-row-span:"+(~mm(n,"span",0)?ya(n,/\d+/):+ya(n,/\d+/)-+ya(e,/\d+/))+";":On+Ht(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ya(r.props,/grid-\w+-start/)})?e:On+Ht(Ht(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ht(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(No(e)-1-t>6)switch(Zn(e,t+1)){case 109:if(Zn(e,t+4)!==45)break;case 102:return Ht(e,/(.+:)(.+)-([^]+)/,"$1"+sn+"$2-$3$1"+tu+(Zn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mm(e,"stretch",0)?bR(Ht(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ht(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,c,d,f,p){return On+i+":"+s+p+(c?On+i+"-span:"+(d?f:+f-+s)+p:"")+e});case 4949:if(Zn(e,t+6)===121)return Ht(e,":",":"+sn)+e;break;case 6444:switch(Zn(e,Zn(e,14)===45?18:11)){case 120:return Ht(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+sn+(Zn(e,14)===45?"inline-":"")+"box$3$1"+sn+"$2$3$1"+On+"$2box$3")+e;case 100:return Ht(e,":",":"+On)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ht(e,"scroll-","scroll-snap-")+e}return e}function hu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Rw(e,t,n,r){switch(e.type){case Nz:if(e.children.length)break;case Tz:case Oz:case SS:return e.return=e.return||e.value;case fR:return"";case mR:return e.return=e.value+"{"+hu(e.children,r)+"}";case vS:if(!No(e.value=e.props.join(",")))return""}return No(n=hu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fz(e){var t=hR(e);return function(n,r,i,s){for(var c="",d=0;d<t;d++)c+=e[d](n,r,i,s)||"";return c}}function kz(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case SS:e.return=bR(e.value,e.length,n);return;case mR:return hu([Ja(e,{value:Ht(e.value,"@","@"+sn)})],r);case vS:if(e.length)return Pz(n=e.props,function(i){switch(ya(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wl(Ja(e,{props:[Ht(i,/:(read-\w+)/,":"+tu+"$1")]})),Wl(Ja(e,{props:[i]})),yb(e,{props:xw(n,r)});break;case"::placeholder":Wl(Ja(e,{props:[Ht(i,/:(plac\w+)/,":"+sn+"input-$1")]})),Wl(Ja(e,{props:[Ht(i,/:(plac\w+)/,":"+tu+"$1")]})),Wl(Ja(e,{props:[Ht(i,/:(plac\w+)/,On+"input-$1")]})),Wl(Ja(e,{props:[i]})),yb(e,{props:xw(n,r)});break}return""})}}const Tw="data-ant-cssinjs-cache-path",vR="_FILE_STYLE__";let Yi,SR=!0;function Wz(){if(!Yi&&(Yi={},Vr())){const e=document.createElement("div");e.className=Tw,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[i,s]=r.split(":");Yi[i]=s});const n=document.querySelector(`style[${Tw}]`);n&&(SR=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function qz(e){return Wz(),!!Yi[e]}function Yz(e){const t=Yi[e];let n=null;if(t&&Vr())if(SR)n=vR;else{const r=document.querySelector(`style[${Sa}="${Yi[e]}"]`);r?n=r.innerHTML:delete Yi[e]}return[n,t]}const Uz="_skip_check_",CR="_multi_value_";function cy(e,t){return(t?hu(ww(e),Fz([kz,Rw])):hu(ww(e),Rw)).replace(/\{%%%\:[^;];}/g,";")}function Gz(e){return typeof e=="object"&&e&&(Uz in e||CR in e)}function Ow(e,t,n){if(!t)return e;const r=`.${t}`,i=n==="low"?`:where(${r})`:r;return e.split(",").map(c=>{const d=c.trim().split(/\s+/);let f=d[0]||"";const p=f.match(/^\w+/)?.[0]||"";return f=`${p}${i}${f.slice(p.length)}`,[f,...d.slice(1)].join(" ")}).join(",")}const vb=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:c,path:d,hashPriority:f,transformers:p=[],linters:g=[]}=t;let h="",y={};function S(C){const w=C.getName(s);if(!y[w]){const[M]=vb(C.style,t,{root:!1,parentSelectors:i});y[w]=`@keyframes ${C.getName(s)}${M}`}}function b(C,w=[]){return C.forEach(M=>{Array.isArray(M)?b(M,w):M&&w.push(M)}),w}return b(Array.isArray(e)?e:[e]).forEach(C=>{const w=typeof C=="string"&&!n?{}:C;if(typeof w=="string")h+=`${w}
11
- `;else if(w._keyframe)S(w);else{const M=p.reduce((x,R)=>R?.visit?.(x)||x,w);Object.keys(M).forEach(x=>{const R=M[x];if(typeof R=="object"&&R&&(x!=="animationName"||!R._keyframe)&&!Gz(R)){let T=!1,N=x.trim(),O=!1;(n||r)&&s?N.startsWith("@")?T=!0:N==="&"?N=Ow("",s,f):N=Ow(x,s,f):n&&!s&&(N==="&"||N==="")&&(N="",O=!0);const[z,j]=vb(R,t,{root:O,injectHash:T,parentSelectors:[...i,N]});y={...y,...j},h+=`${N}${z}`}else{let T=function(O,z){const j=O.replace(/[A-Z]/g,F=>`-${F.toLowerCase()}`);let W=z;!Rz[O]&&typeof W=="number"&&W!==0&&(W=`${W}px`),O==="animationName"&&z?._keyframe&&(S(z),W=z.getName(s)),h+=`${j}:${W};`};const N=R?.value??R;typeof R=="object"&&R?.[CR]&&Array.isArray(N)?N.forEach(O=>{T(x,O)}):T(x,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 $R(e,t){return ms(`${e.join("%")}${t}`)}const Xz="style";function Sb(e,t){const{path:n,hashId:r,layer:i,nonce:s,clientOnly:c,order:d=0}=e,{mock:f,hashPriority:p,container:g,transformers:h,linters:y,cache:S,layer:b,autoPrefix:$}=l.useContext(nd),C=[r||""];b&&C.push("layer"),C.push(...n);let w=hb;bS(Xz,C,()=>{const M=C.join("|");if(qz(M)){const[z,j]=Yz(M);if(z)return[z,j,{},c,d]}const x=t(),[R,T]=vb(x,{hashId:r,hashPriority:p,layer:b?i:void 0,path:n.join("-"),transformers:h,linters:y}),N=cy(R,$||!1),O=$R(C,N);return[N,O,T,c,d]},(M,x)=>{const[,R]=M;x&&hb&&mu(R,{mark:Sa,attachTo:g})},M=>{const[x,R,T,,N]=M;if(w&&x!==vR){const O={mark:Sa,prepend:b?!1:"queue",attachTo:g,priority:N},z=typeof s=="function"?s():s;z&&(O.csp={nonce:z});const j=[],W=[];Object.keys(T).forEach(Y=>{Y.startsWith("@layer")?j.push(Y):W.push(Y)}),j.forEach(Y=>{ii(cy(T[Y],$||!1),`_layer-${Y}`,{...O,prepend:!0})});const F=ii(x,R,O);F[oi]=S.instanceId,W.forEach(Y=>{ii(cy(T[Y],$||!1),`_effect-${Y}`,O)})}})}const Kz="cssVar",Qz=(e,t)=>{const{key:n,prefix:r,unitless:i,ignore:s,token:c,hashId:d,scope:f=""}=e,{cache:{instanceId:p},container:g,hashPriority:h}=l.useContext(nd),{_tokenKey:y}=c,S=[...e.path,n,f,y];return bS(Kz,S,()=>{const $=t(),[C,w]=dR($,n,{prefix:r,unitless:i,ignore:s,scope:f,hashPriority:h,hashCls:d}),M=$R(S,w);return[C,w,M,n]},([,,$])=>{hb&&mu($,{mark:Sa,attachTo:g})},([,$,C])=>{if(!$)return;const w=ii($,C,{mark:Sa,prepend:"queue",attachTo:g,priority:-999});w[oi]=p,w.setAttribute(yS,n)})};class At{name;style;constructor(t,n){this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function ql(e){return e.notSplit=!0,e}ql(["borderTop","borderBottom"]),ql(["borderTop"]),ql(["borderBottom"]),ql(["borderLeft","borderRight"]),ql(["borderLeft"]),ql(["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 Zz(e){if(Array.isArray(e))return e}function Jz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function e8(){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 xR(e,t){return Zz(e)||Jz(e,t)||rR(e,t)||e8()}function t8(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 wR(e){var t=t8(e,"string");return Xn(t)=="symbol"?t:t+""}function lr(e,t,n){return(t=wR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(n),!0).forEach(function(r){lr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n8(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,wR(r.key),r)}}function ol(e,t,n){return t&&n8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ps(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yu(e,t){return yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yu(e,t)}function $S(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&&yu(e,t)}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xi(e)}function bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bp=function(){return!!e})()}function ER(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 ps(e)}function MR(e){var t=bp();return function(){var n,r=Xi(e);if(t){var i=Xi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ER(this,n)}}var r8=ol(function e(){rl(this,e)}),RR="CALC_UNIT",o8=new RegExp(RR,"g");function uy(e){return typeof e=="number"?"".concat(e).concat(RR):e}var a8=(function(e){$S(n,e);var t=MR(n);function n(r,i){var s;rl(this,n),s=t.call(this),lr(ps(s),"result",""),lr(ps(s),"unitlessCssVar",void 0),lr(ps(s),"lowPriority",void 0);var c=Xn(r);return s.unitlessCssVar=i,r instanceof n?s.result="(".concat(r.result,")"):c==="number"?s.result=uy(r):c==="string"&&(s.result=r),s}return ol(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(uy(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(uy(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var s=this,c=i||{},d=c.unit,f=!0;return typeof d=="boolean"?f=d:Array.from(this.unitlessCssVar).some(function(p){return s.result.includes(p)})&&(f=!1),this.result=this.result.replace(o8,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(r8),i8=function(t,n){var r=a8;return function(i){return new r(i,n)}},Iw=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 Pw(e,t,n,r){var i=Dn({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var f=xR(d,2),p=f[0],g=f[1];if(i!=null&&i[p]||i!=null&&i[g]){var h;(h=i[g])!==null&&h!==void 0||(i[g]=i?.[p])}})}var c=Dn(Dn({},n),i);return Object.keys(c).forEach(function(d){c[d]===t[d]&&delete c[d]}),c}var TR=typeof CSSINJS_STATISTIC<"u",Cb=!0;function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!TR)return Object.assign.apply(Object,[{}].concat(t));Cb=!1;var r={};return t.forEach(function(i){if(Xn(i)==="object"){var s=Object.keys(i);s.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return i[c]}})})}}),Cb=!0,r}var zw={};function l8(){}var s8=function(t){var n,r=t,i=l8;return TR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,d){if(Cb){var f;(f=n)===null||f===void 0||f.add(d)}return c[d]}}),i=function(c,d){var f;zw[c]={global:Array.from(n),component:Dn(Dn({},(f=zw[c])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:i}};function Aw(e,t,n){if(typeof n=="function"){var r;return n(Ot(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function c8(e){return{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(s){return te(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(s){return te(s)}).join(","),")")}}}var u8=1e3*60*10,d8=(function(){function e(){rl(this,e),lr(this,"map",new Map),lr(this,"objectIDMap",new WeakMap),lr(this,"nextID",0),lr(this,"lastAccessBeat",new Map),lr(this,"accessBeat",0)}return ol(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(s){return s&&Xn(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Xn(s),"_").concat(s)});return i.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(i,s){r-i>u8&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Dw=new d8;function f8(e,t){return ae.useMemo(function(){var n=Dw.get(t);if(n)return n;var r=e();return Dw.set(t,r),r},t)}var m8=function(){return{}};function p8(e){var t=e.useCSP,n=t===void 0?m8:t,r=e.useToken,i=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function f(y,S,b,$){var C=Array.isArray(y)?y[0]:y;function w(z){return"".concat(String(C)).concat(z.slice(0,1).toUpperCase()).concat(z.slice(1))}var M=$?.unitless||{},x=typeof d=="function"?d(y):{},R=Dn(Dn({},x),{},lr({},w("zIndexPopup"),!0));Object.keys(M).forEach(function(z){R[w(z)]=M[z]});var T=Dn(Dn({},$),{},{unitless:R,prefixToken:w}),N=g(y,S,b,T),O=p(C,b,T);return function(z){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,W=N(z,j),F=O(j);return[W,F]}}function p(y,S,b){var $=b.unitless,C=b.prefixToken,w=b.ignore;return function(M){var x=r(),R=x.cssVar,T=x.realToken;return Qz({path:[y],prefix:R.prefix,key:R.key,unitless:$,ignore:w,token:T,scope:M},function(){var N=Aw(y,T,S),O=Pw(y,T,N,{deprecatedTokens:b?.deprecatedTokens});return N&&Object.keys(N).forEach(function(z){O[C(z)]=O[z],delete O[z]}),O}),R?.key}}function g(y,S,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(y)?y:[y,y],w=xR(C,1),M=w[0],x=C.join("-"),R=e.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=r(),z=O.theme,j=O.realToken,W=O.hashId,F=O.token,Y=O.cssVar,U=O.zeroRuntime,L=l.useMemo(function(){return U},[]);if(L)return W;var B=i(),_=B.rootPrefixCls,H=B.iconPrefixCls,I=n(),A="css",V=f8(function(){var K=new Set;return Object.keys($.unitless||{}).forEach(function(Z){K.add(fm(Z,Y.prefix)),K.add(fm(Z,Iw(M,Y.prefix)))}),i8(A,K)},[A,M,Y?.prefix]),P=c8(),D=P.max,q=P.min,G={theme:z,token:F,hashId:W,nonce:function(){return I.nonce},clientOnly:$.clientOnly,layer:R,order:$.order||-999};return typeof s=="function"&&Sb(Dn(Dn({},G),{},{clientOnly:!1,path:["Shared",_]}),function(){return s(F,{prefix:{rootPrefixCls:_,iconPrefixCls:H},csp:I})}),Sb(Dn(Dn({},G),{},{path:[x,T,H]}),function(){if($.injectStyle===!1)return[];var K=s8(F),Z=K.token,J=K.flush,ie=Aw(M,j,b),ne=".".concat(T),oe=Pw(M,j,ie,{deprecatedTokens:$.deprecatedTokens});ie&&Xn(ie)==="object"&&Object.keys(ie).forEach(function(ge){ie[ge]="var(".concat(fm(ge,Iw(M,Y.prefix)),")")});var ue=Ot(Z,{componentCls:ne,prefixCls:T,iconCls:".".concat(H),antCls:".".concat(_),calc:V,max:D,min:q},ie),le=S(ue,{hashId:W,prefixCls:T,rootPrefixCls:_,iconPrefixCls:H});J(M,oe);var fe=typeof c=="function"?c(ue,T,N,$.resetFont):null;return[$.resetStyle===!1?null:fe,le]}),W}}function h(y,S,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=g(y,S,b,Dn({resetStyle:!1,order:-998},$)),w=function(x){var R=x.prefixCls,T=x.rootCls,N=T===void 0?R:T;return C(R,N),null};return w}return{genStyleHooks:f,genSubStyleComponent:h,genComponentStyleHook:g}}const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function hm(e){return(e+8)/e}function g8(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,s=e*Math.E**(i/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:hm(n)}))}const h8="6.1.1",OR={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"},bu={...OR,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},y8={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"},ir=Math.round;function dy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const jw=(e,t,n)=>n===0?e:e/100;function Ic(e,t){const n=t||255;return e>n?n:e<0?0:e}class en{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let s=function(c){return i.startsWith(c)};var r=s;const i=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(i))this.fromHexString(i);else if(s("rgb"))this.fromRgbString(i);else if(s("hsl"))this.fromHslString(i);else if(s("hsv")||s("hsb"))this.fromHsvString(i);else{const c=y8[i.toLowerCase()];c&&this.fromHexString(parseInt(c,36).toString(16).padStart(6,"0"))}}else if(t instanceof en)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ic(t.r),this.g=Ic(t.g),this.b=Ic(t.b),this.a=typeof t.a=="number"?Ic(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),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ir(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,s=d=>(r[d]-this[d])*i+this[d],c={r:ir(s("r")),g:ir(s("g")),b:ir(s("b")),a:ir(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),i=s=>ir((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=ir(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ir(this.getSaturation()*100),r=ir(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ic(n,r),i}_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(i,s){return parseInt(n[i]+n[s||i],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:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const y=ir(r*255);this.r=y,this.g=y,this.b=y}let s=0,c=0,d=0;const f=t/60,p=(1-Math.abs(2*r-1))*n,g=p*(1-Math.abs(f%2-1));f>=0&&f<1?(s=p,c=g):f>=1&&f<2?(s=g,c=p):f>=2&&f<3?(c=p,d=g):f>=3&&f<4?(c=g,d=p):f>=4&&f<5?(s=g,d=p):f>=5&&f<6&&(s=p,d=g);const h=r-p/2;this.r=ir((s+h)*255),this.g=ir((c+h)*255),this.b=ir((d+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const s=ir(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const c=t/60,d=Math.floor(c),f=c-d,p=ir(r*(1-n)*255),g=ir(r*(1-n*f)*255),h=ir(r*(1-n*(1-f))*255);switch(d){case 0:this.g=h,this.b=p;break;case 1:this.r=g,this.b=p;break;case 2:this.r=p,this.b=h;break;case 3:this.r=p,this.g=g;break;case 4:this.r=h,this.g=p;break;default:this.g=p,this.b=g;break}}fromHsvString(t){const n=dy(t,jw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=dy(t,jw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=dy(t,(r,i)=>i.includes("%")?ir(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const zf=2,_w=.16,b8=.05,v8=.05,S8=.15,NR=5,IR=4,C8=[{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 Hw(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-zf*t:Math.round(e.h)+zf*t:r=n?Math.round(e.h)+zf*t:Math.round(e.h)-zf*t,r<0?r+=360:r>=360&&(r-=360),r}function Bw(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-_w*t:t===IR?r=e.s+_w:r=e.s+b8*t,r>1&&(r=1),n&&t===NR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Lw(e,t,n){let r;return n?r=e.v+v8*t:r=e.v-S8*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xS(e,t={}){const n=[],r=new en(e),i=r.toHsv();for(let s=NR;s>0;s-=1){const c=new en({h:Hw(i,s,!0),s:Bw(i,s,!0),v:Lw(i,s,!0)});n.push(c)}n.push(r);for(let s=1;s<=IR;s+=1){const c=new en({h:Hw(i,s),s:Bw(i,s),v:Lw(i,s)});n.push(c)}return t.theme==="dark"?C8.map(({index:s,amount:c})=>new en(t.backgroundColor||"#141414").mix(n[s],c).toHexString()):n.map(s=>s.toHexString())}const gs={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"},$b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];$b.primary=$b[5];const xb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];xb.primary=xb[5];const wb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wb.primary=wb[5];const zm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];zm.primary=zm[5];const Eb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Eb.primary=Eb[5];const Mb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Mb.primary=Mb[5];const Rb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rb.primary=Rb[5];const Tb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Tb.primary=Tb[5];const Am=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Am.primary=Am[5];const Ob=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ob.primary=Ob[5];const Nb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Nb.primary=Nb[5];const Ib=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ib.primary=Ib[5];const Pb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pb.primary=Pb[5];const fy={red:$b,volcano:xb,orange:wb,gold:zm,yellow:Eb,lime:Mb,green:Rb,cyan:Tb,blue:Am,geekblue:Ob,purple:Nb,magenta:Ib,grey:Pb};function $8(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:s,colorInfo:c,colorPrimary:d,colorBgBase:f,colorTextBase:p}=e,g=t(d),h=t(r),y=t(i),S=t(s),b=t(c),$=n(f,p),C=e.colorLink||e.colorInfo,w=t(C),M=new en(S[1]).mix(new en(S[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:S[1],colorErrorBgHover:S[2],colorErrorBgFilledHover:M,colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[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:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new en("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const x8=e=>{let t=e,n=e,r=e,i=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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function w8(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...x8(r)}}const E8=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},M8=e=>{const t=g8(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),i=n[1],s=n[0],c=n[2],d=r[1],f=r[0],p=r[2];return{fontSizeSM:s,fontSize:i,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:p,lineHeightSM:f,fontHeight:Math.round(d*i),fontHeightLG:Math.round(p*c),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function R8(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 po=(e,t)=>new en(e).setA(t).toRgbString(),Yl=(e,t)=>new en(e).darken(t).toHexString(),T8=e=>{const t=xS(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]}},O8=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:po(r,.88),colorTextSecondary:po(r,.65),colorTextTertiary:po(r,.45),colorTextQuaternary:po(r,.25),colorFill:po(r,.15),colorFillSecondary:po(r,.06),colorFillTertiary:po(r,.04),colorFillQuaternary:po(r,.02),colorBgSolid:po(r,1),colorBgSolidHover:po(r,.75),colorBgSolidActive:po(r,.95),colorBgLayout:Yl(n,4),colorBgContainer:Yl(n,0),colorBgElevated:Yl(n,0),colorBgSpotlight:po(r,.85),colorBgBlur:"transparent",colorBorder:Yl(n,15),colorBorderDisabled:Yl(n,15),colorBorderSecondary:Yl(n,6)}};function PR(e){gs.pink=gs.magenta,fy.pink=fy.magenta;const t=Object.keys(OR).map(n=>{const r=e[n]===gs[n]?fy[n]:xS(e[n]);return Array.from({length:10},()=>1).reduce((i,s,c)=>(i[`${n}-${c+1}`]=r[c],i[`${n}${c+1}`]=r[c],i),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...$8(e,{generateColorPalettes:T8,generateNeutralColorPalettes:O8}),...M8(e.fontSize),...R8(e),...E8(e),...w8(e)}}const zR=gb(PR),Dm={token:bu,override:{override:bu},hashed:!0},AR=ae.createContext(Dm);function my(e){return e>=0&&e<=255}function Yc(e,t){const{r:n,g:r,b:i,a:s}=new en(e).toRgb();if(s<1)return e;const{r:c,g:d,b:f}=new en(t).toRgb();for(let p=.01;p<=1;p+=.01){const g=Math.round((n-c*(1-p))/p),h=Math.round((r-d*(1-p))/p),y=Math.round((i-f*(1-p))/p);if(my(g)&&my(h)&&my(y))return new en({r:g,g:h,b:y,a:Math.round(p*100)/100}).toRgbString()}return new en({r:n,g:r,b:i,a:1}).toRgbString()}function N8(e){const{override:t,...n}=e,r={...t};Object.keys(bu).forEach(y=>{delete r[y]});const i={...n,...r},s=480,c=576,d=768,f=992,p=1200,g=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Yc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Yc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Yc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Yc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
28
- 0 1px 2px -2px ${new en("rgba(0, 0, 0, 0.16)").toRgbString()},
29
- 0 3px 6px 0 ${new en("rgba(0, 0, 0, 0.12)").toRgbString()},
30
- 0 5px 12px 4px ${new en("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 DR={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},I8={motionBase:!0,motionUnit:!0},P8={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},jR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...s}=t;let c={...r,override:i};return c=N8(c),s&&Object.entries(s).forEach(([d,f])=>{const{theme:p,...g}=f;let h=g;p&&(h=jR({...c,...g},{override:g},p)),c[d]=h}),c};function kr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:s}=ae.useContext(AR),c={prefix:i?.prefix??"ant",key:i?.key??"css-var-root"},d=`${h8}-${t||""}`,f=n||zR,[p,g,h]=Mz(f,[bu,e],{salt:d,override:r,getComputedToken:jR,cssVar:{...c,unitless:DR,ignore:I8,preserve:P8}});return[f,h,t?g:"",p,c,!!s]}const So={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=(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}),Os=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Ki=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),z8=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"}}}),A8=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:i,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...d,...c,[i]:c}}},Yo=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Co=(e,t)=>({"&:focus-visible":Yo(e,t)}),_R=e=>({[`.${e}`]:{...Os(),[`.${e} .${e}-icon`]:{display:"block"}}}),HR=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Co(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Pt,genComponentStyleHook:D8,genSubStyleComponent:rd}=p8({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i,s]=kr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:s}},useCSP:()=>{const{csp:e}=l.useContext(dt);return e??{}},getResetStyles:(e,t)=>{const n=z8(e);return[n,{"&":n},_R(t?.prefix.iconPrefixCls??mp)]},getCommonStyle:A8,getCompUnitless:()=>DR}),j8=(e,t)=>{const n=`--${e.replace(".","")}-${t}-`;return(r,i=!1)=>{const s=`${n}${r}`;return i?`var(${s})`:s}};function vp(e,t){return ci.reduce((n,r)=>{const i=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],d=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:s,darkColor:c,textColor:d})}},{})}const _8=(e,t)=>(kr(),Sb({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>_R(e)));var H8={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 wS=l.createContext({});function BR(e){return e?.getRootNode?.()}function B8(e){return BR(e)instanceof ShadowRoot}function jm(e){return B8(e)?BR(e):null}function L8(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function V8(e,t){er(e,`[@ant-design/icons] ${t}`)}function Vw(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Fw(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[L8(n)]=r),t},{})}function zb(e,t,n){return n?ae.createElement(e.tag,{key:t,...Fw(e.attrs),...n},(e.children||[]).map((r,i)=>zb(r,`${t}-${e.tag}-${i}`))):ae.createElement(e.tag,{key:t,...Fw(e.attrs)},(e.children||[]).map((r,i)=>zb(r,`${t}-${e.tag}-${i}`)))}function LR(e){return xS(e)[0]}function VR(e){return e?Array.isArray(e)?e:[e]:[]}const F8=`
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
- `,k8=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(wS);let i=F8;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {
104
- ${i}
105
- }`),l.useEffect(()=>{const s=e.current,c=jm(s);ii(i,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},nu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function W8({primaryColor:e,secondaryColor:t}){nu.primaryColor=e,nu.secondaryColor=t||LR(e),nu.calculated=!!t}function q8(){return{...nu}}const Ns=e=>{const{icon:t,className:n,onClick:r,style:i,primaryColor:s,secondaryColor:c,...d}=e,f=l.useRef(null);let p=nu;if(s&&(p={primaryColor:s,secondaryColor:c||LR(s)}),k8(f),V8(Vw(t),`icon should be icon definiton, but got ${t}`),!Vw(t))return null;let g=t;return g&&typeof g.icon=="function"&&(g={...g,icon:g.icon(p.primaryColor,p.secondaryColor)}),zb(g.icon,`svg-${g.name}`,{className:n,onClick:r,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:f})};Ns.displayName="IconReact";Ns.getTwoToneColors=q8;Ns.setTwoToneColors=W8;function FR(e){const[t,n]=VR(e);return Ns.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Y8(){const e=Ns.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Ab(){return Ab=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},Ab.apply(this,arguments)}FR(Am.primary);const gt=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:i,rotate:s,tabIndex:c,onClick:d,twoToneColor:f,...p}=e,{prefixCls:g="anticon",rootClassName:h}=l.useContext(wS),y=Q(h,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!i||r.name==="loading"},n);let S=c;S===void 0&&d&&(S=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[$,C]=VR(f);return l.createElement("span",Ab({role:"img","aria-label":r.name},p,{ref:t,tabIndex:S,onClick:d,className:y}),l.createElement(Ns,{icon:r,primaryColor:$,secondaryColor:C,style:b}))});gt.getTwoToneColor=Y8;gt.setTwoToneColor=FR;function Db(){return Db=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},Db.apply(this,arguments)}const U8=(e,t)=>l.createElement(gt,Db({},e,{ref:t,icon:H8})),Sp=l.forwardRef(U8);var G8={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 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 X8=(e,t)=>l.createElement(gt,jb({},e,{ref:t,icon:G8})),Is=l.forwardRef(X8);var K8={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 _b(){return _b=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},_b.apply(this,arguments)}const Q8=(e,t)=>l.createElement(gt,_b({},e,{ref:t,icon:K8})),Wr=l.forwardRef(Q8);var Z8={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 Hb(){return Hb=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},Hb.apply(this,arguments)}const J8=(e,t)=>l.createElement(gt,Hb({},e,{ref:t,icon:Z8})),Ps=l.forwardRef(J8);var e5={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 Bb(){return Bb=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},Bb.apply(this,arguments)}const t5=(e,t)=>l.createElement(gt,Bb({},e,{ref:t,icon:e5})),ES=l.forwardRef(t5),kR=l.createContext({});function n5({children:e,...t}){return l.createElement(kR.Provider,{value:t},e)}function r5(e){const[,t]=l.useReducer(s=>s+1,0),n=l.useRef(e),r=ut(()=>n.current),i=ut(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,i]}const ba="none",Af="appear",Df="enter",jf="leave",kw="none",Io="prepare",ls="start",ss="active",MS="end",WR="prepared";function Ww(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 o5(e,t){const n={animationend:Ww("Animation","AnimationEnd"),transitionend:Ww("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const a5=o5(Vr(),typeof window<"u"?window:{});let qR={};Vr()&&({style:qR}=document.createElement("div"));const _f={};function YR(e){if(_f[e])return _f[e];const t=a5[e];if(t){const n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){const s=n[i];if(Object.prototype.hasOwnProperty.call(t,s)&&s in qR)return _f[e]=t[s],_f[e]}}return""}const UR=YR("animationend"),GR=YR("transitionend"),i5=!!(UR&&GR),qw=UR||"animationend",Yw=GR||"transitionend";function Uw(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 l5=(e=>{const t=l.useRef();function n(i){i&&(i.removeEventListener(Yw,e),i.removeEventListener(qw,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(Yw,e),i.addEventListener(qw,e),t.current=i)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),XR=Vr()?l.useLayoutEffect:l.useEffect,s5=(()=>{const e=l.useRef(null);function t(){_t.cancel(e.current)}function n(r,i=2){t();const s=_t(()=>{i<=1?r({isCanceled:()=>s!==e.current}):n(r,i-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]}),c5=[Io,ls,ss,MS],u5=[Io,WR],KR=!1,d5=!0;function QR(e){return e===ss||e===MS}const f5=((e,t,n)=>{const[r,i]=Im(kw),[s,c]=s5();function d(){i(Io,!0)}const f=t?u5:c5;return XR(()=>{if(r!==kw&&r!==MS){const p=f.indexOf(r),g=f[p+1],h=n(r);h===KR?i(g,!0):g&&s(y=>{function S(){y.isCanceled()||i(g,!0)}h===!0?S():Promise.resolve(h).then(S)})}},[e,r]),l.useEffect(()=>()=>{c()},[]),[d,r]});function m5(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:f,onEnterPrepare:p,onLeavePrepare:g,onAppearStart:h,onEnterStart:y,onLeaveStart:S,onAppearActive:b,onEnterActive:$,onLeaveActive:C,onAppearEnd:w,onEnterEnd:M,onLeaveEnd:x,onVisibleChanged:R}){const[T,N]=Im(),[O,z]=r5(ba),[j,W]=Im(null),F=O(),Y=l.useRef(!1),U=l.useRef(null);function L(){return n()}const B=l.useRef(!1);function _(){z(ba),W(null,!0)}const H=ut(J=>{const ie=O();if(ie===ba)return;const ne=L();if(J&&!J.deadline&&J.target!==ne)return;const oe=B.current;let ue;ie===Af&&oe?ue=w?.(ne,J):ie===Df&&oe?ue=M?.(ne,J):ie===jf&&oe&&(ue=x?.(ne,J)),oe&&ue!==!1&&_()}),[I]=l5(H),A=J=>{switch(J){case Af:return{[Io]:f,[ls]:h,[ss]:b};case Df:return{[Io]:p,[ls]:y,[ss]:$};case jf:return{[Io]:g,[ls]:S,[ss]:C};default:return{}}},V=l.useMemo(()=>A(F),[F]),[P,D]=f5(F,!e,J=>{if(J===Io){const ie=V[Io];return ie?ie(L()):KR}return D in V&&W(V[D]?.(L(),null)||null),D===ss&&F!==ba&&(I(L()),c>0&&(clearTimeout(U.current),U.current=setTimeout(()=>{H({deadline:!0})},c))),D===WR&&_(),d5}),q=QR(D);B.current=q;const G=l.useRef(null);XR(()=>{if(Y.current&&G.current===t)return;N(t);const J=Y.current;Y.current=!0;let ie;!J&&t&&i&&(ie=Af),J&&t&&r&&(ie=Df),(J&&!t&&s||!J&&d&&!t&&s)&&(ie=jf);const ne=A(ie);ie&&(e||ne[Io])?(z(ie),P()):z(ba),G.current=t},[t]),l.useEffect(()=>{(F===Af&&!i||F===Df&&!r||F===jf&&!s)&&z(ba)},[i,r,s]),l.useEffect(()=>()=>{Y.current=!1,clearTimeout(U.current)},[]);const K=l.useRef(!1);l.useEffect(()=>{T&&(K.current=!0),T!==void 0&&F===ba&&((K.current||T)&&R?.(T),K.current=!0)},[T,F]);let Z=j;return V[Io]&&D===ls&&(Z={transition:"none",...Z}),[O,D,Z,T??t]}function p5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(i,s){return!!(i.motionName&&t&&s!==!1)}const r=l.forwardRef((i,s)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:f,children:p,motionName:g,leavedClassName:h,eventProps:y}=i,{motion:S}=l.useContext(kR),b=n(i,S),$=l.useRef();function C(){return du($.current)}const[w,M,x,R]=m5(b,c,C,i),T=w(),N=l.useRef(R);R&&(N.current=!0);const O=l.useMemo(()=>{const W={};return Object.defineProperties(W,{nativeElement:{enumerable:!0,get:C},inMotion:{enumerable:!0,get:()=>()=>w()!==ba},enableMotion:{enumerable:!0,get:()=>()=>b}}),W},[]);l.useImperativeHandle(s,()=>O,[]);let z;const j={...y,visible:c};if(!p)z=null;else if(T===ba)R?z=p({...j},$):!d&&N.current&&h?z=p({...j,className:h},$):f||!d&&!h?z=p({...j,style:{display:"none"}},$):z=null;else{let W;M===Io?W="prepare":QR(M)?W="active":M===ls&&(W="start");const F=Uw(g,`${T}-${W}`);z=p({...j,className:Q(Uw(g,T),{[F]:F&&W,[g]:typeof g=="string"}),style:x},$)}return l.isValidElement(z)&&tl(z)&&(nl(z)||(z=l.cloneElement(z,{ref:$}))),z});return r.displayName="CSSMotion",r}const vr=p5(i5),Lb="add",Vb="keep",Fb="remove",py="removed";function g5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function kb(e=[]){return e.map(g5)}function h5(e=[],t=[]){let n=[],r=0;const i=t.length,s=kb(e),c=kb(t);s.forEach(p=>{let g=!1;for(let h=r;h<i;h+=1){const y=c[h];if(y.key===p.key){r<h&&(n=n.concat(c.slice(r,h).map(S=>({...S,status:Lb}))),r=h),n.push({...y,status:Vb}),r+=1,g=!0;break}}g||n.push({...p,status:Fb})}),r<i&&(n=n.concat(c.slice(r).map(p=>({...p,status:Lb}))));const d={};return n.forEach(({key:p})=>{d[p]=(d[p]||0)+1}),Object.keys(d).filter(p=>d[p]>1).forEach(p=>{n=n.filter(({key:g,status:h})=>g!==p||h!==Fb),n.forEach(g=>{g.key===p&&(g.status=Vb)})}),n}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 y5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function b5(e,t=vr){class n extends l.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:s}){const c=kb(i);return{keyEntities:h5(s,c).filter(f=>{const p=s.find(({key:g})=>f.key===g);return!(p&&p.status===py&&f.status===Fb)})}}removeKey=i=>{this.setState(s=>({keyEntities:s.keyEntities.map(d=>d.key!==i?d:{...d,status:py})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:d})=>d!==py).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:i}=this.state,{component:s,children:c,onVisibleChanged:d,onAllRemoved:f,...p}=this.props,g=s||l.Fragment,h={};return y5.forEach(y=>{h[y]=p[y],delete p[y]}),delete p.keys,l.createElement(g,p,i.map(({status:y,...S},b)=>{const $=y===Lb||y===Vb;return l.createElement(t,Wb({},h,{key:S.key,visible:$,eventProps:S,onVisibleChanged:C=>{d?.(C,{key:S.key}),C||this.removeKey(S.key)}}),(C,w)=>c({...C,index:b},w))}))}}return n}const v5=b5(),S5=`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`,C5=`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`,$5=`${S5} ${C5}`.split(/[\s\n]+/),x5="aria-",w5="data-";function Gw(e,t){return e.indexOf(t)===0}function jn(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(i=>{(n.aria&&(i==="role"||Gw(i,x5))||n.data&&Gw(i,w5)||n.attr&&$5.includes(i))&&(r[i]=e[i])}),r}const ZR={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 E5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};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 Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(r){M5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M5(e,t,n){return t=R5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R5(e){var t=T5(e,"string");return vu(t)=="symbol"?t:String(t)}function T5(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)}var O5=Kw(Kw({},E5),{},{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 JR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Su={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"],...O5},timePickerLocale:{...JR}},Jr="${label} is not a valid ${type}",Ca={locale:"en",Pagination:ZR,DatePicker:Su,TimePicker:JR,Calendar:Su,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:Jr,method:Jr,array:Jr,object:Jr,number:Jr,date:Jr,boolean:Jr,integer:Jr,float:Jr,regexp:Jr,email:Jr,url:Jr,hex:Jr},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 ym={...Ca.Modal},bm=[];const Qw=()=>bm.reduce((e,t)=>({...e,...t}),Ca.Modal);function N5(e){if(e){const t={...e};return bm.push(t),ym=Qw(),()=>{bm=bm.filter(n=>n!==t),ym=Qw()}}ym={...Ca.Modal}}function eT(){return ym}const RS=l.createContext(void 0),ro=(e,t)=>{const n=l.useContext(RS),r=l.useMemo(()=>{const s=t||Ca[e],c=n?.[e]??{};return{...typeof s=="function"?s():s,...c||{}}},[e,t,n]),i=l.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?Ca.locale:s},[n]);return[r,i]},I5="internalMark",P5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>N5(t?.Modal),[t]);const i=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(RS.Provider,{value:i},n)};function qb(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}const Er=e=>e!=null,vs=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},tT={},Zw=(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?qb(n,t,e):t===!1?!1:t?qb(n,t):n.closable?n:!1,A5=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:i,...s}=e;let c=i;const d=jn(s,!0);return Er(c)&&(r&&(c=r(c)),c=ae.isValidElement(c)?ae.cloneElement(c,{"aria-label":n,...c.props,...d}):ae.createElement("span",{"aria-label":n,...d},c)),[c,d]},D5=(e,t,n=tT,r="Close")=>{const i=Zw(e?.closable,e?.closeIcon),s=Zw(t?.closable,t?.closeIcon),c={closeIcon:ae.createElement(Wr,null),...n},d=z5(i,s,c),f=typeof d!="boolean"?!!d?.disabled:!1;if(d===!1)return[!1,null,f,{}];const[p,g]=A5(d,c,r);return[!0,p,f,g]},TS=(e,t,n=tT)=>{const[r]=ro("global",Ca.global);return ae.useMemo(()=>D5(e,t,{closeIcon:ae.createElement(Wr,null),...n},r.close),[e,t,n,r.close])},j5=()=>ae.useReducer(e=>e+1,0),Jw=e=>e&&typeof e=="object"?e:typeof e=="boolean"?{enabled:e,blur:e}:{},nT=(e,t,n)=>l.useMemo(()=>{const r=Jw(e),s={...Jw(t),...r},c=s.blur!==!1?`${n}-mask-blur`:void 0;return[s.enabled!==!1,{mask:c}]},[e,t,n]),OS=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,i)=>(Object.keys(i||{}).forEach(s=>{const c=n[s],d=i[s];if(c&&typeof c=="object")if(d&&typeof d=="object")r[s]=OS(c,r[s],d);else{const{_default:f}=c;f&&(r[s]=r[s]||{},r[s][f]=Q(r[s][f],d))}else r[s]=Q(r[s],d)}),r),{})},_5=(e,...t)=>l.useMemo(()=>OS.apply(void 0,[e].concat(t)),[e].concat(t)),rT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),H5=(...e)=>l.useMemo(()=>rT.apply(void 0,e),[].concat(e)),Yb=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const i=t[r],s=n[r]||{};n[r]=i?Yb(s,i):s}}),n},cs=(e,t)=>typeof e=="function"?e(t):e,Lt=(e,t,n,r)=>{const i=e.map(f=>f?cs(f,n):void 0),s=t.map(f=>f?cs(f,n):void 0),c=_5.apply(void 0,[r].concat(xn(i))),d=H5.apply(void 0,xn(s));return l.useMemo(()=>r?[Yb(c,r),Yb(d,r)]:[c,d],[c,d,r])},eE=e=>e==="horizontal"||e==="vertical",od=(e,t,n)=>l.useMemo(()=>{const r=eE(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=eE(n)?n:"horizontal",[i,i==="vertical"]},[n,e,t]),B5=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(i=>[].concat(xn(i),[r])),()=>{t(i=>i.filter(s=>s!==r))}),[]);return[e,n]},ad=ae.createContext(void 0),ei=100,L5=10,oT=ei*L5,aT={Modal:ei,Drawer:ei,Popover:ei,Popconfirm:ei,Tooltip:ei,Tour:ei,FloatButton:ei},V5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},F5=e=>e in aT,mi=(e,t)=>{const[,n]=kr(),r=ae.useContext(ad),i=F5(e);let s;if(t!==void 0)s=[t,t];else{let c=r??0;i?c+=(r?0:n.zIndexPopupBase)+aT[e]:c+=V5[e],s=[r===void 0?t:c,c]}return s};function iT(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const NS=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function tr(e,t){return NS(e,e,t)}const Hf=(e,t,n,r,i)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),k5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:s,fontSizeLG:c,lineHeight:d,borderRadiusLG:f,motionEaseInOutCirc:p,withDescriptionIconSize:g,colorText:h,colorTextHeading:y,withDescriptionPadding:S,defaultPadding:b}=e;return{[t]:{...Zt(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} ${p}, opacity ${n} ${p},
123
- padding-top ${n} ${p}, padding-bottom ${n} ${p},
124
- margin-bottom ${n} ${p}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:S,[`${t}-icon`]:{marginInlineEnd:i,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}}},W5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:s,colorWarningBorder:c,colorWarningBg:d,colorError:f,colorErrorBorder:p,colorErrorBg:g,colorInfo:h,colorInfoBorder:y,colorInfoBg:S}=e;return{[t]:{"&-success":Hf(i,r,n,e,t),"&-info":Hf(S,y,h,e,t),"&-warning":Hf(d,c,s,e,t),"&-error":{...Hf(g,p,f,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},q5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:s,colorIcon:c,colorIconHover:d}=e;return{[t]:{"&-actions":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,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}}}}},Y5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),U5=Pt("Alert",e=>[k5(e),W5(e),q5(e)],Y5),G5={success:Sp,info:ES,error:Is,warning:Ps},X5=e=>{const{icon:t,prefixCls:n,type:r,className:i,style:s}=e,c=G5[r]||null;return t?NS(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:Q(t.props.className,i),style:s})):l.createElement(c,{className:i,style:s})},K5=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:s,className:c,style:d}=e,f=r===!0||r===void 0?l.createElement(Wr,null):r;return t?l.createElement("button",{type:"button",onClick:i,className:Q(`${n}-close-icon`,c),tabIndex:0,style:d,...s},f):null},lT=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,title:s,banner:c,className:d,rootClassName:f,style:p,onMouseEnter:g,onMouseLeave:h,onClick:y,afterClose:S,showIcon:b,closable:$,closeText:C,closeIcon:w,action:M,id:x,styles:R,classNames:T,...N}=e,O=s??i,[z,j]=l.useState(!1),W=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:W.current}));const{getPrefixCls:F,direction:Y,closable:U,closeIcon:L,className:B,style:_,classNames:H,styles:I}=It("alert"),A=F("alert",r),[V,P]=U5(A),{onClose:D,afterClose:q}=$&&typeof $=="object"?$:{},G=re=>{j(!0),(D??e.onClose)?.(re)},K=l.useMemo(()=>e.type!==void 0?e.type:c?"warning":"info",[e.type,c]),Z=l.useMemo(()=>typeof $=="object"&&$.closeIcon||C?!0:typeof $=="boolean"?$:w!==!1&&Er(w)?!0:!!U,[C,w,$,U]),J=c&&b===void 0?!0:b,ie={...e,prefixCls:A,type:K,showIcon:J,closable:Z},[ne,oe]=Lt([H,T],[I,R],{props:ie}),ue=Q(A,`${A}-${K}`,{[`${A}-with-description`]:!!n,[`${A}-no-icon`]:!J,[`${A}-banner`]:!!c,[`${A}-rtl`]:Y==="rtl"},B,d,f,ne.root,P,V),le=jn(N,{aria:!0,data:!0}),fe=l.useMemo(()=>typeof $=="object"&&$.closeIcon?$.closeIcon:C||(w!==void 0?w:typeof U=="object"&&U.closeIcon?U.closeIcon:L),[w,$,U,C,L]),ge=l.useMemo(()=>{const re=$??U;return typeof re=="object"?jn(re,{data:!0,aria:!0}):{}},[$,U]);return l.createElement(vr,{visible:!z,motionName:`${A}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:re=>({maxHeight:re.offsetHeight}),onLeaveEnd:q??S},({className:re,style:ce},he)=>l.createElement("div",{id:x,ref:rr(W,he),"data-show":!z,className:Q(ue,re),style:{...oe.root,..._,...p,...ce},onMouseEnter:g,onMouseLeave:h,onClick:y,role:"alert",...le},J?l.createElement(X5,{className:Q(`${A}-icon`,ne.icon),style:oe.icon,description:n,icon:e.icon,prefixCls:A,type:K}):null,l.createElement("div",{className:Q(`${A}-section`,ne.section),style:oe.section},O?l.createElement("div",{className:Q(`${A}-title`,ne.title),style:oe.title},O):null,n?l.createElement("div",{className:Q(`${A}-description`,ne.description),style:oe.description},n):null),M?l.createElement("div",{className:Q(`${A}-actions`,ne.actions),style:oe.actions},M):null,l.createElement(K5,{className:ne.close,style:oe.close,isClosable:Z,prefixCls:A,closeIcon:fe,handleClose:G,ariaProps:ge})))});function Q5(e,t,n){return t=Xi(t),ER(e,bp()?Reflect.construct(t,n||[],Xi(e).constructor):t.apply(e,n))}let Z5=(function(e){function t(){var n;return rl(this,t),n=Q5(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return $S(t,e),ol(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,title:i,description:s,id:c,children:d}=this.props,{error:f,info:p}=this.state,g=i??r,h=p?.componentStack||null,y=typeof g>"u"?(f||"").toString():g,S=typeof s>"u"?h:s;return f?l.createElement(lT,{id:c,type:"error",title:y,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},S)}):d}}])})(l.Component);const sT=lT;sT.ErrorBoundary=Z5;const or=e=>`${e}-css-var`,J5=l.createContext(void 0);var Ss=G4();const cT=l.createContext(null);let eA=!1;function tA(e){return eA}const tE=[];function nA(e,t){const[n]=l.useState(()=>Vr()?document.createElement("div"):null),r=l.useRef(!1),i=l.useContext(cT),[s,c]=l.useState(tE),d=i||(r.current?void 0:g=>{c(h=>[g,...h])});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function p(){n.parentElement?.removeChild(n),r.current=!1}return Nt(()=>(e?i?i(f):f():p(),p),[e]),Nt(()=>{s.length&&(s.forEach(g=>g()),c(tE))},[s]),[n,d]}function rA(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 i,s;if(e){const f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;const p=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(p.width,10),h=parseInt(p.height,10);try{const y=g?`width: ${p.width};`:"",S=h?`height: ${p.height};`:"";ii(`
125
- #${t}::-webkit-scrollbar {
126
- ${y}
127
- ${S}
128
- }`,t)}catch(y){console.error(y),i=g,s=h}}document.body.appendChild(n);const c=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,d=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),mu(t),{width:c,height:d}}function oA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:rA(e)}function aA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const iA=`rc-util-locker-${Date.now()}`;let nE=0;function lA(e){const t=!!e,[n]=l.useState(()=>(nE+=1,`${iA}_${nE}`));Nt(()=>{if(t){const r=oA(document.body).width,i=aA();ii(`
129
- html body {
130
- overflow-y: hidden;
131
- ${i?`width: calc(100% - ${r}px);`:""}
132
- }`,n)}else mu(n);return()=>{mu(n)}},[t,n])}const rE=e=>e===!1?!1:!Vr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,id=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:i,debug:s,autoDestroy:c=!0,children:d}=e,[f,p]=l.useState(n),g=f||n;l.useEffect(()=>{(c||n)&&p(n)},[n,c]);const[h,y]=l.useState(()=>rE(i));l.useEffect(()=>{const R=rE(i);y(R??null)});const[S,b]=nA(g&&!h),$=h??S;lA(r&&n&&Vr()&&($===S||$===document.body));let C=null;d&&tl(d)&&t&&(C=nl(d));const w=fi(C,t);if(!g||!Vr()||h===void 0)return null;const M=$===!1||tA();let x=d;return t&&(x=l.cloneElement(d,{ref:w})),l.createElement(cT.Provider,{value:b},M?x:Ss.createPortal(x,$))});function sA(){return{...EP}.useId}let oE=0;const aE=sA(),Ea=aE?(function(t){const n=aE();return t||n}):(function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const i=oE;oE+=1,r(`rc_unique_${i}`)},[]),t||n});function cA(e){const{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:s,content:c,style:d}=r||{},{x:f=0,y:p=0}=i,g=l.useRef(null);if(!n||!n.points)return null;const h={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],S=n.points[1],b=y[0],$=y[1],C=S[0],w=S[1];b===C||!["t","b"].includes(b)?h.top=p:b==="t"?h.top=0:h.bottom=0,$===w||!["l","r"].includes($)?h.left=f:$==="l"?h.left=0:h.right=0}return l.createElement("div",{ref:g,className:Q(`${t}-arrow`,s),style:{...h,...d}},c)}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)}function uA(e){const{prefixCls:t,open:n,zIndex:r,mask:i,motion:s,mobile:c}=e;return i?l.createElement(vr,Ub({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:d})=>l.createElement("div",{style:{zIndex:r},className:Q(`${t}-mask`,c&&`${t}-mobile-mask`,d)})):null}const dA=l.memo(({children:e})=>e,(e,t)=>t.cache);function uT(e,t,n,r,i,s,c,d){const f="auto",p=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",S=h&&g[0][0]==="b";y?(p.right=i,p.left=f):(p.left=c,p.right=f),S?(p.bottom=s,p.top=f):(p.top=d,p.bottom=f)}return p}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 dT=l.forwardRef((e,t)=>{const{popup:n,className:r,prefixCls:i,style:s,target:c,onVisibleChanged:d,open:f,keepDom:p,fresh:g,onClick:h,mask:y,arrow:S,arrowPos:b,align:$,motion:C,maskMotion:w,mobile:M,forceRender:x,getPopupContainer:R,autoDestroy:T,portal:N,children:O,zIndex:z,onMouseEnter:j,onMouseLeave:W,onPointerEnter:F,onPointerDownCapture:Y,ready:U,offsetX:L,offsetY:B,offsetR:_,offsetB:H,onAlign:I,onPrepare:A,onResize:V,stretch:P,targetWidth:D,targetHeight:q}=e,G=typeof n=="function"?n():n,K=f||p,Z=!!M,[J,ie,ne]=l.useMemo(()=>M?[M.mask,M.maskMotion,M.motion]:[y,w,C],[M,y,w,C]),oe=R?.length>0,[ue,le]=l.useState(!R||!oe);Nt(()=>{!ue&&oe&&c&&le(!0)},[ue,oe,c]);const fe=ut((ce,he)=>{V?.(ce,he),I()}),ge=uT(Z,U,f,$,_,H,L,B);if(!ue)return null;const re={};return P&&(P.includes("height")&&q?re.height=q:P.includes("minHeight")&&q&&(re.minHeight=q),P.includes("width")&&D?re.width=D:P.includes("minWidth")&&D&&(re.minWidth=D)),f||(re.pointerEvents="none"),l.createElement(N,{open:x||K,getContainer:R&&(()=>R(c)),autoDestroy:T},l.createElement(uA,{prefixCls:i,open:f,zIndex:z,mask:J,motion:ie,mobile:Z}),l.createElement(Lr,{onResize:fe,disabled:!f},ce=>l.createElement(vr,Gb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:`${i}-hidden`},ne,{onAppearPrepare:A,onEnterPrepare:A,visible:f,onVisibleChanged:he=>{C?.onVisibleChanged?.(he),d(he)}}),({className:he,style:pe},Ce)=>{const de=Q(i,he,r,{[`${i}-mobile`]:Z});return l.createElement("div",{ref:rr(ce,t,Ce),className:de,style:{"--arrow-x":`${b.x||0}px`,"--arrow-y":`${b.y||0}px`,...ge,...re,...pe,boxSizing:"border-box",zIndex:z,...s},onMouseEnter:j,onMouseLeave:W,onPointerEnter:F,onClick:h,onPointerDownCapture:Y},S&&l.createElement(cA,{prefixCls:i,arrow:S,arrowPos:b,align:$}),l.createElement(dA,{cache:!f&&!g},G))})),O)}),_m=l.createContext(null),fT=l.createContext(null);function iE(e){return e?Array.isArray(e)?e:[e]:[]}function fA(e,t,n){return l.useMemo(()=>{const r=iE(t??e),i=iE(n??e),s=new Set(r),c=new Set(i);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 Cp=(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 mA(e=[],t=[],n){const r=(i,s)=>i[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function mT(e,t,n,r){const{points:i}=n,s=Object.keys(e);for(let c=0;c<s.length;c+=1){const d=s[c];if(mA(e[d]?.points,i,r))return`${t}-placement-${d}`}return""}function ld(e){return e.ownerDocument.defaultView}function Xb(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:i,overflowY:s,overflow:c}=ld(n).getComputedStyle(n);[i,s,c].some(d=>r.includes(d))&&t.push(n),n=n.parentElement}return t}function Cu(e,t=1){return Number.isNaN(e)?t:e}function Pc(e){return Cu(parseFloat(e),0)}function lE(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:s,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:f,borderRightWidth:p}=ld(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:h,clientHeight:y,offsetWidth:S,clientWidth:b}=r,$=Pc(c),C=Pc(d),w=Pc(f),M=Pc(p),x=Cu(Math.round(g.width/S*1e3)/1e3),R=Cu(Math.round(g.height/h*1e3)/1e3),T=(S-b-w-M)*x,N=(h-y-$-C)*R,O=$*R,z=C*R,j=w*x,W=M*x;let F=0,Y=0;if(i==="clip"){const H=Pc(s);F=H*x,Y=H*R}const U=g.x+j-F,L=g.y+O-Y,B=U+g.width+2*F-j-W-T,_=L+g.height+2*Y-O-z-N;n.left=Math.max(n.left,U),n.top=Math.max(n.top,L),n.right=Math.min(n.right,B),n.bottom=Math.min(n.bottom,_)}),n}function sE(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function cE(e,t){const[n,r]=t||[];return[sE(e.width,n),sE(e.height,r)]}function uE(e=""){return[e[0],e[1]]}function Ul(e,t){const n=t[0],r=t[1];let i,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:s}}function Qa(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function dE(e){return e.join("")}function pT(e,t,n,r,i,s,c,d){const[f,p]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),g=l.useRef(0),h=l.useMemo(()=>!t||d?[]:Xb(t),[t]),y=l.useRef({});e||(y.current={});const b=ut(()=>{if(t&&n&&e&&!d){let Ze=function(yt,Sn,Mn=ce){const Vn=B.x+yt,In=B.y+Sn,xo=Vn+K,Ko=In+G,wo=Math.max(Vn,Mn.left),jo=Math.max(In,Mn.top),tt=Math.min(xo,Mn.right),Jt=Math.min(Ko,Mn.bottom);return Math.max(0,(tt-wo)*(Jt-jo))},Je=function(){Ie=B.y+Oe,Fe=Ie+G,Me=B.x+ve,We=Me+K};var w=Ze,M=Je;const x=t,R=x.ownerDocument,T=ld(x),{position:N}=T.getComputedStyle(x),O=x.style.left,z=x.style.top,j=x.style.right,W=x.style.bottom,F=x.style.overflow,Y={...i[r],...s},U=R.createElement("div");x.parentElement?.appendChild(U),U.style.left=`${x.offsetLeft}px`,U.style.top=`${x.offsetTop}px`,U.style.position=N,U.style.height=`${x.offsetHeight}px`,U.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 L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{const yt=n.getBoundingClientRect();yt.x=yt.x??yt.left,yt.y=yt.y??yt.top,L={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}const B=x.getBoundingClientRect(),{height:_,width:H}=T.getComputedStyle(x);B.x=B.x??B.left,B.y=B.y??B.top;const{clientWidth:I,clientHeight:A,scrollWidth:V,scrollHeight:P,scrollTop:D,scrollLeft:q}=R.documentElement,G=B.height,K=B.width,Z=L.height,J=L.width,ie={left:0,top:0,right:I,bottom:A},ne={left:-q,top:-D,right:V-q,bottom:P-D};let{htmlRegion:oe}=Y;const ue="visible",le="visibleFirst";oe!=="scroll"&&oe!==le&&(oe=ue);const fe=oe===le,ge=lE(ne,h),re=lE(ie,h),ce=oe===ue?re:ge,he=fe?re:ce;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";const pe=x.getBoundingClientRect();x.style.left=O,x.style.top=z,x.style.right=j,x.style.bottom=W,x.style.overflow=F,x.parentElement?.removeChild(U);const Ce=Cu(Math.round(K/parseFloat(H)*1e3)/1e3),de=Cu(Math.round(G/parseFloat(_)*1e3)/1e3);if(Ce===0||de===0||ys(n)&&!Cp(n))return;const{offset:ye,targetOffset:Se}=Y;let[Ee,Pe]=cE(B,ye);const[Ae,Ye]=cE(L,Se);L.x-=Ae,L.y-=Ye;const[Ue,Xe]=Y.points||[],et=uE(Xe),Te=uE(Ue),_e=Ul(L,et),Le=Ul(B,Te),Qe={...Y};let ze=[Te,et],ve=_e.x-Le.x+Ee,Oe=_e.y-Le.y+Pe;const qe=Ze(ve,Oe),Be=Ze(ve,Oe,re),Ne=Ul(L,["t","l"]),Ge=Ul(B,["t","l"]),rt=Ul(L,["b","r"]),ot=Ul(B,["b","r"]),lt=Y.overflow||{},{adjustX:St,adjustY:Ct,shiftX:ke,shiftY:at}=lt,je=yt=>typeof yt=="boolean"?yt:yt>=0;let Ie,Fe,Me,We;Je();const it=je(Ct),ft=Te[0]===et[0];if(it&&Te[0]==="t"&&(Fe>he.bottom||y.current.bt)){let yt=Oe;ft?yt-=G-Z:yt=Ne.y-ot.y-Pe;const Sn=Ze(ve,yt),Mn=Ze(ve,yt,re);Sn>qe||Sn===qe&&(!fe||Mn>=Be)?(y.current.bt=!0,Oe=yt,Pe=-Pe,ze=[Qa(ze[0],0),Qa(ze[1],0)]):y.current.bt=!1}if(it&&Te[0]==="b"&&(Ie<he.top||y.current.tb)){let yt=Oe;ft?yt+=G-Z:yt=rt.y-Ge.y-Pe;const Sn=Ze(ve,yt),Mn=Ze(ve,yt,re);Sn>qe||Sn===qe&&(!fe||Mn>=Be)?(y.current.tb=!0,Oe=yt,Pe=-Pe,ze=[Qa(ze[0],0),Qa(ze[1],0)]):y.current.tb=!1}const Ft=je(St),Dt=Te[1]===et[1];if(Ft&&Te[1]==="l"&&(We>he.right||y.current.rl)){let yt=ve;Dt?yt-=K-J:yt=Ne.x-ot.x-Ee;const Sn=Ze(yt,Oe),Mn=Ze(yt,Oe,re);Sn>qe||Sn===qe&&(!fe||Mn>=Be)?(y.current.rl=!0,ve=yt,Ee=-Ee,ze=[Qa(ze[0],1),Qa(ze[1],1)]):y.current.rl=!1}if(Ft&&Te[1]==="r"&&(Me<he.left||y.current.lr)){let yt=ve;Dt?yt+=K-J:yt=rt.x-Ge.x-Ee;const Sn=Ze(yt,Oe),Mn=Ze(yt,Oe,re);Sn>qe||Sn===qe&&(!fe||Mn>=Be)?(y.current.lr=!0,ve=yt,Ee=-Ee,ze=[Qa(ze[0],1),Qa(ze[1],1)]):y.current.lr=!1}Qe.points=[dE(ze[0]),dE(ze[1])],Je();const $t=ke===!0?0:ke;typeof $t=="number"&&(Me<re.left&&(ve-=Me-re.left-Ee,L.x+J<re.left+$t&&(ve+=L.x-re.left+J-$t)),We>re.right&&(ve-=We-re.right-Ee,L.x>re.right-$t&&(ve+=L.x-re.right+$t)));const tn=at===!0?0:at;typeof tn=="number"&&(Ie<re.top&&(Oe-=Ie-re.top-Pe,L.y+Z<re.top+tn&&(Oe+=L.y-re.top+Z-tn)),Fe>re.bottom&&(Oe-=Fe-re.bottom-Pe,L.y>re.bottom-tn&&(Oe+=L.y-re.bottom+tn)));const wt=B.x+ve,Ke=wt+K,Et=B.y+Oe,mt=Et+G,Rt=L.x,Ut=Rt+J,an=L.y,kt=an+Z,wn=Math.max(wt,Rt),En=Math.min(Ke,Ut),dn=(wn+En)/2-wt,dr=Math.max(Et,an),Pn=Math.min(mt,kt),fr=(dr+Pn)/2-Et;c?.(t,Qe);let mr=pe.right-B.x-(ve+B.width),Ir=pe.bottom-B.y-(Oe+B.height);Ce===1&&(ve=Math.round(ve),mr=Math.round(mr)),de===1&&(Oe=Math.round(Oe),Ir=Math.round(Ir));const qr={ready:!0,offsetX:ve/Ce,offsetY:Oe/de,offsetR:mr/Ce,offsetB:Ir/de,arrowX:dn/Ce,arrowY:fr/de,scaleX:Ce,scaleY:de,align:Qe};p(qr)}}),$=()=>{g.current+=1;const w=g.current;Promise.resolve().then(()=>{g.current===w&&b()})},C=()=>{p(w=>({...w,ready:!1}))};return Nt(C,[r]),Nt(()=>{e||C()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,$]}function gT(){const e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,i)=>{t(),i===0?r():e.current=setTimeout(()=>{r()},i*1e3)};return l.useEffect(()=>()=>{t()},[]),n}function pA(e,t,n,r,i){Nt(()=>{if(e&&t&&n){let y=function(){r(),i()};var s=y;const c=t,d=n,f=Xb(c),p=Xb(d),g=ld(d),h=new Set([g,...f,...p]);return h.forEach(S=>{S.addEventListener("scroll",y,{passive:!0})}),g.addEventListener("resize",y,{passive:!0}),r(),()=>{h.forEach(S=>{S.removeEventListener("scroll",y),g.removeEventListener("resize",y)})}}},[e,t,n])}function gA(e,t,n,r,i,s,c,d){const f=l.useRef(e);f.current=e;const p=l.useRef(!1);l.useEffect(()=>{if(t&&r&&(!i||s)){const h=()=>{p.current=!1},y=$=>{f.current&&!c($.composedPath?.()?.[0]||$.target)&&!p.current&&d(!1)},S=ld(r);S.addEventListener("pointerdown",h,!0),S.addEventListener("mousedown",y,!0),S.addEventListener("contextmenu",y,!0);const b=jm(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),()=>{S.removeEventListener("pointerdown",h,!0),S.removeEventListener("mousedown",y,!0),S.removeEventListener("contextmenu",y,!0),b&&(b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0))}}},[t,n,r,i,s]);function g(){p.current=!0}return g}function hA(){const[e,t]=ae.useState(null),[n,r]=ae.useState(!1),[i,s]=ae.useState(!1),c=ae.useRef(null),d=ut(p=>{p===!1?(c.current=null,r(!1)):i&&n?c.current=p:(r(!0),t(p),c.current=null,n||s(!0))}),f=ut(p=>{p?(s(!1),c.current&&(t(c.current),c.current=null)):(s(!1),c.current=null)});return[d,n,e,f]}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)}const yA=e=>{const{prefixCls:t,isMobile:n,ready:r,open:i,align:s,offsetR:c,offsetB:d,offsetX:f,offsetY:p,arrowPos:g,popupSize:h,motion:y,uniqueContainerClassName:S,uniqueContainerStyle:b}=e,$=`${t}-unique-container`,[C,w]=ae.useState(!1),M=uT(n,r,i,s,c,d,f,p),x=ae.useRef(M);r&&(x.current=M);const R={};return h&&(R.width=h.width,R.height=h.height),ae.createElement(vr,Kb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${$}-hidden`},y,{visible:i,onVisibleChanged:T=>{w(T)}}),({className:T,style:N})=>{const O=Q($,T,S,{[`${$}-visible`]:C});return ae.createElement("div",{className:O,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...x.current,...R,...N,...b}})})},bA=({children:e,postTriggerProps:t})=>{const[n,r,i,s]=hA(),c=l.useMemo(()=>!i||!t?i:t(i),[i,t]),[d,f]=l.useState(null),[p,g]=l.useState(null),h=l.useRef(null),y=ut(I=>{h.current=I,ys(I)&&d!==I&&f(I)}),S=l.useRef(null),b=gT(),$=ut((I,A)=>{S.current=A,b(()=>{n(I)},I.delay)}),C=I=>{b(()=>{S.current?.()||n(!1)},I)},w=ut(I=>{s(I)}),[M,x,R,T,N,O,z,,,j,W]=pT(r,d,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),F=l.useMemo(()=>{if(!c)return"";const I=mT(c.builtinPlacements||{},c.prefixCls||"",j,!1);return Q(I,c.getPopupClassNameFromAlign?.(j))},[j,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),Y=l.useMemo(()=>({show:$,hide:C}),[]);l.useEffect(()=>{W()},[c?.target]);const U=ut(()=>(W(),Promise.resolve())),L=l.useRef({}),B=l.useContext(_m),_=l.useMemo(()=>({registerSubPopup:(I,A)=>{L.current[I]=A,B?.registerSubPopup(I,A)}}),[B]),H=c?.prefixCls;return l.createElement(fT.Provider,{value:Y},e,c&&l.createElement(_m.Provider,{value:_},l.createElement(dT,{ref:y,portal:id,prefixCls:H,popup:c.popup,className:Q(c.popupClassName,F,`${H}-unique-controlled`),style:c.popupStyle,target:c.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:w,ready:M,offsetX:x,offsetY:R,offsetR:T,offsetB:N,onAlign:W,onPrepare:U,onResize:I=>g({width:I.offsetWidth,height:I.offsetHeight}),arrowPos:{x:O,y:z},align:j,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},l.createElement(yA,{prefixCls:H,isMobile:!1,ready:M,open:r,align:j,offsetR:T,offsetB:N,offsetX:x,offsetY:R,arrowPos:{x:O,y:z},popupSize:p,motion:c.popupMotion,uniqueContainerClassName:Q(c.uniqueContainerClassName,F),uniqueContainerStyle:c.uniqueContainerStyle}))))};function vA(e=id){return l.forwardRef((n,r)=>{const{prefixCls:i="rc-trigger-popup",children:s,action:c="hover",showAction:d,hideAction:f,popupVisible:p,defaultPopupVisible:g,onOpenChange:h,afterOpenChange:y,onPopupVisibleChange:S,afterPopupVisibleChange:b,mouseEnterDelay:$,mouseLeaveDelay:C=.1,focusDelay:w,blurDelay:M,mask:x,maskClosable:R=!0,getPopupContainer:T,forceRender:N,autoDestroy:O,popup:z,popupClassName:j,uniqueContainerClassName:W,uniqueContainerStyle:F,popupStyle:Y,popupPlacement:U,builtinPlacements:L={},popupAlign:B,zIndex:_,stretch:H,getPopupClassNameFromAlign:I,fresh:A,unique:V,alignPoint:P,onPopupClick:D,onPopupAlign:q,arrow:G,popupMotion:K,maskMotion:Z,mobile:J,...ie}=n,ne=O||!1,oe=p===void 0,ue=!!J,le=l.useRef({}),fe=l.useContext(_m),ge=l.useMemo(()=>({registerSubPopup:(tt,Jt)=>{le.current[tt]=Jt,fe?.registerSubPopup(tt,Jt)}}),[fe]),re=l.useContext(fT),ce=Ea(),[he,pe]=l.useState(null),Ce=l.useRef(null),de=ut(tt=>{Ce.current=tt,ys(tt)&&he!==tt&&pe(tt),fe?.registerSubPopup(ce,tt)}),[ye,Se]=l.useState(null),Ee=l.useRef(null),Pe=ut(tt=>{ys(tt)&&ye!==tt&&(Se(tt),Ee.current=tt)}),Ae={},Ye=ut(tt=>{const Jt=ye;return Jt?.contains(tt)||jm(Jt)?.host===tt||tt===Jt||he?.contains(tt)||jm(he)?.host===tt||tt===he||Object.values(le.current).some(_n=>_n?.contains(tt)||tt===_n)}),Ue=G?{...G!==!0?G:{}}:null,[Xe,et]=Yt(g||!1,p),Te=Xe||!1,_e=l.useMemo(()=>{const tt=typeof s=="function"?s({open:Te}):s;return l.Children.only(tt)},[s,Te]),Le=_e?.props||{},Qe=ut(()=>Te),ze=ut((tt=0)=>({popup:z,target:ye,delay:tt,prefixCls:i,popupClassName:j,uniqueContainerClassName:W,uniqueContainerStyle:F,popupStyle:Y,popupPlacement:U,builtinPlacements:L,popupAlign:B,zIndex:_,mask:x,maskClosable:R,popupMotion:K,maskMotion:Z,arrow:Ue,getPopupContainer:T,getPopupClassNameFromAlign:I,id:ce}));Nt(()=>{re&&V&&ye&&!oe&&!fe&&(Te?re.show(ze($),Qe):re.hide(C))},[Te,ye]);const ve=l.useRef(Te);ve.current=Te;const Oe=l.useRef([]);Oe.current=[];const Ze=ut(tt=>{et(tt),(Oe.current[Oe.current.length-1]??Te)!==tt&&(Oe.current.push(tt),h?.(tt),S?.(tt))}),qe=gT(),Be=(tt,Jt=0)=>{if(p!==void 0){qe(()=>{Ze(tt)},Jt);return}if(re&&V&&oe&&!fe){tt?re.show(ze(Jt),Qe):re.hide(Jt);return}qe(()=>{Ze(tt)},Jt)},[Ne,Ge]=l.useState(!1);Nt(tt=>{(!tt||Te)&&Ge(!0)},[Te]);const[rt,ot]=l.useState(null),[lt,St]=l.useState(null),Ct=tt=>{St([tt.clientX,tt.clientY])},[ke,at,je,Ie,Fe,Me,We,Je,it,ft,Ft]=pT(Te,he,P&&lt!==null?lt:ye,U,L,B,q,ue),[Dt,$t]=fA(c,d,f),tn=Dt.has("click"),wt=$t.has("click")||$t.has("contextMenu"),Ke=ut(()=>{Ne||Ft()});pA(Te,ye,he,Ke,()=>{ve.current&&P&&wt&&Be(!1)}),Nt(()=>{Ke()},[lt,U]),Nt(()=>{Te&&!L?.[U]&&Ke()},[JSON.stringify(B)]);const mt=l.useMemo(()=>{const tt=mT(L,i,ft,P);return Q(tt,I?.(ft))},[ft,I,L,i,P]);l.useImperativeHandle(r,()=>({nativeElement:Ee.current,popupElement:Ce.current,forceAlign:Ke}));const[Rt,Ut]=l.useState(0),[an,kt]=l.useState(0),wn=()=>{if(H&&ye){const tt=ye.getBoundingClientRect();Ut(tt.width),kt(tt.height)}},En=()=>{wn(),Ke()},Sr=tt=>{Ge(!1),Ft(),y?.(tt),b?.(tt)},dn=()=>new Promise(tt=>{wn(),ot(()=>tt)});Nt(()=>{rt&&(Ft(),rt(),ot(null))},[rt]);function dr(tt,Jt,_n,Qo,Zo){Ae[tt]=(_o,...oo)=>{(!Zo||!Zo())&&(Qo?.(_o),Be(Jt,_n)),Le[tt]?.(_o,...oo)}}const Pn=Dt.has("touch"),Cr=$t.has("touch"),fr=l.useRef(!1);(Pn||Cr)&&(Ae.onTouchStart=(...tt)=>{fr.current=!0,ve.current&&Cr?Be(!1):!ve.current&&Pn&&Be(!0),Le.onTouchStart?.(...tt)}),(tn||wt)&&(Ae.onClick=(tt,...Jt)=>{ve.current&&wt?Be(!1):!ve.current&&tn&&(Ct(tt),Be(!0)),Le.onClick?.(tt,...Jt),fr.current=!1});const mr=gA(Te,wt||Cr,ye,he,x,R,Ye,Be),Ir=Dt.has("hover"),qr=$t.has("hover");let yt,Sn;const Mn=()=>fr.current;if(Ir){const tt=Jt=>{Ct(Jt)};dr("onMouseEnter",!0,$,tt,Mn),dr("onPointerEnter",!0,$,tt,Mn),yt=Jt=>{(Te||Ne)&&he?.contains(Jt.target)&&Be(!0,$)},P&&(Ae.onMouseMove=Jt=>{Le.onMouseMove?.(Jt)})}qr&&(dr("onMouseLeave",!1,C,void 0,Mn),dr("onPointerLeave",!1,C,void 0,Mn),Sn=()=>{Be(!1,C)}),Dt.has("focus")&&dr("onFocus",!0,w),$t.has("focus")&&dr("onBlur",!1,M),Dt.has("contextMenu")&&(Ae.onContextMenu=(tt,...Jt)=>{ve.current&&$t.has("contextMenu")?Be(!1):(Ct(tt),Be(!0)),tt.preventDefault(),Le.onContextMenu?.(tt,...Jt)});const Vn=l.useRef(!1);Vn.current||=N||Te||Ne;const In={...Le,...Ae},xo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(tt=>{ie[tt]&&(xo[tt]=(...Jt)=>{In[tt]?.(...Jt),ie[tt](...Jt)})});const wo={x:Me,y:We},jo=l.cloneElement(_e,{...In,...xo});return l.createElement(l.Fragment,null,l.createElement(Lr,{disabled:!Te,ref:Pe,onResize:En},jo),Vn.current&&(!re||!V)&&l.createElement(_m.Provider,{value:ge},l.createElement(dT,{portal:e,ref:de,prefixCls:i,popup:z,className:Q(j,!ue&&mt),style:Y,target:ye,onMouseEnter:yt,onMouseLeave:Sn,onPointerEnter:yt,zIndex:_,open:Te,keepDom:Ne,fresh:A,onClick:D,onPointerDownCapture:mr,mask:x,motion:K,maskMotion:Z,onVisibleChanged:Sr,onPrepare:dn,forceRender:N,autoDestroy:ne,getPopupContainer:T,align:ft,arrow:Ue,arrowPos:wo,ready:ke,offsetX:at,offsetY:je,offsetR:Ie,offsetB:Fe,onAlign:Ke,stretch:H,targetWidth:Rt/Je,targetHeight:an/it,mobile:J})))})}const sd=vA(id),SA=({children:e})=>{const{getPrefixCls:t}=ae.useContext(dt),n=t();return ae.isValidElement(e)?ae.createElement(vr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>{const{className:s,style:c}=e.props,d={...c,...r};return ae.cloneElement(e,{className:Q(s,i),style:d})}):e},Bf=[null,null];function CA(e){if(Bf[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Bf[0]=e,Bf[1]=t}return Bf[1]}const hT=({children:e})=>{const t=n=>{const r=typeof n.popup=="function"?n.popup():n.popup,{id:i,builtinPlacements:s}=n,c=CA(s);return{...n,getPopupContainer:null,arrow:!1,popup:ae.createElement(SA,{key:i},r),builtinPlacements:c}};return ae.createElement(bA,{postTriggerProps:t},e)},Fr=l.createContext(!1),yT=({children:e,disabled:t})=>{const n=l.useContext(Fr);return l.createElement(Fr.Provider,{value:t??n},e)},Cs=l.createContext(void 0),$A=({children:e,size:t})=>{const n=l.useContext(Cs);return l.createElement(Cs.Provider,{value:t||n},e)};function xA(){const e=l.useContext(Fr),t=l.useContext(Cs);return{componentDisabled:e,componentSize:t}}function wA(e,t,n){const r=e||{},i=r.inherit===!1||!t?{...Dm,hashed:t?.hashed??Dm.hashed,cssVar:t?.cssVar}:t,s=l.useId();return td(()=>{if(!e)return t;const c={...i.components};Object.keys(e.components||{}).forEach(p=>{c[p]={...c[p],...e.components[p]}});const d=`css-var-${s.replace(/:/g,"")}`,f={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||d};return{...i,...r,token:{...i.token,...r.token},components:c,cssVar:f}},[r,i],(c,d)=>c.some((f,p)=>{const g=d[p];return!pu(f,g,!0)}))}const fE=l.createContext(!0);function EA(e){const t=l.useContext(fE),{children:n}=e,[,r]=kr(),{motion:i}=r,s=l.useRef(!1);return s.current||(s.current=t!==i),s.current?l.createElement(fE.Provider,{value:i},l.createElement(n5,{motion:i},n)):n}const MA=()=>null,RA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Hm,bT,vT,ST;function gy(){return Hm||fu}function TA(){return bT||mp}const OA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Hm=t),n!==void 0&&(bT=n),"holderRender"in e&&(ST=i),r&&(vT=r)},CT=()=>({getPrefixCls:(e,t)=>t||(e?`${gy()}-${e}`:gy()),getIconPrefixCls:TA,getRootPrefixCls:()=>Hm||gy(),getTheme:()=>vT,holderRender:ST}),NA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:c,form:d,locale:f,componentSize:p,direction:g,space:h,splitter:y,virtual:S,dropdownMatchSelectWidth:b,popupMatchSelectWidth:$,popupOverflow:C,legacyLocale:w,parentContext:M,iconPrefixCls:x,theme:R,componentDisabled:T,segmented:N,statistic:O,spin:z,calendar:j,carousel:W,cascader:F,collapse:Y,typography:U,checkbox:L,descriptions:B,divider:_,drawer:H,skeleton:I,steps:A,image:V,layout:P,list:D,mentions:q,modal:G,progress:K,result:Z,slider:J,breadcrumb:ie,masonry:ne,menu:oe,pagination:ue,input:le,textArea:fe,otp:ge,empty:re,badge:ce,radio:he,rate:pe,ribbon:Ce,switch:de,transfer:ye,avatar:Se,message:Ee,tag:Pe,table:Ae,card:Ye,cardMeta:Ue,tabs:Xe,timeline:et,timePicker:Te,upload:_e,notification:Le,tree:Qe,colorPicker:ze,datePicker:ve,rangePicker:Oe,flex:Ze,wave:qe,dropdown:Be,warning:Ne,tour:Ge,tooltip:rt,popover:ot,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:ke,variant:at,inputNumber:je,treeSelect:Ie,watermark:Fe}=e,Me=l.useCallback((mt,Rt)=>{const{prefixCls:Ut}=e;if(Rt)return Rt;const an=Ut||M.getPrefixCls("");return mt?`${an}-${mt}`:an},[M.getPrefixCls,e.prefixCls]),We=x||M.iconPrefixCls||mp,Je=n||M.csp;_8(We,Je);const it=wA(R,M.theme,{prefixCls:Me("")}),ft={csp:Je,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:c,locale:f||w,direction:g,space:h,splitter:y,virtual:S,popupMatchSelectWidth:$??b,popupOverflow:C,getPrefixCls:Me,iconPrefixCls:We,theme:it,segmented:N,statistic:O,spin:z,calendar:j,carousel:W,cascader:F,collapse:Y,typography:U,checkbox:L,descriptions:B,divider:_,drawer:H,skeleton:I,steps:A,image:V,input:le,textArea:fe,otp:ge,layout:P,list:D,mentions:q,modal:G,progress:K,result:Z,slider:J,breadcrumb:ie,masonry:ne,menu:oe,pagination:ue,empty:re,badge:ce,radio:he,rate:pe,ribbon:Ce,switch:de,transfer:ye,avatar:Se,message:Ee,tag:Pe,table:Ae,card:Ye,cardMeta:Ue,tabs:Xe,timeline:et,timePicker:Te,upload:_e,notification:Le,tree:Qe,colorPicker:ze,datePicker:ve,rangePicker:Oe,flex:Ze,wave:qe,dropdown:Be,warning:Ne,tour:Ge,tooltip:rt,popover:ot,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:ke,variant:at,inputNumber:je,treeSelect:Ie,watermark:Fe},Ft={...M};Object.keys(ft).forEach(mt=>{ft[mt]!==void 0&&(Ft[mt]=ft[mt])}),RA.forEach(mt=>{const Rt=e[mt];Rt&&(Ft[mt]=Rt)}),typeof r<"u"&&(Ft.button={autoInsertSpace:r,...Ft.button});const Dt=td(()=>Ft,Ft,(mt,Rt)=>{const Ut=Object.keys(mt),an=Object.keys(Rt);return Ut.length!==an.length||Ut.some(kt=>mt[kt]!==Rt[kt])}),{layer:$t}=l.useContext(nd),tn=l.useMemo(()=>({prefixCls:We,csp:Je,layer:$t?"antd":void 0}),[We,Je,$t]);let wt=l.createElement(l.Fragment,null,l.createElement(MA,{dropdownMatchSelectWidth:b}),t);const Ke=l.useMemo(()=>is(Ca.Form?.defaultValidateMessages||{},Dt.locale?.Form?.defaultValidateMessages||{},Dt.form?.validateMessages||{},d?.validateMessages||{}),[Dt,d?.validateMessages]);Object.keys(Ke).length>0&&(wt=l.createElement(J5.Provider,{value:Ke},wt)),f&&(wt=l.createElement(P5,{locale:f,_ANT_MARK__:I5},wt)),wt=l.createElement(wS.Provider,{value:tn},wt),p&&(wt=l.createElement($A,{size:p},wt)),wt=l.createElement(EA,null,wt),rt?.unique&&(wt=l.createElement(hT,null,wt));const Et=l.useMemo(()=>{const{algorithm:mt,token:Rt,components:Ut,cssVar:an,...kt}=it||{},wn=mt&&(!Array.isArray(mt)||mt.length>0)?gb(mt):zR,En={};Object.entries(Ut||{}).forEach(([dn,dr])=>{const Pn={...dr};"algorithm"in Pn&&(Pn.algorithm===!0?Pn.theme=wn:(Array.isArray(Pn.algorithm)||typeof Pn.algorithm=="function")&&(Pn.theme=gb(Pn.algorithm)),delete Pn.algorithm),En[dn]=Pn});const Sr={...bu,...Rt};return{...kt,theme:wn,token:Sr,components:En,override:{override:Sr,...En},cssVar:an}},[it]);return R&&(wt=l.createElement(AR.Provider,{value:Et},wt)),Dt.warning&&(wt=l.createElement(YP.Provider,{value:Dt.warning},wt)),T!==void 0&&(wt=l.createElement(yT,{disabled:T},wt)),l.createElement(dt.Provider,{value:Dt},wt)},Xo=e=>{const t=l.useContext(dt),n=l.useContext(RS);return l.createElement(NA,{parentContext:t,legacyLocale:n,...e})};Xo.ConfigContext=dt;Xo.SizeContext=Cs;Xo.config=OA;Xo.useConfig=xA;Object.defineProperty(Xo,"SizeContext",{get:()=>Cs});const nt={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 Bm(){return Bm=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},Bm.apply(this,arguments)}const $T=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,duration:s=4.5,showProgress:c,pauseOnHover:d=!0,eventKey:f,content:p,closable:g,props:h,onClick:y,onNoticeClose:S,times:b,hovering:$}=e,[C,w]=l.useState(!1),[M,x]=l.useState(0),[R,T]=l.useState(0),N=$||C,O=typeof s=="number"?s:0,z=O>0&&c,j=()=>{S(f)},W=B=>{(B.key==="Enter"||B.code==="Enter"||B.keyCode===nt.ENTER)&&j()};l.useEffect(()=>{if(!N&&O>0){const B=Date.now()-R,_=setTimeout(()=>{j()},O*1e3-R);return()=>{d&&clearTimeout(_),T(Date.now()-B)}}},[O,N,b]),l.useEffect(()=>{if(!N&&z&&(d||R===0)){const B=performance.now();let _;const H=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(I=>{const A=I+R-B,V=Math.min(A/(O*1e3),1);x(V*100),V<1&&H()})};return H(),()=>{d&&cancelAnimationFrame(_)}}},[O,R,N,z,b]);const F=l.useMemo(()=>typeof g=="object"&&g!==null?g:{},[g]),Y=jn(F,!0),U=100-(!M||M<0?0:M>100?100:M),L=`${n}-notice`;return l.createElement("div",Bm({},h,{ref:t,className:Q(L,i,{[`${L}-closable`]:g}),style:r,onMouseEnter:B=>{w(!0),h?.onMouseEnter?.(B)},onMouseLeave:B=>{w(!1),h?.onMouseLeave?.(B)},onClick:y}),l.createElement("div",{className:`${L}-content`},p),g&&l.createElement("button",Bm({className:`${L}-close`,onKeyDown:W,"aria-label":"Close"},Y,{onClick:B=>{B.preventDefault(),B.stopPropagation(),j()}}),F.closeIcon??"x"),z&&l.createElement("progress",{className:`${L}-progress`,max:"100",value:U},U+"%"))}),xT=ae.createContext({}),IA=({children:e,classNames:t})=>ae.createElement(xT.Provider,{value:{classNames:t}},e),mE=8,pE=3,gE=16,PA=e=>{const t={offset:mE,threshold:pE,gap:gE};return e&&typeof e=="object"&&(t.offset=e.offset??mE,t.threshold=e.threshold??pE,t.gap=e.gap??gE),[!!e,t]};function Lm(){return Lm=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},Lm.apply(this,arguments)}const zA=e=>{const{configList:t,placement:n,prefixCls:r,className:i,style:s,motion:c,onAllNoticeRemoved:d,onNoticeClose:f,stack:p}=e,{classNames:g}=l.useContext(xT),h=l.useRef({}),[y,S]=l.useState(null),[b,$]=l.useState([]),C=t.map(O=>({config:O,key:String(O.key)})),[w,{offset:M,threshold:x,gap:R}]=PA(p),T=w&&(b.length>0||C.length<=x),N=typeof c=="function"?c(n):c;return l.useEffect(()=>{w&&b.length>1&&$(O=>O.filter(z=>C.some(({key:j})=>z===j)))},[b,C,w]),l.useEffect(()=>{w&&h.current[C[C.length-1]?.key]&&S(h.current[C[C.length-1]?.key])},[C,w]),ae.createElement(v5,Lm({key:n,className:Q(r,`${r}-${n}`,g?.list,i,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:T}),style:s,keys:C,motionAppear:!0},N,{onAllRemoved:()=>{d(n)}}),({config:O,className:z,style:j,index:W},F)=>{const{key:Y,times:U}=O,L=String(Y),{className:B,style:_,classNames:H,styles:I,...A}=O,V=C.findIndex(D=>D.key===L),P={};if(w){const D=C.length-1-(V>-1?V:W-1),q=n==="top"||n==="bottom"?"-50%":"0";if(D>0){P.height=T?h.current[L]?.offsetHeight:y?.offsetHeight;let G=0;for(let J=0;J<D;J++)G+=h.current[C[C.length-1-J].key]?.offsetHeight+R;const K=(T?G:D*M)*(n.startsWith("top")?1:-1),Z=!T&&y?.offsetWidth&&h.current[L]?.offsetWidth?(y?.offsetWidth-M*2*(D<3?D:3))/h.current[L]?.offsetWidth:1;P.transform=`translate3d(${q}, ${K}px, 0) scaleX(${Z})`}else P.transform=`translate3d(${q}, 0, 0)`}return ae.createElement("div",{ref:F,className:Q(`${r}-notice-wrapper`,z,H?.wrapper),style:{...j,...P,...I?.wrapper},onMouseEnter:()=>$(D=>D.includes(L)?D:[...D,L]),onMouseLeave:()=>$(D=>D.filter(q=>q!==L))},ae.createElement($T,Lm({},A,{ref:D=>{V>-1?h.current[L]=D:delete h.current[L]},prefixCls:r,classNames:H,styles:I,className:Q(B,g?.notice),style:_,times:U,key:Y,eventKey:Y,onNoticeClose:f,hovering:w&&b.length>0})))})},AA=l.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:i,maxCount:s,className:c,style:d,onAllRemoved:f,stack:p,renderNotifications:g}=e,[h,y]=l.useState([]),S=x=>{const R=h.find(z=>z.key===x),T=R?.closable,N=T&&typeof T=="object"?T:{},{onClose:O}=N;O?.(),R?.onClose?.(),y(z=>z.filter(j=>j.key!==x))};l.useImperativeHandle(t,()=>({open:x=>{y(R=>{let T=[...R];const N=T.findIndex(z=>z.key===x.key),O={...x};return N>=0?(O.times=(R[N]?.times||0)+1,T[N]=O):(O.times=0,T.push(O)),s>0&&T.length>s&&(T=T.slice(-s)),T})},close:x=>{S(x)},destroy:()=>{y([])}}));const[b,$]=l.useState({});l.useEffect(()=>{const x={};h.forEach(R=>{const{placement:T="topRight"}=R;T&&(x[T]=x[T]||[],x[T].push(R))}),Object.keys(b).forEach(R=>{x[R]=x[R]||[]}),$(x)},[h]);const C=x=>{$(R=>{const T={...R};return(T[x]||[]).length||delete T[x],T})},w=l.useRef(!1);if(l.useEffect(()=>{Object.keys(b).length>0?w.current=!0:w.current&&(f?.(),w.current=!1)},[b]),!r)return null;const M=Object.keys(b);return Ss.createPortal(l.createElement(l.Fragment,null,M.map(x=>{const R=b[x],T=l.createElement(zA,{key:x,configList:R,placement:x,prefixCls:n,className:c?.(x),style:d?.(x),motion:i,onNoticeClose:S,onAllNoticeRemoved:C,stack:p});return g?g(T,{prefixCls:n,key:x}):T})),r)}),DA=()=>document.body;let hE=0;function jA(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(t[r]=i)})}),t}function _A(e={}){const{getContainer:t=DA,motion:n,prefixCls:r,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p,...g}=e,[h,y]=l.useState(),S=l.useRef(),b=l.createElement(AA,{container:h,ref:S,prefixCls:r,motion:n,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p}),[$,C]=l.useState([]),w=ut(x=>{const R=jA(g,x);(R.key===null||R.key===void 0)&&(R.key=`rc-notification-${hE}`,hE+=1),C(T=>[...T,{type:"open",config:R}])}),M=l.useMemo(()=>({open:w,close:x=>{C(R=>[...R,{type:"close",key:x}])},destroy:()=>{C(x=>[...x,{type:"destroy"}])}}),[]);return l.useEffect(()=>{y(t())}),l.useEffect(()=>{if(S.current&&$.length){$.forEach(T=>{switch(T.type){case"open":S.current.open(T.config);break;case"close":S.current.close(T.key);break;case"destroy":S.current.destroy();break}});let x,R;C(T=>((x!==T||!R)&&(x=T,R=T.filter(N=>!$.includes(N))),R))}},[$]),[M,b]}var HA={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 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 BA=(e,t)=>l.createElement(gt,Qb({},e,{ref:t,icon:HA})),$p=l.forwardRef(BA),LA=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:s,colorError:c,colorWarning:d,colorInfo:f,fontSizeLG:p,motionEaseInOutCirc:g,motionDurationSlow:h,marginXS:y,paddingXS:S,borderRadiusLG:b,zIndexPopup:$,contentPadding:C,contentBg:w}=e,M=`${t}-notice`,x=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:S,transform:"translateY(0)",opacity:1}}),R=new At("MessageMoveOut",{"0%":{maxHeight:e.height,padding:S,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:S,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:p},[`${M}-content`]:{display:"inline-block",padding:C,background:w,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]:{...Zt(e),color:i,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:x,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:R,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${M}-wrapper`]:{...T}}},{[`${t}-notice-pure-panel`]:{...T,padding:0,textAlign:"start"}}]},VA=e=>({zIndexPopup:e.zIndexPopupBase+oT+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),wT=Pt("Message",e=>{const t=Ot(e,{height:150});return LA(t)},VA),FA={info:l.createElement(ES,null),success:l.createElement(Sp,null),error:l.createElement(Is,null),warning:l.createElement(Ps,null),loading:l.createElement($p,null)},ET=e=>{const{prefixCls:t,type:n,icon:r,children:i,classNames:s,styles:c}=e,d=r||n&&FA[n],f=tr(d,p=>{const g={...p?.style,...c?.icon};return{className:Q(p.className,s?.icon),style:g}});return l.createElement("div",{className:Q(`${t}-custom-content`,`${t}-${n}`)},f,l.createElement("span",{className:s?.content,style:c?.content},i))},kA=e=>{const{prefixCls:t,className:n,style:r,type:i,icon:s,content:c,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:h,style:y,classNames:S,styles:b}=It("message"),$=t||g("message"),C=or($),[w,M]=wT($,C),[x,R]=Lt([S,d],[b,f],{props:e});return l.createElement($T,{...p,prefixCls:$,className:Q(h,x.root,n,w,`${$}-notice-pure-panel`,M,C),style:{...R.root,...y,...r},eventKey:"pure",duration:null,content:l.createElement(ET,{prefixCls:$,type:i,icon:s,classNames:x,styles:R},c)})};function WA(e,t){return{motionName:t??`${e}-move-up`}}function IS(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t?.()};return r.then=(i,s)=>n.then(i,s),r.promise=n,r}const qA=8,YA=3,UA=({children:e,prefixCls:t})=>{const n=or(t),[r,i]=wT(t,n);return l.createElement(IA,{classNames:{list:Q(r,i,n)}},e)},GA=(e,{prefixCls:t,key:n})=>l.createElement(UA,{prefixCls:t,key:n},e),XA=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:s,duration:c=YA,rtl:d,transitionName:f,onAllRemoved:p,pauseOnHover:g=!0}=e,{getPrefixCls:h,direction:y,getPopupContainer:S}=It("message"),{message:b}=l.useContext(dt),$=r||h("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??qA}),w=()=>Q({[`${$}-rtl`]:d??y==="rtl"}),M=()=>WA($,f),[x,R]=Lt([e?.classNames,b?.classNames],[e?.styles,b?.styles],{props:e}),[T,N]=_A({prefixCls:$,style:C,className:w,motion:M,closable:!1,duration:c,getContainer:()=>i?.()||S?.()||document.body,maxCount:s,onAllRemoved:p,renderNotifications:GA,pauseOnHover:g});return l.useImperativeHandle(t,()=>({...T,prefixCls:$,message:b,classNames:x,styles:R})),N});let yE=0;function MT(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=f=>{t.current?.close(f)},i=f=>{if(!t.current){const P=()=>{};return P.then=()=>{},P}const{open:p,prefixCls:g,message:h,classNames:y,styles:S}=t.current,b=h?.className||{},$=h?.style||{},C=h?.classNames||{},w=h?.styles||{},M=`${g}-notice`,{content:x,icon:R,type:T,key:N,className:O,style:z,onClose:j,classNames:W={},styles:F={},...Y}=f;let U=N;Er(U)||(yE+=1,U=`antd-message-${yE}`);const L={...e,...f},B=cs(C,{props:L}),_=cs(W,{props:L}),H=cs(w,{props:L}),I=cs(F,{props:L}),A=OS(void 0,B,_,y),V=rT(H,I,S);return IS(P=>(p({...Y,key:U,content:l.createElement(ET,{prefixCls:g,type:T,icon:R,classNames:A,styles:V},x),placement:"top",className:Q({[`${M}-${T}`]:T},O,b,A.root),style:{...V.root,...$,...z},onClose:()=>{j?.(),P()}}),()=>{r(U)}))},c={open:i,destroy:f=>{f!==void 0?r(f):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const p=(g,h,y)=>{let S;g&&typeof g=="object"&&"content"in g?S=g:S={content:g};let b,$;typeof h=="function"?$=h:(b=h,$=y);const C={onClose:$,duration:b,...S,type:f};return i(C)};c[f]=p}),c},[]),l.createElement(XA,{key:"message-holder",...e,ref:t})]}function KA(e){return MT(e)}const Vm="__rc_react_root__";function PS(e,t){const n=t[Vm]||X4.createRoot(t);n.render(e),t[Vm]=n}async function RT(e){return Promise.resolve().then(()=>{e[Vm]?.unmount(),delete e[Vm]})}const hy=()=>({height:0,opacity:0}),bE=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},QA=e=>({height:e?e.offsetHeight:0}),yy=(e,t)=>t?.deadline===!0||t.propertyName==="height",TT=(e=fu)=>({motionName:`${e}-motion-collapse`,onAppearStart:hy,onEnterStart:hy,onAppearActive:bE,onEnterActive:bE,onLeaveStart:QA,onLeaveActive:hy,onAppearEnd:yy,onEnterEnd:yy,onLeaveEnd:yy,motionDeadline:500}),Uo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ZA=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},JA=D8("Wave",ZA),cd=`${fu}-wave-target`;function vE(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 eD(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:s}=n;return t&&vE(n[t])?n[t]:[r,i,s].find(vE)??null}function by(e){return Number.isNaN(e)?0:e}const tD=e=>{const{className:t,target:n,component:r,colorSource:i}=e,s=l.useRef(null),[c,d]=l.useState(null),[f,p]=l.useState([]),[g,h]=l.useState(0),[y,S]=l.useState(0),[b,$]=l.useState(0),[C,w]=l.useState(0),[M,x]=l.useState(!1),R={left:g,top:y,width:b,height:C,borderRadius:f.map(O=>`${O}px`).join(" ")};c&&(R["--wave-color"]=c);function T(){const O=getComputedStyle(n);d(eD(n,i));const z=O.position==="static",{borderLeftWidth:j,borderTopWidth:W}=O;h(z?n.offsetLeft:by(-Number.parseFloat(j))),S(z?n.offsetTop:by(-Number.parseFloat(W))),$(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:F,borderTopRightRadius:Y,borderBottomLeftRadius:U,borderBottomRightRadius:L}=O;p([F,Y,L,U].map(B=>by(Number.parseFloat(B))))}if(l.useEffect(()=>{if(n){const O=_t(()=>{T(),x(!0)});let z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(T),z.observe(n)),()=>{_t.cancel(O),z?.disconnect()}}},[n]),!M)return null;const N=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(cd);return l.createElement(vr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,z)=>{if(z.deadline||z.propertyName==="opacity"){const j=s.current?.parentElement;RT(j).then(()=>{j?.remove()})}return!1}},({className:O},z)=>l.createElement("div",{ref:rr(s,z),className:Q(t,O,{"wave-quick":N}),style:R}))},nD=(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),PS(l.createElement(tD,{...t,target:e}),r)},rD=(e,t,n,r)=>{const{wave:i}=l.useContext(dt),[,s,c]=kr(),d=ut(g=>{const h=e.current;if(i?.disabled||!h)return;const y=h.querySelector(`.${cd}`)||h,{showEffect:S}=i||{};(S||nD)(y,{className:t,token:s,component:n,event:g,hashId:c,colorSource:r})}),f=l.useRef(null);return l.useEffect(()=>()=>{_t.cancel(f.current)},[]),g=>{_t.cancel(f.current),f.current=_t(()=>{d(g)})}},ud=e=>{const{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:s}=l.useContext(dt),c=l.useRef(null),d=s("wave"),[,f]=JA(d),p=rD(c,Q(d,f),r,i);if(ae.useEffect(()=>{const h=c.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const y=S=>{!Cp(S.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")||p(S)};return h.addEventListener("click",y,!0),()=>{h.removeEventListener("click",y,!0)}},[n]),!ae.isValidElement(t))return t??null;const g=tl(t)?rr(nl(t),c):c;return tr(t,{ref:g})},ur=e=>{const t=ae.useContext(Cs);return ae.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},oD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},aD=Pt(["Space","Compact"],e=>[oD(e)],()=>({}),{resetStyle:!1}),xp=l.createContext(null),Ma=(e,t)=>{const n=l.useContext(xp),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:s,isLastItem:c}=n,d=i==="vertical"?"-vertical-":"-";return Q(`${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}},iD=e=>{const{children:t}=e;return l.createElement(xp.Provider,{value:null},t)},lD=e=>{const{children:t,...n}=e;return l.createElement(xp.Provider,{value:l.useMemo(()=>n,[n])},t)},OT=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{size:r,direction:i,orientation:s,block:c,prefixCls:d,className:f,rootClassName:p,children:g,vertical:h,...y}=e,[S,b]=od(s,h,i),$=ur(N=>r??N),C=t("space-compact",d),[w]=aD(C),M=Q(C,w,{[`${C}-rtl`]:n==="rtl",[`${C}-block`]:c,[`${C}-vertical`]:b},f,p),x=l.useContext(xp),R=cr(g),T=l.useMemo(()=>R.map((N,O)=>{const z=N?.key||`${C}-item-${O}`;return l.createElement(lD,{key:z,compactSize:$,compactDirection:S,isFirstItem:O===0&&(!x||x?.isFirstItem),isLastItem:O===R.length-1&&(!x||x?.isLastItem)},N)}),[R,x,S,$,C]);return R.length===0?null:l.createElement("div",{className:M,...y},T)},NT=l.createContext(void 0),sD=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,size:i,className:s,...c}=e,d=t("btn-group",r),[,,f]=kr(),p=l.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),g=Q(d,{[`${d}-${p}`]:p,[`${d}-rtl`]:n==="rtl"},s,f);return l.createElement(NT.Provider,{value:i},l.createElement("div",{...c,className:g}))},SE=/^[\u4E00-\u9FA5]{2}$/,Zb=SE.test.bind(SE);function zS(e){return e==="danger"?{danger:!0}:{type:e}}function CE(e){return typeof e=="string"}function vy(e){return e==="text"||e==="link"}function cD(e,t,n,r){if(!Er(e)||e==="")return;const i=t?" ":"";return typeof e!="string"&&typeof e!="number"&&CE(e.type)&&Zb(e.props.children)?tr(e,s=>({...s,children:s.children.split("").join(i),className:r,style:n})):CE(e)?ae.createElement("span",{className:r,style:n},Zb(e)?e.split("").join(i):e):iT(e)?ae.createElement("span",{className:r,style:n},e):tr(e,s=>({...s,className:Q(s.className,r)||void 0,style:{...s.style,...n}}))}function uD(e,t,n,r){let i=!1;const s=[];return ae.Children.forEach(e,c=>{const d=typeof c,f=d==="string"||d==="number";if(i&&f){const p=s.length-1,g=s[p];s[p]=`${g}${c}`}else s.push(c);i=f}),ae.Children.map(s,c=>cD(c,t,n,r))}["default","primary","danger"].concat(xn(ci));const IT=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:s}=e,c=Q(`${s}-icon`,n);return ae.createElement("span",{ref:t,className:c,style:r},i)}),$E=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:s}=e,c=Q(`${n}-loading-icon`,r);return ae.createElement(IT,{prefixCls:n,className:c,style:i,ref:t},ae.createElement($p,{className:s}))}),Sy=()=>({width:0,opacity:0,transform:"scale(0)"}),Cy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),dD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:s,mount:c}=e,d=!!n;return r?ae.createElement($E,{prefixCls:t,className:i,style:s}):ae.createElement(vr,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Sy,onAppearActive:Cy,onEnterStart:Sy,onEnterActive:Cy,onLeaveStart:Cy,onLeaveActive:Sy},({className:f,style:p},g)=>{const h={...s,...p};return ae.createElement($E,{prefixCls:t,className:Q(i,f),style:h,ref:g})})},xE=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,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}},xE(`${t}-primary`,i),xE(`${t}-danger`,s)]}},$y=e=>Math.round(Number(e||0)),mD=e=>{if(e instanceof en)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 $u extends en{constructor(t){super(mD(t))}toHsbString(){const t=this.toHsb(),n=$y(t.s*100),r=$y(t.b*100),i=$y(t.h),s=t.a,c=`hsb(${i}, ${n}%, ${r}%)`,d=`hsba(${i}, ${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 pD=e=>e instanceof $u?e:new $u(e);pD("#1677ff");const gD=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",hD=(e,t)=>e?gD(e,t):"";let Fm=(function(){function e(t){if(rl(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:i})=>({color:new e(r),percent:i})),this.metaColor=new $u(this.colors[0].color.metaColor)):this.metaColor=new $u(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ol(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return hD(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(i=>`${i.color.toRgbString()} ${i.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,i)=>{const s=n.colors[i];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var yD={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 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 bD=(e,t)=>l.createElement(gt,Jb({},e,{ref:t,icon:yD})),$s=l.forwardRef(bD);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 vD=ae.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:i,style:s,children:c,isActive:d,role:f,classNames:p,styles:g}=e,[h,y]=ae.useState(d||r);return ae.useEffect(()=>{(r||d)&&y(!0)},[r,d]),h?ae.createElement("div",{ref:t,className:Q(`${n}-panel`,{[`${n}-panel-active`]:d,[`${n}-panel-inactive`]:!d},i),style:s,role:f},ae.createElement("div",{className:Q(`${n}-body`,p?.body),style:g?.body},c)):null}),PT=ae.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:s,forceRender:c,className:d,classNames:f={},styles:p={},prefixCls:g,collapsible:h,accordion:y,panelKey:S,extra:b,header:$,expandIcon:C,openMotion:w,destroyOnHidden:M,children:x,...R}=e,T=h==="disabled",N=b!=null&&typeof b!="boolean",O={onClick:()=>{s?.(S)},onKeyDown:U=>{(U.key==="Enter"||U.keyCode===nt.ENTER||U.which===nt.ENTER)&&s?.(S)},role:y?"tab":"button","aria-expanded":i,"aria-disabled":T,tabIndex:T?-1:0},z=typeof C=="function"?C(e):ae.createElement("i",{className:"arrow"}),j=z&&ae.createElement("div",Gn({className:Q(`${g}-expand-icon`,f?.icon),style:p?.icon},["header","icon"].includes(h)?O:{}),z),W=Q(`${g}-item`,{[`${g}-item-active`]:i,[`${g}-item-disabled`]:T},d),Y={className:Q(r,`${g}-header`,{[`${g}-collapsible-${h}`]:!!h},f?.header),style:p?.header,...["header","icon"].includes(h)?{}:O};return ae.createElement("div",Gn({},R,{ref:t,className:W}),ae.createElement("div",Y,n&&j,ae.createElement("span",Gn({className:Q(`${g}-title`,f?.title),style:p?.title},h==="header"?O:{}),$),N&&ae.createElement("div",{className:`${g}-extra`},b)),ae.createElement(vr,Gn({visible:i,leavedClassName:`${g}-panel-hidden`},w,{forceRender:c,removeOnLeave:M}),({className:U,style:L},B)=>ae.createElement(vD,{ref:B,prefixCls:g,className:U,classNames:f,style:L,styles:p,isActive:i,forceRender:c,role:y?"tabpanel":void 0},x)))}),SD=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:s,onItemClick:c,activeKey:d,openMotion:f,expandIcon:p,classNames:g,styles:h}=t;return e.map((y,S)=>{const{children:b,label:$,key:C,collapsible:w,onItemClick:M,destroyOnHidden:x,...R}=y,T=String(C??S),N=w??i,O=x??s,z=W=>{N!=="disabled"&&(c(W),M?.(W))};let j=!1;return r?j=d[0]===T:j=d.indexOf(T)>-1,ae.createElement(PT,Gn({},R,{classNames:g,styles:h,prefixCls:n,key:T,panelKey:T,isActive:j,accordion:r,openMotion:f,expandIcon:p,header:$,collapsible:N,onItemClick:z,destroyOnHidden:O}),b)})},CD=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:i,collapsible:s,destroyOnHidden:c,onItemClick:d,activeKey:f,openMotion:p,expandIcon:g,classNames:h,styles:y}=n,S=e.key||String(t),{header:b,headerClass:$,destroyOnHidden:C,collapsible:w,onItemClick:M}=e.props;let x=!1;i?x=f[0]===S:x=f.indexOf(S)>-1;const R=w??s,T=O=>{R!=="disabled"&&(d(O),M?.(O))},N={key:S,panelKey:S,header:b,headerClass:$,classNames:h,styles:y,isActive:x,prefixCls:r,destroyOnHidden:C??c,openMotion:p,accordion:i,children:e.props.children,onItemClick:T,expandIcon:g,collapsible:R};return typeof e.type=="string"?e:(Object.keys(N).forEach(O=>{typeof N[O]>"u"&&delete N[O]}),ae.cloneElement(e,N))};function $D(e,t,n){return Array.isArray(e)?SD(e,n):cr(t).map((r,i)=>CD(r,i,n))}function wE(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 xD=ae.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:i,accordion:s,className:c,children:d,collapsible:f,openMotion:p,expandIcon:g,activeKey:h,defaultActiveKey:y,onChange:S,items:b,classNames:$,styles:C}=e,w=Q(n,c),[M,x]=Yt(y,h),R=wE(M),T=ut(z=>{const j=wE(z);x(j),S?.(j)}),N=z=>{T(s?R[0]===z?[]:[z]:R.includes(z)?R.filter(j=>j!==z):[...R,z])};er(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const O=$D(b,d,{prefixCls:n,accordion:s,openMotion:p,expandIcon:g,collapsible:f,destroyOnHidden:r,onItemClick:N,activeKey:R,classNames:$,styles:C});return ae.createElement("div",Gn({ref:t,className:w,style:i,role:s?"tablist":void 0},jn(e,{aria:!0,data:!0})),O)}),AS=Object.assign(xD,{Panel:PT}),{Panel:lee}=AS,wD=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,className:i,showArrow:s=!0}=e,c=n("collapse",r),d=Q({[`${c}-no-arrow`]:!s},i);return l.createElement(AS.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`}}}),ED=e=>({animationDuration:e,animationFillMode:"both"}),MD=e=>({animationDuration:e,animationFillMode:"both"}),wp=(e,t,n,r,i=!1)=>{const s=i?"&":"";return{[`
142
- ${s}${e}-enter,
143
- ${s}${e}-appear
144
- `]:{...ED(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...MD(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"}}},RD=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),TD=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),AT=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[wp(r,RD,TD,e.motionDurationMid,t),{[`
148
- ${i}${r}-enter,
149
- ${i}${r}-appear
150
- `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},OD=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ND=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ID=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),PD=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zD=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AD=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),DD=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jD=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_D={"move-up":{inKeyframes:DD,outKeyframes:jD},"move-down":{inKeyframes:OD,outKeyframes:ND},"move-left":{inKeyframes:ID,outKeyframes:PD},"move-right":{inKeyframes:zD,outKeyframes:AD}},xs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=_D[t];return[wp(r,i,s,e.motionDurationMid),{[`
151
- ${r}-enter,
152
- ${r}-appear
153
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ep=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Mp=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Rp=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Tp=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),HD=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),BD=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),LD=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),VD=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),FD={"slide-up":{inKeyframes:Ep,outKeyframes:Mp},"slide-down":{inKeyframes:Rp,outKeyframes:Tp},"slide-left":{inKeyframes:HD,outKeyframes:BD},"slide-right":{inKeyframes:LD,outKeyframes:VD}},Go=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=FD[t];return[wp(r,i,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}}]},kD=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),WD=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),EE=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ME=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),qD=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),YD=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),UD=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),GD=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),XD=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),KD=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),QD=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ZD=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),JD={zoom:{inKeyframes:kD,outKeyframes:WD},"zoom-big":{inKeyframes:EE,outKeyframes:ME},"zoom-big-fast":{inKeyframes:EE,outKeyframes:ME},"zoom-left":{inKeyframes:UD,outKeyframes:GD},"zoom-right":{inKeyframes:XD,outKeyframes:KD},"zoom-up":{inKeyframes:qD,outKeyframes:YD},"zoom-down":{inKeyframes:QD,outKeyframes:ZD}},dd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=JD[t];return[wp(r,i,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:i,headerPadding:s,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:d,collapsePanelBorderRadius:f,lineWidth:p,lineType:g,colorBorder:h,colorText:y,colorTextHeading:S,colorTextDisabled:b,fontSizeLG:$,lineHeight:C,lineHeightLG:w,marginSM:M,paddingSM:x,paddingLG:R,paddingXS:T,motionDurationSlow:N,fontSizeIcon:O,contentPadding:z,fontHeight:j,fontHeightLG:W}=e,F=`${te(p)} ${g} ${h}`;return{[t]:{...Zt(e),backgroundColor:i,border:F,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:F,"&: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:S,lineHeight:C,cursor:"pointer",transition:`all ${N}, visibility 0s`,...Co(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:j,display:"flex",alignItems:"center",marginInlineEnd:M},[`${t}-arrow`]:{...Os(),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:F,[`& > ${t}-body`]:{padding:z},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(T).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:$,lineHeight:w,[`> ${t}-header`]:{padding:d,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:W,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:R}}},[`${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:M}}}}}}},tj=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},nj=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,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:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},rj=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"}),aj=Pt("Collapse",e=>{const t=Ot(e,{collapseHeaderPaddingSM:`${te(e.paddingXS)} ${te(e.paddingSM)}`,collapseHeaderPaddingLG:`${te(e.padding)} ${te(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[ej(t),nj(t),rj(t),tj(t),zT(t)]},oj),ij=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:s,style:c,classNames:d,styles:f}=It("collapse"),{prefixCls:p,className:g,rootClassName:h,style:y,bordered:S=!0,ghost:b,size:$,expandIconPlacement:C,expandIconPosition:w,children:M,destroyInactivePanel:x,destroyOnHidden:R,expandIcon:T,classNames:N,styles:O}=e,z=ur(D=>$??D??"middle"),j=n("collapse",p),W=n(),[F,Y]=aj(j),U=C??w??"start",L={...e,size:z,bordered:S,expandIconPlacement:U},[B,_]=Lt([d,N],[f,O],{props:L}),H=T??i,I=l.useCallback((D={})=>{const q=typeof H=="function"?H(D):l.createElement($s,{rotate:D.isActive?r==="rtl"?-90:90:void 0,"aria-label":D.isActive?"expanded":"collapsed"});return tr(q,()=>({className:Q(q?.props?.className,`${j}-arrow`)}))},[H,j,r]),A=Q(`${j}-icon-placement-${U}`,{[`${j}-borderless`]:!S,[`${j}-rtl`]:r==="rtl",[`${j}-ghost`]:!!b,[`${j}-${z}`]:z!=="middle"},s,g,h,F,Y,B.root),V=l.useMemo(()=>({...TT(W),motionAppear:!1,leavedClassName:`${j}-panel-hidden`}),[W,j]),P=l.useMemo(()=>M?cr(M).map(D=>D):null,[M]);return l.createElement(AS,{ref:t,openMotion:V,...nn(e,["rootClassName"]),expandIcon:I,prefixCls:j,className:A,style:{..._.root,...c,...y},classNames:B,styles:_,destroyOnHidden:R??x},P)}),RE=Object.assign(ij,{Panel:wD}),lj=e=>e instanceof Fm?e:new Fm(e),DT=(e,t)=>{const{r:n,g:r,b:i,a:s}=e.toRgb(),c=new $u(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+i*.114>192},jT=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Ot(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},_T=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??hm(t),s=e.contentLineHeightSM??hm(n),c=e.contentLineHeightLG??hm(r),d=DT(new Fm(e.colorBgSolid),"#fff")?"#000":"#fff",f=ci.reduce((h,y)=>({...h,[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Yc(e[`${y}1`],e.colorBgContainer)}`}),{}),p=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:i,contentLineHeightSM:s,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-t*i)/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:p,dashedBgDisabled:g}},sj=e=>{const{componentCls:t,antCls:n}=e,r=j8(n,"btn");return{[t]:[{[r("border-width")]:"1px",[r("border-color")]:"#000",[r("border-color-hover")]:`var(${r("border-color")})`,[r("border-color-active")]:`var(${r("border-color")})`,[r("border-color-disabled")]:`var(${r("border-color")})`,[r("border-style")]:"solid",[r("text-color")]:"#000",[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`,[r("text-color-disabled")]:`var(${r("text-color")})`,[r("bg-color")]:"#ddd",[r("bg-color-hover")]:`var(${r("bg-color")})`,[r("bg-color-active")]:`var(${r("bg-color")})`,[r("bg-color-disabled")]:e.colorBgContainerDisabled,[r("bg-color-container")]:e.colorBgContainer,[r("shadow")]:"none"},{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color")})`,color:`var(${r("text-color")})`,backgroundColor:`var(${r("bg-color")})`,[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color-hover")})`,color:`var(${r("text-color-hover")})`,backgroundColor:`var(${r("bg-color-hover")})`},"&:active":{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color-active")})`,color:`var(${r("text-color-active")})`,backgroundColor:`var(${r("bg-color-active")})`}}},{[`&${t}-variant-solid`]:{[r("solid-bg-color")]:`var(${r("color-base")})`,[r("solid-bg-color-hover")]:`var(${r("color-hover")})`,[r("solid-bg-color-active")]:`var(${r("color-active")})`,[r("border-color")]:"transparent",[r("text-color")]:e.colorTextLightSolid,[r("bg-color")]:`var(${r("solid-bg-color")})`,[r("bg-color-hover")]:`var(${r("solid-bg-color-hover")})`,[r("bg-color-active")]:`var(${r("solid-bg-color-active")})`,boxShadow:`var(${r("shadow")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("border-color")]:`var(${r("color-base")})`,[r("border-color-hover")]:`var(${r("color-hover")})`,[r("border-color-active")]:`var(${r("color-active")})`,[r("bg-color")]:`var(${r("bg-color-container")})`,[r("text-color")]:`var(${r("color-base")})`,[r("text-color-hover")]:`var(${r("color-hover")})`,[r("text-color-active")]:`var(${r("color-active")})`,boxShadow:`var(${r("shadow")})`},[`&${t}-variant-dashed`]:{[r("border-style")]:"dashed",[r("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[r("border-color")]:"transparent",[r("text-color")]:`var(${r("color-base")})`,[r("bg-color")]:`var(${r("color-light")})`,[r("bg-color-hover")]:`var(${r("color-light-hover")})`,[r("bg-color-active")]:`var(${r("color-light-active")})`},[`&${t}-variant-text, &${t}-variant-link`]:{[r("border-color")]:"transparent",[r("text-color")]:`var(${r("color-base")})`,[r("text-color-hover")]:`var(${r("color-hover")})`,[r("text-color-active")]:`var(${r("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")]:`var(${r("color-light")})`,[r("bg-color-active")]:`var(${r("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")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("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")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("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")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`},[`&${t}-variant-filled, &${t}-variant-text`]:{[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("bg-color-hover")]:e.defaultHoverBg,[r("bg-color-active")]:e.defaultActiveBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("text-color")]:e.defaultGhostColor,[r("border-color")]:e.defaultGhostBorderColor}}}},ci.map(i=>{const s=e[`${i}6`],c=e[`${i}1`],d=e[`${i}5`],f=e[`${i}2`],p=e[`${i}3`],g=e[`${i}7`],h=e[`${i}ShadowColor`];return{[`&${t}-color-${i}`]:{[r("color-base")]:s,[r("color-hover")]:d,[r("color-active")]:g,[r("color-light")]:c,[r("color-light-hover")]:f,[r("color-light-active")]:p,[r("shadow")]:h}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:`var(${r("bg-color-disabled")})`,color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[r("bg-color")]:"transparent",[r("shadow")]:"none"}}]}},cj=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,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`]:Os(),"> a":{color:"currentColor"},"&:not(:disabled)":Co(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:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${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()}}}}}},uj=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),DS=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:s,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:f,buttonIconOnlyFontSize:p}=e;return[{[t]:{fontSize:i,height:r,padding:`${te(f)} ${te(c)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:p}}}},{[`${n}${n}-circle${t}`]:uj(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},dj=e=>{const t=Ot(e,{fontSize:e.contentFontSize});return DS(t,e.componentCls)},fj=e=>{const t=Ot(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return DS(t,`${e.componentCls}-sm`)},mj=e=>{const t=Ot(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return DS(t,`${e.componentCls}-lg`)},pj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},gj=Pt("Button",e=>{const t=jT(e);return[cj(t),dj(t),fj(t),mj(t),pj(t),sj(t),fD(t)]},_T,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function hj(e,t,n,r){const{focusElCls:i,focus:s,borderElCls:c}=n,d=c?"> *":"",f=["hover",s?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${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},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function yj(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,s=`${i}-compact`;return{[s]:{...hj(e,s,t,i),...yj(i,s,t)}}}function bj(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 vj(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 Sj(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...bj(e,t,e.componentCls),...vj(e.componentCls,t)}}}const Cj=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,s=i(r).mul(-1).equal(),c=d=>{const f=`${t}-compact${d?"-vertical":""}-item`,p=`${f}${t}-primary:not([disabled])`;return{[f]:{transition:"none"},[`${p} + ${p}::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)}},$j=rd(["Button","compact"],e=>{const t=jT(e);return[fd(t),Sj(t),Cj(t)]},_T);function xj(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 wj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Ej=ae.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:i,color:s,variant:c,type:d,danger:f=!1,shape:p,size:g,disabled:h,className:y,rootClassName:S,children:b,icon:$,iconPosition:C,iconPlacement:w,ghost:M=!1,block:x=!1,htmlType:R="button",classNames:T,styles:N,style:O,autoInsertSpace:z,autoFocus:j,...W}=e,F=cr(b),Y=d||"default",{button:U}=ae.useContext(dt),L=p||U?.shape||"default",[B,_]=l.useMemo(()=>{if(s&&c)return[s,c];if(d||f){const lt=wj[Y]||[];return f?["danger",lt[1]]:lt}return U?.color&&U?.variant?[U.color,U.variant]:["default","outlined"]},[s,c,d,f,U?.color,U?.variant,Y]),[H,I]=l.useMemo(()=>M&&_==="solid"?[B,"outlined"]:[B,_],[B,_,M]),A=H==="danger",V=A?"dangerous":H,{getPrefixCls:P,direction:D,autoInsertSpace:q,className:G,style:K,classNames:Z,styles:J}=It("button"),ie=z??q??!0,ne=P("btn",i),[oe,ue]=gj(ne),le=l.useContext(Fr),fe=h??le,ge=l.useContext(NT),re=l.useMemo(()=>xj(r),[r]),[ce,he]=l.useState(re.loading),[pe,Ce]=l.useState(!1),de=l.useRef(null),ye=fi(t,de),Se=F.length===1&&!$&&!vy(I),Ee=l.useRef(!0);ae.useEffect(()=>(Ee.current=!1,()=>{Ee.current=!0}),[]),Nt(()=>{let lt=null;re.delay>0?lt=setTimeout(()=>{lt=null,he(!0)},re.delay):he(re.loading);function St(){lt&&(clearTimeout(lt),lt=null)}return St},[re.delay,re.loading]),l.useEffect(()=>{if(!de.current||!ie)return;const lt=de.current.textContent||"";Se&&Zb(lt)?pe||Ce(!0):pe&&Ce(!1)}),l.useEffect(()=>{j&&de.current&&de.current.focus()},[]);const Pe=ae.useCallback(lt=>{if(ce||fe){lt.preventDefault();return}e.onClick?.(("href"in e,lt))},[e.onClick,ce,fe]),{compactSize:Ae,compactItemClassnames:Ye}=Ma(ne,D),Ue={large:"lg",small:"sm",middle:void 0},Xe=ur(lt=>g??Ae??ge??lt),et=Xe?Ue[Xe]??"":"",Te=ce?"loading":$,_e=w??C??"start",Le=nn(W,["navigate"]),Qe={...e,type:Y,color:H,variant:I,danger:A,shape:L,size:Xe,disabled:fe,loading:ce,iconPlacement:_e},[ze,ve]=Lt([n?void 0:Z,T],[n?void 0:J,N],{props:Qe}),Oe=Q(ne,oe,ue,{[`${ne}-${L}`]:L!=="default"&&L!=="square"&&L,[`${ne}-${Y}`]:Y,[`${ne}-dangerous`]:f,[`${ne}-color-${V}`]:V,[`${ne}-variant-${I}`]:I,[`${ne}-${et}`]:et,[`${ne}-icon-only`]:!b&&b!==0&&!!Te,[`${ne}-background-ghost`]:M&&!vy(I),[`${ne}-loading`]:ce,[`${ne}-two-chinese-chars`]:pe&&ie&&!ce,[`${ne}-block`]:x,[`${ne}-rtl`]:D==="rtl",[`${ne}-icon-end`]:_e==="end"},Ye,y,S,G,ze.root),Ze={...ve.root,...K,...O},qe={className:ze.icon,style:ve.icon},Be=lt=>ae.createElement(IT,{prefixCls:ne,...qe},lt),Ne=ae.createElement(dD,{existIcon:!!$,prefixCls:ne,loading:ce,mount:Ee.current,...qe});let Ge;$&&!ce?Ge=Be($):r&&typeof r=="object"&&r.icon?Ge=Be(r.icon):Ge=Ne;const rt=Er(b)?uD(b,Se&&ie,ve.content,ze.content):null;if(Le.href!==void 0)return ae.createElement("a",{...Le,className:Q(Oe,{[`${ne}-disabled`]:fe}),href:fe?void 0:Le.href,style:Ze,onClick:Pe,ref:ye,tabIndex:fe?-1:0,"aria-disabled":fe},Ge,rt);let ot=ae.createElement("button",{...W,type:R,className:Oe,style:Ze,onClick:Pe,disabled:fe,ref:ye},Ge,rt,Ye&&ae.createElement($j,{prefixCls:ne}));return vy(I)||(ot=ae.createElement(ud,{component:"Button",disabled:ce},ot)),ot}),Bt=Ej;Bt.Group=sD;Bt.__ANT_BUTTON=!0;const xy=e=>typeof e?.then=="function",jS=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:s,autoFocus:c,emitEvent:d,isSilent:f,quitOnNullishReturnValue:p,actionFn:g}=e,h=l.useRef(!1),y=l.useRef(null),[S,b]=Im(!1),$=(...M)=>{s?.(...M)};l.useEffect(()=>{let M=null;return c&&(M=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{M&&clearTimeout(M)}},[c]);const C=M=>{xy(M)&&(b(!0),M.then((...x)=>{b(!1,!0),$.apply(void 0,x),h.current=!1},x=>{if(b(!1,!0),h.current=!1,!f?.())return Promise.reject(x)}))},w=M=>{if(h.current)return;if(h.current=!0,!g){$();return}let x;if(d){if(x=g(M),p&&!xy(x)){h.current=!1,$(M);return}}else if(g.length)x=g(s),h.current=!1;else if(x=g(),!xy(x)){$();return}C(x)};return l.createElement(Bt,{...zS(t),onClick:w,loading:S,prefixCls:r,...i,ref:y},n)},md=ae.createContext({}),{Provider:HT}=md,TE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:s,close:c,onCancel:d,onConfirm:f,onClose:p}=l.useContext(md);return i?ae.createElement(jS,{isSilent:r,actionFn:d,close:(...g)=>{c?.(...g),f?.(!1),p?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},OE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:s,okType:c,onConfirm:d,onOk:f,onClose:p}=l.useContext(md);return ae.createElement(jS,{isSilent:n,type:c||"primary",actionFn:f,close:(...g)=>{t?.(...g),d?.(!0),p?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},s)},BT=l.createContext({});function NE(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function IE(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function Mj(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=IE(i),n.top+=IE(i,!0),n}const Rj=l.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function km(){return km=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},km.apply(this,arguments)}const Tj={width:0,height:0,overflow:"hidden",outline:"none"},Oj={outline:"none"},LT=ae.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,title:s,ariaId:c,footer:d,closable:f,closeIcon:p,onClose:g,children:h,bodyStyle:y,bodyProps:S,modalRender:b,onMouseDown:$,onMouseUp:C,holderRef:w,visible:M,forceRender:x,width:R,height:T,classNames:N,styles:O}=e,{panel:z}=ae.useContext(BT),j=fi(w,z),W=l.useRef(null),F=l.useRef(null);ae.useImperativeHandle(t,()=>({focus:()=>{W.current?.focus({preventScroll:!0})},changeActive:V=>{const{activeElement:P}=document;V&&P===F.current?W.current.focus({preventScroll:!0}):!V&&P===W.current&&F.current.focus({preventScroll:!0})}}));const Y={};R!==void 0&&(Y.width=R),T!==void 0&&(Y.height=T);const U=d?ae.createElement("div",{className:Q(`${n}-footer`,N?.footer),style:{...O?.footer}},d):null,L=s?ae.createElement("div",{className:Q(`${n}-header`,N?.header),style:{...O?.header}},ae.createElement("div",{className:Q(`${n}-title`,N?.title),id:c,style:{...O?.title}},s)):null,B=l.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:p??ae.createElement("span",{className:`${n}-close-x`})}:{},[f,p,n]),_=jn(B,!0),H=typeof f=="object"&&f.disabled,I=f?ae.createElement("button",km({type:"button",onClick:g,"aria-label":"Close"},_,{className:`${n}-close`,disabled:H}),B.closeIcon):null,A=ae.createElement("div",{className:Q(`${n}-container`,N?.container),style:O?.container},I,L,ae.createElement("div",km({className:Q(`${n}-body`,N?.body),style:{...y,...O?.body}},S),h),U);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:j,style:{...i,...Y},className:Q(n,r),onMouseDown:$,onMouseUp:C},ae.createElement("div",{ref:W,tabIndex:0,style:Oj},ae.createElement(Rj,{shouldUpdate:M||x},b?b(A):A)),ae.createElement("div",{tabIndex:0,ref:F,style:Tj}))});function ev(){return ev=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},ev.apply(this,arguments)}const Nj=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:i,className:s,visible:c,forceRender:d,destroyOnHidden:f,motionName:p,ariaId:g,onVisibleChanged:h,mousePosition:y}=e,S=l.useRef(null),b=l.useRef(null);l.useImperativeHandle(t,()=>({...b.current,inMotion:S.current.inMotion,enableMotion:S.current.enableMotion}));const[$,C]=l.useState(),w={};$&&(w.transformOrigin=$);function M(){const x=Mj(S.current.nativeElement);C(y&&(y.x||y.y)?`${y.x-x.left}px ${y.y-x.top}px`:"")}return l.createElement(vr,{visible:c,onVisibleChanged:h,onAppearPrepare:M,onEnterPrepare:M,forceRender:d,motionName:p,removeOnLeave:f,ref:S},({className:x,style:R},T)=>l.createElement(LT,ev({},e,{ref:b,title:r,ariaId:g,prefixCls:n,holderRef:T,style:{...R,...i,...w},className:Q(s,x)})))});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 Ij=e=>{const{prefixCls:t,style:n,visible:r,maskProps:i,motionName:s,className:c}=e;return l.createElement(vr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:d,style:f},p)=>l.createElement("div",tv({ref:p,style:{...f,...n},className:Q(`${t}-mask`,d,c)},i)))};function ru(){return ru=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},ru.apply(this,arguments)}const Pj=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,keyboard:i=!0,focusTriggerAfterClose:s=!0,wrapStyle:c,wrapClassName:d,wrapProps:f,onClose:p,afterOpenChange:g,afterClose:h,transitionName:y,animation:S,closable:b=!0,mask:$=!0,maskTransitionName:C,maskAnimation:w,maskClosable:M=!0,maskStyle:x,maskProps:R,rootClassName:T,rootStyle:N,classNames:O,styles:z}=e,j=l.useRef(null),W=l.useRef(null),F=l.useRef(null),[Y,U]=l.useState(r),L=Ea();function B(){fb(W.current,document.activeElement)||(j.current=document.activeElement)}function _(){fb(W.current,document.activeElement)||F.current?.focus()}function H(){if(U(!1),$&&j.current&&s){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}Y&&h?.()}function I(J){J?_():H(),g?.(J)}function A(J){p?.(J)}const V=l.useRef(!1),P=l.useRef(null),D=()=>{clearTimeout(P.current),V.current=!0},q=()=>{P.current=setTimeout(()=>{V.current=!1})};let G=null;M&&(G=J=>{V.current?V.current=!1:W.current===J.target&&A(J)});function K(J){if(i&&J.keyCode===nt.ESC){J.stopPropagation(),A(J);return}r&&J.keyCode===nt.TAB&&F.current.changeActive(!J.shiftKey)}l.useEffect(()=>{r?(U(!0),B()):Y&&F.current.enableMotion()&&!F.current.inMotion()&&H()},[r]),l.useEffect(()=>()=>{clearTimeout(P.current)},[]);const Z={zIndex:n,...c,...z?.wrapper,display:Y?null:"none"};return l.createElement("div",ru({className:Q(`${t}-root`,T),style:N},jn(e,{data:!0})),l.createElement(Ij,{prefixCls:t,visible:$&&r,motionName:NE(t,C,w),style:{zIndex:n,...x,...z?.mask},maskProps:R,className:O?.mask}),l.createElement("div",ru({tabIndex:-1,onKeyDown:K,className:Q(`${t}-wrap`,d,O?.wrapper),ref:W,onClick:G,style:Z},f),l.createElement(Nj,ru({},e,{onMouseDown:D,onMouseUp:q,ref:F,closable:b,ariaId:L,prefixCls:t,visible:r&&Y,onClose:A,onVisibleChanged:I,motionName:NE(t,y,S)}))))};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 zj=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:s,closable:c,panelRef:d}=e,[f,p]=l.useState(t),g=l.useMemo(()=>({panel:d}),[d]);return l.useEffect(()=>{t&&p(!0)},[t]),!r&&i&&!f?null:l.createElement(BT.Provider,{value:g},l.createElement(id,{open:t||r||f,autoDestroy:!1,getContainer:n,autoLock:t||f},l.createElement(Pj,nv({},e,{destroyOnHidden:i,afterClose:()=>{const h=c&&typeof c=="object"?c:{},{afterClose:y}=h||{};y?.(),s?.(),p(!1)}}))))},ki="RC_FORM_INTERNAL_HOOKS",pn=()=>{er(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ws=l.createContext({getFieldValue:pn,getFieldsValue:pn,getFieldError:pn,getFieldWarning:pn,getFieldsError:pn,isFieldsTouched:pn,isFieldTouched:pn,isFieldValidating:pn,isFieldsValidating:pn,resetFields:pn,setFields:pn,setFieldValue:pn,setFieldsValue:pn,validateFields:pn,submit:pn,getInternalHooks:()=>(pn(),{dispatch:pn,initEntityValue:pn,registerField:pn,useSubscribe:pn,setInitialValues:pn,destroyForm:pn,setCallbacks:pn,registerWatch:pn,getFields:pn,setValidateMessages:pn,setPreserve:pn,getInitialValue:pn,setBatchUpdate:pn})}),Wm=l.createContext(null);function rv(e){return e==null?[]:Array.isArray(e)?e:[e]}function Aj(e){return e&&!!e._init}function ov(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var av=ov();function Dj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jj(e,t,n){if(bp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&yu(i,n.prototype),i}function iv(e){var t=typeof Map=="function"?new Map:void 0;return iv=function(r){if(r===null||!Dj(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,i)}function i(){return jj(r,arguments,Xi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yu(i,r)},iv(e)}var _j=/%[sdj%]/g,Hj=function(){};function lv(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 no(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 i=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(_j,function(d){if(d==="%%")return"%";if(i>=s)return d;switch(d){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function Bj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function nr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Bj(t)&&typeof e=="string"&&!e)}function Lj(e,t,n){var r=[],i=0,s=e.length;function c(d){r.push.apply(r,xn(d||[])),i++,i===s&&n(r)}e.forEach(function(d){t(d,c)})}function PE(e,t,n){var r=0,i=e.length;function s(c){if(c&&c.length){n(c);return}var d=r;r=r+1,d<i?t(e[d],s):n([])}s([])}function Vj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,xn(e[n]||[]))}),t}var zE=(function(e){$S(n,e);var t=MR(n);function n(r,i){var s;return rl(this,n),s=t.call(this,"Async Validation Error"),lr(ps(s),"errors",void 0),lr(ps(s),"fields",void 0),s.errors=r,s.fields=i,s}return ol(n)})(iv(Error));function Fj(e,t,n,r,i){if(t.first){var s=new Promise(function(y,S){var b=function(w){return r(w),w.length?S(new zE(w,lv(w))):y(i)},$=Vj(e);PE($,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,p=0,g=[],h=new Promise(function(y,S){var b=function(C){if(g.push.apply(g,C),p++,p===f)return r(g),g.length?S(new zE(g,lv(g))):y(i)};d.length||(r(g),y(i)),d.forEach(function($){var C=e[$];c.indexOf($)!==-1?PE(C,n,b):Lj(C,n,b)})});return h.catch(function(y){return y}),h}function kj(e){return!!(e&&e.message!==void 0)}function Wj(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function AE(e,t){return function(n){var r;return e.fullFields?r=Wj(t,e.fullFields):r=t[n.field||e.fullField],kj(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 DE(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]=Dn(Dn({},e[n]),r):e[n]=r}}return e}var Gl="enum",qj=function(t,n,r,i,s){t[Gl]=Array.isArray(t[Gl])?t[Gl]:[],t[Gl].indexOf(n)===-1&&i.push(no(s.messages[Gl],t.fullField,t[Gl].join(", ")))},Yj=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(no(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||i.push(no(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Uj=function(t,n,r,i,s){var c=typeof t.len=="number",d=typeof t.min=="number",f=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,h=null,y=typeof n=="number",S=typeof n=="string",b=Array.isArray(n);if(y?h="number":S?h="string":b&&(h="array"),!h)return!1;b&&(g=n.length),S&&(g=n.replace(p,"_").length),c?g!==t.len&&i.push(no(s.messages[h].len,t.fullField,t.len)):d&&!f&&g<t.min?i.push(no(s.messages[h].min,t.fullField,t.min)):f&&!d&&g>t.max?i.push(no(s.messages[h].max,t.fullField,t.max)):d&&f&&(g<t.min||g>t.max)&&i.push(no(s.messages[h].range,t.fullField,t.min,t.max))},VT=function(t,n,r,i,s,c){t.required&&(!r.hasOwnProperty(t.field)||nr(n,c||t.type))&&i.push(no(s.messages.required,t.fullField))},Lf;const Gj=(function(){if(Lf)return Lf;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}",i=["(?:".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(i.join("|"),")").concat(s),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),f=new RegExp("^".concat(n,"$")),p=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?p:new RegExp("".concat(t(T)).concat(c).concat(t(T)),"g")};var h="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",S=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]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",M="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',R="(?:".concat(h,"|www\\.)").concat(y,"(?:localhost|").concat(S,"|").concat(b,"|").concat($).concat(C).concat(w,")").concat(M).concat(x);return Lf=new RegExp("(?:^".concat(R,"$)"),"i"),Lf});var jE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Uc={integer:function(t){return Uc.number(t)&&parseInt(t,10)===t},float:function(t){return Uc.number(t)&&!Uc.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"&&!Uc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Gj())},hex:function(t){return typeof t=="string"&&!!t.match(jE.hex)}},Xj=function(t,n,r,i,s){if(t.required&&n===void 0){VT(t,n,r,i,s);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],d=t.type;c.indexOf(d)>-1?Uc[d](n)||i.push(no(s.messages.types[d],t.fullField,t.type)):d&&Xn(n)!==t.type&&i.push(no(s.messages.types[d],t.fullField,t.type))},Kj=function(t,n,r,i,s){(/^\s+$/.test(n)||n==="")&&i.push(no(s.messages.whitespace,t.fullField))};const Kt={required:VT,whitespace:Kj,type:Xj,range:Uj,enum:qj,pattern:Yj};var Qj=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s)}r(c)},Zj=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();Kt.required(t,n,i,c,s,"array"),n!=null&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},Jj=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},e_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n,"date")&&!t.required)return r();if(Kt.required(t,n,i,c,s),!nr(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Kt.type(t,f,i,c,s),f&&Kt.range(t,f.getTime(),i,c,s)}}r(c)},t_="enum",n_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt[t_](t,n,i,c,s)}r(c)},r_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},o_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},a_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},i_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},l_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},s_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s),nr(n,"string")||Kt.pattern(t,n,i,c,s)}r(c)},c_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),nr(n)||Kt.type(t,n,i,c,s)}r(c)},u_=function(t,n,r,i,s){var c=[],d=Array.isArray(n)?"array":Xn(n);Kt.required(t,n,i,c,s,d),r(c)},d_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(nr(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s,"string"),nr(n,"string")||(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s),Kt.pattern(t,n,i,c,s),t.whitespace===!0&&Kt.whitespace(t,n,i,c,s))}r(c)},wy=function(t,n,r,i,s){var c=t.type,d=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(nr(n,c)&&!t.required)return r();Kt.required(t,n,i,d,s,c),nr(n,c)||Kt.type(t,n,i,d,s)}r(d)};const ou={string:d_,method:a_,number:i_,boolean:Jj,regexp:c_,integer:o_,float:r_,array:Zj,object:l_,enum:n_,pattern:s_,date:e_,url:wy,hex:wy,email:wy,required:u_,any:Qj};var pd=(function(){function e(t){rl(this,e),lr(this,"rules",null),lr(this,"_messages",av),this.define(t)}return ol(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(i){var s=n[i];r.rules[i]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=DE(ov(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,d=i,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 p(b){var $=[],C={};function w(x){if(Array.isArray(x)){var R;$=(R=$).concat.apply(R,xn(x))}else $.push(x)}for(var M=0;M<b.length;M++)w(b[M]);$.length?(C=lv($),f($,C)):f(null,c)}if(d.messages){var g=this.messages();g===av&&(g=ov()),DE(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(w){var M=w;typeof M.transform=="function"&&(c===n&&(c=Dn({},c)),C=c[b]=M.transform(C),C!=null&&(M.type=M.type||(Array.isArray(C)?"array":Xn(C)))),typeof M=="function"?M={validator:M}:M=Dn({},M),M.validator=r.getValidationMethod(M),M.validator&&(M.field=b,M.fullField=M.fullField||b,M.type=r.getType(M),h[b]=h[b]||[],h[b].push({rule:M,value:C,source:c,field:b}))})});var S={};return Fj(h,d,function(b,$){var C=b.rule,w=(C.type==="object"||C.type==="array")&&(Xn(C.fields)==="object"||Xn(C.defaultField)==="object");w=w&&(C.required||!C.required&&b.value),C.field=b.field;function M(O,z){return Dn(Dn({},z),{},{fullField:"".concat(C.fullField,".").concat(O),fullFields:C.fullFields?[].concat(xn(C.fullFields),[O]):[O]})}function x(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=Array.isArray(O)?O:[O];!d.suppressWarning&&z.length&&e.warning("async-validator:",z),z.length&&C.message!==void 0&&(z=[].concat(C.message));var j=z.map(AE(C,c));if(d.first&&j.length)return S[C.field]=1,$(j);if(!w)$(j);else{if(C.required&&!b.value)return C.message!==void 0?j=[].concat(C.message).map(AE(C,c)):d.error&&(j=[d.error(C,no(d.messages.required,C.field))]),$(j);var W={};C.defaultField&&Object.keys(b.value).map(function(U){W[U]=C.defaultField}),W=Dn(Dn({},W),b.rule.fields);var F={};Object.keys(W).forEach(function(U){var L=W[U],B=Array.isArray(L)?L:[L];F[U]=B.map(M.bind(null,U))});var Y=new e(F);Y.messages(d.messages),b.rule.options&&(b.rule.options.messages=d.messages,b.rule.options.error=d.error),Y.validate(b.value,b.rule.options||d,function(U){var L=[];j&&j.length&&L.push.apply(L,xn(j)),U&&U.length&&L.push.apply(L,xn(U)),$(L.length?L:null)})}}var R;if(C.asyncValidator)R=C.asyncValidator(C,b.value,x,b.source,d);else if(C.validator){try{R=C.validator(C,b.value,x,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),x(O.message)}R===!0?x():R===!1?x(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):R instanceof Array?x(R):R instanceof Error&&x(R.message)}R&&R.then&&R.then(function(){return x()},function(O){return x(O)})},function(b){p(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&&!ou.hasOwnProperty(n.type))throw new Error(no("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),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?ou.required:ou[this.getType(n)]||void 0}}]),e})();lr(pd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ou[t]=n});lr(pd,"warning",Hj);lr(pd,"messages",av);lr(pd,"validators",ou);const eo="'${name}' is not a valid ${type}",FT={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:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},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}"}},_E=pd;function f_(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 HE="CODE_LOGIC_ERROR";async function sv(e,t,n,r,i){const s={...n};if(delete s.ruleIndex,_E.warning=()=>{},s.validator){const y=s.validator;s.validator=(...S)=>{try{return y(...S)}catch(b){return console.error(b),Promise.reject(HE)}}}let c=null;s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField);const d=new _E({[e]:[s]}),f=is(FT,r.validateMessages);d.messages(f);let p=[];try{await Promise.resolve(d.validate({[e]:t},{...r}))}catch(y){y.errors&&(p=y.errors.map(({message:S},b)=>{const $=S===HE?f.default:S;return l.isValidElement($)?l.cloneElement($,{key:`error_${b}`}):$}))}if(!p.length&&c&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((S,b)=>sv(`${e}.${b}`,S,c,r,i)))).reduce((S,b)=>[...S,...b],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...i};return p.map(y=>typeof y=="string"?f_(y,g):y)}function m_(e,t,n,r,i,s){const c=e.join("."),d=n.map((p,g)=>{const h=p.validator,y={...p,ruleIndex:g};return h&&(y.validator=(S,b,$)=>{let C=!1;const M=h(S,b,(...x)=>{Promise.resolve().then(()=>{er(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||$(...x)})});C=M&&typeof M.then=="function"&&typeof M.catch=="function",er(C,"`callback` is deprecated. Please return a promise instead."),C&&M.then(()=>{$()}).catch(x=>{$(x||" ")})}),y}).sort(({warningOnly:p,ruleIndex:g},{warningOnly:h,ruleIndex:y})=>!!p==!!h?g-y:p?1:-1);let f;if(i===!0)f=new Promise(async(p,g)=>{for(let h=0;h<d.length;h+=1){const y=d[h],S=await sv(c,t,y,r,s);if(S.length){g([{errors:S,rule:y}]);return}}p([])});else{const p=d.map(g=>sv(c,t,g,r,s).then(h=>({errors:h,rule:g})));f=(i?g_(p):p_(p)).then(g=>Promise.reject(g))}return f.catch(p=>p),f}async function p_(e){return Promise.all(e).then(t=>[].concat(...t))}async function g_(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),t+=1,t===e.length&&n([])})})})}function Ln(e){return rv(e)}function BE(e,t){let n={};return t.forEach(r=>{const i=Po(e,r);n=yo(n,r,i)}),n}function hs(e,t,n=!1){return e&&e.some(r=>cv(t,r,n))}function cv(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function h_(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 y_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function LE(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const i=e[t],s=t-n;return s>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}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 Pi=[],zc=[];function Ey(e,t,n,r,i,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==i}class b_ extends l.Component{static contextType=ws;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Pi;warnings=zc;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:i}=r(ki);this.cancelRegisterFunc=i(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,Ln(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};pu(this.metaCache,r)||n(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,n,r)=>{const{shouldUpdate:i,dependencies:s=[],onReset:c}=this.props,{store:d}=r,f=this.getNamePath(),p=this.getValue(t),g=this.getValue(d),h=n&&hs(n,f);switch(r.type==="valueUpdate"&&r.source==="external"&&!pu(p,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Pi,this.warnings=zc,this.triggerMetaEvent()),r.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Pi,this.warnings=zc,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(i&&Ey(i,t,d,p,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||Pi),"warnings"in y&&(this.warnings=y.warnings||zc),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&hs(n,f,!0)){this.reRender();return}if(i&&!f.length&&Ey(i,t,d,p,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(Ln).some(S=>hs(r.relatedFields,S))){this.reRender();return}break}default:if(h||(!s.length||f.length||i)&&Ey(i,t,d,p,g,r)){this.reRender();return}break}i===!0&&this.reRender()};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:s=!1}=t||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:d=!1,messageVariables:f,validateDebounce:p}=this.props;let g=this.getRules();if(i&&(g=g.filter(y=>y).filter(y=>{const{validateTrigger:S}=y;return S?rv(S).includes(i):!0})),p&&i&&(await new Promise(y=>{setTimeout(y,p)}),this.validatePromise!==c))return[];const h=m_(n,r,g,t,d,f);return h.catch(y=>y).then((y=Pi)=>{if(this.validatePromise===c){this.validatePromise=null;const S=[],b=[];y.forEach?.(({rule:{warningOnly:$},errors:C=Pi})=>{$?b.push(...C):S.push(...C)}),this.errors=S,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),h});return s||(this.validatePromise=c,this.dirty=!0,this.errors=Pi,this.warnings=zc,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=cr(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 Po(t||n(!0),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:i,getValueFromEvent:s,normalize:c,valuePropName:d="value",getValueProps:f,fieldContext:p}=this.props,g=i!==void 0?i:p.validateTrigger,h=this.getNamePath(),{getInternalHooks:y,getFieldsValue:S}=p,{dispatch:b}=y(ki),$=this.getValue(),C=f||(T=>({[d]:T})),w=t[r],M=n!==void 0?C($):{},x={...t,...M};return x[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;s?N=s(...T):N=y_(d,...T),c&&(N=c(N,$,S(!0))),N!==$&&b({type:"updateValue",namePath:h,value:N}),w&&w(...T)},rv(g||[]).forEach(T=>{const N=x[T];x[T]=(...O)=>{N&&N(...O);const{rules:z}=this.props;z&&z.length&&b({type:"validateField",namePath:h,triggerName:T})}}),x};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:i}=this.getOnlyChild(n);let s;return i?s=r:l.isValidElement(r)?s=l.cloneElement(r,this.getControlled(r.props)):(er(!r,"`children` of Field is not validate ReactElement."),s=r),l.createElement(l.Fragment,{key:t},s)}}function kT({name:e,...t}){const n=l.useContext(ws),r=l.useContext(Wm),i=e!==void 0?Ln(e):void 0,s=t.isListField??!!r;let c="keep";return s||(c=`_${(i||[]).join("_")}`),l.createElement(b_,uv({key:c,name:i,isListField:s},t,{fieldContext:n}))}function v_({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:s}){const c=l.useContext(ws),d=l.useContext(Wm),p=l.useRef({keys:[],id:0}).current,g=l.useMemo(()=>[...Ln(c.prefixName)||[],...Ln(e)],[c.prefixName,e]),h=l.useMemo(()=>({...c,prefixName:g}),[c,g]),y=l.useMemo(()=>({getKey:b=>{const $=g.length,C=b[$];return[p.keys[C],b.slice($+1)]}}),[p,g]);if(typeof n!="function")return er(!1,"Form.List only accepts function as children."),null;const S=(b,$,{source:C})=>C==="internal"?!1:b!==$;return l.createElement(Wm.Provider,{value:y},l.createElement(ws.Provider,{value:h},l.createElement(kT,{name:[],shouldUpdate:S,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:s??!!d},({value:b=[],onChange:$},C)=>{const{getFieldValue:w}=c,M=()=>w(g||[])||[],x={add:(T,N)=>{const O=M();N>=0&&N<=O.length?(p.keys=[...p.keys.slice(0,N),p.id,...p.keys.slice(N)],$([...O.slice(0,N),T,...O.slice(N)])):(p.keys=[...p.keys,p.id],$([...O,T])),p.id+=1},remove:T=>{const N=M(),O=new Set(Array.isArray(T)?T:[T]);O.size<=0||(p.keys=p.keys.filter((z,j)=>!O.has(j)),$(N.filter((z,j)=>!O.has(j))))},move(T,N){if(T===N)return;const O=M();T<0||T>=O.length||N<0||N>=O.length||(p.keys=LE(p.keys,T,N),$(LE(O,T,N)))}};let R=b||[];return Array.isArray(R)||(R=[]),n(R.map((T,N)=>{let O=p.keys[N];return O===void 0&&(p.keys[N]=p.id,O=p.keys[N],p.id+=1),{name:N,key:O,isListField:!0}}),x,C)})))}function S_(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,s)=>{e.forEach((c,d)=>{c.catch(f=>(t=!0,f)).then(f=>{n-=1,r[d]=f,!(n>0)&&(t&&s(r),i(r))})})}):Promise.resolve([])}const WT="__@field_split__";function My(e){return e.map(t=>`${typeof t}:${t}`).join(WT)}class Xl{kvs=new Map;set(t,n){this.kvs.set(My(t),n)}get(t){return this.kvs.get(My(t))}update(t,n){const r=this.get(t),i=n(r);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(My(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const i=n.split(WT);return t({key:i.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}}class C_{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;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,setBatchUpdate:this.setBatchUpdate}):(er(!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=is(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=yo(r,i,Po(t,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new Xl;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=Po(this.initialValues,t);return t.length?is(n):n};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};watchList=[];registerWatch=t=>(this.watchList.push(t),()=>{this.watchList=this.watchList.filter(n=>n!==t)});notifyWatch=(t=[])=>{if(this.watchList.length){const n=this.getFieldsValue(),r=this.getFieldsValue(!0);this.watchList.forEach(i=>{i(n,r,t)})}};notifyWatchNamePathList=[];batchNotifyWatch=t=>{this.notifyWatchNamePathList.push(t),this.batch("notifyWatch",()=>{this.notifyWatch(this.notifyWatchNamePathList),this.notifyWatchNamePathList=[]})};batchUpdate;setBatchUpdate=t=>{this.batchUpdate=t};batch=(t,n)=>{this.batchUpdate(t,n)};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 Xl;return this.getFieldEntities(t).forEach(r=>{const i=r.getNamePath();n.set(i,r)}),n};getFieldEntitiesForNamePathList=t=>{if(!t)return this.getFieldEntities(!0);const n=this.getFieldsMap(!0);return t.map(r=>{const i=Ln(r);return n.get(i)||{INVALIDATE_NAME_PATH:Ln(r)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,i;if(t===!0||Array.isArray(t)?(r=t,i=n):t&&typeof t=="object"&&(i=t.filter),r===!0&&!i)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[],d=[];s.forEach(p=>{const g=p.INVALIDATE_NAME_PATH||p.getNamePath();if(p.isList?.()){d.push(g);return}if(!i)c.push(g);else{const h="getMeta"in p?p.getMeta():null;i(h)&&c.push(g)}});let f=BE(this.store,c.map(Ln));return d.forEach(p=>{Po(f,p)||(f=yo(f,p,[]))}),f};getFieldValue=t=>{this.warningUnhooked();const n=Ln(t);return Po(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:Ln(t[i]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=Ln(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=Ln(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let i,s=!1;t.length===0?i=null:t.length===1?Array.isArray(n)?(i=n.map(Ln),s=!1):(i=null,s=n):(i=n.map(Ln),s=r);const c=this.getFieldEntities(!0),d=h=>h.isFieldTouched();if(!i)return s?c.every(h=>d(h)||h.isList()):c.some(d);const f=new Xl;i.forEach(h=>{f.set(h,[])}),c.forEach(h=>{const y=h.getNamePath();i.forEach(S=>{S.every((b,$)=>y[$]===b)&&f.update(S,b=>[...b,h])})});const p=h=>h.some(d),g=f.map(({value:h})=>h);return s?g.every(p):g.some(p)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(i=>i.isFieldValidating());const r=t.map(Ln);return n.some(i=>{const s=i.getNamePath();return hs(r,s)&&i.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Xl,r=this.getFieldEntities(!0);r.forEach(c=>{const{initialValue:d}=c.props,f=c.getNamePath();if(d!==void 0){const p=n.get(f)||new Set;p.add({entity:c,value:d}),n.set(f,p)}});const i=c=>{c.forEach(d=>{const{initialValue:f}=d.props;if(f!==void 0){const p=d.getNamePath();if(this.getInitialValue(p)!==void 0)er(!1,`Form already set 'initialValues' with path '${p.join(".")}'. Field can not overwrite it.`);else{const h=n.get(p);if(h&&h.size>1)er(!1,`Multiple Field with path '${p.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(h){const y=this.getFieldValue(p);!d.isListField()&&(!t.skipExist||y===void 0)&&this.updateStore(yo(this.store,p,[...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,i(s)};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(is(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(Ln);r.forEach(i=>{const s=this.getInitialValue(i);this.updateStore(yo(this.store,i,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(i=>{const{name:s,...c}=i,d=Ln(s);r.push(d),"value"in c&&this.updateStore(yo(this.store,d,c.value)),this.notifyObservers(n,[d],{type:"setField",data:i})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),c={...r.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(c,"originRCField",{value:!0}),c});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Po(this.store,r)===void 0&&this.updateStore(yo(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.batchNotifyWatch(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,i,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==t),!this.isMergedPreserve(i)&&(!r||s.length>1)){const c=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==c&&this.fieldEntities.every(d=>!cv(d.getNamePath(),n))){const d=this.store;this.updateStore(yo(d,n,c,!0)),this.notifyObservers(d,[n],{type:"remove"}),this.triggerDependenciesUpdate(d,n)}}this.batchNotifyWatch(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 i={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,i)})}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=Ln(t),i=this.store;this.updateStore(yo(this.store,r,n)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(i,r),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(r),f=BE(this.store,[r]),p=this.getFieldsValue(),g=J4([p,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=is(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=[],i=new Xl;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(f=>{const p=Ln(f);i.update(p,(g=new Set)=>(g.add(c),g))})});const s=c=>{(i.get(c)||new Set).forEach(f=>{if(!n.has(f)){n.add(f);const p=f.getNamePath();f.isFieldDirty()&&p.length&&(r.push(p),s(p))}})};return s(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(n){const c=new Xl;n.forEach(({name:d,errors:f})=>{c.set(d,f)}),i.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const s=i.filter(({name:c})=>hs(t,c));s.length&&r(s,i)}};validateFields=(t,n)=>{this.warningUnhooked();let r,i;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,i=n):i=t;const s=!!r,c=s?r.map(Ln):[],d=[...c],f=[],p=String(Date.now()),g=new Set,{recursive:h,dirty:y}=i||{};this.getFieldEntities(!0).forEach(C=>{const w=C.getNamePath();if(s||((!C.isList()||!c.some(M=>cv(M,w,!0)))&&d.push(w),c.push(w)),!(!C.props.rules||!C.props.rules.length)&&!(y&&!C.isFieldDirty())&&(g.add(w.join(p)),!s||hs(c,w,h))){const M=C.validateRules({validateMessages:{...FT,...this.validateMessages},...i});f.push(M.then(()=>({name:w,errors:[],warnings:[]})).catch(x=>{const R=[],T=[];return x.forEach?.(({rule:{warningOnly:N},errors:O})=>{N?T.push(...O):R.push(...O)}),R.length?Promise.reject({name:w,errors:R,warnings:T}):{name:w,errors:R,warnings:T}}))}});const S=S_(f);this.lastValidatePromise=S,S.catch(C=>C).then(C=>{const w=C.map(({name:M})=>M);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,C)});const b=S.then(()=>this.lastValidatePromise===S?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(C=>{const w=C.filter(x=>x&&x.errors.length),M=w[0]?.errors?.[0];return Promise.reject({message:M,values:this.getFieldsValue(c),errorFields:w,outOfDate:this.lastValidatePromise!==S})});b.catch(C=>C);const $=c.filter(C=>g.has(C.join(p)));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 qT(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},i=new C_(r);t.current=i.getForm()}return[t.current]}const dv=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),$_=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const i=l.useContext(dv),s=l.useRef({});return l.createElement(dv.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(c,d)=>{t&&t(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{n&&n(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(s.current={...s.current,[c]:d}),i.registerForm(c,d)},unregisterForm:c=>{const d={...s.current};delete d[c],s.current=d,i.unregisterForm(c)}}},r)},x_=l.forwardRef((e,t)=>{const[n,r]=l.useState({});return l.useLayoutEffect(()=>{const i=Object.keys(n);i.length&&(i.forEach(s=>{n[s]?.()}),r({}))},[n]),l.useImperativeHandle(t,()=>({batch:(i,s)=>{r(c=>({...c,[i]:s}))}})),null});function fv(){return fv=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},fv.apply(this,arguments)}const w_=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:s,component:c="form",validateMessages:d,validateTrigger:f="onChange",onValuesChange:p,onFieldsChange:g,onFinish:h,onFinishFailed:y,clearOnDestroy:S,...b},$)=>{const C=l.useRef(null),w=l.useContext(dv),[M]=qT(r),{useSubscribe:x,setInitialValues:R,setCallbacks:T,setValidateMessages:N,setPreserve:O,destroyForm:z,setBatchUpdate:j}=M.getInternalHooks(ki);l.useImperativeHandle($,()=>({...M,nativeElement:C.current})),l.useEffect(()=>(w.registerForm(e,M),()=>{w.unregisterForm(e)}),[w,M,e]),N({...w.validateMessages,...d}),T({onValuesChange:p,onFieldsChange:(P,...D)=>{w.triggerFormChange(e,P),g&&g(P,...D)},onFinish:P=>{w.triggerFormFinish(e,P),h&&h(P)},onFinishFailed:y}),O(i);const W=l.useRef(null);R(t,!W.current),W.current||(W.current=!0);const F=l.useRef(null),Y=l.useRef([]),U=()=>{F.current&&(Y.current.forEach(([P,D])=>{F.current.batch(P,D)}),Y.current=[])},L=l.useCallback(P=>{F.current=P,U()},[]);j((P,D)=>{Y.current.push([P,D]),U()}),l.useEffect(()=>()=>z(S),[]);let _;const H=typeof s=="function";if(H){const P=M.getFieldsValue(!0);_=s(P,M)}else _=s;x(!H);const I=l.useRef(null);l.useEffect(()=>{h_(I.current||[],n||[])||M.setFields(n||[]),I.current=n},[n,M]);const A=l.useMemo(()=>({...M,validateTrigger:f}),[M,f]),V=l.createElement(Wm.Provider,{value:null},l.createElement(ws.Provider,{value:A},_),l.createElement(x_,{ref:L}));return c===!1?V:l.createElement(c,fv({},b,{ref:C,onSubmit:P=>{P.preventDefault(),P.stopPropagation(),M.submit()},onReset:P=>{P.preventDefault(),M.resetFields(),b.onReset?.(P)}}),V)};function Ry(e){try{return JSON.stringify(e)}catch{return Math.random()}}function E_(...e){const[t,n={}]=e,r=Aj(n)?{form:n}:n,i=r.form,[s,c]=l.useState(()=>typeof t=="function"?t({}):void 0),d=l.useMemo(()=>Ry(s),[s]),f=l.useRef(d);f.current=d;const p=l.useContext(ws),g=i||p,h=g&&g._init,{getFieldsValue:y,getInternalHooks:S}=g,{registerWatch:b}=S(ki),$=ut((w,M)=>{const x=r.preserve?M??y(!0):w??y(),R=typeof t=="function"?t(x):Po(x,Ln(t));Ry(s)!==Ry(R)&&c(R)}),C=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{h&&$()},[h,C]),l.useEffect(()=>h?b((M,x)=>{$(M,x)}):void 0,[h]),s}const M_=l.forwardRef(w_),gd=M_;gd.FormProvider=$_;gd.Field=kT;gd.List=v_;gd.useForm=qT;gd.useWatch=E_;const Rr=l.createContext({}),R_=({children:e,status:t,override:n})=>{const r=l.useContext(Rr),i=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(Rr.Provider,{value:i},e)},T_=l.createContext(void 0),$a=e=>{const{space:t,form:n,children:r}=e;if(!Er(r))return null;let i=r;return n&&(i=ae.createElement(R_,{override:!0,status:!0},i)),t&&(i=ae.createElement(iD,null,i)),i},O_=e=>{if(Vr()&&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 VE(e,t){return O_(e)}const N_=()=>Vr()&&window.document.documentElement,Op=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:s}=e,c=Q({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),d=Q({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),f=l.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return l.createElement("span",{className:Q(t,c,d,n),style:{...f,...r}})},I_=new At("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_S=e=>({height:e,lineHeight:te(e)}),li=e=>({width:e,..._S(e)}),P_=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:I_,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ty=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),..._S(e)}),z_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...li(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...li(i)},[`${t}${t}-sm`]:{...li(s)}}},A_=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:n,...Ty(t,d)},[`${r}-lg`]:{...Ty(i,d)},[`${r}-sm`]:{...Ty(s,d)}}},YT=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...li(i(r).mul(2).equal())}},D_=e=>({[e.skeletonNodeCls]:{...YT(e)}}),j_=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...YT(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...li(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%"}}},Oy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ny=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),..._S(e)}),__=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,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(),...Ny(r,d)},...Oy(e,r,n),[`${n}-lg`]:{...Ny(i,d)},...Oy(e,i,`${n}-lg`),[`${n}-sm`]:{...Ny(s,d)},...Oy(e,s,`${n}-sm`)}},H_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:s,skeletonInputCls:c,skeletonNodeCls:d,skeletonImageCls:f,controlHeight:p,controlHeightLG:g,controlHeightSM:h,gradientFromColor:y,padding:S,marginSM:b,borderRadius:$,titleHeight:C,blockRadius:w,paragraphLiHeight:M,controlHeightXS:x,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:S,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...li(p)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...li(g)},[`${n}-sm`]:{...li(h)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:y,borderRadius:w,[`+ ${i}`]:{marginBlockStart:h}},[i]:{padding:0,"> li":{width:"100%",height:M,listStyle:"none",background:y,borderRadius:w,"+ li":{marginBlockStart:x}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:$}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:b,[`+ ${i}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...__(e),...z_(e),...A_(e),...D_(e),...j_(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
167
- ${r},
168
- ${i} > li,
169
- ${n},
170
- ${s},
171
- ${c},
172
- ${d},
173
- ${f}
174
- `]:{...P_(e)}}}},B_=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},hd=Pt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ot(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 H_(r)},B_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),L_=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,style:c,styles:d,shape:f="circle",size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[S,b]=hd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,i,S,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Op,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:p,...g}))},V_=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:i,active:s,style:c,styles:d,block:f=!1,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[S,b]=hd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},i?.root,n,r,S,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Op,{prefixCls:`${y}-button`,className:i?.content,style:{...d?.content,...c},size:p,...g}))},UT=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:s,style:c,styles:d,active:f,children:p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("skeleton",t),[y,S]=hd(h),b=Q(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,i,S);return l.createElement("div",{className:b,style:d?.root},l.createElement("div",{className:Q(r?.content,s||`${h}-node`),style:{...d?.content,...c}},p))},F_="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",k_=e=>{const{getPrefixCls:t}=l.useContext(dt),n=t("skeleton",e.prefixCls);return l.createElement(UT,{...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:F_,className:`${n}-image-path`})))},W_=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,block:c,style:d,styles:f,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[S,b]=hd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,i,S,b);return l.createElement("div",{className:$,style:f?.root},l.createElement(Op,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:p,...g}))},q_=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Y_=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,s=Array.from({length:i}).map((c,d)=>l.createElement("li",{key:d,style:{width:q_(d,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},s)},U_=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:{width:n,...r}});function Iy(e){return e&&typeof e=="object"?e:{}}function G_(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function X_(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function K_(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const pi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:s,style:c,styles:d,children:f,avatar:p=!1,title:g=!0,paragraph:h=!0,active:y,round:S}=e,{getPrefixCls:b,direction:$,className:C,style:w,classNames:M,styles:x}=It("skeleton"),R=b("skeleton",t),[T,N]=hd(R),O={...e,avatar:p,title:g,paragraph:h},[z,j]=Lt([M,s],[x,d],{props:O});if(n||!("loading"in e)){const W=!!p,F=!!g,Y=!!h;let U;if(W){const _={className:z.avatar,prefixCls:`${R}-avatar`,...G_(F,Y),...Iy(p),style:j.avatar};U=l.createElement("div",{className:Q(z.header,`${R}-header`),style:j.header},l.createElement(Op,{..._}))}let L;if(F||Y){let _;if(F){const I={className:z.title,prefixCls:`${R}-title`,...X_(W,Y),...Iy(g),style:j.title};_=l.createElement(U_,{...I})}let H;if(Y){const I={className:z.paragraph,prefixCls:`${R}-paragraph`,...K_(W,F),...Iy(h),style:j.paragraph};H=l.createElement(Y_,{...I})}L=l.createElement("div",{className:Q(z.section,`${R}-section`),style:j.section},_,H)}const B=Q(R,{[`${R}-with-avatar`]:W,[`${R}-active`]:y,[`${R}-rtl`]:$==="rtl",[`${R}-round`]:S},z.root,C,r,i,T,N);return l.createElement("div",{className:B,style:{...j.root,...w,...c}},U,L)}return f??null};pi.Button=V_;pi.Avatar=L_;pi.Input=W_;pi.Image=k_;pi.Node=UT;function FE(){}const Q_=l.createContext({add:FE,remove:FE});function GT(e){const t=l.useContext(Q_),n=l.useRef(null);return ut(i=>{if(i){const s=e?i.querySelector(e):i;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const kE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(md);return ae.createElement(Bt,{onClick:n,...e},t)},WE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=l.useContext(md);return ae.createElement(Bt,{...zS(n),loading:e,onClick:i,...t},r)};function XT(e,t){return ae.createElement("span",{className:`${e}-close-x`},t||ae.createElement(Wr,{className:`${e}-close-icon`}))}const KT=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:p}=e,[g]=ro("Modal",eT()),h=t||g?.okText,y=r||g?.cancelText,S=ae.useMemo(()=>({confirmLoading:i,okButtonProps:d,cancelButtonProps:f,okTextLocale:h,cancelTextLocale:y,okType:n,onOk:s,onCancel:c}),[i,d,f,h,y,n,s,c]);let b;return typeof p=="function"||typeof p>"u"?(b=ae.createElement(ae.Fragment,null,ae.createElement(kE,null),ae.createElement(WE,null)),typeof p=="function"&&(b=p(b,{OkBtn:WE,CancelBtn:kE})),b=ae.createElement(HT,{value:S},b)):b=p,ae.createElement(yT,{disabled:!1},b)},Z_=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"}}}},J_=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},e9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,s={};for(let c=i;c>=0;c--)c===0?(s[`${r}${t}-${c}`]={display:"none"},s[`${r}-push-${c}`]={insetInlineStart:"auto"},s[`${r}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},s[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-offset-${c}`]={marginInlineStart:0},s[`${r}${t}-order-${c}`]={order:0}):(s[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/i*100}%`,maxWidth:`${c/i*100}%`}],s[`${r}${t}-push-${c}`]={insetInlineStart:`${c/i*100}%`},s[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/i*100}%`},s[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/i*100}%`},s[`${r}${t}-order-${c}`]={order:c});return s[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},s},mv=(e,t)=>e9(e,t),t9=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...mv(e,n)}}),n9=()=>({}),r9=()=>({}),o9=Pt("Grid",Z_,n9),QT=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),a9=Pt("Grid",e=>{const t=Ot(e,{gridColumns:24}),n=QT(t);return delete n.xs,[J_(t),mv(t,""),mv(t,"-xs"),Object.keys(n).map(r=>t9(t,n[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},r9);function qE(e){return{position:e,inset:0}}const i9=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`]:{...qE("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...qE("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:AT(e)}]},l9=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]:{...Zt(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-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},...Co(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"}}}]},s9=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},c9=e=>{const{componentCls:t}=e,n=QT(e),r={...n};delete r.xs;const i=`--${t.replace(".","")}-`,s=Object.keys(r).map(c=>({[`@media (min-width: ${te(r[c])})`]:{width:`var(${i}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(xn(Object.keys(n).map((c,d)=>{const f=Object.keys(n)[d-1];return f?{[`${i}${c}-width`]:`var(${i}${f}-width)`}:null})),[{width:`var(${i}xs-width)`}],xn(s))}}},ZT=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ot(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()})},JT=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}),eO=Pt("Modal",e=>{const t=ZT(e);return[l9(t),s9(t),i9(t),dd(t,"zoom"),c9(t)]},JT,{unitless:{titleLineHeight:!0}});let pv;const u9=e=>{pv={x:e.pageX,y:e.pageY},setTimeout(()=>{pv=null},100)};N_()&&document.documentElement.addEventListener("click",u9,!0);const tO=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:s,centered:c,getContainer:d,focusTriggerAfterClose:f=!0,style:p,width:g=520,footer:h,classNames:y,styles:S,children:b,loading:$,confirmLoading:C,zIndex:w,mousePosition:M,onOk:x,onCancel:R,okButtonProps:T,cancelButtonProps:N,destroyOnHidden:O,destroyOnClose:z,panelRef:j=null,closable:W,mask:F,modalRender:Y,...U}=e,{getPopupContainer:L,getPrefixCls:B,direction:_,className:H,style:I,classNames:A,styles:V,centered:P,cancelButtonProps:D,okButtonProps:q,mask:G}=It("modal"),{modal:K}=l.useContext(dt),[Z,J]=l.useMemo(()=>typeof W=="boolean"?[void 0,void 0]:[W?.afterClose,W?.onClose],[W]),ie=B("modal",t),ne=B(),[oe,ue]=nT(F,G,ie),le=Oe=>{C||(R?.(Oe),J?.())},fe=Oe=>{x?.(Oe),J?.()},ge=or(ie),[re,ce]=eO(ie,ge),he=Q(s,{[`${ie}-centered`]:c??P,[`${ie}-wrap-rtl`]:_==="rtl"}),pe=h!==null&&!$?l.createElement(KT,{...e,okButtonProps:{...q,...T},onOk:fe,cancelButtonProps:{...D,...N},onCancel:le}):null,[Ce,de,ye,Se]=TS(vs(e),vs(K),{closable:!0,closeIcon:l.createElement(Wr,{className:`${ie}-close-icon`}),closeIconRender:Oe=>XT(ie,Oe)}),Ee=Ce?{disabled:ye,closeIcon:de,afterClose:Z,...Se}:!1,Pe=Y?Oe=>l.createElement("div",{className:`${ie}-render`},Y(Oe)):void 0,Ae=`.${ie}-${Y?"render":"container"}`,Ye=GT(Ae),Ue=rr(j,Ye),[Xe,et]=mi("Modal",w),Te={...e,width:g,panelRef:j,focusTriggerAfterClose:f,mask:oe,zIndex:Xe},[_e,Le]=Lt([A,y,ue],[V,S],{props:Te}),[Qe,ze]=l.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ve=l.useMemo(()=>{const Oe={};return ze&&Object.keys(ze).forEach(Ze=>{const qe=ze[Ze];qe!==void 0&&(Oe[`--${ie}-${Ze}-width`]=typeof qe=="number"?`${qe}px`:qe)}),Oe},[ie,ze]);return l.createElement($a,{form:!0,space:!0},l.createElement(ad.Provider,{value:et},l.createElement(zj,{width:Qe,...U,zIndex:Xe,getContainer:d===void 0?L:d,prefixCls:ie,rootClassName:Q(re,r,ce,ge,_e.root),rootStyle:Le.root,footer:pe,visible:i,mousePosition:M??pv,onClose:le,closable:Ee,closeIcon:de,focusTriggerAfterClose:f,transitionName:Uo(ne,"zoom",e.transitionName),maskTransitionName:Uo(ne,"fade",e.maskTransitionName),mask:oe,className:Q(re,n,H),style:{...I,...p,...ve},classNames:{..._e,wrapper:Q(_e.wrapper,he)},styles:Le,panelRef:Ue,destroyOnHidden:O??z,modalRender:Pe},$?l.createElement(pi,{active:!0,title:!1,paragraph:{rows:4},className:`${ie}-body-skeleton`}):b)))},d9=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:s,lineHeight:c,modalTitleHeight:d,fontHeight:f,confirmBodyPadding:p}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...Ki()},[`&${t} ${t}-body`]:{padding:p},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(d).sub(i).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}}},f9=rd(["Modal","confirm"],e=>{const t=ZT(e);return d9(t)},JT,{order:-1e3}),nO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:p,...g}=e;let h=n;if(!n&&n!==null)switch(c){case"info":h=l.createElement(ES,null);break;case"success":h=l.createElement(Sp,null);break;case"error":h=l.createElement(Is,null);break;default:h=l.createElement(Ps,null)}const y=d??c==="confirm",S=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=ro("Modal"),$=p||b,C=r||(y?$?.okText:$?.justOkText),w=i||$?.cancelText,{closable:M}=g,{onClose:x}=M&&typeof M=="object"?M:{},R=l.useMemo(()=>({autoFocusButton:S,cancelTextLocale:w,okTextLocale:C,mergedOkCancel:y,onClose:x,...g}),[S,w,C,y,x,g]),T=l.createElement(l.Fragment,null,l.createElement(TE,null),l.createElement(OE,null)),N=e.title!==void 0&&e.title!==null,O=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:Q(O,{[`${O}-has-title`]:N})},h,l.createElement("div",{className:`${s}-paragraph`},N&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(HT,{value:R},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(T,{OkBtn:OE,CancelBtn:TE}):T)):f,l.createElement(f9,{prefixCls:t}))},m9=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:p=!1,onConfirm:g,styles:h,title:y,okButtonProps:S,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:C}=It("modal"),w=`${s}-confirm`,M=e.width||416,x=e.style||{},R=e.maskClosable===void 0?!1:e.maskClosable,T=Q(w,`${w}-${e.type}`,{[`${w}-rtl`]:i==="rtl"},e.className),[,N]=kr(),O=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+oT,[n,N]);return l.createElement(tO,{...e,className:T,wrapClassName:Q({[`${w}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Uo(d||"","zoom",e.transitionName),maskTransitionName:Uo(d||"","fade",e.maskTransitionName),maskClosable:R,style:x,styles:{body:f,mask:r,...h},width:M,zIndex:O,closable:p},l.createElement(nO,{...e,confirmPrefixCls:w,okButtonProps:{...C,...S},cancelButtonProps:{...$,...b}}))},rO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return l.createElement(Xo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},l.createElement(m9,{...e}))},Wi=[];let oO="";function aO(){return oO}const p9=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,i=eT(),s=l.useContext(dt),c=aO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ae.createElement(rO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:f})};function yd(e){const t=CT(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},i;function s(...p){p.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let h=0;h<Wi.length;h++)if(Wi[h]===d){Wi.splice(h,1);break}RT(n).then(()=>{})}const c=p=>{clearTimeout(i),i=setTimeout(()=>{const g=t.getPrefixCls(void 0,aO()),h=t.getIconPrefixCls(),y=t.getTheme(),S=ae.createElement(p9,{...p});PS(ae.createElement(Xo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(S):S),n)})};function d(...p){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}},c(r)}function f(p){typeof p=="function"?r=p(r):r={...r,...p},c(r)}return c(r),Wi.push(d),{destroy:d,update:f}}function iO(e){return{...e,type:"warning"}}function lO(e){return{...e,type:"info"}}function sO(e){return{...e,type:"success"}}function cO(e){return{...e,type:"error"}}function uO(e){return{...e,type:"confirm"}}function g9({rootPrefixCls:e}){oO=e}const h9=({afterClose:e,config:t,...n},r)=>{const[i,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:p}=l.useContext(dt),g=p("modal"),h=p(),y=()=>{e(),c.afterClose?.()},S=(...C)=>{s(!1),C.some(M=>M?.triggerCancel)&&c.onCancel?.(()=>{},...C.slice(1))};l.useImperativeHandle(r,()=>({destroy:S,update:C=>{d(w=>{const M=typeof C=="function"?C(w):C;return{...w,...M}})}}));const b=c.okCancel??c.type==="confirm",[$]=ro("Modal",Ca.Modal);return l.createElement(rO,{prefixCls:g,rootPrefixCls:h,...c,close:S,open:i,afterClose:y,okText:c.okText||(b?$?.okText:$?.justOkText),direction:c.direction||f,cancelText:c.cancelText||$?.cancelText,...n})},y9=l.forwardRef(h9);let YE=0;const b9=l.memo(l.forwardRef((e,t)=>{const[n,r]=B5();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function v9(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(xn(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){YE+=1;const f=l.createRef();let p;const g=new Promise($=>{p=$});let h=!1,y;const S=l.createElement(y9,{key:`modal-${YE}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:$=>{p($)}});return y=e.current?.patchElement(S),y&&Wi.push(y),{destroy:()=>{function $(){f.current?.destroy()}f.current?$():n(C=>[].concat(xn(C),[$]))},update:$=>{function C(){f.current?.update($)}f.current?C():n(w=>[].concat(xn(w),[C]))},then:$=>(h=!0,g.then($))}},[]);return[l.useMemo(()=>({info:r(lO),success:r(sO),error:r(cO),warning:r(iO),confirm:r(uO)}),[r]),l.createElement(b9,{key:"modal-holder",ref:e})]}const S9=ae.createContext({});function dO(e){return t=>l.createElement(Xo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const Np=(e,t,n,r,i)=>dO(c=>{const{prefixCls:d,style:f}=c,p=l.useRef(null),[g,h]=l.useState(0),[y,S]=l.useState(0),[b,$]=Yt(!1,c.open),{getPrefixCls:C}=l.useContext(dt),w=C(r||"select",d);l.useEffect(()=>{if($(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),S(O.offsetWidth)}),T=setInterval(()=>{const N=i?`.${i(w)}`:`.${w}-dropdown`,O=p.current?.querySelector(N);O&&(clearInterval(T),R.observe(O))},10);return()=>{clearInterval(T),R.disconnect()}}},[w]);let M={...c,style:{...f,margin:0},open:b,getPopupContainer:()=>p.current};t&&Object.assign(M,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:p,style:x},l.createElement(e,{...M}))}),C9=(e,t,n,r,i=!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=!i&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,i,t.length,s,c])},fO=l.createContext(null);function al(){return l.useContext(fO)}function $9(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function mO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function x9(e,t,n,r){const i=ut(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&&!mO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}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 w9=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"}}},E9=(e,t)=>{const{prefixCls:n,disabled:r,visible:i,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:p,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:S,popupMatchSelectWidth:b,popupRender:$,popupAlign:C,getPopupContainer:w,empty:M,onPopupVisibleChange:x,onPopupMouseEnter:R,onPopupMouseDown:T,onPopupBlur:N,...O}=e,z=`${n}-dropdown`;let j=c;$&&(j=$(c));const W=l.useMemo(()=>S||w9(b),[S,b]),F=d?`${z}-${d}`:f,Y=typeof b=="number",U=l.useMemo(()=>Y?null:b===!1?"minWidth":"width",[b,Y]);let L=p;Y&&(L={...p,width:b});const B=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>B.current?.popupElement})),l.createElement(sd,gv({},O,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:W,prefixCls:z,popupMotion:{motionName:F},popup:l.createElement("div",{onMouseEnter:R,onMouseDown:T,onBlur:N},j),ref:B,stretch:U,popupAlign:C,popupVisible:i,getPopupContainer:w,popupClassName:Q(g,{[`${z}-empty`]:M}),popupStyle:L,onPopupVisibleChange:x}),s)},M9=l.forwardRef(E9);function UE(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 hv(e){return typeof e<"u"&&!Number.isNaN(e)}function pO(e,t){const{label:n,value:r,options:i,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:i||"options",groupLabel:s||c}}function R9(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:s,options:c,groupLabel:d}=pO(t,!1);function f(p,g){Array.isArray(p)&&p.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:UE(h,r.length),groupOption:g,data:h,label:h[i],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:UE(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function yv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return er(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const T9=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const i=(c,[d,...f])=>{if(!d)return[c];const p=c.split(d);return r=r||p.length>1,p.reduce((g,h)=>[...g,...i(h,f)],[]).filter(Boolean)},s=i(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function O9(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:i,value:s})=>["number","string"].includes(typeof i)?i:s).join(", ")}`,n.length>r?", ...":null)}const N9=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},HS=(e,t=1)=>{if(t<=0){e();return}N9(()=>{HS(e,t-1)})};function I9(e,t,n,r){const[i,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),p=r(i?c:!1),g=l.useRef(0),h=ut(S=>{n&&p!==S&&n(S),d(S)}),y=ut((S,b={})=>{const{cancelFun:$}=b;g.current+=1;const C=g.current,w=typeof S=="boolean"?S:!p;function M(){C===g.current&&!$?.()&&h(w)}w?M():HS(()=>{M()})});return[p,y]}function Py(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const gO=l.createContext(null);function bd(){return l.useContext(gO)}const hO=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:i,style:s,syncWidth:c,value:d,className:f,autoComplete:p,...g}=e,{prefixCls:h,mode:y,onSearch:S,onSearchSubmit:b,onInputBlur:$,autoFocus:C,tokenWithEnter:w,placeholder:M,components:{input:x="input"}}=bd(),{id:R,classNames:T,styles:N,open:O,activeDescendantId:z,role:j,disabled:W}=al()||{},F=Q(`${h}-input`,T?.input,f),Y=l.useRef(!1),U=l.useRef(null),L=l.useRef(null);l.useImperativeHandle(t,()=>L.current);const B=K=>{let{value:Z}=K.target;if(w&&U.current&&/[\r\n]/.test(U.current)){const J=U.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Z=Z.replace(J,U.current)}U.current=null,S&&S(Z,!0,Y.current),n?.(K)},_=K=>{const{key:Z}=K,{value:J}=K.currentTarget;Z==="Enter"&&y==="tags"&&!Y.current&&b&&b(J),r?.(K)},H=K=>{$?.(),i?.(K)},I=()=>{Y.current=!0},A=K=>{if(Y.current=!1,y!=="combobox"){const{value:Z}=K.currentTarget;S?.(Z,!0,!1)}},V=K=>{const{clipboardData:Z}=K,J=Z?.getData("text");U.current=J||""},[P,D]=l.useState(void 0);Nt(()=>{const K=L.current;if(c&&K){K.style.width="0px";const Z=K.scrollWidth;D(Z),K.style.width=""}},[c,d]);const q={id:R,type:y==="combobox"?"text":"search",...g,ref:L,style:{...N?.input,...s,"--select-input-width":P},autoFocus:C,autoComplete:p||"off",className:F,disabled:W,value:d||"",onChange:B,onKeyDown:_,onBlur:H,onPaste:V,onCompositionStart:I,onCompositionEnd:A,role:j||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${R}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${R}_list`:void 0,"aria-activedescendant":O?z:void 0};if(l.isValidElement(x)){const K=x.props||{},Z={placeholder:e.placeholder||M,...q,...K};return Object.keys(K).forEach(J=>{const ie=K[J];typeof ie=="function"&&(Z[J]=(...ne)=>{ie(...ne),q[J]?.(...ne)})}),Z.ref=rr(x.ref,q.ref),l.cloneElement(x,Z)}const G=x;return l.createElement(G,q)});function yO(e){const{prefixCls:t,placeholder:n,displayValues:r}=bd(),{classNames:i,styles:s}=al(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:Q(`${t}-placeholder`,i?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const BS=l.createContext(null);function bO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function P9(e){return e!=null}function z9(e){return!e&&e!==0}function GE(e){return["string","number"].includes(typeof e)}function bv(e){let t;return e&&(GE(e.title)?t=e.title.toString():GE(e.label)&&(t=e.label.toString())),t}function vv(){return vv=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},vv.apply(this,arguments)}const A9=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:s,maxLength:c,mode:d}=bd(),{triggerOpen:f,title:p,showSearch:g,classNames:h,styles:y}=al(),S=l.useContext(BS),[b,$]=l.useState(!1),C=d==="combobox",w=s[0],M=l.useMemo(()=>C&&i&&!b&&f?i:g?r:"",[C,i,b,f,r,g]),x=l.useMemo(()=>{let R={className:`${n}-content-value`,style:{visibility:M?"hidden":"visible"}};if(w&&S?.flattenOptions){const T=S.flattenOptions.find(N=>N.value===w.value);if(T?.data){const{label:N,value:O,className:z,style:j,key:W,...F}=T.data;R={...R,...F,title:bv(T.data),className:Q(R.className,z),style:{...R.style,...j}}}}return w&&!R.title&&(R.title=bv(w)),p!==void 0&&(R.title=p),R},[w,S?.flattenOptions,n,M,p]);return l.useEffect(()=>{C&&$(!1)},[C,i]),l.createElement("div",{className:Q(`${n}-content`,h?.content),style:y?.content},w?l.createElement("div",x,w.label):l.createElement(yO,{show:!M}),l.createElement(hO,vv({ref:t},e,{value:M,maxLength:d==="combobox"?c:void 0,onChange:R=>{$(!0),e.onChange?.(R)}})))}),Kl=void 0;function D9(e,t){const{prefixCls:n,invalidate:r,item:i,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:p,className:g,style:h,children:y,display:S,order:b,component:$="div",...C}=e,w=c&&!S;function M(O){f(p,O)}l.useEffect(()=>()=>{M(null)},[]);const x=s&&i!==Kl?s(i,{index:b}):y;let R;r||(R={opacity:w?0:1,height:w?0:Kl,overflowY:w?"hidden":Kl,order:c?b:Kl,pointerEvents:w?"none":Kl,position:w?"absolute":Kl});const T={};w&&(T["aria-hidden"]=!0);let N=l.createElement($,Gn({className:Q(!r&&n,g),style:{...R,...h}},T,C,{ref:t}),x);return c&&(N=l.createElement(Lr,{onResize:({offsetWidth:O})=>{M(O)},disabled:d},N)),N}const Gc=l.forwardRef(D9);function j9(e){if(typeof MessageChannel>"u")_t(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function _9(){const e=l.useRef(null);return n=>{e.current||(e.current=[],j9(()=>{Ss.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Ql(e,t){const[n,r]=l.useState(t),i=ut(s=>{e(()=>{r(s)})});return[n,i]}const qm=ae.createContext(null),H9=(e,t)=>{const n=l.useContext(qm);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Gn({},f,{ref:t}))}const{className:r,...i}=n,{className:s,...c}=e;return l.createElement(qm.Provider,{value:null},l.createElement(Gc,Gn({ref:t,className:Q(r,s)},i,c)))},B9=l.forwardRef(H9),vO="responsive",SO="invalidate";function L9(e){return`+ ${e.length} ...`}function V9(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:p,className:g,maxCount:h,renderRest:y,renderRawRest:S,prefix:b,suffix:$,component:C="div",itemComponent:w,onVisibleChange:M,...x}=e,R=f==="full",T=_9(),[N,O]=Ql(T,null),z=N||0,[j,W]=Ql(T,new Map),[F,Y]=Ql(T,0),[U,L]=Ql(T,0),[B,_]=Ql(T,0),[H,I]=Ql(T,0),[A,V]=l.useState(null),[P,D]=l.useState(null),q=l.useMemo(()=>P===null&&R?Number.MAX_SAFE_INTEGER:P||0,[P,N]),[G,K]=l.useState(!1),Z=`${n}-item`,J=Math.max(F,U),ie=h===vO,ne=r.length&&ie,oe=h===SO,ue=ne||typeof h=="number"&&r.length>h,le=l.useMemo(()=>{let _e=r;return ne?N===null&&R?_e=r:_e=r.slice(0,Math.min(r.length,z/d)):typeof h=="number"&&(_e=r.slice(0,h)),_e},[r,d,N,h,ne]),fe=l.useMemo(()=>ne?r.slice(q+1):r.slice(le.length),[r,le,ne,q]),ge=l.useCallback((_e,Le)=>typeof c=="function"?c(_e):(c&&_e?.[c])??Le,[c]),re=l.useCallback(i||(_e=>_e),[i]);function ce(_e,Le,Qe){P===_e&&(Le===void 0||Le===A)||(D(_e),Qe||(K(_e<r.length-1),M?.(_e)),Le!==void 0&&V(Le))}function he(_e,Le){O(Le.clientWidth)}function pe(_e,Le){W(Qe=>{const ze=new Map(Qe);return Le===null?ze.delete(_e):ze.set(_e,Le),ze})}function Ce(_e,Le){L(Le),Y(U)}function de(_e,Le){_(Le)}function ye(_e,Le){I(Le)}function Se(_e){return j.get(ge(le[_e],_e))}Nt(()=>{if(z&&typeof J=="number"&&le){let _e=B+H;const Le=le.length,Qe=Le-1;if(!Le){ce(0,null);return}for(let ze=0;ze<Le;ze+=1){let ve=Se(ze);if(R&&(ve=ve||0),ve===void 0){ce(ze-1,void 0,!0);break}if(_e+=ve,Qe===0&&_e<=z||ze===Qe-1&&_e+Se(Qe)<=z){ce(Qe,null);break}else if(_e+J>z){ce(ze-1,_e-ve-H+U);break}}$&&Se(0)+H>z&&V(null)}},[z,j,U,B,H,ge,le]);const Ee=G&&!!fe.length;let Pe={};A!==null&&ne&&(Pe={position:"absolute",left:A,top:0});const Ae={prefixCls:Z,responsive:ne,component:w,invalidate:oe},Ye=s?(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(qm.Provider,{key:Qe,value:{...Ae,order:Le,item:_e,itemKey:Qe,registerSize:pe,display:Le<=q}},s(_e,Le))}:(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Gc,Gn({},Ae,{order:Le,key:Qe,item:_e,renderItem:re,itemKey:Qe,registerSize:pe,display:Le<=q}))},Ue={order:Ee?q:Number.MAX_SAFE_INTEGER,className:`${Z}-rest`,registerSize:Ce,display:Ee},Xe=y||L9,et=S?l.createElement(qm.Provider,{value:{...Ae,...Ue}},S(fe)):l.createElement(Gc,Gn({},Ae,Ue),typeof Xe=="function"?Xe(fe):Xe),Te=l.createElement(C,Gn({className:Q(!oe&&n,g),style:p,ref:t},x),b&&l.createElement(Gc,Gn({},Ae,{responsive:ie,responsiveDisabled:!ne,order:-1,className:`${Z}-prefix`,registerSize:de,display:!0}),b),le.map(Ye),ue?et:null,$&&l.createElement(Gc,Gn({},Ae,{responsive:ie,responsiveDisabled:!ne,order:q,className:`${Z}-suffix`,registerSize:ye,display:!0,style:Pe}),$));return ie?l.createElement(Lr,{onResize:he,disabled:!ne},Te):Te}const qo=l.forwardRef(V9);qo.Item=B9;qo.RESPONSIVE=vO;qo.INVALIDATE=SO;const CO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(i):r;return l.createElement("span",{className:t,onMouseDown:p=>{p.preventDefault(),c?.(p)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:Q(t.split(/\s+/).map(p=>`${p}-icon`))},s))};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)}function F9(e){return e.key??e.value}const XE=e=>{e.preventDefault(),e.stopPropagation()},k9=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=bd(),{disabled:p,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:S,tagRender:b,maxTagPlaceholder:$,maxTagTextLength:C,maxTagCount:w,classNames:M,styles:x}=al(),R=`${r}-selection-item`;let T=s;!h&&c==="multiple"&&S!==!1&&(T="");const N=g&&T||"",O=g&&!p,z=f??"×",j=$??(H=>`+ ${H.length} ...`),W=b,F=H=>{y(H)},Y=H=>{d?.(H)},U=(H,I,A,V,P)=>l.createElement("span",{title:bv(H),className:Q(R,{[`${R}-disabled`]:A},M?.item),style:x?.item},l.createElement("span",{className:Q(`${R}-content`,M?.itemContent),style:x?.itemContent},I),V&&l.createElement(CO,{className:Q(`${R}-remove`,M?.itemRemove),style:x?.itemRemove,onMouseDown:XE,onClick:P,customizeIcon:z},"×")),L=(H,I,A,V,P,D,q)=>{const G=K=>{XE(K),F(!h)};return l.createElement("span",{onMouseDown:G},W({label:I,value:H,index:q?.index,disabled:A,closable:V,onClose:P,isMaxTag:!!D}))},B=(H,I)=>{const{disabled:A,label:V,value:P}=H,D=!p&&!A;let q=V;if(typeof C=="number"&&(typeof V=="string"||typeof V=="number")){const K=String(q);K.length>C&&(q=`${K.slice(0,C)}...`)}const G=K=>{K&&K.stopPropagation(),Y(H)};return typeof W=="function"?L(P,q,A,D,G,void 0,I):U(H,q,A,D,G)},_=H=>{if(!i.length)return null;const I=typeof j=="function"?j(H):j;return typeof W=="function"?L(void 0,I,!1,!1,void 0,!0):U({title:I},I,!1)};return l.createElement(qo,{prefixCls:`${r}-content`,className:M?.content,style:x?.content,prefix:!i.length&&(!s||!h)?l.createElement(yO,null):null,data:i,renderItem:B,renderRest:_,suffix:l.createElement(hO,Sv({ref:n,disabled:p,readOnly:!O},t,{value:N||"",syncWidth:!0})),itemKey:F9,maxCount:w})}),W9=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:s}=bd(),c=al(),{showSearch:d}=c,p={...jn(c,{aria:!0}),onKeyDown:i,readOnly:!d,tabIndex:s};return r?l.createElement(k9,{ref:n,inputProps:p}):l.createElement(A9,{ref:n,inputProps:p})});function q9(e){return e&&![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.UP,nt.LEFT,nt.RIGHT,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(e)}function Ym(){return Ym=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},Ym.apply(this,arguments)}const Y9=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],U9=l.forwardRef(function(t,n){const{prefixCls:r,className:i,style:s,prefix:c,suffix:d,clearIcon:f,children:p,multiple:g,displayValues:h,placeholder:y,mode:S,searchValue:b,onSearch:$,onSearchSubmit:C,onInputBlur:w,maxLength:M,autoFocus:x,onMouseDown:R,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:z,components:j,...W}=t,{triggerOpen:F,toggleOpen:Y,showSearch:U,disabled:L,loading:B,classNames:_,styles:H}=al(),I=l.useRef(null),A=l.useRef(null),V=ut(K=>{const{which:Z}=K,J=A.current instanceof HTMLTextAreaElement;!J&&F&&(Z===nt.UP||Z===nt.DOWN)&&K.preventDefault(),N&&N(K),!(J&&!F&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(Z))&&q9(Z)&&Y(!0)});l.useImperativeHandle(n,()=>({focus:K=>{(A.current||I.current).focus?.(K)},blur:()=>{(A.current||I.current).blur?.()},nativeElement:I.current}));const P=ut(K=>{if(!L){const Z=du(A.current);K.nativeEvent._ori_target=Z,Z&&K.target!==Z&&!Z.contains(K.target)&&K.preventDefault();const J=F&&!g&&(S==="combobox"||U);K.nativeEvent._select_lazy?F&&Y(!1):(A.current?.focus(),J||Y())}R?.(K)}),{root:D}=j,q=nn(W,Y9),G={...t,onInputKeyDown:V};return D?l.isValidElement(D)?l.cloneElement(D,{...q,ref:rr(D.ref,I)}):l.createElement(D,Ym({},q,{ref:I})):l.createElement(gO.Provider,{value:G},l.createElement("div",Ym({},q,{ref:I,className:i,style:s,onMouseDown:P}),l.createElement(Py,{className:Q(`${r}-prefix`,_?.prefix),style:H?.prefix},c),l.createElement(W9,{ref:A}),l.createElement(Py,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:B},_?.suffix),style:H?.suffix},d),f&&l.createElement(Py,{className:Q(`${r}-clear`,_?.clear),style:H?.clear,onMouseDown:K=>{K.nativeEvent._select_lazy=!0,T?.(K)}},f),p))});function G9(e,t,n){return l.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}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 $v=e=>e==="tags"||e==="multiple",X9=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:i,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:p="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:S,emptyOptions:b,notFoundContent:$="Not Found",onClear:C,maxCount:w,placeholder:M,mode:x,disabled:R,loading:T,getInputElement:N,getRawInputElement:O,open:z,defaultOpen:j,onPopupVisibleChange:W,activeValue:F,onActiveValueChange:Y,activeDescendantId:U,searchValue:L,autoClearSearchValue:B,onSearch:_,onSearchSplit:H,tokenSeparators:I,allowClear:A,prefix:V,suffix:P,suffixIcon:D,clearIcon:q,OptionList:G,animation:K,transitionName:Z,popupStyle:J,popupClassName:ie,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:ue,placement:le,builtinPlacements:fe,getPopupContainer:ge,showAction:re=[],onFocus:ce,onBlur:he,onKeyUp:pe,onKeyDown:Ce,onMouseDown:de,components:ye,...Se}=e,Ee=$v(x),Pe=l.useRef(null),Ae=l.useRef(null),Ye=l.useRef(null),[Ue,Xe]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:Pe.current?.focus,blur:Pe.current?.blur,scrollTo:Ke=>Ye.current?.scrollTo(Ke),nativeElement:du(Pe.current)}));const et=G9(ye,N,O),Te=l.useMemo(()=>{if(x!=="combobox")return L;const Ke=y[0]?.value;return typeof Ke=="string"||typeof Ke=="number"?String(Ke):""},[L,x,y]),_e=x==="combobox"&&typeof N=="function"&&N()||null,Le=!$&&b,[Qe,ze]=I9(j||!1,z,W,Ke=>R||Le?!1:Ke),ve=l.useMemo(()=>(I||[]).some(Ke=>[`
178
- `,`\r
179
- `].includes(Ke)),[I]),Oe=(Ke,Et,mt)=>{if(Ee&&hv(w)&&y.length>=w)return;let Rt=!0,Ut=Ke;Y?.(null);const an=T9(Ke,I,hv(w)?w-y.length:void 0),kt=mt?null:an;return x!=="combobox"&&kt&&(Ut="",H?.(kt),ze(!1),Rt=!1),_&&Te!==Ut&&_(Ut,{source:Et?"typing":"effect"}),Ke&&Et&&Rt&&ze(!0),Rt},Ze=Ke=>{!Ke||!Ke.trim()||_(Ke,{source:"submit"})};l.useEffect(()=>{!Qe&&!Ee&&x!=="combobox"&&Oe("",!1,!1)},[Qe]),l.useEffect(()=>{R&&(ze(!1),Xe(!1))},[R,Qe]);const[qe,Be]=$9(),Ne=l.useRef(!1),Ge=Ke=>{const Et=qe(),{key:mt}=Ke,Rt=mt==="Enter";if(Rt&&(x!=="combobox"&&Ke.preventDefault(),Qe||ze(!0)),Be(!!Te),mt==="Backspace"&&!Et&&Ee&&!Te&&y.length){const Ut=[...y];let an=null;for(let kt=Ut.length-1;kt>=0;kt-=1){const wn=Ut[kt];if(!wn.disabled){Ut.splice(kt,1),an=wn;break}}an&&S(Ut,{type:"remove",values:[an]})}Qe&&(!Rt||!Ne.current)&&(Rt&&(Ne.current=!0),Ye.current?.onKeyDown(Ke)),Ce?.(Ke)},rt=(Ke,...Et)=>{Qe&&Ye.current?.onKeyUp(Ke,...Et),Ke.key==="Enter"&&(Ne.current=!1),pe?.(Ke,...Et)},ot=ut(Ke=>{const Et=y.filter(mt=>mt!==Ke);S(Et,{type:"remove",values:[Ke]})}),lt=()=>{Ne.current=!1},St=()=>[du(Pe.current),Ae.current?.getPopupElement()];x9(St,Qe,ze,!!et.root);const Ct=l.useRef(!1),ke=Ke=>{Xe(!0),R||(re.includes("focus")&&ze(!0),ce?.(Ke))},at=()=>{Qe&&!Ct.current&&ze(!1,{cancelFun:()=>mO(St(),document.activeElement)})},je=Ke=>{Xe(!1),Te&&(x==="tags"?_(Te,{source:"submit"}):x==="multiple"&&_("",{source:"blur"})),at(),R||he?.(Ke)},Ie=(Ke,...Et)=>{const{target:mt}=Ke;Ae.current?.getPopupElement()?.contains(mt)&&ze&&ze(!0),de?.(Ke,...Et),Ct.current=!0,HS(()=>{Ct.current=!1})},[,Fe]=l.useState({});function Me(){Fe({})}let We;et.root&&(We=Ke=>{ze(Ke)});const Je=l.useMemo(()=>({...e,notFoundContent:$,open:Qe,triggerOpen:Qe,id:n,showSearch:d,multiple:Ee,toggleOpen:ze,showScrollBar:p,styles:s,classNames:c}),[e,$,ze,n,d,Ee,Qe,p,s,c]),it=l.useMemo(()=>{const Ke=P??D;return typeof Ke=="function"?Ke({searchValue:Te,open:Qe,focused:Ue,showSearch:d,loading:T}):Ke},[P,D,Te,Qe,Ue,d,T]),ft=()=>{C?.(),Pe.current?.focus(),S([],{type:"clear",values:y}),Oe("",!1,!1)},{allowClear:Ft,clearIcon:Dt}=C9(r,y,A,q,R,Te,x),$t=l.createElement(G,{ref:Ye}),tn=Q(r,i,{[`${r}-focused`]:Ue,[`${r}-multiple`]:Ee,[`${r}-single`]:!Ee,[`${r}-allow-clear`]:Ft,[`${r}-show-arrow`]:it!=null,[`${r}-disabled`]:R,[`${r}-loading`]:T,[`${r}-open`]:Qe,[`${r}-customize-input`]:_e,[`${r}-show-search`]:d});let wt=l.createElement(U9,Cv({},Se,{ref:Pe,prefixCls:r,className:tn,focused:Ue,prefix:V,suffix:it,clearIcon:Dt,multiple:Ee,mode:x,displayValues:y,placeholder:M,searchValue:Te,activeValue:F,onSearch:Oe,onSearchSubmit:Ze,onInputBlur:lt,onFocus:ke,onBlur:je,onClearMouseDown:ft,onKeyDown:Ge,onKeyUp:rt,onSelectorRemove:ot,tokenWithEnter:ve,onMouseDown:Ie,components:et}));return wt=l.createElement(M9,{ref:Ae,disabled:R,prefixCls:r,visible:Qe,popupElement:$t,animation:K,transitionName:Z,popupStyle:J,popupClassName:ie,direction:g,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:ue,placement:le,builtinPlacements:fe,getPopupContainer:ge,empty:b,onPopupVisibleChange:We,onPopupMouseEnter:Me,onPopupMouseDown:Ie,onPopupBlur:at},wt),l.createElement(fO.Provider,{value:Je},l.createElement(O9,{visible:Ue&&!Qe,values:y}),wt)}),LS=()=>null;LS.isSelectOptGroup=!0;const VS=()=>null;VS.isSelectOption=!0;const $O=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:s,innerProps:c,rtl:d,extra:f},p)=>{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(Lr,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Gn({style:h,className:Q({[`${i}-holder-inner`]:i}),ref:p},c),r,f)))});$O.displayName="Filler";function K9({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function Q9(e,t,n,r,i,s,c,{getKey:d}){return e.slice(t,n+1).map((f,p)=>{const g=t+p,h=c(f,g,{style:{width:r},offsetX:i}),y=d(f);return l.createElement(K9,{key:y,setRef:S=>s(f,S)},h)})}function Z9(e,t,n){const r=e.length,i=t.length;let s,c;if(r===0&&i===0)return null;r<i?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let p=null,g=Math.abs(r-i)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),S=f(c[h]);if(y!==S){p=h,g=g||y!==f(c[h+1]);break}}return p===null?null:{index:p,multiple:g}}function J9(e,t,n){const[r,i]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=Z9(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),i(e)},[e]),[s]}const KE=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),xO=((e,t,n,r)=>{const i=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),i.current=!0,s.current=setTimeout(()=>{i.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,p,g=!1)=>{const h=f?p<0&&d.current.left||p>0&&d.current.right:p<0&&d.current.top||p>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),i.current=!1):(!h||i.current)&&c(),!i.current&&h}});function eH(e,t,n,r,i,s,c){const d=l.useRef(0),f=l.useRef(null),p=l.useRef(null),g=l.useRef(!1),h=xO(t,n,r,i);function y(M,x){if(_t.cancel(f.current),h(!1,x))return;const R=M;if(!R._virtualHandled)R._virtualHandled=!0;else return;d.current+=x,p.current=x,KE||R.preventDefault(),f.current=_t(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function S(M,x){c(x,!0),KE||M.preventDefault()}const b=l.useRef(null),$=l.useRef(null);function C(M){if(!e)return;_t.cancel($.current),$.current=_t(()=>{b.current=null},2);const{deltaX:x,deltaY:R,shiftKey:T}=M;let N=x,O=R;(b.current==="sx"||!b.current&&T&&R&&!x)&&(N=R,O=0,b.current="sx");const z=Math.abs(N),j=Math.abs(O);b.current===null&&(b.current=s&&z>j?"x":"y"),b.current==="y"?y(M,O):S(M,N)}function w(M){e&&(g.current=M.detail===p.current)}return[C,w]}function tH(e,t,n,r){const[i,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let p=i.get(d),g=i.get(f);if(p===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const S=e[y],b=t(S);i.set(b,y);const $=n.get(b)??r;if(s[y]=(s[y-1]||0)+$,b===d&&(p=y),b===f&&(g=y),p!==void 0&&g!==void 0)break}}return{top:s[p-1]||0,bottom:s[g]}}}class nH{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 QE(e){const t=parseFloat(e);return isNaN(t)?0:t}function rH(e,t,n){const[r,i]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new nH),d=l.useRef(0);function f(){d.current+=1}function p(h=!1){f();const y=()=>{let S=!1;s.current.forEach((b,$)=>{if(b&&b.offsetParent){const{offsetHeight:C}=b,{marginTop:w,marginBottom:M}=getComputedStyle(b),x=QE(w),R=QE(M),T=C+x+R;c.current.get($)!==T&&(c.current.set($,T),S=!0)}}),S&&i(b=>b+1)};if(h)y();else{d.current+=1;const S=d.current;Promise.resolve().then(()=>{S===d.current&&y()})}}function g(h,y){const S=e(h);s.current.get(S),y?(s.current.set(S,y),p()):s.current.delete(S)}return l.useEffect(()=>f,[]),[g,p,c.current,r]}const ZE=14/15;function oH(e,t,n){const r=l.useRef(!1),i=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const p=y=>{if(r.current){const S=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let $=i.current-S,C=s.current-b;const w=Math.abs($)>Math.abs(C);w?i.current=S:s.current=b;const M=n(w,w?$:C,!1,y);M&&y.preventDefault(),clearInterval(d.current),M&&(d.current=setInterval(()=>{w?$*=ZE:C*=ZE;const x=Math.floor(w?$:C);(!n(w,x,!0)||Math.abs(x)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",p,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",p),c.current.removeEventListener("touchend",g))},Nt(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function JE(e){return Math.floor(e**.5)}function xv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function aH(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,s,c;const d=()=>{_t.cancel(s)},f=()=>{d(),s=_t(()=>{n(c),f()})},p=()=>{i=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const S=y;S._virtualHandled||(S._virtualHandled=!0,i=!0)},h=y=>{if(i){const S=xv(y,!1),{top:b,bottom:$}=r.getBoundingClientRect();if(S<=b){const C=b-S;c=-JE(C),f()}else if(S>=$){const C=S-$;c=JE(C),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",p),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",p),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",p),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",p),d()}}},[e])}const iH=10;function lH(e,t,n,r,i,s,c,d){const f=l.useRef(),[p,g]=l.useState(null);return Nt(()=>{if(p&&p.times<iH){if(!e.current){g(x=>({...x}));return}s();const{targetAlign:h,originAlign:y,index:S,offset:b}=p,$=e.current.clientHeight;let C=!1,w=h,M=null;if($){const x=h||y;let R=0,T=0,N=0;const O=Math.min(t.length-1,S);for(let j=0;j<=O;j+=1){const W=i(t[j]);T=R;const F=n.get(W);N=T+(F===void 0?r:F),R=N}let z=x==="top"?b:$-b;for(let j=O;j>=0;j-=1){const W=i(t[j]),F=n.get(W);if(F===void 0){C=!0;break}if(z-=F,z<=0)break}switch(x){case"top":M=T-b;break;case"bottom":M=N-$+b;break;default:{const{scrollTop:j}=e.current,W=j+$;T<j?w="top":N>W&&(w="bottom")}}M!==null&&c(M),M!==p.lastTop&&(C=!0)}C&&g({...p,times:p.times+1,targetAlign:w,lastTop:M})}},[p,e.current]),h=>{if(h==null){d();return}if(_t.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:S}=h;"index"in h?{index:y}=h:y=t.findIndex($=>i($)===h.key);const{offset:b=0}=h;g({times:0,index:y,offset:b,originAlign:S})}}}const e2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:p,spinSize:g,containerSize:h,style:y,thumbStyle:S,showScrollBar:b}=e,[$,C]=l.useState(!1),[w,M]=l.useState(null),[x,R]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[z,j]=l.useState(b),W=l.useRef(),F=()=>{b===!0||b===!1||(clearTimeout(W.current),j(!0),W.current=setTimeout(()=>{j(!1)},3e3))},Y=s-h||0,U=h-g||0,L=l.useMemo(()=>i===0||Y===0?0:i/Y*U,[i,Y,U]),B=q=>{q.stopPropagation(),q.preventDefault()},_=l.useRef({top:L,dragging:$,pageY:w,startTop:x});_.current={top:L,dragging:$,pageY:w,startTop:x};const H=q=>{C(!0),M(xv(q,p)),R(_.current.top),c(),q.stopPropagation(),q.preventDefault()};l.useEffect(()=>{const q=Z=>{Z.preventDefault()},G=N.current,K=O.current;return G.addEventListener("touchstart",q,{passive:!1}),K.addEventListener("touchstart",H,{passive:!1}),()=>{G.removeEventListener("touchstart",q),K.removeEventListener("touchstart",H)}},[]);const I=l.useRef();I.current=Y;const A=l.useRef();A.current=U,l.useEffect(()=>{if($){let q;const G=Z=>{const{dragging:J,pageY:ie,startTop:ne}=_.current;_t.cancel(q);const oe=N.current.getBoundingClientRect(),ue=h/(p?oe.width:oe.height);if(J){const le=(xv(Z,p)-ie)*ue;let fe=ne;!T&&p?fe-=le:fe+=le;const ge=I.current,re=A.current,ce=re?fe/re:0;let he=Math.ceil(ce*ge);he=Math.max(he,0),he=Math.min(he,ge),q=_t(()=>{f(he,p)})}},K=()=>{C(!1),d()};return window.addEventListener("mousemove",G,{passive:!0}),window.addEventListener("touchmove",G,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),_t.cancel(q)}}},[$]),l.useEffect(()=>(F(),()=>{clearTimeout(W.current)}),[i]),l.useImperativeHandle(t,()=>({delayHidden:F}));const V=`${n}-scrollbar`,P={position:"absolute",visibility:z?null:"hidden"},D={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(P,{height:8,left:0,right:0,bottom:0}),Object.assign(D,{height:"100%",width:g,[T?"left":"right"]:L})):(Object.assign(P,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(D,{width:"100%",height:g,top:L})),l.createElement("div",{ref:N,className:Q(V,{[`${V}-horizontal`]:p,[`${V}-vertical`]:!p,[`${V}-visible`]:z}),style:{...P,...y},onMouseDown:B,onMouseMove:F},l.createElement("div",{ref:O,className:Q(`${V}-thumb`,{[`${V}-thumb-moving`]:$}),style:{...D,...S},onMouseDown:H}))}),sH=20;function t2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,sH),Math.floor(n)}const cH=[],uH={overflowY:"auto",overflowAnchor:"none"};function dH(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:p,itemKey:g,virtual:h,direction:y,scrollWidth:S,component:b="div",onScroll:$,onVirtualScroll:C,onVisibleChange:w,innerProps:M,extraRender:x,styles:R,showScrollBar:T="optional",...N}=e,O=l.useCallback(je=>typeof g=="function"?g(je):je?.[g],[g]),[z,j,W,F]=rH(O),Y=!!(h!==!1&&i&&s),U=l.useMemo(()=>Object.values(W.maps).reduce((je,Ie)=>je+Ie,0),[W.id,W.maps]),L=Y&&f&&(Math.max(s*f.length,U)>i||!!S),B=y==="rtl",_=Q(n,{[`${n}-rtl`]:B},r),H=f||cH,I=l.useRef(),A=l.useRef(),V=l.useRef(),[P,D]=l.useState(0),[q,G]=l.useState(0),[K,Z]=l.useState(!1),J=()=>{Z(!0)},ie=()=>{Z(!1)},ne={getKey:O};function oe(je){D(Ie=>{let Fe;typeof je=="function"?Fe=je(Ie):Fe=je;const Me=Ue(Fe);return I.current.scrollTop=Me,Me})}const ue=l.useRef({start:0,end:H.length}),le=l.useRef(),[fe]=J9(H,O);le.current=fe;const{scrollHeight:ge,start:re,end:ce,offset:he}=l.useMemo(()=>{if(!Y)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!L)return{scrollHeight:A.current?.offsetHeight||0,start:0,end:H.length-1,offset:void 0};let je=0,Ie,Fe,Me;const We=H.length;for(let Je=0;Je<We;Je+=1){const it=H[Je],ft=O(it),Ft=W.get(ft),Dt=je+(Ft===void 0?s:Ft);Dt>=P&&Ie===void 0&&(Ie=Je,Fe=je),Dt>P+i&&Me===void 0&&(Me=Je),je=Dt}return Ie===void 0&&(Ie=0,Fe=0,Me=Math.ceil(i/s)),Me===void 0&&(Me=H.length-1),Me=Math.min(Me+1,H.length-1),{scrollHeight:je,start:Ie,end:Me,offset:Fe}},[L,Y,P,H,F,i]);ue.current.start=re,ue.current.end=ce,l.useLayoutEffect(()=>{const je=W.getRecord();if(je.size===1){const Ie=Array.from(je.keys())[0],Fe=je.get(Ie),Me=H[re];if(Me&&Fe===void 0&&O(Me)===Ie){const it=W.get(Ie)-s;oe(ft=>ft+it)}}W.resetRecord()},[ge]);const[pe,Ce]=l.useState({width:0,height:i}),de=je=>{Ce({width:je.offsetWidth,height:je.offsetHeight})},ye=l.useRef(),Se=l.useRef(),Ee=l.useMemo(()=>t2(pe.width,S),[pe.width,S]),Pe=l.useMemo(()=>t2(pe.height,ge),[pe.height,ge]),Ae=ge-i,Ye=l.useRef(Ae);Ye.current=Ae;function Ue(je){let Ie=je;return Number.isNaN(Ye.current)||(Ie=Math.min(Ie,Ye.current)),Ie=Math.max(Ie,0),Ie}const Xe=P<=0,et=P>=Ae,Te=q<=0,_e=q>=S,Le=xO(Xe,et,Te,_e),Qe=()=>({x:B?-q:q,y:P}),ze=l.useRef(Qe()),ve=ut(je=>{if(C){const Ie={...Qe(),...je};(ze.current.x!==Ie.x||ze.current.y!==Ie.y)&&(C(Ie),ze.current=Ie)}});function Oe(je,Ie){const Fe=je;Ie?(Ss.flushSync(()=>{G(Fe)}),ve()):oe(Fe)}function Ze(je){const{scrollTop:Ie}=je.currentTarget;Ie!==P&&oe(Ie),$?.(je),ve()}const qe=je=>{let Ie=je;const Fe=S?S-pe.width:0;return Ie=Math.max(Ie,0),Ie=Math.min(Ie,Fe),Ie},Be=ut((je,Ie)=>{Ie?(Ss.flushSync(()=>{G(Fe=>{const Me=Fe+(B?-je:je);return qe(Me)})}),ve()):oe(Fe=>Fe+je)}),[Ne,Ge]=eH(Y,Xe,et,Te,_e,!!S,Be);oH(Y,I,(je,Ie,Fe,Me)=>{const We=Me;return Le(je,Ie,Fe)?!1:!We||!We._virtualHandled?(We&&(We._virtualHandled=!0),Ne({preventDefault(){},deltaX:je?Ie:0,deltaY:je?0:Ie}),!0):!1}),aH(L,I,je=>{oe(Ie=>Ie+je)}),Nt(()=>{function je(Fe){const Me=Xe&&Fe.detail<0,We=et&&Fe.detail>0;Y&&!Me&&!We&&Fe.preventDefault()}const Ie=I.current;return Ie.addEventListener("wheel",Ne,{passive:!1}),Ie.addEventListener("DOMMouseScroll",Ge,{passive:!0}),Ie.addEventListener("MozMousePixelScroll",je,{passive:!1}),()=>{Ie.removeEventListener("wheel",Ne),Ie.removeEventListener("DOMMouseScroll",Ge),Ie.removeEventListener("MozMousePixelScroll",je)}},[Y,Xe,et]),Nt(()=>{if(S){const je=qe(q);G(je),ve({x:je})}},[pe.width,S]);const rt=()=>{ye.current?.delayHidden(),Se.current?.delayHidden()},ot=lH(I,H,W,s,O,()=>j(!0),oe,rt);l.useImperativeHandle(t,()=>({nativeElement:V.current,getScrollInfo:Qe,scrollTo:je=>{function Ie(Fe){return Fe&&typeof Fe=="object"&&("left"in Fe||"top"in Fe)}Ie(je)?(je.left!==void 0&&G(qe(je.left)),ot(je.top)):ot(je)}})),Nt(()=>{if(w){const je=H.slice(re,ce+1);w(je,H)}},[re,ce,H]);const lt=tH(H,O,W,s),St=x?.({start:re,end:ce,virtual:L,offsetX:q,offsetY:he,rtl:B,getSize:lt}),Ct=Q9(H,re,ce,S,q,z,p,ne);let ke=null;i&&(ke={[c?"height":"maxHeight"]:i,...uH},Y&&(ke.overflowY="hidden",S&&(ke.overflowX="hidden"),K&&(ke.pointerEvents="none")));const at={};return B&&(at.dir="rtl"),l.createElement("div",Gn({ref:V,style:{...d,position:"relative"},className:_},at,N),l.createElement(Lr,{onResize:de},l.createElement(b,{className:`${n}-holder`,style:ke,ref:I,onScroll:Ze,onMouseEnter:rt},l.createElement($O,{prefixCls:n,height:ge,offsetX:q,offsetY:he,scrollWidth:S,onInnerResize:j,ref:A,innerProps:M,rtl:B,extra:St},Ct))),L&&ge>i&&l.createElement(e2,{ref:ye,prefixCls:n,scrollOffset:P,scrollRange:ge,rtl:B,onScroll:Oe,onStartMove:J,onStopMove:ie,spinSize:Pe,containerSize:pe.height,style:R?.verticalScrollBar,thumbStyle:R?.verticalScrollBarThumb,showScrollBar:T}),L&&S>pe.width&&l.createElement(e2,{ref:Se,prefixCls:n,scrollOffset:q,scrollRange:S,rtl:B,onScroll:Oe,onStartMove:J,onStopMove:ie,spinSize:Ee,containerSize:pe.width,horizontal:!0,style:R?.horizontalScrollBar,thumbStyle:R?.horizontalScrollBarThumb,showScrollBar:T}))}const wO=l.forwardRef(dH);wO.displayName="List";function fH(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function au(){return au=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},au.apply(this,arguments)}function n2(e){return typeof e=="string"||typeof e=="number"}const mH=(e,t)=>{const{prefixCls:n,id:r,open:i,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:g,showScrollBar:h}=al(),{maxCount:y,flattenOptions:S,onActiveValue:b,defaultActiveFirstOption:$,onSelect:C,menuItemSelectedIcon:w,rawValues:M,fieldNames:x,virtual:R,direction:T,listHeight:N,listItemHeight:O,optionRender:z,classNames:j,styles:W}=l.useContext(BS),F=`${n}-item`,Y=td(()=>S,[i,S],(ne,oe)=>oe[0]&&ne[1]!==oe[1]),U=l.useRef(null),L=l.useMemo(()=>s&&hv(y)&&M?.size>=y,[s,y,M?.size]),B=ne=>{ne.preventDefault()},_=ne=>{U.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},H=l.useCallback(ne=>c==="combobox"?!1:M.has(ne),[c,[...M].toString(),M.size]),I=(ne,oe=1)=>{const ue=Y.length;for(let le=0;le<ue;le+=1){const fe=(ne+le*oe+ue)%ue,{group:ge,data:re}=Y[fe]||{};if(!ge&&!re?.disabled&&(H(re.value)||!L))return fe}return-1},[A,V]=l.useState(()=>I(0)),P=(ne,oe=!1)=>{V(ne);const ue={source:oe?"keyboard":"mouse"},le=Y[ne];if(!le){b(null,-1,ue);return}b(le.value,ne,ue)};l.useEffect(()=>{P($!==!1?I(0):-1)},[Y.length,d]);const D=l.useCallback(ne=>c==="combobox"?String(ne).toLowerCase()===d.toLowerCase():M.has(ne),[c,d,[...M].toString(),M.size]);l.useEffect(()=>{let ne;if(!s&&i&&M.size===1){const oe=Array.from(M)[0],ue=Y.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===oe);ue!==-1&&(P(ue),ne=setTimeout(()=>{_(ue)}))}return i&&U.current?.scrollTo(void 0),()=>clearTimeout(ne)},[i,d]);const q=ne=>{ne!==void 0&&C(ne,{selected:!M.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:oe,ctrlKey:ue}=ne;switch(oe){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{let le=0;if(oe===nt.UP?le=-1:oe===nt.DOWN?le=1:fH()&&ue&&(oe===nt.N?le=1:oe===nt.P&&(le=-1)),le!==0){const fe=I(A+le,le);_(fe),P(fe,!0)}break}case nt.TAB:case nt.ENTER:{const le=Y[A];if(!le||le.data.disabled)return q(void 0);!L||M.has(le.value)?q(le.value):q(void 0),i&&ne.preventDefault();break}case nt.ESC:f(!1),i&&ne.stopPropagation()}},onKeyUp:()=>{},scrollTo:ne=>{_(ne)}})),Y.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${F}-empty`,onMouseDown:B},p);const G=Object.keys(x).map(ne=>x[ne]),K=ne=>ne.label;function Z(ne,oe){const{group:ue}=ne;return{role:ue?"presentation":"option",id:`${r}_list_${oe}`}}const J=ne=>{const oe=Y[ne];if(!oe)return null;const ue=oe.data||{},{value:le}=ue,{group:fe}=oe,ge=jn(ue,!0),re=K(oe);return oe?l.createElement("div",au({"aria-label":typeof re=="string"&&!fe?re:null},ge,{key:ne},Z(oe,ne),{"aria-selected":D(le)}),le):null},ie={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,R&&l.createElement("div",au({},ie,{style:{height:0,width:0,overflow:"hidden"}}),J(A-1),J(A),J(A+1)),l.createElement(wO,{itemKey:"key",ref:U,data:Y,height:N,itemHeight:O,fullHeight:!1,onMouseDown:B,onScroll:g,virtual:R,direction:T,innerProps:R?null:ie,showScrollBar:h,className:j?.popup?.list,style:W?.popup?.list},(ne,oe)=>{const{group:ue,groupOption:le,data:fe,label:ge,value:re}=ne,{key:ce}=fe;if(ue){const Le=fe.title??(n2(ge)?ge.toString():void 0);return l.createElement("div",{className:Q(F,`${F}-group`,fe.className),title:Le},ge!==void 0?ge:ce)}const{disabled:he,title:pe,children:Ce,style:de,className:ye,...Se}=fe,Ee=nn(Se,G),Pe=H(re),Ae=he||!Pe&&L,Ye=`${F}-option`,Ue=Q(F,Ye,ye,j?.popup?.listItem,{[`${Ye}-grouped`]:le,[`${Ye}-active`]:A===oe&&!Ae,[`${Ye}-disabled`]:Ae,[`${Ye}-selected`]:Pe}),Xe=K(ne),et=!w||typeof w=="function"||Pe,Te=typeof Xe=="number"?Xe:Xe||re;let _e=n2(Te)?Te.toString():void 0;return pe!==void 0&&(_e=pe),l.createElement("div",au({},jn(Ee),R?{}:Z(ne,oe),{"aria-selected":R?void 0:D(re),className:Ue,title:_e,onMouseMove:()=>{A===oe||Ae||P(oe)},onClick:()=>{Ae||q(re)},style:{...W?.popup?.listItem,...de}}),l.createElement("div",{className:`${Ye}-content`},typeof z=="function"?z(ne,{index:oe}):Te),l.isValidElement(w)||Pe,et&&l.createElement(CO,{className:`${F}-option-state`,customizeIcon:w,customizeIconProps:{value:re,disabled:Ae,isSelected:Pe}},Pe?"✓":null))}))},pH=l.forwardRef(mH),gH=((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,p=new Map;return d.forEach(g=>{f.set(g.value,g),p.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=p,d},[e,t]),i=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,i]});function zy(e,t){return bO(e).join("").toUpperCase().includes(t)}const hH=((e,t,n,r,i)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],p=typeof r=="function",g=n.toUpperCase(),h=p?r:(S,b)=>i&&i.length?i.some($=>zy(b[$],g)):b[s]?zy(b[c!=="children"?c:"label"],g):zy(b[d],g),y=p?S=>yv(S):S=>S;return e.forEach(S=>{if(S[s]){if(h(n,y(S)))f.push(S);else{const $=S[s].filter(C=>h(n,y(C)));$.length&&f.push({...S,[s]:$})}return}h(n,y(S))&&f.push(S)}),f},[e,r,i,n,t]));function yH(e){const{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:n,...i}}function EO(e,t=!1){return cr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:i},key:s,props:{children:c,...d}}=n;return t||!i?yH(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:EO(c)}}).filter(n=>n)}const bH=(e,t,n,r,i)=>l.useMemo(()=>{let s=e;!e&&(s=EO(t));const d=new Map,f=new Map,p=(h,y,S)=>{S&&typeof S=="string"&&h.set(y[S],y)},g=(h,y=!1)=>{for(let S=0;S<h.length;S+=1){const b=h[S];!b[n.options]||y?(d.set(b[n.value],b),p(f,b,n.label),r.forEach($=>{p(f,b,$)}),p(f,b,i)):g(b[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,i]);function r2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function vH(e,t,n){const{filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const p=typeof e=="object",g={filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...p?e:{}};return[p||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,i,s,c,d,f])}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 SH=["inputValue"];function CH(e){return!e||typeof e!="object"}const $H=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:i="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:S,onSelect:b,onDeselect:$,onActive:C,popupMatchSelectWidth:w=!0,optionLabelProp:M,options:x,optionRender:R,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:z,direction:j,listHeight:W=200,listItemHeight:F=20,labelRender:Y,value:U,defaultValue:L,labelInValue:B,onChange:_,maxCount:H,classNames:I,styles:A,...V}=e,P={searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:S},[D,q]=vH(d,P,r),{filterOption:G,searchValue:K,optionFilterProp:Z,filterSort:J,onSearch:ie,autoClearSearchValue:ne=!0}=q,oe=l.useMemo(()=>Z?Array.isArray(Z)?Z:[Z]:[],[Z]),ue=Ea(n),le=$v(r),fe=!!(!x&&T),ge=l.useMemo(()=>G===void 0&&r==="combobox"?!1:G,[G,r]),re=l.useMemo(()=>pO(c,fe),[JSON.stringify(c),fe]),[ce,he]=Yt("",K),pe=ce||"",Ce=bH(x,T,re,oe,M),{valueOptions:de,labelOptions:ye,options:Se}=Ce,Ee=l.useCallback(Me=>bO(Me).map(Je=>{let it,ft,Ft,Dt;CH(Je)?it=Je:(ft=Je.label,it=Je.value);const $t=de.get(it);return $t&&(ft===void 0&&(ft=$t?.[M||re.label]),Ft=$t?.disabled,Dt=$t?.title),{label:ft,value:it,key:it,disabled:Ft,title:Dt}}),[re,M,de]),[Pe,Ae]=Yt(L,U),Ye=l.useMemo(()=>{const We=Ee(le&&Pe===null?[]:Pe);return r==="combobox"&&z9(We[0]?.value)?[]:We},[Pe,Ee,r,le]),[Ue,Xe]=gH(Ye,de),et=l.useMemo(()=>{if(!r&&Ue.length===1){const Me=Ue[0];if(Me.value===null&&(Me.label===null||Me.label===void 0))return[]}return Ue.map(Me=>({...Me,label:(typeof Y=="function"?Y(Me):Me.label)??Me.value}))},[r,Ue,Y]),Te=l.useMemo(()=>new Set(Ue.map(Me=>Me.value)),[Ue]);l.useEffect(()=>{if(r==="combobox"){const Me=Ue[0]?.value;he(P9(Me)?String(Me):"")}},[Ue]);const _e=r2((Me,We)=>{const Je=We??Me;return{[re.value]:Me,[re.label]:Je}}),Le=l.useMemo(()=>{if(r!=="tags")return Se;const Me=[...Se],We=Je=>de.has(Je);return[...Ue].sort((Je,it)=>Je.value<it.value?-1:1).forEach(Je=>{const it=Je.value;We(it)||Me.push(_e(it,Je.label))}),Me},[_e,Se,de,Ue,r]),Qe=hH(Le,re,pe,ge,oe),ze=l.useMemo(()=>{const Me=We=>oe.length?oe.some(Je=>We?.[Je]===pe):We?.value===pe;return r!=="tags"||!pe||Qe.some(We=>Me(We))||Qe.some(We=>We[re.value]===pe)?Qe:[_e(pe),...Qe]},[_e,oe,r,Qe,pe,re]),ve=Me=>[...Me].sort((Je,it)=>J(Je,it,{searchValue:pe})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?ve(Je.options):Je.options}:Je),Oe=l.useMemo(()=>J?ve(ze):ze,[ze,J,pe]),Ze=l.useMemo(()=>R9(Oe,{fieldNames:re,childrenAsData:fe}),[Oe,re,fe]),qe=Me=>{const We=Ee(Me);if(Ae(We),_&&(We.length!==Ue.length||We.some((Je,it)=>Ue[it]?.value!==Je?.value))){const Je=B?We.map(({label:ft,value:Ft})=>({label:ft,value:Ft})):We.map(ft=>ft.value),it=We.map(ft=>yv(Xe(ft.value)));_(le?Je:Je[0],le?it:it[0])}},[Be,Ne]=l.useState(null),[Ge,rt]=l.useState(0),ot=N!==void 0?N:r!=="combobox",lt=l.useRef(),St=l.useCallback((Me,We,{source:Je="keyboard"}={})=>{rt(We),s&&r==="combobox"&&Me!==null&&Je==="keyboard"&&Ne(String(Me));const it=Promise.resolve().then(()=>{lt.current===it&&C?.(Me)});lt.current=it},[s,r,C]),Ct=(Me,We,Je)=>{const it=()=>{const ft=Xe(Me);return[B?{label:ft?.[re.label],value:Me}:Me,yv(ft)]};if(We&&b){const[ft,Ft]=it();b(ft,Ft)}else if(!We&&$&&Je!=="clear"){const[ft,Ft]=it();$(ft,Ft)}},ke=r2((Me,We)=>{let Je;const it=le?We.selected:!0;it?Je=le?[...Ue,Me]:[Me]:Je=Ue.filter(ft=>ft.value!==Me),qe(Je),Ct(Me,it),r==="combobox"?Ne(""):(!$v||ne)&&(he(""),Ne(""))}),at=(Me,We)=>{qe(Me);const{type:Je,values:it}=We;(Je==="remove"||Je==="clear")&&it.forEach(ft=>{Ct(ft.value,!1,Je)})},je=(Me,We)=>{if(he(Me),Ne(null),We.source==="submit"){const Je=(Me||"").trim();if(Je){const it=Array.from(new Set([...Te,Je]));qe(it),Ct(Je,!0),he("")}return}We.source!=="blur"&&(r==="combobox"&&qe(Me),ie?.(Me))},Ie=Me=>{let We=Me;r!=="tags"&&(We=Me.map(it=>ye.get(it)?.value).filter(it=>it!==void 0));const Je=Array.from(new Set([...Te,...We]));qe(Je),Je.forEach(it=>{Ct(it,!0)})},Fe=l.useMemo(()=>({...Ce,flattenOptions:Ze,onActiveValue:St,defaultActiveFirstOption:ot,onSelect:ke,menuItemSelectedIcon:O,rawValues:Te,fieldNames:re,virtual:z!==!1&&w!==!1,direction:j,listHeight:W,listItemHeight:F,childrenAsData:fe,maxCount:H,optionRender:R,classNames:I,styles:A}),[H,Ce,Ze,St,ot,ke,O,Te,re,z,w,j,W,F,fe,R,I,A]);return l.createElement(BS.Provider,{value:Fe},l.createElement(X9,wv({},V,{id:ue,prefixCls:i,ref:t,omitDomProps:SH,mode:r,classNames:I,styles:A,displayValues:et,onDisplayValuesChange:at,maxCount:H,direction:j,showSearch:D,searchValue:pe,onSearch:je,autoClearSearchValue:ne,onSearchSplit:Ie,popupMatchSelectWidth:w,OptionList:pH,emptyOptions:!Ze.length,activeValue:Be,activeDescendantId:`${ue}_list_${Ge}`})))}),FS=$H;FS.Option=VS;FS.OptGroup=LS;const Qi=(e,t,n)=>Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),zs=(e,t)=>t||e,xH=()=>{const[,e]=kr(),[t]=ro("Empty"),r=new en(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.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},wH=()=>{const[,e]=kr(),[t]=ro("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new en(n).onBackground(s).toHexString(),shadowColor:new en(r).onBackground(s).toHexString(),contentColor:new en(i).onBackground(s).toHexString()}),[n,r,i,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.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},EH=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},MH=Pt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Ot(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return EH(i)}),MO=l.createElement(xH,null),RO=l.createElement(wH,null),Vi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i,description:s,children:c,imageStyle:d,style:f,classNames:p,styles:g,...h}=e,{getPrefixCls:y,direction:S,className:b,style:$,classNames:C,styles:w,image:M}=It("empty"),x=y("empty",r),[R,T]=MH(x),[N,O]=Lt([C,p],[w,g],{props:e}),[z]=ro("Empty"),j=typeof s<"u"?s:z?.description,W=typeof j=="string"?j:"empty",F=i??M??MO;let Y=null;return typeof F=="string"?Y=l.createElement("img",{draggable:!1,alt:W,src:F}):Y=F,l.createElement("div",{className:Q(R,T,x,b,{[`${x}-normal`]:F===RO,[`${x}-rtl`]:S==="rtl"},t,n,N.root),style:{...O.root,...$,...f},...h},l.createElement("div",{className:Q(`${x}-image`,N.image),style:{...d,...O.image}},Y),j&&l.createElement("div",{className:Q(`${x}-description`,N.description),style:O.description},j),c&&l.createElement("div",{className:Q(`${x}-footer`,N.footer),style:O.footer},c))};Vi.PRESENTED_IMAGE_DEFAULT=MO;Vi.PRESENTED_IMAGE_SIMPLE=RO;const TO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(Vi,null)}},As=(e,t,n)=>{const{variant:r,[e]:i}=l.useContext(dt),s=l.useContext(T_),c=i?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=oz.includes(d);return[d,f]},RH=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 TH(e,t){return e||RH(t)}const o2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},OH=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${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`]:{...Zt(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
- ${i}${d}bottomLeft,
181
- ${s}${d}bottomLeft
182
- `]:{animationName:Ep},[`
183
- ${i}${d}topLeft,
184
- ${s}${d}topLeft,
185
- ${i}${d}topRight,
186
- ${s}${d}topRight
187
- `]:{animationName:Rp},[`${c}${d}bottomLeft`]:{animationName:Mp},[`
188
- ${c}${d}topLeft,
189
- ${c}${d}topRight
190
- `]:{animationName:Tp},"&-hidden":{display:"none"},[r]:{...o2(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...So},"&-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":{...o2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Go(e,"slide-up"),Go(e,"slide-down"),xs(e,"move-up"),xs(e,"move-down")]},NH=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"}}}}},a2=4,IH=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:c,lineWidth:d,colorIcon:f,colorIconHover:p,inputPaddingHorizontalBase:g}=e;return{"&-multiple":{"--select-multi-item-background":e.multipleItemBg,"--select-multi-item-border-color":"transparent","--select-multi-item-border-radius":e.borderRadiusSM,"--select-multi-item-height":e.multipleItemHeight,"--select-multi-padding-base":"calc((var(--select-height) - var(--select-multi-item-height)) / 2)","--select-multi-padding-vertical":`calc(var(--select-multi-padding-base) - ${c} - ${d})`,"--select-multi-item-padding-horizontal":`calc(${g} - var(--select-multi-padding-vertical) - ${d} * 2)`,paddingBlock:"var(--select-multi-padding-vertical)",paddingInlineStart:`calc(var(--select-multi-padding-base) - ${d})`,[`${t}-prefix`]:{marginInlineStart:"var(--select-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:"var(--select-line-height)",insetInlineStart:"var(--select-multi-item-padding-horizontal)",width:"calc(100% - var(--select-multi-item-padding-horizontal))",top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:"var(--select-font-size)"},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${a2}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
191
- ${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${d} * 2)`,border:`${d} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:i,paddingInlineEnd:s,transition:["height","line-height","padding"].map(h=>`${h} ${e.motionDurationSlow}`).join(","),"&-content":{...So,marginInlineEnd:s},"&-remove":{...Os(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:a2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}},Ay=(e,t)=>{const{componentCls:n}=e,{border:r,borderHover:i,borderActive:s,borderOutline:c}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":r,"--select-background":d,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":i,"--select-background":t.backgroundHover||d},[`&${n}-focused`]:{"--select-border-color":s,"--select-background":t.backgroundActive||d,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},Vf=(e,t,n,r={},i={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[Ay(e,n),{[`&${c}-status-error`]:Ay(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:Ay(e,{...n,color:i.color||e.colorWarning,...i})},s]}},PH=e=>{const{componentCls:t,calc:n,fontHeight:r,controlHeight:i,iconCls:s}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":r,"--select-color":e.colorText,"--select-height":i,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Zt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...So,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...So,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",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed"},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-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(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},IH(e),Vf(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}),Vf(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}),Vf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Vf(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"}),NH(e)]}},zH=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:p,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:S,colorBgContainer:b,colorFillSecondary:$,colorBgContainerDisabled:C,colorTextDisabled:w,colorPrimaryHover:M,colorPrimary:x,controlOutline:R}=e,T=d*2,N=r*2,O=Math.min(i-T,i-N),z=Math.min(s-T,s-N),j=Math.min(c-T,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:p+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:S,optionPadding:`${(i-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:$,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:z,multipleItemHeightLG:j,multipleSelectorBgDisabled:C,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:M,activeBorderColor:x,activeOutlineColor:R,selectAffixPadding:d}},AH=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Zt(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...So,[`> ${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)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},DH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},AH(e),OH(e),{[`${t}-rtl`]:{direction:"rtl"}},fd(e,{focusElCls:`${t}-focused`})]},jH=Pt("Select",(e,{rootPrefixCls:t})=>{const n=Ot(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[DH(n),PH(n)]},zH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var _H={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 Ev(){return Ev=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},Ev.apply(this,arguments)}const HH=(e,t)=>l.createElement(gt,Ev({},e,{ref:t,icon:_H})),il=l.forwardRef(HH);var BH={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 Mv(){return Mv=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},Mv.apply(this,arguments)}const LH=(e,t)=>l.createElement(gt,Mv({},e,{ref:t,icon:BH})),VH=l.forwardRef(LH);var FH={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 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 kH=(e,t)=>l.createElement(gt,Rv({},e,{ref:t,icon:FH})),OO=l.forwardRef(kH);function NO({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:s,hasFeedback:c,showSuffixIcon:d,feedbackIcon:f,showArrow:p,componentName:g}){const h=t??l.createElement(Is,null),y=C=>e===null&&!c&&!p?null:l.createElement(l.Fragment,null,d!==!1&&C,c&&f);let S=null;e!==void 0?S=y(e):i?S=y(l.createElement($p,{spin:!0})):S=({open:C,showSearch:w})=>y(C&&w?l.createElement(OO,null):l.createElement(VH,null));let b=null;n!==void 0?b=n:s?b=l.createElement(il,null):b=null;let $=null;return r!==void 0?$=r:$=l.createElement(Wr,null),{clearIcon:h,suffixIcon:S,itemIcon:b,removeIcon:$}}function WH(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement($a,{space:!0},e.apply(void 0,t))},[e])}function qH(e,t){return t!==void 0?t:e!==null}const IO="SECRET_COMBOBOX_MODE_DO_NOT_USE",YH=(e,t)=>{const{prefixCls:n,bordered:r,className:i,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:g,listItemHeight:h,size:y,disabled:S,notFoundContent:b,status:$,builtinPlacements:C,dropdownMatchSelectWidth:w,popupMatchSelectWidth:M,direction:x,style:R,allowClear:T,variant:N,popupStyle:O,dropdownStyle:z,transitionName:j,tagRender:W,maxCount:F,prefix:Y,dropdownRender:U,popupRender:L,onDropdownVisibleChange:B,onOpenChange:_,styles:H,classNames:I,...A}=e,{getPopupContainer:V,getPrefixCls:P,renderEmpty:D,direction:q,virtual:G,popupMatchSelectWidth:K,popupOverflow:Z}=l.useContext(dt),{showSearch:J,style:ie,styles:ne,className:oe,classNames:ue}=It("select"),[,le]=kr(),fe=h??le?.controlHeight,ge=P("select",n),re=P(),ce=x??q,{compactSize:he,compactItemClassnames:pe}=Ma(ge,ce),[Ce,de]=As("select",N,r),ye=or(ge),[Se,Ee]=jH(ge,ye),Pe=l.useMemo(()=>{const{mode:We}=e;if(We!=="combobox")return We===IO?"combobox":We},[e.mode]),Ae=Pe==="multiple"||Pe==="tags",Ye=qH(e.suffixIcon,e.showArrow),Ue=M??w??K,Xe=WH(L||U),et=_||B,{status:Te,hasFeedback:_e,isFormItemInput:Le,feedbackIcon:Qe}=l.useContext(Rr),ze=zs(Te,$);let ve;b!==void 0?ve=b:Pe==="combobox"?ve=null:ve=D?.("Select")||l.createElement(TO,{componentName:"Select"});const{suffixIcon:Oe,itemIcon:Ze,removeIcon:qe,clearIcon:Be}=NO({...A,multiple:Ae,hasFeedback:_e,feedbackIcon:Qe,showSuffixIcon:Ye,componentName:"Select"}),Ne=T===!0?{clearIcon:Be}:T,Ge=nn(A,["suffixIcon","itemIcon"]),rt=ur(We=>y??he??We),ot=l.useContext(Fr),lt=S??ot,St={...e,variant:Ce,status:ze,disabled:lt,size:rt},[Ct,ke]=Lt([ue,I],[ne,H],{props:St},{popup:{_default:"root"}}),at=Q(Ct.popup?.root,d,f,{[`${ge}-dropdown-${ce}`]:ce==="rtl"},s,Ee,ye,Se),je={...ke.popup?.root,...O??z},Ie=Q({[`${ge}-lg`]:rt==="large",[`${ge}-sm`]:rt==="small",[`${ge}-rtl`]:ce==="rtl",[`${ge}-${Ce}`]:de,[`${ge}-in-form-item`]:Le},Qi(ge,ze,_e),pe,oe,i,Ct.root,s,Ee,ye,Se),Fe=l.useMemo(()=>g!==void 0?g:ce==="rtl"?"bottomRight":"bottomLeft",[g,ce]),[Me]=mi("SelectLike",ke.popup?.root?.zIndex??je?.zIndex);return l.createElement(FS,{ref:t,virtual:G,classNames:Ct,styles:ke,showSearch:J,...Ge,style:{...ke.root,...ie,...R},popupMatchSelectWidth:Ue,transitionName:Uo(re,"slide-up",j),builtinPlacements:TH(C,Z),listHeight:p,listItemHeight:fe,mode:Pe,prefixCls:ge,placement:Fe,direction:ce,prefix:Y,suffixIcon:Oe,menuItemSelectedIcon:Ze,removeIcon:qe,allowClear:Ne,notFoundContent:ve,className:Ie,getPopupContainer:c||V,popupClassName:at,disabled:lt,popupStyle:{...ke.popup?.root,...je,zIndex:Me},maxCount:Ae?F:void 0,tagRender:Ae?W:void 0,popupRender:Xe,onPopupVisibleChange:et})},Br=l.forwardRef(YH),UH=Np(Br,"popupAlign");Br.SECRET_COMBOBOX_MODE_DO_NOT_USE=IO;Br.Option=VS;Br.OptGroup=LS;Br._InternalPanelDoNotUseOrYouWillBeFired=UH;const Zi=["xxl","xl","lg","md","sm","xs"],GH=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)`}),XH=e=>{const t=e,n=[].concat(Zi).reverse();return n.forEach((r,i)=>{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(i<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[i+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},KH=()=>{const[,e]=kr(),t=GH(XH(e));return ae.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return i=s,n.forEach(c=>c(i)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(i),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:p})=>{this.dispatch({...i,[s]:p})},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 Ip(e=!0,t={}){const n=l.useRef(t),[,r]=j5(),i=KH();return Nt(()=>{const s=i.subscribe(c=>{n.current=c,e&&r()});return()=>i.unsubscribe(s)},[]),n.current}const Es=e=>e?typeof e=="function"?e():e:null,kS=e=>{const{children:t,prefixCls:n,id:r,classNames:i,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:Q(`${n}-container`,i?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},Zl={shiftX:64,adjustY:1},Jl={adjustX:1,shiftY:!0},go=[0,0],QH={left:{points:["cr","cl"],overflow:Jl,offset:[-4,0],targetOffset:go},right:{points:["cl","cr"],overflow:Jl,offset:[4,0],targetOffset:go},top:{points:["bc","tc"],overflow:Zl,offset:[0,-4],targetOffset:go},bottom:{points:["tc","bc"],overflow:Zl,offset:[0,4],targetOffset:go},topLeft:{points:["bl","tl"],overflow:Zl,offset:[0,-4],targetOffset:go},leftTop:{points:["tr","tl"],overflow:Jl,offset:[-4,0],targetOffset:go},topRight:{points:["br","tr"],overflow:Zl,offset:[0,-4],targetOffset:go},rightTop:{points:["tl","tr"],overflow:Jl,offset:[4,0],targetOffset:go},bottomRight:{points:["tr","br"],overflow:Zl,offset:[0,4],targetOffset:go},rightBottom:{points:["bl","br"],overflow:Jl,offset:[4,0],targetOffset:go},bottomLeft:{points:["tl","bl"],overflow:Zl,offset:[0,4],targetOffset:go},leftBottom:{points:["br","bl"],overflow:Jl,offset:[-4,0],targetOffset:go}};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 ZH=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:p,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:S,getTooltipContainer:b,arrowContent:$,overlay:C,id:w,showArrow:M=!0,classNames:x,styles:R,...T}=e,N=Ea(w),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const z={...T};"visible"in e&&(z.popupVisible=e.visible);const j=l.useMemo(()=>{if(!M)return!1;const F=M===!0?{}:M;return{...F,className:Q(F.className,x?.arrow),style:{...F.style,...R?.arrow},content:F.content??$}},[M,x?.arrow,R?.arrow,$]),W=({open:F})=>{const Y=l.Children.only(c),U={"aria-describedby":C&&F?N:void 0};return l.cloneElement(Y,U)};return l.createElement(sd,Tv({popupClassName:x?.root,prefixCls:s,popup:l.createElement(kS,{key:"content",prefixCls:s,id:N,classNames:x,styles:R},C),action:n,builtinPlacements:QH,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:p,defaultPopupVisible:S,autoDestroy:y,mouseLeaveDelay:i,popupStyle:R?.root,mouseEnterDelay:r,arrow:j,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:R?.uniqueContainer},z),W)});function Pp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,s=0,c=i,d=r*1/Math.sqrt(2),f=i-r*(1-1/Math.sqrt(2)),p=i-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-p,y=g,S=2*i-d,b=f,$=2*i-s,C=c,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),M=r*(Math.sqrt(2)-1),x=`polygon(${M}px 100%, 50% ${M}px, ${2*i-M}px 100%, ${M}px 100%)`,R=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${p} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${S} ${b} A ${r} ${r} 0 0 0 ${$} ${C} Z')`;return{arrowShadowWidth:w,arrowPath:R,arrowPolygon:x}}const PO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,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:[i,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"}}},zO=8;function zp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?zO:r}}function Ff(e,t){return e?t:{}}function WS(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...PO(e,t,i),"&:before":{background:t}}],...Ff(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Ff(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Ff(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},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}}),...Ff(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},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 JH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=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,...i};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const i2={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"]}},e7={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"]}},t7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function AO(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},p=zp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(i2).forEach(g=>{const y={...r&&e7[g]||i2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,t7.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-i;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+i;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-i;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+i;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-p.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=p.arrowOffsetHorizontal*2-d;break}y.overflow=JH(g,p,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const qS=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ae.useMemo(()=>{const r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},n7=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:p,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:S}=e,b=t(c).add(S).add(y).equal(),C={minWidth:t(c).mul(2).add(S).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:p,boxSizing:"border-box"},w={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Zt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...w,"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-container`]:[C,AT(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,zO)}},[`${n}-content`]:{position:"relative"},...vp(e,(M,{darkColor:x})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}})),"&-rtl":{direction:"rtl"}}},WS(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...C,...w,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},r7=e=>({zIndexPopup:e.zIndexPopupBase+70,...zp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Pp(Ot(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),DO=(e,t,n=!0)=>Pt("Tooltip",i=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d}=i,f=Ot(i,{tooltipMaxWidth:250,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[n7(f),dd(i,"zoom-big-fast")]},r7,{resetStyle:!1,injectStyle:n})(e,t),o7=ci.map(e=>`${e}-inverse`),a7=["success","processing","error","default","warning"];function Ap(e,t=!0){return t?[].concat(xn(o7),xn(ci)).includes(e):ci.includes(e)}function i7(e){return a7.includes(e)}function jO(e,t){const n=Ap(t),r=Q({[`${e}-${t}`]:t&&n}),i={},s={},c=lj(t).toRgb(),f=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=f,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const l7=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:p}=l.useContext(dt),g=p("tooltip",t),h=or(g),[y,S]=DO(g,h),b=jO(g,s),$=b.arrowStyle,C=l.useMemo(()=>({container:{...c,...b.overlayStyle}}),[c,b.overlayStyle]),w={...e,placement:r},[M,x]=Lt([d],[C,f],{props:w}),R=Q(h,y,S,g,`${g}-pure`,`${g}-placement-${r}`,n,b.className);return l.createElement("div",{className:R,style:$},l.createElement("div",{className:`${g}-arrow`}),l.createElement(kS,{...e,className:y,prefixCls:g,classNames:M,styles:x},i))},s7=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:i,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:p,destroyOnHidden:g,title:h,overlay:y,trigger:S,builtinPlacements:b,autoAdjustOverflow:$=!0,motion:C,getPopupContainer:w,placement:M="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:z,overlayInnerStyle:j,overlayStyle:W,overlayClassName:F,...Y}=e,[,U]=kr(),{getPopupContainer:L,getPrefixCls:B,direction:_,className:H,style:I,classNames:A,styles:V,arrow:P,trigger:D}=It("tooltip"),q=qS(f,P),G=q.show,K=S||D||"hover",Z=l.useRef(null),J=()=>{Z.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:J,nativeElement:Z.current?.nativeElement,popupElement:Z.current?.popupElement}));const[ie,ne]=Yt(e.defaultOpen??!1,e.open),oe=!h&&!y&&h!==0,ue=Oe=>{ne(oe?!1:Oe),!oe&&z&&z(Oe)},le=l.useMemo(()=>b||AO({arrowPointAtCenter:q?.pointAtCenter??!1,autoAdjustOverflow:$,arrowWidth:G?U.sizePopupArrow:0,borderRadius:U.borderRadius,offset:U.marginXXS,visibleFirst:!0}),[q,b,U,G,$]),fe=l.useMemo(()=>h===0?h:y||h||"",[y,h]),ge=l.createElement($a,{space:!0},typeof fe=="function"?fe():fe),re={...e,trigger:K,color:s,placement:M,builtinPlacements:b,openClassName:r,arrow:f,autoAdjustOverflow:$,getPopupContainer:w,children:c,destroyTooltipOnHide:p,destroyOnHidden:g},[ce,he]=Lt([A,O],[V,N],{props:re}),pe=B("tooltip",n),Ce=B(),de=e["data-popover-inject"];let ye=ie;!("open"in e)&&oe&&(ye=!1);const Se=l.isValidElement(c)&&!iT(c)?c:l.createElement("span",null,c),Ee=Se.props,Pe=!Ee.className||typeof Ee.className=="string"?Q(Ee.className,r||`${pe}-open`):Ee.className,Ae=or(pe),[Ye,Ue]=DO(pe,Ae,!de),Xe=jO(pe,s),et=Xe.arrowStyle,Te=Q(Ae,Ye,Ue),_e=Q(F,{[`${pe}-rtl`]:_==="rtl"},Xe.className,T,Te,H,ce.root),[Le,Qe]=mi("Tooltip",Y.zIndex),ze={...he.container,...j,...Xe.overlayStyle},ve=l.createElement(ZH,{unique:!0,...Y,trigger:K,zIndex:Le,showArrow:G,placement:M,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:pe,classNames:{root:_e,container:ce.container,arrow:ce.arrow,uniqueContainer:Q(Te,ce.container)},styles:{root:{...et,...he.root,...I,...W},container:ze,uniqueContainer:ze,arrow:he.arrow},getTooltipContainer:w||i||L,ref:Z,builtinPlacements:le,overlay:ge,visible:ye,onVisibleChange:ue,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:Uo(Ce,"zoom-big-fast",typeof C?.motionName=="string"?C?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!p},ye?tr(Se,{className:Pe}):Se);return l.createElement(ad.Provider,{value:Qe},ve)}),sr=s7;sr._InternalPanelDoNotUseOrYouWillBeFired=l7;sr.UniqueProvider=hT;const c7=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:p,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:S,innerContentPadding:b,titlePadding:$}=e;return[{[t]:{...Zt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-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:i,borderBottom:S,padding:$},[`${t}-content`]:{color:n,padding:b}}},WS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},u7=e=>{const{componentCls:t}=e;return{[t]:ci.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},d7=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:p,colorSplit:g,paddingSM:h}=e,y=n-r,S=y/2,b=y/2-t,$=i;return{titleMinWidth:177,zIndexPopup:c+30,...Pp(e),...zp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${S}px ${$}px ${b}px`:0,titleBorderBottom:s?`${t}px ${p} ${g}`:"none",innerContentPadding:s?`${h}px ${$}px`:0}},_O=Pt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ot(e,{popoverBg:t,popoverColor:n});return[c7(r),u7(r),dd(r,"zoom-big")]},d7,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),HO=e=>{const{title:t,content:n,prefixCls:r,classNames:i,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:Q(`${r}-title`,i?.title),style:s?.title},t),n&&l.createElement("div",{className:Q(`${r}-content`,i?.content),style:s?.content},n))},f7=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:c,content:d,children:f,classNames:p,styles:g}=e,h=Es(c),y=Es(d),S={...e,placement:s},[b,$]=Lt([p],[g],{props:S}),C=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:C,style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(kS,{...e,className:t,prefixCls:n,classNames:b,styles:$},f||l.createElement(HO,{prefixCls:n,title:h,content:y,classNames:b,styles:$})))},BO=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=l.useContext(dt),s=i("popover",t),[c,d]=_O(s);return l.createElement(f7,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},m7=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:S,classNames:b,motion:$,arrow:C,...w}=e,{getPrefixCls:M,className:x,style:R,classNames:T,styles:N,arrow:O,trigger:z}=It("popover"),j=M("popover",n),[W,F]=_O(j),Y=M(),U=qS(C,O),L=d||z||"hover",B={...e,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:S,classNames:b},[_,H]=Lt([T,b],[N,S],{props:B}),I=Q(s,W,F,x,_.root),[A,V]=Yt(e.defaultOpen??!1,e.open),P=(Z,J)=>{V(Z),h?.(Z,J)},D=Z=>{Z.keyCode===nt.ESC&&P(!1,Z)},q=Z=>{P(Z)},G=Es(r),K=Es(i);return l.createElement(sr,{unique:!1,arrow:U,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,...w,prefixCls:j,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...H.root,...R,...y},container:H.container,arrow:H.arrow},ref:t,open:A,onOpenChange:q,overlay:G||K?l.createElement(HO,{prefixCls:j,title:G,content:K,classNames:_,styles:H}):null,motion:{motionName:Uo(Y,"zoom-big",typeof $?.motionName=="string"?$?.motionName:void 0)},"data-popover-inject":!0},tr(f,{onKeyDown:Z=>{l.isValidElement(f)&&f?.props.onKeyDown?.(Z),D(Z)}}))}),LO=m7;LO._InternalPanelDoNotUseOrYouWillBeFired=BO;const l2=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:Q(`${t}-only-unit`,{current:r})},n)};function p7(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const g7=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,d]=l.useState(i),[f,p]=l.useState(s),g=()=>{d(i),p(s)};l.useEffect(()=>{const S=setTimeout(g,1e3);return()=>clearTimeout(S)},[i]);let h,y;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(l2,{...e,key:i,current:!0})],y={transition:"none"};else{h=[];const S=i+10,b=[];for(let M=i;M<=S;M+=1)b.push(M);const $=f<s?1:-1,C=b.findIndex(M=>M%10===c);h=($<0?b.slice(0,C+1):b.slice(C)).map((M,x)=>{const R=M%10;return l.createElement(l2,{...e,key:M,value:R,offset:$<0?x-C:x,current:x===C})}),y={transform:`translateY(${-p7(c,i,$)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},h7=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:d,show:f,component:p="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),S=y("scroll-number",n),b={...h,"data-show":f,style:c,className:Q(S,i,s),title:d};let $=r;if(r&&Number(r)%1===0){const C=String(r).split("");$=l.createElement("bdi",null,C.map((w,M)=>l.createElement(g7,{prefixCls:S,count:Number(r),value:w,key:C.length-M})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?tr(g,C=>({className:Q(`${S}-custom-component`,C?.className,s)})):l.createElement(p,{...b,ref:t},$)}),y7=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),b7=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),v7=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),S7=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),C7=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),$7=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),x7=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:p,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:S}=e,b=`${r}-scroll-number`,$=vp(e,(C,{darkColor:w})=>({[`&${t} ${t}-color-${C}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Zt(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:p,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:S(g).div(2).equal(),boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`,transition:`background ${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:S(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(i)} ${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:$7,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:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:y7,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:b7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:v7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:S7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:C7,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%)"}}}}},VO=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,p=e.colorErrorHover;return Ot(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},FO=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},w7=Pt("Badge",e=>{const t=VO(e);return x7(t)},FO),E7=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:i,status:s,text:c,color:d,count:f=null,overflowCount:p=99,dot:g=!1,size:h="default",title:y,offset:S,style:b,className:$,rootClassName:C,classNames:w,styles:M,showZero:x=!1,...R}=e,{getPrefixCls:T,direction:N,className:O,style:z,classNames:j,styles:W}=It("badge"),F=T("badge",n),[Y,U]=w7(F),L={...e,overflowCount:p,size:h,dot:g,showZero:x},[B,_]=Lt([j,w],[W,M],{props:L}),H=f>p?`${p}+`:f,I=H==="0"||H===0||c==="0"||c===0,A=f===null||I&&!x,V=(Er(s)||Er(d))&&A,P=Er(s)||!I,D=g&&!I,q=D?"":H,G=l.useMemo(()=>((!Er(q)||q==="")&&(!Er(c)||c==="")||I&&!x)&&!D,[q,I,x,D,c]),K=l.useRef(f);G||(K.current=f);const Z=K.current,J=l.useRef(q);G||(J.current=q);const ie=J.current,ne=l.useRef(D);G||(ne.current=D);const oe=l.useMemo(()=>{if(!S)return{...z,...b};const Ce=Number.parseInt(S[0],10);return{...{marginTop:S[1],insetInlineEnd:-Ce},...z,...b}},[S,b,z]),ue=y??(typeof Z=="string"||typeof Z=="number"?Z:void 0),le=!G&&(c===0?x:!!c&&c!==!0),fe=le?l.createElement("span",{className:`${F}-status-text`},c):null,ge=!Z||typeof Z!="object"?void 0:tr(Z,Ce=>({style:{...oe,...Ce.style}})),re=Ap(d,!1),ce=Q(B.indicator,{[`${F}-status-dot`]:V,[`${F}-status-${s}`]:!!s,[`${F}-color-${d}`]:re}),he={};d&&!re&&(he.color=d,he.background=d);const pe=Q(F,{[`${F}-status`]:V,[`${F}-not-a-wrapper`]:!i,[`${F}-rtl`]:N==="rtl"},$,C,O,B.root,Y,U);if(!i&&V&&(c||P||!A)){const Ce=oe.color;return l.createElement("span",{...R,className:pe,style:{..._.root,...oe}},l.createElement("span",{className:ce,style:{..._.indicator,...he}}),le&&l.createElement("span",{style:{color:Ce},className:`${F}-status-text`},c))}return l.createElement("span",{ref:t,...R,className:pe,style:_.root},i,l.createElement(vr,{visible:!G,motionName:`${F}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Ce})=>{const de=T("scroll-number",r),ye=ne.current,Se=Q(B.indicator,{[`${F}-dot`]:ye,[`${F}-count`]:!ye,[`${F}-count-sm`]:h==="small",[`${F}-multiple-words`]:!ye&&ie&&ie.toString().length>1,[`${F}-status-${s}`]:!!s,[`${F}-color-${d}`]:re});let Ee={..._.indicator,...oe};return d&&!re&&(Ee=Ee||{},Ee.background=d),l.createElement(h7,{prefixCls:de,show:!G,motionClassName:Ce,className:Se,count:ie,title:ue,style:Ee,key:"scrollNumber"},ge)}),fe)}),M7=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=vp(e,(p,{darkColor:g})=>({[`&${c}-color-${p}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Zt(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:i,height:i,color:"currentcolor",border:`${te(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},R7=Pt(["Badge","Ribbon"],e=>{const t=VO(e);return M7(t)},FO),T7=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:d="end",rootClassName:f,styles:p,classNames:g}=e,{getPrefixCls:h,direction:y,className:S,style:b,classNames:$,styles:C}=It("ribbon"),w=h("ribbon",n),M=`${w}-wrapper`,[x,R]=R7(w,M),T={...e,placement:d},[N,O]=Lt([$,g],[C,p],{props:T}),z=Ap(i,!1),j=Q(w,`${w}-placement-${d}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${i}`]:z},t,S,N.indicator),W={},F={};return i&&!z&&(W.background=i,F.color=i),l.createElement("div",{className:Q(M,f,x,R,N.root),style:O.root},s,l.createElement("div",{className:Q(j,x),style:{...W,...O.indicator,...b,...r}},l.createElement("span",{className:Q(`${w}-content`,N.content),style:O.content},c),l.createElement("div",{className:`${w}-corner`,style:F})))},ui=E7;ui.Ribbon=T7;var O7={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 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)}const N7=(e,t)=>l.createElement(gt,Ov({},e,{ref:t,icon:O7})),xu=l.forwardRef(N7),{ESC:I7,TAB:P7}=nt;function z7({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>i.current?.focus?(i.current.focus(),s.current=!0,!0):!1,f=p=>{switch(p.keyCode){case I7:c();break;case P7:{let g=!1;s.current||(g=d()),g?p.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&_t(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:i}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=rr(t,nl(s));return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:`${i}-arrow`}),ae.cloneElement(s,{ref:tl(s)?c:void 0}))}),es={adjustX:1,adjustY:1},ts=[0,0],D7={topLeft:{points:["bl","tl"],overflow:es,offset:[0,-4],targetOffset:ts},top:{points:["bc","tc"],overflow:es,offset:[0,-4],targetOffset:ts},topRight:{points:["br","tr"],overflow:es,offset:[0,-4],targetOffset:ts},bottomLeft:{points:["tl","bl"],overflow:es,offset:[0,4],targetOffset:ts},bottom:{points:["tc","bc"],overflow:es,offset:[0,4],targetOffset:ts},bottomRight:{points:["tr","br"],overflow:es,offset:[0,4],targetOffset:ts}};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 kO=ae.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:s,align:c,placement:d="bottomLeft",placements:f=D7,getPopupContainer:p,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:S,visible:b,trigger:$=["hover"],autoFocus:C,overlay:w,children:M,onVisibleChange:x,...R}=e,[T,N]=ae.useState(),O="visible"in e?b:T,z=s?`${r}-${s}`:i,j=ae.useRef(null),W=ae.useRef(null),F=ae.useRef(null);ae.useImperativeHandle(t,()=>j.current);const Y=V=>{N(V),x?.(V)};z7({visible:O,triggerRef:F,onVisibleChange:Y,autoFocus:C,overlayRef:W});const U=V=>{const{onOverlayClick:P}=e;N(!1),P&&P(V)},L=()=>ae.createElement(A7,{ref:W,overlay:w,prefixCls:r,arrow:n}),B=()=>typeof w=="function"?L:L(),_=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:P}=e;return"minOverlayWidthMatchTrigger"in e?V:!P},H=()=>{const{openClassName:V}=e;return V!==void 0?V:`${r}-open`},I=ae.cloneElement(M,{className:Q(M.props?.className,O&&H()),ref:tl(M)?rr(F,nl(M)):void 0});let A=h;return!A&&$.indexOf("contextMenu")!==-1&&(A=["click"]),ae.createElement(sd,Nv({builtinPlacements:f},R,{prefixCls:r,ref:j,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:S,action:$,showAction:g,hideAction:A,popupPlacement:d,popupAlign:c,popupMotion:{motionName:z},popupVisible:O,stretch:_()?"minWidth":"",popup:B(),onOpenChange:Y,onPopupClick:U,getPopupContainer:p}),I)}),j7=e=>typeof e!="object"&&typeof e!="function"||e===null,WO=l.createContext(null);function qO(e,t){return`${e}-${t}`}function YO(e){const t=l.useContext(WO);return qO(t,e)}const Ao=l.createContext(null);function _7(e,t){const n={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function wu({children:e,locked:t,...n}){const r=l.useContext(Ao),i=td(()=>_7(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!pu(s[1],c[1],!0)));return l.createElement(Ao.Provider,{value:i},e)}const H7=[],UO=l.createContext(null);function Dp(){return l.useContext(UO)}const GO=l.createContext(H7);function Ds(e){const t=l.useContext(GO);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const XO=l.createContext(null),YS=l.createContext({});function s2(e,t=!1){if(Cp(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i);let c=null;return i&&!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 B7(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>s2(r,t));return s2(e,t)&&n.unshift(e),n}function KO(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)}}}const{LEFT:Iv,RIGHT:Pv,UP:zv,DOWN:vm,ENTER:Sm,ESC:QO,HOME:Ac,END:Dc}=nt,c2=[zv,vm,Iv,Pv];function L7(e,t,n,r){const i="prev",s="next",c="children",d="parent";if(e==="inline"&&r===Sm)return{inlineTrigger:!0};const f={[zv]:i,[vm]:s},p={[Iv]:n?s:i,[Pv]:n?i:s,[vm]:c,[Sm]:c},g={[zv]:i,[vm]:s,[Sm]:c,[QO]:d,[Iv]:n?c:d,[Pv]:n?d:c};switch({inline:f,horizontal:p,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case i: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 V7(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 US(e,t){return B7(e,!0).filter(r=>t.has(r))}function u2(e,t,n,r=1){if(!e)return null;const i=US(e,t),s=i.length;let c=i.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}const Um=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${qO(t,s)}']`);c&&(n.add(c),i.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:i}};function k7(e,t,n,r,i,s,c,d,f,p){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{_t.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),S=>{const{which:b}=S;if([...c2,Sm,QO,Ac,Dc].includes(b)){const $=s();let C=Um($,r);const{elements:w,key2element:M,element2key:x}=C,R=M.get(t),T=F7(R,w),N=x.get(T),O=L7(e,c(N,!0).length===1,n,b);if(!O&&b!==Ac&&b!==Dc)return;(c2.includes(b)||[Ac,Dc].includes(b))&&S.preventDefault();const z=j=>{if(j){let W=j;const F=j.querySelector("a");F?.getAttribute("href")&&(W=F);const Y=x.get(j);d(Y),y(),g.current=_t(()=>{h.current===Y&&W.focus()})}};if([Ac,Dc].includes(b)||O.sibling||!T){let j;!T||e==="inline"?j=i.current:j=V7(T);let W;const F=US(j,w);b===Ac?W=F[0]:b===Dc?W=F[F.length-1]:W=u2(j,w,T,O.offset),z(W)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=_t(()=>{C=Um($,r);const j=T.getAttribute("aria-controls"),W=document.getElementById(j),F=u2(W,C.elements);z(F)},5);else if(O.offset<0){const j=c(N,!0),W=j[j.length-2],F=M.get(W);f(W,!1),z(F)}}p?.(S)}}function W7(e){Promise.resolve().then(e)}const GS="__RC_UTIL_PATH_SPLIT__",d2=e=>e.join(GS),q7=e=>e.split(GS),Av="rc-menu-more";function Y7(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,i]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback(($,C)=>{const w=d2(C);n.current.set(w,$),t.current.set($,w),s.current+=1;const M=s.current;W7(()=>{M===s.current&&d()})},[]),p=l.useCallback(($,C)=>{const w=d2(C);n.current.delete(w),t.current.delete($)},[]),g=l.useCallback($=>{i($)},[]),h=l.useCallback(($,C)=>{const w=t.current.get($)||"",M=q7(w);return C&&r.includes(M[0])&&M.unshift(Av),M},[r]),y=l.useCallback(($,C)=>$.filter(w=>w!==void 0).some(w=>h(w,!0).includes(C)),[h]),S=()=>{const $=[...t.current.keys()];return r.length&&$.push(Av),$},b=l.useCallback($=>{const C=`${t.current.get($)}${GS}`,w=new Set;return[...n.current.keys()].forEach(M=>{M.startsWith(C)&&w.add(n.current.get(M))}),w},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:S,getSubPathKeys:b}}function Xc(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function ZO(e,t,n,r){const{activeKey:i,onActive:s,onInactive:c}=l.useContext(Ao),d={active:i===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 JO(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(Ao);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function e6({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 Gm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(er(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Eu(){return Eu=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},Eu.apply(this,arguments)}class U7 extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...i}=this.props,s=nn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return er(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(qo.Item,Eu({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const G7=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:i,warnKey:s,disabled:c,itemIcon:d,children:f,role:p,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:S,onFocus:b,...$}=e,C=YO(i),{prefixCls:w,onItemClick:M,disabled:x,overflowDisabled:R,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(Ao),{_internalRenderMenuItem:z}=l.useContext(YS),j=`${w}-item`,W=l.useRef(),F=l.useRef(),Y=x||c,U=fi(t,F),L=Ds(i),B=Z=>({key:i,keyPath:[...L].reverse(),item:W.current,domEvent:Z}),_=d||T,{active:H,...I}=ZO(i,Y,g,h),A=N.includes(i),V=JO(L.length),P=Z=>{if(Y)return;const J=B(Z);y?.(Gm(J)),M(J)},D=Z=>{if(S?.(Z),Z.which===nt.ENTER){const J=B(Z);y?.(Gm(J)),M(J)}},q=Z=>{O(i),b?.(Z)},G={};e.role==="option"&&(G["aria-selected"]=A);let K=l.createElement(U7,Eu({ref:W,elementRef:U,role:p===null?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&C?null:C},nn($,["extra"]),I,G,{component:"li","aria-disabled":c,style:{...V,...n},className:Q(j,{[`${j}-active`]:H,[`${j}-selected`]:A,[`${j}-disabled`]:Y},r),onClick:P,onKeyDown:D,onFocus:q}),f,l.createElement(e6,{props:{...e,isSelected:A},icon:_}));return z&&(K=z(K,e,{selected:A})),K});function X7(e,t){const{eventKey:n}=e,r=Dp(),i=Ds(n);return l.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:l.createElement(G7,Eu({},e,{ref:t}))}const vd=l.forwardRef(X7);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 K7=({className:e,children:t,...n},r)=>{const{prefixCls:i,mode:s,rtl:c}=l.useContext(Ao);return l.createElement("ul",Dv({className:Q(i,c&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},t6=l.forwardRef(K7);function XS(e,t){return cr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:i}=n;let s=n.props?.eventKey??i;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}const wr={adjustX:1,adjustY:1},Q7={topLeft:{points:["bl","tl"],overflow:wr},topRight:{points:["br","tr"],overflow:wr},bottomLeft:{points:["tl","bl"],overflow:wr},bottomRight:{points:["tr","br"],overflow:wr},leftTop:{points:["tr","tl"],overflow:wr},leftBottom:{points:["br","bl"],overflow:wr},rightTop:{points:["tl","tr"],overflow:wr},rightBottom:{points:["bl","br"],overflow:wr}},Z7={topLeft:{points:["bl","tl"],overflow:wr},topRight:{points:["br","tr"],overflow:wr},bottomLeft:{points:["tl","bl"],overflow:wr},bottomRight:{points:["tr","br"],overflow:wr},rightTop:{points:["tr","tl"],overflow:wr},rightBottom:{points:["br","bl"],overflow:wr},leftTop:{points:["tl","tr"],overflow:wr},leftBottom:{points:["bl","br"],overflow:wr}};function n6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const J7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function eB({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:p}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:S,builtinPlacements:b,triggerSubMenuAction:$,forceSubMenuRender:C,rootClassName:w,motion:M,defaultMotions:x}=l.useContext(Ao),[R,T]=l.useState(!1),N=h?{...Z7,...b}:{...Q7,...b},O=J7[f],z=n6(f,M,x),j=l.useRef(z);f!=="inline"&&(j.current=z);const W={...j.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},F=l.useRef();return l.useEffect(()=>(F.current=_t(()=>{T(t)}),()=>{_t.cancel(F.current)}),[t]),l.createElement(sd,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:h},s,w),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:O,popupVisible:R,popup:r,popupStyle:i,popupAlign:c&&{offset:c},action:d?[]:[$],mouseEnterDelay:y,mouseLeaveDelay:S,onPopupVisibleChange:p,forceRender:C,popupMotion:W,fresh:!0},n)}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)}function tB({id:e,open:t,keyPath:n,children:r}){const i="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:p}=l.useContext(Ao),g=l.useRef(!1);g.current=p===i;const[h,y]=l.useState(!g.current),S=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[p]);const b={...n6(i,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(wu,{mode:i,locked:!g.current},l.createElement(vr,jv({visible:S},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:C,style:w})=>l.createElement(t6,{id:e,className:C,style:w},r)))}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)}const nB=l.forwardRef((e,t)=>{const{style:n,className:r,styles:i,classNames:s,title:c,eventKey:d,warnKey:f,disabled:p,internalPopupClose:g,children:h,itemIcon:y,expandIcon:S,popupClassName:b,popupOffset:$,popupStyle:C,onClick:w,onMouseEnter:M,onMouseLeave:x,onTitleClick:R,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...z}=e,j=YO(d),{prefixCls:W,mode:F,openKeys:Y,disabled:U,overflowDisabled:L,activeKey:B,selectedKeys:_,itemIcon:H,expandIcon:I,onItemClick:A,onOpenChange:V,onActive:P,popupRender:D}=l.useContext(Ao),{_internalRenderSubMenuItem:q}=l.useContext(YS),{isSubPathKey:G}=l.useContext(XO),K=Ds(),Z=`${W}-submenu`,J=U||p,ie=l.useRef(),ne=l.useRef(),oe=y??H,ue=S??I,le=Y.includes(d),fe=!L&&le,ge=G(_,d),{active:re,...ce}=ZO(d,J,T,N),[he,pe]=l.useState(!1),Ce=ve=>{J||pe(ve)},de=ve=>{Ce(!0),M?.({key:d,domEvent:ve})},ye=ve=>{Ce(!1),x?.({key:d,domEvent:ve})},Se=l.useMemo(()=>re||(F!=="inline"?he||G([B],d):!1),[F,re,B,he,d,G]),Ee=JO(K.length),Pe=ve=>{J||(R?.({key:d,domEvent:ve}),F==="inline"&&V(d,!le))},Ae=Xc(ve=>{w?.(Gm(ve)),A(ve)}),Ye=ve=>{F!=="inline"&&V(d,ve)},Ue=()=>{P(d)},Xe=j&&`${j}-popup`,et=l.useMemo(()=>l.createElement(e6,{icon:F!=="horizontal"?ue:void 0,props:{...e,isOpen:fe,isSubMenu:!0}},l.createElement("i",{className:`${Z}-arrow`})),[F,ue,e,fe,Z]);let Te=l.createElement("div",Mu({role:"menuitem",style:Ee,className:`${Z}-title`,tabIndex:J?null:-1,ref:ie,title:typeof c=="string"?c:null,"data-menu-id":L&&j?null:j,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":J,onClick:Pe,onFocus:Ue},ce),c,et);const _e=l.useRef(F);F!=="inline"&&K.length>1?_e.current="vertical":_e.current=F;const Le=_e.current,Qe=l.useMemo(()=>{const ve=l.createElement(wu,{classNames:s,styles:i,mode:Le==="horizontal"?"vertical":Le},l.createElement(t6,{id:Xe,ref:ne},h)),Oe=O||D;return Oe?Oe(ve,{item:e,keys:K}):ve},[O,D,K,Xe,h,e,Le]);if(!L){const ve=_e.current;Te=l.createElement(eB,{mode:ve,prefixCls:Z,visible:!g&&fe&&F!=="inline",popupClassName:b,popupOffset:$,popupStyle:C,popup:Qe,disabled:J,onVisibleChange:Ye},Te)}let ze=l.createElement(qo.Item,Mu({ref:t,role:"none"},z,{component:"li",style:n,className:Q(Z,`${Z}-${F}`,r,{[`${Z}-open`]:fe,[`${Z}-active`]:Se,[`${Z}-selected`]:ge,[`${Z}-disabled`]:J}),onMouseEnter:de,onMouseLeave:ye}),Te,!L&&l.createElement(tB,{id:Xe,open:fe,keyPath:K},h));return q&&(ze=q(ze,e,{selected:ge,active:Se,open:fe,disabled:J})),l.createElement(wu,{classNames:s,styles:i,onItemClick:Ae,mode:F==="horizontal"?"vertical":F,itemIcon:oe,expandIcon:ue},ze)}),jp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=Ds(n),s=XS(r,i),c=Dp();l.useEffect(()=>{if(c)return c.registerPath(n,i),()=>{c.unregisterPath(n,i)}},[i]);let d;return c?d=s:d=l.createElement(nB,Mu({ref:t},e),s),l.createElement(GO.Provider,{value:i},d)});function KS({className:e,style:t}){const{prefixCls:n}=l.useContext(Ao);return Dp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}function Xm(){return Xm=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},Xm.apply(this,arguments)}const rB=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:i,children:s,...c}=e,{prefixCls:d,classNames:f,styles:p}=l.useContext(Ao),g=`${d}-item-group`;return l.createElement("li",Xm({ref:t,role:"presentation"},c,{onClick:h=>h.stopPropagation(),className:Q(g,n)}),l.createElement("div",{role:"presentation",className:Q(`${g}-title`,f?.listTitle),style:p?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:Q(`${g}-list`,f?.list),style:p?.list},s))}),QS=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=Ds(n),s=XS(r,i);return Dp()?s:l.createElement(rB,Xm({ref:t},nn(e,["warnKey"])),s)});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)}function _v(e,t,n){const{item:r,group:i,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:p,children:g,key:h,type:y,extra:S,...b}=d,$=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(i,us({key:$},b,{title:p}),_v(g,t,n)):l.createElement(s,us({key:$},b,{title:p}),_v(g,t,n)):y==="divider"?l.createElement(c,us({key:$},b)):l.createElement(r,us({key:$},b,{extra:S}),p,(!!S||S===0)&&l.createElement("span",{className:`${n}-item-extra`},S))}return null}).filter(d=>d)}function f2(e,t,n,r,i){let s=e;const c={divider:KS,item:vd,group:QS,submenu:jp,...r};return t&&(s=_v(t,c,i)),XS(s,n)}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 zi=[],oB=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:i,className:s,styles:c,classNames:d,tabIndex:f=0,items:p,children:g,direction:h,id:y,mode:S="vertical",inlineCollapsed:b,disabled:$,disabledOverflow:C,subMenuOpenDelay:w=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:x,defaultOpenKeys:R,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:z=!0,multiple:j=!1,defaultSelectedKeys:W,selectedKeys:F,onSelect:Y,onDeselect:U,inlineIndent:L=24,motion:B,defaultMotions:_,triggerSubMenuAction:H="hover",builtinPlacements:I,itemIcon:A,expandIcon:V,overflowedIndicator:P="...",overflowedIndicatorPopupClassName:D,getPopupContainer:q,onClick:G,onOpenChange:K,onKeyDown:Z,openAnimation:J,openTransitionName:ie,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe,_internalComponents:ue,popupRender:le,...fe}=e,[ge,re]=l.useMemo(()=>[f2(g,p,zi,ue,n),f2(g,p,zi,{},n)],[g,p,ue]),[ce,he]=l.useState(!1),pe=l.useRef(),Ce=Ea(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),de=h==="rtl",[ye,Se]=Yt(R,T),Ee=ye||zi,Pe=(Ke,Et=!1)=>{function mt(){Se(Ke),K?.(Ke)}Et?Ss.flushSync(mt):mt()},[Ae,Ye]=l.useState(Ee),Ue=l.useRef(!1),[Xe,et]=l.useMemo(()=>(S==="inline"||S==="vertical")&&b?["vertical",b]:[S,!1],[S,b]),Te=Xe==="inline",[_e,Le]=l.useState(Xe),[Qe,ze]=l.useState(et);l.useEffect(()=>{Le(Xe),ze(et),Ue.current&&(Te?Se(Ae):Pe(zi))},[Xe,et]);const[ve,Oe]=l.useState(0),Ze=ve>=ge.length-1||_e!=="horizontal"||C;l.useEffect(()=>{Te&&Ye(Ee)},[Ee]),l.useEffect(()=>(Ue.current=!0,()=>{Ue.current=!1}),[]);const{registerPath:qe,unregisterPath:Be,refreshOverflowKeys:Ne,isSubPathKey:Ge,getKeyPath:rt,getKeys:ot,getSubPathKeys:lt}=Y7(),St=l.useMemo(()=>({registerPath:qe,unregisterPath:Be}),[qe,Be]),Ct=l.useMemo(()=>({isSubPathKey:Ge}),[Ge]);l.useEffect(()=>{Ne(Ze?zi:ge.slice(ve+1).map(Ke=>Ke.key))},[ve,Ze]);const[ke,at]=Yt(N||O&&ge[0]?.key,N),je=Xc(Ke=>{at(Ke)}),Ie=Xc(()=>{at(void 0)});l.useImperativeHandle(t,()=>({list:pe.current,focus:Ke=>{const Et=ot(),{elements:mt,key2element:Rt,element2key:Ut}=Um(Et,Ce),an=US(pe.current,mt);let kt;ke&&Et.includes(ke)?kt=ke:kt=an[0]?Ut.get(an[0]):ge.find(En=>!En.props.disabled)?.key;const wn=Rt.get(kt);kt&&wn&&wn?.focus?.(Ke)},findItem:({key:Ke})=>{const Et=ot(),{key2element:mt}=Um(Et,Ce);return mt.get(Ke)||null}}));const[Fe,Me]=Yt(W||[],F),We=l.useMemo(()=>Array.isArray(Fe)?Fe:Fe==null?zi:[Fe],[Fe]),Je=Ke=>{if(z){const{key:Et}=Ke,mt=We.includes(Et);let Rt;j?mt?Rt=We.filter(an=>an!==Et):Rt=[...We,Et]:Rt=[Et],Me(Rt);const Ut={...Ke,selectedKeys:Rt};mt?U?.(Ut):Y?.(Ut)}!j&&Ee.length&&_e!=="inline"&&Pe(zi)},it=Xc(Ke=>{G?.(Gm(Ke)),Je(Ke)}),ft=Xc((Ke,Et)=>{let mt=Ee.filter(Rt=>Rt!==Ke);if(Et)mt.push(Ke);else if(_e!=="inline"){const Rt=lt(Ke);mt=mt.filter(Ut=>!Rt.has(Ut))}pu(Ee,mt,!0)||Pe(mt,!0)}),Dt=k7(_e,ke,de,Ce,pe,ot,rt,at,(Ke,Et)=>{const mt=Et??!Ee.includes(Ke);ft(Ke,mt)},Z);l.useEffect(()=>{he(!0)},[]);const $t=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe}),[ne,oe]),tn=_e!=="horizontal"||C?ge:ge.map((Ke,Et)=>l.createElement(wu,{key:Ke.key,overflowDisabled:Et>ve,classNames:d,styles:c},Ke)),wt=l.createElement(qo,Hv({id:y,ref:pe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:vd,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:de},r),dir:h,style:i,role:"menu",tabIndex:f,data:tn,renderRawItem:Ke=>Ke,renderRawRest:Ke=>{const Et=Ke.length,mt=Et?ge.slice(-Et):null;return l.createElement(jp,{eventKey:Av,title:P,disabled:Ze,internalPopupClose:Et===0,popupClassName:D},mt)},maxCount:_e!=="horizontal"||C?qo.INVALIDATE:qo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ke=>{Oe(Ke)},onKeyDown:Dt},fe));return l.createElement(YS.Provider,{value:$t},l.createElement(WO.Provider,{value:Ce},l.createElement(wu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:Ee,rtl:de,disabled:$,motion:ce?B:null,defaultMotions:ce?_:null,activeKey:ke,onActive:je,onInactive:Ie,selectedKeys:We,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:M,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:H,getPopupContainer:q,itemIcon:A,expandIcon:V,onItemClick:it,onOpenChange:ft,popupRender:le},l.createElement(XO.Provider,{value:Ct},wt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(UO.Provider,{value:St},re)))))}),js=oB;js.Item=vd;js.SubMenu=jp;js.ItemGroup=QS;js.Divider=KS;var aB={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 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 iB=(e,t)=>l.createElement(gt,Bv({},e,{ref:t,icon:aB})),lB=l.forwardRef(iB),r6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),sB=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:p,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:p,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},o6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,p=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:i,footerPadding:`${s}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:i}},a6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],i6=Pt("Layout",sB,o6,{deprecatedTokens:a6}),cB=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:p,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:S,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:p,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 ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,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:S,[`${t}-trigger`]:{color:b,background:$},[`${t}-zero-width-trigger`]:{color:b,background:$,border:`1px solid ${C}`,borderInlineStart:0}}}}},uB=Pt(["Layout","Sider"],cB,o6,{deprecatedTokens:a6}),m2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dB=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),_p=l.createContext({}),fB=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),l6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:p=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:S,breakpoint:b,onCollapse:$,onBreakpoint:C,...w}=e,{siderHook:M}=l.useContext(r6),[x,R]=l.useState("collapsed"in e?e.collapsed:c),[T,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const O=(J,ie)=>{"collapsed"in e||R(J),$?.(J,ie)},{getPrefixCls:z,direction:j}=l.useContext(dt),W=z("layout-sider",n),[F,Y]=uB(W),U=l.useRef(null);U.current=J=>{N(J.matches),C?.(J.matches),x!==J.matches&&O(J.matches,"responsive")},l.useEffect(()=>{function J(ne){return U.current?.(ne)}let ie;return typeof window?.matchMedia<"u"&&b&&b in m2&&(ie=window.matchMedia(`screen and (max-width: ${m2[b]})`),typeof ie?.addEventListener=="function"&&ie.addEventListener("change",J),J(ie)),()=>{typeof ie?.removeEventListener=="function"&&ie.removeEventListener("change",J)}},[b]),l.useEffect(()=>{const J=fB("ant-sider-");return M.addSider(J),()=>M.removeSider(J)},[]);const L=()=>{O(!x,"clickTrigger")},B=nn(w,["collapsed"]),_=x?y:h,H=dB(_)?`${_}px`:String(_),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:L,className:Q(`${W}-zero-width-trigger`,`${W}-zero-width-trigger-${g?"right":"left"}`),style:S},i||l.createElement(lB,null)):null,A=j==="rtl"==!g,D={expanded:A?l.createElement($s,null):l.createElement(xu,null),collapsed:A?l.createElement(xu,null):l.createElement($s,null)}[x?"collapsed":"expanded"],q=i!==null?I||l.createElement("div",{className:`${W}-trigger`,onClick:L,style:{width:H}},i||D):null,G={...f,flex:`0 0 ${H}`,maxWidth:H,minWidth:H,width:H},K=Q(W,`${W}-${d}`,{[`${W}-collapsed`]:!!x,[`${W}-has-trigger`]:p&&i!==null&&!I,[`${W}-below`]:!!T,[`${W}-zero-width`]:Number.parseFloat(H)===0},r,F,Y),Z=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(_p.Provider,{value:Z},l.createElement("aside",{className:K,...B,style:G,ref:t},l.createElement("div",{className:`${W}-children`},s),p||T&&I?q:null))});var mB={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 Lv(){return Lv=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},Lv.apply(this,arguments)}const pB=(e,t)=>l.createElement(gt,Lv({},e,{ref:t,icon:mB})),ZS=l.forwardRef(pB),Km=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),s6=e=>{const{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),d=Q({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(KS,{className:d,...i})},c6=e=>{const{className:t,children:n,icon:r,title:i,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h,styles:y,classNames:S}=l.useContext(Km),b=R=>{const T=n?.[0],N=l.createElement("span",{className:Q(`${d}-title-content`,f?S.itemContent:S.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&&R&&f&&typeof T=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},T.charAt(0)):N},{siderCollapsed:$}=l.useContext(_p);let C=i;typeof i>"u"?C=f?n:"":i===!1&&(C="");const w={title:C};!$&&!h&&(w.title=null,w.open=!1);const M=cr(n).length;let x=l.createElement(vd,{...nn(e,["title","icon","danger"]),className:Q(f?S.item:S.subMenu.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?M+1:M)===1},t),style:{...f?y.item:y.subMenu.item,...e.style},title:typeof i=="string"?i:void 0},tr(r,R=>({className:Q(`${d}-item-icon`,f?S.itemIcon:S.subMenu.itemIcon,R.className),style:{...f?y.itemIcon:y.subMenu.itemIcon,...R.style}})),b(h));return g||(x=l.createElement(sr,{...w,placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},x)),x},Qm=l.createContext(null),gB=l.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.useContext(Qm),s=l.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=HP(n),d=fi(t,c?nl(n):null);return l.createElement(Qm.Provider,{value:s},l.createElement($a,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),hB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${i}`,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 ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},yB=({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)})`}}}}),p2=e=>Yo(e),g2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:s,groupTitleColor:c,itemBg:d,subMenuItemBg:f,itemSelectedBg:p,activeBarHeight:g,activeBarWidth:h,activeBarBorderWidth:y,motionDurationSlow:S,motionEaseInOut:b,motionEaseOut:$,itemPaddingInline:C,motionDurationMid:w,itemHoverColor:M,lineType:x,colorSplit:R,itemDisabledColor:T,dangerItemColor:N,dangerItemHoverColor:O,dangerItemSelectedColor:z,dangerItemActiveBg:j,dangerItemSelectedBg:W,popupBg:F,itemHoverBg:Y,itemActiveBg:U,menuSubMenuBg:L,horizontalItemSelectedColor:B,horizontalItemSelectedBg:_,horizontalItemBorderRadius:H,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...p2(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`]:{...p2(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:M}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:Y},"&:active":{backgroundColor:U}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:Y},"&:active":{backgroundColor:U}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:j}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:z},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:p,[`&${n}-item-danger`]:{backgroundColor:W}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:F},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:F},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${S} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:B}},"&-selected":{color:B,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:B}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${x} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(h)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${$}`,`opacity ${w} ${$}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:z}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${b}`,`opacity ${w} ${b}`].join(",")}}}}}},h2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:s,marginXS:c,itemMarginBlock:d,itemWidth:f,itemPaddingInline:p}=e,g=e.calc(s).add(i).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:p,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}}},bB=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:s,controlHeightLG:c,motionEaseOut:d,paddingXL:f,itemMarginInline:p,fontSizeLG:g,motionDurationFast:h,motionDurationSlow:y,paddingXS:S,boxShadowSecondary:b,collapsedWidth:$,collapsedIconSize:C}=e,w={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...h2(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...h2(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 ${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`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:w}},{[`${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(p)})`,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:i}},[`${t}-item-group-title`]:{...So,paddingInline:S}}}]},y2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,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 ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${r} ${s}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Os()},[`&${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"}}}},b2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,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:i,transition:[`background ${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)})`}}}}},vB=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:s,motionEaseInOut:c,paddingXS:d,padding:f,colorSplit:p,lineWidth:g,zIndexPopup:h,borderRadiusLG:y,subMenuItemBorderRadius:S,menuArrowSize:b,menuArrowOffset:$,lineType:C,groupTitleLineHeight:w,groupTitleFontSize:M}=e;return[{"":{[n]:{...Ki(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Zt(e),...Ki(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} 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:M,lineHeight:w,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${c}`,`background ${i} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${c}`,`background ${i} ${c}`,`padding ${s} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${c}`,`padding ${i} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-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:p,borderStyle:C,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...y2(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,...y2(e),...b2(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:S},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${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}},...b2(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"}}}]},SB=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:S,controlHeightLG:b,lineHeight:$,colorBgElevated:C,marginXXS:w,padding:M,fontSize:x,controlHeightSM:R,fontSizeLG:T,colorTextLightSolid:N,colorErrorHover:O}=e,z=e.activeBarWidth??0,j=e.activeBarBorderWidth??g,W=e.itemMarginInline??e.marginXXS,F=new en(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:S,itemHoverBg:S,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:z,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:j,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:W,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:$,collapsedWidth:b*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:M,horizontalLineHeight:`${b*1.15}px`,iconSize:x,iconMarginInlineEnd:R-x,collapsedIconSize:T,groupTitleFontSize:x,darkItemDisabledColor:new en(N).setA(.25).toRgbString(),darkItemColor:F,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:F,darkItemHoverColor:N,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:z?`calc(100% + ${j}px)`:`calc(100% - ${W*2}px)`}},CB=(e,t=e,n=!0)=>Pt("Menu",i=>{const{colorBgElevated:s,controlHeightLG:c,fontSize:d,darkItemColor:f,darkDangerItemColor:p,darkItemBg:g,darkSubMenuItemBg:h,darkItemSelectedColor:y,darkItemSelectedBg:S,darkDangerItemSelectedBg:b,darkItemHoverBg:$,darkGroupTitleColor:C,darkItemHoverColor:w,darkItemDisabledColor:M,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:T,popupBg:N,darkPopupBg:O}=i,z=i.calc(d).div(7).mul(5).equal(),j=Ot(i,{menuArrowSize:z,menuHorizontalHeight:i.calc(c).mul(1.15).equal(),menuArrowOffset:i.calc(z).mul(.25).equal(),menuSubMenuBg:s,calc:i.calc,popupBg:N}),W=Ot(j,{itemColor:f,itemHoverColor:w,groupTitleColor:C,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:O,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:S,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:$,itemDisabledColor:M,dangerItemColor:p,dangerItemHoverColor:x,dangerItemSelectedColor:R,dangerItemActiveBg:T,dangerItemSelectedBg:b,menuSubMenuBg:h,horizontalItemSelectedColor:y,horizontalItemSelectedBg:S});return[vB(j),hB(j),bB(j),g2(j,"light"),g2(W,"dark"),yB(j),zT(j),Go(j,"slide-up"),Go(j,"slide-down"),dd(j,"zoom-big")]},SB,{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),u6=e=>{const{popupClassName:t,icon:n,title:r,theme:i}=e,s=l.useContext(Km),{prefixCls:c,inlineCollapsed:d,theme:f,classNames:p,styles:g}=s,h=Ds();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,tr(n,C=>({className:Q(C.className,`${c}-item-icon`,p.itemIcon),style:{...C.style,...g.itemIcon}})),$?r:l.createElement("span",{className:`${c}-title-content`},r))}const S=l.useMemo(()=>({...s,firstLevel:!1}),[s]),[b]=mi("Menu");return l.createElement(Km.Provider,{value:S},l.createElement(jp,{...nn(e,["icon"]),title:y,classNames:{list:p.subMenu.list,listTitle:p.subMenu.itemTitle},styles:{list:g.subMenu.list,listTitle:g.subMenu.itemTitle},popupClassName:Q(c,t,p.popup.root,`${c}-${i||f}`),popupStyle:{zIndex:b,...e.popupStyle,...g.popup.root}}))};function Dy(e){return e===null||e===!1}const $B={item:c6,submenu:u6,divider:s6},xB=l.forwardRef((e,t)=>{const n=l.useContext(Qm),r=n||{},{prefixCls:i,className:s,style:c,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:h,rootClassName:y,mode:S,selectable:b,onClick:$,overflowedIndicatorPopupClassName:C,classNames:w,styles:M,...x}=e,{menu:R}=l.useContext(dt),{getPrefixCls:T,getPopupContainer:N,direction:O,className:z,style:j,classNames:W,styles:F}=It("menu"),Y=T(),U=nn(x,["collapsedWidth"]);r.validator?.({mode:S});const L=ut((...ne)=>{$?.(...ne),r.onClick?.()}),B=r.mode||S,_=b??r.selectable,H=g??h,I={...e,mode:B,inlineCollapsed:H,selectable:_,theme:d},[A,V]=Lt([W,w],[F,M],{props:I},{popup:{_default:"root"},subMenu:{_default:"item"}}),P={horizontal:{motionName:`${Y}-slide-up`},inline:TT(Y),other:{motionName:`${Y}-zoom-big`}},D=T("menu",i||r.prefixCls),q=or(D),[G,K]=CB(D,q,!n),Z=Q(`${D}-${d}`,z,s),J=l.useMemo(()=>{if(typeof f=="function"||Dy(f))return f||null;if(typeof r.expandIcon=="function"||Dy(r.expandIcon))return r.expandIcon||null;if(typeof R?.expandIcon=="function"||Dy(R?.expandIcon))return R?.expandIcon||null;const ne=f??r?.expandIcon??R?.expandIcon;return tr(ne,{className:Q(`${D}-submenu-expand-icon`,l.isValidElement(ne)?ne.props?.className:void 0)})},[f,r?.expandIcon,R?.expandIcon,D]),ie=l.useMemo(()=>({prefixCls:D,inlineCollapsed:H||!1,direction:O,firstLevel:!0,theme:d,mode:B,disableMenuItemTitleTooltip:p,classNames:A,styles:V}),[D,H,O,p,d,B,A,V]);return l.createElement(Qm.Provider,{value:null},l.createElement(Km.Provider,{value:ie},l.createElement(js,{getPopupContainer:N,overflowedIndicator:l.createElement(ZS,null),overflowedIndicatorPopupClassName:Q(D,`${D}-${d}`,C),classNames:{list:A.list,listTitle:A.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:B,selectable:_,onClick:L,...U,inlineCollapsed:H,style:{...V.root,...j,...c},className:Z,prefixCls:D,direction:O,defaultMotions:P,expandIcon:J,ref:t,rootClassName:Q(y,G,r.rootClassName,K,q,A.root),_internalComponents:$B})))}),Sd=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(_p);return l.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{n.current?.focus(i)}})),l.createElement(xB,{ref:n,...e,...r})});Sd.Item=c6;Sd.SubMenu=u6;Sd.Divider=s6;Sd.ItemGroup=QS;const wB=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},EB=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:s,antCls:c,iconCls:d,motionDurationMid:f,paddingBlock:p,fontSize:g,dropdownEdgeChildPadding:h,colorTextDisabled:y,fontSizeIcon:S,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(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:S}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:S},[`${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:Ep},[`&${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:Rp},[`&${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:Mp},[`&${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:Tp}}},WS(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`]:{...Zt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:$,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Co(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(p)} ${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(p)} ${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},...Co(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:S,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}}}},[Go(e,"slide-up"),Go(e,"slide-down"),xs(e,"move-up"),xs(e,"move-down"),dd(e,"zoom-big")]]},MB=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...zp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Pp(e)}),RB=Pt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,s=Ot(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[EB(s),wB(s)]},MB,{resetStyle:!1}),Hp=e=>{const{menu:t,arrow:n,prefixCls:r,children:i,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:S,onOpenChange:b,mouseEnterDelay:$=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:w=!0,placement:M="",transitionName:x,classNames:R,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:z,direction:j,getPopupContainer:W,className:F,style:Y,classNames:U,styles:L}=It("dropdown"),B={...e,mouseEnterDelay:$,mouseLeaveDelay:C,autoAdjustOverflow:w},[_,H]=Lt([U,R],[L,T],{props:B}),I={...Y,...y,...H.root},A=f||d,V=l.useMemo(()=>{const ye=z();return x!==void 0?x:M.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[z,M,x]),P=l.useMemo(()=>M?M.includes("Center")?M.slice(0,M.indexOf("Center")):M:j==="rtl"?"bottomRight":"bottomLeft",[M,j]),D=z("dropdown",r),q=or(D),[G,K]=RB(D,q),[,Z]=kr(),J=l.Children.only(j7(i)?l.createElement("span",null,i):i),ie=tr(J,{className:Q(`${D}-trigger`,{[`${D}-rtl`]:j==="rtl"},J.props.className),disabled:J.props.disabled??c}),ne=c?[]:s,oe=!!ne?.includes("contextMenu"),[ue,le]=Yt(!1,S),fe=ut(ye=>{b?.(ye,{source:"trigger"}),le(ye)}),ge=Q(g,h,G,K,q,F,_.root,{[`${D}-rtl`]:j==="rtl"}),re=AO({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:Z.marginXXS,arrowWidth:n?Z.sizePopupArrow:0,borderRadius:Z.borderRadius}),ce=ut(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),le(!1))}),he=()=>{const ye=nn(_,["root"]),Se=nn(H,["root"]);let Ee;return t?.items&&(Ee=l.createElement(Sd,{...t,classNames:{...ye,subMenu:{...ye}},styles:{...Se,subMenu:{...Se}}})),A&&(Ee=A(Ee)),Ee=l.Children.only(typeof Ee=="string"?l.createElement("span",null,Ee):Ee),l.createElement(gB,{prefixCls:`${D}-menu`,rootClassName:Q(K,q),expandIcon:l.createElement("span",{className:`${D}-menu-submenu-arrow`},j==="rtl"?l.createElement(xu,{className:`${D}-menu-submenu-arrow-icon`}):l.createElement($s,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:Pe})=>{}},Ee)},[pe,Ce]=mi("Dropdown",I.zIndex);let de=l.createElement(kO,{alignPoint:oe,...nn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:C,visible:ue,builtinPlacements:re,arrow:!!n,overlayClassName:ge,prefixCls:D,getPopupContainer:p||W,transitionName:V,trigger:ne,overlay:he,placement:P,onVisibleChange:fe,overlayStyle:{...I,zIndex:pe},autoDestroy:O??N},ie);return pe&&(de=l.createElement(ad.Provider,{value:Ce},de)),de},TB=Np(Hp,"align",void 0,"dropdown",e=>e),OB=e=>l.createElement(TB,{...e},l.createElement("span",null));Hp._InternalPanelDoNotUseOrYouWillBeFired=OB;var Cm={exports:{}},NB=Cm.exports,v2;function d6(){return v2||(v2=1,(function(e,t){(function(n,r){e.exports=r()})(NB,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",c="second",d="minute",f="hour",p="day",g="week",h="month",y="quarter",S="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+)?$/,w=/\[([^\]]+)]|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,M={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(L){var B=["th","st","nd","rd"],_=L%100;return"["+L+(B[(_-20)%10]||B[_]||B[0])+"]"}},x=function(L,B,_){var H=String(L);return!H||H.length>=B?L:""+Array(B+1-H.length).join(_)+L},R={s:x,z:function(L){var B=-L.utcOffset(),_=Math.abs(B),H=Math.floor(_/60),I=_%60;return(B<=0?"+":"-")+x(H,2,"0")+":"+x(I,2,"0")},m:function L(B,_){if(B.date()<_.date())return-L(_,B);var H=12*(_.year()-B.year())+(_.month()-B.month()),I=B.clone().add(H,h),A=_-I<0,V=B.clone().add(H+(A?-1:1),h);return+(-(H+(_-I)/(A?I-V:V-I))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:S,w:g,d:p,D:b,h:f,m:d,s:c,ms:s,Q:y}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},T="en",N={};N[T]=M;var O="$isDayjsObject",z=function(L){return L instanceof Y||!(!L||!L[O])},j=function L(B,_,H){var I;if(!B)return T;if(typeof B=="string"){var A=B.toLowerCase();N[A]&&(I=A),_&&(N[A]=_,I=A);var V=B.split("-");if(!I&&V.length>1)return L(V[0])}else{var P=B.name;N[P]=B,I=P}return!H&&I&&(T=I),I||!H&&T},W=function(L,B){if(z(L))return L.clone();var _=typeof B=="object"?B:{};return _.date=L,_.args=arguments,new Y(_)},F=R;F.l=j,F.i=z,F.w=function(L,B){return W(L,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var Y=(function(){function L(_){this.$L=j(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var B=L.prototype;return B.parse=function(_){this.$d=(function(H){var I=H.date,A=H.utc;if(I===null)return new Date(NaN);if(F.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var V=I.match(C);if(V){var P=V[2]-1||0,D=(V[7]||"0").substring(0,3);return A?new Date(Date.UTC(V[1],P,V[3]||1,V[4]||0,V[5]||0,V[6]||0,D)):new Date(V[1],P,V[3]||1,V[4]||0,V[5]||0,V[6]||0,D)}}return new Date(I)})(_),this.init()},B.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()},B.$utils=function(){return F},B.isValid=function(){return this.$d.toString()!==$},B.isSame=function(_,H){var I=W(_);return this.startOf(H)<=I&&I<=this.endOf(H)},B.isAfter=function(_,H){return W(_)<this.startOf(H)},B.isBefore=function(_,H){return this.endOf(H)<W(_)},B.$g=function(_,H,I){return F.u(_)?this[H]:this.set(I,_)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(_,H){var I=this,A=!!F.u(H)||H,V=F.p(_),P=function(ne,oe){var ue=F.w(I.$u?Date.UTC(I.$y,oe,ne):new Date(I.$y,oe,ne),I);return A?ue:ue.endOf(p)},D=function(ne,oe){return F.w(I.toDate()[ne].apply(I.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(oe)),I)},q=this.$W,G=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case S:return A?P(1,0):P(31,11);case h:return A?P(1,G):P(0,G+1);case g:var J=this.$locale().weekStart||0,ie=(q<J?q+7:q)-J;return P(A?K-ie:K+(6-ie),G);case p:case b:return D(Z+"Hours",0);case f:return D(Z+"Minutes",1);case d:return D(Z+"Seconds",2);case c:return D(Z+"Milliseconds",3);default:return this.clone()}},B.endOf=function(_){return this.startOf(_,!1)},B.$set=function(_,H){var I,A=F.p(_),V="set"+(this.$u?"UTC":""),P=(I={},I[p]=V+"Date",I[b]=V+"Date",I[h]=V+"Month",I[S]=V+"FullYear",I[f]=V+"Hours",I[d]=V+"Minutes",I[c]=V+"Seconds",I[s]=V+"Milliseconds",I)[A],D=A===p?this.$D+(H-this.$W):H;if(A===h||A===S){var q=this.clone().set(b,1);q.$d[P](D),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else P&&this.$d[P](D);return this.init(),this},B.set=function(_,H){return this.clone().$set(_,H)},B.get=function(_){return this[F.p(_)]()},B.add=function(_,H){var I,A=this;_=Number(_);var V=F.p(H),P=function(G){var K=W(A);return F.w(K.date(K.date()+Math.round(G*_)),A)};if(V===h)return this.set(h,this.$M+_);if(V===S)return this.set(S,this.$y+_);if(V===p)return P(1);if(V===g)return P(7);var D=(I={},I[d]=r,I[f]=i,I[c]=n,I)[V]||1,q=this.$d.getTime()+_*D;return F.w(q,this)},B.subtract=function(_,H){return this.add(-1*_,H)},B.format=function(_){var H=this,I=this.$locale();if(!this.isValid())return I.invalidDate||$;var A=_||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),P=this.$H,D=this.$m,q=this.$M,G=I.weekdays,K=I.months,Z=I.meridiem,J=function(oe,ue,le,fe){return oe&&(oe[ue]||oe(H,A))||le[ue].slice(0,fe)},ie=function(oe){return F.s(P%12||12,oe,"0")},ne=Z||function(oe,ue,le){var fe=oe<12?"AM":"PM";return le?fe.toLowerCase():fe};return A.replace(w,(function(oe,ue){return ue||(function(le){switch(le){case"YY":return String(H.$y).slice(-2);case"YYYY":return F.s(H.$y,4,"0");case"M":return q+1;case"MM":return F.s(q+1,2,"0");case"MMM":return J(I.monthsShort,q,K,3);case"MMMM":return J(K,q);case"D":return H.$D;case"DD":return F.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return J(I.weekdaysMin,H.$W,G,2);case"ddd":return J(I.weekdaysShort,H.$W,G,3);case"dddd":return G[H.$W];case"H":return String(P);case"HH":return F.s(P,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ne(P,D,!0);case"A":return ne(P,D,!1);case"m":return String(D);case"mm":return F.s(D,2,"0");case"s":return String(H.$s);case"ss":return F.s(H.$s,2,"0");case"SSS":return F.s(H.$ms,3,"0");case"Z":return V}return null})(oe)||V.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(_,H,I){var A,V=this,P=F.p(H),D=W(_),q=(D.utcOffset()-this.utcOffset())*r,G=this-D,K=function(){return F.m(V,D)};switch(P){case S:A=K()/12;break;case h:A=K();break;case y:A=K()/3;break;case g:A=(G-q)/6048e5;break;case p:A=(G-q)/864e5;break;case f:A=G/i;break;case d:A=G/r;break;case c:A=G/n;break;default:A=G}return I?A:F.a(A)},B.daysInMonth=function(){return this.endOf(h).$D},B.$locale=function(){return N[this.$L]},B.locale=function(_,H){if(!_)return this.$L;var I=this.clone(),A=j(_,H,!0);return A&&(I.$L=A),I},B.clone=function(){return F.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},L})(),U=Y.prototype;return W.prototype=U,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",p],["$M",h],["$y",S],["$D",b]].forEach((function(L){U[L[1]]=function(B){return this.$g(B,L[0],L[1])}})),W.extend=function(L,B){return L.$i||(L(B,Y,W),L.$i=!0),W},W.locale=j,W.isDayjs=z,W.unix=function(L){return W(1e3*L)},W.en=N[T],W.Ls=N,W.p={},W}))})(Cm)),Cm.exports}var IB=d6();const gn=wa(IB);var $m={exports:{}},PB=$m.exports,S2;function zB(){return S2||(S2=1,(function(e,t){(function(n,r){e.exports=r()})(PB,(function(){return function(n,r){r.prototype.weekday=function(i){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(i)?d:this.subtract(d,"day").add(i,"day")}}}))})($m)),$m.exports}var AB=zB();const DB=wa(AB);var xm={exports:{}},jB=xm.exports,C2;function _B(){return C2||(C2=1,(function(e,t){(function(n,r){e.exports=r()})(jB,(function(){return function(n,r,i){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,S,b,$){var C=h.name?h:h.$locale(),w=c(C[y]),M=c(C[S]),x=w||M.map((function(T){return T.slice(0,b)}));if(!$)return x;var R=C.weekStart;return x.map((function(T,N){return x[(N+(R||0))%7]}))},f=function(){return i.Ls[i.locale()]},p=function(h,y){return h.formats[y]||(function(S){return S.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 p(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},i.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(y){return p(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return d(f(),"months")},i.monthsShort=function(){return d(f(),"monthsShort","months",3)},i.weekdays=function(h){return d(f(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(xm)),xm.exports}var HB=_B();const BB=wa(HB);var wm={exports:{}},LB=wm.exports,$2;function VB(){return $2||($2=1,(function(e,t){(function(n,r){e.exports=r()})(LB,(function(){var n="week",r="year";return function(i,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 p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(p),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(p).startOf(n).subtract(1,"millisecond"),S=this.diff(y,n,!0);return S<0?c(this).startOf("week").week():Math.ceil(S)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(wm)),wm.exports}var FB=VB();const kB=wa(FB);var Em={exports:{}},WB=Em.exports,x2;function qB(){return x2||(x2=1,(function(e,t){(function(n,r){e.exports=r()})(WB,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),s=this.week(),c=this.year();return s===1&&i===11?c+1:i===0&&s>=52?c-1:c}}}))})(Em)),Em.exports}var YB=qB();const UB=wa(YB);var Mm={exports:{}},GB=Mm.exports,w2;function XB(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(GB,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var p=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 p.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.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)}}}))})(Mm)),Mm.exports}var KB=XB();const QB=wa(KB);var Rm={exports:{}},ZB=Rm.exports,E2;function JB(){return E2||(E2=1,(function(e,t){(function(n,r){e.exports=r()})(ZB,(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,i=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},p=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(w){this[C]=+w}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var M=w.match(/([+-]|\d\d)/g),x=60*M[1]+(+M[2]||0);return x===0?0:M[0]==="+"?-x:x})(C)}],y=function(C){var w=f[C];return w&&(w.indexOf?w:w.s.concat(w.f))},S=function(C,w){var M,x=f.meridiem;if(x){for(var R=1;R<=24;R+=1)if(C.indexOf(x(R,0,w))>-1){M=R>12;break}}else M=C===(w?"pm":"PM");return M},b={A:[d,function(C){this.afternoon=S(C,!1)}],a:[d,function(C){this.afternoon=S(C,!0)}],Q:[i,function(C){this.month=3*(C-1)+1}],S:[i,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 w=f.ordinal,M=C.match(/\d+/);if(this.day=M[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===C&&(this.day=x)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(C){var w=y("months"),M=(y("monthsShort")||w.map((function(x){return x.slice(0,3)}))).indexOf(C)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(C){var w=y("months").indexOf(C)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(C){this.year=p(C)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function $(C){var w,M;w=C,M=f&&f.formats;for(var x=(C=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,F,Y){var U=Y&&Y.toUpperCase();return F||M[Y]||n[Y]||M[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,B,_){return B||_.slice(1)}))}))).match(r),R=x.length,T=0;T<R;T+=1){var N=x[T],O=b[N],z=O&&O[0],j=O&&O[1];x[T]=j?{regex:z,parser:j}:N.replace(/^\[|\]$/g,"")}return function(W){for(var F={},Y=0,U=0;Y<R;Y+=1){var L=x[Y];if(typeof L=="string")U+=L.length;else{var B=L.regex,_=L.parser,H=W.slice(U),I=B.exec(H)[0];_.call(F,I),W=W.replace(I,"")}}return(function(A){var V=A.afternoon;if(V!==void 0){var P=A.hours;V?P<12&&(A.hours+=12):P===12&&(A.hours=0),delete A.afternoon}})(F),F}}return function(C,w,M){M.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(p=C.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(T){var N=T.date,O=T.utc,z=T.args;this.$u=O;var j=z[1];if(typeof j=="string"){var W=z[2]===!0,F=z[3]===!0,Y=W||F,U=z[2];F&&(U=z[2]),f=this.$locale(),!W&&U&&(f=M.Ls[U]),this.$d=(function(H,I,A,V){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*H);var P=$(I)(H),D=P.year,q=P.month,G=P.day,K=P.hours,Z=P.minutes,J=P.seconds,ie=P.milliseconds,ne=P.zone,oe=P.week,ue=new Date,le=G||(D||q?1:ue.getDate()),fe=D||ue.getFullYear(),ge=0;D&&!q||(ge=q>0?q-1:ue.getMonth());var re,ce=K||0,he=Z||0,pe=J||0,Ce=ie||0;return ne?new Date(Date.UTC(fe,ge,le,ce,he,pe,Ce+60*ne.offset*1e3)):A?new Date(Date.UTC(fe,ge,le,ce,he,pe,Ce)):(re=new Date(fe,ge,le,ce,he,pe,Ce),oe&&(re=V(re).week(oe).toDate()),re)}catch{return new Date("")}})(N,j,O,M),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),Y&&N!=this.format(j)&&(this.$d=new Date("")),f={}}else if(j instanceof Array)for(var L=j.length,B=1;B<=L;B+=1){z[1]=j[B-1];var _=M.apply(this,z);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}B===L&&(this.$d=new Date(""))}else R.call(this,T)}}}))})(Rm)),Rm.exports}var eL=JB();const tL=wa(eL);gn.extend(tL);gn.extend(QB);gn.extend(DB);gn.extend(BB);gn.extend(kB);gn.extend(UB);gn.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 nL={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"},Ai=function(t){var n=nL[t];return n||t.split("_")[0]},f6={getNow:function(){var t=gn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return gn(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 gn().locale(Ai(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Ai(t)).weekday(0)},getWeek:function(t,n){return n.locale(Ai(t)).week()},getShortWeekDays:function(t){return gn().locale(Ai(t)).localeData().weekdaysMin()},getShortMonths:function(t){return gn().locale(Ai(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Ai(t)).format(r)},parse:function(t,n,r){for(var i=Ai(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],p=d.split("-")[1],g=gn(f,"YYYY").startOf("year").locale(i),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===p)return y}return null}var S=gn(d,c,!0).locale(i);if(S.isValid())return S}return null}}};function rL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Do=l.createContext(null);function Ru(e){"@babel/helpers - typeof";return Ru=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},Ru(e)}function M2(e,t,n){return t=oL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oL(e){var t=aL(e,"string");return Ru(t)=="symbol"?t:String(t)}function aL(e,t){if(Ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iL={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 m6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,p=e.placement,g=e.builtinPlacements,h=g===void 0?iL:g,y=e.direction,S=e.visible,b=e.onClose,$=l.useContext(Do),C=$.prefixCls,w="".concat(C,"-dropdown"),M=rL(p,y==="rtl");return l.createElement(sd,{showAction:[],hideAction:["click"],popupPlacement:M,builtinPlacements:h,prefixCls:w,popupMotion:{motionName:s},popup:t,popupAlign:i,popupVisible:S,popupClassName:Q(r,M2(M2({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||b()}},d)}function lL(e){return dL(e)||uL(e)||cL(e)||sL()}function sL(){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 cL(e,t){if(e){if(typeof e=="string")return Vv(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 Vv(e,t)}}function uL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dL(e){if(Array.isArray(e))return Vv(e)}function Vv(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 JS(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 ll(e){return e==null?[]:Array.isArray(e)?e:[e]}function iu(e,t,n){var r=lL(e);return r[t]=n,r}function Bp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function p6(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 g6(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(s){return e[s]});return r!==i?e[i]:void 0}function h6(e){return Bp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(r){fL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fL(e,t,n){return t=mL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mL(e){var t=pL(e,"string");return Tu(t)=="symbol"?t:String(t)}function pL(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e1(e,t,n,r){var i=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 i(c,T2(T2({},d),{},{range:r}))},[i,r]);return s}function gL(e,t){return vL(e)||bL(e,t)||yL(e,t)||hL()}function hL(){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 yL(e,t){if(e){if(typeof e=="string")return O2(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 O2(e,t)}}function O2(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 bL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function vL(e){if(Array.isArray(e))return e}function y6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),i=gL(r,2),s=i[0],c=i[1],d=function(g,h){c(function(y){return iu(y,h,g)})},f=l.useMemo(function(){return s.map(function(p,g){if(p)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 Ou(e){"@babel/helpers - typeof";return Ou=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},Ou(e)}function N2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){SL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SL(e,t,n){return t=CL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CL(e){var t=$L(e,"string");return Ou(t)=="symbol"?t:String(t)}function $L(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(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,i){var s="",c=[];return e&&c.push(i?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),i&&(s+=" A"),s}function xL(e,t,n,r,i,s){var c=e.fieldDateTimeFormat,d=e.fieldDateFormat,f=e.fieldTimeFormat,p=e.fieldMonthFormat,g=e.fieldYearFormat,h=e.fieldWeekFormat,y=e.fieldQuarterFormat,S=e.yearFormat,b=e.cellYearFormat,$=e.cellQuarterFormat,C=e.dayFormat,w=e.cellDateFormat,M=b6(t,n,r,i,s);return I2(I2({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(M),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:f||M,fieldMonthFormat:p||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:y||"YYYY-[Q]Q",yearFormat:S||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:$||"[Q]Q",cellDateFormat:w||C||"D"})}function v6(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return ae.useMemo(function(){return xL(e,n,r,i,s,c)},[e,n,r,i,s,c])}function P2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P2(Object(n),!0).forEach(function(r){wL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wL(e,t,n){return t=EL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EL(e){var t=ML(e,"string");return Ji(t)=="symbol"?t:String(t)}function ML(e,t){if(Ji(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ji(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fv(e,t){return NL(e)||OL(e,t)||TL(e,t)||RL()}function RL(){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 TL(e,t){if(e){if(typeof e=="string")return z2(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 z2(e,t)}}function z2(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 OL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function NL(e){if(Array.isArray(e))return e}function Ji(e){"@babel/helpers - typeof";return Ji=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},Ji(e)}function jc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var IL=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function PL(e){var t=Bp(e,IL),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=Ji(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function zL(e){return e&&typeof e=="string"}function S6(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function C6(e,t,n,r,i){var s=t,c=n,d=r;if(!e&&!s&&!c&&!d&&!i)s=!0,c=!0,d=!0;else if(e){var f,p,g,h=[s,c,d].some(function(b){return b===!1}),y=[s,c,d].some(function(b){return b===!0}),S=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:S,c=(p=c)!==null&&p!==void 0?p:S,d=(g=d)!==null&&g!==void 0?g:S}return[s,c,d,i]}function $6(e){var t=e.showTime,n=PL(e),r=Fv(n,2),i=r[0],s=r[1],c=t&&Ji(t)==="object"?t:{},d=ds(ds({defaultOpenValue:c.defaultOpenValue||c.defaultValue},i),c),f=d.showMillisecond,p=d.showHour,g=d.showMinute,h=d.showSecond,y=S6(p,g,h,f),S=C6(y,p,g,h,f),b=Fv(S,3);return p=b[0],g=b[1],h=b[2],[d,ds(ds({},d),{},{showHour:p,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function x6(e,t,n,r,i){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=p6(e,i,null),f=d,p=[t,n],g=0;g<p.length;g+=1){var h=ll(p[g])[0];if(zL(h)){f=h;break}}var y=c.showHour,S=c.showMinute,b=c.showSecond,$=c.showMillisecond,C=c.use12Hours,w=jc(f,["a","A","LT","LLL","LTS"],C),M=S6(y,S,b,$);M||(y=jc(f,["H","h","k","LT","LLL"]),S=jc(f,["m","LT","LLL"]),b=jc(f,["s","LTS"]),$=jc(f,["SSS"]));var x=C6(M,y,S,b,$),R=Fv(x,3);y=R[0],S=R[1],b=R[2];var T=t||b6(y,S,b,$,w);return ds(ds({},c),{},{format:T,showHour:y,showMinute:S,showSecond:b,showMillisecond:$,use12Hours:w})}return null}function kv(e){"@babel/helpers - typeof";return kv=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},kv(e)}function AL(e,t,n){if(t===!1)return null;var r=t&&kv(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var jy=7;function gi(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Wv(e,t,n){return gi(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function el(e,t,n){return gi(t,n,function(){return e.getYear(t)===e.getYear(n)})}function A2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function DL(e,t,n){return gi(t,n,function(){return el(e,t,n)&&A2(e,t)===A2(e,n)})}function t1(e,t,n){return gi(t,n,function(){return el(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function n1(e,t,n){return gi(t,n,function(){return el(e,t,n)&&t1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function w6(e,t,n){return gi(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function E6(e,t,n){return gi(t,n,function(){return n1(e,t,n)&&w6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Kc(e,t,n,r){return gi(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return el(e,i,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Mr(e,t,n,r,i){switch(i){case"date":return n1(e,n,r);case"week":return Kc(e,t.locale,n,r);case"month":return t1(e,n,r);case"quarter":return DL(e,n,r);case"year":return el(e,n,r);case"decade":return Wv(e,n,r);case"time":return w6(e,n,r);default:return E6(e,n,r)}}function Lp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function kf(e,t,n,r,i){return Mr(e,t,n,r,i)?!0:e.isAfter(n,r)}function jL(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),s=t.getWeekDay(i),c=t.addDate(i,r-s);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function Jn(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function Zm(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,d){n?r=e[c](r,e[i[d]](n)):r=e[c](r,0)}),r}function _L(e,t,n,r,i){var s=ut(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Mr(e,t,r,c,d.type)||i&&e.isAfter(c,i)&&!Mr(e,t,i,c,d.type))});return s}function qv(e){"@babel/helpers - typeof";return qv=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},qv(e)}function HL(e,t,n){return l.useMemo(function(){var r=p6(e,t,n),i=ll(r),s=i[0],c=qv(s)==="object"&&s.type==="mask"?s.format:null;return[i.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),c]},[e,t,n])}function BL(e,t,n){return typeof e[0]=="function"||n?!0:t}function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(e)}function D2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){VL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VL(e,t,n){return t=FL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FL(e){var t=kL(e,"string");return Nu(t)=="symbol"?t:String(t)}function kL(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WL(e,t,n,r){var i=ut(function(s,c){var d=LL({type:t},c);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var f,p=c&&c.activeIndex===1?"end":"start",g=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,s,p,{from:d.from}))||{},h=g.disabledHours,y=g.disabledMinutes,S=g.disabledSeconds,b=g.disabledMilliseconds,$=r.disabledHours,C=r.disabledMinutes,w=r.disabledSeconds,M=h||$,x=y||C,R=S||w,T=e.getHour(s),N=e.getMinute(s),O=e.getSecond(s),z=e.getMillisecond(s);if(M&&M().includes(T)||x&&x(T).includes(N)||R&&R(T,N).includes(O)||b&&b(T,N,O).includes(z))return!0}return!1});return i}function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function j2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(n),!0).forEach(function(r){qL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qL(e,t,n){return t=YL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YL(e){var t=UL(e,"string");return Iu(t)=="symbol"?t:String(t)}function UL(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _2(e,t){return QL(e)||KL(e,t)||XL(e,t)||GL()}function GL(){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 XL(e,t){if(e){if(typeof e=="string")return H2(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 H2(e,t)}}function H2(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 KL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function QL(e){if(Array.isArray(e))return e}function Wf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&ll(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function M6(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,s=i===void 0?"date":i,c=e.prefixCls,d=c===void 0?"rc-picker":c,f=e.previewValue,p=f===void 0?"hover":f,g=e.styles,h=g===void 0?{}:g,y=e.classNames,S=y===void 0?{}:y,b=e.order,$=b===void 0?!0:b,C=e.components,w=C===void 0?{}:C,M=e.inputRender,x=e.allowClear,R=e.clearIcon,T=e.needConfirm,N=e.multiple,O=e.format,z=e.inputReadOnly,j=e.disabledDate,W=e.minDate,F=e.maxDate,Y=e.showTime,U=e.value,L=e.defaultValue,B=e.pickerValue,_=e.defaultPickerValue,H=Wf(U),I=Wf(L),A=Wf(B),V=Wf(_),P=s==="date"&&Y?"datetime":s,D=P==="time"||P==="datetime",q=D||N,G=T??D,K=$6(e),Z=_2(K,4),J=Z[0],ie=Z[1],ne=Z[2],oe=Z[3],ue=v6(r,ie),le=l.useMemo(function(){return x6(P,ne,oe,J,ue)},[P,ne,oe,J,ue]),fe=l.useMemo(function(){return _c(_c({},e),{},{previewValue:p,prefixCls:d,locale:ue,picker:s,styles:h,classNames:S,order:$,components:_c({input:M},w),clearIcon:AL(d,x,R),showTime:le,value:H,defaultValue:I,pickerValue:A,defaultPickerValue:V},t?.())},[e]),ge=HL(P,ue,O),re=_2(ge,2),ce=re[0],he=re[1],pe=BL(ce,z,N),Ce=_L(n,r,j,W,F),de=WL(n,s,Ce,le),ye=l.useMemo(function(){return _c(_c({},fe),{},{needConfirm:G,inputReadOnly:pe,disabledDate:Ce})},[fe,G,pe,Ce]);return[ye,P,q,ce,he,de]}function B2(e,t){return tV(e)||eV(e,t)||JL(e,t)||ZL()}function ZL(){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 JL(e,t){if(e){if(typeof e=="string")return L2(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 L2(e,t)}}function L2(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 eV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function tV(e){if(Array.isArray(e))return e}function nV(e,t,n){var r=Yt(t,e),i=B2(r,2),s=i[0],c=i[1],d=ae.useState({}),f=B2(d,2),p=f[1],g=ut(function(C){c(C),p({})}),h=ae.useRef(e),y=ae.useRef(),S=function(){_t.cancel(y.current)},b=ut(function(){g(h.current),n&&s!==h.current&&n(h.current)}),$=ut(function(C,w){S(),h.current=C,C||w?b():y.current=_t(b)});return ae.useEffect(function(){return S},[]),[s,$]}function rV(e,t){return lV(e)||iV(e,t)||aV(e,t)||oV()}function oV(){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 aV(e,t){if(e){if(typeof e=="string")return V2(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 V2(e,t)}}function V2(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 iV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function lV(e){if(Array.isArray(e))return e}function R6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(g){return g})?!1:e,s=nV(i,t||!1,r),c=rV(s,2),d=c[0],f=c[1];function p(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!h.inherit||d)&&f(g,h.force)}return[d,p]}function T6(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(i){var s;(s=t.current)===null||s===void 0||s.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function sV(e,t){return fV(e)||dV(e,t)||uV(e,t)||cV()}function cV(){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 uV(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 dV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function fV(e){if(Array.isArray(e))return e}function O6(e,t){return l.useMemo(function(){return e||(t?(er(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=sV(n,2),i=r[0],s=r[1];return{label:i,value:s}})):[])},[e,t])}function r1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,K4(function(){if(e)r.current(e);else{var i=_t(function(){r.current(e)},n);return function(){_t.cancel(i)}}},[e])}function k2(e,t){return hV(e)||gV(e,t)||pV(e,t)||mV()}function mV(){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 pV(e,t){if(e){if(typeof e=="string")return W2(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 W2(e,t)}}function W2(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 gV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function hV(e){if(Array.isArray(e))return e}function N6(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),i=k2(r,2),s=i[0],c=i[1],d=l.useState(!1),f=k2(d,2),p=f[0],g=f[1],h=l.useRef([]),y=l.useRef(null),S=l.useRef(null),b=function(R){y.current=R},$=function(R){return y.current===R},C=function(R){g(R)},w=function(R){return R&&(S.current=R),S.current},M=function(R){var T=h.current,N=new Set(T.filter(function(z){return R[z]||t[z]})),O=T[T.length-1]===0?1:0;return N.size>=2||e[O]?null:O};return r1(p||n,function(){p||(h.current=[],b(null))}),l.useEffect(function(){p&&h.current.push(s)},[p,s]),[p,C,w,s,c,M,h.current,b,$]}function Pu(e){"@babel/helpers - typeof";return Pu=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},Pu(e)}function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y2(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){yV(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 yV(e,t,n){return t=bV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bV(e){var t=vV(e,"string");return Pu(t)=="symbol"?t:String(t)}function vV(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SV(e,t){return wV(e)||xV(e,t)||$V(e,t)||CV()}function CV(){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 $V(e,t){if(e){if(typeof e=="string")return U2(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 U2(e,t)}}function U2(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 xV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function wV(e){if(Array.isArray(e))return e}function EV(e,t,n,r,i,s){var c=n[n.length-1],d=function(p,g){var h=SV(e,2),y=h[0],S=h[1],b=Y2(Y2({},g),{},{from:g6(e,n)});return c===1&&t[0]&&y&&!Mr(r,i,y,p,b.type)&&r.isAfter(y,p)||c===0&&t[1]&&S&&!Mr(r,i,S,p,b.type)&&r.isAfter(p,S)?!0:s?.(p,b)};return d}function _y(e,t){return OV(e)||TV(e,t)||RV(e,t)||MV()}function MV(){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 RV(e,t){if(e){if(typeof e=="string")return G2(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 G2(e,t)}}function G2(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 TV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function OV(e){if(Array.isArray(e))return e}function Qc(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 Hy=[];function I6(e,t,n,r,i,s,c,d){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Hy,p=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Hy,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Hy,h=arguments.length>11?arguments[11]:void 0,y=arguments.length>12?arguments[12]:void 0,S=arguments.length>13?arguments[13]:void 0,b=c==="time",$=s||0,C=function(H){var I=e.getNow();return b&&(I=Zm(e,I)),f[H]||n[H]||I},w=_y(p,2),M=w[0],x=w[1],R=Yt(function(){return C(0)},M),T=_y(R,2),N=T[0],O=T[1],z=Yt(function(){return C(1)},x),j=_y(z,2),W=j[0],F=j[1],Y=l.useMemo(function(){var _=[N,W][$];return b?_:Zm(e,_,g[$])},[b,N,W,$,e,g]),U=function(H){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",A=[O,F][$];A(H);var V=[N,W];V[$]=H,h&&(!Mr(e,t,N,V[0],c)||!Mr(e,t,W,V[1],c))&&h(V,{source:I,range:$===1?"end":"start",mode:r})},L=function(H,I){if(d){var A={date:"month",week:"month",month:"year",quarter:"year"},V=A[c];if(V&&!Mr(e,t,H,I,V))return Qc(e,c,I,-1);if(c==="year"&&H){var P=Math.floor(e.getYear(H)/10),D=Math.floor(e.getYear(I)/10);if(P!==D)return Qc(e,c,I,-1)}}return I},B=l.useRef(null);return Nt(function(){if(i&&!f[$]){var _=b?null:e.getNow();if(B.current!==null&&B.current!==$?_=[N,W][$^1]:n[$]?_=$===0?n[0]:L(n[0],n[1]):n[$^1]&&(_=n[$^1]),_){y&&e.isAfter(y,_)&&(_=y);var H=d?Qc(e,c,_,1):_;S&&e.isAfter(H,S)&&(_=d?Qc(e,c,S,-1):S),U(_,"reset")}}},[i,$,n[$]]),l.useEffect(function(){i?B.current=$:B.current=null},[i,$]),Nt(function(){i&&f&&f[$]&&U(f[$],"reset")},[i,$]),[Y,U]}function NV(e,t){return AV(e)||zV(e,t)||PV(e,t)||IV()}function IV(){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 PV(e,t){if(e){if(typeof e=="string")return X2(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 X2(e,t)}}function X2(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,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function AV(e){if(Array.isArray(e))return e}function P6(e,t){var n=l.useRef(e),r=l.useState({}),i=NV(r,2),s=i[1],c=function(p){return p&&t!==void 0?t:n.current},d=function(p){n.current=p,s({})};return[c,d,c(!0)]}function va(e,t){return _V(e)||jV(e,t)||z6(e,t)||DV()}function DV(){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 jV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function _V(e){if(Array.isArray(e))return e}function o1(e){return LV(e)||BV(e)||z6(e)||HV()}function HV(){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 z6(e,t){if(e){if(typeof e=="string")return Yv(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 Yv(e,t)}}function BV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LV(e){if(Array.isArray(e))return Yv(e)}function Yv(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 VV=[];function A6(e,t,n){var r=function(c){return c.map(function(d){return Jn(d,{generateConfig:e,locale:t,format:n[0]})})},i=function(c,d){for(var f=Math.max(c.length,d.length),p=-1,g=0;g<f;g+=1){var h=c[g]||null,y=d[g]||null;if(h!==y&&!E6(e,h,y)){p=g;break}}return[p<0,p!==0]};return[r,i]}function D6(e,t){return o1(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function FV(e){var t=P6(e),n=va(t,2),r=n[0],i=n[1],s=ut(function(){i(e)});return l.useEffect(function(){s()},[e]),[r,i]}function j6(e,t,n,r,i,s,c,d,f){var p=Yt(s,c),g=va(p,2),h=g[0],y=g[1],S=h||VV,b=FV(S),$=va(b,2),C=$[0],w=$[1],M=A6(e,t,n),x=va(M,2),R=x[0],T=x[1],N=ut(function(z){var j=o1(z);if(r)for(var W=0;W<2;W+=1)j[W]=j[W]||null;else i&&(j=D6(j.filter(function(_){return _}),e));var F=T(C(),j),Y=va(F,2),U=Y[0],L=Y[1];if(!U&&(w(j),d)){var B=R(j);d(j,B,{range:L?"end":"start"})}}),O=function(){f&&f(C())};return[S,y,C,N,O]}function _6(e,t,n,r,i,s,c,d,f,p){var g=e.generateConfig,h=e.locale,y=e.picker,S=e.onChange,b=e.allowEmpty,$=e.order,C=s.some(function(U){return U})?!1:$,w=A6(g,h,c),M=va(w,2),x=M[0],R=M[1],T=P6(t),N=va(T,2),O=N[0],z=N[1],j=ut(function(){z(t)});l.useEffect(function(){j()},[t]);var W=ut(function(U){var L=U===null,B=o1(U||O());if(L)for(var _=Math.max(s.length,B.length),H=0;H<_;H+=1)s[H]||(B[H]=null);C&&B[0]&&B[1]&&(B=D6(B,g)),i(B);var I=B,A=va(I,2),V=A[0],P=A[1],D=!V,q=!P,G=b?(!D||b[0])&&(!q||b[1]):!0,K=!$||D||q||Mr(g,h,V,P,y)||g.isAfter(P,V),Z=(s[0]||!V||!p(V,{activeIndex:0}))&&(s[1]||!P||!p(P,{from:V,activeIndex:1})),J=L||G&&K&&Z;if(J){n(B);var ie=R(B,t),ne=va(ie,1),oe=ne[0];if(S&&!oe){var ue=B.every(function(le){return!le});S(L&&ue?null:B,ue?null:x(B))}}return J}),F=ut(function(U,L){var B=iu(O(),U,r()[U]);z(B),L&&W()}),Y=!d&&!f;return r1(!Y,function(){Y&&(W(),i(t),j())},2),[F,W]}function H6(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function kV(e){return UV(e)||YV(e)||qV(e)||WV()}function WV(){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 qV(e,t){if(e){if(typeof e=="string")return Uv(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 Uv(e,t)}}function YV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UV(e){if(Array.isArray(e))return Uv(e)}function Uv(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 GV(e,t,n,r,i,s){var c=e;function d(h,y,S){var b=s[h](c),$=S.find(function(x){return x.value===b});if(!$||$.disabled){var C=S.filter(function(x){return!x.disabled}),w=kV(C).reverse(),M=w.find(function(x){return x.value<=b})||C[0];M&&(b=M.value,c=s[y](c,b))}return b}var f=d("getHour","setHour",t()),p=d("getMinute","setMinute",n(f)),g=d("getSecond","setSecond",r(f,p));return d("getMillisecond","setMillisecond",i(f,p,g)),c}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 K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q2(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){XV(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 XV(e,t,n){return t=KV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KV(e){var t=QV(e,"string");return zu(t)=="symbol"?t:String(t)}function QV(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)}function qf(e,t){return tF(e)||eF(e,t)||JV(e,t)||ZV()}function ZV(){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 JV(e,t){if(e){if(typeof e=="string")return Z2(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 Z2(e,t)}}function Z2(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 eF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function tF(e){if(Array.isArray(e))return e}function Yf(){return[]}function Uf(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,i=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 p=i.includes(f);(!p||!r)&&c.push({label:JS(f,s),value:f,disabled:p})}return c}function a1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,s=r.hourStep,c=s===void 0?1:s,d=r.minuteStep,f=d===void 0?1:d,p=r.secondStep,g=p===void 0?1:p,h=r.millisecondStep,y=h===void 0?100:h,S=r.hideDisabledOptions,b=r.disabledTime,$=r.disabledHours,C=r.disabledMinutes,w=r.disabledSeconds,M=l.useMemo(function(){return n||e.getNow()},[n,e]),x=l.useCallback(function(I){var A=b?.(I)||{};return[A.disabledHours||$||Yf,A.disabledMinutes||C||Yf,A.disabledSeconds||w||Yf,A.disabledMilliseconds||Yf]},[b,$,C,w]),R=l.useMemo(function(){return x(M)},[M,x]),T=qf(R,4),N=T[0],O=T[1],z=T[2],j=T[3],W=l.useCallback(function(I,A,V,P){var D=Uf(0,23,c,S,I()),q=i?D.map(function(J){return Q2(Q2({},J),{},{label:JS(J.value%12||12,2)})}):D,G=function(ie){return Uf(0,59,f,S,A(ie))},K=function(ie,ne){return Uf(0,59,g,S,V(ie,ne))},Z=function(ie,ne,oe){return Uf(0,999,y,S,P(ie,ne,oe),3)};return[q,G,K,Z]},[S,c,i,y,f,g]),F=l.useMemo(function(){return W(N,O,z,j)},[W,N,O,z,j]),Y=qf(F,4),U=Y[0],L=Y[1],B=Y[2],_=Y[3],H=function(A,V){var P=function(){return U},D=L,q=B,G=_;if(V){var K=x(V),Z=qf(K,4),J=Z[0],ie=Z[1],ne=Z[2],oe=Z[3],ue=W(J,ie,ne,oe),le=qf(ue,4),fe=le[0],ge=le[1],re=le[2],ce=le[3];P=function(){return fe},D=ge,q=re,G=ce}var he=GV(A,P,D,q,G,e);return he};return[H,U,L,B,_]}function nF(e,t){return iF(e)||aF(e,t)||oF(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 oF(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 aF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function iF(e){if(Array.isArray(e))return e}function lF(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,s=e.showTime,c=e.onSubmit,d=e.onNow,f=e.invalid,p=e.needConfirm,g=e.generateConfig,h=e.disabledDate,y=l.useContext(Do),S=y.prefixCls,b=y.locale,$=y.button,C=$===void 0?"button":$,w=y.classNames,M=y.styles,x=g.getNow(),R=a1(g,s,x),T=nF(R,1),N=T[0],O=r?.(t),z=h(x,{type:t}),j=function(){if(!z){var _=N(x);d(_)}},W="".concat(S,"-now"),F="".concat(W,"-btn"),Y=i&&l.createElement("li",{className:W},l.createElement("a",{className:Q(F,z&&"".concat(F,"-disabled")),"aria-disabled":z,onClick:j},n==="date"?b.today:b.now)),U=p&&l.createElement("li",{className:"".concat(S,"-ok")},l.createElement(C,{disabled:f,onClick:c},b.ok)),L=(Y||U)&&l.createElement("ul",{className:"".concat(S,"-ranges")},Y,U);return!O&&!L?null:l.createElement("div",{className:Q("".concat(S,"-footer"),w.popup.footer),style:M.popup.footer},O&&l.createElement("div",{className:"".concat(S,"-footer-extra")},O),L)}function eM(e){return dF(e)||uF(e)||cF(e)||sF()}function sF(){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 cF(e,t){if(e){if(typeof e=="string")return Gv(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 Gv(e,t)}}function uF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dF(e){if(Array.isArray(e))return Gv(e)}function Gv(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 B6(e,t,n){function r(i,s){var c=i.findIndex(function(f){return Mr(e,t,f,s,n)});if(c===-1)return[].concat(eM(i),[s]);var d=eM(i);return d.splice(c,1),d}return r}var L6=l.createContext(null),sl=l.createContext(null);function Vp(){return l.useContext(sl)}function _s(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,s=e.disabledDate,c=e.minDate,d=e.maxDate,f=e.cellRender,p=e.hoverValue,g=e.hoverRangeValue,h=e.onHover,y=e.values,S=e.pickerValue,b=e.onSelect,$=e.prevIcon,C=e.nextIcon,w=e.superPrevIcon,M=e.superNextIcon,x=l.useContext(L6),R=x.classNames,T=x.styles,N=r.getNow(),O={now:N,values:y,pickerValue:S,prefixCls:n,classNames:R,styles:T,disabledDate:s,minDate:c,maxDate:d,cellRender:f,hoverValue:p,hoverRangeValue:g,onHover:h,locale:i,generateConfig:r,onSelect:b,panelType:t,prevIcon:$,nextIcon:C,superPrevIcon:w,superNextIcon:M};return[O,N]}var si=l.createContext({});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 tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){Hi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hi(e,t,n){return t=mF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mF(e){var t=pF(e,"string");return Au(t)=="symbol"?t:String(t)}function pF(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 gF(e,t){return vF(e)||bF(e,t)||yF(e,t)||hF()}function hF(){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 yF(e,t){if(e){if(typeof e=="string")return nM(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 nM(e,t)}}function nM(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){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function vF(e){if(Array.isArray(e))return e}function Cd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,s=e.prefixColumn,c=e.rowClassName,d=e.titleFormat,f=e.getCellText,p=e.getCellClassName,g=e.headerCells,h=e.cellSelection,y=h===void 0?!0:h,S=e.disabledDate,b=Vp(),$=b.prefixCls,C=b.classNames,w=b.styles,M=b.panelType,x=b.now,R=b.disabledDate,T=b.cellRender,N=b.onHover,O=b.hoverValue,z=b.hoverRangeValue,j=b.generateConfig,W=b.values,F=b.locale,Y=b.onSelect,U=S||R,L="".concat($,"-cell"),B=l.useContext(si),_=B.onCellDblClick,H=function(K){return W.some(function(Z){return Z&&Mr(j,F,K,Z,M)})},I=[],A=0;A<t;A+=1){for(var V=[],P=void 0,D=function(){var K=A*n+q,Z=i(r,K),J=U?.(Z,{type:M});q===0&&(P=Z,s&&V.push(s(P)));var ie=!1,ne=!1,oe=!1;if(y&&z){var ue=gF(z,2),le=ue[0],fe=ue[1];ie=Lp(j,le,fe,Z),ne=Mr(j,F,Z,le,M),oe=Mr(j,F,Z,fe,M)}var ge=d?Jn(Z,{locale:F,format:d,generateConfig:j}):void 0,re=l.createElement("div",{className:"".concat(L,"-inner")},f(Z));V.push(l.createElement("td",{key:q,title:ge,className:Q(L,C.item,fF(Hi(Hi(Hi(Hi(Hi(Hi({},"".concat(L,"-disabled"),J),"".concat(L,"-hover"),(O||[]).some(function(ce){return Mr(j,F,Z,ce,M)})),"".concat(L,"-in-range"),ie&&!ne&&!oe),"".concat(L,"-range-start"),ne),"".concat(L,"-range-end"),oe),"".concat($,"-cell-selected"),!z&&M!=="week"&&H(Z)),p(Z))),style:w.item,onClick:function(){J||Y(Z)},onDoubleClick:function(){!J&&_&&_()},onMouseEnter:function(){J||N?.(Z)},onMouseLeave:function(){J||N?.(null)}},T?T(Z,{prefixCls:$,originNode:re,today:x,type:M,locale:F}):re))},q=0;q<n;q+=1)D();I.push(l.createElement("tr",{key:A,className:c?.(P)},V))}return l.createElement("div",{className:Q("".concat($,"-body"),C.body),style:w.body},l.createElement("table",{className:Q("".concat($,"-content"),C.content),style:w.content},g&&l.createElement("thead",null,l.createElement("tr",null,g)),l.createElement("tbody",null,I)))}var Gf={visibility:"hidden"};function Hs(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,s=e.getEnd,c=e.children,d=Vp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.prevIcon,y=h===void 0?"‹":h,S=d.nextIcon,b=S===void 0?"›":S,$=d.superPrevIcon,C=$===void 0?"«":$,w=d.superNextIcon,M=w===void 0?"»":w,x=d.minDate,R=d.maxDate,T=d.generateConfig,N=d.locale,O=d.pickerValue,z=d.panelType,j="".concat(f,"-header"),W=l.useContext(si),F=W.hidePrev,Y=W.hideNext,U=W.hideHeader,L=l.useMemo(function(){if(!x||!t||!s)return!1;var G=s(t(-1,O));return!kf(T,N,G,x,z)},[x,t,O,s,T,N,z]),B=l.useMemo(function(){if(!x||!n||!s)return!1;var G=s(n(-1,O));return!kf(T,N,G,x,z)},[x,n,O,s,T,N,z]),_=l.useMemo(function(){if(!R||!t||!i)return!1;var G=i(t(1,O));return!kf(T,N,R,G,z)},[R,t,O,i,T,N,z]),H=l.useMemo(function(){if(!R||!n||!i)return!1;var G=i(n(1,O));return!kf(T,N,R,G,z)},[R,n,O,i,T,N,z]),I=function(K){t&&r(t(K,O))},A=function(K){n&&r(n(K,O))};if(U)return null;var V="".concat(j,"-prev-btn"),P="".concat(j,"-next-btn"),D="".concat(j,"-super-prev-btn"),q="".concat(j,"-super-next-btn");return l.createElement("div",{className:Q(j,p.header),style:g.header},n&&l.createElement("button",{type:"button","aria-label":N.previousYear,onClick:function(){return A(-1)},tabIndex:-1,className:Q(D,B&&"".concat(D,"-disabled")),disabled:B,style:F?Gf:{}},C),t&&l.createElement("button",{type:"button","aria-label":N.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:Q(V,L&&"".concat(V,"-disabled")),disabled:L,style:F?Gf:{}},y),l.createElement("div",{className:"".concat(j,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":N.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:Q(P,_&&"".concat(P,"-disabled")),disabled:_,style:Y?Gf:{}},b),n&&l.createElement("button",{type:"button","aria-label":N.nextYear,onClick:function(){return A(1)},tabIndex:-1,className:Q(q,H&&"".concat(q,"-disabled")),disabled:H,style:Y?Gf:{}},M))}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 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)}function By(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 Du(t)=="symbol"?t:String(t)}function CF(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 $F(e,t){return MF(e)||EF(e,t)||wF(e,t)||xF()}function xF(){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 wF(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 EF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function MF(e){if(Array.isArray(e))return e}function Fp(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,s=e.generateConfig,c=e.pickerValue,d=e.onPickerValueChange,f=e.onModeChange,p=e.mode,g=p===void 0?"date":p,h=e.disabledDate,y=e.onSelect,S=e.onHover,b=e.showWeek,$="".concat(t,"-").concat(r,"-panel"),C="".concat(t,"-cell"),w=g==="week",M=_s(e,g),x=$F(M,2),R=x[0],T=x[1],N=s.locale.getWeekFirstDay(i.locale),O=s.setDate(c,1),z=jL(i.locale,s,O),j=s.getMonth(c),W=b===void 0?w:b,F=W?function(D){var q=h?.(D,{type:"week"});return l.createElement("td",{key:"week",className:Q(C,"".concat(C,"-week"),By({},"".concat(C,"-disabled"),q)),onClick:function(){q||y(D)},onMouseEnter:function(){q||S?.(D)},onMouseLeave:function(){q||S?.(null)}},l.createElement("div",{className:"".concat(C,"-inner")},s.locale.getWeek(i.locale,D)))}:null,Y=[],U=i.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(i.locale):[]);F&&Y.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var L=0;L<jy;L+=1)Y.push(l.createElement("th",{key:L},U[(L+N)%jy]));var B=function(q,G){return s.addDate(q,G)},_=function(q){return Jn(q,{locale:i,format:i.cellDateFormat,generateConfig:s})},H=function(q){var G=By(By({},"".concat(t,"-cell-in-view"),t1(s,q,c)),"".concat(t,"-cell-today"),n1(s,q,T));return G},I=i.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(i.locale):[]),A=l.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},Jn(c,{locale:i,format:i.yearFormat,generateConfig:s})),V=l.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){f("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Jn(c,{locale:i,format:i.monthFormat,generateConfig:s}):I[j]),P=i.monthBeforeYear?[V,A]:[A,V];return l.createElement(sl.Provider,{value:R},l.createElement("div",{className:Q($,b&&"".concat($,"-show-week"))},l.createElement(Hs,{offset:function(q){return s.addMonth(c,q)},superOffset:function(q){return s.addYear(c,q)},onChange:d,getStart:function(q){return s.setDate(q,1)},getEnd:function(q){var G=s.setDate(q,1);return G=s.addMonth(G,1),s.addDate(G,-1)}},P),l.createElement(Cd,Xv({titleFormat:i.fieldDateFormat},e,{colNum:jy,rowNum:6,baseDate:z,headerCells:Y,getCellDate:B,getCellText:_,getCellClassName:H,prefixColumn:F,cellSelection:!w}))))}var RF=1/3;function TF(e,t){var n=l.useRef(!1),r=l.useRef(null),i=l.useRef(null),s=function(){return n.current},c=function(){_t.cancel(r.current),n.current=!1},d=l.useRef(),f=function(){var h=e.current;if(i.current=null,d.current=0,h){var y=h.querySelector('[data-value="'.concat(t,'"]')),S=h.querySelector("li"),b=function $(){c(),n.current=!0,d.current+=1;var C=h.scrollTop,w=S.offsetTop,M=y.offsetTop,x=M-w;if(M===0&&y!==S||!Cp(h)){d.current<=5&&(r.current=_t($));return}var R=C+(x-C)*RF,T=Math.abs(x-R);if(i.current!==null&&i.current<T){c();return}if(i.current=T,T<=1){h.scrollTop=x,c();return}h.scrollTop=R,r.current=_t($)};y&&S&&b()}},p=ut(f);return[p,c,s]}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 oM(e,t,n){return t=OF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OF(e){var t=NF(e,"string");return ju(t)=="symbol"?t:String(t)}function NF(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 IF(e){return AF(e)||zF(e)||V6(e)||PF()}function PF(){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 zF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AF(e){if(Array.isArray(e))return Kv(e)}function DF(e,t){return HF(e)||_F(e,t)||V6(e,t)||jF()}function jF(){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 V6(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 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 _F(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function HF(e){if(Array.isArray(e))return e}var BF=300;function LF(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function Hc(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,s=e.onChange,c=e.onHover,d=e.onDblClick,f=e.changeOnScroll,p=Vp(),g=p.prefixCls,h=p.cellRender,y=p.now,S=p.locale,b=p.classNames,$=p.styles,C="".concat(g,"-time-panel"),w="".concat(g,"-time-panel-cell"),M=l.useRef(null),x=l.useRef(),R=function(){clearTimeout(x.current)},T=TF(M,n??r),N=DF(T,3),O=N[0],z=N[1],j=N[2];Nt(function(){return O(),R(),function(){z(),R()}},[n,r,LF(t)]);var W=function(U){R();var L=U.target;!j()&&f&&(x.current=setTimeout(function(){var B=M.current,_=B.querySelector("li").offsetTop,H=Array.from(B.querySelectorAll("li")),I=H.map(function(q){return q.offsetTop-_}),A=I.map(function(q,G){return t[G].disabled?Number.MAX_SAFE_INTEGER:Math.abs(q-L.scrollTop)}),V=Math.min.apply(Math,IF(A)),P=A.findIndex(function(q){return q===V}),D=t[P];D&&!D.disabled&&s(D.value)},BF))},F="".concat(C,"-column");return l.createElement("ul",{className:F,ref:M,"data-type":i,onScroll:W},t.map(function(Y){var U=Y.label,L=Y.value,B=Y.disabled,_=l.createElement("div",{className:"".concat(w,"-inner")},U);return l.createElement("li",{key:L,style:$.item,className:Q(w,b.item,oM(oM({},"".concat(w,"-selected"),n===L),"".concat(w,"-disabled"),B)),onClick:function(){B||s(L)},onDoubleClick:function(){!B&&d&&d()},onMouseEnter:function(){c(L)},onMouseLeave:function(){c(null)},"data-value":L},h?h(L,{prefixCls:g,originNode:_,today:y,type:"time",subType:i,locale:S}):_)}))}function Fi(){return Fi=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},Fi.apply(this,arguments)}function Bc(e,t){return WF(e)||kF(e,t)||FF(e,t)||VF()}function VF(){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 FF(e,t){if(e){if(typeof e=="string")return aM(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 aM(e,t)}}function aM(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 kF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function WF(e){if(Array.isArray(e))return e}function Za(e){return e<12}function qF(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,s=e.use12Hours,c=e.changeOnScroll,d=Vp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.values,y=d.generateConfig,S=d.locale,b=d.onSelect,$=d.onHover,C=$===void 0?function(){}:$,w=d.pickerValue,M=h?.[0]||null,x=l.useContext(si),R=x.onCellDblClick,T=a1(y,e,M),N=Bc(T,5),O=N[0],z=N[1],j=N[2],W=N[3],F=N[4],Y=function(Ne){var Ge=M&&y[Ne](M),rt=w&&y[Ne](w);return[Ge,rt]},U=Y("getHour"),L=Bc(U,2),B=L[0],_=L[1],H=Y("getMinute"),I=Bc(H,2),A=I[0],V=I[1],P=Y("getSecond"),D=Bc(P,2),q=D[0],G=D[1],K=Y("getMillisecond"),Z=Bc(K,2),J=Z[0],ie=Z[1],ne=B===null?null:Za(B)?"am":"pm",oe=l.useMemo(function(){return s?Za(B)?z.filter(function(Be){return Za(Be.value)}):z.filter(function(Be){return!Za(Be.value)}):z},[B,z,s]),ue=function(Ne,Ge){var rt,ot=Ne.filter(function(lt){return!lt.disabled});return Ge??(ot==null||(rt=ot[0])===null||rt===void 0?void 0:rt.value)},le=ue(z,B),fe=l.useMemo(function(){return j(le)},[j,le]),ge=ue(fe,A),re=l.useMemo(function(){return W(le,ge)},[W,le,ge]),ce=ue(re,q),he=l.useMemo(function(){return F(le,ge,ce)},[F,le,ge,ce]),pe=ue(he,J),Ce=l.useMemo(function(){if(!s)return[];var Be=y.getNow(),Ne=y.setHour(Be,6),Ge=y.setHour(Be,18),rt=function(lt,St){var Ct=S.cellMeridiemFormat;return Ct?Jn(lt,{generateConfig:y,locale:S,format:Ct}):St};return[{label:rt(Ne,"AM"),value:"am",disabled:z.every(function(ot){return ot.disabled||!Za(ot.value)})},{label:rt(Ge,"PM"),value:"pm",disabled:z.every(function(ot){return ot.disabled||Za(ot.value)})}]},[z,s,y,S]),de=function(Ne){var Ge=O(Ne);b(Ge)},ye=l.useMemo(function(){var Be=M||w||y.getNow(),Ne=function(rt){return rt!=null};return Ne(B)?(Be=y.setHour(Be,B),Be=y.setMinute(Be,A),Be=y.setSecond(Be,q),Be=y.setMillisecond(Be,J)):Ne(_)?(Be=y.setHour(Be,_),Be=y.setMinute(Be,V),Be=y.setSecond(Be,G),Be=y.setMillisecond(Be,ie)):Ne(le)&&(Be=y.setHour(Be,le),Be=y.setMinute(Be,ge),Be=y.setSecond(Be,ce),Be=y.setMillisecond(Be,pe)),Be},[M,w,B,A,q,J,le,ge,ce,pe,_,V,G,ie,y]),Se=function(Ne,Ge){return Ne===null?null:y[Ge](ye,Ne)},Ee=function(Ne){return Se(Ne,"setHour")},Pe=function(Ne){return Se(Ne,"setMinute")},Ae=function(Ne){return Se(Ne,"setSecond")},Ye=function(Ne){return Se(Ne,"setMillisecond")},Ue=function(Ne){return Ne===null?null:Ne==="am"&&!Za(B)?y.setHour(ye,B-12):Ne==="pm"&&Za(B)?y.setHour(ye,B+12):ye},Xe=function(Ne){de(Ee(Ne))},et=function(Ne){de(Pe(Ne))},Te=function(Ne){de(Ae(Ne))},_e=function(Ne){de(Ye(Ne))},Le=function(Ne){de(Ue(Ne))},Qe=function(Ne){C(Ee(Ne))},ze=function(Ne){C(Pe(Ne))},ve=function(Ne){C(Ae(Ne))},Oe=function(Ne){C(Ye(Ne))},Ze=function(Ne){C(Ue(Ne))},qe={onDblClick:R,changeOnScroll:c};return l.createElement("div",{className:Q("".concat(f,"-content"),p.content),style:g.content},t&&l.createElement(Hc,Fi({units:oe,value:B,optionalValue:_,type:"hour",onChange:Xe,onHover:Qe},qe)),n&&l.createElement(Hc,Fi({units:fe,value:A,optionalValue:V,type:"minute",onChange:et,onHover:ze},qe)),r&&l.createElement(Hc,Fi({units:re,value:q,optionalValue:G,type:"second",onChange:Te,onHover:ve},qe)),i&&l.createElement(Hc,Fi({units:he,value:J,optionalValue:ie,type:"millisecond",onChange:_e,onHover:Oe},qe)),s&&l.createElement(Hc,Fi({units:Ce,value:ne,type:"meridiem",onChange:Le,onHover:Ze},qe)))}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.
240
- 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 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 XF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function KF(e){if(Array.isArray(e))return e}function F6(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,s=e.showTime,c=s||{},d=c.format,f="".concat(t,"-time-panel"),p=_s(e,"time"),g=YF(p,1),h=g[0];return l.createElement(sl.Provider,{value:h},l.createElement("div",{className:Q(f)},l.createElement(Hs,null,n?Jn(n,{locale:r,format:d,generateConfig:i}):" "),l.createElement(qF,s)))}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 QF(e,t){return tk(e)||ek(e,t)||JF(e,t)||ZF()}function ZF(){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 JF(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 ek(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function tk(e){if(Array.isArray(e))return e}function nk(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,s=e.value,c=e.pickerValue,d=e.onHover,f="".concat(t,"-datetime-panel"),p=a1(n,r),g=QF(p,1),h=g[0],y=function(C){return s?Zm(n,C,s):Zm(n,C,c)},S=function(C){d?.(C&&y(C))},b=function(C){var w=y(C);i(h(w,w))};return l.createElement("div",{className:f},l.createElement(Fp,Qv({},e,{onSelect:b,onHover:S})),l.createElement(F6,e))}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 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)}function rk(e,t,n){return t=ok(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ok(e){var t=ak(e,"string");return _u(t)=="symbol"?t:String(t)}function ak(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 ik(e,t){return uk(e)||ck(e,t)||sk(e,t)||lk()}function lk(){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 sk(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 ck(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function uk(e){if(Array.isArray(e))return e}function dk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d="".concat(t,"-decade-panel"),f=_s(e,"decade"),p=ik(f,1),g=p[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)},S=h(i),b=y(i),$=r.addYear(S,-10),C=function(N,O){return r.addYear(N,O*10)},w=function(N){var O=n.cellYearFormat,z=Jn(N,{locale:n,format:O,generateConfig:r}),j=Jn(r.addYear(N,9),{locale:n,format:O,generateConfig:r});return"".concat(z,"-").concat(j)},M=function(N){return rk({},"".concat(t,"-cell-in-view"),Wv(r,N,S)||Wv(r,N,b)||Lp(r,S,b,N))},x=s?function(T,N){var O=r.setDate(T,1),z=r.setMonth(O,0),j=r.setYear(z,Math.floor(r.getYear(z)/10)*10),W=r.addYear(j,10),F=r.addDate(W,-1);return s(j,N)&&s(F,N)}:null,R="".concat(Jn(S,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Jn(b,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(sl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Hs,{superOffset:function(N){return r.addYear(i,N*100)},onChange:c,getStart:h,getEnd:y},R),l.createElement(Cd,Zv({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:$,getCellDate:C,getCellText:w,getCellClassName:M}))))}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 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)}function fk(e,t,n){return t=mk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mk(e){var t=pk(e,"string");return Hu(t)=="symbol"?t:String(t)}function pk(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 gk(e,t){return vk(e)||bk(e,t)||yk(e,t)||hk()}function hk(){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 yk(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 bk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function vk(e){if(Array.isArray(e))return e}function Sk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-month-panel"),p=_s(e,"month"),g=gk(p,1),h=g[0],y=r.setMonth(i,0),S=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),b=function(R,T){return r.addMonth(R,T)},$=function(R){var T=r.getMonth(R);return n.monthFormat?Jn(R,{locale:n,format:n.monthFormat,generateConfig:r}):S[T]},C=function(){return fk({},"".concat(t,"-cell-in-view"),!0)},w=s?function(x,R){var T=r.setDate(x,1),N=r.setMonth(T,r.getMonth(T)+1),O=r.addDate(N,-1);return s(T,R)&&s(O,R)}:null,M=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){d("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Jn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(sl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Hs,{superOffset:function(R){return r.addYear(i,R)},onChange:c,getStart:function(R){return r.setMonth(R,0)},getEnd:function(R){return r.setMonth(R,11)}},M),l.createElement(Cd,Jv({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:b,getCellText:$,getCellClassName: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 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)}function Ck(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=xk(e,"string");return Bu(t)=="symbol"?t:String(t)}function xk(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 wk(e,t){return Tk(e)||Rk(e,t)||Mk(e,t)||Ek()}function Ek(){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 Mk(e,t){if(e){if(typeof e=="string")return uM(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 uM(e,t)}}function uM(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 Rk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Tk(e){if(Array.isArray(e))return e}function Ok(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,d="".concat(t,"-quarter-panel"),f=_s(e,"quarter"),p=wk(f,1),g=p[0],h=r.setMonth(i,0),y=function(w,M){return r.addMonth(w,M*3)},S=function(w){return Jn(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},b=function(){return Ck({},"".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")},Jn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(sl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Hs,{superOffset:function(w){return r.addYear(i,w)},onChange:s,getStart:function(w){return r.setMonth(w,0)},getEnd:function(w){return r.setMonth(w,11)}},$),l.createElement(Cd,e0({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:h,getCellDate:y,getCellText:S,getCellClassName:b}))))}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 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)}function Nk(e,t,n){return t=Ik(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ik(e){var t=Pk(e,"string");return Lu(t)=="symbol"?t:String(t)}function Pk(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 zk(e,t){return _k(e)||jk(e,t)||Dk(e,t)||Ak()}function Ak(){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 Dk(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 jk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function _k(e){if(Array.isArray(e))return e}function Hk(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,s=e.hoverValue,c=e.hoverRangeValue,d=r.locale,f="".concat(t,"-week-panel-row"),p=function(h){var y={};if(c){var S=zk(c,2),b=S[0],$=S[1],C=Kc(n,d,b,h),w=Kc(n,d,$,h);y["".concat(f,"-range-start")]=C,y["".concat(f,"-range-end")]=w,y["".concat(f,"-range-hover")]=!C&&!w&&Lp(n,b,$,h)}return s&&(y["".concat(f,"-hover")]=s.some(function(M){return Kc(n,d,h,M)})),Q(f,Nk({},"".concat(f,"-selected"),!c&&Kc(n,d,i,h)),y)};return l.createElement(Fp,t0({},e,{mode:"week",panelName:"week",rowClassName:p}))}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 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)}function Bk(e,t,n){return t=Lk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lk(e){var t=Vk(e,"string");return Vu(t)=="symbol"?t:String(t)}function Vk(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 Fk(e,t){return Yk(e)||qk(e,t)||Wk(e,t)||kk()}function kk(){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 Wk(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 qk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Yk(e){if(Array.isArray(e))return e}function Uk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-year-panel"),p=_s(e,"year"),g=Fk(p,1),h=g[0],y=function(O){var z=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,z)},S=function(O){var z=y(O);return r.addYear(z,9)},b=y(i),$=S(i),C=r.addYear(b,-1),w=function(O,z){return r.addYear(O,z)},M=function(O){return Jn(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(O){return Bk({},"".concat(t,"-cell-in-view"),el(r,O,b)||el(r,O,$)||Lp(r,b,$,O))},R=s?function(N,O){var z=r.setMonth(N,0),j=r.setDate(z,1),W=r.addYear(j,1),F=r.addDate(W,-1);return s(j,O)&&s(F,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")},Jn(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Jn($,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(sl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Hs,{superOffset:function(O){return r.addYear(i,O*10)},onChange:c,getStart:y,getEnd:S},T),l.createElement(Cd,n0({},e,{disabledDate:R,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:C,getCellDate:w,getCellText:M,getCellClassName:x}))))}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 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)}function mM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pM(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){k6(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 k6(e,t,n){return t=Gk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gk(e){var t=Xk(e,"string");return Fu(t)=="symbol"?t:String(t)}function Xk(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 gM(e){return Zk(e)||Qk(e)||W6(e)||Kk()}function Kk(){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 Qk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zk(e){if(Array.isArray(e))return o0(e)}function Lc(e,t){return tW(e)||eW(e,t)||W6(e,t)||Jk()}function Jk(){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 W6(e,t){if(e){if(typeof e=="string")return o0(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 o0(e,t)}}function o0(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 eW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function tW(e){if(Array.isArray(e))return e}var nW={date:Fp,datetime:nk,week:Hk,month:Sk,quarter:Ok,year:Uk,decade:dk,time:F6};function rW(e,t){var n=e.classNames,r=e.styles,i=e.locale,s=e.generateConfig,c=e.direction,d=e.prefixCls,f=e.tabIndex,p=f===void 0?0:f,g=e.multiple,h=e.defaultValue,y=e.value,S=e.onChange,b=e.onSelect,$=e.defaultPickerValue,C=e.pickerValue,w=e.onPickerValueChange,M=e.mode,x=e.onPanelChange,R=e.picker,T=R===void 0?"date":R,N=e.showTime,O=e.hoverValue,z=e.hoverRangeValue,j=e.cellRender,W=e.dateRender,F=e.monthCellRender,Y=e.components,U=Y===void 0?{}:Y,L=e.hideHeader,B=l.useContext(Do)||{},_=B.prefixCls,H=B.classNames,I=B.styles,A=_||d||"rc-picker",V=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:V.current}});var P=$6(e),D=Lc(P,4),q=D[0],G=D[1],K=D[2],Z=D[3],J=v6(i,G),ie=T==="date"&&N?"datetime":T,ne=l.useMemo(function(){return x6(ie,K,Z,q,J)},[ie,K,Z,q,J]),oe=s.getNow(),ue=Yt(T||"date",M),le=Lc(ue,2),fe=le[0],ge=le[1],re=fe==="date"&&ne?"datetime":fe,ce=B6(s,i,ie),he=Yt(h,y),pe=Lc(he,2),Ce=pe[0],de=pe[1],ye=l.useMemo(function(){var Ne=ll(Ce).filter(function(Ge){return Ge});return g?Ne:Ne.slice(0,1)},[Ce,g]),Se=ut(function(Ne){de(Ne),S&&(Ne===null||ye.length!==Ne.length||ye.some(function(Ge,rt){return!Mr(s,i,Ge,Ne[rt],ie)}))&&S?.(g?Ne:Ne[0])}),Ee=ut(function(Ne){if(b?.(Ne),fe===T){var Ge=g?ce(ye,Ne):[Ne];Se(Ge)}}),Pe=Yt($||ye[0]||oe,C),Ae=Lc(Pe,2),Ye=Ae[0],Ue=Ae[1];l.useEffect(function(){ye[0]&&!C&&Ue(ye[0])},[ye[0]]);var Xe=function(Ge,rt){x?.(Ge||C,rt||fe)},et=function(Ge){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ue(Ge),w?.(Ge),rt&&Xe(Ge)},Te=function(Ge,rt){ge(Ge),rt&&et(rt),Xe(rt,Ge)},_e=function(Ge){if(Ee(Ge),et(Ge),fe!==T){var rt=["decade","year"],ot=[].concat(rt,["month"]),lt={quarter:[].concat(rt,["quarter"]),week:[].concat(gM(ot),["week"]),date:[].concat(gM(ot),["date"])},St=lt[T]||ot,Ct=St.indexOf(fe),ke=St[Ct+1];ke&&Te(ke,Ge)}},Le=l.useMemo(function(){var Ne,Ge;if(Array.isArray(z)){var rt=Lc(z,2);Ne=rt[0],Ge=rt[1]}else Ne=z;return!Ne&&!Ge?null:(Ne=Ne||Ge,Ge=Ge||Ne,s.isAfter(Ne,Ge)?[Ge,Ne]:[Ne,Ge])},[z,s]),Qe=e1(j,W,F),ze=U[re]||nW[re]||Fp,ve=l.useMemo(function(){var Ne,Ge,rt,ot;return{classNames:(Ne=(Ge=H?.popup)!==null&&Ge!==void 0?Ge:n)!==null&&Ne!==void 0?Ne:{},styles:(rt=(ot=I?.popup)!==null&&ot!==void 0?ot:r)!==null&&rt!==void 0?rt:{}}},[H,n,I,r]),Oe=l.useContext(si),Ze=l.useMemo(function(){return pM(pM({},Oe),{},{hideHeader:L})},[Oe,L]),qe="".concat(A,"-panel"),Be=Bp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(L6.Provider,{value:ve},l.createElement(si.Provider,{value:Ze},l.createElement("div",{ref:V,tabIndex:p,className:Q(qe,k6({},"".concat(qe,"-rtl"),c==="rtl"))},l.createElement(ze,r0({},Be,{showTime:ne,prefixCls:A,locale:J,generateConfig:s,onModeChange:Te,pickerValue:Ye,onPickerValueChange:function(Ge){et(Ge,!0)},value:ye[0],onSelect:_e,values:ye,cellRender:Qe,hoverRangeValue:Le,hoverValue:O})))))}var Tm=l.memo(l.forwardRef(rW));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 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)}function hM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Di(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){oW(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 oW(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=iW(e,"string");return ku(t)=="symbol"?t:String(t)}function iW(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 lW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,s=e.needConfirm,c=e.onSubmit,d=e.range,f=e.hoverValue,p=l.useContext(Do),g=p.prefixCls,h=p.generateConfig,y=l.useCallback(function(M,x){return Qc(h,t,M,x)},[h,t]),S=l.useMemo(function(){return y(r,1)},[r,y]),b=function(x){i(y(x,-1))},$={onCellDblClick:function(){s&&c()}},C=t==="time",w=Di(Di({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:C});return d?w.hoverRangeValue=f:w.hoverValue=f,n?l.createElement("div",{className:"".concat(g,"-panels")},l.createElement(si.Provider,{value:Di(Di({},$),{},{hideNext:!0})},l.createElement(Tm,w)),l.createElement(si.Provider,{value:Di(Di({},$),{},{hidePrev:!0})},l.createElement(Tm,a0({},w,{pickerValue:S,onPickerValueChange:b})))):l.createElement(si.Provider,{value:Di({},$)},l.createElement(Tm,w))}function yM(e){return typeof e=="function"?e():e}function sW(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=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(yM(f))},onMouseEnter:function(){i(yM(f))},onMouseLeave:function(){i(null)}},d)}))):null}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 bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(r){i0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i0(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 Wu(t)=="symbol"?t:String(t)}function dW(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 Jm(){return Jm=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},Jm.apply(this,arguments)}function Vc(e,t){return gW(e)||pW(e,t)||mW(e,t)||fW()}function fW(){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 mW(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 pW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function gW(e){if(Array.isArray(e))return e}function q6(e){var t,n,r=e.panelRender,i=e.internalMode,s=e.picker,c=e.showNow,d=e.range,f=e.multiple,p=e.activeInfo,g=p===void 0?[0,0,0]:p,h=e.presets,y=e.onPresetHover,S=e.onPresetSubmit,b=e.onFocus,$=e.onBlur,C=e.onPanelMouseDown,w=e.direction,M=e.value,x=e.onSelect,R=e.isInvalid,T=e.defaultOpenValue,N=e.onOk,O=e.onSubmit,z=e.classNames,j=e.styles,W=l.useContext(Do),F=W.prefixCls,Y="".concat(F,"-panel"),U=w==="rtl",L=l.useRef(null),B=l.useRef(null),_=l.useState(0),H=Vc(_,2),I=H[0],A=H[1],V=l.useState(0),P=Vc(V,2),D=P[0],q=P[1],G=l.useState(0),K=Vc(G,2),Z=K[0],J=K[1],ie=function(Te){Te.width&&A(Te.width)},ne=Vc(g,3),oe=ne[0],ue=ne[1],le=ne[2],fe=l.useState(0),ge=Vc(fe,2),re=ge[0],ce=ge[1];l.useEffect(function(){ce(10)},[oe]),l.useEffect(function(){if(d&&B.current){var et,Te=((et=L.current)===null||et===void 0?void 0:et.offsetWidth)||0,_e=B.current.getBoundingClientRect();if(!_e.height||_e.right<0){ce(function(ve){return Math.max(0,ve-1)});return}var Le=(U?ue-Te:oe)-_e.left;if(J(Le),I&&I<le){var Qe=U?_e.right-(ue-Te+I):oe+Te-_e.left-I,ze=Math.max(0,Qe);q(ze)}else q(0)}},[re,U,I,oe,ue,le,d]);function he(et){return et.filter(function(Te){return Te})}var pe=l.useMemo(function(){return he(ll(M))},[M]),Ce=s==="time"&&!pe.length,de=l.useMemo(function(){return Ce?he([T]):pe},[Ce,pe,T]),ye=Ce?T:pe,Se=l.useMemo(function(){return de.length?de.some(function(et){return R(et)}):!0},[de,R]),Ee=function(){Ce&&x(T),N(),O()},Pe=l.createElement("div",{className:"".concat(F,"-panel-layout")},l.createElement(sW,{prefixCls:F,presets:h,onClick:S,onHover:y}),l.createElement("div",null,l.createElement(lW,Jm({},e,{value:ye})),l.createElement(lF,Jm({},e,{showNow:f?!1:c,invalid:Se,onSubmit:Ee}))));r&&(Pe=r(Pe));var Ae="".concat(Y,"-container"),Ye="marginLeft",Ue="marginRight",Xe=l.createElement("div",{onMouseDown:C,tabIndex:-1,className:Q(Ae,"".concat(F,"-").concat(i,"-panel-container"),z==null||(t=z.popup)===null||t===void 0?void 0:t.container),style:cW(i0(i0({},U?Ue:Ye,D),U?Ye:Ue,"auto"),j==null||(n=j.popup)===null||n===void 0?void 0:n.container),onFocus:b,onBlur:$},Pe);return d&&(Xe=l.createElement("div",{onMouseDown:C,ref:B,className:Q("".concat(F,"-range-wrapper"),"".concat(F,"-").concat(s,"-range-wrapper"))},l.createElement("div",{ref:L,className:"".concat(F,"-range-arrow"),style:{left:Z}}),l.createElement(Lr,{onResize:ie},Xe))),Xe}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 SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(r){hW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hW(e,t,n){return t=yW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yW(e){var t=bW(e,"string");return qu(t)=="symbol"?t:String(t)}function bW(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 Y6(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,s=e.locale,c=e.preserveInvalidOnBlur,d=e.inputReadOnly,f=e.required,p=e["aria-required"],g=e.onSubmit,h=e.onFocus,y=e.onBlur,S=e.onInputChange,b=e.onInvalid,$=e.open,C=e.onOpenChange,w=e.onKeyDown,M=e.onChange,x=e.activeHelp,R=e.name,T=e.autoComplete,N=e.id,O=e.value,z=e.invalid,j=e.placeholder,W=e.disabled,F=e.activeIndex,Y=e.allHelp,U=e.picker,L=function(D,q){var G=i.locale.parse(s.locale,D,[q]);return G&&i.isValidate(G)?G:null},B=n[0],_=l.useCallback(function(P){return Jn(P,{locale:s,format:B,generateConfig:i})},[s,i,B]),H=l.useMemo(function(){return O.map(_)},[O,_]),I=l.useMemo(function(){var P=U==="time"?8:10,D=typeof B=="function"?B(i.getNow()).length:B.length;return Math.max(P,D)+2},[B,U,i]),A=function(D){for(var q=0;q<n.length;q+=1){var G=n[q];if(typeof G=="string"){var K=L(D,G);if(K)return K}}return!1},V=function(D){function q(Z){return D!==void 0?Z[D]:Z}var G=jn(e,{aria:!0,data:!0}),K=CM(CM({},G),{},{format:r,validateFormat:function(J){return!!A(J)},preserveInvalidOnBlur:c,readOnly:d,required:f,"aria-required":p,name:R,autoComplete:T,size:I,id:q(N),value:q(H)||"",invalid:q(z),placeholder:q(j),active:F===D,helped:Y||x&&F===D,disabled:q(W),onFocus:function(J){h(J,D)},onBlur:function(J){y(J,D)},onSubmit:g,onChange:function(J){S();var ie=A(J);if(ie){b(!1,D),M(ie,D);return}b(!!J,D)},onHelp:function(){C(!0,{index:D})},onKeyDown:function(J){var ie=!1;if(w?.(J,function(){ie=!0}),!J.defaultPrevented&&!ie)switch(J.key){case"Escape":C(!1,{index:D});break;case"Enter":$||C(!0);break}}},t?.({valueTexts:H}));return Object.keys(K).forEach(function(Z){K[Z]===void 0&&delete K[Z]}),K};return[V,_]}var vW=["onMouseEnter","onMouseLeave"];function U6(e){return l.useMemo(function(){return Bp(e,vW)},[e])}var SW=["icon","type"],CW=["onClear"];function ep(){return ep=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},ep.apply(this,arguments)}function G6(e,t){if(e==null)return{};var n=$W(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $W(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kp(e){var t=e.icon,n=e.type,r=G6(e,SW),i=l.useContext(Do),s=i.prefixCls,c=i.classNames,d=i.styles;return t?l.createElement("span",ep({className:Q("".concat(s,"-").concat(n),c.suffix),style:d.suffix},r),t):null}function l0(e){var t=e.onClear,n=G6(e,CW);return l.createElement(kp,ep({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}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 xW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wW(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,X6(r.key),r)}}function EW(e,t,n){return t&&wW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xf(e,t,n){return t=X6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X6(e){var t=MW(e,"string");return Yu(t)=="symbol"?t:String(t)}function MW(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)}var Ly=["YYYY","MM","DD","HH","mm","ss","SSS"],$M="顧",RW=(function(){function e(t){xW(this,e),Xf(this,"format",void 0),Xf(this,"maskFormat",void 0),Xf(this,"cells",void 0),Xf(this,"maskCells",void 0),this.format=t;var n=Ly.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return $M.repeat(d.length)});var i=new RegExp("(".concat(Ly.join("|"),")")),s=(t.split(i)||[]).filter(function(d){return d}),c=0;this.cells=s.map(function(d){var f=Ly.includes(d),p=c,g=c+d.length;return c=g,{text:d,mask:f,start:p,end:g}}),this.maskCells=this.cells.filter(function(d){return d.mask})}return EW(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,s=r.end;return[i||0,s||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],s=n[r];if(!s||i!==$M&&i!==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,i=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 p=Math.min(Math.abs(n-d),Math.abs(n-f));p<r&&(r=p,i=s)}return i}}]),e})();function TW(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 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)}var OW=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];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 xM(e,t,n){return t=NW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NW(e){var t=IW(e,"string");return Uu(t)=="symbol"?t:String(t)}function IW(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 ji(e,t){return DW(e)||AW(e,t)||zW(e,t)||PW()}function PW(){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 zW(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 AW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function DW(e){if(Array.isArray(e))return e}function jW(e,t){if(e==null)return{};var n=_W(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _W(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var c0=l.forwardRef(function(e,t){var n=e.className,r=e.active,i=e.showActiveCls,s=i===void 0?!0:i,c=e.suffixIcon,d=e.format,f=e.validateFormat,p=e.onChange;e.onInput;var g=e.helped,h=e.onHelp,y=e.onSubmit,S=e.onKeyDown,b=e.preserveInvalidOnBlur,$=b===void 0?!1:b,C=e.invalid,w=e.clearIcon,M=jW(e,OW),x=e.value,R=e.onFocus,T=e.onBlur,N=e.onMouseUp,O=l.useContext(Do),z=O.prefixCls,j=O.input,W=j===void 0?"input":j,F=O.classNames,Y=O.styles,U="".concat(z,"-input"),L=l.useState(!1),B=ji(L,2),_=B[0],H=B[1],I=l.useState(x),A=ji(I,2),V=A[0],P=A[1],D=l.useState(""),q=ji(D,2),G=q[0],K=q[1],Z=l.useState(null),J=ji(Z,2),ie=J[0],ne=J[1],oe=l.useState(null),ue=ji(oe,2),le=ue[0],fe=ue[1],ge=V||"";l.useEffect(function(){P(x)},[x]);var re=l.useRef(null),ce=l.useRef(null);l.useImperativeHandle(t,function(){return{nativeElement:re.current,inputElement:ce.current,focus:function(Ze){ce.current.focus(Ze)},blur:function(){ce.current.blur()}}});var he=l.useMemo(function(){return new RW(d||"")},[d]),pe=l.useMemo(function(){return g?[0,0]:he.getSelection(ie)},[he,ie,g]),Ce=ji(pe,2),de=Ce[0],ye=Ce[1],Se=function(Ze){Ze&&Ze!==d&&Ze!==x&&h()},Ee=ut(function(Oe){f(Oe)&&p(Oe),P(Oe),Se(Oe)}),Pe=function(Ze){if(!d){var qe=Ze.target.value;Se(qe),P(qe),p(qe)}},Ae=function(Ze){var qe=Ze.clipboardData.getData("text");f(qe)&&Ee(qe)},Ye=l.useRef(!1),Ue=function(){Ye.current=!0},Xe=function(Ze){var qe=Ze.target,Be=qe.selectionStart,Ne=he.getMaskCellIndex(Be);ne(Ne),fe({}),N?.(Ze),Ye.current=!1},et=function(Ze){H(!0),ne(0),K(""),R(Ze)},Te=function(Ze){T(Ze)},_e=function(Ze){H(!1),Te(Ze)};r1(r,function(){!r&&!$&&P(x)});var Le=function(Ze){Ze.key==="Enter"&&f(ge)&&y(),S?.(Ze)},Qe=function(Ze){Le(Ze);var qe=Ze.key,Be=null,Ne=null,Ge=ye-de,rt=d.slice(de,ye),ot=function(ke){ne(function(at){var je=at+ke;return je=Math.max(je,0),je=Math.min(je,he.size()-1),je})},lt=function(ke){var at=TW(rt),je=ji(at,3),Ie=je[0],Fe=je[1],Me=je[2],We=ge.slice(de,ye),Je=Number(We);if(isNaN(Je))return String(Me||(ke>0?Ie:Fe));var it=Je+ke,ft=Fe-Ie+1;return String(Ie+(ft+it-Ie)%ft)};switch(qe){case"Backspace":case"Delete":Be="",Ne=rt;break;case"ArrowLeft":Be="",ot(-1);break;case"ArrowRight":Be="",ot(1);break;case"ArrowUp":Be="",Ne=lt(1);break;case"ArrowDown":Be="",Ne=lt(-1);break;default:isNaN(Number(qe))||(Be=G+qe,Ne=Be);break}if(Be!==null&&(K(Be),Be.length>=Ge&&(ot(1),K(""))),Ne!==null){var St=ge.slice(0,de)+JS(Ne,Ge)+ge.slice(ye);Ee(St.slice(0,d.length))}fe({})},ze=l.useRef();Nt(function(){if(!(!_||!d||Ye.current)){if(!he.match(ge)){Ee(d);return}return ce.current.setSelectionRange(de,ye),ze.current=_t(function(){ce.current.setSelectionRange(de,ye)}),function(){_t.cancel(ze.current)}}},[he,d,_,ge,ie,de,ye,le,Ee]);var ve=d?{onFocus:et,onBlur:_e,onKeyDown:Qe,onMouseDown:Ue,onMouseUp:Xe,onPaste:Ae}:{};return l.createElement("div",{ref:re,className:Q(U,xM(xM({},"".concat(U,"-active"),r&&s),"".concat(U,"-placeholder"),g),n)},l.createElement(W,s0({ref:ce,"aria-invalid":C,autoComplete:"off"},M,{onKeyDown:Le,onBlur:Te},ve,{value:ge,onChange:Pe,className:F.input,style:Y.input})),l.createElement(kp,{type:"suffix",icon:c}),w)}),HW=["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"],BW=["index"];function lu(){return lu=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},lu.apply(this,arguments)}function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){Zc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zc(e,t,n){return t=LW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LW(e){var t=VW(e,"string");return Ms(t)=="symbol"?t:String(t)}function VW(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MM(e,t){return qW(e)||WW(e,t)||kW(e,t)||FW()}function FW(){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 kW(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 WW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function qW(e){if(Array.isArray(e))return e}function Ms(e){"@babel/helpers - typeof";return Ms=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},Ms(e)}function TM(e,t){if(e==null)return{};var n=YW(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(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),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function UW(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,s=e.suffixIcon,c=e.separator,d=c===void 0?"~":c,f=e.activeIndex;e.activeHelp,e.allHelp;var p=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var g=e.placeholder,h=e.className,y=e.style,S=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,w=e.invalid;e.inputReadOnly;var M=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var R=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,N=e.tabIndex,O=TM(e,HW),z=M==="rtl",j=l.useContext(Do),W=j.prefixCls,F=j.classNames,Y=j.styles,U=l.useMemo(function(){if(typeof n=="string")return[n];var ue=n||{};return[ue.start,ue.end]},[n]),L=l.useRef(),B=l.useRef(),_=l.useRef(),H=function(le){var fe;return(fe=[B,_][le])===null||fe===void 0?void 0:fe.current};l.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(le){if(Ms(le)==="object"){var fe,ge=le||{},re=ge.index,ce=re===void 0?0:re,he=TM(ge,BW);(fe=H(ce))===null||fe===void 0||fe.focus(he)}else{var pe;(pe=H(le??0))===null||pe===void 0||pe.focus()}},blur:function(){var le,fe;(le=H(0))===null||le===void 0||le.blur(),(fe=H(1))===null||fe===void 0||fe.blur()}}});var I=U6(O),A=l.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),V=Y6(Kf(Kf({},e),{},{id:U,placeholder:A})),P=MM(V,1),D=P[0],q=l.useState({position:"absolute",width:0}),G=MM(q,2),K=G[0],Z=G[1],J=ut(function(){var ue=H(f);if(ue){var le=ue.nativeElement.getBoundingClientRect(),fe=L.current.getBoundingClientRect(),ge=le.left-fe.left;Z(function(re){return Kf(Kf({},re),{},{width:le.width,left:ge})}),x([le.left,le.right,fe.width])}});l.useEffect(function(){J()},[f]);var ie=i&&($[0]&&!C[0]||$[1]&&!C[1]),ne=T&&!C[0],oe=T&&!ne&&!C[1];return l.createElement(Lr,{onResize:J},l.createElement("div",lu({},I,{className:Q(W,"".concat(W,"-range"),Zc(Zc(Zc(Zc({},"".concat(W,"-focused"),p),"".concat(W,"-disabled"),C.every(function(ue){return ue})),"".concat(W,"-invalid"),w.some(function(ue){return ue})),"".concat(W,"-rtl"),z),h),style:y,ref:L,onClick:S,onMouseDown:function(le){var fe=le.target;fe!==B.current.inputElement&&fe!==_.current.inputElement&&le.preventDefault(),R?.(le)}}),r&&l.createElement("div",{className:Q("".concat(W,"-prefix"),F.prefix),style:Y.prefix},r),l.createElement(c0,lu({ref:B},D(0),{className:"".concat(W,"-input-start"),autoFocus:ne,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(W,"-range-separator")},d),l.createElement(c0,lu({ref:_},D(1),{className:"".concat(W,"-input-end"),autoFocus:oe,tabIndex:N,"date-range":"end"})),l.createElement("div",{className:"".concat(W,"-active-bar"),style:K}),l.createElement(kp,{type:"suffix",icon:s}),ie&&l.createElement(l0,{icon:i,onClear:b})))}var GW=l.forwardRef(UW);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 OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qf(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){XW(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 XW(e,t,n){return t=KW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KW(e){var t=QW(e,"string");return Gu(t)=="symbol"?t:String(t)}function QW(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 K6(e,t){return l.useMemo(function(){var n=Qf(Qf({},e),{},{popup:e?.popup||{}}),r=Qf(Qf({},t),{},{popup:t?.popup||{}});return[n,r]},[e,t])}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 su(){return su=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},su.apply(this,arguments)}function NM(e){return eq(e)||JW(e)||Q6(e)||ZW()}function ZW(){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 JW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eq(e){if(Array.isArray(e))return u0(e)}function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zf(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){tq(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 tq(e,t,n){return t=nq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nq(e){var t=rq(e,"string");return Xu(t)=="symbol"?t:String(t)}function rq(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 ho(e,t){return iq(e)||aq(e,t)||Q6(e,t)||oq()}function oq(){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 Q6(e,t){if(e){if(typeof e=="string")return u0(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 u0(e,t)}}function u0(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 aq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function iq(e){if(Array.isArray(e))return e}function PM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Jf(e){return e===1?"end":"start"}function lq(e,t){var n=M6(e,function(){var Vt=e.disabled,bt=e.allowEmpty,xt=PM(Vt,!1),cn=PM(bt,!1);return{disabled:xt,allowEmpty:cn}}),r=ho(n,6),i=r[0],s=r[1],c=r[2],d=r[3],f=r[4],p=r[5],g=i.prefixCls,h=i.rootClassName,y=i.styles,S=i.classNames,b=i.previewValue,$=i.defaultValue,C=i.value,w=i.needConfirm,M=i.onKeyDown,x=i.disabled,R=i.allowEmpty,T=i.disabledDate,N=i.minDate,O=i.maxDate,z=i.defaultOpen,j=i.open,W=i.onOpenChange,F=i.locale,Y=i.generateConfig,U=i.picker,L=i.showNow,B=i.showToday,_=i.showTime,H=i.mode,I=i.onPanelChange,A=i.onCalendarChange,V=i.onOk,P=i.defaultPickerValue,D=i.pickerValue,q=i.onPickerValueChange,G=i.inputReadOnly,K=i.suffixIcon,Z=i.onFocus,J=i.onBlur,ie=i.presets,ne=i.ranges,oe=i.components,ue=i.cellRender,le=i.dateRender,fe=i.monthCellRender,ge=i.onClick,re=T6(t),ce=K6(S,y),he=ho(ce,2),pe=he[0],Ce=he[1],de=R6(j,z,x,W),ye=ho(de,2),Se=ye[0],Ee=ye[1],Pe=function(bt,xt){(x.some(function(cn){return!cn})||!bt)&&Ee(bt,xt)},Ae=j6(Y,F,d,!0,!1,$,C,A,V),Ye=ho(Ae,5),Ue=Ye[0],Xe=Ye[1],et=Ye[2],Te=Ye[3],_e=Ye[4],Le=et(),Qe=N6(x,R,Se),ze=ho(Qe,9),ve=ze[0],Oe=ze[1],Ze=ze[2],qe=ze[3],Be=ze[4],Ne=ze[5],Ge=ze[6],rt=ze[7],ot=ze[8],lt=function(bt,xt){Oe(!0),Z?.(bt,{range:Jf(xt??qe)})},St=function(bt,xt){Oe(!1),J?.(bt,{range:Jf(xt??qe)})},Ct=l.useMemo(function(){if(!_)return null;var Vt=_.disabledTime,bt=Vt?function(xt){var cn=Jf(qe),Fn=g6(Le,Ge,qe);return Vt(xt,cn,{from:Fn})}:void 0;return Zf(Zf({},_),{},{disabledTime:bt})},[_,qe,Le,Ge]),ke=Yt([U,U],H),at=ho(ke,2),je=at[0],Ie=at[1],Fe=je[qe]||U,Me=Fe==="date"&&Ct?"datetime":Fe,We=Me===U&&Me!=="time",Je=H6(U,Fe,L,B,!0),it=_6(i,Ue,Xe,et,Te,x,d,ve,Se,p),ft=ho(it,2),Ft=ft[0],Dt=ft[1],$t=EV(Le,x,Ge,Y,F,T),tn=y6(Le,p,R),wt=ho(tn,2),Ke=wt[0],Et=wt[1],mt=I6(Y,F,Le,je,Se,qe,s,We,P,D,Ct?.defaultOpenValue,q,N,O),Rt=ho(mt,2),Ut=Rt[0],an=Rt[1],kt=ut(function(Vt,bt,xt){var cn=iu(je,qe,bt);if((cn[0]!==je[0]||cn[1]!==je[1])&&Ie(cn),I&&xt!==!1){var Fn=NM(Le);Vt&&(Fn[qe]=Vt),I(Fn,cn)}}),wn=function(bt,xt){return iu(Le,xt,bt)},En=function(bt,xt){var cn=Le;bt&&(cn=wn(bt,qe)),rt(qe);var Fn=Ne(cn);Te(cn),Ft(qe,Fn===null),Fn===null?Pe(!1,{force:!0}):xt||re.current.focus({index:Fn})},Sr=function(bt){var xt,cn=bt.target.getRootNode();if(!re.current.nativeElement.contains((xt=cn.activeElement)!==null&&xt!==void 0?xt:document.activeElement)){var Fn=x.findIndex(function(Vs){return!Vs});Fn>=0&&re.current.focus({index:Fn})}Pe(!0),ge?.(bt)},dn=function(){Dt(null),Pe(!1,{force:!0})},dr=l.useState(null),Pn=ho(dr,2),Cr=Pn[0],fr=Pn[1],mr=l.useState(null),Ir=ho(mr,2),qr=Ir[0],yt=Ir[1],Sn=l.useMemo(function(){return qr||Le},[Le,qr]);l.useEffect(function(){Se||yt(null)},[Se]);var Mn=l.useState([0,0,0]),Vn=ho(Mn,2),In=Vn[0],xo=Vn[1],Ko=function(bt,xt){b==="hover"&&(yt(bt),fr(xt))},wo=O6(ie,ne),jo=function(bt){Ko(bt,"preset")},tt=function(bt){var xt=Dt(bt);xt&&Pe(!1,{force:!0})},Jt=function(bt){En(bt)},_n=function(bt){Ko(bt?wn(bt,qe):null,"cell")},Qo=function(bt){Pe(!0),lt(bt)},Zo=function(){Ze("panel")},_o=function(bt){var xt=iu(Le,qe,bt);Te(xt),!w&&!c&&s===Me&&En(bt)},oo=function(){Pe(!1)},dl=e1(ue,le,fe,Jf(qe)),fl=Le[qe]||null,Ho=ut(function(Vt){return p(Vt,{activeIndex:qe})}),Mt=l.useMemo(function(){var Vt=jn(i,!1),bt=nn(i,[].concat(NM(Object.keys(Vt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]));return bt},[i]),ht=l.createElement(q6,su({},Mt,{showNow:Je,showTime:Ct,range:!0,multiplePanel:We,activeInfo:In,disabledDate:$t,onFocus:Qo,onBlur:St,onPanelMouseDown:Zo,picker:U,mode:Fe,internalMode:Me,onPanelChange:kt,format:f,value:fl,isInvalid:Ho,onChange:null,onSelect:_o,pickerValue:Ut,defaultOpenValue:ll(_?.defaultOpenValue)[qe],onPickerValueChange:an,hoverValue:Sn,onHover:_n,needConfirm:w,onSubmit:En,onOk:_e,presets:wo,onPresetHover:jo,onPresetSubmit:tt,onNow:Jt,cellRender:dl,classNames:pe,styles:Ce})),Kn=function(bt,xt){var cn=wn(bt,xt);Te(cn)},Pr=function(){Ze("input")},ml=function(bt,xt){var cn=Ge.length,Fn=Ge[cn-1];if(cn&&Fn!==xt&&w&&!R[Fn]&&!ot(Fn)&&Le[Fn]){re.current.focus({index:Fn});return}Ze("input"),Pe(!0,{inherit:!0}),qe!==xt&&Se&&!w&&c&&En(null,!0),Be(xt),lt(bt,xt)},Kp=function(bt,xt){if(Pe(!1),!w&&Ze()==="input"){var cn=Ne(Le);Ft(qe,cn===null)}St(bt,xt)},pl=function(bt,xt){bt.key==="Tab"&&En(null,!0),M?.(bt,xt)},Eo=l.useMemo(function(){return{prefixCls:g,locale:F,generateConfig:Y,button:oe.button,input:oe.input,classNames:pe,styles:Ce}},[g,F,Y,oe.button,oe.input,pe,Ce]);return Nt(function(){Se&&qe!==void 0&&kt(null,U,!1)},[Se,qe,U]),Nt(function(){var Vt=Ze();!Se&&Vt==="input"&&(Pe(!1),En(null,!0)),!Se&&c&&!w&&Vt==="panel"&&(Pe(!0),En())},[Se]),l.createElement(Do.Provider,{value:Eo},l.createElement(m6,su({},h6(i),{popupElement:ht,popupStyle:Ce.popup.root,popupClassName:Q(h,pe.popup.root),visible:Se,onClose:oo,range:!0}),l.createElement(GW,su({},i,{ref:re,className:Q(i.className,h,pe.root),style:Zf(Zf({},Ce.root),i.style),suffixIcon:K,activeIndex:ve||Se?qe:null,activeHelp:!!qr,allHelp:!!qr&&Cr==="preset",focused:ve,onFocus:ml,onBlur:Kp,onKeyDown:pl,onSubmit:En,value:Sn,maskFormat:f,onChange:Kn,onInputChange:Pr,format:d,inputReadOnly:G,disabled:x,open:Se,onOpenChange:Pe,onClick:Sr,onClear:dn,invalid:Ke,onInvalid:Et,onActiveInfo:xo}))))}var sq=l.forwardRef(lq);function cq(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,s=i===void 0?"×":i,c=e.formatDate,d=e.disabled,f=e.maxTagCount,p=e.placeholder,g="".concat(t,"-selector"),h="".concat(t,"-selection"),y="".concat(h,"-overflow");function S(C,w){return l.createElement("span",{className:Q("".concat(h,"-item")),title:typeof C=="string"?C:null},l.createElement("span",{className:"".concat(h,"-item-content")},C),!d&&w&&l.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:w,className:"".concat(h,"-item-remove")},s))}function b(C){var w=c(C),M=function(R){R&&R.stopPropagation(),r(C)};return S(w,M)}function $(C){var w="+ ".concat(C.length," ...");return S(w)}return l.createElement("div",{className:g},l.createElement(qo,{prefixCls:y,data:n,renderItem:b,renderRest:$,itemKey:function(w){return c(w)},maxCount:f}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},p))}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)}var uq=["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 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)}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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){os(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 os(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=fq(e,"string");return Ku(t)=="symbol"?t:String(t)}function fq(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 mq(e,t){return yq(e)||hq(e,t)||gq(e,t)||pq()}function pq(){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 gq(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 hq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function yq(e){if(Array.isArray(e))return e}function bq(e,t){if(e==null)return{};var n=vq(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Sq(e,t){e.id;var n=e.open,r=e.prefix,i=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,p=e.placeholder,g=e.className,h=e.style,y=e.onClick,S=e.onClear,b=e.internalPicker,$=e.value,C=e.onChange,w=e.onSubmit;e.onInputChange;var M=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var R=e.disabled,T=e.invalid;e.inputReadOnly;var N=e.direction;e.onOpenChange;var O=e.onMouseDown;e.required,e["aria-required"];var z=e.autoFocus,j=e.tabIndex,W=e.removeIcon,F=bq(e,uq),Y=N==="rtl",U=l.useContext(Do),L=U.prefixCls,B=U.classNames,_=U.styles,H=l.useRef(),I=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(ne){var oe;(oe=I.current)===null||oe===void 0||oe.focus(ne)},blur:function(){var ne;(ne=I.current)===null||ne===void 0||ne.blur()}}});var A=U6(F),V=function(ne){C([ne])},P=function(ne){var oe=$.filter(function(ue){return ue&&!Mr(f,d,ue,ne,b)});C(oe),n||w()},D=Y6(AM(AM({},e),{},{onChange:V}),function(ie){var ne=ie.valueTexts;return{value:ne[0]||"",active:c}}),q=mq(D,2),G=q[0],K=q[1],Z=!!(i&&$.length&&!R),J=M?l.createElement(l.Fragment,null,l.createElement(cq,{prefixCls:L,value:$,onRemove:P,formatDate:K,maxTagCount:x,disabled:R,removeIcon:W,placeholder:p}),l.createElement("input",{className:"".concat(L,"-multiple-input"),value:$.map(K).join(","),ref:I,readOnly:!0,autoFocus:z,tabIndex:j}),l.createElement(kp,{type:"suffix",icon:s}),Z&&l.createElement(l0,{icon:i,onClear:S})):l.createElement(c0,tp({ref:I},G(),{autoFocus:z,tabIndex:j,suffixIcon:s,clearIcon:Z&&l.createElement(l0,{icon:i,onClear:S}),showActiveCls:!1}));return l.createElement("div",tp({},A,{className:Q(L,os(os(os(os(os({},"".concat(L,"-multiple"),M),"".concat(L,"-focused"),c),"".concat(L,"-disabled"),R),"".concat(L,"-invalid"),T),"".concat(L,"-rtl"),Y),g),style:h,ref:H,onClick:y,onMouseDown:function(ne){var oe,ue=ne.target;ue!==((oe=I.current)===null||oe===void 0?void 0:oe.inputElement)&&ne.preventDefault(),O?.(ne)}}),r&&l.createElement("div",{className:Q("".concat(L,"-prefix"),B.prefix),style:_.prefix},r),J)}var Cq=l.forwardRef(Sq);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 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)}function jM(e){return wq(e)||xq(e)||Z6(e)||$q()}function $q(){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 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 d0(e)}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){Eq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(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 Qu(t)=="symbol"?t:String(t)}function Rq(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 Oo(e,t){return Nq(e)||Oq(e,t)||Z6(e,t)||Tq()}function Tq(){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 Z6(e,t){if(e){if(typeof e=="string")return d0(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 d0(e,t)}}function d0(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,i,s,c,d=[],f=!0,p=!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){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Nq(e){if(Array.isArray(e))return e}function Iq(e,t){var n=M6(e),r=Oo(n,6),i=r[0],s=r[1],c=r[2],d=r[3],f=r[4],p=r[5],g=i,h=g.prefixCls,y=g.rootClassName,S=g.styles,b=g.classNames,$=g.previewValue,C=g.order,w=g.defaultValue,M=g.value,x=g.needConfirm,R=g.onChange,T=g.onKeyDown,N=g.disabled,O=g.disabledDate,z=g.minDate,j=g.maxDate,W=g.defaultOpen,F=g.open,Y=g.onOpenChange,U=g.locale,L=g.generateConfig,B=g.picker,_=g.showNow,H=g.showToday,I=g.showTime,A=g.mode,V=g.onPanelChange,P=g.onCalendarChange,D=g.onOk,q=g.multiple,G=g.defaultPickerValue,K=g.pickerValue,Z=g.onPickerValueChange,J=g.inputReadOnly,ie=g.suffixIcon,ne=g.removeIcon,oe=g.onFocus,ue=g.onBlur,le=g.presets,fe=g.components,ge=g.cellRender,re=g.dateRender,ce=g.monthCellRender,he=g.onClick,pe=T6(t);function Ce(Mt){return Mt===null?null:q?Mt:Mt[0]}var de=B6(L,U,s),ye=K6(b,S),Se=Oo(ye,2),Ee=Se[0],Pe=Se[1],Ae=R6(F,W,[N],Y),Ye=Oo(Ae,2),Ue=Ye[0],Xe=Ye[1],et=function(ht,Kn,Pr){if(P){var ml=ga({},Pr);delete ml.range,P(Ce(ht),Ce(Kn),ml)}},Te=function(ht){D?.(Ce(ht))},_e=j6(L,U,d,!1,C,w,M,et,Te),Le=Oo(_e,5),Qe=Le[0],ze=Le[1],ve=Le[2],Oe=Le[3],Ze=Le[4],qe=ve(),Be=N6([N]),Ne=Oo(Be,4),Ge=Ne[0],rt=Ne[1],ot=Ne[2],lt=Ne[3],St=function(ht){rt(!0),oe?.(ht,{})},Ct=function(ht){rt(!1),ue?.(ht,{})},ke=Yt(B,A),at=Oo(ke,2),je=at[0],Ie=at[1],Fe=je==="date"&&I?"datetime":je,Me=H6(B,je,_,H),We=R&&function(Mt,ht){R(Ce(Mt),Ce(ht))},Je=_6(ga(ga({},i),{},{onChange:We}),Qe,ze,ve,Oe,[],d,Ge,Ue,p),it=Oo(Je,2),ft=it[1],Ft=y6(qe,p),Dt=Oo(Ft,2),$t=Dt[0],tn=Dt[1],wt=l.useMemo(function(){return $t.some(function(Mt){return Mt})},[$t]),Ke=function(ht,Kn){if(Z){var Pr=ga(ga({},Kn),{},{mode:Kn.mode[0]});delete Pr.range,Z(ht[0],Pr)}},Et=I6(L,U,qe,[je],Ue,lt,s,!1,G,K,ll(I?.defaultOpenValue),Ke,z,j),mt=Oo(Et,2),Rt=mt[0],Ut=mt[1],an=ut(function(Mt,ht,Kn){if(Ie(ht),V&&Kn!==!1){var Pr=Mt||qe[qe.length-1];V(Pr,ht)}}),kt=function(){ft(ve()),Xe(!1,{force:!0})},wn=function(ht){!N&&!pe.current.nativeElement.contains(document.activeElement)&&pe.current.focus(),Xe(!0),he?.(ht)},En=function(){ft(null),Xe(!1,{force:!0})},Sr=l.useState(null),dn=Oo(Sr,2),dr=dn[0],Pn=dn[1],Cr=l.useState(null),fr=Oo(Cr,2),mr=fr[0],Ir=fr[1],qr=l.useMemo(function(){var Mt=[mr].concat(jM(qe)).filter(function(ht){return ht});return q?Mt:Mt.slice(0,1)},[qe,mr,q]),yt=l.useMemo(function(){return!q&&mr?[mr]:qe.filter(function(Mt){return Mt})},[qe,mr,q]);l.useEffect(function(){Ue||Ir(null)},[Ue]);var Sn=function(ht,Kn){$==="hover"&&(Ir(ht),Pn(Kn))},Mn=O6(le),Vn=function(ht){Sn(ht,"preset")},In=function(ht){var Kn=q?de(ve(),ht):[ht],Pr=ft(Kn);Pr&&!q&&Xe(!1,{force:!0})},xo=function(ht){In(ht)},Ko=function(ht){Sn(ht,"cell")},wo=function(ht){Xe(!0),St(ht)},jo=function(ht){if(ot("panel"),!(q&&Fe!==B)){var Kn=q?de(ve(),ht):[ht];Oe(Kn),!x&&!c&&s===Fe&&kt()}},tt=function(){Xe(!1)},Jt=e1(ge,re,ce),_n=l.useMemo(function(){var Mt=jn(i,!1),ht=nn(i,[].concat(jM(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]));return ga(ga({},ht),{},{multiple:i.multiple})},[i]),Qo=l.createElement(q6,cu({},_n,{showNow:Me,showTime:I,disabledDate:O,onFocus:wo,onBlur:Ct,picker:B,mode:je,internalMode:Fe,onPanelChange:an,format:f,value:qe,isInvalid:p,onChange:null,onSelect:jo,pickerValue:Rt,defaultOpenValue:I?.defaultOpenValue,onPickerValueChange:Ut,hoverValue:qr,onHover:Ko,needConfirm:x,onSubmit:kt,onOk:Ze,presets:Mn,onPresetHover:Vn,onPresetSubmit:In,onNow:xo,cellRender:Jt,classNames:Ee,styles:Pe})),Zo=function(ht){Oe(ht)},_o=function(){ot("input")},oo=function(ht){ot("input"),Xe(!0,{inherit:!0}),St(ht)},dl=function(ht){Xe(!1),Ct(ht)},fl=function(ht,Kn){ht.key==="Tab"&&kt(),T?.(ht,Kn)},Ho=l.useMemo(function(){return{prefixCls:h,locale:U,generateConfig:L,button:fe.button,input:fe.input,classNames:Ee,styles:Pe}},[h,U,L,fe.button,fe.input,Ee,Pe]);return Nt(function(){Ue&&lt!==void 0&&an(null,B,!1)},[Ue,lt,B]),Nt(function(){var Mt=ot();!Ue&&Mt==="input"&&(Xe(!1),kt()),!Ue&&c&&!x&&Mt==="panel"&&kt()},[Ue]),l.createElement(Do.Provider,{value:Ho},l.createElement(m6,cu({},h6(i),{popupElement:Qo,popupStyle:Pe.popup.root,popupClassName:Q(y,Ee.popup.root),visible:Ue,onClose:tt}),l.createElement(Cq,cu({},i,{ref:pe,className:Q(i.className,y,Ee.root),style:ga(ga({},Pe.root),i.style),suffixIcon:ie,removeIcon:ne,activeHelp:!!mr,allHelp:!!mr&&dr==="preset",focused:Ge,onFocus:oo,onBlur:dl,onKeyDown:fl,onSubmit:kt,value:yt,maskFormat:f,onChange:Zo,onInputChange:_o,internalPicker:s,format:d,inputReadOnly:J,disabled:N,open:Ue,onOpenChange:Xe,onClick:wn,onClear:En,invalid:wt,onInvalid:function(ht){tn(ht,0)}}))))}var Pq=l.forwardRef(Iq);function zq(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Aq(e){return zq(e).join("_")}const J6=l.createContext(null),Dq=J6.Provider,e3=l.createContext(null),jq=e3.Provider;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 t3=l.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:i,checked:s,disabled:c,defaultChecked:d=!1,type:f="checkbox",title:p,onChange:g,...h}=e,y=l.useRef(null),S=l.useRef(null),[b,$]=Yt(d,s);l.useImperativeHandle(t,()=>({focus:M=>{y.current?.focus(M)},blur:()=>{y.current?.blur()},input:y.current,nativeElement:S.current}));const C=Q(n,r,{[`${n}-checked`]:b,[`${n}-disabled`]:c}),w=M=>{c||("checked"in e||$(M.target.checked),g?.({target:{...e,type:f,checked:M.target.checked},stopPropagation(){M.stopPropagation()},preventDefault(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return l.createElement("span",{className:C,title:p,style:i,ref:S},l.createElement("input",f0({},h,{className:`${n}-input`,ref:y,onChange:w,disabled:c,checked:!!b,type:f})),l.createElement("span",{className:`${n}-inner`}))});function n3(e){const t=ae.useRef(null),n=()=>{_t.cancel(t.current),t.current=null};return[()=>{n(),t.current=_t(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e?.(s)}]}const _q=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Zt(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}}}},Hq=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:s,motionDurationMid:c,motionEaseInOutCirc:d,colorBgContainer:f,colorBorder:p,lineWidth:g,colorBgContainerDisabled:h,colorTextDisabled:y,paddingXS:S,dotColorDisabled:b,lineType:$,radioColor:C,radioBgColor:w,calc:M}=e,x=`${t}-inner`,T=M(i).sub(M(4).mul(2)),N=M(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:{...Zt(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]:{...Zt(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
257
- &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Yo(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:M(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:M(1).mul(i).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:p,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:w,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${s} ${d}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:h,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:y,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${M(T).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:S,paddingInlineEnd:S}}}},Bq=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:s,colorBorder:c,motionDurationMid:d,buttonPaddingInline:f,fontSize:p,buttonBg:g,fontSizeLG:h,controlHeightLG:y,controlHeightSM:S,paddingXS:b,borderRadius:$,borderRadiusSM:C,borderRadiusLG:w,buttonCheckedBg:M,buttonSolidCheckedColor:x,colorTextDisabled:R,colorBgContainerDisabled:T,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:O,colorPrimary:z,colorPrimaryHover:j,colorPrimaryActive:W,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:Y,buttonSolidCheckedActiveBg:U,calc:L}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:p,lineHeight:te(L(n).sub(L(i).mul(2)).equal()),background:g,border:`${te(i)} ${s} ${c}`,borderBlockStartWidth:L(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${d}`,`background ${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:L(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(i)} ${s} ${c}`,borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$},"&:first-child:last-child":{borderRadius:$},[`${r}-group-large &`]:{height:y,fontSize:h,lineHeight:te(L(y).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:S,paddingInline:L(b).sub(i).equal(),paddingBlock:0,lineHeight:te(L(S).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:z},"&:has(:focus-visible)":Yo(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:z,background:M,borderColor:z,"&::before":{backgroundColor:z},"&:first-child":{borderColor:z},"&:hover":{color:j,borderColor:j,"&::before":{backgroundColor:j}},"&:active":{color:W,borderColor:W,"&::before":{backgroundColor:W}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:F,borderColor:F,"&:hover":{color:x,background:Y,borderColor:Y},"&:active":{color:x,background:U,borderColor:U}},"&-disabled":{color:R,backgroundColor:T,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:T,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:N,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Lq=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:s,colorText:c,colorBgContainer:d,colorTextDisabled:f,controlItemBgActiveDisabled:p,colorTextLightSolid:g,colorPrimary:h,colorPrimaryHover:y,colorPrimaryActive:S,colorWhite:b}=e,$=4,C=s,w=t?C-$*2:C-($+i)*2;return{radioSize:C,dotSize:w,dotColorDisabled:f,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:y,buttonSolidCheckedActiveBg:S,buttonBg:d,buttonCheckedBg:d,buttonColor:c,buttonCheckedBgDisabled:p,buttonCheckedColorDisabled:f,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?h:b,radioBgColor:t?d:h}},r3=Pt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=Ot(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[_q(s),Hq(s),Bq(s)]},Lq,{unitless:{radioSize:!0,dotSize:!0}}),Vq=(e,t)=>{const n=l.useContext(J6),r=l.useContext(e3),{getPrefixCls:i,direction:s,className:c,style:d,classNames:f,styles:p}=It("radio"),g=l.useRef(null),h=rr(t,g),{isFormItemInput:y}=l.useContext(Rr),S=P=>{e.onChange?.(P),n?.onChange?.(P)},{prefixCls:b,className:$,rootClassName:C,children:w,style:M,title:x,classNames:R,styles:T,...N}=e,O=i("radio",b),z=(n?.optionType||r)==="button",j=z?`${O}-button`:O,W=or(O),[F,Y]=r3(O,W),U={...N},L=l.useContext(Fr);n&&(U.name=n.name,U.onChange=S,U.checked=e.value===n.value,U.disabled=U.disabled??n.disabled),U.disabled=U.disabled??L;const B={...e,...U},[_,H]=Lt([f,R],[p,T],{props:B}),I=Q(`${j}-wrapper`,{[`${j}-wrapper-checked`]:U.checked,[`${j}-wrapper-disabled`]:U.disabled,[`${j}-wrapper-rtl`]:s==="rtl",[`${j}-wrapper-in-form-item`]:y,[`${j}-wrapper-block`]:!!n?.block},c,$,C,_.root,F,Y,W),[A,V]=n3(U.onClick);return l.createElement(ud,{component:"Radio",disabled:U.disabled},l.createElement("label",{className:I,style:{...H.root,...d,...M},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:A},l.createElement(t3,{...U,className:Q(_.icon,{[cd]:!z}),style:H.icon,type:"radio",prefixCls:j,ref:h,onClick:V}),w!==void 0?l.createElement("span",{className:Q(`${j}-label`,_.label),style:H.label},w):null))},np=l.forwardRef(Vq),Fq=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{name:i}=l.useContext(Rr),s=Ea(Aq(i)),{prefixCls:c,className:d,rootClassName:f,options:p,buttonStyle:g="outline",disabled:h,children:y,size:S,style:b,id:$,optionType:C,name:w=s,defaultValue:M,value:x,block:R=!1,onChange:T,onMouseEnter:N,onMouseLeave:O,onFocus:z,onBlur:j,orientation:W,vertical:F}=e,[Y,U]=Yt(M,x),L=l.useCallback(K=>{const Z=Y,J=K.target.value;"value"in e||U(J),J!==Z&&T?.(K)},[Y,U,T]),B=n("radio",c),_=`${B}-group`,H=or(B),[I,A]=r3(B,H);let V=y;p&&p.length>0&&(V=p.map(K=>typeof K=="string"||typeof K=="number"?l.createElement(np,{key:K.toString(),prefixCls:B,disabled:h,value:K,checked:Y===K},K):l.createElement(np,{key:`radio-group-value-options-${K.value}`,prefixCls:B,disabled:K.disabled||h,value:K.value,checked:Y===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const P=ur(S),[,D]=od(W,F),q=Q(_,`${_}-${g}`,{[`${_}-${P}`]:P,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:R},d,f,I,A,H),G=l.useMemo(()=>({onChange:L,value:Y,disabled:h,name:w,optionType:C,block:R}),[L,Y,h,w,C,R]);return l.createElement("div",{...jn(e,{aria:!0,data:!0}),className:Q(q,{[`${B}-group-vertical`]:D}),style:b,onMouseEnter:N,onMouseLeave:O,onFocus:z,onBlur:j,id:$,ref:t},l.createElement(Dq,{value:G},V))}),o3=l.memo(Fq),kq=(e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,...i}=e,s=n("radio",r);return l.createElement(jq,{value:"button"},l.createElement(np,{prefixCls:s,...i,type:"radio",ref:t}))},m0=l.forwardRef(kq),i1=np;i1.Button=m0;i1.Group=o3;i1.__ANT_RADIO=!0;const Wq=10,qq=20;function Yq(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:s,value:c,onChange:d,divRef:f}=e,p=r.getYear(c||r.getNow());let g=p-Wq,h=g+qq;n&&(g=r.getYear(n[0]),h=r.getYear(n[1])+1);const y=i&&i.year==="年"?"年":"",S=[];for(let b=g;b<h;b++)S.push({label:`${b}${y}`,value:b});return l.createElement(Br,{size:t?void 0:"small",options:S,value:p,className:`${s}-year-select`,onChange:b=>{let $=r.setYear(c,b);if(n){const[C,w]=n,M=r.getYear($),x=r.getMonth($);M===r.getYear(w)&&x>r.getMonth(w)&&($=r.setMonth($,r.getMonth(w))),M===r.getYear(C)&&x<r.getMonth(C)&&($=r.setMonth($,r.getMonth(C)))}d($)},getPopupContainer:()=>f.current})}function Uq(e){const{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:s,locale:c,onChange:d,divRef:f}=e,p=s.getMonth(i||s.getNow());let g=0,h=11;if(r){const[b,$]=r,C=s.getYear(i);s.getYear($)===C&&(h=s.getMonth($)),s.getYear(b)===C&&(g=s.getMonth(b))}const y=c.shortMonths||s.locale.getShortMonths(c.locale),S=[];for(let b=g;b<=h;b+=1)S.push({label:y[b],value:b});return l.createElement(Br,{size:n?void 0:"small",className:`${t}-month-select`,value:p,options:S,onChange:b=>{d(s.setMonth(i,b))},getPopupContainer:()=>f.current})}function Gq(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:s}=e;return l.createElement(o3,{onChange:({target:{value:c}})=>{s(c)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},l.createElement(m0,{value:"month"},n.month),l.createElement(m0,{value:"year"},n.year))}function Xq(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:s,className:c,style:d}=e,f=l.useRef(null),p=l.useContext(Rr),g=l.useMemo(()=>({...p,isFormItemInput:!1}),[p]),h={...e,fullscreen:n,divRef:f};return l.createElement("div",{className:Q(`${t}-header`,c),style:d,ref:f},l.createElement(Rr.Provider,{value:g},l.createElement(Yq,{...h,onChange:y=>{i(y,"year")}}),r==="month"&&l.createElement(Uq,{...h,onChange:y=>{i(y,"month")}})),l.createElement(Gq,{...h,onModeChange:s}))}function Bs(e){return Ot(e,{inputAffixPadding:e.paddingXXS})}const Ls=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:s,controlHeightLG:c,fontSizeLG:d,lineHeightLG:f,paddingSM:p,controlPaddingHorizontalSM:g,controlPaddingHorizontal:h,colorFillAlter:y,colorPrimaryHover:S,colorPrimary:b,controlOutlineWidth:$,controlOutline:C,colorErrorOutline:w,colorWarningOutline:M,colorBgContainer:x,inputFontSize:R,inputFontSizeLG:T,inputFontSizeSM:N}=e,O=R||n,z=N||O,j=T||d,W=Math.round((t-O*r)/2*10)/10-i,F=Math.round((s-z*r)/2*10)/10-i,Y=Math.ceil((c-j*f)/2*10)/10-i;return{paddingBlock:Math.max(W,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(Y,0),paddingInline:p-i,paddingInlineSM:g-i,paddingInlineLG:h-i,addonBg:y,activeBorderColor:b,hoverBorderColor:S,activeShadow:`0 0 0 ${$}px ${C}`,errorActiveShadow:`0 0 0 ${$}px ${w}`,warningActiveShadow:`0 0 0 ${$}px ${M}`,hoverBg:x,activeBg:x,inputFontSize:O,inputFontSizeLG:j,inputFontSizeSM:z}},Kq=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Wp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...Kq(Ot(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),l1=(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}}),HM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...l1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),a3=(e,t)=>({"&-outlined":{...l1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Wp(e)},...HM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...HM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),BM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Qq=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}},...BM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...BM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Wp(e)}}}}),i3=(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}}},l3=(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}}),LM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...l3(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),s3=(e,t)=>({"&-filled":{...l3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Wp(e)},...LM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...LM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),VM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Zq=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...VM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...VM(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}`}}}}}),c3=(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}}),FM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...c3(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`}}),u3=(e,t)=>({"&-underlined":{...c3(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"},...FM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...FM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),d3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),f3=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${te(t)} ${te(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},s1=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),c1=(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}`,...d3(e.colorTextPlaceholder),"&-lg":{...f3(e),...t.largeStyle},"&-sm":{...s1(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Jq=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`]:{...f3(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...s1(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",...Ki(),[`${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`]:{}}}}},eY=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,c=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Zt(e),...c1(e),...a3(e),...s3(e),...i3(e),...u3(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"}}}},tY=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)}`}}}},nY=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:s,colorIconHover:c,iconCls:d}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:{...c1(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}},...tY(e),[`${d}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:c}}},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${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`]:{...Zt(e),...Jq(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}},...Qq(e),...Zq(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}}}}}},oY=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},m3=Pt(["Input","Shared"],e=>{const t=Ot(e,Bs(e));return[eY(t),nY(t)]},Ls,{resetFont:!1}),p3=Pt(["Input","Component"],e=>{const t=Ot(e,Bs(e));return[rY(t),oY(t),fd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Ls,{resetFont:!1}),aY=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,s=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(s).sub(i).equal(),0);return{basePadding:s,containerPadding:c,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},iY=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:s,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:d,colorIcon:f,colorIconHover:p,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 ${i}, line-height ${i}, height ${i}`,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":{...Os(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}}}}},Vy=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",s=aY(e);return[{[`${n}-multiple${i}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:te(s.itemLineHeight)}}}]},lY=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Ot(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=Ot(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[Vy(i,"small"),Vy(e),Vy(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"}},...iY(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},sY=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:s,cellHoverBg:c,lineWidth:d,lineType:f,colorPrimary:p,cellActiveWithRangeBg:g,colorTextLightSolid:h,colorTextDisabled:y,cellBgDisabled:S,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:i,transition:`background ${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} ${p}`,borderRadius:i,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:p},[`&${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:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:y,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:S}},[`&-disabled${t}-today ${n}::before`]:{borderColor:y}}},g3=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:s,cellWidth:c,paddingSM:d,paddingXS:f,paddingXXS:p,colorBgContainer:g,lineWidth:h,lineType:y,borderRadiusLG:S,colorPrimary:b,colorTextHeading:$,colorSplit:C,pickerControlIconBorderWidth:w,colorIcon:M,textHeight:x,motionDurationMid:R,colorIconHover:T,fontWeightStrong:N,cellHeight:O,pickerCellPaddingVertical:z,colorTextDisabled:j,colorText:W,fontSize:F,motionDurationSlow:Y,withoutTimeCellHeight:U,pickerQuarterPanelContentHeight:L,borderRadiusSM:B,colorTextLightSolid:_,cellHoverBg:H,timeColumnHeight:I,timeColumnWidth:A,timeCellHeight:V,controlItemBgActive:P,marginXXS:D,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:G}=e,K=e.calc(c).mul(7).add(e.calc(q).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:g,borderRadius:S,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:K},"&-header":{display:"flex",padding:`0 ${te(f)}`,color:$,borderBottom:`${te(h)} ${y} ${C}`,"> *":{flex:"none"},button:{padding:0,color:M,lineHeight:te(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${R}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:F,"&:hover":{color:T},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:te(x),"> 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:w,borderInlineStartWidth:w,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,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(z).mul(2)).equal(),color:W,verticalAlign:"middle"}},"&-cell":{padding:`${te(z)} 0`,color:j,cursor:"pointer","&-in-view":{color:W},...sY(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(U).mul(4).equal()},[r]:{padding:`0 ${te(f)}`}},"&-quarter-panel":{[`${t}-content`]:{height:L}},"&-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:i}},"&-date-panel":{[`${t}-body`]:{padding:`${te(f)} ${te(q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${R}`},"&:first-child:before":{borderStartStartRadius:B,borderEndStartRadius:B},"&:last-child:before":{borderStartEndRadius:B,borderEndEndRadius:B}},"&:hover td:before":{background:H},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new en(_).setA(.5).toHexString()},[r]:{color:_}}},"&-range-hover td:before":{background:P}},"&-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 ${Y}`},"&-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:A,margin:`${te(p)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${R}`,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(V)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${te(h)} ${y} ${C}`},"&-active":{background:new en(P).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(D).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(V).div(2).equal(),color:W,lineHeight:te(V),borderRadius:B,cursor:"pointer",transition:`background ${R}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:P}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:j,background:"transparent",cursor:"not-allowed"}}}}}}}}},cY=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:s,colorPrimary:c,cellActiveWithRangeBg:d,colorPrimaryBorder:f,lineType:p,colorSplit:g}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${te(r)} ${p} ${g}`,"&-extra":{padding:`0 ${te(i)}`,lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${te(r)} ${p} ${g}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:te(i),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"}}}}},h3=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=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(i).add(e.calc(r).div(2)).equal()}},y3=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:s,lineWidth:c}=e,d=s*2,f=c*2,p=Math.min(n-d,n-f),g=Math.min(r-d,r-f),h=Math.min(i-d,i-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new en(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new en(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightSM:g,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},uY=e=>({...Ls(e),...y3(e),...Pp(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),dY=e=>{const{componentCls:t}=e;return{[t]:[{...a3(e),...u3(e),...s3(e),...i3(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}`}}}]}},Fy=(e,t)=>({padding:`${te(e)} ${te(t)}`}),fY=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}}}}},mY=e=>{const{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:s,colorBorder:c,borderRadius:d,motionDurationMid:f,colorTextDisabled:p,colorTextPlaceholder:g,colorTextQuaternary:h,fontSizeLG:y,inputFontSizeLG:S,fontSizeSM:b,inputFontSizeSM:$,controlHeightSM:C,paddingInlineSM:w,paddingXS:M,marginXS:x,colorIcon:R,lineWidthBold:T,colorPrimary:N,motionDurationSlow:O,zIndexPopup:z,paddingXXS:j,sizePopupArrow:W,colorBgElevated:F,borderRadiusLG:Y,boxShadowSecondary:U,borderRadiusSM:L,colorSplit:B,cellHoverBg:_,presetsWidth:H,presetsMaxWidth:I,boxShadowPopoverArrow:A,fontHeight:V,lineHeightLG:P}=e;return[{[t]:{...Zt(e),...Fy(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}`,...d3(g),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:p,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:g}}},"&-large":{...Fy(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:S??y,lineHeight:P}},"&-small":{...Fy(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:$??b}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(M).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${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:R}},"&: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:R},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).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(M)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:w}}},"&-dropdown":{...Zt(e),...g3(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:z,[`&${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:Rp},[`&${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:Ep},[`&${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:Tp},[`&${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:Mp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:j},[`${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`,...PO(e,F,A),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:F,borderRadius:Y,boxShadow:U,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:M,borderInlineEnd:`${te(i)} ${s} ${B}`,li:{...So,borderRadius:L,paddingInline:M,paddingBlock:e.calc(C).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:x},"&: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(W).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Go(e,"slide-up"),Go(e,"slide-down"),xs(e,"move-up"),xs(e,"move-down")]},b3=Pt("DatePicker",e=>{const t=Ot(Bs(e),h3(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cY(t),mY(t),dY(t),fY(t),lY(t),fd(e,{focusElCls:`${e.componentCls}-focused`})]},uY),pY=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:s}=e;return{[t]:{...g3(e),...Zt(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:i,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 ${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"}}}}}}},gY=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...y3(e)}),hY=Pt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Ot(e,h3(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 pY(n)},gY),v3=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},p0=(e,t,n)=>{const{getMonth:r}=n;return v3(e,t,n)&&r(e)===r(t)},kM=(e,t,n)=>{const{getDate:r}=n;return p0(e,t,n)&&r(e)===r(t)},S3=e=>n=>{const{prefixCls:r,className:i,rootClassName:s,style:c,dateFullCellRender:d,dateCellRender:f,monthFullCellRender:p,monthCellRender:g,cellRender:h,fullCellRender:y,headerRender:S,value:b,defaultValue:$,disabledDate:C,mode:w,validRange:M,fullscreen:x=!0,showWeek:R,onChange:T,onPanelChange:N,onSelect:O,styles:z,classNames:j}=n,{getPrefixCls:W,direction:F,className:Y,style:U,classNames:L,styles:B}=It("calendar"),_={...n,mode:w,fullscreen:x,showWeek:R},[H,I]=Lt([L,j],[B,z],{props:_}),[A,V,P,D,q,G]=l.useMemo(()=>{const{root:Ae,header:Ye,...Ue}=H,{root:Xe,header:et,...Te}=I;return[Ae,Ye,Ue,Xe,et,Te]},[H,I]),K=W("picker",r),Z=`${K}-calendar`,[J,ie]=hY(K,Z),ne=e.getNow(),[oe,ue]=Yt(()=>$||e.getNow(),b),[le,fe]=Yt("month",w),ge=l.useMemo(()=>le==="year"?"month":"date",[le]),re=l.useCallback(Ae=>(M?e.isAfter(M[0],Ae)||e.isAfter(Ae,M[1]):!1)||!!C?.(Ae),[C,M]),ce=(Ae,Ye)=>{N?.(Ae,Ye)},he=Ae=>{ue(Ae),kM(Ae,oe,e)||((ge==="date"&&!p0(Ae,oe,e)||ge==="month"&&!v3(Ae,oe,e))&&ce(Ae,le),T?.(Ae))},pe=Ae=>{fe(Ae),ce(oe,Ae)},Ce=(Ae,Ye)=>{he(Ae),O?.(Ae,{source:Ye})},de=l.useCallback((Ae,Ye)=>y?y(Ae,Ye):d?d(Ae):l.createElement("div",{className:Q(`${K}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:kM(ne,Ae,e)})},l.createElement("div",{className:`${Z}-date-value`},String(e.getDate(Ae)).padStart(2,"0")),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Ae,Ye):f?.(Ae))),[ne,K,Z,y,d,h,f]),ye=l.useCallback((Ae,Ye)=>{if(y)return y(Ae,Ye);if(p)return p(Ae);const Ue=Ye.locale.shortMonths||e.locale.getShortMonths(Ye.locale.locale);return l.createElement("div",{className:Q(`${K}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:p0(ne,Ae,e)})},l.createElement("div",{className:`${Z}-date-value`},Ue[e.getMonth(Ae)]),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Ae,Ye):g?.(Ae)))},[ne,K,Z,y,p,h,g]),[Se]=ro("Calendar",Su),Ee={...Se,...n.locale},Pe=(Ae,Ye)=>{if(Ye.type==="date")return de(Ae,Ye);if(Ye.type==="month")return ye(Ae,{...Ye,locale:Ee?.lang})};return l.createElement("div",{className:Q(Z,{[`${Z}-full`]:x,[`${Z}-mini`]:!x,[`${Z}-rtl`]:F==="rtl"},Y,i,s,A,J,ie),style:{...D,...U,...c}},S?S({value:oe,type:le,onChange:Ae=>{Ce(Ae,"customize")},onTypeChange:pe}):l.createElement(Xq,{className:V,style:q,prefixCls:Z,value:oe,generateConfig:e,mode:le,fullscreen:x,locale:Ee?.lang,validRange:M,onChange:Ce,onModeChange:pe}),l.createElement(Tm,{classNames:P,styles:G,value:oe,prefixCls:K,locale:Ee?.lang,generateConfig:e,cellRender:Pe,onSelect:Ae=>{Ce(Ae,ge)},mode:ge,picker:ge,disabledDate:re,hideHeader:!0,showWeek:R}))},C3=S3(f6);C3.generateCalendar=S3;var yY={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 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 bY=(e,t)=>l.createElement(gt,g0({},e,{ref:t,icon:yY})),rp=l.forwardRef(bY);var Fc={exports:{}},WM;function vY(){if(WM)return Fc.exports;WM=1,Fc.exports=r,Fc.exports.isMobile=r,Fc.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(i){i||(i={});let s=i.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)||!!i.tablet&&n.test(s);return!c&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(c=!0),c}return Fc.exports}var SY=vY();const CY=wa(SY);let ky;const $Y=(()=>(typeof ky>"u"&&(ky=CY()),ky)),u1=l.createContext(null),xY=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:s,align:c="center"}=i,[d,f]=l.useState(),p=l.useRef(),g=ae.useCallback(y=>typeof s=="function"?s(y):typeof s=="number"?s:y,[s]);function h(){_t.cancel(p.current)}return l.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const S=r?"right":"left";c==="start"&&(y[S]=t[S]),c==="center"&&(y[S]=t[S]+t.width/2,y.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[S]=t[S]+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(),p.current=_t(()=>{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}},qM={width:0,height:0,left:0,top:0};function wY(e,t,n){return l.useMemo(()=>{const r=new Map,i=t.get(e[0]?.key)||qM,s=i.left+i.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)||qM);const p=r.get(d)||{...f};p.right=s-p.left-p.width,r.set(d,p)}return r},[e.map(r=>r.key).join("_"),t,n])}function YM(e,t){const n=l.useRef(e),[,r]=l.useState({});function i(s){const c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,r({})}return[n.current,i]}const EY=.1,UM=.01,Om=20,GM=.995**Om;function MY(e,t){const[n,r]=l.useState(),[i,s]=l.useState(0),[c,d]=l.useState(0),[f,p]=l.useState(),g=l.useRef();function h(w){const{screenX:M,screenY:x}=w.touches[0];r({x:M,y:x}),window.clearInterval(g.current)}function y(w){if(!n)return;const{screenX:M,screenY:x}=w.touches[0];r({x:M,y:x});const R=M-n.x,T=x-n.y;t(R,T);const N=Date.now();s(N),d(N-i),p({x:R,y:T})}function S(){if(n&&(r(null),p(null),f)){const w=f.x/c,M=f.y/c,x=Math.abs(w),R=Math.abs(M);if(Math.max(x,R)<EY)return;let T=w,N=M;g.current=window.setInterval(()=>{if(Math.abs(T)<UM&&Math.abs(N)<UM){window.clearInterval(g.current);return}T*=GM,N*=GM,t(T*Om,N*Om)},Om)}}const b=l.useRef();function $(w){const{deltaX:M,deltaY:x}=w;let R=0;const T=Math.abs(M),N=Math.abs(x);T===N?R=b.current==="x"?M:x:T>N?(R=M,b.current="x"):(R=x,b.current="y"),t(-R,-R)&&w.preventDefault()}const C=l.useRef(null);C.current={onTouchStart:h,onTouchMove:y,onTouchEnd:S,onWheel:$},l.useEffect(()=>{function w(T){C.current.onTouchStart(T)}function M(T){C.current.onTouchMove(T)}function x(T){C.current.onTouchEnd(T)}function R(T){C.current.onWheel(T)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",x,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",x)}},[])}function $3(e){const[t,n]=l.useState(0),r=l.useRef(0),i=l.useRef();return i.current=e,K4(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function RY(e){const t=l.useRef([]),[,n]=l.useState({}),r=l.useRef(typeof e=="function"?e():e),i=$3(()=>{let c=r.current;t.current.forEach(d=>{c=d(c)}),t.current=[],r.current=c,n({})});function s(c){t.current.push(c),i()}return[r.current,s]}const XM={width:0,height:0,left:0,top:0,right:0};function TY(e,t,n,r,i,s,{tabs:c,tabPosition:d,rtl:f}){let p,g,h;return["top","bottom"].includes(d)?(p="width",g=f?"right":"left",h=Math.abs(n)):(p="height",g="top",h=-n),l.useMemo(()=>{if(!c.length)return[0,0];const y=c.length;let S=y;for(let $=0;$<y;$+=1){const C=e.get(c[$].key)||XM;if(Math.floor(C[g]+C[p])>Math.floor(h+t)){S=$-1;break}}let b=0;for(let $=y-1;$>=0;$-=1)if((e.get(c[$].key)||XM)[g]<h){b=$+1;break}return b>S?[0,-1]:[b,S]},[e,t,r,i,s,h,d,c.map(y=>y.key).join("_"),f])}function KM(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const OY="TABS_DQ";function x3(e){return String(e).replace(/"/g,OY)}function d1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const w3=l.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:i,style:s}=e;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":i?.addAriaLabel||"Add tab",onClick:c=>{r.onEdit("add",{event:c})}},r.addIcon||"+")}),QM=l.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let s,c={};return typeof i=="object"&&!l.isValidElement(i)?c=i:c.right=i,n==="right"&&(s=c.right),n==="left"&&(s=c.left),s?l.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});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 NY=l.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:i,locale:s,mobile:c,more:d={},style:f,className:p,editable:g,tabBarGutter:h,rtl:y,removeAriaLabel:S,onTabClick:b,getPopupContainer:$,popupClassName:C,popupStyle:w}=e,[M,x]=l.useState(!1),[R,T]=l.useState(null),{icon:N="More"}=d,O=`${r}-more-popup`,z=`${n}-dropdown`,j=R!==null?`${O}-${R}`:null,W=s?.dropdownAriaLabel;function F(I,A){I.preventDefault(),I.stopPropagation(),g.onEdit("remove",{key:A,event:I})}const Y=l.createElement(js,{onClick:({key:I,domEvent:A})=>{b(I,A),x(!1)},prefixCls:`${z}-menu`,id:O,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[R],"aria-label":W!==void 0?W:"expanded dropdown"},i.map(I=>{const{closable:A,disabled:V,closeIcon:P,key:D,label:q}=I,G=d1(A,P,g,V);return l.createElement(vd,{key:D,id:`${O}-${D}`,role:"option","aria-controls":r&&`${r}-panel-${D}`,disabled:V},l.createElement("span",null,q),G&&l.createElement("button",{type:"button","aria-label":S||"remove",tabIndex:0,className:`${z}-menu-item-remove`,onClick:K=>{K.stopPropagation(),F(K,D)}},P||g.removeIcon||"×"))}));function U(I){const A=i.filter(D=>!D.disabled);let V=A.findIndex(D=>D.key===R)||0;const P=A.length;for(let D=0;D<P;D+=1){V=(V+I+P)%P;const q=A[V];if(!q.disabled){T(q.key);return}}}function L(I){const{which:A}=I;if(!M){[nt.DOWN,nt.SPACE,nt.ENTER].includes(A)&&(x(!0),I.preventDefault());return}switch(A){case nt.UP:U(-1),I.preventDefault();break;case nt.DOWN:U(1),I.preventDefault();break;case nt.ESC:x(!1);break;case nt.SPACE:case nt.ENTER:R!==null&&b(R,I);break}}l.useEffect(()=>{const I=document.getElementById(j);I?.scrollIntoView&&I.scrollIntoView(!1)},[j,R]),l.useEffect(()=>{M||T(null)},[M]);const B={marginInlineStart:h};i.length||(B.visibility="hidden",B.order=1);const _=Q(C,{[`${z}-rtl`]:y}),H=c?null:l.createElement(kO,h0({prefixCls:z,overlay:Y,visible:i.length?M:!1,onVisibleChange:x,overlayClassName:_,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:$},d),l.createElement("button",{type:"button",className:`${n}-nav-more`,style:B,"aria-haspopup":"listbox","aria-controls":O,id:`${r}-more`,"aria-expanded":M,onKeyDown:L},N));return l.createElement("div",{className:Q(`${n}-nav-operations`,p),style:f,ref:t},H,l.createElement(w3,{prefixCls:n,locale:s,editable:g}))}),IY=l.memo(NY,(e,t)=>t.tabMoving),PY=e=>{const{prefixCls:t,id:n,active:r,focus:i,tab:{key:s,label:c,disabled:d,closeIcon:f,icon:p},closable:g,renderWrapper:h,removeAriaLabel:y,editable:S,onClick:b,onFocus:$,onBlur:C,onKeyDown:w,onMouseDown:M,onMouseUp:x,style:R,className:T,tabCount:N,currentPosition:O}=e,z=`${t}-tab`,j=d1(g,f,S,d);function W(B){d||b(B)}function F(B){B.preventDefault(),B.stopPropagation(),S.onEdit("remove",{key:s,event:B})}const Y=l.useMemo(()=>p&&typeof c=="string"?l.createElement("span",null,c):c,[c,p]),U=l.useRef(null);l.useEffect(()=>{i&&U.current&&U.current.focus()},[i]);const L=l.createElement("div",{key:s,"data-node-key":x3(s),className:Q(z,T,{[`${z}-with-remove`]:j,[`${z}-active`]:r,[`${z}-disabled`]:d,[`${z}-focus`]:i}),style:R,onClick:W},l.createElement("div",{ref:U,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${z}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:B=>{B.stopPropagation(),W(B)},onKeyDown:w,onMouseDown:M,onMouseUp:x,onFocus:$,onBlur:C},i&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${O} of ${N}`),p&&l.createElement("span",{className:`${z}-icon`},p),c&&Y),j&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:r?0:-1,className:`${z}-remove`,onClick:B=>{B.stopPropagation(),F(B)}},f||S.removeIcon||"×"));return h?h(L):L};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 zY=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:s}=e,{width:c,height:d,left:f,top:p}=e.getBoundingClientRect();return Math.abs(c-n)<1?[c,d,f-t.left,p-t.top]:[n,r,s,i]},ns=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:i}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,i]}return[t,n]},em=(e,t)=>e[t?0:1],ZM=l.forwardRef((e,t)=>{const{className:n,style:r,id:i,animated:s,activeKey:c,rtl:d,extra:f,editable:p,locale:g,tabPosition:h,tabBarGutter:y,children:S,onTabClick:b,onTabScroll:$,indicator:C,classNames:w,styles:M}=e,{prefixCls:x,tabs:R}=l.useContext(u1),T=l.useRef(null),N=l.useRef(null),O=l.useRef(null),z=l.useRef(null),j=l.useRef(null),W=l.useRef(null),F=l.useRef(null),Y=h==="top"||h==="bottom",[U,L]=YM(0,(Ie,Fe)=>{Y&&$&&$({direction:Ie>Fe?"left":"right"})}),[B,_]=YM(0,(Ie,Fe)=>{!Y&&$&&$({direction:Ie>Fe?"top":"bottom"})}),[H,I]=l.useState([0,0]),[A,V]=l.useState([0,0]),[P,D]=l.useState([0,0]),[q,G]=l.useState([0,0]),[K,Z]=RY(new Map),J=wY(R,K,A[0]),ie=em(H,Y),ne=em(A,Y),oe=em(P,Y),ue=em(q,Y),le=Math.floor(ie)<Math.floor(ne+oe),fe=le?ie-ue:ie-oe,ge=`${x}-nav-operations-hidden`;let re=0,ce=0;Y&&d?(re=0,ce=Math.max(0,ne-fe)):(re=Math.min(0,fe-ne),ce=0);function he(Ie){return Ie<re?re:Ie>ce?ce:Ie}const pe=l.useRef(null),[Ce,de]=l.useState();function ye(){de(Date.now())}function Se(){pe.current&&clearTimeout(pe.current)}MY(z,(Ie,Fe)=>{function Me(We,Je){We(it=>he(it+Je))}return le?(Y?Me(L,Ie):Me(_,Fe),Se(),ye(),!0):!1}),l.useEffect(()=>(Se(),Ce&&(pe.current=setTimeout(()=>{de(0)},100)),Se),[Ce]);const[Ee,Pe]=TY(J,fe,Y?U:B,ne,oe,ue,{...e,tabs:R}),Ae=ut((Ie=c)=>{const Fe=J.get(Ie)||{width:0,height:0,left:0,right:0,top:0};if(Y){let Me=U;d?Fe.right<U?Me=Fe.right:Fe.right+Fe.width>U+fe&&(Me=Fe.right+Fe.width-fe):Fe.left<-U?Me=-Fe.left:Fe.left+Fe.width>-U+fe&&(Me=-(Fe.left+Fe.width-fe)),_(0),L(he(Me))}else{let Me=B;Fe.top<-B?Me=-Fe.top:Fe.top+Fe.height>-B+fe&&(Me=-(Fe.top+Fe.height-fe)),L(0),_(he(Me))}}),[Ye,Ue]=l.useState(),[Xe,et]=l.useState(!1),Te=R.filter(Ie=>!Ie.disabled).map(Ie=>Ie.key),_e=Ie=>{const Fe=Te.indexOf(Ye||c),Me=Te.length,We=(Fe+Ie+Me)%Me,Je=Te[We];Ue(Je)},Le=(Ie,Fe)=>{const Me=Te.indexOf(Ie),We=R.find(it=>it.key===Ie);d1(We?.closable,We?.closeIcon,p,We?.disabled)&&(Fe.preventDefault(),Fe.stopPropagation(),p.onEdit("remove",{key:Ie,event:Fe}),Me===Te.length-1?_e(-1):_e(1))},Qe=(Ie,Fe)=>{et(!0),Fe.button===1&&Le(Ie,Fe)},ze=Ie=>{const{code:Fe}=Ie,Me=d&&Y,We=Te[0],Je=Te[Te.length-1];switch(Fe){case"ArrowLeft":{Y&&_e(Me?1:-1);break}case"ArrowRight":{Y&&_e(Me?-1:1);break}case"ArrowUp":{Ie.preventDefault(),Y||_e(-1);break}case"ArrowDown":{Ie.preventDefault(),Y||_e(1);break}case"Home":{Ie.preventDefault(),Ue(We);break}case"End":{Ie.preventDefault(),Ue(Je);break}case"Enter":case"Space":{Ie.preventDefault(),b(Ye??c,Ie);break}case"Backspace":case"Delete":{Le(Ye,Ie);break}}},ve={};Y?ve.marginInlineStart=y:ve.marginTop=y;const Oe=R.map((Ie,Fe)=>{const{key:Me}=Ie;return l.createElement(PY,{id:i,prefixCls:x,key:Me,tab:Ie,className:w?.item,style:Fe===0?M?.item:{...ve,...M?.item},closable:Ie.closable,editable:p,active:Me===c,focus:Me===Ye,renderWrapper:S,removeAriaLabel:g?.removeAriaLabel,tabCount:Te.length,currentPosition:Fe+1,onClick:We=>{b(Me,We)},onKeyDown:ze,onFocus:()=>{Xe||Ue(Me),Ae(Me),ye(),z.current&&(d||(z.current.scrollLeft=0),z.current.scrollTop=0)},onBlur:()=>{Ue(void 0)},onMouseDown:We=>Qe(Me,We),onMouseUp:()=>{et(!1)}})}),Ze=()=>Z(()=>{const Ie=new Map,Fe=j.current?.getBoundingClientRect();return R.forEach(({key:Me})=>{const We=j.current?.querySelector(`[data-node-key="${x3(Me)}"]`);if(We){const[Je,it,ft,Ft]=zY(We,Fe);Ie.set(Me,{width:Je,height:it,left:ft,top:Ft})}}),Ie});l.useEffect(()=>{Ze()},[R.map(Ie=>Ie.key).join("_")]);const qe=$3(()=>{const Ie=ns(T),Fe=ns(N),Me=ns(O);I([Ie[0]-Fe[0]-Me[0],Ie[1]-Fe[1]-Me[1]]);const We=ns(F);D(We);const Je=ns(W);G(Je);const it=ns(j);V([it[0]-We[0],it[1]-We[1]]),Ze()}),Be=R.slice(0,Ee),Ne=R.slice(Pe+1),Ge=[...Be,...Ne],rt=J.get(c),{style:ot}=xY({activeTabOffset:rt,horizontal:Y,indicator:C,rtl:d});l.useEffect(()=>{Ae()},[c,re,ce,KM(rt),KM(J),Y]),l.useEffect(()=>{qe()},[d]);const lt=!!Ge.length,St=`${x}-nav-wrap`;let Ct,ke,at,je;return Y?d?(ke=U>0,Ct=U!==ce):(Ct=U<0,ke=U!==re):(at=B<0,je=B!==re),l.createElement(Lr,{onResize:qe},l.createElement("div",{ref:fi(t,T),role:"tablist","aria-orientation":Y?"horizontal":"vertical",className:Q(`${x}-nav`,n,w?.header),style:{...M?.header,...r},onKeyDown:()=>{ye()}},l.createElement(QM,{ref:N,position:"left",extra:f,prefixCls:x}),l.createElement(Lr,{onResize:qe},l.createElement("div",{className:Q(St,{[`${St}-ping-left`]:Ct,[`${St}-ping-right`]:ke,[`${St}-ping-top`]:at,[`${St}-ping-bottom`]:je}),ref:z},l.createElement(Lr,{onResize:qe},l.createElement("div",{ref:j,className:`${x}-nav-list`,style:{transform:`translate(${U}px, ${B}px)`,transition:Ce?"none":void 0}},Oe,l.createElement(w3,{ref:F,prefixCls:x,locale:g,editable:p,style:{...Oe.length===0?void 0:ve,visibility:lt?"hidden":null}}),l.createElement("div",{className:Q(`${x}-ink-bar`,w?.indicator,{[`${x}-ink-bar-animated`]:s.inkBar}),style:{...ot,...M?.indicator}}))))),l.createElement(IY,y0({},e,{removeAriaLabel:g?.removeAriaLabel,ref:W,prefixCls:x,tabs:Ge,className:!lt&&ge,popupStyle:M?.popup,tabMoving:!!Ce})),l.createElement(QM,{ref:O,position:"right",extra:f,prefixCls:x})))}),AY=({renderTabBar:e,...t})=>e?e(t,ZM):l.createElement(ZM,t),DY=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,id:s,active:c,tabKey:d,children:f}=e,p=l.Children.count(f)>0;return l.createElement("div",{id:s&&`${s}-panel-${d}`,role:"tabpanel",tabIndex:c&&p?0:-1,"aria-labelledby":s&&`${s}-tab-${d}`,"aria-hidden":!c,style:i,className:Q(n,c&&`${n}-active`,r),ref:t},f)});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 jY=e=>{const{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:s,contentStyle:c,contentClassName:d}=e,{prefixCls:f,tabs:p}=l.useContext(u1),g=r.tabPane,h=`${f}-tabpane`;return l.createElement("div",{className:Q(`${f}-content-holder`)},l.createElement("div",{className:Q(`${f}-content`,`${f}-content-${i}`,{[`${f}-content-animated`]:g})},p.map(y=>{const{key:S,forceRender:b,style:$,className:C,destroyOnHidden:w,...M}=y,x=S===n;return l.createElement(vr,op({key:S,visible:x,forceRender:b,removeOnLeave:!!(s??w),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:R,className:T},N)=>l.createElement(DY,op({},M,{prefixCls:h,id:t,tabKey:S,animated:g,active:x,style:{...c,...$,...R},className:Q(d,C,T),ref:N})))})))};function _Y(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 uu(){return uu=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},uu.apply(this,arguments)}let JM=0;const HY=l.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:i,items:s,direction:c,activeKey:d,defaultActiveKey:f,editable:p,animated:g,tabPosition:h="top",tabBarGutter:y,tabBarStyle:S,tabBarExtraContent:b,locale:$,more:C,destroyOnHidden:w,renderTabBar:M,onChange:x,onTabClick:R,onTabScroll:T,getPopupContainer:N,popupClassName:O,indicator:z,classNames:j,styles:W,...F}=e,Y=l.useMemo(()=>(s||[]).filter(J=>J&&typeof J=="object"&&"key"in J),[s]),U=c==="rtl",L=_Y(g),[B,_]=l.useState(!1);l.useEffect(()=>{_($Y())},[]);const[H,I]=Yt(f??Y[0]?.key,d),[A,V]=l.useState(()=>Y.findIndex(J=>J.key===H));l.useEffect(()=>{let J=Y.findIndex(ie=>ie.key===H);J===-1&&(J=Math.max(0,Math.min(A,Y.length-1)),I(Y[J]?.key)),V(J)},[Y.map(J=>J.key).join("_"),H,A]);const[P,D]=Yt(null,n);l.useEffect(()=>{n||(D(`rc-tabs-${JM}`),JM+=1)},[]);function q(J,ie){R?.(J,ie);const ne=J!==H;I(J),ne&&x?.(J)}const G={id:P,activeKey:H,animated:L,tabPosition:h,rtl:U,mobile:B},K={...G,editable:p,locale:$,more:C,tabBarGutter:y,onTabClick:q,onTabScroll:T,extra:b,style:S,getPopupContainer:N,popupClassName:Q(O,j?.popup),indicator:z,styles:W,classNames:j},Z=l.useMemo(()=>({tabs:Y,prefixCls:r}),[Y,r]);return l.createElement(u1.Provider,{value:Z},l.createElement("div",uu({ref:t,id:n,className:Q(r,`${r}-${h}`,{[`${r}-mobile`]:B,[`${r}-editable`]:p,[`${r}-rtl`]:U},i)},F),l.createElement(AY,uu({},K,{renderTabBar:M})),l.createElement(jY,uu({destroyOnHidden:w},G,{contentStyle:W?.content,contentClassName:j?.content,animated:L}))))}),BY={motionAppear:!1,motionEnter:!0,motionLeave:!0};function LY(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={...BY,motionName:Uo(e,"switch")}),n}function VY(e){return e.filter(t=>t)}function FY(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=cr(t).map(r=>{if(l.isValidElement(r)){const{key:i,props:s}=r,{tab:c,...d}=s||{};return{key:String(i),...d,label:c}}return null});return VY(n)}const kY=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}`}}}}},[Go(e,"slide-up"),Go(e,"slide-down")]]},WY=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,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)`]:Yo(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(i)}}}},[`&${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(i)}}},[`&${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}}}}}}},qY=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Zt(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":{...So,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"}}}}}}},YY=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:s,verticalItemMargin:c,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::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}}}}}},UY=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,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:i,minHeight:i}},[`&${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}}}}}},GY=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:s,horizontalItemPadding:c,itemSelectedColor:d,itemColor:f}=e,p=`${t}-tab`;return{[p]:{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}`,[`${p}-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},...Co(e)},"&:hover":{color:r},[`&${p}-active ${p}-btn`]:{color:d},[`&${p}-focus ${p}-btn:focus-visible`]:Yo(e),[`&${p}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${p}-disabled ${p}-btn, &${p}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${p}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${p} + ${p}`]:{margin:{_skip_check_:!0,value:s}}}},XY=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},KY=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:s,itemActiveColor:c,colorBorderSecondary:d}=e;return{[t]:{...Zt(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:i},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},...Co(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...GY(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Co(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"}}}}}},QY=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:s}=e,c=t||s,d=n||i,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}},ZY=Pt("Tabs",e=>{const t=Ot(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[UY(t),XY(t),YY(t),qY(t),WY(t),KY(t),kY(t)]},QY),JY=()=>null,eU=l.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:i,size:s,onEdit:c,hideAdd:d,centered:f,addIcon:p,removeIcon:g,moreIcon:h,more:y,popupClassName:S,children:b,items:$,animated:C,style:w,indicatorSize:M,indicator:x,classNames:R,styles:T,destroyInactiveTabPane:N,destroyOnHidden:O,tabPlacement:z,tabPosition:j,...W}=e,{prefixCls:F}=W,{getPrefixCls:Y,direction:U,getPopupContainer:L,className:B,style:_,classNames:H,styles:I}=It("tabs"),{tabs:A}=l.useContext(dt),V=Y("tabs",F),P=or(V),[D,q]=ZY(V,P),G=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:G.current}));let K;n==="editable-card"&&(K={onEdit:(re,{key:ce,event:he})=>{c?.(re==="add"?he:ce,re)},removeIcon:g??A?.removeIcon??l.createElement(Wr,null),addIcon:(p??A?.addIcon)||l.createElement(rp,null),showAdd:d!==!0});const Z=Y(),J=ur(s),ie=FY($,b),ne=LY(V,C),oe={align:x?.align??A?.indicator?.align,size:x?.size??M??A?.indicator?.size??A?.indicatorSize},ue=l.useMemo(()=>{const re=z??j??void 0,ce=U==="rtl";switch(re){case"start":return ce?"right":"left";case"end":return ce?"left":"right";default:return re}},[z,j,U]),le={...e,size:J,tabPlacement:ue,items:ie},[fe,ge]=Lt([H,R],[I,T],{props:le},{popup:{_default:"root"}});return l.createElement(HY,{ref:G,direction:U,getPopupContainer:L,...W,items:ie,className:Q({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(n),[`${V}-editable-card`]:n==="editable-card",[`${V}-centered`]:f},B,r,i,fe.root,D,q,P),classNames:{...fe,popup:Q(S,D,q,P,fe.popup?.root)},styles:ge,style:{...ge.root,..._,...w},editable:K,more:{icon:A?.more?.icon??A?.moreIcon??h??l.createElement(ZS,null),transitionName:`${Z}-slide-up`,...y},prefixCls:V,animated:ne,indicator:oe,destroyOnHidden:O??N,tabPosition:ue})}),f1=eU;f1.TabPane=JY;const E3=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{const{getPrefixCls:i}=l.useContext(dt),s=i("card",e),c=Q(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return l.createElement("div",{...r,className:c})},tU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${te(i)}`,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`,...Ki(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...So,[`
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}`}}}},nU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
295
- ${te(i)} 0 0 0 ${n},
296
- 0 ${te(i)} 0 0 ${n},
297
- ${te(i)} ${te(i)} 0 0 ${n},
298
- ${te(i)} 0 0 0 ${n} inset,
299
- 0 ${te(i)} 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:i,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)}`,...Ki(),"& > 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:i,lineHeight:te(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`}}}},oU=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Ki(),"&-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,...So},"&-description":{color:e.colorTextDescription}}),aU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(i)}`}}},iU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},lU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:s,bodyPadding:c,extraColor:d}=e;return{[t]:{...Zt(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:tU(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)}`},[`${t}-grid`]:nU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:rU(e),[`${t}-meta`]:oU(e)},[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${i}`,[`${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 `,[`${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`]:aU(e),[`${t}-loading`]:iU(e),[`${t}-rtl`]:{direction:"rtl"}}},sU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,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"}}}}},cU=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}),uU=Pt("Card",e=>{const t=Ot(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[lU(t),sU(t)]},cU),dU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((i,s)=>{const c=`action-${s}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:c},l.createElement("span",null,i))}))},fU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,extra:c,headStyle:d={},bodyStyle:f={},title:p,loading:g,bordered:h,variant:y,size:S,type:b,cover:$,actions:C,tabList:w,children:M,activeTabKey:x,defaultActiveTabKey:R,tabBarExtraContent:T,hoverable:N,tabProps:O={},classNames:z,styles:j,...W}=e,{getPrefixCls:F,direction:Y,className:U,style:L,classNames:B,styles:_}=It("card"),[H]=As("card",y,h),I=ur(S),A={...e,size:I,variant:H,loading:g},[V,P]=Lt([B,z],[_,j],{props:A}),D=Ee=>{e.onTabChange?.(Ee)},q=l.useMemo(()=>cr(M).some(Pe=>l.isValidElement(Pe)&&Pe.type===E3),[M]),G=F("card",n),[K,Z]=uU(G),J=l.createElement(pi,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),ie=x!==void 0,ne={...O,[ie?"activeKey":"defaultActiveKey"]:ie?x:R,tabBarExtraContent:T};let oe;const ue=!I||I==="default"?"large":I,le=w?l.createElement(f1,{size:ue,...ne,className:`${G}-head-tabs`,onChange:D,items:w.map(({tab:Ee,...Pe})=>({label:Ee,...Pe}))}):null;if(p||c||le){const Ee=Q(`${G}-head`,V.header),Pe=Q(`${G}-head-title`,V.title),Ae=Q(`${G}-extra`,V.extra),Ye={...d,...P.header};oe=l.createElement("div",{className:Ee,style:Ye},l.createElement("div",{className:`${G}-head-wrapper`},p&&l.createElement("div",{className:Pe,style:P.title},p),c&&l.createElement("div",{className:Ae,style:P.extra},c)),le)}const fe=Q(`${G}-cover`,V.cover),ge=$?l.createElement("div",{className:fe,style:P.cover},$):null,re=Q(`${G}-body`,V.body),ce={...f,...P.body},he=l.createElement("div",{className:re,style:ce},g?J:M),pe=Q(`${G}-actions`,V.actions),Ce=C?.length?l.createElement(dU,{actionClasses:pe,actionStyle:P.actions,actions:C}):null,de=nn(W,["onTabChange"]),ye=Q(G,U,{[`${G}-loading`]:g,[`${G}-bordered`]:H!=="borderless",[`${G}-hoverable`]:N,[`${G}-contain-grid`]:q,[`${G}-contain-tabs`]:w?.length,[`${G}-${I}`]:I,[`${G}-type-${b}`]:!!b,[`${G}-rtl`]:Y==="rtl"},r,i,K,Z,V.root),Se={...P.root,...L,...s};return l.createElement("div",{ref:t,...de,className:ye,style:Se},oe,ge,he,Ce)}),mU=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:s,style:c,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:h,style:y,classNames:S,styles:b}=It("cardMeta"),C=`${g("card",t)}-meta`,[w,M]=Lt([S,d],[b,f],{props:e}),x=Q(C,n,h,w.root),R={...y,...M.root,...c},T=Q(`${C}-avatar`,w.avatar),N=Q(`${C}-title`,w.title),O=Q(`${C}-description`,w.description),z=Q(`${C}-section`,w.section),j=r?l.createElement("div",{className:T,style:M.avatar},r):null,W=i?l.createElement("div",{className:N,style:M.title},i):null,F=s?l.createElement("div",{className:O,style:M.description},s):null,Y=W||F?l.createElement("div",{className:z,style:M.section},W,F):null;return l.createElement("div",{...p,className:x,style:R},j,Y)},xa=fU;xa.Grid=E3;xa.Meta=mU;function pU(e,t,n){var r=n||{},i=r.noTrailing,s=i===void 0?!1:i,c=r.noLeading,d=c===void 0?!1:c,f=r.debounceMode,p=f===void 0?void 0:f,g,h=!1,y=0;function S(){g&&clearTimeout(g)}function b(C){var w=C||{},M=w.upcomingOnly,x=M===void 0?!1:M;S(),h=!x}function $(){for(var C=arguments.length,w=new Array(C),M=0;M<C;M++)w[M]=arguments[M];var x=this,R=Date.now()-y;if(h)return;function T(){y=Date.now(),t.apply(x,w)}function N(){g=void 0}!d&&p&&!g&&T(),S(),p===void 0&&R>e?d?(y=Date.now(),s||(g=setTimeout(p?N:T,e))):T():s!==!0&&(g=setTimeout(p?N:T,p===void 0?e-R:e))}return $.cancel=b,$}function gU(e,t,n){var r={},i=r.atBegin,s=i===void 0?!1:i;return pU(e,t,{debounceMode:s!==!1})}const hU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...Zt(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...Zt(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]:{...Zt(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`]:Yo(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 yU(e,t){const n=Ot(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return hU(n)}const M3=Pt("Checkbox",(e,{prefixCls:t})=>[yU(t,e)]),R3=ae.createContext(null),bU=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,children:s,indeterminate:c=!1,style:d,onMouseEnter:f,onMouseLeave:p,skipGroup:g=!1,disabled:h,classNames:y,styles:S,...b}=e,{getPrefixCls:$,direction:C,className:w,style:M,classNames:x,styles:R}=It("checkbox"),T=l.useContext(R3),{isFormItemInput:N}=l.useContext(Rr),O=l.useContext(Fr),z=(T?.disabled||h)??O,j={...e,indeterminate:c,disabled:z},[W,F]=Lt([x,y],[R,S],{props:j}),Y=l.useRef(b.value),U=l.useRef(null),L=rr(t,U);l.useEffect(()=>{T?.registerValue(b.value)},[]),l.useEffect(()=>{if(!g)return b.value!==Y.current&&(T?.cancelValue(Y.current),T?.registerValue(b.value),Y.current=b.value),()=>T?.cancelValue(b.value)},[b.value]),l.useEffect(()=>{U.current?.input&&(U.current.input.indeterminate=c)},[c]);const B=$("checkbox",n),_=or(B),[H,I]=M3(B,_),A={...b};T&&!g&&(A.onChange=(...G)=>{b.onChange&&b.onChange.apply(b,G),T.toggleOption&&T.toggleOption({label:s,value:b.value})},A.name=T.name,A.checked=T.value.includes(b.value));const V=Q(`${B}-wrapper`,{[`${B}-rtl`]:C==="rtl",[`${B}-wrapper-checked`]:A.checked,[`${B}-wrapper-disabled`]:z,[`${B}-wrapper-in-form-item`]:N},w,r,W.root,i,I,_,H),P=Q(W.icon,{[`${B}-indeterminate`]:c},cd,H),[D,q]=n3(A.onClick);return l.createElement(ud,{component:"Checkbox",disabled:z},l.createElement("label",{className:V,style:{...F.root,...M,...d},onMouseEnter:f,onMouseLeave:p,onClick:D},l.createElement(t3,{...A,onClick:q,prefixCls:B,className:P,style:F.icon,disabled:z,ref:L}),Er(s)&&l.createElement("span",{className:Q(`${B}-label`,W.label),style:F.label},s)))},T3=l.forwardRef(bU),vU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:s,className:c,rootClassName:d,style:f,onChange:p,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),[S,b]=l.useState(g.value||n||[]),[$,C]=l.useState([]);l.useEffect(()=>{"value"in g&&b(g.value||[])},[g.value]);const w=l.useMemo(()=>i.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[i]),M=L=>{C(B=>B.filter(_=>_!==L))},x=L=>{C(B=>[].concat(xn(B),[L]))},R=L=>{const B=S.indexOf(L.value),_=xn(S);B===-1?_.push(L.value):_.splice(B,1),"value"in g||b(_),p?.(_.filter(H=>$.includes(H)).sort((H,I)=>{const A=w.findIndex(P=>P.value===H),V=w.findIndex(P=>P.value===I);return A-V}))},T=h("checkbox",s),N=`${T}-group`,O=or(T),[z,j]=M3(T,O),W=nn(g,["value","disabled"]),F=i.length?w.map(L=>l.createElement(T3,{prefixCls:T,key:L.value.toString(),disabled:"disabled"in L?L.disabled:g.disabled,value:L.value,checked:S.includes(L.value),onChange:L.onChange,className:Q(`${N}-item`,L.className),style:L.style,title:L.title,id:L.id,required:L.required},L.label)):r,Y=l.useMemo(()=>({toggleOption:R,value:S,disabled:g.disabled,name:g.name,registerValue:x,cancelValue:M}),[R,S,g.disabled,g.name,x,M]),U=Q(N,{[`${N}-rtl`]:y==="rtl"},c,d,j,O,z);return l.createElement("div",{className:U,style:f,...W,ref:t},l.createElement(R3.Provider,{value:Y},F))}),Rs=T3;Rs.Group=vU;Rs.__ANT_CHECKBOX=!0;const O3=l.createContext({});function e4(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const SU=["xs","sm","md","lg","xl","xxl"],CU=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{gutter:i,wrap:s}=l.useContext(O3),{prefixCls:c,span:d,order:f,offset:p,push:g,pull:h,className:y,children:S,flex:b,style:$,...C}=e,w=n("col",c),[M,x]=a9(w),R={};let T={};SU.forEach(z=>{let j={};const W=e[z];typeof W=="number"?j.span=W:typeof W=="object"&&(j=W||{}),delete C[z],T={...T,[`${w}-${z}-${j.span}`]:j.span!==void 0,[`${w}-${z}-order-${j.order}`]:j.order||j.order===0,[`${w}-${z}-offset-${j.offset}`]:j.offset||j.offset===0,[`${w}-${z}-push-${j.push}`]:j.push||j.push===0,[`${w}-${z}-pull-${j.pull}`]:j.pull||j.pull===0,[`${w}-rtl`]:r==="rtl"},j.flex&&(T[`${w}-${z}-flex`]=!0,R[`--${w}-${z}-flex`]=e4(j.flex))});const N=Q(w,{[`${w}-${d}`]:d!==void 0,[`${w}-order-${f}`]:f,[`${w}-offset-${p}`]:p,[`${w}-push-${g}`]:g,[`${w}-pull-${h}`]:h},y,T,M,x),O={};if(i?.[0]){const z=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;O.paddingInline=z}return b&&(O.flex=e4(b),s===!1&&!O.minWidth&&(O.minWidth=0)),l.createElement("div",{...C,style:{...O,...$,...R},className:N,ref:t},S)});function $U(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=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<Zi.length;d++){const f=Zi[d];if(i[f]&&s[f]!==void 0){n[c]=s[f];break}}else n[c]=s}),n}function t4(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let s=0;s<Zi.length;s++){const c=Zi[s];if(!t||!t[c])continue;const d=e[c];if(d!==void 0){r(d);return}}};return l.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const xU=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:s,style:c,children:d,gutter:f=0,wrap:p,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),S=Ip(!0,null),b=t4(i,S),$=t4(r,S),C=h("row",n),[w,M]=o9(C),x=$U(f,S),R=Q(C,{[`${C}-no-wrap`]:p===!1,[`${C}-${$}`]:$,[`${C}-${b}`]:b,[`${C}-rtl`]:y==="rtl"},s,w,M),T={};if(x?.[0]){const j=typeof x[0]=="number"?`${x[0]/-2}px`:`calc(${x[0]} / -2)`;T.marginInline=j}const[N,O]=x;T.rowGap=O;const z=l.useMemo(()=>({gutter:[N,O],wrap:p}),[N,O,p]);return l.createElement(O3.Provider,{value:z},l.createElement("div",{...g,className:R,style:{...T,...c},ref:t},d))}),wU=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},EU=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:s,orientationMargin:c,verticalMarginInline:d}=e,f=`${t}-rail`;return{[t]:{...Zt(e),borderBlockStart:`${te(i)} solid ${r}`,[f]:{borderBlockStart:`${te(i)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${te(i)} 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(i)} 0 0`,[f]:{borderBlockStart:`${te(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${f}-start, ${f}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${te(i)} 0 0`,[f]:{borderBlockStart:`${te(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,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}}}}},MU=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),RU=Pt("Divider",e=>{const t=Ot(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[EU(t),wU(t)]},MU,{unitless:{orientationMargin:!0}}),TU=["left","right","center","start","end"],OU={small:"sm",middle:"md"},ni=e=>{const{getPrefixCls:t,direction:n,className:r,style:i,classNames:s,styles:c}=It("divider"),{prefixCls:d,type:f,orientation:p,vertical:g,titlePlacement:h,orientationMargin:y,className:S,rootClassName:b,children:$,dashed:C,variant:w="solid",plain:M,style:x,size:R,classNames:T,styles:N,...O}=e,z=t("divider",d),j=`${z}-rail`,[W,F]=RU(z),Y=ur(R),U=OU[Y],L=!!$,B=TU.includes(p||""),_=l.useMemo(()=>{const J=h??(B?p:"center");return J==="left"?n==="rtl"?"end":"start":J==="right"?n==="rtl"?"start":"end":J},[n,p,h,B]),H=_==="start"&&y!=null,I=_==="end"&&y!=null,[A,V]=od(p,g,f),P={...e,orientation:A,titlePlacement:_,size:Y},[D,q]=Lt([s,T],[c,N],{props:P}),G=Q(z,r,W,F,`${z}-${A}`,{[`${z}-with-text`]:L,[`${z}-with-text-${_}`]:L,[`${z}-dashed`]:!!C,[`${z}-${w}`]:w!=="solid",[`${z}-plain`]:!!M,[`${z}-rtl`]:n==="rtl",[`${z}-no-default-orientation-margin-start`]:H,[`${z}-no-default-orientation-margin-end`]:I,[`${z}-${U}`]:!!U,[j]:!$,[D.rail]:D.rail&&!$},S,b,D.root),K=l.useMemo(()=>typeof y=="number"?y:/^\d+$/.test(y)?Number(y):y,[y]),Z={marginInlineStart:H?K:void 0,marginInlineEnd:I?K:void 0};return l.createElement("div",{className:G,style:{...i,...q.root,...$?{}:q.rail,...x},...O,role:"separator"},$&&!V&&l.createElement(l.Fragment,null,l.createElement("div",{className:Q(j,`${j}-start`,D.rail),style:q.rail}),l.createElement("span",{className:Q(`${z}-inner-text`,D.content),style:{...Z,...q.content}},$),l.createElement("div",{className:Q(j,`${j}-end`,D.rail),style:q.rail})))},n4=(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}},ko=e=>e!==void 0?`${e}px`:void 0;function NU(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:s,onMotionStart:c,onMotionEnd:d,direction:f,vertical:p=!1}=e,g=l.useRef(null),[h,y]=l.useState(r),S=O=>{const z=i(O),j=n.current?.querySelectorAll(`.${t}-item`)[z];return j?.offsetParent&&j},[b,$]=l.useState(null),[C,w]=l.useState(null);Nt(()=>{if(h!==r){const O=S(h),z=S(r),j=n4(O,p),W=n4(z,p);y(r),$(j),w(W),O&&z?c():d()}},[r]);const M=l.useMemo(()=>ko(p?b?.top??0:f==="rtl"?-b?.right:b?.left),[p,f,b]),x=l.useMemo(()=>ko(p?C?.top??0:f==="rtl"?-C?.right:C?.left),[p,f,C]),R=()=>p?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},T=()=>p?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},N=()=>{$(null),w(null),d()};return!b||!C?null:l.createElement(vr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:R,onAppearActive:T,onVisibleChanged:N},({className:O,style:z},j)=>{const W={...z,"--thumb-start-left":M,"--thumb-start-width":ko(b?.width),"--thumb-active-left":x,"--thumb-active-width":ko(C?.width),"--thumb-start-top":M,"--thumb-start-height":ko(b?.height),"--thumb-active-top":x,"--thumb-active-height":ko(C?.height)},F={ref:rr(g,j),style:W,className:Q(`${t}-thumb`,O)};return l.createElement("div",F)})}function IU(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function PU(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=IU(t);return{...t,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const zU=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:s,disabled:c,checked:d,label:f,title:p,value:g,name:h,onChange:y,onFocus:S,onBlur:b,onKeyDown:$,onKeyUp:C,onMouseDown:w,itemRender:M=x=>x})=>{const x=T=>{c||y(T,g)},R=l.createElement("label",{className:Q(t,{[`${e}-item-disabled`]:c}),style:n,onMouseDown:w},l.createElement("input",{name:h,className:`${e}-item-input`,type:"radio",disabled:c,checked:d,onChange:x,onFocus:S,onBlur:b,onKeyDown:$,onKeyUp:C}),l.createElement("div",{className:Q(`${e}-item-label`,i?.label),title:p,role:"radio","aria-checked":d,style:r?.label},f));return M(R,{item:s})},AU=l.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:i,options:s=[],disabled:c,defaultValue:d,value:f,name:p,onChange:g,className:h="",style:y,styles:S,classNames:b,motionName:$="thumb-motion",itemRender:C,...w}=e,M=l.useRef(null),x=l.useMemo(()=>rr(M,t),[M,t]),R=l.useMemo(()=>PU(s),[s]),[T,N]=Yt(d??R[0]?.value,f),[O,z]=l.useState(!1),j=(D,q)=>{N(q),g?.(q)},W=nn(w,["children"]),[F,Y]=l.useState(!1),[U,L]=l.useState(!1),B=()=>{L(!0)},_=()=>{L(!1)},H=()=>{Y(!1)},I=D=>{D.key==="Tab"&&Y(!0)},A=D=>{const q=R.findIndex(J=>J.value===T),G=R.length,K=(q+D+G)%G,Z=R[K];Z&&(N(Z.value),g?.(Z.value))},V=D=>{switch(D.key){case"ArrowLeft":case"ArrowUp":A(-1);break;case"ArrowRight":case"ArrowDown":A(1);break}},P=D=>{const{value:q,disabled:G}=D;return l.createElement(zU,Gn({},D,{name:p,data:D,itemRender:C,key:q,prefixCls:n,className:Q(D.className,`${n}-item`,b?.item,{[`${n}-item-selected`]:q===T&&!O,[`${n}-item-focused`]:U&&F&&q===T}),style:S?.item,classNames:b,styles:S,checked:q===T,onChange:j,onFocus:B,onBlur:_,onKeyDown:V,onKeyUp:I,onMouseDown:H,disabled:!!c||!!G}))};return l.createElement("div",Gn({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,style:y},W,{className:Q(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:c,[`${n}-vertical`]:i},h),ref:x}),l.createElement("div",{className:`${n}-group`},l.createElement(NU,{vertical:i,prefixCls:n,value:T,containerRef:M,motionName:`${n}-${$}`,direction:r,getValueIndex:D=>R.findIndex(q=>q.value===D),onMotionStart:()=>{z(!0)},onMotionEnd:()=>{z(!1)}}),R.map(P)))}),DU=AU;function r4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function o4(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const jU={overflow:"hidden",...So},_U=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(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Zt(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Co(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":{...o4(e),color:e.itemSelectedColor},"&-focused":Yo(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)}`,...jU},"&-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`]:{...o4(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:i,lineHeight:te(i),padding:`0 ${te(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...r4(`&-disabled ${t}-item`,e),...r4(`${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}}}}},HU=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:s,lineWidthBold:c,colorBgLayout:d}=e;return{trackPadding:c,trackBg:d,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:s,itemSelectedColor:n}},BU=Pt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Ot(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return _U(r)},HU);function LU(e){return typeof e=="object"&&!!e?.icon}const VU=l.forwardRef((e,t)=>{const n=Ea(),{prefixCls:r,className:i,rootClassName:s,block:c,options:d=[],size:f="middle",style:p,vertical:g,orientation:h,shape:y="default",name:S=n,styles:b,classNames:$,...C}=e,{getPrefixCls:w,direction:M,className:x,style:R,classNames:T,styles:N}=It("segmented"),O={...e,options:d,size:f,shape:y},[z,j]=Lt([T,$],[N,b],{props:O}),W=w("segmented",r),[F,Y]=BU(W),U=ur(f),L=l.useMemo(()=>d.map(A=>{if(LU(A)){const{icon:V,label:P,...D}=A;return{...D,label:l.createElement(l.Fragment,null,l.createElement("span",{className:Q(`${W}-item-icon`,z.icon),style:j.icon},V),P&&l.createElement("span",null,P))}}return A}),[d,W,z.icon,j.icon]),[,B]=od(h,g),_=Q(i,s,x,z.root,{[`${W}-block`]:c,[`${W}-sm`]:U==="small",[`${W}-lg`]:U==="large",[`${W}-vertical`]:B,[`${W}-shape-${y}`]:y==="round"},F,Y),H={...j.root,...R,...p},I=(A,{item:V})=>{if(!V.tooltip)return A;const P=typeof V.tooltip=="object"?V.tooltip:{title:V.tooltip};return l.createElement(sr,{...P},A)};return l.createElement(DU,{...C,name:S,className:_,style:H,classNames:z,styles:j,itemRender:I,options:L,ref:t,prefixCls:W,direction:M,vertical:B})}),FU=VU;var kU={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 b0(){return b0=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},b0.apply(this,arguments)}const WU=(e,t)=>l.createElement(gt,b0({},e,{ref:t,icon:kU})),qU=l.forwardRef(WU);var YU={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 v0(){return v0=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},v0.apply(this,arguments)}const UU=(e,t)=>l.createElement(gt,v0({},e,{ref:t,icon:YU})),N3=l.forwardRef(UU);var GU={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 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)}const XU=(e,t)=>l.createElement(gt,S0({},e,{ref:t,icon:GU})),KU=l.forwardRef(XU);var QU={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 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 ZU=(e,t)=>l.createElement(gt,C0({},e,{ref:t,icon:QU})),m1=l.forwardRef(ZU);var JU={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 $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 eG=(e,t)=>l.createElement(gt,$0({},e,{ref:t,icon:JU})),tG=l.forwardRef(eG);var nG={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 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 rG=(e,t)=>l.createElement(gt,x0({},e,{ref:t,icon:nG})),I3=l.forwardRef(rG);var oG={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 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 aG=(e,t)=>l.createElement(gt,w0({},e,{ref:t,icon:oG})),$d=l.forwardRef(aG);var iG={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 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 lG=(e,t)=>l.createElement(gt,E0({},e,{ref:t,icon:iG})),a4=l.forwardRef(lG);var sG={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 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 cG=(e,t)=>l.createElement(gt,M0({},e,{ref:t,icon:sG})),uG=l.forwardRef(cG);var dG={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 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 fG=(e,t)=>l.createElement(gt,R0({},e,{ref:t,icon:dG})),P3=l.forwardRef(fG);var mG={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 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 pG=(e,t)=>l.createElement(gt,T0({},e,{ref:t,icon:mG})),ap=l.forwardRef(pG);var gG={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 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 hG=(e,t)=>l.createElement(gt,O0({},e,{ref:t,icon:gG})),i4=l.forwardRef(hG);var yG={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 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 bG=(e,t)=>l.createElement(gt,N0({},e,{ref:t,icon:yG})),l4=l.forwardRef(bG);var vG={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 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 SG=(e,t)=>l.createElement(gt,I0({},e,{ref:t,icon:vG})),CG=l.forwardRef(SG);var $G={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 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 xG=(e,t)=>l.createElement(gt,P0({},e,{ref:t,icon:$G})),di=l.forwardRef(xG);var wG={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 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 EG=(e,t)=>l.createElement(gt,z0({},e,{ref:t,icon:wG})),MG=l.forwardRef(EG);var RG={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 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 TG=(e,t)=>l.createElement(gt,A0({},e,{ref:t,icon:RG})),OG=l.forwardRef(TG);var NG={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 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 IG=(e,t)=>l.createElement(gt,D0({},e,{ref:t,icon:NG})),PG=l.forwardRef(IG);var zG={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 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 AG=(e,t)=>l.createElement(gt,j0({},e,{ref:t,icon:zG})),DG=l.forwardRef(AG);var jG={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 _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 _G=(e,t)=>l.createElement(gt,_0({},e,{ref:t,icon:jG})),HG=l.forwardRef(_G);var BG={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 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 LG=(e,t)=>l.createElement(gt,H0({},e,{ref:t,icon:BG})),ip=l.forwardRef(LG);var VG={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 B0(){return B0=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},B0.apply(this,arguments)}const FG=(e,t)=>l.createElement(gt,B0({},e,{ref:t,icon:VG})),kG=l.forwardRef(FG);var WG={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 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)}const qG=(e,t)=>l.createElement(gt,L0({},e,{ref:t,icon:WG})),YG=l.forwardRef(qG);var UG={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 V0(){return V0=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},V0.apply(this,arguments)}const GG=(e,t)=>l.createElement(gt,V0({},e,{ref:t,icon:UG})),XG=l.forwardRef(GG);var KG={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 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 QG=(e,t)=>l.createElement(gt,F0({},e,{ref:t,icon:KG})),ZG=l.forwardRef(QG);var JG={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 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 eX=(e,t)=>l.createElement(gt,k0({},e,{ref:t,icon:JG})),z3=l.forwardRef(eX);var tX={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 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 nX=(e,t)=>l.createElement(gt,W0({},e,{ref:t,icon:tX})),rX=l.forwardRef(nX);var oX={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 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 aX=(e,t)=>l.createElement(gt,q0({},e,{ref:t,icon:oX})),iX=l.forwardRef(aX);var lX={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 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 sX=(e,t)=>l.createElement(gt,Y0({},e,{ref:t,icon:lX})),A3=l.forwardRef(sX);var cX={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 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 uX=(e,t)=>l.createElement(gt,U0({},e,{ref:t,icon:cX})),dX=l.forwardRef(uX);var fX={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 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 mX=(e,t)=>l.createElement(gt,G0({},e,{ref:t,icon:fX})),pX=l.forwardRef(mX);var gX={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 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 hX=(e,t)=>l.createElement(gt,X0({},e,{ref:t,icon:gX})),D3=l.forwardRef(hX);var yX={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 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 bX=(e,t)=>l.createElement(gt,K0({},e,{ref:t,icon:yX})),p1=l.forwardRef(bX);var vX={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 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 SX=(e,t)=>l.createElement(gt,Q0({},e,{ref:t,icon:vX})),CX=l.forwardRef(SX);var $X={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 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 xX=(e,t)=>l.createElement(gt,Z0({},e,{ref:t,icon:$X})),wX=l.forwardRef(xX);var EX={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 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 MX=(e,t)=>l.createElement(gt,J0({},e,{ref:t,icon:EX})),RX=l.forwardRef(MX);var TX={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 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 OX=(e,t)=>l.createElement(gt,eS({},e,{ref:t,icon:TX})),NX=l.forwardRef(OX);var IX={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 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 PX=(e,t)=>l.createElement(gt,tS({},e,{ref:t,icon:IX})),j3=l.forwardRef(PX),zX=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:s,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:f,borderRadiusSM:p,colorBgContainerDisabled:g,lineWidth:h}=e;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:p,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}},{"--space-addon-border-color":i,"--space-addon-background":g,"--space-addon-border-color-outlined":i,"--space-addon-background-filled":g,borderColor:"var(--space-addon-border-color)",background:"var(--space-addon-background)","&-variant-outlined":{"--space-addon-border-color":"var(--space-addon-border-color-outlined)"},"&-variant-filled":{"--space-addon-border-color":"transparent","--space-addon-background":"var(--space-addon-background-filled)",[`&${t}-disabled`]:{"--space-addon-border-color":i,"--space-addon-background":g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{"--space-addon-border-color-outlined":e.colorError,"--space-addon-background-filled":e.colorErrorBg,color:e.colorError},"&-status-warning":{"--space-addon-border-color-outlined":e.colorWarning,"--space-addon-background-filled":e.colorWarningBg,color:e.colorWarning}}]}},AX=Pt(["Space","Addon"],e=>[zX(e),fd(e,{focus:!1})]),DX=ae.forwardRef((e,t)=>{const{className:n,children:r,style:i,prefixCls:s,variant:c="outlined",disabled:d,status:f,...p}=e,{getPrefixCls:g,direction:h}=ae.useContext(dt),y=g("space-addon",s),[S,b]=AX(y),{compactItemClassnames:$,compactSize:C}=Ma(y,h),w=Qi(y,f),M=Q(y,S,$,b,`${y}-variant-${c}`,w,{[`${y}-${C}`]:C,[`${y}-disabled`]:d},n);return ae.createElement("div",{ref:t,className:M,style:i,...p},r)});function jX(e){return!!(e.addonBefore||e.addonAfter)}function _X(e){return!!(e.prefix||e.suffix||e.allowClear)}function s4(e,t,n){const r=t.cloneNode(!0),i=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)},i}function lp(e,t,n,r){if(!n)return;let i=t;if(t.type==="click"){i=s4(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=s4(t,e,r),n(i);return}n(i)}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 _3=ae.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:i,prefix:s,suffix:c,addonBefore:d,addonAfter:f,className:p,style:g,disabled:h,readOnly:y,focused:S,triggerFocus:b,allowClear:$,value:C,handleReset:w,hidden:M,classes:x,classNames:R,dataAttrs:T,styles:N,components:O,onClear:z}=e,j=r??n,W=O?.affixWrapper||"span",F=O?.groupWrapper||"span",Y=O?.wrapper||"span",U=O?.groupAddon||"span",L=l.useRef(null),B=A=>{L.current?.contains(A.target)&&b?.()},_=_X(e);let H=l.cloneElement(j,{value:C,className:Q(j.props?.className,!_&&R?.variant)||null});const I=l.useRef(null);if(ae.useImperativeHandle(t,()=>({nativeElement:I.current||L.current})),_){let A=null;if($){const q=!h&&!y&&C,G=`${i}-clear-icon`,K=typeof $=="object"&&$?.clearIcon?$.clearIcon:"✖";A=ae.createElement("button",{type:"button",tabIndex:-1,onClick:Z=>{w?.(Z),z?.()},onMouseDown:Z=>Z.preventDefault(),className:Q(G,{[`${G}-hidden`]:!q,[`${G}-has-suffix`]:!!c})},K)}const V=`${i}-affix-wrapper`,P=Q(V,{[`${i}-disabled`]:h,[`${V}-disabled`]:h,[`${V}-focused`]:S,[`${V}-readonly`]:y,[`${V}-input-with-clear-btn`]:c&&$&&C},x?.affixWrapper,R?.affixWrapper,R?.variant),D=(c||$)&&ae.createElement("span",{className:Q(`${i}-suffix`,R?.suffix),style:N?.suffix},A,c);H=ae.createElement(W,nS({className:P,style:N?.affixWrapper,onClick:B},T?.affixWrapper,{ref:L}),s&&ae.createElement("span",{className:Q(`${i}-prefix`,R?.prefix),style:N?.prefix},s),H,D)}if(jX(e)){const A=`${i}-group`,V=`${A}-addon`,P=`${A}-wrapper`,D=Q(`${i}-wrapper`,A,x?.wrapper,R?.wrapper),q=Q(P,{[`${P}-disabled`]:h},x?.group,R?.groupWrapper);H=ae.createElement(F,{className:q,ref:I},ae.createElement(Y,{className:D},d&&ae.createElement(U,{className:V},d),H,f&&ae.createElement(U,{className:V},f)))}return ae.cloneElement(H,{className:Q(H.props?.className,p)||null,style:{...H.props?.style,...g},hidden:M})});function H3(e,t){return l.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:i.strategy||(s=>s.length)}},[e,t])}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)}const HX=l.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:i,onBlur:s,onPressEnter:c,onKeyDown:d,onKeyUp:f,prefixCls:p="rc-input",disabled:g,htmlSize:h,className:y,maxLength:S,suffix:b,showCount:$,count:C,type:w="text",classes:M,classNames:x,styles:R,onCompositionStart:T,onCompositionEnd:N,...O}=e,[z,j]=l.useState(!1),W=l.useRef(!1),F=l.useRef(!1),Y=l.useRef(null),U=l.useRef(null),L=re=>{Y.current&&KO(Y.current,re)},[B,_]=Yt(e.defaultValue,e.value),H=B==null?"":String(B),[I,A]=l.useState(null),V=H3(C,$),P=V.max||S,D=V.strategy(H),q=!!P&&D>P;l.useImperativeHandle(t,()=>({focus:L,blur:()=>{Y.current?.blur()},setSelectionRange:(re,ce,he)=>{Y.current?.setSelectionRange(re,ce,he)},select:()=>{Y.current?.select()},input:Y.current,nativeElement:U.current?.nativeElement||Y.current})),l.useEffect(()=>{F.current&&(F.current=!1),j(re=>re&&g?!1:re)},[g]);const G=(re,ce,he)=>{let pe=ce;if(!W.current&&V.exceedFormatter&&V.max&&V.strategy(ce)>V.max)pe=V.exceedFormatter(ce,{max:V.max}),ce!==pe&&A([Y.current?.selectionStart||0,Y.current?.selectionEnd||0]);else if(he.source==="compositionEnd")return;_(pe),Y.current&&lp(Y.current,re,r,pe)};l.useEffect(()=>{I&&Y.current?.setSelectionRange(...I)},[I]);const K=re=>{G(re,re.target.value,{source:"change"})},Z=re=>{W.current=!1,G(re,re.currentTarget.value,{source:"compositionEnd"}),N?.(re)},J=re=>{c&&re.key==="Enter"&&!F.current&&!re.nativeEvent.isComposing&&(F.current=!0,c(re)),d?.(re)},ie=re=>{re.key==="Enter"&&(F.current=!1),f?.(re)},ne=re=>{j(!0),i?.(re)},oe=re=>{F.current&&(F.current=!1),j(!1),s?.(re)},ue=re=>{_(""),L(),Y.current&&lp(Y.current,re,r)},le=q&&`${p}-out-of-range`,fe=()=>{const re=nn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ae.createElement("input",sp({autoComplete:n},re,{onChange:K,onFocus:ne,onBlur:oe,onKeyDown:J,onKeyUp:ie,className:Q(p,{[`${p}-disabled`]:g},x?.input),style:R?.input,ref:Y,size:h,type:w,onCompositionStart:ce=>{W.current=!0,T?.(ce)},onCompositionEnd:Z}))},ge=()=>{const re=Number(P)>0;if(b||V.show){const ce=V.showFormatter?V.showFormatter({value:H,count:D,maxLength:P}):`${D}${re?` / ${P}`:""}`;return ae.createElement(ae.Fragment,null,V.show&&ae.createElement("span",{className:Q(`${p}-show-count-suffix`,{[`${p}-show-count-has-suffix`]:!!b},x?.count),style:{...R?.count}},ce),b)}return null};return ae.createElement(_3,sp({},O,{prefixCls:p,className:Q(y,le),handleReset:ue,value:H,focused:z,triggerFocus:L,suffix:ge(),disabled:g,classes:M,classNames:x,styles:R,ref:U}),fe())}),B3=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ae.createElement(Is,null)}),t};function L3(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(i=>{i&&clearTimeout(i)})),[]),r}function BX(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const qp=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:i,size:s,disabled:c,onBlur:d,onFocus:f,suffix:p,allowClear:g,addonAfter:h,addonBefore:y,className:S,style:b,styles:$,rootClassName:C,onChange:w,classNames:M,variant:x,...R}=e,{getPrefixCls:T,direction:N,allowClear:O,autoComplete:z,className:j,style:W,classNames:F,styles:Y}=It("input"),U=T("input",n),L=l.useRef(null),B=or(U),[_,H]=m3(U,C);p3(U,B);const{compactSize:I,compactItemClassnames:A}=Ma(U,N),V=ur(Ce=>s??I??Ce),P=ae.useContext(Fr),D=c??P,q={...e,size:V,disabled:D},[G,K]=Lt([F,M],[Y,$],{props:q}),{status:Z,hasFeedback:J,feedbackIcon:ie}=l.useContext(Rr),ne=zs(Z,i),oe=BX(e)||!!J;l.useRef(oe);const ue=L3(L,!0),le=Ce=>{ue(),d?.(Ce)},fe=Ce=>{ue(),f?.(Ce)},ge=Ce=>{ue(),w?.(Ce)},re=(J||p)&&ae.createElement(ae.Fragment,null,p,J&&ie),ce=B3(g??O),[he,pe]=As("input",x,r);return ae.createElement(HX,{ref:rr(t,L),prefixCls:U,autoComplete:z,...R,disabled:D,onBlur:le,onFocus:fe,style:{...K.root,...W,...b},styles:K,suffix:re,allowClear:ce,className:Q(S,C,H,B,A,j,G.root),onChange:ge,addonBefore:y&&ae.createElement($a,{form:!0,space:!0},y),addonAfter:h&&ae.createElement($a,{form:!0,space:!0},h),classNames:{...G,input:Q({[`${U}-sm`]:V==="small",[`${U}-lg`]:V==="large",[`${U}-rtl`]:N==="rtl"},G.input,_),variant:Q({[`${U}-${he}`]:pe},Qi(U,ne)),affixWrapper:Q({[`${U}-affix-wrapper-sm`]:V==="small",[`${U}-affix-wrapper-lg`]:V==="large",[`${U}-affix-wrapper-rtl`]:N==="rtl"},_),wrapper:Q({[`${U}-group-rtl`]:N==="rtl"},_),groupWrapper:Q({[`${U}-group-wrapper-sm`]:V==="small",[`${U}-group-wrapper-lg`]:V==="large",[`${U}-group-wrapper-rtl`]:N==="rtl",[`${U}-group-wrapper-${he}`]:pe},Qi(`${U}-group-wrapper`,ne,J),_)}})}),V3=(e,t,n,r,i,s)=>{const{classNames:c,styles:d}=It(e),[f,p]=Lt([c,t],[d,n],{props:s},{popup:{_default:"root"}});return l.useMemo(()=>{const g={...f,popup:{...f.popup,root:Q(f.popup?.root,r)}},h={...p,popup:{...p.popup,root:{...p.popup?.root,...i}}};return[g,h]},[f,p,r,i])};function LX(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 VX(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 F3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=NO({...e,componentName:"DatePicker"});return[l.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]}const[FX,kX]=["week","WeekPicker"],[WX,qX]=["month","MonthPicker"],[YX,UX]=["year","YearPicker"],[GX,XX]=["quarter","QuarterPicker"],[g1,c4]=["time","TimePicker"],k3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ae.createElement(ae.Fragment,null,e===g1?ae.createElement($d,null):ae.createElement(N3,null),t&&n):r,KX=e=>l.createElement(Bt,{size:"small",type:"primary",...e});function W3(e){return l.useMemo(()=>({button:KX,...e}),[e])}const QX=e=>l.forwardRef((n,r)=>{const{prefixCls:i,getPopupContainer:s,components:c,className:d,style:f,classNames:p,styles:g,placement:h,size:y,disabled:S,bordered:b=!0,placeholder:$,status:C,variant:w,picker:M,dropdownClassName:x,popupClassName:R,popupStyle:T,rootClassName:N,suffixIcon:O,...z}=n,j=M===g1?"timePicker":"datePicker",[W,F]=V3(j,p,g,R||x,T),Y=l.useRef(null),{getPrefixCls:U,direction:L,getPopupContainer:B,rangePicker:_}=l.useContext(dt),H=U("picker",i),{compactSize:I,compactItemClassnames:A}=Ma(H,L),V=U(),[P,D]=As("rangePicker",w,b),q=or(H),[G,K]=b3(H,q),Z=Q(G,K,q,N),[J]=F3(n),ie=W3(c),ne=ur(de=>y??I??de),oe=l.useContext(Fr),ue=S??oe,le=l.useContext(Rr),{hasFeedback:fe,status:ge,feedbackIcon:re}=le,ce=l.createElement(k3,{picker:M,hasFeedback:fe,feedbackIcon:re,suffixIcon:O});l.useImperativeHandle(r,()=>Y.current);const[he]=ro("Calendar",Su),pe={...he,...n.locale},[Ce]=mi("DatePicker",F?.popup?.root?.zIndex);return l.createElement($a,{space:!0},l.createElement(sq,{separator:l.createElement("span",{"aria-label":"to",className:`${H}-separator`},l.createElement(RX,null)),disabled:ue,ref:Y,placement:h,placeholder:VX(pe,M,$),suffixIcon:ce,prevIcon:l.createElement("span",{className:`${H}-prev-icon`}),nextIcon:l.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${V}-slide-up`,picker:M,...z,locale:pe.lang,getPopupContainer:s||B,generateConfig:e,components:ie,direction:L,prefixCls:H,rootClassName:Z,className:Q({[`${H}-${ne}`]:ne,[`${H}-${P}`]:D},Qi(H,zs(ge,C),fe),A,d,_?.className),style:{..._?.style,...f},classNames:W,styles:{...F,popup:{...F.popup,root:{...F.popup.root,zIndex:Ce}}},allowClear:J}))}),ZX=e=>{const t=(f,p)=>{const g=p===c4?"timePicker":"datePicker";return l.forwardRef((y,S)=>{const{prefixCls:b,getPopupContainer:$,components:C,style:w,className:M,size:x,bordered:R,placement:T,placeholder:N,disabled:O,status:z,variant:j,onCalendarChange:W,classNames:F,styles:Y,dropdownClassName:U,popupClassName:L,popupStyle:B,rootClassName:_,suffixIcon:H,...I}=y,{getPrefixCls:A,direction:V,getPopupContainer:P,[g]:D}=l.useContext(dt),q=A("picker",b),{compactSize:G,compactItemClassnames:K}=Ma(q,V),Z=ur(Ze=>x??G??Ze),J=l.useContext(Fr),ie=O??J,ne={...y,size:Z,disabled:ie,status:z,variant:j},[oe,ue]=V3(g,F,Y,L||U,B,ne),le=l.useRef(null),[fe,ge]=As("datePicker",j,R),re=or(q),[ce,he]=b3(q,re),pe=Q(ce,he,re,_);l.useImperativeHandle(S,()=>le.current);const Ce={showToday:!0},de=f||y.picker,ye=A(),{onSelect:Se,multiple:Ee}=I,Pe=Se&&f==="time"&&!Ee,Ae=(Ze,qe,Be)=>{W?.(Ze,qe,Be),Pe&&Se(Ze)},[Ye,Ue]=F3(y),Xe=W3(C),et=l.useContext(Rr),{hasFeedback:Te,status:_e,feedbackIcon:Le}=et,Qe=l.createElement(k3,{picker:de,hasFeedback:Te,feedbackIcon:Le,suffixIcon:H}),[ze]=ro("DatePicker",Su),ve={...ze,...y.locale},[Oe]=mi("DatePicker",ue?.popup?.root?.zIndex);return l.createElement($a,{space:!0},l.createElement(Pq,{ref:le,placeholder:LX(ve,de,N),suffixIcon:Qe,placement:T,prevIcon:l.createElement("span",{className:`${q}-prev-icon`}),nextIcon:l.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${ye}-slide-up`,picker:f,onCalendarChange:Ae,...Ce,...I,locale:ve.lang,getPopupContainer:$||P,generateConfig:e,components:Xe,direction:V,disabled:ie,prefixCls:q,rootClassName:pe,className:Q({[`${q}-${Z}`]:Z,[`${q}-${fe}`]:ge},Qi(q,zs(_e,z),Te),K,D?.className,M),style:{...D?.style,...w},classNames:oe,styles:{...ue,popup:{...ue.popup,root:{...ue.popup.root,zIndex:Oe}}},allowClear:Ye,removeIcon:Ue}))})},n=t(),r=t(FX,kX),i=t(WX,qX),s=t(YX,UX),c=t(GX,XX),d=t(g1,c4);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:s,TimePicker:d,QuarterPicker:c}},q3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:s,QuarterPicker:c}=ZX(e),d=QX(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=i,f.RangePicker=d,f.TimePicker=s,f.QuarterPicker=c,f},cl=q3(f6),JX=Np(cl,"popupAlign",void 0,"picker");cl._InternalPanelDoNotUseOrYouWillBeFired=JX;const eK=Np(cl.RangePicker,"popupAlign",void 0,"picker");cl._InternalRangePanelDoNotUseOrYouWillBeFired=eK;cl.generatePicker=q3;const u4=l.createContext(null),Y3=l.createContext({});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 tK=e=>{const{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:s}=l.useContext(Y3),c=fi(s,r);return l.createElement("div",rS({className:Q(`${t}-section`,n),role:"dialog",ref:c},jn(e,{aria:!0}),{"aria-modal":"true"},i))};function nK(e){const{prefixCls:t,direction:n,className:r,style:i,maxSize:s,containerRef:c,currentSize:d,onResize:f,onResizeEnd:p,onResizeStart:g}=e,[h,y]=l.useState(!1),[S,b]=l.useState(0),[$,C]=l.useState(0),w=n==="left"||n==="right",M=ut(N=>{N.preventDefault(),N.stopPropagation(),y(!0),b(w?N.clientX:N.clientY);let O;if(typeof d=="number")O=d;else if(c?.current){const z=c.current.getBoundingClientRect();O=w?z.width:z.height}C(O),g?.(O)}),x=ut(N=>{if(!h)return;let z=(w?N.clientX:N.clientY)-S;(n==="right"||n==="bottom")&&(z=-z);let j=$+z;j<0&&(j=0),s&&j>s&&(j=s),f?.(j)}),R=l.useCallback(()=>{if(h&&(y(!1),c?.current)){const N=c.current.getBoundingClientRect(),O=w?N.width:N.height;p?.(O)}},[h,c,p,w]);return l.useEffect(()=>{if(h)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",R)}},[h,x,R]),{dragElementProps:{className:Q(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:h,[`${t}-dragger-horizontal`]:w,[`${t}-dragger-vertical`]:!w},r),style:i,onMouseDown:M},isDragging:h}}function Wy(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&er(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}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 d4={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},rK=(e,t)=>{const{prefixCls:n,open:r,placement:i,inline:s,push:c,forceRender:d,autoFocus:f,keyboard:p,classNames:g,rootClassName:h,rootStyle:y,zIndex:S,className:b,id:$,style:C,motion:w,width:M,height:x,size:R,maxSize:T,children:N,mask:O,maskClosable:z,maskMotion:j,maskClassName:W,maskStyle:F,afterOpenChange:Y,onClose:U,onMouseEnter:L,onMouseOver:B,onMouseLeave:_,onClick:H,onKeyDown:I,onKeyUp:A,styles:V,drawerRender:P,resizable:D,defaultSize:q}=e,G=l.useRef(null),K=l.useRef(null),Z=l.useRef(null);l.useImperativeHandle(t,()=>G.current);const J=Te=>{const{keyCode:_e,shiftKey:Le}=Te;switch(_e){case nt.TAB:{_e===nt.TAB&&(!Le&&document.activeElement===Z.current?K.current?.focus({preventScroll:!0}):Le&&document.activeElement===K.current&&Z.current?.focus({preventScroll:!0}));break}case nt.ESC:{U&&p&&(Te.stopPropagation(),U(Te));break}}};l.useEffect(()=>{r&&f&&G.current?.focus({preventScroll:!0})},[r]);const[ie,ne]=l.useState(!1),oe=l.useContext(u4);let ue;typeof c=="boolean"?ue=c?{}:{distance:0}:ue=c||{};const le=ue?.distance??oe?.pushDistance??180,fe=l.useMemo(()=>({pushDistance:le,push:()=>{ne(!0)},pull:()=>{ne(!1)}}),[le]);l.useEffect(()=>{r?oe?.push?.():oe?.pull?.()},[r]),l.useEffect(()=>()=>{oe?.pull?.()},[]);const ge=l.createElement(vr,fs({key:"mask"},j,{visible:O&&r}),({className:Te,style:_e},Le)=>l.createElement("div",{className:Q(`${n}-mask`,Te,g?.mask,W),style:{..._e,...F,...V?.mask},onClick:z&&r?U:void 0,ref:Le})),re=typeof w=="function"?w(i):w,[ce,he]=l.useState(),pe=i==="left"||i==="right",Ce=l.useMemo(()=>Wy(R??(pe?M:x)??ce??q??(pe?378:void 0)),[R,M,x,q,pe,ce]),de=l.useMemo(()=>{const Te={};if(ie&&le)switch(i){case"top":Te.transform=`translateY(${le}px)`;break;case"bottom":Te.transform=`translateY(${-le}px)`;break;case"left":Te.transform=`translateX(${le}px)`;break;default:Te.transform=`translateX(${-le}px)`;break}return pe?Te.width=Wy(Ce):Te.height=Wy(Ce),Te},[ie,le,i,pe,Ce]),ye=l.useRef(null),Se=!!D,Ee=typeof D=="object"&&D||{},Pe=ut(Te=>{he(Te),Ee.onResize?.(Te)}),{dragElementProps:Ae,isDragging:Ye}=nK({prefixCls:`${n}-resizable`,direction:i,className:g?.dragger,style:V?.dragger,maxSize:T,containerRef:ye,currentSize:Ce,onResize:Pe,onResizeStart:Ee.onResizeStart,onResizeEnd:Ee.onResizeEnd}),Ue={onMouseEnter:L,onMouseOver:B,onMouseLeave:_,onClick:H,onKeyDown:I,onKeyUp:A},Xe=l.createElement(vr,fs({key:"panel"},re,{visible:r,forceRender:d,onVisibleChanged:Te=>{Y?.(Te)},removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:Te,style:_e},Le)=>{const Qe=l.createElement(tK,fs({id:$,containerRef:Le,prefixCls:n,className:Q(b,g?.section),style:{...C,...V?.section}},jn(e,{aria:!0}),Ue),N);return l.createElement("div",fs({ref:ye,className:Q(`${n}-content-wrapper`,Ye&&`${n}-content-wrapper-dragging`,g?.wrapper,!Ye&&Te),style:{..._e,...de,...V?.wrapper}},jn(e,{data:!0})),Se&&l.createElement("div",Ae),P?P(Qe):Qe)}),et={...y};return S&&(et.zIndex=S),l.createElement(u4.Provider,{value:fe},l.createElement("div",{className:Q(n,`${n}-${i}`,h,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:et,tabIndex:-1,ref:G,onKeyDown:J},ge,l.createElement("div",{tabIndex:0,ref:K,style:d4,"aria-hidden":"true","data-sentinel":"start"}),Xe,l.createElement("div",{tabIndex:0,ref:Z,style:d4,"aria-hidden":"true","data-sentinel":"end"})))},oK=l.forwardRef(rK),aK=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:r="right",autoFocus:i=!0,keyboard:s=!0,width:c,height:d,size:f,maxSize:p,mask:g=!0,maskClosable:h=!0,getContainer:y,forceRender:S,afterOpenChange:b,destroyOnHidden:$,onMouseEnter:C,onMouseOver:w,onMouseLeave:M,onClick:x,onKeyDown:R,onKeyUp:T,resizable:N,defaultSize:O,panelRef:z}=e,[j,W]=l.useState(!1),[F,Y]=l.useState(!1);Nt(()=>{Y(!0)},[]);const U=F?t:!1,L=l.useRef(null),B=l.useRef(null);Nt(()=>{U&&(B.current=document.activeElement)},[U]);const _=V=>{W(V),b?.(V),!V&&B.current&&!L.current?.contains(B.current)&&B.current?.focus({preventScroll:!0})},H=l.useMemo(()=>({panel:z}),[z]);if(!S&&!j&&!U&&$)return null;const A={...e,open:U,prefixCls:n,placement:r,autoFocus:i,keyboard:s,width:c,height:d,size:f,maxSize:p,defaultSize:O,mask:g,maskClosable:h,inline:y===!1,afterOpenChange:_,ref:L,resizable:N,...{onMouseEnter:C,onMouseOver:w,onMouseLeave:M,onClick:x,onKeyDown:R,onKeyUp:T}};return l.createElement(Y3.Provider,{value:H},l.createElement(id,{open:U||S||j,autoDestroy:!1,getContainer:y,autoLock:g&&(U||j)},l.createElement(oK,A)))},U3=e=>{const{prefixCls:t,ariaId:n,title:r,footer:i,extra:s,closable:c,loading:d,onClose:f,headerStyle:p,bodyStyle:g,footerStyle:h,children:y,classNames:S,styles:b}=e,$=It("drawer"),{classNames:C,styles:w,closable:M}=$,[x,R]=Lt([C,S],[w,b],{props:{...e,closable:c??M}}),T=l.useMemo(()=>{const F=c??M;if(F!==!1)return typeof F=="object"&&F&&F.placement==="end"?"end":"start"},[c,M]),N=l.useCallback(F=>l.createElement("button",{type:"button",onClick:f,className:Q(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},x.close),style:R.close},F),[f,t,T,x.close,R.close]),[O,z]=TS(vs(e),vs($),{closable:!0,closeIconRender:N}),j=()=>!r&&!O?null:l.createElement("div",{style:{...R.header,...p},className:Q(`${t}-header`,x.header,{[`${t}-header-close-only`]:O&&!r&&!s})},l.createElement("div",{className:`${t}-header-title`},T==="start"&&z,r&&l.createElement("div",{className:Q(`${t}-title`,x.title),style:R.title,id:n},r)),s&&l.createElement("div",{className:Q(`${t}-extra`,x.extra),style:R.extra},s),T==="end"&&z),W=()=>i?l.createElement("div",{className:Q(`${t}-footer`,x.footer),style:{...R.footer,...h}},i):null;return l.createElement(l.Fragment,null,j(),l.createElement("div",{className:Q(`${t}-body`,x.body),style:{...R.body,...g}},d?l.createElement(pi,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),W())},iK=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},G3=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),X3=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...G3({opacity:e},{opacity:1})}),lK=(e,t)=>[X3(.7,t),G3({transform:iK(e)},{transform:"none"})],sK=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:X3(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>({...r,[`&-${i}`]:lK(i,n)}),{})}}},cK=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:s,motionDurationSlow:c,motionDurationMid:d,paddingXS:f,padding:p,paddingLG:g,fontSizeLG:h,lineHeightLG:y,lineWidth:S,lineType:b,colorSplit:$,marginXS:C,colorIcon:w,colorIconHover:M,colorBgTextHover:x,colorBgTextActive:R,colorText:T,fontWeightStrong:N,footerPaddingBlock:O,footerPaddingInline:z,draggerSize:j,calc:W}=e,F=`${n}-content-wrapper`,Y=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:s,display:"flex",flexDirection:"column",[`&${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:i,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[F]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${F}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${F}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${F}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${F}`]:{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(p)} ${te(g)}`,fontSize:h,lineHeight:y,borderBottom:`${te(S)} ${b} ${$}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:W(h).add(f).equal(),height:W(h).add(f).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:w,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:M,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:R},...Co(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(z)}`,borderTop:`${te(S)} ${b} ${$}`},[Y]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${Y}-left`]:{top:0,bottom:0,insetInlineEnd:0,width:j,cursor:"col-resize"},[`${Y}-right`]:{top:0,bottom:0,insetInlineStart:0,width:j,cursor:"col-resize"},[`${Y}-top`]:{insetInline:0,bottom:0,height:j,cursor:"row-resize"},[`${Y}-bottom`]:{insetInline:0,top:0,height:j,cursor:"row-resize"},[`${F}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},uK=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),K3=Pt("Drawer",e=>{const t=Ot(e,{});return[cK(t),sK(t)]},uK),dK={distance:180},f4=378,Q3=e=>{const{rootClassName:t,size:n,defaultSize:r=f4,height:i,width:s,mask:c,push:d=dK,open:f,afterOpenChange:p,onClose:g,prefixCls:h,getContainer:y,panelRef:S=null,style:b,className:$,resizable:C,"aria-labelledby":w,maskStyle:M,drawerStyle:x,contentWrapperStyle:R,destroyOnClose:T,destroyOnHidden:N,...O}=e,{placement:z}=O,j=Ea(),W=O.title?j:void 0,{getPopupContainer:F,getPrefixCls:Y,direction:U,className:L,style:B,classNames:_,styles:H,mask:I}=It("drawer"),A=Y("drawer",h),[V,P]=K3(A),D=y===void 0&&F?()=>F(document.body):y,q=l.useMemo(()=>typeof n=="number"?n:n==="large"?736:n==="default"?f4:!z||z==="left"||z==="right"?s:i,[n,z,s,i]),G={motionName:Uo(A,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},K=Ce=>({motionName:Uo(A,`panel-motion-${Ce}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Z=GT(),J=rr(S,Z),[ie,ne]=mi("Drawer",O.zIndex),{classNames:oe,styles:ue,rootStyle:le}=O,[fe,ge]=nT(c,I,A),re={...e,zIndex:ie,panelRef:S,mask:fe,defaultSize:r,push:d},[ce,he]=Lt([_,oe],[H,ue],{props:re}),pe=Q({"no-mask":!fe,[`${A}-rtl`]:U==="rtl"},t,V,P,ce.root);return l.createElement($a,{form:!0,space:!0},l.createElement(ad.Provider,{value:ne},l.createElement(aK,{prefixCls:A,onClose:g,maskMotion:G,motion:K,...O,classNames:{mask:Q(ce.mask,ge.mask),section:ce.section,wrapper:ce.wrapper,dragger:ce.dragger},styles:{mask:{...he.mask,...M},section:{...he.section,...x},wrapper:{...he.wrapper,...R},dragger:he.dragger},open:f,mask:fe,push:d,size:q,defaultSize:r,style:{...B,...b},rootStyle:{...le,...he.root},className:Q(L,$),rootClassName:pe,getContainer:D,afterOpenChange:p,panelRef:J,zIndex:ie,...C?{resizable:C}:{},"aria-labelledby":w??W,destroyOnHidden:N??T},l.createElement(U3,{prefixCls:A,size:n,...O,ariaId:W,onClose:g}))))},fK=e=>{const{prefixCls:t,style:n,className:r,placement:i="right",...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("drawer",t),[f,p]=K3(d),g=Q(d,`${d}-pure`,`${d}-${i}`,f,p,r);return l.createElement("div",{className:g,style:n},l.createElement(U3,{prefixCls:d,...s}))};Q3._InternalPanelDoNotUseOrYouWillBeFired=fK;function m4(e){return["small","middle","large"].includes(e)}function p4(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Z3=ae.createContext({latestIndex:0}),mK=Z3.Provider,pK=e=>{const{className:t,prefix:n,index:r,children:i,separator:s,style:c,classNames:d,styles:f}=e,{latestIndex:p}=l.useContext(Z3);return Er(i)?l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:c},i),r<p&&s&&l.createElement("span",{className:Q(`${n}-item-separator`,d.separator),style:f.separator},s)):null},gK=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"}}}},hK=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}}}},yK=Pt("Space",e=>{const t=Ot(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[gK(t),hK(t)]},()=>({}),{resetStyle:!1}),bK=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:i,className:s,style:c,classNames:d,styles:f}=It("space"),{size:p=i??"small",align:g,className:h,rootClassName:y,children:S,direction:b,orientation:$,prefixCls:C,split:w,separator:M,style:x,vertical:R,wrap:T=!1,classNames:N,styles:O,...z}=e,[j,W]=Array.isArray(p)?p:[p,p],F=m4(W),Y=m4(j),U=p4(W),L=p4(j),B=cr(S,{keepEmpty:!0}),[_,H]=od($,R,b),I=g===void 0&&!H?"center":g,A=M??w,V=n("space",C),[P,D]=yK(V),q={...e,size:p,orientation:_,align:I},[G,K]=Lt([d,N],[f,O],{props:q}),Z=Q(V,s,P,`${V}-${_}`,{[`${V}-rtl`]:r==="rtl",[`${V}-align-${I}`]:I,[`${V}-gap-row-${W}`]:F,[`${V}-gap-col-${j}`]:Y},h,y,D,G.root),J=Q(`${V}-item`,G.item),ie=B.map((ue,le)=>{const fe=ue?.key||`${J}-${le}`;return l.createElement(pK,{prefix:V,classNames:G,styles:K,className:J,key:fe,index:le,separator:A,style:K.item},ue)}),ne=l.useMemo(()=>({latestIndex:B.reduce((le,fe,ge)=>Er(fe)?ge:le,0)}),[B]);if(B.length===0)return null;const oe={};return T&&(oe.flexWrap="wrap"),!Y&&L&&(oe.columnGap=j),!F&&U&&(oe.rowGap=W),l.createElement("div",{ref:t,className:Z,style:{...oe,...K.root,...c,...x},...z},l.createElement(mK,{value:ne},ie))}),hn=bK;hn.Compact=OT;hn.Addon=DX;const J3=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(dt),{prefixCls:i,type:s="default",danger:c,disabled:d,loading:f,onClick:p,htmlType:g,children:h,className:y,menu:S,arrow:b,autoFocus:$,trigger:C,align:w,open:M,onOpenChange:x,placement:R,getPopupContainer:T,href:N,icon:O=l.createElement(ZS,null),title:z,buttonsRender:j=oe=>oe,mouseEnterDelay:W,mouseLeaveDelay:F,overlayClassName:Y,overlayStyle:U,destroyOnHidden:L,destroyPopupOnHide:B,dropdownRender:_,popupRender:H,...I}=e,A=n("dropdown",i),V=`${A}-button`,D={menu:S,arrow:b,autoFocus:$,align:w,disabled:d,trigger:d?[]:C,onOpenChange:x,getPopupContainer:T||t,mouseEnterDelay:W,mouseLeaveDelay:F,classNames:{root:Y},styles:{root:U},destroyOnHidden:L,popupRender:H||_},{compactSize:q,compactItemClassnames:G}=Ma(A,r),K=Q(V,G,y);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=B),"open"in e&&(D.open=M),"placement"in e?D.placement=R:D.placement=r==="rtl"?"bottomLeft":"bottomRight";const Z=l.createElement(Bt,{type:s,danger:c,disabled:d,loading:f,onClick:p,htmlType:g,href:N,title:z},h),J=l.createElement(Bt,{type:s,danger:c,icon:O}),[ie,ne]=j([Z,J]);return l.createElement(hn.Compact,{className:K,size:q,block:!0,...I},ie,l.createElement(Hp,{...D},ne))};J3.__ANT_BUTTON=!0;const h1=Hp;h1.Button=J3;const vK=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,className:i}=e,s=t("input-group",r),c=t("input"),[d,f]=p3(c),p=Q(s,f,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},d,i),g=l.useContext(Rr),h=l.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return l.createElement(Rr.Provider,{value:h},l.createElement(hn.Compact,{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},SK=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}}}},CK=Pt(["Input","OTP"],e=>{const t=Ot(e,Bs(e));return SK(t)},Ls),$K=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:s,index:c,mask:d,onFocus:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("otp"),y=typeof d=="string"?d:r,S=l.useRef(null);l.useImperativeHandle(t,()=>S.current);const b=M=>{i(c,M.target.value)},$=()=>{_t(()=>{const M=S.current?.input;document.activeElement===M&&M&&M.select()})},C=M=>{f?.(M),$()},w=M=>{const{key:x,ctrlKey:R,metaKey:T}=M;x==="ArrowLeft"?s(c-1):x==="ArrowRight"?s(c+1):x==="z"&&(R||T)?M.preventDefault():x==="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(qp,{"aria-label":`OTP Input ${c+1}`,type:d===!0?"password":"text",...p,ref:S,value:r,onInput:b,onFocus:C,onKeyDown:w,onMouseDown:$,onMouseUp:$,className:Q(n,{[`${h}-mask-input`]:d})}))});function tm(e){return(e||"").split("")}const xK=e=>{const{index:t,prefixCls:n,separator:r,className:i,style:s}=e,c=typeof r=="function"?r(t):r;return c?l.createElement("span",{className:Q(`${n}-separator`,i),style:s},c):null},wK=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:s,value:c,onChange:d,formatter:f,separator:p,variant:g,disabled:h,status:y,autoFocus:S,mask:b,type:$,onInput:C,onFocus:w,inputMode:M,classNames:x,styles:R,className:T,style:N,...O}=e,{classNames:z,styles:j,getPrefixCls:W,direction:F,style:Y,className:U}=It("otp"),L=W("otp",n),B={...e,length:r},[_,H]=Lt([z,x],[j,R],{props:B}),I=jn(O,{aria:!0,data:!0,attr:!0}),[A,V]=CK(L),P=ur(ce=>i??ce),D=l.useContext(Rr),q=zs(D.status,y),G=l.useMemo(()=>({...D,status:q,hasFeedback:!1,feedbackIcon:null}),[D,q]),K=l.useRef(null),Z=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{Z.current[0]?.focus()},blur:()=>{for(let ce=0;ce<r;ce+=1)Z.current[ce]?.blur()},nativeElement:K.current}));const J=ce=>f?f(ce):ce,[ie,ne]=l.useState(()=>tm(J(s||"")));l.useEffect(()=>{c!==void 0&&ne(tm(c))},[c]);const oe=ut(ce=>{ne(ce),C&&C(ce),d&&ce.length===r&&ce.every(he=>he)&&ce.some((he,pe)=>ie[pe]!==he)&&d(ce.join(""))}),ue=ut((ce,he)=>{let pe=xn(ie);for(let de=0;de<ce;de+=1)pe[de]||(pe[de]="");he.length<=1?pe[ce]=he:pe=pe.slice(0,ce).concat(tm(he)),pe=pe.slice(0,r);for(let de=pe.length-1;de>=0&&!pe[de];de-=1)pe.pop();const Ce=J(pe.map(de=>de||" ").join(""));return pe=tm(Ce).map((de,ye)=>de===" "&&!pe[ye]?pe[ye]:de),pe}),le=(ce,he)=>{const pe=ue(ce,he),Ce=Math.min(ce+he.length,r-1);Ce!==ce&&pe[ce]!==void 0&&Z.current[Ce]?.focus(),oe(pe)},fe=ce=>{Z.current[ce]?.focus()},ge=(ce,he)=>{for(let pe=0;pe<he;pe+=1)if(!Z.current[pe]?.input?.value){Z.current[pe]?.focus();break}w?.(ce)},re={variant:g,disabled:h,status:q,mask:b,type:$,inputMode:M};return l.createElement("div",{...I,ref:K,className:Q(T,L,{[`${L}-sm`]:P==="small",[`${L}-lg`]:P==="large",[`${L}-rtl`]:F==="rtl"},V,A,U,_.root),style:{...H.root,...Y,...N},role:"group"},l.createElement(Rr.Provider,{value:G},Array.from({length:r}).map((ce,he)=>{const pe=`otp-${he}`,Ce=ie[he]||"";return l.createElement(l.Fragment,{key:pe},l.createElement($K,{ref:de=>{Z.current[he]=de},index:he,size:P,htmlSize:1,className:Q(_.input,`${L}-input`),style:H.input,onChange:le,value:Ce,onActiveChange:fe,autoFocus:he===0&&S,onFocus:de=>ge(de,he),...re}),he<r-1&&l.createElement(xK,{separator:p,index:he,prefixCls:L,className:Q(_.separator),style:H.separator}))})))}),EK=e=>e?l.createElement(DG,null):l.createElement(PG,null),MK={click:"onClick",hover:"onMouseOver"},RK=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:s=EK,suffix:c}=e,d=l.useContext(Fr),f=n??d,p=typeof i=="object"&&i.visible!==void 0,[g,h]=l.useState(()=>p?i.visible:!1),y=l.useRef(null);l.useEffect(()=>{p&&h(i.visible)},[p,i]);const S=L3(y),b=()=>{if(f)return;g&&S();const F=!g;h(F),typeof i=="object"&&i.onVisibleChange?.(F)},$=F=>{const Y=MK[r]||"",U=s(g),L={[Y]:b,className:`${F}-icon`,key:"passwordIcon",onMouseDown:B=>{B.preventDefault()},onMouseUp:B=>{B.preventDefault()}};return l.cloneElement(l.isValidElement(U)?U:l.createElement("span",null,U),L)},{className:C,prefixCls:w,inputPrefixCls:M,size:x,...R}=e,{getPrefixCls:T}=l.useContext(dt),N=T("input",M),O=T("input-password",w),z=i&&$(O),j=Q(O,C,{[`${O}-${x}`]:!!x}),W={...nn(R,["suffix","iconRender","visibilityToggle"]),type:g?"text":"password",className:j,prefixCls:N,suffix:l.createElement(l.Fragment,null,z,c)};return x&&(W.size=x),l.createElement(qp,{ref:rr(t,y),...W})}),TK=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}}}}}}},OK=Pt(["Input","Search"],e=>[TK(e)]),NK=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:s,style:c,enterButton:d=!1,addonAfter:f,loading:p,disabled:g,onSearch:h,onChange:y,onCompositionStart:S,onCompositionEnd:b,variant:$,onPressEnter:C,classNames:w,styles:M,hidden:x,...R}=e,{direction:T,getPrefixCls:N,classNames:O,styles:z}=It("inputSearch"),j={...e,enterButton:d},[W,F]=Lt([O,w],[z,M],{props:j},{button:{_default:"root"}}),Y=l.useRef(!1),U=N("input-search",n),L=N("input",r),[B,_]=OK(U),{compactSize:H}=Ma(U,T),I=ur(re=>s??H??re),A=l.useRef(null),V=re=>{re?.target&&re.type==="click"&&h&&h(re.target.value,re,{source:"clear"}),y?.(re)},P=re=>{document.activeElement===A.current?.input&&re.preventDefault()},D=re=>{h&&h(A.current?.input?.value,re,{source:"input"})},q=re=>{Y.current||p||(C?.(re),D(re))},G=typeof d=="boolean"?l.createElement(OO,null):null,K=`${U}-btn`,Z=Q(K,{[`${K}-${$}`]:$});let J;const ie=d||{},ne=ie.type&&ie.type.__ANT_BUTTON===!0;ne||ie.type==="button"?J=tr(ie,{onMouseDown:P,onClick:re=>{ie?.props?.onClick?.(re),D(re)},key:"enterButton",...ne?{className:Z,size:I}:{}}):J=l.createElement(Bt,{classNames:W.button,styles:F.button,className:Z,color:d?"primary":"default",size:I,disabled:g,key:"enterButton",onMouseDown:P,onClick:D,loading:p,icon:G,variant:$==="borderless"||$==="filled"||$==="underlined"?"text":d?"solid":void 0},d),f&&(J=[J,tr(f,{key:"addonAfter"})]);const oe=Q(U,_,{[`${U}-rtl`]:T==="rtl",[`${U}-${I}`]:!!I,[`${U}-with-button`]:!!d},i,B,W.root),ue=re=>{Y.current=!0,S?.(re)},le=re=>{Y.current=!1,b?.(re)},fe=jn(R,{data:!0}),ge=nn({...R,classNames:nn(W,["button","root"]),styles:nn(F,["button","root"]),prefixCls:L,type:"search",size:I,variant:$,onPressEnter:q,onCompositionStart:ue,onCompositionEnd:le,onChange:V,disabled:g},Object.keys(fe));return l.createElement(OT,{className:oe,style:{...c,...F.root},...fe,hidden:x},l.createElement(qp,{ref:rr(A,t),...ge}),J)}),IK=`
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
- `,PK=["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"],qy={};let to;function zK(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&qy[n])return qy[n];const r=window.getComputedStyle(e),i=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:PK.map(p=>`${p}:${r.getPropertyValue(p)}`).join(";"),paddingSize:s,borderSize:c,boxSizing:i};return t&&n&&(qy[n]=f),f}function AK(e,t=!1,n=null,r=null){to||(to=document.createElement("textarea"),to.setAttribute("tab-index","-1"),to.setAttribute("aria-hidden","true"),to.setAttribute("name","hiddenTextarea"),document.body.appendChild(to)),e.getAttribute("wrap")?to.setAttribute("wrap",e.getAttribute("wrap")):to.removeAttribute("wrap");const{paddingSize:i,borderSize:s,boxSizing:c,sizingStyle:d}=zK(e,t);to.setAttribute("style",`${d};${IK}`),to.value=e.value||e.placeholder||"";let f,p,g,h=to.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=i),n!==null||r!==null){to.value=" ";const S=to.scrollHeight-i;n!==null&&(f=S*n,c==="border-box"&&(f=f+i+s),h=Math.max(f,h)),r!==null&&(p=S*r,c==="border-box"&&(p=p+i+s),g=h>p?"":"hidden",h=Math.min(p,h))}const y={height:h,overflowY:g,resize:"none"};return f&&(y.minHeight=f),p&&(y.maxHeight=p),y}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 Yy=0,Uy=1,Gy=2,DK=l.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:i,autoSize:s,onResize:c,className:d,style:f,disabled:p,onChange:g,onInternalAutoSize:h,...y}=e,[S,b]=Yt(r,i),$=S??"",C=B=>{b(B.target.value),g?.(B)},w=l.useRef();l.useImperativeHandle(t,()=>({textArea:w.current}));const[M,x]=l.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),R=!!s,[T,N]=l.useState(Gy),[O,z]=l.useState(),j=()=>{N(Yy)};Nt(()=>{R&&j()},[i,M,x,R]),Nt(()=>{if(T===Yy)N(Uy);else if(T===Uy){const B=AK(w.current,!1,M,x);N(Gy),z(B)}},[T]);const W=l.useRef(),F=()=>{_t.cancel(W.current)},Y=B=>{T===Gy&&(c?.(B),s&&(F(),W.current=_t(()=>{j()})))};l.useEffect(()=>F,[]);const L={...f,...R?O:null};return(T===Yy||T===Uy)&&(L.overflowY="hidden",L.overflowX="hidden"),l.createElement(Lr,{onResize:Y,disabled:!(s||c)},l.createElement("textarea",oS({},y,{ref:w,style:L,className:Q(n,d,{[`${n}-disabled`]:p}),disabled:p,value:$,onChange:C})))});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 jK=ae.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:s,maxLength:c,onCompositionStart:d,onCompositionEnd:f,suffix:p,prefixCls:g="rc-textarea",showCount:h,count:y,className:S,style:b,disabled:$,hidden:C,classNames:w,styles:M,onResize:x,onClear:R,onPressEnter:T,readOnly:N,autoSize:O,onKeyDown:z,...j},W)=>{const[F,Y]=Yt(e,t),U=F==null?"":String(F),[L,B]=ae.useState(!1),_=ae.useRef(!1),[H,I]=ae.useState(null),A=l.useRef(null),V=l.useRef(null),P=()=>V.current?.textArea,D=()=>{P().focus()};l.useImperativeHandle(W,()=>({resizableTextArea:V.current,focus:D,blur:()=>{P().blur()},nativeElement:A.current?.nativeElement||P()})),l.useEffect(()=>{B(Se=>!$&&Se)},[$]);const[q,G]=ae.useState(null);ae.useEffect(()=>{q&&P().setSelectionRange(...q)},[q]);const K=H3(y,h),Z=K.max??c,J=Number(Z)>0,ie=K.strategy(U),ne=!!Z&&ie>Z,oe=(Se,Ee)=>{let Pe=Ee;!_.current&&K.exceedFormatter&&K.max&&K.strategy(Ee)>K.max&&(Pe=K.exceedFormatter(Ee,{max:K.max}),Ee!==Pe&&G([P().selectionStart||0,P().selectionEnd||0])),Y(Pe),lp(Se.currentTarget,Se,i,Pe)},ue=Se=>{_.current=!0,d?.(Se)},le=Se=>{_.current=!1,oe(Se,Se.currentTarget.value),f?.(Se)},fe=Se=>{oe(Se,Se.target.value)},ge=Se=>{Se.key==="Enter"&&T&&!Se.nativeEvent.isComposing&&T(Se),z?.(Se)},re=Se=>{B(!0),n?.(Se)},ce=Se=>{B(!1),r?.(Se)},he=Se=>{Y(""),D(),lp(P(),Se,i)};let pe=p,Ce;K.show&&(K.showFormatter?Ce=K.showFormatter({value:U,count:ie,maxLength:Z}):Ce=`${ie}${J?` / ${Z}`:""}`,pe=ae.createElement(ae.Fragment,null,pe,ae.createElement("span",{className:Q(`${g}-data-count`,w?.count),style:M?.count},Ce)));const de=Se=>{x?.(Se),P()?.style.height&&I(!0)},ye=!O&&!h&&!s;return ae.createElement(_3,{ref:A,value:U,allowClear:s,handleReset:he,suffix:pe,prefixCls:g,classNames:{...w,affixWrapper:Q(w?.affixWrapper,{[`${g}-show-count`]:h,[`${g}-textarea-allow-clear`]:s})},disabled:$,focused:L,className:Q(S,ne&&`${g}-out-of-range`),style:{...b,...H&&!ye?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:C,readOnly:N,onClear:R},ae.createElement(DK,aS({},j,{autoSize:O,maxLength:c,onKeyDown:ge,onChange:fe,onFocus:re,onBlur:ce,onCompositionStart:ue,onCompositionEnd:le,className:Q(w?.textarea),style:{resize:b?.resize,...M?.textarea},disabled:$,prefixCls:g,onResize:de,ref:V,readOnly:N})))}),_K=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}}}}}},HK=Pt(["Input","TextArea"],e=>{const t=Ot(e,Bs(e));return _K(t)},Ls,{resetFont:!1}),eN=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:i,disabled:s,status:c,allowClear:d,classNames:f,rootClassName:p,className:g,style:h,styles:y,variant:S,showCount:b,onMouseDown:$,onResize:C,...w}=e,{getPrefixCls:M,direction:x,allowClear:R,autoComplete:T,className:N,style:O,classNames:z,styles:j}=It("textArea"),W=l.useContext(Fr),F=s??W,{status:Y,hasFeedback:U,feedbackIcon:L}=l.useContext(Rr),B=zs(Y,c),[_,H]=Lt([z,f],[j,y],{props:e}),I=l.useRef(null);l.useImperativeHandle(t,()=>({resizableTextArea:I.current?.resizableTextArea,focus:re=>{KO(I.current?.resizableTextArea?.textArea,re)},blur:()=>I.current?.blur()}));const A=M("input",n),V=or(A),[P,D]=m3(A,p);HK(A,V);const{compactSize:q,compactItemClassnames:G}=Ma(A,x),K=ur(re=>i??q??re),[Z,J]=As("textArea",S,r),ie=B3(d??R),[ne,oe]=l.useState(!1),[ue,le]=l.useState(!1),fe=re=>{oe(!0),$?.(re);const ce=()=>{oe(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},ge=re=>{if(C?.(re),ne&&typeof getComputedStyle=="function"){const ce=I.current?.nativeElement?.querySelector("textarea");ce&&getComputedStyle(ce).resize==="both"&&le(!0)}};return l.createElement(jK,{autoComplete:T,...w,style:{...H.root,...O,...h},styles:H,disabled:F,allowClear:ie,className:Q(D,V,g,p,G,N,_.root,{[`${A}-textarea-affix-wrapper-resize-dirty`]:ue}),classNames:{..._,textarea:Q({[`${A}-sm`]:K==="small",[`${A}-lg`]:K==="large"},P,_.textarea,ne&&`${A}-mouse-active`),variant:Q({[`${A}-${Z}`]:J},Qi(A,B)),affixWrapper:Q(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:x==="rtl",[`${A}-affix-wrapper-sm`]:K==="small",[`${A}-affix-wrapper-lg`]:K==="large",[`${A}-textarea-show-count`]:b||e.count?.show},P)},prefixCls:A,suffix:U&&l.createElement("span",{className:`${A}-textarea-suffix`},L),showCount:b,ref:I,onResize:ge,onMouseDown:fe})}),Or=qp;Or.Group=vK;Or.Search=NK;Or.TextArea=eN;Or.Password=RK;Or.OTP=wK;function BK(e,t,n){return typeof n=="boolean"?n:e.length?!0:cr(t).some(i=>i.type===l6)}function Yp({suffixCls:e,tagName:t,displayName:n}){return r=>l.forwardRef((s,c)=>l.createElement(r,{ref:c,suffixCls:e,tagName:t,...s}))}const y1=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:s,...c}=e,{getPrefixCls:d}=l.useContext(dt),f=d("layout",n),[p]=i6(f),g=r?`${f}-${r}`:f;return l.createElement(s,{className:Q(n||g,i,p),ref:t,...c})}),LK=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(dt),[r,i]=l.useState([]),{prefixCls:s,className:c,rootClassName:d,children:f,hasSider:p,tagName:g,style:h,...y}=e,S=nn(y,["suffixCls"]),{getPrefixCls:b,className:$,style:C}=It("layout"),w=b("layout",s),M=BK(r,f,p),[x,R]=i6(w),T=Q(w,{[`${w}-has-sider`]:M,[`${w}-rtl`]:n==="rtl"},$,c,d,x,R),N=l.useMemo(()=>({siderHook:{addSider:O=>{i(z=>[].concat(xn(z),[O]))},removeSider:O=>{i(z=>z.filter(j=>j!==O))}}}),[]);return l.createElement(r6.Provider,{value:N},l.createElement(g,{ref:t,className:T,style:{...C,...h},...S},f))}),VK=Yp({tagName:"div",displayName:"Layout"})(LK),FK=Yp({suffixCls:"header",tagName:"header",displayName:"Header"})(y1),kK=Yp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y1),WK=Yp({suffixCls:"content",tagName:"main",displayName:"Content"})(y1),Ra=VK;Ra.Header=FK;Ra.Footer=kK;Ra.Content=WK;Ra.Sider=l6;Ra._InternalSiderContext=_p;const qK={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:"页码"},YK=[10,20,50,100],UK=e=>{const{pageSizeOptions:t=YK,locale:n,changeSize:r,pageSize:i,goButton:s,quickGo:c,rootPrefixCls:d,disabled:f,buildOptionText:p,showSizeChanger:g,sizeChangerRender:h}=e,[y,S]=ae.useState(""),b=ae.useMemo(()=>!y||Number.isNaN(y)?void 0:Number(y),[y]),$=typeof p=="function"?p:z=>`${z} ${n.items_per_page}`,C=z=>{const j=z.target.value;/^\d*$/.test(j)&&S(j)},w=z=>{s||y===""||(S(""),!(z.relatedTarget&&(z.relatedTarget.className.includes(`${d}-item-link`)||z.relatedTarget.className.includes(`${d}-item`)))&&c?.(b))},M=z=>{y!==""&&(z.keyCode===nt.ENTER||z.type==="click")&&(S(""),c?.(b))},x=()=>t.some(z=>z.toString()===i.toString())?t:t.concat([i]).sort((z,j)=>{const W=Number.isNaN(Number(z))?0:Number(z),F=Number.isNaN(Number(j))?0:Number(j);return W-F}),R=`${d}-options`;if(!g&&!c)return null;let T=null,N=null,O=null;return g&&h&&(T=h({disabled:f,size:i,onSizeChange:z=>{r?.(Number(z))},"aria-label":n.page_size,className:`${R}-size-changer`,options:x().map(z=>({label:$(z),value:z}))})),c&&(s&&(O=typeof s=="boolean"?ae.createElement("button",{type:"button",onClick:M,onKeyUp:M,disabled:f,className:`${R}-quick-jumper-button`},n.jump_to_confirm):ae.createElement("span",{onClick:M,onKeyUp:M},s)),N=ae.createElement("div",{className:`${R}-quick-jumper`},n.jump_to,ae.createElement("input",{disabled:f,type:"text",value:y,onChange:C,onKeyUp:M,onBlur:w,"aria-label":n.page}),n.page,O)),ae.createElement("li",{className:R},T,N)},kc=e=>{const{rootPrefixCls:t,page:n,active:r,className:i,style:s,showTitle:c,onClick:d,onKeyPress:f,itemRender:p}=e,g=`${t}-item`,h=Q(g,`${g}-${n}`,{[`${g}-active`]:r,[`${g}-disabled`]:!n},i),y=()=>{d(n)},S=$=>{f($,d,n)},b=p(n,"page",ae.createElement("a",{rel:"nofollow"},n));return b?ae.createElement("li",{title:c?String(n):null,className:h,style:s,onClick:y,onKeyDown:S,tabIndex:0},b):null};function ti(){return ti=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},ti.apply(this,arguments)}const GK=(e,t,n)=>n;function g4(){}function h4(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function _i(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const XK=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:i,styles:s,current:c,defaultCurrent:d=1,total:f=0,pageSize:p,defaultPageSize:g=10,onChange:h=g4,hideOnSinglePage:y,align:S,showPrevNextJumpers:b=!0,showQuickJumper:$,showLessItems:C,showTitle:w=!0,onShowSizeChange:M=g4,locale:x=qK,style:R,totalBoundaryShowSizeChanger:T=50,disabled:N,simple:O,showTotal:z,showSizeChanger:j=f>T,sizeChangerRender:W,pageSizeOptions:F,itemRender:Y=GK,jumpPrevIcon:U,jumpNextIcon:L,prevIcon:B,nextIcon:_}=e,H=ae.useRef(null),[I,A]=Yt(g,p),[V,P]=Yt(d,c),D=Math.max(1,Math.min(V,_i(void 0,I,f))),[q,G]=ae.useState(D);l.useEffect(()=>{G(D)},[D]);const K=Math.max(1,D-(C?3:5)),Z=Math.min(_i(void 0,I,f),D+(C?3:5));function J(ke,at){let je=ke||ae.createElement("button",{type:"button","aria-label":at,className:`${t}-item-link`});return typeof ke=="function"&&(je=ae.createElement(ke,e)),je}function ie(ke){const at=ke.target.value,je=_i(void 0,I,f);let Ie;return at===""?Ie=at:Number.isNaN(Number(at))?Ie=q:at>=je?Ie=je:Ie=Number(at),Ie}function ne(ke){return h4(ke)&&ke!==D&&h4(f)&&f>0}const oe=f>I?$:!1;function ue(ke){(ke.keyCode===nt.UP||ke.keyCode===nt.DOWN)&&ke.preventDefault()}function le(ke){const at=ie(ke);switch(at!==q&&G(at),ke.keyCode){case nt.ENTER:re(at);break;case nt.UP:re(at-1);break;case nt.DOWN:re(at+1);break}}function fe(ke){re(ie(ke))}function ge(ke){const at=_i(ke,I,f),je=D>at&&at!==0?at:D;A(ke),G(je),M?.(D,ke),P(je),h?.(je,ke)}function re(ke){if(ne(ke)&&!N){const at=_i(void 0,I,f);let je=ke;return ke>at?je=at:ke<1&&(je=1),je!==q&&G(je),P(je),h?.(je,I),je}return D}const ce=D>1,he=D<_i(void 0,I,f);function pe(){ce&&re(D-1)}function Ce(){he&&re(D+1)}function de(){re(K)}function ye(){re(Z)}function Se(ke,at,...je){(ke.key==="Enter"||ke.charCode===nt.ENTER||ke.keyCode===nt.ENTER)&&at(...je)}function Ee(ke){Se(ke,pe)}function Pe(ke){Se(ke,Ce)}function Ae(ke){Se(ke,de)}function Ye(ke){Se(ke,ye)}function Ue(ke){const at=Y(ke,"prev",J(B,"prev page"));return ae.isValidElement(at)?ae.cloneElement(at,{disabled:!ce}):at}function Xe(ke){const at=Y(ke,"next",J(_,"next page"));return ae.isValidElement(at)?ae.cloneElement(at,{disabled:!he}):at}function et(ke){(ke.type==="click"||ke.keyCode===nt.ENTER)&&re(q)}let Te=null;const _e=jn(e,{aria:!0,data:!0}),Le=z&&ae.createElement("li",{className:`${t}-total-text`},z(f,[f===0?0:(D-1)*I+1,D*I>f?f:D*I]));let Qe=null;const ze=_i(void 0,I,f);if(y&&f<=I)return null;const ve=[],Oe={rootPrefixCls:t,onClick:re,onKeyPress:Se,showTitle:w,itemRender:Y,page:-1,className:i?.item,style:s?.item},Ze=D-1>0?D-1:0,qe=D+1<ze?D+1:ze,Be=$&&$.goButton,Ne=typeof O=="object"?O.readOnly:!O;let Ge=Be,rt=null;O&&(Be&&(typeof Be=="boolean"?Ge=ae.createElement("button",{type:"button",onClick:et,onKeyUp:et},x.jump_to_confirm):Ge=ae.createElement("span",{onClick:et,onKeyUp:et},Be),Ge=ae.createElement("li",{title:w?`${x.jump_to}${D}/${ze}`:null,className:`${t}-simple-pager`},Ge)),rt=ae.createElement("li",{title:w?`${D}/${ze}`:null,className:Q(`${t}-simple-pager`,i?.item),style:s?.item},Ne?q:ae.createElement("input",{type:"text","aria-label":x.jump_to,value:q,disabled:N,onKeyDown:ue,onKeyUp:le,onChange:le,onBlur:fe,size:3}),ae.createElement("span",{className:`${t}-slash`},"/"),ze));const ot=C?1:2;if(ze<=3+ot*2){ze||ve.push(ae.createElement(kc,ti({},Oe,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ke=1;ke<=ze;ke+=1)ve.push(ae.createElement(kc,ti({},Oe,{key:ke,page:ke,active:D===ke})))}else{const ke=C?x.prev_3:x.prev_5,at=C?x.next_3:x.next_5,je=Y(K,"jump-prev",J(U,"prev page")),Ie=Y(Z,"jump-next",J(L,"next page"));b&&(Te=je?ae.createElement("li",{title:w?ke:null,key:"prev",onClick:de,tabIndex:0,onKeyDown:Ae,className:Q(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!U})},je):null,Qe=Ie?ae.createElement("li",{title:w?at:null,key:"next",onClick:ye,tabIndex:0,onKeyDown:Ye,className:Q(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!L})},Ie):null);let Fe=Math.max(1,D-ot),Me=Math.min(D+ot,ze);D-1<=ot&&(Me=1+ot*2),ze-D<=ot&&(Fe=ze-ot*2);for(let We=Fe;We<=Me;We+=1)ve.push(ae.createElement(kc,ti({},Oe,{key:We,page:We,active:D===We})));if(D-1>=ot*2&&D!==3&&(ve[0]=ae.cloneElement(ve[0],{className:Q(`${t}-item-after-jump-prev`,ve[0].props.className)}),ve.unshift(Te)),ze-D>=ot*2&&D!==ze-2){const We=ve[ve.length-1];ve[ve.length-1]=ae.cloneElement(We,{className:Q(`${t}-item-before-jump-next`,We.props.className)}),ve.push(Qe)}Fe!==1&&ve.unshift(ae.createElement(kc,ti({},Oe,{key:1,page:1}))),Me!==ze&&ve.push(ae.createElement(kc,ti({},Oe,{key:ze,page:ze})))}let lt=Ue(Ze);if(lt){const ke=!ce||!ze;lt=ae.createElement("li",{title:w?x.prev_page:null,onClick:pe,tabIndex:ke?null:0,onKeyDown:Ee,className:Q(`${t}-prev`,i?.item,{[`${t}-disabled`]:ke}),style:s?.item,"aria-disabled":ke},lt)}let St=Xe(qe);if(St){let ke,at;O?(ke=!he,at=ce?0:null):(ke=!he||!ze,at=ke?null:0),St=ae.createElement("li",{title:w?x.next_page:null,onClick:Ce,tabIndex:at,onKeyDown:Pe,className:Q(`${t}-next`,i?.item,{[`${t}-disabled`]:ke}),style:s?.item,"aria-disabled":ke},St)}const Ct=Q(t,r,{[`${t}-start`]:S==="start",[`${t}-center`]:S==="center",[`${t}-end`]:S==="end",[`${t}-simple`]:O,[`${t}-disabled`]:N});return ae.createElement("ul",ti({className:Ct,style:R,ref:H},_e),Le,lt,O?rt:ve,St,ae.createElement(UK,{locale:x,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:ge,pageSize:I,pageSizeOptions:F,quickGo:oe?re:null,goButton:Ge,showSizeChanger:j,sizeChangerRender:W}))},KK=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}}}}},QK=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
321
- &${t}-mini ${t}-prev ${t}-item-link,
322
- &${t}-mini ${t}-next ${t}-item-link
323
- `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),input:{...s1(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},ZK=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:te(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:te(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,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}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},JK=e=>{const{componentCls:t}=e;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}}},[`
324
- ${t}-prev,
325
- ${t}-jump-prev,
326
- ${t}-jump-next
327
- `]:{marginInlineEnd:e.marginXS},[`
328
- ${t}-prev,
329
- ${t}-next,
330
- ${t}-jump-prev,
331
- ${t}-jump-next
332
- `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:te(e.itemSize),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:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:te(e.controlHeight),verticalAlign:"top",input:{...c1(e),...l1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Wp(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},eQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:te(e.calc(e.itemSize).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}}}}},tQ=e=>{const{componentCls:t}=e;return{[t]:{...Zt(e),display:"flex","&-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:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...eQ(e),...JK(e),...ZK(e),...QK(e),...KK(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"}}},nQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Co(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Yo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Yo(e)}}}},tN=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Ls(e)}),nN=e=>Ot(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"},Bs(e)),rQ=Pt("Pagination",e=>{const t=nN(e);return[tQ(t),nQ(t)]},tN),oQ=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &: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:not(${t}-mini)`]:{[`${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}}}}},aQ=rd(["Pagination","bordered"],e=>{const t=nN(e);return oQ(t)},tN);function y4(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const iQ=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:s,style:c,size:d,locale:f,responsive:p,showSizeChanger:g,selectComponentClass:h,pageSizeOptions:y,styles:S,classNames:b,...$}=e,{xs:C}=Ip(p),[,w]=kr(),{getPrefixCls:M,direction:x,showSizeChanger:R,className:T,style:N,classNames:O,styles:z}=It("pagination"),j=M("pagination",n),[W,F]=rQ(j),Y=ur(d),U=Y==="small"||!!(C&&!Y&&p),L={...e,size:Y},[B,_]=Lt([O,b],[z,S],{props:L}),[H]=ro("Pagination",ZR),I={...H,...f},[A,V]=y4(g),[P,D]=y4(R),q=A??P,G=V??D,K=h||Br,Z=l.useMemo(()=>y?y.map(le=>Number(le)):void 0,[y]),J=le=>{const{disabled:fe,size:ge,onSizeChange:re,"aria-label":ce,className:he,options:pe}=le,{className:Ce,onChange:de}=G||{},ye=pe.find(Se=>String(Se.value)===String(ge))?.value;return l.createElement(K,{disabled:fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Se=>Se.parentNode,"aria-label":ce,options:pe,...G,value:ye,onChange:(Se,Ee)=>{re?.(Se),de?.(Se,Ee)},size:U?"small":"middle",className:Q(he,Ce)})},ie=l.useMemo(()=>{const le=l.createElement("span",{className:`${j}-item-ellipsis`},"•••"),fe=l.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement($s,null):l.createElement(xu,null)),ge=l.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(xu,null):l.createElement($s,null)),re=l.createElement("a",{className:`${j}-item-link`},l.createElement("div",{className:`${j}-item-container`},x==="rtl"?l.createElement(l4,{className:`${j}-item-link-icon`}):l.createElement(i4,{className:`${j}-item-link-icon`}),le)),ce=l.createElement("a",{className:`${j}-item-link`},l.createElement("div",{className:`${j}-item-container`},x==="rtl"?l.createElement(i4,{className:`${j}-item-link-icon`}):l.createElement(l4,{className:`${j}-item-link-icon`}),le));return{prevIcon:fe,nextIcon:ge,jumpPrevIcon:re,jumpNextIcon:ce}},[x,j]),ne=M("select",r),oe=Q({[`${j}-${t}`]:!!t,[`${j}-mini`]:U,[`${j}-rtl`]:x==="rtl",[`${j}-bordered`]:w.wireframe},T,i,s,B.root,W,F),ue={..._.root,...N,...c};return l.createElement(l.Fragment,null,w.wireframe&&l.createElement(aQ,{prefixCls:j}),l.createElement(XK,{...ie,...$,styles:_,classNames:B,style:ue,prefixCls:j,selectPrefixCls:ne,className:oe,locale:I,pageSizeOptions:Z,showSizeChanger:q,sizeChangerRender:J}))},cp=100,rN=cp/5,oN=cp/2-rN/2,Xy=oN*2*Math.PI,b4=50,v4=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:oN,cx:b4,cy:b4,strokeWidth:rN,style:n})},lQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[s,c]=l.useState(!1);Nt(()=>{e!==0&&c(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${Xy/4}`,strokeDasharray:`${Xy*d/100} ${Xy*(100-d)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,d<=0&&i)},l.createElement("svg",{viewBox:`0 0 ${cp} ${cp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(v4,{dotClassName:n,hasCircleCls:!0}),l.createElement(v4,{dotClassName:n,style:f})))};function sQ(e){const{prefixCls:t,percent:n=0,className:r,style:i}=e,s=`${t}-dot`,c=`${s}-holder`,d=`${c}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:Q(c,r,n>0&&d),style:i},l.createElement("span",{className:Q(s,`${t}-dot-spin`)},[1,2,3,4].map(f=>l.createElement("i",{className:`${t}-dot-item`,key:f})))),l.createElement(lQ,{prefixCls:t,percent:n}))}function cQ(e){const{prefixCls:t,indicator:n,percent:r,className:i,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?tr(n,d=>({className:Q(d.className,c,i),style:{...d.style,...s},percent:r})):l.createElement(sQ,{prefixCls:t,percent:r,className:i,style:s})}const uQ=new At("antSpinMove",{to:{opacity:1}}),dQ=new At("antRotate",{to:{transform:"rotate(405deg)"}}),fQ=e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Zt(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:uQ,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:dQ,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"}}}},mQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},pQ=Pt("Spin",e=>{const t=Ot(e,{spinDotDefault:e.colorTextDescription});return fQ(t)},mQ),gQ=200,S4=[[30,.05],[70,.03],[96,.01]];function hQ(e,t){const[n,r]=l.useState(0),i=l.useRef(null),s=t==="auto";return l.useEffect(()=>(s&&e&&(r(0),i.current=setInterval(()=>{r(c=>{const d=100-c;for(let f=0;f<S4.length;f+=1){const[p,g]=S4[f];if(c<=p)return c+d*g}return c})},gQ)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[s,e]),s?n:t}let aN;function yQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const up=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:s,size:c="default",tip:d,wrapperClassName:f,style:p,children:g,fullscreen:h=!1,indicator:y,percent:S,classNames:b,styles:$,...C}=e,{getPrefixCls:w,direction:M,indicator:x,className:R,style:T,classNames:N,styles:O}=It("spin"),z=w("spin",t),[j,W]=pQ(z),[F,Y]=l.useState(()=>n&&!yQ(n,r)),U=hQ(F,S);l.useEffect(()=>{if(n){const q=gU(r,()=>{Y(!0)});return q(),()=>{q?.cancel?.()}}Y(!1)},[r,n]);const L=l.useMemo(()=>typeof g<"u"&&!h,[g,h]),B={...e,size:c,spinning:F,tip:d,fullscreen:h,children:g,percent:U},[_,H]=Lt([N,b],[O,$],{props:B}),I=Q(z,R,{[`${z}-sm`]:c==="small",[`${z}-lg`]:c==="large",[`${z}-spinning`]:F,[`${z}-show-text`]:!!d,[`${z}-rtl`]:M==="rtl"},i,!h&&s,!h&&_.root,j,W),A=Q(`${z}-container`,{[`${z}-blur`]:F}),V=y??x??aN,P={...T,...p},D=l.createElement("div",{...C,style:h?P:{...H.root,...P},className:I,"aria-live":"polite","aria-busy":F},l.createElement(cQ,{className:_.indicator,style:H.indicator,prefixCls:z,indicator:V,percent:U}),d&&(L||h)?l.createElement("div",{className:Q(`${z}-text`,_.tip),style:H.tip},d):null);return L?l.createElement("div",{...C,className:Q(`${z}-nested-loading`,f,_.wrapper,j,W),style:H.wrapper},F&&l.createElement("div",{key:"loading"},D),l.createElement("div",{className:A,key:"container"},g)):h?l.createElement("div",{className:Q(`${z}-fullscreen`,{[`${z}-fullscreen-show`]:F},s,j,W,_.mask),style:H.mask},D):D};up.setDefaultIndicator=e=>{aN=e};const b1=ae.createContext({});b1.Consumer;const bQ=({prefixCls:e,className:t,avatar:n,title:r,description:i,...s})=>{const{getPrefixCls:c}=l.useContext(dt),d=c("list",e),f=Q(`${d}-item-meta`,t),p=ae.createElement("div",{className:`${d}-item-meta-content`},r&&ae.createElement("h4",{className:`${d}-item-meta-title`},r),i&&ae.createElement("div",{className:`${d}-item-meta-description`},i));return ae.createElement("div",{...s,className:f},n&&ae.createElement("div",{className:`${d}-item-meta-avatar`},n),(r||i)&&p)},vQ=ae.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:s,styles:c,className:d,classNames:f,colStyle:p,...g}=e,{grid:h,itemLayout:y}=l.useContext(b1),{getPrefixCls:S,list:b}=l.useContext(dt),$=O=>Q(b?.item?.classNames?.[O],f?.[O]),C=O=>({...b?.item?.styles?.[O],...c?.[O]}),w=()=>{const O=cr(r);return O.some(j=>typeof j=="string")&&O.length>1},M=()=>y==="vertical"?!!s:!w(),x=S("list",n),R=i&&i.length>0&&ae.createElement("ul",{className:Q(`${x}-item-action`,$("actions")),key:"actions",style:C("actions")},i.map((O,z)=>ae.createElement("li",{key:`${x}-item-action-${z}`},O,z!==i.length-1&&ae.createElement("em",{className:`${x}-item-action-split`})))),T=h?"div":"li",N=ae.createElement(T,{...g,...h?{}:{ref:t},className:Q(`${x}-item`,{[`${x}-item-no-flex`]:!M()},d)},y==="vertical"&&s?[ae.createElement("div",{className:`${x}-item-main`,key:"content"},r,R),ae.createElement("div",{className:Q(`${x}-item-extra`,$("extra")),key:"extra",style:C("extra")},s)]:[r,R,tr(s,{key:"extra"})]);return h?ae.createElement(CU,{ref:t,flex:1,style:p},N):N}),iN=vQ;iN.Meta=bQ;const SQ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:s,itemPaddingLG:c,marginLG:d,borderRadiusLG:f}=e,p=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${p} ${p} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${p} ${p}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(i)} ${te(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},CQ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:s,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@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)}`}}}}}},$Q=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:s,marginLG:c,padding:d,itemPadding:f,colorPrimary:p,itemPaddingSM:g,itemPaddingLG:h,paddingXS:y,margin:S,colorText:b,colorTextDescription:$,motionDurationSlow:C,lineWidth:w,headerBg:M,footerBg:x,emptyTextPadding:R,metaMarginBottom:T,avatarMarginRight:N,titleMarginBottom:O,descriptionFontSize:z}=e;return{[t]:{...Zt(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:M},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,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:p}}},[`${t}-item-meta-description`]:{color:$,fontSize:z,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:w,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:R,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:S,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"}}}}},xQ=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}),wQ=Pt("List",e=>{const t=Ot(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[$Q(t),SQ(t),CQ(t)]},xQ),EQ=(e,t)=>{const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:s=!0,className:c,rootClassName:d,style:f,children:p,itemLayout:g,loadMore:h,grid:y,dataSource:S=[],size:b,header:$,footer:C,loading:w=!1,rowKey:M,renderItem:x,locale:R,...T}=e,N=n&&typeof n=="object"?n:{},[O,z]=l.useState(N.defaultCurrent||1),[j,W]=l.useState(N.defaultPageSize||10),{getPrefixCls:F,direction:Y,className:U,style:L}=It("list"),{renderEmpty:B}=l.useContext(dt),_={current:1,total:0,position:"bottom"},H=ye=>(Se,Ee)=>{z(Se),W(Ee),n&&n?.[ye]?.(Se,Ee)},I=H("onChange"),A=H("onShowSizeChange"),V=(ye,Se)=>{if(!x)return null;let Ee;return typeof M=="function"?Ee=M(ye):M?Ee=ye[M]:Ee=ye.key,Ee||(Ee=`list-item-${Se}`),l.createElement(l.Fragment,{key:Ee},x(ye,Se))},P=!!(h||n||C),D=F("list",r),[q,G]=wQ(D);let K=w;typeof K=="boolean"&&(K={spinning:K});const Z=!!K?.spinning,J=ur(b);let ie="";switch(J){case"large":ie="lg";break;case"small":ie="sm";break}const ne=Q(D,{[`${D}-vertical`]:g==="vertical",[`${D}-${ie}`]:ie,[`${D}-split`]:s,[`${D}-bordered`]:i,[`${D}-loading`]:Z,[`${D}-grid`]:!!y,[`${D}-something-after-last-item`]:P,[`${D}-rtl`]:Y==="rtl"},U,c,d,q,G),oe=qb(_,{total:S.length,current:O,pageSize:j},n||{}),ue=Math.ceil(oe.total/oe.pageSize);oe.current=Math.min(oe.current,ue);const le=n&&l.createElement("div",{className:Q(`${D}-pagination`)},l.createElement(iQ,{align:"end",...oe,onChange:I,onShowSizeChange:A}));let fe=xn(S);n&&S.length>(oe.current-1)*oe.pageSize&&(fe=xn(S).splice((oe.current-1)*oe.pageSize,oe.pageSize));const ge=Object.keys(y||{}).some(ye=>["xs","sm","md","lg","xl","xxl"].includes(ye)),re=Ip(ge),ce=l.useMemo(()=>{for(let ye=0;ye<Zi.length;ye+=1){const Se=Zi[ye];if(re[Se])return Se}},[re]),he=l.useMemo(()=>{if(!y)return;const ye=ce&&y[ce]?y[ce]:y.column;if(ye)return{width:`${100/ye}%`,maxWidth:`${100/ye}%`}},[JSON.stringify(y),ce]);let pe=Z&&l.createElement("div",{style:{minHeight:53}});if(fe.length>0){const ye=fe.map(V);pe=y?l.createElement(xU,{gutter:y.gutter},l.Children.map(ye,Se=>l.createElement("div",{key:Se?.key,style:he},Se))):l.createElement("ul",{className:`${D}-items`},ye)}else!p&&!Z&&(pe=l.createElement("div",{className:`${D}-empty-text`},R?.emptyText||B?.("List")||l.createElement(TO,{componentName:"List"})));const Ce=oe.position,de=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement(b1.Provider,{value:de},l.createElement("div",{ref:t,style:{...L,...f},className:ne,...T},(Ce==="top"||Ce==="both")&&le,$&&l.createElement("div",{className:`${D}-header`},$),l.createElement(up,{...K},pe,p),C&&l.createElement("div",{className:`${D}-footer`},C),h||(Ce==="bottom"||Ce==="both")&&le))},MQ=l.forwardRef(EQ),bo=MQ;bo.Item=iN;const RQ=(e,t=!1)=>t&&!Er(e)?[]:Array.isArray(e)?e:[e];let Bi=null,qi=e=>e(),Zu=[],Ju={};function C4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=Ju,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:i}}const TQ=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=l.useContext(dt),s=Ju.prefixCls||i("message"),c=l.useContext(S9),[d,f]=MT({...n,prefixCls:s,...c.message});return ae.useImperativeHandle(t,()=>{const p={...d};return Object.keys(p).forEach(g=>{p[g]=(...h)=>(r(),d[g].apply(d,h))}),{instance:p,sync:r}}),f}),OQ=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(C4),i=()=>{r(C4)};ae.useEffect(i,[]);const s=CT(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),p=ae.createElement(TQ,{ref:t,sync:i,messageConfig:n});return ae.createElement(Xo,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(p):p)}),Up=()=>{if(!Bi){const e=document.createDocumentFragment(),t={fragment:e};Bi=t,qi(()=>{PS(ae.createElement(OQ,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Up())})}}),e)});return}Bi.instance&&(Zu.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{qi(()=>{const r=Bi.instance.open({...Ju,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":qi(()=>{Bi?.instance.destroy(e.key)});break;default:qi(()=>{var r;const i=(r=Bi.instance)[t].apply(r,xn(e.args));i?.then(e.resolve),e.setCloseFn(i)})}}),Zu=[])};function NQ(e){Ju={...Ju,...e},qi(()=>{Bi?.sync?.()})}function IQ(e){const t=IS(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return Zu.push(i),()=>{r?qi(()=>{r()}):i.skipped=!0}});return Up(),t}function PQ(e,t){const n=IS(r=>{let i;const s={type:e,args:t,resolve:r,setCloseFn:c=>{i=c}};return Zu.push(s),()=>{i?qi(()=>{i()}):s.skipped=!0}});return Up(),n}const zQ=e=>{Zu.push({type:"destroy",key:e}),Up()},AQ=["success","info","warning","error","loading"],DQ={open:IQ,destroy:zQ,config:NQ,useMessage:KA,_InternalPanelDoNotUseOrYouWillBeFired:kA},$n=DQ;AQ.forEach(e=>{$n[e]=(...t)=>PQ(e,t)});const jQ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:s,title:c,children:d,footer:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g(),y=t||g("modal"),S=or(h),[b,$]=eO(y,S),C=`${y}-confirm`;let w={};return s?w={closable:i??!1,title:"",footer:"",children:l.createElement(nO,{...e,prefixCls:y,confirmPrefixCls:C,rootPrefixCls:h,content:d})}:w={closable:i??!0,title:c,footer:f!==null&&l.createElement(KT,{...e}),children:d},l.createElement(LT,{prefixCls:y,className:Q(b,`${y}-pure-panel`,s&&C,s&&`${C}-${s}`,n,$,S),...p,closeIcon:XT(y,r),closable:i,...w})},_Q=dO(jQ);function lN(e){return yd(iO(e))}const $o=tO;$o.useModal=v9;$o.info=function(t){return yd(lO(t))};$o.success=function(t){return yd(sO(t))};$o.error=function(t){return yd(cO(t))};$o.warning=lN;$o.warn=lN;$o.confirm=function(t){return yd(uO(t))};$o.destroyAll=function(){for(;Wi.length;){const t=Wi.pop();t&&t()}};$o.config=g9;$o._InternalPanelDoNotUseOrYouWillBeFired=_Q;const HQ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:s,colorWarning:c,marginXXS:d,marginXS:f,fontSize:p,fontWeightStrong:g,colorTextHeading:h}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:p},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:p,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}}}}},BQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},sN=Pt("Popconfirm",e=>HQ(e),BQ,{resetStyle:!1}),cN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:s,cancelText:c,okText:d,okType:f="primary",icon:p=l.createElement(Ps,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:S,onPopupClick:b,classNames:$,styles:C}=e,{getPrefixCls:w}=l.useContext(dt),[M]=ro("Popconfirm",Ca.Popconfirm),x=Es(i),R=Es(s);return l.createElement("div",{className:`${t}-inner-content`,onClick:b},l.createElement("div",{className:`${t}-message`},p&&l.createElement("span",{className:`${t}-message-icon`},p),l.createElement("div",{className:`${t}-message-text`},x&&l.createElement("div",{className:Q(`${t}-title`,$?.title),style:C?.title},x),R&&l.createElement("div",{className:Q(`${t}-description`,$?.content),style:C?.content},R))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(Bt,{onClick:S,size:"small",...r},c||M?.cancelText),l.createElement(jS,{buttonProps:{size:"small",...zS(f),...n},actionFn:y,close:h,prefixCls:w("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||M?.okText)))},LQ=e=>{const{prefixCls:t,placement:n,className:r,style:i,...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("popconfirm",t);return sN(d),l.createElement(BO,{placement:n,className:Q(d,r),style:i,content:l.createElement(cN,{prefixCls:d,...s})})},VQ=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:i,okType:s="primary",icon:c=l.createElement(Ps,null),children:d,overlayClassName:f,onOpenChange:p,overlayStyle:g,styles:h,arrow:y,classNames:S,...b}=e,{getPrefixCls:$,className:C,style:w,classNames:M,styles:x,arrow:R,trigger:T}=It("popconfirm"),[N,O]=Yt(e.defaultOpen??!1,e.open),z=qS(y,R),j=i||T||"click",W=(V,P)=>{O(V),p?.(V,P)},F=V=>{W(!1,V)},Y=V=>e.onConfirm?.call(void 0,V),U=V=>{W(!1,V),e.onCancel?.call(void 0,V)},L=(V,P)=>{const{disabled:D=!1}=e;D||W(V,P)},B=$("popconfirm",n),_={...e,placement:r,trigger:j,okType:s,overlayStyle:g,styles:h,classNames:S},[H,I]=Lt([M,S],[x,h],{props:_}),A=Q(B,C,f,H.root);return sN(B),l.createElement(LO,{arrow:z,...nn(b,["title"]),trigger:j,placement:r,onOpenChange:L,open:N,ref:t,classNames:{root:A,container:H.container,arrow:H.arrow},styles:{root:{...w,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(cN,{okType:s,icon:c,...e,prefixCls:B,close:F,onConfirm:Y,onCancel:U,classNames:H,styles:I}),"data-popover-inject":!0},d)}),iS=VQ;iS._InternalPanelDoNotUseOrYouWillBeFired=LQ;const FQ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},kQ=()=>{const e=l.useRef([]),t=l.useRef(null);return l.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(s.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},$4=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function x4(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),i=`${Math.floor(r*t)}%`;return`${e[n]} ${i}`})}const WQ=l.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:i,radius:s,className:c,style:d,ptg:f,strokeLinecap:p,strokeWidth:g,size:h,gapDegree:y}=e,S=r&&typeof r=="object",b=S?"#FFF":void 0,$=h/2,C=l.createElement("circle",{className:Q(`${n}-circle-path`,c),r:s,cx:$,cy:$,stroke:b,strokeLinecap:p,strokeWidth:g,opacity:f===0?0:1,style:d,ref:t});if(!S)return C;const w=`${i}-conic`,M=y?`${180+y/2}deg`:"0deg",x=x4(r,(360-y)/360),R=x4(r,1),T=`conic-gradient(from ${M}, ${x.join(", ")})`,N=`linear-gradient(to ${y?"bottom":"top"}, ${R.join(", ")})`;return l.createElement(l.Fragment,null,l.createElement("mask",{id:w},C),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${w})`},l.createElement($4,{bg:N},l.createElement($4,{bg:T}))))}),Jc=100,Ky=(e,t,n,r,i,s,c,d,f,p,g=0)=>{const h=n/100*360*((360-s)/360),y=s===0?0:{bottom:0,top:180,left:90,right:-90}[c];let S=(100-r)/100*t;f==="round"&&r!==100&&(S+=p/2,S>=t&&(S=t-.01));const b=Jc/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:S+g,transform:`rotate(${i+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}},qQ=(({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:ae.createElement("style",null,`@keyframes ${n} {
333
- 0% { transform: rotate(0deg); }
334
- 100% { transform: rotate(360deg); }
335
- }`)}});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)}function w4(e){const t=e??[];return Array.isArray(t)?t:[t]}const YQ=e=>{const{id:t,prefixCls:n,classNames:r={},styles:i={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:p,railColor:g,strokeLinecap:h,style:y,className:S,strokeColor:b,percent:$,loading:C,...w}={...FQ,...e},M=Jc/2,x=Ea(t),R=`${x}-gradient`,T=M-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,z=N*((360-f)/360),{count:j,gap:W}=typeof s=="object"?s:{count:s,gap:2},F=w4($),Y=w4(b),U=Y.find(D=>D&&typeof D=="object"),B=U&&typeof U=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:H}=qQ({id:x,loading:C}),I=Ky(N,z,0,100,O,f,p,g,B,c),A=kQ(),V=()=>{let D=0;return F.map((q,G)=>{const K=Y[G]||Y[Y.length-1],Z=Ky(N,z,D,q,O,f,p,K,B,c);return D+=q,l.createElement(WQ,{key:G,color:K,ptg:q,radius:T,prefixCls:n,gradientId:R,className:r.track,style:{...Z,..._,...i.track},strokeLinecap:B,strokeWidth:c,gapDegree:f,ref:J=>{A[G]=J},size:Jc})}).reverse()},P=()=>{const D=Math.round(j*(F[0]/100)),q=100/j;let G=0;return new Array(j).fill(null).map((K,Z)=>{const J=Z<=D-1?Y[0]:g,ie=J&&typeof J=="object"?`url(#${R})`:void 0,ne=Ky(N,z,G,q,O,f,p,J,"butt",c,W);return G+=(z-ne.strokeDashoffset+W)*100/z,l.createElement("circle",{key:Z,className:Q(`${n}-circle-path`,r.track),r:T,cx:M,cy:M,stroke:ie,strokeWidth:c,opacity:1,style:{...ne,...i.track},ref:oe=>{A[Z]=oe}})})};return l.createElement("svg",lS({className:Q(`${n}-circle`,r.root,S),viewBox:`0 0 ${Jc} ${Jc}`,style:{...i.root,...y},id:t,role:"presentation"},w),!j&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:T,cx:M,cy:M,stroke:g,strokeLinecap:B,strokeWidth:d||c,style:{...I,...i.rail}}),j?P():V(),H)};function Ui(e){return!e||e<0?0:e>100?100:e}function dp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const UQ=({percent:e,success:t})=>{const n=Ui(dp({success:t}));return[n,Ui(Ui(e)-n)]},GQ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||gs.green,t||null]},Gp=(e,t,n)=>{let r=-1,i=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=c??8):typeof e=="number"?[r,i]=[e,e]:[r=14,i=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"?i=s||(e==="small"?6:8):typeof e=="number"?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},XQ=3,KQ=e=>XQ/e*100,E4=["root","body","indicator"],QQ=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:p,width:g=120,type:h,children:y,success:S,size:b=g,steps:$}=e,{direction:C}=It("progress"),w=i??s,[M,x]=Gp(b,"circle");let{strokeWidth:R}=e;R===void 0&&(R=Math.max(KQ(M),6));const T={width:M,height:x,fontSize:M*.15+6},N=l.useMemo(()=>{if(p||p===0)return p;if(h==="dashboard")return 75},[p,h]),O=UQ(e),z=l.useMemo(()=>{const B=(f??d)||h==="dashboard"&&"bottom"||void 0,_=C==="rtl";switch(B){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return B}},[C,f,d,h]),j=Object.prototype.toString.call(e.strokeColor)==="[object Object]",W=GQ({success:S,strokeColor:e.strokeColor}),F=Q(`${t}-body`,{[`${t}-circle-gradient`]:j},n.body),Y=l.createElement(YQ,{steps:$,percent:$?O[1]:O,strokeWidth:R,railWidth:R,strokeColor:$?W[1]:W,strokeLinecap:c,railColor:w,prefixCls:t,gapDegree:N,gapPosition:z,classNames:nn(n,E4),styles:nn(r,E4)}),U=M<=20,L=l.createElement("div",{className:F,style:{...T,...r.body}},Y,!U&&y);return U?l.createElement(sr,{title:y},L):L},sS="--progress-line-stroke-color",ZQ=e=>{const t="-100%";return new At("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}})},JQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Zt(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}}}}},eZ=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:ZQ(),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)"}}}}},tZ=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"}}}},nZ=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}}}}}},rZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},oZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),aZ=Pt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ot(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[JQ(n),eZ(n),tZ(n),nZ(n),rZ(n)]},oZ),iZ=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(", ")},lZ=(e,t)=>{const{from:n=gs.blue,to:r=gs.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=iZ(s),f=`linear-gradient(${i}, ${d})`;return{background:f,[sS]:f}}const c=`linear-gradient(${i}, ${n}, ${r})`;return{background:c,[sS]:c}},sZ=e=>{const{prefixCls:t,classNames:n,styles:r,direction:i,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:p="round",children:g,railColor:h,trailColor:y,percentPosition:S,success:b}=e,{align:$,type:C}=S,w=h??y,M=p==="square"||p==="butt"?0:void 0,x=c??[-1,d||(c==="small"?6:8)],[R,T]=Gp(x,"line",{strokeWidth:d}),N={backgroundColor:w||void 0,borderRadius:M,height:T},O=`${t}-track`,z=f&&typeof f!="string"?lZ(f,i):{[sS]:f,background:f},j={width:`${Ui(s)}%`,height:T,borderRadius:M,...z},W=dp(e),F={width:`${Ui(W)}%`,height:T,borderRadius:M,backgroundColor:b?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:$==="center"&&C==="outer"}),style:{width:R>0?R:"100%",...r.body}},l.createElement("div",{className:Q(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:Q(O,n.track),style:{...j,...r.track}},C==="inner"&&g),W!==void 0&&l.createElement("div",{className:Q(O,`${O}-success`,n.track),style:{...F,...r.track}})),C==="outer"&&g)},cZ=e=>{const{classNames:t,styles:n,size:r,steps:i,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:p,trailColor:g,prefixCls:h,children:y}=e,S=s(i*(c/100)),$=r??[r==="small"?2:14,d],[C,w]=Gp($,"step",{steps:i,strokeWidth:d}),M=C/i,x=Array.from({length:i}),R=p??g;for(let T=0;T<i;T++){const N=Array.isArray(f)?f[T]:f;x[T]=l.createElement("div",{key:T,className:Q(`${h}-steps-item`,{[`${h}-steps-item-active`]:T<=S-1},t.track),style:{backgroundColor:T<=S-1?N:R,width:M,height:w,...n.track}})}return l.createElement("div",{className:Q(`${h}-steps-body`,t.body),style:n.body},x,y)},uZ=["normal","exception","active","success"],dZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,classNames:s,styles:c,steps:d,strokeColor:f,percent:p=0,size:g="default",showInfo:h=!0,type:y="line",status:S,format:b,style:$,percentPosition:C={},...w}=e,{align:M="end",type:x="outer"}=C,R=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(R){const J=typeof R=="string"?R:Object.values(R)[0];return new en(J).isLight()}return!1},[f]),O=l.useMemo(()=>{const J=dp(e);return Number.parseInt(J!==void 0?(J??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),z=l.useMemo(()=>!uZ.includes(S)&&O>=100?"success":S||"normal",[S,O]),{getPrefixCls:j,direction:W,className:F,style:Y,classNames:U,styles:L}=It("progress"),B=j("progress",n),[_,H]=aZ(B),I={...e,percent:p,type:y,size:g,showInfo:h,percentPosition:C},[A,V]=Lt([U,s],[L,c],{props:I}),P=y==="line",D=P&&!d,q=l.useMemo(()=>{if(!h)return null;const J=dp(e);let ie;const ne=b||(ue=>`${ue}%`),oe=P&&N&&x==="inner";return x==="inner"||b||z!=="exception"&&z!=="success"?ie=ne(Ui(p),Ui(J)):z==="exception"?ie=P?l.createElement(Is,null):l.createElement(Wr,null):z==="success"&&(ie=P?l.createElement(Sp,null):l.createElement(il,null)),l.createElement("span",{className:Q(`${B}-indicator`,{[`${B}-indicator-bright`]:oe,[`${B}-indicator-${M}`]:D,[`${B}-indicator-${x}`]:D},A.indicator),style:V.indicator,title:typeof ie=="string"?ie:void 0},ie)},[h,p,O,z,y,B,b,P,N,x,M,D,A.indicator,V.indicator]),G={...e,classNames:A,styles:V};let K;y==="line"?K=d?l.createElement(cZ,{...G,strokeColor:T,prefixCls:B,steps:typeof d=="object"?d.count:d},q):l.createElement(sZ,{...G,strokeColor:R,prefixCls:B,direction:W,percentPosition:{align:M,type:x}},q):(y==="circle"||y==="dashboard")&&(K=l.createElement(QQ,{...G,strokeColor:R,prefixCls:B,progressStatus:z},q));const Z=Q(B,`${B}-status-${z}`,{[`${B}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${B}-inline-circle`]:y==="circle"&&Gp(g,"circle")[0]<=20,[`${B}-line`]:D,[`${B}-line-align-${M}`]:D,[`${B}-line-position-${x}`]:D,[`${B}-steps`]:d,[`${B}-show-info`]:h,[`${B}-${g}`]:typeof g=="string",[`${B}-rtl`]:W==="rtl"},F,r,i,A.root,_,H);return l.createElement("div",{ref:t,style:{...Y,...V.root,...$},className:Z,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...nn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)});function fZ(e){const{prefixCls:t,className:n,style:r,status:i}=e,s=`${t}-rail`;return l.createElement("div",{className:Q(s,`${s}-${i}`,n),style:r})}const mZ=l.createContext({}),v1=l.createContext(null);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 uN=l.createContext({}),M4=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext(v1),{className:p,style:g}=l.useContext(uN),h=`${c}-item`;return l.createElement("div",cS({},jn(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,p,n),style:{...f.itemIcon,...g,...r}}),i)});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)}function Qy(e){return e!=null}function pZ(e){const{prefixCls:t,classNames:n,styles:r,data:i,last:s,nextStatus:c,active:d,index:f,itemRender:p,iconRender:g,itemWrapperRender:h,onClick:y}=e,S=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(mZ),{ItemComponent:$}=l.useContext(v1),{onClick:C,title:w,subTitle:M,content:x,description:R,disabled:T,icon:N,status:O,className:z,style:j,classNames:W={},styles:F={},...Y}=i,U=x??R,L={item:{...i,content:U},index:f,active:d},B=!!(y||C)&&!T,_={};B&&(_.role="button",_.tabIndex=0,_.onClick=G=>{C?.(G),y(f)},_.onKeyDown=G=>{const{which:K}=G;(K===nt.ENTER||K===nt.SPACE)&&y(f)});const H=O||"wait",I=Qy(w),A=Qy(M),V=Q(S,`${S}-${H}`,{[`${S}-custom`]:N,[`${S}-active`]:d,[`${S}-disabled`]:T===!0,[`${S}-empty-header`]:!I&&!A},z,n.item,W.root);let P=l.createElement(M4,null);g&&(P=g(P,{...L,components:{Icon:M4}}));const D=l.createElement("div",{className:Q(`${S}-wrapper`,n.itemWrapper,W.wrapper),style:{...r.itemWrapper,...F.wrapper}},l.createElement(uN.Provider,{value:{className:W.icon,style:F.icon}},P),l.createElement("div",{className:Q(`${S}-section`,n.itemSection,W.section),style:{...r.itemSection,...F.section}},l.createElement("div",{className:Q(`${S}-header`,n.itemHeader,W.header),style:{...r.itemHeader,...F.header}},I&&l.createElement("div",{className:Q(`${S}-title`,n.itemTitle,W.title),style:{...r.itemTitle,...F.title}},w),A&&l.createElement("div",{title:typeof M=="string"?M:void 0,className:Q(`${S}-subtitle`,n.itemSubtitle,W.subtitle),style:{...r.itemSubtitle,...F.subtitle}},M),!s&&l.createElement(fZ,{prefixCls:S,className:Q(n.itemRail,W.rail),style:{...r.itemRail,...F.rail},status:b?O:c})),Qy(U)&&l.createElement("div",{className:Q(`${S}-content`,n.itemContent,W.content),style:{...r.itemContent,...F.content}},U)));let q=l.createElement($,uS({},Y,_,{className:V,style:{...r.item,...F.root,...j}}),h?h(D):D);return p&&(q=p(q,L)||null),q}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 R4={};function gZ(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:i=R4,styles:s=R4,rootClassName:c,orientation:d,titlePlacement:f,components:p,status:g="process",current:h=0,initial:y=0,onChange:S,items:b,iconRender:$,itemRender:C,itemWrapperRender:w,...M}=e,x=d==="vertical",R=x?"vertical":"horizontal",T=!x&&f==="vertical"?"vertical":"horizontal",N=Q(t,`${t}-${R}`,`${t}-title-${T}`,c,r,i.root),O=ae.useMemo(()=>(b||[]).filter(Boolean),[b]),z=ae.useMemo(()=>O.map(({status:L},B)=>{const _=y+B;return L||(_===h?g:_<h?"finish":"wait")}),[O,g,h,y]),j=L=>{S&&h!==L&&S(L)},{root:W="div",item:F="div"}=p||{},Y=ae.useMemo(()=>({prefixCls:t,classNames:i,styles:s,ItemComponent:F}),[t,i,s,F]),U=(L,B)=>{const _=y+B,H=z[B],I=z[B+1],A={...L,status:H};return ae.createElement(pZ,{key:_,prefixCls:t,classNames:i,styles:s,data:A,nextStatus:I,active:_===h,index:_,last:O.length-1===B,iconRender:$,itemRender:C,itemWrapperRender:w,onClick:S&&j})};return ae.createElement(W,dS({className:N,style:{...n,...s?.root}},M),ae.createElement(v1.Provider,{value:Y},O.map(U)))}const hZ=l.createContext(null);function yZ(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"}))}function bZ(e){const{prefixCls:t,children:n,percent:r}=e,i=`${t}-item-progress-icon`,s=`${i}-circle`,c=`calc(var(--progress-r) * 2 * ${Math.PI*r/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${i}-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":r},l.createElement("title",null,"Progress"),l.createElement("circle",{className:Q(s,`${s}-rail`)}),l.createElement("circle",{className:Q(s,`${s}-ptg`),strokeDasharray:c,transform:"rotate(-90 50 50)"})),n)}const vZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{"--steps-horizontal-rail-margin":"calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",position:"static",marginTop:"var(--steps-horizontal-rail-margin)",width:"auto",borderBlockStartWidth:"var(--steps-rail-size)",flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},SZ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r}=e,i=`${t}-item`;return{[t]:{"--steps-icon-size":e.iconSize,"--steps-icon-border-width":e.lineWidth,[`${i}-icon`]:{width:"var(--steps-icon-size)",height:"var(--steps-icon-size)",margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:"var(--steps-icon-size)",textAlign:"center",borderRadius:"var(--steps-icon-size)",border:`var(--steps-icon-border-width) ${e.lineType} transparent`,transition:["background","border","color","inset","transform"].map(s=>`${s} ${r}`).join(", "),zIndex:1},[`${i}-custom ${i}-icon`]:{background:"none",border:0,fontSize:n}}}},CZ=e=>{const{componentCls:t,inlineDotSize:n}=e,r=e.calc(e.paddingXS).add(e.lineWidth).equal(),i=`${t}-item`;return{[`${t}-inline`]:{"--steps-items-offset":"0","--steps-item-wrapper-padding-top":r,display:"inline-flex","&:before":{content:'""',flex:"var(--steps-items-offset)"},[i]:{"--steps-title-vertical-row-gap":e.paddingXS,"--steps-icon-size":n,"--steps-icon-size-active":n,"--steps-title-font-size":e.fontSizeSM,"--steps-title-line-height":e.lineHeightSM,"--steps-item-title-color":e.colorTextSecondary,"--steps-subtitle-font-size":e.fontSizeSM,"--steps-subtitle-line-height":e.lineHeightSM,"--steps-item-subtitle-color":e.colorTextQuaternary,"--steps-rail-size":e.lineWidth,"--steps-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 ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${i}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function $Z(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}function S1(e,t,n){const{calc:r,componentCls:i,descriptionMaxWidth:s}=e,c=`${i}-item`;return{[`@container style(${$Z(s)})`]:[{[`${c}-icon`]:{marginInlineStart:r(s).sub("var(--steps-icon-size)").div(2).equal()},[`${c}-rail`]:{width:"auto",insetInlineStart:r(s).add("var(--steps-icon-size)").div(2).add(t).equal(),insetInlineEnd:r(s).sub("var(--steps-icon-size)").div(2).sub(t).mul(-1).equal()}},n]}}const xZ=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,calc:s}=e,c=`${t}-item`;return{[t]:{"--steps-icon-size-max":"max(var(--steps-icon-size), var(--steps-icon-size-active, var(--steps-icon-size)))",[`${c}-icon`]:{marginBlockStart:"calc((var(--steps-heading-height) - var(--steps-icon-size)) / 2)"}},[`${t}-title-horizontal`]:{"--steps-title-horizontal-item-margin":e.margin,"--steps-title-horizontal-rail-margin":e.margin,"--steps-title-horizontal-title-height":i,"--steps-heading-height":"max(var(--steps-icon-size), var(--steps-title-horizontal-title-height))",[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${c}:not(:first-child)`]:{marginInlineStart:"var(--steps-title-horizontal-item-margin)"},[`${c}:last-child`]:{flex:"0 1 auto"},[`${c}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${c}-wrapper`]:{columnGap:e.margin},[`${c}-empty-header`]:{[`${c}-header`]:{minHeight:"auto"},[`${c}-content`]:{marginTop:s("var(--steps-heading-height)").sub(e.fontHeight).div(2).equal()}}},[`${c}-section`]:{flex:1,minWidth:0},[`${c}-header`]:{minHeight:"var(--steps-heading-height)"},[`${c}-title`]:{flex:"0 1 auto"},[`${c}-content`]:{maxWidth:n},[`${c}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${c}-rail`]:{"--steps-item-wrapper-padding-top":"0px",flex:1,marginInlineStart:"var(--steps-title-horizontal-rail-margin)"}},[`${t}-title-vertical`]:{"--steps-title-vertical-row-gap":e.paddingSM,"--steps-title-horizontal-rail-gap":e.marginXXS,"--steps-heading-height":"var(--steps-icon-size-max)",[`> ${c}`]:{flex:1,[`${c}-wrapper`]:{flexDirection:"column",rowGap:"var(--steps-title-vertical-row-gap)",alignItems:"center"},[`${c}-section`]:{alignSelf:"stretch"},[`${c}-header`]:{flexDirection:"column",alignItems:"center"},[`${c}-title, ${c}-subtitle, ${c}-content`]:{textAlign:"center",maxWidth:"100%"},[`${c}-subtitle`]:{margin:0},[`${c}-rail`]:{position:"absolute",top:0,width:"calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)",insetInlineStart:"calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))"}},...S1(e,r,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:n}})}}},wZ=e=>{const{componentCls:t,fontSizeIcon:n,calc:r,navContentMaxWidth:i,navArrowColor:s,colorPrimary:c,motionDurationSlow:d}=e,f=`${t}-item`,p=c;return{[`${t}${t}-navigation`]:{[f.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${f}-wrapper`]:{paddingBlock:e.paddingSM},[`${f}-section`]:{maxWidth:i},[`${f}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:p,transition:`all ${d}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${f}-active`]:{"--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)"}},[`&${t}-horizontal`]:{[f]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${f}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:r(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[f.repeat(4)]:{[`${f}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${f}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:r(n).div(3).mul(2).equal(),height:r(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},EZ=e=>{const{componentCls:t,calc:n,lineWidthBold:r,borderRadius:i,borderRadiusSM:s,motionDurationMid:c}=e,d=`${t}-item`,f=`${te(r)} ${e.lineType} var(--steps-panel-border-color)`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{"--steps-panel-padding":e.paddingSM,"--steps-item-border-radius":i,[d]:{"--steps-panel-bg-color":"var(--steps-item-icon-bg-color)","--steps-panel-border-color":"var(--steps-item-icon-border-color)","--steps-panel-active-bg-color":"var(--steps-item-icon-active-bg-color)","--steps-panel-active-border-color":"var(--steps-item-icon-active-border-color)","--steps-panel-title-height":"calc(var(--steps-title-font-size) * var(--steps-title-line-height))","--steps-item-base-height":n("var(--steps-panel-padding)").mul(2).add("var(--steps-icon-size)").add("var(--steps-panel-title-height)").equal(),"--steps-item-base-width":"calc(var(--steps-item-base-height) * 0.7071)",transition:`background ${c}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:n(r).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:n(r).mul(2).add("100%").equal(),width:"var(--steps-item-base-width)",overflow:"visible",strokeLinecap:"round",path:{fill:"var(--steps-panel-bg-color)",stroke:"var(--steps-panel-border-color)",strokeWidth:r,vectorEffect:"non-scaling-stroke",transition:`fill ${c}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:"var(--steps-panel-padding)",background:"var(--steps-panel-bg-color)",position:"relative",borderBlock:f,"&:not(:first-child)":{paddingInlineStart:"calc(var(--steps-panel-padding) + var(--steps-item-base-width))"},"&:first-child":{borderInlineStart:f,borderStartStartRadius:"var(--steps-item-border-radius)",borderEndStartRadius:"var(--steps-item-border-radius)"},"&:last-child":{borderInlineEnd:f,borderStartEndRadius:"var(--steps-item-border-radius)",borderEndEndRadius:"var(--steps-item-border-radius)"},"&-active":{background:"var(--steps-panel-active-bg-color)",borderColor:"var(--steps-panel-active-border-color)",[`${t}-panel-arrow`]:{path:{fill:"var(--steps-panel-active-bg-color)",stroke:"var(--steps-panel-active-border-color)"}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:"var(--steps-item-icon-active-text-color)"}}}},{[`&${t}-small`]:{"--steps-panel-padding":e.paddingXS,"--steps-item-border-radius":s}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(r)} 0`,"calc(100% + var(--steps-item-base-width)) 0","calc(100% + var(--steps-item-base-width)) 100%",`${te(r)} 100%`,`calc(var(--steps-item-base-width) + ${te(r)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:n(r).div(2).mul(-1).equal(),height:n(r).add("100%").equal()}}}]}},MZ=e=>{const{calc:t,antCls:n,componentCls:r,iconSize:i,iconSizeSM:s,lineWidthBold:c,paddingXXS:d}=e,f=`${r}-item`,p=e.calc(i).add(e.calc(c).mul(4).equal()).equal(),g=e.calc(s).add(e.calc(e.lineWidth).mul(4).equal()).equal(),h=t(c).add(c).equal();return{[`${r}${r}-with-progress`]:{"--steps-item-wrapper-padding-top":h,[`${f}${f}-process`]:{[`${f}-icon`]:{position:"relative"}},[`${f}-progress-icon`]:{"&-svg":{"--steps-svg-size":t(h).mul(2).add("var(--steps-icon-size)").equal(),"--icon-size-ptg-unitless":"calc(100 / tan(atan2(var(--steps-svg-size),1px)))",fontSize:"var(--steps-svg-size)",lineHeight:"var(--icon-size-ptg-unitless)",position:"absolute",inset:t(h).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:"var(--icon-size-ptg-unitless)",strokeWidth:t("var(--icon-size-ptg-unitless)").mul(c).equal(),"--progress-r":t("var(--steps-svg-size)").sub(c).mul("var(--icon-size-ptg-unitless)").div(2).equal(),r:"var(--progress-r)",fill:"none",cx:50,cy:50,transition:`all ${e.motionDurationSlow} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}},[`&${r}-with-progress11`]:{[f]:{paddingTop:d,paddingInlineStart:d},[`${f}-icon`]:{position:"relative",[`${n}-progress`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)","&-body":{width:`${te(p)} !important`,height:`${te(p)} !important`}}},[`&${r}-small`]:{[`${f}-icon ${n}-progress-body`]:{width:`${te(g)} !important`,height:`${te(g)} !important`}}}}},RZ=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:s,lineWidthBold:c,fontSizeSM:d}=e,f=`${t}-item`;return{[`${t}${t}-dot`]:{"--steps-icon-size-active":i,"--steps-icon-size":r,"--steps-dot-icon-size":r,"--steps-dot-icon-border-width":e.lineWidthBold,"--steps-rail-size":c,"--steps-icon-border-width":c,[`${f}-custom ${f}-icon`]:{fontSize:d},[`${f}-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%)"}},[`${f}-active ${f}-icon`]:{"--steps-icon-size":"var(--steps-icon-size-active)"},[`&${t}-horizontal`]:{[`&, &${t}-small`]:S1(e,s)}}}},TZ=e=>{const{componentCls:t,lineWidthBold:n}=e,r=`${t}-item`;return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(${["calc(0px - var(--steps-item-base-width)) 0px",`calc(100% - ${te(n)}) 0px`,`calc(100% - var(--steps-item-base-width) - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,"calc(0px - var(--steps-item-base-width)) 100%"].join(",")})`}}}}}}},OZ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:s}=e;return{[`${t}${t}-small`]:{"--steps-icon-size":n,"--steps-title-horizontal-item-margin":e.marginSM,"--steps-title-vertical-row-gap":e.paddingXS,"--steps-title-font-size":r,"--steps-title-line-height":i,"--steps-title-horizontal-rail-margin":e.marginXS,"--steps-title-horizontal-title-height":e.fontHeight,[`&${t}-horizontal${t}-title-vertical`]:S1(e,s)}}},nm="wait",rm="process",om="finish",am="error",NZ=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:s,colorError:c,colorText:d,colorTextDescription:f,colorBgContainer:p,colorPrimaryHover:g}=e,h=`${t}-item`;return{[t]:[{[h]:{"--steps-item-solid-line-color":"#000","--steps-item-title-color":"#000","--steps-item-content-color":"#000","--steps-item-subtitle-color":"var(--steps-item-content-color)","--steps-item-icon-custom-color":"#000","--steps-item-icon-bg-color":"#000","--steps-item-icon-border-color":"#000","--steps-item-icon-text-color":"#fff","--steps-item-icon-dot-color":"#000","--steps-item-icon-dot-bg-color":"var(--steps-item-icon-dot-color)","--steps-item-icon-dot-border-color":"var(--steps-item-icon-dot-color)","--steps-item-text-hover-color":"#000","--steps-item-icon-bg-hover-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-border-hover-color":"var(--steps-item-icon-border-color)","--steps-item-icon-text-hover-color":"var(--steps-item-icon-text-color)","--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)","--steps-item-process-rail-line-style":e.lineType},[`${h}-rail`]:{borderColor:"var(--steps-item-solid-line-color)"},[`${h}-custom ${h}-icon`]:{color:"var(--steps-item-icon-custom-color)"},[`${h}-title`]:{color:"var(--steps-item-title-color)"},[`${h}-subtitle`]:{color:"var(--steps-item-subtitle-color)"},[`${h}-content`]:{color:"var(--steps-item-content-color)"},[`${h}-active ${h}-icon`]:{},[`${h}-active ${h}-content`]:{color:"var(--steps-item-content-active-color)"},[`${h}[role='button']:not(${h}-active):hover`]:{[`${h}-title, ${h}-content`]:{color:"var(--steps-item-text-hover-color)"}},[`&:not(${t}-dot)`]:{[`${h}:not(${h}-custom)`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-color)",borderColor:"var(--steps-item-icon-border-color)",color:"var(--steps-item-icon-text-color)"},[`&[role='button']:not(${h}-active):hover`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-hover-color)",borderColor:"var(--steps-item-icon-border-hover-color)",color:"var(--steps-item-icon-text-hover-color)"}},[`&${h}-active`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-active-bg-color)",borderColor:"var(--steps-item-icon-active-border-color)",color:"var(--steps-item-icon-active-text-color)"}}}},[`&${t}-dot`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-dot-bg-color)",borderColor:"var(--steps-item-icon-dot-border-color)",color:"var(--steps-item-icon-dot-color)",[`&${h}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${h}-${nm}`]:{"--steps-item-icon-custom-color":n,"--steps-item-title-color":f,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${nm}`]:{"--steps-item-solid-line-color":n},[`${h}-${rm}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${rm}`]:{"--steps-item-solid-line-color":i,"--steps-rail-line-style":"var(--steps-item-process-rail-line-style)"},[`${h}-${om}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${om}`]:{"--steps-item-solid-line-color":i},[`${h}-${am}`]:{"--steps-item-icon-custom-color":c,"--steps-item-title-color":c,"--steps-item-content-color":c,"--steps-item-content-active-color":c,"--steps-item-text-hover-color":e.colorErrorHover},[`${h}-rail-${am}`]:{"--steps-item-solid-line-color":c}},{[`&${t}-filled`]:{[h]:{"--steps-item-icon-dot-border-color":"transparent"},[`${h}-${nm}`]:{"--steps-item-icon-bg-color":e.colorFillTertiary,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":s,"--steps-item-icon-dot-bg-color":n,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${rm}, ${h}-${om}`]:{"--steps-item-icon-bg-color":e.colorPrimaryBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":i,"--steps-item-icon-dot-bg-color":i,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${am}`]:{"--steps-item-icon-bg-color":e.colorErrorBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":c,"--steps-item-icon-dot-bg-color":c,"--steps-item-icon-bg-hover-color":e.colorErrorBgFilledHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":c,"--steps-item-icon-active-bg-color":c,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r}}},{[`&${t}-outlined`]:{[h]:{"--steps-item-icon-dot-bg-color":"transparent"},[`${h}-${nm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":n,"--steps-item-icon-text-color":n,"--steps-item-icon-dot-color":n,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":g,"--steps-item-icon-text-hover-color":g,"--steps-item-icon-active-bg-color":e.colorFillTertiary},[`${h}-${rm}, ${h}-${om}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":i,"--steps-item-icon-text-color":i,"--steps-item-icon-dot-color":i,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorPrimaryHover,"--steps-item-icon-text-hover-color":e.colorPrimaryHover,"--steps-item-icon-active-bg-color":e.colorPrimaryBg},[`${h}-${am}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":c,"--steps-item-icon-text-color":c,"--steps-item-icon-dot-color":c,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorErrorHover,"--steps-item-icon-text-hover-color":e.colorErrorHover,"--steps-item-icon-active-bg-color":e.colorErrorBg}}}]}},IZ=e=>{const{componentCls:t,calc:n}=e,r=`${t}-item`;return{[`${t}-vertical`]:{"--steps-vertical-rail-margin":n(e.marginXXS).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${r}`]:{minHeight:n(e.controlHeight).mul(1.5).equal(),paddingBottom:e.paddingSM,"&:last-child":{paddingBottom:0},[`${r}-icon`]:{marginInlineStart:"calc((var(--steps-icon-size-max) - var(--steps-icon-size)) / 2)"},[`${r}-rail`]:{"--steps-rail-offset":n("var(--steps-heading-height)").sub("var(--steps-icon-size)").div(2).equal(),borderInlineStartWidth:"var(--steps-rail-size)",position:"absolute",top:n("var(--steps-icon-size)").add("var(--steps-item-wrapper-padding-top)").add("var(--steps-rail-offset)").add("var(--steps-vertical-rail-margin)").equal(),insetInlineStart:n("var(--steps-icon-size-max)").div(2).equal(),bottom:n("var(--steps-vertical-rail-margin)").sub("var(--steps-rail-offset)").equal(),marginInlineStart:"calc(var(--steps-rail-size) / -2)"}}}}},PZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[t]:{"--steps-title-font-size":e.fontSizeLG,"--steps-title-line-height":e.lineHeightLG,"--steps-subtitle-font-size":e.fontSize,"--steps-subtitle-line-height":e.lineHeight,"--steps-item-wrapper-padding-top":"0px","--steps-rail-size":e.lineWidth,"--steps-rail-line-style":e.lineType,...Zt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:"var(--steps-item-wrapper-padding-top)"},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:"var(--steps-title-font-size)",lineHeight:"var(--steps-title-line-height)",wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:"var(--steps-subtitle-font-size)",lineHeight:"var(--steps-subtitle-line-height)",marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:"var(--steps-rail-line-style)",borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:So},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},zZ=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}),AZ=Pt("Steps",e=>{const t=Ot(e,{inlineDotSize:6});return[PZ(t),SZ(t),IZ(t),vZ(t),xZ(t),OZ(t),RZ(t),NZ(t),wZ(t),EZ(t),CZ(t),MZ(t),TZ(t)]},zZ),DZ={itemIcon:cd},jZ=e=>{const{size:t,className:n,rootClassName:r,style:i,variant:s="filled",type:c,classNames:d,styles:f,direction:p,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:S,titlePlacement:b,ellipsis:$,offset:C=0,items:w,percent:M,current:x=0,onChange:R,iconRender:T,...N}=e,O=l.useContext(hZ),z=It("steps"),{getPrefixCls:j,direction:W,className:F,style:Y}=z;let U,L,B={};O?B={root:O.rootComponent,item:O.itemComponent}:{classNames:U,styles:L}=z;const _=j("steps",e.prefixCls),H=`${_}-item-icon`,[I,A]=AZ(_),V=ur(t),P=l.useMemo(()=>(w||[]).filter(Boolean),[w]),{xs:D}=Ip(h),q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),G=q==="inline",K=q==="dot"||q==="inline",Z=l.useMemo(()=>q==="dot"&&typeof y=="function"?y:void 0,[q,y]),J=l.useMemo(()=>{const pe=g||p;return q==="panel"?"horizontal":h&&D||pe==="vertical"?"vertical":"horizontal"},[g,p,q,h,D]),ie=l.useMemo(()=>K||J==="vertical"?J==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||S||"horizontal",[K,S,J,b,c]),ne=G?void 0:M,oe={...e,variant:s,size:V,type:q,orientation:J,titlePlacement:ie,current:x,percent:ne,responsive:h,offset:C},[ue,le]=Lt([DZ,U,d],[L,f],{props:oe}),fe=(pe,Ce)=>{const{item:de,index:ye,active:Se,components:{Icon:Ee}}=Ce,{status:Pe,icon:Ae}=de;let Ye=null;if(K||Ae)Ye=Ae;else switch(Pe){case"finish":Ye=l.createElement(il,{className:`${H}-finish`});break;case"error":Ye=l.createElement(Wr,{className:`${H}-error`});break;default:{let Xe=l.createElement("span",{className:`${H}-number`},Ce.index+1);Pe==="process"&&ne!==void 0&&(Xe=l.createElement(bZ,{prefixCls:_,percent:ne},Xe)),Ye=Xe}}let Ue=l.createElement(Ee,null,Ye);return T?Ue=T(Ue,{index:ye,active:Se,item:de,components:{Icon:Ee}}):typeof Z=="function"&&(Ue=Z(Ue,{index:ye,...de})),Ue},ge=(pe,Ce)=>{let de=pe;return G&&Ce.item.content&&(de=l.createElement(sr,{destroyOnHidden:!0,title:Ce.item.content},pe)),l.createElement(ud,{component:"Steps",disabled:Ce.item.disabled||!R,colorSource:s==="filled"?"color":null},de)},re=q==="panel"?pe=>l.createElement(l.Fragment,null,pe,l.createElement(yZ,{prefixCls:_})):void 0,ce={"--steps-items-offset":`${C}`,...Y,...i},he=Q(F,`${_}-${s}`,{[`${_}-${q}`]:q!=="dot"?q:!1,[`${_}-rtl`]:W==="rtl",[`${_}-dot`]:K,[`${_}-ellipsis`]:$,[`${_}-with-progress`]:ne!==void 0,[`${_}-${V}`]:V},n,r,I,A);return l.createElement(gZ,{...N,prefixCls:_,className:he,style:ce,classNames:ue,styles:le,orientation:J,titlePlacement:ie,components:B,current:x,items:P,onChange:R,iconRender:fe,itemRender:ge,itemWrapperRender:re})},_Z=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[i]:{...Zt(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",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-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(${i}-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(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-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,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-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}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},C1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Ot(e,{tagFontSize:i,tagLineHeight:te(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},$1=e=>{const t=DT(new Fm(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new en(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},x1=Pt("Tag",e=>{const t=C1(e);return _Z(t)},$1),dN=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:s,children:c,icon:d,onChange:f,onClick:p,disabled:g,...h}=e,{getPrefixCls:y,tag:S}=l.useContext(dt),b=l.useContext(Fr),$=g??b,C=T=>{$||(f?.(!s),p?.(T))},w=y("tag",n),[M,x]=x1(w),R=Q(w,`${w}-checkable`,{[`${w}-checkable-checked`]:s,[`${w}-checkable-disabled`]:$},S?.className,i,M,x);return l.createElement("span",{...h,ref:t,style:{...r,...S?.style},className:R,onClick:C},d,l.createElement("span",null,c))});function HZ(e,t){const{id:n,prefixCls:r,rootClassName:i,className:s,style:c,classNames:d,styles:f,disabled:p,options:g,value:h,defaultValue:y,onChange:S,multiple:b,...$}=e,{getPrefixCls:C,direction:w,className:M,style:x,classNames:R,styles:T}=It("tag"),N=C("tag",r),O=`${N}-checkable-group`,z=or(N),[j,W]=x1(N,z),[F,Y]=Lt([R,d],[T,f],{props:e}),U=l.useMemo(()=>(g||[]).map(A=>A&&typeof A=="object"?A:{value:A,label:A}),[g]),[L,B]=Yt(y,h),_=(A,V)=>{let P=null;if(b){const D=L||[];P=A?[].concat(xn(D),[V.value]):D.filter(q=>q!==V.value)}else P=A?V.value:null;B(P),S?.(P)},H=ae.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:H.current}));const I=jn($,{aria:!0,data:!0});return ae.createElement("div",{...I,className:Q(O,M,i,{[`${O}-disabled`]:p,[`${O}-rtl`]:w==="rtl"},j,W,s,F.root),style:{...x,...Y.root,...c},id:n,ref:H},U.map(A=>ae.createElement(dN,{key:A.value,className:Q(`${O}-item`,F.item),style:Y.item,checked:b?(L||[]).includes(A.value):L===A.value,onChange:V=>_(V,A),disabled:p},A.label)))}const BZ=ae.forwardRef(HZ);function LZ(e,t){const{color:n,variant:r,bordered:i}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":i===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=Ap(n),p=i7(n),g={};if(!f&&!p&&d)if(c==="solid")g.backgroundColor=n;else{const h=new en(d).toHsl();h.l=.95,g.backgroundColor=new en(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,p,g]},[n,r,i,t])}const VZ=e=>vp(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),FZ=rd(["Tag","preset"],e=>{const t=C1(e);return VZ(t)},$1);function kZ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const im=(e,t,n)=>{const r=kZ(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}`]}}}},WZ=rd(["Tag","status"],e=>{const t=C1(e);return[im(t,"success","Success"),im(t,"processing","Info"),im(t,"error","Error"),im(t,"warning","Warning")]},$1),qZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,children:c,icon:d,color:f,variant:p,onClose:g,bordered:h,disabled:y,href:S,target:b,styles:$,classNames:C,...w}=e,{getPrefixCls:M,direction:x,className:R,variant:T,style:N,classNames:O,styles:z}=It("tag"),[j,W,F,Y,U]=LZ(e,T),L=F||Y,B=l.useContext(Fr),_=y??B,{tag:H}=l.useContext(dt),[I,A]=l.useState(!0),V=nn(w,["closeIcon","closable"]),P={...e,color:W,variant:j,disabled:_,href:S,target:b,icon:d},[D,q]=Lt([O,C],[z,$],{props:P}),G=l.useMemo(()=>{let ce={...q.root,...N,...s};return _||(ce={...U,...ce}),ce},[q.root,N,s,U,_]),K=M("tag",n),[Z,J]=x1(K),ie=Q(K,R,D.root,`${K}-${j}`,{[`${K}-${W}`]:L,[`${K}-hidden`]:!I,[`${K}-rtl`]:x==="rtl",[`${K}-disabled`]:_},r,i,Z,J),ne=ce=>{_||(ce.stopPropagation(),g?.(ce),!ce.defaultPrevented&&A(!1))},[,oe]=TS(vs(e),vs(H),{closable:!1,closeIconRender:ce=>{const he=l.createElement("span",{className:`${K}-close-icon`,onClick:ne},ce);return NS(ce,he,pe=>({onClick:Ce=>{pe?.onClick?.(Ce),ne(Ce)},className:Q(pe?.className,`${K}-close-icon`)}))}}),ue=typeof w.onClick=="function"||c&&c.type==="a",le=tr(d,{className:Q(l.isValidElement(d)?d.props?.className:"",D.icon),style:q.icon}),fe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",{className:D.content,style:q.content},c)):c,ge=S?"a":"span",re=l.createElement(ge,{...V,ref:t,className:ie,style:G,href:_?void 0:S,target:b,onClick:_?void 0:V.onClick,...S&&_?{"aria-disabled":!0}:{}},fe,oe,F&&l.createElement(FZ,{key:"preset",prefixCls:K}),Y&&l.createElement(WZ,{key:"status",prefixCls:K}));return ue?l.createElement(ud,{component:"Tag"},re):re}),br=qZ;br.CheckableTag=dN;br.CheckableTagGroup=BZ;const YZ={defaultSeed:Dm.token,defaultAlgorithm:PR},UZ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:s}=r;return{marginBottom:i,color:n,fontWeight:s,fontSize:e,lineHeight:t}},GZ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
336
- h${r}&,
337
- div&-h${r},
338
- div&-h${r} > textarea,
339
- h${r}
340
- `]=UZ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},XZ=e=>{const{componentCls:t}=e;return{"a&, a":{...HR(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},KZ=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:zm[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}}),QZ=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"}}}},ZZ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),JZ=()=>({"\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"}}),eJ=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"},...GZ(e),[`
341
- & + h1${t},
342
- & + h2${t},
343
- & + h3${t},
344
- & + h4${t},
345
- & + h5${t}
346
- `]:{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}},...KZ(e),...XZ(e),[`
347
- ${t}-expand,
348
- ${t}-collapse,
349
- ${t}-edit,
350
- ${t}-copy
351
- `]:{...HR(e),marginInlineStart:e.marginXXS},...QZ(e),...ZZ(e),...JZ(),"&-rtl":{direction:"rtl"}}}},tJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),fN=Pt("Typography",eJ,tJ),nJ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:p,onCancel:g,onEnd:h,component:y,enterIcon:S=l.createElement(MG,null)}=e,b=l.useRef(null),$=l.useRef(!1),C=l.useRef(null),[w,M]=l.useState(f);l.useEffect(()=>{M(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:U}=b.current.resizableTextArea;U.focus();const{length:L}=U.value;U.setSelectionRange(L,L)}},[]);const x=({target:U})=>{M(U.value.replace(/[\n\r]/g,""))},R=()=>{$.current=!0},T=()=>{$.current=!1},N=({keyCode:U})=>{$.current||(C.current=U)},O=()=>{p(w.trim())},z=({keyCode:U,ctrlKey:L,altKey:B,metaKey:_,shiftKey:H})=>{C.current!==U||$.current||L||B||_||H||(U===nt.ENTER?(O(),h?.()):U===nt.ESC&&g())},j=()=>{O()},[W,F]=fN(t),Y=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,W,F);return l.createElement("div",{className:Y,style:i},l.createElement(eN,{ref:b,maxLength:c,value:w,onChange:x,onKeyDown:N,onKeyUp:z,onCompositionStart:R,onCompositionEnd:T,onBlur:j,"aria-label":n,rows:1,autoSize:d}),S!==null?tr(S,{className:`${t}-edit-content-confirm`}):null)},rJ=(e,t)=>{let n=!1;const r=i=>{i.stopPropagation(),i.preventDefault(),i.clipboardData?.clearData(),i.clipboardData?.setData("text/plain",e),t&&i.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})}},oJ=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 aJ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await oJ(e,n)||rJ(e,n))}const iJ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[i,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 p=ut(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await aJ(h||RQ(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:i,onClick:p}};function Zy(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const lJ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},sJ=(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]),mN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:s,children:c,direction:d,style:f,...p}=e,{getPrefixCls:g,direction:h,className:y,style:S}=It("typography"),b=d??h,$=g("typography",n),[C,w]=fN($),M=Q($,y,{[`${$}-rtl`]:b==="rtl"},i,s,C,w),x={...S,...f};return l.createElement(r,{className:M,style:x,ref:t,...p},c)});function T4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Jy(e,t,n){return e===!0||e===void 0?t:e||n&&t}function cJ(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 w1=e=>["string","number"].includes(typeof e),uJ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const p=T4(i),g=T4(s),{copied:h,copy:y}=n??{},S=t?h:y,b=Jy(p[t?1:0],S),$=typeof b=="string"?b:S;return l.createElement(sr,{title:b},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":$,tabIndex:c},t?Jy(g[1],l.createElement(il,null),!0):Jy(g[0],f?l.createElement($p,null):l.createElement(P3,null),!0)))},lm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.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)}),dJ=e=>e.reduce((t,n)=>t+(w1(n)?String(n).length:1),0);function O4(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const s=e[i],d=w1(s)?String(s).length:1,f=n+d;if(f>t){const p=t-n;return r.push(String(s).slice(0,p)),r}r.push(s),n=f}return e}const eb=0,tb=1,nb=2,rb=3,N4=4,sm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function fJ(e){const{enableMeasure:t,width:n,text:r,children:i,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,p=l.useMemo(()=>cr(r),[r]),g=l.useMemo(()=>dJ(p),[r]),h=l.useMemo(()=>i(p,!1),[r]),[y,S]=l.useState(null),b=l.useRef(null),$=l.useRef(null),C=l.useRef(null),w=l.useRef(null),M=l.useRef(null),[x,R]=l.useState(!1),[T,N]=l.useState(eb),[O,z]=l.useState(0),[j,W]=l.useState(null);Nt(()=>{N(t&&n&&g?tb:eb)},[n,r,s,t,p]),Nt(()=>{if(T===tb){N(nb);const L=$.current&&getComputedStyle($.current).whiteSpace;W(L)}else if(T===nb){const L=!!C.current?.isExceed();N(L?rb:N4),S(L?[0,g]:null),R(L);const B=C.current?.getHeight()||0,_=s===1?0:w.current?.getHeight()||0,H=M.current?.getHeight()||0,I=Math.max(B,_+H);z(I+1),f(L)}},[T]);const F=y?Math.ceil((y[0]+y[1])/2):0;Nt(()=>{const[L,B]=y||[0,0];if(L!==B){const H=(b.current?.getHeight()||0)>O;let I=F;B-L===1&&(I=H?L:B),S(H?[L,I]:[I,B])}},[y,F]);const Y=l.useMemo(()=>{if(!t)return i(p,!1);if(T!==rb||!y||y[0]!==y[1]){const L=i(p,!1);return[N4,eb].includes(T)?L:l.createElement("span",{style:{...sm,WebkitLineClamp:s}},L)}return i(c?p:O4(p,y[0]),x)},[c,T,y,p].concat(xn(d))),U={width:n,margin:0,padding:0,whiteSpace:j==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,Y,T===nb&&l.createElement(l.Fragment,null,l.createElement(lm,{style:{...U,...sm,WebkitLineClamp:s},ref:C},h),l.createElement(lm,{style:{...U,...sm,WebkitLineClamp:s-1},ref:w},h),l.createElement(lm,{style:{...U,...sm,WebkitLineClamp:1},ref:M},i([],!0))),T===rb&&y&&y[0]!==y[1]&&l.createElement(lm,{style:{...U,top:400},ref:b},i(O4(p,F),!0)),T===tb&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const mJ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(sr,{open:t?void 0:!1,...r},n);function pJ({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:s,italic:c},d){let f=d;function p(g,h){h&&(f=l.createElement(g,{},f))}return p("strong",i),p("u",n),p("del",r),p("code",t),p("mark",e),p("kbd",s),p("i",c),f}const gJ="...",I4=["delete","mark","code","underline","strong","keyboard","italic"],Xp=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:g,component:h,title:y,...S}=e,{getPrefixCls:b,direction:$}=l.useContext(dt),[C]=ro("Text"),w=l.useRef(null),M=l.useRef(null),x=b("typography",n),R=nn(S,I4),[T,N]=Zy(p),[O,z]=Yt(!1,N.editing),{triggerType:j=["icon"]}=N,W=ve=>{ve&&N.onStart?.(),z(ve)},F=lJ(O);Nt(()=>{!O&&F&&M.current?.focus()},[O]);const Y=ve=>{ve?.preventDefault(),W(!0)},U=ve=>{N.onChange?.(ve),W(!1)},L=()=>{N.onCancel?.(),W(!1)},[B,_]=Zy(g),{copied:H,copyLoading:I,onClick:A}=iJ({copyConfig:_,children:d}),[V,P]=l.useState(!1),[D,q]=l.useState(!1),[G,K]=l.useState(!1),[Z,J]=l.useState(!1),[ie,ne]=l.useState(!0),[oe,ue]=Zy(f,{expandable:!1,symbol:ve=>ve?C?.collapse:C?.expand}),[le,fe]=Yt(ue.defaultExpanded||!1,ue.expanded),ge=oe&&(!le||ue.expandable==="collapsible"),{rows:re=1}=ue,ce=l.useMemo(()=>ge&&(ue.suffix!==void 0||ue.onEllipsis||ue.expandable||T||B),[ge,ue,T,B]);Nt(()=>{oe&&!ce&&(P(VE("webkitLineClamp")),q(VE("textOverflow")))},[ce,oe]);const[he,pe]=l.useState(ge),Ce=l.useMemo(()=>ce?!1:re===1?D:V,[ce,D,V]);Nt(()=>{pe(Ce&&ge)},[Ce,ge]);const de=ge&&(he?Z:G),ye=ge&&re===1&&he,Se=ge&&re>1&&he,Ee=(ve,Oe)=>{fe(Oe.expanded),ue.onExpand?.(ve,Oe)},[Pe,Ae]=l.useState(0),Ye=({offsetWidth:ve})=>{Ae(ve)},Ue=ve=>{K(ve),G!==ve&&ue.onEllipsis?.(ve)};l.useEffect(()=>{const ve=w.current;if(oe&&he&&ve){const Oe=cJ(ve);Z!==Oe&&J(Oe)}},[oe,he,d,Se,ie,Pe]),l.useEffect(()=>{const ve=w.current;if(typeof IntersectionObserver>"u"||!ve||!he||!ge)return;const Oe=new IntersectionObserver(()=>{ne(!!ve.offsetParent)});return Oe.observe(ve),()=>{Oe.disconnect()}},[he,ge]);const Xe=sJ(ue.tooltip,N.text,d),et=l.useMemo(()=>{if(!(!oe||he))return[N.text,d,y,Xe.title].find(w1)},[oe,he,y,Xe.title,de]);if(O)return l.createElement(nJ,{value:N.text??(typeof d=="string"?d:""),onSave:U,onCancel:L,onEnd:N.onEnd,prefixCls:x,className:r,style:i,direction:$,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const Te=()=>{const{expandable:ve,symbol:Oe}=ue;return ve?l.createElement("button",{type:"button",key:"expand",className:`${x}-${le?"collapse":"expand"}`,onClick:Ze=>Ee(Ze,{expanded:!le}),"aria-label":le?C.collapse:C?.expand},typeof Oe=="function"?Oe(le):Oe):null},_e=()=>{if(!T)return;const{icon:ve,tooltip:Oe,tabIndex:Ze}=N,qe=cr(Oe)[0]||C?.edit,Be=typeof qe=="string"?qe:"";return j.includes("icon")?l.createElement(sr,{key:"edit",title:Oe===!1?"":qe},l.createElement("button",{type:"button",ref:M,className:`${x}-edit`,onClick:Y,"aria-label":Be,tabIndex:Ze},ve||l.createElement(di,{role:"button"}))):null},Le=()=>B?l.createElement(uJ,{key:"copy",..._,prefixCls:x,copied:H,locale:C,onCopy:A,loading:I,iconOnly:!Er(d)}):null,Qe=ve=>[ve&&Te(),_e(),Le()],ze=ve=>[ve&&!le&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},gJ),ue.suffix,Qe(ve)];return l.createElement(Lr,{onResize:Ye,disabled:!ge},ve=>l.createElement(mJ,{tooltipProps:Xe,enableEllipsis:ge,isEllipsis:de},l.createElement(mN,{className:Q({[`${x}-${s}`]:s,[`${x}-disabled`]:c,[`${x}-ellipsis`]:oe,[`${x}-ellipsis-single-line`]:ye,[`${x}-ellipsis-multiple-line`]:Se},r),prefixCls:n,style:{...i,WebkitLineClamp:Se?re:void 0},component:h,ref:rr(ve,w,t),direction:$,onClick:j.includes("text")?Y:void 0,"aria-label":et?.toString(),title:y,...R},l.createElement(fJ,{enableMeasure:ge&&!he,text:d,rows:re,width:Pe,onEllipsis:Ue,expanded:le,miscDeps:[H,le,I,T,B,C].concat(xn(I4.map(Oe=>e[Oe])))},(Oe,Ze)=>pJ(e,l.createElement(l.Fragment,null,Oe.length>0&&Ze&&!le&&et?l.createElement("span",{key:"show-content","aria-hidden":!0},Oe):Oe,ze(Ze)))))))}),hJ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(Xp,{...d,ref:t,ellipsis:!!n,component:"a"},i)}),yJ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(Xp,{ref:t,...r,component:"div"},n)}),bJ=(e,t)=>{const{ellipsis:n,children:r,...i}=e,s=l.useMemo(()=>n&&typeof n=="object"?nn(n,["expandable","rows"]):n,[n]);return l.createElement(Xp,{ref:t,...i,ellipsis:s,component:"span"},r)},vJ=l.forwardRef(bJ),SJ=[1,2,3,4,5],CJ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...i}=e,s=SJ.includes(n)?`h${n}`:"h1";return l.createElement(Xp,{ref:t,...i,component:s},r)}),Nr=mN;Nr.Text=vJ;Nr.Link=hJ;Nr.Title=CJ;Nr.Paragraph=yJ;var Nm={exports:{}},$J=Nm.exports,P4;function xJ(){return P4||(P4=1,(function(e,t){(function(n,r){e.exports=r(d6())})($J,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=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 i.default.locale(s,null,!0),s}))})(Nm)),Nm.exports}xJ();const pN=l.createContext(null),ul=()=>{const e=l.useContext(pN);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},wJ="/api";class gN extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function Wo(e,t){const n=await fetch(`${wJ}${e}`,{...t,headers:{"Content-Type":"application/json",...t?.headers}});if(!n.ok){const r=await n.json().catch(()=>({message:"API Error"}));throw new gN(n.status,r.message||`HTTP ${n.status}`,r.code)}return n.json()}const as={async get(e){try{return await Wo(`/reports/${e}`)}catch(t){if(t instanceof gN&&t.status===404)return null;throw t}},async save(e,t){return Wo(`/reports/${e}`,{method:"PUT",body:JSON.stringify(t)})},async delete(e){try{return await Wo(`/reports/${e}`,{method:"DELETE"}),!0}catch{return!1}}},z4={async get(e,t){return Wo(`/calendar?year=${e}&month=${t}`)},async getAvailableMonths(){return(await Wo("/calendar/months")).yearMonths}},fp={async get(){return Wo("/config")},async update(e){return Wo("/config",{method:"PUT",body:JSON.stringify(e)})},async getRoutinesMarkdown(){return Wo("/config/routines/markdown")},async saveRoutinesMarkdown(e){return Wo("/config/routines/markdown",{method:"PUT",body:JSON.stringify({content:e})})}},EJ={async getStatus(){return Wo("/git/status")}},{TextArea:MJ}=Or,{Header:RJ}=Ra,{Text:xr}=Nr,A4="dashboard_save_step",TJ=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:i,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:p}=ul(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[S,b]=l.useState(()=>{const A=localStorage.getItem(A4);return A?parseInt(A,10):0}),[$,C]=l.useState(!1),[w,M]=l.useState(new Set),[x,R]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(A4,String(S))},[S]),l.useEffect(()=>{!g&&S>2&&b(2)},[g,S]);const O=l.useMemo(()=>{const A=new Set(p.unsavedDates),V=e.format("YYYY-MM-DD");return c.isDirty&&A.add(V),Array.from(A).sort((P,D)=>D.localeCompare(P))},[p.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(M(new Set(O)),N(!0),EJ.getStatus().then(A=>R(A)).catch(A=>console.error("Git状態の取得に失敗:",A)).finally(()=>N(!1)))},[h,O]);const z=l.useMemo(()=>!!(w.size>0||S>=1&&x?.uncommitted&&x.uncommitted.count>0||S>=2&&x?.unpushed&&x.unpushed.count>0),[w.size,S,x]),j=l.useCallback(()=>{t(gn())},[t]),W=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),F=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),Y=l.useCallback(()=>{y(!0)},[]),U=l.useCallback(async()=>{if(!z){$n.warning("実行対象がありません");return}C(!0);try{const A=S>=1,V=S>=2,P=S>=3,D={git:A?{commit:!0,push:V}:void 0,slack:P?{post:!0}:void 0},q=Array.from(w);q.length>0?await d(q,D):(A||V)&&await d([e.format("YYYY-MM-DD")],D),y(!1)}catch{$n.error("操作に失敗しました")}finally{C(!1)}},[S,w,d,z,e]),L=l.useCallback((A,V)=>{M(P=>{const D=new Set(P);return V?D.add(A):D.delete(A),D})},[]),B=l.useCallback(A=>{M(A?new Set(O):new Set)},[O]),_=l.useCallback(A=>{const V=e.format("YYYY-MM-DD");return A===V?c.markdownContent||"(日報データがありません)":p.getUnsavedReport(A)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,p]),H=l.useMemo(()=>{const A=O.length;return X.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[X.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),X.jsxs("div",{children:["未保存: ",A,"件"]})]})},[O.length]),I=O.length>0;return X.jsxs(RJ,{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:[X.jsxs(hn,{size:"large",children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[X.jsx(N3,{style:{fontSize:24,color:"#1890ff"}}),X.jsx(xr,{strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),X.jsxs(hn,{size:"small",children:[X.jsx(Bt,{size:"small",onClick:W,children:"◀"}),X.jsx(cl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),X.jsx(Bt,{size:"small",onClick:F,children:"▶"}),X.jsx(Bt,{type:"primary",size:"small",onClick:j,children:"今日"}),r.length>0&&X.jsxs(hn,{size:4,style:{marginLeft:8},children:[r.map(A=>X.jsx(br,{color:A.color,closable:!0,onClose:()=>i?.(A.code),closeIcon:X.jsx(Wr,{style:{fontSize:10}}),children:A.code},A.code)),r.length>1&&X.jsx(br,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),X.jsxs(hn,{size:"middle",align:"center",children:[X.jsx(Bt,{icon:X.jsx(XG,{}),onClick:n,children:"取り込み"}),X.jsx(Bt,{type:"primary",icon:X.jsx(uG,{}),onClick:Y,loading:c.saving,children:"保存"}),X.jsx(sr,{title:H,children:X.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[X.jsx(kG,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&X.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:"!"})]})})]}),X.jsxs($o,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:U,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:$,disabled:!z},width:900,children:[X.jsxs("div",{style:{marginBottom:24},children:[X.jsx(xr,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),X.jsx(jZ,{current:S,onChange:A=>b(A),items:[{title:"ローカル保存",description:"ファイルに保存",icon:X.jsx(HG,{})},{title:"Commit",description:"Gitにコミット",icon:X.jsx(p1,{})},{title:"Push",description:"リモートに反映",icon:X.jsx(a4,{})},...g?[{title:"Slack",description:"日報を投稿",icon:X.jsx(CX,{})}]:[]],style:{marginTop:16}})]}),X.jsxs("div",{style:{marginTop:16},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[X.jsxs(xr,{strong:!0,style:{fontSize:14},children:["保存対象 (",w.size,"/",O.length,"件)"]}),X.jsx(Rs,{checked:w.size===O.length&&O.length>0,indeterminate:w.size>0&&w.size<O.length,onChange:A=>B(A.target.checked),children:"全選択"})]}),X.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((A,V)=>X.jsxs("div",{style:{padding:12,borderBottom:V<O.length-1?"1px solid #f0f0f0":"none",background:w.has(A)?"#f6ffed":"#fff"},children:[X.jsxs(Rs,{checked:w.has(A),onChange:P=>L(A,P.target.checked),style:{marginBottom:8},children:[X.jsx(xr,{strong:!0,children:A}),A===e.format("YYYY-MM-DD")&&X.jsx(br,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),w.has(A)&&X.jsx(MJ,{value:_(A),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},A)),O.length===0&&X.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:X.jsx(xr,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),S>=1&&X.jsxs(X.Fragment,{children:[X.jsx(ni,{style:{margin:"16px 0 12px"}}),X.jsxs("div",{children:[X.jsxs(xr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[X.jsx(OG,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?X.jsx("div",{style:{padding:16,textAlign:"center"},children:X.jsx(up,{size:"small"})}):x?.uncommitted&&x.uncommitted.count>0?X.jsx(RE,{size:"small",items:[{key:"uncommitted",label:X.jsxs(xr,{type:"secondary",children:[x.uncommitted.count,"件の未コミットファイル"]}),children:X.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:x.uncommitted.files.map((A,V)=>X.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[X.jsx(ip,{style:{color:"#1890ff"}}),X.jsx(xr,{code:!0,style:{fontSize:11},children:A.path}),X.jsx(br,{color:A.status==="D"?"red":A.status==="A"||A.status==="?"?"green":"blue",style:{fontSize:10},children:A.status==="D"?"削除":A.status==="A"?"追加":A.status==="?"?"新規":"変更"})]},V))})}],defaultActiveKey:["uncommitted"]}):X.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:X.jsx(xr,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),X.jsx(xr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),S>=2&&X.jsxs(X.Fragment,{children:[X.jsx(ni,{style:{margin:"16px 0 12px"}}),X.jsxs("div",{children:[X.jsxs(xr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[X.jsx(a4,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?X.jsx("div",{style:{padding:16,textAlign:"center"},children:X.jsx(up,{size:"small"})}):x?.unpushed&&x.unpushed.count>0?X.jsx(RE,{size:"small",items:[{key:"unpushed",label:X.jsxs(xr,{type:"secondary",children:[x.unpushed.count,"件の未プッシュコミット"]}),children:X.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:x.unpushed.commits.map((A,V)=>X.jsxs("div",{style:{padding:"8px 0",borderBottom:V<x.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[X.jsx(br,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:A.hash}),X.jsx(xr,{style:{fontSize:12},children:A.message})]}),A.files.length>0&&X.jsxs("div",{style:{paddingLeft:16},children:[A.files.slice(0,5).map((P,D)=>X.jsxs("div",{style:{fontSize:11,color:"#666"},children:[X.jsx(ip,{style:{marginRight:4}}),P]},D)),A.files.length>5&&X.jsxs(xr,{type:"secondary",style:{fontSize:11},children:["... 他 ",A.files.length-5," ファイル"]})]})]},V))})}],defaultActiveKey:["unpushed"]}):X.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:X.jsx(xr,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),X.jsx(xr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:ob}=Nr,OJ=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:i}=ul(),[s,c]=l.useState(e),d=gn(),f=l.useMemo(()=>{const x={};for(const R of n.days)R.hasReport&&(x[R.date]={actual:R.resultHours||0,plan:R.planHours||0});return x},[n.days]),p=l.useMemo(()=>{const x=new Map;for(const T of n.availableYearMonths){const N=`${T.year}-${T.month-1}`;x.has(N)||x.set(N,{year:T.year,month:T.month-1})}const R=`${d.year()}-${d.month()}`;x.has(R)||x.set(R,{year:d.year(),month:d.month()});for(let T=-2;T<=2;T++){const N=d.add(T,"month"),O=`${N.year()}-${N.month()}`;x.has(O)||x.set(O,{year:N.year(),month:N.month()})}return Array.from(x.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=p.map(x=>({value:`${x.year}-${x.month}`,label:x.label})),h=x=>{const[R,T]=x.split("-").map(Number),N=s.year(R).month(T);c(N),n.loadCalendar(R,T+1)},y=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x>0){const R=p[x-1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}},S=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x<p.length-1){const R=p[x+1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const b=p.findIndex(x=>x.year===s.year()&&x.month===s.month()),$=b>0,C=b<p.length-1,w=x=>x>=9?"#ff4d4f":x>=8?"#52c41a":x>=6?"#1890ff":"#d9d9d9",M=x=>{const R=x.format("YYYY-MM-DD"),T=x.isBefore(d,"day"),N=x.isAfter(d,"day"),O=x.isSame(d,"day"),z=x.isSame(e,"day"),j=x.month()===s.month(),W=f[R],F=W?Math.min(W.actual/8*100,100):0,Y=r.hasUnsavedChangesForDate(R)||z&&i.isDirty;return X.jsx(sr,{title:W?`稼働: ${W.actual}h${Y?" (未保存)":""}`:Y?"未保存":void 0,children:X.jsxs("div",{onClick:()=>t(R),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:j?1:.3},children:[(T||O)&&W&&X.jsx(dZ,{type:"circle",percent:F,size:30,strokeColor:w(W.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),Y&&X.jsx(Ps,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),X.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||z?600:400,color:O||z?"#1890ff":"#000",background:z?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:x.date()})]})})};return X.jsxs(xa,{title:X.jsx("div",{style:{display:"flex",justifyContent:"center"},children:X.jsxs(hn,{size:"small",children:[X.jsx(Bt,{size:"small",onClick:y,disabled:!$,children:"◀"}),X.jsx(Br,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),X.jsx(Bt,{size:"small",onClick:S,disabled:!C,children:"▶"})]})}),styles:{body:{padding:8}},children:[X.jsx("style",{children:`
352
- .compact-calendar .ant-picker-content th,
353
- .compact-calendar .ant-picker-content td {
354
- padding: 2px 0 !important;
355
- }
356
- .compact-calendar .ant-picker-cell {
357
- padding: 0 !important;
358
- }
359
- .compact-calendar .ant-picker-cell-inner {
360
- min-width: 32px !important;
361
- height: 32px !important;
362
- line-height: 32px !important;
363
- }
364
- `}),X.jsx(C3,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:x=>{c(x),t(x.format("YYYY-MM-DD"))},fullCellRender:M,style:{border:"none"},headerRender:()=>null}),n.summary&&X.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:X.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[X.jsxs("span",{children:["稼働日数: ",n.summary.workDays,"日"]}),X.jsxs("span",{children:["合計: ",n.summary.totalResultHours.toFixed(1),"h"]})]})}),X.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),X.jsx(ob,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),X.jsx(ob,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),X.jsx(ob,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function ed(e){const[t,n]=e.split(":").map(Number);return t*60+n}function D4(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:ab}=Nr,NJ=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:i,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:p,onMenuAction:g})=>{const h=t==="result",y=e.topPx,S=e.heightPx,b=r&&!i?y+s:y,C={items:[{key:"project",label:"プロジェクト変更",children:d.filter(w=>w.active).map(w=>({key:`project:${e.id}:${t}:${w.code}`,label:X.jsxs(hn,{children:[X.jsx(ui,{color:w.color}),w.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:X.jsx(m1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:X.jsx(ap,{}),danger:!0}],onClick:({key:w})=>g(w),onSelect:({key:w})=>g(w),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return X.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:w=>p(w,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,b),height:Math.max(S,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:i?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!i?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx(ab,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),X.jsx(ab,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),X.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:X.jsx(h1,{menu:C,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:X.jsx(z3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:w=>w.stopPropagation(),onClick:w=>w.stopPropagation()})})})]}),e.description&&X.jsx(ab,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:ib}=Nr;function j4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const IJ=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:i,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,p=j4(f),g=(f-s*60)/60*c;if(e.isBreak){const S=e.breakDuration||60,b=S/60*c,$=f+S,C=j4($);return X.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:X.jsxs(ib,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",p,"〜",C]})})}const h=r.find(S=>S.id===e.itemId);if(!h)return null;const y=c;return X.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${i(h.project)}30`,borderLeft:`3px dashed ${i(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[X.jsx(ib,{style:{fontSize:10,color:"#666",flexShrink:0},children:p}),X.jsx(ib,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function _4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function cm(e,t,n,r,i,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,p=(i+r)*60;d=Math.max(f,Math.min(p-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function PJ({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:i=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,p]=l.useState(null),[g,h]=l.useState(0),[y,S]=l.useState(!1),b=l.useCallback((w,M,x,R,T,N)=>{w.preventDefault(),w.stopPropagation(),p({itemId:M,type:x,startY:w.clientY,startMinutes:R,isBreak:T,breakDuration:N}),h(0)},[]),$=l.useCallback(w=>{if(!f)return;const M=w.clientY-f.startY,x=c/4,R=Math.round(M/x)*x;if(h(R),f.type==="plan"&&e.current){const T=e.current.getBoundingClientRect(),N=w.clientX>=T.left&&w.clientX<=T.right;S(N)}},[f,e,c]),C=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const w=g!==0?cm(f.startMinutes,g,c,s,i,d):_4(f.startMinutes),M={id:`r${Date.now()}`,time:w,project:"---",task:"休憩"},x=f.startMinutes+(f.breakDuration||60),R=g!==0?cm(x,g,c,s,i,d):_4(x),T=[...t.result,M];T.sort((N,O)=>N.time.localeCompare(O.time)),r(T),$n.success(`休憩(${w}〜${R})を実績にコピーしました`)}else{const w=t.plan.find(M=>M.id===f.itemId);if(w){const M=g!==0?cm(f.startMinutes,g,c,s,i,d):w.time,x={id:`r${Date.now()}`,time:M,project:w.project,task:w.task},R=[...t.result,x];R.sort((T,N)=>T.time.localeCompare(N.time)),r(R),$n.success(`「${w.task}」を実績にコピーしました`)}}else if(g!==0){const w=cm(f.startMinutes,g,c,s,i,d),x=(f.type==="plan"?[...t.plan]:[...t.result]).map(R=>R.id===f.itemId?{...R,time:w}:R);x.sort((R,T)=>R.time.localeCompare(T.time)),f.type==="plan"?n(x):r(x),$n.success(`予定を ${w} に移動しました`)}p(null),h(0),S(!1)}},[f,g,y,t,n,r,i,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 zJ(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function fS(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(`
365
- `);for(const i of r)t.push(` ${i}`)}return t}function H4(e,t){return[`## ${t}`,...fS(e)].join(`
366
- `)}function B4(e){const t=e.split(`
367
- `),n=[];let r=null,i=[];const s=()=>{r&&(i.length>0&&(r.description=i.join(`
368
- `)),n.push(r),r=null,i=[])};for(let c=0;c<t.length;c++){const d=t[c];if(d.startsWith(" ")&&r){i.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 p=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s*$/);p&&(s(),n.push({id:`break${Date.now()}-${c}`,time:p[1].padStart(5,"0"),project:"",task:""}))}return s(),n}function L4(e,t=8,n=12,r=60){if(e.length===0)return[];const i=[...e].sort((f,p)=>f.time.localeCompare(p.time)),s=t*60,c=n*60,d=[];for(let f=0;f<i.length;f++){const p=i[f];if(!p.task)continue;const h=ed(p.time);let y=60;for(let b=f+1;b<i.length;b++){const $=i[b],C=ed($.time);if(C>h){y=C-h;break}}const S=h+y;d.push({id:p.id,time:p.time,project:p.project,task:p.task,description:p.description,duration:y,isBreak:!1,startMinutes:h,endMinutes:S,top:(h-s)/c*100,height:y/c*100,topPx:(h-s)/60*r,heightPx:y/60*r})}return d}function V4(e,t=8,n=12,r=60){if(e.length===0)return[];const i=[...e].sort((f,p)=>f.time.localeCompare(p.time)),s=[],c=t*60,d=n*60;for(let f=0;f<i.length;f++){const p=i[f];if(!p.task){let g=!1,h=0;for(let b=f+1;b<i.length;b++)if(i[b].task){h=ed(i[b].time),g=!0;break}if(!g)continue;const y=ed(p.time),S=h-y;s.push({id:p.id,startTime:p.time,endTime:zJ(h),startMinutes:y,endMinutes:h,duration:S,top:(y-c)/d*100,height:S/d*100,topPx:(y-c)/60*r,heightPx:S/60*r})}}return s}function AJ(e,t={}){const{maxHours:n=36,defaultStartHour:r=8,defaultEndHour:i=20}=t;if(e.length===0)return{startHour:r,endHour:i,totalHours:i-r};let s=r*60,c=i*60;for(const g of e){const h=ed(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 p=d+n;return f>p&&(f=p),{startHour:d,endHour:f,totalHours:f-d}}function DJ(e){switch(e){case"completed":return"x";case"in_progress":return"*";case"on_hold":return"-";default:return" "}}function jJ(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";default:return"pending"}}function hN(e){const t=[];for(const n of e){const r=DJ(n.status),i=n.priority==="high"?"!!!":n.priority==="medium"?"!!":n.priority==="low"?"!":"",s=n.deadline?` @${n.deadline}`:"";if(t.push(`- [${r}] [${n.project}] ${i}${n.task}${s}`),n.description){const c=n.description.split(`
369
- `);for(const d of c)t.push(` ${d}`)}}return t}function F4(e,t){const n=["## [TODO]",""];return n.push(...hN(e)),n.push(""),n.push("## [NOTE]"),n.push(t),n.join(`
370
- `)}function _J(e){const t=e.split(`
371
- `),n=[];let r="P99",i=!1;const s=[];let c=null;const d=[],f=()=>{c&&(d.length>0&&(c.description=d.join(`
372
- `)),n.push(c),c=null,d.length=0)};for(let p=0;p<t.length;p++){const g=t[p];if(g.match(/^##\s+\[NOTE\]/i)){f(),i=!0;continue}if(i){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 S=y[1];let b=y[2],$=r;const C=b.match(/^\[([^\]]+)\]\s*/);C&&($=C[1],b=b.substring(C[0].length));let w;const M=b.match(/^(!!!|!!|!)/);if(M){const T=M[1];w=T==="!!!"?"high":T==="!!"?"medium":"low",b=b.substring(M[0].length)}let x;const R=b.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(R)x=R[1],b=b.substring(0,b.length-R[0].length);else{const T=b.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);T&&(x=T[1],b=b.substring(T[0].length))}x&&x.length===5&&(x=`${new Date().getFullYear()}-${x}`),c={id:`t${Date.now()}-${p}`,project:$,task:b.trim(),status:jJ(S),deadline:x,priority:w}}}return f(),{todos:n,notes:s.join(`
373
- `).trim()}}function yN(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 HJ(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 BJ(e,t,n="名前"){const r=s=>s.map(c=>`* ${c.time} [${c.project}] ${c.task}`).join(`
374
- `),i=s=>s.map(c=>{const d=c.status==="completed"?"x":c.status==="in_progress"?"*":c.status==="on_hold"?"-":" ",f=c.deadline?`@${c.deadline} `:"",p=c.priority==="high"?"!!! ":c.priority==="medium"?"!! ":c.priority==="low"?"! ":"";return`- [${d}] ${f}${p}[${c.project}] ${c.task}`}).join(`
375
- `);return`# [日報] ${n} ${t}
376
-
377
- ## [PLAN]
378
- ${r(e.plan)}
379
-
380
- ## [RESULT]
381
- ${r(e.result)}
382
-
383
- ## [TODO]
384
- ${i(e.todos)}
385
-
386
- ## [NOTE]
387
- ${e.notes||""}
388
- `}const{Text:ha}=Nr,{TextArea:k4}=Or,LJ=({selectedDate:e,selectedProjects:t=[]})=>{const{report:n,config:r}=ul(),[i,s]=l.useState(!1),[c,d]=l.useState(null),f=l.useRef(null),p=l.useRef(null),g=n.report,h=r.projects,y=l.useMemo(()=>g?.plan||[],[g?.plan]),S=l.useMemo(()=>g?.result||[],[g?.result]),b=r.config?.timeline||{hourHeight:60,maxHours:36,defaultStartHour:8,defaultEndHour:20,snapMinutes:15},$=b.hourHeight,C=b.maxHours,w=b.defaultStartHour,M=b.defaultEndHour,x=b.snapMinutes,R=l.useMemo(()=>{const de=[...y,...S];return AJ(de,{maxHours:C,defaultStartHour:w,defaultEndHour:M})},[y,S,C,w,M]),{startHour:T,endHour:N,totalHours:O}=R,z=O*$,[j,W]=l.useState(""),[F,Y]=l.useState(""),{dragState:U,dragOffset:L,isDraggingToResult:B,handleDragStart:_}=PJ({resultAreaRef:p,currentReport:g,updatePlan:n.updatePlan,updateResult:n.updateResult,startHour:T,totalHours:O,hourHeight:$,snapMinutes:x}),H=de=>r.getProjectColor(de),I=gn(),A=e.isSame(I,"day"),V=I.hour()*60+I.minute(),P=Array.from({length:O+1},(de,ye)=>T+ye),D=l.useMemo(()=>L4(y,T,O,$),[y,T,O,$]),q=l.useMemo(()=>L4(S,T,O,$),[S,T,O,$]),G=l.useMemo(()=>V4(y,T,O,$),[y,T,O,$]),K=l.useMemo(()=>V4(S,T,O,$),[S,T,O,$]),Z=l.useMemo(()=>t.length>0?D.filter(de=>t.includes(de.project)):D,[D,t]),J=l.useMemo(()=>t.length>0?q.filter(de=>t.includes(de.project)):q,[q,t]),ie=G,ne=K,oe=l.useRef(null);l.useEffect(()=>{const de=e.format("YYYY-MM-DD");if(oe.current===de)return;const ye=[...y,...S];if(ye.length===0)return;const Se=ye.reduce((Ae,Ye)=>{const[Ue,Xe]=Ye.time.split(":").map(Number),et=Ue*60+Xe;return et<Ae?et:Ae},1/0),Ee=Math.max(Se-30,T*60),Pe=(Ee-T*60)/60*$;requestAnimationFrame(()=>{f.current&&!i&&(f.current.scrollTop=Pe,oe.current=de,console.log(`[Timeline] Scrolled to ${Ee}min (${Math.floor(Ee/60)}:${String(Ee%60).padStart(2,"0")}), scrollTop=${Pe}px, firstItem=${Se}min, startHour=${T}`))})},[e,i,T,$,y,S]);const ue=(de,ye)=>{n.deleteScheduleItem(ye,de),$n.success(`${ye==="plan"?"計画":"実績"}を削除しました`)},le=l.useCallback((de,ye,Se)=>{n.updateScheduleItem(Se,de,{project:ye}),$n.success(`プロジェクトを ${ye} に変更しました`)},[n]),fe=de=>{n.addScheduleItem("result",{time:de.time,project:de.project,task:de.task,duration:de.duration}),$n.success(`「${de.task}」を実績にコピーしました`)},ge=l.useCallback(de=>{if(de.startsWith("project:")){const ye=de.split(":"),Se=ye[1],Ee=ye[2],Pe=ye[3];le(Se,Pe,Ee)}else if(de.startsWith("toResult:")){const[,ye]=de.split(":"),Se=g?.plan.find(Ee=>Ee.id===ye);Se&&fe(Se)}else if(de.startsWith("delete:")){const[,ye,Se]=de.split(":");ue(ye,Se)}},[g,le]),re=l.useMemo(()=>Z.reduce((de,ye)=>de+ye.duration,0),[Z]),ce=l.useMemo(()=>J.reduce((de,ye)=>de+ye.duration,0),[J]),he=()=>{!i&&g&&(W(H4(g.plan,"[PLAN]")),Y(H4(g.result,"[RESULT]"))),s(!i)},pe=()=>{const de=B4(j),ye=B4(F);n.updatePlan(de),n.updateResult(ye),$n.success("反映しました"),s(!1)},Ce=(de,ye)=>{const Se=ye?"result":"plan",Ee=c===`${Se}-${de.id}`,Pe=U?.itemId===de.id&&U?.type===Se,Ae=Pe&&B;return X.jsx(NJ,{item:de,type:Se,isHovered:Ee,isDragging:Pe,isDraggingToResultArea:Ae,dragOffset:L,getProjectColor:H,projects:h,onHover:d,onDragStart:_,onMenuAction:ge},de.id)};return X.jsx(xa,{title:X.jsxs(hn,{children:[X.jsx($d,{}),X.jsx("span",{children:"タイムライン"}),X.jsx(br,{children:e.format("MM/DD (ddd)")})]}),extra:X.jsx(hn,{children:i?X.jsxs(X.Fragment,{children:[X.jsx(Bt,{size:"small",icon:X.jsx(Wr,{}),onClick:()=>s(!1),children:"キャンセル"}),X.jsx(Bt,{type:"primary",size:"small",icon:X.jsx(il,{}),onClick:pe,children:"OK"})]}):X.jsx(Bt,{type:"primary",size:"small",icon:X.jsx(di,{}),onClick:he,children:"編集"})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:i?X.jsxs("div",{style:{display:"flex",flex:1,gap:12,overflow:"hidden"},children:[X.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[X.jsx(ha,{strong:!0,style:{marginBottom:4,color:"#1890ff"},children:"計画"}),X.jsx(k4,{value:j,onChange:de=>W(de.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}),X.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[X.jsx(ha,{strong:!0,style:{marginBottom:4,color:"#52c41a"},children:"実績"}),X.jsx(k4,{value:F,onChange:de=>Y(de.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]})]}):X.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[X.jsxs("div",{style:{display:"flex",flexShrink:0,paddingBottom:4,borderBottom:"1px solid #f0f0f0"},children:[X.jsx("div",{style:{width:40,flexShrink:0}}),X.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80},children:[X.jsx(A3,{style:{fontSize:12,color:"#1890ff"}}),X.jsx(ha,{style:{fontSize:11,color:"#1890ff"},children:"計画"}),X.jsx(ha,{strong:!0,style:{fontSize:12,color:"#1890ff"},children:D4(re)})]}),X.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80,marginLeft:8},children:[X.jsx(m1,{style:{fontSize:12,color:"#52c41a"}}),X.jsx(ha,{style:{fontSize:11,color:"#52c41a"},children:B?"ここにドロップでコピー":"実績"}),X.jsx(ha,{strong:!0,style:{fontSize:12,color:"#52c41a"},children:D4(ce)})]})]}),X.jsxs("div",{ref:f,style:{display:"flex",flex:1,overflow:"auto",minHeight:0},children:[X.jsx("div",{style:{width:40,flexShrink:0,position:"relative",height:z},children:P.map((de,ye)=>X.jsx("div",{style:{position:"absolute",top:ye*$,left:0,right:0,height:ye<P.length-1?$:0,borderTop:"1px solid #f0f0f0",paddingRight:4,textAlign:"right"},children:X.jsxs(ha,{type:"secondary",style:{fontSize:10},children:[de,":00"]})},de))}),X.jsxs("div",{style:{flex:1,position:"relative",minWidth:80,height:z,background:"#fafafa"},children:[P.map(de=>X.jsx("div",{style:{position:"absolute",top:(de-T)*$,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},de)),A&&V>=T*60&&V<=N*60&&X.jsx("div",{style:{position:"absolute",top:(V-T*60)/60*$,left:0,right:0,borderTop:"2px solid #ff4d4f",zIndex:10},children:X.jsx("div",{style:{position:"absolute",left:-4,top:-6,width:10,height:10,borderRadius:"50%",background:"#ff4d4f"}})}),ie.map(de=>{const ye=U?.itemId===de.id&&U?.isBreak;return X.jsx("div",{style:{position:"absolute",top:(de.startMinutes-T*60)/60*$+(ye?L:0),height:de.duration/60*$,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:ye?.5:.8,cursor:"grab",transition:ye?"none":"opacity 0.2s"},onMouseDown:Se=>_(Se,de.id,"plan",de.startMinutes,!0,de.duration),children:X.jsx(ha,{type:"secondary",style:{fontSize:10},children:"休憩"})},de.id)}),Z.map(de=>Ce(de,!1))]}),X.jsxs("div",{ref:p,style:{flex:1,position:"relative",minWidth:80,marginLeft:8,height:z,background:"#fafafa",transition:"all 0.2s",...B&&{boxShadow:"0 0 0 2px #52c41a"}},children:[P.map(de=>X.jsx("div",{style:{position:"absolute",top:(de-T)*$,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},de)),ne.map(de=>{const ye=U?.itemId===de.id&&U?.isBreak;return X.jsx("div",{style:{position:"absolute",top:(de.startMinutes-T*60)/60*$+(ye?L:0),height:de.duration/60*$,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:ye?.5:.8,cursor:"grab",transition:ye?"none":"opacity 0.2s"},onMouseDown:Se=>_(Se,de.id,"result",de.startMinutes,!0,de.duration),children:X.jsx(ha,{type:"secondary",style:{fontSize:10},children:"休憩"})},de.id)}),J.map(de=>Ce(de,!0)),X.jsx(IJ,{dragState:U,dragOffset:L,isDraggingToResult:B,planItems:y,getProjectColor:H,startHour:T,hourHeight:$})]})]})]})})},VJ=({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 X.jsx("span",{style:n,onClick:t,children:X.jsx(tG,{style:{fontSize:18,color:"#52c41a"}})});case"in_progress":return X.jsx("span",{style:n,onClick:t,children:X.jsx("span",{style:{...r,border:"2px solid #1890ff"},children:X.jsx(KU,{style:{fontSize:8,color:"#1890ff"}})})});case"on_hold":return X.jsx("span",{style:n,onClick:t,children:X.jsx("span",{style:{...r,border:"2px solid #faad14"},children:X.jsx(iX,{style:{fontSize:8,color:"#faad14"}})})});default:return X.jsx("span",{style:n,onClick:t,children:X.jsx(qU,{style:{fontSize:18,color:"#d9d9d9"}})})}},{Text:W4}=Nr,{TextArea:FJ}=Or,kJ=({todo:e,isHovered:t,isEditing:n,editText:r,editDeadline:i,editPriority:s,projects:c,onHover:d,onStatusChange:f,onSaveEdit:p,onCancelEdit:g,onEditTextChange:h,onEditDeadlineChange:y,onEditPriorityChange:S,onMenuAction:b})=>{const $=yN(e.deadline),C=HJ(e.deadline),w=R=>R==="high"?X.jsx(br,{color:"red",style:{margin:0,fontSize:10},children:"高"}):R==="medium"?X.jsx(br,{color:"orange",style:{margin:0,fontSize:10},children:"中"}):null,x={items:[{key:"edit",label:"編集",icon:X.jsx(di,{})},{key:"project",label:"プロジェクト変更",children:c.filter(R=>R.active).map(R=>({key:`project:${e.id}:${R.code}`,label:X.jsxs(hn,{children:[X.jsx(ui,{color:R.color}),R.name]})}))},{type:"divider"},{key:"delete",label:"削除",icon:X.jsx(ap,{}),danger:!0}],onClick:({key:R})=>b(R,e),onSelect:({key:R})=>b(R,e),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return n?X.jsx(bo.Item,{style:{padding:"8px 12px",borderRadius:6,marginBottom:6,border:"1px solid #1890ff",background:"#e6f7ff"},children:X.jsxs("div",{style:{width:"100%"},children:[X.jsx(FJ,{value:r,onChange:R=>h(R.target.value),autoSize:{minRows:2,maxRows:8},style:{marginBottom:8,fontSize:12},placeholder:`1行目: タスク名
389
- 2行目以降: 詳細説明(任意)`}),X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8},children:[X.jsxs(hn,{size:"small",children:[X.jsx(cl,{size:"small",placeholder:"期日",value:i?gn(i):null,onChange:R=>y(R?R.format("YYYY-MM-DD"):void 0),style:{width:120},format:"MM/DD"}),X.jsx(Br,{size:"small",placeholder:"優先度",value:s,onChange:R=>S(R),allowClear:!0,style:{width:80},options:[{value:"high",label:X.jsx(br,{color:"red",style:{margin:0},children:"高"})},{value:"medium",label:X.jsx(br,{color:"orange",style:{margin:0},children:"中"})},{value:"low",label:X.jsx(br,{color:"blue",style:{margin:0},children:"低"})}]})]}),X.jsxs(hn,{size:"small",children:[X.jsx(Bt,{size:"small",icon:X.jsx(Wr,{}),onClick:g,children:"キャンセル"}),X.jsx(Bt,{size:"small",type:"primary",icon:X.jsx(il,{}),onClick:p,children:"OK"})]})]})]})}):X.jsx(bo.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:X.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},children:[X.jsx(VJ,{status:e.status,onClick:()=>f(e.id)}),X.jsxs("div",{style:{flex:1,minWidth:0},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[X.jsx(W4,{delete:e.status==="completed",style:{fontWeight:500,fontSize:13},children:e.task}),w(e.priority),$&&e.status!=="completed"&&X.jsxs(br,{color:"error",style:{margin:0,fontSize:10},children:[X.jsx(j3,{})," 期限切れ"]})]}),e.description&&X.jsx("div",{style:{marginTop:4,paddingLeft:4},children:X.jsx(W4,{type:"secondary",style:{fontSize:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})}),e.deadline&&X.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:4},children:X.jsx(sr,{title:`期限: ${e.deadline}`,children:X.jsxs(br,{color:$?"error":C?"warning":"default",style:{margin:0,fontSize:10},children:[X.jsx($d,{style:{marginRight:2}}),gn(e.deadline).format("MM/DD")]})})})]}),X.jsx(hn,{size:4,style:{visibility:t?"visible":"hidden",flexShrink:0},children:X.jsx(h1,{menu:x,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:X.jsx(z3,{style:{fontSize:16,color:"#666",cursor:"pointer",padding:"0 4px"},onClick:R=>R.stopPropagation()})})})]})})},WJ=({filter:e,counts:t,onFilterChange:n})=>{const r=[{key:"all",icon:X.jsx(ZG,{}),label:"全て",count:t.all,color:"#666"},{key:"pending",icon:X.jsx($d,{}),label:"未着手",count:t.pending,color:"#999"},{key:"in_progress",icon:X.jsx(A3,{}),label:"進行中",count:t.in_progress,color:"#1890ff"},{key:"completed",icon:X.jsx(m1,{}),label:"完了",count:t.completed,color:"#52c41a"},{key:"on_hold",icon:X.jsx(rX,{}),label:"保留",count:t.on_hold,color:"#faad14"}];return X.jsx("div",{style:{display:"flex",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0},children:r.map(i=>X.jsxs("div",{onClick:()=>n(i.key),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"10px 4px",cursor:"pointer",background:e===i.key?"#fff":"transparent",borderBottom:e===i.key?`2px solid ${i.color}`:"2px solid transparent",transition:"all 0.2s"},children:[X.jsx("span",{style:{fontSize:14,color:e===i.key?i.color:"#999"},children:i.icon}),X.jsx("span",{style:{fontSize:11,color:e===i.key?i.color:"#999",fontWeight:e===i.key?600:400},children:i.label}),X.jsx(ui,{count:i.count,size:"small",style:{backgroundColor:e===i.key?i.color:"#d9d9d9",fontSize:10}})]},i.key))})},{Text:Wc}=Nr,{TextArea:q4}=Or,qJ=({selectedProjects:e=[]})=>{const{report:t,config:n}=ul(),[r,i]=l.useState("all"),[s,c]=l.useState(!1),[d,f]=l.useState(null),[p,g]=l.useState(null),[h,y]=l.useState(""),[S,b]=l.useState(void 0),[$,C]=l.useState(void 0),w=t.report,M=w?.todos||[],x=n.projects,[R,T]=l.useState(w?.notes||""),[N,O]=l.useState("");l.useEffect(()=>{w&&(T(w.notes||""),O(F4(w.todos,w.notes||"")))},[w]),l.useEffect(()=>{w&&R!==w.notes&&t.updateNotes(R)},[R]);const z=G=>n.getProjectColor(G),j=G=>n.getProjectName(G),W=e.length>0?M.filter(G=>e.includes(G.project)):M,F=W.filter(G=>!(r!=="all"&&G.status!==r)),Y=F.filter(G=>G.deadline&&yN(G.deadline)&&G.status!=="completed"),U=F.reduce((G,K)=>{const Z=K.project;return G[Z]||(G[Z]=[]),G[Z].push(K),G},{}),L=G=>{t.toggleTodoStatus(G)},B=(G,K)=>{t.updateTodo(G,{project:K}),$n.success(`プロジェクトを ${K} に変更しました`)},_=G=>{t.deleteTodo(G),$n.success("TODOを削除しました")},H=G=>{g(G.id);const K=G.description?`${G.task}
390
- ${G.description}`:G.task;y(K),b(G.deadline),C(G.priority)},I=()=>{if(p){const G=h.split(`
391
- `),K=G[0].trim(),Z=G.slice(1).join(`
392
- `).trim()||void 0;t.updateTodo(p,{task:K,description:Z,deadline:S,priority:$}),$n.success("更新しました"),g(null),y(""),b(void 0),C(void 0)}},A=()=>{g(null),y(""),b(void 0),C(void 0)},V=l.useCallback((G,K)=>{if(G==="edit")H(K);else if(G.startsWith("project:")){const Z=G.split(":"),J=Z[1],ie=Z[2];B(J,ie)}else G==="delete"&&_(K.id)},[B]),P={all:W.length,pending:W.filter(G=>G.status==="pending").length,in_progress:W.filter(G=>G.status==="in_progress").length,completed:W.filter(G=>G.status==="completed").length,on_hold:W.filter(G=>G.status==="on_hold").length},D=()=>{!s&&w&&O(F4(w.todos,w.notes||"")),c(!s)},q=()=>{const{todos:G,notes:K}=_J(N);t.updateTodos(G),t.updateNotes(K),T(K),$n.success("反映しました"),c(!1)};return X.jsx(xa,{title:X.jsxs(hn,{children:[X.jsx(I3,{}),X.jsx("span",{children:"TODO"}),X.jsx(ui,{count:P.pending+P.in_progress,style:{backgroundColor:"#1890ff"}}),Y.length>0&&X.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:[X.jsx(j3,{}),X.jsxs("span",{children:[Y.length,"件期限切れ"]})]})]}),extra:s?X.jsxs(hn,{children:[X.jsx(Bt,{size:"small",icon:X.jsx(Wr,{}),onClick:()=>c(!1),children:"キャンセル"}),X.jsx(Bt,{type:"primary",size:"small",icon:X.jsx(il,{}),onClick:q,children:"OK"})]}):X.jsx(Bt,{type:"primary",size:"small",icon:X.jsx(di,{}),onClick:D,children:"編集"}),style:{height:"100%"},styles:{body:{padding:0,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:s?X.jsxs("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column"},children:[X.jsx(Wc,{type:"secondary",style:{marginBottom:8,fontSize:11},children:"TODO: - [ ] タスク名 @期日 !優先度 / NOTE: ## [NOTE] 以降に自由記述"}),X.jsx(q4,{value:N,onChange:G=>O(G.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}):X.jsxs(X.Fragment,{children:[X.jsx(WJ,{filter:r,counts:P,onFilterChange:i}),X.jsxs("div",{style:{flex:1,overflow:"auto",padding:"12px 12px 12px 12px"},children:[Object.entries(U).map(([G,K])=>X.jsxs("div",{style:{marginBottom:16},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 10px",background:"#f5f5f5",borderRadius:6},children:[X.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:z(G),flexShrink:0}}),X.jsxs(Wc,{type:"secondary",style:{fontSize:10},children:["[",G,"]"]}),X.jsx(Wc,{strong:!0,style:{fontSize:12},children:j(G)}),X.jsxs(Wc,{type:"secondary",style:{fontSize:11},children:["(",K.length,")"]})]}),X.jsx(bo,{dataSource:K,renderItem:Z=>X.jsx(kJ,{todo:Z,isHovered:d===Z.id,isEditing:p===Z.id,editText:h,editDeadline:S,editPriority:$,projects:x,getProjectColor:z,onHover:f,onStatusChange:L,onStartEdit:H,onSaveEdit:I,onCancelEdit:A,onEditTextChange:y,onEditDeadlineChange:b,onEditPriorityChange:C,onMenuAction:V},Z.id),size:"small",split:!1})]},G)),X.jsx(ni,{style:{margin:"16px 0 12px 0"}}),X.jsxs("div",{style:{marginBottom:12},children:[X.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:8},children:X.jsxs(hn,{children:[X.jsx(ip,{style:{color:"#666"}}),X.jsx(Wc,{strong:!0,style:{fontSize:12},children:"NOTE"})]})}),X.jsx(q4,{value:R,onChange:G=>T(G.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"メモを入力...",style:{fontSize:12}})]})]})]})})},{Text:um}=Nr,YJ=({selectedProjects:e=[],onToggleProject:t})=>{const{config:n,report:r}=ul(),i=n.projects,s=l.useMemo(()=>{const p=r.report?.todos||[];return i.filter(g=>g.active).map(g=>{const y=p.filter(S=>S.project===g.code).filter(S=>S.status!=="completed").length;return{...g,pendingTodos:y}})},[i,r.report?.todos]),c=l.useMemo(()=>s.reduce((p,g)=>(p[g.category]||(p[g.category]=[]),p[g.category].push(g),p),{}),[s]),d={internal:"社内業務",client:"クライアント",personal:"個人"},f=p=>{t&&t(p)};return X.jsx(xa,{title:X.jsxs(hn,{children:[X.jsx(dX,{}),X.jsx("span",{children:"プロジェクト"})]}),extra:X.jsx(Bt,{type:"text",size:"small",icon:X.jsx(wX,{})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Object.entries(c).map(([p,g])=>X.jsxs("div",{style:{marginBottom:12},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6,padding:"4px 8px",background:"#f5f5f5",borderRadius:4},children:[X.jsx(um,{strong:!0,style:{fontSize:11},children:d[p]||p}),X.jsxs(um,{type:"secondary",style:{fontSize:10,marginLeft:6},children:["(",g.length,")"]})]}),X.jsx(bo,{dataSource:g,renderItem:h=>{const y=e.includes(h.code);return X.jsx(bo.Item,{onClick:()=>f(h.code),style:{padding:"8px 10px",marginBottom:4,borderRadius:6,border:y?`2px solid ${h.color}`:"1px solid #f0f0f0",cursor:"pointer",background:y?`${h.color}10`:"#fff",transition:"all 0.2s"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:h.color,flexShrink:0}}),X.jsxs("div",{style:{flex:1,minWidth:0},children:[X.jsxs(um,{type:"secondary",style:{fontSize:10,marginRight:4},children:["[",h.code,"]"]}),X.jsx(um,{strong:!0,style:{fontSize:12},children:h.name})]}),h.pendingTodos>0&&X.jsx(ui,{count:h.pendingTodos,size:"small",style:{backgroundColor:"#999"}})]})})},size:"small",split:!1})]},p))})},{TextArea:UJ}=Or,{Text:rs}=Nr,GJ=({onApplyRoutine:e})=>{const{config:t}=ul(),{loadConfig:n}=t,[r,i]=l.useState(new Set),[s,c]=l.useState(!1),[d,f]=l.useState(""),[p,g]=l.useState(!1),[h,y]=l.useState(!1),S=t.routines?.weekly||{},b=t.routines?.adhoc||[],$=t.routines?.monthly||{},C=t.routines?.quarterly||[],w=t.routines?.yearly||[],M=l.useCallback(async()=>{y(!0);try{const I=await fp.getRoutinesMarkdown();f(I.content),c(!0)}catch(I){console.error("Failed to load routines markdown:",I),$n.error("ルーチン設定の読み込みに失敗しました")}finally{y(!1)}},[]),x=l.useCallback(async()=>{g(!0);try{await fp.saveRoutinesMarkdown(d),$n.success("ルーチン設定を保存しました"),c(!1),await n()}catch(I){console.error("Failed to save routines markdown:",I),$n.error("ルーチン設定の保存に失敗しました")}finally{g(!1)}},[d,n]),R=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=gn().day(),z=O===0?"sunday":N[O-1].key,j=l.useMemo(()=>{const I=[];return $.schedule&&$.schedule.forEach(A=>{I.push({time:A.time,project:A.project,task:A.task,category:"plan"})}),$.start_of_month&&$.start_of_month.forEach(A=>{I.push({project:A.project,task:`[月初] ${A.task}`,category:A.category||"todo"})}),$.end_of_month&&$.end_of_month.forEach(A=>{I.push({project:A.project,task:`[月末] ${A.task}`,category:A.category||"todo"})}),I},[$]),W=l.useMemo(()=>{const I=[];return C.forEach(A=>{if(A.schedule&&A.schedule.forEach(V=>{I.push({time:V.time,project:V.project,task:V.task,category:"plan"})}),A.months.length>0){const V=A.months.join(",")+"月";A.tasks.forEach(P=>{I.push({project:P.project,task:`[${V}] ${P.task}`,category:P.category||"todo"})})}}),I},[C]),F=l.useMemo(()=>w.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"}),[w]),Y=(I,A)=>{const V=`${I}:${A}`;i(P=>{const D=new Set(P);return D.has(V)?D.delete(V):D.add(V),D})},U=(I,A)=>{const V=A.map((D,q)=>`${I}:${q}`),P=V.every(D=>r.has(D));i(D=>{const q=new Set(D);return P?V.forEach(G=>q.delete(G)):V.forEach(G=>q.add(G)),q})},L=()=>{if(r.size===0){$n.info("追加するルーチンを選択してください");return}const I=[];if(r.forEach(A=>{const[V,P]=A.split(":"),D=parseInt(P,10);let q;if(V==="adhoc"?q=b[D]:V==="monthly"?q=j[D]:V==="quarterly"?q=W[D]:V==="yearly"?q=F[D]:q=S[V]?.[D],q){const G=q.time&&q.time!=="",K=q.category||(G?"plan":"todo");I.push({time:q.time,project:q.project,task:q.task,duration:q.duration,category:K})}}),I.length>0&&e){e(I),i(new Set);const A=I.filter(D=>D.category==="plan").length,V=I.filter(D=>D.category==="todo").length,P=[];A>0&&P.push(`PLAN: ${A}件`),V>0&&P.push(`TODO: ${V}件`),$n.success(`ルーチンを追加しました(${P.join("、")})`)}},B=(I,A)=>{const V=A.map((q,G)=>`${I}:${G}`),P=V.length>0&&V.every(q=>r.has(q)),D=V.some(q=>r.has(q));return X.jsxs("div",{children:[A.length>0&&X.jsx("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:X.jsx(Rs,{checked:P,indeterminate:D&&!P,onChange:()=>U(I,A),children:X.jsx(rs,{type:"secondary",style:{fontSize:11},children:"すべて選択"})})}),A.length===0?X.jsx("div",{style:{textAlign:"center",padding:16},children:X.jsx(rs,{type:"secondary",children:"ルーチンが登録されていません"})}):X.jsx(bo,{dataSource:A,renderItem:(q,G)=>{const K=`${I}:${G}`,Z=r.has(K),J=q.time&&q.time!=="",ie=q.category==="todo"||!J;return X.jsx(bo.Item,{style:{padding:"6px 8px",marginBottom:4,borderRadius:4,borderLeft:`3px solid ${T(q.project)}`,background:Z?"#e6f7ff":"#fafafa",cursor:"pointer",transition:"background 0.2s"},onClick:()=>Y(I,String(G)),children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx(Rs,{checked:Z,onClick:ne=>ne.stopPropagation(),onChange:()=>Y(I,String(G))}),ie?X.jsxs(rs,{style:{fontSize:11,color:"#52c41a",minWidth:40},children:[X.jsx(I3,{style:{marginRight:2}}),"TODO"]}):X.jsxs(rs,{style:{fontSize:11,color:"#1890ff",minWidth:40,fontWeight:500},children:[X.jsx($d,{style:{marginRight:2}}),q.time]}),X.jsx(br,{color:T(q.project),style:{margin:0,fontSize:10},children:q.project}),X.jsx(rs,{ellipsis:!0,style:{flex:1,fontSize:12},children:q.task}),q.duration&&q.duration>0&&X.jsx(rs,{type:"secondary",style:{fontSize:10},children:_(q.duration)})]})})},size:"small",split:!1})]})},_=I=>{if(!I||isNaN(I))return"";const A=Math.floor(I/60),V=I%60;return A===0?`${V}分`:V===0?`${A}時間`:`${A}時間${V}分`},H=l.useMemo(()=>N.map(I=>{let A;I.key==="adhoc"?A=b:I.key==="monthly"?A=j:I.key==="quarterly"?A=W:I.key==="yearly"?A=F:A=S[I.key]||[];const V=I.key===z,P=A.filter((D,q)=>r.has(`${I.key}:${q}`)).length;return{key:I.key,label:X.jsxs(hn,{size:4,children:[X.jsx("span",{children:I.label}),V&&X.jsx(ui,{status:"processing"}),P>0&&X.jsx(ui,{count:P,size:"small",style:{backgroundColor:"#1890ff"}})]}),children:B(I.key,A)}}),[S,b,j,W,F,r,z]);return s?X.jsx(xa,{title:X.jsxs(hn,{children:[X.jsx(di,{}),X.jsx("span",{children:"ルーチン編集"})]}),extra:X.jsxs(hn,{children:[X.jsx(Bt,{size:"small",icon:X.jsx(Wr,{}),onClick:R,disabled:p,children:"キャンセル"}),X.jsx(Bt,{type:"primary",size:"small",icon:X.jsx(p1,{}),onClick:x,loading:p,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",display:"flex",flexDirection:"column"}},children:X.jsx(UJ,{value:d,onChange:I=>f(I.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12,resize:"none"},placeholder:`## [ROUTINES]
393
-
394
- ### [Mon]
395
- * 08:00 [P99] タスク確認
396
-
397
- ### [month]
398
- - [ ] [P99] 月末タスク`})}):X.jsx(xa,{title:X.jsxs(hn,{children:[X.jsx(D3,{}),X.jsx("span",{children:"ルーチン"})]}),extra:X.jsxs(hn,{children:[X.jsxs(Bt,{type:"primary",size:"small",icon:X.jsx(rp,{}),disabled:r.size===0,onClick:L,children:["追加 ",r.size>0&&`(${r.size})`]}),X.jsx(Bt,{size:"small",icon:X.jsx(di,{}),onClick:M,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:X.jsx(f1,{defaultActiveKey:z,size:"small",items:H})})},{Text:lb}=Nr,{TextArea:Y4}=Or,XJ=()=>{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},KJ=XJ(),QJ=({selectedDate:e})=>{const{report:t,config:n}=ul(),[r,i]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[p,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 S=n.projects,b=n.routines?.weekly,$=()=>BJ({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:p,notes:h,author:t.report?.author||"名前"},e.format("YYYY-MM-DD"),t.report?.author||"名前"),[C,w]=l.useState($()),M=S.filter(I=>I.active).map(I=>({value:I.code,label:X.jsxs(hn,{children:[X.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),x=()=>{if(!b)return[];const A=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[A]||[]},R=I=>{const A={id:`${I}-${Date.now()}`,time:gn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,A]):f([...d,A])},T=(I,A)=>{I==="plan"?c(s.filter(V=>V.id!==A)):f(d.filter(V=>V.id!==A))},N=(I,A,V,P)=>{const D=q=>q.map(G=>G.id===A?{...G,[V]:P}:G);I==="plan"?c(D(s)):f(D(d))},O=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...p,I])},z=(I,A,V)=>{g(p.map(P=>P.id===I?{...P,[A]:V}:P))},j=I=>{g(p.filter(A=>A.id!==I))},W=()=>{$n.success("保存しました")},F=()=>{const I=x(),A=I.map((V,P)=>({id:`plan-routine-${Date.now()}-${P}`,time:V.time||"09:00",project:V.project,task:V.task,duration:V.duration}));c([...s,...A]),$n.success(`${I.length}件のルーチンを計画に追加しました`)},Y=()=>{const A=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((V,P)=>({id:`plan-gcal-${Date.now()}-${P}`,time:V.time,project:V.project,task:V.task}));c([...s,...A]),$n.success("Googleカレンダーから計画を取り込みました")},U=()=>{const I=s.map((A,V)=>({...A,id:`result-copy-${Date.now()}-${V}`}));f(I),$n.success("計画を実績にコピーしました")},L=(I,A)=>X.jsxs("div",{style:{marginBottom:16},children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[X.jsx(lb,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),X.jsxs(hn,{children:[I==="plan"&&X.jsxs(X.Fragment,{children:[X.jsx(sr,{title:"ルーチンから取り込み",children:X.jsx(Bt,{size:"small",icon:X.jsx(D3,{}),onClick:F,children:"ルーチン"})}),X.jsx(sr,{title:"Googleカレンダーから取り込み",children:X.jsx(Bt,{size:"small",icon:X.jsx(YG,{}),onClick:Y,children:"GCal"})})]}),I==="result"&&X.jsx(sr,{title:"計画を実績にコピー",children:X.jsx(Bt,{size:"small",type:"primary",ghost:!0,icon:X.jsx(P3,{}),onClick:U,children:"計画をコピー"})}),X.jsx(Bt,{size:"small",type:"primary",icon:X.jsx(rp,{}),onClick:()=>R(I),children:"追加"})]})]}),I==="result"&&X.jsx(sT,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),X.jsx(bo,{dataSource:A,renderItem:V=>X.jsx(bo.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:X.jsxs("div",{style:{width:"100%"},children:[X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx(CG,{style:{color:"#999",cursor:"grab"}}),X.jsx(Br,{value:V.time,options:KJ,size:"small",style:{width:90},showSearch:!0,filterOption:(P,D)=>(D?.value??"").toLowerCase().includes(P.toLowerCase()),onChange:P=>N(I,V.id,"time",P),placeholder:"時刻"}),X.jsx(Br,{value:V.project,options:M,size:"small",style:{width:150},onChange:P=>N(I,V.id,"project",P)}),X.jsx(Or,{value:V.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:P=>N(I,V.id,"task",P.target.value)}),X.jsx(iS,{title:"削除しますか?",onConfirm:()=>T(I,V.id),children:X.jsx(Bt,{type:"text",size:"small",danger:!0,icon:X.jsx(ap,{})})})]}),X.jsx(Or.TextArea,{value:V.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:P=>N(I,V.id,"description",P.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),B=()=>X.jsxs("div",{style:{marginBottom:16},children:[X.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[X.jsx(lb,{strong:!0,style:{fontSize:14},children:"[TODO]"}),X.jsx(Bt,{size:"small",type:"primary",icon:X.jsx(rp,{}),onClick:O,children:"追加"})]}),X.jsx(bo,{dataSource:p,renderItem:I=>X.jsx(bo.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:X.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[X.jsx(Br,{value:I.status,size:"small",style:{width:110},onChange:A=>z(I.id,"status",A),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),X.jsx(Br,{value:I.project,options:M,size:"small",style:{width:150},onChange:A=>z(I.id,"project",A)}),X.jsx(Or,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>z(I.id,"task",A.target.value)}),X.jsx(Or,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:A=>z(I.id,"deadline",A.target.value)}),X.jsx(iS,{title:"削除しますか?",onConfirm:()=>j(I.id),children:X.jsx(Bt,{type:"text",size:"small",danger:!0,icon:X.jsx(ap,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>X.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[L("plan",s),X.jsx(ni,{style:{margin:"16px 0"}}),L("result",d),X.jsx(ni,{style:{margin:"16px 0"}}),B(),X.jsx(ni,{style:{margin:"16px 0"}}),X.jsxs("div",{children:[X.jsx(lb,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),X.jsx(Y4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),H=()=>X.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:X.jsx("div",{style:{flex:1,overflow:"hidden"},children:X.jsx(Y4,{value:C,onChange:I=>w(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return X.jsx(xa,{title:X.jsxs(hn,{children:[X.jsx(di,{}),X.jsx("span",{children:"日報編集"}),X.jsx(br,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:X.jsxs(hn,{children:[X.jsx(FU,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:X.jsx(di,{})},{label:"テキスト",value:"text",icon:X.jsx(ip,{})}],value:r,onChange:I=>{I==="text"&&w($()),i(I)}}),X.jsx(ni,{type:"vertical"}),X.jsx(sr,{title:"元に戻す (Ctrl+Z)",children:X.jsx(Bt,{type:"text",size:"small",icon:X.jsx(NX,{})})}),X.jsx(sr,{title:"やり直し (Ctrl+Shift+Z)",children:X.jsx(Bt,{type:"text",size:"small",icon:X.jsx(pX,{})})}),X.jsx(ni,{type:"vertical"}),X.jsx(Bt,{type:"primary",icon:X.jsx(p1,{}),onClick:W,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():H()})};function ZJ(e){const[t,n]=l.useState(e||gn().format("YYYY-MM-DD")),[r,i]=l.useState(null),[s,c]=l.useState(null),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,y]=l.useState(null),[S,b]=l.useState(!1),$=l.useCallback(async H=>{f(!0),y(null),n(H);try{const I=await as.get(H);if(I)c(I.stats),i(dm(H,I.content));else{const A=bN(H),V=gn(H).subtract(1,"day").format("YYYY-MM-DD");try{const P=await as.get(V);if(P){const q=dm(V,P.content).todos.filter(G=>G.status!=="completed");A.todos=q.map((G,K)=>({...G,id:`carryover-${Date.now()}-${K}`}))}}catch{}i(A),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),C=l.useCallback(async H=>{if(!r)return!1;g(!0),y(null);try{const I=U4(r),A=await as.save(t,{content:I,git:H?.git,slack:H?.slack});if(A.saved){c(A.stats),b(!1);const V=await as.get(t);return V&&(i(dm(t,V.content)),c(V.stats)),!0}return!1}catch(I){return y(I instanceof Error?I.message:"保存に失敗しました"),!1}finally{g(!1)}},[r,t]),w=l.useCallback(async()=>{try{const H=await as.delete(t);return H&&(i(null),c(null),b(!1)),H}catch(H){return y(H instanceof Error?H.message:"削除に失敗しました"),!1}},[t]),M=l.useCallback(H=>{i(I=>I?{...I,plan:H}:null),b(!0)},[]),x=l.useCallback(H=>{i(I=>I?{...I,result:H}:null),b(!0)},[]),R=l.useCallback(H=>{i(I=>I?{...I,todos:H}:null),b(!0)},[]),T=l.useCallback(H=>{i(I=>I?{...I,notes:H}:null),b(!0)},[]),N=l.useCallback(H=>{const I=dm(t,H);i(I),b(!0)},[t]),O=l.useCallback(H=>{i(I=>{if(!I)return null;const A={...H,id:`t${Date.now()}`};return{...I,todos:[...I.todos,A]}}),b(!0)},[]),z=l.useCallback((H,I)=>{i(A=>A?{...A,todos:A.todos.map(V=>V.id===H?{...V,...I}:V)}:null),b(!0)},[]),j=l.useCallback(H=>{i(I=>I?{...I,todos:I.todos.filter(A=>A.id!==H)}:null),b(!0)},[]),W=l.useCallback(H=>{i(I=>I?{...I,todos:I.todos.map(A=>A.id!==H?A:{...A,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[A.status]||"pending"})}:null),b(!0)},[]),F=l.useCallback((H,I)=>{i(A=>{if(!A)return null;const V={...I,id:`${H[0]}${Date.now()}`},P=[...A[H],V].sort((D,q)=>D.time.localeCompare(q.time));return{...A,[H]:P}}),b(!0)},[]),Y=l.useCallback((H,I,A)=>{i(V=>{if(!V)return null;const P=V[H].map(D=>D.id===I?{...D,...A}:D);return P.sort((D,q)=>D.time.localeCompare(q.time)),{...V,[H]:P}}),b(!0)},[]),U=l.useCallback((H,I)=>{i(A=>A?{...A,[H]:A[H].filter(V=>V.id!==I)}:null),b(!0)},[]),L=l.useCallback(H=>{i(I=>{if(!I)return null;const A=H.map((P,D)=>({...P,id:`p${Date.now()}-${D}`})),V=[...I.plan,...A].sort((P,D)=>P.time.localeCompare(D.time));return{...I,plan:V}}),b(!0)},[]),B=l.useCallback(()=>{i(H=>{if(!H)return null;const I=H.plan.map((A,V)=>({...A,id:`r${Date.now()}-${V}`}));return{...H,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&$(e)},[e,$]);const _=l.useMemo(()=>r?U4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:p,error:h,isDirty:S,loadReport:$,saveReport:C,deleteReport:w,updatePlan:M,updateResult:x,updateTodos:R,updateNotes:T,updateMarkdown:N,addTodo:O,updateTodo:z,deleteTodo:j,toggleTodoStatus:W,addScheduleItem:F,updateScheduleItem:Y,deleteScheduleItem:U,applyRoutine:L,copyPlanToResult:B}}function bN(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function dm(e,t){const n=bN(e),r=t.split(`
399
- `);let i="",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 p=r[f];if(p.match(/^##\s+\[PLAN\]/i)){i="plan";continue}if(p.match(/^##\s+\[RESULT\]/i)){i="result";continue}if(p.match(/^##\s+\[TODO\]/i)){i="todo";continue}if(p.match(/^##\s+\[NOTE\]/i)){i="note";continue}if(i==="todo"&&p.match(/^###\s+(.+)$/)){const g=p.match(/^###\s+(.+)$/);g&&(s=g[1].trim());continue}if((i==="plan"||i==="result")&&p.startsWith("*")){const g=p.match(/^\*\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s+(.+)$/);if(g){const y={id:`${i[0]}${f}`,time:g[1],project:g[2],task:g[3]};i==="plan"?n.plan.push(y):n.result.push(y);continue}const h=p.match(/^\*\s+(\d{2}:\d{2})\s*$/);if(h){const y={id:`break${i[0]}${f}`,time:h[1],project:"",task:""};i==="plan"?n.plan.push(y):n.result.push(y)}}if(i==="todo"&&p.startsWith("-")){const g=p.match(/^-\s+\[([xX\s*\->])\]\s+(.+)$/);if(g){const h=g[1];let y=g[2],S=s,b,$;const C=y.match(/^\[([^\]]+)\]\s*/);C&&(S=C[1],y=y.substring(C[0].length));const w=y.match(/^(!!!|!!|!)\s*/);if(w){const R=w[1];$=R==="!!!"?"high":R==="!!"?"medium":"low",y=y.substring(w[0].length)}const M=y.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(M)b=M[1],y=y.substring(0,y.length-M[0].length);else{const R=y.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);R&&(b=R[1],y=y.substring(R[0].length))}b&&b.length===5&&(b=`${new Date().getFullYear()}-${b}`);const x={id:`t${f}`,status:JJ(h),project:S,task:y.trim(),deadline:b,priority:$};n.todos.push(x);continue}}if(i==="todo"&&p.match(/^\s{2,}/)&&n.todos.length>0){const g=n.todos[n.todos.length-1],h=p.trim();g.description?g.description+=`
400
- `+h:g.description=h;continue}i==="note"&&!p.startsWith("##")&&c.push(p)}return n.notes=c.join(`
401
- `).trim(),n}function U4(e){const t=[];return t.push(`# [日報] ${e.author||"名前"} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...fS(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...fS(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...hN(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
402
- `)}function JJ(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function eee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[i,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const b=await fp.get();t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const $=await fp.update(b);return t($),!0}catch($){return s($ instanceof Error?$.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(b=>e?.projects.find($=>$.code===b),[e]),p=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]),S=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:i,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:p,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:S}}function tee(e,t){const n=gn(),[r,i]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[p,g]=l.useState([]),[h,y]=l.useState(!1),[S,b]=l.useState(null),$=l.useCallback(async(O,z)=>{y(!0),b(null);try{const j=await z4.get(O,z);f(j),i(O),c(z)}catch(j){b(j instanceof Error?j.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),C=l.useCallback(async()=>{try{const O=await z4.getAvailableMonths();g(O)}catch(O){console.error("Failed to load available months:",O)}},[]),w=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).subtract(1,"month");$(O.year(),O.month()+1)},[r,s,$]),M=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).add(1,"month");$(O.year(),O.month()+1)},[r,s,$]),x=l.useCallback((O,z)=>{$(O,z)},[$]),R=l.useCallback(O=>d?.days.find(z=>z.date===O),[d]),T=l.useCallback(O=>R(O)?.hasReport||!1,[R]),N=l.useCallback(O=>{const z=R(O);return{plan:z?.planHours||0,result:z?.resultHours||0}},[R]);return l.useEffect(()=>{$(r,s),C()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:S,year:r,month:s,availableYearMonths:p,loadCalendar:$,loadAvailableMonths:C,goToPrevMonth:w,goToNextMonth:M,goToMonth:x,getDayStats:R,hasReport:T,getWorkHours:N}}function nee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),i=l.useCallback(p=>e.has(p),[e]),s=l.useCallback((p,g,h,y)=>{if(h===y){t(S=>{const b=new Map(S);return b.delete(p),b});return}t(S=>{const b=new Map(S);return b.set(p,{date:p,report:g,originalMarkdown:h,currentMarkdown:y}),b})},[]),c=l.useCallback(p=>{t(g=>{const h=new Map(g);return h.delete(p),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(p=>e.get(p),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:i,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}gn.locale("ja");const{Content:ree}=Ra,oee=()=>{const[e,t]=l.useState(gn()),[n,r]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState([]),f=ZJ(e.format("YYYY-MM-DD")),p=eee(),g=tee(e.year(),e.month()+1),h=nee(),y=l.useRef(h);y.current=h;const S=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const L=e.format("YYYY-MM-DD");S.current!==L&&(b.current=!0,S.current=L)},[e]),l.useEffect(()=>{if(b.current){b.current=!1;return}const L=e.format("YYYY-MM-DD");f.isDirty&&f.report&&y.current.setUnsavedReport(L,f.report,"",f.markdownContent)},[f.isDirty,f.report,f.markdownContent,e]);const[$,C]=l.useState(null),w=l.useRef(null),M=l.useRef(0),x=l.useRef(0),R=l.useCallback(async L=>{if(L){const B=L.format("YYYY-MM-DD");t(L),(L.month()!==e.month()||L.year()!==e.year())&&g.loadCalendar(L.year(),L.month()+1);const _=y.current.getUnsavedReport(B);await f.loadReport(B),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),T=l.useCallback(async L=>{const B=gn(L);t(B);const _=y.current.getUnsavedReport(L);await f.loadReport(L),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(L=>{d(B=>B.includes(L)?B.filter(_=>_!==L):[...B,L])},[]),O=l.useCallback(()=>{d([])},[]),z=c.map(L=>p.getProject(L)).filter(L=>L!==void 0),j=l.useCallback(async L=>{await f.saveReport(L)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),$n.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):$n.error("日報の保存に失敗しました")},[f,g,h,e]),W=l.useCallback(async(L,B)=>{let _=0,H=0;for(const I of L)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(B)?(_++,h.clearUnsavedReport(I)):H++;else{const A=h.getUnsavedReport(I);A&&((await as.save(I,{content:A.currentMarkdown,git:B?.git,slack:B?.slack})).saved?(_++,h.clearUnsavedReport(I)):H++)}}catch{H++}_>0&&($n.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),H>0&&$n.error(`${H}件の日報の保存に失敗しました`)},[f,e,h,g]),F=l.useCallback(L=>{const B=L.filter(H=>H.category==="plan"||!H.category&&H.time&&H.time!==""),_=L.filter(H=>H.category==="todo"||!H.category&&(!H.time||H.time===""));if(B.length>0){const H=B.map((I,A)=>({id:`routine-${Date.now()}-${A}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(H)}_.length>0&&_.forEach(H=>{f.addTodo({project:H.project,task:H.task,status:"pending"})}),s(!1)},[f]),Y=l.useCallback(L=>{L.preventDefault();const B=w.current?.firstElementChild;if(!B||!w.current)return;M.current=L.clientX,x.current=B.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!w.current)return;const A=I.clientX-M.current,V=w.current.getBoundingClientRect().width,P=296,D=200,q=V-P-D-20;let G=x.current+A;G=Math.max(D,Math.min(q,G)),C(G)},H=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",H)},[]),U={selectedDate:e,setSelectedDate:R,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:f,config:p,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:j,saveMultipleReports:W};return X.jsx(pN.Provider,{value:U,children:X.jsx(Xo,{theme:{algorithm:YZ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:X.jsxs(Ra,{style:{height:"100vh",overflow:"hidden"},children:[X.jsx(TJ,{selectedDate:e,onDateChange:R,onImportClick:()=>s(!0),selectedProjects:z,onRemoveProject:N,onClearProjectFilter:O}),X.jsx(ree,{style:{padding:16,background:"#f0f2f5",overflow:"hidden",flex:1,display:"flex",flexDirection:"column"},children:X.jsxs("div",{ref:w,style:{display:"flex",flex:1,minHeight:0},children:[X.jsx("div",{style:{width:$??void 0,flex:$?void 0:1,minWidth:200,minHeight:0,overflow:"hidden",marginRight:4},children:X.jsx(LJ,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),X.jsx("div",{onMouseDown:Y,style:{width:8,cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,zIndex:10},children:X.jsx("div",{style:{width:3,height:32,background:"#d9d9d9",borderRadius:2,transition:"background 0.2s"},onMouseEnter:L=>L.currentTarget.style.background="#1890ff",onMouseLeave:L=>L.currentTarget.style.background="#d9d9d9"})}),X.jsx("div",{style:{flex:1,minWidth:200,minHeight:0,overflow:"hidden",marginLeft:4,marginRight:16},children:X.jsx(qJ,{selectedDate:e,selectedProjects:c})}),X.jsxs("div",{style:{width:280,flexShrink:0,display:"flex",flexDirection:"column",gap:16,minHeight:0},children:[X.jsx("div",{style:{flexShrink:0},children:X.jsx(OJ,{selectedDate:e,onDateSelect:T,selectedProjects:c})}),X.jsx("div",{style:{flex:1,minHeight:0,overflow:"hidden"},children:X.jsx(YJ,{selectedProjects:c,onToggleProject:N})})]})]})}),X.jsx($o,{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:X.jsx(QJ,{selectedDate:e,onClose:()=>r(!1)})}),X.jsx(Q3,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:i,children:X.jsx(GJ,{onApplyRoutine:F})})]})})})},{Footer:see}=Ra,{Text:cee}=Nr;function aee(){return X.jsx(oee,{})}X4.createRoot(document.getElementById("root")).render(X.jsx(l.StrictMode,{children:X.jsx(aee,{})}));