buddy-workbench 0.1.19 → 0.1.21
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/bin/devbuddy.js +195 -0
- package/package.json +5 -3
- package/server/config.js +1 -0
- package/server/repositories/branch-sync.js +56 -0
- package/server/routes/branch-sync.js +464 -0
- package/server/routes/file-organizer.js +3 -2
- package/server/services/file-organizer.js +67 -1
- package/server.js +2 -0
- package/ui/dist/assets/index-kLUg9ehS.js +530 -0
- package/ui/dist/index.html +1 -1
- package/ui/dist/assets/index-jQB3dI9Z.js +0 -524
|
@@ -1,524 +0,0 @@
|
|
|
1
|
-
function g3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t0={exports:{}},Zu={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var C$;function aP(){if(C$)return Zu;C$=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var u in a)u!=="key"&&(l[u]=a[u])}else l=a;return a=l.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:l}}return Zu.Fragment=t,Zu.jsx=n,Zu.jsxs=n,Zu}var S$;function oP(){return S$||(S$=1,t0.exports=aP()),t0.exports}var S=oP(),n0={exports:{}},hn={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var x$;function iP(){if(x$)return hn;x$=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),p=Symbol.iterator;function b(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,h={};function $(V,G,K){this.props=V,this.context=G,this.refs=h,this.updater=K||C}$.prototype.isReactComponent={},$.prototype.setState=function(V,G){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,G,"setState")},$.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function w(){}w.prototype=$.prototype;function E(V,G,K){this.props=V,this.context=G,this.refs=h,this.updater=K||C}var j=E.prototype=new w;j.constructor=E,x(j,$.prototype),j.isPureReactComponent=!0;var O=Array.isArray;function I(){}var R={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function N(V,G,K){var U=K.ref;return{$$typeof:e,type:V,key:G,ref:U!==void 0?U:null,props:K}}function P(V,G){return N(V.type,G,V.props)}function B(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function L(V){var G={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(K){return G[K]})}var k=/\/+/g;function D(V,G){return typeof V=="object"&&V!==null&&V.key!=null?L(""+V.key):G.toString(36)}function H(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(I,I):(V.status="pending",V.then(function(G){V.status==="pending"&&(V.status="fulfilled",V.value=G)},function(G){V.status==="pending"&&(V.status="rejected",V.reason=G)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function z(V,G,K,U,J){var Q=typeof V;(Q==="undefined"||Q==="boolean")&&(V=null);var te=!1;if(V===null)te=!0;else switch(Q){case"bigint":case"string":case"number":te=!0;break;case"object":switch(V.$$typeof){case e:case t:te=!0;break;case v:return te=V._init,z(te(V._payload),G,K,U,J)}}if(te)return J=J(V),te=U===""?"."+D(V,0):U,O(J)?(K="",te!=null&&(K=te.replace(k,"$&/")+"/"),z(J,G,K,"",function(re){return re})):J!=null&&(B(J)&&(J=P(J,K+(J.key==null||V&&V.key===J.key?"":(""+J.key).replace(k,"$&/")+"/")+te)),G.push(J)),1;te=0;var Y=U===""?".":U+":";if(O(V))for(var ae=0;ae<V.length;ae++)U=V[ae],Q=Y+D(U,ae),te+=z(U,G,K,Q,J);else if(ae=b(V),typeof ae=="function")for(V=ae.call(V),ae=0;!(U=V.next()).done;)U=U.value,Q=Y+D(U,ae++),te+=z(U,G,K,Q,J);else if(Q==="object"){if(typeof V.then=="function")return z(H(V),G,K,U,J);throw G=String(V),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return te}function _(V,G,K){if(V==null)return V;var U=[],J=0;return z(V,U,"","",function(Q){return G.call(K,Q,J++)}),U}function F(V){if(V._status===-1){var G=V._result;G=G(),G.then(function(K){(V._status===0||V._status===-1)&&(V._status=1,V._result=K)},function(K){(V._status===0||V._status===-1)&&(V._status=2,V._result=K)}),V._status===-1&&(V._status=0,V._result=G)}if(V._status===1)return V._result.default;throw V._result}var W=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)},q={map:_,forEach:function(V,G,K){_(V,function(){G.apply(this,arguments)},K)},count:function(V){var G=0;return _(V,function(){G++}),G},toArray:function(V){return _(V,function(G){return G})||[]},only:function(V){if(!B(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};return hn.Activity=g,hn.Children=q,hn.Component=$,hn.Fragment=n,hn.Profiler=a,hn.PureComponent=E,hn.StrictMode=r,hn.Suspense=d,hn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,hn.__COMPILER_RUNTIME={__proto__:null,c:function(V){return R.H.useMemoCache(V)}},hn.cache=function(V){return function(){return V.apply(null,arguments)}},hn.cacheSignal=function(){return null},hn.cloneElement=function(V,G,K){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var U=x({},V.props),J=V.key;if(G!=null)for(Q in G.key!==void 0&&(J=""+G.key),G)!M.call(G,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&G.ref===void 0||(U[Q]=G[Q]);var Q=arguments.length-2;if(Q===1)U.children=K;else if(1<Q){for(var te=Array(Q),Y=0;Y<Q;Y++)te[Y]=arguments[Y+2];U.children=te}return N(V.type,J,U)},hn.createContext=function(V){return V={$$typeof:c,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:l,_context:V},V},hn.createElement=function(V,G,K){var U,J={},Q=null;if(G!=null)for(U in G.key!==void 0&&(Q=""+G.key),G)M.call(G,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(J[U]=G[U]);var te=arguments.length-2;if(te===1)J.children=K;else if(1<te){for(var Y=Array(te),ae=0;ae<te;ae++)Y[ae]=arguments[ae+2];J.children=Y}if(V&&V.defaultProps)for(U in te=V.defaultProps,te)J[U]===void 0&&(J[U]=te[U]);return N(V,Q,J)},hn.createRef=function(){return{current:null}},hn.forwardRef=function(V){return{$$typeof:u,render:V}},hn.isValidElement=B,hn.lazy=function(V){return{$$typeof:v,_payload:{_status:-1,_result:V},_init:F}},hn.memo=function(V,G){return{$$typeof:f,type:V,compare:G===void 0?null:G}},hn.startTransition=function(V){var G=R.T,K={};R.T=K;try{var U=V(),J=R.S;J!==null&&J(K,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(I,W)}catch(Q){W(Q)}finally{G!==null&&K.types!==null&&(G.types=K.types),R.T=G}},hn.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},hn.use=function(V){return R.H.use(V)},hn.useActionState=function(V,G,K){return R.H.useActionState(V,G,K)},hn.useCallback=function(V,G){return R.H.useCallback(V,G)},hn.useContext=function(V){return R.H.useContext(V)},hn.useDebugValue=function(){},hn.useDeferredValue=function(V,G){return R.H.useDeferredValue(V,G)},hn.useEffect=function(V,G){return R.H.useEffect(V,G)},hn.useEffectEvent=function(V){return R.H.useEffectEvent(V)},hn.useId=function(){return R.H.useId()},hn.useImperativeHandle=function(V,G,K){return R.H.useImperativeHandle(V,G,K)},hn.useInsertionEffect=function(V,G){return R.H.useInsertionEffect(V,G)},hn.useLayoutEffect=function(V,G){return R.H.useLayoutEffect(V,G)},hn.useMemo=function(V,G){return R.H.useMemo(V,G)},hn.useOptimistic=function(V,G){return R.H.useOptimistic(V,G)},hn.useReducer=function(V,G,K){return R.H.useReducer(V,G,K)},hn.useRef=function(V){return R.H.useRef(V)},hn.useState=function(V){return R.H.useState(V)},hn.useSyncExternalStore=function(V,G,K){return R.H.useSyncExternalStore(V,G,K)},hn.useTransition=function(){return R.H.useTransition()},hn.version="19.2.7",hn}var $$;function l1(){return $$||($$=1,n0.exports=iP()),n0.exports}var i=l1();const ve=To(i),ng=g3({__proto__:null,default:ve},[i]);var r0={exports:{}},Ju={},a0={exports:{}},o0={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var w$;function lP(){return w$||(w$=1,(function(e){function t(z,_){var F=z.length;z.push(_);e:for(;0<F;){var W=F-1>>>1,q=z[W];if(0<a(q,_))z[W]=_,z[F]=q,F=W;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var _=z[0],F=z.pop();if(F!==_){z[0]=F;e:for(var W=0,q=z.length,V=q>>>1;W<V;){var G=2*(W+1)-1,K=z[G],U=G+1,J=z[U];if(0>a(K,F))U<q&&0>a(J,K)?(z[W]=J,z[U]=F,W=U):(z[W]=K,z[G]=F,W=G);else if(U<q&&0>a(J,F))z[W]=J,z[U]=F,W=U;else break e}}return _}function a(z,_){var F=z.sortIndex-_.sortIndex;return F!==0?F:z.id-_.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],v=1,g=null,p=3,b=!1,C=!1,x=!1,h=!1,$=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function j(z){for(var _=n(f);_!==null;){if(_.callback===null)r(f);else if(_.startTime<=z)r(f),_.sortIndex=_.expirationTime,t(d,_);else break;_=n(f)}}function O(z){if(x=!1,j(z),!C)if(n(d)!==null)C=!0,I||(I=!0,L());else{var _=n(f);_!==null&&H(O,_.startTime-z)}}var I=!1,R=-1,M=5,N=-1;function P(){return h?!0:!(e.unstable_now()-N<M)}function B(){if(h=!1,I){var z=e.unstable_now();N=z;var _=!0;try{e:{C=!1,x&&(x=!1,w(R),R=-1),b=!0;var F=p;try{t:{for(j(z),g=n(d);g!==null&&!(g.expirationTime>z&&P());){var W=g.callback;if(typeof W=="function"){g.callback=null,p=g.priorityLevel;var q=W(g.expirationTime<=z);if(z=e.unstable_now(),typeof q=="function"){g.callback=q,j(z),_=!0;break t}g===n(d)&&r(d),j(z)}else r(d);g=n(d)}if(g!==null)_=!0;else{var V=n(f);V!==null&&H(O,V.startTime-z),_=!1}}break e}finally{g=null,p=F,b=!1}_=void 0}}finally{_?L():I=!1}}}var L;if(typeof E=="function")L=function(){E(B)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,D=k.port2;k.port1.onmessage=B,L=function(){D.postMessage(null)}}else L=function(){$(B,0)};function H(z,_){R=$(function(){z(e.unstable_now())},_)}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(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(z){switch(p){case 1:case 2:case 3:var _=3;break;default:_=p}var F=p;p=_;try{return z()}finally{p=F}},e.unstable_requestPaint=function(){h=!0},e.unstable_runWithPriority=function(z,_){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=p;p=z;try{return _()}finally{p=F}},e.unstable_scheduleCallback=function(z,_,F){var W=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?W+F:W):F=W,z){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=F+q,z={id:v++,callback:_,priorityLevel:z,startTime:F,expirationTime:q,sortIndex:-1},F>W?(z.sortIndex=F,t(f,z),n(d)===null&&z===n(f)&&(x?(w(R),R=-1):x=!0,H(O,F-W))):(z.sortIndex=q,t(d,z),C||b||(C=!0,I||(I=!0,L()))),z},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(z){var _=p;return function(){var F=p;p=_;try{return z.apply(this,arguments)}finally{p=F}}}})(o0)),o0}var E$;function sP(){return E$||(E$=1,a0.exports=lP()),a0.exports}var i0={exports:{}},ga={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var O$;function cP(){if(O$)return ga;O$=1;var e=l1();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(d,f,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:f,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return ga.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ga.createPortal=function(d,f){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return l(d,f,null,v)},ga.flushSync=function(d){var f=c.T,v=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=f,r.p=v,r.d.f()}},ga.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},ga.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},ga.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var v=f.as,g=u(v,f.crossOrigin),p=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;v==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:p,fetchPriority:b}):v==="script"&&r.d.X(d,{crossOrigin:g,integrity:p,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ga.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var v=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},ga.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var v=f.as,g=u(v,f.crossOrigin);r.d.L(d,v,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ga.preloadModule=function(d,f){if(typeof d=="string")if(f){var v=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},ga.requestFormReset=function(d){r.d.r(d)},ga.unstable_batchedUpdates=function(d,f){return d(f)},ga.useFormState=function(d,f,v){return c.H.useFormState(d,f,v)},ga.useFormStatus=function(){return c.H.useHostTransitionStatus()},ga.version="19.2.7",ga}var R$;function p3(){if(R$)return i0.exports;R$=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(),i0.exports=cP(),i0.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var j$;function uP(){if(j$)return Ju;j$=1;var e=sP(),t=l1(),n=p3();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)s+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function l(o){var s=o,m=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(m=s.return),o=s.return;while(o)}return s.tag===3?m:null}function c(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function d(o){if(l(o)!==o)throw Error(r(188))}function f(o){var s=o.alternate;if(!s){if(s=l(o),s===null)throw Error(r(188));return s!==o?null:o}for(var m=o,y=s;;){var T=m.return;if(T===null)break;var A=T.alternate;if(A===null){if(y=T.return,y!==null){m=y;continue}break}if(T.child===A.child){for(A=T.child;A;){if(A===m)return d(T),o;if(A===y)return d(T),s;A=A.sibling}throw Error(r(188))}if(m.return!==y.return)m=T,y=A;else{for(var ee=!1,me=T.child;me;){if(me===m){ee=!0,m=T,y=A;break}if(me===y){ee=!0,y=T,m=A;break}me=me.sibling}if(!ee){for(me=A.child;me;){if(me===m){ee=!0,m=A,y=T;break}if(me===y){ee=!0,y=A,m=T;break}me=me.sibling}if(!ee)throw Error(r(189))}}if(m.alternate!==y)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?o:s}function v(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=v(o),s!==null)return s;o=o.sibling}return null}var g=Object.assign,p=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function L(o){return o===null||typeof o!="object"?null:(o=B&&o[B]||o["@@iterator"],typeof o=="function"?o:null)}var k=Symbol.for("react.client.reference");function D(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===k?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case x:return"Fragment";case $:return"Profiler";case h:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case N:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case C:return"Portal";case E:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case j:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case R:return s=o.displayName||null,s!==null?s:D(o.type)||"Memo";case M:s=o._payload,o=o._init;try{return D(o(s))}catch{}}return null}var H=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},W=[],q=-1;function V(o){return{current:o}}function G(o){0>q||(o.current=W[q],W[q]=null,q--)}function K(o,s){q++,W[q]=o.current,o.current=s}var U=V(null),J=V(null),Q=V(null),te=V(null);function Y(o,s){switch(K(Q,s),K(J,o),K(U,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?V2(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=V2(s),o=W2(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}G(U),K(U,o)}function ae(){G(U),G(J),G(Q)}function re(o){o.memoizedState!==null&&K(te,o);var s=U.current,m=W2(s,o.type);s!==m&&(K(J,o),K(U,m))}function Z(o){J.current===o&&(G(U),G(J)),te.current===o&&(G(te),Gu._currentValue=F)}var X,oe;function le(o){if(X===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);X=s&&s[1]||"",oe=-1<m.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+X+o+oe}var de=!1;function ce(o,s){if(!o||de)return"";de=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(s){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(qe){var He=qe}Reflect.construct(o,[],it)}else{try{it.call()}catch(qe){He=qe}o.call(it.prototype)}}else{try{throw Error()}catch(qe){He=qe}(it=o())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(qe){if(qe&&He&&typeof qe.stack=="string")return[qe.stack,He.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=y.DetermineComponentFrameRoot(),ee=A[0],me=A[1];if(ee&&me){var xe=ee.split(`
|
|
44
|
-
`),ke=me.split(`
|
|
45
|
-
`);for(T=y=0;y<xe.length&&!xe[y].includes("DetermineComponentFrameRoot");)y++;for(;T<ke.length&&!ke[T].includes("DetermineComponentFrameRoot");)T++;if(y===xe.length||T===ke.length)for(y=xe.length-1,T=ke.length-1;1<=y&&0<=T&&xe[y]!==ke[T];)T--;for(;1<=y&&0<=T;y--,T--)if(xe[y]!==ke[T]){if(y!==1||T!==1)do if(y--,T--,0>T||xe[y]!==ke[T]){var Je=`
|
|
46
|
-
`+xe[y].replace(" at new "," at ");return o.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",o.displayName)),Je}while(1<=y&&0<=T);break}}}finally{de=!1,Error.prepareStackTrace=m}return(m=o?o.displayName||o.name:"")?le(m):""}function ge(o,s){switch(o.tag){case 26:case 27:case 5:return le(o.type);case 16:return le("Lazy");case 13:return o.child!==s&&s!==null?le("Suspense Fallback"):le("Suspense");case 19:return le("SuspenseList");case 0:case 15:return ce(o.type,!1);case 11:return ce(o.type.render,!1);case 1:return ce(o.type,!0);case 31:return le("Activity");default:return""}}function he(o){try{var s="",m=null;do s+=ge(o,m),m=o,o=o.return;while(o);return s}catch(y){return`
|
|
47
|
-
Error generating stack: `+y.message+`
|
|
48
|
-
`+y.stack}}var Oe=Object.prototype.hasOwnProperty,je=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,we=e.unstable_shouldYield,Se=e.unstable_requestPaint,Ce=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,Ae=e.unstable_ImmediatePriority,Qe=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,Te=e.log,Ee=e.unstable_setDisableYieldValue,_e=null,Re=null;function Pe(o){if(typeof Te=="function"&&Ee(o),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(_e,o)}catch{}}var ye=Math.clz32?Math.clz32:Le,$e=Math.log,Me=Math.LN2;function Le(o){return o>>>=0,o===0?32:31-($e(o)/Me|0)|0}var tt=256,yt=262144,We=4194304;function nt(o){var s=o&42;if(s!==0)return s;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 dt(o,s,m){var y=o.pendingLanes;if(y===0)return 0;var T=0,A=o.suspendedLanes,ee=o.pingedLanes;o=o.warmLanes;var me=y&134217727;return me!==0?(y=me&~A,y!==0?T=nt(y):(ee&=me,ee!==0?T=nt(ee):m||(m=me&~o,m!==0&&(T=nt(m))))):(me=y&~A,me!==0?T=nt(me):ee!==0?T=nt(ee):m||(m=y&~o,m!==0&&(T=nt(m)))),T===0?0:s!==0&&s!==T&&(s&A)===0&&(A=T&-T,m=s&-s,A>=m||A===32&&(m&4194048)!==0)?s:T}function at(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function pt(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 zt(){var o=We;return We<<=1,(We&62914560)===0&&(We=4194304),o}function Ot(o){for(var s=[],m=0;31>m;m++)s.push(o);return s}function ct(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function $t(o,s,m,y,T,A){var ee=o.pendingLanes;o.pendingLanes=m,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=m,o.entangledLanes&=m,o.errorRecoveryDisabledLanes&=m,o.shellSuspendCounter=0;var me=o.entanglements,xe=o.expirationTimes,ke=o.hiddenUpdates;for(m=ee&~m;0<m;){var Je=31-ye(m),it=1<<Je;me[Je]=0,xe[Je]=-1;var He=ke[Je];if(He!==null)for(ke[Je]=null,Je=0;Je<He.length;Je++){var qe=He[Je];qe!==null&&(qe.lane&=-536870913)}m&=~it}y!==0&&St(o,y,0),A!==0&&T===0&&o.tag!==0&&(o.suspendedLanes|=A&~(ee&~s))}function St(o,s,m){o.pendingLanes|=s,o.suspendedLanes&=~s;var y=31-ye(s);o.entangledLanes|=s,o.entanglements[y]=o.entanglements[y]|1073741824|m&261930}function et(o,s){var m=o.entangledLanes|=s;for(o=o.entanglements;m;){var y=31-ye(m),T=1<<y;T&s|o[y]&s&&(o[y]|=s),m&=~T}}function Ve(o,s){var m=s&-s;return m=(m&42)!==0?1:Ue(m),(m&(o.suspendedLanes|s))!==0?0:m}function Ue(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 mt(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Tt(){var o=_.p;return o!==0?o:(o=window.event,o===void 0?32:m$(o.type))}function Nt(o,s){var m=_.p;try{return _.p=o,s()}finally{_.p=m}}var Vt=Math.random().toString(36).slice(2),ft="__reactFiber$"+Vt,lt="__reactProps$"+Vt,At="__reactContainer$"+Vt,Ut="__reactEvents$"+Vt,rn="__reactListeners$"+Vt,Qt="__reactHandles$"+Vt,pn="__reactResources$"+Vt,qt="__reactMarker$"+Vt;function un(o){delete o[ft],delete o[lt],delete o[Ut],delete o[rn],delete o[Qt]}function st(o){var s=o[ft];if(s)return s;for(var m=o.parentNode;m;){if(s=m[At]||m[ft]){if(m=s.alternate,s.child!==null||m!==null&&m.child!==null)for(o=Q2(o);o!==null;){if(m=o[ft])return m;o=Q2(o)}return s}o=m,m=o.parentNode}return null}function xt(o){if(o=o[ft]||o[At]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function ht(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Ye(o){var s=o[pn];return s||(s=o[pn]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ze(o){o[qt]=!0}var ut=new Set,Dt={};function Kt(o,s){vt(o,s),vt(o+"Capture",s)}function vt(o,s){for(Dt[o]=s,o=0;o<s.length;o++)ut.add(s[o])}var Mt=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]*$"),Ft={},$n={};function _n(o){return Oe.call($n,o)?!0:Oe.call(Ft,o)?!1:Mt.test(o)?$n[o]=!0:(Ft[o]=!0,!1)}function Pn(o,s,m){if(_n(s))if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var y=s.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+m)}}function Wn(o,s,m){if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+m)}}function jn(o,s,m,y){if(y===null)o.removeAttribute(m);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(m);return}o.setAttributeNS(s,m,""+y)}}function Bn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function $r(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Pr(o,s,m){var y=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var T=y.get,A=y.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return T.call(this)},set:function(ee){m=""+ee,A.call(this,ee)}}),Object.defineProperty(o,s,{enumerable:y.enumerable}),{getValue:function(){return m},setValue:function(ee){m=""+ee},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function br(o){if(!o._valueTracker){var s=$r(o)?"checked":"value";o._valueTracker=Pr(o,s,""+o[s])}}function Sn(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var m=s.getValue(),y="";return o&&(y=$r(o)?o.checked?"true":"false":o.value),o=y,o!==m?(s.setValue(o),!0):!1}function Bt(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 kt=/[\n"\\]/g;function an(o){return o.replace(kt,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Pt(o,s,m,y,T,A,ee,me){o.name="",ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?o.type=ee:o.removeAttribute("type"),s!=null?ee==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Bn(s)):o.value!==""+Bn(s)&&(o.value=""+Bn(s)):ee!=="submit"&&ee!=="reset"||o.removeAttribute("value"),s!=null?vn(o,ee,Bn(s)):m!=null?vn(o,ee,Bn(m)):y!=null&&o.removeAttribute("value"),T==null&&A!=null&&(o.defaultChecked=!!A),T!=null&&(o.checked=T&&typeof T!="function"&&typeof T!="symbol"),me!=null&&typeof me!="function"&&typeof me!="symbol"&&typeof me!="boolean"?o.name=""+Bn(me):o.removeAttribute("name")}function _t(o,s,m,y,T,A,ee,me){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(o.type=A),s!=null||m!=null){if(!(A!=="submit"&&A!=="reset"||s!=null)){br(o);return}m=m!=null?""+Bn(m):"",s=s!=null?""+Bn(s):m,me||s===o.value||(o.value=s),o.defaultValue=s}y=y??T,y=typeof y!="function"&&typeof y!="symbol"&&!!y,o.checked=me?o.checked:!!y,o.defaultChecked=!!y,ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"&&(o.name=ee),br(o)}function vn(o,s,m){s==="number"&&Bt(o.ownerDocument)===o||o.defaultValue===""+m||(o.defaultValue=""+m)}function In(o,s,m,y){if(o=o.options,s){s={};for(var T=0;T<m.length;T++)s["$"+m[T]]=!0;for(m=0;m<o.length;m++)T=s.hasOwnProperty("$"+o[m].value),o[m].selected!==T&&(o[m].selected=T),T&&y&&(o[m].defaultSelected=!0)}else{for(m=""+Bn(m),s=null,T=0;T<o.length;T++){if(o[T].value===m){o[T].selected=!0,y&&(o[T].defaultSelected=!0);return}s!==null||o[T].disabled||(s=o[T])}s!==null&&(s.selected=!0)}}function Yn(o,s,m){if(s!=null&&(s=""+Bn(s),s!==o.value&&(o.value=s),m==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=m!=null?""+Bn(m):""}function wr(o,s,m,y){if(s==null){if(y!=null){if(m!=null)throw Error(r(92));if(H(y)){if(1<y.length)throw Error(r(93));y=y[0]}m=y}m==null&&(m=""),s=m}m=Bn(s),o.defaultValue=m,y=o.textContent,y===m&&y!==""&&y!==null&&(o.value=y),br(o)}function Qn(o,s){if(s){var m=o.firstChild;if(m&&m===o.lastChild&&m.nodeType===3){m.nodeValue=s;return}}o.textContent=s}var Rr=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 cn(o,s,m){var y=s.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?y?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":y?o.setProperty(s,m):typeof m!="number"||m===0||Rr.has(s)?s==="float"?o.cssFloat=m:o[s]=(""+m).trim():o[s]=m+"px"}function gt(o,s,m){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,m!=null){for(var y in m)!m.hasOwnProperty(y)||s!=null&&s.hasOwnProperty(y)||(y.indexOf("--")===0?o.setProperty(y,""):y==="float"?o.cssFloat="":o[y]="");for(var T in s)y=s[T],s.hasOwnProperty(T)&&m[T]!==y&&cn(o,T,y)}else for(var A in s)s.hasOwnProperty(A)&&cn(o,A,s[A])}function It(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 fn=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"]]),zn=/^[\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 Zn(o){return zn.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Kn(){}var Ur=null;function Jr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var zr=null,sa=null;function Rl(o){var s=xt(o);if(s&&(o=s.stateNode)){var m=o[lt]||null;e:switch(o=s.stateNode,s.type){case"input":if(Pt(o,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),s=m.name,m.type==="radio"&&s!=null){for(m=o;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+an(""+s)+'"][type="radio"]'),s=0;s<m.length;s++){var y=m[s];if(y!==o&&y.form===o.form){var T=y[lt]||null;if(!T)throw Error(r(90));Pt(y,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(s=0;s<m.length;s++)y=m[s],y.form===o.form&&Sn(y)}break e;case"textarea":Yn(o,m.value,m.defaultValue);break e;case"select":s=m.value,s!=null&&In(o,!!m.multiple,s,!1)}}}var Oi=!1;function Ms(o,s,m){if(Oi)return o(s,m);Oi=!0;try{var y=o(s);return y}finally{if(Oi=!1,(zr!==null||sa!==null)&&(sm(),zr&&(s=zr,o=sa,sa=zr=null,Rl(s),o)))for(s=0;s<o.length;s++)Rl(o[s])}}function Ht(o,s){var m=o.stateNode;if(m===null)return null;var y=m[lt]||null;if(y===null)return null;m=y[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(o=o.type,y=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!y;break e;default:o=!1}if(o)return null;if(m&&typeof m!="function")throw Error(r(231,s,typeof m));return m}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tr=!1;if(Zt)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){tr=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{tr=!1}var kn=null,Ri=null,ji=null;function fu(){if(ji)return ji;var o,s=Ri,m=s.length,y,T="value"in kn?kn.value:kn.textContent,A=T.length;for(o=0;o<m&&s[o]===T[o];o++);var ee=m-o;for(y=1;y<=ee&&s[m-y]===T[A-y];y++);return ji=T.slice(o,1<y?1-y:void 0)}function ei(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function wf(){return!0}function KC(){return!1}function Ea(o){function s(m,y,T,A,ee){this._reactName=m,this._targetInst=T,this.type=y,this.nativeEvent=A,this.target=ee,this.currentTarget=null;for(var me in o)o.hasOwnProperty(me)&&(m=o[me],this[me]=m?m(A):A[me]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?wf:KC,this.isPropagationStopped=KC,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=wf)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=wf)},persist:function(){},isPersistent:wf}),s}var jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ef=Ea(jl),mu=g({},jl,{view:0,detail:0}),nM=Ea(mu),rp,ap,vu,Of=g({},mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ip,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!==vu&&(vu&&o.type==="mousemove"?(rp=o.screenX-vu.screenX,ap=o.screenY-vu.screenY):ap=rp=0,vu=o),rp)},movementY:function(o){return"movementY"in o?o.movementY:ap}}),UC=Ea(Of),rM=g({},Of,{dataTransfer:0}),aM=Ea(rM),oM=g({},mu,{relatedTarget:0}),op=Ea(oM),iM=g({},jl,{animationName:0,elapsedTime:0,pseudoElement:0}),lM=Ea(iM),sM=g({},jl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),cM=Ea(sM),uM=g({},jl,{data:0}),qC=Ea(uM),dM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fM={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"},mM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vM(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=mM[o])?!!s[o]:!1}function ip(){return vM}var gM=g({},mu,{key:function(o){if(o.key){var s=dM[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=ei(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?fM[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ip,charCode:function(o){return o.type==="keypress"?ei(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?ei(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),pM=Ea(gM),hM=g({},Of,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),GC=Ea(hM),bM=g({},mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ip}),yM=Ea(bM),CM=g({},jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),SM=Ea(CM),xM=g({},Of,{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}),$M=Ea(xM),wM=g({},jl,{newState:0,oldState:0}),EM=Ea(wM),OM=[9,13,27,32],lp=Zt&&"CompositionEvent"in window,gu=null;Zt&&"documentMode"in document&&(gu=document.documentMode);var RM=Zt&&"TextEvent"in window&&!gu,XC=Zt&&(!lp||gu&&8<gu&&11>=gu),YC=" ",QC=!1;function ZC(o,s){switch(o){case"keyup":return OM.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JC(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ts=!1;function jM(o,s){switch(o){case"compositionend":return JC(s);case"keypress":return s.which!==32?null:(QC=!0,YC);case"textInput":return o=s.data,o===YC&&QC?null:o;default:return null}}function IM(o,s){if(Ts)return o==="compositionend"||!lp&&ZC(o,s)?(o=fu(),ji=Ri=kn=null,Ts=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return XC&&s.locale!=="ko"?null:s.data;default:return null}}var NM={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 eS(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!NM[o.type]:s==="textarea"}function tS(o,s,m,y){zr?sa?sa.push(y):sa=[y]:zr=y,s=gm(s,"onChange"),0<s.length&&(m=new Ef("onChange","change",null,m,y),o.push({event:m,listeners:s}))}var pu=null,hu=null;function MM(o){A2(o,0)}function Rf(o){var s=ht(o);if(Sn(s))return o}function nS(o,s){if(o==="change")return s}var rS=!1;if(Zt){var sp;if(Zt){var cp="oninput"in document;if(!cp){var aS=document.createElement("div");aS.setAttribute("oninput","return;"),cp=typeof aS.oninput=="function"}sp=cp}else sp=!1;rS=sp&&(!document.documentMode||9<document.documentMode)}function oS(){pu&&(pu.detachEvent("onpropertychange",iS),hu=pu=null)}function iS(o){if(o.propertyName==="value"&&Rf(hu)){var s=[];tS(s,hu,o,Jr(o)),Ms(MM,s)}}function TM(o,s,m){o==="focusin"?(oS(),pu=s,hu=m,pu.attachEvent("onpropertychange",iS)):o==="focusout"&&oS()}function PM(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Rf(hu)}function zM(o,s){if(o==="click")return Rf(s)}function DM(o,s){if(o==="input"||o==="change")return Rf(s)}function _M(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var _a=typeof Object.is=="function"?Object.is:_M;function bu(o,s){if(_a(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var m=Object.keys(o),y=Object.keys(s);if(m.length!==y.length)return!1;for(y=0;y<m.length;y++){var T=m[y];if(!Oe.call(s,T)||!_a(o[T],s[T]))return!1}return!0}function lS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function sS(o,s){var m=lS(o);o=0;for(var y;m;){if(m.nodeType===3){if(y=o+m.textContent.length,o<=s&&y>=s)return{node:m,offset:s-o};o=y}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=lS(m)}}function cS(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?cS(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function uS(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=Bt(o.document);s instanceof o.HTMLIFrameElement;){try{var m=typeof s.contentWindow.location.href=="string"}catch{m=!1}if(m)o=s.contentWindow;else break;s=Bt(o.document)}return s}function up(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var AM=Zt&&"documentMode"in document&&11>=document.documentMode,Ps=null,dp=null,yu=null,fp=!1;function dS(o,s,m){var y=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;fp||Ps==null||Ps!==Bt(y)||(y=Ps,"selectionStart"in y&&up(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),yu&&bu(yu,y)||(yu=y,y=gm(dp,"onSelect"),0<y.length&&(s=new Ef("onSelect","select",null,s,m),o.push({event:s,listeners:y}),s.target=Ps)))}function Il(o,s){var m={};return m[o.toLowerCase()]=s.toLowerCase(),m["Webkit"+o]="webkit"+s,m["Moz"+o]="moz"+s,m}var zs={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},mp={},fS={};Zt&&(fS=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Nl(o){if(mp[o])return mp[o];if(!zs[o])return o;var s=zs[o],m;for(m in s)if(s.hasOwnProperty(m)&&m in fS)return mp[o]=s[m];return o}var mS=Nl("animationend"),vS=Nl("animationiteration"),gS=Nl("animationstart"),BM=Nl("transitionrun"),kM=Nl("transitionstart"),LM=Nl("transitioncancel"),pS=Nl("transitionend"),hS=new Map,vp="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(" ");vp.push("scrollEnd");function ho(o,s){hS.set(o,s),Kt(s,[o])}var jf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=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(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Qa=[],Ds=0,gp=0;function If(){for(var o=Ds,s=gp=Ds=0;s<o;){var m=Qa[s];Qa[s++]=null;var y=Qa[s];Qa[s++]=null;var T=Qa[s];Qa[s++]=null;var A=Qa[s];if(Qa[s++]=null,y!==null&&T!==null){var ee=y.pending;ee===null?T.next=T:(T.next=ee.next,ee.next=T),y.pending=T}A!==0&&bS(m,T,A)}}function Nf(o,s,m,y){Qa[Ds++]=o,Qa[Ds++]=s,Qa[Ds++]=m,Qa[Ds++]=y,gp|=y,o.lanes|=y,o=o.alternate,o!==null&&(o.lanes|=y)}function pp(o,s,m,y){return Nf(o,s,m,y),Mf(o)}function Ml(o,s){return Nf(o,null,null,s),Mf(o)}function bS(o,s,m){o.lanes|=m;var y=o.alternate;y!==null&&(y.lanes|=m);for(var T=!1,A=o.return;A!==null;)A.childLanes|=m,y=A.alternate,y!==null&&(y.childLanes|=m),A.tag===22&&(o=A.stateNode,o===null||o._visibility&1||(T=!0)),o=A,A=A.return;return o.tag===3?(A=o.stateNode,T&&s!==null&&(T=31-ye(m),o=A.hiddenUpdates,y=o[T],y===null?o[T]=[s]:y.push(s),s.lane=m|536870912),A):null}function Mf(o){if(50<Hu)throw Hu=0,Eh=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var _s={};function HM(o,s,m,y){this.tag=o,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Aa(o,s,m,y){return new HM(o,s,m,y)}function hp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ti(o,s){var m=o.alternate;return m===null?(m=Aa(o.tag,s,o.key,o.mode),m.elementType=o.elementType,m.type=o.type,m.stateNode=o.stateNode,m.alternate=o,o.alternate=m):(m.pendingProps=s,m.type=o.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=o.flags&65011712,m.childLanes=o.childLanes,m.lanes=o.lanes,m.child=o.child,m.memoizedProps=o.memoizedProps,m.memoizedState=o.memoizedState,m.updateQueue=o.updateQueue,s=o.dependencies,m.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},m.sibling=o.sibling,m.index=o.index,m.ref=o.ref,m.refCleanup=o.refCleanup,m}function yS(o,s){o.flags&=65011714;var m=o.alternate;return m===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=m.childLanes,o.lanes=m.lanes,o.child=m.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=m.memoizedProps,o.memoizedState=m.memoizedState,o.updateQueue=m.updateQueue,o.type=m.type,s=m.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Tf(o,s,m,y,T,A){var ee=0;if(y=o,typeof o=="function")hp(o)&&(ee=1);else if(typeof o=="string")ee=UT(o,m,U.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case N:return o=Aa(31,m,s,T),o.elementType=N,o.lanes=A,o;case x:return Tl(m.children,T,A,s);case h:ee=8,T|=24;break;case $:return o=Aa(12,m,s,T|2),o.elementType=$,o.lanes=A,o;case O:return o=Aa(13,m,s,T),o.elementType=O,o.lanes=A,o;case I:return o=Aa(19,m,s,T),o.elementType=I,o.lanes=A,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case E:ee=10;break e;case w:ee=9;break e;case j:ee=11;break e;case R:ee=14;break e;case M:ee=16,y=null;break e}ee=29,m=Error(r(130,o===null?"null":typeof o,"")),y=null}return s=Aa(ee,m,s,T),s.elementType=o,s.type=y,s.lanes=A,s}function Tl(o,s,m,y){return o=Aa(7,o,y,s),o.lanes=m,o}function bp(o,s,m){return o=Aa(6,o,null,s),o.lanes=m,o}function CS(o){var s=Aa(18,null,null,0);return s.stateNode=o,s}function yp(o,s,m){return s=Aa(4,o.children!==null?o.children:[],o.key,s),s.lanes=m,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var SS=new WeakMap;function Za(o,s){if(typeof o=="object"&&o!==null){var m=SS.get(o);return m!==void 0?m:(s={value:o,source:s,stack:he(s)},SS.set(o,s),s)}return{value:o,source:s,stack:he(s)}}var As=[],Bs=0,Pf=null,Cu=0,Ja=[],eo=0,Ii=null,ko=1,Lo="";function ni(o,s){As[Bs++]=Cu,As[Bs++]=Pf,Pf=o,Cu=s}function xS(o,s,m){Ja[eo++]=ko,Ja[eo++]=Lo,Ja[eo++]=Ii,Ii=o;var y=ko;o=Lo;var T=32-ye(y)-1;y&=~(1<<T),m+=1;var A=32-ye(s)+T;if(30<A){var ee=T-T%5;A=(y&(1<<ee)-1).toString(32),y>>=ee,T-=ee,ko=1<<32-ye(s)+T|m<<T|y,Lo=A+o}else ko=1<<A|m<<T|y,Lo=o}function Cp(o){o.return!==null&&(ni(o,1),xS(o,1,0))}function Sp(o){for(;o===Pf;)Pf=As[--Bs],As[Bs]=null,Cu=As[--Bs],As[Bs]=null;for(;o===Ii;)Ii=Ja[--eo],Ja[eo]=null,Lo=Ja[--eo],Ja[eo]=null,ko=Ja[--eo],Ja[eo]=null}function $S(o,s){Ja[eo++]=ko,Ja[eo++]=Lo,Ja[eo++]=Ii,ko=s.id,Lo=s.overflow,Ii=o}var ca=null,gr=null,Dn=!1,Ni=null,to=!1,xp=Error(r(519));function Mi(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Su(Za(s,o)),xp}function wS(o){var s=o.stateNode,m=o.type,y=o.memoizedProps;switch(s[ft]=o,s[lt]=y,m){case"dialog":Rn("cancel",s),Rn("close",s);break;case"iframe":case"object":case"embed":Rn("load",s);break;case"video":case"audio":for(m=0;m<Vu.length;m++)Rn(Vu[m],s);break;case"source":Rn("error",s);break;case"img":case"image":case"link":Rn("error",s),Rn("load",s);break;case"details":Rn("toggle",s);break;case"input":Rn("invalid",s),_t(s,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0);break;case"select":Rn("invalid",s);break;case"textarea":Rn("invalid",s),wr(s,y.value,y.defaultValue,y.children)}m=y.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||s.textContent===""+m||y.suppressHydrationWarning===!0||H2(s.textContent,m)?(y.popover!=null&&(Rn("beforetoggle",s),Rn("toggle",s)),y.onScroll!=null&&Rn("scroll",s),y.onScrollEnd!=null&&Rn("scrollend",s),y.onClick!=null&&(s.onclick=Kn),s=!0):s=!1,s||Mi(o,!0)}function ES(o){for(ca=o.return;ca;)switch(ca.tag){case 5:case 31:case 13:to=!1;return;case 27:case 3:to=!0;return;default:ca=ca.return}}function ks(o){if(o!==ca)return!1;if(!Dn)return ES(o),Dn=!0,!1;var s=o.tag,m;if((m=s!==3&&s!==27)&&((m=s===5)&&(m=o.type,m=!(m!=="form"&&m!=="button")||Lh(o.type,o.memoizedProps)),m=!m),m&&gr&&Mi(o),ES(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));gr=Y2(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));gr=Y2(o)}else s===27?(s=gr,Ki(o.type)?(o=Kh,Kh=null,gr=o):gr=s):gr=ca?ro(o.stateNode.nextSibling):null;return!0}function Pl(){gr=ca=null,Dn=!1}function $p(){var o=Ni;return o!==null&&(Ia===null?Ia=o:Ia.push.apply(Ia,o),Ni=null),o}function Su(o){Ni===null?Ni=[o]:Ni.push(o)}var wp=V(null),zl=null,ri=null;function Ti(o,s,m){K(wp,s._currentValue),s._currentValue=m}function ai(o){o._currentValue=wp.current,G(wp)}function Ep(o,s,m){for(;o!==null;){var y=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,y!==null&&(y.childLanes|=s)):y!==null&&(y.childLanes&s)!==s&&(y.childLanes|=s),o===m)break;o=o.return}}function Op(o,s,m,y){var T=o.child;for(T!==null&&(T.return=o);T!==null;){var A=T.dependencies;if(A!==null){var ee=T.child;A=A.firstContext;e:for(;A!==null;){var me=A;A=T;for(var xe=0;xe<s.length;xe++)if(me.context===s[xe]){A.lanes|=m,me=A.alternate,me!==null&&(me.lanes|=m),Ep(A.return,m,o),y||(ee=null);break e}A=me.next}}else if(T.tag===18){if(ee=T.return,ee===null)throw Error(r(341));ee.lanes|=m,A=ee.alternate,A!==null&&(A.lanes|=m),Ep(ee,m,o),ee=null}else ee=T.child;if(ee!==null)ee.return=T;else for(ee=T;ee!==null;){if(ee===o){ee=null;break}if(T=ee.sibling,T!==null){T.return=ee.return,ee=T;break}ee=ee.return}T=ee}}function Ls(o,s,m,y){o=null;for(var T=s,A=!1;T!==null;){if(!A){if((T.flags&524288)!==0)A=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var ee=T.alternate;if(ee===null)throw Error(r(387));if(ee=ee.memoizedProps,ee!==null){var me=T.type;_a(T.pendingProps.value,ee.value)||(o!==null?o.push(me):o=[me])}}else if(T===te.current){if(ee=T.alternate,ee===null)throw Error(r(387));ee.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(o!==null?o.push(Gu):o=[Gu])}T=T.return}o!==null&&Op(s,o,m,y),s.flags|=262144}function zf(o){for(o=o.firstContext;o!==null;){if(!_a(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Dl(o){zl=o,ri=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function ua(o){return OS(zl,o)}function Df(o,s){return zl===null&&Dl(o),OS(o,s)}function OS(o,s){var m=s._currentValue;if(s={context:s,memoizedValue:m,next:null},ri===null){if(o===null)throw Error(r(308));ri=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ri=ri.next=s;return m}var FM=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(m,y){o.push(y)}};this.abort=function(){s.aborted=!0,o.forEach(function(m){return m()})}},VM=e.unstable_scheduleCallback,WM=e.unstable_NormalPriority,Br={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rp(){return{controller:new FM,data:new Map,refCount:0}}function xu(o){o.refCount--,o.refCount===0&&VM(WM,function(){o.controller.abort()})}var $u=null,jp=0,Hs=0,Fs=null;function KM(o,s){if($u===null){var m=$u=[];jp=0,Hs=Mh(),Fs={status:"pending",value:void 0,then:function(y){m.push(y)}}}return jp++,s.then(RS,RS),s}function RS(){if(--jp===0&&$u!==null){Fs!==null&&(Fs.status="fulfilled");var o=$u;$u=null,Hs=0,Fs=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function UM(o,s){var m=[],y={status:"pending",value:null,reason:null,then:function(T){m.push(T)}};return o.then(function(){y.status="fulfilled",y.value=s;for(var T=0;T<m.length;T++)(0,m[T])(s)},function(T){for(y.status="rejected",y.reason=T,T=0;T<m.length;T++)(0,m[T])(void 0)}),y}var jS=z.S;z.S=function(o,s){d2=Ce(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&KM(o,s),jS!==null&&jS(o,s)};var _l=V(null);function Ip(){var o=_l.current;return o!==null?o:cr.pooledCache}function _f(o,s){s===null?K(_l,_l.current):K(_l,s.pool)}function IS(){var o=Ip();return o===null?null:{parent:Br._currentValue,pool:o}}var Vs=Error(r(460)),Np=Error(r(474)),Af=Error(r(542)),Bf={then:function(){}};function NS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function MS(o,s,m){switch(m=o[m],m===void 0?o.push(s):m!==s&&(s.then(Kn,Kn),s=m),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,PS(o),o;default:if(typeof s.status=="string")s.then(Kn,Kn);else{if(o=cr,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(y){if(s.status==="pending"){var T=s;T.status="fulfilled",T.value=y}},function(y){if(s.status==="pending"){var T=s;T.status="rejected",T.reason=y}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,PS(o),o}throw Bl=s,Vs}}function Al(o){try{var s=o._init;return s(o._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Bl=m,Vs):m}}var Bl=null;function TS(){if(Bl===null)throw Error(r(459));var o=Bl;return Bl=null,o}function PS(o){if(o===Vs||o===Af)throw Error(r(483))}var Ws=null,wu=0;function kf(o){var s=wu;return wu+=1,Ws===null&&(Ws=[]),MS(Ws,o,s)}function Eu(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function Lf(o,s){throw s.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function zS(o){function s(ze,Ie){if(o){var Be=ze.deletions;Be===null?(ze.deletions=[Ie],ze.flags|=16):Be.push(Ie)}}function m(ze,Ie){if(!o)return null;for(;Ie!==null;)s(ze,Ie),Ie=Ie.sibling;return null}function y(ze){for(var Ie=new Map;ze!==null;)ze.key!==null?Ie.set(ze.key,ze):Ie.set(ze.index,ze),ze=ze.sibling;return Ie}function T(ze,Ie){return ze=ti(ze,Ie),ze.index=0,ze.sibling=null,ze}function A(ze,Ie,Be){return ze.index=Be,o?(Be=ze.alternate,Be!==null?(Be=Be.index,Be<Ie?(ze.flags|=67108866,Ie):Be):(ze.flags|=67108866,Ie)):(ze.flags|=1048576,Ie)}function ee(ze){return o&&ze.alternate===null&&(ze.flags|=67108866),ze}function me(ze,Ie,Be,rt){return Ie===null||Ie.tag!==6?(Ie=bp(Be,ze.mode,rt),Ie.return=ze,Ie):(Ie=T(Ie,Be),Ie.return=ze,Ie)}function xe(ze,Ie,Be,rt){var en=Be.type;return en===x?Je(ze,Ie,Be.props.children,rt,Be.key):Ie!==null&&(Ie.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===M&&Al(en)===Ie.type)?(Ie=T(Ie,Be.props),Eu(Ie,Be),Ie.return=ze,Ie):(Ie=Tf(Be.type,Be.key,Be.props,null,ze.mode,rt),Eu(Ie,Be),Ie.return=ze,Ie)}function ke(ze,Ie,Be,rt){return Ie===null||Ie.tag!==4||Ie.stateNode.containerInfo!==Be.containerInfo||Ie.stateNode.implementation!==Be.implementation?(Ie=yp(Be,ze.mode,rt),Ie.return=ze,Ie):(Ie=T(Ie,Be.children||[]),Ie.return=ze,Ie)}function Je(ze,Ie,Be,rt,en){return Ie===null||Ie.tag!==7?(Ie=Tl(Be,ze.mode,rt,en),Ie.return=ze,Ie):(Ie=T(Ie,Be),Ie.return=ze,Ie)}function it(ze,Ie,Be){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return Ie=bp(""+Ie,ze.mode,Be),Ie.return=ze,Ie;if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case b:return Be=Tf(Ie.type,Ie.key,Ie.props,null,ze.mode,Be),Eu(Be,Ie),Be.return=ze,Be;case C:return Ie=yp(Ie,ze.mode,Be),Ie.return=ze,Ie;case M:return Ie=Al(Ie),it(ze,Ie,Be)}if(H(Ie)||L(Ie))return Ie=Tl(Ie,ze.mode,Be,null),Ie.return=ze,Ie;if(typeof Ie.then=="function")return it(ze,kf(Ie),Be);if(Ie.$$typeof===E)return it(ze,Df(ze,Ie),Be);Lf(ze,Ie)}return null}function He(ze,Ie,Be,rt){var en=Ie!==null?Ie.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return en!==null?null:me(ze,Ie,""+Be,rt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case b:return Be.key===en?xe(ze,Ie,Be,rt):null;case C:return Be.key===en?ke(ze,Ie,Be,rt):null;case M:return Be=Al(Be),He(ze,Ie,Be,rt)}if(H(Be)||L(Be))return en!==null?null:Je(ze,Ie,Be,rt,null);if(typeof Be.then=="function")return He(ze,Ie,kf(Be),rt);if(Be.$$typeof===E)return He(ze,Ie,Df(ze,Be),rt);Lf(ze,Be)}return null}function qe(ze,Ie,Be,rt,en){if(typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint")return ze=ze.get(Be)||null,me(Ie,ze,""+rt,en);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case b:return ze=ze.get(rt.key===null?Be:rt.key)||null,xe(Ie,ze,rt,en);case C:return ze=ze.get(rt.key===null?Be:rt.key)||null,ke(Ie,ze,rt,en);case M:return rt=Al(rt),qe(ze,Ie,Be,rt,en)}if(H(rt)||L(rt))return ze=ze.get(Be)||null,Je(Ie,ze,rt,en,null);if(typeof rt.then=="function")return qe(ze,Ie,Be,kf(rt),en);if(rt.$$typeof===E)return qe(ze,Ie,Be,Df(Ie,rt),en);Lf(Ie,rt)}return null}function Wt(ze,Ie,Be,rt){for(var en=null,Hn=null,Gt=Ie,xn=Ie=0,Mn=null;Gt!==null&&xn<Be.length;xn++){Gt.index>xn?(Mn=Gt,Gt=null):Mn=Gt.sibling;var Fn=He(ze,Gt,Be[xn],rt);if(Fn===null){Gt===null&&(Gt=Mn);break}o&&Gt&&Fn.alternate===null&&s(ze,Gt),Ie=A(Fn,Ie,xn),Hn===null?en=Fn:Hn.sibling=Fn,Hn=Fn,Gt=Mn}if(xn===Be.length)return m(ze,Gt),Dn&&ni(ze,xn),en;if(Gt===null){for(;xn<Be.length;xn++)Gt=it(ze,Be[xn],rt),Gt!==null&&(Ie=A(Gt,Ie,xn),Hn===null?en=Gt:Hn.sibling=Gt,Hn=Gt);return Dn&&ni(ze,xn),en}for(Gt=y(Gt);xn<Be.length;xn++)Mn=qe(Gt,ze,xn,Be[xn],rt),Mn!==null&&(o&&Mn.alternate!==null&&Gt.delete(Mn.key===null?xn:Mn.key),Ie=A(Mn,Ie,xn),Hn===null?en=Mn:Hn.sibling=Mn,Hn=Mn);return o&&Gt.forEach(function(Yi){return s(ze,Yi)}),Dn&&ni(ze,xn),en}function ln(ze,Ie,Be,rt){if(Be==null)throw Error(r(151));for(var en=null,Hn=null,Gt=Ie,xn=Ie=0,Mn=null,Fn=Be.next();Gt!==null&&!Fn.done;xn++,Fn=Be.next()){Gt.index>xn?(Mn=Gt,Gt=null):Mn=Gt.sibling;var Yi=He(ze,Gt,Fn.value,rt);if(Yi===null){Gt===null&&(Gt=Mn);break}o&&Gt&&Yi.alternate===null&&s(ze,Gt),Ie=A(Yi,Ie,xn),Hn===null?en=Yi:Hn.sibling=Yi,Hn=Yi,Gt=Mn}if(Fn.done)return m(ze,Gt),Dn&&ni(ze,xn),en;if(Gt===null){for(;!Fn.done;xn++,Fn=Be.next())Fn=it(ze,Fn.value,rt),Fn!==null&&(Ie=A(Fn,Ie,xn),Hn===null?en=Fn:Hn.sibling=Fn,Hn=Fn);return Dn&&ni(ze,xn),en}for(Gt=y(Gt);!Fn.done;xn++,Fn=Be.next())Fn=qe(Gt,ze,xn,Fn.value,rt),Fn!==null&&(o&&Fn.alternate!==null&&Gt.delete(Fn.key===null?xn:Fn.key),Ie=A(Fn,Ie,xn),Hn===null?en=Fn:Hn.sibling=Fn,Hn=Fn);return o&&Gt.forEach(function(rP){return s(ze,rP)}),Dn&&ni(ze,xn),en}function ar(ze,Ie,Be,rt){if(typeof Be=="object"&&Be!==null&&Be.type===x&&Be.key===null&&(Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case b:e:{for(var en=Be.key;Ie!==null;){if(Ie.key===en){if(en=Be.type,en===x){if(Ie.tag===7){m(ze,Ie.sibling),rt=T(Ie,Be.props.children),rt.return=ze,ze=rt;break e}}else if(Ie.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===M&&Al(en)===Ie.type){m(ze,Ie.sibling),rt=T(Ie,Be.props),Eu(rt,Be),rt.return=ze,ze=rt;break e}m(ze,Ie);break}else s(ze,Ie);Ie=Ie.sibling}Be.type===x?(rt=Tl(Be.props.children,ze.mode,rt,Be.key),rt.return=ze,ze=rt):(rt=Tf(Be.type,Be.key,Be.props,null,ze.mode,rt),Eu(rt,Be),rt.return=ze,ze=rt)}return ee(ze);case C:e:{for(en=Be.key;Ie!==null;){if(Ie.key===en)if(Ie.tag===4&&Ie.stateNode.containerInfo===Be.containerInfo&&Ie.stateNode.implementation===Be.implementation){m(ze,Ie.sibling),rt=T(Ie,Be.children||[]),rt.return=ze,ze=rt;break e}else{m(ze,Ie);break}else s(ze,Ie);Ie=Ie.sibling}rt=yp(Be,ze.mode,rt),rt.return=ze,ze=rt}return ee(ze);case M:return Be=Al(Be),ar(ze,Ie,Be,rt)}if(H(Be))return Wt(ze,Ie,Be,rt);if(L(Be)){if(en=L(Be),typeof en!="function")throw Error(r(150));return Be=en.call(Be),ln(ze,Ie,Be,rt)}if(typeof Be.then=="function")return ar(ze,Ie,kf(Be),rt);if(Be.$$typeof===E)return ar(ze,Ie,Df(ze,Be),rt);Lf(ze,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(Be=""+Be,Ie!==null&&Ie.tag===6?(m(ze,Ie.sibling),rt=T(Ie,Be),rt.return=ze,ze=rt):(m(ze,Ie),rt=bp(Be,ze.mode,rt),rt.return=ze,ze=rt),ee(ze)):m(ze,Ie)}return function(ze,Ie,Be,rt){try{wu=0;var en=ar(ze,Ie,Be,rt);return Ws=null,en}catch(Gt){if(Gt===Vs||Gt===Af)throw Gt;var Hn=Aa(29,Gt,null,ze.mode);return Hn.lanes=rt,Hn.return=ze,Hn}finally{}}}var kl=zS(!0),DS=zS(!1),Pi=!1;function Mp(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tp(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function zi(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Di(o,s,m){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,(Un&2)!==0){var T=y.pending;return T===null?s.next=s:(s.next=T.next,T.next=s),y.pending=s,s=Mf(o),bS(o,null,m),s}return Nf(o,y,s,m),Mf(o)}function Ou(o,s,m){if(s=s.updateQueue,s!==null&&(s=s.shared,(m&4194048)!==0)){var y=s.lanes;y&=o.pendingLanes,m|=y,s.lanes=m,et(o,m)}}function Pp(o,s){var m=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,m===y)){var T=null,A=null;if(m=m.firstBaseUpdate,m!==null){do{var ee={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};A===null?T=A=ee:A=A.next=ee,m=m.next}while(m!==null);A===null?T=A=s:A=A.next=s}else T=A=s;m={baseState:y.baseState,firstBaseUpdate:T,lastBaseUpdate:A,shared:y.shared,callbacks:y.callbacks},o.updateQueue=m;return}o=m.lastBaseUpdate,o===null?m.firstBaseUpdate=s:o.next=s,m.lastBaseUpdate=s}var zp=!1;function Ru(){if(zp){var o=Fs;if(o!==null)throw o}}function ju(o,s,m,y){zp=!1;var T=o.updateQueue;Pi=!1;var A=T.firstBaseUpdate,ee=T.lastBaseUpdate,me=T.shared.pending;if(me!==null){T.shared.pending=null;var xe=me,ke=xe.next;xe.next=null,ee===null?A=ke:ee.next=ke,ee=xe;var Je=o.alternate;Je!==null&&(Je=Je.updateQueue,me=Je.lastBaseUpdate,me!==ee&&(me===null?Je.firstBaseUpdate=ke:me.next=ke,Je.lastBaseUpdate=xe))}if(A!==null){var it=T.baseState;ee=0,Je=ke=xe=null,me=A;do{var He=me.lane&-536870913,qe=He!==me.lane;if(qe?(Nn&He)===He:(y&He)===He){He!==0&&He===Hs&&(zp=!0),Je!==null&&(Je=Je.next={lane:0,tag:me.tag,payload:me.payload,callback:null,next:null});e:{var Wt=o,ln=me;He=s;var ar=m;switch(ln.tag){case 1:if(Wt=ln.payload,typeof Wt=="function"){it=Wt.call(ar,it,He);break e}it=Wt;break e;case 3:Wt.flags=Wt.flags&-65537|128;case 0:if(Wt=ln.payload,He=typeof Wt=="function"?Wt.call(ar,it,He):Wt,He==null)break e;it=g({},it,He);break e;case 2:Pi=!0}}He=me.callback,He!==null&&(o.flags|=64,qe&&(o.flags|=8192),qe=T.callbacks,qe===null?T.callbacks=[He]:qe.push(He))}else qe={lane:He,tag:me.tag,payload:me.payload,callback:me.callback,next:null},Je===null?(ke=Je=qe,xe=it):Je=Je.next=qe,ee|=He;if(me=me.next,me===null){if(me=T.shared.pending,me===null)break;qe=me,me=qe.next,qe.next=null,T.lastBaseUpdate=qe,T.shared.pending=null}}while(!0);Je===null&&(xe=it),T.baseState=xe,T.firstBaseUpdate=ke,T.lastBaseUpdate=Je,A===null&&(T.shared.lanes=0),Li|=ee,o.lanes=ee,o.memoizedState=it}}function _S(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function AS(o,s){var m=o.callbacks;if(m!==null)for(o.callbacks=null,o=0;o<m.length;o++)_S(m[o],s)}var Ks=V(null),Hf=V(0);function BS(o,s){o=mi,K(Hf,o),K(Ks,s),mi=o|s.baseLanes}function Dp(){K(Hf,mi),K(Ks,Ks.current)}function _p(){mi=Hf.current,G(Ks),G(Hf)}var Ba=V(null),no=null;function _i(o){var s=o.alternate;K(Dr,Dr.current&1),K(Ba,o),no===null&&(s===null||Ks.current!==null||s.memoizedState!==null)&&(no=o)}function Ap(o){K(Dr,Dr.current),K(Ba,o),no===null&&(no=o)}function kS(o){o.tag===22?(K(Dr,Dr.current),K(Ba,o),no===null&&(no=o)):Ai()}function Ai(){K(Dr,Dr.current),K(Ba,Ba.current)}function ka(o){G(Ba),no===o&&(no=null),G(Dr)}var Dr=V(0);function Ff(o){for(var s=o;s!==null;){if(s.tag===13){var m=s.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Vh(m)||Wh(m)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var oi=0,Cn=null,nr=null,kr=null,Vf=!1,Us=!1,Ll=!1,Wf=0,Iu=0,qs=null,qM=0;function jr(){throw Error(r(321))}function Bp(o,s){if(s===null)return!1;for(var m=0;m<s.length&&m<o.length;m++)if(!_a(o[m],s[m]))return!1;return!0}function kp(o,s,m,y,T,A){return oi=A,Cn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,z.H=o===null||o.memoizedState===null?xx:eh,Ll=!1,A=m(y,T),Ll=!1,Us&&(A=HS(s,m,y,T)),LS(o),A}function LS(o){z.H=Tu;var s=nr!==null&&nr.next!==null;if(oi=0,kr=nr=Cn=null,Vf=!1,Iu=0,qs=null,s)throw Error(r(300));o===null||Lr||(o=o.dependencies,o!==null&&zf(o)&&(Lr=!0))}function HS(o,s,m,y){Cn=o;var T=0;do{if(Us&&(qs=null),Iu=0,Us=!1,25<=T)throw Error(r(301));if(T+=1,kr=nr=null,o.updateQueue!=null){var A=o.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}z.H=$x,A=s(m,y)}while(Us);return A}function GM(){var o=z.H,s=o.useState()[0];return s=typeof s.then=="function"?Nu(s):s,o=o.useState()[0],(nr!==null?nr.memoizedState:null)!==o&&(Cn.flags|=1024),s}function Lp(){var o=Wf!==0;return Wf=0,o}function Hp(o,s,m){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~m}function Fp(o){if(Vf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Vf=!1}oi=0,kr=nr=Cn=null,Us=!1,Iu=Wf=0,qs=null}function xa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kr===null?Cn.memoizedState=kr=o:kr=kr.next=o,kr}function _r(){if(nr===null){var o=Cn.alternate;o=o!==null?o.memoizedState:null}else o=nr.next;var s=kr===null?Cn.memoizedState:kr.next;if(s!==null)kr=s,nr=o;else{if(o===null)throw Cn.alternate===null?Error(r(467)):Error(r(310));nr=o,o={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},kr===null?Cn.memoizedState=kr=o:kr=kr.next=o}return kr}function Kf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nu(o){var s=Iu;return Iu+=1,qs===null&&(qs=[]),o=MS(qs,o,s),s=Cn,(kr===null?s.memoizedState:kr.next)===null&&(s=s.alternate,z.H=s===null||s.memoizedState===null?xx:eh),o}function Uf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Nu(o);if(o.$$typeof===E)return ua(o)}throw Error(r(438,String(o)))}function Vp(o){var s=null,m=Cn.updateQueue;if(m!==null&&(s=m.memoCache),s==null){var y=Cn.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(s={data:y.data.map(function(T){return T.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),m===null&&(m=Kf(),Cn.updateQueue=m),m.memoCache=s,m=s.data[s.index],m===void 0)for(m=s.data[s.index]=Array(o),y=0;y<o;y++)m[y]=P;return s.index++,m}function ii(o,s){return typeof s=="function"?s(o):s}function qf(o){var s=_r();return Wp(s,nr,o)}function Wp(o,s,m){var y=o.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=m;var T=o.baseQueue,A=y.pending;if(A!==null){if(T!==null){var ee=T.next;T.next=A.next,A.next=ee}s.baseQueue=T=A,y.pending=null}if(A=o.baseState,T===null)o.memoizedState=A;else{s=T.next;var me=ee=null,xe=null,ke=s,Je=!1;do{var it=ke.lane&-536870913;if(it!==ke.lane?(Nn&it)===it:(oi&it)===it){var He=ke.revertLane;if(He===0)xe!==null&&(xe=xe.next={lane:0,revertLane:0,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),it===Hs&&(Je=!0);else if((oi&He)===He){ke=ke.next,He===Hs&&(Je=!0);continue}else it={lane:0,revertLane:ke.revertLane,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},xe===null?(me=xe=it,ee=A):xe=xe.next=it,Cn.lanes|=He,Li|=He;it=ke.action,Ll&&m(A,it),A=ke.hasEagerState?ke.eagerState:m(A,it)}else He={lane:it,revertLane:ke.revertLane,gesture:ke.gesture,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},xe===null?(me=xe=He,ee=A):xe=xe.next=He,Cn.lanes|=it,Li|=it;ke=ke.next}while(ke!==null&&ke!==s);if(xe===null?ee=A:xe.next=me,!_a(A,o.memoizedState)&&(Lr=!0,Je&&(m=Fs,m!==null)))throw m;o.memoizedState=A,o.baseState=ee,o.baseQueue=xe,y.lastRenderedState=A}return T===null&&(y.lanes=0),[o.memoizedState,y.dispatch]}function Kp(o){var s=_r(),m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=o;var y=m.dispatch,T=m.pending,A=s.memoizedState;if(T!==null){m.pending=null;var ee=T=T.next;do A=o(A,ee.action),ee=ee.next;while(ee!==T);_a(A,s.memoizedState)||(Lr=!0),s.memoizedState=A,s.baseQueue===null&&(s.baseState=A),m.lastRenderedState=A}return[A,y]}function FS(o,s,m){var y=Cn,T=_r(),A=Dn;if(A){if(m===void 0)throw Error(r(407));m=m()}else m=s();var ee=!_a((nr||T).memoizedState,m);if(ee&&(T.memoizedState=m,Lr=!0),T=T.queue,Gp(KS.bind(null,y,T,o),[o]),T.getSnapshot!==s||ee||kr!==null&&kr.memoizedState.tag&1){if(y.flags|=2048,Gs(9,{destroy:void 0},WS.bind(null,y,T,m,s),null),cr===null)throw Error(r(349));A||(oi&127)!==0||VS(y,s,m)}return m}function VS(o,s,m){o.flags|=16384,o={getSnapshot:s,value:m},s=Cn.updateQueue,s===null?(s=Kf(),Cn.updateQueue=s,s.stores=[o]):(m=s.stores,m===null?s.stores=[o]:m.push(o))}function WS(o,s,m,y){s.value=m,s.getSnapshot=y,US(s)&&qS(o)}function KS(o,s,m){return m(function(){US(s)&&qS(o)})}function US(o){var s=o.getSnapshot;o=o.value;try{var m=s();return!_a(o,m)}catch{return!0}}function qS(o){var s=Ml(o,2);s!==null&&Na(s,o,2)}function Up(o){var s=xa();if(typeof o=="function"){var m=o;if(o=m(),Ll){Pe(!0);try{m()}finally{Pe(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:o},s}function GS(o,s,m,y){return o.baseState=m,Wp(o,nr,typeof y=="function"?y:ii)}function XM(o,s,m,y,T){if(Yf(o))throw Error(r(485));if(o=s.action,o!==null){var A={payload:T,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(ee){A.listeners.push(ee)}};z.T!==null?m(!0):A.isTransition=!1,y(A),m=s.pending,m===null?(A.next=s.pending=A,XS(s,A)):(A.next=m.next,s.pending=m.next=A)}}function XS(o,s){var m=s.action,y=s.payload,T=o.state;if(s.isTransition){var A=z.T,ee={};z.T=ee;try{var me=m(T,y),xe=z.S;xe!==null&&xe(ee,me),YS(o,s,me)}catch(ke){qp(o,s,ke)}finally{A!==null&&ee.types!==null&&(A.types=ee.types),z.T=A}}else try{A=m(T,y),YS(o,s,A)}catch(ke){qp(o,s,ke)}}function YS(o,s,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(y){QS(o,s,y)},function(y){return qp(o,s,y)}):QS(o,s,m)}function QS(o,s,m){s.status="fulfilled",s.value=m,ZS(s),o.state=m,s=o.pending,s!==null&&(m=s.next,m===s?o.pending=null:(m=m.next,s.next=m,XS(o,m)))}function qp(o,s,m){var y=o.pending;if(o.pending=null,y!==null){y=y.next;do s.status="rejected",s.reason=m,ZS(s),s=s.next;while(s!==y)}o.action=null}function ZS(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function JS(o,s){return s}function ex(o,s){if(Dn){var m=cr.formState;if(m!==null){e:{var y=Cn;if(Dn){if(gr){t:{for(var T=gr,A=to;T.nodeType!==8;){if(!A){T=null;break t}if(T=ro(T.nextSibling),T===null){T=null;break t}}A=T.data,T=A==="F!"||A==="F"?T:null}if(T){gr=ro(T.nextSibling),y=T.data==="F!";break e}}Mi(y)}y=!1}y&&(s=m[0])}}return m=xa(),m.memoizedState=m.baseState=s,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:JS,lastRenderedState:s},m.queue=y,m=yx.bind(null,Cn,y),y.dispatch=m,y=Up(!1),A=Jp.bind(null,Cn,!1,y.queue),y=xa(),T={state:s,dispatch:null,action:o,pending:null},y.queue=T,m=XM.bind(null,Cn,T,A,m),T.dispatch=m,y.memoizedState=o,[s,m,!1]}function tx(o){var s=_r();return nx(s,nr,o)}function nx(o,s,m){if(s=Wp(o,s,JS)[0],o=qf(ii)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var y=Nu(s)}catch(ee){throw ee===Vs?Af:ee}else y=s;s=_r();var T=s.queue,A=T.dispatch;return m!==s.memoizedState&&(Cn.flags|=2048,Gs(9,{destroy:void 0},YM.bind(null,T,m),null)),[y,A,o]}function YM(o,s){o.action=s}function rx(o){var s=_r(),m=nr;if(m!==null)return nx(s,m,o);_r(),s=s.memoizedState,m=_r();var y=m.queue.dispatch;return m.memoizedState=o,[s,y,!1]}function Gs(o,s,m,y){return o={tag:o,create:m,deps:y,inst:s,next:null},s=Cn.updateQueue,s===null&&(s=Kf(),Cn.updateQueue=s),m=s.lastEffect,m===null?s.lastEffect=o.next=o:(y=m.next,m.next=o,o.next=y,s.lastEffect=o),o}function ax(){return _r().memoizedState}function Gf(o,s,m,y){var T=xa();Cn.flags|=o,T.memoizedState=Gs(1|s,{destroy:void 0},m,y===void 0?null:y)}function Xf(o,s,m,y){var T=_r();y=y===void 0?null:y;var A=T.memoizedState.inst;nr!==null&&y!==null&&Bp(y,nr.memoizedState.deps)?T.memoizedState=Gs(s,A,m,y):(Cn.flags|=o,T.memoizedState=Gs(1|s,A,m,y))}function ox(o,s){Gf(8390656,8,o,s)}function Gp(o,s){Xf(2048,8,o,s)}function QM(o){Cn.flags|=4;var s=Cn.updateQueue;if(s===null)s=Kf(),Cn.updateQueue=s,s.events=[o];else{var m=s.events;m===null?s.events=[o]:m.push(o)}}function ix(o){var s=_r().memoizedState;return QM({ref:s,nextImpl:o}),function(){if((Un&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function lx(o,s){return Xf(4,2,o,s)}function sx(o,s){return Xf(4,4,o,s)}function cx(o,s){if(typeof s=="function"){o=o();var m=s(o);return function(){typeof m=="function"?m():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function ux(o,s,m){m=m!=null?m.concat([o]):null,Xf(4,4,cx.bind(null,s,o),m)}function Xp(){}function dx(o,s){var m=_r();s=s===void 0?null:s;var y=m.memoizedState;return s!==null&&Bp(s,y[1])?y[0]:(m.memoizedState=[o,s],o)}function fx(o,s){var m=_r();s=s===void 0?null:s;var y=m.memoizedState;if(s!==null&&Bp(s,y[1]))return y[0];if(y=o(),Ll){Pe(!0);try{o()}finally{Pe(!1)}}return m.memoizedState=[y,s],y}function Yp(o,s,m){return m===void 0||(oi&1073741824)!==0&&(Nn&261930)===0?o.memoizedState=s:(o.memoizedState=m,o=m2(),Cn.lanes|=o,Li|=o,m)}function mx(o,s,m,y){return _a(m,s)?m:Ks.current!==null?(o=Yp(o,m,y),_a(o,s)||(Lr=!0),o):(oi&42)===0||(oi&1073741824)!==0&&(Nn&261930)===0?(Lr=!0,o.memoizedState=m):(o=m2(),Cn.lanes|=o,Li|=o,s)}function vx(o,s,m,y,T){var A=_.p;_.p=A!==0&&8>A?A:8;var ee=z.T,me={};z.T=me,Jp(o,!1,s,m);try{var xe=T(),ke=z.S;if(ke!==null&&ke(me,xe),xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var Je=UM(xe,y);Mu(o,s,Je,Fa(o))}else Mu(o,s,y,Fa(o))}catch(it){Mu(o,s,{then:function(){},status:"rejected",reason:it},Fa())}finally{_.p=A,ee!==null&&me.types!==null&&(ee.types=me.types),z.T=ee}}function ZM(){}function Qp(o,s,m,y){if(o.tag!==5)throw Error(r(476));var T=gx(o).queue;vx(o,T,s,F,m===null?ZM:function(){return px(o),m(y)})}function gx(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:F},next:null};var m={};return s.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:m},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function px(o){var s=gx(o);s.next===null&&(s=o.alternate.memoizedState),Mu(o,s.next.queue,{},Fa())}function Zp(){return ua(Gu)}function hx(){return _r().memoizedState}function bx(){return _r().memoizedState}function JM(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var m=Fa();o=zi(m);var y=Di(s,o,m);y!==null&&(Na(y,s,m),Ou(y,s,m)),s={cache:Rp()},o.payload=s;return}s=s.return}}function eT(o,s,m){var y=Fa();m={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Yf(o)?Cx(s,m):(m=pp(o,s,m,y),m!==null&&(Na(m,o,y),Sx(m,s,y)))}function yx(o,s,m){var y=Fa();Mu(o,s,m,y)}function Mu(o,s,m,y){var T={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Yf(o))Cx(s,T);else{var A=o.alternate;if(o.lanes===0&&(A===null||A.lanes===0)&&(A=s.lastRenderedReducer,A!==null))try{var ee=s.lastRenderedState,me=A(ee,m);if(T.hasEagerState=!0,T.eagerState=me,_a(me,ee))return Nf(o,s,T,0),cr===null&&If(),!1}catch{}finally{}if(m=pp(o,s,T,y),m!==null)return Na(m,o,y),Sx(m,s,y),!0}return!1}function Jp(o,s,m,y){if(y={lane:2,revertLane:Mh(),gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},Yf(o)){if(s)throw Error(r(479))}else s=pp(o,m,y,2),s!==null&&Na(s,o,2)}function Yf(o){var s=o.alternate;return o===Cn||s!==null&&s===Cn}function Cx(o,s){Us=Vf=!0;var m=o.pending;m===null?s.next=s:(s.next=m.next,m.next=s),o.pending=s}function Sx(o,s,m){if((m&4194048)!==0){var y=s.lanes;y&=o.pendingLanes,m|=y,s.lanes=m,et(o,m)}}var Tu={readContext:ua,use:Uf,useCallback:jr,useContext:jr,useEffect:jr,useImperativeHandle:jr,useLayoutEffect:jr,useInsertionEffect:jr,useMemo:jr,useReducer:jr,useRef:jr,useState:jr,useDebugValue:jr,useDeferredValue:jr,useTransition:jr,useSyncExternalStore:jr,useId:jr,useHostTransitionStatus:jr,useFormState:jr,useActionState:jr,useOptimistic:jr,useMemoCache:jr,useCacheRefresh:jr};Tu.useEffectEvent=jr;var xx={readContext:ua,use:Uf,useCallback:function(o,s){return xa().memoizedState=[o,s===void 0?null:s],o},useContext:ua,useEffect:ox,useImperativeHandle:function(o,s,m){m=m!=null?m.concat([o]):null,Gf(4194308,4,cx.bind(null,s,o),m)},useLayoutEffect:function(o,s){return Gf(4194308,4,o,s)},useInsertionEffect:function(o,s){Gf(4,2,o,s)},useMemo:function(o,s){var m=xa();s=s===void 0?null:s;var y=o();if(Ll){Pe(!0);try{o()}finally{Pe(!1)}}return m.memoizedState=[y,s],y},useReducer:function(o,s,m){var y=xa();if(m!==void 0){var T=m(s);if(Ll){Pe(!0);try{m(s)}finally{Pe(!1)}}}else T=s;return y.memoizedState=y.baseState=T,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:T},y.queue=o,o=o.dispatch=eT.bind(null,Cn,o),[y.memoizedState,o]},useRef:function(o){var s=xa();return o={current:o},s.memoizedState=o},useState:function(o){o=Up(o);var s=o.queue,m=yx.bind(null,Cn,s);return s.dispatch=m,[o.memoizedState,m]},useDebugValue:Xp,useDeferredValue:function(o,s){var m=xa();return Yp(m,o,s)},useTransition:function(){var o=Up(!1);return o=vx.bind(null,Cn,o.queue,!0,!1),xa().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,m){var y=Cn,T=xa();if(Dn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=s(),cr===null)throw Error(r(349));(Nn&127)!==0||VS(y,s,m)}T.memoizedState=m;var A={value:m,getSnapshot:s};return T.queue=A,ox(KS.bind(null,y,A,o),[o]),y.flags|=2048,Gs(9,{destroy:void 0},WS.bind(null,y,A,m,s),null),m},useId:function(){var o=xa(),s=cr.identifierPrefix;if(Dn){var m=Lo,y=ko;m=(y&~(1<<32-ye(y)-1)).toString(32)+m,s="_"+s+"R_"+m,m=Wf++,0<m&&(s+="H"+m.toString(32)),s+="_"}else m=qM++,s="_"+s+"r_"+m.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:Zp,useFormState:ex,useActionState:ex,useOptimistic:function(o){var s=xa();s.memoizedState=s.baseState=o;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=m,s=Jp.bind(null,Cn,!0,m),m.dispatch=s,[o,s]},useMemoCache:Vp,useCacheRefresh:function(){return xa().memoizedState=JM.bind(null,Cn)},useEffectEvent:function(o){var s=xa(),m={impl:o};return s.memoizedState=m,function(){if((Un&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},eh={readContext:ua,use:Uf,useCallback:dx,useContext:ua,useEffect:Gp,useImperativeHandle:ux,useInsertionEffect:lx,useLayoutEffect:sx,useMemo:fx,useReducer:qf,useRef:ax,useState:function(){return qf(ii)},useDebugValue:Xp,useDeferredValue:function(o,s){var m=_r();return mx(m,nr.memoizedState,o,s)},useTransition:function(){var o=qf(ii)[0],s=_r().memoizedState;return[typeof o=="boolean"?o:Nu(o),s]},useSyncExternalStore:FS,useId:hx,useHostTransitionStatus:Zp,useFormState:tx,useActionState:tx,useOptimistic:function(o,s){var m=_r();return GS(m,nr,o,s)},useMemoCache:Vp,useCacheRefresh:bx};eh.useEffectEvent=ix;var $x={readContext:ua,use:Uf,useCallback:dx,useContext:ua,useEffect:Gp,useImperativeHandle:ux,useInsertionEffect:lx,useLayoutEffect:sx,useMemo:fx,useReducer:Kp,useRef:ax,useState:function(){return Kp(ii)},useDebugValue:Xp,useDeferredValue:function(o,s){var m=_r();return nr===null?Yp(m,o,s):mx(m,nr.memoizedState,o,s)},useTransition:function(){var o=Kp(ii)[0],s=_r().memoizedState;return[typeof o=="boolean"?o:Nu(o),s]},useSyncExternalStore:FS,useId:hx,useHostTransitionStatus:Zp,useFormState:rx,useActionState:rx,useOptimistic:function(o,s){var m=_r();return nr!==null?GS(m,nr,o,s):(m.baseState=o,[o,m.queue.dispatch])},useMemoCache:Vp,useCacheRefresh:bx};$x.useEffectEvent=ix;function th(o,s,m,y){s=o.memoizedState,m=m(y,s),m=m==null?s:g({},s,m),o.memoizedState=m,o.lanes===0&&(o.updateQueue.baseState=m)}var nh={enqueueSetState:function(o,s,m){o=o._reactInternals;var y=Fa(),T=zi(y);T.payload=s,m!=null&&(T.callback=m),s=Di(o,T,y),s!==null&&(Na(s,o,y),Ou(s,o,y))},enqueueReplaceState:function(o,s,m){o=o._reactInternals;var y=Fa(),T=zi(y);T.tag=1,T.payload=s,m!=null&&(T.callback=m),s=Di(o,T,y),s!==null&&(Na(s,o,y),Ou(s,o,y))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var m=Fa(),y=zi(m);y.tag=2,s!=null&&(y.callback=s),s=Di(o,y,m),s!==null&&(Na(s,o,m),Ou(s,o,m))}};function wx(o,s,m,y,T,A,ee){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,A,ee):s.prototype&&s.prototype.isPureReactComponent?!bu(m,y)||!bu(T,A):!0}function Ex(o,s,m,y){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(m,y),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(m,y),s.state!==o&&nh.enqueueReplaceState(s,s.state,null)}function Hl(o,s){var m=s;if("ref"in s){m={};for(var y in s)y!=="ref"&&(m[y]=s[y])}if(o=o.defaultProps){m===s&&(m=g({},m));for(var T in o)m[T]===void 0&&(m[T]=o[T])}return m}function Ox(o){jf(o)}function Rx(o){console.error(o)}function jx(o){jf(o)}function Qf(o,s){try{var m=o.onUncaughtError;m(s.value,{componentStack:s.stack})}catch(y){setTimeout(function(){throw y})}}function Ix(o,s,m){try{var y=o.onCaughtError;y(m.value,{componentStack:m.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function rh(o,s,m){return m=zi(m),m.tag=3,m.payload={element:null},m.callback=function(){Qf(o,s)},m}function Nx(o){return o=zi(o),o.tag=3,o}function Mx(o,s,m,y){var T=m.type.getDerivedStateFromError;if(typeof T=="function"){var A=y.value;o.payload=function(){return T(A)},o.callback=function(){Ix(s,m,y)}}var ee=m.stateNode;ee!==null&&typeof ee.componentDidCatch=="function"&&(o.callback=function(){Ix(s,m,y),typeof T!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var me=y.stack;this.componentDidCatch(y.value,{componentStack:me!==null?me:""})})}function tT(o,s,m,y,T){if(m.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(s=m.alternate,s!==null&&Ls(s,m,T,!0),m=Ba.current,m!==null){switch(m.tag){case 31:case 13:return no===null?cm():m.alternate===null&&Ir===0&&(Ir=3),m.flags&=-257,m.flags|=65536,m.lanes=T,y===Bf?m.flags|=16384:(s=m.updateQueue,s===null?m.updateQueue=new Set([y]):s.add(y),jh(o,y,T)),!1;case 22:return m.flags|=65536,y===Bf?m.flags|=16384:(s=m.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([y])},m.updateQueue=s):(m=s.retryQueue,m===null?s.retryQueue=new Set([y]):m.add(y)),jh(o,y,T)),!1}throw Error(r(435,m.tag))}return jh(o,y,T),cm(),!1}if(Dn)return s=Ba.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=T,y!==xp&&(o=Error(r(422),{cause:y}),Su(Za(o,m)))):(y!==xp&&(s=Error(r(423),{cause:y}),Su(Za(s,m))),o=o.current.alternate,o.flags|=65536,T&=-T,o.lanes|=T,y=Za(y,m),T=rh(o.stateNode,y,T),Pp(o,T),Ir!==4&&(Ir=2)),!1;var A=Error(r(520),{cause:y});if(A=Za(A,m),Lu===null?Lu=[A]:Lu.push(A),Ir!==4&&(Ir=2),s===null)return!0;y=Za(y,m),m=s;do{switch(m.tag){case 3:return m.flags|=65536,o=T&-T,m.lanes|=o,o=rh(m.stateNode,y,o),Pp(m,o),!1;case 1:if(s=m.type,A=m.stateNode,(m.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Hi===null||!Hi.has(A))))return m.flags|=65536,T&=-T,m.lanes|=T,T=Nx(T),Mx(T,o,m,y),Pp(m,T),!1}m=m.return}while(m!==null);return!1}var ah=Error(r(461)),Lr=!1;function da(o,s,m,y){s.child=o===null?DS(s,null,m,y):kl(s,o.child,m,y)}function Tx(o,s,m,y,T){m=m.render;var A=s.ref;if("ref"in y){var ee={};for(var me in y)me!=="ref"&&(ee[me]=y[me])}else ee=y;return Dl(s),y=kp(o,s,m,ee,A,T),me=Lp(),o!==null&&!Lr?(Hp(o,s,T),li(o,s,T)):(Dn&&me&&Cp(s),s.flags|=1,da(o,s,y,T),s.child)}function Px(o,s,m,y,T){if(o===null){var A=m.type;return typeof A=="function"&&!hp(A)&&A.defaultProps===void 0&&m.compare===null?(s.tag=15,s.type=A,zx(o,s,A,y,T)):(o=Tf(m.type,null,y,s,s.mode,T),o.ref=s.ref,o.return=s,s.child=o)}if(A=o.child,!fh(o,T)){var ee=A.memoizedProps;if(m=m.compare,m=m!==null?m:bu,m(ee,y)&&o.ref===s.ref)return li(o,s,T)}return s.flags|=1,o=ti(A,y),o.ref=s.ref,o.return=s,s.child=o}function zx(o,s,m,y,T){if(o!==null){var A=o.memoizedProps;if(bu(A,y)&&o.ref===s.ref)if(Lr=!1,s.pendingProps=y=A,fh(o,T))(o.flags&131072)!==0&&(Lr=!0);else return s.lanes=o.lanes,li(o,s,T)}return oh(o,s,m,y,T)}function Dx(o,s,m,y){var T=y.children,A=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),y.mode==="hidden"){if((s.flags&128)!==0){if(A=A!==null?A.baseLanes|m:m,o!==null){for(y=s.child=o.child,T=0;y!==null;)T=T|y.lanes|y.childLanes,y=y.sibling;y=T&~A}else y=0,s.child=null;return _x(o,s,A,m,y)}if((m&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&_f(s,A!==null?A.cachePool:null),A!==null?BS(s,A):Dp(),kS(s);else return y=s.lanes=536870912,_x(o,s,A!==null?A.baseLanes|m:m,m,y)}else A!==null?(_f(s,A.cachePool),BS(s,A),Ai(),s.memoizedState=null):(o!==null&&_f(s,null),Dp(),Ai());return da(o,s,T,m),s.child}function Pu(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function _x(o,s,m,y,T){var A=Ip();return A=A===null?null:{parent:Br._currentValue,pool:A},s.memoizedState={baseLanes:m,cachePool:A},o!==null&&_f(s,null),Dp(),kS(s),o!==null&&Ls(o,s,y,!0),s.childLanes=T,null}function Zf(o,s){return s=em({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function Ax(o,s,m){return kl(s,o.child,null,m),o=Zf(s,s.pendingProps),o.flags|=2,ka(s),s.memoizedState=null,o}function nT(o,s,m){var y=s.pendingProps,T=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Dn){if(y.mode==="hidden")return o=Zf(s,y),s.lanes=536870912,Pu(null,o);if(Ap(s),(o=gr)?(o=X2(o,to),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ii!==null?{id:ko,overflow:Lo}:null,retryLane:536870912,hydrationErrors:null},m=CS(o),m.return=s,s.child=m,ca=s,gr=null)):o=null,o===null)throw Mi(s);return s.lanes=536870912,null}return Zf(s,y)}var A=o.memoizedState;if(A!==null){var ee=A.dehydrated;if(Ap(s),T)if(s.flags&256)s.flags&=-257,s=Ax(o,s,m);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(Lr||Ls(o,s,m,!1),T=(m&o.childLanes)!==0,Lr||T){if(y=cr,y!==null&&(ee=Ve(y,m),ee!==0&&ee!==A.retryLane))throw A.retryLane=ee,Ml(o,ee),Na(y,o,ee),ah;cm(),s=Ax(o,s,m)}else o=A.treeContext,gr=ro(ee.nextSibling),ca=s,Dn=!0,Ni=null,to=!1,o!==null&&$S(s,o),s=Zf(s,y),s.flags|=4096;return s}return o=ti(o.child,{mode:y.mode,children:y.children}),o.ref=s.ref,s.child=o,o.return=s,o}function Jf(o,s){var m=s.ref;if(m===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(o===null||o.ref!==m)&&(s.flags|=4194816)}}function oh(o,s,m,y,T){return Dl(s),m=kp(o,s,m,y,void 0,T),y=Lp(),o!==null&&!Lr?(Hp(o,s,T),li(o,s,T)):(Dn&&y&&Cp(s),s.flags|=1,da(o,s,m,T),s.child)}function Bx(o,s,m,y,T,A){return Dl(s),s.updateQueue=null,m=HS(s,y,m,T),LS(o),y=Lp(),o!==null&&!Lr?(Hp(o,s,A),li(o,s,A)):(Dn&&y&&Cp(s),s.flags|=1,da(o,s,m,A),s.child)}function kx(o,s,m,y,T){if(Dl(s),s.stateNode===null){var A=_s,ee=m.contextType;typeof ee=="object"&&ee!==null&&(A=ua(ee)),A=new m(y,A),s.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=nh,s.stateNode=A,A._reactInternals=s,A=s.stateNode,A.props=y,A.state=s.memoizedState,A.refs={},Mp(s),ee=m.contextType,A.context=typeof ee=="object"&&ee!==null?ua(ee):_s,A.state=s.memoizedState,ee=m.getDerivedStateFromProps,typeof ee=="function"&&(th(s,m,ee,y),A.state=s.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(ee=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),ee!==A.state&&nh.enqueueReplaceState(A,A.state,null),ju(s,y,A,T),Ru(),A.state=s.memoizedState),typeof A.componentDidMount=="function"&&(s.flags|=4194308),y=!0}else if(o===null){A=s.stateNode;var me=s.memoizedProps,xe=Hl(m,me);A.props=xe;var ke=A.context,Je=m.contextType;ee=_s,typeof Je=="object"&&Je!==null&&(ee=ua(Je));var it=m.getDerivedStateFromProps;Je=typeof it=="function"||typeof A.getSnapshotBeforeUpdate=="function",me=s.pendingProps!==me,Je||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(me||ke!==ee)&&Ex(s,A,y,ee),Pi=!1;var He=s.memoizedState;A.state=He,ju(s,y,A,T),Ru(),ke=s.memoizedState,me||He!==ke||Pi?(typeof it=="function"&&(th(s,m,it,y),ke=s.memoizedState),(xe=Pi||wx(s,m,xe,y,He,ke,ee))?(Je||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(s.flags|=4194308)):(typeof A.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=y,s.memoizedState=ke),A.props=y,A.state=ke,A.context=ee,y=xe):(typeof A.componentDidMount=="function"&&(s.flags|=4194308),y=!1)}else{A=s.stateNode,Tp(o,s),ee=s.memoizedProps,Je=Hl(m,ee),A.props=Je,it=s.pendingProps,He=A.context,ke=m.contextType,xe=_s,typeof ke=="object"&&ke!==null&&(xe=ua(ke)),me=m.getDerivedStateFromProps,(ke=typeof me=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(ee!==it||He!==xe)&&Ex(s,A,y,xe),Pi=!1,He=s.memoizedState,A.state=He,ju(s,y,A,T),Ru();var qe=s.memoizedState;ee!==it||He!==qe||Pi||o!==null&&o.dependencies!==null&&zf(o.dependencies)?(typeof me=="function"&&(th(s,m,me,y),qe=s.memoizedState),(Je=Pi||wx(s,m,Je,y,He,qe,xe)||o!==null&&o.dependencies!==null&&zf(o.dependencies))?(ke||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(y,qe,xe),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(y,qe,xe)),typeof A.componentDidUpdate=="function"&&(s.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof A.componentDidUpdate!="function"||ee===o.memoizedProps&&He===o.memoizedState||(s.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||ee===o.memoizedProps&&He===o.memoizedState||(s.flags|=1024),s.memoizedProps=y,s.memoizedState=qe),A.props=y,A.state=qe,A.context=xe,y=Je):(typeof A.componentDidUpdate!="function"||ee===o.memoizedProps&&He===o.memoizedState||(s.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||ee===o.memoizedProps&&He===o.memoizedState||(s.flags|=1024),y=!1)}return A=y,Jf(o,s),y=(s.flags&128)!==0,A||y?(A=s.stateNode,m=y&&typeof m.getDerivedStateFromError!="function"?null:A.render(),s.flags|=1,o!==null&&y?(s.child=kl(s,o.child,null,T),s.child=kl(s,null,m,T)):da(o,s,m,T),s.memoizedState=A.state,o=s.child):o=li(o,s,T),o}function Lx(o,s,m,y){return Pl(),s.flags|=256,da(o,s,m,y),s.child}var ih={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lh(o){return{baseLanes:o,cachePool:IS()}}function sh(o,s,m){return o=o!==null?o.childLanes&~m:0,s&&(o|=Ha),o}function Hx(o,s,m){var y=s.pendingProps,T=!1,A=(s.flags&128)!==0,ee;if((ee=A)||(ee=o!==null&&o.memoizedState===null?!1:(Dr.current&2)!==0),ee&&(T=!0,s.flags&=-129),ee=(s.flags&32)!==0,s.flags&=-33,o===null){if(Dn){if(T?_i(s):Ai(),(o=gr)?(o=X2(o,to),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ii!==null?{id:ko,overflow:Lo}:null,retryLane:536870912,hydrationErrors:null},m=CS(o),m.return=s,s.child=m,ca=s,gr=null)):o=null,o===null)throw Mi(s);return Wh(o)?s.lanes=32:s.lanes=536870912,null}var me=y.children;return y=y.fallback,T?(Ai(),T=s.mode,me=em({mode:"hidden",children:me},T),y=Tl(y,T,m,null),me.return=s,y.return=s,me.sibling=y,s.child=me,y=s.child,y.memoizedState=lh(m),y.childLanes=sh(o,ee,m),s.memoizedState=ih,Pu(null,y)):(_i(s),ch(s,me))}var xe=o.memoizedState;if(xe!==null&&(me=xe.dehydrated,me!==null)){if(A)s.flags&256?(_i(s),s.flags&=-257,s=uh(o,s,m)):s.memoizedState!==null?(Ai(),s.child=o.child,s.flags|=128,s=null):(Ai(),me=y.fallback,T=s.mode,y=em({mode:"visible",children:y.children},T),me=Tl(me,T,m,null),me.flags|=2,y.return=s,me.return=s,y.sibling=me,s.child=y,kl(s,o.child,null,m),y=s.child,y.memoizedState=lh(m),y.childLanes=sh(o,ee,m),s.memoizedState=ih,s=Pu(null,y));else if(_i(s),Wh(me)){if(ee=me.nextSibling&&me.nextSibling.dataset,ee)var ke=ee.dgst;ee=ke,y=Error(r(419)),y.stack="",y.digest=ee,Su({value:y,source:null,stack:null}),s=uh(o,s,m)}else if(Lr||Ls(o,s,m,!1),ee=(m&o.childLanes)!==0,Lr||ee){if(ee=cr,ee!==null&&(y=Ve(ee,m),y!==0&&y!==xe.retryLane))throw xe.retryLane=y,Ml(o,y),Na(ee,o,y),ah;Vh(me)||cm(),s=uh(o,s,m)}else Vh(me)?(s.flags|=192,s.child=o.child,s=null):(o=xe.treeContext,gr=ro(me.nextSibling),ca=s,Dn=!0,Ni=null,to=!1,o!==null&&$S(s,o),s=ch(s,y.children),s.flags|=4096);return s}return T?(Ai(),me=y.fallback,T=s.mode,xe=o.child,ke=xe.sibling,y=ti(xe,{mode:"hidden",children:y.children}),y.subtreeFlags=xe.subtreeFlags&65011712,ke!==null?me=ti(ke,me):(me=Tl(me,T,m,null),me.flags|=2),me.return=s,y.return=s,y.sibling=me,s.child=y,Pu(null,y),y=s.child,me=o.child.memoizedState,me===null?me=lh(m):(T=me.cachePool,T!==null?(xe=Br._currentValue,T=T.parent!==xe?{parent:xe,pool:xe}:T):T=IS(),me={baseLanes:me.baseLanes|m,cachePool:T}),y.memoizedState=me,y.childLanes=sh(o,ee,m),s.memoizedState=ih,Pu(o.child,y)):(_i(s),m=o.child,o=m.sibling,m=ti(m,{mode:"visible",children:y.children}),m.return=s,m.sibling=null,o!==null&&(ee=s.deletions,ee===null?(s.deletions=[o],s.flags|=16):ee.push(o)),s.child=m,s.memoizedState=null,m)}function ch(o,s){return s=em({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function em(o,s){return o=Aa(22,o,null,s),o.lanes=0,o}function uh(o,s,m){return kl(s,o.child,null,m),o=ch(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function Fx(o,s,m){o.lanes|=s;var y=o.alternate;y!==null&&(y.lanes|=s),Ep(o.return,s,m)}function dh(o,s,m,y,T,A){var ee=o.memoizedState;ee===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:y,tail:m,tailMode:T,treeForkCount:A}:(ee.isBackwards=s,ee.rendering=null,ee.renderingStartTime=0,ee.last=y,ee.tail=m,ee.tailMode=T,ee.treeForkCount=A)}function Vx(o,s,m){var y=s.pendingProps,T=y.revealOrder,A=y.tail;y=y.children;var ee=Dr.current,me=(ee&2)!==0;if(me?(ee=ee&1|2,s.flags|=128):ee&=1,K(Dr,ee),da(o,s,y,m),y=Dn?Cu:0,!me&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Fx(o,m,s);else if(o.tag===19)Fx(o,m,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(T){case"forwards":for(m=s.child,T=null;m!==null;)o=m.alternate,o!==null&&Ff(o)===null&&(T=m),m=m.sibling;m=T,m===null?(T=s.child,s.child=null):(T=m.sibling,m.sibling=null),dh(s,!1,T,m,A,y);break;case"backwards":case"unstable_legacy-backwards":for(m=null,T=s.child,s.child=null;T!==null;){if(o=T.alternate,o!==null&&Ff(o)===null){s.child=T;break}o=T.sibling,T.sibling=m,m=T,T=o}dh(s,!0,m,null,A,y);break;case"together":dh(s,!1,null,null,void 0,y);break;default:s.memoizedState=null}return s.child}function li(o,s,m){if(o!==null&&(s.dependencies=o.dependencies),Li|=s.lanes,(m&s.childLanes)===0)if(o!==null){if(Ls(o,s,m,!1),(m&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,m=ti(o,o.pendingProps),s.child=m,m.return=s;o.sibling!==null;)o=o.sibling,m=m.sibling=ti(o,o.pendingProps),m.return=s;m.sibling=null}return s.child}function fh(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&zf(o)))}function rT(o,s,m){switch(s.tag){case 3:Y(s,s.stateNode.containerInfo),Ti(s,Br,o.memoizedState.cache),Pl();break;case 27:case 5:re(s);break;case 4:Y(s,s.stateNode.containerInfo);break;case 10:Ti(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Ap(s),null;break;case 13:var y=s.memoizedState;if(y!==null)return y.dehydrated!==null?(_i(s),s.flags|=128,null):(m&s.child.childLanes)!==0?Hx(o,s,m):(_i(s),o=li(o,s,m),o!==null?o.sibling:null);_i(s);break;case 19:var T=(o.flags&128)!==0;if(y=(m&s.childLanes)!==0,y||(Ls(o,s,m,!1),y=(m&s.childLanes)!==0),T){if(y)return Vx(o,s,m);s.flags|=128}if(T=s.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),K(Dr,Dr.current),y)break;return null;case 22:return s.lanes=0,Dx(o,s,m,s.pendingProps);case 24:Ti(s,Br,o.memoizedState.cache)}return li(o,s,m)}function Wx(o,s,m){if(o!==null)if(o.memoizedProps!==s.pendingProps)Lr=!0;else{if(!fh(o,m)&&(s.flags&128)===0)return Lr=!1,rT(o,s,m);Lr=(o.flags&131072)!==0}else Lr=!1,Dn&&(s.flags&1048576)!==0&&xS(s,Cu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var y=s.pendingProps;if(o=Al(s.elementType),s.type=o,typeof o=="function")hp(o)?(y=Hl(o,y),s.tag=1,s=kx(null,s,o,y,m)):(s.tag=0,s=oh(null,s,o,y,m));else{if(o!=null){var T=o.$$typeof;if(T===j){s.tag=11,s=Tx(null,s,o,y,m);break e}else if(T===R){s.tag=14,s=Px(null,s,o,y,m);break e}}throw s=D(o)||o,Error(r(306,s,""))}}return s;case 0:return oh(o,s,s.type,s.pendingProps,m);case 1:return y=s.type,T=Hl(y,s.pendingProps),kx(o,s,y,T,m);case 3:e:{if(Y(s,s.stateNode.containerInfo),o===null)throw Error(r(387));y=s.pendingProps;var A=s.memoizedState;T=A.element,Tp(o,s),ju(s,y,null,m);var ee=s.memoizedState;if(y=ee.cache,Ti(s,Br,y),y!==A.cache&&Op(s,[Br],m,!0),Ru(),y=ee.element,A.isDehydrated)if(A={element:y,isDehydrated:!1,cache:ee.cache},s.updateQueue.baseState=A,s.memoizedState=A,s.flags&256){s=Lx(o,s,y,m);break e}else if(y!==T){T=Za(Error(r(424)),s),Su(T),s=Lx(o,s,y,m);break e}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(gr=ro(o.firstChild),ca=s,Dn=!0,Ni=null,to=!0,m=DS(s,null,y,m),s.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Pl(),y===T){s=li(o,s,m);break e}da(o,s,y,m)}s=s.child}return s;case 26:return Jf(o,s),o===null?(m=t$(s.type,null,s.pendingProps,null))?s.memoizedState=m:Dn||(m=s.type,o=s.pendingProps,y=pm(Q.current).createElement(m),y[ft]=s,y[lt]=o,fa(y,m,o),Ze(y),s.stateNode=y):s.memoizedState=t$(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return re(s),o===null&&Dn&&(y=s.stateNode=Z2(s.type,s.pendingProps,Q.current),ca=s,to=!0,T=gr,Ki(s.type)?(Kh=T,gr=ro(y.firstChild)):gr=T),da(o,s,s.pendingProps.children,m),Jf(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Dn&&((T=y=gr)&&(y=PT(y,s.type,s.pendingProps,to),y!==null?(s.stateNode=y,ca=s,gr=ro(y.firstChild),to=!1,T=!0):T=!1),T||Mi(s)),re(s),T=s.type,A=s.pendingProps,ee=o!==null?o.memoizedProps:null,y=A.children,Lh(T,A)?y=null:ee!==null&&Lh(T,ee)&&(s.flags|=32),s.memoizedState!==null&&(T=kp(o,s,GM,null,null,m),Gu._currentValue=T),Jf(o,s),da(o,s,y,m),s.child;case 6:return o===null&&Dn&&((o=m=gr)&&(m=zT(m,s.pendingProps,to),m!==null?(s.stateNode=m,ca=s,gr=null,o=!0):o=!1),o||Mi(s)),null;case 13:return Hx(o,s,m);case 4:return Y(s,s.stateNode.containerInfo),y=s.pendingProps,o===null?s.child=kl(s,null,y,m):da(o,s,y,m),s.child;case 11:return Tx(o,s,s.type,s.pendingProps,m);case 7:return da(o,s,s.pendingProps,m),s.child;case 8:return da(o,s,s.pendingProps.children,m),s.child;case 12:return da(o,s,s.pendingProps.children,m),s.child;case 10:return y=s.pendingProps,Ti(s,s.type,y.value),da(o,s,y.children,m),s.child;case 9:return T=s.type._context,y=s.pendingProps.children,Dl(s),T=ua(T),y=y(T),s.flags|=1,da(o,s,y,m),s.child;case 14:return Px(o,s,s.type,s.pendingProps,m);case 15:return zx(o,s,s.type,s.pendingProps,m);case 19:return Vx(o,s,m);case 31:return nT(o,s,m);case 22:return Dx(o,s,m,s.pendingProps);case 24:return Dl(s),y=ua(Br),o===null?(T=Ip(),T===null&&(T=cr,A=Rp(),T.pooledCache=A,A.refCount++,A!==null&&(T.pooledCacheLanes|=m),T=A),s.memoizedState={parent:y,cache:T},Mp(s),Ti(s,Br,T)):((o.lanes&m)!==0&&(Tp(o,s),ju(s,null,null,m),Ru()),T=o.memoizedState,A=s.memoizedState,T.parent!==y?(T={parent:y,cache:y},s.memoizedState=T,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=T),Ti(s,Br,y)):(y=A.cache,Ti(s,Br,y),y!==T.cache&&Op(s,[Br],m,!0))),da(o,s,s.pendingProps.children,m),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function si(o){o.flags|=4}function mh(o,s,m,y,T){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(T&335544128)===T)if(o.stateNode.complete)o.flags|=8192;else if(h2())o.flags|=8192;else throw Bl=Bf,Np}else o.flags&=-16777217}function Kx(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!i$(s))if(h2())o.flags|=8192;else throw Bl=Bf,Np}function tm(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?zt():536870912,o.lanes|=s,Zs|=s)}function zu(o,s){if(!Dn)switch(o.tailMode){case"hidden":s=o.tail;for(var m=null;s!==null;)s.alternate!==null&&(m=s),s=s.sibling;m===null?o.tail=null:m.sibling=null;break;case"collapsed":m=o.tail;for(var y=null;m!==null;)m.alternate!==null&&(y=m),m=m.sibling;y===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function pr(o){var s=o.alternate!==null&&o.alternate.child===o.child,m=0,y=0;if(s)for(var T=o.child;T!==null;)m|=T.lanes|T.childLanes,y|=T.subtreeFlags&65011712,y|=T.flags&65011712,T.return=o,T=T.sibling;else for(T=o.child;T!==null;)m|=T.lanes|T.childLanes,y|=T.subtreeFlags,y|=T.flags,T.return=o,T=T.sibling;return o.subtreeFlags|=y,o.childLanes=m,s}function aT(o,s,m){var y=s.pendingProps;switch(Sp(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(s),null;case 1:return pr(s),null;case 3:return m=s.stateNode,y=null,o!==null&&(y=o.memoizedState.cache),s.memoizedState.cache!==y&&(s.flags|=2048),ai(Br),ae(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(o===null||o.child===null)&&(ks(s)?si(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,$p())),pr(s),null;case 26:var T=s.type,A=s.memoizedState;return o===null?(si(s),A!==null?(pr(s),Kx(s,A)):(pr(s),mh(s,T,null,y,m))):A?A!==o.memoizedState?(si(s),pr(s),Kx(s,A)):(pr(s),s.flags&=-16777217):(o=o.memoizedProps,o!==y&&si(s),pr(s),mh(s,T,o,y,m)),null;case 27:if(Z(s),m=Q.current,T=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==y&&si(s);else{if(!y){if(s.stateNode===null)throw Error(r(166));return pr(s),null}o=U.current,ks(s)?wS(s):(o=Z2(T,y,m),s.stateNode=o,si(s))}return pr(s),null;case 5:if(Z(s),T=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==y&&si(s);else{if(!y){if(s.stateNode===null)throw Error(r(166));return pr(s),null}if(A=U.current,ks(s))wS(s);else{var ee=pm(Q.current);switch(A){case 1:A=ee.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:A=ee.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":A=ee.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":A=ee.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":A=ee.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof y.is=="string"?ee.createElement("select",{is:y.is}):ee.createElement("select"),y.multiple?A.multiple=!0:y.size&&(A.size=y.size);break;default:A=typeof y.is=="string"?ee.createElement(T,{is:y.is}):ee.createElement(T)}}A[ft]=s,A[lt]=y;e:for(ee=s.child;ee!==null;){if(ee.tag===5||ee.tag===6)A.appendChild(ee.stateNode);else if(ee.tag!==4&&ee.tag!==27&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===s)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===s)break e;ee=ee.return}ee.sibling.return=ee.return,ee=ee.sibling}s.stateNode=A;e:switch(fa(A,T,y),T){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}y&&si(s)}}return pr(s),mh(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,m),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==y&&si(s);else{if(typeof y!="string"&&s.stateNode===null)throw Error(r(166));if(o=Q.current,ks(s)){if(o=s.stateNode,m=s.memoizedProps,y=null,T=ca,T!==null)switch(T.tag){case 27:case 5:y=T.memoizedProps}o[ft]=s,o=!!(o.nodeValue===m||y!==null&&y.suppressHydrationWarning===!0||H2(o.nodeValue,m)),o||Mi(s,!0)}else o=pm(o).createTextNode(y),o[ft]=s,s.stateNode=o}return pr(s),null;case 31:if(m=s.memoizedState,o===null||o.memoizedState!==null){if(y=ks(s),m!==null){if(o===null){if(!y)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[ft]=s}else Pl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;pr(s),o=!1}else m=$p(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),o=!0;if(!o)return s.flags&256?(ka(s),s):(ka(s),null);if((s.flags&128)!==0)throw Error(r(558))}return pr(s),null;case 13:if(y=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(T=ks(s),y!==null&&y.dehydrated!==null){if(o===null){if(!T)throw Error(r(318));if(T=s.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[ft]=s}else Pl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;pr(s),T=!1}else T=$p(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=T),T=!0;if(!T)return s.flags&256?(ka(s),s):(ka(s),null)}return ka(s),(s.flags&128)!==0?(s.lanes=m,s):(m=y!==null,o=o!==null&&o.memoizedState!==null,m&&(y=s.child,T=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(T=y.alternate.memoizedState.cachePool.pool),A=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(A=y.memoizedState.cachePool.pool),A!==T&&(y.flags|=2048)),m!==o&&m&&(s.child.flags|=8192),tm(s,s.updateQueue),pr(s),null);case 4:return ae(),o===null&&Dh(s.stateNode.containerInfo),pr(s),null;case 10:return ai(s.type),pr(s),null;case 19:if(G(Dr),y=s.memoizedState,y===null)return pr(s),null;if(T=(s.flags&128)!==0,A=y.rendering,A===null)if(T)zu(y,!1);else{if(Ir!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(A=Ff(o),A!==null){for(s.flags|=128,zu(y,!1),o=A.updateQueue,s.updateQueue=o,tm(s,o),s.subtreeFlags=0,o=m,m=s.child;m!==null;)yS(m,o),m=m.sibling;return K(Dr,Dr.current&1|2),Dn&&ni(s,y.treeForkCount),s.child}o=o.sibling}y.tail!==null&&Ce()>im&&(s.flags|=128,T=!0,zu(y,!1),s.lanes=4194304)}else{if(!T)if(o=Ff(A),o!==null){if(s.flags|=128,T=!0,o=o.updateQueue,s.updateQueue=o,tm(s,o),zu(y,!0),y.tail===null&&y.tailMode==="hidden"&&!A.alternate&&!Dn)return pr(s),null}else 2*Ce()-y.renderingStartTime>im&&m!==536870912&&(s.flags|=128,T=!0,zu(y,!1),s.lanes=4194304);y.isBackwards?(A.sibling=s.child,s.child=A):(o=y.last,o!==null?o.sibling=A:s.child=A,y.last=A)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=Ce(),o.sibling=null,m=Dr.current,K(Dr,T?m&1|2:m&1),Dn&&ni(s,y.treeForkCount),o):(pr(s),null);case 22:case 23:return ka(s),_p(),y=s.memoizedState!==null,o!==null?o.memoizedState!==null!==y&&(s.flags|=8192):y&&(s.flags|=8192),y?(m&536870912)!==0&&(s.flags&128)===0&&(pr(s),s.subtreeFlags&6&&(s.flags|=8192)):pr(s),m=s.updateQueue,m!==null&&tm(s,m.retryQueue),m=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),y=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(y=s.memoizedState.cachePool.pool),y!==m&&(s.flags|=2048),o!==null&&G(_l),null;case 24:return m=null,o!==null&&(m=o.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),ai(Br),pr(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function oT(o,s){switch(Sp(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ai(Br),ae(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return Z(s),null;case 31:if(s.memoizedState!==null){if(ka(s),s.alternate===null)throw Error(r(340));Pl()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(ka(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Pl()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return G(Dr),null;case 4:return ae(),null;case 10:return ai(s.type),null;case 22:case 23:return ka(s),_p(),o!==null&&G(_l),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return ai(Br),null;case 25:return null;default:return null}}function Ux(o,s){switch(Sp(s),s.tag){case 3:ai(Br),ae();break;case 26:case 27:case 5:Z(s);break;case 4:ae();break;case 31:s.memoizedState!==null&&ka(s);break;case 13:ka(s);break;case 19:G(Dr);break;case 10:ai(s.type);break;case 22:case 23:ka(s),_p(),o!==null&&G(_l);break;case 24:ai(Br)}}function Du(o,s){try{var m=s.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var T=y.next;m=T;do{if((m.tag&o)===o){y=void 0;var A=m.create,ee=m.inst;y=A(),ee.destroy=y}m=m.next}while(m!==T)}}catch(me){er(s,s.return,me)}}function Bi(o,s,m){try{var y=s.updateQueue,T=y!==null?y.lastEffect:null;if(T!==null){var A=T.next;y=A;do{if((y.tag&o)===o){var ee=y.inst,me=ee.destroy;if(me!==void 0){ee.destroy=void 0,T=s;var xe=m,ke=me;try{ke()}catch(Je){er(T,xe,Je)}}}y=y.next}while(y!==A)}}catch(Je){er(s,s.return,Je)}}function qx(o){var s=o.updateQueue;if(s!==null){var m=o.stateNode;try{AS(s,m)}catch(y){er(o,o.return,y)}}}function Gx(o,s,m){m.props=Hl(o.type,o.memoizedProps),m.state=o.memoizedState;try{m.componentWillUnmount()}catch(y){er(o,s,y)}}function _u(o,s){try{var m=o.ref;if(m!==null){switch(o.tag){case 26:case 27:case 5:var y=o.stateNode;break;case 30:y=o.stateNode;break;default:y=o.stateNode}typeof m=="function"?o.refCleanup=m(y):m.current=y}}catch(T){er(o,s,T)}}function Ho(o,s){var m=o.ref,y=o.refCleanup;if(m!==null)if(typeof y=="function")try{y()}catch(T){er(o,s,T)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(T){er(o,s,T)}else m.current=null}function Xx(o){var s=o.type,m=o.memoizedProps,y=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":m.autoFocus&&y.focus();break e;case"img":m.src?y.src=m.src:m.srcSet&&(y.srcset=m.srcSet)}}catch(T){er(o,o.return,T)}}function vh(o,s,m){try{var y=o.stateNode;RT(y,o.type,m,s),y[lt]=s}catch(T){er(o,o.return,T)}}function Yx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ki(o.type)||o.tag===4}function gh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Yx(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&&Ki(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 ph(o,s,m){var y=o.tag;if(y===5||y===6)o=o.stateNode,s?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(o,s):(s=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,s.appendChild(o),m=m._reactRootContainer,m!=null||s.onclick!==null||(s.onclick=Kn));else if(y!==4&&(y===27&&Ki(o.type)&&(m=o.stateNode,s=null),o=o.child,o!==null))for(ph(o,s,m),o=o.sibling;o!==null;)ph(o,s,m),o=o.sibling}function nm(o,s,m){var y=o.tag;if(y===5||y===6)o=o.stateNode,s?m.insertBefore(o,s):m.appendChild(o);else if(y!==4&&(y===27&&Ki(o.type)&&(m=o.stateNode),o=o.child,o!==null))for(nm(o,s,m),o=o.sibling;o!==null;)nm(o,s,m),o=o.sibling}function Qx(o){var s=o.stateNode,m=o.memoizedProps;try{for(var y=o.type,T=s.attributes;T.length;)s.removeAttributeNode(T[0]);fa(s,y,m),s[ft]=o,s[lt]=m}catch(A){er(o,o.return,A)}}var ci=!1,Hr=!1,hh=!1,Zx=typeof WeakSet=="function"?WeakSet:Set,ea=null;function iT(o,s){if(o=o.containerInfo,Bh=$m,o=uS(o),up(o)){if("selectionStart"in o)var m={start:o.selectionStart,end:o.selectionEnd};else e:{m=(m=o.ownerDocument)&&m.defaultView||window;var y=m.getSelection&&m.getSelection();if(y&&y.rangeCount!==0){m=y.anchorNode;var T=y.anchorOffset,A=y.focusNode;y=y.focusOffset;try{m.nodeType,A.nodeType}catch{m=null;break e}var ee=0,me=-1,xe=-1,ke=0,Je=0,it=o,He=null;t:for(;;){for(var qe;it!==m||T!==0&&it.nodeType!==3||(me=ee+T),it!==A||y!==0&&it.nodeType!==3||(xe=ee+y),it.nodeType===3&&(ee+=it.nodeValue.length),(qe=it.firstChild)!==null;)He=it,it=qe;for(;;){if(it===o)break t;if(He===m&&++ke===T&&(me=ee),He===A&&++Je===y&&(xe=ee),(qe=it.nextSibling)!==null)break;it=He,He=it.parentNode}it=qe}m=me===-1||xe===-1?null:{start:me,end:xe}}else m=null}m=m||{start:0,end:0}}else m=null;for(kh={focusedElem:o,selectionRange:m},$m=!1,ea=s;ea!==null;)if(s=ea,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,ea=o;else for(;ea!==null;){switch(s=ea,A=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(m=0;m<o.length;m++)T=o[m],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&A!==null){o=void 0,m=s,T=A.memoizedProps,A=A.memoizedState,y=m.stateNode;try{var Wt=Hl(m.type,T);o=y.getSnapshotBeforeUpdate(Wt,A),y.__reactInternalSnapshotBeforeUpdate=o}catch(ln){er(m,m.return,ln)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,m=o.nodeType,m===9)Fh(o);else if(m===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Fh(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=s.sibling,o!==null){o.return=s.return,ea=o;break}ea=s.return}}function Jx(o,s,m){var y=m.flags;switch(m.tag){case 0:case 11:case 15:di(o,m),y&4&&Du(5,m);break;case 1:if(di(o,m),y&4)if(o=m.stateNode,s===null)try{o.componentDidMount()}catch(ee){er(m,m.return,ee)}else{var T=Hl(m.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(T,s,o.__reactInternalSnapshotBeforeUpdate)}catch(ee){er(m,m.return,ee)}}y&64&&qx(m),y&512&&_u(m,m.return);break;case 3:if(di(o,m),y&64&&(o=m.updateQueue,o!==null)){if(s=null,m.child!==null)switch(m.child.tag){case 27:case 5:s=m.child.stateNode;break;case 1:s=m.child.stateNode}try{AS(o,s)}catch(ee){er(m,m.return,ee)}}break;case 27:s===null&&y&4&&Qx(m);case 26:case 5:di(o,m),s===null&&y&4&&Xx(m),y&512&&_u(m,m.return);break;case 12:di(o,m);break;case 31:di(o,m),y&4&&n2(o,m);break;case 13:di(o,m),y&4&&r2(o,m),y&64&&(o=m.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(m=gT.bind(null,m),DT(o,m))));break;case 22:if(y=m.memoizedState!==null||ci,!y){s=s!==null&&s.memoizedState!==null||Hr,T=ci;var A=Hr;ci=y,(Hr=s)&&!A?fi(o,m,(m.subtreeFlags&8772)!==0):di(o,m),ci=T,Hr=A}break;case 30:break;default:di(o,m)}}function e2(o){var s=o.alternate;s!==null&&(o.alternate=null,e2(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&un(s)),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 yr=null,Oa=!1;function ui(o,s,m){for(m=m.child;m!==null;)t2(o,s,m),m=m.sibling}function t2(o,s,m){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(_e,m)}catch{}switch(m.tag){case 26:Hr||Ho(m,s),ui(o,s,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Hr||Ho(m,s);var y=yr,T=Oa;Ki(m.type)&&(yr=m.stateNode,Oa=!1),ui(o,s,m),Ku(m.stateNode),yr=y,Oa=T;break;case 5:Hr||Ho(m,s);case 6:if(y=yr,T=Oa,yr=null,ui(o,s,m),yr=y,Oa=T,yr!==null)if(Oa)try{(yr.nodeType===9?yr.body:yr.nodeName==="HTML"?yr.ownerDocument.body:yr).removeChild(m.stateNode)}catch(A){er(m,s,A)}else try{yr.removeChild(m.stateNode)}catch(A){er(m,s,A)}break;case 18:yr!==null&&(Oa?(o=yr,q2(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,m.stateNode),ic(o)):q2(yr,m.stateNode));break;case 4:y=yr,T=Oa,yr=m.stateNode.containerInfo,Oa=!0,ui(o,s,m),yr=y,Oa=T;break;case 0:case 11:case 14:case 15:Bi(2,m,s),Hr||Bi(4,m,s),ui(o,s,m);break;case 1:Hr||(Ho(m,s),y=m.stateNode,typeof y.componentWillUnmount=="function"&&Gx(m,s,y)),ui(o,s,m);break;case 21:ui(o,s,m);break;case 22:Hr=(y=Hr)||m.memoizedState!==null,ui(o,s,m),Hr=y;break;default:ui(o,s,m)}}function n2(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{ic(o)}catch(m){er(s,s.return,m)}}}function r2(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ic(o)}catch(m){er(s,s.return,m)}}function lT(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new Zx),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new Zx),s;default:throw Error(r(435,o.tag))}}function rm(o,s){var m=lT(o);s.forEach(function(y){if(!m.has(y)){m.add(y);var T=pT.bind(null,o,y);y.then(T,T)}})}function Ra(o,s){var m=s.deletions;if(m!==null)for(var y=0;y<m.length;y++){var T=m[y],A=o,ee=s,me=ee;e:for(;me!==null;){switch(me.tag){case 27:if(Ki(me.type)){yr=me.stateNode,Oa=!1;break e}break;case 5:yr=me.stateNode,Oa=!1;break e;case 3:case 4:yr=me.stateNode.containerInfo,Oa=!0;break e}me=me.return}if(yr===null)throw Error(r(160));t2(A,ee,T),yr=null,Oa=!1,A=T.alternate,A!==null&&(A.return=null),T.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)a2(s,o),s=s.sibling}var bo=null;function a2(o,s){var m=o.alternate,y=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ra(s,o),ja(o),y&4&&(Bi(3,o,o.return),Du(3,o),Bi(5,o,o.return));break;case 1:Ra(s,o),ja(o),y&512&&(Hr||m===null||Ho(m,m.return)),y&64&&ci&&(o=o.updateQueue,o!==null&&(y=o.callbacks,y!==null&&(m=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=m===null?y:m.concat(y))));break;case 26:var T=bo;if(Ra(s,o),ja(o),y&512&&(Hr||m===null||Ho(m,m.return)),y&4){var A=m!==null?m.memoizedState:null;if(y=o.memoizedState,m===null)if(y===null)if(o.stateNode===null){e:{y=o.type,m=o.memoizedProps,T=T.ownerDocument||T;t:switch(y){case"title":A=T.getElementsByTagName("title")[0],(!A||A[qt]||A[ft]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=T.createElement(y),T.head.insertBefore(A,T.querySelector("head > title"))),fa(A,y,m),A[ft]=o,Ze(A),y=A;break e;case"link":var ee=a$("link","href",T).get(y+(m.href||""));if(ee){for(var me=0;me<ee.length;me++)if(A=ee[me],A.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&A.getAttribute("rel")===(m.rel==null?null:m.rel)&&A.getAttribute("title")===(m.title==null?null:m.title)&&A.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){ee.splice(me,1);break t}}A=T.createElement(y),fa(A,y,m),T.head.appendChild(A);break;case"meta":if(ee=a$("meta","content",T).get(y+(m.content||""))){for(me=0;me<ee.length;me++)if(A=ee[me],A.getAttribute("content")===(m.content==null?null:""+m.content)&&A.getAttribute("name")===(m.name==null?null:m.name)&&A.getAttribute("property")===(m.property==null?null:m.property)&&A.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&A.getAttribute("charset")===(m.charSet==null?null:m.charSet)){ee.splice(me,1);break t}}A=T.createElement(y),fa(A,y,m),T.head.appendChild(A);break;default:throw Error(r(468,y))}A[ft]=o,Ze(A),y=A}o.stateNode=y}else o$(T,o.type,o.stateNode);else o.stateNode=r$(T,y,o.memoizedProps);else A!==y?(A===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):A.count--,y===null?o$(T,o.type,o.stateNode):r$(T,y,o.memoizedProps)):y===null&&o.stateNode!==null&&vh(o,o.memoizedProps,m.memoizedProps)}break;case 27:Ra(s,o),ja(o),y&512&&(Hr||m===null||Ho(m,m.return)),m!==null&&y&4&&vh(o,o.memoizedProps,m.memoizedProps);break;case 5:if(Ra(s,o),ja(o),y&512&&(Hr||m===null||Ho(m,m.return)),o.flags&32){T=o.stateNode;try{Qn(T,"")}catch(Wt){er(o,o.return,Wt)}}y&4&&o.stateNode!=null&&(T=o.memoizedProps,vh(o,T,m!==null?m.memoizedProps:T)),y&1024&&(hh=!0);break;case 6:if(Ra(s,o),ja(o),y&4){if(o.stateNode===null)throw Error(r(162));y=o.memoizedProps,m=o.stateNode;try{m.nodeValue=y}catch(Wt){er(o,o.return,Wt)}}break;case 3:if(ym=null,T=bo,bo=hm(s.containerInfo),Ra(s,o),bo=T,ja(o),y&4&&m!==null&&m.memoizedState.isDehydrated)try{ic(s.containerInfo)}catch(Wt){er(o,o.return,Wt)}hh&&(hh=!1,o2(o));break;case 4:y=bo,bo=hm(o.stateNode.containerInfo),Ra(s,o),ja(o),bo=y;break;case 12:Ra(s,o),ja(o);break;case 31:Ra(s,o),ja(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,rm(o,y)));break;case 13:Ra(s,o),ja(o),o.child.flags&8192&&o.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(om=Ce()),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,rm(o,y)));break;case 22:T=o.memoizedState!==null;var xe=m!==null&&m.memoizedState!==null,ke=ci,Je=Hr;if(ci=ke||T,Hr=Je||xe,Ra(s,o),Hr=Je,ci=ke,ja(o),y&8192)e:for(s=o.stateNode,s._visibility=T?s._visibility&-2:s._visibility|1,T&&(m===null||xe||ci||Hr||Fl(o)),m=null,s=o;;){if(s.tag===5||s.tag===26){if(m===null){xe=m=s;try{if(A=xe.stateNode,T)ee=A.style,typeof ee.setProperty=="function"?ee.setProperty("display","none","important"):ee.display="none";else{me=xe.stateNode;var it=xe.memoizedProps.style,He=it!=null&&it.hasOwnProperty("display")?it.display:null;me.style.display=He==null||typeof He=="boolean"?"":(""+He).trim()}}catch(Wt){er(xe,xe.return,Wt)}}}else if(s.tag===6){if(m===null){xe=s;try{xe.stateNode.nodeValue=T?"":xe.memoizedProps}catch(Wt){er(xe,xe.return,Wt)}}}else if(s.tag===18){if(m===null){xe=s;try{var qe=xe.stateNode;T?G2(qe,!0):G2(xe.stateNode,!1)}catch(Wt){er(xe,xe.return,Wt)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;m===s&&(m=null),s=s.return}m===s&&(m=null),s.sibling.return=s.return,s=s.sibling}y&4&&(y=o.updateQueue,y!==null&&(m=y.retryQueue,m!==null&&(y.retryQueue=null,rm(o,m))));break;case 19:Ra(s,o),ja(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,rm(o,y)));break;case 30:break;case 21:break;default:Ra(s,o),ja(o)}}function ja(o){var s=o.flags;if(s&2){try{for(var m,y=o.return;y!==null;){if(Yx(y)){m=y;break}y=y.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var T=m.stateNode,A=gh(o);nm(o,A,T);break;case 5:var ee=m.stateNode;m.flags&32&&(Qn(ee,""),m.flags&=-33);var me=gh(o);nm(o,me,ee);break;case 3:case 4:var xe=m.stateNode.containerInfo,ke=gh(o);ph(o,ke,xe);break;default:throw Error(r(161))}}catch(Je){er(o,o.return,Je)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function o2(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;o2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function di(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Jx(o,s.alternate,s),s=s.sibling}function Fl(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:Bi(4,s,s.return),Fl(s);break;case 1:Ho(s,s.return);var m=s.stateNode;typeof m.componentWillUnmount=="function"&&Gx(s,s.return,m),Fl(s);break;case 27:Ku(s.stateNode);case 26:case 5:Ho(s,s.return),Fl(s);break;case 22:s.memoizedState===null&&Fl(s);break;case 30:Fl(s);break;default:Fl(s)}o=o.sibling}}function fi(o,s,m){for(m=m&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var y=s.alternate,T=o,A=s,ee=A.flags;switch(A.tag){case 0:case 11:case 15:fi(T,A,m),Du(4,A);break;case 1:if(fi(T,A,m),y=A,T=y.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(ke){er(y,y.return,ke)}if(y=A,T=y.updateQueue,T!==null){var me=y.stateNode;try{var xe=T.shared.hiddenCallbacks;if(xe!==null)for(T.shared.hiddenCallbacks=null,T=0;T<xe.length;T++)_S(xe[T],me)}catch(ke){er(y,y.return,ke)}}m&&ee&64&&qx(A),_u(A,A.return);break;case 27:Qx(A);case 26:case 5:fi(T,A,m),m&&y===null&&ee&4&&Xx(A),_u(A,A.return);break;case 12:fi(T,A,m);break;case 31:fi(T,A,m),m&&ee&4&&n2(T,A);break;case 13:fi(T,A,m),m&&ee&4&&r2(T,A);break;case 22:A.memoizedState===null&&fi(T,A,m),_u(A,A.return);break;case 30:break;default:fi(T,A,m)}s=s.sibling}}function bh(o,s){var m=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==m&&(o!=null&&o.refCount++,m!=null&&xu(m))}function yh(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&xu(o))}function yo(o,s,m,y){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)i2(o,s,m,y),s=s.sibling}function i2(o,s,m,y){var T=s.flags;switch(s.tag){case 0:case 11:case 15:yo(o,s,m,y),T&2048&&Du(9,s);break;case 1:yo(o,s,m,y);break;case 3:yo(o,s,m,y),T&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&xu(o)));break;case 12:if(T&2048){yo(o,s,m,y),o=s.stateNode;try{var A=s.memoizedProps,ee=A.id,me=A.onPostCommit;typeof me=="function"&&me(ee,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(xe){er(s,s.return,xe)}}else yo(o,s,m,y);break;case 31:yo(o,s,m,y);break;case 13:yo(o,s,m,y);break;case 23:break;case 22:A=s.stateNode,ee=s.alternate,s.memoizedState!==null?A._visibility&2?yo(o,s,m,y):Au(o,s):A._visibility&2?yo(o,s,m,y):(A._visibility|=2,Xs(o,s,m,y,(s.subtreeFlags&10256)!==0||!1)),T&2048&&bh(ee,s);break;case 24:yo(o,s,m,y),T&2048&&yh(s.alternate,s);break;default:yo(o,s,m,y)}}function Xs(o,s,m,y,T){for(T=T&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var A=o,ee=s,me=m,xe=y,ke=ee.flags;switch(ee.tag){case 0:case 11:case 15:Xs(A,ee,me,xe,T),Du(8,ee);break;case 23:break;case 22:var Je=ee.stateNode;ee.memoizedState!==null?Je._visibility&2?Xs(A,ee,me,xe,T):Au(A,ee):(Je._visibility|=2,Xs(A,ee,me,xe,T)),T&&ke&2048&&bh(ee.alternate,ee);break;case 24:Xs(A,ee,me,xe,T),T&&ke&2048&&yh(ee.alternate,ee);break;default:Xs(A,ee,me,xe,T)}s=s.sibling}}function Au(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var m=o,y=s,T=y.flags;switch(y.tag){case 22:Au(m,y),T&2048&&bh(y.alternate,y);break;case 24:Au(m,y),T&2048&&yh(y.alternate,y);break;default:Au(m,y)}s=s.sibling}}var Bu=8192;function Ys(o,s,m){if(o.subtreeFlags&Bu)for(o=o.child;o!==null;)l2(o,s,m),o=o.sibling}function l2(o,s,m){switch(o.tag){case 26:Ys(o,s,m),o.flags&Bu&&o.memoizedState!==null&&qT(m,bo,o.memoizedState,o.memoizedProps);break;case 5:Ys(o,s,m);break;case 3:case 4:var y=bo;bo=hm(o.stateNode.containerInfo),Ys(o,s,m),bo=y;break;case 22:o.memoizedState===null&&(y=o.alternate,y!==null&&y.memoizedState!==null?(y=Bu,Bu=16777216,Ys(o,s,m),Bu=y):Ys(o,s,m));break;default:Ys(o,s,m)}}function s2(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function ku(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var y=s[m];ea=y,u2(y,o)}s2(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)c2(o),o=o.sibling}function c2(o){switch(o.tag){case 0:case 11:case 15:ku(o),o.flags&2048&&Bi(9,o,o.return);break;case 3:ku(o);break;case 12:ku(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,am(o)):ku(o);break;default:ku(o)}}function am(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var y=s[m];ea=y,u2(y,o)}s2(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:Bi(8,s,s.return),am(s);break;case 22:m=s.stateNode,m._visibility&2&&(m._visibility&=-3,am(s));break;default:am(s)}o=o.sibling}}function u2(o,s){for(;ea!==null;){var m=ea;switch(m.tag){case 0:case 11:case 15:Bi(8,m,s);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var y=m.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:xu(m.memoizedState.cache)}if(y=m.child,y!==null)y.return=m,ea=y;else e:for(m=o;ea!==null;){y=ea;var T=y.sibling,A=y.return;if(e2(y),y===m){ea=null;break e}if(T!==null){T.return=A,ea=T;break e}ea=A}}}var sT={getCacheForType:function(o){var s=ua(Br),m=s.data.get(o);return m===void 0&&(m=o(),s.data.set(o,m)),m},cacheSignal:function(){return ua(Br).controller.signal}},cT=typeof WeakMap=="function"?WeakMap:Map,Un=0,cr=null,On=null,Nn=0,Jn=0,La=null,ki=!1,Qs=!1,Ch=!1,mi=0,Ir=0,Li=0,Vl=0,Sh=0,Ha=0,Zs=0,Lu=null,Ia=null,xh=!1,om=0,d2=0,im=1/0,lm=null,Hi=null,qr=0,Fi=null,Js=null,vi=0,$h=0,wh=null,f2=null,Hu=0,Eh=null;function Fa(){return(Un&2)!==0&&Nn!==0?Nn&-Nn:z.T!==null?Mh():Tt()}function m2(){if(Ha===0)if((Nn&536870912)===0||Dn){var o=yt;yt<<=1,(yt&3932160)===0&&(yt=262144),Ha=o}else Ha=536870912;return o=Ba.current,o!==null&&(o.flags|=32),Ha}function Na(o,s,m){(o===cr&&(Jn===2||Jn===9)||o.cancelPendingCommit!==null)&&(ec(o,0),Vi(o,Nn,Ha,!1)),ct(o,m),((Un&2)===0||o!==cr)&&(o===cr&&((Un&2)===0&&(Vl|=m),Ir===4&&Vi(o,Nn,Ha,!1)),Fo(o))}function v2(o,s,m){if((Un&6)!==0)throw Error(r(327));var y=!m&&(s&127)===0&&(s&o.expiredLanes)===0||at(o,s),T=y?fT(o,s):Rh(o,s,!0),A=y;do{if(T===0){Qs&&!y&&Vi(o,s,0,!1);break}else{if(m=o.current.alternate,A&&!uT(m)){T=Rh(o,s,!1),A=!1;continue}if(T===2){if(A=s,o.errorRecoveryDisabledLanes&A)var ee=0;else ee=o.pendingLanes&-536870913,ee=ee!==0?ee:ee&536870912?536870912:0;if(ee!==0){s=ee;e:{var me=o;T=Lu;var xe=me.current.memoizedState.isDehydrated;if(xe&&(ec(me,ee).flags|=256),ee=Rh(me,ee,!1),ee!==2){if(Ch&&!xe){me.errorRecoveryDisabledLanes|=A,Vl|=A,T=4;break e}A=Ia,Ia=T,A!==null&&(Ia===null?Ia=A:Ia.push.apply(Ia,A))}T=ee}if(A=!1,T!==2)continue}}if(T===1){ec(o,0),Vi(o,s,0,!0);break}e:{switch(y=o,A=T,A){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Vi(y,s,Ha,!ki);break e;case 2:Ia=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(T=om+300-Ce(),10<T)){if(Vi(y,s,Ha,!ki),dt(y,0,!0)!==0)break e;vi=s,y.timeoutHandle=K2(g2.bind(null,y,m,Ia,lm,xh,s,Ha,Vl,Zs,ki,A,"Throttled",-0,0),T);break e}g2(y,m,Ia,lm,xh,s,Ha,Vl,Zs,ki,A,null,-0,0)}}break}while(!0);Fo(o)}function g2(o,s,m,y,T,A,ee,me,xe,ke,Je,it,He,qe){if(o.timeoutHandle=-1,it=s.subtreeFlags,it&8192||(it&16785408)===16785408){it={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},l2(s,A,it);var Wt=(A&62914560)===A?om-Ce():(A&4194048)===A?d2-Ce():0;if(Wt=GT(it,Wt),Wt!==null){vi=A,o.cancelPendingCommit=Wt($2.bind(null,o,s,A,m,y,T,ee,me,xe,Je,it,null,He,qe)),Vi(o,A,ee,!ke);return}}$2(o,s,A,m,y,T,ee,me,xe)}function uT(o){for(var s=o;;){var m=s.tag;if((m===0||m===11||m===15)&&s.flags&16384&&(m=s.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var y=0;y<m.length;y++){var T=m[y],A=T.getSnapshot;T=T.value;try{if(!_a(A(),T))return!1}catch{return!1}}if(m=s.child,s.subtreeFlags&16384&&m!==null)m.return=s,s=m;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Vi(o,s,m,y){s&=~Sh,s&=~Vl,o.suspendedLanes|=s,o.pingedLanes&=~s,y&&(o.warmLanes|=s),y=o.expirationTimes;for(var T=s;0<T;){var A=31-ye(T),ee=1<<A;y[A]=-1,T&=~ee}m!==0&&St(o,m,s)}function sm(){return(Un&6)===0?(Fu(0),!1):!0}function Oh(){if(On!==null){if(Jn===0)var o=On.return;else o=On,ri=zl=null,Fp(o),Ws=null,wu=0,o=On;for(;o!==null;)Ux(o.alternate,o),o=o.return;On=null}}function ec(o,s){var m=o.timeoutHandle;m!==-1&&(o.timeoutHandle=-1,NT(m)),m=o.cancelPendingCommit,m!==null&&(o.cancelPendingCommit=null,m()),vi=0,Oh(),cr=o,On=m=ti(o.current,null),Nn=s,Jn=0,La=null,ki=!1,Qs=at(o,s),Ch=!1,Zs=Ha=Sh=Vl=Li=Ir=0,Ia=Lu=null,xh=!1,(s&8)!==0&&(s|=s&32);var y=o.entangledLanes;if(y!==0)for(o=o.entanglements,y&=s;0<y;){var T=31-ye(y),A=1<<T;s|=o[T],y&=~A}return mi=s,If(),m}function p2(o,s){Cn=null,z.H=Tu,s===Vs||s===Af?(s=TS(),Jn=3):s===Np?(s=TS(),Jn=4):Jn=s===ah?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,La=s,On===null&&(Ir=1,Qf(o,Za(s,o.current)))}function h2(){var o=Ba.current;return o===null?!0:(Nn&4194048)===Nn?no===null:(Nn&62914560)===Nn||(Nn&536870912)!==0?o===no:!1}function b2(){var o=z.H;return z.H=Tu,o===null?Tu:o}function y2(){var o=z.A;return z.A=sT,o}function cm(){Ir=4,ki||(Nn&4194048)!==Nn&&Ba.current!==null||(Qs=!0),(Li&134217727)===0&&(Vl&134217727)===0||cr===null||Vi(cr,Nn,Ha,!1)}function Rh(o,s,m){var y=Un;Un|=2;var T=b2(),A=y2();(cr!==o||Nn!==s)&&(lm=null,ec(o,s)),s=!1;var ee=Ir;e:do try{if(Jn!==0&&On!==null){var me=On,xe=La;switch(Jn){case 8:Oh(),ee=6;break e;case 3:case 2:case 9:case 6:Ba.current===null&&(s=!0);var ke=Jn;if(Jn=0,La=null,tc(o,me,xe,ke),m&&Qs){ee=0;break e}break;default:ke=Jn,Jn=0,La=null,tc(o,me,xe,ke)}}dT(),ee=Ir;break}catch(Je){p2(o,Je)}while(!0);return s&&o.shellSuspendCounter++,ri=zl=null,Un=y,z.H=T,z.A=A,On===null&&(cr=null,Nn=0,If()),ee}function dT(){for(;On!==null;)C2(On)}function fT(o,s){var m=Un;Un|=2;var y=b2(),T=y2();cr!==o||Nn!==s?(lm=null,im=Ce()+500,ec(o,s)):Qs=at(o,s);e:do try{if(Jn!==0&&On!==null){s=On;var A=La;t:switch(Jn){case 1:Jn=0,La=null,tc(o,s,A,1);break;case 2:case 9:if(NS(A)){Jn=0,La=null,S2(s);break}s=function(){Jn!==2&&Jn!==9||cr!==o||(Jn=7),Fo(o)},A.then(s,s);break e;case 3:Jn=7;break e;case 4:Jn=5;break e;case 7:NS(A)?(Jn=0,La=null,S2(s)):(Jn=0,La=null,tc(o,s,A,7));break;case 5:var ee=null;switch(On.tag){case 26:ee=On.memoizedState;case 5:case 27:var me=On;if(ee?i$(ee):me.stateNode.complete){Jn=0,La=null;var xe=me.sibling;if(xe!==null)On=xe;else{var ke=me.return;ke!==null?(On=ke,um(ke)):On=null}break t}}Jn=0,La=null,tc(o,s,A,5);break;case 6:Jn=0,La=null,tc(o,s,A,6);break;case 8:Oh(),Ir=6;break e;default:throw Error(r(462))}}mT();break}catch(Je){p2(o,Je)}while(!0);return ri=zl=null,z.H=y,z.A=T,Un=m,On!==null?0:(cr=null,Nn=0,If(),Ir)}function mT(){for(;On!==null&&!we();)C2(On)}function C2(o){var s=Wx(o.alternate,o,mi);o.memoizedProps=o.pendingProps,s===null?um(o):On=s}function S2(o){var s=o,m=s.alternate;switch(s.tag){case 15:case 0:s=Bx(m,s,s.pendingProps,s.type,void 0,Nn);break;case 11:s=Bx(m,s,s.pendingProps,s.type.render,s.ref,Nn);break;case 5:Fp(s);default:Ux(m,s),s=On=yS(s,mi),s=Wx(m,s,mi)}o.memoizedProps=o.pendingProps,s===null?um(o):On=s}function tc(o,s,m,y){ri=zl=null,Fp(s),Ws=null,wu=0;var T=s.return;try{if(tT(o,T,s,m,Nn)){Ir=1,Qf(o,Za(m,o.current)),On=null;return}}catch(A){if(T!==null)throw On=T,A;Ir=1,Qf(o,Za(m,o.current)),On=null;return}s.flags&32768?(Dn||y===1?o=!0:Qs||(Nn&536870912)!==0?o=!1:(ki=o=!0,(y===2||y===9||y===3||y===6)&&(y=Ba.current,y!==null&&y.tag===13&&(y.flags|=16384))),x2(s,o)):um(s)}function um(o){var s=o;do{if((s.flags&32768)!==0){x2(s,ki);return}o=s.return;var m=aT(s.alternate,s,mi);if(m!==null){On=m;return}if(s=s.sibling,s!==null){On=s;return}On=s=o}while(s!==null);Ir===0&&(Ir=5)}function x2(o,s){do{var m=oT(o.alternate,o);if(m!==null){m.flags&=32767,On=m;return}if(m=o.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!s&&(o=o.sibling,o!==null)){On=o;return}On=o=m}while(o!==null);Ir=6,On=null}function $2(o,s,m,y,T,A,ee,me,xe){o.cancelPendingCommit=null;do dm();while(qr!==0);if((Un&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(A=s.lanes|s.childLanes,A|=gp,$t(o,m,A,ee,me,xe),o===cr&&(On=cr=null,Nn=0),Js=s,Fi=o,vi=m,$h=A,wh=T,f2=y,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,hT(Ke,function(){return j2(),null})):(o.callbackNode=null,o.callbackPriority=0),y=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||y){y=z.T,z.T=null,T=_.p,_.p=2,ee=Un,Un|=4;try{iT(o,s,m)}finally{Un=ee,_.p=T,z.T=y}}qr=1,w2(),E2(),O2()}}function w2(){if(qr===1){qr=0;var o=Fi,s=Js,m=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||m){m=z.T,z.T=null;var y=_.p;_.p=2;var T=Un;Un|=4;try{a2(s,o);var A=kh,ee=uS(o.containerInfo),me=A.focusedElem,xe=A.selectionRange;if(ee!==me&&me&&me.ownerDocument&&cS(me.ownerDocument.documentElement,me)){if(xe!==null&&up(me)){var ke=xe.start,Je=xe.end;if(Je===void 0&&(Je=ke),"selectionStart"in me)me.selectionStart=ke,me.selectionEnd=Math.min(Je,me.value.length);else{var it=me.ownerDocument||document,He=it&&it.defaultView||window;if(He.getSelection){var qe=He.getSelection(),Wt=me.textContent.length,ln=Math.min(xe.start,Wt),ar=xe.end===void 0?ln:Math.min(xe.end,Wt);!qe.extend&&ln>ar&&(ee=ar,ar=ln,ln=ee);var ze=sS(me,ln),Ie=sS(me,ar);if(ze&&Ie&&(qe.rangeCount!==1||qe.anchorNode!==ze.node||qe.anchorOffset!==ze.offset||qe.focusNode!==Ie.node||qe.focusOffset!==Ie.offset)){var Be=it.createRange();Be.setStart(ze.node,ze.offset),qe.removeAllRanges(),ln>ar?(qe.addRange(Be),qe.extend(Ie.node,Ie.offset)):(Be.setEnd(Ie.node,Ie.offset),qe.addRange(Be))}}}}for(it=[],qe=me;qe=qe.parentNode;)qe.nodeType===1&&it.push({element:qe,left:qe.scrollLeft,top:qe.scrollTop});for(typeof me.focus=="function"&&me.focus(),me=0;me<it.length;me++){var rt=it[me];rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}}$m=!!Bh,kh=Bh=null}finally{Un=T,_.p=y,z.T=m}}o.current=s,qr=2}}function E2(){if(qr===2){qr=0;var o=Fi,s=Js,m=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||m){m=z.T,z.T=null;var y=_.p;_.p=2;var T=Un;Un|=4;try{Jx(o,s.alternate,s)}finally{Un=T,_.p=y,z.T=m}}qr=3}}function O2(){if(qr===4||qr===3){qr=0,Se();var o=Fi,s=Js,m=vi,y=f2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?qr=5:(qr=0,Js=Fi=null,R2(o,o.pendingLanes));var T=o.pendingLanes;if(T===0&&(Hi=null),mt(m),s=s.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(_e,s,void 0,(s.current.flags&128)===128)}catch{}if(y!==null){s=z.T,T=_.p,_.p=2,z.T=null;try{for(var A=o.onRecoverableError,ee=0;ee<y.length;ee++){var me=y[ee];A(me.value,{componentStack:me.stack})}}finally{z.T=s,_.p=T}}(vi&3)!==0&&dm(),Fo(o),T=o.pendingLanes,(m&261930)!==0&&(T&42)!==0?o===Eh?Hu++:(Hu=0,Eh=o):Hu=0,Fu(0)}}function R2(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,xu(s)))}function dm(){return w2(),E2(),O2(),j2()}function j2(){if(qr!==5)return!1;var o=Fi,s=$h;$h=0;var m=mt(vi),y=z.T,T=_.p;try{_.p=32>m?32:m,z.T=null,m=wh,wh=null;var A=Fi,ee=vi;if(qr=0,Js=Fi=null,vi=0,(Un&6)!==0)throw Error(r(331));var me=Un;if(Un|=4,c2(A.current),i2(A,A.current,ee,m),Un=me,Fu(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(_e,A)}catch{}return!0}finally{_.p=T,z.T=y,R2(o,s)}}function I2(o,s,m){s=Za(m,s),s=rh(o.stateNode,s,2),o=Di(o,s,2),o!==null&&(ct(o,2),Fo(o))}function er(o,s,m){if(o.tag===3)I2(o,o,m);else for(;s!==null;){if(s.tag===3){I2(s,o,m);break}else if(s.tag===1){var y=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Hi===null||!Hi.has(y))){o=Za(m,o),m=Nx(2),y=Di(s,m,2),y!==null&&(Mx(m,y,s,o),ct(y,2),Fo(y));break}}s=s.return}}function jh(o,s,m){var y=o.pingCache;if(y===null){y=o.pingCache=new cT;var T=new Set;y.set(s,T)}else T=y.get(s),T===void 0&&(T=new Set,y.set(s,T));T.has(m)||(Ch=!0,T.add(m),o=vT.bind(null,o,s,m),s.then(o,o))}function vT(o,s,m){var y=o.pingCache;y!==null&&y.delete(s),o.pingedLanes|=o.suspendedLanes&m,o.warmLanes&=~m,cr===o&&(Nn&m)===m&&(Ir===4||Ir===3&&(Nn&62914560)===Nn&&300>Ce()-om?(Un&2)===0&&ec(o,0):Sh|=m,Zs===Nn&&(Zs=0)),Fo(o)}function N2(o,s){s===0&&(s=zt()),o=Ml(o,s),o!==null&&(ct(o,s),Fo(o))}function gT(o){var s=o.memoizedState,m=0;s!==null&&(m=s.retryLane),N2(o,m)}function pT(o,s){var m=0;switch(o.tag){case 31:case 13:var y=o.stateNode,T=o.memoizedState;T!==null&&(m=T.retryLane);break;case 19:y=o.stateNode;break;case 22:y=o.stateNode._retryCache;break;default:throw Error(r(314))}y!==null&&y.delete(s),N2(o,m)}function hT(o,s){return je(o,s)}var fm=null,nc=null,Ih=!1,mm=!1,Nh=!1,Wi=0;function Fo(o){o!==nc&&o.next===null&&(nc===null?fm=nc=o:nc=nc.next=o),mm=!0,Ih||(Ih=!0,yT())}function Fu(o,s){if(!Nh&&mm){Nh=!0;do for(var m=!1,y=fm;y!==null;){if(o!==0){var T=y.pendingLanes;if(T===0)var A=0;else{var ee=y.suspendedLanes,me=y.pingedLanes;A=(1<<31-ye(42|o)+1)-1,A&=T&~(ee&~me),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(m=!0,z2(y,A))}else A=Nn,A=dt(y,y===cr?A:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(A&3)===0||at(y,A)||(m=!0,z2(y,A));y=y.next}while(m);Nh=!1}}function bT(){M2()}function M2(){mm=Ih=!1;var o=0;Wi!==0&&IT()&&(o=Wi);for(var s=Ce(),m=null,y=fm;y!==null;){var T=y.next,A=T2(y,s);A===0?(y.next=null,m===null?fm=T:m.next=T,T===null&&(nc=m)):(m=y,(o!==0||(A&3)!==0)&&(mm=!0)),y=T}qr!==0&&qr!==5||Fu(o),Wi!==0&&(Wi=0)}function T2(o,s){for(var m=o.suspendedLanes,y=o.pingedLanes,T=o.expirationTimes,A=o.pendingLanes&-62914561;0<A;){var ee=31-ye(A),me=1<<ee,xe=T[ee];xe===-1?((me&m)===0||(me&y)!==0)&&(T[ee]=pt(me,s)):xe<=s&&(o.expiredLanes|=me),A&=~me}if(s=cr,m=Nn,m=dt(o,o===s?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y=o.callbackNode,m===0||o===s&&(Jn===2||Jn===9)||o.cancelPendingCommit!==null)return y!==null&&y!==null&&pe(y),o.callbackNode=null,o.callbackPriority=0;if((m&3)===0||at(o,m)){if(s=m&-m,s===o.callbackPriority)return s;switch(y!==null&&pe(y),mt(m)){case 2:case 8:m=Qe;break;case 32:m=Ke;break;case 268435456:m=Ge;break;default:m=Ke}return y=P2.bind(null,o),m=je(m,y),o.callbackPriority=s,o.callbackNode=m,s}return y!==null&&y!==null&&pe(y),o.callbackPriority=2,o.callbackNode=null,2}function P2(o,s){if(qr!==0&&qr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var m=o.callbackNode;if(dm()&&o.callbackNode!==m)return null;var y=Nn;return y=dt(o,o===cr?y:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y===0?null:(v2(o,y,s),T2(o,Ce()),o.callbackNode!=null&&o.callbackNode===m?P2.bind(null,o):null)}function z2(o,s){if(dm())return null;v2(o,s,!0)}function yT(){MT(function(){(Un&6)!==0?je(Ae,bT):M2()})}function Mh(){if(Wi===0){var o=Hs;o===0&&(o=tt,tt<<=1,(tt&261888)===0&&(tt=256)),Wi=o}return Wi}function D2(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Zn(""+o)}function _2(o,s){var m=s.ownerDocument.createElement("input");return m.name=s.name,m.value=s.value,o.id&&m.setAttribute("form",o.id),s.parentNode.insertBefore(m,s),o=new FormData(o),m.parentNode.removeChild(m),o}function CT(o,s,m,y,T){if(s==="submit"&&m&&m.stateNode===T){var A=D2((T[lt]||null).action),ee=y.submitter;ee&&(s=(s=ee[lt]||null)?D2(s.formAction):ee.getAttribute("formAction"),s!==null&&(A=s,ee=null));var me=new Ef("action","action",null,y,T);o.push({event:me,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(Wi!==0){var xe=ee?_2(T,ee):new FormData(T);Qp(m,{pending:!0,data:xe,method:T.method,action:A},null,xe)}}else typeof A=="function"&&(me.preventDefault(),xe=ee?_2(T,ee):new FormData(T),Qp(m,{pending:!0,data:xe,method:T.method,action:A},A,xe))},currentTarget:T}]})}}for(var Th=0;Th<vp.length;Th++){var Ph=vp[Th],ST=Ph.toLowerCase(),xT=Ph[0].toUpperCase()+Ph.slice(1);ho(ST,"on"+xT)}ho(mS,"onAnimationEnd"),ho(vS,"onAnimationIteration"),ho(gS,"onAnimationStart"),ho("dblclick","onDoubleClick"),ho("focusin","onFocus"),ho("focusout","onBlur"),ho(BM,"onTransitionRun"),ho(kM,"onTransitionStart"),ho(LM,"onTransitionCancel"),ho(pS,"onTransitionEnd"),vt("onMouseEnter",["mouseout","mouseover"]),vt("onMouseLeave",["mouseout","mouseover"]),vt("onPointerEnter",["pointerout","pointerover"]),vt("onPointerLeave",["pointerout","pointerover"]),Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vu="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(" "),$T=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vu));function A2(o,s){s=(s&4)!==0;for(var m=0;m<o.length;m++){var y=o[m],T=y.event;y=y.listeners;e:{var A=void 0;if(s)for(var ee=y.length-1;0<=ee;ee--){var me=y[ee],xe=me.instance,ke=me.currentTarget;if(me=me.listener,xe!==A&&T.isPropagationStopped())break e;A=me,T.currentTarget=ke;try{A(T)}catch(Je){jf(Je)}T.currentTarget=null,A=xe}else for(ee=0;ee<y.length;ee++){if(me=y[ee],xe=me.instance,ke=me.currentTarget,me=me.listener,xe!==A&&T.isPropagationStopped())break e;A=me,T.currentTarget=ke;try{A(T)}catch(Je){jf(Je)}T.currentTarget=null,A=xe}}}}function Rn(o,s){var m=s[Ut];m===void 0&&(m=s[Ut]=new Set);var y=o+"__bubble";m.has(y)||(B2(s,o,2,!1),m.add(y))}function zh(o,s,m){var y=0;s&&(y|=4),B2(m,o,y,s)}var vm="_reactListening"+Math.random().toString(36).slice(2);function Dh(o){if(!o[vm]){o[vm]=!0,ut.forEach(function(m){m!=="selectionchange"&&($T.has(m)||zh(m,!1,o),zh(m,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[vm]||(s[vm]=!0,zh("selectionchange",!1,s))}}function B2(o,s,m,y){switch(m$(s)){case 2:var T=QT;break;case 8:T=ZT;break;default:T=Yh}m=T.bind(null,s,m,o),T=void 0,!tr||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(T=!0),y?T!==void 0?o.addEventListener(s,m,{capture:!0,passive:T}):o.addEventListener(s,m,!0):T!==void 0?o.addEventListener(s,m,{passive:T}):o.addEventListener(s,m,!1)}function _h(o,s,m,y,T){var A=y;if((s&1)===0&&(s&2)===0&&y!==null)e:for(;;){if(y===null)return;var ee=y.tag;if(ee===3||ee===4){var me=y.stateNode.containerInfo;if(me===T)break;if(ee===4)for(ee=y.return;ee!==null;){var xe=ee.tag;if((xe===3||xe===4)&&ee.stateNode.containerInfo===T)return;ee=ee.return}for(;me!==null;){if(ee=st(me),ee===null)return;if(xe=ee.tag,xe===5||xe===6||xe===26||xe===27){y=A=ee;continue e}me=me.parentNode}}y=y.return}Ms(function(){var ke=A,Je=Jr(m),it=[];e:{var He=hS.get(o);if(He!==void 0){var qe=Ef,Wt=o;switch(o){case"keypress":if(ei(m)===0)break e;case"keydown":case"keyup":qe=pM;break;case"focusin":Wt="focus",qe=op;break;case"focusout":Wt="blur",qe=op;break;case"beforeblur":case"afterblur":qe=op;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=UC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=aM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=yM;break;case mS:case vS:case gS:qe=lM;break;case pS:qe=SM;break;case"scroll":case"scrollend":qe=nM;break;case"wheel":qe=$M;break;case"copy":case"cut":case"paste":qe=cM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=GC;break;case"toggle":case"beforetoggle":qe=EM}var ln=(s&4)!==0,ar=!ln&&(o==="scroll"||o==="scrollend"),ze=ln?He!==null?He+"Capture":null:He;ln=[];for(var Ie=ke,Be;Ie!==null;){var rt=Ie;if(Be=rt.stateNode,rt=rt.tag,rt!==5&&rt!==26&&rt!==27||Be===null||ze===null||(rt=Ht(Ie,ze),rt!=null&&ln.push(Wu(Ie,rt,Be))),ar)break;Ie=Ie.return}0<ln.length&&(He=new qe(He,Wt,null,m,Je),it.push({event:He,listeners:ln}))}}if((s&7)===0){e:{if(He=o==="mouseover"||o==="pointerover",qe=o==="mouseout"||o==="pointerout",He&&m!==Ur&&(Wt=m.relatedTarget||m.fromElement)&&(st(Wt)||Wt[At]))break e;if((qe||He)&&(He=Je.window===Je?Je:(He=Je.ownerDocument)?He.defaultView||He.parentWindow:window,qe?(Wt=m.relatedTarget||m.toElement,qe=ke,Wt=Wt?st(Wt):null,Wt!==null&&(ar=l(Wt),ln=Wt.tag,Wt!==ar||ln!==5&&ln!==27&&ln!==6)&&(Wt=null)):(qe=null,Wt=ke),qe!==Wt)){if(ln=UC,rt="onMouseLeave",ze="onMouseEnter",Ie="mouse",(o==="pointerout"||o==="pointerover")&&(ln=GC,rt="onPointerLeave",ze="onPointerEnter",Ie="pointer"),ar=qe==null?He:ht(qe),Be=Wt==null?He:ht(Wt),He=new ln(rt,Ie+"leave",qe,m,Je),He.target=ar,He.relatedTarget=Be,rt=null,st(Je)===ke&&(ln=new ln(ze,Ie+"enter",Wt,m,Je),ln.target=Be,ln.relatedTarget=ar,rt=ln),ar=rt,qe&&Wt)t:{for(ln=wT,ze=qe,Ie=Wt,Be=0,rt=ze;rt;rt=ln(rt))Be++;rt=0;for(var en=Ie;en;en=ln(en))rt++;for(;0<Be-rt;)ze=ln(ze),Be--;for(;0<rt-Be;)Ie=ln(Ie),rt--;for(;Be--;){if(ze===Ie||Ie!==null&&ze===Ie.alternate){ln=ze;break t}ze=ln(ze),Ie=ln(Ie)}ln=null}else ln=null;qe!==null&&k2(it,He,qe,ln,!1),Wt!==null&&ar!==null&&k2(it,ar,Wt,ln,!0)}}e:{if(He=ke?ht(ke):window,qe=He.nodeName&&He.nodeName.toLowerCase(),qe==="select"||qe==="input"&&He.type==="file")var Hn=nS;else if(eS(He))if(rS)Hn=DM;else{Hn=PM;var Gt=TM}else qe=He.nodeName,!qe||qe.toLowerCase()!=="input"||He.type!=="checkbox"&&He.type!=="radio"?ke&&It(ke.elementType)&&(Hn=nS):Hn=zM;if(Hn&&(Hn=Hn(o,ke))){tS(it,Hn,m,Je);break e}Gt&&Gt(o,He,ke),o==="focusout"&&ke&&He.type==="number"&&ke.memoizedProps.value!=null&&vn(He,"number",He.value)}switch(Gt=ke?ht(ke):window,o){case"focusin":(eS(Gt)||Gt.contentEditable==="true")&&(Ps=Gt,dp=ke,yu=null);break;case"focusout":yu=dp=Ps=null;break;case"mousedown":fp=!0;break;case"contextmenu":case"mouseup":case"dragend":fp=!1,dS(it,m,Je);break;case"selectionchange":if(AM)break;case"keydown":case"keyup":dS(it,m,Je)}var xn;if(lp)e:{switch(o){case"compositionstart":var Mn="onCompositionStart";break e;case"compositionend":Mn="onCompositionEnd";break e;case"compositionupdate":Mn="onCompositionUpdate";break e}Mn=void 0}else Ts?ZC(o,m)&&(Mn="onCompositionEnd"):o==="keydown"&&m.keyCode===229&&(Mn="onCompositionStart");Mn&&(XC&&m.locale!=="ko"&&(Ts||Mn!=="onCompositionStart"?Mn==="onCompositionEnd"&&Ts&&(xn=fu()):(kn=Je,Ri="value"in kn?kn.value:kn.textContent,Ts=!0)),Gt=gm(ke,Mn),0<Gt.length&&(Mn=new qC(Mn,o,null,m,Je),it.push({event:Mn,listeners:Gt}),xn?Mn.data=xn:(xn=JC(m),xn!==null&&(Mn.data=xn)))),(xn=RM?jM(o,m):IM(o,m))&&(Mn=gm(ke,"onBeforeInput"),0<Mn.length&&(Gt=new qC("onBeforeInput","beforeinput",null,m,Je),it.push({event:Gt,listeners:Mn}),Gt.data=xn)),CT(it,o,ke,m,Je)}A2(it,s)})}function Wu(o,s,m){return{instance:o,listener:s,currentTarget:m}}function gm(o,s){for(var m=s+"Capture",y=[];o!==null;){var T=o,A=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||A===null||(T=Ht(o,m),T!=null&&y.unshift(Wu(o,T,A)),T=Ht(o,s),T!=null&&y.push(Wu(o,T,A))),o.tag===3)return y;o=o.return}return[]}function wT(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function k2(o,s,m,y,T){for(var A=s._reactName,ee=[];m!==null&&m!==y;){var me=m,xe=me.alternate,ke=me.stateNode;if(me=me.tag,xe!==null&&xe===y)break;me!==5&&me!==26&&me!==27||ke===null||(xe=ke,T?(ke=Ht(m,A),ke!=null&&ee.unshift(Wu(m,ke,xe))):T||(ke=Ht(m,A),ke!=null&&ee.push(Wu(m,ke,xe)))),m=m.return}ee.length!==0&&o.push({event:s,listeners:ee})}var ET=/\r\n?/g,OT=/\u0000|\uFFFD/g;function L2(o){return(typeof o=="string"?o:""+o).replace(ET,`
|
|
49
|
-
`).replace(OT,"")}function H2(o,s){return s=L2(s),L2(o)===s}function rr(o,s,m,y,T,A){switch(m){case"children":typeof y=="string"?s==="body"||s==="textarea"&&y===""||Qn(o,y):(typeof y=="number"||typeof y=="bigint")&&s!=="body"&&Qn(o,""+y);break;case"className":Wn(o,"class",y);break;case"tabIndex":Wn(o,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(o,m,y);break;case"style":gt(o,y,A);break;case"data":if(s!=="object"){Wn(o,"data",y);break}case"src":case"href":if(y===""&&(s!=="a"||m!=="href")){o.removeAttribute(m);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(m);break}y=Zn(""+y),o.setAttribute(m,y);break;case"action":case"formAction":if(typeof y=="function"){o.setAttribute(m,"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 A=="function"&&(m==="formAction"?(s!=="input"&&rr(o,s,"name",T.name,T,null),rr(o,s,"formEncType",T.formEncType,T,null),rr(o,s,"formMethod",T.formMethod,T,null),rr(o,s,"formTarget",T.formTarget,T,null)):(rr(o,s,"encType",T.encType,T,null),rr(o,s,"method",T.method,T,null),rr(o,s,"target",T.target,T,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(m);break}y=Zn(""+y),o.setAttribute(m,y);break;case"onClick":y!=null&&(o.onclick=Kn);break;case"onScroll":y!=null&&Rn("scroll",o);break;case"onScrollEnd":y!=null&&Rn("scrollend",o);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(m=y.__html,m!=null){if(T.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"multiple":o.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":o.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){o.removeAttribute("xlink:href");break}m=Zn(""+y),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,""+y):o.removeAttribute(m);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":y&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,""):o.removeAttribute(m);break;case"capture":case"download":y===!0?o.setAttribute(m,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,y):o.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?o.setAttribute(m,y):o.removeAttribute(m);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?o.removeAttribute(m):o.setAttribute(m,y);break;case"popover":Rn("beforetoggle",o),Rn("toggle",o),Pn(o,"popover",y);break;case"xlinkActuate":jn(o,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":jn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":jn(o,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":jn(o,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":jn(o,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":jn(o,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":jn(o,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":jn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":jn(o,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":Pn(o,"is",y);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=fn.get(m)||m,Pn(o,m,y))}}function Ah(o,s,m,y,T,A){switch(m){case"style":gt(o,y,A);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(m=y.__html,m!=null){if(T.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"children":typeof y=="string"?Qn(o,y):(typeof y=="number"||typeof y=="bigint")&&Qn(o,""+y);break;case"onScroll":y!=null&&Rn("scroll",o);break;case"onScrollEnd":y!=null&&Rn("scrollend",o);break;case"onClick":y!=null&&(o.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dt.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(T=m.endsWith("Capture"),s=m.slice(2,T?m.length-7:void 0),A=o[lt]||null,A=A!=null?A[m]:null,typeof A=="function"&&o.removeEventListener(s,A,T),typeof y=="function")){typeof A!="function"&&A!==null&&(m in o?o[m]=null:o.hasAttribute(m)&&o.removeAttribute(m)),o.addEventListener(s,y,T);break e}m in o?o[m]=y:y===!0?o.setAttribute(m,""):Pn(o,m,y)}}}function fa(o,s,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rn("error",o),Rn("load",o);var y=!1,T=!1,A;for(A in m)if(m.hasOwnProperty(A)){var ee=m[A];if(ee!=null)switch(A){case"src":y=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:rr(o,s,A,ee,m,null)}}T&&rr(o,s,"srcSet",m.srcSet,m,null),y&&rr(o,s,"src",m.src,m,null);return;case"input":Rn("invalid",o);var me=A=ee=T=null,xe=null,ke=null;for(y in m)if(m.hasOwnProperty(y)){var Je=m[y];if(Je!=null)switch(y){case"name":T=Je;break;case"type":ee=Je;break;case"checked":xe=Je;break;case"defaultChecked":ke=Je;break;case"value":A=Je;break;case"defaultValue":me=Je;break;case"children":case"dangerouslySetInnerHTML":if(Je!=null)throw Error(r(137,s));break;default:rr(o,s,y,Je,m,null)}}_t(o,A,me,xe,ke,ee,T,!1);return;case"select":Rn("invalid",o),y=ee=A=null;for(T in m)if(m.hasOwnProperty(T)&&(me=m[T],me!=null))switch(T){case"value":A=me;break;case"defaultValue":ee=me;break;case"multiple":y=me;default:rr(o,s,T,me,m,null)}s=A,m=ee,o.multiple=!!y,s!=null?In(o,!!y,s,!1):m!=null&&In(o,!!y,m,!0);return;case"textarea":Rn("invalid",o),A=T=y=null;for(ee in m)if(m.hasOwnProperty(ee)&&(me=m[ee],me!=null))switch(ee){case"value":y=me;break;case"defaultValue":T=me;break;case"children":A=me;break;case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(91));break;default:rr(o,s,ee,me,m,null)}wr(o,y,T,A);return;case"option":for(xe in m)if(m.hasOwnProperty(xe)&&(y=m[xe],y!=null))switch(xe){case"selected":o.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:rr(o,s,xe,y,m,null)}return;case"dialog":Rn("beforetoggle",o),Rn("toggle",o),Rn("cancel",o),Rn("close",o);break;case"iframe":case"object":Rn("load",o);break;case"video":case"audio":for(y=0;y<Vu.length;y++)Rn(Vu[y],o);break;case"image":Rn("error",o),Rn("load",o);break;case"details":Rn("toggle",o);break;case"embed":case"source":case"link":Rn("error",o),Rn("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(ke in m)if(m.hasOwnProperty(ke)&&(y=m[ke],y!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:rr(o,s,ke,y,m,null)}return;default:if(It(s)){for(Je in m)m.hasOwnProperty(Je)&&(y=m[Je],y!==void 0&&Ah(o,s,Je,y,m,void 0));return}}for(me in m)m.hasOwnProperty(me)&&(y=m[me],y!=null&&rr(o,s,me,y,m,null))}function RT(o,s,m,y){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,A=null,ee=null,me=null,xe=null,ke=null,Je=null;for(qe in m){var it=m[qe];if(m.hasOwnProperty(qe)&&it!=null)switch(qe){case"checked":break;case"value":break;case"defaultValue":xe=it;default:y.hasOwnProperty(qe)||rr(o,s,qe,null,y,it)}}for(var He in y){var qe=y[He];if(it=m[He],y.hasOwnProperty(He)&&(qe!=null||it!=null))switch(He){case"type":A=qe;break;case"name":T=qe;break;case"checked":ke=qe;break;case"defaultChecked":Je=qe;break;case"value":ee=qe;break;case"defaultValue":me=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(r(137,s));break;default:qe!==it&&rr(o,s,He,qe,y,it)}}Pt(o,ee,me,xe,ke,Je,A,T);return;case"select":qe=ee=me=He=null;for(A in m)if(xe=m[A],m.hasOwnProperty(A)&&xe!=null)switch(A){case"value":break;case"multiple":qe=xe;default:y.hasOwnProperty(A)||rr(o,s,A,null,y,xe)}for(T in y)if(A=y[T],xe=m[T],y.hasOwnProperty(T)&&(A!=null||xe!=null))switch(T){case"value":He=A;break;case"defaultValue":me=A;break;case"multiple":ee=A;default:A!==xe&&rr(o,s,T,A,y,xe)}s=me,m=ee,y=qe,He!=null?In(o,!!m,He,!1):!!y!=!!m&&(s!=null?In(o,!!m,s,!0):In(o,!!m,m?[]:"",!1));return;case"textarea":qe=He=null;for(me in m)if(T=m[me],m.hasOwnProperty(me)&&T!=null&&!y.hasOwnProperty(me))switch(me){case"value":break;case"children":break;default:rr(o,s,me,null,y,T)}for(ee in y)if(T=y[ee],A=m[ee],y.hasOwnProperty(ee)&&(T!=null||A!=null))switch(ee){case"value":He=T;break;case"defaultValue":qe=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:T!==A&&rr(o,s,ee,T,y,A)}Yn(o,He,qe);return;case"option":for(var Wt in m)if(He=m[Wt],m.hasOwnProperty(Wt)&&He!=null&&!y.hasOwnProperty(Wt))switch(Wt){case"selected":o.selected=!1;break;default:rr(o,s,Wt,null,y,He)}for(xe in y)if(He=y[xe],qe=m[xe],y.hasOwnProperty(xe)&&He!==qe&&(He!=null||qe!=null))switch(xe){case"selected":o.selected=He&&typeof He!="function"&&typeof He!="symbol";break;default:rr(o,s,xe,He,y,qe)}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 ln in m)He=m[ln],m.hasOwnProperty(ln)&&He!=null&&!y.hasOwnProperty(ln)&&rr(o,s,ln,null,y,He);for(ke in y)if(He=y[ke],qe=m[ke],y.hasOwnProperty(ke)&&He!==qe&&(He!=null||qe!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,s));break;default:rr(o,s,ke,He,y,qe)}return;default:if(It(s)){for(var ar in m)He=m[ar],m.hasOwnProperty(ar)&&He!==void 0&&!y.hasOwnProperty(ar)&&Ah(o,s,ar,void 0,y,He);for(Je in y)He=y[Je],qe=m[Je],!y.hasOwnProperty(Je)||He===qe||He===void 0&&qe===void 0||Ah(o,s,Je,He,y,qe);return}}for(var ze in m)He=m[ze],m.hasOwnProperty(ze)&&He!=null&&!y.hasOwnProperty(ze)&&rr(o,s,ze,null,y,He);for(it in y)He=y[it],qe=m[it],!y.hasOwnProperty(it)||He===qe||He==null&&qe==null||rr(o,s,it,He,y,qe)}function F2(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jT(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,m=performance.getEntriesByType("resource"),y=0;y<m.length;y++){var T=m[y],A=T.transferSize,ee=T.initiatorType,me=T.duration;if(A&&me&&F2(ee)){for(ee=0,me=T.responseEnd,y+=1;y<m.length;y++){var xe=m[y],ke=xe.startTime;if(ke>me)break;var Je=xe.transferSize,it=xe.initiatorType;Je&&F2(it)&&(xe=xe.responseEnd,ee+=Je*(xe<me?1:(me-ke)/(xe-ke)))}if(--y,s+=8*(A+ee)/(T.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Bh=null,kh=null;function pm(o){return o.nodeType===9?o:o.ownerDocument}function V2(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 W2(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function Lh(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Hh=null;function IT(){var o=window.event;return o&&o.type==="popstate"?o===Hh?!1:(Hh=o,!0):(Hh=null,!1)}var K2=typeof setTimeout=="function"?setTimeout:void 0,NT=typeof clearTimeout=="function"?clearTimeout:void 0,U2=typeof Promise=="function"?Promise:void 0,MT=typeof queueMicrotask=="function"?queueMicrotask:typeof U2<"u"?function(o){return U2.resolve(null).then(o).catch(TT)}:K2;function TT(o){setTimeout(function(){throw o})}function Ki(o){return o==="head"}function q2(o,s){var m=s,y=0;do{var T=m.nextSibling;if(o.removeChild(m),T&&T.nodeType===8)if(m=T.data,m==="/$"||m==="/&"){if(y===0){o.removeChild(T),ic(s);return}y--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")y++;else if(m==="html")Ku(o.ownerDocument.documentElement);else if(m==="head"){m=o.ownerDocument.head,Ku(m);for(var A=m.firstChild;A;){var ee=A.nextSibling,me=A.nodeName;A[qt]||me==="SCRIPT"||me==="STYLE"||me==="LINK"&&A.rel.toLowerCase()==="stylesheet"||m.removeChild(A),A=ee}}else m==="body"&&Ku(o.ownerDocument.body);m=T}while(m);ic(s)}function G2(o,s){var m=o;o=0;do{var y=m.nextSibling;if(m.nodeType===1?s?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(s?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),y&&y.nodeType===8)if(m=y.data,m==="/$"){if(o===0)break;o--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||o++;m=y}while(m)}function Fh(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var m=s;switch(s=s.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Fh(m),un(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}o.removeChild(m)}}function PT(o,s,m,y){for(;o.nodeType===1;){var T=m;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!y&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(y){if(!o[qt])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(A=o.getAttribute("rel"),A==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(A!==T.rel||o.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||o.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||o.getAttribute("title")!==(T.title==null?null:T.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(A=o.getAttribute("src"),(A!==(T.src==null?null:T.src)||o.getAttribute("type")!==(T.type==null?null:T.type)||o.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&A&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var A=T.name==null?null:""+T.name;if(T.type==="hidden"&&o.getAttribute("name")===A)return o}else return o;if(o=ro(o.nextSibling),o===null)break}return null}function zT(o,s,m){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!m||(o=ro(o.nextSibling),o===null))return null;return o}function X2(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=ro(o.nextSibling),o===null))return null;return o}function Vh(o){return o.data==="$?"||o.data==="$~"}function Wh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function DT(o,s){var m=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||m.readyState!=="loading")s();else{var y=function(){s(),m.removeEventListener("DOMContentLoaded",y)};m.addEventListener("DOMContentLoaded",y),o._reactRetry=y}}function ro(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var Kh=null;function Y2(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="/$"||m==="/&"){if(s===0)return ro(o.nextSibling);s--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||s++}o=o.nextSibling}return null}function Q2(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(s===0)return o;s--}else m!=="/$"&&m!=="/&"||s++}o=o.previousSibling}return null}function Z2(o,s,m){switch(s=pm(m),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Ku(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);un(o)}var ao=new Map,J2=new Set;function hm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var gi=_.d;_.d={f:_T,r:AT,D:BT,C:kT,L:LT,m:HT,X:VT,S:FT,M:WT};function _T(){var o=gi.f(),s=sm();return o||s}function AT(o){var s=xt(o);s!==null&&s.tag===5&&s.type==="form"?px(s):gi.r(o)}var rc=typeof document>"u"?null:document;function e$(o,s,m){var y=rc;if(y&&typeof s=="string"&&s){var T=an(s);T='link[rel="'+o+'"][href="'+T+'"]',typeof m=="string"&&(T+='[crossorigin="'+m+'"]'),J2.has(T)||(J2.add(T),o={rel:o,crossOrigin:m,href:s},y.querySelector(T)===null&&(s=y.createElement("link"),fa(s,"link",o),Ze(s),y.head.appendChild(s)))}}function BT(o){gi.D(o),e$("dns-prefetch",o,null)}function kT(o,s){gi.C(o,s),e$("preconnect",o,s)}function LT(o,s,m){gi.L(o,s,m);var y=rc;if(y&&o&&s){var T='link[rel="preload"][as="'+an(s)+'"]';s==="image"&&m&&m.imageSrcSet?(T+='[imagesrcset="'+an(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(T+='[imagesizes="'+an(m.imageSizes)+'"]')):T+='[href="'+an(o)+'"]';var A=T;switch(s){case"style":A=ac(o);break;case"script":A=oc(o)}ao.has(A)||(o=g({rel:"preload",href:s==="image"&&m&&m.imageSrcSet?void 0:o,as:s},m),ao.set(A,o),y.querySelector(T)!==null||s==="style"&&y.querySelector(Uu(A))||s==="script"&&y.querySelector(qu(A))||(s=y.createElement("link"),fa(s,"link",o),Ze(s),y.head.appendChild(s)))}}function HT(o,s){gi.m(o,s);var m=rc;if(m&&o){var y=s&&typeof s.as=="string"?s.as:"script",T='link[rel="modulepreload"][as="'+an(y)+'"][href="'+an(o)+'"]',A=T;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=oc(o)}if(!ao.has(A)&&(o=g({rel:"modulepreload",href:o},s),ao.set(A,o),m.querySelector(T)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(qu(A)))return}y=m.createElement("link"),fa(y,"link",o),Ze(y),m.head.appendChild(y)}}}function FT(o,s,m){gi.S(o,s,m);var y=rc;if(y&&o){var T=Ye(y).hoistableStyles,A=ac(o);s=s||"default";var ee=T.get(A);if(!ee){var me={loading:0,preload:null};if(ee=y.querySelector(Uu(A)))me.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":s},m),(m=ao.get(A))&&Uh(o,m);var xe=ee=y.createElement("link");Ze(xe),fa(xe,"link",o),xe._p=new Promise(function(ke,Je){xe.onload=ke,xe.onerror=Je}),xe.addEventListener("load",function(){me.loading|=1}),xe.addEventListener("error",function(){me.loading|=2}),me.loading|=4,bm(ee,s,y)}ee={type:"stylesheet",instance:ee,count:1,state:me},T.set(A,ee)}}}function VT(o,s){gi.X(o,s);var m=rc;if(m&&o){var y=Ye(m).hoistableScripts,T=oc(o),A=y.get(T);A||(A=m.querySelector(qu(T)),A||(o=g({src:o,async:!0},s),(s=ao.get(T))&&qh(o,s),A=m.createElement("script"),Ze(A),fa(A,"link",o),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},y.set(T,A))}}function WT(o,s){gi.M(o,s);var m=rc;if(m&&o){var y=Ye(m).hoistableScripts,T=oc(o),A=y.get(T);A||(A=m.querySelector(qu(T)),A||(o=g({src:o,async:!0,type:"module"},s),(s=ao.get(T))&&qh(o,s),A=m.createElement("script"),Ze(A),fa(A,"link",o),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},y.set(T,A))}}function t$(o,s,m,y){var T=(T=Q.current)?hm(T):null;if(!T)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(s=ac(m.href),m=Ye(T).hoistableStyles,y=m.get(s),y||(y={type:"style",instance:null,count:0,state:null},m.set(s,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){o=ac(m.href);var A=Ye(T).hoistableStyles,ee=A.get(o);if(ee||(T=T.ownerDocument||T,ee={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(o,ee),(A=T.querySelector(Uu(o)))&&!A._p&&(ee.instance=A,ee.state.loading=5),ao.has(o)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},ao.set(o,m),A||KT(T,o,m,ee.state))),s&&y===null)throw Error(r(528,""));return ee}if(s&&y!==null)throw Error(r(529,""));return null;case"script":return s=m.async,m=m.src,typeof m=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=oc(m),m=Ye(T).hoistableScripts,y=m.get(s),y||(y={type:"script",instance:null,count:0,state:null},m.set(s,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function ac(o){return'href="'+an(o)+'"'}function Uu(o){return'link[rel="stylesheet"]['+o+"]"}function n$(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function KT(o,s,m,y){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?y.loading=1:(s=o.createElement("link"),y.preload=s,s.addEventListener("load",function(){return y.loading|=1}),s.addEventListener("error",function(){return y.loading|=2}),fa(s,"link",m),Ze(s),o.head.appendChild(s))}function oc(o){return'[src="'+an(o)+'"]'}function qu(o){return"script[async]"+o}function r$(o,s,m){if(s.count++,s.instance===null)switch(s.type){case"style":var y=o.querySelector('style[data-href~="'+an(m.href)+'"]');if(y)return s.instance=y,Ze(y),y;var T=g({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return y=(o.ownerDocument||o).createElement("style"),Ze(y),fa(y,"style",T),bm(y,m.precedence,o),s.instance=y;case"stylesheet":T=ac(m.href);var A=o.querySelector(Uu(T));if(A)return s.state.loading|=4,s.instance=A,Ze(A),A;y=n$(m),(T=ao.get(T))&&Uh(y,T),A=(o.ownerDocument||o).createElement("link"),Ze(A);var ee=A;return ee._p=new Promise(function(me,xe){ee.onload=me,ee.onerror=xe}),fa(A,"link",y),s.state.loading|=4,bm(A,m.precedence,o),s.instance=A;case"script":return A=oc(m.src),(T=o.querySelector(qu(A)))?(s.instance=T,Ze(T),T):(y=m,(T=ao.get(A))&&(y=g({},m),qh(y,T)),o=o.ownerDocument||o,T=o.createElement("script"),Ze(T),fa(T,"link",y),o.head.appendChild(T),s.instance=T);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(y=s.instance,s.state.loading|=4,bm(y,m.precedence,o));return s.instance}function bm(o,s,m){for(var y=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=y.length?y[y.length-1]:null,A=T,ee=0;ee<y.length;ee++){var me=y[ee];if(me.dataset.precedence===s)A=me;else if(A!==T)break}A?A.parentNode.insertBefore(o,A.nextSibling):(s=m.nodeType===9?m.head:m,s.insertBefore(o,s.firstChild))}function Uh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function qh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var ym=null;function a$(o,s,m){if(ym===null){var y=new Map,T=ym=new Map;T.set(m,y)}else T=ym,y=T.get(m),y||(y=new Map,T.set(m,y));if(y.has(o))return y;for(y.set(o,null),m=m.getElementsByTagName(o),T=0;T<m.length;T++){var A=m[T];if(!(A[qt]||A[ft]||o==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var ee=A.getAttribute(s)||"";ee=o+ee;var me=y.get(ee);me?me.push(A):y.set(ee,[A])}}return y}function o$(o,s,m){o=o.ownerDocument||o,o.head.insertBefore(m,s==="title"?o.querySelector("head > title"):null)}function UT(o,s,m){if(m===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return o=s.disabled,typeof s.precedence=="string"&&o==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function i$(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function qT(o,s,m,y){if(m.type==="stylesheet"&&(typeof y.media!="string"||matchMedia(y.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var T=ac(y.href),A=s.querySelector(Uu(T));if(A){s=A._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Cm.bind(o),s.then(o,o)),m.state.loading|=4,m.instance=A,Ze(A);return}A=s.ownerDocument||s,y=n$(y),(T=ao.get(T))&&Uh(y,T),A=A.createElement("link"),Ze(A);var ee=A;ee._p=new Promise(function(me,xe){ee.onload=me,ee.onerror=xe}),fa(A,"link",y),m.instance=A}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(m,s),(s=m.state.preload)&&(m.state.loading&3)===0&&(o.count++,m=Cm.bind(o),s.addEventListener("load",m),s.addEventListener("error",m))}}var Gh=0;function GT(o,s){return o.stylesheets&&o.count===0&&xm(o,o.stylesheets),0<o.count||0<o.imgCount?function(m){var y=setTimeout(function(){if(o.stylesheets&&xm(o,o.stylesheets),o.unsuspend){var A=o.unsuspend;o.unsuspend=null,A()}},6e4+s);0<o.imgBytes&&Gh===0&&(Gh=62500*jT());var T=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&xm(o,o.stylesheets),o.unsuspend)){var A=o.unsuspend;o.unsuspend=null,A()}},(o.imgBytes>Gh?50:800)+s);return o.unsuspend=m,function(){o.unsuspend=null,clearTimeout(y),clearTimeout(T)}}:null}function Cm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xm(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Sm=null;function xm(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Sm=new Map,s.forEach(XT,o),Sm=null,Cm.call(o))}function XT(o,s){if(!(s.state.loading&4)){var m=Sm.get(o);if(m)var y=m.get(null);else{m=new Map,Sm.set(o,m);for(var T=o.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<T.length;A++){var ee=T[A];(ee.nodeName==="LINK"||ee.getAttribute("media")!=="not all")&&(m.set(ee.dataset.precedence,ee),y=ee)}y&&m.set(null,y)}T=s.instance,ee=T.getAttribute("data-precedence"),A=m.get(ee)||y,A===y&&m.set(null,T),m.set(ee,T),this.count++,y=Cm.bind(this),T.addEventListener("load",y),T.addEventListener("error",y),A?A.parentNode.insertBefore(T,A.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(T,o.firstChild)),s.state.loading|=4}}var Gu={$$typeof:E,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function YT(o,s,m,y,T,A,ee,me,xe){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=Ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ot(0),this.hiddenUpdates=Ot(null),this.identifierPrefix=y,this.onUncaughtError=T,this.onCaughtError=A,this.onRecoverableError=ee,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=xe,this.incompleteTransitions=new Map}function l$(o,s,m,y,T,A,ee,me,xe,ke,Je,it){return o=new YT(o,s,m,ee,xe,ke,Je,it,me),s=1,A===!0&&(s|=24),A=Aa(3,null,null,s),o.current=A,A.stateNode=o,s=Rp(),s.refCount++,o.pooledCache=s,s.refCount++,A.memoizedState={element:y,isDehydrated:m,cache:s},Mp(A),o}function s$(o){return o?(o=_s,o):_s}function c$(o,s,m,y,T,A){T=s$(T),y.context===null?y.context=T:y.pendingContext=T,y=zi(s),y.payload={element:m},A=A===void 0?null:A,A!==null&&(y.callback=A),m=Di(o,y,s),m!==null&&(Na(m,o,s),Ou(m,o,s))}function u$(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var m=o.retryLane;o.retryLane=m!==0&&m<s?m:s}}function Xh(o,s){u$(o,s),(o=o.alternate)&&u$(o,s)}function d$(o){if(o.tag===13||o.tag===31){var s=Ml(o,67108864);s!==null&&Na(s,o,67108864),Xh(o,67108864)}}function f$(o){if(o.tag===13||o.tag===31){var s=Fa();s=Ue(s);var m=Ml(o,s);m!==null&&Na(m,o,s),Xh(o,s)}}var $m=!0;function QT(o,s,m,y){var T=z.T;z.T=null;var A=_.p;try{_.p=2,Yh(o,s,m,y)}finally{_.p=A,z.T=T}}function ZT(o,s,m,y){var T=z.T;z.T=null;var A=_.p;try{_.p=8,Yh(o,s,m,y)}finally{_.p=A,z.T=T}}function Yh(o,s,m,y){if($m){var T=Qh(y);if(T===null)_h(o,s,y,wm,m),v$(o,y);else if(eP(T,o,s,m,y))y.stopPropagation();else if(v$(o,y),s&4&&-1<JT.indexOf(o)){for(;T!==null;){var A=xt(T);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var ee=nt(A.pendingLanes);if(ee!==0){var me=A;for(me.pendingLanes|=2,me.entangledLanes|=2;ee;){var xe=1<<31-ye(ee);me.entanglements[1]|=xe,ee&=~xe}Fo(A),(Un&6)===0&&(im=Ce()+500,Fu(0))}}break;case 31:case 13:me=Ml(A,2),me!==null&&Na(me,A,2),sm(),Xh(A,2)}if(A=Qh(y),A===null&&_h(o,s,y,wm,m),A===T)break;T=A}T!==null&&y.stopPropagation()}else _h(o,s,y,null,m)}}function Qh(o){return o=Jr(o),Zh(o)}var wm=null;function Zh(o){if(wm=null,o=st(o),o!==null){var s=l(o);if(s===null)o=null;else{var m=s.tag;if(m===13){if(o=c(s),o!==null)return o;o=null}else if(m===31){if(o=u(s),o!==null)return o;o=null}else if(m===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return wm=o,null}function m$(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(De()){case Ae:return 2;case Qe:return 8;case Ke:case Fe:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Jh=!1,Ui=null,qi=null,Gi=null,Xu=new Map,Yu=new Map,Xi=[],JT="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 v$(o,s){switch(o){case"focusin":case"focusout":Ui=null;break;case"dragenter":case"dragleave":qi=null;break;case"mouseover":case"mouseout":Gi=null;break;case"pointerover":case"pointerout":Xu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yu.delete(s.pointerId)}}function Qu(o,s,m,y,T,A){return o===null||o.nativeEvent!==A?(o={blockedOn:s,domEventName:m,eventSystemFlags:y,nativeEvent:A,targetContainers:[T]},s!==null&&(s=xt(s),s!==null&&d$(s)),o):(o.eventSystemFlags|=y,s=o.targetContainers,T!==null&&s.indexOf(T)===-1&&s.push(T),o)}function eP(o,s,m,y,T){switch(s){case"focusin":return Ui=Qu(Ui,o,s,m,y,T),!0;case"dragenter":return qi=Qu(qi,o,s,m,y,T),!0;case"mouseover":return Gi=Qu(Gi,o,s,m,y,T),!0;case"pointerover":var A=T.pointerId;return Xu.set(A,Qu(Xu.get(A)||null,o,s,m,y,T)),!0;case"gotpointercapture":return A=T.pointerId,Yu.set(A,Qu(Yu.get(A)||null,o,s,m,y,T)),!0}return!1}function g$(o){var s=st(o.target);if(s!==null){var m=l(s);if(m!==null){if(s=m.tag,s===13){if(s=c(m),s!==null){o.blockedOn=s,Nt(o.priority,function(){f$(m)});return}}else if(s===31){if(s=u(m),s!==null){o.blockedOn=s,Nt(o.priority,function(){f$(m)});return}}else if(s===3&&m.stateNode.current.memoizedState.isDehydrated){o.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Em(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var m=Qh(o.nativeEvent);if(m===null){m=o.nativeEvent;var y=new m.constructor(m.type,m);Ur=y,m.target.dispatchEvent(y),Ur=null}else return s=xt(m),s!==null&&d$(s),o.blockedOn=m,!1;s.shift()}return!0}function p$(o,s,m){Em(o)&&m.delete(s)}function tP(){Jh=!1,Ui!==null&&Em(Ui)&&(Ui=null),qi!==null&&Em(qi)&&(qi=null),Gi!==null&&Em(Gi)&&(Gi=null),Xu.forEach(p$),Yu.forEach(p$)}function Om(o,s){o.blockedOn===s&&(o.blockedOn=null,Jh||(Jh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,tP)))}var Rm=null;function h$(o){Rm!==o&&(Rm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rm===o&&(Rm=null);for(var s=0;s<o.length;s+=3){var m=o[s],y=o[s+1],T=o[s+2];if(typeof y!="function"){if(Zh(y||m)===null)continue;break}var A=xt(m);A!==null&&(o.splice(s,3),s-=3,Qp(A,{pending:!0,data:T,method:m.method,action:y},y,T))}}))}function ic(o){function s(xe){return Om(xe,o)}Ui!==null&&Om(Ui,o),qi!==null&&Om(qi,o),Gi!==null&&Om(Gi,o),Xu.forEach(s),Yu.forEach(s);for(var m=0;m<Xi.length;m++){var y=Xi[m];y.blockedOn===o&&(y.blockedOn=null)}for(;0<Xi.length&&(m=Xi[0],m.blockedOn===null);)g$(m),m.blockedOn===null&&Xi.shift();if(m=(o.ownerDocument||o).$$reactFormReplay,m!=null)for(y=0;y<m.length;y+=3){var T=m[y],A=m[y+1],ee=T[lt]||null;if(typeof A=="function")ee||h$(m);else if(ee){var me=null;if(A&&A.hasAttribute("formAction")){if(T=A,ee=A[lt]||null)me=ee.formAction;else if(Zh(T)!==null)continue}else me=ee.action;typeof me=="function"?m[y+1]=me:(m.splice(y,3),y-=3),h$(m)}}}function b$(){function o(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(ee){return T=ee})},focusReset:"manual",scroll:"manual"})}function s(){T!==null&&(T(),T=null),y||setTimeout(m,20)}function m(){if(!y&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var y=!1,T=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(m,100),function(){y=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),T!==null&&(T(),T=null)}}}function e0(o){this._internalRoot=o}jm.prototype.render=e0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var m=s.current,y=Fa();c$(m,y,o,s,null,null)},jm.prototype.unmount=e0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;c$(o.current,2,null,o,null,null),sm(),s[At]=null}};function jm(o){this._internalRoot=o}jm.prototype.unstable_scheduleHydration=function(o){if(o){var s=Tt();o={blockedOn:null,target:o,priority:s};for(var m=0;m<Xi.length&&s!==0&&s<Xi[m].priority;m++);Xi.splice(m,0,o),m===0&&g$(o)}};var y$=t.version;if(y$!=="19.2.7")throw Error(r(527,y$,"19.2.7"));_.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(s),o=o!==null?v(o):null,o=o===null?null:o.stateNode,o};var nP={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Im=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Im.isDisabled&&Im.supportsFiber)try{_e=Im.inject(nP),Re=Im}catch{}}return Ju.createRoot=function(o,s){if(!a(o))throw Error(r(299));var m=!1,y="",T=Ox,A=Rx,ee=jx;return s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(y=s.identifierPrefix),s.onUncaughtError!==void 0&&(T=s.onUncaughtError),s.onCaughtError!==void 0&&(A=s.onCaughtError),s.onRecoverableError!==void 0&&(ee=s.onRecoverableError)),s=l$(o,1,!1,null,null,m,y,null,T,A,ee,b$),o[At]=s.current,Dh(o),new e0(s)},Ju.hydrateRoot=function(o,s,m){if(!a(o))throw Error(r(299));var y=!1,T="",A=Ox,ee=Rx,me=jx,xe=null;return m!=null&&(m.unstable_strictMode===!0&&(y=!0),m.identifierPrefix!==void 0&&(T=m.identifierPrefix),m.onUncaughtError!==void 0&&(A=m.onUncaughtError),m.onCaughtError!==void 0&&(ee=m.onCaughtError),m.onRecoverableError!==void 0&&(me=m.onRecoverableError),m.formState!==void 0&&(xe=m.formState)),s=l$(o,1,!0,s,m??null,y,T,xe,A,ee,me,b$),s.context=s$(null),m=s.current,y=Fa(),y=Ue(y),T=zi(y),T.callback=null,Di(m,T,y),m=y,s.current.lanes=m,ct(s,m),Fo(s),o[At]=s.current,Dh(o),new jm(s)},Ju.version="19.2.7",Ju}var I$;function dP(){if(I$)return r0.exports;I$=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(),r0.exports=uP(),r0.exports}var fP=dP(),l0={exports:{}};/*!
|
|
50
|
-
Copyright (c) 2018 Jed Watson.
|
|
51
|
-
Licensed under the MIT License (MIT), see
|
|
52
|
-
http://jedwatson.github.io/classnames
|
|
53
|
-
*/var N$;function mP(){return N$||(N$=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(l=a(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var u in l)t.call(l,u)&&l[u]&&(c=a(c,u));return c}function a(l,c){return c?l?l+" "+c:l+c:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(l0)),l0.exports}var vP=mP();const ue=To(vP);function be(){return be=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},be.apply(null,arguments)}function Et(e){"@babel/helpers - typeof";return Et=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},Et(e)}var gP=Symbol.for("react.element"),pP=Symbol.for("react.transitional.element"),hP=Symbol.for("react.fragment");function h3(e){return e&&Et(e)==="object"&&(e.$$typeof===gP||e.$$typeof===pP)&&e.type===hP}function Yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ve.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Yr(r)):h3(r)&&r.props?n=n.concat(Yr(r.props.children,t)):n.push(r))}),n}var Rb={},bP=function(t){};function yP(e,t){}function CP(e,t){}function SP(){Rb={}}function b3(e,t,n){!t&&!Rb[n]&&(e(!1,n),Rb[n]=!0)}function Xn(e,t){b3(yP,e,t)}function xP(e,t){b3(CP,e,t)}Xn.preMessage=bP;Xn.resetWarned=SP;Xn.noteOnce=xP;function $P(e,t){if(Et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Et(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y3(e){var t=$P(e,"string");return Et(t)=="symbol"?t:t+""}function ne(e,t,n){return(t=y3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M$(Object(n),!0).forEach(function(r){ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mo=p3();const Md=To(mo),wP=g3({__proto__:null,default:Md},[mo]);function Td(e){return e instanceof HTMLElement||e instanceof SVGElement}function tf(e){return e&&Et(e)==="object"&&Td(e.nativeElement)?e.nativeElement:Td(e)?e:null}function iv(e){var t=tf(e);if(t)return t;if(e instanceof ve.Component){var n;return(n=Md.findDOMNode)===null||n===void 0?void 0:n.call(Md,e)}return null}var s0={exports:{}},qn={};/**
|
|
54
|
-
* @license React
|
|
55
|
-
* react-is.production.min.js
|
|
56
|
-
*
|
|
57
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the MIT license found in the
|
|
60
|
-
* LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/var T$;function EP(){if(T$)return qn;T$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function x(h){if(typeof h=="object"&&h!==null){var $=h.$$typeof;switch($){case e:switch(h=h.type,h){case n:case a:case r:case f:case v:return h;default:switch(h=h&&h.$$typeof,h){case u:case c:case d:case p:case g:case l:return h;default:return $}}case t:return $}}}return qn.ContextConsumer=c,qn.ContextProvider=l,qn.Element=e,qn.ForwardRef=d,qn.Fragment=n,qn.Lazy=p,qn.Memo=g,qn.Portal=t,qn.Profiler=a,qn.StrictMode=r,qn.Suspense=f,qn.SuspenseList=v,qn.isAsyncMode=function(){return!1},qn.isConcurrentMode=function(){return!1},qn.isContextConsumer=function(h){return x(h)===c},qn.isContextProvider=function(h){return x(h)===l},qn.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},qn.isForwardRef=function(h){return x(h)===d},qn.isFragment=function(h){return x(h)===n},qn.isLazy=function(h){return x(h)===p},qn.isMemo=function(h){return x(h)===g},qn.isPortal=function(h){return x(h)===t},qn.isProfiler=function(h){return x(h)===a},qn.isStrictMode=function(h){return x(h)===r},qn.isSuspense=function(h){return x(h)===f},qn.isSuspenseList=function(h){return x(h)===v},qn.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===a||h===r||h===f||h===v||h===b||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===g||h.$$typeof===l||h.$$typeof===c||h.$$typeof===d||h.$$typeof===C||h.getModuleId!==void 0)},qn.typeOf=x,qn}var P$;function OP(){return P$||(P$=1,s0.exports=EP()),s0.exports}var c0=OP();function ys(e,t,n){var r=i.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var RP=Number(i.version.split(".")[0]),Pd=function(t,n){typeof t=="function"?t(n):Et(t)==="object"&&t&&"current"in t&&(t.current=n)},Mr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(l){n.forEach(function(c){Pd(c,l)})}},Ei=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ys(function(){return Mr.apply(void 0,n)},n,function(a,l){return a.length!==l.length||a.every(function(c,u){return c!==l[u]})})},Ro=function(t){var n,r;if(!t)return!1;if(s1(t)&&RP>=19)return!0;var a=c0.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==c0.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==c0.ForwardRef)};function s1(e){return i.isValidElement(e)&&!h3(e)}var jP=function(t){return s1(t)&&Ro(t)},Cl=function(t){if(t&&s1(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},jb=i.createContext(null);function IP(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),a=i.useRef([]),l=i.useContext(jb),c=i.useCallback(function(u,d,f){r.current+=1;var v=r.current;a.current.push({size:u,element:d,data:f}),Promise.resolve().then(function(){v===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(u,d,f)},[n,l]);return i.createElement(jb.Provider,{value:c},t)}var C3=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var c=l[a];n.call(r,c[1],c[0])}},t})()})(),Ib=typeof window<"u"&&typeof document<"u"&&window.document===document,jv=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),NP=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(jv):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),MP=2;function TP(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&u()}function c(){NP(l)}function u(){var d=Date.now();if(n){if(d-a<MP)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=d}return u}var PP=20,zP=["top","right","bottom","left","width","height","size","weight"],DP=typeof MutationObserver<"u",_P=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=TP(this.refresh.bind(this),PP)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ib||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DP?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ib||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=zP.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),S3=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),Tc=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||jv}),x3=rg(0,0,0,0);function Iv(e){return parseFloat(e)||0}function z$(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var l=e["border-"+a+"-width"];return r+Iv(l)},0)}function AP(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var l=a[r],c=e["padding-"+l];n[l]=Iv(c)}return n}function BP(e){var t=e.getBBox();return rg(0,0,t.width,t.height)}function kP(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return x3;var r=Tc(e).getComputedStyle(e),a=AP(r),l=a.left+a.right,c=a.top+a.bottom,u=Iv(r.width),d=Iv(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=z$(r,"left","right")+l),Math.round(d+c)!==n&&(d-=z$(r,"top","bottom")+c)),!HP(e)){var f=Math.round(u+l)-t,v=Math.round(d+c)-n;Math.abs(f)!==1&&(u-=f),Math.abs(v)!==1&&(d-=v)}return rg(a.left,a.top,u,d)}var LP=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Tc(e).SVGGraphicsElement}:function(e){return e instanceof Tc(e).SVGElement&&typeof e.getBBox=="function"}})();function HP(e){return e===Tc(e).document.documentElement}function FP(e){return Ib?LP(e)?BP(e):kP(e):x3}function VP(e){var t=e.x,n=e.y,r=e.width,a=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(l.prototype);return S3(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function rg(e,t,n,r){return{x:e,y:t,width:n,height:r}}var WP=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rg(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=FP(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),KP=(function(){function e(t,n){var r=VP(n);S3(this,{target:t,contentRect:r})}return e})(),UP=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new C3,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Tc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new WP(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Tc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new KP(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),$3=typeof WeakMap<"u"?new WeakMap:new C3,w3=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=_P.getInstance(),r=new UP(t,n,this);$3.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){w3.prototype[e]=function(){var t;return(t=$3.get(this))[e].apply(t,arguments)}});var qP=(function(){return typeof jv.ResizeObserver<"u"?jv.ResizeObserver:w3})(),sl=new Map;function GP(e){e.forEach(function(t){var n,r=t.target;(n=sl.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var E3=new qP(GP);function XP(e,t){sl.has(e)||(sl.set(e,new Set),E3.observe(e)),sl.get(e).add(t)}function YP(e,t){sl.has(e)&&(sl.get(e).delete(t),sl.get(e).size||(E3.unobserve(e),sl.delete(e)))}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D$(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,y3(r.key),r)}}function mr(e,t,n){return t&&D$(e.prototype,t),n&&D$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zd(e,t){return zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zd(e,t)}function Ya(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&&zd(e,t)}function cs(e){return cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cs(e)}function ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ag=function(){return!!e})()}function wt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O3(e,t){if(t&&(Et(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function po(e){var t=ag();return function(){var n,r=cs(e);if(t){var a=cs(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return O3(this,n)}}var QP=(function(e){Ya(n,e);var t=po(n);function n(){return fr(this,n),t.apply(this,arguments)}return mr(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function ZP(e,t){var n=e.children,r=e.disabled,a=i.useRef(null),l=i.useRef(null),c=i.useContext(jb),u=typeof n=="function",d=u?n(a):n,f=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!u&&i.isValidElement(d)&&Ro(d),g=v?Cl(d):null,p=Ei(g,a),b=function(){var $;return iv(a.current)||(a.current&&Et(a.current)==="object"?iv(($=a.current)===null||$===void 0?void 0:$.nativeElement):null)||iv(l.current)};i.useImperativeHandle(t,function(){return b()});var C=i.useRef(e);C.current=e;var x=i.useCallback(function(h){var $=C.current,w=$.onResize,E=$.data,j=h.getBoundingClientRect(),O=j.width,I=j.height,R=h.offsetWidth,M=h.offsetHeight,N=Math.floor(O),P=Math.floor(I);if(f.current.width!==N||f.current.height!==P||f.current.offsetWidth!==R||f.current.offsetHeight!==M){var B={width:N,height:P,offsetWidth:R,offsetHeight:M};f.current=B;var L=R===Math.round(O)?O:R,k=M===Math.round(I)?I:M,D=se(se({},B),{},{offsetWidth:L,offsetHeight:k});c==null||c(D,h,E),w&&Promise.resolve().then(function(){w(D,h)})}},[]);return i.useEffect(function(){var h=b();return h&&!r&&XP(h,x),function(){return YP(h,x)}},[a.current,r]),i.createElement(QP,{ref:l},v?i.cloneElement(d,{ref:p}):d)}var JP=i.forwardRef(ZP),e5="rc-observer-key";function t5(e,t){var n=e.children,r=typeof n=="function"?[n]:Yr(n);return r.map(function(a,l){var c=(a==null?void 0:a.key)||"".concat(e5,"-").concat(l);return i.createElement(JP,be({},e,{key:c,ref:l===0?t:void 0}),a)})}var va=i.forwardRef(t5);va.Collection=IP;function Nb(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 n5(e){if(Array.isArray(e))return Nb(e)}function R3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c1(e,t){if(e){if(typeof e=="string")return Nb(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)?Nb(e,t):void 0}}function r5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e){return n5(e)||R3(e)||c1(e)||r5()}var j3=function(t){return+setTimeout(t,16)},I3=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(j3=function(t){return window.requestAnimationFrame(t)},I3=function(t){return window.cancelAnimationFrame(t)});var _$=0,u1=new Map;function N3(e){u1.delete(e)}var Yt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_$+=1;var r=_$;function a(l){if(l===0)N3(r),t();else{var c=j3(function(){a(l-1)});u1.set(r,c)}}return a(n),r};Yt.cancel=function(e){var t=u1.get(e);return N3(e),I3(t)};function a5(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,Ne(a))},r=(...a)=>{t===null&&(t=Yt(n(a)))};return r.cancel=()=>{Yt.cancel(t),t=null},r}function M3(e){if(Array.isArray(e))return e}function o5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,c,u=[],d=!0,f=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(v){f=!0,a=v}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}function T3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return M3(e)||o5(e,t)||c1(e,t)||T3()}function Dd(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function oa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Mb(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var A$="data-rc-order",B$="data-rc-priority",i5="rc-util-key",Tb=new Map;function P3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):i5}function og(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function l5(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function d1(e){return Array.from((Tb.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function z3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!oa())return null;var n=t.csp,r=t.prepend,a=t.priority,l=a===void 0?0:a,c=l5(r),u=c==="prependQueue",d=document.createElement("style");d.setAttribute(A$,c),u&&l&&d.setAttribute(B$,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var f=og(t),v=f.firstChild;if(r){if(u){var g=(t.styles||d1(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(A$)))return!1;var b=Number(p.getAttribute(B$)||0);return l>=b});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,v)}else f.appendChild(d);return d}function D3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=og(t);return(t.styles||d1(n)).find(function(r){return r.getAttribute(P3(t))===e})}function _d(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=D3(e,t);if(n){var r=og(t);r.removeChild(n)}}function s5(e,t){var n=Tb.get(e);if(!n||!Mb(document,n)){var r=z3("",t),a=r.parentNode;Tb.set(e,a),e.removeChild(r)}}function yi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=og(n),a=d1(r),l=se(se({},n),{},{styles:a});s5(r,l);var c=D3(t,l);if(c){var u,d;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&c.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var f;c.nonce=(f=l.csp)===null||f===void 0?void 0:f.nonce}return c.innerHTML!==e&&(c.innerHTML=e),c}var v=z3(e,l);return v.setAttribute(P3(l),t),v}function c5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lt(e,t){if(e==null)return{};var n,r,a=c5(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function jo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(l);if(Xn(!d,"Warning: There may be circular references"),d)return!1;if(l===c)return!0;if(n&&u>1)return!1;r.add(l);var f=u+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(var v=0;v<l.length;v++)if(!a(l[v],c[v],f))return!1;return!0}if(l&&c&&Et(l)==="object"&&Et(c)==="object"){var g=Object.keys(l);return g.length!==Object.keys(c).length?!1:g.every(function(p){return a(l[p],c[p],f)})}return!1}return a(e,t)}var u5="%";function Pb(e){return e.join(u5)}var d5=(function(){function e(t){fr(this,e),ne(this,"instanceId",void 0),ne(this,"cache",new Map),ne(this,"extracted",new Set),this.instanceId=t}return mr(e,[{key:"get",value:function(n){return this.opGet(Pb(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Pb(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),l=r(a);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),Pc="data-token-hash",$o="data-css-hash",cl="__cssinjs_instance__";function f5(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat($o,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[cl]=a[cl]||e,a[cl]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat($o,"]"))).forEach(function(a){var l=a.getAttribute($o);if(r[l]){if(a[cl]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[l]=!0})}return new d5(e)}var nf=i.createContext({hashPriority:"low",cache:f5(),defaultCache:!0});function m5(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var f1=(function(){function e(){fr(this,e),ne(this,"cache",void 0),ne(this,"keys",void 0),ne(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return mr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c={map:this.cache};return n.forEach(function(u){if(!c)c=void 0;else{var d;c=(d=c)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=c)!==null&&r!==void 0&&r.value&&l&&(c.value[1]=this.cacheCallTimes++),(a=c)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(f,v){var g=fe(f,2),p=g[1];return a.internalGet(v)[1]<p?[v,a.internalGet(v)[1]]:f},[this.keys[0],this.cacheCallTimes]),c=fe(l,1),u=c[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(f,v){if(v===n.length-1)d.set(f,{value:[r,a.cacheCallTimes++]});else{var g=d.get(f);g?g.map||(g.map=new Map):d.set(f,{map:new Map}),d=d.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var l;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(l=a.value)===null||l===void 0?void 0:l[0]}var c=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),c}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!m5(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();ne(f1,"MAX_CACHE_SIZE",20);ne(f1,"MAX_CACHE_OFFSET",5);var k$=0,_3=(function(){function e(t){fr(this,e),ne(this,"derivatives",void 0),ne(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k$,t.length===0&&(t.length>0,void 0),k$+=1}return mr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),u0=new f1;function zb(e){var t=Array.isArray(e)?e:[e];return u0.has(t)||u0.set(t,new _3(t)),u0.get(t)}var v5=new WeakMap,d0={};function g5(e,t){for(var n=v5,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(d0)||n.set(d0,e()),n.get(d0)}var L$=new WeakMap;function Sd(e){var t=L$.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof _3?t+=r.id:r&&Et(r)==="object"?t+=Sd(r):t+=r}),t=Dd(t),L$.set(e,t)),t}function H$(e,t){return Dd("".concat(t,"_").concat(Sd(e)))}var Db=oa();function ie(e){return typeof e=="number"?"".concat(e,"px"):e}function Nv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var l=se(se({},r),{},ne(ne({},Pc,t),$o,n)),c=Object.keys(l).map(function(u){var d=l[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var lv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},p5=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var l=fe(a,2),c=l[0],u=l[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},A3=function(t,n,r){var a={},l={};return Object.entries(t).forEach(function(c){var u,d,f=fe(c,2),v=f[0],g=f[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[v])l[v]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[v])){var p,b=lv(v,r==null?void 0:r.prefix);a[b]=typeof g=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[v])?"".concat(g,"px"):String(g),l[v]="var(".concat(b,")")}}),[l,p5(a,n,{scope:r==null?void 0:r.scope})]},F$=oa()?i.useLayoutEffect:i.useEffect,nn=function(t,n){var r=i.useRef(!0);F$(function(){return t(r.current)},n),F$(function(){return r.current=!1,function(){r.current=!0}},[])},as=function(t,n){nn(function(r){if(!r)return t()},n)},h5=se({},ng),V$=h5.useInsertionEffect,b5=function(t,n,r){i.useMemo(t,r),nn(function(){return n(!0)},r)},y5=V$?function(e,t,n){return V$(function(){return e(),t()},n)}:b5,C5=se({},ng),S5=C5.useInsertionEffect,x5=function(t){var n=[],r=!1;function a(l){r||n.push(l)}return i.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),a},$5=function(){return function(t){t()}},w5=typeof S5<"u"?x5:$5;function m1(e,t,n,r,a){var l=i.useContext(nf),c=l.cache,u=[e].concat(Ne(t)),d=Pb(u),f=w5([d]),v=function(C){c.opUpdate(d,function(x){var h=x||[void 0,void 0],$=fe(h,2),w=$[0],E=w===void 0?0:w,j=$[1],O=j,I=O||n(),R=[E,I];return C?C(R):R})};i.useMemo(function(){v()},[d]);var g=c.opGet(d),p=g[1];return y5(function(){a==null||a(p)},function(b){return v(function(C){var x=fe(C,2),h=x[0],$=x[1];return b&&h===0&&(a==null||a(p)),[h+1,$]}),function(){c.opUpdate(d,function(C){var x=C||[],h=fe(x,2),$=h[0],w=$===void 0?0:$,E=h[1],j=w-1;return j===0?(f(function(){(b||!c.opGet(d))&&(r==null||r(E,!1))}),null):[w-1,E]})}},[d]),p}var E5={},O5="css",Ql=new Map;function R5(e){Ql.set(e,(Ql.get(e)||0)+1)}function j5(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Pc,'="').concat(e,'"]'));n.forEach(function(r){if(r[cl]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var I5=0;function N5(e,t){Ql.set(e,(Ql.get(e)||0)-1);var n=new Set;Ql.forEach(function(r,a){r<=0&&n.add(a)}),Ql.size-n.size>I5&&n.forEach(function(r){j5(r,t),Ql.delete(r)})}var M5=function(t,n,r,a){var l=r.getDerivativeToken(t),c=se(se({},l),n);return a&&(c=a(c)),c},B3="token";function T5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.useContext(nf),a=r.cache.instanceId,l=r.container,c=n.salt,u=c===void 0?"":c,d=n.override,f=d===void 0?E5:d,v=n.formatToken,g=n.getComputedToken,p=n.cssVar,b=g5(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),C=Sd(b),x=Sd(f),h=p?Sd(p):"",$=m1(B3,[u,e.id,C,x,h],function(){var w,E=g?g(b,f,e):M5(b,f,e,v),j=se({},E),O="";if(p){var I=A3(E,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),R=fe(I,2);E=R[0],O=R[1]}var M=H$(E,u);E._tokenKey=M,j._tokenKey=H$(j,u);var N=(w=p==null?void 0:p.key)!==null&&w!==void 0?w:M;E._themeKey=N,R5(N);var P="".concat(O5,"-").concat(Dd(M));return E._hashId=P,[E,P,j,O,(p==null?void 0:p.key)||""]},function(w){N5(w[0]._themeKey,a)},function(w){var E=fe(w,4),j=E[0],O=E[3];if(p&&O){var I=yi(O,Dd("css-variables-".concat(j._themeKey)),{mark:$o,prepend:"queue",attachTo:l,priority:-999});I[cl]=a,I.setAttribute(Pc,j._themeKey)}});return $}var P5=function(t,n,r){var a=fe(t,5),l=a[2],c=a[3],u=a[4],d=r||{},f=d.plain;if(!c)return null;var v=l._tokenKey,g=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},b=Nv(c,u,v,p,f);return[g,v,b]},z5={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},k3="comm",L3="rule",H3="decl",D5="@import",_5="@namespace",A5="@keyframes",B5="@layer",k5=Math.abs,xd=String.fromCharCode;function F3(e){return e.trim()}function _b(e,t,n){return e.replace(t,n)}function Oc(e,t){return e.charCodeAt(t)|0}function zc(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function L5(e){return e.length}function Nm(e,t){return t.push(e),e}var ig=1,Dc=1,V3=0,vo=0,Vr=0,qc="";function v1(e,t,n,r,a,l,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:ig,column:Dc,length:c,return:"",siblings:u}}function H5(){return Vr}function F5(){return Vr=vo>0?Oc(qc,--vo):0,Dc--,Vr===10&&(Dc=1,ig--),Vr}function wo(){return Vr=vo<V3?Oc(qc,vo++):0,Dc++,Vr===10&&(Dc=1,ig++),Vr}function ul(){return Oc(qc,vo)}function sv(){return vo}function lg(e,t){return zc(qc,e,t)}function Ad(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 V5(e){return ig=Dc=1,V3=Uo(qc=e),vo=0,[]}function W5(e){return qc="",e}function f0(e){return F3(lg(vo-1,Ab(e===91?e+2:e===40?e+1:e)))}function K5(e){for(;(Vr=ul())&&Vr<33;)wo();return Ad(e)>2||Ad(Vr)>3?"":" "}function U5(e,t){for(;--t&&wo()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return lg(e,sv()+(t<6&&ul()==32&&wo()==32))}function Ab(e){for(;wo();)switch(Vr){case e:return vo;case 34:case 39:e!==34&&e!==39&&Ab(Vr);break;case 40:e===41&&Ab(e);break;case 92:wo();break}return vo}function q5(e,t){for(;wo()&&e+Vr!==57;)if(e+Vr===84&&ul()===47)break;return"/*"+lg(t,vo-1)+"*"+xd(e===47?e:wo())}function G5(e){for(;!Ad(ul());)wo();return lg(e,vo)}function X5(e){return W5(cv("",null,null,null,[""],e=V5(e),0,[0],e))}function cv(e,t,n,r,a,l,c,u,d){for(var f=0,v=0,g=c,p=0,b=0,C=0,x=1,h=1,$=1,w=0,E=0,j="",O=a,I=l,R=r,M=j;h;)switch(C=E,E=wo()){case 40:C!=108&&Oc(M,g-1)==58?(w++,M+="("):M+=f0(E);break;case 41:w--,M+=")";break;case 34:case 39:case 91:M+=f0(E);break;case 9:case 10:case 13:case 32:if(w>0){M+=xd(E);break}M+=K5(C);break;case 92:M+=U5(sv()-1,7);continue;case 47:switch(ul()){case 42:case 47:Nm(Y5(q5(wo(),sv()),t,n,d),d),(Ad(C||1)==5||Ad(ul()||1)==5)&&Uo(M)&&zc(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*x:u[f++]=Uo(M)*$;case 125*x:case 59:case 0:if(w>0&&E){M+=xd(E);break}switch(E){case 0:case 125:h=0;case 59+v:$==-1&&(M=_b(M,/\f/g,"")),b>0&&(Uo(M)-g||x===0)&&Nm(b>32?K$(M+";",r,n,g-1,d):K$(_b(M," ","")+";",r,n,g-2,d),d);break;case 59:M+=";";default:if(Nm(R=W$(M,t,n,f,v,a,u,j,O=[],I=[],g,l),l),E===123)if(v===0)cv(M,t,R,R,O,l,g,u,I);else{switch(p){case 99:if(Oc(M,3)===110)break;case 108:if(Oc(M,2)===97)break;default:v=0;case 100:case 109:case 115:}v?cv(e,R,R,r&&Nm(W$(e,R,R,0,0,a,u,j,a,O=[],g,I),I),a,I,g,u,r?O:I):cv(M,R,R,R,[""],I,0,u,I)}}f=v=b=0,x=$=1,j=M="",g=c;break;case 58:g=1+Uo(M),b=C;default:if(x<1){if(E==123)--x;else if(E==125&&x++==0&&F5()==125)continue}switch(M+=xd(E),E*x){case 38:$=v>0?1:(M+="\f",-1);break;case 44:if(w>0)break;u[f++]=(Uo(M)-1)*$,$=1;break;case 64:ul()===45&&(M+=f0(wo())),p=ul(),v=g=Uo(j=M+=G5(sv())),E++;break;case 45:C===45&&Uo(M)==2&&(x=0)}}return l}function W$(e,t,n,r,a,l,c,u,d,f,v,g){for(var p=a-1,b=a===0?l:[""],C=L5(b),x=0,h=0,$=0;x<r;++x)for(var w=0,E=zc(e,p+1,p=k5(h=c[x])),j=e;w<C;++w)(j=F3(h>0?b[w]+" "+E:_b(E,/&\f/g,b[w])))&&(d[$++]=j);return v1(e,t,n,a===0?L3:u,d,f,v,g)}function Y5(e,t,n,r){return v1(e,t,n,k3,xd(H5()),zc(e,2,-2),0,r)}function K$(e,t,n,r,a){return v1(e,t,n,H3,zc(e,0,r),zc(e,r+1,-1),r,a)}function Bb(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Q5(e,t,n,r){switch(e.type){case B5:if(e.children.length)break;case D5:case _5:case H3:return e.return=e.return||e.value;case k3:return"";case A5:return e.return=e.value+"{"+Bb(e.children,r)+"}";case L3:if(!Uo(e.value=e.props.join(",")))return""}return Uo(n=Bb(e.children,r))?e.return=e.value+"{"+n+"}":""}var U$="data-ant-cssinjs-cache-path",W3="_FILE_STYLE__",os,K3=!0;function Z5(){if(!os&&(os={},oa())){var e=document.createElement("div");e.className=U$,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var l=a.split(":"),c=fe(l,2),u=c[0],d=c[1];os[u]=d});var n=document.querySelector("style[".concat(U$,"]"));if(n){var r;K3=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function J5(e){return Z5(),!!os[e]}function ez(e){var t=os[e],n=null;if(t&&oa())if(K3)n=W3;else{var r=document.querySelector("style[".concat($o,'="').concat(os[e],'"]'));r?n=r.innerHTML:delete os[e]}return[n,t]}var tz="_skip_check_",U3="_multi_value_";function uv(e){var t=Bb(X5(e),Q5);return t.replace(/\{%%%\:[^;];}/g,";")}function nz(e){return Et(e)==="object"&&e&&(tz in e||U3 in e)}function q$(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(c){var u,d=c.trim().split(/\s+/),f=d[0]||"",v=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(v).concat(a).concat(f.slice(v.length)),[f].concat(Ne(d.slice(1))).join(" ")});return l.join(",")}var rz=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer;n.path;var f=n.hashPriority,v=n.transformers,g=v===void 0?[]:v;n.linters;var p="",b={};function C($){var w=$.getName(u);if(!b[w]){var E=e($.style,n,{root:!1,parentSelectors:c}),j=fe(E,1),O=j[0];b[w]="@keyframes ".concat($.getName(u)).concat(O)}}function x($){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(E){Array.isArray(E)?x(E,w):E&&w.push(E)}),w}var h=x(Array.isArray(t)?t:[t]);return h.forEach(function($){var w=typeof $=="string"&&!a?{}:$;if(typeof w=="string")p+="".concat(w,`
|
|
64
|
-
`);else if(w._keyframe)C(w);else{var E=g.reduce(function(j,O){var I;return(O==null||(I=O.visit)===null||I===void 0?void 0:I.call(O,j))||j},w);Object.keys(E).forEach(function(j){var O=E[j];if(Et(O)==="object"&&O&&(j!=="animationName"||!O._keyframe)&&!nz(O)){var I=!1,R=j.trim(),M=!1;(a||l)&&u?R.startsWith("@")?I=!0:R==="&"?R=q$("",u,f):R=q$(j,u,f):a&&!u&&(R==="&"||R==="")&&(R="",M=!0);var N=e(O,n,{root:M,injectHash:I,parentSelectors:[].concat(Ne(c),[R])}),P=fe(N,2),B=P[0],L=P[1];b=se(se({},b),L),p+="".concat(R).concat(B)}else{let H=function(z,_){var F=z.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),W=_;!z5[z]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),z==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(C(_),W=_.getName(u)),p+="".concat(F,":").concat(W,";")};var k,D=(k=O==null?void 0:O.value)!==null&&k!==void 0?k:O;Et(O)==="object"&&O!==null&&O!==void 0&&O[U3]&&Array.isArray(D)?D.forEach(function(z){H(j,z)}):H(j,D)}})}}),a?d&&(p&&(p="@layer ".concat(d.name," {").concat(p,"}")),d.dependencies&&(b["@layer ".concat(d.name)]=d.dependencies.map(function($){return"@layer ".concat($,", ").concat(d.name,";")}).join(`
|
|
65
|
-
`))):p="{".concat(p,"}"),[p,b]};function q3(e,t){return Dd("".concat(e.join("%")).concat(t))}function az(){return null}var G3="style";function kb(e,t){var n=e.token,r=e.path,a=e.hashId,l=e.layer,c=e.nonce,u=e.clientOnly,d=e.order,f=d===void 0?0:d,v=i.useContext(nf),g=v.autoClear;v.mock;var p=v.defaultCache,b=v.hashPriority,C=v.container,x=v.ssrInline,h=v.transformers,$=v.linters,w=v.cache,E=v.layer,j=n._tokenKey,O=[j];E&&O.push("layer"),O.push.apply(O,Ne(r));var I=Db,R=m1(G3,O,function(){var L=O.join("|");if(J5(L)){var k=ez(L),D=fe(k,2),H=D[0],z=D[1];if(H)return[H,j,z,{},u,f]}var _=t(),F=rz(_,{hashId:a,hashPriority:b,layer:E?l:void 0,path:r.join("-"),transformers:h,linters:$}),W=fe(F,2),q=W[0],V=W[1],G=uv(q),K=q3(O,G);return[G,j,K,V,u,f]},function(L,k){var D=fe(L,3),H=D[2];(k||g)&&Db&&_d(H,{mark:$o,attachTo:C})},function(L){var k=fe(L,4),D=k[0];k[1];var H=k[2],z=k[3];if(I&&D!==W3){var _={mark:$o,prepend:E?!1:"queue",attachTo:C,priority:f},F=typeof c=="function"?c():c;F&&(_.csp={nonce:F});var W=[],q=[];Object.keys(z).forEach(function(G){G.startsWith("@layer")?W.push(G):q.push(G)}),W.forEach(function(G){yi(uv(z[G]),"_layer-".concat(G),se(se({},_),{},{prepend:!0}))});var V=yi(D,H,_);V[cl]=w.instanceId,V.setAttribute(Pc,j),q.forEach(function(G){yi(uv(z[G]),"_effect-".concat(G),_)})}}),M=fe(R,3),N=M[0],P=M[1],B=M[2];return function(L){var k;return!x||I||!p?k=i.createElement(az,null):k=i.createElement("style",be({},ne(ne({},Pc,P),$o,B),{dangerouslySetInnerHTML:{__html:N}})),i.createElement(i.Fragment,null,k,L)}}var oz=function(t,n,r){var a=fe(t,6),l=a[0],c=a[1],u=a[2],d=a[3],f=a[4],v=a[5],g=r||{},p=g.plain;if(f)return null;var b=l,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return b=Nv(l,c,u,C,p),d&&Object.keys(d).forEach(function(x){if(!n[x]){n[x]=!0;var h=uv(d[x]),$=Nv(h,c,"_effect-".concat(x),C,p);x.startsWith("@layer")?b=$+b:b+=$}}),[v,u,b]},X3="cssVar",iz=function(t,n){var r=t.key,a=t.prefix,l=t.unitless,c=t.ignore,u=t.token,d=t.scope,f=d===void 0?"":d,v=i.useContext(nf),g=v.cache.instanceId,p=v.container,b=u._tokenKey,C=[].concat(Ne(t.path),[r,f,b]),x=m1(X3,C,function(){var h=n(),$=A3(h,r,{prefix:a,unitless:l,ignore:c,scope:f}),w=fe($,2),E=w[0],j=w[1],O=q3(C,j);return[E,j,O,r]},function(h){var $=fe(h,3),w=$[2];Db&&_d(w,{mark:$o,attachTo:p})},function(h){var $=fe(h,3),w=$[1],E=$[2];if(w){var j=yi(w,E,{mark:$o,prepend:"queue",attachTo:p,priority:-999});j[cl]=g,j.setAttribute(Pc,r)}});return x},lz=function(t,n,r){var a=fe(t,4),l=a[1],c=a[2],u=a[3],d=r||{},f=d.plain;if(!l)return null;var v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},p=Nv(l,u,c,g,f);return[v,c,p]};ne(ne(ne({},G3,oz),B3,P5),X3,lz);var Jt=(function(){function e(t,n){fr(this,e),ne(this,"name",void 0),ne(this,"style",void 0),ne(this,"_keyframe",!0),this.name=t,this.style=n}return mr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function lc(e){return e.notSplit=!0,e}lc(["borderTop","borderBottom"]),lc(["borderTop"]),lc(["borderBottom"]),lc(["borderLeft","borderRight"]),lc(["borderLeft"]),lc(["borderRight"]);var g1=i.createContext({});function Y3(e){return M3(e)||R3(e)||c1(e)||T3()}function $a(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Q3(e,t,n,r){if(!t.length)return n;var a=Y3(t),l=a[0],c=a.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Ne(e):u=se({},e),r&&n===void 0&&c.length===1?delete u[l][c[0]]:u[l]=Q3(u[l],c,n,r),u}function uo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!$a(e,t.slice(0,-1))?e:Q3(e,t,n,r)}function sz(e){return Et(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function G$(e){return Array.isArray(e)?[]:{}}var cz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Sc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=G$(t[0]);return t.forEach(function(a){function l(c,u){var d=new Set(u),f=$a(a,c),v=Array.isArray(f);if(v||sz(f)){if(!d.has(f)){d.add(f);var g=$a(r,c);v?r=uo(r,c,[]):(!g||Et(g)!=="object")&&(r=uo(r,c,G$(f))),cz(f).forEach(function(p){l([].concat(Ne(c),[p]),d)})}}else r=uo(r,c,f)}l([])}),r}function uz(){}const dz=i.createContext({}),Jo=()=>{const e=()=>{};return e.deprecated=uz,e},Z3=i.createContext(void 0);var J3={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"},fz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},mz=se(se({},fz),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const e6={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Mv={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},mz),timePickerLocale:Object.assign({},e6)},Va="${label} is not a valid ${type}",go={locale:"en",Pagination:J3,DatePicker:Mv,TimePicker:e6,Calendar:Mv,global:{placeholder:"Please select",close:"Close"},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:Va,method:Va,array:Va,object:Va,number:Va,date:Va,boolean:Va,integer:Va,float:Va,regexp:Va,email:Va,url:Va,hex:Va},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let dv=Object.assign({},go.Modal),fv=[];const X$=()=>fv.reduce((e,t)=>Object.assign(Object.assign({},e),t),go.Modal);function vz(e){if(e){const t=Object.assign({},e);return fv.push(t),dv=X$(),()=>{fv=fv.filter(n=>n!==t),dv=X$()}}dv=Object.assign({},go.Modal)}function t6(){return dv}const p1=i.createContext(void 0),za=(e,t)=>{const n=i.useContext(p1),r=i.useMemo(()=>{var l;const c=t||go[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof c=="function"?c():c),u||{})},[e,t,n]),a=i.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?go.locale:l},[n]);return[r,a]},gz="internalMark",pz=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>vz(t==null?void 0:t.Modal),[t]);const a=i.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return i.createElement(p1.Provider,{value:a},n)},n6={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"},Bd=Object.assign(Object.assign({},n6),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
66
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
67
|
-
'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}),ta=Math.round;function m0(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Y$=(e,t,n)=>n===0?e:e/100;function ed(e,t){const n=t||255;return e>n?n:e<0?0:e}class bn{constructor(t){ne(this,"isValid",!0),ne(this,"r",0),ne(this,"g",0),ne(this,"b",0),ne(this,"a",1),ne(this,"_h",void 0),ne(this,"_s",void 0),ne(this,"_l",void 0),ne(this,"_v",void 0),ne(this,"_max",void 0),ne(this,"_min",void 0),ne(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let l=function(c){return a.startsWith(c)};var r=l;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):l("rgb")?this.fromRgbString(a):l("hsl")?this.fromHslString(a):(l("hsv")||l("hsb"))&&this.fromHsvString(a)}else if(t instanceof bn)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=ed(t.r),this.g=ed(t.g),this.b=ed(t.b),this.a=typeof t.a=="number"?ed(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(l){const c=l/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ta(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 a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,l=u=>(r[u]-this[u])*a+this[u],c={r:ta(l("r")),g:ta(l("g")),b:ta(l("b")),a:ta(l("a")*100)/100};return this._c(c)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=l=>ta((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=ta(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ta(this.getSaturation()*100),r=ta(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 a=this.clone();return a[t]=ed(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,l){return parseInt(n[a]+n[l||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const p=ta(r*255);this.r=p,this.g=p,this.b=p}let l=0,c=0,u=0;const d=t/60,f=(1-Math.abs(2*r-1))*n,v=f*(1-Math.abs(d%2-1));d>=0&&d<1?(l=f,c=v):d>=1&&d<2?(l=v,c=f):d>=2&&d<3?(c=f,u=v):d>=3&&d<4?(c=v,u=f):d>=4&&d<5?(l=v,u=f):d>=5&&d<6&&(l=f,u=v);const g=r-f/2;this.r=ta((l+g)*255),this.g=ta((c+g)*255),this.b=ta((u+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const l=ta(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const c=t/60,u=Math.floor(c),d=c-u,f=ta(r*(1-n)*255),v=ta(r*(1-n*d)*255),g=ta(r*(1-n*(1-d))*255);switch(u){case 0:this.g=g,this.b=f;break;case 1:this.r=v,this.b=f;break;case 2:this.r=f,this.b=g;break;case 3:this.r=f,this.g=v;break;case 4:this.r=g,this.g=f;break;case 5:default:this.g=f,this.b=v;break}}fromHsvString(t){const n=m0(t,Y$);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=m0(t,Y$);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=m0(t,(r,a)=>a.includes("%")?ta(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Mm=2,Q$=.16,hz=.05,bz=.05,yz=.15,r6=5,a6=4,Cz=[{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 Z$(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Mm*t:Math.round(e.h)+Mm*t:r=n?Math.round(e.h)+Mm*t:Math.round(e.h)-Mm*t,r<0?r+=360:r>=360&&(r-=360),r}function J$(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Q$*t:t===a6?r=e.s+Q$:r=e.s+hz*t,r>1&&(r=1),n&&t===r6&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ew(e,t,n){var r;return n?r=e.v+bz*t:r=e.v-yz*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function kd(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new bn(e),a=r.toHsv(),l=r6;l>0;l-=1){var c=new bn({h:Z$(a,l,!0),s:J$(a,l,!0),v:ew(a,l,!0)});n.push(c)}n.push(r);for(var u=1;u<=a6;u+=1){var d=new bn({h:Z$(a,u),s:J$(a,u),v:ew(a,u)});n.push(d)}return t.theme==="dark"?Cz.map(function(f){var v=f.index,g=f.amount;return new bn(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(f){return f.toHexString()})}var Rc={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"},Lb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Lb.primary=Lb[5];var Hb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Hb.primary=Hb[5];var Fb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Fb.primary=Fb[5];var Tv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Tv.primary=Tv[5];var Vb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Vb.primary=Vb[5];var Wb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Wb.primary=Wb[5];var Kb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Kb.primary=Kb[5];var Ub=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ub.primary=Ub[5];var _c=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_c.primary=_c[5];var qb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];qb.primary=qb[5];var Gb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Gb.primary=Gb[5];var Xb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Xb.primary=Xb[5];var Yb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Yb.primary=Yb[5];var v0={red:Lb,volcano:Hb,orange:Fb,gold:Tv,yellow:Vb,lime:Wb,green:Kb,cyan:Ub,blue:_c,geekblue:qb,purple:Gb,magenta:Xb,grey:Yb};function Sz(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:l,colorInfo:c,colorPrimary:u,colorBgBase:d,colorTextBase:f}=e,v=t(u),g=t(r),p=t(a),b=t(l),C=t(c),x=n(d,f),h=e.colorLink||e.colorInfo,$=t(h),w=new bn(b[1]).mix(new bn(b[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:w,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new bn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const xz=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function $z(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},xz(r))}const wz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function mv(e){return(e+8)/e}function Ez(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,l=e*Math.pow(Math.E,a/5),c=r>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:mv(n)}))}const Oz=e=>{const t=Ez(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),a=n[1],l=n[0],c=n[2],u=r[1],d=r[0],f=r[2];return{fontSizeSM:l,fontSize:a,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:f,lineHeightSM:d,fontHeight:Math.round(u*a),fontHeightLG:Math.round(f*c),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Rz(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 oo=(e,t)=>new bn(e).setA(t).toRgbString(),td=(e,t)=>new bn(e).darken(t).toHexString(),jz=e=>{const t=kd(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]}},Iz=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:oo(r,.88),colorTextSecondary:oo(r,.65),colorTextTertiary:oo(r,.45),colorTextQuaternary:oo(r,.25),colorFill:oo(r,.15),colorFillSecondary:oo(r,.06),colorFillTertiary:oo(r,.04),colorFillQuaternary:oo(r,.02),colorBgSolid:oo(r,1),colorBgSolidHover:oo(r,.75),colorBgSolidActive:oo(r,.95),colorBgLayout:td(n,4),colorBgContainer:td(n,0),colorBgElevated:td(n,0),colorBgSpotlight:oo(r,.85),colorBgBlur:"transparent",colorBorder:td(n,15),colorBorderSecondary:td(n,6)}};function Nz(e){Rc.pink=Rc.magenta,v0.pink=v0.magenta;const t=Object.keys(n6).map(n=>{const r=e[n]===Rc[n]?v0[n]:kd(e[n]);return Array.from({length:10},()=>1).reduce((a,l,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Sz(e,{generateColorPalettes:jz,generateNeutralColorPalettes:Iz})),Oz(e.fontSize)),Rz(e)),wz(e)),$z(e))}const o6=zb(Nz),Qb={token:Bd,override:{override:Bd},hashed:!0},i6=ve.createContext(Qb),Ld="ant",sg="anticon",Mz=["outlined","borderless","filled","underlined"],Tz=(e,t)=>t||(e?`${Ld}-${e}`:Ld),Rt=i.createContext({getPrefixCls:Tz,iconPrefixCls:sg}),{Consumer:mse}=Rt,tw={};function vr(e){const t=i.useContext(Rt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,l=t[e];return Object.assign(Object.assign({classNames:tw,styles:tw},l),{getPrefixCls:n,direction:r,getPopupContainer:a})}const Pz=`-ant-${Date.now()}-${Math.random()}`;function zz(e,t){const n={},r=(c,u)=>{let d=c.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},a=(c,u)=>{const d=new bn(c),f=kd(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=f[1],n[`${u}-color-hover`]=f[4],n[`${u}-color-active`]=f[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=f[0],n[`${u}-color-deprecated-border`]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");const c=new bn(t.primaryColor),u=kd(c.toRgbString());u.forEach((f,v)=>{n[`primary-${v+1}`]=f}),n["primary-color-deprecated-l-35"]=r(c,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(c,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(c,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(c,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(c,f=>f.setA(f.a*.12));const d=new bn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,f=>f.setA(f.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,f=>f.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
68
|
-
:root {
|
|
69
|
-
${Object.keys(n).map(c=>`--${e}-${c}: ${n[c]};`).join(`
|
|
70
|
-
`)}
|
|
71
|
-
}
|
|
72
|
-
`.trim()}function Dz(e,t){const n=zz(e,t);oa()&&yi(n,`${Pz}-dynamic-theme`)}const Wr=i.createContext(!1),h1=({children:e,disabled:t})=>{const n=i.useContext(Wr);return i.createElement(Wr.Provider,{value:t??n},e)},us=i.createContext(void 0),_z=({children:e,size:t})=>{const n=i.useContext(us);return i.createElement(us.Provider,{value:t||n},e)};function Az(){const e=i.useContext(Wr),t=i.useContext(us);return{componentDisabled:e,componentSize:t}}var l6=mr(function e(){fr(this,e)}),s6="CALC_UNIT",Bz=new RegExp(s6,"g");function g0(e){return typeof e=="number"?"".concat(e).concat(s6):e}var kz=(function(e){Ya(n,e);var t=po(n);function n(r,a){var l;fr(this,n),l=t.call(this),ne(wt(l),"result",""),ne(wt(l),"unitlessCssVar",void 0),ne(wt(l),"lowPriority",void 0);var c=Et(r);return l.unitlessCssVar=a,r instanceof n?l.result="(".concat(r.result,")"):c==="number"?l.result=g0(r):c==="string"&&(l.result=r),l}return mr(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(g0(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(g0(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var l=this,c=a||{},u=c.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(f){return l.result.includes(f)})&&(d=!1),this.result=this.result.replace(Bz,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(l6),Lz=(function(e){Ya(n,e);var t=po(n);function n(r){var a;return fr(this,n),a=t.call(this),ne(wt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return mr(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(l6),Hz=function(t,n){var r=t==="css"?kz:Lz;return function(a){return new r(a,n)}},nw=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 Xt(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function ds(e){var t=i.useRef(!1),n=i.useState(e),r=fe(n,2),a=r[0],l=r[1];i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(u,d){d&&t.current||l(u)}return[a,c]}function p0(e){return e!==void 0}function yn(e,t){var n=t||{},r=n.defaultValue,a=n.value,l=n.onChange,c=n.postState,u=ds(function(){return p0(a)?a:p0(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=fe(u,2),f=d[0],v=d[1],g=a!==void 0?a:f,p=c?c(g):g,b=Xt(l),C=ds([g]),x=fe(C,2),h=x[0],$=x[1];as(function(){var E=h[0];f!==E&&b(f,E)},[h]),as(function(){p0(a)||v(a)},[a]);var w=Xt(function(E,j){v(E,j),$([g],j)});return[p,w]}function rw(e,t,n,r){var a=se({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=fe(u,2),f=d[0],v=d[1];if(a!=null&&a[f]||a!=null&&a[v]){var g;(g=a[v])!==null&&g!==void 0||(a[v]=a==null?void 0:a[f])}})}var c=se(se({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var c6=typeof CSSINJS_STATISTIC<"u",Zb=!0;function tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!c6)return Object.assign.apply(Object,[{}].concat(t));Zb=!1;var r={};return t.forEach(function(a){if(Et(a)==="object"){var l=Object.keys(a);l.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),Zb=!0,r}var aw={};function Fz(){}var Vz=function(t){var n,r=t,a=Fz;return c6&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(Zb){var d;(d=n)===null||d===void 0||d.add(u)}return c[u]}}),a=function(c,u){var d;aw[c]={global:Array.from(n),component:se(se({},(d=aw[c])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:a}};function ow(e,t,n){if(typeof n=="function"){var r;return n(tn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Wz(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(l){return ie(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(l){return ie(l)}).join(","),")")}}}var Kz=1e3*60*10,Uz=(function(){function e(){fr(this,e),ne(this,"map",new Map),ne(this,"objectIDMap",new WeakMap),ne(this,"nextID",0),ne(this,"lastAccessBeat",new Map),ne(this,"accessBeat",0)}return mr(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(l){return l&&Et(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(Et(l),"_").concat(l)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,l){r-a>Kz&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),iw=new Uz;function qz(e,t){return ve.useMemo(function(){var n=iw.get(t);if(n)return n;var r=e();return iw.set(t,r),r},t)}var Gz=function(){return{}};function Xz(e){var t=e.useCSP,n=t===void 0?Gz:t,r=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function d(p,b,C,x){var h=Array.isArray(p)?p[0]:p;function $(M){return"".concat(String(h)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var w=(x==null?void 0:x.unitless)||{},E=typeof u=="function"?u(p):{},j=se(se({},E),{},ne({},$("zIndexPopup"),!0));Object.keys(w).forEach(function(M){j[$(M)]=w[M]});var O=se(se({},x),{},{unitless:j,prefixToken:$}),I=v(p,b,C,O),R=f(h,C,O);return function(M){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,P=I(M,N),B=fe(P,2),L=B[1],k=R(N),D=fe(k,2),H=D[0],z=D[1];return[H,L,z]}}function f(p,b,C){var x=C.unitless,h=C.injectStyle,$=h===void 0?!0:h,w=C.prefixToken,E=C.ignore,j=function(R){var M=R.rootCls,N=R.cssVar,P=N===void 0?{}:N,B=r(),L=B.realToken;return iz({path:[p],prefix:P.prefix,key:P.key,unitless:x,ignore:E,token:L,scope:M},function(){var k=ow(p,L,b),D=rw(p,L,k,{deprecatedTokens:C==null?void 0:C.deprecatedTokens});return Object.keys(k).forEach(function(H){D[w(H)]=D[H],delete D[H]}),D}),null},O=function(R){var M=r(),N=M.cssVar;return[function(P){return $&&N?ve.createElement(ve.Fragment,null,ve.createElement(j,{rootCls:R,cssVar:N,component:p}),P):P},N==null?void 0:N.key]};return O}function v(p,b,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(p)?p:[p,p],$=fe(h,1),w=$[0],E=h.join("-"),j=e.layer||{name:"antd"};return function(O){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,R=r(),M=R.theme,N=R.realToken,P=R.hashId,B=R.token,L=R.cssVar,k=a(),D=k.rootPrefixCls,H=k.iconPrefixCls,z=n(),_=L?"css":"js",F=qz(function(){var U=new Set;return L&&Object.keys(x.unitless||{}).forEach(function(J){U.add(lv(J,L.prefix)),U.add(lv(J,nw(w,L.prefix)))}),Hz(_,U)},[_,w,L==null?void 0:L.prefix]),W=Wz(_),q=W.max,V=W.min,G={theme:M,token:B,hashId:P,nonce:function(){return z.nonce},clientOnly:x.clientOnly,layer:j,order:x.order||-999};typeof l=="function"&&kb(se(se({},G),{},{clientOnly:!1,path:["Shared",D]}),function(){return l(B,{prefix:{rootPrefixCls:D,iconPrefixCls:H},csp:z})});var K=kb(se(se({},G),{},{path:[E,O,H]}),function(){if(x.injectStyle===!1)return[];var U=Vz(B),J=U.token,Q=U.flush,te=ow(w,N,C),Y=".".concat(O),ae=rw(w,N,te,{deprecatedTokens:x.deprecatedTokens});L&&te&&Et(te)==="object"&&Object.keys(te).forEach(function(oe){te[oe]="var(".concat(lv(oe,nw(w,L.prefix)),")")});var re=tn(J,{componentCls:Y,prefixCls:O,iconCls:".".concat(H),antCls:".".concat(D),calc:F,max:q,min:V},L?te:ae),Z=b(re,{hashId:P,prefixCls:O,rootPrefixCls:D,iconPrefixCls:H});Q(w,ae);var X=typeof c=="function"?c(re,O,I,x.resetFont):null;return[x.resetStyle===!1?null:X,Z]});return[K,P]}}function g(p,b,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=v(p,b,C,se({resetStyle:!1,order:-998},x)),$=function(E){var j=E.prefixCls,O=E.rootCls,I=O===void 0?j:O;return h(j,I),null};return $}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:v}}const vl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Yz="5.29.3";function h0(e){return e>=0&&e<=255}function md(e,t){const{r:n,g:r,b:a,a:l}=new bn(e).toRgb();if(l<1)return e;const{r:c,g:u,b:d}=new bn(t).toRgb();for(let f=.01;f<=1;f+=.01){const v=Math.round((n-c*(1-f))/f),g=Math.round((r-u*(1-f))/f),p=Math.round((a-d*(1-f))/f);if(h0(v)&&h0(g)&&h0(p))return new bn({r:v,g,b:p,a:Math.round(f*100)/100}).toRgbString()}return new bn({r:n,g:r,b:a,a:1}).toRgbString()}var Qz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function u6(e){const{override:t}=e,n=Qz(e,["override"]),r=Object.assign({},t);Object.keys(Bd).forEach(p=>{delete r[p]});const a=Object.assign(Object.assign({},n),r),l=480,c=576,u=768,d=992,f=1200,v=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:md(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:md(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:md(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:md(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
73
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
74
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
75
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
76
|
-
`,boxShadowSecondary:`
|
|
77
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
80
|
-
`,boxShadowTertiary:`
|
|
81
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
82
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
83
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
84
|
-
`,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:v-1,screenXXL:v,screenXXLMin:v,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
85
|
-
0 1px 2px -2px ${new bn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
86
|
-
0 3px 6px 0 ${new bn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
87
|
-
0 5px 12px 4px ${new bn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
88
|
-
`,boxShadowDrawerRight:`
|
|
89
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
90
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
91
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
92
|
-
`,boxShadowDrawerLeft:`
|
|
93
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
94
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
95
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
96
|
-
`,boxShadowDrawerUp:`
|
|
97
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
98
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
99
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
100
|
-
`,boxShadowDrawerDown:`
|
|
101
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
102
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
103
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
104
|
-
`,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)}var lw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const d6={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},Zz={motionBase:!0,motionUnit:!0},Jz={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},f6=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,l=lw(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=u6(c),l&&Object.entries(l).forEach(([u,d])=>{const{theme:f}=d,v=lw(d,["theme"]);let g=v;f&&(g=f6(Object.assign(Object.assign({},c),v),{override:v},f)),c[u]=g}),c};function la(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ve.useContext(i6),l=`${Yz}-${t||""}`,c=n||o6,[u,d,f]=T5(c,[Bd,e],{salt:l,override:r,getComputedToken:f6,formatToken:u6,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:d6,ignore:Zz,preserve:Jz}});return[c,f,t?d:"",u,a]}const Ga={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dn=(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}),Cs=()=>({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"}}),qo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),eD=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"}}}),tD=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),c),{[a]:c})}},Io=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Xa=(e,t)=>({"&:focus-visible":Io(e,t)}),m6=e=>({[`.${e}`]:Object.assign(Object.assign({},Cs()),{[`.${e} .${e}-icon`]:{display:"block"}})}),b1=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Xa(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:sn,genComponentStyleHook:v6,genSubStyleComponent:Gc}=Xz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=i.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=la();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=i.useContext(Rt);return e??{}},getResetStyles:(e,t)=>{var n;const r=eD(e);return[r,{"&":r},m6((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:sg)]},getCommonStyle:tD,getCompUnitless:()=>d6});function cg(e,t){return vl.reduce((n,r)=>{const a=e[`${r}1`],l=e[`${r}3`],c=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:l,darkColor:c,textColor:u}))},{})}const nD=(e,t)=>{const[n,r]=la();return kb({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>m6(e))},rD=Object.assign({},ng),{useId:sw}=rD,aD=()=>"",oD=typeof sw>"u"?aD:sw;function iD(e,t,n){var r;Jo();const a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},Qb),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Qb.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=oD();return ys(()=>{var u,d;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(p=>{f[p]=Object.assign(Object.assign({},f[p]),e.components[p])});const v=`css-var-${c.replace(/:/g,"")}`,g=((u=a.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:g})},[a,l],(u,d)=>u.some((f,v)=>{const g=d[v];return!jo(f,g,!0)}))}var lD=["children"],g6=i.createContext({});function sD(e){var t=e.children,n=Lt(e,lD);return i.createElement(g6.Provider,{value:n},t)}var cD=(function(e){Ya(n,e);var t=po(n);function n(){return fr(this,n),t.apply(this,arguments)}return mr(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function uD(e){var t=i.useReducer(function(u){return u+1},0),n=fe(t,2),r=n[1],a=i.useRef(e),l=Xt(function(){return a.current}),c=Xt(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[l,c]}var al="none",Tm="appear",Pm="enter",zm="leave",cw="none",xo="prepare",xc="start",$c="active",y1="end",p6="prepared";function uw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function dD(e,t){var 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}var fD=dD(oa(),typeof window<"u"?window:{}),h6={};if(oa()){var mD=document.createElement("div");h6=mD.style}var Dm={};function b6(e){if(Dm[e])return Dm[e];var t=fD[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var l=n[a];if(Object.prototype.hasOwnProperty.call(t,l)&&l in h6)return Dm[e]=t[l],Dm[e]}return""}var y6=b6("animationend"),C6=b6("transitionend"),S6=!!(y6&&C6),dw=y6||"animationend",fw=C6||"transitionend";function mw(e,t){if(!e)return null;if(Et(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const vD=(function(e){var t=i.useRef();function n(a){a&&(a.removeEventListener(fw,e),a.removeEventListener(dw,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(fw,e),a.addEventListener(dw,e),t.current=a)}return i.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var x6=oa()?i.useLayoutEffect:i.useEffect;const gD=(function(){var e=i.useRef(null);function t(){Yt.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Yt(function(){a<=1?r({isCanceled:function(){return l!==e.current}}):n(r,a-1)});e.current=l}return i.useEffect(function(){return function(){t()}},[]),[n,t]});var pD=[xo,xc,$c,y1],hD=[xo,p6],$6=!1,bD=!0;function w6(e){return e===$c||e===y1}const yD=(function(e,t,n){var r=ds(cw),a=fe(r,2),l=a[0],c=a[1],u=gD(),d=fe(u,2),f=d[0],v=d[1];function g(){c(xo,!0)}var p=t?hD:pD;return x6(function(){if(l!==cw&&l!==y1){var b=p.indexOf(l),C=p[b+1],x=n(l);x===$6?c(C,!0):C&&f(function(h){function $(){h.isCanceled()||c(C,!0)}x===!0?$():Promise.resolve(x).then($)})}},[e,l]),i.useEffect(function(){return function(){v()}},[]),[g,l]});function CD(e,t,n,r){var a=r.motionEnter,l=a===void 0?!0:a,c=r.motionAppear,u=c===void 0?!0:c,d=r.motionLeave,f=d===void 0?!0:d,v=r.motionDeadline,g=r.motionLeaveImmediately,p=r.onAppearPrepare,b=r.onEnterPrepare,C=r.onLeavePrepare,x=r.onAppearStart,h=r.onEnterStart,$=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,j=r.onLeaveActive,O=r.onAppearEnd,I=r.onEnterEnd,R=r.onLeaveEnd,M=r.onVisibleChanged,N=ds(),P=fe(N,2),B=P[0],L=P[1],k=uD(al),D=fe(k,2),H=D[0],z=D[1],_=ds(null),F=fe(_,2),W=F[0],q=F[1],V=H(),G=i.useRef(!1),K=i.useRef(null);function U(){return n()}var J=i.useRef(!1);function Q(){z(al),q(null,!0)}var te=Xt(function(pe){var we=H();if(we!==al){var Se=U();if(!(pe&&!pe.deadline&&pe.target!==Se)){var Ce=J.current,De;we===Tm&&Ce?De=O==null?void 0:O(Se,pe):we===Pm&&Ce?De=I==null?void 0:I(Se,pe):we===zm&&Ce&&(De=R==null?void 0:R(Se,pe)),Ce&&De!==!1&&Q()}}}),Y=vD(te),ae=fe(Y,1),re=ae[0],Z=function(we){switch(we){case Tm:return ne(ne(ne({},xo,p),xc,x),$c,w);case Pm:return ne(ne(ne({},xo,b),xc,h),$c,E);case zm:return ne(ne(ne({},xo,C),xc,$),$c,j);default:return{}}},X=i.useMemo(function(){return Z(V)},[V]),oe=yD(V,!e,function(pe){if(pe===xo){var we=X[xo];return we?we(U()):$6}if(ce in X){var Se;q(((Se=X[ce])===null||Se===void 0?void 0:Se.call(X,U(),null))||null)}return ce===$c&&V!==al&&(re(U()),v>0&&(clearTimeout(K.current),K.current=setTimeout(function(){te({deadline:!0})},v))),ce===p6&&Q(),bD}),le=fe(oe,2),de=le[0],ce=le[1],ge=w6(ce);J.current=ge;var he=i.useRef(null);x6(function(){if(!(G.current&&he.current===t)){L(t);var pe=G.current;G.current=!0;var we;!pe&&t&&u&&(we=Tm),pe&&t&&l&&(we=Pm),(pe&&!t&&f||!pe&&g&&!t&&f)&&(we=zm);var Se=Z(we);we&&(e||Se[xo])?(z(we),de()):z(al),he.current=t}},[t]),i.useEffect(function(){(V===Tm&&!u||V===Pm&&!l||V===zm&&!f)&&z(al)},[u,l,f]),i.useEffect(function(){return function(){G.current=!1,clearTimeout(K.current)}},[]);var Oe=i.useRef(!1);i.useEffect(function(){B&&(Oe.current=!0),B!==void 0&&V===al&&((Oe.current||B)&&(M==null||M(B)),Oe.current=!0)},[B,V]);var je=W;return X[xo]&&ce===xc&&(je=se({transition:"none"},je)),[V,ce,je,B??t]}function SD(e){var t=e;Et(e)==="object"&&(t=e.transitionSupport);function n(a,l){return!!(a.motionName&&t&&l!==!1)}var r=i.forwardRef(function(a,l){var c=a.visible,u=c===void 0?!0:c,d=a.removeOnLeave,f=d===void 0?!0:d,v=a.forceRender,g=a.children,p=a.motionName,b=a.leavedClassName,C=a.eventProps,x=i.useContext(g6),h=x.motion,$=n(a,h),w=i.useRef(),E=i.useRef();function j(){try{return w.current instanceof HTMLElement?w.current:iv(E.current)}catch{return null}}var O=CD($,u,j,a),I=fe(O,4),R=I[0],M=I[1],N=I[2],P=I[3],B=i.useRef(P);P&&(B.current=!0);var L=i.useCallback(function(F){w.current=F,Pd(l,F)},[l]),k,D=se(se({},C),{},{visible:u});if(!g)k=null;else if(R===al)P?k=g(se({},D),L):!f&&B.current&&b?k=g(se(se({},D),{},{className:b}),L):v||!f&&!b?k=g(se(se({},D),{},{style:{display:"none"}}),L):k=null;else{var H;M===xo?H="prepare":w6(M)?H="active":M===xc&&(H="start");var z=mw(p,"".concat(R,"-").concat(H));k=g(se(se({},D),{},{className:ue(mw(p,R),ne(ne({},z,z&&H),p,typeof p=="string")),style:N}),L)}if(i.isValidElement(k)&&Ro(k)){var _=Cl(k);_||(k=i.cloneElement(k,{ref:L}))}return i.createElement(cD,{ref:E},k)});return r.displayName="CSSMotion",r}const Zr=SD(S6);var Jb="add",ey="keep",ty="remove",b0="removed";function xD(e){var t;return e&&Et(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function ny(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(xD)}function $D(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,l=ny(e),c=ny(t);l.forEach(function(f){for(var v=!1,g=r;g<a;g+=1){var p=c[g];if(p.key===f.key){r<g&&(n=n.concat(c.slice(r,g).map(function(b){return se(se({},b),{},{status:Jb})})),r=g),n.push(se(se({},p),{},{status:ey})),r+=1,v=!0;break}}v||n.push(se(se({},f),{},{status:ty}))}),r<a&&(n=n.concat(c.slice(r).map(function(f){return se(se({},f),{},{status:Jb})})));var u={};n.forEach(function(f){var v=f.key;u[v]=(u[v]||0)+1});var d=Object.keys(u).filter(function(f){return u[f]>1});return d.forEach(function(f){n=n.filter(function(v){var g=v.key,p=v.status;return g!==f||p!==ty}),n.forEach(function(v){v.key===f&&(v.status=ey)})}),n}var wD=["component","children","onVisibleChanged","onAllRemoved"],ED=["status"],OD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function RD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zr,n=(function(r){Ya(l,r);var a=po(l);function l(){var c;fr(this,l);for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=a.call.apply(a,[this].concat(d)),ne(wt(c),"state",{keyEntities:[]}),ne(wt(c),"removeKey",function(v){c.setState(function(g){var p=g.keyEntities.map(function(b){return b.key!==v?b:se(se({},b),{},{status:b0})});return{keyEntities:p}},function(){var g=c.state.keyEntities,p=g.filter(function(b){var C=b.status;return C!==b0}).length;p===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return mr(l,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,f=this.props,v=f.component,g=f.children,p=f.onVisibleChanged;f.onAllRemoved;var b=Lt(f,wD),C=v||i.Fragment,x={};return OD.forEach(function(h){x[h]=b[h],delete b[h]}),delete b.keys,i.createElement(C,b,d.map(function(h,$){var w=h.status,E=Lt(h,ED),j=w===Jb||w===ey;return i.createElement(t,be({},x,{key:E.key,visible:j,eventProps:E,onVisibleChanged:function(I){p==null||p(I,{key:E.key}),I||u.removeKey(E.key)}}),function(O,I){return g(se(se({},O),{},{index:$}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var f=u.keys,v=d.keyEntities,g=ny(f),p=$D(v,g);return{keyEntities:p.filter(function(b){var C=v.find(function(x){var h=x.key;return b.key===h});return!(C&&C.status===b0&&b.status===ty)})}}}]),l})(i.Component);return ne(n,"defaultProps",{component:"div"}),n}const C1=RD(S6),vw=i.createContext(!0);function jD(e){const t=i.useContext(vw),{children:n}=e,[,r]=la(),{motion:a}=r,l=i.useRef(!1);return l.current||(l.current=t!==a),l.current?i.createElement(vw.Provider,{value:a},i.createElement(sD,{motion:a},n)):n}const ID=()=>null;var ND=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const MD=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Pv,E6,O6,R6;function vv(){return Pv||Ld}function TD(){return E6||sg}function PD(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const zD=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Pv=t),n!==void 0&&(E6=n),"holderRender"in e&&(R6=a),r&&(PD(r)?Dz(vv(),r):O6=r)},j6=()=>({getPrefixCls:(e,t)=>t||(e?`${vv()}-${e}`:vv()),getIconPrefixCls:TD,getRootPrefixCls:()=>Pv||vv(),getTheme:()=>O6,holderRender:R6}),DD=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:l,form:c,locale:u,componentSize:d,direction:f,space:v,splitter:g,virtual:p,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,popupOverflow:x,legacyLocale:h,parentContext:$,iconPrefixCls:w,theme:E,componentDisabled:j,segmented:O,statistic:I,spin:R,calendar:M,carousel:N,cascader:P,collapse:B,typography:L,checkbox:k,descriptions:D,divider:H,drawer:z,skeleton:_,steps:F,image:W,layout:q,list:V,mentions:G,modal:K,progress:U,result:J,slider:Q,breadcrumb:te,menu:Y,pagination:ae,input:re,textArea:Z,empty:X,badge:oe,radio:le,rate:de,switch:ce,transfer:ge,avatar:he,message:Oe,tag:je,table:pe,card:we,tabs:Se,timeline:Ce,timePicker:De,upload:Ae,notification:Qe,tree:Ke,colorPicker:Fe,datePicker:Ge,rangePicker:Te,flex:Ee,wave:_e,dropdown:Re,warning:Pe,tour:ye,tooltip:$e,popover:Me,popconfirm:Le,floatButton:tt,floatButtonGroup:yt,variant:We,inputNumber:nt,treeSelect:dt}=e,at=i.useCallback((Nt,Vt)=>{const{prefixCls:ft}=e;if(Vt)return Vt;const lt=ft||$.getPrefixCls("");return Nt?`${lt}-${Nt}`:lt},[$.getPrefixCls,e.prefixCls]),pt=w||$.iconPrefixCls||sg,zt=n||$.csp;nD(pt,zt);const Ot=iD(E,$.theme,{prefixCls:at("")}),ct={csp:zt,autoInsertSpaceInButton:r,alert:a,anchor:l,locale:u||h,direction:f,space:v,splitter:g,virtual:p,popupMatchSelectWidth:C??b,popupOverflow:x,getPrefixCls:at,iconPrefixCls:pt,theme:Ot,segmented:O,statistic:I,spin:R,calendar:M,carousel:N,cascader:P,collapse:B,typography:L,checkbox:k,descriptions:D,divider:H,drawer:z,skeleton:_,steps:F,image:W,input:re,textArea:Z,layout:q,list:V,mentions:G,modal:K,progress:U,result:J,slider:Q,breadcrumb:te,menu:Y,pagination:ae,empty:X,badge:oe,radio:le,rate:de,switch:ce,transfer:ge,avatar:he,message:Oe,tag:je,table:pe,card:we,tabs:Se,timeline:Ce,timePicker:De,upload:Ae,notification:Qe,tree:Ke,colorPicker:Fe,datePicker:Ge,rangePicker:Te,flex:Ee,wave:_e,dropdown:Re,warning:Pe,tour:ye,tooltip:$e,popover:Me,popconfirm:Le,floatButton:tt,floatButtonGroup:yt,variant:We,inputNumber:nt,treeSelect:dt},$t=Object.assign({},$);Object.keys(ct).forEach(Nt=>{ct[Nt]!==void 0&&($t[Nt]=ct[Nt])}),MD.forEach(Nt=>{const Vt=e[Nt];Vt&&($t[Nt]=Vt)}),typeof r<"u"&&($t.button=Object.assign({autoInsertSpace:r},$t.button));const St=ys(()=>$t,$t,(Nt,Vt)=>{const ft=Object.keys(Nt),lt=Object.keys(Vt);return ft.length!==lt.length||ft.some(At=>Nt[At]!==Vt[At])}),{layer:et}=i.useContext(nf),Ve=i.useMemo(()=>({prefixCls:pt,csp:zt,layer:et?"antd":void 0}),[pt,zt,et]);let Ue=i.createElement(i.Fragment,null,i.createElement(ID,{dropdownMatchSelectWidth:b}),t);const mt=i.useMemo(()=>{var Nt,Vt,ft,lt;return Sc(((Nt=go.Form)===null||Nt===void 0?void 0:Nt.defaultValidateMessages)||{},((ft=(Vt=St.locale)===null||Vt===void 0?void 0:Vt.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((lt=St.form)===null||lt===void 0?void 0:lt.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[St,c==null?void 0:c.validateMessages]);Object.keys(mt).length>0&&(Ue=i.createElement(Z3.Provider,{value:mt},Ue)),u&&(Ue=i.createElement(pz,{locale:u,_ANT_MARK__:gz},Ue)),Ue=i.createElement(g1.Provider,{value:Ve},Ue),d&&(Ue=i.createElement(_z,{size:d},Ue)),Ue=i.createElement(jD,null,Ue);const Tt=i.useMemo(()=>{const Nt=Ot||{},{algorithm:Vt,token:ft,components:lt,cssVar:At}=Nt,Ut=ND(Nt,["algorithm","token","components","cssVar"]),rn=Vt&&(!Array.isArray(Vt)||Vt.length>0)?zb(Vt):o6,Qt={};Object.entries(lt||{}).forEach(([qt,un])=>{const st=Object.assign({},un);"algorithm"in st&&(st.algorithm===!0?st.theme=rn:(Array.isArray(st.algorithm)||typeof st.algorithm=="function")&&(st.theme=zb(st.algorithm)),delete st.algorithm),Qt[qt]=st});const pn=Object.assign(Object.assign({},Bd),ft);return Object.assign(Object.assign({},Ut),{theme:rn,token:pn,components:Qt,override:Object.assign({override:pn},Qt),cssVar:At})},[Ot]);return E&&(Ue=i.createElement(i6.Provider,{value:Tt},Ue)),St.warning&&(Ue=i.createElement(dz.Provider,{value:St.warning},Ue)),j!==void 0&&(Ue=i.createElement(h1,{disabled:j},Ue)),i.createElement(Rt.Provider,{value:St},Ue)},Po=e=>{const t=i.useContext(Rt),n=i.useContext(p1);return i.createElement(DD,Object.assign({parentContext:t,legacyLocale:n},e))};Po.ConfigContext=Rt;Po.SizeContext=us;Po.config=zD;Po.useConfig=Az;Object.defineProperty(Po,"SizeContext",{get:()=>us});var _D={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"};function I6(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function AD(e){return I6(e)instanceof ShadowRoot}function zv(e){return AD(e)?I6(e):null}function BD(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function kD(e,t){Xn(e,"[@ant-design/icons] ".concat(t))}function gw(e){return Et(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Et(e.icon)==="object"||typeof e.icon=="function")}function pw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[BD(n)]=r}return t},{})}function ry(e,t,n){return n?ve.createElement(e.tag,se(se({key:t},pw(e.attrs)),n),(e.children||[]).map(function(r,a){return ry(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ve.createElement(e.tag,se({key:t},pw(e.attrs)),(e.children||[]).map(function(r,a){return ry(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function N6(e){return kd(e)[0]}function M6(e){return e?Array.isArray(e)?e:[e]:[]}var LD=`
|
|
105
|
-
.anticon {
|
|
106
|
-
display: inline-flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
color: inherit;
|
|
109
|
-
font-style: normal;
|
|
110
|
-
line-height: 0;
|
|
111
|
-
text-align: center;
|
|
112
|
-
text-transform: none;
|
|
113
|
-
vertical-align: -0.125em;
|
|
114
|
-
text-rendering: optimizeLegibility;
|
|
115
|
-
-webkit-font-smoothing: antialiased;
|
|
116
|
-
-moz-osx-font-smoothing: grayscale;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.anticon > * {
|
|
120
|
-
line-height: 1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.anticon svg {
|
|
124
|
-
display: inline-block;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.anticon::before {
|
|
128
|
-
display: none;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.anticon .anticon-icon {
|
|
132
|
-
display: block;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.anticon[tabindex] {
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.anticon-spin::before,
|
|
140
|
-
.anticon-spin {
|
|
141
|
-
display: inline-block;
|
|
142
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
143
|
-
animation: loadingCircle 1s infinite linear;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
@-webkit-keyframes loadingCircle {
|
|
147
|
-
100% {
|
|
148
|
-
-webkit-transform: rotate(360deg);
|
|
149
|
-
transform: rotate(360deg);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@keyframes loadingCircle {
|
|
154
|
-
100% {
|
|
155
|
-
-webkit-transform: rotate(360deg);
|
|
156
|
-
transform: rotate(360deg);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
`,HD=function(t){var n=i.useContext(g1),r=n.csp,a=n.prefixCls,l=n.layer,c=LD;a&&(c=c.replace(/anticon/g,a)),l&&(c="@layer ".concat(l,` {
|
|
160
|
-
`).concat(c,`
|
|
161
|
-
}`)),i.useEffect(function(){var u=t.current,d=zv(u);yi(c,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},FD=["icon","className","onClick","style","primaryColor","secondaryColor"],$d={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function VD(e){var t=e.primaryColor,n=e.secondaryColor;$d.primaryColor=t,$d.secondaryColor=n||N6(t),$d.calculated=!!n}function WD(){return se({},$d)}var Xc=function(t){var n=t.icon,r=t.className,a=t.onClick,l=t.style,c=t.primaryColor,u=t.secondaryColor,d=Lt(t,FD),f=i.useRef(),v=$d;if(c&&(v={primaryColor:c,secondaryColor:u||N6(c)}),HD(f),kD(gw(n),"icon should be icon definiton, but got ".concat(n)),!gw(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=se(se({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),ry(g.icon,"svg-".concat(g.name),se(se({className:r,onClick:a,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};Xc.displayName="IconReact";Xc.getTwoToneColors=WD;Xc.setTwoToneColors=VD;function T6(e){var t=M6(e),n=fe(t,2),r=n[0],a=n[1];return Xc.setTwoToneColors({primaryColor:r,secondaryColor:a})}function KD(){var e=Xc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var UD=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];T6(_c.primary);var bt=i.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,l=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,f=Lt(e,UD),v=i.useContext(g1),g=v.prefixCls,p=g===void 0?"anticon":g,b=v.rootClassName,C=ue(b,p,ne(ne({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),x=c;x===void 0&&u&&(x=-1);var h=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,$=M6(d),w=fe($,2),E=w[0],j=w[1];return i.createElement("span",be({role:"img","aria-label":r.name},f,{ref:t,tabIndex:x,onClick:u,className:C}),i.createElement(Xc,{icon:r,primaryColor:E,secondaryColor:j,style:h}))});bt.displayName="AntdIcon";bt.getTwoToneColor=KD;bt.setTwoToneColor=T6;var qD=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:_D}))},Ss=i.forwardRef(qD),GD={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"},XD=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:GD}))},Sl=i.forwardRef(XD),YD={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"},QD=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:YD}))},zo=i.forwardRef(QD),ZD={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"},JD=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:ZD}))},xs=i.forwardRef(JD),e7={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"},t7=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:e7}))},ug=i.forwardRef(t7),n7=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
162
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
163
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
164
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
165
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
166
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
167
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
168
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
169
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
170
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
171
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
172
|
-
summary tabIndex target title type useMap value width wmode wrap`,r7=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
173
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
174
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
175
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
176
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
177
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
178
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,a7="".concat(n7," ").concat(r7).split(/[\s\n]+/),o7="aria-",i7="data-";function hw(e,t){return e.indexOf(t)===0}function Nr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=se({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||hw(a,o7))||n.data&&hw(a,i7)||n.attr&&a7.includes(a))&&(r[a]=e[a])}),r}function P6(e){return e&&ve.isValidElement(e)&&e.type===ve.Fragment}const S1=(e,t,n)=>ve.isValidElement(e)?ve.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Or(e,t){return S1(e,e,t)}const _m=(e,t,n,r,a)=>({background:e,border:`${ie(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),l7=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:l,fontSizeLG:c,lineHeight:u,borderRadiusLG:d,motionEaseInOutCirc:f,withDescriptionIconSize:v,colorText:g,colorTextHeading:p,withDescriptionPadding:b,defaultPadding:C}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",display:"flex",alignItems:"center",padding:C,wordWrap:"break-word",borderRadius:d,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:u},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${f}, opacity ${n} ${f},
|
|
179
|
-
padding-top ${n} ${f}, padding-bottom ${n} ${f},
|
|
180
|
-
margin-bottom ${n} ${f}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:b,[`${t}-icon`]:{marginInlineEnd:a,fontSize:v,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:c},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},s7=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:l,colorWarningBorder:c,colorWarningBg:u,colorError:d,colorErrorBorder:f,colorErrorBg:v,colorInfo:g,colorInfoBorder:p,colorInfoBg:b}=e;return{[t]:{"&-success":_m(a,r,n,e,t),"&-info":_m(b,p,g,e,t),"&-warning":_m(u,c,l,e,t),"&-error":Object.assign(Object.assign({},_m(v,f,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},c7=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:l,colorIcon:c,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:l,lineHeight:ie(l),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:u}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:u}}}}},u7=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),d7=sn("Alert",e=>[l7(e),s7(e),c7(e)],u7);var bw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const f7={success:Ss,info:ug,error:Sl,warning:xs},m7=e=>{const{icon:t,prefixCls:n,type:r}=e,a=f7[r]||null;return t?S1(t,i.createElement("span",{className:`${n}-icon`},t),()=>({className:ue(`${n}-icon`,t.props.className)})):i.createElement(a,{className:`${n}-icon`})},v7=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:l}=e,c=r===!0||r===void 0?i.createElement(zo,null):r;return t?i.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},l),c):null},z6=i.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:l,className:c,rootClassName:u,style:d,onMouseEnter:f,onMouseLeave:v,onClick:g,afterClose:p,showIcon:b,closable:C,closeText:x,closeIcon:h,action:$,id:w}=e,E=bw(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[j,O]=i.useState(!1),I=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:I.current}));const{getPrefixCls:R,direction:M,closable:N,closeIcon:P,className:B,style:L}=vr("alert"),k=R("alert",r),[D,H,z]=d7(k),_=J=>{var Q;O(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,J)},F=i.useMemo(()=>e.type!==void 0?e.type:l?"warning":"info",[e.type,l]),W=i.useMemo(()=>typeof C=="object"&&C.closeIcon||x?!0:typeof C=="boolean"?C:h!==!1&&h!==null&&h!==void 0?!0:!!N,[x,h,C,N]),q=l&&b===void 0?!0:b,V=ue(k,`${k}-${F}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!q,[`${k}-banner`]:!!l,[`${k}-rtl`]:M==="rtl"},B,c,u,z,H),G=Nr(E,{aria:!0,data:!0}),K=i.useMemo(()=>typeof C=="object"&&C.closeIcon?C.closeIcon:x||(h!==void 0?h:typeof N=="object"&&N.closeIcon?N.closeIcon:P),[h,C,N,x,P]),U=i.useMemo(()=>{const J=C??N;if(typeof J=="object"){const{closeIcon:Q}=J;return bw(J,["closeIcon"])}return{}},[C,N]);return D(i.createElement(Zr,{visible:!j,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:J=>({maxHeight:J.offsetHeight}),onLeaveEnd:p},({className:J,style:Q},te)=>i.createElement("div",Object.assign({id:w,ref:Mr(I,te),"data-show":!j,className:ue(V,J),style:Object.assign(Object.assign(Object.assign({},L),d),Q),onMouseEnter:f,onMouseLeave:v,onClick:g,role:"alert"},G),q?i.createElement(m7,{description:n,icon:e.icon,prefixCls:k,type:F}):null,i.createElement("div",{className:`${k}-content`},a?i.createElement("div",{className:`${k}-message`},a):null,n?i.createElement("div",{className:`${k}-description`},n):null),$?i.createElement("div",{className:`${k}-action`},$):null,i.createElement(v7,{isClosable:W,prefixCls:k,closeIcon:K,handleClose:_,ariaProps:U}))))});function g7(e,t,n){return t=cs(t),O3(e,ag()?Reflect.construct(t,n||[],cs(e).constructor):t.apply(e,n))}let p7=(function(e){function t(){var n;return fr(this,t),n=g7(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Ya(t,e),mr(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:l,children:c}=this.props,{error:u,info:d}=this.state,f=(d==null?void 0:d.componentStack)||null,v=typeof r>"u"?(u||"").toString():r,g=typeof a>"u"?f:a;return u?i.createElement(z6,{id:l,type:"error",message:v,description:i.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):c}}])})(i.Component);const wd=z6;wd.ErrorBoundary=p7;const yw=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Cw=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Am=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Cw(n.overflowY,t)||Cw(n.overflowX,t)||(r=>{const a=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},Bm=(e,t,n,r,a,l,c,u)=>l<e&&c>t||l>e&&c<t?0:l<=e&&u<=n||c>=t&&u>=n?l-e-r:c>t&&u<n||l<e&&u>n?c-t+a:0,h7=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Sw=(e,t)=>{var n,r,a,l;if(typeof document>"u")return[];const{scrollMode:c,block:u,inline:d,boundary:f,skipOverflowHiddenElements:v}=t,g=typeof f=="function"?f:z=>z!==f;if(!yw(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,b=[];let C=e;for(;yw(C)&&g(C);){if(C=h7(C),C===p){b.push(C);break}C!=null&&C===document.body&&Am(C)&&!Am(document.documentElement)||C!=null&&Am(C,v)&&b.push(C)}const x=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(l=(a=window.visualViewport)==null?void 0:a.height)!=null?l:innerHeight,{scrollX:$,scrollY:w}=window,{height:E,width:j,top:O,right:I,bottom:R,left:M}=e.getBoundingClientRect(),{top:N,right:P,bottom:B,left:L}=(z=>{const _=window.getComputedStyle(z);return{top:parseFloat(_.scrollMarginTop)||0,right:parseFloat(_.scrollMarginRight)||0,bottom:parseFloat(_.scrollMarginBottom)||0,left:parseFloat(_.scrollMarginLeft)||0}})(e);let k=u==="start"||u==="nearest"?O-N:u==="end"?R+B:O+E/2-N+B,D=d==="center"?M+j/2-L+P:d==="end"?I+P:M-L;const H=[];for(let z=0;z<b.length;z++){const _=b[z],{height:F,width:W,top:q,right:V,bottom:G,left:K}=_.getBoundingClientRect();if(c==="if-needed"&&O>=0&&M>=0&&R<=h&&I<=x&&(_===p&&!Am(_)||O>=q&&R<=G&&M>=K&&I<=V))return H;const U=getComputedStyle(_),J=parseInt(U.borderLeftWidth,10),Q=parseInt(U.borderTopWidth,10),te=parseInt(U.borderRightWidth,10),Y=parseInt(U.borderBottomWidth,10);let ae=0,re=0;const Z="offsetWidth"in _?_.offsetWidth-_.clientWidth-J-te:0,X="offsetHeight"in _?_.offsetHeight-_.clientHeight-Q-Y:0,oe="offsetWidth"in _?_.offsetWidth===0?0:W/_.offsetWidth:0,le="offsetHeight"in _?_.offsetHeight===0?0:F/_.offsetHeight:0;if(p===_)ae=u==="start"?k:u==="end"?k-h:u==="nearest"?Bm(w,w+h,h,Q,Y,w+k,w+k+E,E):k-h/2,re=d==="start"?D:d==="center"?D-x/2:d==="end"?D-x:Bm($,$+x,x,J,te,$+D,$+D+j,j),ae=Math.max(0,ae+w),re=Math.max(0,re+$);else{ae=u==="start"?k-q-Q:u==="end"?k-G+Y+X:u==="nearest"?Bm(q,G,F,Q,Y+X,k,k+E,E):k-(q+F/2)+X/2,re=d==="start"?D-K-J:d==="center"?D-(K+W/2)+Z/2:d==="end"?D-V+te+Z:Bm(K,V,W,J,te+Z,D,D+j,j);const{scrollLeft:de,scrollTop:ce}=_;ae=le===0?0:Math.max(0,Math.min(ce+ae/le,_.scrollHeight-F/le+X)),re=oe===0?0:Math.max(0,Math.min(de+re/oe,_.scrollWidth-W/oe+Z)),k+=ce-ae,D+=de-re}H.push({el:_,top:ae,left:re})}return H},b7=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function y7(e,t){if(!e.isConnected||!(a=>{let l=a;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(e))return;const n=(a=>{const l=window.getComputedStyle(a);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(Sw(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:l,left:c}of Sw(e,b7(t))){const u=l-n.top+n.bottom,d=c-n.left+n.right;a.scroll({top:u,left:d,behavior:r})}}function ay(e){return e!=null&&e===e.window}const D6=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return ay(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ay(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function C7(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function _6(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,l=n(),c=D6(l),u=Date.now(),d=()=>{const v=Date.now()-u,g=C7(v>a?a:v,c,e,a);ay(l)?l.scrollTo(window.pageXOffset,g):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=g:l.scrollTop=g,v<a?Yt(d):typeof r=="function"&&r()};Yt(d)}const dr=e=>{const[,,,,t]=la();return t?`${e}-css-var`:""};var ot={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,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},A6=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,l=e.duration,c=l===void 0?4.5:l,u=e.showProgress,d=e.pauseOnHover,f=d===void 0?!0:d,v=e.eventKey,g=e.content,p=e.closable,b=e.closeIcon,C=b===void 0?"x":b,x=e.props,h=e.onClick,$=e.onNoticeClose,w=e.times,E=e.hovering,j=i.useState(!1),O=fe(j,2),I=O[0],R=O[1],M=i.useState(0),N=fe(M,2),P=N[0],B=N[1],L=i.useState(0),k=fe(L,2),D=k[0],H=k[1],z=E||I,_=c>0&&u,F=function(){$(v)},W=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===ot.ENTER)&&F()};i.useEffect(function(){if(!z&&c>0){var U=Date.now()-D,J=setTimeout(function(){F()},c*1e3-D);return function(){f&&clearTimeout(J),H(Date.now()-U)}}},[c,z,w]),i.useEffect(function(){if(!z&&_&&(f||D===0)){var U=performance.now(),J,Q=function te(){cancelAnimationFrame(J),J=requestAnimationFrame(function(Y){var ae=Y+D-U,re=Math.min(ae/(c*1e3),1);B(re*100),re<1&&te()})};return Q(),function(){f&&cancelAnimationFrame(J)}}},[c,D,z,_,w]);var q=i.useMemo(function(){return Et(p)==="object"&&p!==null?p:p?{closeIcon:C}:{}},[p,C]),V=Nr(q,!0),G=100-(!P||P<0?0:P>100?100:P),K="".concat(n,"-notice");return i.createElement("div",be({},x,{ref:t,className:ue(K,a,ne({},"".concat(K,"-closable"),p)),style:r,onMouseEnter:function(J){var Q;R(!0),x==null||(Q=x.onMouseEnter)===null||Q===void 0||Q.call(x,J)},onMouseLeave:function(J){var Q;R(!1),x==null||(Q=x.onMouseLeave)===null||Q===void 0||Q.call(x,J)},onClick:h}),i.createElement("div",{className:"".concat(K,"-content")},g),p&&i.createElement("a",be({tabIndex:0,className:"".concat(K,"-close"),onKeyDown:W,"aria-label":"Close"},V,{onClick:function(J){J.preventDefault(),J.stopPropagation(),F()}}),q.closeIcon),_&&i.createElement("progress",{className:"".concat(K,"-progress"),max:"100",value:G},G+"%"))}),B6=ve.createContext({}),k6=function(t){var n=t.children,r=t.classNames;return ve.createElement(B6.Provider,{value:{classNames:r}},n)},xw=8,$w=3,ww=16,S7=function(t){var n={offset:xw,threshold:$w,gap:ww};if(t&&Et(t)==="object"){var r,a,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:xw,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:$w,n.gap=(l=t.gap)!==null&&l!==void 0?l:ww}return[!!t,n]},x7=["className","style","classNames","styles"],$7=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,l=t.className,c=t.style,u=t.motion,d=t.onAllNoticeRemoved,f=t.onNoticeClose,v=t.stack,g=i.useContext(B6),p=g.classNames,b=i.useRef({}),C=i.useState(null),x=fe(C,2),h=x[0],$=x[1],w=i.useState([]),E=fe(w,2),j=E[0],O=E[1],I=n.map(function(z){return{config:z,key:String(z.key)}}),R=S7(v),M=fe(R,2),N=M[0],P=M[1],B=P.offset,L=P.threshold,k=P.gap,D=N&&(j.length>0||I.length<=L),H=typeof u=="function"?u(r):u;return i.useEffect(function(){N&&j.length>1&&O(function(z){return z.filter(function(_){return I.some(function(F){var W=F.key;return _===W})})})},[j,I,N]),i.useEffect(function(){var z;if(N&&b.current[(z=I[I.length-1])===null||z===void 0?void 0:z.key]){var _;$(b.current[(_=I[I.length-1])===null||_===void 0?void 0:_.key])}},[I,N]),ve.createElement(C1,be({key:r,className:ue(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,l,ne(ne({},"".concat(a,"-stack"),!!N),"".concat(a,"-stack-expanded"),D)),style:c,keys:I,motionAppear:!0},H,{onAllRemoved:function(){d(r)}}),function(z,_){var F=z.config,W=z.className,q=z.style,V=z.index,G=F,K=G.key,U=G.times,J=String(K),Q=F,te=Q.className,Y=Q.style,ae=Q.classNames,re=Q.styles,Z=Lt(Q,x7),X=I.findIndex(function(Ce){return Ce.key===J}),oe={};if(N){var le=I.length-1-(X>-1?X:V-1),de=r==="top"||r==="bottom"?"-50%":"0";if(le>0){var ce,ge,he;oe.height=D?(ce=b.current[J])===null||ce===void 0?void 0:ce.offsetHeight:h==null?void 0:h.offsetHeight;for(var Oe=0,je=0;je<le;je++){var pe;Oe+=((pe=b.current[I[I.length-1-je].key])===null||pe===void 0?void 0:pe.offsetHeight)+k}var we=(D?Oe:le*B)*(r.startsWith("top")?1:-1),Se=!D&&h!==null&&h!==void 0&&h.offsetWidth&&(ge=b.current[J])!==null&&ge!==void 0&&ge.offsetWidth?((h==null?void 0:h.offsetWidth)-B*2*(le<3?le:3))/((he=b.current[J])===null||he===void 0?void 0:he.offsetWidth):1;oe.transform="translate3d(".concat(de,", ").concat(we,"px, 0) scaleX(").concat(Se,")")}else oe.transform="translate3d(".concat(de,", 0, 0)")}return ve.createElement("div",{ref:_,className:ue("".concat(a,"-notice-wrapper"),W,ae==null?void 0:ae.wrapper),style:se(se(se({},q),oe),re==null?void 0:re.wrapper),onMouseEnter:function(){return O(function(De){return De.includes(J)?De:[].concat(Ne(De),[J])})},onMouseLeave:function(){return O(function(De){return De.filter(function(Ae){return Ae!==J})})}},ve.createElement(A6,be({},Z,{ref:function(De){X>-1?b.current[J]=De:delete b.current[J]},prefixCls:a,classNames:ae,styles:re,className:ue(te,p==null?void 0:p.notice),style:Y,times:U,key:K,eventKey:K,onNoticeClose:f,hovering:N&&j.length>0})))})},w7=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,l=e.motion,c=e.maxCount,u=e.className,d=e.style,f=e.onAllRemoved,v=e.stack,g=e.renderNotifications,p=i.useState([]),b=fe(p,2),C=b[0],x=b[1],h=function(N){var P,B=C.find(function(L){return L.key===N});B==null||(P=B.onClose)===null||P===void 0||P.call(B),x(function(L){return L.filter(function(k){return k.key!==N})})};i.useImperativeHandle(t,function(){return{open:function(N){x(function(P){var B=Ne(P),L=B.findIndex(function(H){return H.key===N.key}),k=se({},N);if(L>=0){var D;k.times=(((D=P[L])===null||D===void 0?void 0:D.times)||0)+1,B[L]=k}else k.times=0,B.push(k);return c>0&&B.length>c&&(B=B.slice(-c)),B})},close:function(N){h(N)},destroy:function(){x([])}}});var $=i.useState({}),w=fe($,2),E=w[0],j=w[1];i.useEffect(function(){var M={};C.forEach(function(N){var P=N.placement,B=P===void 0?"topRight":P;B&&(M[B]=M[B]||[],M[B].push(N))}),Object.keys(E).forEach(function(N){M[N]=M[N]||[]}),j(M)},[C]);var O=function(N){j(function(P){var B=se({},P),L=B[N]||[];return L.length||delete B[N],B})},I=i.useRef(!1);if(i.useEffect(function(){Object.keys(E).length>0?I.current=!0:I.current&&(f==null||f(),I.current=!1)},[E]),!a)return null;var R=Object.keys(E);return mo.createPortal(i.createElement(i.Fragment,null,R.map(function(M){var N=E[M],P=i.createElement($7,{key:M,configList:N,placement:M,prefixCls:r,className:u==null?void 0:u(M),style:d==null?void 0:d(M),motion:l,onNoticeClose:h,onAllNoticeRemoved:O,stack:v});return g?g(P,{prefixCls:r,key:M}):P})),a)}),E7=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],O7=function(){return document.body},Ew=0;function R7(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(l){var c=a[l];c!==void 0&&(e[l]=c)})}),e}function L6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?O7:t,r=e.motion,a=e.prefixCls,l=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,f=e.stack,v=e.renderNotifications,g=Lt(e,E7),p=i.useState(),b=fe(p,2),C=b[0],x=b[1],h=i.useRef(),$=i.createElement(w7,{container:C,ref:h,prefixCls:a,motion:r,maxCount:l,className:c,style:u,onAllRemoved:d,stack:f,renderNotifications:v}),w=i.useState([]),E=fe(w,2),j=E[0],O=E[1],I=Xt(function(M){var N=R7(g,M);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(Ew),Ew+=1),O(function(P){return[].concat(Ne(P),[{type:"open",config:N}])})}),R=i.useMemo(function(){return{open:I,close:function(N){O(function(P){return[].concat(Ne(P),[{type:"close",key:N}])})},destroy:function(){O(function(N){return[].concat(Ne(N),[{type:"destroy"}])})}}},[]);return i.useEffect(function(){x(n())}),i.useEffect(function(){if(h.current&&j.length){j.forEach(function(P){switch(P.type){case"open":h.current.open(P.config);break;case"close":h.current.close(P.key);break;case"destroy":h.current.destroy();break}});var M,N;O(function(P){return(M!==P||!N)&&(M=P,N=P.filter(function(B){return!j.includes(B)})),N})}},[j]),[R,$]}var j7={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"},I7=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:j7}))},No=i.forwardRef(I7);function Hd(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Dv(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Ow(e){const{closable:t,closeIcon:n}=e||{};return ve.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const N7={},H6=(e,t,n=N7)=>{const r=Ow(e),a=Ow(t),[l]=za("global",go.global),c=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=ve.useMemo(()=>Object.assign({closeIcon:ve.createElement(zo,null)},n),[n]),d=ve.useMemo(()=>r===!1?!1:r?Hd(u,a,r):a===!1?!1:a?Hd(u,a):u.closable?u:!1,[r,a,u]);return ve.useMemo(()=>{var f,v;if(d===!1)return[!1,null,c,{}];const{closeIconRender:g}=u,{closeIcon:p}=d;let b=p;const C=Nr(d,!0);return b!=null&&(g&&(b=g(p)),b=ve.isValidElement(b)?ve.cloneElement(b,Object.assign(Object.assign(Object.assign({},b.props),{"aria-label":(v=(f=b.props)===null||f===void 0?void 0:f["aria-label"])!==null&&v!==void 0?v:l.close}),C)):ve.createElement("span",Object.assign({"aria-label":l.close},C),b)),[!0,b,c,C]},[c,l.close,d,u])},x1=()=>ve.useReducer(e=>e+1,0);function F6(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(l=>{const c=n[l],u=a[l];if(c&&typeof c=="object")if(u&&typeof u=="object")r[l]=F6(c,r[l],u);else{const{_default:d}=c;d&&(r[l]=r[l]||{},r[l][d]=ue(r[l][d],u))}else r[l]=ue(r[l],u)}),r),{})}function M7(e,...t){return i.useMemo(()=>F6.apply(void 0,[e].concat(t)),[t,e])}function T7(...e){return i.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function oy(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],l=n[r]||{};n[r]=a?oy(l,a):l}}),n}const P7=(e,t,n)=>{const r=M7.apply(void 0,[n].concat(Ne(e))),a=T7.apply(void 0,Ne(t));return i.useMemo(()=>[oy(r,n),oy(a,n)],[r,a,n])},z7=e=>{const[t,n]=i.useState(null);return[i.useCallback((a,l,c)=>{const u=t??a,d=Math.min(u||0,a),f=Math.max(u||0,a),v=l.slice(d,f+1).map(e),g=v.some(b=>!c.has(b)),p=[];return v.forEach(b=>{g?(c.has(b)||p.push(b),c.add(b)):(c.delete(b),p.push(b))}),n(g?f:null),p},[t]),n]},D7=()=>{const[e,t]=i.useState([]),n=i.useCallback(r=>(t(a=>[].concat(Ne(a),[r])),()=>{t(a=>a.filter(l=>l!==r))}),[]);return[e,n]};function _7(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const A7=(e,t)=>i.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,l){return n[l]?n[l]:Reflect.get(a,l)}}):_7(r,n)}),B7=e=>{const t=i.useRef(e),[,n]=x1();return[()=>t.current,r=>{t.current=r,n()}]},dg=ve.createContext(void 0),ol=100,k7=10,$1=ol*k7,V6={Modal:ol,Drawer:ol,Popover:ol,Popconfirm:ol,Tooltip:ol,Tour:ol,FloatButton:ol},L7={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function H7(e){return e in V6}const Do=(e,t)=>{const[,n]=la(),r=ve.useContext(dg),a=H7(e);let l;if(t!==void 0)l=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+V6[e]:c+=L7[e],l=[r===void 0?t:c,c]}return l},F7=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:l,colorError:c,colorWarning:u,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:v,motionDurationSlow:g,marginXS:p,paddingXS:b,borderRadiusLG:C,zIndexPopup:x,contentPadding:h,contentBg:$}=e,w=`${t}-notice`,E=new Jt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),j=new Jt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:f},[`${w}-content`]:{display:"inline-block",padding:h,background:$,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
|
|
181
|
-
${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},dn(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
182
|
-
${t}-move-up-appear,
|
|
183
|
-
${t}-move-up-enter
|
|
184
|
-
`]:{animationName:E,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`
|
|
185
|
-
${t}-move-up-appear${t}-move-up-appear-active,
|
|
186
|
-
${t}-move-up-enter${t}-move-up-enter-active
|
|
187
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:j,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},O)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},O),{padding:0,textAlign:"start"})}]},V7=e=>({zIndexPopup:e.zIndexPopupBase+$1+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),W6=sn("Message",e=>{const t=tn(e,{height:150});return F7(t)},V7);var W7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const K7={info:i.createElement(ug,null),success:i.createElement(Ss,null),error:i.createElement(Sl,null),warning:i.createElement(xs,null),loading:i.createElement(No,null)},K6=({prefixCls:e,type:t,icon:n,children:r})=>i.createElement("div",{className:ue(`${e}-custom-content`,`${e}-${t}`)},n||K7[t],i.createElement("span",null,r)),U7=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:l}=e,c=W7(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=i.useContext(Rt),d=t||u("message"),f=dr(d),[v,g,p]=W6(d,f);return v(i.createElement(A6,Object.assign({},c,{prefixCls:d,className:ue(n,g,`${d}-notice-pure-panel`,p,f),eventKey:"pure",duration:null,content:i.createElement(K6,{prefixCls:d,type:r,icon:a},l)})))};function q7(e,t){return{motionName:t??`${e}-move-up`}}function w1(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,l)=>n.then(a,l),r.promise=n,r}var G7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const X7=8,Y7=3,Q7=({children:e,prefixCls:t})=>{const n=dr(t),[r,a,l]=W6(t,n);return r(i.createElement(k6,{classNames:{list:ue(a,l,n)}},e))},Z7=(e,{prefixCls:t,key:n})=>i.createElement(Q7,{prefixCls:t,key:n},e),J7=i.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:l,duration:c=Y7,rtl:u,transitionName:d,onAllRemoved:f}=e,{getPrefixCls:v,getPopupContainer:g,message:p,direction:b}=i.useContext(Rt),C=r||v("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??X7}),h=()=>ue({[`${C}-rtl`]:u??b==="rtl"}),$=()=>q7(C,d),w=i.createElement("span",{className:`${C}-close-x`},i.createElement(zo,{className:`${C}-close-icon`})),[E,j]=L6({prefixCls:C,style:x,className:h,motion:$,closable:!1,closeIcon:w,duration:c,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:f,renderNotifications:Z7});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:C,message:p})),j});let Rw=0;function U6(e){const t=i.useRef(null);return Jo(),[i.useMemo(()=>{const r=d=>{var f;(f=t.current)===null||f===void 0||f.close(d)},a=d=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:f,prefixCls:v,message:g}=t.current,p=`${v}-notice`,{content:b,icon:C,type:x,key:h,className:$,style:w,onClose:E}=d,j=G7(d,["content","icon","type","key","className","style","onClose"]);let O=h;return O==null&&(Rw+=1,O=`antd-message-${Rw}`),w1(I=>(f(Object.assign(Object.assign({},j),{key:O,content:i.createElement(K6,{prefixCls:v,type:x,icon:C},b),placement:"top",className:ue(x&&`${p}-${x}`,$,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{E==null||E(),I()}})),()=>{r(O)}))},c={open:a,destroy:d=>{var f;d!==void 0?r(d):(f=t.current)===null||f===void 0||f.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const f=(v,g,p)=>{let b;v&&typeof v=="object"&&"content"in v?b=v:b={content:v};let C,x;typeof g=="function"?x=g:(C=g,x=p);const h=Object.assign(Object.assign({onClose:x,duration:C},b),{type:d});return a(h)};c[d]=f}),c},[]),i.createElement(J7,Object.assign({key:"message-holder"},e,{ref:t}))]}function q6(e){return U6(e)}function G6(e,t){this.v=e,this.k=t}function pa(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}pa=function(c,u,d,f){function v(g,p){pa(c,g,function(b){return this._invoke(g,p,b)})}u?a?a(c,u,{value:d,enumerable:!f,configurable:!f,writable:!f}):c[u]=d:(v("next",0),v("throw",1),v("return",2))},pa(e,t,n,r)}function E1(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(b,C,x,h){var $=C&&C.prototype instanceof u?C:u,w=Object.create($.prototype);return pa(w,"_invoke",(function(E,j,O){var I,R,M,N=0,P=O||[],B=!1,L={p:0,n:0,v:e,a:k,f:k.bind(e,4),d:function(H,z){return I=H,R=0,M=e,L.n=z,c}};function k(D,H){for(R=D,M=H,t=0;!B&&N&&!z&&t<P.length;t++){var z,_=P[t],F=L.p,W=_[2];D>3?(z=W===H)&&(M=_[(R=_[4])?5:(R=3,3)],_[4]=_[5]=e):_[0]<=F&&((z=D<2&&F<_[1])?(R=0,L.v=H,L.n=_[1]):F<W&&(z=D<3||_[0]>H||H>W)&&(_[4]=D,_[5]=H,L.n=W,R=0))}if(z||D>1)return c;throw B=!0,H}return function(D,H,z){if(N>1)throw TypeError("Generator is already running");for(B&&H===1&&k(H,z),R=H,M=z;(t=R<2?e:M)||!B;){I||(R?R<3?(R>1&&(L.n=-1),k(R,M)):L.n=M:L.v=M);try{if(N=2,I){if(R||(D="next"),t=I[D]){if(!(t=t.call(I,M)))throw TypeError("iterator result is not an object");if(!t.done)return t;M=t.value,R<2&&(R=0)}else R===1&&(t=I.return)&&t.call(I),R<2&&(M=TypeError("The iterator does not provide a '"+D+"' method"),R=1);I=e}else if((t=(B=L.n<0)?M:E.call(j,L))!==c)break}catch(_){I=e,R=1,M=_}finally{N=1}}return{value:t,done:B}}})(b,x,h),!0),w}var c={};function u(){}function d(){}function f(){}t=Object.getPrototypeOf;var v=[][r]?t(t([][r]())):(pa(t={},r,function(){return this}),t),g=f.prototype=u.prototype=Object.create(v);function p(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,f):(b.__proto__=f,pa(b,a,"GeneratorFunction")),b.prototype=Object.create(g),b}return d.prototype=f,pa(g,"constructor",f),pa(f,"constructor",d),d.displayName="GeneratorFunction",pa(f,a,"GeneratorFunction"),pa(g),pa(g,a,"Generator"),pa(g,r,function(){return this}),pa(g,"toString",function(){return"[object Generator]"}),(E1=function(){return{w:l,m:p}})()}function _v(e,t){function n(a,l,c,u){try{var d=e[a](l),f=d.value;return f instanceof G6?t.resolve(f.v).then(function(v){n("next",v,c,u)},function(v){n("throw",v,c,u)}):t.resolve(f).then(function(v){d.value=v,c(d)},function(v){return n("throw",v,c,u)})}catch(v){u(v)}}var r;this.next||(pa(_v.prototype),pa(_v.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),pa(this,"_invoke",function(a,l,c){function u(){return new t(function(d,f){n(a,c,d,f)})}return r=r?r.then(u,u):u()},!0)}function X6(e,t,n,r,a){return new _v(E1().w(e,t,n,r),a||Promise)}function e_(e,t,n,r,a){var l=X6(e,t,n,r,a);return l.next().then(function(c){return c.done?c.value:l.next()})}function t_(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function jw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Et(e)+" is not iterable")}function Vn(){var e=E1(),t=e.m(Vn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(c){var u=typeof c=="function"&&c.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function l(c){var u,d;return function(f){u||(u={stop:function(){return d(f.a,2)},catch:function(){return f.v},abrupt:function(g,p){return d(f.a,a[g],p)},delegateYield:function(g,p,b){return u.resultName=p,d(f.d,jw(g),b)},finish:function(g){return d(f.f,g)}},d=function(g,p,b){f.p=u.prev,f.n=u.next;try{return g(p,b)}finally{u.next=f.n}}),u.resultName&&(u[u.resultName]=f.v,u.resultName=void 0),u.sent=f.v,u.next=f.n;try{return c.call(this,u)}finally{f.p=u.prev,f.n=u.next}}}return(Vn=function(){return{wrap:function(d,f,v,g){return e.w(l(d),f,v,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,f){return new G6(d,f)},AsyncIterator:_v,async:function(d,f,v,g,p){return(r(f)?X6:e_)(l(d),f,v,g,p)},keys:t_,values:jw}})()}function Iw(e,t,n,r,a,l,c){try{var u=e[l](c),d=u.value}catch(f){return void n(f)}u.done?t(d):Promise.resolve(d).then(r,a)}function wa(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function c(d){Iw(l,r,a,c,u,"next",d)}function u(d){Iw(l,r,a,c,u,"throw",d)}c(void 0)})}}var rf=se({},wP),n_=rf.version,y0=rf.render,r_=rf.unmountComponentAtNode,fg;try{var a_=Number((n_||"").split(".")[0]);a_>=18&&(fg=rf.createRoot)}catch{}function Nw(e){var t=rf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Et(t)==="object"&&(t.usingClientEntryPoint=e)}var Av="__rc_react_root__";function o_(e,t){Nw(!0);var n=t[Av]||fg(t);Nw(!1),n.render(e),t[Av]=n}function i_(e,t){y0==null||y0(e,t)}function l_(e,t){if(fg){o_(e,t);return}i_(e,t)}function s_(e){return iy.apply(this,arguments)}function iy(){return iy=wa(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Av])===null||a===void 0||a.unmount(),delete t[Av]}));case 1:case"end":return r.stop()}},e)})),iy.apply(this,arguments)}function c_(e){r_(e)}function u_(e){return ly.apply(this,arguments)}function ly(){return ly=wa(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(fg===void 0){r.next=2;break}return r.abrupt("return",s_(t));case 2:c_(t);case 3:case"end":return r.stop()}},e)})),ly.apply(this,arguments)}const d_=(e,t)=>(l_(e,t),()=>u_(t));let f_=d_;function O1(e){return f_}const C0=()=>({height:0,opacity:0}),Mw=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},m_=e=>({height:e?e.offsetHeight:0}),S0=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ac=(e=Ld)=>({motionName:`${e}-motion-collapse`,onAppearStart:C0,onEnterStart:C0,onAppearActive:Mw,onEnterActive:Mw,onLeaveStart:m_,onLeaveActive:C0,onAppearEnd:S0,onEnterEnd:S0,onLeaveEnd:S0,motionDeadline:500}),Go=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function En(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Yc=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),l=a.width,c=a.height;if(l||c)return!0}}return!1}),v_=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(",")}}}}},g_=v6("Wave",v_),mg=`${Ld}-wave-target`;function p_(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function h_(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(p_))!==null&&t!==void 0?t:null}function x0(e){return Number.isNaN(e)?0:e}const b_=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,l=i.useRef(null),c=i.useRef(null);i.useEffect(()=>{c.current=a()},[]);const[u,d]=i.useState(null),[f,v]=i.useState([]),[g,p]=i.useState(0),[b,C]=i.useState(0),[x,h]=i.useState(0),[$,w]=i.useState(0),[E,j]=i.useState(!1),O={left:g,top:b,width:x,height:$,borderRadius:f.map(M=>`${M}px`).join(" ")};u&&(O["--wave-color"]=u);function I(){const M=getComputedStyle(n);d(h_(n));const N=M.position==="static",{borderLeftWidth:P,borderTopWidth:B}=M;p(N?n.offsetLeft:x0(-Number.parseFloat(P))),C(N?n.offsetTop:x0(-Number.parseFloat(B))),h(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:L,borderTopRightRadius:k,borderBottomLeftRadius:D,borderBottomRightRadius:H}=M;v([L,k,H,D].map(z=>x0(Number.parseFloat(z))))}if(i.useEffect(()=>{if(n){const M=Yt(()=>{I(),j(!0)});let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(n)),()=>{Yt.cancel(M),N==null||N.disconnect()}}},[n]),!E)return null;const R=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(mg));return i.createElement(Zr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,N)=>{var P,B;if(N.deadline||N.propertyName==="opacity"){const L=(P=l.current)===null||P===void 0?void 0:P.parentElement;(B=c.current)===null||B===void 0||B.call(c).then(()=>{L==null||L.remove()})}return!1}},({className:M},N)=>i.createElement("div",{ref:Mr(l,N),className:ue(t,M,{"wave-quick":R}),style:O}))},y_=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const l=O1();let c=null;function u(){return c}c=l(i.createElement(b_,Object.assign({},t,{target:e,registerUnmount:u})),a)},C_=(e,t,n)=>{const{wave:r}=i.useContext(Rt),[,a,l]=la(),c=Xt(f=>{const v=e.current;if(r!=null&&r.disabled||!v)return;const g=v.querySelector(`.${mg}`)||v,{showEffect:p}=r||{};(p||y_)(g,{className:t,token:a,component:n,event:f,hashId:l})}),u=i.useRef(null);return f=>{Yt.cancel(u.current),u.current=Yt(()=>{c(f)})}},af=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=i.useContext(Rt),l=i.useRef(null),c=a("wave"),[,u]=g_(c),d=C_(l,ue(c,u),r);if(ve.useEffect(()=>{const v=l.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=p=>{!Yc(p.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||d(p)};return v.addEventListener("click",g,!0),()=>{v.removeEventListener("click",g,!0)}},[n]),!ve.isValidElement(t))return t??null;const f=Ro(t)?Mr(Cl(t),l):l;return Or(t,{ref:f})},Tr=e=>{const t=ve.useContext(us);return ve.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},S_=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},x_=sn(["Space","Compact"],e=>[S_(e)],()=>({}),{resetStyle:!1});var Y6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vg=i.createContext(null),_o=(e,t)=>{const n=i.useContext(vg),r=i.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:l,isLastItem:c}=n,u=a==="vertical"?"-vertical-":"-";return ue(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:c,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},$_=e=>{const{children:t}=e;return i.createElement(vg.Provider,{value:null},t)},w_=e=>{const{children:t}=e,n=Y6(e,["children"]);return i.createElement(vg.Provider,{value:i.useMemo(()=>n,[n])},t)},E_=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{size:r,direction:a,block:l,prefixCls:c,className:u,rootClassName:d,children:f}=e,v=Y6(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Tr(E=>r??E),p=t("space-compact",c),[b,C]=x_(p),x=ue(p,C,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:l,[`${p}-vertical`]:a==="vertical"},u,d),h=i.useContext(vg),$=Yr(f),w=i.useMemo(()=>$.map((E,j)=>{const O=(E==null?void 0:E.key)||`${p}-item-${j}`;return i.createElement(w_,{key:O,compactSize:g,compactDirection:a,isFirstItem:j===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:j===$.length-1&&(!h||(h==null?void 0:h.isLastItem))},E)}),[$,h,a,g,p]);return $.length===0?null:b(i.createElement("div",Object.assign({className:x},v),w))};var O_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Q6=i.createContext(void 0),R_=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{prefixCls:r,size:a,className:l}=e,c=O_(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=la(),f=i.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),v=ue(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:n==="rtl"},l,d);return i.createElement(Q6.Provider,{value:a},i.createElement("div",Object.assign({},c,{className:v})))},Tw=/^[\u4E00-\u9FA5]{2}$/,sy=Tw.test.bind(Tw);function R1(e){return e==="danger"?{danger:!0}:{type:e}}function Pw(e){return typeof e=="string"}function $0(e){return e==="text"||e==="link"}function j_(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pw(e.type)&&sy(e.props.children)?Or(e,{children:e.props.children.split("").join(n)}):Pw(e)?sy(e)?ve.createElement("span",null,e.split("").join(n)):ve.createElement("span",null,e):P6(e)?ve.createElement("span",null,e):e}function I_(e,t){let n=!1;const r=[];return ve.Children.forEach(e,a=>{const l=typeof a,c=l==="string"||l==="number";if(n&&c){const u=r.length-1,d=r[u];r[u]=`${d}${a}`}else r.push(a);n=c}),ve.Children.map(r,a=>j_(a,t))}["default","primary","danger"].concat(Ne(vl));const Z6=i.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:l}=e,c=ue(`${l}-icon`,n);return ve.createElement("span",{ref:t,className:c,style:r},a)}),zw=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:l}=e,c=ue(`${n}-loading-icon`,r);return ve.createElement(Z6,{prefixCls:n,className:c,style:a,ref:t},ve.createElement(No,{className:l}))}),w0=()=>({width:0,opacity:0,transform:"scale(0)"}),E0=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),N_=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:l,mount:c}=e,u=!!n;return r?ve.createElement(zw,{prefixCls:t,className:a,style:l}):ve.createElement(Zr,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:w0,onAppearActive:E0,onEnterStart:w0,onEnterActive:E0,onLeaveStart:E0,onLeaveActive:w0},({className:d,style:f},v)=>{const g=Object.assign(Object.assign({},l),f);return ve.createElement(zw,{prefixCls:t,className:ue(a,d),style:g,ref:v})})},Dw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),M_=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:l}=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}},Dw(`${t}-primary`,a),Dw(`${t}-danger`,l)]}};var T_=["b"],P_=["v"],O0=function(t){return Math.round(Number(t||0))},z_=function(t){if(t instanceof bn)return t;if(t&&Et(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Lt(n,T_);return se(se({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Fd=(function(e){Ya(n,e);var t=po(n);function n(r){return fr(this,n),t.call(this,z_(r))}return mr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),l=O0(a.s*100),c=O0(a.b*100),u=O0(a.h),d=a.a,f="hsb(".concat(u,", ").concat(l,"%, ").concat(c,"%)"),v="hsba(".concat(u,", ").concat(l,"%, ").concat(c,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?f:v}},{key:"toHsb",value:function(){var a=this.toHsv(),l=a.v,c=Lt(a,P_);return se(se({},c),{},{b:l,a:this.a})}}]),n})(bn),D_=function(t){return t instanceof Fd?t:new Fd(t)};D_("#1677ff");const __=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",A_=(e,t)=>e?__(e,t):"";let cy=(function(){function e(t){fr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:l})=>({color:new e(a),percent:l})),this.metaColor=new Fd(this.colors[0].color.metaColor)):this.metaColor=new Fd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return mr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return A_(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const l=n.colors[a];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var B_={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"},k_=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:B_}))},Si=i.forwardRef(k_),J6=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,l=e.style,c=e.children,u=e.isActive,d=e.role,f=e.classNames,v=e.styles,g=ve.useState(u||r),p=fe(g,2),b=p[0],C=p[1];return ve.useEffect(function(){(r||u)&&C(!0)},[r,u]),b?ve.createElement("div",{ref:t,className:ue("".concat(n,"-content"),ne(ne({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:l,role:d},ve.createElement("div",{className:ue("".concat(n,"-content-box"),f==null?void 0:f.body),style:v==null?void 0:v.body},c)):null});J6.displayName="PanelContent";var L_=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],eR=ve.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,f=e.classNames,v=f===void 0?{}:f,g=e.styles,p=g===void 0?{}:g,b=e.prefixCls,C=e.collapsible,x=e.accordion,h=e.panelKey,$=e.extra,w=e.header,E=e.expandIcon,j=e.openMotion,O=e.destroyInactivePanel,I=e.children,R=Lt(e,L_),M=C==="disabled",N=$!=null&&typeof $!="boolean",P=ne(ne(ne({onClick:function(){c==null||c(h)},onKeyDown:function(_){(_.key==="Enter"||_.keyCode===ot.ENTER||_.which===ot.ENTER)&&(c==null||c(h))},role:x?"tab":"button"},"aria-expanded",l),"aria-disabled",M),"tabIndex",M?-1:0),B=typeof E=="function"?E(e):ve.createElement("i",{className:"arrow"}),L=B&&ve.createElement("div",be({className:"".concat(b,"-expand-icon")},["header","icon"].includes(C)?P:{}),B),k=ue("".concat(b,"-item"),ne(ne({},"".concat(b,"-item-active"),l),"".concat(b,"-item-disabled"),M),d),D=ue(a,"".concat(b,"-header"),ne({},"".concat(b,"-collapsible-").concat(C),!!C),v.header),H=se({className:D,style:p.header},["header","icon"].includes(C)?{}:P);return ve.createElement("div",be({},R,{ref:t,className:k}),ve.createElement("div",H,r&&L,ve.createElement("span",be({className:"".concat(b,"-header-text")},C==="header"?P:{}),w),N&&ve.createElement("div",{className:"".concat(b,"-extra")},$)),ve.createElement(Zr,be({visible:l,leavedClassName:"".concat(b,"-content-hidden")},j,{forceRender:u,removeOnLeave:O}),function(z,_){var F=z.className,W=z.style;return ve.createElement(J6,{ref:_,prefixCls:b,className:F,classNames:v,style:W,styles:p,isActive:l,forceRender:u,role:x?"tabpanel":void 0},I)}))}),H_=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],F_=function(t,n){var r=n.prefixCls,a=n.accordion,l=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,f=n.openMotion,v=n.expandIcon;return t.map(function(g,p){var b=g.children,C=g.label,x=g.key,h=g.collapsible,$=g.onItemClick,w=g.destroyInactivePanel,E=Lt(g,H_),j=String(x??p),O=h??l,I=w??c,R=function(P){O!=="disabled"&&(u(P),$==null||$(P))},M=!1;return a?M=d[0]===j:M=d.indexOf(j)>-1,ve.createElement(eR,be({},E,{prefixCls:r,key:j,panelKey:j,isActive:M,accordion:a,openMotion:f,expandIcon:v,header:C,collapsible:O,onItemClick:R,destroyInactivePanel:I}),b)})},V_=function(t,n,r){if(!t)return null;var a=r.prefixCls,l=r.accordion,c=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,f=r.activeKey,v=r.openMotion,g=r.expandIcon,p=t.key||String(n),b=t.props,C=b.header,x=b.headerClass,h=b.destroyInactivePanel,$=b.collapsible,w=b.onItemClick,E=!1;l?E=f[0]===p:E=f.indexOf(p)>-1;var j=$??c,O=function(M){j!=="disabled"&&(d(M),w==null||w(M))},I={key:p,panelKey:p,header:C,headerClass:x,isActive:E,prefixCls:a,destroyInactivePanel:h??u,openMotion:v,accordion:l,children:t.props.children,onItemClick:O,expandIcon:g,collapsible:j};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(R){typeof I[R]>"u"&&delete I[R]}),ve.cloneElement(t,I))};function W_(e,t,n){return Array.isArray(e)?F_(e,n):Yr(t).map(function(r,a){return V_(r,a,n)})}function K_(e){var t=e;if(!Array.isArray(t)){var n=Et(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var U_=ve.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,l=a===void 0?!1:a,c=e.style,u=e.accordion,d=e.className,f=e.children,v=e.collapsible,g=e.openMotion,p=e.expandIcon,b=e.activeKey,C=e.defaultActiveKey,x=e.onChange,h=e.items,$=ue(r,d),w=yn([],{value:b,onChange:function(N){return x==null?void 0:x(N)},defaultValue:C,postState:K_}),E=fe(w,2),j=E[0],O=E[1],I=function(N){return O(function(){if(u)return j[0]===N?[]:[N];var P=j.indexOf(N),B=P>-1;return B?j.filter(function(L){return L!==N}):[].concat(Ne(j),[N])})};Xn(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var R=W_(h,f,{prefixCls:r,accordion:u,openMotion:g,expandIcon:p,collapsible:v,destroyInactivePanel:l,onItemClick:I,activeKey:j});return ve.createElement("div",be({ref:t,className:$,style:c,role:u?"tablist":void 0},Nr(e,{aria:!0,data:!0})),R)});const j1=Object.assign(U_,{Panel:eR});j1.Panel;const q_=i.forwardRef((e,t)=>{const{getPrefixCls:n}=i.useContext(Rt),{prefixCls:r,className:a,showArrow:l=!0}=e,c=n("collapse",r),u=ue({[`${c}-no-arrow`]:!l},a);return i.createElement(j1.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),of=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
188
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
189
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),G_=e=>({animationDuration:e,animationFillMode:"both"}),X_=e=>({animationDuration:e,animationFillMode:"both"}),dl=(e,t,n,r,a=!1)=>{const l=a?"&":"";return{[`
|
|
190
|
-
${l}${e}-enter,
|
|
191
|
-
${l}${e}-appear
|
|
192
|
-
`]:Object.assign(Object.assign({},G_(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},X_(r)),{animationPlayState:"paused"}),[`
|
|
193
|
-
${l}${e}-enter${e}-enter-active,
|
|
194
|
-
${l}${e}-appear${e}-appear-active
|
|
195
|
-
`]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Y_=new Jt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Q_=new Jt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),I1=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[dl(r,Y_,Q_,e.motionDurationMid,t),{[`
|
|
196
|
-
${a}${r}-enter,
|
|
197
|
-
${a}${r}-appear
|
|
198
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},Z_=new Jt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J_=new Jt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),e9=new Jt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),t9=new Jt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n9=new Jt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),r9=new Jt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),a9=new Jt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o9=new Jt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),i9={"move-up":{inKeyframes:a9,outKeyframes:o9},"move-down":{inKeyframes:Z_,outKeyframes:J_},"move-left":{inKeyframes:e9,outKeyframes:t9},"move-right":{inKeyframes:n9,outKeyframes:r9}},Bc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=i9[t];return[dl(r,a,l,e.motionDurationMid),{[`
|
|
199
|
-
${r}-enter,
|
|
200
|
-
${r}-appear
|
|
201
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gg=new Jt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),pg=new Jt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),hg=new Jt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),bg=new Jt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),l9=new Jt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),s9=new Jt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),c9=new Jt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),u9=new Jt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),d9={"slide-up":{inKeyframes:gg,outKeyframes:pg},"slide-down":{inKeyframes:hg,outKeyframes:bg},"slide-left":{inKeyframes:l9,outKeyframes:s9},"slide-right":{inKeyframes:c9,outKeyframes:u9}},Xo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=d9[t];return[dl(r,a,l,e.motionDurationMid),{[`
|
|
202
|
-
${r}-enter,
|
|
203
|
-
${r}-appear
|
|
204
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},N1=new Jt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),f9=new Jt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_w=new Jt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Aw=new Jt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),m9=new Jt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),v9=new Jt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),g9=new Jt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p9=new Jt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),h9=new Jt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),b9=new Jt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),y9=new Jt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),C9=new Jt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),S9={zoom:{inKeyframes:N1,outKeyframes:f9},"zoom-big":{inKeyframes:_w,outKeyframes:Aw},"zoom-big-fast":{inKeyframes:_w,outKeyframes:Aw},"zoom-left":{inKeyframes:g9,outKeyframes:p9},"zoom-right":{inKeyframes:h9,outKeyframes:b9},"zoom-up":{inKeyframes:m9,outKeyframes:v9},"zoom-down":{inKeyframes:y9,outKeyframes:C9}},lf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=S9[t];return[dl(r,a,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
205
|
-
${r}-enter,
|
|
206
|
-
${r}-appear
|
|
207
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},x9=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:l,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:f,lineType:v,colorBorder:g,colorText:p,colorTextHeading:b,colorTextDisabled:C,fontSizeLG:x,lineHeight:h,lineHeightLG:$,marginSM:w,paddingSM:E,paddingLG:j,paddingXS:O,motionDurationSlow:I,fontSizeIcon:R,contentPadding:M,fontHeight:N,fontHeightLG:P}=e,B=`${ie(f)} ${v} ${g}`;return{[t]:Object.assign(Object.assign({},dn(e)),{backgroundColor:a,border:B,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:B,"&:first-child":{[`
|
|
208
|
-
&,
|
|
209
|
-
& > ${t}-header`]:{borderRadius:`${ie(d)} ${ie(d)} 0 0`}},"&:last-child":{[`
|
|
210
|
-
&,
|
|
211
|
-
& > ${t}-header`]:{borderRadius:`0 0 ${ie(d)} ${ie(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:b,lineHeight:h,cursor:"pointer",transition:`all ${I}, visibility 0s`},Xa(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:N,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},Cs()),{fontSize:R,transition:`transform ${I}`,svg:{transition:`transform ${I}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:B,[`& > ${t}-content-box`]:{padding:M},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:O,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(E).sub(O).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:x,lineHeight:$,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(j).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:j}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ie(d)} ${ie(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:C,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},$9=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},w9=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
|
|
212
|
-
> ${t}-item:last-child,
|
|
213
|
-
> ${t}-item:last-child ${t}-header
|
|
214
|
-
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},E9=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},O9=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"}),R9=sn("Collapse",e=>{const t=tn(e,{collapseHeaderPaddingSM:`${ie(e.paddingXS)} ${ie(e.paddingSM)}`,collapseHeaderPaddingLG:`${ie(e.padding)} ${ie(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[x9(t),w9(t),E9(t),$9(t),of(t)]},O9),j9=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:l,style:c}=vr("collapse"),{prefixCls:u,className:d,rootClassName:f,style:v,bordered:g=!0,ghost:p,size:b,expandIconPosition:C="start",children:x,destroyInactivePanel:h,destroyOnHidden:$,expandIcon:w}=e,E=Tr(H=>{var z;return(z=b??H)!==null&&z!==void 0?z:"middle"}),j=n("collapse",u),O=n(),[I,R,M]=R9(j),N=i.useMemo(()=>C==="left"?"start":C==="right"?"end":C,[C]),P=w??a,B=i.useCallback((H={})=>{const z=typeof P=="function"?P(H):i.createElement(Si,{rotate:H.isActive?r==="rtl"?-90:90:void 0,"aria-label":H.isActive?"expanded":"collapsed"});return Or(z,()=>{var _;return{className:ue((_=z.props)===null||_===void 0?void 0:_.className,`${j}-arrow`)}})},[P,j,r]),L=ue(`${j}-icon-position-${N}`,{[`${j}-borderless`]:!g,[`${j}-rtl`]:r==="rtl",[`${j}-ghost`]:!!p,[`${j}-${E}`]:E!=="middle"},l,d,f,R,M),k=i.useMemo(()=>Object.assign(Object.assign({},Ac(O)),{motionAppear:!1,leavedClassName:`${j}-content-hidden`}),[O,j]),D=i.useMemo(()=>x?Yr(x).map((H,z)=>{var _,F;const W=H.props;if(W!=null&&W.disabled){const q=(_=H.key)!==null&&_!==void 0?_:String(z),V=Object.assign(Object.assign({},En(H.props,["disabled"])),{key:q,collapsible:(F=W.collapsible)!==null&&F!==void 0?F:"disabled"});return Or(H,V)}return H}):null,[x]);return I(i.createElement(j1,Object.assign({ref:t,openMotion:k},En(e,["rootClassName"]),{expandIcon:B,prefixCls:j,className:L,style:Object.assign(Object.assign({},c),v),destroyInactivePanel:$??h}),D))}),Bv=Object.assign(j9,{Panel:q_}),I9=e=>e instanceof cy?e:new cy(e),N9=(e,t)=>{const{r:n,g:r,b:a,a:l}=e.toRgb(),c=new Fd(e.toRgbString()).onBackground(t).toHsv();return l<=.5?c.v>.5:n*.299+r*.587+a*.114>192},tR=e=>{const{paddingInline:t,onlyIconSize:n}=e;return tn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},nR=e=>{var t,n,r,a,l,c;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,f=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,v=(a=e.contentLineHeight)!==null&&a!==void 0?a:mv(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:mv(d),p=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:mv(f),b=N9(new cy(e.colorBgSolid),"#fff")?"#000":"#fff",C=vl.reduce((x,h)=>Object.assign(Object.assign({},x),{[`${h}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${md(e[`${h}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},C),{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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:b,contentFontSize:u,contentFontSizeSM:d,contentFontSizeLG:f,contentLineHeight:v,contentLineHeightSM:g,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-u*v)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-f*p)/2-e.lineWidth,0)})},M9=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:l,motionEaseInOut:c,iconGap:u,calc:d}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Cs(),"> a":{color:"currentColor"},"&:not(:disabled)":Xa(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(f=>`${f} ${l} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},rR=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),T9=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),P9=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),yg=(e,t,n,r,a,l,c,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},rR(e,Object.assign({background:t},c),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:l||void 0}})}),z9=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},P9(e))}),D9=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Cg=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?D9:z9;return Object.assign(Object.assign({},l(e)),rR(e.componentCls,t,n))},Sg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Cg(e,r,a))}),xg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Cg(e,r,a))}),$g=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),wg=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Cg(e,n,r))}),Yo=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Cg(e,r,a,n))}),_9=e=>{const{componentCls:t}=e;return vl.reduce((n,r)=>{const a=e[`${r}6`],l=e[`${r}1`],c=e[`${r}5`],u=e[`${r}2`],d=e[`${r}3`],f=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},Sg(e,e.colorTextLightSolid,a,{background:c},{background:f})),xg(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:f,borderColor:f,background:e.colorBgContainer})),$g(e)),wg(e,l,{color:a,background:u},{color:a,background:d})),Yo(e,a,"link",{color:c},{color:f})),Yo(e,a,"text",{color:c,background:l},{color:f,background:d}))})},{})},A9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Sg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),$g(e)),wg(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),yg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Yo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),B9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},xg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),$g(e)),wg(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Yo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Yo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),yg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),k9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Sg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),xg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),$g(e)),wg(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Yo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Yo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),yg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),L9=e=>Object.assign(Object.assign({},Yo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),yg(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),H9=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:A9(e),[`${t}-color-primary`]:B9(e),[`${t}-color-dangerous`]:k9(e),[`${t}-color-link`]:L9(e)},_9(e))},F9=e=>Object.assign(Object.assign(Object.assign(Object.assign({},xg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Yo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Sg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Yo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),M1=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:f}=e;return[{[t]:{fontSize:a,height:r,padding:`${ie(d)} ${ie(c)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:f}}}},{[`${n}${n}-circle${t}`]:T9(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},V9=e=>{const t=tn(e,{fontSize:e.contentFontSize});return M1(t,e.componentCls)},W9=e=>{const t=tn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return M1(t,`${e.componentCls}-sm`)},K9=e=>{const t=tn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return M1(t,`${e.componentCls}-lg`)},U9=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},q9=sn("Button",e=>{const t=tR(e);return[M9(t),V9(t),W9(t),K9(t),U9(t),H9(t),F9(t),M_(t)]},nR,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function G9(e,t,n,r){const{focusElCls:a,focus:l,borderElCls:c}=n,u=c?"> *":"",d=["hover",l?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[d]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function X9(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $s(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,l=`${a}-compact`;return{[l]:Object.assign(Object.assign({},G9(e,l,t,a)),X9(a,l,t))}}function Y9(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 Q9(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 Z9(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Y9(e,t,e.componentCls)),Q9(e.componentCls,t))}}const J9=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,l=a(r).mul(-1).equal(),c=u=>{const d=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},c()),c(!0))},eA=Gc(["Button","compact"],e=>{const t=tR(e);return[$s(t),Z9(t),J9(t)]},nR);var tA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function nA(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const rA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},aA=ve.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:l,color:c,variant:u,type:d,danger:f=!1,shape:v,size:g,styles:p,disabled:b,className:C,rootClassName:x,children:h,icon:$,iconPosition:w="start",ghost:E=!1,block:j=!1,htmlType:O="button",classNames:I,style:R={},autoInsertSpace:M,autoFocus:N}=e,P=tA(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),B=d||"default",{button:L}=ve.useContext(Rt),k=v||(L==null?void 0:L.shape)||"default",[D,H]=i.useMemo(()=>{if(c&&u)return[c,u];if(d||f){const Le=rA[B]||[];return f?["danger",Le[1]]:Le}return L!=null&&L.color&&(L!=null&&L.variant)?[L.color,L.variant]:["default","outlined"]},[c,u,d,f,L==null?void 0:L.color,L==null?void 0:L.variant,B]),_=D==="danger"?"dangerous":D,{getPrefixCls:F,direction:W,autoInsertSpace:q,className:V,style:G,classNames:K,styles:U}=vr("button"),J=(n=M??q)!==null&&n!==void 0?n:!0,Q=F("btn",l),[te,Y,ae]=q9(Q),re=i.useContext(Wr),Z=b??re,X=i.useContext(Q6),oe=i.useMemo(()=>nA(a),[a]),[le,de]=i.useState(oe.loading),[ce,ge]=i.useState(!1),he=i.useRef(null),Oe=Ei(t,he),je=i.Children.count(h)===1&&!$&&!$0(H),pe=i.useRef(!0);ve.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),nn(()=>{let Le=null;oe.delay>0?Le=setTimeout(()=>{Le=null,de(!0)},oe.delay):de(oe.loading);function tt(){Le&&(clearTimeout(Le),Le=null)}return tt},[oe.delay,oe.loading]),i.useEffect(()=>{if(!he.current||!J)return;const Le=he.current.textContent||"";je&&sy(Le)?ce||ge(!0):ce&&ge(!1)}),i.useEffect(()=>{N&&he.current&&he.current.focus()},[]);const we=ve.useCallback(Le=>{var tt;if(le||Z){Le.preventDefault();return}(tt=e.onClick)===null||tt===void 0||tt.call(e,("href"in e,Le))},[e.onClick,le,Z]),{compactSize:Se,compactItemClassnames:Ce}=_o(Q,W),De={large:"lg",small:"sm",middle:void 0},Ae=Tr(Le=>{var tt,yt;return(yt=(tt=g??Se)!==null&&tt!==void 0?tt:X)!==null&&yt!==void 0?yt:Le}),Qe=Ae&&(r=De[Ae])!==null&&r!==void 0?r:"",Ke=le?"loading":$,Fe=En(P,["navigate"]),Ge=ue(Q,Y,ae,{[`${Q}-${k}`]:k!=="default"&&k,[`${Q}-${B}`]:B,[`${Q}-dangerous`]:f,[`${Q}-color-${_}`]:_,[`${Q}-variant-${H}`]:H,[`${Q}-${Qe}`]:Qe,[`${Q}-icon-only`]:!h&&h!==0&&!!Ke,[`${Q}-background-ghost`]:E&&!$0(H),[`${Q}-loading`]:le,[`${Q}-two-chinese-chars`]:ce&&J&&!le,[`${Q}-block`]:j,[`${Q}-rtl`]:W==="rtl",[`${Q}-icon-end`]:w==="end"},Ce,C,x,V),Te=Object.assign(Object.assign({},G),R),Ee=ue(I==null?void 0:I.icon,K.icon),_e=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),U.icon||{}),Re=Le=>ve.createElement(Z6,{prefixCls:Q,className:Ee,style:_e},Le),Pe=()=>ve.createElement(N_,{existIcon:!!$,prefixCls:Q,loading:le,mount:pe.current});let ye;$&&!le?ye=Re($):a&&typeof a=="object"&&a.icon?ye=Re(a.icon):ye=Pe();const $e=h||h===0?I_(h,je&&J):null;if(Fe.href!==void 0)return te(ve.createElement("a",Object.assign({},Fe,{className:ue(Ge,{[`${Q}-disabled`]:Z}),href:Z?void 0:Fe.href,style:Te,onClick:we,ref:Oe,tabIndex:Z?-1:0,"aria-disabled":Z}),ye,$e));let Me=ve.createElement("button",Object.assign({},P,{type:O,className:Ge,style:Te,onClick:we,disabled:Z,ref:Oe}),ye,$e,Ce&&ve.createElement(eA,{prefixCls:Q}));return $0(H)||(Me=ve.createElement(af,{component:"Button",disabled:le},Me)),te(Me)}),Xe=aA;Xe.Group=R_;Xe.__ANT_BUTTON=!0;const R0=e=>typeof(e==null?void 0:e.then)=="function",T1=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:l,autoFocus:c,emitEvent:u,isSilent:d,quitOnNullishReturnValue:f,actionFn:v}=e,g=i.useRef(!1),p=i.useRef(null),[b,C]=ds(!1),x=(...w)=>{l==null||l.apply(void 0,w)};i.useEffect(()=>{let w=null;return c&&(w=setTimeout(()=>{var E;(E=p.current)===null||E===void 0||E.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[c]);const h=w=>{R0(w)&&(C(!0),w.then((...E)=>{C(!1,!0),x.apply(void 0,E),g.current=!1},E=>{if(C(!1,!0),g.current=!1,!(d!=null&&d()))return Promise.reject(E)}))},$=w=>{if(g.current)return;if(g.current=!0,!v){x();return}let E;if(u){if(E=v(w),f&&!R0(E)){g.current=!1,x(w);return}}else if(v.length)E=v(l),g.current=!1;else if(E=v(),!R0(E)){x();return}h(E)};return i.createElement(Xe,Object.assign({},R1(t),{onClick:$,loading:b,prefixCls:r},a,{ref:p}),n)},sf=ve.createContext({}),{Provider:aR}=sf,Bw=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:u,onConfirm:d}=i.useContext(sf);return a?ve.createElement(T1,{isSilent:r,actionFn:u,close:(...f)=>{c==null||c.apply(void 0,f),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},kw=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:u,onOk:d}=i.useContext(sf);return ve.createElement(T1,{isSilent:n,type:c||"primary",actionFn:d,close:(...f)=>{t==null||t.apply(void 0,f),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},l)};var oR=i.createContext(null),Lw=[];function oA(e,t){var n=i.useState(function(){if(!oa())return null;var C=document.createElement("div");return C}),r=fe(n,1),a=r[0],l=i.useRef(!1),c=i.useContext(oR),u=i.useState(Lw),d=fe(u,2),f=d[0],v=d[1],g=c||(l.current?void 0:function(C){v(function(x){var h=[C].concat(Ne(x));return h})});function p(){a.parentElement||document.body.appendChild(a),l.current=!0}function b(){var C;(C=a.parentElement)===null||C===void 0||C.removeChild(a),l.current=!1}return nn(function(){return e?c?c(p):p():b(),b},[e]),nn(function(){f.length&&(f.forEach(function(C){return C()}),v(Lw))},[f]),[a,g]}var j0;function iR(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,l;if(e){var c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),f=parseInt(u.height,10);try{var v=d?"width: ".concat(u.width,";"):"",g=f?"height: ".concat(u.height,";"):"";yi(`
|
|
215
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
216
|
-
`).concat(v,`
|
|
217
|
-
`).concat(g,`
|
|
218
|
-
}`),t)}catch(C){console.error(C),a=d,l=f}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,b=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),_d(t),{width:p,height:b}}function Hw(e){return typeof document>"u"?0:(j0===void 0&&(j0=iR()),j0.width)}function uy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:iR(e)}function iA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var lA="rc-util-locker-".concat(Date.now()),Fw=0;function sA(e){var t=!!e,n=i.useState(function(){return Fw+=1,"".concat(lA,"_").concat(Fw)}),r=fe(n,1),a=r[0];nn(function(){if(t){var l=uy(document.body).width,c=iA();yi(`
|
|
219
|
-
html body {
|
|
220
|
-
overflow-y: hidden;
|
|
221
|
-
`.concat(c?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
222
|
-
}`),a)}else _d(a);return function(){_d(a)}},[t,a])}var cA=!1;function uA(e){return cA}var Vw=function(t){return t===!1?!1:!oa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},P1=i.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var l=e.autoDestroy,c=l===void 0?!0:l,u=e.children,d=i.useState(n),f=fe(d,2),v=f[0],g=f[1],p=v||n;i.useEffect(function(){(c||n)&&g(n)},[n,c]);var b=i.useState(function(){return Vw(a)}),C=fe(b,2),x=C[0],h=C[1];i.useEffect(function(){var B=Vw(a);h(B??null)});var $=oA(p&&!x),w=fe($,2),E=w[0],j=w[1],O=x??E;sA(r&&n&&oa()&&(O===E||O===document.body));var I=null;if(u&&Ro(u)&&t){var R=u;I=R.ref}var M=Ei(I,t);if(!p||!oa()||x===void 0)return null;var N=O===!1||uA(),P=u;return t&&(P=i.cloneElement(u,{ref:M})),i.createElement(oR.Provider,{value:j},N?P:mo.createPortal(P,O))}),lR=i.createContext({});function dA(){var e=se({},ng);return e.useId}var Ww=0,Kw=dA();const cf=Kw?(function(t){var n=Kw();return t||n}):(function(t){var n=i.useState("ssr-id"),r=fe(n,2),a=r[0],l=r[1];return i.useEffect(function(){var c=Ww;Ww+=1,l("rc_unique_".concat(c))},[]),t||a});function Uw(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function qw(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function fA(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=qw(a),n.top+=qw(a,!0),n}const mA=i.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var vA={width:0,height:0,overflow:"hidden",outline:"none"},gA={outline:"none"},sR=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.title,c=e.ariaId,u=e.footer,d=e.closable,f=e.closeIcon,v=e.onClose,g=e.children,p=e.bodyStyle,b=e.bodyProps,C=e.modalRender,x=e.onMouseDown,h=e.onMouseUp,$=e.holderRef,w=e.visible,E=e.forceRender,j=e.width,O=e.height,I=e.classNames,R=e.styles,M=ve.useContext(lR),N=M.panel,P=Ei($,N),B=i.useRef(),L=i.useRef();ve.useImperativeHandle(t,function(){return{focus:function(){var G;(G=B.current)===null||G===void 0||G.focus({preventScroll:!0})},changeActive:function(G){var K=document,U=K.activeElement;G&&U===L.current?B.current.focus({preventScroll:!0}):!G&&U===B.current&&L.current.focus({preventScroll:!0})}}});var k={};j!==void 0&&(k.width=j),O!==void 0&&(k.height=O);var D=u?ve.createElement("div",{className:ue("".concat(n,"-footer"),I==null?void 0:I.footer),style:se({},R==null?void 0:R.footer)},u):null,H=l?ve.createElement("div",{className:ue("".concat(n,"-header"),I==null?void 0:I.header),style:se({},R==null?void 0:R.header)},ve.createElement("div",{className:"".concat(n,"-title"),id:c},l)):null,z=i.useMemo(function(){return Et(d)==="object"&&d!==null?d:d?{closeIcon:f??ve.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f,n]),_=Nr(z,!0),F=Et(d)==="object"&&d.disabled,W=d?ve.createElement("button",be({type:"button",onClick:v,"aria-label":"Close"},_,{className:"".concat(n,"-close"),disabled:F}),z.closeIcon):null,q=ve.createElement("div",{className:ue("".concat(n,"-content"),I==null?void 0:I.content),style:R==null?void 0:R.content},W,H,ve.createElement("div",be({className:ue("".concat(n,"-body"),I==null?void 0:I.body),style:se(se({},p),R==null?void 0:R.body)},b),g),D);return ve.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:P,style:se(se({},a),k),className:ue(n,r),onMouseDown:x,onMouseUp:h},ve.createElement("div",{ref:B,tabIndex:0,style:gA},ve.createElement(mA,{shouldUpdate:w||E},C?C(q):q)),ve.createElement("div",{tabIndex:0,ref:L,style:vA}))}),cR=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,l=e.className,c=e.visible,u=e.forceRender,d=e.destroyOnClose,f=e.motionName,v=e.ariaId,g=e.onVisibleChanged,p=e.mousePosition,b=i.useRef(),C=i.useState(),x=fe(C,2),h=x[0],$=x[1],w={};h&&(w.transformOrigin=h);function E(){var j=fA(b.current);$(p&&(p.x||p.y)?"".concat(p.x-j.left,"px ").concat(p.y-j.top,"px"):"")}return i.createElement(Zr,{visible:c,onVisibleChanged:g,onAppearPrepare:E,onEnterPrepare:E,forceRender:u,motionName:f,removeOnLeave:d,ref:b},function(j,O){var I=j.className,R=j.style;return i.createElement(sR,be({},e,{ref:t,title:r,ariaId:v,prefixCls:n,holderRef:O,style:se(se(se({},R),a),w),className:ue(l,I)}))})});cR.displayName="Content";var pA=function(t){var n=t.prefixCls,r=t.style,a=t.visible,l=t.maskProps,c=t.motionName,u=t.className;return i.createElement(Zr,{key:"mask",visible:a,motionName:c,leavedClassName:"".concat(n,"-mask-hidden")},function(d,f){var v=d.className,g=d.style;return i.createElement("div",be({ref:f,style:se(se({},g),r),className:ue("".concat(n,"-mask"),v,u)},l))})},hA=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,l=t.visible,c=l===void 0?!1:l,u=t.keyboard,d=u===void 0?!0:u,f=t.focusTriggerAfterClose,v=f===void 0?!0:f,g=t.wrapStyle,p=t.wrapClassName,b=t.wrapProps,C=t.onClose,x=t.afterOpenChange,h=t.afterClose,$=t.transitionName,w=t.animation,E=t.closable,j=E===void 0?!0:E,O=t.mask,I=O===void 0?!0:O,R=t.maskTransitionName,M=t.maskAnimation,N=t.maskClosable,P=N===void 0?!0:N,B=t.maskStyle,L=t.maskProps,k=t.rootClassName,D=t.classNames,H=t.styles,z=i.useRef(),_=i.useRef(),F=i.useRef(),W=i.useState(c),q=fe(W,2),V=q[0],G=q[1],K=cf();function U(){Mb(_.current,document.activeElement)||(z.current=document.activeElement)}function J(){if(!Mb(_.current,document.activeElement)){var de;(de=F.current)===null||de===void 0||de.focus()}}function Q(de){if(de)J();else{if(G(!1),I&&z.current&&v){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}V&&(h==null||h())}x==null||x(de)}function te(de){C==null||C(de)}var Y=i.useRef(!1),ae=i.useRef(),re=function(){clearTimeout(ae.current),Y.current=!0},Z=function(){ae.current=setTimeout(function(){Y.current=!1})},X=null;P&&(X=function(ce){Y.current?Y.current=!1:_.current===ce.target&&te(ce)});function oe(de){if(d&&de.keyCode===ot.ESC){de.stopPropagation(),te(de);return}c&&de.keyCode===ot.TAB&&F.current.changeActive(!de.shiftKey)}i.useEffect(function(){c&&(G(!0),U())},[c]),i.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var le=se(se(se({zIndex:a},g),H==null?void 0:H.wrapper),{},{display:V?null:"none"});return i.createElement("div",be({className:ue("".concat(r,"-root"),k)},Nr(t,{data:!0})),i.createElement(pA,{prefixCls:r,visible:I&&c,motionName:Uw(r,R,M),style:se(se({zIndex:a},B),H==null?void 0:H.mask),maskProps:L,className:D==null?void 0:D.mask}),i.createElement("div",be({tabIndex:-1,onKeyDown:oe,className:ue("".concat(r,"-wrap"),p,D==null?void 0:D.wrapper),ref:_,onClick:X,style:le},b),i.createElement(cR,be({},t,{onMouseDown:re,onMouseUp:Z,ref:F,closable:j,ariaId:K,prefixCls:r,visible:c&&V,onClose:te,onVisibleChanged:Q,motionName:Uw(r,$,w)}))))},uR=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,l=t.destroyOnClose,c=l===void 0?!1:l,u=t.afterClose,d=t.panelRef,f=i.useState(n),v=fe(f,2),g=v[0],p=v[1],b=i.useMemo(function(){return{panel:d}},[d]);return i.useEffect(function(){n&&p(!0)},[n]),!a&&c&&!g?null:i.createElement(lR.Provider,{value:b},i.createElement(P1,{open:n||a||g,autoDestroy:!1,getContainer:r,autoLock:n||g},i.createElement(hA,be({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),p(!1)}}))))};uR.displayName="Dialog";var ts="RC_FORM_INTERNAL_HOOKS",or=function(){Xn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},fs=i.createContext({getFieldValue:or,getFieldsValue:or,getFieldError:or,getFieldWarning:or,getFieldsError:or,isFieldsTouched:or,isFieldTouched:or,isFieldValidating:or,isFieldsValidating:or,resetFields:or,setFields:or,setFieldValue:or,setFieldsValue:or,validateFields:or,submit:or,getInternalHooks:function(){return or(),{dispatch:or,initEntityValue:or,registerField:or,useSubscribe:or,setInitialValues:or,destroyForm:or,setCallbacks:or,registerWatch:or,getFields:or,setValidateMessages:or,setPreserve:or,getInitialValue:or}}}),Vd=i.createContext(null);function dy(e){return e==null?[]:Array.isArray(e)?e:[e]}function bA(e){return e&&!!e._init}function fy(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var my=fy();function yA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function CA(e,t,n){if(ag())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&zd(a,n.prototype),a}function vy(e){var t=typeof Map=="function"?new Map:void 0;return vy=function(r){if(r===null||!yA(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return CA(r,arguments,cs(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),zd(a,r)},vy(e)}var SA=/%[sdj%]/g,xA=function(){};function gy(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 Ua(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(SA,function(u){if(u==="%%")return"%";if(a>=l)return u;switch(u){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return u}});return c}return e}function $A(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Qr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$A(t)&&typeof e=="string"&&!e)}function wA(e,t,n){var r=[],a=0,l=e.length;function c(u){r.push.apply(r,Ne(u||[])),a++,a===l&&n(r)}e.forEach(function(u){t(u,c)})}function Gw(e,t,n){var r=0,a=e.length;function l(c){if(c&&c.length){n(c);return}var u=r;r=r+1,u<a?t(e[u],l):n([])}l([])}function EA(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ne(e[n]||[]))}),t}var Xw=(function(e){Ya(n,e);var t=po(n);function n(r,a){var l;return fr(this,n),l=t.call(this,"Async Validation Error"),ne(wt(l),"errors",void 0),ne(wt(l),"fields",void 0),l.errors=r,l.fields=a,l}return mr(n)})(vy(Error));function OA(e,t,n,r,a){if(t.first){var l=new Promise(function(p,b){var C=function($){return r($),$.length?b(new Xw($,gy($))):p(a)},x=EA(e);Gw(x,n,C)});return l.catch(function(p){return p}),l}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),d=u.length,f=0,v=[],g=new Promise(function(p,b){var C=function(h){if(v.push.apply(v,h),f++,f===d)return r(v),v.length?b(new Xw(v,gy(v))):p(a)};u.length||(r(v),p(a)),u.forEach(function(x){var h=e[x];c.indexOf(x)!==-1?Gw(h,n,C):wA(h,n,C)})});return g.catch(function(p){return p}),g}function RA(e){return!!(e&&e.message!==void 0)}function jA(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Yw(e,t){return function(n){var r;return e.fullFields?r=jA(t,e.fullFields):r=t[n.field||e.fullField],RA(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 Qw(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Et(r)==="object"&&Et(e[n])==="object"?e[n]=se(se({},e[n]),r):e[n]=r}}return e}var sc="enum",IA=function(t,n,r,a,l){t[sc]=Array.isArray(t[sc])?t[sc]:[],t[sc].indexOf(n)===-1&&a.push(Ua(l.messages[sc],t.fullField,t[sc].join(", ")))},NA=function(t,n,r,a,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Ua(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||a.push(Ua(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},MA=function(t,n,r,a,l){var c=typeof t.len=="number",u=typeof t.min=="number",d=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=n,g=null,p=typeof n=="number",b=typeof n=="string",C=Array.isArray(n);if(p?g="number":b?g="string":C&&(g="array"),!g)return!1;C&&(v=n.length),b&&(v=n.replace(f,"_").length),c?v!==t.len&&a.push(Ua(l.messages[g].len,t.fullField,t.len)):u&&!d&&v<t.min?a.push(Ua(l.messages[g].min,t.fullField,t.min)):d&&!u&&v>t.max?a.push(Ua(l.messages[g].max,t.fullField,t.max)):u&&d&&(v<t.min||v>t.max)&&a.push(Ua(l.messages[g].range,t.fullField,t.min,t.max))},dR=function(t,n,r,a,l,c){t.required&&(!r.hasOwnProperty(t.field)||Qr(n,c||t.type))&&a.push(Ua(l.messages.required,t.fullField))},km;const TA=(function(){if(km)return km;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),d=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(c,"$")),v=function(I){return I&&I.exact?u:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(c).concat(t(I),")"),"g")};v.v4=function(O){return O&&O.exact?d:new RegExp("".concat(t(O)).concat(n).concat(t(O)),"g")},v.v6=function(O){return O&&O.exact?f:new RegExp("".concat(t(O)).concat(c).concat(t(O)),"g")};var g="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",b=v.v4().source,C=v.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',j="(?:".concat(g,"|www\\.)").concat(p,"(?:localhost|").concat(b,"|").concat(C,"|").concat(x).concat(h).concat($,")").concat(w).concat(E);return km=new RegExp("(?:^".concat(j,"$)"),"i"),km});var I0={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vd={integer:function(t){return vd.number(t)&&parseInt(t,10)===t},float:function(t){return vd.number(t)&&!vd.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 Et(t)==="object"&&!vd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(I0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(I0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(TA())},hex:function(t){return typeof t=="string"&&!!t.match(I0.hex)}},PA=function(t,n,r,a,l){if(t.required&&n===void 0){dR(t,n,r,a,l);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;c.indexOf(u)>-1?vd[u](n)||a.push(Ua(l.messages.types[u],t.fullField,t.type)):u&&Et(n)!==t.type&&a.push(Ua(l.messages.types[u],t.fullField,t.type))},zA=function(t,n,r,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Ua(l.messages.whitespace,t.fullField))};const Tn={required:dR,whitespace:zA,type:PA,range:MA,enum:IA,pattern:NA};var DA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l)}r(c)},_A=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Tn.required(t,n,a,c,l,"array"),n!=null&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},AA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},BA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n,"date")&&!t.required)return r();if(Tn.required(t,n,a,c,l),!Qr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Tn.type(t,d,a,c,l),d&&Tn.range(t,d.getTime(),a,c,l)}}r(c)},kA="enum",LA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn[kA](t,n,a,c,l)}r(c)},HA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},FA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},VA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},WA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},KA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},UA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n,"string")&&!t.required)return r();Tn.required(t,n,a,c,l),Qr(n,"string")||Tn.pattern(t,n,a,c,l)}r(c)},qA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),Qr(n)||Tn.type(t,n,a,c,l)}r(c)},GA=function(t,n,r,a,l){var c=[],u=Array.isArray(n)?"array":Et(n);Tn.required(t,n,a,c,l,u),r(c)},XA=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Qr(n,"string")&&!t.required)return r();Tn.required(t,n,a,c,l,"string"),Qr(n,"string")||(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l),Tn.pattern(t,n,a,c,l),t.whitespace===!0&&Tn.whitespace(t,n,a,c,l))}r(c)},Lm=function(t,n,r,a,l){var c=t.type,u=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(Qr(n,c)&&!t.required)return r();Tn.required(t,n,a,u,l,c),Qr(n,c)||Tn.type(t,n,a,u,l)}r(u)};const Ed={string:XA,method:VA,number:WA,boolean:AA,regexp:qA,integer:FA,float:HA,array:_A,object:KA,enum:LA,pattern:UA,date:BA,url:Lm,hex:Lm,email:Lm,tel:Lm,required:GA,any:DA};var uf=(function(){function e(t){fr(this,e),ne(this,"rules",null),ne(this,"_messages",my),this.define(t)}return mr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Et(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var l=n[a];r.rules[a]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=Qw(fy(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,u=a,d=l;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,c),Promise.resolve(c);function f(C){var x=[],h={};function $(E){if(Array.isArray(E)){var j;x=(j=x).concat.apply(j,Ne(E))}else x.push(E)}for(var w=0;w<C.length;w++)$(C[w]);x.length?(h=gy(x),d(x,h)):d(null,c)}if(u.messages){var v=this.messages();v===my&&(v=fy()),Qw(v,u.messages),u.messages=v}else u.messages=this.messages();var g={},p=u.keys||Object.keys(this.rules);p.forEach(function(C){var x=r.rules[C],h=c[C];x.forEach(function($){var w=$;typeof w.transform=="function"&&(c===n&&(c=se({},c)),h=c[C]=w.transform(h),h!=null&&(w.type=w.type||(Array.isArray(h)?"array":Et(h)))),typeof w=="function"?w={validator:w}:w=se({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=C,w.fullField=w.fullField||C,w.type=r.getType(w),g[C]=g[C]||[],g[C].push({rule:w,value:h,source:c,field:C}))})});var b={};return OA(g,u,function(C,x){var h=C.rule,$=(h.type==="object"||h.type==="array")&&(Et(h.fields)==="object"||Et(h.defaultField)==="object");$=$&&(h.required||!h.required&&C.value),h.field=C.field;function w(R,M){return se(se({},M),{},{fullField:"".concat(h.fullField,".").concat(R),fullFields:h.fullFields?[].concat(Ne(h.fullFields),[R]):[R]})}function E(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(R)?R:[R];!u.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&h.message!==void 0&&h.message!==null&&(M=[].concat(h.message));var N=M.map(Yw(h,c));if(u.first&&N.length)return b[h.field]=1,x(N);if(!$)x(N);else{if(h.required&&!C.value)return h.message!==void 0?N=[].concat(h.message).map(Yw(h,c)):u.error&&(N=[u.error(h,Ua(u.messages.required,h.field))]),x(N);var P={};h.defaultField&&Object.keys(C.value).map(function(k){P[k]=h.defaultField}),P=se(se({},P),C.rule.fields);var B={};Object.keys(P).forEach(function(k){var D=P[k],H=Array.isArray(D)?D:[D];B[k]=H.map(w.bind(null,k))});var L=new e(B);L.messages(u.messages),C.rule.options&&(C.rule.options.messages=u.messages,C.rule.options.error=u.error),L.validate(C.value,C.rule.options||u,function(k){var D=[];N&&N.length&&D.push.apply(D,Ne(N)),k&&k.length&&D.push.apply(D,Ne(k)),x(D.length?D:null)})}}var j;if(h.asyncValidator)j=h.asyncValidator(h,C.value,E,C.source,u);else if(h.validator){try{j=h.validator(h,C.value,E,C.source,u)}catch(R){var O,I;(O=(I=console).error)===null||O===void 0||O.call(I,R),u.suppressValidatorError||setTimeout(function(){throw R},0),E(R.message)}j===!0?E():j===!1?E(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):j instanceof Array?E(j):j instanceof Error&&E(j.message)}j&&j.then&&j.then(function(){return E()},function(R){return E(R)})},function(C){f(C)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ed.hasOwnProperty(n.type))throw new Error(Ua("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Ed.required:Ed[this.getType(n)]||void 0}}]),e})();ne(uf,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ed[t]=n});ne(uf,"warning",xA);ne(uf,"messages",my);ne(uf,"validators",Ed);var Wa="'${name}' is not a valid ${type}",fR={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:Wa,method:Wa,array:Wa,object:Wa,number:Wa,date:Wa,boolean:Wa,integer:Wa,float:Wa,regexp:Wa,email:Wa,url:Wa,hex:Wa},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}"}},Zw=uf;function YA(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Jw="CODE_LOGIC_ERROR";function py(e,t,n,r,a){return hy.apply(this,arguments)}function hy(){return hy=wa(Vn().mark(function e(t,n,r,a,l){var c,u,d,f,v,g,p,b,C;return Vn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return c=se({},r),delete c.ruleIndex,Zw.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch($){return console.error($),Promise.reject(Jw)}}),d=null,c&&c.type==="array"&&c.defaultField&&(d=c.defaultField,delete c.defaultField),f=new Zw(ne({},t,[c])),v=Sc(fR,a.validateMessages),f.messages(v),g=[],h.prev=10,h.next=13,Promise.resolve(f.validate(ne({},t,n),se({},a)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(g=h.t0.errors.map(function($,w){var E=$.message,j=E===Jw?v.default:E;return i.isValidElement(j)?i.cloneElement(j,{key:"error_".concat(w)}):j}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){h.next=23;break}return h.next=21,Promise.all(n.map(function($,w){return py("".concat(t,".").concat(w),$,d,a,l)}));case 21:return p=h.sent,h.abrupt("return",p.reduce(function($,w){return[].concat(Ne($),Ne(w))},[]));case 23:return b=se(se({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),C=g.map(function($){return typeof $=="string"?YA($,b):$}),h.abrupt("return",C);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),hy.apply(this,arguments)}function QA(e,t,n,r,a,l){var c=e.join("."),u=n.map(function(v,g){var p=v.validator,b=se(se({},v),{},{ruleIndex:g});return p&&(b.validator=function(C,x,h){var $=!1,w=function(){for(var O=arguments.length,I=new Array(O),R=0;R<O;R++)I[R]=arguments[R];Promise.resolve().then(function(){Xn(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||h.apply(void 0,I)})},E=p(C,x,w);$=E&&typeof E.then=="function"&&typeof E.catch=="function",Xn($,"`callback` is deprecated. Please return a promise instead."),$&&E.then(function(){h()}).catch(function(j){h(j||" ")})}),b}).sort(function(v,g){var p=v.warningOnly,b=v.ruleIndex,C=g.warningOnly,x=g.ruleIndex;return!!p==!!C?b-x:p?1:-1}),d;if(a===!0)d=new Promise((function(){var v=wa(Vn().mark(function g(p,b){var C,x,h;return Vn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:C=0;case 1:if(!(C<u.length)){w.next=12;break}return x=u[C],w.next=5,py(c,t,x,r,l);case 5:if(h=w.sent,!h.length){w.next=9;break}return b([{errors:h,rule:x}]),w.abrupt("return");case 9:C+=1,w.next=1;break;case 12:p([]);case 13:case"end":return w.stop()}},g)}));return function(g,p){return v.apply(this,arguments)}})());else{var f=u.map(function(v){return py(c,t,v,r,l).then(function(g){return{errors:g,rule:v}})});d=(a?JA(f):ZA(f)).then(function(v){return Promise.reject(v)})}return d.catch(function(v){return v}),d}function ZA(e){return by.apply(this,arguments)}function by(){return by=wa(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var l,c=(l=[]).concat.apply(l,Ne(a));return c}));case 1:case"end":return r.stop()}},e)})),by.apply(this,arguments)}function JA(e){return yy.apply(this,arguments)}function yy(){return yy=wa(Vn().mark(function e(t){var n;return Vn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(l){t.forEach(function(c){c.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return a.stop()}},e)})),yy.apply(this,arguments)}function Ar(e){return dy(e)}function eE(e,t){var n={};return t.forEach(function(r){var a=$a(e,r);n=uo(n,r,a)}),n}function jc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mR(t,r,n)})}function mR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function eB(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Et(e)!=="object"||Et(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Ne(a).every(function(l){var c=e[l],u=t[l];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function tB(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Et(t.target)==="object"&&e in t.target?t.target[e]:t}function tE(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],l=t-n;return l>0?[].concat(Ne(e.slice(0,n)),[a],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):l<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[a],Ne(e.slice(n+1,r))):e}var nB=["name"],io=[];function N0(e,t,n,r,a,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==a}var z1=(function(e){Ya(n,e);var t=po(n);function n(r){var a;if(fr(this,n),a=t.call(this,r),ne(wt(a),"state",{resetCount:0}),ne(wt(a),"cancelRegisterFunc",null),ne(wt(a),"mounted",!1),ne(wt(a),"touched",!1),ne(wt(a),"dirty",!1),ne(wt(a),"validatePromise",void 0),ne(wt(a),"prevValidating",void 0),ne(wt(a),"errors",io),ne(wt(a),"warnings",io),ne(wt(a),"cancelRegister",function(){var d=a.props,f=d.preserve,v=d.isListField,g=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(v,f,Ar(g)),a.cancelRegisterFunc=null}),ne(wt(a),"getNamePath",function(){var d=a.props,f=d.name,v=d.fieldContext,g=v.prefixName,p=g===void 0?[]:g;return f!==void 0?[].concat(Ne(p),Ne(f)):[]}),ne(wt(a),"getRules",function(){var d=a.props,f=d.rules,v=f===void 0?[]:f,g=d.fieldContext;return v.map(function(p){return typeof p=="function"?p(g):p})}),ne(wt(a),"refresh",function(){a.mounted&&a.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),ne(wt(a),"metaCache",null),ne(wt(a),"triggerMetaEvent",function(d){var f=a.props.onMetaChange;if(f){var v=se(se({},a.getMeta()),{},{destroy:d});jo(a.metaCache,v)||f(v),a.metaCache=v}else a.metaCache=null}),ne(wt(a),"onStoreChange",function(d,f,v){var g=a.props,p=g.shouldUpdate,b=g.dependencies,C=b===void 0?[]:b,x=g.onReset,h=v.store,$=a.getNamePath(),w=a.getValue(d),E=a.getValue(h),j=f&&jc(f,$);switch(v.type==="valueUpdate"&&v.source==="external"&&!jo(w,E)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=io,a.warnings=io,a.triggerMetaEvent()),v.type){case"reset":if(!f||j){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=io,a.warnings=io,a.triggerMetaEvent(),x==null||x(),a.refresh();return}break;case"remove":{if(p&&N0(p,d,h,w,E,v)){a.reRender();return}break}case"setField":{var O=v.data;if(j){"touched"in O&&(a.touched=O.touched),"validating"in O&&!("originRCField"in O)&&(a.validatePromise=O.validating?Promise.resolve([]):null),"errors"in O&&(a.errors=O.errors||io),"warnings"in O&&(a.warnings=O.warnings||io),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in O&&jc(f,$,!0)){a.reRender();return}if(p&&!$.length&&N0(p,d,h,w,E,v)){a.reRender();return}break}case"dependenciesUpdate":{var I=C.map(Ar);if(I.some(function(R){return jc(v.relatedFields,R)})){a.reRender();return}break}default:if(j||(!C.length||$.length||p)&&N0(p,d,h,w,E,v)){a.reRender();return}break}p===!0&&a.reRender()}),ne(wt(a),"validateRules",function(d){var f=a.getNamePath(),v=a.getValue(),g=d||{},p=g.triggerName,b=g.validateOnly,C=b===void 0?!1:b,x=Promise.resolve().then(wa(Vn().mark(function h(){var $,w,E,j,O,I,R;return Vn().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(a.mounted){N.next=2;break}return N.abrupt("return",[]);case 2:if($=a.props,w=$.validateFirst,E=w===void 0?!1:w,j=$.messageVariables,O=$.validateDebounce,I=a.getRules(),p&&(I=I.filter(function(P){return P}).filter(function(P){var B=P.validateTrigger;if(!B)return!0;var L=dy(B);return L.includes(p)})),!(O&&p)){N.next=10;break}return N.next=8,new Promise(function(P){setTimeout(P,O)});case 8:if(a.validatePromise===x){N.next=10;break}return N.abrupt("return",[]);case 10:return R=QA(f,v,I,d,E,j),R.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:io;if(a.validatePromise===x){var B;a.validatePromise=null;var L=[],k=[];(B=P.forEach)===null||B===void 0||B.call(P,function(D){var H=D.rule.warningOnly,z=D.errors,_=z===void 0?io:z;H?k.push.apply(k,Ne(_)):L.push.apply(L,Ne(_))}),a.errors=L,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),N.abrupt("return",R);case 13:case"end":return N.stop()}},h)})));return C||(a.validatePromise=x,a.dirty=!0,a.errors=io,a.warnings=io,a.triggerMetaEvent(),a.reRender()),x}),ne(wt(a),"isFieldValidating",function(){return!!a.validatePromise}),ne(wt(a),"isFieldTouched",function(){return a.touched}),ne(wt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,f=d.getInternalHooks(ts),v=f.getInitialValue;return v(a.getNamePath())!==void 0}),ne(wt(a),"getErrors",function(){return a.errors}),ne(wt(a),"getWarnings",function(){return a.warnings}),ne(wt(a),"isListField",function(){return a.props.isListField}),ne(wt(a),"isList",function(){return a.props.isList}),ne(wt(a),"isPreserve",function(){return a.props.preserve}),ne(wt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),ne(wt(a),"getOnlyChild",function(d){if(typeof d=="function"){var f=a.getMeta();return se(se({},a.getOnlyChild(d(a.getControlled(),f,a.props.fieldContext))),{},{isFunction:!0})}var v=Yr(d);return v.length!==1||!i.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}}),ne(wt(a),"getValue",function(d){var f=a.props.fieldContext.getFieldsValue,v=a.getNamePath();return $a(d||f(!0),v)}),ne(wt(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.props,v=f.name,g=f.trigger,p=f.validateTrigger,b=f.getValueFromEvent,C=f.normalize,x=f.valuePropName,h=f.getValueProps,$=f.fieldContext,w=p!==void 0?p:$.validateTrigger,E=a.getNamePath(),j=$.getInternalHooks,O=$.getFieldsValue,I=j(ts),R=I.dispatch,M=a.getValue(),N=h||function(D){return ne({},x,D)},P=d[g],B=v!==void 0?N(M):{},L=se(se({},d),B);L[g]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,H=arguments.length,z=new Array(H),_=0;_<H;_++)z[_]=arguments[_];b?D=b.apply(void 0,z):D=tB.apply(void 0,[x].concat(z)),C&&(D=C(D,M,O(!0))),D!==M&&R({type:"updateValue",namePath:E,value:D}),P&&P.apply(void 0,z)};var k=dy(w||[]);return k.forEach(function(D){var H=L[D];L[D]=function(){H&&H.apply(void 0,arguments);var z=a.props.rules;z&&z.length&&R({type:"validateField",namePath:E,triggerName:D})}}),L}),r.fieldContext){var l=r.fieldContext.getInternalHooks,c=l(ts),u=c.initEntityValue;u(wt(a))}return a}return mr(n,[{key:"componentDidMount",value:function(){var a=this.props,l=a.shouldUpdate,c=a.fieldContext;if(this.mounted=!0,c){var u=c.getInternalHooks,d=u(ts),f=d.registerField;this.cancelRegisterFunc=f(this)}l===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,l=this.props.children,c=this.getOnlyChild(l),u=c.child,d=c.isFunction,f;return d?f=u:i.isValidElement(u)?f=i.cloneElement(u,this.getControlled(u.props)):(Xn(!u,"`children` of Field is not validate ReactElement."),f=u),i.createElement(i.Fragment,{key:a},f)}}]),n})(i.Component);ne(z1,"contextType",fs);ne(z1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function D1(e){var t,n=e.name,r=Lt(e,nB),a=i.useContext(fs),l=i.useContext(Vd),c=n!==void 0?Ar(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return u||(d="_".concat((c||[]).join("_"))),i.createElement(z1,be({key:d,name:c,isListField:u},r,{fieldContext:a}))}function vR(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,l=e.validateTrigger,c=e.isListField,u=i.useContext(fs),d=i.useContext(Vd),f=i.useRef({keys:[],id:0}),v=f.current,g=i.useMemo(function(){var x=Ar(u.prefixName)||[];return[].concat(Ne(x),Ne(Ar(t)))},[u.prefixName,t]),p=i.useMemo(function(){return se(se({},u),{},{prefixName:g})},[u,g]),b=i.useMemo(function(){return{getKey:function(h){var $=g.length,w=h[$];return[v.keys[w],h.slice($+1)]}}},[g]);if(typeof r!="function")return Xn(!1,"Form.List only accepts function as children."),null;var C=function(h,$,w){var E=w.source;return E==="internal"?!1:h!==$};return i.createElement(Vd.Provider,{value:b},i.createElement(fs.Provider,{value:p},i.createElement(D1,{name:[],shouldUpdate:C,rules:a,validateTrigger:l,initialValue:n,isList:!0,isListField:c??!!d},function(x,h){var $=x.value,w=$===void 0?[]:$,E=x.onChange,j=u.getFieldValue,O=function(){var N=j(g||[]);return N||[]},I={add:function(N,P){var B=O();P>=0&&P<=B.length?(v.keys=[].concat(Ne(v.keys.slice(0,P)),[v.id],Ne(v.keys.slice(P))),E([].concat(Ne(B.slice(0,P)),[N],Ne(B.slice(P))))):(v.keys=[].concat(Ne(v.keys),[v.id]),E([].concat(Ne(B),[N]))),v.id+=1},remove:function(N){var P=O(),B=new Set(Array.isArray(N)?N:[N]);B.size<=0||(v.keys=v.keys.filter(function(L,k){return!B.has(k)}),E(P.filter(function(L,k){return!B.has(k)})))},move:function(N,P){if(N!==P){var B=O();N<0||N>=B.length||P<0||P>=B.length||(v.keys=tE(v.keys,N,P),E(tE(B,N,P)))}}},R=w||[];return Array.isArray(R)||(R=[]),r(R.map(function(M,N){var P=v.keys[N];return P===void 0&&(v.keys[N]=v.id,P=v.keys[N],v.id+=1),{name:N,key:P,isListField:!0}}),I,h)})))}function rB(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,l){e.forEach(function(c,u){c.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(t&&l(r),a(r))})})}):Promise.resolve([])}var gR="__@field_split__";function M0(e){return e.map(function(t){return"".concat(Et(t),":").concat(t)}).join(gR)}var cc=(function(){function e(){fr(this,e),ne(this,"kvs",new Map)}return mr(e,[{key:"set",value:function(n,r){this.kvs.set(M0(n),r)}},{key:"get",value:function(n){return this.kvs.get(M0(n))}},{key:"update",value:function(n,r){var a=this.get(n),l=r(a);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(M0(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var a=fe(r,2),l=a[0],c=a[1],u=l.split(gR);return n({key:u.map(function(d){var f=d.match(/^([^:]*):(.*)$/),v=fe(f,3),g=v[1],p=v[2];return g==="number"?Number(p):p}),value:c})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,l=r.value;return n[a.join(".")]=l,null}),n}}]),e})(),aB=["name"],oB=mr(function e(t){var n=this;fr(this,e),ne(this,"formHooked",!1),ne(this,"forceRootUpdate",void 0),ne(this,"subscribable",!0),ne(this,"store",{}),ne(this,"fieldEntities",[]),ne(this,"initialValues",{}),ne(this,"callbacks",{}),ne(this,"validateMessages",null),ne(this,"preserve",null),ne(this,"lastValidatePromise",null),ne(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ne(this,"getInternalHooks",function(r){return r===ts?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Xn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ne(this,"useSubscribe",function(r){n.subscribable=r}),ne(this,"prevWithoutPreserves",null),ne(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var l,c=Sc(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;c=uo(c,d,$a(r,d))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),ne(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new cc;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||a.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),ne(this,"getInitialValue",function(r){var a=$a(n.initialValues,r);return r.length?Sc(a):a}),ne(this,"setCallbacks",function(r){n.callbacks=r}),ne(this,"setValidateMessages",function(r){n.validateMessages=r}),ne(this,"setPreserve",function(r){n.preserve=r}),ne(this,"watchList",[]),ne(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),ne(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(c){c(a,l,r)})}}),ne(this,"timeoutId",null),ne(this,"warningUnhooked",function(){}),ne(this,"updateStore",function(r){n.store=r}),ne(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),ne(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new cc;return n.getFieldEntities(r).forEach(function(l){var c=l.getNamePath();a.set(c,l)}),a}),ne(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(l){var c=Ar(l);return a.get(c)||{INVALIDATE_NAME_PATH:Ar(l)}})}),ne(this,"getFieldsValue",function(r,a){n.warningUnhooked();var l,c,u;if(r===!0||Array.isArray(r)?(l=r,c=a):r&&Et(r)==="object"&&(u=r.strict,c=r.filter),l===!0&&!c)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),f=[];return d.forEach(function(v){var g,p,b="INVALIDATE_NAME_PATH"in v?v.INVALIDATE_NAME_PATH:v.getNamePath();if(u){var C,x;if((C=(x=v).isList)!==null&&C!==void 0&&C.call(x))return}else if(!l&&(g=(p=v).isListField)!==null&&g!==void 0&&g.call(p))return;if(!c)f.push(b);else{var h="getMeta"in v?v.getMeta():null;c(h)&&f.push(b)}}),eE(n.store,f.map(Ar))}),ne(this,"getFieldValue",function(r){n.warningUnhooked();var a=Ar(r);return $a(n.store,a)}),ne(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(l,c){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:Ar(r[c]),errors:[],warnings:[]}})}),ne(this,"getFieldError",function(r){n.warningUnhooked();var a=Ar(r),l=n.getFieldsError([a])[0];return l.errors}),ne(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Ar(r),l=n.getFieldsError([a])[0];return l.warnings}),ne(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];var c=a[0],u=a[1],d,f=!1;a.length===0?d=null:a.length===1?Array.isArray(c)?(d=c.map(Ar),f=!1):(d=null,f=c):(d=c.map(Ar),f=u);var v=n.getFieldEntities(!0),g=function(h){return h.isFieldTouched()};if(!d)return f?v.every(function(x){return g(x)||x.isList()}):v.some(g);var p=new cc;d.forEach(function(x){p.set(x,[])}),v.forEach(function(x){var h=x.getNamePath();d.forEach(function($){$.every(function(w,E){return h[E]===w})&&p.update($,function(w){return[].concat(Ne(w),[x])})})});var b=function(h){return h.some(g)},C=p.map(function(x){var h=x.value;return h});return f?C.every(b):C.some(b)}),ne(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ne(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(c){return c.isFieldValidating()});var l=r.map(Ar);return a.some(function(c){var u=c.getNamePath();return jc(l,u)&&c.isFieldValidating()})}),ne(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ne(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new cc,l=n.getFieldEntities(!0);l.forEach(function(d){var f=d.props.initialValue,v=d.getNamePath();if(f!==void 0){var g=a.get(v)||new Set;g.add({entity:d,value:f}),a.set(v,g)}});var c=function(f){f.forEach(function(v){var g=v.props.initialValue;if(g!==void 0){var p=v.getNamePath(),b=n.getInitialValue(p);if(b!==void 0)Xn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var C=a.get(p);if(C&&C.size>1)Xn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var x=n.getFieldValue(p),h=v.isListField();!h&&(!r.skipExist||x===void 0)&&n.updateStore(uo(n.store,p,Ne(C)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var f=a.get(d);if(f){var v;(v=u).push.apply(v,Ne(Ne(f).map(function(g){return g.entity})))}})):u=l,c(u)}),ne(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Sc(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Ar);l.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(uo(n.store,c,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(a,l,{type:"reset"}),n.notifyWatch(l)}),ne(this,"setFields",function(r){n.warningUnhooked();var a=n.store,l=[];r.forEach(function(c){var u=c.name,d=Lt(c,aB),f=Ar(u);l.push(f),"value"in d&&n.updateStore(uo(n.store,f,d.value)),n.notifyObservers(a,[f],{type:"setField",data:c})}),n.notifyWatch(l)}),ne(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(l){var c=l.getNamePath(),u=l.getMeta(),d=se(se({},u),{},{name:c,value:n.getFieldValue(c)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),ne(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var l=r.getNamePath(),c=$a(n.store,l);c===void 0&&n.updateStore(uo(n.store,l,a))}}),ne(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),ne(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!c||d.length>1)){var f=c?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==f&&n.fieldEntities.every(function(g){return!mR(g.getNamePath(),a)})){var v=n.store;n.updateStore(uo(v,a,f,!0)),n.notifyObservers(v,[a],{type:"remove"}),n.triggerDependenciesUpdate(v,a)}}n.notifyWatch([a])}}),ne(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,l=r.value;n.updateValue(a,l);break}case"validateField":{var c=r.namePath,u=r.triggerName;n.validateFields([c],{triggerName:u});break}}}),ne(this,"notifyObservers",function(r,a,l){if(n.subscribable){var c=se(se({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,a,c)})}else n.forceRootUpdate()}),ne(this,"triggerDependenciesUpdate",function(r,a){var l=n.getDependencyChildrenFields(a);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[a].concat(Ne(l))}),l}),ne(this,"updateValue",function(r,a){var l=Ar(r),c=n.store;n.updateStore(uo(n.store,l,a)),n.notifyObservers(c,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(c,l),d=n.callbacks.onValuesChange;if(d){var f=eE(n.store,[l]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Ne(u)))}),ne(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var l=Sc(n.store,r);n.updateStore(l)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ne(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),ne(this,"getDependencyChildrenFields",function(r){var a=new Set,l=[],c=new cc;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(v){var g=Ar(v);c.update(g,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(d),p})})});var u=function d(f){var v=c.get(f)||new Set;v.forEach(function(g){if(!a.has(g)){a.add(g);var p=g.getNamePath();g.isFieldDirty()&&p.length&&(l.push(p),d(p))}})};return u(r),l}),ne(this,"triggerOnFieldsChange",function(r,a){var l=n.callbacks.onFieldsChange;if(l){var c=n.getFields();if(a){var u=new cc;a.forEach(function(f){var v=f.name,g=f.errors;u.set(v,g)}),c.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var d=c.filter(function(f){var v=f.name;return jc(r,v)});d.length&&l(d,c)}}),ne(this,"validateFields",function(r,a){n.warningUnhooked();var l,c;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(l=r,c=a):c=r;var u=!!l,d=u?l.map(Ar):[],f=[],v=String(Date.now()),g=new Set,p=c||{},b=p.recursive,C=p.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(C&&!w.isFieldDirty())){var E=w.getNamePath();if(g.add(E.join(v)),!u||jc(d,E,b)){var j=w.validateRules(se({validateMessages:se(se({},fR),n.validateMessages)},c));f.push(j.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(O){var I,R=[],M=[];return(I=O.forEach)===null||I===void 0||I.call(O,function(N){var P=N.rule.warningOnly,B=N.errors;P?M.push.apply(M,Ne(B)):R.push.apply(R,Ne(B))}),R.length?Promise.reject({name:E,errors:R,warnings:M}):{name:E,errors:R,warnings:M}}))}}});var x=rB(f);n.lastValidatePromise=x,x.catch(function(w){return w}).then(function(w){var E=w.map(function(j){var O=j.name;return O});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,w)});var h=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var E=w.filter(function(j){return j&&j.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:E,outOfDate:n.lastValidatePromise!==x})});h.catch(function(w){return w});var $=d.filter(function(w){return g.has(w.join(v))});return n.triggerOnFieldsChange($),h}),ne(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(l){console.error(l)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function _1(e){var t=i.useRef(),n=i.useState({}),r=fe(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){a({})},c=new oB(l);t.current=c.getForm()}return[t.current]}var Cy=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pR=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,l=t.children,c=i.useContext(Cy),u=i.useRef({});return i.createElement(Cy.Provider,{value:se(se({},c),{},{validateMessages:se(se({},c.validateMessages),n),triggerFormChange:function(f,v){r&&r(f,{changedFields:v,forms:u.current}),c.triggerFormChange(f,v)},triggerFormFinish:function(f,v){a&&a(f,{values:v,forms:u.current}),c.triggerFormFinish(f,v)},registerForm:function(f,v){f&&(u.current=se(se({},u.current),{},ne({},f,v))),c.registerForm(f,v)},unregisterForm:function(f){var v=se({},u.current);delete v[f],u.current=v,c.unregisterForm(f)}})},l)},iB=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],lB=function(t,n){var r=t.name,a=t.initialValues,l=t.fields,c=t.form,u=t.preserve,d=t.children,f=t.component,v=f===void 0?"form":f,g=t.validateMessages,p=t.validateTrigger,b=p===void 0?"onChange":p,C=t.onValuesChange,x=t.onFieldsChange,h=t.onFinish,$=t.onFinishFailed,w=t.clearOnDestroy,E=Lt(t,iB),j=i.useRef(null),O=i.useContext(Cy),I=_1(c),R=fe(I,1),M=R[0],N=M.getInternalHooks(ts),P=N.useSubscribe,B=N.setInitialValues,L=N.setCallbacks,k=N.setValidateMessages,D=N.setPreserve,H=N.destroyForm;i.useImperativeHandle(n,function(){return se(se({},M),{},{nativeElement:j.current})}),i.useEffect(function(){return O.registerForm(r,M),function(){O.unregisterForm(r)}},[O,M,r]),k(se(se({},O.validateMessages),g)),L({onValuesChange:C,onFieldsChange:function(U){if(O.triggerFormChange(r,U),x){for(var J=arguments.length,Q=new Array(J>1?J-1:0),te=1;te<J;te++)Q[te-1]=arguments[te];x.apply(void 0,[U].concat(Q))}},onFinish:function(U){O.triggerFormFinish(r,U),h&&h(U)},onFinishFailed:$}),D(u);var z=i.useRef(null);B(a,!z.current),z.current||(z.current=!0),i.useEffect(function(){return function(){return H(w)}},[]);var _,F=typeof d=="function";if(F){var W=M.getFieldsValue(!0);_=d(W,M)}else _=d;P(!F);var q=i.useRef();i.useEffect(function(){eB(q.current||[],l||[])||M.setFields(l||[]),q.current=l},[l,M]);var V=i.useMemo(function(){return se(se({},M),{},{validateTrigger:b})},[M,b]),G=i.createElement(Vd.Provider,{value:null},i.createElement(fs.Provider,{value:V},_));return v===!1?G:i.createElement(v,be({},E,{ref:j,onSubmit:function(U){U.preventDefault(),U.stopPropagation(),M.submit()},onReset:function(U){var J;U.preventDefault(),M.resetFields(),(J=E.onReset)===null||J===void 0||J.call(E,U)}}),G)};function nE(e){try{return JSON.stringify(e)}catch{return Math.random()}}function hR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],l=a===void 0?{}:a,c=bA(l)?{form:l}:l,u=c.form,d=i.useState(),f=fe(d,2),v=f[0],g=f[1],p=i.useMemo(function(){return nE(v)},[v]),b=i.useRef(p);b.current=p;var C=i.useContext(fs),x=u||C,h=x&&x._init,$=Ar(r),w=i.useRef($);return w.current=$,i.useEffect(function(){if(h){var E=x.getFieldsValue,j=x.getInternalHooks,O=j(ts),I=O.registerWatch,R=function(B,L){var k=c.preserve?L:B;return typeof r=="function"?r(k):$a(k,w.current)},M=I(function(P,B){var L=R(P,B),k=nE(L);b.current!==k&&(b.current=k,g(L))}),N=R(E(),E(!0));return v!==N&&g(N),M}},[h]),v}var sB=i.forwardRef(lB),Qc=sB;Qc.FormProvider=pR;Qc.Field=D1;Qc.List=vR;Qc.useForm=_1;Qc.useWatch=hR;const xi=i.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),bR=i.createContext(null),yR=e=>{const t=En(e,["prefixCls"]);return i.createElement(pR,Object.assign({},t))},A1=i.createContext({prefixCls:""}),Kr=i.createContext({}),CR=({children:e,status:t,override:n})=>{const r=i.useContext(Kr),a=i.useMemo(()=>{const l=Object.assign({},r);return n&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,n,r]);return i.createElement(Kr.Provider,{value:a},e)},SR=i.createContext(void 0),Qo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ve.createElement(CR,{override:!0,status:!0},a)),t&&(a=ve.createElement($_,null,a)),a};var xR=function(t){if(oa()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},cB=function(t,n){if(!xR(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function Sy(e,t){return!Array.isArray(e)&&t!==void 0?cB(e,t):xR(e)}const uB=()=>oa()&&window.document.documentElement,Eg=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:l}=e,c=ue({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=ue({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),d=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:ue(t,c,u,n),style:Object.assign(Object.assign({},d),r)})},dB=new Jt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Og=e=>({height:e,lineHeight:ie(e)}),Ic=e=>Object.assign({width:e},Og(e)),fB=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dB,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T0=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Og(e)),mB=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ic(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ic(a)),[`${t}${t}-sm`]:Object.assign({},Ic(l))}},vB=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},T0(t,u)),[`${r}-lg`]:Object.assign({},T0(a,u)),[`${r}-sm`]:Object.assign({},T0(l,u))}},rE=e=>Object.assign({width:e},Og(e)),gB=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},rE(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},rE(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P0=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},z0=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Og(e)),pB=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},z0(r,u))},P0(e,r,n)),{[`${n}-lg`]:Object.assign({},z0(a,u))}),P0(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},z0(l,u))}),P0(e,l,`${n}-sm`))},hB=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:l,skeletonInputCls:c,skeletonImageCls:u,controlHeight:d,controlHeightLG:f,controlHeightSM:v,gradientFromColor:g,padding:p,marginSM:b,borderRadius:C,titleHeight:x,blockRadius:h,paragraphLiHeight:$,controlHeightXS:w,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},Ic(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ic(f)),[`${n}-sm`]:Object.assign({},Ic(v))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:g,borderRadius:h,[`+ ${a}`]:{marginBlockStart:v}},[a]:{padding:0,"> li":{width:"100%",height:$,listStyle:"none",background:g,borderRadius:h,"+ li":{marginBlockStart:w}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},pB(e)),mB(e)),vB(e)),gB(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
223
|
-
${r},
|
|
224
|
-
${a} > li,
|
|
225
|
-
${n},
|
|
226
|
-
${l},
|
|
227
|
-
${c},
|
|
228
|
-
${u}
|
|
229
|
-
`]:Object.assign({},fB(e))}}},bB=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Zc=sn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=tn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,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 hB(r)},bB,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),yB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:l="circle",size:c="default"}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Zc(d),p=En(e,["prefixCls","className"]),b=ue(d,`${d}-element`,{[`${d}-active`]:a},n,r,v,g);return f(i.createElement("div",{className:b},i.createElement(Eg,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:c},p))))},CB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l=!1,size:c="default"}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Zc(d),p=En(e,["prefixCls"]),b=ue(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,v,g);return f(i.createElement("div",{className:b},i.createElement(Eg,Object.assign({prefixCls:`${d}-button`,size:c},p))))},SB="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",xB=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l}=e,{getPrefixCls:c}=i.useContext(Rt),u=c("skeleton",t),[d,f,v]=Zc(u),g=ue(u,`${u}-element`,{[`${u}-active`]:l},n,r,f,v);return d(i.createElement("div",{className:g},i.createElement("div",{className:ue(`${u}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:SB,className:`${u}-image-path`})))))},$B=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l,size:c="default"}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Zc(d),p=En(e,["prefixCls"]),b=ue(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,v,g);return f(i.createElement("div",{className:b},i.createElement(Eg,Object.assign({prefixCls:`${d}-input`,size:c},p))))},wB=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l,children:c}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Zc(d),p=ue(d,`${d}-element`,{[`${d}-active`]:l},v,n,r,g);return f(i.createElement("div",{className:p},i.createElement("div",{className:ue(`${d}-image`,n),style:a},c)))},EB=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},OB=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,l=Array.from({length:a}).map((c,u)=>i.createElement("li",{key:u,style:{width:EB(u,e)}}));return i.createElement("ul",{className:ue(t,n),style:r},l)},RB=({prefixCls:e,className:t,width:n,style:r})=>i.createElement("h3",{className:ue(e,t),style:Object.assign({width:n},r)});function D0(e){return e&&typeof e=="object"?e:{}}function jB(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function IB(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function NB(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const xl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:l,children:c,avatar:u=!1,title:d=!0,paragraph:f=!0,active:v,round:g}=e,{getPrefixCls:p,direction:b,className:C,style:x}=vr("skeleton"),h=p("skeleton",t),[$,w,E]=Zc(h);if(n||!("loading"in e)){const j=!!u,O=!!d,I=!!f;let R;if(j){const P=Object.assign(Object.assign({prefixCls:`${h}-avatar`},jB(O,I)),D0(u));R=i.createElement("div",{className:`${h}-header`},i.createElement(Eg,Object.assign({},P)))}let M;if(O||I){let P;if(O){const L=Object.assign(Object.assign({prefixCls:`${h}-title`},IB(j,I)),D0(d));P=i.createElement(RB,Object.assign({},L))}let B;if(I){const L=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},NB(j,O)),D0(f));B=i.createElement(OB,Object.assign({},L))}M=i.createElement("div",{className:`${h}-content`},P,B)}const N=ue(h,{[`${h}-with-avatar`]:j,[`${h}-active`]:v,[`${h}-rtl`]:b==="rtl",[`${h}-round`]:g},C,r,a,w,E);return $(i.createElement("div",{className:N,style:Object.assign(Object.assign({},x),l)},R,M))}return c??null};xl.Button=CB;xl.Avatar=yB;xl.Input=$B;xl.Image=xB;xl.Node=wB;function aE(){}const MB=i.createContext({add:aE,remove:aE});function TB(e){const t=i.useContext(MB),n=i.useRef(null);return Xt(a=>{if(a){const l=e?a.querySelector(e):a;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const oE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=i.useContext(sf);return ve.createElement(Xe,Object.assign({onClick:n},e),t)},iE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=i.useContext(sf);return ve.createElement(Xe,Object.assign({},R1(n),{loading:e,onClick:a},t),r)};function $R(e,t){return ve.createElement("span",{className:`${e}-close-x`},t||ve.createElement(zo,{className:`${e}-close-icon`}))}const wR=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:l,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:f}=e,[v]=za("Modal",t6()),g=t||(v==null?void 0:v.okText),p=r||(v==null?void 0:v.cancelText),b=ve.useMemo(()=>({confirmLoading:a,okButtonProps:u,cancelButtonProps:d,okTextLocale:g,cancelTextLocale:p,okType:n,onOk:l,onCancel:c}),[a,u,d,g,p,n,l,c]);let C;return typeof f=="function"||typeof f>"u"?(C=ve.createElement(ve.Fragment,null,ve.createElement(oE,null),ve.createElement(iE,null)),typeof f=="function"&&(C=f(C,{OkBtn:iE,CancelBtn:oE})),C=ve.createElement(aR,{value:b},C)):C=f,ve.createElement(h1,{disabled:!1},C)},PB=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"}}}},zB=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},DB=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,l={};for(let c=a;c>=0;c--)c===0?(l[`${r}${t}-${c}`]={display:"none"},l[`${r}-push-${c}`]={insetInlineStart:"auto"},l[`${r}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${c}`]={marginInlineStart:0},l[`${r}${t}-order-${c}`]={order:0}):(l[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/a*100}%`,maxWidth:`${c/a*100}%`}],l[`${r}${t}-push-${c}`]={insetInlineStart:`${c/a*100}%`},l[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/a*100}%`},l[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/a*100}%`},l[`${r}${t}-order-${c}`]={order:c});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},xy=(e,t)=>DB(e,t),_B=(e,t,n)=>({[`@media (min-width: ${ie(t)})`]:Object.assign({},xy(e,n))}),AB=()=>({}),BB=()=>({}),kB=sn("Grid",PB,AB),ER=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),LB=sn("Grid",e=>{const t=tn(e,{gridColumns:24}),n=ER(t);return delete n.xs,[zB(t),xy(t,""),xy(t,"-xs"),Object.keys(n).map(r=>_B(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},BB);function lE(e){return{position:e,inset:0}}const HB=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}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},lE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},lE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:I1(e)}]},FB=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:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},dn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ie(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Xa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(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:`${ie(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
230
|
-
${t}-body,
|
|
231
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},VB=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},WB=e=>{const{componentCls:t}=e,n=ER(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,l=Object.keys(r).map(c=>({[`@media (min-width: ${ie(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ne(Object.keys(n).map((c,u)=>{const d=Object.keys(n)[u-1];return d?{[`${a}${c}-width`]:`var(${a}${d}-width)`}:null})),[{width:`var(${a}xs-width)`}],Ne(l))}}},OR=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return tn(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()})},RR=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),jR=sn("Modal",e=>{const t=OR(e);return[FB(t),VB(t),HB(t),lf(t,"zoom"),WB(t)]},RR,{unitless:{titleLineHeight:!0}});var KB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let $y;const UB=e=>{$y={x:e.pageX,y:e.pageY},setTimeout(()=>{$y=null},100)};uB()&&document.documentElement.addEventListener("click",UB,!0);const IR=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:l,centered:c,getContainer:u,focusTriggerAfterClose:d=!0,style:f,visible:v,width:g=520,footer:p,classNames:b,styles:C,children:x,loading:h,confirmLoading:$,zIndex:w,mousePosition:E,onOk:j,onCancel:O,destroyOnHidden:I,destroyOnClose:R,panelRef:M=null,modalRender:N}=e,P=KB(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:B,getPrefixCls:L,direction:k,modal:D}=i.useContext(Rt),H=he=>{$||O==null||O(he)},z=he=>{j==null||j(he)},_=L("modal",t),F=L(),W=dr(_),[q,V,G]=jR(_,W),K=ue(l,{[`${_}-centered`]:c??(D==null?void 0:D.centered),[`${_}-wrap-rtl`]:k==="rtl"}),U=p!==null&&!h?i.createElement(wR,Object.assign({},e,{onOk:z,onCancel:H})):null,[J,Q,te,Y]=H6(Dv(e),Dv(D),{closable:!0,closeIcon:i.createElement(zo,{className:`${_}-close-icon`}),closeIconRender:he=>$R(_,he)}),ae=N?he=>i.createElement("div",{className:`${_}-render`},N(he)):void 0,re=`.${_}-${N?"render":"content"}`,Z=TB(re),X=Mr(M,Z),[oe,le]=Do("Modal",w),[de,ce]=i.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ge=i.useMemo(()=>{const he={};return ce&&Object.keys(ce).forEach(Oe=>{const je=ce[Oe];je!==void 0&&(he[`--${_}-${Oe}-width`]=typeof je=="number"?`${je}px`:je)}),he},[_,ce]);return q(i.createElement(Qo,{form:!0,space:!0},i.createElement(dg.Provider,{value:le},i.createElement(uR,Object.assign({width:de},P,{zIndex:oe,getContainer:u===void 0?B:u,prefixCls:_,rootClassName:ue(V,r,G,W),footer:U,visible:a??v,mousePosition:E??$y,onClose:H,closable:J&&Object.assign({disabled:te,closeIcon:Q},Y),closeIcon:Q,focusTriggerAfterClose:d,transitionName:Go(F,"zoom",e.transitionName),maskTransitionName:Go(F,"fade",e.maskTransitionName),className:ue(V,n,D==null?void 0:D.className),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),f),ge),classNames:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.classNames),b),{wrapper:ue(K,b==null?void 0:b.wrapper)}),styles:Object.assign(Object.assign({},D==null?void 0:D.styles),C),panelRef:X,destroyOnClose:I??R,modalRender:ae}),h?i.createElement(xl,{active:!0,title:!1,paragraph:{rows:4},className:`${_}-body-skeleton`}):x))))},qB=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:l,lineHeight:c,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:f}=e,v=`${t}-confirm`;return{[v]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${v}-body-wrapper`]:Object.assign({},qo()),[`&${t} ${t}-body`]:{padding:f},[`${v}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${v}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ie(e.marginSM)})`},[`${e.iconCls} + ${v}-paragraph`]:{maxWidth:`calc(100% - ${ie(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${v}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${v}-content`]:{color:e.colorText,fontSize:l,lineHeight:c},[`${v}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${v}-error ${v}-body > ${e.iconCls}`]:{color:e.colorError},[`${v}-warning ${v}-body > ${e.iconCls},
|
|
232
|
-
${v}-confirm ${v}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${v}-info ${v}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${v}-success ${v}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},GB=Gc(["Modal","confirm"],e=>{const t=OR(e);return qB(t)},RR,{order:-1e3});var XB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const NR=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:l,type:c,okCancel:u,footer:d,locale:f}=e,v=XB(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(c){case"info":g=i.createElement(ug,null);break;case"success":g=i.createElement(Ss,null);break;case"error":g=i.createElement(Sl,null);break;default:g=i.createElement(xs,null)}const p=u??c==="confirm",b=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[C]=za("Modal"),x=f||C,h=r||(p?x==null?void 0:x.okText:x==null?void 0:x.justOkText),$=a||(x==null?void 0:x.cancelText),w=i.useMemo(()=>Object.assign({autoFocusButton:b,cancelTextLocale:$,okTextLocale:h,mergedOkCancel:p},v),[b,$,h,p,v]),E=i.createElement(i.Fragment,null,i.createElement(Bw,null),i.createElement(kw,null)),j=e.title!==void 0&&e.title!==null,O=`${l}-body`;return i.createElement("div",{className:`${l}-body-wrapper`},i.createElement("div",{className:ue(O,{[`${O}-has-title`]:j})},g,i.createElement("div",{className:`${l}-paragraph`},j&&i.createElement("span",{className:`${l}-title`},e.title),i.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?i.createElement(aR,{value:w},i.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(E,{OkBtn:kw,CancelBtn:Bw}):E)):d,i.createElement(GB,{prefixCls:t}))},YB=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:l,wrapClassName:c,rootPrefixCls:u,bodyStyle:d,closable:f=!1,onConfirm:v,styles:g,title:p}=e,b=`${l}-confirm`,C=e.width||416,x=e.style||{},h=e.mask===void 0?!0:e.mask,$=e.maskClosable===void 0?!1:e.maskClosable,w=ue(b,`${b}-${e.type}`,{[`${b}-rtl`]:a==="rtl"},e.className),[,E]=la(),j=i.useMemo(()=>n!==void 0?n:E.zIndexPopupBase+$1,[n,E]);return i.createElement(IR,Object.assign({},e,{className:w,wrapClassName:ue({[`${b}-centered`]:!!e.centered},c),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},title:p,footer:null,transitionName:Go(u||"","zoom",e.transitionName),maskTransitionName:Go(u||"","fade",e.maskTransitionName),mask:h,maskClosable:$,style:x,styles:Object.assign({body:d,mask:r},g),width:C,zIndex:j,closable:f}),i.createElement(NR,Object.assign({},e,{confirmPrefixCls:b})))},MR=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return i.createElement(Po,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},i.createElement(YB,Object.assign({},e)))},ns=[];let TR="";function PR(){return TR}const QB=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:l}=e,c=t6(),u=i.useContext(Rt),d=PR()||u.getPrefixCls(),f=r||`${d}-modal`;let v=a;return v===!1&&(v=void 0),ve.createElement(MR,Object.assign({},e,{rootPrefixCls:d,prefixCls:f,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:c,getContainer:v}))};function df(e){const t=j6(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),a,l;function c(...v){var g;if(v.some(C=>C==null?void 0:C.triggerCancel)){var b;(g=e.onCancel)===null||g===void 0||(b=g).call.apply(b,[e,()=>{}].concat(Ne(v.slice(1))))}for(let C=0;C<ns.length;C++)if(ns[C]===d){ns.splice(C,1);break}l()}const u=v=>{clearTimeout(a),a=setTimeout(()=>{const g=t.getPrefixCls(void 0,PR()),p=t.getIconPrefixCls(),b=t.getTheme(),C=ve.createElement(QB,Object.assign({},v));l=O1()(ve.createElement(Po,{prefixCls:g,iconPrefixCls:p,theme:b},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...v){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),c.apply(this,v)}}),r.visible&&delete r.visible,u(r)}function f(v){typeof v=="function"?r=v(r):r=Object.assign(Object.assign({},r),v),u(r)}return u(r),ns.push(d),{destroy:d,update:f}}function zR(e){return Object.assign(Object.assign({},e),{type:"warning"})}function DR(e){return Object.assign(Object.assign({},e),{type:"info"})}function _R(e){return Object.assign(Object.assign({},e),{type:"success"})}function AR(e){return Object.assign(Object.assign({},e),{type:"error"})}function BR(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function ZB({rootPrefixCls:e}){TR=e}var JB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ek=(e,t)=>{var n,{afterClose:r,config:a}=e,l=JB(e,["afterClose","config"]);const[c,u]=i.useState(!0),[d,f]=i.useState(a),{direction:v,getPrefixCls:g}=i.useContext(Rt),p=g("modal"),b=g(),C=()=>{var w;r(),(w=d.afterClose)===null||w===void 0||w.call(d)},x=(...w)=>{var E;if(u(!1),w.some(I=>I==null?void 0:I.triggerCancel)){var O;(E=d.onCancel)===null||E===void 0||(O=E).call.apply(O,[d,()=>{}].concat(Ne(w.slice(1))))}};i.useImperativeHandle(t,()=>({destroy:x,update:w=>{f(E=>{const j=typeof w=="function"?w(E):w;return Object.assign(Object.assign({},E),j)})}}));const h=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[$]=za("Modal",go.Modal);return i.createElement(MR,Object.assign({prefixCls:p,rootPrefixCls:b},d,{close:x,open:c,afterClose:C,okText:d.okText||(h?$==null?void 0:$.okText:$==null?void 0:$.justOkText),direction:d.direction||v,cancelText:d.cancelText||($==null?void 0:$.cancelText)},l))},tk=i.forwardRef(ek);let sE=0;const nk=i.memo(i.forwardRef((e,t)=>{const[n,r]=D7();return i.useImperativeHandle(t,()=>({patchElement:r}),[r]),i.createElement(i.Fragment,null,n)}));function kR(){const e=i.useRef(null),[t,n]=i.useState([]);i.useEffect(()=>{t.length&&(Ne(t).forEach(c=>{c()}),n([]))},[t]);const r=i.useCallback(l=>function(u){var d;sE+=1;const f=i.createRef();let v;const g=new Promise(h=>{v=h});let p=!1,b;const C=i.createElement(tk,{key:`modal-${sE}`,config:l(u),ref:f,afterClose:()=>{b==null||b()},isSilent:()=>p,onConfirm:h=>{v(h)}});return b=(d=e.current)===null||d===void 0?void 0:d.patchElement(C),b&&ns.push(b),{destroy:()=>{function h(){var $;($=f.current)===null||$===void 0||$.destroy()}f.current?h():n($=>[].concat(Ne($),[h]))},update:h=>{function $(){var w;(w=f.current)===null||w===void 0||w.update(h)}f.current?$():n(w=>[].concat(Ne(w),[$]))},then:h=>(p=!0,g.then(h))}},[]);return[i.useMemo(()=>({info:r(DR),success:r(_R),error:r(AR),warning:r(zR),confirm:r(BR)}),[r]),i.createElement(nk,{key:"modal-holder",ref:e})]}const rk=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,l=new Jt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new Jt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),u=new Jt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),d=new Jt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:d}}}}},ak=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ok={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ik=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[ok[t]]:{value:0,_skip_check_:!0}}}}},lk=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},sk=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},ck=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},lk(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},sk(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},ak.map(n=>ik(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},uk=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:l,borderRadiusLG:c,colorSuccess:u,colorInfo:d,colorWarning:f,colorError:v,colorTextHeading:g,notificationBg:p,notificationPadding:b,notificationMarginEdge:C,notificationProgressBg:x,notificationProgressHeight:h,fontSize:$,lineHeight:w,width:E,notificationIconSize:j,colorText:O,colorSuccessBg:I,colorErrorBg:R,colorInfoBg:M,colorWarningBg:N}=e,P=`${n}-notice`;return{position:"relative",marginBottom:l,marginInlineStart:"auto",background:p,borderRadius:c,boxShadow:r,[P]:{padding:b,width:E,maxWidth:`calc(100vw - ${ie(e.calc(C).mul(2).equal())})`,lineHeight:w,wordWrap:"break-word",borderRadius:c,overflow:"hidden","&-success":I?{background:I}:{},"&-error":R?{background:R}:{},"&-info":M?{background:M}:{},"&-warning":N?{background:N}:{}},[`${P}-message`]:{color:g,fontSize:a,lineHeight:e.lineHeightLG},[`${P}-description`]:{fontSize:$,color:O,marginTop:e.marginXS},[`${P}-closable ${P}-message`]:{paddingInlineEnd:e.paddingLG},[`${P}-with-icon ${P}-message`]:{marginInlineStart:e.calc(e.marginSM).add(j).equal(),fontSize:a},[`${P}-with-icon ${P}-description`]:{marginInlineStart:e.calc(e.marginSM).add(j).equal(),fontSize:$},[`${P}-icon`]:{position:"absolute",fontSize:j,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:d},[`&-warning${t}`]:{color:f},[`&-error${t}`]:{color:v}},[`${P}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Xa(e)),[`${P}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${ie(c)} * 2)`,left:{_skip_check_:!0,value:c},right:{_skip_check_:!0,value:c},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:c,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:c,background:x}},[`${P}-actions`]:{float:"right",marginTop:e.marginSM}}},dk=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:l}=e,c=`${t}-notice`,u=new Jt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},dn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:l,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:l,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${c}-actions`]:{float:"left"}}})},{[t]:{[`${c}-wrapper`]:uk(e)}}]},fk=e=>({zIndexPopup:e.zIndexPopupBase+$1+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),mk=e=>{const t=e.paddingMD,n=e.paddingLG;return tn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},vk=sn("Notification",e=>{const t=mk(e);return[dk(t),rk(t),ck(t)]},fk);function LR(e,t){return t===null||t===!1?null:t||i.createElement(zo,{className:`${e}-close-icon`})}const gk={success:Ss,info:ug,error:Sl,warning:xs},pk=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:l,actions:c,role:u="alert"}=e;let d=null;return n?d=i.createElement("span",{className:`${t}-icon`},n):r&&(d=i.createElement(gk[r]||null,{className:ue(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:ue({[`${t}-with-icon`]:d}),role:u},d,i.createElement("div",{className:`${t}-message`},a),l&&i.createElement("div",{className:`${t}-description`},l),c&&i.createElement("div",{className:`${t}-actions`},c))};function hk(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function bk(e){return{motionName:`${e}-fade`}}function yk(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cE=24,Sk=4.5,xk="topRight",$k=({children:e,prefixCls:t})=>{const n=dr(t),[r,a,l]=vk(t,n);return r(ve.createElement(k6,{classNames:{list:ue(a,l,n)}},e))},wk=(e,{prefixCls:t,key:n})=>ve.createElement($k,{prefixCls:t,key:n},e),Ek=ve.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:l,maxCount:c,rtl:u,onAllRemoved:d,stack:f,duration:v,pauseOnHover:g=!0,showProgress:p}=e,{getPrefixCls:b,getPopupContainer:C,notification:x,direction:h}=i.useContext(Rt),[,$]=la(),w=a||b("notification"),E=M=>hk(M,n??cE,r??cE),j=()=>ue({[`${w}-rtl`]:u??h==="rtl"}),O=()=>bk(w),[I,R]=L6({prefixCls:w,style:E,className:j,motion:O,closable:!0,closeIcon:LR(w),duration:v??Sk,getContainer:()=>(l==null?void 0:l())||(C==null?void 0:C())||document.body,maxCount:c,pauseOnHover:g,showProgress:p,onAllRemoved:d,renderNotifications:wk,stack:f===!1?!1:{threshold:typeof f=="object"?f==null?void 0:f.threshold:void 0,offset:8,gap:$.margin}});return ve.useImperativeHandle(t,()=>Object.assign(Object.assign({},I),{prefixCls:w,notification:x})),R});function Ok(e){const t=ve.useRef(null);return Jo(),[ve.useMemo(()=>{const r=u=>{var d;if(!t.current)return;const{open:f,prefixCls:v,notification:g}=t.current,p=`${v}-notice`,{message:b,description:C,icon:x,type:h,btn:$,actions:w,className:E,style:j,role:O="alert",closeIcon:I,closable:R}=u,M=Ck(u,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),N=w??$,P=LR(p,yk(I,e,g));return f(Object.assign(Object.assign({placement:(d=e==null?void 0:e.placement)!==null&&d!==void 0?d:xk},M),{content:ve.createElement(pk,{prefixCls:p,icon:x,type:h,message:b,description:C,actions:N,role:O}),className:ue(h&&`${p}-${h}`,E,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),j),closeIcon:P,closable:R??!!P}))},l={open:r,destroy:u=>{var d,f;u!==void 0?(d=t.current)===null||d===void 0||d.close(u):(f=t.current)===null||f===void 0||f.destroy()}};return["success","info","warning","error"].forEach(u=>{l[u]=d=>r(Object.assign(Object.assign({},d),{type:u}))}),l},[]),ve.createElement(Ek,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Rk(e){return Ok(e)}const wy=ve.createContext({}),HR=ve.createContext({message:{},notification:{},modal:{}}),jk=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:l}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:l,[`&${t}-rtl`]:{direction:"rtl"}}}},Ik=()=>({}),Nk=sn("App",jk,Ik),Mk=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:l,notification:c,style:u,component:d="div"}=e,{direction:f,getPrefixCls:v}=i.useContext(Rt),g=v("app",t),[p,b,C]=Nk(g),x=ue(b,g,r,a,C,{[`${g}-rtl`]:f==="rtl"}),h=i.useContext(wy),$=ve.useMemo(()=>({message:Object.assign(Object.assign({},h.message),l),notification:Object.assign(Object.assign({},h.notification),c)}),[l,c,h.message,h.notification]),[w,E]=q6($.message),[j,O]=Rk($.notification),[I,R]=kR(),M=ve.useMemo(()=>({message:w,notification:j,modal:I}),[w,j,I]);Jo()(!(C&&d===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const N=d===!1?ve.Fragment:d,P={className:x,style:u};return p(ve.createElement(HR.Provider,{value:M},ve.createElement(wy.Provider,{value:$},ve.createElement(N,Object.assign({},d===!1?void 0:P),R,E,O,n))))},Tk=()=>ve.useContext(HR),Da=Mk;Da.useApp=Tk;function FR(e){return t=>i.createElement(Po,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const Jc=(e,t,n,r,a)=>FR(c=>{const{prefixCls:u,style:d}=c,f=i.useRef(null),[v,g]=i.useState(0),[p,b]=i.useState(0),[C,x]=yn(!1,{value:c.open}),{getPrefixCls:h}=i.useContext(Rt),$=h(r||"select",u);i.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const j=new ResizeObserver(I=>{const R=I[0].target;g(R.offsetHeight+8),b(R.offsetWidth)}),O=setInterval(()=>{var I;const R=a?`.${a($)}`:`.${$}-dropdown`,M=(I=f.current)===null||I===void 0?void 0:I.querySelector(R);M&&(clearInterval(O),j.observe(M))},10);return()=>{clearInterval(O),j.disconnect()}}},[$]);let w=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},d),{margin:0}),open:C,visible:C,getPopupContainer:()=>f.current});n&&(w=n(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const E={paddingBottom:v,position:"relative",minWidth:p};return i.createElement("div",{ref:f,style:E},i.createElement(e,Object.assign({},w)))}),Rg=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var jg=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,l=t.children,c=t.onMouseDown,u=t.onClick,d=typeof r=="function"?r(a):r;return i.createElement("span",{className:n,onMouseDown:function(v){v.preventDefault(),c==null||c(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},d!==void 0?d:i.createElement("span",{className:ue(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},l))},Pk=function(t,n,r,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=ve.useMemo(function(){if(Et(a)==="object")return a.clearIcon;if(l)return l},[a,l]),v=ve.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(d==="combobox"&&u===""))},[a,c,r.length,u,d]);return{allowClear:v,clearIcon:ve.createElement(jg,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},VR=i.createContext(null);function WR(){return i.useContext(VR)}function zk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=fe(t,2),r=n[0],a=n[1],l=i.useRef(null),c=function(){window.clearTimeout(l.current)};i.useEffect(function(){return c},[]);var u=function(f,v){c(),l.current=window.setTimeout(function(){a(f),v&&v()},e)};return[r,u,c]}function KR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Dk(e,t,n,r){var a=i.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect(function(){function l(c){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=c.target;d.shadowRoot&&c.composed&&(d=c.composedPath()[0]||d),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function _k(e){return e&&![ot.ESC,ot.SHIFT,ot.BACKSPACE,ot.TAB,ot.WIN_KEY,ot.ALT,ot.META,ot.WIN_KEY_RIGHT,ot.CTRL,ot.SEMICOLON,ot.EQUALS,ot.CAPS_LOCK,ot.CONTEXT_MENU,ot.F1,ot.F2,ot.F3,ot.F4,ot.F5,ot.F6,ot.F7,ot.F8,ot.F9,ot.F10,ot.F11,ot.F12].includes(e)}var Ak=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],uc=void 0;function Bk(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,l=e.renderItem,c=e.responsive,u=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,v=e.className,g=e.style,p=e.children,b=e.display,C=e.order,x=e.component,h=x===void 0?"div":x,$=Lt(e,Ak),w=c&&!b;function E(M){d(f,M)}i.useEffect(function(){return function(){E(null)}},[]);var j=l&&a!==uc?l(a,{index:C}):p,O;r||(O={opacity:w?0:1,height:w?0:uc,overflowY:w?"hidden":uc,order:c?C:uc,pointerEvents:w?"none":uc,position:w?"absolute":uc});var I={};w&&(I["aria-hidden"]=!0);var R=i.createElement(h,be({className:ue(!r&&n,v),style:se(se({},O),g)},I,$,{ref:t}),j);return c&&(R=i.createElement(va,{onResize:function(N){var P=N.offsetWidth;E(P)},disabled:u},R)),R}var wc=i.forwardRef(Bk);wc.displayName="Item";function kk(e){if(typeof MessageChannel>"u")Yt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Lk(){var e=i.useRef(null),t=function(r){e.current||(e.current=[],kk(function(){mo.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function dc(e,t){var n=i.useState(t),r=fe(n,2),a=r[0],l=r[1],c=Xt(function(u){e(function(){l(u)})});return[a,c]}var kv=ve.createContext(null),Hk=["component"],Fk=["className"],Vk=["className"],Wk=function(t,n){var r=i.useContext(kv);if(!r){var a=t.component,l=a===void 0?"div":a,c=Lt(t,Hk);return i.createElement(l,be({},c,{ref:n}))}var u=r.className,d=Lt(r,Fk),f=t.className,v=Lt(t,Vk);return i.createElement(kv.Provider,{value:null},i.createElement(wc,be({ref:n,className:ue(u,f)},d,v)))},UR=i.forwardRef(Wk);UR.displayName="RawItem";var Kk=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],qR="responsive",GR="invalidate";function Uk(e){return"+ ".concat(e.length," ...")}function qk(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,l=a===void 0?[]:a,c=e.renderItem,u=e.renderRawItem,d=e.itemKey,f=e.itemWidth,v=f===void 0?10:f,g=e.ssr,p=e.style,b=e.className,C=e.maxCount,x=e.renderRest,h=e.renderRawRest,$=e.prefix,w=e.suffix,E=e.component,j=E===void 0?"div":E,O=e.itemComponent,I=e.onVisibleChange,R=Lt(e,Kk),M=g==="full",N=Lk(),P=dc(N,null),B=fe(P,2),L=B[0],k=B[1],D=L||0,H=dc(N,new Map),z=fe(H,2),_=z[0],F=z[1],W=dc(N,0),q=fe(W,2),V=q[0],G=q[1],K=dc(N,0),U=fe(K,2),J=U[0],Q=U[1],te=dc(N,0),Y=fe(te,2),ae=Y[0],re=Y[1],Z=dc(N,0),X=fe(Z,2),oe=X[0],le=X[1],de=i.useState(null),ce=fe(de,2),ge=ce[0],he=ce[1],Oe=i.useState(null),je=fe(Oe,2),pe=je[0],we=je[1],Se=i.useMemo(function(){return pe===null&&M?Number.MAX_SAFE_INTEGER:pe||0},[pe,L]),Ce=i.useState(!1),De=fe(Ce,2),Ae=De[0],Qe=De[1],Ke="".concat(r,"-item"),Fe=Math.max(V,J),Ge=C===qR,Te=l.length&&Ge,Ee=C===GR,_e=Te||typeof C=="number"&&l.length>C,Re=i.useMemo(function(){var Ve=l;return Te?L===null&&M?Ve=l:Ve=l.slice(0,Math.min(l.length,D/v)):typeof C=="number"&&(Ve=l.slice(0,C)),Ve},[l,v,L,C,Te]),Pe=i.useMemo(function(){return Te?l.slice(Se+1):l.slice(Re.length)},[l,Re,Te,Se]),ye=i.useCallback(function(Ve,Ue){var mt;return typeof d=="function"?d(Ve):(mt=d&&(Ve==null?void 0:Ve[d]))!==null&&mt!==void 0?mt:Ue},[d]),$e=i.useCallback(c||function(Ve){return Ve},[c]);function Me(Ve,Ue,mt){pe===Ve&&(Ue===void 0||Ue===ge)||(we(Ve),mt||(Qe(Ve<l.length-1),I==null||I(Ve)),Ue!==void 0&&he(Ue))}function Le(Ve,Ue){k(Ue.clientWidth)}function tt(Ve,Ue){F(function(mt){var Tt=new Map(mt);return Ue===null?Tt.delete(Ve):Tt.set(Ve,Ue),Tt})}function yt(Ve,Ue){Q(Ue),G(J)}function We(Ve,Ue){re(Ue)}function nt(Ve,Ue){le(Ue)}function dt(Ve){return _.get(ye(Re[Ve],Ve))}nn(function(){if(D&&typeof Fe=="number"&&Re){var Ve=ae+oe,Ue=Re.length,mt=Ue-1;if(!Ue){Me(0,null);return}for(var Tt=0;Tt<Ue;Tt+=1){var Nt=dt(Tt);if(M&&(Nt=Nt||0),Nt===void 0){Me(Tt-1,void 0,!0);break}if(Ve+=Nt,mt===0&&Ve<=D||Tt===mt-1&&Ve+dt(mt)<=D){Me(mt,null);break}else if(Ve+Fe>D){Me(Tt-1,Ve-Nt-oe+J);break}}w&&dt(0)+oe>D&&he(null)}},[D,_,J,ae,oe,ye,Re]);var at=Ae&&!!Pe.length,pt={};ge!==null&&Te&&(pt={position:"absolute",left:ge,top:0});var zt={prefixCls:Ke,responsive:Te,component:O,invalidate:Ee},Ot=u?function(Ve,Ue){var mt=ye(Ve,Ue);return i.createElement(kv.Provider,{key:mt,value:se(se({},zt),{},{order:Ue,item:Ve,itemKey:mt,registerSize:tt,display:Ue<=Se})},u(Ve,Ue))}:function(Ve,Ue){var mt=ye(Ve,Ue);return i.createElement(wc,be({},zt,{order:Ue,key:mt,item:Ve,renderItem:$e,itemKey:mt,registerSize:tt,display:Ue<=Se}))},ct={order:at?Se:Number.MAX_SAFE_INTEGER,className:"".concat(Ke,"-rest"),registerSize:yt,display:at},$t=x||Uk,St=h?i.createElement(kv.Provider,{value:se(se({},zt),ct)},h(Pe)):i.createElement(wc,be({},zt,ct),typeof $t=="function"?$t(Pe):$t),et=i.createElement(j,be({className:ue(!Ee&&r,b),style:p,ref:t},R),$&&i.createElement(wc,be({},zt,{responsive:Ge,responsiveDisabled:!Te,order:-1,className:"".concat(Ke,"-prefix"),registerSize:We,display:!0}),$),Re.map(Ot),_e?St:null,w&&i.createElement(wc,be({},zt,{responsive:Ge,responsiveDisabled:!Te,order:Se,className:"".concat(Ke,"-suffix"),registerSize:nt,display:!0,style:pt}),w));return Ge?i.createElement(va,{onResize:Le,disabled:!Te},et):et}var Eo=i.forwardRef(qk);Eo.displayName="Overflow";Eo.Item=UR;Eo.RESPONSIVE=qR;Eo.INVALIDATE=GR;function Gk(e,t,n){var r=se(se({},e),t);return Object.keys(t).forEach(function(a){var l=t[a];typeof l=="function"&&(r[a]=function(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return l.apply(void 0,d),(c=e[a])===null||c===void 0?void 0:c.call.apply(c,[e].concat(d))})}),r}var Xk=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Yk=function(t,n){var r=t.prefixCls,a=t.id,l=t.inputElement,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,v=t.value,g=t.open,p=t.attrs,b=Lt(t,Xk),C=l||i.createElement("input",null),x=C,h=x.ref,$=x.props;return"maxLength"in C.props,C=i.cloneElement(C,se(se(se({type:"search"},Gk(b,$)),{},{id:a,ref:Mr(n,h),autoComplete:u||"off",autoFocus:c,className:ue("".concat(r,"-selection-search-input"),$==null?void 0:$.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":g?f:void 0},p),{},{value:d?v:"",readOnly:!d,unselectable:d?null:"on",style:se(se({},$.style),{},{opacity:d?null:0})})),C},XR=i.forwardRef(Yk);function YR(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Qk=typeof window<"u"&&window.document&&window.document.documentElement,Zk=Qk;function Jk(e){return e!=null}function eL(e){return!e&&e!==0}function uE(e){return["string","number"].includes(Et(e))}function QR(e){var t=void 0;return e&&(uE(e.title)?t=e.title.toString():uE(e.label)&&(t=e.label.toString())),t}function tL(e,t){Zk?i.useLayoutEffect(e,t):i.useEffect(e,t)}function nL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var dE=function(t){t.preventDefault(),t.stopPropagation()},rL=function(t){var n=t.id,r=t.prefixCls,a=t.values,l=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,v=t.disabled,g=t.mode,p=t.showSearch,b=t.autoFocus,C=t.autoComplete,x=t.activeDescendantId,h=t.tabIndex,$=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,j=t.maxTagPlaceholder,O=j===void 0?function(le){return"+ ".concat(le.length," ...")}:j,I=t.tagRender,R=t.onToggleOpen,M=t.onRemove,N=t.onInputChange,P=t.onInputPaste,B=t.onInputKeyDown,L=t.onInputMouseDown,k=t.onInputCompositionStart,D=t.onInputCompositionEnd,H=t.onInputBlur,z=i.useRef(null),_=i.useState(0),F=fe(_,2),W=F[0],q=F[1],V=i.useState(!1),G=fe(V,2),K=G[0],U=G[1],J="".concat(r,"-selection"),Q=l||g==="multiple"&&u===!1||g==="tags"?c:"",te=g==="tags"||g==="multiple"&&u===!1||p&&(l||K);tL(function(){q(z.current.scrollWidth)},[Q]);var Y=function(de,ce,ge,he,Oe){return i.createElement("span",{title:QR(de),className:ue("".concat(J,"-item"),ne({},"".concat(J,"-item-disabled"),ge))},i.createElement("span",{className:"".concat(J,"-item-content")},ce),he&&i.createElement(jg,{className:"".concat(J,"-item-remove"),onMouseDown:dE,onClick:Oe,customizeIcon:$},"×"))},ae=function(de,ce,ge,he,Oe,je){var pe=function(Se){dE(Se),R(!l)};return i.createElement("span",{onMouseDown:pe},I({label:ce,value:de,disabled:ge,closable:he,onClose:Oe,isMaxTag:!!je}))},re=function(de){var ce=de.disabled,ge=de.label,he=de.value,Oe=!v&&!ce,je=ge;if(typeof E=="number"&&(typeof ge=="string"||typeof ge=="number")){var pe=String(je);pe.length>E&&(je="".concat(pe.slice(0,E),"..."))}var we=function(Ce){Ce&&Ce.stopPropagation(),M(de)};return typeof I=="function"?ae(he,je,ce,Oe,we):Y(de,je,ce,Oe,we)},Z=function(de){if(!a.length)return null;var ce=typeof O=="function"?O(de):O;return typeof I=="function"?ae(void 0,ce,!1,!1,void 0,!0):Y({title:ce},ce,!1)},X=i.createElement("div",{className:"".concat(J,"-search"),style:{width:W},onFocus:function(){U(!0)},onBlur:function(){U(!1)}},i.createElement(XR,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:b,autoComplete:C,editable:te,activeDescendantId:x,value:Q,onKeyDown:B,onMouseDown:L,onChange:N,onPaste:P,onCompositionStart:k,onCompositionEnd:D,onBlur:H,tabIndex:h,attrs:Nr(t,!0)}),i.createElement("span",{ref:z,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},Q," ")),oe=i.createElement(Eo,{prefixCls:"".concat(J,"-overflow"),data:a,renderItem:re,renderRest:Z,suffix:X,itemKey:nL,maxCount:w});return i.createElement("span",{className:"".concat(J,"-wrap")},oe,!a.length&&!Q&&i.createElement("span",{className:"".concat(J,"-placeholder")},f))},aL=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,l=t.inputRef,c=t.disabled,u=t.autoFocus,d=t.autoComplete,f=t.activeDescendantId,v=t.mode,g=t.open,p=t.values,b=t.placeholder,C=t.tabIndex,x=t.showSearch,h=t.searchValue,$=t.activeValue,w=t.maxLength,E=t.onInputKeyDown,j=t.onInputMouseDown,O=t.onInputChange,I=t.onInputPaste,R=t.onInputCompositionStart,M=t.onInputCompositionEnd,N=t.onInputBlur,P=t.title,B=i.useState(!1),L=fe(B,2),k=L[0],D=L[1],H=v==="combobox",z=H||x,_=p[0],F=h||"";H&&$&&!k&&(F=$),i.useEffect(function(){H&&D(!1)},[H,$]);var W=v!=="combobox"&&!g&&!x?!1:!!F,q=P===void 0?QR(_):P,V=i.useMemo(function(){return _?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:W?{visibility:"hidden"}:void 0},b)},[_,W,b,r]);return i.createElement("span",{className:"".concat(r,"-selection-wrap")},i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(XR,{ref:l,prefixCls:r,id:a,open:g,inputElement:n,disabled:c,autoFocus:u,autoComplete:d,editable:z,activeDescendantId:f,value:F,onKeyDown:E,onMouseDown:j,onChange:function(K){D(!0),O(K)},onPaste:I,onCompositionStart:R,onCompositionEnd:M,onBlur:N,tabIndex:C,attrs:Nr(t,!0),maxLength:H?w:void 0})),!H&&_?i.createElement("span",{className:"".concat(r,"-selection-item"),title:q,style:W?{visibility:"hidden"}:void 0},_.label):null,V)},oL=function(t,n){var r=i.useRef(null),a=i.useRef(!1),l=t.prefixCls,c=t.open,u=t.mode,d=t.showSearch,f=t.tokenWithEnter,v=t.disabled,g=t.prefix,p=t.autoClearSearchValue,b=t.onSearch,C=t.onSearchSubmit,x=t.onToggleOpen,h=t.onInputKeyDown,$=t.onInputBlur,w=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(q){r.current.focus(q)},blur:function(){r.current.blur()}}});var E=KR(0),j=fe(E,2),O=j[0],I=j[1],R=function(q){var V=q.which,G=r.current instanceof HTMLTextAreaElement;!G&&c&&(V===ot.UP||V===ot.DOWN)&&q.preventDefault(),h&&h(q),V===ot.ENTER&&u==="tags"&&!a.current&&!c&&(C==null||C(q.target.value)),!(G&&!c&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(V))&&_k(V)&&x(!0)},M=function(){I(!0)},N=i.useRef(null),P=function(q){b(q,!0,a.current)!==!1&&x(!0)},B=function(){a.current=!0},L=function(q){a.current=!1,u!=="combobox"&&P(q.target.value)},k=function(q){var V=q.target.value;if(f&&N.current&&/[\r\n]/.test(N.current)){var G=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(G,N.current)}N.current=null,P(V)},D=function(q){var V=q.clipboardData,G=V==null?void 0:V.getData("text");N.current=G||""},H=function(q){var V=q.target;if(V!==r.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(q){var V=O();q.target!==r.current&&!V&&!(u==="combobox"&&v)&&q.preventDefault(),(u!=="combobox"&&(!d||!V)||!c)&&(c&&p!==!1&&b("",!0,!1),x())},_={inputRef:r,onInputKeyDown:R,onInputMouseDown:M,onInputChange:k,onInputPaste:D,onInputCompositionStart:B,onInputCompositionEnd:L,onInputBlur:$},F=u==="multiple"||u==="tags"?i.createElement(rL,be({},t,_)):i.createElement(aL,be({},t,_));return i.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:H,onMouseDown:z},g&&i.createElement("div",{className:"".concat(l,"-prefix")},g),F)},iL=i.forwardRef(oL);function lL(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,l=r||{},c=l.className,u=l.content,d=a.x,f=d===void 0?0:d,v=a.y,g=v===void 0?0:v,p=i.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],x=n.points[1],h=C[0],$=C[1],w=x[0],E=x[1];h===w||!["t","b"].includes(h)?b.top=g:h==="t"?b.top=0:b.bottom=0,$===E||!["l","r"].includes($)?b.left=f:$==="l"?b.left=0:b.right=0}return i.createElement("div",{ref:p,className:ue("".concat(t,"-arrow"),c),style:b},u)}function sL(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,l=e.motion;return a?i.createElement(Zr,be({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return i.createElement("div",{style:{zIndex:r},className:ue("".concat(t,"-mask"),u)})}):null}var cL=i.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),uL=i.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,l=e.style,c=e.target,u=e.onVisibleChanged,d=e.open,f=e.keepDom,v=e.fresh,g=e.onClick,p=e.mask,b=e.arrow,C=e.arrowPos,x=e.align,h=e.motion,$=e.maskMotion,w=e.forceRender,E=e.getPopupContainer,j=e.autoDestroy,O=e.portal,I=e.zIndex,R=e.onMouseEnter,M=e.onMouseLeave,N=e.onPointerEnter,P=e.onPointerDownCapture,B=e.ready,L=e.offsetX,k=e.offsetY,D=e.offsetR,H=e.offsetB,z=e.onAlign,_=e.onPrepare,F=e.stretch,W=e.targetWidth,q=e.targetHeight,V=typeof n=="function"?n():n,G=d||f,K=(E==null?void 0:E.length)>0,U=i.useState(!E||!K),J=fe(U,2),Q=J[0],te=J[1];if(nn(function(){!Q&&K&&c&&te(!0)},[Q,K,c]),!Q)return null;var Y="auto",ae={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(B||!d){var re,Z=x.points,X=x.dynamicInset||((re=x._experimental)===null||re===void 0?void 0:re.dynamicInset),oe=X&&Z[0][1]==="r",le=X&&Z[0][0]==="b";oe?(ae.right=D,ae.left=Y):(ae.left=L,ae.right=Y),le?(ae.bottom=H,ae.top=Y):(ae.top=k,ae.bottom=Y)}var de={};return F&&(F.includes("height")&&q?de.height=q:F.includes("minHeight")&&q&&(de.minHeight=q),F.includes("width")&&W?de.width=W:F.includes("minWidth")&&W&&(de.minWidth=W)),d||(de.pointerEvents="none"),i.createElement(O,{open:w||G,getContainer:E&&function(){return E(c)},autoDestroy:j},i.createElement(sL,{prefixCls:a,open:d,zIndex:I,mask:p,motion:$}),i.createElement(va,{onResize:z,disabled:!d},function(ce){return i.createElement(Zr,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(a,"-hidden")},h,{onAppearPrepare:_,onEnterPrepare:_,visible:d,onVisibleChanged:function(he){var Oe;h==null||(Oe=h.onVisibleChanged)===null||Oe===void 0||Oe.call(h,he),u(he)}}),function(ge,he){var Oe=ge.className,je=ge.style,pe=ue(a,Oe,r);return i.createElement("div",{ref:Mr(ce,t,he),className:pe,style:se(se(se(se({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},ae),de),je),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:R,onMouseLeave:M,onPointerEnter:N,onClick:g,onPointerDownCapture:P},b&&i.createElement(lL,{prefixCls:a,arrow:b,arrowPos:C,align:x}),i.createElement(cL,{cache:!d&&!v},V))})}))}),dL=i.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Ro(n),l=i.useCallback(function(u){Pd(t,r?r(u):u)},[r]),c=Ei(l,Cl(n));return a?i.cloneElement(n,{ref:c}):n}),fE=i.createContext(null);function mE(e){return e?Array.isArray(e)?e:[e]:[]}function fL(e,t,n,r){return i.useMemo(function(){var a=mE(n??t),l=mE(r??t),c=new Set(a),u=new Set(l);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[c,u]},[e,t,n,r])}function mL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function vL(e,t,n,r){for(var a=n.points,l=Object.keys(e),c=0;c<l.length;c+=1){var u,d=l[c];if(mL((u=e[d])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function vE(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ff(e){return e.ownerDocument.defaultView}function Ey(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=ff(n).getComputedStyle(n),l=a.overflowX,c=a.overflowY,u=a.overflow;[l,c,u].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function Wd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function nd(e){return Wd(parseFloat(e),0)}function gE(e,t){var n=se({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=ff(r).getComputedStyle(r),l=a.overflow,c=a.overflowClipMargin,u=a.borderTopWidth,d=a.borderBottomWidth,f=a.borderLeftWidth,v=a.borderRightWidth,g=r.getBoundingClientRect(),p=r.offsetHeight,b=r.clientHeight,C=r.offsetWidth,x=r.clientWidth,h=nd(u),$=nd(d),w=nd(f),E=nd(v),j=Wd(Math.round(g.width/C*1e3)/1e3),O=Wd(Math.round(g.height/p*1e3)/1e3),I=(C-x-w-E)*j,R=(p-b-h-$)*O,M=h*O,N=$*O,P=w*j,B=E*j,L=0,k=0;if(l==="clip"){var D=nd(c);L=D*j,k=D*O}var H=g.x+P-L,z=g.y+M-k,_=H+g.width+2*L-P-B-I,F=z+g.height+2*k-M-N-R;n.left=Math.max(n.left,H),n.top=Math.max(n.top,z),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,F)}}),n}function pE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function hE(e,t){var n=t||[],r=fe(n,2),a=r[0],l=r[1];return[pE(e.width,a),pE(e.height,l)]}function bE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function fc(e,t){var n=t[0],r=t[1],a,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:l}}function Qi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function gL(e,t,n,r,a,l,c){var u=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=fe(u,2),f=d[0],v=d[1],g=i.useRef(0),p=i.useMemo(function(){return t?Ey(t):[]},[t]),b=i.useRef({}),C=function(){b.current={}};e||C();var x=Xt(function(){if(t&&n&&e){let Kn=function(Jr,zr){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:De,Rl=G.x+Jr,Oi=G.y+zr,Ms=Rl+le,Ht=Oi+oe,Zt=Math.max(Rl,sa.left),tr=Math.max(Oi,sa.top),sr=Math.min(Ms,sa.right),kn=Math.min(Ht,sa.bottom);return Math.max(0,(sr-Zt)*(kn-tr))},Ur=function(){rn=G.y+$t,Qt=rn+oe,pn=G.x+ct,qt=pn+le};var zn=Kn,Zn=Ur,w,E,j,O,I=t,R=I.ownerDocument,M=ff(I),N=M.getComputedStyle(I),P=N.position,B=I.style.left,L=I.style.top,k=I.style.right,D=I.style.bottom,H=I.style.overflow,z=se(se({},a[r]),l),_=R.createElement("div");(w=I.parentElement)===null||w===void 0||w.appendChild(_),_.style.left="".concat(I.offsetLeft,"px"),_.style.top="".concat(I.offsetTop,"px"),_.style.position=P,_.style.height="".concat(I.offsetHeight,"px"),_.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var W,q,V=n.getBoundingClientRect();V.x=(W=V.x)!==null&&W!==void 0?W:V.left,V.y=(q=V.y)!==null&&q!==void 0?q:V.top,F={x:V.x,y:V.y,width:V.width,height:V.height}}var G=I.getBoundingClientRect(),K=M.getComputedStyle(I),U=K.height,J=K.width;G.x=(E=G.x)!==null&&E!==void 0?E:G.left,G.y=(j=G.y)!==null&&j!==void 0?j:G.top;var Q=R.documentElement,te=Q.clientWidth,Y=Q.clientHeight,ae=Q.scrollWidth,re=Q.scrollHeight,Z=Q.scrollTop,X=Q.scrollLeft,oe=G.height,le=G.width,de=F.height,ce=F.width,ge={left:0,top:0,right:te,bottom:Y},he={left:-X,top:-Z,right:ae-X,bottom:re-Z},Oe=z.htmlRegion,je="visible",pe="visibleFirst";Oe!=="scroll"&&Oe!==pe&&(Oe=je);var we=Oe===pe,Se=gE(he,p),Ce=gE(ge,p),De=Oe===je?Ce:Se,Ae=we?Ce:De;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var Qe=I.getBoundingClientRect();I.style.left=B,I.style.top=L,I.style.right=k,I.style.bottom=D,I.style.overflow=H,(O=I.parentElement)===null||O===void 0||O.removeChild(_);var Ke=Wd(Math.round(le/parseFloat(J)*1e3)/1e3),Fe=Wd(Math.round(oe/parseFloat(U)*1e3)/1e3);if(Ke===0||Fe===0||Td(n)&&!Yc(n))return;var Ge=z.offset,Te=z.targetOffset,Ee=hE(G,Ge),_e=fe(Ee,2),Re=_e[0],Pe=_e[1],ye=hE(F,Te),$e=fe(ye,2),Me=$e[0],Le=$e[1];F.x-=Me,F.y-=Le;var tt=z.points||[],yt=fe(tt,2),We=yt[0],nt=yt[1],dt=bE(nt),at=bE(We),pt=fc(F,dt),zt=fc(G,at),Ot=se({},z),ct=pt.x-zt.x+Re,$t=pt.y-zt.y+Pe,St=Kn(ct,$t),et=Kn(ct,$t,Ce),Ve=fc(F,["t","l"]),Ue=fc(G,["t","l"]),mt=fc(F,["b","r"]),Tt=fc(G,["b","r"]),Nt=z.overflow||{},Vt=Nt.adjustX,ft=Nt.adjustY,lt=Nt.shiftX,At=Nt.shiftY,Ut=function(zr){return typeof zr=="boolean"?zr:zr>=0},rn,Qt,pn,qt;Ur();var un=Ut(ft),st=at[0]===dt[0];if(un&&at[0]==="t"&&(Qt>Ae.bottom||b.current.bt)){var xt=$t;st?xt-=oe-de:xt=Ve.y-Tt.y-Pe;var ht=Kn(ct,xt),Ye=Kn(ct,xt,Ce);ht>St||ht===St&&(!we||Ye>=et)?(b.current.bt=!0,$t=xt,Pe=-Pe,Ot.points=[Qi(at,0),Qi(dt,0)]):b.current.bt=!1}if(un&&at[0]==="b"&&(rn<Ae.top||b.current.tb)){var Ze=$t;st?Ze+=oe-de:Ze=mt.y-Ue.y-Pe;var ut=Kn(ct,Ze),Dt=Kn(ct,Ze,Ce);ut>St||ut===St&&(!we||Dt>=et)?(b.current.tb=!0,$t=Ze,Pe=-Pe,Ot.points=[Qi(at,0),Qi(dt,0)]):b.current.tb=!1}var Kt=Ut(Vt),vt=at[1]===dt[1];if(Kt&&at[1]==="l"&&(qt>Ae.right||b.current.rl)){var Mt=ct;vt?Mt-=le-ce:Mt=Ve.x-Tt.x-Re;var Ft=Kn(Mt,$t),$n=Kn(Mt,$t,Ce);Ft>St||Ft===St&&(!we||$n>=et)?(b.current.rl=!0,ct=Mt,Re=-Re,Ot.points=[Qi(at,1),Qi(dt,1)]):b.current.rl=!1}if(Kt&&at[1]==="r"&&(pn<Ae.left||b.current.lr)){var _n=ct;vt?_n+=le-ce:_n=mt.x-Ue.x-Re;var Pn=Kn(_n,$t),Wn=Kn(_n,$t,Ce);Pn>St||Pn===St&&(!we||Wn>=et)?(b.current.lr=!0,ct=_n,Re=-Re,Ot.points=[Qi(at,1),Qi(dt,1)]):b.current.lr=!1}Ur();var jn=lt===!0?0:lt;typeof jn=="number"&&(pn<Ce.left&&(ct-=pn-Ce.left-Re,F.x+ce<Ce.left+jn&&(ct+=F.x-Ce.left+ce-jn)),qt>Ce.right&&(ct-=qt-Ce.right-Re,F.x>Ce.right-jn&&(ct+=F.x-Ce.right+jn)));var Bn=At===!0?0:At;typeof Bn=="number"&&(rn<Ce.top&&($t-=rn-Ce.top-Pe,F.y+de<Ce.top+Bn&&($t+=F.y-Ce.top+de-Bn)),Qt>Ce.bottom&&($t-=Qt-Ce.bottom-Pe,F.y>Ce.bottom-Bn&&($t+=F.y-Ce.bottom+Bn)));var $r=G.x+ct,Pr=$r+le,br=G.y+$t,Sn=br+oe,Bt=F.x,kt=Bt+ce,an=F.y,Pt=an+de,_t=Math.max($r,Bt),vn=Math.min(Pr,kt),In=(_t+vn)/2,Yn=In-$r,wr=Math.max(br,an),Qn=Math.min(Sn,Pt),Rr=(wr+Qn)/2,cn=Rr-br;c==null||c(t,Ot);var gt=Qe.right-G.x-(ct+G.width),It=Qe.bottom-G.y-($t+G.height);Ke===1&&(ct=Math.floor(ct),gt=Math.floor(gt)),Fe===1&&($t=Math.floor($t),It=Math.floor(It));var fn={ready:!0,offsetX:ct/Ke,offsetY:$t/Fe,offsetR:gt/Ke,offsetB:It/Fe,arrowX:Yn/Ke,arrowY:cn/Fe,scaleX:Ke,scaleY:Fe,align:Ot};v(fn)}}),h=function(){g.current+=1;var E=g.current;Promise.resolve().then(function(){g.current===E&&x()})},$=function(){v(function(E){return se(se({},E),{},{ready:!1})})};return nn($,[r]),nn(function(){e||$()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,h]}function pL(e,t,n,r,a){nn(function(){if(e&&t&&n){let p=function(){r(),a()};var g=p,l=t,c=n,u=Ey(l),d=Ey(c),f=ff(c),v=new Set([f].concat(Ne(u),Ne(d)));return v.forEach(function(b){b.addEventListener("scroll",p,{passive:!0})}),f.addEventListener("resize",p,{passive:!0}),r(),function(){v.forEach(function(b){b.removeEventListener("scroll",p),f.removeEventListener("resize",p)})}}},[e,t,n])}function hL(e,t,n,r,a,l,c,u){var d=i.useRef(e);d.current=e;var f=i.useRef(!1);i.useEffect(function(){if(t&&r&&(!a||l)){var g=function(){f.current=!1},p=function(h){var $;d.current&&!c((($=h.composedPath)===null||$===void 0||($=$.call(h))===null||$===void 0?void 0:$[0])||h.target)&&!f.current&&u(!1)},b=ff(r);b.addEventListener("pointerdown",g,!0),b.addEventListener("mousedown",p,!0),b.addEventListener("contextmenu",p,!0);var C=zv(n);return C&&(C.addEventListener("mousedown",p,!0),C.addEventListener("contextmenu",p,!0)),function(){b.removeEventListener("pointerdown",g,!0),b.removeEventListener("mousedown",p,!0),b.removeEventListener("contextmenu",p,!0),C&&(C.removeEventListener("mousedown",p,!0),C.removeEventListener("contextmenu",p,!0))}}},[t,n,r,a,l]);function v(){f.current=!0}return v}var bL=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function yL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P1,t=i.forwardRef(function(n,r){var a=n.prefixCls,l=a===void 0?"rc-trigger-popup":a,c=n.children,u=n.action,d=u===void 0?"hover":u,f=n.showAction,v=n.hideAction,g=n.popupVisible,p=n.defaultPopupVisible,b=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,x=n.mouseEnterDelay,h=n.mouseLeaveDelay,$=h===void 0?.1:h,w=n.focusDelay,E=n.blurDelay,j=n.mask,O=n.maskClosable,I=O===void 0?!0:O,R=n.getPopupContainer,M=n.forceRender,N=n.autoDestroy,P=n.destroyPopupOnHide,B=n.popup,L=n.popupClassName,k=n.popupStyle,D=n.popupPlacement,H=n.builtinPlacements,z=H===void 0?{}:H,_=n.popupAlign,F=n.zIndex,W=n.stretch,q=n.getPopupClassNameFromAlign,V=n.fresh,G=n.alignPoint,K=n.onPopupClick,U=n.onPopupAlign,J=n.arrow,Q=n.popupMotion,te=n.maskMotion,Y=n.popupTransitionName,ae=n.popupAnimation,re=n.maskTransitionName,Z=n.maskAnimation,X=n.className,oe=n.getTriggerDOMNode,le=Lt(n,bL),de=N||P||!1,ce=i.useState(!1),ge=fe(ce,2),he=ge[0],Oe=ge[1];nn(function(){Oe(Rg())},[]);var je=i.useRef({}),pe=i.useContext(fE),we=i.useMemo(function(){return{registerSubPopup:function(Zt,tr){je.current[Zt]=tr,pe==null||pe.registerSubPopup(Zt,tr)}}},[pe]),Se=cf(),Ce=i.useState(null),De=fe(Ce,2),Ae=De[0],Qe=De[1],Ke=i.useRef(null),Fe=Xt(function(Ht){Ke.current=Ht,Td(Ht)&&Ae!==Ht&&Qe(Ht),pe==null||pe.registerSubPopup(Se,Ht)}),Ge=i.useState(null),Te=fe(Ge,2),Ee=Te[0],_e=Te[1],Re=i.useRef(null),Pe=Xt(function(Ht){Td(Ht)&&Ee!==Ht&&(_e(Ht),Re.current=Ht)}),ye=i.Children.only(c),$e=(ye==null?void 0:ye.props)||{},Me={},Le=Xt(function(Ht){var Zt,tr,sr=Ee;return(sr==null?void 0:sr.contains(Ht))||((Zt=zv(sr))===null||Zt===void 0?void 0:Zt.host)===Ht||Ht===sr||(Ae==null?void 0:Ae.contains(Ht))||((tr=zv(Ae))===null||tr===void 0?void 0:tr.host)===Ht||Ht===Ae||Object.values(je.current).some(function(kn){return(kn==null?void 0:kn.contains(Ht))||Ht===kn})}),tt=vE(l,Q,ae,Y),yt=vE(l,te,Z,re),We=i.useState(p||!1),nt=fe(We,2),dt=nt[0],at=nt[1],pt=g??dt,zt=Xt(function(Ht){g===void 0&&at(Ht)});nn(function(){at(g||!1)},[g]);var Ot=i.useRef(pt);Ot.current=pt;var ct=i.useRef([]);ct.current=[];var $t=Xt(function(Ht){var Zt;zt(Ht),((Zt=ct.current[ct.current.length-1])!==null&&Zt!==void 0?Zt:pt)!==Ht&&(ct.current.push(Ht),b==null||b(Ht))}),St=i.useRef(),et=function(){clearTimeout(St.current)},Ve=function(Zt){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;et(),tr===0?$t(Zt):St.current=setTimeout(function(){$t(Zt)},tr*1e3)};i.useEffect(function(){return et},[]);var Ue=i.useState(!1),mt=fe(Ue,2),Tt=mt[0],Nt=mt[1];nn(function(Ht){(!Ht||pt)&&Nt(!0)},[pt]);var Vt=i.useState(null),ft=fe(Vt,2),lt=ft[0],At=ft[1],Ut=i.useState(null),rn=fe(Ut,2),Qt=rn[0],pn=rn[1],qt=function(Zt){pn([Zt.clientX,Zt.clientY])},un=gL(pt,Ae,G&&Qt!==null?Qt:Ee,D,z,_,U),st=fe(un,11),xt=st[0],ht=st[1],Ye=st[2],Ze=st[3],ut=st[4],Dt=st[5],Kt=st[6],vt=st[7],Mt=st[8],Ft=st[9],$n=st[10],_n=fL(he,d,f,v),Pn=fe(_n,2),Wn=Pn[0],jn=Pn[1],Bn=Wn.has("click"),$r=jn.has("click")||jn.has("contextMenu"),Pr=Xt(function(){Tt||$n()}),br=function(){Ot.current&&G&&$r&&Ve(!1)};pL(pt,Ee,Ae,Pr,br),nn(function(){Pr()},[Qt,D]),nn(function(){pt&&!(z!=null&&z[D])&&Pr()},[JSON.stringify(_)]);var Sn=i.useMemo(function(){var Ht=vL(z,l,Ft,G);return ue(Ht,q==null?void 0:q(Ft))},[Ft,q,z,l,G]);i.useImperativeHandle(r,function(){return{nativeElement:Re.current,popupElement:Ke.current,forceAlign:Pr}});var Bt=i.useState(0),kt=fe(Bt,2),an=kt[0],Pt=kt[1],_t=i.useState(0),vn=fe(_t,2),In=vn[0],Yn=vn[1],wr=function(){if(W&&Ee){var Zt=Ee.getBoundingClientRect();Pt(Zt.width),Yn(Zt.height)}},Qn=function(){wr(),Pr()},Rr=function(Zt){Nt(!1),$n(),C==null||C(Zt)},cn=function(){return new Promise(function(Zt){wr(),At(function(){return Zt})})};nn(function(){lt&&($n(),lt(),At(null))},[lt]);function gt(Ht,Zt,tr,sr){Me[Ht]=function(kn){var Ri;sr==null||sr(kn),Ve(Zt,tr);for(var ji=arguments.length,fu=new Array(ji>1?ji-1:0),ei=1;ei<ji;ei++)fu[ei-1]=arguments[ei];(Ri=$e[Ht])===null||Ri===void 0||Ri.call.apply(Ri,[$e,kn].concat(fu))}}(Bn||$r)&&(Me.onClick=function(Ht){var Zt;Ot.current&&$r?Ve(!1):!Ot.current&&Bn&&(qt(Ht),Ve(!0));for(var tr=arguments.length,sr=new Array(tr>1?tr-1:0),kn=1;kn<tr;kn++)sr[kn-1]=arguments[kn];(Zt=$e.onClick)===null||Zt===void 0||Zt.call.apply(Zt,[$e,Ht].concat(sr))});var It=hL(pt,$r,Ee,Ae,j,I,Le,Ve),fn=Wn.has("hover"),zn=jn.has("hover"),Zn,Kn;fn&&(gt("onMouseEnter",!0,x,function(Ht){qt(Ht)}),gt("onPointerEnter",!0,x,function(Ht){qt(Ht)}),Zn=function(Zt){(pt||Tt)&&Ae!==null&&Ae!==void 0&&Ae.contains(Zt.target)&&Ve(!0,x)},G&&(Me.onMouseMove=function(Ht){var Zt;(Zt=$e.onMouseMove)===null||Zt===void 0||Zt.call($e,Ht)})),zn&&(gt("onMouseLeave",!1,$),gt("onPointerLeave",!1,$),Kn=function(){Ve(!1,$)}),Wn.has("focus")&>("onFocus",!0,w),jn.has("focus")&>("onBlur",!1,E),Wn.has("contextMenu")&&(Me.onContextMenu=function(Ht){var Zt;Ot.current&&jn.has("contextMenu")?Ve(!1):(qt(Ht),Ve(!0)),Ht.preventDefault();for(var tr=arguments.length,sr=new Array(tr>1?tr-1:0),kn=1;kn<tr;kn++)sr[kn-1]=arguments[kn];(Zt=$e.onContextMenu)===null||Zt===void 0||Zt.call.apply(Zt,[$e,Ht].concat(sr))}),X&&(Me.className=ue($e.className,X));var Ur=i.useRef(!1);Ur.current||(Ur.current=M||pt||Tt);var Jr=se(se({},$e),Me),zr={},sa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];sa.forEach(function(Ht){le[Ht]&&(zr[Ht]=function(){for(var Zt,tr=arguments.length,sr=new Array(tr),kn=0;kn<tr;kn++)sr[kn]=arguments[kn];(Zt=Jr[Ht])===null||Zt===void 0||Zt.call.apply(Zt,[Jr].concat(sr)),le[Ht].apply(le,sr)})});var Rl=i.cloneElement(ye,se(se({},Jr),zr)),Oi={x:Dt,y:Kt},Ms=J?se({},J!==!0?J:{}):null;return i.createElement(i.Fragment,null,i.createElement(va,{disabled:!pt,ref:Pe,onResize:Qn},i.createElement(dL,{getTriggerDOMNode:oe},Rl)),Ur.current&&i.createElement(fE.Provider,{value:we},i.createElement(uL,{portal:e,ref:Fe,prefixCls:l,popup:B,className:ue(L,Sn),style:k,target:Ee,onMouseEnter:Zn,onMouseLeave:Kn,onPointerEnter:Zn,zIndex:F,open:pt,keepDom:Tt,fresh:V,onClick:K,onPointerDownCapture:It,mask:j,motion:tt,maskMotion:yt,onVisibleChanged:Rr,onPrepare:cn,forceRender:M,autoDestroy:de,getPopupContainer:R,align:Ft,arrow:Ms,arrowPos:Oi,ready:xt,offsetX:ht,offsetY:Ye,offsetR:Ze,offsetB:ut,onAlign:Pr,stretch:W,targetWidth:an/vt,targetHeight:In/Mt})))});return t}const mf=yL(P1);var CL=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],SL=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},xL=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,l=t.children,c=t.popupElement,u=t.animation,d=t.transitionName,f=t.dropdownStyle,v=t.dropdownClassName,g=t.direction,p=g===void 0?"ltr":g,b=t.placement,C=t.builtinPlacements,x=t.dropdownMatchSelectWidth,h=t.dropdownRender,$=t.dropdownAlign,w=t.getPopupContainer,E=t.empty,j=t.getTriggerDOMNode,O=t.onPopupVisibleChange,I=t.onPopupMouseEnter,R=Lt(t,CL),M="".concat(r,"-dropdown"),N=c;h&&(N=h(c));var P=i.useMemo(function(){return C||SL(x)},[C,x]),B=u?"".concat(M,"-").concat(u):d,L=typeof x=="number",k=i.useMemo(function(){return L?null:x===!1?"minWidth":"width"},[x,L]),D=f;L&&(D=se(se({},D),{},{width:x}));var H=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){var _;return(_=H.current)===null||_===void 0?void 0:_.popupElement}}}),i.createElement(mf,be({},R,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:M,popupTransitionName:B,popup:i.createElement("div",{onMouseEnter:I},N),ref:H,stretch:k,popupAlign:$,popupVisible:a,getPopupContainer:w,popupClassName:ue(v,ne({},"".concat(M,"-empty"),E)),popupStyle:D,getTriggerDOMNode:j,onPopupVisibleChange:O}),l)},$L=i.forwardRef(xL);function yE(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Oy(e){return typeof e<"u"&&!Number.isNaN(e)}function ZR(e,t){var n=e||{},r=n.label,a=n.value,l=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:l||"options",groupLabel:c||u}}function wL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],l=ZR(n,!1),c=l.label,u=l.value,d=l.options,f=l.groupLabel;function v(g,p){Array.isArray(g)&&g.forEach(function(b){if(p||!(d in b)){var C=b[u];a.push({key:yE(b,a.length),groupOption:p,data:b,label:b[c],value:C})}else{var x=b[f];x===void 0&&r&&(x=b.label),a.push({key:yE(b,a.length),group:!0,data:b,label:x}),v(b[d],!0)}})}return v(e,!1),a}function Ry(e){var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Xn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var EL=function(t,n,r){if(!n||!n.length)return null;var a=!1,l=function u(d,f){var v=Y3(f),g=v[0],p=v.slice(1);if(!g)return[d];var b=d.split(g);return a=a||b.length>1,b.reduce(function(C,x){return[].concat(Ne(C),Ne(u(x,p)))},[]).filter(Boolean)},c=l(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},B1=i.createContext(null);function OL(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var l=a.label,c=a.value;return["number","string"].includes(Et(l))?l:c}).join(", ")),n.length>r?", ...":null)}var RL=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],jL=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],jy=function(t){return t==="tags"||t==="multiple"},JR=i.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,v=e.displayValues,g=e.onDisplayValuesChange,p=e.emptyOptions,b=e.notFoundContent,C=b===void 0?"Not Found":b,x=e.onClear,h=e.mode,$=e.disabled,w=e.loading,E=e.getInputElement,j=e.getRawInputElement,O=e.open,I=e.defaultOpen,R=e.onDropdownVisibleChange,M=e.activeValue,N=e.onActiveValueChange,P=e.activeDescendantId,B=e.searchValue,L=e.autoClearSearchValue,k=e.onSearch,D=e.onSearchSplit,H=e.tokenSeparators,z=e.allowClear,_=e.prefix,F=e.suffixIcon,W=e.clearIcon,q=e.OptionList,V=e.animation,G=e.transitionName,K=e.dropdownStyle,U=e.dropdownClassName,J=e.dropdownMatchSelectWidth,Q=e.dropdownRender,te=e.dropdownAlign,Y=e.placement,ae=e.builtinPlacements,re=e.getPopupContainer,Z=e.showAction,X=Z===void 0?[]:Z,oe=e.onFocus,le=e.onBlur,de=e.onKeyUp,ce=e.onKeyDown,ge=e.onMouseDown,he=Lt(e,RL),Oe=jy(h),je=(c!==void 0?c:Oe)||h==="combobox",pe=se({},he);jL.forEach(function(Bt){delete pe[Bt]}),f==null||f.forEach(function(Bt){delete pe[Bt]});var we=i.useState(!1),Se=fe(we,2),Ce=Se[0],De=Se[1];i.useEffect(function(){De(Rg())},[]);var Ae=i.useRef(null),Qe=i.useRef(null),Ke=i.useRef(null),Fe=i.useRef(null),Ge=i.useRef(null),Te=i.useRef(!1),Ee=zk(),_e=fe(Ee,3),Re=_e[0],Pe=_e[1],ye=_e[2];i.useImperativeHandle(t,function(){var Bt,kt;return{focus:(Bt=Fe.current)===null||Bt===void 0?void 0:Bt.focus,blur:(kt=Fe.current)===null||kt===void 0?void 0:kt.blur,scrollTo:function(Pt){var _t;return(_t=Ge.current)===null||_t===void 0?void 0:_t.scrollTo(Pt)},nativeElement:Ae.current||Qe.current}});var $e=i.useMemo(function(){var Bt;if(h!=="combobox")return B;var kt=(Bt=v[0])===null||Bt===void 0?void 0:Bt.value;return typeof kt=="string"||typeof kt=="number"?String(kt):""},[B,h,v]),Me=h==="combobox"&&typeof E=="function"&&E()||null,Le=typeof j=="function"&&j(),tt=Ei(Qe,Le==null||(n=Le.props)===null||n===void 0?void 0:n.ref),yt=i.useState(!1),We=fe(yt,2),nt=We[0],dt=We[1];nn(function(){dt(!0)},[]);var at=yn(!1,{defaultValue:I,value:O}),pt=fe(at,2),zt=pt[0],Ot=pt[1],ct=nt?zt:!1,$t=!C&&p;($||$t&&ct&&h==="combobox")&&(ct=!1);var St=$t?!1:ct,et=i.useCallback(function(Bt){var kt=Bt!==void 0?Bt:!ct;$||(Ot(kt),ct!==kt&&(R==null||R(kt)))},[$,ct,Ot,R]),Ve=i.useMemo(function(){return(H||[]).some(function(Bt){return[`
|
|
233
|
-
`,`\r
|
|
234
|
-
`].includes(Bt)})},[H]),Ue=i.useContext(B1)||{},mt=Ue.maxCount,Tt=Ue.rawValues,Nt=function(kt,an,Pt){if(!(Oe&&Oy(mt)&&(Tt==null?void 0:Tt.size)>=mt)){var _t=!0,vn=kt;N==null||N(null);var In=EL(kt,H,Oy(mt)?mt-Tt.size:void 0),Yn=Pt?null:In;return h!=="combobox"&&Yn&&(vn="",D==null||D(Yn),et(!1),_t=!1),k&&$e!==vn&&k(vn,{source:an?"typing":"effect"}),_t}},Vt=function(kt){!kt||!kt.trim()||k(kt,{source:"submit"})};i.useEffect(function(){!ct&&!Oe&&h!=="combobox"&&Nt("",!1,!1)},[ct]),i.useEffect(function(){zt&&$&&Ot(!1),$&&!Te.current&&Pe(!1)},[$]);var ft=KR(),lt=fe(ft,2),At=lt[0],Ut=lt[1],rn=i.useRef(!1),Qt=function(kt){var an=At(),Pt=kt.key,_t=Pt==="Enter";if(_t&&(h!=="combobox"&&kt.preventDefault(),ct||et(!0)),Ut(!!$e),Pt==="Backspace"&&!an&&Oe&&!$e&&v.length){for(var vn=Ne(v),In=null,Yn=vn.length-1;Yn>=0;Yn-=1){var wr=vn[Yn];if(!wr.disabled){vn.splice(Yn,1),In=wr;break}}In&&g(vn,{type:"remove",values:[In]})}for(var Qn=arguments.length,Rr=new Array(Qn>1?Qn-1:0),cn=1;cn<Qn;cn++)Rr[cn-1]=arguments[cn];if(ct&&(!_t||!rn.current)){var gt;_t&&(rn.current=!0),(gt=Ge.current)===null||gt===void 0||gt.onKeyDown.apply(gt,[kt].concat(Rr))}ce==null||ce.apply(void 0,[kt].concat(Rr))},pn=function(kt){for(var an=arguments.length,Pt=new Array(an>1?an-1:0),_t=1;_t<an;_t++)Pt[_t-1]=arguments[_t];if(ct){var vn;(vn=Ge.current)===null||vn===void 0||vn.onKeyUp.apply(vn,[kt].concat(Pt))}kt.key==="Enter"&&(rn.current=!1),de==null||de.apply(void 0,[kt].concat(Pt))},qt=function(kt){var an=v.filter(function(Pt){return Pt!==kt});g(an,{type:"remove",values:[kt]})},un=function(){rn.current=!1},st=i.useRef(!1),xt=function(){Pe(!0),$||(oe&&!st.current&&oe.apply(void 0,arguments),X.includes("focus")&&et(!0)),st.current=!0},ht=function(){Te.current=!0,Pe(!1,function(){st.current=!1,Te.current=!1,et(!1)}),!$&&($e&&(h==="tags"?k($e,{source:"submit"}):h==="multiple"&&k("",{source:"blur"})),le&&le.apply(void 0,arguments))},Ye=[];i.useEffect(function(){return function(){Ye.forEach(function(Bt){return clearTimeout(Bt)}),Ye.splice(0,Ye.length)}},[]);var Ze=function(kt){var an,Pt=kt.target,_t=(an=Ke.current)===null||an===void 0?void 0:an.getPopupElement();if(_t&&_t.contains(Pt)){var vn=setTimeout(function(){var Qn=Ye.indexOf(vn);if(Qn!==-1&&Ye.splice(Qn,1),ye(),!Ce&&!_t.contains(document.activeElement)){var Rr;(Rr=Fe.current)===null||Rr===void 0||Rr.focus()}});Ye.push(vn)}for(var In=arguments.length,Yn=new Array(In>1?In-1:0),wr=1;wr<In;wr++)Yn[wr-1]=arguments[wr];ge==null||ge.apply(void 0,[kt].concat(Yn))},ut=i.useState({}),Dt=fe(ut,2),Kt=Dt[1];function vt(){Kt({})}var Mt;Le&&(Mt=function(kt){et(kt)}),Dk(function(){var Bt;return[Ae.current,(Bt=Ke.current)===null||Bt===void 0?void 0:Bt.getPopupElement()]},St,et,!!Le);var Ft=i.useMemo(function(){return se(se({},e),{},{notFoundContent:C,open:ct,triggerOpen:St,id:r,showSearch:je,multiple:Oe,toggleOpen:et})},[e,C,St,ct,r,je,Oe,et]),$n=!!F||w,_n;$n&&(_n=i.createElement(jg,{className:ue("".concat(a,"-arrow"),ne({},"".concat(a,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:$e,open:ct,focused:Re,showSearch:je}}));var Pn=function(){var kt;x==null||x(),(kt=Fe.current)===null||kt===void 0||kt.focus(),g([],{type:"clear",values:v}),Nt("",!1,!1)},Wn=Pk(a,Pn,v,z,W,$,$e,h),jn=Wn.allowClear,Bn=Wn.clearIcon,$r=i.createElement(q,{ref:Ge}),Pr=ue(a,l,ne(ne(ne(ne(ne(ne(ne(ne(ne(ne({},"".concat(a,"-focused"),Re),"".concat(a,"-multiple"),Oe),"".concat(a,"-single"),!Oe),"".concat(a,"-allow-clear"),z),"".concat(a,"-show-arrow"),$n),"".concat(a,"-disabled"),$),"".concat(a,"-loading"),w),"".concat(a,"-open"),ct),"".concat(a,"-customize-input"),Me),"".concat(a,"-show-search"),je)),br=i.createElement($L,{ref:Ke,disabled:$,prefixCls:a,visible:St,popupElement:$r,animation:V,transitionName:G,dropdownStyle:K,dropdownClassName:U,direction:d,dropdownMatchSelectWidth:J,dropdownRender:Q,dropdownAlign:te,placement:Y,builtinPlacements:ae,getPopupContainer:re,empty:p,getTriggerDOMNode:function(kt){return Qe.current||kt},onPopupVisibleChange:Mt,onPopupMouseEnter:vt},Le?i.cloneElement(Le,{ref:tt}):i.createElement(iL,be({},e,{domRef:Qe,prefixCls:a,inputElement:Me,ref:Fe,id:r,prefix:_,showSearch:je,autoClearSearchValue:L,mode:h,activeDescendantId:P,tagRender:u,values:v,open:ct,onToggleOpen:et,activeValue:M,searchValue:$e,onSearch:Nt,onSearchSubmit:Vt,onRemove:qt,tokenWithEnter:Ve,onInputBlur:un}))),Sn;return Le?Sn=br:Sn=i.createElement("div",be({className:Pr},pe,{ref:Ae,onMouseDown:Ze,onKeyDown:Qt,onKeyUp:pn,onFocus:xt,onBlur:ht}),i.createElement(OL,{visible:Re&&!ct,values:v}),br,_n,jn&&Bn),i.createElement(VR.Provider,{value:Ft},Sn)}),k1=function(){return null};k1.isSelectOptGroup=!0;var L1=function(){return null};L1.isSelectOption=!0;var ej=i.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,l=e.children,c=e.prefixCls,u=e.onInnerResize,d=e.innerProps,f=e.rtl,v=e.extra,g={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},p=se(se({},p),{},ne(ne(ne(ne(ne({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:g},i.createElement(va,{onResize:function(C){var x=C.offsetHeight;x&&u&&u()}},i.createElement("div",be({style:p,className:ue(ne({},"".concat(c,"-holder-inner"),c)),ref:t},d),l,v)))});ej.displayName="Filler";function IL(e){var t=e.children,n=e.setRef,r=i.useCallback(function(a){n(a)},[]);return i.cloneElement(t,{ref:r})}function NL(e,t,n,r,a,l,c,u){var d=u.getKey;return e.slice(t,n+1).map(function(f,v){var g=t+v,p=c(f,g,{style:{width:r},offsetX:a}),b=d(f);return i.createElement(IL,{key:b,setRef:function(x){return l(f,x)}},p)})}function ML(e,t,n){var r=e.length,a=t.length,l,c;if(r===0&&a===0)return null;r<a?(l=e,c=t):(l=t,c=e);var u={__EMPTY_ITEM__:!0};function d(C){return C!==void 0?n(C):u}for(var f=null,v=Math.abs(r-a)!==1,g=0;g<c.length;g+=1){var p=d(l[g]),b=d(c[g]);if(p!==b){f=g,v=v||p!==d(c[g+1]);break}}return f===null?null:{index:f,multiple:v}}function TL(e,t,n){var r=i.useState(e),a=fe(r,2),l=a[0],c=a[1],u=i.useState(null),d=fe(u,2),f=d[0],v=d[1];return i.useEffect(function(){var g=ML(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&v(e[g.index]),c(e)},[e]),[f]}var CE=(typeof navigator>"u"?"undefined":Et(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const tj=(function(e,t,n,r){var a=i.useRef(!1),l=i.useRef(null);function c(){clearTimeout(l.current),a.current=!0,l.current=setTimeout(function(){a.current=!1},50)}var u=i.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(d,f){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=d?f<0&&u.current.left||f>0&&u.current.right:f<0&&u.current.top||f>0&&u.current.bottom;return v&&g?(clearTimeout(l.current),a.current=!1):(!g||a.current)&&c(),!a.current&&g}});function PL(e,t,n,r,a,l,c){var u=i.useRef(0),d=i.useRef(null),f=i.useRef(null),v=i.useRef(!1),g=tj(t,n,r,a);function p(w,E){if(Yt.cancel(d.current),!g(!1,E)){var j=w;if(!j._virtualHandled)j._virtualHandled=!0;else return;u.current+=E,f.current=E,CE||j.preventDefault(),d.current=Yt(function(){var O=v.current?10:1;c(u.current*O,!1),u.current=0})}}function b(w,E){c(E,!0),CE||w.preventDefault()}var C=i.useRef(null),x=i.useRef(null);function h(w){if(e){Yt.cancel(x.current),x.current=Yt(function(){C.current=null},2);var E=w.deltaX,j=w.deltaY,O=w.shiftKey,I=E,R=j;(C.current==="sx"||!C.current&&O&&j&&!E)&&(I=j,R=0,C.current="sx");var M=Math.abs(I),N=Math.abs(R);C.current===null&&(C.current=l&&M>N?"x":"y"),C.current==="y"?p(w,R):b(w,I)}}function $(w){e&&(v.current=w.detail===f.current)}return[h,$]}function zL(e,t,n,r){var a=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=fe(a,2),c=l[0],u=l[1],d=function(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,p=c.get(v),b=c.get(g);if(p===void 0||b===void 0)for(var C=e.length,x=u.length;x<C;x+=1){var h,$=e[x],w=t($);c.set(w,x);var E=(h=n.get(w))!==null&&h!==void 0?h:r;if(u[x]=(u[x-1]||0)+E,w===v&&(p=x),w===g&&(b=x),p!==void 0&&b!==void 0)break}return{top:u[p-1]||0,bottom:u[b]}};return d}var DL=(function(){function e(){fr(this,e),ne(this,"maps",void 0),ne(this,"id",0),ne(this,"diffRecords",new Map),this.maps=Object.create(null)}return mr(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function SE(e){var t=parseFloat(e);return isNaN(t)?0:t}function _L(e,t,n){var r=i.useState(0),a=fe(r,2),l=a[0],c=a[1],u=i.useRef(new Map),d=i.useRef(new DL),f=i.useRef(0);function v(){f.current+=1}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;v();var C=function(){var $=!1;u.current.forEach(function(w,E){if(w&&w.offsetParent){var j=w.offsetHeight,O=getComputedStyle(w),I=O.marginTop,R=O.marginBottom,M=SE(I),N=SE(R),P=j+M+N;d.current.get(E)!==P&&(d.current.set(E,P),$=!0)}}),$&&c(function(w){return w+1})};if(b)C();else{f.current+=1;var x=f.current;Promise.resolve().then(function(){x===f.current&&C()})}}function p(b,C){var x=e(b);u.current.get(x),C?(u.current.set(x,C),g()):u.current.delete(x)}return i.useEffect(function(){return v},[]),[p,g,d.current,l]}var xE=14/15;function AL(e,t,n){var r=i.useRef(!1),a=i.useRef(0),l=i.useRef(0),c=i.useRef(null),u=i.useRef(null),d,f=function(b){if(r.current){var C=Math.ceil(b.touches[0].pageX),x=Math.ceil(b.touches[0].pageY),h=a.current-C,$=l.current-x,w=Math.abs(h)>Math.abs($);w?a.current=C:l.current=x;var E=n(w,w?h:$,!1,b);E&&b.preventDefault(),clearInterval(u.current),E&&(u.current=setInterval(function(){w?h*=xE:$*=xE;var j=Math.floor(w?h:$);(!n(w,j,!0)||Math.abs(j)<=.1)&&clearInterval(u.current)},16))}},v=function(){r.current=!1,d()},g=function(b){d(),b.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(b.touches[0].pageX),l.current=Math.ceil(b.touches[0].pageY),c.current=b.target,c.current.addEventListener("touchmove",f,{passive:!1}),c.current.addEventListener("touchend",v,{passive:!0}))};d=function(){c.current&&(c.current.removeEventListener("touchmove",f),c.current.removeEventListener("touchend",v))},nn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",g),d(),clearInterval(u.current)}},[e])}function $E(e){return Math.floor(Math.pow(e,.5))}function Iy(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function BL(e,t,n){i.useEffect(function(){var r=t.current;if(e&&r){var a=!1,l,c,u=function(){Yt.cancel(l)},d=function p(){u(),l=Yt(function(){n(c),p()})},f=function(){a=!1,u()},v=function(b){if(!(b.target.draggable||b.button!==0)){var C=b;C._virtualHandled||(C._virtualHandled=!0,a=!0)}},g=function(b){if(a){var C=Iy(b,!1),x=r.getBoundingClientRect(),h=x.top,$=x.bottom;if(C<=h){var w=h-C;c=-$E(w),d()}else if(C>=$){var E=C-$;c=$E(E),d()}else u()}};return r.addEventListener("mousedown",v),r.ownerDocument.addEventListener("mouseup",f),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",f),function(){r.removeEventListener("mousedown",v),r.ownerDocument.removeEventListener("mouseup",f),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",f),u()}}},[e])}var kL=10;function LL(e,t,n,r,a,l,c,u){var d=i.useRef(),f=i.useState(null),v=fe(f,2),g=v[0],p=v[1];return nn(function(){if(g&&g.times<kL){if(!e.current){p(function(W){return se({},W)});return}l();var b=g.targetAlign,C=g.originAlign,x=g.index,h=g.offset,$=e.current.clientHeight,w=!1,E=b,j=null;if($){for(var O=b||C,I=0,R=0,M=0,N=Math.min(t.length-1,x),P=0;P<=N;P+=1){var B=a(t[P]);R=I;var L=n.get(B);M=R+(L===void 0?r:L),I=M}for(var k=O==="top"?h:$-h,D=N;D>=0;D-=1){var H=a(t[D]),z=n.get(H);if(z===void 0){w=!0;break}if(k-=z,k<=0)break}switch(O){case"top":j=R-h;break;case"bottom":j=M-$+h;break;default:{var _=e.current.scrollTop,F=_+$;R<_?E="top":M>F&&(E="bottom")}}j!==null&&c(j),j!==g.lastTop&&(w=!0)}w&&p(se(se({},g),{},{times:g.times+1,targetAlign:E,lastTop:j}))}},[g,e.current]),function(b){if(b==null){u();return}if(Yt.cancel(d.current),typeof b=="number")c(b);else if(b&&Et(b)==="object"){var C,x=b.align;"index"in b?C=b.index:C=t.findIndex(function(w){return a(w)===b.key});var h=b.offset,$=h===void 0?0:h;p({times:0,index:C,offset:$,originAlign:x})}}}var wE=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,u=e.onStopMove,d=e.onScroll,f=e.horizontal,v=e.spinSize,g=e.containerSize,p=e.style,b=e.thumbStyle,C=e.showScrollBar,x=i.useState(!1),h=fe(x,2),$=h[0],w=h[1],E=i.useState(null),j=fe(E,2),O=j[0],I=j[1],R=i.useState(null),M=fe(R,2),N=M[0],P=M[1],B=!r,L=i.useRef(),k=i.useRef(),D=i.useState(C),H=fe(D,2),z=H[0],_=H[1],F=i.useRef(),W=function(){C===!0||C===!1||(clearTimeout(F.current),_(!0),F.current=setTimeout(function(){_(!1)},3e3))},q=l-g||0,V=g-v||0,G=i.useMemo(function(){if(a===0||q===0)return 0;var Z=a/q;return Z*V},[a,q,V]),K=function(X){X.stopPropagation(),X.preventDefault()},U=i.useRef({top:G,dragging:$,pageY:O,startTop:N});U.current={top:G,dragging:$,pageY:O,startTop:N};var J=function(X){w(!0),I(Iy(X,f)),P(U.current.top),c(),X.stopPropagation(),X.preventDefault()};i.useEffect(function(){var Z=function(de){de.preventDefault()},X=L.current,oe=k.current;return X.addEventListener("touchstart",Z,{passive:!1}),oe.addEventListener("touchstart",J,{passive:!1}),function(){X.removeEventListener("touchstart",Z),oe.removeEventListener("touchstart",J)}},[]);var Q=i.useRef();Q.current=q;var te=i.useRef();te.current=V,i.useEffect(function(){if($){var Z,X=function(de){var ce=U.current,ge=ce.dragging,he=ce.pageY,Oe=ce.startTop;Yt.cancel(Z);var je=L.current.getBoundingClientRect(),pe=g/(f?je.width:je.height);if(ge){var we=(Iy(de,f)-he)*pe,Se=Oe;!B&&f?Se-=we:Se+=we;var Ce=Q.current,De=te.current,Ae=De?Se/De:0,Qe=Math.ceil(Ae*Ce);Qe=Math.max(Qe,0),Qe=Math.min(Qe,Ce),Z=Yt(function(){d(Qe,f)})}},oe=function(){w(!1),u()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),Yt.cancel(Z)}}},[$]),i.useEffect(function(){return W(),function(){clearTimeout(F.current)}},[a]),i.useImperativeHandle(t,function(){return{delayHidden:W}});var Y="".concat(n,"-scrollbar"),ae={position:"absolute",visibility:z?null:"hidden"},re={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(ae,{height:8,left:0,right:0,bottom:0}),Object.assign(re,ne({height:"100%",width:v},B?"left":"right",G))):(Object.assign(ae,ne({width:8,top:0,bottom:0},B?"right":"left",0)),Object.assign(re,{width:"100%",height:v,top:G})),i.createElement("div",{ref:L,className:ue(Y,ne(ne(ne({},"".concat(Y,"-horizontal"),f),"".concat(Y,"-vertical"),!f),"".concat(Y,"-visible"),z)),style:se(se({},ae),p),onMouseDown:K,onMouseMove:W},i.createElement("div",{ref:k,className:ue("".concat(Y,"-thumb"),ne({},"".concat(Y,"-thumb-moving"),$)),style:se(se({},re),b),onMouseDown:J}))}),HL=20;function EE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,HL),Math.floor(n)}var FL=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],VL=[],WL={overflowY:"auto",overflowAnchor:"none"};function KL(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,d=u===void 0?!0:u,f=e.style,v=e.data,g=e.children,p=e.itemKey,b=e.virtual,C=e.direction,x=e.scrollWidth,h=e.component,$=h===void 0?"div":h,w=e.onScroll,E=e.onVirtualScroll,j=e.onVisibleChange,O=e.innerProps,I=e.extraRender,R=e.styles,M=e.showScrollBar,N=M===void 0?"optional":M,P=Lt(e,FL),B=i.useCallback(function(st){return typeof p=="function"?p(st):st==null?void 0:st[p]},[p]),L=_L(B),k=fe(L,4),D=k[0],H=k[1],z=k[2],_=k[3],F=!!(b!==!1&&l&&c),W=i.useMemo(function(){return Object.values(z.maps).reduce(function(st,xt){return st+xt},0)},[z.id,z.maps]),q=F&&v&&(Math.max(c*v.length,W)>l||!!x),V=C==="rtl",G=ue(r,ne({},"".concat(r,"-rtl"),V),a),K=v||VL,U=i.useRef(),J=i.useRef(),Q=i.useRef(),te=i.useState(0),Y=fe(te,2),ae=Y[0],re=Y[1],Z=i.useState(0),X=fe(Z,2),oe=X[0],le=X[1],de=i.useState(!1),ce=fe(de,2),ge=ce[0],he=ce[1],Oe=function(){he(!0)},je=function(){he(!1)},pe={getKey:B};function we(st){re(function(xt){var ht;typeof st=="function"?ht=st(xt):ht=st;var Ye=dt(ht);return U.current.scrollTop=Ye,Ye})}var Se=i.useRef({start:0,end:K.length}),Ce=i.useRef(),De=TL(K,B),Ae=fe(De,1),Qe=Ae[0];Ce.current=Qe;var Ke=i.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!q){var st;return{scrollHeight:((st=J.current)===null||st===void 0?void 0:st.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var xt=0,ht,Ye,Ze,ut=K.length,Dt=0;Dt<ut;Dt+=1){var Kt=K[Dt],vt=B(Kt),Mt=z.get(vt),Ft=xt+(Mt===void 0?c:Mt);Ft>=ae&&ht===void 0&&(ht=Dt,Ye=xt),Ft>ae+l&&Ze===void 0&&(Ze=Dt),xt=Ft}return ht===void 0&&(ht=0,Ye=0,Ze=Math.ceil(l/c)),Ze===void 0&&(Ze=K.length-1),Ze=Math.min(Ze+1,K.length-1),{scrollHeight:xt,start:ht,end:Ze,offset:Ye}},[q,F,ae,K,_,l]),Fe=Ke.scrollHeight,Ge=Ke.start,Te=Ke.end,Ee=Ke.offset;Se.current.start=Ge,Se.current.end=Te,i.useLayoutEffect(function(){var st=z.getRecord();if(st.size===1){var xt=Array.from(st.keys())[0],ht=st.get(xt),Ye=K[Ge];if(Ye&&ht===void 0){var Ze=B(Ye);if(Ze===xt){var ut=z.get(xt),Dt=ut-c;we(function(Kt){return Kt+Dt})}}}z.resetRecord()},[Fe]);var _e=i.useState({width:0,height:l}),Re=fe(_e,2),Pe=Re[0],ye=Re[1],$e=function(xt){ye({width:xt.offsetWidth,height:xt.offsetHeight})},Me=i.useRef(),Le=i.useRef(),tt=i.useMemo(function(){return EE(Pe.width,x)},[Pe.width,x]),yt=i.useMemo(function(){return EE(Pe.height,Fe)},[Pe.height,Fe]),We=Fe-l,nt=i.useRef(We);nt.current=We;function dt(st){var xt=st;return Number.isNaN(nt.current)||(xt=Math.min(xt,nt.current)),xt=Math.max(xt,0),xt}var at=ae<=0,pt=ae>=We,zt=oe<=0,Ot=oe>=x,ct=tj(at,pt,zt,Ot),$t=function(){return{x:V?-oe:oe,y:ae}},St=i.useRef($t()),et=Xt(function(st){if(E){var xt=se(se({},$t()),st);(St.current.x!==xt.x||St.current.y!==xt.y)&&(E(xt),St.current=xt)}});function Ve(st,xt){var ht=st;xt?(mo.flushSync(function(){le(ht)}),et()):we(ht)}function Ue(st){var xt=st.currentTarget.scrollTop;xt!==ae&&we(xt),w==null||w(st),et()}var mt=function(xt){var ht=xt,Ye=x?x-Pe.width:0;return ht=Math.max(ht,0),ht=Math.min(ht,Ye),ht},Tt=Xt(function(st,xt){xt?(mo.flushSync(function(){le(function(ht){var Ye=ht+(V?-st:st);return mt(Ye)})}),et()):we(function(ht){var Ye=ht+st;return Ye})}),Nt=PL(F,at,pt,zt,Ot,!!x,Tt),Vt=fe(Nt,2),ft=Vt[0],lt=Vt[1];AL(F,U,function(st,xt,ht,Ye){var Ze=Ye;return ct(st,xt,ht)?!1:!Ze||!Ze._virtualHandled?(Ze&&(Ze._virtualHandled=!0),ft({preventDefault:function(){},deltaX:st?xt:0,deltaY:st?0:xt}),!0):!1}),BL(q,U,function(st){we(function(xt){return xt+st})}),nn(function(){function st(ht){var Ye=at&&ht.detail<0,Ze=pt&&ht.detail>0;F&&!Ye&&!Ze&&ht.preventDefault()}var xt=U.current;return xt.addEventListener("wheel",ft,{passive:!1}),xt.addEventListener("DOMMouseScroll",lt,{passive:!0}),xt.addEventListener("MozMousePixelScroll",st,{passive:!1}),function(){xt.removeEventListener("wheel",ft),xt.removeEventListener("DOMMouseScroll",lt),xt.removeEventListener("MozMousePixelScroll",st)}},[F,at,pt]),nn(function(){if(x){var st=mt(oe);le(st),et({x:st})}},[Pe.width,x]);var At=function(){var xt,ht;(xt=Me.current)===null||xt===void 0||xt.delayHidden(),(ht=Le.current)===null||ht===void 0||ht.delayHidden()},Ut=LL(U,K,z,c,B,function(){return H(!0)},we,At);i.useImperativeHandle(t,function(){return{nativeElement:Q.current,getScrollInfo:$t,scrollTo:function(xt){function ht(Ye){return Ye&&Et(Ye)==="object"&&("left"in Ye||"top"in Ye)}ht(xt)?(xt.left!==void 0&&le(mt(xt.left)),Ut(xt.top)):Ut(xt)}}}),nn(function(){if(j){var st=K.slice(Ge,Te+1);j(st,K)}},[Ge,Te,K]);var rn=zL(K,B,z,c),Qt=I==null?void 0:I({start:Ge,end:Te,virtual:q,offsetX:oe,offsetY:Ee,rtl:V,getSize:rn}),pn=NL(K,Ge,Te,x,oe,D,g,pe),qt=null;l&&(qt=se(ne({},d?"height":"maxHeight",l),WL),F&&(qt.overflowY="hidden",x&&(qt.overflowX="hidden"),ge&&(qt.pointerEvents="none")));var un={};return V&&(un.dir="rtl"),i.createElement("div",be({ref:Q,style:se(se({},f),{},{position:"relative"}),className:G},un,P),i.createElement(va,{onResize:$e},i.createElement($,{className:"".concat(r,"-holder"),style:qt,ref:U,onScroll:Ue,onMouseEnter:At},i.createElement(ej,{prefixCls:r,height:Fe,offsetX:oe,offsetY:Ee,scrollWidth:x,onInnerResize:H,ref:J,innerProps:O,rtl:V,extra:Qt},pn))),q&&Fe>l&&i.createElement(wE,{ref:Me,prefixCls:r,scrollOffset:ae,scrollRange:Fe,rtl:V,onScroll:Ve,onStartMove:Oe,onStopMove:je,spinSize:yt,containerSize:Pe.height,style:R==null?void 0:R.verticalScrollBar,thumbStyle:R==null?void 0:R.verticalScrollBarThumb,showScrollBar:N}),q&&x>Pe.width&&i.createElement(wE,{ref:Le,prefixCls:r,scrollOffset:oe,scrollRange:x,rtl:V,onScroll:Ve,onStartMove:Oe,onStopMove:je,spinSize:tt,containerSize:Pe.width,horizontal:!0,style:R==null?void 0:R.horizontalScrollBar,thumbStyle:R==null?void 0:R.horizontalScrollBarThumb,showScrollBar:N}))}var Ig=i.forwardRef(KL);Ig.displayName="List";function UL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qL=["disabled","title","children","style","className"];function OE(e){return typeof e=="string"||typeof e=="number"}var GL=function(t,n){var r=WR(),a=r.prefixCls,l=r.id,c=r.open,u=r.multiple,d=r.mode,f=r.searchValue,v=r.toggleOpen,g=r.notFoundContent,p=r.onPopupScroll,b=i.useContext(B1),C=b.maxCount,x=b.flattenOptions,h=b.onActiveValue,$=b.defaultActiveFirstOption,w=b.onSelect,E=b.menuItemSelectedIcon,j=b.rawValues,O=b.fieldNames,I=b.virtual,R=b.direction,M=b.listHeight,N=b.listItemHeight,P=b.optionRender,B="".concat(a,"-item"),L=ys(function(){return x},[c,x],function(Z,X){return X[0]&&Z[1]!==X[1]}),k=i.useRef(null),D=i.useMemo(function(){return u&&Oy(C)&&(j==null?void 0:j.size)>=C},[u,C,j==null?void 0:j.size]),H=function(X){X.preventDefault()},z=function(X){var oe;(oe=k.current)===null||oe===void 0||oe.scrollTo(typeof X=="number"?{index:X}:X)},_=i.useCallback(function(Z){return d==="combobox"?!1:j.has(Z)},[d,Ne(j).toString(),j.size]),F=function(X){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=L.length,de=0;de<le;de+=1){var ce=(X+de*oe+le)%le,ge=L[ce]||{},he=ge.group,Oe=ge.data;if(!he&&!(Oe!=null&&Oe.disabled)&&(_(Oe.value)||!D))return ce}return-1},W=i.useState(function(){return F(0)}),q=fe(W,2),V=q[0],G=q[1],K=function(X){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;G(X);var le={source:oe?"keyboard":"mouse"},de=L[X];if(!de){h(null,-1,le);return}h(de.value,X,le)};i.useEffect(function(){K($!==!1?F(0):-1)},[L.length,f]);var U=i.useCallback(function(Z){return d==="combobox"?String(Z).toLowerCase()===f.toLowerCase():j.has(Z)},[d,f,Ne(j).toString(),j.size]);i.useEffect(function(){var Z=setTimeout(function(){if(!u&&c&&j.size===1){var oe=Array.from(j)[0],le=L.findIndex(function(de){var ce=de.data;return f?String(ce.value).startsWith(f):ce.value===oe});le!==-1&&(K(le),z(le))}});if(c){var X;(X=k.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[c,f]);var J=function(X){X!==void 0&&w(X,{selected:!j.has(X)}),u||v(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(X){var oe=X.which,le=X.ctrlKey;switch(oe){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var de=0;if(oe===ot.UP?de=-1:oe===ot.DOWN?de=1:UL()&&le&&(oe===ot.N?de=1:oe===ot.P&&(de=-1)),de!==0){var ce=F(V+de,de);z(ce),K(ce,!0)}break}case ot.TAB:case ot.ENTER:{var ge,he=L[V];he&&!(he!=null&&(ge=he.data)!==null&&ge!==void 0&&ge.disabled)&&!D?J(he.value):J(void 0),c&&X.preventDefault();break}case ot.ESC:v(!1),c&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){z(X)}}}),L.length===0)return i.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(B,"-empty"),onMouseDown:H},g);var Q=Object.keys(O).map(function(Z){return O[Z]}),te=function(X){return X.label};function Y(Z,X){var oe=Z.group;return{role:oe?"presentation":"option",id:"".concat(l,"_list_").concat(X)}}var ae=function(X){var oe=L[X];if(!oe)return null;var le=oe.data||{},de=le.value,ce=oe.group,ge=Nr(le,!0),he=te(oe);return oe?i.createElement("div",be({"aria-label":typeof he=="string"&&!ce?he:null},ge,{key:X},Y(oe,X),{"aria-selected":U(de)}),de):null},re={role:"listbox",id:"".concat(l,"_list")};return i.createElement(i.Fragment,null,I&&i.createElement("div",be({},re,{style:{height:0,width:0,overflow:"hidden"}}),ae(V-1),ae(V),ae(V+1)),i.createElement(Ig,{itemKey:"key",ref:k,data:L,height:M,itemHeight:N,fullHeight:!1,onMouseDown:H,onScroll:p,virtual:I,direction:R,innerProps:I?null:re},function(Z,X){var oe=Z.group,le=Z.groupOption,de=Z.data,ce=Z.label,ge=Z.value,he=de.key;if(oe){var Oe,je=(Oe=de.title)!==null&&Oe!==void 0?Oe:OE(ce)?ce.toString():void 0;return i.createElement("div",{className:ue(B,"".concat(B,"-group"),de.className),title:je},ce!==void 0?ce:he)}var pe=de.disabled,we=de.title;de.children;var Se=de.style,Ce=de.className,De=Lt(de,qL),Ae=En(De,Q),Qe=_(ge),Ke=pe||!Qe&&D,Fe="".concat(B,"-option"),Ge=ue(B,Fe,Ce,ne(ne(ne(ne({},"".concat(Fe,"-grouped"),le),"".concat(Fe,"-active"),V===X&&!Ke),"".concat(Fe,"-disabled"),Ke),"".concat(Fe,"-selected"),Qe)),Te=te(Z),Ee=!E||typeof E=="function"||Qe,_e=typeof Te=="number"?Te:Te||ge,Re=OE(_e)?_e.toString():void 0;return we!==void 0&&(Re=we),i.createElement("div",be({},Nr(Ae),I?{}:Y(Z,X),{"aria-selected":U(ge),className:Ge,title:Re,onMouseMove:function(){V===X||Ke||K(X)},onClick:function(){Ke||J(ge)},style:Se}),i.createElement("div",{className:"".concat(Fe,"-content")},typeof P=="function"?P(Z,{index:X}):_e),i.isValidElement(E)||Qe,Ee&&i.createElement(jg,{className:"".concat(B,"-option-state"),customizeIcon:E,customizeIconProps:{value:ge,disabled:Ke,isSelected:Qe}},Qe?"✓":null))}))},XL=i.forwardRef(GL);const YL=(function(e,t){var n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(function(){var l=n.current,c=l.values,u=l.options,d=e.map(function(g){if(g.label===void 0){var p;return se(se({},g),{},{label:(p=c.get(g.value))===null||p===void 0?void 0:p.label})}return g}),f=new Map,v=new Map;return d.forEach(function(g){f.set(g.value,g),v.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=f,n.current.options=v,d},[e,t]),a=i.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,a]});function _0(e,t){return YR(e).join("").toUpperCase().includes(t)}const QL=(function(e,t,n,r,a){return i.useMemo(function(){if(!n||r===!1)return e;var l=t.options,c=t.label,u=t.value,d=[],f=typeof r=="function",v=n.toUpperCase(),g=f?r:function(b,C){return a?_0(C[a],v):C[l]?_0(C[c!=="children"?c:"label"],v):_0(C[u],v)},p=f?function(b){return Ry(b)}:function(b){return b};return e.forEach(function(b){if(b[l]){var C=g(n,p(b));if(C)d.push(b);else{var x=b[l].filter(function(h){return g(n,p(h))});x.length&&d.push(se(se({},b),{},ne({},l,x)))}return}g(n,p(b))&&d.push(b)}),d},[e,r,a,n,t])});var RE=0,ZL=oa();function JL(){var e;return ZL?(e=RE,RE+=1):e="TEST_OR_SSR",e}function nj(e){var t=i.useState(),n=fe(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_select_".concat(JL()))},[]),e||r}var eH=["children","value"],tH=["children"];function nH(e){var t=e,n=t.key,r=t.props,a=r.children,l=r.value,c=Lt(r,eH);return se({key:n,value:l!==void 0?l:n,children:a},c)}function rj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Yr(e).map(function(n,r){if(!i.isValidElement(n)||!n.type)return null;var a=n,l=a.type.isSelectOptGroup,c=a.key,u=a.props,d=u.children,f=Lt(u,tH);return t||!l?nH(n):se(se({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},f),{},{options:rj(d)})}).filter(function(n){return n})}var rH=function(t,n,r,a,l){return i.useMemo(function(){var c=t,u=!t;u&&(c=rj(n));var d=new Map,f=new Map,v=function(b,C,x){x&&typeof x=="string"&&b.set(C[x],C)},g=function p(b){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=0;x<b.length;x+=1){var h=b[x];!h[r.options]||C?(d.set(h[r.value],h),v(f,h,r.label),v(f,h,a),v(f,h,l)):p(h[r.options],!0)}};return g(c),{options:c,valueOptions:d,labelOptions:f}},[t,n,r,a,l])};function jE(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var aH=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],oH=["inputValue"];function iH(e){return!e||Et(e)!=="object"}var lH=i.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,l=a===void 0?"rc-select":a,c=e.backfill,u=e.fieldNames,d=e.inputValue,f=e.searchValue,v=e.onSearch,g=e.autoClearSearchValue,p=g===void 0?!0:g,b=e.onSelect,C=e.onDeselect,x=e.dropdownMatchSelectWidth,h=x===void 0?!0:x,$=e.filterOption,w=e.filterSort,E=e.optionFilterProp,j=e.optionLabelProp,O=e.options,I=e.optionRender,R=e.children,M=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,P=e.virtual,B=e.direction,L=e.listHeight,k=L===void 0?200:L,D=e.listItemHeight,H=D===void 0?20:D,z=e.labelRender,_=e.value,F=e.defaultValue,W=e.labelInValue,q=e.onChange,V=e.maxCount,G=Lt(e,aH),K=nj(n),U=jy(r),J=!!(!O&&R),Q=i.useMemo(function(){return $===void 0&&r==="combobox"?!1:$},[$,r]),te=i.useMemo(function(){return ZR(u,J)},[JSON.stringify(u),J]),Y=yn("",{value:f!==void 0?f:d,postState:function(Ve){return Ve||""}}),ae=fe(Y,2),re=ae[0],Z=ae[1],X=rH(O,R,te,E,j),oe=X.valueOptions,le=X.labelOptions,de=X.options,ce=i.useCallback(function(et){var Ve=YR(et);return Ve.map(function(Ue){var mt,Tt,Nt,Vt,ft;if(iH(Ue))mt=Ue;else{var lt;Nt=Ue.key,Tt=Ue.label,mt=(lt=Ue.value)!==null&<!==void 0?lt:Nt}var At=oe.get(mt);if(At){var Ut;Tt===void 0&&(Tt=At==null?void 0:At[j||te.label]),Nt===void 0&&(Nt=(Ut=At==null?void 0:At.key)!==null&&Ut!==void 0?Ut:mt),Vt=At==null?void 0:At.disabled,ft=At==null?void 0:At.title}return{label:Tt,value:mt,key:Nt,disabled:Vt,title:ft}})},[te,j,oe]),ge=yn(F,{value:_}),he=fe(ge,2),Oe=he[0],je=he[1],pe=i.useMemo(function(){var et,Ve=U&&Oe===null?[]:Oe,Ue=ce(Ve);return r==="combobox"&&eL((et=Ue[0])===null||et===void 0?void 0:et.value)?[]:Ue},[Oe,ce,r,U]),we=YL(pe,oe),Se=fe(we,2),Ce=Se[0],De=Se[1],Ae=i.useMemo(function(){if(!r&&Ce.length===1){var et=Ce[0];if(et.value===null&&(et.label===null||et.label===void 0))return[]}return Ce.map(function(Ve){var Ue;return se(se({},Ve),{},{label:(Ue=typeof z=="function"?z(Ve):Ve.label)!==null&&Ue!==void 0?Ue:Ve.value})})},[r,Ce,z]),Qe=i.useMemo(function(){return new Set(Ce.map(function(et){return et.value}))},[Ce]);i.useEffect(function(){if(r==="combobox"){var et,Ve=(et=Ce[0])===null||et===void 0?void 0:et.value;Z(Jk(Ve)?String(Ve):"")}},[Ce]);var Ke=jE(function(et,Ve){var Ue=Ve??et;return ne(ne({},te.value,et),te.label,Ue)}),Fe=i.useMemo(function(){if(r!=="tags")return de;var et=Ne(de),Ve=function(mt){return oe.has(mt)};return Ne(Ce).sort(function(Ue,mt){return Ue.value<mt.value?-1:1}).forEach(function(Ue){var mt=Ue.value;Ve(mt)||et.push(Ke(mt,Ue.label))}),et},[Ke,de,oe,Ce,r]),Ge=QL(Fe,te,re,Q,E),Te=i.useMemo(function(){return r!=="tags"||!re||Ge.some(function(et){return et[E||"value"]===re})||Ge.some(function(et){return et[te.value]===re})?Ge:[Ke(re)].concat(Ne(Ge))},[Ke,E,r,Ge,re,te]),Ee=function et(Ve){var Ue=Ne(Ve).sort(function(mt,Tt){return w(mt,Tt,{searchValue:re})});return Ue.map(function(mt){return Array.isArray(mt.options)?se(se({},mt),{},{options:mt.options.length>0?et(mt.options):mt.options}):mt})},_e=i.useMemo(function(){return w?Ee(Te):Te},[Te,w,re]),Re=i.useMemo(function(){return wL(_e,{fieldNames:te,childrenAsData:J})},[_e,te,J]),Pe=function(Ve){var Ue=ce(Ve);if(je(Ue),q&&(Ue.length!==Ce.length||Ue.some(function(Nt,Vt){var ft;return((ft=Ce[Vt])===null||ft===void 0?void 0:ft.value)!==(Nt==null?void 0:Nt.value)}))){var mt=W?Ue:Ue.map(function(Nt){return Nt.value}),Tt=Ue.map(function(Nt){return Ry(De(Nt.value))});q(U?mt:mt[0],U?Tt:Tt[0])}},ye=i.useState(null),$e=fe(ye,2),Me=$e[0],Le=$e[1],tt=i.useState(0),yt=fe(tt,2),We=yt[0],nt=yt[1],dt=M!==void 0?M:r!=="combobox",at=i.useCallback(function(et,Ve){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mt=Ue.source,Tt=mt===void 0?"keyboard":mt;nt(Ve),c&&r==="combobox"&&et!==null&&Tt==="keyboard"&&Le(String(et))},[c,r]),pt=function(Ve,Ue,mt){var Tt=function(){var qt,un=De(Ve);return[W?{label:un==null?void 0:un[te.label],value:Ve,key:(qt=un==null?void 0:un.key)!==null&&qt!==void 0?qt:Ve}:Ve,Ry(un)]};if(Ue&&b){var Nt=Tt(),Vt=fe(Nt,2),ft=Vt[0],lt=Vt[1];b(ft,lt)}else if(!Ue&&C&&mt!=="clear"){var At=Tt(),Ut=fe(At,2),rn=Ut[0],Qt=Ut[1];C(rn,Qt)}},zt=jE(function(et,Ve){var Ue,mt=U?Ve.selected:!0;mt?Ue=U?[].concat(Ne(Ce),[et]):[et]:Ue=Ce.filter(function(Tt){return Tt.value!==et}),Pe(Ue),pt(et,mt),r==="combobox"?Le(""):(!jy||p)&&(Z(""),Le(""))}),Ot=function(Ve,Ue){Pe(Ve);var mt=Ue.type,Tt=Ue.values;(mt==="remove"||mt==="clear")&&Tt.forEach(function(Nt){pt(Nt.value,!1,mt)})},ct=function(Ve,Ue){if(Z(Ve),Le(null),Ue.source==="submit"){var mt=(Ve||"").trim();if(mt){var Tt=Array.from(new Set([].concat(Ne(Qe),[mt])));Pe(Tt),pt(mt,!0),Z("")}return}Ue.source!=="blur"&&(r==="combobox"&&Pe(Ve),v==null||v(Ve))},$t=function(Ve){var Ue=Ve;r!=="tags"&&(Ue=Ve.map(function(Tt){var Nt=le.get(Tt);return Nt==null?void 0:Nt.value}).filter(function(Tt){return Tt!==void 0}));var mt=Array.from(new Set([].concat(Ne(Qe),Ne(Ue))));Pe(mt),mt.forEach(function(Tt){pt(Tt,!0)})},St=i.useMemo(function(){var et=P!==!1&&h!==!1;return se(se({},X),{},{flattenOptions:Re,onActiveValue:at,defaultActiveFirstOption:dt,onSelect:zt,menuItemSelectedIcon:N,rawValues:Qe,fieldNames:te,virtual:et,direction:B,listHeight:k,listItemHeight:H,childrenAsData:J,maxCount:V,optionRender:I})},[V,X,Re,at,dt,zt,N,Qe,te,P,h,B,k,H,J,I]);return i.createElement(B1.Provider,{value:St},i.createElement(JR,be({},G,{id:K,prefixCls:l,ref:t,omitDomProps:oH,mode:r,displayValues:Ae,onDisplayValuesChange:Ot,direction:B,searchValue:re,onSearch:ct,autoClearSearchValue:p,onSearchSplit:$t,dropdownMatchSelectWidth:h,OptionList:XL,emptyOptions:!Re.length,activeValue:Me,activeDescendantId:"".concat(K,"_list_").concat(We)})))}),H1=lH;H1.Option=L1;H1.OptGroup=k1;function $i(e,t,n){return ue({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const $l=(e,t)=>t||e,sH=()=>{const[,e]=la(),[t]=za("Empty"),r=new bn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.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"}),i.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)"}),i.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"}),i.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"})),i.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"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},cH=()=>{const[,e]=la(),[t]=za("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:l}=e,{borderColor:c,shadowColor:u,contentColor:d}=i.useMemo(()=>({borderColor:new bn(n).onBackground(l).toHexString(),shadowColor:new bn(r).onBackground(l).toHexString(),contentColor:new bn(a).onBackground(l).toHexString()}),[n,r,a,l]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:c},i.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"}),i.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:d}))))},uH=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:l,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:c,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},dH=sn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=tn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return uH(a)});var fH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aj=i.createElement(sH,null),oj=i.createElement(cH,null),Gn=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:l,description:c,children:u,imageStyle:d,style:f,classNames:v,styles:g}=e,p=fH(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:C,className:x,style:h,classNames:$,styles:w,image:E}=vr("empty"),j=b("empty",a),[O,I,R]=dH(j),[M]=za("Empty"),N=typeof c<"u"?c:M==null?void 0:M.description,P=typeof N=="string"?N:"empty",B=(t=l??E)!==null&&t!==void 0?t:aj;let L=null;return typeof B=="string"?L=i.createElement("img",{draggable:!1,alt:P,src:B}):L=B,O(i.createElement("div",Object.assign({className:ue(I,R,j,x,{[`${j}-normal`]:B===oj,[`${j}-rtl`]:C==="rtl"},n,r,$.root,v==null?void 0:v.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),h),g==null?void 0:g.root),f)},p),i.createElement("div",{className:ue(`${j}-image`,$.image,v==null?void 0:v.image),style:Object.assign(Object.assign(Object.assign({},d),w.image),g==null?void 0:g.image)},L),N&&i.createElement("div",{className:ue(`${j}-description`,$.description,v==null?void 0:v.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},N),u&&i.createElement("div",{className:ue(`${j}-footer`,$.footer,v==null?void 0:v.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};Gn.PRESENTED_IMAGE_DEFAULT=aj;Gn.PRESENTED_IMAGE_SIMPLE=oj;const vf=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(Rt),r=n("empty");switch(t){case"Table":case"List":return ve.createElement(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ve.createElement(Gn,null)}},wl=(e,t,n)=>{var r,a;const{variant:l,[e]:c}=i.useContext(Rt),u=i.useContext(SR),d=c==null?void 0:c.variant;let f;typeof t<"u"?f=t:n===!1?f="borderless":f=(a=(r=u??d)!==null&&r!==void 0?r:l)!==null&&a!==void 0?a:"outlined";const v=Mz.includes(f);return[f,v]},mH=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function ij(e,t){return e||mH(t)}const IE=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},vH=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},dn(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,[`
|
|
235
|
-
${a}${u}bottomLeft,
|
|
236
|
-
${l}${u}bottomLeft
|
|
237
|
-
`]:{animationName:gg},[`
|
|
238
|
-
${a}${u}topLeft,
|
|
239
|
-
${l}${u}topLeft,
|
|
240
|
-
${a}${u}topRight,
|
|
241
|
-
${l}${u}topRight
|
|
242
|
-
`]:{animationName:hg},[`${c}${u}bottomLeft`]:{animationName:pg},[`
|
|
243
|
-
${c}${u}topLeft,
|
|
244
|
-
${c}${u}topRight
|
|
245
|
-
`]:{animationName:bg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},IE(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ga),"&-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":Object.assign(Object.assign({},IE(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Xo(e,"slide-up"),Xo(e,"slide-down"),Bc(e,"move-up"),Bc(e,"move-down")]},lj=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,l=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(l).sub(a).equal(),0);return{basePadding:l,containerPadding:c,itemHeight:ie(t),itemLineHeight:ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},gH=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},sj=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:l,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:u,colorIcon:d,colorIconHover:f,INTERNAL_FIXED_ITEM_MARGIN:v}=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:v,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(v).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Cs()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},pH=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=gH(e),u=t?`${n}-${t}`:"",d=lj(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},sj(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ie(r)} 0`,lineHeight:ie(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:ie(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ie(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${a}-item + ${a}-item,
|
|
246
|
-
${n}-prefix + ${n}-selection-wrap
|
|
247
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:ie(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function A0(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
248
|
-
&${n}-show-arrow ${n}-selector,
|
|
249
|
-
&${n}-allow-clear ${n}-selector
|
|
250
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[pH(e,t),a]}const hH=e=>{const{componentCls:t}=e,n=tn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=tn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[A0(e),A0(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},A0(r,"lg")]};function B0(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},dn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ie(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
251
|
-
${n}-selection-item,
|
|
252
|
-
${n}-selection-placeholder
|
|
253
|
-
`]:{display:"block",padding:0,lineHeight:ie(l),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
254
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
255
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
256
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
257
|
-
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ie(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:ie(l)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ie(r)}`,"&:after":{display:"none"}}}}}}}function bH(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[B0(e),B0(tn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ie(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
258
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
259
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
260
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},B0(tn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const yH=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:l,controlHeightLG:c,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:f,colorText:v,fontWeightStrong:g,controlItemBgActive:p,controlItemBgHover:b,colorBgContainer:C,colorFillSecondary:x,colorBgContainerDisabled:h,colorTextDisabled:$,colorPrimaryHover:w,colorPrimary:E,controlOutline:j}=e,O=u*2,I=r*2,R=Math.min(a-O,a-I),M=Math.min(l-O,l-I),N=Math.min(c-O,c-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:f+50,optionSelectedColor:v,optionSelectedFontWeight:g,optionSelectedBg:p,optionActiveBg:b,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:C,clearBg:C,singleItemHeightLG:c,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:R,multipleItemHeightSM:M,multipleItemHeightLG:N,multipleSelectorBgDisabled:h,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:E,activeOutlineColor:j,selectAffixPadding:u}},cj=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ie(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},NE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cj(e,t))}),CH=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},cj(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),NE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),NE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),uj=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ME=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},uj(e,t))}),SH=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},uj(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),ME(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ME(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),xH=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),dj=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},TE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dj(e,t))}),$H=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},dj(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),TE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),TE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),wH=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},CH(e)),SH(e)),xH(e)),$H(e))}),EH=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},OH=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},RH=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},EH(e)),OH(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ga),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ga),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Cs()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${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)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},jH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},RH(e),bH(e),hH(e),vH(e),{[`${t}-rtl`]:{direction:"rtl"}},$s(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},fj=sn("Select",(e,{rootPrefixCls:t})=>{const n=tn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[jH(n),wH(n)]},yH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var IH={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"},NH=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:IH}))},ws=i.forwardRef(NH),MH={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"},TH=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:MH}))},gf=i.forwardRef(TH),PH={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"},zH=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:PH}))},Es=i.forwardRef(zH);function F1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:l,hasFeedback:c,prefixCls:u,showSuffixIcon:d,feedbackIcon:f,showArrow:v,componentName:g}){const p=t??i.createElement(Sl,null),b=$=>e===null&&!c&&!v?null:i.createElement(i.Fragment,null,d!==!1&&$,c&&f);let C=null;if(e!==void 0)C=b(e);else if(a)C=b(i.createElement(No,{spin:!0}));else{const $=`${u}-suffix`;C=({open:w,showSearch:E})=>b(w&&E?i.createElement(Es,{className:$}):i.createElement(gf,{className:$}))}let x=null;n!==void 0?x=n:l?x=i.createElement(ws,null):x=null;let h=null;return r!==void 0?h=r:h=i.createElement(zo,null),{clearIcon:p,suffixIcon:C,itemIcon:x,removeIcon:h}}function mj(e){return ve.useMemo(()=>{if(e)return(...t)=>ve.createElement(Qo,{space:!0},e.apply(void 0,t))},[e])}function vj(e,t){return t!==void 0?t:e!==null}var DH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gj="SECRET_COMBOBOX_MODE_DO_NOT_USE",_H=(e,t)=>{var n,r,a,l,c;const{prefixCls:u,bordered:d,className:f,rootClassName:v,getPopupContainer:g,popupClassName:p,dropdownClassName:b,listHeight:C=256,placement:x,listItemHeight:h,size:$,disabled:w,notFoundContent:E,status:j,builtinPlacements:O,dropdownMatchSelectWidth:I,popupMatchSelectWidth:R,direction:M,style:N,allowClear:P,variant:B,dropdownStyle:L,transitionName:k,tagRender:D,maxCount:H,prefix:z,dropdownRender:_,popupRender:F,onDropdownVisibleChange:W,onOpenChange:q,styles:V,classNames:G}=e,K=DH(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:U,getPrefixCls:J,renderEmpty:Q,direction:te,virtual:Y,popupMatchSelectWidth:ae,popupOverflow:re}=i.useContext(Rt),{showSearch:Z,style:X,styles:oe,className:le,classNames:de}=vr("select"),[,ce]=la(),ge=h??(ce==null?void 0:ce.controlHeight),he=J("select",u),Oe=J(),je=M??te,{compactSize:pe,compactItemClassnames:we}=_o(he,je),[Se,Ce]=wl("select",B,d),De=dr(he),[Ae,Qe,Ke]=fj(he,De),Fe=i.useMemo(()=>{const{mode:mt}=e;if(mt!=="combobox")return mt===gj?"combobox":mt},[e.mode]),Ge=Fe==="multiple"||Fe==="tags",Te=vj(e.suffixIcon,e.showArrow),Ee=(n=R??I)!==null&&n!==void 0?n:ae,_e=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((a=oe.popup)===null||a===void 0?void 0:a.root)||L,Re=mj(F||_),Pe=q||W,{status:ye,hasFeedback:$e,isFormItemInput:Me,feedbackIcon:Le}=i.useContext(Kr),tt=$l(ye,j);let yt;E!==void 0?yt=E:Fe==="combobox"?yt=null:yt=(Q==null?void 0:Q("Select"))||i.createElement(vf,{componentName:"Select"});const{suffixIcon:We,itemIcon:nt,removeIcon:dt,clearIcon:at}=F1(Object.assign(Object.assign({},K),{multiple:Ge,hasFeedback:$e,feedbackIcon:Le,showSuffixIcon:Te,prefixCls:he,componentName:"Select"})),pt=P===!0?{clearIcon:at}:P,zt=En(K,["suffixIcon","itemIcon"]),Ot=ue(((l=G==null?void 0:G.popup)===null||l===void 0?void 0:l.root)||((c=de==null?void 0:de.popup)===null||c===void 0?void 0:c.root)||p||b,{[`${he}-dropdown-${je}`]:je==="rtl"},v,de.root,G==null?void 0:G.root,Ke,De,Qe),ct=Tr(mt=>{var Tt;return(Tt=$??pe)!==null&&Tt!==void 0?Tt:mt}),$t=i.useContext(Wr),St=w??$t,et=ue({[`${he}-lg`]:ct==="large",[`${he}-sm`]:ct==="small",[`${he}-rtl`]:je==="rtl",[`${he}-${Se}`]:Ce,[`${he}-in-form-item`]:Me},$i(he,tt,$e),we,le,f,de.root,G==null?void 0:G.root,v,Ke,De,Qe),Ve=i.useMemo(()=>x!==void 0?x:je==="rtl"?"bottomRight":"bottomLeft",[x,je]),[Ue]=Do("SelectLike",_e==null?void 0:_e.zIndex);return Ae(i.createElement(H1,Object.assign({ref:t,virtual:Y,showSearch:Z},zt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},oe.root),V==null?void 0:V.root),X),N),dropdownMatchSelectWidth:Ee,transitionName:Go(Oe,"slide-up",k),builtinPlacements:ij(O,re),listHeight:C,listItemHeight:ge,mode:Fe,prefixCls:he,placement:Ve,direction:je,prefix:z,suffixIcon:We,menuItemSelectedIcon:nt,removeIcon:dt,allowClear:pt,notFoundContent:yt,className:et,getPopupContainer:g||U,dropdownClassName:Ot,disabled:St,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Ue}),maxCount:Ge?H:void 0,tagRender:Ge?D:void 0,dropdownRender:Re,onDropdownVisibleChange:Pe})))},ir=i.forwardRef(_H),AH=Jc(ir,"dropdownAlign");ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=gj;ir.Option=L1;ir.OptGroup=k1;ir._InternalPanelDoNotUseOrYouWillBeFired=AH;const{Option:PE}=ir;function zE(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const BH=(e,t)=>{var n,r;const{prefixCls:a,className:l,popupClassName:c,dropdownClassName:u,children:d,dataSource:f,dropdownStyle:v,dropdownRender:g,popupRender:p,onDropdownVisibleChange:b,onOpenChange:C,styles:x,classNames:h}=e,$=Yr(d),w=((n=x==null?void 0:x.popup)===null||n===void 0?void 0:n.root)||v,E=((r=h==null?void 0:h.popup)===null||r===void 0?void 0:r.root)||c||u,j=p||g,O=C||b;let I;$.length===1&&i.isValidElement($[0])&&!zE($[0])&&([I]=$);const R=I?()=>I:void 0;let M;$.length&&zE($[0])?M=d:M=f?f.map(L=>{if(i.isValidElement(L))return L;switch(typeof L){case"string":return i.createElement(PE,{key:L,value:L},L);case"object":{const{value:k}=L;return i.createElement(PE,{key:k,value:k},L.text)}default:return}}):[];const{getPrefixCls:N}=i.useContext(Rt),P=N("select",a),[B]=Do("SelectLike",w==null?void 0:w.zIndex);return i.createElement(ir,Object.assign({ref:t,suffixIcon:null},En(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:P,classNames:{popup:{root:E},root:h==null?void 0:h.root},styles:{popup:{root:Object.assign(Object.assign({},w),{zIndex:B})},root:x==null?void 0:x.root},className:ue(`${P}-auto-complete`,l),mode:ir.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:j,onOpenChange:O,getInputElement:R}),M)},pj=i.forwardRef(BH),{Option:kH}=ir,LH=Jc(pj,"dropdownAlign",e=>En(e,["visible"])),Lv=pj;Lv.Option=kH;Lv._InternalPanelDoNotUseOrYouWillBeFired=LH;const hj=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},bj=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},ms=["xxl","xl","lg","md","sm","xs"],HH=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)`}),FH=e=>{const t=e,n=[].concat(ms).reverse();return n.forEach((r,a)=>{const l=r.toUpperCase(),c=`screen${l}Min`,u=`screen${l}`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`);if(a<n.length-1){const d=`screen${l}Max`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);const v=`screen${n[a+1].toUpperCase()}Min`;if(!(t[d]<=t[v]))throw new Error(`${d}<=${v} fails : !(${t[d]}<=${t[v]})`)}}),e},VH=()=>{const[,e]=la(),t=HH(FH(e));return ve.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return a=l,n.forEach(c=>c(a)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(a),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,c])=>{const u=({matches:f})=>{this.dispatch(Object.assign(Object.assign({},a),{[l]:f}))},d=window.matchMedia(c);hj(d,u),this.matchHandlers[c]={mql:d,listener:u},u(d)})},unregister(){Object.values(t).forEach(l=>{const c=this.matchHandlers[l];bj(c==null?void 0:c.mql,c==null?void 0:c.listener)}),n.clear()}}},[t])};function Ng(e=!0,t={}){const n=i.useRef(t),[,r]=x1(),a=VH();return nn(()=>{const l=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(l)},[]),n.current}const kc=e=>e?typeof e=="function"?e():e:null;function V1(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,u=e.style;return i.createElement("div",{className:ue("".concat(n,"-content"),c),style:u},i.createElement("div",{className:ue("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var mc={shiftX:64,adjustY:1},vc={adjustX:1,shiftY:!0},lo=[0,0],WH={left:{points:["cr","cl"],overflow:vc,offset:[-4,0],targetOffset:lo},right:{points:["cl","cr"],overflow:vc,offset:[4,0],targetOffset:lo},top:{points:["bc","tc"],overflow:mc,offset:[0,-4],targetOffset:lo},bottom:{points:["tc","bc"],overflow:mc,offset:[0,4],targetOffset:lo},topLeft:{points:["bl","tl"],overflow:mc,offset:[0,-4],targetOffset:lo},leftTop:{points:["tr","tl"],overflow:vc,offset:[-4,0],targetOffset:lo},topRight:{points:["br","tr"],overflow:mc,offset:[0,-4],targetOffset:lo},rightTop:{points:["tl","tr"],overflow:vc,offset:[4,0],targetOffset:lo},bottomRight:{points:["tr","br"],overflow:mc,offset:[0,4],targetOffset:lo},rightBottom:{points:["bl","br"],overflow:vc,offset:[4,0],targetOffset:lo},bottomLeft:{points:["tl","bl"],overflow:mc,offset:[0,4],targetOffset:lo},leftBottom:{points:["br","bl"],overflow:vc,offset:[-4,0],targetOffset:lo}},KH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],UH=function(t,n){var r=t.overlayClassName,a=t.trigger,l=a===void 0?["hover"]:a,c=t.mouseEnterDelay,u=c===void 0?0:c,d=t.mouseLeaveDelay,f=d===void 0?.1:d,v=t.overlayStyle,g=t.prefixCls,p=g===void 0?"rc-tooltip":g,b=t.children,C=t.onVisibleChange,x=t.afterVisibleChange,h=t.transitionName,$=t.animation,w=t.motion,E=t.placement,j=E===void 0?"right":E,O=t.align,I=O===void 0?{}:O,R=t.destroyTooltipOnHide,M=R===void 0?!1:R,N=t.defaultVisible,P=t.getTooltipContainer,B=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,k=t.id,D=t.showArrow,H=D===void 0?!0:D,z=t.classNames,_=t.styles,F=Lt(t,KH),W=cf(k),q=i.useRef(null);i.useImperativeHandle(n,function(){return q.current});var V=se({},F);"visible"in t&&(V.popupVisible=t.visible);var G=function(){return i.createElement(V1,{key:"content",prefixCls:p,id:W,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:se(se({},B),_==null?void 0:_.body)},L)},K=function(){var J=i.Children.only(b),Q=(J==null?void 0:J.props)||{},te=se(se({},Q),{},{"aria-describedby":L?W:null});return i.cloneElement(b,te)};return i.createElement(mf,be({popupClassName:ue(r,z==null?void 0:z.root),prefixCls:p,popup:G,action:l,builtinPlacements:WH,popupPlacement:j,ref:q,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:C,afterPopupVisibleChange:x,popupTransitionName:h,popupAnimation:$,popupMotion:w,defaultPopupVisible:N,autoDestroy:M,mouseLeaveDelay:f,popupStyle:se(se({},v),_==null?void 0:_.root),mouseEnterDelay:u,arrow:H},V),K())};const qH=i.forwardRef(UH);function Mg(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,l=0,c=a,u=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),f=a-n*(1/Math.sqrt(2)),v=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*a-f,p=v,b=2*a-u,C=d,x=2*a-l,h=c,$=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),E=`polygon(${w}px 100%, 50% ${w}px, ${2*a-w}px 100%, ${w}px 100%)`,j=`path('M ${l} ${c} A ${r} ${r} 0 0 0 ${u} ${d} L ${f} ${v} A ${n} ${n} 0 0 1 ${g} ${p} L ${b} ${C} A ${r} ${r} 0 0 0 ${x} ${h} Z')`;return{arrowShadowWidth:$,arrowPath:j,arrowPolygon:E}}const yj=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:u,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Cj=8;function Tg(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Cj:r}}function Hm(e,t){return e?t:{}}function W1(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yj(e,t,a)),{"&:before":{background:t}})]},Hm(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,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% - ${ie(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Hm(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,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% - ${ie(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Hm(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},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:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Hm(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},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:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function GH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const c=Object.assign(Object.assign({},l),a);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const DE={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"]}},XH={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"]}},YH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Sj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:l,visibleFirst:c}=e,u=t/2,d={},f=Tg({contentRadius:l,limitVerticalRadius:!0});return Object.keys(DE).forEach(v=>{const g=r&&XH[v]||DE[v],p=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[v]=p,YH.has(v)&&(p.autoArrow=!1),v){case"top":case"topLeft":case"topRight":p.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=u+a;break}if(r)switch(v){case"topLeft":case"bottomLeft":p.offset[0]=-f.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":p.offset[0]=f.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":p.offset[1]=-f.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":p.offset[1]=f.arrowOffsetHorizontal*2-u;break}p.overflow=GH(v,f,t,n),c&&(p.htmlRegion="visibleFirst")}),d}const QH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:u,controlHeight:d,boxShadowSecondary:f,paddingSM:v,paddingXS:g,arrowOffsetHorizontal:p,sizePopupArrow:b}=e,C=t(c).add(b).add(p).equal(),x=t(c).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":l,[`${n}-inner`]:{minWidth:x,minHeight:d,padding:`${ie(e.calc(v).div(2).equal())} ${ie(g)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:C},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,Cj)}},[`${n}-content`]:{position:"relative"}}),cg(e,(h,{darkColor:$})=>({[`&${n}-${h}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},W1(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ZH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Tg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Mg(tn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),xj=(e,t=!0)=>sn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:l,colorBgSpotlight:c}=r,u=tn(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:a,tooltipBg:c});return[QH(u),lf(r,"zoom-big-fast")]},ZH,{resetStyle:!1,injectStyle:t})(e),JH=vl.map(e=>`${e}-inverse`),eF=["success","processing","error","default","warning"];function Pg(e,t=!0){return t?[].concat(Ne(JH),Ne(vl)).includes(e):vl.includes(e)}function tF(e){return eF.includes(e)}function $j(e,t){const n=Pg(t),r=ue({[`${e}-${t}`]:t&&n}),a={},l={},c=I9(t).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=d,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:l}}const nF=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("tooltip",t),[f,v,g]=xj(d),p=$j(d,l),b=p.arrowStyle,C=Object.assign(Object.assign({},c),p.overlayStyle),x=ue(v,g,d,`${d}-pure`,`${d}-placement-${r}`,n,p.className);return f(i.createElement("div",{className:x,style:b},i.createElement("div",{className:`${d}-arrow`}),i.createElement(V1,Object.assign({},e,{className:v,prefixCls:d,overlayInnerStyle:C}),a)))};var rF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const aF=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:l,getTooltipContainer:c,color:u,overlayInnerStyle:d,children:f,afterOpenChange:v,afterVisibleChange:g,destroyTooltipOnHide:p,destroyOnHidden:b,arrow:C=!0,title:x,overlay:h,builtinPlacements:$,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0,motion:j,getPopupContainer:O,placement:I="top",mouseEnterDelay:R=.1,mouseLeaveDelay:M=.1,overlayStyle:N,rootClassName:P,overlayClassName:B,styles:L,classNames:k}=e,D=rF(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),H=!!C,[,z]=la(),{getPopupContainer:_,getPrefixCls:F,direction:W,className:q,style:V,classNames:G,styles:K}=vr("tooltip"),U=Jo(),J=i.useRef(null),Q=()=>{var Te;(Te=J.current)===null||Te===void 0||Te.forceAlign()};i.useImperativeHandle(t,()=>{var Te,Ee;return{forceAlign:Q,forcePopupAlign:()=>{U.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(Te=J.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Ee=J.current)===null||Ee===void 0?void 0:Ee.popupElement}});const[te,Y]=yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ae=!x&&!h&&x!==0,re=Te=>{var Ee,_e;Y(ae?!1:Te),ae||((Ee=e.onOpenChange)===null||Ee===void 0||Ee.call(e,Te),(_e=e.onVisibleChange)===null||_e===void 0||_e.call(e,Te))},Z=i.useMemo(()=>{var Te,Ee;let _e=w;return typeof C=="object"&&(_e=(Ee=(Te=C.pointAtCenter)!==null&&Te!==void 0?Te:C.arrowPointAtCenter)!==null&&Ee!==void 0?Ee:w),$||Sj({arrowPointAtCenter:_e,autoAdjustOverflow:E,arrowWidth:H?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[w,C,$,z]),X=i.useMemo(()=>x===0?x:h||x||"",[h,x]),oe=i.createElement(Qo,{space:!0},typeof X=="function"?X():X),le=F("tooltip",a),de=F(),ce=e["data-popover-inject"];let ge=te;!("open"in e)&&!("visible"in e)&&ae&&(ge=!1);const he=i.isValidElement(f)&&!P6(f)?f:i.createElement("span",null,f),Oe=he.props,je=!Oe.className||typeof Oe.className=="string"?ue(Oe.className,l||`${le}-open`):Oe.className,[pe,we,Se]=xj(le,!ce),Ce=$j(le,u),De=Ce.arrowStyle,Ae=ue(B,{[`${le}-rtl`]:W==="rtl"},Ce.className,P,we,Se,q,G.root,k==null?void 0:k.root),Qe=ue(G.body,k==null?void 0:k.body),[Ke,Fe]=Do("Tooltip",D.zIndex),Ge=i.createElement(qH,Object.assign({},D,{zIndex:Ke,showArrow:H,placement:I,mouseEnterDelay:R,mouseLeaveDelay:M,prefixCls:le,classNames:{root:Ae,body:Qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De),K.root),V),N),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),d),L==null?void 0:L.body),Ce.overlayStyle)},getTooltipContainer:O||c||_,ref:J,builtinPlacements:Z,overlay:oe,visible:ge,onVisibleChange:re,afterVisibleChange:v??g,arrowContent:i.createElement("span",{className:`${le}-arrow-content`}),motion:{motionName:Go(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:b??!!p}),ge?Or(he,{className:je}):he);return pe(i.createElement(dg.Provider,{value:Fe},Ge))}),An=aF;An._InternalPanelDoNotUseOrYouWillBeFired=nF;const oF=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:l,boxShadowSecondary:c,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:v,colorBgElevated:g,popoverBg:p,titleBorderBottom:b,innerContentPadding:C,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},dn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,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":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:v,color:u,fontWeight:a,borderBottom:b,padding:x},[`${t}-inner-content`]:{color:n,padding:C}})},W1(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},iF=e=>{const{componentCls:t}=e;return{[t]:vl.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},lF=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:l,zIndexPopupBase:c,borderRadiusLG:u,marginXS:d,lineType:f,colorSplit:v,paddingSM:g}=e,p=n-r,b=p/2,C=p/2-t,x=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:c+30},Mg(e)),Tg({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${b}px ${x}px ${C}px`:0,titleBorderBottom:l?`${t}px ${f} ${v}`:"none",innerContentPadding:l?`${g}px ${x}px`:0})},wj=sn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=tn(e,{popoverBg:t,popoverColor:n});return[oF(r),iF(r),lf(r,"zoom-big")]},lF,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var sF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ej=({title:e,content:t,prefixCls:n})=>!e&&!t?null:i.createElement(i.Fragment,null,e&&i.createElement("div",{className:`${n}-title`},e),t&&i.createElement("div",{className:`${n}-inner-content`},t)),cF=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:u,children:d}=e,f=kc(c),v=kc(u),g=ue(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return i.createElement("div",{className:g,style:a},i.createElement("div",{className:`${n}-arrow`}),i.createElement(V1,Object.assign({},e,{className:t,prefixCls:n}),d||i.createElement(Ej,{prefixCls:n,title:f,content:v})))},Oj=e=>{const{prefixCls:t,className:n}=e,r=sF(e,["prefixCls","className"]),{getPrefixCls:a}=i.useContext(Rt),l=a("popover",t),[c,u,d]=wj(l);return c(i.createElement(cF,Object.assign({},r,{prefixCls:l,hashId:u,className:ue(n,d)})))};var uF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const dF=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,title:l,content:c,overlayClassName:u,placement:d="top",trigger:f="hover",children:v,mouseEnterDelay:g=.1,mouseLeaveDelay:p=.1,onOpenChange:b,overlayStyle:C={},styles:x,classNames:h}=e,$=uF(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:E,style:j,classNames:O,styles:I}=vr("popover"),R=w("popover",a),[M,N,P]=wj(R),B=w(),L=ue(u,N,P,E,O.root,h==null?void 0:h.root),k=ue(O.body,h==null?void 0:h.body),[D,H]=yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=(V,G)=>{H(V,!0),b==null||b(V,G)},_=V=>{V.keyCode===ot.ESC&&z(!1,V)},F=V=>{z(V)},W=kc(l),q=kc(c);return M(i.createElement(An,Object.assign({placement:d,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:p},$,{prefixCls:R,classNames:{root:L,body:k},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),j),C),x==null?void 0:x.root),body:Object.assign(Object.assign({},I.body),x==null?void 0:x.body)},ref:t,open:D,onOpenChange:F,overlay:W||q?i.createElement(Ej,{prefixCls:R,title:W,content:q}):null,transitionName:Go(B,"zoom-big",$.transitionName),"data-popover-inject":!0}),Or(v,{onKeyDown:V=>{var G,K;i.isValidElement(v)&&((K=v==null?void 0:(G=v.props).onKeyDown)===null||K===void 0||K.call(G,V)),_(V)}})))}),K1=dF;K1._InternalPanelDoNotUseOrYouWillBeFired=Oj;var fF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},mF=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:fF}))},vF=i.forwardRef(mF);const gF=new Jt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),pF=new Jt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),hF=new Jt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),bF=new Jt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),yF=new Jt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),CF=new Jt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),SF=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:l,textFontSizeSM:c,statusSize:u,dotSize:d,textFontWeight:f,indicatorHeight:v,indicatorHeightSM:g,marginXS:p,calc:b}=e,C=`${r}-scroll-number`,x=cg(e,(h,{darkColor:$})=>({[`&${t} ${t}-color-${h}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:v,height:v,color:e.badgeTextColor,fontWeight:f,fontSize:l,lineHeight:ie(v),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(v).div(2).equal(),boxShadow:`0 0 0 ${ie(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:g,height:g,fontSize:c,lineHeight:ie(g),borderRadius:b(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ie(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ie(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:CF,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:gF,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:p,color:e.colorText,fontSize:e.fontSize}}}),x),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:pF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:hF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:yF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:v,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:v,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Rj=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,l=t,c=n,u=e.colorTextLightSolid,d=e.colorError,f=e.colorErrorHover;return tn(e,{badgeFontHeight:l,badgeShadowSize:c,badgeTextColor:u,badgeColor:d,badgeColorHover:f,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},jj=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},xF=sn("Badge",e=>{const t=Rj(e);return SF(t)},jj),$F=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:l}=e,c=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,d=cg(e,(f,{darkColor:v})=>({[`&${c}-color-${f}`]:{background:v,color:v}}));return{[u]:{position:"relative"},[c]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"absolute",top:r,padding:`0 ${ie(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ie(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${ie(l(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),d),{[`&${c}-placement-end`]:{insetInlineEnd:l(a).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:l(a).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},wF=sn(["Badge","Ribbon"],e=>{const t=Rj(e);return $F(t)},jj),EF=e=>{const{className:t,prefixCls:n,style:r,color:a,children:l,text:c,placement:u="end",rootClassName:d}=e,{getPrefixCls:f,direction:v}=i.useContext(Rt),g=f("ribbon",n),p=`${g}-wrapper`,[b,C,x]=wF(g,p),h=Pg(a,!1),$=ue(g,`${g}-placement-${u}`,{[`${g}-rtl`]:v==="rtl",[`${g}-color-${a}`]:h},t),w={},E={};return a&&!h&&(w.background=a,E.color=a),b(i.createElement("div",{className:ue(p,d,C,x)},l,i.createElement("div",{className:ue($,C),style:Object.assign(Object.assign({},w),r)},i.createElement("span",{className:`${g}-text`},c),i.createElement("div",{className:`${g}-corner`,style:E}))))},_E=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let l;return a&&(l={position:"absolute",top:`${a}00%`,left:0}),i.createElement("span",{style:l,className:ue(`${t}-only-unit`,{current:r})},n)};function OF(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const RF=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),l=Math.abs(n),[c,u]=i.useState(a),[d,f]=i.useState(l),v=()=>{u(a),f(l)};i.useEffect(()=>{const b=setTimeout(v,1e3);return()=>clearTimeout(b)},[a]);let g,p;if(c===a||Number.isNaN(a)||Number.isNaN(c))g=[i.createElement(_E,Object.assign({},e,{key:a,current:!0}))],p={transition:"none"};else{g=[];const b=a+10,C=[];for(let w=a;w<=b;w+=1)C.push(w);const x=d<l?1:-1,h=C.findIndex(w=>w%10===c);g=(x<0?C.slice(0,h+1):C.slice(h)).map((w,E)=>{const j=w%10;return i.createElement(_E,Object.assign({},e,{key:w,value:j,offset:x<0?E-h:E,current:E===h}))}),p={transform:`translateY(${-OF(c,a,x)}00%)`}}return i.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:v},g)};var jF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IF=i.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:l,style:c,title:u,show:d,component:f="sup",children:v}=e,g=jF(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=i.useContext(Rt),b=p("scroll-number",n),C=Object.assign(Object.assign({},g),{"data-show":d,style:c,className:ue(b,a,l),title:u});let x=r;if(r&&Number(r)%1===0){const h=String(r).split("");x=i.createElement("bdi",null,h.map(($,w)=>i.createElement(RF,{prefixCls:b,count:Number(r),value:$,key:h.length-w})))}return c!=null&&c.borderColor&&(C.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),v?Or(v,h=>({className:ue(`${b}-custom-component`,h==null?void 0:h.className,l)})):i.createElement(f,Object.assign({},C,{ref:t}),x)});var NF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const MF=i.forwardRef((e,t)=>{var n,r,a,l,c;const{prefixCls:u,scrollNumberPrefixCls:d,children:f,status:v,text:g,color:p,count:b=null,overflowCount:C=99,dot:x=!1,size:h="default",title:$,offset:w,style:E,className:j,rootClassName:O,classNames:I,styles:R,showZero:M=!1}=e,N=NF(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:B,badge:L}=i.useContext(Rt),k=P("badge",u),[D,H,z]=xF(k),_=b>C?`${C}+`:b,F=_==="0"||_===0||g==="0"||g===0,W=b===null||F&&!M,q=(v!=null||p!=null)&&W,V=v!=null||!F,G=x&&!F,K=G?"":_,U=i.useMemo(()=>((K==null||K==="")&&(g==null||g==="")||F&&!M)&&!G,[K,F,M,G,g]),J=i.useRef(b);U||(J.current=b);const Q=J.current,te=i.useRef(K);U||(te.current=K);const Y=te.current,ae=i.useRef(G);U||(ae.current=G);const re=i.useMemo(()=>{if(!w)return Object.assign(Object.assign({},L==null?void 0:L.style),E);const Oe={marginTop:w[1]};return B==="rtl"?Oe.left=Number.parseInt(w[0],10):Oe.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},Oe),L==null?void 0:L.style),E)},[B,w,E,L==null?void 0:L.style]),Z=$??(typeof Q=="string"||typeof Q=="number"?Q:void 0),X=!U&&(g===0?M:!!g&&g!==!0),oe=X?i.createElement("span",{className:`${k}-status-text`},g):null,le=!Q||typeof Q!="object"?void 0:Or(Q,Oe=>({style:Object.assign(Object.assign({},re),Oe.style)})),de=Pg(p,!1),ce=ue(I==null?void 0:I.indicator,(n=L==null?void 0:L.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:q,[`${k}-status-${v}`]:!!v,[`${k}-color-${p}`]:de}),ge={};p&&!de&&(ge.color=p,ge.background=p);const he=ue(k,{[`${k}-status`]:q,[`${k}-not-a-wrapper`]:!f,[`${k}-rtl`]:B==="rtl"},j,O,L==null?void 0:L.className,(r=L==null?void 0:L.classNames)===null||r===void 0?void 0:r.root,I==null?void 0:I.root,H,z);if(!f&&q&&(g||V||!W)){const Oe=re.color;return D(i.createElement("span",Object.assign({},N,{className:he,style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.root),(a=L==null?void 0:L.styles)===null||a===void 0?void 0:a.root),re)}),i.createElement("span",{className:ce,style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.indicator),(l=L==null?void 0:L.styles)===null||l===void 0?void 0:l.indicator),ge)}),X&&i.createElement("span",{style:{color:Oe},className:`${k}-status-text`},g)))}return D(i.createElement("span",Object.assign({ref:t},N,{className:he,style:Object.assign(Object.assign({},(c=L==null?void 0:L.styles)===null||c===void 0?void 0:c.root),R==null?void 0:R.root)}),f,i.createElement(Zr,{visible:!U,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Oe})=>{var je,pe;const we=P("scroll-number",d),Se=ae.current,Ce=ue(I==null?void 0:I.indicator,(je=L==null?void 0:L.classNames)===null||je===void 0?void 0:je.indicator,{[`${k}-dot`]:Se,[`${k}-count`]:!Se,[`${k}-count-sm`]:h==="small",[`${k}-multiple-words`]:!Se&&Y&&Y.toString().length>1,[`${k}-status-${v}`]:!!v,[`${k}-color-${p}`]:de});let De=Object.assign(Object.assign(Object.assign({},R==null?void 0:R.indicator),(pe=L==null?void 0:L.styles)===null||pe===void 0?void 0:pe.indicator),re);return p&&!de&&(De=De||{},De.background=p),i.createElement(IF,{prefixCls:we,show:!U,motionClassName:Oe,className:Ce,count:Y,title:Z,style:De,key:"scrollNumber"},le)}),oe))}),qa=MF;qa.Ribbon=EF;var TF={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"},PF=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:TF}))},Lc=i.forwardRef(PF),zF=ot.ESC,DF=ot.TAB;function _F(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,l=e.overlayRef,c=i.useRef(!1),u=function(){if(t){var g,p;(g=n.current)===null||g===void 0||(p=g.focus)===null||p===void 0||p.call(g),r==null||r(!1)}},d=function(){var g;return(g=l.current)!==null&&g!==void 0&&g.focus?(l.current.focus(),c.current=!0,!0):!1},f=function(g){switch(g.keyCode){case zF:u();break;case DF:{var p=!1;c.current||(p=d()),p?g.preventDefault():u();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",f),a&&Yt(d,3),function(){window.removeEventListener("keydown",f),c.current=!1}):function(){c.current=!1}},[t])}var AF=i.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,l=i.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),c=Mr(t,Cl(l));return ve.createElement(ve.Fragment,null,r&&ve.createElement("div",{className:"".concat(a,"-arrow")}),ve.cloneElement(l,{ref:Ro(l)?c:void 0}))}),gc={adjustX:1,adjustY:1},pc=[0,0],BF={topLeft:{points:["bl","tl"],overflow:gc,offset:[0,-4],targetOffset:pc},top:{points:["bc","tc"],overflow:gc,offset:[0,-4],targetOffset:pc},topRight:{points:["br","tr"],overflow:gc,offset:[0,-4],targetOffset:pc},bottomLeft:{points:["tl","bl"],overflow:gc,offset:[0,4],targetOffset:pc},bottom:{points:["tc","bc"],overflow:gc,offset:[0,4],targetOffset:pc},bottomRight:{points:["tr","br"],overflow:gc,offset:[0,4],targetOffset:pc}},kF=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function LF(e,t){var n,r=e.arrow,a=r===void 0?!1:r,l=e.prefixCls,c=l===void 0?"rc-dropdown":l,u=e.transitionName,d=e.animation,f=e.align,v=e.placement,g=v===void 0?"bottomLeft":v,p=e.placements,b=p===void 0?BF:p,C=e.getPopupContainer,x=e.showAction,h=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,E=e.visible,j=e.trigger,O=j===void 0?["hover"]:j,I=e.autoFocus,R=e.overlay,M=e.children,N=e.onVisibleChange,P=Lt(e,kF),B=ve.useState(),L=fe(B,2),k=L[0],D=L[1],H="visible"in e?E:k,z=ve.useRef(null),_=ve.useRef(null),F=ve.useRef(null);ve.useImperativeHandle(t,function(){return z.current});var W=function(Y){D(Y),N==null||N(Y)};_F({visible:H,triggerRef:F,onVisibleChange:W,autoFocus:I,overlayRef:_});var q=function(Y){var ae=e.onOverlayClick;D(!1),ae&&ae(Y)},V=function(){return ve.createElement(AF,{ref:_,overlay:R,prefixCls:c,arrow:a})},G=function(){return typeof R=="function"?V:V()},K=function(){var Y=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!ae},U=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(c,"-open")},J=ve.cloneElement(M,{className:ue((n=M.props)===null||n===void 0?void 0:n.className,H&&U()),ref:Ro(M)?Mr(F,Cl(M)):void 0}),Q=h;return!Q&&O.indexOf("contextMenu")!==-1&&(Q=["click"]),ve.createElement(mf,be({builtinPlacements:b},P,{prefixCls:c,ref:z,popupClassName:ue($,ne({},"".concat(c,"-show-arrow"),a)),popupStyle:w,action:O,showAction:x,hideAction:Q,popupPlacement:g,popupAlign:f,popupTransitionName:u,popupAnimation:d,popupVisible:H,stretch:K()?"minWidth":"",popup:G(),onPopupVisibleChange:W,onPopupClick:q,getPopupContainer:C}),J)}const Ij=ve.forwardRef(LF),HF=e=>typeof e!="object"&&typeof e!="function"||e===null;var Nj=i.createContext(null);function Mj(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Tj(e){var t=i.useContext(Nj);return Mj(t,e)}var FF=["children","locked"],Mo=i.createContext(null);function VF(e,t){var n=se({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Kd(e){var t=e.children,n=e.locked,r=Lt(e,FF),a=i.useContext(Mo),l=ys(function(){return VF(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!jo(c[1],u[1],!0))});return i.createElement(Mo.Provider,{value:l},t)}var WF=[],Pj=i.createContext(null);function zg(){return i.useContext(Pj)}var zj=i.createContext(WF);function eu(e){var t=i.useContext(zj);return i.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var Dj=i.createContext(null),U1=i.createContext({});function AE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Yc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),l=Number(a),c=null;return a&&!Number.isNaN(l)?c=l:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function KF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return AE(r,t)});return AE(e,t)&&n.unshift(e),n}var Ny=ot.LEFT,My=ot.RIGHT,Ty=ot.UP,gv=ot.DOWN,pv=ot.ENTER,_j=ot.ESC,rd=ot.HOME,ad=ot.END,BE=[Ty,gv,Ny,My];function UF(e,t,n,r){var a,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===pv)return{inlineTrigger:!0};var f=ne(ne({},Ty,l),gv,c),v=ne(ne(ne(ne({},Ny,n?c:l),My,n?l:c),gv,u),pv,u),g=ne(ne(ne(ne(ne(ne({},Ty,l),gv,c),pv,u),_j,d),Ny,n?u:d),My,n?d:u),p={inline:f,horizontal:v,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},b=(a=p["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(b){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function qF(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function GF(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function q1(e,t){var n=KF(e,!0);return n.filter(function(r){return t.has(r)})}function kE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=q1(e,t),l=a.length,c=a.findIndex(function(u){return n===u});return r<0?c===-1?c=l-1:c-=1:r>0&&(c+=1),c=(c+l)%l,a[c]}var Py=function(t,n){var r=new Set,a=new Map,l=new Map;return t.forEach(function(c){var u=document.querySelector("[data-menu-id='".concat(Mj(n,c),"']"));u&&(r.add(u),l.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:l}};function XF(e,t,n,r,a,l,c,u,d,f){var v=i.useRef(),g=i.useRef();g.current=t;var p=function(){Yt.cancel(v.current)};return i.useEffect(function(){return function(){p()}},[]),function(b){var C=b.which;if([].concat(BE,[pv,_j,rd,ad]).includes(C)){var x=l(),h=Py(x,r),$=h,w=$.elements,E=$.key2element,j=$.element2key,O=E.get(t),I=GF(O,w),R=j.get(I),M=UF(e,c(R,!0).length===1,n,C);if(!M&&C!==rd&&C!==ad)return;(BE.includes(C)||[rd,ad].includes(C))&&b.preventDefault();var N=function(_){if(_){var F=_,W=_.querySelector("a");W!=null&&W.getAttribute("href")&&(F=W);var q=j.get(_);u(q),p(),v.current=Yt(function(){g.current===q&&F.focus()})}};if([rd,ad].includes(C)||M.sibling||!I){var P;!I||e==="inline"?P=a.current:P=qF(I);var B,L=q1(P,w);C===rd?B=L[0]:C===ad?B=L[L.length-1]:B=kE(P,w,I,M.offset),N(B)}else if(M.inlineTrigger)d(R);else if(M.offset>0)d(R,!0),p(),v.current=Yt(function(){h=Py(x,r);var z=I.getAttribute("aria-controls"),_=document.getElementById(z),F=kE(_,h.elements);N(F)},5);else if(M.offset<0){var k=c(R,!0),D=k[k.length-2],H=E.get(D);d(D,!1),N(H)}}f==null||f(b)}}function YF(e){Promise.resolve().then(e)}var G1="__RC_UTIL_PATH_SPLIT__",LE=function(t){return t.join(G1)},QF=function(t){return t.split(G1)},zy="rc-menu-more";function ZF(){var e=i.useState({}),t=fe(e,2),n=t[1],r=i.useRef(new Map),a=i.useRef(new Map),l=i.useState([]),c=fe(l,2),u=c[0],d=c[1],f=i.useRef(0),v=i.useRef(!1),g=function(){v.current||n({})},p=i.useCallback(function(E,j){var O=LE(j);a.current.set(O,E),r.current.set(E,O),f.current+=1;var I=f.current;YF(function(){I===f.current&&g()})},[]),b=i.useCallback(function(E,j){var O=LE(j);a.current.delete(O),r.current.delete(E)},[]),C=i.useCallback(function(E){d(E)},[]),x=i.useCallback(function(E,j){var O=r.current.get(E)||"",I=QF(O);return j&&u.includes(I[0])&&I.unshift(zy),I},[u]),h=i.useCallback(function(E,j){return E.filter(function(O){return O!==void 0}).some(function(O){var I=x(O,!0);return I.includes(j)})},[x]),$=function(){var j=Ne(r.current.keys());return u.length&&j.push(zy),j},w=i.useCallback(function(E){var j="".concat(r.current.get(E)).concat(G1),O=new Set;return Ne(a.current.keys()).forEach(function(I){I.startsWith(j)&&O.add(a.current.get(I))}),O},[]);return i.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:p,unregisterPath:b,refreshOverflowKeys:C,isSubPathKey:h,getKeyPath:x,getKeys:$,getSubPathKeys:w}}function gd(e){var t=i.useRef(e);t.current=e;var n=i.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var JF=Math.random().toFixed(5).toString().slice(2),HE=0;function eV(e){var t=yn(e,{value:e}),n=fe(t,2),r=n[0],a=n[1];return i.useEffect(function(){HE+=1;var l="".concat(JF,"-").concat(HE);a("rc-menu-uuid-".concat(l))},[]),r}function Aj(e,t,n,r){var a=i.useContext(Mo),l=a.activeKey,c=a.onActive,u=a.onInactive,d={active:l===e};return t||(d.onMouseEnter=function(f){n==null||n({key:e,domEvent:f}),c(e)},d.onMouseLeave=function(f){r==null||r({key:e,domEvent:f}),u(e)}),d}function Bj(e){var t=i.useContext(Mo),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*a}:{paddingLeft:l*a}}function kj(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=i.createElement(t,se({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var tV=["item"];function Hv(e){var t=e.item,n=Lt(e,tV);return Object.defineProperty(n,"item",{get:function(){return Xn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var nV=["title","attribute","elementRef"],rV=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],aV=["active"],oV=(function(e){Ya(n,e);var t=po(n);function n(){return fr(this,n),t.apply(this,arguments)}return mr(n,[{key:"render",value:function(){var a=this.props,l=a.title,c=a.attribute,u=a.elementRef,d=Lt(a,nV),f=En(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Xn(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(Eo.Item,be({},c,{title:typeof l=="string"?l:void 0},f,{ref:u}))}}]),n})(i.Component),iV=i.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,p=e.onKeyDown,b=e.onFocus,C=Lt(e,rV),x=Tj(a),h=i.useContext(Mo),$=h.prefixCls,w=h.onItemClick,E=h.disabled,j=h.overflowDisabled,O=h.itemIcon,I=h.selectedKeys,R=h.onActive,M=i.useContext(U1),N=M._internalRenderMenuItem,P="".concat($,"-item"),B=i.useRef(),L=i.useRef(),k=E||l,D=Ei(t,L),H=eu(a),z=function(ae){return{key:a,keyPath:Ne(H).reverse(),item:B.current,domEvent:ae}},_=c||O,F=Aj(a,k,f,v),W=F.active,q=Lt(F,aV),V=I.includes(a),G=Bj(H.length),K=function(ae){if(!k){var re=z(ae);g==null||g(Hv(re)),w(re)}},U=function(ae){if(p==null||p(ae),ae.which===ot.ENTER){var re=z(ae);g==null||g(Hv(re)),w(re)}},J=function(ae){R(a),b==null||b(ae)},Q={};e.role==="option"&&(Q["aria-selected"]=V);var te=i.createElement(oV,be({ref:B,elementRef:D,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":j&&x?null:x},En(C,["extra"]),q,Q,{component:"li","aria-disabled":l,style:se(se({},G),n),className:ue(P,ne(ne(ne({},"".concat(P,"-active"),W),"".concat(P,"-selected"),V),"".concat(P,"-disabled"),k),r),onClick:K,onKeyDown:U,onFocus:J}),u,i.createElement(kj,{props:se(se({},e),{},{isSelected:V}),icon:_}));return N&&(te=N(te,e,{selected:V})),te});function lV(e,t){var n=e.eventKey,r=zg(),a=eu(n);return i.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:i.createElement(iV,be({},e,{ref:t}))}const pf=i.forwardRef(lV);var sV=["className","children"],cV=function(t,n){var r=t.className,a=t.children,l=Lt(t,sV),c=i.useContext(Mo),u=c.prefixCls,d=c.mode,f=c.rtl;return i.createElement("ul",be({className:ue(u,f&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),a)},X1=i.forwardRef(cV);X1.displayName="SubMenuList";function Y1(e,t){return Yr(e).map(function(n,r){if(i.isValidElement(n)){var a,l,c=n.key,u=(a=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&a!==void 0?a:c,d=u==null;d&&(u="tmp_key-".concat([].concat(Ne(t),[r]).join("-")));var f={key:u,eventKey:u};return i.cloneElement(n,f)}return n})}var ba={adjustX:1,adjustY:1},uV={topLeft:{points:["bl","tl"],overflow:ba},topRight:{points:["br","tr"],overflow:ba},bottomLeft:{points:["tl","bl"],overflow:ba},bottomRight:{points:["tr","br"],overflow:ba},leftTop:{points:["tr","tl"],overflow:ba},leftBottom:{points:["br","bl"],overflow:ba},rightTop:{points:["tl","tr"],overflow:ba},rightBottom:{points:["bl","br"],overflow:ba}},dV={topLeft:{points:["bl","tl"],overflow:ba},topRight:{points:["br","tr"],overflow:ba},bottomLeft:{points:["tl","bl"],overflow:ba},bottomRight:{points:["tr","br"],overflow:ba},rightTop:{points:["tr","tl"],overflow:ba},rightBottom:{points:["br","bl"],overflow:ba},leftTop:{points:["tl","tr"],overflow:ba},leftBottom:{points:["bl","br"],overflow:ba}};function Lj(e,t,n){if(t)return t;if(n)return n[e]||n.other}var fV={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function mV(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,l=e.popupStyle,c=e.popupClassName,u=e.popupOffset,d=e.disabled,f=e.mode,v=e.onVisibleChange,g=i.useContext(Mo),p=g.getPopupContainer,b=g.rtl,C=g.subMenuOpenDelay,x=g.subMenuCloseDelay,h=g.builtinPlacements,$=g.triggerSubMenuAction,w=g.forceSubMenuRender,E=g.rootClassName,j=g.motion,O=g.defaultMotions,I=i.useState(!1),R=fe(I,2),M=R[0],N=R[1],P=se(b?se({},dV):se({},uV),h),B=fV[f],L=Lj(f,j,O),k=i.useRef(L);f!=="inline"&&(k.current=L);var D=se(se({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=i.useRef();return i.useEffect(function(){return H.current=Yt(function(){N(n)}),function(){Yt.cancel(H.current)}},[n]),i.createElement(mf,{prefixCls:t,popupClassName:ue("".concat(t,"-popup"),ne({},"".concat(t,"-rtl"),b),c,E),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:P,popupPlacement:B,popupVisible:M,popup:a,popupStyle:l,popupAlign:u&&{offset:u},action:d?[]:[$],mouseEnterDelay:C,mouseLeaveDelay:x,onPopupVisibleChange:v,forceRender:w,popupMotion:D,fresh:!0},r)}function vV(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,l="inline",c=i.useContext(Mo),u=c.prefixCls,d=c.forceSubMenuRender,f=c.motion,v=c.defaultMotions,g=c.mode,p=i.useRef(!1);p.current=g===l;var b=i.useState(!p.current),C=fe(b,2),x=C[0],h=C[1],$=p.current?n:!1;i.useEffect(function(){p.current&&h(!1)},[g]);var w=se({},Lj(l,f,v));r.length>1&&(w.motionAppear=!1);var E=w.onVisibleChanged;return w.onVisibleChanged=function(j){return!p.current&&!j&&h(!0),E==null?void 0:E(j)},x?null:i.createElement(Kd,{mode:l,locked:!p.current},i.createElement(Zr,be({visible:$},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(j){var O=j.className,I=j.style;return i.createElement(X1,{id:t,className:O,style:I},a)}))}var gV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pV=["active"],hV=i.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,l=e.eventKey;e.warnKey;var c=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,g=e.popupClassName,p=e.popupOffset,b=e.popupStyle,C=e.onClick,x=e.onMouseEnter,h=e.onMouseLeave,$=e.onTitleClick,w=e.onTitleMouseEnter,E=e.onTitleMouseLeave,j=Lt(e,gV),O=Tj(l),I=i.useContext(Mo),R=I.prefixCls,M=I.mode,N=I.openKeys,P=I.disabled,B=I.overflowDisabled,L=I.activeKey,k=I.selectedKeys,D=I.itemIcon,H=I.expandIcon,z=I.onItemClick,_=I.onOpenChange,F=I.onActive,W=i.useContext(U1),q=W._internalRenderSubMenuItem,V=i.useContext(Dj),G=V.isSubPathKey,K=eu(),U="".concat(R,"-submenu"),J=P||c,Q=i.useRef(),te=i.useRef(),Y=f??D,ae=v??H,re=N.includes(l),Z=!B&&re,X=G(k,l),oe=Aj(l,J,w,E),le=oe.active,de=Lt(oe,pV),ce=i.useState(!1),ge=fe(ce,2),he=ge[0],Oe=ge[1],je=function(ye){J||Oe(ye)},pe=function(ye){je(!0),x==null||x({key:l,domEvent:ye})},we=function(ye){je(!1),h==null||h({key:l,domEvent:ye})},Se=i.useMemo(function(){return le||(M!=="inline"?he||G([L],l):!1)},[M,le,L,he,l,G]),Ce=Bj(K.length),De=function(ye){J||($==null||$({key:l,domEvent:ye}),M==="inline"&&_(l,!re))},Ae=gd(function(Pe){C==null||C(Hv(Pe)),z(Pe)}),Qe=function(ye){M!=="inline"&&_(l,ye)},Ke=function(){F(l)},Fe=O&&"".concat(O,"-popup"),Ge=i.useMemo(function(){return i.createElement(kj,{icon:M!=="horizontal"?ae:void 0,props:se(se({},e),{},{isOpen:Z,isSubMenu:!0})},i.createElement("i",{className:"".concat(U,"-arrow")}))},[M,ae,e,Z,U]),Te=i.createElement("div",be({role:"menuitem",style:Ce,className:"".concat(U,"-title"),tabIndex:J?null:-1,ref:Q,title:typeof a=="string"?a:null,"data-menu-id":B&&O?null:O,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":Fe,"aria-disabled":J,onClick:De,onFocus:Ke},de),a,Ge),Ee=i.useRef(M);if(M!=="inline"&&K.length>1?Ee.current="vertical":Ee.current=M,!B){var _e=Ee.current;Te=i.createElement(mV,{mode:_e,prefixCls:U,visible:!u&&Z&&M!=="inline",popupClassName:g,popupOffset:p,popupStyle:b,popup:i.createElement(Kd,{mode:_e==="horizontal"?"vertical":_e},i.createElement(X1,{id:Fe,ref:te},d)),disabled:J,onVisibleChange:Qe},Te)}var Re=i.createElement(Eo.Item,be({ref:t,role:"none"},j,{component:"li",style:n,className:ue(U,"".concat(U,"-").concat(M),r,ne(ne(ne(ne({},"".concat(U,"-open"),Z),"".concat(U,"-active"),Se),"".concat(U,"-selected"),X),"".concat(U,"-disabled"),J)),onMouseEnter:pe,onMouseLeave:we}),Te,!B&&i.createElement(vV,{id:Fe,open:Z,keyPath:K},d));return q&&(Re=q(Re,e,{selected:X,active:Se,open:Z,disabled:J})),i.createElement(Kd,{onItemClick:Ae,mode:M==="horizontal"?"vertical":M,itemIcon:Y,expandIcon:ae},Re)}),Dg=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=eu(n),l=Y1(r,a),c=zg();i.useEffect(function(){if(c)return c.registerPath(n,a),function(){c.unregisterPath(n,a)}},[a]);var u;return c?u=l:u=i.createElement(hV,be({ref:t},e),l),i.createElement(zj.Provider,{value:a},u)});function Q1(e){var t=e.className,n=e.style,r=i.useContext(Mo),a=r.prefixCls,l=zg();return l?null:i.createElement("li",{role:"separator",className:ue("".concat(a,"-item-divider"),t),style:n})}var bV=["className","title","eventKey","children"],yV=i.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,l=Lt(e,bV),c=i.useContext(Mo),u=c.prefixCls,d="".concat(u,"-item-group");return i.createElement("li",be({ref:t,role:"presentation"},l,{onClick:function(v){return v.stopPropagation()},className:ue(d,n)}),i.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),i.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),Z1=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=eu(n),l=Y1(r,a),c=zg();return c?l:i.createElement(yV,be({ref:t},En(e,["warnKey"])),l)}),CV=["label","children","key","type","extra"];function Dy(e,t,n){var r=t.item,a=t.group,l=t.submenu,c=t.divider;return(e||[]).map(function(u,d){if(u&&Et(u)==="object"){var f=u,v=f.label,g=f.children,p=f.key,b=f.type,C=f.extra,x=Lt(f,CV),h=p??"tmp-".concat(d);return g||b==="group"?b==="group"?i.createElement(a,be({key:h},x,{title:v}),Dy(g,t,n)):i.createElement(l,be({key:h},x,{title:v}),Dy(g,t,n)):b==="divider"?i.createElement(c,be({key:h},x)):i.createElement(r,be({key:h},x,{extra:C}),v,(!!C||C===0)&&i.createElement("span",{className:"".concat(n,"-item-extra")},C))}return null}).filter(function(u){return u})}function FE(e,t,n,r,a){var l=e,c=se({divider:Q1,item:pf,group:Z1,submenu:Dg},r);return t&&(l=Dy(t,c,a)),Y1(l,n)}var SV=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Wl=[],xV=i.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,l=a===void 0?"rc-menu":a,c=r.rootClassName,u=r.style,d=r.className,f=r.tabIndex,v=f===void 0?0:f,g=r.items,p=r.children,b=r.direction,C=r.id,x=r.mode,h=x===void 0?"vertical":x,$=r.inlineCollapsed,w=r.disabled,E=r.disabledOverflow,j=r.subMenuOpenDelay,O=j===void 0?.1:j,I=r.subMenuCloseDelay,R=I===void 0?.1:I,M=r.forceSubMenuRender,N=r.defaultOpenKeys,P=r.openKeys,B=r.activeKey,L=r.defaultActiveFirst,k=r.selectable,D=k===void 0?!0:k,H=r.multiple,z=H===void 0?!1:H,_=r.defaultSelectedKeys,F=r.selectedKeys,W=r.onSelect,q=r.onDeselect,V=r.inlineIndent,G=V===void 0?24:V,K=r.motion,U=r.defaultMotions,J=r.triggerSubMenuAction,Q=J===void 0?"hover":J,te=r.builtinPlacements,Y=r.itemIcon,ae=r.expandIcon,re=r.overflowedIndicator,Z=re===void 0?"...":re,X=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,le=r.onClick,de=r.onOpenChange,ce=r.onKeyDown;r.openAnimation,r.openTransitionName;var ge=r._internalRenderMenuItem,he=r._internalRenderSubMenuItem,Oe=r._internalComponents,je=Lt(r,SV),pe=i.useMemo(function(){return[FE(p,g,Wl,Oe,l),FE(p,g,Wl,{},l)]},[p,g,Oe]),we=fe(pe,2),Se=we[0],Ce=we[1],De=i.useState(!1),Ae=fe(De,2),Qe=Ae[0],Ke=Ae[1],Fe=i.useRef(),Ge=eV(C),Te=b==="rtl",Ee=yn(N,{value:P,postState:function(Bt){return Bt||Wl}}),_e=fe(Ee,2),Re=_e[0],Pe=_e[1],ye=function(Bt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function an(){Pe(Bt),de==null||de(Bt)}kt?mo.flushSync(an):an()},$e=i.useState(Re),Me=fe($e,2),Le=Me[0],tt=Me[1],yt=i.useRef(!1),We=i.useMemo(function(){return(h==="inline"||h==="vertical")&&$?["vertical",$]:[h,!1]},[h,$]),nt=fe(We,2),dt=nt[0],at=nt[1],pt=dt==="inline",zt=i.useState(dt),Ot=fe(zt,2),ct=Ot[0],$t=Ot[1],St=i.useState(at),et=fe(St,2),Ve=et[0],Ue=et[1];i.useEffect(function(){$t(dt),Ue(at),yt.current&&(pt?Pe(Le):ye(Wl))},[dt,at]);var mt=i.useState(0),Tt=fe(mt,2),Nt=Tt[0],Vt=Tt[1],ft=Nt>=Se.length-1||ct!=="horizontal"||E;i.useEffect(function(){pt&&tt(Re)},[Re]),i.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var lt=ZF(),At=lt.registerPath,Ut=lt.unregisterPath,rn=lt.refreshOverflowKeys,Qt=lt.isSubPathKey,pn=lt.getKeyPath,qt=lt.getKeys,un=lt.getSubPathKeys,st=i.useMemo(function(){return{registerPath:At,unregisterPath:Ut}},[At,Ut]),xt=i.useMemo(function(){return{isSubPathKey:Qt}},[Qt]);i.useEffect(function(){rn(ft?Wl:Se.slice(Nt+1).map(function(Sn){return Sn.key}))},[Nt,ft]);var ht=yn(B||L&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:B}),Ye=fe(ht,2),Ze=Ye[0],ut=Ye[1],Dt=gd(function(Sn){ut(Sn)}),Kt=gd(function(){ut(void 0)});i.useImperativeHandle(t,function(){return{list:Fe.current,focus:function(Bt){var kt,an=qt(),Pt=Py(an,Ge),_t=Pt.elements,vn=Pt.key2element,In=Pt.element2key,Yn=q1(Fe.current,_t),wr=Ze??(Yn[0]?In.get(Yn[0]):(kt=Se.find(function(cn){return!cn.props.disabled}))===null||kt===void 0?void 0:kt.key),Qn=vn.get(wr);if(wr&&Qn){var Rr;Qn==null||(Rr=Qn.focus)===null||Rr===void 0||Rr.call(Qn,Bt)}}}});var vt=yn(_||[],{value:F,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Wl:[Bt]}}),Mt=fe(vt,2),Ft=Mt[0],$n=Mt[1],_n=function(Bt){if(D){var kt=Bt.key,an=Ft.includes(kt),Pt;z?an?Pt=Ft.filter(function(vn){return vn!==kt}):Pt=[].concat(Ne(Ft),[kt]):Pt=[kt],$n(Pt);var _t=se(se({},Bt),{},{selectedKeys:Pt});an?q==null||q(_t):W==null||W(_t)}!z&&Re.length&&ct!=="inline"&&ye(Wl)},Pn=gd(function(Sn){le==null||le(Hv(Sn)),_n(Sn)}),Wn=gd(function(Sn,Bt){var kt=Re.filter(function(Pt){return Pt!==Sn});if(Bt)kt.push(Sn);else if(ct!=="inline"){var an=un(Sn);kt=kt.filter(function(Pt){return!an.has(Pt)})}jo(Re,kt,!0)||ye(kt,!0)}),jn=function(Bt,kt){var an=kt??!Re.includes(Bt);Wn(Bt,an)},Bn=XF(ct,Ze,Te,Ge,Fe,qt,pn,ut,jn,ce);i.useEffect(function(){Ke(!0)},[]);var $r=i.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:he}},[ge,he]),Pr=ct!=="horizontal"||E?Se:Se.map(function(Sn,Bt){return i.createElement(Kd,{key:Sn.key,overflowDisabled:Bt>Nt},Sn)}),br=i.createElement(Eo,be({id:C,ref:Fe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:pf,className:ue(l,"".concat(l,"-root"),"".concat(l,"-").concat(ct),d,ne(ne({},"".concat(l,"-inline-collapsed"),Ve),"".concat(l,"-rtl"),Te),c),dir:b,style:u,role:"menu",tabIndex:v,data:Pr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var kt=Bt.length,an=kt?Se.slice(-kt):null;return i.createElement(Dg,{eventKey:zy,title:Z,disabled:ft,internalPopupClose:kt===0,popupClassName:X},an)},maxCount:ct!=="horizontal"||E?Eo.INVALIDATE:Eo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Vt(Bt)},onKeyDown:Bn},je));return i.createElement(U1.Provider,{value:$r},i.createElement(Nj.Provider,{value:Ge},i.createElement(Kd,{prefixCls:l,rootClassName:c,mode:ct,openKeys:Re,rtl:Te,disabled:w,motion:Qe?K:null,defaultMotions:Qe?U:null,activeKey:Ze,onActive:Dt,onInactive:Kt,selectedKeys:Ft,inlineIndent:G,subMenuOpenDelay:O,subMenuCloseDelay:R,forceSubMenuRender:M,builtinPlacements:te,triggerSubMenuAction:Q,getPopupContainer:oe,itemIcon:Y,expandIcon:ae,onItemClick:Pn,onOpenChange:Wn},i.createElement(Dj.Provider,{value:xt},br),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(Pj.Provider,{value:st},Ce)))))}),tu=xV;tu.Item=pf;tu.SubMenu=Dg;tu.ItemGroup=Z1;tu.Divider=Q1;var $V={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"},wV=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:$V}))},EV=i.forwardRef(wV);const Hj=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),OV=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,fontSize:f,bodyBg:v,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{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:l,padding:c,color:u,lineHeight:ie(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:f,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Fj=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:l,marginXXS:c,colorTextLightSolid:u,colorBgContainer:d}=e,f=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${f}px`,headerColor:a,footerPadding:`${l}px ${f}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:a}},Vj=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Wj=sn("Layout",OV,Fj,{deprecatedTokens:Vj}),RV=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:l,triggerHeight:c,triggerColor:u,triggerBg:d,headerHeight:f,zeroTriggerWidth:v,zeroTriggerHeight:g,borderRadiusLG:p,lightSiderBg:b,lightTriggerColor:C,lightTriggerBg:x,bodyBg:h}=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,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:u,lineHeight:ie(c),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:f,insetInlineEnd:e.calc(v).mul(-1).equal(),zIndex:1,width:v,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ie(p)} ${ie(p)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(v).mul(-1).equal(),borderRadius:`${ie(p)} 0 0 ${ie(p)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:C,background:x},[`${t}-zero-width-trigger`]:{color:C,background:x,border:`1px solid ${h}`,borderInlineStart:0}}}}},jV=sn(["Layout","Sider"],RV,Fj,{deprecatedTokens:Vj});var IV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const VE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},NV=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),_g=i.createContext({}),MV=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Kj=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:l,defaultCollapsed:c=!1,theme:u="dark",style:d={},collapsible:f=!1,reverseArrow:v=!1,width:g=200,collapsedWidth:p=80,zeroWidthTriggerStyle:b,breakpoint:C,onCollapse:x,onBreakpoint:h}=e,$=IV(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=i.useContext(Hj),[E,j]=i.useState("collapsed"in e?e.collapsed:c),[O,I]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&j(e.collapsed)},[e.collapsed]);const R=(Y,ae)=>{"collapsed"in e||j(Y),x==null||x(Y,ae)},{getPrefixCls:M,direction:N}=i.useContext(Rt),P=M("layout-sider",n),[B,L,k]=jV(P),D=i.useRef(null);D.current=Y=>{I(Y.matches),h==null||h(Y.matches),E!==Y.matches&&R(Y.matches,"responsive")},i.useEffect(()=>{function Y(re){var Z;return(Z=D.current)===null||Z===void 0?void 0:Z.call(D,re)}let ae;return typeof(window==null?void 0:window.matchMedia)<"u"&&C&&C in VE&&(ae=window.matchMedia(`screen and (max-width: ${VE[C]})`),hj(ae,Y),Y(ae)),()=>{bj(ae,Y)}},[C]),i.useEffect(()=>{const Y=MV("ant-sider-");return w.addSider(Y),()=>w.removeSider(Y)},[]);const H=()=>{R(!E,"clickTrigger")},z=En($,["collapsed"]),_=E?p:g,F=NV(_)?`${_}px`:String(_),W=Number.parseFloat(String(p||0))===0?i.createElement("span",{onClick:H,className:ue(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${v?"right":"left"}`),style:b},a||i.createElement(EV,null)):null,q=N==="rtl"==!v,K={expanded:q?i.createElement(Si,null):i.createElement(Lc,null),collapsed:q?i.createElement(Lc,null):i.createElement(Si,null)}[E?"collapsed":"expanded"],U=a!==null?W||i.createElement("div",{className:`${P}-trigger`,onClick:H,style:{width:F}},a||K):null,J=Object.assign(Object.assign({},d),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),Q=ue(P,`${P}-${u}`,{[`${P}-collapsed`]:!!E,[`${P}-has-trigger`]:f&&a!==null&&!W,[`${P}-below`]:!!O,[`${P}-zero-width`]:Number.parseFloat(F)===0},r,L,k),te=i.useMemo(()=>({siderCollapsed:E}),[E]);return B(i.createElement(_g.Provider,{value:te},i.createElement("aside",Object.assign({className:Q},z,{style:J,ref:t}),i.createElement("div",{className:`${P}-children`},l),f||O&&W?U:null)))});var TV={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"},PV=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:TV}))},J1=i.forwardRef(PV);const Fv=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var zV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Uj=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=zV(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=i.useContext(Rt),c=l("menu",t),u=ue({[`${c}-item-divider-dashed`]:!!r},n);return i.createElement(Q1,Object.assign({className:u},a))},qj=e=>{var t;const{className:n,children:r,icon:a,title:l,danger:c,extra:u}=e,{prefixCls:d,firstLevel:f,direction:v,disableMenuItemTitleTooltip:g,inlineCollapsed:p}=i.useContext(Fv),b=E=>{const j=r==null?void 0:r[0],O=i.createElement("span",{className:ue(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!a||i.isValidElement(r)&&r.type==="span")&&r&&E&&f&&typeof j=="string"?i.createElement("div",{className:`${d}-inline-collapsed-noicon`},j.charAt(0)):O},{siderCollapsed:C}=i.useContext(_g);let x=l;typeof l>"u"?x=f?r:"":l===!1&&(x="");const h={title:x};!C&&!p&&(h.title=null,h.open=!1);const $=Yr(r).length;let w=i.createElement(pf,Object.assign({},En(e,["title","icon","danger"]),{className:ue({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:(a?$+1:$)===1},n),title:typeof l=="string"?l:void 0}),Or(a,{className:ue(i.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),b(p));return g||(w=i.createElement(An,Object.assign({},h,{placement:v==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var DV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Vv=i.createContext(null),Gj=i.forwardRef((e,t)=>{const{children:n}=e,r=DV(e,["children"]),a=i.useContext(Vv),l=i.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=jP(n),u=Ei(t,c?Cl(n):null);return i.createElement(Vv.Provider,{value:l},i.createElement(Qo,{space:!0},c?i.cloneElement(n,{ref:u}):n))}),_V=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:l,lineType:c,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ie(l)} ${c} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
|
|
261
|
-
> ${t}-item-active,
|
|
262
|
-
> ${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"}}}},AV=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
263
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ie(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ie(t)})`}}}}),WE=e=>Io(e),KE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:u,subMenuItemBg:d,itemSelectedBg:f,activeBarHeight:v,activeBarWidth:g,activeBarBorderWidth:p,motionDurationSlow:b,motionEaseInOut:C,motionEaseOut:x,itemPaddingInline:h,motionDurationMid:$,itemHoverColor:w,lineType:E,colorSplit:j,itemDisabledColor:O,dangerItemColor:I,dangerItemHoverColor:R,dangerItemSelectedColor:M,dangerItemActiveBg:N,dangerItemSelectedBg:P,popupBg:B,itemHoverBg:L,itemActiveBg:k,menuSubMenuBg:D,horizontalItemSelectedColor:H,horizontalItemSelectedBg:z,horizontalItemBorderRadius:_,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},WE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},WE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:R}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:M},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:P}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:B},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:B},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${ie(v)} solid transparent`,transition:`border-color ${b} ${C}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:v,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:v,borderBottomColor:H}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ie(p)} ${E} ${j}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ie(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${x}`,`opacity ${$} ${x}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${C}`,`opacity ${$} ${C}`].join(",")}}}}}},UE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:l,marginXS:c,itemMarginBlock:u,itemWidth:d,itemPaddingInline:f}=e,v=e.calc(l).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ie(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${t}-item,
|
|
264
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ie(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
265
|
-
${t}-submenu-title`]:{paddingInlineEnd:v}}},BV=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:l,controlHeightLG:c,motionEaseOut:u,paddingXL:d,itemMarginInline:f,fontSizeLG:v,motionDurationFast:g,motionDurationSlow:p,paddingXS:b,boxShadowSecondary:C,collapsedWidth:x,collapsedIconSize:h}=e,$={height:r,lineHeight:ie(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},UE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},UE(e)),{boxShadow:C})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${ie(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 ${p}`,`background ${p}`,`padding ${g} ${u}`].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`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:v,textAlign:"center"}}},[`> ${t}-item,
|
|
266
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
267
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
268
|
-
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ie(e.calc(h).div(2).equal())} - ${ie(f)})`,textOverflow:"clip",[`
|
|
269
|
-
${t}-submenu-arrow,
|
|
270
|
-
${t}-submenu-expand-icon
|
|
271
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:ie(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ga),{paddingInline:b})}}]},qE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:l,iconCls:c,iconSize:u,iconMarginInlineEnd:d}=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) ${a}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${l}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Cs()),[`&${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"}}}},GE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ie(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ie(c)})`}}}}},kV=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOut:c,paddingXS:u,padding:d,colorSplit:f,lineWidth:v,zIndexPopup:g,borderRadiusLG:p,subMenuItemBorderRadius:b,menuArrowSize:C,menuArrowOffset:x,lineType:h,groupTitleLineHeight:$,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},qo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),qo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ie(u)} ${ie(d)}`,fontSize:w,lineHeight:$,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`,`padding ${l} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${c}`,`padding ${a} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:f,borderStyle:h,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ie(e.calc(r).mul(2).equal())} ${ie(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},qE(e)),GE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),GE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
272
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie(x)})`},"&::after":{transform:`rotate(45deg) translateX(${ie(e.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ie(e.calc(C).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ie(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ie(x)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},LV=e=>{var t,n,r;const{colorPrimary:a,colorError:l,colorTextDisabled:c,colorErrorBg:u,colorText:d,colorTextDescription:f,colorBgContainer:v,colorFillAlter:g,colorFillContent:p,lineWidth:b,lineWidthBold:C,controlItemBgActive:x,colorBgTextHover:h,controlHeightLG:$,lineHeight:w,colorBgElevated:E,marginXXS:j,padding:O,fontSize:I,controlHeightSM:R,fontSizeLG:M,colorTextLightSolid:N,colorErrorHover:P}=e,B=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,L=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:b,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new bn(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:v,itemBg:v,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:x,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:x,itemSelectedBg:x,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:B,colorActiveBarHeight:C,activeBarHeight:C,colorActiveBarBorderSize:b,activeBarBorderWidth:L,colorItemTextDisabled:c,itemDisabledColor:c,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$,groupTitleLineHeight:w,collapsedWidth:$*2,popupBg:E,itemMarginBlock:j,itemPaddingInline:O,horizontalLineHeight:`${$*1.15}px`,iconSize:I,iconMarginInlineEnd:R-I,collapsedIconSize:M,groupTitleFontSize:I,darkItemDisabledColor:new bn(N).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:a,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:N,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:l,itemWidth:B?`calc(100% + ${L}px)`:`calc(100% - ${k*2}px)`}},HV=(e,t=e,n=!0)=>sn("Menu",a=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:v,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:b,darkDangerItemSelectedBg:C,darkItemHoverBg:x,darkGroupTitleColor:h,darkItemHoverColor:$,darkItemDisabledColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:j,darkDangerItemActiveBg:O,popupBg:I,darkPopupBg:R}=a,M=a.calc(u).div(7).mul(5).equal(),N=tn(a,{menuArrowSize:M,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(M).mul(.25).equal(),menuSubMenuBg:l,calc:a.calc,popupBg:I}),P=tn(N,{itemColor:d,itemHoverColor:$,groupTitleColor:h,itemSelectedColor:p,subMenuItemSelectedColor:p,itemBg:v,popupBg:R,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:w,dangerItemColor:f,dangerItemHoverColor:E,dangerItemSelectedColor:j,dangerItemActiveBg:O,dangerItemSelectedBg:C,menuSubMenuBg:g,horizontalItemSelectedColor:p,horizontalItemSelectedBg:b});return[kV(N),_V(N),BV(N),KE(N,"light"),KE(P,"dark"),AV(N),of(N),Xo(N,"slide-up"),Xo(N,"slide-down"),lf(N,"zoom-big")]},LV,{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),Xj=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:l}=e,c=i.useContext(Fv),{prefixCls:u,inlineCollapsed:d,theme:f}=c,v=eu();let g;if(!r)g=d&&!v.length&&a&&typeof a=="string"?i.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):i.createElement("span",{className:`${u}-title-content`},a);else{const C=i.isValidElement(a)&&a.type==="span";g=i.createElement(i.Fragment,null,Or(r,{className:ue(i.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),C?a:i.createElement("span",{className:`${u}-title-content`},a))}const p=i.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[b]=Do("Menu");return i.createElement(Fv.Provider,{value:p},i.createElement(Dg,Object.assign({},En(e,["icon"]),{title:g,popupClassName:ue(u,n,`${u}-${l||f}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))};var FV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function k0(e){return e===null||e===!1}const VV={item:qj,submenu:Xj,divider:Uj},WV=i.forwardRef((e,t)=>{var n;const r=i.useContext(Vv),a=r||{},{getPrefixCls:l,getPopupContainer:c,direction:u,menu:d}=i.useContext(Rt),f=l(),{prefixCls:v,className:g,style:p,theme:b="light",expandIcon:C,_internalDisableMenuItemTitleTooltip:x,inlineCollapsed:h,siderCollapsed:$,rootClassName:w,mode:E,selectable:j,onClick:O,overflowedIndicatorPopupClassName:I}=e,R=FV(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=En(R,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const N=Xt((...G)=>{var K;O==null||O.apply(void 0,G),(K=a.onClick)===null||K===void 0||K.call(a)}),P=a.mode||E,B=j??a.selectable,L=h??$,k={horizontal:{motionName:`${f}-slide-up`},inline:Ac(f),other:{motionName:`${f}-zoom-big`}},D=l("menu",v||a.prefixCls),H=dr(D),[z,_,F]=HV(D,H,!r),W=ue(`${D}-${b}`,d==null?void 0:d.className,g),q=i.useMemo(()=>{var G,K;if(typeof C=="function"||k0(C))return C||null;if(typeof a.expandIcon=="function"||k0(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||k0(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const U=(G=C??(a==null?void 0:a.expandIcon))!==null&&G!==void 0?G:d==null?void 0:d.expandIcon;return Or(U,{className:ue(`${D}-submenu-expand-icon`,i.isValidElement(U)?(K=U.props)===null||K===void 0?void 0:K.className:void 0)})},[C,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,D]),V=i.useMemo(()=>({prefixCls:D,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:x}),[D,L,u,x,b]);return z(i.createElement(Vv.Provider,{value:null},i.createElement(Fv.Provider,{value:V},i.createElement(tu,Object.assign({getPopupContainer:c,overflowedIndicator:i.createElement(J1,null),overflowedIndicatorPopupClassName:ue(D,`${D}-${b}`,I),mode:P,selectable:B,onClick:N},M,{inlineCollapsed:L,style:Object.assign(Object.assign({},d==null?void 0:d.style),p),className:W,prefixCls:D,direction:u,defaultMotions:k,expandIcon:q,ref:t,rootClassName:ue(w,_,a.rootClassName,F,H),_internalComponents:VV})))))}),gl=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(_g);return i.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var l;(l=n.current)===null||l===void 0||l.focus(a)}})),i.createElement(WV,Object.assign({ref:n},e,r))});gl.Item=qj;gl.SubMenu=Xj;gl.Divider=Uj;gl.ItemGroup=Z1;const KV=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},UV=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:l,antCls:c,iconCls:u,motionDurationMid:d,paddingBlock:f,fontSize:v,dropdownEdgeChildPadding:g,colorTextDisabled:p,fontSizeIcon:b,controlPaddingHorizontal:C,colorBgElevated:x}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${u}-down, & > ${c}-btn-icon > ${u}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${u}-down`]:{fontSize:b},[`${u}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${u}-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,
|
|
273
|
-
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
274
|
-
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
|
|
275
|
-
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
|
|
276
|
-
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
|
|
277
|
-
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:gg},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
|
|
278
|
-
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
|
|
279
|
-
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
|
|
280
|
-
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
|
|
281
|
-
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
|
|
282
|
-
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:hg},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
283
|
-
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
284
|
-
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pg},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
285
|
-
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
286
|
-
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:bg}}},W1(e,x,{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`]:Object.assign(Object.assign({},dn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Xa(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ie(f)} ${ie(C)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:v,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 ${d}`,"&: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`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ie(f)} ${ie(C)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Xa(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ie(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:b,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ie(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(C).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Xo(e,"slide-up"),Xo(e,"slide-down"),Bc(e,"move-up"),Bc(e,"move-down"),lf(e,"zoom-big")]]},qV=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Tg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Mg(e)),GV=sn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,l=tn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[UV(l),KV(l)]},qV,{resetStyle:!1}),Ag=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:l,trigger:c,disabled:u,dropdownRender:d,popupRender:f,getPopupContainer:v,overlayClassName:g,rootClassName:p,overlayStyle:b,open:C,onOpenChange:x,visible:h,onVisibleChange:$,mouseEnterDelay:w=.15,mouseLeaveDelay:E=.1,autoAdjustOverflow:j=!0,placement:O="",overlay:I,transitionName:R,destroyOnHidden:M,destroyPopupOnHide:N}=e,{getPopupContainer:P,getPrefixCls:B,direction:L,dropdown:k}=i.useContext(Rt),D=f||d;Jo();const H=i.useMemo(()=>{const ge=B();return R!==void 0?R:O.includes("top")?`${ge}-slide-down`:`${ge}-slide-up`},[B,O,R]),z=i.useMemo(()=>O?O.includes("Center")?O.slice(0,O.indexOf("Center")):O:L==="rtl"?"bottomRight":"bottomLeft",[O,L]),_=B("dropdown",a),F=dr(_),[W,q,V]=GV(_,F),[,G]=la(),K=i.Children.only(HF(l)?i.createElement("span",null,l):l),U=Or(K,{className:ue(`${_}-trigger`,{[`${_}-rtl`]:L==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:u}),J=u?[]:c,Q=!!(J!=null&&J.includes("contextMenu")),[te,Y]=yn(!1,{value:C??h}),ae=Xt(ge=>{x==null||x(ge,{source:"trigger"}),$==null||$(ge),Y(ge)}),re=ue(g,p,q,V,F,k==null?void 0:k.className,{[`${_}-rtl`]:L==="rtl"}),Z=Sj({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:j,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),X=Xt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(x==null||x(!1,{source:"menu"}),Y(!1))}),oe=()=>{let ge;return n!=null&&n.items?ge=i.createElement(gl,Object.assign({},n)):typeof I=="function"?ge=I():ge=I,D&&(ge=D(ge)),ge=i.Children.only(typeof ge=="string"?i.createElement("span",null,ge):ge),i.createElement(Gj,{prefixCls:`${_}-menu`,rootClassName:ue(V,F),expandIcon:i.createElement("span",{className:`${_}-menu-submenu-arrow`},L==="rtl"?i.createElement(Lc,{className:`${_}-menu-submenu-arrow-icon`}):i.createElement(Si,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:({mode:he})=>{}},ge)},[le,de]=Do("Dropdown",b==null?void 0:b.zIndex);let ce=i.createElement(Ij,Object.assign({alignPoint:Q},En(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:E,visible:te,builtinPlacements:Z,arrow:!!r,overlayClassName:re,prefixCls:_,getPopupContainer:v||P,transitionName:H,trigger:J,overlay:oe,placement:z,onVisibleChange:ae,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),b),{zIndex:le}),autoDestroy:M??N}),U);return le&&(ce=i.createElement(dg.Provider,{value:de},ce)),W(ce)},XV=Jc(Ag,"align",void 0,"dropdown",e=>e),YV=e=>i.createElement(XV,Object.assign({},e),i.createElement("span",null));Ag._InternalPanelDoNotUseOrYouWillBeFired=YV;var hv={exports:{}},QV=hv.exports,XE;function ZV(){return XE||(XE=1,(function(e,t){(function(n,r){e.exports=r()})(QV,(function(){var n=1e3,r=6e4,a=36e5,l="millisecond",c="second",u="minute",d="hour",f="day",v="week",g="month",p="quarter",b="year",C="date",x="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|YYYY|YY|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,w={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(D){var H=["th","st","nd","rd"],z=D%100;return"["+D+(H[(z-20)%10]||H[z]||H[0])+"]"}},E=function(D,H,z){var _=String(D);return!_||_.length>=H?D:""+Array(H+1-_.length).join(z)+D},j={s:E,z:function(D){var H=-D.utcOffset(),z=Math.abs(H),_=Math.floor(z/60),F=z%60;return(H<=0?"+":"-")+E(_,2,"0")+":"+E(F,2,"0")},m:function D(H,z){if(H.date()<z.date())return-D(z,H);var _=12*(z.year()-H.year())+(z.month()-H.month()),F=H.clone().add(_,g),W=z-F<0,q=H.clone().add(_+(W?-1:1),g);return+(-(_+(z-F)/(W?F-q:q-F))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:g,y:b,w:v,d:f,D:C,h:d,m:u,s:c,ms:l,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},O="en",I={};I[O]=w;var R="$isDayjsObject",M=function(D){return D instanceof L||!(!D||!D[R])},N=function D(H,z,_){var F;if(!H)return O;if(typeof H=="string"){var W=H.toLowerCase();I[W]&&(F=W),z&&(I[W]=z,F=W);var q=H.split("-");if(!F&&q.length>1)return D(q[0])}else{var V=H.name;I[V]=H,F=V}return!_&&F&&(O=F),F||!_&&O},P=function(D,H){if(M(D))return D.clone();var z=typeof H=="object"?H:{};return z.date=D,z.args=arguments,new L(z)},B=j;B.l=N,B.i=M,B.w=function(D,H){return P(D,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var L=(function(){function D(z){this.$L=N(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[R]=!0}var H=D.prototype;return H.parse=function(z){this.$d=(function(_){var F=_.date,W=_.utc;if(F===null)return new Date(NaN);if(B.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var q=F.match(h);if(q){var V=q[2]-1||0,G=(q[7]||"0").substring(0,3);return W?new Date(Date.UTC(q[1],V,q[3]||1,q[4]||0,q[5]||0,q[6]||0,G)):new Date(q[1],V,q[3]||1,q[4]||0,q[5]||0,q[6]||0,G)}}return new Date(F)})(z),this.init()},H.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},H.$utils=function(){return B},H.isValid=function(){return this.$d.toString()!==x},H.isSame=function(z,_){var F=P(z);return this.startOf(_)<=F&&F<=this.endOf(_)},H.isAfter=function(z,_){return P(z)<this.startOf(_)},H.isBefore=function(z,_){return this.endOf(_)<P(z)},H.$g=function(z,_,F){return B.u(z)?this[_]:this.set(F,z)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(z,_){var F=this,W=!!B.u(_)||_,q=B.p(z),V=function(ae,re){var Z=B.w(F.$u?Date.UTC(F.$y,re,ae):new Date(F.$y,re,ae),F);return W?Z:Z.endOf(f)},G=function(ae,re){return B.w(F.toDate()[ae].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(re)),F)},K=this.$W,U=this.$M,J=this.$D,Q="set"+(this.$u?"UTC":"");switch(q){case b:return W?V(1,0):V(31,11);case g:return W?V(1,U):V(0,U+1);case v:var te=this.$locale().weekStart||0,Y=(K<te?K+7:K)-te;return V(W?J-Y:J+(6-Y),U);case f:case C:return G(Q+"Hours",0);case d:return G(Q+"Minutes",1);case u:return G(Q+"Seconds",2);case c:return G(Q+"Milliseconds",3);default:return this.clone()}},H.endOf=function(z){return this.startOf(z,!1)},H.$set=function(z,_){var F,W=B.p(z),q="set"+(this.$u?"UTC":""),V=(F={},F[f]=q+"Date",F[C]=q+"Date",F[g]=q+"Month",F[b]=q+"FullYear",F[d]=q+"Hours",F[u]=q+"Minutes",F[c]=q+"Seconds",F[l]=q+"Milliseconds",F)[W],G=W===f?this.$D+(_-this.$W):_;if(W===g||W===b){var K=this.clone().set(C,1);K.$d[V](G),K.init(),this.$d=K.set(C,Math.min(this.$D,K.daysInMonth())).$d}else V&&this.$d[V](G);return this.init(),this},H.set=function(z,_){return this.clone().$set(z,_)},H.get=function(z){return this[B.p(z)]()},H.add=function(z,_){var F,W=this;z=Number(z);var q=B.p(_),V=function(U){var J=P(W);return B.w(J.date(J.date()+Math.round(U*z)),W)};if(q===g)return this.set(g,this.$M+z);if(q===b)return this.set(b,this.$y+z);if(q===f)return V(1);if(q===v)return V(7);var G=(F={},F[u]=r,F[d]=a,F[c]=n,F)[q]||1,K=this.$d.getTime()+z*G;return B.w(K,this)},H.subtract=function(z,_){return this.add(-1*z,_)},H.format=function(z){var _=this,F=this.$locale();if(!this.isValid())return F.invalidDate||x;var W=z||"YYYY-MM-DDTHH:mm:ssZ",q=B.z(this),V=this.$H,G=this.$m,K=this.$M,U=F.weekdays,J=F.months,Q=F.meridiem,te=function(re,Z,X,oe){return re&&(re[Z]||re(_,W))||X[Z].slice(0,oe)},Y=function(re){return B.s(V%12||12,re,"0")},ae=Q||function(re,Z,X){var oe=re<12?"AM":"PM";return X?oe.toLowerCase():oe};return W.replace($,(function(re,Z){return Z||(function(X){switch(X){case"YY":return String(_.$y).slice(-2);case"YYYY":return B.s(_.$y,4,"0");case"M":return K+1;case"MM":return B.s(K+1,2,"0");case"MMM":return te(F.monthsShort,K,J,3);case"MMMM":return te(J,K);case"D":return _.$D;case"DD":return B.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return te(F.weekdaysMin,_.$W,U,2);case"ddd":return te(F.weekdaysShort,_.$W,U,3);case"dddd":return U[_.$W];case"H":return String(V);case"HH":return B.s(V,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return ae(V,G,!0);case"A":return ae(V,G,!1);case"m":return String(G);case"mm":return B.s(G,2,"0");case"s":return String(_.$s);case"ss":return B.s(_.$s,2,"0");case"SSS":return B.s(_.$ms,3,"0");case"Z":return q}return null})(re)||q.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(z,_,F){var W,q=this,V=B.p(_),G=P(z),K=(G.utcOffset()-this.utcOffset())*r,U=this-G,J=function(){return B.m(q,G)};switch(V){case b:W=J()/12;break;case g:W=J();break;case p:W=J()/3;break;case v:W=(U-K)/6048e5;break;case f:W=(U-K)/864e5;break;case d:W=U/a;break;case u:W=U/r;break;case c:W=U/n;break;default:W=U}return F?W:B.a(W)},H.daysInMonth=function(){return this.endOf(g).$D},H.$locale=function(){return I[this.$L]},H.locale=function(z,_){if(!z)return this.$L;var F=this.clone(),W=N(z,_,!0);return W&&(F.$L=W),F},H.clone=function(){return B.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()},D})(),k=L.prototype;return P.prototype=k,[["$ms",l],["$s",c],["$m",u],["$H",d],["$W",f],["$M",g],["$y",b],["$D",C]].forEach((function(D){k[D[1]]=function(H){return this.$g(H,D[0],D[1])}})),P.extend=function(D,H){return D.$i||(D(H,L,P),D.$i=!0),P},P.locale=N,P.isDayjs=M,P.unix=function(D){return P(1e3*D)},P.en=I[O],P.Ls=I,P.p={},P}))})(hv)),hv.exports}var JV=ZV();const ma=To(JV);var bv={exports:{}},eW=bv.exports,YE;function tW(){return YE||(YE=1,(function(e,t){(function(n,r){e.exports=r()})(eW,(function(){return function(n,r){r.prototype.weekday=function(a){var l=this.$locale().weekStart||0,c=this.$W,u=(c<l?c+7:c)-l;return this.$utils().u(a)?u:this.subtract(u,"day").add(a,"day")}}}))})(bv)),bv.exports}var nW=tW();const rW=To(nW);var yv={exports:{}},aW=yv.exports,QE;function oW(){return QE||(QE=1,(function(e,t){(function(n,r){e.exports=r()})(aW,(function(){return function(n,r,a){var l=r.prototype,c=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,b,C,x){var h=g.name?g:g.$locale(),$=c(h[p]),w=c(h[b]),E=$||w.map((function(O){return O.slice(0,C)}));if(!x)return E;var j=h.weekStart;return E.map((function(O,I){return E[(I+(j||0))%7]}))},d=function(){return a.Ls[a.locale()]},f=function(g,p){return g.formats[p]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,x,h){return x||h.slice(1)}))})(g.formats[p.toUpperCase()])},v=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return v.bind(this)()},a.localeData=function(){var g=d();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return f(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(d(),"months")},a.monthsShort=function(){return u(d(),"monthsShort","months",3)},a.weekdays=function(g){return u(d(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(d(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(d(),"weekdaysMin","weekdays",2,g)}}}))})(yv)),yv.exports}var iW=oW();const lW=To(iW);var Cv={exports:{}},sW=Cv.exports,ZE;function cW(){return ZE||(ZE=1,(function(e,t){(function(n,r){e.exports=r()})(sW,(function(){var n="week",r="year";return function(a,l,c){var u=l.prototype;u.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var v=c(this).startOf(r).add(1,r).date(f),g=c(this).endOf(n);if(v.isBefore(g))return 1}var p=c(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),b=this.diff(p,n,!0);return b<0?c(this).startOf("week").week():Math.ceil(b)},u.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}}))})(Cv)),Cv.exports}var uW=cW();const dW=To(uW);var Sv={exports:{}},fW=Sv.exports,JE;function mW(){return JE||(JE=1,(function(e,t){(function(n,r){e.exports=r()})(fW,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),l=this.week(),c=this.year();return l===1&&a===11?c+1:a===0&&l>=52?c-1:c}}}))})(Sv)),Sv.exports}var vW=mW();const gW=To(vW);var xv={exports:{}},pW=xv.exports,eO;function hW(){return eO||(eO=1,(function(e,t){(function(n,r){e.exports=r()})(pW,(function(){return function(n,r){var a=r.prototype,l=a.format;a.format=function(c){var u=this,d=this.$locale();if(!this.isValid())return l.bind(this)(c);var f=this.$utils(),v=(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(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}}));return l.bind(this)(v)}}}))})(xv)),xv.exports}var bW=hW();const yW=To(bW);var $v={exports:{}},CW=$v.exports,tO;function SW(){return tO||(tO=1,(function(e,t){(function(n,r){e.exports=r()})(CW,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,l=/\d\d/,c=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,d={},f=function(h){return(h=+h)+(h>68?1900:2e3)},v=function(h){return function($){this[h]=+$}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function($){if(!$||$==="Z")return 0;var w=$.match(/([+-]|\d\d)/g),E=60*w[1]+(+w[2]||0);return E===0?0:w[0]==="+"?-E:E})(h)}],p=function(h){var $=d[h];return $&&($.indexOf?$:$.s.concat($.f))},b=function(h,$){var w,E=d.meridiem;if(E){for(var j=1;j<=24;j+=1)if(h.indexOf(E(j,0,$))>-1){w=j>12;break}}else w=h===($?"pm":"PM");return w},C={A:[u,function(h){this.afternoon=b(h,!1)}],a:[u,function(h){this.afternoon=b(h,!0)}],Q:[a,function(h){this.month=3*(h-1)+1}],S:[a,function(h){this.milliseconds=100*+h}],SS:[l,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[c,v("seconds")],ss:[c,v("seconds")],m:[c,v("minutes")],mm:[c,v("minutes")],H:[c,v("hours")],h:[c,v("hours")],HH:[c,v("hours")],hh:[c,v("hours")],D:[c,v("day")],DD:[l,v("day")],Do:[u,function(h){var $=d.ordinal,w=h.match(/\d+/);if(this.day=w[0],$)for(var E=1;E<=31;E+=1)$(E).replace(/\[|\]/g,"")===h&&(this.day=E)}],w:[c,v("week")],ww:[l,v("week")],M:[c,v("month")],MM:[l,v("month")],MMM:[u,function(h){var $=p("months"),w=(p("monthsShort")||$.map((function(E){return E.slice(0,3)}))).indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[u,function(h){var $=p("months").indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],Y:[/[+-]?\d+/,v("year")],YY:[l,function(h){this.year=f(h)}],YYYY:[/\d{4}/,v("year")],Z:g,ZZ:g};function x(h){var $,w;$=h,w=d&&d.formats;for(var E=(h=$.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,B,L){var k=L&&L.toUpperCase();return B||w[L]||n[L]||w[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,H,z){return H||z.slice(1)}))}))).match(r),j=E.length,O=0;O<j;O+=1){var I=E[O],R=C[I],M=R&&R[0],N=R&&R[1];E[O]=N?{regex:M,parser:N}:I.replace(/^\[|\]$/g,"")}return function(P){for(var B={},L=0,k=0;L<j;L+=1){var D=E[L];if(typeof D=="string")k+=D.length;else{var H=D.regex,z=D.parser,_=P.slice(k),F=H.exec(_)[0];z.call(B,F),P=P.replace(F,"")}}return(function(W){var q=W.afternoon;if(q!==void 0){var V=W.hours;q?V<12&&(W.hours+=12):V===12&&(W.hours=0),delete W.afternoon}})(B),B}}return function(h,$,w){w.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(f=h.parseTwoDigitYear);var E=$.prototype,j=E.parse;E.parse=function(O){var I=O.date,R=O.utc,M=O.args;this.$u=R;var N=M[1];if(typeof N=="string"){var P=M[2]===!0,B=M[3]===!0,L=P||B,k=M[2];B&&(k=M[2]),d=this.$locale(),!P&&k&&(d=w.Ls[k]),this.$d=(function(_,F,W,q){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*_);var V=x(F)(_),G=V.year,K=V.month,U=V.day,J=V.hours,Q=V.minutes,te=V.seconds,Y=V.milliseconds,ae=V.zone,re=V.week,Z=new Date,X=U||(G||K?1:Z.getDate()),oe=G||Z.getFullYear(),le=0;G&&!K||(le=K>0?K-1:Z.getMonth());var de,ce=J||0,ge=Q||0,he=te||0,Oe=Y||0;return ae?new Date(Date.UTC(oe,le,X,ce,ge,he,Oe+60*ae.offset*1e3)):W?new Date(Date.UTC(oe,le,X,ce,ge,he,Oe)):(de=new Date(oe,le,X,ce,ge,he,Oe),re&&(de=q(de).week(re).toDate()),de)}catch{return new Date("")}})(I,N,R,w),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),L&&I!=this.format(N)&&(this.$d=new Date("")),d={}}else if(N instanceof Array)for(var D=N.length,H=1;H<=D;H+=1){M[1]=N[H-1];var z=w.apply(this,M);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}H===D&&(this.$d=new Date(""))}else j.call(this,O)}}}))})($v)),$v.exports}var xW=SW();const $W=To(xW);ma.extend($W);ma.extend(yW);ma.extend(rW);ma.extend(lW);ma.extend(dW);ma.extend(gW);ma.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(l){var c=(l||"").replace("Wo","wo");return r.bind(this)(c)}});var wW={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"},Kl=function(t){var n=wW[t];return n||t.split("_")[0]},EW={getNow:function(){var t=ma();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ma(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 ma().locale(Kl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Kl(t)).weekday(0)},getWeek:function(t,n){return n.locale(Kl(t)).week()},getShortWeekDays:function(t){return ma().locale(Kl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ma().locale(Kl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Kl(t)).format(r)},parse:function(t,n,r){for(var a=Kl(t),l=0;l<r.length;l+=1){var c=r[l],u=n;if(c.includes("wo")||c.includes("Wo")){for(var d=u.split("-")[0],f=u.split("-")[1],v=ma(d,"YYYY").startOf("year").locale(a),g=0;g<=52;g+=1){var p=v.add(g,"week");if(p.format("Wo")===f)return p}return null}var b=ma(u,c,!0).locale(a);if(b.isValid())return b}return null}}};function OW(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Ao=i.createContext(null),RW={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 Yj(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,l=e.transitionName,c=e.getPopupContainer,u=e.children,d=e.range,f=e.placement,v=e.builtinPlacements,g=v===void 0?RW:v,p=e.direction,b=e.visible,C=e.onClose,x=i.useContext(Ao),h=x.prefixCls,$="".concat(h,"-dropdown"),w=OW(f,p==="rtl");return i.createElement(mf,{showAction:[],hideAction:["click"],popupPlacement:w,builtinPlacements:g,prefixCls:$,popupTransitionName:l,popup:t,popupAlign:a,popupVisible:b,popupClassName:ue(r,ne(ne({},"".concat($,"-range"),d),"".concat($,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(j){j||C()}},u)}function eC(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 Os(e){return e==null?[]:Array.isArray(e)?e:[e]}function Od(e,t,n){var r=Ne(e);return r[t]=n,r}function Bg(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function Qj(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 Zj(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(l){return e[l]});return r!==a?e[a]:void 0}function Jj(e){return Bg(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function tC(e,t,n,r){var a=i.useMemo(function(){return e||function(c,u){var d=c;return t&&u.type==="date"?t(d,u.today):n&&u.type==="month"?n(d,u.locale):u.originNode}},[e,n,t]),l=i.useCallback(function(c,u){return a(c,se(se({},u),{},{range:r}))},[a,r]);return l}function e8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=i.useState([!1,!1]),a=fe(r,2),l=a[0],c=a[1],u=function(v,g){c(function(p){return Od(p,g,v)})},d=i.useMemo(function(){return l.map(function(f,v){if(f)return!0;var g=e[v];return g?!!(!n[v]&&!g||g&&t(g,{activeIndex:v})):!1})},[e,l,t,n]);return[d,u]}function t8(e,t,n,r,a){var l="",c=[];return e&&c.push(a?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),l=c.join(":"),r&&(l+=".SSS"),a&&(l+=" A"),l}function jW(e,t,n,r,a,l){var c=e.fieldDateTimeFormat,u=e.fieldDateFormat,d=e.fieldTimeFormat,f=e.fieldMonthFormat,v=e.fieldYearFormat,g=e.fieldWeekFormat,p=e.fieldQuarterFormat,b=e.yearFormat,C=e.cellYearFormat,x=e.cellQuarterFormat,h=e.dayFormat,$=e.cellDateFormat,w=t8(t,n,r,a,l);return se(se({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(w),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:d||w,fieldMonthFormat:f||"YYYY-MM",fieldYearFormat:v||"YYYY",fieldWeekFormat:g||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:b||"YYYY",cellYearFormat:C||"YYYY",cellQuarterFormat:x||"[Q]Q",cellDateFormat:$||h||"D"})}function n8(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,l=t.showMillisecond,c=t.use12Hours;return ve.useMemo(function(){return jW(e,n,r,a,l,c)},[e,n,r,a,l,c])}function od(e,t,n){return n??t.some(function(r){return e.includes(r)})}var IW=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function NW(e){var t=Bg(e,IW),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=Et(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function MW(e){return e&&typeof e=="string"}function r8(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function a8(e,t,n,r,a){var l=t,c=n,u=r;if(!e&&!l&&!c&&!u&&!a)l=!0,c=!0,u=!0;else if(e){var d,f,v,g=[l,c,u].some(function(C){return C===!1}),p=[l,c,u].some(function(C){return C===!0}),b=g?!0:!p;l=(d=l)!==null&&d!==void 0?d:b,c=(f=c)!==null&&f!==void 0?f:b,u=(v=u)!==null&&v!==void 0?v:b}return[l,c,u,a]}function o8(e){var t=e.showTime,n=NW(e),r=fe(n,2),a=r[0],l=r[1],c=t&&Et(t)==="object"?t:{},u=se(se({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),d=u.showMillisecond,f=u.showHour,v=u.showMinute,g=u.showSecond,p=r8(f,v,g,d),b=a8(p,f,v,g,d),C=fe(b,3);return f=C[0],v=C[1],g=C[2],[u,se(se({},u),{},{showHour:f,showMinute:v,showSecond:g,showMillisecond:d}),u.format,l]}function i8(e,t,n,r,a){var l=e==="time";if(e==="datetime"||l){for(var c=r,u=Qj(e,a,null),d=u,f=[t,n],v=0;v<f.length;v+=1){var g=Os(f[v])[0];if(MW(g)){d=g;break}}var p=c.showHour,b=c.showMinute,C=c.showSecond,x=c.showMillisecond,h=c.use12Hours,$=od(d,["a","A","LT","LLL","LTS"],h),w=r8(p,b,C,x);w||(p=od(d,["H","h","k","LT","LLL"]),b=od(d,["m","LT","LLL"]),C=od(d,["s","LTS"]),x=od(d,["SSS"]));var E=a8(w,p,b,C,x),j=fe(E,3);p=j[0],b=j[1],C=j[2];var O=t||t8(p,b,C,x,$);return se(se({},c),{},{format:O,showHour:p,showMinute:b,showSecond:C,showMillisecond:x,use12Hours:$})}return null}function TW(e,t,n){if(t===!1)return null;var r=t&&Et(t)==="object"?t:{};return r.clearIcon||n||i.createElement("span",{className:"".concat(e,"-clear-btn")})}var L0=7;function El(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function _y(e,t,n){return El(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function vs(e,t,n){return El(t,n,function(){return e.getYear(t)===e.getYear(n)})}function nO(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function PW(e,t,n){return El(t,n,function(){return vs(e,t,n)&&nO(e,t)===nO(e,n)})}function nC(e,t,n){return El(t,n,function(){return vs(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function rC(e,t,n){return El(t,n,function(){return vs(e,t,n)&&nC(e,t,n)&&e.getDate(t)===e.getDate(n)})}function l8(e,t,n){return El(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function s8(e,t,n){return El(t,n,function(){return rC(e,t,n)&&l8(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function pd(e,t,n,r){return El(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),l=e.locale.getWeekFirstDate(t,r);return vs(e,a,l)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function ya(e,t,n,r,a){switch(a){case"date":return rC(e,n,r);case"week":return pd(e,t.locale,n,r);case"month":return nC(e,n,r);case"quarter":return PW(e,n,r);case"year":return vs(e,n,r);case"decade":return _y(e,n,r);case"time":return l8(e,n,r);default:return s8(e,n,r)}}function kg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Fm(e,t,n,r,a){return ya(e,t,n,r,a)?!0:e.isAfter(n,r)}function zW(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),l=t.getWeekDay(a),c=t.addDate(a,r-l);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function Xr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Wv(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],l=["setHour","setMinute","setSecond","setMillisecond"];return l.forEach(function(c,u){n?r=e[c](r,e[a[u]](n)):r=e[c](r,0)}),r}function DW(e,t,n,r,a){var l=Xt(function(c,u){return!!(n&&n(c,u)||r&&e.isAfter(r,c)&&!ya(e,t,r,c,u.type)||a&&e.isAfter(c,a)&&!ya(e,t,a,c,u.type))});return l}function _W(e,t,n){return i.useMemo(function(){var r=Qj(e,t,n),a=Os(r),l=a[0],c=Et(l)==="object"&&l.type==="mask"?l.format:null;return[a.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),c]},[e,t,n])}function AW(e,t,n){return typeof e[0]=="function"||n?!0:t}function BW(e,t,n,r){var a=Xt(function(l,c){var u=se({type:t},c);if(delete u.activeIndex,!e.isValidate(l)||n&&n(l,u))return!0;if((t==="date"||t==="time")&&r){var d,f=c&&c.activeIndex===1?"end":"start",v=((d=r.disabledTime)===null||d===void 0?void 0:d.call(r,l,f,{from:u.from}))||{},g=v.disabledHours,p=v.disabledMinutes,b=v.disabledSeconds,C=v.disabledMilliseconds,x=r.disabledHours,h=r.disabledMinutes,$=r.disabledSeconds,w=g||x,E=p||h,j=b||$,O=e.getHour(l),I=e.getMinute(l),R=e.getSecond(l),M=e.getMillisecond(l);if(w&&w().includes(O)||E&&E(O).includes(I)||j&&j(O,I).includes(R)||C&&C(O,I,R).includes(M))return!0}return!1});return a}function Vm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=i.useMemo(function(){var r=e&&Os(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function c8(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,l=a===void 0?"date":a,c=e.prefixCls,u=c===void 0?"rc-picker":c,d=e.styles,f=d===void 0?{}:d,v=e.classNames,g=v===void 0?{}:v,p=e.order,b=p===void 0?!0:p,C=e.components,x=C===void 0?{}:C,h=e.inputRender,$=e.allowClear,w=e.clearIcon,E=e.needConfirm,j=e.multiple,O=e.format,I=e.inputReadOnly,R=e.disabledDate,M=e.minDate,N=e.maxDate,P=e.showTime,B=e.value,L=e.defaultValue,k=e.pickerValue,D=e.defaultPickerValue,H=Vm(B),z=Vm(L),_=Vm(k),F=Vm(D),W=l==="date"&&P?"datetime":l,q=W==="time"||W==="datetime",V=q||j,G=E??q,K=o8(e),U=fe(K,4),J=U[0],Q=U[1],te=U[2],Y=U[3],ae=n8(r,Q),re=i.useMemo(function(){return i8(W,te,Y,J,ae)},[W,te,Y,J,ae]),Z=i.useMemo(function(){return se(se({},e),{},{prefixCls:u,locale:ae,picker:l,styles:f,classNames:g,order:b,components:se({input:h},x),clearIcon:TW(u,$,w),showTime:re,value:H,defaultValue:z,pickerValue:_,defaultPickerValue:F},t==null?void 0:t())},[e]),X=_W(W,ae,O),oe=fe(X,2),le=oe[0],de=oe[1],ce=AW(le,I,j),ge=DW(n,r,R,M,N),he=BW(n,l,ge,re),Oe=i.useMemo(function(){return se(se({},Z),{},{needConfirm:G,inputReadOnly:ce,disabledDate:ge})},[Z,G,ce,ge]);return[Oe,W,V,le,de,he]}function kW(e,t,n){var r=yn(t,{value:e}),a=fe(r,2),l=a[0],c=a[1],u=ve.useRef(e),d=ve.useRef(),f=function(){Yt.cancel(d.current)},v=Xt(function(){c(u.current),n&&l!==u.current&&n(u.current)}),g=Xt(function(p,b){f(),u.current=p,p||b?v():d.current=Yt(v)});return ve.useEffect(function(){return f},[]),[l,g]}function u8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(v){return v})?!1:e,l=kW(a,t||!1,r),c=fe(l,2),u=c[0],d=c[1];function f(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!g.inherit||u)&&d(v,g.force)}return[u,f]}function d8(e){var t=i.useRef();return i.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var l;(l=t.current)===null||l===void 0||l.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function f8(e,t){return i.useMemo(function(){return e||(t?(Xn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=fe(n,2),a=r[0],l=r[1];return{label:a,value:l}})):[])},[e,t])}function aC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=i.useRef(t);r.current=t,as(function(){if(e)r.current(e);else{var a=Yt(function(){r.current(e)},n);return function(){Yt.cancel(a)}}},[e])}function m8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=i.useState(0),a=fe(r,2),l=a[0],c=a[1],u=i.useState(!1),d=fe(u,2),f=d[0],v=d[1],g=i.useRef([]),p=i.useRef(null),b=i.useRef(null),C=function(j){p.current=j},x=function(j){return p.current===j},h=function(j){v(j)},$=function(j){return j&&(b.current=j),b.current},w=function(j){var O=g.current,I=new Set(O.filter(function(M){return j[M]||t[M]})),R=O[O.length-1]===0?1:0;return I.size>=2||e[R]?null:R};return aC(f||n,function(){f||(g.current=[],C(null))}),i.useEffect(function(){f&&g.current.push(l)},[f,l]),[f,h,$,l,c,w,g.current,C,x]}function LW(e,t,n,r,a,l){var c=n[n.length-1],u=function(f,v){var g=fe(e,2),p=g[0],b=g[1],C=se(se({},v),{},{from:Zj(e,n)});return c===1&&t[0]&&p&&!ya(r,a,p,f,C.type)&&r.isAfter(p,f)||c===0&&t[1]&&b&&!ya(r,a,b,f,C.type)&&r.isAfter(f,b)?!0:l==null?void 0:l(f,C)};return u}function hd(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 H0=[];function v8(e,t,n,r,a,l,c,u){var d=arguments.length>8&&arguments[8]!==void 0?arguments[8]:H0,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:H0,v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:H0,g=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,b=arguments.length>13?arguments[13]:void 0,C=c==="time",x=l||0,h=function(_){var F=e.getNow();return C&&(F=Wv(e,F)),d[_]||n[_]||F},$=fe(f,2),w=$[0],E=$[1],j=yn(function(){return h(0)},{value:w}),O=fe(j,2),I=O[0],R=O[1],M=yn(function(){return h(1)},{value:E}),N=fe(M,2),P=N[0],B=N[1],L=i.useMemo(function(){var z=[I,P][x];return C?z:Wv(e,z,v[x])},[C,I,P,x,e,v]),k=function(_){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",W=[R,B][x];W(_);var q=[I,P];q[x]=_,g&&(!ya(e,t,I,q[0],c)||!ya(e,t,P,q[1],c))&&g(q,{source:F,range:x===1?"end":"start",mode:r})},D=function(_,F){if(u){var W={date:"month",week:"month",month:"year",quarter:"year"},q=W[c];if(q&&!ya(e,t,_,F,q))return hd(e,c,F,-1);if(c==="year"&&_){var V=Math.floor(e.getYear(_)/10),G=Math.floor(e.getYear(F)/10);if(V!==G)return hd(e,c,F,-1)}}return F},H=i.useRef(null);return nn(function(){if(a&&!d[x]){var z=C?null:e.getNow();if(H.current!==null&&H.current!==x?z=[I,P][x^1]:n[x]?z=x===0?n[0]:D(n[0],n[1]):n[x^1]&&(z=n[x^1]),z){p&&e.isAfter(p,z)&&(z=p);var _=u?hd(e,c,z,1):z;b&&e.isAfter(_,b)&&(z=u?hd(e,c,b,-1):b),k(z,"reset")}}},[a,x,n[x]]),i.useEffect(function(){a?H.current=x:H.current=null},[a,x]),nn(function(){a&&d&&d[x]&&k(d[x],"reset")},[a,x]),[L,k]}function g8(e,t){var n=i.useRef(e),r=i.useState({}),a=fe(r,2),l=a[1],c=function(f){return f&&t!==void 0?t:n.current},u=function(f){n.current=f,l({})};return[c,u,c(!0)]}var HW=[];function p8(e,t,n){var r=function(c){return c.map(function(u){return Xr(u,{generateConfig:e,locale:t,format:n[0]})})},a=function(c,u){for(var d=Math.max(c.length,u.length),f=-1,v=0;v<d;v+=1){var g=c[v]||null,p=u[v]||null;if(g!==p&&!s8(e,g,p)){f=v;break}}return[f<0,f!==0]};return[r,a]}function h8(e,t){return Ne(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function FW(e){var t=g8(e),n=fe(t,2),r=n[0],a=n[1],l=Xt(function(){a(e)});return i.useEffect(function(){l()},[e]),[r,a]}function b8(e,t,n,r,a,l,c,u,d){var f=yn(l,{value:c}),v=fe(f,2),g=v[0],p=v[1],b=g||HW,C=FW(b),x=fe(C,2),h=x[0],$=x[1],w=p8(e,t,n),E=fe(w,2),j=E[0],O=E[1],I=Xt(function(M){var N=Ne(M);if(r)for(var P=0;P<2;P+=1)N[P]=N[P]||null;else a&&(N=h8(N.filter(function(z){return z}),e));var B=O(h(),N),L=fe(B,2),k=L[0],D=L[1];if(!k&&($(N),u)){var H=j(N);u(N,H,{range:D?"end":"start"})}}),R=function(){d&&d(h())};return[b,p,h,I,R]}function y8(e,t,n,r,a,l,c,u,d,f){var v=e.generateConfig,g=e.locale,p=e.picker,b=e.onChange,C=e.allowEmpty,x=e.order,h=l.some(function(k){return k})?!1:x,$=p8(v,g,c),w=fe($,2),E=w[0],j=w[1],O=g8(t),I=fe(O,2),R=I[0],M=I[1],N=Xt(function(){M(t)});i.useEffect(function(){N()},[t]);var P=Xt(function(k){var D=k===null,H=Ne(k||R());if(D)for(var z=Math.max(l.length,H.length),_=0;_<z;_+=1)l[_]||(H[_]=null);h&&H[0]&&H[1]&&(H=h8(H,v)),a(H);var F=H,W=fe(F,2),q=W[0],V=W[1],G=!q,K=!V,U=C?(!G||C[0])&&(!K||C[1]):!0,J=!x||G||K||ya(v,g,q,V,p)||v.isAfter(V,q),Q=(l[0]||!q||!f(q,{activeIndex:0}))&&(l[1]||!V||!f(V,{from:q,activeIndex:1})),te=D||U&&J&&Q;if(te){n(H);var Y=j(H,t),ae=fe(Y,1),re=ae[0];b&&!re&&b(D&&H.every(function(Z){return!Z})?null:H,E(H))}return te}),B=Xt(function(k,D){var H=Od(R(),k,r()[k]);M(H),D&&P()}),L=!u&&!d;return aC(!L,function(){L&&(P(),a(t),N())},2),[B,P]}function C8(e,t,n,r,a){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!a&&(e==="date"||e==="time")}function VW(e,t,n,r,a,l){var c=e;function u(g,p,b){var C=l[g](c),x=b.find(function(E){return E.value===C});if(!x||x.disabled){var h=b.filter(function(E){return!E.disabled}),$=Ne(h).reverse(),w=$.find(function(E){return E.value<=C})||h[0];w&&(C=w.value,c=l[p](c,C))}return C}var d=u("getHour","setHour",t()),f=u("getMinute","setMinute",n(d)),v=u("getSecond","setSecond",r(d,f));return u("getMillisecond","setMillisecond",a(d,f,v)),c}function Wm(){return[]}function Km(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],u=n>=1?n|0:1,d=e;d<=t;d+=u){var f=a.includes(d);(!f||!r)&&c.push({label:eC(d,l),value:d,disabled:f})}return c}function oC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,l=r.hourStep,c=l===void 0?1:l,u=r.minuteStep,d=u===void 0?1:u,f=r.secondStep,v=f===void 0?1:f,g=r.millisecondStep,p=g===void 0?100:g,b=r.hideDisabledOptions,C=r.disabledTime,x=r.disabledHours,h=r.disabledMinutes,$=r.disabledSeconds,w=i.useMemo(function(){return n||e.getNow()},[n,e]),E=i.useCallback(function(F){var W=(C==null?void 0:C(F))||{};return[W.disabledHours||x||Wm,W.disabledMinutes||h||Wm,W.disabledSeconds||$||Wm,W.disabledMilliseconds||Wm]},[C,x,h,$]),j=i.useMemo(function(){return E(w)},[w,E]),O=fe(j,4),I=O[0],R=O[1],M=O[2],N=O[3],P=i.useCallback(function(F,W,q,V){var G=Km(0,23,c,b,F()),K=a?G.map(function(te){return se(se({},te),{},{label:eC(te.value%12||12,2)})}):G,U=function(Y){return Km(0,59,d,b,W(Y))},J=function(Y,ae){return Km(0,59,v,b,q(Y,ae))},Q=function(Y,ae,re){return Km(0,999,p,b,V(Y,ae,re),3)};return[K,U,J,Q]},[b,c,a,p,d,v]),B=i.useMemo(function(){return P(I,R,M,N)},[P,I,R,M,N]),L=fe(B,4),k=L[0],D=L[1],H=L[2],z=L[3],_=function(W,q){var V=function(){return k},G=D,K=H,U=z;if(q){var J=E(q),Q=fe(J,4),te=Q[0],Y=Q[1],ae=Q[2],re=Q[3],Z=P(te,Y,ae,re),X=fe(Z,4),oe=X[0],le=X[1],de=X[2],ce=X[3];V=function(){return oe},G=le,K=de,U=ce}var ge=VW(W,V,G,K,U,e);return ge};return[_,k,D,H,z]}function WW(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,l=e.showTime,c=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,v=e.generateConfig,g=e.disabledDate,p=i.useContext(Ao),b=p.prefixCls,C=p.locale,x=p.button,h=x===void 0?"button":x,$=v.getNow(),w=oC(v,l,$),E=fe(w,1),j=E[0],O=r==null?void 0:r(t),I=g($,{type:t}),R=function(){if(!I){var D=j($);u(D)}},M="".concat(b,"-now"),N="".concat(M,"-btn"),P=a&&i.createElement("li",{className:M},i.createElement("a",{className:ue(N,I&&"".concat(N,"-disabled")),"aria-disabled":I,onClick:R},n==="date"?C.today:C.now)),B=f&&i.createElement("li",{className:"".concat(b,"-ok")},i.createElement(h,{disabled:d,onClick:c},C.ok)),L=(P||B)&&i.createElement("ul",{className:"".concat(b,"-ranges")},P,B);return!O&&!L?null:i.createElement("div",{className:"".concat(b,"-footer")},O&&i.createElement("div",{className:"".concat(b,"-footer-extra")},O),L)}function S8(e,t,n){function r(a,l){var c=a.findIndex(function(d){return ya(e,t,d,l,n)});if(c===-1)return[].concat(Ne(a),[l]);var u=Ne(a);return u.splice(c,1),u}return r}var Rs=i.createContext(null);function Lg(){return i.useContext(Rs)}function nu(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,l=e.disabledDate,c=e.minDate,u=e.maxDate,d=e.cellRender,f=e.hoverValue,v=e.hoverRangeValue,g=e.onHover,p=e.values,b=e.pickerValue,C=e.onSelect,x=e.prevIcon,h=e.nextIcon,$=e.superPrevIcon,w=e.superNextIcon,E=r.getNow(),j={now:E,values:p,pickerValue:b,prefixCls:n,disabledDate:l,minDate:c,maxDate:u,cellRender:d,hoverValue:f,hoverRangeValue:v,onHover:g,locale:a,generateConfig:r,onSelect:C,panelType:t,prevIcon:x,nextIcon:h,superPrevIcon:$,superNextIcon:w};return[j,E]}var fl=i.createContext({});function hf(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,l=e.prefixColumn,c=e.rowClassName,u=e.titleFormat,d=e.getCellText,f=e.getCellClassName,v=e.headerCells,g=e.cellSelection,p=g===void 0?!0:g,b=e.disabledDate,C=Lg(),x=C.prefixCls,h=C.panelType,$=C.now,w=C.disabledDate,E=C.cellRender,j=C.onHover,O=C.hoverValue,I=C.hoverRangeValue,R=C.generateConfig,M=C.values,N=C.locale,P=C.onSelect,B=b||w,L="".concat(x,"-cell"),k=i.useContext(fl),D=k.onCellDblClick,H=function(K){return M.some(function(U){return U&&ya(R,N,K,U,h)})},z=[],_=0;_<t;_+=1){for(var F=[],W=void 0,q=function(){var K=_*n+V,U=a(r,K),J=B==null?void 0:B(U,{type:h});V===0&&(W=U,l&&F.push(l(W)));var Q=!1,te=!1,Y=!1;if(p&&I){var ae=fe(I,2),re=ae[0],Z=ae[1];Q=kg(R,re,Z,U),te=ya(R,N,U,re,h),Y=ya(R,N,U,Z,h)}var X=u?Xr(U,{locale:N,format:u,generateConfig:R}):void 0,oe=i.createElement("div",{className:"".concat(L,"-inner")},d(U));F.push(i.createElement("td",{key:V,title:X,className:ue(L,se(ne(ne(ne(ne(ne(ne({},"".concat(L,"-disabled"),J),"".concat(L,"-hover"),(O||[]).some(function(le){return ya(R,N,U,le,h)})),"".concat(L,"-in-range"),Q&&!te&&!Y),"".concat(L,"-range-start"),te),"".concat(L,"-range-end"),Y),"".concat(x,"-cell-selected"),!I&&h!=="week"&&H(U)),f(U))),onClick:function(){J||P(U)},onDoubleClick:function(){!J&&D&&D()},onMouseEnter:function(){J||j==null||j(U)},onMouseLeave:function(){J||j==null||j(null)}},E?E(U,{prefixCls:x,originNode:oe,today:$,type:h,locale:N}):oe))},V=0;V<n;V+=1)q();z.push(i.createElement("tr",{key:_,className:c==null?void 0:c(W)},F))}return i.createElement("div",{className:"".concat(x,"-body")},i.createElement("table",{className:"".concat(x,"-content")},v&&i.createElement("thead",null,i.createElement("tr",null,v)),i.createElement("tbody",null,z)))}var Um={visibility:"hidden"};function ru(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,l=e.getEnd,c=e.children,u=Lg(),d=u.prefixCls,f=u.prevIcon,v=f===void 0?"‹":f,g=u.nextIcon,p=g===void 0?"›":g,b=u.superPrevIcon,C=b===void 0?"«":b,x=u.superNextIcon,h=x===void 0?"»":x,$=u.minDate,w=u.maxDate,E=u.generateConfig,j=u.locale,O=u.pickerValue,I=u.panelType,R="".concat(d,"-header"),M=i.useContext(fl),N=M.hidePrev,P=M.hideNext,B=M.hideHeader,L=i.useMemo(function(){if(!$||!t||!l)return!1;var G=l(t(-1,O));return!Fm(E,j,G,$,I)},[$,t,O,l,E,j,I]),k=i.useMemo(function(){if(!$||!n||!l)return!1;var G=l(n(-1,O));return!Fm(E,j,G,$,I)},[$,n,O,l,E,j,I]),D=i.useMemo(function(){if(!w||!t||!a)return!1;var G=a(t(1,O));return!Fm(E,j,w,G,I)},[w,t,O,a,E,j,I]),H=i.useMemo(function(){if(!w||!n||!a)return!1;var G=a(n(1,O));return!Fm(E,j,w,G,I)},[w,n,O,a,E,j,I]),z=function(K){t&&r(t(K,O))},_=function(K){n&&r(n(K,O))};if(B)return null;var F="".concat(R,"-prev-btn"),W="".concat(R,"-next-btn"),q="".concat(R,"-super-prev-btn"),V="".concat(R,"-super-next-btn");return i.createElement("div",{className:R},n&&i.createElement("button",{type:"button","aria-label":j.previousYear,onClick:function(){return _(-1)},tabIndex:-1,className:ue(q,k&&"".concat(q,"-disabled")),disabled:k,style:N?Um:{}},C),t&&i.createElement("button",{type:"button","aria-label":j.previousMonth,onClick:function(){return z(-1)},tabIndex:-1,className:ue(F,L&&"".concat(F,"-disabled")),disabled:L,style:N?Um:{}},v),i.createElement("div",{className:"".concat(R,"-view")},c),t&&i.createElement("button",{type:"button","aria-label":j.nextMonth,onClick:function(){return z(1)},tabIndex:-1,className:ue(W,D&&"".concat(W,"-disabled")),disabled:D,style:P?Um:{}},p),n&&i.createElement("button",{type:"button","aria-label":j.nextYear,onClick:function(){return _(1)},tabIndex:-1,className:ue(V,H&&"".concat(V,"-disabled")),disabled:H,style:P?Um:{}},h))}function Hg(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,l=e.generateConfig,c=e.pickerValue,u=e.onPickerValueChange,d=e.onModeChange,f=e.mode,v=f===void 0?"date":f,g=e.disabledDate,p=e.onSelect,b=e.onHover,C=e.showWeek,x="".concat(t,"-").concat(r,"-panel"),h="".concat(t,"-cell"),$=v==="week",w=nu(e,v),E=fe(w,2),j=E[0],O=E[1],I=l.locale.getWeekFirstDay(a.locale),R=l.setDate(c,1),M=zW(a.locale,l,R),N=l.getMonth(c),P=C===void 0?$:C,B=P?function(G){var K=g==null?void 0:g(G,{type:"week"});return i.createElement("td",{key:"week",className:ue(h,"".concat(h,"-week"),ne({},"".concat(h,"-disabled"),K)),onClick:function(){K||p(G)},onMouseEnter:function(){K||b==null||b(G)},onMouseLeave:function(){K||b==null||b(null)}},i.createElement("div",{className:"".concat(h,"-inner")},l.locale.getWeek(a.locale,G)))}:null,L=[],k=a.shortWeekDays||(l.locale.getShortWeekDays?l.locale.getShortWeekDays(a.locale):[]);B&&L.push(i.createElement("th",{key:"empty"},i.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var D=0;D<L0;D+=1)L.push(i.createElement("th",{key:D},k[(D+I)%L0]));var H=function(K,U){return l.addDate(K,U)},z=function(K){return Xr(K,{locale:a,format:a.cellDateFormat,generateConfig:l})},_=function(K){var U=ne(ne({},"".concat(t,"-cell-in-view"),nC(l,K,c)),"".concat(t,"-cell-today"),rC(l,K,O));return U},F=a.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(a.locale):[]),W=i.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){d("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},Xr(c,{locale:a,format:a.yearFormat,generateConfig:l})),q=i.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){d("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?Xr(c,{locale:a,format:a.monthFormat,generateConfig:l}):F[N]),V=a.monthBeforeYear?[q,W]:[W,q];return i.createElement(Rs.Provider,{value:j},i.createElement("div",{className:ue(x,C&&"".concat(x,"-show-week"))},i.createElement(ru,{offset:function(K){return l.addMonth(c,K)},superOffset:function(K){return l.addYear(c,K)},onChange:u,getStart:function(K){return l.setDate(K,1)},getEnd:function(K){var U=l.setDate(K,1);return U=l.addMonth(U,1),l.addDate(U,-1)}},V),i.createElement(hf,be({titleFormat:a.fieldDateFormat},e,{colNum:L0,rowNum:6,baseDate:M,headerCells:L,getCellDate:H,getCellText:z,getCellClassName:_,prefixColumn:B,cellSelection:!$}))))}var KW=1/3;function UW(e,t){var n=i.useRef(!1),r=i.useRef(null),a=i.useRef(null),l=function(){return n.current},c=function(){Yt.cancel(r.current),n.current=!1},u=i.useRef(),d=function(){var g=e.current;if(a.current=null,u.current=0,g){var p=g.querySelector('[data-value="'.concat(t,'"]')),b=g.querySelector("li"),C=function x(){c(),n.current=!0,u.current+=1;var h=g.scrollTop,$=b.offsetTop,w=p.offsetTop,E=w-$;if(w===0&&p!==b||!Yc(g)){u.current<=5&&(r.current=Yt(x));return}var j=h+(E-h)*KW,O=Math.abs(E-j);if(a.current!==null&&a.current<O){c();return}if(a.current=O,O<=1){g.scrollTop=E,c();return}g.scrollTop=j,r.current=Yt(x)};p&&b&&C()}},f=Xt(d);return[f,c,l]}var qW=300;function GW(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function id(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,l=e.onChange,c=e.onHover,u=e.onDblClick,d=e.changeOnScroll,f=Lg(),v=f.prefixCls,g=f.cellRender,p=f.now,b=f.locale,C="".concat(v,"-time-panel"),x="".concat(v,"-time-panel-cell"),h=i.useRef(null),$=i.useRef(),w=function(){clearTimeout($.current)},E=UW(h,n??r),j=fe(E,3),O=j[0],I=j[1],R=j[2];nn(function(){return O(),w(),function(){I(),w()}},[n,r,GW(t)]);var M=function(B){w();var L=B.target;!R()&&d&&($.current=setTimeout(function(){var k=h.current,D=k.querySelector("li").offsetTop,H=Array.from(k.querySelectorAll("li")),z=H.map(function(V){return V.offsetTop-D}),_=z.map(function(V,G){return t[G].disabled?Number.MAX_SAFE_INTEGER:Math.abs(V-L.scrollTop)}),F=Math.min.apply(Math,Ne(_)),W=_.findIndex(function(V){return V===F}),q=t[W];q&&!q.disabled&&l(q.value)},qW))},N="".concat(C,"-column");return i.createElement("ul",{className:N,ref:h,"data-type":a,onScroll:M},t.map(function(P){var B=P.label,L=P.value,k=P.disabled,D=i.createElement("div",{className:"".concat(x,"-inner")},B);return i.createElement("li",{key:L,className:ue(x,ne(ne({},"".concat(x,"-selected"),n===L),"".concat(x,"-disabled"),k)),onClick:function(){k||l(L)},onDoubleClick:function(){!k&&u&&u()},onMouseEnter:function(){c(L)},onMouseLeave:function(){c(null)},"data-value":L},g?g(L,{prefixCls:v,originNode:D,today:p,type:"time",subType:a,locale:b}):D)}))}function Zi(e){return e<12}function XW(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,l=e.use12Hours,c=e.changeOnScroll,u=Lg(),d=u.prefixCls,f=u.values,v=u.generateConfig,g=u.locale,p=u.onSelect,b=u.onHover,C=b===void 0?function(){}:b,x=u.pickerValue,h=(f==null?void 0:f[0])||null,$=i.useContext(fl),w=$.onCellDblClick,E=oC(v,e,h),j=fe(E,5),O=j[0],I=j[1],R=j[2],M=j[3],N=j[4],P=function(Me){var Le=h&&v[Me](h),tt=x&&v[Me](x);return[Le,tt]},B=P("getHour"),L=fe(B,2),k=L[0],D=L[1],H=P("getMinute"),z=fe(H,2),_=z[0],F=z[1],W=P("getSecond"),q=fe(W,2),V=q[0],G=q[1],K=P("getMillisecond"),U=fe(K,2),J=U[0],Q=U[1],te=k===null?null:Zi(k)?"am":"pm",Y=i.useMemo(function(){return l?Zi(k)?I.filter(function($e){return Zi($e.value)}):I.filter(function($e){return!Zi($e.value)}):I},[k,I,l]),ae=function(Me,Le){var tt,yt=Me.filter(function(We){return!We.disabled});return Le??(yt==null||(tt=yt[0])===null||tt===void 0?void 0:tt.value)},re=ae(I,k),Z=i.useMemo(function(){return R(re)},[R,re]),X=ae(Z,_),oe=i.useMemo(function(){return M(re,X)},[M,re,X]),le=ae(oe,V),de=i.useMemo(function(){return N(re,X,le)},[N,re,X,le]),ce=ae(de,J),ge=i.useMemo(function(){if(!l)return[];var $e=v.getNow(),Me=v.setHour($e,6),Le=v.setHour($e,18),tt=function(We,nt){var dt=g.cellMeridiemFormat;return dt?Xr(We,{generateConfig:v,locale:g,format:dt}):nt};return[{label:tt(Me,"AM"),value:"am",disabled:I.every(function(yt){return yt.disabled||!Zi(yt.value)})},{label:tt(Le,"PM"),value:"pm",disabled:I.every(function(yt){return yt.disabled||Zi(yt.value)})}]},[I,l,v,g]),he=function(Me){var Le=O(Me);p(Le)},Oe=i.useMemo(function(){var $e=h||x||v.getNow(),Me=function(tt){return tt!=null};return Me(k)?($e=v.setHour($e,k),$e=v.setMinute($e,_),$e=v.setSecond($e,V),$e=v.setMillisecond($e,J)):Me(D)?($e=v.setHour($e,D),$e=v.setMinute($e,F),$e=v.setSecond($e,G),$e=v.setMillisecond($e,Q)):Me(re)&&($e=v.setHour($e,re),$e=v.setMinute($e,X),$e=v.setSecond($e,le),$e=v.setMillisecond($e,ce)),$e},[h,x,k,_,V,J,re,X,le,ce,D,F,G,Q,v]),je=function(Me,Le){return Me===null?null:v[Le](Oe,Me)},pe=function(Me){return je(Me,"setHour")},we=function(Me){return je(Me,"setMinute")},Se=function(Me){return je(Me,"setSecond")},Ce=function(Me){return je(Me,"setMillisecond")},De=function(Me){return Me===null?null:Me==="am"&&!Zi(k)?v.setHour(Oe,k-12):Me==="pm"&&Zi(k)?v.setHour(Oe,k+12):Oe},Ae=function(Me){he(pe(Me))},Qe=function(Me){he(we(Me))},Ke=function(Me){he(Se(Me))},Fe=function(Me){he(Ce(Me))},Ge=function(Me){he(De(Me))},Te=function(Me){C(pe(Me))},Ee=function(Me){C(we(Me))},_e=function(Me){C(Se(Me))},Re=function(Me){C(Ce(Me))},Pe=function(Me){C(De(Me))},ye={onDblClick:w,changeOnScroll:c};return i.createElement("div",{className:"".concat(d,"-content")},t&&i.createElement(id,be({units:Y,value:k,optionalValue:D,type:"hour",onChange:Ae,onHover:Te},ye)),n&&i.createElement(id,be({units:Z,value:_,optionalValue:F,type:"minute",onChange:Qe,onHover:Ee},ye)),r&&i.createElement(id,be({units:oe,value:V,optionalValue:G,type:"second",onChange:Ke,onHover:_e},ye)),a&&i.createElement(id,be({units:de,value:J,optionalValue:Q,type:"millisecond",onChange:Fe,onHover:Re},ye)),l&&i.createElement(id,be({units:ge,value:te,type:"meridiem",onChange:Ge,onHover:Pe},ye)))}function x8(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,l=e.showTime,c=l||{},u=c.format,d="".concat(t,"-time-panel"),f=nu(e,"time"),v=fe(f,1),g=v[0];return i.createElement(Rs.Provider,{value:g},i.createElement("div",{className:ue(d)},i.createElement(ru,null,n?Xr(n,{locale:r,format:u,generateConfig:a}):" "),i.createElement(XW,l)))}function YW(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,l=e.value,c=e.pickerValue,u=e.onHover,d="".concat(t,"-datetime-panel"),f=oC(n,r),v=fe(f,1),g=v[0],p=function(h){return l?Wv(n,h,l):Wv(n,h,c)},b=function(h){u==null||u(h&&p(h))},C=function(h){var $=p(h);a(g($,$))};return i.createElement("div",{className:d},i.createElement(Hg,be({},e,{onSelect:C,onHover:b})),i.createElement(x8,e))}function QW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.disabledDate,c=e.onPickerValueChange,u="".concat(t,"-decade-panel"),d=nu(e,"decade"),f=fe(d,1),v=f[0],g=function(I){var R=Math.floor(r.getYear(I)/100)*100;return r.setYear(I,R)},p=function(I){var R=g(I);return r.addYear(R,99)},b=g(a),C=p(a),x=r.addYear(b,-10),h=function(I,R){return r.addYear(I,R*10)},$=function(I){var R=n.cellYearFormat,M=Xr(I,{locale:n,format:R,generateConfig:r}),N=Xr(r.addYear(I,9),{locale:n,format:R,generateConfig:r});return"".concat(M,"-").concat(N)},w=function(I){return ne({},"".concat(t,"-cell-in-view"),_y(r,I,b)||_y(r,I,C)||kg(r,b,C,I))},E=l?function(O,I){var R=r.setDate(O,1),M=r.setMonth(R,0),N=r.setYear(M,Math.floor(r.getYear(M)/10)*10),P=r.addYear(N,10),B=r.addDate(P,-1);return l(N,I)&&l(B,I)}:null,j="".concat(Xr(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Xr(C,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Rs.Provider,{value:v},i.createElement("div",{className:u},i.createElement(ru,{superOffset:function(I){return r.addYear(a,I*100)},onChange:c,getStart:g,getEnd:p},j),i.createElement(hf,be({},e,{disabledDate:E,colNum:3,rowNum:4,baseDate:x,getCellDate:h,getCellText:$,getCellClassName:w}))))}function ZW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-month-panel"),f=nu(e,"month"),v=fe(f,1),g=v[0],p=r.setMonth(a,0),b=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),C=function(j,O){return r.addMonth(j,O)},x=function(j){var O=r.getMonth(j);return n.monthFormat?Xr(j,{locale:n,format:n.monthFormat,generateConfig:r}):b[O]},h=function(){return ne({},"".concat(t,"-cell-in-view"),!0)},$=l?function(E,j){var O=r.setDate(E,1),I=r.setMonth(O,r.getMonth(O)+1),R=r.addDate(I,-1);return l(O,j)&&l(R,j)}:null,w=i.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Xr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Rs.Provider,{value:g},i.createElement("div",{className:d},i.createElement(ru,{superOffset:function(j){return r.addYear(a,j)},onChange:c,getStart:function(j){return r.setMonth(j,0)},getEnd:function(j){return r.setMonth(j,11)}},w),i.createElement(hf,be({},e,{disabledDate:$,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:C,getCellText:x,getCellClassName:h}))))}function JW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,u="".concat(t,"-quarter-panel"),d=nu(e,"quarter"),f=fe(d,1),v=f[0],g=r.setMonth(a,0),p=function($,w){return r.addMonth($,w*3)},b=function($){return Xr($,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},C=function(){return ne({},"".concat(t,"-cell-in-view"),!0)},x=i.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Xr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Rs.Provider,{value:v},i.createElement("div",{className:u},i.createElement(ru,{superOffset:function($){return r.addYear(a,$)},onChange:l,getStart:function($){return r.setMonth($,0)},getEnd:function($){return r.setMonth($,11)}},x),i.createElement(hf,be({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:g,getCellDate:p,getCellText:b,getCellClassName:C}))))}function eK(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,l=e.hoverValue,c=e.hoverRangeValue,u=r.locale,d="".concat(t,"-week-panel-row"),f=function(g){var p={};if(c){var b=fe(c,2),C=b[0],x=b[1],h=pd(n,u,C,g),$=pd(n,u,x,g);p["".concat(d,"-range-start")]=h,p["".concat(d,"-range-end")]=$,p["".concat(d,"-range-hover")]=!h&&!$&&kg(n,C,x,g)}return l&&(p["".concat(d,"-hover")]=l.some(function(w){return pd(n,u,g,w)})),ue(d,ne({},"".concat(d,"-selected"),!c&&pd(n,u,a,g)),p)};return i.createElement(Hg,be({},e,{mode:"week",panelName:"week",rowClassName:f}))}function tK(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-year-panel"),f=nu(e,"year"),v=fe(f,1),g=v[0],p=function(R){var M=Math.floor(r.getYear(R)/10)*10;return r.setYear(R,M)},b=function(R){var M=p(R);return r.addYear(M,9)},C=p(a),x=b(a),h=r.addYear(C,-1),$=function(R,M){return r.addYear(R,M)},w=function(R){return Xr(R,{locale:n,format:n.cellYearFormat,generateConfig:r})},E=function(R){return ne({},"".concat(t,"-cell-in-view"),vs(r,R,C)||vs(r,R,x)||kg(r,C,x,R))},j=l?function(I,R){var M=r.setMonth(I,0),N=r.setDate(M,1),P=r.addYear(N,1),B=r.addDate(P,-1);return l(N,R)&&l(B,R)}:null,O=i.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Xr(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Xr(x,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Rs.Provider,{value:g},i.createElement("div",{className:d},i.createElement(ru,{superOffset:function(R){return r.addYear(a,R*10)},onChange:c,getStart:p,getEnd:b},O),i.createElement(hf,be({},e,{disabledDate:j,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:$,getCellText:w,getCellClassName:E}))))}var nK={date:Hg,datetime:YW,week:eK,month:ZW,quarter:JW,year:tK,decade:QW,time:x8};function rK(e,t){var n,r=e.locale,a=e.generateConfig,l=e.direction,c=e.prefixCls,u=e.tabIndex,d=u===void 0?0:u,f=e.multiple,v=e.defaultValue,g=e.value,p=e.onChange,b=e.onSelect,C=e.defaultPickerValue,x=e.pickerValue,h=e.onPickerValueChange,$=e.mode,w=e.onPanelChange,E=e.picker,j=E===void 0?"date":E,O=e.showTime,I=e.hoverValue,R=e.hoverRangeValue,M=e.cellRender,N=e.dateRender,P=e.monthCellRender,B=e.components,L=B===void 0?{}:B,k=e.hideHeader,D=((n=i.useContext(Ao))===null||n===void 0?void 0:n.prefixCls)||c||"rc-picker",H=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:H.current}});var z=o8(e),_=fe(z,4),F=_[0],W=_[1],q=_[2],V=_[3],G=n8(r,W),K=j==="date"&&O?"datetime":j,U=i.useMemo(function(){return i8(K,q,V,F,G)},[K,q,V,F,G]),J=a.getNow(),Q=yn(j,{value:$,postState:function(Pe){return Pe||"date"}}),te=fe(Q,2),Y=te[0],ae=te[1],re=Y==="date"&&U?"datetime":Y,Z=S8(a,r,K),X=yn(v,{value:g}),oe=fe(X,2),le=oe[0],de=oe[1],ce=i.useMemo(function(){var Re=Os(le).filter(function(Pe){return Pe});return f?Re:Re.slice(0,1)},[le,f]),ge=Xt(function(Re){de(Re),p&&(Re===null||ce.length!==Re.length||ce.some(function(Pe,ye){return!ya(a,r,Pe,Re[ye],K)}))&&(p==null||p(f?Re:Re[0]))}),he=Xt(function(Re){if(b==null||b(Re),Y===j){var Pe=f?Z(ce,Re):[Re];ge(Pe)}}),Oe=yn(C||ce[0]||J,{value:x}),je=fe(Oe,2),pe=je[0],we=je[1];i.useEffect(function(){ce[0]&&!x&&we(ce[0])},[ce[0]]);var Se=function(Pe,ye){w==null||w(Pe||x,ye||Y)},Ce=function(Pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;we(Pe),h==null||h(Pe),ye&&Se(Pe)},De=function(Pe,ye){ae(Pe),ye&&Ce(ye),Se(ye,Pe)},Ae=function(Pe){if(he(Pe),Ce(Pe),Y!==j){var ye=["decade","year"],$e=[].concat(ye,["month"]),Me={quarter:[].concat(ye,["quarter"]),week:[].concat(Ne($e),["week"]),date:[].concat(Ne($e),["date"])},Le=Me[j]||$e,tt=Le.indexOf(Y),yt=Le[tt+1];yt&&De(yt,Pe)}},Qe=i.useMemo(function(){var Re,Pe;if(Array.isArray(R)){var ye=fe(R,2);Re=ye[0],Pe=ye[1]}else Re=R;return!Re&&!Pe?null:(Re=Re||Pe,Pe=Pe||Re,a.isAfter(Re,Pe)?[Pe,Re]:[Re,Pe])},[R,a]),Ke=tC(M,N,P),Fe=L[re]||nK[re]||Hg,Ge=i.useContext(fl),Te=i.useMemo(function(){return se(se({},Ge),{},{hideHeader:k})},[Ge,k]),Ee="".concat(D,"-panel"),_e=Bg(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return i.createElement(fl.Provider,{value:Te},i.createElement("div",{ref:H,tabIndex:d,className:ue(Ee,ne({},"".concat(Ee,"-rtl"),l==="rtl"))},i.createElement(Fe,be({},_e,{showTime:U,prefixCls:D,locale:G,generateConfig:a,onModeChange:De,pickerValue:pe,onPickerValueChange:function(Pe){Ce(Pe,!0)},value:ce[0],onSelect:Ae,values:ce,cellRender:Ke,hoverRangeValue:Qe,hoverValue:I}))))}var F0=i.memo(i.forwardRef(rK));function aK(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,l=e.needConfirm,c=e.onSubmit,u=e.range,d=e.hoverValue,f=i.useContext(Ao),v=f.prefixCls,g=f.generateConfig,p=i.useCallback(function(w,E){return hd(g,t,w,E)},[g,t]),b=i.useMemo(function(){return p(r,1)},[r,p]),C=function(E){a(p(E,-1))},x={onCellDblClick:function(){l&&c()}},h=t==="time",$=se(se({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return u?$.hoverRangeValue=d:$.hoverValue=d,n?i.createElement("div",{className:"".concat(v,"-panels")},i.createElement(fl.Provider,{value:se(se({},x),{},{hideNext:!0})},i.createElement(F0,$)),i.createElement(fl.Provider,{value:se(se({},x),{},{hidePrev:!0})},i.createElement(F0,be({},$,{pickerValue:b,onPickerValueChange:C})))):i.createElement(fl.Provider,{value:se({},x)},i.createElement(F0,$))}function rO(e){return typeof e=="function"?e():e}function oK(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?i.createElement("div",{className:"".concat(t,"-presets")},i.createElement("ul",null,n.map(function(l,c){var u=l.label,d=l.value;return i.createElement("li",{key:c,onClick:function(){r(rO(d))},onMouseEnter:function(){a(rO(d))},onMouseLeave:function(){a(null)}},u)}))):null}function $8(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,l=e.range,c=e.multiple,u=e.activeInfo,d=u===void 0?[0,0,0]:u,f=e.presets,v=e.onPresetHover,g=e.onPresetSubmit,p=e.onFocus,b=e.onBlur,C=e.onPanelMouseDown,x=e.direction,h=e.value,$=e.onSelect,w=e.isInvalid,E=e.defaultOpenValue,j=e.onOk,O=e.onSubmit,I=i.useContext(Ao),R=I.prefixCls,M="".concat(R,"-panel"),N=x==="rtl",P=i.useRef(null),B=i.useRef(null),L=i.useState(0),k=fe(L,2),D=k[0],H=k[1],z=i.useState(0),_=fe(z,2),F=_[0],W=_[1],q=i.useState(0),V=fe(q,2),G=V[0],K=V[1],U=function(Ae){Ae.width&&H(Ae.width)},J=fe(d,3),Q=J[0],te=J[1],Y=J[2],ae=i.useState(0),re=fe(ae,2),Z=re[0],X=re[1];i.useEffect(function(){X(10)},[Q]),i.useEffect(function(){if(l&&B.current){var De,Ae=((De=P.current)===null||De===void 0?void 0:De.offsetWidth)||0,Qe=B.current.getBoundingClientRect();if(!Qe.height||Qe.right<0){X(function(Te){return Math.max(0,Te-1)});return}var Ke=(N?te-Ae:Q)-Qe.left;if(K(Ke),D&&D<Y){var Fe=N?Qe.right-(te-Ae+D):Q+Ae-Qe.left-D,Ge=Math.max(0,Fe);W(Ge)}else W(0)}},[Z,N,D,Q,te,Y,l]);function oe(De){return De.filter(function(Ae){return Ae})}var le=i.useMemo(function(){return oe(Os(h))},[h]),de=r==="time"&&!le.length,ce=i.useMemo(function(){return de?oe([E]):le},[de,le,E]),ge=de?E:le,he=i.useMemo(function(){return ce.length?ce.some(function(De){return w(De)}):!0},[ce,w]),Oe=function(){de&&$(E),j(),O()},je=i.createElement("div",{className:"".concat(R,"-panel-layout")},i.createElement(oK,{prefixCls:R,presets:f,onClick:g,onHover:v}),i.createElement("div",null,i.createElement(aK,be({},e,{value:ge})),i.createElement(WW,be({},e,{showNow:c?!1:a,invalid:he,onSubmit:Oe}))));t&&(je=t(je));var pe="".concat(M,"-container"),we="marginLeft",Se="marginRight",Ce=i.createElement("div",{onMouseDown:C,tabIndex:-1,className:ue(pe,"".concat(R,"-").concat(n,"-panel-container")),style:ne(ne({},N?Se:we,F),N?we:Se,"auto"),onFocus:p,onBlur:b},je);return l&&(Ce=i.createElement("div",{onMouseDown:C,ref:B,className:ue("".concat(R,"-range-wrapper"),"".concat(R,"-").concat(r,"-range-wrapper"))},i.createElement("div",{ref:P,className:"".concat(R,"-range-arrow"),style:{left:G}}),i.createElement(va,{onResize:U},Ce))),Ce}function w8(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,l=e.locale,c=e.preserveInvalidOnBlur,u=e.inputReadOnly,d=e.required,f=e["aria-required"],v=e.onSubmit,g=e.onFocus,p=e.onBlur,b=e.onInputChange,C=e.onInvalid,x=e.open,h=e.onOpenChange,$=e.onKeyDown,w=e.onChange,E=e.activeHelp,j=e.name,O=e.autoComplete,I=e.id,R=e.value,M=e.invalid,N=e.placeholder,P=e.disabled,B=e.activeIndex,L=e.allHelp,k=e.picker,D=function(G,K){var U=a.locale.parse(l.locale,G,[K]);return U&&a.isValidate(U)?U:null},H=n[0],z=i.useCallback(function(V){return Xr(V,{locale:l,format:H,generateConfig:a})},[l,a,H]),_=i.useMemo(function(){return R.map(z)},[R,z]),F=i.useMemo(function(){var V=k==="time"?8:10,G=typeof H=="function"?H(a.getNow()).length:H.length;return Math.max(V,G)+2},[H,k,a]),W=function(G){for(var K=0;K<n.length;K+=1){var U=n[K];if(typeof U=="string"){var J=D(G,U);if(J)return J}}return!1},q=function(G){function K(Q){return G!==void 0?Q[G]:Q}var U=Nr(e,{aria:!0,data:!0}),J=se(se({},U),{},{format:r,validateFormat:function(te){return!!W(te)},preserveInvalidOnBlur:c,readOnly:u,required:d,"aria-required":f,name:j,autoComplete:O,size:F,id:K(I),value:K(_)||"",invalid:K(M),placeholder:K(N),active:B===G,helped:L||E&&B===G,disabled:K(P),onFocus:function(te){g(te,G)},onBlur:function(te){p(te,G)},onSubmit:v,onChange:function(te){b();var Y=W(te);if(Y){C(!1,G),w(Y,G);return}C(!!te,G)},onHelp:function(){h(!0,{index:G})},onKeyDown:function(te){var Y=!1;if($==null||$(te,function(){Y=!0}),!te.defaultPrevented&&!Y)switch(te.key){case"Escape":h(!1,{index:G});break;case"Enter":x||h(!0);break}}},t==null?void 0:t({valueTexts:_}));return Object.keys(J).forEach(function(Q){J[Q]===void 0&&delete J[Q]}),J};return[q,z]}var iK=["onMouseEnter","onMouseLeave"];function E8(e){return i.useMemo(function(){return Bg(e,iK)},[e])}var lK=["icon","type"],sK=["onClear"];function Fg(e){var t=e.icon,n=e.type,r=Lt(e,lK),a=i.useContext(Ao),l=a.prefixCls;return t?i.createElement("span",be({className:"".concat(l,"-").concat(n)},r),t):null}function Ay(e){var t=e.onClear,n=Lt(e,sK);return i.createElement(Fg,be({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var V0=["YYYY","MM","DD","HH","mm","ss","SSS"],aO="顧",cK=(function(){function e(t){fr(this,e),ne(this,"format",void 0),ne(this,"maskFormat",void 0),ne(this,"cells",void 0),ne(this,"maskCells",void 0),this.format=t;var n=V0.map(function(u){return"(".concat(u,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(u){return aO.repeat(u.length)});var a=new RegExp("(".concat(V0.join("|"),")")),l=(t.split(a)||[]).filter(function(u){return u}),c=0;this.cells=l.map(function(u){var d=V0.includes(u),f=c,v=c+u.length;return c=v,{text:u,mask:d,start:f,end:v}}),this.maskCells=this.cells.filter(function(u){return u.mask})}return mr(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,l=r.end;return[a||0,l||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],l=n[r];if(!l||a!==aO&&a!==l)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,a=0,l=0;l<this.maskCells.length;l+=1){var c=this.maskCells[l],u=c.start,d=c.end;if(n>=u&&n<=d)return l;var f=Math.min(Math.abs(n-u),Math.abs(n-d));f<r&&(r=f,a=l)}return a}}]),e})();function uK(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]}var dK=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],By=i.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,l=e.suffixIcon,c=e.format,u=e.validateFormat,d=e.onChange;e.onInput;var f=e.helped,v=e.onHelp,g=e.onSubmit,p=e.onKeyDown,b=e.preserveInvalidOnBlur,C=b===void 0?!1:b,x=e.invalid,h=e.clearIcon,$=Lt(e,dK),w=e.value,E=e.onFocus,j=e.onBlur,O=e.onMouseUp,I=i.useContext(Ao),R=I.prefixCls,M=I.input,N=M===void 0?"input":M,P="".concat(R,"-input"),B=i.useState(!1),L=fe(B,2),k=L[0],D=L[1],H=i.useState(w),z=fe(H,2),_=z[0],F=z[1],W=i.useState(""),q=fe(W,2),V=q[0],G=q[1],K=i.useState(null),U=fe(K,2),J=U[0],Q=U[1],te=i.useState(null),Y=fe(te,2),ae=Y[0],re=Y[1],Z=_||"";i.useEffect(function(){F(w)},[w]);var X=i.useRef(),oe=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:X.current,inputElement:oe.current,focus:function(Re){oe.current.focus(Re)},blur:function(){oe.current.blur()}}});var le=i.useMemo(function(){return new cK(c||"")},[c]),de=i.useMemo(function(){return f?[0,0]:le.getSelection(J)},[le,J,f]),ce=fe(de,2),ge=ce[0],he=ce[1],Oe=function(Re){Re&&Re!==c&&Re!==w&&v()},je=Xt(function(_e){u(_e)&&d(_e),F(_e),Oe(_e)}),pe=function(Re){if(!c){var Pe=Re.target.value;Oe(Pe),F(Pe),d(Pe)}},we=function(Re){var Pe=Re.clipboardData.getData("text");u(Pe)&&je(Pe)},Se=i.useRef(!1),Ce=function(){Se.current=!0},De=function(Re){var Pe=Re.target,ye=Pe.selectionStart,$e=le.getMaskCellIndex(ye);Q($e),re({}),O==null||O(Re),Se.current=!1},Ae=function(Re){D(!0),Q(0),G(""),E(Re)},Qe=function(Re){j(Re)},Ke=function(Re){D(!1),Qe(Re)};aC(n,function(){!n&&!C&&F(w)});var Fe=function(Re){Re.key==="Enter"&&u(Z)&&g(),p==null||p(Re)},Ge=function(Re){Fe(Re);var Pe=Re.key,ye=null,$e=null,Me=he-ge,Le=c.slice(ge,he),tt=function(dt){Q(function(at){var pt=at+dt;return pt=Math.max(pt,0),pt=Math.min(pt,le.size()-1),pt})},yt=function(dt){var at=uK(Le),pt=fe(at,3),zt=pt[0],Ot=pt[1],ct=pt[2],$t=Z.slice(ge,he),St=Number($t);if(isNaN(St))return String(ct||(dt>0?zt:Ot));var et=St+dt,Ve=Ot-zt+1;return String(zt+(Ve+et-zt)%Ve)};switch(Pe){case"Backspace":case"Delete":ye="",$e=Le;break;case"ArrowLeft":ye="",tt(-1);break;case"ArrowRight":ye="",tt(1);break;case"ArrowUp":ye="",$e=yt(1);break;case"ArrowDown":ye="",$e=yt(-1);break;default:isNaN(Number(Pe))||(ye=V+Pe,$e=ye);break}if(ye!==null&&(G(ye),ye.length>=Me&&(tt(1),G(""))),$e!==null){var We=Z.slice(0,ge)+eC($e,Me)+Z.slice(he);je(We.slice(0,c.length))}re({})},Te=i.useRef();nn(function(){if(!(!k||!c||Se.current)){if(!le.match(Z)){je(c);return}return oe.current.setSelectionRange(ge,he),Te.current=Yt(function(){oe.current.setSelectionRange(ge,he)}),function(){Yt.cancel(Te.current)}}},[le,c,k,Z,J,ge,he,ae,je]);var Ee=c?{onFocus:Ae,onBlur:Ke,onKeyDown:Ge,onMouseDown:Ce,onMouseUp:De,onPaste:we}:{};return i.createElement("div",{ref:X,className:ue(P,ne(ne({},"".concat(P,"-active"),n&&a),"".concat(P,"-placeholder"),f))},i.createElement(N,be({ref:oe,"aria-invalid":x,autoComplete:"off"},$,{onKeyDown:Fe,onBlur:Qe},Ee,{value:Z,onChange:pe})),i.createElement(Fg,{type:"suffix",icon:l}),h)}),fK=["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"],mK=["index"];function vK(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,l=e.suffixIcon,c=e.separator,u=c===void 0?"~":c,d=e.activeIndex;e.activeHelp,e.allHelp;var f=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var v=e.placeholder,g=e.className,p=e.style,b=e.onClick,C=e.onClear,x=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var h=e.disabled,$=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onActiveInfo;e.placement;var j=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,I=e.tabIndex,R=Lt(e,fK),M=w==="rtl",N=i.useContext(Ao),P=N.prefixCls,B=i.useMemo(function(){if(typeof n=="string")return[n];var ae=n||{};return[ae.start,ae.end]},[n]),L=i.useRef(),k=i.useRef(),D=i.useRef(),H=function(re){var Z;return(Z=[k,D][re])===null||Z===void 0?void 0:Z.current};i.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(re){if(Et(re)==="object"){var Z,X=re||{},oe=X.index,le=oe===void 0?0:oe,de=Lt(X,mK);(Z=H(le))===null||Z===void 0||Z.focus(de)}else{var ce;(ce=H(re??0))===null||ce===void 0||ce.focus()}},blur:function(){var re,Z;(re=H(0))===null||re===void 0||re.blur(),(Z=H(1))===null||Z===void 0||Z.blur()}}});var z=E8(R),_=i.useMemo(function(){return Array.isArray(v)?v:[v,v]},[v]),F=w8(se(se({},e),{},{id:B,placeholder:_})),W=fe(F,1),q=W[0],V=i.useState({position:"absolute",width:0}),G=fe(V,2),K=G[0],U=G[1],J=Xt(function(){var ae=H(d);if(ae){var re=ae.nativeElement.getBoundingClientRect(),Z=L.current.getBoundingClientRect(),X=re.left-Z.left;U(function(oe){return se(se({},oe),{},{width:re.width,left:X})}),E([re.left,re.right,Z.width])}});i.useEffect(function(){J()},[d]);var Q=a&&(x[0]&&!h[0]||x[1]&&!h[1]),te=O&&!h[0],Y=O&&!te&&!h[1];return i.createElement(va,{onResize:J},i.createElement("div",be({},z,{className:ue(P,"".concat(P,"-range"),ne(ne(ne(ne({},"".concat(P,"-focused"),f),"".concat(P,"-disabled"),h.every(function(ae){return ae})),"".concat(P,"-invalid"),$.some(function(ae){return ae})),"".concat(P,"-rtl"),M),g),style:p,ref:L,onClick:b,onMouseDown:function(re){var Z=re.target;Z!==k.current.inputElement&&Z!==D.current.inputElement&&re.preventDefault(),j==null||j(re)}}),r&&i.createElement("div",{className:"".concat(P,"-prefix")},r),i.createElement(By,be({ref:k},q(0),{autoFocus:te,tabIndex:I,"date-range":"start"})),i.createElement("div",{className:"".concat(P,"-range-separator")},u),i.createElement(By,be({ref:D},q(1),{autoFocus:Y,tabIndex:I,"date-range":"end"})),i.createElement("div",{className:"".concat(P,"-active-bar"),style:K}),i.createElement(Fg,{type:"suffix",icon:l}),Q&&i.createElement(Ay,{icon:a,onClear:C})))}var gK=i.forwardRef(vK);function oO(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function qm(e){return e===1?"end":"start"}function pK(e,t){var n=c8(e,function(){var cn=e.disabled,gt=e.allowEmpty,It=oO(cn,!1),fn=oO(gt,!1);return{disabled:It,allowEmpty:fn}}),r=fe(n,6),a=r[0],l=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=a.prefixCls,g=a.styles,p=a.classNames,b=a.defaultValue,C=a.value,x=a.needConfirm,h=a.onKeyDown,$=a.disabled,w=a.allowEmpty,E=a.disabledDate,j=a.minDate,O=a.maxDate,I=a.defaultOpen,R=a.open,M=a.onOpenChange,N=a.locale,P=a.generateConfig,B=a.picker,L=a.showNow,k=a.showToday,D=a.showTime,H=a.mode,z=a.onPanelChange,_=a.onCalendarChange,F=a.onOk,W=a.defaultPickerValue,q=a.pickerValue,V=a.onPickerValueChange,G=a.inputReadOnly,K=a.suffixIcon,U=a.onFocus,J=a.onBlur,Q=a.presets,te=a.ranges,Y=a.components,ae=a.cellRender,re=a.dateRender,Z=a.monthCellRender,X=a.onClick,oe=d8(t),le=u8(R,I,$,M),de=fe(le,2),ce=de[0],ge=de[1],he=function(gt,It){($.some(function(fn){return!fn})||!gt)&&ge(gt,It)},Oe=b8(P,N,u,!0,!1,b,C,_,F),je=fe(Oe,5),pe=je[0],we=je[1],Se=je[2],Ce=je[3],De=je[4],Ae=Se(),Qe=m8($,w,ce),Ke=fe(Qe,9),Fe=Ke[0],Ge=Ke[1],Te=Ke[2],Ee=Ke[3],_e=Ke[4],Re=Ke[5],Pe=Ke[6],ye=Ke[7],$e=Ke[8],Me=function(gt,It){Ge(!0),U==null||U(gt,{range:qm(It??Ee)})},Le=function(gt,It){Ge(!1),J==null||J(gt,{range:qm(It??Ee)})},tt=i.useMemo(function(){if(!D)return null;var cn=D.disabledTime,gt=cn?function(It){var fn=qm(Ee),zn=Zj(Ae,Pe,Ee);return cn(It,fn,{from:zn})}:void 0;return se(se({},D),{},{disabledTime:gt})},[D,Ee,Ae,Pe]),yt=yn([B,B],{value:H}),We=fe(yt,2),nt=We[0],dt=We[1],at=nt[Ee]||B,pt=at==="date"&&tt?"datetime":at,zt=pt===B&&pt!=="time",Ot=C8(B,at,L,k,!0),ct=y8(a,pe,we,Se,Ce,$,u,Fe,ce,f),$t=fe(ct,2),St=$t[0],et=$t[1],Ve=LW(Ae,$,Pe,P,N,E),Ue=e8(Ae,f,w),mt=fe(Ue,2),Tt=mt[0],Nt=mt[1],Vt=v8(P,N,Ae,nt,ce,Ee,l,zt,W,q,tt==null?void 0:tt.defaultOpenValue,V,j,O),ft=fe(Vt,2),lt=ft[0],At=ft[1],Ut=Xt(function(cn,gt,It){var fn=Od(nt,Ee,gt);if((fn[0]!==nt[0]||fn[1]!==nt[1])&&dt(fn),z&&It!==!1){var zn=Ne(Ae);cn&&(zn[Ee]=cn),z(zn,fn)}}),rn=function(gt,It){return Od(Ae,It,gt)},Qt=function(gt,It){var fn=Ae;gt&&(fn=rn(gt,Ee)),ye(Ee);var zn=Re(fn);Ce(fn),St(Ee,zn===null),zn===null?he(!1,{force:!0}):It||oe.current.focus({index:zn})},pn=function(gt){var It,fn=gt.target.getRootNode();if(!oe.current.nativeElement.contains((It=fn.activeElement)!==null&&It!==void 0?It:document.activeElement)){var zn=$.findIndex(function(Zn){return!Zn});zn>=0&&oe.current.focus({index:zn})}he(!0),X==null||X(gt)},qt=function(){et(null),he(!1,{force:!0})},un=i.useState(null),st=fe(un,2),xt=st[0],ht=st[1],Ye=i.useState(null),Ze=fe(Ye,2),ut=Ze[0],Dt=Ze[1],Kt=i.useMemo(function(){return ut||Ae},[Ae,ut]);i.useEffect(function(){ce||Dt(null)},[ce]);var vt=i.useState([0,0,0]),Mt=fe(vt,2),Ft=Mt[0],$n=Mt[1],_n=f8(Q,te),Pn=function(gt){Dt(gt),ht("preset")},Wn=function(gt){var It=et(gt);It&&he(!1,{force:!0})},jn=function(gt){Qt(gt)},Bn=function(gt){Dt(gt?rn(gt,Ee):null),ht("cell")},$r=function(gt){he(!0),Me(gt)},Pr=function(){Te("panel")},br=function(gt){var It=Od(Ae,Ee,gt);Ce(It),!x&&!c&&l===pt&&Qt(gt)},Sn=function(){he(!1)},Bt=tC(ae,re,Z,qm(Ee)),kt=Ae[Ee]||null,an=Xt(function(cn){return f(cn,{activeIndex:Ee})}),Pt=i.useMemo(function(){var cn=Nr(a,!1),gt=En(a,[].concat(Ne(Object.keys(cn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return gt},[a]),_t=i.createElement($8,be({},Pt,{showNow:Ot,showTime:tt,range:!0,multiplePanel:zt,activeInfo:Ft,disabledDate:Ve,onFocus:$r,onBlur:Le,onPanelMouseDown:Pr,picker:B,mode:at,internalMode:pt,onPanelChange:Ut,format:d,value:kt,isInvalid:an,onChange:null,onSelect:br,pickerValue:lt,defaultOpenValue:Os(D==null?void 0:D.defaultOpenValue)[Ee],onPickerValueChange:At,hoverValue:Kt,onHover:Bn,needConfirm:x,onSubmit:Qt,onOk:De,presets:_n,onPresetHover:Pn,onPresetSubmit:Wn,onNow:jn,cellRender:Bt})),vn=function(gt,It){var fn=rn(gt,It);Ce(fn)},In=function(){Te("input")},Yn=function(gt,It){var fn=Pe.length,zn=Pe[fn-1];if(fn&&zn!==It&&x&&!w[zn]&&!$e(zn)&&Ae[zn]){oe.current.focus({index:zn});return}Te("input"),he(!0,{inherit:!0}),Ee!==It&&ce&&!x&&c&&Qt(null,!0),_e(It),Me(gt,It)},wr=function(gt,It){if(he(!1),!x&&Te()==="input"){var fn=Re(Ae);St(Ee,fn===null)}Le(gt,It)},Qn=function(gt,It){gt.key==="Tab"&&Qt(null,!0),h==null||h(gt,It)},Rr=i.useMemo(function(){return{prefixCls:v,locale:N,generateConfig:P,button:Y.button,input:Y.input}},[v,N,P,Y.button,Y.input]);return nn(function(){ce&&Ee!==void 0&&Ut(null,B,!1)},[ce,Ee,B]),nn(function(){var cn=Te();!ce&&cn==="input"&&(he(!1),Qt(null,!0)),!ce&&c&&!x&&cn==="panel"&&(he(!0),Qt())},[ce]),i.createElement(Ao.Provider,{value:Rr},i.createElement(Yj,be({},Jj(a),{popupElement:_t,popupStyle:g.popup,popupClassName:p.popup,visible:ce,onClose:Sn,range:!0}),i.createElement(gK,be({},a,{ref:oe,suffixIcon:K,activeIndex:Fe||ce?Ee:null,activeHelp:!!ut,allHelp:!!ut&&xt==="preset",focused:Fe,onFocus:Yn,onBlur:wr,onKeyDown:Qn,onSubmit:Qt,value:Kt,maskFormat:d,onChange:vn,onInputChange:In,format:u,inputReadOnly:G,disabled:$,open:ce,onOpenChange:he,onClick:pn,onClear:qt,invalid:Tt,onInvalid:Nt,onActiveInfo:$n}))))}var hK=i.forwardRef(pK);function bK(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,l=a===void 0?"×":a,c=e.formatDate,u=e.disabled,d=e.maxTagCount,f=e.placeholder,v="".concat(t,"-selector"),g="".concat(t,"-selection"),p="".concat(g,"-overflow");function b(h,$){return i.createElement("span",{className:ue("".concat(g,"-item")),title:typeof h=="string"?h:null},i.createElement("span",{className:"".concat(g,"-item-content")},h),!u&&$&&i.createElement("span",{onMouseDown:function(E){E.preventDefault()},onClick:$,className:"".concat(g,"-item-remove")},l))}function C(h){var $=c(h),w=function(j){j&&j.stopPropagation(),r(h)};return b($,w)}function x(h){var $="+ ".concat(h.length," ...");return b($)}return i.createElement("div",{className:v},i.createElement(Eo,{prefixCls:p,data:n,renderItem:C,renderRest:x,itemKey:function($){return c($)},maxCount:d}),!n.length&&i.createElement("span",{className:"".concat(t,"-selection-placeholder")},f))}var yK=["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 CK(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,l=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,d=e.generateConfig,f=e.placeholder,v=e.className,g=e.style,p=e.onClick,b=e.onClear,C=e.internalPicker,x=e.value,h=e.onChange,$=e.onSubmit;e.onInputChange;var w=e.multiple,E=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var j=e.disabled,O=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var R=e.onMouseDown;e.required,e["aria-required"];var M=e.autoFocus,N=e.tabIndex,P=e.removeIcon,B=Lt(e,yK),L=I==="rtl",k=i.useContext(Ao),D=k.prefixCls,H=i.useRef(),z=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(te){var Y;(Y=z.current)===null||Y===void 0||Y.focus(te)},blur:function(){var te;(te=z.current)===null||te===void 0||te.blur()}}});var _=E8(B),F=function(te){h([te])},W=function(te){var Y=x.filter(function(ae){return ae&&!ya(d,u,ae,te,C)});h(Y),n||$()},q=w8(se(se({},e),{},{onChange:F}),function(Q){var te=Q.valueTexts;return{value:te[0]||"",active:c}}),V=fe(q,2),G=V[0],K=V[1],U=!!(a&&x.length&&!j),J=w?i.createElement(i.Fragment,null,i.createElement(bK,{prefixCls:D,value:x,onRemove:W,formatDate:K,maxTagCount:E,disabled:j,removeIcon:P,placeholder:f}),i.createElement("input",{className:"".concat(D,"-multiple-input"),value:x.map(K).join(","),ref:z,readOnly:!0,autoFocus:M,tabIndex:N}),i.createElement(Fg,{type:"suffix",icon:l}),U&&i.createElement(Ay,{icon:a,onClear:b})):i.createElement(By,be({ref:z},G(),{autoFocus:M,tabIndex:N,suffixIcon:l,clearIcon:U&&i.createElement(Ay,{icon:a,onClear:b}),showActiveCls:!1}));return i.createElement("div",be({},_,{className:ue(D,ne(ne(ne(ne(ne({},"".concat(D,"-multiple"),w),"".concat(D,"-focused"),c),"".concat(D,"-disabled"),j),"".concat(D,"-invalid"),O),"".concat(D,"-rtl"),L),v),style:g,ref:H,onClick:p,onMouseDown:function(te){var Y,ae=te.target;ae!==((Y=z.current)===null||Y===void 0?void 0:Y.inputElement)&&te.preventDefault(),R==null||R(te)}}),r&&i.createElement("div",{className:"".concat(D,"-prefix")},r),J)}var SK=i.forwardRef(CK);function xK(e,t){var n=c8(e),r=fe(n,6),a=r[0],l=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=a,g=v.prefixCls,p=v.styles,b=v.classNames,C=v.order,x=v.defaultValue,h=v.value,$=v.needConfirm,w=v.onChange,E=v.onKeyDown,j=v.disabled,O=v.disabledDate,I=v.minDate,R=v.maxDate,M=v.defaultOpen,N=v.open,P=v.onOpenChange,B=v.locale,L=v.generateConfig,k=v.picker,D=v.showNow,H=v.showToday,z=v.showTime,_=v.mode,F=v.onPanelChange,W=v.onCalendarChange,q=v.onOk,V=v.multiple,G=v.defaultPickerValue,K=v.pickerValue,U=v.onPickerValueChange,J=v.inputReadOnly,Q=v.suffixIcon,te=v.removeIcon,Y=v.onFocus,ae=v.onBlur,re=v.presets,Z=v.components,X=v.cellRender,oe=v.dateRender,le=v.monthCellRender,de=v.onClick,ce=d8(t);function ge(Pt){return Pt===null?null:V?Pt:Pt[0]}var he=S8(L,B,l),Oe=u8(N,M,[j],P),je=fe(Oe,2),pe=je[0],we=je[1],Se=function(_t,vn,In){if(W){var Yn=se({},In);delete Yn.range,W(ge(_t),ge(vn),Yn)}},Ce=function(_t){q==null||q(ge(_t))},De=b8(L,B,u,!1,C,x,h,Se,Ce),Ae=fe(De,5),Qe=Ae[0],Ke=Ae[1],Fe=Ae[2],Ge=Ae[3],Te=Ae[4],Ee=Fe(),_e=m8([j]),Re=fe(_e,4),Pe=Re[0],ye=Re[1],$e=Re[2],Me=Re[3],Le=function(_t){ye(!0),Y==null||Y(_t,{})},tt=function(_t){ye(!1),ae==null||ae(_t,{})},yt=yn(k,{value:_}),We=fe(yt,2),nt=We[0],dt=We[1],at=nt==="date"&&z?"datetime":nt,pt=C8(k,nt,D,H),zt=w&&function(Pt,_t){w(ge(Pt),ge(_t))},Ot=y8(se(se({},a),{},{onChange:zt}),Qe,Ke,Fe,Ge,[],u,Pe,pe,f),ct=fe(Ot,2),$t=ct[1],St=e8(Ee,f),et=fe(St,2),Ve=et[0],Ue=et[1],mt=i.useMemo(function(){return Ve.some(function(Pt){return Pt})},[Ve]),Tt=function(_t,vn){if(U){var In=se(se({},vn),{},{mode:vn.mode[0]});delete In.range,U(_t[0],In)}},Nt=v8(L,B,Ee,[nt],pe,Me,l,!1,G,K,Os(z==null?void 0:z.defaultOpenValue),Tt,I,R),Vt=fe(Nt,2),ft=Vt[0],lt=Vt[1],At=Xt(function(Pt,_t,vn){if(dt(_t),F&&vn!==!1){var In=Pt||Ee[Ee.length-1];F(In,_t)}}),Ut=function(){$t(Fe()),we(!1,{force:!0})},rn=function(_t){!j&&!ce.current.nativeElement.contains(document.activeElement)&&ce.current.focus(),we(!0),de==null||de(_t)},Qt=function(){$t(null),we(!1,{force:!0})},pn=i.useState(null),qt=fe(pn,2),un=qt[0],st=qt[1],xt=i.useState(null),ht=fe(xt,2),Ye=ht[0],Ze=ht[1],ut=i.useMemo(function(){var Pt=[Ye].concat(Ne(Ee)).filter(function(_t){return _t});return V?Pt:Pt.slice(0,1)},[Ee,Ye,V]),Dt=i.useMemo(function(){return!V&&Ye?[Ye]:Ee.filter(function(Pt){return Pt})},[Ee,Ye,V]);i.useEffect(function(){pe||Ze(null)},[pe]);var Kt=f8(re),vt=function(_t){Ze(_t),st("preset")},Mt=function(_t){var vn=V?he(Fe(),_t):[_t],In=$t(vn);In&&!V&&we(!1,{force:!0})},Ft=function(_t){Mt(_t)},$n=function(_t){Ze(_t),st("cell")},_n=function(_t){we(!0),Le(_t)},Pn=function(_t){if($e("panel"),!(V&&at!==k)){var vn=V?he(Fe(),_t):[_t];Ge(vn),!$&&!c&&l===at&&Ut()}},Wn=function(){we(!1)},jn=tC(X,oe,le),Bn=i.useMemo(function(){var Pt=Nr(a,!1),_t=En(a,[].concat(Ne(Object.keys(Pt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return se(se({},_t),{},{multiple:a.multiple})},[a]),$r=i.createElement($8,be({},Bn,{showNow:pt,showTime:z,disabledDate:O,onFocus:_n,onBlur:tt,picker:k,mode:nt,internalMode:at,onPanelChange:At,format:d,value:Ee,isInvalid:f,onChange:null,onSelect:Pn,pickerValue:ft,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:lt,hoverValue:ut,onHover:$n,needConfirm:$,onSubmit:Ut,onOk:Te,presets:Kt,onPresetHover:vt,onPresetSubmit:Mt,onNow:Ft,cellRender:jn})),Pr=function(_t){Ge(_t)},br=function(){$e("input")},Sn=function(_t){$e("input"),we(!0,{inherit:!0}),Le(_t)},Bt=function(_t){we(!1),tt(_t)},kt=function(_t,vn){_t.key==="Tab"&&Ut(),E==null||E(_t,vn)},an=i.useMemo(function(){return{prefixCls:g,locale:B,generateConfig:L,button:Z.button,input:Z.input}},[g,B,L,Z.button,Z.input]);return nn(function(){pe&&Me!==void 0&&At(null,k,!1)},[pe,Me,k]),nn(function(){var Pt=$e();!pe&&Pt==="input"&&(we(!1),Ut()),!pe&&c&&!$&&Pt==="panel"&&Ut()},[pe]),i.createElement(Ao.Provider,{value:an},i.createElement(Yj,be({},Jj(a),{popupElement:$r,popupStyle:p.popup,popupClassName:b.popup,visible:pe,onClose:Wn}),i.createElement(SK,be({},a,{ref:ce,suffixIcon:Q,removeIcon:te,activeHelp:!!Ye,allHelp:!!Ye&&un==="preset",focused:Pe,onFocus:Sn,onBlur:Bt,onKeyDown:kt,onSubmit:Ut,value:Dt,maskFormat:d,onChange:Pr,onInputChange:br,internalPicker:l,format:u,inputReadOnly:J,disabled:j,open:pe,onOpenChange:we,onClick:rn,onClear:Qt,invalid:mt,onInvalid:function(_t){Ue(_t,0)}}))))}var $K=i.forwardRef(xK);const O8=i.createContext(null),wK=O8.Provider,R8=i.createContext(null),EK=R8.Provider;var OK=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],j8=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,l=e.style,c=e.checked,u=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,v=e.type,g=v===void 0?"checkbox":v,p=e.title,b=e.onChange,C=Lt(e,OK),x=i.useRef(null),h=i.useRef(null),$=yn(f,{value:c}),w=fe($,2),E=w[0],j=w[1];i.useImperativeHandle(t,function(){return{focus:function(M){var N;(N=x.current)===null||N===void 0||N.focus(M)},blur:function(){var M;(M=x.current)===null||M===void 0||M.blur()},input:x.current,nativeElement:h.current}});var O=ue(r,a,ne(ne({},"".concat(r,"-checked"),E),"".concat(r,"-disabled"),u)),I=function(M){u||("checked"in e||j(M.target.checked),b==null||b({target:se(se({},e),{},{type:g,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return i.createElement("span",{className:O,title:p,style:l,ref:h},i.createElement("input",be({},C,{className:"".concat(r,"-input"),ref:x,onChange:I,disabled:u,checked:!!E,type:g})),i.createElement("span",{className:"".concat(r,"-inner")}))});function I8(e){const t=ve.useRef(null),n=()=>{Yt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Yt(()=>{t.current=null})},l=>{t.current&&(l.stopPropagation(),n()),e==null||e(l)}]}const RK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},dn(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"}})}},jK=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:l,motionDurationMid:c,motionEaseInOutCirc:u,colorBgContainer:d,colorBorder:f,lineWidth:v,colorBgContainerDisabled:g,colorTextDisabled:p,paddingXS:b,dotColorDisabled:C,lineType:x,radioColor:h,radioBgColor:$,calc:w}=e,E=`${t}-inner`,O=w(a).sub(w(4).mul(2)),I=w(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},dn(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:`${ie(v)} ${x} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
287
|
-
&:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Io(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:I,height:I,marginBlockStart:w(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:I,transform:"scale(0)",opacity:0,transition:`all ${l} ${u}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:I,height:I,backgroundColor:d,borderColor:f,borderStyle:"solid",borderWidth:v,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:$,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${l} ${u}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:g,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:C}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${w(O).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},IK=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:l,colorBorder:c,motionDurationMid:u,buttonPaddingInline:d,fontSize:f,buttonBg:v,fontSizeLG:g,controlHeightLG:p,controlHeightSM:b,paddingXS:C,borderRadius:x,borderRadiusSM:h,borderRadiusLG:$,buttonCheckedBg:w,buttonSolidCheckedColor:E,colorTextDisabled:j,colorBgContainerDisabled:O,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:R,colorPrimary:M,colorPrimaryHover:N,colorPrimaryActive:P,buttonSolidCheckedBg:B,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:k,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:ie(D(n).sub(D(a).mul(2)).equal()),background:v,border:`${ie(a)} ${l} ${c}`,borderBlockStartWidth:D(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${u}`,`background ${u}`,`box-shadow ${u}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:D(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${ie(a)} ${l} ${c}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:p,fontSize:g,lineHeight:ie(D(p).sub(D(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:b,paddingInline:D(C).sub(a).equal(),paddingBlock:0,lineHeight:ie(D(b).sub(D(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":Io(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:M,background:w,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:B,borderColor:B,"&:hover":{color:E,background:L,borderColor:L},"&:active":{color:E,background:k,borderColor:k}},"&-disabled":{color:j,backgroundColor:O,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:j,backgroundColor:O,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:I,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},NK=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:l,colorText:c,colorBgContainer:u,colorTextDisabled:d,controlItemBgActiveDisabled:f,colorTextLightSolid:v,colorPrimary:g,colorPrimaryHover:p,colorPrimaryActive:b,colorWhite:C}=e,x=4,h=l,$=t?h-x*2:h-(x+a)*2;return{radioSize:h,dotSize:$,dotColorDisabled:d,buttonSolidCheckedColor:v,buttonSolidCheckedBg:g,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:b,buttonBg:u,buttonCheckedBg:u,buttonColor:c,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?g:C,radioBgColor:t?u:g}},N8=sn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ie(n)} ${t}`,l=tn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[RK(l),jK(l),IK(l)]},NK,{unitless:{radioSize:!0,dotSize:!0}});var MK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TK=(e,t)=>{var n,r;const a=i.useContext(O8),l=i.useContext(R8),{getPrefixCls:c,direction:u,radio:d}=i.useContext(Rt),f=i.useRef(null),v=Mr(t,f),{isFormItemInput:g}=i.useContext(Kr),p=z=>{var _,F;(_=e.onChange)===null||_===void 0||_.call(e,z),(F=a==null?void 0:a.onChange)===null||F===void 0||F.call(a,z)},{prefixCls:b,className:C,rootClassName:x,children:h,style:$,title:w}=e,E=MK(e,["prefixCls","className","rootClassName","children","style","title"]),j=c("radio",b),O=((a==null?void 0:a.optionType)||l)==="button",I=O?`${j}-button`:j,R=dr(j),[M,N,P]=N8(j,R),B=Object.assign({},E),L=i.useContext(Wr);a&&(B.name=a.name,B.onChange=p,B.checked=e.value===a.value,B.disabled=(n=B.disabled)!==null&&n!==void 0?n:a.disabled),B.disabled=(r=B.disabled)!==null&&r!==void 0?r:L;const k=ue(`${I}-wrapper`,{[`${I}-wrapper-checked`]:B.checked,[`${I}-wrapper-disabled`]:B.disabled,[`${I}-wrapper-rtl`]:u==="rtl",[`${I}-wrapper-in-form-item`]:g,[`${I}-wrapper-block`]:!!(a!=null&&a.block)},d==null?void 0:d.className,C,x,N,P,R),[D,H]=I8(B.onClick);return M(i.createElement(af,{component:"Radio",disabled:B.disabled},i.createElement("label",{className:k,style:Object.assign(Object.assign({},d==null?void 0:d.style),$),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:D},i.createElement(j8,Object.assign({},B,{className:ue(B.className,{[mg]:!O}),type:"radio",prefixCls:I,ref:v,onClick:H})),h!==void 0?i.createElement("span",{className:`${I}-label`},h):null)))},Kv=i.forwardRef(TK),PK=["parentNode"],zK="form_item";function Rd(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function M8(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:PK.includes(n)?`${zK}_${n}`:n}function T8(e,t,n,r,a,l){let c=r;return l!==void 0?c=l:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||a&&n.validated)&&(c="success"),c}var DK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ky(e){return Rd(e).join("_")}function iO(e,t){const n=t.getFieldInstance(e),r=tf(n);if(r)return r;const a=M8(Rd(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function P8(e){const[t]=_1(),n=i.useRef({}),r=i.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>l=>{const c=ky(a);l?n.current[c]=l:delete n.current[c]}},scrollToField:(a,l={})=>{const{focus:c}=l,u=DK(l,["focus"]),d=iO(a,r);d&&(y7(d,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),c&&r.focusField(a))},focusField:a=>{var l,c;const u=r.getFieldInstance(a);typeof(u==null?void 0:u.focus)=="function"?u.focus():(c=(l=iO(a,r))===null||l===void 0?void 0:l.focus)===null||c===void 0||c.call(l)},getFieldInstance:a=>{const l=ky(a);return n.current[l]}}),[e,t]);return[r]}const _K=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),{name:a}=i.useContext(Kr),l=cf(ky(a)),{prefixCls:c,className:u,rootClassName:d,options:f,buttonStyle:v="outline",disabled:g,children:p,size:b,style:C,id:x,optionType:h,name:$=l,defaultValue:w,value:E,block:j=!1,onChange:O,onMouseEnter:I,onMouseLeave:R,onFocus:M,onBlur:N}=e,[P,B]=yn(w,{value:E}),L=i.useCallback(K=>{const U=P,J=K.target.value;"value"in e||B(J),J!==U&&(O==null||O(K))},[P,B,O]),k=n("radio",c),D=`${k}-group`,H=dr(k),[z,_,F]=N8(k,H);let W=p;f&&f.length>0&&(W=f.map(K=>typeof K=="string"||typeof K=="number"?i.createElement(Kv,{key:K.toString(),prefixCls:k,disabled:g,value:K,checked:P===K},K):i.createElement(Kv,{key:`radio-group-value-options-${K.value}`,prefixCls:k,disabled:K.disabled||g,value:K.value,checked:P===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const q=Tr(b),V=ue(D,`${D}-${v}`,{[`${D}-${q}`]:q,[`${D}-rtl`]:r==="rtl",[`${D}-block`]:j},u,d,_,F,H),G=i.useMemo(()=>({onChange:L,value:P,disabled:g,name:$,optionType:h,block:j}),[L,P,g,$,h,j]);return z(i.createElement("div",Object.assign({},Nr(e,{aria:!0,data:!0}),{className:V,style:C,onMouseEnter:I,onMouseLeave:R,onFocus:M,onBlur:N,id:x,ref:t}),i.createElement(wK,{value:G},W)))}),AK=i.memo(_K);var BK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const kK=(e,t)=>{const{getPrefixCls:n}=i.useContext(Rt),{prefixCls:r}=e,a=BK(e,["prefixCls"]),l=n("radio",r);return i.createElement(EK,{value:"button"},i.createElement(Kv,Object.assign({prefixCls:l},a,{type:"radio",ref:t})))},LK=i.forwardRef(kK),ur=Kv;ur.Button=LK;ur.Group=AK;ur.__ANT_RADIO=!0;function js(e){return tn(e,{inputAffixPadding:e.paddingXXS})}const Is=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:l,controlHeightLG:c,fontSizeLG:u,lineHeightLG:d,paddingSM:f,controlPaddingHorizontalSM:v,controlPaddingHorizontal:g,colorFillAlter:p,colorPrimaryHover:b,colorPrimary:C,controlOutlineWidth:x,controlOutline:h,colorErrorOutline:$,colorWarningOutline:w,colorBgContainer:E,inputFontSize:j,inputFontSizeLG:O,inputFontSizeSM:I}=e,R=j||n,M=I||R,N=O||u,P=Math.round((t-R*r)/2*10)/10-a,B=Math.round((l-M*r)/2*10)/10-a,L=Math.ceil((c-N*d)/2*10)/10-a;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(B,0),paddingBlockLG:Math.max(L,0),paddingInline:f-a,paddingInlineSM:v-a,paddingInlineLG:g-a,addonBg:p,activeBorderColor:C,hoverBorderColor:b,activeShadow:`0 0 0 ${x}px ${h}`,errorActiveShadow:`0 0 0 ${x}px ${$}`,warningActiveShadow:`0 0 0 ${x}px ${w}`,hoverBg:E,activeBg:E,inputFontSize:R,inputFontSizeLG:N,inputFontSizeSM:M}},HK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Vg=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},HK(tn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),iC=(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}}),lO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),lC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Vg(e))}),lO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),lO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),z8=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},sO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),sO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Vg(e))}})}),sC=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({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)}},D8=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},cO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},D8(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),cC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D8(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Vg(e))}),cO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),cO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),uO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),_8=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},uO(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),uO(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),A8=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(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}}),dO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},A8(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`}}),uC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A8(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"}}),dO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),dO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),dC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),B8=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ie(t)} ${ie(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},fC=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},dC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},B8(e)),"&-sm":Object.assign({},fC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),k8=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`]:Object.assign({},B8(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},fC(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(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}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},qo()),{[`${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},[`
|
|
288
|
-
& > ${t}-affix-wrapper,
|
|
289
|
-
& > ${t}-number-affix-wrapper,
|
|
290
|
-
& > ${n}-picker-range
|
|
291
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
292
|
-
& > ${n}-select-auto-complete ${t},
|
|
293
|
-
& > ${n}-cascader-picker ${t},
|
|
294
|
-
& > ${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,
|
|
295
|
-
& > ${n}-select:first-child > ${n}-select-selector,
|
|
296
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
297
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
298
|
-
& > ${n}-select:last-child > ${n}-select-selector,
|
|
299
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
300
|
-
& > ${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`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},FK=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),bf(e)),lC(e)),cC(e)),sC(e)),uC(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"}})}},VK=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 ${ie(e.inputAffixPadding)}`}}}},WK=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:l,colorIconHover:c,iconCls:u}=e,d=`${t}-affix-wrapper`,f=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},bf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),VK(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}}),[`${t}-underlined`]:{borderRadius:0},[f]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},KK=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},dn(e)),k8(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},z8(e)),_8(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}}})})}},UK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
301
|
-
> ${t},
|
|
302
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},qK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},L8=sn(["Input","Shared"],e=>{const t=tn(e,js(e));return[FK(t),WK(t)]},Is,{resetFont:!1}),H8=sn(["Input","Component"],e=>{const t=tn(e,js(e));return[KK(t),UK(t),qK(t),$s(t)]},Is,{resetFont:!1}),W0=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",l=lj(e);return[{[`${n}-multiple${a}`]:{paddingBlock:l.containerPadding,paddingInlineStart:l.basePadding,minHeight:r,[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ie(l.itemLineHeight)}}}]},GK=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=tn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),l=tn(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[W0(a,"small"),W0(e),W0(l,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({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"}}},sj(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},XK=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:l,cellHoverBg:c,lineWidth:u,lineType:d,colorPrimary:f,cellActiveWithRangeBg:v,colorTextLightSolid:g,colorTextDisabled:p,cellBgDisabled:b,colorFillSecondary:C}=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:ie(r),borderRadius:a,transition:`background ${l}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
303
|
-
&: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:`${ie(u)} ${d} ${f}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
|
|
304
|
-
&-in-view${t}-range-start,
|
|
305
|
-
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:v}},[`&-in-view${t}-selected,
|
|
306
|
-
&-in-view${t}-range-start,
|
|
307
|
-
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:g,background:f},[`&${t}-disabled ${n}`]:{background:C}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:b}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},YK=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:l,cellWidth:c,paddingSM:u,paddingXS:d,paddingXXS:f,colorBgContainer:v,lineWidth:g,lineType:p,borderRadiusLG:b,colorPrimary:C,colorTextHeading:x,colorSplit:h,pickerControlIconBorderWidth:$,colorIcon:w,textHeight:E,motionDurationMid:j,colorIconHover:O,fontWeightStrong:I,cellHeight:R,pickerCellPaddingVertical:M,colorTextDisabled:N,colorText:P,fontSize:B,motionDurationSlow:L,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:D,borderRadiusSM:H,colorTextLightSolid:z,cellHoverBg:_,timeColumnHeight:F,timeColumnWidth:W,timeCellHeight:q,controlItemBgActive:V,marginXXS:G,pickerDatePanelPaddingHorizontal:K,pickerControlIconMargin:U}=e,J=e.calc(c).mul(7).add(e.calc(K).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:v,borderRadius:b,outline:"none","&-focused":{borderColor:C},"&-rtl":{[`${t}-prev-icon,
|
|
308
|
-
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
309
|
-
${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:J},"&-header":{display:"flex",padding:`0 ${ie(d)}`,color:x,borderBottom:`${ie(g)} ${p} ${h}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:ie(E),background:"transparent",border:0,cursor:"pointer",transition:`color ${j}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:B,"&:hover":{color:O},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:I,lineHeight:ie(E),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:d},"&:hover":{color:C}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:l,height:l,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:$,borderInlineStartWidth:$,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:$,borderInlineStartWidth:$,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:R,fontWeight:"normal"},th:{height:e.calc(R).add(e.calc(M).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ie(M)} 0`,color:N,cursor:"pointer","&-in-view":{color:P}},XK(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${ie(d)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${ie(e.calc(d).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ie(d)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ie(d)} ${ie(K)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${j}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:_},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:C},[`&${t}-cell-week`]:{color:new bn(z).setA(.5).toHexString()},[r]:{color:z}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ie(d)} ${ie(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ie(g)} ${p} ${h}`},[`${t}-date-panel,
|
|
310
|
-
${t}-time-panel`]:{transition:`opacity ${L}`},"&-active":{[`${t}-date-panel,
|
|
311
|
-
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:W,margin:`${ie(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${j}`,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% - ${ie(q)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ie(g)} ${p} ${h}`},"&-active":{background:new bn(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:G,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(W).sub(e.calc(G).mul(2)).equal(),height:q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(W).sub(q).div(2).equal(),color:P,lineHeight:ie(q),borderRadius:H,cursor:"pointer",transition:`background ${j}`,"&:hover":{background:_}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:N,background:"transparent",cursor:"not-allowed"}}}}}}}}},QK=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:l,colorPrimary:c,cellActiveWithRangeBg:u,colorPrimaryBorder:d,lineType:f,colorSplit:v}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ie(r)} ${f} ${v}`,"&-extra":{padding:`0 ${ie(a)}`,lineHeight:ie(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ie(r)} ${f} ${v}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ie(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ie(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${l}-tag-blue`]:{color:c,background:u,borderColor:d,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},ZK=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},JK=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:l,lineWidth:c}=e,u=l*2,d=c*2,f=Math.min(n-u,n-d),v=Math.min(r-u,r-d),g=Math.min(a-u,a-d);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new bn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new bn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightSM:v,multipleItemHeightLG:g,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},eU=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Is(e)),JK(e)),Mg(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),tU=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},lC(e)),uC(e)),cC(e)),sC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},K0=(e,t)=>({padding:`${ie(e)} ${ie(t)}`}),nU=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}}}}},rU=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:l,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorTextDisabled:v,colorTextPlaceholder:g,colorTextQuaternary:p,fontSizeLG:b,inputFontSizeLG:C,fontSizeSM:x,inputFontSizeSM:h,controlHeightSM:$,paddingInlineSM:w,paddingXS:E,marginXS:j,colorIcon:O,lineWidthBold:I,colorPrimary:R,motionDurationSlow:M,zIndexPopup:N,paddingXXS:P,sizePopupArrow:B,colorBgElevated:L,borderRadiusLG:k,boxShadowSecondary:D,borderRadiusSM:H,colorSplit:z,cellHoverBg:_,presetsWidth:F,presetsMaxWidth:W,boxShadowPopoverArrow:q,fontHeight:V,lineHeightLG:G}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},dn(e)),K0(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`},dC(g)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:v,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:g}}},"&-large":Object.assign(Object.assign({},K0(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:C??b,lineHeight:G}}),"&-small":Object.assign(Object.assign({},K0(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:h??x}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(E).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:j}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:b,color:p,fontSize:b,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:O},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(l).mul(-1).equal(),height:I,background:R,opacity:0,transition:`all ${M} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${ie(E)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:w}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},dn(e)),YK(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:N,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
312
|
-
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
313
|
-
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
314
|
-
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
315
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
316
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:hg},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
317
|
-
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
318
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
319
|
-
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:gg},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
320
|
-
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:bg},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
321
|
-
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:pg},[`${n}-panel > ${n}-time-panel`]:{paddingTop:P},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${M} ease-out`},yj(e,L,q)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:k,boxShadow:D,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:W,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:E,borderInlineEnd:`${ie(l)} ${c} ${z}`,li:Object.assign(Object.assign({},Ga),{borderRadius:H,paddingInline:E,paddingBlock:e.calc($).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:j},"&:hover":{background:_}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${ie(e.calc(B).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Xo(e,"slide-up"),Xo(e,"slide-down"),Bc(e,"move-up"),Bc(e,"move-down")]},F8=sn("DatePicker",e=>{const t=tn(js(e),ZK(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[QK(t),rU(t),tU(t),nU(t),GK(t),$s(e,{focusElCls:`${e.componentCls}-focused`})]},eU);var aU={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"},oU=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:aU}))},ra=i.forwardRef(oU);const Wg=i.createContext(null);var iU=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,l=t.indicator,c=l===void 0?{}:l,u=c.size,d=c.align,f=d===void 0?"center":d,v=i.useState(),g=fe(v,2),p=g[0],b=g[1],C=i.useRef(),x=ve.useCallback(function($){return typeof u=="function"?u($):typeof u=="number"?u:$},[u]);function h(){Yt.cancel(C.current)}return i.useEffect(function(){var $={};if(n)if(r){$.width=x(n.width);var w=a?"right":"left";f==="start"&&($[w]=n[w]),f==="center"&&($[w]=n[w]+n.width/2,$.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&($[w]=n[w]+n.width,$.transform="translateX(-100%)")}else $.height=x(n.height),f==="start"&&($.top=n.top),f==="center"&&($.top=n.top+n.height/2,$.transform="translateY(-50%)"),f==="end"&&($.top=n.top+n.height,$.transform="translateY(-100%)");return h(),C.current=Yt(function(){var E=p&&$&&Object.keys($).every(function(j){var O=$[j],I=p[j];return typeof O=="number"&&typeof I=="number"?Math.round(O)===Math.round(I):O===I});E||b($)}),h},[JSON.stringify(n),r,a,f,x]),{style:p}},fO={width:0,height:0,left:0,top:0};function lU(e,t,n){return i.useMemo(function(){for(var r,a=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||fO,c=l.left+l.width,u=0;u<e.length;u+=1){var d=e[u].key,f=t.get(d);if(!f){var v;f=t.get((v=e[u-1])===null||v===void 0?void 0:v.key)||fO}var g=a.get(d)||se({},f);g.right=c-g.left-g.width,a.set(d,g)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function mO(e,t){var n=i.useRef(e),r=i.useState({}),a=fe(r,2),l=a[1];function c(u){var d=typeof u=="function"?u(n.current):u;d!==n.current&&t(d,n.current),n.current=d,l({})}return[n.current,c]}var sU=.1,vO=.01,wv=20,gO=Math.pow(.995,wv);function cU(e,t){var n=i.useState(),r=fe(n,2),a=r[0],l=r[1],c=i.useState(0),u=fe(c,2),d=u[0],f=u[1],v=i.useState(0),g=fe(v,2),p=g[0],b=g[1],C=i.useState(),x=fe(C,2),h=x[0],$=x[1],w=i.useRef();function E(N){var P=N.touches[0],B=P.screenX,L=P.screenY;l({x:B,y:L}),window.clearInterval(w.current)}function j(N){if(a){var P=N.touches[0],B=P.screenX,L=P.screenY;l({x:B,y:L});var k=B-a.x,D=L-a.y;t(k,D);var H=Date.now();f(H),b(H-d),$({x:k,y:D})}}function O(){if(a&&(l(null),$(null),h)){var N=h.x/p,P=h.y/p,B=Math.abs(N),L=Math.abs(P);if(Math.max(B,L)<sU)return;var k=N,D=P;w.current=window.setInterval(function(){if(Math.abs(k)<vO&&Math.abs(D)<vO){window.clearInterval(w.current);return}k*=gO,D*=gO,t(k*wv,D*wv)},wv)}}var I=i.useRef();function R(N){var P=N.deltaX,B=N.deltaY,L=0,k=Math.abs(P),D=Math.abs(B);k===D?L=I.current==="x"?P:B:k>D?(L=P,I.current="x"):(L=B,I.current="y"),t(-L,-L)&&N.preventDefault()}var M=i.useRef(null);M.current={onTouchStart:E,onTouchMove:j,onTouchEnd:O,onWheel:R},i.useEffect(function(){function N(k){M.current.onTouchStart(k)}function P(k){M.current.onTouchMove(k)}function B(k){M.current.onTouchEnd(k)}function L(k){M.current.onWheel(k)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",B,{passive:!0}),e.current.addEventListener("touchstart",N,{passive:!0}),e.current.addEventListener("wheel",L,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",B)}},[])}function V8(e){var t=i.useState(0),n=fe(t,2),r=n[0],a=n[1],l=i.useRef(0),c=i.useRef();return c.current=e,as(function(){var u;(u=c.current)===null||u===void 0||u.call(c)},[r]),function(){l.current===r&&(l.current+=1,a(l.current))}}function uU(e){var t=i.useRef([]),n=i.useState({}),r=fe(n,2),a=r[1],l=i.useRef(typeof e=="function"?e():e),c=V8(function(){var d=l.current;t.current.forEach(function(f){d=f(d)}),t.current=[],l.current=d,a({})});function u(d){t.current.push(d),c()}return[l.current,u]}var pO={width:0,height:0,left:0,top:0,right:0};function dU(e,t,n,r,a,l,c){var u=c.tabs,d=c.tabPosition,f=c.rtl,v,g,p;return["top","bottom"].includes(d)?(v="width",g=f?"right":"left",p=Math.abs(n)):(v="height",g="top",p=-n),i.useMemo(function(){if(!u.length)return[0,0];for(var b=u.length,C=b,x=0;x<b;x+=1){var h=e.get(u[x].key)||pO;if(Math.floor(h[g]+h[v])>Math.floor(p+t)){C=x-1;break}}for(var $=0,w=b-1;w>=0;w-=1){var E=e.get(u[w].key)||pO;if(E[g]<p){$=w+1;break}}return $>C?[0,-1]:[$,C]},[e,t,r,a,l,p,d,u.map(function(b){return b.key}).join("_"),f])}function hO(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var fU="TABS_DQ";function W8(e){return String(e).replace(/"/g,fU)}function mC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var K8=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,l=e.style;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),bO=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var l,c={};return Et(a)==="object"&&!i.isValidElement(a)?c=a:c.right=a,n==="right"&&(l=c.right),n==="left"&&(l=c.left),l?i.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),mU=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,l=e.locale,c=e.mobile,u=e.more,d=u===void 0?{}:u,f=e.style,v=e.className,g=e.editable,p=e.tabBarGutter,b=e.rtl,C=e.removeAriaLabel,x=e.onTabClick,h=e.getPopupContainer,$=e.popupClassName,w=i.useState(!1),E=fe(w,2),j=E[0],O=E[1],I=i.useState(null),R=fe(I,2),M=R[0],N=R[1],P=d.icon,B=P===void 0?"More":P,L="".concat(r,"-more-popup"),k="".concat(n,"-dropdown"),D=M!==null?"".concat(L,"-").concat(M):null,H=l==null?void 0:l.dropdownAriaLabel;function z(K,U){K.preventDefault(),K.stopPropagation(),g.onEdit("remove",{key:U,event:K})}var _=i.createElement(tu,{onClick:function(U){var J=U.key,Q=U.domEvent;x(J,Q),O(!1)},prefixCls:"".concat(k,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[M],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(K){var U=K.closable,J=K.disabled,Q=K.closeIcon,te=K.key,Y=K.label,ae=mC(U,Q,g,J);return i.createElement(pf,{key:te,id:"".concat(L,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:J},i.createElement("span",null,Y),ae&&i.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(Z){Z.stopPropagation(),z(Z,te)}},Q||g.removeIcon||"×"))}));function F(K){for(var U=a.filter(function(ae){return!ae.disabled}),J=U.findIndex(function(ae){return ae.key===M})||0,Q=U.length,te=0;te<Q;te+=1){J=(J+K+Q)%Q;var Y=U[J];if(!Y.disabled){N(Y.key);return}}}function W(K){var U=K.which;if(!j){[ot.DOWN,ot.SPACE,ot.ENTER].includes(U)&&(O(!0),K.preventDefault());return}switch(U){case ot.UP:F(-1),K.preventDefault();break;case ot.DOWN:F(1),K.preventDefault();break;case ot.ESC:O(!1);break;case ot.SPACE:case ot.ENTER:M!==null&&x(M,K);break}}i.useEffect(function(){var K=document.getElementById(D);K&&K.scrollIntoView&&K.scrollIntoView(!1)},[M]),i.useEffect(function(){j||N(null)},[j]);var q=ne({},b?"marginRight":"marginLeft",p);a.length||(q.visibility="hidden",q.order=1);var V=ue(ne({},"".concat(k,"-rtl"),b)),G=c?null:i.createElement(Ij,be({prefixCls:k,overlay:_,visible:a.length?j:!1,onVisibleChange:O,overlayClassName:ue(V,$),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},d),i.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:q,"aria-haspopup":"listbox","aria-controls":L,id:"".concat(r,"-more"),"aria-expanded":j,onKeyDown:W},B));return i.createElement("div",{className:ue("".concat(n,"-nav-operations"),v),style:f,ref:t},G,i.createElement(K8,{prefixCls:n,locale:l,editable:g}))});const vU=i.memo(mU,function(e,t){return t.tabMoving});var gU=function(t){var n=t.prefixCls,r=t.id,a=t.active,l=t.focus,c=t.tab,u=c.key,d=c.label,f=c.disabled,v=c.closeIcon,g=c.icon,p=t.closable,b=t.renderWrapper,C=t.removeAriaLabel,x=t.editable,h=t.onClick,$=t.onFocus,w=t.onBlur,E=t.onKeyDown,j=t.onMouseDown,O=t.onMouseUp,I=t.style,R=t.tabCount,M=t.currentPosition,N="".concat(n,"-tab"),P=mC(p,v,x,f);function B(z){f||h(z)}function L(z){z.preventDefault(),z.stopPropagation(),x.onEdit("remove",{key:u,event:z})}var k=i.useMemo(function(){return g&&typeof d=="string"?i.createElement("span",null,d):d},[d,g]),D=i.useRef(null);i.useEffect(function(){l&&D.current&&D.current.focus()},[l]);var H=i.createElement("div",{key:u,"data-node-key":W8(u),className:ue(N,ne(ne(ne(ne({},"".concat(N,"-with-remove"),P),"".concat(N,"-active"),a),"".concat(N,"-disabled"),f),"".concat(N,"-focus"),l)),style:I,onClick:B},i.createElement("div",{ref:D,role:"tab","aria-selected":a,id:r&&"".concat(r,"-tab-").concat(u),className:"".concat(N,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(u),"aria-disabled":f,tabIndex:f?null:a?0:-1,onClick:function(_){_.stopPropagation(),B(_)},onKeyDown:E,onMouseDown:j,onMouseUp:O,onFocus:$,onBlur:w},l&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(M," of ").concat(R)),g&&i.createElement("span",{className:"".concat(N,"-icon")},g),d&&k),P&&i.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:a?0:-1,className:"".concat(N,"-remove"),onClick:function(_){_.stopPropagation(),L(_)}},v||x.removeIcon||"×"));return b?b(H):H},pU=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,u=t.getBoundingClientRect(),d=u.width,f=u.height,v=u.left,g=u.top;return Math.abs(d-r)<1?[d,f,v-n.left,g-n.top]:[r,a,c,l]},hc=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,l=n.offsetHeight,c=l===void 0?0:l;if(t.current){var u=t.current.getBoundingClientRect(),d=u.width,f=u.height;if(Math.abs(d-a)<1)return[d,f]}return[a,c]},Gm=function(t,n){return t[n?0:1]},yO=i.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,l=e.animated,c=e.activeKey,u=e.rtl,d=e.extra,f=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,C=e.onTabClick,x=e.onTabScroll,h=e.indicator,$=i.useContext(Wg),w=$.prefixCls,E=$.tabs,j=i.useRef(null),O=i.useRef(null),I=i.useRef(null),R=i.useRef(null),M=i.useRef(null),N=i.useRef(null),P=i.useRef(null),B=g==="top"||g==="bottom",L=mO(0,function(Ze,ut){B&&x&&x({direction:Ze>ut?"left":"right"})}),k=fe(L,2),D=k[0],H=k[1],z=mO(0,function(Ze,ut){!B&&x&&x({direction:Ze>ut?"top":"bottom"})}),_=fe(z,2),F=_[0],W=_[1],q=i.useState([0,0]),V=fe(q,2),G=V[0],K=V[1],U=i.useState([0,0]),J=fe(U,2),Q=J[0],te=J[1],Y=i.useState([0,0]),ae=fe(Y,2),re=ae[0],Z=ae[1],X=i.useState([0,0]),oe=fe(X,2),le=oe[0],de=oe[1],ce=uU(new Map),ge=fe(ce,2),he=ge[0],Oe=ge[1],je=lU(E,he,Q[0]),pe=Gm(G,B),we=Gm(Q,B),Se=Gm(re,B),Ce=Gm(le,B),De=Math.floor(pe)<Math.floor(we+Se),Ae=De?pe-Ce:pe-Se,Qe="".concat(w,"-nav-operations-hidden"),Ke=0,Fe=0;B&&u?(Ke=0,Fe=Math.max(0,we-Ae)):(Ke=Math.min(0,Ae-we),Fe=0);function Ge(Ze){return Ze<Ke?Ke:Ze>Fe?Fe:Ze}var Te=i.useRef(null),Ee=i.useState(),_e=fe(Ee,2),Re=_e[0],Pe=_e[1];function ye(){Pe(Date.now())}function $e(){Te.current&&clearTimeout(Te.current)}cU(R,function(Ze,ut){function Dt(Kt,vt){Kt(function(Mt){var Ft=Ge(Mt+vt);return Ft})}return De?(B?Dt(H,Ze):Dt(W,ut),$e(),ye(),!0):!1}),i.useEffect(function(){return $e(),Re&&(Te.current=setTimeout(function(){Pe(0)},100)),$e},[Re]);var Me=dU(je,Ae,B?D:F,we,Se,Ce,se(se({},e),{},{tabs:E})),Le=fe(Me,2),tt=Le[0],yt=Le[1],We=Xt(function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ut=je.get(Ze)||{width:0,height:0,left:0,right:0,top:0};if(B){var Dt=D;u?ut.right<D?Dt=ut.right:ut.right+ut.width>D+Ae&&(Dt=ut.right+ut.width-Ae):ut.left<-D?Dt=-ut.left:ut.left+ut.width>-D+Ae&&(Dt=-(ut.left+ut.width-Ae)),W(0),H(Ge(Dt))}else{var Kt=F;ut.top<-F?Kt=-ut.top:ut.top+ut.height>-F+Ae&&(Kt=-(ut.top+ut.height-Ae)),H(0),W(Ge(Kt))}}),nt=i.useState(),dt=fe(nt,2),at=dt[0],pt=dt[1],zt=i.useState(!1),Ot=fe(zt,2),ct=Ot[0],$t=Ot[1],St=E.filter(function(Ze){return!Ze.disabled}).map(function(Ze){return Ze.key}),et=function(ut){var Dt=St.indexOf(at||c),Kt=St.length,vt=(Dt+ut+Kt)%Kt,Mt=St[vt];pt(Mt)},Ve=function(ut,Dt){var Kt=St.indexOf(ut),vt=E.find(function(Ft){return Ft.key===ut}),Mt=mC(vt==null?void 0:vt.closable,vt==null?void 0:vt.closeIcon,f,vt==null?void 0:vt.disabled);Mt&&(Dt.preventDefault(),Dt.stopPropagation(),f.onEdit("remove",{key:ut,event:Dt}),Kt===St.length-1?et(-1):et(1))},Ue=function(ut,Dt){$t(!0),Dt.button===1&&Ve(ut,Dt)},mt=function(ut){var Dt=ut.code,Kt=u&&B,vt=St[0],Mt=St[St.length-1];switch(Dt){case"ArrowLeft":{B&&et(Kt?1:-1);break}case"ArrowRight":{B&&et(Kt?-1:1);break}case"ArrowUp":{ut.preventDefault(),B||et(-1);break}case"ArrowDown":{ut.preventDefault(),B||et(1);break}case"Home":{ut.preventDefault(),pt(vt);break}case"End":{ut.preventDefault(),pt(Mt);break}case"Enter":case"Space":{ut.preventDefault(),C(at??c,ut);break}case"Backspace":case"Delete":{Ve(at,ut);break}}},Tt={};B?Tt[u?"marginRight":"marginLeft"]=p:Tt.marginTop=p;var Nt=E.map(function(Ze,ut){var Dt=Ze.key;return i.createElement(gU,{id:a,prefixCls:w,key:Dt,tab:Ze,style:ut===0?void 0:Tt,closable:Ze.closable,editable:f,active:Dt===c,focus:Dt===at,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,tabCount:St.length,currentPosition:ut+1,onClick:function(vt){C(Dt,vt)},onKeyDown:mt,onFocus:function(){ct||pt(Dt),We(Dt),ye(),R.current&&(u||(R.current.scrollLeft=0),R.current.scrollTop=0)},onBlur:function(){pt(void 0)},onMouseDown:function(vt){return Ue(Dt,vt)},onMouseUp:function(){$t(!1)}})}),Vt=function(){return Oe(function(){var ut,Dt=new Map,Kt=(ut=M.current)===null||ut===void 0?void 0:ut.getBoundingClientRect();return E.forEach(function(vt){var Mt,Ft=vt.key,$n=(Mt=M.current)===null||Mt===void 0?void 0:Mt.querySelector('[data-node-key="'.concat(W8(Ft),'"]'));if($n){var _n=pU($n,Kt),Pn=fe(_n,4),Wn=Pn[0],jn=Pn[1],Bn=Pn[2],$r=Pn[3];Dt.set(Ft,{width:Wn,height:jn,left:Bn,top:$r})}}),Dt})};i.useEffect(function(){Vt()},[E.map(function(Ze){return Ze.key}).join("_")]);var ft=V8(function(){var Ze=hc(j),ut=hc(O),Dt=hc(I);K([Ze[0]-ut[0]-Dt[0],Ze[1]-ut[1]-Dt[1]]);var Kt=hc(P);Z(Kt);var vt=hc(N);de(vt);var Mt=hc(M);te([Mt[0]-Kt[0],Mt[1]-Kt[1]]),Vt()}),lt=E.slice(0,tt),At=E.slice(yt+1),Ut=[].concat(Ne(lt),Ne(At)),rn=je.get(c),Qt=iU({activeTabOffset:rn,horizontal:B,indicator:h,rtl:u}),pn=Qt.style;i.useEffect(function(){We()},[c,Ke,Fe,hO(rn),hO(je),B]),i.useEffect(function(){ft()},[u]);var qt=!!Ut.length,un="".concat(w,"-nav-wrap"),st,xt,ht,Ye;return B?u?(xt=D>0,st=D!==Fe):(st=D<0,xt=D!==Ke):(ht=F<0,Ye=F!==Ke),i.createElement(va,{onResize:ft},i.createElement("div",{ref:Ei(t,j),role:"tablist","aria-orientation":B?"horizontal":"vertical",className:ue("".concat(w,"-nav"),n),style:r,onKeyDown:function(){ye()}},i.createElement(bO,{ref:O,position:"left",extra:d,prefixCls:w}),i.createElement(va,{onResize:ft},i.createElement("div",{className:ue(un,ne(ne(ne(ne({},"".concat(un,"-ping-left"),st),"".concat(un,"-ping-right"),xt),"".concat(un,"-ping-top"),ht),"".concat(un,"-ping-bottom"),Ye)),ref:R},i.createElement(va,{onResize:ft},i.createElement("div",{ref:M,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:Re?"none":void 0}},Nt,i.createElement(K8,{ref:P,prefixCls:w,locale:v,editable:f,style:se(se({},Nt.length===0?void 0:Tt),{},{visibility:qt?"hidden":null})}),i.createElement("div",{className:ue("".concat(w,"-ink-bar"),ne({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:pn}))))),i.createElement(vU,be({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:N,prefixCls:w,tabs:Ut,className:!qt&&Qe,tabMoving:!!Re})),i.createElement(bO,{ref:I,position:"right",extra:d,prefixCls:w})))}),U8=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.id,c=e.active,u=e.tabKey,d=e.children;return i.createElement("div",{id:l&&"".concat(l,"-panel-").concat(u),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(u),"aria-hidden":!c,style:a,className:ue(n,c&&"".concat(n,"-active"),r),ref:t},d)}),hU=["renderTabBar"],bU=["label","key"],yU=function(t){var n=t.renderTabBar,r=Lt(t,hU),a=i.useContext(Wg),l=a.tabs;if(n){var c=se(se({},r),{},{panes:l.map(function(u){var d=u.label,f=u.key,v=Lt(u,bU);return i.createElement(U8,be({tab:d,key:f,tabKey:f},v))})});return n(c,yO)}return i.createElement(yO,r)},CU=["key","forceRender","style","className","destroyInactiveTabPane"],SU=function(t){var n=t.id,r=t.activeKey,a=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,u=i.useContext(Wg),d=u.prefixCls,f=u.tabs,v=a.tabPane,g="".concat(d,"-tabpane");return i.createElement("div",{className:ue("".concat(d,"-content-holder"))},i.createElement("div",{className:ue("".concat(d,"-content"),"".concat(d,"-content-").concat(l),ne({},"".concat(d,"-content-animated"),v))},f.map(function(p){var b=p.key,C=p.forceRender,x=p.style,h=p.className,$=p.destroyInactiveTabPane,w=Lt(p,CU),E=b===r;return i.createElement(Zr,be({key:b,visible:E,forceRender:C,removeOnLeave:!!(c||$),leavedClassName:"".concat(g,"-hidden")},a.tabPaneMotion),function(j,O){var I=j.style,R=j.className;return i.createElement(U8,be({},w,{prefixCls:g,id:n,tabKey:b,animated:v,active:E,style:se(se({},x),I),className:ue(h,R),ref:O}))})})))};function xU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=se({inkBar:!0},Et(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var $U=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],CO=0,wU=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,l=e.className,c=e.items,u=e.direction,d=e.activeKey,f=e.defaultActiveKey,v=e.editable,g=e.animated,p=e.tabPosition,b=p===void 0?"top":p,C=e.tabBarGutter,x=e.tabBarStyle,h=e.tabBarExtraContent,$=e.locale,w=e.more,E=e.destroyInactiveTabPane,j=e.renderTabBar,O=e.onChange,I=e.onTabClick,R=e.onTabScroll,M=e.getPopupContainer,N=e.popupClassName,P=e.indicator,B=Lt(e,$U),L=i.useMemo(function(){return(c||[]).filter(function(le){return le&&Et(le)==="object"&&"key"in le})},[c]),k=u==="rtl",D=xU(g),H=i.useState(!1),z=fe(H,2),_=z[0],F=z[1];i.useEffect(function(){F(Rg())},[]);var W=yn(function(){var le;return(le=L[0])===null||le===void 0?void 0:le.key},{value:d,defaultValue:f}),q=fe(W,2),V=q[0],G=q[1],K=i.useState(function(){return L.findIndex(function(le){return le.key===V})}),U=fe(K,2),J=U[0],Q=U[1];i.useEffect(function(){var le=L.findIndex(function(ce){return ce.key===V});if(le===-1){var de;le=Math.max(0,Math.min(J,L.length-1)),G((de=L[le])===null||de===void 0?void 0:de.key)}Q(le)},[L.map(function(le){return le.key}).join("_"),V,J]);var te=yn(null,{value:n}),Y=fe(te,2),ae=Y[0],re=Y[1];i.useEffect(function(){n||(re("rc-tabs-".concat(CO)),CO+=1)},[]);function Z(le,de){I==null||I(le,de);var ce=le!==V;G(le),ce&&(O==null||O(le))}var X={id:ae,activeKey:V,animated:D,tabPosition:b,rtl:k,mobile:_},oe=se(se({},X),{},{editable:v,locale:$,more:w,tabBarGutter:C,onTabClick:Z,onTabScroll:R,extra:h,style:x,panes:null,getPopupContainer:M,popupClassName:N,indicator:P});return i.createElement(Wg.Provider,{value:{tabs:L,prefixCls:a}},i.createElement("div",be({ref:t,id:n,className:ue(a,"".concat(a,"-").concat(b),ne(ne(ne({},"".concat(a,"-mobile"),_),"".concat(a,"-editable"),v),"".concat(a,"-rtl"),k),l)},B),i.createElement(yU,be({},oe,{renderTabBar:j})),i.createElement(SU,be({destroyInactiveTabPane:E},X,{animated:D}))))});const EU={motionAppear:!1,motionEnter:!0,motionLeave:!0};function OU(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},EU),{motionName:Go(e,"switch")})),n}var RU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function jU(e){return e.filter(t=>t)}function IU(e,t){if(e)return e.map(r=>{var a;const l=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Yr(t).map(r=>{if(i.isValidElement(r)){const{key:a,props:l}=r,c=l||{},{tab:u}=c,d=RU(c,["tab"]);return Object.assign(Object.assign({key:String(a)},d),{label:u})}return null});return jU(n)}const NU=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")]]},MU=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ie(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Io(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:ie(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ie(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ie(e.borderRadiusLG)} 0 0 ${ie(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 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},TU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},dn(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:`${ie(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":Object.assign(Object.assign({},Ga),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ie(e.paddingXXS)} ${ie(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"}}})}})}},PU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:l,verticalItemMargin:c,calc:u}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
322
|
-
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,
|
|
323
|
-
> 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:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,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:ie(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ie(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:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},zU=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:l,horizontalItemPaddingSM:c,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ie(e.borderRadius)} ${ie(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ie(e.borderRadius)} ${ie(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ie(e.borderRadius)} ${ie(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ie(e.borderRadius)} 0 0 ${ie(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},DU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:u,itemColor:d}=e,f=`${t}-tab`;return{[f]:{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:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${f}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({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}},Xa(e)),"&:hover":{color:r},[`&${f}-active ${f}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${f}-focus ${f}-btn:focus-visible`]:Io(e),[`&${f}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${f}-disabled ${f}-btn, &${f}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${f}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${f} + ${f}`]:{margin:{_skip_check_:!0,value:l}}}},_U=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:l}=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:ie(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ie(e.marginXS)},marginLeft:{_skip_check_:!0,value:ie(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},AU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(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`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${ie(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},Xa(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),DU(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Xa(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"}}}}}},BU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:l}=e,c=t||l,u=n||a,d=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:u,cardHeightLG:d,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-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}},kU=sn("Tabs",e=>{const t=tn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ie(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ie(e.horizontalItemGutter)}`});return[zU(t),_U(t),PU(t),TU(t),MU(t),AU(t),NU(t)]},BU),LU=()=>null;var HU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const FU=i.forwardRef((e,t)=>{var n,r,a,l,c,u,d,f,v,g,p;const{type:b,className:C,rootClassName:x,size:h,onEdit:$,hideAdd:w,centered:E,addIcon:j,removeIcon:O,moreIcon:I,more:R,popupClassName:M,children:N,items:P,animated:B,style:L,indicatorSize:k,indicator:D,destroyInactiveTabPane:H,destroyOnHidden:z}=e,_=HU(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=_,{direction:W,tabs:q,getPrefixCls:V,getPopupContainer:G}=i.useContext(Rt),K=V("tabs",F),U=dr(K),[J,Q,te]=kU(K,U),Y=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:Y.current}));let ae;b==="editable-card"&&(ae={onEdit:(ce,{key:ge,event:he})=>{$==null||$(ce==="add"?he:ge,ce)},removeIcon:(n=O??(q==null?void 0:q.removeIcon))!==null&&n!==void 0?n:i.createElement(zo,null),addIcon:(j??(q==null?void 0:q.addIcon))||i.createElement(ra,null),showAdd:w!==!0});const re=V(),Z=Tr(h),X=IU(P,N),oe=OU(K,B),le=Object.assign(Object.assign({},q==null?void 0:q.style),L),de={align:(r=D==null?void 0:D.align)!==null&&r!==void 0?r:(a=q==null?void 0:q.indicator)===null||a===void 0?void 0:a.align,size:(d=(c=(l=D==null?void 0:D.size)!==null&&l!==void 0?l:k)!==null&&c!==void 0?c:(u=q==null?void 0:q.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:q==null?void 0:q.indicatorSize};return J(i.createElement(wU,Object.assign({ref:Y,direction:W,getPopupContainer:G},_,{items:X,className:ue({[`${K}-${Z}`]:Z,[`${K}-card`]:["card","editable-card"].includes(b),[`${K}-editable-card`]:b==="editable-card",[`${K}-centered`]:E},q==null?void 0:q.className,C,x,Q,te,U),popupClassName:ue(M,Q,te,U),style:le,editable:ae,more:Object.assign({icon:(p=(g=(v=(f=q==null?void 0:q.more)===null||f===void 0?void 0:f.icon)!==null&&v!==void 0?v:q==null?void 0:q.moreIcon)!==null&&g!==void 0?g:I)!==null&&p!==void 0?p:i.createElement(J1,null),transitionName:`${re}-slide-up`},R),prefixCls:K,animated:oe,indicator:de,destroyInactiveTabPane:z??H})))}),Bo=FU;Bo.TabPane=LU;var VU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const q8=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=VU(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=i.useContext(Rt),c=l("card",t),u=ue(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:u}))},WU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:l}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ie(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`},qo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ga),{[`
|
|
324
|
-
> ${n}-typography,
|
|
325
|
-
> ${n}-typography-edit-content
|
|
326
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},KU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
327
|
-
${ie(a)} 0 0 0 ${n},
|
|
328
|
-
0 ${ie(a)} 0 0 ${n},
|
|
329
|
-
${ie(a)} ${ie(a)} 0 0 ${n},
|
|
330
|
-
${ie(a)} 0 0 0 ${n} inset,
|
|
331
|
-
0 ${ie(a)} 0 0 ${n} inset;
|
|
332
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},UU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:l,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},qo()),{"& > 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:ie(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:ie(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${l}`}}})},qU=e=>Object.assign(Object.assign({margin:`${ie(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},qo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ga),"&-description":{color:e.colorTextDescription}}),GU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${ie(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ie(e.padding)} ${ie(a)}`}}},XU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},YU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:l,bodyPadding:c,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:WU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`},[`${t}-grid`]:KU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:UU(e),[`${t}-meta`]:qU(e)}),[`${t}-bordered`]:{border:`${ie(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:GU(e),[`${t}-loading`]:XU(e),[`${t}-rtl`]:{direction:"rtl"}}},QU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${ie(r)}`,fontSize:l,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ZU=e=>{var t,n;return{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:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},JU=sn("Card",e=>{const t=tn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[YU(t),QU(t)]},ZU);var SO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const eq=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return i.createElement("ul",{className:t,style:r},n.map((a,l)=>{const c=`action-${l}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:c},i.createElement("span",null,a))}))},tq=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,extra:c,headStyle:u={},bodyStyle:d={},title:f,loading:v,bordered:g,variant:p,size:b,type:C,cover:x,actions:h,tabList:$,children:w,activeTabKey:E,defaultActiveTabKey:j,tabBarExtraContent:O,hoverable:I,tabProps:R={},classNames:M,styles:N}=e,P=SO(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:B,direction:L,card:k}=i.useContext(Rt),[D]=wl("card",p,g),H=je=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,je)},z=je=>{var pe;return ue((pe=k==null?void 0:k.classNames)===null||pe===void 0?void 0:pe[je],M==null?void 0:M[je])},_=je=>{var pe;return Object.assign(Object.assign({},(pe=k==null?void 0:k.styles)===null||pe===void 0?void 0:pe[je]),N==null?void 0:N[je])},F=i.useMemo(()=>{let je=!1;return i.Children.forEach(w,pe=>{(pe==null?void 0:pe.type)===q8&&(je=!0)}),je},[w]),W=B("card",n),[q,V,G]=JU(W),K=i.createElement(xl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),U=E!==void 0,J=Object.assign(Object.assign({},R),{[U?"activeKey":"defaultActiveKey"]:U?E:j,tabBarExtraContent:O});let Q;const te=Tr(b),Y=!te||te==="default"?"large":te,ae=$?i.createElement(Bo,Object.assign({size:Y},J,{className:`${W}-head-tabs`,onChange:H,items:$.map(je=>{var{tab:pe}=je,we=SO(je,["tab"]);return Object.assign({label:pe},we)})})):null;if(f||c||ae){const je=ue(`${W}-head`,z("header")),pe=ue(`${W}-head-title`,z("title")),we=ue(`${W}-extra`,z("extra")),Se=Object.assign(Object.assign({},u),_("header"));Q=i.createElement("div",{className:je,style:Se},i.createElement("div",{className:`${W}-head-wrapper`},f&&i.createElement("div",{className:pe,style:_("title")},f),c&&i.createElement("div",{className:we,style:_("extra")},c)),ae)}const re=ue(`${W}-cover`,z("cover")),Z=x?i.createElement("div",{className:re,style:_("cover")},x):null,X=ue(`${W}-body`,z("body")),oe=Object.assign(Object.assign({},d),_("body")),le=i.createElement("div",{className:X,style:oe},v?K:w),de=ue(`${W}-actions`,z("actions")),ce=h!=null&&h.length?i.createElement(eq,{actionClasses:de,actionStyle:_("actions"),actions:h}):null,ge=En(P,["onTabChange"]),he=ue(W,k==null?void 0:k.className,{[`${W}-loading`]:v,[`${W}-bordered`]:D!=="borderless",[`${W}-hoverable`]:I,[`${W}-contain-grid`]:F,[`${W}-contain-tabs`]:$==null?void 0:$.length,[`${W}-${te}`]:te,[`${W}-type-${C}`]:!!C,[`${W}-rtl`]:L==="rtl"},r,a,V,G),Oe=Object.assign(Object.assign({},k==null?void 0:k.style),l);return q(i.createElement("div",Object.assign({ref:t},ge,{className:he,style:Oe}),Q,Z,le,ce))});var nq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const rq=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=nq(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=i.useContext(Rt),d=u("card",t),f=ue(`${d}-meta`,n),v=r?i.createElement("div",{className:`${d}-meta-avatar`},r):null,g=a?i.createElement("div",{className:`${d}-meta-title`},a):null,p=l?i.createElement("div",{className:`${d}-meta-description`},l):null,b=g||p?i.createElement("div",{className:`${d}-meta-detail`},g,p):null;return i.createElement("div",Object.assign({},c,{className:f}),v,b)},wn=tq;wn.Grid=q8;wn.Meta=rq;function aq(e,t,n){var r=n||{},a=r.noTrailing,l=a===void 0?!1:a,c=r.noLeading,u=c===void 0?!1:c,d=r.debounceMode,f=d===void 0?void 0:d,v,g=!1,p=0;function b(){v&&clearTimeout(v)}function C(h){var $=h||{},w=$.upcomingOnly,E=w===void 0?!1:w;b(),g=!E}function x(){for(var h=arguments.length,$=new Array(h),w=0;w<h;w++)$[w]=arguments[w];var E=this,j=Date.now()-p;if(g)return;function O(){p=Date.now(),t.apply(E,$)}function I(){v=void 0}!u&&f&&!v&&O(),b(),f===void 0&&j>e?u?(p=Date.now(),l||(v=setTimeout(f?I:O,e))):O():l!==!0&&(v=setTimeout(f?I:O,f===void 0?e-j:e))}return x.cancel=C,x}function oq(e,t,n){var r={},a=r.atBegin,l=a===void 0?!1:a;return aq(e,t,{debounceMode:l!==!1})}var au=i.createContext({}),Nc="__rc_cascader_search_mark__",iq=function(t,n,r){var a=r.label,l=a===void 0?"":a;return n.some(function(c){return String(c[l]).toLowerCase().includes(t.toLowerCase())})},lq=function(t,n,r,a){return n.map(function(l){return l[a.label]}).join(" / ")},sq=function(t,n,r,a,l,c){var u=l.filter,d=u===void 0?iq:u,f=l.render,v=f===void 0?lq:f,g=l.limit,p=g===void 0?50:g,b=l.sort;return i.useMemo(function(){var C=[];if(!t)return[];function x(h,$){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;h.forEach(function(E){if(!(!b&&p!==!1&&p>0&&C.length>=p)){var j=[].concat(Ne($),[E]),O=E[r.children],I=w||E.disabled;if((!O||O.length===0||c)&&d(t,j,{label:r.label})){var R;C.push(se(se({},E),{},(R={disabled:I},ne(R,r.label,v(t,j,a,r)),ne(R,Nc,j),ne(R,r.children,void 0),R)))}O&&x(E[r.children],j,I)}})}return x(n,[]),b&&C.sort(function(h,$){return b(h[Nc],$[Nc],t,r)}),p!==!1&&p>0?C.slice(0,p):C},[t,n,r,a,v,c,d,b,p])},vC="__RC_CASCADER_SPLIT__",G8="SHOW_PARENT",X8="SHOW_CHILD";function Oo(e){return e.join(vC)}function Hc(e){return e.map(Oo)}function cq(e){return e.split(vC)}function Y8(e){var t=e||{},n=t.label,r=t.value,a=t.children,l=r||"value";return{label:n||"label",value:l,key:l,children:a||"children"}}function bd(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function uq(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Q8(e,t){return e.map(function(n){var r;return(r=n[Nc])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function dq(e){return Array.isArray(e)&&Array.isArray(e[0])}function Uv(e){return e?dq(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Z8(e,t,n){var r=new Set(e),a=t();return e.filter(function(l){var c=a[l],u=c?c.parent:null,d=c?c.children:null;return c&&c.node.disabled?!0:n===X8?!(d&&d.some(function(f){return f.key&&r.has(f.key)})):!(u&&!u.node.disabled&&r.has(u.key))})}function Fc(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,l=[],c=function(){var f,v,g,p=e[u],b=(f=a)===null||f===void 0?void 0:f.findIndex(function(x){var h=x[n.value];return r?String(h)===String(p):h===p}),C=b!==-1?(v=a)===null||v===void 0?void 0:v[b]:null;l.push({value:(g=C==null?void 0:C[n.value])!==null&&g!==void 0?g:p,index:b,option:C}),a=C==null?void 0:C[n.children]},u=0;u<e.length;u+=1)c();return l}const fq=(function(e,t,n,r,a){return i.useMemo(function(){var l=a||function(c){var u=r?c.slice(-1):c,d=" / ";return u.every(function(f){return["string","number"].includes(Et(f))})?u.join(d):u.reduce(function(f,v,g){var p=i.isValidElement(v)?i.cloneElement(v,{key:g}):v;return g===0?[p]:[].concat(Ne(f),[d,p])},[])};return e.map(function(c){var u,d=Fc(c,t,n),f=l(d.map(function(g){var p,b=g.option,C=g.value;return(p=b==null?void 0:b[n.label])!==null&&p!==void 0?p:C}),d.map(function(g){var p=g.option;return p})),v=Oo(c);return{label:f,value:v,key:v,valueCells:c,disabled:(u=d[d.length-1])===null||u===void 0||(u=u.option)===null||u===void 0?void 0:u.disabled}})},[e,t,n,a,r])});function J8(e,t){return i.useCallback(function(n){var r=[],a=[];return n.forEach(function(l){var c=Fc(l,e,t);c.every(function(u){return u.option})?a.push(l):r.push(l)}),[a,r]},[e,t])}function Ta(e,t){return e[t]}var mq=["children"];function eI(e,t){return"".concat(e,"-").concat(t)}function vq(e){return e&&e.type&&e.type.isTreeNode}function yf(e,t){return e??t}function Vc(e){var t=e||{},n=t.title,r=t._title,a=t.key,l=t.children,c=n||"title";return{title:c,_title:r||[c],key:a||"key",children:l||"children"}}function tI(e){function t(n){var r=Yr(n);return r.map(function(a){if(!vq(a))return Xn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var l=a.key,c=a.props,u=c.children,d=Lt(c,mq),f=se({key:l},d),v=t(u);return v.length&&(f.children=v),f}).filter(function(a){return a})}return t(e)}function U0(e,t,n){var r=Vc(n),a=r._title,l=r.key,c=r.children,u=new Set(t===!0?[]:t),d=[];function f(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(p,b){for(var C=eI(g?g.pos:"0",b),x=yf(p[l],C),h,$=0;$<a.length;$+=1){var w=a[$];if(p[w]!==void 0){h=p[w];break}}var E=Object.assign(En(p,[].concat(Ne(a),[l,c])),{title:h,key:x,parent:g,pos:C,children:null,data:p,isStart:[].concat(Ne(g?g.isStart:[]),[b===0]),isEnd:[].concat(Ne(g?g.isEnd:[]),[b===v.length-1])});return d.push(E),t===!0||u.has(x)?E.children=f(p[c]||[],E):E.children=[],E})}return f(e),d}function gq(e,t,n){var r={};Et(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,l=a.childrenPropName,c=a.externalGetKey,u=a.fieldNames,d=Vc(u),f=d.key,v=d.children,g=l||v,p;c?typeof c=="string"?p=function(x){return x[c]}:typeof c=="function"&&(p=function(x){return c(x)}):p=function(x,h){return yf(x[f],h)};function b(C,x,h,$){var w=C?C[g]:e,E=C?eI(h.pos,x):"0",j=C?[].concat(Ne($),[C]):[];if(C){var O=p(C,E),I={node:C,index:x,pos:E,key:O,parentPos:h.node?h.pos:null,level:h.level+1,nodes:j};t(I)}w&&w.forEach(function(R,M){b(R,M,{node:C,pos:E,level:h?h.level+1:-1},j)})}b(null)}function Kg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,l=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,f=l||d,v={},g={},p={posEntities:v,keyEntities:g};return n&&(p=n(p)||p),gq(e,function(b){var C=b.node,x=b.index,h=b.pos,$=b.key,w=b.parentPos,E=b.level,j=b.nodes,O={node:C,nodes:j,index:x,key:$,pos:h,level:E},I=yf($,h);v[h]=O,g[I]=O,O.parent=v[w],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),r&&r(O,p)},{externalGetKey:f,childrenPropName:c,fieldNames:u}),a&&a(p),p}function jd(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,l=t.loadingKeys,c=t.checkedKeys,u=t.halfCheckedKeys,d=t.dragOverNodeKey,f=t.dropPosition,v=t.keyEntities,g=Ta(v,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(g?g.pos:""),dragOver:d===e&&f===0,dragOverGapTop:d===e&&f===-1,dragOverGapBottom:d===e&&f===1};return p}function Fr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,l=e.loaded,c=e.loading,u=e.halfChecked,d=e.dragOver,f=e.dragOverGapTop,v=e.dragOverGapBottom,g=e.pos,p=e.active,b=e.eventKey,C=se(se({},t),{},{expanded:n,selected:r,checked:a,loaded:l,loading:c,halfChecked:u,dragOver:d,dragOverGapTop:f,dragOverGapBottom:v,pos:g,active:p,key:b});return"props"in C||Object.defineProperty(C,"props",{get:function(){return Xn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),C}const pq=(function(e,t){var n=i.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=i.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Kg(e,{fieldNames:t,initWrapper:function(l){return se(se({},l),{},{pathKeyEntities:{}})},processEntity:function(l,c){var u=l.nodes.map(function(d){return d[t.value]}).join(vC);c.pathKeyEntities[u]=l,l.key=u}})),n.current.info.pathKeyEntities},[t,e]);return r});function nI(e,t){var n=i.useMemo(function(){return t||[]},[t]),r=pq(n,e),a=i.useCallback(function(l){var c=r();return l.map(function(u){var d=c[u].nodes;return d.map(function(f){return f[e.value]})})},[r,e]);return[n,r,a]}function hq(e){return i.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Et(e)==="object"&&(t=se(se({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function rI(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function bq(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function yq(e,t,n,r){for(var a=new Set(e),l=new Set,c=0;c<=n;c+=1){var u=t.get(c)||new Set;u.forEach(function(g){var p=g.key,b=g.node,C=g.children,x=C===void 0?[]:C;a.has(p)&&!r(b)&&x.filter(function(h){return!r(h.node)}).forEach(function(h){a.add(h.key)})})}for(var d=new Set,f=n;f>=0;f-=1){var v=t.get(f)||new Set;v.forEach(function(g){var p=g.parent,b=g.node;if(!(r(b)||!g.parent||d.has(g.parent.key))){if(r(g.parent.node)){d.add(p.key);return}var C=!0,x=!1;(p.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var $=h.key,w=a.has($);C&&!w&&(C=!1),!x&&(w||l.has($))&&(x=!0)}),C&&a.add(p.key),x&&l.add(p.key),d.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(rI(l,a))}}function Cq(e,t,n,r,a){for(var l=new Set(e),c=new Set(t),u=0;u<=r;u+=1){var d=n.get(u)||new Set;d.forEach(function(p){var b=p.key,C=p.node,x=p.children,h=x===void 0?[]:x;!l.has(b)&&!c.has(b)&&!a(C)&&h.filter(function($){return!a($.node)}).forEach(function($){l.delete($.key)})})}c=new Set;for(var f=new Set,v=r;v>=0;v-=1){var g=n.get(v)||new Set;g.forEach(function(p){var b=p.parent,C=p.node;if(!(a(C)||!p.parent||f.has(p.parent.key))){if(a(p.parent.node)){f.add(b.key);return}var x=!0,h=!1;(b.children||[]).filter(function($){return!a($.node)}).forEach(function($){var w=$.key,E=l.has(w);x&&!E&&(x=!1),!h&&(E||c.has(w))&&(h=!0)}),x||l.delete(b.key),h&&c.add(b.key),f.add(b.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(rI(c,l))}}function Ci(e,t,n,r){var a=[],l;r?l=r:l=bq;var c=new Set(e.filter(function(v){var g=!!Ta(n,v);return g||a.push(v),g})),u=new Map,d=0;Object.keys(n).forEach(function(v){var g=n[v],p=g.level,b=u.get(p);b||(b=new Set,u.set(p,b)),b.add(g),d=Math.max(d,p)}),Xn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=yq(c,u,d,l):f=Cq(c,t.halfCheckedKeys,u,d,l),f}function aI(e,t,n,r,a,l,c,u){return function(d){if(!e)t(d);else{var f=Oo(d),v=Hc(n),g=Hc(r),p=v.includes(f),b=a.some(function(I){return Oo(I)===f}),C=n,x=a;if(b&&!p)x=a.filter(function(I){return Oo(I)!==f});else{var h=p?v.filter(function(I){return I!==f}):[].concat(Ne(v),[f]),$=l(),w;if(p){var E=Ci(h,{halfCheckedKeys:g},$);w=E.checkedKeys}else{var j=Ci(h,!0,$);w=j.checkedKeys}var O=Z8(w,l,u);C=c(O)}t([].concat(Ne(x),Ne(C)))}}}function oI(e,t,n,r,a){return i.useMemo(function(){var l=a(t),c=fe(l,2),u=c[0],d=c[1];if(!e||!t.length)return[u,[],d];var f=Hc(u),v=n(),g=Ci(f,!0,v),p=g.checkedKeys,b=g.halfCheckedKeys;return[r(p),r(b),d]},[e,t,n,r,a])}var Sq=i.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function xq(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,l=e.disabled,c=e.onClick,u=e.disableCheckbox,d=i.useContext(au),f=d.checkable,v=typeof f!="boolean"?f:null;return i.createElement("span",{className:ue("".concat(n),(t={},ne(t,"".concat(n,"-checked"),r),ne(t,"".concat(n,"-indeterminate"),!r&&a),ne(t,"".concat(n,"-disabled"),l||u),t)),onClick:c},v)}var iI="__cascader_fix_label__";function $q(e){var t=e.prefixCls,n=e.multiple,r=e.options,a=e.activeValue,l=e.prevValuePath,c=e.onToggleOpen,u=e.onSelect,d=e.onActive,f=e.checkedSet,v=e.halfCheckedSet,g=e.loadingKeys,p=e.isSelectable,b=e.disabled,C="".concat(t,"-menu"),x="".concat(t,"-menu-item"),h=i.useContext(au),$=h.fieldNames,w=h.changeOnSelect,E=h.expandTrigger,j=h.expandIcon,O=h.loadingIcon,I=h.dropdownMenuColumnStyle,R=h.optionRender,M=E==="hover",N=function(L){return b||L},P=i.useMemo(function(){return r.map(function(B){var L,k=B.disabled,D=B.disableCheckbox,H=B[Nc],z=(L=B[iI])!==null&&L!==void 0?L:B[$.label],_=B[$.value],F=bd(B,$),W=H?H.map(function(U){return U[$.value]}):[].concat(Ne(l),[_]),q=Oo(W),V=g.includes(q),G=f.has(q),K=v.has(q);return{disabled:k,label:z,value:_,isLeaf:F,isLoading:V,checked:G,halfChecked:K,option:B,disableCheckbox:D,fullPath:W,fullPathKey:q}})},[r,f,$,v,g,l]);return i.createElement("ul",{className:C,role:"menu"},P.map(function(B){var L,k=B.disabled,D=B.label,H=B.value,z=B.isLeaf,_=B.isLoading,F=B.checked,W=B.halfChecked,q=B.option,V=B.fullPath,G=B.fullPathKey,K=B.disableCheckbox,U=function(){if(!N(k)){var Y=Ne(V);M&&z&&Y.pop(),d(Y)}},J=function(){p(q)&&!N(k)&&u(V,z)},Q;return typeof q.title=="string"?Q=q.title:typeof D=="string"&&(Q=D),i.createElement("li",{key:G,className:ue(x,(L={},ne(L,"".concat(x,"-expand"),!z),ne(L,"".concat(x,"-active"),a===H||a===G),ne(L,"".concat(x,"-disabled"),N(k)),ne(L,"".concat(x,"-loading"),_),L)),style:I,role:"menuitemcheckbox",title:Q,"aria-checked":F,"data-path-key":G,onClick:function(){U(),!K&&(!n||z)&&J()},onDoubleClick:function(){w&&c(!1)},onMouseEnter:function(){M&&U()},onMouseDown:function(Y){Y.preventDefault()}},n&&i.createElement(xq,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:W,disabled:N(k)||K,disableCheckbox:K,onClick:function(Y){K||(Y.stopPropagation(),J())}}),i.createElement("div",{className:"".concat(x,"-content")},R?R(q):D),!_&&j&&!z&&i.createElement("div",{className:"".concat(x,"-expand-icon")},j),_&&O&&i.createElement("div",{className:"".concat(x,"-loading-icon")},O))}))}var wq=function(t,n){var r=i.useContext(au),a=r.values,l=a[0],c=i.useState([]),u=fe(c,2),d=u[0],f=u[1];return i.useEffect(function(){t||f(l||[])},[n,l]),[d,f]};const Eq=(function(e,t,n,r,a,l,c){var u=c.direction,d=c.searchValue,f=c.toggleOpen,v=c.open,g=u==="rtl",p=i.useMemo(function(){for(var I=-1,R=t,M=[],N=[],P=r.length,B=Q8(t,n),L=function(_){var F=R.findIndex(function(W,q){return(B[q]?Oo(B[q]):W[n.value])===r[_]});if(F===-1)return 1;I=F,M.push(I),N.push(r[_]),R=R[I][n.children]},k=0;k<P&&R&&!L(k);k+=1);for(var D=t,H=0;H<M.length-1;H+=1)D=D[M[H]][n.children];return[N,I,D,B]},[r,n,t]),b=fe(p,4),C=b[0],x=b[1],h=b[2],$=b[3],w=function(R){a(R)},E=function(R){var M=h.length,N=x;N===-1&&R<0&&(N=M);for(var P=0;P<M;P+=1){N=(N+R+M)%M;var B=h[N];if(B&&!B.disabled){var L=C.slice(0,-1).concat($[N]?Oo($[N]):B[n.value]);w(L);return}}},j=function(){if(C.length>1){var R=C.slice(0,-1);w(R)}else f(!1)},O=function(){var R,M=((R=h[x])===null||R===void 0?void 0:R[n.children])||[],N=M.find(function(B){return!B.disabled});if(N){var P=[].concat(Ne(C),[N[n.value]]);w(P)}};i.useImperativeHandle(e,function(){return{onKeyDown:function(R){var M=R.which;switch(M){case ot.UP:case ot.DOWN:{var N=0;M===ot.UP?N=-1:M===ot.DOWN&&(N=1),N!==0&&E(N);break}case ot.LEFT:{if(d)break;g?O():j();break}case ot.RIGHT:{if(d)break;g?j():O();break}case ot.BACKSPACE:{d||j();break}case ot.ENTER:{if(C.length){var P=h[x],B=(P==null?void 0:P[Nc])||[];B.length?l(B.map(function(L){return L[n.value]}),B[B.length-1]):l(C,h[x])}break}case ot.ESC:f(!1),v&&R.stopPropagation()}},onKeyUp:function(){}}})});var lI=i.forwardRef(function(e,t){var n,r,a,l=e.prefixCls,c=e.multiple,u=e.searchValue,d=e.toggleOpen,f=e.notFoundContent,v=e.direction,g=e.open,p=e.disabled,b=i.useRef(null),C=v==="rtl",x=i.useContext(au),h=x.options,$=x.values,w=x.halfValues,E=x.fieldNames,j=x.changeOnSelect,O=x.onSelect,I=x.searchOptions,R=x.dropdownPrefixCls,M=x.loadData,N=x.expandTrigger,P=R||l,B=i.useState([]),L=fe(B,2),k=L[0],D=L[1],H=function(le){if(!(!M||u)){var de=Fc(le,h,E),ce=de.map(function(Oe){var je=Oe.option;return je}),ge=ce[ce.length-1];if(ge&&!bd(ge,E)){var he=Oo(le);D(function(Oe){return[].concat(Ne(Oe),[he])}),M(ce)}}};i.useEffect(function(){k.length&&k.forEach(function(oe){var le=cq(oe),de=Fc(le,h,E,!0).map(function(ge){var he=ge.option;return he}),ce=de[de.length-1];(!ce||ce[E.children]||bd(ce,E))&&D(function(ge){return ge.filter(function(he){return he!==oe})})})},[h,k,E]);var z=i.useMemo(function(){return new Set(Hc($))},[$]),_=i.useMemo(function(){return new Set(Hc(w))},[w]),F=wq(c,g),W=fe(F,2),q=W[0],V=W[1],G=function(le){V(le),H(le)},K=function(le){if(p)return!1;var de=le.disabled,ce=bd(le,E);return!de&&(ce||j||c)},U=function(le,de){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;O(le),!c&&(de||j&&(N==="hover"||ce))&&d(!1)},J=i.useMemo(function(){return u?I:h},[u,I,h]),Q=i.useMemo(function(){for(var oe=[{options:J}],le=J,de=Q8(le,E),ce=function(){var Oe=q[ge],je=le.find(function(we,Se){return(de[Se]?Oo(de[Se]):we[E.value])===Oe}),pe=je==null?void 0:je[E.children];if(!(pe!=null&&pe.length))return 1;le=pe,oe.push({options:pe})},ge=0;ge<q.length&&!ce();ge+=1);return oe},[J,q,E]),te=function(le,de){K(de)&&U(le,bd(de,E),!0)};Eq(t,J,E,q,G,te,{direction:v,searchValue:u,toggleOpen:d,open:g}),i.useEffect(function(){if(!u)for(var oe=0;oe<q.length;oe+=1){var le,de=q.slice(0,oe+1),ce=Oo(de),ge=(le=b.current)===null||le===void 0?void 0:le.querySelector('li[data-path-key="'.concat(ce.replace(/\\{0,2}"/g,'\\"'),'"]'));ge&&uq(ge)}},[q,u]);var Y=!((n=Q[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),ae=[(r={},ne(r,E.value,"__EMPTY__"),ne(r,iI,f),ne(r,"disabled",!0),r)],re=se(se({},e),{},{multiple:!Y&&c,onSelect:U,onActive:G,onToggleOpen:d,checkedSet:z,halfCheckedSet:_,loadingKeys:k,isSelectable:K}),Z=Y?[{options:ae}]:Q,X=Z.map(function(oe,le){var de=q.slice(0,le),ce=q[le];return i.createElement($q,be({key:le},re,{prefixCls:P,options:oe.options,prevValuePath:de,activeValue:ce}))});return i.createElement(Sq,{open:g},i.createElement("div",{className:ue("".concat(P,"-menus"),(a={},ne(a,"".concat(P,"-menu-empty"),Y),ne(a,"".concat(P,"-rtl"),C),a)),ref:b},X))}),Oq=i.forwardRef(function(e,t){var n=WR();return i.createElement(lI,be({},e,n,{ref:t}))});function Rq(){}function sI(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-cascader":r,l=n.style,c=n.className,u=n.options,d=n.checkable,f=n.defaultValue,v=n.value,g=n.fieldNames,p=n.changeOnSelect,b=n.onChange,C=n.showCheckedStrategy,x=n.loadData,h=n.expandTrigger,$=n.expandIcon,w=$===void 0?">":$,E=n.loadingIcon,j=n.direction,O=n.notFoundContent,I=O===void 0?"Not Found":O,R=n.disabled,M=!!d,N=yn(f,{value:v,postState:Uv}),P=fe(N,2),B=P[0],L=P[1],k=i.useMemo(function(){return Y8(g)},[JSON.stringify(g)]),D=nI(k,u),H=fe(D,3),z=H[0],_=H[1],F=H[2],W=J8(z,k),q=oI(M,B,_,F,W),V=fe(q,3),G=V[0],K=V[1],U=V[2],J=Xt(function(Z){if(L(Z),b){var X=Uv(Z),oe=X.map(function(ce){return Fc(ce,z,k).map(function(ge){return ge.option})}),le=M?X:X[0],de=M?oe:oe[0];b(le,de)}}),Q=aI(M,J,G,K,U,_,F,C),te=Xt(function(Z){Q(Z)}),Y=i.useMemo(function(){return{options:z,fieldNames:k,values:G,halfValues:K,changeOnSelect:p,onSelect:te,checkable:d,searchOptions:[],dropdownPrefixCls:void 0,loadData:x,expandTrigger:h,expandIcon:w,loadingIcon:E,dropdownMenuColumnStyle:void 0}},[z,k,G,K,p,te,d,x,h,w,E]),ae="".concat(a,"-panel"),re=!z.length;return i.createElement(au.Provider,{value:Y},i.createElement("div",{className:ue(ae,(t={},ne(t,"".concat(ae,"-rtl"),j==="rtl"),ne(t,"".concat(ae,"-empty"),re),t),c),style:l},re?I:i.createElement(lI,{prefixCls:a,searchValue:"",multiple:M,toggleOpen:Rq,open:!0,direction:j,disabled:R})))}var jq=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Cf=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-cascader":r,l=e.fieldNames,c=e.defaultValue,u=e.value,d=e.changeOnSelect,f=e.onChange,v=e.displayRender,g=e.checkable,p=e.autoClearSearchValue,b=p===void 0?!0:p,C=e.searchValue,x=e.onSearch,h=e.showSearch,$=e.expandTrigger,w=e.options,E=e.dropdownPrefixCls,j=e.loadData,O=e.popupVisible,I=e.open,R=e.popupClassName,M=e.dropdownClassName,N=e.dropdownMenuColumnStyle,P=e.dropdownStyle,B=e.popupPlacement,L=e.placement,k=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,H=e.onOpenChange,z=e.expandIcon,_=z===void 0?">":z,F=e.loadingIcon,W=e.children,q=e.dropdownMatchSelectWidth,V=q===void 0?!1:q,G=e.showCheckedStrategy,K=G===void 0?G8:G,U=e.optionRender,J=Lt(e,jq),Q=nj(n),te=!!g,Y=yn(c,{value:u,postState:Uv}),ae=fe(Y,2),re=ae[0],Z=ae[1],X=i.useMemo(function(){return Y8(l)},[JSON.stringify(l)]),oe=nI(X,w),le=fe(oe,3),de=le[0],ce=le[1],ge=le[2],he=yn("",{value:C,postState:function(Ot){return Ot||""}}),Oe=fe(he,2),je=Oe[0],pe=Oe[1],we=function(Ot,ct){pe(Ot),ct.source!=="blur"&&x&&x(Ot)},Se=hq(h),Ce=fe(Se,2),De=Ce[0],Ae=Ce[1],Qe=sq(je,de,X,E||a,Ae,d||te),Ke=J8(de,X),Fe=oI(te,re,ce,ge,Ke),Ge=fe(Fe,3),Te=Ge[0],Ee=Ge[1],_e=Ge[2],Re=i.useMemo(function(){var zt=Hc(Te),Ot=Z8(zt,ce,K);return[].concat(Ne(_e),Ne(ge(Ot)))},[Te,ce,ge,_e,K]),Pe=fq(Re,de,X,te,v),ye=Xt(function(zt){if(Z(zt),f){var Ot=Uv(zt),ct=Ot.map(function(et){return Fc(et,de,X).map(function(Ve){return Ve.option})}),$t=te?Ot:Ot[0],St=te?ct:ct[0];f($t,St)}}),$e=aI(te,ye,Te,Ee,_e,ce,ge,K),Me=Xt(function(zt){(!te||b)&&pe(""),$e(zt)}),Le=function(Ot,ct){if(ct.type==="clear"){ye([]);return}var $t=ct.values[0],St=$t.valueCells;Me(St)},tt=I!==void 0?I:O,yt=M||R,We=L||B,nt=function(Ot){H==null||H(Ot),k==null||k(Ot),D==null||D(Ot)},dt=i.useMemo(function(){return{options:de,fieldNames:X,values:Te,halfValues:Ee,changeOnSelect:d,onSelect:Me,checkable:g,searchOptions:Qe,dropdownPrefixCls:E,loadData:j,expandTrigger:$,expandIcon:_,loadingIcon:F,dropdownMenuColumnStyle:N,optionRender:U}},[de,X,Te,Ee,d,Me,g,Qe,E,j,$,_,F,N,U]),at=!(je?Qe:de).length,pt=je&&Ae.matchInputWidth||at?{}:{minWidth:"auto"};return i.createElement(au.Provider,{value:dt},i.createElement(JR,be({},J,{ref:t,id:Q,prefixCls:a,autoClearSearchValue:b,dropdownMatchSelectWidth:V,dropdownStyle:se(se({},pt),P),displayValues:Pe,onDisplayValuesChange:Le,mode:te?"multiple":void 0,searchValue:je,onSearch:we,showSearch:De,OptionList:Oq,emptyOptions:at,open:tt,dropdownClassName:yt,placement:We,onDropdownVisibleChange:nt,getRawInputElement:function(){return W}})))});Cf.SHOW_PARENT=G8;Cf.SHOW_CHILD=X8;Cf.Panel=sI;function cI(e,t){const{getPrefixCls:n,direction:r,renderEmpty:a}=i.useContext(Rt),l=t||r,c=n("select",e),u=n("cascader",e);return[c,u,l,a]}function uI(e,t){return i.useMemo(()=>t?i.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const dI=(e,t,n)=>{let r=n;n||(r=t?i.createElement(Lc,null):i.createElement(Si,null));const a=i.useMemo(()=>i.createElement("span",{className:`${e}-menu-item-loading-icon`},i.createElement(No,{spin:!0})),[e]);return i.useMemo(()=>[r,a],[r,a])},Iq=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},dn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},dn(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]:Object.assign(Object.assign({},dn(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`]:Io(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ie(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:`${ie(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}})},{[`
|
|
333
|
-
${n}:not(${n}-disabled),
|
|
334
|
-
${t}:not(${t}-disabled)
|
|
335
|
-
`]:{[`&: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}`}}},[`
|
|
336
|
-
${n}-checked:not(${n}-disabled),
|
|
337
|
-
${t}-checked:not(${t}-disabled)
|
|
338
|
-
`]:{[`&: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 gC(e,t){const n=tn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Iq(n)}const fI=sn("Checkbox",(e,{prefixCls:t})=>[gC(t,e)]),mI=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=`
|
|
339
|
-
&${r}-expand ${r}-expand-icon,
|
|
340
|
-
${r}-loading-icon
|
|
341
|
-
`;return[gC(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Ga),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},Nq=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},mI(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},$s(e)]},vI=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},gI=sn("Cascader",Nq,vI,{unitless:{optionSelectedFontWeight:!0}}),Mq=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[mI(e),{display:"inline-flex",border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Tq=v6(["Cascader","Panel"],Mq,vI);function Pq(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:l,direction:c,expandIcon:u,disabled:d}=e,f=i.useContext(Wr),v=d??f,[g,p,b,C]=cI(t,c),x=dr(p),[h,$,w]=gI(p,x);Tq(p);const E=b==="rtl",[j,O]=dI(g,E,u),I=l||(C==null?void 0:C("Cascader"))||i.createElement(vf,{componentName:"Cascader"}),R=uI(p,r);return h(i.createElement(sI,Object.assign({},e,{checkable:R,prefixCls:p,className:ue(n,$,a,w,x),notFoundContent:I,direction:b,expandIcon:j,loadingIcon:O,disabled:v})))}var zq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const{SHOW_CHILD:Dq,SHOW_PARENT:_q}=Cf;function Aq(e,t,n){const r=e.toLowerCase().split(t).reduce((c,u,d)=>d===0?[u]:[].concat(Ne(c),[t,u]),[]),a=[];let l=0;return r.forEach((c,u)=>{const d=l+c.length;let f=e.slice(l,d);l=d,u%2===1&&(f=i.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${u}`},f)),a.push(f)}),a}const Bq=(e,t,n,r)=>{const a=[],l=e.toLowerCase();return t.forEach((c,u)=>{u!==0&&a.push(" / ");let d=c[r.label];const f=typeof d;(f==="string"||f==="number")&&(d=Aq(String(d),l,n)),a.push(d)}),a},ou=i.forwardRef((e,t)=>{var n,r,a,l;const{prefixCls:c,size:u,disabled:d,className:f,rootClassName:v,multiple:g,bordered:p=!0,transitionName:b,choiceTransitionName:C="",popupClassName:x,dropdownClassName:h,expandIcon:$,placement:w,showSearch:E,allowClear:j=!0,notFoundContent:O,direction:I,getPopupContainer:R,status:M,showArrow:N,builtinPlacements:P,style:B,variant:L,dropdownRender:k,onDropdownVisibleChange:D,dropdownMenuColumnStyle:H,popupRender:z,dropdownStyle:_,popupMenuColumnStyle:F,onOpenChange:W,styles:q,classNames:V}=e,G=zq(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),K=En(G,["suffixIcon"]),{getPrefixCls:U,getPopupContainer:J,className:Q,style:te,classNames:Y,styles:ae}=vr("cascader"),{popupOverflow:re}=i.useContext(Rt),{status:Z,hasFeedback:X,isFormItemInput:oe,feedbackIcon:le}=i.useContext(Kr),de=$l(Z,M),[ce,ge,he,Oe]=cI(c,I),je=he==="rtl",pe=U(),we=dr(ce),[Se,Ce,De]=fj(ce,we),Ae=dr(ge),[Qe]=gI(ge,Ae),{compactSize:Ke,compactItemClassnames:Fe}=_o(ce,I),[Ge,Te]=wl("cascader",L,p),Ee=O||(Oe==null?void 0:Oe("Cascader"))||i.createElement(vf,{componentName:"Cascader"}),_e=ue(((n=V==null?void 0:V.popup)===null||n===void 0?void 0:n.root)||((r=Y.popup)===null||r===void 0?void 0:r.root)||x||h,`${ge}-dropdown`,{[`${ge}-dropdown-rtl`]:he==="rtl"},v,we,Y.root,V==null?void 0:V.root,Ae,Ce,De),Re=mj(z||k),Pe=F||H,ye=W||D,$e=((a=q==null?void 0:q.popup)===null||a===void 0?void 0:a.root)||((l=ae.popup)===null||l===void 0?void 0:l.root)||_,Me=i.useMemo(()=>{if(!E)return E;let Ve={render:Bq};return typeof E=="object"&&(Ve=Object.assign(Object.assign({},Ve),E)),Ve},[E]),Le=Tr(Ve=>{var Ue;return(Ue=u??Ke)!==null&&Ue!==void 0?Ue:Ve}),tt=i.useContext(Wr),yt=d??tt,[We,nt]=dI(ce,je,$),dt=uI(ge,g),at=vj(e.suffixIcon,N),{suffixIcon:pt,removeIcon:zt,clearIcon:Ot}=F1(Object.assign(Object.assign({},e),{hasFeedback:X,feedbackIcon:le,showSuffixIcon:at,multiple:g,prefixCls:ce,componentName:"Cascader"})),ct=i.useMemo(()=>w!==void 0?w:je?"bottomRight":"bottomLeft",[w,je]),$t=j===!0?{clearIcon:Ot}:j,[St]=Do("SelectLike",$e==null?void 0:$e.zIndex),et=i.createElement(Cf,Object.assign({prefixCls:ce,className:ue(!c&&ge,{[`${ce}-lg`]:Le==="large",[`${ce}-sm`]:Le==="small",[`${ce}-rtl`]:je,[`${ce}-${Ge}`]:Te,[`${ce}-in-form-item`]:oe},$i(ce,de,X),Fe,Q,f,v,V==null?void 0:V.root,Y.root,we,Ae,Ce,De),disabled:yt,style:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),q==null?void 0:q.root),te),B)},K,{builtinPlacements:ij(P,re),direction:he,placement:ct,notFoundContent:Ee,allowClear:$t,showSearch:Me,expandIcon:We,suffixIcon:pt,removeIcon:zt,loadingIcon:nt,checkable:dt,dropdownClassName:_e,dropdownPrefixCls:c||ge,dropdownStyle:Object.assign(Object.assign({},$e),{zIndex:St}),dropdownRender:Re,dropdownMenuColumnStyle:Pe,onOpenChange:ye,choiceTransitionName:Go(pe,"",C),transitionName:Go(pe,"slide-up",b),getPopupContainer:R||J,ref:t}));return Qe(Se(et))}),kq=Jc(ou,"dropdownAlign",e=>En(e,["visible"]));ou.SHOW_PARENT=_q;ou.SHOW_CHILD=Dq;ou.Panel=Pq;ou._InternalPanelDoNotUseOrYouWillBeFired=kq;const pI=ve.createContext(null);var Lq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Hq=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:l,children:c,indeterminate:u=!1,style:d,onMouseEnter:f,onMouseLeave:v,skipGroup:g=!1,disabled:p}=e,b=Lq(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:x,checkbox:h}=i.useContext(Rt),$=i.useContext(pI),{isFormItemInput:w}=i.useContext(Kr),E=i.useContext(Wr),j=(n=($==null?void 0:$.disabled)||p)!==null&&n!==void 0?n:E,O=i.useRef(b.value),I=i.useRef(null),R=Mr(t,I);i.useEffect(()=>{$==null||$.registerValue(b.value)},[]),i.useEffect(()=>{if(!g)return b.value!==O.current&&($==null||$.cancelValue(O.current),$==null||$.registerValue(b.value),O.current=b.value),()=>$==null?void 0:$.cancelValue(b.value)},[b.value]),i.useEffect(()=>{var F;!((F=I.current)===null||F===void 0)&&F.input&&(I.current.input.indeterminate=u)},[u]);const M=C("checkbox",r),N=dr(M),[P,B,L]=fI(M,N),k=Object.assign({},b);$&&!g&&(k.onChange=(...F)=>{b.onChange&&b.onChange.apply(b,F),$.toggleOption&&$.toggleOption({label:c,value:b.value})},k.name=$.name,k.checked=$.value.includes(b.value));const D=ue(`${M}-wrapper`,{[`${M}-rtl`]:x==="rtl",[`${M}-wrapper-checked`]:k.checked,[`${M}-wrapper-disabled`]:j,[`${M}-wrapper-in-form-item`]:w},h==null?void 0:h.className,a,l,L,N,B),H=ue({[`${M}-indeterminate`]:u},mg,B),[z,_]=I8(k.onClick);return P(i.createElement(af,{component:"Checkbox",disabled:j},i.createElement("label",{className:D,style:Object.assign(Object.assign({},h==null?void 0:h.style),d),onMouseEnter:f,onMouseLeave:v,onClick:z},i.createElement(j8,Object.assign({},k,{onClick:_,prefixCls:M,className:H,disabled:j,ref:R})),c!=null&&i.createElement("span",{className:`${M}-label`},c))))},hI=i.forwardRef(Hq);var Fq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Vq=i.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:l,className:c,rootClassName:u,style:d,onChange:f}=e,v=Fq(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:p}=i.useContext(Rt),[b,C]=i.useState(v.value||n||[]),[x,h]=i.useState([]);i.useEffect(()=>{"value"in v&&C(v.value||[])},[v.value]);const $=i.useMemo(()=>a.map(H=>typeof H=="string"||typeof H=="number"?{label:H,value:H}:H),[a]),w=H=>{h(z=>z.filter(_=>_!==H))},E=H=>{h(z=>[].concat(Ne(z),[H]))},j=H=>{const z=b.indexOf(H.value),_=Ne(b);z===-1?_.push(H.value):_.splice(z,1),"value"in v||C(_),f==null||f(_.filter(F=>x.includes(F)).sort((F,W)=>{const q=$.findIndex(G=>G.value===F),V=$.findIndex(G=>G.value===W);return q-V}))},O=g("checkbox",l),I=`${O}-group`,R=dr(O),[M,N,P]=fI(O,R),B=En(v,["value","disabled"]),L=a.length?$.map(H=>i.createElement(hI,{prefixCls:O,key:H.value.toString(),disabled:"disabled"in H?H.disabled:v.disabled,value:H.value,checked:b.includes(H.value),onChange:H.onChange,className:ue(`${I}-item`,H.className),style:H.style,title:H.title,id:H.id,required:H.required},H.label)):r,k=i.useMemo(()=>({toggleOption:j,value:b,disabled:v.disabled,name:v.name,registerValue:E,cancelValue:w}),[j,b,v.disabled,v.name,E,w]),D=ue(I,{[`${I}-rtl`]:p==="rtl"},c,u,P,R,N);return M(i.createElement("div",Object.assign({className:D,style:d},B,{ref:t}),i.createElement(pI.Provider,{value:k},L)))}),aa=hI;aa.Group=Vq;aa.__ANT_CHECKBOX=!0;const bI=i.createContext({});var Wq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function xO(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 Kq=["xs","sm","md","lg","xl","xxl"],Sr=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),{gutter:a,wrap:l}=i.useContext(bI),{prefixCls:c,span:u,order:d,offset:f,push:v,pull:g,className:p,children:b,flex:C,style:x}=e,h=Wq(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",c),[w,E,j]=LB($),O={};let I={};Kq.forEach(N=>{let P={};const B=e[N];typeof B=="number"?P.span=B:typeof B=="object"&&(P=B||{}),delete h[N],I=Object.assign(Object.assign({},I),{[`${$}-${N}-${P.span}`]:P.span!==void 0,[`${$}-${N}-order-${P.order}`]:P.order||P.order===0,[`${$}-${N}-offset-${P.offset}`]:P.offset||P.offset===0,[`${$}-${N}-push-${P.push}`]:P.push||P.push===0,[`${$}-${N}-pull-${P.pull}`]:P.pull||P.pull===0,[`${$}-rtl`]:r==="rtl"}),P.flex&&(I[`${$}-${N}-flex`]=!0,O[`--${$}-${N}-flex`]=xO(P.flex))});const R=ue($,{[`${$}-${u}`]:u!==void 0,[`${$}-order-${d}`]:d,[`${$}-offset-${f}`]:f,[`${$}-push-${v}`]:v,[`${$}-pull-${g}`]:g},p,I,E,j),M={};if(a!=null&&a[0]){const N=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;M.paddingLeft=N,M.paddingRight=N}return C&&(M.flex=xO(C),l===!1&&!M.minWidth&&(M.minWidth=0)),w(i.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},M),x),O),className:R,ref:t}),b))});function Uq(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((l,c)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<ms.length;u++){const d=ms[u];if(a[d]&&l[d]!==void 0){n[c]=l[d];break}}else n[c]=l}),n}var qq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function $O(e,t){const[n,r]=i.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<ms.length;l++){const c=ms[l];if(!t||!t[c])continue;const u=e[c];if(u!==void 0){r(u);return}}};return i.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const pl=i.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:l,style:c,children:u,gutter:d=0,wrap:f}=e,v=qq(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:p}=i.useContext(Rt),b=Ng(!0,null),C=$O(a,b),x=$O(r,b),h=g("row",n),[$,w,E]=kB(h),j=Uq(d,b),O=ue(h,{[`${h}-no-wrap`]:f===!1,[`${h}-${x}`]:x,[`${h}-${C}`]:C,[`${h}-rtl`]:p==="rtl"},l,w,E),I={};if(j!=null&&j[0]){const P=typeof j[0]=="number"?`${j[0]/-2}px`:`calc(${j[0]} / -2)`;I.marginLeft=P,I.marginRight=P}const[R,M]=j;I.rowGap=M;const N=i.useMemo(()=>({gutter:[R,M],wrap:f}),[R,M,f]);return $(i.createElement(bI.Provider,{value:N},i.createElement("div",Object.assign({},v,{className:O,style:Object.assign(Object.assign({},I),c),ref:t}),u)))}),Gq=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Xq=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:l,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{borderBlockStart:`${ie(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ie(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ie(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ie(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ie(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${c} * 100%)`},"&::after":{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${c} * 100%)`},"&::after":{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ie(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ie(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Yq=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Qq=sn("Divider",e=>{const t=tn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Xq(t),Gq(t)]},Yq,{unitless:{orientationMargin:!0}});var Zq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Jq={small:"sm",middle:"md"},pC=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=vr("divider"),{prefixCls:l,type:c="horizontal",orientation:u="center",orientationMargin:d,className:f,rootClassName:v,children:g,dashed:p,variant:b="solid",plain:C,style:x,size:h}=e,$=Zq(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[E,j,O]=Qq(w),I=Tr(h),R=Jq[I],M=!!g,N=i.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),P=N==="start"&&d!=null,B=N==="end"&&d!=null,L=ue(w,r,j,O,`${w}-${c}`,{[`${w}-with-text`]:M,[`${w}-with-text-${N}`]:M,[`${w}-dashed`]:!!p,[`${w}-${b}`]:b!=="solid",[`${w}-plain`]:!!C,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:P,[`${w}-no-default-orientation-margin-end`]:B,[`${w}-${R}`]:!!R},f,v),k=i.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),D={marginInlineStart:P?k:void 0,marginInlineEnd:B?k:void 0};return E(i.createElement("div",Object.assign({className:L,style:Object.assign(Object.assign({},a),x)},$,{role:"separator"}),g&&c!=="vertical"&&i.createElement("span",{className:`${w}-inner-text`,style:D},g)))};var wO=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Vo=function(t){return t!==void 0?"".concat(t,"px"):void 0};function eG(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,l=e.motionName,c=e.onMotionStart,u=e.onMotionEnd,d=e.direction,f=e.vertical,v=f===void 0?!1:f,g=i.useRef(null),p=i.useState(r),b=fe(p,2),C=b[0],x=b[1],h=function(H){var z,_=a(H),F=(z=n.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(t,"-item"))[_];return(F==null?void 0:F.offsetParent)&&F},$=i.useState(null),w=fe($,2),E=w[0],j=w[1],O=i.useState(null),I=fe(O,2),R=I[0],M=I[1];nn(function(){if(C!==r){var D=h(C),H=h(r),z=wO(D,v),_=wO(H,v);x(r),j(z),M(_),D&&H?c():u()}},[r]);var N=i.useMemo(function(){if(v){var D;return Vo((D=E==null?void 0:E.top)!==null&&D!==void 0?D:0)}return Vo(d==="rtl"?-(E==null?void 0:E.right):E==null?void 0:E.left)},[v,d,E]),P=i.useMemo(function(){if(v){var D;return Vo((D=R==null?void 0:R.top)!==null&&D!==void 0?D:0)}return Vo(d==="rtl"?-(R==null?void 0:R.right):R==null?void 0:R.left)},[v,d,R]),B=function(){return v?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},L=function(){return v?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},k=function(){j(null),M(null),u()};return!E||!R?null:i.createElement(Zr,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:B,onAppearActive:L,onVisibleChanged:k},function(D,H){var z=D.className,_=D.style,F=se(se({},_),{},{"--thumb-start-left":N,"--thumb-start-width":Vo(E==null?void 0:E.width),"--thumb-active-left":P,"--thumb-active-width":Vo(R==null?void 0:R.width),"--thumb-start-top":N,"--thumb-start-height":Vo(E==null?void 0:E.height),"--thumb-active-top":P,"--thumb-active-height":Vo(R==null?void 0:R.height)}),W={ref:Mr(g,H),style:F,className:ue("".concat(t,"-thumb"),z)};return i.createElement("div",W)})}var tG=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function nG(e){if(typeof e.title<"u")return e.title;if(Et(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function rG(e){return e.map(function(t){if(Et(t)==="object"&&t!==null){var n=nG(t);return se(se({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var aG=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,l=t.checked,c=t.label,u=t.title,d=t.value,f=t.name,v=t.onChange,g=t.onFocus,p=t.onBlur,b=t.onKeyDown,C=t.onKeyUp,x=t.onMouseDown,h=function(w){a||v(w,d)};return i.createElement("label",{className:ue(r,ne({},"".concat(n,"-item-disabled"),a)),onMouseDown:x},i.createElement("input",{name:f,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:l,onChange:h,onFocus:g,onBlur:p,onKeyDown:b,onKeyUp:C}),i.createElement("div",{className:"".concat(n,"-item-label"),title:u},c))},oG=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,l=e.direction,c=e.vertical,u=e.options,d=u===void 0?[]:u,f=e.disabled,v=e.defaultValue,g=e.value,p=e.name,b=e.onChange,C=e.className,x=C===void 0?"":C,h=e.motionName,$=h===void 0?"thumb-motion":h,w=Lt(e,tG),E=i.useRef(null),j=i.useMemo(function(){return Mr(E,t)},[E,t]),O=i.useMemo(function(){return rG(d)},[d]),I=yn((n=O[0])===null||n===void 0?void 0:n.value,{value:g,defaultValue:v}),R=fe(I,2),M=R[0],N=R[1],P=i.useState(!1),B=fe(P,2),L=B[0],k=B[1],D=function(Z,X){N(X),b==null||b(X)},H=En(w,["children"]),z=i.useState(!1),_=fe(z,2),F=_[0],W=_[1],q=i.useState(!1),V=fe(q,2),G=V[0],K=V[1],U=function(){K(!0)},J=function(){K(!1)},Q=function(){W(!1)},te=function(Z){Z.key==="Tab"&&W(!0)},Y=function(Z){var X=O.findIndex(function(ce){return ce.value===M}),oe=O.length,le=(X+Z+oe)%oe,de=O[le];de&&(N(de.value),b==null||b(de.value))},ae=function(Z){switch(Z.key){case"ArrowLeft":case"ArrowUp":Y(-1);break;case"ArrowRight":case"ArrowDown":Y(1);break}};return i.createElement("div",be({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0,"aria-orientation":c?"vertical":"horizontal"},H,{className:ue(a,ne(ne(ne({},"".concat(a,"-rtl"),l==="rtl"),"".concat(a,"-disabled"),f),"".concat(a,"-vertical"),c),x),ref:j}),i.createElement("div",{className:"".concat(a,"-group")},i.createElement(eG,{vertical:c,prefixCls:a,value:M,containerRef:E,motionName:"".concat(a,"-").concat($),direction:l,getValueIndex:function(Z){return O.findIndex(function(X){return X.value===Z})},onMotionStart:function(){k(!0)},onMotionEnd:function(){k(!1)}}),O.map(function(re){return i.createElement(aG,be({},re,{name:p,key:re.value,prefixCls:a,className:ue(re.className,"".concat(a,"-item"),ne(ne({},"".concat(a,"-item-selected"),re.value===M&&!L),"".concat(a,"-item-focused"),G&&F&&re.value===M)),checked:re.value===M,onChange:D,onFocus:U,onBlur:J,onKeyDown:ae,onKeyUp:te,onMouseDown:Q,disabled:!!f||!!re.disabled}))})))}),iG=oG;function EO(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function OO(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const lG=Object.assign({overflow:"hidden"},Ga),sG=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Xa(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 ${ie(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":Object.assign(Object.assign({},OO(e)),{color:e.itemSelectedColor}),"&-focused":Io(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":Object.assign({minHeight:n,lineHeight:ie(n),padding:`0 ${ie(e.segmentedPaddingHorizontal)}`},lG),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},OO(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ie(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:ie(r),padding:`0 ${ie(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:ie(a),padding:`0 ${ie(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),EO(`&-disabled ${t}-item`,e)),EO(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},cG=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:l,lineWidthBold:c,colorBgLayout:u}=e;return{trackPadding:c,trackBg:u,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:l,itemSelectedColor:n}},uG=sn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=tn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return sG(r)},cG);var RO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function dG(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const fG=i.forwardRef((e,t)=>{const n=cf(),{prefixCls:r,className:a,rootClassName:l,block:c,options:u=[],size:d="middle",style:f,vertical:v,shape:g="default",name:p=n}=e,b=RO(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:C,direction:x,className:h,style:$}=vr("segmented"),w=C("segmented",r),[E,j,O]=uG(w),I=Tr(d),R=i.useMemo(()=>u.map(P=>{if(dG(P)){const{icon:B,label:L}=P,k=RO(P,["icon","label"]);return Object.assign(Object.assign({},k),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${w}-item-icon`},B),L&&i.createElement("span",null,L))})}return P}),[u,w]),M=ue(a,l,h,{[`${w}-block`]:c,[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-vertical`]:v,[`${w}-shape-${g}`]:g==="round"},j,O),N=Object.assign(Object.assign({},$),f);return E(i.createElement(iG,Object.assign({},b,{name:p,className:M,style:N,options:R,ref:t,prefixCls:w,direction:x,vertical:v})))}),mG=fG;var vG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},gG=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:vG}))},pG=i.forwardRef(gG);function Ly(){return typeof BigInt=="function"}function yI(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function is(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),l=a[0]||"0",c=a[1]||"0";l==="0"&&c==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:l,decimalStr:c,fullStr:"".concat(u).concat(r)}}function Ug(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function CI(e){var t=e.toLowerCase().split("e"),n=fe(t,2),r=n[0],a=n[1],l=a===void 0?"0":a,c=r.startsWith("-"),u=c?r.slice(1):r,d=u.split("."),f=fe(d,2),v=f[0],g=v===void 0?"0":v,p=f[1],b=p===void 0?"":p,C="".concat(g).concat(b).replace(/^0+/,"")||"0";return{decimal:b,digits:C,exponent:Number(l),integer:g,negative:c}}function hG(e){var t=e.decimal,n=e.digits,r=e.exponent,a=e.integer,l=e.negative;if(n==="0")return"0";var c=a.replace(/^0+/,"").length,u=(t.match(/^0*/)||[""])[0].length,d=c||-u,f=d+r,v="";return f<=0?v="0.".concat("0".repeat(-f)).concat(n):f>=n.length?v="".concat(n).concat("0".repeat(f-n.length)):v="".concat(n.slice(0,f),".").concat(n.slice(f)),"".concat(l?"-":"").concat(v)}function SI(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Zl(e){var t=String(e);return Ug(e)?SI(CI(t)):t.includes(".")&&hC(t)?t.length-t.indexOf(".")-1:0}function qg(e){var t=String(e);if(Ug(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ly()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ly()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=CI(t),r=SI(n);t=r>100?hG(n):e.toFixed(r)}return is(t).fullStr}function hC(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var bG=(function(){function e(t){if(fr(this,e),ne(this,"origin",""),ne(this,"negative",void 0),ne(this,"integer",void 0),ne(this,"decimal",void 0),ne(this,"decimalLen",void 0),ne(this,"empty",void 0),ne(this,"nan",void 0),yI(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Ug(n)&&(n=Number(n)),n=typeof n=="string"?n:qg(n),hC(n)){var r=is(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var l=a[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}return mr(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var l=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),c=this.alignDecimal(l),u=n.alignDecimal(l),d=r(c,u).toString(),f=a(l),v=is(d),g=v.negativeStr,p=v.trimStr,b="".concat(g).concat(p.padStart(f+1,"0"));return new e("".concat(b.slice(0,-f),".").concat(b.slice(-f)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,l){return a+l},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,l){return a*l},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":is("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),yG=(function(){function e(t){if(fr(this,e),ne(this,"origin",""),ne(this,"number",void 0),ne(this,"empty",void 0),yI(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return mr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var l=Math.max(Zl(this.number),Zl(r));return new e(a.toFixed(l))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var l=Math.max(Zl(this.number),Zl(r));return new e(a.toFixed(l))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ug(this.number)&&Zl(this.number)>100?String(this.number):qg(this.number):this.origin}}]),e})();function So(e){return Ly()?new bG(e):new yG(e)}function Ev(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=is(e),l=a.negativeStr,c=a.integerStr,u=a.decimalStr,d="".concat(t).concat(u),f="".concat(l).concat(c);if(n>=0){var v=Number(u[n]);if(v>=5&&!r){var g=So(e).add("".concat(l,"0.").concat("0".repeat(n)).concat(10-v));return Ev(g.toString(),t,n,r)}return n===0?f:"".concat(f).concat(t).concat(u.padEnd(n,"0").slice(0,n))}return d===".0"?f:"".concat(f).concat(d)}function CG(e){return!!(e.addonBefore||e.addonAfter)}function SG(e){return!!(e.prefix||e.suffix||e.allowClear)}function jO(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function qv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=jO(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=jO(t,e,r),n(a);return}n(a)}}function bC(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var yC=ve.forwardRef(function(e,t){var n,r,a,l=e.inputElement,c=e.children,u=e.prefixCls,d=e.prefix,f=e.suffix,v=e.addonBefore,g=e.addonAfter,p=e.className,b=e.style,C=e.disabled,x=e.readOnly,h=e.focused,$=e.triggerFocus,w=e.allowClear,E=e.value,j=e.handleReset,O=e.hidden,I=e.classes,R=e.classNames,M=e.dataAttrs,N=e.styles,P=e.components,B=e.onClear,L=c??l,k=(P==null?void 0:P.affixWrapper)||"span",D=(P==null?void 0:P.groupWrapper)||"span",H=(P==null?void 0:P.wrapper)||"span",z=(P==null?void 0:P.groupAddon)||"span",_=i.useRef(null),F=function(de){var ce;(ce=_.current)!==null&&ce!==void 0&&ce.contains(de.target)&&($==null||$())},W=SG(e),q=i.cloneElement(L,{value:E,className:ue((n=L.props)===null||n===void 0?void 0:n.className,!W&&(R==null?void 0:R.variant))||null}),V=i.useRef(null);if(ve.useImperativeHandle(t,function(){return{nativeElement:V.current||_.current}}),W){var G=null;if(w){var K=!C&&!x&&E,U="".concat(u,"-clear-icon"),J=Et(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";G=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){j==null||j(de),B==null||B()},onMouseDown:function(de){return de.preventDefault()},className:ue(U,ne(ne({},"".concat(U,"-hidden"),!K),"".concat(U,"-has-suffix"),!!f))},J)}var Q="".concat(u,"-affix-wrapper"),te=ue(Q,ne(ne(ne(ne(ne({},"".concat(u,"-disabled"),C),"".concat(Q,"-disabled"),C),"".concat(Q,"-focused"),h),"".concat(Q,"-readonly"),x),"".concat(Q,"-input-with-clear-btn"),f&&w&&E),I==null?void 0:I.affixWrapper,R==null?void 0:R.affixWrapper,R==null?void 0:R.variant),Y=(f||w)&&ve.createElement("span",{className:ue("".concat(u,"-suffix"),R==null?void 0:R.suffix),style:N==null?void 0:N.suffix},G,f);q=ve.createElement(k,be({className:te,style:N==null?void 0:N.affixWrapper,onClick:F},M==null?void 0:M.affixWrapper,{ref:_}),d&&ve.createElement("span",{className:ue("".concat(u,"-prefix"),R==null?void 0:R.prefix),style:N==null?void 0:N.prefix},d),q,Y)}if(CG(e)){var ae="".concat(u,"-group"),re="".concat(ae,"-addon"),Z="".concat(ae,"-wrapper"),X=ue("".concat(u,"-wrapper"),ae,I==null?void 0:I.wrapper,R==null?void 0:R.wrapper),oe=ue(Z,ne({},"".concat(Z,"-disabled"),C),I==null?void 0:I.group,R==null?void 0:R.groupWrapper);q=ve.createElement(D,{className:oe,ref:V},ve.createElement(H,{className:X},v&&ve.createElement(z,{className:re},v),q,g&&ve.createElement(z,{className:re},g)))}return ve.cloneElement(q,{className:ue((r=q.props)===null||r===void 0?void 0:r.className,p)||null,style:se(se({},(a=q.props)===null||a===void 0?void 0:a.style),b),hidden:O})}),xG=["show"];function xI(e,t){return i.useMemo(function(){var n={};t&&(n.show=Et(t)==="object"&&t.formatter?t.formatter:!!t),n=se(se({},n),e);var r=n,a=r.show,l=Lt(r,xG);return se(se({},l),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:l.strategy||function(c){return c.length}})},[e,t])}var $G=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],wG=i.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,d=e.onKeyUp,f=e.prefixCls,v=f===void 0?"rc-input":f,g=e.disabled,p=e.htmlSize,b=e.className,C=e.maxLength,x=e.suffix,h=e.showCount,$=e.count,w=e.type,E=w===void 0?"text":w,j=e.classes,O=e.classNames,I=e.styles,R=e.onCompositionStart,M=e.onCompositionEnd,N=Lt(e,$G),P=i.useState(!1),B=fe(P,2),L=B[0],k=B[1],D=i.useRef(!1),H=i.useRef(!1),z=i.useRef(null),_=i.useRef(null),F=function(Ce){z.current&&bC(z.current,Ce)},W=yn(e.defaultValue,{value:e.value}),q=fe(W,2),V=q[0],G=q[1],K=V==null?"":String(V),U=i.useState(null),J=fe(U,2),Q=J[0],te=J[1],Y=xI($,h),ae=Y.max||C,re=Y.strategy(K),Z=!!ae&&re>ae;i.useImperativeHandle(t,function(){var Se;return{focus:F,blur:function(){var De;(De=z.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,Ae,Qe){var Ke;(Ke=z.current)===null||Ke===void 0||Ke.setSelectionRange(De,Ae,Qe)},select:function(){var De;(De=z.current)===null||De===void 0||De.select()},input:z.current,nativeElement:((Se=_.current)===null||Se===void 0?void 0:Se.nativeElement)||z.current}}),i.useEffect(function(){H.current&&(H.current=!1),k(function(Se){return Se&&g?!1:Se})},[g]);var X=function(Ce,De,Ae){var Qe=De;if(!D.current&&Y.exceedFormatter&&Y.max&&Y.strategy(De)>Y.max){if(Qe=Y.exceedFormatter(De,{max:Y.max}),De!==Qe){var Ke,Fe;te([((Ke=z.current)===null||Ke===void 0?void 0:Ke.selectionStart)||0,((Fe=z.current)===null||Fe===void 0?void 0:Fe.selectionEnd)||0])}}else if(Ae.source==="compositionEnd")return;G(Qe),z.current&&qv(z.current,Ce,r,Qe)};i.useEffect(function(){if(Q){var Se;(Se=z.current)===null||Se===void 0||Se.setSelectionRange.apply(Se,Ne(Q))}},[Q]);var oe=function(Ce){X(Ce,Ce.target.value,{source:"change"})},le=function(Ce){D.current=!1,X(Ce,Ce.currentTarget.value,{source:"compositionEnd"}),M==null||M(Ce)},de=function(Ce){c&&Ce.key==="Enter"&&!H.current&&(H.current=!0,c(Ce)),u==null||u(Ce)},ce=function(Ce){Ce.key==="Enter"&&(H.current=!1),d==null||d(Ce)},ge=function(Ce){k(!0),a==null||a(Ce)},he=function(Ce){H.current&&(H.current=!1),k(!1),l==null||l(Ce)},Oe=function(Ce){G(""),F(),z.current&&qv(z.current,Ce,r)},je=Z&&"".concat(v,"-out-of-range"),pe=function(){var Ce=En(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",be({autoComplete:n},Ce,{onChange:oe,onFocus:ge,onBlur:he,onKeyDown:de,onKeyUp:ce,className:ue(v,ne({},"".concat(v,"-disabled"),g),O==null?void 0:O.input),style:I==null?void 0:I.input,ref:z,size:p,type:E,onCompositionStart:function(Ae){D.current=!0,R==null||R(Ae)},onCompositionEnd:le}))},we=function(){var Ce=Number(ae)>0;if(x||Y.show){var De=Y.showFormatter?Y.showFormatter({value:K,count:re,maxLength:ae}):"".concat(re).concat(Ce?" / ".concat(ae):"");return ve.createElement(ve.Fragment,null,Y.show&&ve.createElement("span",{className:ue("".concat(v,"-show-count-suffix"),ne({},"".concat(v,"-show-count-has-suffix"),!!x),O==null?void 0:O.count),style:se({},I==null?void 0:I.count)},De),x)}return null};return ve.createElement(yC,be({},N,{prefixCls:v,className:ue(b,je),handleReset:Oe,value:K,focused:L,triggerFocus:F,suffix:we(),disabled:g,classes:j,classNames:O,styles:I,ref:_}),pe())});function EG(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var l=r[a];return typeof l=="function"?l.bind(r):l}}):e}function OG(e,t){var n=i.useRef(null);function r(){try{var l=e.selectionStart,c=e.selectionEnd,u=e.value,d=u.substring(0,l),f=u.substring(c);n.current={start:l,end:c,value:u,beforeTxt:d,afterTxt:f}}catch{}}function a(){if(e&&n.current&&t)try{var l=e.value,c=n.current,u=c.beforeTxt,d=c.afterTxt,f=c.start,v=l.length;if(l.startsWith(u))v=u.length;else if(l.endsWith(d))v=l.length-n.current.afterTxt.length;else{var g=u[f-1],p=l.indexOf(g,f-1);p!==-1&&(v=p+1)}e.setSelectionRange(v,v)}catch(b){Xn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b.message))}}return[r,a]}var RG=function(){var t=i.useState(!1),n=fe(t,2),r=n[0],a=n[1];return nn(function(){a(Rg())},[]),r},jG=200,IG=600;function NG(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,l=e.downDisabled,c=e.onStep,u=i.useRef(),d=i.useRef([]),f=i.useRef();f.current=c;var v=function(){clearTimeout(u.current)},g=function(E,j){E.preventDefault(),v(),f.current(j);function O(){f.current(j),u.current=setTimeout(O,jG)}u.current=setTimeout(O,IG)};i.useEffect(function(){return function(){v(),d.current.forEach(function(w){return Yt.cancel(w)})}},[]);var p=RG();if(p)return null;var b="".concat(t,"-handler"),C=ue(b,"".concat(b,"-up"),ne({},"".concat(b,"-up-disabled"),a)),x=ue(b,"".concat(b,"-down"),ne({},"".concat(b,"-down-disabled"),l)),h=function(){return d.current.push(Yt(v))},$={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return i.createElement("div",{className:"".concat(b,"-wrap")},i.createElement("span",be({},$,{onMouseDown:function(E){g(E,!0)},"aria-label":"Increase Value","aria-disabled":a,className:C}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",be({},$,{onMouseDown:function(E){g(E,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:x}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function IO(e){var t=typeof e=="number"?qg(e):is(e).fullStr,n=t.includes(".");return n?is(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const MG=(function(){var e=i.useRef(0),t=function(){Yt.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=Yt(function(){n()})}});var TG=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],PG=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],NO=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},MO=function(t){var n=So(t);return n.isInvalidate()?null:n},zG=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.min,c=e.max,u=e.step,d=u===void 0?1:u,f=e.defaultValue,v=e.value,g=e.disabled,p=e.readOnly,b=e.upHandler,C=e.downHandler,x=e.keyboard,h=e.changeOnWheel,$=h===void 0?!1:h,w=e.controls,E=w===void 0?!0:w;e.classNames;var j=e.stringMode,O=e.parser,I=e.formatter,R=e.precision,M=e.decimalSeparator,N=e.onChange,P=e.onInput,B=e.onPressEnter,L=e.onStep,k=e.changeOnBlur,D=k===void 0?!0:k,H=e.domRef,z=Lt(e,TG),_="".concat(n,"-input"),F=i.useRef(null),W=i.useState(!1),q=fe(W,2),V=q[0],G=q[1],K=i.useRef(!1),U=i.useRef(!1),J=i.useRef(!1),Q=i.useState(function(){return So(v??f)}),te=fe(Q,2),Y=te[0],ae=te[1];function re(We){v===void 0&&ae(We)}var Z=i.useCallback(function(We,nt){if(!nt)return R>=0?R:Math.max(Zl(We),Zl(d))},[R,d]),X=i.useCallback(function(We){var nt=String(We);if(O)return O(nt);var dt=nt;return M&&(dt=dt.replace(M,".")),dt.replace(/[^\w.-]+/g,"")},[O,M]),oe=i.useRef(""),le=i.useCallback(function(We,nt){if(I)return I(We,{userTyping:nt,input:String(oe.current)});var dt=typeof We=="number"?qg(We):We;if(!nt){var at=Z(dt,nt);if(hC(dt)&&(M||at>=0)){var pt=M||".";dt=Ev(dt,pt,at)}}return dt},[I,Z,M]),de=i.useState(function(){var We=f??v;return Y.isInvalidate()&&["string","number"].includes(Et(We))?Number.isNaN(We)?"":We:le(Y.toString(),!1)}),ce=fe(de,2),ge=ce[0],he=ce[1];oe.current=ge;function Oe(We,nt){he(le(We.isInvalidate()?We.toString(!1):We.toString(!nt),nt))}var je=i.useMemo(function(){return MO(c)},[c,R]),pe=i.useMemo(function(){return MO(l)},[l,R]),we=i.useMemo(function(){return!je||!Y||Y.isInvalidate()?!1:je.lessEquals(Y)},[je,Y]),Se=i.useMemo(function(){return!pe||!Y||Y.isInvalidate()?!1:Y.lessEquals(pe)},[pe,Y]),Ce=OG(F.current,V),De=fe(Ce,2),Ae=De[0],Qe=De[1],Ke=function(nt){return je&&!nt.lessEquals(je)?je:pe&&!pe.lessEquals(nt)?pe:null},Fe=function(nt){return!Ke(nt)},Ge=function(nt,dt){var at=nt,pt=Fe(at)||at.isEmpty();if(!at.isEmpty()&&!dt&&(at=Ke(at)||at,pt=!0),!p&&!g&&pt){var zt=at.toString(),Ot=Z(zt,dt);return Ot>=0&&(at=So(Ev(zt,".",Ot)),Fe(at)||(at=So(Ev(zt,".",Ot,!0)))),at.equals(Y)||(re(at),N==null||N(at.isEmpty()?null:NO(j,at)),v===void 0&&Oe(at,dt)),at}return Y},Te=MG(),Ee=function We(nt){if(Ae(),oe.current=nt,he(nt),!U.current){var dt=X(nt),at=So(dt);at.isNaN()||Ge(at,!0)}P==null||P(nt),Te(function(){var pt=nt;O||(pt=nt.replace(/。/g,".")),pt!==nt&&We(pt)})},_e=function(){U.current=!0},Re=function(){U.current=!1,Ee(F.current.value)},Pe=function(nt){Ee(nt.target.value)},ye=function(nt){var dt;if(!(nt&&we||!nt&&Se)){K.current=!1;var at=So(J.current?IO(d):d);nt||(at=at.negate());var pt=(Y||So(0)).add(at.toString()),zt=Ge(pt,!1);L==null||L(NO(j,zt),{offset:J.current?IO(d):d,type:nt?"up":"down"}),(dt=F.current)===null||dt===void 0||dt.focus()}},$e=function(nt){var dt=So(X(ge)),at;dt.isNaN()?at=Ge(Y,nt):at=Ge(dt,nt),v!==void 0?Oe(Y,!1):at.isNaN()||Oe(at,!1)},Me=function(){K.current=!0},Le=function(nt){var dt=nt.key,at=nt.shiftKey;K.current=!0,J.current=at,dt==="Enter"&&(U.current||(K.current=!1),$e(!1),B==null||B(nt)),x!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(dt)&&(ye(dt==="Up"||dt==="ArrowUp"),nt.preventDefault())},tt=function(){K.current=!1,J.current=!1};i.useEffect(function(){if($&&V){var We=function(at){ye(at.deltaY<0),at.preventDefault()},nt=F.current;if(nt)return nt.addEventListener("wheel",We,{passive:!1}),function(){return nt.removeEventListener("wheel",We)}}});var yt=function(){D&&$e(!1),G(!1),K.current=!1};return as(function(){Y.isInvalidate()||Oe(Y,!1)},[R,I]),as(function(){var We=So(v);ae(We);var nt=So(X(ge));(!We.equals(nt)||!K.current||I)&&Oe(We,K.current)},[v]),as(function(){I&&Qe()},[ge]),i.createElement("div",{ref:H,className:ue(n,r,ne(ne(ne(ne(ne({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),g),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!Fe(Y))),style:a,onFocus:function(){G(!0)},onBlur:yt,onKeyDown:Le,onKeyUp:tt,onCompositionStart:_e,onCompositionEnd:Re,onBeforeInput:Me},E&&i.createElement(NG,{prefixCls:n,upNode:b,downNode:C,upDisabled:we,downDisabled:Se,onStep:ye}),i.createElement("div",{className:"".concat(_,"-wrap")},i.createElement("input",be({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:d},z,{ref:Mr(F,t),className:_,value:ge,onChange:Pe,disabled:g,readOnly:p}))))}),DG=i.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,l=a===void 0?"rc-input-number":a,c=e.value,u=e.prefix,d=e.suffix,f=e.addonBefore,v=e.addonAfter,g=e.className,p=e.classNames,b=Lt(e,PG),C=i.useRef(null),x=i.useRef(null),h=i.useRef(null),$=function(E){h.current&&bC(h.current,E)};return i.useImperativeHandle(t,function(){return EG(h.current,{focus:$,nativeElement:C.current.nativeElement||x.current})}),i.createElement(yC,{className:g,triggerFocus:$,prefixCls:l,value:c,disabled:n,style:r,prefix:u,suffix:d,addonAfter:v,addonBefore:f,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:C},i.createElement(zG,be({prefixCls:l,disabled:n,ref:h,domRef:x,className:p==null?void 0:p.input},b)))});const _G=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Is(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new bn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},TO=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},AG=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:l,inputFontSizeLG:c,controlHeightLG:u,controlHeightSM:d,colorError:f,paddingInlineSM:v,paddingBlockSM:g,paddingBlockLG:p,paddingInlineLG:b,colorIcon:C,motionDurationMid:x,handleHoverColor:h,handleOpacity:$,paddingInline:w,paddingBlock:E,handleBg:j,handleActiveBg:O,colorTextDisabled:I,borderRadiusSM:R,borderRadiusLG:M,controlWidth:N,handleBorderColor:P,filledHandleBg:B,lineHeightLG:L,calc:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),bf(e)),{display:"inline-block",width:N,margin:0,padding:0,borderRadius:a}),lC(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${ie(n)} ${r} ${P}`}}})),cC(e,{[`${t}-handler-wrap`]:{background:B,[`${t}-handler-down`]:{borderBlockStart:`${ie(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:j}}})),uC(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${ie(n)} ${r} ${P}`}}})),sC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:c,lineHeight:L,borderRadius:M,[`input${t}-input`]:{height:k(u).sub(k(n).mul(2)).equal(),padding:`${ie(p)} ${ie(b)}`}},"&-sm":{padding:0,fontSize:l,borderRadius:R,[`input${t}-input`]:{height:k(d).sub(k(n).mul(2)).equal(),padding:`${ie(g)} ${ie(v)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},dn(e)),k8(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:M,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:R}}},z8(e)),_8(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{width:"100%",padding:`${ie(E)} ${ie(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${x} linear`,appearance:"textfield",fontSize:"inherit"}),dC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:$,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${x}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
342
|
-
${t}-handler-up-inner,
|
|
343
|
-
${t}-handler-down-inner
|
|
344
|
-
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:C,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ie(n)} ${r} ${P}`,transition:`all ${x} linear`,"&:active":{background:O},"&:hover":{height:"60%",[`
|
|
345
|
-
${t}-handler-up-inner,
|
|
346
|
-
${t}-handler-down-inner
|
|
347
|
-
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Cs()),{color:C,transition:`all ${x} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},TO(e,"lg")),TO(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
348
|
-
${t}-handler-up-disabled,
|
|
349
|
-
${t}-handler-down-disabled
|
|
350
|
-
`]:{cursor:"not-allowed"},[`
|
|
351
|
-
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
352
|
-
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
353
|
-
`]:{color:I}})}]},BG=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:l,borderRadiusLG:c,borderRadiusSM:u,paddingInlineLG:d,paddingInlineSM:f,paddingBlockLG:v,paddingBlockSM:g,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ie(n)} 0`}},bf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:l,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:d,[`input${t}-input`]:{padding:`${ie(v)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:f,[`input${t}-input`]:{padding:`${ie(g)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},kG=sn("InputNumber",e=>{const t=tn(e,js(e));return[AG(t),BG(t),$s(t)]},_G,{unitless:{handleOpacity:!0},resetFont:!1});var LG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $I=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),a=i.useRef(null);i.useImperativeHandle(t,()=>a.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:v,addonAfter:g,prefix:p,suffix:b,bordered:C,readOnly:x,status:h,controls:$,variant:w}=e,E=LG(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),j=n("input-number",f),O=dr(j),[I,R,M]=kG(j,O),{compactSize:N,compactItemClassnames:P}=_o(j,r);let B=i.createElement(pG,{className:`${j}-handler-up-inner`}),L=i.createElement(gf,{className:`${j}-handler-down-inner`});const k=typeof $=="boolean"?$:void 0;typeof $=="object"&&(B=typeof $.upIcon>"u"?B:i.createElement("span",{className:`${j}-handler-up-inner`},$.upIcon),L=typeof $.downIcon>"u"?L:i.createElement("span",{className:`${j}-handler-down-inner`},$.downIcon));const{hasFeedback:D,status:H,isFormItemInput:z,feedbackIcon:_}=i.useContext(Kr),F=$l(H,h),W=Tr(Y=>{var ae;return(ae=u??N)!==null&&ae!==void 0?ae:Y}),q=i.useContext(Wr),V=d??q,[G,K]=wl("inputNumber",w,C),U=D&&i.createElement(i.Fragment,null,_),J=ue({[`${j}-lg`]:W==="large",[`${j}-sm`]:W==="small",[`${j}-rtl`]:r==="rtl",[`${j}-in-form-item`]:z},R),Q=`${j}-group`,te=i.createElement(DG,Object.assign({ref:a,disabled:V,className:ue(M,O,l,c,P),upHandler:B,downHandler:L,prefixCls:j,readOnly:x,controls:k,prefix:p,suffix:U||b,addonBefore:v&&i.createElement(Qo,{form:!0,space:!0},v),addonAfter:g&&i.createElement(Qo,{form:!0,space:!0},g),classNames:{input:J,variant:ue({[`${j}-${G}`]:K},$i(j,F,D)),affixWrapper:ue({[`${j}-affix-wrapper-sm`]:W==="small",[`${j}-affix-wrapper-lg`]:W==="large",[`${j}-affix-wrapper-rtl`]:r==="rtl",[`${j}-affix-wrapper-without-controls`]:$===!1||V||x},R),wrapper:ue({[`${Q}-rtl`]:r==="rtl"},R),groupWrapper:ue({[`${j}-group-wrapper-sm`]:W==="small",[`${j}-group-wrapper-lg`]:W==="large",[`${j}-group-wrapper-rtl`]:r==="rtl",[`${j}-group-wrapper-${G}`]:K},$i(`${j}-group-wrapper`,F,D),R)}},E));return I(te)}),Gv=$I,HG=e=>i.createElement(Po,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement($I,Object.assign({},e)));Gv._InternalPanelDoNotUseOrYouWillBeFired=HG;const wI=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ve.createElement(Sl,null)}),t};function EI(e,t){const n=i.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,l,c,u;!((a=e.current)===null||a===void 0)&&a.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((c=e.current)===null||c===void 0)&&c.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return i.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function FG(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var VG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Sf=i.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:l,disabled:c,onBlur:u,onFocus:d,suffix:f,allowClear:v,addonAfter:g,addonBefore:p,className:b,style:C,styles:x,rootClassName:h,onChange:$,classNames:w,variant:E,_skipAddonWarning:j}=e,O=VG(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:I,direction:R,allowClear:M,autoComplete:N,className:P,style:B,classNames:L,styles:k}=vr("input"),D=I("input",n),H=i.useRef(null),z=dr(D),[_,F,W]=L8(D,h),[q]=H8(D,z),{compactSize:V,compactItemClassnames:G}=_o(D,R),K=Tr(Oe=>{var je;return(je=l??V)!==null&&je!==void 0?je:Oe}),U=ve.useContext(Wr),J=c??U,{status:Q,hasFeedback:te,feedbackIcon:Y}=i.useContext(Kr),ae=$l(Q,a),re=FG(e)||!!te;i.useRef(re);const Z=EI(H,!0),X=Oe=>{Z(),u==null||u(Oe)},oe=Oe=>{Z(),d==null||d(Oe)},le=Oe=>{Z(),$==null||$(Oe)},de=(te||f)&&ve.createElement(ve.Fragment,null,f,te&&Y),ce=wI(v??M),[ge,he]=wl("input",E,r);return _(q(ve.createElement(wG,Object.assign({ref:Mr(t,H),prefixCls:D,autoComplete:N},O,{disabled:J,onBlur:X,onFocus:oe,style:Object.assign(Object.assign({},B),C),styles:Object.assign(Object.assign({},k),x),suffix:de,allowClear:ce,className:ue(b,h,W,z,G,P),onChange:le,addonBefore:p&&ve.createElement(Qo,{form:!0,space:!0},p),addonAfter:g&&ve.createElement(Qo,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},w),L),{input:ue({[`${D}-sm`]:K==="small",[`${D}-lg`]:K==="large",[`${D}-rtl`]:R==="rtl"},w==null?void 0:w.input,L.input,F),variant:ue({[`${D}-${ge}`]:he},$i(D,ae)),affixWrapper:ue({[`${D}-affix-wrapper-sm`]:K==="small",[`${D}-affix-wrapper-lg`]:K==="large",[`${D}-affix-wrapper-rtl`]:R==="rtl"},F),wrapper:ue({[`${D}-group-rtl`]:R==="rtl"},F),groupWrapper:ue({[`${D}-group-wrapper-sm`]:K==="small",[`${D}-group-wrapper-lg`]:K==="large",[`${D}-group-wrapper-rtl`]:R==="rtl",[`${D}-group-wrapper-${ge}`]:he},$i(`${D}-group-wrapper`,ae,te),F)})}))))});function Hy(e,t,n){return(e-t)/(n-t)}function CC(e,t,n,r){var a=Hy(t,n,r),l={};switch(e){case"rtl":l.right="".concat(a*100,"%"),l.transform="translateX(50%)";break;case"btt":l.bottom="".concat(a*100,"%"),l.transform="translateY(50%)";break;case"ttb":l.top="".concat(a*100,"%"),l.transform="translateY(-50%)";break;default:l.left="".concat(a*100,"%"),l.transform="translateX(-50%)";break}return l}function Jl(e,t){return Array.isArray(e)?e[t]:e}var Ns=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),WG=i.createContext({}),KG=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],PO=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,l=e.onStartMove,c=e.onDelete,u=e.style,d=e.render,f=e.dragging,v=e.draggingDelete,g=e.onOffsetChange,p=e.onChangeComplete,b=e.onFocus,C=e.onMouseEnter,x=Lt(e,KG),h=i.useContext(Ns),$=h.min,w=h.max,E=h.direction,j=h.disabled,O=h.keyboard,I=h.range,R=h.tabIndex,M=h.ariaLabelForHandle,N=h.ariaLabelledByForHandle,P=h.ariaRequired,B=h.ariaValueTextFormatterForHandle,L=h.styles,k=h.classNames,D="".concat(n,"-handle"),H=function(J){j||l(J,a)},z=function(J){b==null||b(J,a)},_=function(J){C(J,a)},F=function(J){if(!j&&O){var Q=null;switch(J.which||J.keyCode){case ot.LEFT:Q=E==="ltr"||E==="btt"?-1:1;break;case ot.RIGHT:Q=E==="ltr"||E==="btt"?1:-1;break;case ot.UP:Q=E!=="ttb"?1:-1;break;case ot.DOWN:Q=E!=="ttb"?-1:1;break;case ot.HOME:Q="min";break;case ot.END:Q="max";break;case ot.PAGE_UP:Q=2;break;case ot.PAGE_DOWN:Q=-2;break;case ot.BACKSPACE:case ot.DELETE:c==null||c(a);break}Q!==null&&(J.preventDefault(),g(Q,a))}},W=function(J){switch(J.which||J.keyCode){case ot.LEFT:case ot.RIGHT:case ot.UP:case ot.DOWN:case ot.HOME:case ot.END:case ot.PAGE_UP:case ot.PAGE_DOWN:p==null||p();break}},q=CC(E,r,$,w),V={};if(a!==null){var G;V={tabIndex:j?null:Jl(R,a),role:"slider","aria-valuemin":$,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":j,"aria-label":Jl(M,a),"aria-labelledby":Jl(N,a),"aria-required":Jl(P,a),"aria-valuetext":(G=Jl(B,a))===null||G===void 0?void 0:G(r),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:H,onTouchStart:H,onFocus:z,onMouseEnter:_,onKeyDown:F,onKeyUp:W}}var K=i.createElement("div",be({ref:t,className:ue(D,ne(ne(ne({},"".concat(D,"-").concat(a+1),a!==null&&I),"".concat(D,"-dragging"),f),"".concat(D,"-dragging-delete"),v),k.handle),style:se(se(se({},q),u),L.handle)},V,x));return d&&(K=d(K,{index:a,prefixCls:n,value:r,dragging:f,draggingDelete:v})),K}),UG=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],qG=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,l=e.onOffsetChange,c=e.values,u=e.handleRender,d=e.activeHandleRender,f=e.draggingIndex,v=e.draggingDelete,g=e.onFocus,p=Lt(e,UG),b=i.useRef({}),C=i.useState(!1),x=fe(C,2),h=x[0],$=x[1],w=i.useState(-1),E=fe(w,2),j=E[0],O=E[1],I=function(B){O(B),$(!0)},R=function(B,L){I(L),g==null||g(B)},M=function(B,L){I(L)};i.useImperativeHandle(t,function(){return{focus:function(B){var L;(L=b.current[B])===null||L===void 0||L.focus()},hideHelp:function(){mo.flushSync(function(){$(!1)})}}});var N=se({prefixCls:n,onStartMove:a,onOffsetChange:l,render:u,onFocus:R,onMouseEnter:M},p);return i.createElement(i.Fragment,null,c.map(function(P,B){var L=f===B;return i.createElement(PO,be({ref:function(D){D?b.current[B]=D:delete b.current[B]},dragging:L,draggingDelete:L&&v,style:Jl(r,B),key:B,value:P,valueIndex:B},N))}),d&&h&&i.createElement(PO,be({key:"a11y"},N,{value:c[j],valueIndex:null,dragging:f!==-1,draggingDelete:v,render:d,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),GG=function(t){var n=t.prefixCls,r=t.style,a=t.children,l=t.value,c=t.onClick,u=i.useContext(Ns),d=u.min,f=u.max,v=u.direction,g=u.includedStart,p=u.includedEnd,b=u.included,C="".concat(n,"-text"),x=CC(v,l,d,f);return i.createElement("span",{className:ue(C,ne({},"".concat(C,"-active"),b&&g<=l&&l<=p)),style:se(se({},x),r),onMouseDown:function($){$.stopPropagation()},onClick:function(){c(l)}},a)},XG=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,l="".concat(n,"-mark");return r.length?i.createElement("div",{className:l},r.map(function(c){var u=c.value,d=c.style,f=c.label;return i.createElement(GG,{key:u,prefixCls:l,style:d,value:u,onClick:a},f)})):null},YG=function(t){var n=t.prefixCls,r=t.value,a=t.style,l=t.activeStyle,c=i.useContext(Ns),u=c.min,d=c.max,f=c.direction,v=c.included,g=c.includedStart,p=c.includedEnd,b="".concat(n,"-dot"),C=v&&g<=r&&r<=p,x=se(se({},CC(f,r,u,d)),typeof a=="function"?a(r):a);return C&&(x=se(se({},x),typeof l=="function"?l(r):l)),i.createElement("span",{className:ue(b,ne({},"".concat(b,"-active"),C)),style:x})},QG=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,l=t.style,c=t.activeStyle,u=i.useContext(Ns),d=u.min,f=u.max,v=u.step,g=i.useMemo(function(){var p=new Set;if(r.forEach(function(C){p.add(C.value)}),a&&v!==null)for(var b=d;b<=f;)p.add(b),b+=v;return Array.from(p)},[d,f,v,a,r]);return i.createElement("div",{className:"".concat(n,"-step")},g.map(function(p){return i.createElement(YG,{prefixCls:n,key:p,value:p,style:l,activeStyle:c})}))},zO=function(t){var n=t.prefixCls,r=t.style,a=t.start,l=t.end,c=t.index,u=t.onStartMove,d=t.replaceCls,f=i.useContext(Ns),v=f.direction,g=f.min,p=f.max,b=f.disabled,C=f.range,x=f.classNames,h="".concat(n,"-track"),$=Hy(a,g,p),w=Hy(l,g,p),E=function(R){!b&&u&&u(R,-1)},j={};switch(v){case"rtl":j.right="".concat($*100,"%"),j.width="".concat(w*100-$*100,"%");break;case"btt":j.bottom="".concat($*100,"%"),j.height="".concat(w*100-$*100,"%");break;case"ttb":j.top="".concat($*100,"%"),j.height="".concat(w*100-$*100,"%");break;default:j.left="".concat($*100,"%"),j.width="".concat(w*100-$*100,"%")}var O=d||ue(h,ne(ne({},"".concat(h,"-").concat(c+1),c!==null&&C),"".concat(n,"-track-draggable"),u),x.track);return i.createElement("div",{className:O,style:se(se({},j),r),onMouseDown:E,onTouchStart:E})},ZG=function(t){var n=t.prefixCls,r=t.style,a=t.values,l=t.startPoint,c=t.onStartMove,u=i.useContext(Ns),d=u.included,f=u.range,v=u.min,g=u.styles,p=u.classNames,b=i.useMemo(function(){if(!f){if(a.length===0)return[];var x=l??v,h=a[0];return[{start:Math.min(x,h),end:Math.max(x,h)}]}for(var $=[],w=0;w<a.length-1;w+=1)$.push({start:a[w],end:a[w+1]});return $},[a,f,l,v]);if(!d)return null;var C=b!=null&&b.length&&(p.tracks||g.tracks)?i.createElement(zO,{index:null,prefixCls:n,start:b[0].start,end:b[b.length-1].end,replaceCls:ue(p.tracks,"".concat(n,"-tracks")),style:g.tracks}):null;return i.createElement(i.Fragment,null,C,b.map(function(x,h){var $=x.start,w=x.end;return i.createElement(zO,{index:h,prefixCls:n,style:se(se({},Jl(r,h)),g.track),start:$,end:w,key:h,onStartMove:c})}))},JG=130;function DO(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function eX(e,t,n,r,a,l,c,u,d,f,v){var g=i.useState(null),p=fe(g,2),b=p[0],C=p[1],x=i.useState(-1),h=fe(x,2),$=h[0],w=h[1],E=i.useState(!1),j=fe(E,2),O=j[0],I=j[1],R=i.useState(n),M=fe(R,2),N=M[0],P=M[1],B=i.useState(n),L=fe(B,2),k=L[0],D=L[1],H=i.useRef(null),z=i.useRef(null),_=i.useRef(null),F=i.useContext(WG),W=F.onDragStart,q=F.onDragChange;nn(function(){$===-1&&P(n)},[n,$]),i.useEffect(function(){return function(){document.removeEventListener("mousemove",H.current),document.removeEventListener("mouseup",z.current),_.current&&(_.current.removeEventListener("touchmove",H.current),_.current.removeEventListener("touchend",z.current))}},[]);var V=function(Q,te,Y){te!==void 0&&C(te),P(Q);var ae=Q;Y&&(ae=Q.filter(function(re,Z){return Z!==$})),c(ae),q&&q({rawValues:Q,deleteIndex:Y?$:-1,draggingIndex:$,draggingValue:te})},G=Xt(function(J,Q,te){if(J===-1){var Y=k[0],ae=k[k.length-1],re=r-Y,Z=a-ae,X=Q*(a-r);X=Math.max(X,re),X=Math.min(X,Z);var oe=l(Y+X);X=oe-Y;var le=k.map(function(he){return he+X});V(le)}else{var de=(a-r)*Q,ce=Ne(N);ce[J]=k[J];var ge=d(ce,de,J,"dist");V(ge.values,ge.value,te)}}),K=function(Q,te,Y){Q.stopPropagation();var ae=Y||n,re=ae[te];w(te),C(re),D(ae),P(ae),I(!1);var Z=DO(Q),X=Z.pageX,oe=Z.pageY,le=!1;W&&W({rawValues:ae,draggingIndex:te,draggingValue:re});var de=function(he){he.preventDefault();var Oe=DO(he),je=Oe.pageX,pe=Oe.pageY,we=je-X,Se=pe-oe,Ce=e.current.getBoundingClientRect(),De=Ce.width,Ae=Ce.height,Qe,Ke;switch(t){case"btt":Qe=-Se/Ae,Ke=we;break;case"ttb":Qe=Se/Ae,Ke=we;break;case"rtl":Qe=-we/De,Ke=Se;break;default:Qe=we/De,Ke=Se}le=f?Math.abs(Ke)>JG&&v<N.length:!1,I(le),G(te,Qe,le)},ce=function ge(he){he.preventDefault(),document.removeEventListener("mouseup",ge),document.removeEventListener("mousemove",de),_.current&&(_.current.removeEventListener("touchmove",H.current),_.current.removeEventListener("touchend",z.current)),H.current=null,z.current=null,_.current=null,u(le),w(-1),I(!1)};document.addEventListener("mouseup",ce),document.addEventListener("mousemove",de),Q.currentTarget.addEventListener("touchend",ce),Q.currentTarget.addEventListener("touchmove",de),H.current=de,z.current=ce,_.current=Q.currentTarget},U=i.useMemo(function(){var J=Ne(n).sort(function(re,Z){return re-Z}),Q=Ne(N).sort(function(re,Z){return re-Z}),te={};Q.forEach(function(re){te[re]=(te[re]||0)+1}),J.forEach(function(re){te[re]=(te[re]||0)-1});var Y=f?1:0,ae=Object.values(te).reduce(function(re,Z){return re+Math.abs(Z)},0);return ae<=Y?N:n},[n,N,f]);return[$,b,O,U,K]}function tX(e,t,n,r,a,l){var c=i.useCallback(function(b){return Math.max(e,Math.min(t,b))},[e,t]),u=i.useCallback(function(b){if(n!==null){var C=e+Math.round((c(b)-e)/n)*n,x=function(E){return(String(E).split(".")[1]||"").length},h=Math.max(x(n),x(t),x(e)),$=Number(C.toFixed(h));return e<=$&&$<=t?$:null}return null},[n,e,t,c]),d=i.useCallback(function(b){var C=c(b),x=r.map(function(w){return w.value});n!==null&&x.push(u(b)),x.push(e,t);var h=x[0],$=t-e;return x.forEach(function(w){var E=Math.abs(C-w);E<=$&&(h=w,$=E)}),h},[e,t,r,n,c,u]),f=function b(C,x,h){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof x=="number"){var w,E=C[h],j=E+x,O=[];r.forEach(function(P){O.push(P.value)}),O.push(e,t),O.push(u(E));var I=x>0?1:-1;$==="unit"?O.push(u(E+I*n)):O.push(u(j)),O=O.filter(function(P){return P!==null}).filter(function(P){return x<0?P<=E:P>=E}),$==="unit"&&(O=O.filter(function(P){return P!==E}));var R=$==="unit"?E:j;w=O[0];var M=Math.abs(w-R);if(O.forEach(function(P){var B=Math.abs(P-R);B<M&&(w=P,M=B)}),w===void 0)return x<0?e:t;if($==="dist")return w;if(Math.abs(x)>1){var N=Ne(C);return N[h]=w,b(N,x-I,h,$)}return w}else{if(x==="min")return e;if(x==="max")return t}},v=function(C,x,h){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=C[h],E=f(C,x,h,$);return{value:E,changed:E!==w}},g=function(C){return l===null&&C===0||typeof l=="number"&&C<l},p=function(C,x,h){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=C.map(d),E=w[h],j=f(w,x,h,$);if(w[h]=j,a===!1){var O=l||0;h>0&&w[h-1]!==E&&(w[h]=Math.max(w[h],w[h-1]+O)),h<w.length-1&&w[h+1]!==E&&(w[h]=Math.min(w[h],w[h+1]-O))}else if(typeof l=="number"||l===null){for(var I=h+1;I<w.length;I+=1)for(var R=!0;g(w[I]-w[I-1])&&R;){var M=v(w,1,I);w[I]=M.value,R=M.changed}for(var N=h;N>0;N-=1)for(var P=!0;g(w[N]-w[N-1])&&P;){var B=v(w,-1,N-1);w[N-1]=B.value,P=B.changed}for(var L=w.length-1;L>0;L-=1)for(var k=!0;g(w[L]-w[L-1])&&k;){var D=v(w,-1,L-1);w[L-1]=D.value,k=D.changed}for(var H=0;H<w.length-1;H+=1)for(var z=!0;g(w[H+1]-w[H])&&z;){var _=v(w,1,H+1);w[H+1]=_.value,z=_.changed}}return{value:w[h],values:w}};return[d,p]}function nX(e){return i.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,a=e.maxCount;return[!0,t,!t&&n,r||0,a]},[e])}var rX=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,a=e.className,l=e.style,c=e.classNames,u=e.styles,d=e.id,f=e.disabled,v=f===void 0?!1:f,g=e.keyboard,p=g===void 0?!0:g,b=e.autoFocus,C=e.onFocus,x=e.onBlur,h=e.min,$=h===void 0?0:h,w=e.max,E=w===void 0?100:w,j=e.step,O=j===void 0?1:j,I=e.value,R=e.defaultValue,M=e.range,N=e.count,P=e.onChange,B=e.onBeforeChange,L=e.onAfterChange,k=e.onChangeComplete,D=e.allowCross,H=D===void 0?!0:D,z=e.pushable,_=z===void 0?!1:z,F=e.reverse,W=e.vertical,q=e.included,V=q===void 0?!0:q,G=e.startPoint,K=e.trackStyle,U=e.handleStyle,J=e.railStyle,Q=e.dotStyle,te=e.activeDotStyle,Y=e.marks,ae=e.dots,re=e.handleRender,Z=e.activeHandleRender,X=e.track,oe=e.tabIndex,le=oe===void 0?0:oe,de=e.ariaLabelForHandle,ce=e.ariaLabelledByForHandle,ge=e.ariaRequired,he=e.ariaValueTextFormatterForHandle,Oe=i.useRef(null),je=i.useRef(null),pe=i.useMemo(function(){return W?F?"ttb":"btt":F?"rtl":"ltr"},[F,W]),we=nX(M),Se=fe(we,5),Ce=Se[0],De=Se[1],Ae=Se[2],Qe=Se[3],Ke=Se[4],Fe=i.useMemo(function(){return isFinite($)?$:0},[$]),Ge=i.useMemo(function(){return isFinite(E)?E:100},[E]),Te=i.useMemo(function(){return O!==null&&O<=0?1:O},[O]),Ee=i.useMemo(function(){return typeof _=="boolean"?_?Te:!1:_>=0?_:!1},[_,Te]),_e=i.useMemo(function(){return Object.keys(Y||{}).map(function(ht){var Ye=Y[ht],Ze={value:Number(ht)};return Ye&&Et(Ye)==="object"&&!i.isValidElement(Ye)&&("label"in Ye||"style"in Ye)?(Ze.style=Ye.style,Ze.label=Ye.label):Ze.label=Ye,Ze}).filter(function(ht){var Ye=ht.label;return Ye||typeof Ye=="number"}).sort(function(ht,Ye){return ht.value-Ye.value})},[Y]),Re=tX(Fe,Ge,Te,_e,H,Ee),Pe=fe(Re,2),ye=Pe[0],$e=Pe[1],Me=yn(R,{value:I}),Le=fe(Me,2),tt=Le[0],yt=Le[1],We=i.useMemo(function(){var ht=tt==null?[]:Array.isArray(tt)?tt:[tt],Ye=fe(ht,1),Ze=Ye[0],ut=Ze===void 0?Fe:Ze,Dt=tt===null?[]:[ut];if(Ce){if(Dt=Ne(ht),N||tt===void 0){var Kt=N>=0?N+1:2;for(Dt=Dt.slice(0,Kt);Dt.length<Kt;){var vt;Dt.push((vt=Dt[Dt.length-1])!==null&&vt!==void 0?vt:Fe)}}Dt.sort(function(Mt,Ft){return Mt-Ft})}return Dt.forEach(function(Mt,Ft){Dt[Ft]=ye(Mt)}),Dt},[tt,Ce,Fe,N,ye]),nt=function(Ye){return Ce?Ye:Ye[0]},dt=Xt(function(ht){var Ye=Ne(ht).sort(function(Ze,ut){return Ze-ut});P&&!jo(Ye,We,!0)&&P(nt(Ye)),yt(Ye)}),at=Xt(function(ht){ht&&Oe.current.hideHelp();var Ye=nt(We);L==null||L(Ye),Xn(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Ye)}),pt=function(Ye){if(!(v||!De||We.length<=Qe)){var Ze=Ne(We);Ze.splice(Ye,1),B==null||B(nt(Ze)),dt(Ze);var ut=Math.max(0,Ye-1);Oe.current.hideHelp(),Oe.current.focus(ut)}},zt=eX(je,pe,We,Fe,Ge,ye,dt,at,$e,De,Qe),Ot=fe(zt,5),ct=Ot[0],$t=Ot[1],St=Ot[2],et=Ot[3],Ve=Ot[4],Ue=function(Ye,Ze){if(!v){var ut=Ne(We),Dt=0,Kt=0,vt=Ge-Fe;We.forEach(function(Pn,Wn){var jn=Math.abs(Ye-Pn);jn<=vt&&(vt=jn,Dt=Wn),Pn<Ye&&(Kt=Wn)});var Mt=Dt;De&&vt!==0&&(!Ke||We.length<Ke)?(ut.splice(Kt+1,0,Ye),Mt=Kt+1):ut[Dt]=Ye,Ce&&!We.length&&N===void 0&&ut.push(Ye);var Ft=nt(ut);if(B==null||B(Ft),dt(ut),Ze){var $n,_n;($n=document.activeElement)===null||$n===void 0||(_n=$n.blur)===null||_n===void 0||_n.call($n),Oe.current.focus(Mt),Ve(Ze,Mt,ut)}else L==null||L(Ft),Xn(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Ft)}},mt=function(Ye){Ye.preventDefault();var Ze=je.current.getBoundingClientRect(),ut=Ze.width,Dt=Ze.height,Kt=Ze.left,vt=Ze.top,Mt=Ze.bottom,Ft=Ze.right,$n=Ye.clientX,_n=Ye.clientY,Pn;switch(pe){case"btt":Pn=(Mt-_n)/Dt;break;case"ttb":Pn=(_n-vt)/Dt;break;case"rtl":Pn=(Ft-$n)/ut;break;default:Pn=($n-Kt)/ut}var Wn=Fe+Pn*(Ge-Fe);Ue(ye(Wn),Ye)},Tt=i.useState(null),Nt=fe(Tt,2),Vt=Nt[0],ft=Nt[1],lt=function(Ye,Ze){if(!v){var ut=$e(We,Ye,Ze);B==null||B(nt(We)),dt(ut.values),ft(ut.value)}};i.useEffect(function(){if(Vt!==null){var ht=We.indexOf(Vt);ht>=0&&Oe.current.focus(ht)}ft(null)},[Vt]);var At=i.useMemo(function(){return Ae&&Te===null?!1:Ae},[Ae,Te]),Ut=Xt(function(ht,Ye){Ve(ht,Ye),B==null||B(nt(We))}),rn=ct!==-1;i.useEffect(function(){if(!rn){var ht=We.lastIndexOf($t);Oe.current.focus(ht)}},[rn]);var Qt=i.useMemo(function(){return Ne(et).sort(function(ht,Ye){return ht-Ye})},[et]),pn=i.useMemo(function(){return Ce?[Qt[0],Qt[Qt.length-1]]:[Fe,Qt[0]]},[Qt,Ce,Fe]),qt=fe(pn,2),un=qt[0],st=qt[1];i.useImperativeHandle(t,function(){return{focus:function(){Oe.current.focus(0)},blur:function(){var Ye,Ze=document,ut=Ze.activeElement;(Ye=je.current)!==null&&Ye!==void 0&&Ye.contains(ut)&&(ut==null||ut.blur())}}}),i.useEffect(function(){b&&Oe.current.focus(0)},[]);var xt=i.useMemo(function(){return{min:Fe,max:Ge,direction:pe,disabled:v,keyboard:p,step:Te,included:V,includedStart:un,includedEnd:st,range:Ce,tabIndex:le,ariaLabelForHandle:de,ariaLabelledByForHandle:ce,ariaRequired:ge,ariaValueTextFormatterForHandle:he,styles:u||{},classNames:c||{}}},[Fe,Ge,pe,v,p,Te,V,un,st,Ce,le,de,ce,ge,he,u,c]);return i.createElement(Ns.Provider,{value:xt},i.createElement("div",{ref:je,className:ue(r,a,ne(ne(ne(ne({},"".concat(r,"-disabled"),v),"".concat(r,"-vertical"),W),"".concat(r,"-horizontal"),!W),"".concat(r,"-with-marks"),_e.length)),style:l,onMouseDown:mt,id:d},i.createElement("div",{className:ue("".concat(r,"-rail"),c==null?void 0:c.rail),style:se(se({},J),u==null?void 0:u.rail)}),X!==!1&&i.createElement(ZG,{prefixCls:r,style:K,values:We,startPoint:G,onStartMove:At?Ut:void 0}),i.createElement(QG,{prefixCls:r,marks:_e,dots:ae,style:Q,activeStyle:te}),i.createElement(qG,{ref:Oe,prefixCls:r,style:U,values:et,draggingIndex:ct,draggingDelete:St,onStartMove:Ut,onOffsetChange:lt,onFocus:C,onBlur:x,handleRender:re,activeHandleRender:Z,onChangeComplete:at,onDelete:De?pt:void 0}),i.createElement(XG,{prefixCls:r,marks:_e,onClick:Ue})))});const aX=i.createContext({}),_O=i.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,l=i.useRef(null),c=n&&!r,u=i.useRef(null);function d(){Yt.cancel(u.current),u.current=null}function f(){u.current=Yt(()=>{var v;(v=l.current)===null||v===void 0||v.forceAlign(),u.current=null})}return i.useEffect(()=>(c?f():d(),d),[c,e.title,a]),i.createElement(An,Object.assign({ref:Mr(l,t)},e,{open:c}))}),oX=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:l,marginPart:c,colorFillContentHover:u,handleColorDisabled:d,calc:f,handleSize:v,handleSizeHover:g,handleActiveColor:p,handleActiveOutlineColor:b,handleLineWidth:C,handleLineWidthHover:x,motionDurationMid:h}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",height:r,margin:`${ie(c)} ${ie(l)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ie(l)} ${ie(c)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${h}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${h}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:u},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ie(C)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:v,height:v,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:f(C).mul(-1).equal(),insetBlockStart:f(C).mul(-1).equal(),width:f(v).add(f(C).mul(2)).equal(),height:f(v).add(f(C).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:v,height:v,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ie(C)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
354
|
-
inset-inline-start ${h},
|
|
355
|
-
inset-block-start ${h},
|
|
356
|
-
width ${h},
|
|
357
|
-
height ${h},
|
|
358
|
-
box-shadow ${h},
|
|
359
|
-
outline ${h}
|
|
360
|
-
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(g).sub(v).div(2).add(x).mul(-1).equal(),insetBlockStart:f(g).sub(v).div(2).add(x).mul(-1).equal(),width:f(g).add(f(x).mul(2)).equal(),height:f(g).add(f(x).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ie(x)} ${p}`,outline:`6px solid ${b}`,width:g,height:g,insetInlineStart:e.calc(v).sub(g).div(2).equal(),insetBlockStart:e.calc(v).sub(g).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${ie(C)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
361
|
-
${t}-dot
|
|
362
|
-
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:v,height:v,boxShadow:`0 0 0 ${ie(C)} ${d}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
363
|
-
${t}-mark-text,
|
|
364
|
-
${t}-dot
|
|
365
|
-
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},OI=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:l,marginFull:c,calc:u}=e,d=t?"paddingBlock":"paddingInline",f=t?"width":"height",v=t?"height":"width",g=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",b=u(r).mul(3).sub(a).div(2).equal(),C=u(a).sub(r).div(2).equal(),x=t?{borderWidth:`${ie(C)} 0`,transform:`translateY(${ie(u(C).mul(-1).equal())})`}:{borderWidth:`0 ${ie(C)}`,transform:`translateX(${ie(e.calc(C).mul(-1).equal())})`};return{[d]:r,[v]:u(r).mul(3).equal(),[`${n}-rail`]:{[f]:"100%",[v]:r},[`${n}-track,${n}-tracks`]:{[v]:r},[`${n}-track-draggable`]:Object.assign({},x),[`${n}-handle`]:{[g]:b},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:u(r).mul(3).add(t?0:c).equal(),[f]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[f]:"100%",[v]:r},[`${n}-dot`]:{position:"absolute",[g]:u(r).sub(l).div(2).equal()}}},iX=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},OI(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},lX=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},OI(e,!1)),{height:"100%"})}},sX=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,l=e.lineWidth+1*1.5,c=e.colorPrimary,u=new bn(c).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:l,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:c,handleActiveOutlineColor:u,handleColorDisabled:new bn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},cX=sn("Slider",e=>{const t=tn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[oX(t),iX(t),lX(t)]},sX);function q0(){const[e,t]=i.useState(!1),n=i.useRef(null),r=()=>{Yt.cancel(n.current)},a=l=>{r(),l?t(l):n.current=Yt(()=>{t(l)})};return i.useEffect(()=>r,[]),[e,a]}var uX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function dX(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const fX=ve.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:l,style:c,disabled:u,tooltipPrefixCls:d,tipFormatter:f,tooltipVisible:v,getTooltipPopupContainer:g,tooltipPlacement:p,tooltip:b={},onChangeComplete:C,classNames:x,styles:h}=e,$=uX(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:w}=e,{getPrefixCls:E,direction:j,className:O,style:I,classNames:R,styles:M,getPopupContainer:N}=vr("slider"),P=ve.useContext(Wr),B=u??P,{handleRender:L,direction:k}=ve.useContext(aX),H=(k||j)==="rtl",[z,_]=q0(),[F,W]=q0(),q=Object.assign({},b),{open:V,placement:G,getPopupContainer:K,prefixCls:U,formatter:J}=q,Q=V??v,te=(z||F)&&Q!==!1,Y=dX(J,f),[ae,re]=q0(),Z=Ce=>{C==null||C(Ce),re(!1)},X=(Ce,De)=>Ce||(De?H?"left":"right":"top"),oe=E("slider",n),[le,de,ce]=cX(oe),ge=ue(a,O,R.root,x==null?void 0:x.root,l,{[`${oe}-rtl`]:H,[`${oe}-lock`]:ae},de,ce);H&&!$.vertical&&($.reverse=!$.reverse),ve.useEffect(()=>{const Ce=()=>{Yt(()=>{W(!1)},1)};return document.addEventListener("mouseup",Ce),()=>{document.removeEventListener("mouseup",Ce)}},[]);const he=r&&!Q,Oe=L||((Ce,De)=>{const{index:Ae}=De,Qe=Ce.props;function Ke(Ee,_e,Re){var Pe,ye,$e,Me;Re&&((ye=(Pe=$)[Ee])===null||ye===void 0||ye.call(Pe,_e)),(Me=($e=Qe)[Ee])===null||Me===void 0||Me.call($e,_e)}const Fe=Object.assign(Object.assign({},Qe),{onMouseEnter:Ee=>{_(!0),Ke("onMouseEnter",Ee)},onMouseLeave:Ee=>{_(!1),Ke("onMouseLeave",Ee)},onMouseDown:Ee=>{W(!0),re(!0),Ke("onMouseDown",Ee)},onFocus:Ee=>{var _e;W(!0),(_e=$.onFocus)===null||_e===void 0||_e.call($,Ee),Ke("onFocus",Ee,!0)},onBlur:Ee=>{var _e;W(!1),(_e=$.onBlur)===null||_e===void 0||_e.call($,Ee),Ke("onBlur",Ee,!0)}}),Ge=ve.cloneElement(Ce,Fe),Te=(!!Q||te)&&Y!==null;return he?Ge:ve.createElement(_O,Object.assign({},q,{prefixCls:E("tooltip",U??d),title:Y?Y(De.value):"",value:De.value,open:Te,placement:X(G??p,w),key:Ae,classNames:{root:`${oe}-tooltip`},getPopupContainer:K||g||N}),Ge)}),je=he?(Ce,De)=>{const Ae=ve.cloneElement(Ce,{style:Object.assign(Object.assign({},Ce.props.style),{visibility:"hidden"})});return ve.createElement(_O,Object.assign({},q,{prefixCls:E("tooltip",U??d),title:Y?Y(De.value):"",open:Y!==null&&te,placement:X(G??p,w),key:"tooltip",classNames:{root:`${oe}-tooltip`},getPopupContainer:K||g||N,draggingDelete:De.draggingDelete}),Ae)}:void 0,pe=Object.assign(Object.assign(Object.assign(Object.assign({},M.root),I),h==null?void 0:h.root),c),we=Object.assign(Object.assign({},M.tracks),h==null?void 0:h.tracks),Se=ue(R.tracks,x==null?void 0:x.tracks);return le(ve.createElement(rX,Object.assign({},$,{classNames:Object.assign({handle:ue(R.handle,x==null?void 0:x.handle),rail:ue(R.rail,x==null?void 0:x.rail),track:ue(R.track,x==null?void 0:x.track)},Se?{tracks:Se}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},M.handle),h==null?void 0:h.handle),rail:Object.assign(Object.assign({},M.rail),h==null?void 0:h.rail),track:Object.assign(Object.assign({},M.track),h==null?void 0:h.track)},Object.keys(we).length?{tracks:we}:{}),step:$.step,range:r,className:ge,style:pe,disabled:B,ref:t,prefixCls:oe,handleRender:Oe,activeHandleRender:je,onChangeComplete:Z})))});var mX={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"},vX=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:mX}))},gX=i.forwardRef(vX);const RI=(e,t,n,r,a)=>{const{classNames:l,styles:c}=vr(e),[u,d]=P7([l,t],[c,n],{popup:{_default:"root"}});return i.useMemo(()=>{var f,v;const g=Object.assign(Object.assign({},u),{popup:Object.assign(Object.assign({},u.popup),{root:ue((f=u.popup)===null||f===void 0?void 0:f.root,r)})}),p=Object.assign(Object.assign({},d),{popup:Object.assign(Object.assign({},d.popup),{root:Object.assign(Object.assign({},(v=d.popup)===null||v===void 0?void 0:v.root),a)})});return[g,p]},[u,d,r,a])};function pX(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 hX(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 jI(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=F1(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[bX,yX]=["week","WeekPicker"],[CX,SX]=["month","MonthPicker"],[xX,$X]=["year","YearPicker"],[wX,EX]=["quarter","QuarterPicker"],[SC,AO]=["time","TimePicker"];var OX={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"},RX=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:OX}))},jX=i.forwardRef(RX),IX={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"},NX=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:IX}))},Wc=i.forwardRef(NX);const II=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ve.createElement(ve.Fragment,null,e===SC?ve.createElement(Wc,null):ve.createElement(jX,null),t&&n):r,MX=e=>i.createElement(Xe,Object.assign({size:"small",type:"primary"},e));function NI(e){return i.useMemo(()=>Object.assign({button:MX},e),[e])}var TX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PX=e=>i.forwardRef((n,r)=>{var a;const{prefixCls:l,getPopupContainer:c,components:u,className:d,style:f,placement:v,size:g,disabled:p,bordered:b=!0,placeholder:C,popupStyle:x,popupClassName:h,dropdownClassName:$,status:w,rootClassName:E,variant:j,picker:O,styles:I,classNames:R,suffixIcon:M}=n,N=TX(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),P=O===SC?"timePicker":"datePicker",B=i.useRef(null),{getPrefixCls:L,direction:k,getPopupContainer:D,rangePicker:H}=i.useContext(Rt),z=L("picker",l),{compactSize:_,compactItemClassnames:F}=_o(z,k),W=L(),[q,V]=wl("rangePicker",j,b),G=dr(z),[K,U,J]=F8(z,G),[Q,te]=RI(P,R,I,h||$,x),[Y]=jI(n,z),ae=NI(u),re=Tr(pe=>{var we;return(we=g??_)!==null&&we!==void 0?we:pe}),Z=i.useContext(Wr),X=p??Z,oe=i.useContext(Kr),{hasFeedback:le,status:de,feedbackIcon:ce}=oe,ge=i.createElement(II,{picker:O,hasFeedback:le,feedbackIcon:ce,suffixIcon:M});i.useImperativeHandle(r,()=>B.current);const[he]=za("Calendar",Mv),Oe=Object.assign(Object.assign({},he),n.locale),[je]=Do("DatePicker",(a=te.popup.root)===null||a===void 0?void 0:a.zIndex);return K(i.createElement(Qo,{space:!0},i.createElement(hK,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${z}-separator`},i.createElement(gX,null)),disabled:X,ref:B,placement:v,placeholder:hX(Oe,O,C),suffixIcon:ge,prevIcon:i.createElement("span",{className:`${z}-prev-icon`}),nextIcon:i.createElement("span",{className:`${z}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${z}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${z}-super-next-icon`}),transitionName:`${W}-slide-up`,picker:O},N,{className:ue({[`${z}-${re}`]:re,[`${z}-${q}`]:V},$i(z,$l(de,w),le),U,F,d,H==null?void 0:H.className,J,G,E,Q.root),style:Object.assign(Object.assign(Object.assign({},H==null?void 0:H.style),f),te.root),locale:Oe.lang,prefixCls:z,getPopupContainer:c||D,generateConfig:e,components:ae,direction:k,classNames:{popup:ue(U,J,G,E,Q.popup.root)},styles:{popup:Object.assign(Object.assign({},te.popup.root),{zIndex:je})},allowClear:Y}))))});var zX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const DX=e=>{const t=(d,f)=>{const v=f===AO?"timePicker":"datePicker";return i.forwardRef((p,b)=>{var C;const{prefixCls:x,getPopupContainer:h,components:$,style:w,className:E,rootClassName:j,size:O,bordered:I,placement:R,placeholder:M,popupStyle:N,popupClassName:P,dropdownClassName:B,disabled:L,status:k,variant:D,onCalendarChange:H,styles:z,classNames:_,suffixIcon:F}=p,W=zX(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:q,direction:V,getPopupContainer:G,[v]:K}=i.useContext(Rt),U=q("picker",x),{compactSize:J,compactItemClassnames:Q}=_o(U,V),te=i.useRef(null),[Y,ae]=wl("datePicker",D,I),re=dr(U),[Z,X,oe]=F8(U,re);i.useImperativeHandle(b,()=>te.current);const le={showToday:!0},de=d||p.picker,ce=q(),{onSelect:ge,multiple:he}=W,Oe=ge&&d==="time"&&!he,je=($e,Me,Le)=>{H==null||H($e,Me,Le),Oe&&ge($e)},[pe,we]=RI(v,_,z,P||B,N),[Se,Ce]=jI(p,U),De=NI($),Ae=Tr($e=>{var Me;return(Me=O??J)!==null&&Me!==void 0?Me:$e}),Qe=i.useContext(Wr),Ke=L??Qe,Fe=i.useContext(Kr),{hasFeedback:Ge,status:Te,feedbackIcon:Ee}=Fe,_e=i.createElement(II,{picker:de,hasFeedback:Ge,feedbackIcon:Ee,suffixIcon:F}),[Re]=za("DatePicker",Mv),Pe=Object.assign(Object.assign({},Re),p.locale),[ye]=Do("DatePicker",(C=we.popup.root)===null||C===void 0?void 0:C.zIndex);return Z(i.createElement(Qo,{space:!0},i.createElement($K,Object.assign({ref:te,placeholder:pX(Pe,de,M),suffixIcon:_e,placement:R,prevIcon:i.createElement("span",{className:`${U}-prev-icon`}),nextIcon:i.createElement("span",{className:`${U}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${U}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${U}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:d,onCalendarChange:je},le,W,{locale:Pe.lang,className:ue({[`${U}-${Ae}`]:Ae,[`${U}-${Y}`]:ae},$i(U,$l(Te,k),Ge),X,Q,K==null?void 0:K.className,E,oe,re,j,pe.root),style:Object.assign(Object.assign(Object.assign({},K==null?void 0:K.style),w),we.root),prefixCls:U,getPopupContainer:h||G,generateConfig:e,components:De,direction:V,disabled:Ke,classNames:{popup:ue(X,oe,re,j,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},we.popup.root),{zIndex:ye})},allowClear:Se,removeIcon:Ce}))))})},n=t(),r=t(bX,yX),a=t(CX,SX),l=t(xX,$X),c=t(wX,EX),u=t(SC,AO);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:l,TimePicker:u,QuarterPicker:c}},MI=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:l,QuarterPicker:c}=DX(e),u=PX(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=u,d.TimePicker=l,d.QuarterPicker=c,d},iu=MI(EW),_X=Jc(iu,"popupAlign",void 0,"picker");iu._InternalPanelDoNotUseOrYouWillBeFired=_X;const AX=Jc(iu.RangePicker,"popupAlign",void 0,"picker");iu._InternalRangePanelDoNotUseOrYouWillBeFired=AX;iu.generatePicker=MI;function BO(e){return["small","middle","large"].includes(e)}function kO(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const BX=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:l,fontSizeLG:c,fontSizeSM:u,borderRadiusLG:d,borderRadiusSM:f,colorBgContainerDisabled:v,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:v,borderWidth:g,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:c,borderRadius:d},"&-small":{paddingInline:l,borderRadius:f,fontSize:u},"&-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}},$s(e,{focus:!1})]}},kX=sn(["Space","Addon"],e=>[BX(e)]);var LX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const HX=ve.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:l}=e,c=LX(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:d}=ve.useContext(Rt),f=u("space-addon",l),[v,g,p]=kX(f),{compactItemClassnames:b,compactSize:C}=_o(f,d),x=ue(f,g,b,p,{[`${f}-${C}`]:C},n);return v(ve.createElement("div",Object.assign({ref:t,className:x,style:a},c),r))}),TI=ve.createContext({latestIndex:0}),FX=TI.Provider,VX=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:l}=i.useContext(TI);return n==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:e,style:a},n),t<l&&r&&i.createElement("span",{className:`${e}-split`},r))},WX=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"}}}},KX=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}}}},UX=sn("Space",e=>{const t=tn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[WX(t),KX(t)]},()=>({}),{resetStyle:!1});var qX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const GX=i.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:l,className:c,style:u,classNames:d,styles:f}=vr("space"),{size:v=l??"small",align:g,className:p,rootClassName:b,children:C,direction:x="horizontal",prefixCls:h,split:$,style:w,wrap:E=!1,classNames:j,styles:O}=e,I=qX(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[R,M]=Array.isArray(v)?v:[v,v],N=BO(M),P=BO(R),B=kO(M),L=kO(R),k=Yr(C,{keepEmpty:!0}),D=g===void 0&&x==="horizontal"?"center":g,H=r("space",h),[z,_,F]=UX(H),W=ue(H,c,_,`${H}-${x}`,{[`${H}-rtl`]:a==="rtl",[`${H}-align-${D}`]:D,[`${H}-gap-row-${M}`]:N,[`${H}-gap-col-${R}`]:P},p,b,F),q=ue(`${H}-item`,(n=j==null?void 0:j.item)!==null&&n!==void 0?n:d.item),V=Object.assign(Object.assign({},f.item),O==null?void 0:O.item),G=k.map((J,Q)=>{const te=(J==null?void 0:J.key)||`${q}-${Q}`;return i.createElement(VX,{className:q,key:te,index:Q,split:$,style:V},J)}),K=i.useMemo(()=>({latestIndex:k.reduce((Q,te,Y)=>te!=null?Y:Q,0)}),[k]);if(k.length===0)return null;const U={};return E&&(U.flexWrap="wrap"),!P&&L&&(U.columnGap=R),!N&&B&&(U.rowGap=M),z(i.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},U),u),w)},I),i.createElement(FX,{value:K},G)))}),Ct=GX;Ct.Compact=E_;Ct.Addon=HX;var XX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PI=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(Rt),{prefixCls:a,type:l="default",danger:c,disabled:u,loading:d,onClick:f,htmlType:v,children:g,className:p,menu:b,arrow:C,autoFocus:x,overlay:h,trigger:$,align:w,open:E,onOpenChange:j,placement:O,getPopupContainer:I,href:R,icon:M=i.createElement(J1,null),title:N,buttonsRender:P=Z=>Z,mouseEnterDelay:B,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:D,destroyOnHidden:H,destroyPopupOnHide:z,dropdownRender:_,popupRender:F}=e,W=XX(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),q=n("dropdown",a),V=`${q}-button`,K={menu:b,arrow:C,autoFocus:x,align:w,disabled:u,trigger:u?[]:$,onOpenChange:j,getPopupContainer:I||t,mouseEnterDelay:B,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:D,destroyOnHidden:H,popupRender:F||_},{compactSize:U,compactItemClassnames:J}=_o(q,r),Q=ue(V,J,p);"destroyPopupOnHide"in e&&(K.destroyPopupOnHide=z),"overlay"in e&&(K.overlay=h),"open"in e&&(K.open=E),"placement"in e?K.placement=O:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=i.createElement(Xe,{type:l,danger:c,disabled:u,loading:d,onClick:f,htmlType:v,href:R,title:N},g),Y=i.createElement(Xe,{type:l,danger:c,icon:M}),[ae,re]=P([te,Y]);return i.createElement(Ct.Compact,Object.assign({className:Q,size:U,block:!0},W),ae,i.createElement(Ag,Object.assign({},K),re))};PI.__ANT_BUTTON=!0;const ls=Ag;ls.Button=PI;const xC=ve.createContext(void 0),{Provider:YX}=xC;function zI(e){return e==null?null:typeof e=="object"&&!i.isValidElement(e)?e:{title:e}}var QX={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"},ZX=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:QX}))},lu=i.forwardRef(ZX),JX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const eY=e=>{const{icon:t,description:n,prefixCls:r,className:a}=e,l=JX(e,["icon","description","prefixCls","className"]),c=ve.createElement("div",{className:`${r}-icon`},ve.createElement(lu,null));return ve.createElement("div",Object.assign({},l,{className:ue(a,`${r}-content`)}),t||n?ve.createElement(ve.Fragment,null,t&&ve.createElement("div",{className:`${r}-icon`},t),n&&ve.createElement("div",{className:`${r}-description`},n)):c)},tY=i.memo(eY),LO=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),nY=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:a,calc:l}=e,c=new Jt("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${ie(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new Jt("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${ie(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),d=new Jt("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${ie(l(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new Jt("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${ie(l(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),v=new Jt("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${ie(l(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new Jt("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${ie(l(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0}}),p=new Jt("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${ie(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b=new Jt("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${ie(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),C=`${t}-group`;return[{[C]:{[`&${C}-top ${C}-wrap`]:dl(`${C}-wrap`,c,u,r,!0),[`&${C}-bottom ${C}-wrap`]:dl(`${C}-wrap`,v,g,r,!0),[`&${C}-left ${C}-wrap`]:dl(`${C}-wrap`,p,b,r,!0),[`&${C}-right ${C}-wrap`]:dl(`${C}-wrap`,d,f,r,!0)}},{[`${C}-wrap`]:{[`&${C}-wrap-enter, &${C}-wrap-appear`]:{opacity:0,animationTimingFunction:a},[`&${C}-wrap-leave`]:{opacity:1,animationTimingFunction:a}}}]},rY=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:a,borderRadiusLG:l,borderRadiusSM:c,badgeOffset:u,floatButtonBodyPadding:d,zIndexPopupBase:f,calc:v}=e,g=`${n}-group`;return{[g]:Object.assign(Object.assign({},dn(e)),{zIndex:f,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:l,[`${g}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${g}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${g}-top > ${g}-wrap`]:{flexDirection:"column",top:"auto",bottom:v(r).add(a).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:a,bottom:v(a).mul(-1).equal()}},[`${g}-bottom > ${g}-wrap`]:{flexDirection:"column",top:v(r).add(a).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:a,top:v(a).mul(-1).equal()}},[`${g}-right > ${g}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:v(r).add(a).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:a,height:"100%",left:{_skip_check_:!0,value:v(a).mul(-1).equal()}}},[`${g}-left > ${g}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:v(r).add(a).equal()},"&::after":{content:'""',position:"absolute",width:a,height:"100%",right:{_skip_check_:!0,value:v(a).mul(-1).equal()}}},[`${g}-circle`]:{gap:a,[`${g}-wrap`]:{gap:a}},[`${g}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${g}-trigger`]:{borderRadius:l},"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:v(v(d).add(u)).mul(-1).equal(),insetInlineEnd:v(v(d).add(u)).mul(-1).equal()}}},[`${g}-wrap`]:{borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:d,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:c}}}},[`${g}-top > ${g}-wrap, ${g}-bottom > ${g}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${g}-left > ${g}-wrap, ${g}-right > ${g}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:l,borderEndStartRadius:l},"&:last-child":{borderStartEndRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:"none",borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${g}-circle-shadow`]:{boxShadow:"none"},[`${g}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:d,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:c}}}}},aY=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:a,floatButtonSize:l,borderRadiusLG:c,badgeOffset:u,dotOffsetInSquare:d,dotOffsetInCircle:f,zIndexPopupBase:v,calc:g}=e;return{[n]:Object.assign(Object.assign({},dn(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:v,display:"block",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:g(u).mul(-1).equal(),insetInlineEnd:g(u).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${ie(g(r).div(2).equal())} ${ie(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:a,fontSize:a,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:f,insetInlineEnd:f}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:c,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:d,insetInlineEnd:d}},[`${n}-body`]:{height:"auto",borderRadius:c}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:ie(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:ie(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},oY=e=>({dotOffsetInCircle:LO(e.controlHeightLG/2),dotOffsetInSquare:LO(e.borderRadiusLG)}),DI=sn("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:a,marginLG:l,fontSize:c,fontSizeIcon:u,controlItemBgHover:d,paddingXXS:f,calc:v}=e,g=tn(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:d,floatButtonFontSize:c,floatButtonIconSize:v(u).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:a,floatButtonInsetInlineEnd:l,floatButtonBodySize:v(r).sub(v(f).mul(2)).equal(),floatButtonBodyPadding:f,badgeOffset:v(f).mul(1.5).equal()});return[rY(g),aY(g),I1(e),nY(g)]},oY);var iY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Gg="float-btn",lY=ve.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,type:c="default",shape:u="circle",icon:d,description:f,tooltip:v,htmlType:g="button",badge:p={}}=e,b=iY(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:C,direction:x}=i.useContext(Rt),h=i.useContext(xC),$=C(Gg,n),w=dr($),[E,j,O]=DI($,w),I=h||u,R=ue(j,O,w,$,r,a,`${$}-${c}`,`${$}-${I}`,{[`${$}-rtl`]:x==="rtl"}),[M]=Do("FloatButton",l==null?void 0:l.zIndex),N=Object.assign(Object.assign({},l),{zIndex:M}),P=En(p,["title","children","status","text"]);let B=ve.createElement("div",{className:`${$}-body`},ve.createElement(tY,{prefixCls:$,description:f,icon:d}));"badge"in e&&(B=ve.createElement(qa,Object.assign({},P),B));const L=zI(v);return L&&(B=ve.createElement(An,Object.assign({},L),B)),E(e.href?ve.createElement("a",Object.assign({ref:t},b,{className:R,style:N}),B):ve.createElement("button",Object.assign({ref:t},b,{className:R,style:N,type:g}),B))}),Ol=lY;var sY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cY=ve.createElement(vF,null),_I=ve.forwardRef((e,t)=>{var n;const{backTopIcon:r}=vr("floatButton"),{prefixCls:a,className:l,type:c="default",shape:u="circle",visibilityHeight:d=400,icon:f,target:v,onClick:g,duration:p=450}=e,b=sY(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),C=(n=f??r)!==null&&n!==void 0?n:cY,[x,h]=i.useState(d===0),$=ve.useRef(null);ve.useImperativeHandle(t,()=>({nativeElement:$.current}));const w=()=>{var B;return((B=$.current)===null||B===void 0?void 0:B.ownerDocument)||window},E=a5(B=>{const L=D6(B.target);h(L>=d)});i.useEffect(()=>{const L=(v||w)();return E({target:L}),L==null||L.addEventListener("scroll",E),()=>{E.cancel(),L==null||L.removeEventListener("scroll",E)}},[v]);const j=B=>{_6(0,{getContainer:v||w,duration:p}),g==null||g(B)},{getPrefixCls:O}=i.useContext(Rt),I=O(Gg,a),R=O(),N=i.useContext(xC)||u,P=Object.assign({prefixCls:I,icon:C,type:c,shape:N},b);return ve.createElement(Zr,{visible:x,motionName:`${R}-fade`},({className:B},L)=>ve.createElement(Ol,Object.assign({ref:Mr($,L)},P,{onClick:j,className:ue(l,B)})))});var uY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const AI=e=>{var t;const{prefixCls:n,className:r,style:a,shape:l="circle",type:c="default",placement:u="top",icon:d=ve.createElement(lu,null),closeIcon:f,description:v,trigger:g,children:p,onOpenChange:b,open:C,onClick:x}=e,h=uY(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:$,getPrefixCls:w,closeIcon:E}=vr("floatButtonGroup"),j=(t=f??E)!==null&&t!==void 0?t:ve.createElement(zo,null),O=w(Gg,n),I=dr(O),[R,M,N]=DI(O,I),P=`${O}-group`,B=g&&["click","hover"].includes(g),L=u&&["top","left","right","bottom"].includes(u),k=ue(P,M,N,I,r,{[`${P}-rtl`]:$==="rtl",[`${P}-${l}`]:l,[`${P}-${l}-shadow`]:!B,[`${P}-${u}`]:B&&L}),[D]=Do("FloatButton",a==null?void 0:a.zIndex),H=Object.assign(Object.assign({},a),{zIndex:D}),z=ue(M,`${P}-wrap`),[_,F]=yn(!1,{value:C}),W=ve.useRef(null),q=g==="hover",V=g==="click",G=Xt(Q=>{_!==Q&&(F(Q),b==null||b(Q))}),K=()=>{q&&G(!0)},U=()=>{q&&G(!1)},J=Q=>{V&&G(!_),x==null||x(Q)};return ve.useEffect(()=>{if(V){const Q=te=>{var Y;!((Y=W.current)===null||Y===void 0)&&Y.contains(te.target)||G(!1)};return document.addEventListener("click",Q,{capture:!0}),()=>document.removeEventListener("click",Q,{capture:!0})}},[V]),R(ve.createElement(YX,{value:l},ve.createElement("div",{ref:W,className:k,style:H,onMouseEnter:K,onMouseLeave:U},B?ve.createElement(ve.Fragment,null,ve.createElement(Zr,{visible:_,motionName:`${P}-wrap`},({className:Q})=>ve.createElement("div",{className:ue(Q,z)},p)),ve.createElement(Ol,Object.assign({type:c,icon:_?j:d,description:v,"aria-label":e["aria-label"],className:`${P}-trigger`,onClick:J},h))):p)))};var BI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const HO=e=>{var{backTop:t}=e,n=BI(e,["backTop"]);return t?i.createElement(_I,Object.assign({},n,{visibilityHeight:0})):i.createElement(Ol,Object.assign({},n))},dY=e=>{var{className:t,items:n}=e,r=BI(e,["className","items"]);const{prefixCls:a}=r,{getPrefixCls:l}=i.useContext(Rt),u=`${l(Gg,a)}-pure`;return n?i.createElement(AI,Object.assign({className:ue(t,u)},r),n.map((d,f)=>i.createElement(HO,Object.assign({key:f},d)))):i.createElement(HO,Object.assign({className:ue(t,u)},r))};Ol.BackTop=_I;Ol.Group=AI;Ol._InternalPanelDoNotUseOrYouWillBeFired=dY;function Xv(e){const[t,n]=i.useState(e);return i.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const fY=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
366
|
-
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
367
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},mY=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),FO=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},vY=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},dn(e)),mY(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},FO(e,e.controlHeightSM)),"&-large":Object.assign({},FO(e,e.controlHeightLG))})}},gY=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:l,labelColor:c,labelFontSize:u,labelHeight:d,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:v,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
368
|
-
&-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:d,color:c,fontSize:u,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:l,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:f,marginInlineEnd:v},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:N1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},es=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pY=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
369
|
-
${t}-col-xl-24${n}-label`]:es(e)}}},hY=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
370
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},bY=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:es(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},yY=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
371
|
-
${r}-col-24${n}-label,
|
|
372
|
-
${r}-col-xl-24${n}-label`]:es(e)},[`@media (max-width: ${ie(e.screenXSMax)})`]:[bY(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:es(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:es(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:es(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:es(e)}}}}},CY=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),kI=(e,t)=>tn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$C=sn("Form",(e,{rootPrefixCls:t})=>{const n=kI(e,t);return[vY(n),gY(n),fY(n),pY(n),hY(n),yY(n),of(n),N1]},CY,{order:-1e3}),VO=[];function G0(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const LI=({help:e,helpStatus:t,errors:n=VO,warnings:r=VO,className:a,fieldId:l,onVisibleChanged:c})=>{const{prefixCls:u}=i.useContext(A1),d=`${u}-item-explain`,f=dr(u),[v,g,p]=$C(u,f),b=i.useMemo(()=>Ac(u),[u]),C=Xv(n),x=Xv(r),h=i.useMemo(()=>e!=null?[G0(e,"help",t)]:[].concat(Ne(C.map((E,j)=>G0(E,"error","error",j))),Ne(x.map((E,j)=>G0(E,"warning","warning",j)))),[e,t,C,x]),$=i.useMemo(()=>{const E={};return h.forEach(({key:j})=>{E[j]=(E[j]||0)+1}),h.map((j,O)=>Object.assign(Object.assign({},j),{key:E[j.key]>1?`${j.key}-fallback-${O}`:j.key}))},[h]),w={};return l&&(w.id=`${l}_help`),v(i.createElement(Zr,{motionDeadline:b.motionDeadline,motionName:`${u}-show-help`,visible:!!$.length,onVisibleChanged:c},E=>{const{className:j,style:O}=E;return i.createElement("div",Object.assign({},w,{className:ue(d,j,p,f,a,g),style:O}),i.createElement(C1,Object.assign({keys:$},Ac(u),{motionName:`${u}-show-help-item`,component:!1}),I=>{const{key:R,error:M,errorStatus:N,className:P,style:B}=I;return i.createElement("div",{key:R,className:ue(P,{[`${d}-${N}`]:N}),style:B},M)}))}))};var SY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const xY=(e,t)=>{const n=i.useContext(Wr),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:u,className:d,style:f}=vr("form"),{prefixCls:v,className:g,rootClassName:p,size:b,disabled:C=n,form:x,colon:h,labelAlign:$,labelWrap:w,labelCol:E,wrapperCol:j,hideRequiredMark:O,layout:I="horizontal",scrollToFirstError:R,requiredMark:M,onFinishFailed:N,name:P,style:B,feedbackIcons:L,variant:k}=e,D=SY(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=Tr(b),z=i.useContext(Z3),_=i.useMemo(()=>M!==void 0?M:O?!1:l!==void 0?l:!0,[O,M,l]),F=h??c,W=r("form",v),q=dr(W),[V,G,K]=$C(W,q),U=ue(W,`${W}-${I}`,{[`${W}-hide-required-mark`]:_===!1,[`${W}-rtl`]:a==="rtl",[`${W}-${H}`]:H},K,q,G,d,g,p),[J]=P8(x),{__INTERNAL__:Q}=J;Q.name=P;const te=i.useMemo(()=>({name:P,labelAlign:$,labelCol:E,labelWrap:w,wrapperCol:j,layout:I,colon:F,requiredMark:_,itemRef:Q.itemRef,form:J,feedbackIcons:L}),[P,$,E,j,I,F,_,J,L]),Y=i.useRef(null);i.useImperativeHandle(t,()=>{var Z;return Object.assign(Object.assign({},J),{nativeElement:(Z=Y.current)===null||Z===void 0?void 0:Z.nativeElement})});const ae=(Z,X)=>{if(Z){let oe={block:"nearest"};typeof Z=="object"&&(oe=Object.assign(Object.assign({},oe),Z)),J.scrollToField(X,oe)}},re=Z=>{if(N==null||N(Z),Z.errorFields.length){const X=Z.errorFields[0].name;if(R!==void 0){ae(R,X);return}u!==void 0&&ae(u,X)}};return V(i.createElement(SR.Provider,{value:k},i.createElement(h1,{disabled:C},i.createElement(us.Provider,{value:H},i.createElement(yR,{validateMessages:z},i.createElement(xi.Provider,{value:te},i.createElement(CR,{status:!0},i.createElement(Qc,Object.assign({id:P},D,{name:P,onFinishFailed:re,form:J,ref:Y,style:Object.assign(Object.assign({},f),B),className:U})))))))))},$Y=i.forwardRef(xY);function wY(e){if(typeof e=="function")return e;const t=Yr(e);return t.length<=1?t[0]:t}const HI=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(Kr);return{status:e,errors:t,warnings:n}};HI.Context=Kr;function EY(e){const[t,n]=i.useState(e),r=i.useRef(null),a=i.useRef([]),l=i.useRef(!1);i.useEffect(()=>(l.current=!1,()=>{l.current=!0,Yt.cancel(r.current),r.current=null}),[]);function c(u){l.current||(r.current===null&&(a.current=[],r.current=Yt(()=>{r.current=null,n(d=>{let f=d;return a.current.forEach(v=>{f=v(f)}),f})})),a.current.push(u))}return[t,c]}function OY(){const{itemRef:e}=i.useContext(xi),t=i.useRef({});function n(r,a){const l=a&&typeof a=="object"&&Cl(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==l)&&(t.current.name=c,t.current.originRef=l,t.current.ref=Mr(e(r),l)),t.current.ref}return n}const RY=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},jY=Gc(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=kI(e,t);return RY(n)});var IY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const NY=24,MY=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:d,extra:f,help:v,fieldId:g,marginBottom:p,onErrorVisibleChanged:b,label:C}=e,x=`${t}-item`,h=i.useContext(xi),$=i.useMemo(()=>{let D=Object.assign({},a||h.wrapperCol||{});return C===null&&!r&&!a&&h.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const _=z?[z]:[],F=$a(h.labelCol,_),W=typeof F=="object"?F:{},q=$a(D,_),V=typeof q=="object"?q:{};"span"in W&&!("offset"in V)&&W.span<NY&&(D=uo(D,[].concat(_,["offset"]),W.span))}),D},[a,h.wrapperCol,h.labelCol,C,r]),w=ue(`${x}-control`,$.className),E=i.useMemo(()=>{const{labelCol:D,wrapperCol:H}=h;return IY(h,["labelCol","wrapperCol"])},[h]),j=i.useRef(null),[O,I]=i.useState(0);nn(()=>{f&&j.current?I(j.current.clientHeight):I(0)},[f]);const R=i.createElement("div",{className:`${x}-control-input`},i.createElement("div",{className:`${x}-control-input-content`},l)),M=i.useMemo(()=>({prefixCls:t,status:n}),[t,n]),N=p!==null||c.length||u.length?i.createElement(A1.Provider,{value:M},i.createElement(LI,{fieldId:g,errors:c,warnings:u,help:v,helpStatus:n,className:`${x}-explain-connected`,onVisibleChanged:b})):null,P={};g&&(P.id=`${g}_extra`);const B=f?i.createElement("div",Object.assign({},P,{className:`${x}-extra`,ref:j}),f):null,L=N||B?i.createElement("div",{className:`${x}-additional`,style:p?{minHeight:p+O}:{}},N,B):null,k=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:R,errorList:N,extra:B}):i.createElement(i.Fragment,null,R,L);return i.createElement(xi.Provider,{value:E},i.createElement(Sr,Object.assign({},$,{className:w}),k),i.createElement(jY,{prefixCls:t}))};var TY={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},PY=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:TY}))},FI=i.forwardRef(PY),zY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const DY=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:l,required:c,requiredMark:u,tooltip:d,vertical:f})=>{var v;const[g]=za("Form"),{labelAlign:p,labelCol:b,labelWrap:C,colon:x}=i.useContext(xi);if(!t)return null;const h=r||b||{},$=a||p,w=`${e}-item-label`,E=ue(w,$==="left"&&`${w}-left`,h.className,{[`${w}-wrap`]:!!C});let j=t;const O=l===!0||x!==!1&&l!==!1;O&&!f&&typeof t=="string"&&t.trim()&&(j=t.replace(/[:|:]\s*$/,""));const R=zI(d);if(R){const{icon:k=i.createElement(FI,null)}=R,D=zY(R,["icon"]),H=i.createElement(An,Object.assign({},D),i.cloneElement(k,{className:`${e}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));j=i.createElement(i.Fragment,null,j,H)}const M=u==="optional",N=typeof u=="function",P=u===!1;N?j=u(j,{required:!!c}):M&&!c&&(j=i.createElement(i.Fragment,null,j,i.createElement("span",{className:`${e}-item-optional`,title:""},(g==null?void 0:g.optional)||((v=go.Form)===null||v===void 0?void 0:v.optional))));let B;P?B="hidden":(M||N)&&(B="optional");const L=ue({[`${e}-item-required`]:c,[`${e}-item-required-mark-${B}`]:B,[`${e}-item-no-colon`]:!O});return i.createElement(Sr,Object.assign({},h,{className:E}),i.createElement("label",{htmlFor:n,className:L,title:typeof t=="string"?t:""},j))},_Y={success:Ss,warning:xs,error:Sl,validating:No};function VI({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:l,meta:c,noStyle:u,name:d}){const f=`${l}-item`,{feedbackIcons:v}=i.useContext(xi),g=T8(t,n,c,null,!!r,a),{isFormItemInput:p,status:b,hasFeedback:C,feedbackIcon:x,name:h}=i.useContext(Kr),$=i.useMemo(()=>{var w;let E;if(r){const O=r!==!0&&r.icons||v,I=g&&((w=O==null?void 0:O({status:g,errors:t,warnings:n}))===null||w===void 0?void 0:w[g]),R=g?_Y[g]:null;E=I!==!1&&R?i.createElement("span",{className:ue(`${f}-feedback-icon`,`${f}-feedback-icon-${g}`)},I||i.createElement(R,null)):null}const j={status:g||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:E,isFormItemInput:!0,name:d};return u&&(j.status=(g??b)||"",j.isFormItemInput=p,j.hasFeedback=!!(r??C),j.feedbackIcon=r!==void 0?j.feedbackIcon:x,j.name=d??h),j},[g,r,u,p,b]);return i.createElement(Kr.Provider,{value:$},e)}var AY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function BY(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:l,errors:c,warnings:u,validateStatus:d,meta:f,hasFeedback:v,hidden:g,children:p,fieldId:b,required:C,isRequired:x,onSubItemMetaChange:h,layout:$,name:w}=e,E=AY(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),j=`${t}-item`,{requiredMark:O,layout:I}=i.useContext(xi),R=$||I,M=R==="vertical",N=i.useRef(null),P=Xv(c),B=Xv(u),L=l!=null,k=!!(L||c.length||u.length),D=!!N.current&&Yc(N.current),[H,z]=i.useState(null);nn(()=>{if(k&&N.current){const V=getComputedStyle(N.current);z(Number.parseInt(V.marginBottom,10))}},[k,D]);const _=V=>{V||z(null)},W=((V=!1)=>{const G=V?P:f.errors,K=V?B:f.warnings;return T8(G,K,f,"",!!v,d)})(),q=ue(j,n,r,{[`${j}-with-help`]:L||P.length||B.length,[`${j}-has-feedback`]:W&&v,[`${j}-has-success`]:W==="success",[`${j}-has-warning`]:W==="warning",[`${j}-has-error`]:W==="error",[`${j}-is-validating`]:W==="validating",[`${j}-hidden`]:g,[`${j}-${R}`]:R});return i.createElement("div",{className:q,style:a,ref:N},i.createElement(pl,Object.assign({className:`${j}-row`},En(E,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),i.createElement(DY,Object.assign({htmlFor:b},e,{requiredMark:O,required:C??x,prefixCls:t,vertical:M})),i.createElement(MY,Object.assign({},e,f,{errors:P,warnings:B,prefixCls:t,status:W,help:l,marginBottom:H,onErrorVisibleChanged:_}),i.createElement(bR.Provider,{value:h},i.createElement(VI,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:v,validateStatus:W,name:w},p)))),!!H&&i.createElement("div",{className:`${j}-margin-offset`,style:{marginBottom:-H}}))}const kY="__SPLIT__";function LY(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const l=e[a],c=t[a];return l===c||typeof l=="function"||typeof c=="function"})}const HY=i.memo(({children:e})=>e,(e,t)=>LY(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function WO(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function FY(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:f,label:v,messageVariables:g,trigger:p="onChange",validateTrigger:b,hidden:C,help:x,layout:h}=e,{getPrefixCls:$}=i.useContext(Rt),{name:w}=i.useContext(xi),E=wY(d),j=typeof E=="function",O=i.useContext(bR),{validateTrigger:I}=i.useContext(fs),R=b!==void 0?b:I,M=t!=null,N=$("form",l),P=dr(N),[B,L,k]=$C(N,P);Jo();const D=i.useContext(Vd),H=i.useRef(null),[z,_]=EY({}),[F,W]=ds(()=>WO()),q=te=>{const Y=D==null?void 0:D.getKey(te.name);if(W(te.destroy?WO():te,!0),n&&x!==!1&&O){let ae=te.name;if(te.destroy)ae=H.current||ae;else if(Y!==void 0){const[re,Z]=Y;ae=[re].concat(Ne(Z)),H.current=ae}O(te,ae)}},V=(te,Y)=>{_(ae=>{const re=Object.assign({},ae),X=[].concat(Ne(te.name.slice(0,-1)),Ne(Y)).join(kY);return te.destroy?delete re[X]:re[X]=te,re})},[G,K]=i.useMemo(()=>{const te=Ne(F.errors),Y=Ne(F.warnings);return Object.values(z).forEach(ae=>{te.push.apply(te,Ne(ae.errors||[])),Y.push.apply(Y,Ne(ae.warnings||[]))}),[te,Y]},[z,F.errors,F.warnings]),U=OY();function J(te,Y,ae){return n&&!C?i.createElement(VI,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:G,warnings:K,noStyle:!0,name:t},te):i.createElement(BY,Object.assign({key:"row"},e,{className:ue(r,k,P,L),prefixCls:N,fieldId:Y,isRequired:ae,errors:G,warnings:K,meta:F,onSubItemMetaChange:V,layout:h,name:t}),te)}if(!M&&!j&&!a)return B(J(E));let Q={};return typeof v=="string"?Q.label=v:t&&(Q.label=String(t)),g&&(Q=Object.assign(Object.assign({},Q),g)),B(i.createElement(D1,Object.assign({},e,{messageVariables:Q,trigger:p,validateTrigger:R,onMetaChange:q}),(te,Y,ae)=>{const re=Rd(t).length&&Y?Y.name:[],Z=M8(re,w),X=f!==void 0?f:!!(u!=null&&u.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ce=de(ae);return(ce==null?void 0:ce.required)&&!(ce!=null&&ce.warningOnly)}return!1})),oe=Object.assign({},te);let le=null;if(Array.isArray(E)&&M)le=E;else if(!(j&&(!(c||a)||M))){if(!(a&&!j&&!M))if(i.isValidElement(E)){const de=Object.assign(Object.assign({},E.props),oe);if(de.id||(de.id=Z),x||G.length>0||K.length>0||e.extra){const he=[];(x||G.length>0)&&he.push(`${Z}_help`),e.extra&&he.push(`${Z}_extra`),de["aria-describedby"]=he.join(" ")}G.length>0&&(de["aria-invalid"]="true"),X&&(de["aria-required"]="true"),Ro(E)&&(de.ref=U(re,E)),new Set([].concat(Ne(Rd(p)),Ne(Rd(R)))).forEach(he=>{de[he]=(...Oe)=>{var je,pe,we,Se,Ce;(we=oe[he])===null||we===void 0||(je=we).call.apply(je,[oe].concat(Oe)),(Ce=(Se=E.props)[he])===null||Ce===void 0||(pe=Ce).call.apply(pe,[Se].concat(Oe))}});const ge=[de["aria-required"],de["aria-invalid"],de["aria-describedby"]];le=i.createElement(HY,{control:oe,update:E,childProps:ge},Or(E,de))}else j&&(c||a)&&!M?le=E(ae):le=E}return J(le,Z,X)}))}const WI=FY;WI.useStatus=HI;var VY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const WY=e=>{var{prefixCls:t,children:n}=e,r=VY(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(Rt),l=a("form",t),c=i.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return i.createElement(vR,Object.assign({},r),(u,d,f)=>i.createElement(A1.Provider,{value:c},n(u.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),d,{errors:f.errors,warnings:f.warnings})))};function KY(){const{form:e}=i.useContext(xi);return e}const on=$Y;on.Item=WI;on.List=WY;on.ErrorList=LI;on.useForm=P8;on.useFormInstance=KY;on.useWatch=hR;on.Provider=yR;on.create=()=>{};var UY={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"},qY=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:UY}))},wC=i.forwardRef(qY);function KO(e,t,n,r){var a=Md.unstable_batchedUpdates?function(c){Md.unstable_batchedUpdates(n,c)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var GY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},XY=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:GY}))},YY=i.forwardRef(XY);const QY=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{prefixCls:r,className:a}=e,l=t("input-group",r),c=t("input"),[u,d,f]=H8(c),v=ue(l,f,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:n==="rtl"},d,a),g=i.useContext(Kr),p=i.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return u(i.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(Kr.Provider,{value:p},e.children)))},ZY=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}}}},JY=sn(["Input","OTP"],e=>{const t=tn(e,js(e));return ZY(t)},Is);var eQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tQ=i.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:l,index:c,mask:u}=e,d=eQ(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:f}=i.useContext(Rt),v=f("otp"),g=typeof u=="string"?u:r,p=i.useRef(null);i.useImperativeHandle(t,()=>p.current);const b=h=>{a(c,h.target.value)},C=()=>{Yt(()=>{var h;const $=(h=p.current)===null||h===void 0?void 0:h.input;document.activeElement===$&&$&&$.select()})},x=h=>{const{key:$,ctrlKey:w,metaKey:E}=h;$==="ArrowLeft"?l(c-1):$==="ArrowRight"?l(c+1):$==="z"&&(w||E)?h.preventDefault():$==="Backspace"&&!r&&l(c-1),C()};return i.createElement("span",{className:`${v}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&i.createElement("span",{className:`${v}-mask-icon`,"aria-hidden":"true"},g),i.createElement(Sf,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},d,{ref:p,value:r,onInput:b,onFocus:C,onKeyDown:x,onMouseDown:C,onMouseUp:C,className:ue(n,{[`${v}-mask-input`]:u})})))});var nQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Xm(e){return(e||"").split("")}const rQ=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?i.createElement("span",{className:`${n}-separator`},a):null},aQ=i.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:l,value:c,onChange:u,formatter:d,separator:f,variant:v,disabled:g,status:p,autoFocus:b,mask:C,type:x,onInput:h,inputMode:$}=e,w=nQ(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:E,direction:j}=i.useContext(Rt),O=E("otp",n),I=Nr(w,{aria:!0,data:!0,attr:!0}),[R,M,N]=JY(O),P=Tr(U=>a??U),B=i.useContext(Kr),L=$l(B.status,p),k=i.useMemo(()=>Object.assign(Object.assign({},B),{status:L,hasFeedback:!1,feedbackIcon:null}),[B,L]),D=i.useRef(null),H=i.useRef({});i.useImperativeHandle(t,()=>({focus:()=>{var U;(U=H.current[0])===null||U===void 0||U.focus()},blur:()=>{var U;for(let J=0;J<r;J+=1)(U=H.current[J])===null||U===void 0||U.blur()},nativeElement:D.current}));const z=U=>d?d(U):U,[_,F]=i.useState(()=>Xm(z(l||"")));i.useEffect(()=>{c!==void 0&&F(Xm(c))},[c]);const W=Xt(U=>{F(U),h&&h(U),u&&U.length===r&&U.every(J=>J)&&U.some((J,Q)=>_[Q]!==J)&&u(U.join(""))}),q=Xt((U,J)=>{let Q=Ne(_);for(let Y=0;Y<U;Y+=1)Q[Y]||(Q[Y]="");J.length<=1?Q[U]=J:Q=Q.slice(0,U).concat(Xm(J)),Q=Q.slice(0,r);for(let Y=Q.length-1;Y>=0&&!Q[Y];Y-=1)Q.pop();const te=z(Q.map(Y=>Y||" ").join(""));return Q=Xm(te).map((Y,ae)=>Y===" "&&!Q[ae]?Q[ae]:Y),Q}),V=(U,J)=>{var Q;const te=q(U,J),Y=Math.min(U+J.length,r-1);Y!==U&&te[U]!==void 0&&((Q=H.current[Y])===null||Q===void 0||Q.focus()),W(te)},G=U=>{var J;(J=H.current[U])===null||J===void 0||J.focus()},K={variant:v,disabled:g,status:L,mask:C,type:x,inputMode:$};return R(i.createElement("div",Object.assign({},I,{ref:D,className:ue(O,{[`${O}-sm`]:P==="small",[`${O}-lg`]:P==="large",[`${O}-rtl`]:j==="rtl"},N,M),role:"group"}),i.createElement(Kr.Provider,{value:k},Array.from({length:r}).map((U,J)=>{const Q=`otp-${J}`,te=_[J]||"";return i.createElement(i.Fragment,{key:Q},i.createElement(tQ,Object.assign({ref:Y=>{H.current[J]=Y},index:J,size:P,htmlSize:1,className:`${O}-input`,onChange:V,value:te,onActiveChange:G,autoFocus:J===0&&b},K)),J<r-1&&i.createElement(rQ,{separator:f,index:J,prefixCls:O}))}))))});var oQ={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"},iQ=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:oQ}))},lQ=i.forwardRef(iQ),sQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cQ=e=>e?i.createElement(wC,null):i.createElement(lQ,null),uQ={click:"onClick",hover:"onMouseOver"},dQ=i.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:l=cQ,suffix:c}=e,u=i.useContext(Wr),d=n??u,f=typeof a=="object"&&a.visible!==void 0,[v,g]=i.useState(()=>f?a.visible:!1),p=i.useRef(null);i.useEffect(()=>{f&&g(a.visible)},[f,a]);const b=EI(p),C=()=>{var B;if(d)return;v&&b();const L=!v;g(L),typeof a=="object"&&((B=a.onVisibleChange)===null||B===void 0||B.call(a,L))},x=B=>{const L=uQ[r]||"",k=l(v),D={[L]:C,className:`${B}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return i.cloneElement(i.isValidElement(k)?k:i.createElement("span",null,k),D)},{className:h,prefixCls:$,inputPrefixCls:w,size:E}=e,j=sQ(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=i.useContext(Rt),I=O("input",w),R=O("input-password",$),M=a&&x(R),N=ue(R,h,{[`${R}-${E}`]:!!E}),P=Object.assign(Object.assign({},En(j,["suffix","iconRender","visibilityToggle"])),{type:v?"text":"password",className:N,prefixCls:I,suffix:i.createElement(i.Fragment,null,M,c)});return E&&(P.size=E),i.createElement(Sf,Object.assign({ref:Mr(t,p)},P))});var fQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const mQ=i.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:l,suffix:c,enterButton:u=!1,addonAfter:d,loading:f,disabled:v,onSearch:g,onChange:p,onCompositionStart:b,onCompositionEnd:C,variant:x,onPressEnter:h}=e,$=fQ(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:w,direction:E}=i.useContext(Rt),j=i.useRef(!1),O=w("input-search",n),I=w("input",r),{compactSize:R}=_o(O,E),M=Tr(K=>{var U;return(U=l??R)!==null&&U!==void 0?U:K}),N=i.useRef(null),P=K=>{K!=null&&K.target&&K.type==="click"&&g&&g(K.target.value,K,{source:"clear"}),p==null||p(K)},B=K=>{var U;document.activeElement===((U=N.current)===null||U===void 0?void 0:U.input)&&K.preventDefault()},L=K=>{var U,J;g&&g((J=(U=N.current)===null||U===void 0?void 0:U.input)===null||J===void 0?void 0:J.value,K,{source:"input"})},k=K=>{j.current||f||(h==null||h(K),L(K))},D=typeof u=="boolean"?i.createElement(Es,null):null,H=`${O}-button`;let z;const _=u||{},F=_.type&&_.type.__ANT_BUTTON===!0;F||_.type==="button"?z=Or(_,Object.assign({onMouseDown:B,onClick:K=>{var U,J;(J=(U=_==null?void 0:_.props)===null||U===void 0?void 0:U.onClick)===null||J===void 0||J.call(U,K),L(K)},key:"enterButton"},F?{className:H,size:M}:{})):z=i.createElement(Xe,{className:H,color:u?"primary":"default",size:M,disabled:v,key:"enterButton",onMouseDown:B,onClick:L,loading:f,icon:D,variant:x==="borderless"||x==="filled"||x==="underlined"?"text":u?"solid":void 0},u),d&&(z=[z,Or(d,{key:"addonAfter"})]);const W=ue(O,{[`${O}-rtl`]:E==="rtl",[`${O}-${M}`]:!!M,[`${O}-with-button`]:!!u},a),q=K=>{j.current=!0,b==null||b(K)},V=K=>{j.current=!1,C==null||C(K)},G=Object.assign(Object.assign({},$),{className:W,prefixCls:I,type:"search",size:M,variant:x,onPressEnter:k,onCompositionStart:q,onCompositionEnd:V,addonAfter:z,suffix:c,onChange:P,disabled:v,_skipAddonWarning:!0});return i.createElement(Sf,Object.assign({ref:Mr(N,t)},G))});var vQ=`
|
|
373
|
-
min-height:0 !important;
|
|
374
|
-
max-height:none !important;
|
|
375
|
-
height:0 !important;
|
|
376
|
-
visibility:hidden !important;
|
|
377
|
-
overflow:hidden !important;
|
|
378
|
-
position:absolute !important;
|
|
379
|
-
z-index:-1000 !important;
|
|
380
|
-
top:0 !important;
|
|
381
|
-
right:0 !important;
|
|
382
|
-
pointer-events: none !important;
|
|
383
|
-
`,gQ=["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"],X0={},Ka;function pQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X0[n])return X0[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=gQ.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:c,boxSizing:a};return t&&n&&(X0[n]=d),d}function hQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ka||(Ka=document.createElement("textarea"),Ka.setAttribute("tab-index","-1"),Ka.setAttribute("aria-hidden","true"),Ka.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ka)),e.getAttribute("wrap")?Ka.setAttribute("wrap",e.getAttribute("wrap")):Ka.removeAttribute("wrap");var a=pQ(e,t),l=a.paddingSize,c=a.borderSize,u=a.boxSizing,d=a.sizingStyle;Ka.setAttribute("style","".concat(d,";").concat(vQ)),Ka.value=e.value||e.placeholder||"";var f=void 0,v=void 0,g,p=Ka.scrollHeight;if(u==="border-box"?p+=c:u==="content-box"&&(p-=l),n!==null||r!==null){Ka.value=" ";var b=Ka.scrollHeight-l;n!==null&&(f=b*n,u==="border-box"&&(f=f+l+c),p=Math.max(f,p)),r!==null&&(v=b*r,u==="border-box"&&(v=v+l+c),g=p>v?"":"hidden",p=Math.min(v,p))}var C={height:p,overflowY:g,resize:"none"};return f&&(C.minHeight=f),v&&(C.maxHeight=v),C}var bQ=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Y0=0,Q0=1,Z0=2,yQ=i.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,l=n.value,c=n.autoSize,u=n.onResize,d=n.className,f=n.style,v=n.disabled,g=n.onChange;n.onInternalAutoSize;var p=Lt(n,bQ),b=yn(a,{value:l,postState:function(K){return K??""}}),C=fe(b,2),x=C[0],h=C[1],$=function(K){h(K.target.value),g==null||g(K)},w=i.useRef();i.useImperativeHandle(t,function(){return{textArea:w.current}});var E=i.useMemo(function(){return c&&Et(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),j=fe(E,2),O=j[0],I=j[1],R=!!c,M=i.useState(Z0),N=fe(M,2),P=N[0],B=N[1],L=i.useState(),k=fe(L,2),D=k[0],H=k[1],z=function(){B(Y0)};nn(function(){R&&z()},[l,O,I,R]),nn(function(){if(P===Y0)B(Q0);else if(P===Q0){var G=hQ(w.current,!1,O,I);B(Z0),H(G)}},[P]);var _=i.useRef(),F=function(){Yt.cancel(_.current)},W=function(K){P===Z0&&(u==null||u(K),c&&(F(),_.current=Yt(function(){z()})))};i.useEffect(function(){return F},[]);var q=R?D:null,V=se(se({},f),q);return(P===Y0||P===Q0)&&(V.overflowY="hidden",V.overflowX="hidden"),i.createElement(va,{onResize:W,disabled:!(c||u)},i.createElement("textarea",be({},p,{ref:w,style:V,className:ue(r,d,ne({},"".concat(r,"-disabled"),v)),disabled:v,value:x,onChange:$})))}),CQ=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],SQ=ve.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,v=e.onCompositionStart,g=e.onCompositionEnd,p=e.suffix,b=e.prefixCls,C=b===void 0?"rc-textarea":b,x=e.showCount,h=e.count,$=e.className,w=e.style,E=e.disabled,j=e.hidden,O=e.classNames,I=e.styles,R=e.onResize,M=e.onClear,N=e.onPressEnter,P=e.readOnly,B=e.autoSize,L=e.onKeyDown,k=Lt(e,CQ),D=yn(r,{value:a,defaultValue:r}),H=fe(D,2),z=H[0],_=H[1],F=z==null?"":String(z),W=ve.useState(!1),q=fe(W,2),V=q[0],G=q[1],K=ve.useRef(!1),U=ve.useState(null),J=fe(U,2),Q=J[0],te=J[1],Y=i.useRef(null),ae=i.useRef(null),re=function(){var Re;return(Re=ae.current)===null||Re===void 0?void 0:Re.textArea},Z=function(){re().focus()};i.useImperativeHandle(t,function(){var _e;return{resizableTextArea:ae.current,focus:Z,blur:function(){re().blur()},nativeElement:((_e=Y.current)===null||_e===void 0?void 0:_e.nativeElement)||re()}}),i.useEffect(function(){G(function(_e){return!E&&_e})},[E]);var X=ve.useState(null),oe=fe(X,2),le=oe[0],de=oe[1];ve.useEffect(function(){if(le){var _e;(_e=re()).setSelectionRange.apply(_e,Ne(le))}},[le]);var ce=xI(h,x),ge=(n=ce.max)!==null&&n!==void 0?n:f,he=Number(ge)>0,Oe=ce.strategy(F),je=!!ge&&Oe>ge,pe=function(Re,Pe){var ye=Pe;!K.current&&ce.exceedFormatter&&ce.max&&ce.strategy(Pe)>ce.max&&(ye=ce.exceedFormatter(Pe,{max:ce.max}),Pe!==ye&&de([re().selectionStart||0,re().selectionEnd||0])),_(ye),qv(Re.currentTarget,Re,u,ye)},we=function(Re){K.current=!0,v==null||v(Re)},Se=function(Re){K.current=!1,pe(Re,Re.currentTarget.value),g==null||g(Re)},Ce=function(Re){pe(Re,Re.target.value)},De=function(Re){Re.key==="Enter"&&N&&N(Re),L==null||L(Re)},Ae=function(Re){G(!0),l==null||l(Re)},Qe=function(Re){G(!1),c==null||c(Re)},Ke=function(Re){_(""),Z(),qv(re(),Re,u)},Fe=p,Ge;ce.show&&(ce.showFormatter?Ge=ce.showFormatter({value:F,count:Oe,maxLength:ge}):Ge="".concat(Oe).concat(he?" / ".concat(ge):""),Fe=ve.createElement(ve.Fragment,null,Fe,ve.createElement("span",{className:ue("".concat(C,"-data-count"),O==null?void 0:O.count),style:I==null?void 0:I.count},Ge)));var Te=function(Re){var Pe;R==null||R(Re),(Pe=re())!==null&&Pe!==void 0&&Pe.style.height&&te(!0)},Ee=!B&&!x&&!d;return ve.createElement(yC,{ref:Y,value:F,allowClear:d,handleReset:Ke,suffix:Fe,prefixCls:C,classNames:se(se({},O),{},{affixWrapper:ue(O==null?void 0:O.affixWrapper,ne(ne({},"".concat(C,"-show-count"),x),"".concat(C,"-textarea-allow-clear"),d))}),disabled:E,focused:V,className:ue($,je&&"".concat(C,"-out-of-range")),style:se(se({},w),Q&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ge=="string"?Ge:void 0}},hidden:j,readOnly:P,onClear:M},ve.createElement(yQ,be({},k,{autoSize:B,maxLength:f,onKeyDown:De,onChange:Ce,onFocus:Ae,onBlur:Qe,onCompositionStart:we,onCompositionEnd:Se,className:ue(O==null?void 0:O.textarea),style:se(se({},I==null?void 0:I.textarea),{},{resize:w==null?void 0:w.resize}),disabled:E,prefixCls:C,onResize:Te,ref:ae,readOnly:P})))});const xQ=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"}},[`
|
|
384
|
-
&-allow-clear > ${t},
|
|
385
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
386
|
-
`]:{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}}}}}},$Q=sn(["Input","TextArea"],e=>{const t=tn(e,js(e));return xQ(t)},Is,{resetFont:!1});var wQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const KI=i.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:l,disabled:c,status:u,allowClear:d,classNames:f,rootClassName:v,className:g,style:p,styles:b,variant:C,showCount:x,onMouseDown:h,onResize:$}=e,w=wQ(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:E,direction:j,allowClear:O,autoComplete:I,className:R,style:M,classNames:N,styles:P}=vr("textArea"),B=i.useContext(Wr),L=c??B,{status:k,hasFeedback:D,feedbackIcon:H}=i.useContext(Kr),z=$l(k,u),_=i.useRef(null);i.useImperativeHandle(t,()=>{var ce;return{resizableTextArea:(ce=_.current)===null||ce===void 0?void 0:ce.resizableTextArea,focus:ge=>{var he,Oe;bC((Oe=(he=_.current)===null||he===void 0?void 0:he.resizableTextArea)===null||Oe===void 0?void 0:Oe.textArea,ge)},blur:()=>{var ge;return(ge=_.current)===null||ge===void 0?void 0:ge.blur()}}});const F=E("input",r),W=dr(F),[q,V,G]=L8(F,v),[K]=$Q(F,W),{compactSize:U,compactItemClassnames:J}=_o(F,j),Q=Tr(ce=>{var ge;return(ge=l??U)!==null&&ge!==void 0?ge:ce}),[te,Y]=wl("textArea",C,a),ae=wI(d??O),[re,Z]=i.useState(!1),[X,oe]=i.useState(!1),le=ce=>{Z(!0),h==null||h(ce);const ge=()=>{Z(!1),document.removeEventListener("mouseup",ge)};document.addEventListener("mouseup",ge)},de=ce=>{var ge,he;if($==null||$(ce),re&&typeof getComputedStyle=="function"){const Oe=(he=(ge=_.current)===null||ge===void 0?void 0:ge.nativeElement)===null||he===void 0?void 0:he.querySelector("textarea");Oe&&getComputedStyle(Oe).resize==="both"&&oe(!0)}};return q(K(i.createElement(SQ,Object.assign({autoComplete:I},w,{style:Object.assign(Object.assign({},M),p),styles:Object.assign(Object.assign({},P),b),disabled:L,allowClear:ae,className:ue(G,W,g,v,J,R,X&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),N),{textarea:ue({[`${F}-sm`]:Q==="small",[`${F}-lg`]:Q==="large"},V,f==null?void 0:f.textarea,N.textarea,re&&`${F}-mouse-active`),variant:ue({[`${F}-${te}`]:Y},$i(F,z)),affixWrapper:ue(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:j==="rtl",[`${F}-affix-wrapper-sm`]:Q==="small",[`${F}-affix-wrapper-lg`]:Q==="large",[`${F}-textarea-show-count`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:F,suffix:D&&i.createElement("span",{className:`${F}-textarea-suffix`},H),showCount:x,ref:_,onResize:de,onMouseDown:le}))))}),gn=Sf;gn.Group=QY;gn.Search=mQ;gn.TextArea=KI;gn.Password=dQ;gn.OTP=aQ;function EQ(e,t,n){return typeof n=="boolean"?n:e.length?!0:Yr(t).some(a=>a.type===Kj)}var UI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Xg({suffixCls:e,tagName:t,displayName:n}){return r=>i.forwardRef((l,c)=>i.createElement(r,Object.assign({ref:c,suffixCls:e,tagName:t},l)))}const EC=i.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=UI(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=i.useContext(Rt),d=u("layout",n),[f,v,g]=Wj(d),p=r?`${d}-${r}`:d;return f(i.createElement(l,Object.assign({className:ue(n||p,a,v,g),ref:t},c)))}),OQ=i.forwardRef((e,t)=>{const{direction:n}=i.useContext(Rt),[r,a]=i.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:f,tagName:v,style:g}=e,p=UI(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=En(p,["suffixCls"]),{getPrefixCls:C,className:x,style:h}=vr("layout"),$=C("layout",l),w=EQ(r,d,f),[E,j,O]=Wj($),I=ue($,{[`${$}-has-sider`]:w,[`${$}-rtl`]:n==="rtl"},x,c,u,j,O),R=i.useMemo(()=>({siderHook:{addSider:M=>{a(N=>[].concat(Ne(N),[M]))},removeSider:M=>{a(N=>N.filter(P=>P!==M))}}}),[]);return E(i.createElement(Hj.Provider,{value:R},i.createElement(v,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},h),g)},b),d)))}),RQ=Xg({tagName:"div",displayName:"Layout"})(OQ),jQ=Xg({suffixCls:"header",tagName:"header",displayName:"Header"})(EC),IQ=Xg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(EC),NQ=Xg({suffixCls:"content",tagName:"main",displayName:"Content"})(EC),hl=RQ;hl.Header=jQ;hl.Footer=IQ;hl.Content=NQ;hl.Sider=Kj;hl._InternalSiderContext=_g;var MQ={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"},TQ=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:MQ}))},UO=i.forwardRef(TQ),PQ={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"},zQ=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:PQ}))},qO=i.forwardRef(zQ),DQ={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:"页码"},_Q=[10,20,50,100],AQ=function(t){var n=t.pageSizeOptions,r=n===void 0?_Q:n,a=t.locale,l=t.changeSize,c=t.pageSize,u=t.goButton,d=t.quickGo,f=t.rootPrefixCls,v=t.disabled,g=t.buildOptionText,p=t.showSizeChanger,b=t.sizeChangerRender,C=ve.useState(""),x=fe(C,2),h=x[0],$=x[1],w=function(){return!h||Number.isNaN(h)?void 0:Number(h)},E=typeof g=="function"?g:function(L){return"".concat(L," ").concat(a.items_per_page)},j=function(k){$(k.target.value)},O=function(k){u||h===""||($(""),!(k.relatedTarget&&(k.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||k.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&(d==null||d(w())))},I=function(k){h!==""&&(k.keyCode===ot.ENTER||k.type==="click")&&($(""),d==null||d(w()))},R=function(){return r.some(function(k){return k.toString()===c.toString()})?r:r.concat([c]).sort(function(k,D){var H=Number.isNaN(Number(k))?0:Number(k),z=Number.isNaN(Number(D))?0:Number(D);return H-z})},M="".concat(f,"-options");if(!p&&!d)return null;var N=null,P=null,B=null;return p&&b&&(N=b({disabled:v,size:c,onSizeChange:function(k){l==null||l(Number(k))},"aria-label":a.page_size,className:"".concat(M,"-size-changer"),options:R().map(function(L){return{label:E(L),value:L}})})),d&&(u&&(B=typeof u=="boolean"?ve.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:v,className:"".concat(M,"-quick-jumper-button")},a.jump_to_confirm):ve.createElement("span",{onClick:I,onKeyUp:I},u)),P=ve.createElement("div",{className:"".concat(M,"-quick-jumper")},a.jump_to,ve.createElement("input",{disabled:v,type:"text",value:h,onChange:j,onKeyUp:I,onBlur:O,"aria-label":a.page}),a.page,B)),ve.createElement("li",{className:M},N,P)},ld=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,l=t.className,c=t.showTitle,u=t.onClick,d=t.onKeyPress,f=t.itemRender,v="".concat(n,"-item"),g=ue(v,"".concat(v,"-").concat(r),ne(ne({},"".concat(v,"-active"),a),"".concat(v,"-disabled"),!r),l),p=function(){u(r)},b=function(h){d(h,u,r)},C=f(r,"page",ve.createElement("a",{rel:"nofollow"},r));return C?ve.createElement("li",{title:c?String(r):null,className:g,onClick:p,onKeyDown:b,tabIndex:0},C):null},BQ=function(t,n,r){return r};function GO(){}function XO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ul(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var kQ=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,l=a===void 0?"rc-select":a,c=t.className,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,v=t.total,g=v===void 0?0:v,p=t.pageSize,b=t.defaultPageSize,C=b===void 0?10:b,x=t.onChange,h=x===void 0?GO:x,$=t.hideOnSinglePage,w=t.align,E=t.showPrevNextJumpers,j=E===void 0?!0:E,O=t.showQuickJumper,I=t.showLessItems,R=t.showTitle,M=R===void 0?!0:R,N=t.onShowSizeChange,P=N===void 0?GO:N,B=t.locale,L=B===void 0?DQ:B,k=t.style,D=t.totalBoundaryShowSizeChanger,H=D===void 0?50:D,z=t.disabled,_=t.simple,F=t.showTotal,W=t.showSizeChanger,q=W===void 0?g>H:W,V=t.sizeChangerRender,G=t.pageSizeOptions,K=t.itemRender,U=K===void 0?BQ:K,J=t.jumpPrevIcon,Q=t.jumpNextIcon,te=t.prevIcon,Y=t.nextIcon,ae=ve.useRef(null),re=yn(10,{value:p,defaultValue:C}),Z=fe(re,2),X=Z[0],oe=Z[1],le=yn(1,{value:u,defaultValue:f,postState:function(Mt){return Math.max(1,Math.min(Mt,Ul(void 0,X,g)))}}),de=fe(le,2),ce=de[0],ge=de[1],he=ve.useState(ce),Oe=fe(he,2),je=Oe[0],pe=Oe[1];i.useEffect(function(){pe(ce)},[ce]);var we=Math.max(1,ce-(I?3:5)),Se=Math.min(Ul(void 0,X,g),ce+(I?3:5));function Ce(vt,Mt){var Ft=vt||ve.createElement("button",{type:"button","aria-label":Mt,className:"".concat(r,"-item-link")});return typeof vt=="function"&&(Ft=ve.createElement(vt,se({},t))),Ft}function De(vt){var Mt=vt.target.value,Ft=Ul(void 0,X,g),$n;return Mt===""?$n=Mt:Number.isNaN(Number(Mt))?$n=je:Mt>=Ft?$n=Ft:$n=Number(Mt),$n}function Ae(vt){return XO(vt)&&vt!==ce&&XO(g)&&g>0}var Qe=g>X?O:!1;function Ke(vt){(vt.keyCode===ot.UP||vt.keyCode===ot.DOWN)&&vt.preventDefault()}function Fe(vt){var Mt=De(vt);switch(Mt!==je&&pe(Mt),vt.keyCode){case ot.ENTER:Ee(Mt);break;case ot.UP:Ee(Mt-1);break;case ot.DOWN:Ee(Mt+1);break}}function Ge(vt){Ee(De(vt))}function Te(vt){var Mt=Ul(vt,X,g),Ft=ce>Mt&&Mt!==0?Mt:ce;oe(vt),pe(Ft),P==null||P(ce,vt),ge(Ft),h==null||h(Ft,vt)}function Ee(vt){if(Ae(vt)&&!z){var Mt=Ul(void 0,X,g),Ft=vt;return vt>Mt?Ft=Mt:vt<1&&(Ft=1),Ft!==je&&pe(Ft),ge(Ft),h==null||h(Ft,X),Ft}return ce}var _e=ce>1,Re=ce<Ul(void 0,X,g);function Pe(){_e&&Ee(ce-1)}function ye(){Re&&Ee(ce+1)}function $e(){Ee(we)}function Me(){Ee(Se)}function Le(vt,Mt){if(vt.key==="Enter"||vt.charCode===ot.ENTER||vt.keyCode===ot.ENTER){for(var Ft=arguments.length,$n=new Array(Ft>2?Ft-2:0),_n=2;_n<Ft;_n++)$n[_n-2]=arguments[_n];Mt.apply(void 0,$n)}}function tt(vt){Le(vt,Pe)}function yt(vt){Le(vt,ye)}function We(vt){Le(vt,$e)}function nt(vt){Le(vt,Me)}function dt(vt){var Mt=U(vt,"prev",Ce(te,"prev page"));return ve.isValidElement(Mt)?ve.cloneElement(Mt,{disabled:!_e}):Mt}function at(vt){var Mt=U(vt,"next",Ce(Y,"next page"));return ve.isValidElement(Mt)?ve.cloneElement(Mt,{disabled:!Re}):Mt}function pt(vt){(vt.type==="click"||vt.keyCode===ot.ENTER)&&Ee(je)}var zt=null,Ot=Nr(t,{aria:!0,data:!0}),ct=F&&ve.createElement("li",{className:"".concat(r,"-total-text")},F(g,[g===0?0:(ce-1)*X+1,ce*X>g?g:ce*X])),$t=null,St=Ul(void 0,X,g);if($&&g<=X)return null;var et=[],Ve={rootPrefixCls:r,onClick:Ee,onKeyPress:Le,showTitle:M,itemRender:U,page:-1},Ue=ce-1>0?ce-1:0,mt=ce+1<St?ce+1:St,Tt=O&&O.goButton,Nt=Et(_)==="object"?_.readOnly:!_,Vt=Tt,ft=null;_&&(Tt&&(typeof Tt=="boolean"?Vt=ve.createElement("button",{type:"button",onClick:pt,onKeyUp:pt},L.jump_to_confirm):Vt=ve.createElement("span",{onClick:pt,onKeyUp:pt},Tt),Vt=ve.createElement("li",{title:M?"".concat(L.jump_to).concat(ce,"/").concat(St):null,className:"".concat(r,"-simple-pager")},Vt)),ft=ve.createElement("li",{title:M?"".concat(ce,"/").concat(St):null,className:"".concat(r,"-simple-pager")},Nt?je:ve.createElement("input",{type:"text","aria-label":L.jump_to,value:je,disabled:z,onKeyDown:Ke,onKeyUp:Fe,onChange:Fe,onBlur:Ge,size:3}),ve.createElement("span",{className:"".concat(r,"-slash")},"/"),St));var lt=I?1:2;if(St<=3+lt*2){St||et.push(ve.createElement(ld,be({},Ve,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var At=1;At<=St;At+=1)et.push(ve.createElement(ld,be({},Ve,{key:At,page:At,active:ce===At})))}else{var Ut=I?L.prev_3:L.prev_5,rn=I?L.next_3:L.next_5,Qt=U(we,"jump-prev",Ce(J,"prev page")),pn=U(Se,"jump-next",Ce(Q,"next page"));j&&(zt=Qt?ve.createElement("li",{title:M?Ut:null,key:"prev",onClick:$e,tabIndex:0,onKeyDown:We,className:ue("".concat(r,"-jump-prev"),ne({},"".concat(r,"-jump-prev-custom-icon"),!!J))},Qt):null,$t=pn?ve.createElement("li",{title:M?rn:null,key:"next",onClick:Me,tabIndex:0,onKeyDown:nt,className:ue("".concat(r,"-jump-next"),ne({},"".concat(r,"-jump-next-custom-icon"),!!Q))},pn):null);var qt=Math.max(1,ce-lt),un=Math.min(ce+lt,St);ce-1<=lt&&(un=1+lt*2),St-ce<=lt&&(qt=St-lt*2);for(var st=qt;st<=un;st+=1)et.push(ve.createElement(ld,be({},Ve,{key:st,page:st,active:ce===st})));if(ce-1>=lt*2&&ce!==3&&(et[0]=ve.cloneElement(et[0],{className:ue("".concat(r,"-item-after-jump-prev"),et[0].props.className)}),et.unshift(zt)),St-ce>=lt*2&&ce!==St-2){var xt=et[et.length-1];et[et.length-1]=ve.cloneElement(xt,{className:ue("".concat(r,"-item-before-jump-next"),xt.props.className)}),et.push($t)}qt!==1&&et.unshift(ve.createElement(ld,be({},Ve,{key:1,page:1}))),un!==St&&et.push(ve.createElement(ld,be({},Ve,{key:St,page:St})))}var ht=dt(Ue);if(ht){var Ye=!_e||!St;ht=ve.createElement("li",{title:M?L.prev_page:null,onClick:Pe,tabIndex:Ye?null:0,onKeyDown:tt,className:ue("".concat(r,"-prev"),ne({},"".concat(r,"-disabled"),Ye)),"aria-disabled":Ye},ht)}var Ze=at(mt);if(Ze){var ut,Dt;_?(ut=!Re,Dt=_e?0:null):(ut=!Re||!St,Dt=ut?null:0),Ze=ve.createElement("li",{title:M?L.next_page:null,onClick:ye,tabIndex:Dt,onKeyDown:yt,className:ue("".concat(r,"-next"),ne({},"".concat(r,"-disabled"),ut)),"aria-disabled":ut},Ze)}var Kt=ue(r,c,ne(ne(ne(ne(ne({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),_),"".concat(r,"-disabled"),z));return ve.createElement("ul",be({className:Kt,style:k,ref:ae},Ot),ct,ht,_?ft:et,Ze,ve.createElement(AQ,{locale:L,rootPrefixCls:r,disabled:z,selectPrefixCls:l,changeSize:Te,pageSize:X,pageSizeOptions:G,quickGo:Qe?Ee:null,goButton:Vt,showSizeChanger:q,sizeChangerRender:V}))};const LQ=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}}}}},HQ=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ie(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ie(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"}}},[`
|
|
387
|
-
&${t}-mini ${t}-prev ${t}-item-link,
|
|
388
|
-
&${t}-mini ${t}-next ${t}-item-link
|
|
389
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ie(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM),input:Object.assign(Object.assign({},fC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},FQ=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:ie(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:ie(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 ${ie(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ie(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:`${ie(e.inputOutlineOffset)} 0 ${ie(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:ie(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:ie(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},VQ=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}}},[`
|
|
390
|
-
${t}-prev,
|
|
391
|
-
${t}-jump-prev,
|
|
392
|
-
${t}-jump-next
|
|
393
|
-
`]:{marginInlineEnd:e.marginXS},[`
|
|
394
|
-
${t}-prev,
|
|
395
|
-
${t}-next,
|
|
396
|
-
${t}-jump-prev,
|
|
397
|
-
${t}-jump-next
|
|
398
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ie(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:`${ie(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":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ie(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},bf(e)),iC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Vg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},WQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ie(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ie(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ie(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}}}}},KQ=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-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:ie(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),WQ(e)),VQ(e)),FQ(e)),HQ(e)),LQ(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"}}},UQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Xa(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Io(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Io(e)}}}},qI=e=>Object.assign({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},Is(e)),GI=e=>tn(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"},js(e)),qQ=sn("Pagination",e=>{const t=GI(e);return[KQ(t),UQ(t)]},qI),GQ=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:`${ie(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}}}}},XQ=Gc(["Pagination","bordered"],e=>{const t=GI(e);return GQ(t)},qI);function YO(e){return i.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var YQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const XI=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:l,style:c,size:u,locale:d,responsive:f,showSizeChanger:v,selectComponentClass:g,pageSizeOptions:p}=e,b=YQ(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=Ng(f),[,x]=la(),{getPrefixCls:h,direction:$,showSizeChanger:w,className:E,style:j}=vr("pagination"),O=h("pagination",n),[I,R,M]=qQ(O),N=Tr(u),P=N==="small"||!!(C&&!N&&f),[B]=za("Pagination",J3),L=Object.assign(Object.assign({},B),d),[k,D]=YO(v),[H,z]=YO(w),_=k??H,F=D??z,W=g||ir,q=i.useMemo(()=>p?p.map(Q=>Number(Q)):void 0,[p]),V=Q=>{var te;const{disabled:Y,size:ae,onSizeChange:re,"aria-label":Z,className:X,options:oe}=Q,{className:le,onChange:de}=F||{},ce=(te=oe.find(ge=>String(ge.value)===String(ae)))===null||te===void 0?void 0:te.value;return i.createElement(W,Object.assign({disabled:Y,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ge=>ge.parentNode,"aria-label":Z,options:oe},F,{value:ce,onChange:(ge,he)=>{re==null||re(ge),de==null||de(ge,he)},size:P?"small":"middle",className:ue(X,le)}))},G=i.useMemo(()=>{const Q=i.createElement("span",{className:`${O}-item-ellipsis`},"•••"),te=i.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},$==="rtl"?i.createElement(Si,null):i.createElement(Lc,null)),Y=i.createElement("button",{className:`${O}-item-link`,type:"button",tabIndex:-1},$==="rtl"?i.createElement(Lc,null):i.createElement(Si,null)),ae=i.createElement("a",{className:`${O}-item-link`},i.createElement("div",{className:`${O}-item-container`},$==="rtl"?i.createElement(qO,{className:`${O}-item-link-icon`}):i.createElement(UO,{className:`${O}-item-link-icon`}),Q)),re=i.createElement("a",{className:`${O}-item-link`},i.createElement("div",{className:`${O}-item-container`},$==="rtl"?i.createElement(UO,{className:`${O}-item-link-icon`}):i.createElement(qO,{className:`${O}-item-link-icon`}),Q));return{prevIcon:te,nextIcon:Y,jumpPrevIcon:ae,jumpNextIcon:re}},[$,O]),K=h("select",r),U=ue({[`${O}-${t}`]:!!t,[`${O}-mini`]:P,[`${O}-rtl`]:$==="rtl",[`${O}-bordered`]:x.wireframe},E,a,l,R,M),J=Object.assign(Object.assign({},j),c);return I(i.createElement(i.Fragment,null,x.wireframe&&i.createElement(XQ,{prefixCls:O}),i.createElement(kQ,Object.assign({},G,b,{style:J,prefixCls:O,selectPrefixCls:K,className:U,locale:L,pageSizeOptions:q,showSizeChanger:_,sizeChangerRender:V}))))},Yv=100,YI=Yv/5,QI=Yv/2-YI/2,J0=QI*2*Math.PI,QO=50,ZO=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return i.createElement("circle",{className:ue(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:QI,cx:QO,cy:QO,strokeWidth:YI,style:n})},QQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[l,c]=i.useState(!1);nn(()=>{e!==0&&c(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const d={strokeDashoffset:`${J0/4}`,strokeDasharray:`${J0*u/100} ${J0*(100-u)/100}`};return i.createElement("span",{className:ue(r,`${n}-progress`,u<=0&&a)},i.createElement("svg",{viewBox:`0 0 ${Yv} ${Yv}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},i.createElement(ZO,{dotClassName:n,hasCircleCls:!0}),i.createElement(ZO,{dotClassName:n,style:d})))};function ZQ(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,l=`${a}-hidden`;return i.createElement(i.Fragment,null,i.createElement("span",{className:ue(a,n>0&&l)},i.createElement("span",{className:ue(r,`${t}-dot-spin`)},[1,2,3,4].map(c=>i.createElement("i",{className:`${t}-dot-item`,key:c})))),i.createElement(QQ,{prefixCls:t,percent:n}))}function JQ(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,l=`${n}-dot`;return r&&i.isValidElement(r)?Or(r,{className:ue((t=r.props)===null||t===void 0?void 0:t.className,l),percent:a}):i.createElement(ZQ,{prefixCls:n,percent:a})}const eZ=new Jt("antSpinMove",{to:{opacity:1}}),tZ=new Jt("antRotate",{to:{transform:"rotate(405deg)"}}),nZ=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},dn(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:eZ,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:tZ,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"}})}},rZ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},aZ=sn("Spin",e=>{const t=tn(e,{spinDotDefault:e.colorTextDescription});return nZ(t)},rZ),oZ=200,JO=[[30,.05],[70,.03],[96,.01]];function iZ(e,t){const[n,r]=i.useState(0),a=i.useRef(null),l=t==="auto";return i.useEffect(()=>(l&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const u=100-c;for(let d=0;d<JO.length;d+=1){const[f,v]=JO[d];if(c<=f)return c+u*v}return c})},oZ)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[l,e]),l?n:t}var lZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ZI;function sZ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Pa=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:l,rootClassName:c,size:u="default",tip:d,wrapperClassName:f,style:v,children:g,fullscreen:p=!1,indicator:b,percent:C}=e,x=lZ(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:h,direction:$,className:w,style:E,indicator:j}=vr("spin"),O=h("spin",n),[I,R,M]=aZ(O),[N,P]=i.useState(()=>r&&!sZ(r,a)),B=iZ(N,C);i.useEffect(()=>{if(r){const F=oq(a,()=>{P(!0)});return F(),()=>{var W;(W=F==null?void 0:F.cancel)===null||W===void 0||W.call(F)}}P(!1)},[a,r]);const L=i.useMemo(()=>typeof g<"u"&&!p,[g,p]),k=ue(O,w,{[`${O}-sm`]:u==="small",[`${O}-lg`]:u==="large",[`${O}-spinning`]:N,[`${O}-show-text`]:!!d,[`${O}-rtl`]:$==="rtl"},l,!p&&c,R,M),D=ue(`${O}-container`,{[`${O}-blur`]:N}),H=(t=b??j)!==null&&t!==void 0?t:ZI,z=Object.assign(Object.assign({},E),v),_=i.createElement("div",Object.assign({},x,{style:z,className:k,"aria-live":"polite","aria-busy":N}),i.createElement(JQ,{prefixCls:O,indicator:H,percent:B}),d&&(L||p)?i.createElement("div",{className:`${O}-text`},d):null);return I(L?i.createElement("div",Object.assign({},x,{className:ue(`${O}-nested-loading`,f,R,M)}),N&&i.createElement("div",{key:"loading"},_),i.createElement("div",{className:D,key:"container"},g)):p?i.createElement("div",{className:ue(`${O}-fullscreen`,{[`${O}-fullscreen-show`]:N},c,R,M)},_):_)};Pa.setDefaultIndicator=e=>{ZI=e};const OC=ve.createContext({});OC.Consumer;var JI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cZ=e=>{var{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=JI(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=i.useContext(Rt),d=u("list",t),f=ue(`${d}-item-meta`,n),v=ve.createElement("div",{className:`${d}-item-meta-content`},a&&ve.createElement("h4",{className:`${d}-item-meta-title`},a),l&&ve.createElement("div",{className:`${d}-item-meta-description`},l));return ve.createElement("div",Object.assign({},c,{className:f}),r&&ve.createElement("div",{className:`${d}-item-meta-avatar`},r),(a||l)&&v)},uZ=ve.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:l,styles:c,className:u,classNames:d,colStyle:f}=e,v=JI(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:p}=i.useContext(OC),{getPrefixCls:b,list:C}=i.useContext(Rt),x=R=>{var M,N;return ue((N=(M=C==null?void 0:C.item)===null||M===void 0?void 0:M.classNames)===null||N===void 0?void 0:N[R],d==null?void 0:d[R])},h=R=>{var M,N;return Object.assign(Object.assign({},(N=(M=C==null?void 0:C.item)===null||M===void 0?void 0:M.styles)===null||N===void 0?void 0:N[R]),c==null?void 0:c[R])},$=()=>{let R=!1;return i.Children.forEach(r,M=>{typeof M=="string"&&(R=!0)}),R&&i.Children.count(r)>1},w=()=>p==="vertical"?!!l:!$(),E=b("list",n),j=a&&a.length>0&&ve.createElement("ul",{className:ue(`${E}-item-action`,x("actions")),key:"actions",style:h("actions")},a.map((R,M)=>ve.createElement("li",{key:`${E}-item-action-${M}`},R,M!==a.length-1&&ve.createElement("em",{className:`${E}-item-action-split`})))),O=g?"div":"li",I=ve.createElement(O,Object.assign({},v,g?{}:{ref:t},{className:ue(`${E}-item`,{[`${E}-item-no-flex`]:!w()},u)}),p==="vertical"&&l?[ve.createElement("div",{className:`${E}-item-main`,key:"content"},r,j),ve.createElement("div",{className:ue(`${E}-item-extra`,x("extra")),key:"extra",style:h("extra")},l)]:[r,j,Or(l,{key:"extra"})]);return g?ve.createElement(Sr,{ref:t,flex:1,style:f},I):I}),eN=uZ;eN.Meta=cZ;const dZ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:l,itemPaddingLG:c,marginLG:u,borderRadiusLG:d}=e,f=ie(e.calc(d).sub(e.lineWidth).equal());return{[t]:{border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${n}-header`]:{borderRadius:`${f} ${f} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${f} ${f}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ie(a)} ${ie(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},fZ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:l,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ie(c)}`}}}}}},mZ=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:l,marginLG:c,padding:u,itemPadding:d,colorPrimary:f,itemPaddingSM:v,itemPaddingLG:g,paddingXS:p,margin:b,colorText:C,colorTextDescription:x,motionDurationSlow:h,lineWidth:$,headerBg:w,footerBg:E,emptyTextPadding:j,metaMarginBottom:O,avatarMarginRight:I,titleMarginBottom:R,descriptionFontSize:M}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:E},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d,color:C,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:I},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:C},[`${t}-item-meta-title`]:{margin:`0 0 ${ie(e.marginXXS)} 0`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:C,transition:`all ${h}`,"&:hover":{color:f}}},[`${t}-item-meta-description`]:{color:x,fontSize:M,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 ${ie(p)}`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:$,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ie(u)} 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:j,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:b,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:O,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:R,color:C,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${ie(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ie(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:v},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},vZ=e=>({contentWidth:220,itemPadding:`${ie(e.paddingContentVertical)} 0`,itemPaddingSM:`${ie(e.paddingContentVerticalSM)} ${ie(e.paddingContentHorizontal)}`,itemPaddingLG:`${ie(e.paddingContentVerticalLG)} ${ie(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),gZ=sn("List",e=>{const t=tn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[mZ(t),dZ(t),fZ(t)]},vZ);var pZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function hZ(e,t){const{pagination:n=!1,prefixCls:r,bordered:a=!1,split:l=!0,className:c,rootClassName:u,style:d,children:f,itemLayout:v,loadMore:g,grid:p,dataSource:b=[],size:C,header:x,footer:h,loading:$=!1,rowKey:w,renderItem:E,locale:j}=e,O=pZ(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),I=n&&typeof n=="object"?n:{},[R,M]=i.useState(I.defaultCurrent||1),[N,P]=i.useState(I.defaultPageSize||10),{getPrefixCls:B,direction:L,className:k,style:D}=vr("list"),{renderEmpty:H}=i.useContext(Rt),z={current:1,total:0,position:"bottom"},_=we=>(Se,Ce)=>{var De;M(Se),P(Ce),n&&((De=n==null?void 0:n[we])===null||De===void 0||De.call(n,Se,Ce))},F=_("onChange"),W=_("onShowSizeChange"),q=(we,Se)=>{if(!E)return null;let Ce;return typeof w=="function"?Ce=w(we):w?Ce=we[w]:Ce=we.key,Ce||(Ce=`list-item-${Se}`),i.createElement(i.Fragment,{key:Ce},E(we,Se))},V=!!(g||n||h),G=B("list",r),[K,U,J]=gZ(G);let Q=$;typeof Q=="boolean"&&(Q={spinning:Q});const te=!!(Q!=null&&Q.spinning),Y=Tr(C);let ae="";switch(Y){case"large":ae="lg";break;case"small":ae="sm";break}const re=ue(G,{[`${G}-vertical`]:v==="vertical",[`${G}-${ae}`]:ae,[`${G}-split`]:l,[`${G}-bordered`]:a,[`${G}-loading`]:te,[`${G}-grid`]:!!p,[`${G}-something-after-last-item`]:V,[`${G}-rtl`]:L==="rtl"},k,c,u,U,J),Z=Hd(z,{total:b.length,current:R,pageSize:N},n||{}),X=Math.ceil(Z.total/Z.pageSize);Z.current=Math.min(Z.current,X);const oe=n&&i.createElement("div",{className:ue(`${G}-pagination`)},i.createElement(XI,Object.assign({align:"end"},Z,{onChange:F,onShowSizeChange:W})));let le=Ne(b);n&&b.length>(Z.current-1)*Z.pageSize&&(le=Ne(b).splice((Z.current-1)*Z.pageSize,Z.pageSize));const de=Object.keys(p||{}).some(we=>["xs","sm","md","lg","xl","xxl"].includes(we)),ce=Ng(de),ge=i.useMemo(()=>{for(let we=0;we<ms.length;we+=1){const Se=ms[we];if(ce[Se])return Se}},[ce]),he=i.useMemo(()=>{if(!p)return;const we=ge&&p[ge]?p[ge]:p.column;if(we)return{width:`${100/we}%`,maxWidth:`${100/we}%`}},[JSON.stringify(p),ge]);let Oe=te&&i.createElement("div",{style:{minHeight:53}});if(le.length>0){const we=le.map(q);Oe=p?i.createElement(pl,{gutter:p.gutter},i.Children.map(we,Se=>i.createElement("div",{key:Se==null?void 0:Se.key,style:he},Se))):i.createElement("ul",{className:`${G}-items`},we)}else!f&&!te&&(Oe=i.createElement("div",{className:`${G}-empty-text`},(j==null?void 0:j.emptyText)||(H==null?void 0:H("List"))||i.createElement(vf,{componentName:"List"})));const je=Z.position,pe=i.useMemo(()=>({grid:p,itemLayout:v}),[JSON.stringify(p),v]);return K(i.createElement(OC.Provider,{value:pe},i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D),d),className:re},O),(je==="top"||je==="both")&&oe,x&&i.createElement("div",{className:`${G}-header`},x),i.createElement(Pa,Object.assign({},Q),Oe,f),h&&i.createElement("div",{className:`${G}-footer`},h),g||(je==="bottom"||je==="both")&&oe)))}const bZ=i.forwardRef(hZ),Fy=bZ;Fy.Item=eN;const yZ=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let co=null,rs=e=>e(),Ud=[],qd={};function e4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=qd,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:a}}const CZ=ve.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=i.useContext(Rt),l=qd.prefixCls||a("message"),c=i.useContext(wy),[u,d]=U6(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return ve.useImperativeHandle(t,()=>{const f=Object.assign({},u);return Object.keys(f).forEach(v=>{f[v]=(...g)=>(r(),u[v].apply(u,g))}),{instance:f,sync:r}}),d}),SZ=ve.forwardRef((e,t)=>{const[n,r]=ve.useState(e4),a=()=>{r(e4)};ve.useEffect(a,[]);const l=j6(),c=l.getRootPrefixCls(),u=l.getIconPrefixCls(),d=l.getTheme(),f=ve.createElement(CZ,{ref:t,sync:a,messageConfig:n});return ve.createElement(Po,{prefixCls:c,iconPrefixCls:u,theme:d},l.holderRender?l.holderRender(f):f)}),Yg=()=>{if(!co){const e=document.createDocumentFragment(),t={fragment:e};co=t,rs(()=>{O1()(ve.createElement(SZ,{ref:r=>{const{instance:a,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=l,Yg())})}}),e)});return}co.instance&&(Ud.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{rs(()=>{const r=co.instance.open(Object.assign(Object.assign({},qd),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":rs(()=>{co==null||co.instance.destroy(e.key)});break;default:rs(()=>{var r;const a=(r=co.instance)[t].apply(r,Ne(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Ud=[])};function xZ(e){qd=Object.assign(Object.assign({},qd),e),rs(()=>{var t;(t=co==null?void 0:co.sync)===null||t===void 0||t.call(co)})}function $Z(e){const t=w1(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Ud.push(a),()=>{r?rs(()=>{r()}):a.skipped=!0}});return Yg(),t}function wZ(e,t){const n=w1(r=>{let a;const l={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return Ud.push(l),()=>{a?rs(()=>{a()}):l.skipped=!0}});return Yg(),n}const EZ=e=>{Ud.push({type:"destroy",key:e}),Yg()},OZ=["success","info","warning","error","loading"],RZ={open:$Z,destroy:EZ,config:xZ,useMessage:q6,_InternalPanelDoNotUseOrYouWillBeFired:U7},Ln=RZ;OZ.forEach(e=>{Ln[e]=(...t)=>wZ(e,t)});var jZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const IZ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:l,title:c,children:u,footer:d}=e,f=jZ(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:v}=i.useContext(Rt),g=v(),p=t||v("modal"),b=dr(g),[C,x,h]=jR(p,b),$=`${p}-confirm`;let w={};return l?w={closable:a??!1,title:"",footer:"",children:i.createElement(NR,Object.assign({},e,{prefixCls:p,confirmPrefixCls:$,rootPrefixCls:g,content:u}))}:w={closable:a??!0,title:c,footer:d!==null&&i.createElement(wR,Object.assign({},e)),children:u},C(i.createElement(sR,Object.assign({prefixCls:p,className:ue(x,`${p}-pure-panel`,l&&$,l&&`${$}-${l}`,n,h,b)},f,{closeIcon:$R(p,r),closable:a},w)))},NZ=FR(IZ);function tN(e){return df(zR(e))}const hr=IR;hr.useModal=kR;hr.info=function(t){return df(DR(t))};hr.success=function(t){return df(_R(t))};hr.error=function(t){return df(AR(t))};hr.warning=tN;hr.warn=tN;hr.confirm=function(t){return df(BR(t))};hr.destroyAll=function(){for(;ns.length;){const t=ns.pop();t&&t()}};hr.config=ZB;hr._InternalPanelDoNotUseOrYouWillBeFired=NZ;const MZ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:l,colorWarning:c,marginXXS:u,marginXS:d,fontSize:f,fontWeightStrong:v,colorTextHeading:g}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:f},[`${t}-message`]:{marginBottom:d,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:f,lineHeight:1,marginInlineEnd:d},[`${t}-title`]:{fontWeight:v,color:g,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:u,color:l}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:d}}}}},TZ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},nN=sn("Popconfirm",e=>MZ(e),TZ,{resetStyle:!1});var PZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const rN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:l,cancelText:c,okText:u,okType:d="primary",icon:f=i.createElement(xs,null),showCancel:v=!0,close:g,onConfirm:p,onCancel:b,onPopupClick:C}=e,{getPrefixCls:x}=i.useContext(Rt),[h]=za("Popconfirm",go.Popconfirm),$=kc(a),w=kc(l);return i.createElement("div",{className:`${t}-inner-content`,onClick:C},i.createElement("div",{className:`${t}-message`},f&&i.createElement("span",{className:`${t}-message-icon`},f),i.createElement("div",{className:`${t}-message-text`},$&&i.createElement("div",{className:`${t}-title`},$),w&&i.createElement("div",{className:`${t}-description`},w))),i.createElement("div",{className:`${t}-buttons`},v&&i.createElement(Xe,Object.assign({onClick:b,size:"small"},r),c||(h==null?void 0:h.cancelText)),i.createElement(T1,{buttonProps:Object.assign(Object.assign({size:"small"},R1(d)),n),actionFn:p,close:g,prefixCls:x("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},u||(h==null?void 0:h.okText))))},zZ=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,l=PZ(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=i.useContext(Rt),u=c("popconfirm",t),[d]=nN(u);return d(i.createElement(Oj,{placement:n,className:ue(u,r),style:a,content:i.createElement(rN,Object.assign({prefixCls:u},l))}))};var DZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _Z=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:l="top",trigger:c="click",okType:u="primary",icon:d=i.createElement(xs,null),children:f,overlayClassName:v,onOpenChange:g,onVisibleChange:p,overlayStyle:b,styles:C,classNames:x}=e,h=DZ(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:w,style:E,classNames:j,styles:O}=vr("popconfirm"),[I,R]=yn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(_,F)=>{R(_,!0),p==null||p(_),g==null||g(_,F)},N=_=>{M(!1,_)},P=_=>{var F;return(F=e.onConfirm)===null||F===void 0?void 0:F.call(void 0,_)},B=_=>{var F;M(!1,_),(F=e.onCancel)===null||F===void 0||F.call(void 0,_)},L=(_,F)=>{const{disabled:W=!1}=e;W||M(_,F)},k=$("popconfirm",a),D=ue(k,w,v,j.root,x==null?void 0:x.root),H=ue(j.body,x==null?void 0:x.body),[z]=nN(k);return z(i.createElement(K1,Object.assign({},En(h,["title"]),{trigger:c,placement:l,onOpenChange:L,open:I,ref:t,classNames:{root:D,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),E),b),C==null?void 0:C.root),body:Object.assign(Object.assign({},O.body),C==null?void 0:C.body)},content:i.createElement(rN,Object.assign({okType:u,icon:d},e,{prefixCls:k,close:N,onConfirm:P,onCancel:B})),"data-popover-inject":!0}),f))}),fo=_Z;fo._InternalPanelDoNotUseOrYouWillBeFired=zZ;var AZ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},BZ=function(){var t=i.useRef([]),n=i.useRef(null);return i.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(l){if(l){a=!0;var c=l.style;c.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(c.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},t4=0,kZ=oa();function LZ(){var e;return kZ?(e=t4,t4+=1):e="TEST_OR_SSR",e}const HZ=(function(e){var t=i.useState(),n=fe(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_progress_".concat(LZ()))},[]),e||r});var n4=function(t){var n=t.bg,r=t.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function r4(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var FZ=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,l=e.radius,c=e.style,u=e.ptg,d=e.strokeLinecap,f=e.strokeWidth,v=e.size,g=e.gapDegree,p=r&&Et(r)==="object",b=p?"#FFF":void 0,C=v/2,x=i.createElement("circle",{className:"".concat(n,"-circle-path"),r:l,cx:C,cy:C,stroke:b,strokeLinecap:d,strokeWidth:f,opacity:u===0?0:1,style:c,ref:t});if(!p)return x;var h="".concat(a,"-conic"),$=g?"".concat(180+g/2,"deg"):"0deg",w=r4(r,(360-g)/360),E=r4(r,1),j="conic-gradient(from ".concat($,", ").concat(w.join(", "),")"),O="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(E.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:h},x),i.createElement("foreignObject",{x:0,y:0,width:v,height:v,mask:"url(#".concat(h,")")},i.createElement(n4,{bg:O},i.createElement(n4,{bg:j}))))}),yd=100,eb=function(t,n,r,a,l,c,u,d,f,v){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-c)/360),b=c===0?0:{bottom:0,top:180,left:90,right:-90}[u],C=(100-a)/100*n;f==="round"&&a!==100&&(C+=v/2,C>=n&&(C=n-.01));var x=yd/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(l+p+b,"deg)"),transformOrigin:"".concat(x,"px ").concat(x,"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}},VZ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function a4(e){var t=e??[];return Array.isArray(t)?t:[t]}var WZ=function(t){var n=se(se({},AZ),t),r=n.id,a=n.prefixCls,l=n.steps,c=n.strokeWidth,u=n.trailWidth,d=n.gapDegree,f=d===void 0?0:d,v=n.gapPosition,g=n.trailColor,p=n.strokeLinecap,b=n.style,C=n.className,x=n.strokeColor,h=n.percent,$=Lt(n,VZ),w=yd/2,E=HZ(r),j="".concat(E,"-gradient"),O=w-c/2,I=Math.PI*2*O,R=f>0?90+f/2:-90,M=I*((360-f)/360),N=Et(l)==="object"?l:{count:l,gap:2},P=N.count,B=N.gap,L=a4(h),k=a4(x),D=k.find(function(V){return V&&Et(V)==="object"}),H=D&&Et(D)==="object",z=H?"butt":p,_=eb(I,M,0,100,R,f,v,g,z,c),F=BZ(),W=function(){var G=0;return L.map(function(K,U){var J=k[U]||k[k.length-1],Q=eb(I,M,G,K,R,f,v,J,z,c);return G+=K,i.createElement(FZ,{key:U,color:J,ptg:K,radius:O,prefixCls:a,gradientId:j,style:Q,strokeLinecap:z,strokeWidth:c,gapDegree:f,ref:function(Y){F[U]=Y},size:yd})}).reverse()},q=function(){var G=Math.round(P*(L[0]/100)),K=100/P,U=0;return new Array(P).fill(null).map(function(J,Q){var te=Q<=G-1?k[0]:g,Y=te&&Et(te)==="object"?"url(#".concat(j,")"):void 0,ae=eb(I,M,U,K,R,f,v,te,"butt",c,B);return U+=(M-ae.strokeDashoffset+B)*100/M,i.createElement("circle",{key:Q,className:"".concat(a,"-circle-path"),r:O,cx:w,cy:w,stroke:Y,strokeWidth:c,opacity:1,style:ae,ref:function(Z){F[Q]=Z}})})};return i.createElement("svg",be({className:ue("".concat(a,"-circle"),C),viewBox:"0 0 ".concat(yd," ").concat(yd),style:b,id:r,role:"presentation"},$),!P&&i.createElement("circle",{className:"".concat(a,"-circle-trail"),r:O,cx:w,cy:w,stroke:g,strokeLinecap:z,strokeWidth:u||c,style:_}),P?q():W())};function ml(e){return!e||e<0?0:e>100?100:e}function Qv({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const KZ=({percent:e,success:t,successPercent:n})=>{const r=ml(Qv({success:t,successPercent:n}));return[r,ml(ml(e)-r)]},UZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Rc.green,t||null]},Qg=(e,t,n)=>{var r,a,l,c;let u=-1,d=-1;if(t==="step"){const f=n.steps,v=n.strokeWidth;typeof e=="string"||typeof e>"u"?(u=e==="small"?2:14,d=v??8):typeof e=="number"?[u,d]=[e,e]:[u=14,d=8]=Array.isArray(e)?e:[e.width,e.height],u*=f}else if(t==="line"){const f=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?d=f||(e==="small"?6:8):typeof e=="number"?[u,d]=[e,e]:[u=-1,d=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[u,d]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[u,d]=[e,e]:Array.isArray(e)&&(u=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,d=(c=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&c!==void 0?c:120));return[u,d]},qZ=3,GZ=e=>qZ/e*100,XZ=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:l,width:c=120,type:u,children:d,success:f,size:v=c,steps:g}=e,[p,b]=Qg(v,"circle");let{strokeWidth:C}=e;C===void 0&&(C=Math.max(GZ(p),6));const x={width:p,height:b,fontSize:p*.15+6},h=i.useMemo(()=>{if(l||l===0)return l;if(u==="dashboard")return 75},[l,u]),$=KZ(e),w=a||u==="dashboard"&&"bottom"||void 0,E=Object.prototype.toString.call(e.strokeColor)==="[object Object]",j=UZ({success:f,strokeColor:e.strokeColor}),O=ue(`${t}-inner`,{[`${t}-circle-gradient`]:E}),I=i.createElement(WZ,{steps:g,percent:g?$[1]:$,strokeWidth:C,trailWidth:C,strokeColor:g?j[1]:j,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:w}),R=p<=20,M=i.createElement("div",{className:O,style:x},I,!R&&d);return R?i.createElement(An,{title:d},M):M},Zv="--progress-line-stroke-color",aN="--progress-percent",o4=e=>{const t=e?"100%":"-100%";return new Jt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},YZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Zv})`]},height:"100%",width:`calc(1 / var(${aN}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ie(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:o4(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:o4(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},QZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},ZZ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},JZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},eJ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),tJ=sn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=tn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[YZ(n),QZ(n),ZZ(n),JZ(n)]},eJ);var nJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const rJ=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(", ")},aJ=(e,t)=>{const{from:n=Rc.blue,to:r=Rc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,l=nJ(e,["from","to","direction"]);if(Object.keys(l).length!==0){const u=rJ(l),d=`linear-gradient(${a}, ${u})`;return{background:d,[Zv]:d}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[Zv]:c}},oJ=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:l,strokeColor:c,strokeLinecap:u="round",children:d,trailColor:f=null,percentPosition:v,success:g}=e,{align:p,type:b}=v,C=c&&typeof c!="string"?aJ(c,n):{[Zv]:c,background:c},x=u==="square"||u==="butt"?0:void 0,h=a??[-1,l||(a==="small"?6:8)],[$,w]=Qg(h,"line",{strokeWidth:l}),E={backgroundColor:f||void 0,borderRadius:x},j=Object.assign(Object.assign({width:`${ml(r)}%`,height:w,borderRadius:x},C),{[aN]:ml(r)/100}),O=Qv(e),I={width:`${ml(O)}%`,height:w,borderRadius:x,backgroundColor:g==null?void 0:g.strokeColor},R={width:$<0?"100%":$},M=i.createElement("div",{className:`${t}-inner`,style:E},i.createElement("div",{className:ue(`${t}-bg`,`${t}-bg-${b}`),style:j},b==="inner"&&d),O!==void 0&&i.createElement("div",{className:`${t}-success-bg`,style:I})),N=b==="outer"&&p==="start",P=b==="outer"&&p==="end";return b==="outer"&&p==="center"?i.createElement("div",{className:`${t}-layout-bottom`},M,d):i.createElement("div",{className:`${t}-outer`,style:R},N&&d,M,P&&d)},iJ=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:l=8,strokeColor:c,trailColor:u=null,prefixCls:d,children:f}=e,v=r(n*(a/100)),p=t??[t==="small"?2:14,l],[b,C]=Qg(p,"step",{steps:n,strokeWidth:l}),x=b/n,h=Array.from({length:n});for(let $=0;$<n;$++){const w=Array.isArray(c)?c[$]:c;h[$]=i.createElement("div",{key:$,className:ue(`${d}-steps-item`,{[`${d}-steps-item-active`]:$<=v-1}),style:{backgroundColor:$<=v-1?w:u,width:x,height:C}})}return i.createElement("div",{className:`${d}-steps-outer`},h,f)};var lJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const sJ=["normal","exception","active","success"],oN=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,steps:l,strokeColor:c,percent:u=0,size:d="default",showInfo:f=!0,type:v="line",status:g,format:p,style:b,percentPosition:C={}}=e,x=lJ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:h="end",type:$="outer"}=C,w=Array.isArray(c)?c[0]:c,E=typeof c=="string"||Array.isArray(c)?c:void 0,j=i.useMemo(()=>{if(w){const W=typeof w=="string"?w:Object.values(w)[0];return new bn(W).isLight()}return!1},[c]),O=i.useMemo(()=>{var W,q;const V=Qv(e);return Number.parseInt(V!==void 0?(W=V??0)===null||W===void 0?void 0:W.toString():(q=u??0)===null||q===void 0?void 0:q.toString(),10)},[u,e.success,e.successPercent]),I=i.useMemo(()=>!sJ.includes(g)&&O>=100?"success":g||"normal",[g,O]),{getPrefixCls:R,direction:M,progress:N}=i.useContext(Rt),P=R("progress",n),[B,L,k]=tJ(P),D=v==="line",H=D&&!l,z=i.useMemo(()=>{if(!f)return null;const W=Qv(e);let q;const V=p||(K=>`${K}%`),G=D&&j&&$==="inner";return $==="inner"||p||I!=="exception"&&I!=="success"?q=V(ml(u),ml(W)):I==="exception"?q=D?i.createElement(Sl,null):i.createElement(zo,null):I==="success"&&(q=D?i.createElement(Ss,null):i.createElement(ws,null)),i.createElement("span",{className:ue(`${P}-text`,{[`${P}-text-bright`]:G,[`${P}-text-${h}`]:H,[`${P}-text-${$}`]:H}),title:typeof q=="string"?q:void 0},q)},[f,u,O,I,v,P,p]);let _;v==="line"?_=l?i.createElement(iJ,Object.assign({},e,{strokeColor:E,prefixCls:P,steps:typeof l=="object"?l.count:l}),z):i.createElement(oJ,Object.assign({},e,{strokeColor:w,prefixCls:P,direction:M,percentPosition:{align:h,type:$}}),z):(v==="circle"||v==="dashboard")&&(_=i.createElement(XZ,Object.assign({},e,{strokeColor:w,prefixCls:P,progressStatus:I}),z));const F=ue(P,`${P}-status-${I}`,{[`${P}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${P}-inline-circle`]:v==="circle"&&Qg(d,"circle")[0]<=20,[`${P}-line`]:H,[`${P}-line-align-${h}`]:H,[`${P}-line-position-${$}`]:H,[`${P}-steps`]:l,[`${P}-show-info`]:f,[`${P}-${d}`]:typeof d=="string",[`${P}-rtl`]:M==="rtl"},N==null?void 0:N.className,r,a,L,k);return B(i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N==null?void 0:N.style),b),className:F,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100},En(x,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_))});var cJ={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"},uJ=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:cJ}))},gs=i.forwardRef(uJ);const dJ=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:a,groupSeparator:l="",prefixCls:c}=e;let u;if(typeof n=="function")u=n(t);else{const d=String(t),f=d.match(/^(-?)(\d*)(\.(\d+))?$/);if(!f||d==="-")u=d;else{const v=f[1];let g=f[2]||"0",p=f[4]||"";g=g.replace(/\B(?=(\d{3})+(?!\d))/g,l),typeof r=="number"&&(p=p.padEnd(r,"0").slice(0,r>0?r:0)),p&&(p=`${a}${p}`),u=[i.createElement("span",{key:"int",className:`${c}-content-value-int`},v,g),p&&i.createElement("span",{key:"decimal",className:`${c}-content-value-decimal`},p)]}}return i.createElement("span",{className:`${c}-content-value`},u)},fJ=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:l,colorTextHeading:c,contentFontSize:u,fontFamily:d}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:l},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:c,fontSize:u,fontFamily:d,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},mJ=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},vJ=sn("Statistic",e=>{const t=tn(e,{});return fJ(t)},mJ);var gJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const bi=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,valueStyle:c,value:u=0,title:d,valueRender:f,prefix:v,suffix:g,loading:p=!1,formatter:b,precision:C,decimalSeparator:x=".",groupSeparator:h=",",onMouseEnter:$,onMouseLeave:w}=e,E=gJ(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:j,direction:O,className:I,style:R}=vr("statistic"),M=j("statistic",n),[N,P,B]=vJ(M),L=i.createElement(dJ,{decimalSeparator:x,groupSeparator:h,prefixCls:M,formatter:b,precision:C,value:u}),k=ue(M,{[`${M}-rtl`]:O==="rtl"},I,r,a,P,B),D=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:D.current}));const H=Nr(E,{aria:!0,data:!0});return N(i.createElement("div",Object.assign({},H,{ref:D,className:k,style:Object.assign(Object.assign({},R),l),onMouseEnter:$,onMouseLeave:w}),d&&i.createElement("div",{className:`${M}-title`},d),i.createElement(xl,{paragraph:!1,loading:p,className:`${M}-skeleton`,active:!0},i.createElement("div",{style:c,className:`${M}-content`},v&&i.createElement("span",{className:`${M}-content-prefix`},v),f?f(L):L,g&&i.createElement("span",{className:`${M}-content-suffix`},g)))))}),pJ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function hJ(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(d=>d.slice(1,-1)),l=t.replace(r,"[]"),c=pJ.reduce((d,[f,v])=>{if(d.includes(f)){const g=Math.floor(n/v);return n-=g*v,d.replace(new RegExp(`${f}+`,"g"),p=>{const b=p.length;return g.toString().padStart(b,"0")})}return d},l);let u=0;return c.replace(r,()=>{const d=a[u];return u+=1,d})}function bJ(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),l=Date.now(),c=Math.max(n?a-l:l-a,0);return hJ(c,r)}var yJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function CJ(e){return new Date(e).getTime()}const iN=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:l}=e,c=yJ(e,["value","format","onChange","onFinish","type"]),u=l==="countdown",[d,f]=i.useState(null),v=Xt(()=>{const b=Date.now(),C=CJ(t);f({});const x=u?C-b:b-C;return r==null||r(x),u&&C<b?(a==null||a(),!1):!0});i.useEffect(()=>{let b;const C=()=>Yt.cancel(b),x=()=>{b=Yt(()=>{v()&&x()})};return x(),C},[t,u]),i.useEffect(()=>{f({})},[]);const g=(b,C)=>d?bJ(b,Object.assign(Object.assign({},C),{format:n}),u):"-",p=b=>Or(b,{title:void 0});return i.createElement(bi,Object.assign({},c,{value:t,valueRender:p,formatter:g}))},SJ=e=>i.createElement(iN,Object.assign({},e,{type:"countdown"})),xJ=i.memo(SJ);bi.Timer=iN;bi.Countdown=xJ;var $J=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],lN=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,l=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,v=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,b=e.onChange,C=e.onKeyDown,x=Lt(e,$J),h=yn(!1,{value:c,defaultValue:u}),$=fe(h,2),w=$[0],E=$[1];function j(M,N){var P=w;return d||(P=M,E(P),b==null||b(P,N)),P}function O(M){M.which===ot.LEFT?j(!1,M):M.which===ot.RIGHT&&j(!0,M),C==null||C(M)}function I(M){var N=j(!w,M);p==null||p(N,M)}var R=ue(a,l,(n={},ne(n,"".concat(a,"-checked"),w),ne(n,"".concat(a,"-disabled"),d),n));return i.createElement("button",be({},x,{type:"button",role:"switch","aria-checked":w,disabled:d,className:R,ref:t,onKeyDown:O,onClick:I}),f,i.createElement("span",{className:"".concat(a,"-inner")},i.createElement("span",{className:"".concat(a,"-inner-checked")},v),i.createElement("span",{className:"".concat(a,"-inner-unchecked")},g)))});lN.displayName="Switch";const wJ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:l,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,f=`${t}-inner`,v=ie(d(u).add(d(r).mul(2)).equal()),g=ie(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:ie(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:l,[`${f}-checked, ${f}-unchecked`]:{minHeight:n},[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${v} - ${g})`,marginInlineEnd:`calc(100% - ${v} + ${g})`},[`${f}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:c,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${v} + ${g})`,marginInlineEnd:`calc(-100% + ${v} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ie(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},EJ=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},OJ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:l,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(l).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${ie(c(l).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},RJ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:l,handleSize:c,calc:u}=e,d=`${t}-inner`,f=ie(u(c).add(u(r).mul(2)).equal()),v=ie(u(l).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${v})`,marginInlineEnd:`calc(100% - ${f} + ${v})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${v})`,marginInlineEnd:`calc(-100% + ${f} - ${v})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},jJ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ie(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Xa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},IJ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,l=t*n,c=r/2,u=2,d=l-u*2,f=c-u*2;return{trackHeight:l,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:f*2+u*2,trackPadding:u,handleBg:a,handleSize:d,handleSizeSM:f,handleShadow:`0 2px 4px 0 ${new bn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+u+u*2}},NJ=sn("Switch",e=>{const t=tn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[jJ(t),RJ(t),OJ(t),EJ(t),wJ(t)]},IJ);var MJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TJ=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:l,className:c,rootClassName:u,style:d,checked:f,value:v,defaultChecked:g,defaultValue:p,onChange:b}=e,C=MJ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[x,h]=yn(!1,{value:f??v,defaultValue:g??p}),{getPrefixCls:$,direction:w,switch:E}=i.useContext(Rt),j=i.useContext(Wr),O=(a??j)||l,I=$("switch",n),R=i.createElement("div",{className:`${I}-handle`},l&&i.createElement(No,{className:`${I}-loading-icon`})),[M,N,P]=NJ(I),B=Tr(r),L=ue(E==null?void 0:E.className,{[`${I}-small`]:B==="small",[`${I}-loading`]:l,[`${I}-rtl`]:w==="rtl"},c,u,N,P),k=Object.assign(Object.assign({},E==null?void 0:E.style),d),D=(...H)=>{h(H[0]),b==null||b.apply(void 0,H)};return M(i.createElement(af,{component:"Switch",disabled:O},i.createElement(lN,Object.assign({},C,{checked:x,onChange:D,prefixCls:I,className:L,style:k,disabled:O,ref:t,loadingIcon:R}))))}),Gd=TJ;Gd.__ANT_SWITCH=!0;var ll={},xf="rc-table-internal-hook";function RC(e){var t=i.createContext(void 0),n=function(a){var l=a.value,c=a.children,u=i.useRef(l);u.current=l;var d=i.useState(function(){return{getValue:function(){return u.current},listeners:new Set}}),f=fe(d,1),v=f[0];return nn(function(){mo.unstable_batchedUpdates(function(){v.listeners.forEach(function(g){g(l)})})},[l]),i.createElement(t.Provider,{value:v},c)};return{Context:t,Provider:n,defaultValue:e}}function ia(e,t){var n=Xt(typeof t=="function"?t:function(g){if(t===void 0)return g;if(!Array.isArray(t))return g[t];var p={};return t.forEach(function(b){p[b]=g[b]}),p}),r=i.useContext(e==null?void 0:e.Context),a=r||{},l=a.listeners,c=a.getValue,u=i.useRef();u.current=n(r?c():e==null?void 0:e.defaultValue);var d=i.useState({}),f=fe(d,2),v=f[1];return nn(function(){if(!r)return;function g(p){var b=n(p);jo(u.current,b,!0)||v({})}return l.add(g),function(){l.delete(g)}},[r]),u.current}function PJ(){var e=i.createContext(null);function t(){return i.useContext(e)}function n(a,l){var c=Ro(a),u=function(f,v){var g=c?{ref:v}:{},p=i.useRef(0),b=i.useRef(f),C=t();return C!==null?i.createElement(a,be({},f,g)):((!l||l(b.current,f))&&(p.current+=1),b.current=f,i.createElement(e.Provider,{value:p.current},i.createElement(a,be({},f,g))))};return c?i.forwardRef(u):u}function r(a,l){var c=Ro(a),u=function(f,v){var g=c?{ref:v}:{};return t(),i.createElement(a,be({},f,g))};return c?i.memo(i.forwardRef(u),l):i.memo(u,l)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var jC=PJ(),sN=jC.makeImmutable,su=jC.responseImmutable,zJ=jC.useImmutableMark,Sa=RC(),cN=i.createContext({renderWithProps:!1}),DJ="RC_TABLE_KEY";function _J(e){return e==null?[]:Array.isArray(e)?e:[e]}function Zg(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},l=a.key,c=a.dataIndex,u=l||_J(c).join("-")||DJ;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function Vy(e){return e!=null}function AJ(e){return typeof e=="number"&&!Number.isNaN(e)}function BJ(e){return e&&Et(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function kJ(e,t,n,r,a,l){var c=i.useContext(cN),u=zJ(),d=ys(function(){if(Vy(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],v=$a(e,f),g=v,p=void 0;if(a){var b=a(v,e,n);BJ(b)?(g=b.children,p=b.props,c.renderWithProps=!0):g=b}return[g,p]},[u,e,r,t,a,n],function(f,v){if(l){var g=fe(f,2),p=g[1],b=fe(v,2),C=b[1];return l(C,p)}return c.renderWithProps?!0:!jo(f,v,!0)});return d}function LJ(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function HJ(e,t){return ia(Sa,function(n){var r=LJ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var FJ=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,l,c=n===!0?{showTitle:!0}:n;return c&&(c.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():i.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function VJ(e){var t,n,r,a,l,c,u,d,f=e.component,v=e.children,g=e.ellipsis,p=e.scope,b=e.prefixCls,C=e.className,x=e.align,h=e.record,$=e.render,w=e.dataIndex,E=e.renderIndex,j=e.shouldCellUpdate,O=e.index,I=e.rowType,R=e.colSpan,M=e.rowSpan,N=e.fixLeft,P=e.fixRight,B=e.firstFixLeft,L=e.lastFixLeft,k=e.firstFixRight,D=e.lastFixRight,H=e.appendNode,z=e.additionalProps,_=z===void 0?{}:z,F=e.isSticky,W="".concat(b,"-cell"),q=ia(Sa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=q.supportSticky,G=q.allColumnsFixedLeft,K=q.rowHoverable,U=kJ(h,w,E,v,$,j),J=fe(U,2),Q=J[0],te=J[1],Y={},ae=typeof N=="number"&&V,re=typeof P=="number"&&V;ae&&(Y.position="sticky",Y.left=N),re&&(Y.position="sticky",Y.right=P);var Z=(t=(n=(r=te==null?void 0:te.colSpan)!==null&&r!==void 0?r:_.colSpan)!==null&&n!==void 0?n:R)!==null&&t!==void 0?t:1,X=(a=(l=(c=te==null?void 0:te.rowSpan)!==null&&c!==void 0?c:_.rowSpan)!==null&&l!==void 0?l:M)!==null&&a!==void 0?a:1,oe=HJ(O,X),le=fe(oe,2),de=le[0],ce=le[1],ge=Xt(function(Ce){var De;h&&ce(O,O+X-1),_==null||(De=_.onMouseEnter)===null||De===void 0||De.call(_,Ce)}),he=Xt(function(Ce){var De;h&&ce(-1,-1),_==null||(De=_.onMouseLeave)===null||De===void 0||De.call(_,Ce)});if(Z===0||X===0)return null;var Oe=(u=_.title)!==null&&u!==void 0?u:FJ({rowType:I,ellipsis:g,children:Q}),je=ue(W,C,(d={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(d,"".concat(W,"-fix-left"),ae&&V),"".concat(W,"-fix-left-first"),B&&V),"".concat(W,"-fix-left-last"),L&&V),"".concat(W,"-fix-left-all"),L&&G&&V),"".concat(W,"-fix-right"),re&&V),"".concat(W,"-fix-right-first"),k&&V),"".concat(W,"-fix-right-last"),D&&V),"".concat(W,"-ellipsis"),g),"".concat(W,"-with-append"),H),"".concat(W,"-fix-sticky"),(ae||re)&&F&&V),ne(d,"".concat(W,"-row-hover"),!te&&de)),_.className,te==null?void 0:te.className),pe={};x&&(pe.textAlign=x);var we=se(se(se(se({},te==null?void 0:te.style),Y),pe),_.style),Se=Q;return Et(Se)==="object"&&!Array.isArray(Se)&&!i.isValidElement(Se)&&(Se=null),g&&(L||k)&&(Se=i.createElement("span",{className:"".concat(W,"-content")},Se)),i.createElement(f,be({},te,_,{className:je,style:we,title:Oe,scope:p,onMouseEnter:K?ge:void 0,onMouseLeave:K?he:void 0,colSpan:Z!==1?Z:null,rowSpan:X!==1?X:null}),H,Se)}const cu=i.memo(VJ);function IC(e,t,n,r,a){var l=n[e]||{},c=n[t]||{},u,d;l.fixed==="left"?u=r.left[a==="rtl"?t:e]:c.fixed==="right"&&(d=r.right[a==="rtl"?e:t]);var f=!1,v=!1,g=!1,p=!1,b=n[t+1],C=n[e-1],x=b&&!b.fixed||C&&!C.fixed||n.every(function(j){return j.fixed==="left"});if(a==="rtl"){if(u!==void 0){var h=C&&C.fixed==="left";p=!h&&x}else if(d!==void 0){var $=b&&b.fixed==="right";g=!$&&x}}else if(u!==void 0){var w=b&&b.fixed==="left";f=!w&&x}else if(d!==void 0){var E=C&&C.fixed==="right";v=!E&&x}return{fixLeft:u,fixRight:d,lastFixLeft:f,firstFixRight:v,lastFixRight:g,firstFixLeft:p,isSticky:r.isSticky}}var uN=i.createContext({});function WJ(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,u=e.align,d=ia(Sa,["prefixCls","direction"]),f=d.prefixCls,v=d.direction,g=i.useContext(uN),p=g.scrollColumnIndex,b=g.stickyOffsets,C=g.flattenColumns,x=n+l-1,h=x+1===p?l+1:l,$=IC(n,n+h-1,C,b,v);return i.createElement(cu,be({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:c,render:function(){return r}},$))}var KJ=["children"];function UJ(e){var t=e.children,n=Lt(e,KJ);return i.createElement("tr",n,t)}function Jg(e){var t=e.children;return t}Jg.Row=UJ;Jg.Cell=WJ;function qJ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=ia(Sa,"prefixCls"),l=r.length-1,c=r[l],u=i.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:c!=null&&c.scrollbar?l:null}},[c,r,l,n]);return i.createElement(uN.Provider,{value:u},i.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Ym=su(qJ);var dN=Jg;function GJ(e){return null}function XJ(e){return null}function fN(e,t,n,r,a,l,c){var u=l(t,c);e.push({record:t,indent:n,index:c,rowKey:u});var d=a==null?void 0:a.has(u);if(t&&Array.isArray(t[r])&&d)for(var f=0;f<t[r].length;f+=1)fN(e,t[r][f],n+1,r,a,l,f)}function mN(e,t,n,r){var a=i.useMemo(function(){if(n!=null&&n.size){for(var l=[],c=0;c<(e==null?void 0:e.length);c+=1){var u=e[c];fN(l,u,0,t,n,r,c)}return l}return e==null?void 0:e.map(function(d,f){return{record:d,indent:0,index:f,rowKey:r(d,f)}})},[e,t,n,r]);return a}function vN(e,t,n,r){var a=ia(Sa,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=a.flattenColumns,c=a.expandableType,u=a.expandedKeys,d=a.childrenColumnName,f=a.onTriggerExpand,v=a.rowExpandable,g=a.onRow,p=a.expandRowByClick,b=a.rowClassName,C=c==="nest",x=c==="row"&&(!v||v(e)),h=x||C,$=u&&u.has(t),w=d&&e&&e[d],E=Xt(f),j=g==null?void 0:g(e,n),O=j==null?void 0:j.onClick,I=function(P){p&&h&&f(e,P);for(var B=arguments.length,L=new Array(B>1?B-1:0),k=1;k<B;k++)L[k-1]=arguments[k];O==null||O.apply(void 0,[P].concat(L))},R;typeof b=="string"?R=b:typeof b=="function"&&(R=b(e,n,r));var M=Zg(l);return se(se({},a),{},{columnsKey:M,nestExpandable:C,expanded:$,hasNestChildren:w,record:e,onTriggerExpand:E,rowSupportExpand:x,expandable:h,rowProps:se(se({},j),{},{className:ue(R,j==null?void 0:j.className),onClick:I})})}function gN(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,l=e.className,c=e.expanded,u=e.colSpan,d=e.isEmpty,f=e.stickyOffset,v=f===void 0?0:f,g=ia(Sa,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=g.scrollbarSize,b=g.fixHeader,C=g.fixColumn,x=g.componentWidth,h=g.horizonScroll,$=n;return(d?h&&x:C)&&($=i.createElement("div",{style:{width:x-v-(b&&!d?p:0),position:"sticky",left:v,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},$)),i.createElement(r,{className:l,style:{display:c?null:"none"}},i.createElement(cu,{component:a,prefixCls:t,colSpan:u},$))}function YJ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,l=e.expandable,c="".concat(t,"-row-expand-icon");if(!l)return i.createElement("span",{className:ue(c,"".concat(t,"-row-spaced"))});var u=function(f){r(n,f),f.stopPropagation()};return i.createElement("span",{className:ue(c,ne(ne({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function QJ(e,t,n){var r=[];function a(l){(l||[]).forEach(function(c,u){r.push(t(c,u)),a(c[n])})}return a(e),r}function pN(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function hN(e,t,n,r,a){var l,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,d=e.record,f=e.prefixCls,v=e.columnsKey,g=e.fixedInfoList,p=e.expandIconColumnIndex,b=e.nestExpandable,C=e.indentSize,x=e.expandIcon,h=e.expanded,$=e.hasNestChildren,w=e.onTriggerExpand,E=e.expandable,j=e.expandedKeys,O=v[n],I=g[n],R;n===(p||0)&&b&&(R=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(C*r,"px")},className:"".concat(f,"-row-indent indent-level-").concat(r)}),x({prefixCls:f,expanded:h,expandable:$,record:d,onExpand:w})));var M=((l=t.onCell)===null||l===void 0?void 0:l.call(t,d,a))||{};if(u){var N=M.rowSpan,P=N===void 0?1:N;if(E&&P&&n<u){for(var B=P,L=a;L<a+P;L+=1){var k=c[L];j.has(k)&&(B+=1)}M.rowSpan=B}}return{key:O,fixedInfo:I,appendCellNode:R,additionalCellProps:M}}function ZJ(e){var t=e.className,n=e.style,r=e.record,a=e.index,l=e.renderIndex,c=e.rowKey,u=e.rowKeys,d=e.indent,f=d===void 0?0:d,v=e.rowComponent,g=e.cellComponent,p=e.scopeCellComponent,b=e.expandedRowInfo,C=vN(r,c,a,f),x=C.prefixCls,h=C.flattenColumns,$=C.expandedRowClassName,w=C.expandedRowRender,E=C.rowProps,j=C.expanded,O=C.rowSupportExpand,I=i.useRef(!1);I.current||(I.current=j);var R=pN($,r,a,f),M=i.createElement(v,be({},E,{"data-row-key":c,className:ue(t,"".concat(x,"-row"),"".concat(x,"-row-level-").concat(f),E==null?void 0:E.className,ne({},R,f>=1)),style:se(se({},n),E==null?void 0:E.style)}),h.map(function(B,L){var k=B.render,D=B.dataIndex,H=B.className,z=hN(C,B,L,f,a,u,b==null?void 0:b.offset),_=z.key,F=z.fixedInfo,W=z.appendCellNode,q=z.additionalCellProps;return i.createElement(cu,be({className:H,ellipsis:B.ellipsis,align:B.align,scope:B.rowScope,component:B.rowScope?p:g,prefixCls:x,key:_,record:r,index:a,renderIndex:l,dataIndex:D,render:k,shouldCellUpdate:B.shouldCellUpdate},F,{appendNode:W,additionalProps:q}))})),N;if(O&&(I.current||j)){var P=w(r,a,f+1,j);N=i.createElement(gN,{expanded:j,className:ue("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(f+1),R),prefixCls:x,component:v,cellComponent:g,colSpan:b?b.colSpan:h.length,stickyOffset:b==null?void 0:b.sticky,isEmpty:!1},P)}return i.createElement(i.Fragment,null,M,N)}const JJ=su(ZJ);function eee(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,l=i.useRef();return nn(function(){l.current&&n(t,l.current.offsetWidth)},[]),i.createElement(va,{data:t},i.createElement("th",{ref:l,className:"".concat(r,"-measure-cell")},i.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function tee(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,l=i.useRef(null),c=ia(Sa,["measureRowRender"]),u=c.measureRowRender,d=i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:l,tabIndex:-1},i.createElement(va.Collection,{onBatchResize:function(v){Yc(l.current)&&v.forEach(function(g){var p=g.data,b=g.size;r(p,b.offsetWidth)})}},n.map(function(f){var v=a.find(function(b){return b.key===f}),g=v==null?void 0:v.title,p=i.isValidElement(g)?i.cloneElement(g,{ref:null}):g;return i.createElement(eee,{prefixCls:t,key:f,columnKey:f,onColumnResize:r,title:p})})));return u?u(d):d}function nee(e){var t=e.data,n=e.measureColumnWidth,r=ia(Sa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,l=r.getComponent,c=r.onColumnResize,u=r.flattenColumns,d=r.getRowKey,f=r.expandedKeys,v=r.childrenColumnName,g=r.emptyNode,p=r.expandedRowOffset,b=p===void 0?0:p,C=r.colWidths,x=mN(t,v,f,d),h=i.useMemo(function(){return x.map(function(N){return N.rowKey})},[x]),$=i.useRef({renderWithProps:!1}),w=i.useMemo(function(){for(var N=u.length-b,P=0,B=0;B<b;B+=1)P+=C[B]||0;return{offset:b,colSpan:N,sticky:P}},[u.length,b,C]),E=l(["body","wrapper"],"tbody"),j=l(["body","row"],"tr"),O=l(["body","cell"],"td"),I=l(["body","cell"],"th"),R;t.length?R=x.map(function(N,P){var B=N.record,L=N.indent,k=N.index,D=N.rowKey;return i.createElement(JJ,{key:D,rowKey:D,rowKeys:h,record:B,index:P,renderIndex:k,rowComponent:j,cellComponent:O,scopeCellComponent:I,indent:L,expandedRowInfo:w})}):R=i.createElement(gN,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:j,cellComponent:O,colSpan:u.length,isEmpty:!0},g);var M=Zg(u);return i.createElement(cN.Provider,{value:$.current},i.createElement(E,{className:"".concat(a,"-tbody")},n&&i.createElement(tee,{prefixCls:a,columnsKey:M,onColumnResize:c,columns:u}),R))}const ree=su(nee);var aee=["expandable"],Id="RC_TABLE_INTERNAL_COL_DEFINE";function oee(e){var t=e.expandable,n=Lt(e,aee),r;return"expandable"in e?r=se(se({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var iee=["columnType"];function bN(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=ia(Sa,["tableLayout"]),l=a.tableLayout,c=[],u=r||n.length,d=!1,f=u-1;f>=0;f-=1){var v=t[f],g=n&&n[f],p=void 0,b=void 0;if(g&&(p=g[Id],l==="auto"&&(b=g.minWidth)),v||b||p||d){var C=p||{};C.columnType;var x=Lt(C,iee);c.unshift(i.createElement("col",be({key:f,style:{width:v,minWidth:b}},x))),d=!0}}return c.length>0?i.createElement("colgroup",null,c):null}var lee=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function see(e,t){return i.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var a=e[r];if(a!==void 0)n[r]=a;else return null}return n},[e.join("_"),t])}var cee=i.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,l=e.flattenColumns,c=e.colWidths,u=e.colGroup,d=e.columCount,f=e.stickyOffsets,v=e.direction,g=e.fixHeader,p=e.stickyTopOffset,b=e.stickyBottomOffset,C=e.stickyClassName,x=e.scrollX,h=e.tableLayout,$=h===void 0?"fixed":h,w=e.onScroll,E=e.children,j=Lt(e,lee),O=ia(Sa,["prefixCls","scrollbarSize","isSticky","getComponent"]),I=O.prefixCls,R=O.scrollbarSize,M=O.isSticky,N=O.getComponent,P=N(["header","table"],"table"),B=M&&!g?0:R,L=i.useRef(null),k=i.useCallback(function(V){Pd(t,V),Pd(L,V)},[]);i.useEffect(function(){function V(K){var U=K,J=U.currentTarget,Q=U.deltaX;Q&&(w({currentTarget:J,scrollLeft:J.scrollLeft+Q}),K.preventDefault())}var G=L.current;return G==null||G.addEventListener("wheel",V,{passive:!1}),function(){G==null||G.removeEventListener("wheel",V)}},[]);var D=l[l.length-1],H={fixed:D?D.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(I,"-cell-scrollbar")}}},z=i.useMemo(function(){return B?[].concat(Ne(a),[H]):a},[B,a]),_=i.useMemo(function(){return B?[].concat(Ne(l),[H]):l},[B,l]),F=i.useMemo(function(){var V=f.right,G=f.left;return se(se({},f),{},{left:v==="rtl"?[].concat(Ne(G.map(function(K){return K+B})),[0]):G,right:v==="rtl"?V:[].concat(Ne(V.map(function(K){return K+B})),[0]),isSticky:M})},[B,f,M]),W=see(c,d),q=i.useMemo(function(){var V=!W||!W.length||W.every(function(G){return!G});return r||V},[r,W]);return i.createElement("div",{style:se({overflow:"hidden"},M?{top:p,bottom:b}:{}),ref:k,className:ue(n,ne({},C,!!C))},i.createElement(P,{style:{tableLayout:$,minWidth:"100%",width:x}},q?u:i.createElement(bN,{colWidths:[].concat(Ne(W),[B]),columCount:d+1,columns:_}),E(se(se({},j),{},{stickyOffsets:F,columns:z,flattenColumns:_}))))});const i4=i.memo(cee);var uee=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,l=t.rowComponent,c=t.cellComponent,u=t.onHeaderRow,d=t.index,f=ia(Sa,["prefixCls","direction"]),v=f.prefixCls,g=f.direction,p;u&&(p=u(n.map(function(C){return C.column}),d));var b=Zg(n.map(function(C){return C.column}));return i.createElement(l,p,n.map(function(C,x){var h=C.column,$=IC(C.colStart,C.colEnd,a,r,g),w;return h&&h.onHeaderCell&&(w=C.column.onHeaderCell(h)),i.createElement(cu,be({},C,{scope:h.title?C.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:c,prefixCls:v,key:b[x]},$,{additionalProps:w,rowType:"header"}))}))};function dee(e){var t=[];function n(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[d]=t[d]||[];var f=u,v=c.filter(Boolean).map(function(g){var p={key:g.key,className:g.className||"",children:g.title,column:g,colStart:f},b=1,C=g.children;return C&&C.length>0&&(b=n(C,f,d+1).reduce(function(x,h){return x+h},0),p.hasSubColumns=!0),"colSpan"in g&&(b=g.colSpan),"rowSpan"in g&&(p.rowSpan=g.rowSpan),p.colSpan=b,p.colEnd=p.colStart+b-1,t[d].push(p),f+=b,b});return v}n(e,0);for(var r=t.length,a=function(u){t[u].forEach(function(d){!("rowSpan"in d)&&!d.hasSubColumns&&(d.rowSpan=r-u)})},l=0;l<r;l+=1)a(l);return t}var fee=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,l=t.onHeaderRow,c=ia(Sa,["prefixCls","getComponent"]),u=c.prefixCls,d=c.getComponent,f=i.useMemo(function(){return dee(r)},[r]),v=d(["header","wrapper"],"thead"),g=d(["header","row"],"tr"),p=d(["header","cell"],"th");return i.createElement(v,{className:"".concat(u,"-thead")},f.map(function(b,C){var x=i.createElement(uee,{key:C,flattenColumns:a,cells:b,stickyOffsets:n,rowComponent:g,cellComponent:p,onHeaderRow:l,index:C});return x}))};const l4=su(fee);function s4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function mee(e,t,n){return i.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var b=s4(t,p.width);b?r+=b:a+=1});var l=Math.max(t,n),c=Math.max(l-r,a),u=a,d=c/a,f=0,v=e.map(function(p){var b=se({},p),C=s4(t,b.width);if(C)b.width=C;else{var x=Math.floor(d);b.width=u===1?c:x,c-=x,u-=1}return f+=b.width,b});if(f<l){var g=l/f;c=l,v.forEach(function(p,b){var C=Math.floor(p.width*g);p.width=b===v.length-1?c:C,c-=C})}return[v,Math.max(f,l)]}return[e,t]},[e,t,n])}var vee=["children"],gee=["fixed"];function NC(e){return Yr(e).filter(function(t){return i.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,l=Lt(r,vee),c=se({key:n},l);return a&&(c.children=NC(a)),c})}function yN(e){return e.filter(function(t){return t&&Et(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?se(se({},t),{},{children:yN(n)}):t})}function Wy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Et(n)==="object"}).reduce(function(n,r,a){var l=r.fixed,c=l===!0?"left":l,u="".concat(t,"-").concat(a),d=r.children;return d&&d.length>0?[].concat(Ne(n),Ne(Wy(d,u).map(function(f){var v;return se(se({},f),{},{fixed:(v=f.fixed)!==null&&v!==void 0?v:c})}))):[].concat(Ne(n),[se(se({key:u},r),{},{fixed:c})])},[])}function pee(e){return e.map(function(t){var n=t.fixed,r=Lt(t,gee),a=n;return n==="left"?a="right":n==="right"&&(a="left"),se({fixed:a},r)})}function hee(e,t){var n=e.prefixCls,r=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,v=e.expandIcon,g=e.rowExpandable,p=e.expandIconColumnIndex,b=e.expandedRowOffset,C=b===void 0?0:b,x=e.direction,h=e.expandRowByClick,$=e.columnWidth,w=e.fixed,E=e.scrollWidth,j=e.clientWidth,O=i.useMemo(function(){var D=r||NC(a)||[];return yN(D.slice())},[r,a]),I=i.useMemo(function(){if(l){var D=O.slice();if(!D.includes(ll)){var H=p||0,z=H===0&&w==="right"?O.length:H;z>=0&&D.splice(z,0,ll)}var _=D.indexOf(ll);D=D.filter(function(V,G){return V!==ll||G===_});var F=O[_],W;w?W=w:W=F?F.fixed:null;var q=ne(ne(ne(ne(ne(ne({},Id,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",W),"className","".concat(n,"-row-expand-icon-cell")),"width",$),"render",function(G,K,U){var J=d(K,U),Q=c.has(J),te=g?g(K):!0,Y=v({prefixCls:n,expanded:Q,expandable:te,record:K,onExpand:f});return h?i.createElement("span",{onClick:function(re){return re.stopPropagation()}},Y):Y});return D.map(function(V,G){var K=V===ll?q:V;return G<C?se(se({},K),{},{fixed:K.fixed||"left"}):K})}return O.filter(function(V){return V!==ll})},[l,O,d,c,v,x,C]),R=i.useMemo(function(){var D=I;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,I,x]),M=i.useMemo(function(){return x==="rtl"?pee(Wy(R)):Wy(R)},[R,x,E]),N=i.useMemo(function(){for(var D=-1,H=M.length-1;H>=0;H-=1){var z=M[H].fixed;if(z==="left"||z===!0){D=H;break}}if(D>=0)for(var _=0;_<=D;_+=1){var F=M[_].fixed;if(F!=="left"&&F!==!0)return!0}var W=M.findIndex(function(G){var K=G.fixed;return K==="right"});if(W>=0)for(var q=W;q<M.length;q+=1){var V=M[q].fixed;if(V!=="right")return!0}return!1},[M]),P=mee(M,E,j),B=fe(P,2),L=B[0],k=B[1];return[R,L,k,N]}function bee(e,t,n){var r=oee(e),a=r.expandIcon,l=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,f=r.onExpand,v=r.onExpandedRowsChange,g=r.childrenColumnName,p=a||YJ,b=g||"children",C=i.useMemo(function(){return d?"row":e.expandable&&e.internalHooks===xf&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(O){return O&&Et(O)==="object"&&O[b]})?"nest":!1},[!!d,t]),x=i.useState(function(){return c||(u?QJ(t,n,b):[])}),h=fe(x,2),$=h[0],w=h[1],E=i.useMemo(function(){return new Set(l||$||[])},[l,$]),j=i.useCallback(function(O){var I=n(O,t.indexOf(O)),R,M=E.has(I);M?(E.delete(I),R=Ne(E)):R=[].concat(Ne(E),[I]),w(R),f&&f(!M,O),v&&v(R)},[n,E,t,f,v]);return[r,C,E,p,b,j]}function yee(e,t,n){var r=e.map(function(a,l){return IC(l,l,e,t,n)});return ys(function(){return r},[r],function(a,l){return!jo(a,l)})}function Cee(e){var t=i.useRef(e),n=i.useState({}),r=fe(n,2),a=r[1],l=i.useRef(null),c=i.useRef([]);function u(d){c.current.push(d);var f=Promise.resolve();l.current=f,f.then(function(){if(l.current===f){var v=c.current,g=t.current;c.current=[],v.forEach(function(p){t.current=p(t.current)}),l.current=null,g!==t.current&&a({})}})}return i.useEffect(function(){return function(){l.current=null}},[]),[t.current,u]}function See(e){var t=i.useRef(null),n=i.useRef();function r(){window.clearTimeout(n.current)}function a(c){t.current=c,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function l(){return t.current}return i.useEffect(function(){return r},[]),[a,l]}function xee(){var e=i.useState(-1),t=fe(e,2),n=t[0],r=t[1],a=i.useState(-1),l=fe(a,2),c=l[0],u=l[1],d=i.useCallback(function(f,v){r(f),u(v)},[]);return[n,c,d]}var c4=oa()?window:null;function $ee(e,t){var n=Et(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,l=n.offsetSummary,c=l===void 0?0:l,u=n.offsetScroll,d=u===void 0?0:u,f=n.getContainer,v=f===void 0?function(){return c4}:f,g=v()||c4,p=!!e;return i.useMemo(function(){return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:d,container:g}},[p,d,a,c,t,g])}function wee(e,t,n){var r=i.useMemo(function(){var a=t.length,l=function(f,v,g){for(var p=[],b=0,C=f;C!==v;C+=g)p.push(b),t[C].fixed&&(b+=e[C]||0);return p},c=l(0,a,1),u=l(a-1,-1,-1).reverse();return n==="rtl"?{left:u,right:c}:{left:c,right:u}},[e,t,n]);return r}function u4(e){var t=e.className,n=e.children;return i.createElement("div",{className:t},n)}function d4(e){var t=tf(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var Eee=function(t,n){var r,a,l=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,d=t.container,f=t.direction,v=ia(Sa,"prefixCls"),g=((r=l.current)===null||r===void 0?void 0:r.scrollWidth)||0,p=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,b=g&&p*(p/g),C=i.useRef(),x=Cee({scrollLeft:0,isHiddenScrollBar:!0}),h=fe(x,2),$=h[0],w=h[1],E=i.useRef({delta:0,x:0}),j=i.useState(!1),O=fe(j,2),I=O[0],R=O[1],M=i.useRef(null);i.useEffect(function(){return function(){Yt.cancel(M.current)}},[]);var N=function(){R(!1)},P=function(H){H.persist(),E.current.delta=H.pageX-$.scrollLeft,E.current.x=0,R(!0),H.preventDefault()},B=function(H){var z,_=H||((z=window)===null||z===void 0?void 0:z.event),F=_.buttons;if(!I||F===0){I&&R(!1);return}var W=E.current.x+H.pageX-E.current.x-E.current.delta,q=f==="rtl";W=Math.max(q?b-p:0,Math.min(q?0:p-b,W));var V=!q||Math.abs(W)+Math.abs(b)<p;V&&(c({scrollLeft:W/p*(g+2)}),E.current.x=H.pageX)},L=function(){Yt.cancel(M.current),M.current=Yt(function(){if(l.current){var H=d4(l.current).top,z=H+l.current.offsetHeight,_=d===window?document.documentElement.scrollTop+window.innerHeight:d4(d).top+d.clientHeight;w(function(F){return se(se({},F),{},{isHiddenScrollBar:z-Hw()<=_||H>=_-u})})}})},k=function(H){w(function(z){return se(se({},z),{},{scrollLeft:g?H/g*p:0})})};return i.useImperativeHandle(n,function(){return{setScrollLeft:k,checkScrollBarVisible:L}}),i.useEffect(function(){var D=KO(document.body,"mouseup",N,!1),H=KO(document.body,"mousemove",B,!1);return L(),function(){D.remove(),H.remove()}},[b,I]),i.useEffect(function(){if(l.current){for(var D=[],H=tf(l.current);H;)D.push(H),H=H.parentElement;return D.forEach(function(z){return z.addEventListener("scroll",L,!1)}),window.addEventListener("resize",L,!1),window.addEventListener("scroll",L,!1),d.addEventListener("scroll",L,!1),function(){D.forEach(function(z){return z.removeEventListener("scroll",L)}),window.removeEventListener("resize",L),window.removeEventListener("scroll",L),d.removeEventListener("scroll",L)}}},[d]),i.useEffect(function(){$.isHiddenScrollBar||w(function(D){var H=l.current;return H?se(se({},D),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):D})},[$.isHiddenScrollBar]),g<=p||!b||$.isHiddenScrollBar?null:i.createElement("div",{style:{height:Hw(),width:p,bottom:u},className:"".concat(v,"-sticky-scroll")},i.createElement("div",{onMouseDown:P,ref:C,className:ue("".concat(v,"-sticky-scroll-bar"),ne({},"".concat(v,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat($.scrollLeft,"px, 0, 0)")}}))};const Oee=i.forwardRef(Eee);var CN="rc-table",Ree=[],jee={};function Iee(){return"No Data"}function Nee(e,t){var n=se({rowKey:"key",prefixCls:CN,emptyText:Iee},e),r=n.prefixCls,a=n.className,l=n.rowClassName,c=n.style,u=n.data,d=n.rowKey,f=n.scroll,v=n.tableLayout,g=n.direction,p=n.title,b=n.footer,C=n.summary,x=n.caption,h=n.id,$=n.showHeader,w=n.components,E=n.emptyText,j=n.onRow,O=n.onHeaderRow,I=n.measureRowRender,R=n.onScroll,M=n.internalHooks,N=n.transformColumns,P=n.internalRefs,B=n.tailor,L=n.getContainerWidth,k=n.sticky,D=n.rowHoverable,H=D===void 0?!0:D,z=u||Ree,_=!!z.length,F=M===xf,W=i.useCallback(function(gt,It){return $a(w,gt)||It},[w]),q=i.useMemo(function(){return typeof d=="function"?d:function(gt){var It=gt&>[d];return It}},[d]),V=W(["body"]),G=xee(),K=fe(G,3),U=K[0],J=K[1],Q=K[2],te=bee(n,z,q),Y=fe(te,6),ae=Y[0],re=Y[1],Z=Y[2],X=Y[3],oe=Y[4],le=Y[5],de=f==null?void 0:f.x,ce=i.useState(0),ge=fe(ce,2),he=ge[0],Oe=ge[1],je=hee(se(se(se({},n),ae),{},{expandable:!!ae.expandedRowRender,columnTitle:ae.columnTitle,expandedKeys:Z,getRowKey:q,onTriggerExpand:le,expandIcon:X,expandIconColumnIndex:ae.expandIconColumnIndex,direction:g,scrollWidth:F&&B&&typeof de=="number"?de:null,clientWidth:he}),F?N:null),pe=fe(je,4),we=pe[0],Se=pe[1],Ce=pe[2],De=pe[3],Ae=Ce??de,Qe=i.useMemo(function(){return{columns:we,flattenColumns:Se}},[we,Se]),Ke=i.useRef(),Fe=i.useRef(),Ge=i.useRef(),Te=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Ke.current,scrollTo:function(It){var fn;if(Ge.current instanceof HTMLElement){var zn=It.index,Zn=It.top,Kn=It.key;if(AJ(Zn)){var Ur;(Ur=Ge.current)===null||Ur===void 0||Ur.scrollTo({top:Zn})}else{var Jr,zr=Kn??q(z[zn]);(Jr=Ge.current.querySelector('[data-row-key="'.concat(zr,'"]')))===null||Jr===void 0||Jr.scrollIntoView()}}else(fn=Ge.current)!==null&&fn!==void 0&&fn.scrollTo&&Ge.current.scrollTo(It)}}});var Ee=i.useRef(),_e=i.useState(!1),Re=fe(_e,2),Pe=Re[0],ye=Re[1],$e=i.useState(!1),Me=fe($e,2),Le=Me[0],tt=Me[1],yt=i.useState(new Map),We=fe(yt,2),nt=We[0],dt=We[1],at=Zg(Se),pt=at.map(function(gt){return nt.get(gt)}),zt=i.useMemo(function(){return pt},[pt.join("_")]),Ot=wee(zt,Se,g),ct=f&&Vy(f.y),$t=f&&Vy(Ae)||!!ae.fixed,St=$t&&Se.some(function(gt){var It=gt.fixed;return It}),et=i.useRef(),Ve=$ee(k,r),Ue=Ve.isSticky,mt=Ve.offsetHeader,Tt=Ve.offsetSummary,Nt=Ve.offsetScroll,Vt=Ve.stickyClassName,ft=Ve.container,lt=i.useMemo(function(){return C==null?void 0:C(z)},[C,z]),At=(ct||Ue)&&i.isValidElement(lt)&<.type===Jg&<.props.fixed,Ut,rn,Qt;ct&&(rn={overflowY:_?"scroll":"auto",maxHeight:f.y}),$t&&(Ut={overflowX:"auto"},ct||(rn={overflowY:"hidden"}),Qt={width:Ae===!0?"auto":Ae,minWidth:"100%"});var pn=i.useCallback(function(gt,It){dt(function(fn){if(fn.get(gt)!==It){var zn=new Map(fn);return zn.set(gt,It),zn}return fn})},[]),qt=See(),un=fe(qt,2),st=un[0],xt=un[1];function ht(gt,It){It&&(typeof It=="function"?It(gt):It.scrollLeft!==gt&&(It.scrollLeft=gt,It.scrollLeft!==gt&&setTimeout(function(){It.scrollLeft=gt},0)))}var Ye=Xt(function(gt){var It=gt.currentTarget,fn=gt.scrollLeft,zn=g==="rtl",Zn=typeof fn=="number"?fn:It.scrollLeft,Kn=It||jee;if(!xt()||xt()===Kn){var Ur;st(Kn),ht(Zn,Fe.current),ht(Zn,Ge.current),ht(Zn,Ee.current),ht(Zn,(Ur=et.current)===null||Ur===void 0?void 0:Ur.setScrollLeft)}var Jr=It||Fe.current;if(Jr){var zr=F&&B&&typeof Ae=="number"?Ae:Jr.scrollWidth,sa=Jr.clientWidth;if(zr===sa){ye(!1),tt(!1);return}zn?(ye(-Zn<zr-sa),tt(-Zn>0)):(ye(Zn>0),tt(Zn<zr-sa))}}),Ze=Xt(function(gt){Ye(gt),R==null||R(gt)}),ut=function(){if($t&&Ge.current){var It;Ye({currentTarget:tf(Ge.current),scrollLeft:(It=Ge.current)===null||It===void 0?void 0:It.scrollLeft})}else ye(!1),tt(!1)},Dt=function(It){var fn,zn=It.width;(fn=et.current)===null||fn===void 0||fn.checkScrollBarVisible();var Zn=Ke.current?Ke.current.offsetWidth:zn;F&&L&&Ke.current&&(Zn=L(Ke.current,Zn)||Zn),Zn!==he&&(ut(),Oe(Zn))},Kt=i.useRef(!1);i.useEffect(function(){Kt.current&&ut()},[$t,u,we.length]),i.useEffect(function(){Kt.current=!0},[]);var vt=i.useState(0),Mt=fe(vt,2),Ft=Mt[0],$n=Mt[1],_n=i.useState(!0),Pn=fe(_n,2),Wn=Pn[0],jn=Pn[1];nn(function(){(!B||!F)&&(Ge.current instanceof Element?$n(uy(Ge.current).width):$n(uy(Te.current).width)),jn(Sy("position","sticky"))},[]),i.useEffect(function(){F&&P&&(P.body.current=Ge.current)});var Bn=i.useCallback(function(gt){return i.createElement(i.Fragment,null,i.createElement(l4,gt),At==="top"&&i.createElement(Ym,gt,lt))},[At,lt]),$r=i.useCallback(function(gt){return i.createElement(Ym,gt,lt)},[lt]),Pr=W(["table"],"table"),br=i.useMemo(function(){return v||(St?Ae==="max-content"?"auto":"fixed":ct||Ue||Se.some(function(gt){var It=gt.ellipsis;return It})?"fixed":"auto")},[ct,St,Se,v,Ue]),Sn,Bt={colWidths:zt,columCount:Se.length,stickyOffsets:Ot,onHeaderRow:O,fixHeader:ct,scroll:f},kt=i.useMemo(function(){return _?null:typeof E=="function"?E():E},[_,E]),an=i.createElement(ree,{data:z,measureColumnWidth:ct||$t||Ue}),Pt=i.createElement(bN,{colWidths:Se.map(function(gt){var It=gt.width;return It}),columns:Se}),_t=x!=null?i.createElement("caption",{className:"".concat(r,"-caption")},x):void 0,vn=Nr(n,{data:!0}),In=Nr(n,{aria:!0});if(ct||Ue){var Yn;typeof V=="function"?(Yn=V(z,{scrollbarSize:Ft,ref:Ge,onScroll:Ye}),Bt.colWidths=Se.map(function(gt,It){var fn=gt.width,zn=It===Se.length-1?fn-Ft:fn;return typeof zn=="number"&&!Number.isNaN(zn)?zn:0})):Yn=i.createElement("div",{style:se(se({},Ut),rn),onScroll:Ze,ref:Ge,className:ue("".concat(r,"-body"))},i.createElement(Pr,be({style:se(se({},Qt),{},{tableLayout:br})},In),_t,Pt,an,!At&<&&i.createElement(Ym,{stickyOffsets:Ot,flattenColumns:Se},lt)));var wr=se(se(se({noData:!z.length},Bt),Qe),{},{direction:g,stickyClassName:Vt,scrollX:Ae,tableLayout:br,onScroll:Ye});Sn=i.createElement(i.Fragment,null,$!==!1&&i.createElement(i4,be({},wr,{stickyTopOffset:mt,className:"".concat(r,"-header"),ref:Fe,colGroup:Pt}),Bn),Yn,At&&At!=="top"&&i.createElement(i4,be({},wr,{stickyBottomOffset:Tt,className:"".concat(r,"-summary"),ref:Ee,colGroup:Pt}),$r),Ue&&Ge.current&&Ge.current instanceof Element&&i.createElement(Oee,{ref:et,offsetScroll:Nt,scrollBodyRef:Ge,onScroll:Ye,container:ft,direction:g}))}else Sn=i.createElement("div",{style:se(se({},Ut),rn),className:ue("".concat(r,"-content")),onScroll:Ye,ref:Ge},i.createElement(Pr,be({style:se(se({},Qt),{},{tableLayout:br})},In),_t,Pt,$!==!1&&i.createElement(l4,be({},Bt,Qe)),an,lt&&i.createElement(Ym,{stickyOffsets:Ot,flattenColumns:Se},lt)));var Qn=i.createElement("div",be({className:ue(r,a,ne(ne(ne(ne(ne(ne(ne(ne(ne(ne({},"".concat(r,"-rtl"),g==="rtl"),"".concat(r,"-ping-left"),Pe),"".concat(r,"-ping-right"),Le),"".concat(r,"-layout-fixed"),v==="fixed"),"".concat(r,"-fixed-header"),ct),"".concat(r,"-fixed-column"),St),"".concat(r,"-fixed-column-gapped"),St&&De),"".concat(r,"-scroll-horizontal"),$t),"".concat(r,"-has-fix-left"),Se[0]&&Se[0].fixed),"".concat(r,"-has-fix-right"),Se[Se.length-1]&&Se[Se.length-1].fixed==="right")),style:c,id:h,ref:Ke},vn),p&&i.createElement(u4,{className:"".concat(r,"-title")},p(z)),i.createElement("div",{ref:Te,className:"".concat(r,"-container")},Sn),b&&i.createElement(u4,{className:"".concat(r,"-footer")},b(z)));$t&&(Qn=i.createElement(va,{onResize:Dt},Qn));var Rr=yee(Se,Ot,g),cn=i.useMemo(function(){return{scrollX:Ae,prefixCls:r,getComponent:W,scrollbarSize:Ft,direction:g,fixedInfoList:Rr,isSticky:Ue,supportSticky:Wn,componentWidth:he,fixHeader:ct,fixColumn:St,horizonScroll:$t,tableLayout:br,rowClassName:l,expandedRowClassName:ae.expandedRowClassName,expandIcon:X,expandableType:re,expandRowByClick:ae.expandRowByClick,expandedRowRender:ae.expandedRowRender,expandedRowOffset:ae.expandedRowOffset,onTriggerExpand:le,expandIconColumnIndex:ae.expandIconColumnIndex,indentSize:ae.indentSize,allColumnsFixedLeft:Se.every(function(gt){return gt.fixed==="left"}),emptyNode:kt,columns:we,flattenColumns:Se,onColumnResize:pn,colWidths:zt,hoverStartRow:U,hoverEndRow:J,onHover:Q,rowExpandable:ae.rowExpandable,onRow:j,getRowKey:q,expandedKeys:Z,childrenColumnName:oe,rowHoverable:H,measureRowRender:I}},[Ae,r,W,Ft,g,Rr,Ue,Wn,he,ct,St,$t,br,l,ae.expandedRowClassName,X,re,ae.expandRowByClick,ae.expandedRowRender,ae.expandedRowOffset,le,ae.expandIconColumnIndex,ae.indentSize,kt,we,Se,pn,zt,U,J,Q,ae.rowExpandable,j,q,Z,oe,H,I]);return i.createElement(Sa.Provider,{value:cn},Qn)}var Mee=i.forwardRef(Nee);function SN(e){return sN(Mee,e)}var uu=SN();uu.EXPAND_COLUMN=ll;uu.INTERNAL_HOOKS=xf;uu.Column=GJ;uu.ColumnGroup=XJ;uu.Summary=dN;var MC=RC(null),xN=RC(null);function Tee(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function Pee(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,l=e.index,c=e.component,u=e.renderIndex,d=e.record,f=e.style,v=e.className,g=e.inverse,p=e.getHeight,b=n.render,C=n.dataIndex,x=n.className,h=n.width,$=ia(xN,["columnsOffset"]),w=$.columnsOffset,E=hN(t,n,r,a,l),j=E.key,O=E.fixedInfo,I=E.appendCellNode,R=E.additionalCellProps,M=R.style,N=R.colSpan,P=N===void 0?1:N,B=R.rowSpan,L=B===void 0?1:B,k=r-1,D=Tee(k,P,w),H=P>1?h-D:0,z=se(se(se({},M),f),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:H,pointerEvents:"auto"}),_=i.useMemo(function(){return g?L<=1:P===0||L===0||L>1},[L,P,g]);_?z.visibility="hidden":g&&(z.height=p==null?void 0:p(L));var F=_?function(){return null}:b,W={};return(L===0||P===0)&&(W.rowSpan=1,W.colSpan=1),i.createElement(cu,be({className:ue(x,v),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:c,prefixCls:t.prefixCls,key:j,record:d,index:l,renderIndex:u,dataIndex:C,render:F,shouldCellUpdate:n.shouldCellUpdate},O,{appendNode:I,additionalProps:se(se({},R),{},{style:z},W)}))}var zee=["data","index","className","rowKey","style","extra","getHeight"],Dee=i.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,l=e.rowKey,c=e.style,u=e.extra,d=e.getHeight,f=Lt(e,zee),v=n.record,g=n.indent,p=n.index,b=ia(Sa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=b.scrollX,x=b.flattenColumns,h=b.prefixCls,$=b.fixColumn,w=b.componentWidth,E=ia(MC,["getComponent"]),j=E.getComponent,O=vN(v,l,r,g),I=j(["body","row"],"div"),R=j(["body","cell"],"div"),M=O.rowSupportExpand,N=O.expanded,P=O.rowProps,B=O.expandedRowRender,L=O.expandedRowClassName,k;if(M&&N){var D=B(v,r,g+1,N),H=pN(L,v,r,g),z={};$&&(z={style:ne({},"--virtual-width","".concat(w,"px"))});var _="".concat(h,"-expanded-row-cell");k=i.createElement(I,{className:ue("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(g+1),H)},i.createElement(cu,{component:R,prefixCls:h,className:ue(_,ne({},"".concat(_,"-fixed"),$)),additionalProps:z},D))}var F=se(se({},c),{},{width:C});u&&(F.position="absolute",F.pointerEvents="none");var W=i.createElement(I,be({},P,f,{"data-row-key":l,ref:M?null:t,className:ue(a,"".concat(h,"-row"),P==null?void 0:P.className,ne({},"".concat(h,"-row-extra"),u)),style:se(se({},F),P==null?void 0:P.style)}),x.map(function(q,V){return i.createElement(Pee,{key:V,component:R,rowInfo:O,column:q,colIndex:V,indent:g,index:r,renderIndex:p,record:v,inverse:u,getHeight:d})}));return M?i.createElement("div",{ref:t},W,k):W}),f4=su(Dee),_ee=i.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=ia(Sa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),l=a.flattenColumns,c=a.onColumnResize,u=a.getRowKey,d=a.expandedKeys,f=a.prefixCls,v=a.childrenColumnName,g=a.scrollX,p=a.direction,b=ia(MC),C=b.sticky,x=b.scrollY,h=b.listItemHeight,$=b.getComponent,w=b.onScroll,E=i.useRef(),j=mN(n,v,d,u),O=i.useMemo(function(){var k=0;return l.map(function(D){var H=D.width,z=D.minWidth,_=D.key,F=Math.max(H||0,z||0);return k+=F,[_,F,k]})},[l]),I=i.useMemo(function(){return O.map(function(k){return k[2]})},[O]);i.useEffect(function(){O.forEach(function(k){var D=fe(k,2),H=D[0],z=D[1];c(H,z)})},[O]),i.useImperativeHandle(t,function(){var k,D={scrollTo:function(z){var _;(_=E.current)===null||_===void 0||_.scrollTo(z)},nativeElement:(k=E.current)===null||k===void 0?void 0:k.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var z;return((z=E.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var _;(_=E.current)===null||_===void 0||_.scrollTo({left:z})}}),Object.defineProperty(D,"scrollTop",{get:function(){var z;return((z=E.current)===null||z===void 0?void 0:z.getScrollInfo().y)||0},set:function(z){var _;(_=E.current)===null||_===void 0||_.scrollTo({top:z})}}),D});var R=function(D,H){var z,_=(z=j[H])===null||z===void 0?void 0:z.record,F=D.onCell;if(F){var W,q=F(_,H);return(W=q==null?void 0:q.rowSpan)!==null&&W!==void 0?W:1}return 1},M=function(D){var H=D.start,z=D.end,_=D.getSize,F=D.offsetY;if(z<0)return null;for(var W=l.filter(function(Z){return R(Z,H)===0}),q=H,V=function(X){if(W=W.filter(function(oe){return R(oe,X)===0}),!W.length)return q=X,1},G=H;G>=0&&!V(G);G-=1);for(var K=l.filter(function(Z){return R(Z,z)!==1}),U=z,J=function(X){if(K=K.filter(function(oe){return R(oe,X)!==1}),!K.length)return U=Math.max(X-1,z),1},Q=z;Q<j.length&&!J(Q);Q+=1);for(var te=[],Y=function(X){var oe=j[X];if(!oe)return 1;l.some(function(le){return R(le,X)>1})&&te.push(X)},ae=q;ae<=U;ae+=1)Y(ae);var re=te.map(function(Z){var X=j[Z],oe=u(X.record,Z),le=function(ge){var he=Z+ge-1,Oe=u(j[he].record,he),je=_(oe,Oe);return je.bottom-je.top},de=_(oe);return i.createElement(f4,{key:Z,data:X,rowKey:oe,index:Z,style:{top:-F+de.top},extra:!0,getHeight:le})});return re},N=i.useMemo(function(){return{columnsOffset:I}},[I]),P="".concat(f,"-tbody"),B=$(["body","wrapper"]),L={};return C&&(L.position="sticky",L.bottom=0,Et(C)==="object"&&C.offsetScroll&&(L.bottom=C.offsetScroll)),i.createElement(xN.Provider,{value:N},i.createElement(Ig,{fullHeight:!1,ref:E,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:L},className:P,height:x,itemHeight:h||24,data:j,itemKey:function(D){return u(D.record)},component:B,scrollWidth:g,direction:p,onVirtualScroll:function(D){var H,z=D.x;r({currentTarget:(H=E.current)===null||H===void 0?void 0:H.nativeElement,scrollLeft:z})},onScroll:w,extraRender:M},function(k,D,H){var z=u(k.record,D);return i.createElement(f4,{data:k,rowKey:z,index:D,style:H.style})}))}),Aee=su(_ee),Bee=function(t,n){var r=n.ref,a=n.onScroll;return i.createElement(Aee,{ref:r,data:t,onScroll:a})};function kee(e,t){var n=e.data,r=e.columns,a=e.scroll,l=e.sticky,c=e.prefixCls,u=c===void 0?CN:c,d=e.className,f=e.listItemHeight,v=e.components,g=e.onScroll,p=a||{},b=p.x,C=p.y;typeof b!="number"&&(b=1),typeof C!="number"&&(C=500);var x=Xt(function(w,E){return $a(v,w)||E}),h=Xt(g),$=i.useMemo(function(){return{sticky:l,scrollY:C,listItemHeight:f,getComponent:x,onScroll:h}},[l,C,f,x,h]);return i.createElement(MC.Provider,{value:$},i.createElement(uu,be({},e,{className:ue(d,"".concat(u,"-virtual")),scroll:se(se({},a),{},{x:b}),components:se(se({},v),{},{body:n!=null&&n.length?Bee:void 0}),columns:r,internalHooks:xf,tailor:!0,ref:t})))}var Lee=i.forwardRef(kee);function $N(e){return sN(Lee,e)}$N();const Hee=e=>null,Fee=e=>null;var TC=i.createContext(null),Vee=i.createContext({}),Wee=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,l=t.isEnd,c="".concat(n,"-indent-unit"),u=[],d=0;d<r;d+=1)u.push(i.createElement("span",{key:d,className:ue(c,ne(ne({},"".concat(c,"-start"),a[d]),"".concat(c,"-end"),l[d]))}));return i.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const Kee=i.memo(Wee);var Uee=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],m4="open",v4="close",qee="---",Xd=function(t){var n,r,a,l=t.eventKey,c=t.className,u=t.style,d=t.dragOver,f=t.dragOverGapTop,v=t.dragOverGapBottom,g=t.isLeaf,p=t.isStart,b=t.isEnd,C=t.expanded,x=t.selected,h=t.checked,$=t.halfChecked,w=t.loading,E=t.domRef,j=t.active,O=t.data,I=t.onMouseMove,R=t.selectable,M=Lt(t,Uee),N=ve.useContext(TC),P=ve.useContext(Vee),B=ve.useRef(null),L=ve.useState(!1),k=fe(L,2),D=k[0],H=k[1],z=!!(N.disabled||t.disabled||(n=P.nodeDisabled)!==null&&n!==void 0&&n.call(P,O)),_=ve.useMemo(function(){return!N.checkable||t.checkable===!1?!1:N.checkable},[N.checkable,t.checkable]),F=function(Ee){z||N.onNodeSelect(Ee,Fr(t))},W=function(Ee){z||!_||t.disableCheckbox||N.onNodeCheck(Ee,Fr(t),!h)},q=ve.useMemo(function(){return typeof R=="boolean"?R:N.selectable},[R,N.selectable]),V=function(Ee){N.onNodeClick(Ee,Fr(t)),q?F(Ee):W(Ee)},G=function(Ee){N.onNodeDoubleClick(Ee,Fr(t))},K=function(Ee){N.onNodeMouseEnter(Ee,Fr(t))},U=function(Ee){N.onNodeMouseLeave(Ee,Fr(t))},J=function(Ee){N.onNodeContextMenu(Ee,Fr(t))},Q=ve.useMemo(function(){return!!(N.draggable&&(!N.draggable.nodeDraggable||N.draggable.nodeDraggable(O)))},[N.draggable,O]),te=function(Ee){Ee.stopPropagation(),H(!0),N.onNodeDragStart(Ee,t);try{Ee.dataTransfer.setData("text/plain","")}catch{}},Y=function(Ee){Ee.preventDefault(),Ee.stopPropagation(),N.onNodeDragEnter(Ee,t)},ae=function(Ee){Ee.preventDefault(),Ee.stopPropagation(),N.onNodeDragOver(Ee,t)},re=function(Ee){Ee.stopPropagation(),N.onNodeDragLeave(Ee,t)},Z=function(Ee){Ee.stopPropagation(),H(!1),N.onNodeDragEnd(Ee,t)},X=function(Ee){Ee.preventDefault(),Ee.stopPropagation(),H(!1),N.onNodeDrop(Ee,t)},oe=function(Ee){w||N.onNodeExpand(Ee,Fr(t))},le=ve.useMemo(function(){var Te=Ta(N.keyEntities,l)||{},Ee=Te.children;return!!(Ee||[]).length},[N.keyEntities,l]),de=ve.useMemo(function(){return g===!1?!1:g||!N.loadData&&!le||N.loadData&&t.loaded&&!le},[g,N.loadData,le,t.loaded]);ve.useEffect(function(){w||typeof N.loadData=="function"&&C&&!de&&!t.loaded&&N.onNodeLoad(Fr(t))},[w,N.loadData,N.onNodeLoad,C,de,t]);var ce=ve.useMemo(function(){var Te;return(Te=N.draggable)!==null&&Te!==void 0&&Te.icon?ve.createElement("span",{className:"".concat(N.prefixCls,"-draggable-icon")},N.draggable.icon):null},[N.draggable]),ge=function(Ee){var _e=t.switcherIcon||N.switcherIcon;return typeof _e=="function"?_e(se(se({},t),{},{isLeaf:Ee})):_e},he=function(){if(de){var Ee=ge(!0);return Ee!==!1?ve.createElement("span",{className:ue("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher-noop"))},Ee):null}var _e=ge(!1);return _e!==!1?ve.createElement("span",{onClick:oe,className:ue("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher_").concat(C?m4:v4))},_e):null},Oe=ve.useMemo(function(){if(!_)return null;var Te=typeof _!="boolean"?_:null;return ve.createElement("span",{className:ue("".concat(N.prefixCls,"-checkbox"),ne(ne(ne({},"".concat(N.prefixCls,"-checkbox-checked"),h),"".concat(N.prefixCls,"-checkbox-indeterminate"),!h&&$),"".concat(N.prefixCls,"-checkbox-disabled"),z||t.disableCheckbox)),onClick:W,role:"checkbox","aria-checked":$?"mixed":h,"aria-disabled":z||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Te)},[_,h,$,z,t.disableCheckbox,t.title]),je=ve.useMemo(function(){return de?null:C?m4:v4},[de,C]),pe=ve.useMemo(function(){return ve.createElement("span",{className:ue("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__").concat(je||"docu"),ne({},"".concat(N.prefixCls,"-icon_loading"),w))})},[N.prefixCls,je,w]),we=ve.useMemo(function(){var Te=!!N.draggable,Ee=!t.disabled&&Te&&N.dragOverNodeKey===l;return Ee?N.dropIndicatorRender({dropPosition:N.dropPosition,dropLevelOffset:N.dropLevelOffset,indent:N.indent,prefixCls:N.prefixCls,direction:N.direction}):null},[N.dropPosition,N.dropLevelOffset,N.indent,N.prefixCls,N.direction,N.draggable,N.dragOverNodeKey,N.dropIndicatorRender]),Se=ve.useMemo(function(){var Te=t.title,Ee=Te===void 0?qee:Te,_e="".concat(N.prefixCls,"-node-content-wrapper"),Re;if(N.showIcon){var Pe=t.icon||N.icon;Re=Pe?ve.createElement("span",{className:ue("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__customize"))},typeof Pe=="function"?Pe(t):Pe):pe}else N.loadData&&w&&(Re=pe);var ye;return typeof Ee=="function"?ye=Ee(O):N.titleRender?ye=N.titleRender(O):ye=Ee,ve.createElement("span",{ref:B,title:typeof Ee=="string"?Ee:"",className:ue(_e,"".concat(_e,"-").concat(je||"normal"),ne({},"".concat(N.prefixCls,"-node-selected"),!z&&(x||D))),onMouseEnter:K,onMouseLeave:U,onContextMenu:J,onClick:V,onDoubleClick:G},Re,ve.createElement("span",{className:"".concat(N.prefixCls,"-title")},ye),we)},[N.prefixCls,N.showIcon,t,N.icon,pe,N.titleRender,O,je,K,U,J,V,G]),Ce=Nr(M,{aria:!0,data:!0}),De=Ta(N.keyEntities,l)||{},Ae=De.level,Qe=b[b.length-1],Ke=!z&&Q,Fe=N.draggingNodeKey===l,Ge=R!==void 0?{"aria-selected":!!R}:void 0;return ve.createElement("div",be({ref:E,role:"treeitem","aria-expanded":g?void 0:C,className:ue(c,"".concat(N.prefixCls,"-treenode"),(a={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(a,"".concat(N.prefixCls,"-treenode-disabled"),z),"".concat(N.prefixCls,"-treenode-switcher-").concat(C?"open":"close"),!g),"".concat(N.prefixCls,"-treenode-checkbox-checked"),h),"".concat(N.prefixCls,"-treenode-checkbox-indeterminate"),$),"".concat(N.prefixCls,"-treenode-selected"),x),"".concat(N.prefixCls,"-treenode-loading"),w),"".concat(N.prefixCls,"-treenode-active"),j),"".concat(N.prefixCls,"-treenode-leaf-last"),Qe),"".concat(N.prefixCls,"-treenode-draggable"),Q),"dragging",Fe),ne(ne(ne(ne(ne(ne(ne(a,"drop-target",N.dropTargetKey===l),"drop-container",N.dropContainerKey===l),"drag-over",!z&&d),"drag-over-gap-top",!z&&f),"drag-over-gap-bottom",!z&&v),"filter-node",(r=N.filterTreeNode)===null||r===void 0?void 0:r.call(N,Fr(t))),"".concat(N.prefixCls,"-treenode-leaf"),de))),style:u,draggable:Ke,onDragStart:Ke?te:void 0,onDragEnter:Q?Y:void 0,onDragOver:Q?ae:void 0,onDragLeave:Q?re:void 0,onDrop:Q?X:void 0,onDragEnd:Q?Z:void 0,onMouseMove:I},Ge,Ce),ve.createElement(Kee,{prefixCls:N.prefixCls,level:Ae,isStart:p,isEnd:b}),ce,he(),Oe,Se)};Xd.isTreeNode=1;function Ko(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function hi(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function PC(e){return e.split("-")}function Gee(e,t){var n=[],r=Ta(t,e);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var u=c.key,d=c.children;n.push(u),a(d)})}return a(r.children),n}function Xee(e){if(e.parent){var t=PC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Yee(e){var t=PC(e.pos);return Number(t[t.length-1])===0}function g4(e,t,n,r,a,l,c,u,d,f){var v,g=e.clientX,p=e.clientY,b=e.target.getBoundingClientRect(),C=b.top,x=b.height,h=(f==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-g),$=(h-12)/r,w=d.filter(function(z){var _;return(_=u[z])===null||_===void 0||(_=_.children)===null||_===void 0?void 0:_.length}),E=Ta(u,n.eventKey);if(p<C+x/2){var j=c.findIndex(function(z){return z.key===E.key}),O=j<=0?0:j-1,I=c[O].key;E=Ta(u,I)}var R=E.key,M=E,N=E.key,P=0,B=0;if(!w.includes(R))for(var L=0;L<$&&Xee(E);L+=1)E=E.parent,B+=1;var k=t.data,D=E.node,H=!0;return Yee(E)&&E.level===0&&p<C+x/2&&l({dragNode:k,dropNode:D,dropPosition:-1})&&E.key===n.eventKey?P=-1:(M.children||[]).length&&w.includes(N)?l({dragNode:k,dropNode:D,dropPosition:0})?P=0:H=!1:B===0?$>-1.5?l({dragNode:k,dropNode:D,dropPosition:1})?P=1:H=!1:l({dragNode:k,dropNode:D,dropPosition:0})?P=0:l({dragNode:k,dropNode:D,dropPosition:1})?P=1:H=!1:l({dragNode:k,dropNode:D,dropPosition:1})?P=1:H=!1,{dropPosition:P,dropLevelOffset:B,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:N,dropContainerKey:P===0?null:((v=E.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:H}}function p4(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function tb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Et(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Xn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Ky(e,t){var n=new Set;function r(a){if(!n.has(a)){var l=Ta(t,a);if(l){n.add(a);var c=l.parent,u=l.node;u.disabled||c&&r(c.key)}}}return(e||[]).forEach(function(a){r(a)}),Ne(n)}const il={},Uy="SELECT_ALL",qy="SELECT_INVERT",Gy="SELECT_NONE",h4=[],wN=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&wN(e,r[e],n)}),n),Qee=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:l,getTitleCheckboxProps:c,onChange:u,onSelect:d,onSelectAll:f,onSelectInvert:v,onSelectNone:g,onSelectMultiple:p,columnWidth:b,type:C,selections:x,fixed:h,renderCell:$,hideSelectAll:w,checkStrictly:E=!0}=t||{},{prefixCls:j,data:O,pageData:I,getRecordByKey:R,getRowKey:M,expandType:N,childrenColumnName:P,locale:B,getPopupContainer:L}=e,k=Jo(),[D,H]=z7(X=>X),[z,_]=yn(r||a||h4,{value:r}),F=i.useRef(new Map),W=i.useCallback(X=>{if(n){const oe=new Map;X.forEach(le=>{let de=R(le);!de&&F.current.has(le)&&(de=F.current.get(le)),oe.set(le,de)}),F.current=oe}},[R,n]);i.useEffect(()=>{W(z)},[z]);const q=i.useMemo(()=>wN(P,I),[P,I]),{keyEntities:V}=i.useMemo(()=>{if(E)return{keyEntities:null};let X=O;if(n){const oe=new Set(q.map((de,ce)=>M(de,ce))),le=Array.from(F.current).reduce((de,[ce,ge])=>oe.has(ce)?de:de.concat(ge),[]);X=[].concat(Ne(X),Ne(le))}return Kg(X,{externalGetKey:M,childrenPropName:P})},[O,M,E,P,n,q]),G=i.useMemo(()=>{const X=new Map;return q.forEach((oe,le)=>{const de=M(oe,le),ce=(l?l(oe):null)||{};X.set(de,ce)}),X},[q,M,l]),K=i.useCallback(X=>{const oe=M(X);let le;return G.has(oe)?le=G.get(M(X)):le=l?l(X):void 0,!!(le!=null&&le.disabled)},[G,M]),[U,J]=i.useMemo(()=>{if(E)return[z||[],[]];const{checkedKeys:X,halfCheckedKeys:oe}=Ci(z,!0,V,K);return[X||[],oe]},[z,E,V,K]),Q=i.useMemo(()=>{const X=C==="radio"?U.slice(0,1):U;return new Set(X)},[U,C]),te=i.useMemo(()=>C==="radio"?new Set:new Set(J),[J,C]);i.useEffect(()=>{t||_(h4)},[!!t]);const Y=i.useCallback((X,oe)=>{let le,de;W(X),n?(le=X,de=X.map(ce=>F.current.get(ce))):(le=[],de=[],X.forEach(ce=>{const ge=R(ce);ge!==void 0&&(le.push(ce),de.push(ge))})),_(le),u==null||u(le,de,{type:oe})},[_,R,u,n]),ae=i.useCallback((X,oe,le,de)=>{if(d){const ce=le.map(ge=>R(ge));d(R(X),oe,ce,de)}Y(le,"single")},[d,R,Y]),re=i.useMemo(()=>!x||w?null:(x===!0?[Uy,qy,Gy]:x).map(oe=>oe===Uy?{key:"all",text:B.selectionAll,onSelect(){Y(O.map((le,de)=>M(le,de)).filter(le=>{const de=G.get(le);return!(de!=null&&de.disabled)||Q.has(le)}),"all")}}:oe===qy?{key:"invert",text:B.selectInvert,onSelect(){const le=new Set(Q);I.forEach((ce,ge)=>{const he=M(ce,ge),Oe=G.get(he);Oe!=null&&Oe.disabled||(le.has(he)?le.delete(he):le.add(he))});const de=Array.from(le);v&&(k.deprecated(!1,"onSelectInvert","onChange"),v(de)),Y(de,"invert")}}:oe===Gy?{key:"none",text:B.selectNone,onSelect(){g==null||g(),Y(Array.from(Q).filter(le=>{const de=G.get(le);return de==null?void 0:de.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:(...le)=>{var de,ce;(ce=oe.onSelect)===null||ce===void 0||(de=ce).call.apply(de,[oe].concat(le)),H(null)}})),[x,Q,I,M,v,Y]);return[i.useCallback(X=>{var oe;if(!t)return X.filter(Te=>Te!==il);let le=Ne(X);const de=new Set(Q),ce=q.map(M).filter(Te=>!G.get(Te).disabled),ge=ce.every(Te=>de.has(Te)),he=ce.some(Te=>de.has(Te)),Oe=()=>{const Te=[];ge?ce.forEach(_e=>{de.delete(_e),Te.push(_e)}):ce.forEach(_e=>{de.has(_e)||(de.add(_e),Te.push(_e))});const Ee=Array.from(de);f==null||f(!ge,Ee.map(_e=>R(_e)),Te.map(_e=>R(_e))),Y(Ee,"all"),H(null)};let je,pe;if(C!=="radio"){let Te;if(re){const Le={getPopupContainer:L,items:re.map((tt,yt)=>{const{key:We,text:nt,onSelect:dt}=tt;return{key:We??yt,onClick:()=>{dt==null||dt(ce)},label:nt}})};Te=i.createElement("div",{className:`${j}-selection-extra`},i.createElement(ls,{menu:Le,getPopupContainer:L},i.createElement("span",null,i.createElement(gf,null))))}const Ee=q.map((Le,tt)=>{const yt=M(Le,tt),We=G.get(yt)||{};return Object.assign({checked:de.has(yt)},We)}).filter(({disabled:Le})=>Le),_e=!!Ee.length&&Ee.length===q.length,Re=_e&&Ee.every(({checked:Le})=>Le),Pe=_e&&Ee.some(({checked:Le})=>Le),ye=(c==null?void 0:c())||{},{onChange:$e,disabled:Me}=ye;pe=i.createElement(aa,Object.assign({"aria-label":Te?"Custom selection":"Select all"},ye,{checked:_e?Re:!!q.length&&ge,indeterminate:_e?!Re&&Pe:!ge&&he,onChange:Le=>{Oe(),$e==null||$e(Le)},disabled:Me??(q.length===0||_e),skipGroup:!0})),je=!w&&i.createElement("div",{className:`${j}-selection`},pe,Te)}let we;C==="radio"?we=(Te,Ee,_e)=>{const Re=M(Ee,_e),Pe=de.has(Re),ye=G.get(Re);return{node:i.createElement(ur,Object.assign({},ye,{checked:Pe,onClick:$e=>{var Me;$e.stopPropagation(),(Me=ye==null?void 0:ye.onClick)===null||Me===void 0||Me.call(ye,$e)},onChange:$e=>{var Me;de.has(Re)||ae(Re,!0,[Re],$e.nativeEvent),(Me=ye==null?void 0:ye.onChange)===null||Me===void 0||Me.call(ye,$e)}})),checked:Pe}}:we=(Te,Ee,_e)=>{var Re;const Pe=M(Ee,_e),ye=de.has(Pe),$e=te.has(Pe),Me=G.get(Pe);let Le;return N==="nest"?Le=$e:Le=(Re=Me==null?void 0:Me.indeterminate)!==null&&Re!==void 0?Re:$e,{node:i.createElement(aa,Object.assign({},Me,{indeterminate:Le,checked:ye,skipGroup:!0,onClick:tt=>{var yt;tt.stopPropagation(),(yt=Me==null?void 0:Me.onClick)===null||yt===void 0||yt.call(Me,tt)},onChange:tt=>{var yt;const{nativeEvent:We}=tt,{shiftKey:nt}=We,dt=ce.indexOf(Pe),at=U.some(pt=>ce.includes(pt));if(nt&&E&&at){const pt=D(dt,ce,de),zt=Array.from(de);p==null||p(!ye,zt.map(Ot=>R(Ot)),pt.map(Ot=>R(Ot))),Y(zt,"multiple")}else{const pt=U;if(E){const zt=ye?Ko(pt,Pe):hi(pt,Pe);ae(Pe,!ye,zt,We)}else{const zt=Ci([].concat(Ne(pt),[Pe]),!0,V,K),{checkedKeys:Ot,halfCheckedKeys:ct}=zt;let $t=Ot;if(ye){const St=new Set(Ot);St.delete(Pe),$t=Ci(Array.from(St),{halfCheckedKeys:ct},V,K).checkedKeys}ae(Pe,!ye,$t,We)}}H(ye?null:dt),(yt=Me==null?void 0:Me.onChange)===null||yt===void 0||yt.call(Me,tt)}})),checked:ye}};const Se=(Te,Ee,_e)=>{const{node:Re,checked:Pe}=we(Te,Ee,_e);return $?$(Pe,Ee,_e,Re):Re};if(!le.includes(il))if(le.findIndex(Te=>{var Ee;return((Ee=Te[Id])===null||Ee===void 0?void 0:Ee.columnType)==="EXPAND_COLUMN"})===0){const[Te,...Ee]=le;le=[Te,il].concat(Ne(Ee))}else le=[il].concat(Ne(le));const Ce=le.indexOf(il);le=le.filter((Te,Ee)=>Te!==il||Ee===Ce);const De=le[Ce-1],Ae=le[Ce+1];let Qe=h;Qe===void 0&&((Ae==null?void 0:Ae.fixed)!==void 0?Qe=Ae.fixed:(De==null?void 0:De.fixed)!==void 0&&(Qe=De.fixed)),Qe&&De&&((oe=De[Id])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&De.fixed===void 0&&(De.fixed=Qe);const Ke=ue(`${j}-selection-col`,{[`${j}-selection-col-with-dropdown`]:x&&C==="checkbox"}),Fe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:je,Ge={fixed:Qe,width:b,className:`${j}-selection-column`,title:Fe(),render:Se,onCell:t.onCell,align:t.align,[Id]:{className:Ke}};return le.map(Te=>Te===il?Ge:Te)},[M,q,t,U,Q,te,b,re,N,G,p,ae,K]),Q]};function Zee(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:l,expandable:c}=t,u=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:d=>{r(a,d),d.stopPropagation()},className:ue(u,{[`${u}-spaced`]:!c,[`${u}-expanded`]:c&&l,[`${u}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}function Jee(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let l=r;if(a){const c=getComputedStyle(a),u=Number.parseInt(c.borderLeftWidth,10),d=Number.parseInt(c.borderRightWidth,10);l=r-u-d}return l}}const bl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function du(e,t){return t?`${t}-${e}`:`${e}`}const ep=(e,t)=>typeof e=="function"?e(t):e,ete=(e,t)=>{const n=ep(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var tte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},nte=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:tte}))},rte=i.forwardRef(nte),ate=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,l={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:l.top=0,l.left=-r*a;break;case 1:l.bottom=0,l.left=-r*a;break;case 0:l.bottom=0,l.left=a;break}return ve.createElement("div",{style:l})};function EN(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function ote(e,t){var n=i.useState(!1),r=fe(n,2),a=r[0],l=r[1];nn(function(){if(a)return e(),function(){t()}},[a]),nn(function(){return l(!0),function(){l(!1)}},[])}var ite=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],lte=i.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,l=e.motionNodes,c=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,v=e.treeNodeRequiredProps,g=Lt(e,ite),p=i.useState(!0),b=fe(p,2),C=b[0],x=b[1],h=i.useContext(TC),$=h.prefixCls,w=l&&c!=="hide";nn(function(){l&&w!==C&&x(w)},[l]);var E=function(){l&&u()},j=i.useRef(!1),O=function(){l&&!j.current&&(j.current=!0,d())};ote(E,O);var I=function(M){w===M&&O()};return l?i.createElement(Zr,be({ref:t,visible:C},a,{motionAppear:c==="show",onVisibleChanged:I}),function(R,M){var N=R.className,P=R.style;return i.createElement("div",{ref:M,className:ue("".concat($,"-treenode-motion"),N),style:P},l.map(function(B){var L=Object.assign({},(EN(B.data),B.data)),k=B.title,D=B.key,H=B.isStart,z=B.isEnd;delete L.children;var _=jd(D,v);return i.createElement(Xd,be({},L,_,{title:k,active:f,data:B.data,key:D,isStart:H,isEnd:z}))}))}):i.createElement(Xd,be({domRef:t,className:n,style:r},g,{active:f}))});function ste(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(l,c){var u=new Map;l.forEach(function(f){u.set(f,!0)});var d=c.filter(function(f){return!u.has(f)});return d.length===1?d[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function b4(e,t,n){var r=e.findIndex(function(u){return u.key===n}),a=e[r+1],l=t.findIndex(function(u){return u.key===n});if(a){var c=t.findIndex(function(u){return u.key===a.key});return t.slice(l+1,c)}return t.slice(l+1)}var cte=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],y4={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ute=function(){},ps="RC_TREE_MOTION_".concat(Math.random()),Xy={key:ps},ON={key:ps,level:0,index:0,pos:"0",node:Xy,nodes:[Xy]},C4={parent:null,children:[],pos:ON.pos,data:Xy,title:null,key:ps,isStart:[],isEnd:[]};function S4(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function x4(e){var t=e.key,n=e.pos;return yf(t,n)}function dte(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var fte=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,l=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,v=e.keyEntities,g=e.disabled,p=e.dragging,b=e.dragOverNodeKey,C=e.dropPosition,x=e.motion,h=e.height,$=e.itemHeight,w=e.virtual,E=e.scrollWidth,j=e.focusable,O=e.activeItem,I=e.focused,R=e.tabIndex,M=e.onKeyDown,N=e.onFocus,P=e.onBlur,B=e.onActiveChange,L=e.onListChangeStart,k=e.onListChangeEnd,D=Lt(e,cte),H=i.useRef(null),z=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function(we){H.current.scrollTo(we)},getIndentWidth:function(){return z.current.offsetWidth}}});var _=i.useState(a),F=fe(_,2),W=F[0],q=F[1],V=i.useState(r),G=fe(V,2),K=G[0],U=G[1],J=i.useState(r),Q=fe(J,2),te=Q[0],Y=Q[1],ae=i.useState([]),re=fe(ae,2),Z=re[0],X=re[1],oe=i.useState(null),le=fe(oe,2),de=le[0],ce=le[1],ge=i.useRef(r);ge.current=r;function he(){var pe=ge.current;U(pe),Y(pe),X([]),ce(null),k()}nn(function(){q(a);var pe=ste(W,a);if(pe.key!==null)if(pe.add){var we=K.findIndex(function(Ke){var Fe=Ke.key;return Fe===pe.key}),Se=S4(b4(K,r,pe.key),w,h,$),Ce=K.slice();Ce.splice(we+1,0,C4),Y(Ce),X(Se),ce("show")}else{var De=r.findIndex(function(Ke){var Fe=Ke.key;return Fe===pe.key}),Ae=S4(b4(r,K,pe.key),w,h,$),Qe=r.slice();Qe.splice(De+1,0,C4),Y(Qe),X(Ae),ce("hide")}else K!==r&&(U(r),Y(r))},[a,r]),i.useEffect(function(){p||he()},[p]);var Oe=x?te:r,je={expandedKeys:a,selectedKeys:l,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:f,dragOverNodeKey:b,dropPosition:C,keyEntities:v};return i.createElement(i.Fragment,null,I&&O&&i.createElement("span",{style:y4,"aria-live":"assertive"},dte(O)),i.createElement("div",null,i.createElement("input",{style:y4,disabled:j===!1||g,tabIndex:j!==!1?R:null,onKeyDown:M,onFocus:N,onBlur:P,value:"",onChange:ute,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),i.createElement(Ig,be({},D,{data:Oe,itemKey:x4,height:h,fullHeight:!1,virtual:w,itemHeight:$,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:H,role:"tree",onVisibleChange:function(we){we.every(function(Se){return x4(Se)!==ps})&&he()}}),function(pe){var we=pe.pos,Se=Object.assign({},(EN(pe.data),pe.data)),Ce=pe.title,De=pe.key,Ae=pe.isStart,Qe=pe.isEnd,Ke=yf(De,we);delete Se.key,delete Se.children;var Fe=jd(Ke,je);return i.createElement(lte,be({},Se,Fe,{title:Ce,active:!!O&&De===O.key,pos:we,data:pe.data,isStart:Ae,isEnd:Qe,motion:x,motionNodes:De===ps?Z:null,motionType:de,onMotionStart:L,onMotionEnd:he,treeNodeRequiredProps:je,onMouseMove:function(){B(null)}}))}))}),mte=10,zC=(function(e){Ya(n,e);var t=po(n);function n(){var r;fr(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),ne(wt(r),"destroyed",!1),ne(wt(r),"delayedDragEnterLogic",void 0),ne(wt(r),"loadingRetryTimes",{}),ne(wt(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Vc()}),ne(wt(r),"dragStartMousePosition",null),ne(wt(r),"dragNodeProps",null),ne(wt(r),"currentMouseOverDroppableNodeKey",null),ne(wt(r),"listRef",i.createRef()),ne(wt(r),"onNodeDragStart",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=r.props.onDragStart,b=d.eventKey;r.dragNodeProps=d,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var C=Ko(v,b);r.setState({draggingNodeKey:b,dragChildrenKeys:Gee(b,g),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(C),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:u,node:Fr(d)})}),ne(wt(r),"onNodeDragEnter",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=f.dragChildrenKeys,b=f.flattenNodes,C=f.indent,x=r.props,h=x.onDragEnter,$=x.onExpand,w=x.allowDrop,E=x.direction,j=d.pos,O=d.eventKey;if(r.currentMouseOverDroppableNodeKey!==O&&(r.currentMouseOverDroppableNodeKey=O),!r.dragNodeProps){r.resetDragState();return}var I=g4(u,r.dragNodeProps,d,C,r.dragStartMousePosition,w,b,g,v,E),R=I.dropPosition,M=I.dropLevelOffset,N=I.dropTargetKey,P=I.dropContainerKey,B=I.dropTargetPos,L=I.dropAllowed,k=I.dragOverNodeKey;if(p.includes(N)||!L){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==d.eventKey&&(u.persist(),r.delayedDragEnterLogic[j]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=Ne(v),H=Ta(g,d.eventKey);H&&(H.children||[]).length&&(D=hi(v,d.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),$==null||$(D,{node:Fr(d),expanded:!0,nativeEvent:u.nativeEvent})}},800)),r.dragNodeProps.eventKey===N&&M===0){r.resetDragState();return}r.setState({dragOverNodeKey:k,dropPosition:R,dropLevelOffset:M,dropTargetKey:N,dropContainerKey:P,dropTargetPos:B,dropAllowed:L}),h==null||h({event:u,node:Fr(d),expandedKeys:v})}),ne(wt(r),"onNodeDragOver",function(u,d){var f=r.state,v=f.dragChildrenKeys,g=f.flattenNodes,p=f.keyEntities,b=f.expandedKeys,C=f.indent,x=r.props,h=x.onDragOver,$=x.allowDrop,w=x.direction;if(r.dragNodeProps){var E=g4(u,r.dragNodeProps,d,C,r.dragStartMousePosition,$,g,p,b,w),j=E.dropPosition,O=E.dropLevelOffset,I=E.dropTargetKey,R=E.dropContainerKey,M=E.dropTargetPos,N=E.dropAllowed,P=E.dragOverNodeKey;v.includes(I)||!N||(r.dragNodeProps.eventKey===I&&O===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():j===r.state.dropPosition&&O===r.state.dropLevelOffset&&I===r.state.dropTargetKey&&R===r.state.dropContainerKey&&M===r.state.dropTargetPos&&N===r.state.dropAllowed&&P===r.state.dragOverNodeKey||r.setState({dropPosition:j,dropLevelOffset:O,dropTargetKey:I,dropContainerKey:R,dropTargetPos:M,dropAllowed:N,dragOverNodeKey:P}),h==null||h({event:u,node:Fr(d)}))}}),ne(wt(r),"onNodeDragLeave",function(u,d){r.currentMouseOverDroppableNodeKey===d.eventKey&&!u.currentTarget.contains(u.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var f=r.props.onDragLeave;f==null||f({event:u,node:Fr(d)})}),ne(wt(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ne(wt(r),"onNodeDragEnd",function(u,d){var f=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),f==null||f({event:u,node:Fr(d)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ne(wt(r),"onNodeDrop",function(u,d){var f,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,p=g.dragChildrenKeys,b=g.dropPosition,C=g.dropTargetKey,x=g.dropTargetPos,h=g.dropAllowed;if(h){var $=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),C!==null){var w=se(se({},jd(C,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===C,data:Ta(r.state.keyEntities,C).node}),E=p.includes(C);Xn(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var j=PC(x),O={event:u,node:Fr(w),dragNode:r.dragNodeProps?Fr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:b!==0,dropPosition:b+Number(j[j.length-1])};v||$==null||$(O),r.dragNodeProps=null}}}),ne(wt(r),"cleanDragState",function(){var u=r.state.draggingNodeKey;u!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ne(wt(r),"triggerExpandActionExpand",function(u,d){var f=r.state,v=f.expandedKeys,g=f.flattenNodes,p=d.expanded,b=d.key,C=d.isLeaf;if(!(C||u.shiftKey||u.metaKey||u.ctrlKey)){var x=g.filter(function($){return $.key===b})[0],h=Fr(se(se({},jd(b,r.getTreeNodeRequiredProps())),{},{data:x.data}));r.setExpandedKeys(p?Ko(v,b):hi(v,b)),r.onNodeExpand(u,h)}}),ne(wt(r),"onNodeClick",function(u,d){var f=r.props,v=f.onClick,g=f.expandAction;g==="click"&&r.triggerExpandActionExpand(u,d),v==null||v(u,d)}),ne(wt(r),"onNodeDoubleClick",function(u,d){var f=r.props,v=f.onDoubleClick,g=f.expandAction;g==="doubleClick"&&r.triggerExpandActionExpand(u,d),v==null||v(u,d)}),ne(wt(r),"onNodeSelect",function(u,d){var f=r.state.selectedKeys,v=r.state,g=v.keyEntities,p=v.fieldNames,b=r.props,C=b.onSelect,x=b.multiple,h=d.selected,$=d[p.key],w=!h;w?x?f=hi(f,$):f=[$]:f=Ko(f,$);var E=f.map(function(j){var O=Ta(g,j);return O?O.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:f}),C==null||C(f,{event:"select",selected:w,node:d,selectedNodes:E,nativeEvent:u.nativeEvent})}),ne(wt(r),"onNodeCheck",function(u,d,f){var v=r.state,g=v.keyEntities,p=v.checkedKeys,b=v.halfCheckedKeys,C=r.props,x=C.checkStrictly,h=C.onCheck,$=d.key,w,E={event:"check",node:d,checked:f,nativeEvent:u.nativeEvent};if(x){var j=f?hi(p,$):Ko(p,$),O=Ko(b,$);w={checked:j,halfChecked:O},E.checkedNodes=j.map(function(B){return Ta(g,B)}).filter(Boolean).map(function(B){return B.node}),r.setUncontrolledState({checkedKeys:j})}else{var I=Ci([].concat(Ne(p),[$]),!0,g),R=I.checkedKeys,M=I.halfCheckedKeys;if(!f){var N=new Set(R);N.delete($);var P=Ci(Array.from(N),{halfCheckedKeys:M},g);R=P.checkedKeys,M=P.halfCheckedKeys}w=R,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=M,R.forEach(function(B){var L=Ta(g,B);if(L){var k=L.node,D=L.pos;E.checkedNodes.push(k),E.checkedNodesPositions.push({node:k,pos:D})}}),r.setUncontrolledState({checkedKeys:R},!1,{halfCheckedKeys:M})}h==null||h(w,E)}),ne(wt(r),"onNodeLoad",function(u){var d,f=u.key,v=r.state.keyEntities,g=Ta(v,f);if(!(g!=null&&(d=g.children)!==null&&d!==void 0&&d.length)){var p=new Promise(function(b,C){r.setState(function(x){var h=x.loadedKeys,$=h===void 0?[]:h,w=x.loadingKeys,E=w===void 0?[]:w,j=r.props,O=j.loadData,I=j.onLoad;if(!O||$.includes(f)||E.includes(f))return null;var R=O(u);return R.then(function(){var M=r.state.loadedKeys,N=hi(M,f);I==null||I(N,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:N}),r.setState(function(P){return{loadingKeys:Ko(P.loadingKeys,f)}}),b()}).catch(function(M){if(r.setState(function(P){return{loadingKeys:Ko(P.loadingKeys,f)}}),r.loadingRetryTimes[f]=(r.loadingRetryTimes[f]||0)+1,r.loadingRetryTimes[f]>=mte){var N=r.state.loadedKeys;Xn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:hi(N,f)}),b()}C(M)}),{loadingKeys:hi(E,f)}})});return p.catch(function(){}),p}}),ne(wt(r),"onNodeMouseEnter",function(u,d){var f=r.props.onMouseEnter;f==null||f({event:u,node:d})}),ne(wt(r),"onNodeMouseLeave",function(u,d){var f=r.props.onMouseLeave;f==null||f({event:u,node:d})}),ne(wt(r),"onNodeContextMenu",function(u,d){var f=r.props.onRightClick;f&&(u.preventDefault(),f({event:u,node:d}))}),ne(wt(r),"onFocus",function(){var u=r.props.onFocus;r.setState({focused:!0});for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];u==null||u.apply(void 0,f)}),ne(wt(r),"onBlur",function(){var u=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];u==null||u.apply(void 0,f)}),ne(wt(r),"getTreeNodeRequiredProps",function(){var u=r.state,d=u.expandedKeys,f=u.selectedKeys,v=u.loadedKeys,g=u.loadingKeys,p=u.checkedKeys,b=u.halfCheckedKeys,C=u.dragOverNodeKey,x=u.dropPosition,h=u.keyEntities;return{expandedKeys:d||[],selectedKeys:f||[],loadedKeys:v||[],loadingKeys:g||[],checkedKeys:p||[],halfCheckedKeys:b||[],dragOverNodeKey:C,dropPosition:x,keyEntities:h}}),ne(wt(r),"setExpandedKeys",function(u){var d=r.state,f=d.treeData,v=d.fieldNames,g=U0(f,u,v);r.setUncontrolledState({expandedKeys:u,flattenNodes:g},!0)}),ne(wt(r),"onNodeExpand",function(u,d){var f=r.state.expandedKeys,v=r.state,g=v.listChanging,p=v.fieldNames,b=r.props,C=b.onExpand,x=b.loadData,h=d.expanded,$=d[p.key];if(!g){var w=f.includes($),E=!h;if(Xn(h&&w||!h&&!w,"Expand state not sync with index check"),f=E?hi(f,$):Ko(f,$),r.setExpandedKeys(f),C==null||C(f,{node:d,expanded:E,nativeEvent:u.nativeEvent}),E&&x){var j=r.onNodeLoad(d);j&&j.then(function(){var O=U0(r.state.treeData,f,p);r.setUncontrolledState({flattenNodes:O})}).catch(function(){var O=r.state.expandedKeys,I=Ko(O,$);r.setExpandedKeys(I)})}}}),ne(wt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ne(wt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ne(wt(r),"onActiveChange",function(u){var d=r.state.activeKey,f=r.props,v=f.onActiveChange,g=f.itemScrollOffset,p=g===void 0?0:g;d!==u&&(r.setState({activeKey:u}),u!==null&&r.scrollTo({key:u,offset:p}),v==null||v(u))}),ne(wt(r),"getActiveItem",function(){var u=r.state,d=u.activeKey,f=u.flattenNodes;return d===null?null:f.find(function(v){var g=v.key;return g===d})||null}),ne(wt(r),"offsetActiveKey",function(u){var d=r.state,f=d.flattenNodes,v=d.activeKey,g=f.findIndex(function(C){var x=C.key;return x===v});g===-1&&u<0&&(g=f.length),g=(g+u+f.length)%f.length;var p=f[g];if(p){var b=p.key;r.onActiveChange(b)}else r.onActiveChange(null)}),ne(wt(r),"onKeyDown",function(u){var d=r.state,f=d.activeKey,v=d.expandedKeys,g=d.checkedKeys,p=d.fieldNames,b=r.props,C=b.onKeyDown,x=b.checkable,h=b.selectable;switch(u.which){case ot.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case ot.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var $=r.getActiveItem();if($&&$.data){var w=r.getTreeNodeRequiredProps(),E=$.data.isLeaf===!1||!!($.data[p.children]||[]).length,j=Fr(se(se({},jd(f,w)),{},{data:$.data,active:!0}));switch(u.which){case ot.LEFT:{E&&v.includes(f)?r.onNodeExpand({},j):$.parent&&r.onActiveChange($.parent.key),u.preventDefault();break}case ot.RIGHT:{E&&!v.includes(f)?r.onNodeExpand({},j):$.children&&$.children.length&&r.onActiveChange($.children[0].key),u.preventDefault();break}case ot.ENTER:case ot.SPACE:{x&&!j.disabled&&j.checkable!==!1&&!j.disableCheckbox?r.onNodeCheck({},j,!g.includes(f)):!x&&h&&!j.disabled&&j.selectable!==!1&&r.onNodeSelect({},j);break}}}C==null||C(u)}),ne(wt(r),"setUncontrolledState",function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var v=!1,g=!0,p={};Object.keys(u).forEach(function(b){if(r.props.hasOwnProperty(b)){g=!1;return}v=!0,p[b]=u[b]}),v&&(!d||g)&&r.setState(se(se({},p),f))}}),ne(wt(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return mr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,l=a.activeKey,c=a.itemScrollOffset,u=c===void 0?0:c;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:u}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,l=a.focused,c=a.flattenNodes,u=a.keyEntities,d=a.draggingNodeKey,f=a.activeKey,v=a.dropLevelOffset,g=a.dropContainerKey,p=a.dropTargetKey,b=a.dropPosition,C=a.dragOverNodeKey,x=a.indent,h=this.props,$=h.prefixCls,w=h.className,E=h.style,j=h.showLine,O=h.focusable,I=h.tabIndex,R=I===void 0?0:I,M=h.selectable,N=h.showIcon,P=h.icon,B=h.switcherIcon,L=h.draggable,k=h.checkable,D=h.checkStrictly,H=h.disabled,z=h.motion,_=h.loadData,F=h.filterTreeNode,W=h.height,q=h.itemHeight,V=h.scrollWidth,G=h.virtual,K=h.titleRender,U=h.dropIndicatorRender,J=h.onContextMenu,Q=h.onScroll,te=h.direction,Y=h.rootClassName,ae=h.rootStyle,re=Nr(this.props,{aria:!0,data:!0}),Z;L&&(Et(L)==="object"?Z=L:typeof L=="function"?Z={nodeDraggable:L}:Z={});var X={prefixCls:$,selectable:M,showIcon:N,icon:P,switcherIcon:B,draggable:Z,draggingNodeKey:d,checkable:k,checkStrictly:D,disabled:H,keyEntities:u,dropLevelOffset:v,dropContainerKey:g,dropTargetKey:p,dropPosition:b,dragOverNodeKey:C,indent:x,direction:te,dropIndicatorRender:U,loadData:_,filterTreeNode:F,titleRender:K,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(TC.Provider,{value:X},i.createElement("div",{className:ue($,w,Y,ne(ne(ne({},"".concat($,"-show-line"),j),"".concat($,"-focused"),l),"".concat($,"-active-focused"),f!==null)),style:ae},i.createElement(fte,be({ref:this.listRef,prefixCls:$,style:E,data:c,disabled:H,selectable:M,checkable:!!k,motion:z,dragging:d!==null,height:W,itemHeight:q,virtual:G,focusable:O,focused:l,tabIndex:R,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:J,onScroll:Q,scrollWidth:V},this.getTreeNodeRequiredProps(),re))))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var c=l.prevProps,u={prevProps:a};function d(R){return!c&&a.hasOwnProperty(R)||c&&c[R]!==a[R]}var f,v=l.fieldNames;if(d("fieldNames")&&(v=Vc(a.fieldNames),u.fieldNames=v),d("treeData")?f=a.treeData:d("children")&&(Xn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=tI(a.children)),f){u.treeData=f;var g=Kg(f,{fieldNames:v});u.keyEntities=se(ne({},ps,ON),g.keyEntities)}var p=u.keyEntities||l.keyEntities;if(d("expandedKeys")||c&&d("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!c&&a.defaultExpandParent?Ky(a.expandedKeys,p):a.expandedKeys;else if(!c&&a.defaultExpandAll){var b=se({},p);delete b[ps];var C=[];Object.keys(b).forEach(function(R){var M=b[R];M.children&&M.children.length&&C.push(M.key)}),u.expandedKeys=C}else!c&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?Ky(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,f||u.expandedKeys){var x=U0(f||l.treeData,u.expandedKeys||l.expandedKeys,v);u.flattenNodes=x}if(a.selectable&&(d("selectedKeys")?u.selectedKeys=p4(a.selectedKeys,a):!c&&a.defaultSelectedKeys&&(u.selectedKeys=p4(a.defaultSelectedKeys,a))),a.checkable){var h;if(d("checkedKeys")?h=tb(a.checkedKeys)||{}:!c&&a.defaultCheckedKeys?h=tb(a.defaultCheckedKeys)||{}:f&&(h=tb(a.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),h){var $=h,w=$.checkedKeys,E=w===void 0?[]:w,j=$.halfCheckedKeys,O=j===void 0?[]:j;if(!a.checkStrictly){var I=Ci(E,!0,p);E=I.checkedKeys,O=I.halfCheckedKeys}u.checkedKeys=E,u.halfCheckedKeys=O}}return d("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(i.Component);ne(zC,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ate,allowDrop:function(){return!0},expandAction:!1});ne(zC,"TreeNode",Xd);var vte={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"},gte=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:vte}))},RN=i.forwardRef(gte),pte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},hte=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:pte}))},Kc=i.forwardRef(hte),bte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},yte=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:bte}))},Ov=i.forwardRef(yte),Cte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ste=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Cte}))},xte=i.forwardRef(Ste);const $te=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:l,controlItemBgHover:c})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:l},"&:hover:before":{background:c}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:l,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),wte=new Jt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ete=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Ote=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ie(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Rte=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:l,indentSize:c,nodeSelectedBg:u,nodeHoverBg:d,colorTextQuaternary:f,controlItemBgActiveDisabled:v}=t;return{[n]:Object.assign(Object.assign({},dn(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Io(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:wte,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:ie(l),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:v},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:l,textAlign:"center",visibility:"visible",color:f},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:c}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Ete(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:l,height:l,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(l).div(2).equal()).mul(.8).equal(),height:t.calc(l).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:l,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Ote(e,t)),{"&:hover":{backgroundColor:d},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ie(t.calc(l).div(2).equal())} !important`}})}},jte=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,l=t.calc(t.paddingXS).div(2).equal(),c=tn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:l});return[Rte(e,c),n&&$te(c)].filter(Boolean)},Ite=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Nte=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Ite(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Mte=sn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:gC(`${t}-checkbox`,e)},jte(t,e),of(e)],Nte),$4=4;function Tte(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:l="ltr"}=e,c=l==="ltr"?"left":"right",u=l==="ltr"?"right":"left",d={[c]:-n*a+$4,[u]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[c]=a+$4;break}return ve.createElement("div",{style:d,className:`${r}-drop-indicator`})}var Pte={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},zte=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Pte}))},Dte=i.forwardRef(zte),_te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 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:"minus-square",theme:"outlined"},Ate=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:_te}))},Bte=i.forwardRef(Ate),kte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 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:"plus-square",theme:"outlined"},Lte=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:kte}))},Hte=i.forwardRef(Lte);const Fte=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:l,showLine:c,switcherLoadingIcon:u}=e,{isLeaf:d,expanded:f,loading:v}=l;if(v)return i.isValidElement(u)?u:i.createElement(No,{className:`${r}-switcher-loading-icon`});let g;if(c&&typeof c=="object"&&(g=c.showLeafIcon),d){if(!c)return null;if(typeof g!="boolean"&&g){const C=typeof g=="function"?g(l):g,x=`${r}-switcher-line-custom-icon`;return i.isValidElement(C)?Or(C,{className:ue((t=C.props)===null||t===void 0?void 0:t.className,x)}):C}return g?i.createElement(RN,{className:`${r}-switcher-line-icon`}):i.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,b=typeof a=="function"?a(l):a;return i.isValidElement(b)?Or(b,{className:ue((n=b.props)===null||n===void 0?void 0:n.className,p)}):b!==void 0?b:c?f?i.createElement(Bte,{className:`${r}-switcher-line-icon`}):i.createElement(Hte,{className:`${r}-switcher-line-icon`}):i.createElement(Dte,{className:p})},jN=ve.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:l,tree:c}=ve.useContext(Rt),{prefixCls:u,className:d,showIcon:f=!1,showLine:v,switcherIcon:g,switcherLoadingIcon:p,blockNode:b=!1,children:C,checkable:x=!1,selectable:h=!0,draggable:$,disabled:w,motion:E,style:j}=e,O=r("tree",u),I=r(),R=ve.useContext(Wr),M=w??R,N=E??Object.assign(Object.assign({},Ac(I)),{motionAppear:!1}),P=Object.assign(Object.assign({},e),{checkable:x,selectable:h,showIcon:f,motion:N,blockNode:b,disabled:M,showLine:!!v,dropIndicatorRender:Tte}),[B,L,k]=Mte(O),[,D]=la(),H=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),z=ve.useMemo(()=>{if(!$)return!1;let F={};switch(typeof $){case"function":F.nodeDraggable=$;break;case"object":F=Object.assign({},$);break}return F.icon!==!1&&(F.icon=F.icon||ve.createElement(xte,null)),F},[$]),_=F=>ve.createElement(Fte,{prefixCls:O,switcherIcon:g,switcherLoadingIcon:p,treeNodeProps:F,showLine:v});return B(ve.createElement(zC,Object.assign({itemHeight:H,ref:t,virtual:l},P,{style:Object.assign(Object.assign({},c==null?void 0:c.style),j),prefixCls:O,className:ue({[`${O}-icon-hide`]:!f,[`${O}-block-node`]:b,[`${O}-unselectable`]:!h,[`${O}-rtl`]:a==="rtl",[`${O}-disabled`]:M},c==null?void 0:c.className,d,L,k),direction:a,checkable:x&&ve.createElement("span",{className:`${O}-checkbox-inner`}),selectable:h,switcherIcon:_,draggable:z}),C))}),w4=0,nb=1,E4=2;function DC(e,t,n){const{key:r,children:a}=n;function l(c){const u=c[r],d=c[a];t(u,c)!==!1&&DC(d||[],t,n)}e.forEach(l)}function Vte({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const l=[];let c=w4;if(n&&n===r)return[n];if(!n||!r)return[];function u(d){return d===n||d===r}return DC(e,d=>{if(c===E4)return!1;if(u(d)){if(l.push(d),c===w4)c=nb;else if(c===nb)return c=E4,!1}else c===nb&&l.push(d);return t.includes(d)},Vc(a)),l}function rb(e,t,n){const r=Ne(t),a=[];return DC(e,(l,c)=>{const u=r.indexOf(l);return u!==-1&&(a.push(c),r.splice(u,1)),!!r.length},Vc(n)),a}var O4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Wte(e){const{isLeaf:t,expanded:n}=e;return t?i.createElement(RN,null):n?i.createElement(Kc,null):i.createElement(Ov,null)}function R4({treeData:e,children:t}){return e||tI(t)}const Kte=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,l=O4(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=i.useRef(null),u=i.useRef(null),d=()=>{const{keyEntities:M}=Kg(R4(l),{fieldNames:l.fieldNames});let N;return n?N=Object.keys(M):r?N=Ky(l.expandedKeys||a||[],M):N=l.expandedKeys||a||[],N},[f,v]=i.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[g,p]=i.useState(()=>d());i.useEffect(()=>{"selectedKeys"in l&&v(l.selectedKeys)},[l.selectedKeys]),i.useEffect(()=>{"expandedKeys"in l&&p(l.expandedKeys)},[l.expandedKeys]);const b=(M,N)=>{var P;return"expandedKeys"in l||p(M),(P=l.onExpand)===null||P===void 0?void 0:P.call(l,M,N)},C=(M,N)=>{var P;const{multiple:B,fieldNames:L}=l,{node:k,nativeEvent:D}=N,{key:H=""}=k,z=R4(l),_=Object.assign(Object.assign({},N),{selected:!0}),F=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),W=D==null?void 0:D.shiftKey;let q;B&&F?(q=M,c.current=H,u.current=q,_.selectedNodes=rb(z,q,L)):B&&W?(q=Array.from(new Set([].concat(Ne(u.current||[]),Ne(Vte({treeData:z,expandedKeys:g,startKey:H,endKey:c.current,fieldNames:L}))))),_.selectedNodes=rb(z,q,L)):(q=[H],c.current=H,u.current=q,_.selectedNodes=rb(z,q,L)),(P=l.onSelect)===null||P===void 0||P.call(l,q,_),"selectedKeys"in l||v(q)},{getPrefixCls:x,direction:h}=i.useContext(Rt),{prefixCls:$,className:w,showIcon:E=!0,expandAction:j="click"}=l,O=O4(l,["prefixCls","className","showIcon","expandAction"]),I=x("tree",$),R=ue(`${I}-directory`,{[`${I}-directory-rtl`]:h==="rtl"},w);return i.createElement(jN,Object.assign({icon:Wte,ref:t,blockNode:!0},O,{showIcon:E,expandAction:j,prefixCls:I,className:R,expandedKeys:g,selectedKeys:f,onSelect:C,onExpand:b}))},Ute=i.forwardRef(Kte),_C=jN;_C.DirectoryTree=Ute;_C.TreeNode=Xd;const j4=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:l}=e;return n?i.createElement("div",{className:`${r}-filter-dropdown-search`},i.createElement(Sf,{prefix:i.createElement(Es,null),placeholder:a.filterSearchPlaceholder,onChange:l,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},qte=e=>{const{keyCode:t}=e;t===ot.ENTER&&e.stopPropagation()},Gte=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:qte,ref:t},e.children));function Mc(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Ne(t),Ne(Mc(r))))}),t}function Xte(e){return e.some(({children:t})=>t)}function IN(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function NN({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l}){return e.map((c,u)=>{const d=String(c.value);if(c.children)return{key:d||u,label:c.text,popupClassName:`${t}-dropdown-submenu`,children:NN({filters:c.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l})};const f=r?aa:ur,v={key:c.value!==void 0?d:u,label:i.createElement(i.Fragment,null,i.createElement(f,{checked:n.includes(d)}),i.createElement("span",null,c.text))};return a.trim()?typeof l=="function"?l(a,c)?v:null:IN(a,c.text)?v:null:v})}function ab(e){return e||[]}const Yte=e=>{var t,n,r,a;const{tablePrefixCls:l,prefixCls:c,column:u,dropdownPrefixCls:d,columnKey:f,filterOnClose:v,filterMultiple:g,filterMode:p="menu",filterSearch:b=!1,filterState:C,triggerFilter:x,locale:h,children:$,getPopupContainer:w,rootClassName:E}=e,{filterResetToDefaultFilteredValue:j,defaultFilteredValue:O,filterDropdownProps:I={},filterDropdownOpen:R,filterDropdownVisible:M,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:P}=u,[B,L]=i.useState(!1),k=!!(C&&(!((t=C.filteredKeys)===null||t===void 0)&&t.length||C.forceFiltered)),D=pe=>{var we;L(pe),(we=I.onOpenChange)===null||we===void 0||we.call(I,pe),P==null||P(pe),N==null||N(pe)},H=(a=(r=(n=I.open)!==null&&n!==void 0?n:R)!==null&&r!==void 0?r:M)!==null&&a!==void 0?a:B,z=C==null?void 0:C.filteredKeys,[_,F]=B7(ab(z)),W=({selectedKeys:pe})=>{F(pe)},q=(pe,{node:we,checked:Se})=>{W(g?{selectedKeys:pe}:{selectedKeys:Se&&we.key?[we.key]:[]})};i.useEffect(()=>{B&&W({selectedKeys:ab(z)})},[z]);const[V,G]=i.useState([]),K=pe=>{G(pe)},[U,J]=i.useState(""),Q=pe=>{const{value:we}=pe.target;J(we)};i.useEffect(()=>{B||J("")},[B]);const te=pe=>{const we=pe!=null&&pe.length?pe:null;if(we===null&&(!C||!C.filteredKeys)||jo(we,C==null?void 0:C.filteredKeys,!0))return null;x({column:u,key:f,filteredKeys:we})},Y=()=>{D(!1),te(_())},ae=({confirm:pe,closeDropdown:we}={confirm:!1,closeDropdown:!1})=>{pe&&te([]),we&&D(!1),J(""),F(j?(O||[]).map(Se=>String(Se)):[])},re=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&D(!1),te(_())},Z=(pe,we)=>{we.source==="trigger"&&(pe&&z!==void 0&&F(ab(z)),D(pe),!pe&&!u.filterDropdown&&v&&Y())},X=ue({[`${d}-menu-without-submenu`]:!Xte(u.filters||[])}),oe=pe=>{if(pe.target.checked){const we=Mc(u==null?void 0:u.filters).map(Se=>String(Se));F(we)}else F([])},le=({filters:pe})=>(pe||[]).map((we,Se)=>{const Ce=String(we.value),De={title:we.text,key:we.value!==void 0?Ce:String(Se)};return we.children&&(De.children=le({filters:we.children})),De}),de=pe=>{var we;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((we=pe.children)===null||we===void 0?void 0:we.map(Se=>de(Se)))||[]})};let ce;const{direction:ge,renderEmpty:he}=i.useContext(Rt);if(typeof u.filterDropdown=="function")ce=u.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:pe=>W({selectedKeys:pe}),selectedKeys:_(),confirm:re,clearFilters:ae,filters:u.filters,visible:H,close:()=>{D(!1)}});else if(u.filterDropdown)ce=u.filterDropdown;else{const pe=_()||[],we=()=>{var Ce,De;const Ae=(Ce=he==null?void 0:he("Table.filter"))!==null&&Ce!==void 0?Ce:i.createElement(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return Ae;if(p==="tree")return i.createElement(i.Fragment,null,i.createElement(j4,{filterSearch:b,value:U,onChange:Q,tablePrefixCls:l,locale:h}),i.createElement("div",{className:`${l}-filter-dropdown-tree`},g?i.createElement(aa,{checked:pe.length===Mc(u.filters).length,indeterminate:pe.length>0&&pe.length<Mc(u.filters).length,className:`${l}-filter-dropdown-checkall`,onChange:oe},(De=h==null?void 0:h.filterCheckall)!==null&&De!==void 0?De:h==null?void 0:h.filterCheckAll):null,i.createElement(_C,{checkable:!0,selectable:!1,blockNode:!0,multiple:g,checkStrictly:!g,className:`${d}-menu`,onCheck:q,checkedKeys:pe,selectedKeys:pe,showIcon:!1,treeData:le({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:U.trim()?Fe=>typeof b=="function"?b(U,de(Fe)):IN(U,Fe.title):void 0})));const Qe=NN({filters:u.filters||[],filterSearch:b,prefixCls:c,filteredKeys:_(),filterMultiple:g,searchValue:U}),Ke=Qe.every(Fe=>Fe===null);return i.createElement(i.Fragment,null,i.createElement(j4,{filterSearch:b,value:U,onChange:Q,tablePrefixCls:l,locale:h}),Ke?Ae:i.createElement(gl,{selectable:!0,multiple:g,prefixCls:`${d}-menu`,className:X,onSelect:W,onDeselect:W,selectedKeys:pe,getPopupContainer:w,openKeys:V,onOpenChange:K,items:Qe}))},Se=()=>j?jo((O||[]).map(Ce=>String(Ce)),pe,!0):pe.length===0;ce=i.createElement(i.Fragment,null,we(),i.createElement("div",{className:`${c}-dropdown-btns`},i.createElement(Xe,{type:"link",size:"small",disabled:Se(),onClick:()=>ae()},h.filterReset),i.createElement(Xe,{type:"primary",size:"small",onClick:Y},h.filterConfirm)))}u.filterDropdown&&(ce=i.createElement(Gj,{selectable:void 0},ce)),ce=i.createElement(Gte,{className:`${c}-dropdown`},ce);const je=Hd({trigger:["click"],placement:ge==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof u.filterIcon=="function"?pe=u.filterIcon(k):u.filterIcon?pe=u.filterIcon:pe=i.createElement(rte,null),i.createElement("span",{role:"button",tabIndex:-1,className:ue(`${c}-trigger`,{active:k}),onClick:we=>{we.stopPropagation()}},pe)})(),getPopupContainer:w},Object.assign(Object.assign({},I),{rootClassName:ue(E,I.rootClassName),open:H,onOpenChange:Z,popupRender:()=>typeof(I==null?void 0:I.dropdownRender)=="function"?I.dropdownRender(ce):ce}));return i.createElement("div",{className:`${c}-column`},i.createElement("span",{className:`${l}-column-title`},$),i.createElement(ls,Object.assign({},je)))},Yy=(e,t,n)=>{let r=[];return(e||[]).forEach((a,l)=>{var c;const u=du(l,n),d=a.filterDropdown!==void 0;if(a.filters||d||"onFilter"in a)if("filteredValue"in a){let f=a.filteredValue;d||(f=(c=f==null?void 0:f.map(String))!==null&&c!==void 0?c:f),r.push({column:a,key:bl(a,u),filteredKeys:f,forceFiltered:a.filtered})}else r.push({column:a,key:bl(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Ne(r),Ne(Yy(a.children,t,u))))}),r};function MN(e,t,n,r,a,l,c,u,d){return n.map((f,v)=>{const g=du(v,u),{filterOnClose:p=!0,filterMultiple:b=!0,filterMode:C,filterSearch:x}=f;let h=f;if(h.filters||h.filterDropdown){const $=bl(h,g),w=r.find(({key:E})=>$===E);h=Object.assign(Object.assign({},h),{title:E=>i.createElement(Yte,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:$,filterState:w,filterOnClose:p,filterMultiple:b,filterMode:C,filterSearch:x,triggerFilter:l,locale:a,getPopupContainer:c,rootClassName:d},ep(f.title,E))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:MN(e,t,h.children,r,a,l,c,g,d)})),h})}const I4=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const l=n,{filters:c,filterDropdown:u}=a;if(u)t[l]=r||null;else if(Array.isArray(r)){const d=Mc(c);t[l]=d.filter(f=>r.includes(String(f)))}else t[l]=null}),t},Qy=(e,t,n)=>t.reduce((a,l)=>{const{column:{onFilter:c,filters:u},filteredKeys:d}=l;return c&&d&&d.length?a.map(f=>Object.assign({},f)).filter(f=>d.some(v=>{const g=Mc(u),p=g.findIndex(C=>String(C)===String(v)),b=p!==-1?g[p]:v;return f[n]&&(f[n]=Qy(f[n],t,n)),c(b,f)})):a},e),TN=e=>e.flatMap(t=>"children"in t?[t].concat(Ne(TN(t.children||[]))):[t]),Qte=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:l,locale:c,rootClassName:u}=e;Jo();const d=i.useMemo(()=>TN(r||[]),[r]),[f,v]=i.useState(()=>Yy(d,!0)),g=i.useMemo(()=>{const x=Yy(d,!1);if(x.length===0)return x;let h=!0;if(x.forEach(({filteredKeys:$})=>{$!==void 0&&(h=!1)}),h){const $=(d||[]).map((w,E)=>bl(w,du(E)));return f.filter(({key:w})=>$.includes(w)).map(w=>{const E=d[$.indexOf(w.key)];return Object.assign(Object.assign({},w),{column:Object.assign(Object.assign({},w.column),E),forceFiltered:E.filtered})})}return x},[d,f]),p=i.useMemo(()=>I4(g),[g]),b=x=>{const h=g.filter(({key:$})=>$!==x.key);h.push(x),v(h),a(I4(h),h)};return[x=>MN(t,n,x,g,c,b,l,void 0,u),g,p]},Zte=(e,t,n)=>{const r=i.useRef({});function a(l){var c;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let f=function(v){v.forEach((g,p)=>{const b=n(g,p);d.set(b,g),g&&typeof g=="object"&&t in g&&f(g[t]||[])})};var u=f;const d=new Map;f(e),r.current={data:e,childrenColumnName:t,kvMap:d,getRowKey:n}}return(c=r.current.kvMap)===null||c===void 0?void 0:c.get(l)}return[a]};var Jte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PN=10;function ene(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const l=e[a];typeof l!="function"&&(n[a]=l)}),n}function tne(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,l=Jte(r,["total"]),[c,u]=i.useState(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:PN})),d=Hd(c,l,{total:a>0?a:e}),f=Math.ceil((a||e)/d.pageSize);d.current>f&&(d.current=f||1);const v=(p,b)=>{u({current:p??1,pageSize:b||d.pageSize})},g=(p,b)=>{var C;n&&((C=n.onChange)===null||C===void 0||C.call(n,p,b)),v(p,b),t(p,b||(d==null?void 0:d.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:g}),v]}var nne={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},rne=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:nne}))},ane=i.forwardRef(rne),one={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ine=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:one}))},lne=i.forwardRef(ine);const Rv="ascend",ob="descend",Jv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,N4=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,sne=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Zy=(e,t,n)=>{let r=[];const a=(l,c)=>{r.push({column:l,key:bl(l,c),multiplePriority:Jv(l),sortOrder:l.sortOrder})};return(e||[]).forEach((l,c)=>{const u=du(c,n);l.children?("sortOrder"in l&&a(l,u),r=[].concat(Ne(r),Ne(Zy(l.children,t,u)))):l.sorter&&("sortOrder"in l?a(l,u):t&&l.defaultSortOrder&&r.push({column:l,key:bl(l,u),multiplePriority:Jv(l),sortOrder:l.defaultSortOrder}))}),r},zN=(e,t,n,r,a,l,c,u)=>(t||[]).map((f,v)=>{const g=du(v,u);let p=f;if(p.sorter){const b=p.sortDirections||a,C=p.showSorterTooltip===void 0?c:p.showSorterTooltip,x=bl(p,g),h=n.find(({key:N})=>N===x),$=h?h.sortOrder:null,w=sne(b,$);let E;if(f.sortIcon)E=f.sortIcon({sortOrder:$});else{const N=b.includes(Rv)&&i.createElement(lne,{className:ue(`${e}-column-sorter-up`,{active:$===Rv})}),P=b.includes(ob)&&i.createElement(ane,{className:ue(`${e}-column-sorter-down`,{active:$===ob})});E=i.createElement("span",{className:ue(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&P)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,P))}const{cancelSort:j,triggerAsc:O,triggerDesc:I}=l||{};let R=j;w===ob?R=I:w===Rv&&(R=O);const M=typeof C=="object"?Object.assign({title:R},C):{title:R};p=Object.assign(Object.assign({},p),{className:ue(p.className,{[`${e}-column-sort`]:$}),title:N=>{const P=`${e}-column-sorters`,B=i.createElement("span",{className:`${e}-column-title`},ep(f.title,N)),L=i.createElement("div",{className:P},B,E);return C?typeof C!="boolean"&&(C==null?void 0:C.target)==="sorter-icon"?i.createElement("div",{className:ue(P,`${P}-tooltip-target-sorter`)},B,i.createElement(An,Object.assign({},M),E)):i.createElement(An,Object.assign({},M),L):L},onHeaderCell:N=>{var P;const B=((P=f.onHeaderCell)===null||P===void 0?void 0:P.call(f,N))||{},L=B.onClick,k=B.onKeyDown;B.onClick=z=>{r({column:f,key:x,sortOrder:w,multiplePriority:Jv(f)}),L==null||L(z)},B.onKeyDown=z=>{z.keyCode===ot.ENTER&&(r({column:f,key:x,sortOrder:w,multiplePriority:Jv(f)}),k==null||k(z))};const D=ete(f.title,{}),H=D==null?void 0:D.toString();return $&&(B["aria-sort"]=$==="ascend"?"ascending":"descending"),B["aria-label"]=H||"",B.className=ue(B.className,`${e}-column-has-sorters`),B.tabIndex=0,f.ellipsis&&(B.title=(D??"").toString()),B}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:zN(e,p.children,n,r,a,l,c,g)})),p}),M4=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},T4=e=>{const t=e.filter(({sortOrder:n})=>n).map(M4);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},M4(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Jy=(e,t,n)=>{const r=t.slice().sort((c,u)=>u.multiplePriority-c.multiplePriority),a=e.slice(),l=r.filter(({column:{sorter:c},sortOrder:u})=>N4(c)&&u);return l.length?a.sort((c,u)=>{for(let d=0;d<l.length;d+=1){const f=l[d],{column:{sorter:v},sortOrder:g}=f,p=N4(v);if(p&&g){const b=p(c,u,g);if(b!==0)return g===Rv?b:-b}}return 0}).map(c=>{const u=c[n];return u?Object.assign(Object.assign({},c),{[n]:Jy(u,t,n)}):c}):a},cne=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:l,onSorterChange:c}=e,[u,d]=i.useState(()=>Zy(n,!0)),f=(x,h)=>{const $=[];return x.forEach((w,E)=>{const j=du(E,h);if($.push(bl(w,j)),Array.isArray(w.children)){const O=f(w.children,j);$.push.apply($,Ne(O))}}),$},v=i.useMemo(()=>{let x=!0;const h=Zy(n,!1);if(!h.length){const j=f(n);return u.filter(({key:O})=>j.includes(O))}const $=[];function w(j){x?$.push(j):$.push(Object.assign(Object.assign({},j),{sortOrder:null}))}let E=null;return h.forEach(j=>{E===null?(w(j),j.sortOrder&&(j.multiplePriority===!1?x=!1:E=!0)):(E&&j.multiplePriority!==!1||(x=!1),w(j))}),$},[n,u]),g=i.useMemo(()=>{var x,h;const $=v.map(({column:w,sortOrder:E})=>({column:w,order:E}));return{sortColumns:$,sortColumn:(x=$[0])===null||x===void 0?void 0:x.column,sortOrder:(h=$[0])===null||h===void 0?void 0:h.order}},[v]),p=x=>{let h;x.multiplePriority===!1||!v.length||v[0].multiplePriority===!1?h=[x]:h=[].concat(Ne(v.filter(({key:$})=>$!==x.key)),[x]),d(h),c(T4(h),h)};return[x=>zN(t,x,v,p,r,a,l),v,g,()=>T4(v)]},DN=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=ep(r.title,t),"children"in a&&(a.children=DN(a.children,t)),a}),une=e=>[i.useCallback(n=>DN(n,e),[e])],dne=SN((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),fne=$N((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),mne=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:l,tablePaddingVertical:c,tablePaddingHorizontal:u,calc:d}=e,f=`${ie(n)} ${r} ${a}`,v=(g,p,b)=>({[`&${t}-${g}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ie(d(p).mul(-1).equal())}
|
|
399
|
-
${ie(d(d(b).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:f,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:f,borderTop:f,[`
|
|
400
|
-
> ${t}-content,
|
|
401
|
-
> ${t}-header,
|
|
402
|
-
> ${t}-body,
|
|
403
|
-
> ${t}-summary
|
|
404
|
-
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ie(d(c).mul(-1).equal())} ${ie(d(d(u).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
405
|
-
> tr${t}-expanded-row,
|
|
406
|
-
> tr${t}-placeholder
|
|
407
|
-
`]:{"> th, > td":{borderInlineEnd:0}}}}}},v("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),v("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:f,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ie(n)} 0 ${ie(n)} ${l}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},vne=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ga),{wordBreak:"keep-all",[`
|
|
408
|
-
&${t}-cell-fix-left-last,
|
|
409
|
-
&${t}-cell-fix-right-first
|
|
410
|
-
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},gne=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},pne=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:l,lineType:c,tableBorderColor:u,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:v,tablePaddingVertical:g,tablePaddingHorizontal:p,tableExpandedRowBg:b,paddingXXS:C,expandIconMarginTop:x,expandIconSize:h,expandIconHalfInner:$,expandIconScale:w,calc:E}=e,j=`${ie(a)} ${c} ${u}`,O=E(C).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},b1(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:ie(h),background:d,border:j,borderRadius:v,transform:`scale(${w})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:a},"&::after":{top:O,bottom:O,insetInlineStart:$,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:x,marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:b}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ie(E(g).mul(-1).equal())} ${ie(E(p).mul(-1).equal())}`,padding:`${ie(g)} ${ie(p)}`}}}},hne=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:l,paddingXXS:c,paddingXS:u,colorText:d,lineWidth:f,lineType:v,tableBorderColor:g,headerIconColor:p,fontSizeSM:b,tablePaddingHorizontal:C,borderRadius:x,motionDurationSlow:h,colorIcon:$,colorPrimary:w,tableHeaderFilterActiveBg:E,colorTextDisabled:j,tableFilterDropdownBg:O,tableFilterDropdownHeight:I,controlItemBgHover:R,controlItemBgActive:M,boxShadowSecondary:N,filterDropdownMenuBg:P,calc:B}=e,L=`${n}-dropdown`,k=`${t}-filter-dropdown`,D=`${n}-tree`,H=`${ie(f)} ${v} ${g}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:B(c).mul(-1).equal(),marginInline:`${ie(c)} ${ie(B(C).div(2).mul(-1).equal())}`,padding:`0 ${ie(c)}`,color:p,fontSize:b,borderRadius:x,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:$,background:E},"&.active":{color:w}}}},{[`${n}-dropdown`]:{[k]:Object.assign(Object.assign({},dn(e)),{minWidth:a,backgroundColor:O,borderRadius:x,boxShadow:N,overflow:"hidden",[`${L}-menu`]:{maxHeight:I,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${ie(u)} 0`,color:j,fontSize:b,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${ie(u)} 0`,paddingInline:u,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:R},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${k}-search`]:{padding:u,borderBottom:H,"&-input":{input:{minWidth:l},[r]:{color:j}}},[`${k}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ie(B(u).sub(f).equal())} ${ie(u)}`,overflow:"hidden",borderTop:H}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:u,color:d},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},bne=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:l,tableBg:c,zIndexTableSticky:u,calc:d}=e,f=r;return{[`${t}-wrapper`]:{[`
|
|
411
|
-
${t}-cell-fix-left,
|
|
412
|
-
${t}-cell-fix-right
|
|
413
|
-
`]:{position:"sticky !important",zIndex:l,background:c},[`
|
|
414
|
-
${t}-cell-fix-left-first::after,
|
|
415
|
-
${t}-cell-fix-left-last::after
|
|
416
|
-
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
417
|
-
${t}-cell-fix-right-first::after,
|
|
418
|
-
${t}-cell-fix-right-last::after
|
|
419
|
-
`]:{position:"absolute",top:0,bottom:d(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(u).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`
|
|
420
|
-
${t}-cell-fix-left-first::after,
|
|
421
|
-
${t}-cell-fix-left-last::after
|
|
422
|
-
`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${f}`},[`
|
|
423
|
-
${t}-cell-fix-right-first::after,
|
|
424
|
-
${t}-cell-fix-right-last::after
|
|
425
|
-
`]:{boxShadow:`inset -10px 0 8px -8px ${f}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
426
|
-
${t}-cell-fix-left-first::after,
|
|
427
|
-
${t}-cell-fix-left-last::after,
|
|
428
|
-
${t}-cell-fix-right-first::after,
|
|
429
|
-
${t}-cell-fix-right-last::after
|
|
430
|
-
`]:{boxShadow:"none"}}}}},yne=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${ie(r)} 0`}}},Cne=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ie(n)} ${ie(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ie(n)} ${ie(n)}`}}}}},Sne=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},xne=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:l,paddingXS:c,headerIconColor:u,headerIconHoverColor:d,tableSelectionColumnWidth:f,tableSelectedRowBg:v,tableSelectedRowHoverBg:g,tableRowHoverBg:p,tablePaddingHorizontal:b,calc:C}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:C(f).add(a).add(C(l).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:C(f).add(C(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:C(f).add(a).add(C(l).div(4)).add(C(c).mul(2)).equal()}},[`
|
|
431
|
-
table tr th${t}-selection-column,
|
|
432
|
-
table tr td${t}-selection-column,
|
|
433
|
-
${t}-selection-column
|
|
434
|
-
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:C(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ie(C(b).div(4).equal()),[r]:{color:u,fontSize:a,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:v,"&-row-hover":{background:g}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},$ne=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(l,c,u,d)=>({[`${t}${t}-${l}`]:{fontSize:d,[`
|
|
435
|
-
${t}-title,
|
|
436
|
-
${t}-footer,
|
|
437
|
-
${t}-cell,
|
|
438
|
-
${t}-thead > tr > th,
|
|
439
|
-
${t}-tbody > tr > th,
|
|
440
|
-
${t}-tbody > tr > td,
|
|
441
|
-
tfoot > tr > th,
|
|
442
|
-
tfoot > tr > td
|
|
443
|
-
`]:{padding:`${ie(c)} ${ie(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ie(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ie(r(c).mul(-1).equal())} ${ie(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ie(r(c).mul(-1).equal()),marginInline:`${ie(r(n).sub(u).equal())} ${ie(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ie(r(u).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},wne=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
444
|
-
&${t}-cell-fix-left:hover,
|
|
445
|
-
&${t}-cell-fix-right:hover
|
|
446
|
-
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},Ene=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:l,tableScrollBg:c,zIndexTableSticky:u,stickyScrollBarBorderRadius:d,lineWidth:f,lineType:v,tableBorderColor:g}=e,p=`${ie(f)} ${v} ${g}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ie(l)} !important`,zIndex:u,display:"flex",alignItems:"center",background:c,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},P4=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,l=`${ie(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 ${ie(a(n).mul(-1).equal())} 0 ${r}`}}}},One=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:l,calc:c}=e,u=`${ie(r)} ${a} ${l}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
447
|
-
& > ${t}-row,
|
|
448
|
-
& > div:not(${t}-row) > ${t}-row
|
|
449
|
-
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:u,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ie(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:u,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:u,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:c(r).mul(-1).equal(),borderInlineStart:u}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:u,borderBottom:u}}}}}},Rne=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:l,lineWidth:c,lineType:u,tableBorderColor:d,tableFontSize:f,tableBg:v,tableRadius:g,tableHeaderTextColor:p,motionDurationMid:b,tableHeaderBg:C,tableHeaderCellSplitColor:x,tableFooterTextColor:h,tableFooterBg:$,calc:w}=e,E=`${ie(c)} ${u} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},qo()),{[t]:Object.assign(Object.assign({},dn(e)),{fontSize:f,background:v,borderRadius:`${ie(g)} ${ie(g)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ie(g)} ${ie(g)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
450
|
-
${t}-cell,
|
|
451
|
-
${t}-thead > tr > th,
|
|
452
|
-
${t}-tbody > tr > th,
|
|
453
|
-
${t}-tbody > tr > td,
|
|
454
|
-
tfoot > tr > th,
|
|
455
|
-
tfoot > tr > td
|
|
456
|
-
`]:{position:"relative",padding:`${ie(r)} ${ie(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ie(r)} ${ie(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:C,borderBottom:E,transition:`background ${b} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:x,transform:"translateY(-50%)",transition:`background-color ${b}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${b}, border-color ${b}`,borderBottom:E,[`
|
|
457
|
-
> ${t}-wrapper:only-child,
|
|
458
|
-
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
459
|
-
`]:{[t]:{marginBlock:ie(w(r).mul(-1).equal()),marginInline:`${ie(w(l).sub(a).equal())}
|
|
460
|
-
${ie(w(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:C,borderBottom:E,transition:`background ${b} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${ie(r)} ${ie(a)}`,color:h,background:$}})}},jne=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:l,controlItemBgActive:c,controlItemBgActiveHover:u,padding:d,paddingSM:f,paddingXS:v,colorBorderSecondary:g,borderRadiusLG:p,controlHeight:b,colorTextPlaceholder:C,fontSize:x,fontSizeSM:h,lineHeight:$,lineWidth:w,colorIcon:E,colorIconHover:j,opacityLoading:O,controlInteractiveSize:I}=e,R=new bn(a).onBackground(n).toHexString(),M=new bn(l).onBackground(n).toHexString(),N=new bn(t).onBackground(n).toHexString(),P=new bn(E),B=new bn(j),L=I/2-w,k=L*2+w*3;return{headerBg:N,headerColor:r,headerSortActiveBg:R,headerSortHoverBg:M,bodySortBg:N,rowHoverBg:N,rowSelectedBg:c,rowSelectedHoverBg:u,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:f,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:g,headerBorderRadius:p,footerBg:N,footerColor:r,cellFontSize:x,cellFontSizeMD:x,cellFontSizeSM:x,headerSplitColor:g,fixedHeaderSortActiveBg:R,headerFilterHoverBg:l,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:b,stickyScrollBarBg:C,stickyScrollBarBorderRadius:100,expandIconMarginTop:(x*$-w*3)/2-Math.ceil((h*1.4-w*3)/2),headerIconColor:P.clone().setA(P.a*O).toRgbString(),headerIconHoverColor:B.clone().setA(B.a*O).toRgbString(),expandIconHalfInner:L,expandIconSize:k,expandIconScale:I/k}},z4=2,Ine=sn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:l,headerColor:c,headerSortActiveBg:u,headerSortHoverBg:d,bodySortBg:f,rowHoverBg:v,rowSelectedBg:g,rowSelectedHoverBg:p,rowExpandedBg:b,cellPaddingBlock:C,cellPaddingInline:x,cellPaddingBlockMD:h,cellPaddingInlineMD:$,cellPaddingBlockSM:w,cellPaddingInlineSM:E,borderColor:j,footerBg:O,footerColor:I,headerBorderRadius:R,cellFontSize:M,cellFontSizeMD:N,cellFontSizeSM:P,headerSplitColor:B,fixedHeaderSortActiveBg:L,headerFilterHoverBg:k,filterDropdownBg:D,expandIconBg:H,selectionColumnWidth:z,stickyScrollBarBg:_,calc:F}=e,W=tn(e,{tableFontSize:M,tableBg:r,tableRadius:R,tablePaddingVertical:C,tablePaddingHorizontal:x,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:$,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:E,tableBorderColor:j,tableHeaderTextColor:c,tableHeaderBg:l,tableFooterTextColor:I,tableFooterBg:O,tableHeaderCellSplitColor:B,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableBodySortBg:f,tableFixedHeaderSortActiveBg:L,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:D,tableRowHoverBg:v,tableSelectedRowBg:g,tableSelectedRowHoverBg:p,zIndexTableFixed:z4,zIndexTableSticky:F(z4).add(1).equal({unit:!1}),tableFontSizeMiddle:N,tableFontSizeSmall:P,tableSelectionColumnWidth:z,tableExpandIconBg:H,tableExpandColumnWidth:F(a).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:b,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:_,tableScrollThumbBgHover:t,tableScrollBg:n});return[Rne(W),yne(W),P4(W),wne(W),hne(W),mne(W),Cne(W),pne(W),P4(W),gne(W),xne(W),bne(W),Ene(W),vne(W),$ne(W),Sne(W),One(W)]},jne,{unitless:{expandIconScale:!0}}),D4=[],Nne=(e,t)=>{var n,r;const{prefixCls:a,className:l,rootClassName:c,style:u,size:d,bordered:f,dropdownPrefixCls:v,dataSource:g,pagination:p,rowSelection:b,rowKey:C="key",rowClassName:x,columns:h,children:$,childrenColumnName:w,onChange:E,getPopupContainer:j,loading:O,expandIcon:I,expandable:R,expandedRowRender:M,expandIconColumnIndex:N,indentSize:P,scroll:B,sortDirections:L,locale:k,showSorterTooltip:D={target:"full-header"},virtual:H}=e;Jo();const z=i.useMemo(()=>h||NC($),[h,$]),_=i.useMemo(()=>z.some(ft=>ft.responsive),[z]),F=Ng(_),W=i.useMemo(()=>{const ft=new Set(Object.keys(F).filter(lt=>F[lt]));return z.filter(lt=>!lt.responsive||lt.responsive.some(At=>ft.has(At)))},[z,F]),q=En(e,["className","style","columns"]),{locale:V=go,direction:G,table:K,renderEmpty:U,getPrefixCls:J,getPopupContainer:Q}=i.useContext(Rt),te=Tr(d),Y=Object.assign(Object.assign({},V.Table),k),ae=g||D4,re=J("table",a),Z=J("dropdown",v),[,X]=la(),oe=dr(re),[le,de,ce]=Ine(re,oe),ge=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:N},R),{expandIcon:(n=R==null?void 0:R.expandIcon)!==null&&n!==void 0?n:(r=K==null?void 0:K.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:he="children"}=ge,Oe=i.useMemo(()=>ae.some(ft=>ft==null?void 0:ft[he])?"nest":M||R!=null&&R.expandedRowRender?"row":null,[ae]),je={body:i.useRef(null)},pe=Jee(re),we=i.useRef(null),Se=i.useRef(null);A7(t,()=>Object.assign(Object.assign({},Se.current),{nativeElement:we.current}));const Ce=i.useMemo(()=>typeof C=="function"?C:ft=>ft==null?void 0:ft[C],[C]),[De]=Zte(ae,he,Ce),Ae={},Qe=(ft,lt,At=!1)=>{var Ut,rn,Qt,pn;const qt=Object.assign(Object.assign({},Ae),ft);At&&((Ut=Ae.resetPagination)===null||Ut===void 0||Ut.call(Ae),!((rn=qt.pagination)===null||rn===void 0)&&rn.current&&(qt.pagination.current=1),p&&((Qt=p.onChange)===null||Qt===void 0||Qt.call(p,1,(pn=qt.pagination)===null||pn===void 0?void 0:pn.pageSize))),B&&B.scrollToFirstRowOnChange!==!1&&je.body.current&&_6(0,{getContainer:()=>je.body.current}),E==null||E(qt.pagination,qt.filters,qt.sorter,{currentDataSource:Qy(Jy(ae,qt.sorterStates,he),qt.filterStates,he),action:lt})},Ke=(ft,lt)=>{Qe({sorter:ft,sorterStates:lt},"sort",!1)},[Fe,Ge,Te,Ee]=cne({prefixCls:re,mergedColumns:W,onSorterChange:Ke,sortDirections:L||["ascend","descend"],tableLocale:Y,showSorterTooltip:D}),_e=i.useMemo(()=>Jy(ae,Ge,he),[ae,Ge]);Ae.sorter=Ee(),Ae.sorterStates=Ge;const Re=(ft,lt)=>{Qe({filters:ft,filterStates:lt},"filter",!0)},[Pe,ye,$e]=Qte({prefixCls:re,locale:Y,dropdownPrefixCls:Z,mergedColumns:W,onFilterChange:Re,getPopupContainer:j||Q,rootClassName:ue(c,oe)}),Me=Qy(_e,ye,he);Ae.filters=$e,Ae.filterStates=ye;const Le=i.useMemo(()=>{const ft={};return Object.keys($e).forEach(lt=>{$e[lt]!==null&&(ft[lt]=$e[lt])}),Object.assign(Object.assign({},Te),{filters:ft})},[Te,$e]),[tt]=une(Le),yt=(ft,lt)=>{Qe({pagination:Object.assign(Object.assign({},Ae.pagination),{current:ft,pageSize:lt})},"paginate")},[We,nt]=tne(Me.length,yt,p);Ae.pagination=p===!1?{}:ene(We,p),Ae.resetPagination=nt;const dt=i.useMemo(()=>{if(p===!1||!We.pageSize)return Me;const{current:ft=1,total:lt,pageSize:At=PN}=We;return Me.length<lt?Me.length>At?Me.slice((ft-1)*At,ft*At):Me:Me.slice((ft-1)*At,ft*At)},[!!p,Me,We==null?void 0:We.current,We==null?void 0:We.pageSize,We==null?void 0:We.total]),[at,pt]=Qee({prefixCls:re,data:Me,pageData:dt,getRowKey:Ce,getRecordByKey:De,expandType:Oe,childrenColumnName:he,locale:Y,getPopupContainer:j||Q},b),zt=(ft,lt,At)=>{let Ut;return typeof x=="function"?Ut=ue(x(ft,lt,At)):Ut=ue(x),ue({[`${re}-row-selected`]:pt.has(Ce(ft,lt))},Ut)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||I||Zee(Y),Oe==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=b?1:0:ge.expandIconColumnIndex>0&&b&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof P=="number"?P:15);const Ot=i.useCallback(ft=>tt(at(Pe(Fe(ft)))),[Fe,Pe,at]),ct=()=>{if(p===!1||!(We!=null&&We.total))return{};const ft=()=>We.size||(te==="small"||te==="middle"?"small":void 0),lt=Ye=>{const Ze=Ye==="left"?"start":Ye==="right"?"end":Ye;return i.createElement(XI,Object.assign({},We,{align:We.align||Ze,className:ue(`${re}-pagination`,We.className),size:ft()}))},At=G==="rtl"?"left":"right",Ut=We.position;if(Ut===null||!Array.isArray(Ut))return{bottom:lt(At)};const rn=Ut.find(Ye=>typeof Ye=="string"&&Ye.toLowerCase().includes("top")),Qt=Ut.find(Ye=>typeof Ye=="string"&&Ye.toLowerCase().includes("bottom")),pn=Ut.every(Ye=>`${Ye}`=="none"),qt=rn?rn.toLowerCase().replace("top",""):"",un=Qt?Qt.toLowerCase().replace("bottom",""):"",st=!rn&&!Qt&&!pn,xt=()=>qt?lt(qt):void 0,ht=()=>{if(un)return lt(un);if(st)return lt(At)};return{top:xt(),bottom:ht()}},$t=i.useMemo(()=>typeof O=="boolean"?{spinning:O}:typeof O=="object"&&O!==null?Object.assign({spinning:!0},O):void 0,[O]),St=ue(ce,oe,`${re}-wrapper`,K==null?void 0:K.className,{[`${re}-wrapper-rtl`]:G==="rtl"},l,c,de),et=Object.assign(Object.assign({},K==null?void 0:K.style),u),Ve=i.useMemo(()=>$t!=null&&$t.spinning&&ae===D4?null:typeof(k==null?void 0:k.emptyText)<"u"?k.emptyText:(U==null?void 0:U("Table"))||i.createElement(vf,{componentName:"Table"}),[$t==null?void 0:$t.spinning,ae,k==null?void 0:k.emptyText,U]),Ue=H?fne:dne,mt={},Tt=i.useMemo(()=>{const{fontSize:ft,lineHeight:lt,lineWidth:At,padding:Ut,paddingXS:rn,paddingSM:Qt}=X,pn=Math.floor(ft*lt);switch(te){case"middle":return Qt*2+pn+At;case"small":return rn*2+pn+At;default:return Ut*2+pn+At}},[X,te]);H&&(mt.listItemHeight=Tt);const{top:Nt,bottom:Vt}=ct();return le(i.createElement("div",{ref:we,className:St,style:et},i.createElement(Pa,Object.assign({spinning:!1},$t),Nt,i.createElement(Ue,Object.assign({},mt,q,{ref:Se,columns:W,direction:G,expandable:ge,prefixCls:re,className:ue({[`${re}-middle`]:te==="middle",[`${re}-small`]:te==="small",[`${re}-bordered`]:f,[`${re}-empty`]:ae.length===0},ce,oe,de),data:dt,rowKey:Ce,rowClassName:zt,emptyText:Ve,internalHooks:xf,internalRefs:je,transformColumns:Ot,getContainerWidth:pe,measureRowRender:ft=>i.createElement(Po,{getPopupContainer:lt=>lt},ft)})),Vt)))},Mne=i.forwardRef(Nne),Tne=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(Mne,Object.assign({},e,{ref:t,_renderTimes:n.current}))},xr=i.forwardRef(Tne);xr.SELECTION_COLUMN=il;xr.EXPAND_COLUMN=ll;xr.SELECTION_ALL=Uy;xr.SELECTION_INVERT=qy;xr.SELECTION_NONE=Gy;xr.Column=Hee;xr.ColumnGroup=Fee;xr.Summary=dN;const Pne=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:l}=e,c=l(r).sub(n).equal(),u=l(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},dn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:u,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},AC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return tn(e,{tagFontSize:a,tagLineHeight:ie(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},BC=e=>({defaultBg:new bn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),_N=sn("Tag",e=>{const t=AC(e);return Pne(t)},BC);var zne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Dne=i.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:l,children:c,icon:u,onChange:d,onClick:f}=e,v=zne(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:p}=i.useContext(Rt),b=E=>{d==null||d(!l),f==null||f(E)},C=g("tag",n),[x,h,$]=_N(C),w=ue(C,`${C}-checkable`,{[`${C}-checkable-checked`]:l},p==null?void 0:p.className,a,h,$);return x(i.createElement("span",Object.assign({},v,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:w,onClick:b}),u,i.createElement("span",null,c)))}),_ne=e=>cg(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Ane=Gc(["Tag","preset"],e=>{const t=AC(e);return _ne(t)},BC);function Bne(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Qm=(e,t,n)=>{const r=Bne(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},kne=Gc(["Tag","status"],e=>{const t=AC(e);return[Qm(t,"success","Success"),Qm(t,"processing","Info"),Qm(t,"error","Error"),Qm(t,"warning","Warning")]},BC);var Lne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Hne=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,children:c,icon:u,color:d,onClose:f,bordered:v=!0,visible:g}=e,p=Lne(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:C,tag:x}=i.useContext(Rt),[h,$]=i.useState(!0),w=En(p,["closeIcon","closable"]);i.useEffect(()=>{g!==void 0&&$(g)},[g]);const E=Pg(d),j=tF(d),O=E||j,I=Object.assign(Object.assign({backgroundColor:d&&!O?d:void 0},x==null?void 0:x.style),l),R=b("tag",n),[M,N,P]=_N(R),B=ue(R,x==null?void 0:x.className,{[`${R}-${d}`]:O,[`${R}-has-color`]:d&&!O,[`${R}-hidden`]:!h,[`${R}-rtl`]:C==="rtl",[`${R}-borderless`]:!v},r,a,N,P),L=F=>{F.stopPropagation(),f==null||f(F),!F.defaultPrevented&&$(!1)},[,k]=H6(Dv(e),Dv(x),{closable:!1,closeIconRender:F=>{const W=i.createElement("span",{className:`${R}-close-icon`,onClick:L},F);return S1(F,W,q=>({onClick:V=>{var G;(G=q==null?void 0:q.onClick)===null||G===void 0||G.call(q,V),L(V)},className:ue(q==null?void 0:q.className,`${R}-close-icon`)}))}}),D=typeof p.onClick=="function"||c&&c.type==="a",H=u||null,z=H?i.createElement(i.Fragment,null,H,c&&i.createElement("span",null,c)):c,_=i.createElement("span",Object.assign({},w,{ref:t,className:B,style:I}),z,k,E&&i.createElement(Ane,{key:"preset",prefixCls:R}),j&&i.createElement(kne,{key:"status",prefixCls:R}));return M(D?i.createElement(af,{component:"Tag"},_):_)}),mn=Hne;mn.CheckableTag=Dne;var Fne={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"},Vne=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Fne}))},Er=i.forwardRef(Vne),Wne={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"},Kne=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Wne}))},ss=i.forwardRef(Kne),Une={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"},qne=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Une}))},Gne=i.forwardRef(qne);const Xne=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Yne=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
461
|
-
h${r}&,
|
|
462
|
-
div&-h${r},
|
|
463
|
-
div&-h${r} > textarea,
|
|
464
|
-
h${r}
|
|
465
|
-
`]=Xne(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Qne=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},b1(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Zne=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:Tv[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}}),Jne=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"}}}},ere=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),tre=()=>({"\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"}}),nre=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({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"}},Yne(e)),{[`
|
|
466
|
-
& + h1${t},
|
|
467
|
-
& + h2${t},
|
|
468
|
-
& + h3${t},
|
|
469
|
-
& + h4${t},
|
|
470
|
-
& + h5${t}
|
|
471
|
-
`]:{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}}}),Zne(e)),Qne(e)),{[`
|
|
472
|
-
${t}-expand,
|
|
473
|
-
${t}-collapse,
|
|
474
|
-
${t}-edit,
|
|
475
|
-
${t}-copy
|
|
476
|
-
`]:Object.assign(Object.assign({},b1(e)),{marginInlineStart:e.marginXXS})}),Jne(e)),ere(e)),tre()),{"&-rtl":{direction:"rtl"}})}},rre=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),AN=sn("Typography",nre,rre),are=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:l,maxLength:c,autoSize:u=!0,value:d,onSave:f,onCancel:v,onEnd:g,component:p,enterIcon:b=i.createElement(Gne,null)}=e,C=i.useRef(null),x=i.useRef(!1),h=i.useRef(null),[$,w]=i.useState(d);i.useEffect(()=>{w(d)},[d]),i.useEffect(()=>{var D;if(!((D=C.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:H}=C.current.resizableTextArea;H.focus();const{length:z}=H.value;H.setSelectionRange(z,z)}},[]);const E=({target:D})=>{w(D.value.replace(/[\n\r]/g,""))},j=()=>{x.current=!0},O=()=>{x.current=!1},I=({keyCode:D})=>{x.current||(h.current=D)},R=()=>{f($.trim())},M=({keyCode:D,ctrlKey:H,altKey:z,metaKey:_,shiftKey:F})=>{h.current!==D||x.current||H||z||_||F||(D===ot.ENTER?(R(),g==null||g()):D===ot.ESC&&v())},N=()=>{R()},[P,B,L]=AN(t),k=ue(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${p}`]:!!p},r,B,L);return P(i.createElement("div",{className:k,style:a},i.createElement(KI,{ref:C,maxLength:c,value:$,onChange:E,onKeyDown:I,onKeyUp:M,onCompositionStart:j,onCompositionEnd:O,onBlur:N,"aria-label":n,rows:1,autoSize:u}),b!==null?Or(b,{className:`${t}-edit-content-confirm`}):null))};var ib,_4;function ore(){return _4||(_4=1,ib=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),ib}var lb,A4;function ire(){if(A4)return lb;A4=1;var e=ore(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,c)}function a(l,c){var u,d,f,v,g,p,b=!1;c||(c={}),u=c.debug||!1;try{f=e(),v=document.createRange(),g=document.getSelection(),p=document.createElement("span"),p.textContent=l,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(x){if(x.stopPropagation(),c.format)if(x.preventDefault(),typeof x.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=t[c.format]||t.default;window.clipboardData.setData(h,l)}else x.clipboardData.clearData(),x.clipboardData.setData(c.format,l);c.onCopy&&(x.preventDefault(),c.onCopy(x.clipboardData))}),document.body.appendChild(p),v.selectNodeContents(p),g.addRange(v);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");b=!0}catch(x){u&&console.error("unable to copy using execCommand: ",x),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",l),c.onCopy&&c.onCopy(window.clipboardData),b=!0}catch(h){u&&console.error("unable to copy using clipboardData: ",h),u&&console.error("falling back to prompt"),d=r("message"in c?c.message:n),window.prompt(d,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(v):g.removeAllRanges()),p&&document.body.removeChild(p),f()}return b}return lb=a,lb}var lre=ire();const sre=To(lre);var cre=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,t||[])).next())})};const ure=({copyConfig:e,children:t})=>{const[n,r]=i.useState(!1),[a,l]=i.useState(!1),c=i.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},d={};e.format&&(d.format=e.format),i.useEffect(()=>u,[]);const f=Xt(v=>cre(void 0,void 0,void 0,function*(){var g;v==null||v.preventDefault(),v==null||v.stopPropagation(),l(!0);try{const p=typeof e.text=="function"?yield e.text():e.text;sre(p||yZ(t,!0).join("")||"",d),l(!1),r(!0),u(),c.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,v)}catch(p){throw l(!1),p}}));return{copied:n,copyLoading:a,onClick:f}};function sb(e,t){return i.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const dre=e=>{const t=i.useRef(void 0);return i.useEffect(()=>{t.current=e}),t.current},fre=(e,t,n)=>i.useMemo(()=>e===!0?{title:t??n}:i.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var mre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const BN=i.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:l,setContentRef:c,children:u,direction:d,style:f}=e,v=mre(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,className:b,style:C}=vr("typography"),x=d??p,h=c?Mr(t,c):t,$=g("typography",n),[w,E,j]=AN($),O=ue($,b,{[`${$}-rtl`]:x==="rtl"},a,l,E,j),I=Object.assign(Object.assign({},C),f);return w(i.createElement(r,Object.assign({className:O,style:I,ref:h},v),u))});var vre={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"},gre=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:vre}))},Zo=i.forwardRef(gre);function B4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function cb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function pre(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 kC=e=>["string","number"].includes(typeof e),hre=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:l,tabIndex:c,onCopy:u,loading:d})=>{const f=B4(a),v=B4(l),{copied:g,copy:p}=n??{},b=t?g:p,C=cb(f[t?1:0],b),x=typeof C=="string"?C:b;return i.createElement(An,{title:C},i.createElement("button",{type:"button",className:ue(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":x,tabIndex:c},t?cb(v[1],i.createElement(ws,null),!0):cb(v[0],d?i.createElement(No,null):i.createElement(Zo,null),!0)))},Zm=i.forwardRef(({style:e,children:t},n)=>{const r=i.useRef(null);return i.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),i.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),bre=e=>e.reduce((t,n)=>t+(kC(n)?String(n).length:1),0);function k4(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const l=e[a],u=kC(l)?String(l).length:1,d=n+u;if(d>t){const f=t-n;return r.push(String(l).slice(0,f)),r}r.push(l),n=d}return e}const ub=0,db=1,fb=2,mb=3,L4=4,Jm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function yre(e){const{enableMeasure:t,width:n,text:r,children:a,rows:l,expanded:c,miscDeps:u,onEllipsis:d}=e,f=i.useMemo(()=>Yr(r),[r]),v=i.useMemo(()=>bre(f),[r]),g=i.useMemo(()=>a(f,!1),[r]),[p,b]=i.useState(null),C=i.useRef(null),x=i.useRef(null),h=i.useRef(null),$=i.useRef(null),w=i.useRef(null),[E,j]=i.useState(!1),[O,I]=i.useState(ub),[R,M]=i.useState(0),[N,P]=i.useState(null);nn(()=>{I(t&&n&&v?db:ub)},[n,r,l,t,f]),nn(()=>{var D,H,z,_;if(O===db){I(fb);const F=x.current&&getComputedStyle(x.current).whiteSpace;P(F)}else if(O===fb){const F=!!(!((D=h.current)===null||D===void 0)&&D.isExceed());I(F?mb:L4),b(F?[0,v]:null),j(F);const W=((H=h.current)===null||H===void 0?void 0:H.getHeight())||0,q=l===1?0:((z=$.current)===null||z===void 0?void 0:z.getHeight())||0,V=((_=w.current)===null||_===void 0?void 0:_.getHeight())||0,G=Math.max(W,q+V);M(G+1),d(F)}},[O]);const B=p?Math.ceil((p[0]+p[1])/2):0;nn(()=>{var D;const[H,z]=p||[0,0];if(H!==z){const F=(((D=C.current)===null||D===void 0?void 0:D.getHeight())||0)>R;let W=B;z-H===1&&(W=F?H:z),b(F?[H,W]:[W,z])}},[p,B]);const L=i.useMemo(()=>{if(!t)return a(f,!1);if(O!==mb||!p||p[0]!==p[1]){const D=a(f,!1);return[L4,ub].includes(O)?D:i.createElement("span",{style:Object.assign(Object.assign({},Jm),{WebkitLineClamp:l})},D)}return a(c?f:k4(f,p[0]),E)},[c,O,p,f].concat(Ne(u))),k={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return i.createElement(i.Fragment,null,L,O===fb&&i.createElement(i.Fragment,null,i.createElement(Zm,{style:Object.assign(Object.assign(Object.assign({},k),Jm),{WebkitLineClamp:l}),ref:h},g),i.createElement(Zm,{style:Object.assign(Object.assign(Object.assign({},k),Jm),{WebkitLineClamp:l-1}),ref:$},g),i.createElement(Zm,{style:Object.assign(Object.assign(Object.assign({},k),Jm),{WebkitLineClamp:1}),ref:w},a([],!0))),O===mb&&p&&p[0]!==p[1]&&i.createElement(Zm,{style:Object.assign(Object.assign({},k),{top:400}),ref:C},a(k4(f,B),!0)),O===db&&i.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const Cre=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:i.createElement(An,Object.assign({open:t?void 0:!1},r),n);var Sre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function xre({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:l,italic:c},u){let d=u;function f(v,g){g&&(d=i.createElement(v,{},d))}return f("strong",a),f("u",n),f("del",r),f("code",t),f("mark",e),f("kbd",l),f("i",c),d}const $re="...",H4=["delete","mark","code","underline","strong","keyboard","italic"],tp=i.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:l,type:c,disabled:u,children:d,ellipsis:f,editable:v,copyable:g,component:p,title:b}=e,C=Sre(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:h}=i.useContext(Rt),[$]=za("Text"),w=i.useRef(null),E=i.useRef(null),j=x("typography",r),O=En(C,H4),[I,R]=sb(v),[M,N]=yn(!1,{value:R.editing}),{triggerType:P=["icon"]}=R,B=ye=>{var $e;ye&&(($e=R.onStart)===null||$e===void 0||$e.call(R)),N(ye)},L=dre(M);nn(()=>{var ye;!M&&L&&((ye=E.current)===null||ye===void 0||ye.focus())},[M]);const k=ye=>{ye==null||ye.preventDefault(),B(!0)},D=ye=>{var $e;($e=R.onChange)===null||$e===void 0||$e.call(R,ye),B(!1)},H=()=>{var ye;(ye=R.onCancel)===null||ye===void 0||ye.call(R),B(!1)},[z,_]=sb(g),{copied:F,copyLoading:W,onClick:q}=ure({copyConfig:_,children:d}),[V,G]=i.useState(!1),[K,U]=i.useState(!1),[J,Q]=i.useState(!1),[te,Y]=i.useState(!1),[ae,re]=i.useState(!0),[Z,X]=sb(f,{expandable:!1,symbol:ye=>ye?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[oe,le]=yn(X.defaultExpanded||!1,{value:X.expanded}),de=Z&&(!oe||X.expandable==="collapsible"),{rows:ce=1}=X,ge=i.useMemo(()=>de&&(X.suffix!==void 0||X.onEllipsis||X.expandable||I||z),[de,X,I,z]);nn(()=>{Z&&!ge&&(G(Sy("webkitLineClamp")),U(Sy("textOverflow")))},[ge,Z]);const[he,Oe]=i.useState(de),je=i.useMemo(()=>ge?!1:ce===1?K:V,[ge,K,V]);nn(()=>{Oe(je&&de)},[je,de]);const pe=de&&(he?te:J),we=de&&ce===1&&he,Se=de&&ce>1&&he,Ce=(ye,$e)=>{var Me;le($e.expanded),(Me=X.onExpand)===null||Me===void 0||Me.call(X,ye,$e)},[De,Ae]=i.useState(0),Qe=({offsetWidth:ye})=>{Ae(ye)},Ke=ye=>{var $e;Q(ye),J!==ye&&(($e=X.onEllipsis)===null||$e===void 0||$e.call(X,ye))};i.useEffect(()=>{const ye=w.current;if(Z&&he&&ye){const $e=pre(ye);te!==$e&&Y($e)}},[Z,he,d,Se,ae,De]),i.useEffect(()=>{const ye=w.current;if(typeof IntersectionObserver>"u"||!ye||!he||!de)return;const $e=new IntersectionObserver(()=>{re(!!ye.offsetParent)});return $e.observe(ye),()=>{$e.disconnect()}},[he,de]);const Fe=fre(X.tooltip,R.text,d),Ge=i.useMemo(()=>{if(!(!Z||he))return[R.text,d,b,Fe.title].find(kC)},[Z,he,b,Fe.title,pe]);if(M)return i.createElement(are,{value:(n=R.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:D,onCancel:H,onEnd:R.onEnd,prefixCls:j,className:a,style:l,direction:h,component:p,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const Te=()=>{const{expandable:ye,symbol:$e}=X;return ye?i.createElement("button",{type:"button",key:"expand",className:`${j}-${oe?"collapse":"expand"}`,onClick:Me=>Ce(Me,{expanded:!oe}),"aria-label":oe?$.collapse:$==null?void 0:$.expand},typeof $e=="function"?$e(oe):$e):null},Ee=()=>{if(!I)return;const{icon:ye,tooltip:$e,tabIndex:Me}=R,Le=Yr($e)[0]||($==null?void 0:$.edit),tt=typeof Le=="string"?Le:"";return P.includes("icon")?i.createElement(An,{key:"edit",title:$e===!1?"":Le},i.createElement("button",{type:"button",ref:E,className:`${j}-edit`,onClick:k,"aria-label":tt,tabIndex:Me},ye||i.createElement(ss,{role:"button"}))):null},_e=()=>z?i.createElement(hre,Object.assign({key:"copy"},_,{prefixCls:j,copied:F,locale:$,onCopy:q,loading:W,iconOnly:d==null})):null,Re=ye=>[ye&&Te(),Ee(),_e()],Pe=ye=>[ye&&!oe&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$re),X.suffix,Re(ye)];return i.createElement(va,{onResize:Qe,disabled:!de},ye=>i.createElement(Cre,{tooltipProps:Fe,enableEllipsis:de,isEllipsis:pe},i.createElement(BN,Object.assign({className:ue({[`${j}-${c}`]:c,[`${j}-disabled`]:u,[`${j}-ellipsis`]:Z,[`${j}-ellipsis-single-line`]:we,[`${j}-ellipsis-multiple-line`]:Se},a),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Se?ce:void 0}),component:p,ref:Mr(ye,w,t),direction:h,onClick:P.includes("text")?k:void 0,"aria-label":Ge==null?void 0:Ge.toString(),title:b},O),i.createElement(yre,{enableMeasure:de&&!he,text:d,rows:ce,width:De,onEllipsis:Ke,expanded:oe,miscDeps:[F,oe,W,I,z,$].concat(Ne(H4.map($e=>e[$e])))},($e,Me)=>xre(e,i.createElement(i.Fragment,null,$e.length>0&&Me&&!oe&&Ge?i.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,Pe(Me)))))))});var wre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ere=i.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:l}=e,c=wre(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},c),{rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r});return i.createElement(tp,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),a)});var Ore=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Rre=i.forwardRef((e,t)=>{const{children:n}=e,r=Ore(e,["children"]);return i.createElement(tp,Object.assign({ref:t},r,{component:"div"}),n)});var jre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ire=(e,t)=>{const{ellipsis:n,children:r}=e,a=jre(e,["ellipsis","children"]),l=i.useMemo(()=>n&&typeof n=="object"?En(n,["expandable","rows"]):n,[n]);return i.createElement(tp,Object.assign({ref:t},a,{ellipsis:l,component:"span"}),r)},Nre=i.forwardRef(Ire);var Mre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Tre=[1,2,3,4,5],Pre=i.forwardRef((e,t)=>{const{level:n=1,children:r}=e,a=Mre(e,["level","children"]),l=Tre.includes(n)?`h${n}`:"h1";return i.createElement(tp,Object.assign({ref:t},a,{component:l}),r)}),lr=BN;lr.Text=Nre;lr.Link=Ere;lr.Title=Pre;lr.Paragraph=Rre;const vb=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",l=a.replace(/\/.*$/,"");return n.some(function(c){var u=c.trim();if(/^\*(\/\*)?$/.test(c))return!0;if(u.charAt(0)==="."){var d=r.toLowerCase(),f=u.toLowerCase(),v=[f];return(f===".jpg"||f===".jpeg")&&(v=[".jpg",".jpeg"]),v.some(function(g){return d.endsWith(g)})}return/\/\*$/.test(u)?l===u.replace(/\/.*$/,""):a===u?!0:/^\w+$/.test(u)?(Xn(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0});function zre(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function F4(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function V4(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var l=e.data[a];if(Array.isArray(l)){l.forEach(function(c){n.append("".concat(a,"[]"),c)});return}n.append(a,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(l){e.onError(l)},t.onload=function(){return t.status<200||t.status>=300?e.onError(zre(e,t),F4(t)):e.onSuccess(F4(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var Dre=(function(){var e=wa(Vn().mark(function t(n,r){var a,l,c,u,d,f,v,g;return Vn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:f=function(){return f=wa(Vn().mark(function x(h){return Vn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(E){h.file(function(j){r(j)?(h.fullPath&&!j.webkitRelativePath&&(Object.defineProperties(j,{webkitRelativePath:{writable:!0}}),j.webkitRelativePath=h.fullPath.replace(/^\//,""),Object.defineProperties(j,{webkitRelativePath:{writable:!1}})),E(j)):E(null)})}));case 1:case"end":return w.stop()}},x)})),f.apply(this,arguments)},d=function(x){return f.apply(this,arguments)},u=function(){return u=wa(Vn().mark(function x(h){var $,w,E,j,O;return Vn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:$=h.createReader(),w=[];case 2:return R.next=5,new Promise(function(M){$.readEntries(M,function(){return M([])})});case 5:if(E=R.sent,j=E.length,j){R.next=9;break}return R.abrupt("break",12);case 9:for(O=0;O<j;O++)w.push(E[O]);R.next=2;break;case 12:return R.abrupt("return",w);case 13:case"end":return R.stop()}},x)})),u.apply(this,arguments)},c=function(x){return u.apply(this,arguments)},a=[],l=[],n.forEach(function(C){return l.push(C.webkitGetAsEntry())}),v=(function(){var C=wa(Vn().mark(function x(h,$){var w,E;return Vn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(h){O.next=2;break}return O.abrupt("return");case 2:if(h.path=$||"",!h.isFile){O.next=10;break}return O.next=6,d(h);case 6:w=O.sent,w&&a.push(w),O.next=15;break;case 10:if(!h.isDirectory){O.next=15;break}return O.next=13,c(h);case 13:E=O.sent,l.push.apply(l,Ne(E));case 15:case"end":return O.stop()}},x)}));return function(h,$){return C.apply(this,arguments)}})(),g=0;case 9:if(!(g<l.length)){b.next=15;break}return b.next=12,v(l[g]);case 12:g++,b.next=9;break;case 15:return b.abrupt("return",a);case 16:case"end":return b.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}})(),_re=+new Date,Are=0;function gb(){return"rc-upload-".concat(_re,"-").concat(++Are)}var Bre=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],kre=(function(e){Ya(n,e);var t=po(n);function n(){var r;fr(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),ne(wt(r),"state",{uid:gb()}),ne(wt(r),"reqs",{}),ne(wt(r),"fileInput",void 0),ne(wt(r),"_isMounted",void 0),ne(wt(r),"onChange",function(u){var d=r.props,f=d.accept,v=d.directory,g=u.target.files,p=Ne(g).filter(function(b){return!v||vb(b,f)});r.uploadFiles(p),r.reset()}),ne(wt(r),"onClick",function(u){var d=r.fileInput;if(d){var f=u.target,v=r.props.onClick;if(f&&f.tagName==="BUTTON"){var g=d.parentNode;g.focus(),f.blur()}d.click(),v&&v(u)}}),ne(wt(r),"onKeyDown",function(u){u.key==="Enter"&&r.onClick(u)}),ne(wt(r),"onDataTransferFiles",(function(){var u=wa(Vn().mark(function d(f,v){var g,p,b,C,x,h,$;return Vn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(g=r.props,p=g.multiple,b=g.accept,C=g.directory,x=Ne(f.items||[]),h=Ne(f.files||[]),(h.length>0||x.some(function(j){return j.kind==="file"}))&&(v==null||v()),!C){E.next=11;break}return E.next=7,Dre(Array.prototype.slice.call(x),function(j){return vb(j,r.props.accept)});case 7:h=E.sent,r.uploadFiles(h),E.next=14;break;case 11:$=Ne(h).filter(function(j){return vb(j,b)}),p===!1&&($=h.slice(0,1)),r.uploadFiles($);case 14:case"end":return E.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}})()),ne(wt(r),"onFilePaste",(function(){var u=wa(Vn().mark(function d(f){var v,g;return Vn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(v=r.props.pastable,v){b.next=3;break}return b.abrupt("return");case 3:if(f.type!=="paste"){b.next=6;break}return g=f.clipboardData,b.abrupt("return",r.onDataTransferFiles(g,function(){f.preventDefault()}));case 6:case"end":return b.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),ne(wt(r),"onFileDragOver",function(u){u.preventDefault()}),ne(wt(r),"onFileDrop",(function(){var u=wa(Vn().mark(function d(f){var v;return Vn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(f.preventDefault(),f.type!=="drop"){p.next=4;break}return v=f.dataTransfer,p.abrupt("return",r.onDataTransferFiles(v));case 4:case"end":return p.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),ne(wt(r),"uploadFiles",function(u){var d=Ne(u),f=d.map(function(v){return v.uid=gb(),r.processFile(v,d)});Promise.all(f).then(function(v){var g=r.props.onBatchStart;g==null||g(v.map(function(p){var b=p.origin,C=p.parsedFile;return{file:b,parsedFile:C}})),v.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),ne(wt(r),"processFile",(function(){var u=wa(Vn().mark(function d(f,v){var g,p,b,C,x,h,$,w,E;return Vn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(g=r.props.beforeUpload,p=f,!g){O.next=14;break}return O.prev=3,O.next=6,g(f,v);case 6:p=O.sent,O.next=12;break;case 9:O.prev=9,O.t0=O.catch(3),p=!1;case 12:if(p!==!1){O.next=14;break}return O.abrupt("return",{origin:f,parsedFile:null,action:null,data:null});case 14:if(b=r.props.action,typeof b!="function"){O.next=21;break}return O.next=18,b(f);case 18:C=O.sent,O.next=22;break;case 21:C=b;case 22:if(x=r.props.data,typeof x!="function"){O.next=29;break}return O.next=26,x(f);case 26:h=O.sent,O.next=30;break;case 29:h=x;case 30:return $=(Et(p)==="object"||typeof p=="string")&&p?p:f,$ instanceof File?w=$:w=new File([$],f.name,{type:f.type}),E=w,E.uid=f.uid,O.abrupt("return",{origin:f,data:h,parsedFile:E,action:C});case 35:case"end":return O.stop()}},d,null,[[3,9]])}));return function(d,f){return u.apply(this,arguments)}})()),ne(wt(r),"saveFileInput",function(u){r.fileInput=u}),r}return mr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var l=this.props.pastable;l&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!l&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var l=this,c=a.data,u=a.origin,d=a.action,f=a.parsedFile;if(this._isMounted){var v=this.props,g=v.onStart,p=v.customRequest,b=v.name,C=v.headers,x=v.withCredentials,h=v.method,$=u.uid,w=p||V4,E={action:d,filename:b,data:c,file:f,headers:C,withCredentials:x,method:h||"post",onProgress:function(O){var I=l.props.onProgress;I==null||I(O,f)},onSuccess:function(O,I){var R=l.props.onSuccess;R==null||R(O,f,I),delete l.reqs[$]},onError:function(O,I){var R=l.props.onError;R==null||R(O,I,f),delete l.reqs[$]}};g(u),this.reqs[$]=w(E,{defaultRequest:V4})}}},{key:"reset",value:function(){this.setState({uid:gb()})}},{key:"abort",value:function(a){var l=this.reqs;if(a){var c=a.uid?a.uid:a;l[c]&&l[c].abort&&l[c].abort(),delete l[c]}else Object.keys(l).forEach(function(u){l[u]&&l[u].abort&&l[u].abort(),delete l[u]})}},{key:"render",value:function(){var a=this.props,l=a.component,c=a.prefixCls,u=a.className,d=a.classNames,f=d===void 0?{}:d,v=a.disabled,g=a.id,p=a.name,b=a.style,C=a.styles,x=C===void 0?{}:C,h=a.multiple,$=a.accept,w=a.capture,E=a.children,j=a.directory,O=a.folder,I=a.openFileDialogOnClick,R=a.onMouseEnter,M=a.onMouseLeave,N=a.hasControlInside,P=Lt(a,Bre),B=ue(ne(ne(ne({},c,!0),"".concat(c,"-disabled"),v),u,u)),L=j||O?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=v?{}:{onClick:I?this.onClick:function(){},onKeyDown:I?this.onKeyDown:function(){},onMouseEnter:R,onMouseLeave:M,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:N?void 0:"0"};return ve.createElement(l,be({},k,{className:B,role:N?void 0:"button",style:b}),ve.createElement("input",be({},Nr(P,{aria:!0,data:!0}),{id:g,name:p,disabled:v,type:"file",ref:this.saveFileInput,onClick:function(H){return H.stopPropagation()},key:this.state.uid,style:se({display:"none"},x.input),className:f.input,accept:$},L,{multiple:h,onChange:this.onChange},w!=null?{capture:w}:{})),E)}}]),n})(i.Component);function pb(){}var e1=(function(e){Ya(n,e);var t=po(n);function n(){var r;fr(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),ne(wt(r),"uploader",void 0),ne(wt(r),"saveUploader",function(u){r.uploader=u}),r}return mr(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return ve.createElement(kre,be({},this.props,{ref:this.saveUploader}))}}]),n})(i.Component);ne(e1,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pb,onError:pb,onSuccess:pb,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Lre=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
477
|
-
&:not(${t}-disabled):hover,
|
|
478
|
-
&-hover:not(${t}-disabled)
|
|
479
|
-
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ie(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
480
|
-
p${t}-text,
|
|
481
|
-
p${t}-hint
|
|
482
|
-
`]:{color:e.colorTextDisabled}}}}}},Hre=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:l}=e,c=`${t}-list-item`,u=`${c}-actions`,d=`${c}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},qo()),{lineHeight:e.lineHeight,[c]:{position:"relative",height:l(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${c}-name`]:Object.assign(Object.assign({},Ga),{padding:`0 ${ie(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[u]:{whiteSpace:"nowrap",[d]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
483
|
-
${d}:focus-visible,
|
|
484
|
-
&.picture ${d}
|
|
485
|
-
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${c}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:l(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${c}:hover ${d}`]:{opacity:1},[`${c}-error`]:{color:e.colorError,[`${c}-name, ${t}-icon ${n}`]:{color:e.colorError},[u]:{[`${n}, ${n}:hover`]:{color:e.colorError},[d]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Fre=e=>{const{componentCls:t}=e,n=new Jt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Jt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:I1(e)},n,r]},Vre=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:l}=e,c=`${t}-list`,u=`${c}-item`;return{[`${t}-wrapper`]:{[`
|
|
486
|
-
${c}${c}-picture,
|
|
487
|
-
${c}${c}-picture-card,
|
|
488
|
-
${c}${c}-picture-circle
|
|
489
|
-
`]:{[u]:{position:"relative",height:l(r).add(l(e.lineWidth).mul(2)).add(l(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},Ga),{width:r,height:r,lineHeight:ie(l(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${u}-progress`]:{bottom:a,width:`calc(100% - ${ie(l(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:l(r).add(e.paddingXS).equal()}},[`${u}-error`]:{borderColor:e.colorError,[`${u}-thumbnail ${n}`]:{[`svg path[fill='${_c[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${_c.primary}']`]:{fill:e.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:a}}},[`${c}${c}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},Wre=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:l}=e,c=`${t}-list`,u=`${c}-item`,d=e.uploadPicCardSize;return{[`
|
|
490
|
-
${t}-wrapper${t}-picture-card-wrapper,
|
|
491
|
-
${t}-wrapper${t}-picture-circle-wrapper
|
|
492
|
-
`]:Object.assign(Object.assign({},qo()),{display:"block",[`${t}${t}-select`]:{width:d,height:d,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${c}${c}-picture-card, ${c}${c}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${c}-item-container`]:{display:"inline-block",width:d,height:d,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[u]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ie(l(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ie(l(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${u}:hover`]:{[`&::before, ${u}-actions`]:{opacity:1}},[`${u}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
493
|
-
${n}-eye,
|
|
494
|
-
${n}-download,
|
|
495
|
-
${n}-delete
|
|
496
|
-
`]:{zIndex:10,width:r,margin:`0 ${ie(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ie(l(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ie(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Kre=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Ure=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},dn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},qre=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),Gre=sn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,c=tn(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Ure(c),Lre(c),Vre(c),Wre(c),Hre(c),Fre(c),Kre(c),of(c)]},qre);var Xre={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Yre=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Xre}))},Qre=i.forwardRef(Yre),Zre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Jre=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Zre}))},eae=i.forwardRef(Jre),tae={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},nae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:tae}))},rae=i.forwardRef(nae);function ev(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function tv(e,t){const n=Ne(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function hb(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function aae(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const oae=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},kN=e=>e.indexOf("image/")===0,iae=e=>{if(e.type&&!e.thumbUrl)return kN(e.type);const t=e.thumbUrl||e.url||"",n=oae(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ji=200;function lae(e){return new Promise(t=>{if(!e.type||!kN(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ji,n.height=Ji,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ji}px; height: ${Ji}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:l,height:c}=a;let u=Ji,d=Ji,f=0,v=0;l>c?(d=c*(Ji/l),v=-(d-u)/2):(u=l*(Ji/c),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var sae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},cae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:sae}))},LC=i.forwardRef(cae);const uae=i.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:C,previewIcon:x,removeIcon:h,downloadIcon:$,extra:w,onPreview:E,onDownload:j,onClose:O},I)=>{var R,M;const{status:N}=l,[P,B]=i.useState(N);i.useEffect(()=>{N!=="removed"&&B(N)},[N]);const[L,k]=i.useState(!1);i.useEffect(()=>{const X=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(X)}},[]);const D=d(l);let H=i.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!l.thumbUrl&&!l.url){const X=ue(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});H=i.createElement("div",{className:X},D)}else{const X=g!=null&&g(l)?i.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):D,oe=ue(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});H=i.createElement("a",{className:oe,onClick:le=>E(l,le),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},X)}const z=ue(`${e}-list-item`,`${e}-list-item-${P}`),_=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,F=(typeof b=="function"?b(l):b)?f((typeof h=="function"?h(l):h)||i.createElement(Er,null),()=>O(l),e,r.removeFile,!0):null,W=(typeof C=="function"?C(l):C)&&P==="done"?f((typeof $=="function"?$(l):$)||i.createElement(LC,null),()=>j(l),e,r.downloadFile):null,q=a!=="picture-card"&&a!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:ue(`${e}-list-item-actions`,{picture:a==="picture"})},W,F),V=typeof w=="function"?w(l):w,G=V&&i.createElement("span",{className:`${e}-list-item-extra`},V),K=ue(`${e}-list-item-name`),U=l.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:l.name},_,{href:l.url,onClick:X=>E(l,X)}),l.name,G):i.createElement("span",{key:"view",className:K,onClick:X=>E(l,X),title:l.name},l.name,G),J=(typeof p=="function"?p(l):p)&&(l.url||l.thumbUrl)?i.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:X=>E(l,X),title:r.previewFile},typeof x=="function"?x(l):x||i.createElement(wC,null)):null,Q=(a==="picture-card"||a==="picture-circle")&&P!=="uploading"&&i.createElement("span",{className:`${e}-list-item-actions`},J,P==="done"&&W,F),{getPrefixCls:te}=i.useContext(Rt),Y=te(),ae=i.createElement("div",{className:z},H,U,q,Q,L&&i.createElement(Zr,{motionName:`${Y}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:X})=>{const oe="percent"in l?i.createElement(oN,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return i.createElement("div",{className:ue(`${e}-list-item-progress`,X)},oe)})),re=l.response&&typeof l.response=="string"?l.response:((R=l.error)===null||R===void 0?void 0:R.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||r.uploadError,Z=P==="error"?i.createElement(An,{title:re,getPopupContainer:X=>X.parentNode},ae):ae;return i.createElement("div",{className:ue(`${e}-list-item-container`,t),style:n,ref:I},v?v(Z,l,c,{download:j.bind(null,l),preview:E.bind(null,l),remove:O.bind(null,l)}):Z)}),dae=(e,t)=>{const{listType:n="text",previewFile:r=lae,onPreview:a,onDownload:l,onRemove:c,locale:u,iconRender:d,isImageUrl:f=iae,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:b=!0,showDownloadIcon:C=!1,removeIcon:x,previewIcon:h,downloadIcon:$,extra:w,progress:E={size:[-1,2],showInfo:!1},appendAction:j,appendActionVisible:O=!0,itemRender:I,disabled:R}=e,[,M]=x1(),[N,P]=i.useState(!1),B=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(K=>{!(K.originFileObj instanceof File||K.originFileObj instanceof Blob)||K.thumbUrl!==void 0||(K.thumbUrl="",r==null||r(K.originFileObj).then(U=>{K.thumbUrl=U||"",M()}))})},[n,g,r]),i.useEffect(()=>{P(!0)},[]);const L=(K,U)=>{if(a)return U==null||U.preventDefault(),a(K)},k=K=>{typeof l=="function"?l(K):K.url&&window.open(K.url)},D=K=>{c==null||c(K)},H=K=>{if(d)return d(K,n);const U=K.status==="uploading";if(n.startsWith("picture")){const J=n==="picture"?i.createElement(No,null):u.uploading,Q=f!=null&&f(K)?i.createElement(rae,null):i.createElement(Qre,null);return U?J:Q}return U?i.createElement(No,null):i.createElement(eae,null)},z=(K,U,J,Q,te)=>{const Y={type:"text",size:"small",title:Q,onClick:ae=>{var re,Z;U(),i.isValidElement(K)&&((Z=(re=K.props).onClick)===null||Z===void 0||Z.call(re,ae))},className:`${J}-list-item-action`,disabled:te?R:!1};return i.isValidElement(K)?i.createElement(Xe,Object.assign({},Y,{icon:Or(K,Object.assign(Object.assign({},K.props),{onClick:()=>{}}))})):i.createElement(Xe,Object.assign({},Y),i.createElement("span",null,K))};i.useImperativeHandle(t,()=>({handlePreview:L,handleDownload:k}));const{getPrefixCls:_}=i.useContext(Rt),F=_("upload",v),W=_(),q=ue(`${F}-list`,`${F}-list-${n}`),V=i.useMemo(()=>En(Ac(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),G=Object.assign(Object.assign({},B?{}:V),{motionDeadline:2e3,motionName:`${F}-${B?"animate-inline":"animate"}`,keys:Ne(g.map(K=>({key:K.uid,file:K}))),motionAppear:N});return i.createElement("div",{className:q},i.createElement(C1,Object.assign({},G,{component:!1}),({key:K,file:U,className:J,style:Q})=>i.createElement(uae,{key:K,locale:u,prefixCls:F,className:J,style:Q,file:U,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:C,removeIcon:x,previewIcon:h,downloadIcon:$,extra:w,iconRender:H,actionIconRender:z,itemRender:I,onPreview:L,onDownload:k,onClose:D})),j&&i.createElement(Zr,Object.assign({},G,{visible:O,forceRender:!0}),({className:K,style:U})=>Or(j,J=>({className:ue(J.className,K),style:Object.assign(Object.assign(Object.assign({},U),{pointerEvents:K?"none":void 0}),J.style)}))))},fae=i.forwardRef(dae);var mae=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const Cd=`__LIST_IGNORE_${Date.now()}__`,vae=(e,t)=>{const n=vr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:p,disabled:b,locale:C,iconRender:x,isImageUrl:h,progress:$,prefixCls:w,className:E,type:j="select",children:O,style:I,itemRender:R,maxCount:M,data:N={},multiple:P=!1,hasControlInside:B=!0,action:L="",accept:k="",supportServerRender:D=!0,rootClassName:H}=e,z=i.useContext(Wr),_=b??z,F=e.customRequest||n.customRequest,[W,q]=yn(a||[],{value:r,postState:ye=>ye??[]}),[V,G]=i.useState("drop"),K=i.useRef(null),U=i.useRef(null);i.useMemo(()=>{const ye=Date.now();(r||[]).forEach(($e,Me)=>{!$e.uid&&!Object.isFrozen($e)&&($e.uid=`__AUTO__${ye}_${Me}__`)})},[r]);const J=(ye,$e,Me)=>{let Le=Ne($e),tt=!1;M===1?Le=Le.slice(-1):M&&(tt=Le.length>M,Le=Le.slice(0,M)),mo.flushSync(()=>{q(Le)});const yt={file:ye,fileList:Le};Me&&(yt.event=Me),(!tt||ye.status==="removed"||Le.some(We=>We.uid===ye.uid))&&mo.flushSync(()=>{v==null||v(yt)})},Q=(ye,$e)=>mae(void 0,void 0,void 0,function*(){const{beforeUpload:Me,transformFile:Le}=e;let tt=ye;if(Me){const yt=yield Me(ye,$e);if(yt===!1)return!1;if(delete ye[Cd],yt===Cd)return Object.defineProperty(ye,Cd,{value:!0,configurable:!0}),!1;typeof yt=="object"&&yt&&(tt=yt)}return Le&&(tt=yield Le(tt)),tt}),te=ye=>{const $e=ye.filter(tt=>!tt.file[Cd]);if(!$e.length)return;const Me=$e.map(tt=>ev(tt.file));let Le=Ne(W);Me.forEach(tt=>{Le=tv(tt,Le)}),Me.forEach((tt,yt)=>{let We=tt;if($e[yt].parsedFile)tt.status="uploading";else{const{originFileObj:nt}=tt;let dt;try{dt=new File([nt],nt.name,{type:nt.type})}catch{dt=new Blob([nt],{type:nt.type}),dt.name=nt.name,dt.lastModifiedDate=new Date,dt.lastModified=new Date().getTime()}dt.uid=tt.uid,We=dt}J(We,Le)})},Y=(ye,$e,Me)=>{try{typeof ye=="string"&&(ye=JSON.parse(ye))}catch{}if(!hb($e,W))return;const Le=ev($e);Le.status="done",Le.percent=100,Le.response=ye,Le.xhr=Me;const tt=tv(Le,W);J(Le,tt)},ae=(ye,$e)=>{if(!hb($e,W))return;const Me=ev($e);Me.status="uploading",Me.percent=ye.percent;const Le=tv(Me,W);J(Me,Le,ye)},re=(ye,$e,Me)=>{if(!hb(Me,W))return;const Le=ev(Me);Le.error=ye,Le.response=$e,Le.status="error";const tt=tv(Le,W);J(Le,tt)},Z=ye=>{let $e;Promise.resolve(typeof l=="function"?l(ye):l).then(Me=>{var Le;if(Me===!1)return;const tt=aae(ye,W);tt&&($e=Object.assign(Object.assign({},ye),{status:"removed"}),W==null||W.forEach(yt=>{const We=$e.uid!==void 0?"uid":"name";yt[We]===$e[We]&&!Object.isFrozen(yt)&&(yt.status="removed")}),(Le=K.current)===null||Le===void 0||Le.abort($e),J($e,tt))})},X=ye=>{G(ye.type),ye.type==="drop"&&(g==null||g(ye))};i.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:Y,onProgress:ae,onError:re,fileList:W,upload:K.current,nativeElement:U.current}));const{getPrefixCls:oe,direction:le,upload:de}=i.useContext(Rt),ce=oe("upload",w),ge=Object.assign(Object.assign({onBatchStart:te,onError:re,onProgress:ae,onSuccess:Y},e),{customRequest:F,data:N,multiple:P,action:L,accept:k,supportServerRender:D,prefixCls:ce,disabled:_,beforeUpload:Q,onChange:void 0,hasControlInside:B});delete ge.className,delete ge.style,(!O||_)&&delete ge.id;const he=`${ce}-wrapper`,[Oe,je,pe]=Gre(ce,he),[we]=za("Upload",go.Upload),{showRemoveIcon:Se,showPreviewIcon:Ce,showDownloadIcon:De,removeIcon:Ae,previewIcon:Qe,downloadIcon:Ke,extra:Fe}=typeof c=="boolean"?{}:c,Ge=typeof Se>"u"?!_:Se,Te=(ye,$e)=>c?i.createElement(fae,{prefixCls:ce,listType:u,items:W,previewFile:p,onPreview:d,onDownload:f,onRemove:Z,showRemoveIcon:Ge,showPreviewIcon:Ce,showDownloadIcon:De,removeIcon:Ae,previewIcon:Qe,downloadIcon:Ke,iconRender:x,extra:Fe,locale:Object.assign(Object.assign({},we),C),isImageUrl:h,progress:$,appendAction:ye,appendActionVisible:$e,itemRender:R,disabled:_}):ye,Ee=ue(he,E,H,je,pe,de==null?void 0:de.className,{[`${ce}-rtl`]:le==="rtl",[`${ce}-picture-card-wrapper`]:u==="picture-card",[`${ce}-picture-circle-wrapper`]:u==="picture-circle"}),_e=Object.assign(Object.assign({},de==null?void 0:de.style),I);if(j==="drag"){const ye=ue(je,ce,`${ce}-drag`,{[`${ce}-drag-uploading`]:W.some($e=>$e.status==="uploading"),[`${ce}-drag-hover`]:V==="dragover",[`${ce}-disabled`]:_,[`${ce}-rtl`]:le==="rtl"});return Oe(i.createElement("span",{className:Ee,ref:U},i.createElement("div",{className:ye,style:_e,onDrop:X,onDragOver:X,onDragLeave:X},i.createElement(e1,Object.assign({},ge,{ref:K,className:`${ce}-btn`}),i.createElement("div",{className:`${ce}-drag-container`},O))),Te()))}const Re=ue(ce,`${ce}-select`,{[`${ce}-disabled`]:_,[`${ce}-hidden`]:!O}),Pe=i.createElement("div",{className:Re,style:_e},i.createElement(e1,Object.assign({},ge,{ref:K})));return Oe(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:Ee,ref:U},Te(Pe,!!O)):i.createElement("span",{className:Ee,ref:U},Pe,Te()))},LN=i.forwardRef(vae);var gae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const pae=i.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,c=gae(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return i.createElement(LN,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),l)}),np=LN;np.Dragger=pae;np.LIST_IGNORE=Cd;var hae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},bae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:hae}))},HN=i.forwardRef(bae),yae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Cae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:yae}))},Sae=i.forwardRef(Cae),xae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},$ae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:xae}))},t1=i.forwardRef($ae),wae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},Eae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:wae}))},FN=i.forwardRef(Eae),Oae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},Rae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Oae}))},Yd=i.forwardRef(Rae),jae={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"},Iae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:jae}))},hs=i.forwardRef(Iae),Nae={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"},Mae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Nae}))},HC=i.forwardRef(Mae),Tae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},Pae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Tae}))},zae=i.forwardRef(Pae),Dae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},_ae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Dae}))},Aae=i.forwardRef(_ae),Bae={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 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},kae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Bae}))},Lae=i.forwardRef(kae),Hae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"},Fae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Hae}))},wi=i.forwardRef(Fae),Vae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},Wae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Vae}))},W4=i.forwardRef(Wae),Kae={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 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},Uae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Kae}))},qae=i.forwardRef(Uae),Gae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},Xae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Gae}))},n1=i.forwardRef(Xae),Yae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},Qae=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Yae}))},Zae=i.forwardRef(Qae),Jae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},eoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Jae}))},toe=i.forwardRef(eoe),noe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-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 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},roe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:noe}))},aoe=i.forwardRef(roe),ooe={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"},ioe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:ooe}))},VN=i.forwardRef(ioe),loe={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 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},soe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:loe}))},FC=i.forwardRef(soe),coe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-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-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},uoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:coe}))},WN=i.forwardRef(uoe),doe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.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 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},foe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:doe}))},K4=i.forwardRef(foe),moe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},voe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:moe}))},goe=i.forwardRef(voe),poe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},hoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:poe}))},Qd=i.forwardRef(hoe),boe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},yoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:boe}))},r1=i.forwardRef(yoe),Coe={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"},Soe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Coe}))},xoe=i.forwardRef(Soe),$oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},woe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:$oe}))},Eoe=i.forwardRef(woe),Ooe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Roe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Ooe}))},$f=i.forwardRef(Roe),joe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-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 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},Ioe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:joe}))},Noe=i.forwardRef(Ioe),Moe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Toe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Moe}))},Poe=i.forwardRef(Toe),zoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},Doe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:zoe}))},Zd=i.forwardRef(Doe),_oe={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"},Aoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:_oe}))},Boe=i.forwardRef(Aoe),koe={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"},Loe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:koe}))},Jd=i.forwardRef(Loe),Hoe={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 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Foe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Hoe}))},bs=i.forwardRef(Foe),Voe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},Woe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Voe}))},Koe=i.forwardRef(Woe),Uoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},qoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Uoe}))},KN=i.forwardRef(qoe),Goe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},Xoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Goe}))},Yoe=i.forwardRef(Xoe),Qoe={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"},Zoe=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Qoe}))},bb=i.forwardRef(Zoe),Joe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},eie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Joe}))},U4=i.forwardRef(eie),tie={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 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},nie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:tie}))},rie=i.forwardRef(nie),aie={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"},oie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:aie}))},a1=i.forwardRef(oie),iie={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"},lie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:iie}))},ef=i.forwardRef(lie),sie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},cie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:sie}))},yl=i.forwardRef(cie),uie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},die=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:uie}))},fie=i.forwardRef(die),mie={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"},vie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:mie}))},gie=i.forwardRef(vie),pie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},hie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:pie}))},q4=i.forwardRef(hie),bie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"},yie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:bie}))},VC=i.forwardRef(yie),Cie={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"},Sie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Cie}))},UN=i.forwardRef(Sie),xie={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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},$ie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:xie}))},eg=i.forwardRef($ie),wie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},Eie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:wie}))},o1=i.forwardRef(Eie),Oie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Rie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Oie}))},jie=i.forwardRef(Rie),Iie={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"},Nie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Iie}))},qN=i.forwardRef(Nie),Mie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},Tie=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:Mie}))},Pie=i.forwardRef(Tie),zie={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"},Die=function(t,n){return i.createElement(bt,be({},t,{ref:n,icon:zie}))},Uc=i.forwardRef(Die);const _ie="0.1.19",Aie={version:_ie};async function jt(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const Cr={list:()=>jt("/api/launchers"),running:()=>jt("/api/launchers/running"),create:e=>jt("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>jt(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>jt(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>jt(`/api/launchers/${e}/start`,{method:"POST"}),run:(e,t)=>jt(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>jt(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await jt(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return jt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>jt(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>jt(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>jt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>jt(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>jt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>jt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>jt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>jt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Bie={list:()=>jt("/api/plugins")},el={list:e=>jt(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>jt("/api/clipboard/tagged"),remove:(e,t)=>jt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>jt("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>jt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>jt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"})},pi={list:()=>jt("/api/group-tasks"),catalog:()=>jt("/api/group-tasks/catalog"),create:e=>jt("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>jt(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>jt(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>jt(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>jt(`/api/group-tasks/${e}/stop`,{method:"POST"})},yb={list:()=>jt("/api/port-diagnostics"),get:e=>jt(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>jt("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},GN={open:e=>jt("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>jt("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})})},Gr={status:()=>jt("/api/settings"),selectDirectory:()=>jt("/api/settings/select-directory",{method:"POST"}),saveDomain:e=>jt("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>jt("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>jt("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>jt("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveAccessToken:(e,t)=>jt(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>jt("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>jt("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>jt("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},nv={check:e=>jt("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>jt("/api/pr-review/my-prs"),reviewPrs:()=>jt("/api/pr-review/review-prs"),comment:e=>jt("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},bc={list:()=>jt("/api/jira-filters"),create:e=>jt("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>jt(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>jt(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>jt(`/api/jira-filters/${e}/issues`),cloneIssue:e=>jt("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},ha={list:()=>jt("/api/todos"),create:e=>jt("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>jt(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>jt(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>jt(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>jt(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>jt("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},Ec={list:()=>jt("/api/static-pages"),create:e=>jt("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>jt(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>jt(`/api/static-pages/${e}`,{method:"DELETE"})},Nd={list:()=>jt("/api/errors"),log:e=>jt("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>jt("/api/errors",{method:"DELETE"}),remove:e=>jt(`/api/errors/${e}`,{method:"DELETE"})},tl={getData:()=>jt("/api/postman"),importCollection:e=>jt("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>jt("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>jt(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>jt(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>jt("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>jt("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Cb={status:()=>jt("/api/bookmark-sync/status"),preview:e=>jt(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>jt("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},sd={scan:e=>jt("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>jt("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>jt("/api/file-organizer/history"),undo:e=>jt("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>jt("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},kie="modulepreload",Lie=function(e){return"/"+e},G4={},XN=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(f=>{if(f=Lie(f),f in G4)return;G4[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":kie,v||(p.as="script"),p.crossOrigin="",p.href=f,d&&p.setAttribute("nonce",d),document.head.appendChild(p),v)return new Promise((b,C)=>{p.addEventListener("load",b),p.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};async function YN(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),l=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*u)),l.height=Math.max(1,Math.round(a.naturalHeight*u));const d=l.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,l.width,l.height),{imageData:d.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function Hie(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([XN(()=>import("./index-Dty-56mC.js"),[]),YN(e)]),d=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const X4=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Fie(e=!0){return e?X4:X4.filter(t=>t.value!=="safari")}function Ca(e){e&&GN.open(e).catch(()=>{window.open(e,"_blank")})}function WC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Vie(e,t){if(!t)return"";if(!e)return`https://jira.example.com/issues/?filter=${encodeURIComponent(t)}`;const n=e.replace(/^https?:\/\//i,"").replace(/\/+$/,"");return`https://${n.includes("jira")||n.includes(".atlassian.net")?n:`jira.${n}`}/issues/?filter=${encodeURIComponent(t)}`}const{Title:Wie,Text:yc,Paragraph:Kie}=lr,cd=()=>new Intl.DateTimeFormat("en-CA").format(new Date),Uie=[{value:0,label:"No deduplication (0 min)"},{value:5,label:"5 minutes"},{value:15,label:"15 minutes"},{value:30,label:"30 minutes"},{value:60,label:"1 hour (Default)"},{value:120,label:"2 hours"},{value:360,label:"6 hours"},{value:720,label:"12 hours"},{value:1440,label:"24 hours"}];function qie({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let l=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let p=0;u.lastIndex=0;for(const b of f.matchAll(u)){b.index>p&&g.push(f.slice(p,b.index));const C=b[0],x=WC(t,C);g.push(S.jsx("a",{href:x,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),Ca(x)},children:C},`${v}-${b.index}`)),p=b.index+C.length}return p<f.length&&g.push(f.slice(p)),g};for(const f of e.matchAll(a)){f.index>l&&r.push(...d(e.slice(l,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(S.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Ca(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(S.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),Ca(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}l=f.index+f[0].length}return l<e.length&&r.push(...d(e.slice(l),"txt-end")),r}const Y4=e=>e.text||e.preview||"";function ql(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return r.length<=20&&(/^[AT]\d+/i.test(r)||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r));if(t==="id")return/^[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/i.test(r);if(t==="url")return/^https?:\/\/[^\s]+$/i.test(r);if(t==="json"){if(r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]"))try{return JSON.parse(r),!0}catch{return!1}return!1}if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function Gie(){const{message:e}=Da.useApp(),[t,n]=i.useState(()=>{const Y=localStorage.getItem("buddy_clipboard_enabled");return Y!==null?Y==="true":!0}),[r,a]=i.useState(!0),[l,c]=i.useState([]),[u,d]=i.useState(cd()),[f,v]=i.useState([]),[g,p]=i.useState([]),[b,C]=i.useState(null),[x,h]=i.useState(""),[$,w]=i.useState("all"),[E,j]=i.useState(null),[O,I]=i.useState(""),[R,M]=i.useState(""),[N,P]=i.useState(60),[B,L]=i.useState(!1),[k,D]=i.useState(!0);i.useEffect(()=>{Gr.status().then(Y=>{if(Y){if(Y.isMac!==void 0&&L(Y.isMac),Y.clipboardEnabled!==void 0){const ae=Y.clipboardEnabled!==!1;n(ae),localStorage.setItem("buddy_clipboard_enabled",String(ae))}Y.clipboardImageEnabled!==void 0&&D(Y.clipboardImageEnabled!==!1),Y.clipboardDeduplicateMinutes!==void 0&&P(Y.clipboardDeduplicateMinutes),Y.domain&&I(Y.domain),Y.jiraIssuePrefix&&M(Y.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const H=async Y=>{n(Y),localStorage.setItem("buddy_clipboard_enabled",String(Y));try{const re=(await Gr.saveClipboardEnabled(Y)).clipboardEnabled!==!1;n(re),localStorage.setItem("buddy_clipboard_enabled",String(re)),e.success(Y?"Clipboard history enabled":"Clipboard history disabled")}catch(ae){e.error(ae.message)}},z=async Y=>{D(Y);try{const ae=await Gr.saveClipboardImageEnabled(Y);ae&&ae.clipboardImageEnabled!==void 0&&D(ae.clipboardImageEnabled!==!1),e.success(Y?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(ae){e.error(ae.message)}},_=async Y=>{P(Y);try{await Gr.saveClipboardDeduplicateMinutes(Y),e.success("Duplicate filter window updated.")}catch(ae){e.error(ae.message)}},F=async Y=>{try{const[ae,re]=await Promise.all([el.list(Y),el.tagged().catch(()=>({items:[]}))]);c(ae.dates),v(ae.items),p(re.items||[])}catch(ae){e.error(ae.message)}},W=async(Y,ae)=>{const re=(ae||"").trim();if(!re)return;const Z=Y.tags||[];if(Z.includes(re)){C(null);return}const X=[...Z,re],oe=Y.date||u;try{await el.updateTags(oe,Y.id,X),v(le=>le.map(de=>de.id===Y.id?{...de,tags:X}:de)),p(le=>le.some(ce=>ce.id===Y.id)?le.map(ce=>ce.id===Y.id?{...ce,tags:X}:ce):[{...Y,tags:X,date:oe},...le]),e.success("Tag added")}catch(le){e.error(le.message)}finally{C(null),h("")}},q=async(Y,ae)=>{const Z=(Y.tags||[]).filter(oe=>oe!==ae),X=Y.date||u;try{await el.updateTags(X,Y.id,Z),v(oe=>oe.map(le=>le.id===Y.id?{...le,tags:Z}:le)),p(oe=>Z.length===0?oe.filter(le=>le.id!==Y.id):oe.map(le=>le.id===Y.id?{...le,tags:Z}:le)),e.success("Tag removed")}catch(oe){e.error(oe.message)}},V=i.useRef(cd());i.useEffect(()=>{if(!t)return;const Y=()=>{const X=cd();if(X!==V.current){const oe=V.current;if(V.current=X,u===oe)return d(X),!0}return!1};Y()||F(u);const re=()=>{Y()||F(u)};window.addEventListener("visibilitychange",re),window.addEventListener("focus",re);let Z=null;return u===cd()&&(Z=setInterval(()=>{document.visibilityState==="visible"&&F(u)},3e3)),()=>{window.removeEventListener("visibilitychange",re),window.removeEventListener("focus",re),Z&&clearInterval(Z)}},[u,t]);const G=async Y=>{try{await el.remove(u,Y),await F(u),e.success("Clipboard entry deleted.")}catch(ae){e.error(ae.message)}},K=async Y=>{const ae=Y.date||u;if(Y.imageFile)try{const Z=await(await fetch(`${window.location.origin}/api/clipboard/image/${Y.imageFile}`)).blob();await navigator.clipboard.write([new ClipboardItem({[Z.type]:Z})]),el.copied(ae,Y.id).catch(()=>{}),j(Y.id),setTimeout(()=>{j(X=>X===Y.id?null:X)},1e3)}catch(re){e.error("Failed to copy image: "+re.message)}else navigator.clipboard.writeText(Y.text||Y.preview),el.copied(ae,Y.id).catch(()=>{}),j(Y.id),setTimeout(()=>{j(re=>re===Y.id?null:re)},1e3)};i.useEffect(()=>{if(!t)return;const Y=ae=>{const re=document.activeElement;if(!(re&&(re.tagName==="INPUT"||re.tagName==="TEXTAREA"||re.isContentEditable))){if(ae.key==="ArrowLeft"){const Z=[...new Set([...l,u])].sort(),X=Z.indexOf(u);X<Z.length-1&&X!==-1&&d(Z[X+1])}else if(ae.key==="ArrowRight"){const Z=[...new Set([...l,u])].sort(),X=Z.indexOf(u);X>0&&d(Z[X-1])}}};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[l,u,t]),i.useEffect(()=>{if(!t)return;const Y=async ae=>{var X;const re=document.activeElement;if(re&&(re.tagName==="INPUT"||re.tagName==="TEXTAREA"||re.isContentEditable))return;const Z=(X=ae.clipboardData)==null?void 0:X.items;if(Z){for(const oe of Z)if(oe.type.startsWith("image/")){const le=oe.getAsFile();if(le){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const de=await Hie(le);await el.uploadImage(de);const ce=cd();d(ce),await F(ce),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(de){e.error({content:"Failed to save pasted image: "+de.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",Y),()=>window.removeEventListener("paste",Y)},[u,t]);const U=l.reduce((Y,ae)=>{var oe;const[re,Z,X]=ae.split("-");return Y[re]||(Y[re]={}),(oe=Y[re])[Z]||(oe[Z]=[]),Y[re][Z].push(X),Y},{}),J=Object.entries(U).sort(([Y],[ae])=>ae.localeCompare(Y)).map(([Y,ae])=>({value:Y,label:Y,children:Object.entries(ae).sort(([re],[Z])=>Z.localeCompare(re)).map(([re,Z])=>({value:re,label:re,children:Z.sort().reverse().map(X=>({value:X,label:X}))}))})),Q=i.useMemo(()=>$==="tagged"?g:$==="all"?f:$==="image"?f.filter(Y=>!!Y.imageFile):f.filter(Y=>!Y.imageFile&&ql(Y4(Y),$,R)),[$,f,g,R]),te=i.useMemo(()=>{const Y={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const ae of f)if(ae.imageFile)Y.image++;else{const re=Y4(ae);ql(re,"jira",R)&&Y.jira++,ql(re,"account")&&Y.account++,ql(re,"id")&&Y.id++,ql(re,"url")&&Y.url++,ql(re,"json")&&Y.json++,ql(re,"code")&&Y.code++}return[{key:"all",label:`All (${Y.all})`},{key:"tagged",label:`Tagged (${Y.tagged})`},{key:"jira",label:`Jira (${Y.jira})`},{key:"account",label:`Account (${Y.account})`},{key:"id",label:`ID (${Y.id})`},{key:"url",label:`Url (${Y.url})`},{key:"json",label:`JSON (${Y.json})`},{key:"code",label:`Code (${Y.code})`},{key:"image",label:`Img (${Y.image})`}]},[f,g,R]);return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(yc,{type:"secondary",children:"LOCAL CLIPBOARD"}),S.jsx(Wie,{level:2,children:"Clipboard history"}),S.jsx(Kie,{type:"secondary",children:"Saved locally and archived by date."})]}),S.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[S.jsxs(Ct,{size:16,align:"center",children:[S.jsx(Gd,{loading:r,checked:t,onChange:H,checkedChildren:"On",unCheckedChildren:"Off"}),S.jsx(ou,{className:"clipboard-picker",disabled:!t||r,options:J,value:u.split("-"),onChange:Y=>(Y==null?void 0:Y.length)===3&&d(Y.join("-")),placeholder:"Select date"})]}),S.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:6},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[S.jsx(yc,{type:"secondary",style:{fontSize:12},children:"Deduplicate filter:"}),S.jsx(ir,{size:"small",disabled:!t||r,value:N,onChange:_,style:{width:160},options:Uie})]}),B&&S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[S.jsx(yc,{type:"secondary",style:{fontSize:12},children:"Monitor image clipboard:"}),S.jsx(Gd,{size:"small",disabled:!t||r,checked:k,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]})]}),t?S.jsxs(S.Fragment,{children:[S.jsx(Bo,{className:"clipboard-tabs",activeKey:$,onChange:w,items:te}),Q.length?S.jsx("div",{className:"clipboard-list",children:Q.map(Y=>{const ae=Y.date||u,re=`${window.location.origin}/api/clipboard/${ae}/${Y.id}`,Z=new Date(Y.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return S.jsxs(wn,{size:"small",className:"clipboard-item",children:[S.jsxs("div",{children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[S.jsx(yc,{type:"secondary",children:Z}),Y.date&&Y.date!==u&&S.jsx(mn,{style:{margin:0},children:Y.date}),(Y.tags||[]).map(X=>S.jsx(mn,{color:"blue",closable:!0,onClose:oe=>{oe.preventDefault(),q(Y,X)},style:{margin:0},children:X},X)),S.jsx(K1,{content:S.jsxs(Ct.Compact,{style:{width:200},children:[S.jsx(gn,{size:"small",placeholder:"Tag name",value:x,onChange:X=>h(X.target.value),onPressEnter:()=>W(Y,x)}),S.jsx(Xe,{size:"small",type:"primary",onClick:()=>W(Y,x),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===Y.id,onOpenChange:X=>{C(X?Y.id:null),h("")},children:S.jsxs(mn,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[S.jsx(ra,{})," Tag"]})})]}),Y.imageFile?S.jsx("div",{style:{marginTop:8},children:S.jsx("img",{src:`${window.location.origin}/api/clipboard/image/${Y.imageFile}`,alt:"Clipboard entry",style:{maxWidth:"100%",maxHeight:300,borderRadius:6,cursor:"pointer",border:"1px solid #eef0f6"},onClick:()=>window.open(`${window.location.origin}/api/clipboard/image/${Y.imageFile}`,"_blank")})}):S.jsxs(S.Fragment,{children:[S.jsx("pre",{style:{marginTop:8},children:S.jsx(qie,{value:Y.preview||Y.text,domain:O,jiraIssuePrefix:R})}),Y.contentFile&&S.jsxs("span",{className:"clipboard-original",children:[S.jsx("a",{href:re,target:"_blank",rel:"noreferrer",children:"View original content"}),S.jsxs("a",{href:Y.editorUrl,children:["Open in ",Y.editorName||"editor"]})]})]})]}),S.jsxs("span",{className:"clipboard-actions",children:[S.jsx(An,{title:E===Y.id?"Copied!":"Copy",children:S.jsx(Xe,{type:"text",icon:E===Y.id?S.jsx(ws,{style:{color:"#52c41a"}}):S.jsx(Zo,{}),onClick:()=>K(Y)})}),S.jsx(An,{title:"Delete",children:S.jsx(Xe,{type:"text",danger:!0,icon:S.jsx(Er,{}),onClick:()=>G(Y.id)})})]})]},Y.id)})}):S.jsx(Gn,{description:`No ${$==="all"?"clipboard entries":`${$==="id"?"ID":$} entries`}${$==="tagged"?".":` for ${u}.`}`})]}):S.jsx(wn,{style:{marginTop:24,textAlign:"center",padding:"48px 0"},children:S.jsx(Gn,{image:S.jsx(eg,{style:{fontSize:48,color:"#9ca3af"}}),description:S.jsxs("div",{style:{marginTop:8},children:[S.jsx(yc,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:"Clipboard history is disabled"}),S.jsx(yc,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),S.jsx(Ol.BackTop,{visibilityHeight:240})]})}const QN=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function ZN(e="vscode"){const t=QN.find(n=>n.value===e);return t?t.label:"VS Code"}function JN(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",c="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(l=u[0]),u[1]&&(c=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return l&&(u+=`&line=${l}`),c&&(u+=`&column=${c}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:Sb}=lr;function Xie({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:d=>S.jsx(Sb,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>S.jsxs(Sb,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return S.jsxs(Ct,{children:[S.jsx(Xe,{size:"small",danger:v,icon:v?S.jsx(eg,{}):S.jsx(a1,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),S.jsx(Xe,{size:"small",onClick:()=>r(f),children:"Edit"}),S.jsx(Xe,{size:"small",danger:!0,icon:S.jsx(Er,{}),onClick:()=>c(f),children:"Delete"})]})}}];return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"group-task-header",children:[S.jsx(Sb,{type:"secondary",children:"Start selected scripts across multiple services."}),S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:n,children:"Add quick launch"})]}),e.length?S.jsx(xr,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):S.jsx(Gn,{description:"No quick launches yet.",className:"group-task-empty"})]})}const{Text:Gl}=lr,ud=(e,t)=>`${e}:${t}`,Yie=()=>S.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function Qie({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:c,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const p=!!(t&&[...r].some(x=>x.startsWith(`${t.id}:`))),[b,C]=i.useState(()=>p);return i.useEffect(()=>{p&&C(!0)},[t==null?void 0:t.id]),i.useEffect(()=>{p||C(!1)},[p]),S.jsx(on.List,{name:"scripts",children:(x,{add:h,remove:$})=>{const w=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...x.map(I=>({...I,key:`custom-${I.key}`,kind:"custom"})),...w?[{key:"install",kind:"install",script:w}]:[],...(l||[]).map(I=>({key:`package-${I.id}`,kind:"package",script:I}))],j=b?E.filter(I=>{const R=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script;return t&&(R==null?void 0:R.id)&&r.has(ud(t.id,R.id))}):E,O=[{title:"Source",width:100,render:(I,R)=>S.jsx(mn,{color:R.kind==="package"?"blue":R.kind==="install"?"green":"default",children:R.kind==="package"?"Package":R.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(I,R)=>{var B;const M=R.kind==="custom"?e.getFieldValue(["scripts",R.name]):R.script,N=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),P=t&&(M==null?void 0:M.id)&&r.has(ud(t.id,M.id));return S.jsxs(Ct,{direction:"vertical",size:1,style:{width:"100%"},children:[R.kind!=="custom"||P?S.jsxs(Ct,{size:4,children:[S.jsx(Gl,{strong:!0,children:(M==null?void 0:M.name)||((B=R.script)==null?void 0:B.name)}),N&&S.jsx(yl,{className:"start-script-icon"})]}):S.jsx(on.Item,{noStyle:!0,name:[R.name,"name"],rules:[{required:!0,message:"Required"}],children:S.jsx(gn,{placeholder:"serve",allowClear:!0,suffix:N?S.jsx(yl,{className:"start-script-icon"}):null})}),P&&S.jsx(qa,{status:"success",text:S.jsx(Gl,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(I,R)=>{const M=R.kind==="custom"?e.getFieldValue(["scripts",R.name]):R.script,N=t&&(M==null?void 0:M.id)&&r.has(ud(t.id,M.id));return R.kind==="package"?S.jsxs(Ct,{direction:"vertical",size:0,children:[S.jsxs(Gl,{code:!0,children:[n," run ",R.script.name]}),S.jsx(Gl,{type:"secondary",style:{fontSize:12},children:R.script.command})]}):R.kind==="install"?S.jsx(Gl,{code:!0,children:R.script.command}):N?S.jsx(Gl,{code:!0,children:M==null?void 0:M.command}):S.jsx(on.Item,{noStyle:!0,name:[R.name,"command"],rules:[{required:!0,message:"Required"}],children:S.jsx(gn,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(I,R)=>{const M=R.kind==="custom"?e.getFieldValue(["scripts",R.name]):R.script,N=t&&(M==null?void 0:M.id)&&r.has(ud(t.id,M.id)),P=t&&(M!=null&&M.id)&&a[ud(t.id,M.id)]||0;return S.jsxs(Ct,{size:2,children:[t&&S.jsx(An,{title:N?"Stop":"Start",children:S.jsx(Xe,{type:"text",danger:N,icon:N?S.jsx(Yie,{}):S.jsx(rie,{}),onClick:()=>N?f(M):R.kind==="package"?d(M):R.kind==="install"?u(M):c(M),disabled:!(M!=null&&M.id)})}),S.jsx(An,{title:"Logs",children:S.jsx(qa,{count:P,size:"small",offset:[-2,2],children:S.jsx(Xe,{type:"text",icon:S.jsx(lu,{}),onClick:()=>R.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),R.kind==="custom"&&!N&&S.jsx(An,{title:"Remove",children:S.jsx(Xe,{type:"text",danger:!0,icon:S.jsx(Er,{}),onClick:()=>$(R.name)})})]})}}];return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"script-header",children:[S.jsx(pC,{orientation:"left",children:"Scripts"}),S.jsxs(Ct,{size:"middle",align:"center",children:[S.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,cursor:"pointer",userSelect:"none"},children:[S.jsx(Gd,{size:"small",checked:b,onChange:C,disabled:!t}),S.jsx(Gl,{type:"secondary",style:{fontSize:13},children:"Show running only"})]}),S.jsx(Xe,{icon:S.jsx(ra,{}),onClick:()=>{C(!1),h({name:"",command:""})},children:"Add script"})]})]}),S.jsx(xr,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:j,columns:O})]})}})}const Zie=e=>S.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:S.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.75 2.5a.75.75 0 01.742-.647h21.016a.75.75 0 01.742.853l-2.622 17.5a.75.75 0 01-.742.644H4.114a.75.75 0 01-.742-.644L.75 2.5zm13.1 11.2h-3.7l-.76-3.8h5.22l-.76 3.8z"})});function Jie(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?S.jsx(Zie,{style:{color:"#2584FF"}}):t.includes("github")?S.jsx(xoe,{style:{color:"#24292e"}}):t.includes("gitlab")?S.jsx(Eoe,{style:{color:"#fc6d26"}}):S.jsx($f,{style:{color:"#1890ff"}})}function eM({repoUrl:e,style:t}){if(!e)return null;const n=Jie(e);return n?S.jsx(An,{title:"Open repository in browser",children:S.jsx(Xe,{type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Ca(e)},style:{padding:0,width:20,height:20,minWidth:20,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,...t}})}):null}const ele=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function tle({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:c,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:p}){const{message:b,modal:C}=Da.useApp(),[x]=on.useForm(),[h,$]=i.useState(null),[w,E]=i.useState(!1),j=async()=>{E(!0);try{const R=await Gr.selectDirectory();if(R&&R.path&&(x.setFieldValue("folder",R.path),!x.getFieldValue("alias"))){const N=R.path.split(/[/\\]/).filter(Boolean);N.length>0&&x.setFieldValue("alias",N[N.length-1])}}catch(R){b.error(R.message)}finally{E(!1)}},O=()=>{C.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await p(t)}catch(R){b.error(R.message)}}})};i.useEffect(()=>{e&&(x.resetFields(),x.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:ele()),$(t?null:[]),t&&Cr.packageScripts(t.id).then(R=>$(R.scripts)).catch(()=>$([])))},[e,t,x]);const I=async()=>{try{const R=(x.getFieldValue("scripts")||[]).filter(P=>{var B,L;return((B=P==null?void 0:P.name)==null?void 0:B.trim())||((L=P==null?void 0:P.command)==null?void 0:L.trim())});x.setFieldValue("scripts",R);const M=await x.validateFields(["alias","folder","groupName","startCommand"]),N={...x.getFieldsValue(!0),...M,scripts:R};await c(N)}catch(R){if(R!=null&&R.errorFields)return;b.error(R.message)}};return S.jsx(hr,{title:t?S.jsxs(Ct,{align:"center",size:6,children:[S.jsxs("span",{children:["Service details · ",t.alias]}),S.jsx(eM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t?S.jsx(Xe,{type:"primary",danger:!0,onClick:O,children:"Delete service"}):S.jsx("div",{}),S.jsxs(Ct,{children:[S.jsx(Xe,{onClick:l,children:"Cancel"}),S.jsx(Xe,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:S.jsxs(on,{form:x,layout:"vertical",children:[S.jsx(Bv,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:S.jsxs(pl,{gutter:[16,0],children:[S.jsx(Sr,{xs:24,sm:12,children:S.jsx(on.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:S.jsx(gn,{placeholder:"Service name",allowClear:!0})})}),S.jsx(Sr,{xs:24,sm:12,children:S.jsx(on.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:S.jsx(gn,{prefix:S.jsx(Kc,{style:{color:"#8c8c8c"}}),suffix:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(Kc,{}),loading:w,onClick:j,style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),S.jsx(Sr,{xs:24,sm:8,children:S.jsx(on.Item,{label:"Group",name:"groupName",children:S.jsx(Lv,{options:n.map(R=>({value:R})),placeholder:"Group name",allowClear:!0})})}),S.jsx(Sr,{xs:24,sm:8,children:S.jsx(on.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:S.jsx(Lv,{options:["npm","pnpm","yarn"].map(R=>({value:R})),placeholder:"npm",allowClear:!0})})}),S.jsx(Sr,{xs:24,sm:8,children:S.jsx(on.Item,{noStyle:!0,shouldUpdate:(R,M)=>R.scripts!==M.scripts,children:()=>{const R=(x.getFieldValue("scripts")||[]).map(P=>P==null?void 0:P.name).filter(Boolean),M=(h||[]).map(P=>P.name),N=[...new Set([...R,...M])].map(P=>({label:P,value:P}));return S.jsx(on.Item,{label:"Start script name",name:"startCommand",children:S.jsx(ir,{placeholder:"Select start script",allowClear:!0,options:N})})}})})]})}]}),S.jsx(on.Item,{noStyle:!0,shouldUpdate:(R,M)=>R.executor!==M.executor||R.startCommand!==M.startCommand||R.scripts!==M.scripts,children:()=>S.jsx(Qie,{form:x,editing:t,executor:x.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:h,onRun:R=>u(t,R),onRunInstall:()=>d(t),onRunPackage:R=>f(t,R),onStop:R=>v(t,R.id),onLogs:R=>g(t,R),onPackageLogs:R=>g(t,R,!0)})})]})})}const{Text:nle}=lr;function rle({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Da.useApp(),[c]=on.useForm();i.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,c]);const u=i.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:S.jsx("div",{className:"group-task-projects",children:v.map(g=>S.jsx(wn,{size:"small",title:g.alias,children:S.jsx(Ct,{direction:"vertical",children:g.scripts.map(p=>S.jsxs(aa,{value:`${g.id}|${p.id}`,children:[p.name," ",S.jsxs(nle,{type:"secondary",children:["(",p.source,")"]})]},p.id))})},g.id))})})),[n]),d=async()=>{try{const f=await c.validateFields(),v={name:f.name,items:f.items.map(g=>{const[p,b]=g.split("|");return{launcherId:p,scriptId:b}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return S.jsx(hr,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:S.jsxs(on,{form:c,layout:"vertical",children:[S.jsx(on.Item,{label:"Name",name:"name",rules:[{required:!0}],children:S.jsx(gn,{placeholder:"Start local stack",allowClear:!0})}),S.jsx(on.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:S.jsx(aa.Group,{className:"group-task-selector",children:S.jsx(Bo,{items:u})})})]})})}const Q4={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function i1({value:e,editor:t}){const[n,r]=i.useState(t||"vscode"),[a,l]=i.useState(""),[c,u]=i.useState("");i.useEffect(()=>{t&&r(t),Gr.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(c||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,p)=>{let b="";const C=(w,E)=>w.split(/(\u001b\[[0-9;]*m)/g).map((O,I)=>{const R=O.match(/^\u001b\[([0-9;]*)m$/);if(R){const N=R[1].split(";").map(Number);return b=N.includes(0)?"":Q4[N.find(P=>Q4[P])]||b,null}if(!O)return null;const M=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(O)?"log-error":/\b(warn|warning)\b/i.test(O)?"log-warning":/\b(success|ready|started|listening)\b/i.test(O)?"log-success":"");return S.jsx("span",{className:M,children:O},`${E}-${I}`)}),x=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,h=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!h?C(g,`${p}-0`):g.split(x).map((w,E)=>{if(!w)return null;const j=`${p}-${E}`;if(/^https?:\/\//.test(w.replace(/\u001b\[[0-9;]*m/g,""))){const I=w.replace(/\u001b\[[0-9;]*m/g,""),R=I.replace(/[),.;:!?]+$/,""),M=I.slice(R.length);return S.jsxs("span",{children:[S.jsx("a",{className:"log-link",href:R,target:"_blank",rel:"noreferrer",onClick:N=>{N.preventDefault(),Ca(R)},children:C(w.slice(0,w.length-M.length),`${j}-url`)}),M&&C(M,`${j}-suf`)]},j)}const O=w.replace(/\u001b\[[0-9;]*m/g,"");if(O.startsWith("/")){const[,I,R=""]=O.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(I){const M=JN(n,I,R);return S.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${ZN(n)}`,children:C(w,j)},j)}}if(f&&a&&(f.lastIndex=0,f.test(O))){const I=[];let R=0;f.lastIndex=0;for(const M of O.matchAll(f)){M.index>R&&I.push(C(O.slice(R,M.index),`${j}-sub-${M.index}`));const N=M[0],P=WC(a,N);I.push(S.jsx("a",{className:"log-link",href:P,target:"_blank",rel:"noreferrer",onClick:B=>{B.preventDefault(),Ca(P)},children:N},`${j}-jira-${M.index}`)),R=M.index+N.length}return R<O.length&&I.push(C(O.slice(R),`${j}-sub-end`)),S.jsx("span",{children:I},j)}return C(w,j)})};return S.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
|
-
`).map((g,p)=>S.jsx("div",{className:"log-line",children:S.jsx("code",{children:v(g,p)})},p))})}function ale({open:e,logTarget:t,onCancel:n}){var d;const[r,a]=i.useState("output"),[l,c]=i.useState("");i.useEffect(()=>{e&&(a("output"),c("Loading…"))},[e,t]),i.useEffect(()=>{if(!e||!t)return;const f=async()=>{try{const g=t.package?r==="error"?await Cr.packageScriptErrorLogs(t.launcher.id,t.script.name):await Cr.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await Cr.errorLogs(t.launcher.id,t.script.id):await Cr.logs(t.launcher.id,t.script.id);c(g.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(g){c(g.message)}};f();const v=setInterval(f,1e3);return()=>clearInterval(v)},[e,t,r]);const u=async()=>{if(t)try{t.package?await Cr.clearPackageScriptLogs(t.launcher.id,t.script.name):await Cr.clearLogs(t.launcher.id,t.script.id),c(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return S.jsx(hr,{title:t?`${(d=t.launcher)!=null&&d.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:S.jsx(Bo,{activeKey:r,onChange:a,tabBarExtraContent:t&&S.jsxs(Ct,{children:[S.jsx(Xe,{icon:S.jsx(Aae,{}),onClick:u,children:"Clear log"}),S.jsx(Xe,{icon:S.jsx($f,{}),onClick:()=>{const f=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(f,"_blank")},children:"Open in new tab"})]}),items:[{key:"output",label:"Logs",children:S.jsx(i1,{value:l})},{key:"error",label:"Error logs",children:S.jsx(i1,{value:l})}]})})}const{Title:ole,Text:Z4,Paragraph:ile}=lr;function lle({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:l}=Da.useApp(),[c,u]=i.useState("all"),[d,f]=i.useState([]),[v,g]=i.useState([]),[p,b]=i.useState(!1),[C,x]=i.useState(!1),[h,$]=i.useState(null),[w,E]=i.useState(!1),[j,O]=i.useState(null),[I,R]=i.useState(!1),[M,N]=i.useState(null),[P,B]=i.useState("vscode");i.useEffect(()=>{pi.list().then(f).catch(re=>l.error(re.message)),Gr.status().then(re=>{re!=null&&re.defaultEditor&&B(re.defaultEditor)}).catch(()=>{})},[]);const L=i.useMemo(()=>[...new Set(e.map(re=>re.groupName).filter(Boolean))].sort((re,Z)=>re.localeCompare(Z)),[e]),k=c==="all"?e:e.filter(re=>re.groupName===c),D=(re=null)=>{O(re),E(!0)},H=async re=>{if(j){const Z=await Cr.update(j.id,re);O(Z)}else await Cr.create(re),E(!1);l.success("Saved"),await r()},z=async re=>{try{const Z=[...t].filter(X=>X.startsWith(`${re.id}:`));if(Z.length>0){const X=Z.map(oe=>oe.slice(`${re.id}:`.length));await Promise.all(X.map(oe=>Cr.stop(re.id,oe)))}await Cr.remove(re.id),E(!1),l.success("Deleted"),await r()}catch(Z){l.error(Z.message)}},_=async(re,Z)=>{try{await Cr.run(re.id,Z.id),await r()}catch(X){l.error(X.message)}},F=async re=>{try{await Cr.runInstall(re.id),await r()}catch(Z){l.error(Z.message)}},W=async(re,Z)=>{try{await Cr.runPackageScript(re.id,Z.name),await r()}catch(X){l.error(X.message)}},q=(re,Z,X=!1)=>{N({launcher:re,script:Z,package:X}),R(!0)},V=async re=>{try{await Cr.start(re.id),await r()}catch(Z){l.warning(Z.message)}},G=async(re,Z)=>{try{await Cr.stop(re.id,Z),await r()}catch(X){await r(),l.error(X.message)}},K=async(re,Z)=>{try{await Promise.all(Z.map(X=>Cr.stop(re.id,X))),await r()}catch(X){await r(),l.error(X.message)}},U=async(re=null)=>{if($(re),x(!0),!v.length)try{g(await pi.catalog())}catch(Z){l.error(Z.message)}},J=async re=>{h?await pi.update(h.id,re):await pi.create(re),x(!1),f(await pi.list())},Q=async re=>{const Z=`group-task-${re.id}`;l.loading({content:`Starting ${re.name}…`,key:Z,duration:0});try{const X=await pi.start(re.id),oe=X.results.filter(le=>le.error);oe.length?l.warning({content:`${X.results.length-oe.length} started, ${oe.length} failed.`,key:Z}):l.success({content:`${X.results.length} scripts started.`,key:Z}),await r()}catch(X){l.error({content:X.message,key:Z})}},te=async re=>{const Z=`group-task-${re.id}`;l.loading({content:`Stopping ${re.name}…`,key:Z,duration:0});try{const oe=(await pi.stop(re.id)).results.filter(le=>le.ok).length;l.success({content:`${oe} scripts stopped.`,key:Z}),await r()}catch(X){l.error({content:X.message,key:Z})}},Y=async re=>{try{await pi.remove(re.id),f(await pi.list())}catch(Z){l.error(Z.message)}},ae=[{title:"Service",dataIndex:"alias",render:(re,Z)=>S.jsxs(Ct,{size:8,align:"center",children:[S.jsx("a",{href:JN(P,Z.folder,"",{newWindow:!0}),title:`Open ${Z.folder} in ${ZN(P)}`,onClick:X=>{X.preventDefault(),X.stopPropagation(),GN.openPath(Z.folder)},style:{fontWeight:600},children:re}),S.jsx(eM,{repoUrl:Z.repoUrl}),Z.branch&&S.jsx(Z4,{code:!0,style:{margin:0},children:Z.branch})]})},{title:"Scripts",width:170,align:"center",render:(re,Z)=>{const X=[...t].filter(de=>de.startsWith(`${Z.id}:`)).length,oe=Z.scripts.length+(Z.packageScriptCount||0),le=Object.entries(n).filter(([de])=>de.startsWith(`${Z.id}:`)).reduce((de,[,ce])=>de+(ce||0),0);return S.jsxs(Ct,{size:8,children:[S.jsx(qa,{status:X?"success":"default",text:`${X} / ${oe} running`}),le>0&&S.jsx(qa,{count:le,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(re,Z)=>{const X=[...t].filter(le=>le.startsWith(`${Z.id}:`)),oe=X.length>0;return S.jsx(Xe,{size:"small",type:oe?"default":"primary",danger:oe,icon:oe?S.jsx(eg,{}):S.jsx(a1,{}),onClick:le=>{le.stopPropagation(),oe?K(Z,X.map(de=>de.slice(`${Z.id}:`.length))):V(Z)},children:oe?"Stop":"Start"})}}];return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(Z4,{type:"secondary",children:"SERVICES"}),S.jsx(ole,{level:2,children:"Launcher"}),S.jsx(ile,{type:"secondary",children:"Manage and run local project scripts."})]}),S.jsxs(Ct,{children:[S.jsx(Xe,{onClick:()=>b(!0),children:"Quick Launch"}),S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:()=>D(),children:"Add service"})]})]}),a?S.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:S.jsx(Pa,{size:"large"})}):e.length?S.jsxs(S.Fragment,{children:[d.length>0&&S.jsx("div",{className:"quick-launch-bar",style:{marginBottom:20,padding:"12px 16px",background:"#fff",borderRadius:8,border:"1px solid #e4e8f1",boxShadow:"0 2px 8px rgba(31, 42, 68, 0.03)"},children:S.jsxs(Ct,{wrap:!0,size:"middle",children:[S.jsx("span",{style:{fontSize:11,color:"#727b94",fontWeight:750,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Quick Launch:"}),d.map(re=>{const Z=re.items.every(X=>t.has(`${X.launcherId}:${X.scriptId}`));return S.jsxs(Xe,{type:Z?"default":"primary",danger:Z,icon:Z?S.jsx(eg,{}):S.jsx(a1,{}),onClick:()=>Z?te(re):Q(re),children:[Z?"Stop":"Start"," ",re.name]},re.id)})]})}),S.jsx(Bo,{activeKey:c,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...L.map(re=>({key:re,label:`${re} (${e.filter(Z=>Z.groupName===re).length})`}))]}),k.length?S.jsx(xr,{className:"launcher-table",rowKey:"id",dataSource:k,columns:ae,pagination:!1,onRow:re=>({onClick:()=>D(re)})}):S.jsx(Gn,{description:"No services in this group."})]}):S.jsx(Gn,{description:"No services yet",children:S.jsx(Xe,{type:"primary",onClick:()=>D(),children:"Add service"})}),S.jsx(tle,{open:w,editing:j,groups:L,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:H,onRun:_,onRunInstall:F,onRunPackage:W,onStop:G,onLogs:q,onDelete:z}),S.jsx(hr,{title:"Quick Launch",open:p,onCancel:()=>b(!1),footer:null,width:760,destroyOnClose:!0,children:S.jsx(Xie,{tasks:d,running:t,onCreate:()=>U(),onEdit:U,onStart:Q,onStop:te,onRemove:Y})}),S.jsx(rle,{open:C,editingGroupTask:h,groupCatalog:v,onCancel:()=>x(!1),onSave:J}),S.jsx(ale,{open:I,logTarget:M,onCancel:()=>R(!1)})]})}const{Title:sle,Text:Wo,Paragraph:cle}=lr;function ule({refreshLaunchers:e}){const[t,n]=i.useState([]),[r,a]=i.useState(!1),[l,c]=i.useState(null),[u,d]=i.useState(!1),[f,v]=i.useState(!1),[g,p]=i.useState(null),b=async()=>{a(!0);try{n((await yb.list()).ports)}catch($){Ln.error($.message)}finally{a(!1)}};i.useEffect(()=>{b()},[]);const C=async()=>{if(l){d(!0);try{const $=(await yb.get(l)).process;p($),v(!0)}catch($){Ln.error($.message)}finally{d(!1)}}},x=async({port:$,pid:w})=>{try{await yb.kill($,w),Ln.success(`Process on port ${$} was killed.`),await b(),e&&await e()}catch(E){Ln.error(E.message)}},h=[{title:"Port",dataIndex:"port",width:100,render:$=>S.jsx(Wo,{code:!0,children:$})},{title:"Last used",dataIndex:"launcher",render:($,w)=>S.jsxs(Ct,{direction:"vertical",size:0,children:[S.jsx(Wo,{strong:!0,children:$}),S.jsx(Wo,{type:"secondary",children:w.script})]})},{title:"Process",dataIndex:"command",render:($,w)=>S.jsxs(Ct,{direction:"vertical",size:0,children:[S.jsx(Wo,{code:!0,children:w.currentCommand||$}),S.jsxs(Wo,{type:"secondary",children:["PID ",w.currentPid||w.pid]})]})},{title:"Status",width:170,render:($,w)=>w.ghost?S.jsx(mn,{color:"error",children:"Ghost process"}):w.listening?S.jsx(mn,{color:"success",children:"Script running"}):w.reused?S.jsx(mn,{color:"warning",children:"Port reused"}):S.jsx(mn,{children:"Port released"})},{title:"Action",width:100,render:($,w)=>w.listening||w.reused?S.jsx(fo,{title:`Kill process on port ${w.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>x({port:w.port,pid:w.currentPid}),children:S.jsx(Xe,{danger:!0,icon:S.jsx(Er,{}),children:"Kill"})}):S.jsx(Xe,{disabled:!0,icon:S.jsx(Er,{}),children:"Kill"})}];return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(Wo,{type:"secondary",children:"DIAGNOSTICS"}),S.jsx(sle,{level:2,children:"Port Diagnostic"}),S.jsx(cle,{type:"secondary",children:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped."})]}),S.jsx(Xe,{icon:S.jsx(gs,{}),onClick:b,loading:r,children:"Refresh"})]}),S.jsxs(wn,{className:"port-manual-query",size:"small",children:[S.jsxs(Ct,{wrap:!0,children:[S.jsx(Wo,{strong:!0,children:"Query port"}),S.jsx(Gv,{min:1,max:65535,controls:!1,value:l,onChange:c,onPressEnter:C,placeholder:"e.g. 3000"}),S.jsx(Xe,{type:"primary",onClick:C,loading:u,disabled:!l,children:"Query"})]}),f&&S.jsx("div",{className:"port-query-result",children:g?S.jsxs(Ct,{wrap:!0,children:[S.jsx(mn,{color:"success",children:"Listening"}),S.jsxs(Wo,{code:!0,children:["PID ",g.pid]}),S.jsx(Wo,{code:!0,children:g.command}),S.jsx(fo,{title:`Kill process on port ${g.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>x(g),children:S.jsx(Xe,{danger:!0,icon:S.jsx(Er,{}),children:"Kill"})})]}):S.jsxs(Wo,{type:"secondary",children:["No process is listening on port ",l,"."]})})]}),S.jsx(xr,{className:"port-diagnostic-table",rowKey:$=>`${$.startedAt}-${$.port}-${$.pid}`,loading:r,dataSource:t,columns:h,pagination:!1,locale:{emptyText:S.jsx(Gn,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:rv,Paragraph:xb,Text:Co}=lr,$b=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}];function dle({onStaticPagesChange:e}){const[t]=on.useForm(),[n]=on.useForm(),[r,a]=i.useState({}),[l,c]=i.useState(!1),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState(!1),[b,C]=i.useState(null),[x,h]=i.useState(!1),$=async()=>{try{const N=await Ec.list();v(N)}catch(N){Ln.error(N.message)}};i.useEffect(()=>{Gr.status().then(N=>{a(N),t.setFieldsValue({domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix||"",defaultEditor:N.defaultEditor||"vscode",defaultBrowser:N.defaultBrowser||"chrome"})}).catch(N=>Ln.error(N.message)),$()},[t]);const w=N=>r[`${N}TokenConfigured`],E=async()=>{try{await t.validateFields(["domain"]),c(!0);const N=t.getFieldsValue();if(N.domain!=null){const P=await Gr.saveDomain(N.domain);a(B=>({...B,...P})),t.setFieldValue("domain",P.domain)}if(N.jiraIssuePrefix!=null){const P=await Gr.saveJiraIssuePrefix(N.jiraIssuePrefix);a(B=>({...B,...P})),t.setFieldValue("jiraIssuePrefix",P.jiraIssuePrefix)}if(N.defaultEditor!=null){const P=await Gr.saveDefaultEditor(N.defaultEditor);a(B=>({...B,...P})),t.setFieldValue("defaultEditor",P.defaultEditor)}if(N.defaultBrowser!=null){const P=await Gr.saveDefaultBrowser(N.defaultBrowser);a(B=>({...B,...P})),t.setFieldValue("defaultBrowser",P.defaultBrowser)}for(const{id:P}of $b)if(N[P]){const B=await Gr.saveAccessToken(P,N[P]);a(L=>({...L,...B})),t.resetFields([P])}c(!1),d(!0),setTimeout(()=>d(!1),1500)}catch(N){c(!1),N!=null&&N.errorFields||Ln.error(N.message)}},j=async N=>{try{const P=await Gr.saveAccessToken(N,"");a(P),t.resetFields([N]),Ln.success(`${$b.find(B=>B.id===N).label} Access Token removed.`)}catch(P){Ln.error(P.message)}},O=()=>{C(null),n.resetFields(),p(!0)},I=N=>{C(N),n.setFieldsValue({name:N.name,url:N.url}),p(!0)},R=async N=>{try{await Ec.remove(N),Ln.success("Static page deleted."),await $(),e==null||e()}catch(P){Ln.error(P.message)}},M=async()=>{try{const N=await n.validateFields();h(!0),b?(await Ec.update(b.id,N),Ln.success("Static page updated.")):(await Ec.create(N),Ln.success("Static page created.")),h(!1),p(!1),await $(),e==null||e()}catch(N){h(!1),N!=null&&N.errorFields||Ln.error(N.message)}};return S.jsxs("div",{className:"settings-page",children:[S.jsx(Co,{type:"secondary",children:"SETTINGS"}),S.jsxs("div",{className:"settings-page-header",children:[S.jsx(rv,{level:2,children:"Settings"}),S.jsx(Xe,{type:"primary",color:u?"green":"primary",variant:"solid",icon:u?S.jsx(ws,{}):null,loading:!u&&l,onClick:E,children:u?"Saved":"Save"})]}),S.jsxs(on,{form:t,layout:"vertical",children:[S.jsxs(wn,{className:"settings-card",style:{marginBottom:20},children:[S.jsxs("div",{className:"settings-title",children:[S.jsx("div",{className:"settings-icon-wrap",children:S.jsx(wi,{className:"settings-icon"})}),S.jsxs("div",{children:[S.jsx(rv,{level:4,children:"Default Applications"}),S.jsx(xb,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),S.jsxs("div",{className:"token-settings-form",children:[S.jsxs("div",{className:"token-row",children:[S.jsxs("div",{className:"token-row-info",children:[S.jsx(Co,{strong:!0,className:"token-row-name",children:"Default Editor"}),S.jsx(Co,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),S.jsx(on.Item,{name:"defaultEditor",children:S.jsx(ir,{options:QN,style:{width:220}})})]}),S.jsxs("div",{className:"token-row",children:[S.jsxs("div",{className:"token-row-info",children:[S.jsx(Co,{strong:!0,className:"token-row-name",children:"Default Browser"}),S.jsx(Co,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),S.jsx(on.Item,{name:"defaultBrowser",style:{marginBottom:0},children:S.jsx(ir,{options:Fie(r.isMac!==!1),style:{width:220}})})]})]})]}),S.jsxs(wn,{className:"settings-card",style:{marginBottom:20},children:[S.jsxs("div",{className:"settings-title",style:{borderBottom:"none",marginBottom:12,paddingBottom:0},children:[S.jsx("div",{className:"settings-icon-wrap",children:S.jsx($f,{className:"settings-icon"})}),S.jsxs("div",{style:{flex:1},children:[S.jsx(rv,{level:4,children:"Static Pages"}),S.jsx(xb,{type:"secondary",children:"Configure static pages (configuration saved in data/static-pages.json). Static page files can be placed in pages/ or data/pages/ directory or use external URLs."})]}),S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:O,children:"Add Static Page"})]}),S.jsx(xr,{dataSource:f,rowKey:"id",pagination:!1,size:"middle",columns:[{title:"Page Name",dataIndex:"name",key:"name",width:200},{title:"URL",dataIndex:"url",key:"url",render:N=>S.jsx("a",{href:N,target:"_blank",rel:"noreferrer",children:N})},{title:"Action",key:"action",width:140,align:"right",render:(N,P)=>S.jsxs(Ct,{children:[S.jsx(Xe,{type:"link",size:"small",icon:S.jsx(ss,{}),onClick:()=>I(P),children:"Edit"}),S.jsx(fo,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>R(P.id),okText:"Yes",cancelText:"No",children:S.jsx(Xe,{type:"link",danger:!0,size:"small",icon:S.jsx(Er,{}),children:"Delete"})})]})}]})]}),S.jsxs(wn,{className:"settings-card",children:[S.jsxs("div",{className:"settings-title",children:[S.jsx("div",{className:"settings-icon-wrap",children:S.jsx(Koe,{className:"settings-icon"})}),S.jsxs("div",{children:[S.jsx(rv,{level:4,children:"Access Tokens & Domain"}),S.jsx(xb,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),S.jsxs("div",{className:"token-settings-form",children:[S.jsxs("div",{className:"token-row",children:[S.jsxs("div",{className:"token-row-info",children:[S.jsx(Co,{strong:!0,className:"token-row-name",children:"Domain"}),S.jsx(Co,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),S.jsx(on.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:S.jsx(gn,{placeholder:"abc.com",allowClear:!0})})]}),S.jsxs("div",{className:"token-row",children:[S.jsxs("div",{className:"token-row-info",children:[S.jsx(Co,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),S.jsx(Co,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),S.jsx(on.Item,{name:"jiraIssuePrefix",children:S.jsx(gn,{placeholder:"PROJ",allowClear:!0})})]}),$b.map(({id:N,label:P})=>S.jsxs("div",{className:`token-row ${w(N)?"is-configured":""}`,children:[S.jsxs("div",{className:"token-row-info",children:[S.jsxs("div",{className:"token-row-name-line",children:[S.jsx(Co,{strong:!0,className:"token-row-name",children:P}),w(N)&&S.jsx(mn,{color:"success",closable:!0,onClose:B=>{B.preventDefault(),j(N)},className:"token-row-tag",children:"Configured"})]}),S.jsxs(Co,{type:"secondary",className:"token-row-hint",children:[P," API access token"]})]}),S.jsx(on.Item,{name:N,children:S.jsx(gn.Password,{placeholder:w(N)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},N))]})]})]}),S.jsx(hr,{title:b?"Edit Static Page":"Add Static Page",open:g,onOk:M,onCancel:()=>p(!1),okText:"Save",confirmLoading:x,destroyOnClose:!0,children:S.jsxs(on,{form:n,layout:"vertical",style:{marginTop:16},children:[S.jsx(on.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:S.jsx(gn,{placeholder:"e.g. test name"})}),S.jsx(on.Item,{name:"url",label:"URL",extra:"Local pages in pages/ or data/pages/ directory can be accessed via /pages/<path> or /data/pages/<path>",rules:[{required:!0,message:"Please enter page URL"}],children:S.jsx(gn,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Title:J4,Text:Ma,Paragraph:fle}=lr,{Dragger:mle}=np,e3=(e=0)=>{if(!e)return"0 B";const t=["B","KB","MB","GB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n?1:0)} ${t[n]}`},vle=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function gle(){const[e,t]=i.useState(null),[n,r]=i.useState(null),[a,l]=i.useState(75),[c,u]=i.useState(!0),[d,f]=i.useState(!0),[v,g]=i.useState(!0),[p,b]=i.useState(2),[C,x]=i.useState(!1),[h,$]=i.useState(null),[w,E]=i.useState(100),[j,O]=i.useState(!1),[I,R]=i.useState(!1),[M,N]=Ln.useMessage(),P=i.useRef(null),B=i.useRef(null),L=q=>{var V;(V=q.current)!=null&&V.url&&URL.revokeObjectURL(q.current.url)},k=q=>{var G;if(!((G=q==null?void 0:q.type)!=null&&G.startsWith("image/")))return M.error("Please choose an image file."),!1;L(P),L(B);const V=vle(q);return P.current=V,B.current=null,t(V),r(null),_(q),!1},D=q=>{var V;return[...((V=q.dataTransfer)==null?void 0:V.types)||[]].includes("Files")},H=q=>{var G;q.preventDefault(),R(!1);const V=[...((G=q.dataTransfer)==null?void 0:G.files)||[]].find(K=>K.type.startsWith("image/"));V?k(V):M.error("Drop an image file to compress it.")};i.useEffect(()=>()=>{L(P),L(B)},[]),i.useEffect(()=>{const q=V=>{var U;const G=[...((U=V.clipboardData)==null?void 0:U.items)||[]].find(J=>J.type.startsWith("image/"));if(!G)return;V.preventDefault();const K=G.getAsFile();K&&(k(new File([K],`clipboard-${Date.now()}.${K.type.split("/")[1]||"png"}`,{type:K.type})),M.success("Image read from clipboard."))};return window.addEventListener("paste",q),()=>window.removeEventListener("paste",q)},[M]);const z=async()=>{var q;try{if(!((q=navigator.clipboard)!=null&&q.read))throw new Error("Direct clipboard reading is unavailable. Paste an image with ⌘ / Ctrl + V instead.");const V=await navigator.clipboard.read();for(const G of V){const K=G.types.find(U=>U.startsWith("image/"));if(K){const U=await G.getType(K);k(new File([U],`clipboard-${Date.now()}.${K.split("/")[1]||"png"}`,{type:K})),M.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(V){M.warning(V.message||"Unable to read an image from the clipboard.")}},_=async(q=e==null?void 0:e.file)=>{if(q){O(!0);try{const[{encode:V},{imageData:G,width:K,height:U}]=await Promise.all([XN(()=>import("./index-Dty-56mC.js"),[]),YN(q,h,w)]),J=await V(G,{quality:a,progressive:c,optimize_coding:d,auto_subsample:v,chroma_subsample:p,trellis_multipass:C});L(B);const Q=new Blob([J],{type:"image/jpeg"}),te={url:URL.createObjectURL(Q),size:Q.size,width:K,height:U};B.current=te,r(te),M.success("MozJPEG compression complete.")}catch(V){M.error(V.message||"Image compression failed.")}finally{O(!1)}}},F=()=>{if(!n)return;const q=e.name.replace(/\.[^.]+$/,"")||"image",V=document.createElement("a");V.href=n.url,V.download=`${q}-mozjpeg.jpg`,V.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return S.jsxs(S.Fragment,{children:[N,S.jsxs("div",{className:`squoosh-page ${I?"is-file-dragging":""}`,onDragOver:q=>{D(q)&&(q.preventDefault(),R(!0))},onDragLeave:q=>{q.currentTarget===q.target&&R(!1)},onDrop:H,children:[S.jsxs("header",{className:"squoosh-header",children:[S.jsxs("div",{children:[S.jsx(Ma,{children:"MOZJPEG WORKBENCH"}),S.jsx(J4,{level:2,children:"Image compression"})]}),S.jsxs(Ct,{children:[S.jsx(Xe,{icon:S.jsx(Zo,{}),onClick:z,children:"Read clipboard"}),S.jsx(Xe,{type:"primary",icon:S.jsx(n1,{}),onClick:()=>_(),disabled:!e,loading:j,children:"Compress"})]})]}),S.jsxs("div",{className:"squoosh-studio",children:[S.jsxs("div",{className:"squoosh-preview-area",children:[S.jsx(t3,{title:"Original",detail:e?`${e3(e.size)} · ${e.name}`:"Choose an image to begin",children:e?S.jsx(n3,{label:"Original image",image:e.url}):S.jsxs(mle,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:k,className:"image-dropzone",children:[S.jsx("p",{className:"ant-upload-drag-icon",children:S.jsx(Jd,{})}),S.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),S.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),S.jsx(t3,{title:"MozJPEG output",detail:n?`${e3(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&S.jsx(Xe,{type:"primary",size:"small",icon:S.jsx(LC,{}),onClick:F,children:"Download"}),children:j?S.jsx("div",{className:"image-loading",children:S.jsx(Pa,{tip:"Compressing…"})}):n?S.jsxs(S.Fragment,{children:[S.jsx(n3,{label:"Compressed JPEG",image:n.url}),W!==null&&S.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):S.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),S.jsxs("aside",{className:"squoosh-settings",children:[S.jsxs("div",{className:"settings-heading",children:[S.jsx(Ma,{children:"ENCODER"}),S.jsx(J4,{level:4,children:"MozJPEG"}),S.jsx(fle,{children:"Fine-tune output size and image quality."})]}),S.jsxs("div",{className:"option-row",children:[S.jsxs("div",{children:[S.jsx(Ma,{strong:!0,children:"Quality"}),S.jsx("br",{}),S.jsx(Ma,{type:"secondary",children:"Higher values preserve more detail."})]}),S.jsx(mn,{color:"blue",children:a})]}),S.jsx(fX,{min:1,max:100,value:a,onChange:l,tooltip:{formatter:q=>`${q}`}}),S.jsxs("div",{className:"option-select",children:[S.jsxs("div",{children:[S.jsx(Ma,{strong:!0,children:"Long edge"}),S.jsx("br",{}),S.jsx(Ma,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),S.jsx(Gv,{min:1,max:16384,value:h,onChange:$,placeholder:"Original",addonAfter:"px"})]}),S.jsxs("div",{className:"option-select",children:[S.jsxs("div",{children:[S.jsx(Ma,{strong:!0,children:"Scale"}),S.jsx("br",{}),S.jsx(Ma,{type:"secondary",children:"Scale the image by percentage."})]}),S.jsx(Gv,{min:1,max:100,value:w,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),S.jsx(av,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:c,onChange:u}),S.jsx(av,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:d,onChange:f}),S.jsx(Bv,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:S.jsxs(S.Fragment,{children:[S.jsx(av,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),S.jsxs("div",{className:"option-select",children:[S.jsxs("div",{children:[S.jsx(Ma,{strong:!0,children:"Chroma subsampling"}),S.jsx("br",{}),S.jsx(Ma,{type:"secondary",children:"Enabled when automatic mode is off."})]}),S.jsx(ir,{disabled:v,value:p,onChange:b,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),S.jsx(av,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:C,onChange:x})]})}]}),S.jsx(Xe,{type:"primary",size:"large",block:!0,icon:S.jsx(n1,{}),onClick:()=>_(),disabled:!e,loading:j,children:"Compress image"})]})]})]})]})}function t3({title:e,detail:t,action:n,children:r}){return S.jsxs("div",{className:"preview-pane",children:[S.jsxs("header",{children:[S.jsxs("div",{children:[S.jsx(Ma,{children:e}),S.jsx("span",{children:t})]}),n]}),S.jsx("div",{className:"preview-canvas",children:r})]})}function av({label:e,description:t,checked:n,onChange:r}){return S.jsxs("div",{className:"option-switch",children:[S.jsxs("div",{children:[S.jsx(Ma,{strong:!0,children:e}),S.jsx("br",{}),S.jsx(Ma,{type:"secondary",children:t})]}),S.jsx(Gd,{checked:n,onChange:r})]})}function n3({label:e,image:t,metadata:n}){return S.jsxs("div",{className:"image-panel",children:[S.jsx("img",{src:t,alt:e}),n&&S.jsx("div",{className:"image-panel-meta",children:S.jsx(Ma,{type:"secondary",children:n})})]})}const{Title:ple,Text:na,Paragraph:r3}=lr;function hle({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?S.jsx(Gn,{description:"No open pull requests found.",style:{padding:"24px 0"}}):S.jsx("div",{style:{display:"grid",gap:"12px"},children:e.map(a=>{var d,f,v,g,p,b,C,x,h;const l=a.reviewUrl||"",c=a.reviewUrl||a.id,u=t.includes(c);return S.jsx(wn,{size:"small",hoverable:!0,style:{borderColor:u?"#1677ff":"#e3e6ef",backgroundColor:u?"#f0f5ff":"#ffffff",transition:"all 0.2s"},onClick:()=>l&&r(l),children:S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[S.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"12px"},children:[S.jsx(aa,{checked:u,onChange:$=>{$.stopPropagation(),n(c)},onClick:$=>$.stopPropagation()}),S.jsxs("div",{style:{flex:1,minWidth:0},children:[S.jsxs(Ct,{size:8,wrap:!0,children:[S.jsxs(na,{strong:!0,style:{fontSize:"14px"},children:["#",a.id," ",a.title]}),a.draft&&S.jsx(mn,{color:"gold",children:"Draft"})]}),S.jsxs("div",{style:{marginTop:"6px",fontSize:"12px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px",color:"#727b94"},children:[S.jsxs(na,{type:"secondary",style:{fontWeight:500},children:[(v=(f=(d=a.fromRef)==null?void 0:d.repository)==null?void 0:f.project)==null?void 0:v.key," / ",(p=(g=a.fromRef)==null?void 0:g.repository)==null?void 0:p.slug]}),S.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),S.jsx(mn,{size:"small",color:"cyan",style:{margin:0},children:(b=a.fromRef)==null?void 0:b.displayId}),S.jsx(FN,{style:{fontSize:"10px",color:"#8c8c8c"}}),S.jsx(mn,{size:"small",color:"blue",style:{margin:0},children:(C=a.toRef)==null?void 0:C.displayId}),S.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),S.jsxs("span",{children:["Author: ",S.jsx("strong",{children:(h=(x=a.author)==null?void 0:x.user)==null?void 0:h.displayName})]}),S.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),S.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),S.jsxs(Ct,{size:8,children:[S.jsx(Xe,{size:"small",icon:S.jsx(KN,{}),onClick:$=>{$.stopPropagation(),l&&Ca(l)},children:"Open"}),S.jsx(Xe,{type:"primary",size:"small",onClick:$=>{$.stopPropagation(),l&&r(l)},children:"Review"})]})]})},c)})})}function ble(){const[e]=on.useForm(),[t,n]=i.useState(!1),[r,a]=i.useState(!0),[l,c]=i.useState(null),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState([]),[b,C]=i.useState(!1),[x,h]=i.useState("review"),[$,w]=i.useState([]),[E,j]=i.useState(!1),[O,I]=i.useState(null),[R,M]=i.useState(""),[N,P]=i.useState(!1),[B,L]=i.useState(new Set),k=async()=>{C(!0);try{const[Q,te]=await Promise.all([nv.myPrs().catch(()=>({values:[]})),nv.reviewPrs().catch(()=>({values:[]}))]);v((Q==null?void 0:Q.values)||[]),p((te==null?void 0:te.values)||[])}catch{}C(!1)};i.useEffect(()=>{Gr.status().then(Q=>{a(Q.bitbucketTokenConfigured),Q.bitbucketTokenConfigured&&k()}).catch(()=>{})},[]);const D=x==="review"?g:f,H=Q=>{h(Q),w([])},z=Q=>{w(te=>te.includes(Q)?te.filter(Y=>Y!==Q):[...te,Q])},_=Q=>{if(Q.target.checked){const te=D.map(Y=>Y.reviewUrl||Y.id);w(te)}else w([])},F=()=>{const te=D.filter(ae=>$.includes(ae.reviewUrl||ae.id)).map(ae=>ae.reviewUrl).filter(Boolean);if(te.length===0){Ln.warning("No PR URLs selected");return}const Y=te.join(`
|
|
498
|
-
`);navigator.clipboard.writeText(Y),Ln.success(`Copied ${te.length} PR URL(s) to clipboard`)},W=D.length>0&&D.every(Q=>$.includes(Q.reviewUrl||Q.id)),q=$.length>0&&!W,V=async Q=>{const te=typeof Q=="string"?Q:Q.prLink;if(te){n(!0),c(null),e.setFieldsValue({prLink:te});try{const Y=await nv.check(te.trim());c(Y),L(new Set),Ln.success("PR Review completed successfully.")}catch(Y){Ln.error(Y.message)}finally{n(!1)}}},G=(Q,te)=>{const Y=`${Q}:${te.line}:${te.rule}`,ae=`⚠️ [${te.severity.toUpperCase()}] ${te.rule}: ${te.message}
|
|
499
|
-
\`\`\`javascript
|
|
500
|
-
${te.code.trim()}
|
|
501
|
-
\`\`\``;I({filePath:Q,issue:te,issueKey:Y}),M(ae),j(!0)},K=async()=>{if(!(!O||!R.trim()||!l)){P(!0);try{const Q=await nv.comment({projectKey:l.pr.projectKey,repositorySlug:l.pr.repositorySlug,pullRequestId:l.pr.pullRequestId,filePath:O.filePath,line:O.issue.line,commentText:R.trim()});Ln.success(Q.message||"Comment posted to PR successfully."),L(te=>new Set([...te,O.issueKey])),j(!1)}catch(Q){Ln.error(Q.message||"Failed to post comment.")}finally{P(!1)}}},U=()=>{if(!l)return;const{pr:Q,stats:te,files:Y}=l;let ae=`## 🔍 PR Review Report: ${Q.title}
|
|
502
|
-
`;if(ae+=`* **Author:** ${Q.author}
|
|
503
|
-
`,ae+=`* **Branch:** \`${Q.sourceBranch}\` ➔ \`${Q.targetBranch}\`
|
|
504
|
-
|
|
505
|
-
`,ae+=`### 📊 Summary
|
|
506
|
-
`,ae+=`* **Total Files Changed:** ${te.totalFilesChanged}
|
|
507
|
-
`,ae+=`* **Filtered Files (Ignored):** ${te.filteredCount}
|
|
508
|
-
`,ae+=`* **Reviewed Files:** ${te.reviewedCount}
|
|
509
|
-
`,ae+=`* **Total Issues Found:** ${te.totalIssues} (Critical: ${te.criticalCount}, Warnings: ${te.warningCount}, Suggestions: ${te.infoCount})
|
|
510
|
-
|
|
511
|
-
`,Y.length===0)ae+=`✅ **LGTM!** No code style or quality issues detected in the reviewed files.
|
|
512
|
-
`;else{ae+=`### ⚠️ Findings
|
|
513
|
-
`;for(const re of Y){ae+=`#### 📄 File: \`${re.filePath}\` (${re.issues.length} issues)
|
|
514
|
-
`;for(const Z of re.issues){const X=Z.severity==="critical"?"🔴 [Critical]":Z.severity==="warning"?"🟡 [Warning]":"🔵 [Suggestion]";ae+=`- **${X}** line ${Z.line}: *${Z.rule}* - ${Z.message}
|
|
515
|
-
`,ae+=` \`\`\`javascript
|
|
516
|
-
${Z.code.trim()}
|
|
517
|
-
\`\`\`
|
|
518
|
-
`}ae+=`
|
|
519
|
-
`}}navigator.clipboard.writeText(ae),d(!0),Ln.success("Markdown report copied to clipboard."),setTimeout(()=>d(!1),2e3)},J=Q=>Q==="critical"?S.jsx(mn,{color:"error",icon:S.jsx(VN,{}),children:"Critical"}):Q==="warning"?S.jsx(mn,{color:"warning",icon:S.jsx(Uc,{}),children:"Warning"}):S.jsx(mn,{color:"processing",icon:S.jsx(bs,{}),children:"Suggestion"});return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"page-header",children:S.jsxs("div",{children:[S.jsx(na,{type:"secondary",children:"CODE QUALITY"}),S.jsx(ple,{level:2,children:"PR Review"}),S.jsx(r3,{type:"secondary",children:"Analyze pull requests on Bitbucket for quality issues, leaks, and debug flags."})]})}),!r&&S.jsx(wd,{className:"service-config",message:"Bitbucket Token Required",description:S.jsxs("span",{children:["Please configure your ",S.jsx("strong",{children:"Bitbucket Access Token"})," in the ",S.jsx("a",{href:"#/settings",children:"Settings"})," page to review internal PRs."]}),type:"warning",showIcon:!0,closable:!1}),S.jsx(wn,{className:"service-config",children:S.jsx(on,{form:e,layout:"vertical",onFinish:V,children:S.jsx(on.Item,{name:"prLink",label:"Pull Request URL",rules:[{required:!0,message:"Please enter a Bitbucket Pull Request link."},{type:"url",message:"Please enter a valid URL."}],children:S.jsx(gn,{placeholder:"https://bitbucket.xxx.com/projects/PROJ/repos/repo/pull-requests/123",disabled:t,allowClear:!0,addonAfter:S.jsxs(Ct,{size:8,children:[S.jsx(Xe,{type:"link",size:"small",onClick:()=>e.submit(),disabled:t,style:{padding:0,height:"auto"},children:"Review"}),S.jsx(pC,{type:"vertical",style:{margin:"0 2px"}}),S.jsx(Xe,{type:"link",size:"small",icon:S.jsx(KN,{}),onClick:()=>{const Q=e.getFieldValue("prLink");Q&&Q.trim()?Ca(Q.trim()):Ln.warning("Please enter a Pull Request URL first.")},disabled:t,style:{padding:0,height:"auto"},children:"Open"})]})})})})}),t&&S.jsx(wn,{style:{textAlign:"center",padding:"40px 0"},children:S.jsxs(Ct,{direction:"vertical",size:"middle",children:[S.jsx(No,{style:{fontSize:32,color:"#6d5ce7"},spin:!0}),S.jsx(na,{type:"secondary",children:"Fetching diffs and reviewing code changes..."})]})}),!l&&!t&&r&&S.jsxs(wn,{tabList:[{key:"review",tab:`Waiting for my Review (${g.length})`},{key:"mine",tab:`Authored by Me (${f.length})`}],activeTabKey:x,onTabChange:H,loading:b,style:{borderColor:"#e3e6ef",marginTop:16},children:[D.length>0&&S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,paddingBottom:12,borderBottom:"1px solid #f0f0f0"},children:[S.jsxs(Ct,{size:12,children:[S.jsxs(aa,{checked:W,indeterminate:q,onChange:_,children:["Select All (",D.length,")"]}),$.length>0&&S.jsxs(na,{type:"secondary",style:{fontSize:"13px"},children:[$.length," selected"]})]}),S.jsxs(Xe,{icon:S.jsx(Zo,{}),disabled:$.length===0,onClick:F,children:["Copy Selected URLs ",$.length>0?`(${$.length})`:""]})]}),S.jsx(hle,{prs:D,selectedPrKeys:$,onToggleSelectPr:z,onSelectPr:V})]}),l&&S.jsxs(Ct,{direction:"vertical",size:"large",style:{width:"100%",paddingBottom:24},children:[S.jsx("div",{children:S.jsx(Xe,{onClick:()=>c(null),children:"← Back to PR list"})}),S.jsx(wn,{title:S.jsxs(Ct,{children:[S.jsx(WN,{}),S.jsx("span",{children:l.pr.title})]}),extra:S.jsx(Xe,{icon:S.jsx(Zo,{}),onClick:U,children:u?"Copied":"Copy Report"}),children:S.jsxs(pl,{gutter:[16,16],children:[S.jsx(Sr,{xs:24,sm:12,md:6,children:S.jsxs(Ct,{direction:"vertical",size:2,children:[S.jsx(na,{type:"secondary",style:{fontSize:12},children:"Author"}),S.jsx(na,{strong:!0,children:l.pr.author})]})}),S.jsx(Sr,{xs:24,sm:12,md:6,children:S.jsxs(Ct,{direction:"vertical",size:2,children:[S.jsx(na,{type:"secondary",style:{fontSize:12},children:"Repository"}),S.jsx(na,{strong:!0,children:l.pr.repositorySlug})]})}),S.jsx(Sr,{xs:24,sm:12,md:6,children:S.jsxs(Ct,{direction:"vertical",size:2,children:[S.jsx(na,{type:"secondary",style:{fontSize:12},children:"Source Branch"}),S.jsx(mn,{color:"cyan",style:{margin:0},children:l.pr.sourceBranch})]})}),S.jsx(Sr,{xs:24,sm:12,md:6,children:S.jsxs(Ct,{direction:"vertical",size:2,children:[S.jsx(na,{type:"secondary",style:{fontSize:12},children:"Target Branch"}),S.jsx(mn,{color:"blue",style:{margin:0},children:l.pr.targetBranch})]})})]})}),S.jsxs(pl,{gutter:[16,16],children:[S.jsx(Sr,{xs:12,md:6,children:S.jsx(wn,{size:"small",style:{textAlign:"center"},children:S.jsx(bi,{title:"Total Changed",value:l.stats.totalFilesChanged})})}),S.jsx(Sr,{xs:12,md:6,children:S.jsx(wn,{size:"small",style:{textAlign:"center"},children:S.jsx(bi,{title:"Filtered (Ignored)",value:l.stats.filteredCount,valueStyle:{color:"#8c8c8c"}})})}),S.jsx(Sr,{xs:12,md:6,children:S.jsx(wn,{size:"small",style:{textAlign:"center"},children:S.jsx(bi,{title:"Reviewed Files",value:l.stats.reviewedCount,valueStyle:{color:"#6d5ce7"}})})}),S.jsx(Sr,{xs:12,md:6,children:S.jsx(wn,{size:"small",style:{textAlign:"center"},children:S.jsx(bi,{title:"Total Issues",value:l.stats.totalIssues,valueStyle:{color:l.stats.totalIssues>0?"#ff4d4f":"#52c41a"}})})})]}),S.jsx(wn,{title:"Review Findings",children:l.files.length===0?S.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:S.jsxs(Ct,{direction:"vertical",size:"small",children:[S.jsxs(na,{strong:!0,style:{color:"#52c41a",fontSize:"16px"},children:[S.jsx(hs,{})," LGTM! No issues found."]}),S.jsxs(na,{type:"secondary",children:["Review completed on ",l.stats.reviewedCount," files (filtered out ",l.stats.filteredCount," build/test configs)."]})]})}):S.jsx(Bv,{defaultActiveKey:l.files.map(Q=>Q.filePath),expandIconPosition:"end",children:l.files.map(Q=>{const te=Q.issues.filter(Z=>Z.severity==="critical").length,Y=Q.issues.filter(Z=>Z.severity==="warning").length,ae=Q.issues.filter(Z=>Z.severity==="info").length,re=S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"92%",flexWrap:"wrap",gap:"8px"},children:[S.jsx(na,{strong:!0,children:Q.filePath}),S.jsxs(Ct,{children:[te>0&&S.jsx(qa,{count:te,style:{backgroundColor:"#ff4d4f"},title:"Critical Issues"}),Y>0&&S.jsx(qa,{count:Y,style:{backgroundColor:"#faad14"},title:"Warnings"}),ae>0&&S.jsx(qa,{count:ae,style:{backgroundColor:"#1890ff"},title:"Suggestions"})]})]});return S.jsx(Bv.Panel,{header:re,children:S.jsx(xr,{dataSource:Q.issues.map((Z,X)=>({...Z,key:X})),pagination:!1,size:"small",columns:[{title:"Severity",dataIndex:"severity",width:110,render:Z=>J(Z)},{title:"Line",dataIndex:"line",width:80,render:Z=>S.jsxs(na,{code:!0,children:["L",Z]})},{title:"Issue Description",dataIndex:"message",render:(Z,X)=>S.jsxs(Ct,{direction:"vertical",size:2,style:{width:"100%"},children:[S.jsx(na,{strong:!0,children:X.rule}),S.jsx(na,{type:"secondary",children:Z}),S.jsx("pre",{style:{margin:"4px 0 0",padding:"6px 10px",background:"#f5f5f5",borderRadius:"4px",fontSize:"12px",overflowX:"auto"},children:S.jsx("code",{children:X.code})})]})},{title:"Action",key:"action",width:120,align:"center",render:(Z,X)=>{const oe=`${Q.filePath}:${X.line}:${X.rule}`;return B.has(oe)?S.jsx(mn,{color:"green",icon:S.jsx(hs,{}),children:"Commented"}):S.jsx(Xe,{size:"small",icon:S.jsx(W4,{}),onClick:()=>G(Q.filePath,X),children:"Comment"})}}]})},Q.filePath)})})}),l.filteredOut.length>0&&S.jsx(wn,{title:`Ignored Files (${l.filteredOut.length})`,size:"small",children:S.jsx("div",{style:{maxHeight:200,overflowY:"auto"},children:S.jsx(Ct,{size:[4,8],wrap:!0,children:l.filteredOut.map(Q=>S.jsx(mn,{style:{color:"#8c8c8c"},children:Q},Q))})})}),S.jsx(hr,{title:S.jsxs(Ct,{children:[S.jsx(W4,{}),S.jsx("span",{children:"Post Comment to Bitbucket PR"})]}),open:E,onCancel:()=>!N&&j(!1),onOk:K,okText:"Submit Comment",cancelText:"Cancel",confirmLoading:N,okButtonProps:{icon:S.jsx(VC,{})},width:600,children:O&&S.jsxs("div",{style:{marginTop:12},children:[S.jsxs(r3,{type:"secondary",style:{marginBottom:12,fontSize:13},children:["File: ",S.jsx(na,{code:!0,children:O.filePath})," (Line ",O.issue.line,")"]}),S.jsx(gn.TextArea,{rows:6,value:R,onChange:Q=>M(Q.target.value),placeholder:"Write your review comment..."})]})})]})]})}function yle({open:e,editingFilter:t,onCancel:n,onSave:r}){const[a]=on.useForm();i.useEffect(()=>{e&&(t?a.setFieldsValue({name:t.name,filterId:t.filterId}):a.resetFields())},[e,t,a]);const l=async()=>{try{const c=await a.validateFields();await r(c),a.resetFields()}catch{}};return S.jsx(hr,{title:t?"Edit Filter":"Add Filter",open:e,onCancel:n,onOk:l,destroyOnClose:!0,children:S.jsxs(on,{form:a,layout:"vertical",style:{marginTop:16},children:[S.jsx(on.Item,{name:"name",label:"Filter Name",rules:[{required:!0,message:"Please enter filter name"}],children:S.jsx(gn,{placeholder:"e.g. My Sprint Issues"})}),S.jsx(on.Item,{name:"filterId",label:"Filter ID",rules:[{required:!0,message:"Please enter Jira Filter ID"}],children:S.jsx(gn,{placeholder:"e.g. 12345"})})]})})}const{Text:Cle}=lr;function Sle({open:e,filters:t,onCancel:n,onCreate:r,onEdit:a,onDelete:l}){const[c,u]=i.useState("");i.useEffect(()=>{e&&Gr.status().then(f=>{u(f.domain||"")}).catch(()=>{})},[e]);const d=[{title:"Filter Name",dataIndex:"name",key:"name",render:(f,v)=>{const g=Vie(c,v.filterId);return S.jsxs(Ct,{size:4,children:[S.jsx("a",{style:{fontWeight:600},onClick:p=>{p.preventDefault(),Ca(g)},title:"Open filter in Jira",children:f}),S.jsx(FC,{style:{fontSize:11,color:"#1677ff",cursor:"pointer"},onClick:()=>Ca(g),title:"Open filter in Jira"})]})}},{title:"Filter ID",dataIndex:"filterId",key:"filterId",width:150,render:f=>S.jsx(Cle,{code:!0,children:f})},{title:"Action",key:"action",width:130,align:"right",render:(f,v)=>S.jsxs(Ct,{size:"small",children:[S.jsx(Xe,{type:"text",icon:S.jsx(ss,{}),onClick:()=>a(v)}),S.jsx(fo,{title:"Delete filter?",description:"Are you sure you want to delete this filter?",onConfirm:()=>l(v.id),okText:"Yes",cancelText:"No",children:S.jsx(Xe,{type:"text",danger:!0,icon:S.jsx(Er,{})})})]})}];return S.jsx(hr,{title:"Filter List",open:e,onCancel:n,footer:[S.jsx(Xe,{onClick:n,children:"Close"},"close"),S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:r,children:"Add Filter"},"add")],width:640,children:S.jsx(xr,{rowKey:"id",dataSource:t,columns:d,pagination:!1,size:"small",style:{marginTop:16}})})}const{Text:a3}=lr;function xle({open:e,confirmLoading:t,issue:n,onCancel:r,onClone:a}){const[l]=on.useForm();i.useEffect(()=>{e&&n?l.setFieldsValue({summary:n.summary||""}):l.resetFields()},[e,n,l]);const c=async()=>{try{const u=await l.validateFields();await a(u)}catch{}};return S.jsx(hr,{title:n?`Clone Ticket (${n.key})`:"Clone Ticket",open:e,onCancel:r,onOk:c,confirmLoading:t,destroyOnClose:!0,okText:"Clone",children:S.jsxs(on,{form:l,layout:"vertical",style:{marginTop:16},children:[S.jsxs(on.Item,{label:"Original Ticket",children:[S.jsx(a3,{code:!0,children:n==null?void 0:n.key})," ",S.jsx(a3,{type:"secondary",children:n==null?void 0:n.summary})]}),S.jsx(on.Item,{name:"summary",label:"Clone Ticket Summary",rules:[{required:!0,message:"Please enter clone ticket summary"}],children:S.jsx(gn,{placeholder:"Enter summary for the cloned ticket"})})]})})}const{Title:$le,Text:Cc,Paragraph:wle}=lr,Ele=e=>{if(!e)return"default";const t=(typeof e=="string"?e:e.name||"").toLowerCase();return t.includes("blocker")||t.includes("highest")||t.includes("p0")||t.includes("urgent")?"red":t.includes("critical")||t.includes("high")||t.includes("p1")?"volcano":t.includes("major")||t.includes("medium")||t.includes("normal")||t.includes("p2")?"orange":t.includes("minor")||t.includes("low")||t.includes("p3")?"blue":t.includes("trivial")||t.includes("lowest")||t.includes("p4")?"cyan":"default"},o3=e=>e?typeof e=="string"?e:e.name||"—":"—",i3=e=>{if(!e)return 0;const t=(typeof e=="string"?e:e.name||"").toLowerCase();return t.includes("blocker")||t.includes("highest")||t.includes("p0")||t.includes("urgent")?50:t.includes("critical")||t.includes("high")||t.includes("p1")?40:t.includes("major")||t.includes("medium")||t.includes("normal")||t.includes("p2")?30:t.includes("minor")||t.includes("low")||t.includes("p3")?20:t.includes("trivial")||t.includes("lowest")||t.includes("p4")?10:0},tM=(e,t,n)=>{if(!t||!Array.isArray(e))return null;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`\\b${r}\\b`,"i"),l=e.find(c=>{const u=a.test(c.title||""),d=a.test(c.description||""),f=!!(n&&c.description&&c.description.includes(n));return u||d||f});return l?{isAdded:!0,completed:!!l.completed,todoItem:l}:null},l3=(e,t,n)=>!!tM(e,t,n);function Ole(){const{message:e}=Da.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(null),[l,c]=i.useState({}),[u,d]=i.useState(!0),[f,v]=i.useState(!1),[g,p]=i.useState(""),[b,C]=i.useState([]),[x,h]=i.useState(!1),[$,w]=i.useState(null),[E,j]=i.useState(!1),[O,I]=i.useState(!1),[R,M]=i.useState(!1),[N,P]=i.useState(null),[B,L]=i.useState({open:!1,x:0,y:0,record:null}),k=i.useCallback(async()=>{try{const U=await ha.list();C(U)}catch{}},[]),D=i.useCallback(async()=>{try{const U=await bc.list();n(U),U.length>0?(!r||!U.some(J=>J.id===r))&&a(U[0].id):(a(null),c({}))}catch(U){e.error(U.message)}finally{d(!1)}},[r,e]),H=i.useCallback(async U=>{if(U){v(!0),p("");try{const J=await bc.issues(U);c(Q=>({...Q,[U]:J.issues||[]}))}catch(J){p(J.message),c(Q=>{const te={...Q};return delete te[U],te})}finally{v(!1)}}},[]);i.useEffect(()=>{D(),k()},[D,k]),i.useEffect(()=>{r&&H(r)},[r,H]),i.useEffect(()=>{if(!B.open)return;const U=()=>{L(J=>({...J,open:!1}))};return window.addEventListener("click",U),window.addEventListener("contextmenu",U),()=>{window.removeEventListener("click",U),window.removeEventListener("contextmenu",U)}},[B.open]);const z=()=>{w(null),h(!0)},_=U=>{w(U),h(!0)},F=async U=>{try{if($)await bc.update($.id,U),e.success("Filter updated");else{const J=await bc.create(U);e.success("Filter created"),a(J.id)}h(!1),await D()}catch(J){e.error(J.message)}},W=async U=>{var J;if(!(!N||!r)){M(!0);try{const Q=await bc.cloneIssue({filterId:r,issueKey:N.key,summary:U.summary});e.success(`Cloned issue [${((J=Q.issue)==null?void 0:J.key)||N.key}] successfully`),I(!1),P(null),H(r)}catch(Q){e.error(Q.message||"Failed to clone ticket")}finally{M(!1)}}},q=async U=>{try{await bc.remove(U),e.success("Filter deleted"),await D()}catch(J){e.error(J.message)}},V=async U=>{if(!(!U||!U.key))try{const J=await ha.list();if(l3(J,U.key,U.url)){e.info(`Task [${U.key}] is already in the Todo list`);return}const te=o3(U.priority).toLowerCase();let Y="medium";te.includes("blocker")||te.includes("highest")||te.includes("critical")||te.includes("high")||te.includes("p0")||te.includes("p1")?Y="high":(te.includes("minor")||te.includes("low")||te.includes("trivial")||te.includes("lowest")||te.includes("p3")||te.includes("p4"))&&(Y="low");const ae={title:`[${U.key}] ${U.summary}`,description:U.url?`[${U.key}](${U.url}) - ${U.summary}`:U.summary,priority:Y,category:"work",dueDate:U.dueDate||null,completed:!1,archived:!1};await ha.create(ae),e.success(`Added [${U.key}] to Todo list`),k()}catch(J){e.error(J.message||"Failed to add to Todo list")}},G=[{title:"Summary",dataIndex:"summary",key:"summary",sorter:(U,J)=>(U.summary||"").localeCompare(J.summary||""),render:(U,J)=>{const Q=tM(b,J.key,J.url);return S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"nowrap",minWidth:0},children:[Q&&(Q.completed?S.jsx(An,{title:"Todo: Completed (已完成)",children:S.jsx(Ss,{style:{color:"#52c41a",fontSize:15,flexShrink:0}})}):S.jsx(An,{title:"Todo: Pending (待处理)",children:S.jsx(Lae,{style:{color:"#fa8c16",fontSize:15,flexShrink:0}})})),S.jsx(Cc,{code:!0,style:{fontSize:12,flexShrink:0,whiteSpace:"nowrap",cursor:"pointer"},onClick:te=>{te.preventDefault(),te.stopPropagation(),J.key&&(navigator.clipboard.writeText(J.key),e.success(`Copied ${J.key}`))},title:"Click to copy Jira Key",children:J.key}),S.jsx("a",{style:{fontWeight:500,wordBreak:"break-word",overflowWrap:"break-word"},onClick:te=>{te.preventDefault(),Ca(J.url)},children:U})]})}},{title:"Status",dataIndex:"status",key:"status",width:140,align:"center",sorter:(U,J)=>(U.status||"").localeCompare(J.status||""),render:U=>U?S.jsx(mn,{style:{whiteSpace:"nowrap"},children:U}):S.jsx(Cc,{type:"secondary",children:"—"})},{title:"Priority",dataIndex:"priority",key:"priority",width:130,align:"center",sorter:(U,J)=>i3(U.priority)-i3(J.priority),render:U=>{const J=o3(U),Q=Ele(U);return S.jsx(mn,{color:Q,style:{whiteSpace:"nowrap"},children:J})}},{title:"Due Date",dataIndex:"dueDate",key:"dueDate",width:140,align:"center",sorter:(U,J)=>(U.dueDate||"").localeCompare(J.dueDate||""),render:U=>U?S.jsx(Cc,{type:"secondary",children:U}):S.jsx(Cc,{type:"secondary",children:"—"})}],K=B.record?l3(b,B.record.key,B.record.url):!1;return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(Cc,{type:"secondary",children:"JIRA"}),S.jsx($le,{level:2,children:"Jira Filters"}),S.jsx(wle,{type:"secondary",children:"Track issues across configured Jira filters."})]}),S.jsxs(Ct,{children:[S.jsx(Xe,{onClick:()=>j(!0),children:"Filter List"}),S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:z,children:"+ Filter"})]})]}),u?S.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:S.jsx(Pa,{size:"large"})}):t.length?S.jsxs(S.Fragment,{children:[S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,width:"100%",minWidth:0},children:[S.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden"},children:S.jsx(Bo,{activeKey:r,onChange:a,style:{marginBottom:0},items:t.map(U=>{var te;const J=U.id in l,Q=(te=l[U.id])==null?void 0:te.length;return{key:U.id,label:J?`${U.name} (${Q})`:U.name}})})}),r&&S.jsx(Xe,{icon:S.jsx(gs,{}),loading:f,onClick:()=>H(r),style:{marginLeft:16,flexShrink:0},children:"Refresh"})]}),f&&!(r in l)?S.jsx("div",{style:{padding:"60px 0",textAlign:"center"},children:S.jsx(Pa,{size:"large"})}):g&&!(r in l)?S.jsxs("div",{style:{padding:"40px 0",textAlign:"center"},children:[S.jsx(Cc,{danger:!0,children:g}),S.jsx("div",{style:{marginTop:12},children:S.jsx(Xe,{size:"small",icon:S.jsx(gs,{}),onClick:()=>H(r),children:"Retry"})})]}):S.jsx(xr,{className:"jira-filters-table",rowKey:"id",dataSource:l[r]||[],columns:G,pagination:!1,scroll:{x:"max-content"},onRow:U=>({onContextMenu:J=>{J.preventDefault(),J.stopPropagation(),k(),L({open:!0,x:J.clientX,y:J.clientY,record:U})}})})]}):S.jsx(Gn,{description:"No Jira filters configured yet.",style:{marginTop:80}}),B.open&&S.jsx(ls,{trigger:["click"],menu:{items:[{key:"add-todo",disabled:K,icon:S.jsx(HC,{style:K?{color:"#52c41a"}:void 0}),label:K?"Already in Todo List":"Add to Todo List",onClick:()=>{B.record&&!K&&V(B.record),L(U=>({...U,open:!1}))}},{key:"clone-issue",icon:S.jsx(Zo,{}),label:"Clone Ticket",onClick:()=>{B.record&&(P(B.record),I(!0)),L(U=>({...U,open:!1}))}},{key:"open-jira",icon:S.jsx(FC,{}),label:"Open in Jira",onClick:()=>{var U;(U=B.record)!=null&&U.url&&Ca(B.record.url),L(J=>({...J,open:!1}))}}]},open:B.open,onOpenChange:U=>{U||L(J=>({...J,open:!1}))},children:S.jsx("div",{style:{position:"fixed",left:B.x,top:B.y,width:1,height:1,zIndex:9999}})}),S.jsx(yle,{open:x,editingFilter:$,onCancel:()=>h(!1),onSave:F}),S.jsx(Sle,{open:E,filters:t,onCancel:()=>j(!1),onCreate:()=>{j(!1),z()},onEdit:U=>{j(!1),_(U)},onDelete:q}),S.jsx(xle,{open:O,confirmLoading:R,issue:N,onCancel:()=>{R||(I(!1),P(null))},onClone:W})]})}const{TextArea:Rle}=gn;function jle({open:e,editingTodo:t,onCancel:n,onSave:r}){const[a]=on.useForm();i.useEffect(()=>{e&&(t?a.setFieldsValue({title:t.title||"",description:t.description||"",priority:t.priority||"medium",category:t.category||"work",dueDate:t.dueDate?ma(t.dueDate):null}):(a.resetFields(),a.setFieldsValue({priority:"medium",category:"work"})))},[e,t,a]);const l=async()=>{try{const c=await a.validateFields();r({...c,dueDate:c.dueDate?c.dueDate.format("YYYY-MM-DD"):null})}catch{}};return S.jsx(hr,{title:t?"Edit Task":"New Task",open:e,onOk:l,onCancel:n,destroyOnClose:!0,okText:t?"Save":"Create",cancelText:"Cancel",children:S.jsxs(on,{form:a,layout:"vertical",style:{marginTop:16},children:[S.jsx(on.Item,{name:"title",label:"Task Title",rules:[{required:!0,message:"Please enter task title"}],children:S.jsx(gn,{placeholder:"Enter task title...",maxLength:100,showCount:!0})}),S.jsx(on.Item,{name:"description",label:"Description / Notes",children:S.jsx(Rle,{rows:6,placeholder:"Add relevant details, background, or notes...",maxLength:500,showCount:!0})}),S.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:12},children:[S.jsx(on.Item,{name:"priority",label:"Priority",children:S.jsx(ir,{options:[{value:"high",label:S.jsxs(Ct,{size:4,children:[S.jsx(Qd,{style:{color:"#ff4d4f"}}),S.jsx("span",{children:"High"})]})},{value:"medium",label:S.jsxs(Ct,{size:4,children:[S.jsx(Uc,{style:{color:"#faad14"}}),S.jsx("span",{children:"Medium"})]})},{value:"low",label:S.jsxs(Ct,{size:4,children:[S.jsx(bs,{style:{color:"#1677ff"}}),S.jsx("span",{children:"Low"})]})}]})}),S.jsx(on.Item,{name:"category",label:"Category",children:S.jsx(ir,{options:[{value:"work",label:S.jsxs(Ct,{size:4,children:[S.jsx(ef,{style:{color:"#1677ff"}}),S.jsx("span",{children:"Work"})]})},{value:"dev",label:S.jsxs(Ct,{size:4,children:[S.jsx(wi,{style:{color:"#722ed1"}}),S.jsx("span",{children:"Dev"})]})},{value:"bug",label:S.jsxs(Ct,{size:4,children:[S.jsx(Yd,{style:{color:"#ff4d4f"}}),S.jsx("span",{children:"Bug"})]})},{value:"feature",label:S.jsxs(Ct,{size:4,children:[S.jsx(yl,{style:{color:"#52c41a"}}),S.jsx("span",{children:"Feature"})]})},{value:"personal",label:S.jsxs(Ct,{size:4,children:[S.jsx(Zd,{style:{color:"#fa8c16"}}),S.jsx("span",{children:"Personal"})]})}]})}),S.jsx(on.Item,{name:"dueDate",label:"Due Date",children:S.jsx(iu,{style:{width:"100%"},placeholder:"Select date"})})]})]})})}function tg({text:e,domain:t,jiraIssuePrefix:n,style:r,className:a}){if(!e)return null;const l=[],c=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let u=0;const d=(n||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):/\b[A-Z]{2,10}-\d+\b/g,v=(g,p)=>{const b=[];let C=0;f.lastIndex=0;for(const x of g.matchAll(f)){x.index>C&&b.push(g.slice(C,x.index));const h=x[0],$=t?WC(t,h):null;$?b.push(S.jsx("a",{href:$,target:"_blank",rel:"noreferrer",onClick:w=>{w.preventDefault(),w.stopPropagation(),Ca($)},style:{color:"#1677ff",textDecoration:"underline",fontWeight:500},children:h},`${p}-${x.index}`)):b.push(h),C=x.index+h.length}return C<g.length&&b.push(g.slice(C)),b};for(const g of e.matchAll(c)){g.index>u&&l.push(...v(e.slice(u,g.index),`txt-${g.index}`));const p=g[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(p)l.push(S.jsx("a",{href:p[2],target:"_blank",rel:"noreferrer",onClick:b=>{b.preventDefault(),b.stopPropagation(),Ca(p[2])},style:{color:"#1677ff",textDecoration:"underline"},children:p[1]},g.index));else{const b=g[0].replace(/[),.;:!?]+$/,"");l.push(S.jsx("a",{href:b,target:"_blank",rel:"noreferrer",onClick:C=>{C.preventDefault(),C.stopPropagation(),Ca(b)},style:{color:"#1677ff",textDecoration:"underline"},children:b},g.index)),g[0].length>b.length&&l.push(g[0].slice(b.length))}u=g.index+g[0].length}return u<e.length&&l.push(...v(e.slice(u),"txt-end")),S.jsx("span",{style:r,className:a,children:l})}const{Title:Ile,Text:nl,Paragraph:Nle}=lr,Mle={work:{label:"Work",icon:S.jsx(ef,{}),color:"blue"},dev:{label:"Dev",icon:S.jsx(wi,{}),color:"purple"},bug:{label:"Bug",icon:S.jsx(Yd,{}),color:"red"},feature:{label:"Feature",icon:S.jsx(yl,{}),color:"green"},personal:{label:"Personal",icon:S.jsx(Zd,{}),color:"orange"}},Tle={high:{label:"High",icon:S.jsx(Qd,{}),color:"error"},medium:{label:"Medium",icon:S.jsx(Uc,{}),color:"warning"},low:{label:"Low",icon:S.jsx(bs,{}),color:"default"}};function Ple(){const{message:e}=Da.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(""),[u,d]=i.useState("all"),[f,v]=i.useState("all"),[g,p]=i.useState("all"),[b,C]=i.useState("createdDesc"),[x,h]=i.useState(""),[$,w]=i.useState("medium"),[E,j]=i.useState("work"),[O,I]=i.useState(!1),[R,M]=i.useState([]),[N,P]=i.useState({domain:"",jiraIssuePrefix:""}),[B,L]=i.useState(!1),[k,D]=i.useState(null),H=i.useCallback(async()=>{a(!0);try{const X=await ha.list();n(X)}catch(X){e.error(X.message)}finally{a(!1)}},[e]);i.useEffect(()=>{H(),Gr.status().then(X=>{X&&P(X)}).catch(()=>{})},[H]);const z=i.useMemo(()=>t.filter(X=>!X.archived),[t]),_=i.useMemo(()=>t.filter(X=>X.archived).length,[t]),F=i.useMemo(()=>{const X=z.length,oe=z.filter(ge=>ge.completed).length,le=X-oe,de=X>0?Math.round(oe/X*100):0,ce=z.filter(ge=>!ge.completed&&ge.priority==="high").length;return{total:X,completed:oe,active:le,rate:de,highPriorityCount:ce}},[z]),W=async()=>{const X=x.trim();if(X)try{const oe=await ha.create({title:X,priority:$,category:E,completed:!1});n(le=>[oe,...le]),h(""),e.success("Task added")}catch(oe){e.error(oe.message)}},q=async X=>{try{if(k){const oe=await ha.update(k.id,X);n(le=>le.map(de=>de.id===oe.id?oe:de)),e.success("Task updated")}else{const oe=await ha.create(X);n(le=>[oe,...le]),e.success("Task created")}L(!1)}catch(oe){e.error(oe.message)}},V=async X=>{try{const oe=await ha.update(X.id,{...X,completed:!X.completed});n(le=>le.map(de=>de.id===oe.id?oe:de))}catch(oe){e.error(oe.message)}},G=async X=>{try{await ha.archive(X),n(oe=>oe.map(le=>le.id===X?{...le,archived:!0,archivedAt:new Date().toISOString()}:le)),e.success("Task archived")}catch(oe){e.error(oe.message)}},K=async X=>{try{await ha.remove(X),n(oe=>oe.filter(le=>le.id!==X)),M(oe=>oe.filter(le=>le!==X)),e.success("Task deleted")}catch(oe){e.error(oe.message)}},U=async X=>{if(X==="clearCompleted"){try{const oe=await ha.batch("clearCompleted");n(oe),M([]),e.success("Completed tasks cleared")}catch(oe){e.error(oe.message)}return}if(R.length)try{const oe=await ha.batch(X,R);n(oe),M([]),e.success("Batch action succeeded")}catch(oe){e.error(oe.message)}},J=i.useMemo(()=>{let X=z;if(l.trim()){const oe=l.toLowerCase().trim();X=X.filter(le=>le.title.toLowerCase().includes(oe)||(le.description||"").toLowerCase().includes(oe))}return u==="active"?X=X.filter(oe=>!oe.completed):u==="completed"&&(X=X.filter(oe=>oe.completed)),f!=="all"&&(X=X.filter(oe=>oe.priority===f)),g!=="all"&&(X=X.filter(oe=>oe.category===g)),[...X].sort((oe,le)=>{if(b==="dueAsc")return oe.dueDate?le.dueDate?oe.dueDate.localeCompare(le.dueDate):-1:1;if(b==="priorityDesc"){const de={high:3,medium:2,low:1};return(de[le.priority]||0)-(de[oe.priority]||0)}return new Date(le.createdAt||0)-new Date(oe.createdAt||0)})},[z,l,u,f,g,b]),Q=i.useMemo(()=>J.map(X=>X.id),[J]),te=Q.length>0&&Q.every(X=>R.includes(X)),Y=R.length>0,ae=X=>{X.target.checked?M(Q):M([])},re=X=>{M(oe=>oe.includes(X)?oe.filter(le=>le!==X):[...oe,X])},Z=ma().format("YYYY-MM-DD");return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(nl,{type:"secondary",children:"WORKBENCH"}),S.jsx(Ile,{level:2,children:"To-Do List"}),S.jsx(Nle,{type:"secondary",children:"Manage and track development tasks, bug fixes, and feature items efficiently."})]}),S.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[S.jsxs(Ct,{children:[S.jsx(Xe,{icon:S.jsx(gs,{}),onClick:H,loading:r,children:"Refresh"}),S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:()=>{D(null),L(!0)},children:"New Task"})]}),S.jsxs(Xe,{icon:S.jsx(Jd,{}),onClick:()=>{window.location.hash="#/todo-list/archived"},style:{marginTop:8},children:["Archived (",_,")"]})]})]}),S.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16,marginBottom:24},children:[S.jsxs(wn,{size:"small",style:{borderRadius:8},children:[S.jsx(nl,{type:"secondary",style:{fontSize:13},children:"Total Tasks"}),S.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4},children:F.total})]}),S.jsxs(wn,{size:"small",style:{borderRadius:8},children:[S.jsx(nl,{type:"secondary",style:{fontSize:13},children:"Active (Pending)"}),S.jsxs("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:F.active>0?"#fa8c16":"inherit"},children:[F.active,F.highPriorityCount>0&&S.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#ff4d4f",marginLeft:8},children:["(",F.highPriorityCount," high priority)"]})]})]}),S.jsxs(wn,{size:"small",style:{borderRadius:8},children:[S.jsx(nl,{type:"secondary",style:{fontSize:13},children:"Completed"}),S.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:"#52c41a"},children:F.completed})]}),S.jsxs(wn,{size:"small",style:{borderRadius:8},children:[S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[S.jsx(nl,{type:"secondary",style:{fontSize:13},children:"Completion Rate"}),S.jsxs(nl,{style:{fontSize:13,fontWeight:600},children:[F.rate,"%"]})]}),S.jsx(oN,{percent:F.rate,showInfo:!1,size:"small",status:"active",style:{marginTop:12}})]})]}),S.jsx(wn,{size:"small",style:{marginBottom:20,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.02)"},children:S.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[S.jsx(gn,{placeholder:"Quickly add a task... (Press Enter to submit)",value:x,onChange:X=>h(X.target.value),onPressEnter:W,size:"large",style:{flex:1}}),S.jsx(ir,{value:$,onChange:w,size:"large",style:{width:130},options:[{value:"high",label:S.jsxs(Ct,{size:4,children:[S.jsx(Qd,{style:{color:"#ff4d4f"}}),S.jsx("span",{children:"High"})]})},{value:"medium",label:S.jsxs(Ct,{size:4,children:[S.jsx(Uc,{style:{color:"#faad14"}}),S.jsx("span",{children:"Medium"})]})},{value:"low",label:S.jsxs(Ct,{size:4,children:[S.jsx(bs,{style:{color:"#1677ff"}}),S.jsx("span",{children:"Low"})]})}]}),S.jsx(ir,{value:E,onChange:j,size:"large",style:{width:130},options:[{value:"work",label:S.jsxs(Ct,{size:4,children:[S.jsx(ef,{style:{color:"#1677ff"}}),S.jsx("span",{children:"Work"})]})},{value:"dev",label:S.jsxs(Ct,{size:4,children:[S.jsx(wi,{style:{color:"#722ed1"}}),S.jsx("span",{children:"Dev"})]})},{value:"bug",label:S.jsxs(Ct,{size:4,children:[S.jsx(Yd,{style:{color:"#ff4d4f"}}),S.jsx("span",{children:"Bug"})]})},{value:"feature",label:S.jsxs(Ct,{size:4,children:[S.jsx(yl,{style:{color:"#52c41a"}}),S.jsx("span",{children:"Feature"})]})},{value:"personal",label:S.jsxs(Ct,{size:4,children:[S.jsx(Zd,{style:{color:"#fa8c16"}}),S.jsx("span",{children:"Personal"})]})}]}),S.jsx(Xe,{type:"primary",size:"large",icon:S.jsx(ra,{}),onClick:W,children:"Add"})]})}),S.jsx(wn,{size:"small",style:{marginBottom:16,borderRadius:8},children:S.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:16,alignItems:"center",justifyContent:"space-between"},children:[S.jsxs(ur.Group,{value:u,onChange:X=>d(X.target.value),optionType:"button",buttonStyle:"solid",children:[S.jsxs(ur.Button,{value:"all",children:["All (",F.total,")"]}),S.jsxs(ur.Button,{value:"active",children:["Active (",F.active,")"]}),S.jsxs(ur.Button,{value:"completed",children:["Completed (",F.completed,")"]})]}),S.jsxs(Ct,{wrap:!0,children:[S.jsx(gn,{prefix:S.jsx(Es,{}),placeholder:"Search tasks...",value:l,onChange:X=>c(X.target.value),allowClear:!0,style:{width:220}}),S.jsx(ir,{value:b,onChange:C,style:{width:140},options:[{value:"createdDesc",label:"Sort: Created"},{value:"dueAsc",label:"Sort: Due Date"},{value:"priorityDesc",label:"Sort: Priority"}]})]})]})}),(O||Y)&&S.jsxs("div",{style:{padding:"10px 16px",marginBottom:16,backgroundColor:"#e6f4ff",border:"1px solid #91caff",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[S.jsxs(nl,{style:{color:"#0958d9"},children:[S.jsx("strong",{style:{color:"#0958d9",fontWeight:600},children:R.length})," items selected"]}),S.jsxs(Ct,{wrap:!0,children:[S.jsx(Xe,{size:"small",onClick:()=>{M(te?[]:Q)},children:te?"Deselect All":"Select All"}),S.jsx(Xe,{size:"small",icon:S.jsx(hs,{}),disabled:!R.length,onClick:()=>U("markCompleted"),children:"Mark Completed"}),S.jsx(Xe,{size:"small",icon:S.jsx(Wc,{}),disabled:!R.length,onClick:()=>U("markPending"),children:"Mark Active"}),S.jsx(fo,{title:"Are you sure you want to delete selected tasks?",onConfirm:()=>U("delete"),okText:"Delete",cancelText:"Cancel",disabled:!R.length,children:S.jsx(Xe,{size:"small",danger:!0,icon:S.jsx(Er,{}),disabled:!R.length,children:"Delete Selected"})}),S.jsx(Xe,{size:"small",type:"link",onClick:()=>{I(!1),M([])},children:"Exit Select Mode"})]})]}),t.length>0&&S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:20},children:O?S.jsx(aa,{checked:te,onChange:ae}):S.jsx(An,{title:"Enter Select Mode",children:S.jsx(HC,{style:{fontSize:15,cursor:"pointer",color:O?"#1677ff":"#727b94",transition:"color 0.2s"},onClick:()=>I(!0)})})}),S.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:S.jsx(ir,{size:"small",variant:"borderless",value:g,onChange:p,popupMatchSelectWidth:!1,style:{fontSize:12,fontWeight:600,color:"#727b94"},options:[{value:"all",label:"Category"},{value:"work",label:S.jsxs(Ct,{size:4,children:[S.jsx(ef,{style:{color:"#1677ff"}}),S.jsx("span",{children:"Work"})]})},{value:"dev",label:S.jsxs(Ct,{size:4,children:[S.jsx(wi,{style:{color:"#722ed1"}}),S.jsx("span",{children:"Dev"})]})},{value:"bug",label:S.jsxs(Ct,{size:4,children:[S.jsx(Yd,{style:{color:"#ff4d4f"}}),S.jsx("span",{children:"Bug"})]})},{value:"feature",label:S.jsxs(Ct,{size:4,children:[S.jsx(yl,{style:{color:"#52c41a"}}),S.jsx("span",{children:"Feature"})]})},{value:"personal",label:S.jsxs(Ct,{size:4,children:[S.jsx(Zd,{style:{color:"#fa8c16"}}),S.jsx("span",{children:"Personal"})]})}]})}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:S.jsx(ir,{size:"small",variant:"borderless",value:f,onChange:v,popupMatchSelectWidth:!1,style:{fontSize:12,fontWeight:600,color:"#727b94"},options:[{value:"all",label:"Priority"},{value:"high",label:S.jsxs(Ct,{size:4,children:[S.jsx(Qd,{style:{color:"#ff4d4f"}}),S.jsx("span",{children:"High"})]})},{value:"medium",label:S.jsxs(Ct,{size:4,children:[S.jsx(Uc,{style:{color:"#faad14"}}),S.jsx("span",{children:"Medium"})]})},{value:"low",label:S.jsxs(Ct,{size:4,children:[S.jsx(bs,{style:{color:"#1677ff"}}),S.jsx("span",{children:"Low"})]})}]})}),S.jsx("div",{style:{width:120,textAlign:"center"},children:"Due Date"}),S.jsx("div",{style:{width:120,textAlign:"right"},children:"Actions"})]}),r?S.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:S.jsx(Pa,{size:"large"})}):J.length===0?S.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:t.length===0?"No tasks yet. Create your first task!":"No matching tasks found.",children:t.length===0&&S.jsx(Xe,{type:"primary",icon:S.jsx(ra,{}),onClick:()=>{D(null),L(!0)},children:"New Task"})}):S.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:J.map(X=>{var ce;const oe=Mle[X.category]||{label:X.category,color:"default"},le=Tle[X.priority]||{label:X.priority,color:"default"},de=X.dueDate&&X.dueDate<Z&&!X.completed;return S.jsx(wn,{size:"small",style:{borderRadius:8,borderColor:R.includes(X.id)?"#1677ff":void 0,opacity:X.completed?.65:1,transition:"all 0.2s ease"},bodyStyle:{padding:"12px 16px"},children:S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:20},children:O?S.jsx(aa,{checked:R.includes(X.id),onChange:()=>re(X.id)}):S.jsx(An,{title:X.completed?"Mark as active":"Mark as completed",children:S.jsx(aa,{checked:X.completed,onChange:()=>V(X),style:{transform:"scale(1.1)"}})})}),S.jsxs("div",{style:{flex:1,minWidth:0},children:[S.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:X.completed?"line-through":"none",color:X.completed?"rgba(0, 0, 0, 0.35)":"inherit",wordBreak:"break-word"},children:S.jsx(tg,{text:X.title,domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix})}),!!((ce=X.description)!=null&&ce.trim())&&S.jsx("div",{style:{fontSize:12,color:X.completed?"rgba(0, 0, 0, 0.35)":"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:S.jsx(tg,{text:X.description.trim(),domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix})})]}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:S.jsx(mn,{color:oe.color,icon:oe.icon,style:{margin:0},children:oe.label})}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:S.jsx(mn,{color:le.color,icon:le.icon,style:{margin:0},children:le.label})}),S.jsx("div",{style:{width:120,textAlign:"center"},children:X.dueDate?S.jsxs(mn,{color:de?"error":"default",style:{margin:0},children:[S.jsx(Wc,{style:{marginRight:4}}),X.dueDate,de&&" (Overdue)"]}):S.jsx(nl,{type:"secondary",style:{fontSize:12},children:"—"})}),S.jsx("div",{style:{width:120,textAlign:"right"},children:S.jsxs(Ct,{size:"small",children:[X.completed&&S.jsx(An,{title:"Archive task",children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(r1,{style:{color:"#fa8c16"}}),onClick:()=>G(X.id)})}),S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(ss,{}),onClick:()=>{D(X),L(!0)}}),S.jsx(fo,{title:"Are you sure you want to delete this task?",onConfirm:()=>K(X.id),okText:"Delete",cancelText:"Cancel",children:S.jsx(Xe,{type:"text",danger:!0,size:"small",icon:S.jsx(Er,{})})})]})})]})},X.id)})}),u==="completed"&&F.completed>0&&S.jsx("div",{style:{marginTop:24,textAlign:"right"},children:S.jsx(fo,{title:`Are you sure you want to clear all ${F.completed} completed tasks?`,onConfirm:()=>U("clearCompleted"),okText:"Clear",cancelText:"Cancel",children:S.jsxs(Xe,{type:"dashed",danger:!0,icon:S.jsx(Er,{}),children:["Clear all completed tasks (",F.completed,")"]})})}),S.jsx(jle,{open:B,editingTodo:k,onCancel:()=>L(!1),onSave:q})]})}const{Title:zle,Text:s3,Paragraph:Dle}=lr,_le={work:{label:"Work",icon:S.jsx(ef,{}),color:"blue"},dev:{label:"Dev",icon:S.jsx(wi,{}),color:"purple"},bug:{label:"Bug",icon:S.jsx(Yd,{}),color:"red"},feature:{label:"Feature",icon:S.jsx(yl,{}),color:"green"},personal:{label:"Personal",icon:S.jsx(Zd,{}),color:"orange"}},Ale={high:{label:"High",icon:S.jsx(Qd,{}),color:"error"},medium:{label:"Medium",icon:S.jsx(Uc,{}),color:"warning"},low:{label:"Low",icon:S.jsx(bs,{}),color:"default"}};function Ble(){const{message:e}=Da.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(""),[u,d]=i.useState({domain:"",jiraIssuePrefix:""}),f=i.useCallback(async()=>{a(!0);try{const C=await ha.list();n(C)}catch(C){e.error(C.message)}finally{a(!1)}},[e]);i.useEffect(()=>{f(),Gr.status().then(C=>{C&&d(C)}).catch(()=>{})},[f]);const v=i.useMemo(()=>{let C=t.filter(x=>x.archived);if(l.trim()){const x=l.toLowerCase().trim();C=C.filter(h=>h.title.toLowerCase().includes(x)||(h.description||"").toLowerCase().includes(x))}return C.sort((x,h)=>new Date(h.archivedAt||0)-new Date(x.archivedAt||0))},[t,l]),g=async C=>{try{await ha.unarchive(C),n(x=>x.map(h=>h.id===C?{...h,archived:!1,archivedAt:null}:h)),e.success("Task restored to To-Do List")}catch(x){e.error(x.message)}},p=async C=>{try{await ha.remove(C),n(x=>x.filter(h=>h.id!==C)),e.success("Task permanently deleted")}catch(x){e.error(x.message)}},b=async()=>{try{const C=await ha.batch("clearArchived");n(C),e.success("All archived tasks cleared")}catch(C){e.error(C.message)}};return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(s3,{type:"secondary",children:"WORKBENCH"}),S.jsxs(zle,{level:2,children:[S.jsx(Jd,{style:{marginRight:8,color:"#1677ff"}}),"Archived Tasks"]}),S.jsx(Dle,{type:"secondary",children:"View and manage archived tasks. Archived items can be restored back to your active To-Do list."})]}),S.jsxs(Ct,{children:[S.jsx(Xe,{icon:S.jsx(t1,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"}),S.jsx(Xe,{icon:S.jsx(gs,{}),onClick:f,loading:r,children:"Refresh"})]})]}),S.jsx(wn,{size:"small",style:{marginBottom:16,borderRadius:8},children:S.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[S.jsxs(s3,{type:"secondary",children:["Total Archived: ",S.jsx("strong",{style:{color:"#1677ff"},children:v.length})," items"]}),S.jsx(gn,{prefix:S.jsx(Es,{}),placeholder:"Search archived tasks...",value:l,onChange:C=>c(C.target.value),allowClear:!0,style:{width:240}})]})}),v.length>0&&S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[S.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:"Category"}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:"Priority"}),S.jsx("div",{style:{width:140,textAlign:"center"},children:"Archived At"}),S.jsx("div",{style:{width:100,textAlign:"right"},children:"Actions"})]}),r?S.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:S.jsx(Pa,{size:"large"})}):v.length===0?S.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:"No archived tasks found.",children:S.jsx(Xe,{icon:S.jsx(t1,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"})}):S.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:v.map(C=>{var w;const x=_le[C.category]||{label:C.category,color:"default"},h=Ale[C.priority]||{label:C.priority,color:"default"},$=C.archivedAt?ma(C.archivedAt).format("YYYY-MM-DD HH:mm"):"—";return S.jsx(wn,{size:"small",style:{borderRadius:8,opacity:.85},bodyStyle:{padding:"12px 16px"},children:S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[S.jsxs("div",{style:{flex:1,minWidth:0},children:[S.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:C.completed?"line-through":"none",color:"inherit",wordBreak:"break-word"},children:S.jsx(tg,{text:C.title,domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})}),!!((w=C.description)!=null&&w.trim())&&S.jsx("div",{style:{fontSize:12,color:"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:S.jsx(tg,{text:C.description.trim(),domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})})]}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:S.jsx(mn,{color:x.color,icon:x.icon,style:{margin:0},children:x.label})}),S.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:S.jsx(mn,{color:h.color,icon:h.icon,style:{margin:0},children:h.label})}),S.jsx("div",{style:{width:140,textAlign:"center"},children:S.jsxs(mn,{color:"default",style:{margin:0},children:[S.jsx(Wc,{style:{marginRight:4}}),$]})}),S.jsx("div",{style:{width:100,textAlign:"right"},children:S.jsxs(Ct,{size:"small",children:[S.jsx(An,{title:"Restore to To-Do List",children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(qN,{style:{color:"#1677ff"}}),onClick:()=>g(C.id)})}),S.jsx(fo,{title:"Permanently delete this archived task?",onConfirm:()=>p(C.id),okText:"Delete",cancelText:"Cancel",children:S.jsx(Xe,{type:"text",danger:!0,size:"small",icon:S.jsx(Er,{})})})]})})]})},C.id)})}),v.length>0&&S.jsx("div",{style:{marginTop:24,textAlign:"right"},children:S.jsx(fo,{title:`Are you sure you want to permanently delete all ${v.length} archived tasks?`,onConfirm:b,okText:"Delete All",cancelText:"Cancel",children:S.jsxs(Xe,{type:"dashed",danger:!0,icon:S.jsx(Er,{}),children:["Clear all archived tasks (",v.length,")"]})})})]})}const{Title:kle}=lr,Lle=()=>{const n=(window.location.hash||"").slice(2).split("/");if(n[0]==="logs"){const r=n[1]||"",a=n[2]==="pkg",l=a?n[3]:n[2];return{launcherId:r,isPackage:a,scriptIdOrName:l}}return{launcherId:null,isPackage:!1,scriptIdOrName:null}};function Hle(){const{message:e}=Da.useApp(),{launcherId:t,isPackage:n,scriptIdOrName:r}=Lle(),[a,l]=i.useState("output"),[c,u]=i.useState(""),[d,f]=i.useState(!0),[v,g]=i.useState(!1),[p,b]=i.useState(""),[C,x]=i.useState(r),h=i.useRef(null);i.useEffect(()=>{t&&Cr.list().then(E=>{var O;const j=E.find(I=>I.id===t);if(j&&(j.alias&&b(j.alias),!n&&r))if(r==="install")x("Install");else{const I=(O=j.scripts)==null?void 0:O.find(R=>R.id===r);I!=null&&I.name&&x(I.name)}}).catch(()=>{})},[t,n,r]),i.useEffect(()=>{const E=p?`${p} · `:"",j=C||r||"Logs";return document.title=`${E}${j} · DevBuddy`,()=>{document.title="DevBuddy · Workbench"}},[p,C,r]),i.useEffect(()=>{if(!t||!r)return;const E=async()=>{try{const O=n?a==="error"?await Cr.packageScriptErrorLogs(t,r):await Cr.packageScriptLogs(t,r):a==="error"?await Cr.errorLogs(t,r):await Cr.logs(t,r);u(O.log||(a==="error"?"No error logs yet.":"No logs yet."))}catch(O){u(O.message)}finally{f(!1)}};E();const j=setInterval(E,1e3);return()=>clearInterval(j)},[t,n,r,a]),i.useEffect(()=>{if(h.current){const E=h.current.querySelector(".log-output");E&&(E.scrollTop=E.scrollHeight)}},[c]);const $=async()=>{try{await navigator.clipboard.writeText(window.location.href),g(!0),e.success("URL copied to clipboard"),setTimeout(()=>g(!1),2e3)}catch{e.error("Failed to copy URL")}},w=()=>{window.close()};return!t||!r?S.jsx("div",{className:"standalone-log-container",style:{display:"grid",placeItems:"center",height:"100vh",background:"#111827",color:"#ef4444"},children:S.jsx("div",{children:"Invalid log target specified in URL."})}):S.jsxs("div",{className:"standalone-log-container",ref:h,children:[S.jsxs("header",{className:"standalone-log-header",children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[S.jsxs(kle,{level:4,style:{margin:0,color:"#f3f4f6",fontSize:16},children:[p||t," ",S.jsx("span",{style:{color:"#9ca3af",fontWeight:"normal"},children:"/"})," ",C||r]}),d&&S.jsx(Pa,{size:"small"})]}),S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[S.jsxs(ur.Group,{value:a,onChange:E=>l(E.target.value),size:"small",buttonStyle:"solid",children:[S.jsx(ur.Button,{value:"output",children:"Output"}),S.jsx(ur.Button,{value:"error",children:"Errors"})]}),S.jsx(Xe,{size:"small",icon:v?S.jsx(ws,{}):S.jsx(Zo,{}),onClick:$,children:v?"Copied":"Copy URL"}),S.jsx(Xe,{type:"text",icon:S.jsx(zo,{}),onClick:w,style:{color:"#9ca3af"},title:"Close Tab"})]})]}),S.jsx("div",{className:"standalone-log-body",children:S.jsx(i1,{value:c,className:"standalone-log-output"})})]})}const{Title:Fle,Text:dd,Paragraph:Vle}=lr;function Wle(){const{message:e}=Da.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(""),[u,d]=i.useState("All"),[f,v]=i.useState(new Set),[g,p]=i.useState(null),b=async()=>{a(!0);try{const I=await Nd.list();n(I||[])}catch(I){e.error(I.message)}finally{a(!1)}};i.useEffect(()=>{b()},[]);const C=async()=>{try{await Nd.clear(),n([]),e.success("All error records cleared")}catch(I){e.error(I.message)}},x=async I=>{try{await Nd.remove(I),n(R=>R.filter(M=>M.id!==I)),e.success("Error record deleted")}catch(R){e.error(R.message)}},h=I=>{const R=`[${I.timestamp}] [${I.source}] ${I.message}
|
|
520
|
-
|
|
521
|
-
${I.details||""}`;navigator.clipboard.writeText(R),p(I.id),setTimeout(()=>{p(M=>M===I.id?null:M)},1200)},$=I=>{v(R=>{const M=new Set(R);return M.has(I)?M.delete(I):M.add(I),M})},w=i.useMemo(()=>{const I=new Set;for(const R of t)R.source&&(R.source.startsWith("Launcher")?I.add("Launcher"):R.source.startsWith("Backend")?I.add("Backend API"):R.source.startsWith("Frontend")?I.add("Frontend"):I.add(R.source));return["All",...Array.from(I)]},[t]),E=i.useMemo(()=>t.filter(I=>{var R,M,N;if(u!=="All"&&(u==="Launcher"&&!((R=I.source)!=null&&R.startsWith("Launcher"))||u==="Backend API"&&!((M=I.source)!=null&&M.startsWith("Backend"))||u==="Frontend"&&!((N=I.source)!=null&&N.startsWith("Frontend"))||!["Launcher","Backend API","Frontend"].includes(u)&&I.source!==u))return!1;if(l.trim()){const P=l.toLowerCase(),B=(I.message||"").toLowerCase(),L=(I.source||"").toLowerCase(),k=(I.details||"").toLowerCase();return B.includes(P)||L.includes(P)||k.includes(P)}return!0}),[t,u,l]),j=(I="")=>I.startsWith("Launcher")?"orange":I.startsWith("Backend")?"processing":I.startsWith("Frontend")?"purple":"default",O=I=>{if(!I)return"";try{return new Date(I).toLocaleString("sv-SE").replace(" "," ")}catch{return I}};return S.jsxs("div",{className:"error-logs-page",children:[S.jsxs("div",{className:"page-header",children:[S.jsxs("div",{children:[S.jsx(dd,{type:"secondary",children:"SYSTEM LOGS"}),S.jsx(Fle,{level:2,children:"Error history"}),S.jsx(Vle,{type:"secondary",children:"Captures the 100 most recent errors from launchers, backend APIs, and frontend execution."})]}),S.jsxs(Ct,{size:12,align:"center",children:[S.jsx(Xe,{icon:S.jsx(gs,{}),loading:r,onClick:b,children:"Refresh"}),S.jsx(fo,{title:"Clear all error logs?",description:"This action will permanently delete all stored error records.",onConfirm:C,okText:"Yes, clear",cancelText:"Cancel",okButtonProps:{danger:!0},children:S.jsxs(Xe,{danger:!0,icon:S.jsx(Er,{}),disabled:t.length===0,children:["Clear All (",t.length,")"]})})]})]}),S.jsxs("div",{style:{marginBottom:16,display:"flex",gap:12,flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[S.jsx(mG,{options:w.map(I=>{const R=I==="All"?t.length:t.filter(M=>{var N,P,B;return I==="Launcher"?(N=M.source)==null?void 0:N.startsWith("Launcher"):I==="Backend API"?(P=M.source)==null?void 0:P.startsWith("Backend"):I==="Frontend"?(B=M.source)==null?void 0:B.startsWith("Frontend"):M.source===I}).length;return{label:`${I} (${R})`,value:I}}),value:u,onChange:d}),S.jsx(gn,{placeholder:"Search error message or details...",prefix:S.jsx(Es,{style:{color:"#8c8c8c"}}),allowClear:!0,value:l,onChange:I=>c(I.target.value),style:{width:280}})]}),E.length>0?S.jsx("div",{style:{display:"grid",gap:10},children:E.map(I=>{const R=f.has(I.id);return S.jsxs(wn,{size:"small",className:"error-log-item",style:{borderLeft:"4px solid #ff4d4f"},children:[S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12},children:[S.jsxs("div",{style:{flex:1,minWidth:0},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",marginBottom:4},children:[S.jsxs(mn,{color:"error",style:{margin:0},children:[S.jsx(HN,{})," ERROR"]}),S.jsx(mn,{color:j(I.source),style:{margin:0},children:I.source}),S.jsx(dd,{type:"secondary",style:{fontSize:12},children:O(I.timestamp)})]}),S.jsx(dd,{strong:!0,style:{fontSize:14,color:"#111827",display:"block",wordBreak:"break-word"},children:I.message})]}),S.jsxs(Ct,{size:4,style:{flexShrink:0},children:[I.details&&S.jsx(Xe,{type:"text",size:"small",icon:R?S.jsx(gf,{}):S.jsx(Si,{}),onClick:()=>$(I.id),children:R?"Hide Details":"Details"}),S.jsx(An,{title:g===I.id?"Copied!":"Copy error",children:S.jsx(Xe,{type:"text",size:"small",icon:g===I.id?S.jsx(ws,{style:{color:"#52c41a"}}):S.jsx(Zo,{}),onClick:()=>h(I)})}),S.jsx(An,{title:"Delete entry",children:S.jsx(Xe,{type:"text",size:"small",danger:!0,icon:S.jsx(Er,{}),onClick:()=>x(I.id)})})]})]}),I.details&&R&&S.jsx("div",{style:{marginTop:10},children:S.jsx("pre",{className:"log-output",style:{minHeight:"auto",maxHeight:360,margin:0,padding:10,borderRadius:6,fontSize:12},children:S.jsx("code",{style:{color:"#fca5a5"},children:I.details})})})]},I.id)})}):S.jsx(wn,{style:{marginTop:16,textAlign:"center",padding:"48px 0"},children:S.jsx(Gn,{image:S.jsx(hs,{style:{fontSize:48,color:"#52c41a"}}),description:S.jsxs("div",{style:{marginTop:8},children:[S.jsx(dd,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:t.length===0?"No error records":"No matching error records"}),S.jsx(dd,{type:"secondary",children:t.length===0?"Recent error events (up to 100) will be automatically captured and listed here.":"Try clearing your search query or switching filters."})]})})}),S.jsx(Ol.BackTop,{visibilityHeight:240})]})}const{Text:Xl}=lr,Kle={GET:"green",POST:"gold",PUT:"blue",DELETE:"red",PATCH:"purple",HEAD:"cyan",OPTIONS:"volcano"};function Ule({collections:e=[],activeCollectionId:t=null,activeRequestId:n=null,onSelectRequest:r,onOpenImportModal:a,onOpenEnvModal:l,onCreateCollection:c,onUpdateCollection:u,onDeleteCollection:d}){const[f,v]=i.useState(""),[g,p]=i.useState(new Set),[b,C]=i.useState(new Set),[x,h]=i.useState(!1),[$,w]=i.useState(null),[E,j]=i.useState(""),O=k=>{C(D=>{const H=new Set(D);return H.has(k)?H.delete(k):H.add(k),H})},I=k=>{p(D=>{const H=new Set(D);return H.has(k)?H.delete(k):H.add(k),H})},R=(k,D,H,z)=>{w({type:k,collectionId:D,itemId:H,currentName:z}),j(z||""),h(!0)},M=()=>{if(!$||!E.trim())return;const{type:k,collectionId:D,itemId:H}=$,z=E.trim();if(k==="collection")u(D,{name:z});else if(k==="item"){const _=e.find(F=>F.id===D);if(_){const F=(_.items||[]).map(W=>W.id===H?{...W,name:z}:W);u(D,{items:F})}}h(!1),w(null)},N=(k,D=null)=>{const H=e.find(W=>W.id===k);if(!H)return;C(W=>{if(W.has(k)){const q=new Set(W);return q.delete(k),q}return W}),D&&p(W=>new Set(W).add(D));const z=`req_${Date.now()}`,_={id:z,name:"New Request",parentId:D,isFolder:!1,method:"GET",url:"https://jsonplaceholder.typicode.com/todos/1",params:[{key:"",value:"",enabled:!0}],headers:[],body:{mode:"none",raw:"",json:"",formdata:[],urlencoded:[]},auth:{type:"none"}},F=[...H.items||[],_];u(k,{items:F}),r(k,z)},P=(k,D=null)=>{const H=e.find(F=>F.id===k);if(!H)return;C(F=>{if(F.has(k)){const W=new Set(F);return W.delete(k),W}return F}),D&&p(F=>new Set(F).add(D));const z={id:`folder_${Date.now()}`,name:"New Folder",parentId:D,isFolder:!0},_=[...H.items||[],z];u(k,{items:_})},B=(k,D)=>{const H=e.find(W=>W.id===k);if(!H)return;const z=new Set([D]);let _=!0;for(;_;)_=!1,H.items.forEach(W=>{W.parentId&&z.has(W.parentId)&&!z.has(W.id)&&(z.add(W.id),_=!0)});const F=H.items.filter(W=>!z.has(W.id));u(k,{items:F})},L=(k,D=null,H=1)=>(k.items||[]).filter(_=>(_.parentId||null)===D).map(_=>{var W,q;if(f){const V=(W=_.name)==null?void 0:W.toLowerCase().includes(f.toLowerCase()),G=(q=_.url)==null?void 0:q.toLowerCase().includes(f.toLowerCase());if(!_.isFolder&&!V&&!G)return null}if(_.isFolder){const V=g.has(_.id)||!!f;return S.jsxs("div",{className:"tree-folder-node",children:[S.jsxs("div",{className:"tree-node-row folder-row",style:{paddingLeft:H*14},onClick:()=>I(_.id),children:[S.jsx("span",{className:"node-icon",children:V?S.jsx(Kc,{style:{color:"#faad14"}}):S.jsx(Ov,{style:{color:"#faad14"}})}),S.jsx(Xl,{className:"node-title",ellipsis:!0,children:_.name}),S.jsx("div",{className:"node-actions",onClick:G=>G.stopPropagation(),children:S.jsx(ls,{menu:{items:[{key:"rename-folder",label:"Rename Folder",icon:S.jsx(ss,{}),onClick:()=>R("item",k.id,_.id,_.name)},{key:"add-req",label:"Add Request",icon:S.jsx(ra,{}),onClick:()=>N(k.id,_.id)},{key:"add-folder",label:"Add Subfolder",icon:S.jsx(Ov,{}),onClick:()=>P(k.id,_.id)},{key:"delete",label:"Delete",icon:S.jsx(Er,{}),danger:!0,onClick:()=>B(k.id,_.id)}]},trigger:["click"],children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(bb,{})})})})]}),V&&S.jsx("div",{className:"tree-folder-children",children:L(k,_.id,H+1)})]},_.id)}const F=n===_.id;return S.jsxs("div",{className:`tree-node-row request-row ${F?"is-active":""}`,style:{paddingLeft:H*14},onClick:()=>r(k.id,_.id),children:[S.jsx(mn,{color:Kle[_.method]||"default",style:{marginRight:6,fontSize:"10px",padding:"0 4px",fontWeight:"bold"},children:_.method}),S.jsx(Xl,{className:"node-title",ellipsis:!0,children:_.name}),S.jsx("div",{className:"node-actions",onClick:V=>V.stopPropagation(),children:S.jsx(ls,{menu:{items:[{key:"rename-req",label:"Rename Request",icon:S.jsx(ss,{}),onClick:()=>R("item",k.id,_.id,_.name)},{key:"delete",label:"Delete",icon:S.jsx(Er,{}),danger:!0,onClick:()=>B(k.id,_.id)}]},trigger:["click"],children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(bb,{})})})})]},_.id)});return S.jsxs("div",{className:"postman-sidebar",children:[S.jsxs("div",{className:"sidebar-header",children:[S.jsxs("div",{className:"sidebar-title-row",children:[S.jsx(Xl,{strong:!0,style:{fontSize:15,color:"#172033"},children:"Collections"}),S.jsxs(Ct,{size:2,children:[S.jsx(An,{title:"Open in new browser tab",children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(FC,{}),onClick:()=>{const k=`${window.location.origin}/#/postman`;window.open(k,"_blank")}})}),S.jsx(An,{title:"Open in default browser",children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx($f,{}),onClick:()=>{const k=`${window.location.origin}/#/postman`;Ca(k)}})})]})]}),S.jsxs("div",{className:"sidebar-toolbar",children:[S.jsx(Xe,{size:"small",type:"primary",icon:S.jsx(ra,{}),onClick:c,style:{flex:1},children:"New"}),S.jsx(Xe,{size:"small",icon:S.jsx(Boe,{}),onClick:a,style:{flex:1},children:"Import"}),S.jsx(An,{title:"Manage Environments",children:S.jsx(Xe,{size:"small",icon:S.jsx(UN,{}),onClick:l})})]}),S.jsx("div",{className:"sidebar-search-row",children:S.jsx(gn,{prefix:S.jsx(Es,{style:{color:"#a0a6b1"}}),placeholder:"Filter collections & requests…",size:"small",value:f,onChange:k=>v(k.target.value),allowClear:!0})})]}),S.jsx("div",{className:"sidebar-content",children:e.length===0?S.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:S.jsxs("div",{style:{color:"#7d8799",fontSize:"12px",marginTop:4,lineHeight:"1.6"},children:["No Collections yet.",S.jsx("br",{}),"Click ",S.jsx(Xl,{strong:!0,style:{color:"#1677ff"},children:"+"})," to create or ",S.jsx(Xl,{strong:!0,style:{color:"#1677ff"},children:"Import"})," to load Postman / cURL."]}),style:{marginTop:40}}):e.map(k=>{const D=!b.has(k.id)||!!f,H=(k.items||[]).filter(z=>!z.isFolder).length;return S.jsxs("div",{className:"collection-group",children:[S.jsxs("div",{className:"collection-header",onClick:()=>O(k.id),children:[S.jsxs("span",{className:"collection-title-wrap",children:[S.jsx("span",{className:"node-icon",style:{display:"inline-flex",alignItems:"center",marginRight:6,fontSize:11,color:"#7d8799"},children:D?S.jsx(gf,{}):S.jsx(Si,{})}),S.jsx(Xl,{strong:!0,ellipsis:!0,className:"collection-name",children:k.name}),S.jsxs(Xl,{type:"secondary",className:"collection-count",children:["(",H,")"]})]}),S.jsx("div",{className:"collection-actions",onClick:z=>z.stopPropagation(),children:S.jsx(ls,{menu:{items:[{key:"rename-col",label:"Rename Collection",icon:S.jsx(ss,{}),onClick:()=>R("collection",k.id,null,k.name)},{key:"add-req",label:"Add Request",icon:S.jsx(ra,{}),onClick:()=>N(k.id)},{key:"add-folder",label:"Add Folder",icon:S.jsx(Ov,{}),onClick:()=>P(k.id)},{key:"delete-col",label:"Delete Collection",icon:S.jsx(Er,{}),danger:!0,onClick:()=>d(k.id)}]},trigger:["click"],children:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(bb,{})})})})]}),D&&S.jsx("div",{className:"collection-tree-body",children:L(k,null,1)})]},k.id)})}),S.jsx(hr,{title:`Rename ${($==null?void 0:$.type)==="collection"?"Collection":"Item"}`,open:x,onCancel:()=>h(!1),onOk:M,destroyOnClose:!0,width:420,children:S.jsx(gn,{value:E,onChange:k=>j(k.target.value),onPressEnter:M,placeholder:"Enter new name",autoFocus:!0,style:{marginTop:12}})})]})}const{Option:fd}=ir,{TextArea:qle}=gn,{Text:Yl}=lr,Gle=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"];function Xle({request:e=null,environments:t=[],activeEnvironmentId:n=null,onSelectEnvironment:r,onSend:a,onSave:l,sending:c}){const[u,d]=i.useState("GET"),[f,v]=i.useState(""),[g,p]=i.useState([]),[b,C]=i.useState([]),[x,h]=i.useState({mode:"none",raw:"",json:"",formdata:[],urlencoded:[]}),[$,w]=i.useState({type:"none",token:"",username:"",password:""}),[E,j]=i.useState(""),[O,I]=i.useState("params");if(i.useEffect(()=>{e&&(d(e.method||"GET"),v(e.url||""),p(e.params||[]),C(e.headers||[]),h(e.body||{mode:"none",raw:"",json:"",formdata:[],urlencoded:[]}),w(e.auth||{type:"none",token:"",username:"",password:""}),j(e.name||"Untitled Request"))},[e==null?void 0:e.id]),!e)return S.jsx("div",{className:"request-editor-empty",children:S.jsx(Yl,{type:"secondary",children:'Select a request from the sidebar or click "Import" to load a collection.'})});const R=()=>{a({method:u,url:f,params:g,headers:b,body:x,auth:$})},M=()=>{l({...e,name:E,method:u,url:f,params:g,headers:b,body:x,auth:$})},N=()=>{p([...g,{key:"",value:"",enabled:!0}])},P=(_,F,W)=>{const q=[...g];q[_]={...q[_],[F]:W},p(q)},B=_=>{p(g.filter((F,W)=>W!==_))},L=()=>{C([...b,{key:"",value:"",enabled:!0}])},k=(_,F,W)=>{const q=[...b];q[_]={...q[_],[F]:W},C(q)},D=_=>{C(b.filter((F,W)=>W!==_))},H=[{title:"",dataIndex:"enabled",width:40,render:(_,F,W)=>S.jsx(aa,{checked:_!==!1,onChange:q=>P(W,"enabled",q.target.checked)})},{title:"Key",dataIndex:"key",width:"40%",render:(_,F,W)=>S.jsx(gn,{placeholder:"Parameter Key",value:_,onChange:q=>P(W,"key",q.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(_,F,W)=>S.jsx(gn,{placeholder:"Parameter Value",value:_,onChange:q=>P(W,"value",q.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(_,F,W)=>S.jsx(Xe,{type:"text",danger:!0,size:"small",icon:S.jsx(Er,{}),onClick:()=>B(W)})}],z=[{title:"",dataIndex:"enabled",width:40,render:(_,F,W)=>S.jsx(aa,{checked:_!==!1,onChange:q=>k(W,"enabled",q.target.checked)})},{title:"Header",dataIndex:"key",width:"40%",render:(_,F,W)=>S.jsx(gn,{placeholder:"Header (e.g. Content-Type)",value:_,onChange:q=>k(W,"key",q.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(_,F,W)=>S.jsx(gn,{placeholder:"Header Value",value:_,onChange:q=>k(W,"value",q.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(_,F,W)=>S.jsx(Xe,{type:"text",danger:!0,size:"small",icon:S.jsx(Er,{}),onClick:()=>D(W)})}];return S.jsxs("div",{className:"request-editor",children:[S.jsxs("div",{className:"request-bar",children:[S.jsx(gn,{value:E,onChange:_=>j(_.target.value),className:"request-name-input",placeholder:"Request Name"}),S.jsxs("div",{className:"request-url-row",children:[S.jsx(ir,{value:u,onChange:d,className:`method-select method-${u.toLowerCase()}`,style:{width:110},children:Gle.map(_=>S.jsx(fd,{value:_,children:_},_))}),S.jsx(gn,{value:f,onChange:_=>v(_.target.value),placeholder:"Enter request URL or {{variable}}",className:"url-input",onPressEnter:R}),S.jsx(ir,{value:n,onChange:r,placeholder:"Environment",allowClear:!0,style:{width:160},suffixIcon:S.jsx(aoe,{}),children:t.map(_=>S.jsx(fd,{value:_.id,children:_.name},_.id))}),S.jsx(Xe,{type:"primary",icon:S.jsx(VC,{}),loading:c,onClick:R,className:"send-btn",children:"Send"}),S.jsx(Xe,{icon:S.jsx(gie,{}),onClick:M,children:"Save"})]})]}),S.jsx("div",{className:"request-tabs-wrap",children:S.jsx(Bo,{activeKey:O,onChange:I,size:"small",items:[{key:"params",label:`Params (${g.filter(_=>_.key).length})`,children:S.jsxs("div",{className:"tab-pane-content",children:[S.jsx(xr,{dataSource:g,columns:H,rowKey:(_,F)=>`param_${F}`,pagination:!1,size:"small"}),S.jsx(Xe,{type:"dashed",size:"small",icon:S.jsx(ra,{}),onClick:N,style:{marginTop:8},children:"Add Query Parameter"})]})},{key:"headers",label:`Headers (${b.filter(_=>_.key).length})`,children:S.jsxs("div",{className:"tab-pane-content",children:[S.jsx(xr,{dataSource:b,columns:z,rowKey:(_,F)=>`hdr_${F}`,pagination:!1,size:"small"}),S.jsx(Xe,{type:"dashed",size:"small",icon:S.jsx(ra,{}),onClick:L,style:{marginTop:8},children:"Add Header"})]})},{key:"body",label:`Body (${x.mode})`,children:S.jsxs("div",{className:"tab-pane-content",children:[S.jsx("div",{style:{marginBottom:12},children:S.jsxs(ur.Group,{value:x.mode||"none",onChange:_=>h({...x,mode:_.target.value}),size:"small",children:[S.jsx(ur.Button,{value:"none",children:"none"}),S.jsx(ur.Button,{value:"json",children:"json"}),S.jsx(ur.Button,{value:"raw",children:"raw"}),S.jsx(ur.Button,{value:"urlencoded",children:"x-www-form-urlencoded"})]})}),x.mode==="json"||x.mode==="raw"?S.jsx(qle,{rows:8,value:x.raw||x.json||"",onChange:_=>h({...x,raw:_.target.value,json:_.target.value}),placeholder:'{\\n "key": "value"\\n}',style:{fontFamily:"monospace",fontSize:"13px"}}):x.mode==="urlencoded"?S.jsx(Yl,{type:"secondary",children:"x-www-form-urlencoded parameters configured via Headers / Params."}):S.jsx(Yl,{type:"secondary",children:"This request does not have a body."})]})},{key:"auth",label:`Auth (${$.type||"none"})`,children:S.jsxs("div",{className:"tab-pane-content",style:{maxWidth:520},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:[S.jsx(Yl,{strong:!0,style:{width:80,flexShrink:0},children:"Type:"}),S.jsxs(ir,{value:$.type||"none",onChange:_=>w({...$,type:_}),style:{flex:1},size:"small",children:[S.jsx(fd,{value:"none",children:"No Auth"}),S.jsx(fd,{value:"bearer",children:"Bearer Token"}),S.jsx(fd,{value:"basic",children:"Basic Auth"})]})]}),$.type==="bearer"&&S.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:[S.jsx(Yl,{strong:!0,style:{width:80,flexShrink:0},children:"Token:"}),S.jsx(gn,{value:$.token||"",onChange:_=>w({...$,token:_.target.value}),placeholder:"Bearer token or {{token}}",size:"small",style:{flex:1}})]}),$.type==="basic"&&S.jsxs(Ct,{direction:"vertical",style:{width:"100%"},size:"small",children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[S.jsx(Yl,{strong:!0,style:{width:80,flexShrink:0},children:"Username:"}),S.jsx(gn,{value:$.username||"",onChange:_=>w({...$,username:_.target.value}),size:"small",style:{flex:1}})]}),S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx(Yl,{strong:!0,style:{width:80,flexShrink:0},children:"Password:"}),S.jsx(gn.Password,{value:$.password||"",onChange:_=>w({...$,password:_.target.value}),size:"small",style:{flex:1}})]})]})]})}]})})]})}const{Text:c3}=lr;function Yle({response:e,loading:t}){const[n,r]=i.useState("pretty");if(t)return S.jsx("div",{className:"response-panel loading-state",children:S.jsxs("div",{className:"loading-spinner",children:[S.jsx(Wc,{spin:!0,style:{fontSize:28,color:"#1677ff",marginBottom:12}}),S.jsx(c3,{type:"secondary",children:"Sending HTTP Request…"})]})});if(!e)return S.jsx("div",{className:"response-panel empty-state",children:S.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:"Enter URL and click 'Send' to get response"})});const{status:a,statusText:l,headers:c={},data:u,durationMs:d,sizeBytes:f,contentType:v,error:g,resolvedUrl:p}=e,C=a>=200&&a<300?"success":a>=300&&a<400?"warning":"error",x=E=>!E||isNaN(E)?"0 B":E<1024?`${E} B`:E<1024*1024?`${(E/1024).toFixed(2)} KB`:`${(E/(1024*1024)).toFixed(2)} MB`,h=()=>{if(g)return typeof g=="string"?g:JSON.stringify(g,null,2);if(typeof u=="object")return JSON.stringify(u,null,2);if(typeof u=="string")try{const E=JSON.parse(u);return JSON.stringify(E,null,2)}catch{return u}return String(u||"")},$=()=>{navigator.clipboard.writeText(h()),Ln.success("Response body copied to clipboard!")},w=Object.entries(c).map(([E,j],O)=>({key:O,keyName:E,value:String(j)}));return S.jsxs("div",{className:"response-panel",children:[S.jsxs("div",{className:"response-header-bar",children:[S.jsxs("div",{className:"response-status-group",children:[g?S.jsx(mn,{color:"error",children:"Error"}):S.jsxs(mn,{color:C,style:{fontSize:13,padding:"2px 8px"},children:[a," ",l]}),d!==void 0&&S.jsxs("span",{className:"response-meta-item",children:[S.jsx(Wc,{})," ",d," ms"]}),f!==void 0&&S.jsxs("span",{className:"response-meta-item",children:[S.jsx(Noe,{})," ",x(f)]})]}),S.jsx(An,{title:"Copy Response",children:S.jsx(Xe,{size:"small",icon:S.jsx(Zo,{}),onClick:$,children:"Copy"})})]}),S.jsx("div",{className:"response-body-wrap",children:S.jsx(Bo,{activeKey:n,onChange:r,size:"small",items:[{key:"pretty",label:"Pretty",children:S.jsx("pre",{className:"code-viewer",children:S.jsx("code",{children:h()})})},{key:"raw",label:"Raw",children:S.jsx("pre",{className:"code-viewer raw",children:S.jsx("code",{children:typeof u=="string"?u:JSON.stringify(u)})})},{key:"headers",label:`Headers (${Object.keys(c).length})`,children:S.jsx(xr,{dataSource:w,columns:[{title:"Header",dataIndex:"keyName",width:"30%",render:E=>S.jsx(c3,{strong:!0,children:E})},{title:"Value",dataIndex:"value"}],size:"small",pagination:!1,style:{marginTop:8}})}]})})]})}const{Dragger:Qle}=np,{TextArea:u3}=gn,{Text:d3}=lr;function Zle({open:e,onClose:t,onImport:n}){const[r,a]=i.useState("file"),[l,c]=i.useState(""),[u,d]=i.useState(""),[f,v]=i.useState(!1),g=async b=>{if(!b||!b.trim()){Ln.warning("Please select a file or paste content to import");return}try{v(!0),await n(b.trim()),Ln.success("Imported successfully!"),c(""),d(""),t()}catch(C){Ln.error(`Import failed: ${C.message}`)}finally{v(!1)}},p={name:"file",multiple:!1,accept:".json",showUploadList:!1,beforeUpload(b){if(!(b.type==="application/json"||b.name.endsWith(".json")))return Ln.error("Please upload a valid .json file!"),!1;const x=new FileReader;return x.onload=h=>{const $=h.target.result;g($)},x.readAsText(b),!1}};return S.jsx(hr,{title:"Import Postman Collection / cURL",open:e,onCancel:t,footer:[S.jsx(Xe,{onClick:t,children:"Cancel"},"cancel"),(r==="text"||r==="curl")&&S.jsx(Xe,{type:"primary",loading:f,onClick:()=>g(r==="text"?l:u),children:"Import"},"submit")].filter(Boolean),width:640,destroyOnClose:!0,children:S.jsx(Bo,{activeKey:r,onChange:a,items:[{key:"file",label:S.jsxs("span",{children:[S.jsx(Jd,{})," Upload JSON File"]}),children:S.jsx("div",{style:{padding:"16px 0"},children:S.jsxs(Qle,{...p,children:[S.jsx("p",{className:"ant-upload-drag-icon",children:S.jsx(Jd,{style:{color:"#1677ff",fontSize:48}})}),S.jsx("p",{className:"ant-upload-text",children:"Click or drag Postman Collection JSON file to this area"}),S.jsx("p",{className:"ant-upload-hint",children:"Supports Postman Collection v2.0 and v2.1 JSON files."})]})})},{key:"text",label:S.jsxs("span",{children:[S.jsx(lu,{})," Raw Collection JSON"]}),children:S.jsxs("div",{style:{padding:"12px 0"},children:[S.jsx(d3,{type:"secondary",style:{display:"block",marginBottom:8},children:"Paste raw Postman Collection JSON content:"}),S.jsx(u3,{rows:10,value:l,onChange:b=>c(b.target.value),placeholder:'{ "info": { "name": "Sample Collection" }, "item": [...] }',style:{fontFamily:"monospace",fontSize:"13px"}})]})},{key:"curl",label:S.jsxs("span",{children:[S.jsx(wi,{})," cURL Command"]}),children:S.jsxs("div",{style:{padding:"12px 0"},children:[S.jsx(d3,{type:"secondary",style:{display:"block",marginBottom:8},children:"Paste a raw cURL command to import as a request:"}),S.jsx(u3,{rows:10,value:u,onChange:b=>d(b.target.value),placeholder:`curl -X POST "https://api.example.com/v1/users" \\
|
|
522
|
-
-H "Authorization: Bearer token123" \\
|
|
523
|
-
-H "Content-Type: application/json" \\
|
|
524
|
-
-d '{"name": "John"}'`,style:{fontFamily:"monospace",fontSize:"13px"}})]})}]})})}const{Option:Jle}=ir,{Text:ese}=lr;function tse({open:e,onClose:t,environments:n=[],activeEnvironmentId:r=null,onSave:a}){const[l,c]=i.useState(n),[u,d]=i.useState(r),[f,v]=i.useState(null);i.useEffect(()=>{c(n),d(r),n.length>0?v(r||n[0].id):v(null)},[e,n,r]);const g=l.find(O=>O.id===f),p=()=>{const O={id:`env_${Date.now()}`,name:`Environment ${l.length+1}`,variables:[{key:"baseUrl",value:"http://localhost:3000",enabled:!0}]};c([...l,O]),v(O.id),u||d(O.id)},b=O=>{var R,M;const I=l.filter(N=>N.id!==O);c(I),u===O&&d(((R=I[0])==null?void 0:R.id)||null),f===O&&v(((M=I[0])==null?void 0:M.id)||null)},C=O=>{f&&c(l.map(I=>I.id===f?{...I,name:O}:I))},x=O=>{f&&c(l.map(I=>I.id===f?{...I,variables:O}:I))},h=()=>{if(!g)return;const O=[...g.variables||[],{key:"",value:"",enabled:!0}];x(O)},$=(O,I,R)=>{if(!g)return;const M=[...g.variables||[]];M[O]={...M[O],[I]:R},x(M)},w=O=>{if(!g)return;const I=g.variables.filter((R,M)=>M!==O);x(I)},E=()=>{a({environments:l,activeEnvironmentId:u}),t()},j=[{title:"",dataIndex:"enabled",width:40,render:(O,I,R)=>S.jsx(aa,{checked:O!==!1,onChange:M=>$(R,"enabled",M.target.checked)})},{title:"Variable Name",dataIndex:"key",width:"40%",render:(O,I,R)=>S.jsx(gn,{placeholder:"VARIABLE_NAME",value:O,onChange:M=>$(R,"key",M.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(O,I,R)=>S.jsx(gn,{placeholder:"Value",value:O,onChange:M=>$(R,"value",M.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(O,I,R)=>S.jsx(Xe,{type:"text",danger:!0,size:"small",icon:S.jsx(Er,{}),onClick:()=>w(R)})}];return S.jsx(hr,{title:"Manage Environment Variables",open:e,onCancel:t,onOk:E,width:720,destroyOnClose:!0,children:S.jsxs(Ct,{direction:"vertical",style:{width:"100%"},size:"middle",children:[S.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[S.jsx(ese,{strong:!0,children:"Active Environment:"}),S.jsx(ir,{style:{width:220},value:u,onChange:d,placeholder:"No Active Environment",allowClear:!0,children:l.map(O=>S.jsx(Jle,{value:O.id,children:O.name},O.id))}),S.jsx(Xe,{icon:S.jsx(ra,{}),onClick:p,children:"New Environment"})]}),f&&g?S.jsxs("div",{style:{border:"1px solid #303030",borderRadius:8,padding:16},children:[S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:12},children:[S.jsx(gn,{value:g.name,onChange:O=>C(O.target.value),style:{width:260,fontWeight:"bold"}}),S.jsx(fo,{title:"Delete this environment?",onConfirm:()=>b(g.id),okText:"Yes",cancelText:"No",children:S.jsx(Xe,{type:"text",danger:!0,icon:S.jsx(Er,{}),children:"Delete Environment"})})]}),S.jsx(xr,{dataSource:g.variables||[],columns:j,rowKey:(O,I)=>`var_${I}`,pagination:!1,size:"small"}),S.jsx(Xe,{type:"dashed",icon:S.jsx(ra,{}),onClick:h,block:!0,style:{marginTop:12},children:"Add Variable"})]}):S.jsx("div",{style:{textAlign:"center",padding:"32px 0",color:"#888"},children:'No environments created yet. Click "New Environment" to create one.'})]})})}function nse(){const{message:e}=Da.useApp(),[t,n]=i.useState([]),[r,a]=i.useState([]),[l,c]=i.useState(null),[u,d]=i.useState(null),[f,v]=i.useState(null),[g,p]=i.useState(null),[b,C]=i.useState(!0),[x,h]=i.useState(!1),[$,w]=i.useState(!1),[E,j]=i.useState(!1),O=async()=>{try{C(!0);const F=await tl.getData();if(n(F.collections||[]),a(F.environments||[]),c(F.activeEnvironmentId||null),(F.collections||[]).length>0&&!u){const W=F.collections[0];d(W.id);const q=(W.items||[]).find(V=>!V.isFolder);q&&v(q.id)}}catch(F){e.error(`Failed to load Postman data: ${F.message}`)}finally{C(!1)}};i.useEffect(()=>{O()},[]);const I=i.useMemo(()=>t.find(F=>F.id===u),[t,u]),R=i.useMemo(()=>I?(I.items||[]).find(F=>F.id===f&&!F.isFolder):null,[I,f]),M=i.useMemo(()=>r.find(F=>F.id===l),[r,l]),N=(F,W)=>{d(F),v(W),p(null)},P=async F=>{try{const W=await tl.importCollection(F);await O(),d(W.id);const q=(W.items||[]).find(V=>!V.isFolder);q&&v(q.id)}catch(W){throw e.error(`Import failed: ${W.message}`),W}},B=async()=>{try{const F=await tl.createCollection({name:"New Collection"});n([F,...t]),d(F.id),v(null),e.success("Created collection")}catch(F){e.error(F.message)}},L=async(F,W)=>{try{const q=await tl.updateCollection(F,W);n(t.map(V=>V.id===F?q:V))}catch(q){e.error(q.message)}},k=async F=>{var W;try{await tl.deleteCollection(F);const q=t.filter(V=>V.id!==F);n(q),u===F&&(d(((W=q[0])==null?void 0:W.id)||null),v(null)),e.success("Collection deleted")}catch(q){e.error(q.message)}},D=async({environments:F,activeEnvironmentId:W})=>{try{const q=await tl.saveEnvironments({environments:F,activeEnvironmentId:W});a(q.environments||[]),c(q.activeEnvironmentId||null),e.success("Environments saved")}catch(q){e.error(q.message)}},H=async F=>{try{c(F),await tl.saveEnvironments({activeEnvironmentId:F})}catch(W){e.error(W.message)}},z=async F=>{if(!u)return;const W=((I==null?void 0:I.items)||[]).map(V=>V.id===F.id?F:V);W.some(V=>V.id===F.id)||W.push(F),await L(u,{items:W}),e.success("Request saved")},_=async F=>{if(!F.url){e.warning("Please enter a target URL");return}try{h(!0),p(null);const W=(I==null?void 0:I.variables)||[],q=(M==null?void 0:M.variables)||[],V=await tl.sendRequest({...F,collectionVariables:W,environmentVariables:q});p(V)}catch(W){p({error:W.message||"Request failed",status:0,statusText:"Network / Proxy Error"}),e.error(W.message||"Failed to send request")}finally{h(!1)}};return b?S.jsx("div",{style:{textAlign:"center",padding:"100px 0"},children:S.jsx(Pa,{size:"large",tip:"Loading Postman Workbench..."})}):S.jsxs("div",{className:"postman-container",children:[S.jsx(Ule,{collections:t,activeCollectionId:u,activeRequestId:f,onSelectRequest:N,onOpenImportModal:()=>w(!0),onOpenEnvModal:()=>j(!0),onCreateCollection:B,onUpdateCollection:L,onDeleteCollection:k}),S.jsxs("div",{className:"postman-workspace",children:[S.jsx(Xle,{request:R,environments:r,activeEnvironmentId:l,onSelectEnvironment:H,onSend:_,onSave:z,sending:x}),S.jsx(Yle,{response:g,loading:x})]}),S.jsx(Zle,{open:$,onClose:()=>w(!1),onImport:P}),S.jsx(tse,{open:E,onClose:()=>j(!1),environments:r,activeEnvironmentId:l,onSave:D})]})}const{Title:wb,Text:rl,Paragraph:Eb}=lr;function rse(){var O,I,R,M,N,P,B,L,k,D,H,z,_,F;const[e,t]=i.useState(!0),[n,r]=i.useState(!1),[a,l]=i.useState(!1),[c,u]=i.useState(null),[d,f]=i.useState("two-way"),[v,g]=i.useState(null),[p,b]=i.useState(!1),[C,x]=i.useState(null),h=async()=>{t(!0);try{const W=await Cb.status();u(W)}catch(W){Ln.error(W.message||"Failed to fetch bookmark status.")}finally{t(!1)}};i.useEffect(()=>{h()},[]);const $=async()=>{l(!0);try{const W=await Cb.preview(d);g(W),b(!0)}catch(W){Ln.error(W.message||"Failed to generate preview.")}finally{l(!1)}},w=async()=>{r(!0),x(null);try{const W=await Cb.sync(d);x(W),Ln.success("Bookmarks synchronized successfully!"),h()}catch(W){Ln.error(W.message||"Failed to sync bookmarks.")}finally{r(!1)}},E=[{title:"Bookmark Name",dataIndex:"name",key:"name",render:W=>S.jsx(rl,{strong:!0,children:W||"Untitled"})},{title:"URL",dataIndex:"url",key:"url",ellipsis:!0,render:W=>S.jsx("a",{href:W,target:"_blank",rel:"noreferrer",children:W})},{title:"Folder Location",dataIndex:"folderPath",key:"folderPath",render:W=>S.jsx(mn,{color:"blue",children:W||"Bookmark Bar"})}];if(e&&!c)return S.jsx("div",{style:{textAlign:"center",padding:"60px 0"},children:S.jsx(Pa,{size:"large",tip:"Checking browser bookmark paths…"})});const j=((O=c==null?void 0:c.chrome)==null?void 0:O.running)||((I=c==null?void 0:c.edge)==null?void 0:I.running);return S.jsxs("div",{style:{maxWidth:1e3,margin:"0 auto",paddingBottom:40},children:[S.jsx("div",{className:"page-header",children:S.jsxs("div",{children:[S.jsx(rl,{type:"secondary",children:"UTILITIES"}),S.jsx(wb,{level:2,children:"Bookmark Sync"}),S.jsx(Eb,{type:"secondary",className:"page-header-desc",children:"Seamlessly merge and sync bookmarks between Google Chrome and Microsoft Edge with automatic deduplication and safe backups."})]})}),j&&S.jsx(wd,{type:"warning",showIcon:!0,icon:S.jsx(VN,{}),message:"Active Browser Process Detected",description:"Chrome or Edge is currently running. It is recommended to close the browser before syncing, or restart it after syncing so the changes take effect without being overwritten by in-memory cache.",style:{marginBottom:24,borderRadius:8}}),S.jsxs(pl,{gutter:[16,16],style:{marginBottom:24},children:[S.jsx(Sr,{xs:24,sm:12,children:S.jsxs(wn,{title:S.jsxs(Ct,{children:[S.jsx(zae,{style:{fontSize:18,color:"#1890ff"}}),S.jsx("span",{children:"Google Chrome"})]}),extra:(R=c==null?void 0:c.chrome)!=null&&R.exists?S.jsx(mn,{color:"success",icon:S.jsx(hs,{}),children:"Ready"}):S.jsx(mn,{color:"default",children:"File Not Found"}),bordered:!0,hoverable:!0,style:{borderRadius:10},children:[S.jsxs(Eb,{type:"secondary",style:{fontSize:12,marginBottom:12},children:["Path: ",((M=c==null?void 0:c.chrome)==null?void 0:M.path)||"-"]}),S.jsxs(Ct,{direction:"vertical",style:{width:"100%"},children:[S.jsxs("div",{children:["Bookmarks Count:"," ",S.jsx(rl,{strong:!0,style:{fontSize:18,color:"#1890ff"},children:((N=c==null?void 0:c.chrome)==null?void 0:N.count)??0})," ","items"]}),S.jsxs("div",{children:["Process Status:"," ",(P=c==null?void 0:c.chrome)!=null&&P.running?S.jsx(qa,{status:"processing",text:"Running"}):S.jsx(qa,{status:"default",text:"Not running"})]})]})]})}),S.jsx(Sr,{xs:24,sm:12,children:S.jsxs(wn,{title:S.jsxs(Ct,{children:[S.jsx(qae,{style:{fontSize:18,color:"#0078d4"}}),S.jsx("span",{children:"Microsoft Edge"})]}),extra:(B=c==null?void 0:c.edge)!=null&&B.exists?S.jsx(mn,{color:"success",icon:S.jsx(hs,{}),children:"Ready"}):S.jsx(mn,{color:"default",children:"File Not Found"}),bordered:!0,hoverable:!0,style:{borderRadius:10},children:[S.jsxs(Eb,{type:"secondary",style:{fontSize:12,marginBottom:12},children:["Path: ",((L=c==null?void 0:c.edge)==null?void 0:L.path)||"-"]}),S.jsxs(Ct,{direction:"vertical",style:{width:"100%"},children:[S.jsxs("div",{children:["Bookmarks Count:"," ",S.jsx(rl,{strong:!0,style:{fontSize:18,color:"#722ed1"},children:((k=c==null?void 0:c.edge)==null?void 0:k.count)??0})," ","items"]}),S.jsxs("div",{children:["Process Status:"," ",(D=c==null?void 0:c.edge)!=null&&D.running?S.jsx(qa,{status:"processing",text:"Running"}):S.jsx(qa,{status:"default",text:"Not running"})]})]})]})})]}),S.jsx(wn,{title:"Sync Mode & Controls",style:{borderRadius:10,marginBottom:24},children:S.jsxs(Ct,{direction:"vertical",size:"large",style:{width:"100%"},children:[S.jsxs("div",{children:[S.jsx(rl,{strong:!0,style:{display:"block",marginBottom:8},children:"Select Sync Rule:"}),S.jsxs(ur.Group,{value:d,onChange:W=>f(W.target.value),buttonStyle:"solid",children:[S.jsx(ur.Button,{value:"two-way",children:S.jsxs(Ct,{size:4,children:[S.jsx(YY,{}),S.jsx("span",{children:"Two-way Merge (Union)"})]})}),S.jsx(ur.Button,{value:"chrome-to-edge",children:S.jsxs(Ct,{size:4,children:[S.jsx(FN,{}),S.jsx("span",{children:"Chrome to Edge"})]})}),S.jsx(ur.Button,{value:"edge-to-chrome",children:S.jsxs(Ct,{size:4,children:[S.jsx(t1,{}),S.jsx("span",{children:"Edge to Chrome"})]})})]})]}),S.jsx(pC,{style:{margin:"8px 0"}}),S.jsxs(Ct,{size:"middle",children:[S.jsx(Xe,{type:"primary",size:"large",icon:S.jsx(o1,{spin:n}),loading:n,disabled:!((H=c==null?void 0:c.chrome)!=null&&H.exists)&&!((z=c==null?void 0:c.edge)!=null&&z.exists),onClick:w,style:{borderRadius:6,minWidth:140},children:"Sync Now"}),S.jsx(Xe,{size:"large",icon:S.jsx(wC,{}),loading:a,disabled:!((_=c==null?void 0:c.chrome)!=null&&_.exists)&&!((F=c==null?void 0:c.edge)!=null&&F.exists),onClick:$,style:{borderRadius:6},children:"Preview Changes"}),S.jsx(Xe,{icon:S.jsx(gs,{}),onClick:h,loading:e,children:"Refresh Status"})]})]})}),C&&S.jsx(wd,{type:"success",showIcon:!0,icon:S.jsx(fie,{}),message:"Sync Completed Successfully",description:S.jsxs(Ct,{direction:"vertical",style:{marginTop:8},children:[S.jsxs("div",{children:["Bookmarks updated! Added to Edge: ",S.jsx(rl,{strong:!0,children:C.addedToEdgeCount})," items, Added to Chrome:"," ",S.jsx(rl,{strong:!0,children:C.addedToChromeCount})," items."]}),C.backupsCreated&&C.backupsCreated.length>0&&S.jsxs("div",{children:[S.jsx(rl,{type:"secondary",style:{fontSize:12},children:"Safety backups created:"}),S.jsx(Fy,{size:"small",dataSource:C.backupsCreated,renderItem:W=>S.jsx(Fy.Item,{style:{padding:"2px 0",fontSize:12},children:S.jsx("code",{children:W})})})]})]}),style:{borderRadius:8,marginBottom:24}}),S.jsx(hr,{title:"Bookmark Sync Changes Preview",open:p,onCancel:()=>b(!1),footer:[S.jsx(Xe,{onClick:()=>b(!1),children:"Cancel"},"close"),S.jsx(Xe,{type:"primary",icon:S.jsx(o1,{}),loading:n,onClick:()=>{b(!1),w()},children:"Confirm & Sync Now"},"sync")],width:800,children:v?S.jsxs(Ct,{direction:"vertical",size:"middle",style:{width:"100%",marginTop:12},children:[S.jsx(wd,{type:"info",showIcon:!0,icon:S.jsx(bs,{}),message:`Current Mode: ${d==="two-way"?"Two-way Merge":d==="chrome-to-edge"?"Chrome to Edge":"Edge to Chrome"}`}),v.toAddEdge.length>0&&S.jsxs("div",{children:[S.jsxs(wb,{level:5,children:["Pending Items to Add to Microsoft Edge (",v.toAddEdge.length,"):"]}),S.jsx(xr,{dataSource:v.toAddEdge,columns:E,rowKey:(W,q)=>`${W.url}-${W.folderPath}-${q}`,pagination:{defaultPageSize:5,showSizeChanger:!0,pageSizeOptions:["5","10","20","50"]},size:"small"})]}),v.toAddChrome.length>0&&S.jsxs("div",{children:[S.jsxs(wb,{level:5,children:["Pending Items to Add to Google Chrome (",v.toAddChrome.length,"):"]}),S.jsx(xr,{dataSource:v.toAddChrome,columns:E,rowKey:(W,q)=>`${W.url}-${W.folderPath}-${q}`,pagination:{defaultPageSize:5,showSizeChanger:!0,pageSizeOptions:["5","10","20","50"]},size:"small"})]}),v.toAddEdge.length===0&&v.toAddChrome.length===0&&S.jsx("div",{style:{textAlign:"center",padding:"30px 0",color:"#999"},children:"Chrome and Edge bookmarks are fully synchronized. No pending changes."})]}):S.jsx(Pa,{})})]})}const{Title:ase,Text:so,Paragraph:ose}=lr;function Ob(e){if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]}function ise(e){if(!e)return"-";const t=new Date(e);if(isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function f3(e){if(!e)return"";const t=e.trim().replace(/[/\\]+$/,""),n=t.split(/[/\\]/);return`.../${n[n.length-1]||t}`}const ov={screenshots:{label:"Screenshots",color:"purple",icon:S.jsx(U4,{})},images:{label:"Images",color:"magenta",icon:S.jsx(U4,{})},videos:{label:"Videos",color:"volcano",icon:S.jsx(Pie,{})},audio:{label:"Audio",color:"lime",icon:S.jsx(Zae,{})},documents:{label:"Documents",color:"blue",icon:S.jsx(lu,{})},emails:{label:"Emails",color:"gold",icon:S.jsx(Yoe,{})},json:{label:"JSON",color:"cyan",icon:S.jsx(wi,{})},code:{label:"Code",color:"green",icon:S.jsx(wi,{})},archives:{label:"Archives",color:"orange",icon:S.jsx(K4,{})},installers:{label:"Installers",color:"geekblue",icon:S.jsx(Sae,{})},others:{label:"Others",color:"default",icon:S.jsx(K4,{})}};function lse(){const{message:e,modal:t}=Da.useApp(),[n,r]=i.useState("organize"),[a,l]=i.useState("~/Downloads"),[c,u]=i.useState("default"),[d,f]=i.useState(""),[v,g]=i.useState(!0),[p,b]=i.useState(!1),[C,x]=i.useState("move"),[h,$]=i.useState(!1),[w,E]=i.useState(null),[j,O]=i.useState([]),[I,R]=i.useState("all"),[M,N]=i.useState(!1),[P,B]=i.useState([]),[L,k]=i.useState(!1),[D,H]=i.useState(!1),[z,_]=i.useState("~"),[F,W]=i.useState(null),[q,V]=i.useState(!1),G=()=>{const Z=a.trim().replace(/[/\\]+$/,"");if(c==="custom"&&d.trim()){const de=d.trim();return de.startsWith("~")||de.startsWith("/")||/^[a-zA-Z]:[/\\]/.test(de)?de:`${Z}/${de.replace(/^[/\\]+/,"")}`}const X=new Date().toISOString().slice(0,10),oe=new Date().toTimeString().slice(0,5).replace(":",""),le=`Organized_${X}_${oe}`;return`${Z}/${le}`},K=async()=>{if(!a.trim()){e.error("Please specify a source directory path.");return}$(!0);try{const Z=G(),X=await sd.scan({sourcePath:a.trim(),targetPath:Z,includeSubfolders:p,skipOrganized:v});E(X),O(X.files.map(oe=>oe.id)),e.success(`Scan completed. Found ${X.files.length} files.`)}catch(Z){e.error(Z.message||"Folder scan failed")}finally{$(!1)}},U=()=>{if(!w||w.files.length===0){e.error("Please scan the folder first.");return}const Z=w.files.filter(le=>j.includes(le.id));if(Z.length===0){e.warning("Please select at least one file to organize.");return}const X=G(),oe=C==="move"?"Move":"Copy";t.confirm({title:`Confirm ${oe} Files?`,icon:S.jsx(FI,{style:{color:"#1890ff"}}),content:S.jsxs("div",{children:[S.jsxs("p",{children:["Will ",S.jsx("strong",{children:oe.toLowerCase()})," ",S.jsx("strong",{children:Z.length})," file(s) into the target directory:"]}),S.jsx("div",{style:{background:"#f5f5f5",padding:"8px 12px",borderRadius:6,fontFamily:"monospace",wordBreak:"break-all"},children:X}),S.jsxs("p",{style:{marginTop:12,color:"#666",fontSize:13},children:["Target subdirectories: ",Array.from(new Set(Z.map(le=>le.subfolder))).join(", ")]})]}),okText:`Confirm ${oe}`,cancelText:"Cancel",onOk:async()=>{N(!0);try{const le=await sd.execute({sourcePath:w.sourcePath,targetPath:X,files:Z,operation:C});e.success(`Successfully ${C==="move"?"moved":"copied"} ${le.successCount} files!`),E(null),O([]),J()}catch(le){e.error(le.message||"Execution failed")}finally{N(!1)}}})},J=async()=>{k(!0);try{const Z=await sd.getHistory();B(Z)}catch(Z){e.error(Z.message||"Failed to load history list.")}finally{k(!1)}};i.useEffect(()=>{n==="history"&&J()},[n]);const Q=Z=>{t.confirm({title:"Undo Organization?",content:`Will restore ${Z.successCount} ${Z.operation==="move"?"moved":"copied"} file(s) back to their original paths.`,okText:"Confirm Undo",okType:"danger",cancelText:"Cancel",onOk:async()=>{try{const X=await sd.undo(Z.id);e.success(`Undo completed! Successfully restored ${X.revertSuccessCount} files.`),J()}catch(X){e.error(X.message||"Undo operation failed")}}})},te=async Z=>{V(!0);try{const X=await sd.browse(Z);W(X),_(X.currentPath)}catch(X){e.error(X.message||"Failed to read directory")}finally{V(!1)}},Y=Z=>{H(!0),te(Z||"~")},ae=[{title:"File Name",dataIndex:"filename",key:"filename",render:(Z,X)=>S.jsxs(Ct,{direction:"vertical",size:2,style:{wordBreak:"break-all",whiteSpace:"normal"},children:[S.jsx(so,{strong:!0,style:{wordBreak:"break-all"},children:Z}),X.relativePath!==Z&&S.jsx(so,{type:"secondary",style:{fontSize:12,wordBreak:"break-all"},children:X.relativePath})]})},{title:"Category",dataIndex:"categoryKey",key:"categoryKey",width:140,render:Z=>{const X=ov[Z]||ov.others;return S.jsx(mn,{color:X.color,icon:X.icon,children:X.label})}},{title:"Target Subfolder",dataIndex:"subfolder",key:"subfolder",width:150,render:Z=>S.jsxs(mn,{style:{fontFamily:"monospace"},children:[Z,"/"]})},{title:"Size",dataIndex:"size",key:"size",width:120,render:Z=>Ob(Z)}],re=w?w.files.filter(Z=>I==="all"?!0:Z.categoryKey===I):[];return S.jsxs("div",{style:{paddingBottom:40},children:[S.jsx("div",{className:"page-header",children:S.jsxs("div",{children:[S.jsx(so,{type:"secondary",children:"UTILITIES"}),S.jsx(ase,{level:2,children:"Folder Organizer"}),S.jsx(ose,{type:"secondary",className:"page-header-desc",children:"Organize files in any directory into structured folders (Images, Screenshots, Videos, Audio, Documents, Emails, JSON, Code, Archives, Installers, etc.) with pre-execution preview and 1-click undo."})]})}),S.jsx(Bo,{activeKey:n,onChange:r,type:"card",items:[{key:"organize",label:S.jsxs("span",{children:[S.jsx(q4,{})," Organize Files"]}),children:S.jsxs(S.Fragment,{children:[S.jsx(wn,{style:{marginBottom:16,borderRadius:8,boxShadow:"0 1px 3px rgba(0,0,0,0.05)"},children:S.jsxs(pl,{gutter:[16,16],children:[S.jsxs(Sr,{span:24,children:[S.jsx(so,{strong:!0,style:{display:"block",marginBottom:8},children:"Source Directory Path:"}),S.jsx(gn.Search,{value:a,onChange:Z=>l(Z.target.value),placeholder:"Enter directory path to organize, e.g. ~/Downloads",enterButton:S.jsxs(Ct,{children:[S.jsx(q4,{})," Scan Folder"]}),loading:h,onSearch:K,addonAfter:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(r1,{}),onClick:()=>Y(a),children:"Browse"})}),S.jsxs(Ct,{style:{marginTop:8},children:[S.jsx(so,{type:"secondary",style:{fontSize:12},children:"Quick Presets:"}),S.jsx(Xe,{size:"small",type:"dashed",icon:S.jsx(LC,{}),onClick:()=>l("~/Downloads"),children:"Downloads"}),S.jsx(Xe,{size:"small",type:"dashed",icon:S.jsx(toe,{}),onClick:()=>l("~/Desktop"),children:"Desktop"}),S.jsx(Xe,{size:"small",type:"dashed",icon:S.jsx(lu,{}),onClick:()=>l("~/Documents"),children:"Documents"})]})]}),S.jsxs(Sr,{span:24,children:[S.jsx(so,{strong:!0,style:{display:"block",marginBottom:8},children:"Target Directory Settings:"}),S.jsxs(ur.Group,{value:c,onChange:Z=>u(Z.target.value),style:{marginBottom:8},children:[S.jsxs(ur,{value:"default",children:["Create default subdirectory (inside source folder ",S.jsx("code",{children:"Organized_YYYY-MM-DD..."}),")"]}),S.jsx(ur,{value:"custom",children:"Custom target path"})]}),c==="custom"&&S.jsx("div",{style:{marginTop:4},children:S.jsx(gn,{value:d,onChange:Z=>f(Z.target.value),placeholder:"Enter target directory path, e.g. ~/OrganizedFiles",addonAfter:S.jsx(Xe,{type:"text",size:"small",icon:S.jsx(r1,{}),onClick:()=>Y(d),children:"Browse"})})}),S.jsx("div",{style:{marginTop:6,background:"#fafafa",padding:"6px 12px",borderRadius:4},children:S.jsxs(so,{type:"secondary",style:{fontSize:12},children:["Projected target path: ",S.jsx("code",{style:{color:"#1890ff"},children:G()})]})})]}),S.jsx(Sr,{span:24,children:S.jsxs(Ct,{size:"large",wrap:!0,children:[S.jsxs("div",{children:[S.jsx(so,{strong:!0,style:{marginRight:8},children:"Options:"}),S.jsx(aa,{checked:v,onChange:Z=>g(Z.target.checked),children:"Skip Organized / target folders"}),S.jsx(aa,{checked:p,onChange:Z=>b(Z.target.checked),children:"Include subfolders"})]}),S.jsxs("div",{children:[S.jsx(so,{strong:!0,style:{marginRight:8},children:"Operation:"}),S.jsxs(ur.Group,{value:C,onChange:Z=>x(Z.target.value),optionType:"button",buttonStyle:"solid",size:"small",children:[S.jsx(ur.Button,{value:"move",children:"Move files"}),S.jsx(ur.Button,{value:"copy",children:"Copy files"})]})]})]})})]})}),w&&S.jsxs(S.Fragment,{children:[S.jsx(wn,{style:{marginBottom:16,borderRadius:8},children:S.jsxs(pl,{gutter:[16,16],children:[S.jsx(Sr,{xs:12,sm:8,md:3,children:S.jsx(bi,{title:"Files Found",value:w.stats.totalCount,suffix:"items"})}),S.jsx(Sr,{xs:12,sm:8,md:3,children:S.jsx(bi,{title:"Total Size",value:Ob(w.stats.totalSize)})}),S.jsxs(Sr,{xs:24,sm:16,md:18,children:[S.jsx(so,{type:"secondary",style:{display:"block",marginBottom:8},children:"Category Breakdown:"}),S.jsx(Ct,{wrap:!0,size:[8,8],children:Object.entries(w.stats.byCategory).map(([Z,X])=>{const oe=ov[Z]||ov.others;return S.jsxs(mn,{color:X.count>0?oe.color:"default",style:{padding:"4px 10px",fontSize:13,cursor:"pointer",border:I===Z?"2px solid #1890ff":void 0},onClick:()=>R(Z),children:[oe.icon," ",oe.label,": ",S.jsx("strong",{children:X.count})," items (",Ob(X.size),")"]},Z)})})]})]})}),S.jsx(wn,{title:S.jsxs(Ct,{children:[S.jsx("span",{children:"Preview Files to Organize"}),S.jsxs(mn,{color:"blue",children:["Selected ",j.length," / ",w.files.length," items"]})]}),extra:S.jsxs(Ct,{children:[I!=="all"&&S.jsx(Xe,{size:"small",onClick:()=>R("all"),children:"Reset Filter (Show All)"}),S.jsxs(Xe,{type:"primary",icon:S.jsx(hs,{}),loading:M,onClick:U,disabled:j.length===0,children:["Organize Files (",C==="move"?"Move":"Copy",")"]})]}),style:{borderRadius:8},children:S.jsx(xr,{rowKey:"id",dataSource:re,columns:ae,scroll:{x:"max-content"},pagination:{pageSize:15,showSizeChanger:!0,pageSizeOptions:["15","30","50","100"]},rowSelection:{selectedRowKeys:j,onChange:Z=>O(Z)},size:"small"})})]})]})},{key:"history",label:S.jsxs("span",{children:[S.jsx(Poe,{})," History & Undo (",P.length,")"]}),children:S.jsx(wn,{style:{borderRadius:8},children:S.jsx(xr,{loading:L,rowKey:"id",dataSource:P,scroll:{x:"max-content"},columns:[{title:"Timestamp",dataIndex:"timestamp",key:"timestamp",width:150,render:Z=>ise(Z)},{title:"Source & Target Directory",key:"paths",render:(Z,X)=>S.jsxs("div",{children:[S.jsx(An,{title:`Full Source: ${X.sourcePath}`,placement:"topLeft",children:S.jsxs("div",{children:[S.jsx(so,{type:"secondary",style:{fontSize:12},children:"Source:"})," ",S.jsx("code",{style:{fontSize:12},children:f3(X.sourcePath)})]})}),S.jsx(An,{title:`Full Target: ${X.targetPath}`,placement:"topLeft",children:S.jsxs("div",{style:{marginTop:2},children:[S.jsx(so,{type:"secondary",style:{fontSize:12},children:"Target:"})," ",S.jsx("code",{style:{fontSize:12},children:f3(X.targetPath)})]})})]})},{title:"Operation",dataIndex:"operation",key:"operation",width:90,render:Z=>S.jsx(mn,{color:Z==="move"?"blue":"green",children:Z==="move"?"Move":"Copy"})},{title:"Success / Total",key:"count",width:120,render:(Z,X)=>S.jsxs("span",{children:[X.successCount," / ",X.totalFiles," items"]})},{title:"Status",dataIndex:"status",key:"status",width:100,render:Z=>Z==="reverted"?S.jsx(mn,{color:"warning",children:"Reverted"}):S.jsx(mn,{color:"success",children:"Completed"})},{title:"Action",key:"action",width:90,render:(Z,X)=>X.status!=="reverted"&&S.jsx(Xe,{size:"small",danger:!0,icon:S.jsx(qN,{}),onClick:()=>Q(X),children:"Undo"})}],pagination:{pageSize:10}})})}]}),S.jsx(hr,{title:"Browse Directory",open:D,onCancel:()=>H(!1),footer:null,width:600,children:S.jsxs(Pa,{spinning:q,children:[S.jsx("div",{style:{marginBottom:12},children:S.jsx(gn,{value:z,onChange:Z=>_(Z.target.value),onPressEnter:()=>te(z),addonAfter:S.jsx(Xe,{size:"small",type:"text",onClick:()=>te(z),children:"Go"})})}),F&&S.jsxs("div",{children:[S.jsx("div",{style:{marginBottom:8},children:S.jsx(Xe,{size:"small",onClick:()=>te(F.parentPath),disabled:F.currentPath===F.parentPath,children:"⬅ Parent Directory"})}),S.jsx("div",{style:{maxHeight:300,overflowY:"auto",border:"1px solid #f0f0f0",borderRadius:4},children:F.subdirectories.length===0?S.jsx("div",{style:{padding:16,textAlign:"center",color:"#999"},children:"No subdirectories found"}):F.subdirectories.map(Z=>S.jsxs("div",{style:{padding:"8px 12px",borderBottom:"1px solid #f5f5f5",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"},onClick:()=>te(Z.fullPath),children:[S.jsxs("span",{children:[S.jsx(Kc,{style:{color:"#1890ff",marginRight:8}}),Z.name]}),S.jsx(Xe,{size:"small",type:"link",onClick:X=>{X.stopPropagation(),D&&(n==="organize"&&l(Z.fullPath),H(!1))},children:"Select Folder"})]},Z.fullPath))}),S.jsx("div",{style:{marginTop:12,textAlign:"right"},children:S.jsxs(Xe,{type:"primary",onClick:()=>{l(F.currentPath),H(!1)},children:["Confirm Path: ",F.currentPath]})})]})]})})]})}const{Content:sse,Sider:cse}=hl,{Title:m3,Text:v3}=lr,use=()=>{const t=(window.location.hash||"#/launcher").slice(2);return t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","postman","bookmark-sync","file-organizer","settings","errors"].includes(t)?{page:t,pluginId:null}:{page:"launcher",pluginId:null}};function dse(){const{message:e}=Da.useApp(),t=use(),[n,r]=i.useState([]),[a,l]=i.useState(new Set),[c,u]=i.useState({}),[d,f]=i.useState(!0),[v,g]=i.useState([]),[p,b]=i.useState([]),[C,x]=i.useState(!0),[h,$]=i.useState(t.page),[w,E]=i.useState(t.pluginId?{id:t.pluginId,name:"Plugin"}:null),[j,O]=i.useState(null),[I,R]=i.useState(""),M=async()=>{try{const[k,D]=await Promise.all([Cr.list(),Cr.running()]);r(k),Array.isArray(D)?(l(new Set(D)),u({})):(l(new Set((D==null?void 0:D.running)||[])),u((D==null?void 0:D.errorCounts)||{}))}catch(k){e.error(k.message)}finally{f(!1)}},N=async k=>{if(k){R("Loading plugin…");try{R(k.view?await(await fetch(k.view)).text():"This plugin does not provide a view yet.")}catch{R("Failed to load the plugin view.")}}};i.useEffect(()=>{Promise.all([M(),Bie.list().then(g),Ec.list().then(b),Gr.status().then(k=>{k&&typeof k.isMac=="boolean"&&x(k.isMac)})]).catch(k=>e.error(k.message))},[]),i.useEffect(()=>{const k=()=>{const H=(window.location.hash||"#/launcher").slice(2);if(H.startsWith("plugin:")){const z=H.slice(7),_=v.find(F=>F.id===z);_?(O(null),$("plugin"),E(_),N(_)):v.length>0&&(window.location.hash="#/launcher")}else if(H.startsWith("static:")){const z=H.slice(7),_=p.find(F=>String(F.id)===String(z));_?(E(null),$("static-page"),O(_)):p.length>0&&(window.location.hash="#/launcher")}else H.startsWith("logs/")?(E(null),O(null),$("logs")):["todo-list/archived","todo-archived"].includes(H)?(E(null),O(null),$("todo-archived")):["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","postman","bookmark-sync","file-organizer","settings","errors"].includes(H)?(E(null),O(null),$(H)):window.location.hash="#/launcher"};return window.addEventListener("hashchange",k),v.length>0||p.length>0||window.location.hash?k():window.location.hash="#/launcher",()=>window.removeEventListener("hashchange",k)},[v,p]),i.useEffect(()=>{const k=H=>{var z;(H.error||H.message)&&Nd.log({source:"Frontend",message:H.message||"Uncaught JavaScript Error",details:((z=H.error)==null?void 0:z.stack)||`${H.filename}:${H.lineno}:${H.colno}`}).catch(()=>{})},D=H=>{var z,_;Nd.log({source:"Frontend (Promise)",message:((z=H.reason)==null?void 0:z.message)||String(H.reason||"Unhandled Promise Rejection"),details:((_=H.reason)==null?void 0:_.stack)||String(H.reason)}).catch(()=>{})};return window.addEventListener("error",k),window.addEventListener("unhandledrejection",D),()=>{window.removeEventListener("error",k),window.removeEventListener("unhandledrejection",D)}},[]),i.useEffect(()=>{const k=D=>{(D.metaKey||D.ctrlKey)&&D.shiftKey&&(D.key==="r"||D.key==="R"||D.code==="KeyR")&&(D.preventDefault(),D.stopPropagation())};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[]),i.useEffect(()=>{if(h!=="launcher"&&h!=="ports")return;const k=setInterval(M,2e3);return()=>clearInterval(k)},[h]);const P=i.useMemo(()=>[{key:"launcher",icon:S.jsx(yl,{}),label:"Launcher"},{key:"ports",icon:S.jsx(jie,{}),label:"Port Diagnostic"},{key:"image-compress",icon:S.jsx(n1,{}),label:"Image compression"},...C?[{key:"clipboard",icon:S.jsx(Zo,{}),label:"Clipboard history"}]:[],{key:"pr-review",icon:S.jsx(WN,{}),label:"PR Review"},{key:"jira-filters",icon:S.jsx(goe,{}),label:"Jira Filters"},{key:"todo-list",icon:S.jsx(HC,{}),label:"To-Do List"},{key:"postman",icon:S.jsx(VC,{}),label:"Postman"},{key:"bookmark-sync",icon:S.jsx(o1,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:S.jsx(Kc,{}),label:"Folder Organizer"},...p.map(k=>({key:`static:${k.id}`,icon:S.jsx($f,{}),label:k.name}))],[p,C]),B=({key:k})=>{window.location.hash=`#/${k}`},L=w?`plugin:${w.id}`:j?`static:${j.id}`:h==="todo-archived"?"todo-list":h;return h==="logs"?S.jsx(Hle,{}):S.jsxs(hl,{className:"workbench",role:"application",children:[S.jsxs(cse,{className:"sidebar",width:240,children:[S.jsxs("div",{className:"brand",children:[S.jsx("span",{children:"✦"})," DevBuddy ",S.jsxs("span",{style:{fontSize:"11px",fontWeight:"400",color:"#727b94",marginLeft:"6px",letterSpacing:"normal",verticalAlign:"middle"},children:["v",Aie.version]})]}),S.jsx(gl,{theme:"dark",mode:"inline",selectedKeys:[L],items:P,onClick:B}),S.jsx("div",{className:"sidebar-bottom",children:S.jsxs("div",{className:"sidebar-bottom-inner",children:[S.jsx(gl,{theme:"dark",mode:"inline",selectedKeys:w||j?[]:[h],items:[{key:"settings",icon:S.jsx(UN,{}),label:"Settings"}],onClick:B}),S.jsx(An,{title:"Error Logs (Recent 100 Errors)",placement:"right",children:S.jsx(Xe,{type:h==="errors"?"primary":"text",icon:S.jsx(HN,{}),size:"small",className:`sidebar-error-btn ${h==="errors"?"is-active":""}`,onClick:()=>{window.location.hash="#/errors"}})})]})})]}),S.jsx(hl,{children:S.jsx(sse,{className:`page ${["static-page","postman"].includes(h)?"is-static-page":""}`,children:w?S.jsxs(S.Fragment,{children:[S.jsx(v3,{type:"secondary",children:"PLUGIN"}),S.jsx(m3,{level:2,children:w.name}),S.jsx(wn,{children:S.jsx("div",{dangerouslySetInnerHTML:{__html:I}})})]}):h==="static-page"&&j?S.jsx("div",{className:"static-page-container",children:S.jsx("iframe",{src:j.url,title:j.name,className:"static-page-iframe"})}):h==="image-compress"?S.jsx(gle,{}):h==="clipboard"?C?S.jsx(Gie,{}):S.jsxs(wn,{style:{textAlign:"center",margin:"60px auto",maxWidth:500,borderRadius:10},children:[S.jsx(m3,{level:4,children:"Clipboard History Unavailable on Windows"}),S.jsx(v3,{type:"secondary",children:"Clipboard History monitoring relies on macOS system APIs and is currently only supported on macOS."})]}):h==="ports"?S.jsx(ule,{refreshLaunchers:M}):h==="pr-review"?S.jsx(ble,{}):h==="jira-filters"?S.jsx(Ole,{}):h==="todo-list"?S.jsx(Ple,{}):h==="todo-archived"?S.jsx(Ble,{}):h==="postman"?S.jsx(nse,{}):h==="bookmark-sync"?S.jsx(rse,{}):h==="file-organizer"?S.jsx(lse,{}):h==="errors"?S.jsx(Wle,{}):h==="settings"?S.jsx(dle,{onStaticPagesChange:()=>Ec.list().then(b)}):S.jsx(lle,{launchers:n,running:a,errorCounts:c,refresh:M,loading:d})})})]})}function fse(){return S.jsx(Da,{children:S.jsx(dse,{})})}fP.createRoot(document.getElementById("app")).render(S.jsx(ve.StrictMode,{children:S.jsx(fse,{})}));
|