mdjournal 1.0.12 → 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.
- package/dist/client/assets/index-CRsyTFc2.js +402 -0
- package/dist/client/dist/assets/index-CRsyTFc2.js +402 -0
- package/dist/client/dist/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-Cw-lv6Zx.js +0 -402
- package/dist/client/dist/assets/index-Cw-lv6Zx.js +0 -402
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
function wP(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 Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ey={exports:{}},Ic={};var aw;function EP(){if(aw)return Ic;aw=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 Ic.Fragment=t,Ic.jsx=n,Ic.jsxs=n,Ic}var iw;function MP(){return iw||(iw=1,ey.exports=EP()),ey.exports}var Y=MP(),ty={exports:{}},Tt={};var lw;function RP(){if(lw)return Tt;lw=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 C(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,S={};function w(A,j,q){this.props=A,this.context=j,this.refs=S,this.updater=q||b}w.prototype.isReactComponent={},w.prototype.setState=function(A,j){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,j,"setState")},w.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function M(){}M.prototype=w.prototype;function x(A,j,q){this.props=A,this.context=j,this.refs=S,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},P=Object.prototype.hasOwnProperty;function D(A,j,q){var X=q.ref;return{$$typeof:e,type:A,key:j,ref:X!==void 0?X:null,props:q}}function W(A,j){return D(A.type,j,A.props)}function k(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function U(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(q){return j[q]})}var G=/\/+/g;function L(A,j){return typeof A=="object"&&A!==null&&A.key!=null?U(""+A.key):j.toString(36)}function H(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(N,N):(A.status="pending",A.then(function(j){A.status==="pending"&&(A.status="fulfilled",A.value=j)},function(j){A.status==="pending"&&(A.status="rejected",A.reason=j)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,j,q,X,K){var Z=typeof A;(Z==="undefined"||Z==="boolean")&&(A=null);var ee=!1;if(A===null)ee=!0;else switch(Z){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(A.$$typeof){case e:case t:ee=!0;break;case g:return ee=A._init,_(ee(A._payload),j,q,X,K)}}if(ee)return K=K(A),ee=X===""?"."+L(A,0):X,T(K)?(q="",ee!=null&&(q=ee.replace(G,"$&/")+"/"),_(K,j,q,"",function(oe){return oe})):K!=null&&(k(K)&&(K=W(K,q+(K.key==null||A&&A.key===K.key?"":(""+K.key).replace(G,"$&/")+"/")+ee)),j.push(K)),1;ee=0;var ie=X===""?".":X+":";if(T(A))for(var ne=0;ne<A.length;ne++)X=A[ne],Z=ie+L(X,ne),ee+=_(X,j,q,Z,K);else if(ne=C(A),typeof ne=="function")for(A=ne.call(A),ne=0;!(X=A.next()).done;)X=X.value,Z=ie+L(X,ne++),ee+=_(X,j,q,Z,K);else if(Z==="object"){if(typeof A.then=="function")return _(H(A),j,q,X,K);throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return ee}function B(A,j,q){if(A==null)return A;var X=[],K=0;return _(A,X,"","",function(Z){return j.call(q,Z,K++)}),X}function I(A){if(A._status===-1){var j=A._result;j=j(),j.then(function(q){(A._status===0||A._status===-1)&&(A._status=1,A._result=q)},function(q){(A._status===0||A._status===-1)&&(A._status=2,A._result=q)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var z=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},V={map:B,forEach:function(A,j,q){B(A,function(){j.apply(this,arguments)},q)},count:function(A){var j=0;return B(A,function(){j++}),j},toArray:function(A){return B(A,function(j){return j})||[]},only:function(A){if(!k(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};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(A){return O.H.useMemoCache(A)}},Tt.cache=function(A){return function(){return A.apply(null,arguments)}},Tt.cacheSignal=function(){return null},Tt.cloneElement=function(A,j,q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var X=$({},A.props),K=A.key;if(j!=null)for(Z in j.key!==void 0&&(K=""+j.key),j)!P.call(j,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&j.ref===void 0||(X[Z]=j[Z]);var Z=arguments.length-2;if(Z===1)X.children=q;else if(1<Z){for(var ee=Array(Z),ie=0;ie<Z;ie++)ee[ie]=arguments[ie+2];X.children=ee}return D(A.type,K,X)},Tt.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},Tt.createElement=function(A,j,q){var X,K={},Z=null;if(j!=null)for(X in j.key!==void 0&&(Z=""+j.key),j)P.call(j,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(K[X]=j[X]);var ee=arguments.length-2;if(ee===1)K.children=q;else if(1<ee){for(var ie=Array(ee),ne=0;ne<ee;ne++)ie[ne]=arguments[ne+2];K.children=ie}if(A&&A.defaultProps)for(X in ee=A.defaultProps,ee)K[X]===void 0&&(K[X]=ee[X]);return D(A,Z,K)},Tt.createRef=function(){return{current:null}},Tt.forwardRef=function(A){return{$$typeof:d,render:A}},Tt.isValidElement=k,Tt.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:I}},Tt.memo=function(A,j){return{$$typeof:p,type:A,compare:j===void 0?null:j}},Tt.startTransition=function(A){var j=O.T,q={};O.T=q;try{var X=A(),K=O.S;K!==null&&K(q,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(N,z)}catch(Z){z(Z)}finally{j!==null&&q.types!==null&&(j.types=q.types),O.T=j}},Tt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Tt.use=function(A){return O.H.use(A)},Tt.useActionState=function(A,j,q){return O.H.useActionState(A,j,q)},Tt.useCallback=function(A,j){return O.H.useCallback(A,j)},Tt.useContext=function(A){return O.H.useContext(A)},Tt.useDebugValue=function(){},Tt.useDeferredValue=function(A,j){return O.H.useDeferredValue(A,j)},Tt.useEffect=function(A,j){return O.H.useEffect(A,j)},Tt.useEffectEvent=function(A){return O.H.useEffectEvent(A)},Tt.useId=function(){return O.H.useId()},Tt.useImperativeHandle=function(A,j,q){return O.H.useImperativeHandle(A,j,q)},Tt.useInsertionEffect=function(A,j){return O.H.useInsertionEffect(A,j)},Tt.useLayoutEffect=function(A,j){return O.H.useLayoutEffect(A,j)},Tt.useMemo=function(A,j){return O.H.useMemo(A,j)},Tt.useOptimistic=function(A,j){return O.H.useOptimistic(A,j)},Tt.useReducer=function(A,j,q){return O.H.useReducer(A,j,q)},Tt.useRef=function(A){return O.H.useRef(A)},Tt.useState=function(A){return O.H.useState(A)},Tt.useSyncExternalStore=function(A,j,q){return O.H.useSyncExternalStore(A,j,q)},Tt.useTransition=function(){return O.H.useTransition()},Tt.version="19.2.3",Tt}var sw;function hS(){return sw||(sw=1,ty.exports=RP()),ty.exports}var l=hS();const ae=Ea(l),TP=wP({__proto__:null,default:ae},[l]);var ny={exports:{}},Pc={},ry={exports:{}},oy={};var cw;function OP(){return cw||(cw=1,(function(e){function t(_,B){var I=_.length;_.push(B);e:for(;0<I;){var z=I-1>>>1,V=_[z];if(0<i(V,B))_[z]=B,_[I]=V,I=z;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var B=_[0],I=_.pop();if(I!==B){_[0]=I;e:for(var z=0,V=_.length,A=V>>>1;z<A;){var j=2*(z+1)-1,q=_[j],X=j+1,K=_[X];if(0>i(q,I))X<V&&0>i(K,q)?(_[z]=K,_[X]=I,z=X):(_[z]=q,_[j]=I,z=j);else if(X<V&&0>i(K,I))_[z]=K,_[X]=I,z=X;else break e}}return B}function i(_,B){var I=_.sortIndex-B.sortIndex;return I!==0?I:_.id-B.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,C=!1,b=!1,$=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function R(_){for(var B=n(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=_)r(p),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(p)}}function T(_){if($=!1,R(_),!b)if(n(f)!==null)b=!0,N||(N=!0,U());else{var B=n(p);B!==null&&H(T,B.startTime-_)}}var N=!1,O=-1,P=5,D=-1;function W(){return S?!0:!(e.unstable_now()-D<P)}function k(){if(S=!1,N){var _=e.unstable_now();D=_;var B=!0;try{e:{b=!1,$&&($=!1,M(O),O=-1),C=!0;var I=y;try{t:{for(R(_),h=n(f);h!==null&&!(h.expirationTime>_&&W());){var z=h.callback;if(typeof z=="function"){h.callback=null,y=h.priorityLevel;var V=z(h.expirationTime<=_);if(_=e.unstable_now(),typeof V=="function"){h.callback=V,R(_),B=!0;break t}h===n(f)&&r(f),R(_)}else r(f);h=n(f)}if(h!==null)B=!0;else{var A=n(p);A!==null&&H(T,A.startTime-_),B=!1}}break e}finally{h=null,y=I,C=!1}B=void 0}}finally{B?U():N=!1}}}var U;if(typeof x=="function")U=function(){x(k)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,L=G.port2;G.port1.onmessage=k,U=function(){L.postMessage(null)}}else U=function(){w(k,0)};function H(_,B){O=w(function(){_(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(_){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var I=y;y=B;try{return _()}finally{y=I}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=y;y=_;try{return B()}finally{y=I}},e.unstable_scheduleCallback=function(_,B,I){var z=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?z+I:z):I=z,_){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:B,priorityLevel:_,startTime:I,expirationTime:V,sortIndex:-1},I>z?(_.sortIndex=I,t(p,_),n(f)===null&&_===n(p)&&($?(M(O),O=-1):$=!0,H(T,I-z))):(_.sortIndex=V,t(f,_),b||C||(b=!0,N||(N=!0,U()))),_},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(_){var B=y;return function(){var I=y;y=B;try{return _.apply(this,arguments)}finally{y=I}}}})(oy)),oy}var uw;function NP(){return uw||(uw=1,ry.exports=OP()),ry.exports}var ay={exports:{}},xr={};var dw;function IP(){if(dw)return xr;dw=1;var e=hS();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 xr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,xr.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)},xr.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()}},xr.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))},xr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},xr.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,C=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:C}):g==="script"&&r.d.X(f,{crossOrigin:h,integrity:y,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},xr.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)},xr.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})}},xr.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)},xr.requestFormReset=function(f){r.d.r(f)},xr.unstable_batchedUpdates=function(f,p){return f(p)},xr.useFormState=function(f,p,g){return c.H.useFormState(f,p,g)},xr.useFormStatus=function(){return c.H.useHostTransitionStatus()},xr.version="19.2.3",xr}var fw;function Q4(){if(fw)return ay.exports;fw=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(),ay.exports=IP(),ay.exports}var mw;function PP(){if(mw)return Pc;mw=1;var e=NP(),t=hS(),n=Q4();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 F=!1,J=v.child;J;){if(J===u){F=!0,u=v,m=E;break}if(J===m){F=!0,m=v,u=E;break}J=J.sibling}if(!F){for(J=E.child;J;){if(J===u){F=!0,u=E,m=v;break}if(J===m){F=!0,m=E,u=v;break}J=J.sibling}if(!F)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"),C=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),S=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"),P=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function U(o){return o===null||typeof o!="object"?null:(o=k&&o[k]||o["@@iterator"],typeof o=="function"?o:null)}var G=Symbol.for("react.client.reference");function L(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===G?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case $:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case D: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 P:a=o._payload,o=o._init;try{return L(o(a))}catch{}}return null}var H=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],V=-1;function A(o){return{current:o}}function j(o){0>V||(o.current=z[V],z[V]=null,V--)}function q(o,a){V++,z[V]=o.current,o.current=a}var X=A(null),K=A(null),Z=A(null),ee=A(null);function ie(o,a){switch(q(Z,a),q(K,o),q(X,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?Tx(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=Tx(a),o=Ox(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}j(X),q(X,o)}function ne(){j(X),j(K),j(Z)}function oe(o){o.memoizedState!==null&&q(ee,o);var a=X.current,u=Ox(a,o.type);a!==u&&(q(K,o),q(X,u))}function de(o){K.current===o&&(j(X),j(K)),ee.current===o&&(j(ee),Rc._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 ue(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 ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Oe){var xe=Oe}Reflect.construct(o,[],ke)}else{try{ke.call()}catch(Oe){xe=Oe}o.call(ke.prototype)}}else{try{throw Error()}catch(Oe){xe=Oe}(ke=o())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(Oe){if(Oe&&xe&&typeof Oe.stack=="string")return[Oe.stack,xe.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(),F=E[0],J=E[1];if(F&&J){var ce=F.split(`
|
|
4
|
+
`),$e=J.split(`
|
|
5
|
+
`);for(v=m=0;m<ce.length&&!ce[m].includes("DetermineComponentFrameRoot");)m++;for(;v<$e.length&&!$e[v].includes("DetermineComponentFrameRoot");)v++;if(m===ce.length||v===$e.length)for(m=ce.length-1,v=$e.length-1;1<=m&&0<=v&&ce[m]!==$e[v];)v--;for(;1<=m&&0<=v;m--,v--)if(ce[m]!==$e[v]){if(m!==1||v!==1)do if(m--,v--,0>v||ce[m]!==$e[v]){var je=`
|
|
6
|
+
`+ce[m].replace(" at new "," at ");return o.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",o.displayName)),je}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 ue(o.type,!1);case 11:return ue(o.type.render,!1);case 1:return ue(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 Se=Object.prototype.hasOwnProperty,Ie=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,we=e.unstable_shouldYield,se=e.unstable_requestPaint,be=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,Ne=e.unstable_ImmediatePriority,Ve=e.unstable_UserBlockingPriority,Ge=e.unstable_NormalPriority,et=e.unstable_LowPriority,Te=e.unstable_IdlePriority,_e=e.log,Le=e.unstable_setDisableYieldValue,Qe=null,De=null;function ve(o){if(typeof _e=="function"&&Le(o),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Qe,o)}catch{}}var Pe=Math.clz32?Math.clz32:Fe,Ze=Math.log,Ue=Math.LN2;function Fe(o){return o>>>=0,o===0?32:31-(Ze(o)/Ue|0)|0}var ze=256,Xe=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,F=o.pingedLanes;o=o.warmLanes;var J=m&134217727;return J!==0?(m=J&~E,m!==0?v=ot(m):(F&=J,F!==0?v=ot(F):u||(u=J&~o,u!==0&&(v=ot(u))))):(J=m&~E,J!==0?v=ot(J):F!==0?v=ot(F):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 qe(){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 He(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ae(o,a,u,m,v,E){var F=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 J=o.entanglements,ce=o.expirationTimes,$e=o.hiddenUpdates;for(u=F&~u;0<u;){var je=31-Pe(u),ke=1<<je;J[je]=0,ce[je]=-1;var xe=$e[je];if(xe!==null)for($e[je]=null,je=0;je<xe.length;je++){var Oe=xe[je];Oe!==null&&(Oe.lane&=-536870913)}u&=~ke}m!==0&&We(o,m,0),E!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=E&~(F&~a))}function We(o,a,u){o.pendingLanes|=a,o.suspendedLanes&=~a;var m=31-Pe(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-Pe(u),v=1<<m;v&a|o[m]&a&&(o[m]|=a),u&=~v}}function Ye(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=B.p;return o!==0?o:(o=window.event,o===void 0?32:Zx(o.type))}function Ft(o,a){var u=B.p;try{return B.p=o,a()}finally{B.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=jx(o);o!==null;){if(u=o[$t])return u;o=jx(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 Cr(o){var a=o[Rt];return a||(a=o[Rt]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function fn(o){o[Ut]=!0}var mr=new Set,Pn={};function $r(o,a){pr(o,a),pr(o+"Capture",a)}function pr(o,a){for(Pn[o]=a,o=0;o<a.length;o++)mr.add(a[o])}var gr=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]*$"),Pr={},Yr={};function yt(o){return Se.call(Yr,o)?!0:Se.call(Pr,o)?!1:gr.test(o)?Yr[o]=!0:(Pr[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 Fn(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 wo(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Zo(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(F){u=""+F,E.call(this,F)}}),Object.defineProperty(o,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(F){u=""+F},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function Eo(o){if(!o._valueTracker){var a=wo(o)?"checked":"value";o._valueTracker=Zo(o,a,""+o[a])}}function _o(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return o&&(m=wo(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 Jo(o,a,u,m,v,E,F,J){o.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?o.type=F:o.removeAttribute("type"),a!=null?F==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+In(a)):o.value!==""+In(a)&&(o.value=""+In(a)):F!=="submit"&&F!=="reset"||o.removeAttribute("value"),a!=null?Ho(o,F,In(a)):u!=null?Ho(o,F,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"),J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?o.name=""+In(J):o.removeAttribute("name")}function ea(o,a,u,m,v,E,F,J){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)){Eo(o);return}u=u!=null?""+In(u):"",a=a!=null?""+In(a):u,J||a===o.value||(o.value=a),o.defaultValue=a}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=J?o.checked:!!m,o.defaultChecked=!!m,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(o.name=F),Eo(o)}function Ho(o,a,u){a==="number"&&tt(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function io(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 ml(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 pl(o,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(r(92));if(H(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),Eo(o)}function Bo(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 Qn(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 zr(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 gl=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"]]),Jp=/^[\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 hl(o){return Jp.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Mo(){}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 kn(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(Jo(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));Jo(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&&_o(m)}break e;case"textarea":ml(o,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&io(o,!!u.multiple,a,!1)}}}var ks=!1;function T1(o,a,u){if(ks)return o(a,u);ks=!0;try{var m=o(a);return m}finally{if(ks=!1,(xt!==null||cn!==null)&&(ff(),xt&&(a=xt,o=cn,cn=xt=null,kn(a),o)))for(a=0;a<o.length;a++)kn(o[a])}}function Ws(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 ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eg=!1;if(ta)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){eg=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{eg=!1}var Ta=null,tg=null,Ed=null;function O1(){if(Ed)return Ed;var o,a=tg,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 F=u-o;for(m=1;m<=F&&a[u-m]===v[E-m];m++);return Ed=v.slice(o,1<m?1-m:void 0)}function Md(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 Rd(){return!0}function N1(){return!1}function Ar(o){function a(u,m,v,E,F){this._reactName=u,this._targetInst=v,this.type=m,this.nativeEvent=E,this.target=F,this.currentTarget=null;for(var J in o)o.hasOwnProperty(J)&&(u=o[J],this[J]=u?u(E):E[J]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Rd:N1,this.isPropagationStopped=N1,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=Rd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Rd)},persist:function(){},isPersistent:Rd}),a}var yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=Ar(yi),Ys=h({},yi,{view:0,detail:0}),$N=Ar(Ys),ng,rg,Us,Od=h({},Ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ag,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!==Us&&(Us&&o.type==="mousemove"?(ng=o.screenX-Us.screenX,rg=o.screenY-Us.screenY):rg=ng=0,Us=o),ng)},movementY:function(o){return"movementY"in o?o.movementY:rg}}),I1=Ar(Od),xN=h({},Od,{dataTransfer:0}),wN=Ar(xN),EN=h({},Ys,{relatedTarget:0}),og=Ar(EN),MN=h({},yi,{animationName:0,elapsedTime:0,pseudoElement:0}),RN=Ar(MN),TN=h({},yi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),ON=Ar(TN),NN=h({},yi,{data:0}),P1=Ar(NN),IN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PN={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"},zN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AN(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=zN[o])?!!a[o]:!1}function ag(){return AN}var DN=h({},Ys,{key:function(o){if(o.key){var a=IN[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=Md(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?PN[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ag,charCode:function(o){return o.type==="keypress"?Md(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Md(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),jN=Ar(DN),_N=h({},Od,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),z1=Ar(_N),HN=h({},Ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ag}),BN=Ar(HN),LN=h({},yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),VN=Ar(LN),FN=h({},Od,{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}),kN=Ar(FN),WN=h({},yi,{newState:0,oldState:0}),qN=Ar(WN),YN=[9,13,27,32],ig=ta&&"CompositionEvent"in window,Gs=null;ta&&"documentMode"in document&&(Gs=document.documentMode);var UN=ta&&"TextEvent"in window&&!Gs,A1=ta&&(!ig||Gs&&8<Gs&&11>=Gs),D1=" ",j1=!1;function _1(o,a){switch(o){case"keyup":return YN.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var yl=!1;function GN(o,a){switch(o){case"compositionend":return H1(a);case"keypress":return a.which!==32?null:(j1=!0,D1);case"textInput":return o=a.data,o===D1&&j1?null:o;default:return null}}function XN(o,a){if(yl)return o==="compositionend"||!ig&&_1(o,a)?(o=O1(),Ed=tg=Ta=null,yl=!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 A1&&a.locale!=="ko"?null:a.data;default:return null}}var KN={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 B1(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!KN[o.type]:a==="textarea"}function L1(o,a,u,m){xt?cn?cn.push(m):cn=[m]:xt=m,a=vf(a,"onChange"),0<a.length&&(u=new Td("onChange","change",null,u,m),o.push({event:u,listeners:a}))}var Xs=null,Ks=null;function QN(o){$x(o,0)}function Nd(o){var a=En(o);if(_o(a))return o}function V1(o,a){if(o==="change")return a}var F1=!1;if(ta){var lg;if(ta){var sg="oninput"in document;if(!sg){var k1=document.createElement("div");k1.setAttribute("oninput","return;"),sg=typeof k1.oninput=="function"}lg=sg}else lg=!1;F1=lg&&(!document.documentMode||9<document.documentMode)}function W1(){Xs&&(Xs.detachEvent("onpropertychange",q1),Ks=Xs=null)}function q1(o){if(o.propertyName==="value"&&Nd(Ks)){var a=[];L1(a,Ks,o,bt(o)),T1(QN,a)}}function ZN(o,a,u){o==="focusin"?(W1(),Xs=a,Ks=u,Xs.attachEvent("onpropertychange",q1)):o==="focusout"&&W1()}function JN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Nd(Ks)}function eI(o,a){if(o==="click")return Nd(a)}function tI(o,a){if(o==="input"||o==="change")return Nd(a)}function nI(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Ur=typeof Object.is=="function"?Object.is:nI;function Qs(o,a){if(Ur(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(!Se.call(a,v)||!Ur(o[v],a[v]))return!1}return!0}function Y1(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function U1(o,a){var u=Y1(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=Y1(u)}}function G1(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?G1(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function X1(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 cg(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 rI=ta&&"documentMode"in document&&11>=document.documentMode,bl=null,ug=null,Zs=null,dg=!1;function K1(o,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;dg||bl==null||bl!==tt(m)||(m=bl,"selectionStart"in m&&cg(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}),Zs&&Qs(Zs,m)||(Zs=m,m=vf(ug,"onSelect"),0<m.length&&(a=new Td("onSelect","select",null,a,u),o.push({event:a,listeners:m}),a.target=bl)))}function bi(o,a){var u={};return u[o.toLowerCase()]=a.toLowerCase(),u["Webkit"+o]="webkit"+a,u["Moz"+o]="moz"+a,u}var vl={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionrun:bi("Transition","TransitionRun"),transitionstart:bi("Transition","TransitionStart"),transitioncancel:bi("Transition","TransitionCancel"),transitionend:bi("Transition","TransitionEnd")},fg={},Q1={};ta&&(Q1=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function vi(o){if(fg[o])return fg[o];if(!vl[o])return o;var a=vl[o],u;for(u in a)if(a.hasOwnProperty(u)&&u in Q1)return fg[o]=a[u];return o}var Z1=vi("animationend"),J1=vi("animationiteration"),eC=vi("animationstart"),oI=vi("transitionrun"),aI=vi("transitionstart"),iI=vi("transitioncancel"),tC=vi("transitionend"),nC=new Map,mg="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(" ");mg.push("scrollEnd");function Ro(o,a){nC.set(o,a),$r(a,[o])}var Id=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)},lo=[],Sl=0,pg=0;function Pd(){for(var o=Sl,a=pg=Sl=0;a<o;){var u=lo[a];lo[a++]=null;var m=lo[a];lo[a++]=null;var v=lo[a];lo[a++]=null;var E=lo[a];if(lo[a++]=null,m!==null&&v!==null){var F=m.pending;F===null?v.next=v:(v.next=F.next,F.next=v),m.pending=v}E!==0&&rC(u,v,E)}}function zd(o,a,u,m){lo[Sl++]=o,lo[Sl++]=a,lo[Sl++]=u,lo[Sl++]=m,pg|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function gg(o,a,u,m){return zd(o,a,u,m),Ad(o)}function Si(o,a){return zd(o,null,null,a),Ad(o)}function rC(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-Pe(u),o=E.hiddenUpdates,m=o[v],m===null?o[v]=[a]:m.push(a),a.lane=u|536870912),E):null}function Ad(o){if(50<Sc)throw Sc=0,wh=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var Cl={};function lI(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 Gr(o,a,u,m){return new lI(o,a,u,m)}function hg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function na(o,a){var u=o.alternate;return u===null?(u=Gr(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 oC(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 Dd(o,a,u,m,v,E){var F=0;if(m=o,typeof o=="function")hg(o)&&(F=1);else if(typeof o=="string")F=fP(o,u,X.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=Gr(31,u,a,v),o.elementType=D,o.lanes=E,o;case $:return Ci(u.children,v,E,a);case S:F=8,v|=24;break;case w:return o=Gr(12,u,a,v|2),o.elementType=w,o.lanes=E,o;case T:return o=Gr(13,u,a,v),o.elementType=T,o.lanes=E,o;case N:return o=Gr(19,u,a,v),o.elementType=N,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case x:F=10;break e;case M:F=9;break e;case R:F=11;break e;case O:F=14;break e;case P:F=16,m=null;break e}F=29,u=Error(r(130,o===null?"null":typeof o,"")),m=null}return a=Gr(F,u,a,v),a.elementType=o,a.type=m,a.lanes=E,a}function Ci(o,a,u,m){return o=Gr(7,o,m,a),o.lanes=u,o}function yg(o,a,u){return o=Gr(6,o,null,a),o.lanes=u,o}function aC(o){var a=Gr(18,null,null,0);return a.stateNode=o,a}function bg(o,a,u){return a=Gr(4,o.children!==null?o.children:[],o.key,a),a.lanes=u,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var iC=new WeakMap;function so(o,a){if(typeof o=="object"&&o!==null){var u=iC.get(o);return u!==void 0?u:(a={value:o,source:a,stack:pe(a)},iC.set(o,a),a)}return{value:o,source:a,stack:pe(a)}}var $l=[],xl=0,jd=null,Js=0,co=[],uo=0,Oa=null,Lo=1,Vo="";function ra(o,a){$l[xl++]=Js,$l[xl++]=jd,jd=o,Js=a}function lC(o,a,u){co[uo++]=Lo,co[uo++]=Vo,co[uo++]=Oa,Oa=o;var m=Lo;o=Vo;var v=32-Pe(m)-1;m&=~(1<<v),u+=1;var E=32-Pe(a)+v;if(30<E){var F=v-v%5;E=(m&(1<<F)-1).toString(32),m>>=F,v-=F,Lo=1<<32-Pe(a)+v|u<<v|m,Vo=E+o}else Lo=1<<E|u<<v|m,Vo=o}function vg(o){o.return!==null&&(ra(o,1),lC(o,1,0))}function Sg(o){for(;o===jd;)jd=$l[--xl],$l[xl]=null,Js=$l[--xl],$l[xl]=null;for(;o===Oa;)Oa=co[--uo],co[uo]=null,Vo=co[--uo],co[uo]=null,Lo=co[--uo],co[uo]=null}function sC(o,a){co[uo++]=Lo,co[uo++]=Vo,co[uo++]=Oa,Lo=a.id,Vo=a.overflow,Oa=o}var hr=null,Rn=null,Qt=!1,Na=null,fo=!1,Cg=Error(r(519));function Ia(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ec(so(a,o)),Cg}function cC(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<$c.length;u++)qt($c[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),ea(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),pl(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||Mx(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=Mo),a=!0):a=!1,a||Ia(o,!0)}function uC(o){for(hr=o.return;hr;)switch(hr.tag){case 5:case 31:case 13:fo=!1;return;case 27:case 3:fo=!0;return;default:hr=hr.return}}function wl(o){if(o!==hr)return!1;if(!Qt)return uC(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")||Bh(o.type,o.memoizedProps)),u=!u),u&&Rn&&Ia(o),uC(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=Dx(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rn=Dx(o)}else a===27?(a=Rn,qa(o.type)?(o=Wh,Wh=null,Rn=o):Rn=a):Rn=hr?po(o.stateNode.nextSibling):null;return!0}function $i(){Rn=hr=null,Qt=!1}function $g(){var o=Na;return o!==null&&(Hr===null?Hr=o:Hr.push.apply(Hr,o),Na=null),o}function ec(o){Na===null?Na=[o]:Na.push(o)}var xg=A(null),xi=null,oa=null;function Pa(o,a,u){q(xg,a._currentValue),a._currentValue=u}function aa(o){o._currentValue=xg.current,j(xg)}function wg(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 Eg(o,a,u,m){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var E=v.dependencies;if(E!==null){var F=v.child;E=E.firstContext;e:for(;E!==null;){var J=E;E=v;for(var ce=0;ce<a.length;ce++)if(J.context===a[ce]){E.lanes|=u,J=E.alternate,J!==null&&(J.lanes|=u),wg(E.return,u,o),m||(F=null);break e}E=J.next}}else if(v.tag===18){if(F=v.return,F===null)throw Error(r(341));F.lanes|=u,E=F.alternate,E!==null&&(E.lanes|=u),wg(F,u,o),F=null}else F=v.child;if(F!==null)F.return=v;else for(F=v;F!==null;){if(F===o){F=null;break}if(v=F.sibling,v!==null){v.return=F.return,F=v;break}F=F.return}v=F}}function El(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 F=v.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var J=v.type;Ur(v.pendingProps.value,F.value)||(o!==null?o.push(J):o=[J])}}else if(v===ee.current){if(F=v.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Rc):o=[Rc])}v=v.return}o!==null&&Eg(a,o,u,m),a.flags|=262144}function _d(o){for(o=o.firstContext;o!==null;){if(!Ur(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function wi(o){xi=o,oa=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function yr(o){return dC(xi,o)}function Hd(o,a){return xi===null&&wi(o),dC(o,a)}function dC(o,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},oa===null){if(o===null)throw Error(r(308));oa=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else oa=oa.next=a;return u}var sI=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()})}},cI=e.unstable_scheduleCallback,uI=e.unstable_NormalPriority,Wn={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mg(){return{controller:new sI,data:new Map,refCount:0}}function tc(o){o.refCount--,o.refCount===0&&cI(uI,function(){o.controller.abort()})}var nc=null,Rg=0,Ml=0,Rl=null;function dI(o,a){if(nc===null){var u=nc=[];Rg=0,Ml=Nh(),Rl={status:"pending",value:void 0,then:function(m){u.push(m)}}}return Rg++,a.then(fC,fC),a}function fC(){if(--Rg===0&&nc!==null){Rl!==null&&(Rl.status="fulfilled");var o=nc;nc=null,Ml=0,Rl=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function fI(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 mC=_.S;_.S=function(o,a){K$=be(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&dI(o,a),mC!==null&&mC(o,a)};var Ei=A(null);function Tg(){var o=Ei.current;return o!==null?o:Cn.pooledCache}function Bd(o,a){a===null?q(Ei,Ei.current):q(Ei,a.pool)}function pC(){var o=Tg();return o===null?null:{parent:Wn._currentValue,pool:o}}var Tl=Error(r(460)),Og=Error(r(474)),Ld=Error(r(542)),Vd={then:function(){}};function gC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function hC(o,a,u){switch(u=o[u],u===void 0?o.push(a):u!==a&&(a.then(Mo,Mo),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,bC(o),o;default:if(typeof a.status=="string")a.then(Mo,Mo);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,bC(o),o}throw Ri=a,Tl}}function Mi(o){try{var a=o._init;return a(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ri=u,Tl):u}}var Ri=null;function yC(){if(Ri===null)throw Error(r(459));var o=Ri;return Ri=null,o}function bC(o){if(o===Tl||o===Ld)throw Error(r(483))}var Ol=null,rc=0;function Fd(o){var a=rc;return rc+=1,Ol===null&&(Ol=[]),hC(Ol,o,a)}function oc(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function kd(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 vC(o){function a(ye,me){if(o){var Ce=ye.deletions;Ce===null?(ye.deletions=[me],ye.flags|=16):Ce.push(me)}}function u(ye,me){if(!o)return null;for(;me!==null;)a(ye,me),me=me.sibling;return null}function m(ye){for(var me=new Map;ye!==null;)ye.key!==null?me.set(ye.key,ye):me.set(ye.index,ye),ye=ye.sibling;return me}function v(ye,me){return ye=na(ye,me),ye.index=0,ye.sibling=null,ye}function E(ye,me,Ce){return ye.index=Ce,o?(Ce=ye.alternate,Ce!==null?(Ce=Ce.index,Ce<me?(ye.flags|=67108866,me):Ce):(ye.flags|=67108866,me)):(ye.flags|=1048576,me)}function F(ye){return o&&ye.alternate===null&&(ye.flags|=67108866),ye}function J(ye,me,Ce,Be){return me===null||me.tag!==6?(me=yg(Ce,ye.mode,Be),me.return=ye,me):(me=v(me,Ce),me.return=ye,me)}function ce(ye,me,Ce,Be){var pt=Ce.type;return pt===$?je(ye,me,Ce.props.children,Be,Ce.key):me!==null&&(me.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===P&&Mi(pt)===me.type)?(me=v(me,Ce.props),oc(me,Ce),me.return=ye,me):(me=Dd(Ce.type,Ce.key,Ce.props,null,ye.mode,Be),oc(me,Ce),me.return=ye,me)}function $e(ye,me,Ce,Be){return me===null||me.tag!==4||me.stateNode.containerInfo!==Ce.containerInfo||me.stateNode.implementation!==Ce.implementation?(me=bg(Ce,ye.mode,Be),me.return=ye,me):(me=v(me,Ce.children||[]),me.return=ye,me)}function je(ye,me,Ce,Be,pt){return me===null||me.tag!==7?(me=Ci(Ce,ye.mode,Be,pt),me.return=ye,me):(me=v(me,Ce),me.return=ye,me)}function ke(ye,me,Ce){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=yg(""+me,ye.mode,Ce),me.return=ye,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case C:return Ce=Dd(me.type,me.key,me.props,null,ye.mode,Ce),oc(Ce,me),Ce.return=ye,Ce;case b:return me=bg(me,ye.mode,Ce),me.return=ye,me;case P:return me=Mi(me),ke(ye,me,Ce)}if(H(me)||U(me))return me=Ci(me,ye.mode,Ce,null),me.return=ye,me;if(typeof me.then=="function")return ke(ye,Fd(me),Ce);if(me.$$typeof===x)return ke(ye,Hd(ye,me),Ce);kd(ye,me)}return null}function xe(ye,me,Ce,Be){var pt=me!==null?me.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return pt!==null?null:J(ye,me,""+Ce,Be);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case C:return Ce.key===pt?ce(ye,me,Ce,Be):null;case b:return Ce.key===pt?$e(ye,me,Ce,Be):null;case P:return Ce=Mi(Ce),xe(ye,me,Ce,Be)}if(H(Ce)||U(Ce))return pt!==null?null:je(ye,me,Ce,Be,null);if(typeof Ce.then=="function")return xe(ye,me,Fd(Ce),Be);if(Ce.$$typeof===x)return xe(ye,me,Hd(ye,Ce),Be);kd(ye,Ce)}return null}function Oe(ye,me,Ce,Be,pt){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return ye=ye.get(Ce)||null,J(me,ye,""+Be,pt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case C:return ye=ye.get(Be.key===null?Ce:Be.key)||null,ce(me,ye,Be,pt);case b:return ye=ye.get(Be.key===null?Ce:Be.key)||null,$e(me,ye,Be,pt);case P:return Be=Mi(Be),Oe(ye,me,Ce,Be,pt)}if(H(Be)||U(Be))return ye=ye.get(Ce)||null,je(me,ye,Be,pt,null);if(typeof Be.then=="function")return Oe(ye,me,Ce,Fd(Be),pt);if(Be.$$typeof===x)return Oe(ye,me,Ce,Hd(me,Be),pt);kd(me,Be)}return null}function st(ye,me,Ce,Be){for(var pt=null,rn=null,ct=me,jt=me=0,Xt=null;ct!==null&&jt<Ce.length;jt++){ct.index>jt?(Xt=ct,ct=null):Xt=ct.sibling;var on=xe(ye,ct,Ce[jt],Be);if(on===null){ct===null&&(ct=Xt);break}o&&ct&&on.alternate===null&&a(ye,ct),me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on,ct=Xt}if(jt===Ce.length)return u(ye,ct),Qt&&ra(ye,jt),pt;if(ct===null){for(;jt<Ce.length;jt++)ct=ke(ye,Ce[jt],Be),ct!==null&&(me=E(ct,me,jt),rn===null?pt=ct:rn.sibling=ct,rn=ct);return Qt&&ra(ye,jt),pt}for(ct=m(ct);jt<Ce.length;jt++)Xt=Oe(ct,ye,jt,Ce[jt],Be),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(ye,Ka)}),Qt&&ra(ye,jt),pt}function vt(ye,me,Ce,Be){if(Ce==null)throw Error(r(151));for(var pt=null,rn=null,ct=me,jt=me=0,Xt=null,on=Ce.next();ct!==null&&!on.done;jt++,on=Ce.next()){ct.index>jt?(Xt=ct,ct=null):Xt=ct.sibling;var Ka=xe(ye,ct,on.value,Be);if(Ka===null){ct===null&&(ct=Xt);break}o&&ct&&Ka.alternate===null&&a(ye,ct),me=E(Ka,me,jt),rn===null?pt=Ka:rn.sibling=Ka,rn=Ka,ct=Xt}if(on.done)return u(ye,ct),Qt&&ra(ye,jt),pt;if(ct===null){for(;!on.done;jt++,on=Ce.next())on=ke(ye,on.value,Be),on!==null&&(me=E(on,me,jt),rn===null?pt=on:rn.sibling=on,rn=on);return Qt&&ra(ye,jt),pt}for(ct=m(ct);!on.done;jt++,on=Ce.next())on=Oe(ct,ye,jt,on.value,Be),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(xP){return a(ye,xP)}),Qt&&ra(ye,jt),pt}function bn(ye,me,Ce,Be){if(typeof Ce=="object"&&Ce!==null&&Ce.type===$&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case C:e:{for(var pt=Ce.key;me!==null;){if(me.key===pt){if(pt=Ce.type,pt===$){if(me.tag===7){u(ye,me.sibling),Be=v(me,Ce.props.children),Be.return=ye,ye=Be;break e}}else if(me.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===P&&Mi(pt)===me.type){u(ye,me.sibling),Be=v(me,Ce.props),oc(Be,Ce),Be.return=ye,ye=Be;break e}u(ye,me);break}else a(ye,me);me=me.sibling}Ce.type===$?(Be=Ci(Ce.props.children,ye.mode,Be,Ce.key),Be.return=ye,ye=Be):(Be=Dd(Ce.type,Ce.key,Ce.props,null,ye.mode,Be),oc(Be,Ce),Be.return=ye,ye=Be)}return F(ye);case b:e:{for(pt=Ce.key;me!==null;){if(me.key===pt)if(me.tag===4&&me.stateNode.containerInfo===Ce.containerInfo&&me.stateNode.implementation===Ce.implementation){u(ye,me.sibling),Be=v(me,Ce.children||[]),Be.return=ye,ye=Be;break e}else{u(ye,me);break}else a(ye,me);me=me.sibling}Be=bg(Ce,ye.mode,Be),Be.return=ye,ye=Be}return F(ye);case P:return Ce=Mi(Ce),bn(ye,me,Ce,Be)}if(H(Ce))return st(ye,me,Ce,Be);if(U(Ce)){if(pt=U(Ce),typeof pt!="function")throw Error(r(150));return Ce=pt.call(Ce),vt(ye,me,Ce,Be)}if(typeof Ce.then=="function")return bn(ye,me,Fd(Ce),Be);if(Ce.$$typeof===x)return bn(ye,me,Hd(ye,Ce),Be);kd(ye,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,me!==null&&me.tag===6?(u(ye,me.sibling),Be=v(me,Ce),Be.return=ye,ye=Be):(u(ye,me),Be=yg(Ce,ye.mode,Be),Be.return=ye,ye=Be),F(ye)):u(ye,me)}return function(ye,me,Ce,Be){try{rc=0;var pt=bn(ye,me,Ce,Be);return Ol=null,pt}catch(ct){if(ct===Tl||ct===Ld)throw ct;var rn=Gr(29,ct,null,ye.mode);return rn.lanes=Be,rn.return=ye,rn}}}var Ti=vC(!0),SC=vC(!1),za=!1;function Ng(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ig(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=Ad(o),rC(o,null,u),a}return zd(o,m,a,u),Ad(o)}function ac(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 Pg(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 F={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?v=E=F:E=E.next=F,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 zg=!1;function ic(){if(zg){var o=Rl;if(o!==null)throw o}}function lc(o,a,u,m){zg=!1;var v=o.updateQueue;za=!1;var E=v.firstBaseUpdate,F=v.lastBaseUpdate,J=v.shared.pending;if(J!==null){v.shared.pending=null;var ce=J,$e=ce.next;ce.next=null,F===null?E=$e:F.next=$e,F=ce;var je=o.alternate;je!==null&&(je=je.updateQueue,J=je.lastBaseUpdate,J!==F&&(J===null?je.firstBaseUpdate=$e:J.next=$e,je.lastBaseUpdate=ce))}if(E!==null){var ke=v.baseState;F=0,je=$e=ce=null,J=E;do{var xe=J.lane&-536870913,Oe=xe!==J.lane;if(Oe?(Gt&xe)===xe:(m&xe)===xe){xe!==0&&xe===Ml&&(zg=!0),je!==null&&(je=je.next={lane:0,tag:J.tag,payload:J.payload,callback:null,next:null});e:{var st=o,vt=J;xe=a;var bn=u;switch(vt.tag){case 1:if(st=vt.payload,typeof st=="function"){ke=st.call(bn,ke,xe);break e}ke=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=vt.payload,xe=typeof st=="function"?st.call(bn,ke,xe):st,xe==null)break e;ke=h({},ke,xe);break e;case 2:za=!0}}xe=J.callback,xe!==null&&(o.flags|=64,Oe&&(o.flags|=8192),Oe=v.callbacks,Oe===null?v.callbacks=[xe]:Oe.push(xe))}else Oe={lane:xe,tag:J.tag,payload:J.payload,callback:J.callback,next:null},je===null?($e=je=Oe,ce=ke):je=je.next=Oe,F|=xe;if(J=J.next,J===null){if(J=v.shared.pending,J===null)break;Oe=J,J=Oe.next,Oe.next=null,v.lastBaseUpdate=Oe,v.shared.pending=null}}while(!0);je===null&&(ce=ke),v.baseState=ce,v.firstBaseUpdate=$e,v.lastBaseUpdate=je,E===null&&(v.shared.lanes=0),La|=F,o.lanes=F,o.memoizedState=ke}}function CC(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function $C(o,a){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)CC(u[o],a)}var Nl=A(null),Wd=A(0);function xC(o,a){o=pa,q(Wd,o),q(Nl,a),pa=o|a.baseLanes}function Ag(){q(Wd,pa),q(Nl,Nl.current)}function Dg(){pa=Wd.current,j(Nl),j(Wd)}var Xr=A(null),mo=null;function ja(o){var a=o.alternate;q(Hn,Hn.current&1),q(Xr,o),mo===null&&(a===null||Nl.current!==null||a.memoizedState!==null)&&(mo=o)}function jg(o){q(Hn,Hn.current),q(Xr,o),mo===null&&(mo=o)}function wC(o){o.tag===22?(q(Hn,Hn.current),q(Xr,o),mo===null&&(mo=o)):_a()}function _a(){q(Hn,Hn.current),q(Xr,Xr.current)}function Kr(o){j(Xr),mo===o&&(mo=null),j(Hn)}var Hn=A(0);function qd(o){for(var a=o;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Fh(u)||kh(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 ia=0,zt=null,hn=null,qn=null,Yd=!1,Il=!1,Oi=!1,Ud=0,sc=0,Pl=null,mI=0;function zn(){throw Error(r(321))}function _g(o,a){if(a===null)return!1;for(var u=0;u<a.length&&u<o.length;u++)if(!Ur(o[u],a[u]))return!1;return!0}function Hg(o,a,u,m,v,E){return ia=E,zt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=o===null||o.memoizedState===null?l$:Jg,Oi=!1,E=u(m,v),Oi=!1,Il&&(E=MC(a,u,m,v)),EC(o),E}function EC(o){_.H=dc;var a=hn!==null&&hn.next!==null;if(ia=0,qn=hn=zt=null,Yd=!1,sc=0,Pl=null,a)throw Error(r(300));o===null||Yn||(o=o.dependencies,o!==null&&_d(o)&&(Yn=!0))}function MC(o,a,u,m){zt=o;var v=0;do{if(Il&&(Pl=null),sc=0,Il=!1,25<=v)throw Error(r(301));if(v+=1,qn=hn=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=s$,E=a(u,m)}while(Il);return E}function pI(){var o=_.H,a=o.useState()[0];return a=typeof a.then=="function"?cc(a):a,o=o.useState()[0],(hn!==null?hn.memoizedState:null)!==o&&(zt.flags|=1024),a}function Bg(){var o=Ud!==0;return Ud=0,o}function Lg(o,a,u){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~u}function Vg(o){if(Yd){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Yd=!1}ia=0,qn=hn=zt=null,Il=!1,sc=Ud=0,Pl=null}function Or(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?zt.memoizedState=qn=o:qn=qn.next=o,qn}function Bn(){if(hn===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=hn.next;var a=qn===null?zt.memoizedState:qn.next;if(a!==null)qn=a,hn=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));hn=o,o={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null},qn===null?zt.memoizedState=qn=o:qn=qn.next=o}return qn}function Gd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cc(o){var a=sc;return sc+=1,Pl===null&&(Pl=[]),o=hC(Pl,o,a),a=zt,(qn===null?a.memoizedState:qn.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?l$:Jg),o}function Xd(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return cc(o);if(o.$$typeof===x)return yr(o)}throw Error(r(438,String(o)))}function Fg(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=Gd(),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 la(o,a){return typeof a=="function"?a(o):a}function Kd(o){var a=Bn();return kg(a,hn,o)}function kg(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 F=v.next;v.next=E.next,E.next=F}a.baseQueue=v=E,m.pending=null}if(E=o.baseState,v===null)o.memoizedState=E;else{a=v.next;var J=F=null,ce=null,$e=a,je=!1;do{var ke=$e.lane&-536870913;if(ke!==$e.lane?(Gt&ke)===ke:(ia&ke)===ke){var xe=$e.revertLane;if(xe===0)ce!==null&&(ce=ce.next={lane:0,revertLane:0,gesture:null,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null}),ke===Ml&&(je=!0);else if((ia&xe)===xe){$e=$e.next,xe===Ml&&(je=!0);continue}else ke={lane:0,revertLane:$e.revertLane,gesture:null,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null},ce===null?(J=ce=ke,F=E):ce=ce.next=ke,zt.lanes|=xe,La|=xe;ke=$e.action,Oi&&u(E,ke),E=$e.hasEagerState?$e.eagerState:u(E,ke)}else xe={lane:ke,revertLane:$e.revertLane,gesture:$e.gesture,action:$e.action,hasEagerState:$e.hasEagerState,eagerState:$e.eagerState,next:null},ce===null?(J=ce=xe,F=E):ce=ce.next=xe,zt.lanes|=ke,La|=ke;$e=$e.next}while($e!==null&&$e!==a);if(ce===null?F=E:ce.next=J,!Ur(E,o.memoizedState)&&(Yn=!0,je&&(u=Rl,u!==null)))throw u;o.memoizedState=E,o.baseState=F,o.baseQueue=ce,m.lastRenderedState=E}return v===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function Wg(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 F=v=v.next;do E=o(E,F.action),F=F.next;while(F!==v);Ur(E,a.memoizedState)||(Yn=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,m]}function RC(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 F=!Ur((hn||v).memoizedState,u);if(F&&(v.memoizedState=u,Yn=!0),v=v.queue,Ug(NC.bind(null,m,v,o),[o]),v.getSnapshot!==a||F||qn!==null&&qn.memoizedState.tag&1){if(m.flags|=2048,zl(9,{destroy:void 0},OC.bind(null,m,v,u,a),null),Cn===null)throw Error(r(349));E||(ia&127)!==0||TC(m,a,u)}return u}function TC(o,a,u){o.flags|=16384,o={getSnapshot:a,value:u},a=zt.updateQueue,a===null?(a=Gd(),zt.updateQueue=a,a.stores=[o]):(u=a.stores,u===null?a.stores=[o]:u.push(o))}function OC(o,a,u,m){a.value=u,a.getSnapshot=m,IC(a)&&PC(o)}function NC(o,a,u){return u(function(){IC(a)&&PC(o)})}function IC(o){var a=o.getSnapshot;o=o.value;try{var u=a();return!Ur(o,u)}catch{return!0}}function PC(o){var a=Si(o,2);a!==null&&Br(a,o,2)}function qg(o){var a=Or();if(typeof o=="function"){var u=o;if(o=u(),Oi){ve(!0);try{u()}finally{ve(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:o},a}function zC(o,a,u,m){return o.baseState=u,kg(o,hn,typeof m=="function"?m:la)}function gI(o,a,u,m,v){if(Jd(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(F){E.listeners.push(F)}};_.T!==null?u(!0):E.isTransition=!1,m(E),u=a.pending,u===null?(E.next=a.pending=E,AC(a,E)):(E.next=u.next,a.pending=u.next=E)}}function AC(o,a){var u=a.action,m=a.payload,v=o.state;if(a.isTransition){var E=_.T,F={};_.T=F;try{var J=u(v,m),ce=_.S;ce!==null&&ce(F,J),DC(o,a,J)}catch($e){Yg(o,a,$e)}finally{E!==null&&F.types!==null&&(E.types=F.types),_.T=E}}else try{E=u(v,m),DC(o,a,E)}catch($e){Yg(o,a,$e)}}function DC(o,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){jC(o,a,m)},function(m){return Yg(o,a,m)}):jC(o,a,u)}function jC(o,a,u){a.status="fulfilled",a.value=u,_C(a),o.state=u,a=o.pending,a!==null&&(u=a.next,u===a?o.pending=null:(u=u.next,a.next=u,AC(o,u)))}function Yg(o,a,u){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,_C(a),a=a.next;while(a!==m)}o.action=null}function _C(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function HC(o,a){return a}function BC(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=fo;v.nodeType!==8;){if(!E){v=null;break t}if(v=po(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E==="F!"||E==="F"?v:null}if(v){Rn=po(v.nextSibling),m=v.data==="F!";break e}}Ia(m)}m=!1}m&&(a=u[0])}}return u=Or(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:HC,lastRenderedState:a},u.queue=m,u=o$.bind(null,zt,m),m.dispatch=u,m=qg(!1),E=Zg.bind(null,zt,!1,m.queue),m=Or(),v={state:a,dispatch:null,action:o,pending:null},m.queue=v,u=gI.bind(null,zt,v,E,u),v.dispatch=u,m.memoizedState=o,[a,u,!1]}function LC(o){var a=Bn();return VC(a,hn,o)}function VC(o,a,u){if(a=kg(o,a,HC)[0],o=Kd(la)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=cc(a)}catch(F){throw F===Tl?Ld:F}else m=a;a=Bn();var v=a.queue,E=v.dispatch;return u!==a.memoizedState&&(zt.flags|=2048,zl(9,{destroy:void 0},hI.bind(null,v,u),null)),[m,E,o]}function hI(o,a){o.action=a}function FC(o){var a=Bn(),u=hn;if(u!==null)return VC(a,u,o);Bn(),a=a.memoizedState,u=Bn();var m=u.queue.dispatch;return u.memoizedState=o,[a,m,!1]}function zl(o,a,u,m){return o={tag:o,create:u,deps:m,inst:a,next:null},a=zt.updateQueue,a===null&&(a=Gd(),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 kC(){return Bn().memoizedState}function Qd(o,a,u,m){var v=Or();zt.flags|=o,v.memoizedState=zl(1|a,{destroy:void 0},u,m===void 0?null:m)}function Zd(o,a,u,m){var v=Bn();m=m===void 0?null:m;var E=v.memoizedState.inst;hn!==null&&m!==null&&_g(m,hn.memoizedState.deps)?v.memoizedState=zl(a,E,u,m):(zt.flags|=o,v.memoizedState=zl(1|a,E,u,m))}function WC(o,a){Qd(8390656,8,o,a)}function Ug(o,a){Zd(2048,8,o,a)}function yI(o){zt.flags|=4;var a=zt.updateQueue;if(a===null)a=Gd(),zt.updateQueue=a,a.events=[o];else{var u=a.events;u===null?a.events=[o]:u.push(o)}}function qC(o){var a=Bn().memoizedState;return yI({ref:a,nextImpl:o}),function(){if((ln&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function YC(o,a){return Zd(4,2,o,a)}function UC(o,a){return Zd(4,4,o,a)}function GC(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 XC(o,a,u){u=u!=null?u.concat([o]):null,Zd(4,4,GC.bind(null,a,o),u)}function Gg(){}function KC(o,a){var u=Bn();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&_g(a,m[1])?m[0]:(u.memoizedState=[o,a],o)}function QC(o,a){var u=Bn();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&_g(a,m[1]))return m[0];if(m=o(),Oi){ve(!0);try{o()}finally{ve(!1)}}return u.memoizedState=[m,a],m}function Xg(o,a,u){return u===void 0||(ia&1073741824)!==0&&(Gt&261930)===0?o.memoizedState=a:(o.memoizedState=u,o=Z$(),zt.lanes|=o,La|=o,u)}function ZC(o,a,u,m){return Ur(u,a)?u:Nl.current!==null?(o=Xg(o,u,m),Ur(o,a)||(Yn=!0),o):(ia&42)===0||(ia&1073741824)!==0&&(Gt&261930)===0?(Yn=!0,o.memoizedState=u):(o=Z$(),zt.lanes|=o,La|=o,a)}function JC(o,a,u,m,v){var E=B.p;B.p=E!==0&&8>E?E:8;var F=_.T,J={};_.T=J,Zg(o,!1,a,u);try{var ce=v(),$e=_.S;if($e!==null&&$e(J,ce),ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var je=fI(ce,m);uc(o,a,je,Jr(o))}else uc(o,a,m,Jr(o))}catch(ke){uc(o,a,{then:function(){},status:"rejected",reason:ke},Jr())}finally{B.p=E,F!==null&&J.types!==null&&(F.types=J.types),_.T=F}}function bI(){}function Kg(o,a,u,m){if(o.tag!==5)throw Error(r(476));var v=e$(o).queue;JC(o,v,a,I,u===null?bI:function(){return t$(o),u(m)})}function e$(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:la,lastRenderedState:I},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:u},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function t$(o){var a=e$(o);a.next===null&&(a=o.alternate.memoizedState),uc(o,a.next.queue,{},Jr())}function Qg(){return yr(Rc)}function n$(){return Bn().memoizedState}function r$(){return Bn().memoizedState}function vI(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var u=Jr();o=Aa(u);var m=Da(a,o,u);m!==null&&(Br(m,a,u),ac(m,a,u)),a={cache:Mg()},o.payload=a;return}a=a.return}}function SI(o,a,u){var m=Jr();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Jd(o)?a$(a,u):(u=gg(o,a,u,m),u!==null&&(Br(u,o,m),i$(u,a,m)))}function o$(o,a,u){var m=Jr();uc(o,a,u,m)}function uc(o,a,u,m){var v={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Jd(o))a$(a,v);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var F=a.lastRenderedState,J=E(F,u);if(v.hasEagerState=!0,v.eagerState=J,Ur(J,F))return zd(o,a,v,0),Cn===null&&Pd(),!1}catch{}if(u=gg(o,a,v,m),u!==null)return Br(u,o,m),i$(u,a,m),!0}return!1}function Zg(o,a,u,m){if(m={lane:2,revertLane:Nh(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Jd(o)){if(a)throw Error(r(479))}else a=gg(o,u,m,2),a!==null&&Br(a,o,2)}function Jd(o){var a=o.alternate;return o===zt||a!==null&&a===zt}function a$(o,a){Il=Yd=!0;var u=o.pending;u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a}function i$(o,a,u){if((u&4194048)!==0){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Me(o,u)}}var dc={readContext:yr,use:Xd,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};dc.useEffectEvent=zn;var l$={readContext:yr,use:Xd,useCallback:function(o,a){return Or().memoizedState=[o,a===void 0?null:a],o},useContext:yr,useEffect:WC,useImperativeHandle:function(o,a,u){u=u!=null?u.concat([o]):null,Qd(4194308,4,GC.bind(null,a,o),u)},useLayoutEffect:function(o,a){return Qd(4194308,4,o,a)},useInsertionEffect:function(o,a){Qd(4,2,o,a)},useMemo:function(o,a){var u=Or();a=a===void 0?null:a;var m=o();if(Oi){ve(!0);try{o()}finally{ve(!1)}}return u.memoizedState=[m,a],m},useReducer:function(o,a,u){var m=Or();if(u!==void 0){var v=u(a);if(Oi){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=SI.bind(null,zt,o),[m.memoizedState,o]},useRef:function(o){var a=Or();return o={current:o},a.memoizedState=o},useState:function(o){o=qg(o);var a=o.queue,u=o$.bind(null,zt,a);return a.dispatch=u,[o.memoizedState,u]},useDebugValue:Gg,useDeferredValue:function(o,a){var u=Or();return Xg(u,o,a)},useTransition:function(){var o=qg(!1);return o=JC.bind(null,zt,o.queue,!0,!1),Or().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,u){var m=zt,v=Or();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||TC(m,a,u)}v.memoizedState=u;var E={value:u,getSnapshot:a};return v.queue=E,WC(NC.bind(null,m,E,o),[o]),m.flags|=2048,zl(9,{destroy:void 0},OC.bind(null,m,E,u,a),null),u},useId:function(){var o=Or(),a=Cn.identifierPrefix;if(Qt){var u=Vo,m=Lo;u=(m&~(1<<32-Pe(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=Ud++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=mI++,a="_"+a+"r_"+u.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:Qg,useFormState:BC,useActionState:BC,useOptimistic:function(o){var a=Or();a.memoizedState=a.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Zg.bind(null,zt,!0,u),u.dispatch=a,[o,a]},useMemoCache:Fg,useCacheRefresh:function(){return Or().memoizedState=vI.bind(null,zt)},useEffectEvent:function(o){var a=Or(),u={impl:o};return a.memoizedState=u,function(){if((ln&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Jg={readContext:yr,use:Xd,useCallback:KC,useContext:yr,useEffect:Ug,useImperativeHandle:XC,useInsertionEffect:YC,useLayoutEffect:UC,useMemo:QC,useReducer:Kd,useRef:kC,useState:function(){return Kd(la)},useDebugValue:Gg,useDeferredValue:function(o,a){var u=Bn();return ZC(u,hn.memoizedState,o,a)},useTransition:function(){var o=Kd(la)[0],a=Bn().memoizedState;return[typeof o=="boolean"?o:cc(o),a]},useSyncExternalStore:RC,useId:n$,useHostTransitionStatus:Qg,useFormState:LC,useActionState:LC,useOptimistic:function(o,a){var u=Bn();return zC(u,hn,o,a)},useMemoCache:Fg,useCacheRefresh:r$};Jg.useEffectEvent=qC;var s$={readContext:yr,use:Xd,useCallback:KC,useContext:yr,useEffect:Ug,useImperativeHandle:XC,useInsertionEffect:YC,useLayoutEffect:UC,useMemo:QC,useReducer:Wg,useRef:kC,useState:function(){return Wg(la)},useDebugValue:Gg,useDeferredValue:function(o,a){var u=Bn();return hn===null?Xg(u,o,a):ZC(u,hn.memoizedState,o,a)},useTransition:function(){var o=Wg(la)[0],a=Bn().memoizedState;return[typeof o=="boolean"?o:cc(o),a]},useSyncExternalStore:RC,useId:n$,useHostTransitionStatus:Qg,useFormState:FC,useActionState:FC,useOptimistic:function(o,a){var u=Bn();return hn!==null?zC(u,hn,o,a):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:Fg,useCacheRefresh:r$};s$.useEffectEvent=qC;function eh(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 th={enqueueSetState:function(o,a,u){o=o._reactInternals;var m=Jr(),v=Aa(m);v.payload=a,u!=null&&(v.callback=u),a=Da(o,v,m),a!==null&&(Br(a,o,m),ac(a,o,m))},enqueueReplaceState:function(o,a,u){o=o._reactInternals;var m=Jr(),v=Aa(m);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=Da(o,v,m),a!==null&&(Br(a,o,m),ac(a,o,m))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var u=Jr(),m=Aa(u);m.tag=2,a!=null&&(m.callback=a),a=Da(o,m,u),a!==null&&(Br(a,o,u),ac(a,o,u))}};function c$(o,a,u,m,v,E,F){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,E,F):a.prototype&&a.prototype.isPureReactComponent?!Qs(u,m)||!Qs(v,E):!0}function u$(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&&th.enqueueReplaceState(a,a.state,null)}function Ni(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 d$(o){Id(o)}function f$(o){console.error(o)}function m$(o){Id(o)}function ef(o,a){try{var u=o.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function p$(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 nh(o,a,u){return u=Aa(u),u.tag=3,u.payload={element:null},u.callback=function(){ef(o,a)},u}function g$(o){return o=Aa(o),o.tag=3,o}function h$(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(){p$(a,u,m)}}var F=u.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(o.callback=function(){p$(a,u,m),typeof v!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var J=m.stack;this.componentDidCatch(m.value,{componentStack:J!==null?J:""})})}function CI(o,a,u,m,v){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&El(a,u,v,!0),u=Xr.current,u!==null){switch(u.tag){case 31:case 13:return mo===null?mf():u.alternate===null&&An===0&&(An=3),u.flags&=-257,u.flags|=65536,u.lanes=v,m===Vd?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),Rh(o,m,v)),!1;case 22:return u.flags|=65536,m===Vd?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)),Rh(o,m,v)),!1}throw Error(r(435,u.tag))}return Rh(o,m,v),mf(),!1}if(Qt)return a=Xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,m!==Cg&&(o=Error(r(422),{cause:m}),ec(so(o,u)))):(m!==Cg&&(a=Error(r(423),{cause:m}),ec(so(a,u))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,m=so(m,u),v=nh(o.stateNode,m,v),Pg(o,v),An!==4&&(An=2)),!1;var E=Error(r(520),{cause:m});if(E=so(E,u),vc===null?vc=[E]:vc.push(E),An!==4&&(An=2),a===null)return!0;m=so(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,o=v&-v,u.lanes|=o,o=nh(u.stateNode,m,o),Pg(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=g$(v),h$(v,o,u,m),Pg(u,v),!1}u=u.return}while(u!==null);return!1}var rh=Error(r(461)),Yn=!1;function br(o,a,u,m){a.child=o===null?SC(a,null,u,m):Ti(a,o.child,u,m)}function y$(o,a,u,m,v){u=u.render;var E=a.ref;if("ref"in m){var F={};for(var J in m)J!=="ref"&&(F[J]=m[J])}else F=m;return wi(a),m=Hg(o,a,u,F,E,v),J=Bg(),o!==null&&!Yn?(Lg(o,a,v),sa(o,a,v)):(Qt&&J&&vg(a),a.flags|=1,br(o,a,m,v),a.child)}function b$(o,a,u,m,v){if(o===null){var E=u.type;return typeof E=="function"&&!hg(E)&&E.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=E,v$(o,a,E,m,v)):(o=Dd(u.type,null,m,a,a.mode,v),o.ref=a.ref,o.return=a,a.child=o)}if(E=o.child,!dh(o,v)){var F=E.memoizedProps;if(u=u.compare,u=u!==null?u:Qs,u(F,m)&&o.ref===a.ref)return sa(o,a,v)}return a.flags|=1,o=na(E,m),o.ref=a.ref,o.return=a,a.child=o}function v$(o,a,u,m,v){if(o!==null){var E=o.memoizedProps;if(Qs(E,m)&&o.ref===a.ref)if(Yn=!1,a.pendingProps=m=E,dh(o,v))(o.flags&131072)!==0&&(Yn=!0);else return a.lanes=o.lanes,sa(o,a,v)}return oh(o,a,u,m,v)}function S$(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 C$(o,a,E,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&Bd(a,E!==null?E.cachePool:null),E!==null?xC(a,E):Ag(),wC(a);else return m=a.lanes=536870912,C$(o,a,E!==null?E.baseLanes|u:u,u,m)}else E!==null?(Bd(a,E.cachePool),xC(a,E),_a(),a.memoizedState=null):(o!==null&&Bd(a,null),Ag(),_a());return br(o,a,v,u),a.child}function fc(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function C$(o,a,u,m,v){var E=Tg();return E=E===null?null:{parent:Wn._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},o!==null&&Bd(a,null),Ag(),wC(a),o!==null&&El(o,a,m,!0),a.childLanes=v,null}function tf(o,a){return a=rf({mode:a.mode,children:a.children},o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function $$(o,a,u){return Ti(a,o.child,null,u),o=tf(a,a.pendingProps),o.flags|=2,Kr(a),a.memoizedState=null,o}function $I(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=tf(a,m),a.lanes=536870912,fc(null,o);if(jg(a),(o=Rn)?(o=Ax(o,fo),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Oa!==null?{id:Lo,overflow:Vo}:null,retryLane:536870912,hydrationErrors:null},u=aC(o),u.return=a,a.child=u,hr=a,Rn=null)):o=null,o===null)throw Ia(a);return a.lanes=536870912,null}return tf(a,m)}var E=o.memoizedState;if(E!==null){var F=E.dehydrated;if(jg(a),v)if(a.flags&256)a.flags&=-257,a=$$(o,a,u);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(Yn||El(o,a,u,!1),v=(u&o.childLanes)!==0,Yn||v){if(m=Cn,m!==null&&(F=Ye(m,u),F!==0&&F!==E.retryLane))throw E.retryLane=F,Si(o,F),Br(m,o,F),rh;mf(),a=$$(o,a,u)}else o=E.treeContext,Rn=po(F.nextSibling),hr=a,Qt=!0,Na=null,fo=!1,o!==null&&sC(a,o),a=tf(a,m),a.flags|=4096;return a}return o=na(o.child,{mode:m.mode,children:m.children}),o.ref=a.ref,a.child=o,o.return=a,o}function nf(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 oh(o,a,u,m,v){return wi(a),u=Hg(o,a,u,m,void 0,v),m=Bg(),o!==null&&!Yn?(Lg(o,a,v),sa(o,a,v)):(Qt&&m&&vg(a),a.flags|=1,br(o,a,u,v),a.child)}function x$(o,a,u,m,v,E){return wi(a),a.updateQueue=null,u=MC(a,m,u,v),EC(o),m=Bg(),o!==null&&!Yn?(Lg(o,a,E),sa(o,a,E)):(Qt&&m&&vg(a),a.flags|=1,br(o,a,u,E),a.child)}function w$(o,a,u,m,v){if(wi(a),a.stateNode===null){var E=Cl,F=u.contextType;typeof F=="object"&&F!==null&&(E=yr(F)),E=new u(m,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=th,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=m,E.state=a.memoizedState,E.refs={},Ng(a),F=u.contextType,E.context=typeof F=="object"&&F!==null?yr(F):Cl,E.state=a.memoizedState,F=u.getDerivedStateFromProps,typeof F=="function"&&(eh(a,u,F,m),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(F=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),F!==E.state&&th.enqueueReplaceState(E,E.state,null),lc(a,m,E,v),ic(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(o===null){E=a.stateNode;var J=a.memoizedProps,ce=Ni(u,J);E.props=ce;var $e=E.context,je=u.contextType;F=Cl,typeof je=="object"&&je!==null&&(F=yr(je));var ke=u.getDerivedStateFromProps;je=typeof ke=="function"||typeof E.getSnapshotBeforeUpdate=="function",J=a.pendingProps!==J,je||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(J||$e!==F)&&u$(a,E,m,F),za=!1;var xe=a.memoizedState;E.state=xe,lc(a,m,E,v),ic(),$e=a.memoizedState,J||xe!==$e||za?(typeof ke=="function"&&(eh(a,u,ke,m),$e=a.memoizedState),(ce=za||c$(a,u,ce,m,xe,$e,F))?(je||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=$e),E.props=m,E.state=$e,E.context=F,m=ce):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{E=a.stateNode,Ig(o,a),F=a.memoizedProps,je=Ni(u,F),E.props=je,ke=a.pendingProps,xe=E.context,$e=u.contextType,ce=Cl,typeof $e=="object"&&$e!==null&&(ce=yr($e)),J=u.getDerivedStateFromProps,($e=typeof J=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(F!==ke||xe!==ce)&&u$(a,E,m,ce),za=!1,xe=a.memoizedState,E.state=xe,lc(a,m,E,v),ic();var Oe=a.memoizedState;F!==ke||xe!==Oe||za||o!==null&&o.dependencies!==null&&_d(o.dependencies)?(typeof J=="function"&&(eh(a,u,J,m),Oe=a.memoizedState),(je=za||c$(a,u,je,m,xe,Oe,ce)||o!==null&&o.dependencies!==null&&_d(o.dependencies))?($e||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,Oe,ce),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,Oe,ce)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=Oe),E.props=m,E.state=Oe,E.context=ce,m=je):(typeof E.componentDidUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||F===o.memoizedProps&&xe===o.memoizedState||(a.flags|=1024),m=!1)}return E=m,nf(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=Ti(a,o.child,null,v),a.child=Ti(a,null,u,v)):br(o,a,u,v),a.memoizedState=E.state,o=a.child):o=sa(o,a,v),o}function E$(o,a,u,m){return $i(),a.flags|=256,br(o,a,u,m),a.child}var ah={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ih(o){return{baseLanes:o,cachePool:pC()}}function lh(o,a,u){return o=o!==null?o.childLanes&~u:0,a&&(o|=Zr),o}function M$(o,a,u){var m=a.pendingProps,v=!1,E=(a.flags&128)!==0,F;if((F=E)||(F=o!==null&&o.memoizedState===null?!1:(Hn.current&2)!==0),F&&(v=!0,a.flags&=-129),F=(a.flags&32)!==0,a.flags&=-33,o===null){if(Qt){if(v?ja(a):_a(),(o=Rn)?(o=Ax(o,fo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Oa!==null?{id:Lo,overflow:Vo}:null,retryLane:536870912,hydrationErrors:null},u=aC(o),u.return=a,a.child=u,hr=a,Rn=null)):o=null,o===null)throw Ia(a);return kh(o)?a.lanes=32:a.lanes=536870912,null}var J=m.children;return m=m.fallback,v?(_a(),v=a.mode,J=rf({mode:"hidden",children:J},v),m=Ci(m,v,u,null),J.return=a,m.return=a,J.sibling=m,a.child=J,m=a.child,m.memoizedState=ih(u),m.childLanes=lh(o,F,u),a.memoizedState=ah,fc(null,m)):(ja(a),sh(a,J))}var ce=o.memoizedState;if(ce!==null&&(J=ce.dehydrated,J!==null)){if(E)a.flags&256?(ja(a),a.flags&=-257,a=ch(o,a,u)):a.memoizedState!==null?(_a(),a.child=o.child,a.flags|=128,a=null):(_a(),J=m.fallback,v=a.mode,m=rf({mode:"visible",children:m.children},v),J=Ci(J,v,u,null),J.flags|=2,m.return=a,J.return=a,m.sibling=J,a.child=m,Ti(a,o.child,null,u),m=a.child,m.memoizedState=ih(u),m.childLanes=lh(o,F,u),a.memoizedState=ah,a=fc(null,m));else if(ja(a),kh(J)){if(F=J.nextSibling&&J.nextSibling.dataset,F)var $e=F.dgst;F=$e,m=Error(r(419)),m.stack="",m.digest=F,ec({value:m,source:null,stack:null}),a=ch(o,a,u)}else if(Yn||El(o,a,u,!1),F=(u&o.childLanes)!==0,Yn||F){if(F=Cn,F!==null&&(m=Ye(F,u),m!==0&&m!==ce.retryLane))throw ce.retryLane=m,Si(o,m),Br(F,o,m),rh;Fh(J)||mf(),a=ch(o,a,u)}else Fh(J)?(a.flags|=192,a.child=o.child,a=null):(o=ce.treeContext,Rn=po(J.nextSibling),hr=a,Qt=!0,Na=null,fo=!1,o!==null&&sC(a,o),a=sh(a,m.children),a.flags|=4096);return a}return v?(_a(),J=m.fallback,v=a.mode,ce=o.child,$e=ce.sibling,m=na(ce,{mode:"hidden",children:m.children}),m.subtreeFlags=ce.subtreeFlags&65011712,$e!==null?J=na($e,J):(J=Ci(J,v,u,null),J.flags|=2),J.return=a,m.return=a,m.sibling=J,a.child=m,fc(null,m),m=a.child,J=o.child.memoizedState,J===null?J=ih(u):(v=J.cachePool,v!==null?(ce=Wn._currentValue,v=v.parent!==ce?{parent:ce,pool:ce}:v):v=pC(),J={baseLanes:J.baseLanes|u,cachePool:v}),m.memoizedState=J,m.childLanes=lh(o,F,u),a.memoizedState=ah,fc(o.child,m)):(ja(a),u=o.child,o=u.sibling,u=na(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,o!==null&&(F=a.deletions,F===null?(a.deletions=[o],a.flags|=16):F.push(o)),a.child=u,a.memoizedState=null,u)}function sh(o,a){return a=rf({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function rf(o,a){return o=Gr(22,o,null,a),o.lanes=0,o}function ch(o,a,u){return Ti(a,o.child,null,u),o=sh(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function R$(o,a,u){o.lanes|=a;var m=o.alternate;m!==null&&(m.lanes|=a),wg(o.return,a,u)}function uh(o,a,u,m,v,E){var F=o.memoizedState;F===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:v,treeForkCount:E}:(F.isBackwards=a,F.rendering=null,F.renderingStartTime=0,F.last=m,F.tail=u,F.tailMode=v,F.treeForkCount=E)}function T$(o,a,u){var m=a.pendingProps,v=m.revealOrder,E=m.tail;m=m.children;var F=Hn.current,J=(F&2)!==0;if(J?(F=F&1|2,a.flags|=128):F&=1,q(Hn,F),br(o,a,m,u),m=Qt?Js:0,!J&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&R$(o,u,a);else if(o.tag===19)R$(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&&qd(o)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),uh(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&&qd(o)===null){a.child=v;break}o=v.sibling,v.sibling=u,u=v,v=o}uh(a,!0,u,null,E,m);break;case"together":uh(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function sa(o,a,u){if(o!==null&&(a.dependencies=o.dependencies),La|=a.lanes,(u&a.childLanes)===0)if(o!==null){if(El(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=na(o,o.pendingProps),a.child=u,u.return=a;o.sibling!==null;)o=o.sibling,u=u.sibling=na(o,o.pendingProps),u.return=a;u.sibling=null}return a.child}function dh(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&_d(o)))}function xI(o,a,u){switch(a.tag){case 3:ie(a,a.stateNode.containerInfo),Pa(a,Wn,o.memoizedState.cache),$i();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,jg(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?M$(o,a,u):(ja(a),o=sa(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||(El(o,a,u,!1),m=(u&a.childLanes)!==0),v){if(m)return T$(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,S$(o,a,u,a.pendingProps);case 24:Pa(a,Wn,o.memoizedState.cache)}return sa(o,a,u)}function O$(o,a,u){if(o!==null)if(o.memoizedProps!==a.pendingProps)Yn=!0;else{if(!dh(o,u)&&(a.flags&128)===0)return Yn=!1,xI(o,a,u);Yn=(o.flags&131072)!==0}else Yn=!1,Qt&&(a.flags&1048576)!==0&&lC(a,Js,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(o=Mi(a.elementType),a.type=o,typeof o=="function")hg(o)?(m=Ni(o,m),a.tag=1,a=w$(null,a,o,m,u)):(a.tag=0,a=oh(null,a,o,m,u));else{if(o!=null){var v=o.$$typeof;if(v===R){a.tag=11,a=y$(null,a,o,m,u);break e}else if(v===O){a.tag=14,a=b$(null,a,o,m,u);break e}}throw a=L(o)||o,Error(r(306,a,""))}}return a;case 0:return oh(o,a,a.type,a.pendingProps,u);case 1:return m=a.type,v=Ni(m,a.pendingProps),w$(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,Ig(o,a),lc(a,m,null,u);var F=a.memoizedState;if(m=F.cache,Pa(a,Wn,m),m!==E.cache&&Eg(a,[Wn],u,!0),ic(),m=F.element,E.isDehydrated)if(E={element:m,isDehydrated:!1,cache:F.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=E$(o,a,m,u);break e}else if(m!==v){v=so(Error(r(424)),a),ec(v),a=E$(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=po(o.firstChild),hr=a,Qt=!0,Na=null,fo=!0,u=SC(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if($i(),m===v){a=sa(o,a,u);break e}br(o,a,m,u)}a=a.child}return a;case 26:return nf(o,a),o===null?(u=Lx(a.type,null,a.pendingProps,null))?a.memoizedState=u:Qt||(u=a.type,o=a.pendingProps,m=Sf(Z.current).createElement(u),m[$t]=a,m[tn]=o,vr(m,u,o),fn(m),a.stateNode=m):a.memoizedState=Lx(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return oe(a),o===null&&Qt&&(m=a.stateNode=_x(a.type,a.pendingProps,Z.current),hr=a,fo=!0,v=Rn,qa(a.type)?(Wh=v,Rn=po(m.firstChild)):Rn=v),br(o,a,a.pendingProps.children,u),nf(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&Qt&&((v=m=Rn)&&(m=JI(m,a.type,a.pendingProps,fo),m!==null?(a.stateNode=m,hr=a,Rn=po(m.firstChild),fo=!1,v=!0):v=!1),v||Ia(a)),oe(a),v=a.type,E=a.pendingProps,F=o!==null?o.memoizedProps:null,m=E.children,Bh(v,E)?m=null:F!==null&&Bh(v,F)&&(a.flags|=32),a.memoizedState!==null&&(v=Hg(o,a,pI,null,null,u),Rc._currentValue=v),nf(o,a),br(o,a,m,u),a.child;case 6:return o===null&&Qt&&((o=u=Rn)&&(u=eP(u,a.pendingProps,fo),u!==null?(a.stateNode=u,hr=a,Rn=null,o=!0):o=!1),o||Ia(a)),null;case 13:return M$(o,a,u);case 4:return ie(a,a.stateNode.containerInfo),m=a.pendingProps,o===null?a.child=Ti(a,null,m,u):br(o,a,m,u),a.child;case 11:return y$(o,a,a.type,a.pendingProps,u);case 7:return br(o,a,a.pendingProps,u),a.child;case 8:return br(o,a,a.pendingProps.children,u),a.child;case 12:return br(o,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,Pa(a,a.type,m.value),br(o,a,m.children,u),a.child;case 9:return v=a.type._context,m=a.pendingProps.children,wi(a),v=yr(v),m=m(v),a.flags|=1,br(o,a,m,u),a.child;case 14:return b$(o,a,a.type,a.pendingProps,u);case 15:return v$(o,a,a.type,a.pendingProps,u);case 19:return T$(o,a,u);case 31:return $I(o,a,u);case 22:return S$(o,a,u,a.pendingProps);case 24:return wi(a),m=yr(Wn),o===null?(v=Tg(),v===null&&(v=Cn,E=Mg(),v.pooledCache=E,E.refCount++,E!==null&&(v.pooledCacheLanes|=u),v=E),a.memoizedState={parent:m,cache:v},Ng(a),Pa(a,Wn,v)):((o.lanes&u)!==0&&(Ig(o,a),lc(a,null,null,u),ic()),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,Wn,m)):(m=E.cache,Pa(a,Wn,m),m!==v.cache&&Eg(a,[Wn],u,!0))),br(o,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function ca(o){o.flags|=4}function fh(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(nx())o.flags|=8192;else throw Ri=Vd,Og}else o.flags&=-16777217}function N$(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!qx(a))if(nx())o.flags|=8192;else throw Ri=Vd,Og}function of(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?qe():536870912,o.lanes|=a,_l|=a)}function mc(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 wI(o,a,u){var m=a.pendingProps;switch(Sg(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),aa(Wn),ne(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&(wl(a)?ca(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,$g())),Tn(a),null;case 26:var v=a.type,E=a.memoizedState;return o===null?(ca(a),E!==null?(Tn(a),N$(a,E)):(Tn(a),fh(a,v,null,m,u))):E?E!==o.memoizedState?(ca(a),Tn(a),N$(a,E)):(Tn(a),a.flags&=-16777217):(o=o.memoizedProps,o!==m&&ca(a),Tn(a),fh(a,v,o,m,u)),null;case 27:if(de(a),u=Z.current,v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&ca(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return Tn(a),null}o=X.current,wl(a)?cC(a):(o=_x(v,m,u),a.stateNode=o,ca(a))}return Tn(a),null;case 5:if(de(a),v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&ca(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return Tn(a),null}if(E=X.current,wl(a))cC(a);else{var F=Sf(Z.current);switch(E){case 1:E=F.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:E=F.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":E=F.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":E=F.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":E=F.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof m.is=="string"?F.createElement("select",{is:m.is}):F.createElement("select"),m.multiple?E.multiple=!0:m.size&&(E.size=m.size);break;default:E=typeof m.is=="string"?F.createElement(v,{is:m.is}):F.createElement(v)}}E[$t]=a,E[tn]=m;e:for(F=a.child;F!==null;){if(F.tag===5||F.tag===6)E.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===a)break e;for(;F.sibling===null;){if(F.return===null||F.return===a)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}a.stateNode=E;e:switch(vr(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&&ca(a)}}return Tn(a),fh(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,u),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==m&&ca(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(o=Z.current,wl(a)){if(o=a.stateNode,u=a.memoizedProps,m=null,v=hr,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}o[$t]=a,o=!!(o.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||Mx(o.nodeValue,u)),o||Ia(a,!0)}else o=Sf(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=wl(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 $i(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tn(a),o=!1}else u=$g(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return a.flags&256?(Kr(a),a):(Kr(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=wl(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 $i(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Tn(a),v=!1}else v=$g(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(Kr(a),a):(Kr(a),null)}return Kr(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),of(a,a.updateQueue),Tn(a),null);case 4:return ne(),o===null&&Ah(a.stateNode.containerInfo),Tn(a),null;case 10:return aa(a.type),Tn(a),null;case 19:if(j(Hn),m=a.memoizedState,m===null)return Tn(a),null;if(v=(a.flags&128)!==0,E=m.rendering,E===null)if(v)mc(m,!1);else{if(An!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(E=qd(o),E!==null){for(a.flags|=128,mc(m,!1),o=E.updateQueue,a.updateQueue=o,of(a,o),a.subtreeFlags=0,o=u,u=a.child;u!==null;)oC(u,o),u=u.sibling;return q(Hn,Hn.current&1|2),Qt&&ra(a,m.treeForkCount),a.child}o=o.sibling}m.tail!==null&&be()>uf&&(a.flags|=128,v=!0,mc(m,!1),a.lanes=4194304)}else{if(!v)if(o=qd(E),o!==null){if(a.flags|=128,v=!0,o=o.updateQueue,a.updateQueue=o,of(a,o),mc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!E.alternate&&!Qt)return Tn(a),null}else 2*be()-m.renderingStartTime>uf&&u!==536870912&&(a.flags|=128,v=!0,mc(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=be(),o.sibling=null,u=Hn.current,q(Hn,v?u&1|2:u&1),Qt&&ra(a,m.treeForkCount),o):(Tn(a),null);case 22:case 23:return Kr(a),Dg(),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&&of(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&&j(Ei),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),aa(Wn),Tn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function EI(o,a){switch(Sg(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return aa(Wn),ne(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return de(a),null;case 31:if(a.memoizedState!==null){if(Kr(a),a.alternate===null)throw Error(r(340));$i()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(Kr(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));$i()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return j(Hn),null;case 4:return ne(),null;case 10:return aa(a.type),null;case 22:case 23:return Kr(a),Dg(),o!==null&&j(Ei),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return aa(Wn),null;case 25:return null;default:return null}}function I$(o,a){switch(Sg(a),a.tag){case 3:aa(Wn),ne();break;case 26:case 27:case 5:de(a);break;case 4:ne();break;case 31:a.memoizedState!==null&&Kr(a);break;case 13:Kr(a);break;case 19:j(Hn);break;case 10:aa(a.type);break;case 22:case 23:Kr(a),Dg(),o!==null&&j(Ei);break;case 24:aa(Wn)}}function pc(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,F=u.inst;m=E(),F.destroy=m}u=u.next}while(u!==v)}}catch(J){pn(a,a.return,J)}}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 F=m.inst,J=F.destroy;if(J!==void 0){F.destroy=void 0,v=a;var ce=u,$e=J;try{$e()}catch(je){pn(v,ce,je)}}}m=m.next}while(m!==E)}}catch(je){pn(a,a.return,je)}}function P$(o){var a=o.updateQueue;if(a!==null){var u=o.stateNode;try{$C(a,u)}catch(m){pn(o,o.return,m)}}}function z$(o,a,u){u.props=Ni(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(m){pn(o,a,m)}}function gc(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){pn(o,a,v)}}function Fo(o,a){var u=o.ref,m=o.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(v){pn(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){pn(o,a,v)}else u.current=null}function A$(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){pn(o,o.return,v)}}function mh(o,a,u){try{var m=o.stateNode;UI(m,o.type,u,a),m[tn]=a}catch(v){pn(o,o.return,v)}}function D$(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&qa(o.type)||o.tag===4}function ph(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||D$(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 gh(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=Mo));else if(m!==4&&(m===27&&qa(o.type)&&(u=o.stateNode,a=null),o=o.child,o!==null))for(gh(o,a,u),o=o.sibling;o!==null;)gh(o,a,u),o=o.sibling}function af(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(af(o,a,u),o=o.sibling;o!==null;)af(o,a,u),o=o.sibling}function j$(o){var a=o.stateNode,u=o.memoizedProps;try{for(var m=o.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);vr(a,m,u),a[$t]=o,a[tn]=u}catch(E){pn(o,o.return,E)}}var ua=!1,Un=!1,hh=!1,_$=typeof WeakSet=="function"?WeakSet:Set,ir=null;function MI(o,a){if(o=o.containerInfo,_h=Rf,o=X1(o),cg(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 F=0,J=-1,ce=-1,$e=0,je=0,ke=o,xe=null;t:for(;;){for(var Oe;ke!==u||v!==0&&ke.nodeType!==3||(J=F+v),ke!==E||m!==0&&ke.nodeType!==3||(ce=F+m),ke.nodeType===3&&(F+=ke.nodeValue.length),(Oe=ke.firstChild)!==null;)xe=ke,ke=Oe;for(;;){if(ke===o)break t;if(xe===u&&++$e===v&&(J=F),xe===E&&++je===m&&(ce=F),(Oe=ke.nextSibling)!==null)break;ke=xe,xe=ke.parentNode}ke=Oe}u=J===-1||ce===-1?null:{start:J,end:ce}}else u=null}u=u||{start:0,end:0}}else u=null;for(Hh={focusedElem:o,selectionRange:u},Rf=!1,ir=a;ir!==null;)if(a=ir,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ir=o;else for(;ir!==null;){switch(a=ir,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=Ni(u.type,v);o=m.getSnapshotBeforeUpdate(st,E),m.__reactInternalSnapshotBeforeUpdate=o}catch(vt){pn(u,u.return,vt)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,u=o.nodeType,u===9)Vh(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Vh(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,ir=o;break}ir=a.return}}function H$(o,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:fa(o,u),m&4&&pc(5,u);break;case 1:if(fa(o,u),m&4)if(o=u.stateNode,a===null)try{o.componentDidMount()}catch(F){pn(u,u.return,F)}else{var v=Ni(u.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(v,a,o.__reactInternalSnapshotBeforeUpdate)}catch(F){pn(u,u.return,F)}}m&64&&P$(u),m&512&&gc(u,u.return);break;case 3:if(fa(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{$C(o,a)}catch(F){pn(u,u.return,F)}}break;case 27:a===null&&m&4&&j$(u);case 26:case 5:fa(o,u),a===null&&m&4&&A$(u),m&512&&gc(u,u.return);break;case 12:fa(o,u);break;case 31:fa(o,u),m&4&&V$(o,u);break;case 13:fa(o,u),m&4&&F$(o,u),m&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=DI.bind(null,u),tP(o,u))));break;case 22:if(m=u.memoizedState!==null||ua,!m){a=a!==null&&a.memoizedState!==null||Un,v=ua;var E=Un;ua=m,(Un=a)&&!E?ma(o,u,(u.subtreeFlags&8772)!==0):fa(o,u),ua=v,Un=E}break;case 30:break;default:fa(o,u)}}function B$(o){var a=o.alternate;a!==null&&(o.alternate=null,B$(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,Dr=!1;function da(o,a,u){for(u=u.child;u!==null;)L$(o,a,u),u=u.sibling}function L$(o,a,u){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(Qe,u)}catch{}switch(u.tag){case 26:Un||Fo(u,a),da(o,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Un||Fo(u,a);var m=Nn,v=Dr;qa(u.type)&&(Nn=u.stateNode,Dr=!1),da(o,a,u),wc(u.stateNode),Nn=m,Dr=v;break;case 5:Un||Fo(u,a);case 6:if(m=Nn,v=Dr,Nn=null,da(o,a,u),Nn=m,Dr=v,Nn!==null)if(Dr)try{(Nn.nodeType===9?Nn.body:Nn.nodeName==="HTML"?Nn.ownerDocument.body:Nn).removeChild(u.stateNode)}catch(E){pn(u,a,E)}else try{Nn.removeChild(u.stateNode)}catch(E){pn(u,a,E)}break;case 18:Nn!==null&&(Dr?(o=Nn,Px(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),ql(o)):Px(Nn,u.stateNode));break;case 4:m=Nn,v=Dr,Nn=u.stateNode.containerInfo,Dr=!0,da(o,a,u),Nn=m,Dr=v;break;case 0:case 11:case 14:case 15:Ha(2,u,a),Un||Ha(4,u,a),da(o,a,u);break;case 1:Un||(Fo(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&z$(u,a,m)),da(o,a,u);break;case 21:da(o,a,u);break;case 22:Un=(m=Un)||u.memoizedState!==null,da(o,a,u),Un=m;break;default:da(o,a,u)}}function V$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ql(o)}catch(u){pn(a,a.return,u)}}}function F$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ql(o)}catch(u){pn(a,a.return,u)}}function RI(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new _$),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new _$),a;default:throw Error(r(435,o.tag))}}function lf(o,a){var u=RI(o);a.forEach(function(m){if(!u.has(m)){u.add(m);var v=jI.bind(null,o,m);m.then(v,v)}})}function jr(o,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var v=u[m],E=o,F=a,J=F;e:for(;J!==null;){switch(J.tag){case 27:if(qa(J.type)){Nn=J.stateNode,Dr=!1;break e}break;case 5:Nn=J.stateNode,Dr=!1;break e;case 3:case 4:Nn=J.stateNode.containerInfo,Dr=!0;break e}J=J.return}if(Nn===null)throw Error(r(160));L$(E,F,v),Nn=null,Dr=!1,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)k$(a,o),a=a.sibling}var To=null;function k$(o,a){var u=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:jr(a,o),_r(o),m&4&&(Ha(3,o,o.return),pc(3,o),Ha(5,o,o.return));break;case 1:jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),m&64&&ua&&(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=To;if(jr(a,o),_r(o),m&512&&(Un||u===null||Fo(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"))),vr(E,m,u),E[$t]=o,fn(E),m=E;break e;case"link":var F=kx("link","href",v).get(m+(u.href||""));if(F){for(var J=0;J<F.length;J++)if(E=F[J],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)){F.splice(J,1);break t}}E=v.createElement(m),vr(E,m,u),v.head.appendChild(E);break;case"meta":if(F=kx("meta","content",v).get(m+(u.content||""))){for(J=0;J<F.length;J++)if(E=F[J],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)){F.splice(J,1);break t}}E=v.createElement(m),vr(E,m,u),v.head.appendChild(E);break;default:throw Error(r(468,m))}E[$t]=o,fn(E),m=E}o.stateNode=m}else Wx(v,o.type,o.stateNode);else o.stateNode=Fx(v,m,o.memoizedProps);else E!==m?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,m===null?Wx(v,o.type,o.stateNode):Fx(v,m,o.memoizedProps)):m===null&&o.stateNode!==null&&mh(o,o.memoizedProps,u.memoizedProps)}break;case 27:jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),u!==null&&m&4&&mh(o,o.memoizedProps,u.memoizedProps);break;case 5:if(jr(a,o),_r(o),m&512&&(Un||u===null||Fo(u,u.return)),o.flags&32){v=o.stateNode;try{Bo(v,"")}catch(st){pn(o,o.return,st)}}m&4&&o.stateNode!=null&&(v=o.memoizedProps,mh(o,v,u!==null?u.memoizedProps:v)),m&1024&&(hh=!0);break;case 6:if(jr(a,o),_r(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,u=o.stateNode;try{u.nodeValue=m}catch(st){pn(o,o.return,st)}}break;case 3:if(xf=null,v=To,To=Cf(a.containerInfo),jr(a,o),To=v,_r(o),m&4&&u!==null&&u.memoizedState.isDehydrated)try{ql(a.containerInfo)}catch(st){pn(o,o.return,st)}hh&&(hh=!1,W$(o));break;case 4:m=To,To=Cf(o.stateNode.containerInfo),jr(a,o),_r(o),To=m;break;case 12:jr(a,o),_r(o);break;case 31:jr(a,o),_r(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,lf(o,m)));break;case 13:jr(a,o),_r(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(cf=be()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,lf(o,m)));break;case 22:v=o.memoizedState!==null;var ce=u!==null&&u.memoizedState!==null,$e=ua,je=Un;if(ua=$e||v,Un=je||ce,jr(a,o),Un=je,ua=$e,_r(o),m&8192)e:for(a=o.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(u===null||ce||ua||Un||Ii(o)),u=null,a=o;;){if(a.tag===5||a.tag===26){if(u===null){ce=u=a;try{if(E=ce.stateNode,v)F=E.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{J=ce.stateNode;var ke=ce.memoizedProps.style,xe=ke!=null&&ke.hasOwnProperty("display")?ke.display:null;J.style.display=xe==null||typeof xe=="boolean"?"":(""+xe).trim()}}catch(st){pn(ce,ce.return,st)}}}else if(a.tag===6){if(u===null){ce=a;try{ce.stateNode.nodeValue=v?"":ce.memoizedProps}catch(st){pn(ce,ce.return,st)}}}else if(a.tag===18){if(u===null){ce=a;try{var Oe=ce.stateNode;v?zx(Oe,!0):zx(ce.stateNode,!1)}catch(st){pn(ce,ce.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,lf(o,u))));break;case 19:jr(a,o),_r(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,lf(o,m)));break;case 30:break;case 21:break;default:jr(a,o),_r(o)}}function _r(o){var a=o.flags;if(a&2){try{for(var u,m=o.return;m!==null;){if(D$(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,E=ph(o);af(o,E,v);break;case 5:var F=u.stateNode;u.flags&32&&(Bo(F,""),u.flags&=-33);var J=ph(o);af(o,J,F);break;case 3:case 4:var ce=u.stateNode.containerInfo,$e=ph(o);gh(o,$e,ce);break;default:throw Error(r(161))}}catch(je){pn(o,o.return,je)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function W$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;W$(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function fa(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)H$(o,a.alternate,a),a=a.sibling}function Ii(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),Ii(a);break;case 1:Fo(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&z$(a,a.return,u),Ii(a);break;case 27:wc(a.stateNode);case 26:case 5:Fo(a,a.return),Ii(a);break;case 22:a.memoizedState===null&&Ii(a);break;case 30:Ii(a);break;default:Ii(a)}o=o.sibling}}function ma(o,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,v=o,E=a,F=E.flags;switch(E.tag){case 0:case 11:case 15:ma(v,E,u),pc(4,E);break;case 1:if(ma(v,E,u),m=E,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch($e){pn(m,m.return,$e)}if(m=E,v=m.updateQueue,v!==null){var J=m.stateNode;try{var ce=v.shared.hiddenCallbacks;if(ce!==null)for(v.shared.hiddenCallbacks=null,v=0;v<ce.length;v++)CC(ce[v],J)}catch($e){pn(m,m.return,$e)}}u&&F&64&&P$(E),gc(E,E.return);break;case 27:j$(E);case 26:case 5:ma(v,E,u),u&&m===null&&F&4&&A$(E),gc(E,E.return);break;case 12:ma(v,E,u);break;case 31:ma(v,E,u),u&&F&4&&V$(v,E);break;case 13:ma(v,E,u),u&&F&4&&F$(v,E);break;case 22:E.memoizedState===null&&ma(v,E,u),gc(E,E.return);break;case 30:break;default:ma(v,E,u)}a=a.sibling}}function yh(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&&tc(u))}function bh(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&tc(o))}function Oo(o,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)q$(o,a,u,m),a=a.sibling}function q$(o,a,u,m){var v=a.flags;switch(a.tag){case 0:case 11:case 15:Oo(o,a,u,m),v&2048&&pc(9,a);break;case 1:Oo(o,a,u,m);break;case 3:Oo(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&&tc(o)));break;case 12:if(v&2048){Oo(o,a,u,m),o=a.stateNode;try{var E=a.memoizedProps,F=E.id,J=E.onPostCommit;typeof J=="function"&&J(F,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ce){pn(a,a.return,ce)}}else Oo(o,a,u,m);break;case 31:Oo(o,a,u,m);break;case 13:Oo(o,a,u,m);break;case 23:break;case 22:E=a.stateNode,F=a.alternate,a.memoizedState!==null?E._visibility&2?Oo(o,a,u,m):hc(o,a):E._visibility&2?Oo(o,a,u,m):(E._visibility|=2,Al(o,a,u,m,(a.subtreeFlags&10256)!==0||!1)),v&2048&&yh(F,a);break;case 24:Oo(o,a,u,m),v&2048&&bh(a.alternate,a);break;default:Oo(o,a,u,m)}}function Al(o,a,u,m,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=o,F=a,J=u,ce=m,$e=F.flags;switch(F.tag){case 0:case 11:case 15:Al(E,F,J,ce,v),pc(8,F);break;case 23:break;case 22:var je=F.stateNode;F.memoizedState!==null?je._visibility&2?Al(E,F,J,ce,v):hc(E,F):(je._visibility|=2,Al(E,F,J,ce,v)),v&&$e&2048&&yh(F.alternate,F);break;case 24:Al(E,F,J,ce,v),v&&$e&2048&&bh(F.alternate,F);break;default:Al(E,F,J,ce,v)}a=a.sibling}}function hc(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:hc(u,m),v&2048&&yh(m.alternate,m);break;case 24:hc(u,m),v&2048&&bh(m.alternate,m);break;default:hc(u,m)}a=a.sibling}}var yc=8192;function Dl(o,a,u){if(o.subtreeFlags&yc)for(o=o.child;o!==null;)Y$(o,a,u),o=o.sibling}function Y$(o,a,u){switch(o.tag){case 26:Dl(o,a,u),o.flags&yc&&o.memoizedState!==null&&mP(u,To,o.memoizedState,o.memoizedProps);break;case 5:Dl(o,a,u);break;case 3:case 4:var m=To;To=Cf(o.stateNode.containerInfo),Dl(o,a,u),To=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=yc,yc=16777216,Dl(o,a,u),yc=m):Dl(o,a,u));break;default:Dl(o,a,u)}}function U$(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 bc(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];ir=m,X$(m,o)}U$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)G$(o),o=o.sibling}function G$(o){switch(o.tag){case 0:case 11:case 15:bc(o),o.flags&2048&&Ha(9,o,o.return);break;case 3:bc(o);break;case 12:bc(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,sf(o)):bc(o);break;default:bc(o)}}function sf(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];ir=m,X$(m,o)}U$(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),sf(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,sf(a));break;default:sf(a)}o=o.sibling}}function X$(o,a){for(;ir!==null;){var u=ir;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:tc(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,ir=m;else e:for(u=o;ir!==null;){m=ir;var v=m.sibling,E=m.return;if(B$(m),m===u){ir=null;break e}if(v!==null){v.return=E,ir=v;break e}ir=E}}}var TI={getCacheForType:function(o){var a=yr(Wn),u=a.data.get(o);return u===void 0&&(u=o(),a.data.set(o,u)),u},cacheSignal:function(){return yr(Wn).controller.signal}},OI=typeof WeakMap=="function"?WeakMap:Map,ln=0,Cn=null,Wt=null,Gt=0,mn=0,Qr=null,Ba=!1,jl=!1,vh=!1,pa=0,An=0,La=0,Pi=0,Sh=0,Zr=0,_l=0,vc=null,Hr=null,Ch=!1,cf=0,K$=0,uf=1/0,df=null,Va=null,Zn=0,Fa=null,Hl=null,ga=0,$h=0,xh=null,Q$=null,Sc=0,wh=null;function Jr(){return(ln&2)!==0&&Gt!==0?Gt&-Gt:_.T!==null?Nh():ft()}function Z$(){if(Zr===0)if((Gt&536870912)===0||Qt){var o=Xe;Xe<<=1,(Xe&3932160)===0&&(Xe=262144),Zr=o}else Zr=536870912;return o=Xr.current,o!==null&&(o.flags|=32),Zr}function Br(o,a,u){(o===Cn&&(mn===2||mn===9)||o.cancelPendingCommit!==null)&&(Bl(o,0),ka(o,Gt,Zr,!1)),He(o,u),((ln&2)===0||o!==Cn)&&(o===Cn&&((ln&2)===0&&(Pi|=u),An===4&&ka(o,Gt,Zr,!1)),ko(o))}function J$(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?PI(o,a):Mh(o,a,!0),E=m;do{if(v===0){jl&&!m&&ka(o,a,0,!1);break}else{if(u=o.current.alternate,E&&!NI(u)){v=Mh(o,a,!1),E=!1;continue}if(v===2){if(E=a,o.errorRecoveryDisabledLanes&E)var F=0;else F=o.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){a=F;e:{var J=o;v=vc;var ce=J.current.memoizedState.isDehydrated;if(ce&&(Bl(J,F).flags|=256),F=Mh(J,F,!1),F!==2){if(vh&&!ce){J.errorRecoveryDisabledLanes|=E,Pi|=E,v=4;break e}E=Hr,Hr=v,E!==null&&(Hr===null?Hr=E:Hr.push.apply(Hr,E))}v=F}if(E=!1,v!==2)continue}}if(v===1){Bl(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,Zr,!Ba);break e;case 2:Hr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=cf+300-be(),10<v)){if(ka(m,a,Zr,!Ba),lt(m,0,!0)!==0)break e;ga=a,m.timeoutHandle=Nx(ex.bind(null,m,u,Hr,df,Ch,a,Zr,Pi,_l,Ba,E,"Throttled",-0,0),v);break e}ex(m,u,Hr,df,Ch,a,Zr,Pi,_l,Ba,E,null,-0,0)}}break}while(!0);ko(o)}function ex(o,a,u,m,v,E,F,J,ce,$e,je,ke,xe,Oe){if(o.timeoutHandle=-1,ke=a.subtreeFlags,ke&8192||(ke&16785408)===16785408){ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mo},Y$(a,E,ke);var st=(E&62914560)===E?cf-be():(E&4194048)===E?K$-be():0;if(st=pP(ke,st),st!==null){ga=E,o.cancelPendingCommit=st(sx.bind(null,o,a,E,u,m,v,F,J,ce,je,ke,null,xe,Oe)),ka(o,E,F,!$e);return}}sx(o,a,E,u,m,v,F,J,ce)}function NI(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(!Ur(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&=~Sh,a&=~Pi,o.suspendedLanes|=a,o.pingedLanes&=~a,m&&(o.warmLanes|=a),m=o.expirationTimes;for(var v=a;0<v;){var E=31-Pe(v),F=1<<E;m[E]=-1,v&=~F}u!==0&&We(o,u,a)}function ff(){return(ln&6)===0?(Cc(0),!1):!0}function Eh(){if(Wt!==null){if(mn===0)var o=Wt.return;else o=Wt,oa=xi=null,Vg(o),Ol=null,rc=0,o=Wt;for(;o!==null;)I$(o.alternate,o),o=o.return;Wt=null}}function Bl(o,a){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,KI(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ga=0,Eh(),Cn=o,Wt=u=na(o.current,null),Gt=a,mn=0,Qr=null,Ba=!1,jl=St(o,a),vh=!1,_l=Zr=Sh=Pi=La=An=0,Hr=vc=null,Ch=!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-Pe(m),E=1<<v;a|=o[v],m&=~E}return pa=a,Pd(),u}function tx(o,a){zt=null,_.H=dc,a===Tl||a===Ld?(a=yC(),mn=3):a===Og?(a=yC(),mn=4):mn=a===rh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Qr=a,Wt===null&&(An=1,ef(o,so(a,o.current)))}function nx(){var o=Xr.current;return o===null?!0:(Gt&4194048)===Gt?mo===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?o===mo:!1}function rx(){var o=_.H;return _.H=dc,o===null?dc:o}function ox(){var o=_.A;return _.A=TI,o}function mf(){An=4,Ba||(Gt&4194048)!==Gt&&Xr.current!==null||(jl=!0),(La&134217727)===0&&(Pi&134217727)===0||Cn===null||ka(Cn,Gt,Zr,!1)}function Mh(o,a,u){var m=ln;ln|=2;var v=rx(),E=ox();(Cn!==o||Gt!==a)&&(df=null,Bl(o,a)),a=!1;var F=An;e:do try{if(mn!==0&&Wt!==null){var J=Wt,ce=Qr;switch(mn){case 8:Eh(),F=6;break e;case 3:case 2:case 9:case 6:Xr.current===null&&(a=!0);var $e=mn;if(mn=0,Qr=null,Ll(o,J,ce,$e),u&&jl){F=0;break e}break;default:$e=mn,mn=0,Qr=null,Ll(o,J,ce,$e)}}II(),F=An;break}catch(je){tx(o,je)}while(!0);return a&&o.shellSuspendCounter++,oa=xi=null,ln=m,_.H=v,_.A=E,Wt===null&&(Cn=null,Gt=0,Pd()),F}function II(){for(;Wt!==null;)ax(Wt)}function PI(o,a){var u=ln;ln|=2;var m=rx(),v=ox();Cn!==o||Gt!==a?(df=null,uf=be()+500,Bl(o,a)):jl=St(o,a);e:do try{if(mn!==0&&Wt!==null){a=Wt;var E=Qr;t:switch(mn){case 1:mn=0,Qr=null,Ll(o,a,E,1);break;case 2:case 9:if(gC(E)){mn=0,Qr=null,ix(a);break}a=function(){mn!==2&&mn!==9||Cn!==o||(mn=7),ko(o)},E.then(a,a);break e;case 3:mn=7;break e;case 4:mn=5;break e;case 7:gC(E)?(mn=0,Qr=null,ix(a)):(mn=0,Qr=null,Ll(o,a,E,7));break;case 5:var F=null;switch(Wt.tag){case 26:F=Wt.memoizedState;case 5:case 27:var J=Wt;if(F?qx(F):J.stateNode.complete){mn=0,Qr=null;var ce=J.sibling;if(ce!==null)Wt=ce;else{var $e=J.return;$e!==null?(Wt=$e,pf($e)):Wt=null}break t}}mn=0,Qr=null,Ll(o,a,E,5);break;case 6:mn=0,Qr=null,Ll(o,a,E,6);break;case 8:Eh(),An=6;break e;default:throw Error(r(462))}}zI();break}catch(je){tx(o,je)}while(!0);return oa=xi=null,_.H=m,_.A=v,ln=u,Wt!==null?0:(Cn=null,Gt=0,Pd(),An)}function zI(){for(;Wt!==null&&!we();)ax(Wt)}function ax(o){var a=O$(o.alternate,o,pa);o.memoizedProps=o.pendingProps,a===null?pf(o):Wt=a}function ix(o){var a=o,u=a.alternate;switch(a.tag){case 15:case 0:a=x$(u,a,a.pendingProps,a.type,void 0,Gt);break;case 11:a=x$(u,a,a.pendingProps,a.type.render,a.ref,Gt);break;case 5:Vg(a);default:I$(u,a),a=Wt=oC(a,pa),a=O$(u,a,pa)}o.memoizedProps=o.pendingProps,a===null?pf(o):Wt=a}function Ll(o,a,u,m){oa=xi=null,Vg(a),Ol=null,rc=0;var v=a.return;try{if(CI(o,v,a,u,Gt)){An=1,ef(o,so(u,o.current)),Wt=null;return}}catch(E){if(v!==null)throw Wt=v,E;An=1,ef(o,so(u,o.current)),Wt=null;return}a.flags&32768?(Qt||m===1?o=!0:jl||(Gt&536870912)!==0?o=!1:(Ba=o=!0,(m===2||m===9||m===3||m===6)&&(m=Xr.current,m!==null&&m.tag===13&&(m.flags|=16384))),lx(a,o)):pf(a)}function pf(o){var a=o;do{if((a.flags&32768)!==0){lx(a,Ba);return}o=a.return;var u=wI(a.alternate,a,pa);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 lx(o,a){do{var u=EI(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 sx(o,a,u,m,v,E,F,J,ce){o.cancelPendingCommit=null;do gf();while(Zn!==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|=pg,Ae(o,u,E,F,J,ce),o===Cn&&(Wt=Cn=null,Gt=0),Hl=a,Fa=o,ga=u,$h=E,xh=v,Q$=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,_I(Ge,function(){return mx(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=_.T,_.T=null,v=B.p,B.p=2,F=ln,ln|=4;try{MI(o,a,u)}finally{ln=F,B.p=v,_.T=m}}Zn=1,cx(),ux(),dx()}}function cx(){if(Zn===1){Zn=0;var o=Fa,a=Hl,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=_.T,_.T=null;var m=B.p;B.p=2;var v=ln;ln|=4;try{k$(a,o);var E=Hh,F=X1(o.containerInfo),J=E.focusedElem,ce=E.selectionRange;if(F!==J&&J&&J.ownerDocument&&G1(J.ownerDocument.documentElement,J)){if(ce!==null&&cg(J)){var $e=ce.start,je=ce.end;if(je===void 0&&(je=$e),"selectionStart"in J)J.selectionStart=$e,J.selectionEnd=Math.min(je,J.value.length);else{var ke=J.ownerDocument||document,xe=ke&&ke.defaultView||window;if(xe.getSelection){var Oe=xe.getSelection(),st=J.textContent.length,vt=Math.min(ce.start,st),bn=ce.end===void 0?vt:Math.min(ce.end,st);!Oe.extend&&vt>bn&&(F=bn,bn=vt,vt=F);var ye=U1(J,vt),me=U1(J,bn);if(ye&&me&&(Oe.rangeCount!==1||Oe.anchorNode!==ye.node||Oe.anchorOffset!==ye.offset||Oe.focusNode!==me.node||Oe.focusOffset!==me.offset)){var Ce=ke.createRange();Ce.setStart(ye.node,ye.offset),Oe.removeAllRanges(),vt>bn?(Oe.addRange(Ce),Oe.extend(me.node,me.offset)):(Ce.setEnd(me.node,me.offset),Oe.addRange(Ce))}}}}for(ke=[],Oe=J;Oe=Oe.parentNode;)Oe.nodeType===1&&ke.push({element:Oe,left:Oe.scrollLeft,top:Oe.scrollTop});for(typeof J.focus=="function"&&J.focus(),J=0;J<ke.length;J++){var Be=ke[J];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}Rf=!!_h,Hh=_h=null}finally{ln=v,B.p=m,_.T=u}}o.current=a,Zn=2}}function ux(){if(Zn===2){Zn=0;var o=Fa,a=Hl,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=_.T,_.T=null;var m=B.p;B.p=2;var v=ln;ln|=4;try{H$(o,a.alternate,a)}finally{ln=v,B.p=m,_.T=u}}Zn=3}}function dx(){if(Zn===4||Zn===3){Zn=0,se();var o=Fa,a=Hl,u=ga,m=Q$;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Zn=5:(Zn=0,Hl=Fa=null,fx(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(Va=null),it(u),a=a.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(Qe,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=_.T,v=B.p,B.p=2,_.T=null;try{for(var E=o.onRecoverableError,F=0;F<m.length;F++){var J=m[F];E(J.value,{componentStack:J.stack})}}finally{_.T=a,B.p=v}}(ga&3)!==0&&gf(),ko(o),v=o.pendingLanes,(u&261930)!==0&&(v&42)!==0?o===wh?Sc++:(Sc=0,wh=o):Sc=0,Cc(0)}}function fx(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,tc(a)))}function gf(){return cx(),ux(),dx(),mx()}function mx(){if(Zn!==5)return!1;var o=Fa,a=$h;$h=0;var u=it(ga),m=_.T,v=B.p;try{B.p=32>u?32:u,_.T=null,u=xh,xh=null;var E=Fa,F=ga;if(Zn=0,Hl=Fa=null,ga=0,(ln&6)!==0)throw Error(r(331));var J=ln;if(ln|=4,G$(E.current),q$(E,E.current,F,u),ln=J,Cc(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(Qe,E)}catch{}return!0}finally{B.p=v,_.T=m,fx(o,a)}}function px(o,a,u){a=so(u,a),a=nh(o.stateNode,a,2),o=Da(o,a,2),o!==null&&(He(o,2),ko(o))}function pn(o,a,u){if(o.tag===3)px(o,o,u);else for(;a!==null;){if(a.tag===3){px(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=so(u,o),u=g$(2),m=Da(a,u,2),m!==null&&(h$(u,m,a,o),He(m,2),ko(m));break}}a=a.return}}function Rh(o,a,u){var m=o.pingCache;if(m===null){m=o.pingCache=new OI;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)||(vh=!0,v.add(u),o=AI.bind(null,o,a,u),a.then(o,o))}function AI(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>be()-cf?(ln&2)===0&&Bl(o,0):Sh|=u,_l===Gt&&(_l=0)),ko(o)}function gx(o,a){a===0&&(a=qe()),o=Si(o,a),o!==null&&(He(o,a),ko(o))}function DI(o){var a=o.memoizedState,u=0;a!==null&&(u=a.retryLane),gx(o,u)}function jI(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),gx(o,u)}function _I(o,a){return Ie(o,a)}var hf=null,Vl=null,Th=!1,yf=!1,Oh=!1,Wa=0;function ko(o){o!==Vl&&o.next===null&&(Vl===null?hf=Vl=o:Vl=Vl.next=o),yf=!0,Th||(Th=!0,BI())}function Cc(o,a){if(!Oh&&yf){Oh=!0;do for(var u=!1,m=hf;m!==null;){if(o!==0){var v=m.pendingLanes;if(v===0)var E=0;else{var F=m.suspendedLanes,J=m.pingedLanes;E=(1<<31-Pe(42|o)+1)-1,E&=v&~(F&~J),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,vx(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,vx(m,E));m=m.next}while(u);Oh=!1}}function HI(){hx()}function hx(){yf=Th=!1;var o=0;Wa!==0&&XI()&&(o=Wa);for(var a=be(),u=null,m=hf;m!==null;){var v=m.next,E=yx(m,a);E===0?(m.next=null,u===null?hf=v:u.next=v,v===null&&(Vl=u)):(u=m,(o!==0||(E&3)!==0)&&(yf=!0)),m=v}Zn!==0&&Zn!==5||Cc(o),Wa!==0&&(Wa=0)}function yx(o,a){for(var u=o.suspendedLanes,m=o.pingedLanes,v=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var F=31-Pe(E),J=1<<F,ce=v[F];ce===-1?((J&u)===0||(J&m)!==0)&&(v[F]=Ct(J,a)):ce<=a&&(o.expiredLanes|=J),E&=~J}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&&(mn===2||mn===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&Re(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&&Re(m),it(u)){case 2:case 8:u=Ve;break;case 32:u=Ge;break;case 268435456:u=Te;break;default:u=Ge}return m=bx.bind(null,o),u=Ie(u,m),o.callbackPriority=a,o.callbackNode=u,a}return m!==null&&m!==null&&Re(m),o.callbackPriority=2,o.callbackNode=null,2}function bx(o,a){if(Zn!==0&&Zn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(gf()&&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:(J$(o,m,a),yx(o,be()),o.callbackNode!=null&&o.callbackNode===u?bx.bind(null,o):null)}function vx(o,a){if(gf())return null;J$(o,a,!0)}function BI(){QI(function(){(ln&6)!==0?Ie(Ne,HI):hx()})}function Nh(){if(Wa===0){var o=Ml;o===0&&(o=ze,ze<<=1,(ze&261888)===0&&(ze=256)),Wa=o}return Wa}function Sx(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:hl(""+o)}function Cx(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 LI(o,a,u,m,v){if(a==="submit"&&u&&u.stateNode===v){var E=Sx((v[tn]||null).action),F=m.submitter;F&&(a=(a=F[tn]||null)?Sx(a.formAction):F.getAttribute("formAction"),a!==null&&(E=a,F=null));var J=new Td("action","action",null,m,v);o.push({event:J,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Wa!==0){var ce=F?Cx(v,F):new FormData(v);Kg(u,{pending:!0,data:ce,method:v.method,action:E},null,ce)}}else typeof E=="function"&&(J.preventDefault(),ce=F?Cx(v,F):new FormData(v),Kg(u,{pending:!0,data:ce,method:v.method,action:E},E,ce))},currentTarget:v}]})}}for(var Ih=0;Ih<mg.length;Ih++){var Ph=mg[Ih],VI=Ph.toLowerCase(),FI=Ph[0].toUpperCase()+Ph.slice(1);Ro(VI,"on"+FI)}Ro(Z1,"onAnimationEnd"),Ro(J1,"onAnimationIteration"),Ro(eC,"onAnimationStart"),Ro("dblclick","onDoubleClick"),Ro("focusin","onFocus"),Ro("focusout","onBlur"),Ro(oI,"onTransitionRun"),Ro(aI,"onTransitionStart"),Ro(iI,"onTransitionCancel"),Ro(tC,"onTransitionEnd"),pr("onMouseEnter",["mouseout","mouseover"]),pr("onMouseLeave",["mouseout","mouseover"]),pr("onPointerEnter",["pointerout","pointerover"]),pr("onPointerLeave",["pointerout","pointerover"]),$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$r("onBeforeInput",["compositionend","keypress","textInput","paste"]),$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $c="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(" "),kI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($c));function $x(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 F=m.length-1;0<=F;F--){var J=m[F],ce=J.instance,$e=J.currentTarget;if(J=J.listener,ce!==E&&v.isPropagationStopped())break e;E=J,v.currentTarget=$e;try{E(v)}catch(je){Id(je)}v.currentTarget=null,E=ce}else for(F=0;F<m.length;F++){if(J=m[F],ce=J.instance,$e=J.currentTarget,J=J.listener,ce!==E&&v.isPropagationStopped())break e;E=J,v.currentTarget=$e;try{E(v)}catch(je){Id(je)}v.currentTarget=null,E=ce}}}}function qt(o,a){var u=a[Ke];u===void 0&&(u=a[Ke]=new Set);var m=o+"__bubble";u.has(m)||(xx(a,o,2,!1),u.add(m))}function zh(o,a,u){var m=0;a&&(m|=4),xx(u,o,m,a)}var bf="_reactListening"+Math.random().toString(36).slice(2);function Ah(o){if(!o[bf]){o[bf]=!0,mr.forEach(function(u){u!=="selectionchange"&&(kI.has(u)||zh(u,!1,o),zh(u,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[bf]||(a[bf]=!0,zh("selectionchange",!1,a))}}function xx(o,a,u,m){switch(Zx(a)){case 2:var v=yP;break;case 8:v=bP;break;default:v=Xh}u=v.bind(null,a,u,o),v=void 0,!eg||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 Dh(o,a,u,m,v){var E=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var F=m.tag;if(F===3||F===4){var J=m.stateNode.containerInfo;if(J===v)break;if(F===4)for(F=m.return;F!==null;){var ce=F.tag;if((ce===3||ce===4)&&F.stateNode.containerInfo===v)return;F=F.return}for(;J!==null;){if(F=kt(J),F===null)return;if(ce=F.tag,ce===5||ce===6||ce===26||ce===27){m=E=F;continue e}J=J.parentNode}}m=m.return}T1(function(){var $e=E,je=bt(u),ke=[];e:{var xe=nC.get(o);if(xe!==void 0){var Oe=Td,st=o;switch(o){case"keypress":if(Md(u)===0)break e;case"keydown":case"keyup":Oe=jN;break;case"focusin":st="focus",Oe=og;break;case"focusout":st="blur",Oe=og;break;case"beforeblur":case"afterblur":Oe=og;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":Oe=I1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=wN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=BN;break;case Z1:case J1:case eC:Oe=RN;break;case tC:Oe=VN;break;case"scroll":case"scrollend":Oe=$N;break;case"wheel":Oe=kN;break;case"copy":case"cut":case"paste":Oe=ON;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=z1;break;case"toggle":case"beforetoggle":Oe=qN}var vt=(a&4)!==0,bn=!vt&&(o==="scroll"||o==="scrollend"),ye=vt?xe!==null?xe+"Capture":null:xe;vt=[];for(var me=$e,Ce;me!==null;){var Be=me;if(Ce=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||Ce===null||ye===null||(Be=Ws(me,ye),Be!=null&&vt.push(xc(me,Be,Ce))),bn)break;me=me.return}0<vt.length&&(xe=new Oe(xe,st,null,u,je),ke.push({event:xe,listeners:vt}))}}if((a&7)===0){e:{if(xe=o==="mouseover"||o==="pointerover",Oe=o==="mouseout"||o==="pointerout",xe&&u!==Vt&&(st=u.relatedTarget||u.fromElement)&&(kt(st)||st[wt]))break e;if((Oe||xe)&&(xe=je.window===je?je:(xe=je.ownerDocument)?xe.defaultView||xe.parentWindow:window,Oe?(st=u.relatedTarget||u.toElement,Oe=$e,st=st?kt(st):null,st!==null&&(bn=s(st),vt=st.tag,st!==bn||vt!==5&&vt!==27&&vt!==6)&&(st=null)):(Oe=null,st=$e),Oe!==st)){if(vt=I1,Be="onMouseLeave",ye="onMouseEnter",me="mouse",(o==="pointerout"||o==="pointerover")&&(vt=z1,Be="onPointerLeave",ye="onPointerEnter",me="pointer"),bn=Oe==null?xe:En(Oe),Ce=st==null?xe:En(st),xe=new vt(Be,me+"leave",Oe,u,je),xe.target=bn,xe.relatedTarget=Ce,Be=null,kt(je)===$e&&(vt=new vt(ye,me+"enter",st,u,je),vt.target=Ce,vt.relatedTarget=bn,Be=vt),bn=Be,Oe&&st)t:{for(vt=WI,ye=Oe,me=st,Ce=0,Be=ye;Be;Be=vt(Be))Ce++;Be=0;for(var pt=me;pt;pt=vt(pt))Be++;for(;0<Ce-Be;)ye=vt(ye),Ce--;for(;0<Be-Ce;)me=vt(me),Be--;for(;Ce--;){if(ye===me||me!==null&&ye===me.alternate){vt=ye;break t}ye=vt(ye),me=vt(me)}vt=null}else vt=null;Oe!==null&&wx(ke,xe,Oe,vt,!1),st!==null&&bn!==null&&wx(ke,bn,st,vt,!0)}}e:{if(xe=$e?En($e):window,Oe=xe.nodeName&&xe.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&xe.type==="file")var rn=V1;else if(B1(xe))if(F1)rn=tI;else{rn=JN;var ct=ZN}else Oe=xe.nodeName,!Oe||Oe.toLowerCase()!=="input"||xe.type!=="checkbox"&&xe.type!=="radio"?$e&&zr($e.elementType)&&(rn=V1):rn=eI;if(rn&&(rn=rn(o,$e))){L1(ke,rn,u,je);break e}ct&&ct(o,xe,$e),o==="focusout"&&$e&&xe.type==="number"&&$e.memoizedProps.value!=null&&Ho(xe,"number",xe.value)}switch(ct=$e?En($e):window,o){case"focusin":(B1(ct)||ct.contentEditable==="true")&&(bl=ct,ug=$e,Zs=null);break;case"focusout":Zs=ug=bl=null;break;case"mousedown":dg=!0;break;case"contextmenu":case"mouseup":case"dragend":dg=!1,K1(ke,u,je);break;case"selectionchange":if(rI)break;case"keydown":case"keyup":K1(ke,u,je)}var jt;if(ig)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 yl?_1(o,u)&&(Xt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Xt="onCompositionStart");Xt&&(A1&&u.locale!=="ko"&&(yl||Xt!=="onCompositionStart"?Xt==="onCompositionEnd"&&yl&&(jt=O1()):(Ta=je,tg="value"in Ta?Ta.value:Ta.textContent,yl=!0)),ct=vf($e,Xt),0<ct.length&&(Xt=new P1(Xt,o,null,u,je),ke.push({event:Xt,listeners:ct}),jt?Xt.data=jt:(jt=H1(u),jt!==null&&(Xt.data=jt)))),(jt=UN?GN(o,u):XN(o,u))&&(Xt=vf($e,"onBeforeInput"),0<Xt.length&&(ct=new P1("onBeforeInput","beforeinput",null,u,je),ke.push({event:ct,listeners:Xt}),ct.data=jt)),LI(ke,o,$e,u,je)}$x(ke,a)})}function xc(o,a,u){return{instance:o,listener:a,currentTarget:u}}function vf(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=Ws(o,u),v!=null&&m.unshift(xc(o,v,E)),v=Ws(o,a),v!=null&&m.push(xc(o,v,E))),o.tag===3)return m;o=o.return}return[]}function WI(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function wx(o,a,u,m,v){for(var E=a._reactName,F=[];u!==null&&u!==m;){var J=u,ce=J.alternate,$e=J.stateNode;if(J=J.tag,ce!==null&&ce===m)break;J!==5&&J!==26&&J!==27||$e===null||(ce=$e,v?($e=Ws(u,E),$e!=null&&F.unshift(xc(u,$e,ce))):v||($e=Ws(u,E),$e!=null&&F.push(xc(u,$e,ce)))),u=u.return}F.length!==0&&o.push({event:a,listeners:F})}var qI=/\r\n?/g,YI=/\u0000|\uFFFD/g;function Ex(o){return(typeof o=="string"?o:""+o).replace(qI,`
|
|
9
|
+
`).replace(YI,"")}function Mx(o,a){return a=Ex(a),Ex(o)===a}function yn(o,a,u,m,v,E){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||Bo(o,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&Bo(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":Qn(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=hl(""+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"&&yn(o,a,"name",v.name,v,null),yn(o,a,"formEncType",v.formEncType,v,null),yn(o,a,"formMethod",v.formMethod,v,null),yn(o,a,"formTarget",v.formTarget,v,null)):(yn(o,a,"encType",v.encType,v,null),yn(o,a,"method",v.method,v,null),yn(o,a,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=hl(""+m),o.setAttribute(u,m);break;case"onClick":m!=null&&(o.onclick=Mo);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=hl(""+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":Fn(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Fn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Fn(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Fn(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Fn(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Fn(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Fn(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Fn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Fn(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=gl.get(u)||u,Sn(o,u,m))}}function jh(o,a,u,m,v,E){switch(u){case"style":Qn(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"?Bo(o,m):(typeof m=="number"||typeof m=="bigint")&&Bo(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=Mo);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 vr(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 F=u[E];if(F!=null)switch(E){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:yn(o,a,E,F,u,null)}}v&&yn(o,a,"srcSet",u.srcSet,u,null),m&&yn(o,a,"src",u.src,u,null);return;case"input":qt("invalid",o);var J=E=F=v=null,ce=null,$e=null;for(m in u)if(u.hasOwnProperty(m)){var je=u[m];if(je!=null)switch(m){case"name":v=je;break;case"type":F=je;break;case"checked":ce=je;break;case"defaultChecked":$e=je;break;case"value":E=je;break;case"defaultValue":J=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(r(137,a));break;default:yn(o,a,m,je,u,null)}}ea(o,E,J,ce,$e,F,v,!1);return;case"select":qt("invalid",o),m=F=E=null;for(v in u)if(u.hasOwnProperty(v)&&(J=u[v],J!=null))switch(v){case"value":E=J;break;case"defaultValue":F=J;break;case"multiple":m=J;default:yn(o,a,v,J,u,null)}a=E,u=F,o.multiple=!!m,a!=null?io(o,!!m,a,!1):u!=null&&io(o,!!m,u,!0);return;case"textarea":qt("invalid",o),E=v=m=null;for(F in u)if(u.hasOwnProperty(F)&&(J=u[F],J!=null))switch(F){case"value":m=J;break;case"defaultValue":v=J;break;case"children":E=J;break;case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(91));break;default:yn(o,a,F,J,u,null)}pl(o,m,v,E);return;case"option":for(ce in u)u.hasOwnProperty(ce)&&(m=u[ce],m!=null)&&(ce==="selected"?o.selected=m&&typeof m!="function"&&typeof m!="symbol":yn(o,a,ce,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<$c.length;m++)qt($c[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($e in u)if(u.hasOwnProperty($e)&&(m=u[$e],m!=null))switch($e){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:yn(o,a,$e,m,u,null)}return;default:if(zr(a)){for(je in u)u.hasOwnProperty(je)&&(m=u[je],m!==void 0&&jh(o,a,je,m,u,void 0));return}}for(J in u)u.hasOwnProperty(J)&&(m=u[J],m!=null&&yn(o,a,J,m,u,null))}function UI(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,F=null,J=null,ce=null,$e=null,je=null;for(Oe in u){var ke=u[Oe];if(u.hasOwnProperty(Oe)&&ke!=null)switch(Oe){case"checked":break;case"value":break;case"defaultValue":ce=ke;default:m.hasOwnProperty(Oe)||yn(o,a,Oe,null,m,ke)}}for(var xe in m){var Oe=m[xe];if(ke=u[xe],m.hasOwnProperty(xe)&&(Oe!=null||ke!=null))switch(xe){case"type":E=Oe;break;case"name":v=Oe;break;case"checked":$e=Oe;break;case"defaultChecked":je=Oe;break;case"value":F=Oe;break;case"defaultValue":J=Oe;break;case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(r(137,a));break;default:Oe!==ke&&yn(o,a,xe,Oe,m,ke)}}Jo(o,F,J,ce,$e,je,E,v);return;case"select":Oe=F=J=xe=null;for(E in u)if(ce=u[E],u.hasOwnProperty(E)&&ce!=null)switch(E){case"value":break;case"multiple":Oe=ce;default:m.hasOwnProperty(E)||yn(o,a,E,null,m,ce)}for(v in m)if(E=m[v],ce=u[v],m.hasOwnProperty(v)&&(E!=null||ce!=null))switch(v){case"value":xe=E;break;case"defaultValue":J=E;break;case"multiple":F=E;default:E!==ce&&yn(o,a,v,E,m,ce)}a=J,u=F,m=Oe,xe!=null?io(o,!!u,xe,!1):!!m!=!!u&&(a!=null?io(o,!!u,a,!0):io(o,!!u,u?[]:"",!1));return;case"textarea":Oe=xe=null;for(J in u)if(v=u[J],u.hasOwnProperty(J)&&v!=null&&!m.hasOwnProperty(J))switch(J){case"value":break;case"children":break;default:yn(o,a,J,null,m,v)}for(F in m)if(v=m[F],E=u[F],m.hasOwnProperty(F)&&(v!=null||E!=null))switch(F){case"value":xe=v;break;case"defaultValue":Oe=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==E&&yn(o,a,F,v,m,E)}ml(o,xe,Oe);return;case"option":for(var st in u)xe=u[st],u.hasOwnProperty(st)&&xe!=null&&!m.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:yn(o,a,st,null,m,xe));for(ce in m)xe=m[ce],Oe=u[ce],m.hasOwnProperty(ce)&&xe!==Oe&&(xe!=null||Oe!=null)&&(ce==="selected"?o.selected=xe&&typeof xe!="function"&&typeof xe!="symbol":yn(o,a,ce,xe,m,Oe));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)xe=u[vt],u.hasOwnProperty(vt)&&xe!=null&&!m.hasOwnProperty(vt)&&yn(o,a,vt,null,m,xe);for($e in m)if(xe=m[$e],Oe=u[$e],m.hasOwnProperty($e)&&xe!==Oe&&(xe!=null||Oe!=null))switch($e){case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(r(137,a));break;default:yn(o,a,$e,xe,m,Oe)}return;default:if(zr(a)){for(var bn in u)xe=u[bn],u.hasOwnProperty(bn)&&xe!==void 0&&!m.hasOwnProperty(bn)&&jh(o,a,bn,void 0,m,xe);for(je in m)xe=m[je],Oe=u[je],!m.hasOwnProperty(je)||xe===Oe||xe===void 0&&Oe===void 0||jh(o,a,je,xe,m,Oe);return}}for(var ye in u)xe=u[ye],u.hasOwnProperty(ye)&&xe!=null&&!m.hasOwnProperty(ye)&&yn(o,a,ye,null,m,xe);for(ke in m)xe=m[ke],Oe=u[ke],!m.hasOwnProperty(ke)||xe===Oe||xe==null&&Oe==null||yn(o,a,ke,xe,m,Oe)}function Rx(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GI(){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,F=v.initiatorType,J=v.duration;if(E&&J&&Rx(F)){for(F=0,J=v.responseEnd,m+=1;m<u.length;m++){var ce=u[m],$e=ce.startTime;if($e>J)break;var je=ce.transferSize,ke=ce.initiatorType;je&&Rx(ke)&&(ce=ce.responseEnd,F+=je*(ce<J?1:(J-$e)/(ce-$e)))}if(--m,a+=8*(E+F)/(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 _h=null,Hh=null;function Sf(o){return o.nodeType===9?o:o.ownerDocument}function Tx(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 Ox(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 Bh(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 Lh=null;function XI(){var o=window.event;return o&&o.type==="popstate"?o===Lh?!1:(Lh=o,!0):(Lh=null,!1)}var Nx=typeof setTimeout=="function"?setTimeout:void 0,KI=typeof clearTimeout=="function"?clearTimeout:void 0,Ix=typeof Promise=="function"?Promise:void 0,QI=typeof queueMicrotask=="function"?queueMicrotask:typeof Ix<"u"?function(o){return Ix.resolve(null).then(o).catch(ZI)}:Nx;function ZI(o){setTimeout(function(){throw o})}function qa(o){return o==="head"}function Px(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),ql(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")wc(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,wc(u);for(var E=u.firstChild;E;){var F=E.nextSibling,J=E.nodeName;E[Ut]||J==="SCRIPT"||J==="STYLE"||J==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=F}}else u==="body"&&wc(o.ownerDocument.body);u=v}while(u);ql(a)}function zx(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 Vh(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":Vh(u),an(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function JI(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=po(o.nextSibling),o===null)break}return null}function eP(o,a,u){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=po(o.nextSibling),o===null))return null;return o}function Ax(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=po(o.nextSibling),o===null))return null;return o}function Fh(o){return o.data==="$?"||o.data==="$~"}function kh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function tP(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 po(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 Wh=null;function Dx(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(a===0)return po(o.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}o=o.nextSibling}return null}function jx(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 _x(o,a,u){switch(a=Sf(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 wc(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);an(o)}var go=new Map,Hx=new Set;function Cf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ha=B.d;B.d={f:nP,r:rP,D:oP,C:aP,L:iP,m:lP,X:cP,S:sP,M:uP};function nP(){var o=ha.f(),a=ff();return o||a}function rP(o){var a=wn(o);a!==null&&a.tag===5&&a.type==="form"?t$(a):ha.r(o)}var Fl=typeof document>"u"?null:document;function Bx(o,a,u){var m=Fl;if(m&&typeof a=="string"&&a){var v=_n(a);v='link[rel="'+o+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),Hx.has(v)||(Hx.add(v),o={rel:o,crossOrigin:u,href:a},m.querySelector(v)===null&&(a=m.createElement("link"),vr(a,"link",o),fn(a),m.head.appendChild(a)))}}function oP(o){ha.D(o),Bx("dns-prefetch",o,null)}function aP(o,a){ha.C(o,a),Bx("preconnect",o,a)}function iP(o,a,u){ha.L(o,a,u);var m=Fl;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=kl(o);break;case"script":E=Wl(o)}go.has(E)||(o=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:o,as:a},u),go.set(E,o),m.querySelector(v)!==null||a==="style"&&m.querySelector(Ec(E))||a==="script"&&m.querySelector(Mc(E))||(a=m.createElement("link"),vr(a,"link",o),fn(a),m.head.appendChild(a)))}}function lP(o,a){ha.m(o,a);var u=Fl;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=Wl(o)}if(!go.has(E)&&(o=h({rel:"modulepreload",href:o},a),go.set(E,o),u.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Mc(E)))return}m=u.createElement("link"),vr(m,"link",o),fn(m),u.head.appendChild(m)}}}function sP(o,a,u){ha.S(o,a,u);var m=Fl;if(m&&o){var v=Cr(m).hoistableStyles,E=kl(o);a=a||"default";var F=v.get(E);if(!F){var J={loading:0,preload:null};if(F=m.querySelector(Ec(E)))J.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":a},u),(u=go.get(E))&&qh(o,u);var ce=F=m.createElement("link");fn(ce),vr(ce,"link",o),ce._p=new Promise(function($e,je){ce.onload=$e,ce.onerror=je}),ce.addEventListener("load",function(){J.loading|=1}),ce.addEventListener("error",function(){J.loading|=2}),J.loading|=4,$f(F,a,m)}F={type:"stylesheet",instance:F,count:1,state:J},v.set(E,F)}}}function cP(o,a){ha.X(o,a);var u=Fl;if(u&&o){var m=Cr(u).hoistableScripts,v=Wl(o),E=m.get(v);E||(E=u.querySelector(Mc(v)),E||(o=h({src:o,async:!0},a),(a=go.get(v))&&Yh(o,a),E=u.createElement("script"),fn(E),vr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function uP(o,a){ha.M(o,a);var u=Fl;if(u&&o){var m=Cr(u).hoistableScripts,v=Wl(o),E=m.get(v);E||(E=u.querySelector(Mc(v)),E||(o=h({src:o,async:!0,type:"module"},a),(a=go.get(v))&&Yh(o,a),E=u.createElement("script"),fn(E),vr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function Lx(o,a,u,m){var v=(v=Z.current)?Cf(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=kl(u.href),u=Cr(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=kl(u.href);var E=Cr(v).hoistableStyles,F=E.get(o);if(F||(v=v.ownerDocument||v,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,F),(E=v.querySelector(Ec(o)))&&!E._p&&(F.instance=E,F.state.loading=5),go.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},go.set(o,u),E||dP(v,o,u,F.state))),a&&m===null)throw Error(r(528,""));return F}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=Wl(u),u=Cr(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 kl(o){return'href="'+_n(o)+'"'}function Ec(o){return'link[rel="stylesheet"]['+o+"]"}function Vx(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function dP(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}),vr(a,"link",u),fn(a),o.head.appendChild(a))}function Wl(o){return'[src="'+_n(o)+'"]'}function Mc(o){return"script[async]"+o}function Fx(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,fn(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"),fn(m),vr(m,"style",v),$f(m,u.precedence,o),a.instance=m;case"stylesheet":v=kl(u.href);var E=o.querySelector(Ec(v));if(E)return a.state.loading|=4,a.instance=E,fn(E),E;m=Vx(u),(v=go.get(v))&&qh(m,v),E=(o.ownerDocument||o).createElement("link"),fn(E);var F=E;return F._p=new Promise(function(J,ce){F.onload=J,F.onerror=ce}),vr(E,"link",m),a.state.loading|=4,$f(E,u.precedence,o),a.instance=E;case"script":return E=Wl(u.src),(v=o.querySelector(Mc(E)))?(a.instance=v,fn(v),v):(m=u,(v=go.get(E))&&(m=h({},u),Yh(m,v)),o=o.ownerDocument||o,v=o.createElement("script"),fn(v),vr(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,$f(m,u.precedence,o));return a.instance}function $f(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,F=0;F<m.length;F++){var J=m[F];if(J.dataset.precedence===a)E=J;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 qh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function Yh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var xf=null;function kx(o,a,u){if(xf===null){var m=new Map,v=xf=new Map;v.set(u,m)}else v=xf,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 F=E.getAttribute(a)||"";F=o+F;var J=m.get(F);J?J.push(E):m.set(F,[E])}}return m}function Wx(o,a,u){o=o.ownerDocument||o,o.head.insertBefore(u,a==="title"?o.querySelector("head > title"):null)}function fP(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 qx(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function mP(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=kl(m.href),E=a.querySelector(Ec(v));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=wf.bind(o),a.then(o,o)),u.state.loading|=4,u.instance=E,fn(E);return}E=a.ownerDocument||a,m=Vx(m),(v=go.get(v))&&qh(m,v),E=E.createElement("link"),fn(E);var F=E;F._p=new Promise(function(J,ce){F.onload=J,F.onerror=ce}),vr(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=wf.bind(o),a.addEventListener("load",u),a.addEventListener("error",u))}}var Uh=0;function pP(o,a){return o.stylesheets&&o.count===0&&Mf(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var m=setTimeout(function(){if(o.stylesheets&&Mf(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+a);0<o.imgBytes&&Uh===0&&(Uh=62500*GI());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Mf(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>Uh?50:800)+a);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function wf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Ef=null;function Mf(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Ef=new Map,a.forEach(gP,o),Ef=null,wf.call(o))}function gP(o,a){if(!(a.state.loading&4)){var u=Ef.get(o);if(u)var m=u.get(null);else{u=new Map,Ef.set(o,u);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var F=v[E];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(u.set(F.dataset.precedence,F),m=F)}m&&u.set(null,m)}v=a.instance,F=v.getAttribute("data-precedence"),E=u.get(F)||m,E===m&&u.set(null,v),u.set(F,v),this.count++,m=wf.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 Rc={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function hP(o,a,u,m,v,E,F,J,ce){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=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ce,this.incompleteTransitions=new Map}function Yx(o,a,u,m,v,E,F,J,ce,$e,je,ke){return o=new hP(o,a,u,F,ce,$e,je,ke,J),a=1,E===!0&&(a|=24),E=Gr(3,null,null,a),o.current=E,E.stateNode=o,a=Mg(),a.refCount++,o.pooledCache=a,a.refCount++,E.memoizedState={element:m,isDehydrated:u,cache:a},Ng(E),o}function Ux(o){return o?(o=Cl,o):Cl}function Gx(o,a,u,m,v,E){v=Ux(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&&(Br(u,o,a),ac(u,o,a))}function Xx(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<a?u:a}}function Gh(o,a){Xx(o,a),(o=o.alternate)&&Xx(o,a)}function Kx(o){if(o.tag===13||o.tag===31){var a=Si(o,67108864);a!==null&&Br(a,o,67108864),Gh(o,67108864)}}function Qx(o){if(o.tag===13||o.tag===31){var a=Jr();a=Je(a);var u=Si(o,a);u!==null&&Br(u,o,a),Gh(o,a)}}var Rf=!0;function yP(o,a,u,m){var v=_.T;_.T=null;var E=B.p;try{B.p=2,Xh(o,a,u,m)}finally{B.p=E,_.T=v}}function bP(o,a,u,m){var v=_.T;_.T=null;var E=B.p;try{B.p=8,Xh(o,a,u,m)}finally{B.p=E,_.T=v}}function Xh(o,a,u,m){if(Rf){var v=Kh(m);if(v===null)Dh(o,a,m,Tf,u),Jx(o,m);else if(SP(v,o,a,u,m))m.stopPropagation();else if(Jx(o,m),a&4&&-1<vP.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 F=ot(E.pendingLanes);if(F!==0){var J=E;for(J.pendingLanes|=2,J.entangledLanes|=2;F;){var ce=1<<31-Pe(F);J.entanglements[1]|=ce,F&=~ce}ko(E),(ln&6)===0&&(uf=be()+500,Cc(0))}}break;case 31:case 13:J=Si(E,2),J!==null&&Br(J,E,2),ff(),Gh(E,2)}if(E=Kh(m),E===null&&Dh(o,a,m,Tf,u),E===v)break;v=E}v!==null&&m.stopPropagation()}else Dh(o,a,m,null,u)}}function Kh(o){return o=bt(o),Qh(o)}var Tf=null;function Qh(o){if(Tf=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 Tf=o,null}function Zx(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(Ee()){case Ne:return 2;case Ve:return 8;case Ge:case et:return 32;case Te:return 268435456;default:return 32}default:return 32}}var Zh=!1,Ya=null,Ua=null,Ga=null,Tc=new Map,Oc=new Map,Xa=[],vP="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 Jx(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":Tc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oc.delete(a.pointerId)}}function Nc(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&&Kx(a)),o):(o.eventSystemFlags|=m,a=o.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),o)}function SP(o,a,u,m,v){switch(a){case"focusin":return Ya=Nc(Ya,o,a,u,m,v),!0;case"dragenter":return Ua=Nc(Ua,o,a,u,m,v),!0;case"mouseover":return Ga=Nc(Ga,o,a,u,m,v),!0;case"pointerover":var E=v.pointerId;return Tc.set(E,Nc(Tc.get(E)||null,o,a,u,m,v)),!0;case"gotpointercapture":return E=v.pointerId,Oc.set(E,Nc(Oc.get(E)||null,o,a,u,m,v)),!0}return!1}function ew(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(){Qx(u)});return}}else if(a===31){if(a=d(u),a!==null){o.blockedOn=a,Ft(o.priority,function(){Qx(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 Of(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var u=Kh(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&&Kx(a),o.blockedOn=u,!1;a.shift()}return!0}function tw(o,a,u){Of(o)&&u.delete(a)}function CP(){Zh=!1,Ya!==null&&Of(Ya)&&(Ya=null),Ua!==null&&Of(Ua)&&(Ua=null),Ga!==null&&Of(Ga)&&(Ga=null),Tc.forEach(tw),Oc.forEach(tw)}function Nf(o,a){o.blockedOn===a&&(o.blockedOn=null,Zh||(Zh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,CP)))}var If=null;function nw(o){If!==o&&(If=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){If===o&&(If=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(Qh(m||u)===null)continue;break}var E=wn(u);E!==null&&(o.splice(a,3),a-=3,Kg(E,{pending:!0,data:v,method:u.method,action:m},m,v))}}))}function ql(o){function a(ce){return Nf(ce,o)}Ya!==null&&Nf(Ya,o),Ua!==null&&Nf(Ua,o),Ga!==null&&Nf(Ga,o),Tc.forEach(a),Oc.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);)ew(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],F=v[tn]||null;if(typeof E=="function")F||nw(u);else if(F){var J=null;if(E&&E.hasAttribute("formAction")){if(v=E,F=E[tn]||null)J=F.formAction;else if(Qh(v)!==null)continue}else J=F.action;typeof J=="function"?u[m+1]=J:(u.splice(m,3),m-=3),nw(u)}}}function rw(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(F){return v=F})},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 Jh(o){this._internalRoot=o}Pf.prototype.render=Jh.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=Jr();Gx(u,m,o,a,null,null)},Pf.prototype.unmount=Jh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;Gx(o.current,2,null,o,null,null),ff(),a[wt]=null}};function Pf(o){this._internalRoot=o}Pf.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&&ew(o)}};var ow=t.version;if(ow!=="19.2.3")throw Error(r(527,ow,"19.2.3"));B.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 $P={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zf.isDisabled&&zf.supportsFiber)try{Qe=zf.inject($P),De=zf}catch{}}return Pc.createRoot=function(o,a){if(!i(o))throw Error(r(299));var u=!1,m="",v=d$,E=f$,F=m$;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&&(F=a.onRecoverableError)),a=Yx(o,1,!1,null,null,u,m,null,v,E,F,rw),o[wt]=a.current,Ah(o),new Jh(a)},Pc.hydrateRoot=function(o,a,u){if(!i(o))throw Error(r(299));var m=!1,v="",E=d$,F=f$,J=m$,ce=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&&(F=u.onCaughtError),u.onRecoverableError!==void 0&&(J=u.onRecoverableError),u.formState!==void 0&&(ce=u.formState)),a=Yx(o,1,!0,a,u??null,m,v,ce,E,F,J,rw),a.context=Ux(null),u=a.current,m=Jr(),m=Je(m),v=Aa(m),v.callback=null,Da(u,v,m),u=m,a.current.lanes=u,He(a,u),ko(a),o[wt]=a.current,Ah(o),new Pf(a)},Pc.version="19.2.3",Pc}var pw;function zP(){if(pw)return ny.exports;pw=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=PP(),ny.exports}var Z4=zP();function ut(e){const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>t.current?.(...r),[])}function Fr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const gw=Fr()?l.useLayoutEffect:l.useEffect,Nt=(e,t)=>{const n=l.useRef(!0);gw(()=>e(n.current),t),gw(()=>(n.current=!1,()=>{n.current=!0}),[])},J4=(e,t)=>{Nt(n=>{if(!n)return e()},t)};function zm(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 iy={exports:{}},un={};var hw;function AP(){if(hw)return un;hw=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"),C=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function $(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case e:switch(S=S.type,S){case n:case i:case r:case p:case g:return S;default:switch(S=S&&S.$$typeof,S){case d:case c:case f:case y:case h:case s:return S;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(S){return $(S)===c},un.isContextProvider=function(S){return $(S)===s},un.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},un.isForwardRef=function(S){return $(S)===f},un.isFragment=function(S){return $(S)===n},un.isLazy=function(S){return $(S)===y},un.isMemo=function(S){return $(S)===h},un.isPortal=function(S){return $(S)===t},un.isProfiler=function(S){return $(S)===i},un.isStrictMode=function(S){return $(S)===r},un.isSuspense=function(S){return $(S)===p},un.isSuspenseList=function(S){return $(S)===g},un.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===p||S===g||S===C||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===s||S.$$typeof===c||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},un.typeOf=$,un}var yw;function DP(){return yw||(yw=1,iy.exports=AP()),iy.exports}var ly=DP();function rd(e,t,n){const r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const jP=Symbol.for("react.element"),_P=Symbol.for("react.transitional.element"),HP=Symbol.for("react.fragment");function eR(e){return e&&typeof e=="object"&&(e.$$typeof===jP||e.$$typeof===_P)&&e.type===HP}const BP=Number(l.version.split(".")[0]),LP=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},or=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{LP(r,n)})}},mi=(...e)=>rd(()=>or(...e),e,(t,n)=>t.length!==n.length||t.every((r,i)=>r!==n[i])),rl=e=>{if(!e)return!1;if(yS(e)&&BP>=19)return!0;const t=ly.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==ly.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==ly.ForwardRef)};function yS(e){return l.isValidElement(e)&&!eR(e)}const VP=e=>yS(e)&&rl(e),ol=e=>{if(e&&yS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function zo(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 tR(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]=tR(c[i],s,n,r),c}function vo(e,t,n,r=!1){return t.length&&r&&n===void 0&&!zo(e,t.slice(0,-1))?e:tR(e,t,n,r)}function FP(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function bw(e){return Array.isArray(e)?[]:{}}const kP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function nR(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let i=bw(e[0]);return e.forEach(s=>{function c(d,f){const p=new Set(f),g=zo(s,d),h=Array.isArray(g);if(h||FP(g)){if(!p.has(g)){p.add(g);const y=zo(i,d);h?i=vo(i,d,r(y,g)):(!y||typeof y!="object")&&(i=vo(i,d,bw(g))),kP(g).forEach(C=>{c([...d,C],p)})}}else i=vo(i,d,g)}c([])}),i}function ss(...e){return nR(e)}let db={};const WP=e=>{};function qP(e,t){}function YP(e,t){}function UP(){db={}}function rR(e,t,n){!t&&!db[n]&&(e(!1,n),db[n]=!0)}function tr(e,t){rR(qP,e,t)}function GP(e,t){rR(YP,e,t)}tr.preMessage=WP;tr.resetWarned=UP;tr.noteOnce=GP;function nn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function dr(e,t={}){let n=[];return ae.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(dr(r)):eR(r)&&r.props?n=n.concat(dr(r.props.children,t)):n.push(r))}),n}const XP=l.createContext({});function vs(e){return e instanceof HTMLElement||e instanceof SVGElement}function mu(e){return e&&typeof e=="object"&&vs(e.nativeElement)?e.nativeElement:vs(e)?e:null}const fb=l.createContext(null);function KP({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),i=l.useContext(fb),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(fb.Provider,{value:s},e)}const oi=new Map;function QP(e){e.forEach(t=>{const{target:n}=t;oi.get(n)?.forEach(r=>r(n))})}let sy;function oR(){return sy||(sy=new ResizeObserver(QP)),sy}function ZP(e,t){oi.has(e)||(oi.set(e,new Set),oR().observe(e)),oi.get(e).add(t)}function JP(e,t){oi.has(e)&&(oi.get(e).delete(t),oi.get(e).size||(oR().unobserve(e),oi.delete(e)))}function e8(e,t){const{children:n,disabled:r}=e,i=l.useRef(null),s=l.useContext(fb),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)&&rl(d),g=p?ol(d):null,h=mi(g,i),y=()=>mu(i.current);l.useImperativeHandle(t,()=>y());const C=l.useRef(e);C.current=e;const b=l.useCallback($=>{const{onResize:S,data:w}=C.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 P={width:N,height:O,offsetWidth:R,offsetHeight:T};f.current=P;const D=R===Math.round(M)?M:R,W=T===Math.round(x)?x:T,k={...P,offsetWidth:D,offsetHeight:W};s?.(k,$,w),S&&Promise.resolve().then(()=>{S(k,$)})}},[]);return l.useEffect(()=>{const $=y();return $&&!r&&ZP($,b),()=>JP($,b)},[i.current,r]),p?l.cloneElement(d,{ref:h}):d}const t8=l.forwardRef(e8);function mb(){return mb=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},mb.apply(this,arguments)}const n8="rc-observer-key";function r8(e,t){const{children:n}=e;return(typeof n=="function"?[n]:dr(n)).map((i,s)=>{const c=i?.key||`${n8}-${s}`;return l.createElement(t8,mb({},e,{key:c,ref:s===0?t:void 0}),i)})}const Vr=l.forwardRef(r8);Vr.Collection=KP;function aR(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=aR(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=aR(e))&&(r&&(r+=" "),r+=t);return r}function pb(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 o8(e){if(Array.isArray(e))return pb(e)}function a8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iR(e,t){if(e){if(typeof e=="string")return pb(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)?pb(e,t):void 0}}function i8(){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 o8(e)||a8(e)||iR(e)||i8()}let lR=e=>+setTimeout(e,16),sR=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(lR=e=>window.requestAnimationFrame(e),sR=e=>window.cancelAnimationFrame(e));let vw=0;const bS=new Map;function cR(e){bS.delete(e)}const Ht=(e,t=1)=>{vw+=1;const n=vw;function r(i){if(i===0)cR(n),e();else{const s=lR(()=>{r(i-1)});bS.set(n,s)}}return r(t),n};Ht.cancel=e=>{const t=bS.get(e);return cR(e),sR(t)};const pu="ant",hp="anticon",l8=["outlined","borderless","filled","underlined"],s8=(e,t)=>t||(e?`${pu}-${e}`:pu),dt=l.createContext({getPrefixCls:s8,iconPrefixCls:hp}),{Consumer:mee}=dt,Sw={};function It(e){const t=l.useContext(dt),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}=t,c=t[e];return{classNames:Sw,styles:Sw,...c,getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}}function gs(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 gb(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 Cw="data-rc-order",$w="data-rc-priority",c8="rc-util-key",hb=new Map;function uR({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:c8}function yp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vS(e){return Array.from((hb.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function dR(e,t={}){if(!Fr())return null;const{csp:n,prepend:r,priority:i=0}=t,s=u8(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(Cw,s),c&&i&&d.setAttribute($w,`${i}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;const f=yp(t),{firstChild:p}=f;if(r){if(c){const g=(t.styles||vS(f)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(Cw)))return!1;const y=Number(h.getAttribute($w)||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 fR(e,t={}){let{styles:n}=t;return n||=vS(yp(t)),n.find(r=>r.getAttribute(uR(t))===e)}function gu(e,t={}){const n=fR(e,t);n&&yp(t).removeChild(n)}function d8(e,t){const n=hb.get(e);if(!n||!gb(document,n)){const r=dR("",t),{parentNode:i}=r;hb.set(e,i),e.removeChild(r)}}function li(e,t,n={}){const r=yp(n),i=vS(r),s={...n,styles:i};d8(r,s);const c=fR(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=dR(e,s);return d.setAttribute(uR(s),t),d}function hu(e,t,n=!1){const r=new Set;function i(s,c,d=1){const f=r.has(s);if(tr(!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 f8="%";function yb(e){return e.join(f8)}let xw=0;class m8{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(yb(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(yb(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,xw),xw+=1)}}const SS="data-token-hash",Ca="data-css-hash",ai="__cssinjs_instance__";function p8(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Ca}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(i=>{i[ai]=i[ai]||e,i[ai]===e&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${Ca}]`)).forEach(i=>{const s=i.getAttribute(Ca);r[s]?i[ai]===e&&i.parentNode?.removeChild(i):r[s]=!0})}return new m8(e)}const od=l.createContext({hashPriority:"low",cache:p8(),defaultCache:!0,autoPrefix:!1});function g8(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 Am{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>Am.MAX_CACHE_SIZE+Am.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=>!g8(n,t)),this.deleteByPath(this.cache,t)}}let ww=0;class mR{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ww,t.length===0&&(t.length>0,void 0),ww+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const cy=new Am;function bb(e){const t=Array.isArray(e)?e:[e];return cy.has(t)||cy.set(t,new mR(t)),cy.get(t)}const h8=new WeakMap,uy={};function y8(e,t){let n=h8;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(uy)||n.set(uy,e()),n.get(uy)}const Ew=new WeakMap;function nu(e){let t=Ew.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof mR?t+=r.id:r&&typeof r=="object"?t+=nu(r):t+=r}),t=gs(t),Ew.set(e,t)),t}function b8(e,t){return gs(`${t}_${nu(e)}`)}const vb=Fr();function te(e){return typeof e=="number"?`${e}px`:e}function v8(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const pm=(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(),S8=(e,t,n)=>{const{hashCls:r,hashPriority:i="low"}=n||{};return Object.keys(e).length?`${v8({hashCls:r,hashPriority:i})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([s,c])=>`${s}:${c};`).join("")}}`:""},pR=(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 C=pm(h,s);p[C]=typeof y=="number"&&!c?.[h]?`${y}px`:String(y),g[h]=`var(${C})`}}),[g,S8(p,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},Af=new Map;function CS(e,t,n,r,i){const{cache:s}=l.useContext(od),c=[e,...t],d=yb(c),f=h=>{s.opUpdate(d,y=>{const[C=0,b]=y||[void 0,void 0],S=b||n(),w=[C,S];return h?h(w):w})};l.useMemo(()=>{f()},[d]);const g=s.opGet(d)[1];return l.useInsertionEffect(()=>(f(([h,y])=>[h+1,y]),Af.has(d)||(i?.(g),Af.set(d,!0),Promise.resolve().then(()=>{Af.delete(d)})),()=>{s.opUpdate(d,h=>{const[y=0,C]=h||[];return y-1===0?(r?.(C,!1),Af.delete(d),null):[y-1,C]})}),[d]),g}const C8={},$8="css",Fi=new Map;function x8(e){Fi.set(e,(Fi.get(e)||0)+1)}function w8(e,t){typeof document<"u"&&document.querySelectorAll(`style[${SS}="${e}"]`).forEach(r=>{r[ai]===t&&r.parentNode?.removeChild(r)})}const E8=-1;function M8(e,t){Fi.set(e,(Fi.get(e)||0)-1);const n=new Set;Fi.forEach((r,i)=>{r<=0&&n.add(i)}),Fi.size-n.size>E8&&n.forEach(r=>{w8(r,t),Fi.delete(r)})}const R8=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},T8="token";function O8(e,t,n){const{cache:{instanceId:r},container:i,hashPriority:s}=l.useContext(od),{salt:c="",override:d=C8,formatToken:f,getComputedToken:p,cssVar:g}=n,h=y8(()=>Object.assign({},...t),t),y=nu(h),C=nu(d),b=nu(g);return CS(T8,[c,e.id,y,C,b],()=>{const S=p?p(h,d,e):R8(h,d,e,f),w={...S},M=`${c}_${g.prefix}`,x=gs(M),R=`${$8}-${gs(M)}`;w._tokenKey=b8(w,M);const[T,N]=pR(S,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,x8(g.key),[T,R,w,N,g.key]},([,,,,S])=>{M8(S,r)},([,,,S,w])=>{if(!S)return;const M=li(S,gs(`css-var-${w}`),{mark:Ca,prepend:"queue",attachTo:i,priority:-999});M[ai]=r,M.setAttribute(SS,w)})}var N8={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-",ru="-moz-",sn="-webkit-",gR="comm",$S="rule",xS="decl",I8="@import",P8="@namespace",hR="@keyframes",z8="@layer",yR=Math.abs,wS=String.fromCharCode,Sb=Object.assign;function A8(e,t){return Jn(e,0)^45?(((t<<2^Jn(e,0))<<2^Jn(e,1))<<2^Jn(e,2))<<2^Jn(e,3):0}function bR(e){return e.trim()}function ba(e,t){return(e=t.exec(e))?e[0]:e}function Bt(e,t,n){return e.replace(t,n)}function gm(e,t,n){return e.indexOf(t,n)}function Jn(e,t){return e.charCodeAt(t)|0}function Ki(e,t,n){return e.slice(t,n)}function Io(e){return e.length}function vR(e){return e.length}function Uc(e,t){return t.push(e),e}function D8(e,t){return e.map(t).join("")}function Mw(e,t){return e.filter(function(n){return!ba(n,t)})}var bp=1,Ss=1,SR=0,Co=0,Gn=0,Ns="";function vp(e,t,n,r,i,s,c,d){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:bp,column:Ss,length:c,return:"",siblings:d}}function ei(e,t){return Sb(vp("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Yl(e){for(;e.root;)e=ei(e.root,{children:[e]});Uc(e,e.siblings)}function j8(){return Gn}function _8(){return Gn=Co>0?Jn(Ns,--Co):0,Ss--,Gn===10&&(Ss=1,bp--),Gn}function Ao(){return Gn=Co<SR?Jn(Ns,Co++):0,Ss++,Gn===10&&(Ss=1,bp++),Gn}function ii(){return Jn(Ns,Co)}function hm(){return Co}function Sp(e,t){return Ki(Ns,e,t)}function yu(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 H8(e){return bp=Ss=1,SR=Io(Ns=e),Co=0,[]}function B8(e){return Ns="",e}function dy(e){return bR(Sp(Co-1,Cb(e===91?e+2:e===40?e+1:e)))}function L8(e){for(;(Gn=ii())&&Gn<33;)Ao();return yu(e)>2||yu(Gn)>3?"":" "}function V8(e,t){for(;--t&&Ao()&&!(Gn<48||Gn>102||Gn>57&&Gn<65||Gn>70&&Gn<97););return Sp(e,hm()+(t<6&&ii()==32&&Ao()==32))}function Cb(e){for(;Ao();)switch(Gn){case e:return Co;case 34:case 39:e!==34&&e!==39&&Cb(Gn);break;case 40:e===41&&Cb(e);break;case 92:Ao();break}return Co}function F8(e,t){for(;Ao()&&e+Gn!==57;)if(e+Gn===84&&ii()===47)break;return"/*"+Sp(t,Co-1)+"*"+wS(e===47?e:Ao())}function k8(e){for(;!yu(ii());)Ao();return Sp(e,Co)}function Rw(e){return B8(ym("",null,null,null,[""],e=H8(e),0,[0],e))}function ym(e,t,n,r,i,s,c,d,f){for(var p=0,g=0,h=c,y=0,C=0,b=0,$=1,S=1,w=1,M=0,x="",R=i,T=s,N=r,O=x;S;)switch(b=M,M=Ao()){case 40:if(b!=108&&Jn(O,h-1)==58){gm(O+=Bt(dy(M),"&","&\f"),"&\f",yR(p?d[p-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:O+=dy(M);break;case 9:case 10:case 13:case 32:O+=L8(b);break;case 92:O+=V8(hm()-1,7);continue;case 47:switch(ii()){case 42:case 47:Uc(W8(F8(Ao(),hm()),t,n,f),f),(yu(b||1)==5||yu(ii()||1)==5)&&Io(O)&&Ki(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*$:d[p++]=Io(O)*w;case 125*$:case 59:case 0:switch(M){case 0:case 125:S=0;case 59+g:w==-1&&(O=Bt(O,/\f/g,"")),C>0&&(Io(O)-h||$===0&&b===47)&&Uc(C>32?Ow(O+";",r,n,h-1,f):Ow(Bt(O," ","")+";",r,n,h-2,f),f);break;case 59:O+=";";default:if(Uc(N=Tw(O,t,n,p,g,i,d,x,R=[],T=[],h,s),s),M===123)if(g===0)ym(O,t,N,N,R,s,h,d,T);else{switch(y){case 99:if(Jn(O,3)===110)break;case 108:if(Jn(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?ym(e,N,N,r&&Uc(Tw(e,N,N,0,0,i,d,x,i,R=[],h,T),T),i,T,h,d,r?R:T):ym(O,N,N,N,[""],T,0,d,T)}}p=g=C=0,$=w=1,x=O="",h=c;break;case 58:h=1+Io(O),C=b;default:if($<1){if(M==123)--$;else if(M==125&&$++==0&&_8()==125)continue}switch(O+=wS(M),M*$){case 38:w=g>0?1:(O+="\f",-1);break;case 44:d[p++]=(Io(O)-1)*w,w=1;break;case 64:ii()===45&&(O+=dy(Ao())),y=ii(),g=h=Io(x=O+=k8(hm())),M++;break;case 45:b===45&&Io(O)==2&&($=0)}}return s}function Tw(e,t,n,r,i,s,c,d,f,p,g,h){for(var y=i-1,C=i===0?s:[""],b=vR(C),$=0,S=0,w=0;$<r;++$)for(var M=0,x=Ki(e,y+1,y=yR(S=c[$])),R=e;M<b;++M)(R=bR(S>0?C[M]+" "+x:Bt(x,/&\f/g,C[M])))&&(f[w++]=R);return vp(e,t,n,i===0?$S:d,f,p,g,h)}function W8(e,t,n,r){return vp(e,t,n,gR,wS(j8()),Ki(e,2,-2),0,r)}function Ow(e,t,n,r,i){return vp(e,t,n,xS,Ki(e,0,r),Ki(e,r+1,-1),r,i)}function CR(e,t,n){switch(A8(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 ru+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sn+e+ru+e+On+e+e;case 5936:switch(Jn(e,t+11)){case 114:return sn+e+On+Bt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sn+e+On+Bt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sn+e+On+Bt(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+Bt(e,/(\w+).+(:[^]+)/,sn+"box-$1$2"+On+"flex-$1$2")+e;case 5443:return sn+e+On+"flex-item-"+Bt(e,/flex-|-self/g,"")+(ba(e,/flex-|baseline/)?"":On+"grid-row-"+Bt(e,/flex-|-self/g,""))+e;case 4675:return sn+e+On+"flex-line-pack"+Bt(e,/align-content|flex-|-self/g,"")+e;case 5548:return sn+e+On+Bt(e,"shrink","negative")+e;case 5292:return sn+e+On+Bt(e,"basis","preferred-size")+e;case 6060:return sn+"box-"+Bt(e,"-grow","")+sn+e+On+Bt(e,"grow","positive")+e;case 4554:return sn+Bt(e,/([^-])(transform)/g,"$1"+sn+"$2")+e;case 6187:return Bt(Bt(Bt(e,/(zoom-|grab)/,sn+"$1"),/(image-set)/,sn+"$1"),e,"")+e;case 5495:case 3959:return Bt(e,/(image-set\([^]*)/,sn+"$1$`$1");case 4968:return Bt(Bt(e,/(.+:)(flex-)?(.*)/,sn+"box-pack:$3"+On+"flex-pack:$3"),/space-between/,"justify")+sn+e+e;case 4200:if(!ba(e,/flex-|baseline/))return On+"grid-column-align"+Ki(e,t)+e;break;case 2592:case 3360:return On+Bt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ba(r.props,/grid-\w+-end/)})?~gm(e+(n=n[t].value),"span",0)?e:On+Bt(e,"-start","")+e+On+"grid-row-span:"+(~gm(n,"span",0)?ba(n,/\d+/):+ba(n,/\d+/)-+ba(e,/\d+/))+";":On+Bt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ba(r.props,/grid-\w+-start/)})?e:On+Bt(Bt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Bt(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(Io(e)-1-t>6)switch(Jn(e,t+1)){case 109:if(Jn(e,t+4)!==45)break;case 102:return Bt(e,/(.+:)(.+)-([^]+)/,"$1"+sn+"$2-$3$1"+ru+(Jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gm(e,"stretch",0)?CR(Bt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Bt(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(Jn(e,t+6)===121)return Bt(e,":",":"+sn)+e;break;case 6444:switch(Jn(e,Jn(e,14)===45?18:11)){case 120:return Bt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+sn+(Jn(e,14)===45?"inline-":"")+"box$3$1"+sn+"$2$3$1"+On+"$2box$3")+e;case 100:return Bt(e,":",":"+On)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Bt(e,"scroll-","scroll-snap-")+e}return e}function bu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Nw(e,t,n,r){switch(e.type){case z8:if(e.children.length)break;case I8:case P8:case xS:return e.return=e.return||e.value;case gR:return"";case hR:return e.return=e.value+"{"+bu(e.children,r)+"}";case $S:if(!Io(e.value=e.props.join(",")))return""}return Io(n=bu(e.children,r))?e.return=e.value+"{"+n+"}":""}function q8(e){var t=vR(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 Y8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xS:e.return=CR(e.value,e.length,n);return;case hR:return bu([ei(e,{value:Bt(e.value,"@","@"+sn)})],r);case $S:if(e.length)return D8(n=e.props,function(i){switch(ba(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Yl(ei(e,{props:[Bt(i,/:(read-\w+)/,":"+ru+"$1")]})),Yl(ei(e,{props:[i]})),Sb(e,{props:Mw(n,r)});break;case"::placeholder":Yl(ei(e,{props:[Bt(i,/:(plac\w+)/,":"+sn+"input-$1")]})),Yl(ei(e,{props:[Bt(i,/:(plac\w+)/,":"+ru+"$1")]})),Yl(ei(e,{props:[Bt(i,/:(plac\w+)/,On+"input-$1")]})),Yl(ei(e,{props:[i]})),Sb(e,{props:Mw(n,r)});break}return""})}}const Iw="data-ant-cssinjs-cache-path",$R="_FILE_STYLE__";let Gi,xR=!0;function U8(){if(!Gi&&(Gi={},Fr())){const e=document.createElement("div");e.className=Iw,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(":");Gi[i]=s});const n=document.querySelector(`style[${Iw}]`);n&&(xR=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function G8(e){return U8(),!!Gi[e]}function X8(e){const t=Gi[e];let n=null;if(t&&Fr())if(xR)n=$R;else{const r=document.querySelector(`style[${Ca}="${Gi[e]}"]`);r?n=r.innerHTML:delete Gi[e]}return[n,t]}const K8="_skip_check_",wR="_multi_value_";function fy(e,t){return(t?bu(Rw(e),q8([Y8,Nw])):bu(Rw(e),Nw)).replace(/\{%%%\:[^;];}/g,";")}function Q8(e){return typeof e=="object"&&e&&(K8 in e||wR in e)}function Pw(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 $b=(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 C(S){const w=S.getName(s);if(!y[w]){const[M]=$b(S.style,t,{root:!1,parentSelectors:i});y[w]=`@keyframes ${S.getName(s)}${M}`}}function b(S,w=[]){return S.forEach(M=>{Array.isArray(M)?b(M,w):M&&w.push(M)}),w}return b(Array.isArray(e)?e:[e]).forEach(S=>{const w=typeof S=="string"&&!n?{}:S;if(typeof w=="string")h+=`${w}
|
|
11
|
+
`;else if(w._keyframe)C(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)&&!Q8(R)){let T=!1,N=x.trim(),O=!1;(n||r)&&s?N.startsWith("@")?T=!0:N==="&"?N=Pw("",s,f):N=Pw(x,s,f):n&&!s&&(N==="&"||N==="")&&(N="",O=!0);const[P,D]=$b(R,t,{root:O,injectHash:T,parentSelectors:[...i,N]});y={...y,...D},h+=`${N}${P}`}else{let T=function(O,P){const D=O.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`);let W=P;!N8[O]&&typeof W=="number"&&W!==0&&(W=`${W}px`),O==="animationName"&&P?._keyframe&&(C(P),W=P.getName(s)),h+=`${D}:${W};`};const N=R?.value??R;typeof R=="object"&&R?.[wR]&&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(S=>`@layer ${S}, ${c.name};`).join(`
|
|
12
|
+
`))):h=`{${h}}`,[h,y]};function ER(e,t){return gs(`${e.join("%")}${t}`)}const Z8="style";function xb(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:C,layer:b,autoPrefix:$}=l.useContext(od),S=[r||""];b&&S.push("layer"),S.push(...n);let w=vb;CS(Z8,S,()=>{const M=S.join("|");if(G8(M)){const[P,D]=X8(M);if(P)return[P,D,{},c,d]}const x=t(),[R,T]=$b(x,{hashId:r,hashPriority:p,layer:b?i:void 0,path:n.join("-"),transformers:h,linters:y}),N=fy(R,$||!1),O=ER(S,N);return[N,O,T,c,d]},(M,x)=>{const[,R]=M;x&&vb&&gu(R,{mark:Ca,attachTo:g})},M=>{const[x,R,T,,N]=M;if(w&&x!==$R){const O={mark:Ca,prepend:b?!1:"queue",attachTo:g,priority:N},P=typeof s=="function"?s():s;P&&(O.csp={nonce:P});const D=[],W=[];Object.keys(T).forEach(U=>{U.startsWith("@layer")?D.push(U):W.push(U)}),D.forEach(U=>{li(fy(T[U],$||!1),`_layer-${U}`,{...O,prepend:!0})});const k=li(x,R,O);k[ai]=C.instanceId,W.forEach(U=>{li(fy(T[U],$||!1),`_effect-${U}`,O)})}})}const J8="cssVar",ez=(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(od),{_tokenKey:y}=c,C=[...e.path,n,f,y];return CS(J8,C,()=>{const $=t(),[S,w]=pR($,n,{prefix:r,unitless:i,ignore:s,scope:f,hashPriority:h,hashCls:d}),M=ER(C,w);return[S,w,M,n]},([,,$])=>{vb&&gu($,{mark:Ca,attachTo:g})},([,$,S])=>{if(!$)return;const w=li($,S,{mark:Ca,prepend:"queue",attachTo:g,priority:-999});w[ai]=p,w.setAttribute(SS,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 Ul(e){return e.notSplit=!0,e}Ul(["borderTop","borderBottom"]),Ul(["borderTop"]),Ul(["borderBottom"]),Ul(["borderLeft","borderRight"]),Ul(["borderLeft"]),Ul(["borderRight"]);function Kn(e){"@babel/helpers - typeof";return Kn=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},Kn(e)}function tz(e){if(Array.isArray(e))return e}function nz(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 rz(){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 MR(e,t){return tz(e)||nz(e,t)||iR(e,t)||rz()}function oz(e,t){if(Kn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RR(e){var t=oz(e,"string");return Kn(t)=="symbol"?t:t+""}function cr(e,t,n){return(t=RR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zw(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?zw(Object(n),!0).forEach(function(r){cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function al(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function az(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,RR(r.key),r)}}function il(e,t,n){return t&&az(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vu(e,t){return vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vu(e,t)}function ES(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&&vu(e,t)}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qi(e)}function Cp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cp=function(){return!!e})()}function TR(e,t){if(t&&(Kn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hs(e)}function OR(e){var t=Cp();return function(){var n,r=Qi(e);if(t){var i=Qi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return TR(this,n)}}var iz=il(function e(){al(this,e)}),NR="CALC_UNIT",lz=new RegExp(NR,"g");function my(e){return typeof e=="number"?"".concat(e).concat(NR):e}var sz=(function(e){ES(n,e);var t=OR(n);function n(r,i){var s;al(this,n),s=t.call(this),cr(hs(s),"result",""),cr(hs(s),"unitlessCssVar",void 0),cr(hs(s),"lowPriority",void 0);var c=Kn(r);return s.unitlessCssVar=i,r instanceof n?s.result="(".concat(r.result,")"):c==="number"?s.result=my(r):c==="string"&&(s.result=r),s}return il(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(my(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(my(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(lz,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(iz),cz=function(t,n){var r=sz;return function(i){return new r(i,n)}},Aw=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 Dw(e,t,n,r){var i=Dn({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var f=MR(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 IR=typeof CSSINJS_STATISTIC<"u",wb=!0;function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!IR)return Object.assign.apply(Object,[{}].concat(t));wb=!1;var r={};return t.forEach(function(i){if(Kn(i)==="object"){var s=Object.keys(i);s.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return i[c]}})})}}),wb=!0,r}var jw={};function uz(){}var dz=function(t){var n,r=t,i=uz;return IR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,d){if(wb){var f;(f=n)===null||f===void 0||f.add(d)}return c[d]}}),i=function(c,d){var f;jw[c]={global:Array.from(n),component:Dn(Dn({},(f=jw[c])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:i}};function _w(e,t,n){if(typeof n=="function"){var r;return n(Ot(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function fz(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 mz=1e3*60*10,pz=(function(){function e(){al(this,e),cr(this,"map",new Map),cr(this,"objectIDMap",new WeakMap),cr(this,"nextID",0),cr(this,"lastAccessBeat",new Map),cr(this,"accessBeat",0)}return il(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&&Kn(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Kn(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>mz&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Hw=new pz;function gz(e,t){return ae.useMemo(function(){var n=Hw.get(t);if(n)return n;var r=e();return Hw.set(t,r),r},t)}var hz=function(){return{}};function yz(e){var t=e.useCSP,n=t===void 0?hz:t,r=e.useToken,i=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function f(y,C,b,$){var S=Array.isArray(y)?y[0]:y;function w(P){return"".concat(String(S)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var M=$?.unitless||{},x=typeof d=="function"?d(y):{},R=Dn(Dn({},x),{},cr({},w("zIndexPopup"),!0));Object.keys(M).forEach(function(P){R[w(P)]=M[P]});var T=Dn(Dn({},$),{},{unitless:R,prefixToken:w}),N=g(y,C,b,T),O=p(S,b,T);return function(P){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,W=N(P,D),k=O(D);return[W,k]}}function p(y,C,b){var $=b.unitless,S=b.prefixToken,w=b.ignore;return function(M){var x=r(),R=x.cssVar,T=x.realToken;return ez({path:[y],prefix:R.prefix,key:R.key,unitless:$,ignore:w,token:T,scope:M},function(){var N=_w(y,T,C),O=Dw(y,T,N,{deprecatedTokens:b?.deprecatedTokens});return N&&Object.keys(N).forEach(function(P){O[S(P)]=O[P],delete O[P]}),O}),R?.key}}function g(y,C,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],w=MR(S,1),M=w[0],x=S.join("-"),R=e.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=r(),P=O.theme,D=O.realToken,W=O.hashId,k=O.token,U=O.cssVar,G=O.zeroRuntime,L=l.useMemo(function(){return G},[]);if(L)return W;var H=i(),_=H.rootPrefixCls,B=H.iconPrefixCls,I=n(),z="css",V=gz(function(){var K=new Set;return Object.keys($.unitless||{}).forEach(function(Z){K.add(pm(Z,U.prefix)),K.add(pm(Z,Aw(M,U.prefix)))}),cz(z,K)},[z,M,U?.prefix]),A=fz(),j=A.max,q=A.min,X={theme:P,token:k,hashId:W,nonce:function(){return I.nonce},clientOnly:$.clientOnly,layer:R,order:$.order||-999};return typeof s=="function"&&xb(Dn(Dn({},X),{},{clientOnly:!1,path:["Shared",_]}),function(){return s(k,{prefix:{rootPrefixCls:_,iconPrefixCls:B},csp:I})}),xb(Dn(Dn({},X),{},{path:[x,T,B]}),function(){if($.injectStyle===!1)return[];var K=dz(k),Z=K.token,ee=K.flush,ie=_w(M,D,b),ne=".".concat(T),oe=Dw(M,D,ie,{deprecatedTokens:$.deprecatedTokens});ie&&Kn(ie)==="object"&&Object.keys(ie).forEach(function(ge){ie[ge]="var(".concat(pm(ge,Aw(M,U.prefix)),")")});var de=Ot(Z,{componentCls:ne,prefixCls:T,iconCls:".".concat(B),antCls:".".concat(_),calc:V,max:j,min:q},ie),le=C(de,{hashId:W,prefixCls:T,rootPrefixCls:_,iconPrefixCls:B});ee(M,oe);var fe=typeof c=="function"?c(de,T,N,$.resetFont):null;return[$.resetStyle===!1?null:fe,le]}),W}}function h(y,C,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=g(y,C,b,Dn({resetStyle:!1,order:-998},$)),w=function(x){var R=x.prefixCls,T=x.rootCls,N=T===void 0?R:T;return S(R,N),null};return w}return{genStyleHooks:f,genSubStyleComponent:h,genComponentStyleHook:g}}const ui=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function bm(e){return(e+8)/e}function bz(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:bm(n)}))}const vz="6.1.2",PR={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"},Su={...PR,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},Sz={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"},lr=Math.round;function py(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 Bw=(e,t,n)=>n===0?e:e/100;function zc(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=Sz[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=zc(t.r),this.g=zc(t.g),this.b=zc(t.b),this.a=typeof t.a=="number"?zc(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=lr(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:lr(s("r")),g:lr(s("g")),b:lr(s("b")),a:lr(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=>lr((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=lr(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=lr(this.getSaturation()*100),r=lr(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]=zc(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=lr(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=lr((s+h)*255),this.g=lr((c+h)*255),this.b=lr((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=lr(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=lr(r*(1-n)*255),g=lr(r*(1-n*f)*255),h=lr(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=py(t,Bw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=py(t,Bw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=py(t,(r,i)=>i.includes("%")?lr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Df=2,Lw=.16,Cz=.05,$z=.05,xz=.15,zR=5,AR=4,wz=[{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 Vw(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Df*t:Math.round(e.h)+Df*t:r=n?Math.round(e.h)+Df*t:Math.round(e.h)-Df*t,r<0?r+=360:r>=360&&(r-=360),r}function Fw(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Lw*t:t===AR?r=e.s+Lw:r=e.s+Cz*t,r>1&&(r=1),n&&t===zR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function kw(e,t,n){let r;return n?r=e.v+$z*t:r=e.v-xz*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function MS(e,t={}){const n=[],r=new en(e),i=r.toHsv();for(let s=zR;s>0;s-=1){const c=new en({h:Vw(i,s,!0),s:Fw(i,s,!0),v:kw(i,s,!0)});n.push(c)}n.push(r);for(let s=1;s<=AR;s+=1){const c=new en({h:Vw(i,s),s:Fw(i,s),v:kw(i,s)});n.push(c)}return t.theme==="dark"?wz.map(({index:s,amount:c})=>new en(t.backgroundColor||"#141414").mix(n[s],c).toHexString()):n.map(s=>s.toHexString())}const ys={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"},Eb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Eb.primary=Eb[5];const Mb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Mb.primary=Mb[5];const Rb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Rb.primary=Rb[5];const Dm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Dm.primary=Dm[5];const Tb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Tb.primary=Tb[5];const Ob=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ob.primary=Ob[5];const Nb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Nb.primary=Nb[5];const Ib=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ib.primary=Ib[5];const jm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jm.primary=jm[5];const Pb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Pb.primary=Pb[5];const zb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zb.primary=zb[5];const Ab=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ab.primary=Ab[5];const Db=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Db.primary=Db[5];const gy={red:Eb,volcano:Mb,orange:Rb,gold:Dm,yellow:Tb,lime:Ob,green:Nb,cyan:Ib,blue:jm,geekblue:Pb,purple:zb,magenta:Ab,grey:Db};function Ez(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),C=t(s),b=t(c),$=n(f,p),S=e.colorLink||e.colorInfo,w=t(S),M=new en(C[1]).mix(new en(C[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:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:M,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[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 Mz=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 Rz(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,...Mz(r)}}const Tz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Oz=e=>{const t=bz(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 Nz(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 ho=(e,t)=>new en(e).setA(t).toRgbString(),Gl=(e,t)=>new en(e).darken(t).toHexString(),Iz=e=>{const t=MS(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]}},Pz=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.88),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.15),colorFillSecondary:ho(r,.06),colorFillTertiary:ho(r,.04),colorFillQuaternary:ho(r,.02),colorBgSolid:ho(r,1),colorBgSolidHover:ho(r,.75),colorBgSolidActive:ho(r,.95),colorBgLayout:Gl(n,4),colorBgContainer:Gl(n,0),colorBgElevated:Gl(n,0),colorBgSpotlight:ho(r,.85),colorBgBlur:"transparent",colorBorder:Gl(n,15),colorBorderDisabled:Gl(n,15),colorBorderSecondary:Gl(n,6)}};function DR(e){ys.pink=ys.magenta,gy.pink=gy.magenta;const t=Object.keys(PR).map(n=>{const r=e[n]===ys[n]?gy[n]:MS(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,...Ez(e,{generateColorPalettes:Iz,generateNeutralColorPalettes:Pz}),...Oz(e.fontSize),...Nz(e),...Tz(e),...Rz(e)}}const jR=bb(DR),_m={token:Su,override:{override:Su},hashed:!0},_R=ae.createContext(_m);function hy(e){return e>=0&&e<=255}function Gc(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(hy(g)&&hy(h)&&hy(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 zz(e){const{override:t,...n}=e,r={...t};Object.keys(Su).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:Gc(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:Gc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Gc(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:Gc(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 HR={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},Az={motionBase:!0,motionUnit:!0},Dz={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},BR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...s}=t;let c={...r,override:i};return c=zz(c),s&&Object.entries(s).forEach(([d,f])=>{const{theme:p,...g}=f;let h=g;p&&(h=BR({...c,...g},{override:g},p)),c[d]=h}),c};function Wr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:s}=ae.useContext(_R),c={prefix:i?.prefix??"ant",key:i?.key??"css-var-root"},d=`${vz}-${t||""}`,f=n||jR,[p,g,h]=O8(f,[Su,e],{salt:d,override:r,getComputedToken:BR,cssVar:{...c,unitless:HR,ignore:Az,preserve:Dz}});return[f,h,t?g:"",p,c,!!s]}const $o={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}),Is=()=>({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"}}),Zi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),jz=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"}}}),_z=(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}}},Uo=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),xo=(e,t)=>({"&:focus-visible":Uo(e,t)}),LR=e=>({[`.${e}`]:{...Is(),[`.${e} .${e}-icon`]:{display:"block"}}}),VR=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...xo(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:Hz,genSubStyleComponent:ad}=yz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i,s]=Wr();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=jz(e);return[n,{"&":n},LR(t?.prefix.iconPrefixCls??hp)]},getCommonStyle:_z,getCompUnitless:()=>HR}),Bz=(e,t)=>{const n=`--${e.replace(".","")}-${t}-`;return(r,i=!1)=>{const s=`${n}${r}`;return i?`var(${s})`:s}};function $p(e,t){return ui.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 Lz=(e,t)=>(Wr(),xb({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>LR(e)));var Vz={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 RS=l.createContext({});function FR(e){return e?.getRootNode?.()}function Fz(e){return FR(e)instanceof ShadowRoot}function Hm(e){return Fz(e)?FR(e):null}function kz(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Wz(e,t){tr(e,`[@ant-design/icons] ${t}`)}function Ww(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function qw(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[kz(n)]=r),t},{})}function jb(e,t,n){return n?ae.createElement(e.tag,{key:t,...qw(e.attrs),...n},(e.children||[]).map((r,i)=>jb(r,`${t}-${e.tag}-${i}`))):ae.createElement(e.tag,{key:t,...qw(e.attrs)},(e.children||[]).map((r,i)=>jb(r,`${t}-${e.tag}-${i}`)))}function kR(e){return MS(e)[0]}function WR(e){return e?Array.isArray(e)?e:[e]:[]}const qz=`
|
|
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
|
+
`,Yz=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(RS);let i=qz;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {
|
|
104
|
+
${i}
|
|
105
|
+
}`),l.useEffect(()=>{const s=e.current,c=Hm(s);li(i,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},ou={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Uz({primaryColor:e,secondaryColor:t}){ou.primaryColor=e,ou.secondaryColor=t||kR(e),ou.calculated=!!t}function Gz(){return{...ou}}const Ps=e=>{const{icon:t,className:n,onClick:r,style:i,primaryColor:s,secondaryColor:c,...d}=e,f=l.useRef(null);let p=ou;if(s&&(p={primaryColor:s,secondaryColor:c||kR(s)}),Yz(f),Wz(Ww(t),`icon should be icon definiton, but got ${t}`),!Ww(t))return null;let g=t;return g&&typeof g.icon=="function"&&(g={...g,icon:g.icon(p.primaryColor,p.secondaryColor)}),jb(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})};Ps.displayName="IconReact";Ps.getTwoToneColors=Gz;Ps.setTwoToneColors=Uz;function qR(e){const[t,n]=WR(e);return Ps.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Xz(){const e=Ps.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}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)}qR(jm.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(RS),y=Q(h,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!i||r.name==="loading"},n);let C=c;C===void 0&&d&&(C=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[$,S]=WR(f);return l.createElement("span",_b({role:"img","aria-label":r.name},p,{ref:t,tabIndex:C,onClick:d,className:y}),l.createElement(Ps,{icon:r,primaryColor:$,secondaryColor:S,style:b}))});gt.getTwoToneColor=Xz;gt.setTwoToneColor=qR;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 Kz=(e,t)=>l.createElement(gt,Hb({},e,{ref:t,icon:Vz})),xp=l.forwardRef(Kz);var Qz={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 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 Zz=(e,t)=>l.createElement(gt,Bb({},e,{ref:t,icon:Qz})),zs=l.forwardRef(Zz);var Jz={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 Lb(){return Lb=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},Lb.apply(this,arguments)}const e5=(e,t)=>l.createElement(gt,Lb({},e,{ref:t,icon:Jz})),qr=l.forwardRef(e5);var t5={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 Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vb.apply(this,arguments)}const n5=(e,t)=>l.createElement(gt,Vb({},e,{ref:t,icon:t5})),As=l.forwardRef(n5);var r5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 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 Fb(){return Fb=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},Fb.apply(this,arguments)}const o5=(e,t)=>l.createElement(gt,Fb({},e,{ref:t,icon:r5})),TS=l.forwardRef(o5),YR=l.createContext({});function a5({children:e,...t}){return l.createElement(YR.Provider,{value:t},e)}function i5(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 va="none",jf="appear",_f="enter",Hf="leave",Yw="none",Po="prepare",cs="start",us="active",OS="end",UR="prepared";function Uw(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 l5(e,t){const n={animationend:Uw("Animation","AnimationEnd"),transitionend:Uw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const s5=l5(Fr(),typeof window<"u"?window:{});let GR={};Fr()&&({style:GR}=document.createElement("div"));const Bf={};function XR(e){if(Bf[e])return Bf[e];const t=s5[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 GR)return Bf[e]=t[s],Bf[e]}}return""}const KR=XR("animationend"),QR=XR("transitionend"),c5=!!(KR&&QR),Gw=KR||"animationend",Xw=QR||"transitionend";function Kw(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 u5=(e=>{const t=l.useRef();function n(i){i&&(i.removeEventListener(Xw,e),i.removeEventListener(Gw,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(Xw,e),i.addEventListener(Gw,e),t.current=i)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),ZR=Fr()?l.useLayoutEffect:l.useEffect,d5=(()=>{const e=l.useRef(null);function t(){Ht.cancel(e.current)}function n(r,i=2){t();const s=Ht(()=>{i<=1?r({isCanceled:()=>s!==e.current}):n(r,i-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]}),f5=[Po,cs,us,OS],m5=[Po,UR],JR=!1,p5=!0;function eT(e){return e===us||e===OS}const g5=((e,t,n)=>{const[r,i]=zm(Yw),[s,c]=d5();function d(){i(Po,!0)}const f=t?m5:f5;return ZR(()=>{if(r!==Yw&&r!==OS){const p=f.indexOf(r),g=f[p+1],h=n(r);h===JR?i(g,!0):g&&s(y=>{function C(){y.isCanceled()||i(g,!0)}h===!0?C():Promise.resolve(h).then(C)})}},[e,r]),l.useEffect(()=>()=>{c()},[]),[d,r]});function h5(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:C,onAppearActive:b,onEnterActive:$,onLeaveActive:S,onAppearEnd:w,onEnterEnd:M,onLeaveEnd:x,onVisibleChanged:R}){const[T,N]=zm(),[O,P]=i5(va),[D,W]=zm(null),k=O(),U=l.useRef(!1),G=l.useRef(null);function L(){return n()}const H=l.useRef(!1);function _(){P(va),W(null,!0)}const B=ut(ee=>{const ie=O();if(ie===va)return;const ne=L();if(ee&&!ee.deadline&&ee.target!==ne)return;const oe=H.current;let de;ie===jf&&oe?de=w?.(ne,ee):ie===_f&&oe?de=M?.(ne,ee):ie===Hf&&oe&&(de=x?.(ne,ee)),oe&&de!==!1&&_()}),[I]=u5(B),z=ee=>{switch(ee){case jf:return{[Po]:f,[cs]:h,[us]:b};case _f:return{[Po]:p,[cs]:y,[us]:$};case Hf:return{[Po]:g,[cs]:C,[us]:S};default:return{}}},V=l.useMemo(()=>z(k),[k]),[A,j]=g5(k,!e,ee=>{if(ee===Po){const ie=V[Po];return ie?ie(L()):JR}return j in V&&W(V[j]?.(L(),null)||null),j===us&&k!==va&&(I(L()),c>0&&(clearTimeout(G.current),G.current=setTimeout(()=>{B({deadline:!0})},c))),j===UR&&_(),p5}),q=eT(j);H.current=q;const X=l.useRef(null);ZR(()=>{if(U.current&&X.current===t)return;N(t);const ee=U.current;U.current=!0;let ie;!ee&&t&&i&&(ie=jf),ee&&t&&r&&(ie=_f),(ee&&!t&&s||!ee&&d&&!t&&s)&&(ie=Hf);const ne=z(ie);ie&&(e||ne[Po])?(P(ie),A()):P(va),X.current=t},[t]),l.useEffect(()=>{(k===jf&&!i||k===_f&&!r||k===Hf&&!s)&&P(va)},[i,r,s]),l.useEffect(()=>()=>{U.current=!1,clearTimeout(G.current)},[]);const K=l.useRef(!1);l.useEffect(()=>{T&&(K.current=!0),T!==void 0&&k===va&&((K.current||T)&&R?.(T),K.current=!0)},[T,k]);let Z=D;return V[Po]&&j===cs&&(Z={transition:"none",...Z}),[O,j,Z,T??t]}function y5(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:C}=l.useContext(YR),b=n(i,C),$=l.useRef();function S(){return mu($.current)}const[w,M,x,R]=h5(b,c,S,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:S},inMotion:{enumerable:!0,get:()=>()=>w()!==va},enableMotion:{enumerable:!0,get:()=>()=>b}}),W},[]);l.useImperativeHandle(s,()=>O,[]);let P;const D={...y,visible:c};if(!p)P=null;else if(T===va)R?P=p({...D},$):!d&&N.current&&h?P=p({...D,className:h},$):f||!d&&!h?P=p({...D,style:{display:"none"}},$):P=null;else{let W;M===Po?W="prepare":eT(M)?W="active":M===cs&&(W="start");const k=Kw(g,`${T}-${W}`);P=p({...D,className:Q(Kw(g,T),{[k]:k&&W,[g]:typeof g=="string"}),style:x},$)}return l.isValidElement(P)&&rl(P)&&(ol(P)||(P=l.cloneElement(P,{ref:$}))),P});return r.displayName="CSSMotion",r}const Sr=y5(c5),kb="add",Wb="keep",qb="remove",yy="removed";function b5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Yb(e=[]){return e.map(b5)}function v5(e=[],t=[]){let n=[],r=0;const i=t.length,s=Yb(e),c=Yb(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(C=>({...C,status:kb}))),r=h),n.push({...y,status:Wb}),r+=1,g=!0;break}}g||n.push({...p,status:qb})}),r<i&&(n=n.concat(c.slice(r).map(p=>({...p,status:kb}))));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!==qb),n.forEach(g=>{g.key===p&&(g.status=Wb)})}),n}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 S5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function C5(e,t=Sr){class n extends l.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:s}){const c=Yb(i);return{keyEntities:v5(s,c).filter(f=>{const p=s.find(({key:g})=>f.key===g);return!(p&&p.status===yy&&f.status===qb)})}}removeKey=i=>{this.setState(s=>({keyEntities:s.keyEntities.map(d=>d.key!==i?d:{...d,status:yy})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:d})=>d!==yy).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 S5.forEach(y=>{h[y]=p[y],delete p[y]}),delete p.keys,l.createElement(g,p,i.map(({status:y,...C},b)=>{const $=y===kb||y===Wb;return l.createElement(t,Ub({},h,{key:C.key,visible:$,eventProps:C,onVisibleChanged:S=>{d?.(S,{key:C.key}),S||this.removeKey(C.key)}}),(S,w)=>c({...S,index:b},w))}))}}return n}const $5=C5(),x5=`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`,w5=`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`,E5=`${x5} ${w5}`.split(/[\s\n]+/),M5="aria-",R5="data-";function Qw(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"||Qw(i,M5))||n.data&&Qw(i,R5)||n.attr&&E5.includes(i))&&(r[i]=e[i])}),r}const tT={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 T5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}function Zw(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 Jw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){O5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O5(e,t,n){return t=N5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N5(e){var t=I5(e,"string");return Cu(t)=="symbol"?t:String(t)}function I5(e,t){if(Cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var P5=Jw(Jw({},T5),{},{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 nT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$u={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"],...P5},timePickerLocale:{...nT}},eo="${label} is not a valid ${type}",$a={locale:"en",Pagination:tT,DatePicker:$u,TimePicker:nT,Calendar:$u,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: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:"${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 vm={...$a.Modal},Sm=[];const eE=()=>Sm.reduce((e,t)=>({...e,...t}),$a.Modal);function z5(e){if(e){const t={...e};return Sm.push(t),vm=eE(),()=>{Sm=Sm.filter(n=>n!==t),vm=eE()}}vm={...$a.Modal}}function rT(){return vm}const NS=l.createContext(void 0),oo=(e,t)=>{const n=l.useContext(NS),r=l.useMemo(()=>{const s=t||$a[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?$a.locale:s},[n]);return[r,i]},A5="internalMark",D5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>z5(t?.Modal),[t]);const i=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(NS.Provider,{value:i},n)};function Gb(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}const Mr=e=>e!=null,Cs=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},oT={},tE=(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},j5=(e,t,n)=>e===!1?!1:e?Gb(n,t,e):t===!1?!1:t?Gb(n,t):n.closable?n:!1,_5=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:i,...s}=e;let c=i;const d=jn(s,!0);return Mr(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]},H5=(e,t,n=oT,r="Close")=>{const i=tE(e?.closable,e?.closeIcon),s=tE(t?.closable,t?.closeIcon),c={closeIcon:ae.createElement(qr,null),...n},d=j5(i,s,c),f=typeof d!="boolean"?!!d?.disabled:!1;if(d===!1)return[!1,null,f,{}];const[p,g]=_5(d,c,r);return[!0,p,f,g]},IS=(e,t,n=oT)=>{const[r]=oo("global",$a.global);return ae.useMemo(()=>H5(e,t,{closeIcon:ae.createElement(qr,null),...n},r.close),[e,t,n,r.close])},B5=()=>ae.useReducer(e=>e+1,0),nE=e=>e&&typeof e=="object"?e:typeof e=="boolean"?{enabled:e,blur:e}:{},aT=(e,t,n)=>l.useMemo(()=>{const r=nE(e),s={...nE(t),...r},c=s.blur!==!1?`${n}-mask-blur`:void 0;return[s.enabled!==!1,{mask:c}]},[e,t,n]),PS=(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]=PS(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),{})},L5=(e,...t)=>l.useMemo(()=>PS.apply(void 0,[e].concat(t)),[e].concat(t)),iT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),V5=(...e)=>l.useMemo(()=>iT.apply(void 0,e),[].concat(e)),Xb=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const i=t[r],s=n[r]||{};n[r]=i?Xb(s,i):s}}),n},ds=(e,t)=>typeof e=="function"?e(t):e,Lt=(e,t,n,r)=>{const i=e.map(f=>f?ds(f,n):void 0),s=t.map(f=>f?ds(f,n):void 0),c=L5.apply(void 0,[r].concat(xn(i))),d=V5.apply(void 0,xn(s));return l.useMemo(()=>r?[Xb(c,r),Xb(d,r)]:[c,d],[c,d,r])},rE=e=>e==="horizontal"||e==="vertical",id=(e,t,n)=>l.useMemo(()=>{const r=rE(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=rE(n)?n:"horizontal",[i,i==="vertical"]},[n,e,t]),F5=()=>{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]},ld=ae.createContext(void 0),ti=100,k5=10,lT=ti*k5,sT={Modal:ti,Drawer:ti,Popover:ti,Popconfirm:ti,Tooltip:ti,Tour:ti,FloatButton:ti},W5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},q5=e=>e in sT,pi=(e,t)=>{const[,n]=Wr(),r=ae.useContext(ld),i=q5(e);let s;if(t!==void 0)s=[t,t];else{let c=r??0;i?c+=(r?0:n.zIndexPopupBase)+sT[e]:c+=W5[e],s=[r===void 0?t:c,c]}return s};function cT(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const zS=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function nr(e,t){return zS(e,e,t)}const Lf=(e,t,n,r,i)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),Y5=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:C,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:C,[`${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}}},U5=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:C}=e;return{[t]:{"&-success":Lf(i,r,n,e,t),"&-info":Lf(C,y,h,e,t),"&-warning":Lf(d,c,s,e,t),"&-error":{...Lf(g,p,f,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},G5=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}}}}},X5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),K5=Pt("Alert",e=>[Y5(e),U5(e),G5(e)],X5),Q5={success:xp,info:TS,error:zs,warning:As},Z5=e=>{const{icon:t,prefixCls:n,type:r,className:i,style:s}=e,c=Q5[r]||null;return t?zS(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:Q(t.props.className,i),style:s})):l.createElement(c,{className:i,style:s})},J5=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(qr,null):r;return t?l.createElement("button",{type:"button",onClick:i,className:Q(`${n}-close-icon`,c),tabIndex:0,style:d,...s},f):null},uT=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:C,showIcon:b,closable:$,closeText:S,closeIcon:w,action:M,id:x,styles:R,classNames:T,...N}=e,O=s??i,[P,D]=l.useState(!1),W=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:W.current}));const{getPrefixCls:k,direction:U,closable:G,closeIcon:L,className:H,style:_,classNames:B,styles:I}=It("alert"),z=k("alert",r),[V,A]=K5(z),{onClose:j,afterClose:q}=$&&typeof $=="object"?$:{},X=re=>{D(!0),(j??e.onClose)?.(re)},K=l.useMemo(()=>e.type!==void 0?e.type:c?"warning":"info",[e.type,c]),Z=l.useMemo(()=>typeof $=="object"&&$.closeIcon||S?!0:typeof $=="boolean"?$:w!==!1&&Mr(w)?!0:!!G,[S,w,$,G]),ee=c&&b===void 0?!0:b,ie={...e,prefixCls:z,type:K,showIcon:ee,closable:Z},[ne,oe]=Lt([B,T],[I,R],{props:ie}),de=Q(z,`${z}-${K}`,{[`${z}-with-description`]:!!n,[`${z}-no-icon`]:!ee,[`${z}-banner`]:!!c,[`${z}-rtl`]:U==="rtl"},H,d,f,ne.root,A,V),le=jn(N,{aria:!0,data:!0}),fe=l.useMemo(()=>typeof $=="object"&&$.closeIcon?$.closeIcon:S||(w!==void 0?w:typeof G=="object"&&G.closeIcon?G.closeIcon:L),[w,$,G,S,L]),ge=l.useMemo(()=>{const re=$??G;return typeof re=="object"?jn(re,{data:!0,aria:!0}):{}},[$,G]);return l.createElement(Sr,{visible:!P,motionName:`${z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:re=>({maxHeight:re.offsetHeight}),onLeaveEnd:q??C},({className:re,style:ue},he)=>l.createElement("div",{id:x,ref:or(W,he),"data-show":!P,className:Q(de,re),style:{...oe.root,..._,...p,...ue},onMouseEnter:g,onMouseLeave:h,onClick:y,role:"alert",...le},ee?l.createElement(Z5,{className:Q(`${z}-icon`,ne.icon),style:oe.icon,description:n,icon:e.icon,prefixCls:z,type:K}):null,l.createElement("div",{className:Q(`${z}-section`,ne.section),style:oe.section},O?l.createElement("div",{className:Q(`${z}-title`,ne.title),style:oe.title},O):null,n?l.createElement("div",{className:Q(`${z}-description`,ne.description),style:oe.description},n):null),M?l.createElement("div",{className:Q(`${z}-actions`,ne.actions),style:oe.actions},M):null,l.createElement(J5,{className:ne.close,style:oe.close,isClosable:Z,prefixCls:z,closeIcon:fe,handleClose:X,ariaProps:ge})))});function eA(e,t,n){return t=Qi(t),TR(e,Cp()?Reflect.construct(t,n||[],Qi(e).constructor):t.apply(e,n))}let tA=(function(e){function t(){var n;return al(this,t),n=eA(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return ES(t,e),il(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,C=typeof s>"u"?h:s;return f?l.createElement(uT,{id:c,type:"error",title:y,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},C)}):d}}])})(l.Component);const dT=uT;dT.ErrorBoundary=tA;const ar=e=>`${e}-css-var`,nA=l.createContext(void 0);var $s=Q4();const fT=l.createContext(null);let rA=!1;function oA(e){return rA}const oE=[];function aA(e,t){const[n]=l.useState(()=>Fr()?document.createElement("div"):null),r=l.useRef(!1),i=l.useContext(fT),[s,c]=l.useState(oE),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(oE))},[s]),[n,d]}function iA(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};`:"",C=h?`height: ${p.height};`:"";li(`
|
|
125
|
+
#${t}::-webkit-scrollbar {
|
|
126
|
+
${y}
|
|
127
|
+
${C}
|
|
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),gu(t),{width:c,height:d}}function lA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:iA(e)}function sA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const cA=`rc-util-locker-${Date.now()}`;let aE=0;function uA(e){const t=!!e,[n]=l.useState(()=>(aE+=1,`${cA}_${aE}`));Nt(()=>{if(t){const r=lA(document.body).width,i=sA();li(`
|
|
129
|
+
html body {
|
|
130
|
+
overflow-y: hidden;
|
|
131
|
+
${i?`width: calc(100% - ${r}px);`:""}
|
|
132
|
+
}`,n)}else gu(n);return()=>{gu(n)}},[t,n])}function dA(){return{...TP}.useId}let iE=0;const lE=dA(),Ko=lE?(function(t){const n=lE();return t||n}):(function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const i=iE;iE+=1,r(`rc_unique_${i}`)},[]),t||n});let Qa=[];function fA(e,t){const n=Ko(),r=ut(i=>{if(i.key==="Escape"&&!i.isComposing){const s=Qa[Qa.length-1]===n;t?.({top:s,event:i})}});l.useMemo(()=>{e&&!Qa.includes(n)?Qa.push(n):e||(Qa=Qa.filter(i=>i!==n))},[e,n]),l.useEffect(()=>{if(e)return window.addEventListener("keydown",r),()=>{Qa=Qa.filter(i=>i!==n),window.removeEventListener("keydown",r)}},[e,n])}const sE=e=>e===!1?!1:!Fr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,sd=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:i,debug:s,autoDestroy:c=!0,children:d,onEsc:f}=e,[p,g]=l.useState(n),h=p||n;l.useEffect(()=>{(c||n)&&g(n)},[n,c]);const[y,C]=l.useState(()=>sE(i));l.useEffect(()=>{const T=sE(i);C(T??null)});const[b,$]=aA(h&&!y),S=y??b;uA(r&&n&&Fr()&&(S===b||S===document.body)),fA(n,f);let w=null;d&&rl(d)&&t&&(w=ol(d));const M=mi(w,t);if(!h||!Fr()||y===void 0)return null;const x=S===!1||oA();let R=d;return t&&(R=l.cloneElement(d,{ref:M})),l.createElement(fT.Provider,{value:$},x?R:$s.createPortal(R,S))});function mA(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],C=n.points[1],b=y[0],$=y[1],S=C[0],w=C[1];b===S||!["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 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)}function pA(e){const{prefixCls:t,open:n,zIndex:r,mask:i,motion:s,mobile:c}=e;return i?l.createElement(Sr,Kb({},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 gA=l.memo(({children:e})=>e,(e,t)=>t.cache);function mT(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",C=h&&g[0][0]==="b";y?(p.right=i,p.left=f):(p.left=c,p.right=f),C?(p.bottom=s,p.top=f):(p.top=d,p.bottom=f)}return p}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 pT=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:C,arrowPos:b,align:$,motion:S,maskMotion:w,mobile:M,forceRender:x,getPopupContainer:R,autoDestroy:T,portal:N,children:O,zIndex:P,onMouseEnter:D,onMouseLeave:W,onPointerEnter:k,onPointerDownCapture:U,ready:G,offsetX:L,offsetY:H,offsetR:_,offsetB:B,onAlign:I,onPrepare:z,onResize:V,stretch:A,targetWidth:j,targetHeight:q}=e,X=typeof n=="function"?n():n,K=f||p,Z=!!M,[ee,ie,ne]=l.useMemo(()=>M?[M.mask,M.maskMotion,M.motion]:[y,w,S],[M,y,w,S]),oe=R?.length>0,[de,le]=l.useState(!R||!oe);Nt(()=>{!de&&oe&&c&&le(!0)},[de,oe,c]);const fe=ut((ue,he)=>{V?.(ue,he),I()}),ge=mT(Z,G,f,$,_,B,L,H);if(!de)return null;const re={};return A&&(A.includes("height")&&q?re.height=q:A.includes("minHeight")&&q&&(re.minHeight=q),A.includes("width")&&j?re.width=j:A.includes("minWidth")&&j&&(re.minWidth=j)),f||(re.pointerEvents="none"),l.createElement(N,{open:x||K,getContainer:R&&(()=>R(c)),autoDestroy:T},l.createElement(pA,{prefixCls:i,open:f,zIndex:P,mask:ee,motion:ie,mobile:Z}),l.createElement(Vr,{onResize:fe,disabled:!f},ue=>l.createElement(Sr,Qb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:`${i}-hidden`},ne,{onAppearPrepare:z,onEnterPrepare:z,visible:f,onVisibleChanged:he=>{S?.onVisibleChanged?.(he),d(he)}}),({className:he,style:pe},Se)=>{const Ie=Q(i,he,r,{[`${i}-mobile`]:Z});return l.createElement("div",{ref:or(ue,t,Se),className:Ie,style:{"--arrow-x":`${b.x||0}px`,"--arrow-y":`${b.y||0}px`,...ge,...re,...pe,boxSizing:"border-box",zIndex:P,...s},onMouseEnter:D,onMouseLeave:W,onPointerEnter:k,onClick:h,onPointerDownCapture:U},C&&l.createElement(mA,{prefixCls:i,arrow:C,arrowPos:b,align:$}),l.createElement(gA,{cache:!f&&!g},X))})),O)}),Bm=l.createContext(null),gT=l.createContext(null);function cE(e){return e?Array.isArray(e)?e:[e]:[]}function hA(e,t,n){return l.useMemo(()=>{const r=cE(t??e),i=cE(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 wp=(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 yA(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 hT(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(yA(e[d]?.points,i,r))return`${t}-placement-${d}`}return""}function cd(e){return e.ownerDocument.defaultView}function Zb(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:i,overflowY:s,overflow:c}=cd(n).getComputedStyle(n);[i,s,c].some(d=>r.includes(d))&&t.push(n),n=n.parentElement}return t}function xu(e,t=1){return Number.isNaN(e)?t:e}function Ac(e){return xu(parseFloat(e),0)}function uE(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}=cd(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:h,clientHeight:y,offsetWidth:C,clientWidth:b}=r,$=Ac(c),S=Ac(d),w=Ac(f),M=Ac(p),x=xu(Math.round(g.width/C*1e3)/1e3),R=xu(Math.round(g.height/h*1e3)/1e3),T=(C-b-w-M)*x,N=(h-y-$-S)*R,O=$*R,P=S*R,D=w*x,W=M*x;let k=0,U=0;if(i==="clip"){const B=Ac(s);k=B*x,U=B*R}const G=g.x+D-k,L=g.y+O-U,H=G+g.width+2*k-D-W-T,_=L+g.height+2*U-O-P-N;n.left=Math.max(n.left,G),n.top=Math.max(n.top,L),n.right=Math.min(n.right,H),n.bottom=Math.min(n.bottom,_)}),n}function dE(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function fE(e,t){const[n,r]=t||[];return[dE(e.width,n),dE(e.height,r)]}function mE(e=""){return[e[0],e[1]]}function Xl(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 Za(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function pE(e){return e.join("")}function yT(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?[]:Zb(t),[t]),y=l.useRef({});e||(y.current={});const b=ut(()=>{if(t&&n&&e&&!d){let Ze=function(yt,Sn,Mn=ue){const Fn=H.x+yt,In=H.y+Sn,wo=Fn+K,Zo=In+X,Eo=Math.max(Fn,Mn.left),_o=Math.max(In,Mn.top),tt=Math.min(wo,Mn.right),Jt=Math.min(Zo,Mn.bottom);return Math.max(0,(tt-Eo)*(Jt-_o))},Je=function(){Ae=H.y+Pe,We=Ae+X,Me=H.x+ve,Ye=Me+K};var w=Ze,M=Je;const x=t,R=x.ownerDocument,T=cd(x),{position:N}=T.getComputedStyle(x),O=x.style.left,P=x.style.top,D=x.style.right,W=x.style.bottom,k=x.style.overflow,U={...i[r],...s},G=R.createElement("div");x.parentElement?.appendChild(G),G.style.left=`${x.offsetLeft}px`,G.style.top=`${x.offsetTop}px`,G.style.position=N,G.style.height=`${x.offsetHeight}px`,G.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 H=x.getBoundingClientRect(),{height:_,width:B}=T.getComputedStyle(x);H.x=H.x??H.left,H.y=H.y??H.top;const{clientWidth:I,clientHeight:z,scrollWidth:V,scrollHeight:A,scrollTop:j,scrollLeft:q}=R.documentElement,X=H.height,K=H.width,Z=L.height,ee=L.width,ie={left:0,top:0,right:I,bottom:z},ne={left:-q,top:-j,right:V-q,bottom:A-j};let{htmlRegion:oe}=U;const de="visible",le="visibleFirst";oe!=="scroll"&&oe!==le&&(oe=de);const fe=oe===le,ge=uE(ne,h),re=uE(ie,h),ue=oe===de?re:ge,he=fe?re:ue;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=P,x.style.right=D,x.style.bottom=W,x.style.overflow=k,x.parentElement?.removeChild(G);const Se=xu(Math.round(K/parseFloat(B)*1e3)/1e3),Ie=xu(Math.round(X/parseFloat(_)*1e3)/1e3);if(Se===0||Ie===0||vs(n)&&!wp(n))return;const{offset:Re,targetOffset:we}=U;let[se,be]=fE(H,Re);const[Ee,Ne]=fE(L,we);L.x-=Ee,L.y-=Ne;const[Ve,Ge]=U.points||[],et=mE(Ge),Te=mE(Ve),_e=Xl(L,et),Le=Xl(H,Te),Qe={...U};let De=[Te,et],ve=_e.x-Le.x+se,Pe=_e.y-Le.y+be;const Ue=Ze(ve,Pe),Fe=Ze(ve,Pe,re),ze=Xl(L,["t","l"]),Xe=Xl(H,["t","l"]),rt=Xl(L,["b","r"]),ot=Xl(H,["b","r"]),lt=U.overflow||{},{adjustX:St,adjustY:Ct,shiftX:qe,shiftY:at}=lt,He=yt=>typeof yt=="boolean"?yt:yt>=0;let Ae,We,Me,Ye;Je();const it=He(Ct),ft=Te[0]===et[0];if(it&&Te[0]==="t"&&(We>he.bottom||y.current.bt)){let yt=Pe;ft?yt-=X-Z:yt=ze.y-ot.y-be;const Sn=Ze(ve,yt),Mn=Ze(ve,yt,re);Sn>Ue||Sn===Ue&&(!fe||Mn>=Fe)?(y.current.bt=!0,Pe=yt,be=-be,De=[Za(De[0],0),Za(De[1],0)]):y.current.bt=!1}if(it&&Te[0]==="b"&&(Ae<he.top||y.current.tb)){let yt=Pe;ft?yt+=X-Z:yt=rt.y-Xe.y-be;const Sn=Ze(ve,yt),Mn=Ze(ve,yt,re);Sn>Ue||Sn===Ue&&(!fe||Mn>=Fe)?(y.current.tb=!0,Pe=yt,be=-be,De=[Za(De[0],0),Za(De[1],0)]):y.current.tb=!1}const Ft=He(St),Dt=Te[1]===et[1];if(Ft&&Te[1]==="l"&&(Ye>he.right||y.current.rl)){let yt=ve;Dt?yt-=K-ee:yt=ze.x-ot.x-se;const Sn=Ze(yt,Pe),Mn=Ze(yt,Pe,re);Sn>Ue||Sn===Ue&&(!fe||Mn>=Fe)?(y.current.rl=!0,ve=yt,se=-se,De=[Za(De[0],1),Za(De[1],1)]):y.current.rl=!1}if(Ft&&Te[1]==="r"&&(Me<he.left||y.current.lr)){let yt=ve;Dt?yt+=K-ee:yt=rt.x-Xe.x-se;const Sn=Ze(yt,Pe),Mn=Ze(yt,Pe,re);Sn>Ue||Sn===Ue&&(!fe||Mn>=Fe)?(y.current.lr=!0,ve=yt,se=-se,De=[Za(De[0],1),Za(De[1],1)]):y.current.lr=!1}Qe.points=[pE(De[0]),pE(De[1])],Je();const $t=qe===!0?0:qe;typeof $t=="number"&&(Me<re.left&&(ve-=Me-re.left-se,L.x+ee<re.left+$t&&(ve+=L.x-re.left+ee-$t)),Ye>re.right&&(ve-=Ye-re.right-se,L.x>re.right-$t&&(ve+=L.x-re.right+$t)));const tn=at===!0?0:at;typeof tn=="number"&&(Ae<re.top&&(Pe-=Ae-re.top-be,L.y+Z<re.top+tn&&(Pe+=L.y-re.top+Z-tn)),We>re.bottom&&(Pe-=We-re.bottom-be,L.y>re.bottom-tn&&(Pe+=L.y-re.bottom+tn)));const wt=H.x+ve,Ke=wt+K,Et=H.y+Pe,mt=Et+X,Rt=L.x,Ut=Rt+ee,an=L.y,kt=an+Z,wn=Math.max(wt,Rt),En=Math.min(Ke,Ut),fn=(wn+En)/2-wt,mr=Math.max(Et,an),Pn=Math.min(mt,kt),pr=(mr+Pn)/2-Et;c?.(t,Qe);let gr=pe.right-H.x-(ve+H.width),Pr=pe.bottom-H.y-(Pe+H.height);Se===1&&(ve=Math.round(ve),gr=Math.round(gr)),Ie===1&&(Pe=Math.round(Pe),Pr=Math.round(Pr));const Yr={ready:!0,offsetX:ve/Se,offsetY:Pe/Ie,offsetR:gr/Se,offsetB:Pr/Ie,arrowX:fn/Se,arrowY:pr/Ie,scaleX:Se,scaleY:Ie,align:Qe};p(Yr)}}),$=()=>{g.current+=1;const w=g.current;Promise.resolve().then(()=>{g.current===w&&b()})},S=()=>{p(w=>({...w,ready:!1}))};return Nt(S,[r]),Nt(()=>{e||S()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,$]}function bT(){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 bA(e,t,n,r,i){Nt(()=>{if(e&&t&&n){let y=function(){r(),i()};var s=y;const c=t,d=n,f=Zb(c),p=Zb(d),g=cd(d),h=new Set([g,...f,...p]);return h.forEach(C=>{C.addEventListener("scroll",y,{passive:!0})}),g.addEventListener("resize",y,{passive:!0}),r(),()=>{h.forEach(C=>{C.removeEventListener("scroll",y),g.removeEventListener("resize",y)})}}},[e,t,n])}function vA(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)},C=cd(r);C.addEventListener("pointerdown",h,!0),C.addEventListener("mousedown",y,!0),C.addEventListener("contextmenu",y,!0);const b=Hm(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),()=>{C.removeEventListener("pointerdown",h,!0),C.removeEventListener("mousedown",y,!0),C.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 SA(){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 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 CA=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:C,uniqueContainerStyle:b}=e,$=`${t}-unique-container`,[S,w]=ae.useState(!1),M=mT(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(Sr,Jb({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,C,{[`${$}-visible`]:S});return ae.createElement("div",{className:O,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...x.current,...R,...N,...b}})})},$A=({children:e,postTriggerProps:t})=>{const[n,r,i,s]=SA(),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,vs(I)&&d!==I&&f(I)}),C=l.useRef(null),b=bT(),$=ut((I,z)=>{C.current=z,b(()=>{n(I)},I.delay)}),S=I=>{b(()=>{C.current?.()||n(!1)},I)},w=ut(I=>{s(I)}),[M,x,R,T,N,O,P,,,D,W]=yT(r,d,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),k=l.useMemo(()=>{if(!c)return"";const I=hT(c.builtinPlacements||{},c.prefixCls||"",D,!1);return Q(I,c.getPopupClassNameFromAlign?.(D))},[D,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),U=l.useMemo(()=>({show:$,hide:S}),[]);l.useEffect(()=>{W()},[c?.target]);const G=ut(()=>(W(),Promise.resolve())),L=l.useRef({}),H=l.useContext(Bm),_=l.useMemo(()=>({registerSubPopup:(I,z)=>{L.current[I]=z,H?.registerSubPopup(I,z)}}),[H]),B=c?.prefixCls;return l.createElement(gT.Provider,{value:U},e,c&&l.createElement(Bm.Provider,{value:_},l.createElement(pT,{ref:y,portal:sd,prefixCls:B,popup:c.popup,className:Q(c.popupClassName,k,`${B}-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:G,onResize:I=>g({width:I.offsetWidth,height:I.offsetHeight}),arrowPos:{x:O,y:P},align:D,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},l.createElement(CA,{prefixCls:B,isMobile:!1,ready:M,open:r,align:D,offsetR:T,offsetB:N,offsetX:x,offsetY:R,arrowPos:{x:O,y:P},popupSize:p,motion:c.popupMotion,uniqueContainerClassName:Q(c.uniqueContainerClassName,k),uniqueContainerStyle:c.uniqueContainerStyle}))))};function xA(e=sd){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:C,afterPopupVisibleChange:b,mouseEnterDelay:$,mouseLeaveDelay:S=.1,focusDelay:w,blurDelay:M,mask:x,maskClosable:R=!0,getPopupContainer:T,forceRender:N,autoDestroy:O,popup:P,popupClassName:D,uniqueContainerClassName:W,uniqueContainerStyle:k,popupStyle:U,popupPlacement:G,builtinPlacements:L={},popupAlign:H,zIndex:_,stretch:B,getPopupClassNameFromAlign:I,fresh:z,unique:V,alignPoint:A,onPopupClick:j,onPopupAlign:q,arrow:X,popupMotion:K,maskMotion:Z,mobile:ee,...ie}=n,ne=O||!1,oe=p===void 0,de=!!ee,le=l.useRef({}),fe=l.useContext(Bm),ge=l.useMemo(()=>({registerSubPopup:(tt,Jt)=>{le.current[tt]=Jt,fe?.registerSubPopup(tt,Jt)}}),[fe]),re=l.useContext(gT),ue=Ko(),[he,pe]=l.useState(null),Se=l.useRef(null),Ie=ut(tt=>{Se.current=tt,vs(tt)&&he!==tt&&pe(tt),fe?.registerSubPopup(ue,tt)}),[Re,we]=l.useState(null),se=l.useRef(null),be=ut(tt=>{vs(tt)&&Re!==tt&&(we(tt),se.current=tt)}),Ee={},Ne=ut(tt=>{const Jt=Re;return Jt?.contains(tt)||Hm(Jt)?.host===tt||tt===Jt||he?.contains(tt)||Hm(he)?.host===tt||tt===he||Object.values(le.current).some(_n=>_n?.contains(tt)||tt===_n)}),Ve=X?{...X!==!0?X:{}}:null,[Ge,et]=Yt(g||!1,p),Te=Ge||!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),De=ut((tt=0)=>({popup:P,target:Re,delay:tt,prefixCls:i,popupClassName:D,uniqueContainerClassName:W,uniqueContainerStyle:k,popupStyle:U,popupPlacement:G,builtinPlacements:L,popupAlign:H,zIndex:_,mask:x,maskClosable:R,popupMotion:K,maskMotion:Z,arrow:Ve,getPopupContainer:T,getPopupClassNameFromAlign:I,id:ue}));Nt(()=>{re&&V&&Re&&!oe&&!fe&&(Te?re.show(De($),Qe):re.hide(S))},[Te,Re]);const ve=l.useRef(Te);ve.current=Te;const Pe=l.useRef([]);Pe.current=[];const Ze=ut(tt=>{et(tt),(Pe.current[Pe.current.length-1]??Te)!==tt&&(Pe.current.push(tt),h?.(tt),C?.(tt))}),Ue=bT(),Fe=(tt,Jt=0)=>{if(p!==void 0){Ue(()=>{Ze(tt)},Jt);return}if(re&&V&&oe&&!fe){tt?re.show(De(Jt),Qe):re.hide(Jt);return}Ue(()=>{Ze(tt)},Jt)},[ze,Xe]=l.useState(!1);Nt(tt=>{(!tt||Te)&&Xe(!0)},[Te]);const[rt,ot]=l.useState(null),[lt,St]=l.useState(null),Ct=tt=>{St([tt.clientX,tt.clientY])},[qe,at,He,Ae,We,Me,Ye,Je,it,ft,Ft]=yT(Te,he,A&<!==null?lt:Re,G,L,H,q,de),[Dt,$t]=hA(c,d,f),tn=Dt.has("click"),wt=$t.has("click")||$t.has("contextMenu"),Ke=ut(()=>{ze||Ft()});bA(Te,Re,he,Ke,()=>{ve.current&&A&&wt&&Fe(!1)}),Nt(()=>{Ke()},[lt,G]),Nt(()=>{Te&&!L?.[G]&&Ke()},[JSON.stringify(H)]);const mt=l.useMemo(()=>{const tt=hT(L,i,ft,A);return Q(tt,I?.(ft))},[ft,I,L,i,A]);l.useImperativeHandle(r,()=>({nativeElement:se.current,popupElement:Se.current,forceAlign:Ke}));const[Rt,Ut]=l.useState(0),[an,kt]=l.useState(0),wn=()=>{if(B&&Re){const tt=Re.getBoundingClientRect();Ut(tt.width),kt(tt.height)}},En=()=>{wn(),Ke()},Cr=tt=>{Xe(!1),Ft(),y?.(tt),b?.(tt)},fn=()=>new Promise(tt=>{wn(),ot(()=>tt)});Nt(()=>{rt&&(Ft(),rt(),ot(null))},[rt]);function mr(tt,Jt,_n,Jo,ea){Ee[tt]=(Ho,...io)=>{(!ea||!ea())&&(Jo?.(Ho),Fe(Jt,_n)),Le[tt]?.(Ho,...io)}}const Pn=Dt.has("touch"),$r=$t.has("touch"),pr=l.useRef(!1);(Pn||$r)&&(Ee.onTouchStart=(...tt)=>{pr.current=!0,ve.current&&$r?Fe(!1):!ve.current&&Pn&&Fe(!0),Le.onTouchStart?.(...tt)}),(tn||wt)&&(Ee.onClick=(tt,...Jt)=>{ve.current&&wt?Fe(!1):!ve.current&&tn&&(Ct(tt),Fe(!0)),Le.onClick?.(tt,...Jt),pr.current=!1});const gr=vA(Te,wt||$r,Re,he,x,R,Ne,Fe),Pr=Dt.has("hover"),Yr=$t.has("hover");let yt,Sn;const Mn=()=>pr.current;if(Pr){const tt=Jt=>{Ct(Jt)};mr("onMouseEnter",!0,$,tt,Mn),mr("onPointerEnter",!0,$,tt,Mn),yt=Jt=>{(Te||ze)&&he?.contains(Jt.target)&&Fe(!0,$)},A&&(Ee.onMouseMove=Jt=>{Le.onMouseMove?.(Jt)})}Yr&&(mr("onMouseLeave",!1,S,void 0,Mn),mr("onPointerLeave",!1,S,void 0,Mn),Sn=()=>{Fe(!1,S)}),Dt.has("focus")&&mr("onFocus",!0,w),$t.has("focus")&&mr("onBlur",!1,M),Dt.has("contextMenu")&&(Ee.onContextMenu=(tt,...Jt)=>{ve.current&&$t.has("contextMenu")?Fe(!1):(Ct(tt),Fe(!0)),tt.preventDefault(),Le.onContextMenu?.(tt,...Jt)});const Fn=l.useRef(!1);Fn.current||=N||Te||ze;const In={...Le,...Ee},wo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(tt=>{ie[tt]&&(wo[tt]=(...Jt)=>{In[tt]?.(...Jt),ie[tt](...Jt)})});const Eo={x:Me,y:Ye},_o=l.cloneElement(_e,{...In,...wo});return l.createElement(l.Fragment,null,l.createElement(Vr,{disabled:!Te,ref:be,onResize:En},_o),Fn.current&&(!re||!V)&&l.createElement(Bm.Provider,{value:ge},l.createElement(pT,{portal:e,ref:Ie,prefixCls:i,popup:P,className:Q(D,!de&&mt),style:U,target:Re,onMouseEnter:yt,onMouseLeave:Sn,onPointerEnter:yt,zIndex:_,open:Te,keepDom:ze,fresh:z,onClick:j,onPointerDownCapture:gr,mask:x,motion:K,maskMotion:Z,onVisibleChanged:Cr,onPrepare:fn,forceRender:N,autoDestroy:ne,getPopupContainer:T,align:ft,arrow:Ve,arrowPos:Eo,ready:qe,offsetX:at,offsetY:He,offsetR:Ae,offsetB:We,onAlign:Ke,stretch:B,targetWidth:Rt/Je,targetHeight:an/it,mobile:ee})))})}const ud=xA(sd),wA=({children:e})=>{const{getPrefixCls:t}=ae.useContext(dt),n=t();return ae.isValidElement(e)?ae.createElement(Sr,{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},Vf=[null,null];function EA(e){if(Vf[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Vf[0]=e,Vf[1]=t}return Vf[1]}const vT=({children:e})=>{const t=n=>{const r=typeof n.popup=="function"?n.popup():n.popup,{id:i,builtinPlacements:s}=n,c=EA(s);return{...n,getPopupContainer:null,arrow:!1,popup:ae.createElement(wA,{key:i},r),builtinPlacements:c}};return ae.createElement($A,{postTriggerProps:t},e)},kr=l.createContext(!1),ST=({children:e,disabled:t})=>{const n=l.useContext(kr);return l.createElement(kr.Provider,{value:t??n},e)},xs=l.createContext(void 0),MA=({children:e,size:t})=>{const n=l.useContext(xs);return l.createElement(xs.Provider,{value:t||n},e)};function RA(){const e=l.useContext(kr),t=l.useContext(xs);return{componentDisabled:e,componentSize:t}}function TA(e,t,n){const r=e||{},i=r.inherit===!1||!t?{..._m,hashed:t?.hashed??_m.hashed,cssVar:t?.cssVar}:t,s=l.useId();return rd(()=>{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!hu(f,g,!0)}))}const gE=l.createContext(!0);function OA(e){const t=l.useContext(gE),{children:n}=e,[,r]=Wr(),{motion:i}=r,s=l.useRef(!1);return s.current||(s.current=t!==i),s.current?l.createElement(gE.Provider,{value:i},l.createElement(a5,{motion:i},n)):n}const NA=()=>null,IA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Lm,CT,$T,xT;function by(){return Lm||pu}function PA(){return CT||hp}const zA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Lm=t),n!==void 0&&(CT=n),"holderRender"in e&&(xT=i),r&&($T=r)},wT=()=>({getPrefixCls:(e,t)=>t||(e?`${by()}-${e}`:by()),getIconPrefixCls:PA,getRootPrefixCls:()=>Lm||by(),getTheme:()=>$T,holderRender:xT}),AA=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:C,dropdownMatchSelectWidth:b,popupMatchSelectWidth:$,popupOverflow:S,legacyLocale:w,parentContext:M,iconPrefixCls:x,theme:R,componentDisabled:T,segmented:N,statistic:O,spin:P,calendar:D,carousel:W,cascader:k,collapse:U,typography:G,checkbox:L,descriptions:H,divider:_,drawer:B,skeleton:I,steps:z,image:V,layout:A,list:j,mentions:q,modal:X,progress:K,result:Z,slider:ee,breadcrumb:ie,masonry:ne,menu:oe,pagination:de,input:le,textArea:fe,otp:ge,empty:re,badge:ue,radio:he,rate:pe,ribbon:Se,switch:Ie,transfer:Re,avatar:we,message:se,tag:be,table:Ee,card:Ne,cardMeta:Ve,tabs:Ge,timeline:et,timePicker:Te,upload:_e,notification:Le,tree:Qe,colorPicker:De,datePicker:ve,rangePicker:Pe,flex:Ze,wave:Ue,dropdown:Fe,warning:ze,tour:Xe,tooltip:rt,popover:ot,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:qe,variant:at,inputNumber:He,treeSelect:Ae,watermark:We}=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]),Ye=x||M.iconPrefixCls||hp,Je=n||M.csp;Lz(Ye,Je);const it=TA(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:C,popupMatchSelectWidth:$??b,popupOverflow:S,getPrefixCls:Me,iconPrefixCls:Ye,theme:it,segmented:N,statistic:O,spin:P,calendar:D,carousel:W,cascader:k,collapse:U,typography:G,checkbox:L,descriptions:H,divider:_,drawer:B,skeleton:I,steps:z,image:V,input:le,textArea:fe,otp:ge,layout:A,list:j,mentions:q,modal:X,progress:K,result:Z,slider:ee,breadcrumb:ie,masonry:ne,menu:oe,pagination:de,empty:re,badge:ue,radio:he,rate:pe,ribbon:Se,switch:Ie,transfer:Re,avatar:we,message:se,tag:be,table:Ee,card:Ne,cardMeta:Ve,tabs:Ge,timeline:et,timePicker:Te,upload:_e,notification:Le,tree:Qe,colorPicker:De,datePicker:ve,rangePicker:Pe,flex:Ze,wave:Ue,dropdown:Fe,warning:ze,tour:Xe,tooltip:rt,popover:ot,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:qe,variant:at,inputNumber:He,treeSelect:Ae,watermark:We},Ft={...M};Object.keys(ft).forEach(mt=>{ft[mt]!==void 0&&(Ft[mt]=ft[mt])}),IA.forEach(mt=>{const Rt=e[mt];Rt&&(Ft[mt]=Rt)}),typeof r<"u"&&(Ft.button={autoInsertSpace:r,...Ft.button});const Dt=rd(()=>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(od),tn=l.useMemo(()=>({prefixCls:Ye,csp:Je,layer:$t?"antd":void 0}),[Ye,Je,$t]);let wt=l.createElement(l.Fragment,null,l.createElement(NA,{dropdownMatchSelectWidth:b}),t);const Ke=l.useMemo(()=>ss($a.Form?.defaultValidateMessages||{},Dt.locale?.Form?.defaultValidateMessages||{},Dt.form?.validateMessages||{},d?.validateMessages||{}),[Dt,d?.validateMessages]);Object.keys(Ke).length>0&&(wt=l.createElement(nA.Provider,{value:Ke},wt)),f&&(wt=l.createElement(D5,{locale:f,_ANT_MARK__:A5},wt)),wt=l.createElement(RS.Provider,{value:tn},wt),p&&(wt=l.createElement(MA,{size:p},wt)),wt=l.createElement(OA,null,wt),rt?.unique&&(wt=l.createElement(vT,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)?bb(mt):jR,En={};Object.entries(Ut||{}).forEach(([fn,mr])=>{const Pn={...mr};"algorithm"in Pn&&(Pn.algorithm===!0?Pn.theme=wn:(Array.isArray(Pn.algorithm)||typeof Pn.algorithm=="function")&&(Pn.theme=bb(Pn.algorithm)),delete Pn.algorithm),En[fn]=Pn});const Cr={...Su,...Rt};return{...kt,theme:wn,token:Cr,components:En,override:{override:Cr,...En},cssVar:an}},[it]);return R&&(wt=l.createElement(_R.Provider,{value:Et},wt)),Dt.warning&&(wt=l.createElement(XP.Provider,{value:Dt.warning},wt)),T!==void 0&&(wt=l.createElement(ST,{disabled:T},wt)),l.createElement(dt.Provider,{value:Dt},wt)},Qo=e=>{const t=l.useContext(dt),n=l.useContext(NS);return l.createElement(AA,{parentContext:t,legacyLocale:n,...e})};Qo.ConfigContext=dt;Qo.SizeContext=xs;Qo.config=zA;Qo.useConfig=RA;Object.defineProperty(Qo,"SizeContext",{get:()=>xs});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 Vm(){return Vm=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},Vm.apply(this,arguments)}const ET=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:C,times:b,hovering:$}=e,[S,w]=l.useState(!1),[M,x]=l.useState(0),[R,T]=l.useState(0),N=$||S,O=typeof s=="number"?s:0,P=O>0&&c,D=()=>{C(f)},W=H=>{(H.key==="Enter"||H.code==="Enter"||H.keyCode===nt.ENTER)&&D()};l.useEffect(()=>{if(!N&&O>0){const H=Date.now()-R,_=setTimeout(()=>{D()},O*1e3-R);return()=>{d&&clearTimeout(_),T(Date.now()-H)}}},[O,N,b]),l.useEffect(()=>{if(!N&&P&&(d||R===0)){const H=performance.now();let _;const B=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(I=>{const z=I+R-H,V=Math.min(z/(O*1e3),1);x(V*100),V<1&&B()})};return B(),()=>{d&&cancelAnimationFrame(_)}}},[O,R,N,P,b]);const k=l.useMemo(()=>typeof g=="object"&&g!==null?g:{},[g]),U=jn(k,!0),G=100-(!M||M<0?0:M>100?100:M),L=`${n}-notice`;return l.createElement("div",Vm({},h,{ref:t,className:Q(L,i,{[`${L}-closable`]:g}),style:r,onMouseEnter:H=>{w(!0),h?.onMouseEnter?.(H)},onMouseLeave:H=>{w(!1),h?.onMouseLeave?.(H)},onClick:y}),l.createElement("div",{className:`${L}-content`},p),g&&l.createElement("button",Vm({className:`${L}-close`,onKeyDown:W,"aria-label":"Close"},U,{onClick:H=>{H.preventDefault(),H.stopPropagation(),D()}}),k.closeIcon??"x"),P&&l.createElement("progress",{className:`${L}-progress`,max:"100",value:G},G+"%"))}),MT=ae.createContext({}),DA=({children:e,classNames:t})=>ae.createElement(MT.Provider,{value:{classNames:t}},e),hE=8,yE=3,bE=16,jA=e=>{const t={offset:hE,threshold:yE,gap:bE};return e&&typeof e=="object"&&(t.offset=e.offset??hE,t.threshold=e.threshold??yE,t.gap=e.gap??bE),[!!e,t]};function Fm(){return Fm=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},Fm.apply(this,arguments)}const _A=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(MT),h=l.useRef({}),[y,C]=l.useState(null),[b,$]=l.useState([]),S=t.map(O=>({config:O,key:String(O.key)})),[w,{offset:M,threshold:x,gap:R}]=jA(p),T=w&&(b.length>0||S.length<=x),N=typeof c=="function"?c(n):c;return l.useEffect(()=>{w&&b.length>1&&$(O=>O.filter(P=>S.some(({key:D})=>P===D)))},[b,S,w]),l.useEffect(()=>{w&&h.current[S[S.length-1]?.key]&&C(h.current[S[S.length-1]?.key])},[S,w]),ae.createElement($5,Fm({key:n,className:Q(r,`${r}-${n}`,g?.list,i,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:T}),style:s,keys:S,motionAppear:!0},N,{onAllRemoved:()=>{d(n)}}),({config:O,className:P,style:D,index:W},k)=>{const{key:U,times:G}=O,L=String(U),{className:H,style:_,classNames:B,styles:I,...z}=O,V=S.findIndex(j=>j.key===L),A={};if(w){const j=S.length-1-(V>-1?V:W-1),q=n==="top"||n==="bottom"?"-50%":"0";if(j>0){A.height=T?h.current[L]?.offsetHeight:y?.offsetHeight;let X=0;for(let ee=0;ee<j;ee++)X+=h.current[S[S.length-1-ee].key]?.offsetHeight+R;const K=(T?X:j*M)*(n.startsWith("top")?1:-1),Z=!T&&y?.offsetWidth&&h.current[L]?.offsetWidth?(y?.offsetWidth-M*2*(j<3?j:3))/h.current[L]?.offsetWidth:1;A.transform=`translate3d(${q}, ${K}px, 0) scaleX(${Z})`}else A.transform=`translate3d(${q}, 0, 0)`}return ae.createElement("div",{ref:k,className:Q(`${r}-notice-wrapper`,P,B?.wrapper),style:{...D,...A,...I?.wrapper},onMouseEnter:()=>$(j=>j.includes(L)?j:[...j,L]),onMouseLeave:()=>$(j=>j.filter(q=>q!==L))},ae.createElement(ET,Fm({},z,{ref:j=>{V>-1?h.current[L]=j:delete h.current[L]},prefixCls:r,classNames:B,styles:I,className:Q(H,g?.notice),style:_,times:G,key:U,eventKey:U,onNoticeClose:f,hovering:w&&b.length>0})))})},HA=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([]),C=x=>{const R=h.find(P=>P.key===x),T=R?.closable,N=T&&typeof T=="object"?T:{},{onClose:O}=N;O?.(),R?.onClose?.(),y(P=>P.filter(D=>D.key!==x))};l.useImperativeHandle(t,()=>({open:x=>{y(R=>{let T=[...R];const N=T.findIndex(P=>P.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=>{C(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 S=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 $s.createPortal(l.createElement(l.Fragment,null,M.map(x=>{const R=b[x],T=l.createElement(_A,{key:x,configList:R,placement:x,prefixCls:n,className:c?.(x),style:d?.(x),motion:i,onNoticeClose:C,onAllNoticeRemoved:S,stack:p});return g?g(T,{prefixCls:n,key:x}):T})),r)}),BA=()=>document.body;let vE=0;function LA(...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 VA(e={}){const{getContainer:t=BA,motion:n,prefixCls:r,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p,...g}=e,[h,y]=l.useState(),C=l.useRef(),b=l.createElement(HA,{container:h,ref:C,prefixCls:r,motion:n,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p}),[$,S]=l.useState([]),w=ut(x=>{const R=LA(g,x);(R.key===null||R.key===void 0)&&(R.key=`rc-notification-${vE}`,vE+=1),S(T=>[...T,{type:"open",config:R}])}),M=l.useMemo(()=>({open:w,close:x=>{S(R=>[...R,{type:"close",key:x}])},destroy:()=>{S(x=>[...x,{type:"destroy"}])}}),[]);return l.useEffect(()=>{y(t())}),l.useEffect(()=>{if(C.current&&$.length){$.forEach(T=>{switch(T.type){case"open":C.current.open(T.config);break;case"close":C.current.close(T.key);break;case"destroy":C.current.destroy();break}});let x,R;S(T=>((x!==T||!R)&&(x=T,R=T.filter(N=>!$.includes(N))),R))}},[$]),[M,b]}var FA={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 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 kA=(e,t)=>l.createElement(gt,ev({},e,{ref:t,icon:FA})),Ep=l.forwardRef(kA),WA=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:C,borderRadiusLG:b,zIndexPopup:$,contentPadding:S,contentBg:w}=e,M=`${t}-notice`,x=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:C,transform:"translateY(0)",opacity:1}}),R=new At("MessageMoveOut",{"0%":{maxHeight:e.height,padding:C,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:C,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:p},[`${M}-content`]:{display:"inline-block",padding:S,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"}}]},qA=e=>({zIndexPopup:e.zIndexPopupBase+lT+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),RT=Pt("Message",e=>{const t=Ot(e,{height:150});return WA(t)},qA),YA={info:l.createElement(TS,null),success:l.createElement(xp,null),error:l.createElement(zs,null),warning:l.createElement(As,null),loading:l.createElement(Ep,null)},TT=e=>{const{prefixCls:t,type:n,icon:r,children:i,classNames:s,styles:c}=e,d=r||n&&YA[n],f=nr(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))},UA=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:C,styles:b}=It("message"),$=t||g("message"),S=ar($),[w,M]=RT($,S),[x,R]=Lt([C,d],[b,f],{props:e});return l.createElement(ET,{...p,prefixCls:$,className:Q(h,x.root,n,w,`${$}-notice-pure-panel`,M,S),style:{...R.root,...y,...r},eventKey:"pure",duration:null,content:l.createElement(TT,{prefixCls:$,type:i,icon:s,classNames:x,styles:R},c)})};function GA(e,t){return{motionName:t??`${e}-move-up`}}function AS(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 XA=8,KA=3,QA=({children:e,prefixCls:t})=>{const n=ar(t),[r,i]=RT(t,n);return l.createElement(DA,{classNames:{list:Q(r,i,n)}},e)},ZA=(e,{prefixCls:t,key:n})=>l.createElement(QA,{prefixCls:t,key:n},e),JA=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:s,duration:c=KA,rtl:d,transitionName:f,onAllRemoved:p,pauseOnHover:g=!0}=e,{getPrefixCls:h,direction:y,getPopupContainer:C}=It("message"),{message:b}=l.useContext(dt),$=r||h("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??XA}),w=()=>Q({[`${$}-rtl`]:d??y==="rtl"}),M=()=>GA($,f),[x,R]=Lt([e?.classNames,b?.classNames],[e?.styles,b?.styles],{props:e}),[T,N]=VA({prefixCls:$,style:S,className:w,motion:M,closable:!1,duration:c,getContainer:()=>i?.()||C?.()||document.body,maxCount:s,onAllRemoved:p,renderNotifications:ZA,pauseOnHover:g});return l.useImperativeHandle(t,()=>({...T,prefixCls:$,message:b,classNames:x,styles:R})),N});let SE=0;function OT(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=f=>{t.current?.close(f)},i=f=>{if(!t.current){const A=()=>{};return A.then=()=>{},A}const{open:p,prefixCls:g,message:h,classNames:y,styles:C}=t.current,b=h?.className||{},$=h?.style||{},S=h?.classNames||{},w=h?.styles||{},M=`${g}-notice`,{content:x,icon:R,type:T,key:N,className:O,style:P,onClose:D,classNames:W={},styles:k={},...U}=f;let G=N;Mr(G)||(SE+=1,G=`antd-message-${SE}`);const L={...e,...f},H=ds(S,{props:L}),_=ds(W,{props:L}),B=ds(w,{props:L}),I=ds(k,{props:L}),z=PS(void 0,H,_,y),V=iT(B,I,C);return AS(A=>(p({...U,key:G,content:l.createElement(TT,{prefixCls:g,type:T,icon:R,classNames:z,styles:V},x),placement:"top",className:Q({[`${M}-${T}`]:T},O,b,z.root),style:{...V.root,...$,...P},onClose:()=>{D?.(),A()}}),()=>{r(G)}))},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 C;g&&typeof g=="object"&&"content"in g?C=g:C={content:g};let b,$;typeof h=="function"?$=h:(b=h,$=y);const S={onClose:$,duration:b,...C,type:f};return i(S)};c[f]=p}),c},[]),l.createElement(JA,{key:"message-holder",...e,ref:t})]}function eD(e){return OT(e)}const km="__rc_react_root__";function DS(e,t){const n=t[km]||Z4.createRoot(t);n.render(e),t[km]=n}async function NT(e){return Promise.resolve().then(()=>{e[km]?.unmount(),delete e[km]})}const vy=()=>({height:0,opacity:0}),CE=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},tD=e=>({height:e?e.offsetHeight:0}),Sy=(e,t)=>t?.deadline===!0||t.propertyName==="height",IT=(e=pu)=>({motionName:`${e}-motion-collapse`,onAppearStart:vy,onEnterStart:vy,onAppearActive:CE,onEnterActive:CE,onLeaveStart:tD,onLeaveActive:vy,onAppearEnd:Sy,onEnterEnd:Sy,onLeaveEnd:Sy,motionDeadline:500}),Go=(e,t,n)=>n!==void 0?n:`${e}-${t}`,nD=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(",")}}}}},rD=Hz("Wave",nD),dd=`${pu}-wave-target`;function $E(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 oD(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:s}=n;return t&&$E(n[t])?n[t]:[r,i,s].find($E)??null}function Cy(e){return Number.isNaN(e)?0:e}const aD=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,C]=l.useState(0),[b,$]=l.useState(0),[S,w]=l.useState(0),[M,x]=l.useState(!1),R={left:g,top:y,width:b,height:S,borderRadius:f.map(O=>`${O}px`).join(" ")};c&&(R["--wave-color"]=c);function T(){const O=getComputedStyle(n);d(oD(n,i));const P=O.position==="static",{borderLeftWidth:D,borderTopWidth:W}=O;h(P?n.offsetLeft:Cy(-Number.parseFloat(D))),C(P?n.offsetTop:Cy(-Number.parseFloat(W))),$(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:U,borderBottomLeftRadius:G,borderBottomRightRadius:L}=O;p([k,U,L,G].map(H=>Cy(Number.parseFloat(H))))}if(l.useEffect(()=>{if(n){const O=Ht(()=>{T(),x(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(T),P.observe(n)),()=>{Ht.cancel(O),P?.disconnect()}}},[n]),!M)return null;const N=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(dd);return l.createElement(Sr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,P)=>{if(P.deadline||P.propertyName==="opacity"){const D=s.current?.parentElement;NT(D).then(()=>{D?.remove()})}return!1}},({className:O},P)=>l.createElement("div",{ref:or(s,P),className:Q(t,O,{"wave-quick":N}),style:R}))},iD=(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),DS(l.createElement(aD,{...t,target:e}),r)},lD=(e,t,n,r)=>{const{wave:i}=l.useContext(dt),[,s,c]=Wr(),d=ut(g=>{const h=e.current;if(i?.disabled||!h)return;const y=h.querySelector(`.${dd}`)||h,{showEffect:C}=i||{};(C||iD)(y,{className:t,token:s,component:n,event:g,hashId:c,colorSource:r})}),f=l.useRef(null);return l.useEffect(()=>()=>{Ht.cancel(f.current)},[]),g=>{Ht.cancel(f.current),f.current=Ht(()=>{d(g)})}},fd=e=>{const{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:s}=l.useContext(dt),c=l.useRef(null),d=s("wave"),f=rD(d),p=lD(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=C=>{!wp(C.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(C)};return h.addEventListener("click",y,!0),()=>{h.removeEventListener("click",y,!0)}},[n]),!ae.isValidElement(t))return t??null;const g=rl(t)?or(ol(t),c):c;return nr(t,{ref:g})},fr=e=>{const t=ae.useContext(xs);return ae.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},sD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},cD=Pt(["Space","Compact"],e=>[sD(e)],()=>({}),{resetStyle:!1}),Mp=l.createContext(null),Ma=(e,t)=>{const n=l.useContext(Mp),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}},uD=e=>{const{children:t}=e;return l.createElement(Mp.Provider,{value:null},t)},dD=e=>{const{children:t,...n}=e;return l.createElement(Mp.Provider,{value:l.useMemo(()=>n,[n])},t)},PT=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,[C,b]=id(s,h,i),$=fr(N=>r??N),S=t("space-compact",d),[w]=cD(S),M=Q(S,w,{[`${S}-rtl`]:n==="rtl",[`${S}-block`]:c,[`${S}-vertical`]:b},f,p),x=l.useContext(Mp),R=dr(g),T=l.useMemo(()=>R.map((N,O)=>{const P=N?.key||`${S}-item-${O}`;return l.createElement(dD,{key:P,compactSize:$,compactDirection:C,isFirstItem:O===0&&(!x||x?.isFirstItem),isLastItem:O===R.length-1&&(!x||x?.isLastItem)},N)}),[R,x,C,$,S]);return R.length===0?null:l.createElement("div",{className:M,...y},T)},zT=l.createContext(void 0),fD=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,size:i,className:s,...c}=e,d=t("btn-group",r),[,,f]=Wr(),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(zT.Provider,{value:i},l.createElement("div",{...c,className:g}))},xE=/^[\u4E00-\u9FA5]{2}$/,tv=xE.test.bind(xE);function jS(e){return e==="danger"?{danger:!0}:{type:e}}function wE(e){return typeof e=="string"}function $y(e){return e==="text"||e==="link"}function mD(e,t,n,r){if(!Mr(e)||e==="")return;const i=t?" ":"";return typeof e!="string"&&typeof e!="number"&&wE(e.type)&&tv(e.props.children)?nr(e,s=>({...s,children:s.children.split("").join(i),className:r,style:n})):wE(e)?ae.createElement("span",{className:r,style:n},tv(e)?e.split("").join(i):e):cT(e)?ae.createElement("span",{className:r,style:n},e):nr(e,s=>({...s,className:Q(s.className,r)||void 0,style:{...s.style,...n}}))}function pD(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=>mD(c,t,n,r))}["default","primary","danger"].concat(xn(ui));const AT=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)}),EE=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:s}=e,c=Q(`${n}-loading-icon`,r);return ae.createElement(AT,{prefixCls:n,className:c,style:i,ref:t},ae.createElement(Ep,{className:s}))}),xy=()=>({width:0,opacity:0,transform:"scale(0)"}),wy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),gD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:s,mount:c}=e,d=!!n;return r?ae.createElement(EE,{prefixCls:t,className:i,style:s}):ae.createElement(Sr,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:xy,onAppearActive:wy,onEnterStart:xy,onEnterActive:wy,onLeaveStart:wy,onLeaveActive:xy},({className:f,style:p},g)=>{const h={...s,...p};return ae.createElement(EE,{prefixCls:t,className:Q(i,f),style:h,ref:g})})},ME=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),hD=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}},ME(`${t}-primary`,i),ME(`${t}-danger`,s)]}},Ey=e=>Math.round(Number(e||0)),yD=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 wu extends en{constructor(t){super(yD(t))}toHsbString(){const t=this.toHsb(),n=Ey(t.s*100),r=Ey(t.b*100),i=Ey(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 bD=e=>e instanceof wu?e:new wu(e);bD("#1677ff");const vD=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",SD=(e,t)=>e?vD(e,t):"";let Wm=(function(){function e(t){if(al(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 wu(this.colors[0].color.metaColor)):this.metaColor=new wu(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return il(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return SD(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 CD={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 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 $D=(e,t)=>l.createElement(gt,nv({},e,{ref:t,icon:CD})),ws=l.forwardRef($D);function Xn(){return Xn=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},Xn.apply(null,arguments)}const xD=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}),DT=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:C,extra:b,header:$,expandIcon:S,openMotion:w,destroyOnHidden:M,children:x,...R}=e,T=h==="disabled",N=b!=null&&typeof b!="boolean",O={onClick:()=>{s?.(C)},onKeyDown:G=>{(G.key==="Enter"||G.keyCode===nt.ENTER||G.which===nt.ENTER)&&s?.(C)},role:y?"tab":"button","aria-expanded":i,"aria-disabled":T,tabIndex:T?-1:0},P=typeof S=="function"?S(e):ae.createElement("i",{className:"arrow"}),D=P&&ae.createElement("div",Xn({className:Q(`${g}-expand-icon`,f?.icon),style:p?.icon},["header","icon"].includes(h)?O:{}),P),W=Q(`${g}-item`,{[`${g}-item-active`]:i,[`${g}-item-disabled`]:T},d),U={className:Q(r,`${g}-header`,{[`${g}-collapsible-${h}`]:!!h},f?.header),style:p?.header,...["header","icon"].includes(h)?{}:O};return ae.createElement("div",Xn({},R,{ref:t,className:W}),ae.createElement("div",U,n&&D,ae.createElement("span",Xn({className:Q(`${g}-title`,f?.title),style:p?.title},h==="header"?O:{}),$),N&&ae.createElement("div",{className:`${g}-extra`},b)),ae.createElement(Sr,Xn({visible:i,leavedClassName:`${g}-panel-hidden`},w,{forceRender:c,removeOnLeave:M}),({className:G,style:L},H)=>ae.createElement(xD,{ref:H,prefixCls:g,className:G,classNames:f,style:L,styles:p,isActive:i,forceRender:c,role:y?"tabpanel":void 0},x)))}),wD=(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,C)=>{const{children:b,label:$,key:S,collapsible:w,onItemClick:M,destroyOnHidden:x,...R}=y,T=String(S??C),N=w??i,O=x??s,P=W=>{N!=="disabled"&&(c(W),M?.(W))};let D=!1;return r?D=d[0]===T:D=d.indexOf(T)>-1,ae.createElement(DT,Xn({},R,{classNames:g,styles:h,prefixCls:n,key:T,panelKey:T,isActive:D,accordion:r,openMotion:f,expandIcon:p,header:$,collapsible:N,onItemClick:P,destroyOnHidden:O}),b)})},ED=(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,C=e.key||String(t),{header:b,headerClass:$,destroyOnHidden:S,collapsible:w,onItemClick:M}=e.props;let x=!1;i?x=f[0]===C:x=f.indexOf(C)>-1;const R=w??s,T=O=>{R!=="disabled"&&(d(O),M?.(O))},N={key:C,panelKey:C,header:b,headerClass:$,classNames:h,styles:y,isActive:x,prefixCls:r,destroyOnHidden:S??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 MD(e,t,n){return Array.isArray(e)?wD(e,n):dr(t).map((r,i)=>ED(r,i,n))}function RE(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 RD=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:C,items:b,classNames:$,styles:S}=e,w=Q(n,c),[M,x]=Yt(y,h),R=RE(M),T=ut(P=>{const D=RE(P);x(D),C?.(D)}),N=P=>{T(s?R[0]===P?[]:[P]:R.includes(P)?R.filter(D=>D!==P):[...R,P])};tr(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const O=MD(b,d,{prefixCls:n,accordion:s,openMotion:p,expandIcon:g,collapsible:f,destroyOnHidden:r,onItemClick:N,activeKey:R,classNames:$,styles:S});return ae.createElement("div",Xn({ref:t,className:w,style:i,role:s?"tablist":void 0},jn(e,{aria:!0,data:!0})),O)}),_S=Object.assign(RD,{Panel:DT}),{Panel:pee}=_S,TD=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(_S.Panel,{ref:t,...e,prefixCls:c,className:d})}),jT=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`}}}),OD=e=>({animationDuration:e,animationFillMode:"both"}),ND=e=>({animationDuration:e,animationFillMode:"both"}),Rp=(e,t,n,r,i=!1)=>{const s=i?"&":"";return{[`
|
|
142
|
+
${s}${e}-enter,
|
|
143
|
+
${s}${e}-appear
|
|
144
|
+
`]:{...OD(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...ND(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"}}},ID=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),PD=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),_T=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Rp(r,ID,PD,e.motionDurationMid,t),{[`
|
|
148
|
+
${i}${r}-enter,
|
|
149
|
+
${i}${r}-appear
|
|
150
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},zD=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}}),AD=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}}),DD=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}}),jD=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}}),_D=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}}),HD=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}}),BD=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}}),LD=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}}),VD={"move-up":{inKeyframes:BD,outKeyframes:LD},"move-down":{inKeyframes:zD,outKeyframes:AD},"move-left":{inKeyframes:DD,outKeyframes:jD},"move-right":{inKeyframes:_D,outKeyframes:HD}},Es=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=VD[t];return[Rp(r,i,s,e.motionDurationMid),{[`
|
|
151
|
+
${r}-enter,
|
|
152
|
+
${r}-appear
|
|
153
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Tp=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Op=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Np=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ip=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),FD=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),kD=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),WD=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qD=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),YD={"slide-up":{inKeyframes:Tp,outKeyframes:Op},"slide-down":{inKeyframes:Np,outKeyframes:Ip},"slide-left":{inKeyframes:FD,outKeyframes:kD},"slide-right":{inKeyframes:WD,outKeyframes:qD}},Xo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=YD[t];return[Rp(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}}]},UD=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GD=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),TE=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),OE=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),XD=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),KD=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QD=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ZD=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),JD=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ej=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),tj=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),nj=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),rj={zoom:{inKeyframes:UD,outKeyframes:GD},"zoom-big":{inKeyframes:TE,outKeyframes:OE},"zoom-big-fast":{inKeyframes:TE,outKeyframes:OE},"zoom-left":{inKeyframes:QD,outKeyframes:ZD},"zoom-right":{inKeyframes:JD,outKeyframes:ej},"zoom-up":{inKeyframes:XD,outKeyframes:KD},"zoom-down":{inKeyframes:tj,outKeyframes:nj}},md=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=rj[t];return[Rp(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}}]},oj=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:C,colorTextDisabled:b,fontSizeLG:$,lineHeight:S,lineHeightLG:w,marginSM:M,paddingSM:x,paddingLG:R,paddingXS:T,motionDurationSlow:N,fontSizeIcon:O,contentPadding:P,fontHeight:D,fontHeightLG:W}=e,k=`${te(p)} ${g} ${h}`;return{[t]:{...Zt(e),backgroundColor:i,border:k,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&: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:C,lineHeight:S,cursor:"pointer",transition:`all ${N}, visibility 0s`,...xo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:D,display:"flex",alignItems:"center",marginInlineEnd:M},[`${t}-arrow`]:{...Is(),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:k,[`& > ${t}-body`]:{padding:P},"&-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}}}}}}},aj=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},ij=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}}}},lj=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}}}}}},sj=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"}),cj=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[oj(t),ij(t),lj(t),aj(t),jT(t)]},sj),uj=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:C=!0,ghost:b,size:$,expandIconPlacement:S,expandIconPosition:w,children:M,destroyInactivePanel:x,destroyOnHidden:R,expandIcon:T,classNames:N,styles:O}=e,P=fr(j=>$??j??"middle"),D=n("collapse",p),W=n(),[k,U]=cj(D),G=S??w??"start",L={...e,size:P,bordered:C,expandIconPlacement:G},[H,_]=Lt([d,N],[f,O],{props:L}),B=T??i,I=l.useCallback((j={})=>{const q=typeof B=="function"?B(j):l.createElement(ws,{rotate:j.isActive?r==="rtl"?-90:90:void 0,"aria-label":j.isActive?"expanded":"collapsed"});return nr(q,()=>({className:Q(q?.props?.className,`${D}-arrow`)}))},[B,D,r]),z=Q(`${D}-icon-placement-${G}`,{[`${D}-borderless`]:!C,[`${D}-rtl`]:r==="rtl",[`${D}-ghost`]:!!b,[`${D}-${P}`]:P!=="middle"},s,g,h,k,U,H.root),V=l.useMemo(()=>({...IT(W),motionAppear:!1,leavedClassName:`${D}-panel-hidden`}),[W,D]),A=l.useMemo(()=>M?dr(M).map(j=>j):null,[M]);return l.createElement(_S,{ref:t,openMotion:V,...nn(e,["rootClassName"]),expandIcon:I,prefixCls:D,className:z,style:{..._.root,...c,...y},classNames:H,styles:_,destroyOnHidden:R??x},A)}),NE=Object.assign(uj,{Panel:TD}),dj=e=>e instanceof Wm?e:new Wm(e),HT=(e,t)=>{const{r:n,g:r,b:i,a:s}=e.toRgb(),c=new wu(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+i*.114>192},BT=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Ot(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},LT=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??bm(t),s=e.contentLineHeightSM??bm(n),c=e.contentLineHeightLG??bm(r),d=HT(new Wm(e.colorBgSolid),"#fff")?"#000":"#fff",f=ui.reduce((h,y)=>({...h,[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Gc(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}},fj=e=>{const{componentCls:t,antCls:n}=e,r=Bz(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}}}},ui.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"}}]}},mj=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`]:Is(),"> a":{color:"currentColor"},"&:not(:disabled)":xo(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()}}}}}},pj=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),HS=(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}`]:pj(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},gj=e=>{const t=Ot(e,{fontSize:e.contentFontSize});return HS(t,e.componentCls)},hj=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 HS(t,`${e.componentCls}-sm`)},yj=e=>{const t=Ot(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return HS(t,`${e.componentCls}-lg`)},bj=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},vj=Pt("Button",e=>{const t=BT(e);return[mj(t),gj(t),hj(t),yj(t),bj(t),fj(t),hD(t)]},LT,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Sj(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 Cj(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 pd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,s=`${i}-compact`;return{[s]:{...Sj(e,s,t,i),...Cj(i,s,t)}}}function $j(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 xj(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 wj(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...$j(e,t,e.componentCls),...xj(e.componentCls,t)}}}const Ej=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)}},Mj=ad(["Button","compact"],e=>{const t=BT(e);return[pd(t),wj(t),Ej(t)]},LT);function Rj(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 Tj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Oj=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:C,children:b,icon:$,iconPosition:S,iconPlacement:w,ghost:M=!1,block:x=!1,htmlType:R="button",classNames:T,styles:N,style:O,autoInsertSpace:P,autoFocus:D,...W}=e,k=dr(b),U=d||"default",{button:G}=ae.useContext(dt),L=p||G?.shape||"default",[H,_]=l.useMemo(()=>{if(s&&c)return[s,c];if(d||f){const lt=Tj[U]||[];return f?["danger",lt[1]]:lt}return G?.color&&G?.variant?[G.color,G.variant]:["default","outlined"]},[s,c,d,f,G?.color,G?.variant,U]),[B,I]=l.useMemo(()=>M&&_==="solid"?[H,"outlined"]:[H,_],[H,_,M]),z=B==="danger",V=z?"dangerous":B,{getPrefixCls:A,direction:j,autoInsertSpace:q,className:X,style:K,classNames:Z,styles:ee}=It("button"),ie=P??q??!0,ne=A("btn",i),[oe,de]=vj(ne),le=l.useContext(kr),fe=h??le,ge=l.useContext(zT),re=l.useMemo(()=>Rj(r),[r]),[ue,he]=l.useState(re.loading),[pe,Se]=l.useState(!1),Ie=l.useRef(null),Re=mi(t,Ie),we=k.length===1&&!$&&!$y(I),se=l.useRef(!0);ae.useEffect(()=>(se.current=!1,()=>{se.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(!Ie.current||!ie)return;const lt=Ie.current.textContent||"";we&&tv(lt)?pe||Se(!0):pe&&Se(!1)}),l.useEffect(()=>{D&&Ie.current&&Ie.current.focus()},[]);const be=ae.useCallback(lt=>{if(ue||fe){lt.preventDefault();return}e.onClick?.(("href"in e,lt))},[e.onClick,ue,fe]),{compactSize:Ee,compactItemClassnames:Ne}=Ma(ne,j),Ve={large:"lg",small:"sm",middle:void 0},Ge=fr(lt=>g??Ee??ge??lt),et=Ge?Ve[Ge]??"":"",Te=ue?"loading":$,_e=w??S??"start",Le=nn(W,["navigate"]),Qe={...e,type:U,color:B,variant:I,danger:z,shape:L,size:Ge,disabled:fe,loading:ue,iconPlacement:_e},[De,ve]=Lt([n?void 0:Z,T],[n?void 0:ee,N],{props:Qe}),Pe=Q(ne,oe,de,{[`${ne}-${L}`]:L!=="default"&&L!=="square"&&L,[`${ne}-${U}`]:U,[`${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&&!$y(I),[`${ne}-loading`]:ue,[`${ne}-two-chinese-chars`]:pe&&ie&&!ue,[`${ne}-block`]:x,[`${ne}-rtl`]:j==="rtl",[`${ne}-icon-end`]:_e==="end"},Ne,y,C,X,De.root),Ze={...ve.root,...K,...O},Ue={className:De.icon,style:ve.icon},Fe=lt=>ae.createElement(AT,{prefixCls:ne,...Ue},lt),ze=ae.createElement(gD,{existIcon:!!$,prefixCls:ne,loading:ue,mount:se.current,...Ue});let Xe;$&&!ue?Xe=Fe($):r&&typeof r=="object"&&r.icon?Xe=Fe(r.icon):Xe=ze;const rt=Mr(b)?pD(b,we&&ie,ve.content,De.content):null;if(Le.href!==void 0)return ae.createElement("a",{...Le,className:Q(Pe,{[`${ne}-disabled`]:fe}),href:fe?void 0:Le.href,style:Ze,onClick:be,ref:Re,tabIndex:fe?-1:0,"aria-disabled":fe},Xe,rt);let ot=ae.createElement("button",{...W,type:R,className:Pe,style:Ze,onClick:be,disabled:fe,ref:Re},Xe,rt,Ne&&ae.createElement(Mj,{prefixCls:ne}));return $y(I)||(ot=ae.createElement(fd,{component:"Button",disabled:ue},ot)),ot}),_t=Oj;_t.Group=fD;_t.__ANT_BUTTON=!0;const My=e=>typeof e?.then=="function",BS=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),[C,b]=zm(!1),$=(...M)=>{s?.(...M)};l.useEffect(()=>{let M=null;return c&&(M=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{M&&clearTimeout(M)}},[c]);const S=M=>{My(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&&!My(x)){h.current=!1,$(M);return}}else if(g.length)x=g(s),h.current=!1;else if(x=g(),!My(x)){$();return}S(x)};return l.createElement(_t,{...jS(t),onClick:w,loading:C,prefixCls:r,...i,ref:y},n)},gd=ae.createContext({}),{Provider:VT}=gd,IE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:s,close:c,onCancel:d,onConfirm:f,onClose:p}=l.useContext(gd);return i?ae.createElement(BS,{isSilent:r,actionFn:d,close:(...g)=>{c?.(...g),f?.(!1),p?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},PE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:s,okType:c,onConfirm:d,onOk:f,onClose:p}=l.useContext(gd);return ae.createElement(BS,{isSilent:n,type:c||"primary",actionFn:f,close:(...g)=>{t?.(...g),d?.(!0),p?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},s)},FT=l.createContext({});function zE(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function AE(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 Nj(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=AE(i),n.top+=AE(i,!0),n}const Ij=l.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qm.apply(this,arguments)}const Pj={width:0,height:0,overflow:"hidden",outline:"none"},zj={outline:"none"},kT=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:C,modalRender:b,onMouseDown:$,onMouseUp:S,holderRef:w,visible:M,forceRender:x,width:R,height:T,classNames:N,styles:O}=e,{panel:P}=ae.useContext(FT),D=mi(w,P),W=l.useRef(null),k=l.useRef(null);ae.useImperativeHandle(t,()=>({focus:()=>{W.current?.focus({preventScroll:!0})},changeActive:V=>{const{activeElement:A}=document;V&&A===k.current?W.current.focus({preventScroll:!0}):!V&&A===W.current&&k.current.focus({preventScroll:!0})}}));const U={};R!==void 0&&(U.width=R),T!==void 0&&(U.height=T);const G=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,H=l.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:p??ae.createElement("span",{className:`${n}-close-x`})}:{},[f,p,n]),_=jn(H,!0),B=typeof f=="object"&&f.disabled,I=f?ae.createElement("button",qm({type:"button",onClick:g,"aria-label":"Close"},_,{className:`${n}-close`,disabled:B}),H.closeIcon):null,z=ae.createElement("div",{className:Q(`${n}-container`,N?.container),style:O?.container},I,L,ae.createElement("div",qm({className:Q(`${n}-body`,N?.body),style:{...y,...O?.body}},C),h),G);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:D,style:{...i,...U},className:Q(n,r),onMouseDown:$,onMouseUp:S},ae.createElement("div",{ref:W,tabIndex:0,style:zj},ae.createElement(Ij,{shouldUpdate:M||x},b?b(z):z)),ae.createElement("div",{tabIndex:0,ref:k,style:Pj}))});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 Aj=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,C=l.useRef(null),b=l.useRef(null);l.useImperativeHandle(t,()=>({...b.current,inMotion:C.current.inMotion,enableMotion:C.current.enableMotion}));const[$,S]=l.useState(),w={};$&&(w.transformOrigin=$);function M(){const x=Nj(C.current.nativeElement);S(y&&(y.x||y.y)?`${y.x-x.left}px ${y.y-x.top}px`:"")}return l.createElement(Sr,{visible:c,onVisibleChanged:h,onAppearPrepare:M,onEnterPrepare:M,forceRender:d,motionName:p,removeOnLeave:f,ref:C},({className:x,style:R},T)=>l.createElement(kT,rv({},e,{ref:b,title:r,ariaId:g,prefixCls:n,holderRef:T,style:{...R,...i,...w},className:Q(s,x)})))});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 Dj=e=>{const{prefixCls:t,style:n,visible:r,maskProps:i,motionName:s,className:c}=e;return l.createElement(Sr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:d,style:f},p)=>l.createElement("div",ov({ref:p,style:{...f,...n},className:Q(`${t}-mask`,d,c)},i)))};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)}const jj=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:C,closable:b=!0,mask:$=!0,maskTransitionName:S,maskAnimation:w,maskClosable:M=!0,maskStyle:x,maskProps:R,rootClassName:T,rootStyle:N,classNames:O,styles:P}=e,D=l.useRef(null),W=l.useRef(null),k=l.useRef(null),[U,G]=l.useState(r),L=Ko();function H(){gb(W.current,document.activeElement)||(D.current=document.activeElement)}function _(){gb(W.current,document.activeElement)||k.current?.focus()}function B(){if(G(!1),$&&D.current&&s){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}U&&h?.()}function I(ee){ee?_():B(),g?.(ee)}function z(ee){p?.(ee)}const V=l.useRef(!1),A=l.useRef(null),j=()=>{clearTimeout(A.current),V.current=!0},q=()=>{A.current=setTimeout(()=>{V.current=!1})};let X=null;M&&(X=ee=>{V.current?V.current=!1:W.current===ee.target&&z(ee)});function K(ee){if(i&&ee.keyCode===nt.ESC){ee.stopPropagation(),z(ee);return}r&&ee.keyCode===nt.TAB&&k.current.changeActive(!ee.shiftKey)}l.useEffect(()=>{r?(G(!0),H()):U&&k.current.enableMotion()&&!k.current.inMotion()&&B()},[r]),l.useEffect(()=>()=>{clearTimeout(A.current)},[]);const Z={zIndex:n,...c,...P?.wrapper,display:U?null:"none"};return l.createElement("div",au({className:Q(`${t}-root`,T),style:N},jn(e,{data:!0})),l.createElement(Dj,{prefixCls:t,visible:$&&r,motionName:zE(t,S,w),style:{zIndex:n,...x,...P?.mask},maskProps:R,className:O?.mask}),l.createElement("div",au({tabIndex:-1,onKeyDown:K,className:Q(`${t}-wrap`,d,O?.wrapper),ref:W,onClick:X,style:Z},f),l.createElement(Aj,au({},e,{onMouseDown:j,onMouseUp:q,ref:k,closable:b,ariaId:L,prefixCls:t,visible:r&&U,onClose:z,onVisibleChanged:I,motionName:zE(t,y,C)}))))};function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}const _j=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(FT.Provider,{value:g},l.createElement(sd,{open:t||r||f,autoDestroy:!1,getContainer:n,autoLock:t||f},l.createElement(jj,av({},e,{destroyOnHidden:i,afterClose:()=>{const h=c&&typeof c=="object"?c:{},{afterClose:y}=h||{};y?.(),s?.(),p(!1)}}))))},qi="RC_FORM_INTERNAL_HOOKS",vn=()=>{tr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ms=l.createContext({getFieldValue:vn,getFieldsValue:vn,getFieldError:vn,getFieldWarning:vn,getFieldsError:vn,isFieldsTouched:vn,isFieldTouched:vn,isFieldValidating:vn,isFieldsValidating:vn,resetFields:vn,setFields:vn,setFieldValue:vn,setFieldsValue:vn,validateFields:vn,submit:vn,getInternalHooks:()=>(vn(),{dispatch:vn,initEntityValue:vn,registerField:vn,useSubscribe:vn,setInitialValues:vn,destroyForm:vn,setCallbacks:vn,registerWatch:vn,getFields:vn,setValidateMessages:vn,setPreserve:vn,getInitialValue:vn})}),Ym=l.createContext(null);function iv(e){return e==null?[]:Array.isArray(e)?e:[e]}function Hj(e){return e&&!!e._init}function lv(){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 sv=lv();function Bj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Lj(e,t,n){if(Cp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&vu(i,n.prototype),i}function cv(e){var t=typeof Map=="function"?new Map:void 0;return cv=function(r){if(r===null||!Bj(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 Lj(r,arguments,Qi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),vu(i,r)},cv(e)}var Vj=/%[sdj%]/g,Fj=function(){};function uv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ro(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(Vj,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 kj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function rr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||kj(t)&&typeof e=="string"&&!e)}function Wj(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 DE(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 qj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,xn(e[n]||[]))}),t}var jE=(function(e){ES(n,e);var t=OR(n);function n(r,i){var s;return al(this,n),s=t.call(this,"Async Validation Error"),cr(hs(s),"errors",void 0),cr(hs(s),"fields",void 0),s.errors=r,s.fields=i,s}return il(n)})(cv(Error));function Yj(e,t,n,r,i){if(t.first){var s=new Promise(function(y,C){var b=function(w){return r(w),w.length?C(new jE(w,uv(w))):y(i)},$=qj(e);DE($,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,C){var b=function(S){if(g.push.apply(g,S),p++,p===f)return r(g),g.length?C(new jE(g,uv(g))):y(i)};d.length||(r(g),y(i)),d.forEach(function($){var S=e[$];c.indexOf($)!==-1?DE(S,n,b):Wj(S,n,b)})});return h.catch(function(y){return y}),h}function Uj(e){return!!(e&&e.message!==void 0)}function Gj(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function _E(e,t){return function(n){var r;return e.fullFields?r=Gj(t,e.fullFields):r=t[n.field||e.fullField],Uj(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 HE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Kn(r)==="object"&&Kn(e[n])==="object"?e[n]=Dn(Dn({},e[n]),r):e[n]=r}}return e}var Kl="enum",Xj=function(t,n,r,i,s){t[Kl]=Array.isArray(t[Kl])?t[Kl]:[],t[Kl].indexOf(n)===-1&&i.push(ro(s.messages[Kl],t.fullField,t[Kl].join(", ")))},Kj=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||i.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qj=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",C=typeof n=="string",b=Array.isArray(n);if(y?h="number":C?h="string":b&&(h="array"),!h)return!1;b&&(g=n.length),C&&(g=n.replace(p,"_").length),c?g!==t.len&&i.push(ro(s.messages[h].len,t.fullField,t.len)):d&&!f&&g<t.min?i.push(ro(s.messages[h].min,t.fullField,t.min)):f&&!d&&g>t.max?i.push(ro(s.messages[h].max,t.fullField,t.max)):d&&f&&(g<t.min||g>t.max)&&i.push(ro(s.messages[h].range,t.fullField,t.min,t.max))},WT=function(t,n,r,i,s,c){t.required&&(!r.hasOwnProperty(t.field)||rr(n,c||t.type))&&i.push(ro(s.messages.required,t.fullField))},Ff;const Zj=(function(){if(Ff)return Ff;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*)?@)?",C=g.v4().source,b=g.v6().source,$="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[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(C,"|").concat(b,"|").concat($).concat(S).concat(w,")").concat(M).concat(x);return Ff=new RegExp("(?:^".concat(R,"$)"),"i"),Ff});var BE={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},Xc={integer:function(t){return Xc.number(t)&&parseInt(t,10)===t},float:function(t){return Xc.number(t)&&!Xc.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 Kn(t)==="object"&&!Xc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(BE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Zj())},hex:function(t){return typeof t=="string"&&!!t.match(BE.hex)}},Jj=function(t,n,r,i,s){if(t.required&&n===void 0){WT(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?Xc[d](n)||i.push(ro(s.messages.types[d],t.fullField,t.type)):d&&Kn(n)!==t.type&&i.push(ro(s.messages.types[d],t.fullField,t.type))},e_=function(t,n,r,i,s){(/^\s+$/.test(n)||n==="")&&i.push(ro(s.messages.whitespace,t.fullField))};const Kt={required:WT,whitespace:e_,type:Jj,range:Qj,enum:Xj,pattern:Kj};var t_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s)}r(c)},n_=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)},r_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(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(rr(n,"date")&&!t.required)return r();if(Kt.required(t,n,i,c,s),!rr(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)},a_="enum",i_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt[a_](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(rr(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)},s_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(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)},c_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},u_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),rr(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)},d_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},f_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s),rr(n,"string")||Kt.pattern(t,n,i,c,s)}r(c)},m_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n)&&!t.required)return r();Kt.required(t,n,i,c,s),rr(n)||Kt.type(t,n,i,c,s)}r(c)},p_=function(t,n,r,i,s){var c=[],d=Array.isArray(n)?"array":Kn(n);Kt.required(t,n,i,c,s,d),r(c)},g_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(rr(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s,"string"),rr(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)},Ry=function(t,n,r,i,s){var c=t.type,d=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(rr(n,c)&&!t.required)return r();Kt.required(t,n,i,d,s,c),rr(n,c)||Kt.type(t,n,i,d,s)}r(d)};const iu={string:g_,method:c_,number:u_,boolean:r_,regexp:m_,integer:s_,float:l_,array:n_,object:d_,enum:i_,pattern:f_,date:o_,url:Ry,hex:Ry,email:Ry,required:p_,any:t_};var hd=(function(){function e(t){al(this,e),cr(this,"rules",null),cr(this,"_messages",sv),this.define(t)}return il(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Kn(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=HE(lv(),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 $=[],S={};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?(S=uv($),f($,S)):f(null,c)}if(d.messages){var g=this.messages();g===sv&&(g=lv()),HE(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],S=c[b];$.forEach(function(w){var M=w;typeof M.transform=="function"&&(c===n&&(c=Dn({},c)),S=c[b]=M.transform(S),S!=null&&(M.type=M.type||(Array.isArray(S)?"array":Kn(S)))),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:S,source:c,field:b}))})});var C={};return Yj(h,d,function(b,$){var S=b.rule,w=(S.type==="object"||S.type==="array")&&(Kn(S.fields)==="object"||Kn(S.defaultField)==="object");w=w&&(S.required||!S.required&&b.value),S.field=b.field;function M(O,P){return Dn(Dn({},P),{},{fullField:"".concat(S.fullField,".").concat(O),fullFields:S.fullFields?[].concat(xn(S.fullFields),[O]):[O]})}function x(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(O)?O:[O];!d.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&S.message!==void 0&&(P=[].concat(S.message));var D=P.map(_E(S,c));if(d.first&&D.length)return C[S.field]=1,$(D);if(!w)$(D);else{if(S.required&&!b.value)return S.message!==void 0?D=[].concat(S.message).map(_E(S,c)):d.error&&(D=[d.error(S,ro(d.messages.required,S.field))]),$(D);var W={};S.defaultField&&Object.keys(b.value).map(function(G){W[G]=S.defaultField}),W=Dn(Dn({},W),b.rule.fields);var k={};Object.keys(W).forEach(function(G){var L=W[G],H=Array.isArray(L)?L:[L];k[G]=H.map(M.bind(null,G))});var U=new e(k);U.messages(d.messages),b.rule.options&&(b.rule.options.messages=d.messages,b.rule.options.error=d.error),U.validate(b.value,b.rule.options||d,function(G){var L=[];D&&D.length&&L.push.apply(L,xn(D)),G&&G.length&&L.push.apply(L,xn(G)),$(L.length?L:null)})}}var R;if(S.asyncValidator)R=S.asyncValidator(S,b.value,x,b.source,d);else if(S.validator){try{R=S.validator(S,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 S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.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&&!iu.hasOwnProperty(n.type))throw new Error(ro("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?iu.required:iu[this.getType(n)]||void 0}}]),e})();cr(hd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");iu[t]=n});cr(hd,"warning",Fj);cr(hd,"messages",sv);cr(hd,"validators",iu);const to="'${name}' is not a valid ${type}",qT={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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},string:{len:"'${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}"}},LE=hd;function h_(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 VE="CODE_LOGIC_ERROR";async function dv(e,t,n,r,i){const s={...n};if(delete s.ruleIndex,LE.warning=()=>{},s.validator){const y=s.validator;s.validator=(...C)=>{try{return y(...C)}catch(b){return console.error(b),Promise.reject(VE)}}}let c=null;s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField);const d=new LE({[e]:[s]}),f=ss(qT,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:C},b)=>{const $=C===VE?f.default:C;return l.isValidElement($)?l.cloneElement($,{key:`error_${b}`}):$}))}if(!p.length&&c&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((C,b)=>dv(`${e}.${b}`,C,c,r,i)))).reduce((C,b)=>[...C,...b],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...i};return p.map(y=>typeof y=="string"?h_(y,g):y)}function y_(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=(C,b,$)=>{let S=!1;const M=h(C,b,(...x)=>{Promise.resolve().then(()=>{tr(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||$(...x)})});S=M&&typeof M.then=="function"&&typeof M.catch=="function",tr(S,"`callback` is deprecated. Please return a promise instead."),S&&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],C=await dv(c,t,y,r,s);if(C.length){g([{errors:C,rule:y}]);return}}p([])});else{const p=d.map(g=>dv(c,t,g,r,s).then(h=>({errors:h,rule:g})));f=(i?v_(p):b_(p)).then(g=>Promise.reject(g))}return f.catch(p=>p),f}async function b_(e){return Promise.all(e).then(t=>[].concat(...t))}async function v_(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 Vn(e){return iv(e)}function FE(e,t){let n={};return t.forEach(r=>{const i=zo(e,r);n=vo(n,r,i)}),n}function bs(e,t,n=!1){return e&&e.some(r=>Um(t,r,n))}function Um(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function S_(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 C_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function kE(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 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 zi=[],Dc=[];function Ty(e,t,n,r,i,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==i}class $_ extends l.Component{static contextType=Ms;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=zi;warnings=Dc;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(qi);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:r}=n,{registerField:i}=r(qi);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,Vn(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};hu(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&&bs(n,f);switch(r.type==="valueUpdate"&&r.source==="external"&&!hu(p,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=zi,this.warnings=Dc,this.triggerMetaEvent()),r.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=zi,this.warnings=Dc,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(i&&Ty(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||zi),"warnings"in y&&(this.warnings=y.warnings||Dc),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&bs(n,f,!0)){this.reRender();return}if(i&&!f.length&&Ty(i,t,d,p,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(Vn).some(C=>bs(r.relatedFields,C))){this.reRender();return}break}default:if(h||(!s.length||f.length||i)&&Ty(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:C}=y;return C?iv(C).includes(i):!0})),p&&i&&(await new Promise(y=>{setTimeout(y,p)}),this.validatePromise!==c))return[];const h=y_(n,r,g,t,d,f);return h.catch(y=>y).then((y=zi)=>{if(this.validatePromise===c){this.validatePromise=null;const C=[],b=[];y.forEach?.(({rule:{warningOnly:$},errors:S=zi})=>{$?b.push(...S):C.push(...S)}),this.errors=C,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),h});return s||(this.validatePromise=c,this.dirty=!0,this.errors=zi,this.warnings=Dc,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(qi);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=dr(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 zo(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:C}=p,{dispatch:b}=y(qi),$=this.getValue(),S=f||(T=>({[d]:T})),w=t[r],M=n!==void 0?S($):{},x={...t,...M};return x[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;s?N=s(...T):N=C_(d,...T),c&&(N=c(N,$,C(!0))),N!==$&&b({type:"updateValue",namePath:h,value:N}),w&&w(...T)},iv(g||[]).forEach(T=>{const N=x[T];x[T]=(...O)=>{N&&N(...O);const{rules:P}=this.props;P&&P.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)):(tr(!r,"`children` of Field is not validate ReactElement."),s=r),l.createElement(l.Fragment,{key:t},s)}}function YT({name:e,...t}){const n=l.useContext(Ms),r=l.useContext(Ym),i=e!==void 0?Vn(e):void 0,s=t.isListField??!!r;let c="keep";return s||(c=`_${(i||[]).join("_")}`),l.createElement($_,fv({key:c,name:i,isListField:s},t,{fieldContext:n}))}function x_({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:s}){const c=l.useContext(Ms),d=l.useContext(Ym),p=l.useRef({keys:[],id:0}).current,g=l.useMemo(()=>[...Vn(c.prefixName)||[],...Vn(e)],[c.prefixName,e]),h=l.useMemo(()=>({...c,prefixName:g}),[c,g]),y=l.useMemo(()=>({getKey:b=>{const $=g.length,S=b[$];return[p.keys[S],b.slice($+1)]}}),[p,g]);if(typeof n!="function")return tr(!1,"Form.List only accepts function as children."),null;const C=(b,$,{source:S})=>S==="internal"?!1:b!==$;return l.createElement(Ym.Provider,{value:y},l.createElement(Ms.Provider,{value:h},l.createElement(YT,{name:[],shouldUpdate:C,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:s??!!d},({value:b=[],onChange:$},S)=>{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((P,D)=>!O.has(D)),$(N.filter((P,D)=>!O.has(D))))},move(T,N){if(T===N)return;const O=M();T<0||T>=O.length||N<0||N>=O.length||(p.keys=kE(p.keys,T,N),$(kE(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,S)})))}function w_(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 UT="__@field_split__";function Oy(e){return e.map(t=>`${typeof t}:${t}`).join(UT)}class Ql{kvs=new Map;set(t,n){this.kvs.set(Oy(t),n)}get(t){return this.kvs.get(Oy(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(Oy(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const i=n.split(UT);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}}const E_=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class M_{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!Um(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;E_(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),i=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,i,this.namePathList)}),this.namePathList=[]}})}}class R_{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new M_(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===qi?(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}):(tr(!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=ss(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=vo(r,i,zo(t,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new Ql;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=zo(this.initialValues,t);return t.length?ss(n):n};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const n=new Ql;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=Vn(r);return n.get(i)||{INVALIDATE_NAME_PATH:Vn(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=FE(this.store,c.map(Vn));return d.forEach(p=>{zo(f,p)||(f=vo(f,p,[]))}),f};getFieldValue=t=>{this.warningUnhooked();const n=Vn(t);return zo(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:Vn(t[i]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=Vn(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=Vn(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(Vn),s=!1):(i=null,s=n):(i=n.map(Vn),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 Ql;i.forEach(h=>{f.set(h,[])}),c.forEach(h=>{const y=h.getNamePath();i.forEach(C=>{C.every((b,$)=>y[$]===b)&&f.update(C,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(Vn);return n.some(i=>{const s=i.getNamePath();return bs(r,s)&&i.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Ql,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)tr(!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)tr(!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(vo(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(ss(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(Vn);r.forEach(i=>{const s=this.getInitialValue(i);this.updateStore(vo(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=Vn(s);r.push(d),"value"in c&&this.updateStore(vo(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();zo(this.store,r)===void 0&&this.updateStore(vo(this.store,r,n))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,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=>!Um(d.getNamePath(),n))){const d=this.store;this.updateStore(vo(d,n,c,!0)),this.notifyObservers(d,[n],{type:"remove"}),this.triggerDependenciesUpdate(d,n)}}this.notifyWatch([n])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(t,n,r)=>{if(this.subscribable){const 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=Vn(t),i=this.store;this.updateStore(vo(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=FE(this.store,[r]),p=this.getFieldsValue(),g=nR([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=ss(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 Ql;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(f=>{const p=Vn(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 Ql;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})=>bs(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(Vn):[],d=[...c],f=[],p=String(Date.now()),g=new Set,{recursive:h,dirty:y}=i||{};this.getFieldEntities(!0).forEach(S=>{const w=S.getNamePath();if(s||((!S.isList()||!c.some(M=>Um(M,w,!0)))&&d.push(w),c.push(w)),!(!S.props.rules||!S.props.rules.length)&&!(y&&!S.isFieldDirty())&&(g.add(w.join(p)),!s||bs(c,w,h))){const M=S.validateRules({validateMessages:{...qT,...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 C=w_(f);this.lastValidatePromise=C,C.catch(S=>S).then(S=>{const w=S.map(({name:M})=>M);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,S)});const b=C.then(()=>this.lastValidatePromise===C?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(S=>{const w=S.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!==C})});b.catch(S=>S);const $=c.filter(S=>g.has(S.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 GT(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},i=new R_(r);t.current=i.getForm()}return[t.current]}const mv=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),T_=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const i=l.useContext(mv),s=l.useRef({});return l.createElement(mv.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)};function pv(){return pv=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},pv.apply(this,arguments)}const O_=({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:C,...b},$)=>{const S=l.useRef(null),w=l.useContext(mv),[M]=GT(r),{useSubscribe:x,setInitialValues:R,setCallbacks:T,setValidateMessages:N,setPreserve:O,destroyForm:P}=M.getInternalHooks(qi);l.useImperativeHandle($,()=>({...M,nativeElement:S.current})),l.useEffect(()=>(w.registerForm(e,M),()=>{w.unregisterForm(e)}),[w,M,e]),N({...w.validateMessages,...d}),T({onValuesChange:p,onFieldsChange:(H,..._)=>{w.triggerFormChange(e,H),g&&g(H,..._)},onFinish:H=>{w.triggerFormFinish(e,H),h&&h(H)},onFinishFailed:y}),O(i);const D=l.useRef(null);R(t,!D.current),D.current||(D.current=!0),l.useEffect(()=>()=>P(C),[]);let W;const k=typeof s=="function";if(k){const H=M.getFieldsValue(!0);W=s(H,M)}else W=s;x(!k);const U=l.useRef(null);l.useEffect(()=>{S_(U.current||[],n||[])||M.setFields(n||[]),U.current=n},[n,M]);const G=l.useMemo(()=>({...M,validateTrigger:f}),[M,f]),L=l.createElement(Ym.Provider,{value:null},l.createElement(Ms.Provider,{value:G},W));return c===!1?L:l.createElement(c,pv({},b,{ref:S,onSubmit:H=>{H.preventDefault(),H.stopPropagation(),M.submit()},onReset:H=>{H.preventDefault(),M.resetFields(),b.onReset?.(H)}}),L)};function Ny(e){try{return JSON.stringify(e)}catch{return Math.random()}}function N_(...e){const[t,n={}]=e,r=Hj(n)?{form:n}:n,i=r.form,[s,c]=l.useState(()=>typeof t=="function"?t({}):void 0),d=l.useMemo(()=>Ny(s),[s]),f=l.useRef(d);f.current=d;const p=l.useContext(Ms),g=i||p,h=g&&g._init,{getFieldsValue:y,getInternalHooks:C}=g,{registerWatch:b}=C(qi),$=ut((w,M)=>{const x=r.preserve?M??y(!0):w??y(),R=typeof t=="function"?t(x):zo(x,Vn(t));Ny(s)!==Ny(R)&&c(R)}),S=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{h&&$()},[h,S]),l.useEffect(()=>h?b((M,x)=>{$(M,x)}):void 0,[h]),s}const I_=l.forwardRef(O_),yd=I_;yd.FormProvider=T_;yd.Field=YT;yd.List=x_;yd.useForm=GT;yd.useWatch=N_;const Tr=l.createContext({}),P_=({children:e,status:t,override:n})=>{const r=l.useContext(Tr),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(Tr.Provider,{value:i},e)},z_=l.createContext(void 0),xa=e=>{const{space:t,form:n,children:r}=e;if(!Mr(r))return null;let i=r;return n&&(i=ae.createElement(P_,{override:!0,status:!0},i)),t&&(i=ae.createElement(uD,null,i)),i},A_=e=>{if(Fr()&&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 WE(e,t){return A_(e)}const D_=()=>Fr()&&window.document.documentElement,Pp=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}})},j_=new At("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),LS=e=>({height:e,lineHeight:te(e)}),si=e=>({width:e,...LS(e)}),__=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:j_,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Iy=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...LS(e)}),H_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...si(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...si(i)},[`${t}${t}-sm`]:{...si(s)}}},B_=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,...Iy(t,d)},[`${r}-lg`]:{...Iy(i,d)},[`${r}-sm`]:{...Iy(s,d)}}},XT=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,...si(i(r).mul(2).equal())}},L_=e=>({[e.skeletonNodeCls]:{...XT(e)}}),V_=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...XT(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...si(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%"}}},Py=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},zy=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...LS(e)}),F_=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(),...zy(r,d)},...Py(e,r,n),[`${n}-lg`]:{...zy(i,d)},...Py(e,i,`${n}-lg`),[`${n}-sm`]:{...zy(s,d)},...Py(e,s,`${n}-sm`)}},k_=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:C,marginSM:b,borderRadius:$,titleHeight:S,blockRadius:w,paragraphLiHeight:M,controlHeightXS:x,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:C,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...si(p)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...si(g)},[`${n}-sm`]:{...si(h)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,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",...F_(e),...H_(e),...B_(e),...L_(e),...V_(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
|
+
`]:{...__(e)}}}},W_=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}},bd=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 k_(r)},W_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),q_=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),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,i,C,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Pp,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:p,...g}))},Y_=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),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},i?.root,n,r,C,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Pp,{prefixCls:`${y}-button`,className:i?.content,style:{...d?.content,...c},size:p,...g}))},KT=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,C]=bd(h),b=Q(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,i,C);return l.createElement("div",{className:b,style:d?.root},l.createElement("div",{className:Q(r?.content,s||`${h}-node`),style:{...d?.content,...c}},p))},U_="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",G_=e=>{const{getPrefixCls:t}=l.useContext(dt),n=t("skeleton",e.prefixCls);return l.createElement(KT,{...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:U_,className:`${n}-image-path`})))},X_=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),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,i,C,b);return l.createElement("div",{className:$,style:f?.root},l.createElement(Pp,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:p,...g}))},K_=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Q_=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:K_(d,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},s)},Z_=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:{width:n,...r}});function Ay(e){return e&&typeof e=="object"?e:{}}function J_(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function e9(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function t9(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const gi=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:C}=e,{getPrefixCls:b,direction:$,className:S,style:w,classNames:M,styles:x}=It("skeleton"),R=b("skeleton",t),[T,N]=bd(R),O={...e,avatar:p,title:g,paragraph:h},[P,D]=Lt([M,s],[x,d],{props:O});if(n||!("loading"in e)){const W=!!p,k=!!g,U=!!h;let G;if(W){const _={className:P.avatar,prefixCls:`${R}-avatar`,...J_(k,U),...Ay(p),style:D.avatar};G=l.createElement("div",{className:Q(P.header,`${R}-header`),style:D.header},l.createElement(Pp,{..._}))}let L;if(k||U){let _;if(k){const I={className:P.title,prefixCls:`${R}-title`,...e9(W,U),...Ay(g),style:D.title};_=l.createElement(Z_,{...I})}let B;if(U){const I={className:P.paragraph,prefixCls:`${R}-paragraph`,...t9(W,k),...Ay(h),style:D.paragraph};B=l.createElement(Q_,{...I})}L=l.createElement("div",{className:Q(P.section,`${R}-section`),style:D.section},_,B)}const H=Q(R,{[`${R}-with-avatar`]:W,[`${R}-active`]:y,[`${R}-rtl`]:$==="rtl",[`${R}-round`]:C},P.root,S,r,i,T,N);return l.createElement("div",{className:H,style:{...D.root,...w,...c}},G,L)}return f??null};gi.Button=Y_;gi.Avatar=q_;gi.Input=X_;gi.Image=G_;gi.Node=KT;function qE(){}const n9=l.createContext({add:qE,remove:qE});function QT(e){const t=l.useContext(n9),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 YE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(gd);return ae.createElement(_t,{onClick:n,...e},t)},UE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=l.useContext(gd);return ae.createElement(_t,{...jS(n),loading:e,onClick:i,...t},r)};function ZT(e,t){return ae.createElement("span",{className:`${e}-close-x`},t||ae.createElement(qr,{className:`${e}-close-icon`}))}const JT=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:p}=e,[g]=oo("Modal",rT()),h=t||g?.okText,y=r||g?.cancelText,C=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(YE,null),ae.createElement(UE,null)),typeof p=="function"&&(b=p(b,{OkBtn:UE,CancelBtn:YE})),b=ae.createElement(VT,{value:C},b)):b=p,ae.createElement(ST,{disabled:!1},b)},r9=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"}}}},o9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},a9=(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},gv=(e,t)=>a9(e,t),i9=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...gv(e,n)}}),l9=()=>({}),s9=()=>({}),c9=Pt("Grid",r9,l9),eO=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),u9=Pt("Grid",e=>{const t=Ot(e,{gridColumns:24}),n=eO(t);return delete n.xs,[o9(t),gv(t,""),gv(t,"-xs"),Object.keys(n).map(r=>i9(t,n[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},s9);function GE(e){return{position:e,inset:0}}const d9=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`]:{...GE("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...GE("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:_T(e)}]},f9=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},...xo(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"}}}]},m9=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p9=e=>{const{componentCls:t}=e,n=eO(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))}}},tO=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()})},nO=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}),rO=Pt("Modal",e=>{const t=tO(e);return[f9(t),m9(t),d9(t),md(t,"zoom"),p9(t)]},nO,{unitless:{titleLineHeight:!0}});let hv;const g9=e=>{hv={x:e.pageX,y:e.pageY},setTimeout(()=>{hv=null},100)};D_()&&document.documentElement.addEventListener("click",g9,!0);const oO=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:C,children:b,loading:$,confirmLoading:S,zIndex:w,mousePosition:M,onOk:x,onCancel:R,okButtonProps:T,cancelButtonProps:N,destroyOnHidden:O,destroyOnClose:P,panelRef:D=null,closable:W,mask:k,modalRender:U,...G}=e,{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,centered:A,cancelButtonProps:j,okButtonProps:q,mask:X}=It("modal"),{modal:K}=l.useContext(dt),[Z,ee]=l.useMemo(()=>typeof W=="boolean"?[void 0,void 0]:[W?.afterClose,W?.onClose],[W]),ie=H("modal",t),ne=H(),[oe,de]=aT(k,X,ie),le=Pe=>{S||(R?.(Pe),ee?.())},fe=Pe=>{x?.(Pe),ee?.()},ge=ar(ie),[re,ue]=rO(ie,ge),he=Q(s,{[`${ie}-centered`]:c??A,[`${ie}-wrap-rtl`]:_==="rtl"}),pe=h!==null&&!$?l.createElement(JT,{...e,okButtonProps:{...q,...T},onOk:fe,cancelButtonProps:{...j,...N},onCancel:le}):null,[Se,Ie,Re,we]=IS(Cs(e),Cs(K),{closable:!0,closeIcon:l.createElement(qr,{className:`${ie}-close-icon`}),closeIconRender:Pe=>ZT(ie,Pe)}),se=Se?{disabled:Re,closeIcon:Ie,afterClose:Z,...we}:!1,be=U?Pe=>l.createElement("div",{className:`${ie}-render`},U(Pe)):void 0,Ee=`.${ie}-${U?"render":"container"}`,Ne=QT(Ee),Ve=or(D,Ne),[Ge,et]=pi("Modal",w),Te={...e,width:g,panelRef:D,focusTriggerAfterClose:f,mask:oe,zIndex:Ge},[_e,Le]=Lt([z,y,de],[V,C],{props:Te}),[Qe,De]=l.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ve=l.useMemo(()=>{const Pe={};return De&&Object.keys(De).forEach(Ze=>{const Ue=De[Ze];Ue!==void 0&&(Pe[`--${ie}-${Ze}-width`]=typeof Ue=="number"?`${Ue}px`:Ue)}),Pe},[ie,De]);return l.createElement(xa,{form:!0,space:!0},l.createElement(ld.Provider,{value:et},l.createElement(_j,{width:Qe,...G,zIndex:Ge,getContainer:d===void 0?L:d,prefixCls:ie,rootClassName:Q(re,r,ue,ge,_e.root),rootStyle:Le.root,footer:pe,visible:i,mousePosition:M??hv,onClose:le,closable:se,closeIcon:Ie,focusTriggerAfterClose:f,transitionName:Go(ne,"zoom",e.transitionName),maskTransitionName:Go(ne,"fade",e.maskTransitionName),mask:oe,className:Q(re,n,B),style:{...I,...p,...ve},classNames:{..._e,wrapper:Q(_e.wrapper,he)},styles:Le,panelRef:Ve,destroyOnHidden:O??P,modalRender:be},$?l.createElement(gi,{active:!0,title:!1,paragraph:{rows:4},className:`${ie}-body-skeleton`}):b)))},h9=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`]:{...Zi()},[`&${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}}},y9=ad(["Modal","confirm"],e=>{const t=tO(e);return h9(t)},nO,{order:-1e3}),aO=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(TS,null);break;case"success":h=l.createElement(xp,null);break;case"error":h=l.createElement(zs,null);break;default:h=l.createElement(As,null)}const y=d??c==="confirm",C=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=oo("Modal"),$=p||b,S=r||(y?$?.okText:$?.justOkText),w=i||$?.cancelText,{closable:M}=g,{onClose:x}=M&&typeof M=="object"?M:{},R=l.useMemo(()=>({autoFocusButton:C,cancelTextLocale:w,okTextLocale:S,mergedOkCancel:y,onClose:x,...g}),[C,w,S,y,x,g]),T=l.createElement(l.Fragment,null,l.createElement(IE,null),l.createElement(PE,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(VT,{value:R},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(T,{OkBtn:PE,CancelBtn:IE}):T)):f,l.createElement(y9,{prefixCls:t}))},b9=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:C,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:S}=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]=Wr(),O=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+lT,[n,N]);return l.createElement(oO,{...e,className:T,wrapClassName:Q({[`${w}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Go(d||"","zoom",e.transitionName),maskTransitionName:Go(d||"","fade",e.maskTransitionName),maskClosable:R,style:x,styles:{body:f,mask:r,...h},width:M,zIndex:O,closable:p},l.createElement(aO,{...e,confirmPrefixCls:w,okButtonProps:{...S,...C},cancelButtonProps:{...$,...b}}))},iO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return l.createElement(Qo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},l.createElement(b9,{...e}))},Yi=[];let lO="";function sO(){return lO}const v9=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,i=rT(),s=l.useContext(dt),c=sO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ae.createElement(iO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:f})};function vd(e){const t=wT(),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<Yi.length;h++)if(Yi[h]===d){Yi.splice(h,1);break}NT(n).then(()=>{})}const c=p=>{clearTimeout(i),i=setTimeout(()=>{const g=t.getPrefixCls(void 0,sO()),h=t.getIconPrefixCls(),y=t.getTheme(),C=ae.createElement(v9,{...p});DS(ae.createElement(Qo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),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),Yi.push(d),{destroy:d,update:f}}function cO(e){return{...e,type:"warning"}}function uO(e){return{...e,type:"info"}}function dO(e){return{...e,type:"success"}}function fO(e){return{...e,type:"error"}}function mO(e){return{...e,type:"confirm"}}function S9({rootPrefixCls:e}){lO=e}const C9=({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?.()},C=(...S)=>{s(!1),S.some(M=>M?.triggerCancel)&&c.onCancel?.(()=>{},...S.slice(1))};l.useImperativeHandle(r,()=>({destroy:C,update:S=>{d(w=>{const M=typeof S=="function"?S(w):S;return{...w,...M}})}}));const b=c.okCancel??c.type==="confirm",[$]=oo("Modal",$a.Modal);return l.createElement(iO,{prefixCls:g,rootPrefixCls:h,...c,close:C,open:i,afterClose:y,okText:c.okText||(b?$?.okText:$?.justOkText),direction:c.direction||f,cancelText:c.cancelText||$?.cancelText,...n})},$9=l.forwardRef(C9);let XE=0;const x9=l.memo(l.forwardRef((e,t)=>{const[n,r]=F5();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function w9(){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){XE+=1;const f=l.createRef();let p;const g=new Promise($=>{p=$});let h=!1,y;const C=l.createElement($9,{key:`modal-${XE}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:$=>{p($)}});return y=e.current?.patchElement(C),y&&Yi.push(y),{destroy:()=>{function $(){f.current?.destroy()}f.current?$():n(S=>[].concat(xn(S),[$]))},update:$=>{function S(){f.current?.update($)}f.current?S():n(w=>[].concat(xn(w),[S]))},then:$=>(h=!0,g.then($))}},[]);return[l.useMemo(()=>({info:r(uO),success:r(dO),error:r(fO),warning:r(cO),confirm:r(mO)}),[r]),l.createElement(x9,{key:"modal-holder",ref:e})]}const E9=ae.createContext({});function pO(e){return t=>l.createElement(Qo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const zp=(e,t,n,r,i)=>pO(c=>{const{prefixCls:d,style:f}=c,p=l.useRef(null),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,$]=Yt(!1,c.open),{getPrefixCls:S}=l.useContext(dt),w=S(r||"select",d);l.useEffect(()=>{if($(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),C(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}))}),M9=(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])},gO=l.createContext(null);function ll(){return l.useContext(gO)}function R9(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 hO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function T9(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&&!hO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function yv(){return yv=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},yv.apply(this,arguments)}const O9=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"}}},N9=(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:C,popupMatchSelectWidth:b,popupRender:$,popupAlign:S,getPopupContainer:w,empty:M,onPopupVisibleChange:x,onPopupMouseEnter:R,onPopupMouseDown:T,onPopupBlur:N,...O}=e,P=`${n}-dropdown`;let D=c;$&&(D=$(c));const W=l.useMemo(()=>C||O9(b),[C,b]),k=d?`${P}-${d}`:f,U=typeof b=="number",G=l.useMemo(()=>U?null:b===!1?"minWidth":"width",[b,U]);let L=p;U&&(L={...p,width:b});const H=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>H.current?.popupElement})),l.createElement(ud,yv({},O,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:W,prefixCls:P,popupMotion:{motionName:k},popup:l.createElement("div",{onMouseEnter:R,onMouseDown:T,onBlur:N},D),ref:H,stretch:G,popupAlign:S,popupVisible:i,getPopupContainer:w,popupClassName:Q(g,{[`${P}-empty`]:M}),popupStyle:L,onPopupVisibleChange:x}),s)},I9=l.forwardRef(N9);function KE(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 bv(e){return typeof e<"u"&&!Number.isNaN(e)}function yO(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 P9(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:s,options:c,groupLabel:d}=yO(t,!1);function f(p,g){Array.isArray(p)&&p.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:KE(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:KE(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function vv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return tr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const z9=(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 A9(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 D9=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},VS=(e,t=1)=>{if(t<=0){e();return}D9(()=>{VS(e,t-1)})};function j9(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(C=>{n&&p!==C&&n(C),d(C)}),y=ut((C,b={})=>{const{cancelFun:$}=b;g.current+=1;const S=g.current,w=typeof C=="boolean"?C:!p;function M(){S===g.current&&!$?.()&&h(w)}w?M():VS(()=>{M()})});return[p,y]}function Dy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const bO=l.createContext(null);function Sd(){return l.useContext(bO)}const vO=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:C,onSearchSubmit:b,onInputBlur:$,autoFocus:S,tokenWithEnter:w,placeholder:M,components:{input:x="input"}}=Sd(),{id:R,classNames:T,styles:N,open:O,activeDescendantId:P,role:D,disabled:W}=ll()||{},k=Q(`${h}-input`,T?.input,f),U=l.useRef(!1),G=l.useRef(null),L=l.useRef(null);l.useImperativeHandle(t,()=>L.current);const H=K=>{let{value:Z}=K.target;if(w&&G.current&&/[\r\n]/.test(G.current)){const ee=G.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Z=Z.replace(ee,G.current)}G.current=null,C&&C(Z,!0,U.current),n?.(K)},_=K=>{const{key:Z}=K,{value:ee}=K.currentTarget;Z==="Enter"&&y==="tags"&&!U.current&&b&&b(ee),r?.(K)},B=K=>{$?.(),i?.(K)},I=()=>{U.current=!0},z=K=>{if(U.current=!1,y!=="combobox"){const{value:Z}=K.currentTarget;C?.(Z,!0,!1)}},V=K=>{const{clipboardData:Z}=K,ee=Z?.getData("text");G.current=ee||""},[A,j]=l.useState(void 0);Nt(()=>{const K=L.current;if(c&&K){K.style.width="0px";const Z=K.scrollWidth;j(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":A},autoFocus:S,autoComplete:p||"off",className:k,disabled:W,value:d||"",onChange:H,onKeyDown:_,onBlur:B,onPaste:V,onCompositionStart:I,onCompositionEnd:z,role:D||"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?P:void 0};if(l.isValidElement(x)){const K=x.props||{},Z={placeholder:e.placeholder||M,...q,...K};return Object.keys(K).forEach(ee=>{const ie=K[ee];typeof ie=="function"&&(Z[ee]=(...ne)=>{ie(...ne),q[ee]?.(...ne)})}),Z.ref=or(x.ref,q.ref),l.cloneElement(x,Z)}const X=x;return l.createElement(X,q)});function SO(e){const{prefixCls:t,placeholder:n,displayValues:r}=Sd(),{classNames:i,styles:s}=ll(),{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 FS=l.createContext(null);function CO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function _9(e){return e!=null}function H9(e){return!e&&e!==0}function QE(e){return["string","number"].includes(typeof e)}function Sv(e){let t;return e&&(QE(e.title)?t=e.title.toString():QE(e.label)&&(t=e.label.toString())),t}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 B9=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:s,maxLength:c,mode:d}=Sd(),{triggerOpen:f,title:p,showSearch:g,classNames:h,styles:y}=ll(),C=l.useContext(FS),[b,$]=l.useState(!1),S=d==="combobox",w=s[0],M=l.useMemo(()=>S&&i&&!b&&f?i:g?r:"",[S,i,b,f,r,g]),x=l.useMemo(()=>{let R={className:`${n}-content-value`,style:{visibility:M?"hidden":"visible"}};if(w&&C?.flattenOptions){const T=C.flattenOptions.find(N=>N.value===w.value);if(T?.data){const{label:N,value:O,className:P,style:D,key:W,...k}=T.data;R={...R,...k,title:Sv(T.data),className:Q(R.className,P),style:{...R.style,...D}}}}return w&&!R.title&&(R.title=Sv(w)),p!==void 0&&(R.title=p),R},[w,C?.flattenOptions,n,M,p]);return l.useEffect(()=>{S&&$(!1)},[S,i]),l.createElement("div",{className:Q(`${n}-content`,h?.content),style:y?.content},w?l.createElement("div",x,w.label):l.createElement(SO,{show:!M}),l.createElement(vO,Cv({ref:t},e,{value:M,maxLength:d==="combobox"?c:void 0,onChange:R=>{$(!0),e.onChange?.(R)}})))}),Zl=void 0;function L9(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:C,order:b,component:$="div",...S}=e,w=c&&!C;function M(O){f(p,O)}l.useEffect(()=>()=>{M(null)},[]);const x=s&&i!==Zl?s(i,{index:b}):y;let R;r||(R={opacity:w?0:1,height:w?0:Zl,overflowY:w?"hidden":Zl,order:c?b:Zl,pointerEvents:w?"none":Zl,position:w?"absolute":Zl});const T={};w&&(T["aria-hidden"]=!0);let N=l.createElement($,Xn({className:Q(!r&&n,g),style:{...R,...h}},T,S,{ref:t}),x);return c&&(N=l.createElement(Vr,{onResize:({offsetWidth:O})=>{M(O)},disabled:d},N)),N}const Kc=l.forwardRef(L9);function V9(e){if(typeof MessageChannel>"u")Ht(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function F9(){const e=l.useRef(null);return n=>{e.current||(e.current=[],V9(()=>{$s.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Jl(e,t){const[n,r]=l.useState(t),i=ut(s=>{e(()=>{r(s)})});return[n,i]}const Gm=ae.createContext(null),k9=(e,t)=>{const n=l.useContext(Gm);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Xn({},f,{ref:t}))}const{className:r,...i}=n,{className:s,...c}=e;return l.createElement(Gm.Provider,{value:null},l.createElement(Kc,Xn({ref:t,className:Q(r,s)},i,c)))},W9=l.forwardRef(k9),$O="responsive",xO="invalidate";function q9(e){return`+ ${e.length} ...`}function Y9(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:C,prefix:b,suffix:$,component:S="div",itemComponent:w,onVisibleChange:M,...x}=e,R=f==="full",T=F9(),[N,O]=Jl(T,null),P=N||0,[D,W]=Jl(T,new Map),[k,U]=Jl(T,0),[G,L]=Jl(T,0),[H,_]=Jl(T,0),[B,I]=Jl(T,0),[z,V]=l.useState(null),[A,j]=l.useState(null),q=l.useMemo(()=>A===null&&R?Number.MAX_SAFE_INTEGER:A||0,[A,N]),[X,K]=l.useState(!1),Z=`${n}-item`,ee=Math.max(k,G),ie=h===$O,ne=r.length&&ie,oe=h===xO,de=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,P/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 ue(_e,Le,Qe){A===_e&&(Le===void 0||Le===z)||(j(_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 De=new Map(Qe);return Le===null?De.delete(_e):De.set(_e,Le),De})}function Se(_e,Le){L(Le),U(G)}function Ie(_e,Le){_(Le)}function Re(_e,Le){I(Le)}function we(_e){return D.get(ge(le[_e],_e))}Nt(()=>{if(P&&typeof ee=="number"&&le){let _e=H+B;const Le=le.length,Qe=Le-1;if(!Le){ue(0,null);return}for(let De=0;De<Le;De+=1){let ve=we(De);if(R&&(ve=ve||0),ve===void 0){ue(De-1,void 0,!0);break}if(_e+=ve,Qe===0&&_e<=P||De===Qe-1&&_e+we(Qe)<=P){ue(Qe,null);break}else if(_e+ee>P){ue(De-1,_e-ve-B+G);break}}$&&we(0)+B>P&&V(null)}},[P,D,G,H,B,ge,le]);const se=X&&!!fe.length;let be={};z!==null&&ne&&(be={position:"absolute",left:z,top:0});const Ee={prefixCls:Z,responsive:ne,component:w,invalidate:oe},Ne=s?(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Gm.Provider,{key:Qe,value:{...Ee,order:Le,item:_e,itemKey:Qe,registerSize:pe,display:Le<=q}},s(_e,Le))}:(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Kc,Xn({},Ee,{order:Le,key:Qe,item:_e,renderItem:re,itemKey:Qe,registerSize:pe,display:Le<=q}))},Ve={order:se?q:Number.MAX_SAFE_INTEGER,className:`${Z}-rest`,registerSize:Se,display:se},Ge=y||q9,et=C?l.createElement(Gm.Provider,{value:{...Ee,...Ve}},C(fe)):l.createElement(Kc,Xn({},Ee,Ve),typeof Ge=="function"?Ge(fe):Ge),Te=l.createElement(S,Xn({className:Q(!oe&&n,g),style:p,ref:t},x),b&&l.createElement(Kc,Xn({},Ee,{responsive:ie,responsiveDisabled:!ne,order:-1,className:`${Z}-prefix`,registerSize:Ie,display:!0}),b),le.map(Ne),de?et:null,$&&l.createElement(Kc,Xn({},Ee,{responsive:ie,responsiveDisabled:!ne,order:q,className:`${Z}-suffix`,registerSize:Re,display:!0,style:be}),$));return ie?l.createElement(Vr,{onResize:he,disabled:!ne},Te):Te}const Yo=l.forwardRef(Y9);Yo.Item=W9;Yo.RESPONSIVE=$O;Yo.INVALIDATE=xO;const wO=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 $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$v.apply(this,arguments)}function U9(e){return e.key??e.value}const ZE=e=>{e.preventDefault(),e.stopPropagation()},G9=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=Sd(),{disabled:p,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:C,tagRender:b,maxTagPlaceholder:$,maxTagTextLength:S,maxTagCount:w,classNames:M,styles:x}=ll(),R=`${r}-selection-item`;let T=s;!h&&c==="multiple"&&C!==!1&&(T="");const N=g&&T||"",O=g&&!p,P=f??"×",D=$??(B=>`+ ${B.length} ...`),W=b,k=B=>{y(B)},U=B=>{d?.(B)},G=(B,I,z,V,A)=>l.createElement("span",{title:Sv(B),className:Q(R,{[`${R}-disabled`]:z},M?.item),style:x?.item},l.createElement("span",{className:Q(`${R}-content`,M?.itemContent),style:x?.itemContent},I),V&&l.createElement(wO,{className:Q(`${R}-remove`,M?.itemRemove),style:x?.itemRemove,onMouseDown:ZE,onClick:A,customizeIcon:P},"×")),L=(B,I,z,V,A,j,q)=>{const X=K=>{ZE(K),k(!h)};return l.createElement("span",{onMouseDown:X},W({label:I,value:B,index:q?.index,disabled:z,closable:V,onClose:A,isMaxTag:!!j}))},H=(B,I)=>{const{disabled:z,label:V,value:A}=B,j=!p&&!z;let q=V;if(typeof S=="number"&&(typeof V=="string"||typeof V=="number")){const K=String(q);K.length>S&&(q=`${K.slice(0,S)}...`)}const X=K=>{K&&K.stopPropagation(),U(B)};return typeof W=="function"?L(A,q,z,j,X,void 0,I):G(B,q,z,j,X)},_=B=>{if(!i.length)return null;const I=typeof D=="function"?D(B):D;return typeof W=="function"?L(void 0,I,!1,!1,void 0,!0):G({title:I},I,!1)};return l.createElement(Yo,{prefixCls:`${r}-content`,className:M?.content,style:x?.content,prefix:!i.length&&(!s||!h)?l.createElement(SO,null):null,data:i,renderItem:H,renderRest:_,suffix:l.createElement(vO,$v({ref:n,disabled:p,readOnly:!O},t,{value:N||"",syncWidth:!0})),itemKey:U9,maxCount:w})}),X9=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:s}=Sd(),c=ll(),{showSearch:d}=c,p={...jn(c,{aria:!0}),onKeyDown:i,readOnly:!d,tabIndex:s};return r?l.createElement(G9,{ref:n,inputProps:p}):l.createElement(B9,{ref:n,inputProps:p})});function K9(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 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 Q9=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],Z9=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:C,searchValue:b,onSearch:$,onSearchSubmit:S,onInputBlur:w,maxLength:M,autoFocus:x,onMouseDown:R,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:P,components:D,...W}=t,{triggerOpen:k,toggleOpen:U,showSearch:G,disabled:L,loading:H,classNames:_,styles:B}=ll(),I=l.useRef(null),z=l.useRef(null),V=ut(K=>{const{which:Z}=K,ee=z.current instanceof HTMLTextAreaElement;!ee&&k&&(Z===nt.UP||Z===nt.DOWN)&&K.preventDefault(),N&&N(K),!(ee&&!k&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(Z))&&K9(Z)&&U(!0)});l.useImperativeHandle(n,()=>({focus:K=>{(z.current||I.current).focus?.(K)},blur:()=>{(z.current||I.current).blur?.()},nativeElement:I.current}));const A=ut(K=>{if(!L){const Z=mu(z.current);K.nativeEvent._ori_target=Z,Z&&K.target!==Z&&!Z.contains(K.target)&&K.preventDefault();const ee=k&&!g&&(C==="combobox"||G);K.nativeEvent._select_lazy?k&&U(!1):(z.current?.focus(),ee||U())}R?.(K)}),{root:j}=D,q=nn(W,Q9),X={...t,onInputKeyDown:V};return j?l.isValidElement(j)?l.cloneElement(j,{...q,ref:or(j.ref,I)}):l.createElement(j,Xm({},q,{ref:I})):l.createElement(bO.Provider,{value:X},l.createElement("div",Xm({},q,{ref:I,className:i,style:s,onMouseDown:A}),l.createElement(Dy,{className:Q(`${r}-prefix`,_?.prefix),style:B?.prefix},c),l.createElement(X9,{ref:z}),l.createElement(Dy,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:H},_?.suffix),style:B?.suffix},d),f&&l.createElement(Dy,{className:Q(`${r}-clear`,_?.clear),style:B?.clear,onMouseDown:K=>{K.nativeEvent._select_lazy=!0,T?.(K)}},f),p))});function J9(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 xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}const wv=e=>e==="tags"||e==="multiple",eH=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:C,emptyOptions:b,notFoundContent:$="Not Found",onClear:S,maxCount:w,placeholder:M,mode:x,disabled:R,loading:T,getInputElement:N,getRawInputElement:O,open:P,defaultOpen:D,onPopupVisibleChange:W,activeValue:k,onActiveValueChange:U,activeDescendantId:G,searchValue:L,autoClearSearchValue:H,onSearch:_,onSearchSplit:B,tokenSeparators:I,allowClear:z,prefix:V,suffix:A,suffixIcon:j,clearIcon:q,OptionList:X,animation:K,transitionName:Z,popupStyle:ee,popupClassName:ie,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,showAction:re=[],onFocus:ue,onBlur:he,onKeyUp:pe,onKeyDown:Se,onMouseDown:Ie,components:Re,...we}=e,se=wv(x),be=l.useRef(null),Ee=l.useRef(null),Ne=l.useRef(null),[Ve,Ge]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:be.current?.focus,blur:be.current?.blur,scrollTo:Ke=>Ne.current?.scrollTo(Ke),nativeElement:mu(be.current)}));const et=J9(Re,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,De]=j9(D||!1,P,W,Ke=>R||Le?!1:Ke),ve=l.useMemo(()=>(I||[]).some(Ke=>[`
|
|
178
|
+
`,`\r
|
|
179
|
+
`].includes(Ke)),[I]),Pe=(Ke,Et,mt)=>{if(se&&bv(w)&&y.length>=w)return;let Rt=!0,Ut=Ke;U?.(null);const an=z9(Ke,I,bv(w)?w-y.length:void 0),kt=mt?null:an;return x!=="combobox"&&kt&&(Ut="",B?.(kt),De(!1),Rt=!1),_&&Te!==Ut&&_(Ut,{source:Et?"typing":"effect"}),Ke&&Et&&Rt&&De(!0),Rt},Ze=Ke=>{!Ke||!Ke.trim()||_(Ke,{source:"submit"})};l.useEffect(()=>{!Qe&&!se&&x!=="combobox"&&Pe("",!1,!1)},[Qe]),l.useEffect(()=>{R&&(De(!1),Ge(!1))},[R,Qe]);const[Ue,Fe]=R9(),ze=l.useRef(!1),Xe=Ke=>{const Et=Ue(),{key:mt}=Ke,Rt=mt==="Enter";if(Rt&&(x!=="combobox"&&Ke.preventDefault(),Qe||De(!0)),Fe(!!Te),mt==="Backspace"&&!Et&&se&&!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&&C(Ut,{type:"remove",values:[an]})}Qe&&(!Rt||!ze.current)&&(Rt&&(ze.current=!0),Ne.current?.onKeyDown(Ke)),Se?.(Ke)},rt=(Ke,...Et)=>{Qe&&Ne.current?.onKeyUp(Ke,...Et),Ke.key==="Enter"&&(ze.current=!1),pe?.(Ke,...Et)},ot=ut(Ke=>{const Et=y.filter(mt=>mt!==Ke);C(Et,{type:"remove",values:[Ke]})}),lt=()=>{ze.current=!1},St=()=>[mu(be.current),Ee.current?.getPopupElement()];T9(St,Qe,De,!!et.root);const Ct=l.useRef(!1),qe=Ke=>{Ge(!0),R||(re.includes("focus")&&De(!0),ue?.(Ke))},at=()=>{Qe&&!Ct.current&&De(!1,{cancelFun:()=>hO(St(),document.activeElement)})},He=Ke=>{Ge(!1),Te&&(x==="tags"?_(Te,{source:"submit"}):x==="multiple"&&_("",{source:"blur"})),at(),R||he?.(Ke)},Ae=(Ke,...Et)=>{const{target:mt}=Ke;Ee.current?.getPopupElement()?.contains(mt)&&De&&De(!0),Ie?.(Ke,...Et),Ct.current=!0,VS(()=>{Ct.current=!1})},[,We]=l.useState({});function Me(){We({})}let Ye;et.root&&(Ye=Ke=>{De(Ke)});const Je=l.useMemo(()=>({...e,notFoundContent:$,open:Qe,triggerOpen:Qe,id:n,showSearch:d,multiple:se,toggleOpen:De,showScrollBar:p,styles:s,classNames:c}),[e,$,De,n,d,se,Qe,p,s,c]),it=l.useMemo(()=>{const Ke=A??j;return typeof Ke=="function"?Ke({searchValue:Te,open:Qe,focused:Ve,showSearch:d,loading:T}):Ke},[A,j,Te,Qe,Ve,d,T]),ft=()=>{S?.(),be.current?.focus(),C([],{type:"clear",values:y}),Pe("",!1,!1)},{allowClear:Ft,clearIcon:Dt}=M9(r,y,z,q,R,Te,x),$t=l.createElement(X,{ref:Ne}),tn=Q(r,i,{[`${r}-focused`]:Ve,[`${r}-multiple`]:se,[`${r}-single`]:!se,[`${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(Z9,xv({},we,{ref:be,prefixCls:r,className:tn,focused:Ve,prefix:V,suffix:it,clearIcon:Dt,multiple:se,mode:x,displayValues:y,placeholder:M,searchValue:Te,activeValue:k,onSearch:Pe,onSearchSubmit:Ze,onInputBlur:lt,onFocus:qe,onBlur:He,onClearMouseDown:ft,onKeyDown:Xe,onKeyUp:rt,onSelectorRemove:ot,tokenWithEnter:ve,onMouseDown:Ae,components:et}));return wt=l.createElement(I9,{ref:Ee,disabled:R,prefixCls:r,visible:Qe,popupElement:$t,animation:K,transitionName:Z,popupStyle:ee,popupClassName:ie,direction:g,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,empty:b,onPopupVisibleChange:Ye,onPopupMouseEnter:Me,onPopupMouseDown:Ae,onPopupBlur:at},wt),l.createElement(gO.Provider,{value:Je},l.createElement(A9,{visible:Ve&&!Qe,values:y}),wt)}),kS=()=>null;kS.isSelectOptGroup=!0;const WS=()=>null;WS.isSelectOption=!0;const EO=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(Vr,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Xn({style:h,className:Q({[`${i}-holder-inner`]:i}),ref:p},c),r,f)))});EO.displayName="Filler";function tH({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function nH(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(tH,{key:y,setRef:C=>s(f,C)},h)})}function rH(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]),C=f(c[h]);if(y!==C){p=h,g=g||y!==f(c[h+1]);break}}return p===null?null:{index:p,multiple:g}}function oH(e,t,n){const[r,i]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=rH(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),i(e)},[e]),[s]}const JE=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),MO=((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 aH(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=MO(t,n,r,i);function y(M,x){if(Ht.cancel(f.current),h(!1,x))return;const R=M;if(!R._virtualHandled)R._virtualHandled=!0;else return;d.current+=x,p.current=x,JE||R.preventDefault(),f.current=Ht(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function C(M,x){c(x,!0),JE||M.preventDefault()}const b=l.useRef(null),$=l.useRef(null);function S(M){if(!e)return;Ht.cancel($.current),$.current=Ht(()=>{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 P=Math.abs(N),D=Math.abs(O);b.current===null&&(b.current=s&&P>D?"x":"y"),b.current==="y"?y(M,O):C(M,N)}function w(M){e&&(g.current=M.detail===p.current)}return[S,w]}function iH(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 C=e[y],b=t(C);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 lH{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 e2(e){const t=parseFloat(e);return isNaN(t)?0:t}function sH(e,t,n){const[r,i]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new lH),d=l.useRef(0);function f(){d.current+=1}function p(h=!1){f();const y=()=>{let C=!1;s.current.forEach((b,$)=>{if(b&&b.offsetParent){const{offsetHeight:S}=b,{marginTop:w,marginBottom:M}=getComputedStyle(b),x=e2(w),R=e2(M),T=S+x+R;c.current.get($)!==T&&(c.current.set($,T),C=!0)}}),C&&i(b=>b+1)};if(h)y();else{d.current+=1;const C=d.current;Promise.resolve().then(()=>{C===d.current&&y()})}}function g(h,y){const C=e(h);s.current.get(C),y?(s.current.set(C,y),p()):s.current.delete(C)}return l.useEffect(()=>f,[]),[g,p,c.current,r]}const t2=14/15;function cH(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 C=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let $=i.current-C,S=s.current-b;const w=Math.abs($)>Math.abs(S);w?i.current=C:s.current=b;const M=n(w,w?$:S,!1,y);M&&y.preventDefault(),clearInterval(d.current),M&&(d.current=setInterval(()=>{w?$*=t2:S*=t2;const x=Math.floor(w?$:S);(!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 n2(e){return Math.floor(e**.5)}function Ev(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function uH(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,s,c;const d=()=>{Ht.cancel(s)},f=()=>{d(),s=Ht(()=>{n(c),f()})},p=()=>{i=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const C=y;C._virtualHandled||(C._virtualHandled=!0,i=!0)},h=y=>{if(i){const C=Ev(y,!1),{top:b,bottom:$}=r.getBoundingClientRect();if(C<=b){const S=b-C;c=-n2(S),f()}else if(C>=$){const S=C-$;c=n2(S),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 dH=10;function fH(e,t,n,r,i,s,c,d){const f=l.useRef(),[p,g]=l.useState(null);return Nt(()=>{if(p&&p.times<dH){if(!e.current){g(x=>({...x}));return}s();const{targetAlign:h,originAlign:y,index:C,offset:b}=p,$=e.current.clientHeight;let S=!1,w=h,M=null;if($){const x=h||y;let R=0,T=0,N=0;const O=Math.min(t.length-1,C);for(let D=0;D<=O;D+=1){const W=i(t[D]);T=R;const k=n.get(W);N=T+(k===void 0?r:k),R=N}let P=x==="top"?b:$-b;for(let D=O;D>=0;D-=1){const W=i(t[D]),k=n.get(W);if(k===void 0){S=!0;break}if(P-=k,P<=0)break}switch(x){case"top":M=T-b;break;case"bottom":M=N-$+b;break;default:{const{scrollTop:D}=e.current,W=D+$;T<D?w="top":N>W&&(w="bottom")}}M!==null&&c(M),M!==p.lastTop&&(S=!0)}S&&g({...p,times:p.times+1,targetAlign:w,lastTop:M})}},[p,e.current]),h=>{if(h==null){d();return}if(Ht.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:C}=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:C})}}}const r2=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:C,showScrollBar:b}=e,[$,S]=l.useState(!1),[w,M]=l.useState(null),[x,R]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[P,D]=l.useState(b),W=l.useRef(),k=()=>{b===!0||b===!1||(clearTimeout(W.current),D(!0),W.current=setTimeout(()=>{D(!1)},3e3))},U=s-h||0,G=h-g||0,L=l.useMemo(()=>i===0||U===0?0:i/U*G,[i,U,G]),H=q=>{q.stopPropagation(),q.preventDefault()},_=l.useRef({top:L,dragging:$,pageY:w,startTop:x});_.current={top:L,dragging:$,pageY:w,startTop:x};const B=q=>{S(!0),M(Ev(q,p)),R(_.current.top),c(),q.stopPropagation(),q.preventDefault()};l.useEffect(()=>{const q=Z=>{Z.preventDefault()},X=N.current,K=O.current;return X.addEventListener("touchstart",q,{passive:!1}),K.addEventListener("touchstart",B,{passive:!1}),()=>{X.removeEventListener("touchstart",q),K.removeEventListener("touchstart",B)}},[]);const I=l.useRef();I.current=U;const z=l.useRef();z.current=G,l.useEffect(()=>{if($){let q;const X=Z=>{const{dragging:ee,pageY:ie,startTop:ne}=_.current;Ht.cancel(q);const oe=N.current.getBoundingClientRect(),de=h/(p?oe.width:oe.height);if(ee){const le=(Ev(Z,p)-ie)*de;let fe=ne;!T&&p?fe-=le:fe+=le;const ge=I.current,re=z.current,ue=re?fe/re:0;let he=Math.ceil(ue*ge);he=Math.max(he,0),he=Math.min(he,ge),q=Ht(()=>{f(he,p)})}},K=()=>{S(!1),d()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Ht.cancel(q)}}},[$]),l.useEffect(()=>(k(),()=>{clearTimeout(W.current)}),[i]),l.useImperativeHandle(t,()=>({delayHidden:k}));const V=`${n}-scrollbar`,A={position:"absolute",visibility:P?null:"hidden"},j={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(A,{height:8,left:0,right:0,bottom:0}),Object.assign(j,{height:"100%",width:g,[T?"left":"right"]:L})):(Object.assign(A,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(j,{width:"100%",height:g,top:L})),l.createElement("div",{ref:N,className:Q(V,{[`${V}-horizontal`]:p,[`${V}-vertical`]:!p,[`${V}-visible`]:P}),style:{...A,...y},onMouseDown:H,onMouseMove:k},l.createElement("div",{ref:O,className:Q(`${V}-thumb`,{[`${V}-thumb-moving`]:$}),style:{...j,...C},onMouseDown:B}))}),mH=20;function o2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,mH),Math.floor(n)}const pH=[],gH={overflowY:"auto",overflowAnchor:"none"};function hH(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:C,component:b="div",onScroll:$,onVirtualScroll:S,onVisibleChange:w,innerProps:M,extraRender:x,styles:R,showScrollBar:T="optional",...N}=e,O=l.useCallback(He=>typeof g=="function"?g(He):He?.[g],[g]),[P,D,W,k]=sH(O),U=!!(h!==!1&&i&&s),G=l.useMemo(()=>Object.values(W.maps).reduce((He,Ae)=>He+Ae,0),[W.id,W.maps]),L=U&&f&&(Math.max(s*f.length,G)>i||!!C),H=y==="rtl",_=Q(n,{[`${n}-rtl`]:H},r),B=f||pH,I=l.useRef(),z=l.useRef(),V=l.useRef(),[A,j]=l.useState(0),[q,X]=l.useState(0),[K,Z]=l.useState(!1),ee=()=>{Z(!0)},ie=()=>{Z(!1)},ne={getKey:O};function oe(He){j(Ae=>{let We;typeof He=="function"?We=He(Ae):We=He;const Me=Ve(We);return I.current.scrollTop=Me,Me})}const de=l.useRef({start:0,end:B.length}),le=l.useRef(),[fe]=oH(B,O);le.current=fe;const{scrollHeight:ge,start:re,end:ue,offset:he}=l.useMemo(()=>{if(!U)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!L)return{scrollHeight:z.current?.offsetHeight||0,start:0,end:B.length-1,offset:void 0};let He=0,Ae,We,Me;const Ye=B.length;for(let Je=0;Je<Ye;Je+=1){const it=B[Je],ft=O(it),Ft=W.get(ft),Dt=He+(Ft===void 0?s:Ft);Dt>=A&&Ae===void 0&&(Ae=Je,We=He),Dt>A+i&&Me===void 0&&(Me=Je),He=Dt}return Ae===void 0&&(Ae=0,We=0,Me=Math.ceil(i/s)),Me===void 0&&(Me=B.length-1),Me=Math.min(Me+1,B.length-1),{scrollHeight:He,start:Ae,end:Me,offset:We}},[L,U,A,B,k,i]);de.current.start=re,de.current.end=ue,l.useLayoutEffect(()=>{const He=W.getRecord();if(He.size===1){const Ae=Array.from(He.keys())[0],We=He.get(Ae),Me=B[re];if(Me&&We===void 0&&O(Me)===Ae){const it=W.get(Ae)-s;oe(ft=>ft+it)}}W.resetRecord()},[ge]);const[pe,Se]=l.useState({width:0,height:i}),Ie=He=>{Se({width:He.offsetWidth,height:He.offsetHeight})},Re=l.useRef(),we=l.useRef(),se=l.useMemo(()=>o2(pe.width,C),[pe.width,C]),be=l.useMemo(()=>o2(pe.height,ge),[pe.height,ge]),Ee=ge-i,Ne=l.useRef(Ee);Ne.current=Ee;function Ve(He){let Ae=He;return Number.isNaN(Ne.current)||(Ae=Math.min(Ae,Ne.current)),Ae=Math.max(Ae,0),Ae}const Ge=A<=0,et=A>=Ee,Te=q<=0,_e=q>=C,Le=MO(Ge,et,Te,_e),Qe=()=>({x:H?-q:q,y:A}),De=l.useRef(Qe()),ve=ut(He=>{if(S){const Ae={...Qe(),...He};(De.current.x!==Ae.x||De.current.y!==Ae.y)&&(S(Ae),De.current=Ae)}});function Pe(He,Ae){const We=He;Ae?($s.flushSync(()=>{X(We)}),ve()):oe(We)}function Ze(He){const{scrollTop:Ae}=He.currentTarget;Ae!==A&&oe(Ae),$?.(He),ve()}const Ue=He=>{let Ae=He;const We=C?C-pe.width:0;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,We),Ae},Fe=ut((He,Ae)=>{Ae?($s.flushSync(()=>{X(We=>{const Me=We+(H?-He:He);return Ue(Me)})}),ve()):oe(We=>We+He)}),[ze,Xe]=aH(U,Ge,et,Te,_e,!!C,Fe);cH(U,I,(He,Ae,We,Me)=>{const Ye=Me;return Le(He,Ae,We)?!1:!Ye||!Ye._virtualHandled?(Ye&&(Ye._virtualHandled=!0),ze({preventDefault(){},deltaX:He?Ae:0,deltaY:He?0:Ae}),!0):!1}),uH(L,I,He=>{oe(Ae=>Ae+He)}),Nt(()=>{function He(We){const Me=Ge&&We.detail<0,Ye=et&&We.detail>0;U&&!Me&&!Ye&&We.preventDefault()}const Ae=I.current;return Ae.addEventListener("wheel",ze,{passive:!1}),Ae.addEventListener("DOMMouseScroll",Xe,{passive:!0}),Ae.addEventListener("MozMousePixelScroll",He,{passive:!1}),()=>{Ae.removeEventListener("wheel",ze),Ae.removeEventListener("DOMMouseScroll",Xe),Ae.removeEventListener("MozMousePixelScroll",He)}},[U,Ge,et]),Nt(()=>{if(C){const He=Ue(q);X(He),ve({x:He})}},[pe.width,C]);const rt=()=>{Re.current?.delayHidden(),we.current?.delayHidden()},ot=fH(I,B,W,s,O,()=>D(!0),oe,rt);l.useImperativeHandle(t,()=>({nativeElement:V.current,getScrollInfo:Qe,scrollTo:He=>{function Ae(We){return We&&typeof We=="object"&&("left"in We||"top"in We)}Ae(He)?(He.left!==void 0&&X(Ue(He.left)),ot(He.top)):ot(He)}})),Nt(()=>{if(w){const He=B.slice(re,ue+1);w(He,B)}},[re,ue,B]);const lt=iH(B,O,W,s),St=x?.({start:re,end:ue,virtual:L,offsetX:q,offsetY:he,rtl:H,getSize:lt}),Ct=nH(B,re,ue,C,q,P,p,ne);let qe=null;i&&(qe={[c?"height":"maxHeight"]:i,...gH},U&&(qe.overflowY="hidden",C&&(qe.overflowX="hidden"),K&&(qe.pointerEvents="none")));const at={};return H&&(at.dir="rtl"),l.createElement("div",Xn({ref:V,style:{...d,position:"relative"},className:_},at,N),l.createElement(Vr,{onResize:Ie},l.createElement(b,{className:`${n}-holder`,style:qe,ref:I,onScroll:Ze,onMouseEnter:rt},l.createElement(EO,{prefixCls:n,height:ge,offsetX:q,offsetY:he,scrollWidth:C,onInnerResize:D,ref:z,innerProps:M,rtl:H,extra:St},Ct))),L&&ge>i&&l.createElement(r2,{ref:Re,prefixCls:n,scrollOffset:A,scrollRange:ge,rtl:H,onScroll:Pe,onStartMove:ee,onStopMove:ie,spinSize:be,containerSize:pe.height,style:R?.verticalScrollBar,thumbStyle:R?.verticalScrollBarThumb,showScrollBar:T}),L&&C>pe.width&&l.createElement(r2,{ref:we,prefixCls:n,scrollOffset:q,scrollRange:C,rtl:H,onScroll:Pe,onStartMove:ee,onStopMove:ie,spinSize:se,containerSize:pe.width,horizontal:!0,style:R?.horizontalScrollBar,thumbStyle:R?.horizontalScrollBarThumb,showScrollBar:T}))}const RO=l.forwardRef(hH);RO.displayName="List";function yH(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}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 a2(e){return typeof e=="string"||typeof e=="number"}const bH=(e,t)=>{const{prefixCls:n,id:r,open:i,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:g,showScrollBar:h}=ll(),{maxCount:y,flattenOptions:C,onActiveValue:b,defaultActiveFirstOption:$,onSelect:S,menuItemSelectedIcon:w,rawValues:M,fieldNames:x,virtual:R,direction:T,listHeight:N,listItemHeight:O,optionRender:P,classNames:D,styles:W}=l.useContext(FS),k=`${n}-item`,U=rd(()=>C,[i,C],(ne,oe)=>oe[0]&&ne[1]!==oe[1]),G=l.useRef(null),L=l.useMemo(()=>s&&bv(y)&&M?.size>=y,[s,y,M?.size]),H=ne=>{ne.preventDefault()},_=ne=>{G.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},B=l.useCallback(ne=>c==="combobox"?!1:M.has(ne),[c,[...M].toString(),M.size]),I=(ne,oe=1)=>{const de=U.length;for(let le=0;le<de;le+=1){const fe=(ne+le*oe+de)%de,{group:ge,data:re}=U[fe]||{};if(!ge&&!re?.disabled&&(B(re.value)||!L))return fe}return-1},[z,V]=l.useState(()=>I(0)),A=(ne,oe=!1)=>{V(ne);const de={source:oe?"keyboard":"mouse"},le=U[ne];if(!le){b(null,-1,de);return}b(le.value,ne,de)};l.useEffect(()=>{A($!==!1?I(0):-1)},[U.length,d]);const j=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],de=U.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===oe);de!==-1&&(A(de),ne=setTimeout(()=>{_(de)}))}return i&&G.current?.scrollTo(void 0),()=>clearTimeout(ne)},[i,d]);const q=ne=>{ne!==void 0&&S(ne,{selected:!M.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:oe,ctrlKey:de}=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:yH()&&de&&(oe===nt.N?le=1:oe===nt.P&&(le=-1)),le!==0){const fe=I(z+le,le);_(fe),A(fe,!0)}break}case nt.TAB:case nt.ENTER:{const le=U[z];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)}})),U.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${k}-empty`,onMouseDown:H},p);const X=Object.keys(x).map(ne=>x[ne]),K=ne=>ne.label;function Z(ne,oe){const{group:de}=ne;return{role:de?"presentation":"option",id:`${r}_list_${oe}`}}const ee=ne=>{const oe=U[ne];if(!oe)return null;const de=oe.data||{},{value:le}=de,{group:fe}=oe,ge=jn(de,!0),re=K(oe);return oe?l.createElement("div",lu({"aria-label":typeof re=="string"&&!fe?re:null},ge,{key:ne},Z(oe,ne),{"aria-selected":j(le)}),le):null},ie={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,R&&l.createElement("div",lu({},ie,{style:{height:0,width:0,overflow:"hidden"}}),ee(z-1),ee(z),ee(z+1)),l.createElement(RO,{itemKey:"key",ref:G,data:U,height:N,itemHeight:O,fullHeight:!1,onMouseDown:H,onScroll:g,virtual:R,direction:T,innerProps:R?null:ie,showScrollBar:h,className:D?.popup?.list,style:W?.popup?.list},(ne,oe)=>{const{group:de,groupOption:le,data:fe,label:ge,value:re}=ne,{key:ue}=fe;if(de){const Le=fe.title??(a2(ge)?ge.toString():void 0);return l.createElement("div",{className:Q(k,`${k}-group`,fe.className),title:Le},ge!==void 0?ge:ue)}const{disabled:he,title:pe,children:Se,style:Ie,className:Re,...we}=fe,se=nn(we,X),be=B(re),Ee=he||!be&&L,Ne=`${k}-option`,Ve=Q(k,Ne,Re,D?.popup?.listItem,{[`${Ne}-grouped`]:le,[`${Ne}-active`]:z===oe&&!Ee,[`${Ne}-disabled`]:Ee,[`${Ne}-selected`]:be}),Ge=K(ne),et=!w||typeof w=="function"||be,Te=typeof Ge=="number"?Ge:Ge||re;let _e=a2(Te)?Te.toString():void 0;return pe!==void 0&&(_e=pe),l.createElement("div",lu({},jn(se),R?{}:Z(ne,oe),{"aria-selected":R?void 0:j(re),className:Ve,title:_e,onMouseMove:()=>{z===oe||Ee||A(oe)},onClick:()=>{Ee||q(re)},style:{...W?.popup?.listItem,...Ie}}),l.createElement("div",{className:`${Ne}-content`},typeof P=="function"?P(ne,{index:oe}):Te),l.isValidElement(w)||be,et&&l.createElement(wO,{className:`${k}-option-state`,customizeIcon:w,customizeIconProps:{value:re,disabled:Ee,isSelected:be}},be?"✓":null))}))},vH=l.forwardRef(bH),SH=((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 jy(e,t){return CO(e).join("").toUpperCase().includes(t)}const CH=((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:(C,b)=>i&&i.length?i.some($=>jy(b[$],g)):b[s]?jy(b[c!=="children"?c:"label"],g):jy(b[d],g),y=p?C=>vv(C):C=>C;return e.forEach(C=>{if(C[s]){if(h(n,y(C)))f.push(C);else{const $=C[s].filter(S=>h(n,y(S)));$.length&&f.push({...C,[s]:$})}return}h(n,y(C))&&f.push(C)}),f},[e,r,i,n,t]));function $H(e){const{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:n,...i}}function TO(e,t=!1){return dr(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?$H(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:TO(c)}}).filter(n=>n)}const xH=(e,t,n,r,i)=>l.useMemo(()=>{let s=e;!e&&(s=TO(t));const d=new Map,f=new Map,p=(h,y,C)=>{C&&typeof C=="string"&&h.set(y[C],y)},g=(h,y=!1)=>{for(let C=0;C<h.length;C+=1){const b=h[C];!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 i2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function wH(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 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 EH=["inputValue"];function MH(e){return!e||typeof e!="object"}const RH=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:C,onSelect:b,onDeselect:$,onActive:S,popupMatchSelectWidth:w=!0,optionLabelProp:M,options:x,optionRender:R,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:P,direction:D,listHeight:W=200,listItemHeight:k=20,labelRender:U,value:G,defaultValue:L,labelInValue:H,onChange:_,maxCount:B,classNames:I,styles:z,...V}=e,A={searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C},[j,q]=wH(d,A,r),{filterOption:X,searchValue:K,optionFilterProp:Z,filterSort:ee,onSearch:ie,autoClearSearchValue:ne=!0}=q,oe=l.useMemo(()=>Z?Array.isArray(Z)?Z:[Z]:[],[Z]),de=Ko(n),le=wv(r),fe=!!(!x&&T),ge=l.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),re=l.useMemo(()=>yO(c,fe),[JSON.stringify(c),fe]),[ue,he]=Yt("",K),pe=ue||"",Se=xH(x,T,re,oe,M),{valueOptions:Ie,labelOptions:Re,options:we}=Se,se=l.useCallback(Me=>CO(Me).map(Je=>{let it,ft,Ft,Dt;MH(Je)?it=Je:(ft=Je.label,it=Je.value);const $t=Ie.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,Ie]),[be,Ee]=Yt(L,G),Ne=l.useMemo(()=>{const Ye=se(le&&be===null?[]:be);return r==="combobox"&&H9(Ye[0]?.value)?[]:Ye},[be,se,r,le]),[Ve,Ge]=SH(Ne,Ie),et=l.useMemo(()=>{if(!r&&Ve.length===1){const Me=Ve[0];if(Me.value===null&&(Me.label===null||Me.label===void 0))return[]}return Ve.map(Me=>({...Me,label:(typeof U=="function"?U(Me):Me.label)??Me.value}))},[r,Ve,U]),Te=l.useMemo(()=>new Set(Ve.map(Me=>Me.value)),[Ve]);l.useEffect(()=>{if(r==="combobox"){const Me=Ve[0]?.value;he(_9(Me)?String(Me):"")}},[Ve]);const _e=i2((Me,Ye)=>{const Je=Ye??Me;return{[re.value]:Me,[re.label]:Je}}),Le=l.useMemo(()=>{if(r!=="tags")return we;const Me=[...we],Ye=Je=>Ie.has(Je);return[...Ve].sort((Je,it)=>Je.value<it.value?-1:1).forEach(Je=>{const it=Je.value;Ye(it)||Me.push(_e(it,Je.label))}),Me},[_e,we,Ie,Ve,r]),Qe=CH(Le,re,pe,ge,oe),De=l.useMemo(()=>{const Me=Ye=>oe.length?oe.some(Je=>Ye?.[Je]===pe):Ye?.value===pe;return r!=="tags"||!pe||Qe.some(Ye=>Me(Ye))||Qe.some(Ye=>Ye[re.value]===pe)?Qe:[_e(pe),...Qe]},[_e,oe,r,Qe,pe,re]),ve=Me=>[...Me].sort((Je,it)=>ee(Je,it,{searchValue:pe})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?ve(Je.options):Je.options}:Je),Pe=l.useMemo(()=>ee?ve(De):De,[De,ee,pe]),Ze=l.useMemo(()=>P9(Pe,{fieldNames:re,childrenAsData:fe}),[Pe,re,fe]),Ue=Me=>{const Ye=se(Me);if(Ee(Ye),_&&(Ye.length!==Ve.length||Ye.some((Je,it)=>Ve[it]?.value!==Je?.value))){const Je=H?Ye.map(({label:ft,value:Ft})=>({label:ft,value:Ft})):Ye.map(ft=>ft.value),it=Ye.map(ft=>vv(Ge(ft.value)));_(le?Je:Je[0],le?it:it[0])}},[Fe,ze]=l.useState(null),[Xe,rt]=l.useState(0),ot=N!==void 0?N:r!=="combobox",lt=l.useRef(),St=l.useCallback((Me,Ye,{source:Je="keyboard"}={})=>{rt(Ye),s&&r==="combobox"&&Me!==null&&Je==="keyboard"&&ze(String(Me));const it=Promise.resolve().then(()=>{lt.current===it&&S?.(Me)});lt.current=it},[s,r,S]),Ct=(Me,Ye,Je)=>{const it=()=>{const ft=Ge(Me);return[H?{label:ft?.[re.label],value:Me}:Me,vv(ft)]};if(Ye&&b){const[ft,Ft]=it();b(ft,Ft)}else if(!Ye&&$&&Je!=="clear"){const[ft,Ft]=it();$(ft,Ft)}},qe=i2((Me,Ye)=>{let Je;const it=le?Ye.selected:!0;it?Je=le?[...Ve,Me]:[Me]:Je=Ve.filter(ft=>ft.value!==Me),Ue(Je),Ct(Me,it),r==="combobox"?ze(""):(!wv||ne)&&(he(""),ze(""))}),at=(Me,Ye)=>{Ue(Me);const{type:Je,values:it}=Ye;(Je==="remove"||Je==="clear")&&it.forEach(ft=>{Ct(ft.value,!1,Je)})},He=(Me,Ye)=>{if(he(Me),ze(null),Ye.source==="submit"){const Je=(Me||"").trim();if(Je){const it=Array.from(new Set([...Te,Je]));Ue(it),Ct(Je,!0),he("")}return}Ye.source!=="blur"&&(r==="combobox"&&Ue(Me),ie?.(Me))},Ae=Me=>{let Ye=Me;r!=="tags"&&(Ye=Me.map(it=>Re.get(it)?.value).filter(it=>it!==void 0));const Je=Array.from(new Set([...Te,...Ye]));Ue(Je),Je.forEach(it=>{Ct(it,!0)})},We=l.useMemo(()=>({...Se,flattenOptions:Ze,onActiveValue:St,defaultActiveFirstOption:ot,onSelect:qe,menuItemSelectedIcon:O,rawValues:Te,fieldNames:re,virtual:P!==!1&&w!==!1,direction:D,listHeight:W,listItemHeight:k,childrenAsData:fe,maxCount:B,optionRender:R,classNames:I,styles:z}),[B,Se,Ze,St,ot,qe,O,Te,re,P,w,D,W,k,fe,R,I,z]);return l.createElement(FS.Provider,{value:We},l.createElement(eH,Mv({},V,{id:de,prefixCls:i,ref:t,omitDomProps:EH,mode:r,classNames:I,styles:z,displayValues:et,onDisplayValuesChange:at,maxCount:B,direction:D,showSearch:j,searchValue:pe,onSearch:He,autoClearSearchValue:ne,onSearchSplit:Ae,popupMatchSelectWidth:w,OptionList:vH,emptyOptions:!Ze.length,activeValue:Fe,activeDescendantId:`${de}_list_${Xe}`})))}),qS=RH;qS.Option=WS;qS.OptGroup=kS;const Ji=(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}),Ds=(e,t)=>t||e,TH=()=>{const[,e]=Wr(),[t]=oo("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"}))))},OH=()=>{const[,e]=Wr(),[t]=oo("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}))))},NH=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}}}}},IH=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 NH(i)}),OO=l.createElement(TH,null),NO=l.createElement(OH,null),ki=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:C,className:b,style:$,classNames:S,styles:w,image:M}=It("empty"),x=y("empty",r),[R,T]=IH(x),[N,O]=Lt([S,p],[w,g],{props:e}),[P]=oo("Empty"),D=typeof s<"u"?s:P?.description,W=typeof D=="string"?D:"empty",k=i??M??OO;let U=null;return typeof k=="string"?U=l.createElement("img",{draggable:!1,alt:W,src:k}):U=k,l.createElement("div",{className:Q(R,T,x,b,{[`${x}-normal`]:k===NO,[`${x}-rtl`]:C==="rtl"},t,n,N.root),style:{...O.root,...$,...f},...h},l.createElement("div",{className:Q(`${x}-image`,N.image),style:{...d,...O.image}},U),D&&l.createElement("div",{className:Q(`${x}-description`,N.description),style:O.description},D),c&&l.createElement("div",{className:Q(`${x}-footer`,N.footer),style:O.footer},c))};ki.PRESENTED_IMAGE_DEFAULT=OO;ki.PRESENTED_IMAGE_SIMPLE=NO;const IO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(ki,null)}},js=(e,t,n)=>{const{variant:r,[e]:i}=l.useContext(dt),s=l.useContext(z_),c=i?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=l8.includes(d);return[d,f]},PH=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 zH(e,t){return e||PH(t)}const l2=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"}},AH=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:Tp},[`
|
|
183
|
+
${i}${d}topLeft,
|
|
184
|
+
${s}${d}topLeft,
|
|
185
|
+
${i}${d}topRight,
|
|
186
|
+
${s}${d}topRight
|
|
187
|
+
`]:{animationName:Np},[`${c}${d}bottomLeft`]:{animationName:Op},[`
|
|
188
|
+
${c}${d}topLeft,
|
|
189
|
+
${c}${d}topRight
|
|
190
|
+
`]:{animationName:Ip},"&-hidden":{display:"none"},[r]:{...l2(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",...$o},"&-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":{...l2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down")]},DH=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"}}}}},s2=4,jH=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% - ${s2}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":{...$o,marginInlineEnd:s},"&-remove":{...Is(),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:s2,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"}}}}},_y=(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}}},kf=(e,t,n,r={},i={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[_y(e,n),{[`&${c}-status-error`]:_y(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:_y(e,{...n,color:i.color||e.colorWarning,...i})},s]}},_H=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`]:{...$o,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":{...$o,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",input:{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"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},jH(e),kf(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}),kf(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}),kf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),kf(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"}),DH(e)]}},HH=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:C,colorBgContainer:b,colorFillSecondary:$,colorBgContainerDisabled:S,colorTextDisabled:w,colorPrimaryHover:M,colorPrimary:x,controlOutline:R}=e,T=d*2,N=r*2,O=Math.min(i-T,i-N),P=Math.min(s-T,s-N),D=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:C,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:P,multipleItemHeightLG:D,multipleSelectorBgDisabled:S,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:M,activeBorderColor:x,activeOutlineColor:R,selectAffixPadding:d}},BH=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",...$o,[`> ${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()}}}}}},LH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},BH(e),AH(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(e,{focusElCls:`${t}-focused`})]},VH=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[LH(n),_H(n)]},HH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var FH={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 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})),sl=l.forwardRef(kH);var WH={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 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 qH=(e,t)=>l.createElement(gt,Tv({},e,{ref:t,icon:WH})),YH=l.forwardRef(qH);var UH={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 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 GH=(e,t)=>l.createElement(gt,Ov({},e,{ref:t,icon:UH})),PO=l.forwardRef(GH);function zO({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(zs,null),y=S=>e===null&&!c&&!p?null:l.createElement(l.Fragment,null,d!==!1&&S,c&&f);let C=null;e!==void 0?C=y(e):i?C=y(l.createElement(Ep,{spin:!0})):C=({open:S,showSearch:w})=>y(S&&w?l.createElement(PO,null):l.createElement(YH,null));let b=null;n!==void 0?b=n:s?b=l.createElement(sl,null):b=null;let $=null;return r!==void 0?$=r:$=l.createElement(qr,null),{clearIcon:h,suffixIcon:C,itemIcon:b,removeIcon:$}}function XH(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement(xa,{space:!0},e.apply(void 0,t))},[e])}function KH(e,t){return t!==void 0?t:e!==null}const AO="SECRET_COMBOBOX_MODE_DO_NOT_USE",QH=(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:C,notFoundContent:b,status:$,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:M,direction:x,style:R,allowClear:T,variant:N,popupStyle:O,dropdownStyle:P,transitionName:D,tagRender:W,maxCount:k,prefix:U,dropdownRender:G,popupRender:L,onDropdownVisibleChange:H,onOpenChange:_,styles:B,classNames:I,...z}=e,{getPopupContainer:V,getPrefixCls:A,renderEmpty:j,direction:q,virtual:X,popupMatchSelectWidth:K,popupOverflow:Z}=l.useContext(dt),{showSearch:ee,style:ie,styles:ne,className:oe,classNames:de}=It("select"),[,le]=Wr(),fe=h??le?.controlHeight,ge=A("select",n),re=A(),ue=x??q,{compactSize:he,compactItemClassnames:pe}=Ma(ge,ue),[Se,Ie]=js("select",N,r),Re=ar(ge),[we,se]=VH(ge,Re),be=l.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===AO?"combobox":Ye},[e.mode]),Ee=be==="multiple"||be==="tags",Ne=KH(e.suffixIcon,e.showArrow),Ve=M??w??K,Ge=XH(L||G),et=_||H,{status:Te,hasFeedback:_e,isFormItemInput:Le,feedbackIcon:Qe}=l.useContext(Tr),De=Ds(Te,$);let ve;b!==void 0?ve=b:be==="combobox"?ve=null:ve=j?.("Select")||l.createElement(IO,{componentName:"Select"});const{suffixIcon:Pe,itemIcon:Ze,removeIcon:Ue,clearIcon:Fe}=zO({...z,multiple:Ee,hasFeedback:_e,feedbackIcon:Qe,showSuffixIcon:Ne,componentName:"Select"}),ze=T===!0?{clearIcon:Fe}:T,Xe=nn(z,["suffixIcon","itemIcon"]),rt=fr(Ye=>y??he??Ye),ot=l.useContext(kr),lt=C??ot,St={...e,variant:Se,status:De,disabled:lt,size:rt},[Ct,qe]=Lt([de,I],[ne,B],{props:St},{popup:{_default:"root"}}),at=Q(Ct.popup?.root,d,f,{[`${ge}-dropdown-${ue}`]:ue==="rtl"},s,se,Re,we),He={...qe.popup?.root,...O??P},Ae=Q({[`${ge}-lg`]:rt==="large",[`${ge}-sm`]:rt==="small",[`${ge}-rtl`]:ue==="rtl",[`${ge}-${Se}`]:Ie,[`${ge}-in-form-item`]:Le},Ji(ge,De,_e),pe,oe,i,Ct.root,s,se,Re,we),We=l.useMemo(()=>g!==void 0?g:ue==="rtl"?"bottomRight":"bottomLeft",[g,ue]),[Me]=pi("SelectLike",qe.popup?.root?.zIndex??He?.zIndex);return l.createElement(qS,{ref:t,virtual:X,classNames:Ct,styles:qe,showSearch:ee,...Xe,style:{...qe.root,...ie,...R},popupMatchSelectWidth:Ve,transitionName:Go(re,"slide-up",D),builtinPlacements:zH(S,Z),listHeight:p,listItemHeight:fe,mode:be,prefixCls:ge,placement:We,direction:ue,prefix:U,suffixIcon:Pe,menuItemSelectedIcon:Ze,removeIcon:Ue,allowClear:ze,notFoundContent:ve,className:Ae,getPopupContainer:c||V,popupClassName:at,disabled:lt,popupStyle:{...qe.popup?.root,...He,zIndex:Me},maxCount:Ee?k:void 0,tagRender:Ee?W:void 0,popupRender:Ge,onPopupVisibleChange:et})},Lr=l.forwardRef(QH),ZH=zp(Lr,"popupAlign");Lr.SECRET_COMBOBOX_MODE_DO_NOT_USE=AO;Lr.Option=WS;Lr.OptGroup=kS;Lr._InternalPanelDoNotUseOrYouWillBeFired=ZH;const el=["xxl","xl","lg","md","sm","xs"],JH=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)`}),e7=e=>{const t=e,n=[].concat(el).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},t7=()=>{const[,e]=Wr(),t=JH(e7(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 Ap(e=!0,t={}){const n=l.useRef(t),[,r]=B5(),i=t7();return Nt(()=>{const s=i.subscribe(c=>{n.current=c,e&&r()});return()=>i.unsubscribe(s)},[]),n.current}const Rs=e=>e?typeof e=="function"?e():e:null,YS=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)},es={shiftX:64,adjustY:1},ts={adjustX:1,shiftY:!0},yo=[0,0],n7={left:{points:["cr","cl"],overflow:ts,offset:[-4,0],targetOffset:yo},right:{points:["cl","cr"],overflow:ts,offset:[4,0],targetOffset:yo},top:{points:["bc","tc"],overflow:es,offset:[0,-4],targetOffset:yo},bottom:{points:["tc","bc"],overflow:es,offset:[0,4],targetOffset:yo},topLeft:{points:["bl","tl"],overflow:es,offset:[0,-4],targetOffset:yo},leftTop:{points:["tr","tl"],overflow:ts,offset:[-4,0],targetOffset:yo},topRight:{points:["br","tr"],overflow:es,offset:[0,-4],targetOffset:yo},rightTop:{points:["tl","tr"],overflow:ts,offset:[4,0],targetOffset:yo},bottomRight:{points:["tr","br"],overflow:es,offset:[0,4],targetOffset:yo},rightBottom:{points:["bl","br"],overflow:ts,offset:[4,0],targetOffset:yo},bottomLeft:{points:["tl","bl"],overflow:es,offset:[0,4],targetOffset:yo},leftBottom:{points:["br","bl"],overflow:ts,offset:[-4,0],targetOffset:yo}};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 r7=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:C,getTooltipContainer:b,arrowContent:$,overlay:S,id:w,showArrow:M=!0,classNames:x,styles:R,...T}=e,N=Ko(w),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const D=l.useMemo(()=>{if(!M)return!1;const k=M===!0?{}:M;return{...k,className:Q(k.className,x?.arrow),style:{...k.style,...R?.arrow},content:k.content??$}},[M,x?.arrow,R?.arrow,$]),W=({open:k})=>{const U=l.Children.only(c),G={"aria-describedby":S&&k?N:void 0};return l.cloneElement(U,G)};return l.createElement(ud,Nv({popupClassName:x?.root,prefixCls:s,popup:l.createElement(YS,{key:"content",prefixCls:s,id:N,classNames:x,styles:R},S),action:n,builtinPlacements:n7,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:p,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:i,popupStyle:R?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:R?.uniqueContainer},P),W)});function Dp(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,C=2*i-d,b=f,$=2*i-s,S=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 ${C} ${b} A ${r} ${r} 0 0 0 ${$} ${S} Z')`;return{arrowShadowWidth:w,arrowPath:R,arrowPolygon:x}}const DO=(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"}}},jO=8;function jp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?jO:r}}function Wf(e,t){return e?t:{}}function US(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",...DO(e,t,i),"&:before":{background:t}}],...Wf(!!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}}}}),...Wf(!!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}}}}),...Wf(!!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}}),...Wf(!!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 o7(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 c2={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"]}},a7={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"]}},i7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _O(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},p=jp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(c2).forEach(g=>{const y={...r&&a7[g]||c2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,i7.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=o7(g,p,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const GS=(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])},l7=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:C}=e,b=t(c).add(C).add(y).equal(),S={minWidth:t(c).mul(2).add(C).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`]:[S,_T(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,jO)}},[`${n}-content`]:{position:"relative"},...$p(e,(M,{darkColor:x})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}})),"&-rtl":{direction:"rtl"}}},US(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...S,...w,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},s7=e=>({zIndexPopup:e.zIndexPopupBase+70,...jp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Dp(Ot(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),HO=(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[l7(f),md(i,"zoom-big-fast")]},s7,{resetStyle:!1,injectStyle:n})(e,t),c7=ui.map(e=>`${e}-inverse`),u7=["success","processing","error","default","warning"];function _p(e,t=!0){return t?[].concat(xn(c7),xn(ui)).includes(e):ui.includes(e)}function d7(e){return u7.includes(e)}function BO(e,t){const n=_p(t),r=Q({[`${e}-${t}`]:t&&n}),i={},s={},c=dj(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 f7=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=ar(g),[y,C]=HO(g,h),b=BO(g,s),$=b.arrowStyle,S=l.useMemo(()=>({container:{...c,...b.overlayStyle}}),[c,b.overlayStyle]),w={...e,placement:r},[M,x]=Lt([d],[S,f],{props:w}),R=Q(h,y,C,g,`${g}-pure`,`${g}-placement-${r}`,n,b.className);return l.createElement("div",{className:R,style:$},l.createElement("div",{className:`${g}-arrow`}),l.createElement(YS,{...e,className:y,prefixCls:g,classNames:M,styles:x},i))},m7=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:C,builtinPlacements:b,autoAdjustOverflow:$=!0,motion:S,getPopupContainer:w,placement:M="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:P,overlayInnerStyle:D,overlayStyle:W,overlayClassName:k,...U}=e,[,G]=Wr(),{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,arrow:A,trigger:j}=It("tooltip"),q=GS(f,A),X=q.show,K=C||j||"hover",Z=l.useRef(null),ee=()=>{Z.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:ee,nativeElement:Z.current?.nativeElement,popupElement:Z.current?.popupElement}));const[ie,ne]=Yt(e.defaultOpen??!1,e.open),oe=!h&&!y&&h!==0,de=Pe=>{ne(oe?!1:Pe),!oe&&P&&P(Pe)},le=l.useMemo(()=>b||_O({arrowPointAtCenter:q?.pointAtCenter??!1,autoAdjustOverflow:$,arrowWidth:X?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[q,b,G,X,$]),fe=l.useMemo(()=>h===0?h:y||h||"",[y,h]),ge=l.createElement(xa,{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},[ue,he]=Lt([z,O],[V,N],{props:re}),pe=H("tooltip",n),Se=H(),Ie=e["data-popover-inject"];let Re=ie;!("open"in e)&&oe&&(Re=!1);const we=l.isValidElement(c)&&!cT(c)?c:l.createElement("span",null,c),se=we.props,be=!se.className||typeof se.className=="string"?Q(se.className,r||`${pe}-open`):se.className,Ee=ar(pe),[Ne,Ve]=HO(pe,Ee,!Ie),Ge=BO(pe,s),et=Ge.arrowStyle,Te=Q(Ee,Ne,Ve),_e=Q(k,{[`${pe}-rtl`]:_==="rtl"},Ge.className,T,Te,B,ue.root),[Le,Qe]=pi("Tooltip",U.zIndex),De={...he.container,...D,...Ge.overlayStyle},ve=l.createElement(r7,{unique:!0,...U,trigger:K,zIndex:Le,showArrow:X,placement:M,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:pe,classNames:{root:_e,container:ue.container,arrow:ue.arrow,uniqueContainer:Q(Te,ue.container)},styles:{root:{...et,...he.root,...I,...W},container:De,uniqueContainer:De,arrow:he.arrow},getTooltipContainer:w||i||L,ref:Z,builtinPlacements:le,overlay:ge,visible:Re,onVisibleChange:de,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:Go(Se,"zoom-big-fast",typeof S?.motionName=="string"?S?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!p},Re?nr(we,{className:be}):we);return l.createElement(ld.Provider,{value:Qe},ve)}),ur=m7;ur._InternalPanelDoNotUseOrYouWillBeFired=f7;ur.UniqueProvider=vT;const p7=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:C,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:C,padding:$},[`${t}-content`]:{color:n,padding:b}}},US(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},g7=e=>{const{componentCls:t}=e;return{[t]:ui.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},h7=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,C=y/2,b=y/2-t,$=i;return{titleMinWidth:177,zIndexPopup:c+30,...Dp(e),...jp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${C}px ${$}px ${b}px`:0,titleBorderBottom:s?`${t}px ${p} ${g}`:"none",innerContentPadding:s?`${h}px ${$}px`:0}},LO=Pt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ot(e,{popoverBg:t,popoverColor:n});return[p7(r),g7(r),md(r,"zoom-big")]},h7,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),VO=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))},y7=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=Rs(c),y=Rs(d),C={...e,placement:s},[b,$]=Lt([p],[g],{props:C}),S=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:S,style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(YS,{...e,className:t,prefixCls:n,classNames:b,styles:$},f||l.createElement(VO,{prefixCls:n,title:h,content:y,classNames:b,styles:$})))},FO=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=l.useContext(dt),s=i("popover",t),[c,d]=LO(s);return l.createElement(y7,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},b7=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:C,classNames:b,motion:$,arrow:S,...w}=e,{getPrefixCls:M,className:x,style:R,classNames:T,styles:N,arrow:O,trigger:P}=It("popover"),D=M("popover",n),[W,k]=LO(D),U=M(),G=GS(S,O),L=d||P||"hover",H={...e,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:C,classNames:b},[_,B]=Lt([T,b],[N,C],{props:H}),I=Q(s,W,k,x,_.root),[z,V]=Yt(e.defaultOpen??!1,e.open),A=(Z,ee)=>{V(Z),h?.(Z,ee)},j=Z=>{Z.keyCode===nt.ESC&&A(!1,Z)},q=Z=>{A(Z)},X=Rs(r),K=Rs(i);return l.createElement(ur,{unique:!1,arrow:G,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,...w,prefixCls:D,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...B.root,...R,...y},container:B.container,arrow:B.arrow},ref:t,open:z,onOpenChange:q,overlay:X||K?l.createElement(VO,{prefixCls:D,title:X,content:K,classNames:_,styles:B}):null,motion:{motionName:Go(U,"zoom-big",typeof $?.motionName=="string"?$?.motionName:void 0)},"data-popover-inject":!0},nr(f,{onKeyDown:Z=>{l.isValidElement(f)&&f?.props.onKeyDown?.(Z),j(Z)}}))}),kO=b7;kO._InternalPanelDoNotUseOrYouWillBeFired=FO;const u2=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 v7(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const S7=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 C=setTimeout(g,1e3);return()=>clearTimeout(C)},[i]);let h,y;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(u2,{...e,key:i,current:!0})],y={transition:"none"};else{h=[];const C=i+10,b=[];for(let M=i;M<=C;M+=1)b.push(M);const $=f<s?1:-1,S=b.findIndex(M=>M%10===c);h=($<0?b.slice(0,S+1):b.slice(S)).map((M,x)=>{const R=M%10;return l.createElement(u2,{...e,key:M,value:R,offset:$<0?x-S:x,current:x===S})}),y={transform:`translateY(${-v7(c,i,$)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},C7=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),C=y("scroll-number",n),b={...h,"data-show":f,style:c,className:Q(C,i,s),title:d};let $=r;if(r&&Number(r)%1===0){const S=String(r).split("");$=l.createElement("bdi",null,S.map((w,M)=>l.createElement(S7,{prefixCls:C,count:Number(r),value:w,key:S.length-M})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?nr(g,S=>({className:Q(`${C}-custom-component`,S?.className,s)})):l.createElement(p,{...b,ref:t},$)}),$7=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),x7=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),w7=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),E7=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),M7=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),R7=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),T7=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:C}=e,b=`${r}-scroll-number`,$=$p(e,(S,{darkColor:w})=>({[`&${t} ${t}-color-${S}`]:{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:C(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:C(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:R7,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:$7,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:x7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:w7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:E7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:M7,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%)"}}}}},WO=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%)"})},qO=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}},O7=Pt("Badge",e=>{const t=WO(e);return T7(t)},qO),N7=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:C,style:b,className:$,rootClassName:S,classNames:w,styles:M,showZero:x=!1,...R}=e,{getPrefixCls:T,direction:N,className:O,style:P,classNames:D,styles:W}=It("badge"),k=T("badge",n),[U,G]=O7(k),L={...e,overflowCount:p,size:h,dot:g,showZero:x},[H,_]=Lt([D,w],[W,M],{props:L}),B=f>p?`${p}+`:f,I=B==="0"||B===0||c==="0"||c===0,z=f===null||I&&!x,V=(Mr(s)||Mr(d))&&z,A=Mr(s)||!I,j=g&&!I,q=j?"":B,X=l.useMemo(()=>((!Mr(q)||q==="")&&(!Mr(c)||c==="")||I&&!x)&&!j,[q,I,x,j,c]),K=l.useRef(f);X||(K.current=f);const Z=K.current,ee=l.useRef(q);X||(ee.current=q);const ie=ee.current,ne=l.useRef(j);X||(ne.current=j);const oe=l.useMemo(()=>{if(!C)return{...P,...b};const Se=Number.parseInt(C[0],10);return{...{marginTop:C[1],insetInlineEnd:-Se},...P,...b}},[C,b,P]),de=y??(typeof Z=="string"||typeof Z=="number"?Z:void 0),le=!X&&(c===0?x:!!c&&c!==!0),fe=le?l.createElement("span",{className:`${k}-status-text`},c):null,ge=!Z||typeof Z!="object"?void 0:nr(Z,Se=>({style:{...oe,...Se.style}})),re=_p(d,!1),ue=Q(H.indicator,{[`${k}-status-dot`]:V,[`${k}-status-${s}`]:!!s,[`${k}-color-${d}`]:re}),he={};d&&!re&&(he.color=d,he.background=d);const pe=Q(k,{[`${k}-status`]:V,[`${k}-not-a-wrapper`]:!i,[`${k}-rtl`]:N==="rtl"},$,S,O,H.root,U,G);if(!i&&V&&(c||A||!z)){const Se=oe.color;return l.createElement("span",{...R,className:pe,style:{..._.root,...oe}},l.createElement("span",{className:ue,style:{..._.indicator,...he}}),le&&l.createElement("span",{style:{color:Se},className:`${k}-status-text`},c))}return l.createElement("span",{ref:t,...R,className:pe,style:_.root},i,l.createElement(Sr,{visible:!X,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Se})=>{const Ie=T("scroll-number",r),Re=ne.current,we=Q(H.indicator,{[`${k}-dot`]:Re,[`${k}-count`]:!Re,[`${k}-count-sm`]:h==="small",[`${k}-multiple-words`]:!Re&&ie&&ie.toString().length>1,[`${k}-status-${s}`]:!!s,[`${k}-color-${d}`]:re});let se={..._.indicator,...oe};return d&&!re&&(se=se||{},se.background=d),l.createElement(C7,{prefixCls:Ie,show:!X,motionClassName:Se,className:we,count:ie,title:de,style:se,key:"scrollNumber"},ge)}),fe)}),I7=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=$p(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"}}}},P7=Pt(["Badge","Ribbon"],e=>{const t=WO(e);return I7(t)},qO),z7=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:C,style:b,classNames:$,styles:S}=It("ribbon"),w=h("ribbon",n),M=`${w}-wrapper`,[x,R]=P7(w,M),T={...e,placement:d},[N,O]=Lt([$,g],[S,p],{props:T}),P=_p(i,!1),D=Q(w,`${w}-placement-${d}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${i}`]:P},t,C,N.indicator),W={},k={};return i&&!P&&(W.background=i,k.color=i),l.createElement("div",{className:Q(M,f,x,R,N.root),style:O.root},s,l.createElement("div",{className:Q(D,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:k})))},di=N7;di.Ribbon=z7;var A7={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 Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(this,arguments)}const D7=(e,t)=>l.createElement(gt,Iv({},e,{ref:t,icon:A7})),Eu=l.forwardRef(D7),{ESC:j7,TAB:_7}=nt;function H7({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 j7:c();break;case _7:{let g=!1;s.current||(g=d()),g?p.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Ht(d,3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const B7=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=or(t,ol(s));return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:`${i}-arrow`}),ae.cloneElement(s,{ref:rl(s)?c:void 0}))}),ns={adjustX:1,adjustY:1},rs=[0,0],L7={topLeft:{points:["bl","tl"],overflow:ns,offset:[0,-4],targetOffset:rs},top:{points:["bc","tc"],overflow:ns,offset:[0,-4],targetOffset:rs},topRight:{points:["br","tr"],overflow:ns,offset:[0,-4],targetOffset:rs},bottomLeft:{points:["tl","bl"],overflow:ns,offset:[0,4],targetOffset:rs},bottom:{points:["tc","bc"],overflow:ns,offset:[0,4],targetOffset:rs},bottomRight:{points:["tr","br"],overflow:ns,offset:[0,4],targetOffset:rs}};function Pv(){return Pv=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},Pv.apply(this,arguments)}const YO=ae.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:s,align:c,placement:d="bottomLeft",placements:f=L7,getPopupContainer:p,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:C,visible:b,trigger:$=["hover"],autoFocus:S,overlay:w,children:M,onVisibleChange:x,...R}=e,[T,N]=ae.useState(),O="visible"in e?b:T,P=s?`${r}-${s}`:i,D=ae.useRef(null),W=ae.useRef(null),k=ae.useRef(null);ae.useImperativeHandle(t,()=>D.current);const U=V=>{N(V),x?.(V)};H7({visible:O,triggerRef:k,onVisibleChange:U,autoFocus:S,overlayRef:W});const G=V=>{const{onOverlayClick:A}=e;N(!1),A&&A(V)},L=()=>ae.createElement(B7,{ref:W,overlay:w,prefixCls:r,arrow:n}),H=()=>typeof w=="function"?L:L(),_=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?V:!A},B=()=>{const{openClassName:V}=e;return V!==void 0?V:`${r}-open`},I=ae.cloneElement(M,{className:Q(M.props?.className,O&&B()),ref:rl(M)?or(k,ol(M)):void 0});let z=h;return!z&&$.indexOf("contextMenu")!==-1&&(z=["click"]),ae.createElement(ud,Pv({builtinPlacements:f},R,{prefixCls:r,ref:D,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:C,action:$,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupMotion:{motionName:P},popupVisible:O,stretch:_()?"minWidth":"",popup:H(),onOpenChange:U,onPopupClick:G,getPopupContainer:p}),I)}),V7=e=>typeof e!="object"&&typeof e!="function"||e===null,UO=l.createContext(null);function GO(e,t){return`${e}-${t}`}function XO(e){const t=l.useContext(UO);return GO(t,e)}const Do=l.createContext(null);function F7(e,t){const n={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function Mu({children:e,locked:t,...n}){const r=l.useContext(Do),i=rd(()=>F7(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!hu(s[1],c[1],!0)));return l.createElement(Do.Provider,{value:i},e)}const k7=[],KO=l.createContext(null);function Hp(){return l.useContext(KO)}const QO=l.createContext(k7);function _s(e){const t=l.useContext(QO);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const ZO=l.createContext(null),XS=l.createContext({});function d2(e,t=!1){if(wp(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 W7(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>d2(r,t));return d2(e,t)&&n.unshift(e),n}function JO(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:zv,RIGHT:Av,UP:Dv,DOWN:Cm,ENTER:$m,ESC:e6,HOME:jc,END:_c}=nt,f2=[Dv,Cm,zv,Av];function q7(e,t,n,r){const i="prev",s="next",c="children",d="parent";if(e==="inline"&&r===$m)return{inlineTrigger:!0};const f={[Dv]:i,[Cm]:s},p={[zv]:n?s:i,[Av]:n?i:s,[Cm]:c,[$m]:c},g={[Dv]:i,[Cm]:s,[$m]:c,[e6]:d,[zv]:n?c:d,[Av]: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 Y7(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function U7(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function KS(e,t){return W7(e,!0).filter(r=>t.has(r))}function m2(e,t,n,r=1){if(!e)return null;const i=KS(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 Km=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${GO(t,s)}']`);c&&(n.add(c),i.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:i}};function G7(e,t,n,r,i,s,c,d,f,p){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Ht.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),C=>{const{which:b}=C;if([...f2,$m,e6,jc,_c].includes(b)){const $=s();let S=Km($,r);const{elements:w,key2element:M,element2key:x}=S,R=M.get(t),T=U7(R,w),N=x.get(T),O=q7(e,c(N,!0).length===1,n,b);if(!O&&b!==jc&&b!==_c)return;(f2.includes(b)||[jc,_c].includes(b))&&C.preventDefault();const P=D=>{if(D){let W=D;const k=D.querySelector("a");k?.getAttribute("href")&&(W=k);const U=x.get(D);d(U),y(),g.current=Ht(()=>{h.current===U&&W.focus()})}};if([jc,_c].includes(b)||O.sibling||!T){let D;!T||e==="inline"?D=i.current:D=Y7(T);let W;const k=KS(D,w);b===jc?W=k[0]:b===_c?W=k[k.length-1]:W=m2(D,w,T,O.offset),P(W)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=Ht(()=>{S=Km($,r);const D=T.getAttribute("aria-controls"),W=document.getElementById(D),k=m2(W,S.elements);P(k)},5);else if(O.offset<0){const D=c(N,!0),W=D[D.length-2],k=M.get(W);f(W,!1),P(k)}}p?.(C)}}function X7(e){Promise.resolve().then(e)}const QS="__RC_UTIL_PATH_SPLIT__",p2=e=>e.join(QS),K7=e=>e.split(QS),jv="rc-menu-more";function Q7(){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(($,S)=>{const w=p2(S);n.current.set(w,$),t.current.set($,w),s.current+=1;const M=s.current;X7(()=>{M===s.current&&d()})},[]),p=l.useCallback(($,S)=>{const w=p2(S);n.current.delete(w),t.current.delete($)},[]),g=l.useCallback($=>{i($)},[]),h=l.useCallback(($,S)=>{const w=t.current.get($)||"",M=K7(w);return S&&r.includes(M[0])&&M.unshift(jv),M},[r]),y=l.useCallback(($,S)=>$.filter(w=>w!==void 0).some(w=>h(w,!0).includes(S)),[h]),C=()=>{const $=[...t.current.keys()];return r.length&&$.push(jv),$},b=l.useCallback($=>{const S=`${t.current.get($)}${QS}`,w=new Set;return[...n.current.keys()].forEach(M=>{M.startsWith(S)&&w.add(n.current.get(M))}),w},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:C,getSubPathKeys:b}}function Qc(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function t6(e,t,n,r){const{activeKey:i,onActive:s,onInactive:c}=l.useContext(Do),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 n6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(Do);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function r6({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 Qm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(tr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}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)}class Z7 extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...i}=this.props,s=nn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return tr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Yo.Item,Ru({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const J7=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:C,onFocus:b,...$}=e,S=XO(i),{prefixCls:w,onItemClick:M,disabled:x,overflowDisabled:R,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(Do),{_internalRenderMenuItem:P}=l.useContext(XS),D=`${w}-item`,W=l.useRef(),k=l.useRef(),U=x||c,G=mi(t,k),L=_s(i),H=Z=>({key:i,keyPath:[...L].reverse(),item:W.current,domEvent:Z}),_=d||T,{active:B,...I}=t6(i,U,g,h),z=N.includes(i),V=n6(L.length),A=Z=>{if(U)return;const ee=H(Z);y?.(Qm(ee)),M(ee)},j=Z=>{if(C?.(Z),Z.which===nt.ENTER){const ee=H(Z);y?.(Qm(ee)),M(ee)}},q=Z=>{O(i),b?.(Z)},X={};e.role==="option"&&(X["aria-selected"]=z);let K=l.createElement(Z7,Ru({ref:W,elementRef:G,role:p===null?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&S?null:S},nn($,["extra"]),I,X,{component:"li","aria-disabled":c,style:{...V,...n},className:Q(D,{[`${D}-active`]:B,[`${D}-selected`]:z,[`${D}-disabled`]:U},r),onClick:A,onKeyDown:j,onFocus:q}),f,l.createElement(r6,{props:{...e,isSelected:z},icon:_}));return P&&(K=P(K,e,{selected:z})),K});function eB(e,t){const{eventKey:n}=e,r=Hp(),i=_s(n);return l.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:l.createElement(J7,Ru({},e,{ref:t}))}const Cd=l.forwardRef(eB);function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(this,arguments)}const tB=({className:e,children:t,...n},r)=>{const{prefixCls:i,mode:s,rtl:c}=l.useContext(Do);return l.createElement("ul",_v({className:Q(i,c&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},o6=l.forwardRef(tB);function ZS(e,t){return dr(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 Er={adjustX:1,adjustY:1},nB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},leftTop:{points:["tr","tl"],overflow:Er},leftBottom:{points:["br","bl"],overflow:Er},rightTop:{points:["tl","tr"],overflow:Er},rightBottom:{points:["bl","br"],overflow:Er}},rB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},rightTop:{points:["tr","tl"],overflow:Er},rightBottom:{points:["br","bl"],overflow:Er},leftTop:{points:["tl","tr"],overflow:Er},leftBottom:{points:["bl","br"],overflow:Er}};function a6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const oB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aB({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:C,builtinPlacements:b,triggerSubMenuAction:$,forceSubMenuRender:S,rootClassName:w,motion:M,defaultMotions:x}=l.useContext(Do),[R,T]=l.useState(!1),N=h?{...rB,...b}:{...nB,...b},O=oB[f],P=a6(f,M,x),D=l.useRef(P);f!=="inline"&&(D.current=P);const W={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},k=l.useRef();return l.useEffect(()=>(k.current=Ht(()=>{T(t)}),()=>{Ht.cancel(k.current)}),[t]),l.createElement(ud,{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:C,onPopupVisibleChange:p,forceRender:S,popupMotion:W,fresh:!0},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)}function iB({id:e,open:t,keyPath:n,children:r}){const i="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:p}=l.useContext(Do),g=l.useRef(!1);g.current=p===i;const[h,y]=l.useState(!g.current),C=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[p]);const b={...a6(i,d,f)};n.length>1&&(b.motionAppear=!1);const $=b.onVisibleChanged;return b.onVisibleChanged=S=>(!g.current&&!S&&y(!0),$?.(S)),h?null:l.createElement(Mu,{mode:i,locked:!g.current},l.createElement(Sr,Hv({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:S,style:w})=>l.createElement(o6,{id:e,className:S,style:w},r)))}function Tu(){return Tu=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},Tu.apply(this,arguments)}const lB=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:C,popupClassName:b,popupOffset:$,popupStyle:S,onClick:w,onMouseEnter:M,onMouseLeave:x,onTitleClick:R,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...P}=e,D=XO(d),{prefixCls:W,mode:k,openKeys:U,disabled:G,overflowDisabled:L,activeKey:H,selectedKeys:_,itemIcon:B,expandIcon:I,onItemClick:z,onOpenChange:V,onActive:A,popupRender:j}=l.useContext(Do),{_internalRenderSubMenuItem:q}=l.useContext(XS),{isSubPathKey:X}=l.useContext(ZO),K=_s(),Z=`${W}-submenu`,ee=G||p,ie=l.useRef(),ne=l.useRef(),oe=y??B,de=C??I,le=U.includes(d),fe=!L&&le,ge=X(_,d),{active:re,...ue}=t6(d,ee,T,N),[he,pe]=l.useState(!1),Se=ve=>{ee||pe(ve)},Ie=ve=>{Se(!0),M?.({key:d,domEvent:ve})},Re=ve=>{Se(!1),x?.({key:d,domEvent:ve})},we=l.useMemo(()=>re||(k!=="inline"?he||X([H],d):!1),[k,re,H,he,d,X]),se=n6(K.length),be=ve=>{ee||(R?.({key:d,domEvent:ve}),k==="inline"&&V(d,!le))},Ee=Qc(ve=>{w?.(Qm(ve)),z(ve)}),Ne=ve=>{k!=="inline"&&V(d,ve)},Ve=()=>{A(d)},Ge=D&&`${D}-popup`,et=l.useMemo(()=>l.createElement(r6,{icon:k!=="horizontal"?de:void 0,props:{...e,isOpen:fe,isSubMenu:!0}},l.createElement("i",{className:`${Z}-arrow`})),[k,de,e,fe,Z]);let Te=l.createElement("div",Tu({role:"menuitem",style:se,className:`${Z}-title`,tabIndex:ee?null:-1,ref:ie,title:typeof c=="string"?c:null,"data-menu-id":L&&D?null:D,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":ee,onClick:be,onFocus:Ve},ue),c,et);const _e=l.useRef(k);k!=="inline"&&K.length>1?_e.current="vertical":_e.current=k;const Le=_e.current,Qe=l.useMemo(()=>{const ve=l.createElement(Mu,{classNames:s,styles:i,mode:Le==="horizontal"?"vertical":Le},l.createElement(o6,{id:Ge,ref:ne},h)),Pe=O||j;return Pe?Pe(ve,{item:e,keys:K}):ve},[O,j,K,Ge,h,e,Le]);if(!L){const ve=_e.current;Te=l.createElement(aB,{mode:ve,prefixCls:Z,visible:!g&&fe&&k!=="inline",popupClassName:b,popupOffset:$,popupStyle:S,popup:Qe,disabled:ee,onVisibleChange:Ne},Te)}let De=l.createElement(Yo.Item,Tu({ref:t,role:"none"},P,{component:"li",style:n,className:Q(Z,`${Z}-${k}`,r,{[`${Z}-open`]:fe,[`${Z}-active`]:we,[`${Z}-selected`]:ge,[`${Z}-disabled`]:ee}),onMouseEnter:Ie,onMouseLeave:Re}),Te,!L&&l.createElement(iB,{id:Ge,open:fe,keyPath:K},h));return q&&(De=q(De,e,{selected:ge,active:we,open:fe,disabled:ee})),l.createElement(Mu,{classNames:s,styles:i,onItemClick:Ee,mode:k==="horizontal"?"vertical":k,itemIcon:oe,expandIcon:de},De)}),Bp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=ZS(r,i),c=Hp();l.useEffect(()=>{if(c)return c.registerPath(n,i),()=>{c.unregisterPath(n,i)}},[i]);let d;return c?d=s:d=l.createElement(lB,Tu({ref:t},e),s),l.createElement(QO.Provider,{value:i},d)});function JS({className:e,style:t}){const{prefixCls:n}=l.useContext(Do);return Hp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}function Zm(){return Zm=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},Zm.apply(this,arguments)}const sB=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:i,children:s,...c}=e,{prefixCls:d,classNames:f,styles:p}=l.useContext(Do),g=`${d}-item-group`;return l.createElement("li",Zm({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))}),e1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=ZS(r,i);return Hp()?s:l.createElement(sB,Zm({ref:t},nn(e,["warnKey"])),s)});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)}function Bv(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:C,...b}=d,$=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(i,fs({key:$},b,{title:p}),Bv(g,t,n)):l.createElement(s,fs({key:$},b,{title:p}),Bv(g,t,n)):y==="divider"?l.createElement(c,fs({key:$},b)):l.createElement(r,fs({key:$},b,{extra:C}),p,(!!C||C===0)&&l.createElement("span",{className:`${n}-item-extra`},C))}return null}).filter(d=>d)}function g2(e,t,n,r,i){let s=e;const c={divider:JS,item:Cd,group:e1,submenu:Bp,...r};return t&&(s=Bv(t,c,i)),ZS(s,n)}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 Ai=[],cB=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:C="vertical",inlineCollapsed:b,disabled:$,disabledOverflow:S,subMenuOpenDelay:w=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:x,defaultOpenKeys:R,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:P=!0,multiple:D=!1,defaultSelectedKeys:W,selectedKeys:k,onSelect:U,onDeselect:G,inlineIndent:L=24,motion:H,defaultMotions:_,triggerSubMenuAction:B="hover",builtinPlacements:I,itemIcon:z,expandIcon:V,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:j,getPopupContainer:q,onClick:X,onOpenChange:K,onKeyDown:Z,openAnimation:ee,openTransitionName:ie,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe,_internalComponents:de,popupRender:le,...fe}=e,[ge,re]=l.useMemo(()=>[g2(g,p,Ai,de,n),g2(g,p,Ai,{},n)],[g,p,de]),[ue,he]=l.useState(!1),pe=l.useRef(),Se=Ko(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ie=h==="rtl",[Re,we]=Yt(R,T),se=Re||Ai,be=(Ke,Et=!1)=>{function mt(){we(Ke),K?.(Ke)}Et?$s.flushSync(mt):mt()},[Ee,Ne]=l.useState(se),Ve=l.useRef(!1),[Ge,et]=l.useMemo(()=>(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1],[C,b]),Te=Ge==="inline",[_e,Le]=l.useState(Ge),[Qe,De]=l.useState(et);l.useEffect(()=>{Le(Ge),De(et),Ve.current&&(Te?we(Ee):be(Ai))},[Ge,et]);const[ve,Pe]=l.useState(0),Ze=ve>=ge.length-1||_e!=="horizontal"||S;l.useEffect(()=>{Te&&Ne(se)},[se]),l.useEffect(()=>(Ve.current=!0,()=>{Ve.current=!1}),[]);const{registerPath:Ue,unregisterPath:Fe,refreshOverflowKeys:ze,isSubPathKey:Xe,getKeyPath:rt,getKeys:ot,getSubPathKeys:lt}=Q7(),St=l.useMemo(()=>({registerPath:Ue,unregisterPath:Fe}),[Ue,Fe]),Ct=l.useMemo(()=>({isSubPathKey:Xe}),[Xe]);l.useEffect(()=>{ze(Ze?Ai:ge.slice(ve+1).map(Ke=>Ke.key))},[ve,Ze]);const[qe,at]=Yt(N||O&&ge[0]?.key,N),He=Qc(Ke=>{at(Ke)}),Ae=Qc(()=>{at(void 0)});l.useImperativeHandle(t,()=>({list:pe.current,focus:Ke=>{const Et=ot(),{elements:mt,key2element:Rt,element2key:Ut}=Km(Et,Se),an=KS(pe.current,mt);let kt;qe&&Et.includes(qe)?kt=qe: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}=Km(Et,Se);return mt.get(Ke)||null}}));const[We,Me]=Yt(W||[],k),Ye=l.useMemo(()=>Array.isArray(We)?We:We==null?Ai:[We],[We]),Je=Ke=>{if(P){const{key:Et}=Ke,mt=Ye.includes(Et);let Rt;D?mt?Rt=Ye.filter(an=>an!==Et):Rt=[...Ye,Et]:Rt=[Et],Me(Rt);const Ut={...Ke,selectedKeys:Rt};mt?G?.(Ut):U?.(Ut)}!D&&se.length&&_e!=="inline"&&be(Ai)},it=Qc(Ke=>{X?.(Qm(Ke)),Je(Ke)}),ft=Qc((Ke,Et)=>{let mt=se.filter(Rt=>Rt!==Ke);if(Et)mt.push(Ke);else if(_e!=="inline"){const Rt=lt(Ke);mt=mt.filter(Ut=>!Rt.has(Ut))}hu(se,mt,!0)||be(mt,!0)}),Dt=G7(_e,qe,Ie,Se,pe,ot,rt,at,(Ke,Et)=>{const mt=Et??!se.includes(Ke);ft(Ke,mt)},Z);l.useEffect(()=>{he(!0)},[]);const $t=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe}),[ne,oe]),tn=_e!=="horizontal"||S?ge:ge.map((Ke,Et)=>l.createElement(Mu,{key:Ke.key,overflowDisabled:Et>ve,classNames:d,styles:c},Ke)),wt=l.createElement(Yo,Lv({id:y,ref:pe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Cd,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:Ie},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(Bp,{eventKey:jv,title:A,disabled:Ze,internalPopupClose:Et===0,popupClassName:j},mt)},maxCount:_e!=="horizontal"||S?Yo.INVALIDATE:Yo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ke=>{Pe(Ke)},onKeyDown:Dt},fe));return l.createElement(XS.Provider,{value:$t},l.createElement(UO.Provider,{value:Se},l.createElement(Mu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:se,rtl:Ie,disabled:$,motion:ue?H:null,defaultMotions:ue?_:null,activeKey:qe,onActive:He,onInactive:Ae,selectedKeys:Ye,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:M,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:B,getPopupContainer:q,itemIcon:z,expandIcon:V,onItemClick:it,onOpenChange:ft,popupRender:le},l.createElement(ZO.Provider,{value:Ct},wt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(KO.Provider,{value:St},re)))))}),Hs=cB;Hs.Item=Cd;Hs.SubMenu=Bp;Hs.ItemGroup=e1;Hs.Divider=JS;var uB={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 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 dB=(e,t)=>l.createElement(gt,Vv({},e,{ref:t,icon:uB})),fB=l.forwardRef(dB),i6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),mB=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}}},l6=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}},s6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],c6=Pt("Layout",mB,l6,{deprecatedTokens:s6}),pB=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:C,lightTriggerColor:b,lightTriggerBg:$,bodyBg:S}=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:C,[`${t}-trigger`]:{color:b,background:$},[`${t}-zero-width-trigger`]:{color:b,background:$,border:`1px solid ${S}`,borderInlineStart:0}}}}},gB=Pt(["Layout","Sider"],pB,l6,{deprecatedTokens:s6}),h2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hB=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Lp=l.createContext({}),yB=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),u6=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:C,breakpoint:b,onCollapse:$,onBreakpoint:S,...w}=e,{siderHook:M}=l.useContext(i6),[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=(ee,ie)=>{"collapsed"in e||R(ee),$?.(ee,ie)},{getPrefixCls:P,direction:D}=l.useContext(dt),W=P("layout-sider",n),[k,U]=gB(W),G=l.useRef(null);G.current=ee=>{N(ee.matches),S?.(ee.matches),x!==ee.matches&&O(ee.matches,"responsive")},l.useEffect(()=>{function ee(ne){return G.current?.(ne)}let ie;return typeof window?.matchMedia<"u"&&b&&b in h2&&(ie=window.matchMedia(`screen and (max-width: ${h2[b]})`),typeof ie?.addEventListener=="function"&&ie.addEventListener("change",ee),ee(ie)),()=>{typeof ie?.removeEventListener=="function"&&ie.removeEventListener("change",ee)}},[b]),l.useEffect(()=>{const ee=yB("ant-sider-");return M.addSider(ee),()=>M.removeSider(ee)},[]);const L=()=>{O(!x,"clickTrigger")},H=nn(w,["collapsed"]),_=x?y:h,B=hB(_)?`${_}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:C},i||l.createElement(fB,null)):null,z=D==="rtl"==!g,j={expanded:z?l.createElement(ws,null):l.createElement(Eu,null),collapsed:z?l.createElement(Eu,null):l.createElement(ws,null)}[x?"collapsed":"expanded"],q=i!==null?I||l.createElement("div",{className:`${W}-trigger`,onClick:L,style:{width:B}},i||j):null,X={...f,flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B},K=Q(W,`${W}-${d}`,{[`${W}-collapsed`]:!!x,[`${W}-has-trigger`]:p&&i!==null&&!I,[`${W}-below`]:!!T,[`${W}-zero-width`]:Number.parseFloat(B)===0},r,k,U),Z=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(Lp.Provider,{value:Z},l.createElement("aside",{className:K,...H,style:X,ref:t},l.createElement("div",{className:`${W}-children`},s),p||T&&I?q:null))});var bB={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 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 vB=(e,t)=>l.createElement(gt,Fv({},e,{ref:t,icon:bB})),t1=l.forwardRef(vB),Jm=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),d6=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(JS,{className:d,...i})},f6=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:C}=l.useContext(Jm),b=R=>{const T=n?.[0],N=l.createElement("span",{className:Q(`${d}-title-content`,f?C.itemContent:C.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(Lp);let S=i;typeof i>"u"?S=f?n:"":i===!1&&(S="");const w={title:S};!$&&!h&&(w.title=null,w.open=!1);const M=dr(n).length;let x=l.createElement(Cd,{...nn(e,["title","icon","danger"]),className:Q(f?C.item:C.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},nr(r,R=>({className:Q(`${d}-item-icon`,f?C.itemIcon:C.subMenu.itemIcon,R.className),style:{...f?y.itemIcon:y.subMenu.itemIcon,...R.style}})),b(h));return g||(x=l.createElement(ur,{...w,placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},x)),x},ep=l.createContext(null),SB=l.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.useContext(ep),s=l.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=VP(n),d=mi(t,c?ol(n):null);return l.createElement(ep.Provider,{value:s},l.createElement(xa,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),CB=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"}}}},$B=({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)})`}}}}),y2=e=>Uo(e),b2=(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:C,motionEaseInOut:b,motionEaseOut:$,itemPaddingInline:S,motionDurationMid:w,itemHoverColor:M,lineType:x,colorSplit:R,itemDisabledColor:T,dangerItemColor:N,dangerItemHoverColor:O,dangerItemSelectedColor:P,dangerItemActiveBg:D,dangerItemSelectedBg:W,popupBg:k,itemHoverBg:U,itemActiveBg:G,menuSubMenuBg:L,horizontalItemSelectedColor:H,horizontalItemSelectedBg:_,horizontalItemBorderRadius:B,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...y2(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`]:{...y2(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:U},"&:active":{backgroundColor:G}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:U},"&:active":{backgroundColor:G}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:p,[`&${n}-item-danger`]:{backgroundColor:W}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${C} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:H}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${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:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${b}`,`opacity ${w} ${b}`].join(",")}}}}}},v2=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}}},xB=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:C,boxShadowSecondary:b,collapsedWidth:$,collapsedIconSize:S}=e,w={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...v2(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...v2(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(S).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:S,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`]:{...$o,paddingInline:C}}}]},S2=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`]:{...Is()},[`&${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"}}}},C2=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)})`}}}}},wB=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:C,menuArrowSize:b,menuArrowOffset:$,lineType:S,groupTitleLineHeight:w,groupTitleFontSize:M}=e;return[{"":{[n]:{...Zi(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Zt(e),...Zi(),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:S,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...S2(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,...S2(e),...C2(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:C},[`${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}},...C2(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"}}}]},EB=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:C,controlHeightLG:b,lineHeight:$,colorBgElevated:S,marginXXS:w,padding:M,fontSize:x,controlHeightSM:R,fontSizeLG:T,colorTextLightSolid:N,colorErrorHover:O}=e,P=e.activeBarWidth??0,D=e.activeBarBorderWidth??g,W=e.itemMarginInline??e.marginXXS,k=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:C,itemHoverBg:C,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:D,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:S,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:k,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:N,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${D}px)`:`calc(100% - ${W*2}px)`}},MB=(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:C,darkDangerItemSelectedBg:b,darkItemHoverBg:$,darkGroupTitleColor:S,darkItemHoverColor:w,darkItemDisabledColor:M,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:T,popupBg:N,darkPopupBg:O}=i,P=i.calc(d).div(7).mul(5).equal(),D=Ot(i,{menuArrowSize:P,menuHorizontalHeight:i.calc(c).mul(1.15).equal(),menuArrowOffset:i.calc(P).mul(.25).equal(),menuSubMenuBg:s,calc:i.calc,popupBg:N}),W=Ot(D,{itemColor:f,itemHoverColor:w,groupTitleColor:S,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:O,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:$,itemDisabledColor:M,dangerItemColor:p,dangerItemHoverColor:x,dangerItemSelectedColor:R,dangerItemActiveBg:T,dangerItemSelectedBg:b,menuSubMenuBg:h,horizontalItemSelectedColor:y,horizontalItemSelectedBg:C});return[wB(D),CB(D),xB(D),b2(D,"light"),b2(W,"dark"),$B(D),jT(D),Xo(D,"slide-up"),Xo(D,"slide-down"),md(D,"zoom-big")]},EB,{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),m6=e=>{const{popupClassName:t,icon:n,title:r,theme:i}=e,s=l.useContext(Jm),{prefixCls:c,inlineCollapsed:d,theme:f,classNames:p,styles:g}=s,h=_s();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,nr(n,S=>({className:Q(S.className,`${c}-item-icon`,p.itemIcon),style:{...S.style,...g.itemIcon}})),$?r:l.createElement("span",{className:`${c}-title-content`},r))}const C=l.useMemo(()=>({...s,firstLevel:!1}),[s]),[b]=pi("Menu");return l.createElement(Jm.Provider,{value:C},l.createElement(Bp,{...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 Hy(e){return e===null||e===!1}const RB={item:f6,submenu:m6,divider:d6},TB=l.forwardRef((e,t)=>{const n=l.useContext(ep),r=n||{},{prefixCls:i,className:s,style:c,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:h,rootClassName:y,mode:C,selectable:b,onClick:$,overflowedIndicatorPopupClassName:S,classNames:w,styles:M,...x}=e,{menu:R}=l.useContext(dt),{getPrefixCls:T,getPopupContainer:N,direction:O,className:P,style:D,classNames:W,styles:k}=It("menu"),U=T(),G=nn(x,["collapsedWidth"]);r.validator?.({mode:C});const L=ut((...ne)=>{$?.(...ne),r.onClick?.()}),H=r.mode||C,_=b??r.selectable,B=g??h,I={...e,mode:H,inlineCollapsed:B,selectable:_,theme:d},[z,V]=Lt([W,w],[k,M],{props:I},{popup:{_default:"root"},subMenu:{_default:"item"}}),A={horizontal:{motionName:`${U}-slide-up`},inline:IT(U),other:{motionName:`${U}-zoom-big`}},j=T("menu",i||r.prefixCls),q=ar(j),[X,K]=MB(j,q,!n),Z=Q(`${j}-${d}`,P,s),ee=l.useMemo(()=>{if(typeof f=="function"||Hy(f))return f||null;if(typeof r.expandIcon=="function"||Hy(r.expandIcon))return r.expandIcon||null;if(typeof R?.expandIcon=="function"||Hy(R?.expandIcon))return R?.expandIcon||null;const ne=f??r?.expandIcon??R?.expandIcon;return nr(ne,{className:Q(`${j}-submenu-expand-icon`,l.isValidElement(ne)?ne.props?.className:void 0)})},[f,r?.expandIcon,R?.expandIcon,j]),ie=l.useMemo(()=>({prefixCls:j,inlineCollapsed:B||!1,direction:O,firstLevel:!0,theme:d,mode:H,disableMenuItemTitleTooltip:p,classNames:z,styles:V}),[j,B,O,p,d,H,z,V]);return l.createElement(ep.Provider,{value:null},l.createElement(Jm.Provider,{value:ie},l.createElement(Hs,{getPopupContainer:N,overflowedIndicator:l.createElement(t1,null),overflowedIndicatorPopupClassName:Q(j,`${j}-${d}`,S),classNames:{list:z.list,listTitle:z.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:H,selectable:_,onClick:L,...G,inlineCollapsed:B,style:{...V.root,...D,...c},className:Z,prefixCls:j,direction:O,defaultMotions:A,expandIcon:ee,ref:t,rootClassName:Q(y,X,r.rootClassName,K,q,z.root),_internalComponents:RB})))}),$d=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Lp);return l.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{n.current?.focus(i)}})),l.createElement(TB,{ref:n,...e,...r})});$d.Item=f6;$d.SubMenu=m6;$d.Divider=d6;$d.ItemGroup=e1;const OB=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}}}}}},NB=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:C,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:C}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:C},[`${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:Tp},[`&${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:Np},[`&${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:Op},[`&${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:Ip}}},US(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,...xo(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},...xo(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:C,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}}}},[Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down"),md(e,"zoom-big")]]},IB=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...jp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Dp(e)}),PB=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[NB(s),OB(s)]},IB,{resetStyle:!1}),Vp=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:C,onOpenChange:b,mouseEnterDelay:$=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:w=!0,placement:M="",transitionName:x,classNames:R,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:P,direction:D,getPopupContainer:W,className:k,style:U,classNames:G,styles:L}=It("dropdown"),H={...e,mouseEnterDelay:$,mouseLeaveDelay:S,autoAdjustOverflow:w},[_,B]=Lt([G,R],[L,T],{props:H}),I={...U,...y,...B.root},z=f||d,V=l.useMemo(()=>{const Re=P();return x!==void 0?x:M.includes("top")?`${Re}-slide-down`:`${Re}-slide-up`},[P,M,x]),A=l.useMemo(()=>M?M.includes("Center")?M.slice(0,M.indexOf("Center")):M:D==="rtl"?"bottomRight":"bottomLeft",[M,D]),j=P("dropdown",r),q=ar(j),[X,K]=PB(j,q),[,Z]=Wr(),ee=l.Children.only(V7(i)?l.createElement("span",null,i):i),ie=nr(ee,{className:Q(`${j}-trigger`,{[`${j}-rtl`]:D==="rtl"},ee.props.className),disabled:ee.props.disabled??c}),ne=c?[]:s,oe=!!ne?.includes("contextMenu"),[de,le]=Yt(!1,C),fe=ut(Re=>{b?.(Re,{source:"trigger"}),le(Re)}),ge=Q(g,h,X,K,q,k,_.root,{[`${j}-rtl`]:D==="rtl"}),re=_O({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:Z.marginXXS,arrowWidth:n?Z.sizePopupArrow:0,borderRadius:Z.borderRadius}),ue=ut(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),le(!1))}),he=()=>{const Re=nn(_,["root"]),we=nn(B,["root"]);let se;return t?.items&&(se=l.createElement($d,{...t,classNames:{...Re,subMenu:{...Re}},styles:{...we,subMenu:{...we}}})),z&&(se=z(se)),se=l.Children.only(typeof se=="string"?l.createElement("span",null,se):se),l.createElement(SB,{prefixCls:`${j}-menu`,rootClassName:Q(K,q),expandIcon:l.createElement("span",{className:`${j}-menu-submenu-arrow`},D==="rtl"?l.createElement(Eu,{className:`${j}-menu-submenu-arrow-icon`}):l.createElement(ws,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:({mode:be})=>{}},se)},[pe,Se]=pi("Dropdown",I.zIndex);let Ie=l.createElement(YO,{alignPoint:oe,...nn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:S,visible:de,builtinPlacements:re,arrow:!!n,overlayClassName:ge,prefixCls:j,getPopupContainer:p||W,transitionName:V,trigger:ne,overlay:he,placement:A,onVisibleChange:fe,overlayStyle:{...I,zIndex:pe},autoDestroy:O??N},ie);return pe&&(Ie=l.createElement(ld.Provider,{value:Se},Ie)),Ie},zB=zp(Vp,"align",void 0,"dropdown",e=>e),AB=e=>l.createElement(zB,{...e},l.createElement("span",null));Vp._InternalPanelDoNotUseOrYouWillBeFired=AB;var xm={exports:{}},DB=xm.exports,$2;function p6(){return $2||($2=1,(function(e,t){(function(n,r){e.exports=r()})(DB,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",c="second",d="minute",f="hour",p="day",g="week",h="month",y="quarter",C="year",b="date",$="Invalid Date",S=/^(\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 H=["th","st","nd","rd"],_=L%100;return"["+L+(H[(_-20)%10]||H[_]||H[0])+"]"}},x=function(L,H,_){var B=String(L);return!B||B.length>=H?L:""+Array(H+1-B.length).join(_)+L},R={s:x,z:function(L){var H=-L.utcOffset(),_=Math.abs(H),B=Math.floor(_/60),I=_%60;return(H<=0?"+":"-")+x(B,2,"0")+":"+x(I,2,"0")},m:function L(H,_){if(H.date()<_.date())return-L(_,H);var B=12*(_.year()-H.year())+(_.month()-H.month()),I=H.clone().add(B,h),z=_-I<0,V=H.clone().add(B+(z?-1:1),h);return+(-(B+(_-I)/(z?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:C,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",P=function(L){return L instanceof U||!(!L||!L[O])},D=function L(H,_,B){var I;if(!H)return T;if(typeof H=="string"){var z=H.toLowerCase();N[z]&&(I=z),_&&(N[z]=_,I=z);var V=H.split("-");if(!I&&V.length>1)return L(V[0])}else{var A=H.name;N[A]=H,I=A}return!B&&I&&(T=I),I||!B&&T},W=function(L,H){if(P(L))return L.clone();var _=typeof H=="object"?H:{};return _.date=L,_.args=arguments,new U(_)},k=R;k.l=D,k.i=P,k.w=function(L,H){return W(L,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var U=(function(){function L(_){this.$L=D(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var H=L.prototype;return H.parse=function(_){this.$d=(function(B){var I=B.date,z=B.utc;if(I===null)return new Date(NaN);if(k.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(S);if(V){var A=V[2]-1||0,j=(V[7]||"0").substring(0,3);return z?new Date(Date.UTC(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(I)})(_),this.init()},H.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},H.$utils=function(){return k},H.isValid=function(){return this.$d.toString()!==$},H.isSame=function(_,B){var I=W(_);return this.startOf(B)<=I&&I<=this.endOf(B)},H.isAfter=function(_,B){return W(_)<this.startOf(B)},H.isBefore=function(_,B){return this.endOf(B)<W(_)},H.$g=function(_,B,I){return k.u(_)?this[B]:this.set(I,_)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(_,B){var I=this,z=!!k.u(B)||B,V=k.p(_),A=function(ne,oe){var de=k.w(I.$u?Date.UTC(I.$y,oe,ne):new Date(I.$y,oe,ne),I);return z?de:de.endOf(p)},j=function(ne,oe){return k.w(I.toDate()[ne].apply(I.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(oe)),I)},q=this.$W,X=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case C:return z?A(1,0):A(31,11);case h:return z?A(1,X):A(0,X+1);case g:var ee=this.$locale().weekStart||0,ie=(q<ee?q+7:q)-ee;return A(z?K-ie:K+(6-ie),X);case p:case b:return j(Z+"Hours",0);case f:return j(Z+"Minutes",1);case d:return j(Z+"Seconds",2);case c:return j(Z+"Milliseconds",3);default:return this.clone()}},H.endOf=function(_){return this.startOf(_,!1)},H.$set=function(_,B){var I,z=k.p(_),V="set"+(this.$u?"UTC":""),A=(I={},I[p]=V+"Date",I[b]=V+"Date",I[h]=V+"Month",I[C]=V+"FullYear",I[f]=V+"Hours",I[d]=V+"Minutes",I[c]=V+"Seconds",I[s]=V+"Milliseconds",I)[z],j=z===p?this.$D+(B-this.$W):B;if(z===h||z===C){var q=this.clone().set(b,1);q.$d[A](j),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},H.set=function(_,B){return this.clone().$set(_,B)},H.get=function(_){return this[k.p(_)]()},H.add=function(_,B){var I,z=this;_=Number(_);var V=k.p(B),A=function(X){var K=W(z);return k.w(K.date(K.date()+Math.round(X*_)),z)};if(V===h)return this.set(h,this.$M+_);if(V===C)return this.set(C,this.$y+_);if(V===p)return A(1);if(V===g)return A(7);var j=(I={},I[d]=r,I[f]=i,I[c]=n,I)[V]||1,q=this.$d.getTime()+_*j;return k.w(q,this)},H.subtract=function(_,B){return this.add(-1*_,B)},H.format=function(_){var B=this,I=this.$locale();if(!this.isValid())return I.invalidDate||$;var z=_||"YYYY-MM-DDTHH:mm:ssZ",V=k.z(this),A=this.$H,j=this.$m,q=this.$M,X=I.weekdays,K=I.months,Z=I.meridiem,ee=function(oe,de,le,fe){return oe&&(oe[de]||oe(B,z))||le[de].slice(0,fe)},ie=function(oe){return k.s(A%12||12,oe,"0")},ne=Z||function(oe,de,le){var fe=oe<12?"AM":"PM";return le?fe.toLowerCase():fe};return z.replace(w,(function(oe,de){return de||(function(le){switch(le){case"YY":return String(B.$y).slice(-2);case"YYYY":return k.s(B.$y,4,"0");case"M":return q+1;case"MM":return k.s(q+1,2,"0");case"MMM":return ee(I.monthsShort,q,K,3);case"MMMM":return ee(K,q);case"D":return B.$D;case"DD":return k.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return ee(I.weekdaysMin,B.$W,X,2);case"ddd":return ee(I.weekdaysShort,B.$W,X,3);case"dddd":return X[B.$W];case"H":return String(A);case"HH":return k.s(A,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ne(A,j,!0);case"A":return ne(A,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(B.$s);case"ss":return k.s(B.$s,2,"0");case"SSS":return k.s(B.$ms,3,"0");case"Z":return V}return null})(oe)||V.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(_,B,I){var z,V=this,A=k.p(B),j=W(_),q=(j.utcOffset()-this.utcOffset())*r,X=this-j,K=function(){return k.m(V,j)};switch(A){case C:z=K()/12;break;case h:z=K();break;case y:z=K()/3;break;case g:z=(X-q)/6048e5;break;case p:z=(X-q)/864e5;break;case f:z=X/i;break;case d:z=X/r;break;case c:z=X/n;break;default:z=X}return I?z:k.a(z)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return N[this.$L]},H.locale=function(_,B){if(!_)return this.$L;var I=this.clone(),z=D(_,B,!0);return z&&(I.$L=z),I},H.clone=function(){return k.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},L})(),G=U.prototype;return W.prototype=G,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",p],["$M",h],["$y",C],["$D",b]].forEach((function(L){G[L[1]]=function(H){return this.$g(H,L[0],L[1])}})),W.extend=function(L,H){return L.$i||(L(H,U,W),L.$i=!0),W},W.locale=D,W.isDayjs=P,W.unix=function(L){return W(1e3*L)},W.en=N[T],W.Ls=N,W.p={},W}))})(xm)),xm.exports}var jB=p6();const gn=Ea(jB);var wm={exports:{}},_B=wm.exports,x2;function HB(){return x2||(x2=1,(function(e,t){(function(n,r){e.exports=r()})(_B,(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")}}}))})(wm)),wm.exports}var BB=HB();const LB=Ea(BB);var Em={exports:{}},VB=Em.exports,w2;function FB(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(VB,(function(){return function(n,r,i){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,C,b,$){var S=h.name?h:h.$locale(),w=c(S[y]),M=c(S[C]),x=w||M.map((function(T){return T.slice(0,b)}));if(!$)return x;var R=S.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(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,$,S){return $||S.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)}}}))})(Em)),Em.exports}var kB=FB();const WB=Ea(kB);var Mm={exports:{}},qB=Mm.exports,E2;function YB(){return E2||(E2=1,(function(e,t){(function(n,r){e.exports=r()})(qB,(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"),C=this.diff(y,n,!0);return C<0?c(this).startOf("week").week():Math.ceil(C)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Mm)),Mm.exports}var UB=YB();const GB=Ea(UB);var Rm={exports:{}},XB=Rm.exports,M2;function KB(){return M2||(M2=1,(function(e,t){(function(n,r){e.exports=r()})(XB,(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}}}))})(Rm)),Rm.exports}var QB=KB();const ZB=Ea(QB);var Tm={exports:{}},JB=Tm.exports,R2;function eL(){return R2||(R2=1,(function(e,t){(function(n,r){e.exports=r()})(JB,(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)}}}))})(Tm)),Tm.exports}var tL=eL();const nL=Ea(tL);var Om={exports:{}},rL=Om.exports,T2;function oL(){return T2||(T2=1,(function(e,t){(function(n,r){e.exports=r()})(rL,(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(S){return(S=+S)+(S>68?1900:2e3)},g=function(S){return function(w){this[S]=+w}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(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})(S)}],y=function(S){var w=f[S];return w&&(w.indexOf?w:w.s.concat(w.f))},C=function(S,w){var M,x=f.meridiem;if(x){for(var R=1;R<=24;R+=1)if(S.indexOf(x(R,0,w))>-1){M=R>12;break}}else M=S===(w?"pm":"PM");return M},b={A:[d,function(S){this.afternoon=C(S,!1)}],a:[d,function(S){this.afternoon=C(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],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(S){var w=f.ordinal,M=S.match(/\d+/);if(this.day=M[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===S&&(this.day=x)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(S){var w=y("months"),M=(y("monthsShort")||w.map((function(x){return x.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(S){var w=y("months").indexOf(S)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(S){this.year=p(S)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function $(S){var w,M;w=S,M=f&&f.formats;for(var x=(S=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,k,U){var G=U&&U.toUpperCase();return k||M[U]||n[U]||M[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,H,_){return H||_.slice(1)}))}))).match(r),R=x.length,T=0;T<R;T+=1){var N=x[T],O=b[N],P=O&&O[0],D=O&&O[1];x[T]=D?{regex:P,parser:D}:N.replace(/^\[|\]$/g,"")}return function(W){for(var k={},U=0,G=0;U<R;U+=1){var L=x[U];if(typeof L=="string")G+=L.length;else{var H=L.regex,_=L.parser,B=W.slice(G),I=H.exec(B)[0];_.call(k,I),W=W.replace(I,"")}}return(function(z){var V=z.afternoon;if(V!==void 0){var A=z.hours;V?A<12&&(z.hours+=12):A===12&&(z.hours=0),delete z.afternoon}})(k),k}}return function(S,w,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(p=S.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(T){var N=T.date,O=T.utc,P=T.args;this.$u=O;var D=P[1];if(typeof D=="string"){var W=P[2]===!0,k=P[3]===!0,U=W||k,G=P[2];k&&(G=P[2]),f=this.$locale(),!W&&G&&(f=M.Ls[G]),this.$d=(function(B,I,z,V){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*B);var A=$(I)(B),j=A.year,q=A.month,X=A.day,K=A.hours,Z=A.minutes,ee=A.seconds,ie=A.milliseconds,ne=A.zone,oe=A.week,de=new Date,le=X||(j||q?1:de.getDate()),fe=j||de.getFullYear(),ge=0;j&&!q||(ge=q>0?q-1:de.getMonth());var re,ue=K||0,he=Z||0,pe=ee||0,Se=ie||0;return ne?new Date(Date.UTC(fe,ge,le,ue,he,pe,Se+60*ne.offset*1e3)):z?new Date(Date.UTC(fe,ge,le,ue,he,pe,Se)):(re=new Date(fe,ge,le,ue,he,pe,Se),oe&&(re=V(re).week(oe).toDate()),re)}catch{return new Date("")}})(N,D,O,M),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),U&&N!=this.format(D)&&(this.$d=new Date("")),f={}}else if(D instanceof Array)for(var L=D.length,H=1;H<=L;H+=1){P[1]=D[H-1];var _=M.apply(this,P);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}H===L&&(this.$d=new Date(""))}else R.call(this,T)}}}))})(Om)),Om.exports}var aL=oL();const iL=Ea(aL);gn.extend(iL);gn.extend(nL);gn.extend(LB);gn.extend(WB);gn.extend(GB);gn.extend(ZB);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 lL={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"},Di=function(t){var n=lL[t];return n||t.split("_")[0]},g6={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(Di(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Di(t)).weekday(0)},getWeek:function(t,n){return n.locale(Di(t)).week()},getShortWeekDays:function(t){return gn().locale(Di(t)).localeData().weekdaysMin()},getShortMonths:function(t){return gn().locale(Di(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Di(t)).format(r)},parse:function(t,n,r){for(var i=Di(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 C=gn(d,c,!0).locale(i);if(C.isValid())return C}return null}}};function sL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var jo=l.createContext(null);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 O2(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=uL(e,"string");return Ou(t)=="symbol"?t:String(t)}function uL(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)}var dL={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 h6(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?dL:g,y=e.direction,C=e.visible,b=e.onClose,$=l.useContext(jo),S=$.prefixCls,w="".concat(S,"-dropdown"),M=sL(p,y==="rtl");return l.createElement(ud,{showAction:[],hideAction:["click"],popupPlacement:M,builtinPlacements:h,prefixCls:w,popupMotion:{motionName:s},popup:t,popupAlign:i,popupVisible:C,popupClassName:Q(r,O2(O2({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||b()}},d)}function fL(e){return hL(e)||gL(e)||pL(e)||mL()}function mL(){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 pL(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 gL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hL(e){if(Array.isArray(e))return kv(e)}function kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n1(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 cl(e){return e==null?[]:Array.isArray(e)?e:[e]}function su(e,t,n){var r=fL(e);return r[t]=n,r}function Fp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function y6(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 b6(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 v6(e){return Fp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}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 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){yL(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 yL(e,t,n){return t=bL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bL(e){var t=vL(e,"string");return Nu(t)=="symbol"?t:String(t)}function vL(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 r1(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,I2(I2({},d),{},{range:r}))},[i,r]);return s}function SL(e,t){return wL(e)||xL(e,t)||$L(e,t)||CL()}function CL(){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 $L(e,t){if(e){if(typeof e=="string")return P2(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 P2(e,t)}}function P2(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 xL(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 wL(e){if(Array.isArray(e))return e}function S6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),i=SL(r,2),s=i[0],c=i[1],d=function(g,h){c(function(y){return su(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 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 z2(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 A2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(n),!0).forEach(function(r){EL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EL(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=RL(e,"string");return Iu(t)=="symbol"?t:String(t)}function RL(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 C6(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 TL(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,C=e.yearFormat,b=e.cellYearFormat,$=e.cellQuarterFormat,S=e.dayFormat,w=e.cellDateFormat,M=C6(t,n,r,i,s);return A2(A2({},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:C||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:$||"[Q]Q",cellDateFormat:w||S||"D"})}function $6(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return ae.useMemo(function(){return TL(e,n,r,i,s,c)},[e,n,r,i,s,c])}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 ms(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){OL(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 OL(e,t,n){return t=NL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NL(e){var t=IL(e,"string");return tl(t)=="symbol"?t:String(t)}function IL(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wv(e,t){return DL(e)||AL(e,t)||zL(e,t)||PL()}function PL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
220
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zL(e,t){if(e){if(typeof e=="string")return 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 AL(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 DL(e){if(Array.isArray(e))return e}function tl(e){"@babel/helpers - typeof";return tl=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},tl(e)}function Hc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var jL=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function _L(e){var t=Fp(e,jL),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=tl(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function HL(e){return e&&typeof e=="string"}function x6(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function w6(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}),C=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:C,c=(p=c)!==null&&p!==void 0?p:C,d=(g=d)!==null&&g!==void 0?g:C}return[s,c,d,i]}function E6(e){var t=e.showTime,n=_L(e),r=Wv(n,2),i=r[0],s=r[1],c=t&&tl(t)==="object"?t:{},d=ms(ms({defaultOpenValue:c.defaultOpenValue||c.defaultValue},i),c),f=d.showMillisecond,p=d.showHour,g=d.showMinute,h=d.showSecond,y=x6(p,g,h,f),C=w6(y,p,g,h,f),b=Wv(C,3);return p=b[0],g=b[1],h=b[2],[d,ms(ms({},d),{},{showHour:p,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function M6(e,t,n,r,i){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=y6(e,i,null),f=d,p=[t,n],g=0;g<p.length;g+=1){var h=cl(p[g])[0];if(HL(h)){f=h;break}}var y=c.showHour,C=c.showMinute,b=c.showSecond,$=c.showMillisecond,S=c.use12Hours,w=Hc(f,["a","A","LT","LLL","LTS"],S),M=x6(y,C,b,$);M||(y=Hc(f,["H","h","k","LT","LLL"]),C=Hc(f,["m","LT","LLL"]),b=Hc(f,["s","LTS"]),$=Hc(f,["SSS"]));var x=w6(M,y,C,b,$),R=Wv(x,3);y=R[0],C=R[1],b=R[2];var T=t||C6(y,C,b,$,w);return ms(ms({},c),{},{format:T,showHour:y,showMinute:C,showSecond:b,showMillisecond:$,use12Hours:w})}return null}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 BL(e,t,n){if(t===!1)return null;var r=t&&qv(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var By=7;function hi(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Yv(e,t,n){return hi(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function nl(e,t,n){return hi(t,n,function(){return e.getYear(t)===e.getYear(n)})}function _2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function LL(e,t,n){return hi(t,n,function(){return nl(e,t,n)&&_2(e,t)===_2(e,n)})}function o1(e,t,n){return hi(t,n,function(){return nl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function a1(e,t,n){return hi(t,n,function(){return nl(e,t,n)&&o1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function R6(e,t,n){return hi(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function T6(e,t,n){return hi(t,n,function(){return a1(e,t,n)&&R6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Zc(e,t,n,r){return hi(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return nl(e,i,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Rr(e,t,n,r,i){switch(i){case"date":return a1(e,n,r);case"week":return Zc(e,t.locale,n,r);case"month":return o1(e,n,r);case"quarter":return LL(e,n,r);case"year":return nl(e,n,r);case"decade":return Yv(e,n,r);case"time":return R6(e,n,r);default:return T6(e,n,r)}}function kp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function qf(e,t,n,r,i){return Rr(e,t,n,r,i)?!0:e.isAfter(n,r)}function VL(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 er(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 tp(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 FL(e,t,n,r,i){var s=ut(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Rr(e,t,r,c,d.type)||i&&e.isAfter(c,i)&&!Rr(e,t,i,c,d.type))});return s}function Uv(e){"@babel/helpers - typeof";return Uv=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},Uv(e)}function kL(e,t,n){return l.useMemo(function(){var r=y6(e,t,n),i=cl(r),s=i[0],c=Uv(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 WL(e,t,n){return typeof e[0]=="function"||n?!0:t}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 H2(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 qL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H2(Object(n),!0).forEach(function(r){YL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YL(e,t,n){return t=UL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=GL(e,"string");return Pu(t)=="symbol"?t:String(t)}function GL(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 XL(e,t,n,r){var i=ut(function(s,c){var d=qL({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,C=g.disabledSeconds,b=g.disabledMilliseconds,$=r.disabledHours,S=r.disabledMinutes,w=r.disabledSeconds,M=h||$,x=y||S,R=C||w,T=e.getHour(s),N=e.getMinute(s),O=e.getSecond(s),P=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(P))return!0}return!1});return i}function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}function B2(e,t){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 Bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(r){KL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KL(e,t,n){return t=QL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QL(e){var t=ZL(e,"string");return zu(t)=="symbol"?t:String(t)}function ZL(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 L2(e,t){return nV(e)||tV(e,t)||eV(e,t)||JL()}function JL(){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 eV(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 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){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 nV(e){if(Array.isArray(e))return e}function Yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&cl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function O6(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,C=y===void 0?{}:y,b=e.order,$=b===void 0?!0:b,S=e.components,w=S===void 0?{}:S,M=e.inputRender,x=e.allowClear,R=e.clearIcon,T=e.needConfirm,N=e.multiple,O=e.format,P=e.inputReadOnly,D=e.disabledDate,W=e.minDate,k=e.maxDate,U=e.showTime,G=e.value,L=e.defaultValue,H=e.pickerValue,_=e.defaultPickerValue,B=Yf(G),I=Yf(L),z=Yf(H),V=Yf(_),A=s==="date"&&U?"datetime":s,j=A==="time"||A==="datetime",q=j||N,X=T??j,K=E6(e),Z=L2(K,4),ee=Z[0],ie=Z[1],ne=Z[2],oe=Z[3],de=$6(r,ie),le=l.useMemo(function(){return M6(A,ne,oe,ee,de)},[A,ne,oe,ee,de]),fe=l.useMemo(function(){return Bc(Bc({},e),{},{previewValue:p,prefixCls:d,locale:de,picker:s,styles:h,classNames:C,order:$,components:Bc({input:M},w),clearIcon:BL(d,x,R),showTime:le,value:B,defaultValue:I,pickerValue:z,defaultPickerValue:V},t?.())},[e]),ge=kL(A,de,O),re=L2(ge,2),ue=re[0],he=re[1],pe=WL(ue,P,N),Se=FL(n,r,D,W,k),Ie=XL(n,s,Se,le),Re=l.useMemo(function(){return Bc(Bc({},fe),{},{needConfirm:X,inputReadOnly:pe,disabledDate:Se})},[fe,X,pe,Se]);return[Re,A,q,ue,he,Ie]}function F2(e,t){return iV(e)||aV(e,t)||oV(e,t)||rV()}function rV(){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 oV(e,t){if(e){if(typeof e=="string")return k2(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 k2(e,t)}}function k2(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 aV(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 iV(e){if(Array.isArray(e))return e}function lV(e,t,n){var r=Yt(t,e),i=F2(r,2),s=i[0],c=i[1],d=ae.useState({}),f=F2(d,2),p=f[1],g=ut(function(S){c(S),p({})}),h=ae.useRef(e),y=ae.useRef(),C=function(){Ht.cancel(y.current)},b=ut(function(){g(h.current),n&&s!==h.current&&n(h.current)}),$=ut(function(S,w){C(),h.current=S,S||w?b():y.current=Ht(b)});return ae.useEffect(function(){return C},[]),[s,$]}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.
|
|
223
|
+
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 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 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 N6(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=lV(i,t||!1,r),c=sV(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 I6(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 mV(e,t){return yV(e)||hV(e,t)||gV(e,t)||pV()}function pV(){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 gV(e,t){if(e){if(typeof e=="string")return q2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q2(e,t)}}function q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hV(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 yV(e){if(Array.isArray(e))return e}function P6(e,t){return l.useMemo(function(){return e||(t?(tr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=mV(n,2),i=r[0],s=r[1];return{label:i,value:s}})):[])},[e,t])}function i1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,J4(function(){if(e)r.current(e);else{var i=Ht(function(){r.current(e)},n);return function(){Ht.cancel(i)}}},[e])}function Y2(e,t){return CV(e)||SV(e,t)||vV(e,t)||bV()}function bV(){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 vV(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 SV(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 CV(e){if(Array.isArray(e))return e}function z6(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=Y2(r,2),s=i[0],c=i[1],d=l.useState(!1),f=Y2(d,2),p=f[0],g=f[1],h=l.useRef([]),y=l.useRef(null),C=l.useRef(null),b=function(R){y.current=R},$=function(R){return y.current===R},S=function(R){g(R)},w=function(R){return R&&(C.current=R),C.current},M=function(R){var T=h.current,N=new Set(T.filter(function(P){return R[P]||t[P]})),O=T[T.length-1]===0?1:0;return N.size>=2||e[O]?null:O};return i1(p||n,function(){p||(h.current=[],b(null))}),l.useEffect(function(){p&&h.current.push(s)},[p,s]),[p,S,w,s,c,M,h.current,b,$]}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 G2(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 X2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(r){$V(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $V(e,t,n){return t=xV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xV(e){var t=wV(e,"string");return Au(t)=="symbol"?t:String(t)}function wV(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 EV(e,t){return OV(e)||TV(e,t)||RV(e,t)||MV()}function MV(){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 RV(e,t){if(e){if(typeof e=="string")return K2(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 K2(e,t)}}function K2(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 NV(e,t,n,r,i,s){var c=n[n.length-1],d=function(p,g){var h=EV(e,2),y=h[0],C=h[1],b=X2(X2({},g),{},{from:b6(e,n)});return c===1&&t[0]&&y&&!Rr(r,i,y,p,b.type)&&r.isAfter(y,p)||c===0&&t[1]&&C&&!Rr(r,i,C,p,b.type)&&r.isAfter(p,C)?!0:s?.(p,b)};return d}function Ly(e,t){return AV(e)||zV(e,t)||PV(e,t)||IV()}function IV(){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 PV(e,t){if(e){if(typeof e=="string")return Q2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q2(e,t)}}function Q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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 Jc(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 Vy=[];function A6(e,t,n,r,i,s,c,d){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Vy,p=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Vy,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Vy,h=arguments.length>11?arguments[11]:void 0,y=arguments.length>12?arguments[12]:void 0,C=arguments.length>13?arguments[13]:void 0,b=c==="time",$=s||0,S=function(B){var I=e.getNow();return b&&(I=tp(e,I)),f[B]||n[B]||I},w=Ly(p,2),M=w[0],x=w[1],R=Yt(function(){return S(0)},M),T=Ly(R,2),N=T[0],O=T[1],P=Yt(function(){return S(1)},x),D=Ly(P,2),W=D[0],k=D[1],U=l.useMemo(function(){var _=[N,W][$];return b?_:tp(e,_,g[$])},[b,N,W,$,e,g]),G=function(B){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[O,k][$];z(B);var V=[N,W];V[$]=B,h&&(!Rr(e,t,N,V[0],c)||!Rr(e,t,W,V[1],c))&&h(V,{source:I,range:$===1?"end":"start",mode:r})},L=function(B,I){if(d){var z={date:"month",week:"month",month:"year",quarter:"year"},V=z[c];if(V&&!Rr(e,t,B,I,V))return Jc(e,c,I,-1);if(c==="year"&&B){var A=Math.floor(e.getYear(B)/10),j=Math.floor(e.getYear(I)/10);if(A!==j)return Jc(e,c,I,-1)}}return I},H=l.useRef(null);return Nt(function(){if(i&&!f[$]){var _=b?null:e.getNow();if(H.current!==null&&H.current!==$?_=[N,W][$^1]:n[$]?_=$===0?n[0]:L(n[0],n[1]):n[$^1]&&(_=n[$^1]),_){y&&e.isAfter(y,_)&&(_=y);var B=d?Jc(e,c,_,1):_;C&&e.isAfter(B,C)&&(_=d?Jc(e,c,C,-1):C),G(_,"reset")}}},[i,$,n[$]]),l.useEffect(function(){i?H.current=$:H.current=null},[i,$]),Nt(function(){i&&f&&f[$]&&G(f[$],"reset")},[i,$]),[U,G]}function DV(e,t){return BV(e)||HV(e,t)||_V(e,t)||jV()}function jV(){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 _V(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 HV(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 BV(e){if(Array.isArray(e))return e}function D6(e,t){var n=l.useRef(e),r=l.useState({}),i=DV(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 Sa(e,t){return FV(e)||VV(e,t)||j6(e,t)||LV()}function LV(){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 VV(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 FV(e){if(Array.isArray(e))return e}function l1(e){return qV(e)||WV(e)||j6(e)||kV()}function kV(){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 j6(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 WV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qV(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}var YV=[];function _6(e,t,n){var r=function(c){return c.map(function(d){return er(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&&!T6(e,h,y)){p=g;break}}return[p<0,p!==0]};return[r,i]}function H6(e,t){return l1(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function UV(e){var t=D6(e),n=Sa(t,2),r=n[0],i=n[1],s=ut(function(){i(e)});return l.useEffect(function(){s()},[e]),[r,i]}function B6(e,t,n,r,i,s,c,d,f){var p=Yt(s,c),g=Sa(p,2),h=g[0],y=g[1],C=h||YV,b=UV(C),$=Sa(b,2),S=$[0],w=$[1],M=_6(e,t,n),x=Sa(M,2),R=x[0],T=x[1],N=ut(function(P){var D=l1(P);if(r)for(var W=0;W<2;W+=1)D[W]=D[W]||null;else i&&(D=H6(D.filter(function(_){return _}),e));var k=T(S(),D),U=Sa(k,2),G=U[0],L=U[1];if(!G&&(w(D),d)){var H=R(D);d(D,H,{range:L?"end":"start"})}}),O=function(){f&&f(S())};return[C,y,S,N,O]}function L6(e,t,n,r,i,s,c,d,f,p){var g=e.generateConfig,h=e.locale,y=e.picker,C=e.onChange,b=e.allowEmpty,$=e.order,S=s.some(function(G){return G})?!1:$,w=_6(g,h,c),M=Sa(w,2),x=M[0],R=M[1],T=D6(t),N=Sa(T,2),O=N[0],P=N[1],D=ut(function(){P(t)});l.useEffect(function(){D()},[t]);var W=ut(function(G){var L=G===null,H=l1(G||O());if(L)for(var _=Math.max(s.length,H.length),B=0;B<_;B+=1)s[B]||(H[B]=null);S&&H[0]&&H[1]&&(H=H6(H,g)),i(H);var I=H,z=Sa(I,2),V=z[0],A=z[1],j=!V,q=!A,X=b?(!j||b[0])&&(!q||b[1]):!0,K=!$||j||q||Rr(g,h,V,A,y)||g.isAfter(A,V),Z=(s[0]||!V||!p(V,{activeIndex:0}))&&(s[1]||!A||!p(A,{from:V,activeIndex:1})),ee=L||X&&K&&Z;if(ee){n(H);var ie=R(H,t),ne=Sa(ie,1),oe=ne[0];if(C&&!oe){var de=H.every(function(le){return!le});C(L&&de?null:H,de?null:x(H))}}return ee}),k=ut(function(G,L){var H=su(O(),G,r()[G]);P(H),L&&W()}),U=!d&&!f;return i1(!U,function(){U&&(W(),i(t),D())},2),[k,W]}function V6(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 GV(e){return ZV(e)||QV(e)||KV(e)||XV()}function XV(){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 KV(e,t){if(e){if(typeof e=="string")return Xv(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 Xv(e,t)}}function QV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZV(e){if(Array.isArray(e))return Xv(e)}function Xv(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 JV(e,t,n,r,i,s){var c=e;function d(h,y,C){var b=s[h](c),$=C.find(function(x){return x.value===b});if(!$||$.disabled){var S=C.filter(function(x){return!x.disabled}),w=GV(S).reverse(),M=w.find(function(x){return x.value<=b})||S[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 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 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 eM(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){eF(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 eF(e,t,n){return t=tF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tF(e){var t=nF(e,"string");return Du(t)=="symbol"?t:String(t)}function nF(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 Uf(e,t){return iF(e)||aF(e,t)||oF(e,t)||rF()}function rF(){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 oF(e,t){if(e){if(typeof e=="string")return tM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tM(e,t)}}function tM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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 Gf(){return[]}function Xf(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:n1(f,s),value:f,disabled:p})}return c}function s1(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,C=r.hideDisabledOptions,b=r.disabledTime,$=r.disabledHours,S=r.disabledMinutes,w=r.disabledSeconds,M=l.useMemo(function(){return n||e.getNow()},[n,e]),x=l.useCallback(function(I){var z=b?.(I)||{};return[z.disabledHours||$||Gf,z.disabledMinutes||S||Gf,z.disabledSeconds||w||Gf,z.disabledMilliseconds||Gf]},[b,$,S,w]),R=l.useMemo(function(){return x(M)},[M,x]),T=Uf(R,4),N=T[0],O=T[1],P=T[2],D=T[3],W=l.useCallback(function(I,z,V,A){var j=Xf(0,23,c,C,I()),q=i?j.map(function(ee){return eM(eM({},ee),{},{label:n1(ee.value%12||12,2)})}):j,X=function(ie){return Xf(0,59,f,C,z(ie))},K=function(ie,ne){return Xf(0,59,g,C,V(ie,ne))},Z=function(ie,ne,oe){return Xf(0,999,y,C,A(ie,ne,oe),3)};return[q,X,K,Z]},[C,c,i,y,f,g]),k=l.useMemo(function(){return W(N,O,P,D)},[W,N,O,P,D]),U=Uf(k,4),G=U[0],L=U[1],H=U[2],_=U[3],B=function(z,V){var A=function(){return G},j=L,q=H,X=_;if(V){var K=x(V),Z=Uf(K,4),ee=Z[0],ie=Z[1],ne=Z[2],oe=Z[3],de=W(ee,ie,ne,oe),le=Uf(de,4),fe=le[0],ge=le[1],re=le[2],ue=le[3];A=function(){return fe},j=ge,q=re,X=ue}var he=JV(z,A,j,q,X,e);return he};return[B,G,L,H,_]}function lF(e,t){return dF(e)||uF(e,t)||cF(e,t)||sF()}function sF(){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 cF(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 uF(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 dF(e){if(Array.isArray(e))return e}function fF(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(jo),C=y.prefixCls,b=y.locale,$=y.button,S=$===void 0?"button":$,w=y.classNames,M=y.styles,x=g.getNow(),R=s1(g,s,x),T=lF(R,1),N=T[0],O=r?.(t),P=h(x,{type:t}),D=function(){if(!P){var _=N(x);d(_)}},W="".concat(C,"-now"),k="".concat(W,"-btn"),U=i&&l.createElement("li",{className:W},l.createElement("a",{className:Q(k,P&&"".concat(k,"-disabled")),"aria-disabled":P,onClick:D},n==="date"?b.today:b.now)),G=p&&l.createElement("li",{className:"".concat(C,"-ok")},l.createElement(S,{disabled:f,onClick:c},b.ok)),L=(U||G)&&l.createElement("ul",{className:"".concat(C,"-ranges")},U,G);return!O&&!L?null:l.createElement("div",{className:Q("".concat(C,"-footer"),w.popup.footer),style:M.popup.footer},O&&l.createElement("div",{className:"".concat(C,"-footer-extra")},O),L)}function rM(e){return hF(e)||gF(e)||pF(e)||mF()}function mF(){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 pF(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 gF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hF(e){if(Array.isArray(e))return Kv(e)}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F6(e,t,n){function r(i,s){var c=i.findIndex(function(f){return Rr(e,t,f,s,n)});if(c===-1)return[].concat(rM(i),[s]);var d=rM(i);return d.splice(c,1),d}return r}var k6=l.createContext(null),ul=l.createContext(null);function Wp(){return l.useContext(ul)}function Bs(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,C=e.pickerValue,b=e.onSelect,$=e.prevIcon,S=e.nextIcon,w=e.superPrevIcon,M=e.superNextIcon,x=l.useContext(k6),R=x.classNames,T=x.styles,N=r.getNow(),O={now:N,values:y,pickerValue:C,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:S,superPrevIcon:w,superNextIcon:M};return[O,N]}var ci=l.createContext({});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){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 yF(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){Li(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 Li(e,t,n){return t=bF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bF(e){var t=vF(e,"string");return ju(t)=="symbol"?t:String(t)}function vF(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 SF(e,t){return wF(e)||xF(e,t)||$F(e,t)||CF()}function CF(){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 $F(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 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 wF(e){if(Array.isArray(e))return e}function xd(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,C=e.disabledDate,b=Wp(),$=b.prefixCls,S=b.classNames,w=b.styles,M=b.panelType,x=b.now,R=b.disabledDate,T=b.cellRender,N=b.onHover,O=b.hoverValue,P=b.hoverRangeValue,D=b.generateConfig,W=b.values,k=b.locale,U=b.onSelect,G=C||R,L="".concat($,"-cell"),H=l.useContext(ci),_=H.onCellDblClick,B=function(K){return W.some(function(Z){return Z&&Rr(D,k,K,Z,M)})},I=[],z=0;z<t;z+=1){for(var V=[],A=void 0,j=function(){var K=z*n+q,Z=i(r,K),ee=G?.(Z,{type:M});q===0&&(A=Z,s&&V.push(s(A)));var ie=!1,ne=!1,oe=!1;if(y&&P){var de=SF(P,2),le=de[0],fe=de[1];ie=kp(D,le,fe,Z),ne=Rr(D,k,Z,le,M),oe=Rr(D,k,Z,fe,M)}var ge=d?er(Z,{locale:k,format:d,generateConfig:D}):void 0,re=l.createElement("div",{className:"".concat(L,"-inner")},f(Z));V.push(l.createElement("td",{key:q,title:ge,className:Q(L,S.item,yF(Li(Li(Li(Li(Li(Li({},"".concat(L,"-disabled"),ee),"".concat(L,"-hover"),(O||[]).some(function(ue){return Rr(D,k,Z,ue,M)})),"".concat(L,"-in-range"),ie&&!ne&&!oe),"".concat(L,"-range-start"),ne),"".concat(L,"-range-end"),oe),"".concat($,"-cell-selected"),!P&&M!=="week"&&B(Z)),p(Z))),style:w.item,onClick:function(){ee||U(Z)},onDoubleClick:function(){!ee&&_&&_()},onMouseEnter:function(){ee||N?.(Z)},onMouseLeave:function(){ee||N?.(null)}},T?T(Z,{prefixCls:$,originNode:re,today:x,type:M,locale:k}):re))},q=0;q<n;q+=1)j();I.push(l.createElement("tr",{key:z,className:c?.(A)},V))}return l.createElement("div",{className:Q("".concat($,"-body"),S.body),style:w.body},l.createElement("table",{className:Q("".concat($,"-content"),S.content),style:w.content},g&&l.createElement("thead",null,l.createElement("tr",null,g)),l.createElement("tbody",null,I)))}var Kf={visibility:"hidden"};function Ls(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,s=e.getEnd,c=e.children,d=Wp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.prevIcon,y=h===void 0?"‹":h,C=d.nextIcon,b=C===void 0?"›":C,$=d.superPrevIcon,S=$===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,P=d.panelType,D="".concat(f,"-header"),W=l.useContext(ci),k=W.hidePrev,U=W.hideNext,G=W.hideHeader,L=l.useMemo(function(){if(!x||!t||!s)return!1;var X=s(t(-1,O));return!qf(T,N,X,x,P)},[x,t,O,s,T,N,P]),H=l.useMemo(function(){if(!x||!n||!s)return!1;var X=s(n(-1,O));return!qf(T,N,X,x,P)},[x,n,O,s,T,N,P]),_=l.useMemo(function(){if(!R||!t||!i)return!1;var X=i(t(1,O));return!qf(T,N,R,X,P)},[R,t,O,i,T,N,P]),B=l.useMemo(function(){if(!R||!n||!i)return!1;var X=i(n(1,O));return!qf(T,N,R,X,P)},[R,n,O,i,T,N,P]),I=function(K){t&&r(t(K,O))},z=function(K){n&&r(n(K,O))};if(G)return null;var V="".concat(D,"-prev-btn"),A="".concat(D,"-next-btn"),j="".concat(D,"-super-prev-btn"),q="".concat(D,"-super-next-btn");return l.createElement("div",{className:Q(D,p.header),style:g.header},n&&l.createElement("button",{type:"button","aria-label":N.previousYear,onClick:function(){return z(-1)},tabIndex:-1,className:Q(j,H&&"".concat(j,"-disabled")),disabled:H,style:k?Kf:{}},S),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:k?Kf:{}},y),l.createElement("div",{className:"".concat(D,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":N.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:Q(A,_&&"".concat(A,"-disabled")),disabled:_,style:U?Kf:{}},b),n&&l.createElement("button",{type:"button","aria-label":N.nextYear,onClick:function(){return z(1)},tabIndex:-1,className:Q(q,B&&"".concat(q,"-disabled")),disabled:B,style:U?Kf:{}},M))}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 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 Fy(e,t,n){return t=EF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=MF(e,"string");return _u(t)=="symbol"?t:String(t)}function MF(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 RF(e,t){return IF(e)||NF(e,t)||OF(e,t)||TF()}function TF(){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 OF(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 NF(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 qp(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,C=e.onHover,b=e.showWeek,$="".concat(t,"-").concat(r,"-panel"),S="".concat(t,"-cell"),w=g==="week",M=Bs(e,g),x=RF(M,2),R=x[0],T=x[1],N=s.locale.getWeekFirstDay(i.locale),O=s.setDate(c,1),P=VL(i.locale,s,O),D=s.getMonth(c),W=b===void 0?w:b,k=W?function(j){var q=h?.(j,{type:"week"});return l.createElement("td",{key:"week",className:Q(S,"".concat(S,"-week"),Fy({},"".concat(S,"-disabled"),q)),onClick:function(){q||y(j)},onMouseEnter:function(){q||C?.(j)},onMouseLeave:function(){q||C?.(null)}},l.createElement("div",{className:"".concat(S,"-inner")},s.locale.getWeek(i.locale,j)))}:null,U=[],G=i.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(i.locale):[]);k&&U.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<By;L+=1)U.push(l.createElement("th",{key:L},G[(L+N)%By]));var H=function(q,X){return s.addDate(q,X)},_=function(q){return er(q,{locale:i,format:i.cellDateFormat,generateConfig:s})},B=function(q){var X=Fy(Fy({},"".concat(t,"-cell-in-view"),o1(s,q,c)),"".concat(t,"-cell-today"),a1(s,q,T));return X},I=i.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(i.locale):[]),z=l.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},er(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?er(c,{locale:i,format:i.monthFormat,generateConfig:s}):I[D]),A=i.monthBeforeYear?[V,z]:[z,V];return l.createElement(ul.Provider,{value:R},l.createElement("div",{className:Q($,b&&"".concat($,"-show-week"))},l.createElement(Ls,{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 X=s.setDate(q,1);return X=s.addMonth(X,1),s.addDate(X,-1)}},A),l.createElement(xd,Qv({titleFormat:i.fieldDateFormat},e,{colNum:By,rowNum:6,baseDate:P,headerCells:U,getCellDate:H,getCellText:_,getCellClassName:B,prefixColumn:k,cellSelection:!w}))))}var PF=1/3;function zF(e,t){var n=l.useRef(!1),r=l.useRef(null),i=l.useRef(null),s=function(){return n.current},c=function(){Ht.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,'"]')),C=h.querySelector("li"),b=function $(){c(),n.current=!0,d.current+=1;var S=h.scrollTop,w=C.offsetTop,M=y.offsetTop,x=M-w;if(M===0&&y!==C||!wp(h)){d.current<=5&&(r.current=Ht($));return}var R=S+(x-S)*PF,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=Ht($)};y&&C&&b()}},p=ut(f);return[p,c,s]}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 lM(e,t,n){return t=AF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AF(e){var t=DF(e,"string");return Hu(t)=="symbol"?t:String(t)}function DF(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 jF(e){return BF(e)||HF(e)||W6(e)||_F()}function _F(){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 HF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BF(e){if(Array.isArray(e))return Zv(e)}function LF(e,t){return kF(e)||FF(e,t)||W6(e,t)||VF()}function VF(){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 W6(e,t){if(e){if(typeof e=="string")return Zv(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 Zv(e,t)}}function Zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,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}var WF=300;function qF(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function Lc(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=Wp(),g=p.prefixCls,h=p.cellRender,y=p.now,C=p.locale,b=p.classNames,$=p.styles,S="".concat(g,"-time-panel"),w="".concat(g,"-time-panel-cell"),M=l.useRef(null),x=l.useRef(),R=function(){clearTimeout(x.current)},T=zF(M,n??r),N=LF(T,3),O=N[0],P=N[1],D=N[2];Nt(function(){return O(),R(),function(){P(),R()}},[n,r,qF(t)]);var W=function(G){R();var L=G.target;!D()&&f&&(x.current=setTimeout(function(){var H=M.current,_=H.querySelector("li").offsetTop,B=Array.from(H.querySelectorAll("li")),I=B.map(function(q){return q.offsetTop-_}),z=I.map(function(q,X){return t[X].disabled?Number.MAX_SAFE_INTEGER:Math.abs(q-L.scrollTop)}),V=Math.min.apply(Math,jF(z)),A=z.findIndex(function(q){return q===V}),j=t[A];j&&!j.disabled&&s(j.value)},WF))},k="".concat(S,"-column");return l.createElement("ul",{className:k,ref:M,"data-type":i,onScroll:W},t.map(function(U){var G=U.label,L=U.value,H=U.disabled,_=l.createElement("div",{className:"".concat(w,"-inner")},G);return l.createElement("li",{key:L,style:$.item,className:Q(w,b.item,lM(lM({},"".concat(w,"-selected"),n===L),"".concat(w,"-disabled"),H)),onClick:function(){H||s(L)},onDoubleClick:function(){!H&&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:C}):_)}))}function Wi(){return Wi=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},Wi.apply(this,arguments)}function Vc(e,t){return XF(e)||GF(e,t)||UF(e,t)||YF()}function YF(){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 UF(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 GF(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 XF(e){if(Array.isArray(e))return e}function Ja(e){return e<12}function KF(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,s=e.use12Hours,c=e.changeOnScroll,d=Wp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.values,y=d.generateConfig,C=d.locale,b=d.onSelect,$=d.onHover,S=$===void 0?function(){}:$,w=d.pickerValue,M=h?.[0]||null,x=l.useContext(ci),R=x.onCellDblClick,T=s1(y,e,M),N=Vc(T,5),O=N[0],P=N[1],D=N[2],W=N[3],k=N[4],U=function(ze){var Xe=M&&y[ze](M),rt=w&&y[ze](w);return[Xe,rt]},G=U("getHour"),L=Vc(G,2),H=L[0],_=L[1],B=U("getMinute"),I=Vc(B,2),z=I[0],V=I[1],A=U("getSecond"),j=Vc(A,2),q=j[0],X=j[1],K=U("getMillisecond"),Z=Vc(K,2),ee=Z[0],ie=Z[1],ne=H===null?null:Ja(H)?"am":"pm",oe=l.useMemo(function(){return s?Ja(H)?P.filter(function(Fe){return Ja(Fe.value)}):P.filter(function(Fe){return!Ja(Fe.value)}):P},[H,P,s]),de=function(ze,Xe){var rt,ot=ze.filter(function(lt){return!lt.disabled});return Xe??(ot==null||(rt=ot[0])===null||rt===void 0?void 0:rt.value)},le=de(P,H),fe=l.useMemo(function(){return D(le)},[D,le]),ge=de(fe,z),re=l.useMemo(function(){return W(le,ge)},[W,le,ge]),ue=de(re,q),he=l.useMemo(function(){return k(le,ge,ue)},[k,le,ge,ue]),pe=de(he,ee),Se=l.useMemo(function(){if(!s)return[];var Fe=y.getNow(),ze=y.setHour(Fe,6),Xe=y.setHour(Fe,18),rt=function(lt,St){var Ct=C.cellMeridiemFormat;return Ct?er(lt,{generateConfig:y,locale:C,format:Ct}):St};return[{label:rt(ze,"AM"),value:"am",disabled:P.every(function(ot){return ot.disabled||!Ja(ot.value)})},{label:rt(Xe,"PM"),value:"pm",disabled:P.every(function(ot){return ot.disabled||Ja(ot.value)})}]},[P,s,y,C]),Ie=function(ze){var Xe=O(ze);b(Xe)},Re=l.useMemo(function(){var Fe=M||w||y.getNow(),ze=function(rt){return rt!=null};return ze(H)?(Fe=y.setHour(Fe,H),Fe=y.setMinute(Fe,z),Fe=y.setSecond(Fe,q),Fe=y.setMillisecond(Fe,ee)):ze(_)?(Fe=y.setHour(Fe,_),Fe=y.setMinute(Fe,V),Fe=y.setSecond(Fe,X),Fe=y.setMillisecond(Fe,ie)):ze(le)&&(Fe=y.setHour(Fe,le),Fe=y.setMinute(Fe,ge),Fe=y.setSecond(Fe,ue),Fe=y.setMillisecond(Fe,pe)),Fe},[M,w,H,z,q,ee,le,ge,ue,pe,_,V,X,ie,y]),we=function(ze,Xe){return ze===null?null:y[Xe](Re,ze)},se=function(ze){return we(ze,"setHour")},be=function(ze){return we(ze,"setMinute")},Ee=function(ze){return we(ze,"setSecond")},Ne=function(ze){return we(ze,"setMillisecond")},Ve=function(ze){return ze===null?null:ze==="am"&&!Ja(H)?y.setHour(Re,H-12):ze==="pm"&&Ja(H)?y.setHour(Re,H+12):Re},Ge=function(ze){Ie(se(ze))},et=function(ze){Ie(be(ze))},Te=function(ze){Ie(Ee(ze))},_e=function(ze){Ie(Ne(ze))},Le=function(ze){Ie(Ve(ze))},Qe=function(ze){S(se(ze))},De=function(ze){S(be(ze))},ve=function(ze){S(Ee(ze))},Pe=function(ze){S(Ne(ze))},Ze=function(ze){S(Ve(ze))},Ue={onDblClick:R,changeOnScroll:c};return l.createElement("div",{className:Q("".concat(f,"-content"),p.content),style:g.content},t&&l.createElement(Lc,Wi({units:oe,value:H,optionalValue:_,type:"hour",onChange:Ge,onHover:Qe},Ue)),n&&l.createElement(Lc,Wi({units:fe,value:z,optionalValue:V,type:"minute",onChange:et,onHover:De},Ue)),r&&l.createElement(Lc,Wi({units:re,value:q,optionalValue:X,type:"second",onChange:Te,onHover:ve},Ue)),i&&l.createElement(Lc,Wi({units:he,value:ee,optionalValue:ie,type:"millisecond",onChange:_e,onHover:Pe},Ue)),s&&l.createElement(Lc,Wi({units:Se,value:ne,type:"meridiem",onChange:Le,onHover:Ze},Ue)))}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.
|
|
240
|
+
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 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 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 q6(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=Bs(e,"time"),g=QF(p,1),h=g[0];return l.createElement(ul.Provider,{value:h},l.createElement("div",{className:Q(f)},l.createElement(Ls,null,n?er(n,{locale:r,format:d,generateConfig:i}):" "),l.createElement(KF,s)))}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 nk(e,t){return ik(e)||ak(e,t)||ok(e,t)||rk()}function rk(){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 ok(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 ak(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 ik(e){if(Array.isArray(e))return e}function lk(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=s1(n,r),g=nk(p,1),h=g[0],y=function(S){return s?tp(n,S,s):tp(n,S,c)},C=function(S){d?.(S&&y(S))},b=function(S){var w=y(S);i(h(w,w))};return l.createElement("div",{className:f},l.createElement(qp,Jv({},e,{onSelect:b,onHover:C})),l.createElement(q6,e))}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 sk(e,t,n){return t=ck(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ck(e){var t=uk(e,"string");return Bu(t)=="symbol"?t:String(t)}function uk(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 dk(e,t){return gk(e)||pk(e,t)||mk(e,t)||fk()}function fk(){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 mk(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 pk(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 gk(e){if(Array.isArray(e))return e}function hk(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=Bs(e,"decade"),p=dk(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)},C=h(i),b=y(i),$=r.addYear(C,-10),S=function(N,O){return r.addYear(N,O*10)},w=function(N){var O=n.cellYearFormat,P=er(N,{locale:n,format:O,generateConfig:r}),D=er(r.addYear(N,9),{locale:n,format:O,generateConfig:r});return"".concat(P,"-").concat(D)},M=function(N){return sk({},"".concat(t,"-cell-in-view"),Yv(r,N,C)||Yv(r,N,b)||kp(r,C,b,N))},x=s?function(T,N){var O=r.setDate(T,1),P=r.setMonth(O,0),D=r.setYear(P,Math.floor(r.getYear(P)/10)*10),W=r.addYear(D,10),k=r.addDate(W,-1);return s(D,N)&&s(k,N)}:null,R="".concat(er(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(er(b,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(ul.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ls,{superOffset:function(N){return r.addYear(i,N*100)},onChange:c,getStart:h,getEnd:y},R),l.createElement(xd,e0({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:$,getCellDate:S,getCellText:w,getCellClassName:M}))))}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 yk(e,t,n){return t=bk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bk(e){var t=vk(e,"string");return Lu(t)=="symbol"?t:String(t)}function vk(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 Sk(e,t){return wk(e)||xk(e,t)||$k(e,t)||Ck()}function Ck(){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 $k(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 xk(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 wk(e){if(Array.isArray(e))return e}function Ek(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=Bs(e,"month"),g=Sk(p,1),h=g[0],y=r.setMonth(i,0),C=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?er(R,{locale:n,format:n.monthFormat,generateConfig:r}):C[T]},S=function(){return yk({},"".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")},er(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(ul.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ls,{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(xd,t0({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:b,getCellText:$,getCellClassName:S}))))}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 Mk(e,t,n){return t=Rk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rk(e){var t=Tk(e,"string");return Vu(t)=="symbol"?t:String(t)}function Tk(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 Ok(e,t){return zk(e)||Pk(e,t)||Ik(e,t)||Nk()}function Nk(){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 Ik(e,t){if(e){if(typeof e=="string")return mM(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 mM(e,t)}}function mM(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 Pk(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 zk(e){if(Array.isArray(e))return e}function Ak(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=Bs(e,"quarter"),p=Ok(f,1),g=p[0],h=r.setMonth(i,0),y=function(w,M){return r.addMonth(w,M*3)},C=function(w){return er(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},b=function(){return Mk({},"".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")},er(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(ul.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ls,{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(xd,n0({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:h,getCellDate:y,getCellText:C,getCellClassName:b}))))}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 Dk(e,t,n){return t=jk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jk(e){var t=_k(e,"string");return Fu(t)=="symbol"?t:String(t)}function _k(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 Hk(e,t){return Fk(e)||Vk(e,t)||Lk(e,t)||Bk()}function Bk(){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 Lk(e,t){if(e){if(typeof e=="string")return pM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pM(e,t)}}function pM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vk(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 Fk(e){if(Array.isArray(e))return e}function kk(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 C=Hk(c,2),b=C[0],$=C[1],S=Zc(n,d,b,h),w=Zc(n,d,$,h);y["".concat(f,"-range-start")]=S,y["".concat(f,"-range-end")]=w,y["".concat(f,"-range-hover")]=!S&&!w&&kp(n,b,$,h)}return s&&(y["".concat(f,"-hover")]=s.some(function(M){return Zc(n,d,h,M)})),Q(f,Dk({},"".concat(f,"-selected"),!c&&Zc(n,d,i,h)),y)};return l.createElement(qp,r0({},e,{mode:"week",panelName:"week",rowClassName: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)}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function Wk(e,t,n){return t=qk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qk(e){var t=Yk(e,"string");return ku(t)=="symbol"?t:String(t)}function Yk(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 Uk(e,t){return Qk(e)||Kk(e,t)||Xk(e,t)||Gk()}function Gk(){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 Xk(e,t){if(e){if(typeof e=="string")return gM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gM(e,t)}}function gM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kk(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 Qk(e){if(Array.isArray(e))return e}function Zk(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=Bs(e,"year"),g=Uk(p,1),h=g[0],y=function(O){var P=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,P)},C=function(O){var P=y(O);return r.addYear(P,9)},b=y(i),$=C(i),S=r.addYear(b,-1),w=function(O,P){return r.addYear(O,P)},M=function(O){return er(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},x=function(O){return Wk({},"".concat(t,"-cell-in-view"),nl(r,O,b)||nl(r,O,$)||kp(r,b,$,O))},R=s?function(N,O){var P=r.setMonth(N,0),D=r.setDate(P,1),W=r.addYear(D,1),k=r.addDate(W,-1);return s(D,O)&&s(k,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")},er(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-",er($,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(ul.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ls,{superOffset:function(O){return r.addYear(i,O*10)},onChange:c,getStart:y,getEnd:C},T),l.createElement(xd,o0({},e,{disabledDate:R,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:S,getCellDate:w,getCellText:M,getCellClassName:x}))))}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 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 yM(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){Y6(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 Y6(e,t,n){return t=Jk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jk(e){var t=eW(e,"string");return Wu(t)=="symbol"?t:String(t)}function eW(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 bM(e){return rW(e)||nW(e)||U6(e)||tW()}function tW(){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 nW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rW(e){if(Array.isArray(e))return i0(e)}function Fc(e,t){return iW(e)||aW(e,t)||U6(e,t)||oW()}function oW(){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 U6(e,t){if(e){if(typeof e=="string")return i0(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 i0(e,t)}}function i0(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 iW(e){if(Array.isArray(e))return e}var lW={date:qp,datetime:lk,week:kk,month:Ek,quarter:Ak,year:Zk,decade:hk,time:q6};function sW(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,C=e.onChange,b=e.onSelect,$=e.defaultPickerValue,S=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,P=e.hoverRangeValue,D=e.cellRender,W=e.dateRender,k=e.monthCellRender,U=e.components,G=U===void 0?{}:U,L=e.hideHeader,H=l.useContext(jo)||{},_=H.prefixCls,B=H.classNames,I=H.styles,z=_||d||"rc-picker",V=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:V.current}});var A=E6(e),j=Fc(A,4),q=j[0],X=j[1],K=j[2],Z=j[3],ee=$6(i,X),ie=T==="date"&&N?"datetime":T,ne=l.useMemo(function(){return M6(ie,K,Z,q,ee)},[ie,K,Z,q,ee]),oe=s.getNow(),de=Yt(T||"date",M),le=Fc(de,2),fe=le[0],ge=le[1],re=fe==="date"&&ne?"datetime":fe,ue=F6(s,i,ie),he=Yt(h,y),pe=Fc(he,2),Se=pe[0],Ie=pe[1],Re=l.useMemo(function(){var ze=cl(Se).filter(function(Xe){return Xe});return g?ze:ze.slice(0,1)},[Se,g]),we=ut(function(ze){Ie(ze),C&&(ze===null||Re.length!==ze.length||Re.some(function(Xe,rt){return!Rr(s,i,Xe,ze[rt],ie)}))&&C?.(g?ze:ze[0])}),se=ut(function(ze){if(b?.(ze),fe===T){var Xe=g?ue(Re,ze):[ze];we(Xe)}}),be=Yt($||Re[0]||oe,S),Ee=Fc(be,2),Ne=Ee[0],Ve=Ee[1];l.useEffect(function(){Re[0]&&!S&&Ve(Re[0])},[Re[0]]);var Ge=function(Xe,rt){x?.(Xe||S,rt||fe)},et=function(Xe){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ve(Xe),w?.(Xe),rt&&Ge(Xe)},Te=function(Xe,rt){ge(Xe),rt&&et(rt),Ge(rt,Xe)},_e=function(Xe){if(se(Xe),et(Xe),fe!==T){var rt=["decade","year"],ot=[].concat(rt,["month"]),lt={quarter:[].concat(rt,["quarter"]),week:[].concat(bM(ot),["week"]),date:[].concat(bM(ot),["date"])},St=lt[T]||ot,Ct=St.indexOf(fe),qe=St[Ct+1];qe&&Te(qe,Xe)}},Le=l.useMemo(function(){var ze,Xe;if(Array.isArray(P)){var rt=Fc(P,2);ze=rt[0],Xe=rt[1]}else ze=P;return!ze&&!Xe?null:(ze=ze||Xe,Xe=Xe||ze,s.isAfter(ze,Xe)?[Xe,ze]:[ze,Xe])},[P,s]),Qe=r1(D,W,k),De=G[re]||lW[re]||qp,ve=l.useMemo(function(){var ze,Xe,rt,ot;return{classNames:(ze=(Xe=B?.popup)!==null&&Xe!==void 0?Xe:n)!==null&&ze!==void 0?ze:{},styles:(rt=(ot=I?.popup)!==null&&ot!==void 0?ot:r)!==null&&rt!==void 0?rt:{}}},[B,n,I,r]),Pe=l.useContext(ci),Ze=l.useMemo(function(){return yM(yM({},Pe),{},{hideHeader:L})},[Pe,L]),Ue="".concat(z,"-panel"),Fe=Fp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(k6.Provider,{value:ve},l.createElement(ci.Provider,{value:Ze},l.createElement("div",{ref:V,tabIndex:p,className:Q(Ue,Y6({},"".concat(Ue,"-rtl"),c==="rtl"))},l.createElement(De,a0({},Fe,{showTime:ne,prefixCls:z,locale:ee,generateConfig:s,onModeChange:Te,pickerValue:Ne,onPickerValueChange:function(Xe){et(Xe,!0)},value:Re[0],onSelect:_e,values:Re,cellRender:Qe,hoverRangeValue:Le,hoverValue:O})))))}var Nm=l.memo(l.forwardRef(sW));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 l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function vM(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 ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vM(Object(n),!0).forEach(function(r){cW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cW(e,t,n){return t=uW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uW(e){var t=dW(e,"string");return qu(t)=="symbol"?t:String(t)}function dW(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 fW(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(jo),g=p.prefixCls,h=p.generateConfig,y=l.useCallback(function(M,x){return Jc(h,t,M,x)},[h,t]),C=l.useMemo(function(){return y(r,1)},[r,y]),b=function(x){i(y(x,-1))},$={onCellDblClick:function(){s&&c()}},S=t==="time",w=ji(ji({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:S});return d?w.hoverRangeValue=f:w.hoverValue=f,n?l.createElement("div",{className:"".concat(g,"-panels")},l.createElement(ci.Provider,{value:ji(ji({},$),{},{hideNext:!0})},l.createElement(Nm,w)),l.createElement(ci.Provider,{value:ji(ji({},$),{},{hidePrev:!0})},l.createElement(Nm,l0({},w,{pickerValue:C,onPickerValueChange:b})))):l.createElement(ci.Provider,{value:ji({},$)},l.createElement(Nm,w))}function SM(e){return typeof e=="function"?e():e}function mW(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(SM(f))},onMouseEnter:function(){i(SM(f))},onMouseLeave:function(){i(null)}},d)}))):null}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 CM(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 pW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){s0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s0(e,t,n){return t=gW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gW(e){var t=hW(e,"string");return Yu(t)=="symbol"?t:String(t)}function hW(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function np(){return np=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},np.apply(this,arguments)}function kc(e,t){return SW(e)||vW(e,t)||bW(e,t)||yW()}function yW(){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 bW(e,t){if(e){if(typeof e=="string")return $M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $M(e,t)}}function $M(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vW(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 SW(e){if(Array.isArray(e))return e}function G6(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,C=e.onPresetSubmit,b=e.onFocus,$=e.onBlur,S=e.onPanelMouseDown,w=e.direction,M=e.value,x=e.onSelect,R=e.isInvalid,T=e.defaultOpenValue,N=e.onOk,O=e.onSubmit,P=e.classNames,D=e.styles,W=l.useContext(jo),k=W.prefixCls,U="".concat(k,"-panel"),G=w==="rtl",L=l.useRef(null),H=l.useRef(null),_=l.useState(0),B=kc(_,2),I=B[0],z=B[1],V=l.useState(0),A=kc(V,2),j=A[0],q=A[1],X=l.useState(0),K=kc(X,2),Z=K[0],ee=K[1],ie=function(Te){Te.width&&z(Te.width)},ne=kc(g,3),oe=ne[0],de=ne[1],le=ne[2],fe=l.useState(0),ge=kc(fe,2),re=ge[0],ue=ge[1];l.useEffect(function(){ue(10)},[oe]),l.useEffect(function(){if(d&&H.current){var et,Te=((et=L.current)===null||et===void 0?void 0:et.offsetWidth)||0,_e=H.current.getBoundingClientRect();if(!_e.height||_e.right<0){ue(function(ve){return Math.max(0,ve-1)});return}var Le=(G?de-Te:oe)-_e.left;if(ee(Le),I&&I<le){var Qe=G?_e.right-(de-Te+I):oe+Te-_e.left-I,De=Math.max(0,Qe);q(De)}else q(0)}},[re,G,I,oe,de,le,d]);function he(et){return et.filter(function(Te){return Te})}var pe=l.useMemo(function(){return he(cl(M))},[M]),Se=s==="time"&&!pe.length,Ie=l.useMemo(function(){return Se?he([T]):pe},[Se,pe,T]),Re=Se?T:pe,we=l.useMemo(function(){return Ie.length?Ie.some(function(et){return R(et)}):!0},[Ie,R]),se=function(){Se&&x(T),N(),O()},be=l.createElement("div",{className:"".concat(k,"-panel-layout")},l.createElement(mW,{prefixCls:k,presets:h,onClick:C,onHover:y}),l.createElement("div",null,l.createElement(fW,np({},e,{value:Re})),l.createElement(fF,np({},e,{showNow:f?!1:c,invalid:we,onSubmit:se}))));r&&(be=r(be));var Ee="".concat(U,"-container"),Ne="marginLeft",Ve="marginRight",Ge=l.createElement("div",{onMouseDown:S,tabIndex:-1,className:Q(Ee,"".concat(k,"-").concat(i,"-panel-container"),P==null||(t=P.popup)===null||t===void 0?void 0:t.container),style:pW(s0(s0({},G?Ve:Ne,j),G?Ne:Ve,"auto"),D==null||(n=D.popup)===null||n===void 0?void 0:n.container),onFocus:b,onBlur:$},be);return d&&(Ge=l.createElement("div",{onMouseDown:S,ref:H,className:Q("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(s,"-range-wrapper"))},l.createElement("div",{ref:L,className:"".concat(k,"-range-arrow"),style:{left:Z}}),l.createElement(Vr,{onResize:ie},Ge))),Ge}function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function xM(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 wM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){CW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CW(e,t,n){return t=$W(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $W(e){var t=xW(e,"string");return Uu(t)=="symbol"?t:String(t)}function xW(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 X6(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,C=e.onInputChange,b=e.onInvalid,$=e.open,S=e.onOpenChange,w=e.onKeyDown,M=e.onChange,x=e.activeHelp,R=e.name,T=e.autoComplete,N=e.id,O=e.value,P=e.invalid,D=e.placeholder,W=e.disabled,k=e.activeIndex,U=e.allHelp,G=e.picker,L=function(j,q){var X=i.locale.parse(s.locale,j,[q]);return X&&i.isValidate(X)?X:null},H=n[0],_=l.useCallback(function(A){return er(A,{locale:s,format:H,generateConfig:i})},[s,i,H]),B=l.useMemo(function(){return O.map(_)},[O,_]),I=l.useMemo(function(){var A=G==="time"?8:10,j=typeof H=="function"?H(i.getNow()).length:H.length;return Math.max(A,j)+2},[H,G,i]),z=function(j){for(var q=0;q<n.length;q+=1){var X=n[q];if(typeof X=="string"){var K=L(j,X);if(K)return K}}return!1},V=function(j){function q(Z){return j!==void 0?Z[j]:Z}var X=jn(e,{aria:!0,data:!0}),K=wM(wM({},X),{},{format:r,validateFormat:function(ee){return!!z(ee)},preserveInvalidOnBlur:c,readOnly:d,required:f,"aria-required":p,name:R,autoComplete:T,size:I,id:q(N),value:q(B)||"",invalid:q(P),placeholder:q(D),active:k===j,helped:U||x&&k===j,disabled:q(W),onFocus:function(ee){h(ee,j)},onBlur:function(ee){y(ee,j)},onSubmit:g,onChange:function(ee){C();var ie=z(ee);if(ie){b(!1,j),M(ie,j);return}b(!!ee,j)},onHelp:function(){S(!0,{index:j})},onKeyDown:function(ee){var ie=!1;if(w?.(ee,function(){ie=!0}),!ee.defaultPrevented&&!ie)switch(ee.key){case"Escape":S(!1,{index:j});break;case"Enter":$||S(!0);break}}},t?.({valueTexts:B}));return Object.keys(K).forEach(function(Z){K[Z]===void 0&&delete K[Z]}),K};return[V,_]}var wW=["onMouseEnter","onMouseLeave"];function K6(e){return l.useMemo(function(){return Fp(e,wW)},[e])}var EW=["icon","type"],MW=["onClear"];function rp(){return rp=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},rp.apply(this,arguments)}function Q6(e,t){if(e==null)return{};var n=RW(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 RW(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 Yp(e){var t=e.icon,n=e.type,r=Q6(e,EW),i=l.useContext(jo),s=i.prefixCls,c=i.classNames,d=i.styles;return t?l.createElement("span",rp({className:Q("".concat(s,"-").concat(n),c.suffix),style:d.suffix},r),t):null}function c0(e){var t=e.onClear,n=Q6(e,MW);return l.createElement(Yp,rp({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}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 TW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OW(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,Z6(r.key),r)}}function NW(e,t,n){return t&&OW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qf(e,t,n){return t=Z6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6(e){var t=IW(e,"string");return Gu(t)=="symbol"?t:String(t)}function IW(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)}var ky=["YYYY","MM","DD","HH","mm","ss","SSS"],EM="顧",PW=(function(){function e(t){TW(this,e),Qf(this,"format",void 0),Qf(this,"maskFormat",void 0),Qf(this,"cells",void 0),Qf(this,"maskCells",void 0),this.format=t;var n=ky.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return EM.repeat(d.length)});var i=new RegExp("(".concat(ky.join("|"),")")),s=(t.split(i)||[]).filter(function(d){return d}),c=0;this.cells=s.map(function(d){var f=ky.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 NW(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!==EM&&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 zW(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}function 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)}var AW=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(this,arguments)}function MM(e,t,n){return t=DW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DW(e){var t=jW(e,"string");return Xu(t)=="symbol"?t:String(t)}function jW(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 _i(e,t){return LW(e)||BW(e,t)||HW(e,t)||_W()}function _W(){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 HW(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 BW(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 LW(e){if(Array.isArray(e))return e}function VW(e,t){if(e==null)return{};var n=FW(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 FW(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 d0=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,C=e.onKeyDown,b=e.preserveInvalidOnBlur,$=b===void 0?!1:b,S=e.invalid,w=e.clearIcon,M=VW(e,AW),x=e.value,R=e.onFocus,T=e.onBlur,N=e.onMouseUp,O=l.useContext(jo),P=O.prefixCls,D=O.input,W=D===void 0?"input":D,k=O.classNames,U=O.styles,G="".concat(P,"-input"),L=l.useState(!1),H=_i(L,2),_=H[0],B=H[1],I=l.useState(x),z=_i(I,2),V=z[0],A=z[1],j=l.useState(""),q=_i(j,2),X=q[0],K=q[1],Z=l.useState(null),ee=_i(Z,2),ie=ee[0],ne=ee[1],oe=l.useState(null),de=_i(oe,2),le=de[0],fe=de[1],ge=V||"";l.useEffect(function(){A(x)},[x]);var re=l.useRef(null),ue=l.useRef(null);l.useImperativeHandle(t,function(){return{nativeElement:re.current,inputElement:ue.current,focus:function(Ze){ue.current.focus(Ze)},blur:function(){ue.current.blur()}}});var he=l.useMemo(function(){return new PW(d||"")},[d]),pe=l.useMemo(function(){return g?[0,0]:he.getSelection(ie)},[he,ie,g]),Se=_i(pe,2),Ie=Se[0],Re=Se[1],we=function(Ze){Ze&&Ze!==d&&Ze!==x&&h()},se=ut(function(Pe){f(Pe)&&p(Pe),A(Pe),we(Pe)}),be=function(Ze){if(!d){var Ue=Ze.target.value;we(Ue),A(Ue),p(Ue)}},Ee=function(Ze){var Ue=Ze.clipboardData.getData("text");f(Ue)&&se(Ue)},Ne=l.useRef(!1),Ve=function(){Ne.current=!0},Ge=function(Ze){var Ue=Ze.target,Fe=Ue.selectionStart,ze=he.getMaskCellIndex(Fe);ne(ze),fe({}),N?.(Ze),Ne.current=!1},et=function(Ze){B(!0),ne(0),K(""),R(Ze)},Te=function(Ze){T(Ze)},_e=function(Ze){B(!1),Te(Ze)};i1(r,function(){!r&&!$&&A(x)});var Le=function(Ze){Ze.key==="Enter"&&f(ge)&&y(),C?.(Ze)},Qe=function(Ze){Le(Ze);var Ue=Ze.key,Fe=null,ze=null,Xe=Re-Ie,rt=d.slice(Ie,Re),ot=function(qe){ne(function(at){var He=at+qe;return He=Math.max(He,0),He=Math.min(He,he.size()-1),He})},lt=function(qe){var at=zW(rt),He=_i(at,3),Ae=He[0],We=He[1],Me=He[2],Ye=ge.slice(Ie,Re),Je=Number(Ye);if(isNaN(Je))return String(Me||(qe>0?Ae:We));var it=Je+qe,ft=We-Ae+1;return String(Ae+(ft+it-Ae)%ft)};switch(Ue){case"Backspace":case"Delete":Fe="",ze=rt;break;case"ArrowLeft":Fe="",ot(-1);break;case"ArrowRight":Fe="",ot(1);break;case"ArrowUp":Fe="",ze=lt(1);break;case"ArrowDown":Fe="",ze=lt(-1);break;default:isNaN(Number(Ue))||(Fe=X+Ue,ze=Fe);break}if(Fe!==null&&(K(Fe),Fe.length>=Xe&&(ot(1),K(""))),ze!==null){var St=ge.slice(0,Ie)+n1(ze,Xe)+ge.slice(Re);se(St.slice(0,d.length))}fe({})},De=l.useRef();Nt(function(){if(!(!_||!d||Ne.current)){if(!he.match(ge)){se(d);return}return ue.current.setSelectionRange(Ie,Re),De.current=Ht(function(){ue.current.setSelectionRange(Ie,Re)}),function(){Ht.cancel(De.current)}}},[he,d,_,ge,ie,Ie,Re,le,se]);var ve=d?{onFocus:et,onBlur:_e,onKeyDown:Qe,onMouseDown:Ve,onMouseUp:Ge,onPaste:Ee}:{};return l.createElement("div",{ref:re,className:Q(G,MM(MM({},"".concat(G,"-active"),r&&s),"".concat(G,"-placeholder"),g),n)},l.createElement(W,u0({ref:ue,"aria-invalid":S,autoComplete:"off"},M,{onKeyDown:Le,onBlur:Te},ve,{value:ge,onChange:be,className:k.input,style:U.input})),l.createElement(Yp,{type:"suffix",icon:c}),w)}),kW=["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"],WW=["index"];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 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 Zf(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){eu(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 eu(e,t,n){return t=qW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qW(e){var t=YW(e,"string");return Ts(t)=="symbol"?t:String(t)}function YW(e,t){if(Ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OM(e,t){return KW(e)||XW(e,t)||GW(e,t)||UW()}function UW(){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 GW(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 XW(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 KW(e){if(Array.isArray(e))return e}function Ts(e){"@babel/helpers - typeof";return Ts=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},Ts(e)}function IM(e,t){if(e==null)return{};var n=QW(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 QW(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 ZW(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,C=e.onClick,b=e.onClear,$=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=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=IM(e,kW),P=M==="rtl",D=l.useContext(jo),W=D.prefixCls,k=D.classNames,U=D.styles,G=l.useMemo(function(){if(typeof n=="string")return[n];var de=n||{};return[de.start,de.end]},[n]),L=l.useRef(),H=l.useRef(),_=l.useRef(),B=function(le){var fe;return(fe=[H,_][le])===null||fe===void 0?void 0:fe.current};l.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(le){if(Ts(le)==="object"){var fe,ge=le||{},re=ge.index,ue=re===void 0?0:re,he=IM(ge,WW);(fe=B(ue))===null||fe===void 0||fe.focus(he)}else{var pe;(pe=B(le??0))===null||pe===void 0||pe.focus()}},blur:function(){var le,fe;(le=B(0))===null||le===void 0||le.blur(),(fe=B(1))===null||fe===void 0||fe.blur()}}});var I=K6(O),z=l.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),V=X6(Zf(Zf({},e),{},{id:G,placeholder:z})),A=OM(V,1),j=A[0],q=l.useState({position:"absolute",width:0}),X=OM(q,2),K=X[0],Z=X[1],ee=ut(function(){var de=B(f);if(de){var le=de.nativeElement.getBoundingClientRect(),fe=L.current.getBoundingClientRect(),ge=le.left-fe.left;Z(function(re){return Zf(Zf({},re),{},{width:le.width,left:ge})}),x([le.left,le.right,fe.width])}});l.useEffect(function(){ee()},[f]);var ie=i&&($[0]&&!S[0]||$[1]&&!S[1]),ne=T&&!S[0],oe=T&&!ne&&!S[1];return l.createElement(Vr,{onResize:ee},l.createElement("div",cu({},I,{className:Q(W,"".concat(W,"-range"),eu(eu(eu(eu({},"".concat(W,"-focused"),p),"".concat(W,"-disabled"),S.every(function(de){return de})),"".concat(W,"-invalid"),w.some(function(de){return de})),"".concat(W,"-rtl"),P),h),style:y,ref:L,onClick:C,onMouseDown:function(le){var fe=le.target;fe!==H.current.inputElement&&fe!==_.current.inputElement&&le.preventDefault(),R?.(le)}}),r&&l.createElement("div",{className:Q("".concat(W,"-prefix"),k.prefix),style:U.prefix},r),l.createElement(d0,cu({ref:H},j(0),{className:"".concat(W,"-input-start"),autoFocus:ne,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(W,"-range-separator")},d),l.createElement(d0,cu({ref:_},j(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(Yp,{type:"suffix",icon:s}),ie&&l.createElement(c0,{icon:i,onClear:b})))}var JW=l.forwardRef(ZW);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 PM(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 Jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){eq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eq(e,t,n){return t=tq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tq(e){var t=nq(e,"string");return Ku(t)=="symbol"?t:String(t)}function nq(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 J6(e,t){return l.useMemo(function(){var n=Jf(Jf({},e),{},{popup:e?.popup||{}}),r=Jf(Jf({},t),{},{popup:t?.popup||{}});return[n,r]},[e,t])}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 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)}function zM(e){return aq(e)||oq(e)||e3(e)||rq()}function rq(){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 oq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aq(e){if(Array.isArray(e))return f0(e)}function AM(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 em(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AM(Object(n),!0).forEach(function(r){iq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iq(e,t,n){return t=lq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lq(e){var t=sq(e,"string");return Qu(t)=="symbol"?t:String(t)}function sq(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 bo(e,t){return dq(e)||uq(e,t)||e3(e,t)||cq()}function cq(){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 e3(e,t){if(e){if(typeof e=="string")return f0(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 f0(e,t)}}function f0(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 uq(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 dq(e){if(Array.isArray(e))return e}function DM(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function tm(e){return e===1?"end":"start"}function fq(e,t){var n=O6(e,function(){var Vt=e.disabled,bt=e.allowEmpty,xt=DM(Vt,!1),cn=DM(bt,!1);return{disabled:xt,allowEmpty:cn}}),r=bo(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,C=i.classNames,b=i.previewValue,$=i.defaultValue,S=i.value,w=i.needConfirm,M=i.onKeyDown,x=i.disabled,R=i.allowEmpty,T=i.disabledDate,N=i.minDate,O=i.maxDate,P=i.defaultOpen,D=i.open,W=i.onOpenChange,k=i.locale,U=i.generateConfig,G=i.picker,L=i.showNow,H=i.showToday,_=i.showTime,B=i.mode,I=i.onPanelChange,z=i.onCalendarChange,V=i.onOk,A=i.defaultPickerValue,j=i.pickerValue,q=i.onPickerValueChange,X=i.inputReadOnly,K=i.suffixIcon,Z=i.onFocus,ee=i.onBlur,ie=i.presets,ne=i.ranges,oe=i.components,de=i.cellRender,le=i.dateRender,fe=i.monthCellRender,ge=i.onClick,re=I6(t),ue=J6(C,y),he=bo(ue,2),pe=he[0],Se=he[1],Ie=N6(D,P,x,W),Re=bo(Ie,2),we=Re[0],se=Re[1],be=function(bt,xt){(x.some(function(cn){return!cn})||!bt)&&se(bt,xt)},Ee=B6(U,k,d,!0,!1,$,S,z,V),Ne=bo(Ee,5),Ve=Ne[0],Ge=Ne[1],et=Ne[2],Te=Ne[3],_e=Ne[4],Le=et(),Qe=z6(x,R,we),De=bo(Qe,9),ve=De[0],Pe=De[1],Ze=De[2],Ue=De[3],Fe=De[4],ze=De[5],Xe=De[6],rt=De[7],ot=De[8],lt=function(bt,xt){Pe(!0),Z?.(bt,{range:tm(xt??Ue)})},St=function(bt,xt){Pe(!1),ee?.(bt,{range:tm(xt??Ue)})},Ct=l.useMemo(function(){if(!_)return null;var Vt=_.disabledTime,bt=Vt?function(xt){var cn=tm(Ue),kn=b6(Le,Xe,Ue);return Vt(xt,cn,{from:kn})}:void 0;return em(em({},_),{},{disabledTime:bt})},[_,Ue,Le,Xe]),qe=Yt([G,G],B),at=bo(qe,2),He=at[0],Ae=at[1],We=He[Ue]||G,Me=We==="date"&&Ct?"datetime":We,Ye=Me===G&&Me!=="time",Je=V6(G,We,L,H,!0),it=L6(i,Ve,Ge,et,Te,x,d,ve,we,p),ft=bo(it,2),Ft=ft[0],Dt=ft[1],$t=NV(Le,x,Xe,U,k,T),tn=S6(Le,p,R),wt=bo(tn,2),Ke=wt[0],Et=wt[1],mt=A6(U,k,Le,He,we,Ue,s,Ye,A,j,Ct?.defaultOpenValue,q,N,O),Rt=bo(mt,2),Ut=Rt[0],an=Rt[1],kt=ut(function(Vt,bt,xt){var cn=su(He,Ue,bt);if((cn[0]!==He[0]||cn[1]!==He[1])&&Ae(cn),I&&xt!==!1){var kn=zM(Le);Vt&&(kn[Ue]=Vt),I(kn,cn)}}),wn=function(bt,xt){return su(Le,xt,bt)},En=function(bt,xt){var cn=Le;bt&&(cn=wn(bt,Ue)),rt(Ue);var kn=ze(cn);Te(cn),Ft(Ue,kn===null),kn===null?be(!1,{force:!0}):xt||re.current.focus({index:kn})},Cr=function(bt){var xt,cn=bt.target.getRootNode();if(!re.current.nativeElement.contains((xt=cn.activeElement)!==null&&xt!==void 0?xt:document.activeElement)){var kn=x.findIndex(function(ks){return!ks});kn>=0&&re.current.focus({index:kn})}be(!0),ge?.(bt)},fn=function(){Dt(null),be(!1,{force:!0})},mr=l.useState(null),Pn=bo(mr,2),$r=Pn[0],pr=Pn[1],gr=l.useState(null),Pr=bo(gr,2),Yr=Pr[0],yt=Pr[1],Sn=l.useMemo(function(){return Yr||Le},[Le,Yr]);l.useEffect(function(){we||yt(null)},[we]);var Mn=l.useState([0,0,0]),Fn=bo(Mn,2),In=Fn[0],wo=Fn[1],Zo=function(bt,xt){b==="hover"&&(yt(bt),pr(xt))},Eo=P6(ie,ne),_o=function(bt){Zo(bt,"preset")},tt=function(bt){var xt=Dt(bt);xt&&be(!1,{force:!0})},Jt=function(bt){En(bt)},_n=function(bt){Zo(bt?wn(bt,Ue):null,"cell")},Jo=function(bt){be(!0),lt(bt)},ea=function(){Ze("panel")},Ho=function(bt){var xt=su(Le,Ue,bt);Te(xt),!w&&!c&&s===Me&&En(bt)},io=function(){be(!1)},ml=r1(de,le,fe,tm(Ue)),pl=Le[Ue]||null,Bo=ut(function(Vt){return p(Vt,{activeIndex:Ue})}),Mt=l.useMemo(function(){var Vt=jn(i,!1),bt=nn(i,[].concat(zM(Object.keys(Vt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]));return bt},[i]),ht=l.createElement(G6,uu({},Mt,{showNow:Je,showTime:Ct,range:!0,multiplePanel:Ye,activeInfo:In,disabledDate:$t,onFocus:Jo,onBlur:St,onPanelMouseDown:ea,picker:G,mode:We,internalMode:Me,onPanelChange:kt,format:f,value:pl,isInvalid:Bo,onChange:null,onSelect:Ho,pickerValue:Ut,defaultOpenValue:cl(_?.defaultOpenValue)[Ue],onPickerValueChange:an,hoverValue:Sn,onHover:_n,needConfirm:w,onSubmit:En,onOk:_e,presets:Eo,onPresetHover:_o,onPresetSubmit:tt,onNow:Jt,cellRender:ml,classNames:pe,styles:Se})),Qn=function(bt,xt){var cn=wn(bt,xt);Te(cn)},zr=function(){Ze("input")},gl=function(bt,xt){var cn=Xe.length,kn=Xe[cn-1];if(cn&&kn!==xt&&w&&!R[kn]&&!ot(kn)&&Le[kn]){re.current.focus({index:kn});return}Ze("input"),be(!0,{inherit:!0}),Ue!==xt&&we&&!w&&c&&En(null,!0),Fe(xt),lt(bt,xt)},Jp=function(bt,xt){if(be(!1),!w&&Ze()==="input"){var cn=ze(Le);Ft(Ue,cn===null)}St(bt,xt)},hl=function(bt,xt){bt.key==="Tab"&&En(null,!0),M?.(bt,xt)},Mo=l.useMemo(function(){return{prefixCls:g,locale:k,generateConfig:U,button:oe.button,input:oe.input,classNames:pe,styles:Se}},[g,k,U,oe.button,oe.input,pe,Se]);return Nt(function(){we&&Ue!==void 0&&kt(null,G,!1)},[we,Ue,G]),Nt(function(){var Vt=Ze();!we&&Vt==="input"&&(be(!1),En(null,!0)),!we&&c&&!w&&Vt==="panel"&&(be(!0),En())},[we]),l.createElement(jo.Provider,{value:Mo},l.createElement(h6,uu({},v6(i),{popupElement:ht,popupStyle:Se.popup.root,popupClassName:Q(h,pe.popup.root),visible:we,onClose:io,range:!0}),l.createElement(JW,uu({},i,{ref:re,className:Q(i.className,h,pe.root),style:em(em({},Se.root),i.style),suffixIcon:K,activeIndex:ve||we?Ue:null,activeHelp:!!Yr,allHelp:!!Yr&&$r==="preset",focused:ve,onFocus:gl,onBlur:Jp,onKeyDown:hl,onSubmit:En,value:Sn,maskFormat:f,onChange:Qn,onInputChange:zr,format:d,inputReadOnly:X,disabled:x,open:we,onOpenChange:be,onClick:Cr,onClear:fn,invalid:Ke,onInvalid:Et,onActiveInfo:wo}))))}var mq=l.forwardRef(fq);function pq(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 C(S,w){return l.createElement("span",{className:Q("".concat(h,"-item")),title:typeof S=="string"?S:null},l.createElement("span",{className:"".concat(h,"-item-content")},S),!d&&w&&l.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:w,className:"".concat(h,"-item-remove")},s))}function b(S){var w=c(S),M=function(R){R&&R.stopPropagation(),r(S)};return C(w,M)}function $(S){var w="+ ".concat(S.length," ...");return C(w)}return l.createElement("div",{className:g},l.createElement(Yo,{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 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)}var gq=["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 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)}function jM(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 _M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(n),!0).forEach(function(r){is(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function is(e,t,n){return t=hq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hq(e){var t=yq(e,"string");return Zu(t)=="symbol"?t:String(t)}function yq(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 bq(e,t){return $q(e)||Cq(e,t)||Sq(e,t)||vq()}function vq(){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 Sq(e,t){if(e){if(typeof e=="string")return HM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HM(e,t)}}function HM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cq(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 $q(e){if(Array.isArray(e))return e}function xq(e,t){if(e==null)return{};var n=wq(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 wq(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 Eq(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,C=e.onClear,b=e.internalPicker,$=e.value,S=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 P=e.autoFocus,D=e.tabIndex,W=e.removeIcon,k=xq(e,gq),U=N==="rtl",G=l.useContext(jo),L=G.prefixCls,H=G.classNames,_=G.styles,B=l.useRef(),I=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:B.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 z=K6(k),V=function(ne){S([ne])},A=function(ne){var oe=$.filter(function(de){return de&&!Rr(f,d,de,ne,b)});S(oe),n||w()},j=X6(_M(_M({},e),{},{onChange:V}),function(ie){var ne=ie.valueTexts;return{value:ne[0]||"",active:c}}),q=bq(j,2),X=q[0],K=q[1],Z=!!(i&&$.length&&!R),ee=M?l.createElement(l.Fragment,null,l.createElement(pq,{prefixCls:L,value:$,onRemove:A,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:P,tabIndex:D}),l.createElement(Yp,{type:"suffix",icon:s}),Z&&l.createElement(c0,{icon:i,onClear:C})):l.createElement(d0,op({ref:I},X(),{autoFocus:P,tabIndex:D,suffixIcon:s,clearIcon:Z&&l.createElement(c0,{icon:i,onClear:C}),showActiveCls:!1}));return l.createElement("div",op({},z,{className:Q(L,is(is(is(is(is({},"".concat(L,"-multiple"),M),"".concat(L,"-focused"),c),"".concat(L,"-disabled"),R),"".concat(L,"-invalid"),T),"".concat(L,"-rtl"),U),g),style:h,ref:B,onClick:y,onMouseDown:function(ne){var oe,de=ne.target;de!==((oe=I.current)===null||oe===void 0?void 0:oe.inputElement)&&ne.preventDefault(),O?.(ne)}}),r&&l.createElement("div",{className:Q("".concat(L,"-prefix"),H.prefix),style:_.prefix},r),ee)}var Mq=l.forwardRef(Eq);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 du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function BM(e){return Oq(e)||Tq(e)||t3(e)||Rq()}function Rq(){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 Tq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oq(e){if(Array.isArray(e))return m0(e)}function LM(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 ya(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){Nq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nq(e,t,n){return t=Iq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iq(e){var t=Pq(e,"string");return Ju(t)=="symbol"?t:String(t)}function Pq(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 No(e,t){return Dq(e)||Aq(e,t)||t3(e,t)||zq()}function zq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
256
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t3(e,t){if(e){if(typeof e=="string")return m0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m0(e,t)}}function m0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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 Dq(e){if(Array.isArray(e))return e}function jq(e,t){var n=O6(e),r=No(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,C=g.styles,b=g.classNames,$=g.previewValue,S=g.order,w=g.defaultValue,M=g.value,x=g.needConfirm,R=g.onChange,T=g.onKeyDown,N=g.disabled,O=g.disabledDate,P=g.minDate,D=g.maxDate,W=g.defaultOpen,k=g.open,U=g.onOpenChange,G=g.locale,L=g.generateConfig,H=g.picker,_=g.showNow,B=g.showToday,I=g.showTime,z=g.mode,V=g.onPanelChange,A=g.onCalendarChange,j=g.onOk,q=g.multiple,X=g.defaultPickerValue,K=g.pickerValue,Z=g.onPickerValueChange,ee=g.inputReadOnly,ie=g.suffixIcon,ne=g.removeIcon,oe=g.onFocus,de=g.onBlur,le=g.presets,fe=g.components,ge=g.cellRender,re=g.dateRender,ue=g.monthCellRender,he=g.onClick,pe=I6(t);function Se(Mt){return Mt===null?null:q?Mt:Mt[0]}var Ie=F6(L,G,s),Re=J6(b,C),we=No(Re,2),se=we[0],be=we[1],Ee=N6(k,W,[N],U),Ne=No(Ee,2),Ve=Ne[0],Ge=Ne[1],et=function(ht,Qn,zr){if(A){var gl=ya({},zr);delete gl.range,A(Se(ht),Se(Qn),gl)}},Te=function(ht){j?.(Se(ht))},_e=B6(L,G,d,!1,S,w,M,et,Te),Le=No(_e,5),Qe=Le[0],De=Le[1],ve=Le[2],Pe=Le[3],Ze=Le[4],Ue=ve(),Fe=z6([N]),ze=No(Fe,4),Xe=ze[0],rt=ze[1],ot=ze[2],lt=ze[3],St=function(ht){rt(!0),oe?.(ht,{})},Ct=function(ht){rt(!1),de?.(ht,{})},qe=Yt(H,z),at=No(qe,2),He=at[0],Ae=at[1],We=He==="date"&&I?"datetime":He,Me=V6(H,He,_,B),Ye=R&&function(Mt,ht){R(Se(Mt),Se(ht))},Je=L6(ya(ya({},i),{},{onChange:Ye}),Qe,De,ve,Pe,[],d,Xe,Ve,p),it=No(Je,2),ft=it[1],Ft=S6(Ue,p),Dt=No(Ft,2),$t=Dt[0],tn=Dt[1],wt=l.useMemo(function(){return $t.some(function(Mt){return Mt})},[$t]),Ke=function(ht,Qn){if(Z){var zr=ya(ya({},Qn),{},{mode:Qn.mode[0]});delete zr.range,Z(ht[0],zr)}},Et=A6(L,G,Ue,[He],Ve,lt,s,!1,X,K,cl(I?.defaultOpenValue),Ke,P,D),mt=No(Et,2),Rt=mt[0],Ut=mt[1],an=ut(function(Mt,ht,Qn){if(Ae(ht),V&&Qn!==!1){var zr=Mt||Ue[Ue.length-1];V(zr,ht)}}),kt=function(){ft(ve()),Ge(!1,{force:!0})},wn=function(ht){!N&&!pe.current.nativeElement.contains(document.activeElement)&&pe.current.focus(),Ge(!0),he?.(ht)},En=function(){ft(null),Ge(!1,{force:!0})},Cr=l.useState(null),fn=No(Cr,2),mr=fn[0],Pn=fn[1],$r=l.useState(null),pr=No($r,2),gr=pr[0],Pr=pr[1],Yr=l.useMemo(function(){var Mt=[gr].concat(BM(Ue)).filter(function(ht){return ht});return q?Mt:Mt.slice(0,1)},[Ue,gr,q]),yt=l.useMemo(function(){return!q&&gr?[gr]:Ue.filter(function(Mt){return Mt})},[Ue,gr,q]);l.useEffect(function(){Ve||Pr(null)},[Ve]);var Sn=function(ht,Qn){$==="hover"&&(Pr(ht),Pn(Qn))},Mn=P6(le),Fn=function(ht){Sn(ht,"preset")},In=function(ht){var Qn=q?Ie(ve(),ht):[ht],zr=ft(Qn);zr&&!q&&Ge(!1,{force:!0})},wo=function(ht){In(ht)},Zo=function(ht){Sn(ht,"cell")},Eo=function(ht){Ge(!0),St(ht)},_o=function(ht){if(ot("panel"),!(q&&We!==H)){var Qn=q?Ie(ve(),ht):[ht];Pe(Qn),!x&&!c&&s===We&&kt()}},tt=function(){Ge(!1)},Jt=r1(ge,re,ue),_n=l.useMemo(function(){var Mt=jn(i,!1),ht=nn(i,[].concat(BM(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]));return ya(ya({},ht),{},{multiple:i.multiple})},[i]),Jo=l.createElement(G6,du({},_n,{showNow:Me,showTime:I,disabledDate:O,onFocus:Eo,onBlur:Ct,picker:H,mode:He,internalMode:We,onPanelChange:an,format:f,value:Ue,isInvalid:p,onChange:null,onSelect:_o,pickerValue:Rt,defaultOpenValue:I?.defaultOpenValue,onPickerValueChange:Ut,hoverValue:Yr,onHover:Zo,needConfirm:x,onSubmit:kt,onOk:Ze,presets:Mn,onPresetHover:Fn,onPresetSubmit:In,onNow:wo,cellRender:Jt,classNames:se,styles:be})),ea=function(ht){Pe(ht)},Ho=function(){ot("input")},io=function(ht){ot("input"),Ge(!0,{inherit:!0}),St(ht)},ml=function(ht){Ge(!1),Ct(ht)},pl=function(ht,Qn){ht.key==="Tab"&&kt(),T?.(ht,Qn)},Bo=l.useMemo(function(){return{prefixCls:h,locale:G,generateConfig:L,button:fe.button,input:fe.input,classNames:se,styles:be}},[h,G,L,fe.button,fe.input,se,be]);return Nt(function(){Ve&<!==void 0&&an(null,H,!1)},[Ve,lt,H]),Nt(function(){var Mt=ot();!Ve&&Mt==="input"&&(Ge(!1),kt()),!Ve&&c&&!x&&Mt==="panel"&&kt()},[Ve]),l.createElement(jo.Provider,{value:Bo},l.createElement(h6,du({},v6(i),{popupElement:Jo,popupStyle:be.popup.root,popupClassName:Q(y,se.popup.root),visible:Ve,onClose:tt}),l.createElement(Mq,du({},i,{ref:pe,className:Q(i.className,y,se.root),style:ya(ya({},be.root),i.style),suffixIcon:ie,removeIcon:ne,activeHelp:!!gr,allHelp:!!gr&&mr==="preset",focused:Xe,onFocus:io,onBlur:ml,onKeyDown:pl,onSubmit:kt,value:yt,maskFormat:f,onChange:ea,onInputChange:Ho,internalPicker:s,format:d,inputReadOnly:ee,disabled:N,open:Ve,onOpenChange:Ge,onClick:wn,onClear:En,invalid:wt,onInvalid:function(ht){tn(ht,0)}}))))}var _q=l.forwardRef(jq);function Hq(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Bq(e){return Hq(e).join("_")}const n3=l.createContext(null),Lq=n3.Provider,r3=l.createContext(null),Vq=r3.Provider;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 o3=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),C=l.useRef(null),[b,$]=Yt(d,s);l.useImperativeHandle(t,()=>({focus:M=>{y.current?.focus(M)},blur:()=>{y.current?.blur()},input:y.current,nativeElement:C.current}));const S=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:S,title:p,style:i,ref:C},l.createElement("input",p0({},h,{className:`${n}-input`,ref:y,onChange:w,disabled:c,checked:!!b,type:f})),l.createElement("span",{className:`${n}-inner`}))});function a3(e){const t=ae.useRef(null),n=()=>{Ht.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ht(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e?.(s)}]}const Fq=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}}}},kq=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:C,dotColorDisabled:b,lineType:$,radioColor:S,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}`]:Uo(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:S,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:C,paddingInlineEnd:C}}}},Wq=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:C,paddingXS:b,borderRadius:$,borderRadiusSM:S,borderRadiusLG:w,buttonCheckedBg:M,buttonSolidCheckedColor:x,colorTextDisabled:R,colorBgContainerDisabled:T,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:O,colorPrimary:P,colorPrimaryHover:D,colorPrimaryActive:W,buttonSolidCheckedBg:k,buttonSolidCheckedHoverBg:U,buttonSolidCheckedActiveBg:G,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:C,paddingInline:L(b).sub(i).equal(),paddingBlock:0,lineHeight:te(L(C).sub(L(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Uo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:M,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:D,borderColor:D,"&::before":{backgroundColor:D}},"&:active":{color:W,borderColor:W,"&::before":{backgroundColor:W}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:k,borderColor:k,"&:hover":{color:x,background:U,borderColor:U},"&:active":{color:x,background:G,borderColor:G}},"&-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"}}}},qq=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:C,colorWhite:b}=e,$=4,S=s,w=t?S-$*2:S-($+i)*2;return{radioSize:S,dotSize:w,dotColorDisabled:f,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:y,buttonSolidCheckedActiveBg:C,buttonBg:d,buttonCheckedBg:d,buttonColor:c,buttonCheckedBgDisabled:p,buttonCheckedColorDisabled:f,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?h:b,radioBgColor:t?d:h}},i3=Pt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=Ot(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Fq(s),kq(s),Wq(s)]},qq,{unitless:{radioSize:!0,dotSize:!0}}),Yq=(e,t)=>{const n=l.useContext(n3),r=l.useContext(r3),{getPrefixCls:i,direction:s,className:c,style:d,classNames:f,styles:p}=It("radio"),g=l.useRef(null),h=or(t,g),{isFormItemInput:y}=l.useContext(Tr),C=A=>{e.onChange?.(A),n?.onChange?.(A)},{prefixCls:b,className:$,rootClassName:S,children:w,style:M,title:x,classNames:R,styles:T,...N}=e,O=i("radio",b),P=(n?.optionType||r)==="button",D=P?`${O}-button`:O,W=ar(O),[k,U]=i3(O,W),G={...N},L=l.useContext(kr);n&&(G.name=n.name,G.onChange=C,G.checked=e.value===n.value,G.disabled=G.disabled??n.disabled),G.disabled=G.disabled??L;const H={...e,...G},[_,B]=Lt([f,R],[p,T],{props:H}),I=Q(`${D}-wrapper`,{[`${D}-wrapper-checked`]:G.checked,[`${D}-wrapper-disabled`]:G.disabled,[`${D}-wrapper-rtl`]:s==="rtl",[`${D}-wrapper-in-form-item`]:y,[`${D}-wrapper-block`]:!!n?.block},c,$,S,_.root,k,U,W),[z,V]=a3(G.onClick);return l.createElement(fd,{component:"Radio",disabled:G.disabled},l.createElement("label",{className:I,style:{...B.root,...d,...M},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:z},l.createElement(o3,{...G,className:Q(_.icon,{[dd]:!P}),style:B.icon,type:"radio",prefixCls:D,ref:h,onClick:V}),w!==void 0?l.createElement("span",{className:Q(`${D}-label`,_.label),style:B.label},w):null))},ap=l.forwardRef(Yq),Uq=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{name:i}=l.useContext(Tr),s=Ko(Bq(i)),{prefixCls:c,className:d,rootClassName:f,options:p,buttonStyle:g="outline",disabled:h,children:y,size:C,style:b,id:$,optionType:S,name:w=s,defaultValue:M,value:x,block:R=!1,onChange:T,onMouseEnter:N,onMouseLeave:O,onFocus:P,onBlur:D,orientation:W,vertical:k}=e,[U,G]=Yt(M,x),L=l.useCallback(K=>{const Z=U,ee=K.target.value;"value"in e||G(ee),ee!==Z&&T?.(K)},[U,G,T]),H=n("radio",c),_=`${H}-group`,B=ar(H),[I,z]=i3(H,B);let V=y;p&&p.length>0&&(V=p.map(K=>typeof K=="string"||typeof K=="number"?l.createElement(ap,{key:K.toString(),prefixCls:H,disabled:h,value:K,checked:U===K},K):l.createElement(ap,{key:`radio-group-value-options-${K.value}`,prefixCls:H,disabled:K.disabled||h,value:K.value,checked:U===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const A=fr(C),[,j]=id(W,k),q=Q(_,`${_}-${g}`,{[`${_}-${A}`]:A,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:R},d,f,I,z,B),X=l.useMemo(()=>({onChange:L,value:U,disabled:h,name:w,optionType:S,block:R}),[L,U,h,w,S,R]);return l.createElement("div",{...jn(e,{aria:!0,data:!0}),className:Q(q,{[`${H}-group-vertical`]:j}),style:b,onMouseEnter:N,onMouseLeave:O,onFocus:P,onBlur:D,id:$,ref:t},l.createElement(Lq,{value:X},V))}),l3=l.memo(Uq),Gq=(e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,...i}=e,s=n("radio",r);return l.createElement(Vq,{value:"button"},l.createElement(ap,{prefixCls:s,...i,type:"radio",ref:t}))},g0=l.forwardRef(Gq),c1=ap;c1.Button=g0;c1.Group=l3;c1.__ANT_RADIO=!0;const Xq=10,Kq=20;function Qq(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-Xq,h=g+Kq;n&&(g=r.getYear(n[0]),h=r.getYear(n[1])+1);const y=i&&i.year==="年"?"年":"",C=[];for(let b=g;b<h;b++)C.push({label:`${b}${y}`,value:b});return l.createElement(Lr,{size:t?void 0:"small",options:C,value:p,className:`${s}-year-select`,onChange:b=>{let $=r.setYear(c,b);if(n){const[S,w]=n,M=r.getYear($),x=r.getMonth($);M===r.getYear(w)&&x>r.getMonth(w)&&($=r.setMonth($,r.getMonth(w))),M===r.getYear(S)&&x<r.getMonth(S)&&($=r.setMonth($,r.getMonth(S)))}d($)},getPopupContainer:()=>f.current})}function Zq(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,S=s.getYear(i);s.getYear($)===S&&(h=s.getMonth($)),s.getYear(b)===S&&(g=s.getMonth(b))}const y=c.shortMonths||s.locale.getShortMonths(c.locale),C=[];for(let b=g;b<=h;b+=1)C.push({label:y[b],value:b});return l.createElement(Lr,{size:n?void 0:"small",className:`${t}-month-select`,value:p,options:C,onChange:b=>{d(s.setMonth(i,b))},getPopupContainer:()=>f.current})}function Jq(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:s}=e;return l.createElement(l3,{onChange:({target:{value:c}})=>{s(c)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},l.createElement(g0,{value:"month"},n.month),l.createElement(g0,{value:"year"},n.year))}function eY(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:s,className:c,style:d}=e,f=l.useRef(null),p=l.useContext(Tr),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(Tr.Provider,{value:g},l.createElement(Qq,{...h,onChange:y=>{i(y,"year")}}),r==="month"&&l.createElement(Zq,{...h,onChange:y=>{i(y,"month")}})),l.createElement(Jq,{...h,onModeChange:s}))}function Vs(e){return Ot(e,{inputAffixPadding:e.paddingXXS})}const Fs=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:C,colorPrimary:b,controlOutlineWidth:$,controlOutline:S,colorErrorOutline:w,colorWarningOutline:M,colorBgContainer:x,inputFontSize:R,inputFontSizeLG:T,inputFontSizeSM:N}=e,O=R||n,P=N||O,D=T||d,W=Math.round((t-O*r)/2*10)/10-i,k=Math.round((s-P*r)/2*10)/10-i,U=Math.ceil((c-D*f)/2*10)/10-i;return{paddingBlock:Math.max(W,0),paddingBlockSM:Math.max(k,0),paddingBlockLG:Math.max(U,0),paddingInline:p-i,paddingInlineSM:g-i,paddingInlineLG:h-i,addonBg:y,activeBorderColor:b,hoverBorderColor:C,activeShadow:`0 0 0 ${$}px ${S}`,errorActiveShadow:`0 0 0 ${$}px ${w}`,warningActiveShadow:`0 0 0 ${$}px ${M}`,hoverBg:x,activeBg:x,inputFontSize:O,inputFontSizeLG:D,inputFontSizeSM:P}},tY=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Up=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])":{...tY(Ot(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),u1=(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}}),VM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...u1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),s3=(e,t)=>({"&-outlined":{...u1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Up(e)},...VM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...VM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),FM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),nY=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}},...FM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...FM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Up(e)}}}}),c3=(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}}},u3=(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}}),kM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...u3(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),d3=(e,t)=>({"&-filled":{...u3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Up(e)},...kM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...kM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),WM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),rY=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...WM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...WM(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}`}}}}}),f3=(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}}),qM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...f3(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`}}),m3=(e,t)=>({"&-underlined":{...f3(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"},...qM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...qM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),p3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),g3=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${te(t)} ${te(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},d1=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),f1=(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}`,...p3(e.colorTextPlaceholder),"&-lg":{...g3(e),...t.largeStyle},"&-sm":{...d1(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),oY=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`]:{...g3(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...d1(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",...Zi(),[`${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`]:{}}}}},aY=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),...f1(e),...s3(e),...d3(e),...c3(e),...m3(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"}}}},iY=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)}`}}}},lY=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]:{...f1(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}},...iY(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}}}}},sY=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Zt(e),...oY(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}},...nY(e),...rY(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}}}}}},cY=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},h3=Pt(["Input","Shared"],e=>{const t=Ot(e,Vs(e));return[aY(t),lY(t)]},Fs,{resetFont:!1}),y3=Pt(["Input","Component"],e=>{const t=Ot(e,Vs(e));return[sY(t),cY(t),pd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Fs,{resetFont:!1}),uY=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())}},dY=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":{...Is(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}}}}},Wy=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",s=uY(e);return[{[`${n}-multiple${i}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:te(s.itemLineHeight)}}}]},fY=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[Wy(i,"small"),Wy(e),Wy(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"}},...dY(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},mY=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:C,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:C}},[`&-disabled${t}-today ${n}::before`]:{borderColor:y}}},b3=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:C,colorPrimary:b,colorTextHeading:$,colorSplit:S,pickerControlIconBorderWidth:w,colorIcon:M,textHeight:x,motionDurationMid:R,colorIconHover:T,fontWeightStrong:N,cellHeight:O,pickerCellPaddingVertical:P,colorTextDisabled:D,colorText:W,fontSize:k,motionDurationSlow:U,withoutTimeCellHeight:G,pickerQuarterPanelContentHeight:L,borderRadiusSM:H,colorTextLightSolid:_,cellHoverBg:B,timeColumnHeight:I,timeColumnWidth:z,timeCellHeight:V,controlItemBgActive:A,marginXXS:j,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:X}=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:C,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} ${S}`,"> *":{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:k,"&: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:X,insetInlineStart:X,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(P).mul(2)).equal(),color:W,verticalAlign:"middle"}},"&-cell":{padding:`${te(P)} 0`,color:D,cursor:"pointer","&-in-view":{color:W},...mY(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(G).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:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:B},"&-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:A}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${te(f)} ${te(d)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${te(h)} ${y} ${S}`},[`${t}-date-panel,
|
|
278
|
+
${t}-time-panel`]:{transition:`opacity ${U}`},"&-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:z,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} ${S}`},"&-active":{background:new en(A).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(j).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(V).div(2).equal(),color:W,lineHeight:te(V),borderRadius:H,cursor:"pointer",transition:`background ${R}`,"&:hover":{background:B}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:A}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:D,background:"transparent",cursor:"not-allowed"}}}}}}}}},pY=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"}}}}},v3=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()}},S3=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"}},gY=e=>({...Fs(e),...S3(e),...Dp(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),hY=e=>{const{componentCls:t}=e;return{[t]:[{...s3(e),...m3(e),...d3(e),...c3(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},qy=(e,t)=>({padding:`${te(e)} ${te(t)}`}),yY=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}}}}},bY=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:C,fontSizeSM:b,inputFontSizeSM:$,controlHeightSM:S,paddingInlineSM:w,paddingXS:M,marginXS:x,colorIcon:R,lineWidthBold:T,colorPrimary:N,motionDurationSlow:O,zIndexPopup:P,paddingXXS:D,sizePopupArrow:W,colorBgElevated:k,borderRadiusLG:U,boxShadowSecondary:G,borderRadiusSM:L,colorSplit:H,cellHoverBg:_,presetsWidth:B,presetsMaxWidth:I,boxShadowPopoverArrow:z,fontHeight:V,lineHeightLG:A}=e;return[{[t]:{...Zt(e),...qy(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`,...p3(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":{...qy(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:C??y,lineHeight:A}},"&-small":{...qy(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:$??b}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(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),...b3(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
|
280
|
+
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
|
281
|
+
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
|
282
|
+
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
|
283
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
|
284
|
+
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Np},[`&${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:Tp},[`&${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:Ip},[`&${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:Op},[`${t}-panel > ${t}-time-panel`]:{paddingTop:D},[`${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`,...DO(e,k,z),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:U,boxShadow:G,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:M,borderInlineEnd:`${te(i)} ${s} ${H}`,li:{...$o,borderRadius:L,paddingInline:M,paddingBlock:e.calc(S).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"}}}}},Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down")]},C3=Pt("DatePicker",e=>{const t=Ot(Vs(e),v3(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[pY(t),bY(t),hY(t),yY(t),fY(t),pd(e,{focusElCls:`${e.componentCls}-focused`})]},gY),vY=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:s}=e;return{[t]:{...b3(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"}}}}}}},SY=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...S3(e)}),CY=Pt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Ot(e,v3(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 vY(n)},SY),$3=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},h0=(e,t,n)=>{const{getMonth:r}=n;return $3(e,t,n)&&r(e)===r(t)},YM=(e,t,n)=>{const{getDate:r}=n;return h0(e,t,n)&&r(e)===r(t)},x3=e=>n=>{const{prefixCls:r,className:i,rootClassName:s,style:c,dateFullCellRender:d,dateCellRender:f,monthFullCellRender:p,monthCellRender:g,cellRender:h,fullCellRender:y,headerRender:C,value:b,defaultValue:$,disabledDate:S,mode:w,validRange:M,fullscreen:x=!0,showWeek:R,onChange:T,onPanelChange:N,onSelect:O,styles:P,classNames:D}=n,{getPrefixCls:W,direction:k,className:U,style:G,classNames:L,styles:H}=It("calendar"),_={...n,mode:w,fullscreen:x,showWeek:R},[B,I]=Lt([L,D],[H,P],{props:_}),[z,V,A,j,q,X]=l.useMemo(()=>{const{root:Ee,header:Ne,...Ve}=B,{root:Ge,header:et,...Te}=I;return[Ee,Ne,Ve,Ge,et,Te]},[B,I]),K=W("picker",r),Z=`${K}-calendar`,[ee,ie]=CY(K,Z),ne=e.getNow(),[oe,de]=Yt(()=>$||e.getNow(),b),[le,fe]=Yt("month",w),ge=l.useMemo(()=>le==="year"?"month":"date",[le]),re=l.useCallback(Ee=>(M?e.isAfter(M[0],Ee)||e.isAfter(Ee,M[1]):!1)||!!S?.(Ee),[S,M]),ue=(Ee,Ne)=>{N?.(Ee,Ne)},he=Ee=>{de(Ee),YM(Ee,oe,e)||((ge==="date"&&!h0(Ee,oe,e)||ge==="month"&&!$3(Ee,oe,e))&&ue(Ee,le),T?.(Ee))},pe=Ee=>{fe(Ee),ue(oe,Ee)},Se=(Ee,Ne)=>{he(Ee),O?.(Ee,{source:Ne})},Ie=l.useCallback((Ee,Ne)=>y?y(Ee,Ne):d?d(Ee):l.createElement("div",{className:Q(`${K}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:YM(ne,Ee,e)})},l.createElement("div",{className:`${Z}-date-value`},String(e.getDate(Ee)).padStart(2,"0")),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Ee,Ne):f?.(Ee))),[ne,K,Z,y,d,h,f]),Re=l.useCallback((Ee,Ne)=>{if(y)return y(Ee,Ne);if(p)return p(Ee);const Ve=Ne.locale.shortMonths||e.locale.getShortMonths(Ne.locale.locale);return l.createElement("div",{className:Q(`${K}-cell-inner`,`${Z}-date`,{[`${Z}-date-today`]:h0(ne,Ee,e)})},l.createElement("div",{className:`${Z}-date-value`},Ve[e.getMonth(Ee)]),l.createElement("div",{className:`${Z}-date-content`},typeof h=="function"?h(Ee,Ne):g?.(Ee)))},[ne,K,Z,y,p,h,g]),[we]=oo("Calendar",$u),se={...we,...n.locale},be=(Ee,Ne)=>{if(Ne.type==="date")return Ie(Ee,Ne);if(Ne.type==="month")return Re(Ee,{...Ne,locale:se?.lang})};return l.createElement("div",{className:Q(Z,{[`${Z}-full`]:x,[`${Z}-mini`]:!x,[`${Z}-rtl`]:k==="rtl"},U,i,s,z,ee,ie),style:{...j,...G,...c}},C?C({value:oe,type:le,onChange:Ee=>{Se(Ee,"customize")},onTypeChange:pe}):l.createElement(eY,{className:V,style:q,prefixCls:Z,value:oe,generateConfig:e,mode:le,fullscreen:x,locale:se?.lang,validRange:M,onChange:Se,onModeChange:pe}),l.createElement(Nm,{classNames:A,styles:X,value:oe,prefixCls:K,locale:se?.lang,generateConfig:e,cellRender:be,onSelect:Ee=>{Se(Ee,ge)},mode:ge,picker:ge,disabledDate:re,hideHeader:!0,showWeek:R}))},w3=x3(g6);w3.generateCalendar=x3;var $Y={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 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 xY=(e,t)=>l.createElement(gt,y0({},e,{ref:t,icon:$Y})),ip=l.forwardRef(xY);var Wc={exports:{}},UM;function wY(){if(UM)return Wc.exports;UM=1,Wc.exports=r,Wc.exports.isMobile=r,Wc.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 Wc.exports}var EY=wY();const MY=Ea(EY);let Yy;const RY=(()=>(typeof Yy>"u"&&(Yy=MY()),Yy)),m1=l.createContext(null),TY=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(){Ht.cancel(p.current)}return l.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const C=r?"right":"left";c==="start"&&(y[C]=t[C]),c==="center"&&(y[C]=t[C]+t.width/2,y.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[C]=t[C]+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=Ht(()=>{d&&y&&Object.keys(y).every(b=>{const $=y[b],S=d[b];return typeof $=="number"&&typeof S=="number"?Math.round($)===Math.round(S):$===S})||f(y)}),h},[JSON.stringify(t),n,r,c,g]),{style:d}},GM={width:0,height:0,left:0,top:0};function OY(e,t,n){return l.useMemo(()=>{const r=new Map,i=t.get(e[0]?.key)||GM,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)||GM);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 XM(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 NY=.1,KM=.01,Im=20,QM=.995**Im;function IY(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 C(){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)<NY)return;let T=w,N=M;g.current=window.setInterval(()=>{if(Math.abs(T)<KM&&Math.abs(N)<KM){window.clearInterval(g.current);return}T*=QM,N*=QM,t(T*Im,N*Im)},Im)}}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 S=l.useRef(null);S.current={onTouchStart:h,onTouchMove:y,onTouchEnd:C,onWheel:$},l.useEffect(()=>{function w(T){S.current.onTouchStart(T)}function M(T){S.current.onTouchMove(T)}function x(T){S.current.onTouchEnd(T)}function R(T){S.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 E3(e){const[t,n]=l.useState(0),r=l.useRef(0),i=l.useRef();return i.current=e,J4(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function PY(e){const t=l.useRef([]),[,n]=l.useState({}),r=l.useRef(typeof e=="function"?e():e),i=E3(()=>{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 ZM={width:0,height:0,left:0,top:0,right:0};function zY(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 C=y;for(let $=0;$<y;$+=1){const S=e.get(c[$].key)||ZM;if(Math.floor(S[g]+S[p])>Math.floor(h+t)){C=$-1;break}}let b=0;for(let $=y-1;$>=0;$-=1)if((e.get(c[$].key)||ZM)[g]<h){b=$+1;break}return b>C?[0,-1]:[b,C]},[e,t,r,i,s,h,d,c.map(y=>y.key).join("_"),f])}function JM(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const AY="TABS_DQ";function M3(e){return String(e).replace(/"/g,AY)}function p1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const R3=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||"+")}),e4=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 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 DY=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:C,onTabClick:b,getPopupContainer:$,popupClassName:S,popupStyle:w}=e,[M,x]=l.useState(!1),[R,T]=l.useState(null),{icon:N="More"}=d,O=`${r}-more-popup`,P=`${n}-dropdown`,D=R!==null?`${O}-${R}`:null,W=s?.dropdownAriaLabel;function k(I,z){I.preventDefault(),I.stopPropagation(),g.onEdit("remove",{key:z,event:I})}const U=l.createElement(Hs,{onClick:({key:I,domEvent:z})=>{b(I,z),x(!1)},prefixCls:`${P}-menu`,id:O,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[R],"aria-label":W!==void 0?W:"expanded dropdown"},i.map(I=>{const{closable:z,disabled:V,closeIcon:A,key:j,label:q}=I,X=p1(z,A,g,V);return l.createElement(Cd,{key:j,id:`${O}-${j}`,role:"option","aria-controls":r&&`${r}-panel-${j}`,disabled:V},l.createElement("span",null,q),X&&l.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:K=>{K.stopPropagation(),k(K,j)}},A||g.removeIcon||"×"))}));function G(I){const z=i.filter(j=>!j.disabled);let V=z.findIndex(j=>j.key===R)||0;const A=z.length;for(let j=0;j<A;j+=1){V=(V+I+A)%A;const q=z[V];if(!q.disabled){T(q.key);return}}}function L(I){const{which:z}=I;if(!M){[nt.DOWN,nt.SPACE,nt.ENTER].includes(z)&&(x(!0),I.preventDefault());return}switch(z){case nt.UP:G(-1),I.preventDefault();break;case nt.DOWN:G(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(D);I?.scrollIntoView&&I.scrollIntoView(!1)},[D,R]),l.useEffect(()=>{M||T(null)},[M]);const H={marginInlineStart:h};i.length||(H.visibility="hidden",H.order=1);const _=Q(S,{[`${P}-rtl`]:y}),B=c?null:l.createElement(YO,b0({prefixCls:P,overlay:U,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:H,"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},B,l.createElement(R3,{prefixCls:n,locale:s,editable:g}))}),jY=l.memo(DY,(e,t)=>t.tabMoving),_Y=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:C,onClick:b,onFocus:$,onBlur:S,onKeyDown:w,onMouseDown:M,onMouseUp:x,style:R,className:T,tabCount:N,currentPosition:O}=e,P=`${t}-tab`,D=p1(g,f,C,d);function W(H){d||b(H)}function k(H){H.preventDefault(),H.stopPropagation(),C.onEdit("remove",{key:s,event:H})}const U=l.useMemo(()=>p&&typeof c=="string"?l.createElement("span",null,c):c,[c,p]),G=l.useRef(null);l.useEffect(()=>{i&&G.current&&G.current.focus()},[i]);const L=l.createElement("div",{key:s,"data-node-key":M3(s),className:Q(P,T,{[`${P}-with-remove`]:D,[`${P}-active`]:r,[`${P}-disabled`]:d,[`${P}-focus`]:i}),style:R,onClick:W},l.createElement("div",{ref:G,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:H=>{H.stopPropagation(),W(H)},onKeyDown:w,onMouseDown:M,onMouseUp:x,onFocus:$,onBlur:S},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:`${P}-icon`},p),c&&U),D&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:H=>{H.stopPropagation(),k(H)}},f||C.removeIcon||"×"));return h?h(L):L};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 HY=(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]},os=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]},nm=(e,t)=>e[t?0:1],t4=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:C,onTabClick:b,onTabScroll:$,indicator:S,classNames:w,styles:M}=e,{prefixCls:x,tabs:R}=l.useContext(m1),T=l.useRef(null),N=l.useRef(null),O=l.useRef(null),P=l.useRef(null),D=l.useRef(null),W=l.useRef(null),k=l.useRef(null),U=h==="top"||h==="bottom",[G,L]=XM(0,(Ae,We)=>{U&&$&&$({direction:Ae>We?"left":"right"})}),[H,_]=XM(0,(Ae,We)=>{!U&&$&&$({direction:Ae>We?"top":"bottom"})}),[B,I]=l.useState([0,0]),[z,V]=l.useState([0,0]),[A,j]=l.useState([0,0]),[q,X]=l.useState([0,0]),[K,Z]=PY(new Map),ee=OY(R,K,z[0]),ie=nm(B,U),ne=nm(z,U),oe=nm(A,U),de=nm(q,U),le=Math.floor(ie)<Math.floor(ne+oe),fe=le?ie-de:ie-oe,ge=`${x}-nav-operations-hidden`;let re=0,ue=0;U&&d?(re=0,ue=Math.max(0,ne-fe)):(re=Math.min(0,fe-ne),ue=0);function he(Ae){return Ae<re?re:Ae>ue?ue:Ae}const pe=l.useRef(null),[Se,Ie]=l.useState();function Re(){Ie(Date.now())}function we(){pe.current&&clearTimeout(pe.current)}IY(P,(Ae,We)=>{function Me(Ye,Je){Ye(it=>he(it+Je))}return le?(U?Me(L,Ae):Me(_,We),we(),Re(),!0):!1}),l.useEffect(()=>(we(),Se&&(pe.current=setTimeout(()=>{Ie(0)},100)),we),[Se]);const[se,be]=zY(ee,fe,U?G:H,ne,oe,de,{...e,tabs:R}),Ee=ut((Ae=c)=>{const We=ee.get(Ae)||{width:0,height:0,left:0,right:0,top:0};if(U){let Me=G;d?We.right<G?Me=We.right:We.right+We.width>G+fe&&(Me=We.right+We.width-fe):We.left<-G?Me=-We.left:We.left+We.width>-G+fe&&(Me=-(We.left+We.width-fe)),_(0),L(he(Me))}else{let Me=H;We.top<-H?Me=-We.top:We.top+We.height>-H+fe&&(Me=-(We.top+We.height-fe)),L(0),_(he(Me))}}),[Ne,Ve]=l.useState(),[Ge,et]=l.useState(!1),Te=R.filter(Ae=>!Ae.disabled).map(Ae=>Ae.key),_e=Ae=>{const We=Te.indexOf(Ne||c),Me=Te.length,Ye=(We+Ae+Me)%Me,Je=Te[Ye];Ve(Je)},Le=(Ae,We)=>{const Me=Te.indexOf(Ae),Ye=R.find(it=>it.key===Ae);p1(Ye?.closable,Ye?.closeIcon,p,Ye?.disabled)&&(We.preventDefault(),We.stopPropagation(),p.onEdit("remove",{key:Ae,event:We}),Me===Te.length-1?_e(-1):_e(1))},Qe=(Ae,We)=>{et(!0),We.button===1&&Le(Ae,We)},De=Ae=>{const{code:We}=Ae,Me=d&&U,Ye=Te[0],Je=Te[Te.length-1];switch(We){case"ArrowLeft":{U&&_e(Me?1:-1);break}case"ArrowRight":{U&&_e(Me?-1:1);break}case"ArrowUp":{Ae.preventDefault(),U||_e(-1);break}case"ArrowDown":{Ae.preventDefault(),U||_e(1);break}case"Home":{Ae.preventDefault(),Ve(Ye);break}case"End":{Ae.preventDefault(),Ve(Je);break}case"Enter":case"Space":{Ae.preventDefault(),b(Ne??c,Ae);break}case"Backspace":case"Delete":{Le(Ne,Ae);break}}},ve={};U?ve.marginInlineStart=y:ve.marginTop=y;const Pe=R.map((Ae,We)=>{const{key:Me}=Ae;return l.createElement(_Y,{id:i,prefixCls:x,key:Me,tab:Ae,className:w?.item,style:We===0?M?.item:{...ve,...M?.item},closable:Ae.closable,editable:p,active:Me===c,focus:Me===Ne,renderWrapper:C,removeAriaLabel:g?.removeAriaLabel,tabCount:Te.length,currentPosition:We+1,onClick:Ye=>{b(Me,Ye)},onKeyDown:De,onFocus:()=>{Ge||Ve(Me),Ee(Me),Re(),P.current&&(d||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{Ve(void 0)},onMouseDown:Ye=>Qe(Me,Ye),onMouseUp:()=>{et(!1)}})}),Ze=()=>Z(()=>{const Ae=new Map,We=D.current?.getBoundingClientRect();return R.forEach(({key:Me})=>{const Ye=D.current?.querySelector(`[data-node-key="${M3(Me)}"]`);if(Ye){const[Je,it,ft,Ft]=HY(Ye,We);Ae.set(Me,{width:Je,height:it,left:ft,top:Ft})}}),Ae});l.useEffect(()=>{Ze()},[R.map(Ae=>Ae.key).join("_")]);const Ue=E3(()=>{const Ae=os(T),We=os(N),Me=os(O);I([Ae[0]-We[0]-Me[0],Ae[1]-We[1]-Me[1]]);const Ye=os(k);j(Ye);const Je=os(W);X(Je);const it=os(D);V([it[0]-Ye[0],it[1]-Ye[1]]),Ze()}),Fe=R.slice(0,se),ze=R.slice(be+1),Xe=[...Fe,...ze],rt=ee.get(c),{style:ot}=TY({activeTabOffset:rt,horizontal:U,indicator:S,rtl:d});l.useEffect(()=>{Ee()},[c,re,ue,JM(rt),JM(ee),U]),l.useEffect(()=>{Ue()},[d]);const lt=!!Xe.length,St=`${x}-nav-wrap`;let Ct,qe,at,He;return U?d?(qe=G>0,Ct=G!==ue):(Ct=G<0,qe=G!==re):(at=H<0,He=H!==re),l.createElement(Vr,{onResize:Ue},l.createElement("div",{ref:mi(t,T),role:"tablist","aria-orientation":U?"horizontal":"vertical",className:Q(`${x}-nav`,n,w?.header),style:{...M?.header,...r},onKeyDown:()=>{Re()}},l.createElement(e4,{ref:N,position:"left",extra:f,prefixCls:x}),l.createElement(Vr,{onResize:Ue},l.createElement("div",{className:Q(St,{[`${St}-ping-left`]:Ct,[`${St}-ping-right`]:qe,[`${St}-ping-top`]:at,[`${St}-ping-bottom`]:He}),ref:P},l.createElement(Vr,{onResize:Ue},l.createElement("div",{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${G}px, ${H}px)`,transition:Se?"none":void 0}},Pe,l.createElement(R3,{ref:k,prefixCls:x,locale:g,editable:p,style:{...Pe.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(jY,v0({},e,{removeAriaLabel:g?.removeAriaLabel,ref:W,prefixCls:x,tabs:Xe,className:!lt&&ge,popupStyle:M?.popup,tabMoving:!!Se})),l.createElement(e4,{ref:O,position:"right",extra:f,prefixCls:x})))}),BY=({renderTabBar:e,...t})=>e?e(t,t4):l.createElement(t4,t),LY=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 lp(){return lp=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},lp.apply(this,arguments)}const VY=e=>{const{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:s,contentStyle:c,contentClassName:d}=e,{prefixCls:f,tabs:p}=l.useContext(m1),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:C,forceRender:b,style:$,className:S,destroyOnHidden:w,...M}=y,x=C===n;return l.createElement(Sr,lp({key:C,visible:x,forceRender:b,removeOnLeave:!!(s??w),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:R,className:T},N)=>l.createElement(LY,lp({},M,{prefixCls:h,id:t,tabKey:C,animated:g,active:x,style:{...c,...$,...R},className:Q(d,S,T),ref:N})))})))};function FY(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 fu(){return fu=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},fu.apply(this,arguments)}let n4=0;const kY=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:C,tabBarExtraContent:b,locale:$,more:S,destroyOnHidden:w,renderTabBar:M,onChange:x,onTabClick:R,onTabScroll:T,getPopupContainer:N,popupClassName:O,indicator:P,classNames:D,styles:W,...k}=e,U=l.useMemo(()=>(s||[]).filter(ee=>ee&&typeof ee=="object"&&"key"in ee),[s]),G=c==="rtl",L=FY(g),[H,_]=l.useState(!1);l.useEffect(()=>{_(RY())},[]);const[B,I]=Yt(f??U[0]?.key,d),[z,V]=l.useState(()=>U.findIndex(ee=>ee.key===B));l.useEffect(()=>{let ee=U.findIndex(ie=>ie.key===B);ee===-1&&(ee=Math.max(0,Math.min(z,U.length-1)),I(U[ee]?.key)),V(ee)},[U.map(ee=>ee.key).join("_"),B,z]);const[A,j]=Yt(null,n);l.useEffect(()=>{n||(j(`rc-tabs-${n4}`),n4+=1)},[]);function q(ee,ie){R?.(ee,ie);const ne=ee!==B;I(ee),ne&&x?.(ee)}const X={id:A,activeKey:B,animated:L,tabPosition:h,rtl:G,mobile:H},K={...X,editable:p,locale:$,more:S,tabBarGutter:y,onTabClick:q,onTabScroll:T,extra:b,style:C,getPopupContainer:N,popupClassName:Q(O,D?.popup),indicator:P,styles:W,classNames:D},Z=l.useMemo(()=>({tabs:U,prefixCls:r}),[U,r]);return l.createElement(m1.Provider,{value:Z},l.createElement("div",fu({ref:t,id:n,className:Q(r,`${r}-${h}`,{[`${r}-mobile`]:H,[`${r}-editable`]:p,[`${r}-rtl`]:G},i)},k),l.createElement(BY,fu({},K,{renderTabBar:M})),l.createElement(VY,fu({destroyOnHidden:w},X,{contentStyle:W?.content,contentClassName:D?.content,animated:L}))))}),WY={motionAppear:!1,motionEnter:!0,motionLeave:!0};function qY(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={...WY,motionName:Go(e,"switch")}),n}function YY(e){return e.filter(t=>t)}function UY(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=dr(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 YY(n)}const GY=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}`}}}}},[Xo(e,"slide-up"),Xo(e,"slide-down")]]},XY=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)`]:Uo(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}}}}}}},KY=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":{...$o,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"}}}}}}},QY=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}}}}}},ZY=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}}}}}},JY=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},...xo(e)},"&:hover":{color:r},[`&${p}-active ${p}-btn`]:{color:d},[`&${p}-focus ${p}-btn:focus-visible`]:Uo(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}}}},eU=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"}}}}},tU=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},...xo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...JY(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...xo(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"}}}}}},nU=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}},rU=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[ZY(t),eU(t),QY(t),KY(t),XY(t),tU(t),GY(t)]},nU),oU=()=>null,aU=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:C,children:b,items:$,animated:S,style:w,indicatorSize:M,indicator:x,classNames:R,styles:T,destroyInactiveTabPane:N,destroyOnHidden:O,tabPlacement:P,tabPosition:D,...W}=e,{prefixCls:k}=W,{getPrefixCls:U,direction:G,getPopupContainer:L,className:H,style:_,classNames:B,styles:I}=It("tabs"),{tabs:z}=l.useContext(dt),V=U("tabs",k),A=ar(V),[j,q]=rU(V,A),X=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:X.current}));let K;n==="editable-card"&&(K={onEdit:(re,{key:ue,event:he})=>{c?.(re==="add"?he:ue,re)},removeIcon:g??z?.removeIcon??l.createElement(qr,null),addIcon:(p??z?.addIcon)||l.createElement(ip,null),showAdd:d!==!0});const Z=U(),ee=fr(s),ie=UY($,b),ne=qY(V,S),oe={align:x?.align??z?.indicator?.align,size:x?.size??M??z?.indicator?.size??z?.indicatorSize},de=l.useMemo(()=>{const re=P??D??void 0,ue=G==="rtl";switch(re){case"start":return ue?"right":"left";case"end":return ue?"left":"right";default:return re}},[P,D,G]),le={...e,size:ee,tabPlacement:de,items:ie},[fe,ge]=Lt([B,R],[I,T],{props:le},{popup:{_default:"root"}});return l.createElement(kY,{ref:X,direction:G,getPopupContainer:L,...W,items:ie,className:Q({[`${V}-${ee}`]:ee,[`${V}-card`]:["card","editable-card"].includes(n),[`${V}-editable-card`]:n==="editable-card",[`${V}-centered`]:f},H,r,i,fe.root,j,q,A),classNames:{...fe,popup:Q(C,j,q,A,fe.popup?.root)},styles:ge,style:{...ge.root,..._,...w},editable:K,more:{icon:z?.more?.icon??z?.moreIcon??h??l.createElement(t1,null),transitionName:`${Z}-slide-up`,...y},prefixCls:V,animated:ne,indicator:oe,destroyOnHidden:O??N,tabPosition:de})}),g1=aU;g1.TabPane=oU;const T3=({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})},iU=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`,...Zi(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...$o,[`
|
|
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}`}}}},lU=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}}},sU=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)}`,...Zi(),"& > 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}`}}}},cU=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Zi(),"&-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,...$o},"&-description":{color:e.colorTextDescription}}),uU=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)}`}}},dU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},fU=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`]:iU(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`]:lU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:sU(e),[`${t}-meta`]:cU(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 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:uU(e),[`${t}-loading`]:dU(e),[`${t}-rtl`]:{direction:"rtl"}}},mU=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"}}}}},pU=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}),gU=Pt("Card",e=>{const t=Ot(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[fU(t),mU(t)]},pU),hU=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))}))},yU=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:C,type:b,cover:$,actions:S,tabList:w,children:M,activeTabKey:x,defaultActiveTabKey:R,tabBarExtraContent:T,hoverable:N,tabProps:O={},classNames:P,styles:D,...W}=e,{getPrefixCls:k,direction:U,className:G,style:L,classNames:H,styles:_}=It("card"),[B]=js("card",y,h),I=fr(C),z={...e,size:I,variant:B,loading:g},[V,A]=Lt([H,P],[_,D],{props:z}),j=se=>{e.onTabChange?.(se)},q=l.useMemo(()=>dr(M).some(be=>l.isValidElement(be)&&be.type===T3),[M]),X=k("card",n),[K,Z]=gU(X),ee=l.createElement(gi,{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 de=!I||I==="default"?"large":I,le=w?l.createElement(g1,{size:de,...ne,className:`${X}-head-tabs`,onChange:j,items:w.map(({tab:se,...be})=>({label:se,...be}))}):null;if(p||c||le){const se=Q(`${X}-head`,V.header),be=Q(`${X}-head-title`,V.title),Ee=Q(`${X}-extra`,V.extra),Ne={...d,...A.header};oe=l.createElement("div",{className:se,style:Ne},l.createElement("div",{className:`${X}-head-wrapper`},p&&l.createElement("div",{className:be,style:A.title},p),c&&l.createElement("div",{className:Ee,style:A.extra},c)),le)}const fe=Q(`${X}-cover`,V.cover),ge=$?l.createElement("div",{className:fe,style:A.cover},$):null,re=Q(`${X}-body`,V.body),ue={...f,...A.body},he=l.createElement("div",{className:re,style:ue},g?ee:M),pe=Q(`${X}-actions`,V.actions),Se=S?.length?l.createElement(hU,{actionClasses:pe,actionStyle:A.actions,actions:S}):null,Ie=nn(W,["onTabChange"]),Re=Q(X,G,{[`${X}-loading`]:g,[`${X}-bordered`]:B!=="borderless",[`${X}-hoverable`]:N,[`${X}-contain-grid`]:q,[`${X}-contain-tabs`]:w?.length,[`${X}-${I}`]:I,[`${X}-type-${b}`]:!!b,[`${X}-rtl`]:U==="rtl"},r,i,K,Z,V.root),we={...A.root,...L,...s};return l.createElement("div",{ref:t,...Ie,className:Re,style:we},oe,ge,he,Se)}),bU=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:C,styles:b}=It("cardMeta"),S=`${g("card",t)}-meta`,[w,M]=Lt([C,d],[b,f],{props:e}),x=Q(S,n,h,w.root),R={...y,...M.root,...c},T=Q(`${S}-avatar`,w.avatar),N=Q(`${S}-title`,w.title),O=Q(`${S}-description`,w.description),P=Q(`${S}-section`,w.section),D=r?l.createElement("div",{className:T,style:M.avatar},r):null,W=i?l.createElement("div",{className:N,style:M.title},i):null,k=s?l.createElement("div",{className:O,style:M.description},s):null,U=W||k?l.createElement("div",{className:P,style:M.section},W,k):null;return l.createElement("div",{...p,className:x,style:R},D,U)},wa=yU;wa.Grid=T3;wa.Meta=bU;function vU(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 C(){g&&clearTimeout(g)}function b(S){var w=S||{},M=w.upcomingOnly,x=M===void 0?!1:M;C(),h=!x}function $(){for(var S=arguments.length,w=new Array(S),M=0;M<S;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(),C(),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 SU(e,t,n){var r={},i=r.atBegin,s=i===void 0?!1:i;return vU(e,t,{debounceMode:s!==!1})}const CU=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`]:Uo(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 $U(e,t){const n=Ot(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return CU(n)}const O3=Pt("Checkbox",(e,{prefixCls:t})=>[$U(t,e)]),N3=ae.createContext(null),xU=(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:C,...b}=e,{getPrefixCls:$,direction:S,className:w,style:M,classNames:x,styles:R}=It("checkbox"),T=l.useContext(N3),{isFormItemInput:N}=l.useContext(Tr),O=l.useContext(kr),P=(T?.disabled||h)??O,D={...e,indeterminate:c,disabled:P},[W,k]=Lt([x,y],[R,C],{props:D}),U=l.useRef(b.value),G=l.useRef(null),L=or(t,G);l.useEffect(()=>{T?.registerValue(b.value)},[]),l.useEffect(()=>{if(!g)return b.value!==U.current&&(T?.cancelValue(U.current),T?.registerValue(b.value),U.current=b.value),()=>T?.cancelValue(b.value)},[b.value]),l.useEffect(()=>{G.current?.input&&(G.current.input.indeterminate=c)},[c]);const H=$("checkbox",n),_=ar(H),[B,I]=O3(H,_),z={...b};T&&!g&&(z.onChange=(...X)=>{b.onChange&&b.onChange.apply(b,X),T.toggleOption&&T.toggleOption({label:s,value:b.value})},z.name=T.name,z.checked=T.value.includes(b.value));const V=Q(`${H}-wrapper`,{[`${H}-rtl`]:S==="rtl",[`${H}-wrapper-checked`]:z.checked,[`${H}-wrapper-disabled`]:P,[`${H}-wrapper-in-form-item`]:N},w,r,W.root,i,I,_,B),A=Q(W.icon,{[`${H}-indeterminate`]:c},dd,B),[j,q]=a3(z.onClick);return l.createElement(fd,{component:"Checkbox",disabled:P},l.createElement("label",{className:V,style:{...k.root,...M,...d},onMouseEnter:f,onMouseLeave:p,onClick:j},l.createElement(o3,{...z,onClick:q,prefixCls:H,className:A,style:k.icon,disabled:P,ref:L}),Mr(s)&&l.createElement("span",{className:Q(`${H}-label`,W.label),style:k.label},s)))},I3=l.forwardRef(xU),wU=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),[C,b]=l.useState(g.value||n||[]),[$,S]=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=>{S(H=>H.filter(_=>_!==L))},x=L=>{S(H=>[].concat(xn(H),[L]))},R=L=>{const H=C.indexOf(L.value),_=xn(C);H===-1?_.push(L.value):_.splice(H,1),"value"in g||b(_),p?.(_.filter(B=>$.includes(B)).sort((B,I)=>{const z=w.findIndex(A=>A.value===B),V=w.findIndex(A=>A.value===I);return z-V}))},T=h("checkbox",s),N=`${T}-group`,O=ar(T),[P,D]=O3(T,O),W=nn(g,["value","disabled"]),k=i.length?w.map(L=>l.createElement(I3,{prefixCls:T,key:L.value.toString(),disabled:"disabled"in L?L.disabled:g.disabled,value:L.value,checked:C.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,U=l.useMemo(()=>({toggleOption:R,value:C,disabled:g.disabled,name:g.name,registerValue:x,cancelValue:M}),[R,C,g.disabled,g.name,x,M]),G=Q(N,{[`${N}-rtl`]:y==="rtl"},c,d,D,O,P);return l.createElement("div",{className:G,style:f,...W,ref:t},l.createElement(N3.Provider,{value:U},k))}),Os=I3;Os.Group=wU;Os.__ANT_CHECKBOX=!0;const P3=l.createContext({});function r4(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 EU=["xs","sm","md","lg","xl","xxl"],MU=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{gutter:i,wrap:s}=l.useContext(P3),{prefixCls:c,span:d,order:f,offset:p,push:g,pull:h,className:y,children:C,flex:b,style:$,...S}=e,w=n("col",c),[M,x]=u9(w),R={};let T={};EU.forEach(P=>{let D={};const W=e[P];typeof W=="number"?D.span=W:typeof W=="object"&&(D=W||{}),delete S[P],T={...T,[`${w}-${P}-${D.span}`]:D.span!==void 0,[`${w}-${P}-order-${D.order}`]:D.order||D.order===0,[`${w}-${P}-offset-${D.offset}`]:D.offset||D.offset===0,[`${w}-${P}-push-${D.push}`]:D.push||D.push===0,[`${w}-${P}-pull-${D.pull}`]:D.pull||D.pull===0,[`${w}-rtl`]:r==="rtl"},D.flex&&(T[`${w}-${P}-flex`]=!0,R[`--${w}-${P}-flex`]=r4(D.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 P=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;O.paddingInline=P}return b&&(O.flex=r4(b),s===!1&&!O.minWidth&&(O.minWidth=0)),l.createElement("div",{...S,style:{...O,...$,...R},className:N,ref:t},C)});function RU(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<el.length;d++){const f=el[d];if(i[f]&&s[f]!==void 0){n[c]=s[f];break}}else n[c]=s}),n}function o4(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<el.length;s++){const c=el[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 TU=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),C=Ap(!0,null),b=o4(i,C),$=o4(r,C),S=h("row",n),[w,M]=c9(S),x=RU(f,C),R=Q(S,{[`${S}-no-wrap`]:p===!1,[`${S}-${$}`]:$,[`${S}-${b}`]:b,[`${S}-rtl`]:y==="rtl"},s,w,M),T={};if(x?.[0]){const D=typeof x[0]=="number"?`${x[0]/-2}px`:`calc(${x[0]} / -2)`;T.marginInline=D}const[N,O]=x;T.rowGap=O;const P=l.useMemo(()=>({gutter:[N,O],wrap:p}),[N,O,p]);return l.createElement(P3.Provider,{value:P},l.createElement("div",{...g,className:R,style:{...T,...c},ref:t},d))}),OU=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},NU=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}}}}},IU=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),PU=Pt("Divider",e=>{const t=Ot(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[NU(t),OU(t)]},IU,{unitless:{orientationMargin:!0}}),zU=["left","right","center","start","end"],AU={small:"sm",middle:"md"},ri=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:C,rootClassName:b,children:$,dashed:S,variant:w="solid",plain:M,style:x,size:R,classNames:T,styles:N,...O}=e,P=t("divider",d),D=`${P}-rail`,[W,k]=PU(P),U=fr(R),G=AU[U],L=!!$,H=zU.includes(p||""),_=l.useMemo(()=>{const ee=h??(H?p:"center");return ee==="left"?n==="rtl"?"end":"start":ee==="right"?n==="rtl"?"start":"end":ee},[n,p,h,H]),B=_==="start"&&y!=null,I=_==="end"&&y!=null,[z,V]=id(p,g,f),A={...e,orientation:z,titlePlacement:_,size:U},[j,q]=Lt([s,T],[c,N],{props:A}),X=Q(P,r,W,k,`${P}-${z}`,{[`${P}-with-text`]:L,[`${P}-with-text-${_}`]:L,[`${P}-dashed`]:!!S,[`${P}-${w}`]:w!=="solid",[`${P}-plain`]:!!M,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:B,[`${P}-no-default-orientation-margin-end`]:I,[`${P}-${G}`]:!!G,[D]:!$,[j.rail]:j.rail&&!$},C,b,j.root),K=l.useMemo(()=>typeof y=="number"?y:/^\d+$/.test(y)?Number(y):y,[y]),Z={marginInlineStart:B?K:void 0,marginInlineEnd:I?K:void 0};return l.createElement("div",{className:X,style:{...i,...q.root,...$?{}:q.rail,...x},...O,role:"separator"},$&&!V&&l.createElement(l.Fragment,null,l.createElement("div",{className:Q(D,`${D}-start`,j.rail),style:q.rail}),l.createElement("span",{className:Q(`${P}-inner-text`,j.content),style:{...Z,...q.content}},$),l.createElement("div",{className:Q(D,`${D}-end`,j.rail),style:q.rail})))},a4=(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}},Wo=e=>e!==void 0?`${e}px`:void 0;function DU(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),C=O=>{const P=i(O),D=n.current?.querySelectorAll(`.${t}-item`)[P];return D?.offsetParent&&D},[b,$]=l.useState(null),[S,w]=l.useState(null);Nt(()=>{if(h!==r){const O=C(h),P=C(r),D=a4(O,p),W=a4(P,p);y(r),$(D),w(W),O&&P?c():d()}},[r]);const M=l.useMemo(()=>Wo(p?b?.top??0:f==="rtl"?-b?.right:b?.left),[p,f,b]),x=l.useMemo(()=>Wo(p?S?.top??0:f==="rtl"?-S?.right:S?.left),[p,f,S]),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||!S?null:l.createElement(Sr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:R,onAppearActive:T,onVisibleChanged:N},({className:O,style:P},D)=>{const W={...P,"--thumb-start-left":M,"--thumb-start-width":Wo(b?.width),"--thumb-active-left":x,"--thumb-active-width":Wo(S?.width),"--thumb-start-top":M,"--thumb-start-height":Wo(b?.height),"--thumb-active-top":x,"--thumb-active-height":Wo(S?.height)},k={ref:or(g,D),style:W,className:Q(`${t}-thumb`,O)};return l.createElement("div",k)})}function jU(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function _U(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=jU(t);return{...t,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const HU=({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:C,onBlur:b,onKeyDown:$,onKeyUp:S,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:C,onBlur:b,onKeyDown:$,onKeyUp:S}),l.createElement("div",{className:Q(`${e}-item-label`,i?.label),title:p,style:r?.label},f));return M(R,{item:s})},BU=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:C,classNames:b,motionName:$="thumb-motion",itemRender:S,...w}=e,M=l.useRef(null),x=l.useMemo(()=>or(M,t),[M,t]),R=l.useMemo(()=>_U(s),[s]),[T,N]=Yt(d??R[0]?.value,f),[O,P]=l.useState(!1),D=(j,q)=>{N(q),g?.(q)},W=nn(w,["children"]),[k,U]=l.useState(!1),[G,L]=l.useState(!1),H=()=>{L(!0)},_=()=>{L(!1)},B=()=>{U(!1)},I=j=>{j.key==="Tab"&&U(!0)},z=j=>{const q=R.findIndex(ee=>ee.value===T),X=R.length,K=(q+j+X)%X,Z=R[K];Z&&(N(Z.value),g?.(Z.value))},V=j=>{switch(j.key){case"ArrowLeft":case"ArrowUp":z(-1);break;case"ArrowRight":case"ArrowDown":z(1);break}},A=j=>{const{value:q,disabled:X}=j;return l.createElement(HU,Xn({},j,{name:p,data:j,itemRender:S,key:q,prefixCls:n,className:Q(j.className,`${n}-item`,b?.item,{[`${n}-item-selected`]:q===T&&!O,[`${n}-item-focused`]:G&&k&&q===T}),style:C?.item,classNames:b,styles:C,checked:q===T,onChange:D,onFocus:H,onBlur:_,onKeyDown:V,onKeyUp:I,onMouseDown:B,disabled:!!c||!!X}))};return l.createElement("div",Xn({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":i?"vertical":"horizontal",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(DU,{vertical:i,prefixCls:n,value:T,containerRef:M,motionName:`${n}-${$}`,direction:r,getValueIndex:j=>R.findIndex(q=>q.value===j),onMotionStart:()=>{P(!0)},onMotionEnd:()=>{P(!1)}}),R.map(A)))}),LU=BU;function i4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function l4(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const VU={overflow:"hidden",...$o},FU=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}`,...xo(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":{...l4(e),color:e.itemSelectedColor},"&-focused":Uo(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)}`,...VU},"&-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`]:{...l4(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}},...i4(`&-disabled ${t}-item`,e),...i4(`${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}}}}},kU=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}},WU=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 FU(r)},kU);function qU(e){return typeof e=="object"&&!!e?.icon}const YU=l.forwardRef((e,t)=>{const n=Ko(),{prefixCls:r,className:i,rootClassName:s,block:c,options:d=[],size:f="middle",style:p,vertical:g,orientation:h,shape:y="default",name:C=n,styles:b,classNames:$,...S}=e,{getPrefixCls:w,direction:M,className:x,style:R,classNames:T,styles:N}=It("segmented"),O={...e,options:d,size:f,shape:y},[P,D]=Lt([T,$],[N,b],{props:O}),W=w("segmented",r),[k,U]=WU(W),G=fr(f),L=l.useMemo(()=>d.map(z=>{if(qU(z)){const{icon:V,label:A,...j}=z;return{...j,label:l.createElement(l.Fragment,null,l.createElement("span",{className:Q(`${W}-item-icon`,P.icon),style:D.icon},V),A&&l.createElement("span",null,A))}}return z}),[d,W,P.icon,D.icon]),[,H]=id(h,g),_=Q(i,s,x,P.root,{[`${W}-block`]:c,[`${W}-sm`]:G==="small",[`${W}-lg`]:G==="large",[`${W}-vertical`]:H,[`${W}-shape-${y}`]:y==="round"},k,U),B={...D.root,...R,...p},I=(z,{item:V})=>{if(!V.tooltip)return z;const A=typeof V.tooltip=="object"?V.tooltip:{title:V.tooltip};return l.createElement(ur,{...A},z)};return l.createElement(LU,{...S,name:C,className:_,style:B,classNames:P,styles:D,itemRender:I,options:L,ref:t,prefixCls:W,direction:M,vertical:H})}),UU=YU;var GU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};function 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})),s4=l.forwardRef(XU);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 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 QU=(e,t)=>l.createElement(gt,C0({},e,{ref:t,icon:KU})),ZU=l.forwardRef(QU);var JU={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 $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})),z3=l.forwardRef(eG);var tG={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 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 nG=(e,t)=>l.createElement(gt,x0({},e,{ref:t,icon:tG})),rG=l.forwardRef(nG);var oG={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 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})),h1=l.forwardRef(aG);var iG={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 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})),sG=l.forwardRef(lG);var cG={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 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 uG=(e,t)=>l.createElement(gt,M0({},e,{ref:t,icon:cG})),A3=l.forwardRef(uG);var dG={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 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})),wd=l.forwardRef(fG);var mG={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 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})),c4=l.forwardRef(pG);var gG={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 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})),yG=l.forwardRef(hG);var bG={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 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 vG=(e,t)=>l.createElement(gt,N0({},e,{ref:t,icon:bG})),D3=l.forwardRef(vG);var SG={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 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 CG=(e,t)=>l.createElement(gt,I0({},e,{ref:t,icon:SG})),sp=l.forwardRef(CG);var $G={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 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})),u4=l.forwardRef(xG);var wG={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 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})),d4=l.forwardRef(EG);var MG={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 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 RG=(e,t)=>l.createElement(gt,A0({},e,{ref:t,icon:MG})),TG=l.forwardRef(RG);var OG={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 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 NG=(e,t)=>l.createElement(gt,D0({},e,{ref:t,icon:OG})),fi=l.forwardRef(NG);var IG={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 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 PG=(e,t)=>l.createElement(gt,j0({},e,{ref:t,icon:IG})),zG=l.forwardRef(PG);var AG={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 _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 DG=(e,t)=>l.createElement(gt,_0({},e,{ref:t,icon:AG})),jG=l.forwardRef(DG);var _G={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 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 HG=(e,t)=>l.createElement(gt,H0({},e,{ref:t,icon:_G})),BG=l.forwardRef(HG);var LG={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 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 VG=(e,t)=>l.createElement(gt,B0({},e,{ref:t,icon:LG})),FG=l.forwardRef(VG);var kG={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 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 WG=(e,t)=>l.createElement(gt,L0({},e,{ref:t,icon:kG})),qG=l.forwardRef(WG);var YG={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 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 UG=(e,t)=>l.createElement(gt,V0({},e,{ref:t,icon:YG})),cp=l.forwardRef(UG);var GG={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 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 XG=(e,t)=>l.createElement(gt,F0({},e,{ref:t,icon:GG})),KG=l.forwardRef(XG);var QG={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 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 ZG=(e,t)=>l.createElement(gt,k0({},e,{ref:t,icon:QG})),JG=l.forwardRef(ZG);var eX={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 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 tX=(e,t)=>l.createElement(gt,W0({},e,{ref:t,icon:eX})),nX=l.forwardRef(tX);var rX={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 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 oX=(e,t)=>l.createElement(gt,q0({},e,{ref:t,icon:rX})),aX=l.forwardRef(oX);var iX={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 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 lX=(e,t)=>l.createElement(gt,Y0({},e,{ref:t,icon:iX})),j3=l.forwardRef(lX);var sX={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 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 cX=(e,t)=>l.createElement(gt,U0({},e,{ref:t,icon:sX})),uX=l.forwardRef(cX);var dX={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 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 fX=(e,t)=>l.createElement(gt,G0({},e,{ref:t,icon:dX})),mX=l.forwardRef(fX);var pX={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 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 gX=(e,t)=>l.createElement(gt,X0({},e,{ref:t,icon:pX})),_3=l.forwardRef(gX);var hX={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 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 yX=(e,t)=>l.createElement(gt,K0({},e,{ref:t,icon:hX})),bX=l.forwardRef(yX);var vX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 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:"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 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})),H3=l.forwardRef(xX);var wX={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 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 EX=(e,t)=>l.createElement(gt,J0({},e,{ref:t,icon:wX})),y1=l.forwardRef(EX);var MX={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 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 RX=(e,t)=>l.createElement(gt,eS({},e,{ref:t,icon:MX})),TX=l.forwardRef(RX);var OX={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 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 NX=(e,t)=>l.createElement(gt,tS({},e,{ref:t,icon:OX})),IX=l.forwardRef(NX);var PX={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 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 zX=(e,t)=>l.createElement(gt,nS({},e,{ref:t,icon:PX})),AX=l.forwardRef(zX);var DX={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 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 jX=(e,t)=>l.createElement(gt,rS({},e,{ref:t,icon:DX})),_X=l.forwardRef(jX);var HX={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 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 BX=(e,t)=>l.createElement(gt,oS({},e,{ref:t,icon:HX})),B3=l.forwardRef(BX),LX=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}}]}},VX=Pt(["Space","Addon"],e=>[LX(e),pd(e,{focus:!1})]),FX=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),[C,b]=VX(y),{compactItemClassnames:$,compactSize:S}=Ma(y,h),w=Ji(y,f),M=Q(y,C,$,b,`${y}-variant-${c}`,w,{[`${y}-${S}`]:S,[`${y}-disabled`]:d},n);return ae.createElement("div",{ref:t,className:M,style:i,...p},r)});function kX(e){return!!(e.addonBefore||e.addonAfter)}function WX(e){return!!(e.prefix||e.suffix||e.allowClear)}function f4(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 up(e,t,n,r){if(!n)return;let i=t;if(t.type==="click"){i=f4(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=f4(t,e,r),n(i);return}n(i)}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 L3=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:C,triggerFocus:b,allowClear:$,value:S,handleReset:w,hidden:M,classes:x,classNames:R,dataAttrs:T,styles:N,components:O,onClear:P}=e,D=r??n,W=O?.affixWrapper||"span",k=O?.groupWrapper||"span",U=O?.wrapper||"span",G=O?.groupAddon||"span",L=l.useRef(null),H=z=>{L.current?.contains(z.target)&&b?.()},_=WX(e);let B=l.cloneElement(D,{value:S,className:Q(D.props?.className,!_&&R?.variant)||null});const I=l.useRef(null);if(ae.useImperativeHandle(t,()=>({nativeElement:I.current||L.current})),_){let z=null;if($){const q=!h&&!y&&S,X=`${i}-clear-icon`,K=typeof $=="object"&&$?.clearIcon?$.clearIcon:"✖";z=ae.createElement("button",{type:"button",tabIndex:-1,onClick:Z=>{w?.(Z),P?.()},onMouseDown:Z=>Z.preventDefault(),className:Q(X,{[`${X}-hidden`]:!q,[`${X}-has-suffix`]:!!c})},K)}const V=`${i}-affix-wrapper`,A=Q(V,{[`${i}-disabled`]:h,[`${V}-disabled`]:h,[`${V}-focused`]:C,[`${V}-readonly`]:y,[`${V}-input-with-clear-btn`]:c&&$&&S},x?.affixWrapper,R?.affixWrapper,R?.variant),j=(c||$)&&ae.createElement("span",{className:Q(`${i}-suffix`,R?.suffix),style:N?.suffix},z,c);B=ae.createElement(W,aS({className:A,style:N?.affixWrapper,onClick:H},T?.affixWrapper,{ref:L}),s&&ae.createElement("span",{className:Q(`${i}-prefix`,R?.prefix),style:N?.prefix},s),B,j)}if(kX(e)){const z=`${i}-group`,V=`${z}-addon`,A=`${z}-wrapper`,j=Q(`${i}-wrapper`,z,x?.wrapper,R?.wrapper),q=Q(A,{[`${A}-disabled`]:h},x?.group,R?.groupWrapper);B=ae.createElement(k,{className:q,ref:I},ae.createElement(U,{className:j},d&&ae.createElement(G,{className:V},d),B,f&&ae.createElement(G,{className:V},f)))}return ae.cloneElement(B,{className:Q(B.props?.className,p)||null,style:{...B.props?.style,...g},hidden:M})});function V3(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 dp(){return dp=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},dp.apply(this,arguments)}const qX=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:C,suffix:b,showCount:$,count:S,type:w="text",classes:M,classNames:x,styles:R,onCompositionStart:T,onCompositionEnd:N,...O}=e,[P,D]=l.useState(!1),W=l.useRef(!1),k=l.useRef(!1),U=l.useRef(null),G=l.useRef(null),L=re=>{U.current&&JO(U.current,re)},[H,_]=Yt(e.defaultValue,e.value),B=H==null?"":String(H),[I,z]=l.useState(null),V=V3(S,$),A=V.max||C,j=V.strategy(B),q=!!A&&j>A;l.useImperativeHandle(t,()=>({focus:L,blur:()=>{U.current?.blur()},setSelectionRange:(re,ue,he)=>{U.current?.setSelectionRange(re,ue,he)},select:()=>{U.current?.select()},input:U.current,nativeElement:G.current?.nativeElement||U.current})),l.useEffect(()=>{k.current&&(k.current=!1),D(re=>re&&g?!1:re)},[g]);const X=(re,ue,he)=>{let pe=ue;if(!W.current&&V.exceedFormatter&&V.max&&V.strategy(ue)>V.max)pe=V.exceedFormatter(ue,{max:V.max}),ue!==pe&&z([U.current?.selectionStart||0,U.current?.selectionEnd||0]);else if(he.source==="compositionEnd")return;_(pe),U.current&&up(U.current,re,r,pe)};l.useEffect(()=>{I&&U.current?.setSelectionRange(...I)},[I]);const K=re=>{X(re,re.target.value,{source:"change"})},Z=re=>{W.current=!1,X(re,re.currentTarget.value,{source:"compositionEnd"}),N?.(re)},ee=re=>{c&&re.key==="Enter"&&!k.current&&!re.nativeEvent.isComposing&&(k.current=!0,c(re)),d?.(re)},ie=re=>{re.key==="Enter"&&(k.current=!1),f?.(re)},ne=re=>{D(!0),i?.(re)},oe=re=>{k.current&&(k.current=!1),D(!1),s?.(re)},de=re=>{_(""),L(),U.current&&up(U.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",dp({autoComplete:n},re,{onChange:K,onFocus:ne,onBlur:oe,onKeyDown:ee,onKeyUp:ie,className:Q(p,{[`${p}-disabled`]:g},x?.input),style:R?.input,ref:U,size:h,type:w,onCompositionStart:ue=>{W.current=!0,T?.(ue)},onCompositionEnd:Z}))},ge=()=>{const re=Number(A)>0;if(b||V.show){const ue=V.showFormatter?V.showFormatter({value:B,count:j,maxLength:A}):`${j}${re?` / ${A}`:""}`;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}},ue),b)}return null};return ae.createElement(L3,dp({},O,{prefixCls:p,className:Q(y,le),handleReset:de,value:B,focused:P,triggerFocus:L,suffix:ge(),disabled:g,classes:M,classNames:x,styles:R,ref:G}),fe())}),F3=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ae.createElement(zs,null)}),t};function k3(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 YX(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Gp=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:C,style:b,styles:$,rootClassName:S,onChange:w,classNames:M,variant:x,...R}=e,{getPrefixCls:T,direction:N,allowClear:O,autoComplete:P,className:D,style:W,classNames:k,styles:U}=It("input"),G=T("input",n),L=l.useRef(null),H=ar(G),[_,B]=h3(G,S);y3(G,H);const{compactSize:I,compactItemClassnames:z}=Ma(G,N),V=fr(Se=>s??I??Se),A=ae.useContext(kr),j=c??A,q={...e,size:V,disabled:j},[X,K]=Lt([k,M],[U,$],{props:q}),{status:Z,hasFeedback:ee,feedbackIcon:ie}=l.useContext(Tr),ne=Ds(Z,i),oe=YX(e)||!!ee;l.useRef(oe);const de=k3(L,!0),le=Se=>{de(),d?.(Se)},fe=Se=>{de(),f?.(Se)},ge=Se=>{de(),w?.(Se)},re=(ee||p)&&ae.createElement(ae.Fragment,null,p,ee&&ie),ue=F3(g??O),[he,pe]=js("input",x,r);return ae.createElement(qX,{ref:or(t,L),prefixCls:G,autoComplete:P,...R,disabled:j,onBlur:le,onFocus:fe,style:{...K.root,...W,...b},styles:K,suffix:re,allowClear:ue,className:Q(C,S,B,H,z,D,X.root),onChange:ge,addonBefore:y&&ae.createElement(xa,{form:!0,space:!0},y),addonAfter:h&&ae.createElement(xa,{form:!0,space:!0},h),classNames:{...X,input:Q({[`${G}-sm`]:V==="small",[`${G}-lg`]:V==="large",[`${G}-rtl`]:N==="rtl"},X.input,_),variant:Q({[`${G}-${he}`]:pe},Ji(G,ne)),affixWrapper:Q({[`${G}-affix-wrapper-sm`]:V==="small",[`${G}-affix-wrapper-lg`]:V==="large",[`${G}-affix-wrapper-rtl`]:N==="rtl"},_),wrapper:Q({[`${G}-group-rtl`]:N==="rtl"},_),groupWrapper:Q({[`${G}-group-wrapper-sm`]:V==="small",[`${G}-group-wrapper-lg`]:V==="large",[`${G}-group-wrapper-rtl`]:N==="rtl",[`${G}-group-wrapper-${he}`]:pe},Ji(`${G}-group-wrapper`,ne,ee),_)}})}),W3=(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 UX(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 GX(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 q3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=zO({...e,componentName:"DatePicker"});return[l.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]}const[XX,KX]=["week","WeekPicker"],[QX,ZX]=["month","MonthPicker"],[JX,eK]=["year","YearPicker"],[tK,nK]=["quarter","QuarterPicker"],[b1,m4]=["time","TimePicker"],Y3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ae.createElement(ae.Fragment,null,e===b1?ae.createElement(wd,null):ae.createElement(z3,null),t&&n):r,rK=e=>l.createElement(_t,{size:"small",type:"primary",...e});function U3(e){return l.useMemo(()=>({button:rK,...e}),[e])}const oK=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:C,bordered:b=!0,placeholder:$,status:S,variant:w,picker:M,dropdownClassName:x,popupClassName:R,popupStyle:T,rootClassName:N,suffixIcon:O,...P}=n,D=M===b1?"timePicker":"datePicker",[W,k]=W3(D,p,g,R||x,T),U=l.useRef(null),{getPrefixCls:G,direction:L,getPopupContainer:H,rangePicker:_}=l.useContext(dt),B=G("picker",i),{compactSize:I,compactItemClassnames:z}=Ma(B,L),V=G(),[A,j]=js("rangePicker",w,b),q=ar(B),[X,K]=C3(B,q),Z=Q(X,K,q,N),[ee]=q3(n),ie=U3(c),ne=fr(Ie=>y??I??Ie),oe=l.useContext(kr),de=C??oe,le=l.useContext(Tr),{hasFeedback:fe,status:ge,feedbackIcon:re}=le,ue=l.createElement(Y3,{picker:M,hasFeedback:fe,feedbackIcon:re,suffixIcon:O});l.useImperativeHandle(r,()=>U.current);const[he]=oo("Calendar",$u),pe={...he,...n.locale},[Se]=pi("DatePicker",k?.popup?.root?.zIndex);return l.createElement(xa,{space:!0},l.createElement(mq,{separator:l.createElement("span",{"aria-label":"to",className:`${B}-separator`},l.createElement(AX,null)),disabled:de,ref:U,placement:h,placeholder:GX(pe,M,$),suffixIcon:ue,prevIcon:l.createElement("span",{className:`${B}-prev-icon`}),nextIcon:l.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${V}-slide-up`,picker:M,...P,locale:pe.lang,getPopupContainer:s||H,generateConfig:e,components:ie,direction:L,prefixCls:B,rootClassName:Z,className:Q({[`${B}-${ne}`]:ne,[`${B}-${A}`]:j},Ji(B,Ds(ge,S),fe),z,d,_?.className),style:{..._?.style,...f},classNames:W,styles:{...k,popup:{...k.popup,root:{...k.popup.root,zIndex:Se}}},allowClear:ee}))}),aK=e=>{const t=(f,p)=>{const g=p===m4?"timePicker":"datePicker";return l.forwardRef((y,C)=>{const{prefixCls:b,getPopupContainer:$,components:S,style:w,className:M,size:x,bordered:R,placement:T,placeholder:N,disabled:O,status:P,variant:D,onCalendarChange:W,classNames:k,styles:U,dropdownClassName:G,popupClassName:L,popupStyle:H,rootClassName:_,suffixIcon:B,...I}=y,{getPrefixCls:z,direction:V,getPopupContainer:A,[g]:j}=l.useContext(dt),q=z("picker",b),{compactSize:X,compactItemClassnames:K}=Ma(q,V),Z=fr(Ze=>x??X??Ze),ee=l.useContext(kr),ie=O??ee,ne={...y,size:Z,disabled:ie,status:P,variant:D},[oe,de]=W3(g,k,U,L||G,H,ne),le=l.useRef(null),[fe,ge]=js("datePicker",D,R),re=ar(q),[ue,he]=C3(q,re),pe=Q(ue,he,re,_);l.useImperativeHandle(C,()=>le.current);const Se={showToday:!0},Ie=f||y.picker,Re=z(),{onSelect:we,multiple:se}=I,be=we&&f==="time"&&!se,Ee=(Ze,Ue,Fe)=>{W?.(Ze,Ue,Fe),be&&we(Ze)},[Ne,Ve]=q3(y),Ge=U3(S),et=l.useContext(Tr),{hasFeedback:Te,status:_e,feedbackIcon:Le}=et,Qe=l.createElement(Y3,{picker:Ie,hasFeedback:Te,feedbackIcon:Le,suffixIcon:B}),[De]=oo("DatePicker",$u),ve={...De,...y.locale},[Pe]=pi("DatePicker",de?.popup?.root?.zIndex);return l.createElement(xa,{space:!0},l.createElement(_q,{ref:le,placeholder:UX(ve,Ie,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:`${Re}-slide-up`,picker:f,onCalendarChange:Ee,...Se,...I,locale:ve.lang,getPopupContainer:$||A,generateConfig:e,components:Ge,direction:V,disabled:ie,prefixCls:q,rootClassName:pe,className:Q({[`${q}-${Z}`]:Z,[`${q}-${fe}`]:ge},Ji(q,Ds(_e,P),Te),K,j?.className,M),style:{...j?.style,...w},classNames:oe,styles:{...de,popup:{...de.popup,root:{...de.popup.root,zIndex:Pe}}},allowClear:Ne,removeIcon:Ve}))})},n=t(),r=t(XX,KX),i=t(QX,ZX),s=t(JX,eK),c=t(tK,nK),d=t(b1,m4);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:s,TimePicker:d,QuarterPicker:c}},G3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:s,QuarterPicker:c}=aK(e),d=oK(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=i,f.RangePicker=d,f.TimePicker=s,f.QuarterPicker=c,f},dl=G3(g6),iK=zp(dl,"popupAlign",void 0,"picker");dl._InternalPanelDoNotUseOrYouWillBeFired=iK;const lK=zp(dl.RangePicker,"popupAlign",void 0,"picker");dl._InternalRangePanelDoNotUseOrYouWillBeFired=lK;dl.generatePicker=G3;const p4=l.createContext(null),X3=l.createContext({});function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}const sK=e=>{const{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:s}=l.useContext(X3),c=mi(s,r);return l.createElement("div",iS({className:Q(`${t}-section`,n),role:"dialog",ref:c},jn(e,{aria:!0}),{"aria-modal":"true"},i))};function cK(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),[C,b]=l.useState(0),[$,S]=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 P=c.current.getBoundingClientRect();O=w?P.width:P.height}S(O),g?.(O)}),x=ut(N=>{if(!h)return;let P=(w?N.clientX:N.clientY)-C;(n==="right"||n==="bottom")&&(P=-P);let D=$+P;D<0&&(D=0),s&&D>s&&(D=s),f?.(D)}),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 Uy(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&tr(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ps.apply(this,arguments)}const g4={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},uK=(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:C,className:b,id:$,style:S,motion:w,width:M,height:x,size:R,maxSize:T,children:N,mask:O,maskClosable:P,maskMotion:D,maskClassName:W,maskStyle:k,afterOpenChange:U,onClose:G,onMouseEnter:L,onMouseOver:H,onMouseLeave:_,onClick:B,onKeyDown:I,onKeyUp:z,styles:V,drawerRender:A,resizable:j,defaultSize:q}=e,X=l.useRef(null),K=l.useRef(null),Z=l.useRef(null);l.useImperativeHandle(t,()=>X.current);const ee=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:{G&&p&&(Te.stopPropagation(),G(Te));break}}};l.useEffect(()=>{r&&f&&X.current?.focus({preventScroll:!0})},[r]);const[ie,ne]=l.useState(!1),oe=l.useContext(p4);let de;typeof c=="boolean"?de=c?{}:{distance:0}:de=c||{};const le=de?.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(Sr,ps({key:"mask"},D,{visible:O&&r}),({className:Te,style:_e},Le)=>l.createElement("div",{className:Q(`${n}-mask`,Te,g?.mask,W),style:{..._e,...k,...V?.mask},onClick:P&&r?G:void 0,ref:Le})),re=typeof w=="function"?w(i):w,[ue,he]=l.useState(),pe=i==="left"||i==="right",Se=l.useMemo(()=>Uy(R??(pe?M:x)??ue??q??(pe?378:void 0)),[R,M,x,q,pe,ue]),Ie=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=Uy(Se):Te.height=Uy(Se),Te},[ie,le,i,pe,Se]),Re=l.useRef(null),we=!!j,se=typeof j=="object"&&j||{},be=ut(Te=>{he(Te),se.onResize?.(Te)}),{dragElementProps:Ee,isDragging:Ne}=cK({prefixCls:`${n}-resizable`,direction:i,className:g?.dragger,style:V?.dragger,maxSize:T,containerRef:Re,currentSize:Se,onResize:be,onResizeStart:se.onResizeStart,onResizeEnd:se.onResizeEnd}),Ve={onMouseEnter:L,onMouseOver:H,onMouseLeave:_,onClick:B,onKeyDown:I,onKeyUp:z},Ge=l.createElement(Sr,ps({key:"panel"},re,{visible:r,forceRender:d,onVisibleChanged:Te=>{U?.(Te)},removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:Te,style:_e},Le)=>{const Qe=l.createElement(sK,ps({id:$,containerRef:Le,prefixCls:n,className:Q(b,g?.section),style:{...S,...V?.section}},jn(e,{aria:!0}),Ve),N);return l.createElement("div",ps({ref:Re,className:Q(`${n}-content-wrapper`,Ne&&`${n}-content-wrapper-dragging`,g?.wrapper,!Ne&&Te),style:{..._e,...Ie,...V?.wrapper}},jn(e,{data:!0})),we&&l.createElement("div",Ee),A?A(Qe):Qe)}),et={...y};return C&&(et.zIndex=C),l.createElement(p4.Provider,{value:fe},l.createElement("div",{className:Q(n,`${n}-${i}`,h,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:et,tabIndex:-1,ref:X,onKeyDown:ee},ge,l.createElement("div",{tabIndex:0,ref:K,style:g4,"aria-hidden":"true","data-sentinel":"start"}),Ge,l.createElement("div",{tabIndex:0,ref:Z,style:g4,"aria-hidden":"true","data-sentinel":"end"})))},dK=l.forwardRef(uK),fK=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:C,afterOpenChange:b,destroyOnHidden:$,onMouseEnter:S,onMouseOver:w,onMouseLeave:M,onClick:x,onKeyDown:R,onKeyUp:T,resizable:N,defaultSize:O,panelRef:P}=e,[D,W]=l.useState(!1),[k,U]=l.useState(!1);Nt(()=>{U(!0)},[]);const G=k?t:!1,L=l.useRef(null),H=l.useRef(null);Nt(()=>{G&&(H.current=document.activeElement)},[G]);const _=V=>{W(V),b?.(V),!V&&H.current&&!L.current?.contains(H.current)&&H.current?.focus({preventScroll:!0})},B=l.useMemo(()=>({panel:P}),[P]);if(!C&&!D&&!G&&$)return null;const z={...e,open:G,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:S,onMouseOver:w,onMouseLeave:M,onClick:x,onKeyDown:R,onKeyUp:T}};return l.createElement(X3.Provider,{value:B},l.createElement(sd,{open:G||C||D,autoDestroy:!1,getContainer:y,autoLock:g&&(G||D)},l.createElement(dK,z)))},K3=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:C,styles:b}=e,$=It("drawer"),{classNames:S,styles:w,closable:M}=$,[x,R]=Lt([S,C],[w,b],{props:{...e,closable:c??M}}),T=l.useMemo(()=>{const k=c??M;if(k!==!1)return typeof k=="object"&&k&&k.placement==="end"?"end":"start"},[c,M]),N=l.useCallback(k=>l.createElement("button",{type:"button",onClick:f,className:Q(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},x.close),style:R.close},k),[f,t,T,x.close,R.close]),[O,P]=IS(Cs(e),Cs($),{closable:!0,closeIconRender:N}),D=()=>!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"&&P,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"&&P),W=()=>i?l.createElement("div",{className:Q(`${t}-footer`,x.footer),style:{...R.footer,...h}},i):null;return l.createElement(l.Fragment,null,D(),l.createElement("div",{className:Q(`${t}-body`,x.body),style:{...R.body,...g}},d?l.createElement(gi,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),W())},mK=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Q3=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),Z3=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...Q3({opacity:e},{opacity:1})}),pK=(e,t)=>[Z3(.7,t),Q3({transform:mK(e)},{transform:"none"})],gK=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Z3(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>({...r,[`&-${i}`]:pK(i,n)}),{})}}},hK=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:C,lineType:b,colorSplit:$,marginXS:S,colorIcon:w,colorIconHover:M,colorBgTextHover:x,colorBgTextActive:R,colorText:T,fontWeightStrong:N,footerPaddingBlock:O,footerPaddingInline:P,draggerSize:D,calc:W}=e,k=`${n}-content-wrapper`,U=`${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)"}},[k]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{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(C)} ${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:S},[`&:not(${n}-close-end)`]:{marginInlineEnd:S},"&:hover":{color:M,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:R},...xo(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:y},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${te(O)} ${te(P)}`,borderTop:`${te(C)} ${b} ${$}`},[U]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${U}-left`]:{top:0,bottom:0,insetInlineEnd:0,width:D,cursor:"col-resize"},[`${U}-right`]:{top:0,bottom:0,insetInlineStart:0,width:D,cursor:"col-resize"},[`${U}-top`]:{insetInline:0,bottom:0,height:D,cursor:"row-resize"},[`${U}-bottom`]:{insetInline:0,top:0,height:D,cursor:"row-resize"},[`${k}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},yK=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),J3=Pt("Drawer",e=>{const t=Ot(e,{});return[hK(t),gK(t)]},yK),bK={distance:180},h4=378,eN=e=>{const{rootClassName:t,size:n,defaultSize:r=h4,height:i,width:s,mask:c,push:d=bK,open:f,afterOpenChange:p,onClose:g,prefixCls:h,getContainer:y,panelRef:C=null,style:b,className:$,resizable:S,"aria-labelledby":w,maskStyle:M,drawerStyle:x,contentWrapperStyle:R,destroyOnClose:T,destroyOnHidden:N,...O}=e,{placement:P}=O,D=Ko(),W=O.title?D:void 0,{getPopupContainer:k,getPrefixCls:U,direction:G,className:L,style:H,classNames:_,styles:B,mask:I}=It("drawer"),z=U("drawer",h),[V,A]=J3(z),j=y===void 0&&k?()=>k(document.body):y,q=l.useMemo(()=>typeof n=="number"?n:n==="large"?736:n==="default"?h4:!P||P==="left"||P==="right"?s:i,[n,P,s,i]),X={motionName:Go(z,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},K=Se=>({motionName:Go(z,`panel-motion-${Se}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Z=QT(),ee=or(C,Z),[ie,ne]=pi("Drawer",O.zIndex),{classNames:oe,styles:de,rootStyle:le}=O,[fe,ge]=aT(c,I,z),re={...e,zIndex:ie,panelRef:C,mask:fe,defaultSize:r,push:d},[ue,he]=Lt([_,oe],[B,de],{props:re}),pe=Q({"no-mask":!fe,[`${z}-rtl`]:G==="rtl"},t,V,A,ue.root);return l.createElement(xa,{form:!0,space:!0},l.createElement(ld.Provider,{value:ne},l.createElement(fK,{prefixCls:z,onClose:g,maskMotion:X,motion:K,...O,classNames:{mask:Q(ue.mask,ge.mask),section:ue.section,wrapper:ue.wrapper,dragger:ue.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:{...H,...b},rootStyle:{...le,...he.root},className:Q(L,$),rootClassName:pe,getContainer:j,afterOpenChange:p,panelRef:ee,zIndex:ie,...S?{resizable:S}:{},"aria-labelledby":w??W,destroyOnHidden:N??T},l.createElement(K3,{prefixCls:z,size:n,...O,ariaId:W,onClose:g}))))},vK=e=>{const{prefixCls:t,style:n,className:r,placement:i="right",...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("drawer",t),[f,p]=J3(d),g=Q(d,`${d}-pure`,`${d}-${i}`,f,p,r);return l.createElement("div",{className:g,style:n},l.createElement(K3,{prefixCls:d,...s}))};eN._InternalPanelDoNotUseOrYouWillBeFired=vK;function y4(e){return["small","middle","large"].includes(e)}function b4(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const tN=ae.createContext({latestIndex:0}),SK=tN.Provider,CK=e=>{const{className:t,prefix:n,index:r,children:i,separator:s,style:c,classNames:d,styles:f}=e,{latestIndex:p}=l.useContext(tN);return Mr(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},$K=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"}}}},xK=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}}}},wK=Pt("Space",e=>{const t=Ot(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[$K(t),xK(t)]},()=>({}),{resetStyle:!1}),EK=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:C,direction:b,orientation:$,prefixCls:S,split:w,separator:M,style:x,vertical:R,wrap:T=!1,classNames:N,styles:O,...P}=e,[D,W]=Array.isArray(p)?p:[p,p],k=y4(W),U=y4(D),G=b4(W),L=b4(D),H=dr(C,{keepEmpty:!0}),[_,B]=id($,R,b),I=g===void 0&&!B?"center":g,z=M??w,V=n("space",S),[A,j]=wK(V),q={...e,size:p,orientation:_,align:I},[X,K]=Lt([d,N],[f,O],{props:q}),Z=Q(V,s,A,`${V}-${_}`,{[`${V}-rtl`]:r==="rtl",[`${V}-align-${I}`]:I,[`${V}-gap-row-${W}`]:k,[`${V}-gap-col-${D}`]:U},h,y,j,X.root),ee=Q(`${V}-item`,X.item),ie=H.map((de,le)=>{const fe=de?.key||`${ee}-${le}`;return l.createElement(CK,{prefix:V,classNames:X,styles:K,className:ee,key:fe,index:le,separator:z,style:K.item},de)}),ne=l.useMemo(()=>({latestIndex:H.reduce((le,fe,ge)=>Mr(fe)?ge:le,0)}),[H]);if(H.length===0)return null;const oe={};return T&&(oe.flexWrap="wrap"),!U&&L&&(oe.columnGap=D),!k&&G&&(oe.rowGap=W),l.createElement("div",{ref:t,className:Z,style:{...oe,...K.root,...c,...x},...P},l.createElement(SK,{value:ne},ie))}),dn=EK;dn.Compact=PT;dn.Addon=FX;const nN=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:C,arrow:b,autoFocus:$,trigger:S,align:w,open:M,onOpenChange:x,placement:R,getPopupContainer:T,href:N,icon:O=l.createElement(t1,null),title:P,buttonsRender:D=oe=>oe,mouseEnterDelay:W,mouseLeaveDelay:k,overlayClassName:U,overlayStyle:G,destroyOnHidden:L,destroyPopupOnHide:H,dropdownRender:_,popupRender:B,...I}=e,z=n("dropdown",i),V=`${z}-button`,j={menu:C,arrow:b,autoFocus:$,align:w,disabled:d,trigger:d?[]:S,onOpenChange:x,getPopupContainer:T||t,mouseEnterDelay:W,mouseLeaveDelay:k,classNames:{root:U},styles:{root:G},destroyOnHidden:L,popupRender:B||_},{compactSize:q,compactItemClassnames:X}=Ma(z,r),K=Q(V,X,y);"destroyPopupOnHide"in e&&(j.destroyPopupOnHide=H),"open"in e&&(j.open=M),"placement"in e?j.placement=R:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const Z=l.createElement(_t,{type:s,danger:c,disabled:d,loading:f,onClick:p,htmlType:g,href:N,title:P},h),ee=l.createElement(_t,{type:s,danger:c,icon:O}),[ie,ne]=D([Z,ee]);return l.createElement(dn.Compact,{className:K,size:q,block:!0,...I},ie,l.createElement(Vp,{...j},ne))};nN.__ANT_BUTTON=!0;const v1=Vp;v1.Button=nN;const MK=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,className:i}=e,s=t("input-group",r),c=t("input"),[d,f]=y3(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(Tr),h=l.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return l.createElement(Tr.Provider,{value:h},l.createElement(dn.Compact,{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},RK=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}}}},TK=Pt(["Input","OTP"],e=>{const t=Ot(e,Vs(e));return RK(t)},Fs),OK=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,C=l.useRef(null);l.useImperativeHandle(t,()=>C.current);const b=M=>{i(c,M.target.value)},$=()=>{Ht(()=>{const M=C.current?.input;document.activeElement===M&&M&&M.select()})},S=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(Gp,{"aria-label":`OTP Input ${c+1}`,type:d===!0?"password":"text",...p,ref:C,value:r,onInput:b,onFocus:S,onKeyDown:w,onMouseDown:$,onMouseUp:$,className:Q(n,{[`${h}-mask-input`]:d})}))});function rm(e){return(e||"").split("")}const NK=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},IK=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:C,mask:b,type:$,onInput:S,onFocus:w,inputMode:M,classNames:x,styles:R,className:T,style:N,...O}=e,{classNames:P,styles:D,getPrefixCls:W,direction:k,style:U,className:G}=It("otp"),L=W("otp",n),H={...e,length:r},[_,B]=Lt([P,x],[D,R],{props:H}),I=jn(O,{aria:!0,data:!0,attr:!0}),[z,V]=TK(L),A=fr(ue=>i??ue),j=l.useContext(Tr),q=Ds(j.status,y),X=l.useMemo(()=>({...j,status:q,hasFeedback:!1,feedbackIcon:null}),[j,q]),K=l.useRef(null),Z=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{Z.current[0]?.focus()},blur:()=>{for(let ue=0;ue<r;ue+=1)Z.current[ue]?.blur()},nativeElement:K.current}));const ee=ue=>f?f(ue):ue,[ie,ne]=l.useState(()=>rm(ee(s||"")));l.useEffect(()=>{c!==void 0&&ne(rm(c))},[c]);const oe=ut(ue=>{ne(ue),S&&S(ue),d&&ue.length===r&&ue.every(he=>he)&&ue.some((he,pe)=>ie[pe]!==he)&&d(ue.join(""))}),de=ut((ue,he)=>{let pe=xn(ie);for(let Ie=0;Ie<ue;Ie+=1)pe[Ie]||(pe[Ie]="");he.length<=1?pe[ue]=he:pe=pe.slice(0,ue).concat(rm(he)),pe=pe.slice(0,r);for(let Ie=pe.length-1;Ie>=0&&!pe[Ie];Ie-=1)pe.pop();const Se=ee(pe.map(Ie=>Ie||" ").join(""));return pe=rm(Se).map((Ie,Re)=>Ie===" "&&!pe[Re]?pe[Re]:Ie),pe}),le=(ue,he)=>{const pe=de(ue,he),Se=Math.min(ue+he.length,r-1);Se!==ue&&pe[ue]!==void 0&&Z.current[Se]?.focus(),oe(pe)},fe=ue=>{Z.current[ue]?.focus()},ge=(ue,he)=>{for(let pe=0;pe<he;pe+=1)if(!Z.current[pe]?.input?.value){Z.current[pe]?.focus();break}w?.(ue)},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`]:A==="small",[`${L}-lg`]:A==="large",[`${L}-rtl`]:k==="rtl"},V,z,G,_.root),style:{...B.root,...U,...N},role:"group"},l.createElement(Tr.Provider,{value:X},Array.from({length:r}).map((ue,he)=>{const pe=`otp-${he}`,Se=ie[he]||"";return l.createElement(l.Fragment,{key:pe},l.createElement(OK,{ref:Ie=>{Z.current[he]=Ie},index:he,size:A,htmlSize:1,className:Q(_.input,`${L}-input`),style:B.input,onChange:le,value:Se,onActiveChange:fe,autoFocus:he===0&&C,onFocus:Ie=>ge(Ie,he),...re}),he<r-1&&l.createElement(NK,{separator:p,index:he,prefixCls:L,className:Q(_.separator),style:B.separator}))})))}),PK=e=>e?l.createElement(FG,null):l.createElement(BG,null),zK={click:"onClick",hover:"onMouseOver"},AK=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:s=PK,suffix:c}=e,d=l.useContext(kr),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 C=k3(y),b=()=>{if(f)return;g&&C();const k=!g;h(k),typeof i=="object"&&i.onVisibleChange?.(k)},$=k=>{const U=zK[r]||"",G=s(g),L={[U]:b,className:`${k}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return l.cloneElement(l.isValidElement(G)?G:l.createElement("span",null,G),L)},{className:S,prefixCls:w,inputPrefixCls:M,size:x,...R}=e,{getPrefixCls:T}=l.useContext(dt),N=T("input",M),O=T("input-password",w),P=i&&$(O),D=Q(O,S,{[`${O}-${x}`]:!!x}),W={...nn(R,["suffix","iconRender","visibilityToggle"]),type:g?"text":"password",className:D,prefixCls:N,suffix:l.createElement(l.Fragment,null,P,c)};return x&&(W.size=x),l.createElement(Gp,{ref:or(t,y),...W})}),DK=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}}}}}}},jK=Pt(["Input","Search"],e=>[DK(e)]),_K=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:C,onCompositionEnd:b,variant:$,onPressEnter:S,classNames:w,styles:M,hidden:x,...R}=e,{direction:T,getPrefixCls:N,classNames:O,styles:P}=It("inputSearch"),D={...e,enterButton:d},[W,k]=Lt([O,w],[P,M],{props:D},{button:{_default:"root"}}),U=l.useRef(!1),G=N("input-search",n),L=N("input",r),[H,_]=jK(G),{compactSize:B}=Ma(G,T),I=fr(re=>s??B??re),z=l.useRef(null),V=re=>{re?.target&&re.type==="click"&&h&&h(re.target.value,re,{source:"clear"}),y?.(re)},A=re=>{document.activeElement===z.current?.input&&re.preventDefault()},j=re=>{h&&h(z.current?.input?.value,re,{source:"input"})},q=re=>{U.current||p||(S?.(re),j(re))},X=typeof d=="boolean"?l.createElement(PO,null):null,K=`${G}-btn`,Z=Q(K,{[`${K}-${$}`]:$});let ee;const ie=d||{},ne=ie.type&&ie.type.__ANT_BUTTON===!0;ne||ie.type==="button"?ee=nr(ie,{onMouseDown:A,onClick:re=>{ie?.props?.onClick?.(re),j(re)},key:"enterButton",...ne?{className:Z,size:I}:{}}):ee=l.createElement(_t,{classNames:W.button,styles:k.button,className:Z,color:d?"primary":"default",size:I,disabled:g,key:"enterButton",onMouseDown:A,onClick:j,loading:p,icon:X,variant:$==="borderless"||$==="filled"||$==="underlined"?"text":d?"solid":void 0},d),f&&(ee=[ee,nr(f,{key:"addonAfter"})]);const oe=Q(G,_,{[`${G}-rtl`]:T==="rtl",[`${G}-${I}`]:!!I,[`${G}-with-button`]:!!d},i,H,W.root),de=re=>{U.current=!0,C?.(re)},le=re=>{U.current=!1,b?.(re)},fe=jn(R,{data:!0}),ge=nn({...R,classNames:nn(W,["button","root"]),styles:nn(k,["button","root"]),prefixCls:L,type:"search",size:I,variant:$,onPressEnter:q,onCompositionStart:de,onCompositionEnd:le,onChange:V,disabled:g},Object.keys(fe));return l.createElement(PT,{className:oe,style:{...c,...k.root},...fe,hidden:x},l.createElement(Gp,{ref:or(z,t),...ge}),ee)}),HK=`
|
|
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
|
+
`,BK=["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"],Gy={};let no;function LK(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Gy[n])return Gy[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:BK.map(p=>`${p}:${r.getPropertyValue(p)}`).join(";"),paddingSize:s,borderSize:c,boxSizing:i};return t&&n&&(Gy[n]=f),f}function VK(e,t=!1,n=null,r=null){no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),no.setAttribute("name","hiddenTextarea"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");const{paddingSize:i,borderSize:s,boxSizing:c,sizingStyle:d}=LK(e,t);no.setAttribute("style",`${d};${HK}`),no.value=e.value||e.placeholder||"";let f,p,g,h=no.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=i),n!==null||r!==null){no.value=" ";const C=no.scrollHeight-i;n!==null&&(f=C*n,c==="border-box"&&(f=f+i+s),h=Math.max(f,h)),r!==null&&(p=C*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 lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}const Xy=0,Ky=1,Qy=2,FK=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,[C,b]=Yt(r,i),$=C??"",S=H=>{b(H.target.value),g?.(H)},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(Qy),[O,P]=l.useState(),D=()=>{N(Xy)};Nt(()=>{R&&D()},[i,M,x,R]),Nt(()=>{if(T===Xy)N(Ky);else if(T===Ky){const H=VK(w.current,!1,M,x);N(Qy),P(H)}},[T]);const W=l.useRef(),k=()=>{Ht.cancel(W.current)},U=H=>{T===Qy&&(c?.(H),s&&(k(),W.current=Ht(()=>{D()})))};l.useEffect(()=>k,[]);const L={...f,...R?O:null};return(T===Xy||T===Ky)&&(L.overflowY="hidden",L.overflowX="hidden"),l.createElement(Vr,{onResize:U,disabled:!(s||c)},l.createElement("textarea",lS({},y,{ref:w,style:L,className:Q(n,d,{[`${n}-disabled`]:p}),disabled:p,value:$,onChange:S})))});function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}const kK=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:C,style:b,disabled:$,hidden:S,classNames:w,styles:M,onResize:x,onClear:R,onPressEnter:T,readOnly:N,autoSize:O,onKeyDown:P,...D},W)=>{const[k,U]=Yt(e,t),G=k==null?"":String(k),[L,H]=ae.useState(!1),_=ae.useRef(!1),[B,I]=ae.useState(null),z=l.useRef(null),V=l.useRef(null),A=()=>V.current?.textArea,j=()=>{A().focus()};l.useImperativeHandle(W,()=>({resizableTextArea:V.current,focus:j,blur:()=>{A().blur()},nativeElement:z.current?.nativeElement||A()})),l.useEffect(()=>{H(we=>!$&&we)},[$]);const[q,X]=ae.useState(null);ae.useEffect(()=>{q&&A().setSelectionRange(...q)},[q]);const K=V3(y,h),Z=K.max??c,ee=Number(Z)>0,ie=K.strategy(G),ne=!!Z&&ie>Z,oe=(we,se)=>{let be=se;!_.current&&K.exceedFormatter&&K.max&&K.strategy(se)>K.max&&(be=K.exceedFormatter(se,{max:K.max}),se!==be&&X([A().selectionStart||0,A().selectionEnd||0])),U(be),up(we.currentTarget,we,i,be)},de=we=>{_.current=!0,d?.(we)},le=we=>{_.current=!1,oe(we,we.currentTarget.value),f?.(we)},fe=we=>{oe(we,we.target.value)},ge=we=>{we.key==="Enter"&&T&&!we.nativeEvent.isComposing&&T(we),P?.(we)},re=we=>{H(!0),n?.(we)},ue=we=>{H(!1),r?.(we)},he=we=>{U(""),j(),up(A(),we,i)};let pe=p,Se;K.show&&(K.showFormatter?Se=K.showFormatter({value:G,count:ie,maxLength:Z}):Se=`${ie}${ee?` / ${Z}`:""}`,pe=ae.createElement(ae.Fragment,null,pe,ae.createElement("span",{className:Q(`${g}-data-count`,w?.count),style:M?.count},Se)));const Ie=we=>{x?.(we),A()?.style.height&&I(!0)},Re=!O&&!h&&!s;return ae.createElement(L3,{ref:z,value:G,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(C,ne&&`${g}-out-of-range`),style:{...b,...B&&!Re?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:S,readOnly:N,onClear:R},ae.createElement(FK,sS({},D,{autoSize:O,maxLength:c,onKeyDown:ge,onChange:fe,onFocus:re,onBlur:ue,onCompositionStart:de,onCompositionEnd:le,className:Q(w?.textarea),style:{resize:b?.resize,...M?.textarea},disabled:$,prefixCls:g,onResize:Ie,ref:V,readOnly:N})))}),WK=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}}}}}},qK=Pt(["Input","TextArea"],e=>{const t=Ot(e,Vs(e));return WK(t)},Fs,{resetFont:!1}),rN=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:C,showCount:b,onMouseDown:$,onResize:S,...w}=e,{getPrefixCls:M,direction:x,allowClear:R,autoComplete:T,className:N,style:O,classNames:P,styles:D}=It("textArea"),W=l.useContext(kr),k=s??W,{status:U,hasFeedback:G,feedbackIcon:L}=l.useContext(Tr),H=Ds(U,c),[_,B]=Lt([P,f],[D,y],{props:e}),I=l.useRef(null);l.useImperativeHandle(t,()=>({resizableTextArea:I.current?.resizableTextArea,focus:re=>{JO(I.current?.resizableTextArea?.textArea,re)},blur:()=>I.current?.blur()}));const z=M("input",n),V=ar(z),[A,j]=h3(z,p);qK(z,V);const{compactSize:q,compactItemClassnames:X}=Ma(z,x),K=fr(re=>i??q??re),[Z,ee]=js("textArea",C,r),ie=F3(d??R),[ne,oe]=l.useState(!1),[de,le]=l.useState(!1),fe=re=>{oe(!0),$?.(re);const ue=()=>{oe(!1),document.removeEventListener("mouseup",ue)};document.addEventListener("mouseup",ue)},ge=re=>{if(S?.(re),ne&&typeof getComputedStyle=="function"){const ue=I.current?.nativeElement?.querySelector("textarea");ue&&getComputedStyle(ue).resize==="both"&&le(!0)}};return l.createElement(kK,{autoComplete:T,...w,style:{...B.root,...O,...h},styles:B,disabled:k,allowClear:ie,className:Q(j,V,g,p,X,N,_.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:de}),classNames:{..._,textarea:Q({[`${z}-sm`]:K==="small",[`${z}-lg`]:K==="large"},A,_.textarea,ne&&`${z}-mouse-active`),variant:Q({[`${z}-${Z}`]:ee},Ji(z,H)),affixWrapper:Q(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x==="rtl",[`${z}-affix-wrapper-sm`]:K==="small",[`${z}-affix-wrapper-lg`]:K==="large",[`${z}-textarea-show-count`]:b||e.count?.show},A)},prefixCls:z,suffix:G&&l.createElement("span",{className:`${z}-textarea-suffix`},L),showCount:b,ref:I,onResize:ge,onMouseDown:fe})}),Nr=Gp;Nr.Group=MK;Nr.Search=_K;Nr.TextArea=rN;Nr.Password=AK;Nr.OTP=IK;function YK(e,t,n){return typeof n=="boolean"?n:e.length?!0:dr(t).some(i=>i.type===u6)}const Xp=({suffixCls:e,tagName:t,displayName:n})=>r=>l.forwardRef((s,c)=>l.createElement(r,{ref:c,suffixCls:e,tagName:t,...s})),S1=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]=c6(f),g=r?`${f}-${r}`:f;return l.createElement(s,{className:Q(n||g,i,p),ref:t,...c})}),UK=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,C=nn(y,["suffixCls"]),{getPrefixCls:b,className:$,style:S}=It("layout"),w=b("layout",s),M=YK(r,f,p),[x,R]=c6(w),T=Q(w,{[`${w}-has-sider`]:M,[`${w}-rtl`]:n==="rtl"},$,c,d,x,R),N=l.useMemo(()=>({siderHook:{addSider:O=>{i(P=>[].concat(xn(P),[O]))},removeSider:O=>{i(P=>P.filter(D=>D!==O))}}}),[]);return l.createElement(i6.Provider,{value:N},l.createElement(g,{ref:t,className:T,style:{...S,...h},...C},f))}),GK=Xp({tagName:"div",displayName:"Layout"})(UK),XK=Xp({suffixCls:"header",tagName:"header",displayName:"Header"})(S1),KK=Xp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(S1),QK=Xp({suffixCls:"content",tagName:"main",displayName:"Content"})(S1),Ra=GK;Ra.Header=XK;Ra.Footer=KK;Ra.Content=QK;Ra.Sider=u6;Ra._InternalSiderContext=Lp;const ZK={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:"页码"},JK=[10,20,50,100],eQ=e=>{const{pageSizeOptions:t=JK,locale:n,changeSize:r,pageSize:i,goButton:s,quickGo:c,rootPrefixCls:d,disabled:f,buildOptionText:p,showSizeChanger:g,sizeChangerRender:h}=e,[y,C]=ae.useState(""),b=ae.useMemo(()=>!y||Number.isNaN(y)?void 0:Number(y),[y]),$=typeof p=="function"?p:P=>`${P} ${n.items_per_page}`,S=P=>{const D=P.target.value;/^\d*$/.test(D)&&C(D)},w=P=>{s||y===""||(C(""),!(P.relatedTarget&&(P.relatedTarget.className.includes(`${d}-item-link`)||P.relatedTarget.className.includes(`${d}-item`)))&&c?.(b))},M=P=>{y!==""&&(P.keyCode===nt.ENTER||P.type==="click")&&(C(""),c?.(b))},x=()=>t.some(P=>P.toString()===i.toString())?t:t.concat([i]).sort((P,D)=>{const W=Number.isNaN(Number(P))?0:Number(P),k=Number.isNaN(Number(D))?0:Number(D);return W-k}),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:P=>{r?.(Number(P))},"aria-label":n.page_size,className:`${R}-size-changer`,options:x().map(P=>({label:$(P),value:P}))})),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:S,onKeyUp:M,onBlur:w,"aria-label":n.page}),n.page,O)),ae.createElement("li",{className:R},T,N)},qc=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)},C=$=>{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:C,tabIndex:0},b):null};function ni(){return ni=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},ni.apply(this,arguments)}const tQ=(e,t,n)=>n;function v4(){}function S4(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Hi(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const nQ=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=v4,hideOnSinglePage:y,align:C,showPrevNextJumpers:b=!0,showQuickJumper:$,showLessItems:S,showTitle:w=!0,onShowSizeChange:M=v4,locale:x=ZK,style:R,totalBoundaryShowSizeChanger:T=50,disabled:N,simple:O,showTotal:P,showSizeChanger:D=f>T,sizeChangerRender:W,pageSizeOptions:k,itemRender:U=tQ,jumpPrevIcon:G,jumpNextIcon:L,prevIcon:H,nextIcon:_}=e,B=ae.useRef(null),[I,z]=Yt(g,p),[V,A]=Yt(d,c),j=Math.max(1,Math.min(V,Hi(void 0,I,f))),[q,X]=ae.useState(j);l.useEffect(()=>{X(j)},[j]);const K=Math.max(1,j-(S?3:5)),Z=Math.min(Hi(void 0,I,f),j+(S?3:5));function ee(qe,at){let He=qe||ae.createElement("button",{type:"button","aria-label":at,className:`${t}-item-link`});return typeof qe=="function"&&(He=ae.createElement(qe,e)),He}function ie(qe){const at=qe.target.value,He=Hi(void 0,I,f);let Ae;return at===""?Ae=at:Number.isNaN(Number(at))?Ae=q:at>=He?Ae=He:Ae=Number(at),Ae}function ne(qe){return S4(qe)&&qe!==j&&S4(f)&&f>0}const oe=f>I?$:!1;function de(qe){(qe.keyCode===nt.UP||qe.keyCode===nt.DOWN)&&qe.preventDefault()}function le(qe){const at=ie(qe);switch(at!==q&&X(at),qe.keyCode){case nt.ENTER:re(at);break;case nt.UP:re(at-1);break;case nt.DOWN:re(at+1);break}}function fe(qe){re(ie(qe))}function ge(qe){const at=Hi(qe,I,f),He=j>at&&at!==0?at:j;z(qe),X(He),M?.(j,qe),A(He),h?.(He,qe)}function re(qe){if(ne(qe)&&!N){const at=Hi(void 0,I,f);let He=qe;return qe>at?He=at:qe<1&&(He=1),He!==q&&X(He),A(He),h?.(He,I),He}return j}const ue=j>1,he=j<Hi(void 0,I,f);function pe(){ue&&re(j-1)}function Se(){he&&re(j+1)}function Ie(){re(K)}function Re(){re(Z)}function we(qe,at,...He){(qe.key==="Enter"||qe.charCode===nt.ENTER||qe.keyCode===nt.ENTER)&&at(...He)}function se(qe){we(qe,pe)}function be(qe){we(qe,Se)}function Ee(qe){we(qe,Ie)}function Ne(qe){we(qe,Re)}function Ve(qe){const at=U(qe,"prev",ee(H,"prev page"));return ae.isValidElement(at)?ae.cloneElement(at,{disabled:!ue}):at}function Ge(qe){const at=U(qe,"next",ee(_,"next page"));return ae.isValidElement(at)?ae.cloneElement(at,{disabled:!he}):at}function et(qe){(qe.type==="click"||qe.keyCode===nt.ENTER)&&re(q)}let Te=null;const _e=jn(e,{aria:!0,data:!0}),Le=P&&ae.createElement("li",{className:`${t}-total-text`},P(f,[f===0?0:(j-1)*I+1,j*I>f?f:j*I]));let Qe=null;const De=Hi(void 0,I,f);if(y&&f<=I)return null;const ve=[],Pe={rootPrefixCls:t,onClick:re,onKeyPress:we,showTitle:w,itemRender:U,page:-1,className:i?.item,style:s?.item},Ze=j-1>0?j-1:0,Ue=j+1<De?j+1:De,Fe=$&&$.goButton,ze=typeof O=="object"?O.readOnly:!O;let Xe=Fe,rt=null;O&&(Fe&&(typeof Fe=="boolean"?Xe=ae.createElement("button",{type:"button",onClick:et,onKeyUp:et},x.jump_to_confirm):Xe=ae.createElement("span",{onClick:et,onKeyUp:et},Fe),Xe=ae.createElement("li",{title:w?`${x.jump_to}${j}/${De}`:null,className:`${t}-simple-pager`},Xe)),rt=ae.createElement("li",{title:w?`${j}/${De}`:null,className:Q(`${t}-simple-pager`,i?.item),style:s?.item},ze?q:ae.createElement("input",{type:"text","aria-label":x.jump_to,value:q,disabled:N,onKeyDown:de,onKeyUp:le,onChange:le,onBlur:fe,size:3}),ae.createElement("span",{className:`${t}-slash`},"/"),De));const ot=S?1:2;if(De<=3+ot*2){De||ve.push(ae.createElement(qc,ni({},Pe,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let qe=1;qe<=De;qe+=1)ve.push(ae.createElement(qc,ni({},Pe,{key:qe,page:qe,active:j===qe})))}else{const qe=S?x.prev_3:x.prev_5,at=S?x.next_3:x.next_5,He=U(K,"jump-prev",ee(G,"prev page")),Ae=U(Z,"jump-next",ee(L,"next page"));b&&(Te=He?ae.createElement("li",{title:w?qe:null,key:"prev",onClick:Ie,tabIndex:0,onKeyDown:Ee,className:Q(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!G})},He):null,Qe=Ae?ae.createElement("li",{title:w?at:null,key:"next",onClick:Re,tabIndex:0,onKeyDown:Ne,className:Q(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!L})},Ae):null);let We=Math.max(1,j-ot),Me=Math.min(j+ot,De);j-1<=ot&&(Me=1+ot*2),De-j<=ot&&(We=De-ot*2);for(let Ye=We;Ye<=Me;Ye+=1)ve.push(ae.createElement(qc,ni({},Pe,{key:Ye,page:Ye,active:j===Ye})));if(j-1>=ot*2&&j!==3&&(ve[0]=ae.cloneElement(ve[0],{className:Q(`${t}-item-after-jump-prev`,ve[0].props.className)}),ve.unshift(Te)),De-j>=ot*2&&j!==De-2){const Ye=ve[ve.length-1];ve[ve.length-1]=ae.cloneElement(Ye,{className:Q(`${t}-item-before-jump-next`,Ye.props.className)}),ve.push(Qe)}We!==1&&ve.unshift(ae.createElement(qc,ni({},Pe,{key:1,page:1}))),Me!==De&&ve.push(ae.createElement(qc,ni({},Pe,{key:De,page:De})))}let lt=Ve(Ze);if(lt){const qe=!ue||!De;lt=ae.createElement("li",{title:w?x.prev_page:null,onClick:pe,tabIndex:qe?null:0,onKeyDown:se,className:Q(`${t}-prev`,i?.item,{[`${t}-disabled`]:qe}),style:s?.item,"aria-disabled":qe},lt)}let St=Ge(Ue);if(St){let qe,at;O?(qe=!he,at=ue?0:null):(qe=!he||!De,at=qe?null:0),St=ae.createElement("li",{title:w?x.next_page:null,onClick:Se,tabIndex:at,onKeyDown:be,className:Q(`${t}-next`,i?.item,{[`${t}-disabled`]:qe}),style:s?.item,"aria-disabled":qe},St)}const Ct=Q(t,r,{[`${t}-start`]:C==="start",[`${t}-center`]:C==="center",[`${t}-end`]:C==="end",[`${t}-simple`]:O,[`${t}-disabled`]:N});return ae.createElement("ul",ni({className:Ct,style:R,ref:B},_e),Le,lt,O?rt:ve,St,ae.createElement(eQ,{locale:x,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:ge,pageSize:I,pageSizeOptions:k,quickGo:oe?re:null,goButton:Xe,showSizeChanger:D,sizeChangerRender:W}))},rQ=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}}}}},oQ=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:{...d1(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},aQ=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}}}}}},iQ=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:{...f1(e),...u1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Up(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},lQ=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}}}}},sQ=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"},...lQ(e),...iQ(e),...aQ(e),...oQ(e),...rQ(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"}}},cQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...xo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Uo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Uo(e)}}}},oN=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,...Fs(e)}),aN=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"},Vs(e)),uQ=Pt("Pagination",e=>{const t=aN(e);return[sQ(t),cQ(t)]},oN),dQ=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}}}}},fQ=ad(["Pagination","bordered"],e=>{const t=aN(e);return dQ(t)},oN);function C4(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const mQ=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:C,classNames:b,...$}=e,{xs:S}=Ap(p),[,w]=Wr(),{getPrefixCls:M,direction:x,showSizeChanger:R,className:T,style:N,classNames:O,styles:P}=It("pagination"),D=M("pagination",n),[W,k]=uQ(D),U=fr(d),G=U==="small"||!!(S&&!U&&p),L={...e,size:U},[H,_]=Lt([O,b],[P,C],{props:L}),[B]=oo("Pagination",tT),I={...B,...f},[z,V]=C4(g),[A,j]=C4(R),q=z??A,X=V??j,K=h||Lr,Z=l.useMemo(()=>y?y.map(le=>Number(le)):void 0,[y]),ee=le=>{const{disabled:fe,size:ge,onSizeChange:re,"aria-label":ue,className:he,options:pe}=le,{className:Se,onChange:Ie}=X||{},Re=pe.find(we=>String(we.value)===String(ge))?.value;return l.createElement(K,{disabled:fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:we=>we.parentNode,"aria-label":ue,options:pe,...X,value:Re,onChange:(we,se)=>{re?.(we),Ie?.(we,se)},size:G?"small":"middle",className:Q(he,Se)})},ie=l.useMemo(()=>{const le=l.createElement("span",{className:`${D}-item-ellipsis`},"•••"),fe=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(ws,null):l.createElement(Eu,null)),ge=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(Eu,null):l.createElement(ws,null)),re=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},x==="rtl"?l.createElement(d4,{className:`${D}-item-link-icon`}):l.createElement(u4,{className:`${D}-item-link-icon`}),le)),ue=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},x==="rtl"?l.createElement(u4,{className:`${D}-item-link-icon`}):l.createElement(d4,{className:`${D}-item-link-icon`}),le));return{prevIcon:fe,nextIcon:ge,jumpPrevIcon:re,jumpNextIcon:ue}},[x,D]),ne=M("select",r),oe=Q({[`${D}-${t}`]:!!t,[`${D}-mini`]:G,[`${D}-rtl`]:x==="rtl",[`${D}-bordered`]:w.wireframe},T,i,s,H.root,W,k),de={..._.root,...N,...c};return l.createElement(l.Fragment,null,w.wireframe&&l.createElement(fQ,{prefixCls:D}),l.createElement(nQ,{...ie,...$,styles:_,classNames:H,style:de,prefixCls:D,selectPrefixCls:ne,className:oe,locale:I,pageSizeOptions:Z,showSizeChanger:q,sizeChangerRender:ee}))},fp=100,iN=fp/5,lN=fp/2-iN/2,Zy=lN*2*Math.PI,$4=50,x4=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:lN,cx:$4,cy:$4,strokeWidth:iN,style:n})},pQ=({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:`${Zy/4}`,strokeDasharray:`${Zy*d/100} ${Zy*(100-d)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,d<=0&&i)},l.createElement("svg",{viewBox:`0 0 ${fp} ${fp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(x4,{dotClassName:n,hasCircleCls:!0}),l.createElement(x4,{dotClassName:n,style:f})))};function gQ(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(pQ,{prefixCls:t,percent:n}))}function hQ(e){const{prefixCls:t,indicator:n,percent:r,className:i,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?nr(n,d=>({className:Q(d.className,c,i),style:{...d.style,...s},percent:r})):l.createElement(gQ,{prefixCls:t,percent:r,className:i,style:s})}const yQ=new At("antSpinMove",{to:{opacity:1}}),bQ=new At("antRotate",{to:{transform:"rotate(405deg)"}}),vQ=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:yQ,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:bQ,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"}}}},SQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},CQ=Pt("Spin",e=>{const t=Ot(e,{spinDotDefault:e.colorTextDescription});return vQ(t)},SQ),$Q=200,w4=[[30,.05],[70,.03],[96,.01]];function xQ(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<w4.length;f+=1){const[p,g]=w4[f];if(c<=p)return c+d*g}return c})},$Q)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[s,e]),s?n:t}let sN;function wQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const mp=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:C,classNames:b,styles:$,...S}=e,{getPrefixCls:w,direction:M,indicator:x,className:R,style:T,classNames:N,styles:O}=It("spin"),P=w("spin",t),[D,W]=CQ(P),[k,U]=l.useState(()=>n&&!wQ(n,r)),G=xQ(k,C);l.useEffect(()=>{if(n){const q=SU(r,()=>{U(!0)});return q(),()=>{q?.cancel?.()}}U(!1)},[r,n]);const L=l.useMemo(()=>typeof g<"u"&&!h,[g,h]),H={...e,size:c,spinning:k,tip:d,fullscreen:h,children:g,percent:G},[_,B]=Lt([N,b],[O,$],{props:H}),I=Q(P,R,{[`${P}-sm`]:c==="small",[`${P}-lg`]:c==="large",[`${P}-spinning`]:k,[`${P}-show-text`]:!!d,[`${P}-rtl`]:M==="rtl"},i,!h&&s,!h&&_.root,D,W),z=Q(`${P}-container`,{[`${P}-blur`]:k}),V=y??x??sN,A={...T,...p},j=l.createElement("div",{...S,style:h?A:{...B.root,...A},className:I,"aria-live":"polite","aria-busy":k},l.createElement(hQ,{className:_.indicator,style:B.indicator,prefixCls:P,indicator:V,percent:G}),d&&(L||h)?l.createElement("div",{className:Q(`${P}-text`,_.tip),style:B.tip},d):null);return L?l.createElement("div",{...S,className:Q(`${P}-nested-loading`,f,_.wrapper,D,W),style:B.wrapper},k&&l.createElement("div",{key:"loading"},j),l.createElement("div",{className:z,key:"container"},g)):h?l.createElement("div",{className:Q(`${P}-fullscreen`,{[`${P}-fullscreen-show`]:k},s,D,W,_.mask),style:B.mask},j):j};mp.setDefaultIndicator=e=>{sN=e};const C1=ae.createContext({});C1.Consumer;const EQ=({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)},MQ=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(C1),{getPrefixCls:C,list:b}=l.useContext(dt),$=O=>Q(b?.item?.classNames?.[O],f?.[O]),S=O=>({...b?.item?.styles?.[O],...c?.[O]}),w=()=>{const O=dr(r);return O.some(D=>typeof D=="string")&&O.length>1},M=()=>y==="vertical"?!!s:!w(),x=C("list",n),R=i&&i.length>0&&ae.createElement("ul",{className:Q(`${x}-item-action`,$("actions")),key:"actions",style:S("actions")},i.map((O,P)=>ae.createElement("li",{key:`${x}-item-action-${P}`},O,P!==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:S("extra")},s)]:[r,R,nr(s,{key:"extra"})]);return h?ae.createElement(MU,{ref:t,flex:1,style:p},N):N}),cN=MQ;cN.Meta=EQ;const RQ=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}}}},TQ=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)}`}}}}}},OQ=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:C,colorText:b,colorTextDescription:$,motionDurationSlow:S,lineWidth:w,headerBg:M,footerBg:x,emptyTextPadding:R,metaMarginBottom:T,avatarMarginRight:N,titleMarginBottom:O,descriptionFontSize:P}=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 ${S}`,"&:hover":{color:p}}},[`${t}-item-meta-description`]:{color:$,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${te(y)}`,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width: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:C,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"}}}}},NQ=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}),IQ=Pt("List",e=>{const t=Ot(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[OQ(t),RQ(t),TQ(t)]},NQ),PQ=(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:C=[],size:b,header:$,footer:S,loading:w=!1,rowKey:M,renderItem:x,locale:R,...T}=e,N=n&&typeof n=="object"?n:{},[O,P]=l.useState(N.defaultCurrent||1),[D,W]=l.useState(N.defaultPageSize||10),{getPrefixCls:k,direction:U,className:G,style:L}=It("list"),{renderEmpty:H}=l.useContext(dt),_={current:1,total:0,position:"bottom"},B=Re=>(we,se)=>{P(we),W(se),n&&n?.[Re]?.(we,se)},I=B("onChange"),z=B("onShowSizeChange"),V=(Re,we)=>{if(!x)return null;let se;return typeof M=="function"?se=M(Re):M?se=Re[M]:se=Re.key,se||(se=`list-item-${we}`),l.createElement(l.Fragment,{key:se},x(Re,we))},A=!!(h||n||S),j=k("list",r),[q,X]=IQ(j);let K=w;typeof K=="boolean"&&(K={spinning:K});const Z=!!K?.spinning,ee=fr(b);let ie="";switch(ee){case"large":ie="lg";break;case"small":ie="sm";break}const ne=Q(j,{[`${j}-vertical`]:g==="vertical",[`${j}-${ie}`]:ie,[`${j}-split`]:s,[`${j}-bordered`]:i,[`${j}-loading`]:Z,[`${j}-grid`]:!!y,[`${j}-something-after-last-item`]:A,[`${j}-rtl`]:U==="rtl"},G,c,d,q,X),oe=Gb(_,{total:C.length,current:O,pageSize:D},n||{}),de=Math.ceil(oe.total/oe.pageSize);oe.current=Math.min(oe.current,de);const le=n&&l.createElement("div",{className:Q(`${j}-pagination`)},l.createElement(mQ,{align:"end",...oe,onChange:I,onShowSizeChange:z}));let fe=xn(C);n&&C.length>(oe.current-1)*oe.pageSize&&(fe=xn(C).splice((oe.current-1)*oe.pageSize,oe.pageSize));const ge=Object.keys(y||{}).some(Re=>["xs","sm","md","lg","xl","xxl"].includes(Re)),re=Ap(ge),ue=l.useMemo(()=>{for(let Re=0;Re<el.length;Re+=1){const we=el[Re];if(re[we])return we}},[re]),he=l.useMemo(()=>{if(!y)return;const Re=ue&&y[ue]?y[ue]:y.column;if(Re)return{width:`${100/Re}%`,maxWidth:`${100/Re}%`}},[JSON.stringify(y),ue]);let pe=Z&&l.createElement("div",{style:{minHeight:53}});if(fe.length>0){const Re=fe.map(V);pe=y?l.createElement(TU,{gutter:y.gutter},l.Children.map(Re,we=>l.createElement("div",{key:we?.key,style:he},we))):l.createElement("ul",{className:`${j}-items`},Re)}else!p&&!Z&&(pe=l.createElement("div",{className:`${j}-empty-text`},R?.emptyText||H?.("List")||l.createElement(IO,{componentName:"List"})));const Se=oe.position,Ie=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement(C1.Provider,{value:Ie},l.createElement("div",{ref:t,style:{...L,...f},className:ne,...T},(Se==="top"||Se==="both")&&le,$&&l.createElement("div",{className:`${j}-header`},$),l.createElement(mp,{...K},pe,p),S&&l.createElement("div",{className:`${j}-footer`},S),h||(Se==="bottom"||Se==="both")&&le))},zQ=l.forwardRef(PQ),So=zQ;So.Item=cN;const AQ=(e,t=!1)=>t&&!Mr(e)?[]:Array.isArray(e)?e:[e];let Vi=null,Ui=e=>e(),ed=[],td={};function E4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=td,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:i}}const DQ=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=l.useContext(dt),s=td.prefixCls||i("message"),c=l.useContext(E9),[d,f]=OT({...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}),jQ=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(E4),i=()=>{r(E4)};ae.useEffect(i,[]);const s=wT(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),p=ae.createElement(DQ,{ref:t,sync:i,messageConfig:n});return ae.createElement(Qo,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(p):p)}),Kp=()=>{if(!Vi){const e=document.createDocumentFragment(),t={fragment:e};Vi=t,Ui(()=>{DS(ae.createElement(jQ,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Kp())})}}),e)});return}Vi.instance&&(ed.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ui(()=>{const r=Vi.instance.open({...td,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ui(()=>{Vi?.instance.destroy(e.key)});break;default:Ui(()=>{var r;const i=(r=Vi.instance)[t].apply(r,xn(e.args));i?.then(e.resolve),e.setCloseFn(i)})}}),ed=[])};function _Q(e){td={...td,...e},Ui(()=>{Vi?.sync?.()})}function HQ(e){const t=AS(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return ed.push(i),()=>{r?Ui(()=>{r()}):i.skipped=!0}});return Kp(),t}function BQ(e,t){const n=AS(r=>{let i;const s={type:e,args:t,resolve:r,setCloseFn:c=>{i=c}};return ed.push(s),()=>{i?Ui(()=>{i()}):s.skipped=!0}});return Kp(),n}const LQ=e=>{ed.push({type:"destroy",key:e}),Kp()},VQ=["success","info","warning","error","loading"],FQ={open:HQ,destroy:LQ,config:_Q,useMessage:eD,_InternalPanelDoNotUseOrYouWillBeFired:UA},$n=FQ;VQ.forEach(e=>{$n[e]=(...t)=>BQ(e,t)});const kQ=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"),C=ar(h),[b,$]=rO(y,C),S=`${y}-confirm`;let w={};return s?w={closable:i??!1,title:"",footer:"",children:l.createElement(aO,{...e,prefixCls:y,confirmPrefixCls:S,rootPrefixCls:h,content:d})}:w={closable:i??!0,title:c,footer:f!==null&&l.createElement(JT,{...e}),children:d},l.createElement(kT,{prefixCls:y,className:Q(b,`${y}-pure-panel`,s&&S,s&&`${S}-${s}`,n,$,C),...p,closeIcon:ZT(y,r),closable:i,...w})},WQ=pO(kQ);function uN(e){return vd(cO(e))}const ao=oO;ao.useModal=w9;ao.info=function(t){return vd(uO(t))};ao.success=function(t){return vd(dO(t))};ao.error=function(t){return vd(fO(t))};ao.warning=uN;ao.warn=uN;ao.confirm=function(t){return vd(mO(t))};ao.destroyAll=function(){for(;Yi.length;){const t=Yi.pop();t&&t()}};ao.config=S9;ao._InternalPanelDoNotUseOrYouWillBeFired=WQ;const qQ=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}}}}},YQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},dN=Pt("Popconfirm",e=>qQ(e),YQ,{resetStyle:!1}),fN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:s,cancelText:c,okText:d,okType:f="primary",icon:p=l.createElement(As,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:C,onPopupClick:b,classNames:$,styles:S}=e,{getPrefixCls:w}=l.useContext(dt),[M]=oo("Popconfirm",$a.Popconfirm),x=Rs(i),R=Rs(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:S?.title},x),R&&l.createElement("div",{className:Q(`${t}-description`,$?.content),style:S?.content},R))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(_t,{onClick:C,size:"small",...r},c||M?.cancelText),l.createElement(BS,{buttonProps:{size:"small",...jS(f),...n},actionFn:y,close:h,prefixCls:w("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||M?.okText)))},UQ=e=>{const{prefixCls:t,placement:n,className:r,style:i,...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("popconfirm",t);return dN(d),l.createElement(FO,{placement:n,className:Q(d,r),style:i,content:l.createElement(fN,{prefixCls:d,...s})})},GQ=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:i,okType:s="primary",icon:c=l.createElement(As,null),children:d,overlayClassName:f,onOpenChange:p,overlayStyle:g,styles:h,arrow:y,classNames:C,...b}=e,{getPrefixCls:$,className:S,style:w,classNames:M,styles:x,arrow:R,trigger:T}=It("popconfirm"),[N,O]=Yt(e.defaultOpen??!1,e.open),P=GS(y,R),D=i||T||"click",W=(V,A)=>{O(V),p?.(V,A)},k=V=>{W(!1,V)},U=V=>e.onConfirm?.call(void 0,V),G=V=>{W(!1,V),e.onCancel?.call(void 0,V)},L=(V,A)=>{const{disabled:j=!1}=e;j||W(V,A)},H=$("popconfirm",n),_={...e,placement:r,trigger:D,okType:s,overlayStyle:g,styles:h,classNames:C},[B,I]=Lt([M,C],[x,h],{props:_}),z=Q(H,S,f,B.root);return dN(H),l.createElement(kO,{arrow:P,...nn(b,["title"]),trigger:D,placement:r,onOpenChange:L,open:N,ref:t,classNames:{root:z,container:B.container,arrow:B.arrow},styles:{root:{...w,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(fN,{okType:s,icon:c,...e,prefixCls:H,close:k,onConfirm:U,onCancel:G,classNames:B,styles:I}),"data-popover-inject":!0},d)}),cS=GQ;cS._InternalPanelDoNotUseOrYouWillBeFired=UQ;const XQ={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},M4=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function R4(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),i=`${Math.floor(r*t)}%`;return`${e[n]} ${i}`})}const QQ=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,C=r&&typeof r=="object",b=C?"#FFF":void 0,$=h/2,S=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(!C)return S;const w=`${i}-conic`,M=y?`${180+y/2}deg`:"0deg",x=R4(r,(360-y)/360),R=R4(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},S),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${w})`},l.createElement(M4,{bg:N},l.createElement(M4,{bg:T}))))}),tu=100,Jy=(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 C=(100-r)/100*t;f==="round"&&r!==100&&(C+=p/2,C>=t&&(C=t-.01));const b=tu/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:C+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}},ZQ=(({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 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 T4(e){const t=e??[];return Array.isArray(t)?t:[t]}const JQ=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:C,strokeColor:b,percent:$,loading:S,...w}={...XQ,...e},M=tu/2,x=Ko(t),R=`${x}-gradient`,T=M-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,P=N*((360-f)/360),{count:D,gap:W}=typeof s=="object"?s:{count:s,gap:2},k=T4($),U=T4(b),G=U.find(j=>j&&typeof j=="object"),H=G&&typeof G=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:B}=ZQ({id:x,loading:S}),I=Jy(N,P,0,100,O,f,p,g,H,c),z=KQ(),V=()=>{let j=0;return k.map((q,X)=>{const K=U[X]||U[U.length-1],Z=Jy(N,P,j,q,O,f,p,K,H,c);return j+=q,l.createElement(QQ,{key:X,color:K,ptg:q,radius:T,prefixCls:n,gradientId:R,className:r.track,style:{...Z,..._,...i.track},strokeLinecap:H,strokeWidth:c,gapDegree:f,ref:ee=>{z[X]=ee},size:tu})}).reverse()},A=()=>{const j=Math.round(D*(k[0]/100)),q=100/D;let X=0;return new Array(D).fill(null).map((K,Z)=>{const ee=Z<=j-1?U[0]:g,ie=ee&&typeof ee=="object"?`url(#${R})`:void 0,ne=Jy(N,P,X,q,O,f,p,ee,"butt",c,W);return X+=(P-ne.strokeDashoffset+W)*100/P,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=>{z[Z]=oe}})})};return l.createElement("svg",uS({className:Q(`${n}-circle`,r.root,C),viewBox:`0 0 ${tu} ${tu}`,style:{...i.root,...y},id:t,role:"presentation"},w),!D&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:T,cx:M,cy:M,stroke:g,strokeLinecap:H,strokeWidth:d||c,style:{...I,...i.rail}}),D?A():V(),B)};function Xi(e){return!e||e<0?0:e>100?100:e}function pp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const eZ=({percent:e,success:t})=>{const n=Xi(pp({success:t}));return[n,Xi(Xi(e)-n)]},tZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||ys.green,t||null]},Qp=(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]},nZ=3,rZ=e=>nZ/e*100,O4=["root","body","indicator"],oZ=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:C,size:b=g,steps:$}=e,{direction:S}=It("progress"),w=i??s,[M,x]=Qp(b,"circle");let{strokeWidth:R}=e;R===void 0&&(R=Math.max(rZ(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=eZ(e),P=l.useMemo(()=>{const H=(f??d)||h==="dashboard"&&"bottom"||void 0,_=S==="rtl";switch(H){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return H}},[S,f,d,h]),D=Object.prototype.toString.call(e.strokeColor)==="[object Object]",W=tZ({success:C,strokeColor:e.strokeColor}),k=Q(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),U=l.createElement(JQ,{steps:$,percent:$?O[1]:O,strokeWidth:R,railWidth:R,strokeColor:$?W[1]:W,strokeLinecap:c,railColor:w,prefixCls:t,gapDegree:N,gapPosition:P,classNames:nn(n,O4),styles:nn(r,O4)}),G=M<=20,L=l.createElement("div",{className:k,style:{...T,...r.body}},U,!G&&y);return G?l.createElement(ur,{title:y},L):L},dS="--progress-line-stroke-color",aZ=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}})},iZ=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}}}}},lZ=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:aZ(),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)"}}}}},sZ=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"}}}},cZ=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}}}}}},uZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},dZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fZ=Pt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ot(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[iZ(n),lZ(n),sZ(n),cZ(n),uZ(n)]},dZ),mZ=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(", ")},pZ=(e,t)=>{const{from:n=ys.blue,to:r=ys.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=mZ(s),f=`linear-gradient(${i}, ${d})`;return{background:f,[dS]:f}}const c=`linear-gradient(${i}, ${n}, ${r})`;return{background:c,[dS]:c}},gZ=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:C,success:b}=e,{align:$,type:S}=C,w=h??y,M=p==="square"||p==="butt"?0:void 0,x=c??[-1,d||(c==="small"?6:8)],[R,T]=Qp(x,"line",{strokeWidth:d}),N={backgroundColor:w||void 0,borderRadius:M,height:T},O=`${t}-track`,P=f&&typeof f!="string"?pZ(f,i):{[dS]:f,background:f},D={width:`${Xi(s)}%`,height:T,borderRadius:M,...P},W=pp(e),k={width:`${Xi(W)}%`,height:T,borderRadius:M,backgroundColor:b?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:$==="center"&&S==="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:{...D,...r.track}},S==="inner"&&g),W!==void 0&&l.createElement("div",{className:Q(O,`${O}-success`,n.track),style:{...k,...r.track}})),S==="outer"&&g)},hZ=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,C=s(i*(c/100)),$=r??[r==="small"?2:14,d],[S,w]=Qp($,"step",{steps:i,strokeWidth:d}),M=S/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<=C-1},t.track),style:{backgroundColor:T<=C-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)},yZ=["normal","exception","active","success"],bZ=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:C,format:b,style:$,percentPosition:S={},...w}=e,{align:M="end",type:x="outer"}=S,R=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(R){const ee=typeof R=="string"?R:Object.values(R)[0];return new en(ee).isLight()}return!1},[f]),O=l.useMemo(()=>{const ee=pp(e);return Number.parseInt(ee!==void 0?(ee??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),P=l.useMemo(()=>!yZ.includes(C)&&O>=100?"success":C||"normal",[C,O]),{getPrefixCls:D,direction:W,className:k,style:U,classNames:G,styles:L}=It("progress"),H=D("progress",n),[_,B]=fZ(H),I={...e,percent:p,type:y,size:g,showInfo:h,percentPosition:S},[z,V]=Lt([G,s],[L,c],{props:I}),A=y==="line",j=A&&!d,q=l.useMemo(()=>{if(!h)return null;const ee=pp(e);let ie;const ne=b||(de=>`${de}%`),oe=A&&N&&x==="inner";return x==="inner"||b||P!=="exception"&&P!=="success"?ie=ne(Xi(p),Xi(ee)):P==="exception"?ie=A?l.createElement(zs,null):l.createElement(qr,null):P==="success"&&(ie=A?l.createElement(xp,null):l.createElement(sl,null)),l.createElement("span",{className:Q(`${H}-indicator`,{[`${H}-indicator-bright`]:oe,[`${H}-indicator-${M}`]:j,[`${H}-indicator-${x}`]:j},z.indicator),style:V.indicator,title:typeof ie=="string"?ie:void 0},ie)},[h,p,O,P,y,H,b,A,N,x,M,j,z.indicator,V.indicator]),X={...e,classNames:z,styles:V};let K;y==="line"?K=d?l.createElement(hZ,{...X,strokeColor:T,prefixCls:H,steps:typeof d=="object"?d.count:d},q):l.createElement(gZ,{...X,strokeColor:R,prefixCls:H,direction:W,percentPosition:{align:M,type:x}},q):(y==="circle"||y==="dashboard")&&(K=l.createElement(oZ,{...X,strokeColor:R,prefixCls:H,progressStatus:P},q));const Z=Q(H,`${H}-status-${P}`,{[`${H}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${H}-inline-circle`]:y==="circle"&&Qp(g,"circle")[0]<=20,[`${H}-line`]:j,[`${H}-line-align-${M}`]:j,[`${H}-line-position-${x}`]:j,[`${H}-steps`]:d,[`${H}-show-info`]:h,[`${H}-${g}`]:typeof g=="string",[`${H}-rtl`]:W==="rtl"},k,r,i,z.root,_,B);return l.createElement("div",{ref:t,style:{...U,...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 vZ(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 SZ=l.createContext({}),$1=l.createContext(null);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 mN=l.createContext({}),N4=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext($1),{className:p,style:g}=l.useContext(mN),h=`${c}-item`;return l.createElement("div",fS({},jn(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,p,n),style:{...f.itemIcon,...g,...r}}),i)});function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}function eb(e){return e!=null}function CZ(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,C=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(SZ),{ItemComponent:$}=l.useContext($1),{onClick:S,title:w,subTitle:M,content:x,description:R,disabled:T,icon:N,status:O,className:P,style:D,classNames:W={},styles:k={},...U}=i,G=x??R,L={item:{...i,content:G},index:f,active:d},H=!!(y||S)&&!T,_={};H&&(_.role="button",_.tabIndex=0,_.onClick=X=>{S?.(X),y(f)},_.onKeyDown=X=>{const{which:K}=X;(K===nt.ENTER||K===nt.SPACE)&&y(f)});const B=O||"wait",I=eb(w),z=eb(M),V=Q(C,`${C}-${B}`,{[`${C}-custom`]:N,[`${C}-active`]:d,[`${C}-disabled`]:T===!0,[`${C}-empty-header`]:!I&&!z},P,n.item,W.root);let A=l.createElement(N4,null);g&&(A=g(A,{...L,components:{Icon:N4}}));const j=l.createElement("div",{className:Q(`${C}-wrapper`,n.itemWrapper,W.wrapper),style:{...r.itemWrapper,...k.wrapper}},l.createElement(mN.Provider,{value:{className:W.icon,style:k.icon}},A),l.createElement("div",{className:Q(`${C}-section`,n.itemSection,W.section),style:{...r.itemSection,...k.section}},l.createElement("div",{className:Q(`${C}-header`,n.itemHeader,W.header),style:{...r.itemHeader,...k.header}},I&&l.createElement("div",{className:Q(`${C}-title`,n.itemTitle,W.title),style:{...r.itemTitle,...k.title}},w),z&&l.createElement("div",{title:typeof M=="string"?M:void 0,className:Q(`${C}-subtitle`,n.itemSubtitle,W.subtitle),style:{...r.itemSubtitle,...k.subtitle}},M),!s&&l.createElement(vZ,{prefixCls:C,className:Q(n.itemRail,W.rail),style:{...r.itemRail,...k.rail},status:b?O:c})),eb(G)&&l.createElement("div",{className:Q(`${C}-content`,n.itemContent,W.content),style:{...r.itemContent,...k.content}},G)));let q=l.createElement($,mS({},U,_,{className:V,style:{...r.item,...k.root,...D}}),h?h(j):j);return p&&(q=p(q,L)||null),q}function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}const I4={};function $Z(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:i=I4,styles:s=I4,rootClassName:c,orientation:d,titlePlacement:f,components:p,status:g="process",current:h=0,initial:y=0,onChange:C,items:b,iconRender:$,itemRender:S,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]),P=ae.useMemo(()=>O.map(({status:L},H)=>{const _=y+H;return L||(_===h?g:_<h?"finish":"wait")}),[O,g,h,y]),D=L=>{C&&h!==L&&C(L)},{root:W="div",item:k="div"}=p||{},U=ae.useMemo(()=>({prefixCls:t,classNames:i,styles:s,ItemComponent:k}),[t,i,s,k]),G=(L,H)=>{const _=y+H,B=P[H],I=P[H+1],z={...L,status:B};return ae.createElement(CZ,{key:_,prefixCls:t,classNames:i,styles:s,data:z,nextStatus:I,active:_===h,index:_,last:O.length-1===H,iconRender:$,itemRender:S,itemWrapperRender:w,onClick:C&&D})};return ae.createElement(W,pS({className:N,style:{...n,...s?.root}},M),ae.createElement($1.Provider,{value:U},O.map(G)))}const xZ=l.createContext(null);function wZ(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 EZ(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 MZ=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%)"}}}}},RZ=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}}}},TZ=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 OZ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}function x1(e,t,n){const{calc:r,componentCls:i,descriptionMaxWidth:s}=e,c=`${i}-item`;return{[`@container style(${OZ(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 NZ=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))"}},...x1(e,r,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:n}})}}},IZ=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)"}}}}}},PZ=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()}}}]}},zZ=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`}}}}},AZ=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`]:x1(e,s)}}}},DZ=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(",")})`}}}}}}},jZ=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`]:x1(e,s)}}},om="wait",am="process",im="finish",lm="error",_Z=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}-${om}`]:{"--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-${om}`]:{"--steps-item-solid-line-color":n},[`${h}-${am}`]:{"--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-${am}`]:{"--steps-item-solid-line-color":i,"--steps-rail-line-style":"var(--steps-item-process-rail-line-style)"},[`${h}-${im}`]:{"--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-${im}`]:{"--steps-item-solid-line-color":i},[`${h}-${lm}`]:{"--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-${lm}`]:{"--steps-item-solid-line-color":c}},{[`&${t}-filled`]:{[h]:{"--steps-item-icon-dot-border-color":"transparent"},[`${h}-${om}`]:{"--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}-${am}, ${h}-${im}`]:{"--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}-${lm}`]:{"--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}-${om}`]:{"--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}-${am}, ${h}-${im}`]:{"--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}-${lm}`]:{"--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}}}]}},HZ=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)"}}}}},BZ=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`]:$o},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},LZ=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}),VZ=Pt("Steps",e=>{const t=Ot(e,{inlineDotSize:6});return[BZ(t),RZ(t),HZ(t),MZ(t),NZ(t),jZ(t),AZ(t),_Z(t),IZ(t),PZ(t),TZ(t),zZ(t),DZ(t)]},LZ),FZ={itemIcon:dd},kZ=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:C,titlePlacement:b,ellipsis:$,offset:S=0,items:w,percent:M,current:x=0,onChange:R,iconRender:T,...N}=e,O=l.useContext(xZ),P=It("steps"),{getPrefixCls:D,direction:W,className:k,style:U}=P;let G,L,H={};O?H={root:O.rootComponent,item:O.itemComponent}:{classNames:G,styles:L}=P;const _=D("steps",e.prefixCls),B=`${_}-item-icon`,[I,z]=VZ(_),V=fr(t),A=l.useMemo(()=>(w||[]).filter(Boolean),[w]),{xs:j}=Ap(h),q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),X=q==="inline",K=q==="dot"||q==="inline",Z=l.useMemo(()=>q==="dot"&&typeof y=="function"?y:void 0,[q,y]),ee=l.useMemo(()=>{const pe=g||p;return q==="panel"?"horizontal":h&&j||pe==="vertical"?"vertical":"horizontal"},[g,p,q,h,j]),ie=l.useMemo(()=>K||ee==="vertical"?ee==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||C||"horizontal",[K,C,ee,b,c]),ne=X?void 0:M,oe={...e,variant:s,size:V,type:q,orientation:ee,titlePlacement:ie,current:x,percent:ne,responsive:h,offset:S},[de,le]=Lt([FZ,G,d],[L,f],{props:oe}),fe=(pe,Se)=>{const{item:Ie,index:Re,active:we,components:{Icon:se}}=Se,{status:be,icon:Ee}=Ie;let Ne=null;if(K||Ee)Ne=Ee;else switch(be){case"finish":Ne=l.createElement(sl,{className:`${B}-finish`});break;case"error":Ne=l.createElement(qr,{className:`${B}-error`});break;default:{let Ge=l.createElement("span",{className:`${B}-number`},Se.index+1);be==="process"&&ne!==void 0&&(Ge=l.createElement(EZ,{prefixCls:_,percent:ne},Ge)),Ne=Ge}}let Ve=l.createElement(se,null,Ne);return T?Ve=T(Ve,{index:Re,active:we,item:Ie,components:{Icon:se}}):typeof Z=="function"&&(Ve=Z(Ve,{index:Re,...Ie})),Ve},ge=(pe,Se)=>{let Ie=pe;return X&&Se.item.content&&(Ie=l.createElement(ur,{destroyOnHidden:!0,title:Se.item.content},pe)),l.createElement(fd,{component:"Steps",disabled:Se.item.disabled||!R,colorSource:s==="filled"?"color":null},Ie)},re=q==="panel"?pe=>l.createElement(l.Fragment,null,pe,l.createElement(wZ,{prefixCls:_})):void 0,ue={"--steps-items-offset":`${S}`,...U,...i},he=Q(k,`${_}-${s}`,{[`${_}-${q}`]:q!=="dot"?q:!1,[`${_}-rtl`]:W==="rtl",[`${_}-dot`]:K,[`${_}-ellipsis`]:$,[`${_}-with-progress`]:ne!==void 0,[`${_}-${V}`]:V},n,r,I,z);return l.createElement($Z,{...N,prefixCls:_,className:he,style:ue,classNames:de,styles:le,orientation:ee,titlePlacement:ie,components:H,current:x,items:A,onChange:R,iconRender:fe,itemRender:ge,itemWrapperRender:re})},WZ=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}}}}},w1=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})},E1=e=>{const t=HT(new Wm(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new en(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},M1=Pt("Tag",e=>{const t=w1(e);return WZ(t)},E1),pN=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:C}=l.useContext(dt),b=l.useContext(kr),$=g??b,S=T=>{$||(f?.(!s),p?.(T))},w=y("tag",n),[M,x]=M1(w),R=Q(w,`${w}-checkable`,{[`${w}-checkable-checked`]:s,[`${w}-checkable-disabled`]:$},C?.className,i,M,x);return l.createElement("span",{...h,ref:t,style:{...r,...C?.style},className:R,onClick:S},d,l.createElement("span",null,c))});function qZ(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:C,multiple:b,...$}=e,{getPrefixCls:S,direction:w,className:M,style:x,classNames:R,styles:T}=It("tag"),N=S("tag",r),O=`${N}-checkable-group`,P=ar(N),[D,W]=M1(N,P),[k,U]=Lt([R,d],[T,f],{props:e}),G=l.useMemo(()=>(g||[]).map(z=>z&&typeof z=="object"?z:{value:z,label:z}),[g]),[L,H]=Yt(y,h),_=(z,V)=>{let A=null;if(b){const j=L||[];A=z?[].concat(xn(j),[V.value]):j.filter(q=>q!==V.value)}else A=z?V.value:null;H(A),C?.(A)},B=ae.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:B.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"},D,W,s,k.root),style:{...x,...U.root,...c},id:n,ref:B},G.map(z=>ae.createElement(pN,{key:z.value,className:Q(`${O}-item`,k.item),style:U.item,checked:b?(L||[]).includes(z.value):L===z.value,onChange:V=>_(V,z),disabled:p},z.label)))}const YZ=ae.forwardRef(qZ);function UZ(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=_p(n),p=d7(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 GZ=e=>$p(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}}})),XZ=ad(["Tag","preset"],e=>{const t=w1(e);return GZ(t)},E1);function KZ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const sm=(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}`]}}}},QZ=ad(["Tag","status"],e=>{const t=w1(e);return[sm(t,"success","Success"),sm(t,"processing","Info"),sm(t,"error","Error"),sm(t,"warning","Warning")]},E1),ZZ=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:C,target:b,styles:$,classNames:S,...w}=e,{getPrefixCls:M,direction:x,className:R,variant:T,style:N,classNames:O,styles:P}=It("tag"),[D,W,k,U,G]=UZ(e,T),L=k||U,H=l.useContext(kr),_=y??H,{tag:B}=l.useContext(dt),[I,z]=l.useState(!0),V=nn(w,["closeIcon","closable"]),A={...e,color:W,variant:D,disabled:_,href:C,target:b,icon:d},[j,q]=Lt([O,S],[P,$],{props:A}),X=l.useMemo(()=>{let ue={...q.root,...N,...s};return _||(ue={...G,...ue}),ue},[q.root,N,s,G,_]),K=M("tag",n),[Z,ee]=M1(K),ie=Q(K,R,j.root,`${K}-${D}`,{[`${K}-${W}`]:L,[`${K}-hidden`]:!I,[`${K}-rtl`]:x==="rtl",[`${K}-disabled`]:_},r,i,Z,ee),ne=ue=>{_||(ue.stopPropagation(),g?.(ue),!ue.defaultPrevented&&z(!1))},[,oe]=IS(Cs(e),Cs(B),{closable:!1,closeIconRender:ue=>{const he=l.createElement("span",{className:`${K}-close-icon`,onClick:ne},ue);return zS(ue,he,pe=>({onClick:Se=>{pe?.onClick?.(Se),ne(Se)},className:Q(pe?.className,`${K}-close-icon`)}))}}),de=typeof w.onClick=="function"||c&&c.type==="a",le=nr(d,{className:Q(l.isValidElement(d)?d.props?.className:"",j.icon),style:q.icon}),fe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",{className:j.content,style:q.content},c)):c,ge=C?"a":"span",re=l.createElement(ge,{...V,ref:t,className:ie,style:X,href:_?void 0:C,target:b,onClick:_?void 0:V.onClick,...C&&_?{"aria-disabled":!0}:{}},fe,oe,k&&l.createElement(XZ,{key:"preset",prefixCls:K}),U&&l.createElement(QZ,{key:"status",prefixCls:K}));return de?l.createElement(fd,{component:"Tag"},re):re}),sr=ZZ;sr.CheckableTag=pN;sr.CheckableTagGroup=YZ;const JZ={defaultSeed:_m.token,defaultAlgorithm:DR},eJ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:s}=r;return{marginBottom:i,color:n,fontWeight:s,fontSize:e,lineHeight:t}},tJ=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
|
+
`]=eJ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},nJ=e=>{const{componentCls:t}=e;return{"a&, a":{...VR(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},rJ=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:Dm[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}}),oJ=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"}}}},aJ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),iJ=()=>({"\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"}}),lJ=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"},...tJ(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}},...rJ(e),...nJ(e),[`
|
|
347
|
+
${t}-expand,
|
|
348
|
+
${t}-collapse,
|
|
349
|
+
${t}-edit,
|
|
350
|
+
${t}-copy
|
|
351
|
+
`]:{...VR(e),marginInlineStart:e.marginXXS},...oJ(e),...aJ(e),...iJ(),"&-rtl":{direction:"rtl"}}}},sJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),gN=Pt("Typography",lJ,sJ),cJ=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:C=l.createElement(zG,null)}=e,b=l.useRef(null),$=l.useRef(!1),S=l.useRef(null),[w,M]=l.useState(f);l.useEffect(()=>{M(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:G}=b.current.resizableTextArea;G.focus();const{length:L}=G.value;G.setSelectionRange(L,L)}},[]);const x=({target:G})=>{M(G.value.replace(/[\n\r]/g,""))},R=()=>{$.current=!0},T=()=>{$.current=!1},N=({keyCode:G})=>{$.current||(S.current=G)},O=()=>{p(w.trim())},P=({keyCode:G,ctrlKey:L,altKey:H,metaKey:_,shiftKey:B})=>{S.current!==G||$.current||L||H||_||B||(G===nt.ENTER?(O(),h?.()):G===nt.ESC&&g())},D=()=>{O()},[W,k]=gN(t),U=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,W,k);return l.createElement("div",{className:U,style:i},l.createElement(rN,{ref:b,maxLength:c,value:w,onChange:x,onKeyDown:N,onKeyUp:P,onCompositionStart:R,onCompositionEnd:T,onBlur:D,"aria-label":n,rows:1,autoSize:d}),C!==null?nr(C,{className:`${t}-edit-content-confirm`}):null)},uJ=(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})}},dJ=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 fJ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await dJ(e,n)||uJ(e,n))}const mJ=({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 fJ(h||AQ(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 tb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const pJ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},gJ=(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]),hN=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:C}=It("typography"),b=d??h,$=g("typography",n),[S,w]=gN($),M=Q($,y,{[`${$}-rtl`]:b==="rtl"},i,s,S,w),x={...C,...f};return l.createElement(r,{className:M,style:x,ref:t,...p},c)});function P4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function nb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function hJ(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 R1=e=>["string","number"].includes(typeof e),yJ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const p=P4(i),g=P4(s),{copied:h,copy:y}=n??{},C=t?h:y,b=nb(p[t?1:0],C),$=typeof b=="string"?b:C;return l.createElement(ur,{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?nb(g[1],l.createElement(sl,null),!0):nb(g[0],f?l.createElement(Ep,null):l.createElement(D3,null),!0)))},cm=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)}),bJ=e=>e.reduce((t,n)=>t+(R1(n)?String(n).length:1),0);function z4(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=R1(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 rb=0,ob=1,ab=2,ib=3,A4=4,um={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function vJ(e){const{enableMeasure:t,width:n,text:r,children:i,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,p=l.useMemo(()=>dr(r),[r]),g=l.useMemo(()=>bJ(p),[r]),h=l.useMemo(()=>i(p,!1),[r]),[y,C]=l.useState(null),b=l.useRef(null),$=l.useRef(null),S=l.useRef(null),w=l.useRef(null),M=l.useRef(null),[x,R]=l.useState(!1),[T,N]=l.useState(rb),[O,P]=l.useState(0),[D,W]=l.useState(null);Nt(()=>{N(t&&n&&g?ob:rb)},[n,r,s,t,p]),Nt(()=>{if(T===ob){N(ab);const L=$.current&&getComputedStyle($.current).whiteSpace;W(L)}else if(T===ab){const L=!!S.current?.isExceed();N(L?ib:A4),C(L?[0,g]:null),R(L);const H=S.current?.getHeight()||0,_=s===1?0:w.current?.getHeight()||0,B=M.current?.getHeight()||0,I=Math.max(H,_+B);P(I+1),f(L)}},[T]);const k=y?Math.ceil((y[0]+y[1])/2):0;Nt(()=>{const[L,H]=y||[0,0];if(L!==H){const B=(b.current?.getHeight()||0)>O;let I=k;H-L===1&&(I=B?L:H),C(B?[L,I]:[I,H])}},[y,k]);const U=l.useMemo(()=>{if(!t)return i(p,!1);if(T!==ib||!y||y[0]!==y[1]){const L=i(p,!1);return[A4,rb].includes(T)?L:l.createElement("span",{style:{...um,WebkitLineClamp:s}},L)}return i(c?p:z4(p,y[0]),x)},[c,T,y,p].concat(xn(d))),G={width:n,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,U,T===ab&&l.createElement(l.Fragment,null,l.createElement(cm,{style:{...G,...um,WebkitLineClamp:s},ref:S},h),l.createElement(cm,{style:{...G,...um,WebkitLineClamp:s-1},ref:w},h),l.createElement(cm,{style:{...G,...um,WebkitLineClamp:1},ref:M},i([],!0))),T===ib&&y&&y[0]!==y[1]&&l.createElement(cm,{style:{...G,top:400},ref:b},i(z4(p,k),!0)),T===ob&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const SJ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(ur,{open:t?void 0:!1,...r},n);function CJ({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 $J="...",D4=["delete","mark","code","underline","strong","keyboard","italic"],Zp=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,...C}=e,{getPrefixCls:b,direction:$}=l.useContext(dt),[S]=oo("Text"),w=l.useRef(null),M=l.useRef(null),x=b("typography",n),R=nn(C,D4),[T,N]=tb(p),[O,P]=Yt(!1,N.editing),{triggerType:D=["icon"]}=N,W=ve=>{ve&&N.onStart?.(),P(ve)},k=pJ(O);Nt(()=>{!O&&k&&M.current?.focus()},[O]);const U=ve=>{ve?.preventDefault(),W(!0)},G=ve=>{N.onChange?.(ve),W(!1)},L=()=>{N.onCancel?.(),W(!1)},[H,_]=tb(g),{copied:B,copyLoading:I,onClick:z}=mJ({copyConfig:_,children:d}),[V,A]=l.useState(!1),[j,q]=l.useState(!1),[X,K]=l.useState(!1),[Z,ee]=l.useState(!1),[ie,ne]=l.useState(!0),[oe,de]=tb(f,{expandable:!1,symbol:ve=>ve?S?.collapse:S?.expand}),[le,fe]=Yt(de.defaultExpanded||!1,de.expanded),ge=oe&&(!le||de.expandable==="collapsible"),{rows:re=1}=de,ue=l.useMemo(()=>ge&&(de.suffix!==void 0||de.onEllipsis||de.expandable||T||H),[ge,de,T,H]);Nt(()=>{oe&&!ue&&(A(WE("webkitLineClamp")),q(WE("textOverflow")))},[ue,oe]);const[he,pe]=l.useState(ge),Se=l.useMemo(()=>ue?!1:re===1?j:V,[ue,j,V]);Nt(()=>{pe(Se&&ge)},[Se,ge]);const Ie=ge&&(he?Z:X),Re=ge&&re===1&&he,we=ge&&re>1&&he,se=(ve,Pe)=>{fe(Pe.expanded),de.onExpand?.(ve,Pe)},[be,Ee]=l.useState(0),Ne=({offsetWidth:ve})=>{Ee(ve)},Ve=ve=>{K(ve),X!==ve&&de.onEllipsis?.(ve)};l.useEffect(()=>{const ve=w.current;if(oe&&he&&ve){const Pe=hJ(ve);Z!==Pe&&ee(Pe)}},[oe,he,d,we,ie,be]),l.useEffect(()=>{const ve=w.current;if(typeof IntersectionObserver>"u"||!ve||!he||!ge)return;const Pe=new IntersectionObserver(()=>{ne(!!ve.offsetParent)});return Pe.observe(ve),()=>{Pe.disconnect()}},[he,ge]);const Ge=gJ(de.tooltip,N.text,d),et=l.useMemo(()=>{if(!(!oe||he))return[N.text,d,y,Ge.title].find(R1)},[oe,he,y,Ge.title,Ie]);if(O)return l.createElement(cJ,{value:N.text??(typeof d=="string"?d:""),onSave:G,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:Pe}=de;return ve?l.createElement("button",{type:"button",key:"expand",className:`${x}-${le?"collapse":"expand"}`,onClick:Ze=>se(Ze,{expanded:!le}),"aria-label":le?S.collapse:S?.expand},typeof Pe=="function"?Pe(le):Pe):null},_e=()=>{if(!T)return;const{icon:ve,tooltip:Pe,tabIndex:Ze}=N,Ue=dr(Pe)[0]||S?.edit,Fe=typeof Ue=="string"?Ue:"";return D.includes("icon")?l.createElement(ur,{key:"edit",title:Pe===!1?"":Ue},l.createElement("button",{type:"button",ref:M,className:`${x}-edit`,onClick:U,"aria-label":Fe,tabIndex:Ze},ve||l.createElement(fi,{role:"button"}))):null},Le=()=>H?l.createElement(yJ,{key:"copy",..._,prefixCls:x,copied:B,locale:S,onCopy:z,loading:I,iconOnly:!Mr(d)}):null,Qe=ve=>[ve&&Te(),_e(),Le()],De=ve=>[ve&&!le&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$J),de.suffix,Qe(ve)];return l.createElement(Vr,{onResize:Ne,disabled:!ge},ve=>l.createElement(SJ,{tooltipProps:Ge,enableEllipsis:ge,isEllipsis:Ie},l.createElement(hN,{className:Q({[`${x}-${s}`]:s,[`${x}-disabled`]:c,[`${x}-ellipsis`]:oe,[`${x}-ellipsis-single-line`]:Re,[`${x}-ellipsis-multiple-line`]:we},r),prefixCls:n,style:{...i,WebkitLineClamp:we?re:void 0},component:h,ref:or(ve,w,t),direction:$,onClick:D.includes("text")?U:void 0,"aria-label":et?.toString(),title:y,...R},l.createElement(vJ,{enableMeasure:ge&&!he,text:d,rows:re,width:be,onEllipsis:Ve,expanded:le,miscDeps:[B,le,I,T,H,S].concat(xn(D4.map(Pe=>e[Pe])))},(Pe,Ze)=>CJ(e,l.createElement(l.Fragment,null,Pe.length>0&&Ze&&!le&&et?l.createElement("span",{key:"show-content","aria-hidden":!0},Pe):Pe,De(Ze)))))))}),xJ=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(Zp,{...d,ref:t,ellipsis:!!n,component:"a"},i)}),wJ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(Zp,{ref:t,...r,component:"div"},n)}),EJ=(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(Zp,{ref:t,...i,ellipsis:s,component:"span"},r)},MJ=l.forwardRef(EJ),RJ=[1,2,3,4,5],TJ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...i}=e,s=RJ.includes(n)?`h${n}`:"h1";return l.createElement(Zp,{ref:t,...i,component:s},r)}),Ir=hN;Ir.Text=MJ;Ir.Link=xJ;Ir.Title=TJ;Ir.Paragraph=wJ;var Pm={exports:{}},OJ=Pm.exports,j4;function NJ(){return j4||(j4=1,(function(e,t){(function(n,r){e.exports=r(p6())})(OJ,(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}))})(Pm)),Pm.exports}NJ();const yN=l.createContext(null),fl=()=>{const e=l.useContext(yN);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},IJ="/api";class bN extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function qo(e,t){const n=await fetch(`${IJ}${e}`,{...t,headers:{"Content-Type":"application/json",...t?.headers}});if(!n.ok){const r=await n.json().catch(()=>({message:"API Error"}));throw new bN(n.status,r.message||`HTTP ${n.status}`,r.code)}return n.json()}const ls={async get(e){try{return await qo(`/reports/${e}`)}catch(t){if(t instanceof bN&&t.status===404)return null;throw t}},async save(e,t){return qo(`/reports/${e}`,{method:"PUT",body:JSON.stringify(t)})},async delete(e){try{return await qo(`/reports/${e}`,{method:"DELETE"}),!0}catch{return!1}}},_4={async get(e,t){return qo(`/calendar?year=${e}&month=${t}`)},async getAvailableMonths(){return(await qo("/calendar/months")).yearMonths}},gp={async get(){return qo("/config")},async update(e){return qo("/config",{method:"PUT",body:JSON.stringify(e)})},async getRoutinesMarkdown(){return qo("/config/routines/markdown")},async saveRoutinesMarkdown(e){return qo("/config/routines/markdown",{method:"PUT",body:JSON.stringify({content:e})})}},PJ={async getStatus(){return qo("/git/status")}},{TextArea:zJ}=Nr,{Header:AJ}=Ra,{Text:wr}=Ir,H4="dashboard_save_step",DJ=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:i,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:p}=fl(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[C,b]=l.useState(()=>{const z=localStorage.getItem(H4);return z?parseInt(z,10):0}),[$,S]=l.useState(!1),[w,M]=l.useState(new Set),[x,R]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(H4,String(C))},[C]),l.useEffect(()=>{!g&&C>2&&b(2)},[g,C]);const O=l.useMemo(()=>{const z=new Set(p.unsavedDates),V=e.format("YYYY-MM-DD");return c.isDirty&&z.add(V),Array.from(z).sort((A,j)=>j.localeCompare(A))},[p.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(M(new Set(O)),N(!0),PJ.getStatus().then(z=>R(z)).catch(z=>console.error("Git状態の取得に失敗:",z)).finally(()=>N(!1)))},[h,O]);const P=l.useMemo(()=>!!(w.size>0||C>=1&&x?.uncommitted&&x.uncommitted.count>0||C>=2&&x?.unpushed&&x.unpushed.count>0),[w.size,C,x]),D=l.useCallback(()=>{t(gn())},[t]),W=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),k=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),U=l.useCallback(()=>{y(!0)},[]),G=l.useCallback(async()=>{if(!P){$n.warning("実行対象がありません");return}S(!0);try{const z=C>=1,V=C>=2,A=C>=3,j={git:z?{commit:!0,push:V}:void 0,slack:A?{post:!0}:void 0},q=Array.from(w);q.length>0?await d(q,j):(z||V)&&await d([e.format("YYYY-MM-DD")],j),y(!1)}catch{$n.error("操作に失敗しました")}finally{S(!1)}},[C,w,d,P,e]),L=l.useCallback((z,V)=>{M(A=>{const j=new Set(A);return V?j.add(z):j.delete(z),j})},[]),H=l.useCallback(z=>{M(z?new Set(O):new Set)},[O]),_=l.useCallback(z=>{const V=e.format("YYYY-MM-DD");return z===V?c.markdownContent||"(日報データがありません)":p.getUnsavedReport(z)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,p]),B=l.useMemo(()=>{const z=O.length;return Y.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[Y.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),Y.jsxs("div",{children:["未保存: ",z,"件"]})]})},[O.length]),I=O.length>0;return Y.jsxs(AJ,{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:[Y.jsxs(dn,{size:"large",children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[Y.jsx(z3,{style:{fontSize:24,color:"#1890ff"}}),Y.jsx(wr,{strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:W,children:"◀"}),Y.jsx(dl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),Y.jsx(_t,{size:"small",onClick:k,children:"▶"}),Y.jsx(_t,{type:"primary",size:"small",onClick:D,children:"今日"}),r.length>0&&Y.jsxs(dn,{size:4,style:{marginLeft:8},children:[r.map(z=>Y.jsx(sr,{color:z.color,closable:!0,onClose:()=>i?.(z.code),closeIcon:Y.jsx(qr,{style:{fontSize:10}}),children:z.code},z.code)),r.length>1&&Y.jsx(sr,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),Y.jsxs(dn,{size:"middle",align:"center",children:[Y.jsx(_t,{icon:Y.jsx(nX,{}),onClick:n,children:"取り込み"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(yG,{}),onClick:U,loading:c.saving,children:"保存"}),Y.jsx(ur,{title:B,children:Y.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[Y.jsx(KG,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&Y.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:"!"})]})})]}),Y.jsxs(ao,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:G,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:$,disabled:!P},width:900,children:[Y.jsxs("div",{style:{marginBottom:24},children:[Y.jsx(wr,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),Y.jsx(kZ,{current:C,onChange:z=>b(z),items:[{title:"ローカル保存",description:"ファイルに保存",icon:Y.jsx(qG,{})},{title:"Commit",description:"Gitにコミット",icon:Y.jsx(y1,{})},{title:"Push",description:"リモートに反映",icon:Y.jsx(c4,{})},...g?[{title:"Slack",description:"日報を投稿",icon:Y.jsx(TX,{})}]:[]],style:{marginTop:16}})]}),Y.jsxs("div",{style:{marginTop:16},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14},children:["保存対象 (",w.size,"/",O.length,"件)"]}),Y.jsx(Os,{checked:w.size===O.length&&O.length>0,indeterminate:w.size>0&&w.size<O.length,onChange:z=>H(z.target.checked),children:"全選択"})]}),Y.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((z,V)=>Y.jsxs("div",{style:{padding:12,borderBottom:V<O.length-1?"1px solid #f0f0f0":"none",background:w.has(z)?"#f6ffed":"#fff"},children:[Y.jsxs(Os,{checked:w.has(z),onChange:A=>L(z,A.target.checked),style:{marginBottom:8},children:[Y.jsx(wr,{strong:!0,children:z}),z===e.format("YYYY-MM-DD")&&Y.jsx(sr,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),w.has(z)&&Y.jsx(zJ,{value:_(z),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},z)),O.length===0&&Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),C>=1&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ri,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(jG,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(mp,{size:"small"})}):x?.uncommitted&&x.uncommitted.count>0?Y.jsx(NE,{size:"small",items:[{key:"uncommitted",label:Y.jsxs(wr,{type:"secondary",children:[x.uncommitted.count,"件の未コミットファイル"]}),children:Y.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:x.uncommitted.files.map((z,V)=>Y.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[Y.jsx(cp,{style:{color:"#1890ff"}}),Y.jsx(wr,{code:!0,style:{fontSize:11},children:z.path}),Y.jsx(sr,{color:z.status==="D"?"red":z.status==="A"||z.status==="?"?"green":"blue",style:{fontSize:10},children:z.status==="D"?"削除":z.status==="A"?"追加":z.status==="?"?"新規":"変更"})]},V))})}],defaultActiveKey:["uncommitted"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),C>=2&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ri,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(c4,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(mp,{size:"small"})}):x?.unpushed&&x.unpushed.count>0?Y.jsx(NE,{size:"small",items:[{key:"unpushed",label:Y.jsxs(wr,{type:"secondary",children:[x.unpushed.count,"件の未プッシュコミット"]}),children:Y.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:x.unpushed.commits.map((z,V)=>Y.jsxs("div",{style:{padding:"8px 0",borderBottom:V<x.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[Y.jsx(sr,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:z.hash}),Y.jsx(wr,{style:{fontSize:12},children:z.message})]}),z.files.length>0&&Y.jsxs("div",{style:{paddingLeft:16},children:[z.files.slice(0,5).map((A,j)=>Y.jsxs("div",{style:{fontSize:11,color:"#666"},children:[Y.jsx(cp,{style:{marginRight:4}}),A]},j)),z.files.length>5&&Y.jsxs(wr,{type:"secondary",style:{fontSize:11},children:["... 他 ",z.files.length-5," ファイル"]})]})]},V))})}],defaultActiveKey:["unpushed"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:lb}=Ir,jJ=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:i}=fl(),[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)}},C=()=>{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,S=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"),P=x.isSame(e,"day"),D=x.month()===s.month(),W=f[R],k=W?Math.min(W.actual/8*100,100):0,U=r.hasUnsavedChangesForDate(R)||P&&i.isDirty;return Y.jsx(ur,{title:W?`稼働: ${W.actual}h${U?" (未保存)":""}`:U?"未保存":void 0,children:Y.jsxs("div",{onClick:()=>t(R),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:D?1:.3},children:[(T||O)&&W&&Y.jsx(bZ,{type:"circle",percent:k,size:30,strokeColor:w(W.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),U&&Y.jsx(As,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),Y.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||P?600:400,color:O||P?"#1890ff":"#000",background:P?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:x.date()})]})})};return Y.jsxs(wa,{title:Y.jsx("div",{style:{display:"flex",justifyContent:"center"},children:Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:y,disabled:!$,children:"◀"}),Y.jsx(Lr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),Y.jsx(_t,{size:"small",onClick:C,disabled:!S,children:"▶"})]})}),styles:{body:{padding:8}},children:[Y.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
|
+
`}),Y.jsx(w3,{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&&Y.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Y.jsxs("span",{children:["稼働日数: ",n.summary.workDays,"日"]}),Y.jsxs("span",{children:["合計: ",n.summary.totalResultHours.toFixed(1),"h"]})]})}),Y.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function nd(e){const[t,n]=e.split(":").map(Number);return t*60+n}function Bi(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:sb}=Ir,_J=({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,C=e.heightPx,b=r&&!i?y+s:y,S={items:[{key:"project",label:"プロジェクト変更",children:d.filter(w=>w.active).map(w=>({key:`project:${e.id}:${t}:${w.code}`,label:Y.jsxs(dn,{children:[Y.jsx(di,{color:w.color}),w.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:Y.jsx(h1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:Y.jsx(sp,{}),danger:!0}],onClick:({key:w})=>g(w),onSelect:({key:w})=>g(w),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return Y.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(C,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:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(sb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),Y.jsx(sb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),Y.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:Y.jsx(v1,{menu:S,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:Y.jsx(j3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:w=>w.stopPropagation(),onClick:w=>w.stopPropagation()})})})]}),e.description&&Y.jsx(sb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:cb}=Ir;function B4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const HJ=({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=B4(f),g=(f-s*60)/60*c;if(e.isBreak){const C=e.breakDuration||60,b=C/60*c,$=f+C,S=B4($);return Y.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:Y.jsxs(cb,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",p,"〜",S]})})}const h=r.find(C=>C.id===e.itemId);if(!h)return null;const y=c;return Y.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:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(cb,{style:{fontSize:10,color:"#666",flexShrink:0},children:p}),Y.jsx(cb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function L4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function dm(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 BJ({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,C]=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;C(N)}},[f,e,c]),S=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const w=g!==0?dm(f.startMinutes,g,c,s,i,d):L4(f.startMinutes),M={id:`r${Date.now()}`,time:w,project:"---",task:"休憩"},x=f.startMinutes+(f.breakDuration||60),R=g!==0?dm(x,g,c,s,i,d):L4(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?dm(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=dm(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),C(!1)}},[f,g,y,t,n,r,i,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",S),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect=""}},[f,$,S]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:b}}function LJ(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function gS(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 V4(e,t){return[`## ${t}`,...gS(e)].join(`
|
|
366
|
+
`)}function F4(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 k4(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=nd(p.time);let y=60;for(let b=f+1;b<i.length;b++){const $=i[b],S=nd($.time);if(S>h){y=S-h;break}}const C=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:C,top:(h-s)/c*100,height:y/c*100,topPx:(h-s)/60*r,heightPx:y/60*r})}return d}function W4(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=nd(i[b].time),g=!0;break}if(!g)continue;const y=nd(p.time),C=h-y;s.push({id:p.id,startTime:p.time,endTime:LJ(h),startMinutes:y,endMinutes:h,duration:C,top:(y-c)/d*100,height:C/d*100,topPx:(y-c)/60*r,heightPx:C/60*r})}}return s}function VJ(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=nd(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 FJ(e){switch(e){case"completed":return"x";case"in_progress":return"*";case"on_hold":return"-";default:return" "}}function kJ(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";default:return"pending"}}function vN(e){const t=[];for(const n of e){const r=FJ(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 q4(e,t){const n=["## [TODO]",""];return n.push(...vN(e)),n.push(""),n.push("## [NOTE]"),n.push(t),n.join(`
|
|
370
|
+
`)}function WJ(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 C=y[1];let b=y[2],$=r;const S=b.match(/^\[([^\]]+)\]\s*/);S&&($=S[1],b=b.substring(S[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:kJ(C),deadline:x,priority:w}}}return f(),{todos:n,notes:s.join(`
|
|
373
|
+
`).trim()}}function SN(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 qJ(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 YJ(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:Ln}=Ir,{TextArea:Y4}=Nr,UJ=({selectedDate:e,selectedProjects:t=[]})=>{const{report:n,config:r}=fl(),[i,s]=l.useState(!1),[c,d]=l.useState(!1),[f,p]=l.useState(null),g=l.useRef(null),h=l.useRef(null),y=n.report,C=r.projects,b=l.useMemo(()=>y?.plan||[],[y?.plan]),$=l.useMemo(()=>y?.result||[],[y?.result]),S=r.config?.timeline||{hourHeight:60,maxHours:36,defaultStartHour:8,defaultEndHour:20,snapMinutes:15},w=S.hourHeight,M=S.maxHours,x=S.defaultStartHour,R=S.defaultEndHour,T=S.snapMinutes,N=l.useMemo(()=>{const se=[...b,...$];return VJ(se,{maxHours:M,defaultStartHour:x,defaultEndHour:R})},[b,$,M,x,R]),{startHour:O,endHour:P,totalHours:D}=N,W=D*w,[k,U]=l.useState(""),[G,L]=l.useState(""),{dragState:H,dragOffset:_,isDraggingToResult:B,handleDragStart:I}=BJ({resultAreaRef:h,currentReport:y,updatePlan:n.updatePlan,updateResult:n.updateResult,startHour:O,totalHours:D,hourHeight:w,snapMinutes:T}),z=se=>r.getProjectColor(se),V=gn(),A=e.isSame(V,"day"),j=V.hour()*60+V.minute(),q=Array.from({length:D+1},(se,be)=>O+be),X=l.useMemo(()=>k4(b,O,D,w),[b,O,D,w]),K=l.useMemo(()=>k4($,O,D,w),[$,O,D,w]),Z=l.useMemo(()=>W4(b,O,D,w),[b,O,D,w]),ee=l.useMemo(()=>W4($,O,D,w),[$,O,D,w]),ie=l.useMemo(()=>t.length>0?X.filter(se=>t.includes(se.project)):X,[X,t]),ne=l.useMemo(()=>t.length>0?K.filter(se=>t.includes(se.project)):K,[K,t]),oe=Z,de=ee,le=l.useRef(null);l.useEffect(()=>{const se=e.format("YYYY-MM-DD");if(le.current===se)return;const be=[...b,...$];if(be.length===0)return;const Ee=be.reduce((Ge,et)=>{const[Te,_e]=et.time.split(":").map(Number),Le=Te*60+_e;return Le<Ge?Le:Ge},1/0),Ne=Math.max(Ee-30,O*60),Ve=(Ne-O*60)/60*w;requestAnimationFrame(()=>{g.current&&!i&&(g.current.scrollTop=Ve,le.current=se,console.log(`[Timeline] Scrolled to ${Ne}min (${Math.floor(Ne/60)}:${String(Ne%60).padStart(2,"0")}), scrollTop=${Ve}px, firstItem=${Ee}min, startHour=${O}`))})},[e,i,O,w,b,$]);const fe=(se,be)=>{n.deleteScheduleItem(be,se),$n.success(`${be==="plan"?"計画":"実績"}を削除しました`)},ge=l.useCallback((se,be,Ee)=>{n.updateScheduleItem(Ee,se,{project:be}),$n.success(`プロジェクトを ${be} に変更しました`)},[n]),re=se=>{n.addScheduleItem("result",{time:se.time,project:se.project,task:se.task,duration:se.duration}),$n.success(`「${se.task}」を実績にコピーしました`)},ue=l.useCallback(se=>{if(se.startsWith("project:")){const be=se.split(":"),Ee=be[1],Ne=be[2],Ve=be[3];ge(Ee,Ve,Ne)}else if(se.startsWith("toResult:")){const[,be]=se.split(":"),Ee=y?.plan.find(Ne=>Ne.id===be);Ee&&re(Ee)}else if(se.startsWith("delete:")){const[,be,Ee]=se.split(":");fe(be,Ee)}},[y,ge]),he=l.useMemo(()=>ie.reduce((se,be)=>se+be.duration,0),[ie]),pe=l.useMemo(()=>ne.reduce((se,be)=>se+be.duration,0),[ne]),Se=l.useMemo(()=>{const se=new Map;for(const Ne of X)Ne.project&&!Ne.isBreak&&se.set(Ne.project,(se.get(Ne.project)||0)+Ne.duration);const be=new Map;for(const Ne of K)Ne.project&&!Ne.isBreak&&be.set(Ne.project,(be.get(Ne.project)||0)+Ne.duration);const Ee=new Set([...se.keys(),...be.keys()]);return Array.from(Ee).map(Ne=>{const Ve=C.find(Ge=>Ge.code===Ne);return{project:Ne,projectName:Ve?.name||Ne,color:Ve?.color||"#999",planMinutes:se.get(Ne)||0,resultMinutes:be.get(Ne)||0}}).sort((Ne,Ve)=>Ve.resultMinutes-Ne.resultMinutes||Ve.planMinutes-Ne.planMinutes)},[X,K,C]),Ie=()=>{!i&&y&&(U(V4(y.plan,"[PLAN]")),L(V4(y.result,"[RESULT]"))),s(!i)},Re=()=>{const se=F4(k),be=F4(G);n.updatePlan(se),n.updateResult(be),$n.success("反映しました"),s(!1)},we=(se,be)=>{const Ee=be?"result":"plan",Ne=f===`${Ee}-${se.id}`,Ve=H?.itemId===se.id&&H?.type===Ee,Ge=Ve&&B;return Y.jsx(_J,{item:se,type:Ee,isHovered:Ne,isDragging:Ve,isDraggingToResultArea:Ge,dragOffset:_,getProjectColor:z,projects:C,onHover:p,onDragStart:I,onMenuAction:ue},se.id)};return Y.jsxs(wa,{title:Y.jsxs(dn,{children:[Y.jsx(wd,{}),Y.jsx("span",{children:"タイムライン"}),Y.jsx(sr,{children:e.format("MM/DD (ddd)")})]}),extra:Y.jsx(dn,{children:i?Y.jsxs(Y.Fragment,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:()=>s(!1),children:"キャンセル"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(sl,{}),onClick:Re,children:"OK"})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(s4,{}),onClick:()=>d(!0),children:"集計"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(fi,{}),onClick:Ie,children:"編集"})]})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:[i?Y.jsxs("div",{style:{display:"flex",flex:1,gap:12,overflow:"hidden"},children:[Y.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[Y.jsx(Ln,{strong:!0,style:{marginBottom:4,color:"#1890ff"},children:"計画"}),Y.jsx(Y4,{value:k,onChange:se=>U(se.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}),Y.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[Y.jsx(Ln,{strong:!0,style:{marginBottom:4,color:"#52c41a"},children:"実績"}),Y.jsx(Y4,{value:G,onChange:se=>L(se.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]})]}):Y.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[Y.jsxs("div",{style:{display:"flex",flexShrink:0,paddingBottom:4,borderBottom:"1px solid #f0f0f0"},children:[Y.jsx("div",{style:{width:40,flexShrink:0}}),Y.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80},children:[Y.jsx(_3,{style:{fontSize:12,color:"#1890ff"}}),Y.jsx(Ln,{style:{fontSize:11,color:"#1890ff"},children:"計画"}),Y.jsx(Ln,{strong:!0,style:{fontSize:12,color:"#1890ff"},children:Bi(he)})]}),Y.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80,marginLeft:8},children:[Y.jsx(h1,{style:{fontSize:12,color:"#52c41a"}}),Y.jsx(Ln,{style:{fontSize:11,color:"#52c41a"},children:B?"ここにドロップでコピー":"実績"}),Y.jsx(Ln,{strong:!0,style:{fontSize:12,color:"#52c41a"},children:Bi(pe)})]})]}),Y.jsxs("div",{ref:g,style:{display:"flex",flex:1,overflow:"auto",minHeight:0},children:[Y.jsx("div",{style:{width:40,flexShrink:0,position:"relative",height:W},children:q.map((se,be)=>Y.jsx("div",{style:{position:"absolute",top:be*w,left:0,right:0,height:be<q.length-1?w:0,borderTop:"1px solid #f0f0f0",paddingRight:4,textAlign:"right"},children:Y.jsxs(Ln,{type:"secondary",style:{fontSize:10},children:[se,":00"]})},se))}),Y.jsxs("div",{style:{flex:1,position:"relative",minWidth:80,height:W,background:"#fafafa"},children:[q.map(se=>Y.jsx("div",{style:{position:"absolute",top:(se-O)*w,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},se)),A&&j>=O*60&&j<=P*60&&Y.jsx("div",{style:{position:"absolute",top:(j-O*60)/60*w,left:0,right:0,borderTop:"2px solid #ff4d4f",zIndex:10},children:Y.jsx("div",{style:{position:"absolute",left:-4,top:-6,width:10,height:10,borderRadius:"50%",background:"#ff4d4f"}})}),oe.map(se=>{const be=H?.itemId===se.id&&H?.isBreak;return Y.jsx("div",{style:{position:"absolute",top:(se.startMinutes-O*60)/60*w+(be?_:0),height:se.duration/60*w,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:be?.5:.8,cursor:"grab",transition:be?"none":"opacity 0.2s"},onMouseDown:Ee=>I(Ee,se.id,"plan",se.startMinutes,!0,se.duration),children:Y.jsx(Ln,{type:"secondary",style:{fontSize:10},children:"休憩"})},se.id)}),ie.map(se=>we(se,!1))]}),Y.jsxs("div",{ref:h,style:{flex:1,position:"relative",minWidth:80,marginLeft:8,height:W,background:"#fafafa",transition:"all 0.2s",...B&&{boxShadow:"0 0 0 2px #52c41a"}},children:[q.map(se=>Y.jsx("div",{style:{position:"absolute",top:(se-O)*w,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},se)),de.map(se=>{const be=H?.itemId===se.id&&H?.isBreak;return Y.jsx("div",{style:{position:"absolute",top:(se.startMinutes-O*60)/60*w+(be?_:0),height:se.duration/60*w,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:be?.5:.8,cursor:"grab",transition:be?"none":"opacity 0.2s"},onMouseDown:Ee=>I(Ee,se.id,"result",se.startMinutes,!0,se.duration),children:Y.jsx(Ln,{type:"secondary",style:{fontSize:10},children:"休憩"})},se.id)}),ne.map(se=>we(se,!0)),Y.jsx(HJ,{dragState:H,dragOffset:_,isDraggingToResult:B,planItems:b,getProjectColor:z,startHour:O,hourHeight:w})]})]})]}),Y.jsx(ao,{title:Y.jsxs(dn,{children:[Y.jsx(s4,{}),Y.jsx("span",{children:"プロジェクト別稼働時間"}),Y.jsx(sr,{children:e.format("MM/DD (ddd)")})]}),open:c,onCancel:()=>d(!1),footer:null,width:600,children:Y.jsxs("div",{style:{padding:"16px 0"},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:24,padding:"12px 16px",background:"#fafafa",borderRadius:8},children:[Y.jsxs("div",{style:{textAlign:"center"},children:[Y.jsx(Ln,{type:"secondary",style:{fontSize:12},children:"計画"}),Y.jsx("div",{children:Y.jsx(Ln,{strong:!0,style:{fontSize:20,color:"#1890ff"},children:Bi(he)})})]}),Y.jsxs("div",{style:{textAlign:"center"},children:[Y.jsx(Ln,{type:"secondary",style:{fontSize:12},children:"実績"}),Y.jsx("div",{children:Y.jsx(Ln,{strong:!0,style:{fontSize:20,color:"#52c41a"},children:Bi(pe)})})]}),Y.jsxs("div",{style:{textAlign:"center"},children:[Y.jsx(Ln,{type:"secondary",style:{fontSize:12},children:"差分"}),Y.jsx("div",{children:Y.jsxs(Ln,{strong:!0,style:{fontSize:20,color:pe>=he?"#52c41a":"#ff4d4f"},children:[pe>=he?"+":"-",Bi(Math.abs(pe-he))]})})]})]}),Se.length>0?Y.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:Se.map(se=>{const be=Math.max(...Se.map(Ve=>Math.max(Ve.planMinutes,Ve.resultMinutes)),60),Ee=se.planMinutes/be*100,Ne=se.resultMinutes/be*100;return Y.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Y.jsx("div",{style:{width:12,height:12,borderRadius:2,background:se.color,flexShrink:0}}),Y.jsxs(Ln,{strong:!0,style:{fontSize:13},children:["[",se.project,"] ",se.projectName]})]}),Y.jsxs("div",{style:{marginLeft:20},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:2},children:[Y.jsx(Ln,{type:"secondary",style:{fontSize:11,width:32},children:"計画"}),Y.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:Y.jsx("div",{style:{width:`${Ee}%`,height:"100%",background:`linear-gradient(90deg, ${se.color}88, ${se.color}cc)`,transition:"width 0.3s ease"}})}),Y.jsx(Ln,{style:{fontSize:12,width:50,textAlign:"right",color:"#1890ff"},children:Bi(se.planMinutes)})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[Y.jsx(Ln,{type:"secondary",style:{fontSize:11,width:32},children:"実績"}),Y.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:Y.jsx("div",{style:{width:`${Ne}%`,height:"100%",background:se.color,transition:"width 0.3s ease"}})}),Y.jsx(Ln,{style:{fontSize:12,width:50,textAlign:"right",color:"#52c41a"},children:Bi(se.resultMinutes)})]})]})]},se.project)})}):Y.jsx("div",{style:{textAlign:"center",padding:40},children:Y.jsx(Ln,{type:"secondary",children:"データがありません"})})]})})]})},GJ=({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 Y.jsx("span",{style:n,onClick:t,children:Y.jsx(sG,{style:{fontSize:18,color:"#52c41a"}})});case"in_progress":return Y.jsx("span",{style:n,onClick:t,children:Y.jsx("span",{style:{...r,border:"2px solid #1890ff"},children:Y.jsx(rG,{style:{fontSize:8,color:"#1890ff"}})})});case"on_hold":return Y.jsx("span",{style:n,onClick:t,children:Y.jsx("span",{style:{...r,border:"2px solid #faad14"},children:Y.jsx(mX,{style:{fontSize:8,color:"#faad14"}})})});default:return Y.jsx("span",{style:n,onClick:t,children:Y.jsx(ZU,{style:{fontSize:18,color:"#d9d9d9"}})})}},{Text:U4}=Ir,{TextArea:XJ}=Nr,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:C,onMenuAction:b})=>{const $=SN(e.deadline),S=qJ(e.deadline),w=R=>R==="high"?Y.jsx(sr,{color:"red",style:{margin:0,fontSize:10},children:"高"}):R==="medium"?Y.jsx(sr,{color:"orange",style:{margin:0,fontSize:10},children:"中"}):null,x={items:[{key:"edit",label:"編集",icon:Y.jsx(fi,{})},{key:"project",label:"プロジェクト変更",children:c.filter(R=>R.active).map(R=>({key:`project:${e.id}:${R.code}`,label:Y.jsxs(dn,{children:[Y.jsx(di,{color:R.color}),R.name]})}))},{type:"divider"},{key:"delete",label:"削除",icon:Y.jsx(sp,{}),danger:!0}],onClick:({key:R})=>b(R,e),onSelect:({key:R})=>b(R,e),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return n?Y.jsx(So.Item,{style:{padding:"8px 12px",borderRadius:6,marginBottom:6,border:"1px solid #1890ff",background:"#e6f7ff"},children:Y.jsxs("div",{style:{width:"100%"},children:[Y.jsx(XJ,{value:r,onChange:R=>h(R.target.value),autoSize:{minRows:2,maxRows:8},style:{marginBottom:8,fontSize:12},placeholder:`1行目: タスク名
|
|
389
|
+
2行目以降: 詳細説明(任意)`}),Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8},children:[Y.jsxs(dn,{size:"small",children:[Y.jsx(dl,{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"}),Y.jsx(Lr,{size:"small",placeholder:"優先度",value:s,onChange:R=>C(R),allowClear:!0,style:{width:80},options:[{value:"high",label:Y.jsx(sr,{color:"red",style:{margin:0},children:"高"})},{value:"medium",label:Y.jsx(sr,{color:"orange",style:{margin:0},children:"中"})},{value:"low",label:Y.jsx(sr,{color:"blue",style:{margin:0},children:"低"})}]})]}),Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:g,children:"キャンセル"}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(sl,{}),onClick:p,children:"OK"})]})]})]})}):Y.jsx(So.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:Y.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},children:[Y.jsx(GJ,{status:e.status,onClick:()=>f(e.id)}),Y.jsxs("div",{style:{flex:1,minWidth:0},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[Y.jsx(U4,{delete:e.status==="completed",style:{fontWeight:500,fontSize:13},children:e.task}),w(e.priority),$&&e.status!=="completed"&&Y.jsxs(sr,{color:"error",style:{margin:0,fontSize:10},children:[Y.jsx(B3,{})," 期限切れ"]})]}),e.description&&Y.jsx("div",{style:{marginTop:4,paddingLeft:4},children:Y.jsx(U4,{type:"secondary",style:{fontSize:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})}),e.deadline&&Y.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:4},children:Y.jsx(ur,{title:`期限: ${e.deadline}`,children:Y.jsxs(sr,{color:$?"error":S?"warning":"default",style:{margin:0,fontSize:10},children:[Y.jsx(wd,{style:{marginRight:2}}),gn(e.deadline).format("MM/DD")]})})})]}),Y.jsx(dn,{size:4,style:{visibility:t?"visible":"hidden",flexShrink:0},children:Y.jsx(v1,{menu:x,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:Y.jsx(j3,{style:{fontSize:16,color:"#666",cursor:"pointer",padding:"0 4px"},onClick:R=>R.stopPropagation()})})})]})})},QJ=({filter:e,counts:t,onFilterChange:n})=>{const r=[{key:"all",icon:Y.jsx(aX,{}),label:"全て",count:t.all,color:"#666"},{key:"pending",icon:Y.jsx(wd,{}),label:"未着手",count:t.pending,color:"#999"},{key:"in_progress",icon:Y.jsx(_3,{}),label:"進行中",count:t.in_progress,color:"#1890ff"},{key:"completed",icon:Y.jsx(h1,{}),label:"完了",count:t.completed,color:"#52c41a"},{key:"on_hold",icon:Y.jsx(uX,{}),label:"保留",count:t.on_hold,color:"#faad14"}];return Y.jsx("div",{style:{display:"flex",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0},children:r.map(i=>Y.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:[Y.jsx("span",{style:{fontSize:14,color:e===i.key?i.color:"#999"},children:i.icon}),Y.jsx("span",{style:{fontSize:11,color:e===i.key?i.color:"#999",fontWeight:e===i.key?600:400},children:i.label}),Y.jsx(di,{count:i.count,size:"small",style:{backgroundColor:e===i.key?i.color:"#d9d9d9",fontSize:10}})]},i.key))})},{Text:Yc}=Ir,{TextArea:G4}=Nr,ZJ=({selectedProjects:e=[]})=>{const{report:t,config:n}=fl(),[r,i]=l.useState("all"),[s,c]=l.useState(!1),[d,f]=l.useState(null),[p,g]=l.useState(null),[h,y]=l.useState(""),[C,b]=l.useState(void 0),[$,S]=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(q4(w.todos,w.notes||"")))},[w]),l.useEffect(()=>{w&&R!==w.notes&&t.updateNotes(R)},[R]);const P=X=>n.getProjectColor(X),D=X=>n.getProjectName(X),W=e.length>0?M.filter(X=>e.includes(X.project)):M,k=W.filter(X=>!(r!=="all"&&X.status!==r)),U=k.filter(X=>X.deadline&&SN(X.deadline)&&X.status!=="completed"),G=k.reduce((X,K)=>{const Z=K.project;return X[Z]||(X[Z]=[]),X[Z].push(K),X},{}),L=X=>{t.toggleTodoStatus(X)},H=(X,K)=>{t.updateTodo(X,{project:K}),$n.success(`プロジェクトを ${K} に変更しました`)},_=X=>{t.deleteTodo(X),$n.success("TODOを削除しました")},B=X=>{g(X.id);const K=X.description?`${X.task}
|
|
390
|
+
${X.description}`:X.task;y(K),b(X.deadline),S(X.priority)},I=()=>{if(p){const X=h.split(`
|
|
391
|
+
`),K=X[0].trim(),Z=X.slice(1).join(`
|
|
392
|
+
`).trim()||void 0;t.updateTodo(p,{task:K,description:Z,deadline:C,priority:$}),$n.success("更新しました"),g(null),y(""),b(void 0),S(void 0)}},z=()=>{g(null),y(""),b(void 0),S(void 0)},V=l.useCallback((X,K)=>{if(X==="edit")B(K);else if(X.startsWith("project:")){const Z=X.split(":"),ee=Z[1],ie=Z[2];H(ee,ie)}else X==="delete"&&_(K.id)},[H]),A={all:W.length,pending:W.filter(X=>X.status==="pending").length,in_progress:W.filter(X=>X.status==="in_progress").length,completed:W.filter(X=>X.status==="completed").length,on_hold:W.filter(X=>X.status==="on_hold").length},j=()=>{!s&&w&&O(q4(w.todos,w.notes||"")),c(!s)},q=()=>{const{todos:X,notes:K}=WJ(N);t.updateTodos(X),t.updateNotes(K),T(K),$n.success("反映しました"),c(!1)};return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(A3,{}),Y.jsx("span",{children:"TODO"}),Y.jsx(di,{count:A.pending+A.in_progress,style:{backgroundColor:"#1890ff"}}),U.length>0&&Y.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:[Y.jsx(B3,{}),Y.jsxs("span",{children:[U.length,"件期限切れ"]})]})]}),extra:s?Y.jsxs(dn,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:()=>c(!1),children:"キャンセル"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(sl,{}),onClick:q,children:"OK"})]}):Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(fi,{}),onClick:j,children:"編集"}),style:{height:"100%"},styles:{body:{padding:0,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:s?Y.jsxs("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column"},children:[Y.jsx(Yc,{type:"secondary",style:{marginBottom:8,fontSize:11},children:"TODO: - [ ] タスク名 @期日 !優先度 / NOTE: ## [NOTE] 以降に自由記述"}),Y.jsx(G4,{value:N,onChange:X=>O(X.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(QJ,{filter:r,counts:A,onFilterChange:i}),Y.jsxs("div",{style:{flex:1,overflow:"auto",padding:"12px 12px 12px 12px"},children:[Object.entries(G).map(([X,K])=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 10px",background:"#f5f5f5",borderRadius:6},children:[Y.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:P(X),flexShrink:0}}),Y.jsxs(Yc,{type:"secondary",style:{fontSize:10},children:["[",X,"]"]}),Y.jsx(Yc,{strong:!0,style:{fontSize:12},children:D(X)}),Y.jsxs(Yc,{type:"secondary",style:{fontSize:11},children:["(",K.length,")"]})]}),Y.jsx(So,{dataSource:K,renderItem:Z=>Y.jsx(KJ,{todo:Z,isHovered:d===Z.id,isEditing:p===Z.id,editText:h,editDeadline:C,editPriority:$,projects:x,getProjectColor:P,onHover:f,onStatusChange:L,onStartEdit:B,onSaveEdit:I,onCancelEdit:z,onEditTextChange:y,onEditDeadlineChange:b,onEditPriorityChange:S,onMenuAction:V},Z.id),size:"small",split:!1})]},X)),Y.jsx(ri,{style:{margin:"16px 0 12px 0"}}),Y.jsxs("div",{style:{marginBottom:12},children:[Y.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:8},children:Y.jsxs(dn,{children:[Y.jsx(cp,{style:{color:"#666"}}),Y.jsx(Yc,{strong:!0,style:{fontSize:12},children:"NOTE"})]})}),Y.jsx(G4,{value:R,onChange:X=>T(X.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"メモを入力...",style:{fontSize:12}})]})]})]})})},{Text:fm}=Ir,JJ=({selectedProjects:e=[],onToggleProject:t})=>{const{config:n,report:r}=fl(),i=n.projects,s=l.useMemo(()=>{const p=r.report?.todos||[];return i.filter(g=>g.active).map(g=>{const y=p.filter(C=>C.project===g.code).filter(C=>C.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 Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(bX,{}),Y.jsx("span",{children:"プロジェクト"})]}),extra:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(IX,{})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Object.entries(c).map(([p,g])=>Y.jsxs("div",{style:{marginBottom:12},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6,padding:"4px 8px",background:"#f5f5f5",borderRadius:4},children:[Y.jsx(fm,{strong:!0,style:{fontSize:11},children:d[p]||p}),Y.jsxs(fm,{type:"secondary",style:{fontSize:10,marginLeft:6},children:["(",g.length,")"]})]}),Y.jsx(So,{dataSource:g,renderItem:h=>{const y=e.includes(h.code);return Y.jsx(So.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:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:h.color,flexShrink:0}}),Y.jsxs("div",{style:{flex:1,minWidth:0},children:[Y.jsxs(fm,{type:"secondary",style:{fontSize:10,marginRight:4},children:["[",h.code,"]"]}),Y.jsx(fm,{strong:!0,style:{fontSize:12},children:h.name})]}),h.pendingTodos>0&&Y.jsx(di,{count:h.pendingTodos,size:"small",style:{backgroundColor:"#999"}})]})})},size:"small",split:!1})]},p))})},{TextArea:eee}=Nr,{Text:as}=Ir,tee=({onApplyRoutine:e})=>{const{config:t}=fl(),{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),C=t.routines?.weekly||{},b=t.routines?.adhoc||[],$=t.routines?.monthly||{},S=t.routines?.quarterly||[],w=t.routines?.yearly||[],M=l.useCallback(async()=>{y(!0);try{const I=await gp.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 gp.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(),P=O===0?"sunday":N[O-1].key,D=l.useMemo(()=>{const I=[];return $.schedule&&$.schedule.forEach(z=>{I.push({time:z.time,project:z.project,task:z.task,category:"plan"})}),$.start_of_month&&$.start_of_month.forEach(z=>{I.push({project:z.project,task:`[月初] ${z.task}`,category:z.category||"todo"})}),$.end_of_month&&$.end_of_month.forEach(z=>{I.push({project:z.project,task:`[月末] ${z.task}`,category:z.category||"todo"})}),I},[$]),W=l.useMemo(()=>{const I=[];return S.forEach(z=>{if(z.schedule&&z.schedule.forEach(V=>{I.push({time:V.time,project:V.project,task:V.task,category:"plan"})}),z.months.length>0){const V=z.months.join(",")+"月";z.tasks.forEach(A=>{I.push({project:A.project,task:`[${V}] ${A.task}`,category:A.category||"todo"})})}}),I},[S]),k=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]),U=(I,z)=>{const V=`${I}:${z}`;i(A=>{const j=new Set(A);return j.has(V)?j.delete(V):j.add(V),j})},G=(I,z)=>{const V=z.map((j,q)=>`${I}:${q}`),A=V.every(j=>r.has(j));i(j=>{const q=new Set(j);return A?V.forEach(X=>q.delete(X)):V.forEach(X=>q.add(X)),q})},L=()=>{if(r.size===0){$n.info("追加するルーチンを選択してください");return}const I=[];if(r.forEach(z=>{const[V,A]=z.split(":"),j=parseInt(A,10);let q;if(V==="adhoc"?q=b[j]:V==="monthly"?q=D[j]:V==="quarterly"?q=W[j]:V==="yearly"?q=k[j]:q=C[V]?.[j],q){const X=q.time&&q.time!=="",K=q.category||(X?"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 z=I.filter(j=>j.category==="plan").length,V=I.filter(j=>j.category==="todo").length,A=[];z>0&&A.push(`PLAN: ${z}件`),V>0&&A.push(`TODO: ${V}件`),$n.success(`ルーチンを追加しました(${A.join("、")})`)}},H=(I,z)=>{const V=z.map((q,X)=>`${I}:${X}`),A=V.length>0&&V.every(q=>r.has(q)),j=V.some(q=>r.has(q));return Y.jsxs("div",{children:[z.length>0&&Y.jsx("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:Y.jsx(Os,{checked:A,indeterminate:j&&!A,onChange:()=>G(I,z),children:Y.jsx(as,{type:"secondary",style:{fontSize:11},children:"すべて選択"})})}),z.length===0?Y.jsx("div",{style:{textAlign:"center",padding:16},children:Y.jsx(as,{type:"secondary",children:"ルーチンが登録されていません"})}):Y.jsx(So,{dataSource:z,renderItem:(q,X)=>{const K=`${I}:${X}`,Z=r.has(K),ee=q.time&&q.time!=="",ie=q.category==="todo"||!ee;return Y.jsx(So.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:()=>U(I,String(X)),children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(Os,{checked:Z,onClick:ne=>ne.stopPropagation(),onChange:()=>U(I,String(X))}),ie?Y.jsxs(as,{style:{fontSize:11,color:"#52c41a",minWidth:40},children:[Y.jsx(A3,{style:{marginRight:2}}),"TODO"]}):Y.jsxs(as,{style:{fontSize:11,color:"#1890ff",minWidth:40,fontWeight:500},children:[Y.jsx(wd,{style:{marginRight:2}}),q.time]}),Y.jsx(sr,{color:T(q.project),style:{margin:0,fontSize:10},children:q.project}),Y.jsx(as,{ellipsis:!0,style:{flex:1,fontSize:12},children:q.task}),q.duration&&q.duration>0&&Y.jsx(as,{type:"secondary",style:{fontSize:10},children:_(q.duration)})]})})},size:"small",split:!1})]})},_=I=>{if(!I||isNaN(I))return"";const z=Math.floor(I/60),V=I%60;return z===0?`${V}分`:V===0?`${z}時間`:`${z}時間${V}分`},B=l.useMemo(()=>N.map(I=>{let z;I.key==="adhoc"?z=b:I.key==="monthly"?z=D:I.key==="quarterly"?z=W:I.key==="yearly"?z=k:z=C[I.key]||[];const V=I.key===P,A=z.filter((j,q)=>r.has(`${I.key}:${q}`)).length;return{key:I.key,label:Y.jsxs(dn,{size:4,children:[Y.jsx("span",{children:I.label}),V&&Y.jsx(di,{status:"processing"}),A>0&&Y.jsx(di,{count:A,size:"small",style:{backgroundColor:"#1890ff"}})]}),children:H(I.key,z)}}),[C,b,D,W,k,r,P]);return s?Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(fi,{}),Y.jsx("span",{children:"ルーチン編集"})]}),extra:Y.jsxs(dn,{children:[Y.jsx(_t,{size:"small",icon:Y.jsx(qr,{}),onClick:R,disabled:p,children:"キャンセル"}),Y.jsx(_t,{type:"primary",size:"small",icon:Y.jsx(y1,{}),onClick:x,loading:p,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",display:"flex",flexDirection:"column"}},children:Y.jsx(eee,{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] 月末タスク`})}):Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(H3,{}),Y.jsx("span",{children:"ルーチン"})]}),extra:Y.jsxs(dn,{children:[Y.jsxs(_t,{type:"primary",size:"small",icon:Y.jsx(ip,{}),disabled:r.size===0,onClick:L,children:["追加 ",r.size>0&&`(${r.size})`]}),Y.jsx(_t,{size:"small",icon:Y.jsx(fi,{}),onClick:M,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Y.jsx(g1,{defaultActiveKey:P,size:"small",items:B})})},{Text:ub}=Ir,{TextArea:X4}=Nr,nee=()=>{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},ree=nee(),oee=({selectedDate:e})=>{const{report:t,config:n}=fl(),[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 C=n.projects,b=n.routines?.weekly,$=()=>YJ({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||"名前"),[S,w]=l.useState($()),M=C.filter(I=>I.active).map(I=>({value:I.code,label:Y.jsxs(dn,{children:[Y.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),x=()=>{if(!b)return[];const z=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[z]||[]},R=I=>{const z={id:`${I}-${Date.now()}`,time:gn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,z]):f([...d,z])},T=(I,z)=>{I==="plan"?c(s.filter(V=>V.id!==z)):f(d.filter(V=>V.id!==z))},N=(I,z,V,A)=>{const j=q=>q.map(X=>X.id===z?{...X,[V]:A}:X);I==="plan"?c(j(s)):f(j(d))},O=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...p,I])},P=(I,z,V)=>{g(p.map(A=>A.id===I?{...A,[z]:V}:A))},D=I=>{g(p.filter(z=>z.id!==I))},W=()=>{$n.success("保存しました")},k=()=>{const I=x(),z=I.map((V,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:V.time||"09:00",project:V.project,task:V.task,duration:V.duration}));c([...s,...z]),$n.success(`${I.length}件のルーチンを計画に追加しました`)},U=()=>{const z=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((V,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:V.time,project:V.project,task:V.task}));c([...s,...z]),$n.success("Googleカレンダーから計画を取り込みました")},G=()=>{const I=s.map((z,V)=>({...z,id:`result-copy-${Date.now()}-${V}`}));f(I),$n.success("計画を実績にコピーしました")},L=(I,z)=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),Y.jsxs(dn,{children:[I==="plan"&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ur,{title:"ルーチンから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(H3,{}),onClick:k,children:"ルーチン"})}),Y.jsx(ur,{title:"Googleカレンダーから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(JG,{}),onClick:U,children:"GCal"})})]}),I==="result"&&Y.jsx(ur,{title:"計画を実績にコピー",children:Y.jsx(_t,{size:"small",type:"primary",ghost:!0,icon:Y.jsx(D3,{}),onClick:G,children:"計画をコピー"})}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(ip,{}),onClick:()=>R(I),children:"追加"})]})]}),I==="result"&&Y.jsx(dT,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),Y.jsx(So,{dataSource:z,renderItem:V=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{width:"100%"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(TG,{style:{color:"#999",cursor:"grab"}}),Y.jsx(Lr,{value:V.time,options:ree,size:"small",style:{width:90},showSearch:!0,filterOption:(A,j)=>(j?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>N(I,V.id,"time",A),placeholder:"時刻"}),Y.jsx(Lr,{value:V.project,options:M,size:"small",style:{width:150},onChange:A=>N(I,V.id,"project",A)}),Y.jsx(Nr,{value:V.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>N(I,V.id,"task",A.target.value)}),Y.jsx(cS,{title:"削除しますか?",onConfirm:()=>T(I,V.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(sp,{})})})]}),Y.jsx(Nr.TextArea,{value:V.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>N(I,V.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),H=()=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[TODO]"}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(ip,{}),onClick:O,children:"追加"})]}),Y.jsx(So,{dataSource:p,renderItem:I=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(Lr,{value:I.status,size:"small",style:{width:110},onChange:z=>P(I.id,"status",z),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),Y.jsx(Lr,{value:I.project,options:M,size:"small",style:{width:150},onChange:z=>P(I.id,"project",z)}),Y.jsx(Nr,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:z=>P(I.id,"task",z.target.value)}),Y.jsx(Nr,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:z=>P(I.id,"deadline",z.target.value)}),Y.jsx(cS,{title:"削除しますか?",onConfirm:()=>D(I.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(sp,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>Y.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[L("plan",s),Y.jsx(ri,{style:{margin:"16px 0"}}),L("result",d),Y.jsx(ri,{style:{margin:"16px 0"}}),H(),Y.jsx(ri,{style:{margin:"16px 0"}}),Y.jsxs("div",{children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),Y.jsx(X4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),B=()=>Y.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:Y.jsx("div",{style:{flex:1,overflow:"hidden"},children:Y.jsx(X4,{value:S,onChange:I=>w(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(fi,{}),Y.jsx("span",{children:"日報編集"}),Y.jsx(sr,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:Y.jsxs(dn,{children:[Y.jsx(UU,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:Y.jsx(fi,{})},{label:"テキスト",value:"text",icon:Y.jsx(cp,{})}],value:r,onChange:I=>{I==="text"&&w($()),i(I)}}),Y.jsx(ri,{type:"vertical"}),Y.jsx(ur,{title:"元に戻す (Ctrl+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(_X,{})})}),Y.jsx(ur,{title:"やり直し (Ctrl+Shift+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(CX,{})})}),Y.jsx(ri,{type:"vertical"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(y1,{}),onClick:W,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():B()})};function aee(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),[C,b]=l.useState(!1),$=l.useCallback(async B=>{f(!0),y(null),n(B);try{const I=await ls.get(B);if(I)c(I.stats),i(mm(B,I.content));else{const z=CN(B),V=gn(B).subtract(1,"day").format("YYYY-MM-DD");try{const A=await ls.get(V);if(A){const q=mm(V,A.content).todos.filter(X=>X.status!=="completed");z.todos=q.map((X,K)=>({...X,id:`carryover-${Date.now()}-${K}`}))}}catch{}i(z),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),S=l.useCallback(async B=>{if(!r)return!1;g(!0),y(null);try{const I=K4(r),z=await ls.save(t,{content:I,git:B?.git,slack:B?.slack});if(z.saved){c(z.stats),b(!1);const V=await ls.get(t);return V&&(i(mm(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 B=await ls.delete(t);return B&&(i(null),c(null),b(!1)),B}catch(B){return y(B instanceof Error?B.message:"削除に失敗しました"),!1}},[t]),M=l.useCallback(B=>{i(I=>I?{...I,plan:B}:null),b(!0)},[]),x=l.useCallback(B=>{i(I=>I?{...I,result:B}:null),b(!0)},[]),R=l.useCallback(B=>{i(I=>I?{...I,todos:B}:null),b(!0)},[]),T=l.useCallback(B=>{i(I=>I?{...I,notes:B}:null),b(!0)},[]),N=l.useCallback(B=>{const I=mm(t,B);i(I),b(!0)},[t]),O=l.useCallback(B=>{i(I=>{if(!I)return null;const z={...B,id:`t${Date.now()}`};return{...I,todos:[...I.todos,z]}}),b(!0)},[]),P=l.useCallback((B,I)=>{i(z=>z?{...z,todos:z.todos.map(V=>V.id===B?{...V,...I}:V)}:null),b(!0)},[]),D=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.filter(z=>z.id!==B)}:null),b(!0)},[]),W=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.map(z=>z.id!==B?z:{...z,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[z.status]||"pending"})}:null),b(!0)},[]),k=l.useCallback((B,I)=>{i(z=>{if(!z)return null;const V={...I,id:`${B[0]}${Date.now()}`},A=[...z[B],V].sort((j,q)=>j.time.localeCompare(q.time));return{...z,[B]:A}}),b(!0)},[]),U=l.useCallback((B,I,z)=>{i(V=>{if(!V)return null;const A=V[B].map(j=>j.id===I?{...j,...z}:j);return A.sort((j,q)=>j.time.localeCompare(q.time)),{...V,[B]:A}}),b(!0)},[]),G=l.useCallback((B,I)=>{i(z=>z?{...z,[B]:z[B].filter(V=>V.id!==I)}:null),b(!0)},[]),L=l.useCallback(B=>{i(I=>{if(!I)return null;const z=B.map((A,j)=>({...A,id:`p${Date.now()}-${j}`})),V=[...I.plan,...z].sort((A,j)=>A.time.localeCompare(j.time));return{...I,plan:V}}),b(!0)},[]),H=l.useCallback(()=>{i(B=>{if(!B)return null;const I=B.plan.map((z,V)=>({...z,id:`r${Date.now()}-${V}`}));return{...B,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&$(e)},[e,$]);const _=l.useMemo(()=>r?K4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:p,error:h,isDirty:C,loadReport:$,saveReport:S,deleteReport:w,updatePlan:M,updateResult:x,updateTodos:R,updateNotes:T,updateMarkdown:N,addTodo:O,updateTodo:P,deleteTodo:D,toggleTodoStatus:W,addScheduleItem:k,updateScheduleItem:U,deleteScheduleItem:G,applyRoutine:L,copyPlanToResult:H}}function CN(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function mm(e,t){const n=CN(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],C=s,b,$;const S=y.match(/^\[([^\]]+)\]\s*/);S&&(C=S[1],y=y.substring(S[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:iee(h),project:C,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 K4(e){const t=[];return t.push(`# [日報] ${e.author||"名前"} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...gS(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...gS(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...vN(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
|
|
402
|
+
`)}function iee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function lee(){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 gp.get();t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const $=await gp.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 S={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[b.day()];return e.routines.weekly[S]||[]},[e]),C=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:C}}function see(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),[C,b]=l.useState(null),$=l.useCallback(async(O,P)=>{y(!0),b(null);try{const D=await _4.get(O,P);f(D),i(O),c(P)}catch(D){b(D instanceof Error?D.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),S=l.useCallback(async()=>{try{const O=await _4.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,P)=>{$(O,P)},[$]),R=l.useCallback(O=>d?.days.find(P=>P.date===O),[d]),T=l.useCallback(O=>R(O)?.hasReport||!1,[R]),N=l.useCallback(O=>{const P=R(O);return{plan:P?.planHours||0,result:P?.resultHours||0}},[R]);return l.useEffect(()=>{$(r,s),S()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:C,year:r,month:s,availableYearMonths:p,loadCalendar:$,loadAvailableMonths:S,goToPrevMonth:w,goToNextMonth:M,goToMonth:x,getDayStats:R,hasReport:T,getWorkHours:N}}function cee(){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(C=>{const b=new Map(C);return b.delete(p),b});return}t(C=>{const b=new Map(C);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:uee}=Ra,dee=()=>{const[e,t]=l.useState(gn()),[n,r]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState([]),f=aee(e.format("YYYY-MM-DD")),p=lee(),g=see(e.year(),e.month()+1),h=cee(),y=l.useRef(h);y.current=h;const C=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const L=e.format("YYYY-MM-DD");C.current!==L&&(b.current=!0,C.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[$,S]=l.useState(null),w=l.useRef(null),M=l.useRef(0),x=l.useRef(0),R=l.useCallback(async L=>{if(L){const H=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(H);await f.loadReport(H),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),T=l.useCallback(async L=>{const H=gn(L);t(H);const _=y.current.getUnsavedReport(L);await f.loadReport(L),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(L=>{d(H=>H.includes(L)?H.filter(_=>_!==L):[...H,L])},[]),O=l.useCallback(()=>{d([])},[]),P=c.map(L=>p.getProject(L)).filter(L=>L!==void 0),D=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,H)=>{let _=0,B=0;for(const I of L)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(H)?(_++,h.clearUnsavedReport(I)):B++;else{const z=h.getUnsavedReport(I);z&&((await ls.save(I,{content:z.currentMarkdown,git:H?.git,slack:H?.slack})).saved?(_++,h.clearUnsavedReport(I)):B++)}}catch{B++}_>0&&($n.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),B>0&&$n.error(`${B}件の日報の保存に失敗しました`)},[f,e,h,g]),k=l.useCallback(L=>{const H=L.filter(B=>B.category==="plan"||!B.category&&B.time&&B.time!==""),_=L.filter(B=>B.category==="todo"||!B.category&&(!B.time||B.time===""));if(H.length>0){const B=H.map((I,z)=>({id:`routine-${Date.now()}-${z}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(B)}_.length>0&&_.forEach(B=>{f.addTodo({project:B.project,task:B.task,status:"pending"})}),s(!1)},[f]),U=l.useCallback(L=>{L.preventDefault();const H=w.current?.firstElementChild;if(!H||!w.current)return;M.current=L.clientX,x.current=H.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!w.current)return;const z=I.clientX-M.current,V=w.current.getBoundingClientRect().width,A=296,j=200,q=V-A-j-20;let X=x.current+z;X=Math.max(j,Math.min(q,X)),S(X)},B=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",B)},[]),G={selectedDate:e,setSelectedDate:R,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:f,config:p,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:D,saveMultipleReports:W};return Y.jsx(yN.Provider,{value:G,children:Y.jsx(Qo,{theme:{algorithm:JZ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:Y.jsxs(Ra,{style:{height:"100vh",overflow:"hidden"},children:[Y.jsx(DJ,{selectedDate:e,onDateChange:R,onImportClick:()=>s(!0),selectedProjects:P,onRemoveProject:N,onClearProjectFilter:O}),Y.jsx(uee,{style:{padding:16,background:"#f0f2f5",overflow:"hidden",flex:1,display:"flex",flexDirection:"column"},children:Y.jsxs("div",{ref:w,style:{display:"flex",flex:1,minHeight:0},children:[Y.jsx("div",{style:{width:$??void 0,flex:$?void 0:1,minWidth:200,minHeight:0,overflow:"hidden",marginRight:4},children:Y.jsx(UJ,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),Y.jsx("div",{onMouseDown:U,style:{width:8,cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,zIndex:10},children:Y.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"})}),Y.jsx("div",{style:{flex:1,minWidth:200,minHeight:0,overflow:"hidden",marginLeft:4,marginRight:16},children:Y.jsx(ZJ,{selectedDate:e,selectedProjects:c})}),Y.jsxs("div",{style:{width:280,flexShrink:0,display:"flex",flexDirection:"column",gap:16,minHeight:0},children:[Y.jsx("div",{style:{flexShrink:0},children:Y.jsx(jJ,{selectedDate:e,onDateSelect:T,selectedProjects:c})}),Y.jsx("div",{style:{flex:1,minHeight:0,overflow:"hidden"},children:Y.jsx(JJ,{selectedProjects:c,onToggleProject:N})})]})]})}),Y.jsx(ao,{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:Y.jsx(oee,{selectedDate:e,onClose:()=>r(!1)})}),Y.jsx(eN,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:i,children:Y.jsx(tee,{onApplyRoutine:k})})]})})})},{Footer:gee}=Ra,{Text:hee}=Ir;function fee(){return Y.jsx(dee,{})}Z4.createRoot(document.getElementById("root")).render(Y.jsx(l.StrictMode,{children:Y.jsx(fee,{})}));
|