@portqueue/dashboard 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-B_tJTv1S.js +386 -0
- package/dist/client/assets/index-DusJ4jAZ.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/index.cjs +22 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +22 -29
- package/dist/index.mjs.map +1 -1
- package/dist/server/assets.d.ts +15 -2
- package/package.json +5 -5
- package/dist/client/assets/index-DORFyd1J.js +0 -111
- package/dist/client/assets/index-rcTsR9lz.css +0 -1
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
var bL=Object.defineProperty;var dE=e=>{throw TypeError(e)};var vL=(e,t,n)=>t in e?bL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>vL(e,typeof t!="symbol"?t+"":t,n),Hy=(e,t,n)=>t.has(e)||dE("Cannot "+n);var ye=(e,t,n)=>(Hy(e,t,"read from private field"),n?n.call(e):t.get(e)),Ht=(e,t,n)=>t.has(e)?dE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),bt=(e,t,n,r)=>(Hy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ln=(e,t,n)=>(Hy(e,t,"access private method"),n);var mp=(e,t,n,r)=>({set _(o){bt(e,t,o,n)},get _(){return ye(e,t,r)}});function xL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jy={exports:{}},Ru={},Wy={exports:{}},on={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 fE;function CL(){if(fE)return on;fE=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function h(B){return B===null||typeof B!="object"?null:(B=m&&B[m]||B["@@iterator"],typeof B=="function"?B:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function $(B,D,K){this.props=B,this.context=D,this.refs=v,this.updater=K||y}$.prototype.isReactComponent={},$.prototype.setState=function(B,D){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,D,"setState")},$.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function x(){}x.prototype=$.prototype;function E(B,D,K){this.props=B,this.context=D,this.refs=v,this.updater=K||y}var C=E.prototype=new x;C.constructor=E,b(C,$.prototype),C.isPureReactComponent=!0;var w=Array.isArray,R=Object.prototype.hasOwnProperty,P={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function T(B,D,K){var Q,Z={},X=null,J=null;if(D!=null)for(Q in D.ref!==void 0&&(J=D.ref),D.key!==void 0&&(X=""+D.key),D)R.call(D,Q)&&!I.hasOwnProperty(Q)&&(Z[Q]=D[Q]);var ne=arguments.length-2;if(ne===1)Z.children=K;else if(1<ne){for(var oe=Array(ne),ae=0;ae<ne;ae++)oe[ae]=arguments[ae+2];Z.children=oe}if(B&&B.defaultProps)for(Q in ne=B.defaultProps,ne)Z[Q]===void 0&&(Z[Q]=ne[Q]);return{$$typeof:e,type:B,key:X,ref:J,props:Z,_owner:P.current}}function L(B,D){return{$$typeof:e,type:B.type,key:D,ref:B.ref,props:B.props,_owner:B._owner}}function z(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function M(B){var D={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(K){return D[K]})}var O=/\/+/g;function _(B,D){return typeof B=="object"&&B!==null&&B.key!=null?M(""+B.key):D.toString(36)}function F(B,D,K,Q,Z){var X=typeof B;(X==="undefined"||X==="boolean")&&(B=null);var J=!1;if(B===null)J=!0;else switch(X){case"string":case"number":J=!0;break;case"object":switch(B.$$typeof){case e:case t:J=!0}}if(J)return J=B,Z=Z(J),B=Q===""?"."+_(J,0):Q,w(Z)?(K="",B!=null&&(K=B.replace(O,"$&/")+"/"),F(Z,D,K,"",function(ae){return ae})):Z!=null&&(z(Z)&&(Z=L(Z,K+(!Z.key||J&&J.key===Z.key?"":(""+Z.key).replace(O,"$&/")+"/")+B)),D.push(Z)),1;if(J=0,Q=Q===""?".":Q+":",w(B))for(var ne=0;ne<B.length;ne++){X=B[ne];var oe=Q+_(X,ne);J+=F(X,D,K,oe,Z)}else if(oe=h(B),typeof oe=="function")for(B=oe.call(B),ne=0;!(X=B.next()).done;)X=X.value,oe=Q+_(X,ne++),J+=F(X,D,K,oe,Z);else if(X==="object")throw D=String(B),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return J}function W(B,D,K){if(B==null)return B;var Q=[],Z=0;return F(B,Q,"","",function(X){return D.call(K,X,Z++)}),Q}function q(B){if(B._status===-1){var D=B._result;D=D(),D.then(function(K){(B._status===0||B._status===-1)&&(B._status=1,B._result=K)},function(K){(B._status===0||B._status===-1)&&(B._status=2,B._result=K)}),B._status===-1&&(B._status=0,B._result=D)}if(B._status===1)return B._result.default;throw B._result}var G={current:null},j={transition:null},H={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:j,ReactCurrentOwner:P};function k(){throw Error("act(...) is not supported in production builds of React.")}return on.Children={map:W,forEach:function(B,D,K){W(B,function(){D.apply(this,arguments)},K)},count:function(B){var D=0;return W(B,function(){D++}),D},toArray:function(B){return W(B,function(D){return D})||[]},only:function(B){if(!z(B))throw Error("React.Children.only expected to receive a single React element child.");return B}},on.Component=$,on.Fragment=n,on.Profiler=o,on.PureComponent=E,on.StrictMode=r,on.Suspense=f,on.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,on.act=k,on.cloneElement=function(B,D,K){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var Q=b({},B.props),Z=B.key,X=B.ref,J=B._owner;if(D!=null){if(D.ref!==void 0&&(X=D.ref,J=P.current),D.key!==void 0&&(Z=""+D.key),B.type&&B.type.defaultProps)var ne=B.type.defaultProps;for(oe in D)R.call(D,oe)&&!I.hasOwnProperty(oe)&&(Q[oe]=D[oe]===void 0&&ne!==void 0?ne[oe]:D[oe])}var oe=arguments.length-2;if(oe===1)Q.children=K;else if(1<oe){ne=Array(oe);for(var ae=0;ae<oe;ae++)ne[ae]=arguments[ae+2];Q.children=ne}return{$$typeof:e,type:B.type,key:Z,ref:X,props:Q,_owner:J}},on.createContext=function(B){return B={$$typeof:i,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},B.Provider={$$typeof:s,_context:B},B.Consumer=B},on.createElement=T,on.createFactory=function(B){var D=T.bind(null,B);return D.type=B,D},on.createRef=function(){return{current:null}},on.forwardRef=function(B){return{$$typeof:c,render:B}},on.isValidElement=z,on.lazy=function(B){return{$$typeof:p,_payload:{_status:-1,_result:B},_init:q}},on.memo=function(B,D){return{$$typeof:d,type:B,compare:D===void 0?null:D}},on.startTransition=function(B){var D=j.transition;j.transition={};try{B()}finally{j.transition=D}},on.unstable_act=k,on.useCallback=function(B,D){return G.current.useCallback(B,D)},on.useContext=function(B){return G.current.useContext(B)},on.useDebugValue=function(){},on.useDeferredValue=function(B){return G.current.useDeferredValue(B)},on.useEffect=function(B,D){return G.current.useEffect(B,D)},on.useId=function(){return G.current.useId()},on.useImperativeHandle=function(B,D,K){return G.current.useImperativeHandle(B,D,K)},on.useInsertionEffect=function(B,D){return G.current.useInsertionEffect(B,D)},on.useLayoutEffect=function(B,D){return G.current.useLayoutEffect(B,D)},on.useMemo=function(B,D){return G.current.useMemo(B,D)},on.useReducer=function(B,D,K){return G.current.useReducer(B,D,K)},on.useRef=function(B){return G.current.useRef(B)},on.useState=function(B){return G.current.useState(B)},on.useSyncExternalStore=function(B,D,K){return G.current.useSyncExternalStore(B,D,K)},on.useTransition=function(){return G.current.useTransition()},on.version="18.3.1",on}var pE;function XC(){return pE||(pE=1,Wy.exports=CL()),Wy.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 mE;function SL(){if(mE)return Ru;mE=1;var e=XC(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(c,f,d){var p,m={},h=null,y=null;d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),f.ref!==void 0&&(y=f.ref);for(p in f)r.call(f,p)&&!s.hasOwnProperty(p)&&(m[p]=f[p]);if(c&&c.defaultProps)for(p in f=c.defaultProps,f)m[p]===void 0&&(m[p]=f[p]);return{$$typeof:t,type:c,key:h,ref:y,props:m,_owner:o.current}}return Ru.Fragment=n,Ru.jsx=i,Ru.jsxs=i,Ru}var hE;function $L(){return hE||(hE=1,jy.exports=SL()),jy.exports}var V=$L(),a=XC();const ee=lh(a),wL=xL({__proto__:null,default:ee},[a]);var hp={},Vy={exports:{}},uo={},Ky={exports:{}},Uy={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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 gE;function EL(){return gE||(gE=1,(function(e){function t(j,H){var k=j.length;j.push(H);e:for(;0<k;){var B=k-1>>>1,D=j[B];if(0<o(D,H))j[B]=H,j[k]=D,k=B;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var H=j[0],k=j.pop();if(k!==H){j[0]=k;e:for(var B=0,D=j.length,K=D>>>1;B<K;){var Q=2*(B+1)-1,Z=j[Q],X=Q+1,J=j[X];if(0>o(Z,k))X<D&&0>o(J,Z)?(j[B]=J,j[X]=k,B=X):(j[B]=Z,j[Q]=k,B=Q);else if(X<D&&0>o(J,k))j[B]=J,j[X]=k,B=X;else break e}}return H}function o(j,H){var k=j.sortIndex-H.sortIndex;return k!==0?k:j.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var f=[],d=[],p=1,m=null,h=3,y=!1,b=!1,v=!1,$=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(j){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=j)r(d),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(d)}}function w(j){if(v=!1,C(j),!b)if(n(f)!==null)b=!0,q(R);else{var H=n(d);H!==null&&G(w,H.startTime-j)}}function R(j,H){b=!1,v&&(v=!1,x(T),T=-1),y=!0;var k=h;try{for(C(H),m=n(f);m!==null&&(!(m.expirationTime>H)||j&&!M());){var B=m.callback;if(typeof B=="function"){m.callback=null,h=m.priorityLevel;var D=B(m.expirationTime<=H);H=e.unstable_now(),typeof D=="function"?m.callback=D:m===n(f)&&r(f),C(H)}else r(f);m=n(f)}if(m!==null)var K=!0;else{var Q=n(d);Q!==null&&G(w,Q.startTime-H),K=!1}return K}finally{m=null,h=k,y=!1}}var P=!1,I=null,T=-1,L=5,z=-1;function M(){return!(e.unstable_now()-z<L)}function O(){if(I!==null){var j=e.unstable_now();z=j;var H=!0;try{H=I(!0,j)}finally{H?_():(P=!1,I=null)}}else P=!1}var _;if(typeof E=="function")_=function(){E(O)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=O,_=function(){W.postMessage(null)}}else _=function(){$(O,0)};function q(j){I=j,P||(P=!0,_())}function G(j,H){T=$(function(){j(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,q(R))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var H=3;break;default:H=h}var k=h;h=H;try{return j()}finally{h=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,H){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var k=h;h=j;try{return H()}finally{h=k}},e.unstable_scheduleCallback=function(j,H,k){var B=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?B+k:B):k=B,j){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=k+D,j={id:p++,callback:H,priorityLevel:j,startTime:k,expirationTime:D,sortIndex:-1},k>B?(j.sortIndex=k,t(d,j),n(f)===null&&j===n(d)&&(v?(x(T),T=-1):v=!0,G(w,k-B))):(j.sortIndex=D,t(f,j),b||y||(b=!0,q(R))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var H=h;return function(){var k=h;h=H;try{return j.apply(this,arguments)}finally{h=k}}}})(Uy)),Uy}var yE;function RL(){return yE||(yE=1,Ky.exports=EL()),Ky.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 bE;function IL(){if(bE)return uo;bE=1;var e=XC(),t=RL();function n(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,g=1;g<arguments.length;g++)u+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function s(l,u){i(l,u),i(l+"Capture",u)}function i(l,u){for(o[l]=u,l=0;l<u.length;l++)r.add(u[l])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},m={};function h(l){return f.call(m,l)?!0:f.call(p,l)?!1:d.test(l)?m[l]=!0:(p[l]=!0,!1)}function y(l,u,g,S){if(g!==null&&g.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return S?!1:g!==null?!g.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function b(l,u,g,S){if(u===null||typeof u>"u"||y(l,u,g,S))return!0;if(S)return!1;if(g!==null)switch(g.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function v(l,u,g,S,N,A,Y){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=S,this.attributeNamespace=N,this.mustUseProperty=g,this.propertyName=l,this.type=u,this.sanitizeURL=A,this.removeEmptyString=Y}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){$[l]=new v(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];$[u]=new v(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){$[l]=new v(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){$[l]=new v(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){$[l]=new v(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){$[l]=new v(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){$[l]=new v(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){$[l]=new v(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){$[l]=new v(l,5,!1,l.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function E(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var u=l.replace(x,E);$[u]=new v(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(x,E);$[u]=new v(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(x,E);$[u]=new v(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){$[l]=new v(l,1,!1,l.toLowerCase(),null,!1,!1)}),$.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){$[l]=new v(l,1,!1,l.toLowerCase(),null,!0,!0)});function C(l,u,g,S){var N=$.hasOwnProperty(u)?$[u]:null;(N!==null?N.type!==0:S||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(b(u,g,N,S)&&(g=null),S||N===null?h(u)&&(g===null?l.removeAttribute(u):l.setAttribute(u,""+g)):N.mustUseProperty?l[N.propertyName]=g===null?N.type===3?!1:"":g:(u=N.attributeName,S=N.attributeNamespace,g===null?l.removeAttribute(u):(N=N.type,g=N===3||N===4&&g===!0?"":""+g,S?l.setAttributeNS(S,u,g):l.setAttribute(u,g))))}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),P=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),M=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),j=Symbol.iterator;function H(l){return l===null||typeof l!="object"?null:(l=j&&l[j]||l["@@iterator"],typeof l=="function"?l:null)}var k=Object.assign,B;function D(l){if(B===void 0)try{throw Error()}catch(g){var u=g.stack.trim().match(/\n( *(at )?)/);B=u&&u[1]||""}return`
|
|
34
|
+
`+B+l}var K=!1;function Q(l,u){if(!l||K)return"";K=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Me){var S=Me}Reflect.construct(l,[],u)}else{try{u.call()}catch(Me){S=Me}l.call(u.prototype)}else{try{throw Error()}catch(Me){S=Me}l()}}catch(Me){if(Me&&S&&typeof Me.stack=="string"){for(var N=Me.stack.split(`
|
|
35
|
+
`),A=S.stack.split(`
|
|
36
|
+
`),Y=N.length-1,ue=A.length-1;1<=Y&&0<=ue&&N[Y]!==A[ue];)ue--;for(;1<=Y&&0<=ue;Y--,ue--)if(N[Y]!==A[ue]){if(Y!==1||ue!==1)do if(Y--,ue--,0>ue||N[Y]!==A[ue]){var he=`
|
|
37
|
+
`+N[Y].replace(" at new "," at ");return l.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",l.displayName)),he}while(1<=Y&&0<=ue);break}}}finally{K=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?D(l):""}function Z(l){switch(l.tag){case 5:return D(l.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return l=Q(l.type,!1),l;case 11:return l=Q(l.type.render,!1),l;case 1:return l=Q(l.type,!0),l;default:return""}}function X(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case I:return"Fragment";case P:return"Portal";case L:return"Profiler";case T:return"StrictMode";case _:return"Suspense";case F:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case M:return(l.displayName||"Context")+".Consumer";case z:return(l._context.displayName||"Context")+".Provider";case O:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case W:return u=l.displayName||null,u!==null?u:X(l.type)||"Memo";case q:u=l._payload,l=l._init;try{return X(l(u))}catch{}}return null}function J(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(u);case 8:return u===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ne(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function oe(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function ae(l){var u=oe(l)?"checked":"value",g=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),S=""+l[u];if(!l.hasOwnProperty(u)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var N=g.get,A=g.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return N.call(this)},set:function(Y){S=""+Y,A.call(this,Y)}}),Object.defineProperty(l,u,{enumerable:g.enumerable}),{getValue:function(){return S},setValue:function(Y){S=""+Y},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function pe(l){l._valueTracker||(l._valueTracker=ae(l))}function fe(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var g=u.getValue(),S="";return l&&(S=oe(l)?l.checked?"true":"false":l.value),l=S,l!==g?(u.setValue(l),!0):!1}function le(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function ie(l,u){var g=u.checked;return k({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??l._wrapperState.initialChecked})}function re(l,u){var g=u.defaultValue==null?"":u.defaultValue,S=u.checked!=null?u.checked:u.defaultChecked;g=ne(u.value!=null?u.value:g),l._wrapperState={initialChecked:S,initialValue:g,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function de(l,u){u=u.checked,u!=null&&C(l,"checked",u,!1)}function ge(l,u){de(l,u);var g=ne(u.value),S=u.type;if(g!=null)S==="number"?(g===0&&l.value===""||l.value!=g)&&(l.value=""+g):l.value!==""+g&&(l.value=""+g);else if(S==="submit"||S==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?ce(l,u.type,g):u.hasOwnProperty("defaultValue")&&ce(l,u.type,ne(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function se(l,u,g){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var S=u.type;if(!(S!=="submit"&&S!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,g||u===l.value||(l.value=u),l.defaultValue=u}g=l.name,g!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,g!==""&&(l.name=g)}function ce(l,u,g){(u!=="number"||le(l.ownerDocument)!==l)&&(g==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+g&&(l.defaultValue=""+g))}var xe=Array.isArray;function Ee(l,u,g,S){if(l=l.options,u){u={};for(var N=0;N<g.length;N++)u["$"+g[N]]=!0;for(g=0;g<l.length;g++)N=u.hasOwnProperty("$"+l[g].value),l[g].selected!==N&&(l[g].selected=N),N&&S&&(l[g].defaultSelected=!0)}else{for(g=""+ne(g),u=null,N=0;N<l.length;N++){if(l[N].value===g){l[N].selected=!0,S&&(l[N].defaultSelected=!0);return}u!==null||l[N].disabled||(u=l[N])}u!==null&&(u.selected=!0)}}function Se(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(n(91));return k({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function Fe(l,u){var g=u.value;if(g==null){if(g=u.children,u=u.defaultValue,g!=null){if(u!=null)throw Error(n(92));if(xe(g)){if(1<g.length)throw Error(n(93));g=g[0]}u=g}u==null&&(u=""),g=u}l._wrapperState={initialValue:ne(g)}}function qe(l,u){var g=ne(u.value),S=ne(u.defaultValue);g!=null&&(g=""+g,g!==l.value&&(l.value=g),u.defaultValue==null&&l.defaultValue!==g&&(l.defaultValue=g)),S!=null&&(l.defaultValue=""+S)}function Ne(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function _e(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ie(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?_e(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var me,Le=(function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,g,S,N){MSApp.execUnsafeLocalFunction(function(){return l(u,g,S,N)})}:l})(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(me=me||document.createElement("div"),me.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=me.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function He(l,u){if(u){var g=l.firstChild;if(g&&g===l.lastChild&&g.nodeType===3){g.nodeValue=u;return}}l.textContent=u}var Ae={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oe=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(l){Oe.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Ae[u]=Ae[l]})});function st(l,u,g){return u==null||typeof u=="boolean"||u===""?"":g||typeof u!="number"||u===0||Ae.hasOwnProperty(l)&&Ae[l]?(""+u).trim():u+"px"}function je(l,u){l=l.style;for(var g in u)if(u.hasOwnProperty(g)){var S=g.indexOf("--")===0,N=st(g,u[g],S);g==="float"&&(g="cssFloat"),S?l.setProperty(g,N):l[g]=N}}var Je=k({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ze(l,u){if(u){if(Je[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Ve(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 Ke=null;function ot(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Ge=null,dt=null,xt=null;function St(l){if(l=du(l)){if(typeof Ge!="function")throw Error(n(280));var u=l.stateNode;u&&(u=Nf(u),Ge(l.stateNode,l.type,u))}}function Lt(l){dt?xt?xt.push(l):xt=[l]:dt=l}function gt(){if(dt){var l=dt,u=xt;if(xt=dt=null,St(l),u)for(l=0;l<u.length;l++)St(u[l])}}function mt(l,u){return l(u)}function De(){}var Ze=!1;function Be(l,u,g){if(Ze)return l(u,g);Ze=!0;try{return mt(l,u,g)}finally{Ze=!1,(dt!==null||xt!==null)&&(De(),gt())}}function we(l,u){var g=l.stateNode;if(g===null)return null;var S=Nf(g);if(S===null)return null;g=S[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(S=!S.disabled)||(l=l.type,S=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!S;break e;default:l=!1}if(l)return null;if(g&&typeof g!="function")throw Error(n(231,u,typeof g));return g}var ke=!1;if(c)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){ke=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{ke=!1}function Xe(l,u,g,S,N,A,Y,ue,he){var Me=Array.prototype.slice.call(arguments,3);try{u.apply(g,Me)}catch(et){this.onError(et)}}var Ue=!1,nt=null,zt=!1,ht=null,Te={onError:function(l){Ue=!0,nt=l}};function lt(l,u,g,S,N,A,Y,ue,he){Ue=!1,nt=null,Xe.apply(Te,arguments)}function at(l,u,g,S,N,A,Y,ue,he){if(lt.apply(this,arguments),Ue){if(Ue){var Me=nt;Ue=!1,nt=null}else throw Error(n(198));zt||(zt=!0,ht=Me)}}function Vt(l){var u=l,g=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(g=u.return),l=u.return;while(l)}return u.tag===3?g:null}function Kt(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function yn(l){if(Vt(l)!==l)throw Error(n(188))}function At(l){var u=l.alternate;if(!u){if(u=Vt(l),u===null)throw Error(n(188));return u!==l?null:l}for(var g=l,S=u;;){var N=g.return;if(N===null)break;var A=N.alternate;if(A===null){if(S=N.return,S!==null){g=S;continue}break}if(N.child===A.child){for(A=N.child;A;){if(A===g)return yn(N),l;if(A===S)return yn(N),u;A=A.sibling}throw Error(n(188))}if(g.return!==S.return)g=N,S=A;else{for(var Y=!1,ue=N.child;ue;){if(ue===g){Y=!0,g=N,S=A;break}if(ue===S){Y=!0,S=N,g=A;break}ue=ue.sibling}if(!Y){for(ue=A.child;ue;){if(ue===g){Y=!0,g=A,S=N;break}if(ue===S){Y=!0,S=A,g=N;break}ue=ue.sibling}if(!Y)throw Error(n(189))}}if(g.alternate!==S)throw Error(n(190))}if(g.tag!==3)throw Error(n(188));return g.stateNode.current===g?l:u}function Gt(l){return l=At(l),l!==null?Yt(l):null}function Yt(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=Yt(l);if(u!==null)return u;l=l.sibling}return null}var ct=t.unstable_scheduleCallback,Nt=t.unstable_cancelCallback,tn=t.unstable_shouldYield,hn=t.unstable_requestPaint,It=t.unstable_now,nn=t.unstable_getCurrentPriorityLevel,In=t.unstable_ImmediatePriority,Ln=t.unstable_UserBlockingPriority,An=t.unstable_NormalPriority,oo=t.unstable_LowPriority,Br=t.unstable_IdlePriority,dr=null,jn=null;function Co(l){if(jn&&typeof jn.onCommitFiberRoot=="function")try{jn.onCommitFiberRoot(dr,l,void 0,(l.current.flags&128)===128)}catch{}}var We=Math.clz32?Math.clz32:en,Ye=Math.log,Dt=Math.LN2;function en(l){return l>>>=0,l===0?32:31-(Ye(l)/Dt|0)|0}var Pn=64,Wn=4194304;function Vn(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function _r(l,u){var g=l.pendingLanes;if(g===0)return 0;var S=0,N=l.suspendedLanes,A=l.pingedLanes,Y=g&268435455;if(Y!==0){var ue=Y&~N;ue!==0?S=Vn(ue):(A&=Y,A!==0&&(S=Vn(A)))}else Y=g&~N,Y!==0?S=Vn(Y):A!==0&&(S=Vn(A));if(S===0)return 0;if(u!==0&&u!==S&&(u&N)===0&&(N=S&-S,A=u&-u,N>=A||N===16&&(A&4194240)!==0))return u;if((S&4)!==0&&(S|=g&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=S;0<u;)g=31-We(u),N=1<<g,S|=l[g],u&=~N;return S}function Xr(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vs(l,u){for(var g=l.suspendedLanes,S=l.pingedLanes,N=l.expirationTimes,A=l.pendingLanes;0<A;){var Y=31-We(A),ue=1<<Y,he=N[Y];he===-1?((ue&g)===0||(ue&S)!==0)&&(N[Y]=Xr(ue,u)):he<=u&&(l.expiredLanes|=ue),A&=~ue}}function la(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function pt(){var l=Pn;return Pn<<=1,(Pn&4194240)===0&&(Pn=64),l}function pn(l){for(var u=[],g=0;31>g;g++)u.push(l);return u}function xs(l,u,g){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-We(u),l[u]=g}function ug(l,u){var g=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var S=l.eventTimes;for(l=l.expirationTimes;0<g;){var N=31-We(g),A=1<<N;u[N]=0,S[N]=-1,l[N]=-1,g&=~A}}function bl(l,u){var g=l.entangledLanes|=u;for(l=l.entanglements;g;){var S=31-We(g),N=1<<S;N&u|l[S]&u&&(l[S]|=u),g&=~N}}var bn=0;function pf(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var V$,dg,K$,U$,q$,fg=!1,mf=[],li=null,ci=null,ui=null,Xc=new Map,Yc=new Map,di=[],k3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function G$(l,u){switch(l){case"focusin":case"focusout":li=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":ui=null;break;case"pointerover":case"pointerout":Xc.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yc.delete(u.pointerId)}}function Qc(l,u,g,S,N,A){return l===null||l.nativeEvent!==A?(l={blockedOn:u,domEventName:g,eventSystemFlags:S,nativeEvent:A,targetContainers:[N]},u!==null&&(u=du(u),u!==null&&dg(u)),l):(l.eventSystemFlags|=S,u=l.targetContainers,N!==null&&u.indexOf(N)===-1&&u.push(N),l)}function H3(l,u,g,S,N){switch(u){case"focusin":return li=Qc(li,l,u,g,S,N),!0;case"dragenter":return ci=Qc(ci,l,u,g,S,N),!0;case"mouseover":return ui=Qc(ui,l,u,g,S,N),!0;case"pointerover":var A=N.pointerId;return Xc.set(A,Qc(Xc.get(A)||null,l,u,g,S,N)),!0;case"gotpointercapture":return A=N.pointerId,Yc.set(A,Qc(Yc.get(A)||null,l,u,g,S,N)),!0}return!1}function X$(l){var u=ca(l.target);if(u!==null){var g=Vt(u);if(g!==null){if(u=g.tag,u===13){if(u=Kt(g),u!==null){l.blockedOn=u,q$(l.priority,function(){K$(g)});return}}else if(u===3&&g.stateNode.current.memoizedState.isDehydrated){l.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}l.blockedOn=null}function hf(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var g=mg(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(g===null){g=l.nativeEvent;var S=new g.constructor(g.type,g);Ke=S,g.target.dispatchEvent(S),Ke=null}else return u=du(g),u!==null&&dg(u),l.blockedOn=g,!1;u.shift()}return!0}function Y$(l,u,g){hf(l)&&g.delete(u)}function j3(){fg=!1,li!==null&&hf(li)&&(li=null),ci!==null&&hf(ci)&&(ci=null),ui!==null&&hf(ui)&&(ui=null),Xc.forEach(Y$),Yc.forEach(Y$)}function Jc(l,u){l.blockedOn===u&&(l.blockedOn=null,fg||(fg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,j3)))}function Zc(l){function u(N){return Jc(N,l)}if(0<mf.length){Jc(mf[0],l);for(var g=1;g<mf.length;g++){var S=mf[g];S.blockedOn===l&&(S.blockedOn=null)}}for(li!==null&&Jc(li,l),ci!==null&&Jc(ci,l),ui!==null&&Jc(ui,l),Xc.forEach(u),Yc.forEach(u),g=0;g<di.length;g++)S=di[g],S.blockedOn===l&&(S.blockedOn=null);for(;0<di.length&&(g=di[0],g.blockedOn===null);)X$(g),g.blockedOn===null&&di.shift()}var vl=w.ReactCurrentBatchConfig,gf=!0;function W3(l,u,g,S){var N=bn,A=vl.transition;vl.transition=null;try{bn=1,pg(l,u,g,S)}finally{bn=N,vl.transition=A}}function V3(l,u,g,S){var N=bn,A=vl.transition;vl.transition=null;try{bn=4,pg(l,u,g,S)}finally{bn=N,vl.transition=A}}function pg(l,u,g,S){if(gf){var N=mg(l,u,g,S);if(N===null)Mg(l,u,S,yf,g),G$(l,S);else if(H3(N,l,u,g,S))S.stopPropagation();else if(G$(l,S),u&4&&-1<k3.indexOf(l)){for(;N!==null;){var A=du(N);if(A!==null&&V$(A),A=mg(l,u,g,S),A===null&&Mg(l,u,S,yf,g),A===N)break;N=A}N!==null&&S.stopPropagation()}else Mg(l,u,S,null,g)}}var yf=null;function mg(l,u,g,S){if(yf=null,l=ot(S),l=ca(l),l!==null)if(u=Vt(l),u===null)l=null;else if(g=u.tag,g===13){if(l=Kt(u),l!==null)return l;l=null}else if(g===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return yf=l,null}function Q$(l){switch(l){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nn()){case In:return 1;case Ln:return 4;case An:case oo:return 16;case Br:return 536870912;default:return 16}default:return 16}}var fi=null,hg=null,bf=null;function J$(){if(bf)return bf;var l,u=hg,g=u.length,S,N="value"in fi?fi.value:fi.textContent,A=N.length;for(l=0;l<g&&u[l]===N[l];l++);var Y=g-l;for(S=1;S<=Y&&u[g-S]===N[A-S];S++);return bf=N.slice(l,1<S?1-S:void 0)}function vf(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function xf(){return!0}function Z$(){return!1}function So(l){function u(g,S,N,A,Y){this._reactName=g,this._targetInst=N,this.type=S,this.nativeEvent=A,this.target=Y,this.currentTarget=null;for(var ue in l)l.hasOwnProperty(ue)&&(g=l[ue],this[ue]=g?g(A):A[ue]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?xf:Z$,this.isPropagationStopped=Z$,this}return k(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=xf)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=xf)},persist:function(){},isPersistent:xf}),u}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gg=So(xl),eu=k({},xl,{view:0,detail:0}),K3=So(eu),yg,bg,tu,Cf=k({},eu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xg,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==tu&&(tu&&l.type==="mousemove"?(yg=l.screenX-tu.screenX,bg=l.screenY-tu.screenY):bg=yg=0,tu=l),yg)},movementY:function(l){return"movementY"in l?l.movementY:bg}}),ew=So(Cf),U3=k({},Cf,{dataTransfer:0}),q3=So(U3),G3=k({},eu,{relatedTarget:0}),vg=So(G3),X3=k({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),Y3=So(X3),Q3=k({},xl,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),J3=So(Q3),Z3=k({},xl,{data:0}),tw=So(Z3),eA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tA={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"},nA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rA(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=nA[l])?!!u[l]:!1}function xg(){return rA}var oA=k({},eu,{key:function(l){if(l.key){var u=eA[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=vf(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?tA[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xg,charCode:function(l){return l.type==="keypress"?vf(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?vf(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),sA=So(oA),iA=k({},Cf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nw=So(iA),aA=k({},eu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xg}),lA=So(aA),cA=k({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),uA=So(cA),dA=k({},Cf,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),fA=So(dA),pA=[9,13,27,32],Cg=c&&"CompositionEvent"in window,nu=null;c&&"documentMode"in document&&(nu=document.documentMode);var mA=c&&"TextEvent"in window&&!nu,rw=c&&(!Cg||nu&&8<nu&&11>=nu),ow=" ",sw=!1;function iw(l,u){switch(l){case"keyup":return pA.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aw(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Cl=!1;function hA(l,u){switch(l){case"compositionend":return aw(u);case"keypress":return u.which!==32?null:(sw=!0,ow);case"textInput":return l=u.data,l===ow&&sw?null:l;default:return null}}function gA(l,u){if(Cl)return l==="compositionend"||!Cg&&iw(l,u)?(l=J$(),bf=hg=fi=null,Cl=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return rw&&u.locale!=="ko"?null:u.data;default:return null}}var yA={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 lw(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!yA[l.type]:u==="textarea"}function cw(l,u,g,S){Lt(S),u=Rf(u,"onChange"),0<u.length&&(g=new gg("onChange","change",null,g,S),l.push({event:g,listeners:u}))}var ru=null,ou=null;function bA(l){Iw(l,0)}function Sf(l){var u=Rl(l);if(fe(u))return l}function vA(l,u){if(l==="change")return u}var uw=!1;if(c){var Sg;if(c){var $g="oninput"in document;if(!$g){var dw=document.createElement("div");dw.setAttribute("oninput","return;"),$g=typeof dw.oninput=="function"}Sg=$g}else Sg=!1;uw=Sg&&(!document.documentMode||9<document.documentMode)}function fw(){ru&&(ru.detachEvent("onpropertychange",pw),ou=ru=null)}function pw(l){if(l.propertyName==="value"&&Sf(ou)){var u=[];cw(u,ou,l,ot(l)),Be(bA,u)}}function xA(l,u,g){l==="focusin"?(fw(),ru=u,ou=g,ru.attachEvent("onpropertychange",pw)):l==="focusout"&&fw()}function CA(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Sf(ou)}function SA(l,u){if(l==="click")return Sf(u)}function $A(l,u){if(l==="input"||l==="change")return Sf(u)}function wA(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var Zo=typeof Object.is=="function"?Object.is:wA;function su(l,u){if(Zo(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var g=Object.keys(l),S=Object.keys(u);if(g.length!==S.length)return!1;for(S=0;S<g.length;S++){var N=g[S];if(!f.call(u,N)||!Zo(l[N],u[N]))return!1}return!0}function mw(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function hw(l,u){var g=mw(l);l=0;for(var S;g;){if(g.nodeType===3){if(S=l+g.textContent.length,l<=u&&S>=u)return{node:g,offset:u-l};l=S}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=mw(g)}}function gw(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?gw(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function yw(){for(var l=window,u=le();u instanceof l.HTMLIFrameElement;){try{var g=typeof u.contentWindow.location.href=="string"}catch{g=!1}if(g)l=u.contentWindow;else break;u=le(l.document)}return u}function wg(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function EA(l){var u=yw(),g=l.focusedElem,S=l.selectionRange;if(u!==g&&g&&g.ownerDocument&&gw(g.ownerDocument.documentElement,g)){if(S!==null&&wg(g)){if(u=S.start,l=S.end,l===void 0&&(l=u),"selectionStart"in g)g.selectionStart=u,g.selectionEnd=Math.min(l,g.value.length);else if(l=(u=g.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var N=g.textContent.length,A=Math.min(S.start,N);S=S.end===void 0?A:Math.min(S.end,N),!l.extend&&A>S&&(N=S,S=A,A=N),N=hw(g,A);var Y=hw(g,S);N&&Y&&(l.rangeCount!==1||l.anchorNode!==N.node||l.anchorOffset!==N.offset||l.focusNode!==Y.node||l.focusOffset!==Y.offset)&&(u=u.createRange(),u.setStart(N.node,N.offset),l.removeAllRanges(),A>S?(l.addRange(u),l.extend(Y.node,Y.offset)):(u.setEnd(Y.node,Y.offset),l.addRange(u)))}}for(u=[],l=g;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<u.length;g++)l=u[g],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var RA=c&&"documentMode"in document&&11>=document.documentMode,Sl=null,Eg=null,iu=null,Rg=!1;function bw(l,u,g){var S=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Rg||Sl==null||Sl!==le(S)||(S=Sl,"selectionStart"in S&&wg(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),iu&&su(iu,S)||(iu=S,S=Rf(Eg,"onSelect"),0<S.length&&(u=new gg("onSelect","select",null,u,g),l.push({event:u,listeners:S}),u.target=Sl)))}function $f(l,u){var g={};return g[l.toLowerCase()]=u.toLowerCase(),g["Webkit"+l]="webkit"+u,g["Moz"+l]="moz"+u,g}var $l={animationend:$f("Animation","AnimationEnd"),animationiteration:$f("Animation","AnimationIteration"),animationstart:$f("Animation","AnimationStart"),transitionend:$f("Transition","TransitionEnd")},Ig={},vw={};c&&(vw=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function wf(l){if(Ig[l])return Ig[l];if(!$l[l])return l;var u=$l[l],g;for(g in u)if(u.hasOwnProperty(g)&&g in vw)return Ig[l]=u[g];return l}var xw=wf("animationend"),Cw=wf("animationiteration"),Sw=wf("animationstart"),$w=wf("transitionend"),ww=new Map,Ew="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function pi(l,u){ww.set(l,u),s(u,[l])}for(var Pg=0;Pg<Ew.length;Pg++){var Ng=Ew[Pg],IA=Ng.toLowerCase(),PA=Ng[0].toUpperCase()+Ng.slice(1);pi(IA,"on"+PA)}pi(xw,"onAnimationEnd"),pi(Cw,"onAnimationIteration"),pi(Sw,"onAnimationStart"),pi("dblclick","onDoubleClick"),pi("focusin","onFocus"),pi("focusout","onBlur"),pi($w,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var au="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(" "),NA=new Set("cancel close invalid load scroll toggle".split(" ").concat(au));function Rw(l,u,g){var S=l.type||"unknown-event";l.currentTarget=g,at(S,u,void 0,l),l.currentTarget=null}function Iw(l,u){u=(u&4)!==0;for(var g=0;g<l.length;g++){var S=l[g],N=S.event;S=S.listeners;e:{var A=void 0;if(u)for(var Y=S.length-1;0<=Y;Y--){var ue=S[Y],he=ue.instance,Me=ue.currentTarget;if(ue=ue.listener,he!==A&&N.isPropagationStopped())break e;Rw(N,ue,Me),A=he}else for(Y=0;Y<S.length;Y++){if(ue=S[Y],he=ue.instance,Me=ue.currentTarget,ue=ue.listener,he!==A&&N.isPropagationStopped())break e;Rw(N,ue,Me),A=he}}}if(zt)throw l=ht,zt=!1,ht=null,l}function Bn(l,u){var g=u[Bg];g===void 0&&(g=u[Bg]=new Set);var S=l+"__bubble";g.has(S)||(Pw(u,l,2,!1),g.add(S))}function Tg(l,u,g){var S=0;u&&(S|=4),Pw(g,l,S,u)}var Ef="_reactListening"+Math.random().toString(36).slice(2);function lu(l){if(!l[Ef]){l[Ef]=!0,r.forEach(function(g){g!=="selectionchange"&&(NA.has(g)||Tg(g,!1,l),Tg(g,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[Ef]||(u[Ef]=!0,Tg("selectionchange",!1,u))}}function Pw(l,u,g,S){switch(Q$(u)){case 1:var N=W3;break;case 4:N=V3;break;default:N=pg}g=N.bind(null,u,g,l),N=void 0,!ke||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(N=!0),S?N!==void 0?l.addEventListener(u,g,{capture:!0,passive:N}):l.addEventListener(u,g,!0):N!==void 0?l.addEventListener(u,g,{passive:N}):l.addEventListener(u,g,!1)}function Mg(l,u,g,S,N){var A=S;if((u&1)===0&&(u&2)===0&&S!==null)e:for(;;){if(S===null)return;var Y=S.tag;if(Y===3||Y===4){var ue=S.stateNode.containerInfo;if(ue===N||ue.nodeType===8&&ue.parentNode===N)break;if(Y===4)for(Y=S.return;Y!==null;){var he=Y.tag;if((he===3||he===4)&&(he=Y.stateNode.containerInfo,he===N||he.nodeType===8&&he.parentNode===N))return;Y=Y.return}for(;ue!==null;){if(Y=ca(ue),Y===null)return;if(he=Y.tag,he===5||he===6){S=A=Y;continue e}ue=ue.parentNode}}S=S.return}Be(function(){var Me=A,et=ot(g),rt=[];e:{var Qe=ww.get(l);if(Qe!==void 0){var yt=gg,Et=l;switch(l){case"keypress":if(vf(g)===0)break e;case"keydown":case"keyup":yt=sA;break;case"focusin":Et="focus",yt=vg;break;case"focusout":Et="blur",yt=vg;break;case"beforeblur":case"afterblur":yt=vg;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":yt=ew;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":yt=q3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":yt=lA;break;case xw:case Cw:case Sw:yt=Y3;break;case $w:yt=uA;break;case"scroll":yt=K3;break;case"wheel":yt=fA;break;case"copy":case"cut":case"paste":yt=J3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":yt=nw}var Pt=(u&4)!==0,tr=!Pt&&l==="scroll",$e=Pt?Qe!==null?Qe+"Capture":null:Qe;Pt=[];for(var be=Me,Pe;be!==null;){Pe=be;var it=Pe.stateNode;if(Pe.tag===5&&it!==null&&(Pe=it,$e!==null&&(it=we(be,$e),it!=null&&Pt.push(cu(be,it,Pe)))),tr)break;be=be.return}0<Pt.length&&(Qe=new yt(Qe,Et,null,g,et),rt.push({event:Qe,listeners:Pt}))}}if((u&7)===0){e:{if(Qe=l==="mouseover"||l==="pointerover",yt=l==="mouseout"||l==="pointerout",Qe&&g!==Ke&&(Et=g.relatedTarget||g.fromElement)&&(ca(Et)||Et[ks]))break e;if((yt||Qe)&&(Qe=et.window===et?et:(Qe=et.ownerDocument)?Qe.defaultView||Qe.parentWindow:window,yt?(Et=g.relatedTarget||g.toElement,yt=Me,Et=Et?ca(Et):null,Et!==null&&(tr=Vt(Et),Et!==tr||Et.tag!==5&&Et.tag!==6)&&(Et=null)):(yt=null,Et=Me),yt!==Et)){if(Pt=ew,it="onMouseLeave",$e="onMouseEnter",be="mouse",(l==="pointerout"||l==="pointerover")&&(Pt=nw,it="onPointerLeave",$e="onPointerEnter",be="pointer"),tr=yt==null?Qe:Rl(yt),Pe=Et==null?Qe:Rl(Et),Qe=new Pt(it,be+"leave",yt,g,et),Qe.target=tr,Qe.relatedTarget=Pe,it=null,ca(et)===Me&&(Pt=new Pt($e,be+"enter",Et,g,et),Pt.target=Pe,Pt.relatedTarget=tr,it=Pt),tr=it,yt&&Et)t:{for(Pt=yt,$e=Et,be=0,Pe=Pt;Pe;Pe=wl(Pe))be++;for(Pe=0,it=$e;it;it=wl(it))Pe++;for(;0<be-Pe;)Pt=wl(Pt),be--;for(;0<Pe-be;)$e=wl($e),Pe--;for(;be--;){if(Pt===$e||$e!==null&&Pt===$e.alternate)break t;Pt=wl(Pt),$e=wl($e)}Pt=null}else Pt=null;yt!==null&&Nw(rt,Qe,yt,Pt,!1),Et!==null&&tr!==null&&Nw(rt,tr,Et,Pt,!0)}}e:{if(Qe=Me?Rl(Me):window,yt=Qe.nodeName&&Qe.nodeName.toLowerCase(),yt==="select"||yt==="input"&&Qe.type==="file")var Mt=vA;else if(lw(Qe))if(uw)Mt=$A;else{Mt=CA;var Ft=xA}else(yt=Qe.nodeName)&&yt.toLowerCase()==="input"&&(Qe.type==="checkbox"||Qe.type==="radio")&&(Mt=SA);if(Mt&&(Mt=Mt(l,Me))){cw(rt,Mt,g,et);break e}Ft&&Ft(l,Qe,Me),l==="focusout"&&(Ft=Qe._wrapperState)&&Ft.controlled&&Qe.type==="number"&&ce(Qe,"number",Qe.value)}switch(Ft=Me?Rl(Me):window,l){case"focusin":(lw(Ft)||Ft.contentEditable==="true")&&(Sl=Ft,Eg=Me,iu=null);break;case"focusout":iu=Eg=Sl=null;break;case"mousedown":Rg=!0;break;case"contextmenu":case"mouseup":case"dragend":Rg=!1,bw(rt,g,et);break;case"selectionchange":if(RA)break;case"keydown":case"keyup":bw(rt,g,et)}var kt;if(Cg)e:{switch(l){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else Cl?iw(l,g)&&(Ut="onCompositionEnd"):l==="keydown"&&g.keyCode===229&&(Ut="onCompositionStart");Ut&&(rw&&g.locale!=="ko"&&(Cl||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&Cl&&(kt=J$()):(fi=et,hg="value"in fi?fi.value:fi.textContent,Cl=!0)),Ft=Rf(Me,Ut),0<Ft.length&&(Ut=new tw(Ut,l,null,g,et),rt.push({event:Ut,listeners:Ft}),kt?Ut.data=kt:(kt=aw(g),kt!==null&&(Ut.data=kt)))),(kt=mA?hA(l,g):gA(l,g))&&(Me=Rf(Me,"onBeforeInput"),0<Me.length&&(et=new tw("onBeforeInput","beforeinput",null,g,et),rt.push({event:et,listeners:Me}),et.data=kt))}Iw(rt,u)})}function cu(l,u,g){return{instance:l,listener:u,currentTarget:g}}function Rf(l,u){for(var g=u+"Capture",S=[];l!==null;){var N=l,A=N.stateNode;N.tag===5&&A!==null&&(N=A,A=we(l,g),A!=null&&S.unshift(cu(l,A,N)),A=we(l,u),A!=null&&S.push(cu(l,A,N))),l=l.return}return S}function wl(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function Nw(l,u,g,S,N){for(var A=u._reactName,Y=[];g!==null&&g!==S;){var ue=g,he=ue.alternate,Me=ue.stateNode;if(he!==null&&he===S)break;ue.tag===5&&Me!==null&&(ue=Me,N?(he=we(g,A),he!=null&&Y.unshift(cu(g,he,ue))):N||(he=we(g,A),he!=null&&Y.push(cu(g,he,ue)))),g=g.return}Y.length!==0&&l.push({event:u,listeners:Y})}var TA=/\r\n?/g,MA=/\u0000|\uFFFD/g;function Tw(l){return(typeof l=="string"?l:""+l).replace(TA,`
|
|
38
|
+
`).replace(MA,"")}function If(l,u,g){if(u=Tw(u),Tw(l)!==u&&g)throw Error(n(425))}function Pf(){}var Og=null,zg=null;function Ag(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Lg=typeof setTimeout=="function"?setTimeout:void 0,OA=typeof clearTimeout=="function"?clearTimeout:void 0,Mw=typeof Promise=="function"?Promise:void 0,zA=typeof queueMicrotask=="function"?queueMicrotask:typeof Mw<"u"?function(l){return Mw.resolve(null).then(l).catch(AA)}:Lg;function AA(l){setTimeout(function(){throw l})}function Dg(l,u){var g=u,S=0;do{var N=g.nextSibling;if(l.removeChild(g),N&&N.nodeType===8)if(g=N.data,g==="/$"){if(S===0){l.removeChild(N),Zc(u);return}S--}else g!=="$"&&g!=="$?"&&g!=="$!"||S++;g=N}while(g);Zc(u)}function mi(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function Ow(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var g=l.data;if(g==="$"||g==="$!"||g==="$?"){if(u===0)return l;u--}else g==="/$"&&u++}l=l.previousSibling}return null}var El=Math.random().toString(36).slice(2),Cs="__reactFiber$"+El,uu="__reactProps$"+El,ks="__reactContainer$"+El,Bg="__reactEvents$"+El,LA="__reactListeners$"+El,DA="__reactHandles$"+El;function ca(l){var u=l[Cs];if(u)return u;for(var g=l.parentNode;g;){if(u=g[ks]||g[Cs]){if(g=u.alternate,u.child!==null||g!==null&&g.child!==null)for(l=Ow(l);l!==null;){if(g=l[Cs])return g;l=Ow(l)}return u}l=g,g=l.parentNode}return null}function du(l){return l=l[Cs]||l[ks],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Rl(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(n(33))}function Nf(l){return l[uu]||null}var _g=[],Il=-1;function hi(l){return{current:l}}function _n(l){0>Il||(l.current=_g[Il],_g[Il]=null,Il--)}function Dn(l,u){Il++,_g[Il]=l.current,l.current=u}var gi={},Fr=hi(gi),so=hi(!1),ua=gi;function Pl(l,u){var g=l.type.contextTypes;if(!g)return gi;var S=l.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===u)return S.__reactInternalMemoizedMaskedChildContext;var N={},A;for(A in g)N[A]=u[A];return S&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=N),N}function io(l){return l=l.childContextTypes,l!=null}function Tf(){_n(so),_n(Fr)}function zw(l,u,g){if(Fr.current!==gi)throw Error(n(168));Dn(Fr,u),Dn(so,g)}function Aw(l,u,g){var S=l.stateNode;if(u=u.childContextTypes,typeof S.getChildContext!="function")return g;S=S.getChildContext();for(var N in S)if(!(N in u))throw Error(n(108,J(l)||"Unknown",N));return k({},g,S)}function Mf(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||gi,ua=Fr.current,Dn(Fr,l),Dn(so,so.current),!0}function Lw(l,u,g){var S=l.stateNode;if(!S)throw Error(n(169));g?(l=Aw(l,u,ua),S.__reactInternalMemoizedMergedChildContext=l,_n(so),_n(Fr),Dn(Fr,l)):_n(so),Dn(so,g)}var Hs=null,Of=!1,Fg=!1;function Dw(l){Hs===null?Hs=[l]:Hs.push(l)}function BA(l){Of=!0,Dw(l)}function yi(){if(!Fg&&Hs!==null){Fg=!0;var l=0,u=bn;try{var g=Hs;for(bn=1;l<g.length;l++){var S=g[l];do S=S(!0);while(S!==null)}Hs=null,Of=!1}catch(N){throw Hs!==null&&(Hs=Hs.slice(l+1)),ct(In,yi),N}finally{bn=u,Fg=!1}}return null}var Nl=[],Tl=0,zf=null,Af=0,Ao=[],Lo=0,da=null,js=1,Ws="";function fa(l,u){Nl[Tl++]=Af,Nl[Tl++]=zf,zf=l,Af=u}function Bw(l,u,g){Ao[Lo++]=js,Ao[Lo++]=Ws,Ao[Lo++]=da,da=l;var S=js;l=Ws;var N=32-We(S)-1;S&=~(1<<N),g+=1;var A=32-We(u)+N;if(30<A){var Y=N-N%5;A=(S&(1<<Y)-1).toString(32),S>>=Y,N-=Y,js=1<<32-We(u)+N|g<<N|S,Ws=A+l}else js=1<<A|g<<N|S,Ws=l}function kg(l){l.return!==null&&(fa(l,1),Bw(l,1,0))}function Hg(l){for(;l===zf;)zf=Nl[--Tl],Nl[Tl]=null,Af=Nl[--Tl],Nl[Tl]=null;for(;l===da;)da=Ao[--Lo],Ao[Lo]=null,Ws=Ao[--Lo],Ao[Lo]=null,js=Ao[--Lo],Ao[Lo]=null}var $o=null,wo=null,Kn=!1,es=null;function _w(l,u){var g=Fo(5,null,null,0);g.elementType="DELETED",g.stateNode=u,g.return=l,u=l.deletions,u===null?(l.deletions=[g],l.flags|=16):u.push(g)}function Fw(l,u){switch(l.tag){case 5:var g=l.type;return u=u.nodeType!==1||g.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,$o=l,wo=mi(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,$o=l,wo=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(g=da!==null?{id:js,overflow:Ws}:null,l.memoizedState={dehydrated:u,treeContext:g,retryLane:1073741824},g=Fo(18,null,null,0),g.stateNode=u,g.return=l,l.child=g,$o=l,wo=null,!0):!1;default:return!1}}function jg(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Wg(l){if(Kn){var u=wo;if(u){var g=u;if(!Fw(l,u)){if(jg(l))throw Error(n(418));u=mi(g.nextSibling);var S=$o;u&&Fw(l,u)?_w(S,g):(l.flags=l.flags&-4097|2,Kn=!1,$o=l)}}else{if(jg(l))throw Error(n(418));l.flags=l.flags&-4097|2,Kn=!1,$o=l}}}function kw(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;$o=l}function Lf(l){if(l!==$o)return!1;if(!Kn)return kw(l),Kn=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!Ag(l.type,l.memoizedProps)),u&&(u=wo)){if(jg(l))throw Hw(),Error(n(418));for(;u;)_w(l,u),u=mi(u.nextSibling)}if(kw(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var g=l.data;if(g==="/$"){if(u===0){wo=mi(l.nextSibling);break e}u--}else g!=="$"&&g!=="$!"&&g!=="$?"||u++}l=l.nextSibling}wo=null}}else wo=$o?mi(l.stateNode.nextSibling):null;return!0}function Hw(){for(var l=wo;l;)l=mi(l.nextSibling)}function Ml(){wo=$o=null,Kn=!1}function Vg(l){es===null?es=[l]:es.push(l)}var _A=w.ReactCurrentBatchConfig;function fu(l,u,g){if(l=g.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(n(309));var S=g.stateNode}if(!S)throw Error(n(147,l));var N=S,A=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===A?u.ref:(u=function(Y){var ue=N.refs;Y===null?delete ue[A]:ue[A]=Y},u._stringRef=A,u)}if(typeof l!="string")throw Error(n(284));if(!g._owner)throw Error(n(290,l))}return l}function Df(l,u){throw l=Object.prototype.toString.call(u),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function jw(l){var u=l._init;return u(l._payload)}function Ww(l){function u($e,be){if(l){var Pe=$e.deletions;Pe===null?($e.deletions=[be],$e.flags|=16):Pe.push(be)}}function g($e,be){if(!l)return null;for(;be!==null;)u($e,be),be=be.sibling;return null}function S($e,be){for($e=new Map;be!==null;)be.key!==null?$e.set(be.key,be):$e.set(be.index,be),be=be.sibling;return $e}function N($e,be){return $e=Ei($e,be),$e.index=0,$e.sibling=null,$e}function A($e,be,Pe){return $e.index=Pe,l?(Pe=$e.alternate,Pe!==null?(Pe=Pe.index,Pe<be?($e.flags|=2,be):Pe):($e.flags|=2,be)):($e.flags|=1048576,be)}function Y($e){return l&&$e.alternate===null&&($e.flags|=2),$e}function ue($e,be,Pe,it){return be===null||be.tag!==6?(be=Ly(Pe,$e.mode,it),be.return=$e,be):(be=N(be,Pe),be.return=$e,be)}function he($e,be,Pe,it){var Mt=Pe.type;return Mt===I?et($e,be,Pe.props.children,it,Pe.key):be!==null&&(be.elementType===Mt||typeof Mt=="object"&&Mt!==null&&Mt.$$typeof===q&&jw(Mt)===be.type)?(it=N(be,Pe.props),it.ref=fu($e,be,Pe),it.return=$e,it):(it=ip(Pe.type,Pe.key,Pe.props,null,$e.mode,it),it.ref=fu($e,be,Pe),it.return=$e,it)}function Me($e,be,Pe,it){return be===null||be.tag!==4||be.stateNode.containerInfo!==Pe.containerInfo||be.stateNode.implementation!==Pe.implementation?(be=Dy(Pe,$e.mode,it),be.return=$e,be):(be=N(be,Pe.children||[]),be.return=$e,be)}function et($e,be,Pe,it,Mt){return be===null||be.tag!==7?(be=xa(Pe,$e.mode,it,Mt),be.return=$e,be):(be=N(be,Pe),be.return=$e,be)}function rt($e,be,Pe){if(typeof be=="string"&&be!==""||typeof be=="number")return be=Ly(""+be,$e.mode,Pe),be.return=$e,be;if(typeof be=="object"&&be!==null){switch(be.$$typeof){case R:return Pe=ip(be.type,be.key,be.props,null,$e.mode,Pe),Pe.ref=fu($e,null,be),Pe.return=$e,Pe;case P:return be=Dy(be,$e.mode,Pe),be.return=$e,be;case q:var it=be._init;return rt($e,it(be._payload),Pe)}if(xe(be)||H(be))return be=xa(be,$e.mode,Pe,null),be.return=$e,be;Df($e,be)}return null}function Qe($e,be,Pe,it){var Mt=be!==null?be.key:null;if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number")return Mt!==null?null:ue($e,be,""+Pe,it);if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case R:return Pe.key===Mt?he($e,be,Pe,it):null;case P:return Pe.key===Mt?Me($e,be,Pe,it):null;case q:return Mt=Pe._init,Qe($e,be,Mt(Pe._payload),it)}if(xe(Pe)||H(Pe))return Mt!==null?null:et($e,be,Pe,it,null);Df($e,Pe)}return null}function yt($e,be,Pe,it,Mt){if(typeof it=="string"&&it!==""||typeof it=="number")return $e=$e.get(Pe)||null,ue(be,$e,""+it,Mt);if(typeof it=="object"&&it!==null){switch(it.$$typeof){case R:return $e=$e.get(it.key===null?Pe:it.key)||null,he(be,$e,it,Mt);case P:return $e=$e.get(it.key===null?Pe:it.key)||null,Me(be,$e,it,Mt);case q:var Ft=it._init;return yt($e,be,Pe,Ft(it._payload),Mt)}if(xe(it)||H(it))return $e=$e.get(Pe)||null,et(be,$e,it,Mt,null);Df(be,it)}return null}function Et($e,be,Pe,it){for(var Mt=null,Ft=null,kt=be,Ut=be=0,Cr=null;kt!==null&&Ut<Pe.length;Ut++){kt.index>Ut?(Cr=kt,kt=null):Cr=kt.sibling;var vn=Qe($e,kt,Pe[Ut],it);if(vn===null){kt===null&&(kt=Cr);break}l&&kt&&vn.alternate===null&&u($e,kt),be=A(vn,be,Ut),Ft===null?Mt=vn:Ft.sibling=vn,Ft=vn,kt=Cr}if(Ut===Pe.length)return g($e,kt),Kn&&fa($e,Ut),Mt;if(kt===null){for(;Ut<Pe.length;Ut++)kt=rt($e,Pe[Ut],it),kt!==null&&(be=A(kt,be,Ut),Ft===null?Mt=kt:Ft.sibling=kt,Ft=kt);return Kn&&fa($e,Ut),Mt}for(kt=S($e,kt);Ut<Pe.length;Ut++)Cr=yt(kt,$e,Ut,Pe[Ut],it),Cr!==null&&(l&&Cr.alternate!==null&&kt.delete(Cr.key===null?Ut:Cr.key),be=A(Cr,be,Ut),Ft===null?Mt=Cr:Ft.sibling=Cr,Ft=Cr);return l&&kt.forEach(function(Ri){return u($e,Ri)}),Kn&&fa($e,Ut),Mt}function Pt($e,be,Pe,it){var Mt=H(Pe);if(typeof Mt!="function")throw Error(n(150));if(Pe=Mt.call(Pe),Pe==null)throw Error(n(151));for(var Ft=Mt=null,kt=be,Ut=be=0,Cr=null,vn=Pe.next();kt!==null&&!vn.done;Ut++,vn=Pe.next()){kt.index>Ut?(Cr=kt,kt=null):Cr=kt.sibling;var Ri=Qe($e,kt,vn.value,it);if(Ri===null){kt===null&&(kt=Cr);break}l&&kt&&Ri.alternate===null&&u($e,kt),be=A(Ri,be,Ut),Ft===null?Mt=Ri:Ft.sibling=Ri,Ft=Ri,kt=Cr}if(vn.done)return g($e,kt),Kn&&fa($e,Ut),Mt;if(kt===null){for(;!vn.done;Ut++,vn=Pe.next())vn=rt($e,vn.value,it),vn!==null&&(be=A(vn,be,Ut),Ft===null?Mt=vn:Ft.sibling=vn,Ft=vn);return Kn&&fa($e,Ut),Mt}for(kt=S($e,kt);!vn.done;Ut++,vn=Pe.next())vn=yt(kt,$e,Ut,vn.value,it),vn!==null&&(l&&vn.alternate!==null&&kt.delete(vn.key===null?Ut:vn.key),be=A(vn,be,Ut),Ft===null?Mt=vn:Ft.sibling=vn,Ft=vn);return l&&kt.forEach(function(yL){return u($e,yL)}),Kn&&fa($e,Ut),Mt}function tr($e,be,Pe,it){if(typeof Pe=="object"&&Pe!==null&&Pe.type===I&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case R:e:{for(var Mt=Pe.key,Ft=be;Ft!==null;){if(Ft.key===Mt){if(Mt=Pe.type,Mt===I){if(Ft.tag===7){g($e,Ft.sibling),be=N(Ft,Pe.props.children),be.return=$e,$e=be;break e}}else if(Ft.elementType===Mt||typeof Mt=="object"&&Mt!==null&&Mt.$$typeof===q&&jw(Mt)===Ft.type){g($e,Ft.sibling),be=N(Ft,Pe.props),be.ref=fu($e,Ft,Pe),be.return=$e,$e=be;break e}g($e,Ft);break}else u($e,Ft);Ft=Ft.sibling}Pe.type===I?(be=xa(Pe.props.children,$e.mode,it,Pe.key),be.return=$e,$e=be):(it=ip(Pe.type,Pe.key,Pe.props,null,$e.mode,it),it.ref=fu($e,be,Pe),it.return=$e,$e=it)}return Y($e);case P:e:{for(Ft=Pe.key;be!==null;){if(be.key===Ft)if(be.tag===4&&be.stateNode.containerInfo===Pe.containerInfo&&be.stateNode.implementation===Pe.implementation){g($e,be.sibling),be=N(be,Pe.children||[]),be.return=$e,$e=be;break e}else{g($e,be);break}else u($e,be);be=be.sibling}be=Dy(Pe,$e.mode,it),be.return=$e,$e=be}return Y($e);case q:return Ft=Pe._init,tr($e,be,Ft(Pe._payload),it)}if(xe(Pe))return Et($e,be,Pe,it);if(H(Pe))return Pt($e,be,Pe,it);Df($e,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,be!==null&&be.tag===6?(g($e,be.sibling),be=N(be,Pe),be.return=$e,$e=be):(g($e,be),be=Ly(Pe,$e.mode,it),be.return=$e,$e=be),Y($e)):g($e,be)}return tr}var Ol=Ww(!0),Vw=Ww(!1),Bf=hi(null),_f=null,zl=null,Kg=null;function Ug(){Kg=zl=_f=null}function qg(l){var u=Bf.current;_n(Bf),l._currentValue=u}function Gg(l,u,g){for(;l!==null;){var S=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,S!==null&&(S.childLanes|=u)):S!==null&&(S.childLanes&u)!==u&&(S.childLanes|=u),l===g)break;l=l.return}}function Al(l,u){_f=l,Kg=zl=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(ao=!0),l.firstContext=null)}function Do(l){var u=l._currentValue;if(Kg!==l)if(l={context:l,memoizedValue:u,next:null},zl===null){if(_f===null)throw Error(n(308));zl=l,_f.dependencies={lanes:0,firstContext:l}}else zl=zl.next=l;return u}var pa=null;function Xg(l){pa===null?pa=[l]:pa.push(l)}function Kw(l,u,g,S){var N=u.interleaved;return N===null?(g.next=g,Xg(u)):(g.next=N.next,N.next=g),u.interleaved=g,Vs(l,S)}function Vs(l,u){l.lanes|=u;var g=l.alternate;for(g!==null&&(g.lanes|=u),g=l,l=l.return;l!==null;)l.childLanes|=u,g=l.alternate,g!==null&&(g.childLanes|=u),g=l,l=l.return;return g.tag===3?g.stateNode:null}var bi=!1;function Yg(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uw(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Ks(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function vi(l,u,g){var S=l.updateQueue;if(S===null)return null;if(S=S.shared,(gn&2)!==0){var N=S.pending;return N===null?u.next=u:(u.next=N.next,N.next=u),S.pending=u,Vs(l,g)}return N=S.interleaved,N===null?(u.next=u,Xg(S)):(u.next=N.next,N.next=u),S.interleaved=u,Vs(l,g)}function Ff(l,u,g){if(u=u.updateQueue,u!==null&&(u=u.shared,(g&4194240)!==0)){var S=u.lanes;S&=l.pendingLanes,g|=S,u.lanes=g,bl(l,g)}}function qw(l,u){var g=l.updateQueue,S=l.alternate;if(S!==null&&(S=S.updateQueue,g===S)){var N=null,A=null;if(g=g.firstBaseUpdate,g!==null){do{var Y={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};A===null?N=A=Y:A=A.next=Y,g=g.next}while(g!==null);A===null?N=A=u:A=A.next=u}else N=A=u;g={baseState:S.baseState,firstBaseUpdate:N,lastBaseUpdate:A,shared:S.shared,effects:S.effects},l.updateQueue=g;return}l=g.lastBaseUpdate,l===null?g.firstBaseUpdate=u:l.next=u,g.lastBaseUpdate=u}function kf(l,u,g,S){var N=l.updateQueue;bi=!1;var A=N.firstBaseUpdate,Y=N.lastBaseUpdate,ue=N.shared.pending;if(ue!==null){N.shared.pending=null;var he=ue,Me=he.next;he.next=null,Y===null?A=Me:Y.next=Me,Y=he;var et=l.alternate;et!==null&&(et=et.updateQueue,ue=et.lastBaseUpdate,ue!==Y&&(ue===null?et.firstBaseUpdate=Me:ue.next=Me,et.lastBaseUpdate=he))}if(A!==null){var rt=N.baseState;Y=0,et=Me=he=null,ue=A;do{var Qe=ue.lane,yt=ue.eventTime;if((S&Qe)===Qe){et!==null&&(et=et.next={eventTime:yt,lane:0,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null});e:{var Et=l,Pt=ue;switch(Qe=u,yt=g,Pt.tag){case 1:if(Et=Pt.payload,typeof Et=="function"){rt=Et.call(yt,rt,Qe);break e}rt=Et;break e;case 3:Et.flags=Et.flags&-65537|128;case 0:if(Et=Pt.payload,Qe=typeof Et=="function"?Et.call(yt,rt,Qe):Et,Qe==null)break e;rt=k({},rt,Qe);break e;case 2:bi=!0}}ue.callback!==null&&ue.lane!==0&&(l.flags|=64,Qe=N.effects,Qe===null?N.effects=[ue]:Qe.push(ue))}else yt={eventTime:yt,lane:Qe,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null},et===null?(Me=et=yt,he=rt):et=et.next=yt,Y|=Qe;if(ue=ue.next,ue===null){if(ue=N.shared.pending,ue===null)break;Qe=ue,ue=Qe.next,Qe.next=null,N.lastBaseUpdate=Qe,N.shared.pending=null}}while(!0);if(et===null&&(he=rt),N.baseState=he,N.firstBaseUpdate=Me,N.lastBaseUpdate=et,u=N.shared.interleaved,u!==null){N=u;do Y|=N.lane,N=N.next;while(N!==u)}else A===null&&(N.shared.lanes=0);ga|=Y,l.lanes=Y,l.memoizedState=rt}}function Gw(l,u,g){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var S=l[u],N=S.callback;if(N!==null){if(S.callback=null,S=g,typeof N!="function")throw Error(n(191,N));N.call(S)}}}var pu={},Ss=hi(pu),mu=hi(pu),hu=hi(pu);function ma(l){if(l===pu)throw Error(n(174));return l}function Qg(l,u){switch(Dn(hu,u),Dn(mu,l),Dn(Ss,pu),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:Ie(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=Ie(u,l)}_n(Ss),Dn(Ss,u)}function Ll(){_n(Ss),_n(mu),_n(hu)}function Xw(l){ma(hu.current);var u=ma(Ss.current),g=Ie(u,l.type);u!==g&&(Dn(mu,l),Dn(Ss,g))}function Jg(l){mu.current===l&&(_n(Ss),_n(mu))}var qn=hi(0);function Hf(l){for(var u=l;u!==null;){if(u.tag===13){var g=u.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||g.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Zg=[];function ey(){for(var l=0;l<Zg.length;l++)Zg[l]._workInProgressVersionPrimary=null;Zg.length=0}var jf=w.ReactCurrentDispatcher,ty=w.ReactCurrentBatchConfig,ha=0,Gn=null,fr=null,vr=null,Wf=!1,gu=!1,yu=0,FA=0;function kr(){throw Error(n(321))}function ny(l,u){if(u===null)return!1;for(var g=0;g<u.length&&g<l.length;g++)if(!Zo(l[g],u[g]))return!1;return!0}function ry(l,u,g,S,N,A){if(ha=A,Gn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,jf.current=l===null||l.memoizedState===null?WA:VA,l=g(S,N),gu){A=0;do{if(gu=!1,yu=0,25<=A)throw Error(n(301));A+=1,vr=fr=null,u.updateQueue=null,jf.current=KA,l=g(S,N)}while(gu)}if(jf.current=Uf,u=fr!==null&&fr.next!==null,ha=0,vr=fr=Gn=null,Wf=!1,u)throw Error(n(300));return l}function oy(){var l=yu!==0;return yu=0,l}function $s(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?Gn.memoizedState=vr=l:vr=vr.next=l,vr}function Bo(){if(fr===null){var l=Gn.alternate;l=l!==null?l.memoizedState:null}else l=fr.next;var u=vr===null?Gn.memoizedState:vr.next;if(u!==null)vr=u,fr=l;else{if(l===null)throw Error(n(310));fr=l,l={memoizedState:fr.memoizedState,baseState:fr.baseState,baseQueue:fr.baseQueue,queue:fr.queue,next:null},vr===null?Gn.memoizedState=vr=l:vr=vr.next=l}return vr}function bu(l,u){return typeof u=="function"?u(l):u}function sy(l){var u=Bo(),g=u.queue;if(g===null)throw Error(n(311));g.lastRenderedReducer=l;var S=fr,N=S.baseQueue,A=g.pending;if(A!==null){if(N!==null){var Y=N.next;N.next=A.next,A.next=Y}S.baseQueue=N=A,g.pending=null}if(N!==null){A=N.next,S=S.baseState;var ue=Y=null,he=null,Me=A;do{var et=Me.lane;if((ha&et)===et)he!==null&&(he=he.next={lane:0,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),S=Me.hasEagerState?Me.eagerState:l(S,Me.action);else{var rt={lane:et,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null};he===null?(ue=he=rt,Y=S):he=he.next=rt,Gn.lanes|=et,ga|=et}Me=Me.next}while(Me!==null&&Me!==A);he===null?Y=S:he.next=ue,Zo(S,u.memoizedState)||(ao=!0),u.memoizedState=S,u.baseState=Y,u.baseQueue=he,g.lastRenderedState=S}if(l=g.interleaved,l!==null){N=l;do A=N.lane,Gn.lanes|=A,ga|=A,N=N.next;while(N!==l)}else N===null&&(g.lanes=0);return[u.memoizedState,g.dispatch]}function iy(l){var u=Bo(),g=u.queue;if(g===null)throw Error(n(311));g.lastRenderedReducer=l;var S=g.dispatch,N=g.pending,A=u.memoizedState;if(N!==null){g.pending=null;var Y=N=N.next;do A=l(A,Y.action),Y=Y.next;while(Y!==N);Zo(A,u.memoizedState)||(ao=!0),u.memoizedState=A,u.baseQueue===null&&(u.baseState=A),g.lastRenderedState=A}return[A,S]}function Yw(){}function Qw(l,u){var g=Gn,S=Bo(),N=u(),A=!Zo(S.memoizedState,N);if(A&&(S.memoizedState=N,ao=!0),S=S.queue,ay(e1.bind(null,g,S,l),[l]),S.getSnapshot!==u||A||vr!==null&&vr.memoizedState.tag&1){if(g.flags|=2048,vu(9,Zw.bind(null,g,S,N,u),void 0,null),xr===null)throw Error(n(349));(ha&30)!==0||Jw(g,u,N)}return N}function Jw(l,u,g){l.flags|=16384,l={getSnapshot:u,value:g},u=Gn.updateQueue,u===null?(u={lastEffect:null,stores:null},Gn.updateQueue=u,u.stores=[l]):(g=u.stores,g===null?u.stores=[l]:g.push(l))}function Zw(l,u,g,S){u.value=g,u.getSnapshot=S,t1(u)&&n1(l)}function e1(l,u,g){return g(function(){t1(u)&&n1(l)})}function t1(l){var u=l.getSnapshot;l=l.value;try{var g=u();return!Zo(l,g)}catch{return!0}}function n1(l){var u=Vs(l,1);u!==null&&os(u,l,1,-1)}function r1(l){var u=$s();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bu,lastRenderedState:l},u.queue=l,l=l.dispatch=jA.bind(null,Gn,l),[u.memoizedState,l]}function vu(l,u,g,S){return l={tag:l,create:u,destroy:g,deps:S,next:null},u=Gn.updateQueue,u===null?(u={lastEffect:null,stores:null},Gn.updateQueue=u,u.lastEffect=l.next=l):(g=u.lastEffect,g===null?u.lastEffect=l.next=l:(S=g.next,g.next=l,l.next=S,u.lastEffect=l)),l}function o1(){return Bo().memoizedState}function Vf(l,u,g,S){var N=$s();Gn.flags|=l,N.memoizedState=vu(1|u,g,void 0,S===void 0?null:S)}function Kf(l,u,g,S){var N=Bo();S=S===void 0?null:S;var A=void 0;if(fr!==null){var Y=fr.memoizedState;if(A=Y.destroy,S!==null&&ny(S,Y.deps)){N.memoizedState=vu(u,g,A,S);return}}Gn.flags|=l,N.memoizedState=vu(1|u,g,A,S)}function s1(l,u){return Vf(8390656,8,l,u)}function ay(l,u){return Kf(2048,8,l,u)}function i1(l,u){return Kf(4,2,l,u)}function a1(l,u){return Kf(4,4,l,u)}function l1(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function c1(l,u,g){return g=g!=null?g.concat([l]):null,Kf(4,4,l1.bind(null,u,l),g)}function ly(){}function u1(l,u){var g=Bo();u=u===void 0?null:u;var S=g.memoizedState;return S!==null&&u!==null&&ny(u,S[1])?S[0]:(g.memoizedState=[l,u],l)}function d1(l,u){var g=Bo();u=u===void 0?null:u;var S=g.memoizedState;return S!==null&&u!==null&&ny(u,S[1])?S[0]:(l=l(),g.memoizedState=[l,u],l)}function f1(l,u,g){return(ha&21)===0?(l.baseState&&(l.baseState=!1,ao=!0),l.memoizedState=g):(Zo(g,u)||(g=pt(),Gn.lanes|=g,ga|=g,l.baseState=!0),u)}function kA(l,u){var g=bn;bn=g!==0&&4>g?g:4,l(!0);var S=ty.transition;ty.transition={};try{l(!1),u()}finally{bn=g,ty.transition=S}}function p1(){return Bo().memoizedState}function HA(l,u,g){var S=$i(l);if(g={lane:S,action:g,hasEagerState:!1,eagerState:null,next:null},m1(l))h1(u,g);else if(g=Kw(l,u,g,S),g!==null){var N=Qr();os(g,l,S,N),g1(g,u,S)}}function jA(l,u,g){var S=$i(l),N={lane:S,action:g,hasEagerState:!1,eagerState:null,next:null};if(m1(l))h1(u,N);else{var A=l.alternate;if(l.lanes===0&&(A===null||A.lanes===0)&&(A=u.lastRenderedReducer,A!==null))try{var Y=u.lastRenderedState,ue=A(Y,g);if(N.hasEagerState=!0,N.eagerState=ue,Zo(ue,Y)){var he=u.interleaved;he===null?(N.next=N,Xg(u)):(N.next=he.next,he.next=N),u.interleaved=N;return}}catch{}finally{}g=Kw(l,u,N,S),g!==null&&(N=Qr(),os(g,l,S,N),g1(g,u,S))}}function m1(l){var u=l.alternate;return l===Gn||u!==null&&u===Gn}function h1(l,u){gu=Wf=!0;var g=l.pending;g===null?u.next=u:(u.next=g.next,g.next=u),l.pending=u}function g1(l,u,g){if((g&4194240)!==0){var S=u.lanes;S&=l.pendingLanes,g|=S,u.lanes=g,bl(l,g)}}var Uf={readContext:Do,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},WA={readContext:Do,useCallback:function(l,u){return $s().memoizedState=[l,u===void 0?null:u],l},useContext:Do,useEffect:s1,useImperativeHandle:function(l,u,g){return g=g!=null?g.concat([l]):null,Vf(4194308,4,l1.bind(null,u,l),g)},useLayoutEffect:function(l,u){return Vf(4194308,4,l,u)},useInsertionEffect:function(l,u){return Vf(4,2,l,u)},useMemo:function(l,u){var g=$s();return u=u===void 0?null:u,l=l(),g.memoizedState=[l,u],l},useReducer:function(l,u,g){var S=$s();return u=g!==void 0?g(u):u,S.memoizedState=S.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},S.queue=l,l=l.dispatch=HA.bind(null,Gn,l),[S.memoizedState,l]},useRef:function(l){var u=$s();return l={current:l},u.memoizedState=l},useState:r1,useDebugValue:ly,useDeferredValue:function(l){return $s().memoizedState=l},useTransition:function(){var l=r1(!1),u=l[0];return l=kA.bind(null,l[1]),$s().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,g){var S=Gn,N=$s();if(Kn){if(g===void 0)throw Error(n(407));g=g()}else{if(g=u(),xr===null)throw Error(n(349));(ha&30)!==0||Jw(S,u,g)}N.memoizedState=g;var A={value:g,getSnapshot:u};return N.queue=A,s1(e1.bind(null,S,A,l),[l]),S.flags|=2048,vu(9,Zw.bind(null,S,A,g,u),void 0,null),g},useId:function(){var l=$s(),u=xr.identifierPrefix;if(Kn){var g=Ws,S=js;g=(S&~(1<<32-We(S)-1)).toString(32)+g,u=":"+u+"R"+g,g=yu++,0<g&&(u+="H"+g.toString(32)),u+=":"}else g=FA++,u=":"+u+"r"+g.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},VA={readContext:Do,useCallback:u1,useContext:Do,useEffect:ay,useImperativeHandle:c1,useInsertionEffect:i1,useLayoutEffect:a1,useMemo:d1,useReducer:sy,useRef:o1,useState:function(){return sy(bu)},useDebugValue:ly,useDeferredValue:function(l){var u=Bo();return f1(u,fr.memoizedState,l)},useTransition:function(){var l=sy(bu)[0],u=Bo().memoizedState;return[l,u]},useMutableSource:Yw,useSyncExternalStore:Qw,useId:p1,unstable_isNewReconciler:!1},KA={readContext:Do,useCallback:u1,useContext:Do,useEffect:ay,useImperativeHandle:c1,useInsertionEffect:i1,useLayoutEffect:a1,useMemo:d1,useReducer:iy,useRef:o1,useState:function(){return iy(bu)},useDebugValue:ly,useDeferredValue:function(l){var u=Bo();return fr===null?u.memoizedState=l:f1(u,fr.memoizedState,l)},useTransition:function(){var l=iy(bu)[0],u=Bo().memoizedState;return[l,u]},useMutableSource:Yw,useSyncExternalStore:Qw,useId:p1,unstable_isNewReconciler:!1};function ts(l,u){if(l&&l.defaultProps){u=k({},u),l=l.defaultProps;for(var g in l)u[g]===void 0&&(u[g]=l[g]);return u}return u}function cy(l,u,g,S){u=l.memoizedState,g=g(S,u),g=g==null?u:k({},u,g),l.memoizedState=g,l.lanes===0&&(l.updateQueue.baseState=g)}var qf={isMounted:function(l){return(l=l._reactInternals)?Vt(l)===l:!1},enqueueSetState:function(l,u,g){l=l._reactInternals;var S=Qr(),N=$i(l),A=Ks(S,N);A.payload=u,g!=null&&(A.callback=g),u=vi(l,A,N),u!==null&&(os(u,l,N,S),Ff(u,l,N))},enqueueReplaceState:function(l,u,g){l=l._reactInternals;var S=Qr(),N=$i(l),A=Ks(S,N);A.tag=1,A.payload=u,g!=null&&(A.callback=g),u=vi(l,A,N),u!==null&&(os(u,l,N,S),Ff(u,l,N))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var g=Qr(),S=$i(l),N=Ks(g,S);N.tag=2,u!=null&&(N.callback=u),u=vi(l,N,S),u!==null&&(os(u,l,S,g),Ff(u,l,S))}};function y1(l,u,g,S,N,A,Y){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(S,A,Y):u.prototype&&u.prototype.isPureReactComponent?!su(g,S)||!su(N,A):!0}function b1(l,u,g){var S=!1,N=gi,A=u.contextType;return typeof A=="object"&&A!==null?A=Do(A):(N=io(u)?ua:Fr.current,S=u.contextTypes,A=(S=S!=null)?Pl(l,N):gi),u=new u(g,A),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=qf,l.stateNode=u,u._reactInternals=l,S&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=N,l.__reactInternalMemoizedMaskedChildContext=A),u}function v1(l,u,g,S){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(g,S),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(g,S),u.state!==l&&qf.enqueueReplaceState(u,u.state,null)}function uy(l,u,g,S){var N=l.stateNode;N.props=g,N.state=l.memoizedState,N.refs={},Yg(l);var A=u.contextType;typeof A=="object"&&A!==null?N.context=Do(A):(A=io(u)?ua:Fr.current,N.context=Pl(l,A)),N.state=l.memoizedState,A=u.getDerivedStateFromProps,typeof A=="function"&&(cy(l,u,A,g),N.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof N.getSnapshotBeforeUpdate=="function"||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(u=N.state,typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount(),u!==N.state&&qf.enqueueReplaceState(N,N.state,null),kf(l,g,N,S),N.state=l.memoizedState),typeof N.componentDidMount=="function"&&(l.flags|=4194308)}function Dl(l,u){try{var g="",S=u;do g+=Z(S),S=S.return;while(S);var N=g}catch(A){N=`
|
|
39
|
+
Error generating stack: `+A.message+`
|
|
40
|
+
`+A.stack}return{value:l,source:u,stack:N,digest:null}}function dy(l,u,g){return{value:l,source:null,stack:g??null,digest:u??null}}function fy(l,u){try{console.error(u.value)}catch(g){setTimeout(function(){throw g})}}var UA=typeof WeakMap=="function"?WeakMap:Map;function x1(l,u,g){g=Ks(-1,g),g.tag=3,g.payload={element:null};var S=u.value;return g.callback=function(){ep||(ep=!0,Iy=S),fy(l,u)},g}function C1(l,u,g){g=Ks(-1,g),g.tag=3;var S=l.type.getDerivedStateFromError;if(typeof S=="function"){var N=u.value;g.payload=function(){return S(N)},g.callback=function(){fy(l,u)}}var A=l.stateNode;return A!==null&&typeof A.componentDidCatch=="function"&&(g.callback=function(){fy(l,u),typeof S!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var Y=u.stack;this.componentDidCatch(u.value,{componentStack:Y!==null?Y:""})}),g}function S1(l,u,g){var S=l.pingCache;if(S===null){S=l.pingCache=new UA;var N=new Set;S.set(u,N)}else N=S.get(u),N===void 0&&(N=new Set,S.set(u,N));N.has(g)||(N.add(g),l=iL.bind(null,l,u,g),u.then(l,l))}function $1(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function w1(l,u,g,S,N){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(u=Ks(-1,1),u.tag=2,vi(g,u,1))),g.lanes|=1),l):(l.flags|=65536,l.lanes=N,l)}var qA=w.ReactCurrentOwner,ao=!1;function Yr(l,u,g,S){u.child=l===null?Vw(u,null,g,S):Ol(u,l.child,g,S)}function E1(l,u,g,S,N){g=g.render;var A=u.ref;return Al(u,N),S=ry(l,u,g,S,A,N),g=oy(),l!==null&&!ao?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~N,Us(l,u,N)):(Kn&&g&&kg(u),u.flags|=1,Yr(l,u,S,N),u.child)}function R1(l,u,g,S,N){if(l===null){var A=g.type;return typeof A=="function"&&!Ay(A)&&A.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(u.tag=15,u.type=A,I1(l,u,A,S,N)):(l=ip(g.type,null,S,u,u.mode,N),l.ref=u.ref,l.return=u,u.child=l)}if(A=l.child,(l.lanes&N)===0){var Y=A.memoizedProps;if(g=g.compare,g=g!==null?g:su,g(Y,S)&&l.ref===u.ref)return Us(l,u,N)}return u.flags|=1,l=Ei(A,S),l.ref=u.ref,l.return=u,u.child=l}function I1(l,u,g,S,N){if(l!==null){var A=l.memoizedProps;if(su(A,S)&&l.ref===u.ref)if(ao=!1,u.pendingProps=S=A,(l.lanes&N)!==0)(l.flags&131072)!==0&&(ao=!0);else return u.lanes=l.lanes,Us(l,u,N)}return py(l,u,g,S,N)}function P1(l,u,g){var S=u.pendingProps,N=S.children,A=l!==null?l.memoizedState:null;if(S.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dn(_l,Eo),Eo|=g;else{if((g&1073741824)===0)return l=A!==null?A.baseLanes|g:g,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,Dn(_l,Eo),Eo|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},S=A!==null?A.baseLanes:g,Dn(_l,Eo),Eo|=S}else A!==null?(S=A.baseLanes|g,u.memoizedState=null):S=g,Dn(_l,Eo),Eo|=S;return Yr(l,u,N,g),u.child}function N1(l,u){var g=u.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(u.flags|=512,u.flags|=2097152)}function py(l,u,g,S,N){var A=io(g)?ua:Fr.current;return A=Pl(u,A),Al(u,N),g=ry(l,u,g,S,A,N),S=oy(),l!==null&&!ao?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~N,Us(l,u,N)):(Kn&&S&&kg(u),u.flags|=1,Yr(l,u,g,N),u.child)}function T1(l,u,g,S,N){if(io(g)){var A=!0;Mf(u)}else A=!1;if(Al(u,N),u.stateNode===null)Xf(l,u),b1(u,g,S),uy(u,g,S,N),S=!0;else if(l===null){var Y=u.stateNode,ue=u.memoizedProps;Y.props=ue;var he=Y.context,Me=g.contextType;typeof Me=="object"&&Me!==null?Me=Do(Me):(Me=io(g)?ua:Fr.current,Me=Pl(u,Me));var et=g.getDerivedStateFromProps,rt=typeof et=="function"||typeof Y.getSnapshotBeforeUpdate=="function";rt||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(ue!==S||he!==Me)&&v1(u,Y,S,Me),bi=!1;var Qe=u.memoizedState;Y.state=Qe,kf(u,S,Y,N),he=u.memoizedState,ue!==S||Qe!==he||so.current||bi?(typeof et=="function"&&(cy(u,g,et,S),he=u.memoizedState),(ue=bi||y1(u,g,ue,S,Qe,he,Me))?(rt||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount()),typeof Y.componentDidMount=="function"&&(u.flags|=4194308)):(typeof Y.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=S,u.memoizedState=he),Y.props=S,Y.state=he,Y.context=Me,S=ue):(typeof Y.componentDidMount=="function"&&(u.flags|=4194308),S=!1)}else{Y=u.stateNode,Uw(l,u),ue=u.memoizedProps,Me=u.type===u.elementType?ue:ts(u.type,ue),Y.props=Me,rt=u.pendingProps,Qe=Y.context,he=g.contextType,typeof he=="object"&&he!==null?he=Do(he):(he=io(g)?ua:Fr.current,he=Pl(u,he));var yt=g.getDerivedStateFromProps;(et=typeof yt=="function"||typeof Y.getSnapshotBeforeUpdate=="function")||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(ue!==rt||Qe!==he)&&v1(u,Y,S,he),bi=!1,Qe=u.memoizedState,Y.state=Qe,kf(u,S,Y,N);var Et=u.memoizedState;ue!==rt||Qe!==Et||so.current||bi?(typeof yt=="function"&&(cy(u,g,yt,S),Et=u.memoizedState),(Me=bi||y1(u,g,Me,S,Qe,Et,he)||!1)?(et||typeof Y.UNSAFE_componentWillUpdate!="function"&&typeof Y.componentWillUpdate!="function"||(typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate(S,Et,he),typeof Y.UNSAFE_componentWillUpdate=="function"&&Y.UNSAFE_componentWillUpdate(S,Et,he)),typeof Y.componentDidUpdate=="function"&&(u.flags|=4),typeof Y.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof Y.componentDidUpdate!="function"||ue===l.memoizedProps&&Qe===l.memoizedState||(u.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||ue===l.memoizedProps&&Qe===l.memoizedState||(u.flags|=1024),u.memoizedProps=S,u.memoizedState=Et),Y.props=S,Y.state=Et,Y.context=he,S=Me):(typeof Y.componentDidUpdate!="function"||ue===l.memoizedProps&&Qe===l.memoizedState||(u.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||ue===l.memoizedProps&&Qe===l.memoizedState||(u.flags|=1024),S=!1)}return my(l,u,g,S,A,N)}function my(l,u,g,S,N,A){N1(l,u);var Y=(u.flags&128)!==0;if(!S&&!Y)return N&&Lw(u,g,!1),Us(l,u,A);S=u.stateNode,qA.current=u;var ue=Y&&typeof g.getDerivedStateFromError!="function"?null:S.render();return u.flags|=1,l!==null&&Y?(u.child=Ol(u,l.child,null,A),u.child=Ol(u,null,ue,A)):Yr(l,u,ue,A),u.memoizedState=S.state,N&&Lw(u,g,!0),u.child}function M1(l){var u=l.stateNode;u.pendingContext?zw(l,u.pendingContext,u.pendingContext!==u.context):u.context&&zw(l,u.context,!1),Qg(l,u.containerInfo)}function O1(l,u,g,S,N){return Ml(),Vg(N),u.flags|=256,Yr(l,u,g,S),u.child}var hy={dehydrated:null,treeContext:null,retryLane:0};function gy(l){return{baseLanes:l,cachePool:null,transitions:null}}function z1(l,u,g){var S=u.pendingProps,N=qn.current,A=!1,Y=(u.flags&128)!==0,ue;if((ue=Y)||(ue=l!==null&&l.memoizedState===null?!1:(N&2)!==0),ue?(A=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(N|=1),Dn(qn,N&1),l===null)return Wg(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(Y=S.children,l=S.fallback,A?(S=u.mode,A=u.child,Y={mode:"hidden",children:Y},(S&1)===0&&A!==null?(A.childLanes=0,A.pendingProps=Y):A=ap(Y,S,0,null),l=xa(l,S,g,null),A.return=u,l.return=u,A.sibling=l,u.child=A,u.child.memoizedState=gy(g),u.memoizedState=hy,l):yy(u,Y));if(N=l.memoizedState,N!==null&&(ue=N.dehydrated,ue!==null))return GA(l,u,Y,S,ue,N,g);if(A){A=S.fallback,Y=u.mode,N=l.child,ue=N.sibling;var he={mode:"hidden",children:S.children};return(Y&1)===0&&u.child!==N?(S=u.child,S.childLanes=0,S.pendingProps=he,u.deletions=null):(S=Ei(N,he),S.subtreeFlags=N.subtreeFlags&14680064),ue!==null?A=Ei(ue,A):(A=xa(A,Y,g,null),A.flags|=2),A.return=u,S.return=u,S.sibling=A,u.child=S,S=A,A=u.child,Y=l.child.memoizedState,Y=Y===null?gy(g):{baseLanes:Y.baseLanes|g,cachePool:null,transitions:Y.transitions},A.memoizedState=Y,A.childLanes=l.childLanes&~g,u.memoizedState=hy,S}return A=l.child,l=A.sibling,S=Ei(A,{mode:"visible",children:S.children}),(u.mode&1)===0&&(S.lanes=g),S.return=u,S.sibling=null,l!==null&&(g=u.deletions,g===null?(u.deletions=[l],u.flags|=16):g.push(l)),u.child=S,u.memoizedState=null,S}function yy(l,u){return u=ap({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function Gf(l,u,g,S){return S!==null&&Vg(S),Ol(u,l.child,null,g),l=yy(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function GA(l,u,g,S,N,A,Y){if(g)return u.flags&256?(u.flags&=-257,S=dy(Error(n(422))),Gf(l,u,Y,S)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(A=S.fallback,N=u.mode,S=ap({mode:"visible",children:S.children},N,0,null),A=xa(A,N,Y,null),A.flags|=2,S.return=u,A.return=u,S.sibling=A,u.child=S,(u.mode&1)!==0&&Ol(u,l.child,null,Y),u.child.memoizedState=gy(Y),u.memoizedState=hy,A);if((u.mode&1)===0)return Gf(l,u,Y,null);if(N.data==="$!"){if(S=N.nextSibling&&N.nextSibling.dataset,S)var ue=S.dgst;return S=ue,A=Error(n(419)),S=dy(A,S,void 0),Gf(l,u,Y,S)}if(ue=(Y&l.childLanes)!==0,ao||ue){if(S=xr,S!==null){switch(Y&-Y){case 4:N=2;break;case 16:N=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:N=32;break;case 536870912:N=268435456;break;default:N=0}N=(N&(S.suspendedLanes|Y))!==0?0:N,N!==0&&N!==A.retryLane&&(A.retryLane=N,Vs(l,N),os(S,l,N,-1))}return zy(),S=dy(Error(n(421))),Gf(l,u,Y,S)}return N.data==="$?"?(u.flags|=128,u.child=l.child,u=aL.bind(null,l),N._reactRetry=u,null):(l=A.treeContext,wo=mi(N.nextSibling),$o=u,Kn=!0,es=null,l!==null&&(Ao[Lo++]=js,Ao[Lo++]=Ws,Ao[Lo++]=da,js=l.id,Ws=l.overflow,da=u),u=yy(u,S.children),u.flags|=4096,u)}function A1(l,u,g){l.lanes|=u;var S=l.alternate;S!==null&&(S.lanes|=u),Gg(l.return,u,g)}function by(l,u,g,S,N){var A=l.memoizedState;A===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:S,tail:g,tailMode:N}:(A.isBackwards=u,A.rendering=null,A.renderingStartTime=0,A.last=S,A.tail=g,A.tailMode=N)}function L1(l,u,g){var S=u.pendingProps,N=S.revealOrder,A=S.tail;if(Yr(l,u,S.children,g),S=qn.current,(S&2)!==0)S=S&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&A1(l,g,u);else if(l.tag===19)A1(l,g,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}S&=1}if(Dn(qn,S),(u.mode&1)===0)u.memoizedState=null;else switch(N){case"forwards":for(g=u.child,N=null;g!==null;)l=g.alternate,l!==null&&Hf(l)===null&&(N=g),g=g.sibling;g=N,g===null?(N=u.child,u.child=null):(N=g.sibling,g.sibling=null),by(u,!1,N,g,A);break;case"backwards":for(g=null,N=u.child,u.child=null;N!==null;){if(l=N.alternate,l!==null&&Hf(l)===null){u.child=N;break}l=N.sibling,N.sibling=g,g=N,N=l}by(u,!0,g,null,A);break;case"together":by(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Xf(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Us(l,u,g){if(l!==null&&(u.dependencies=l.dependencies),ga|=u.lanes,(g&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(n(153));if(u.child!==null){for(l=u.child,g=Ei(l,l.pendingProps),u.child=g,g.return=u;l.sibling!==null;)l=l.sibling,g=g.sibling=Ei(l,l.pendingProps),g.return=u;g.sibling=null}return u.child}function XA(l,u,g){switch(u.tag){case 3:M1(u),Ml();break;case 5:Xw(u);break;case 1:io(u.type)&&Mf(u);break;case 4:Qg(u,u.stateNode.containerInfo);break;case 10:var S=u.type._context,N=u.memoizedProps.value;Dn(Bf,S._currentValue),S._currentValue=N;break;case 13:if(S=u.memoizedState,S!==null)return S.dehydrated!==null?(Dn(qn,qn.current&1),u.flags|=128,null):(g&u.child.childLanes)!==0?z1(l,u,g):(Dn(qn,qn.current&1),l=Us(l,u,g),l!==null?l.sibling:null);Dn(qn,qn.current&1);break;case 19:if(S=(g&u.childLanes)!==0,(l.flags&128)!==0){if(S)return L1(l,u,g);u.flags|=128}if(N=u.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),Dn(qn,qn.current),S)break;return null;case 22:case 23:return u.lanes=0,P1(l,u,g)}return Us(l,u,g)}var D1,vy,B1,_1;D1=function(l,u){for(var g=u.child;g!==null;){if(g.tag===5||g.tag===6)l.appendChild(g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===u)break;for(;g.sibling===null;){if(g.return===null||g.return===u)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},vy=function(){},B1=function(l,u,g,S){var N=l.memoizedProps;if(N!==S){l=u.stateNode,ma(Ss.current);var A=null;switch(g){case"input":N=ie(l,N),S=ie(l,S),A=[];break;case"select":N=k({},N,{value:void 0}),S=k({},S,{value:void 0}),A=[];break;case"textarea":N=Se(l,N),S=Se(l,S),A=[];break;default:typeof N.onClick!="function"&&typeof S.onClick=="function"&&(l.onclick=Pf)}ze(g,S);var Y;g=null;for(Me in N)if(!S.hasOwnProperty(Me)&&N.hasOwnProperty(Me)&&N[Me]!=null)if(Me==="style"){var ue=N[Me];for(Y in ue)ue.hasOwnProperty(Y)&&(g||(g={}),g[Y]="")}else Me!=="dangerouslySetInnerHTML"&&Me!=="children"&&Me!=="suppressContentEditableWarning"&&Me!=="suppressHydrationWarning"&&Me!=="autoFocus"&&(o.hasOwnProperty(Me)?A||(A=[]):(A=A||[]).push(Me,null));for(Me in S){var he=S[Me];if(ue=N?.[Me],S.hasOwnProperty(Me)&&he!==ue&&(he!=null||ue!=null))if(Me==="style")if(ue){for(Y in ue)!ue.hasOwnProperty(Y)||he&&he.hasOwnProperty(Y)||(g||(g={}),g[Y]="");for(Y in he)he.hasOwnProperty(Y)&&ue[Y]!==he[Y]&&(g||(g={}),g[Y]=he[Y])}else g||(A||(A=[]),A.push(Me,g)),g=he;else Me==="dangerouslySetInnerHTML"?(he=he?he.__html:void 0,ue=ue?ue.__html:void 0,he!=null&&ue!==he&&(A=A||[]).push(Me,he)):Me==="children"?typeof he!="string"&&typeof he!="number"||(A=A||[]).push(Me,""+he):Me!=="suppressContentEditableWarning"&&Me!=="suppressHydrationWarning"&&(o.hasOwnProperty(Me)?(he!=null&&Me==="onScroll"&&Bn("scroll",l),A||ue===he||(A=[])):(A=A||[]).push(Me,he))}g&&(A=A||[]).push("style",g);var Me=A;(u.updateQueue=Me)&&(u.flags|=4)}},_1=function(l,u,g,S){g!==S&&(u.flags|=4)};function xu(l,u){if(!Kn)switch(l.tailMode){case"hidden":u=l.tail;for(var g=null;u!==null;)u.alternate!==null&&(g=u),u=u.sibling;g===null?l.tail=null:g.sibling=null;break;case"collapsed":g=l.tail;for(var S=null;g!==null;)g.alternate!==null&&(S=g),g=g.sibling;S===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:S.sibling=null}}function Hr(l){var u=l.alternate!==null&&l.alternate.child===l.child,g=0,S=0;if(u)for(var N=l.child;N!==null;)g|=N.lanes|N.childLanes,S|=N.subtreeFlags&14680064,S|=N.flags&14680064,N.return=l,N=N.sibling;else for(N=l.child;N!==null;)g|=N.lanes|N.childLanes,S|=N.subtreeFlags,S|=N.flags,N.return=l,N=N.sibling;return l.subtreeFlags|=S,l.childLanes=g,u}function YA(l,u,g){var S=u.pendingProps;switch(Hg(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hr(u),null;case 1:return io(u.type)&&Tf(),Hr(u),null;case 3:return S=u.stateNode,Ll(),_n(so),_n(Fr),ey(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),(l===null||l.child===null)&&(Lf(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,es!==null&&(Ty(es),es=null))),vy(l,u),Hr(u),null;case 5:Jg(u);var N=ma(hu.current);if(g=u.type,l!==null&&u.stateNode!=null)B1(l,u,g,S,N),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!S){if(u.stateNode===null)throw Error(n(166));return Hr(u),null}if(l=ma(Ss.current),Lf(u)){S=u.stateNode,g=u.type;var A=u.memoizedProps;switch(S[Cs]=u,S[uu]=A,l=(u.mode&1)!==0,g){case"dialog":Bn("cancel",S),Bn("close",S);break;case"iframe":case"object":case"embed":Bn("load",S);break;case"video":case"audio":for(N=0;N<au.length;N++)Bn(au[N],S);break;case"source":Bn("error",S);break;case"img":case"image":case"link":Bn("error",S),Bn("load",S);break;case"details":Bn("toggle",S);break;case"input":re(S,A),Bn("invalid",S);break;case"select":S._wrapperState={wasMultiple:!!A.multiple},Bn("invalid",S);break;case"textarea":Fe(S,A),Bn("invalid",S)}ze(g,A),N=null;for(var Y in A)if(A.hasOwnProperty(Y)){var ue=A[Y];Y==="children"?typeof ue=="string"?S.textContent!==ue&&(A.suppressHydrationWarning!==!0&&If(S.textContent,ue,l),N=["children",ue]):typeof ue=="number"&&S.textContent!==""+ue&&(A.suppressHydrationWarning!==!0&&If(S.textContent,ue,l),N=["children",""+ue]):o.hasOwnProperty(Y)&&ue!=null&&Y==="onScroll"&&Bn("scroll",S)}switch(g){case"input":pe(S),se(S,A,!0);break;case"textarea":pe(S),Ne(S);break;case"select":case"option":break;default:typeof A.onClick=="function"&&(S.onclick=Pf)}S=N,u.updateQueue=S,S!==null&&(u.flags|=4)}else{Y=N.nodeType===9?N:N.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=_e(g)),l==="http://www.w3.org/1999/xhtml"?g==="script"?(l=Y.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof S.is=="string"?l=Y.createElement(g,{is:S.is}):(l=Y.createElement(g),g==="select"&&(Y=l,S.multiple?Y.multiple=!0:S.size&&(Y.size=S.size))):l=Y.createElementNS(l,g),l[Cs]=u,l[uu]=S,D1(l,u,!1,!1),u.stateNode=l;e:{switch(Y=Ve(g,S),g){case"dialog":Bn("cancel",l),Bn("close",l),N=S;break;case"iframe":case"object":case"embed":Bn("load",l),N=S;break;case"video":case"audio":for(N=0;N<au.length;N++)Bn(au[N],l);N=S;break;case"source":Bn("error",l),N=S;break;case"img":case"image":case"link":Bn("error",l),Bn("load",l),N=S;break;case"details":Bn("toggle",l),N=S;break;case"input":re(l,S),N=ie(l,S),Bn("invalid",l);break;case"option":N=S;break;case"select":l._wrapperState={wasMultiple:!!S.multiple},N=k({},S,{value:void 0}),Bn("invalid",l);break;case"textarea":Fe(l,S),N=Se(l,S),Bn("invalid",l);break;default:N=S}ze(g,N),ue=N;for(A in ue)if(ue.hasOwnProperty(A)){var he=ue[A];A==="style"?je(l,he):A==="dangerouslySetInnerHTML"?(he=he?he.__html:void 0,he!=null&&Le(l,he)):A==="children"?typeof he=="string"?(g!=="textarea"||he!=="")&&He(l,he):typeof he=="number"&&He(l,""+he):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(o.hasOwnProperty(A)?he!=null&&A==="onScroll"&&Bn("scroll",l):he!=null&&C(l,A,he,Y))}switch(g){case"input":pe(l),se(l,S,!1);break;case"textarea":pe(l),Ne(l);break;case"option":S.value!=null&&l.setAttribute("value",""+ne(S.value));break;case"select":l.multiple=!!S.multiple,A=S.value,A!=null?Ee(l,!!S.multiple,A,!1):S.defaultValue!=null&&Ee(l,!!S.multiple,S.defaultValue,!0);break;default:typeof N.onClick=="function"&&(l.onclick=Pf)}switch(g){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}}S&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return Hr(u),null;case 6:if(l&&u.stateNode!=null)_1(l,u,l.memoizedProps,S);else{if(typeof S!="string"&&u.stateNode===null)throw Error(n(166));if(g=ma(hu.current),ma(Ss.current),Lf(u)){if(S=u.stateNode,g=u.memoizedProps,S[Cs]=u,(A=S.nodeValue!==g)&&(l=$o,l!==null))switch(l.tag){case 3:If(S.nodeValue,g,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&If(S.nodeValue,g,(l.mode&1)!==0)}A&&(u.flags|=4)}else S=(g.nodeType===9?g:g.ownerDocument).createTextNode(S),S[Cs]=u,u.stateNode=S}return Hr(u),null;case 13:if(_n(qn),S=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(Kn&&wo!==null&&(u.mode&1)!==0&&(u.flags&128)===0)Hw(),Ml(),u.flags|=98560,A=!1;else if(A=Lf(u),S!==null&&S.dehydrated!==null){if(l===null){if(!A)throw Error(n(318));if(A=u.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(n(317));A[Cs]=u}else Ml(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Hr(u),A=!1}else es!==null&&(Ty(es),es=null),A=!0;if(!A)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=g,u):(S=S!==null,S!==(l!==null&&l.memoizedState!==null)&&S&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(qn.current&1)!==0?pr===0&&(pr=3):zy())),u.updateQueue!==null&&(u.flags|=4),Hr(u),null);case 4:return Ll(),vy(l,u),l===null&&lu(u.stateNode.containerInfo),Hr(u),null;case 10:return qg(u.type._context),Hr(u),null;case 17:return io(u.type)&&Tf(),Hr(u),null;case 19:if(_n(qn),A=u.memoizedState,A===null)return Hr(u),null;if(S=(u.flags&128)!==0,Y=A.rendering,Y===null)if(S)xu(A,!1);else{if(pr!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if(Y=Hf(l),Y!==null){for(u.flags|=128,xu(A,!1),S=Y.updateQueue,S!==null&&(u.updateQueue=S,u.flags|=4),u.subtreeFlags=0,S=g,g=u.child;g!==null;)A=g,l=S,A.flags&=14680066,Y=A.alternate,Y===null?(A.childLanes=0,A.lanes=l,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=Y.childLanes,A.lanes=Y.lanes,A.child=Y.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=Y.memoizedProps,A.memoizedState=Y.memoizedState,A.updateQueue=Y.updateQueue,A.type=Y.type,l=Y.dependencies,A.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),g=g.sibling;return Dn(qn,qn.current&1|2),u.child}l=l.sibling}A.tail!==null&&It()>Fl&&(u.flags|=128,S=!0,xu(A,!1),u.lanes=4194304)}else{if(!S)if(l=Hf(Y),l!==null){if(u.flags|=128,S=!0,g=l.updateQueue,g!==null&&(u.updateQueue=g,u.flags|=4),xu(A,!0),A.tail===null&&A.tailMode==="hidden"&&!Y.alternate&&!Kn)return Hr(u),null}else 2*It()-A.renderingStartTime>Fl&&g!==1073741824&&(u.flags|=128,S=!0,xu(A,!1),u.lanes=4194304);A.isBackwards?(Y.sibling=u.child,u.child=Y):(g=A.last,g!==null?g.sibling=Y:u.child=Y,A.last=Y)}return A.tail!==null?(u=A.tail,A.rendering=u,A.tail=u.sibling,A.renderingStartTime=It(),u.sibling=null,g=qn.current,Dn(qn,S?g&1|2:g&1),u):(Hr(u),null);case 22:case 23:return Oy(),S=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==S&&(u.flags|=8192),S&&(u.mode&1)!==0?(Eo&1073741824)!==0&&(Hr(u),u.subtreeFlags&6&&(u.flags|=8192)):Hr(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function QA(l,u){switch(Hg(u),u.tag){case 1:return io(u.type)&&Tf(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return Ll(),_n(so),_n(Fr),ey(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return Jg(u),null;case 13:if(_n(qn),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(n(340));Ml()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return _n(qn),null;case 4:return Ll(),null;case 10:return qg(u.type._context),null;case 22:case 23:return Oy(),null;case 24:return null;default:return null}}var Yf=!1,jr=!1,JA=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Bl(l,u){var g=l.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(S){Yn(l,u,S)}else g.current=null}function xy(l,u,g){try{g()}catch(S){Yn(l,u,S)}}var F1=!1;function ZA(l,u){if(Og=gf,l=yw(),wg(l)){if("selectionStart"in l)var g={start:l.selectionStart,end:l.selectionEnd};else e:{g=(g=l.ownerDocument)&&g.defaultView||window;var S=g.getSelection&&g.getSelection();if(S&&S.rangeCount!==0){g=S.anchorNode;var N=S.anchorOffset,A=S.focusNode;S=S.focusOffset;try{g.nodeType,A.nodeType}catch{g=null;break e}var Y=0,ue=-1,he=-1,Me=0,et=0,rt=l,Qe=null;t:for(;;){for(var yt;rt!==g||N!==0&&rt.nodeType!==3||(ue=Y+N),rt!==A||S!==0&&rt.nodeType!==3||(he=Y+S),rt.nodeType===3&&(Y+=rt.nodeValue.length),(yt=rt.firstChild)!==null;)Qe=rt,rt=yt;for(;;){if(rt===l)break t;if(Qe===g&&++Me===N&&(ue=Y),Qe===A&&++et===S&&(he=Y),(yt=rt.nextSibling)!==null)break;rt=Qe,Qe=rt.parentNode}rt=yt}g=ue===-1||he===-1?null:{start:ue,end:he}}else g=null}g=g||{start:0,end:0}}else g=null;for(zg={focusedElem:l,selectionRange:g},gf=!1,$t=u;$t!==null;)if(u=$t,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,$t=l;else for(;$t!==null;){u=$t;try{var Et=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Et!==null){var Pt=Et.memoizedProps,tr=Et.memoizedState,$e=u.stateNode,be=$e.getSnapshotBeforeUpdate(u.elementType===u.type?Pt:ts(u.type,Pt),tr);$e.__reactInternalSnapshotBeforeUpdate=be}break;case 3:var Pe=u.stateNode.containerInfo;Pe.nodeType===1?Pe.textContent="":Pe.nodeType===9&&Pe.documentElement&&Pe.removeChild(Pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(it){Yn(u,u.return,it)}if(l=u.sibling,l!==null){l.return=u.return,$t=l;break}$t=u.return}return Et=F1,F1=!1,Et}function Cu(l,u,g){var S=u.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var N=S=S.next;do{if((N.tag&l)===l){var A=N.destroy;N.destroy=void 0,A!==void 0&&xy(u,g,A)}N=N.next}while(N!==S)}}function Qf(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do{if((g.tag&l)===l){var S=g.create;g.destroy=S()}g=g.next}while(g!==u)}}function Cy(l){var u=l.ref;if(u!==null){var g=l.stateNode;switch(l.tag){case 5:l=g;break;default:l=g}typeof u=="function"?u(l):u.current=l}}function k1(l){var u=l.alternate;u!==null&&(l.alternate=null,k1(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[Cs],delete u[uu],delete u[Bg],delete u[LA],delete u[DA])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function H1(l){return l.tag===5||l.tag===3||l.tag===4}function j1(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||H1(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Sy(l,u,g){var S=l.tag;if(S===5||S===6)l=l.stateNode,u?g.nodeType===8?g.parentNode.insertBefore(l,u):g.insertBefore(l,u):(g.nodeType===8?(u=g.parentNode,u.insertBefore(l,g)):(u=g,u.appendChild(l)),g=g._reactRootContainer,g!=null||u.onclick!==null||(u.onclick=Pf));else if(S!==4&&(l=l.child,l!==null))for(Sy(l,u,g),l=l.sibling;l!==null;)Sy(l,u,g),l=l.sibling}function $y(l,u,g){var S=l.tag;if(S===5||S===6)l=l.stateNode,u?g.insertBefore(l,u):g.appendChild(l);else if(S!==4&&(l=l.child,l!==null))for($y(l,u,g),l=l.sibling;l!==null;)$y(l,u,g),l=l.sibling}var Ir=null,ns=!1;function xi(l,u,g){for(g=g.child;g!==null;)W1(l,u,g),g=g.sibling}function W1(l,u,g){if(jn&&typeof jn.onCommitFiberUnmount=="function")try{jn.onCommitFiberUnmount(dr,g)}catch{}switch(g.tag){case 5:jr||Bl(g,u);case 6:var S=Ir,N=ns;Ir=null,xi(l,u,g),Ir=S,ns=N,Ir!==null&&(ns?(l=Ir,g=g.stateNode,l.nodeType===8?l.parentNode.removeChild(g):l.removeChild(g)):Ir.removeChild(g.stateNode));break;case 18:Ir!==null&&(ns?(l=Ir,g=g.stateNode,l.nodeType===8?Dg(l.parentNode,g):l.nodeType===1&&Dg(l,g),Zc(l)):Dg(Ir,g.stateNode));break;case 4:S=Ir,N=ns,Ir=g.stateNode.containerInfo,ns=!0,xi(l,u,g),Ir=S,ns=N;break;case 0:case 11:case 14:case 15:if(!jr&&(S=g.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){N=S=S.next;do{var A=N,Y=A.destroy;A=A.tag,Y!==void 0&&((A&2)!==0||(A&4)!==0)&&xy(g,u,Y),N=N.next}while(N!==S)}xi(l,u,g);break;case 1:if(!jr&&(Bl(g,u),S=g.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=g.memoizedProps,S.state=g.memoizedState,S.componentWillUnmount()}catch(ue){Yn(g,u,ue)}xi(l,u,g);break;case 21:xi(l,u,g);break;case 22:g.mode&1?(jr=(S=jr)||g.memoizedState!==null,xi(l,u,g),jr=S):xi(l,u,g);break;default:xi(l,u,g)}}function V1(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var g=l.stateNode;g===null&&(g=l.stateNode=new JA),u.forEach(function(S){var N=lL.bind(null,l,S);g.has(S)||(g.add(S),S.then(N,N))})}}function rs(l,u){var g=u.deletions;if(g!==null)for(var S=0;S<g.length;S++){var N=g[S];try{var A=l,Y=u,ue=Y;e:for(;ue!==null;){switch(ue.tag){case 5:Ir=ue.stateNode,ns=!1;break e;case 3:Ir=ue.stateNode.containerInfo,ns=!0;break e;case 4:Ir=ue.stateNode.containerInfo,ns=!0;break e}ue=ue.return}if(Ir===null)throw Error(n(160));W1(A,Y,N),Ir=null,ns=!1;var he=N.alternate;he!==null&&(he.return=null),N.return=null}catch(Me){Yn(N,u,Me)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)K1(u,l),u=u.sibling}function K1(l,u){var g=l.alternate,S=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(rs(u,l),ws(l),S&4){try{Cu(3,l,l.return),Qf(3,l)}catch(Pt){Yn(l,l.return,Pt)}try{Cu(5,l,l.return)}catch(Pt){Yn(l,l.return,Pt)}}break;case 1:rs(u,l),ws(l),S&512&&g!==null&&Bl(g,g.return);break;case 5:if(rs(u,l),ws(l),S&512&&g!==null&&Bl(g,g.return),l.flags&32){var N=l.stateNode;try{He(N,"")}catch(Pt){Yn(l,l.return,Pt)}}if(S&4&&(N=l.stateNode,N!=null)){var A=l.memoizedProps,Y=g!==null?g.memoizedProps:A,ue=l.type,he=l.updateQueue;if(l.updateQueue=null,he!==null)try{ue==="input"&&A.type==="radio"&&A.name!=null&&de(N,A),Ve(ue,Y);var Me=Ve(ue,A);for(Y=0;Y<he.length;Y+=2){var et=he[Y],rt=he[Y+1];et==="style"?je(N,rt):et==="dangerouslySetInnerHTML"?Le(N,rt):et==="children"?He(N,rt):C(N,et,rt,Me)}switch(ue){case"input":ge(N,A);break;case"textarea":qe(N,A);break;case"select":var Qe=N._wrapperState.wasMultiple;N._wrapperState.wasMultiple=!!A.multiple;var yt=A.value;yt!=null?Ee(N,!!A.multiple,yt,!1):Qe!==!!A.multiple&&(A.defaultValue!=null?Ee(N,!!A.multiple,A.defaultValue,!0):Ee(N,!!A.multiple,A.multiple?[]:"",!1))}N[uu]=A}catch(Pt){Yn(l,l.return,Pt)}}break;case 6:if(rs(u,l),ws(l),S&4){if(l.stateNode===null)throw Error(n(162));N=l.stateNode,A=l.memoizedProps;try{N.nodeValue=A}catch(Pt){Yn(l,l.return,Pt)}}break;case 3:if(rs(u,l),ws(l),S&4&&g!==null&&g.memoizedState.isDehydrated)try{Zc(u.containerInfo)}catch(Pt){Yn(l,l.return,Pt)}break;case 4:rs(u,l),ws(l);break;case 13:rs(u,l),ws(l),N=l.child,N.flags&8192&&(A=N.memoizedState!==null,N.stateNode.isHidden=A,!A||N.alternate!==null&&N.alternate.memoizedState!==null||(Ry=It())),S&4&&V1(l);break;case 22:if(et=g!==null&&g.memoizedState!==null,l.mode&1?(jr=(Me=jr)||et,rs(u,l),jr=Me):rs(u,l),ws(l),S&8192){if(Me=l.memoizedState!==null,(l.stateNode.isHidden=Me)&&!et&&(l.mode&1)!==0)for($t=l,et=l.child;et!==null;){for(rt=$t=et;$t!==null;){switch(Qe=$t,yt=Qe.child,Qe.tag){case 0:case 11:case 14:case 15:Cu(4,Qe,Qe.return);break;case 1:Bl(Qe,Qe.return);var Et=Qe.stateNode;if(typeof Et.componentWillUnmount=="function"){S=Qe,g=Qe.return;try{u=S,Et.props=u.memoizedProps,Et.state=u.memoizedState,Et.componentWillUnmount()}catch(Pt){Yn(S,g,Pt)}}break;case 5:Bl(Qe,Qe.return);break;case 22:if(Qe.memoizedState!==null){G1(rt);continue}}yt!==null?(yt.return=Qe,$t=yt):G1(rt)}et=et.sibling}e:for(et=null,rt=l;;){if(rt.tag===5){if(et===null){et=rt;try{N=rt.stateNode,Me?(A=N.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none"):(ue=rt.stateNode,he=rt.memoizedProps.style,Y=he!=null&&he.hasOwnProperty("display")?he.display:null,ue.style.display=st("display",Y))}catch(Pt){Yn(l,l.return,Pt)}}}else if(rt.tag===6){if(et===null)try{rt.stateNode.nodeValue=Me?"":rt.memoizedProps}catch(Pt){Yn(l,l.return,Pt)}}else if((rt.tag!==22&&rt.tag!==23||rt.memoizedState===null||rt===l)&&rt.child!==null){rt.child.return=rt,rt=rt.child;continue}if(rt===l)break e;for(;rt.sibling===null;){if(rt.return===null||rt.return===l)break e;et===rt&&(et=null),rt=rt.return}et===rt&&(et=null),rt.sibling.return=rt.return,rt=rt.sibling}}break;case 19:rs(u,l),ws(l),S&4&&V1(l);break;case 21:break;default:rs(u,l),ws(l)}}function ws(l){var u=l.flags;if(u&2){try{e:{for(var g=l.return;g!==null;){if(H1(g)){var S=g;break e}g=g.return}throw Error(n(160))}switch(S.tag){case 5:var N=S.stateNode;S.flags&32&&(He(N,""),S.flags&=-33);var A=j1(l);$y(l,A,N);break;case 3:case 4:var Y=S.stateNode.containerInfo,ue=j1(l);Sy(l,ue,Y);break;default:throw Error(n(161))}}catch(he){Yn(l,l.return,he)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function eL(l,u,g){$t=l,U1(l)}function U1(l,u,g){for(var S=(l.mode&1)!==0;$t!==null;){var N=$t,A=N.child;if(N.tag===22&&S){var Y=N.memoizedState!==null||Yf;if(!Y){var ue=N.alternate,he=ue!==null&&ue.memoizedState!==null||jr;ue=Yf;var Me=jr;if(Yf=Y,(jr=he)&&!Me)for($t=N;$t!==null;)Y=$t,he=Y.child,Y.tag===22&&Y.memoizedState!==null?X1(N):he!==null?(he.return=Y,$t=he):X1(N);for(;A!==null;)$t=A,U1(A),A=A.sibling;$t=N,Yf=ue,jr=Me}q1(l)}else(N.subtreeFlags&8772)!==0&&A!==null?(A.return=N,$t=A):q1(l)}}function q1(l){for(;$t!==null;){var u=$t;if((u.flags&8772)!==0){var g=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:jr||Qf(5,u);break;case 1:var S=u.stateNode;if(u.flags&4&&!jr)if(g===null)S.componentDidMount();else{var N=u.elementType===u.type?g.memoizedProps:ts(u.type,g.memoizedProps);S.componentDidUpdate(N,g.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var A=u.updateQueue;A!==null&&Gw(u,A,S);break;case 3:var Y=u.updateQueue;if(Y!==null){if(g=null,u.child!==null)switch(u.child.tag){case 5:g=u.child.stateNode;break;case 1:g=u.child.stateNode}Gw(u,Y,g)}break;case 5:var ue=u.stateNode;if(g===null&&u.flags&4){g=ue;var he=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":he.autoFocus&&g.focus();break;case"img":he.src&&(g.src=he.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var Me=u.alternate;if(Me!==null){var et=Me.memoizedState;if(et!==null){var rt=et.dehydrated;rt!==null&&Zc(rt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}jr||u.flags&512&&Cy(u)}catch(Qe){Yn(u,u.return,Qe)}}if(u===l){$t=null;break}if(g=u.sibling,g!==null){g.return=u.return,$t=g;break}$t=u.return}}function G1(l){for(;$t!==null;){var u=$t;if(u===l){$t=null;break}var g=u.sibling;if(g!==null){g.return=u.return,$t=g;break}$t=u.return}}function X1(l){for(;$t!==null;){var u=$t;try{switch(u.tag){case 0:case 11:case 15:var g=u.return;try{Qf(4,u)}catch(he){Yn(u,g,he)}break;case 1:var S=u.stateNode;if(typeof S.componentDidMount=="function"){var N=u.return;try{S.componentDidMount()}catch(he){Yn(u,N,he)}}var A=u.return;try{Cy(u)}catch(he){Yn(u,A,he)}break;case 5:var Y=u.return;try{Cy(u)}catch(he){Yn(u,Y,he)}}}catch(he){Yn(u,u.return,he)}if(u===l){$t=null;break}var ue=u.sibling;if(ue!==null){ue.return=u.return,$t=ue;break}$t=u.return}}var tL=Math.ceil,Jf=w.ReactCurrentDispatcher,wy=w.ReactCurrentOwner,_o=w.ReactCurrentBatchConfig,gn=0,xr=null,sr=null,Pr=0,Eo=0,_l=hi(0),pr=0,Su=null,ga=0,Zf=0,Ey=0,$u=null,lo=null,Ry=0,Fl=1/0,qs=null,ep=!1,Iy=null,Ci=null,tp=!1,Si=null,np=0,wu=0,Py=null,rp=-1,op=0;function Qr(){return(gn&6)!==0?It():rp!==-1?rp:rp=It()}function $i(l){return(l.mode&1)===0?1:(gn&2)!==0&&Pr!==0?Pr&-Pr:_A.transition!==null?(op===0&&(op=pt()),op):(l=bn,l!==0||(l=window.event,l=l===void 0?16:Q$(l.type)),l)}function os(l,u,g,S){if(50<wu)throw wu=0,Py=null,Error(n(185));xs(l,g,S),((gn&2)===0||l!==xr)&&(l===xr&&((gn&2)===0&&(Zf|=g),pr===4&&wi(l,Pr)),co(l,S),g===1&&gn===0&&(u.mode&1)===0&&(Fl=It()+500,Of&&yi()))}function co(l,u){var g=l.callbackNode;vs(l,u);var S=_r(l,l===xr?Pr:0);if(S===0)g!==null&&Nt(g),l.callbackNode=null,l.callbackPriority=0;else if(u=S&-S,l.callbackPriority!==u){if(g!=null&&Nt(g),u===1)l.tag===0?BA(Q1.bind(null,l)):Dw(Q1.bind(null,l)),zA(function(){(gn&6)===0&&yi()}),g=null;else{switch(pf(S)){case 1:g=In;break;case 4:g=Ln;break;case 16:g=An;break;case 536870912:g=Br;break;default:g=An}g=sE(g,Y1.bind(null,l))}l.callbackPriority=u,l.callbackNode=g}}function Y1(l,u){if(rp=-1,op=0,(gn&6)!==0)throw Error(n(327));var g=l.callbackNode;if(kl()&&l.callbackNode!==g)return null;var S=_r(l,l===xr?Pr:0);if(S===0)return null;if((S&30)!==0||(S&l.expiredLanes)!==0||u)u=sp(l,S);else{u=S;var N=gn;gn|=2;var A=Z1();(xr!==l||Pr!==u)&&(qs=null,Fl=It()+500,ba(l,u));do try{oL();break}catch(ue){J1(l,ue)}while(!0);Ug(),Jf.current=A,gn=N,sr!==null?u=0:(xr=null,Pr=0,u=pr)}if(u!==0){if(u===2&&(N=la(l),N!==0&&(S=N,u=Ny(l,N))),u===1)throw g=Su,ba(l,0),wi(l,S),co(l,It()),g;if(u===6)wi(l,S);else{if(N=l.current.alternate,(S&30)===0&&!nL(N)&&(u=sp(l,S),u===2&&(A=la(l),A!==0&&(S=A,u=Ny(l,A))),u===1))throw g=Su,ba(l,0),wi(l,S),co(l,It()),g;switch(l.finishedWork=N,l.finishedLanes=S,u){case 0:case 1:throw Error(n(345));case 2:va(l,lo,qs);break;case 3:if(wi(l,S),(S&130023424)===S&&(u=Ry+500-It(),10<u)){if(_r(l,0)!==0)break;if(N=l.suspendedLanes,(N&S)!==S){Qr(),l.pingedLanes|=l.suspendedLanes&N;break}l.timeoutHandle=Lg(va.bind(null,l,lo,qs),u);break}va(l,lo,qs);break;case 4:if(wi(l,S),(S&4194240)===S)break;for(u=l.eventTimes,N=-1;0<S;){var Y=31-We(S);A=1<<Y,Y=u[Y],Y>N&&(N=Y),S&=~A}if(S=N,S=It()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*tL(S/1960))-S,10<S){l.timeoutHandle=Lg(va.bind(null,l,lo,qs),S);break}va(l,lo,qs);break;case 5:va(l,lo,qs);break;default:throw Error(n(329))}}}return co(l,It()),l.callbackNode===g?Y1.bind(null,l):null}function Ny(l,u){var g=$u;return l.current.memoizedState.isDehydrated&&(ba(l,u).flags|=256),l=sp(l,u),l!==2&&(u=lo,lo=g,u!==null&&Ty(u)),l}function Ty(l){lo===null?lo=l:lo.push.apply(lo,l)}function nL(l){for(var u=l;;){if(u.flags&16384){var g=u.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var S=0;S<g.length;S++){var N=g[S],A=N.getSnapshot;N=N.value;try{if(!Zo(A(),N))return!1}catch{return!1}}}if(g=u.child,u.subtreeFlags&16384&&g!==null)g.return=u,u=g;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function wi(l,u){for(u&=~Ey,u&=~Zf,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var g=31-We(u),S=1<<g;l[g]=-1,u&=~S}}function Q1(l){if((gn&6)!==0)throw Error(n(327));kl();var u=_r(l,0);if((u&1)===0)return co(l,It()),null;var g=sp(l,u);if(l.tag!==0&&g===2){var S=la(l);S!==0&&(u=S,g=Ny(l,S))}if(g===1)throw g=Su,ba(l,0),wi(l,u),co(l,It()),g;if(g===6)throw Error(n(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,va(l,lo,qs),co(l,It()),null}function My(l,u){var g=gn;gn|=1;try{return l(u)}finally{gn=g,gn===0&&(Fl=It()+500,Of&&yi())}}function ya(l){Si!==null&&Si.tag===0&&(gn&6)===0&&kl();var u=gn;gn|=1;var g=_o.transition,S=bn;try{if(_o.transition=null,bn=1,l)return l()}finally{bn=S,_o.transition=g,gn=u,(gn&6)===0&&yi()}}function Oy(){Eo=_l.current,_n(_l)}function ba(l,u){l.finishedWork=null,l.finishedLanes=0;var g=l.timeoutHandle;if(g!==-1&&(l.timeoutHandle=-1,OA(g)),sr!==null)for(g=sr.return;g!==null;){var S=g;switch(Hg(S),S.tag){case 1:S=S.type.childContextTypes,S!=null&&Tf();break;case 3:Ll(),_n(so),_n(Fr),ey();break;case 5:Jg(S);break;case 4:Ll();break;case 13:_n(qn);break;case 19:_n(qn);break;case 10:qg(S.type._context);break;case 22:case 23:Oy()}g=g.return}if(xr=l,sr=l=Ei(l.current,null),Pr=Eo=u,pr=0,Su=null,Ey=Zf=ga=0,lo=$u=null,pa!==null){for(u=0;u<pa.length;u++)if(g=pa[u],S=g.interleaved,S!==null){g.interleaved=null;var N=S.next,A=g.pending;if(A!==null){var Y=A.next;A.next=N,S.next=Y}g.pending=S}pa=null}return l}function J1(l,u){do{var g=sr;try{if(Ug(),jf.current=Uf,Wf){for(var S=Gn.memoizedState;S!==null;){var N=S.queue;N!==null&&(N.pending=null),S=S.next}Wf=!1}if(ha=0,vr=fr=Gn=null,gu=!1,yu=0,wy.current=null,g===null||g.return===null){pr=1,Su=u,sr=null;break}e:{var A=l,Y=g.return,ue=g,he=u;if(u=Pr,ue.flags|=32768,he!==null&&typeof he=="object"&&typeof he.then=="function"){var Me=he,et=ue,rt=et.tag;if((et.mode&1)===0&&(rt===0||rt===11||rt===15)){var Qe=et.alternate;Qe?(et.updateQueue=Qe.updateQueue,et.memoizedState=Qe.memoizedState,et.lanes=Qe.lanes):(et.updateQueue=null,et.memoizedState=null)}var yt=$1(Y);if(yt!==null){yt.flags&=-257,w1(yt,Y,ue,A,u),yt.mode&1&&S1(A,Me,u),u=yt,he=Me;var Et=u.updateQueue;if(Et===null){var Pt=new Set;Pt.add(he),u.updateQueue=Pt}else Et.add(he);break e}else{if((u&1)===0){S1(A,Me,u),zy();break e}he=Error(n(426))}}else if(Kn&&ue.mode&1){var tr=$1(Y);if(tr!==null){(tr.flags&65536)===0&&(tr.flags|=256),w1(tr,Y,ue,A,u),Vg(Dl(he,ue));break e}}A=he=Dl(he,ue),pr!==4&&(pr=2),$u===null?$u=[A]:$u.push(A),A=Y;do{switch(A.tag){case 3:A.flags|=65536,u&=-u,A.lanes|=u;var $e=x1(A,he,u);qw(A,$e);break e;case 1:ue=he;var be=A.type,Pe=A.stateNode;if((A.flags&128)===0&&(typeof be.getDerivedStateFromError=="function"||Pe!==null&&typeof Pe.componentDidCatch=="function"&&(Ci===null||!Ci.has(Pe)))){A.flags|=65536,u&=-u,A.lanes|=u;var it=C1(A,ue,u);qw(A,it);break e}}A=A.return}while(A!==null)}tE(g)}catch(Mt){u=Mt,sr===g&&g!==null&&(sr=g=g.return);continue}break}while(!0)}function Z1(){var l=Jf.current;return Jf.current=Uf,l===null?Uf:l}function zy(){(pr===0||pr===3||pr===2)&&(pr=4),xr===null||(ga&268435455)===0&&(Zf&268435455)===0||wi(xr,Pr)}function sp(l,u){var g=gn;gn|=2;var S=Z1();(xr!==l||Pr!==u)&&(qs=null,ba(l,u));do try{rL();break}catch(N){J1(l,N)}while(!0);if(Ug(),gn=g,Jf.current=S,sr!==null)throw Error(n(261));return xr=null,Pr=0,pr}function rL(){for(;sr!==null;)eE(sr)}function oL(){for(;sr!==null&&!tn();)eE(sr)}function eE(l){var u=oE(l.alternate,l,Eo);l.memoizedProps=l.pendingProps,u===null?tE(l):sr=u,wy.current=null}function tE(l){var u=l;do{var g=u.alternate;if(l=u.return,(u.flags&32768)===0){if(g=YA(g,u,Eo),g!==null){sr=g;return}}else{if(g=QA(g,u),g!==null){g.flags&=32767,sr=g;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{pr=6,sr=null;return}}if(u=u.sibling,u!==null){sr=u;return}sr=u=l}while(u!==null);pr===0&&(pr=5)}function va(l,u,g){var S=bn,N=_o.transition;try{_o.transition=null,bn=1,sL(l,u,g,S)}finally{_o.transition=N,bn=S}return null}function sL(l,u,g,S){do kl();while(Si!==null);if((gn&6)!==0)throw Error(n(327));g=l.finishedWork;var N=l.finishedLanes;if(g===null)return null;if(l.finishedWork=null,l.finishedLanes=0,g===l.current)throw Error(n(177));l.callbackNode=null,l.callbackPriority=0;var A=g.lanes|g.childLanes;if(ug(l,A),l===xr&&(sr=xr=null,Pr=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||tp||(tp=!0,sE(An,function(){return kl(),null})),A=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||A){A=_o.transition,_o.transition=null;var Y=bn;bn=1;var ue=gn;gn|=4,wy.current=null,ZA(l,g),K1(g,l),EA(zg),gf=!!Og,zg=Og=null,l.current=g,eL(g),hn(),gn=ue,bn=Y,_o.transition=A}else l.current=g;if(tp&&(tp=!1,Si=l,np=N),A=l.pendingLanes,A===0&&(Ci=null),Co(g.stateNode),co(l,It()),u!==null)for(S=l.onRecoverableError,g=0;g<u.length;g++)N=u[g],S(N.value,{componentStack:N.stack,digest:N.digest});if(ep)throw ep=!1,l=Iy,Iy=null,l;return(np&1)!==0&&l.tag!==0&&kl(),A=l.pendingLanes,(A&1)!==0?l===Py?wu++:(wu=0,Py=l):wu=0,yi(),null}function kl(){if(Si!==null){var l=pf(np),u=_o.transition,g=bn;try{if(_o.transition=null,bn=16>l?16:l,Si===null)var S=!1;else{if(l=Si,Si=null,np=0,(gn&6)!==0)throw Error(n(331));var N=gn;for(gn|=4,$t=l.current;$t!==null;){var A=$t,Y=A.child;if(($t.flags&16)!==0){var ue=A.deletions;if(ue!==null){for(var he=0;he<ue.length;he++){var Me=ue[he];for($t=Me;$t!==null;){var et=$t;switch(et.tag){case 0:case 11:case 15:Cu(8,et,A)}var rt=et.child;if(rt!==null)rt.return=et,$t=rt;else for(;$t!==null;){et=$t;var Qe=et.sibling,yt=et.return;if(k1(et),et===Me){$t=null;break}if(Qe!==null){Qe.return=yt,$t=Qe;break}$t=yt}}}var Et=A.alternate;if(Et!==null){var Pt=Et.child;if(Pt!==null){Et.child=null;do{var tr=Pt.sibling;Pt.sibling=null,Pt=tr}while(Pt!==null)}}$t=A}}if((A.subtreeFlags&2064)!==0&&Y!==null)Y.return=A,$t=Y;else e:for(;$t!==null;){if(A=$t,(A.flags&2048)!==0)switch(A.tag){case 0:case 11:case 15:Cu(9,A,A.return)}var $e=A.sibling;if($e!==null){$e.return=A.return,$t=$e;break e}$t=A.return}}var be=l.current;for($t=be;$t!==null;){Y=$t;var Pe=Y.child;if((Y.subtreeFlags&2064)!==0&&Pe!==null)Pe.return=Y,$t=Pe;else e:for(Y=be;$t!==null;){if(ue=$t,(ue.flags&2048)!==0)try{switch(ue.tag){case 0:case 11:case 15:Qf(9,ue)}}catch(Mt){Yn(ue,ue.return,Mt)}if(ue===Y){$t=null;break e}var it=ue.sibling;if(it!==null){it.return=ue.return,$t=it;break e}$t=ue.return}}if(gn=N,yi(),jn&&typeof jn.onPostCommitFiberRoot=="function")try{jn.onPostCommitFiberRoot(dr,l)}catch{}S=!0}return S}finally{bn=g,_o.transition=u}}return!1}function nE(l,u,g){u=Dl(g,u),u=x1(l,u,1),l=vi(l,u,1),u=Qr(),l!==null&&(xs(l,1,u),co(l,u))}function Yn(l,u,g){if(l.tag===3)nE(l,l,g);else for(;u!==null;){if(u.tag===3){nE(u,l,g);break}else if(u.tag===1){var S=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Ci===null||!Ci.has(S))){l=Dl(g,l),l=C1(u,l,1),u=vi(u,l,1),l=Qr(),u!==null&&(xs(u,1,l),co(u,l));break}}u=u.return}}function iL(l,u,g){var S=l.pingCache;S!==null&&S.delete(u),u=Qr(),l.pingedLanes|=l.suspendedLanes&g,xr===l&&(Pr&g)===g&&(pr===4||pr===3&&(Pr&130023424)===Pr&&500>It()-Ry?ba(l,0):Ey|=g),co(l,u)}function rE(l,u){u===0&&((l.mode&1)===0?u=1:(u=Wn,Wn<<=1,(Wn&130023424)===0&&(Wn=4194304)));var g=Qr();l=Vs(l,u),l!==null&&(xs(l,u,g),co(l,g))}function aL(l){var u=l.memoizedState,g=0;u!==null&&(g=u.retryLane),rE(l,g)}function lL(l,u){var g=0;switch(l.tag){case 13:var S=l.stateNode,N=l.memoizedState;N!==null&&(g=N.retryLane);break;case 19:S=l.stateNode;break;default:throw Error(n(314))}S!==null&&S.delete(u),rE(l,g)}var oE;oE=function(l,u,g){if(l!==null)if(l.memoizedProps!==u.pendingProps||so.current)ao=!0;else{if((l.lanes&g)===0&&(u.flags&128)===0)return ao=!1,XA(l,u,g);ao=(l.flags&131072)!==0}else ao=!1,Kn&&(u.flags&1048576)!==0&&Bw(u,Af,u.index);switch(u.lanes=0,u.tag){case 2:var S=u.type;Xf(l,u),l=u.pendingProps;var N=Pl(u,Fr.current);Al(u,g),N=ry(null,u,S,l,N,g);var A=oy();return u.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,io(S)?(A=!0,Mf(u)):A=!1,u.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,Yg(u),N.updater=qf,u.stateNode=N,N._reactInternals=u,uy(u,S,l,g),u=my(null,u,S,!0,A,g)):(u.tag=0,Kn&&A&&kg(u),Yr(null,u,N,g),u=u.child),u;case 16:S=u.elementType;e:{switch(Xf(l,u),l=u.pendingProps,N=S._init,S=N(S._payload),u.type=S,N=u.tag=uL(S),l=ts(S,l),N){case 0:u=py(null,u,S,l,g);break e;case 1:u=T1(null,u,S,l,g);break e;case 11:u=E1(null,u,S,l,g);break e;case 14:u=R1(null,u,S,ts(S.type,l),g);break e}throw Error(n(306,S,""))}return u;case 0:return S=u.type,N=u.pendingProps,N=u.elementType===S?N:ts(S,N),py(l,u,S,N,g);case 1:return S=u.type,N=u.pendingProps,N=u.elementType===S?N:ts(S,N),T1(l,u,S,N,g);case 3:e:{if(M1(u),l===null)throw Error(n(387));S=u.pendingProps,A=u.memoizedState,N=A.element,Uw(l,u),kf(u,S,null,g);var Y=u.memoizedState;if(S=Y.element,A.isDehydrated)if(A={element:S,isDehydrated:!1,cache:Y.cache,pendingSuspenseBoundaries:Y.pendingSuspenseBoundaries,transitions:Y.transitions},u.updateQueue.baseState=A,u.memoizedState=A,u.flags&256){N=Dl(Error(n(423)),u),u=O1(l,u,S,g,N);break e}else if(S!==N){N=Dl(Error(n(424)),u),u=O1(l,u,S,g,N);break e}else for(wo=mi(u.stateNode.containerInfo.firstChild),$o=u,Kn=!0,es=null,g=Vw(u,null,S,g),u.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(Ml(),S===N){u=Us(l,u,g);break e}Yr(l,u,S,g)}u=u.child}return u;case 5:return Xw(u),l===null&&Wg(u),S=u.type,N=u.pendingProps,A=l!==null?l.memoizedProps:null,Y=N.children,Ag(S,N)?Y=null:A!==null&&Ag(S,A)&&(u.flags|=32),N1(l,u),Yr(l,u,Y,g),u.child;case 6:return l===null&&Wg(u),null;case 13:return z1(l,u,g);case 4:return Qg(u,u.stateNode.containerInfo),S=u.pendingProps,l===null?u.child=Ol(u,null,S,g):Yr(l,u,S,g),u.child;case 11:return S=u.type,N=u.pendingProps,N=u.elementType===S?N:ts(S,N),E1(l,u,S,N,g);case 7:return Yr(l,u,u.pendingProps,g),u.child;case 8:return Yr(l,u,u.pendingProps.children,g),u.child;case 12:return Yr(l,u,u.pendingProps.children,g),u.child;case 10:e:{if(S=u.type._context,N=u.pendingProps,A=u.memoizedProps,Y=N.value,Dn(Bf,S._currentValue),S._currentValue=Y,A!==null)if(Zo(A.value,Y)){if(A.children===N.children&&!so.current){u=Us(l,u,g);break e}}else for(A=u.child,A!==null&&(A.return=u);A!==null;){var ue=A.dependencies;if(ue!==null){Y=A.child;for(var he=ue.firstContext;he!==null;){if(he.context===S){if(A.tag===1){he=Ks(-1,g&-g),he.tag=2;var Me=A.updateQueue;if(Me!==null){Me=Me.shared;var et=Me.pending;et===null?he.next=he:(he.next=et.next,et.next=he),Me.pending=he}}A.lanes|=g,he=A.alternate,he!==null&&(he.lanes|=g),Gg(A.return,g,u),ue.lanes|=g;break}he=he.next}}else if(A.tag===10)Y=A.type===u.type?null:A.child;else if(A.tag===18){if(Y=A.return,Y===null)throw Error(n(341));Y.lanes|=g,ue=Y.alternate,ue!==null&&(ue.lanes|=g),Gg(Y,g,u),Y=A.sibling}else Y=A.child;if(Y!==null)Y.return=A;else for(Y=A;Y!==null;){if(Y===u){Y=null;break}if(A=Y.sibling,A!==null){A.return=Y.return,Y=A;break}Y=Y.return}A=Y}Yr(l,u,N.children,g),u=u.child}return u;case 9:return N=u.type,S=u.pendingProps.children,Al(u,g),N=Do(N),S=S(N),u.flags|=1,Yr(l,u,S,g),u.child;case 14:return S=u.type,N=ts(S,u.pendingProps),N=ts(S.type,N),R1(l,u,S,N,g);case 15:return I1(l,u,u.type,u.pendingProps,g);case 17:return S=u.type,N=u.pendingProps,N=u.elementType===S?N:ts(S,N),Xf(l,u),u.tag=1,io(S)?(l=!0,Mf(u)):l=!1,Al(u,g),b1(u,S,N),uy(u,S,N,g),my(null,u,S,!0,l,g);case 19:return L1(l,u,g);case 22:return P1(l,u,g)}throw Error(n(156,u.tag))};function sE(l,u){return ct(l,u)}function cL(l,u,g,S){this.tag=l,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fo(l,u,g,S){return new cL(l,u,g,S)}function Ay(l){return l=l.prototype,!(!l||!l.isReactComponent)}function uL(l){if(typeof l=="function")return Ay(l)?1:0;if(l!=null){if(l=l.$$typeof,l===O)return 11;if(l===W)return 14}return 2}function Ei(l,u){var g=l.alternate;return g===null?(g=Fo(l.tag,u,l.key,l.mode),g.elementType=l.elementType,g.type=l.type,g.stateNode=l.stateNode,g.alternate=l,l.alternate=g):(g.pendingProps=u,g.type=l.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=l.flags&14680064,g.childLanes=l.childLanes,g.lanes=l.lanes,g.child=l.child,g.memoizedProps=l.memoizedProps,g.memoizedState=l.memoizedState,g.updateQueue=l.updateQueue,u=l.dependencies,g.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},g.sibling=l.sibling,g.index=l.index,g.ref=l.ref,g}function ip(l,u,g,S,N,A){var Y=2;if(S=l,typeof l=="function")Ay(l)&&(Y=1);else if(typeof l=="string")Y=5;else e:switch(l){case I:return xa(g.children,N,A,u);case T:Y=8,N|=8;break;case L:return l=Fo(12,g,u,N|2),l.elementType=L,l.lanes=A,l;case _:return l=Fo(13,g,u,N),l.elementType=_,l.lanes=A,l;case F:return l=Fo(19,g,u,N),l.elementType=F,l.lanes=A,l;case G:return ap(g,N,A,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case z:Y=10;break e;case M:Y=9;break e;case O:Y=11;break e;case W:Y=14;break e;case q:Y=16,S=null;break e}throw Error(n(130,l==null?l:typeof l,""))}return u=Fo(Y,g,u,N),u.elementType=l,u.type=S,u.lanes=A,u}function xa(l,u,g,S){return l=Fo(7,l,S,u),l.lanes=g,l}function ap(l,u,g,S){return l=Fo(22,l,S,u),l.elementType=G,l.lanes=g,l.stateNode={isHidden:!1},l}function Ly(l,u,g){return l=Fo(6,l,null,u),l.lanes=g,l}function Dy(l,u,g){return u=Fo(4,l.children!==null?l.children:[],l.key,u),u.lanes=g,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function dL(l,u,g,S,N){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pn(0),this.expirationTimes=pn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pn(0),this.identifierPrefix=S,this.onRecoverableError=N,this.mutableSourceEagerHydrationData=null}function By(l,u,g,S,N,A,Y,ue,he){return l=new dL(l,u,g,ue,he),u===1?(u=1,A===!0&&(u|=8)):u=0,A=Fo(3,null,null,u),l.current=A,A.stateNode=l,A.memoizedState={element:S,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yg(A),l}function fL(l,u,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:S==null?null:""+S,children:l,containerInfo:u,implementation:g}}function iE(l){if(!l)return gi;l=l._reactInternals;e:{if(Vt(l)!==l||l.tag!==1)throw Error(n(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(io(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(n(171))}if(l.tag===1){var g=l.type;if(io(g))return Aw(l,g,u)}return u}function aE(l,u,g,S,N,A,Y,ue,he){return l=By(g,S,!0,l,N,A,Y,ue,he),l.context=iE(null),g=l.current,S=Qr(),N=$i(g),A=Ks(S,N),A.callback=u??null,vi(g,A,N),l.current.lanes=N,xs(l,N,S),co(l,S),l}function lp(l,u,g,S){var N=u.current,A=Qr(),Y=$i(N);return g=iE(g),u.context===null?u.context=g:u.pendingContext=g,u=Ks(A,Y),u.payload={element:l},S=S===void 0?null:S,S!==null&&(u.callback=S),l=vi(N,u,Y),l!==null&&(os(l,N,Y,A),Ff(l,N,Y)),Y}function cp(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function lE(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var g=l.retryLane;l.retryLane=g!==0&&g<u?g:u}}function _y(l,u){lE(l,u),(l=l.alternate)&&lE(l,u)}function pL(){return null}var cE=typeof reportError=="function"?reportError:function(l){console.error(l)};function Fy(l){this._internalRoot=l}up.prototype.render=Fy.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(n(409));lp(l,u,null,null)},up.prototype.unmount=Fy.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;ya(function(){lp(null,l,null,null)}),u[ks]=null}};function up(l){this._internalRoot=l}up.prototype.unstable_scheduleHydration=function(l){if(l){var u=U$();l={blockedOn:null,target:l,priority:u};for(var g=0;g<di.length&&u!==0&&u<di[g].priority;g++);di.splice(g,0,l),g===0&&X$(l)}};function ky(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function dp(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function uE(){}function mL(l,u,g,S,N){if(N){if(typeof S=="function"){var A=S;S=function(){var Me=cp(Y);A.call(Me)}}var Y=aE(u,S,l,0,null,!1,!1,"",uE);return l._reactRootContainer=Y,l[ks]=Y.current,lu(l.nodeType===8?l.parentNode:l),ya(),Y}for(;N=l.lastChild;)l.removeChild(N);if(typeof S=="function"){var ue=S;S=function(){var Me=cp(he);ue.call(Me)}}var he=By(l,0,!1,null,null,!1,!1,"",uE);return l._reactRootContainer=he,l[ks]=he.current,lu(l.nodeType===8?l.parentNode:l),ya(function(){lp(u,he,g,S)}),he}function fp(l,u,g,S,N){var A=g._reactRootContainer;if(A){var Y=A;if(typeof N=="function"){var ue=N;N=function(){var he=cp(Y);ue.call(he)}}lp(u,Y,l,N)}else Y=mL(g,u,l,N,S);return cp(Y)}V$=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var g=Vn(u.pendingLanes);g!==0&&(bl(u,g|1),co(u,It()),(gn&6)===0&&(Fl=It()+500,yi()))}break;case 13:ya(function(){var S=Vs(l,1);if(S!==null){var N=Qr();os(S,l,1,N)}}),_y(l,1)}},dg=function(l){if(l.tag===13){var u=Vs(l,134217728);if(u!==null){var g=Qr();os(u,l,134217728,g)}_y(l,134217728)}},K$=function(l){if(l.tag===13){var u=$i(l),g=Vs(l,u);if(g!==null){var S=Qr();os(g,l,u,S)}_y(l,u)}},U$=function(){return bn},q$=function(l,u){var g=bn;try{return bn=l,u()}finally{bn=g}},Ge=function(l,u,g){switch(u){case"input":if(ge(l,g),u=g.name,g.type==="radio"&&u!=null){for(g=l;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<g.length;u++){var S=g[u];if(S!==l&&S.form===l.form){var N=Nf(S);if(!N)throw Error(n(90));fe(S),ge(S,N)}}}break;case"textarea":qe(l,g);break;case"select":u=g.value,u!=null&&Ee(l,!!g.multiple,u,!1)}},mt=My,De=ya;var hL={usingClientEntryPoint:!1,Events:[du,Rl,Nf,Lt,gt,My]},Eu={findFiberByHostInstance:ca,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gL={bundleType:Eu.bundleType,version:Eu.version,rendererPackageName:Eu.rendererPackageName,rendererConfig:Eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Gt(l),l===null?null:l.stateNode},findFiberByHostInstance:Eu.findFiberByHostInstance||pL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pp.isDisabled&&pp.supportsFiber)try{dr=pp.inject(gL),jn=pp}catch{}}return uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hL,uo.createPortal=function(l,u){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ky(u))throw Error(n(200));return fL(l,u,null,g)},uo.createRoot=function(l,u){if(!ky(l))throw Error(n(299));var g=!1,S="",N=cE;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onRecoverableError!==void 0&&(N=u.onRecoverableError)),u=By(l,1,!1,null,null,g,!1,S,N),l[ks]=u.current,lu(l.nodeType===8?l.parentNode:l),new Fy(u)},uo.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=Gt(u),l=l===null?null:l.stateNode,l},uo.flushSync=function(l){return ya(l)},uo.hydrate=function(l,u,g){if(!dp(u))throw Error(n(200));return fp(null,l,u,!0,g)},uo.hydrateRoot=function(l,u,g){if(!ky(l))throw Error(n(405));var S=g!=null&&g.hydratedSources||null,N=!1,A="",Y=cE;if(g!=null&&(g.unstable_strictMode===!0&&(N=!0),g.identifierPrefix!==void 0&&(A=g.identifierPrefix),g.onRecoverableError!==void 0&&(Y=g.onRecoverableError)),u=aE(u,null,l,1,g??null,N,!1,A,Y),l[ks]=u.current,lu(l),S)for(l=0;l<S.length;l++)g=S[l],N=g._getVersion,N=N(g._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[g,N]:u.mutableSourceEagerHydrationData.push(g,N);return new up(u)},uo.render=function(l,u,g){if(!dp(u))throw Error(n(200));return fp(null,l,u,!1,g)},uo.unmountComponentAtNode=function(l){if(!dp(l))throw Error(n(40));return l._reactRootContainer?(ya(function(){fp(null,null,l,!1,function(){l._reactRootContainer=null,l[ks]=null})}),!0):!1},uo.unstable_batchedUpdates=My,uo.unstable_renderSubtreeIntoContainer=function(l,u,g,S){if(!dp(g))throw Error(n(200));if(l==null||l._reactInternals===void 0)throw Error(n(38));return fp(l,u,g,!1,S)},uo.version="18.3.1-next-f1338f8080-20240426",uo}var vE;function TT(){if(vE)return Vy.exports;vE=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(),Vy.exports=IL(),Vy.exports}var xE;function PL(){if(xE)return hp;xE=1;var e=TT();return hp.createRoot=e.createRoot,hp.hydrateRoot=e.hydrateRoot,hp}var MT=PL(),Md=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Da,_i,dc,xT,NL=(xT=class extends Md{constructor(){super();Ht(this,Da);Ht(this,_i);Ht(this,dc);bt(this,dc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ye(this,_i)||this.setEventListener(ye(this,dc))}onUnsubscribe(){var t;this.hasListeners()||((t=ye(this,_i))==null||t.call(this),bt(this,_i,void 0))}setEventListener(t){var n;bt(this,dc,t),(n=ye(this,_i))==null||n.call(this),bt(this,_i,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ye(this,Da)!==t&&(bt(this,Da,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof ye(this,Da)=="boolean"?ye(this,Da):globalThis.document?.visibilityState!=="hidden"}},Da=new WeakMap,_i=new WeakMap,dc=new WeakMap,xT),YC=new NL,TL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Fi,GC,CT,ML=(CT=class{constructor(){Ht(this,Fi,TL);Ht(this,GC,!1)}setTimeoutProvider(e){bt(this,Fi,e)}setTimeout(e,t){return ye(this,Fi).setTimeout(e,t)}clearTimeout(e){ye(this,Fi).clearTimeout(e)}setInterval(e,t){return ye(this,Fi).setInterval(e,t)}clearInterval(e){ye(this,Fi).clearInterval(e)}},Fi=new WeakMap,GC=new WeakMap,CT),Na=new ML;function OL(e){setTimeout(e,0)}var zL=typeof window>"u"||"Deno"in globalThis;function yo(){}function AL(e,t){return typeof e=="function"?e(t):e}function yv(e){return typeof e=="number"&&e>=0&&e!==1/0}function OT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xi(e,t){return typeof e=="function"?e(t):e}function No(e,t){return typeof e=="function"?e(t):e}function CE(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:c}=e;if(i){if(r){if(t.queryHash!==QC(i,t.options))return!1}else if(!wc(t.queryKey,i))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function SE(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ad(t.options.mutationKey)!==ad(s))return!1}else if(!wc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function QC(e,t){return(t?.queryKeyHashFn||ad)(e)}function ad(e){return JSON.stringify(e,(t,n)=>vv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function wc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!wc(e[r],t[r]))return!1;return!0}const n=Object.keys(t);for(const r of n)if(!wc(e[r],t[r]))return!1;return!0}return!1}var LL=Object.prototype.hasOwnProperty;function zT(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=$E(e)&&$E(t);if(!r&&!(vv(e)&&vv(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),c=i.length,f=r?new Array(c):{};let d=0;for(let p=0;p<c;p++){const m=r?p:i[p],h=e[m],y=t[m];if(h===y){f[m]=h,(r?p<s:LL.call(e,m))&&d++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){f[m]=y;continue}const b=zT(h,y,n+1);f[m]=b,b===h&&d++}return s===c&&d===s?e:f}function bv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function $E(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function vv(e){if(!wE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!wE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wE(e){return Object.prototype.toString.call(e)==="[object Object]"}function DL(e){return new Promise(t=>{Na.setTimeout(t,e)})}function xv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?zT(e,t):t}function BL(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _L(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var JC=Symbol();function AT(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===JC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function LT(e,t){return typeof e=="function"?e(...t):!!e}function FL(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var ld=(()=>{let e=()=>zL;return{isServer(){return e()},setIsServer(t){e=t}}})();function Cv(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var kL=OL;function HL(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=kL;const s=c=>{t?e.push(c):o(()=>{n(c)})},i=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||i()}return f},batchCalls:c=>(...f)=>{s(()=>{c(...f)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Tr=HL(),fc,ki,pc,ST,jL=(ST=class extends Md{constructor(){super();Ht(this,fc,!0);Ht(this,ki);Ht(this,pc);bt(this,pc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ye(this,ki)||this.setEventListener(ye(this,pc))}onUnsubscribe(){var t;this.hasListeners()||((t=ye(this,ki))==null||t.call(this),bt(this,ki,void 0))}setEventListener(t){var n;bt(this,pc,t),(n=ye(this,ki))==null||n.call(this),bt(this,ki,t(this.setOnline.bind(this)))}setOnline(t){ye(this,fc)!==t&&(bt(this,fc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ye(this,fc)}},fc=new WeakMap,ki=new WeakMap,pc=new WeakMap,ST),gm=new jL;function WL(e){return Math.min(1e3*2**e,3e4)}function DT(e){return(e??"online")==="online"?gm.isOnline():!0}var Sv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function BT(e){let t=!1,n=0,r;const o=Cv(),s=()=>o.status!=="pending",i=v=>{if(!s()){const $=new Sv(v);h($),e.onCancel?.($)}},c=()=>{t=!0},f=()=>{t=!1},d=()=>YC.isFocused()&&(e.networkMode==="always"||gm.isOnline())&&e.canRun(),p=()=>DT(e.networkMode)&&e.canRun(),m=v=>{s()||(r?.(),o.resolve(v))},h=v=>{s()||(r?.(),o.reject(v))},y=()=>new Promise(v=>{r=$=>{(s()||d())&&v($)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),b=()=>{if(s())return;let v;const $=n===0?e.initialPromise:void 0;try{v=$??e.fn()}catch(x){v=Promise.reject(x)}Promise.resolve(v).then(m).catch(x=>{if(s())return;const E=e.retry??(ld.isServer()?0:3),C=e.retryDelay??WL,w=typeof C=="function"?C(n,x):C,R=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,x);if(t||!R){h(x);return}n++,e.onFail?.(n,x),DL(w).then(()=>d()?void 0:y()).then(()=>{t?h(x):b()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?b():y().then(b),o)}}var Ba,$T,_T=($T=class{constructor(){Ht(this,Ba)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yv(this.gcTime)&&bt(this,Ba,Na.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ld.isServer()?1/0:300*1e3))}clearGcTimeout(){ye(this,Ba)!==void 0&&(Na.clearTimeout(ye(this,Ba)),bt(this,Ba,void 0))}},Ba=new WeakMap,$T);function VL(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let p=!1;const m=b=>{FL(b,()=>t.signal,()=>p=!0)},h=AT(t.options,t.fetchOptions),y=async(b,v,$)=>{if(p)return Promise.reject(t.signal.reason);if(v==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:v,direction:$?"backward":"forward",meta:t.options.meta};return m(P),P})(),C=await h(E),{maxPages:w}=t.options,R=$?_L:BL;return{pages:R(b.pages,C,w),pageParams:R(b.pageParams,v,w)}};if(o&&s.length){const b=o==="backward",v=b?KL:EE,$={pages:s,pageParams:i},x=v(r,$);c=await y($,x,b)}else{const b=e??s.length;do{const v=f===0?i[0]??r.initialPageParam:EE(r,c);if(f>0&&v==null)break;c=await y(c,v),f++}while(f<b)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function EE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function KL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var mc,_a,hc,Ko,Fa,$r,Rd,ka,Po,FT,Gs,wT,UL=(wT=class extends _T{constructor(t){super();Ht(this,Po);Ht(this,mc);Ht(this,_a);Ht(this,hc);Ht(this,Ko);Ht(this,Fa);Ht(this,$r);Ht(this,Rd);Ht(this,ka);bt(this,ka,!1),bt(this,Rd,t.defaultOptions),this.setOptions(t.options),this.observers=[],bt(this,Fa,t.client),bt(this,Ko,ye(this,Fa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,bt(this,_a,IE(this.options)),this.state=t.state??ye(this,_a),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return ye(this,mc)}get promise(){return ye(this,$r)?.promise}setOptions(t){if(this.options={...ye(this,Rd),...t},t?._type&&bt(this,mc,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=IE(this.options);n.data!==void 0&&(this.setState(RE(n.data,n.dataUpdatedAt)),bt(this,_a,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ye(this,Ko).remove(this)}setData(t,n){const r=xv(this.state.data,t,this.options);return ln(this,Po,Gs).call(this,{data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t){ln(this,Po,Gs).call(this,{type:"setState",state:t})}cancel(t){const n=ye(this,$r)?.promise;return ye(this,$r)?.cancel(t),n?n.then(yo).catch(yo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return ye(this,_a)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>No(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===JC||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!OT(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),ye(this,$r)?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),ye(this,$r)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ye(this,Ko).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ye(this,$r)&&(ye(this,ka)||ln(this,Po,FT).call(this)?ye(this,$r).cancel({revert:!0}):ye(this,$r).cancelRetry()),this.scheduleGc()),ye(this,Ko).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ln(this,Po,Gs).call(this,{type:"invalidate"})}async fetch(t,n){if(this.state.fetchStatus!=="idle"&&ye(this,$r)?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(ye(this,$r))return ye(this,$r).continueRetry(),ye(this,$r).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(bt(this,ka,!0),r.signal)})},s=()=>{const d=AT(this.options,n),m=(()=>{const h={client:ye(this,Fa),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return bt(this,ka,!1),this.options.persister?this.options.persister(d,m,this):d(m)},c=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ye(this,Fa),state:this.state,fetchFn:s};return o(d),d})();(ye(this,mc)==="infinite"?VL(this.options.pages):this.options.behavior)?.onFetch(c,this),bt(this,hc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&ln(this,Po,Gs).call(this,{type:"fetch",meta:c.fetchOptions?.meta}),bt(this,$r,BT({initialPromise:n?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof Sv&&d.revert&&this.setState({...ye(this,hc),fetchStatus:"idle"}),r.abort()},onFail:(d,p)=>{ln(this,Po,Gs).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{ln(this,Po,Gs).call(this,{type:"pause"})},onContinue:()=>{ln(this,Po,Gs).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const d=await ye(this,$r).start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),ye(this,Ko).config.onSuccess?.(d,this),ye(this,Ko).config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Sv){if(d.silent)return ye(this,$r).promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw ln(this,Po,Gs).call(this,{type:"error",error:d}),ye(this,Ko).config.onError?.(d,this),ye(this,Ko).config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}},mc=new WeakMap,_a=new WeakMap,hc=new WeakMap,Ko=new WeakMap,Fa=new WeakMap,$r=new WeakMap,Rd=new WeakMap,ka=new WeakMap,Po=new WeakSet,FT=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Gs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...kT(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...RE(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return bt(this,hc,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ye(this,Ko).notify({query:this,type:"updated",action:t})})},wT);function kT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:DT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function IE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var po,mn,Id,Jr,Ha,gc,Js,Hi,Pd,yc,bc,ja,Wa,ji,vc,En,Bu,$v,wv,Ev,Rv,Iv,Pv,Nv,HT,ET,qL=(ET=class extends Md{constructor(t,n){super();Ht(this,En);Ht(this,po);Ht(this,mn);Ht(this,Id);Ht(this,Jr);Ht(this,Ha);Ht(this,gc);Ht(this,Js);Ht(this,Hi);Ht(this,Pd);Ht(this,yc);Ht(this,bc);Ht(this,ja);Ht(this,Wa);Ht(this,ji);Ht(this,vc,new Set);this.options=n,bt(this,po,t),bt(this,Hi,null),bt(this,Js,Cv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ye(this,mn).addObserver(this),PE(ye(this,mn),this.options)?ln(this,En,Bu).call(this):this.updateResult(),ln(this,En,Rv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tv(ye(this,mn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tv(ye(this,mn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ln(this,En,Iv).call(this),ln(this,En,Pv).call(this),ye(this,mn).removeObserver(this)}setOptions(t){const n=this.options,r=ye(this,mn);if(this.options=ye(this,po).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof No(this.options.enabled,ye(this,mn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ln(this,En,Nv).call(this),ye(this,mn).setOptions(this.options),n._defaulted&&!bv(this.options,n)&&ye(this,po).getQueryCache().notify({type:"observerOptionsUpdated",query:ye(this,mn),observer:this});const o=this.hasListeners();o&&NE(ye(this,mn),r,this.options,n)&&ln(this,En,Bu).call(this),this.updateResult(),o&&(ye(this,mn)!==r||No(this.options.enabled,ye(this,mn))!==No(n.enabled,ye(this,mn))||Xi(this.options.staleTime,ye(this,mn))!==Xi(n.staleTime,ye(this,mn)))&&ln(this,En,$v).call(this);const s=ln(this,En,wv).call(this);o&&(ye(this,mn)!==r||No(this.options.enabled,ye(this,mn))!==No(n.enabled,ye(this,mn))||s!==ye(this,ji))&&ln(this,En,Ev).call(this,s)}getOptimisticResult(t){const n=ye(this,po).getQueryCache().build(ye(this,po),t),r=this.createResult(n,t);return XL(this,r)&&(bt(this,Jr,r),bt(this,gc,this.options),bt(this,Ha,ye(this,mn).state)),r}getCurrentResult(){return ye(this,Jr)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&ye(this,Js).status==="pending"&&ye(this,Js).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){ye(this,vc).add(t)}getCurrentQuery(){return ye(this,mn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ye(this,po).defaultQueryOptions(t),r=ye(this,po).getQueryCache().build(ye(this,po),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ln(this,En,Bu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ye(this,Jr)))}createResult(t,n){const r=ye(this,mn),o=this.options,s=ye(this,Jr),i=ye(this,Ha),c=ye(this,gc),d=t!==r?t.state:ye(this,Id),{state:p}=t;let m={...p},h=!1,y;if(n._optimisticResults){const L=this.hasListeners(),z=!L&&PE(t,n),M=L&&NE(t,r,n,o);(z||M)&&(m={...m,...kT(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:$}=m;y=m.data;let x=!1;if(n.placeholderData!==void 0&&y===void 0&&$==="pending"){let L;s?.isPlaceholderData&&n.placeholderData===c?.placeholderData?(L=s.data,x=!0):L=typeof n.placeholderData=="function"?n.placeholderData(ye(this,bc)?.state.data,ye(this,bc)):n.placeholderData,L!==void 0&&($="success",y=xv(s?.data,L,n),h=!0)}if(n.select&&y!==void 0&&!x)if(s&&y===i?.data&&n.select===ye(this,Pd))y=ye(this,yc);else try{bt(this,Pd,n.select),y=n.select(y),y=xv(s?.data,y,n),bt(this,yc,y),bt(this,Hi,null)}catch(L){bt(this,Hi,L)}ye(this,Hi)&&(b=ye(this,Hi),y=ye(this,yc),v=Date.now(),$="error");const E=m.fetchStatus==="fetching",C=$==="pending",w=$==="error",R=C&&E,P=y!==void 0,T={status:$,fetchStatus:m.fetchStatus,isPending:C,isSuccess:$==="success",isError:w,isInitialLoading:R,isLoading:R,data:y,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:E,isRefetching:E&&!C,isLoadingError:w&&!P,isPaused:m.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&P,isStale:ZC(t,n),refetch:this.refetch,promise:ye(this,Js),isEnabled:No(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=T.data!==void 0,z=T.status==="error"&&!L,M=F=>{z?F.reject(T.error):L&&F.resolve(T.data)},O=()=>{const F=bt(this,Js,T.promise=Cv());M(F)},_=ye(this,Js);switch(_.status){case"pending":t.queryHash===r.queryHash&&M(_);break;case"fulfilled":(z||T.data!==_.value)&&O();break;case"rejected":(!z||T.error!==_.reason)&&O();break}}return T}updateResult(){const t=ye(this,Jr),n=this.createResult(ye(this,mn),this.options);if(bt(this,Ha,ye(this,mn).state),bt(this,gc,this.options),ye(this,Ha).data!==void 0&&bt(this,bc,ye(this,mn)),bv(n,t))return;bt(this,Jr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!ye(this,vc).size)return!0;const i=new Set(s??ye(this,vc));return this.options.throwOnError&&i.add("error"),Object.keys(ye(this,Jr)).some(c=>{const f=c;return ye(this,Jr)[f]!==t[f]&&i.has(f)})};ln(this,En,HT).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ln(this,En,Rv).call(this)}},po=new WeakMap,mn=new WeakMap,Id=new WeakMap,Jr=new WeakMap,Ha=new WeakMap,gc=new WeakMap,Js=new WeakMap,Hi=new WeakMap,Pd=new WeakMap,yc=new WeakMap,bc=new WeakMap,ja=new WeakMap,Wa=new WeakMap,ji=new WeakMap,vc=new WeakMap,En=new WeakSet,Bu=function(t){ln(this,En,Nv).call(this);let n=ye(this,mn).fetch(this.options,t);return t?.throwOnError||(n=n.catch(yo)),n},$v=function(){ln(this,En,Iv).call(this);const t=Xi(this.options.staleTime,ye(this,mn));if(ld.isServer()||ye(this,Jr).isStale||!yv(t))return;const r=OT(ye(this,Jr).dataUpdatedAt,t)+1;bt(this,ja,Na.setTimeout(()=>{ye(this,Jr).isStale||this.updateResult()},r))},wv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ye(this,mn)):this.options.refetchInterval)??!1},Ev=function(t){ln(this,En,Pv).call(this),bt(this,ji,t),!(ld.isServer()||No(this.options.enabled,ye(this,mn))===!1||!yv(ye(this,ji))||ye(this,ji)===0)&&bt(this,Wa,Na.setInterval(()=>{(this.options.refetchIntervalInBackground||YC.isFocused())&&ln(this,En,Bu).call(this)},ye(this,ji)))},Rv=function(){ln(this,En,$v).call(this),ln(this,En,Ev).call(this,ln(this,En,wv).call(this))},Iv=function(){ye(this,ja)!==void 0&&(Na.clearTimeout(ye(this,ja)),bt(this,ja,void 0))},Pv=function(){ye(this,Wa)!==void 0&&(Na.clearInterval(ye(this,Wa)),bt(this,Wa,void 0))},Nv=function(){const t=ye(this,po).getQueryCache().build(ye(this,po),this.options);if(t===ye(this,mn))return;const n=ye(this,mn);bt(this,mn,t),bt(this,Id,t.state),this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))},HT=function(t){Tr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ye(this,Jr))}),ye(this,po).getQueryCache().notify({query:ye(this,mn),type:"observerResultsUpdated"})})},ET);function GL(e,t){return No(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&No(t.retryOnMount,e)===!1)}function PE(e,t){return GL(e,t)||e.state.data!==void 0&&Tv(e,t,t.refetchOnMount)}function Tv(e,t,n){if(No(t.enabled,e)!==!1&&Xi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ZC(e,t)}return!1}function NE(e,t,n,r){return(e!==t||No(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ZC(e,n)}function ZC(e,t){return No(t.enabled,e)!==!1&&e.isStaleByTime(Xi(t.staleTime,e))}function XL(e,t){return!bv(e.getCurrentResult(),t)}var Nd,Ps,Vr,Va,Ns,Mi,RT,YL=(RT=class extends _T{constructor(t){super();Ht(this,Ns);Ht(this,Nd);Ht(this,Ps);Ht(this,Vr);Ht(this,Va);bt(this,Nd,t.client),this.mutationId=t.mutationId,bt(this,Vr,t.mutationCache),bt(this,Ps,[]),this.state=t.state||QL(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ye(this,Ps).includes(t)||(ye(this,Ps).push(t),this.clearGcTimeout(),ye(this,Vr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){bt(this,Ps,ye(this,Ps).filter(n=>n!==t)),this.scheduleGc(),ye(this,Vr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ye(this,Ps).length||(this.state.status==="pending"?this.scheduleGc():ye(this,Vr).remove(this))}continue(){return ye(this,Va)?.continue()??this.execute(this.state.variables)}async execute(t){const n=()=>{ln(this,Ns,Mi).call(this,{type:"continue"})},r={client:ye(this,Nd),meta:this.options.meta,mutationKey:this.options.mutationKey};bt(this,Va,BT({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,c)=>{ln(this,Ns,Mi).call(this,{type:"failed",failureCount:i,error:c})},onPause:()=>{ln(this,Ns,Mi).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ye(this,Vr).canRun(this)}));const o=this.state.status==="pending",s=!ye(this,Va).canStart();try{if(o)n();else{ln(this,Ns,Mi).call(this,{type:"pending",variables:t,isPaused:s}),ye(this,Vr).config.onMutate&&await ye(this,Vr).config.onMutate(t,this,r);const c=await this.options.onMutate?.(t,r);c!==this.state.context&&ln(this,Ns,Mi).call(this,{type:"pending",context:c,variables:t,isPaused:s})}const i=await ye(this,Va).start();return await ye(this,Vr).config.onSuccess?.(i,t,this.state.context,this,r),await this.options.onSuccess?.(i,t,this.state.context,r),await ye(this,Vr).config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,t,this.state.context,r),ln(this,Ns,Mi).call(this,{type:"success",data:i}),i}catch(i){try{await ye(this,Vr).config.onError?.(i,t,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(i,t,this.state.context,r)}catch(c){Promise.reject(c)}try{await ye(this,Vr).config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,i,t,this.state.context,r)}catch(c){Promise.reject(c)}throw ln(this,Ns,Mi).call(this,{type:"error",error:i}),i}finally{ye(this,Vr).runNext(this)}}},Nd=new WeakMap,Ps=new WeakMap,Vr=new WeakMap,Va=new WeakMap,Ns=new WeakSet,Mi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Tr.batch(()=>{ye(this,Ps).forEach(r=>{r.onMutationUpdate(t)}),ye(this,Vr).notify({mutation:this,type:"updated",action:t})})},RT);function QL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zs,ss,Td,IT,JL=(IT=class extends Md{constructor(t={}){super();Ht(this,Zs);Ht(this,ss);Ht(this,Td);this.config=t,bt(this,Zs,new Set),bt(this,ss,new Map),bt(this,Td,0)}build(t,n,r){const o=new YL({client:t,mutationCache:this,mutationId:++mp(this,Td)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){ye(this,Zs).add(t);const n=gp(t);if(typeof n=="string"){const r=ye(this,ss).get(n);r?r.push(t):ye(this,ss).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ye(this,Zs).delete(t)){const n=gp(t);if(typeof n=="string"){const r=ye(this,ss).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&ye(this,ss).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=gp(t);if(typeof n=="string"){const o=ye(this,ss).get(n)?.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){const n=gp(t);return typeof n=="string"?ye(this,ss).get(n)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Tr.batch(()=>{ye(this,Zs).forEach(t=>{this.notify({type:"removed",mutation:t})}),ye(this,Zs).clear(),ye(this,ss).clear()})}getAll(){return Array.from(ye(this,Zs))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>SE(n,r))}findAll(t={}){return this.getAll().filter(n=>SE(t,n))}notify(t){Tr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Tr.batch(()=>Promise.all(t.map(n=>n.continue().catch(yo))))}},Zs=new WeakMap,ss=new WeakMap,Td=new WeakMap,IT);function gp(e){return e.options.scope?.id}var Ts,PT,ZL=(PT=class extends Md{constructor(t={}){super();Ht(this,Ts);this.config=t,bt(this,Ts,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??QC(o,n);let i=this.get(s);return i||(i=new UL({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){ye(this,Ts).has(t.queryHash)||(ye(this,Ts).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ye(this,Ts).get(t.queryHash);n&&(t.destroy(),n===t&&ye(this,Ts).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ye(this,Ts).get(t)}getAll(){return[...ye(this,Ts).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>CE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>CE(t,r)):n}notify(t){Tr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ts=new WeakMap,PT),Qn,Wi,Vi,xc,Cc,Ki,Sc,$c,NT,eD=(NT=class{constructor(e={}){Ht(this,Qn);Ht(this,Wi);Ht(this,Vi);Ht(this,xc);Ht(this,Cc);Ht(this,Ki);Ht(this,Sc);Ht(this,$c);bt(this,Qn,e.queryCache||new ZL),bt(this,Wi,e.mutationCache||new JL),bt(this,Vi,e.defaultOptions||{}),bt(this,xc,new Map),bt(this,Cc,new Map),bt(this,Ki,0)}mount(){mp(this,Ki)._++,ye(this,Ki)===1&&(bt(this,Sc,YC.subscribe(async e=>{e&&(await this.resumePausedMutations(),ye(this,Qn).onFocus())})),bt(this,$c,gm.subscribe(async e=>{e&&(await this.resumePausedMutations(),ye(this,Qn).onOnline())})))}unmount(){var e,t;mp(this,Ki)._--,ye(this,Ki)===0&&((e=ye(this,Sc))==null||e.call(this),bt(this,Sc,void 0),(t=ye(this,$c))==null||t.call(this),bt(this,$c,void 0))}isFetching(e){return ye(this,Qn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ye(this,Wi).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return ye(this,Qn).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ye(this,Qn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Xi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ye(this,Qn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=ye(this,Qn).get(r.queryHash)?.state.data,i=AL(t,s);if(i!==void 0)return ye(this,Qn).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Tr.batch(()=>ye(this,Qn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return ye(this,Qn).get(t.queryHash)?.state}removeQueries(e){const t=ye(this,Qn);Tr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ye(this,Qn);return Tr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Tr.batch(()=>ye(this,Qn).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(yo).catch(yo)}invalidateQueries(e,t={}){return Tr.batch(()=>(ye(this,Qn).findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Tr.batch(()=>ye(this,Qn).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(yo)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(yo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ye(this,Qn).build(this,t);return n.isStaleByTime(Xi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yo).catch(yo)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yo).catch(yo)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return gm.isOnline()?ye(this,Wi).resumePausedMutations():Promise.resolve()}getQueryCache(){return ye(this,Qn)}getMutationCache(){return ye(this,Wi)}getDefaultOptions(){return ye(this,Vi)}setDefaultOptions(e){bt(this,Vi,e)}setQueryDefaults(e,t){ye(this,xc).set(ad(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ye(this,xc).values()],n={};return t.forEach(r=>{wc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ye(this,Cc).set(ad(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ye(this,Cc).values()],n={};return t.forEach(r=>{wc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ye(this,Vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QC(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===JC&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...ye(this,Vi).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ye(this,Qn).clear(),ye(this,Wi).clear()}},Qn=new WeakMap,Wi=new WeakMap,Vi=new WeakMap,xc=new WeakMap,Cc=new WeakMap,Ki=new WeakMap,Sc=new WeakMap,$c=new WeakMap,NT),jT=a.createContext(void 0),WT=e=>{const t=a.useContext(jT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tD=({client:e,children:t})=>(a.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),V.jsx(jT.Provider,{value:e,children:t})),VT=a.createContext(!1),nD=()=>a.useContext(VT);VT.Provider;function rD(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oD=a.createContext(rD()),sD=()=>a.useContext(oD),iD=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?LT(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},aD=e=>{a.useEffect(()=>{e.clearReset()},[e])},lD=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||LT(n,[e.error,r])),cD=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uD=(e,t)=>e.isLoading&&e.isFetching&&!t,dD=(e,t)=>e?.suspense&&t.isPending,TE=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function fD(e,t,n){const r=nD(),o=sD(),s=WT(),i=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const c=s.getQueryCache().get(i.queryHash),f=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":f?"optimistic":void 0,cD(i),iD(i,o,c),aD(o);const d=!s.getQueryCache().get(i.queryHash),[p]=a.useState(()=>new t(s,i)),m=p.getOptimisticResult(i),h=!r&&f;if(a.useSyncExternalStore(a.useCallback(y=>{const b=h?p.subscribe(Tr.batchCalls(y)):yo;return p.updateResult(),b},[p,h]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),a.useEffect(()=>{p.setOptions(i)},[i,p]),dD(i,m))throw TE(i,p,o);if(lD({result:m,errorResetBoundary:o,throwOnError:i.throwOnError,query:c,suspense:i.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(i,m),i.experimental_prefetchInRender&&!ld.isServer()&&uD(m,r)&&(d?TE(i,p,o):c?.promise)?.catch(yo).finally(()=>{p.updateResult()}),i.notifyOnChangeProps?m:p.trackResult(m)}function KT(e,t){return fD(e,qL)}const pD=()=>{const[e,t,n]=a.version.split(".").map(r=>Number.parseInt(r,10));return[e,t,n]};function ch(e){return a.useMemo(()=>e&&typeof e=="object"?{...e,disabled:e.disabled??!1}:{disabled:!e},[e])}const Ct=e=>{const t=a.useRef(e);return t.current=e,a.useCallback((...r)=>t.current?.(...r),[])};function Zr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ME=Zr()?a.useLayoutEffect:a.useEffect,Qt=(e,t)=>{const n=a.useRef(!0);ME(()=>e(n.current),t),ME(()=>(n.current=!1,()=>{n.current=!0}),[])},Qp=(e,t)=>{Qt(n=>{if(!n)return e()},t)},UT=e=>{const t=a.useRef(!1),[n,r]=a.useState(e);a.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,i){i&&t.current||r(s)}return[n,o]};function Rn(e,t){const[n,r]=a.useState(e),o=t!==void 0?t:n;return Qt(s=>{s||r(t)},[t]),[o,r]}let qT=e=>+setTimeout(e,16),GT=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(qT=e=>window.requestAnimationFrame(e),GT=e=>window.cancelAnimationFrame(e));let OE=0;const eS=new Map;function XT(e){eS.delete(e)}const Wt=(e,t=1)=>{OE+=1;const n=OE;function r(o){if(o===0)XT(n),e();else{const s=qT(()=>{r(o-1)});eS.set(n,s)}}return r(t),n};Wt.cancel=e=>{const t=eS.get(e);return XT(e),GT(t)};function uh(e){const[t,n]=a.useState(e),r=a.useRef(null),o=Ct(()=>{if(r.current){const[i,c]=r.current;i?Wt.cancel(c):clearTimeout(c),r.current=null}});a.useEffect(()=>o,[o]);const s=Ct((i,c)=>{const f=c||{frame:1};o(),f===!0?n(i):"ms"in f?r.current=[!1,setTimeout(()=>n(i),f.ms)]:r.current=[!0,Wt(()=>n(i),f.frame)]});return[t,s]}function mD(){return{...wL}.useId}let zE=0;function YT(e,t){const r=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${r}`}const AE=mD(),Xo=AE?(function(t){const n=AE();return t||n}):(function(t){const[n,r]=a.useState("ssr-id");return a.useEffect(()=>{const o=zE;zE+=1,r(`rc_unique_${o}`)},[]),t||n});function ol(e,t,n){const r=a.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Iu={exports:{}},LE;function hD(){if(LE)return Iu.exports;LE=1,Iu.exports=r,Iu.exports.isMobile=r,Iu.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(o){o||(o={});let s=o.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;let i=e.test(s)&&!t.test(s)||!!o.tablet&&n.test(s);return!i&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(i=!0),i}return Iu.exports}var gD=hD();const yD=lh(gD);let qy;const bD=()=>(typeof qy>"u"&&(qy=yD()),qy);function vD(e){const[,t]=a.useReducer(s=>s+1,0),n=a.useRef(e),r=Ct(()=>n.current),o=Ct(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,o]}var Gy={exports:{}},Tn={};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* react-is.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var DE;function xD(){if(DE)return Tn;DE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var $=v.$$typeof;switch($){case e:switch(v=v.type,v){case n:case o:case r:case f:case d:case h:return v;default:switch(v=v&&v.$$typeof,v){case i:case c:case m:case p:return v;case s:return v;default:return $}}case t:return $}}}return Tn.ContextConsumer=s,Tn.ContextProvider=i,Tn.Element=e,Tn.ForwardRef=c,Tn.Fragment=n,Tn.Lazy=m,Tn.Memo=p,Tn.Portal=t,Tn.Profiler=o,Tn.StrictMode=r,Tn.Suspense=f,Tn.SuspenseList=d,Tn.isContextConsumer=function(v){return b(v)===s},Tn.isContextProvider=function(v){return b(v)===i},Tn.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Tn.isForwardRef=function(v){return b(v)===c},Tn.isFragment=function(v){return b(v)===n},Tn.isLazy=function(v){return b(v)===m},Tn.isMemo=function(v){return b(v)===p},Tn.isPortal=function(v){return b(v)===t},Tn.isProfiler=function(v){return b(v)===o},Tn.isStrictMode=function(v){return b(v)===r},Tn.isSuspense=function(v){return b(v)===f},Tn.isSuspenseList=function(v){return b(v)===d},Tn.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===f||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===p||v.$$typeof===i||v.$$typeof===s||v.$$typeof===c||v.$$typeof===y||v.getModuleId!==void 0)},Tn.typeOf=b,Tn}var BE;function CD(){return BE||(BE=1,Gy.exports=xD()),Gy.exports}var Xy=CD();const SD=Symbol.for("react.element"),$D=Symbol.for("react.transitional.element"),wD=Symbol.for("react.fragment");function QT(e){return e&&typeof e=="object"&&(e.$$typeof===SD||e.$$typeof===$D)&&e.type===wD}const ED=Number(a.version?.split(".")[0]),Mv=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},ur=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{Mv(r,n)})}},Yo=(...e)=>ol(()=>ur(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),ri=e=>{if(!e)return!1;if(tS(e)&&ED>=19)return!0;const t=Xy.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Xy.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Xy.ForwardRef)};function tS(e){return a.isValidElement(e)&&!QT(e)}const JT=e=>tS(e)&&ri(e),Fs=e=>{if(e&&tS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Ov(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const _E="data-rc-order",FE="data-rc-priority",RD="rc-util-key",zv=new Map;function ZT({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:RD}function dh(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ID(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function nS(e){return e?Array.from((zv.get(e)||e).children).filter(t=>t.tagName==="STYLE"):[]}function e2(e,t={}){if(!Zr())return null;const{csp:n,prepend:r,priority:o=0}=t,s=ID(r),i=s==="prependQueue",c=document.createElement("style");c.setAttribute(_E,s),i&&o&&c.setAttribute(FE,`${o}`),n?.nonce&&(c.nonce=n?.nonce),c.innerHTML=e;const f=dh(t);if(!f)return null;const{firstChild:d}=f;if(r){if(i){const p=(t.styles||nS(f)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(_E)))return!1;const h=Number(m.getAttribute(FE)||0);return o>=h});if(p.length)return f.insertBefore(c,p[p.length-1].nextSibling),c}f.insertBefore(c,d)}else f.appendChild(c);return c}function t2(e,t={}){let{styles:n}=t;return n||(n=nS(dh(t))),n.find(r=>r.getAttribute(ZT(t))===e)}function cd(e,t={}){const n=t2(e,t);n&&dh(t)?.removeChild(n)}function PD(e,t){const n=zv.get(e);if(!n||!Ov(document,n)){const r=e2("",t);if(!r)return;const{parentNode:o}=r;zv.set(e,o),e.removeChild(r)}}function Ka(e,t,n={}){const r=dh(n);if(!r)return null;const o=nS(r),s={...n,styles:o};PD(r,s);const i=t2(t,s);if(i)return s.csp?.nonce&&i.nonce!==s.csp?.nonce&&(i.nonce=s.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const c=e2(e,s);return c?(c.setAttribute(ZT(s),t),c):null}function Ec(e){return e instanceof HTMLElement||e instanceof SVGElement}function fs(e){return e&&typeof e=="object"&&Ec(e.nativeElement)?e.nativeElement:Ec(e)?e:null}const Od=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function kE(e,t=!1){if(Od(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),s=Number(o);let i=null;return o&&!Number.isNaN(s)?i=s:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function rS(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>kE(r,t));return kE(e,t)&&n.unshift(e),n}function oS(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let ac=null,Ai=[];const Av=new Map,sS=new Map;function iS(){return Ai[Ai.length-1]}function ND(e){const t=iS();if(e&&t){let n;for(const[o,s]of Av.entries())if(s===t){n=o;break}const r=sS.get(n);return!!r&&(r===e||r.contains(e))}return!1}function TD(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Yy(){const e=iS(),{activeElement:t}=document;if(!ND(t))if(e&&!TD(e)){const n=rS(e);(n.includes(ac)?ac:n[0])?.focus({preventScroll:!0})}else ac=t}function HE(e){if(e.key==="Tab"){const{activeElement:t}=document,n=iS(),r=rS(n),o=r[r.length-1];e.shiftKey&&t===r[0]?ac=o:!e.shiftKey&&t===o&&(ac=r[0])}}function MD(e,t){return e&&(Av.set(t,e),Ai=Ai.filter(n=>n!==e),Ai.push(e),window.addEventListener("focusin",Yy),window.addEventListener("keydown",HE,!0),Yy()),()=>{ac=null,Ai=Ai.filter(n=>n!==e),Av.delete(t),sS.delete(t),Ai.length===0&&(window.removeEventListener("focusin",Yy),window.removeEventListener("keydown",HE,!0))}}function OD(e,t){const n=a.useRef(0),[r,o]=a.useState(0);a.useEffect(()=>{n.current=0},t),a.useEffect(()=>{const[s,i]=e(n.current);return i||(n.current+=1,o(c=>c+1)),s},[...t,r])}function n2(e,t){const n=Xo(),r=a.useRef(t);return r.current=t,OD(i=>{if(!e)return[void 0,!0];const c=r.current();return c?[MD(c,n),!0]:[void 0,i>=1]},[n,e]),[i=>{i&&sS.set(n,i)}]}function r2(e){return e?.getRootNode?.()}function zD(e){return r2(e)instanceof ShadowRoot}function Lv(e){return zD(e)?r2(e):null}const AD=e=>{if(Zr()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function jE(e,t){return AD(e)}const vt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};let Qy;function o2(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let o,s;if(e){const f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;const d=getComputedStyle(e,"::-webkit-scrollbar"),p=parseInt(d.width,10),m=parseInt(d.height,10);try{const h=p?`width: ${d.width};`:"",y=m?`height: ${d.height};`:"";Ka(`
|
|
49
|
+
#${t}::-webkit-scrollbar {
|
|
50
|
+
${h}
|
|
51
|
+
${y}
|
|
52
|
+
}`,t)}catch(h){console.error(h),o=p,s=m}}document.body.appendChild(n);const i=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,c=e&&s&&!Number.isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),cd(t),{width:i,height:c}}function WE(e){return typeof document>"u"?0:(Qy===void 0&&(Qy=o2()),Qy.width)}function Dv(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:o2(e)}let Bv={};const LD=e=>{};function DD(e,t){}function BD(e,t){}function _D(){Bv={}}function s2(e,t,n){!t&&!Bv[n]&&(e(!1,n),Bv[n]=!0)}function kn(e,t){s2(DD,e,t)}function FD(e,t){s2(BD,e,t)}kn.preMessage=LD;kn.resetWarned=_D;kn.noteOnce=FD;function ps(e,t,n=!1){const r=new Set;function o(s,i,c=1){const f=r.has(s);if(kn(!f,"Warning: There may be circular references"),f)return!1;if(s===i)return!0;if(n&&c>1)return!1;r.add(s);const d=c+1;if(Array.isArray(s)){if(!Array.isArray(i)||s.length!==i.length)return!1;for(let p=0;p<s.length;p++)if(!o(s[p],i[p],d))return!1;return!0}if(s&&i&&typeof s=="object"&&typeof i=="object"){const p=Object.keys(s);return p.length!==Object.keys(i).length?!1:p.every(m=>o(s[m],i[m],d))}return!1}return o(e,t)}function un(e){return e!=null}function tt(e){return un(e)&&e!==!1&&e!==""}function dn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}const kD=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
53
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
54
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
55
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
56
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
57
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
58
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
59
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
60
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
61
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
62
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
63
|
+
summary tabIndex target title type useMap value width wmode wrap`,HD=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
64
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
65
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
66
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
67
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
68
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
69
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
|
|
70
|
+
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
|
|
71
|
+
onAnimationStart onAnimationEnd onAnimationIteration
|
|
72
|
+
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
|
|
73
|
+
onBeforeInput onReset onInvalid
|
|
74
|
+
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,jD=`${kD} ${HD}`.split(/[\s\n]+/),WD="aria-",VD="data-";function VE(e,t){return e.indexOf(t)===0}function Hn(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||VE(o,WD))||n.data&&VE(o,VD)||n.attr&&jD.includes(o))&&(r[o]=e[o])}),r}function KD(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function cr(e,t={}){let n=[];return ee.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cr(r)):QT(r)&&r.props?n=n.concat(cr(r.props.children,t)):n.push(r))}),n}function Rc(...e){const t={};for(const n of e)if(n)for(const r of Object.keys(n))n[r]!==void 0&&(t[r]=n[r]);return t}function Mr(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function i2(e,t,n,r){if(!t.length)return n;const[o,...s]=t;let i;if(!e&&typeof o=="number"?i=[]:Array.isArray(e)?i=[...e]:i={...e},r&&n===void 0&&s.length===1){const c=i[o];if(c&&typeof c=="object"){const f=Array.isArray(c)?[...c]:{...c};delete f[s[0]],i[o]=f}}else i[o]=i2(i[o],s,n,r);return i}function mo(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Mr(e,t.slice(0,-1))?e:i2(e,t,n,r)}function UD(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function KE(e){return Array.isArray(e)?[]:{}}const qD=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function GD(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=KE(e[0]);return e.forEach(s=>{function i(c,f){const d=new Set(f),p=Mr(s,c),m=Array.isArray(p);if(m||UD(p)){if(!d.has(p)){d.add(p);const h=Mr(o,c);m?o=mo(o,c,r(h,p)):(!h||typeof h!="object")&&(o=mo(o,c,KE(p))),qD(p).forEach(y=>{Object.getOwnPropertyDescriptor(p,y).enumerable&&i([...c,y],d)})}}else o=mo(o,c,p)}i([])}),o}function nc(...e){return GD(e)}const ym="__rc_react_root__";function a2(e,t){const n=t[ym]||MT.createRoot(t);n.render(e),t[ym]=n}async function l2(e){return Promise.resolve().then(()=>{e[ym]?.unmount(),delete e[ym]})}var Qi=TT();function XD(){}const YD=a.createContext({}),aS=()=>{const e=()=>{};return e.deprecated=XD,e},ia=aS,_v=a.createContext(null);function QD({children:e,onBatchResize:t}){const n=a.useRef(0),r=a.useRef([]),o=a.useContext(_v),s=a.useCallback((i,c,f)=>{n.current+=1;const d=n.current;r.current.push({size:i,element:c,data:f}),Promise.resolve().then(()=>{d===n.current&&(t?.(r.current),r.current=[])}),o?.(i,c,f)},[t,o]);return a.createElement(_v.Provider,{value:s},e)}const Ui=new Map;function JD(e){e.forEach(t=>{const{target:n}=t;Ui.get(n)?.forEach(r=>r(n))})}let Jy;function c2(){return Jy||(Jy=new ResizeObserver(JD)),Jy}function ZD(e,t){Ui.has(e)||(Ui.set(e,new Set),c2().observe(e)),Ui.get(e).add(t)}function e8(e,t){Ui.has(e)&&(Ui.get(e).delete(t),Ui.get(e).size||(c2().unobserve(e),Ui.delete(e)))}function u2(e,t,n,r){const o=a.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=Ct(f=>{const{width:d,height:p}=f.getBoundingClientRect(),{offsetWidth:m,offsetHeight:h}=f,y=Math.floor(d),b=Math.floor(p);if(o.current.width!==y||o.current.height!==b||o.current.offsetWidth!==m||o.current.offsetHeight!==h){const v={width:y,height:b,offsetWidth:m,offsetHeight:h};o.current=v;const $=m===Math.round(d)?d:m,x=h===Math.round(p)?p:h,E={...v,offsetWidth:$,offsetHeight:x};r?.(E,f),Promise.resolve().then(()=>{n?.(E,f)})}}),i=typeof t=="function",c=a.useRef(0);a.useEffect(()=>{const f=i?t():t;return f&&e?ZD(f,s):e&&i&&(c.current+=1),()=>{f&&e8(f,s)}},[e,i?c.current:t])}function t8(e,t){const{children:n,disabled:r,onResize:o,data:s}=e,i=a.useRef(null),c=a.useContext(_v),f=typeof n=="function",d=f?n(i):n,p=!f&&a.isValidElement(d)&&ri(d),m=p?Fs(d):null,h=Yo(m,i),y=()=>fs(i.current);return a.useImperativeHandle(t,()=>y()),u2(!r,y,o,(b,v)=>{c?.(b,v,s)}),p?a.cloneElement(d,{ref:h}):d}const n8=a.forwardRef(t8);function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}const r8="rc-observer-key";function o8(e,t){const{children:n}=e;return(typeof n=="function"?[n]:cr(n)).map((o,s)=>{const i=o?.key||`${r8}-${s}`;return a.createElement(n8,Fv({},e,{key:i,ref:s===0?t:void 0}),o)})}const bo=a.forwardRef(o8);bo.Collection=QD;function d2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=d2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=d2(e))&&(r&&(r+=" "),r+=t);return r}function kv(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 s8(e){if(Array.isArray(e))return kv(e)}function i8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f2(e,t){if(e){if(typeof e=="string")return kv(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)?kv(e,t):void 0}}function a8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
75
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(e){return s8(e)||i8(e)||f2(e)||a8()}const ud="ant",fh="anticon",l8=["outlined","borderless","filled","underlined"],c8=(e,t)=>t||(e?`${ud}-${e}`:ud),Ot=a.createContext({getPrefixCls:c8,iconPrefixCls:fh}),{Consumer:Boe}=Ot,UE={};function Xt(e){const t=a.useContext(Ot),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}=t,i=t[e];return{classNames:UE,styles:UE,...i,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}}function dd(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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)}const u8="%";function Hv(e){return e.join(u8)}let qE=0;class d8{constructor(t){Ce(this,"instanceId");Ce(this,"cache",new Map);Ce(this,"updateTimes",new Map);Ce(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet(Hv(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(Hv(t),n)}opUpdate(t,n){const r=this.cache.get(t),o=n(r);o===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,o),this.updateTimes.set(t,qE),qE+=1)}}const lS="data-token-hash",ti="data-css-hash",ei="__cssinjs_instance__";function f8(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ti}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[ei]||(o[ei]=e),o[ei]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${ti}]`)).forEach(o=>{const s=o.getAttribute(ti);r[s]?o[ei]===e&&o.parentNode?.removeChild(o):r[s]=!0})}return new d8(e)}const zd=a.createContext({hashPriority:"low",cache:f8(),defaultCache:!0,autoPrefix:!1});function p8(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const ic=class ic{constructor(){Ce(this,"cache");Ce(this,"keys");Ce(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(o=>{r?r=r?.map?.get(o):r=void 0}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ic.MAX_CACHE_SIZE+ic.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((s,i)=>{const[,c]=s;return this.internalGet(i)[1]<c?[i,this.internalGet(i)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,s)=>{if(s===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const i=r.get(o);i?i.map||(i.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),r.value?.[0];const o=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!p8(n,t)),this.deleteByPath(this.cache,t)}};Ce(ic,"MAX_CACHE_SIZE",20),Ce(ic,"MAX_CACHE_OFFSET",5);let jv=ic,GE=0;class p2{constructor(t){Ce(this,"derivatives");Ce(this,"id");this.derivatives=Array.isArray(t)?t:[t],this.id=GE,t.length===0&&(t.length>0,void 0),GE+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Zy=new jv;function bm(e){const t=Array.isArray(e)?e:[e];return Zy.has(t)||Zy.set(t,new p2(t)),Zy.get(t)}const m8=new WeakMap,eb={};function h8(e,t){let n=m8;for(let r=0;r<t.length;r+=1){const o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(eb)||n.set(eb,e()),n.get(eb)}const XE=new WeakMap;function qu(e){let t=XE.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof p2?t+=r.id:r&&typeof r=="object"?t+=qu(r):t+=r}),t=dd(t),XE.set(e,t)),t}function g8(e,t){return dd(`${t}_${qu(e)}`)}const Wv=Zr();function te(e){return typeof e=="number"?`${e}px`:e}function m2(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const y8=e=>e!=null;function cS(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const Jp=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),b8=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:s}=n||{};if(!Object.keys(e).length)return"";const i=`${m2({hashCls:r,hashPriority:o})}.${t}`,c=[s].flat().filter(Boolean);return`${c.length?c.map(d=>`${i}.${d}`).join(", "):i}{${Object.entries(e).map(([d,p])=>`${d}:${p};`).join("")}}`},h2=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:s,unitless:i,ignore:c,preserve:f}=n||{},d={},p={};return Object.entries(e).forEach(([m,h])=>{if(f?.[m])p[m]=h;else if((typeof h=="string"||typeof h=="number")&&!c?.[m]){const y=Jp(m,s);d[y]=typeof h=="number"&&!i?.[m]?`${h}px`:String(h),p[m]=`var(${y})`}}),[p,b8(d,t,{scope:n?.scope,hashCls:r,hashPriority:o})]},yp=new Map;function uS(e,t,n,r,o){const{cache:s}=a.useContext(zd),i=[e,...t],c=Hv(i),f=m=>{s.opUpdate(c,h=>{const[y=0,b]=h||[void 0,void 0],$=b||n(),x=[y,$];return m?m(x):x})};a.useMemo(()=>{f()},[c]);const p=s.opGet(c)[1];return a.useInsertionEffect(()=>(f(([m,h])=>[m+1,h]),yp.has(c)||(o?.(p),yp.set(c,!0),Promise.resolve().then(()=>{yp.delete(c)})),()=>{s.opUpdate(c,m=>{const[h=0,y]=m||[];return h-1===0?(r?.(y,!1),yp.delete(c),null):[h-1,y]})}),[c]),p}const v8={},x8="css",Ea=new Map;function C8(e){Ea.set(e,(Ea.get(e)||0)+1)}function S8(e,t){typeof document<"u"&&document.querySelectorAll(`style[${lS}="${e}"]`).forEach(r=>{r[ei]===t&&r.parentNode?.removeChild(r)})}const $8=-1;function w8(e,t){Ea.set(e,(Ea.get(e)||0)-1);const n=new Set;Ea.forEach((r,o)=>{r<=0&&n.add(o)}),Ea.size-n.size>$8&&n.forEach(r=>{S8(r,t),Ea.delete(r)})}const g2=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},E8="token";function R8(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:s}=a.useContext(zd),{salt:i="",override:c=v8,formatToken:f,getComputedToken:d,cssVar:p,nonce:m}=n,h=h8(()=>Object.assign({},...t),t),y=qu(h),b=qu(c),v=qu(p);return uS(E8,[i,e.id,y,b,v],()=>{const x=d?d(h,c,e):g2(h,c,e,f),E={...x},C=`${i}_${p.prefix}`,w=dd(C),R=`${x8}-${w}`;E._tokenKey=g8(E,C);const[P,I]=h2(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve,hashPriority:s,hashCls:p.hashed?R:void 0});return P._hashId=w,C8(p.key),[P,R,E,I,p.key]},([,,,,x])=>{w8(x,r)},([,,,x,E])=>{if(!x)return;let C={mark:ti,prepend:"queue",attachTo:o,priority:-999};C=cS(C,m);const w=Ka(x,dd(`css-var-${E}`),C);w[ei]=r,w.setAttribute(lS,E)})}var I8={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},Fn="-ms-",Gu="-moz-",$n="-webkit-",y2="comm",dS="rule",fS="decl",P8="@import",N8="@namespace",b2="@keyframes",T8="@layer",M8=Math.abs,Xu=String.fromCharCode,Vv=Object.assign;function O8(e,t){return mr(e,0)^45?(((t<<2^mr(e,0))<<2^mr(e,1))<<2^mr(e,2))<<2^mr(e,3):0}function v2(e){return e.trim()}function Xs(e,t){return(e=t.exec(e))?e[0]:e}function rn(e,t,n){return e.replace(t,n)}function tb(e,t){return e.indexOf(t)}function mr(e,t){return e.charCodeAt(t)|0}function Xa(e,t,n){return e.slice(t,n)}function is(e){return e.length}function x2(e){return e.length}function _u(e,t){return t.push(e),e}function z8(e,t){return e.map(t).join("")}function YE(e,t){return e.filter(function(n){return!Xs(n,t)})}var ph=1,Ic=1,C2=0,qo=0,lr=0,Bc="";function mh(e,t,n,r,o,s,i,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:ph,column:Ic,length:i,return:"",siblings:c}}function Oi(e,t){return Vv(mh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Hl(e){for(;e.root;)e=Oi(e.root,{children:[e]});_u(e,e.siblings)}function A8(){return lr}function L8(){return lr=qo>0?mr(Bc,--qo):0,Ic--,lr===10&&(Ic=1,ph--),lr}function cs(){return lr=qo<C2?mr(Bc,qo++):0,Ic++,lr===10&&(Ic=1,ph++),lr}function qi(){return mr(Bc,qo)}function Zp(){return qo}function hh(e,t){return Xa(Bc,e,t)}function fd(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 D8(e){return ph=Ic=1,C2=is(Bc=e),qo=0,[]}function B8(e){return Bc="",e}function nb(e){return v2(hh(qo-1,Kv(e===91?e+2:e===40?e+1:e)))}function _8(e){for(;(lr=qi())&&lr<33;)cs();return fd(e)>2||fd(lr)>3?"":" "}function F8(e,t){for(;--t&&cs()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return hh(e,Zp()+(t<6&&qi()==32&&cs()==32))}function Kv(e){for(;cs();)switch(lr){case e:return qo;case 34:case 39:e!==34&&e!==39&&Kv(lr);break;case 40:e===41&&Kv(e);break;case 92:cs();break}return qo}function k8(e,t){for(;cs()&&e+lr!==57;)if(e+lr===84&&qi()===47)break;return"/*"+hh(t,qo-1)+"*"+Xu(e===47?e:cs())}function H8(e){for(;!fd(qi());)cs();return hh(e,qo)}function QE(e){return B8(em("",null,null,null,[""],e=D8(e),0,[0],e))}function em(e,t,n,r,o,s,i,c,f){for(var d=0,p=0,m=i,h=0,y=0,b=0,v=1,$=1,x=1,E=0,C=0,w="",R=o,P=s,I=r,T=w;$;)switch(b=C,C=cs()){case 40:b!=108&&mr(T,m-1)==58?(E++,T+="("):T+=nb(C);break;case 41:E--,T+=")";break;case 34:case 39:case 91:T+=nb(C);break;case 9:case 10:case 13:case 32:if(E>0){T+=Xu(C);break}T+=_8(b);break;case 92:T+=F8(Zp()-1,7);continue;case 47:switch(qi()){case 42:case 47:_u(j8(k8(cs(),Zp()),t,n,f),f),(fd(b||1)==5||fd(qi()||1)==5)&&is(T)&&Xa(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*v:c[d++]=is(T)*x;case 125*v:case 59:case 0:if(E>0&&C){T+=Xu(C);break}switch(C){case 0:case 125:$=0;case 59+p:x==-1&&(T=rn(T,/\f/g,"")),y>0&&(is(T)-m||v===0)&&_u(y>32?ZE(T+";",r,n,m-1,f):ZE(rn(T," ","")+";",r,n,m-2,f),f);break;case 59:T+=";";default:if(_u(I=JE(T,t,n,d,p,o,c,w,R=[],P=[],m,s),s),C===123)if(p===0)em(T,t,I,I,R,s,m,c,P);else{switch(h){case 99:if(mr(T,3)===110)break;case 108:if(mr(T,2)===97)break;default:p=0;case 100:case 109:case 115:}p?em(e,I,I,r&&_u(JE(e,I,I,0,0,o,c,w,o,R=[],m,P),P),o,P,m,c,r?R:P):em(T,I,I,I,[""],P,0,c,P)}}d=p=y=0,v=x=1,w=T="",m=i;break;case 58:m=1+is(T),y=b;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&L8()==125)continue}switch(T+=Xu(C),C*v){case 38:x=p>0?1:(T+="\f",-1);break;case 44:if(E>0)break;c[d++]=(is(T)-1)*x,x=1;break;case 64:qi()===45&&(T+=nb(cs())),h=qi(),p=m=is(w=T+=H8(Zp())),C++;break;case 45:b===45&&is(T)==2&&(v=0)}}return s}function JE(e,t,n,r,o,s,i,c,f,d,p,m){for(var h=o-1,y=o===0?s:[""],b=x2(y),v=0,$=0,x=0;v<r;++v)for(var E=0,C=Xa(e,h+1,h=M8($=i[v])),w=e;E<b;++E)(w=v2($>0?y[E]+" "+C:rn(C,/&\f/g,y[E])))&&(f[x++]=w);return mh(e,t,n,o===0?dS:c,f,d,p,m)}function j8(e,t,n,r){return mh(e,t,n,y2,Xu(A8()),Xa(e,2,-2),0,r)}function ZE(e,t,n,r,o){return mh(e,t,n,fS,Xa(e,0,r),Xa(e,r+1,-1),r,o)}function S2(e,t,n){switch(O8(e,t)){case 5103:return $n+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return $n+e+e;case 4855:return $n+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Gu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $n+e+Gu+e+Fn+e+e;case 5936:switch(mr(e,t+11)){case 114:return $n+e+Fn+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $n+e+Fn+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $n+e+Fn+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $n+e+Fn+e+e;case 6165:return $n+e+Fn+"flex-"+e+e;case 5187:return $n+e+rn(e,/(\w+).+(:[^]+)/,$n+"box-$1$2"+Fn+"flex-$1$2")+e;case 5443:return $n+e+Fn+"flex-item-"+rn(e,/flex-|-self/g,"")+(Xs(e,/flex-|baseline/)?"":Fn+"grid-row-"+rn(e,/flex-|-self/g,""))+e;case 4675:return $n+e+Fn+"flex-line-pack"+rn(e,/align-content|flex-|-self/g,"")+e;case 5548:return $n+e+Fn+rn(e,"shrink","negative")+e;case 5292:return $n+e+Fn+rn(e,"basis","preferred-size")+e;case 6060:return $n+"box-"+rn(e,"-grow","")+$n+e+Fn+rn(e,"grow","positive")+e;case 4554:return $n+rn(e,/([^-])(transform)/g,"$1"+$n+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,$n+"$1"),/(image-set)/,$n+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,$n+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,$n+"box-pack:$3"+Fn+"flex-pack:$3"),/space-between/,"justify")+$n+e+e;case 4200:if(!Xs(e,/flex-|baseline/))return Fn+"grid-column-align"+Xa(e,t)+e;break;case 2592:case 3360:return Fn+rn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Xs(r.props,/grid-\w+-end/)})?~tb(e+(n=n[t].value),"span")?e:Fn+rn(e,"-start","")+e+Fn+"grid-row-span:"+(~tb(n,"span")?Xs(n,/\d+/):+Xs(n,/\d+/)-+Xs(e,/\d+/))+";":Fn+rn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Xs(r.props,/grid-\w+-start/)})?e:Fn+rn(rn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,$n+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(is(e)-1-t>6)switch(mr(e,t+1)){case 109:if(mr(e,t+4)!==45)break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+$n+"$2-$3$1"+Gu+(mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tb(e,"stretch")?S2(rn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return rn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,c,f,d){return Fn+o+":"+s+d+(i?Fn+o+"-span:"+(c?f:+f-+s)+d:"")+e});case 4949:if(mr(e,t+6)===121)return rn(e,":",":"+$n)+e;break;case 6444:switch(mr(e,mr(e,14)===45?18:11)){case 120:return rn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$n+(mr(e,14)===45?"inline-":"")+"box$3$1"+$n+"$2$3$1"+Fn+"$2box$3")+e;case 100:return rn(e,":",":"+Fn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rn(e,"scroll-","scroll-snap-")+e}return e}function pd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function eR(e,t,n,r){switch(e.type){case T8:if(e.children.length)break;case P8:case N8:case fS:return e.return=e.return||e.value;case y2:return"";case b2:return e.return=e.value+"{"+pd(e.children,r)+"}";case dS:if(!is(e.value=e.props.join(",")))return""}return is(n=pd(e.children,r))?e.return=e.value+"{"+n+"}":""}function W8(e){var t=x2(e);return function(n,r,o,s){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,s)||"";return i}}function V8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fS:e.return=S2(e.value,e.length,n);return;case b2:return pd([Oi(e,{value:rn(e.value,"@","@"+$n)})],r);case dS:if(e.length)return z8(n=e.props,function(o){switch(Xs(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Hl(Oi(e,{props:[rn(o,/:(read-\w+)/,":"+Gu+"$1")]})),Hl(Oi(e,{props:[o]})),Vv(e,{props:YE(n,r)});break;case"::placeholder":Hl(Oi(e,{props:[rn(o,/:(plac\w+)/,":"+$n+"input-$1")]})),Hl(Oi(e,{props:[rn(o,/:(plac\w+)/,":"+Gu+"$1")]})),Hl(Oi(e,{props:[rn(o,/:(plac\w+)/,Fn+"input-$1")]})),Hl(Oi(e,{props:[o]})),Vv(e,{props:YE(n,r)});break}return""})}}const tR="data-ant-cssinjs-cache-path",$2="_FILE_STYLE__";let Ua,w2=!0;function K8(){if(!Ua&&(Ua={},Zr())){const e=document.createElement("div");e.className=tR,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[o,s]=r.split(":");Ua[o]=s});const n=document.querySelector(`style[${tR}]`);n&&(w2=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function U8(e){return K8(),!!Ua[e]}function q8(e){const t=Ua[e];let n=null;if(t&&Zr())if(w2)n=$2;else{const r=document.querySelector(`style[${ti}="${Ua[e]}"]`);r?n=r.innerHTML:delete Ua[e]}return[n,t]}const G8="_skip_check_",E2="_multi_value_";function rb(e,t){return(t?pd(QE(e),W8([V8,eR])):pd(QE(e),eR)).replace(/\{%%%\:[^;];}/g,";")}function X8(e){return typeof e=="object"&&e&&(G8 in e||E2 in e)}function nR(e,t,n="high"){if(!t)return e;const r=m2({hashCls:t,hashPriority:n});return e.split(",").map(s=>{const i=s.trim().split(/\s+/);let c=i[0]||"";const f=c.match(/^\w+/)?.[0]||"";return c=`${f}${r}${c.slice(f.length)}`,[c,...i.slice(1)].join(" ")}).join(",")}const Uv=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:i,path:c,hashPriority:f,transformers:d=[],linters:p=[]}=t;let m="",h={};function y($){const x=$.getName(s);if(!h[x]){const[E]=Uv($.style,t,{root:!1,parentSelectors:o});h[x]=`@keyframes ${$.getName(s)}${E}`}}function b($,x=[]){return $.forEach(E=>{Array.isArray(E)?b(E,x):E&&x.push(E)}),x}return b(Array.isArray(e)?e:[e]).forEach($=>{const x=typeof $=="string"&&!n?{}:$;if(typeof x=="string")m+=`${x}
|
|
76
|
+
`;else if(x._keyframe)y(x);else{const E=d.reduce((C,w)=>w?.visit?.(C)||C,x);Object.keys(E).forEach(C=>{const w=E[C];if(typeof w=="object"&&w&&(C!=="animationName"||!w._keyframe)&&!X8(w)){let R=!1,P=C.trim(),I=!1;(n||r)&&s?P.startsWith("@")?R=!0:P==="&"?P=nR("",s,f):P=nR(C,s,f):n&&!s&&(P==="&"||P==="")&&(P="",I=!0);const[T,L]=Uv(w,t,{root:I,injectHash:R,parentSelectors:[...o,P]});h={...h,...L},m+=`${P}${T}`}else{let R=function(I,T){const L=I.replace(/[A-Z]/g,M=>`-${M.toLowerCase()}`);let z=T;!I8[I]&&typeof z=="number"&&z!==0&&(z=`${z}px`),I==="animationName"&&T?._keyframe&&(y(T),z=T.getName(s)),m+=`${L}:${z};`};const P=w?.value??w;typeof w=="object"&&w?.[E2]&&Array.isArray(P)?P.forEach(I=>{R(C,I)}):y8(P)&&R(C,P)}})}}),n?i&&(m&&(m=`@layer ${i.name} {${m}}`),i.dependencies&&(h[`@layer ${i.name}`]=i.dependencies.map($=>`@layer ${$}, ${i.name};`).join(`
|
|
77
|
+
`))):m=`{${m}}`,[m,h]};function R2(e,t){return dd(`${e.join("%")}${t}`)}const Y8="style";function qv(e,t){const{path:n,hashId:r,layer:o,nonce:s,clientOnly:i,order:c=0}=e,{mock:f,hashPriority:d,container:p,transformers:m,linters:h,cache:y,layer:b,autoPrefix:v}=a.useContext(zd),$=[r||""];b&&$.push("layer"),$.push(...n);let x=Wv;uS(Y8,$,()=>{const E=$.join("|");if(U8(E)){const[T,L]=q8(E);if(T)return[T,L,{},i,c]}const C=t(),[w,R]=Uv(C,{hashId:r,hashPriority:d,layer:b?o:void 0,path:n.join("-"),transformers:m,linters:h}),P=rb(w,v||!1),I=R2($,P);return[P,I,R,i,c]},(E,C)=>{const[,w]=E;C&&Wv&&cd(w,{mark:ti,attachTo:p})},E=>{const[C,w,R,,P]=E;if(x&&C!==$2){let I={mark:ti,prepend:b?!1:"queue",attachTo:p,priority:P};I=cS(I,s);const T=[],L=[];Object.keys(R).forEach(M=>{M.startsWith("@layer")?T.push(M):L.push(M)}),T.forEach(M=>{Ka(rb(R[M],v||!1),`_layer-${M}`,{...I,prepend:!0})});const z=Ka(C,w,I);z[ei]=y.instanceId,L.forEach(M=>{Ka(rb(R[M],v||!1),`_effect-${M}`,I)})}})}const Q8="cssVar",J8=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:s,token:i,hashId:c,scope:f,nonce:d}=e,{cache:{instanceId:p},container:m,hashPriority:h}=a.useContext(zd),{_tokenKey:y}=i,b=Array.isArray(f)?f.join("@@"):f,v=[...e.path,n,b,y];return uS(Q8,v,()=>{const x=t(),[E,C]=h2(x,n,{prefix:r,unitless:o,ignore:s,scope:f,hashPriority:h,hashCls:c}),w=R2(v,C);return[E,C,w,n]},([,,x])=>{Wv&&cd(x,{mark:ti,attachTo:m})},([,x,E])=>{if(!x)return;let C={mark:ti,prepend:"queue",attachTo:m,priority:-999};C=cS(C,d);const w=Ka(x,E,C);w[ei]=p,w.setAttribute(lS,n)})};class fn{constructor(t,n){Ce(this,"name");Ce(this,"style");Ce(this,"_keyframe",!0);this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function jl(e){return e.notSplit=!0,e}jl(["borderTop","borderBottom"]),jl(["borderTop"]),jl(["borderBottom"]),jl(["borderLeft","borderRight"]),jl(["borderLeft"]),jl(["borderRight"]);function ms(e){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(e)}function Z8(e){if(Array.isArray(e))return e}function eB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,o=p}finally{try{if(!f&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return c}}function tB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vm(e,t){return Z8(e)||eB(e,t)||f2(e,t)||tB()}function nB(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I2(e){var t=nB(e,"string");return ms(t)=="symbol"?t:t+""}function ar(e,t,n){return(t=I2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rR(Object(n),!0).forEach(function(r){ar(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rB(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,I2(r.key),r)}}function il(e,t,n){return t&&rB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xm(e,t){return xm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xm(e,t)}function P2(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&&xm(e,t)}function Pc(e){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pc(e)}function pS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pS=function(){return!!e})()}function N2(e,t){if(t&&(ms(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tm(e)}function oB(e){var t=pS();return function(){var n,r=Pc(e);if(t){var o=Pc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N2(this,n)}}var sB=il(function e(){sl(this,e)}),T2="CALC_UNIT",iB=new RegExp(T2,"g");function ob(e){return typeof e=="number"?"".concat(e).concat(T2):e}var aB=(function(e){P2(n,e);var t=oB(n);function n(r,o){var s;sl(this,n),s=t.call(this),ar(tm(s),"result",""),ar(tm(s),"unitlessCssVar",void 0),ar(tm(s),"lowPriority",void 0);var i=ms(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):i==="number"?s.result=ob(r):i==="string"&&(s.result=r),s}return il(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(ob(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(ob(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var s=this,i=o||{},c=i.unit,f=!0;return typeof c=="boolean"?f=c:Array.from(this.unitlessCssVar).some(function(d){return s.result.includes(d)})&&(f=!1),this.result=this.result.replace(iB,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(sB),lB=function(t,n){var r=aB;return function(o){return new r(o,n)}},oR=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 sR(e,t,n,r){var o=ho({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(c){var f=vm(c,2),d=f[0],p=f[1];if(o!=null&&o[d]||o!=null&&o[p]){var m;(m=o[p])!==null&&m!==void 0||(o[p]=o?.[d])}})}var i=ho(ho({},n),o);return Object.keys(i).forEach(function(c){i[c]===t[c]&&delete i[c]}),i}var M2=typeof CSSINJS_STATISTIC<"u",Gv=!0;function Jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!M2)return Object.assign.apply(Object,[{}].concat(t));Gv=!1;var r={};return t.forEach(function(o){if(ms(o)==="object"){var s=Object.keys(o);s.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Gv=!0,r}var iR={};function cB(){}var uB=function(t){var n,r=t,o=cB;return M2&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,c){if(Gv){var f;(f=n)===null||f===void 0||f.add(c)}return i[c]}}),o=function(i,c){var f;iR[i]={global:Array.from(n),component:ho(ho({},(f=iR[i])===null||f===void 0?void 0:f.component),c)}}),{token:r,keys:n,flush:o}};function aR(e,t,n){if(typeof n=="function"){var r;return n(Jt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function dB(e){return{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(s){return te(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(s){return te(s)}).join(","),")")}}}var fB=1e3*60*10,pB=(function(){function e(){sl(this,e),ar(this,"map",new Map),ar(this,"objectIDMap",new WeakMap),ar(this,"nextID",0),ar(this,"lastAccessBeat",new Map),ar(this,"accessBeat",0)}return il(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(s){return s&&ms(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(ms(s),"_").concat(s)});return o.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(o,s){r-o>fB&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),lR=new pB;function mB(e,t){return ee.useMemo(function(){var n=lR.get(t);if(n)return n;var r=e();return lR.set(t,r),r},t)}var hB=function(){return{}};function gB(e){var t=e.useCSP,n=t===void 0?hB:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,i=e.getCommonStyle,c=e.getCompUnitless;function f(h,y,b,v){var $=Array.isArray(h)?h[0]:h;function x(T){return"".concat(String($)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var E=v?.unitless||{},C=typeof c=="function"?c(h):{},w=ho(ho({},C),{},ar({},x("zIndexPopup"),!0));Object.keys(E).forEach(function(T){w[x(T)]=E[T]});var R=ho(ho({},v),{},{unitless:w,prefixToken:x}),P=p(h,y,b,R),I=d($,b,R);return function(T){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,z=P(T,L),M=v?.extraCssVarPrefixCls,O=typeof M=="function"?M({prefixCls:T,rootCls:L}):M,_=I(O!=null&&O.length?[L].concat(jt(O)):L);return[z,_]}}function d(h,y,b){var v=b.unitless,$=b.prefixToken,x=b.ignore;return function(E){var C=r(),w=C.cssVar,R=C.realToken,P=n();return J8({path:[h],prefix:w.prefix,key:w.key,unitless:v,ignore:x,token:R,scope:E,nonce:function(){return P.nonce}},function(){var I=aR(h,R,y),T=sR(h,R,I,{deprecatedTokens:b?.deprecatedTokens});return I&&Object.keys(I).forEach(function(L){T[$(L)]=T[L],delete T[L]}),T}),w?.key}}function p(h,y,b){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},$=Array.isArray(h)?h:[h,h],x=vm($,1),E=x[0],C=$.join("-"),w=e.layer||{name:"antd"};return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,I=r(),T=I.theme,L=I.realToken,z=I.hashId,M=I.token,O=I.cssVar,_=I.zeroRuntime,F=a.useMemo(function(){return _},[]);if(F)return z;var W=o(),q=W.rootPrefixCls,G=W.iconPrefixCls,j=n(),H="css",k=mB(function(){var Z=new Set;return Object.keys(v.unitless||{}).forEach(function(X){Z.add(Jp(X,O.prefix)),Z.add(Jp(X,oR(E,O.prefix)))}),lB(H,Z)},[H,E,O?.prefix]),B=dB(),D=B.max,K=B.min,Q={theme:T,token:M,hashId:z,nonce:function(){return j.nonce},clientOnly:v.clientOnly,layer:w,order:v.order||-999};return typeof s=="function"&&qv(ho(ho({},Q),{},{clientOnly:!1,path:["Shared",q]}),function(){return s(M,{prefix:{rootPrefixCls:q,iconPrefixCls:G},csp:j})}),qv(ho(ho({},Q),{},{path:[C,R,G]}),function(){if(v.injectStyle===!1)return[];var Z=uB(M),X=Z.token,J=Z.flush,ne=aR(E,L,b),oe=".".concat(R),ae=sR(E,L,ne,{deprecatedTokens:v.deprecatedTokens});ne&&ms(ne)==="object"&&Object.keys(ne).forEach(function(ie){ne[ie]="var(".concat(Jp(ie,oR(E,O.prefix)),")")});var pe=Jt(X,{componentCls:oe,prefixCls:R,iconCls:".".concat(G),antCls:".".concat(q),calc:k,max:D,min:K},ne),fe=y(pe,{hashId:z,prefixCls:R,rootPrefixCls:q,iconPrefixCls:G});J(E,ae);var le=typeof i=="function"?i(pe,R,P,v.resetFont):null;return[v.resetStyle===!1?null:le,fe]}),z}}function m(h,y,b){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},$=p(h,y,b,ho({resetStyle:!1,order:-998},v)),x=function(C){var w=C.prefixCls,R=C.rootCls,P=R===void 0?w:R;return $(w,P),null};return x}return{genStyleHooks:f,genSubStyleComponent:m,genComponentStyleHook:p}}const zs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function nm(e){return(e+8)/e}function yB(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,s=e*Math.E**(o/5),i=r>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:nm(n)}))}const bB="6.7.0",mS={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"},Nc={...mS,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
79
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
80
|
+
'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,focusOutline:!0,motion:!0},vB={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Sr=Math.round;function sb(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const cR=(e,t,n)=>n===0?e:e/100;function Pu(e,t){const n=t||255;return e>n?n:e<0?0:e}class Cn{constructor(t){Ce(this,"isValid",!0);Ce(this,"r",0);Ce(this,"g",0);Ce(this,"b",0);Ce(this,"a",1);Ce(this,"_h");Ce(this,"_hsl_s");Ce(this,"_hsv_s");Ce(this,"_l");Ce(this,"_v");Ce(this,"_max");Ce(this,"_min");Ce(this,"_brightness");function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};var r=s;const o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(s("rgb"))this.fromRgbString(o);else if(s("hsl"))this.fromHslString(o);else if(s("hsv")||s("hsb"))this.fromHsvString(o);else{const i=vB[o.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof Cn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Pu(t.r),this.g=Pu(t.g),this.b=Pu(t.b),this.a=typeof t.a=="number"?Pu(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(s){const i=s/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Sr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,s=c=>(r[c]-this[c])*o+this[c],i={r:Sr(s("r")),g:Sr(s("g")),b:Sr(s("b")),a:Sr(s("a")*100)/100};return this._c(i)}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),o=s=>Sr((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=Sr(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Sr(this.getHSLSaturation()*100),r=Sr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Pu(n,r),o}_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(o,s){return parseInt(n[o]+n[s||o],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:o}){const s=(t%360+360)%360;if(this._h=s,this._hsl_s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const y=Sr(r*255);this.r=y,this.g=y,this.b=y;return}let i=0,c=0,f=0;const d=s/60,p=(1-Math.abs(2*r-1))*n,m=p*(1-Math.abs(d%2-1));d>=0&&d<1?(i=p,c=m):d>=1&&d<2?(i=m,c=p):d>=2&&d<3?(c=p,f=m):d>=3&&d<4?(c=m,f=p):d>=4&&d<5?(i=m,f=p):d>=5&&d<6&&(i=p,f=m);const h=r-p/2;this.r=Sr((i+h)*255),this.g=Sr((c+h)*255),this.b=Sr((f+h)*255)}fromHsv({h:t,s:n,v:r,a:o}){const s=(t%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=Sr(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const c=s/60,f=Math.floor(c),d=c-f,p=Sr(r*(1-n)*255),m=Sr(r*(1-n*d)*255),h=Sr(r*(1-n*(1-d))*255);switch(f){case 0:this.g=h,this.b=p;break;case 1:this.r=m,this.b=p;break;case 2:this.r=p,this.b=h;break;case 3:this.r=p,this.g=m;break;case 4:this.r=h,this.g=p;break;case 5:default:this.g=p,this.b=m;break}}fromHsvString(t){const n=sb(t,cR);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=sb(t,cR);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=sb(t,(r,o)=>o.includes("%")?Sr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const bp=2,uR=.16,xB=.05,CB=.05,SB=.15,O2=5,z2=4,$B=[{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 dR(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-bp*t:Math.round(e.h)+bp*t:r=n?Math.round(e.h)+bp*t:Math.round(e.h)-bp*t,r<0?r+=360:r>=360&&(r-=360),r}function fR(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-uR*t:t===z2?r=e.s+uR:r=e.s+xB*t,r>1&&(r=1),n&&t===O2&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function pR(e,t,n){let r;return n?r=e.v+CB*t:r=e.v-SB*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function gh(e,t={}){const n=[],r=new Cn(e),o=r.toHsv();for(let s=O2;s>0;s-=1){const i=new Cn({h:dR(o,s,!0),s:fR(o,s,!0),v:pR(o,s,!0)});n.push(i)}n.push(r);for(let s=1;s<=z2;s+=1){const i=new Cn({h:dR(o,s),s:fR(o,s),v:pR(o,s)});n.push(i)}return t.theme==="dark"?$B.map(({index:s,amount:i})=>new Cn(t.backgroundColor||"#141414").mix(n[s],i).toHexString()):n.map(s=>s.toHexString())}const ib={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"},Xv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Xv.primary=Xv[5];const Yv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Yv.primary=Yv[5];const Qv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Qv.primary=Qv[5];const Cm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Cm.primary=Cm[5];const Jv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Jv.primary=Jv[5];const Zv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Zv.primary=Zv[5];const e0=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];e0.primary=e0[5];const t0=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];t0.primary=t0[5];const n0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];n0.primary=n0[5];const r0=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];r0.primary=r0[5];const o0=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];o0.primary=o0[5];const s0=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];s0.primary=s0[5];const i0=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];i0.primary=i0[5];const ab={red:Xv,volcano:Yv,orange:Qv,gold:Cm,yellow:Jv,lime:Zv,green:e0,cyan:t0,blue:n0,geekblue:r0,purple:o0,magenta:s0,grey:i0};function A2(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:c,colorBgBase:f,colorTextBase:d}=e,p=t(c),m=t(r),h=t(o),y=t(s),b=t(i),v=n(f,d),$=e.colorLink||e.colorInfo,x=t($),E=new Cn(y[1]).mix(new Cn(y[3]),50).toHexString(),C={};return zs.forEach(w=>{const R=e[w];if(R){const P=t(R);C[`${w}Hover`]=P[5],C[`${w}Active`]=P[7]}}),{...v,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:E,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],...C,colorBgMask:new Cn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const wB=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function EB(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1,...wB(r)}}const L2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},D2=e=>{const t=yB(e),n=t.map(p=>p.size),r=t.map(p=>p.lineHeight),o=n[1],s=n[0],i=n[2],c=r[1],f=r[0],d=r[2];return{fontSizeSM:s,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:d,lineHeightSM:f,fontHeight:Math.round(c*o),fontHeightLG:Math.round(d*i),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function RB(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 ko=(e,t)=>new Cn(e).setA(t).toRgbString(),Wl=(e,t)=>new Cn(e).darken(t).toHexString(),IB=e=>{const t=gh(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]}},PB=(e,t,n)=>{const r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"#000",colorText:ko(o,.88),colorTextSecondary:ko(o,.65),colorTextTertiary:ko(o,.45),colorTextQuaternary:ko(o,.25),colorFill:ko(o,.15),colorFillSecondary:ko(o,.06),colorFillTertiary:ko(o,.04),colorFillQuaternary:ko(o,.02),colorBgSolid:ko(o,1),colorBgSolidHover:ko(o,.75),colorBgSolidActive:ko(o,.95),colorBgLayout:Wl(r,4),colorBgContainer:Wl(r,0),colorBgElevated:Wl(r,0),colorBgSpotlight:ko(o,.85),colorBgBlur:"transparent",colorBorder:Wl(r,15),colorBorderDisabled:Wl(r,15),colorBorderSecondary:Wl(r,6)}};function yh(e){ib.pink=ib.magenta,ab.pink=ab.magenta;const t=Object.keys(mS).map(n=>{const r=e[n]===ib[n]?ab[n]:gh(e[n]);return Array.from({length:10},()=>1).reduce((o,s,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...A2(e,{generateColorPalettes:IB,generateNeutralColorPalettes:PB}),...D2(e.fontSize),...RB(e),...L2(e),...EB(e)}}const hS=bm(yh),md={token:Nc,override:{override:Nc},hashed:!0},gS=ee.createContext(md);function lb(e){return e>=0&&e<=255}function Fu(e,t){const{r:n,g:r,b:o,a:s}=new Cn(e).toRgb();if(s<1)return e;const{r:i,g:c,b:f}=new Cn(t).toRgb();for(let d=.01;d<=1;d+=.01){const p=Math.round((n-i*(1-d))/d),m=Math.round((r-c*(1-d))/d),h=Math.round((o-f*(1-d))/d);if(lb(p)&&lb(m)&&lb(h))return new Cn({r:p,g:m,b:h,a:Math.round(d*100)/100}).toRgbString()}return new Cn({r:n,g:r,b:o,a:1}).toRgbString()}function B2(e){const{override:t,...n}=e,r={...t};Object.keys(Nc).forEach($=>{delete r[$]});const o={...n,...r},s=new Cn(o.colorShadow),i=s.a,c=$=>s.clone().setA(i*$).toRgbString(),f=480,d=576,p=768,m=992,h=1200,y=1600,b=1920;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Fu(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Fu(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Fu(o.colorWarningBg,o.colorBgContainer),colorErrorAffix:o.colorError,colorWarningAffix:o.colorWarning,fontHeight:Math.round(o.fontSize*o.lineHeight),fontHeightSM:Math.round(o.fontSizeSM*o.lineHeightSM),fontHeightLG:Math.round(o.fontSizeLG*o.lineHeightLG),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.focusOutline===!1?0:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Fu(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
81
|
+
0 6px 16px 0 ${c(.08)},
|
|
82
|
+
0 3px 6px -4px ${c(.12)},
|
|
83
|
+
0 9px 28px 8px ${c(.05)}
|
|
84
|
+
`,boxShadowSecondary:`
|
|
85
|
+
0 6px 16px 0 ${c(.08)},
|
|
86
|
+
0 3px 6px -4px ${c(.12)},
|
|
87
|
+
0 9px 28px 8px ${c(.05)}
|
|
88
|
+
`,boxShadowTertiary:`
|
|
89
|
+
0 1px 2px 0 ${c(.05)},
|
|
90
|
+
0 1px 6px -1px ${c(.03)},
|
|
91
|
+
0 2px 4px 0 ${c(.03)}
|
|
92
|
+
`,screenXS:f,screenXSMin:f,screenXSMax:d-1,screenSM:d,screenSMMin:d,screenSMMax:p-1,screenMD:p,screenMDMin:p,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:h-1,screenXL:h,screenXLMin:h,screenXLMax:y-1,screenXXL:y,screenXXLMin:y,screenXXLMax:b-1,screenXXXL:b,screenXXXLMin:b,boxShadowPopoverArrow:`2px 2px 5px ${c(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${c(.08)}) drop-shadow(0 3px 6px ${c(.12)}) drop-shadow(0 9px 28px ${c(.05)})`,boxShadowCard:`
|
|
93
|
+
0 1px 2px -2px ${c(.16)},
|
|
94
|
+
0 3px 6px 0 ${c(.12)},
|
|
95
|
+
0 5px 12px 4px ${c(.09)}
|
|
96
|
+
`,boxShadowDrawerRight:`
|
|
97
|
+
-6px 0 16px 0 ${c(.08)},
|
|
98
|
+
-3px 0 6px -4px ${c(.12)},
|
|
99
|
+
-9px 0 28px 8px ${c(.05)}
|
|
100
|
+
`,boxShadowDrawerLeft:`
|
|
101
|
+
6px 0 16px 0 ${c(.08)},
|
|
102
|
+
3px 0 6px -4px ${c(.12)},
|
|
103
|
+
9px 0 28px 8px ${c(.05)}
|
|
104
|
+
`,boxShadowDrawerUp:`
|
|
105
|
+
0 6px 16px 0 ${c(.08)},
|
|
106
|
+
0 3px 6px -4px ${c(.12)},
|
|
107
|
+
0 9px 28px 8px ${c(.05)}
|
|
108
|
+
`,boxShadowDrawerDown:`
|
|
109
|
+
0 -6px 16px 0 ${c(.08)},
|
|
110
|
+
0 -3px 6px -4px ${c(.12)},
|
|
111
|
+
0 -9px 28px 8px ${c(.05)}
|
|
112
|
+
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${c(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${c(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${c(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${c(.08)}`,...r}}const _2={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},NB={motionBase:!0,motionUnit:!0},TB={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},F2=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...s}=t;let i={...r,override:o};return i=B2(i),s&&Object.entries(s).forEach(([c,f])=>{const{theme:d,...p}=f;let m=p;d&&(m=F2({...i,...p},{override:p},d)),i[c]=m}),i};function Dr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:s}=ee.useContext(gS),{csp:i,getPrefixCls:c}=ee.useContext(Ot),f={prefix:o?.prefix??c(),key:o?.key??"css-var-root"},d=`${bB}-${t||""}`,p=n||hS,[m,h,y]=R8(p,[Nc,e],{salt:d,override:r,getComputedToken:F2,cssVar:{...f,unitless:_2,ignore:NB,preserve:TB},nonce:i?.nonce});return[p,y,t?h:"",m,f,!!s]}const zr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},an=(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}),Ad=()=>({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",verticalAlign:"inherit"}}),MB=new fn("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),Ji=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),eo=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),to=(e,t)=>({"&:focus-visible":eo(e,t)}),OB=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},...to(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),zB=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return r!==!1&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...c,...i,[o]:i}}},k2=e=>({[`.${e}`]:{...Ad(),"&::before":{display:"none"},"&[tabindex]":{cursor:"pointer"}},[`.${e} .${e}-icon`]:{display:"block"},[`.${e}-spin`]:{animationName:MB,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),yS=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...to(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Zt,genComponentStyleHook:AB,genSubStyleComponent:al}=gB({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=a.useContext(Ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,s]=Dr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:s}},useCSP:()=>{const{csp:e}=a.useContext(Ot);return e??{}},getResetStyles:(e,t)=>{const n=OB(e);return[n,{"&":n},k2(t?.prefix.iconPrefixCls??fh)]},getCommonStyle:zB,getCompUnitless:()=>_2}),Bt=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,i)=>i?`var(${n}${s}, ${i})`:`var(${n}${s})`]};function H2(e,t){return zs.reduce((n,r)=>{const o=e[`${r}1`],s=e[`${r}3`],i=e[`${r}6`],c=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:s,darkColor:i,textColor:c})}},{})}const LB=(e,t)=>(Dr(),qv({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>k2(e)));var DB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const bS=a.createContext({}),mR="data-rc-order",hR="data-rc-priority",BB="rc-util-key",a0=new Map;function j2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _B(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function W2({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:BB}function vS(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function FB(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xS(e){return Array.from((a0.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function V2(e,t={}){if(!j2())return null;const{csp:n,prepend:r,priority:o=0}=t,s=FB(r),i=s==="prependQueue",c=document.createElement("style");c.setAttribute(mR,s),i&&o&&c.setAttribute(hR,`${o}`),n?.nonce&&(c.nonce=n.nonce),c.innerHTML=e;const f=vS(t),{firstChild:d}=f;if(r){if(i){const p=(t.styles||xS(f)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(mR)))return!1;const h=Number(m.getAttribute(hR)||0);return o>=h});if(p.length)return f.insertBefore(c,p[p.length-1].nextSibling),c}f.insertBefore(c,d)}else f.appendChild(c);return c}function kB(e,t={}){let{styles:n}=t;return n||(n=xS(vS(t))),n.find(r=>r.getAttribute(W2(t))===e)}function HB(e,t){const n=a0.get(e);if(!n||!_B(document,n)){const r=V2("",t);if(!r)return;const{parentNode:o}=r;a0.set(e,o),e.removeChild(r)}}function jB(e,t,n={}){if(!j2())return null;const r=vS(n),o=xS(r),s={...n,styles:o};HB(r,s);const i=kB(t,s);if(i)return s.csp?.nonce&&i.nonce!==s.csp.nonce&&(i.nonce=s.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const c=V2(e,s);return c?.setAttribute(W2(s),t),c}function WB(e){return e?.getRootNode?.()}function VB(e){const t=WB(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const gR={};function KB(e,t){e||gR[t]||(gR[t]=!0)}function UB(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function K2(e,t){KB(e,`[@ant-design/icons] ${t}`)}function Sm(e){return e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function yR(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[UB(n)]=r}return t},{})}function l0(e,t,n){return n?ee.createElement(e.tag,{key:t,...yR(e.attrs),...n},(e.children||[]).map((r,o)=>l0(r,`${t}-${e.tag}-${o}`))):ee.createElement(e.tag,{key:t,...yR(e.attrs)},(e.children||[]).map((r,o)=>l0(r,`${t}-${e.tag}-${o}`)))}const qB=`
|
|
113
|
+
.anticon {
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
color: inherit;
|
|
117
|
+
font-style: normal;
|
|
118
|
+
line-height: 0;
|
|
119
|
+
text-align: center;
|
|
120
|
+
text-transform: none;
|
|
121
|
+
vertical-align: -0.125em;
|
|
122
|
+
text-rendering: optimizeLegibility;
|
|
123
|
+
-webkit-font-smoothing: antialiased;
|
|
124
|
+
-moz-osx-font-smoothing: grayscale;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.anticon > * {
|
|
128
|
+
line-height: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.anticon svg {
|
|
132
|
+
display: inline-block;
|
|
133
|
+
vertical-align: inherit;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.anticon::before {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.anticon .anticon-icon {
|
|
141
|
+
display: block;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.anticon[tabindex] {
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.anticon-spin {
|
|
149
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
150
|
+
animation: loadingCircle 1s infinite linear;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@-webkit-keyframes loadingCircle {
|
|
154
|
+
100% {
|
|
155
|
+
-webkit-transform: rotate(360deg);
|
|
156
|
+
transform: rotate(360deg);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@keyframes loadingCircle {
|
|
161
|
+
100% {
|
|
162
|
+
-webkit-transform: rotate(360deg);
|
|
163
|
+
transform: rotate(360deg);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`,GB=e=>{const{csp:t,prefixCls:n,layer:r,zeroRuntime:o}=a.useContext(bS);let s=qB;n&&(s=s.replace(/anticon/g,n)),r&&(s=`@layer ${r} {
|
|
167
|
+
${s}
|
|
168
|
+
}`),a.useEffect(()=>{if(o)return;const i=e.current,c=VB(i);jB(s,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},U2=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:s,secondaryColor:i,...c}=e,f=a.useRef(null);if(GB(f),K2(Sm(t),`icon should be icon definiton, but got ${typeof t}`),!Sm(t))return null;const d=t;return l0(d.icon,`svg-${d.name}`,{className:n,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:f})};U2.displayName="IconReact";function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.apply(this,arguments)}const _t=a.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:s,tabIndex:i,onClick:c,twoToneColor:f,...d}=e,{prefixCls:p="anticon",rootClassName:m}=a.useContext(bS);if(K2(Sm(r),`icon should be icon definiton, but got ${typeof r}`),!Sm(r))return null;const h=U(m,p,{[`${p}-${r.name}`]:!!r.name,[`${p}-spin`]:!!o||r.name==="loading"},n);let y=i;y===void 0&&c&&(y=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0;return a.createElement("span",c0({role:"img","aria-label":r.name},d,{ref:t,tabIndex:y,onClick:c,className:h}),a.createElement(U2,{icon:r,style:b}))});function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(this,arguments)}const XB=(e,t)=>a.createElement(_t,u0({},e,{ref:t,icon:DB})),Ld=a.forwardRef(XB);var YB={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d0.apply(this,arguments)}const QB=(e,t)=>a.createElement(_t,d0({},e,{ref:t,icon:YB})),ll=a.forwardRef(QB);var JB={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}const ZB=(e,t)=>a.createElement(_t,f0({},e,{ref:t,icon:JB})),ii=a.forwardRef(ZB);var e5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}const t5=(e,t)=>a.createElement(_t,p0({},e,{ref:t,icon:e5})),cl=a.forwardRef(t5);var n5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(this,arguments)}const r5=(e,t)=>a.createElement(_t,m0({},e,{ref:t,icon:n5})),bh=a.forwardRef(r5),q2=a.createContext({}),o5=e=>{const{children:t,...n}=e,r=a.useMemo(()=>({motion:n.motion}),[n.motion]);return a.createElement(q2.Provider,{value:r},t)},Wo="none",vp="appear",xp="enter",Cp="leave",bR="none",as="prepare",Ra="start",Ia="active",CS="end",G2="prepared";function vR(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function s5(e,t){const n={animationend:vR("Animation","AnimationEnd"),transitionend:vR("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const i5=s5(Zr(),typeof window<"u"?window:{});let X2={};Zr()&&({style:X2}=document.createElement("div"));const Sp={};function Y2(e){if(Sp[e])return Sp[e];const t=i5[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const s=n[o];if(Object.prototype.hasOwnProperty.call(t,s)&&s in X2)return Sp[e]=t[s],Sp[e]}}return""}const Q2=Y2("animationend"),J2=Y2("transitionend"),a5=!!(Q2&&J2),xR=Q2||"animationend",CR=J2||"transitionend";function SR(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const l5=(e=>{const t=a.useRef(null);function n(o){o&&(o.removeEventListener(CR,e),o.removeEventListener(xR,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(CR,e),o.addEventListener(xR,e),t.current=o)}return a.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Z2=Zr()?a.useLayoutEffect:a.useEffect,c5=(()=>{const e=a.useRef(null);function t(){Wt.cancel(e.current),e.current=null}function n(r,o=2){t();const s=Wt(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return a.useEffect(()=>()=>{t()},[]),[n,t]}),u5=[as,Ra,Ia,CS],d5=[as,G2],eM=!1,f5=!0;function tM(e){return e===Ia||e===CS}const p5=((e,t,n)=>{const[r,o]=a.useState(bR),[s,i]=c5();function c(){o(as)}const f=t?d5:u5;return Z2(()=>{if(r!==bR&&r!==CS){const d=f.indexOf(r),p=f[d+1],m=n(r);m===eM?o(p):p&&s(h=>{function y(){h.isCanceled()||o(p)}m===!0?y():Promise.resolve(m).then(y)})}},[e,r]),a.useEffect(()=>()=>{i()},[]),[c,r]});function m5(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:c,onAppearPrepare:f,onEnterPrepare:d,onLeavePrepare:p,onAppearStart:m,onEnterStart:h,onLeaveStart:y,onAppearActive:b,onEnterActive:v,onLeaveActive:$,onAppearEnd:x,onEnterEnd:E,onLeaveEnd:C,onVisibleChanged:w}){const[R,P]=a.useState(),[I,T]=vD(Wo),[L,z]=a.useState([null,null]),M=I(),O=a.useRef(!1),_=a.useRef(null);function F(){return n()}const W=a.useRef(!1);function q(){T(Wo),z([null,null])}const G=Ct(oe=>{const ae=I();if(ae===Wo)return;const pe=F();if(oe&&!oe.deadline&&oe.target!==pe)return;const fe=W.current;let le;ae===vp&&fe?le=x?.(pe,oe):ae===xp&&fe?le=E?.(pe,oe):ae===Cp&&fe&&(le=C?.(pe,oe)),fe&&le!==!1&&q()}),[j]=l5(G),H=oe=>{switch(oe){case vp:return{[as]:f,[Ra]:m,[Ia]:b};case xp:return{[as]:d,[Ra]:h,[Ia]:v};case Cp:return{[as]:p,[Ra]:y,[Ia]:$};default:return{}}},k=a.useMemo(()=>H(M),[M]),[B,D]=p5(M,!e,oe=>{if(oe===as){const ae=k[as];return ae?ae(F()):eM}return oe in k&&z([k[oe]?.(F(),null)||null,oe]),oe===Ia&&M!==Wo&&(j(F()),i>0&&(clearTimeout(_.current),_.current=setTimeout(()=>{G({deadline:!0})},i))),oe===G2&&q(),f5}),K=tM(D);W.current=K;const Q=a.useRef(null),Z=a.useRef(!1);Z2(()=>{if(O.current&&Q.current===t){I()!==Wo&&B();return}Z.current=!0,P(t);const oe=O.current;O.current=!0;let ae;!oe&&t&&o&&(ae=vp),oe&&t&&r&&(ae=xp),(oe&&!t&&s||!oe&&c&&!t&&s)&&(ae=Cp);const pe=H(ae);ae&&(e||pe[as])?(T(ae),B()):T(Wo),Q.current=t},[t]),a.useEffect(()=>{(M===vp&&!o||M===xp&&!r||M===Cp&&!s)&&T(Wo)},[o,r,s]),a.useEffect(()=>()=>{clearTimeout(_.current)},[]);const X=a.useRef(!1);a.useEffect(()=>{R&&(X.current=!0),Z.current&&R!==void 0&&R===Q.current&&M===Wo&&I()===Wo&&(Z.current=!1,(X.current||R)&&w?.(R),X.current=!0)},[R,M,I,w]);let J=L[0];k[as]&&D===Ra&&(J={transition:"none",...J});const ne=L[1];return[I,D,J,R??t,!O.current&&M===Wo&&e&&o?"NONE":D===Ra||D===Ia?ne===D:!0]}function nM(e){return e?.length<2}function h5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=a.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:c=!0,forceRender:f,children:d,motionName:p,leavedClassName:m,eventProps:h}=o,{motion:y}=a.useContext(q2),b=n(o,y),v=a.useRef(null);function $(){return fs(v.current)}const[x,E,C,w,R]=m5(b,i,$,o),P=x(),I=a.useRef(w);w&&(I.current=!0);const T=a.useMemo(()=>{const M={};return Object.defineProperties(M,{nativeElement:{enumerable:!0,get:$},inMotion:{enumerable:!0,get:()=>()=>x()!==Wo},enableMotion:{enumerable:!0,get:()=>()=>b}}),M},[]);a.useImperativeHandle(s,()=>T,[]);const L=a.useRef(0);R&&(L.current+=1);const z=a.useMemo(()=>{if(R==="NONE")return null;let M;const O={...h,visible:i};if(!d)M=null;else if(P===Wo)w?M=d({...O},v):!c&&I.current&&m?M=d({...O,className:m},v):f||!c&&!m?M=d({...O,style:{display:"none"}},v):M=null;else{let _;E===as?_="prepare":tM(E)?_="active":E===Ra&&(_="start");const F=SR(p,`${P}-${_}`);M=d({...O,className:U(SR(p,P),{[F]:F&&_,[p]:typeof p=="string"}),style:C},v)}return M},[L.current]);if(nM(d)&&JT(z)){const M=Fs(z);if(M!==v)return a.cloneElement(z,{ref:ur(M,v)})}return z});return r.displayName="CSSMotion",r}const Ar=h5(a5),h0="add",g0="keep",y0="remove",cb="removed";function g5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function b0(e=[]){return e.map(g5)}function y5(e=[],t=[]){let n=[],r=0;const o=t.length,s=b0(e),i=b0(t);s.forEach(d=>{let p=!1;for(let m=r;m<o;m+=1){const h=i[m];if(h.key===d.key){r<m&&(n=n.concat(i.slice(r,m).map(y=>({...y,status:h0}))),r=m),n.push({...h,status:g0}),r+=1,p=!0;break}}p||n.push({...d,status:y0})}),r<o&&(n=n.concat(i.slice(r).map(d=>({...d,status:h0}))));const c={};return n.forEach(({key:d})=>{c[d]=(c[d]||0)+1}),Object.keys(c).filter(d=>c[d]>1).forEach(d=>{n=n.filter(({key:p,status:m})=>p!==d||m!==y0),n.forEach(p=>{p.key===d&&(p.status=g0)})}),n}function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}const b5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function v5(e,t=Ar){class n extends a.Component{constructor(){super(...arguments);Ce(this,"state",{keyEntities:[]});Ce(this,"removeKey",s=>{this.setState(i=>({keyEntities:i.keyEntities.map(f=>f.key!==s?f:{...f,status:cb})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:f})=>f!==cb).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:i}){const c=b0(s);return{keyEntities:y5(i,c).filter(d=>{const p=i.find(({key:m})=>d.key===m);return!(p&&p.status===cb&&d.status===y0)})}}render(){const{keyEntities:s}=this.state,{component:i,children:c,onVisibleChanged:f,onAllRemoved:d,...p}=this.props,m=i||a.Fragment,h={};return b5.forEach(y=>{h[y]=p[y],delete p[y]}),delete p.keys,a.createElement(m,p,s.map(({status:y,...b},v)=>{const $=y===h0||y===g0;return a.createElement(t,v0({},h,{key:b.key,visible:$,eventProps:b,onVisibleChanged:x=>{f?.(x,{key:b.key}),x||this.removeKey(b.key)}}),nM(c)?x=>c({...x,index:v}):(x,E)=>c({...x,index:v},E))}))}}return Ce(n,"defaultProps",{component:"div"}),n}const rM=v5(),Un=e=>typeof e=="number"&&!Number.isNaN(e),us=e=>typeof e=="string",Rt=e=>e!==null&&typeof e=="object",Tt=e=>typeof e=="function",ub=e=>un(e)&&Tt(e.then),x5=e=>typeof e!="object"&&!Tt(e)||e===null,oM=e=>Rt(e)&&"propertyName"in e&&us(e.propertyName),x0=e=>un(e)?e===e.window:!1,sM=e=>un(e)?e instanceof Document||e.constructor.name==="HTMLDocument"||e.nodeType===window.Node.DOCUMENT_NODE:!1,C5=e=>un(e)?typeof HTMLElement<"u"&&e instanceof HTMLElement:!1,C0=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{t[r]._default?n[r]||(n[r]={}):n[r]=C0(n[r],t[r])}),n},SS=(e={},...t)=>t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(o=>{const s=e[o],i=r[o];if(s)if(Rt(i))n[o]=SS(s,n[o],i);else{const{_default:c}=s;c&&(n[o]=n[o]||{},n[o][c]=U(n[o][c],i))}else n[o]=U(n[o],i)}),n),{}),S5=(e,...t)=>a.useMemo(()=>SS.apply(void 0,[e].concat(t)),[e].concat(t)),iM=(...e)=>e.filter(t=>!!t).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),$5=(...e)=>a.useMemo(()=>iM.apply(void 0,e),[].concat(e)),ut=(e,t="root")=>a.useMemo(()=>e?{[t]:e}:void 0,[e,t]),Zi=(e,t)=>Tt(e)?e(t):e,qt=(e,t,n,r)=>{const o=e.map(f=>f?Zi(f,n):void 0),s=t.map(f=>f?Zi(f,n):void 0),i=S5.apply(void 0,[r].concat(jt(o))),c=$5.apply(void 0,jt(s));return a.useMemo(()=>r?[C0(i,r),C0(c,r)]:[i,c],[i,c,r])},aM=a.createContext(void 0),lM={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var w5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0,hourSelect:"Select an hour",minuteSelect:"Select a minute",secondSelect:"Select a second",millisecondSelect:"Select a millisecond",meridiemSelect:"Select a meridiem"},E5={...w5,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",hourSelect:"Select an hour",minuteSelect:"Select a minute",secondSelect:"Select a second",millisecondSelect:"Select a millisecond",meridiemSelect:"Select a meridiem",previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Last year",nextYear:"Next year",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},R5=E5;const cM={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$R={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...R5},timePickerLocale:{...cM}},Ro="${label} is not a valid ${type}",xo={locale:"en",Pagination:lM,DatePicker:$R,TimePicker:cM,Calendar:$R,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide",clear:"Clear"},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",selectRow:"Select row",selectedRow:"Row selected",selectionMenu:"Selection menu",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",expandAll:"Expand all rows",collapseAll:"Collapse all rows",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"},Splitter:{toggleStartPanel:"Toggle start panel",toggleEndPanel:"Toggle end panel"},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"},Carousel:{prevSlide:"Previous slide",nextSlide:"Next slide"},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:Ro,method:Ro,array:Ro,object:Ro,number:Ro,date:Ro,boolean:Ro,integer:Ro,float:Ro,regexp:Ro,email:Ro,url:Ro,hex:Ro},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"},Input:{otpCell:"Character ${index} of ${total}"}};let rm={...xo.Modal},om=[];const wR=()=>om.reduce((e,t)=>({...e,...t}),xo.Modal);function I5(e){if(e){const t={...e};return om.push(t),rm=wR(),()=>{om=om.filter(n=>n!==t),rm=wR()}}rm={...xo.Modal}}function uM(){return rm}const $S=a.createContext(void 0),br=(e,t)=>{const n=a.useContext($S),r=a.useMemo(()=>{const s=t||xo[e],i=n?.[e]??{};return{...Tt(s)?s():s,...i||{}}},[e,t,n]),o=a.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?xo.locale:s},[n]);return[r,o]},P5="internalMark",N5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;a.useEffect(()=>I5(t?.Modal),[t]);const o=a.useMemo(()=>({...t,exist:!0}),[t]);return a.createElement($S.Provider,{value:o},n)},dM=a.createContext(null);let T5=!1;function M5(e){return T5}const ER=[];function O5(e,t){const[n]=a.useState(()=>Zr()?document.createElement("div"):null),r=a.useRef(!1),o=a.useContext(dM),[s,i]=a.useState(ER),c=o||(r.current?void 0:p=>{i(m=>[p,...m])});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){n.parentElement?.removeChild(n),r.current=!1}return Qt(()=>(e?o?o(f):f():d(),d),[e]),Qt(()=>{s.length&&(s.forEach(p=>p()),i(ER))},[s]),[n,c]}function z5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const A5=`rc-util-locker-${Date.now()}`;let RR=0;function L5(e){const t=!!e,[n]=a.useState(()=>(RR+=1,`${A5}_${RR}`));Qt(()=>{if(t){const r=Dv(document.body).width,o=z5();Ka(`
|
|
169
|
+
html body {
|
|
170
|
+
overflow-y: hidden;
|
|
171
|
+
${o?`width: calc(100% - ${r}px);`:""}
|
|
172
|
+
}`,n)}else cd(n);return()=>{cd(n)}},[t,n])}let Ta=[];const D5=200;let fM=0;const pM=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-fM<D5)return;const n=Ta.length;for(let r=n-1;r>=0;r-=1)Ta[r].onEsc({top:r===n-1,event:e})}},mM=()=>{fM=Date.now()};function B5(){window.addEventListener("keydown",pM),window.addEventListener("compositionend",mM)}function _5(){Ta.length===0&&(window.removeEventListener("keydown",pM),window.removeEventListener("compositionend",mM))}function F5(e,t){const n=Xo(),r=Ct(t),o=()=>{Ta.find(i=>i.id===n)||Ta.push({id:n,onEsc:r})},s=()=>{Ta=Ta.filter(i=>i.id!==n)};a.useMemo(()=>{e?o():e||s()},[e]),a.useEffect(()=>{if(e)return o(),B5(),()=>{s(),_5()}},[e])}const IR=e=>e===!1?!1:!Zr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Dd=a.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:s,autoDestroy:i=!0,children:c,onEsc:f}=e,[d,p]=a.useState(n),m=d||n;a.useEffect(()=>{(i||n)&&p(n)},[n,i]);const[h,y]=a.useState(()=>IR(o));a.useEffect(()=>{const R=IR(o);y(()=>R??null)});const[b,v]=O5(m&&!h),$=h??b;L5(r&&n&&Zr()&&($===b||$===document.body)),F5(n,f);let x=null;c&&ri(c)&&t&&(x=Fs(c));const E=Yo(x,t);if(!m||!Zr()||h===void 0)return null;const C=$===!1||M5();let w=c;return t&&(w=a.cloneElement(c,{ref:E})),a.createElement(dM.Provider,{value:v},C?w:Qi.createPortal(w,$))});function k5(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:s,content:i,style:c}=r||{},{x:f=0,y:d=0}=o,p=a.useRef(null);if(!n||!n.points)return null;const m={position:"absolute"};if(n.autoArrow!==!1){const h=n.points[0],y=n.points[1],b=h[0],v=h[1],$=y[0],x=y[1];b===$||!["t","b"].includes(b)?m.top=d:b==="t"?m.top=0:m.bottom=0,v===x||!["l","r"].includes(v)?m.left=f:v==="l"?m.left=0:m.right=0}return a.createElement("div",{ref:p,className:U(`${t}-arrow`,s),style:{...m,...c}},i)}function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}function H5(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:s,mobile:i}=e;return o?a.createElement(Ar,S0({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:c})=>a.createElement("div",{style:{zIndex:r},className:U(`${t}-mask`,i&&`${t}-mobile-mask`,c)})):null}const j5=a.memo(({children:e})=>e,(e,t)=>t.cache);function hM(e,t,n,r,o,s,i,c){const f="auto",d=e?{}:{left:"-1000vw",top:"-1000vh",right:f,bottom:f};if(!e&&(t||!n)){const{points:p}=r,m=r.dynamicInset||r._experimental?.dynamicInset,h=m&&p[0][1]==="r",y=m&&p[0][0]==="b";h?(d.right=o,d.left=f):(d.left=i,d.right=f),y?(d.bottom=s,d.top=f):(d.top=c,d.bottom=f)}return d}function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$0.apply(this,arguments)}const gM=a.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:s,style:i,target:c,onVisibleChanged:f,open:d,keepDom:p,fresh:m,onClick:h,mask:y,arrow:b,arrowPos:v,align:$,motion:x,maskMotion:E,mobile:C,forceRender:w,getPopupContainer:R,autoDestroy:P,portal:I,children:T,zIndex:L,onMouseEnter:z,onMouseLeave:M,onPointerEnter:O,onPointerDownCapture:_,ready:F,offsetX:W,offsetY:q,offsetR:G,offsetB:j,onAlign:H,onPrepare:k,onResize:B,stretch:D,targetWidth:K,targetHeight:Q}=e,Z=typeof r=="function"?r():r,X=d||p,J=!!C,[ne,oe,ae]=a.useMemo(()=>C?[C.mask,C.maskMotion,C.motion]:[y,E,x],[C,y,E,x]),pe=R?.length>0,[fe,le]=a.useState(!R||!pe);Qt(()=>{!fe&&pe&&c&&le(!0)},[fe,pe,c]);const ie=Ct((ge,se)=>{B?.(ge,se),H()}),re=hM(J,F,d,$,G,j,W,q);if(!fe)return null;const de={};return D&&(D.includes("height")&&Q?de.height=Q:D.includes("minHeight")&&Q&&(de.minHeight=Q),D.includes("width")&&K?de.width=K:D.includes("minWidth")&&K&&(de.minWidth=K)),d||(de.pointerEvents="none"),a.createElement(I,{open:w||X,getContainer:R&&(()=>R(c)),autoDestroy:P,onEsc:n},a.createElement(H5,{prefixCls:s,open:d,zIndex:L,mask:ne,motion:oe,mobile:J}),a.createElement(bo,{onResize:ie,disabled:!d},ge=>a.createElement(Ar,$0({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${s}-hidden`},ae,{onAppearPrepare:k,onEnterPrepare:k,visible:d,onVisibleChanged:se=>{x?.onVisibleChanged?.(se),f(se)}}),({className:se,style:ce},xe)=>{const Ee=U(s,se,o,{[`${s}-mobile`]:J});return a.createElement("div",{ref:ur(ge,t,xe),className:Ee,style:{"--arrow-x":`${v.x||0}px`,"--arrow-y":`${v.y||0}px`,...re,...de,...ce,boxSizing:"border-box",zIndex:L,...i},onMouseEnter:z,onMouseLeave:M,onPointerEnter:O,onClick:h,onPointerDownCapture:_},b&&a.createElement(k5,{prefixCls:s,arrow:b,arrowPos:v,align:$}),a.createElement(j5,{cache:!d&&!m},Z))})),T)}),$m=a.createContext(null),yM=a.createContext(null);function PR(e){return e?Array.isArray(e)?e:[e]:[]}function W5(e,t,n){return a.useMemo(()=>{const r=PR(t??e),o=PR(n??e),s=new Set(r),i=new Set(o);return s.has("hover")&&!s.has("click")&&s.add("touch"),i.has("hover")&&!i.has("click")&&i.add("touch"),[s,i]},[e,t,n])}function V5(e=[],t=[],n){const r=(o,s)=>o[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function bM(e,t,n,r){const{points:o}=n,s=Object.keys(e);for(let i=0;i<s.length;i+=1){const c=s[i];if(V5(e[c]?.points,o,r))return`${t}-placement-${c}`}return""}function Bd(e){return e.ownerDocument.defaultView}function w0(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:s,overflow:i}=Bd(n).getComputedStyle(n);[o,s,i].some(c=>r.includes(c))&&t.push(n),n=n.parentElement}return t}function hd(e,t=1){return Number.isNaN(e)?t:e}function Nu(e){return hd(parseFloat(e),0)}function NR(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:o,overflowClipMargin:s,borderTopWidth:i,borderBottomWidth:c,borderLeftWidth:f,borderRightWidth:d}=Bd(r).getComputedStyle(r),p=r.getBoundingClientRect(),{offsetHeight:m,clientHeight:h,offsetWidth:y,clientWidth:b}=r,v=Nu(i),$=Nu(c),x=Nu(f),E=Nu(d),C=hd(Math.round(p.width/y*1e3)/1e3),w=hd(Math.round(p.height/m*1e3)/1e3),R=(y-b-x-E)*C,P=(m-h-v-$)*w,I=v*w,T=$*w,L=x*C,z=E*C;let M=0,O=0;if(o==="clip"){const G=Nu(s);M=G*C,O=G*w}const _=p.x+L-M,F=p.y+I-O,W=_+p.width+2*M-L-z-R,q=F+p.height+2*O-I-T-P;n.left=Math.max(n.left,_),n.top=Math.max(n.top,F),n.right=Math.min(n.right,W),n.bottom=Math.min(n.bottom,q)}),n}function TR(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function MR(e,t){const[n,r]=t||[];return[TR(e.width,n),TR(e.height,r)]}function OR(e=""){return[e[0],e[1]]}function Vl(e,t){const n=t[0],r=t[1];let o,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:s}}function Ii(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function zR(e){return e.join("")}function vM(e,t,n,r,o,s,i,c){const[f,d]=a.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),p=a.useRef(0),m=a.useMemo(()=>!t||c?[]:w0(t),[t]),h=a.useRef({});e||(()=>{h.current={}})();const b=Ct(()=>{if(t&&n&&e&&!c){let ot=function(Ye,Dt,en=se){const Pn=G.x+Ye,Wn=G.y+Dt,Vn=Pn+J,_r=Wn+X,Xr=Math.max(Pn,en.left),vs=Math.max(Wn,en.top),la=Math.min(Vn,en.right),pt=Math.min(_r,en.bottom);return Math.max(0,(la-Xr)*(pt-vs))},zt=function(){Re=G.y+Ke,Xe=Re+X,Ue=G.x+Ve,nt=Ue+J};var x=ot,E=zt;const C=t,w=C.ownerDocument,R=Bd(C),{position:P}=R.getComputedStyle(C),I=C.style.left,T=C.style.top,L=C.style.right,z=C.style.bottom,M=C.style.overflow,O=C.style.overflowX,_=C.style.overflowY,F={...o[r],...s},W=w.createElement("div");C.parentElement?.appendChild(W),W.style.left=`${C.offsetLeft}px`,W.style.top=`${C.offsetTop}px`,W.style.position=P,W.style.height=`${C.offsetHeight}px`,W.style.width=`${C.offsetWidth}px`,C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";let q;if(Array.isArray(n))q={x:n[0],y:n[1],width:0,height:0};else{const Ye=n.getBoundingClientRect();Ye.x=Ye.x??Ye.left,Ye.y=Ye.y??Ye.top,q={x:Ye.x,y:Ye.y,width:Ye.width,height:Ye.height}}const G=C.getBoundingClientRect(),{height:j,width:H}=R.getComputedStyle(C);G.x=G.x??G.left,G.y=G.y??G.top;const{clientWidth:k,clientHeight:B,scrollWidth:D,scrollHeight:K,scrollTop:Q,scrollLeft:Z}=w.documentElement,X=G.height,J=G.width,ne=q.height,oe=q.width,ae={left:0,top:0,right:k,bottom:B},pe={left:-Z,top:-Q,right:D-Z,bottom:K-Q};let{htmlRegion:fe}=F;const le="visible",ie="visibleFirst";fe!=="scroll"&&fe!==ie&&(fe=le);const re=fe===ie,de=NR(pe,m),ge=NR(ae,m),se=fe===le?ge:de,ce=re?ge:se;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";const xe=C.getBoundingClientRect();C.style.left=I,C.style.top=T,C.style.right=L,C.style.bottom=z,C.style.overflow=M,C.style.overflowX=O,C.style.overflowY=_,C.parentElement?.removeChild(W);const Ee=hd(Math.round(J/parseFloat(H)*1e3)/1e3),Se=hd(Math.round(X/parseFloat(j)*1e3)/1e3);if(Ee===0||Se===0||Ec(n)&&!Od(n))return;const{offset:Fe,targetOffset:qe}=F;let[Ne,_e]=MR(G,Fe);const[Ie,me]=MR(q,qe);q.x-=Ie,q.y-=me;const[Le,He]=F.points||[],Ae=OR(He),Oe=OR(Le),st=Vl(q,Ae),je=Vl(G,Oe),Je={...F};let ze=[Oe,Ae],Ve=st.x-je.x+Ne,Ke=st.y-je.y+_e;const Ge=ot(Ve,Ke),dt=ot(Ve,Ke,ge),xt=Vl(q,["t","l"]),St=Vl(G,["t","l"]),Lt=Vl(q,["b","r"]),gt=Vl(G,["b","r"]),mt=F.overflow||{},{adjustX:De,adjustY:Ze,shiftX:Be,shiftY:we}=mt,ke=Ye=>typeof Ye=="boolean"?Ye:Ye>=0;let Re,Xe,Ue,nt;zt();const ht=ke(Ze),Te=Oe[0]===Ae[0];if(ht&&Oe[0]==="t"&&(Xe>ce.bottom||h.current.bt)){let Ye=Ke;Te?Ye-=X-ne:Ye=xt.y-gt.y-_e;const Dt=ot(Ve,Ye),en=ot(Ve,Ye,ge);Dt>Ge||Dt===Ge&&(!re||en>=dt)?(h.current.bt=!0,Ke=Ye,_e=-_e,ze=[Ii(ze[0],0),Ii(ze[1],0)]):h.current.bt=!1}if(ht&&Oe[0]==="b"&&(Re<ce.top||h.current.tb)){let Ye=Ke;Te?Ye+=X-ne:Ye=Lt.y-St.y-_e;const Dt=ot(Ve,Ye),en=ot(Ve,Ye,ge);Dt>Ge||Dt===Ge&&(!re||en>=dt)?(h.current.tb=!0,Ke=Ye,_e=-_e,ze=[Ii(ze[0],0),Ii(ze[1],0)]):h.current.tb=!1}const lt=ke(De),at=Oe[1]===Ae[1];if(lt&&Oe[1]==="l"&&(nt>ce.right||h.current.rl)){let Ye=Ve;at?Ye-=J-oe:Ye=xt.x-gt.x-Ne;const Dt=ot(Ye,Ke),en=ot(Ye,Ke,ge);Dt>Ge||Dt===Ge&&(!re||en>=dt)?(h.current.rl=!0,Ve=Ye,Ne=-Ne,ze=[Ii(ze[0],1),Ii(ze[1],1)]):h.current.rl=!1}if(lt&&Oe[1]==="r"&&(Ue<ce.left||h.current.lr)){let Ye=Ve;at?Ye+=J-oe:Ye=Lt.x-St.x-Ne;const Dt=ot(Ye,Ke),en=ot(Ye,Ke,ge);Dt>Ge||Dt===Ge&&(!re||en>=dt)?(h.current.lr=!0,Ve=Ye,Ne=-Ne,ze=[Ii(ze[0],1),Ii(ze[1],1)]):h.current.lr=!1}Je.points=[zR(ze[0]),zR(ze[1])],zt();const Vt=Be===!0?0:Be;typeof Vt=="number"&&(Ue<ge.left&&(Ve-=Ue-ge.left-Ne,q.x+oe<ge.left+Vt&&(Ve+=q.x-ge.left+oe-Vt)),nt>ge.right&&(Ve-=nt-ge.right-Ne,q.x>ge.right-Vt&&(Ve+=q.x-ge.right+Vt)));const Kt=we===!0?0:we;typeof Kt=="number"&&(Re<ge.top&&(Ke-=Re-ge.top-_e,q.y+ne<ge.top+Kt&&(Ke+=q.y-ge.top+ne-Kt)),Xe>ge.bottom&&(Ke-=Xe-ge.bottom-_e,q.y>ge.bottom-Kt&&(Ke+=q.y-ge.bottom+Kt)));const yn=G.x+Ve,At=yn+J,Gt=G.y+Ke,Yt=Gt+X,ct=q.x,Nt=ct+oe,tn=q.y,hn=tn+ne,It=Math.max(yn,ct),nn=Math.min(At,Nt),Ln=(It+nn)/2-yn,An=Math.max(Gt,tn),oo=Math.min(Yt,hn),dr=(An+oo)/2-Gt;i?.(t,Je);let jn=xe.right-G.x-(Ve+G.width),Co=xe.bottom-G.y-(Ke+G.height);Ee===1&&(Ve=Math.floor(Ve),jn=Math.floor(jn)),Se===1&&(Ke=Math.floor(Ke),Co=Math.floor(Co));const We={ready:!0,offsetX:Ve/Ee,offsetY:Ke/Se,offsetR:jn/Ee,offsetB:Co/Se,arrowX:Ln/Ee,arrowY:dr/Se,scaleX:Ee,scaleY:Se,align:Je};d(We)}}),v=()=>{p.current+=1;const x=p.current;Promise.resolve().then(()=>{p.current===x&&b()})},$=()=>{d(x=>({...x,ready:!1}))};return Qt($,[r]),Qt(()=>{e||$()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,v]}function xM(){const e=a.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,o)=>{t(),o===0?r():e.current=setTimeout(()=>{r()},o*1e3)};return a.useEffect(()=>()=>{t()},[]),n}function K5(e,t,n,r,o){Qt(()=>{if(e&&t&&n){let h=function(){r(),o()};var s=h;const i=t,c=n,f=w0(i),d=w0(c),p=Bd(c),m=new Set([p,...f,...d]);return m.forEach(y=>{y.addEventListener("scroll",h,{passive:!0})}),p.addEventListener("resize",h,{passive:!0}),r(),()=>{m.forEach(y=>{y.removeEventListener("scroll",h),p.removeEventListener("resize",h)})}}},[e,t,n])}function U5(e,t,n,r,o,s,i,c){const f=a.useRef(e);f.current=e;const d=a.useRef(!1);a.useEffect(()=>{if(t&&r&&(!o||s)){const m=()=>{d.current=!1},h=v=>{f.current&&!i(v.composedPath?.()?.[0]||v.target)&&!d.current&&c(!1)},y=Bd(r);y.addEventListener("pointerdown",m,!0),y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0);const b=Lv(n);return b&&(b.addEventListener("mousedown",h,!0),b.addEventListener("contextmenu",h,!0)),()=>{y.removeEventListener("pointerdown",m,!0),y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0),b&&(b.removeEventListener("mousedown",h,!0),b.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,s]);function p(){d.current=!0}return p}function q5(){const[e,t]=ee.useState(null),[n,r]=ee.useState(!1),[o,s]=ee.useState(!1),i=ee.useRef(null),c=Ct(d=>{d===!1?(i.current=null,r(!1)):o&&n?i.current=d:(r(!0),t(d),i.current=null,n||s(!0))}),f=Ct(d=>{d?(s(!1),i.current&&(t(i.current),i.current=null)):(s(!1),i.current=null)});return[c,n,e,f]}function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}const G5=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:s,offsetR:i,offsetB:c,offsetX:f,offsetY:d,arrowPos:p,popupSize:m,motion:h,uniqueContainerClassName:y,uniqueContainerStyle:b}=e,v=`${t}-unique-container`,[$,x]=ee.useState(!1),E=hM(n,r,o,s,i,c,f,d),C=ee.useRef(E);r&&(C.current=E);const w={};return m&&(w.width=m.width,w.height=m.height),ee.createElement(Ar,E0({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${v}-hidden`},h,{visible:o,onVisibleChanged:R=>{x(R)}}),({className:R,style:P})=>{const I=U(v,R,y,{[`${v}-visible`]:$});return ee.createElement("div",{className:I,style:{"--arrow-x":`${p?.x||0}px`,"--arrow-y":`${p?.y||0}px`,...C.current,...w,...P,...b}})})},X5=({children:e,postTriggerProps:t})=>{const[n,r,o,s]=q5(),i=a.useMemo(()=>!o||!t?o:t(o),[o,t]),[c,f]=a.useState(null),[d,p]=a.useState(null),m=a.useRef(null),h=Ct(j=>{m.current=j,Ec(j)&&c!==j&&f(j)}),y=a.useRef(null),b=xM(),v=Ct((j,H)=>{y.current=H,b(()=>{n(j)},j.delay)}),$=j=>{b(()=>{y.current?.()||n(!1)},j)},x=Ct(j=>{s(j)}),[E,C,w,R,P,I,T,,,L,z]=vM(r,c,i?.target,i?.popupPlacement,i?.builtinPlacements||{},i?.popupAlign,void 0,!1),M=a.useMemo(()=>{if(!i)return"";const j=bM(i.builtinPlacements||{},i.prefixCls||"",L,!1);return U(j,i.getPopupClassNameFromAlign?.(L))},[L,i?.getPopupClassNameFromAlign,i?.builtinPlacements,i?.prefixCls]),O=a.useMemo(()=>({show:v,hide:$}),[]);a.useEffect(()=>{z()},[i?.target]);const _=Ct(()=>(z(),Promise.resolve())),F=a.useRef({}),W=a.useContext($m),q=a.useMemo(()=>({registerSubPopup:(j,H)=>{F.current[j]=H,W?.registerSubPopup(j,H)}}),[W]),G=i?.prefixCls;return a.createElement(yM.Provider,{value:O},e,i&&a.createElement($m.Provider,{value:q},a.createElement(gM,{ref:h,portal:Dd,onEsc:i.onEsc,prefixCls:G,popup:i.popup,className:U(i.popupClassName,M,`${G}-unique-controlled`),style:i.popupStyle,target:i.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:x,ready:E,offsetX:C,offsetY:w,offsetR:R,offsetB:P,onAlign:z,onPrepare:_,onResize:j=>p({width:j.offsetWidth,height:j.offsetHeight}),arrowPos:{x:I,y:T},align:L,zIndex:i.zIndex,mask:i.mask,arrow:i.arrow,motion:i.popupMotion,maskMotion:i.maskMotion,getPopupContainer:i.getPopupContainer},a.createElement(G5,{prefixCls:G,isMobile:!1,ready:E,open:r,align:L,offsetR:R,offsetB:P,offsetX:C,offsetY:w,arrowPos:{x:I,y:T},popupSize:d,motion:i.popupMotion,uniqueContainerClassName:U(i.uniqueContainerClassName,M),uniqueContainerStyle:i.uniqueContainerStyle}))))};function Y5(e=Dd){return a.forwardRef((n,r)=>{const{prefixCls:o="rc-trigger-popup",children:s,action:i="hover",showAction:c,hideAction:f,disabled:d=!1,popupVisible:p,defaultPopupVisible:m,onOpenChange:h,afterOpenChange:y,onPopupVisibleChange:b,afterPopupVisibleChange:v,mouseEnterDelay:$,mouseLeaveDelay:x=.1,focusDelay:E,blurDelay:C,mask:w,maskClosable:R=!0,getPopupContainer:P,forceRender:I,autoDestroy:T,popup:L,popupClassName:z,uniqueContainerClassName:M,uniqueContainerStyle:O,popupStyle:_,popupPlacement:F,builtinPlacements:W={},popupAlign:q,zIndex:G,stretch:j,getPopupClassNameFromAlign:H,fresh:k,unique:B,alignPoint:D,onPopupClick:K,onPopupAlign:Q,arrow:Z,popupMotion:X,maskMotion:J,mobile:ne,...oe}=n,ae=T||!1,pe=p===void 0,fe=!!ne,le=a.useRef({}),ie=a.useContext($m),re=a.useMemo(()=>({registerSubPopup:(pt,pn)=>{le.current[pt]=pn,ie?.registerSubPopup(pt,pn)}}),[ie]),de=a.useContext(yM),ge=Xo(),[se,ce]=a.useState(null),xe=a.useRef(null),Ee=Ct(pt=>{xe.current=pt,Ec(pt)&&se!==pt&&ce(pt),ie?.registerSubPopup(ge,pt)}),[Se,Fe]=a.useState(null),qe=a.useRef(null),Ne=Ct(pt=>{const pn=fs(pt);Ec(pn)&&Se!==pn&&(Fe(pn),qe.current=pn)}),_e={},Ie=Ct(pt=>{const pn=Se;return pn?.contains(pt)||Lv(pn)?.host===pt||pt===pn||se?.contains(pt)||Lv(se)?.host===pt||pt===se||Object.values(le.current).some(xs=>xs?.contains(pt)||pt===xs)}),me=Z?{...Z!==!0?Z:{}}:null,[Le,He]=Rn(m||!1,p),Ae=Le||!1,Oe=Ae&&!d,st=a.useMemo(()=>{const pt=typeof s=="function"?s({open:Oe}):s;return a.Children.only(pt)},[s,Oe]),je=st?.props||{},Je=Ct(()=>Oe),ze=Ct((pt=0)=>({popup:L,target:Se,delay:pt,prefixCls:o,popupClassName:z,uniqueContainerClassName:M,uniqueContainerStyle:O,popupStyle:_,popupPlacement:F,builtinPlacements:W,popupAlign:q,zIndex:G,mask:w,maskClosable:R,popupMotion:X,maskMotion:J,arrow:me,getPopupContainer:P,getPopupClassNameFromAlign:H,id:ge,onEsc:dt}));Qt(()=>{de&&B&&Se&&!pe&&!ie&&(Oe?de.show(ze($),Je):de.hide(x))},[Oe,Se]);const Ve=a.useRef(Oe);Ve.current=Oe;const Ke=Ct(pt=>{Qi.flushSync(()=>{Ae!==pt&&(He(pt),h?.(pt),b?.(pt))})}),ot=xM(),Ge=(pt,pn=0)=>{if(p!==void 0){ot(()=>{Ke(pt)},pn);return}if(de&&B&&pe&&!ie){pt?de.show(ze(pn),Je):de.hide(pn);return}ot(()=>{Ke(pt)},pn)};function dt({top:pt}){pt&&Ge(!1)}const[xt,St]=a.useState(!1);Qt(pt=>{(!pt||Oe)&&St(!0)},[Oe]);const[Lt,gt]=a.useState(null),[mt,De]=a.useState(null),Ze=pt=>{De([pt.clientX,pt.clientY])},[Be,we,ke,Re,Xe,Ue,nt,zt,ht,Te,lt]=vM(Oe,se,D&&mt!==null?mt:Se,F,W,q,Q,fe),[at,Vt]=W5(i,c,f),Kt=at.has("click"),yn=Vt.has("click")||Vt.has("contextMenu"),At=Ct(()=>{xt||lt()});K5(Oe,Se,se,At,()=>{Ve.current&&D&&yn&&Ge(!1)}),Qt(()=>{At()},[mt,F]),Qt(()=>{Oe&&!W?.[F]&&At()},[JSON.stringify(q)]);const Yt=a.useMemo(()=>{const pt=bM(W,o,Te,D);return U(pt,H?.(Te))},[Te,H,W,o,D]);a.useImperativeHandle(r,()=>({nativeElement:qe.current,popupElement:xe.current,forceAlign:At}));const[ct,Nt]=a.useState(0),[tn,hn]=a.useState(0),It=()=>{if(j&&Se){const pt=Se.getBoundingClientRect();Nt(pt.width),hn(pt.height)}},nn=()=>{It(),At()},In=pt=>{St(!1),lt(),y?.(pt),v?.(pt)},Ln=()=>new Promise(pt=>{It(),gt(()=>pt)});Qt(()=>{Lt&&(lt(),Lt(),gt(null))},[Lt]);function An(pt,pn,xs,ug,bl){_e[pt]=(bn,...pf)=>{(!bl||!bl())&&(ug?.(bn),Ge(pn,xs)),je[pt]?.(bn,...pf)}}const oo=at.has("touch"),Br=Vt.has("touch"),dr=a.useRef(!1);(oo||Br)&&(_e.onTouchStart=(...pt)=>{dr.current=!0,Ve.current&&Br?Ge(!1):!Ve.current&&oo&&Ge(!0),je.onTouchStart?.(...pt)}),(Kt||yn)&&(_e.onClick=(pt,...pn)=>{Ve.current&&yn?Ge(!1):!Ve.current&&Kt&&(Ze(pt),Ge(!0)),je.onClick?.(pt,...pn),dr.current=!1});const jn=U5(Oe,yn||Br,Se,se,w,R,Ie,Ge),Co=at.has("hover"),We=Vt.has("hover");let Ye,Dt;const en=()=>dr.current;if(Co){const pt=pn=>{Ze(pn)};An("onMouseEnter",!0,$,pt,en),An("onPointerEnter",!0,$,pt,en),Ye=pn=>{(Oe||xt)&&se?.contains(pn.target)&&Ge(!0,$)},D&&(_e.onMouseMove=pn=>{je.onMouseMove?.(pn)})}We&&(An("onMouseLeave",!1,x,void 0,en),An("onPointerLeave",!1,x,void 0,en),Dt=()=>{Ge(!1,x)}),at.has("focus")&&An("onFocus",!0,E),Vt.has("focus")&&An("onBlur",!1,C),at.has("contextMenu")&&(_e.onContextMenu=(pt,...pn)=>{Ve.current&&Vt.has("contextMenu")?Ge(!1):(Ze(pt),Ge(!0)),pt.preventDefault(),je.onContextMenu?.(pt,...pn)});const Pn=a.useRef(!1);Pn.current||(Pn.current=I||Oe||xt);const Wn={...je,..._e},Vn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(pt=>{oe[pt]&&(Vn[pt]=(...pn)=>{Wn[pt]?.(...pn),oe[pt](...pn)})});const Xr={x:Ue,y:nt};u2(Oe,Se,nn);const vs=Yo(Ne,Fs(st)),la=a.cloneElement(st,{...Wn,...Vn,ref:vs});return a.createElement(a.Fragment,null,la,Pn.current&&(!de||!B)&&a.createElement($m.Provider,{value:re},a.createElement(gM,{portal:e,ref:Ee,prefixCls:o,popup:L,className:U(z,!fe&&Yt),style:_,target:Se,onMouseEnter:Ye,onMouseLeave:Dt,onPointerEnter:Ye,zIndex:G,open:Oe,keepDom:xt,fresh:k,onClick:K,onPointerDownCapture:jn,mask:w,motion:X,maskMotion:J,onVisibleChanged:In,onPrepare:Ln,forceRender:I,autoDestroy:ae,getPopupContainer:P,onEsc:dt,align:Te,arrow:me,arrowPos:Xr,ready:Be,offsetX:we,offsetY:ke,offsetR:Re,offsetB:Xe,onAlign:At,stretch:j,targetWidth:ct/zt,targetHeight:tn/ht,mobile:ne})))})}const vh=Y5(Dd);function CM(e){return e&&ee.isValidElement(e)&&e.type===ee.Fragment}const SM=(e,t,n)=>ee.isValidElement(e)?ee.cloneElement(e,Tt(n)?n(e.props||{}):n):t;function hr(e,t){return SM(e,e,t)}const Q5=({children:e})=>{const{getPrefixCls:t}=ee.useContext(Ot),n=t();return ee.isValidElement(e)?ee.createElement(Ar,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:o})=>hr(e,s=>({className:U(s.className,o),style:{...s.style,...r}}))):e},$p=[null,null];function J5(e){if($p[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),$p[0]=e,$p[1]=t}return $p[1]}const $M=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:s}=n,i=Tt(s)?s():s,c=J5(o);return{...n,getPopupContainer:null,arrow:!1,popup:ee.createElement(Q5,{key:r},i),builtinPlacements:c}};return ee.createElement(X5,{postTriggerProps:t},e)},Er=a.createContext(!1),wS=({children:e,disabled:t})=>{const n=a.useContext(Er);return a.createElement(Er.Provider,{value:t??n},e)},Ya=a.createContext(void 0),Z5=({children:e,size:t})=>{const n=a.useContext(Ya);return a.createElement(Ya.Provider,{value:t||n},e)};function e_(){const e=a.useContext(Er),t=a.useContext(Ya);return{componentDisabled:e,componentSize:t}}function t_(e,t,n){ia();const r=e||{},o=r.inherit===!1||!t?{...md,hashed:t?.hashed??md.hashed,cssVar:t?.cssVar,zeroRuntime:t?.zeroRuntime}:t,s=a.useId();return ol(()=>{if(!e)return t;const i={...o.components};Object.keys(e.components||{}).forEach(d=>{i[d]={...i[d],...e.components[d]}});const c=`css-var-${s.replace(/:/g,"")}`,f={prefix:n?.prefixCls,...o.cssVar,...r.cssVar,key:r.cssVar?.key||c};return{...o,...r,token:{...o.token,...r.token},components:i,cssVar:f}},[r,o,n?.prefixCls,s],(i,c)=>i.some((f,d)=>{const p=c[d];return!ps(f,p,!0)}))}const AR=a.createContext(!0);function n_(e){const t=a.useContext(AR),{children:n}=e,[,r]=Dr(),{motion:o}=r,s=a.useRef(!1);return s.current||(s.current=t!==o),s.current?a.createElement(AR.Provider,{value:o},a.createElement(o5,{motion:o},n)):n}const r_=()=>null,o_=({iconPrefixCls:e,csp:t})=>(LB(e,t),null),s_=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let wm,wM,EM,RM;function db(){return wm||ud}function i_(){return wM||fh}const a_=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(wm=t),n!==void 0&&(wM=n),"holderRender"in e&&(RM=o),r&&(EM=r)},l_=()=>({getPrefixCls:(e,t)=>t||(e?`${db()}-${e}`:db()),getIconPrefixCls:i_,getRootPrefixCls:()=>wm||db(),getTheme:()=>EM,holderRender:RM}),c_=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:c,autoComplete:f,form:d,locale:p,componentSize:m,direction:h,space:y,splitter:b,virtual:v,dropdownMatchSelectWidth:$,popupMatchSelectWidth:x,popupOverflow:E,legacyLocale:C,parentContext:w,iconPrefixCls:R,theme:P,componentDisabled:I,segmented:T,statistic:L,spin:z,calendar:M,carousel:O,cascader:_,collapse:F,typography:W,checkbox:q,descriptions:G,divider:j,drawer:H,skeleton:k,steps:B,image:D,layout:K,list:Q,listy:Z,mentions:X,modal:J,progress:ne,result:oe,slider:ae,breadcrumb:pe,masonry:fe,menu:le,pagination:ie,input:re,inputPassword:de,inputSearch:ge,textArea:se,otp:ce,empty:xe,badge:Ee,borderBeam:Se,radio:Fe,rate:qe,ribbon:Ne,switch:_e,transfer:Ie,avatar:me,message:Le,tag:He,table:Ae,card:Oe,cardMeta:st,tabs:je,timeline:Je,timePicker:ze,upload:Ve,notification:Ke,tree:ot,colorPicker:Ge,datePicker:dt,rangePicker:xt,flex:St,wave:Lt,dropdown:gt,warning:mt,tour:De,tooltip:Ze,popover:Be,popconfirm:we,qrcode:ke,floatButton:Re,floatButtonGroup:Xe,variant:Ue,inputNumber:nt,treeSelect:zt,watermark:ht}=e,Te=a.useMemo(()=>Rt(p)&&Object.prototype.hasOwnProperty.call(p,"default")&&p.default?.locale?p.default:p,[p]),lt=a.useCallback((It,nn)=>{const{prefixCls:In}=e;if(nn)return nn;const Ln=In||w.getPrefixCls("");return It?`${Ln}-${It}`:Ln},[w.getPrefixCls,e.prefixCls]),at=R||w.iconPrefixCls||fh,Vt=n||w.csp,Kt=t_(P,w.theme,{prefixCls:lt("")}),yn={csp:Vt,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:c,autoComplete:f,locale:Te||C,direction:h,space:y,splitter:b,virtual:v,popupMatchSelectWidth:x??$,popupOverflow:E,getPrefixCls:lt,iconPrefixCls:at,theme:Kt,segmented:T,statistic:L,spin:z,calendar:M,carousel:O,cascader:_,collapse:F,typography:W,checkbox:q,descriptions:G,divider:j,drawer:H,skeleton:k,steps:B,image:D,input:re,inputPassword:de,inputSearch:ge,textArea:se,otp:ce,layout:K,list:Q,listy:Z,mentions:X,modal:J,progress:ne,result:oe,slider:ae,breadcrumb:pe,masonry:fe,menu:le,pagination:ie,empty:xe,badge:Ee,borderBeam:Se,radio:Fe,rate:qe,ribbon:Ne,switch:_e,transfer:Ie,avatar:me,message:Le,tag:He,table:Ae,card:Oe,cardMeta:st,tabs:je,timeline:Je,timePicker:ze,upload:Ve,notification:Ke,tree:ot,colorPicker:Ge,datePicker:dt,rangePicker:xt,flex:St,wave:Lt,dropdown:gt,warning:mt,tour:De,tooltip:Ze,popover:Be,popconfirm:we,qrcode:ke,floatButton:Re,floatButtonGroup:Xe,variant:Ue,inputNumber:nt,treeSelect:zt,watermark:ht},At={...w};Object.keys(yn).forEach(It=>{yn[It]!==void 0&&(At[It]=yn[It])}),s_.forEach(It=>{const nn=e[It];nn&&(At[It]=nn)}),typeof r<"u"&&(At.button={autoInsertSpace:r,...At.button});const Gt=ol(()=>At,At,(It,nn)=>{const In=Object.keys(It),Ln=Object.keys(nn);return In.length!==Ln.length||In.some(An=>It[An]!==nn[An])}),{layer:Yt}=a.useContext(zd),ct=a.useMemo(()=>({prefixCls:at,csp:Vt,layer:Yt?"antd":void 0,zeroRuntime:!!Yt||Kt?.zeroRuntime}),[at,Vt,Yt,Kt?.zeroRuntime]);let Nt=a.createElement(a.Fragment,null,a.createElement(o_,{iconPrefixCls:at,csp:Vt}),a.createElement(r_,{dropdownMatchSelectWidth:$}),t);const tn=a.useMemo(()=>nc(xo.Form?.defaultValidateMessages||{},Gt.locale?.Form?.defaultValidateMessages||{},Gt.form?.validateMessages||{},d?.validateMessages||{}),[Gt,d?.validateMessages]);Object.keys(tn).length>0&&(Nt=a.createElement(aM.Provider,{value:tn},Nt)),Te&&(Nt=a.createElement(N5,{locale:Te,_ANT_MARK__:P5},Nt)),Nt=a.createElement(bS.Provider,{value:ct},Nt),m&&(Nt=a.createElement(Z5,{size:m},Nt)),Nt=a.createElement(n_,null,Nt),Ze?.unique&&(Nt=a.createElement($M,null,Nt));const hn=a.useMemo(()=>{const{algorithm:It,token:nn,components:In,cssVar:Ln,...An}=Kt||{},oo=It&&(!Array.isArray(It)||It.length>0)?bm(It):hS,Br={};Object.entries(In||{}).forEach(([jn,Co])=>{const We={...Co};"algorithm"in We&&(We.algorithm===!0?We.theme=oo:(Array.isArray(We.algorithm)||Tt(We.algorithm))&&(We.theme=bm(We.algorithm)),delete We.algorithm),Br[jn]=We});const dr={...Nc,...nn};return{...An,theme:oo,token:dr,components:Br,override:{override:dr,...Br},cssVar:Ln}},[Kt]);return P&&(Nt=a.createElement(gS.Provider,{value:hn},Nt)),Gt.warning&&(Nt=a.createElement(YD.Provider,{value:Gt.warning},Nt)),I!==void 0&&(Nt=a.createElement(wS,{disabled:I},Nt)),a.createElement(Ot.Provider,{value:Gt},Nt)},ys=e=>{const t=a.useContext(Ot),n=a.useContext($S);return a.createElement(c_,{parentContext:t,legacyLocale:n,...e})};ys.ConfigContext=Ot;ys.SizeContext=Ya;ys.config=a_;ys.useConfig=e_;Object.defineProperty(ys,"SizeContext",{get:()=>Ya});const Ma="RC_FORM_INTERNAL_HOOKS",Mn=()=>{kn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Qa=a.createContext({getFieldValue:Mn,getFieldsValue:Mn,getFieldError:Mn,getFieldWarning:Mn,getFieldsError:Mn,isFieldsTouched:Mn,isFieldTouched:Mn,isFieldValidating:Mn,isFieldsValidating:Mn,resetFields:Mn,setFields:Mn,setFieldValue:Mn,setFieldsValue:Mn,validateFields:Mn,submit:Mn,getInternalHooks:()=>(Mn(),{dispatch:Mn,initEntityValue:Mn,registerField:Mn,useSubscribe:Mn,setInitialValues:Mn,destroyForm:Mn,setCallbacks:Mn,registerWatch:Mn,getFields:Mn,setValidateMessages:Mn,setPreserve:Mn,getInitialValue:Mn})}),gd=a.createContext(null);function R0(e){return e==null?[]:Array.isArray(e)?e:[e]}function u_(e){return e&&!!e._init}function I0(){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(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const fb=I0(),d_=/%[sdj%]/g;let f_=()=>{};function P0(e){if(!e||!e.length)return null;const t={};return e.forEach(n=>{const r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function To(e,...t){let n=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(d_,s=>{if(s==="%%")return"%";if(n>=r)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}}):e}function p_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function gr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||p_(t)&&typeof e=="string"&&!e)}function m_(e,t,n){const r=[];let o=0;const s=e.length;function i(c){r.push(...c||[]),o++,o===s&&n(r)}e.forEach(c=>{t(c,i)})}function LR(e,t,n){let r=0;const o=e.length;function s(i){if(i&&i.length){n(i);return}const c=r;r=r+1,c<o?t(e[c],s):n([])}s([])}function h_(e){const t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}class DR extends Error{constructor(n,r){super("Async Validation Error");Ce(this,"errors");Ce(this,"fields");this.errors=n,this.fields=r}}function g_(e,t,n,r,o){if(t.first){const m=new Promise((h,y)=>{const b=$=>(r($),$.length?y(new DR($,P0($))):h(o)),v=h_(e);LR(v,n,b)});return m.catch(h=>h),m}const s=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),c=i.length;let f=0;const d=[],p=new Promise((m,h)=>{const y=b=>{if(d.push.apply(d,b),f++,f===c)return r(d),d.length?h(new DR(d,P0(d))):m(o)};i.length||(r(d),m(o)),i.forEach(b=>{const v=e[b];s.indexOf(b)!==-1?LR(v,n,y):m_(v,n,y)})});return p.catch(m=>m),p}function y_(e){return!!(e&&e.message!==void 0)}function b_(e,t){let n=e;for(let r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function BR(e,t){return n=>{let r;return e.fullFields?r=b_(t,e.fullFields):r=t[n.field||e.fullField],y_(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 _R(e,t){if(t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]={...e[n],...r}:e[n]=r}}return e}const Kl="enum",v_=(e,t,n,r,o)=>{e[Kl]=Array.isArray(e[Kl])?e[Kl]:[],e[Kl].indexOf(t)===-1&&r.push(To(o.messages[Kl],e.fullField,e[Kl].join(", ")))},x_=(e,t,n,r,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(To(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(To(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},C_=(e,t,n,r,o)=>{const s=typeof e.len=="number",i=typeof e.min=="number",c=typeof e.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let d=t,p=null;const m=typeof t=="number",h=typeof t=="string",y=Array.isArray(t);if(m?p="number":h?p="string":y&&(p="array"),!p)return!1;y&&(d=t.length),h&&(d=t.replace(f,"_").length),s?d!==e.len&&r.push(To(o.messages[p].len,e.fullField,e.len)):i&&!c&&d<e.min?r.push(To(o.messages[p].min,e.fullField,e.min)):c&&!i&&d>e.max?r.push(To(o.messages[p].max,e.fullField,e.max)):i&&c&&(d<e.min||d>e.max)&&r.push(To(o.messages[p].range,e.fullField,e.min,e.max))},IM=(e,t,n,r,o,s)=>{e.required&&(!n.hasOwnProperty(e.field)||gr(t,s||e.type))&&r.push(To(o.messages.required,e.fullField))};let wp;const S_=(()=>{if(wp)return wp;const e="[a-fA-F\\d:]",t=R=>R&&R.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,c=new RegExp(`(?:^${n}$)|(?:^${i}$)`),f=new RegExp(`^${n}$`),d=new RegExp(`^${i}$`),p=R=>R&&R.exact?c:new RegExp(`(?:${t(R)}${n}${t(R)})|(?:${t(R)}${i}${t(R)})`,"g");p.v4=R=>R&&R.exact?f:new RegExp(`${t(R)}${n}${t(R)}`,"g"),p.v6=R=>R&&R.exact?d:new RegExp(`${t(R)}${i}${t(R)}`,"g");const m="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",y=p.v4().source,b=p.v6().source,w=`(?:${m}|www\\.)${h}(?:localhost|${y}|${b}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return wp=new RegExp(`(?:^${w}$)`,"i"),wp}),pb={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},ku={integer(e){return ku.number(e)&&parseInt(e,10)===e},float(e){return ku.number(e)&&!ku.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!ku.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(pb.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(pb.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(S_())},hex(e){return typeof e=="string"&&!!e.match(pb.hex)}},$_=(e,t,n,r,o)=>{if(e.required&&t===void 0){IM(e,t,n,r,o);return}const s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],i=e.type;s.indexOf(i)>-1?ku[i](t)||r.push(To(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(To(o.messages.types[i],e.fullField,e.type))},w_=(e,t,n,r,o)=>{(/^\s+$/.test(t)||t==="")&&r.push(To(o.messages.whitespace,e.fullField))},cn={required:IM,whitespace:w_,type:$_,range:C_,enum:v_,pattern:x_},E_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o)}n(s)},R_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();cn.required(e,t,r,s,o,"array"),t!=null&&(cn.type(e,t,r,s,o),cn.range(e,t,r,s,o))}n(s)},I_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&cn.type(e,t,r,s,o)}n(s)},P_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t,"date")&&!e.required)return n();if(cn.required(e,t,r,s,o),!gr(t,"date")){let c;t instanceof Date?c=t:c=new Date(t),cn.type(e,c,r,s,o),c&&cn.range(e,c.getTime(),r,s,o)}}n(s)},N_="enum",T_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&cn[N_](e,t,r,s,o)}n(s)},M_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&(cn.type(e,t,r,s,o),cn.range(e,t,r,s,o))}n(s)},O_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&(cn.type(e,t,r,s,o),cn.range(e,t,r,s,o))}n(s)},z_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&cn.type(e,t,r,s,o)}n(s)},A_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&(cn.type(e,t,r,s,o),cn.range(e,t,r,s,o))}n(s)},L_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),t!==void 0&&cn.type(e,t,r,s,o)}n(s)},D_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t,"string")&&!e.required)return n();cn.required(e,t,r,s,o),gr(t,"string")||cn.pattern(e,t,r,s,o)}n(s)},B_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t)&&!e.required)return n();cn.required(e,t,r,s,o),gr(t)||cn.type(e,t,r,s,o)}n(s)},__=(e,t,n,r,o)=>{const s=[],i=Array.isArray(t)?"array":typeof t;cn.required(e,t,r,s,o,i),n(s)},F_=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t,"string")&&!e.required)return n();cn.required(e,t,r,s,o,"string"),gr(t,"string")||(cn.type(e,t,r,s,o),cn.range(e,t,r,s,o),cn.pattern(e,t,r,s,o),e.whitespace===!0&&cn.whitespace(e,t,r,s,o))}n(s)},Ep=(e,t,n,r,o)=>{const s=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gr(t,s)&&!e.required)return n();cn.required(e,t,r,i,o,s),gr(t,s)||cn.type(e,t,r,i,o)}n(i)},Tu={string:F_,method:z_,number:A_,boolean:I_,regexp:B_,integer:O_,float:M_,array:R_,object:L_,enum:T_,pattern:D_,date:P_,url:Ep,hex:Ep,email:Ep,tel:Ep,required:__,any:E_},Bi=class Bi{constructor(t){Ce(this,"rules",null);Ce(this,"_messages",fb);this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(n=>{const r=t[n];this.rules[n]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=_R(I0(),t)),this._messages}validate(t,n={},r=()=>{}){let o=t,s=n,i=r;if(typeof s=="function"&&(i=s,s={}),!this.rules||Object.keys(this.rules).length===0)return i&&i(null,o),Promise.resolve(o);function c(m){let h=[],y={};function b(v){Array.isArray(v)?h=h.concat(...v):h.push(v)}for(let v=0;v<m.length;v++)b(m[v]);h.length?(y=P0(h),i(h,y)):i(null,o)}if(s.messages){let m=this.messages();m===fb&&(m=I0()),_R(m,s.messages),s.messages=m}else s.messages=this.messages();const f={};(s.keys||Object.keys(this.rules)).forEach(m=>{const h=this.rules[m];let y=o[m];h.forEach(b=>{let v=b;typeof v.transform=="function"&&(o===t&&(o={...o}),y=o[m]=v.transform(y),y!=null&&(v.type=v.type||(Array.isArray(y)?"array":typeof y))),typeof v=="function"?v={validator:v}:v={...v},v.validator=this.getValidationMethod(v),v.validator&&(v.field=m,v.fullField=v.fullField||m,v.type=this.getType(v),f[m]=f[m]||[],f[m].push({rule:v,value:y,source:o,field:m}))})});const p={};return g_(f,s,(m,h)=>{const y=m.rule;let b=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");b=b&&(y.required||!y.required&&m.value),y.field=m.field;function v(E,C){return{...C,fullField:`${y.fullField}.${E}`,fullFields:y.fullFields?[...y.fullFields,E]:[E]}}function $(E=[]){let C=Array.isArray(E)?E:[E];!s.suppressWarning&&C.length&&Bi.warning("async-validator:",C),C.length&&y.message!==void 0&&y.message!==null&&(C=[].concat(y.message));let w=C.map(BR(y,o));if(s.first&&w.length)return p[y.field]=1,h(w);if(!b)h(w);else{if(y.required&&!m.value)return y.message!==void 0?w=[].concat(y.message).map(BR(y,o)):s.error&&(w=[s.error(y,To(s.messages.required,y.field))]),h(w);let R={};y.defaultField&&Object.keys(m.value).map(T=>{R[T]=y.defaultField}),R={...R,...m.rule.fields};const P={};Object.keys(R).forEach(T=>{const L=R[T],z=Array.isArray(L)?L:[L];P[T]=z.map(v.bind(null,T))});const I=new Bi(P);I.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),I.validate(m.value,m.rule.options||s,T=>{const L=[];w&&w.length&&L.push(...w),T&&T.length&&L.push(...T),h(L.length?L:null)})}}let x;if(y.asyncValidator)x=y.asyncValidator(y,m.value,$,m.source,s);else if(y.validator){try{x=y.validator(y,m.value,$,m.source,s)}catch(E){console.error?.(E),s.suppressValidatorError||setTimeout(()=>{throw E},0),$(E.message)}x===!0?$():x===!1?$(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||`${y.fullField||y.field} fails`):x instanceof Array?$(x):x instanceof Error&&$(x.message)}x&&x.then&&x.then(()=>$(),E=>$(E))},m=>{c(m)},o)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Tu.hasOwnProperty(t.type))throw new Error(To("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Tu.required:Tu[this.getType(t)]||void 0}};Ce(Bi,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Tu[n]=r}),Ce(Bi,"warning",f_),Ce(Bi,"messages",fb),Ce(Bi,"validators",Tu);let N0=Bi;const fo="'${name}' is not a valid ${type}",PM={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:fo,method:fo,array:fo,object:fo,number:fo,date:fo,boolean:fo,integer:fo,float:fo,regexp:fo,email:fo,tel:fo,url:fo,hex:fo},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}"}},FR=N0;function k_(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const kR="CODE_LOGIC_ERROR";async function T0(e,t,n,r,o){const s={...n};if(delete s.ruleIndex,FR.warning=()=>{},s.validator){const h=s.validator;s.validator=(...y)=>{try{return h(...y)}catch(b){return console.error(b),Promise.reject(kR)}}}let i=null;s&&s.type==="array"&&s.defaultField&&(i=s.defaultField,delete s.defaultField);const c=new FR({[e]:[s]}),f=nc(PM,r.validateMessages);c.messages(f);let d=[];try{await Promise.resolve(c.validate({[e]:t},{...r}))}catch(h){h.errors&&(d=h.errors.map(({message:y},b)=>{const v=y===kR?f.default:y;return a.isValidElement(v)?a.cloneElement(v,{key:`error_${b}`}):v}))}if(!d.length&&i&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((y,b)=>T0(`${e}.${b}`,y,i,r,o)))).reduce((y,b)=>[...y,...b],[]);const p={...n,name:e,enum:(n.enum||[]).join(", "),...o};return d.map(h=>typeof h=="string"?k_(h,p):h)}function H_(e,t,n,r,o,s){const i=e.join("."),c=n.map((d,p)=>{const m=d.validator,h={...d,ruleIndex:p};return m&&(h.validator=(y,b,v)=>{let $=!1;const E=m(y,b,(...C)=>{Promise.resolve().then(()=>{kn(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||v(...C)})});$=E&&typeof E.then=="function"&&typeof E.catch=="function",kn($,"`callback` is deprecated. Please return a promise instead."),$&&E.then(()=>{v()}).catch(C=>{v(C||" ")})}),h}).sort(({warningOnly:d,ruleIndex:p},{warningOnly:m,ruleIndex:h})=>!!d==!!m?p-h:d?1:-1);let f;if(o===!0)f=new Promise(async(d,p)=>{for(let m=0;m<c.length;m+=1){const h=c[m],y=await T0(i,t,h,r,s);if(y.length){p([{errors:y,rule:h}]);return}}d([])});else{const d=c.map(p=>T0(i,t,p,r,s).then(m=>({errors:m,rule:p})));f=(o?W_(d):j_(d)).then(p=>Promise.reject(p))}return f.catch(d=>d),f}async function j_(e){return Promise.all(e).then(t=>[].concat(...t))}async function W_(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})}function Jn(e){return R0(e)}function HR(e,t){let n={};return t.forEach(r=>{const o=Mr(e,r);n=mo(n,r,o)}),n}function lc(e,t,n=!1){return e&&e.some(r=>Em(t,r,n))}function Em(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,o)=>e[o]===r)}function V_(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(s=>{const i=e[s],c=t[s];return typeof i=="function"&&typeof c=="function"?!0:i===c})}function K_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function jR(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],s=t-n;return s>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}const NM=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class U_{constructor(t){Ce(this,"namePathList",[]);Ce(this,"taskId",0);Ce(this,"watcherList",new Set);Ce(this,"form");this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!Em(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;NM(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),o=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,o,this.namePathList)}),this.namePathList=[]}})}}async function q_(){return new Promise(e=>{NM(()=>{Wt(()=>{e()})})})}function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M0.apply(this,arguments)}const Ca=[],Mu=[];function mb(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}class TM extends a.PureComponent{constructor(n){super(n);Ce(this,"state",{resetCount:0});Ce(this,"cancelRegisterFunc",null);Ce(this,"mounted",!1);Ce(this,"touched",!1);Ce(this,"dirty",!1);Ce(this,"validatePromise");Ce(this,"prevValidating");Ce(this,"errors",Ca);Ce(this,"warnings",Mu);Ce(this,"cancelRegister",()=>{const{preserve:n,isListField:r,name:o}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,n,Jn(o)),this.cancelRegisterFunc=null});Ce(this,"getNamePath",()=>{const{name:n,fieldContext:r}=this.props,{prefixName:o=[]}=r;return n!==void 0?[...o,...n]:[]});Ce(this,"getRules",()=>{const{rules:n=[],fieldContext:r}=this.props;return n.map(o=>typeof o=="function"?o(r):o)});Ce(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:n})=>({resetCount:n+1}))});Ce(this,"metaCache",null);Ce(this,"triggerMetaEvent",n=>{const{onMetaChange:r}=this.props;if(r){const o={...this.getMeta(),destroy:n};ps(this.metaCache,o)||r(o),this.metaCache=o}else this.metaCache=null});Ce(this,"onStoreChange",(n,r,o)=>{const{shouldUpdate:s,dependencies:i=[],onReset:c}=this.props,{store:f}=o,d=this.getNamePath(),p=this.getValue(n),m=this.getValue(f),h=r&&lc(r,d);switch(o.type==="valueUpdate"&&o.source==="external"&&!ps(p,m)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ca,this.warnings=Mu,this.triggerMetaEvent()),o.type){case"reset":if(!r||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ca,this.warnings=Mu,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(s&&mb(s,n,f,p,m,o)){this.reRender();return}break}case"setField":{const{data:y}=o;if(h){"touched"in y&&(this.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(this.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(this.errors=y.errors||Ca),"warnings"in y&&(this.warnings=y.warnings||Mu),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&lc(r,d,!0)){this.reRender();return}if(s&&!d.length&&mb(s,n,f,p,m,o)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(Jn).some(b=>lc(o.relatedFields,b))){this.reRender();return}break}default:if(h||(!i.length||d.length||s)&&mb(s,n,f,p,m,o)){this.reRender();return}break}s===!0&&this.reRender()});Ce(this,"validateRules",n=>{const r=this.getNamePath(),o=this.getValue(),{triggerName:s,validateOnly:i=!1,delayFrame:c}=n||{},f=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:d=!1,messageVariables:p,validateDebounce:m}=this.props;c&&await q_();let h=this.getRules();if(s&&(h=h.filter(b=>b).filter(b=>{const{validateTrigger:v}=b;return v?R0(v).includes(s):!0})),m&&s&&(await new Promise(b=>{setTimeout(b,m)}),this.validatePromise!==f))return[];const y=H_(r,o,h,n,d,p);return y.catch(b=>b).then((b=Ca)=>{if(this.validatePromise===f){this.validatePromise=null;const v=[],$=[];b.forEach?.(({rule:{warningOnly:x},errors:E=Ca})=>{x?$.push(...E):v.push(...E)}),this.errors=v,this.warnings=$,this.triggerMetaEvent(),this.reRender()}}),y});return i||(this.validatePromise=f,this.dirty=!0,this.errors=Ca,this.warnings=Mu,this.triggerMetaEvent(),this.reRender()),f});Ce(this,"isFieldValidating",()=>!!this.validatePromise);Ce(this,"isFieldTouched",()=>this.touched);Ce(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:n}=this.props,{getInitialValue:r}=n.getInternalHooks(Ma);return r(this.getNamePath())!==void 0});Ce(this,"getErrors",()=>this.errors);Ce(this,"getWarnings",()=>this.warnings);Ce(this,"isListField",()=>this.props.isListField);Ce(this,"isList",()=>this.props.isList);Ce(this,"isPreserve",()=>this.props.preserve);Ce(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));Ce(this,"getOnlyChild",n=>{if(typeof n=="function"){const o=this.getMeta();return{...this.getOnlyChild(n(this.getControlled(),o,this.props.fieldContext)),isFunction:!0}}const r=cr(n);return r.length!==1||!a.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}});Ce(this,"getValue",n=>{const{getFieldsValue:r}=this.props.fieldContext,o=this.getNamePath();return Mr(n||r(!0),o)});Ce(this,"getControlled",(n={})=>{const{name:r,trigger:o="onChange",validateTrigger:s,getValueFromEvent:i,normalize:c,valuePropName:f="value",getValueProps:d,fieldContext:p}=this.props,m=s!==void 0?s:p.validateTrigger,h=this.getNamePath(),{getInternalHooks:y,getFieldsValue:b}=p,{dispatch:v}=y(Ma),$=this.getValue(),x=d||(P=>({[f]:P})),E=n[o],C=r!==void 0?x($):{},w={...n,...C};return w[o]=(...P)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();const I=this.getValue();let T;i?T=i(...P):T=K_(f,...P),c&&(T=c(T,I,b(!0))),T!==I&&v({type:"updateValue",namePath:h,value:T}),E&&E(...P)},R0(m||[]).forEach(P=>{const I=w[P];w[P]=(...T)=>{I&&I(...T);const{rules:L}=this.props;L&&L.length&&v({type:"validateField",namePath:h,triggerName:P})}}),w});if(n.fieldContext){const{getInternalHooks:r}=n.fieldContext,{initEntityValue:o}=r(Ma);o(this)}}componentDidMount(){const{shouldUpdate:n,fieldContext:r}=this.props;if(this.mounted=!0,r){const{getInternalHooks:o}=r,{registerField:s}=o(Ma);this.cancelRegisterFunc=s(this)}n===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:n}=this.state,{children:r}=this.props,{child:o,isFunction:s}=this.getOnlyChild(r);let i;return s?i=o:a.isValidElement(o)?i=a.cloneElement(o,this.getControlled(o.props)):(kn(!o,"`children` of Field is not validate ReactElement."),i=o),a.createElement(a.Fragment,{key:n},i)}}Ce(TM,"contextType",Qa);function ES({name:e,...t}){const n=a.useContext(Qa),r=a.useContext(gd),o=e!==void 0?Jn(e):void 0,s=t.isListField??!!r;let i="keep";return s||(i=`_${(o||[]).join("_")}`),a.createElement(TM,M0({key:i,name:o,isListField:s},t,{fieldContext:n}))}function MM({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:s}){const i=a.useContext(Qa),c=a.useContext(gd),d=a.useRef({keys:[],id:0}).current,p=a.useMemo(()=>[...Jn(i.prefixName)||[],...Jn(e)],[i.prefixName,e]),m=a.useMemo(()=>({...i,prefixName:p}),[i,p]),h=a.useMemo(()=>({getKey:b=>{const v=p.length,$=b[v];return[d.keys[$],b.slice(v+1)]}}),[d,p]);if(typeof n!="function")return kn(!1,"Form.List only accepts function as children."),null;const y=(b,v,{source:$})=>$==="internal"?!1:b!==v;return a.createElement(gd.Provider,{value:h},a.createElement(Qa.Provider,{value:m},a.createElement(ES,{name:[],shouldUpdate:y,rules:r,validateTrigger:o,initialValue:t,isList:!0,isListField:s??!!c},({value:b=[],onChange:v},$)=>{const{getFieldValue:x}=i,E=()=>x(p||[])||[],C={add:(R,P)=>{const I=E();P>=0&&P<=I.length?(d.keys=[...d.keys.slice(0,P),d.id,...d.keys.slice(P)],v([...I.slice(0,P),R,...I.slice(P)])):(d.keys=[...d.keys,d.id],v([...I,R])),d.id+=1},remove:R=>{const P=E(),I=new Set(Array.isArray(R)?R:[R]);I.size<=0||(d.keys=d.keys.filter((T,L)=>!I.has(L)),v(P.filter((T,L)=>!I.has(L))))},move(R,P){if(R===P)return;const I=E();R<0||R>=I.length||P<0||P>=I.length||(d.keys=jR(d.keys,R,P),v(jR(I,R,P)))}};let w=b||[];return Array.isArray(w)||(w=[]),n(w.map((R,P)=>{let I=d.keys[P];return I===void 0&&(d.keys[P]=d.id,I=d.keys[P],d.id+=1),{name:P,key:I,isListField:!0}}),C,$)})))}function G_(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,s)=>{e.forEach((i,c)=>{i.catch(f=>(t=!0,f)).then(f=>{n-=1,r[c]=f,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}const O0="__@field_split__";function Rp(e){return e.map(t=>`${typeof t}:${t}`).join(O0)}class Ul{constructor(){Ce(this,"kvs",new Map)}set(t,n){this.kvs.set(Rp(t),n)}get(t){return this.kvs.get(Rp(t))}getAsPrefix(t){const n=Rp(t),r=n+O0,o=[],s=this.kvs.get(n);return s!==void 0&&o.push(s),this.kvs.forEach((i,c)=>{c.startsWith(r)&&o.push(i)}),o}update(t,n){const r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}delete(t){this.kvs.delete(Rp(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const o=n.split(O0);return t({key:o.map(s=>{const[,i,c]=s.match(/^([^:]*):(.*)$/);return i==="number"?Number(c):c}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}class X_{constructor(t){Ce(this,"formHooked",!1);Ce(this,"forceRootUpdate");Ce(this,"subscribable",!0);Ce(this,"store",{});Ce(this,"fieldEntities",[]);Ce(this,"initialValues",{});Ce(this,"callbacks",{});Ce(this,"validateMessages",null);Ce(this,"preserve",null);Ce(this,"lastValidatePromise",null);Ce(this,"watcherCenter",new U_(this));Ce(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));Ce(this,"getInternalHooks",t=>t===Ma?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(kn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));Ce(this,"useSubscribe",t=>{this.subscribable=t});Ce(this,"prevWithoutPreserves",null);Ce(this,"setInitialValues",(t,n)=>{if(this.initialValues=t||{},n){let r=nc(t,this.store);this.prevWithoutPreserves?.map(({key:o})=>{r=mo(r,o,Mr(t,o))}),this.prevWithoutPreserves=null,this.updateStore(r)}});Ce(this,"destroyForm",t=>{if(t)this.updateStore({});else{const n=new Ul;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}});Ce(this,"getInitialValue",t=>{const n=Mr(this.initialValues,t);return t.length?nc(n):n});Ce(this,"setCallbacks",t=>{this.callbacks=t});Ce(this,"setValidateMessages",t=>{this.validateMessages=t});Ce(this,"setPreserve",t=>{this.preserve=t});Ce(this,"registerWatch",t=>this.watcherCenter.register(t));Ce(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});Ce(this,"timeoutId",null);Ce(this,"warningUnhooked",()=>{});Ce(this,"updateStore",t=>{this.store=t});Ce(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities);Ce(this,"getFieldsMap",(t=!1)=>{const n=new Ul;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r)}),n});Ce(this,"getFieldEntitiesForNamePathList",(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(o=>{const s=Jn(o),i=r.getAsPrefix(s);return i.length?i:[{INVALIDATE_NAME_PATH:s}]}):t.map(o=>{const s=Jn(o);return r.get(s)||{INVALIDATE_NAME_PATH:Jn(o)}})});Ce(this,"getFieldsValue",(t,n)=>{this.warningUnhooked();let r,o;if(t===!0||Array.isArray(t)?(r=t,o=n):t&&typeof t=="object"&&(o=t.filter),r===!0&&!o)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),i=[],c=[];s.forEach(d=>{const p=d.INVALIDATE_NAME_PATH||d.getNamePath();if(d.isList?.()){c.push(p);return}if(!o)i.push(p);else{const m="getMeta"in d?d.getMeta():null;o(m)&&i.push(p)}});let f=HR(this.store,i.map(Jn));return c.forEach(d=>{Mr(f,d)||(f=mo(f,d,[]))}),f});Ce(this,"getFieldValue",t=>{this.warningUnhooked();const n=Jn(t);return Mr(this.store,n)});Ce(this,"getFieldsError",t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,o)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:Jn(t[o]),errors:[],warnings:[]})));Ce(this,"getFieldError",t=>{this.warningUnhooked();const n=Jn(t);return this.getFieldsError([n])[0].errors});Ce(this,"getFieldWarning",t=>{this.warningUnhooked();const n=Jn(t);return this.getFieldsError([n])[0].warnings});Ce(this,"isFieldsTouched",(...t)=>{this.warningUnhooked();const[n,r]=t;let o,s=!1;t.length===0?o=null:t.length===1?Array.isArray(n)?(o=n.map(Jn),s=!1):(o=null,s=n):(o=n.map(Jn),s=r);const i=this.getFieldEntities(!0),c=m=>m.isFieldTouched();if(!o)return s?i.every(m=>c(m)||m.isList()):i.some(c);const f=new Ul;o.forEach(m=>{f.set(m,[])}),i.forEach(m=>{const h=m.getNamePath();o.forEach(y=>{y.every((b,v)=>h[v]===b)&&f.update(y,b=>[...b,m])})});const d=m=>m.some(c),p=f.map(({value:m})=>m);return s?p.every(d):p.some(d)});Ce(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));Ce(this,"isFieldsValidating",t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(Jn);return n.some(o=>{const s=o.getNamePath();return lc(r,s)&&o.isFieldValidating()})});Ce(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));Ce(this,"resetWithFieldInitialValue",(t={})=>{const n=new Ul,r=this.getFieldEntities(!0);r.forEach(i=>{const{initialValue:c}=i.props,f=i.getNamePath();if(c!==void 0){const d=n.get(f)||new Set;d.add({entity:i,value:c}),n.set(f,d)}});const o=i=>{i.forEach(c=>{const{initialValue:f}=c.props;if(f!==void 0){const d=c.getNamePath();if(this.getInitialValue(d)!==void 0)kn(!1,`Form already set 'initialValues' with path '${d.join(".")}'. Field can not overwrite it.`);else{const m=n.get(d);if(m&&m.size>1)kn(!1,`Multiple Field with path '${d.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(m){const h=this.getFieldValue(d);!c.isListField()&&(!t.skipExist||h===void 0)&&this.updateStore(mo(this.store,d,[...m][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(i=>{const c=n.get(i);c&&s.push(...[...c].map(f=>f.entity))})):s=r,o(s)});Ce(this,"resetFields",t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(nc(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(Jn);r.forEach(o=>{const s=this.getInitialValue(o);this.updateStore(mo(this.store,o,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)});Ce(this,"setFields",t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:s,...i}=o,c=Jn(s);r.push(c),"value"in i&&this.updateStore(mo(this.store,c,i.value)),this.notifyObservers(n,[c],{type:"setField",data:o})}),this.notifyWatch(r)});Ce(this,"getFields",()=>this.getFieldEntities(!0).map(r=>{const o=r.getNamePath(),i={...r.getMeta(),name:o,value:this.getFieldValue(o)};return Object.defineProperty(i,"originRCField",{value:!0}),i}));Ce(this,"initEntityValue",t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Mr(this.store,r)===void 0&&this.updateStore(mo(this.store,r,n))}});Ce(this,"isMergedPreserve",t=>(t!==void 0?t:this.preserve)??!0);Ce(this,"registerField",t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,o,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(i=>i!==t),!this.isMergedPreserve(o)&&(!r||s.length>1)){const i=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==i&&this.fieldEntities.every(c=>!Em(c.getNamePath(),n))){const c=this.store;this.updateStore(mo(c,n,i,!0)),this.notifyObservers(c,[n],{type:"remove"}),this.triggerDependenciesUpdate(c,n)}}this.notifyWatch([n])}});Ce(this,"dispatch",t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}});Ce(this,"notifyObservers",(t,n,r)=>{if(this.subscribable){const o={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,o)})}else this.forceRootUpdate()});Ce(this,"triggerDependenciesUpdate",(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r});Ce(this,"updateValue",(t,n)=>{const r=Jn(t),o=this.store;this.updateStore(mo(this.store,r,n)),this.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(o,r),{onValuesChange:i}=this.callbacks;if(i){const c=HR(this.store,[r]),f=this.getFieldsValue(),d=mo(f,r,Mr(c,r));i(c,d)}this.triggerOnFieldsChange([r,...s])});Ce(this,"setFieldsValue",t=>{this.warningUnhooked();const n=this.store;if(t){const r=nc(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});Ce(this,"setFieldValue",(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])});Ce(this,"getDependencyChildrenFields",t=>{const n=new Set,r=[],o=new Ul;this.getFieldEntities().forEach(i=>{const{dependencies:c}=i.props;(c||[]).forEach(f=>{const d=Jn(f);o.update(d,(p=new Set)=>(p.add(i),p))})});const s=i=>{(o.get(i)||new Set).forEach(f=>{if(!n.has(f)){n.add(f);const d=f.getNamePath();f.isFieldDirty()&&d.length&&(r.push(d),s(d))}})};return s(t),r});Ce(this,"triggerOnFieldsChange",(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const i=new Ul;n.forEach(({name:c,errors:f})=>{i.set(c,f)}),o.forEach(c=>{c.errors=i.get(c.name)||c.errors})}const s=o.filter(({name:i})=>lc(t,i));s.length&&r(s,o)}});Ce(this,"validateFields",(t,n)=>{this.warningUnhooked();let r,o;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,o=n):o=t;const s=!!r,i=s?r.map(Jn):[],c=[...i],f=[],d=String(Date.now()),p=new Set,{recursive:m,dirty:h}=o||{};this.getFieldEntities(!0).forEach($=>{const x=$.getNamePath();if(s||((!$.isList()||!i.some(E=>Em(E,x,!0)))&&c.push(x),i.push(x)),!(!$.props.rules||!$.props.rules.length)&&!(h&&!$.isFieldDirty())&&(p.add(x.join(d)),!s||lc(i,x,m))){const E=$.validateRules({validateMessages:{...PM,...this.validateMessages},...o});f.push(E.then(()=>({name:x,errors:[],warnings:[]})).catch(C=>{const w=[],R=[];return C.forEach?.(({rule:{warningOnly:P},errors:I})=>{P?R.push(...I):w.push(...I)}),w.length?Promise.reject({name:x,errors:w,warnings:R}):{name:x,errors:w,warnings:R}}))}});const y=G_(f);this.lastValidatePromise=y,y.catch($=>$).then($=>{const x=$.map(({name:E})=>E);this.notifyObservers(this.store,x,{type:"validateFinish"}),this.triggerOnFieldsChange(x,$)});const b=y.then(()=>this.lastValidatePromise===y?Promise.resolve(this.getFieldsValue(c)):Promise.reject([])).catch($=>{const x=$.filter(C=>C&&C.errors.length),E=x[0]?.errors?.[0];return Promise.reject({message:E,values:this.getFieldsValue(i),errorFields:x,outOfDate:this.lastValidatePromise!==y})});b.catch($=>$);const v=i.filter($=>p.has($.join(d)));return this.triggerOnFieldsChange(v),b});Ce(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})});this.forceRootUpdate=t}}function RS(e){const t=a.useRef(null),[,n]=a.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},o=new X_(r);t.current=o.getForm()}return[t.current]}const z0=a.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),OM=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=a.useContext(z0),s=a.useRef({});return a.createElement(z0.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(i,c)=>{t&&t(i,{changedFields:c,forms:s.current}),o.triggerFormChange(i,c)},triggerFormFinish:(i,c)=>{n&&n(i,{values:c,forms:s.current}),o.triggerFormFinish(i,c)},registerForm:(i,c)=>{i&&(s.current={...s.current,[i]:c}),o.registerForm(i,c)},unregisterForm:i=>{const c={...s.current};delete c[i],s.current=c,o.unregisterForm(i)}}},r)};function A0(){return A0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A0.apply(this,arguments)}const Y_=(e,t)=>{const{name:n,initialValues:r,fields:o,form:s,preserve:i,children:c,component:f="form",validateMessages:d,validateTrigger:p="onChange",onValuesChange:m,onFieldsChange:h,onFinish:y,onFinishFailed:b,clearOnDestroy:v,...$}=e,x=a.useRef(null),E=a.useContext(z0),[C]=RS(s),{useSubscribe:w,setInitialValues:R,setCallbacks:P,setValidateMessages:I,setPreserve:T,destroyForm:L}=C.getInternalHooks(Ma);a.useImperativeHandle(t,()=>({...C,nativeElement:x.current})),a.useEffect(()=>(E.registerForm(n,C),()=>{E.unregisterForm(n)}),[E,C,n]),I({...E.validateMessages,...d}),P({onValuesChange:m,onFieldsChange:(q,...G)=>{E.triggerFormChange(n,q),h&&h(q,...G)},onFinish:q=>{E.triggerFormFinish(n,q),y&&y(q)},onFinishFailed:b}),T(i);const z=a.useRef(null);R(r,!z.current),z.current||(z.current=!0),a.useEffect(()=>()=>L(v),[]);let M;const O=typeof c=="function";if(O){const q=C.getFieldsValue(!0);M=c(q,C)}else M=c;w(!O);const _=a.useRef(null);a.useEffect(()=>{V_(_.current||[],o||[])||C.setFields(o||[]),_.current=o},[o,C]);const F=a.useMemo(()=>({...C,validateTrigger:p}),[C,p]),W=a.createElement(gd.Provider,{value:null},a.createElement(Qa.Provider,{value:F},M));return f===!1?W:a.createElement(f,A0({},$,{ref:x,onSubmit:q=>{q.preventDefault(),q.stopPropagation(),C.submit()},onReset:q=>{q.preventDefault(),C.resetFields(),$.onReset?.(q)}}),W)};function hb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function zM(...e){const[t,n={}]=e,r=u_(n)?{form:n}:n,o=r.form,[s,i]=a.useState(()=>typeof t=="function"?t({}):void 0),c=a.useMemo(()=>hb(s),[s]),f=a.useRef(c);f.current=c;const d=a.useContext(Qa),p=o||d,m=p&&p._init,{getFieldsValue:h,getInternalHooks:y}=p,{registerWatch:b}=y(Ma),v=Ct((x,E)=>{const C=r.preserve?E??h(!0):x??h(),w=typeof t=="function"?t(C):Mr(C,Jn(t));hb(s)!==hb(w)&&i(w)}),$=typeof t=="function"?t:JSON.stringify(t);return a.useEffect(()=>{m&&v()},[m,$]),a.useEffect(()=>m?b((E,C)=>{v(E,C)}):void 0,[m]),s}const Q_=a.forwardRef(Y_),_c=Q_;_c.FormProvider=OM;_c.Field=ES;_c.List=MM;_c.useForm=RS;_c.useWatch=zM;const As=a.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),AM=a.createContext(null),LM=e=>{const t=dn(e,["prefixCls"]);return a.createElement(OM,{...t})},IS=a.createContext({prefixCls:""}),Rr=a.createContext({}),DM=({children:e,status:t,override:n})=>{const r=a.useContext(Rr),o=a.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return a.createElement(Rr.Provider,{value:o},e)},BM=a.createContext(void 0),no=(e,t,n,r)=>{const o=Rt(n)?n:void 0,s=a.useContext(Ot),{variant:i,[e]:c}=s,f=a.useContext(BM),d=r?s[r]:void 0,p=c?.variant??d?.variant,m=typeof t<"u"||n===!1||typeof f<"u"||typeof p<"u"||typeof i<"u";let h;typeof t<"u"?h=t:n===!1?h="borderless":h=f??p??i??o?.defaultVariant??"outlined";const y=o?.variants??l8;o&&!y.includes(h)&&(h=o.defaultVariant);const b=y.includes(h);return[h,b,m]},Ip=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),J_=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:s,fontSizeLG:i,lineHeight:c,motionEaseInOutCirc:f,containerBorderRadius:d,withDescriptionIconSize:p,colorText:m,colorTextHeading:h,withDescriptionPadding:y,defaultPadding:b,lineWidth:v,lineType:$,colorSuccessBorder:x,colorWarningBorder:E,colorErrorBorder:C,colorInfoBorder:w}=e;return{[t]:{...an(e),position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:d,borderWidth:te(v),borderStyle:$,[`&${t}-success`]:{borderColor:x},[`&${t}-info`]:{borderColor:w},[`&${t}-warning`]:{borderColor:E},[`&${t}-error`]:{borderColor:C},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:c},"&-title":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(R=>`${R} ${n} ${f}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:y,[`${t}-icon`]:{marginInlineEnd:o,fontSize:p,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:h,fontSize:i},[`${t}-description`]:{display:"block",color:m}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},Z_=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:o,colorWarningBg:s,colorError:i,colorErrorBg:c,colorInfo:f,colorInfoBg:d}=e;return{[t]:{"&-success":Ip(r,n,t),"&-info":Ip(d,f,t),"&-warning":Ip(s,o,t),"&-error":{...Ip(c,i,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},eF=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:s,colorIcon:i,colorIconHover:c,colorTextDisabled:f}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:s,lineHeight:te(s),backgroundColor:"transparent",border:"none",cursor:"pointer",...to(e),[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:c}},"&:disabled":{cursor:"not-allowed",color:f,[`${n}-close`]:{color:"inherit",pointerEvents:"none"}}}}}},tF=e=>({containerBorderRadius:e.borderRadiusLG,withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),nF=Zt("Alert",e=>[J_(e),Z_(e),eF(e)],tF),rF=e=>{const{icon:t,type:n,className:r,style:o,successIcon:s,infoIcon:i,warningIcon:c,errorIcon:f}=e,d={success:s??a.createElement(Ld,null),info:i??a.createElement(bh,null),error:f??a.createElement(ll,null),warning:c??a.createElement(cl,null)};return a.createElement("span",{className:r,style:o},t??d[n])},oF=e=>{const{isClosable:t,disabled:n,prefixCls:r,closeIcon:o,handleClose:s,ariaProps:i,className:c,style:f}=e,d=o===!0||o===void 0?a.createElement(ii,null):o;return t?a.createElement("button",{type:"button",disabled:n,onClick:s,className:U(`${r}-close-icon`,c),style:f,...i},d):null},_M=a.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,title:s,banner:i,className:c,rootClassName:f,style:d,onMouseEnter:p,onMouseLeave:m,onClick:h,afterClose:y,showIcon:b,closable:v,closeText:$,closeIcon:x,action:E,id:C,styles:w,classNames:R,...P}=e,I=s??o,[T,L]=a.useState(!1),z=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:z.current}));const{getPrefixCls:M,direction:O,closable:_,closeIcon:F,className:W,style:q,classNames:G,styles:j,successIcon:H,infoIcon:k,warningIcon:B,errorIcon:D}=Xt("alert"),K=M("alert",r),[Q,Z]=nF(K),{onClose:X,afterClose:J,disabled:ne}=Rt(v)?v:{},oe=Fe=>{L(!0),(X??e.onClose)?.(Fe)},ae=a.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),[pe]=no("alert",e.variant,{variants:["outlined","filled"],defaultVariant:"outlined"}),fe=a.useMemo(()=>Rt(v)||$?!0:typeof v=="boolean"?v:x!==!1&&un(x)?!0:!!_,[$,x,v,_]),le=i&&b===void 0?!0:b,ie={...e,prefixCls:K,variant:pe,type:ae,showIcon:le,closable:fe},re=ut(q),de=ut(d),[ge,se]=qt([G,R],[j,re,w,de],{props:ie}),ce=U(K,`${K}-${ae}`,`${K}-${pe}`,{[`${K}-with-description`]:tt(n),[`${K}-no-icon`]:!le,[`${K}-banner`]:!!i,[`${K}-rtl`]:O==="rtl"},W,c,f,ge.root,Z,Q),xe=Hn(P,{aria:!0,data:!0}),Ee=a.useMemo(()=>Rt(v)&&v.closeIcon?v.closeIcon:$||(x!==void 0?x:Rt(_)&&_.closeIcon?_.closeIcon:F),[x,v,_,$,F]),Se=a.useMemo(()=>{const Fe=v??_;return Rt(Fe)?Hn(Fe,{data:!0,aria:!0}):{}},[v,_]);return a.createElement(Ar,{visible:!T,motionName:`${K}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Fe=>({maxHeight:Fe.offsetHeight}),onLeaveEnd:J??y},({className:Fe,style:qe},Ne)=>a.createElement("div",{id:C,ref:ur(z,Ne),"data-show":!T,className:U(ce,Fe),style:{...se.root,...qe},onMouseEnter:p,onMouseLeave:m,onClick:h,role:"alert",...xe},le?a.createElement(rF,{className:U(`${K}-icon`,ge.icon),style:se.icon,icon:e.icon,type:ae,successIcon:H,infoIcon:k,warningIcon:B,errorIcon:D}):null,a.createElement("div",{className:U(`${K}-section`,ge.section),style:se.section},tt(I)?a.createElement("div",{className:U(`${K}-title`,ge.title),style:se.title},I):null,tt(n)?a.createElement("div",{className:U(`${K}-description`,ge.description),style:se.description},n):null),tt(E)?a.createElement("div",{className:U(`${K}-actions`,ge.actions),style:se.actions},E):null,a.createElement(oF,{className:ge.close,style:se.close,isClosable:fe,disabled:ne,prefixCls:K,closeIcon:Ee,handleClose:oe,ariaProps:Se})))});function sF(e,t,n){return t=Pc(t),N2(e,pS()?Reflect.construct(t,n||[],Pc(e).constructor):t.apply(e,n))}let iF=(function(e){function t(){var n;return sl(this,t),n=sF(this,t,arguments),n.state={error:void 0,info:{}},n}return P2(t,e),il(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,title:o,description:s,id:i,children:c}=this.props,{error:f,info:d}=this.state,p=o??r,m=d?.componentStack||null,h=un(p)?p:f?.toString(),y=un(s)?s:m;return f?a.createElement(_M,{id:i,type:"error",title:h,description:a.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},y)}):c}}])})(a.PureComponent);const PS=_M;PS.ErrorBoundary=iF;const WR=e=>typeof e=="object"&&e!=null&&e.nodeType===1,VR=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Pp=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return VR(n.overflowY,t)||VR(n.overflowX,t)||(r=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Np=(e,t,n,r,o,s,i,c)=>s<e&&i>t||s>e&&i<t?0:s<=e&&c<=n||i>=t&&c>=n?s-e-r:i>t&&c<n||s<e&&c>n?i-t+o:0,aF=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},KR=(e,t)=>{var n,r,o,s;if(typeof document>"u")return[];const{scrollMode:i,block:c,inline:f,boundary:d,skipOverflowHiddenElements:p}=t,m=typeof d=="function"?d:q=>q!==d;if(!WR(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,y=[];let b=e;for(;WR(b)&&m(b);){if(b=aF(b),b===h){y.push(b);break}b!=null&&b===document.body&&Pp(b)&&!Pp(document.documentElement)||b!=null&&Pp(b,p)&&y.push(b)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,$=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:x,scrollY:E}=window,{height:C,width:w,top:R,right:P,bottom:I,left:T}=e.getBoundingClientRect(),{top:L,right:z,bottom:M,left:O}=(q=>{const G=window.getComputedStyle(q);return{top:parseFloat(G.scrollMarginTop)||0,right:parseFloat(G.scrollMarginRight)||0,bottom:parseFloat(G.scrollMarginBottom)||0,left:parseFloat(G.scrollMarginLeft)||0}})(e);let _=c==="start"||c==="nearest"?R-L:c==="end"?I+M:R+C/2-L+M,F=f==="center"?T+w/2-O+z:f==="end"?P+z:T-O;const W=[];for(let q=0;q<y.length;q++){const G=y[q],{height:j,width:H,top:k,right:B,bottom:D,left:K}=G.getBoundingClientRect();if(i==="if-needed"&&R>=0&&T>=0&&I<=$&&P<=v&&(G===h&&!Pp(G)||R>=k&&I<=D&&T>=K&&P<=B))return W;const Q=getComputedStyle(G),Z=parseInt(Q.borderLeftWidth,10),X=parseInt(Q.borderTopWidth,10),J=parseInt(Q.borderRightWidth,10),ne=parseInt(Q.borderBottomWidth,10);let oe=0,ae=0;const pe="offsetWidth"in G?G.offsetWidth-G.clientWidth-Z-J:0,fe="offsetHeight"in G?G.offsetHeight-G.clientHeight-X-ne:0,le="offsetWidth"in G?G.offsetWidth===0?0:H/G.offsetWidth:0,ie="offsetHeight"in G?G.offsetHeight===0?0:j/G.offsetHeight:0;if(h===G)oe=c==="start"?_:c==="end"?_-$:c==="nearest"?Np(E,E+$,$,X,ne,E+_,E+_+C,C):_-$/2,ae=f==="start"?F:f==="center"?F-v/2:f==="end"?F-v:Np(x,x+v,v,Z,J,x+F,x+F+w,w),oe=Math.max(0,oe+E),ae=Math.max(0,ae+x);else{oe=c==="start"?_-k-X:c==="end"?_-D+ne+fe:c==="nearest"?Np(k,D,j,X,ne+fe,_,_+C,C):_-(k+j/2)+fe/2,ae=f==="start"?F-K-Z:f==="center"?F-(K+H/2)+pe/2:f==="end"?F-B+J+pe:Np(K,B,H,Z,J+pe,F,F+w,w);const{scrollLeft:re,scrollTop:de}=G;oe=ie===0?0:Math.max(0,Math.min(de+oe/ie,G.scrollHeight-j/ie+fe)),ae=le===0?0:Math.max(0,Math.min(re+ae/le,G.scrollWidth-H/le+pe)),_+=de-oe,F+=re-ae}W.push({el:G,top:oe,left:ae})}return W},lF=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function cF(e,t){if(!e.isConnected||!(o=>{let s=o;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;const n=(o=>{const s=window.getComputedStyle(o);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(KR(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:s,left:i}of KR(e,lF(t))){const c=s-n.top+n.bottom,f=i-n.left+n.right;o.scroll({top:c,left:f,behavior:r})}}const uF=e=>{if(typeof window>"u")return 0;let t=0;return x0(e)?t=e.pageYOffset:sM(e)?t=e.documentElement.scrollTop:(C5(e)||e)&&(t=e.scrollTop),e&&!x0(e)&&!Un(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function dF(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const fF=(e,t={})=>{const{getContainer:n=()=>window,callback:r,duration:o=450}=t,s=n(),i=uF(s),c=m=>{x0(s)?s.scrollTo(window.pageXOffset,m):sM(s)?s.documentElement.scrollTop=m:s.scrollTop=m};if(o<=0)return c(e),Tt(r)&&r(),()=>{};const f=Date.now();let d;const p=()=>{const h=Date.now()-f,y=dF(h>o?o:h,i,e,o);c(y),h<o?d=Wt(p):Tt(r)&&r()};return d=Wt(p),()=>{Wt.cancel(d)}},er=e=>`${e}-css-var`;function pF(){const[e,t]=a.useState({}),n=a.useCallback((r,o)=>{if(!o){t(i=>{if(!(r in i))return i;const c={...i};return delete c[r],c});return}const s={width:o.offsetWidth,height:o.offsetHeight};t(i=>{const c=i[r];return c&&c.width===s.width&&c.height===s.height?i:{...i,[r]:s}})},[]);return[e,n]}function mF(e,t,n=0){const[r,o]=pF(),[s,i,c,f]=a.useMemo(()=>{let d=0,p=0;const m=t?.threshold??0,h=new Map;let y,b;return e.slice().reverse().forEach((v,$)=>{const x=String(v.key),E=r[x]?.height??0,C=t&&$>0?d+(t.offset??0)-E:d;h.set(x,C),$===0&&(y=E,b=r[x]?.width??0),(!t||$<m)&&(p=Math.max(p,C+E)),t?d=C+E:d+=E+n}),[h,p,y,b]},[e,n,r,t]);return[s,o,i,c,f]}const UR=8,qR=3,hF=e=>{const t={offset:UR,threshold:qR};return e&&typeof e=="object"&&(t.offset=e.offset??UR,t.threshold=e.threshold??qR),[!!e,t]};function gF(e,t,n){const o=Math.max(typeof e=="number"?e:0,0)*1e3,s=Ct(t),i=Ct(n),[c,f]=a.useState(o>0),d=a.useRef(0),p=a.useRef(null);function m(){const b=Date.now(),v=p.current;v!==null&&(d.current+=b-v),p.current=b}const h=a.useCallback(()=>{m(),p.current=null,f(!1)},[]),y=a.useCallback(()=>{o>0?(p.current=Date.now(),f(!0)):i(0)},[o]);return a.useEffect(()=>{d.current=0,f(o>0)},[o]),a.useEffect(()=>{if(!c)return;let b=null;function v(){m(),d.current>=o?(i(1),s()):(i(Math.min(d.current/o,1)),b=Wt(v))}return v(),()=>{Wt.cancel(b)}},[o,c]),[y,h]}function yF(e){const t=a.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),n=a.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),r=a.useMemo(()=>Hn(n,!0),[n]);return[!!e,n,r]}const bF=({className:e,style:t,percent:n})=>a.createElement("progress",{className:e,max:"100",value:n,style:t});function Rm(){return Rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rm.apply(this,arguments)}const vF=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,classNames:s,styles:i,components:c,title:f,description:d,icon:p,actions:m,role:h,closable:y,offset:b,notificationIndex:v,stackInThreshold:$,props:x,duration:E=4.5,showProgress:C,hovering:w,pauseOnHover:R=!0,onClick:P,onMouseEnter:I,onMouseLeave:T,onClose:L}=e,[z,M]=a.useState(0),O=`${n}-notice`,[_,F,W]=yF(y),q=Ct(()=>{F.onClose?.(),L?.()}),[G,j]=a.useState(!1),[H,k]=gF(E,q,M),B=100-Math.min(Math.max(z*100,0),100),D=c?.progress||bF;a.useEffect(()=>{R&&(w?k():G||H())},[w,G,k,H,R]);function K(ce){j(!0),R&&k(),I?.(ce)}function Q(ce){j(!1),R&&!w&&H(),T?.(ce)}function Z(ce){ce.preventDefault(),ce.stopPropagation(),q()}const X=Ct(()=>{G&&Q()});a.useEffect(()=>X,[X]);const J=a.useRef(b);b!==void 0&&(J.current=b);const ne=a.useRef(v);v!==void 0&&(ne.current=v);const oe=b??J.current,ae=v??ne.current??0,pe=un(f)?a.createElement("div",{className:U(`${O}-title`,s?.title),style:i?.title},f):null,fe=un(d)?a.createElement("div",{className:U(`${O}-description`,s?.description),style:i?.description},d):null,le=pe!==null,ie=fe!==null;let re;le&&ie?re=a.createElement("div",{className:U(`${O}-section`,s?.section),style:i?.section},pe,fe):re=pe||fe,un(p)&&(re=a.createElement("div",{className:U(`${O}-wrapper`,s?.wrapper),style:i?.wrapper},a.createElement("div",{className:U(`${O}-icon`,s?.icon),style:i?.icon},p),re));const de=tt(m)?a.createElement("div",{className:U(`${O}-actions`,s?.actions),style:i?.actions},m):null,ge={"--notification-index":ae,...i?.root,...o};oe!==void 0&&(ge["--notification-y"]=`${oe}px`);const se=h??x?.role??"alert";return a.createElement("div",Rm({},x,{ref:t,role:se,"data-notification-index":ae,className:U(O,r,s?.root,{[`${O}-closable`]:_,[`${O}-stack-in-threshold`]:$}),style:ge,onClick:P,onMouseEnter:K,onMouseLeave:Q}),re,de,_&&a.createElement("button",Rm({type:"button",className:U(`${O}-close`,s?.close),"aria-label":"Close"},W,{style:i?.close,onClick:Z}),F.closeIcon),C&&typeof E=="number"&&E>0&&a.createElement(D,{className:U(`${O}-progress`,s?.progress),percent:B,style:i?.progress}))}),FM=a.createContext({}),kM=({children:e,classNames:t})=>{const n=a.useMemo(()=>({classNames:t}),[t]);return a.createElement(FM.Provider,{value:n},e)};function L0(){return L0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L0.apply(this,arguments)}const xF=a.forwardRef((e,t)=>{const{listPrefixCls:n,height:r,topNoticeHeight:o=0,topNoticeWidth:s=0,className:i,style:c,...f}=e,d=`${n}-content`,p=a.useRef(r),m=p.current,h=r<m?"decrease":"increase";p.current=r;const y={...c,height:r,"--top-notificiation-height":`${o}px`,"--top-notificiation-width":`${s}px`};return a.createElement("div",L0({},f,{className:U(d,`${d}-${h}`,i),style:y,ref:t}))});function Im(){return Im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Im.apply(this,arguments)}const HM=["wrapper","root","icon","section","title","description","actions","close","progress"];function CF(e){return HM.reduce((t,n)=>(t[n]=U(...e.map(r=>r?.[n])),t),{})}function SF(e){return HM.reduce((t,n)=>(t[n]=Object.assign({},...e.map(r=>r?.[n])),t),{})}function $F(e,t){const n=String(t),r=e.findIndex(o=>o.key===n);if(r!==-1)return e.length-r-1}const wF=e=>{const{config:t,components:n,contextClassNames:r,classNames:o,styles:s,className:i,style:c,nodeRef:f,listHovering:d,stackEnabled:p,pauseOnHover:m,setNodeSize:h,onNoticeClose:y,...b}=e,{key:v,placement:$,...x}=t,E=String(v),C=a.useCallback(R=>{h(E,R)},[h,E]),w=Yo(f,C);return a.createElement(vF,Im({},x,b,{ref:w,className:U(r?.notice,t.className,i),style:{...c,...t.style},classNames:CF([o,t.classNames]),styles:SF([s,t.styles]),components:{...n,...t.components},hovering:p&&d,pauseOnHover:t.pauseOnHover??m,onClose:()=>{t.onClose?.(),y?.(v)}}))},EF=e=>{const{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:r,classNames:o,styles:s,components:i,stack:c,motion:f,placement:d,className:p,style:m,onNoticeClose:h,onAllRemoved:y}=e,{classNames:b}=a.useContext(FM),v=a.useMemo(()=>t.map(j=>({config:j,key:String(j.key)})),[t]),$=typeof f=="function"?f(d):f,[x,{offset:E,threshold:C}]=hF(c),[w,R]=a.useState(!1),P=x&&(w||v.length<=C),I=a.useMemo(()=>{if(!(!x||P))return{offset:E,threshold:C}},[P,E,x,C]),[T,L]=a.useState(0),z=a.useRef(null),[M,O,_,F,W]=mF(t,I,T),q=!!t.length;a.useEffect(()=>{const j=z.current;if(!j)return;const{gap:H,rowGap:k}=window.getComputedStyle(j),B=parseFloat(k||H)||0;L(D=>D===B?D:B)},[q]);const G=`${n}-list`;return a.createElement("div",{className:U(n,G,`${n}-${d}`,b?.list,p,o?.list,{[`${n}-stack`]:x,[`${n}-stack-expanded`]:P,[`${G}-hovered`]:w}),style:{...s?.list,...m}},a.createElement(xF,{listPrefixCls:G,height:_,topNoticeHeight:F,topNoticeWidth:W,className:o?.listContent,style:s?.listContent,ref:z,onMouseEnter:()=>{R(!0)},onMouseLeave:()=>{R(!1)}},a.createElement(rM,Im({component:!1,keys:v,motionAppear:!0},$,{onAllRemoved:()=>{d&&y?.(d)}}),({config:j,className:H,style:k},B)=>{const{key:D}=j,K=String(D),Q=$F(v,D),Z=x&&Q!==void 0&&Q<C;return a.createElement(wF,{key:D,config:j,components:i,contextClassNames:b,classNames:o,styles:s,className:H,style:k,nodeRef:B,prefixCls:n,offset:M.get(K),notificationIndex:Q,stackInThreshold:Z,listHovering:w,stackEnabled:x,pauseOnHover:r,setNodeSize:O,onNoticeClose:h})})))},RF=a.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:o,maxCount:s,pauseOnHover:i,classNames:c,styles:f,components:d,className:p,style:m,onAllRemoved:h,stack:y,renderNotifications:b}=e,[v,$]=a.useState([]),[x,E]=a.useState({}),C=a.useRef(!1);a.useImperativeHandle(t,()=>({open:P=>{$(I=>{let T=[...I];const L=T.findIndex(M=>M.key===P.key),z={...P};return L>=0?(z.times=(I[L]?.times??0)+1,T[L]=z):(z.times=0,T.push(z)),s&&s>0&&T.length>s&&(T=T.slice(-s)),T})},close:P=>{$(I=>I.filter(T=>T.key!==P))},destroy:()=>{$([])}})),a.useEffect(()=>{const P={};v.forEach(I=>{const T=I.placement??"topRight";P[T]=P[T]||[],P[T].push(I)}),Object.keys(x).forEach(I=>{P[I]=P[I]||[]}),E(P)},[v]);const w=Ct(P=>{E(I=>{const T={...I};return(T[P]||[]).length||delete T[P],T})});if(a.useEffect(()=>{Object.keys(x).length>0?C.current=!0:C.current&&(h?.(),C.current=!1)},[x,h]),!r)return null;const R=Object.keys(x);return Qi.createPortal(a.createElement(a.Fragment,null,R.map(P=>{const I=a.createElement(EF,{key:P,configList:x[P],placement:P,prefixCls:n,pauseOnHover:i,classNames:c,styles:f,components:d,className:p?.(P),style:m?.(P),motion:o,stack:y,onNoticeClose:T=>{$(L=>L.filter(z=>z.key!==T))},onAllRemoved:w});return b?a.cloneElement(b(I,{prefixCls:n,key:P}),{key:P}):I})),r)}),IF=()=>document.body;let GR=0;function PF(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(t[r]=o)})}),t}function jM(e={}){const{getContainer:t=IF,motion:n,prefixCls:r,placement:o,closable:s,duration:i,showProgress:c,pauseOnHover:f,classNames:d,styles:p,components:m,maxCount:h,className:y,style:b,onAllRemoved:v,stack:$,renderNotifications:x}=e,E={placement:o,closable:s,duration:i,showProgress:c},[C,w]=a.useState(),R=a.useRef(null),[P,I]=a.useState([]),T=a.createElement(RF,{container:C,ref:R,prefixCls:r,motion:n,maxCount:h,pauseOnHover:f,classNames:d,styles:p,components:m,className:y,style:b,onAllRemoved:v,stack:$,renderNotifications:x}),L=Ct(M=>{const O=PF(E,M);(O.key===null||O.key===void 0)&&(O.key=`rc-notification-${GR}`,GR+=1),I(_=>[..._,{type:"open",config:O}])}),z=a.useMemo(()=>({open:L,close:M=>{I(O=>[...O,{type:"close",key:M}])},destroy:()=>{I(M=>[...M,{type:"destroy"}])}}),[]);return a.useEffect(()=>{w(t())}),a.useEffect(()=>{R.current&&P.length&&(P.forEach(M=>{switch(M.type){case"open":R.current?.open(M.config);break;case"close":R.current?.close(M.key);break;case"destroy":R.current?.destroy();break}}),I(M=>{const O=M.filter(_=>!P.includes(_));return O.length===M.length?M:O}))},[P]),[z,T]}const WM=(e,t)=>a.useMemo(()=>{const n=e??t;return n?{...Rt(t)?t:{},...Rt(n)?n:{}}:!1},[e,t]);function VM(e,t){return{...un(e)&&{"--notification-top":te(e)},...un(t)&&{"--notification-bottom":te(t)}}}function NF(e){return{motionName:`${e}-fade`}}function TF(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}var MF={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.apply(this,arguments)}const OF=(e,t)=>a.createElement(_t,D0({},e,{ref:t,icon:MF})),oi=a.forwardRef(OF);function wr(...e){return e.find(t=>t!==void 0)}const xh=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:o,defaultAllowClear:s,defaultLabel:i,componentName:c}=e;return a.useMemo(()=>t??r??s?{clearIcon:wr(Rt(t)?t.clearIcon:void 0,n,Rt(r)?r.clearIcon:void 0,o,ee.createElement(ll,null)),disabled:(Rt(t)?t?.disabled:void 0)??(Rt(r)?r?.disabled:void 0),tabIndex:(Rt(t)?t?.tabIndex:void 0)??(Rt(r)?r?.tabIndex:void 0),label:(Rt(t)?t.label:void 0)??(Rt(r)?r.label:void 0)??i}:!1,[t,n,r,o,s,i])},ea=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},KM={},XR=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!un(e)&&!un(t))return null;let n={closeIcon:typeof t!="boolean"&&un(t)?t:void 0};return Rt(e)&&(n={...n,...e}),n},zF=(e,t,n)=>e===!1?!1:e?Rc(n,t,e):t===!1?!1:t?Rc(n,t):n.closable?n:!1,AF=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...s}=e;let i=o;const c=Hn(s,!0);return un(i)&&(r&&(i=r(i)),i=ee.isValidElement(i)?ee.cloneElement(i,{"aria-label":n,...i.props,...c}):ee.createElement("span",{"aria-label":n,...c},i)),[i,{"aria-label":n,...c}]},UM=(e,t,n=KM,r="Close")=>{const o=XR(e?.closable,e?.closeIcon),s=XR(t?.closable,t?.closeIcon),i={closeIcon:ee.createElement(ii,null),...n},c=zF(o,s,i),f=typeof c!="boolean"?!!c?.disabled:!1;if(c===!1)return[!1,null,f,{}];const[d,p]=AF(c,i,r);return[!0,d,f,p]},NS=(e,t,n=KM)=>{const[r]=br("global",xo.global);return ee.useMemo(()=>UM(e,t,{closeIcon:ee.createElement(ii,null),...n},r.close),[e,t,n,r.close])},LF=()=>ee.useReducer(e=>e+1,0),B0=(e,t)=>{let n={};return Rt(e)&&(n={...e}),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},qM=(e,t,n,r)=>a.useMemo(()=>{const o=B0(e,r),s=B0(t),i={blur:!1,...s,...o,closable:o.closable??r??s.closable??!0},c=i.blur?`${n}-mask-blur`:void 0;return[i.enabled!==!1,{mask:c},!!i.closable]},[e,t,n,r]),DF=e=>{const[t,n]=a.useState(null);return[Ct((o,s,i)=>{const c=t??o,f=Math.min(c||0,o),d=Math.max(c||0,o),p=s.slice(f,d+1).map(e),m=p.some(y=>!i.has(y)),h=[];return p.forEach(y=>{m?(i.has(y)||h.push(y),i.add(y)):(i.delete(y),h.push(y))}),n(m?d:null),h}),n]},YR=e=>e==="horizontal"||e==="vertical",_d=(e,t,n)=>a.useMemo(()=>{const r=YR(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=YR(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),BF=()=>{const[e,t]=a.useState([]),n=a.useCallback(r=>(t(o=>[].concat(jt(o),[r])),()=>{t(o=>o.filter(s=>s!==r))}),[]);return[e,n]},_F=(e,t)=>a.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return new Proxy(r,{get(o,s){return n[s]?n[s]:Reflect.get(o,s)}})}),GM=e=>{const t=a.useRef(e),[,n]=LF();return[()=>t.current,r=>{t.current=r,n()}]},Fd=ee.createContext(void 0),zi=100,FF=10,TS=zi*FF,XM={Modal:zi,Drawer:zi,Popover:zi,Popconfirm:zi,Tooltip:zi,Tour:zi,FloatButton:zi},kF={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},HF=e=>e in XM,Fc=(e,t)=>{const[,n]=Dr(),r=ee.useContext(Fd),o=HF(e);let s;if(t!==void 0)s=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+XM[e]:i+=kF[e],s=[r===void 0?t:i,i]}return s},jF=e=>{const{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(o=>`${o} ${r}`).join(", ")}},YM=(e,t)=>{const{componentCls:n,antCls:r,colorSuccess:o,colorInfo:s,colorWarning:i,colorError:c,colorTextHeading:f,colorText:d,boxShadow:p,borderRadiusLG:m,fontSize:h,lineHeight:y,notificationBg:b,notificationPadding:v,notificationMarginEdge:$,margin:x,calc:E}=e,C=`${n}-notice`,[w,R]=Bt(r,"notification");return{[C]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${te(E($).mul(2).equal())})`,padding:v,pointerEvents:"auto",[w("icon-font-size")]:t.iconFontSize,[w("title-font-size")]:t.titleFontSize,[w("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:d,background:b,borderRadius:m,boxShadow:p,fontSize:h,lineHeight:y,wordWrap:"break-word",overflow:"visible",...jF(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:E(x).mul(-1).equal(),height:x,content:'""'},...t.typeStyle&&{"&-success":{background:R("color-success-bg",b)},"&-error":{background:R("color-error-bg",b)},"&-info":{background:R("color-info-bg",b)},"&-warning":{background:R("color-warning-bg",b)}}},[`${C}-wrapper`]:{display:"flex",...t.contentStyle},[`${C}-title`]:{color:f,fontSize:R("title-font-size"),lineHeight:R("title-line-height")},[`${C}-icon`]:{flex:"none",fontSize:R("icon-font-size"),lineHeight:1,[`&${C}-icon-success`]:{color:o},[`&${C}-icon-info, &${C}-icon-loading`]:{color:s},[`&${C}-icon-warning`]:{color:i},[`&${C}-icon-error`]:{color:c}}}},QM=e=>{const{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:o,borderRadiusLG:s,width:i,notificationIconSize:c,colorText:f,motionDurationMid:d,fontSizeLG:p,lineHeightLG:m,marginSM:h,marginXS:y,paddingLG:b,notificationPaddingVertical:v,notificationPaddingHorizontal:$,notificationCloseButtonSize:x,colorIcon:E,borderRadiusSM:C,colorIconHover:w,colorBgTextHover:R,colorBgTextActive:P}=e,I=`${t}-notice`;return{...YM(e,{width:i,iconFontSize:c,titleFontSize:p,titleLineHeight:m,contentStyle:{alignItems:"flex-start",gap:h},typeStyle:!0}),[`${I}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:y,minWidth:0},[`${I}-description`]:{color:f,fontSize:o},[`${I}-closable`]:{[`${I}-title, ${I}-description`]:{paddingInlineEnd:b},[`${I}-title + ${I}-description`]:{paddingInlineEnd:0}},[`${I}-close`]:{position:"absolute",top:v,insetInlineEnd:$,display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,color:E,background:"none",border:"none",borderRadius:C,outline:"none",transition:["color","background-color"].map(T=>`${T} ${d}`).join(", "),"&:hover":{color:w,backgroundColor:R},"&:active":{backgroundColor:P},...to(e)},[`${I}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${te(s)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:s,background:n}},[`${I}-actions`]:{float:"right",marginTop:h}}},WF=e=>{const{componentCls:t,width:n}=e,r=`${t}-notice`,o=`${r}-actions`,s=QM(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:"100%",...s,[r]:{...s[r],position:"relative",width:"100%",maxWidth:"100%"},[o]:{...s[o],float:"none",textAlign:"end"}}}},VF=e=>{const{componentCls:t}=e;return{[t]:QM(e)}},KF=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],UF="--notification-margin-edge",qF=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),QR=e=>{const t=e?.x??"0",n=e?.y??"0";return`translate3d(${t}, ${n}, 0) scale(var(--notification-scale, 1))`},GF=(e,t)=>{const n=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:o,inlineEnd:s}=qF(n,r),i=e==="top"||e==="bottom",c=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:o,horizontal:r,inlineEnd:s,motionOffset:i?{x:"-50%",y:c}:{x:c},baseMotionOffset:i?{x:"-50%"}:void 0,isCenterPlacement:i}},XF=e=>e==="bottom"?"column-reverse":"column",YF=e=>{const t=`var(${UF}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},QF=e=>e==="bottom"?"center top":"center bottom",JM=e=>te(e.calc(e.marginXXL).mul(-1).equal()),JF=e=>{const t=JM(e);return`inset(${t} ${t} ${t} ${t})`},ZF=(e,t)=>{const n=JM(e);return t==="bottom"?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},ek=(e,t)=>{const{componentCls:n}=e,{placement:r,vertical:o,blockEnd:s,horizontal:i,inlineEnd:c,isCenterPlacement:f}=t,d=`${n}-notice`,p=`${d}${n}-fade`,m=QR(t.motionOffset),h=QR(t.baseMotionOffset),y=QF(o);return{[`&${n}-${r}`]:{[o]:YF(o),[s]:"auto",display:"flex",flexDirection:XF(o),...f?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[i]:0,[c]:"auto"},[d]:{[o]:"var(--notification-y, 0)",...f?{left:"50%",transform:h}:{[i]:"var(--notification-x, 0)"},transformOrigin:y},[`${p}-appear-prepare, ${p}-enter-prepare`]:{opacity:0,transform:m,transition:"none"},[`${p}-appear-start, ${p}-enter-start`]:{opacity:0,transform:m},[`${p}-appear-active, ${p}-enter-active`]:{opacity:1,transform:h},[`${p}-leave`]:{pointerEvents:"none","&-start":{opacity:1,transform:h},"&-active":{opacity:0,transform:m}},[`&${n}-stack:not(${n}-stack-expanded)`]:{[d]:{clipPath:ZF(e,o)},[`${d}[data-notification-index='0']`]:{clipPath:JF(e)}}}}},tk=(e,t=KF)=>{const{notificationMotionOffset:n}=e,r=te(n);return{...t.reduce((o,s)=>({...o,...ek(e,GF(s,r))}),{})}},nk=e=>{const{componentCls:t}=e;return{[t]:tk(e)}},rk=3,ZM=e=>({zIndexPopup:e.zIndexPopupBase+TS+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),MS=e=>{const t=e.paddingMD,n=e.paddingLG;return Jt(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:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},ok=e=>`inset(${e} ${e} ${e} ${e})`,sk=(e,t)=>{const{componentCls:n,motionDurationMid:r,motionDurationSlow:o,motionEaseInOut:s}=e,c=`${`${n}-list`}-content`;return{[c]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",pointerEvents:t,[`&${c}-decrease`]:{transition:`height calc(${o} * 2) ${s} ${r}`}},[`${n}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},ik=(e,t)=>{const{componentCls:n,notificationMarginEdge:r}=e,o="--notification-margin-edge",s=`${n}-notice`,i=`${n}-list`,c=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",f=t.stackVisibleCount??rk,d=`${s}:nth-last-child(n + ${f+1})`,p=te(e.calc(e.marginXXL).mul(-1).equal()),m=ok(p);return{[n]:{...an(e),[o]:te(r),position:"fixed",zIndex:e.zIndexPopup,width:c,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`&${i}`]:{maxHeight:"100vh",padding:`var(${o})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...sk(e,t.listContentPointerEvents??"auto"),[`&${n}-stack`]:{[s]:{clipPath:m},[`&:not(${n}-stack-expanded)`]:{[s]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${s}:not(${s}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[d]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${s}-actions`]:{float:"left"}}}}};al(["Notification","PurePanel"],e=>WF(MS(e)),ZM);const eO=(e,t)=>{const n=t.itemStyle??VF;return[ik(e,t),n(e),nk(e)]},ak=Zt("Notification",e=>{const t=MS(e);return eO(t,{listWidthKey:"width"})},ZM),tO=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Jt(MS(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},nO=e=>({zIndexPopup:e.zIndexPopupBase+TS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),OS=e=>{const{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return YM(e,{width:"max-content",iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},lk=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,o=OS(e),{"&::after":s,...i}=o[n],c={...i,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...c,top:`calc(var(--top-notificiation-height) - ${te(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${te(e.margin)})`},"&::after":{...c,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${te(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},ck=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=OS(e);return{[`${n}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[n]:{...r[n],position:"relative",width:"max-content",maxWidth:"100%"}}}};al(["Message","PurePanel"],e=>ck(tO(e)),nO);const uk=e=>({[e.componentCls]:OS(e)}),dk=Zt("Message",e=>{const t=tO(e);return[eO(t,{stackVisibleCount:1,itemStyle:uk,listContentPointerEvents:"none"}),lk(t)]},nO),fk={info:a.createElement(bh,null),success:a.createElement(Ld,null),error:a.createElement(ll,null),warning:a.createElement(cl,null),loading:a.createElement(oi,null)},pk=(e,t)=>tt(t)?t:e&&fk[e]||null;function mk(e,t){return{motionName:t??`${e}-fade`}}function hk(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t?.()};return r.then=(o,s)=>n.then(o,s),r.promise=n,r}const gk=8,yk=3,bk=!1,vk=({children:e,prefixCls:t})=>{const n=er(t),[r,o]=dk(t,n);return a.createElement(kM,{classNames:{list:U(r,o,n)}},e)},xk=(e,{prefixCls:t,key:n})=>a.createElement(vk,{prefixCls:t,key:n},e),Ck=a.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:s,duration:i=yk,rtl:c,classNames:f,styles:d,transitionName:p,pauseOnHover:m=!0,stack:h,onAllRemoved:y}=e,{getPrefixCls:b,direction:v,getPopupContainer:$}=Xt("message"),{message:x}=a.useContext(Ot),E=r||b("message"),C=ut(x?.style),[w,R]=qt([x?.classNames,f],[x?.styles,C,d],{props:e}),P=()=>VM(n??gk),I=()=>U({[`${E}-rtl`]:c??v==="rtl"}),T=()=>mk(E,p),L=WM(h,bk),[z,M]=jM({prefixCls:E,style:P,className:I,motion:T,closable:!1,duration:i,getContainer:()=>o?.()||$?.()||document.body,maxCount:s,onAllRemoved:y,classNames:w,styles:R,renderNotifications:xk,pauseOnHover:m,stack:L});return a.useImperativeHandle(t,()=>({...z,prefixCls:E,message:x})),M});let JR=0;function Sk(e){const t=a.useRef(null);return ia(),[a.useMemo(()=>{const r=f=>{t.current?.close(f)},o=f=>{if(!t.current){const F=()=>{};return F.then=()=>{},F}const{open:d,prefixCls:p,message:m}=t.current,h=m?.className||{},y=`${p}-notice`,{content:b,icon:v,type:$,key:x,className:E,style:C,onClose:w,classNames:R={},styles:P={},...I}=f;let T=x;un(T)||(JR+=1,T=`antd-message-${JR}`);const L={...e,...f},z=Zi(R,{props:L}),M=Zi(P,{props:L}),O=pk($,v),_=$?`${y}-icon-${$}`:void 0;return hk(F=>(d({...I,key:T,icon:O,title:b,classNames:{...z,wrapper:U($&&`${p}-${$}`,z?.wrapper),icon:U(_,z?.icon)},styles:M,placement:"top",className:U({[`${y}-${$}`]:$},E,h),style:C,onClose:()=>{w?.(),F()}}),()=>{r(T)}))},i={open:o,destroy:f=>{f!==void 0?r(f):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const d=(p,m,h)=>{let y;Rt(p)&&"content"in p?y=p:y={content:p};let b,v;Tt(m)?v=m:(b=m,v=h);const $={onClose:v,duration:b,...y,type:f};return o($)};i[f]=d}),i},[]),a.createElement(Ck,{key:"message-holder",...e,ref:t})]}function $k(e){return Sk(e)}const gb=()=>({height:0,opacity:0}),ZR=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),wk=e=>({height:e?.offsetHeight??0}),yb=(e,t)=>t?.deadline===!0||oM(t)&&t.propertyName==="height",Pm=(e=ud)=>({motionName:`${e}-motion-collapse`,onAppearStart:gb,onEnterStart:gb,onAppearActive:ZR,onEnterActive:ZR,onLeaveStart:wk,onLeaveActive:gb,onAppearEnd:yb,onEnterEnd:yb,onLeaveEnd:yb,motionDeadline:500}),Ls=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ek=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:s,antCls:i}=e,[,c]=Bt(i,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:c("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(f=>`${f} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(f=>`${f} ${r} ${o}`).join(",")}}}}},Rk=AB("Wave",Ek),kd=`${ud}-wave-target`,eI=e=>e?us(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function Ik(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:s}=n;return t&&eI(n[t])?n[t]:[r,o,s].find(eI)??null}function bb(e){return Number.isNaN(e)?0:e}const Pk=e=>{const{className:t,target:n,component:r,colorSource:o}=e,s=a.useRef(null),{getPrefixCls:i}=a.useContext(Ot),c=i(),[f]=Bt(c,"wave"),[d,p]=a.useState(null),[m,h]=a.useState([]),[y,b]=a.useState(0),[v,$]=a.useState(0),[x,E]=a.useState(0),[C,w]=a.useState(0),[R,P]=a.useState(!1),I={left:y,top:v,width:x,height:C,borderRadius:m.map(z=>`${z}px`).join(" ")};d&&(I[f("color")]=d);function T(){const z=getComputedStyle(n);p(Ik(n,o));const M=z.position==="static",{borderLeftWidth:O,borderTopWidth:_}=z;b(M?n.offsetLeft:bb(-Number.parseFloat(O))),$(M?n.offsetTop:bb(-Number.parseFloat(_))),E(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:F,borderTopRightRadius:W,borderBottomLeftRadius:q,borderBottomRightRadius:G}=z;h([F,W,G,q].map(j=>bb(Number.parseFloat(j))))}if(a.useEffect(()=>{if(n){const z=Wt(()=>{T(),P(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(T),M.observe(n)),()=>{Wt.cancel(z),M?.disconnect()}}},[n]),!R)return null;const L=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(kd);return a.createElement(Ar,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,M)=>{if(M.deadline||oM(M)&&M.propertyName==="opacity"){const O=s.current?.parentElement;l2(O).then(()=>{O?.remove()})}return!1}},({className:z},M)=>a.createElement("div",{ref:ur(s,M),className:U(t,z,{"wave-quick":L}),style:I}))},Nk=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),a2(a.createElement(Pk,{...t,target:e}),r)},Tk=(e,t,n,r)=>{const{wave:o}=a.useContext(Ot),[,s,i]=Dr(),c=Ct(p=>{const m=e.current;if(o?.disabled||!m)return;const h=m.querySelector(`.${kd}`)||m,{showEffect:y}=o||{};(y||Nk)(h,{className:t,token:s,component:n,event:p,hashId:i,colorSource:r})}),f=a.useRef(null);return a.useEffect(()=>()=>{Wt.cancel(f.current)},[]),p=>{Wt.cancel(f.current),f.current=Wt(()=>{c(p)})}},tI={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Hd=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:s,wave:i}=a.useContext(Ot),c=a.useRef(null),f=s("wave"),d=Rk(f),p=Tk(c,U(f,d),r,o);if(ee.useEffect(()=>{const h=c.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const y=$=>{!Od($.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")&&!h.className.includes("disabled:")||h.getAttribute("aria-disabled")==="true"||h.className.includes("-leave")||p($)},b=i?.triggerType,v=b&&b in tI?tI[b]:"click";return h.addEventListener(v,y,!0),()=>{h.removeEventListener(v,y,!0)}},[n,i?.triggerType]),!ee.isValidElement(t))return t??null;const m=ri(t)?ur(Fs(t),c):c;return hr(t,{ref:m})},or=e=>{const t=ee.useContext(Ya);return ee.useMemo(()=>e?us(e)?e:Tt(e)?e(t):t:t,[e,t])},Mk=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Ok=Zt(["Space","Compact"],Mk,()=>({}),{resetStyle:!1}),Ch=a.createContext(null),aa=(e,t)=>{const n=a.useContext(Ch),r=a.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:i}=n,c=o==="vertical"?"-vertical-":"-";return U(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:s,[`${e}-compact${c}last-item`]:i,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},zk=e=>{const{children:t}=e;return a.createElement(Ch.Provider,{value:null},t)},Ak=e=>{const{children:t,...n}=e;return a.createElement(Ch.Provider,{value:a.useMemo(()=>n,[n])},t)},zS=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(Ot),{size:o,direction:s,orientation:i,block:c,prefixCls:f,className:d,rootClassName:p,children:m,vertical:h,...y}=e,[b,v]=_d(i,h,s),$=or(T=>o??T),x=n("space-compact",f),[E]=Ok(x),C=U(x,E,{[`${x}-rtl`]:r==="rtl",[`${x}-block`]:c,[`${x}-vertical`]:v},d,p),w=a.useContext(Ch),R=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:R.current}));const P=cr(m),I=a.useMemo(()=>P.map((T,L)=>{const z=T?.key||`${x}-item-${L}`;return a.createElement(Ak,{key:z,compactSize:$,compactDirection:b,isFirstItem:L===0&&(!w||w?.isFirstItem),isLastItem:L===P.length-1&&(!w||w?.isLastItem)},T)}),[P,w,b,$,x]);return P.length===0?null:a.createElement("div",{ref:R,className:C,...y},I)}),rO=a.createContext(void 0),Lk=e=>{const{getPrefixCls:t,direction:n}=a.useContext(Ot),{prefixCls:r,size:o,className:s,...i}=e,c=t("btn-group",r),[,,f]=Dr(),d=a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),p=U(c,{[`${c}-${d}`]:d,[`${c}-rtl`]:n==="rtl"},s,f);return a.createElement(rO.Provider,{value:o},a.createElement("div",{...i,className:p}))},nI=/^[\u4E00-\u9FA5]{2}$/,_0=nI.test.bind(nI);function AS(e){return e==="danger"?{danger:!0}:{type:e}}function vb(e){return e==="text"||e==="link"}function Dk(e,t,n,r){if(!tt(e))return;const o=t?" ":"";return!us(e)&&!Un(e)&&us(e.type)&&_0(e.props.children)?hr(e,s=>{const i=U(s.className,r)||void 0,c={...n,...s.style};return{...s,children:s.children.split("").join(o),className:i,style:c}}):us(e)?ee.createElement("span",{className:r,style:n},_0(e)?e.split("").join(o):e):CM(e)?ee.createElement("span",{className:r,style:n},e):hr(e,s=>({...s,className:U(s.className,r)||void 0,style:{...s.style,...n}}))}function Bk(e,t,n,r){let o=!1;const s=[];return ee.Children.forEach(e,i=>{const c=us(i)||Un(i);if(o&&c){const f=s.length-1,d=s[f];s[f]=`${d}${i}`}else s.push(i);o=c}),ee.Children.map(s,i=>Dk(i,t,n,r))}const _k=["outlined","dashed","solid","filled","text","link"];["default","primary","danger"].concat(jt(zs));const oO=a.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,i=U(`${s}-icon`,n);return ee.createElement("span",{ref:t,className:i,style:r},o)}),rI=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,i=U(`${n}-loading-icon`,r);return ee.createElement(oO,{prefixCls:n,className:i,style:o,ref:t},ee.createElement(oi,{className:s}))}),xb=()=>({width:0,opacity:0,transform:"scale(0)"}),Cb=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Fk=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:i}=e,c=!!n;return r?ee.createElement(rI,{prefixCls:t,className:o,style:s}):ee.createElement(Ar,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:xb,onAppearActive:Cb,onEnterStart:xb,onEnterActive:Cb,onLeaveStart:Cb,onLeaveActive:xb},({className:f,style:d},p)=>{const m={...s,...d};return ee.createElement(rI,{prefixCls:t,className:U(o,f),style:m,ref:p})})},LS=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return{[t]:{[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(s=>`${s} ${r} ${o}`).join(", ")} !important`}}}},oI=e=>({animationDuration:e,animationFillMode:"both"}),Sh=(e,t,n,r,o=!1)=>{const s=o?"&":"";return{[`
|
|
173
|
+
${s}${e}-enter,
|
|
174
|
+
${s}${e}-appear
|
|
175
|
+
`]:{...oI(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...oI(r),animationPlayState:"paused"},[`
|
|
176
|
+
${s}${e}-enter${e}-enter-active,
|
|
177
|
+
${s}${e}-appear${e}-appear-active
|
|
178
|
+
`]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},kk=new fn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Hk=new fn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),sO=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Sh(r,kk,Hk,e.motionDurationMid,t),{[`
|
|
179
|
+
${o}${r}-enter,
|
|
180
|
+
${o}${r}-appear
|
|
181
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},jk=new fn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wk=new fn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Vk=new fn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kk=new fn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Uk=new fn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qk=new fn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Gk=new fn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xk=new fn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Yk={"move-up":{inKeyframes:Gk,outKeyframes:Xk},"move-down":{inKeyframes:jk,outKeyframes:Wk},"move-left":{inKeyframes:Vk,outKeyframes:Kk},"move-right":{inKeyframes:Uk,outKeyframes:qk}},Nm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Yk[t];return[Sh(r,o,s,e.motionDurationMid),{[`
|
|
182
|
+
${r}-enter,
|
|
183
|
+
${r}-appear
|
|
184
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$h=new fn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),wh=new fn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Eh=new fn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Rh=new fn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),iO=new fn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),aO=new fn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),lO=new fn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),cO=new fn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Qk={"slide-up":{inKeyframes:$h,outKeyframes:wh},"slide-down":{inKeyframes:Eh,outKeyframes:Rh},"slide-left":{inKeyframes:iO,outKeyframes:aO},"slide-right":{inKeyframes:lO,outKeyframes:cO}},Os=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Qk[t];return[Sh(r,o,s,e.motionDurationMid),{[`
|
|
185
|
+
${r}-enter,
|
|
186
|
+
${r}-appear
|
|
187
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},uO=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),sI=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),DS=new fn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jk=new fn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),iI=new fn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aI=new fn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Zk=new fn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),eH=new fn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),tH=new fn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),nH=new fn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),rH=new fn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oH=new fn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sH=new fn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),iH=new fn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),aH={zoom:{inKeyframes:DS,outKeyframes:Jk},"zoom-big":{inKeyframes:iI,outKeyframes:aI},"zoom-big-fast":{inKeyframes:iI,outKeyframes:aI},"zoom-left":{inKeyframes:tH,outKeyframes:nH},"zoom-right":{inKeyframes:rH,outKeyframes:oH},"zoom-up":{inKeyframes:Zk,outKeyframes:eH},"zoom-down":{inKeyframes:sH,outKeyframes:iH}},jd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=aH[t];return[Sh(r,o,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
188
|
+
${r}-enter,
|
|
189
|
+
${r}-appear
|
|
190
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lI=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lH=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:s}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},lI(`${t}-primary`,o),lI(`${t}-danger`,s)]}},Sb=e=>Math.round(Number(e||0)),cH=e=>{if(e instanceof Cn)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class yd extends Cn{constructor(t){super(cH(t))}toHsbString(){const t=this.toHsb(),n=Sb(t.s*100),r=Sb(t.b*100),o=Sb(t.h),s=t.a,i=`hsb(${o}, ${n}%, ${r}%)`,c=`hsba(${o}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?i:c}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const uH=e=>e instanceof yd?e:new yd(e);uH("#1677ff");const dH=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",fH=(e,t)=>e?dH(e,t):"";let Tm=(function(){function e(t){if(sl(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:r,percent:o})=>({color:new e(r),percent:o})),this.metaColor=new yd(this.colors[0].color.metaColor)):this.metaColor=new yd(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return il(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return fH(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(o=>`${o.color.toRgbString()} ${o.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,o)=>{const s=n.colors[o];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var pH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F0.apply(this,arguments)}const mH=(e,t)=>a.createElement(_t,F0({},e,{ref:t,icon:pH})),bd=a.forwardRef(mH),hH=e=>e instanceof Tm?e:new Tm(e),dO=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),i=new yd(e.toRgbString()).onBackground(t).toHsv();return s<=.5?i.v>.5:n*.299+r*.587+o*.114>192},fO=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Jt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},pO=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??nm(t),s=e.contentLineHeightSM??nm(n),i=e.contentLineHeightLG??nm(r),c=dO(new Tm(e.colorBgSolid),"#fff")?"#000":"#fff",f=zs.reduce((m,h)=>({...m,[`${h}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Fu(e[`${h}1`],e.colorBgContainer)}`}),{}),d=e.colorBgContainerDisabled,p=e.colorBgContainerDisabled;return{...f,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:c,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:s,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*i)/2-e.lineWidth,0),defaultBgDisabled:d,dashedBgDisabled:p}},gH=e=>{const{componentCls:t,antCls:n,lineWidth:r,lineType:o}=e,[s,i]=Bt(n,"btn");return{[t]:[{[s("border-width")]:r,[s("border-color")]:"#000",[s("border-color-hover")]:i("border-color"),[s("border-color-active")]:i("border-color"),[s("border-color-disabled")]:i("border-color"),[s("border-style")]:o,[s("text-color")]:"#000",[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color"),[s("text-color-disabled")]:i("text-color"),[s("bg-color")]:"#ddd",[s("bg-color-hover")]:i("bg-color"),[s("bg-color-active")]:i("bg-color"),[s("bg-color-disabled")]:e.colorBgContainerDisabled,[s("bg-color-container")]:e.colorBgContainer,[s("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[s("solid-bg-color")]:i("color-base"),[s("solid-bg-color-hover")]:i("color-hover"),[s("solid-bg-color-active")]:i("color-active"),[s("border-color")]:"transparent",[s("text-color")]:e.colorTextLightSolid,[s("bg-color")]:i("solid-bg-color"),[s("bg-color-hover")]:i("solid-bg-color-hover"),[s("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("border-color")]:i("color-base"),[s("border-color-hover")]:i("color-hover"),[s("border-color-active")]:i("color-active"),[s("bg-color")]:i("bg-color-container"),[s("text-color")]:i("color-base"),[s("text-color-hover")]:i("color-hover"),[s("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[s("border-style")]:"dashed",[s("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[s("border-color")]:"transparent",[s("text-color")]:i("color-base"),[s("bg-color")]:i("color-light"),[s("bg-color-hover")]:i("color-light-hover"),[s("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[s("border-color")]:"transparent",[s("text-color")]:i("color-base"),[s("text-color-hover")]:i("color-hover"),[s("text-color-active")]:i("color-active"),[s("bg-color")]:"transparent",[s("bg-color-hover")]:"transparent",[s("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[s("bg-color-hover")]:i("color-light"),[s("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[s("color-base")]:e.colorLink,[s("color-hover")]:e.colorLinkHover,[s("color-active")]:e.colorLinkActive,[s("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[s("color-base")]:e.colorPrimary,[s("color-hover")]:e.colorPrimaryHover,[s("color-active")]:e.colorPrimaryActive,[s("color-light")]:e.colorPrimaryBg,[s("color-light-hover")]:e.colorPrimaryBgHover,[s("color-light-active")]:e.colorPrimaryBorder,[s("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[s("text-color")]:e.primaryColor,[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")}},[`&${t}-color-dangerous`]:{[s("color-base")]:e.colorError,[s("color-hover")]:e.colorErrorHover,[s("color-active")]:e.colorErrorActive,[s("color-light")]:e.colorErrorBg,[s("color-light-hover")]:e.colorErrorBgFilledHover,[s("color-light-active")]:e.colorErrorBgActive,[s("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[s("text-color")]:e.dangerColor,[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")}},[`&${t}-color-default`]:{[s("solid-bg-color")]:e.colorBgSolid,[s("solid-bg-color-hover")]:e.colorBgSolidHover,[s("solid-bg-color-active")]:e.colorBgSolidActive,[s("color-base")]:e.defaultBorderColor,[s("color-hover")]:e.defaultHoverBorderColor,[s("color-active")]:e.defaultActiveBorderColor,[s("color-light")]:e.colorFillTertiary,[s("color-light-hover")]:e.colorFillSecondary,[s("color-light-active")]:e.colorFill,[s("text-color")]:e.defaultColor,[s("text-color-hover")]:e.defaultHoverColor,[s("text-color-active")]:e.defaultActiveColor,[s("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[s("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[s("text-color")]:e.solidTextColor,[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("text-color")]:e.defaultColor,[s("text-color-hover")]:e.defaultHoverColor,[s("text-color-active")]:e.defaultActiveColor,[s("bg-color-container")]:e.defaultBg,[s("bg-color-hover")]:e.defaultHoverBg,[s("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[s("text-color")]:e.textTextColor,[s("text-color-hover")]:e.textTextHoverColor,[s("text-color-active")]:e.textTextActiveColor,[s("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("text-color")]:e.defaultGhostColor,[s("border-color")]:e.defaultGhostBorderColor}}}},zs.map(c=>{const f=e[`${c}6`],d=e[`${c}1`],p=e[`${c}Hover`],m=e[`${c}2`],h=e[`${c}3`],y=e[`${c}Active`],b=e[`${c}ShadowColor`];return{[`&${t}-color-${c}`]:{[s("color-base")]:f,[s("color-hover")]:p,[s("color-active")]:y,[s("color-light")]:d,[s("color-light-hover")]:m,[s("color-light-active")]:h,[s("shadow")]:b}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[s("bg-color")]:e.ghostBg,[s("bg-color-hover")]:e.ghostBg,[s("bg-color-active")]:e.ghostBg,[s("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("bg-color-hover")]:e.ghostBg,[s("bg-color-active")]:e.ghostBg}}}]}},yH=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:i,iconGap:c,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:c,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...uO(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ad(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",[n]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":to(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${s} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:f(c).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:f(c).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(c).mul(-1).equal()}}}}}},bH=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),BS=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:s,buttonPaddingHorizontal:i,iconCls:c,buttonPaddingVertical:f,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:o,height:r,padding:`${te(f)} ${te(i)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:bH(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},vH=e=>{const t=Jt(e,{fontSize:e.contentFontSize});return BS(t,e.componentCls)},xH=e=>{const t=Jt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return BS(t,`${e.componentCls}-sm`)},CH=e=>{const t=Jt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return BS(t,`${e.componentCls}-lg`)},SH=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},$H=Zt("Button",e=>{const t=fO(e);return[yH(t),vH(t),xH(t),CH(t),SH(t),gH(t),lH(t)]},pO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function wH(e,t,n,r){const{focusElCls:o,focus:s,borderElCls:i}=n,c=i?"> *":"",f=c?` ${c}`:"",d=h=>h.filter(Boolean).map(y=>`&:${y}${f}`).join(","),p=d(["hover",o?`hover${o}`:null]),m=d([s?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[m]:{zIndex:3},[p]:{zIndex:4},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${c}`]:{zIndex:0}}}}function EH(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Wd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,s=`${o}-compact`;return{[s]:{...wH(e,s,t,o),...EH(o,s,t)}}}function RH(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":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function IH(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 PH(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...RH(e,t,e.componentCls),...IH(e.componentCls,t)}}}const NH=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:s}=e,i=`${n}-variant-solid:not([disabled])`,c=o(r).mul(-1).equal(),[f,d]=Bt(t,"btn"),p=m=>({[`${n}-compact${m?"-vertical":""}-item`]:{[f("compact-connect-border-color")]:d("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:d("compact-connect-border-color"),content:'""'},m?{top:c,insetInline:c,height:r}:{insetBlock:c,insetInlineStart:c,width:r}],"&:hover:before":{display:"none"}}}});return[p(),p(!0),{[`${i}${n}-color-default`]:{[f("compact-connect-border-color")]:`color-mix(in srgb, ${d("bg-color-hover")} 75%, ${s})`}}]},TH=al(["Button","compact"],e=>{const t=fO(e);return[Wd(t),PH(t),NH(t)]},pO);function MH(e){if(Rt(e)){let t=e?.delay;return t=Un(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const OH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},zH=ee.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:o,color:s,variant:i,type:c,danger:f=!1,shape:d,size:p,disabled:m,className:h,rootClassName:y,children:b,icon:v,iconPosition:$,iconPlacement:x,ghost:E=!1,block:C=!1,htmlType:w="button",classNames:R,styles:P,style:I,autoInsertSpace:T,autoFocus:L,...z}=e,M=cr(b),O=c||"default",{getPrefixCls:_,direction:F,autoInsertSpace:W,className:q,style:G,classNames:j,styles:H,loadingIcon:k,shape:B,color:D}=Xt("button"),K=d||B||"default",[Q,,Z]=no("button",i,{variants:_k,defaultVariant:"outlined"}),[X,J]=a.useMemo(()=>{if(s&&i)return[s,i];if(c||f){const Ze=OH[O]||[];return f?["danger",Ze[1]]:Ze}return i==="solid"?["primary",i]:D&&Z?[D,Q]:Q==="solid"?["primary",Q]:["default",Q]},[s,i,c,f,D,Q,Z,O]),[ne,oe]=a.useMemo(()=>E&&J==="solid"?[X,"outlined"]:[X,J],[X,J,E]),ae=ne==="danger",pe=ae?"dangerous":ne,fe=T??W??!0,le=_("btn",o),[ie,re]=$H(le),de=a.useContext(Er),ge=m??de,se=a.useContext(rO),ce=a.useMemo(()=>MH(r),[r]),[xe,Ee]=uh(ce.loading),[Se,Fe]=a.useState(!1),qe=a.useRef(null),Ne=Yo(t,qe),_e=M.length===1&&!v&&!vb(oe),Ie=a.useRef(!0);ee.useEffect(()=>(Ie.current=!1,()=>{Ie.current=!0}),[]),Qt(()=>{ce.delay>0?Ee(!0,{ms:ce.delay}):Ee(ce.loading,!0)},[ce.delay,ce.loading]),a.useEffect(()=>{if(!qe.current||!fe)return;const Ze=qe.current.textContent||"";_e&&_0(Ze)?Se||Fe(!0):Se&&Fe(!1)}),a.useEffect(()=>{L&&qe.current?.focus()},[]);const me=ee.useCallback(Ze=>{if(xe||ge){Ze.preventDefault();return}e.onClick?.(("href"in e,Ze))},[e.onClick,xe,ge]),{compactSize:Le,compactItemClassnames:He}=aa(le,F),Ae=or(Ze=>p??Le??se??Ze),Oe=xe?"loading":v,st=x??$??"start",je=dn(z,["navigate"]),Je={...e,type:O,color:ne,variant:oe,danger:ae,shape:K,size:Ae,disabled:ge,loading:xe,iconPlacement:st},ze=ut(G),Ve=ut(I),[Ke,ot]=qt([n?void 0:j,R],[n?void 0:H,ze,P,Ve],{props:Je}),Ge=U(le,ie,re,{[`${le}-${K}`]:K!=="default"&&K!=="square"&&K,[`${le}-${O}`]:O,[`${le}-dangerous`]:f,[`${le}-color-${pe}`]:pe,[`${le}-variant-${oe}`]:oe,[`${le}-lg`]:Ae==="large",[`${le}-sm`]:Ae==="small",[`${le}-icon-only`]:!b&&b!==0&&!!Oe,[`${le}-background-ghost`]:E&&!vb(oe),[`${le}-loading`]:xe,[`${le}-two-chinese-chars`]:Se&&fe&&!xe,[`${le}-block`]:C,[`${le}-rtl`]:F==="rtl",[`${le}-icon-end`]:st==="end"},He,h,y,q,Ke.root),dt={className:Ke.icon,style:ot.icon},xt=Ze=>ee.createElement(oO,{prefixCls:le,...dt},Ze),St=ee.createElement(Fk,{existIcon:!!v,prefixCls:le,loading:xe,mount:Ie.current,...dt}),Lt=Rt(r)&&r.icon||k;let gt;v&&!xe?gt=xt(v):xe&&Lt?gt=xt(Lt):gt=St;const mt=tt(b)?Bk(b,_e&&fe,ot.content,Ke.content):null;if(je.href!==void 0)return ee.createElement("a",{...je,className:U(Ge,{[`${le}-disabled`]:ge}),href:ge?void 0:je.href,style:ot.root,onClick:me,ref:Ne,tabIndex:ge?-1:je.tabIndex??0,"aria-disabled":ge},gt,mt);let De=ee.createElement("button",{...z,type:w,className:Ge,style:ot.root,onClick:me,disabled:ge,ref:Ne},gt,mt,He&&ee.createElement(TH,{prefixCls:le}));return vb(oe)||(De=ee.createElement(Hd,{component:"Button",disabled:xe},De)),De}),sn=zH;sn.Group=Lk;sn.__ANT_BUTTON=!0;const _S=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:s,autoFocus:i,emitEvent:c,isSilent:f,quitOnNullishReturnValue:d,actionFn:p}=e,{onClick:m,...h}=o||{},y=a.useRef(!1),b=a.useRef(null),[v,$]=UT(!1),x=(...w)=>{s?.(...w)};a.useEffect(()=>{let w=null;return i&&(w=setTimeout(()=>{b.current?.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[i]);const E=w=>{ub(w)&&($(!0),w.then((...R)=>{$(!1,!0),x.apply(void 0,R),y.current=!1},R=>{if($(!1,!0),y.current=!1,!f?.())return Promise.reject(R)}))},C=w=>{if(y.current)return;if(y.current=!0,!p){x(),m?.(w);return}let R;if(c){if(R=p(w),d&&!ub(R)){y.current=!1,x(w),m?.(w);return}}else if(p.length)R=p(s),y.current=!1;else if(R=p(),!ub(R)){x(),m?.(w);return}m?.(w),E(R)};return a.createElement(sn,{...AS(t),onClick:C,loading:v,prefixCls:r,...h,ref:b},n)},Vd=ee.createContext({}),{Provider:mO}=Vd,cI=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:s,close:i,onCancel:c,onConfirm:f,onClose:d}=a.useContext(Vd);return o?ee.createElement(_S,{isSilent:r,actionFn:c,close:(...p)=>{i?.(...p),f?.(!1),d?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},uI=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:s,okType:i,onConfirm:c,onOk:f,onClose:d}=a.useContext(Vd);return ee.createElement(_S,{isSilent:n,type:i||"primary",actionFn:f,close:(...p)=>{t?.(...p),c?.(!0),d?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},s)},hO=a.createContext({});function dI(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function fI(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function AH(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=fI(o),n.top+=fI(o,!0),n}const LH=a.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mm.apply(this,arguments)}const gO=ee.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,title:s,ariaId:i,footer:c,closable:f,closeIcon:d,onClose:p,children:m,bodyStyle:h,bodyProps:y,modalRender:b,onMouseDown:v,onMouseUp:$,holderRef:x,visible:E,forceRender:C,width:w,height:R,classNames:P,styles:I,isFixedPos:T,focusTrap:L}=e,{panel:z}=ee.useContext(hO),M=a.useRef(null),O=Yo(x,z,M),[_]=n2(E&&T&&L!==!1,()=>M.current);ee.useImperativeHandle(t,()=>({focus:()=>{M.current?.focus({preventScroll:!0})}}));const F={};w!==void 0&&(F.width=w),R!==void 0&&(F.height=R);const W=c?ee.createElement("div",{className:U(`${n}-footer`,P?.footer),style:{...I?.footer}},c):null,q=s?ee.createElement("div",{className:U(`${n}-header`,P?.header),style:{...I?.header}},ee.createElement("div",{className:U(`${n}-title`,P?.title),id:i,style:{...I?.title}},s)):null,G=a.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:d??ee.createElement("span",{className:`${n}-close-x`})}:{},[f,d,n]),j=Hn(G,!0),H=typeof f=="object"&&f.disabled,k=f?ee.createElement("button",Mm({type:"button",onClick:p,"aria-label":"Close"},j,{className:U(`${n}-close`,P?.close),disabled:H,style:I?.close}),G.closeIcon):null,B=ee.createElement("div",{className:U(`${n}-container`,P?.container),style:I?.container},k,q,ee.createElement("div",Mm({className:U(`${n}-body`,P?.body),style:{...h,...I?.body}},y),m),W);return ee.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?i:null,"aria-modal":"true",ref:O,style:{...o,...F},className:U(n,r),onMouseDown:v,onMouseUp:$,tabIndex:-1,onFocus:D=>{_(D.target)}},ee.createElement(LH,{shouldUpdate:E||C},b?b(B):B))});function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k0.apply(this,arguments)}const DH=a.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:o,className:s,visible:i,forceRender:c,destroyOnHidden:f,motionName:d,ariaId:p,onVisibleChanged:m,mousePosition:h}=e,y=a.useRef(null),b=a.useRef(null);a.useImperativeHandle(t,()=>({...b.current,inMotion:y.current.inMotion,enableMotion:y.current.enableMotion}));const[v,$]=a.useState(),x={};v&&(x.transformOrigin=v);function E(){if(!y.current?.nativeElement)return;const C=AH(y.current.nativeElement);$(h&&(h.x||h.y)?`${h.x-C.left}px ${h.y-C.top}px`:"")}return a.createElement(Ar,{visible:i,onVisibleChanged:m,onAppearPrepare:E,onEnterPrepare:E,forceRender:c,motionName:d,removeOnLeave:f,ref:y},({className:C,style:w},R)=>a.createElement(gO,k0({},e,{ref:b,title:r,ariaId:p,prefixCls:n,holderRef:R,style:{...w,...o,...x},className:U(s,C)})))});function H0(){return H0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H0.apply(this,arguments)}const BH=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:s,className:i}=e;return a.createElement(Ar,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:c,style:f},d)=>a.createElement("div",H0({ref:d,style:{...f,...n},className:U(`${t}-mask`,c,i)},o)))};function Yu(){return Yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yu.apply(this,arguments)}const _H=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:o=!0,wrapStyle:s,wrapClassName:i,wrapProps:c,onClose:f,afterOpenChange:d,afterClose:p,transitionName:m,animation:h,closable:y=!0,mask:b=!0,maskTransitionName:v,maskAnimation:$,maskClosable:x=!0,maskStyle:E,maskProps:C,rootClassName:w,rootStyle:R,classNames:P,styles:I}=e,T=a.useRef(null),L=a.useRef(null),z=a.useRef(null),[M,O]=a.useState(r),[_,F]=a.useState(!1),W=Xo();function q(){Ov(L.current,document.activeElement)||(T.current=document.activeElement)}function G(){Ov(L.current,document.activeElement)||z.current?.focus()}function j(){if(O(!1),b&&T.current&&o){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}M&&p?.()}function H(Z){Z?G():j(),d?.(Z)}function k(Z){f?.(Z)}const B=a.useRef(!1);let D=null;x&&(D=Z=>{L.current===Z.target&&B.current&&k(Z)});function K(Z){B.current=Z.target===L.current}a.useEffect(()=>{if(r){if(B.current=!1,O(!0),q(),L.current){const Z=getComputedStyle(L.current);F(Z.position==="fixed")}}else M&&z.current.enableMotion()&&!z.current.inMotion()&&j()},[r]);const Q={zIndex:n,...s,...I?.wrapper,display:M?null:"none"};return a.createElement("div",Yu({className:U(`${t}-root`,w),style:R},Hn(e,{data:!0})),a.createElement(BH,{prefixCls:t,visible:b&&r,motionName:dI(t,v,$),style:{zIndex:n,...E,...I?.mask},maskProps:C,className:P?.mask}),a.createElement("div",Yu({className:U(`${t}-wrap`,i,P?.wrapper),ref:L,onClick:D,onMouseDown:K,style:Q},c),a.createElement(DH,Yu({},e,{isFixedPos:_,ref:z,closable:y,ariaId:W,prefixCls:t,visible:r&&M,onClose:k,onVisibleChanged:H,motionName:dI(t,m,h)}))))};function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(this,arguments)}const FH=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:o=!1,afterClose:s,closable:i,panelRef:c,keyboard:f=!0,scrollLock:d=!0,onClose:p}=e,{scrollLock:m,...h}=e,[y,b]=a.useState(t),v=a.useMemo(()=>({panel:c}),[c]),$=({top:x,event:E})=>{if(x&&f){E.stopPropagation(),p?.(E);return}};return a.useEffect(()=>{t&&b(!0)},[t]),!r&&o&&!y?null:a.createElement(hO.Provider,{value:v},a.createElement(Dd,{open:t||r||y,onEsc:$,autoDestroy:!1,getContainer:n,autoLock:d&&(t||y)},a.createElement(_H,j0({},h,{destroyOnHidden:o,afterClose:()=>{const x=i&&typeof i=="object"?i:{},{afterClose:E}=x||{};E?.(),s?.(),b(!1)}}))))},ta=e=>{const{space:t,form:n,children:r}=e;if(!tt(r))return null;let o=r;return n&&(o=ee.createElement(DM,{override:!0,status:!0},o)),t&&(o=ee.createElement(zk,null,o)),o},kH=()=>Zr()&&window.document.documentElement;function yO(e,t,n){return a.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const Ih=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:s}=e,i=U({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),c=U({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),f=a.useMemo(()=>Un(o)?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return a.createElement("span",{className:U(t,i,c,n),style:{...f,...r}})},HH=new fn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),FS=e=>({height:e,lineHeight:te(e)}),Yi=e=>({width:e,...FS(e)}),jH=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:HH,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),$b=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...FS(e)}),WH=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...Yi(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Yi(o)},[`${t}${t}-sm`]:{...Yi(s)}}},VH=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:i,calc:c}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:n,...$b(t,c)},[`${r}-lg`]:{...$b(o,c)},[`${r}-sm`]:{...$b(s,c)}}},bO=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...Yi(o(r).mul(2).equal())}},KH=e=>({[e.skeletonNodeCls]:{...bO(e)}}),UH=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...bO(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Yi(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},wb=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Eb=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...FS(e)}),qH=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:i,calc:c}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal(),...Eb(r,c)},...wb(e,r,n),[`${n}-lg`]:{...Eb(o,c)},...wb(e,o,`${n}-lg`),[`${n}-sm`]:{...Eb(s,c)},...wb(e,s,`${n}-sm`)}},GH=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:s,skeletonInputCls:i,skeletonNodeCls:c,skeletonImageCls:f,controlHeight:d,controlHeightLG:p,controlHeightSM:m,gradientFromColor:h,padding:y,marginSM:b,borderRadius:v,titleHeight:$,blockRadius:x,paragraphLiHeight:E,controlHeightXS:C,paragraphMarginTop:w}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:y,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:h,...Yi(d)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...Yi(p)},[`${n}-sm`]:{...Yi(m)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:$,background:h,borderRadius:x,[`+ ${o}`]:{marginBlockStart:m}},[o]:{padding:0,"> li":{width:"100%",height:E,listStyle:"none",background:h,borderRadius:x,"+ li":{marginBlockStart:C}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:b,[`+ ${o}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...qH(e),...WH(e),...VH(e),...KH(e),...UH(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
191
|
+
${r},
|
|
192
|
+
${o} > li,
|
|
193
|
+
${n},
|
|
194
|
+
${s},
|
|
195
|
+
${i},
|
|
196
|
+
${c},
|
|
197
|
+
${f}
|
|
198
|
+
`]:{...jH(e)}}}},XH=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Kd=Zt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Jt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return GH(r)},XH,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),YH=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,style:i,styles:c,shape:f="circle",size:d,...p}=e,{getPrefixCls:m}=a.useContext(Ot),h=m("skeleton",t),[y,b]=Kd(h),v=or(x=>d??x),$=U(h,`${h}-element`,{[`${h}-active`]:s},r?.root,n,o,y,b);return a.createElement("div",{className:$,style:c?.root},a.createElement(Ih,{prefixCls:`${h}-avatar`,className:r?.content,style:{...c?.content,...i},shape:f,size:v,...p}))},QH=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,active:s,style:i,styles:c,block:f=!1,size:d,...p}=e,{getPrefixCls:m}=a.useContext(Ot),h=m("skeleton",t),[y,b]=Kd(h),v=or(x=>d??x),$=U(h,`${h}-element`,{[`${h}-active`]:s,[`${h}-block`]:f},o?.root,n,r,y,b);return a.createElement("div",{className:$,style:c?.root},a.createElement(Ih,{prefixCls:`${h}-button`,className:o?.content,style:{...c?.content,...i},size:v,...p}))},vO=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:s,style:i,styles:c,active:f,children:d}=e,{getPrefixCls:p}=a.useContext(Ot),m=p("skeleton",t),[h,y]=Kd(m),b=U(m,`${m}-element`,{[`${m}-active`]:f},h,r?.root,n,o,y);return a.createElement("div",{className:b,style:c?.root},a.createElement("div",{className:U(r?.content,s||`${m}-node`),style:{...c?.content,...i}},d))},JH=e=>{const{getPrefixCls:t}=a.useContext(Ot),n=t("skeleton",e.prefixCls);return a.createElement(vO,{...e,internalClassName:`${n}-image`},a.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`,"aria-hidden":"true",focusable:"false"},a.createElement("title",null,"Image placeholder"),a.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},ZH=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,block:i,style:c,styles:f,size:d,...p}=e,{getPrefixCls:m}=a.useContext(Ot),h=m("skeleton",t),[y,b]=Kd(h),v=or(x=>d??x),$=U(h,`${h}-element`,{[`${h}-active`]:s,[`${h}-block`]:i},r?.root,n,o,y,b);return a.createElement("div",{className:$,style:f?.root},a.createElement(Ih,{prefixCls:`${h}-input`,className:r?.content,style:{...f?.content,...c},size:v,...p}))},ej=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},tj=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,s=Array.from({length:o}).map((i,c)=>a.createElement("li",{key:c,style:{width:ej(c,e)}}));return a.createElement("ul",{className:U(t,n),style:r},s)},nj=({prefixCls:e,className:t,width:n,style:r})=>a.createElement("h3",{className:U(e,t),style:{width:n,...r}});function Rb(e){return Rt(e)?e:{}}function rj(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function oj(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function sj(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ro=ee.forwardRef((e,t)=>{const{prefixCls:n,loading:r,className:o,rootClassName:s,classNames:i,style:c,styles:f,children:d,avatar:p=!1,title:m=!0,paragraph:h=!0,active:y,round:b}=e,{getPrefixCls:v,direction:$,className:x,style:E,classNames:C,styles:w}=Xt("skeleton"),R=v("skeleton",n),[P,I]=Kd(R),T={...e,avatar:p,title:m,paragraph:h},L=ut(E),z=ut(c),[M,O]=qt([C,i],[w,L,f,z],{props:T}),_=ee.useRef(null);if(ee.useImperativeHandle(t,()=>({nativeElement:_.current})),r||!("loading"in e)){const F=!!p,W=!!m,q=!!h;let G;if(F){const k={className:M.avatar,prefixCls:`${R}-avatar`,...rj(W,q),...Rb(p),style:O.avatar};G=ee.createElement("div",{className:U(M.header,`${R}-header`),style:O.header},ee.createElement(Ih,{...k}))}let j;if(W||q){let k;if(W){const D={className:M.title,prefixCls:`${R}-title`,...oj(F,q),...Rb(m),style:O.title};k=ee.createElement(nj,{...D})}let B;if(q){const D={className:M.paragraph,prefixCls:`${R}-paragraph`,...sj(F,W),...Rb(h),style:O.paragraph};B=ee.createElement(tj,{...D})}j=ee.createElement("div",{className:U(M.section,`${R}-section`),style:O.section},k,B)}const H=U(R,{[`${R}-with-avatar`]:F,[`${R}-active`]:y,[`${R}-rtl`]:$==="rtl",[`${R}-round`]:b},M.root,x,o,s,P,I);return ee.createElement("div",{ref:_,className:H,style:O.root},G,j)}return d??null});ro.Button=QH;ro.Avatar=YH;ro.Input=ZH;ro.Image=JH;ro.Node=vO;function pI(){}const ij=a.createContext({add:pI,remove:pI});function xO(e){const t=a.useContext(ij),n=a.useRef(null);return Ct(o=>{if(o){const s=e?o.querySelector(e):o;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const mI=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=a.useContext(Vd),r=o=>{n?.(o),e?.onClick?.(o)};return ee.createElement(sn,{...e,onClick:r},t)},hI=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=a.useContext(Vd),s=i=>{o?.(i),t?.onClick?.(i)};return ee.createElement(sn,{...AS(n),loading:e,...t,onClick:s},r)};function CO(e,t){return ee.createElement("span",{className:`${e}-close-x`},tt(t)?t:ee.createElement(ii,{className:`${e}-close-icon`}))}const SO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:s,onCancel:i,okButtonProps:c,cancelButtonProps:f,footer:d}=e,[p]=br("Modal",uM()),m=wr(t,p?.okText),h=wr(r,p?.cancelText),y=ee.useMemo(()=>({confirmLoading:o,okButtonProps:c,cancelButtonProps:f,okTextLocale:m,cancelTextLocale:h,okType:n,onOk:s,onCancel:i}),[o,c,f,m,h,n,s,i]);let b;return Tt(d)||typeof d>"u"?(b=ee.createElement(ee.Fragment,null,ee.createElement(mI,null),ee.createElement(hI,null)),Tt(d)&&(b=d(b,{OkBtn:hI,CancelBtn:mI})),b=ee.createElement(mO,{value:y},b)):b=d,ee.createElement(wS,{disabled:!1},b)},aj=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"}}}},lj=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},cj=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[s,i]=Bt(o,"grid"),[,c]=Bt(o,"col"),f={};for(let d=r;d>=0;d--)d===0?(f[`${n}${t}-${d}`]={display:"none"},f[`${n}-push-${d}`]={insetInlineStart:"auto"},f[`${n}-pull-${d}`]={insetInlineEnd:"auto"},f[`${n}${t}-push-${d}`]={insetInlineStart:"auto"},f[`${n}${t}-pull-${d}`]={insetInlineEnd:"auto"},f[`${n}${t}-offset-${d}`]={marginInlineStart:0},f[`${n}${t}-order-${d}`]={order:0}):(f[`${n}${t}-${d}`]=[{[s("display")]:"block",display:"block"},{display:i("display"),flex:`0 0 ${d/r*100}%`,maxWidth:`${d/r*100}%`}],f[`${n}${t}-push-${d}`]={insetInlineStart:`${d/r*100}%`},f[`${n}${t}-pull-${d}`]={insetInlineEnd:`${d/r*100}%`},f[`${n}${t}-offset-${d}`]={marginInlineStart:`${d/r*100}%`},f[`${n}${t}-order-${d}`]={order:d});return f[`${n}${t}-flex`]={flex:c(`${t.replace(/-/,"")}-flex`)},f},W0=(e,t)=>cj(e,t),uj=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...W0(e,n)}}),dj=()=>({}),fj=()=>({}),pj=Zt("Grid",aj,dj),$O=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),mj=Zt("Grid",e=>{const t=Jt(e,{gridColumns:24}),n=$O(t);return delete n.xs,[lj(t),W0(t,""),W0(t,"-xs"),Object.keys(n).map(r=>uj(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},fj);function gI(e){return{position:e,inset:0}}const hj=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...gI("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...gI("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:sO(e)}]},gj=e=>{const{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...an(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...eo(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...to(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${te(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
199
|
+
${t}-body,
|
|
200
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},yj=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},bj=e=>{const{componentCls:t}=e,n=$O(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,s=Object.keys(r).map(i=>({[`@media (min-width: ${te(r[i])})`]:{width:`var(${o}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(jt(Object.keys(n).map((i,c)=>{const f=Object.keys(n)[c-1];return f?{[`${o}${i}-width`]:`var(${o}${f}-width)`}:null})),[{width:`var(${o}xs-width)`}],jt(s))}}},wO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Jt(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()})},EO=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),RO=Zt("Modal",e=>{const t=wO(e);return[gj(t),yj(t),hj(t),jd(t,"zoom"),bj(t)]},EO,{unitless:{titleLineHeight:!0}});let V0;const vj=e=>{V0={x:e.pageX,y:e.pageY},setTimeout(()=>{V0=null},100)};kH()&&document.documentElement.addEventListener("click",vj,!0);const IO=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:s,centered:i,getContainer:c,style:f,width:d=520,footer:p,classNames:m,styles:h,children:y,loading:b,confirmLoading:v,zIndex:$,mousePosition:x,onOk:E,onCancel:C,okButtonProps:w,cancelButtonProps:R,destroyOnHidden:P,destroyOnClose:I,panelRef:T=null,closable:L,mask:z,modalRender:M,maskClosable:O,_semanticOmit:_,scrollLock:F,focusTriggerAfterClose:W,focusable:q,_renderSemanticContent:G,...j}=e,{getPopupContainer:H,getPrefixCls:k,direction:B,className:D,style:K,classNames:Q,styles:Z,centered:X,cancelButtonProps:J,okButtonProps:ne,mask:oe,focusable:ae}=Xt("modal"),{modal:pe}=a.useContext(Ot),[fe,le]=a.useMemo(()=>typeof L=="boolean"?[void 0,void 0]:[L?.afterClose,L?.onClose],[L]),ie=k("modal",t),re=k(),[de,ge,se]=qM(z,oe,ie,O),ce=yO({...ae,...q},de,W),xe=De=>{v||(C?.(De),le?.())},Ee=De=>{E?.(De),le?.()},Se=er(ie),[Fe,qe]=RO(ie,Se),Ne=U(s,{[`${ie}-centered`]:i??X,[`${ie}-wrap-rtl`]:B==="rtl"}),_e=p!==null&&!b?a.createElement(SO,{...e,okButtonProps:{...ne,...w},onOk:Ee,cancelButtonProps:{...J,...R},onCancel:xe}):null,[Ie,me,Le,He]=NS(ea(e),ea(pe),{closable:!0,closeIcon:a.createElement(ii,{className:`${ie}-close-icon`}),closeIconRender:De=>CO(ie,De)}),Ae=Ie?{disabled:Le,closeIcon:me,afterClose:fe,...He}:!1,Oe=M?De=>a.createElement("div",{className:`${ie}-render`},M(De)):void 0,st=`.${ie}-${M?"render":"container"}`,je=xO(st),Je=ur(T,je),[ze,Ve]=Fc("Modal",$),Ke={...e,width:d,panelRef:T,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusable:ce,mask:de,maskClosable:se,zIndex:ze},[ot,Ge]=qt([Q,m,ge],[Z,h],{props:Ke}),dt=_?dn(ot,_):ot,xt=_?dn(Ge,_):Ge,St=G?G({classNames:ot,styles:Ge}):y,[Lt,gt]=a.useMemo(()=>Rt(d)?[void 0,d]:[d,void 0],[d]),mt=a.useMemo(()=>{const De={};return gt&&Object.keys(gt).forEach(Ze=>{const Be=gt[Ze];un(Be)&&(De[`--${ie}-${Ze}-width`]=Un(Be)?`${Be}px`:Be)}),De},[ie,gt]);return a.createElement(ta,{form:!0,space:!0},a.createElement(Fd.Provider,{value:Ve},a.createElement(FH,{width:Lt,...j,zIndex:ze,getContainer:c===void 0?H:c,prefixCls:ie,rootClassName:U(Fe,r,qe,Se,dt.root),rootStyle:xt.root,footer:_e,visible:o,mousePosition:x??V0,onClose:xe,closable:Ae,closeIcon:me,transitionName:Ls(re,"zoom",e.transitionName),maskTransitionName:Ls(re,"fade",e.maskTransitionName),mask:de,maskClosable:se,scrollLock:F,className:U(Fe,n,D),style:{...K,...f,...mt},classNames:{...dt,wrapper:U(dt.wrapper,Ne)},styles:xt,panelRef:Je,destroyOnHidden:P??I,modalRender:Oe,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusTrap:ce.trap},b?a.createElement(ro,{active:!0,title:!1,paragraph:{rows:4},className:`${ie}-body-skeleton`}):St)))},xj=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:s,lineHeight:i,modalTitleHeight:c,fontHeight:f,confirmBodyPadding:d}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...Ji()},[`&${t} ${t}-body`]:{padding:d},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${te(e.marginSM)})`},[`${p}-body-no-icon ${p}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${te(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:s,lineHeight:i},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
|
|
201
|
+
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Cj=al(["Modal","confirm"],e=>{const t=wO(e);return xj(t)},EO,{order:-1e3}),Sj=["body"],PO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:s,type:i,okCancel:c,footer:f,locale:d,autoFocusButton:p,focusable:m,contentClassName:h,contentStyle:y,...b}=e,{infoIcon:v,successIcon:$,errorIcon:x,warningIcon:E}=Xt("modal");let C=n;if(n===void 0)switch(i){case"info":C=wr(v,a.createElement(bh,null));break;case"success":C=wr($,a.createElement(Ld,null));break;case"error":C=wr(x,a.createElement(ll,null));break;default:C=wr(E,a.createElement(cl,null))}const w=c??i==="confirm",R=a.useMemo(()=>{const G=m?.autoFocusButton||p;return G||G===null?G:"ok"},[p,m?.autoFocusButton]),[P]=br("Modal"),I=d||P,T=wr(r,w?I?.okText:I?.justOkText),L=wr(o,I?.cancelText),{closable:z}=b,{onClose:M}=Rt(z)?z:{},O=a.useMemo(()=>({autoFocusButton:R,cancelTextLocale:L,okTextLocale:T,mergedOkCancel:w,onClose:M,...b}),[R,L,T,w,M,b]),_=a.createElement(a.Fragment,null,a.createElement(cI,null),a.createElement(uI,null)),F=tt(e.title),W=tt(C),q=`${s}-body`;return a.createElement("div",{className:`${s}-body-wrapper`},a.createElement("div",{className:U(q,{[`${q}-has-title`]:F,[`${q}-no-icon`]:!W})},C,a.createElement("div",{className:`${s}-paragraph`},F&&a.createElement("span",{className:`${s}-title`},e.title),a.createElement("div",{className:U(`${s}-content`,h),style:y},e.content))),f===void 0||Tt(f)?a.createElement(mO,{value:O},a.createElement("div",{className:`${s}-btns`},Tt(f)?f(_,{OkBtn:uI,CancelBtn:cI}):_)):f,a.createElement(Cj,{prefixCls:t}))},$j=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:s,wrapClassName:i,rootPrefixCls:c,bodyStyle:f,closable:d=!1,onConfirm:p,styles:m,title:h,mask:y,maskClosable:b,okButtonProps:v,cancelButtonProps:$}=e,{cancelButtonProps:x,okButtonProps:E}=Xt("modal"),C=`${s}-confirm`,w=e.width||416,R=e.style||{},P=Tt(m)?O=>({body:f,mask:r,...m(O)}):{body:f,mask:r,...m},I=dn(e,["bodyStyle","maskStyle"]),T=U(C,`${C}-${e.type}`,{[`${C}-rtl`]:o==="rtl"},e.className),L=a.useMemo(()=>{const O=B0(y,b);return O.closable??(O.closable=!1),O},[y,b]),[,z]=Dr(),M=a.useMemo(()=>n!==void 0?n:z.zIndexPopupBase+TS,[n,z]);return a.createElement(IO,{...I,className:T,wrapClassName:U({[`${C}-centered`]:!!e.centered},i),onCancel:()=>{t?.({triggerCancel:!0}),p?.(!1)},title:h,footer:null,transitionName:Ls(c||"","zoom",e.transitionName),maskTransitionName:Ls(c||"","fade",e.maskTransitionName),mask:L,style:R,styles:P,width:w,zIndex:M,closable:d,_semanticOmit:Sj,_renderSemanticContent:({classNames:O,styles:_})=>a.createElement(PO,{...e,confirmPrefixCls:C,okButtonProps:{...E,...v},cancelButtonProps:{...x,...$},contentClassName:O.body,contentStyle:_.body})})},NO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(ys,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement($j,{...e}))},Oa=[];let TO="";const MO=()=>TO,wj=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,o=uM(),s=a.useContext(Ot),i=MO()||s.getPrefixCls(),c=t||`${i}-modal`;let f=n;return f===!1&&(f=void 0),ee.createElement(NO,{...e,rootPrefixCls:i,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??o,getContainer:f})};function Ud(e){const t=l_(),n=document.createDocumentFragment();let r,o,s;const i=(...d)=>{d.some(m=>m?.triggerCancel)&&e.onCancel?.(()=>{},...d.slice(1));for(let m=0;m<Oa.length;m++)if(Oa[m]===r){Oa.splice(m,1);break}l2(n).then(()=>{})},c=d=>{clearTimeout(s),s=setTimeout(()=>{const p=t.getPrefixCls(void 0,MO()),m=t.getIconPrefixCls(),h=t.getTheme(),y=ee.createElement(wj,{...d});a2(ee.createElement(ys,{prefixCls:p,iconPrefixCls:m,theme:h},Tt(t.holderRender)?t.holderRender(y):y),n)})};r=(...d)=>{o={...o,open:!1,afterClose:()=>{Tt(e?.afterClose)&&e.afterClose(),i.apply(void 0,d)}},c(o)},o={...e,close:r,open:!0};const f=d=>{Tt(d)?o=d(o):o={...o,...d},c(o)};return c(o),Oa.push(r),{destroy:r,update:f}}const OO=e=>({...e,type:"warning"}),zO=e=>({...e,type:"info"}),AO=e=>({...e,type:"success"}),LO=e=>({...e,type:"error"}),DO=e=>({...e,type:"confirm"}),Ej=({rootPrefixCls:e})=>{TO=e},Rj=a.forwardRef((e,t)=>{const{afterClose:n,config:r,...o}=e,[s,i]=a.useState(!0),[c,f]=a.useState(r),{direction:d,getPrefixCls:p}=a.useContext(Ot),m=p("modal"),h=p(),y=()=>{n(),c.afterClose?.()},b=(...x)=>{i(!1),x.some(C=>C?.triggerCancel)&&c.onCancel?.(()=>{},...x.slice(1))};a.useImperativeHandle(t,()=>({destroy:b,update:x=>{f(E=>{const C=Tt(x)?x(E):x;return{...E,...C}})}}));const v=c.okCancel??c.type==="confirm",[$]=br("Modal",xo.Modal);return a.createElement(NO,{prefixCls:m,rootPrefixCls:h,...c,close:b,open:s,afterClose:y,okText:wr(c.okText,v?$?.okText:$?.justOkText),direction:c.direction||d,cancelText:wr(c.cancelText,$?.cancelText),...o})});let yI=0;const Ij=a.memo(a.forwardRef((e,t)=>{const[n,r]=BF();return a.useImperativeHandle(t,()=>({patchElement:r}),[r]),a.createElement(a.Fragment,null,n)}));function BO(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&(jt(t).forEach(i=>{i()}),n([]))},[t]);const r=a.useCallback(s=>function(c){yI+=1;const f=a.createRef();let d;const p=new Promise(v=>{d=v});let m=!1,h;const y=a.createElement(Rj,{key:`modal-${yI}`,config:s(c),ref:f,afterClose:()=>{h?.()},isSilent:()=>m,onConfirm:v=>{d(v)}});return h=e.current?.patchElement(y),h&&Oa.push(h),{destroy:()=>{function v(){f.current?.destroy()}f.current?v():n($=>[].concat(jt($),[v]))},update:v=>{function $(){f.current?.update(v)}f.current?$():n(x=>[].concat(jt(x),[$]))},then:v=>(m=!0,p.then(v))}},[]);return[a.useMemo(()=>({info:r(zO),success:r(AO),error:r(LO),warning:r(OO),confirm:r(DO)}),[r]),a.createElement(Ij,{key:"modal-holder",ref:e})]}const Pj={info:a.createElement(bh,null),success:a.createElement(Ld,null),error:a.createElement(ll,null),warning:a.createElement(cl,null),loading:a.createElement(oi,null)};function _O(e,t){return t===null||t===!1?null:tt(t)?t:a.createElement(ii,{className:`${e}-close-icon`})}const Nj=4.5,Tj="topRight",Mj={offset:8},Oj=({children:e,prefixCls:t})=>{const n=er(t),[r,o]=ak(t,n);return ee.createElement(kM,{classNames:{list:U(r,o,n)}},e)},zj=(e,{prefixCls:t,key:n})=>ee.createElement(Oj,{prefixCls:t,key:n},e),Aj=ee.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:s,maxCount:i,rtl:c,onAllRemoved:f,stack:d,duration:p=Nj,pauseOnHover:m=!0,showProgress:h}=e,{getPrefixCls:y,getPopupContainer:b,direction:v}=Xt("notification"),{notification:$}=a.useContext(Ot),[x]=br("global",xo.global),E=o||y("notification"),C=a.useMemo(()=>Un(p)&&p>0?p:!1,[p]),w=ut($?.style),[R,P]=qt([$?.classNames,e?.classNames],[$?.styles,w,e?.styles],{props:e}),I=()=>VM(n,r),T=()=>U({[`${E}-rtl`]:c??v==="rtl"}),L=()=>NF(E),z=WM(d,Mj),[M,O]=jM({prefixCls:E,style:I,className:T,motion:L,closable:{closeIcon:_O(E)},duration:C,getContainer:()=>s?.()||b?.()||document.body,maxCount:i,pauseOnHover:m,showProgress:h,classNames:R,styles:P,onAllRemoved:f,renderNotifications:zj,stack:z});return ee.useImperativeHandle(t,()=>({...M,prefixCls:E,notification:$,closeLabel:x.close??xo.global?.close??"Close"})),O});function Lj(e){const t=ee.useRef(null);ia();const{notification:n}=ee.useContext(Ot);return[ee.useMemo(()=>{const o=f=>{if(!t.current)return;const{open:d,prefixCls:p,notification:m,closeLabel:h}=t.current,y=m?.className||{},b=`${p}-notice`,{title:v,message:$,description:x,icon:E,type:C,btn:w,actions:R,className:P,style:I,role:T="alert",closeIcon:L,closable:z,classNames:M={},styles:O={},..._}=f,F=v??$,W=tt(F),q=R??w,G=_O(b,TF(L,e,m)),[j,H,,k]=UM(ea({...e||{},...f}),ea(n),{closable:!0,closeIcon:G},h),B=j?{onClose:Rt(z)?z.onClose:void 0,closeIcon:H,...k}:!1,D=Zi(M,{props:f}),K=Zi(O,{props:f}),Q=tt(E),Z=Q?E:C?Pj[C]:null,X=!Q&&C?`${b}-icon-${C}`:void 0;return d({placement:e?.placement??Tj,..._,title:W?F:null,description:x,icon:Z,actions:q,role:T,classNames:{...D,icon:U(X,D?.icon)},styles:K,className:U({[`${b}-${C}`]:C},P,y),style:I,closable:B})},i={open:o,destroy:f=>{f!==void 0?t.current?.close(f):t.current?.destroy()}};return["success","info","warning","error"].forEach(f=>{i[f]=d=>o({...d,type:f})}),i},[e,n]),ee.createElement(Aj,{key:"notification-holder",...e,ref:t})]}function Dj(e){return Lj(e)}const bI=ee.createContext({}),FO=ee.createContext({message:{},notification:{},modal:{}}),Bj=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:s}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:s,[`&${t}-rtl`]:{direction:"rtl"}}}},_j=()=>({}),Fj=Zt("App",Bj,_j),[vI,kj]=pD(),Hj=vI===19&&kj>=3||vI>19,jj=ee.forwardRef((e,t)=>{const{prefixCls:n,children:r,className:o,rootClassName:s,message:i,notification:c,style:f,component:d="div"}=e,{direction:p,getPrefixCls:m,className:h,style:y}=Xt("app"),b=m("app",n),[v,$]=Fj(b),x=U(v,b,o,s,$,{[`${b}-rtl`]:p==="rtl"}),E=a.useContext(bI),C=ee.useMemo(()=>({message:{...E.message,...i},notification:{...E.notification,...c}}),[i,c,E.message,E.notification]),[w,R]=$k(C.message),[P,I]=Dj(C.notification),[T,L]=BO(),z=ee.useMemo(()=>({message:w,notification:P,modal:T}),[w,P,T]);aS();const M=d===!1?ee.Fragment:d,O={className:U(h,x),style:{...y,...f}},_=t;return ee.createElement(FO.Provider,{value:z},ee.createElement(bI.Provider,{value:C},ee.createElement(M,{...d===!1?Hj?{ref:_}:void 0:{...O,ref:_}},L,R,I,r)))}),Wj=()=>ee.useContext(FO),kc=jj;kc.useApp=Wj;function kO(e){return t=>a.createElement(ys,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(e,{...t}))}const HO=(e,t,n,r,o)=>kO(i=>{const{prefixCls:c,style:f}=i,d=a.useRef(null),[p,m]=a.useState(0),[h,y]=a.useState(0),[b,v]=Rn(!1,i.open),{getPrefixCls:$}=a.useContext(Ot),x=$(r||"select",c);a.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(P=>{const I=P[0].target;m(I.offsetHeight+8),y(I.offsetWidth)}),R=setInterval(()=>{const P=o?`.${o(x)}`:`.${x}-dropdown`,I=d.current?.querySelector(P);I&&(clearInterval(R),w.observe(I))},10);return()=>{clearInterval(R),w.disconnect()}}},[x]);let E={...i,style:{...f,margin:0},open:b,getPopupContainer:()=>d.current};t&&(E={...E,[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:p,position:"relative",minWidth:h};return a.createElement("div",{ref:d,style:C},a.createElement(e,{...E}))}),Vj=(e,t,n,r,o=!1,s,i)=>{const c=ch(n);return a.useMemo(()=>{const f=!o&&!c.disabled&&(t.length||s)&&!(i==="combobox"&&s==="");return{...c,allowClear:f,clearIcon:f?tt(c.clearIcon)?c.clearIcon:tt(r)?r:"×":null,label:f?c.label??"Clear":""}},[c,r,o,t.length,s,i])},jO=a.createContext(null);function ul(){return a.useContext(jO)}function Kj(e=250){const t=a.useRef(null),n=a.useRef(null);a.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function WO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function Uj(e,t,n,r){const o=Ct(s=>{if(r)return;let i=s.target;i.shadowRoot&&s.composed&&(i=s.composedPath()[0]||i),s._ori_target&&(i=s._ori_target),t&&!WO(e(),i)&&n(!1)});a.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o])}function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K0.apply(this,arguments)}const qj=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},Gj=(e,t)=>{const{prefixCls:n,disabled:r,visible:o,children:s,popupElement:i,animation:c,transitionName:f,popupStyle:d,popupClassName:p,direction:m="ltr",placement:h,builtinPlacements:y,popupMatchSelectWidth:b,popupRender:v,popupAlign:$,getPopupContainer:x,empty:E,onPopupVisibleChange:C,onPopupMouseEnter:w,onPopupMouseDown:R,onPopupBlur:P,...I}=e,T=`${n}-dropdown`;let L=i;v&&(L=v(i));const z=a.useMemo(()=>y||qj(b),[y,b]),M=c?`${T}-${c}`:f,O=typeof b=="number",_=a.useMemo(()=>b===!1||O?"minWidth":"width",[b,O]);let F=d;O&&(F={...d,width:b});const W=a.useRef(null);return a.useImperativeHandle(t,()=>({getPopupElement:()=>W.current?.popupElement})),a.createElement(vh,K0({},I,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:h||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:z,prefixCls:T,popupMotion:{motionName:M},popup:a.createElement("div",{onMouseEnter:w,onMouseDown:R,onBlur:P},L),ref:W,stretch:_,popupAlign:$,popupVisible:o,getPopupContainer:x,popupClassName:U(p,{[`${T}-empty`]:E}),popupStyle:F,onPopupVisibleChange:C}),s)},Xj=a.forwardRef(Gj);function xI(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function U0(e){return typeof e<"u"&&!Number.isNaN(e)}function VO(e,t){const{label:n,value:r,options:o,groupLabel:s}=e||{},i=n||(t?"children":"label");return{label:i,value:r||"value",options:o||"options",groupLabel:s||i}}function Yj(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:s,options:i,groupLabel:c}=VO(t,!1);function f(d,p){Array.isArray(d)&&d.forEach(m=>{if(p||!(i in m)){const h=m[s];r.push({key:xI(m,r.length),groupOption:p,data:m,label:m[o],value:h})}else{let h=m[c];h===void 0&&n&&(h=m.label),r.push({key:xI(m,r.length),group:!0,data:m,label:h}),f(m[i],!0)}})}return f(e,!1),r}function q0(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return kn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Qj=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const o=(i,[c,...f])=>{if(!c)return[i];const d=i.split(c);return r=r||d.length>1,d.reduce((p,m)=>[...p,...o(m,f)],[]).filter(Boolean)},s=o(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function Jj(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return a.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:o,value:s})=>["number","string"].includes(typeof o)?o:s).join(", ")}`,n.length>r?", ...":null)}const Zj=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},kS=(e,t=1)=>{if(t<=0){e();return}Zj(()=>{kS(e,t-1)})};function e7(e,t,n,r){const[o,s]=a.useState(!1);a.useEffect(()=>{s(!0)},[]);const[i,c]=Rn(e,t),[f,d]=a.useState(!1),p=o?i:!1,m=r(p),h=a.useRef(0),y=Ct(v=>{n&&m!==v&&n(v),c(v)}),b=Ct((v,$={})=>{const{cancelFun:x}=$;h.current+=1;const E=h.current,C=typeof v=="boolean"?v:!m;d(!C);function w(){E===h.current&&!x?.()&&(y(C),d(!1))}C?w():kS(()=>{w()})});return[p,m,b,f]}function CI(e){const{children:t,...n}=e;return tt(t)?a.createElement("div",n,t):null}const KO=a.createContext(null);function qd(){return a.useContext(KO)}const UO=a.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:o,style:s,syncWidth:i,value:c,className:f,autoComplete:d,...p}=e,{prefixCls:m,mode:h,onSearch:y,onSearchSubmit:b,onInputBlur:v,autoFocus:$,tokenWithEnter:x,placeholder:E,autoComplete:C,components:{input:w="input"}}=qd(),{id:R,classNames:P,styles:I,open:T,activeDescendantId:L,role:z,disabled:M}=ul()||{},O=U(`${m}-input`,P?.input,f),_=a.useRef(!1),F=a.useRef(null),W=a.useRef(null);a.useImperativeHandle(t,()=>W.current);const q=X=>{let{value:J}=X.target;if(x&&F.current&&/[\r\n]/.test(F.current)){const ne=F.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");J=J.replace(ne,F.current)}F.current=null,y&&y(J,!0,_.current),n?.(X)},G=X=>{const{key:J}=X,{value:ne}=X.currentTarget;J==="Enter"&&h==="tags"&&!T&&!_.current&&b&&b(ne),r?.(X)},j=X=>{v?.(),o?.(X)},H=()=>{_.current=!0},k=X=>{if(_.current=!1,h!=="combobox"){const{value:J}=X.currentTarget;y?.(J,!0,!1)}},B=X=>{const{clipboardData:J}=X,ne=J?.getData("text");F.current=ne||""},[D,K]=a.useState(void 0);Qt(()=>{const X=W.current;if(i&&X){X.style.width="0px";const J=X.scrollWidth;K(J),X.style.width=""}},[i,c]);const Q={id:R,type:"text",...p,ref:W,style:{...I?.input,...s,"--select-input-width":D},autoFocus:$,autoComplete:d??C??"new-password",className:O,disabled:M,value:c||"",onChange:q,onKeyDown:G,onBlur:j,onPaste:B,onCompositionStart:H,onCompositionEnd:k,role:z||"combobox","aria-expanded":T||!1,"aria-haspopup":"listbox","aria-owns":T?`${R}_list`:void 0,"aria-autocomplete":"list","aria-controls":T?`${R}_list`:void 0,"aria-activedescendant":T?L:void 0};if(a.isValidElement(w)){const X=w.props||{},J={placeholder:e.placeholder||E,...Q,...X};return Object.keys(X).forEach(ne=>{const oe=X[ne];typeof oe=="function"&&(J[ne]=(...ae)=>{oe(...ae),Q[ne]?.(...ae)})}),J.ref=ur(w.ref,Q.ref),a.cloneElement(w,J)}const Z=w;return a.createElement(Z,Q)});function qO(e){const{prefixCls:t,placeholder:n,displayValues:r}=qd(),{classNames:o,styles:s}=ul(),{show:i=!0}=e;return r.length?null:a.createElement("div",{className:U(`${t}-placeholder`,o?.placeholder),style:{...i?{}:{visibility:"hidden"},...s?.placeholder}},n)}const HS=a.createContext(null);function GO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function t7(e){return!e&&e!==0}function SI(e){return["string","number"].includes(typeof e)}function G0(e){let t;return e&&(SI(e.title)?t=e.title.toString():SI(e.label)&&(t=e.label.toString())),t}function X0(){return X0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X0.apply(this,arguments)}const n7=a.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:s,maxLength:i,mode:c,components:f}=qd(),{triggerOpen:d,title:p,showSearch:m,classNames:h,styles:y}=ul(),b=a.useContext(HS),[v,$]=a.useState(!1),x=c==="combobox",E=s[0],C=a.useMemo(()=>x&&o&&!v&&d?o:m?r:"",[x,o,v,d,r,m]),[w,R,P,I]=a.useMemo(()=>{let M,O,_;if(E&&b?.flattenOptions){const W=b.flattenOptions.find(q=>q.value===E.value);W?.data&&(M=W.data.className,O=W.data.style,_=G0(W.data))}return E&&!_&&(_=G0(E)),p!==void 0&&(_=p),[M,O,_,!!M||!!O]},[E,b?.flattenOptions,p]);a.useEffect(()=>{x&&$(!1)},[x,o]);const T=E&&E.label!==null&&E.label!==void 0&&String(E.label).trim()!=="",z=!(x&&f?.input)?E?I?a.createElement("div",{className:U(`${n}-content-value`,w),style:{...C?{visibility:"hidden"}:{},...R},title:P},E.label):E.label:a.createElement(qO,{show:!C}):null;return a.createElement("div",{className:U(`${n}-content`,T&&`${n}-content-has-value`,C&&`${n}-content-has-search-value`,I&&`${n}-content-has-option-style`,h?.content),style:y?.content,title:I?void 0:P},z,a.createElement(UO,X0({ref:t},e,{value:C,maxLength:c==="combobox"?i:void 0,onChange:M=>{$(!0),e.onChange?.(M)}})))});function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xn.apply(null,arguments)}const ql=void 0;function r7(e,t){const{prefixCls:n,invalidate:r,item:o,renderItem:s,responsive:i,responsiveDisabled:c,registerSize:f,itemKey:d,className:p,style:m,children:h,display:y,order:b,component:v="div",...$}=e,x=i&&!y;function E(I){f(d,I)}a.useEffect(()=>()=>{E(null)},[]);const C=s&&o!==ql?s(o,{index:b}):h;let w;r||(w={opacity:x?0:1,height:x?0:ql,overflowY:x?"hidden":ql,order:i?b:ql,pointerEvents:x?"none":ql,position:x?"absolute":ql});const R={};x&&(R["aria-hidden"]=!0);let P=a.createElement(v,Xn({className:U(!r&&n,p),style:{...w,...m}},R,$,{ref:t}),C);return i&&(P=a.createElement(bo,{onResize:({offsetWidth:I})=>{E(I)},disabled:c},P)),P}const Hu=a.forwardRef(r7);function o7(e){if(typeof MessageChannel>"u")Wt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function s7(){const e=a.useRef(null);return n=>{e.current||(e.current=[],o7(()=>{Qi.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Gl(e,t){const[n,r]=a.useState(t),o=Ct(s=>{e(()=>{r(s)})});return[n,o]}const Om=ee.createContext(null),i7=(e,t)=>{const n=a.useContext(Om);if(!n){const{component:c="div",...f}=e;return a.createElement(c,Xn({},f,{ref:t}))}const{className:r,...o}=n,{className:s,...i}=e;return a.createElement(Om.Provider,{value:null},a.createElement(Hu,Xn({ref:t,className:U(r,s)},o,i)))},a7=a.forwardRef(i7),XO="responsive",YO="invalidate";function l7(e){return`+ ${e.length} ...`}function c7(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:o,renderRawItem:s,itemKey:i,itemWidth:c=10,ssr:f,style:d,className:p,maxCount:m,renderRest:h,renderRawRest:y,prefix:b,suffix:v,component:$="div",itemComponent:x,onVisibleChange:E,...C}=e,w=f==="full",R=s7(),[P,I]=Gl(R,null),T=P||0,[L,z]=Gl(R,new Map),[M,O]=Gl(R,0),[_,F]=Gl(R,0),[W,q]=Gl(R,0),[G,j]=Gl(R,0),[H,k]=a.useState(null),[B,D]=a.useState(null),K=a.useMemo(()=>B===null&&w?Number.MAX_SAFE_INTEGER:B||0,[B,P]),[Q,Z]=a.useState(!1),X=`${n}-item`,J=Math.max(M,_),ne=m===XO,oe=r.length&&ne,ae=m===YO,pe=oe||typeof m=="number"&&r.length>m,fe=a.useMemo(()=>{let Ae=r;return oe?P===null&&w?Ae=r:Ae=r.slice(0,Math.min(r.length,T/c)):typeof m=="number"&&(Ae=r.slice(0,m)),Ae},[r,c,P,m,oe]),le=a.useMemo(()=>oe?r.slice(K+1):r.slice(fe.length),[r,fe,oe,K]),ie=a.useCallback((Ae,Oe)=>typeof i=="function"?i(Ae):(i&&Ae?.[i])??Oe,[i]),re=a.useCallback(o||(Ae=>Ae),[o]);function de(Ae,Oe,st){B===Ae&&(Oe===void 0||Oe===H)||(D(Ae),st||(Z(Ae<r.length-1),E?.(Ae)),Oe!==void 0&&k(Oe))}function ge(Ae,Oe){I(Oe.clientWidth)}function se(Ae,Oe){z(st=>{const je=new Map(st);return Oe===null?je.delete(Ae):je.set(Ae,Oe),je})}function ce(Ae,Oe){F(Oe),O(_)}function xe(Ae,Oe){q(Oe)}function Ee(Ae,Oe){j(Oe)}function Se(Ae){return L.get(ie(fe[Ae],Ae))}Qt(()=>{if(T&&typeof J=="number"&&fe){let Ae=W+G;const Oe=fe.length,st=Oe-1;if(!Oe){de(0,null);return}for(let je=0;je<Oe;je+=1){let Je=Se(je);if(w&&(Je=Je||0),Je===void 0){de(je-1,void 0,!0);break}if(Ae+=Je,st===0&&Ae<=T||je===st-1&&Ae+Se(st)<=T){de(st,null);break}else if(Ae+J>T){de(je-1,Ae-Je-G+_);break}}v&&Se(0)+G>T&&k(null)}},[T,L,_,W,G,ie,fe]);const Fe=Q&&!!le.length;let qe={};H!==null&&oe&&(qe={position:"absolute",top:0,insetInlineStart:H});const Ne={prefixCls:X,responsive:oe,component:x,invalidate:ae},_e=s?(Ae,Oe)=>{const st=ie(Ae,Oe);return a.createElement(Om.Provider,{key:st,value:{...Ne,order:Oe,item:Ae,itemKey:st,registerSize:se,display:Oe<=K}},s(Ae,Oe))}:(Ae,Oe)=>{const st=ie(Ae,Oe);return a.createElement(Hu,Xn({},Ne,{order:Oe,key:st,item:Ae,renderItem:re,itemKey:st,registerSize:se,display:Oe<=K}))},Ie={order:Fe?K:Number.MAX_SAFE_INTEGER,className:`${X}-rest`,registerSize:ce,display:Fe},me=h||l7,Le=y?a.createElement(Om.Provider,{value:{...Ne,...Ie}},y(le)):a.createElement(Hu,Xn({},Ne,Ie),typeof me=="function"?me(le):me),He=a.createElement($,Xn({className:U(!ae&&n,p),style:d,ref:t},C),b&&a.createElement(Hu,Xn({},Ne,{responsive:ne,responsiveDisabled:!oe,order:-1,className:`${X}-prefix`,registerSize:xe,display:!0}),b),fe.map(_e),pe?Le:null,v&&a.createElement(Hu,Xn({},Ne,{responsive:ne,responsiveDisabled:!oe,order:K,className:`${X}-suffix`,registerSize:Ee,display:!0,style:qe}),v));return ne?a.createElement(bo,{onResize:ge,disabled:!oe},He):He}const ni=a.forwardRef(c7);ni.Item=a7;ni.RESPONSIVE=XO;ni.INVALIDATE=YO;const QO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:o,children:s,onMouseDown:i,onClick:c}=e,f=typeof r=="function"?r(o):r;return a.createElement("span",{className:t,onMouseDown:d=>{d.preventDefault(),i?.(d)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:c,"aria-hidden":!0},f!==void 0?f:a.createElement("span",{className:U(t.split(/\s+/).map(d=>`${d}-icon`))},s))};function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y0.apply(this,arguments)}function u7(e){return e.key??e.value}const $I=e=>{e.preventDefault(),e.stopPropagation()},d7=a.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:s,mode:i,onSelectorRemove:c,removeIcon:f}=qd(),{disabled:d,showSearch:p,triggerOpen:m,rawOpen:h,toggleOpen:y,autoClearSearchValue:b,tagRender:v,maxTagPlaceholder:$,maxTagTextLength:x,maxTagCount:E,classNames:C,styles:w}=ul(),R=`${r}-selection-item`;let P=s;!h&&i==="multiple"&&b!==!1&&(P="");const I=p&&P||"",T=p&&!d,L=f??"×",z=$??(j=>`+ ${j.length} ...`),M=v,O=j=>{y(j)},_=j=>{c?.(j)},F=(j,H,k,B,D)=>a.createElement("span",{title:G0(j),className:U(R,{[`${R}-disabled`]:k},C?.item),style:w?.item},a.createElement("span",{className:U(`${R}-content`,C?.itemContent),style:w?.itemContent},H),B&&a.createElement(QO,{className:U(`${R}-remove`,C?.itemRemove),style:w?.itemRemove,onMouseDown:$I,onClick:D,customizeIcon:L},"×")),W=(j,H,k,B,D,K,Q)=>{const Z=X=>{$I(X),O(!m)};return a.createElement("span",{onMouseDown:Z},M({label:H,value:j,index:Q?.index,disabled:k,closable:B,onClose:D,isMaxTag:!!K}))},q=(j,H)=>{const{disabled:k,label:B,value:D}=j,K=!d&&!k;let Q=B;if(typeof x=="number"&&(typeof B=="string"||typeof B=="number")){const X=String(Q);X.length>x&&(Q=`${X.slice(0,x)}...`)}const Z=X=>{X&&X.stopPropagation(),_(j)};return typeof M=="function"?W(D,Q,k,K,Z,void 0,H):F(j,Q,k,K,Z)},G=j=>{if(!o.length)return null;const H=typeof z=="function"?z(j):z;return typeof M=="function"?W(void 0,H,!1,!1,void 0,!0):F({title:H},H,!1)};return a.createElement(ni,{prefixCls:`${r}-content`,className:C?.content,style:w?.content,prefix:!o.length&&!I&&a.createElement(qO,null),data:o,renderItem:q,renderRest:G,suffix:a.createElement(UO,Y0({ref:n,disabled:d,readOnly:!T},t,{value:I||"",syncWidth:!0})),itemKey:u7,maxCount:E})}),f7=a.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:s}=qd(),i=ul(),{showSearch:c}=i,d={...Hn(i,{aria:!0}),onKeyDown:o,readOnly:!c,tabIndex:s};return r?a.createElement(d7,{ref:n,inputProps:d}):a.createElement(n7,{ref:n,inputProps:d})});function p7(e){return e&&![vt.ESC,vt.SHIFT,vt.BACKSPACE,vt.TAB,vt.WIN_KEY,vt.ALT,vt.META,vt.WIN_KEY_RIGHT,vt.CTRL,vt.SEMICOLON,vt.EQUALS,vt.CAPS_LOCK,vt.CONTEXT_MENU,vt.UP,vt.LEFT,vt.RIGHT,vt.F1,vt.F2,vt.F3,vt.F4,vt.F5,vt.F6,vt.F7,vt.F8,vt.F9,vt.F10,vt.F11,vt.F12].includes(e)}function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}const m7=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","autoComplete","onSelectorRemove","focused"],h7=a.forwardRef(function(t,n){const{prefixCls:r,className:o,style:s,prefix:i,suffix:c,clearIcon:f,clearLabel:d,clearTabIndex:p,children:m,multiple:h,displayValues:y,placeholder:b,mode:v,searchValue:$,onSearch:x,onSearchSubmit:E,onInputBlur:C,maxLength:w,autoFocus:R,onMouseDown:P,onClearMouseDown:I,onInputKeyDown:T,onSelectorRemove:L,tokenWithEnter:z,components:M,...O}=t,{triggerOpen:_,toggleOpen:F,showSearch:W,disabled:q,loading:G,classNames:j,styles:H}=ul(),k=a.useRef(null),B=a.useRef(null),D=Ct(ae=>{const{which:pe}=ae,fe=B.current instanceof HTMLTextAreaElement;if(!fe&&_&&(pe===vt.UP||pe===vt.DOWN)&&ae.preventDefault(),T&&T(ae),fe&&!_&&~[vt.UP,vt.DOWN,vt.LEFT,vt.RIGHT].indexOf(pe))return;!(ae.ctrlKey||ae.altKey||ae.metaKey)&&p7(pe)&&F(!0)});a.useImperativeHandle(n,()=>({focus:ae=>{(B.current||k.current).focus?.(ae)},blur:()=>{(B.current||k.current).blur?.()},nativeElement:fs(k.current)}));const K=Ct(ae=>{if(!q){const pe=fs(B.current);ae.nativeEvent._ori_target=pe;const fe=pe===ae.target||pe?.contains(ae.target);pe&&!fe&&ae.preventDefault();const re=_&&!h&&(v==="combobox"||W)||_&&h&&fe;ae.nativeEvent._select_lazy?_&&!h&&F(!1):(B.current?.focus(),re||F())}P?.(ae)}),Q=ae=>{(ae.key==="Enter"||ae.key===" ")&&ae.stopPropagation()},{root:Z}=M,X=dn(O,m7),J=Hn(X,{aria:!0}),ne=Object.keys(J),oe={...t,onInputKeyDown:D};if(Z){const ae=Z.props||{},pe={...ae,...X};return Object.keys(ae).forEach(fe=>{const le=ae[fe],ie=X[fe];typeof le=="function"&&typeof ie=="function"&&(pe[fe]=(...re)=>{ie(...re),le(...re)})}),a.isValidElement(Z)?a.cloneElement(Z,{...pe,ref:ur(Z.ref,k)}):a.createElement(Z,zm({},pe,{ref:k}))}return a.createElement(KO.Provider,{value:oe},a.createElement("div",zm({},dn(X,ne),{ref:k,className:o,style:s,onMouseDown:K}),a.createElement(CI,{className:U(`${r}-prefix`,j?.prefix),style:H?.prefix},i),a.createElement(f7,{ref:B}),a.createElement(CI,{className:U(`${r}-suffix`,{[`${r}-suffix-loading`]:G},j?.suffix),style:H?.suffix},c),tt(f)&&a.createElement("button",{type:"button","aria-label":d,tabIndex:p,className:U(`${r}-clear`,j?.clear),style:H?.clear,onMouseDown:ae=>{ae.preventDefault(),ae.nativeEvent._select_lazy=!0},onKeyDown:Q,onClick:I},f),m))});function g7(e,t,n){return a.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(this,arguments)}const J0=e=>e==="tags"||e==="multiple",y7=a.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:o,styles:s,classNames:i,showSearch:c,tagRender:f,showScrollBar:d="optional",direction:p,omitDomProps:m,displayValues:h,onDisplayValuesChange:y,emptyOptions:b,notFoundContent:v="Not Found",onClear:$,maxCount:x,placeholder:E,mode:C,disabled:w,loading:R,getInputElement:P,getRawInputElement:I,open:T,defaultOpen:L,onPopupVisibleChange:z,activeValue:M,onActiveValueChange:O,activeDescendantId:_,searchValue:F,autoClearSearchValue:W,onSearch:q,onSearchSplit:G,tokenSeparators:j,allowClear:H,prefix:k,suffix:B,suffixIcon:D,clearIcon:K,OptionList:Q,animation:Z,transitionName:X,popupStyle:J,popupClassName:ne,popupMatchSelectWidth:oe,popupRender:ae,popupAlign:pe,placement:fe,builtinPlacements:le,getPopupContainer:ie,showAction:re=[],onFocus:de,onBlur:ge,onKeyUp:se,onKeyDown:ce,onMouseDown:xe,components:Ee,...Se}=e,Fe=J0(C),qe=a.useRef(null),Ne=a.useRef(null),_e=a.useRef(null),[Ie,me]=a.useState(!1);a.useImperativeHandle(t,()=>({focus:qe.current?.focus,blur:qe.current?.blur,scrollTo:ct=>_e.current?.scrollTo(ct),nativeElement:fs(qe.current)}));const Le=g7(Ee,P,I),He=a.useMemo(()=>{if(C!=="combobox")return F;const ct=h[0]?.value;return typeof ct=="string"||typeof ct=="number"?String(ct):""},[F,C,h]),Ae=C==="combobox"&&typeof P=="function"&&P()||null,Oe=!v&&b,[st,je,Je,ze]=e7(L||!1,T,z,ct=>w||Oe?!1:ct),Ve=a.useMemo(()=>typeof j=="function"||(j||[]).some(ct=>[`
|
|
202
|
+
`,`\r
|
|
203
|
+
`].includes(ct)),[j]),Ke=a.useMemo(()=>typeof j=="function"?(ct,Nt)=>{const tn=j(ct),hn=Array.isArray(tn)&&tn.length===1&&tn[0]===ct;return!Array.isArray(tn)||!tn.length||hn?null:typeof Nt<"u"?tn.slice(0,Nt):tn}:(ct,Nt)=>Qj(ct,j,Nt),[j]),ot=(ct,Nt,tn)=>{if(Fe&&U0(x)&&h.length>=x)return;let hn=!0,It=ct;O?.(null);const nn=U0(x)?x-h.length:void 0,In=tn?null:Ke(ct,nn);return C!=="combobox"&&In&&(It="",G?.(In),Je(!1),hn=!1),q&&He!==It&&q(It,{source:Nt?"typing":"effect"}),ct&&Nt&&hn&&Je(!0),hn},Ge=ct=>{!ct||!ct.trim()||q(ct,{source:"submit"})};a.useEffect(()=>{!st&&!Fe&&C!=="combobox"&&ot("",!1,!1)},[st]),a.useEffect(()=>{w&&(Je(!1),me(!1))},[w,je]);const[dt,xt]=Kj(),St=a.useRef(!1),Lt=ct=>{const Nt=dt(),{key:tn}=ct,hn=tn==="Enter",It=tn===" ";if(hn||It){const nn=C==="combobox";(It&&!(nn||c)||hn&&!nn)&&ct.preventDefault(),je||Je(!0)}if(xt(!!He),tn==="Backspace"&&!Nt&&Fe&&!He&&h.length){const nn=[...h];let In=null;for(let Ln=nn.length-1;Ln>=0;Ln-=1){const An=nn[Ln];if(!An.disabled){nn.splice(Ln,1),In=An;break}}In&&y(nn,{type:"remove",values:[In]})}je&&(!hn||!St.current)&&!It&&(hn&&(St.current=!0),_e.current?.onKeyDown(ct)),ce?.(ct)},gt=(ct,...Nt)=>{je&&_e.current?.onKeyUp(ct,...Nt),ct.key==="Enter"&&(St.current=!1),se?.(ct,...Nt)},mt=Ct(ct=>{const Nt=h.filter(tn=>tn!==ct);y(Nt,{type:"remove",values:[ct]})}),De=()=>{St.current=!1},Ze=()=>[fs(qe.current),Ne.current?.getPopupElement()];Uj(Ze,je,Je,!!Le.root);const Be=a.useRef(!1),we=ct=>{me(!0),w||(re.includes("focus")&&Je(!0),de?.(ct))},ke=()=>{je&&!Be.current&&Je(!1,{cancelFun:()=>WO(Ze(),document.activeElement)})},Re=ct=>{me(!1),He&&(C==="tags"?q(He,{source:"submit"}):C==="multiple"&&q("",{source:"blur"})),ke(),w||ge?.(ct)},Xe=(ct,...Nt)=>{const{target:tn}=ct;Ne.current?.getPopupElement()?.contains(tn)&&Je&&Je(!0),xe?.(ct,...Nt),Be.current=!0,kS(()=>{Be.current=!1})},[,Ue]=a.useState({});function nt(){Ue({})}let zt;Le.root&&(zt=ct=>{Je(ct)});const ht=a.useMemo(()=>({...e,notFoundContent:v,open:je,triggerOpen:je,rawOpen:st,id:n,showSearch:c,multiple:Fe,toggleOpen:Je,showScrollBar:d,styles:s,classNames:i,lockOptions:ze}),[e,v,Je,n,c,Fe,je,st,d,s,i,ze]),Te=a.useMemo(()=>{const ct=B??D;return typeof ct=="function"?ct({searchValue:He,open:je,focused:Ie,showSearch:c,loading:R}):ct},[B,D,He,je,Ie,c,R]),lt=()=>{$?.(),qe.current?.focus(),y([],{type:"clear",values:h}),ot("",!1,!1)},{allowClear:at,clearIcon:Vt,label:Kt,tabIndex:yn}=Vj(r,h,H,K,w,He,C),At=a.createElement(Q,{ref:_e}),Gt=U(r,o,{[`${r}-focused`]:Ie,[`${r}-multiple`]:Fe,[`${r}-single`]:!Fe,[`${r}-allow-clear`]:at,[`${r}-show-arrow`]:un(Te),[`${r}-disabled`]:w,[`${r}-loading`]:R,[`${r}-open`]:je,[`${r}-customize-input`]:Ae,[`${r}-show-search`]:c});let Yt=a.createElement(h7,Q0({},Se,{ref:qe,prefixCls:r,className:Gt,focused:Ie,prefix:k,suffix:Te,clearIcon:Vt,clearLabel:Kt,clearTabIndex:yn,multiple:Fe,mode:C,displayValues:h,placeholder:E,searchValue:He,activeValue:M,onSearch:ot,onSearchSubmit:Ge,onInputBlur:De,onFocus:we,onBlur:Re,onClearMouseDown:lt,onKeyDown:Lt,onKeyUp:gt,onSelectorRemove:mt,tokenWithEnter:Ve,onMouseDown:Xe,components:Le}));return Yt=a.createElement(Xj,{ref:Ne,disabled:w,prefixCls:r,visible:je,popupElement:At,animation:Z,transitionName:X,popupStyle:J,popupClassName:ne,direction:p,popupMatchSelectWidth:oe,popupRender:ae,popupAlign:pe,placement:fe,builtinPlacements:le,getPopupContainer:ie,empty:b,onPopupVisibleChange:zt,onPopupMouseEnter:nt,onPopupMouseDown:Xe,onPopupBlur:ke},Yt),a.createElement(jO.Provider,{value:ht},a.createElement(Jj,{visible:Ie&&!je,values:h}),Yt)}),jS=()=>null;jS.isSelectOptGroup=!0;const WS=()=>null;WS.isSelectOption=!0;function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}const JO=a.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:o,onInnerResize:s,innerProps:i,rtl:c,extra:f},d)=>{let p={},m={display:"flex",flexDirection:"column"};return t!==void 0&&(p={height:e,position:"relative",overflow:"hidden"},m={...m,transform:`translateY(${t}px)`,[c?"marginRight":"marginLeft"]:-n||0,position:"absolute",left:0,right:0,top:0}),a.createElement("div",{style:p},a.createElement(bo,{onResize:({offsetHeight:h})=>{h&&s&&s()}},a.createElement("div",Z0({style:m,className:U({[`${o}-holder-inner`]:o}),ref:d},i),r,f)))});JO.displayName="Filler";function b7({children:e,setRef:t}){const n=a.useCallback(r=>{t(r)},[t]);return a.cloneElement(e,{ref:n})}function v7(e,t,n,r,o,s,i,{getKey:c}){return e.slice(t,n+1).map((f,d)=>{const p=t+d,m=i(f,p,{style:{width:r},offsetX:o}),h=c(f);return a.createElement(b7,{key:h,setRef:y=>s(f,y)},m)})}function x7(e,t,n){const r=e.length,o=t.length;let s,i;if(r===0&&o===0)return null;r<o?(s=e,i=t):(s=t,i=e);const c={__EMPTY_ITEM__:!0};function f(m){return m!==void 0?n(m):c}let d=null,p=Math.abs(r-o)!==1;for(let m=0;m<i.length;m+=1){const h=f(s[m]),y=f(i[m]);if(h!==y){d=m,p=p||h!==f(i[m+1]);break}}return d===null?null:{index:d,multiple:p}}function C7(e,t,n){const[r,o]=a.useState(e),[s,i]=a.useState(null);return a.useEffect(()=>{const c=x7(r||[],e||[],t);c?.index!==void 0&&i(e[c.index]),o(e)},[e]),[s]}const wI=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),ZO=((e,t,n,r)=>{const o=a.useRef(!1),s=a.useRef(null);function i(){clearTimeout(s.current),o.current=!0,s.current=setTimeout(()=>{o.current=!1},50)}const c=a.useRef({top:e,bottom:t,left:n,right:r});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=r,(f,d,p=!1)=>{const m=f?d<0&&c.current.left||d>0&&c.current.right:d<0&&c.current.top||d>0&&c.current.bottom;return p&&m?(clearTimeout(s.current),o.current=!1):(!m||o.current)&&i(),!o.current&&m}});function S7(e,t,n,r,o,s,i){const c=a.useRef(0),f=a.useRef(null),d=a.useRef(null),p=a.useRef(!1),m=ZO(t,n,r,o);function h(E,C){if(Wt.cancel(f.current),m(!1,C))return;const w=E;if(!w._virtualHandled)w._virtualHandled=!0;else return;c.current+=C,d.current=C,wI||w.preventDefault(),f.current=Wt(()=>{const R=p.current?10:1;i(c.current*R,!1),c.current=0})}function y(E,C){i(C,!0),wI||E.preventDefault()}const b=a.useRef(null),v=a.useRef(null);function $(E){if(!e)return;Wt.cancel(v.current),v.current=Wt(()=>{b.current=null},2);const{deltaX:C,deltaY:w,shiftKey:R}=E;let P=C,I=w;(b.current==="sx"||!b.current&&R&&w&&!C)&&(P=w,I=0,b.current="sx");const T=Math.abs(P),L=Math.abs(I);b.current===null&&(b.current=s&&T>L?"x":"y"),b.current==="y"?h(E,I):y(E,P)}function x(E){e&&(p.current=E.detail===d.current)}return[$,x]}function $7(e,t,n,r){const[o,s]=a.useMemo(()=>[new Map,[]],[e,n.id,r]);return(c,f=c)=>{let d=o.get(c),p=o.get(f);if(d===void 0||p===void 0){const m=e.length;for(let h=s.length;h<m;h+=1){const y=e[h],b=t(y);o.set(b,h);const v=n.get(b)??r;if(s[h]=(s[h-1]||0)+v,b===c&&(d=h),b===f&&(p=h),d!==void 0&&p!==void 0)break}}return{top:s[d-1]||0,bottom:s[p]}}}class w7{constructor(){Ce(this,"maps");Ce(this,"id",0);Ce(this,"diffRecords",new Map);this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function EI(e){const t=parseFloat(e);return isNaN(t)?0:t}function E7(e,t,n){const[r,o]=a.useState(0),s=a.useRef(new Map),i=a.useRef(new w7),c=a.useRef(0);function f(){c.current+=1}function d(m=!1){f();const h=()=>{let y=!1;s.current.forEach((b,v)=>{if(b&&b.offsetParent){const{offsetHeight:$}=b,{marginTop:x,marginBottom:E}=getComputedStyle(b),C=EI(x),w=EI(E),R=$+C+w;i.current.get(v)!==R&&(i.current.set(v,R),y=!0)}}),y&&o(b=>b+1)};if(m)h();else{c.current+=1;const y=c.current;Promise.resolve().then(()=>{y===c.current&&h()})}}function p(m,h){const y=e(m);s.current.get(y),h?(s.current.set(y,h),d()):s.current.delete(y)}return a.useEffect(()=>f,[]),[p,d,i.current,r]}const RI=14/15;function R7(e,t,n){const r=a.useRef(!1),o=a.useRef(0),s=a.useRef(0),i=a.useRef(null),c=a.useRef(null);let f;const d=h=>{if(r.current){const y=Math.ceil(h.touches[0].pageX),b=Math.ceil(h.touches[0].pageY);let v=o.current-y,$=s.current-b;const x=Math.abs(v)>Math.abs($);x?o.current=y:s.current=b;const E=n(x,x?v:$,!1,h);E&&h.preventDefault(),clearInterval(c.current),E&&(c.current=setInterval(()=>{x?v*=RI:$*=RI;const C=Math.trunc(x?v:$);(!n(x,C,!0)||Math.abs(C)<=.1)&&clearInterval(c.current)},16))}},p=()=>{r.current=!1,f()},m=h=>{f(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageX),s.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",d,{passive:!1}),i.current.addEventListener("touchend",p,{passive:!0}))};f=()=>{i.current&&(i.current.removeEventListener("touchmove",d),i.current.removeEventListener("touchend",p))},Qt(()=>(e&&t.current.addEventListener("touchstart",m,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",m),f(),clearInterval(c.current)}),[e])}function Am(e){return Math.floor(e**.5)}function sm(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function I7(e){let t=e;for(;t;){if(t.draggable)return!0;t=t.parentElement}return!1}function P7(e,t,n){a.useEffect(()=>{const r=t.current;if(e&&r){let o=!1,s,i;const c=()=>{Wt.cancel(s)},f=()=>{c(),s=Wt(()=>{n(i),f()})},d=()=>{o=!1,c()},p=h=>{if(I7(h.target)||h.button!==0)return;const y=h;y._virtualHandled||(y._virtualHandled=!0,o=!0)},m=h=>{if(o){const y=sm(h,!1),{top:b,bottom:v}=r.getBoundingClientRect();if(y<=b){const $=b-y;i=-Am($),f()}else if(y>=v){const $=y-v;i=Am($),f()}else c()}};return r.addEventListener("mousedown",p),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",m),r.ownerDocument.addEventListener("dragend",d),()=>{r.removeEventListener("mousedown",p),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",m),r.ownerDocument.removeEventListener("dragend",d),c()}}},[e])}function N7(e,t,n,r,o){const s=a.useRef(o);s.current=o,a.useEffect(()=>{const i=t.current;if(!e||!i||!n)return;const c=Math.min(r*1.2,n/4);let f=null,d=0;const p=()=>{f!==null&&(Wt.cancel(f),f=null),d=0},m=()=>{s.current(d),f=Wt(m)},h=()=>{if(d===0){p();return}f===null&&(f=Wt(m))},y=$=>{const x=$;if(x._virtualHandled){p();return}x._virtualHandled=!0;const{top:E,bottom:C}=i.getBoundingClientRect(),{clientY:w}=$;w<=E+c?(d=-Am(E+c-w),h()):w>=C-c?(d=Am(w-(C-c)),h()):p()},b=$=>{const x=$.relatedTarget;(!x||!i.contains(x))&&p()},v=i.ownerDocument;return i.addEventListener("dragover",y),i.addEventListener("dragleave",b),v.addEventListener("drop",p,!0),v.addEventListener("dragend",p,!0),()=>{p(),i.removeEventListener("dragover",y),i.removeEventListener("dragleave",b),v.removeEventListener("drop",p,!0),v.removeEventListener("dragend",p,!0)}},[e,n,r])}const T7=10;function M7(e,t){const n=typeof e=="function"?e(t):e;return Number.isFinite(n)?n:0}function O7(e,t,n,r,o,s,i,c,f){const d=a.useRef(void 0),[p,m]=a.useState(null);return Qt(()=>{if(p&&p.times<T7){if(!e.current){m(P=>({...P}));return}i();const{targetAlign:h,originAlign:y,offset:b}=p,v=p.index>=0?p.index:t.findIndex(P=>o(P)===p.key),$=h||y,x=M7(b,{getSize:s,align:$}),E=e.current.clientHeight;let C=v<0,w=h,R=null;if(E&&v>=0){let P=0,I=0,T=0;const L=Math.min(t.length-1,v);for(let M=0;M<=L;M+=1){const O=o(t[M]);I=P;const _=n.get(O);T=I+(_===void 0?r:_),P=T}let z=$==="top"?x:E-x;for(let M=L;M>=0;M-=1){const O=o(t[M]),_=n.get(O);if(_===void 0){C=!0;break}if(z-=_,z<=0)break}switch($){case"top":R=I-x;break;case"bottom":R=T-E+x;break;default:{const{scrollTop:M}=e.current,O=M+E;I<M?w="top":T>O&&(w="bottom")}}R!==null&&c(R),R!==p.lastTop&&(C=!0)}C&&m(P=>({...P,times:P.times+1,index:v,targetAlign:w,lastTop:R}))}},[p,e.current]),h=>{if(h==null){f();return}if(Wt.cancel(d.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y,b;const{align:v}=h;"index"in h?{index:y}=h:(b=h.key,y=t.findIndex(x=>o(x)===b));const{offset:$=0}=h;m({times:0,index:y,key:b,offset:$,originAlign:v})}}}function II(e,t,n){if(t<=0||n<=0)return 0;const o=Math.max(Math.min(e,n),0)/n;let s=Math.ceil(o*t);return s=Math.max(s,0),s=Math.min(s,t),s}const PI=a.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:o,scrollRange:s,onStartMove:i,onStopMove:c,onScroll:f,horizontal:d,spinSize:p,containerSize:m,style:h,thumbStyle:y,showScrollBar:b}=e,[v,$]=a.useState(!1),[x,E]=a.useState(null),[C,w]=a.useState(null),R=!r,P=a.useRef(null),I=a.useRef(null),[T,L]=a.useState(b),z=a.useRef(void 0),M=()=>{b===!0||b===!1||(clearTimeout(z.current),L(!0),z.current=setTimeout(()=>{L(!1)},3e3))},O=s-m||0,_=m-p||0,F=a.useMemo(()=>o===0||O===0?0:o/O*_,[o,O,_]),W=Z=>!!Z&&I.current?.contains(Z),q=Z=>{const X=P.current;if(!X)return;const J=X.getBoundingClientRect(),ne=sm(Z,d);let oe;if(Number.isFinite(ne)){if(d){const ae=R?J.left:J.right;if(!Number.isFinite(ae))return;oe=(R?ne-ae:ae-ne)-p/2}else{if(!Number.isFinite(J.top))return;oe=ne-J.top-p/2}f(II(oe,O,_),d)}},G=Z=>{Z.stopPropagation(),Z.preventDefault(),!(Z.button!==0||W(Z.target))&&q(Z)},j=a.useRef({top:F,dragging:v,pageY:x,startTop:C});j.current={top:F,dragging:v,pageY:x,startTop:C};const H=Ct(Z=>{$(!0),E(sm(Z,d)),w(j.current.top),i(),Z.stopPropagation(),Z.preventDefault()});a.useEffect(()=>{const Z=ne=>{ne.preventDefault()},X=P.current,J=I.current;return X.addEventListener("touchstart",Z,{passive:!1}),J.addEventListener("touchstart",H,{passive:!1}),()=>{X.removeEventListener("touchstart",Z),J.removeEventListener("touchstart",H)}},[H]);const k=a.useRef(void 0);k.current=O;const B=a.useRef(void 0);B.current=_,a.useEffect(()=>{if(v){let Z;const X=ne=>{const{dragging:oe,pageY:ae,startTop:pe}=j.current;Wt.cancel(Z);const fe=P.current.getBoundingClientRect(),le=m/(d?fe.width:fe.height);if(oe){const ie=(sm(ne,d)-ae)*le;let re=pe;!R&&d?re-=ie:re+=ie;const de=k.current,ge=B.current,se=II(re,de,ge);Z=Wt(()=>{f(se,d)})}},J=()=>{$(!1),c()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",J,{passive:!0}),window.addEventListener("touchend",J,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),Wt.cancel(Z)}}},[v]),a.useEffect(()=>(M(),()=>{clearTimeout(z.current)}),[o]),a.useImperativeHandle(t,()=>({delayHidden:M}));const D=`${n}-scrollbar`,K={position:"absolute",visibility:T?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(K,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,{height:"100%",width:p,[R?"left":"right"]:F})):(Object.assign(K,{width:8,top:0,bottom:0,[R?"right":"left"]:0}),Object.assign(Q,{width:"100%",height:p,top:F})),a.createElement("div",{ref:P,className:U(D,{[`${D}-horizontal`]:d,[`${D}-vertical`]:!d,[`${D}-visible`]:T}),style:{...K,...h},onMouseDown:G,onMouseMove:M},a.createElement("div",{ref:I,className:U(`${D}-thumb`,{[`${D}-thumb-moving`]:v}),style:{...Q,...y},onMouseDown:H}))}),z7=20;function NI(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,z7),Math.floor(n)}function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(this,arguments)}const A7=[],L7={overflowY:"auto",overflowAnchor:"none"};function e4(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:o,itemHeight:s,fullHeight:i=!0,style:c,data:f,children:d,itemKey:p,virtual:m,direction:h,scrollWidth:y,component:b="div",onScroll:v,onVirtualScroll:$,onVisibleChange:x,innerProps:E,extraRender:C,styles:w,showScrollBar:R="optional",...P}=e,I=a.useCallback(Be=>typeof p=="function"?p(Be):Be?.[p],[p]),[T,L,z,M]=E7(I),O=!!(m!==!1&&o&&s),_=a.useMemo(()=>Object.values(z.maps).reduce((Be,we)=>Be+we,0),[z.id,z.maps]),F=O&&f&&(Math.max(s*f.length,_)>o||!!y),W=h==="rtl",q=U(n,{[`${n}-rtl`]:W},r),G=f||A7,j=a.useRef(null),H=a.useRef(null),k=a.useRef(null),[B,D]=a.useState(0),[K,Q]=a.useState(0),[Z,X]=a.useState(!1),J=()=>{X(!0)},ne=()=>{X(!1)},oe={getKey:I};function ae(Be){D(we=>{let ke;typeof Be=="function"?ke=Be(we):ke=Be;const Re=Ie(ke);return j.current.scrollTop=Re,Re})}const pe=a.useRef({start:0,end:G.length}),fe=a.useRef(void 0),[le]=C7(G,I);fe.current=le;const{scrollHeight:ie,start:re,end:de,offset:ge}=a.useMemo(()=>{if(!O)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};if(!F)return{scrollHeight:H.current?.offsetHeight||0,start:0,end:G.length-1,offset:void 0};let Be=0,we,ke,Re;const Xe=G.length;for(let Ue=0;Ue<Xe;Ue+=1){const nt=G[Ue],zt=I(nt),ht=z.get(zt),Te=Be+(ht===void 0?s:ht);Te>=B&&we===void 0&&(we=Ue,ke=Be),Te>B+o&&Re===void 0&&(Re=Ue),Be=Te}return we===void 0&&(we=0,ke=0,Re=Math.ceil(o/s)),Re===void 0&&(Re=G.length-1),Re=Math.min(Re+1,G.length-1),{scrollHeight:Be,start:we,end:Re,offset:ke}},[F,O,B,G,M,o]);pe.current.start=re,pe.current.end=de,a.useLayoutEffect(()=>{const Be=z.getRecord();if(Be.size===1){const we=Array.from(Be.keys())[0],ke=Be.get(we),Re=G[re];if(Re&&ke===void 0&&I(Re)===we){const nt=z.get(we)-s;ae(zt=>zt+nt)}}z.resetRecord()},[ie]);const[se,ce]=a.useState({width:0,height:o}),xe=Be=>{ce({width:Be.offsetWidth,height:Be.offsetHeight})},Ee=a.useRef(null),Se=a.useRef(null),Fe=a.useMemo(()=>NI(se.width,y),[se.width,y]),qe=a.useMemo(()=>NI(se.height,ie),[se.height,ie]),Ne=ie-o,_e=a.useRef(Ne);_e.current=Ne;function Ie(Be){let we=Be;return Number.isNaN(_e.current)||(we=Math.min(we,_e.current)),we=Math.max(we,0),we}const me=B<=0,Le=B>=Ne,He=K<=0,Ae=K>=y,Oe=ZO(me,Le,He,Ae),st=()=>({x:W?-K:K,y:B}),je=a.useRef(st()),Je=Ct(Be=>{if($){const we={...st(),...Be};(je.current.x!==we.x||je.current.y!==we.y)&&($(we),je.current=we)}});function ze(Be,we){const ke=Be;we?(Qi.flushSync(()=>{Q(ke)}),Je()):ae(ke)}function Ve(Be){const{scrollTop:we}=Be.currentTarget;we!==B&&ae(we),v?.(Be),Je()}const Ke=Be=>{let we=Be;const ke=y?y-se.width:0;return we=Math.max(we,0),we=Math.min(we,ke),we},ot=Ct((Be,we)=>{we?(Qi.flushSync(()=>{Q(ke=>{const Re=ke+(W?-Be:Be);return Ke(Re)})}),Je()):ae(ke=>ke+Be)}),[Ge,dt]=S7(O,me,Le,He,Ae,!!y,ot);R7(O,j,(Be,we,ke,Re)=>{const Xe=Re;return Oe(Be,we,ke)?!1:!Xe||!Xe._virtualHandled?(Xe&&(Xe._virtualHandled=!0),Ge({preventDefault(){},deltaX:Be?we:0,deltaY:Be?0:we}),!0):!1}),P7(F,j,Be=>{ae(we=>we+Be)}),N7(F,j,o,s,Be=>{ae(we=>we+Be)}),Qt(()=>{function Be(ke){const Re=me&&ke.detail<0,Xe=Le&&ke.detail>0;O&&!Re&&!Xe&&ke.preventDefault()}const we=j.current;return we.addEventListener("wheel",Ge,{passive:!1}),we.addEventListener("DOMMouseScroll",dt,{passive:!0}),we.addEventListener("MozMousePixelScroll",Be,{passive:!1}),()=>{we.removeEventListener("wheel",Ge),we.removeEventListener("DOMMouseScroll",dt),we.removeEventListener("MozMousePixelScroll",Be)}},[O,me,Le]),Qt(()=>{if(y){const Be=Ke(K);Q(Be),Je({x:Be})}},[se.width,y]);const xt=()=>{Ee.current?.delayHidden(),Se.current?.delayHidden()},St=$7(G,I,z,s),Lt=O7(j,G,z,s,I,St,()=>L(!0),ae,xt);a.useImperativeHandle(t,()=>({nativeElement:k.current,getScrollInfo:st,scrollTo:Be=>{function we(ke){return ke&&typeof ke=="object"&&("left"in ke||"top"in ke)}we(Be)?(Be.left!==void 0&&Q(Ke(Be.left)),Lt(Be.top)):Lt(Be)}})),Qt(()=>{if(x){const Be=G.slice(re,de+1);x(Be,G)}},[re,de,G]);const gt=C?.({start:re,end:de,virtual:F,offsetX:K,scrollTop:B,offsetY:ge,rtl:W,getSize:St}),mt=v7(G,re,de,y,K,T,d,oe);let De=null;o&&(De={[i?"height":"maxHeight"]:o,...L7},O&&(De.overflowY="hidden",y&&(De.overflowX="hidden"),Z&&(De.pointerEvents="none")));const Ze={};return W&&(Ze.dir="rtl"),a.createElement("div",ex({ref:k,style:{...c,position:"relative"},className:q},Ze,P),a.createElement(bo,{onResize:xe},a.createElement(b,{className:`${n}-holder`,style:De,ref:j,onScroll:Ve,onMouseEnter:xt},a.createElement(JO,{prefixCls:n,height:ie,offsetX:K,offsetY:ge,scrollWidth:y,onInnerResize:L,ref:H,innerProps:E,rtl:W,extra:gt},mt))),F&&ie>o&&a.createElement(PI,{ref:Ee,prefixCls:n,scrollOffset:B,scrollRange:ie,rtl:W,onScroll:ze,onStartMove:J,onStopMove:ne,spinSize:qe,containerSize:se.height,style:w?.verticalScrollBar,thumbStyle:w?.verticalScrollBarThumb,showScrollBar:R}),F&&y>se.width&&a.createElement(PI,{ref:Se,prefixCls:n,scrollOffset:K,scrollRange:y,rtl:W,onScroll:ze,onStartMove:J,onStopMove:ne,spinSize:Fe,containerSize:se.width,horizontal:!0,style:w?.horizontalScrollBar,thumbStyle:w?.horizontalScrollBarThumb,showScrollBar:R}))}const Ph=a.forwardRef(e4);Ph.displayName="List";const D7=a.forwardRef((e,t)=>e4({...e,virtual:!1},t));D7.displayName="List";function B7(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qu.apply(this,arguments)}function Tp(e){return typeof e=="string"||typeof e=="number"}const _7=(e,t)=>{const{prefixCls:n,id:r,open:o,multiple:s,mode:i,searchValue:c,toggleOpen:f,notFoundContent:d,onPopupScroll:p,showScrollBar:m,lockOptions:h}=ul(),{maxCount:y,flattenOptions:b,onActiveValue:v,defaultActiveFirstOption:$,onSelect:x,menuItemSelectedIcon:E,rawValues:C,fieldNames:w,virtual:R,direction:P,listHeight:I,listItemHeight:T,optionRender:L,classNames:z,styles:M}=a.useContext(HS),O=`${n}-item`,_=ol(()=>b,[o,h],(le,ie)=>ie[0]&&!ie[1]),F=a.useRef(null),W=a.useMemo(()=>s&&U0(y)&&C?.size>=y,[s,y,C?.size]),q=le=>{le.preventDefault()},G=le=>{F.current?.scrollTo(typeof le=="number"?{index:le}:le)},j=a.useCallback(le=>i==="combobox"?!1:C.has(le),[i,[...C].toString(),C.size]),H=(le,ie=1)=>{const re=_.length;for(let de=0;de<re;de+=1){const ge=(le+de*ie+re)%re,{group:se,data:ce}=_[ge]||{};if(!se&&!ce?.disabled&&(j(ce.value)||!W))return ge}return-1},[k,B]=a.useState(()=>H(0)),D=(le,ie=!1)=>{B(le);const re={source:ie?"keyboard":"mouse"},de=_[le];if(!de){v(null,-1,re);return}v(de.value,le,re)};a.useEffect(()=>{D($!==!1?H(0):-1)},[_.length,c]);const K=a.useCallback(le=>i==="combobox"?String(le).toLowerCase()===c.toLowerCase():C.has(le),[i,c,[...C].toString(),C.size]);a.useEffect(()=>{let le;if(!s&&o&&C.size===1){const ie=Array.from(C)[0],re=_.findIndex(({data:de})=>c?String(de.value).startsWith(c):de.value===ie);re!==-1&&(D(re),le=setTimeout(()=>{G(re)}))}return o&&F.current?.scrollTo(void 0),()=>clearTimeout(le)},[o,c]);const Q=le=>{le!==void 0&&x(le,{selected:!C.has(le)}),s||f(!1)};a.useImperativeHandle(t,()=>({onKeyDown:le=>{const{which:ie,ctrlKey:re}=le;switch(ie){case vt.N:case vt.P:case vt.UP:case vt.DOWN:{let de=0;if(ie===vt.UP?de=-1:ie===vt.DOWN?de=1:B7()&&re&&(ie===vt.N?de=1:ie===vt.P&&(de=-1)),de!==0){const ge=H(k+de,de);G(ge),D(ge,!0)}break}case vt.TAB:case vt.ENTER:{const de=_[k];if(!de||de.data.disabled)return Q(void 0);!W||C.has(de.value)?Q(de.value):Q(void 0),o&&le.preventDefault();break}case vt.ESC:f(!1),o&&le.stopPropagation()}},onKeyUp:()=>{},scrollTo:le=>{G(le)}}));const[Z,X]=a.useMemo(()=>{let le=0,ie=null;const re=[],de=[];return _.forEach(ge=>{ge.group?(ie=ge,re.push(le),de.push(null)):(re.push(le+=1),de.push(ge.groupOption?ie:null))}),[re,de]},[_]);if(_.length===0)return a.createElement("div",{role:"listbox",id:`${r}_list`,className:`${O}-empty`,onMouseDown:q},d);const J=Object.keys(w).map(le=>w[le]),ne=le=>le.label;function oe(le,ie){const{group:re}=le;return{role:re?"presentation":"option",id:`${r}_list_${ie}`}}const ae=le=>{const ie=_[le];if(!ie)return null;const re=ie.data||{},{value:de,disabled:ge}=re,se=Hn(re,!0),ce=ne(ie);return a.createElement("div",Qu({"aria-label":Tp(ce)?String(ce):null,"aria-setsize":Z[Z.length-1]??0,"aria-posinset":Z[le]},se,{key:le},oe(ie,le),{"aria-selected":K(de),"aria-disabled":ge}),de)},pe=()=>{const le=[];return[k-1,k,k+1].forEach(ie=>{const re=_[ie];if(!re||re.group)return;const de=X[ie],ge=le[le.length-1];ge&&ge.group===de?ge.indexes.push(ie):le.push({group:de,indexes:[ie]})}),le.map(({group:ie,indexes:re})=>{if(!ie)return re.map(ae);const de=ne(ie);return a.createElement("div",{key:ie.key,role:"group","aria-label":ie.data.title??(Tp(de)?String(de):null)},re.map(ae))})},fe={role:"listbox",id:`${r}_list`};return a.createElement(a.Fragment,null,R&&a.createElement("div",Qu({},fe,{style:{height:0,width:0,overflow:"hidden"}}),pe()),a.createElement(Ph,{prefixCls:`${n}-dropdown-list`,itemKey:"key",ref:F,data:_,height:I,itemHeight:T,fullHeight:!1,onMouseDown:q,onScroll:p,virtual:R,direction:P,innerProps:R?null:fe,showScrollBar:m,className:z?.popup?.list,style:M?.popup?.list},(le,ie)=>{const{group:re,groupOption:de,data:ge,label:se,value:ce}=le,{key:xe}=ge;if(re){const ze=ge.title??(Tp(se)?se.toString():void 0);return a.createElement("div",{className:U(O,`${O}-group`,ge.className),title:ze},se!==void 0?se:xe)}const{disabled:Ee,title:Se,children:Fe,style:qe,className:Ne,..._e}=ge,Ie=dn(_e,J),me=j(ce),Le=Ee||!me&&W,He=`${O}-option`,Ae=U(O,He,Ne,z?.popup?.listItem,{[`${He}-grouped`]:de,[`${He}-active`]:k===ie&&!Le,[`${He}-disabled`]:Le,[`${He}-selected`]:me}),Oe=ne(le),st=!E||typeof E=="function"||me,je=typeof Oe=="number"?Oe:Oe||ce;let Je=Tp(je)?je.toString():void 0;return Se!==void 0&&(Je=Se),a.createElement("div",Qu({},Hn(Ie),R?{}:oe(le,ie),{"aria-selected":R?void 0:K(ce),"aria-disabled":Le,className:Ae,title:Je,onMouseMove:()=>{k===ie||Le||D(ie)},onClick:()=>{Le||Q(ce)},style:{...M?.popup?.listItem,...qe}}),a.createElement("div",{className:`${He}-content`},typeof L=="function"?L(le,{index:ie}):je),a.isValidElement(E)||me,st&&a.createElement(QO,{className:`${O}-option-state`,customizeIcon:E,customizeIconProps:{value:ce,disabled:Le,isSelected:me}},me?"✓":null))}))},F7=a.forwardRef(_7),k7=((e,t)=>{const n=a.useRef({values:new Map,options:new Map}),r=a.useMemo(()=>{const{values:s,options:i}=n.current,c=e.map(p=>p.label===void 0?{...p,label:s.get(p.value)?.label}:p),f=new Map,d=new Map;return c.forEach(p=>{f.set(p.value,p),d.set(p.value,t.get(p.value)||i.get(p.value))}),n.current.values=f,n.current.options=d,c},[e,t]),o=a.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,o]});function Ib(e,t){return GO(e).join("").toUpperCase().includes(t)}const H7=((e,t,n,r,o)=>a.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:i,value:c}=t,f=[],d=typeof r=="function",p=n.toUpperCase(),m=d?r:(y,b)=>o&&o.length?o.some(v=>Ib(b[v],p)):b[s]?Ib(b[i!=="children"?i:"label"],p):Ib(b[c],p),h=d?y=>q0(y):y=>y;return e.forEach(y=>{if(y[s]){if(m(n,h(y)))f.push(y);else{const v=y[s].filter($=>m(n,h($)));v.length&&f.push({...y,[s]:v})}return}m(n,h(y))&&f.push(y)}),f},[e,r,o,n,t]));function j7(e){const{key:t,props:{children:n,value:r,...o}}=e;return{key:t,value:r!==void 0?r:t,children:n,...o}}function t4(e,t=!1){return cr(e).map((n,r)=>{if(!a.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:s,props:{children:i,...c}}=n;return t||!o?j7(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...c,options:t4(i)}}).filter(n=>n)}const W7=(e,t,n,r,o)=>a.useMemo(()=>{let s=e;!e&&(s=t4(t));const c=new Map,f=new Map,d=(m,h,y)=>{y&&typeof y=="string"&&m.set(h[y],h)},p=(m,h=!1)=>{for(let y=0;y<m.length;y+=1){const b=m[y];!b[n.options]||h?(c.set(b[n.value],b),d(f,b,n.label),r.forEach(v=>{d(f,b,v)}),d(f,b,o)):p(b[n.options],!0)}};return p(s),{options:s,valueOptions:c,labelOptions:f}},[e,t,n,r,o]);function TI(e){const t=a.useRef(e);return t.current=e,a.useCallback((...r)=>t.current(...r),[])}function V7(e,t,n){const{filterOption:r,searchValue:o,optionFilterProp:s,filterSort:i,onSearch:c,autoClearSearchValue:f}=t;return a.useMemo(()=>{const d=typeof e=="object",p={filterOption:r,searchValue:o,optionFilterProp:s,filterSort:i,onSearch:c,autoClearSearchValue:f,...d?e:{}};return[d||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,p]},[n,e,r,o,s,i,c,f])}function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tx.apply(this,arguments)}const K7=["inputValue"];function U7(e){return!e||typeof e!="object"}const q7=a.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:o="rc-select",backfill:s,fieldNames:i,showSearch:c,searchValue:f,onSearch:d,autoClearSearchValue:p,filterOption:m,optionFilterProp:h,filterSort:y,onSelect:b,onDeselect:v,onActive:$,popupMatchSelectWidth:x=!0,optionLabelProp:E,options:C,optionRender:w,children:R,defaultActiveFirstOption:P,menuItemSelectedIcon:I,virtual:T,direction:L,listHeight:z=200,listItemHeight:M=20,labelRender:O,value:_,defaultValue:F,labelInValue:W,onChange:q,maxCount:G,classNames:j,styles:H,...k}=e,B={searchValue:f,onSearch:d,autoClearSearchValue:p,filterOption:m,optionFilterProp:h,filterSort:y},[D,K]=V7(c,B,r),{filterOption:Q,searchValue:Z,optionFilterProp:X,filterSort:J,onSearch:ne,autoClearSearchValue:oe=!0}=K,ae=a.useMemo(()=>X?Array.isArray(X)?X:[X]:[],[X]),pe=Xo(n),fe=J0(r),le=!!(!C&&R),ie=a.useMemo(()=>Q===void 0&&r==="combobox"?!1:Q,[Q,r]),re=a.useMemo(()=>VO(i,le),[JSON.stringify(i),le]),[de,ge]=Rn("",Z),se=de||"",ce=W7(C,R,re,ae,E),{valueOptions:xe,labelOptions:Ee,options:Se}=ce,Fe=a.useCallback(Re=>GO(Re).map(Ue=>{let nt,zt,ht,Te;U7(Ue)?nt=Ue:(zt=Ue.label,nt=Ue.value);const lt=xe.get(nt);return lt&&(zt===void 0&&(zt=lt?.[E||re.label]),ht=lt?.disabled,Te=lt?.title),{label:zt,value:nt,key:nt,disabled:ht,title:Te}}),[re,E,xe]),[qe,Ne]=Rn(F,_),_e=a.useMemo(()=>{const Xe=Fe(fe&&qe===null?[]:qe);return r==="combobox"&&t7(Xe[0]?.value)?[]:Xe},[qe,Fe,r,fe]),[Ie,me]=k7(_e,xe),Le=a.useMemo(()=>{if(!r&&Ie.length===1){const Re=Ie[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return Ie.map(Re=>({...Re,label:(typeof O=="function"?O(Re):Re.label)??Re.value}))},[r,Ie,O]),He=a.useMemo(()=>new Set(Ie.map(Re=>Re.value)),[Ie]);a.useEffect(()=>{if(r==="combobox"){const Re=Ie[0]?.value;ge(un(Re)?String(Re):"")}},[Ie]);const Ae=TI((Re,Xe)=>{const Ue=Xe??Re;return{[re.value]:Re,[re.label]:Ue}}),Oe=a.useMemo(()=>{if(r!=="tags")return Se;const Re=[...Se],Xe=Ue=>xe.has(Ue);return[...Ie].sort((Ue,nt)=>Ue.value<nt.value?-1:1).forEach(Ue=>{const nt=Ue.value;Xe(nt)||Re.push(Ae(nt,Ue.label))}),Re},[Ae,Se,xe,Ie,r]),st=H7(Oe,re,se,ie,ae),je=a.useMemo(()=>{const Re=Xe=>ae.length?ae.some(Ue=>Xe?.[Ue]===se):Xe?.value===se;return r!=="tags"||!se||st.some(Xe=>Re(Xe))||st.some(Xe=>Xe[re.value]===se)||xe.get(se)?.disabled?st:[Ae(se),...st]},[Ae,ae,r,st,se,re,xe]),Je=Re=>[...Re].sort((Ue,nt)=>J(Ue,nt,{searchValue:se})).map(Ue=>Array.isArray(Ue.options)?{...Ue,options:Ue.options.length>0?Je(Ue.options):Ue.options}:Ue),ze=a.useMemo(()=>J?Je(je):je,[je,J,se]),Ve=a.useMemo(()=>Yj(ze,{fieldNames:re,childrenAsData:le}),[ze,re,le]),Ke=Re=>{const Xe=Fe(Re);if(Ne(Xe),q&&(Xe.length!==Ie.length||Xe.some((Ue,nt)=>Ie[nt]?.value!==Ue?.value))){const Ue=W?Xe.map(({label:zt,value:ht})=>({label:zt,value:ht})):Xe.map(zt=>zt.value),nt=Xe.map(zt=>q0(me(zt.value)));q(fe?Ue:Ue[0],fe?nt:nt[0])}},[ot,Ge]=a.useState(null),[dt,xt]=a.useState(0),St=P!==void 0?P:r!=="combobox",Lt=a.useRef(void 0),gt=a.useCallback((Re,Xe,{source:Ue="keyboard"}={})=>{xt(Xe),s&&r==="combobox"&&Re!==null&&Ue==="keyboard"&&Ge(String(Re));const nt=Promise.resolve().then(()=>{Lt.current===nt&&$?.(Re)});Lt.current=nt},[s,r,$]),mt=(Re,Xe,Ue)=>{const nt=()=>{const zt=me(Re);return[W?{label:zt?.[re.label],value:Re}:Re,q0(zt)]};if(Xe&&b){const[zt,ht]=nt();b(zt,ht)}else if(!Xe&&v&&Ue!=="clear"){const[zt,ht]=nt();v(zt,ht)}},De=TI((Re,Xe)=>{let Ue;const nt=fe?Xe.selected:!0;nt?Ue=fe?[...Ie,Re]:[Re]:Ue=Ie.filter(zt=>zt.value!==Re),Ke(Ue),mt(Re,nt),r==="combobox"?Ge(""):(!J0||oe)&&(ge(""),Ge(""))}),Ze=(Re,Xe)=>{Ke(Re);const{type:Ue,values:nt}=Xe;(Ue==="remove"||Ue==="clear")&&nt.forEach(zt=>{mt(zt.value,!1,Ue)})},Be=(Re,Xe)=>{if(ge(Re),Ge(null),Xe.source==="submit"){const Ue=(Re||"").trim();if(Ue){if(xe.get(Ue)?.disabled){ge("");return}const nt=Array.from(new Set([...He,Ue]));Ke(nt),mt(Ue,!0),ge("")}return}Xe.source!=="blur"&&(r==="combobox"&&Ke(Re),ne?.(Re))},we=Re=>{let Xe=Re;r!=="tags"&&(Xe=Re.map(nt=>Ee.get(nt)?.value).filter(nt=>nt!==void 0)),r==="tags"&&(Xe=Xe.filter(nt=>!xe.get(nt)?.disabled));const Ue=Array.from(new Set([...He,...Xe]));Ke(Ue),Ue.forEach(nt=>{mt(nt,!0)})},ke=a.useMemo(()=>({...ce,flattenOptions:Ve,onActiveValue:gt,defaultActiveFirstOption:St,onSelect:De,menuItemSelectedIcon:I,rawValues:He,fieldNames:re,virtual:T!==!1&&x!==!1,direction:L,listHeight:z,listItemHeight:M,childrenAsData:le,maxCount:G,optionRender:w,classNames:j,styles:H}),[G,ce,Ve,gt,St,De,I,He,re,T,x,L,z,M,le,w,j,H]);return a.createElement(HS.Provider,{value:ke},a.createElement(y7,tx({},k,{id:pe,prefixCls:o,ref:t,omitDomProps:K7,mode:r,classNames:j,styles:H,displayValues:Le,onDisplayValuesChange:Ze,maxCount:G,direction:L,showSearch:D,searchValue:se,onSearch:Be,autoClearSearchValue:oe,onSearchSplit:we,popupMatchSelectWidth:x,OptionList:F7,emptyOptions:!Ve.length,activeValue:ot,activeDescendantId:`${pe}_list_${dt}`})))}),VS=q7;VS.Option=WS;VS.OptGroup=jS;const MI=(e,t,n)=>e===!1?null:e===!0?n:e&&t&&e[t]!==void 0?e[t]:n,Tc=(e,t,n)=>U({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Gd=(e,t)=>t||e,za=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new Cn(e).onBackground(t).toHexString(),G7=()=>{const[,e]=Dr(),[t]=br("Empty"),{colorBgContainer:n,colorFill:r,colorFillSecondary:o,colorFillTertiary:s,colorTextQuaternary:i}=e,{panelBgColor:c,borderColor:f,detailColor:d,shadowColor:p,iconColor:m}=a.useMemo(()=>({panelBgColor:za(s,n),borderColor:za(i,n),detailColor:za(r,n),shadowColor:za(o,n),iconColor:n}),[n,r,o,s,i]);return a.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,t?.description||"Empty"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.7)"},a.createElement("ellipse",{fillOpacity:".8",fill:p,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),a.createElement("path",{fill:f,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),a.createElement("path",{fill:c,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),a.createElement("path",{fill:d,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),a.createElement("path",{fill:d,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),a.createElement("g",{fill:m,transform:"translate(149.7 15.4)"},a.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),a.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},X7=()=>{const[,e]=Dr(),[t]=br("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:i,shadowColor:c,contentColor:f}=a.useMemo(()=>({borderColor:za(n,s),shadowColor:za(r,s),contentColor:za(o,s)}),[n,r,o,s]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,t?.description||"Empty"),a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),a.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:f}))))},Y7=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Q7=Zt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Jt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Y7(o)}),n4=a.createElement(G7,null),r4=a.createElement(X7,null),ls=a.forwardRef((e,t)=>{const{className:n,rootClassName:r,prefixCls:o,image:s,description:i,children:c,imageStyle:f,style:d,classNames:p,styles:m,...h}=e,{getPrefixCls:y,direction:b,className:v,style:$,classNames:x,styles:E,image:C}=Xt("empty"),w=y("empty",o),[R,P]=Q7(w),I=ut($),T=ut(d),[L,z]=qt([x,p],[E,I,m,T],{props:e}),[M]=br("Empty"),O=typeof i<"u"?i:M?.description,_=typeof O=="string"?O:"empty",F=s??C??n4;let W=null;typeof F=="string"?W=a.createElement("img",{draggable:!1,alt:_,src:F}):W=F;const q=a.useRef(null);return a.useImperativeHandle(t,()=>({nativeElement:q.current})),a.createElement("div",{ref:q,className:U(R,P,w,v,{[`${w}-normal`]:F===r4,[`${w}-rtl`]:b==="rtl"},n,r,L.root),style:z.root,...h},a.createElement("div",{className:U(`${w}-image`,L.image),style:{...f,...z.image}},W),tt(O)&&a.createElement("div",{className:U(`${w}-description`,L.description),style:z.description},O),tt(c)&&a.createElement("div",{className:U(`${w}-footer`,L.footer),style:z.footer},c))});ls.PRESENTED_IMAGE_DEFAULT=n4;ls.PRESENTED_IMAGE_SIMPLE=r4;const o4=e=>{const{componentName:t}=e,{getPrefixCls:n}=a.useContext(Ot),r=n("empty");switch(t){case"Table":case"List":return ee.createElement(ls,{image:ls.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ee.createElement(ls,{image:ls.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ee.createElement(ls,null)}},J7=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function Z7(e,t){return e||J7(t)}const OI=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:400,fontSize:n,lineHeight:r,boxSizing:"border-box"}},e9=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...an(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,[`
|
|
204
|
+
${o}${c}bottomLeft,
|
|
205
|
+
${s}${c}bottomLeft
|
|
206
|
+
`]:{animationName:$h},[`
|
|
207
|
+
${o}${c}topLeft,
|
|
208
|
+
${s}${c}topLeft,
|
|
209
|
+
${o}${c}topRight,
|
|
210
|
+
${s}${c}topRight
|
|
211
|
+
`]:{animationName:Eh},[`${i}${c}bottomLeft`]:{animationName:wh},[`
|
|
212
|
+
${i}${c}topLeft,
|
|
213
|
+
${i}${c}topRight
|
|
214
|
+
`]:{animationName:Rh},"&-hidden":{display:"none"},[`${n}-dropdown-list-scrollbar`]:{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},[r]:{...OI(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...zr},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...OI(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Os(e,"slide-up"),Os(e,"slide-down"),Nm(e,"move-up"),Nm(e,"move-down")]},t9=e=>{const{antCls:t,componentCls:n}=e,r={background:"transparent"},o=["> input[disabled]","> textarea[disabled]",`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${n}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${n}-placeholder`]:{display:"none"},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${n}-filled ${n}-content`]:{[`${t}-input-filled`]:r},[`&${n}-disabled ${n}-content`]:{[o]:r,"input[disabled], textarea[disabled]":r}}}},zI=4,n9=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:i,lineWidth:c,lineType:f,colorIcon:d,colorIconHover:p,inputPaddingHorizontalBase:m,antCls:h}=e,[y,b]=Bt(h,"select");return{"&-multiple":{[y("multi-item-background")]:e.multipleItemBg,[y("multi-item-border-color")]:"transparent",[y("multi-item-border-radius")]:e.borderRadiusSM,[y("multi-item-height")]:e.multipleItemHeight,[y("multi-padding-base")]:`calc((${b("height")} - ${b("multi-item-height")}) / 2)`,[y("multi-padding-vertical")]:`calc(${b("multi-padding-base")} - ${i} - ${c})`,[y("multi-item-padding-horizontal")]:`calc(${m} - ${b("multi-padding-vertical")} - ${c} * 2)`,paddingBlock:b("multi-padding-vertical"),paddingInlineStart:`calc(${b("multi-padding-base")} - ${c})`,[`${t}-prefix`]:{marginInlineStart:b("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:b("line-height"),insetInlineStart:b("multi-item-padding-horizontal"),width:`calc(100% - ${b("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:b("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${zI}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
215
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:b("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${b("multi-item-height")} - ${c} * 2)`,border:`${c} ${f} ${b("multi-item-border-color")}`,display:"flex",marginBlock:i,marginInlineEnd:n(i).mul(2).equal(),background:b("multi-item-background"),borderRadius:b("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:s,transition:["height","line-height","padding"].map(v=>`${v} ${e.motionDurationSlow}`).join(","),"&-content":{...zr,marginInlineEnd:s},"&-remove":{...Ad(),display:"inline-flex",alignItems:"center",color:d,fontWeight:700,fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}},[`${t}-input`]:{lineHeight:n(i).mul(2).add(b("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:zI,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[y("multi-item-height")]:e.multipleItemHeightSM,[y("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[y("multi-item-height")]:e.multipleItemHeightLG,[y("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[y("multi-item-border-color")]:e.colorSplit,[y("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[y("multi-item-border-color")]:"transparent"}}}}},Pb=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=Bt(r,"select"),{border:s,borderHover:i,borderActive:c,borderOutline:f}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:s,[o("background-color")]:d,[o("affix-color")]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:i,[o("background-color")]:t.backgroundHover||d},[`&${n}-focused`]:{[o("border-color")]:c,[o("background-color")]:t.backgroundActive||d,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${f}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},Mp=(e,t,n,r,o,s)=>{const{componentCls:i}=e;return{[`&${i}-${t}`]:[Pb(e,n),{[`&${i}-status-error`]:Pb(e,{...n,...r}),[`&${i}-status-warning`]:Pb(e,{...n,...o})},s]}},Nb=(e,t)=>({outline:`${te(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:te(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),r9=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:o,showArrowPaddingInlineEnd:s,iconCls:i,antCls:c,max:f,calc:d}=e,[p,m]=Bt(c,"select"),h=f(d(s).sub(o).equal(),0);return{[t]:[{[p("border-radius")]:e.borderRadius,[p("border-color")]:"#000",[p("border-size")]:e.lineWidth,[p("background-color")]:e.colorBgContainer,[p("font-size")]:e.fontSize,[p("line-height")]:e.lineHeight,[p("font-height")]:n,[p("color")]:e.colorText,[p("affix-color")]:e.colorText,[p("height")]:r,[p("padding-horizontal")]:d(e.paddingSM).sub(e.lineWidth).equal(),[p("padding-vertical")]:`calc((${m("height")} - ${m("font-height")}) / 2 - ${m("border-size")})`,...an(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:m("border-radius"),borderWidth:m("border-size"),borderStyle:e.lineType,borderColor:m("border-color"),background:m("background-color"),fontSize:m("font-size"),lineHeight:m("line-height"),color:m("color"),paddingInline:m("padding-horizontal"),paddingBlock:m("padding-vertical"),[`${t}-prefix`]:{color:m("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...zr,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:h,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,transition:["opacity","color"].map(y=>`${y} ${e.motionDurationMid} ease`).join(", "),"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[i]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,[p("color")]:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[p("height")]:e.controlHeightSM,[p("padding-horizontal")]:d(e.paddingXS).sub(e.lineWidth).equal(),[p("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:m("padding-horizontal")}},"&-lg":{[p("height")]:e.controlHeightLG,[p("font-size")]:e.fontSizeLG,[p("line-height")]:e.lineHeightLG,[p("font-height")]:e.fontHeightLG,[p("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:m("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...zr,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},n9(e),Mp(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Mp(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Mp(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:Nb(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:Nb(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:Nb(e,e.colorWarning)}),Mp(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),t9(e)]}},o9=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,lineWidthFocus:o,controlHeight:s,controlHeightSM:i,controlHeightLG:c,paddingXXS:f,controlPaddingHorizontal:d,zIndexPopupBase:p,colorText:m,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:b,colorBgContainer:v,colorFillSecondary:$,colorBgContainerDisabled:x,colorTextDisabled:E,colorPrimaryHover:C,colorPrimary:w,controlOutline:R}=e,P=f*2,I=r*2,T=Math.min(s-P,s-I),L=Math.min(i-P,i-I),z=Math.min(c-P,c-I),M=Math.floor(f/2);return{lineWidthFocus:o===0?0:r,INTERNAL_FIXED_ITEM_MARGIN:M,zIndexPopup:p+50,optionSelectedColor:m,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:b,optionPadding:`${(s-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:s,selectorBg:v,clearBg:v,singleItemHeightLG:c,multipleItemBg:$,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:L,multipleItemHeightLG:z,multipleSelectorBgDisabled:x,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:w,activeOutlineColor:R,selectAffixPadding:f}},s9=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,s={[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0,pointerEvents:"none"},[`&${n}-allow-clear:not(${n}-show-arrow):not(${n}-customize) ${n}-content`]:{marginInlineEnd:e.showArrowPaddingInlineEnd}};return{[n]:{...an(e),[`${n}-selection-item`]:{flex:1,fontWeight:400,position:"relative",userSelect:"none",...zr,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),padding:0,background:"transparent",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontFamily:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",appearance:"none",border:0,cursor:"pointer",opacity:0,transition:["color","opacity"].map(i=>`${i} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...eo(e)}},"@media(hover:none)":s,"&:hover, &:focus-within":s},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},i9=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},s9(e),e9(e),{[`${t}-rtl`]:{direction:"rtl"}},Wd(e,{focusElCls:`${t}-focused`})]},a9=Zt("Select",(e,{rootPrefixCls:t})=>{const n=Jt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[i9(n),r9(n)]},o9,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var l9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}const c9=(e,t)=>a.createElement(_t,nx({},e,{ref:t,icon:l9})),KS=a.forwardRef(c9);var u9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rx.apply(this,arguments)}const d9=(e,t)=>a.createElement(_t,rx({},e,{ref:t,icon:u9})),Xd=a.forwardRef(d9);var f9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function ox(){return ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ox.apply(this,arguments)}const p9=(e,t)=>a.createElement(_t,ox({},e,{ref:t,icon:f9})),Nh=a.forwardRef(p9);function m9({suffix:e,contextSuffix:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:o,contextMenuItemSelectedIcon:s,removeIcon:i,contextRemoveIcon:c,loading:f,loadingIcon:d,contextLoadingIcon:p,searchIcon:m,contextSearchIcon:h,multiple:y,hasFeedback:b,showSuffix:v,feedbackIcon:$,showArrow:x,componentName:E}){return a.useMemo(()=>{const C=wr(n,r,a.createElement(ll,null)),w=T=>!tt(T)&&!b&&!x?null:a.createElement(a.Fragment,null,v!==!1&&T,b&&$);let R=null;e!==void 0?R=Tt(e)?T=>w(e(T)):w(e):f?R=w(wr(d,p,a.createElement(oi,{spin:!0,"aria-hidden":"true"}))):R=T=>{const{open:L,showSearch:z}=T;if(L&&z)return w(wr(m,h,a.createElement(Nh,{"aria-hidden":"true"})));const M=wr(t,a.createElement(Xd,{"aria-hidden":"true"}));return w(Tt(M)?M(T):M)};const P=wr(o,s,y?a.createElement(KS,null):null),I=wr(i,c,a.createElement(ii,null));return{clearIcon:C,suffix:R,itemIcon:P,removeIcon:I}},[e,t,n,r,o,s,i,c,f,d,p,m,h,y,b,v,$,x])}function h9(e){return ee.useMemo(()=>{if(e)return(...t)=>ee.createElement(ta,{space:!0,form:!0},e.apply(void 0,t))},[e])}function g9(e,t){return t!==void 0?t:e!==null}const s4="SECRET_COMBOBOX_MODE_DO_NOT_USE",y9=(e,t)=>{const{prefixCls:n,bordered:r,className:o,rootClassName:s,getPopupContainer:i,popupClassName:c,dropdownClassName:f,listHeight:d=256,placement:p,listItemHeight:m,size:h,disabled:y,notFoundContent:b,status:v,builtinPlacements:$,dropdownMatchSelectWidth:x,popupMatchSelectWidth:E,direction:C,style:w,allowClear:R,variant:P,popupStyle:I,dropdownStyle:T,transitionName:L,tagRender:z,maxCount:M,prefix:O,suffix:_,suffixIcon:F,dropdownRender:W,popupRender:q,onDropdownVisibleChange:G,onOpenChange:j,styles:H,classNames:k,clearIcon:B,showArrow:D,showSearch:K,autoComplete:Q,...Z}=e,{getPopupContainer:X,getPrefixCls:J,renderEmpty:ne,direction:oe,virtual:ae,popupMatchSelectWidth:pe,popupOverflow:fe,autoComplete:le}=a.useContext(Ot),[ie]=br("global"),{autoComplete:re,showSearch:de,allowClear:ge,style:se,styles:ce,className:xe,classNames:Ee,clearIcon:Se,loadingIcon:Fe,menuItemSelectedIcon:qe,removeIcon:Ne,suffix:_e,suffixIcon:Ie}=Xt("select"),[,me]=Dr(),Le=m??me?.controlHeight,He=J("select",n),Ae=J(),Oe=C??oe,{compactSize:st,compactItemClassnames:je}=aa(He,Oe),[Je,ze]=no("select",P,r),Ve=er(He),[Ke,ot]=a9(He,Ve),Ge=a.useMemo(()=>{const{mode:nn}=e;if(nn!=="combobox")return nn===s4?"combobox":nn},[e.mode]),dt=Ge==="multiple"||Ge==="tags",xt=_!==void 0?_:F,St=g9(xt,D),Lt=E??x??pe,gt=h9(q||W),mt=j||G,{status:De,hasFeedback:Ze,isFormItemInput:Be,feedbackIcon:we}=a.useContext(Rr),ke=Gd(De,v);let Re;b!==void 0?Re=b:Ge==="combobox"?Re=null:Re=ne?.("Select")||a.createElement(o4,{componentName:"Select"});const{suffix:Xe,itemIcon:Ue,removeIcon:nt}=m9({componentName:"Select",...Z,suffix:xt,multiple:dt,hasFeedback:Ze,feedbackIcon:we,showSuffix:St,showArrow:D,searchIcon:MI(K,"searchIcon"),contextLoadingIcon:Fe,contextMenuItemSelectedIcon:qe,contextRemoveIcon:Ne,contextSearchIcon:MI(de,"searchIcon"),contextSuffix:_e!==void 0?_e:Ie}),zt=xh({allowClear:R,clearIcon:B,contextAllowClear:Ge==="combobox"?le?.allowClear:ge,contextClearIcon:Se,defaultLabel:ie.clear,componentName:"Select"}),ht=K??de,Te=dn(Z,["suffix","suffixIcon","itemIcon"]),lt=or(nn=>h??st??nn),at=a.useContext(Er),Vt=y??at,Kt={...e,variant:Je,status:ke,disabled:Vt,size:lt},yn=ut(se),At=ut(w),[Gt,Yt]=qt([Ee,k],[ce,yn,H,At],{props:Kt},{popup:{_default:"root"}}),ct=U(Gt.popup.root,c,f,{[`${He}-dropdown-${Oe}`]:Oe==="rtl"},s,ot,Ve,Ke),Nt={...Yt.popup?.root,...I??T},tn=U({[`${He}-lg`]:lt==="large",[`${He}-sm`]:lt==="small",[`${He}-rtl`]:Oe==="rtl",[`${He}-${Je}`]:ze,[`${He}-in-form-item`]:Be},Tc(He,ke,Ze),je,xe,o,Gt.root,s,ot,Ve,Ke),hn=a.useMemo(()=>p!==void 0?p:Oe==="rtl"?"bottomRight":"bottomLeft",[p,Oe]),[It]=Fc("SelectLike",Yt.popup.root?.zIndex??Nt.zIndex);return a.createElement(VS,{ref:t,virtual:ae,classNames:Gt,styles:Yt,showSearch:ht,autoComplete:Q??re,...Te,style:Yt.root,popupMatchSelectWidth:Lt,transitionName:Ls(Ae,"slide-up",L),builtinPlacements:Z7($,fe),listHeight:d,listItemHeight:Le,mode:Ge,prefixCls:He,placement:hn,direction:Oe,prefix:O,suffix:Xe,menuItemSelectedIcon:Ue,removeIcon:nt,allowClear:zt,notFoundContent:Re,className:tn,getPopupContainer:i||X,popupClassName:ct,disabled:Vt,popupStyle:{...Yt.popup.root,...Nt,zIndex:It},maxCount:dt?M:void 0,tagRender:dt?z:void 0,popupRender:gt,onPopupVisibleChange:mt})},dl=a.forwardRef(y9),b9=HO(dl,"popupAlign");dl.SECRET_COMBOBOX_MODE_DO_NOT_USE=s4;dl.Option=WS;dl.OptGroup=jS;dl._InternalPanelDoNotUseOrYouWillBeFired=b9;const na=["xxxl","xxl","xl","lg","md","sm","xs"],i4=[].concat(na).reverse(),v9=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),x9=e=>{const t=e,n=[].concat(na).reverse();return n.forEach((r,o)=>{const s=r.toUpperCase(),i=`screen${s}Min`,c=`screen${s}`;if(!(t[i]<=t[c]))throw new Error(`${i}<=${c} fails : !(${t[i]}<=${t[c]})`);if(o<n.length-1){const f=`screen${s}Max`;if(!(t[c]<=t[f]))throw new Error(`${c}<=${f} fails : !(${t[c]}<=${t[f]})`);const p=`screen${n[o+1].toUpperCase()}Min`;if(!(t[f]<=t[p]))throw new Error(`${f}<=${p} fails : !(${t[f]}<=${t[p]})`)}}),e},sx=(e,t)=>{if(t){for(const n of na)if(e[n]&&t?.[n]!==void 0)return t[n]}},C9=()=>{const[,e]=Dr(),{xs:t,sm:n,md:r,lg:o,xl:s,xxl:i,xxxl:c}=v9(x9(e));return ee.useMemo(()=>{const f={xs:t,sm:n,md:r,lg:o,xl:s,xxl:i,xxxl:c},d=new Map;let p=-1,m;return{responsiveMap:f,matchHandlers:{},getSnapshot(){return m??(m=Object.fromEntries(Object.entries(f).map(([h,y])=>[h,window.matchMedia(y).matches]))),m},getServerSnapshot:()=>{},dispatch(h){return(!m||na.some(y=>m?.[y]!==h[y]))&&(m=h,d.forEach(y=>{y(h)})),d.size>=1},subscribe(h){return d.size||this.register(),p+=1,d.set(p,h),h(m),p},unsubscribe(h){d.delete(h),d.size||this.unregister()},register(){Object.entries(f).forEach(([h,y])=>{const b=({matches:$})=>{this.dispatch({...m,[h]:$})},v=window.matchMedia(y);Tt(v.addEventListener)&&v.addEventListener("change",b),this.matchHandlers[y]={mql:v,listener:b},b(v)})},unregister(){Object.values(f).forEach(h=>{const y=this.matchHandlers[h];Tt(y?.mql.removeEventListener)&&y.mql.removeEventListener("change",y?.listener)}),d.clear()}}},[t,n,r,o,s,i,c])};function Yd(e=!0,t={}){const[n]=a.useState(t),r=a.useRef(t),o=C9(),s=a.useCallback(d=>{const p=o.subscribe(m=>{r.current=m,d()});return()=>{o.unsubscribe(p)}},[o]),i=a.useCallback(()=>e?o.getSnapshot?.()??n:n,[o,e,n]),c=a.useCallback(()=>o.getServerSnapshot?.()??n,[o,n]),f=a.useSyncExternalStore(s,i,c);return e?f:r.current}const Mc=e=>tt(e)?Tt(e)?e():e:null,US=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:s,className:i,style:c}=e;return a.createElement("div",{id:r,className:U(`${n}-container`,o?.container,i),style:{...s?.container,...c},role:"tooltip"},typeof t=="function"?t():t)},Xl={shiftX:64,adjustY:1},Yl={adjustX:1,shiftY:!0},Ho=[0,0],S9={left:{points:["cr","cl"],overflow:Yl,offset:[-4,0],targetOffset:Ho},right:{points:["cl","cr"],overflow:Yl,offset:[4,0],targetOffset:Ho},top:{points:["bc","tc"],overflow:Xl,offset:[0,-4],targetOffset:Ho},bottom:{points:["tc","bc"],overflow:Xl,offset:[0,4],targetOffset:Ho},topLeft:{points:["bl","tl"],overflow:Xl,offset:[0,-4],targetOffset:Ho},leftTop:{points:["tr","tl"],overflow:Yl,offset:[-4,0],targetOffset:Ho},topRight:{points:["br","tr"],overflow:Xl,offset:[0,-4],targetOffset:Ho},rightTop:{points:["tl","tr"],overflow:Yl,offset:[4,0],targetOffset:Ho},bottomRight:{points:["tr","br"],overflow:Xl,offset:[0,4],targetOffset:Ho},rightBottom:{points:["bl","br"],overflow:Yl,offset:[4,0],targetOffset:Ho},bottomLeft:{points:["tl","bl"],overflow:Xl,offset:[0,4],targetOffset:Ho},leftBottom:{points:["br","bl"],overflow:Yl,offset:[-4,0],targetOffset:Ho}};function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ix.apply(this,arguments)}const $9=a.forwardRef((e,t)=>{const{trigger:n=["hover","focus"],mouseEnterDelay:r=0,mouseLeaveDelay:o=.1,prefixCls:s="rc-tooltip",children:i,onVisibleChange:c,afterVisibleChange:f,motion:d,placement:p="right",align:m={},destroyOnHidden:h=!1,defaultVisible:y,getTooltipContainer:b,arrowContent:v,overlay:$,id:x,showArrow:E=!0,classNames:C,styles:w,...R}=e,P=Xo(x),I=a.useRef(null);a.useImperativeHandle(t,()=>I.current);const T={...R};"visible"in e&&(T.popupVisible=e.visible);const L=a.useMemo(()=>{if(!E)return!1;const M=E===!0?{}:E;return{...M,className:U(M.className,C?.arrow),style:{...M.style,...w?.arrow},content:M.content??v}},[E,C?.arrow,w?.arrow,v]),z=({open:M})=>{const O=a.Children.only(i),W={"aria-describedby":[O.props["aria-describedby"],$&&M?P:void 0].filter(Boolean).join(" ")||void 0};return a.cloneElement(O,W)};return a.createElement(vh,ix({popupClassName:C?.root,prefixCls:s,popup:a.createElement(US,{key:"content",prefixCls:s,id:P,classNames:C,styles:w},$),action:n,builtinPlacements:S9,popupPlacement:p,ref:I,popupAlign:m,getPopupContainer:b,onOpenChange:c,afterOpenChange:f,popupMotion:d,defaultPopupVisible:y,autoDestroy:h,mouseLeaveDelay:o,popupStyle:w?.root,mouseEnterDelay:r,arrow:L,uniqueContainerClassName:C?.uniqueContainer,uniqueContainerStyle:w?.uniqueContainer},T),z)});function qS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,i=o,c=r*1/Math.sqrt(2),f=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),m=2*o-d,h=p,y=2*o-c,b=f,v=2*o-s,$=i,x=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),E=r*(Math.sqrt(2)-1),C=`polygon(${E}px 100%, 50% ${E}px, ${2*o-E}px 100%, ${E}px 100%)`,w=`path('M ${s} ${i} A ${r} ${r} 0 0 0 ${c} ${f} L ${d} ${p} A ${n} ${n} 0 0 1 ${m} ${h} L ${y} ${b} A ${r} ${r} 0 0 0 ${v} ${$} Z')`;return{arrowShadowWidth:x,arrowPath:w,arrowPolygon:C}}const w9=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:i,borderRadiusXS:c,calc:f}=e,d={content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(c)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return n&&(d.boxShadow=n),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":d}},a4=8;function Th(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?a4:r}}const GS=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:i,antCls:c}=e,[f]=Bt(c,"tooltip"),{arrowDistance:d=0,arrowShadow:p=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...w9(e,t,p?o:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[f("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{[f("arrow-offset-x")]:`calc(100% - ${te(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[f("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{[f("arrow-offset-x")]:`calc(100% - ${te(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}}}};function E9(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=Rt(r)?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const i={...s,...o};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const AI={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"]}},R9={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"]}},I9=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l4(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s,visibleFirst:i}=e,c=t/2,f={},d=Th({contentRadius:s,limitVerticalRadius:!0});return Object.keys(AI).forEach(p=>{const h={...r&&R9[p]||AI[p],offset:[0,0],dynamicInset:!0};switch(f[p]=h,I9.has(p)&&(h.autoArrow=!1),p){case"top":case"topLeft":case"topRight":h.offset[1]=-c-o;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=c+o;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-c-o;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=c+o;break}if(r)switch(p){case"topLeft":case"bottomLeft":h.offset[0]=-d.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":h.offset[0]=d.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":h.offset[1]=-d.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":h.offset[1]=d.arrowOffsetHorizontal*2-c;break}h.overflow=E9(p,d,t,n),i&&(h.htmlRegion="visibleFirst")}),f}const XS=ee.createContext(!1),YS=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ee.useMemo(()=>{const r=n(e),o=n(t);return{...o,...r,show:r.show??o.show??!0}},[e,t])},LI="50%",P9=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:s,tooltipBorderRadius:i,zIndexPopup:c,controlHeight:f,dropShadowPopover:d,paddingSM:p,paddingXS:m,arrowOffsetHorizontal:h,sizePopupArrow:y,antCls:b}=e,[v,$]=Bt(b,"tooltip"),x=t(i).add(y).add(h).equal(),C={minWidth:t(i).mul(2).add(y).equal(),minHeight:f,padding:`${te(e.calc(p).div(2).equal())} ${te(m)}`,color:$("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:i,boxSizing:"border-box"},w={[v("valid-offset-x")]:$("arrow-offset-x","var(--arrow-x)"),transformOrigin:[$("valid-offset-x",LI),`var(--arrow-y, ${LI})`].join(" ")};return[{[n]:{...an(e),position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:d,willChange:"transform",...w,"&-hidden":{display:"none"},[v("arrow-background-color")]:s,[`${n}-container`]:[C,sO(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-container`]:{borderRadius:e.min(i,a4)}},...H2(e,(R,{darkColor:P})=>({[`&${n}-${R}`]:{[`${n}-container`]:{backgroundColor:P},[`${n}-arrow`]:{[v("arrow-background-color")]:P}}})),"&-rtl":{direction:"rtl"}}},GS(e,$("arrow-background-color"),{arrowShadow:!1}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...C,...w,position:"absolute",zIndex:t(c).sub(1).equal(),filter:d,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},N9=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Th({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...qS(Jt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),c4=(e,t,n=!0)=>Zt("Tooltip",o=>{const{borderRadius:s,colorTextLightSolid:i,colorBgSpotlight:c,maxWidth:f}=o,d=Jt(o,{tooltipMaxWidth:f,tooltipColor:i,tooltipBorderRadius:s,tooltipBg:c});return[P9(d),jd(o,"zoom-big-fast")]},N9,{resetStyle:!1,injectStyle:n})(e,t),T9=zs.map(e=>`${e}-inverse`),M9=["success","processing","error","default","warning"];function u4(e,t=!0){return t?[].concat(jt(T9),jt(zs)).includes(e):zs.includes(e)}function O9(e){return M9.includes(e)}const d4=(e,t,n)=>{const r=u4(n),[o]=Bt(e,"tooltip"),s=U({[`${t}-${n}`]:n&&r}),i={},c={},f=hH(n).toRgb(),p=(.299*f.r+.587*f.g+.114*f.b)/255<.5?"#FFF":"#000";return n&&!r&&(i.background=n,i[o("overlay-color")]=p,c[o("arrow-background-color")]=n),{className:s,overlayStyle:i,arrowStyle:c}},z9=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:s,overlayInnerStyle:i,classNames:c,styles:f}=e,{getPrefixCls:d}=a.useContext(Ot),p=d("tooltip",t),m=d(),h=er(p),[y,b]=c4(p,h),v=d4(m,p,s),$=v.arrowStyle,x=a.useMemo(()=>({container:{...i,...v.overlayStyle}}),[i,v.overlayStyle]),E={...e,placement:r},[C,w]=qt([c],[x,f],{props:E}),R=U(h,y,b,p,`${p}-pure`,`${p}-placement-${r}`,n,v.className);return a.createElement("div",{className:R,style:$},a.createElement("div",{className:`${p}-arrow`}),a.createElement(US,{...e,className:y,prefixCls:p,classNames:C,styles:w},o))},A9=a.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:o,color:s,children:i,afterOpenChange:c,arrow:f,destroyTooltipOnHide:d,destroyOnHidden:p,title:m,overlay:h,trigger:y,builtinPlacements:b,autoAdjustOverflow:v=!0,motion:$,getPopupContainer:x,placement:E="top",mouseEnterDelay:C,mouseLeaveDelay:w,rootClassName:R,styles:P,classNames:I,onOpenChange:T,overlayInnerStyle:L,overlayStyle:z,overlayClassName:M,...O}=e,[,_]=Dr(),F=e["data-popover-inject"],{getPopupContainer:W,getPrefixCls:q,direction:G,...j}=Xt("tooltip"),{className:H,style:k,classNames:B,styles:D,arrow:K,trigger:Q,mouseEnterDelay:Z,mouseLeaveDelay:X}=F?{}:j,J=C??Z??.1,ne=w??X??.1,oe=YS(f,K),ae=oe.show,pe=y||Q||"hover",fe=x||o||W,le=p??!!d,ie=a.useContext(XS);ia();const re=a.useRef(null),de=()=>{re.current?.forceAlign()};a.useImperativeHandle(t,()=>({forceAlign:de,nativeElement:re.current?.nativeElement,popupElement:re.current?.popupElement}));const[ge,se]=Rn(e.defaultOpen??!1,e.open),ce=!m&&!h&&m!==0,xe=mt=>{se(ce?!1:mt),!ce&&T&&T(mt)},Ee=a.useMemo(()=>b||l4({arrowPointAtCenter:oe?.pointAtCenter??!1,autoAdjustOverflow:v,arrowWidth:ae?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0}),[oe,b,_,ae,v]),Se=a.useMemo(()=>m===0?m:h||m||"",[h,m]),Fe=a.createElement(ta,{space:!0,form:!0},Tt(Se)?Se():Se),qe={...e,trigger:pe,builtinPlacements:Ee,getPopupContainer:fe,destroyOnHidden:le,mouseEnterDelay:J,mouseLeaveDelay:ne},Ne=ut(k),_e=ut(z),[Ie,me]=qt([B,I],[D,Ne,P,_e],{props:qe}),Le=q("tooltip",n),He=q();let Ae=ge;(!("open"in e)&&ce||ie)&&(Ae=!1);const Oe=a.isValidElement(i)&&!CM(i)?i:a.createElement("span",null,i),st=Oe.props,je=!st.className||typeof st.className=="string"?U(st.className,r||`${Le}-open`):st.className,Je=er(Le),[ze,Ve]=c4(Le,Je,!F),Ke=d4(He,Le,s),ot=Ke.arrowStyle,Ge=U(Je,ze,Ve),dt=U(M,{[`${Le}-rtl`]:G==="rtl"},Ke.className,R,Ge,H,Ie.root),[xt,St]=Fc("Tooltip",O.zIndex),Lt={...me.container,...L,...Ke.overlayStyle},gt=a.createElement($9,{unique:!0,...O,zIndex:xt,showArrow:ae,placement:E,mouseEnterDelay:J,mouseLeaveDelay:ne,prefixCls:Le,classNames:{root:dt,container:Ie.container,arrow:Ie.arrow,uniqueContainer:U(Ge,Ie.container)},styles:{root:{...ot,...me.root},container:Lt,uniqueContainer:Lt,arrow:me.arrow},ref:re,overlay:Fe,visible:Ae,onVisibleChange:xe,afterVisibleChange:c,arrowContent:a.createElement("span",{className:`${Le}-arrow-content`}),motion:{motionName:Ls(He,"zoom-big-fast",typeof $?.motionName=="string"?$?.motionName:void 0),motionDeadline:1e3},trigger:pe,builtinPlacements:Ee,getTooltipContainer:fe,destroyOnHidden:le},Ae&&!O.disabled?hr(Oe,{className:je}):Oe);return a.createElement(Fd.Provider,{value:St},gt)}),rr=A9;rr._InternalPanelDoNotUseOrYouWillBeFired=z9;rr.UniqueProvider=$M;const DI="50%",L9=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:s,dropShadowPopover:i,colorTextHeading:c,borderRadiusLG:f,zIndexPopup:d,titleMarginBottom:p,colorBgElevated:m,popoverBg:h,titleBorderBottom:y,innerContentPadding:b,titlePadding:v,antCls:$}=e,[x,E]=Bt($,"tooltip");return[{[t]:{...an(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:400,whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:i,willChange:"transform",[x("valid-offset-x")]:E("arrow-offset-x","var(--arrow-x)"),transformOrigin:[E("valid-offset-x",DI),`var(--arrow-y, ${DI})`].join(" "),[x("arrow-background-color")]:m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:f,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:p,color:c,fontWeight:o,borderBottom:y,padding:v},[`${t}-content`]:{color:n,padding:b}}},GS(e,E("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},D9=e=>{const{componentCls:t,antCls:n}=e,[r]=Bt(n,"tooltip");return{[t]:zs.map(o=>{const s=e[`${o}6`];return{[`&${t}-${o}`]:{[r("arrow-background-color")]:s,[`${t}-container`]:{backgroundColor:s},[`${t}-arrow`]:{background:"transparent"}}}})}},B9=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:s,zIndexPopupBase:i,borderRadiusLG:c,marginXS:f,lineType:d,colorSplit:p,paddingSM:m}=e,h=n-r,y=h/2,b=h/2-t,v=o;return{titleMinWidth:177,zIndexPopup:i+30,...qS(e),...Th({contentRadius:c,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${y}px ${v}px ${b}px`:0,titleBorderBottom:s?`${t}px ${d} ${p}`:"none",innerContentPadding:s?`${m}px ${v}px`:0}},f4=Zt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Jt(e,{popoverBg:t,popoverColor:n});return[L9(r),D9(r),jd(r,"zoom-big")]},B9,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),p4=e=>{const{title:t,content:n,prefixCls:r,classNames:o,styles:s}=e;return!tt(t)&&!tt(n)?null:a.createElement(a.Fragment,null,tt(t)&&a.createElement("div",{className:U(`${r}-title`,o?.title),style:s?.title},t),tt(n)&&a.createElement("div",{className:U(`${r}-content`,o?.content),style:s?.content},n))},_9=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:s="top",title:i,content:c,children:f,classNames:d,styles:p}=e,m=Mc(i),h=Mc(c),y={...e,placement:s},[b,v]=qt([d],[p],{props:y}),$=U(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return a.createElement("div",{className:$,style:o},a.createElement("div",{className:`${n}-arrow`}),a.createElement(US,{...e,className:t,prefixCls:n,classNames:b,styles:v},f||a.createElement(p4,{prefixCls:n,title:m,content:h,classNames:b,styles:v})))},m4=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=a.useContext(Ot),s=o("popover",t),[i,c]=f4(s);return a.createElement(_9,{...r,prefixCls:s,hashId:i,className:U(n,c)})},F9=a.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:s,placement:i="top",trigger:c,children:f,mouseEnterDelay:d,mouseLeaveDelay:p,onOpenChange:m,overlayStyle:h={},styles:y,classNames:b,motion:v,arrow:$,...x}=e,{getPrefixCls:E,className:C,style:w,classNames:R,styles:P,arrow:I,trigger:T,mouseEnterDelay:L,mouseLeaveDelay:z}=Xt("popover"),M=d??L??.1,O=p??z??.1,_=E("popover",n),[F,W]=f4(_),q=E(),G=YS($,I),j=c||T||"hover",H={...e,placement:i,trigger:j,mouseEnterDelay:M,mouseLeaveDelay:O,overlayStyle:h,styles:y,classNames:b},k=ut(w),B=ut(h),[D,K]=qt([R,b],[P,k,y,B],{props:H}),Q=U(s,F,W,C,D.root),[Z,X]=Rn(e.defaultOpen??!1,e.open),J=ae=>{X(ae),m?.(ae)},ne=Mc(r),oe=Mc(o);return a.createElement(rr,{unique:!1,arrow:G,placement:i,trigger:j,mouseEnterDelay:M,mouseLeaveDelay:O,...x,prefixCls:_,classNames:{root:Q,container:D.container,arrow:D.arrow},styles:{root:K.root,container:K.container,arrow:K.arrow},ref:t,open:Z,onOpenChange:J,overlay:tt(ne)||tt(oe)?a.createElement(p4,{prefixCls:_,title:ne,content:oe,classNames:D,styles:K}):null,motion:{motionName:Ls(q,"zoom-big",typeof v?.motionName=="string"?v?.motionName:void 0)},"data-popover-inject":!0},f)}),h4=F9;h4._InternalPanelDoNotUseOrYouWillBeFired=m4;var k9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}const H9=(e,t)=>a.createElement(_t,ax({},e,{ref:t,icon:k9})),vd=a.forwardRef(H9),{ESC:j9,TAB:W9}=vt;function V9({open:e,triggerRef:t,onOpenChange:n,autoFocus:r,overlayRef:o}){const s=a.useRef(!1),i=()=>{e&&(t.current?.focus?.(),n?.(!1))},c=d=>o.current?.focus?(o.current.focus(d),s.current=!0,!0):!1,f=d=>{switch(d.keyCode){case j9:i();break;case W9:{let p=!1;s.current||(p=c()),p?d.preventDefault():i();break}}};a.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Wt(()=>c({preventScroll:!0}),3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const K9=a.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:o}=e,s=a.useMemo(()=>{let c;return typeof n=="function"?c=n():c=n,c},[n]),i=ur(t,Fs(s));return ee.createElement(ee.Fragment,null,r&&ee.createElement("div",{className:`${o}-arrow`}),ee.cloneElement(s,{ref:ri(s)?i:void 0}))}),Ql={adjustX:1,adjustY:1},Jl=[0,0],U9={topLeft:{points:["bl","tl"],overflow:Ql,offset:[0,-4],targetOffset:Jl},top:{points:["bc","tc"],overflow:Ql,offset:[0,-4],targetOffset:Jl},topRight:{points:["br","tr"],overflow:Ql,offset:[0,-4],targetOffset:Jl},bottomLeft:{points:["tl","bl"],overflow:Ql,offset:[0,4],targetOffset:Jl},bottom:{points:["tc","bc"],overflow:Ql,offset:[0,4],targetOffset:Jl},bottomRight:{points:["tr","br"],overflow:Ql,offset:[0,4],targetOffset:Jl}};function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lx.apply(this,arguments)}const g4=ee.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:o,animation:s,align:i,placement:c="bottomLeft",placements:f=U9,getPopupContainer:d,showAction:p,hideAction:m,overlayClassName:h,overlayStyle:y,open:b,trigger:v=["hover"],autoFocus:$,overlay:x,children:E,onOpenChange:C,disabled:w,...R}=e,[P,I]=ee.useState(),T="open"in e?b:P,L=s?`${r}-${s}`:o,z=ee.useRef(null),M=ee.useRef(null),O=ee.useRef(null);ee.useImperativeHandle(t,()=>z.current);const _=Q=>{I(Q),C?.(Q)};V9({open:T,triggerRef:O,onOpenChange:_,autoFocus:$,overlayRef:M});const F=Q=>{const{onOverlayClick:Z}=e;I(!1),Z&&Z(Q)},W=()=>ee.createElement(K9,{ref:M,overlay:x,prefixCls:r,arrow:n}),q=()=>typeof x=="function"?W:W(),G=()=>{const{minOverlayWidthMatchTrigger:Q,alignPoint:Z}=e;return"minOverlayWidthMatchTrigger"in e?Q:!Z},j=()=>{const{openClassName:Q}=e;return Q!==void 0?Q:`${r}-open`},H=E,k=U(H.props?.className,T&&j()),B={className:k,ref:ur(O,Fs(H))},D=ri(H)?ee.cloneElement(H,B):ee.createElement("span",{className:k,ref:O},ee.cloneElement(H,{className:k}));let K=m;return!K&&v.indexOf("contextMenu")!==-1&&(K=["click"]),ee.createElement(vh,lx({builtinPlacements:f},R,{prefixCls:r,ref:z,popupClassName:U(h,{[`${r}-show-arrow`]:n}),popupStyle:y,action:v,showAction:p,hideAction:K,popupPlacement:c,popupAlign:i,popupMotion:{motionName:L},popupVisible:T,stretch:G()?"minWidth":"",popup:q(),onOpenChange:_,onPopupClick:F,getPopupContainer:d}),D)}),y4=a.createContext(null);function b4(e,t){return`${e}-${t}`}function v4(e){const t=a.useContext(y4);return b4(t,e)}const hs=a.createContext(null);function q9(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o)}),n}function xd({children:e,locked:t,...n}){const r=a.useContext(hs),o=ol(()=>q9(r,n),[r,n],(s,i)=>!t&&(s[0]!==i[0]||!ps(s[1],i[1],!0)));return a.createElement(hs.Provider,{value:o},e)}const G9=[],x4=a.createContext(null);function Mh(){return a.useContext(x4)}const C4=a.createContext(G9);function Hc(e){const t=a.useContext(C4);return a.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const S4=a.createContext(null),QS=a.createContext({}),{LEFT:cx,RIGHT:ux,UP:dx,DOWN:im,ENTER:am,ESC:lm,HOME:Ou,END:zu}=vt,BI=[dx,im,cx,ux];function X9(e,t,n,r){const o="prev",s="next",i="children",c="parent";if(e==="inline"&&r===am)return{inlineTrigger:!0};const f={[dx]:o,[im]:s},d={[cx]:n?s:o,[ux]:n?o:s,[im]:i,[am]:i},p={[dx]:o,[im]:s,[am]:i,[lm]:c,[cx]:n?i:c,[ux]:n?c:i};switch({inline:f,horizontal:d,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p}[`${e}${t?"":"Sub"}`]?.[r]){case o:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}function Y9(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Q9(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function JS(e,t){return rS(e,!0).filter(r=>t.has(r))}function _I(e,t,n,r=1){if(!e)return null;const o=JS(e,t),s=o.length;let i=o.findIndex(c=>n===c);return r<0?i===-1?i=s-1:i-=1:r>0&&(i+=1),i=(i+s)%s,o[i]}const Lm=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(s=>{const i=document.querySelector(`[data-menu-id='${b4(t,s)}']`);i&&(n.add(i),o.set(i,s),r.set(s,i))}),{elements:n,key2element:r,element2key:o}};function J9(e,t,n,r,o,s,i,c,f,d,p){const m=a.useRef(void 0),h=a.useRef(void 0);h.current=t;const y=()=>{Wt.cancel(m.current)};return a.useEffect(()=>()=>{y()},[]),b=>{const{which:v}=b;if(v===lm&&e!=="inline"&&b.target===o.current){d(),p?.(b);return}if([...BI,am,lm,Ou,zu].includes(v)){const $=s();let x=Lm($,r);const{elements:E,key2element:C,element2key:w}=x,R=C.get(t),P=Q9(R,E),I=w.get(P),T=X9(e,i(I,!0).length===1,n,v);if(!T&&v!==Ou&&v!==zu)return;(BI.includes(v)||[Ou,zu].includes(v))&&b.preventDefault();const L=z=>{if(z){let M=z;const O=z.querySelector("a");O?.getAttribute("href")&&(M=O);const _=w.get(z);c(_),y(),m.current=Wt(()=>{h.current===_&&M.focus()})}};if([Ou,zu].includes(v)||T.sibling||!P){let z;!P||e==="inline"?z=o.current:z=Y9(P);let M;const O=JS(z,E);v===Ou?M=O[0]:v===zu?M=O[O.length-1]:M=_I(z,E,P,T.offset),L(M)}else if((T.inlineTrigger||T.offset>0)&&P.getAttribute("aria-disabled")==="true"){p?.(b);return}else if(T.inlineTrigger)f(I);else if(T.offset>0)f(I,!0),y(),m.current=Wt(()=>{x=Lm($,r);const z=P.getAttribute("aria-controls"),M=document.getElementById(z),O=_I(M,x.elements);L(O)},5);else if(T.offset<0){const z=i(I,!0),M=z[z.length-2],O=C.get(M);v===lm&&O&&b.stopPropagation(),f(M,!1),L(O)}}p?.(b)}}function Z9(e){Promise.resolve().then(e)}const ZS="__RC_UTIL_PATH_SPLIT__",FI=e=>e.join(ZS),eW=e=>e.split(ZS),fx="rc-menu-more";function tW(){const[e,t]=a.useState({}),n=a.useRef(new Map),r=a.useRef(new Map),[o,s]=a.useState([]),i=a.useRef(0),c=a.useRef(!1),f=()=>{c.current||t({})},d=a.useCallback(($,x)=>{const E=FI(x);r.current.set(E,$),n.current.set($,E),i.current+=1;const C=i.current;Z9(()=>{C===i.current&&f()})},[]),p=a.useCallback(($,x)=>{const E=FI(x);r.current.delete(E),n.current.delete($)},[]),m=a.useCallback($=>{s($)},[]),h=a.useCallback(($,x)=>{const E=n.current.get($)||"",C=eW(E);return x&&o.includes(C[0])&&C.unshift(fx),C},[o]),y=a.useCallback(($,x)=>$.filter(E=>E!==void 0).some(E=>h(E,!0).includes(x)),[h,e]),b=()=>{const $=[...n.current.keys()];return o.length&&$.push(fx),$},v=a.useCallback($=>{const x=`${n.current.get($)}${ZS}`,E=new Set;return[...r.current.keys()].forEach(C=>{C.startsWith(x)&&E.add(r.current.get(C))}),E},[]);return a.useEffect(()=>(c.current=!1,()=>{c.current=!0}),[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:h,getKeys:b,getSubPathKeys:v}}function ju(e){const t=a.useRef(e);t.current=e;const n=a.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function $4(e,t,n,r){const{activeKey:o,onActive:s,onInactive:i}=a.useContext(hs),c={active:o===e};return t||(c.onMouseEnter=f=>{n?.({key:e,domEvent:f}),s(e)},c.onMouseLeave=f=>{r?.({key:e,domEvent:f}),i(e)}),c}function w4(e){const{mode:t,rtl:n,inlineIndent:r}=a.useContext(hs);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function E4({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=a.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function Dm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(kn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cd.apply(this,arguments)}class nW extends a.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,s=dn(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return kn(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(ni.Item,Cd({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const rW=a.forwardRef((e,t)=>{const{style:n,className:r,eventKey:o,warnKey:s,disabled:i,itemIcon:c,children:f,itemData:d,role:p,onMouseEnter:m,onMouseLeave:h,onClick:y,onKeyDown:b,onFocus:v,...$}=e,x=v4(o),{prefixCls:E,onItemClick:C,disabled:w,overflowDisabled:R,itemIcon:P,selectedKeys:I,onActive:T}=a.useContext(hs),{_internalRenderMenuItem:L}=a.useContext(QS),z=`${E}-item`,M=a.useRef(null),O=a.useRef(null),_=w||i,F=Yo(t,O),W=Hc(o),q=J=>{const ne=d||{key:o||"",label:f,itemIcon:c,extra:e.extra,title:e.title};return{key:o,keyPath:[...W].reverse(),item:M.current,domEvent:J,itemData:d||ne}},G=c||P,{active:j,...H}=$4(o,_,m,h),k=I.includes(o),B=w4(W.length),D=J=>{if(_)return;const ne=q(J);y?.(Dm(ne)),C(ne)},K=J=>{if(b?.(J),!_&&J.which===vt.ENTER){const ne=q(J);y?.(Dm(ne)),C(ne)}},Q=J=>{T(o),v?.(J)},Z={};e.role==="option"&&(Z["aria-selected"]=k);let X=a.createElement(nW,Cd({ref:M,elementRef:F,role:p===null?"none":p||"menuitem",tabIndex:i?null:-1,"data-menu-id":R&&x?null:x},dn($,["extra"]),H,Z,{component:"li","aria-disabled":_,style:{...B,...n},className:U(z,{[`${z}-active`]:j,[`${z}-selected`]:k,[`${z}-disabled`]:_},r),onClick:D,onKeyDown:K,onFocus:Q}),f,a.createElement(E4,{props:{...e,isSelected:k},icon:G}));return L&&(X=L(X,e,{selected:k})),X});function oW(e,t){const{eventKey:n}=e,r=Mh(),o=Hc(n);return a.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o)}},[o]),r?null:a.createElement(rW,Cd({},e,{ref:t}))}const Qd=a.forwardRef(oW);function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},px.apply(this,arguments)}const sW=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:s,rtl:i}=a.useContext(hs);return a.createElement("ul",px({className:U(o,i&&`${o}-rtl`,`${o}-sub`,`${o}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},R4=a.forwardRef(sW);function e$(e,t){return cr(e).map((n,r)=>{if(a.isValidElement(n)){const{key:o}=n;let s=n.props?.eventKey??o;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const c={key:s,eventKey:s};return a.cloneElement(n,c)}return n})}const Kr={adjustX:1,adjustY:1},iW={topLeft:{points:["bl","tl"],overflow:Kr},topRight:{points:["br","tr"],overflow:Kr},bottomLeft:{points:["tl","bl"],overflow:Kr},bottomRight:{points:["tr","br"],overflow:Kr},leftTop:{points:["tr","tl"],overflow:Kr},leftBottom:{points:["br","bl"],overflow:Kr},rightTop:{points:["tl","tr"],overflow:Kr},rightBottom:{points:["bl","br"],overflow:Kr}},aW={topLeft:{points:["bl","tl"],overflow:Kr},topRight:{points:["br","tr"],overflow:Kr},bottomLeft:{points:["tl","bl"],overflow:Kr},bottomRight:{points:["tr","br"],overflow:Kr},rightTop:{points:["tr","tl"],overflow:Kr},rightBottom:{points:["br","bl"],overflow:Kr},leftTop:{points:["tl","tr"],overflow:Kr},leftBottom:{points:["bl","br"],overflow:Kr}};function I4(e,t,n){if(t)return t;if(n)return n[e]||n.other}const lW={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function cW({prefixCls:e,visible:t,children:n,popup:r,popupStyle:o,popupClassName:s,popupOffset:i,disabled:c,mode:f,onVisibleChange:d}){const{getPopupContainer:p,rtl:m,subMenuOpenDelay:h,subMenuCloseDelay:y,builtinPlacements:b,triggerSubMenuAction:v,forceSubMenuRender:$,rootClassName:x,motion:E,defaultMotions:C}=a.useContext(hs),[w,R]=a.useState(!1),P=m?{...aW,...b}:{...iW,...b},I=lW[f],T=I4(f,E,C),L=a.useRef(T);f!=="inline"&&(L.current=T);const z={...L.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},M=a.useRef(void 0);return a.useEffect(()=>(M.current=Wt(()=>{R(t)}),()=>{Wt.cancel(M.current)}),[t]),a.createElement(vh,{prefixCls:e,popupClassName:U(`${e}-popup`,{[`${e}-rtl`]:m},s,x),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:P,popupPlacement:I,popupVisible:w,popup:r,popupStyle:o,popupAlign:i&&{offset:i},action:c?[]:[v],mouseEnterDelay:h,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:$,popupMotion:z,fresh:!0},n)}function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mx.apply(this,arguments)}function uW({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:s,forceSubMenuRender:i,motion:c,defaultMotions:f,mode:d}=a.useContext(hs),p=a.useRef(!1);p.current=d===o;const[m,h]=a.useState(!p.current),y=p.current?t:!1;a.useEffect(()=>{p.current&&h(!1)},[d]);const b={...I4(o,c,f)};n.length>1&&(b.motionAppear=!1);const v=b.onVisibleChanged;return b.onVisibleChanged=$=>(!p.current&&!$&&h(!0),v?.($)),m?null:a.createElement(xd,{mode:o,locked:!p.current},a.createElement(Ar,mx({visible:y},b,{forceRender:i,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:$,style:x})=>a.createElement(R4,{id:e,className:$,style:x},r)))}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}const dW=a.forwardRef((e,t)=>{const{style:n,className:r,styles:o,classNames:s,title:i,itemTitle:c,eventKey:f,warnKey:d,disabled:p,internalPopupClose:m,children:h,itemIcon:y,expandIcon:b,popupClassName:v,popupOffset:$,popupStyle:x,onClick:E,onMouseEnter:C,onMouseLeave:w,onTitleClick:R,onTitleMouseEnter:P,onTitleMouseLeave:I,popupRender:T,...L}=e,z=v4(f),{prefixCls:M,mode:O,openKeys:_,disabled:F,overflowDisabled:W,activeKey:q,selectedKeys:G,itemIcon:j,expandIcon:H,onItemClick:k,onOpenChange:B,onActive:D,popupRender:K}=a.useContext(hs),{_internalRenderSubMenuItem:Q}=a.useContext(QS),{isSubPathKey:Z}=a.useContext(S4),X=Hc(),J=`${M}-submenu`,ne=F||p,oe=a.useRef(null),ae=a.useRef(null),pe=y??j,fe=b??H,le=_.includes(f),ie=!W&&le,re=Z(G,f),{active:de,...ge}=$4(f,ne,P,I),[se,ce]=a.useState(!1),xe=ze=>{ne||ce(ze)},Ee=ze=>{xe(!0),C?.({key:f,domEvent:ze})},Se=ze=>{xe(!1),w?.({key:f,domEvent:ze})},Fe=a.useMemo(()=>de||(O!=="inline"?se||Z([q],f):!1),[O,de,q,se,f,Z]),qe=w4(X.length),Ne=ze=>{ne||(R?.({key:f,domEvent:ze}),O==="inline"&&B(f,!le))},_e=ju(ze=>{E?.(Dm(ze)),k(ze)}),Ie=ze=>{O!=="inline"&&B(f,ze)},me=()=>{D(f)},Le=z&&`${z}-popup`,He=a.useMemo(()=>a.createElement(E4,{icon:O!=="horizontal"?fe:void 0,props:{...e,isOpen:ie,isSubMenu:!0}},a.createElement("i",{className:`${J}-arrow`})),[O,fe,e,ie,J]);let Ae=a.createElement("div",Sd({role:"menuitem",style:{...qe,...o?.subItemTitle},className:U(`${J}-title`,s?.subItemTitle),tabIndex:ne?null:-1,ref:oe,title:c??(typeof i=="string"?i:null),"data-menu-id":W&&z?null:z,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":ne,onClick:Ne,onFocus:me},ge),i,He);const Oe=a.useRef(O);O!=="inline"&&X.length>1?Oe.current="vertical":Oe.current=O;const st=Oe.current,je=a.useMemo(()=>{const ze=a.createElement(xd,{classNames:s,styles:o,mode:st==="horizontal"?"vertical":st},a.createElement(R4,{id:Le,ref:ae},h)),Ve=T||K;return Ve?Ve(ze,{item:e,keys:X}):ze},[T,K,X,Le,h,e,st]);if(!W){const ze=Oe.current;Ae=a.createElement(cW,{mode:ze,prefixCls:J,visible:!m&&ie&&O!=="inline",popupClassName:v,popupOffset:$,popupStyle:x,popup:je,disabled:ne,onVisibleChange:Ie},Ae)}let Je=a.createElement(ni.Item,Sd({ref:t,role:"none"},L,{component:"li",style:{...o?.subItem,...n},className:U(J,`${J}-${O}`,s?.subItem,r,{[`${J}-open`]:ie,[`${J}-active`]:Fe,[`${J}-selected`]:re,[`${J}-disabled`]:ne}),onMouseEnter:Ee,onMouseLeave:Se}),Ae,!W&&a.createElement(uW,{id:Le,open:ie,keyPath:X},h));return Q&&(Je=Q(Je,e,{selected:re,active:Fe,open:ie,disabled:ne})),a.createElement(xd,{classNames:s,styles:o,disabled:ne,onItemClick:_e,mode:O==="horizontal"?"vertical":O,itemIcon:pe,expandIcon:fe},Je)}),Oh=a.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=Hc(n),s=e$(r,o),i=Mh();a.useEffect(()=>{if(i)return i.registerPath(n,o),()=>{i.unregisterPath(n,o)}},[o]);let c;return i?c=s:c=a.createElement(dW,Sd({ref:t},e),s),a.createElement(C4.Provider,{value:o},c)});function t$({className:e,style:t}){const{prefixCls:n}=a.useContext(hs);return Mh()?null:a.createElement("li",{role:"separator",className:U(`${n}-item-divider`,e),style:t})}function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bm.apply(this,arguments)}const fW=a.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:s,...i}=e,{prefixCls:c,classNames:f,styles:d}=a.useContext(hs),p=`${c}-item-group`;return a.createElement("li",Bm({ref:t,role:"presentation"},i,{onClick:m=>m.stopPropagation(),className:U(p,n)}),a.createElement("div",{role:"presentation",className:U(`${p}-title`,f?.listTitle),style:d?.listTitle,title:typeof r=="string"?r:void 0},r),a.createElement("ul",{role:"group",className:U(`${p}-list`,f?.list),style:d?.list},s))}),n$=a.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=Hc(n),s=e$(r,o);return Mh()?s:a.createElement(fW,Bm({ref:t},dn(e,["warnKey"])),s)});function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rc.apply(this,arguments)}function hx(e,t,n){const{item:r,group:o,submenu:s,divider:i}=t;return(e||[]).map((c,f)=>{if(c&&typeof c=="object"){const{label:d,children:p,key:m,type:h,extra:y,...b}=c,v=m??`tmp-${f}`;if(p||h==="group"){if(h==="group")return a.createElement(o,rc({key:v},b,{title:d}),hx(p,t,n));const{title:x,...E}=b;return a.createElement(s,rc({key:v},E,{title:d,itemTitle:typeof x=="string"?x:void 0}),hx(p,t,n))}if(h==="divider")return a.createElement(i,rc({key:v},b));const $=tt(y);return a.createElement(r,rc({key:v},b,{extra:y,itemData:{...c,key:v}}),$?a.createElement(a.Fragment,null,a.createElement("span",{className:`${n}-item-label`},d),a.createElement("span",{className:`${n}-item-extra`},y)):d)}return null}).filter(c=>c)}function kI(e,t,n,r,o){let s=e;const i={divider:t$,item:Qd,group:n$,submenu:Oh,...r};return t&&(s=hx(t,i,o)),e$(s,n)}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(this,arguments)}const Pi=[],pW=a.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:o,className:s,styles:i,classNames:c,tabIndex:f=0,items:d,children:p,direction:m,id:h,mode:y="vertical",inlineCollapsed:b,disabled:v,disabledOverflow:$,subMenuOpenDelay:x=.1,subMenuCloseDelay:E=.1,forceSubMenuRender:C,defaultOpenKeys:w,openKeys:R,activeKey:P,defaultActiveFirst:I,selectable:T=!0,multiple:L=!1,defaultSelectedKeys:z,selectedKeys:M,onSelect:O,onDeselect:_,inlineIndent:F=24,motion:W,defaultMotions:q,triggerSubMenuAction:G="hover",builtinPlacements:j,itemIcon:H,expandIcon:k,overflowedIndicator:B="...",overflowedIndicatorPopupClassName:D,getPopupContainer:K,onClick:Q,onOpenChange:Z,onKeyDown:X,openAnimation:J,openTransitionName:ne,_internalRenderMenuItem:oe,_internalRenderSubMenuItem:ae,_internalComponents:pe,popupRender:fe,...le}=e,[ie,re]=a.useMemo(()=>[kI(p,d,Pi,pe,n),kI(p,d,Pi,{},n)],[p,d,pe]),[de,ge]=a.useState(!1),se=a.useRef(null),ce=Xo(),xe=h??`rc-menu-uuid-${ce}`,Ee=m==="rtl",[Se,Fe]=Rn(w,R),qe=Se||Pi,Ne=(At,Gt=!1)=>{function Yt(){Fe(At),Z?.(At)}Gt?Qi.flushSync(Yt):Yt()},[_e,Ie]=a.useState(qe),me=a.useRef(!1),[Le,He]=a.useMemo(()=>(y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1],[y,b]),Ae=Le==="inline",[Oe,st]=a.useState(Le),[je,Je]=a.useState(He);a.useEffect(()=>{st(Le),Je(He),me.current&&(Ae?Fe(_e):Ne(Pi))},[Le,He]);const[ze,Ve]=a.useState(0),Ke=ze>=ie.length-1||Oe!=="horizontal"||$;a.useEffect(()=>{Ae&&Ie(qe)},[qe]),a.useEffect(()=>(me.current=!0,()=>{me.current=!1}),[]);const{registerPath:ot,unregisterPath:Ge,refreshOverflowKeys:dt,isSubPathKey:xt,getKeyPath:St,getKeys:Lt,getSubPathKeys:gt}=tW(),mt=a.useMemo(()=>({registerPath:ot,unregisterPath:Ge}),[ot,Ge]),De=a.useMemo(()=>({isSubPathKey:xt}),[xt]);a.useEffect(()=>{dt(Ke?Pi:ie.slice(ze+1).map(At=>At.key))},[ze,Ke]);const[Ze,Be]=Rn(P||I&&ie[0]?.key,P),we=ju(At=>{Be(At)}),ke=ju(()=>{Be(void 0)});a.useImperativeHandle(t,()=>({list:se.current,focus:At=>{const Gt=Lt(),{elements:Yt,key2element:ct,element2key:Nt}=Lm(Gt,xe),tn=JS(se.current,Yt);let hn;Ze&&Gt.includes(Ze)?hn=Ze:hn=tn[0]?Nt.get(tn[0]):ie.find(nn=>!nn.props.disabled)?.key;const It=ct.get(hn);hn&&It&&It?.focus?.(At)},findItem:({key:At})=>{const Gt=Lt(),{key2element:Yt}=Lm(Gt,xe);return Yt.get(At)||null}}));const[Re,Xe]=Rn(z||[],M),Ue=a.useMemo(()=>Array.isArray(Re)?Re:Re==null?Pi:[Re],[Re]),nt=At=>{if(T){const{key:Gt}=At,Yt=Ue.includes(Gt);let ct;L?Yt?ct=Ue.filter(tn=>tn!==Gt):ct=[...Ue,Gt]:ct=[Gt],Xe(ct);const Nt={...At,selectedKeys:ct};Yt?_?.(Nt):O?.(Nt)}!L&&qe.length&&Oe!=="inline"&&Ne(Pi)},zt=ju(At=>{Q?.(Dm(At)),nt(At)}),ht=ju((At,Gt)=>{let Yt=qe.filter(ct=>ct!==At);if(Gt)Yt.push(At);else if(Oe!=="inline"){const ct=gt(At);Yt=Yt.filter(Nt=>!ct.has(Nt))}ps(qe,Yt,!0)||Ne(Yt,!0)}),at=J9(Oe,Ze,Ee,xe,se,Lt,St,Be,(At,Gt)=>{const Yt=Gt??!qe.includes(At);ht(At,Yt)},()=>{qe.length&&Ne(Pi,!0)},X);a.useEffect(()=>{ge(!0)},[]);const Vt=a.useMemo(()=>({_internalRenderMenuItem:oe,_internalRenderSubMenuItem:ae}),[oe,ae]),Kt=Oe!=="horizontal"||$?ie:ie.map((At,Gt)=>a.createElement(xd,{key:At.key,overflowDisabled:Gt>ze,classNames:c,styles:i},At)),yn=a.createElement(ni,gx({id:h,ref:se,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Qd,className:U(n,`${n}-root`,`${n}-${Oe}`,s,{[`${n}-inline-collapsed`]:je,[`${n}-rtl`]:Ee},r),dir:m,style:o,role:"menu",tabIndex:f,data:Kt,renderRawItem:At=>At,renderRawRest:At=>{const Gt=At.length,Yt=Gt?ie.slice(-Gt):null;return a.createElement(Oh,{eventKey:fx,title:B,disabled:Ke,internalPopupClose:Gt===0,popupClassName:D},Yt)},maxCount:Oe!=="horizontal"||$?ni.INVALIDATE:ni.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:At=>{Ve(At)},onKeyDown:at},le));return a.createElement(QS.Provider,{value:Vt},a.createElement(y4.Provider,{value:xe},a.createElement(xd,{prefixCls:n,rootClassName:r,classNames:c,styles:i,mode:Oe,openKeys:qe,rtl:Ee,disabled:v,motion:de?W:null,defaultMotions:de?q:null,activeKey:Ze,onActive:we,onInactive:ke,selectedKeys:Ue,inlineIndent:F,subMenuOpenDelay:x,subMenuCloseDelay:E,forceSubMenuRender:C,builtinPlacements:j,triggerSubMenuAction:G,getPopupContainer:K,itemIcon:H,expandIcon:k,onItemClick:zt,onOpenChange:ht,popupRender:fe},a.createElement(S4.Provider,{value:De},yn),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(x4.Provider,{value:mt},re)))))}),jc=pW;jc.Item=Qd;jc.SubMenu=Oh;jc.ItemGroup=n$;jc.Divider=t$;var mW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yx.apply(this,arguments)}const hW=(e,t)=>a.createElement(_t,yx({},e,{ref:t,icon:mW})),gW=a.forwardRef(hW),P4=a.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),yW=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:s,headerPadding:i,headerColor:c,footerPadding:f,fontSize:d,bodyBg:p,headerBg:m}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:s,padding:i,color:c,lineHeight:te(s),background:m,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:d,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},N4=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:s,marginXXS:i,colorTextLightSolid:c,colorBgContainer:f}=e,d=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${d}px`,headerColor:o,footerPadding:`${s}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:c,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:o}},T4=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],M4=Zt("Layout",yW,N4,{deprecatedTokens:T4}),bW=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:s,triggerHeight:i,triggerColor:c,triggerBg:f,headerHeight:d,zeroTriggerWidth:p,zeroTriggerHeight:m,borderRadiusLG:h,lightSiderBg:y,lightTriggerColor:b,lightTriggerBg:v,bodyBg:$}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:c,lineHeight:te(i),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:d,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:m,color:c,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(h)} ${te(h)} 0`,cursor:"pointer",transition:`background-color ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${te(h)} 0 0 ${te(h)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:b,background:v},[`${t}-zero-width-trigger`]:{color:b,background:v,border:`${te(e.lineWidth)} ${e.lineType} ${$}`,borderInlineStart:0}}}}},vW=Zt(["Layout","Sider"],bW,N4,{deprecatedTokens:T4}),HI={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},xW=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),zh=a.createContext({}),O4=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:s,defaultCollapsed:i=!1,theme:c="dark",style:f={},collapsible:d=!1,reverseArrow:p=!1,width:m=200,collapsedWidth:h=80,zeroWidthTriggerStyle:y,breakpoint:b,onCollapse:v,onBreakpoint:$,classNames:x,styles:E,...C}=e,{siderHook:w}=a.useContext(P4),R=Xo(),[P,I]=Rn(i,e.collapsed),[T,L]=a.useState(!1),z=(le,ie)=>{I(le),v?.(le,ie)},M={...e,collapsed:P,defaultCollapsed:i,theme:c,style:f,collapsible:d,reverseArrow:p,width:m,collapsedWidth:h,zeroWidthTriggerStyle:y,breakpoint:b,onCollapse:v,onBreakpoint:$},[O,_]=qt([x],[E],{props:M}),{getPrefixCls:F,direction:W}=a.useContext(Ot),q=F("layout-sider",n),[G,j]=vW(q),H=a.useRef(null);H.current=le=>{L(le.matches),$?.(le.matches),P!==le.matches&&z(le.matches,"responsive")},a.useEffect(()=>{function le(re){return H.current?.(re)}let ie;return typeof window?.matchMedia<"u"&&b&&b in HI&&(ie=window.matchMedia(`screen and (max-width: ${HI[b]})`),Tt(ie?.addEventListener)&&ie.addEventListener("change",le),le(ie)),()=>{Tt(ie?.removeEventListener)&&ie.removeEventListener("change",le)}},[b]),a.useEffect(()=>(w.addSider(R),()=>{w.removeSider(R)}),[R,w]);const k=()=>{z(!P,"clickTrigger")},B=dn(C,["collapsed"]),D=P?h:m,K=xW(D)?`${D}px`:String(D),Q=Number.parseFloat(String(h||0))===0?a.createElement("span",{onClick:k,className:U(`${q}-zero-width-trigger`,`${q}-zero-width-trigger-${p?"right":"left"}`),style:y},o||a.createElement(gW,null)):null,Z=W==="rtl"==!p,ne={expanded:Z?a.createElement(bd,null):a.createElement(vd,null),collapsed:Z?a.createElement(vd,null):a.createElement(bd,null)}[P?"collapsed":"expanded"],oe=o!==null?Q||a.createElement("div",{className:`${q}-trigger`,onClick:k,style:{width:K}},o||ne):null,ae={...f,flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K},pe=U(q,`${q}-${c}`,{[`${q}-collapsed`]:!!P,[`${q}-has-trigger`]:d&&o!==null&&!Q,[`${q}-below`]:!!T,[`${q}-zero-width`]:Number.parseFloat(K)===0},r,O.root,G,j),fe=a.useMemo(()=>({siderCollapsed:P}),[P]);return a.createElement(zh.Provider,{value:fe},a.createElement("aside",{className:pe,...B,style:{..._.root,...ae},ref:t},a.createElement("div",{className:U(`${q}-children`,O.body),style:_.body},s),d||T&&Q?oe:null))});var CW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(this,arguments)}const SW=(e,t)=>a.createElement(_t,bx({},e,{ref:t,icon:CW})),Jd=a.forwardRef(SW),_m=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),z4=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:s}=a.useContext(Ot),i=s("menu",t),c=U({[`${i}-item-divider-dashed`]:!!r},n);return a.createElement(t$,{className:c,...o})},A4=e=>{const{className:t,children:n,icon:r,title:o,danger:s,extra:i}=e,{prefixCls:c,firstLevel:f,direction:d,disableMenuItemTitleTooltip:p,tooltip:m,inlineCollapsed:h,styles:y,classNames:b}=a.useContext(_m),{siderCollapsed:v}=a.useContext(zh),$=!!(v||h),[x,E]=a.useState(!1);a.useEffect(()=>{E(!1)},[$]);const C=z=>{const M=n?.[0],O=a.createElement("span",{className:U(`${c}-title-content`,f?b?.itemContent:b?.subMenu?.itemContent,{[`${c}-title-content-with-extra`]:!!i||i===0}),style:f?y?.itemContent:y?.subMenu?.itemContent},n);return(!r||a.isValidElement(n)&&n.type==="span")&&n&&z&&f&&typeof M=="string"?a.createElement("div",{className:`${c}-inline-collapsed-noicon`},M.charAt(0)):O};let w=o;typeof o>"u"?w=f?n:"":o===!1&&(w="");const R=m===!1?void 0:m,P=R&&R.title!==void 0?R.title:w,I={...R??null,title:P};$?(I.open=R?.open??x,I.onOpenChange=z=>{E(z),R?.onOpenChange?.(z)}):(I.title=null,I.open=!1);const T=cr(n).length;let L=a.createElement(Qd,{...dn(e,["title","icon","danger"]),className:U(f?b?.item:b?.subMenu?.item,{[`${c}-item-danger`]:s,[`${c}-item-only-child`]:(r?T+1:T)===1},t),style:{...f?y?.item:y?.subMenu?.item,...e.style},title:typeof o=="string"?o:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},hr(r,z=>({className:U(`${c}-item-icon`,f?b?.itemIcon:b?.subMenu?.itemIcon,z.className),style:{...f?y?.itemIcon:y?.subMenu?.itemIcon,...z.style}})),C(h));if(!p&&m!==!1){const z=R&&R.placement?R.placement:d==="rtl"?"left":"right",M=`${c}-inline-collapsed-tooltip`,O=F=>({...F,root:U(M,F?.root)}),_=Tt(R?.classNames)?F=>{const W=R.classNames(F);return O(W)}:O(R?.classNames);L=a.createElement(rr,{...I,placement:z,classNames:_},L)}return L},Fm=a.createContext(null),L4=a.forwardRef((e,t)=>{const{children:n,...r}=e,o=a.useContext(Fm),s=a.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=JT(n),c=Yo(t,i?Fs(n):null);return a.createElement(Fm.Provider,{value:s},a.createElement(ta,{space:!0},i?a.cloneElement(n,{ref:c}):n))}),$W=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:s,lineType:i,itemPaddingInline:c}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:c},[`> ${t}-item:hover,
|
|
216
|
+
> ${t}-item-active,
|
|
217
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(f=>`${f} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},wW=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
218
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(t)})`}}}}),jI=e=>eo(e),WI=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:s,groupTitleColor:i,itemBg:c,subMenuItemBg:f,itemSelectedBg:d,activeBarHeight:p,activeBarWidth:m,activeBarBorderWidth:h,motionDurationSlow:y,motionEaseInOut:b,motionEaseOut:v,itemPaddingInline:$,motionDurationMid:x,itemHoverColor:E,lineType:C,colorSplit:w,itemDisabledColor:R,dangerItemColor:P,dangerItemHoverColor:I,dangerItemSelectedColor:T,dangerItemActiveBg:L,dangerItemSelectedBg:z,popupBg:M,itemHoverBg:O,itemActiveBg:_,menuSubMenuBg:F,horizontalItemSelectedColor:W,horizontalItemSelectedBg:q,horizontalItemBorderRadius:G,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:c,[`&${n}-root:focus-visible`]:{...jI(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...jI(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${R} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:E}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:E}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:P,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:I}},[`&${n}-item:active`]:{background:L}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:z}},[`&${n}-submenu > ${n}`]:{backgroundColor:F},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:G,"&::after":{position:"absolute",insetInline:$,bottom:0,pointerEvents:"none",borderBottom:`${te(p)} solid transparent`,transition:`border-color ${y} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:p,borderBottomColor:W}},"&-selected":{color:W,backgroundColor:q,"&:hover":{backgroundColor:q},"&::after":{borderBottomWidth:p,borderBottomColor:W}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(h)} ${C} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(m)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(H=>`${H} ${x} ${v}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(H=>`${H} ${x} ${b}`).join(",")}}}}}},VI=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:s,marginXS:i,itemMarginBlock:c,itemWidth:f,itemPaddingInline:d}=e,p=e.calc(s).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:c,width:f},[`> ${t}-item,
|
|
219
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
220
|
+
${t}-submenu-title`]:{paddingInlineEnd:p}}},EW=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:s,controlHeightLG:i,padding:c,paddingXL:f,itemMarginInline:d,fontSizeLG:p,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:y,collapsedWidth:b,collapsedIconSize:v}=e,$={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...VI(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...VI(e),boxShadow:y}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${te(e.calc(i).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 ${m}`,`background-color ${m}`].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:f}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{transition:["border-color","background-color"].map(x=>`${x} ${m}`).join(","),[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center",width:"100%"}}},[`> ${t}-item,
|
|
221
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
222
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
223
|
+
> ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${te(e.calc(v).div(2).equal())} - ${te(d)})`,textOverflow:"clip",[`
|
|
224
|
+
${t}-submenu-arrow,
|
|
225
|
+
${t}-submenu-expand-icon
|
|
226
|
+
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:te(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:o}},[`${t}-item-group-title`]:{...zr,paddingInline:h}}}]},KI=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:s,iconCls:i,iconSize:c,iconMarginInlineEnd:f}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:c,fontSize:c,transition:[`font-size ${r} ${s}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Ad()},[`&${t}-item-only-child`]:{[`> ${i}, > ${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"}}}},UI=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:s,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(c=>`${c} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(c=>`${c} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${te(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(i)})`}}}}},RW=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:s,motionEaseInOut:i,paddingXS:c,padding:f,colorSplit:d,lineWidth:p,zIndexPopup:m,borderRadiusLG:h,subMenuItemBorderRadius:y,menuArrowSize:b,menuArrowOffset:v,lineType:$,groupTitleLineHeight:x,groupTitleFontSize:E,iconSize:C,iconMarginInlineEnd:w}=e,R=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[n]:{...Ji(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...an(e),...Ji(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${te(c)} ${te(f)}`,fontSize:E,lineHeight:x,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(P=>`${P} ${o} ${i}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${s}`].map(P=>`${P} ${i}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(P=>`${P} ${o} ${i}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${n}-item-label`]:{flex:"auto",minWidth:0,...zr},[R]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${te(e.calc(C).add(w??0).equal())})`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:$,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}},...KI(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${te(e.calc(r).mul(2).equal())} ${te(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:h,...KI(e),...UI(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...UI(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
|
227
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te(v)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te(v)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},IW=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:s,colorTextDescription:i,colorBgContainer:c,colorFillAlter:f,colorFillContent:d,lineWidth:p,lineWidthBold:m,controlItemBgActive:h,colorBgTextHover:y,controlHeightLG:b,lineHeight:v,colorBgElevated:$,marginXXS:x,padding:E,fontSize:C,controlHeightSM:w,fontSizeLG:R,colorTextLightSolid:P,colorErrorHover:I}=e,T=e.activeBarWidth??0,L=e.activeBarBorderWidth??p,z=e.itemMarginInline??e.marginXXS,M=new Cn(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:c,itemBg:c,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:d,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:L,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:b*2,popupBg:$,itemMarginBlock:x,itemPaddingInline:E,horizontalLineHeight:`${b*1.15}px`,iconSize:C,iconMarginInlineEnd:w-C,collapsedIconSize:R,groupTitleFontSize:C,darkItemDisabledColor:new Cn(P).setA(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:P,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:n,itemWidth:T?`calc(100% + ${L}px)`:`calc(100% - ${z*2}px)`}},PW=(e,t=e,n=!0)=>Zt("Menu",o=>{const{colorBgElevated:s,controlHeightLG:i,fontSize:c,darkItemColor:f,darkDangerItemColor:d,darkItemBg:p,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:y,darkDangerItemSelectedBg:b,darkItemHoverBg:v,darkGroupTitleColor:$,darkItemHoverColor:x,darkItemDisabledColor:E,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:R,popupBg:P,darkPopupBg:I}=o,T=o.calc(c).div(7).mul(5).equal(),L=Jt(o,{menuArrowSize:T,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(T).mul(.25).equal(),menuSubMenuBg:s,calc:o.calc,popupBg:P}),z=Jt(L,{itemColor:f,itemHoverColor:x,groupTitleColor:$,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:p,popupBg:I,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:E,dangerItemColor:d,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:R,dangerItemSelectedBg:b,menuSubMenuBg:m,horizontalItemSelectedColor:h,horizontalItemSelectedBg:y});return[RW(L),$W(L),EW(L),WI(L,"light"),WI(z,"dark"),wW(L),LS(L),Os(L,"slide-up"),Os(L,"slide-down"),jd(L,"zoom-big")]},IW,{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),D4=e=>{const{popupClassName:t,icon:n,title:r,theme:o}=e,s=a.useContext(_m),{prefixCls:i,inlineCollapsed:c,theme:f,classNames:d,styles:p}=s,m=Hc();let h;if(!n)h=c&&!m.length&&r&&typeof r=="string"?a.createElement("div",{className:`${i}-inline-collapsed-noicon`},r.charAt(0)):a.createElement("span",{className:`${i}-title-content`},r);else{const v=a.isValidElement(r)&&r.type==="span";h=a.createElement(a.Fragment,null,hr(n,$=>({className:U($.className,`${i}-item-icon`,d?.itemIcon),style:{...$.style,...p?.itemIcon}})),v?r:a.createElement("span",{className:`${i}-title-content`},r))}const y=a.useMemo(()=>({...s,firstLevel:!1}),[s]),[b]=Fc("Menu");return a.createElement(_m.Provider,{value:y},a.createElement(Oh,{...dn(e,["icon"]),title:h,classNames:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},styles:{list:p?.subMenu?.list,listTitle:p?.subMenu?.itemTitle},popupClassName:U(i,t,d?.popup?.root,`${i}-${o||f}`),popupStyle:{zIndex:b,...e.popupStyle,...p?.popup?.root}}))};function Tb(e){return e===null||e===!1}const NW={item:A4,submenu:D4,divider:z4},TW=a.forwardRef((e,t)=>{const n=a.useContext(Fm),r=n||{},{prefixCls:o,className:s,style:i,theme:c="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:d,tooltip:p,inlineCollapsed:m,siderCollapsed:h,rootClassName:y,mode:b,selectable:v,onClick:$,overflowedIndicatorPopupClassName:x,classNames:E,styles:C,...w}=e,{menu:R}=a.useContext(Ot),{getPrefixCls:P,getPopupContainer:I,direction:T,className:L,style:z,classNames:M,styles:O}=Xt("menu"),_=P(),F=dn(w,["collapsedWidth"]);r.validator?.({mode:b});const W=Ct((...fe)=>{$?.(...fe),r.onClick?.()}),q=r.mode||b,G=v??r.selectable,j=m??h,H={...e,mode:q,inlineCollapsed:j,selectable:G,theme:c},k=ut(z),B=ut(i),[D,K]=qt([M,E],[O,k,C,B],{props:H},{popup:{_default:"root"},subMenu:{_default:"item"}}),Q={horizontal:{motionName:`${_}-slide-up`},inline:Pm(_),other:{motionName:`${_}-zoom-big`}},Z=P("menu",o||r.prefixCls),X=er(Z),[J,ne]=PW(Z,X,!n),oe=U(`${Z}-${c}`,L,s),ae=a.useMemo(()=>{if(Tt(f)||Tb(f))return f||null;if(Tt(r.expandIcon)||Tb(r.expandIcon))return r.expandIcon||null;if(Tt(R?.expandIcon)||Tb(R?.expandIcon))return R?.expandIcon||null;const fe=f??r?.expandIcon??R?.expandIcon;return hr(fe,{className:U(`${Z}-submenu-expand-icon`,a.isValidElement(fe)?fe.props?.className:void 0)})},[f,r?.expandIcon,R?.expandIcon,Z]),pe=a.useMemo(()=>({prefixCls:Z,inlineCollapsed:j||!1,direction:T,firstLevel:!0,theme:c,mode:q,disableMenuItemTitleTooltip:d,tooltip:p,classNames:D,styles:K}),[Z,j,T,d,c,q,D,K,p]);return a.createElement(Fm.Provider,{value:null},a.createElement(_m.Provider,{value:pe},a.createElement(jc,{getPopupContainer:I,overflowedIndicator:a.createElement(Jd,null),overflowedIndicatorPopupClassName:U(Z,`${Z}-${c}`,x),classNames:{list:D.list,listTitle:D.itemTitle},styles:{list:K.list,listTitle:K.itemTitle},mode:q,selectable:G,onClick:W,...F,inlineCollapsed:j,style:K.root,className:oe,prefixCls:Z,direction:T,defaultMotions:Q,expandIcon:ae,ref:t,rootClassName:U(y,J,r.rootClassName,ne,X,D.root),_internalComponents:NW})))}),fl=a.forwardRef((e,t)=>{const n=a.useRef(null),r=a.useContext(zh);return a.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{n.current?.focus(o)}})),a.createElement(TW,{ref:n,...e,...r})});fl.Item=A4;fl.SubMenu=D4;fl.Divider=z4;fl.ItemGroup=n$;const MW=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},OW=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:s,antCls:i,iconCls:c,motionDurationMid:f,paddingBlock:d,fontSize:p,dropdownEdgeChildPadding:m,colorTextDisabled:h,fontSizeIcon:y,controlPaddingHorizontal:b,colorBgElevated:v,controlHeightLG:$}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:`calc(100vh - ${te(e.calc($).mul(2.5).equal())})`,overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${c}-down, & > ${i}-btn-icon > ${c}-down`]:{fontSize:y}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
228
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
229
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
|
|
230
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
|
|
231
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
|
|
232
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:$h},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
|
|
233
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
|
|
234
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
|
|
235
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
|
|
236
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
|
|
237
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Eh},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
238
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
|
|
239
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:wh},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
|
|
240
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
|
|
241
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Rh},[`&${i}-slide-right-enter${i}-slide-right-enter-active${t}-placement-right,
|
|
242
|
+
&${i}-slide-right-appear${i}-slide-right-appear-active${t}-placement-right,
|
|
243
|
+
&${i}-slide-right-enter${i}-slide-right-enter-active${t}-placement-rightTop,
|
|
244
|
+
&${i}-slide-right-appear${i}-slide-right-appear-active${t}-placement-rightTop,
|
|
245
|
+
&${i}-slide-right-enter${i}-slide-right-enter-active${t}-placement-rightBottom,
|
|
246
|
+
&${i}-slide-right-appear${i}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:iO},[`&${i}-slide-left-enter${i}-slide-left-enter-active${t}-placement-left,
|
|
247
|
+
&${i}-slide-left-appear${i}-slide-left-appear-active${t}-placement-left,
|
|
248
|
+
&${i}-slide-left-enter${i}-slide-left-enter-active${t}-placement-leftTop,
|
|
249
|
+
&${i}-slide-left-appear${i}-slide-left-appear-active${t}-placement-leftTop,
|
|
250
|
+
&${i}-slide-left-enter${i}-slide-left-enter-active${t}-placement-leftBottom,
|
|
251
|
+
&${i}-slide-left-appear${i}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:lO},[`&${i}-slide-right-leave${i}-slide-right-leave-active${t}-placement-right,
|
|
252
|
+
&${i}-slide-right-leave${i}-slide-right-leave-active${t}-placement-rightTop,
|
|
253
|
+
&${i}-slide-right-leave${i}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:aO},[`&${i}-slide-left-leave${i}-slide-left-leave-active${t}-placement-left,
|
|
254
|
+
&${i}-slide-left-leave${i}-slide-left-leave-active${t}-placement-leftTop,
|
|
255
|
+
&${i}-slide-left-leave${i}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:cO}}},GS(e,v),{[`${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`]:{...an(e),[n]:{padding:m,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...to(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(d)} ${te(b)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${n}-item-label > a`]:{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${te(d)} ${te(b)}`,color:e.colorText,fontWeight:400,fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...to(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:y,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Os(e,"slide-up"),Os(e,"slide-down"),Os(e,"slide-left"),Os(e,"slide-right"),Nm(e,"move-up"),Nm(e,"move-down"),jd(e,"zoom-big")]]},zW=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Th({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...qS(e)}),AW=Zt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,s=Jt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[OW(s),MW(s)]},zW,{resetStyle:!1}),Ah=a.forwardRef((e,t)=>{const{menu:n,arrow:r,prefixCls:o,children:s,trigger:i,disabled:c,dropdownRender:f,popupRender:d,getPopupContainer:p,overlayClassName:m,rootClassName:h,overlayStyle:y,open:b,onOpenChange:v,mouseEnterDelay:$=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:E=!0,placement:C="",transitionName:w,classNames:R,styles:P,destroyPopupOnHide:I,destroyOnHidden:T}=e,{getPrefixCls:L,direction:z,getPopupContainer:M,className:O,style:_,classNames:F,styles:W}=Xt("dropdown"),q={...e,mouseEnterDelay:$,mouseLeaveDelay:x,autoAdjustOverflow:E},G=ut(_),j=ut(y),[H,k]=qt([F,R],[W,G,P,j],{props:q}),B={...k.root},D=d||f;ia();const K=a.useMemo(()=>{const Ne=L();return w!==void 0?w:C.startsWith("top")?`${Ne}-slide-down`:C.startsWith("left")?`${Ne}-slide-right`:C.startsWith("right")?`${Ne}-slide-left`:`${Ne}-slide-up`},[L,C,w]),Q=a.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:z==="rtl"?"bottomRight":"bottomLeft",[C,z]),Z=L("dropdown",o),X=er(Z),[J,ne]=AW(Z,X),[,oe]=Dr(),ae=a.Children.only(x5(s)?a.createElement("span",null,s):s),pe=Yo(t,Fs(ae)),fe=hr(ae,{className:U(`${Z}-trigger`,{[`${Z}-rtl`]:z==="rtl"},ae.props.className),disabled:ae.props.disabled??c,ref:pe}),le=c?[]:i,ie=!!le?.includes("contextMenu"),[re,de]=Rn(!1,b),ge=Ct(Ne=>{v?.(Ne,{source:"trigger"}),de(Ne)}),se=U(m,h,J,ne,X,O,H.root,{[`${Z}-rtl`]:z==="rtl"}),ce=l4({arrowPointAtCenter:Rt(r)&&r.pointAtCenter,autoAdjustOverflow:E,offset:oe.marginXXS,arrowWidth:r?oe.sizePopupArrow:0,borderRadius:oe.borderRadius}),xe=Ct(()=>{n?.selectable&&n?.multiple||(v?.(!1,{source:"menu"}),de(!1))}),Ee=()=>{const Ne=dn(H,["root","menu"]),_e=dn(k,["root","menu"]);let Ie;return n?.items&&(Ie=a.createElement(fl,{...n,classNames:{root:H.menu,...Ne,subMenu:{...Ne}},styles:{root:k.menu,..._e,subMenu:{..._e}}})),D&&(Ie=D(Ie)),us(Ie)?Ie=a.createElement("span",null,Ie):a.isValidElement(Ie)||(Ie=a.createElement(a.Fragment,null,Ie)),a.createElement(L4,{prefixCls:`${Z}-menu`,rootClassName:U(ne,X),expandIcon:a.createElement("span",{className:`${Z}-menu-submenu-arrow`},z==="rtl"?a.createElement(vd,{className:`${Z}-menu-submenu-arrow-icon`}):a.createElement(bd,{className:`${Z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:xe,validator:({mode:me})=>{}},Ie)},[Se,Fe]=Fc("Dropdown",B.zIndex);let qe=a.createElement(g4,{alignPoint:ie,...dn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:x,open:re,builtinPlacements:ce,arrow:!!r,overlayClassName:se,prefixCls:Z,getPopupContainer:p||M,transitionName:K,trigger:le,overlay:Ee,placement:Q,onOpenChange:ge,overlayStyle:{...B,zIndex:Se},autoDestroy:T??I},fe);return Se&&(qe=a.createElement(Fd.Provider,{value:Fe},qe)),qe}),LW=HO(Ah,"align",void 0,"dropdown",e=>e),DW=e=>a.createElement(LW,{...e},a.createElement("span",null));Ah._InternalPanelDoNotUseOrYouWillBeFired=DW;const BW=["parentNode"],_W="form_item";function Ju(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function B4(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:BW.includes(n)?`${_W}_${n}`:n}function _4(e,t,n,r,o,s){let i=r;return s!==void 0?i=s:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function vx(e){return Ju(e).join("_")}function qI(e,t){const n=t.getFieldInstance(e),r=fs(n);if(r)return r;const o=B4(Ju(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function F4(e){const[t]=RS(),n=a.useRef({}),r=a.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:o=>s=>{const i=vx(o);s?n.current[i]=s:delete n.current[i]}},scrollToField:(o,s={})=>{const{focus:i,...c}=s,f=qI(o,r);f&&(cF(f,{scrollMode:"if-needed",block:"nearest",...c}),i&&r.focusField(o))},focusField:o=>{const s=r.getFieldInstance(o);Tt(s?.focus)?s.focus():qI(o,r)?.focus?.()},getFieldInstance:o=>{const s=vx(o);return n.current[s]}},[e,t]);return[r]}const k4=a.createContext(void 0),FW=k4.Provider,H4=a.createContext(void 0),kW=H4.Provider;function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xx.apply(this,arguments)}const j4=a.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:o,checked:s,disabled:i,defaultChecked:c=!1,type:f="checkbox",title:d,onChange:p,...m}=e,h=a.useRef(null),y=a.useRef(null),[b,v]=Rn(c,s);a.useImperativeHandle(t,()=>({focus:E=>{h.current?.focus(E)},blur:()=>{h.current?.blur()},input:h.current,nativeElement:y.current}));const $=U(n,r,{[`${n}-checked`]:b,[`${n}-disabled`]:i}),x=E=>{i||("checked"in e||v(E.target.checked),p?.({target:{...e,type:f,checked:E.target.checked},stopPropagation(){E.stopPropagation()},preventDefault(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return a.createElement("span",{className:$,title:d,style:o,ref:y},a.createElement("input",xx({},m,{className:`${n}-input`,ref:h,onChange:x,disabled:i,checked:!!b,type:f})))});function W4(e){const t=ee.useRef(null),n=()=>{Wt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Wt(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e?.(s)}]}const HW=e=>{const{componentCls:t,antCls:n,lineWidth:r,borderRadius:o,borderRadiusLG:s,borderRadiusSM:i,calc:c}=e,f=`${t}-group`,d=`${t}-button-wrapper`,p=`${n}-badge`,m=h=>({[`> ${p}`]:{width:"auto"},[`> ${p} > ${d}`]:{width:"100%"},[`> ${p}:not(:last-child)`]:{marginBlockEnd:c(r).mul(-1).equal()},[`> ${p} > ${d}:not(:last-child)`]:{marginBlockEnd:0},[`> ${p}:first-child > ${d}`]:{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${p}:last-child > ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},[`> ${p}:not(:first-child):not(:last-child) > ${d}`]:{borderRadius:0},[`> ${p}:first-child:last-child > ${d}`]:{borderRadius:h}});return{[f]:{...an(e),display:"inline-block",fontSize:0,[`&${f}-rtl`]:{direction:"rtl"},[`&${f}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`&:has(> ${d}, > ${p} > ${d})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...m(o),[`&${f}-large`]:{...m(s)},[`&${f}-small`]:{...m(i)}}}}},jW=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:o,radioSize:s,motionDurationSlow:i,motionDurationMid:c,motionEaseInOutCirc:f,colorBgContainer:d,colorBorder:p,lineWidth:m,colorBgContainerDisabled:h,colorTextDisabled:y,paddingXS:b,dotColorDisabled:v,dotSize:$,lineType:x,radioColor:E,radioBgColor:C}=e;return{[`${t}-wrapper`]:{...an(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]:{...an(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${s} * 1px)`,height:`calc(${s} * 1px)`,backgroundColor:d,border:`${te(m)} ${x} ${p}`,borderRadius:"50%",transition:`all ${c}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${$} * 1px)`,height:`calc(${$} * 1px)`,backgroundColor:E,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${i} ${f}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:eo(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:C,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:h,borderColor:p,"&::after":{backgroundColor:v}},[`${t}-disabled + span`]:{color:y,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}}}},WW=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:s,colorBorder:i,motionDurationMid:c,buttonPaddingInline:f,fontSize:d,buttonBg:p,fontSizeLG:m,controlHeightLG:h,controlHeightSM:y,paddingXS:b,borderRadius:v,borderRadiusSM:$,borderRadiusLG:x,buttonCheckedBg:E,buttonSolidCheckedColor:C,colorTextDisabled:w,colorBgContainerDisabled:R,buttonCheckedBgDisabled:P,buttonCheckedColorDisabled:I,colorPrimary:T,colorPrimaryHover:L,colorPrimaryActive:z,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:_,calc:F}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:d,lineHeight:te(F(n).sub(F(o).mul(2)).equal()),background:p,border:`${te(o)} ${s} ${i}`,borderBlockStartWidth:F(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(W=>`${W} ${c}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:F(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(o)} ${s} ${i}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:te(F(h).sub(F(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:y,paddingInline:F(b).sub(o).equal(),paddingBlock:0,lineHeight:te(F(y).sub(F(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:F(o).mul(-1).equal()},"&:first-child":{borderStartStartRadius:v,borderStartEndRadius:v,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:x,borderStartEndRadius:x},"&:last-child":{borderEndStartRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:$,borderStartEndRadius:$},"&:last-child":{borderEndStartRadius:$,borderEndEndRadius:$},"&:first-child:last-child":{borderRadius:$}},"&:hover":{position:"relative",color:T},"&:has(:focus-visible)":eo(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:T,background:E,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:L,borderColor:L,"&::before":{backgroundColor:L}},"&:active":{color:z,borderColor:z,"&::before":{backgroundColor:z}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:M,borderColor:M,"&:hover":{color:C,background:O,borderColor:O},"&:active":{color:C,background:_,borderColor:_}},"&-disabled":{color:w,backgroundColor:R,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:R,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:P,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},VW=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:s,colorText:i,colorBgContainer:c,colorTextDisabled:f,controlItemBgActiveDisabled:d,colorTextLightSolid:p,colorPrimary:m,colorPrimaryHover:h,colorPrimaryActive:y,colorWhite:b}=e,v=4,$=s,x=t?$-v*2:$-(v+o)*2;return{radioSize:$,dotSize:x,dotColorDisabled:f,buttonSolidCheckedColor:p,buttonSolidCheckedBg:m,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:y,buttonBg:c,buttonCheckedBg:c,buttonColor:i,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:f,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?m:b,radioBgColor:t?c:m}},V4=Zt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=Jt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[HW(s),jW(s),WW(s)]},VW,{unitless:{radioSize:!0,dotSize:!0}}),KW=(e,t)=>{const n=a.useContext(k4),r=a.useContext(H4),{getPrefixCls:o,direction:s,className:i,style:c,classNames:f,styles:d}=Xt("radio"),p=a.useRef(null),m=ur(t,p),{isFormItemInput:h}=a.useContext(Rr),y=ae=>{e.onChange?.(ae),n?.onChange?.(ae)},{prefixCls:b,className:v,rootClassName:$,children:x,style:E,title:C,classNames:w,styles:R,checked:P,onMouseEnter:I,onMouseLeave:T,onPointerEnter:L,onPointerLeave:z,...M}=e,O=o("radio",b),_=(n?.optionType||r)==="button",F=_?`${O}-button`:O,W=er(O),[q,G]=V4(O,W),j={...M},H=a.useContext(Er),k="checked"in e;let B=P;n&&(j.name=n.name,j.onChange=y,B=e.value===n.value,j.disabled=j.disabled??n.disabled),(k||n)&&(j.checked=B),j.disabled=j.disabled??H;const D={...e,...j,checked:B},K=ut(c),Q=ut(E),[Z,X]=qt([f,n?.classNames,w],[d,K,n?.styles,R,Q],{props:D}),J=U(`${F}-wrapper`,{[`${F}-wrapper-checked`]:B,[`${F}-wrapper-disabled`]:j.disabled,[`${F}-wrapper-rtl`]:s==="rtl",[`${F}-wrapper-in-form-item`]:h,[`${F}-wrapper-block`]:!!n?.block},i,v,$,Z.root,q,G,W),[ne,oe]=W4(j.onClick);return a.createElement(Hd,{component:"Radio",disabled:j.disabled},a.createElement("label",{className:J,style:X.root,onMouseEnter:I,onMouseLeave:T,onPointerEnter:L,onPointerLeave:z,title:C,onClick:ne},a.createElement(j4,{...j,className:U(Z.icon,{[kd]:!_}),style:X.icon,type:"radio",prefixCls:F,ref:m,onClick:oe}),tt(x)?a.createElement("span",{className:U(`${F}-label`,Z.label),style:X.label},x):null))},km=a.forwardRef(KW),UW=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(Ot),{name:o}=a.useContext(Rr),s=Xo(vx(o)),{prefixCls:i,className:c,rootClassName:f,classNames:d,styles:p,options:m,buttonStyle:h="outline",disabled:y,children:b,size:v,style:$,id:x,optionType:E,name:C=s,defaultValue:w,value:R,block:P=!1,onChange:I,onMouseEnter:T,onMouseLeave:L,onFocus:z,onBlur:M,orientation:O,vertical:_,role:F="radiogroup"}=e,W=a.useContext(Er),q=y??W,[G,j]=Rn(w,R),H=a.useCallback(re=>{const de=G,ge=re.target.value;j(ge),ge!==de&&I?.(re)},[G,j,I]),k=n("radio",i),B=`${k}-group`,D=er(k),[K,Q]=V4(k,D);let Z=b;m&&m.length>0&&(Z=m.map(re=>typeof re=="string"||Un(re)?a.createElement(km,{key:re.toString(),prefixCls:k,disabled:y,value:re,checked:G===re},re):a.createElement(km,{key:`radio-group-value-options-${re.value}`,prefixCls:k,disabled:re.disabled||y,value:re.value,checked:G===re.value,title:re.title,style:re.style,className:re.className,id:re.id,required:re.required,onChange:re.onChange},re.label)));const X=or(v),[J,ne]=_d(O,_),oe={...e,value:G,disabled:q,size:X,buttonStyle:h,block:P,name:C,optionType:E??"default",orientation:J,vertical:ne},ae=ut($),[pe,fe]=qt([d],[p,ae],{props:oe}),le=U(B,`${B}-${h}`,{[`${B}-large`]:X==="large",[`${B}-small`]:X==="small",[`${B}-rtl`]:r==="rtl",[`${B}-block`]:P},c,f,pe.root,K,Q,D),ie=a.useMemo(()=>({onChange:H,value:G,disabled:y,name:C,optionType:E,block:P,classNames:{root:pe.item,icon:pe.itemIcon,label:pe.itemLabel},styles:{root:fe.item,icon:fe.itemIcon,label:fe.itemLabel}}),[H,G,y,C,E,P,pe,fe]);return a.createElement("div",{...Hn(e,{aria:!0,data:!0}),role:F,className:U(le,{[`${k}-group-vertical`]:ne}),style:fe.root,onMouseEnter:T,onMouseLeave:L,onFocus:z,onBlur:M,id:x,ref:t},a.createElement(FW,{value:ie},Z))}),qW=a.memo(UW),GW=(e,t)=>{const{getPrefixCls:n}=a.useContext(Ot),{prefixCls:r,...o}=e,s=n("radio",r);return a.createElement(kW,{value:"button"},a.createElement(km,{prefixCls:s,...o,type:"radio",ref:t}))},XW=a.forwardRef(GW),Zd=km;Zd.Button=XW;Zd.Group=qW;Zd.__ANT_RADIO=!0;function pl(e){return Jt(e,{inputAffixPadding:e.paddingXXS})}const ml=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,lineWidthFocus:s,controlHeightSM:i,controlHeightLG:c,fontSizeLG:f,lineHeightLG:d,paddingSM:p,controlPaddingHorizontalSM:m,controlPaddingHorizontal:h,colorFillAlter:y,colorPrimaryHover:b,colorPrimary:v,controlOutlineWidth:$,controlOutline:x,colorErrorOutline:E,colorWarningOutline:C,colorBgContainer:w,inputFontSize:R,inputFontSizeLG:P,inputFontSizeSM:I}=e,T=R||n,L=I||T,z=P||f,M=Math.round((t-T*r)/2*10)/10-o,O=Math.round((i-L*r)/2*10)/10-o,_=Math.ceil((c-z*d)/2*10)/10-o;return{lineWidthFocus:s===0?0:o,paddingBlock:Math.max(M,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(_,0),paddingInline:p-o,paddingInlineSM:m-o,paddingInlineLG:h-o,addonBg:y,activeBorderColor:v,hoverBorderColor:b,activeShadow:`0 0 0 ${$}px ${x}`,errorActiveShadow:`0 0 0 ${$}px ${E}`,warningActiveShadow:`0 0 0 ${$}px ${C}`,hoverBg:w,activeBg:w,inputFontSize:T,inputFontSizeLG:z,inputFontSizeSM:L}},YW=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ef=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...YW(Jt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),r$=(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}}),GI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...r$(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),K4=(e,t)=>({"&-outlined":{...r$(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...ef(e)},...GI(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...GI(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),XI=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),QW=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...XI(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...XI(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...ef(e)}}}}),U4="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",q4=(e,t)=>({outline:`${te(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:te(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),YI=(e,t)=>({"&, & input, & textarea":{color:t.color},[U4]:q4(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),G4=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[U4]:q4(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:YI(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:YI(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},X4=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),QI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...X4(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Y4=(e,t)=>({"&-filled":{...X4(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...ef(e)},...QI(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...QI(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),JI=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),JW=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...JI(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...JI(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),Q4=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),ZI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Q4(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`}}),J4=(e,t)=>({"&-underlined":{...Q4(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"},...ZI(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...ZI(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Z4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),o$=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${te(t)} ${te(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},s$=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Lh=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Z4(e.colorTextPlaceholder),"&-lg":{...o$(e),...t.largeStyle},"&-sm":{...s$(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),ZW=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`]:{...o$(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...s$(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:400,fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Ji(),[`${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},[`
|
|
256
|
+
& > ${t}-affix-wrapper,
|
|
257
|
+
& > ${t}-number-affix-wrapper,
|
|
258
|
+
& > ${n}-picker-range
|
|
259
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
|
|
260
|
+
& > ${n}-select-auto-complete ${t},
|
|
261
|
+
& > ${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,
|
|
262
|
+
& > ${n}-select:first-child,
|
|
263
|
+
& > ${n}-select-auto-complete:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
264
|
+
& > ${n}-select:last-child`]:{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`]:{}}}}},eV=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:{...an(e),...Lh(e),...K4(e),...Y4(e),...G4(e),...J4(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},e6=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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...eo(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${te(e.inputAffixPadding)}`}}}},tV=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:s,colorIconHover:i}=e,c=`${t}-affix-wrapper`,f=`${t}-affix-wrapper-disabled`;return{[c]:{...Lh(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:"inline-flex",color:s,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}},...e6(e)},[`${t}-underlined`]:{borderRadius:0},[f]:{[`${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},nV=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...an(e),...ZW(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...QW(e),...JW(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}}}}}},rV=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},t6=Zt(["Input","Shared"],e=>{const t=Jt(e,pl(e));return[eV(t),tV(t)]},ml,{resetFont:!1}),n6=Zt(["Input","Component"],e=>{const t=Jt(e,pl(e));return[nV(t),rV(t),Wd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},ml,{resetFont:!1});var oV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Cx(){return Cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cx.apply(this,arguments)}const sV=(e,t)=>a.createElement(_t,Cx({},e,{ref:t,icon:oV})),i$=a.forwardRef(sV),a$=a.createContext(null),iV=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:o={}}=e,{size:s,align:i="center"}=o,[c,f]=a.useState(),d=a.useRef(void 0),p=ee.useCallback(h=>typeof s=="function"?s(h):typeof s=="number"?s:h,[s]);function m(){Wt.cancel(d.current)}return a.useEffect(()=>{const h={};if(t)if(n){h.width=p(t.width);const y=r?"right":"left";i==="start"&&(h[y]=t[y]),i==="center"&&(h[y]=t[y]+t.width/2,h.transform=r?"translateX(50%)":"translateX(-50%)"),i==="end"&&(h[y]=t[y]+t.width,h.transform="translateX(-100%)")}else h.height=p(t.height),i==="start"&&(h.top=t.top),i==="center"&&(h.top=t.top+t.height/2,h.transform="translateY(-50%)"),i==="end"&&(h.top=t.top+t.height,h.transform="translateY(-100%)");return m(),d.current=Wt(()=>{c&&h&&Object.keys(h).every(b=>{const v=h[b],$=c[b];return typeof v=="number"&&typeof $=="number"?Math.round(v)===Math.round($):v===$})||f(h)}),m},[JSON.stringify(t),n,r,i,p]),{style:c}},eP={width:0,height:0,left:0,top:0};function aV(e,t,n){return a.useMemo(()=>{const r=new Map,o=t.get(e[0]?.key)||eP,s=o.left+o.width;for(let i=0;i<e.length;i+=1){const{key:c}=e[i];let f=t.get(c);f||(f=t.get(e[i-1]?.key)||eP);const d=r.get(c)||{...f};d.right=s-d.left-d.width,r.set(c,d)}return r},[e.map(r=>r.key).join("_"),t,n])}function tP(e,t){const n=a.useRef(e),[,r]=a.useState({});function o(s){const i=typeof s=="function"?s(n.current):s;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,o]}const lV=.1,nP=.01,cm=20,rP=.995**cm;function cV(e,t){const[n,r]=a.useState(),[o,s]=a.useState(0),[i,c]=a.useState(0),[f,d]=a.useState(),p=a.useRef(void 0);function m(x){const{screenX:E,screenY:C}=x.touches[0];r({x:E,y:C}),window.clearInterval(p.current)}function h(x){if(!n)return;const{screenX:E,screenY:C}=x.touches[0];r({x:E,y:C});const w=E-n.x,R=C-n.y;t(w,R);const P=Date.now();s(P),c(P-o),d({x:w,y:R})}function y(){if(n&&(r(null),d(null),f)){const x=f.x/i,E=f.y/i,C=Math.abs(x),w=Math.abs(E);if(Math.max(C,w)<lV)return;let R=x,P=E;p.current=window.setInterval(()=>{if(Math.abs(R)<nP&&Math.abs(P)<nP){window.clearInterval(p.current);return}R*=rP,P*=rP,t(R*cm,P*cm)},cm)}}const b=a.useRef(void 0);function v(x){const{deltaX:E,deltaY:C}=x;let w;const R=Math.abs(E),P=Math.abs(C);R===P?w=b.current==="x"?E:C:R>P?(w=E,b.current="x"):(w=C,b.current="y"),t(-w,-w)&&x.preventDefault()}const $=a.useRef(null);$.current={onTouchStart:m,onTouchMove:h,onTouchEnd:y,onWheel:v},a.useEffect(()=>{function x(R){$.current.onTouchStart(R)}function E(R){$.current.onTouchMove(R)}function C(R){$.current.onTouchEnd(R)}function w(R){$.current.onWheel(R)}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",C,{passive:!0}),e.current.addEventListener("touchstart",x,{passive:!0}),e.current.addEventListener("wheel",w,{passive:!1}),()=>{document.removeEventListener("touchmove",E),document.removeEventListener("touchend",C)}},[])}function r6(e){const[t,n]=a.useState(0),r=a.useRef(0),o=a.useRef(void 0);return o.current=e,Qp(()=>{o.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function uV(e){const t=a.useRef([]),[,n]=a.useState({}),r=a.useRef(typeof e=="function"?e():e),o=r6(()=>{let i=r.current;t.current.forEach(c=>{i=c(i)}),t.current=[],r.current=i,n({})});function s(i){t.current.push(i),o()}return[r.current,s]}const oP={width:0,height:0,left:0,top:0,right:0};function dV(e,t,n,r,o,s,{tabs:i,tabPosition:c,rtl:f}){let d,p,m;return["top","bottom"].includes(c)?(d="width",p=f?"right":"left",m=Math.abs(n)):(d="height",p="top",m=-n),a.useMemo(()=>{if(!i.length)return[0,0];const h=i.length;let y=h;for(let v=0;v<h;v+=1){const $=e.get(i[v].key)||oP;if(Math.floor($[p]+$[d])>Math.floor(m+t)){y=v-1;break}}let b=0;for(let v=h-1;v>=0;v-=1)if((e.get(i[v].key)||oP)[p]<m){b=v+1;break}return b>y?[0,-1]:[b,y]},[e,t,r,o,s,m,c,i.map(h=>h.key).join("_"),f])}function sP(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const fV="TABS_DQ";function o6(e){return String(e).replace(/"/g,fV)}function l$(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const s6=a.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:o,style:s}=e;return!r||r.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":o?.addAriaLabel||"Add tab",onClick:i=>{r.onEdit("add",{event:i})}},tt(r.addIcon)?r.addIcon:"+")}),iP=a.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:o}=e;if(!tt(o))return null;let s,i={};return typeof o=="object"&&!a.isValidElement(o)?i=o:i.right=o,n==="right"&&(s=i.right),n==="left"&&(s=i.left),tt(s)?a.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sx.apply(this,arguments)}const pV=a.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:o,locale:s,mobile:i,more:c={},style:f,className:d,editable:p,tabBarGutter:m,rtl:h,removeAriaLabel:y,onTabClick:b,getPopupContainer:v,popupClassName:$,popupStyle:x,classNames:E,styles:C}=e,[w,R]=a.useState(!1),[P,I]=a.useState(null),{icon:T="More",popupRender:L}=c,z=`${r}-more-popup`,M=`${n}-dropdown`,O=P!==null?`${z}-${P}`:null,_=s?.dropdownAriaLabel;function F(D,K){D.preventDefault(),D.stopPropagation(),p.onEdit("remove",{key:K,event:D})}const W=a.createElement(jc,{onClick:({key:D,domEvent:K})=>{b(D,K),R(!1)},prefixCls:`${M}-menu`,id:z,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[P],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(D=>{const{closable:K,disabled:Q,closeIcon:Z,key:X,label:J}=D,ne=l$(K,Z,p,Q);return a.createElement(Qd,{key:X,id:`${z}-${X}`,role:"option","aria-controls":r&&`${r}-panel-${X}`,disabled:Q},a.createElement("span",null,J),ne&&a.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:U(`${M}-menu-item-remove`,E?.remove),style:C?.remove,onClick:oe=>{oe.stopPropagation(),F(oe,X)}},tt(Z)?Z:tt(p.removeIcon)?p.removeIcon:"×"))})),q=L?L(W,{restTabs:o,onClose:()=>R(!1)}):W;function G(D){const K=o.filter(X=>!X.disabled);let Q=K.findIndex(X=>X.key===P)||0;const Z=K.length;for(let X=0;X<Z;X+=1){Q=(Q+D+Z)%Z;const J=K[Q];if(!J.disabled){I(J.key);return}}}function j(D){const{which:K}=D;if(!w){[vt.DOWN,vt.SPACE,vt.ENTER].includes(K)&&(R(!0),D.preventDefault());return}switch(K){case vt.UP:G(-1),D.preventDefault();break;case vt.DOWN:G(1),D.preventDefault();break;case vt.ESC:R(!1);break;case vt.SPACE:case vt.ENTER:P!==null&&b(P,D);break}}a.useEffect(()=>{const D=document.getElementById(O);D?.scrollIntoView&&D.scrollIntoView(!1)},[O,P]),a.useEffect(()=>{w||I(null)},[w]);const H={marginInlineStart:m};o.length||(H.visibility="hidden",H.order=1);const k=U($,{[`${M}-rtl`]:h}),B=i?null:a.createElement(g4,Sx({prefixCls:M,overlay:q,open:o.length?w:!1,onOpenChange:R,overlayClassName:k,overlayStyle:x,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},c),a.createElement("button",{type:"button",className:`${n}-nav-more`,style:H,"aria-haspopup":"listbox","aria-controls":z,id:`${r}-more`,"aria-expanded":w,onKeyDown:j},T));return a.createElement("div",{className:U(`${n}-nav-operations`,d),style:f,ref:t},B,a.createElement(s6,{prefixCls:n,locale:s,editable:p}))}),mV=a.memo(pV,(e,t)=>t.tabMoving),hV=e=>{const{prefixCls:t,id:n,active:r,focus:o,tab:{key:s,label:i,disabled:c,closeIcon:f,icon:d},closable:p,renderWrapper:m,removeAriaLabel:h,editable:y,onClick:b,onFocus:v,onBlur:$,onKeyDown:x,onMouseDown:E,onMouseUp:C,styles:w,classNames:R,tabCount:P,currentPosition:I}=e,T=`${t}-tab`,L=l$(p,f,y,c);function z(W){c||b(W)}function M(W){W.preventDefault(),W.stopPropagation(),y.onEdit("remove",{key:s,event:W})}const O=a.useMemo(()=>tt(d)&&typeof i=="string"?a.createElement("span",null,i):i,[i,d]),_=a.useRef(null);a.useEffect(()=>{o&&_.current&&_.current.focus()},[o]);const F=a.createElement("div",{key:s,"data-node-key":o6(s),className:U(T,R?.item,{[`${T}-with-remove`]:L,[`${T}-active`]:r,[`${T}-disabled`]:c,[`${T}-focus`]:o}),style:w?.item,onClick:z},a.createElement("div",{ref:_,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":c,tabIndex:c?null:r?0:-1,onClick:W=>{W.stopPropagation(),z(W)},onKeyDown:x,onMouseDown:E,onMouseUp:C,onFocus:v,onBlur:$},o&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${I} of ${P}`),tt(d)&&a.createElement("span",{className:`${T}-icon`},d),tt(i)&&O),L&&a.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:r?0:-1,className:U(`${T}-remove`,R?.remove),style:w?.remove,onClick:W=>{W.stopPropagation(),M(W)}},tt(f)?f:tt(y.removeIcon)?y.removeIcon:"×"));return m?m(F):F};function $x(){return $x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$x.apply(this,arguments)}const gV=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:s}=e,{width:i,height:c,left:f,top:d}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,c,f-t.left,d-t.top]:[n,r,s,o]},Zl=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:o}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,o]}return[t,n]},Op=(e,t)=>e[t?0:1],aP=a.forwardRef((e,t)=>{const{className:n,style:r,id:o,animated:s,activeKey:i,rtl:c,extra:f,editable:d,locale:p,tabPosition:m,tabBarGutter:h,children:y,onTabClick:b,onTabScroll:v,indicator:$,classNames:x,styles:E}=e,{prefixCls:C,tabs:w}=a.useContext(a$),R=a.useRef(null),P=a.useRef(null),I=a.useRef(null),T=a.useRef(null),L=a.useRef(null),z=a.useRef(null),M=a.useRef(null),O=m==="top"||m==="bottom",[_,F]=tP(0,(we,ke)=>{O&&v&&v({direction:we>ke?"left":"right"})}),[W,q]=tP(0,(we,ke)=>{!O&&v&&v({direction:we>ke?"top":"bottom"})}),[G,j]=a.useState([0,0]),[H,k]=a.useState([0,0]),[B,D]=a.useState([0,0]),[K,Q]=a.useState([0,0]),[Z,X]=uV(new Map),J=aV(w,Z,H[0]),ne=Op(G,O),oe=Op(H,O),ae=Op(B,O),pe=Op(K,O),fe=Math.floor(ne)<Math.floor(oe+ae),le=fe?ne-pe:ne-ae,ie=`${C}-nav-operations-hidden`;let re=0,de=0;O&&c?(re=0,de=Math.max(0,oe-le)):(re=Math.min(0,le-oe),de=0);function ge(we){return we<re?re:we>de?de:we}const se=a.useRef(null),[ce,xe]=a.useState();function Ee(){xe(Date.now())}function Se(){se.current&&clearTimeout(se.current)}cV(T,(we,ke)=>{function Re(Xe,Ue){Xe(nt=>ge(nt+Ue))}return fe?(O?Re(F,we):Re(q,ke),Se(),Ee(),!0):!1}),a.useEffect(()=>(Se(),ce&&(se.current=setTimeout(()=>{xe(0)},100)),Se),[ce]);const[Fe,qe]=dV(J,le,O?_:W,oe,ae,pe,{...e,tabs:w}),Ne=Ct((we=i)=>{const ke=J.get(we)||{width:0,height:0,left:0,right:0,top:0};if(O){let Re=_;c?ke.right<_?Re=ke.right:ke.right+ke.width>_+le&&(Re=ke.right+ke.width-le):ke.left<-_?Re=-ke.left:ke.left+ke.width>-_+le&&(Re=-(ke.left+ke.width-le)),q(0),F(ge(Re))}else{let Re=W;ke.top<-W?Re=-ke.top:ke.top+ke.height>-W+le&&(Re=-(ke.top+ke.height-le)),F(0),q(ge(Re))}}),[_e,Ie]=a.useState(),[me,Le]=a.useState(!1),He=w.filter(we=>!we.disabled).map(we=>we.key),Ae=we=>{const ke=He.indexOf(_e||i),Re=He.length,Xe=(ke+we+Re)%Re,Ue=He[Xe];Ie(Ue)},Oe=(we,ke)=>{const Re=He.indexOf(we),Xe=w.find(nt=>nt.key===we);l$(Xe?.closable,Xe?.closeIcon,d,Xe?.disabled)&&(ke.preventDefault(),ke.stopPropagation(),d.onEdit("remove",{key:we,event:ke}),Re===He.length-1?Ae(-1):Ae(1))},st=(we,ke)=>{Le(!0),ke.button===1&&Oe(we,ke)},je=we=>{const{code:ke}=we,Re=c&&O,Xe=He[0],Ue=He[He.length-1];switch(ke){case"ArrowLeft":{O&&Ae(Re?1:-1);break}case"ArrowRight":{O&&Ae(Re?-1:1);break}case"ArrowUp":{we.preventDefault(),O||Ae(-1);break}case"ArrowDown":{we.preventDefault(),O||Ae(1);break}case"Home":{we.preventDefault(),Ie(Xe);break}case"End":{we.preventDefault(),Ie(Ue);break}case"Enter":case"Space":{we.preventDefault(),b(_e??i,we);break}case"Backspace":case"Delete":{Oe(_e,we);break}}},Je={};O?Je.marginInlineStart=h:Je.marginTop=h;const ze=w.map((we,ke)=>{const{key:Re}=we;return a.createElement(hV,{id:o,prefixCls:C,key:Re,tab:we,classNames:{item:x?.item,remove:x?.remove},styles:{item:ke===0?E?.item:{...Je,...E?.item},remove:E?.remove},closable:we.closable,editable:d,active:Re===i,focus:Re===_e,renderWrapper:y,removeAriaLabel:p?.removeAriaLabel,tabCount:He.length,currentPosition:ke+1,onClick:Xe=>{b(Re,Xe)},onKeyDown:je,onFocus:()=>{me||Ie(Re),Ne(Re),Ee(),T.current&&(c||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:()=>{Ie(void 0)},onMouseDown:Xe=>st(Re,Xe),onMouseUp:()=>{Le(!1)}})}),Ve=()=>X(()=>{const we=new Map,ke=L.current?.getBoundingClientRect();return w.forEach(({key:Re})=>{const Xe=L.current?.querySelector(`[data-node-key="${o6(Re)}"]`);if(Xe){const[Ue,nt,zt,ht]=gV(Xe,ke);we.set(Re,{width:Ue,height:nt,left:zt,top:ht})}}),we});a.useEffect(()=>{Ve()},[w.map(we=>we.key).join("_")]);const Ke=r6(()=>{const we=Zl(R),ke=Zl(P),Re=Zl(I);j([we[0]-ke[0]-Re[0],we[1]-ke[1]-Re[1]]);const Xe=Zl(M);D(Xe);const Ue=Zl(z);Q(Ue);const nt=Zl(L);k([nt[0]-Xe[0],nt[1]-Xe[1]]),Ve()}),ot=w.slice(0,Fe),Ge=w.slice(qe+1),dt=[...ot,...Ge],xt=J.get(i),{style:St}=iV({activeTabOffset:xt,horizontal:O,indicator:$,rtl:c});a.useEffect(()=>{Ne()},[i,re,de,sP(xt),sP(J),O]),a.useEffect(()=>{Ke()},[c]);const Lt=!!dt.length,gt=`${C}-nav-wrap`;let mt,De,Ze,Be;return O?c?(De=_>0,mt=_!==de):(mt=_<0,De=_!==re):(Ze=W<0,Be=W!==re),a.createElement(bo,{onResize:Ke},a.createElement("div",{ref:Yo(t,R),role:"tablist","aria-orientation":O?"horizontal":"vertical",className:U(`${C}-nav`,n,x?.header),style:{...E?.header,...r},onKeyDown:()=>{Ee()}},a.createElement(iP,{ref:P,position:"left",extra:f,prefixCls:C}),a.createElement(bo,{onResize:Ke},a.createElement("div",{className:U(gt,{[`${gt}-ping-left`]:mt,[`${gt}-ping-right`]:De,[`${gt}-ping-top`]:Ze,[`${gt}-ping-bottom`]:Be}),ref:T},a.createElement(bo,{onResize:Ke},a.createElement("div",{ref:L,className:`${C}-nav-list`,style:{transform:`translate(${_}px, ${W}px)`,transition:ce?"none":void 0}},ze,a.createElement(s6,{ref:M,prefixCls:C,locale:p,editable:d,style:{...ze.length===0?void 0:Je,visibility:Lt?"hidden":null}}),a.createElement("div",{className:U(`${C}-ink-bar`,x?.indicator,{[`${C}-ink-bar-animated`]:s.inkBar}),style:{...St,...E?.indicator}}))))),a.createElement(mV,$x({},e,{removeAriaLabel:p?.removeAriaLabel,ref:z,prefixCls:C,tabs:dt,className:!Lt&&ie,popupStyle:E?.popup,tabMoving:!!ce})),a.createElement(iP,{ref:I,position:"right",extra:f,prefixCls:C})))}),yV=({renderTabBar:e,...t})=>e?e(t,aP):a.createElement(aP,t),bV=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,id:s,active:i,tabKey:c,children:f}=e,d=a.Children.count(f)>0;return a.createElement("div",{id:s&&`${s}-panel-${c}`,role:"tabpanel",tabIndex:i&&d?0:-1,"aria-labelledby":s&&`${s}-tab-${c}`,"aria-hidden":!i,style:o,className:U(n,i&&`${n}-active`,r),ref:t},f)});function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}const vV=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:s,bodyStyle:i,bodyClassName:c,contentStyle:f,contentClassName:d}=e,{prefixCls:p,tabs:m}=a.useContext(a$),h=r.tabPane,y=`${p}-body`,b=`${p}-content`;return a.createElement("div",{className:U(`${y}-holder`)},a.createElement("div",{className:U(y,`${y}-${o}`,{[`${y}-animated`]:h},c),style:i},m.map(v=>{const{key:$,forceRender:x,style:E,className:C,destroyOnHidden:w,...R}=v,P=$===n;return a.createElement(Ar,Hm({key:$,visible:P,forceRender:x,removeOnLeave:!!(s??w),leavedClassName:`${b}-hidden`},r.tabPaneMotion),({style:I,className:T},L)=>a.createElement(bV,Hm({},R,{prefixCls:b,id:t,tabKey:$,animated:h,active:P,style:{...f,...E,...I},className:U(d,C,T),ref:L})))})))};function xV(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zu.apply(this,arguments)}let lP=0;const CV=a.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:o,items:s,direction:i,activeKey:c,defaultActiveKey:f,editable:d,animated:p,tabPosition:m="top",tabBarGutter:h,tabBarStyle:y,tabBarExtraContent:b,locale:v,more:$,destroyOnHidden:x,renderTabBar:E,onChange:C,onTabClick:w,onTabScroll:R,getPopupContainer:P,popupClassName:I,indicator:T,classNames:L,styles:z,...M}=e,O=a.useMemo(()=>(s||[]).filter(J=>J&&typeof J=="object"&&"key"in J),[s]),_=i==="rtl",F=xV(p),[W,q]=a.useState(!1);a.useEffect(()=>{q(bD())},[]);const[G,j]=Rn(f??O[0]?.key,c),[H,k]=a.useState(()=>O.findIndex(J=>J.key===G));a.useEffect(()=>{let J=O.findIndex(ne=>ne.key===G);J===-1&&(J=Math.max(0,Math.min(H,O.length-1)),j(O[J]?.key)),k(J)},[O.map(J=>J.key).join("_"),G,H]);const[B,D]=Rn(null,n);a.useEffect(()=>{n||(D(`rc-tabs-${lP}`),lP+=1)},[]);function K(J,ne){w?.(J,ne);const oe=J!==G;j(J),oe&&C?.(J)}const Q={id:B,activeKey:G,animated:F,tabPosition:m,rtl:_,mobile:W},Z={...Q,editable:d,locale:v,more:$,tabBarGutter:h,onTabClick:K,onTabScroll:R,extra:b,style:y,getPopupContainer:P,popupClassName:U(I,L?.popup),indicator:T,styles:z,classNames:L},X=a.useMemo(()=>({tabs:O,prefixCls:r}),[O,r]);return a.createElement(a$.Provider,{value:X},a.createElement("div",Zu({ref:t,id:n,className:U(r,`${r}-${m}`,{[`${r}-mobile`]:W,[`${r}-editable`]:d,[`${r}-rtl`]:_},o)},M),a.createElement(yV,Zu({},Z,{renderTabBar:E})),a.createElement(vV,Zu({destroyOnHidden:x},Q,{bodyStyle:z?.body,bodyClassName:L?.body,contentStyle:z?.content,contentClassName:L?.content,animated:F}))))}),SV={motionAppear:!1,motionEnter:!0,motionLeave:!0};function $V(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...Rt(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...SV,motionName:Ls(e,"switch")}),n}function wV(e){return e.filter(t=>t)}function EV(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=cr(t).map(r=>{if(a.isValidElement(r)){const{key:o,props:s}=r,{tab:i,...c}=s||{};return{key:String(o),...c,label:i}}return null});return wV(n)}const RV=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}`}}}}},[Os(e,"slide-up"),Os(e,"slide-down")]]},IV=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:s,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${te(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:eo(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:te(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:te(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadiusLG)} 0 0 ${te(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},PV=e=>{const{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:o}=e;return{[`${n}-dropdown`]:{...an(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
|
|
265
|
+
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
|
|
266
|
+
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
|
|
267
|
+
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
|
|
268
|
+
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
|
|
269
|
+
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:$h},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
270
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
271
|
+
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
|
|
272
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
|
|
273
|
+
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
274
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Eh},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
|
|
275
|
+
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
|
|
276
|
+
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:wh},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
277
|
+
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
|
|
278
|
+
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Rh},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${te(o)} 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":{...zr,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${te(e.paddingXXS)} ${te(e.paddingSM)}`,color:e.colorText,fontWeight:400,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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},NV=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:s,verticalItemMargin:i,motionDurationSlow:c,calc:f}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${te(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(d=>`${d} ${c}`).join(", ")}},[`${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,
|
|
279
|
+
> 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}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:f(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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","top"].map(d=>`${d} ${c}`).join(", ")}},[`${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}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:te(f(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{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}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:f(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},TV=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:s,horizontalItemPaddingSM:i,horizontalItemPaddingLG:c}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${te(e.borderRadius)} ${te(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:s,minHeight:s}}}}}},MV=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:s,horizontalItemPadding:i,itemSelectedColor:c,itemColor:f}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM},[`${d}-icon > svg`]:{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...to(e)},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:c},[`&${d}-focus ${d}-btn:focus-visible`]:eo(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:s}}}},OV=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:s}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:s(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"}}},zV=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:s,itemActiveColor:i,colorBorderSecondary:c}=e;return{[t]:{...an(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} ${c}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:i},...to(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...MV(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...to(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"}}}}}},AV=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:s}=e,i=t||s,c=n||o,f=r||s+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:c,cardHeightLG:f,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},LV=Zt("Tabs",e=>{const t=Jt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${te(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${te(e.horizontalItemGutter)}`});return[TV(t),OV(t),NV(t),PV(t),IV(t),zV(t),RV(t)]},AV),DV=()=>null,BV=a.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:o,size:s,onEdit:i,hideAdd:c,centered:f,addIcon:d,removeIcon:p,moreIcon:m,more:h,popupClassName:y,children:b,items:v,animated:$,style:x,indicatorSize:E,indicator:C,classNames:w,styles:R,destroyInactiveTabPane:P,destroyOnHidden:I,tabPlacement:T,tabPosition:L,...z}=e,{prefixCls:M}=z,{getPrefixCls:O,direction:_,getPopupContainer:F,className:W,style:q,classNames:G,styles:j}=Xt("tabs"),{tabs:H}=a.useContext(Ot),k=O("tabs",M),B=er(k),[D,K]=LV(k,B),Q=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:Q.current}));let Z;n==="editable-card"&&(Z={onEdit:(Ee,{key:Se,event:Fe})=>{i?.(Ee==="add"?Fe:Se,Ee)},removeIcon:p??H?.removeIcon??a.createElement(ii,null),addIcon:(d??H?.addIcon)||a.createElement(i$,null),showAdd:c!==!0});const X=O(),J=or(s),ne=EV(v,b),oe=$V(k,$),ae={align:C?.align??H?.indicator?.align,size:C?.size??E??H?.indicator?.size??H?.indicatorSize},{visible:pe,onVisibleChange:fe,...le}=h??{},ie={icon:m??H?.more?.icon??H?.moreIcon??a.createElement(Jd,null),transitionName:`${X}-slide-up`,...le,...h&&!("open"in h)&&"visible"in h?{open:pe}:{},...h&&!("onOpenChange"in h)&&"onVisibleChange"in h?{onOpenChange:fe}:{}},re=a.useMemo(()=>{const Ee=T??L??void 0,Se=_==="rtl";switch(Ee){case"start":return Se?"right":"left";case"end":return Se?"left":"right";default:return Ee}},[T,L,_]),de={...e,size:J,tabPlacement:re,items:ne},ge=ut(q),se=ut(x),[ce,xe]=qt([G,w],[j,ge,R,se],{props:de},{popup:{_default:"root"}});return a.createElement(CV,{ref:Q,direction:_,getPopupContainer:F,...z,items:ne,className:U({[`${k}-large`]:J==="large",[`${k}-small`]:J==="small",[`${k}-card`]:["card","editable-card"].includes(n),[`${k}-editable-card`]:n==="editable-card",[`${k}-centered`]:f},W,r,o,ce.root,D,K,B),classNames:{...ce,popup:U(y,D,K,B,ce.popup?.root)},styles:{...xe,popup:xe.popup?.root},style:xe.root,editable:Z,more:ie,prefixCls:k,animated:oe,indicator:ae,destroyOnHidden:I??P,tabPosition:re})}),i6=BV;i6.TabPane=DV;const a6=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,hoverable:o=!0,...s}=e,{getPrefixCls:i}=a.useContext(Ot),c=i("card",n),f=U(`${c}-grid`,r,{[`${c}-grid-hoverable`]:o}),d=a.useRef(null);return a.useImperativeHandle(t,()=>({nativeElement:d.current})),a.createElement("div",{ref:d,...s,className:f})}),_V=e=>{const{antCls:t,headerHeight:n,headerPadding:r,tabsMarginBottom:o}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${te(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,...Ji(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...zr,[`> ${t}-typography`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:400,fontSize:e.fontSize}}},FV=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
280
|
+
${te(o)} 0 0 0 ${n},
|
|
281
|
+
0 ${te(o)} 0 0 ${n},
|
|
282
|
+
${te(o)} ${te(o)} 0 0 ${n},
|
|
283
|
+
${te(o)} 0 0 0 ${n} inset,
|
|
284
|
+
0 ${te(o)} 0 0 ${n} inset;
|
|
285
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},kV=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:s,actionsBg:i}=e;return{margin:0,padding:0,listStyle:"none",background:i,borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`,...Ji(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:te(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:te(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`}}}},HV=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Ji(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...zr},"&-description":{color:e.colorTextDescription}}),jV=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(o)}`}}},WV=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},VV=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:s,bodyPadding:i,extraColor:c,motionDurationMid:f}=e;return{[t]:{...an(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:_V(e),[`${t}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:400,fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:FV(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:kV(e),[`${t}-meta`]:HV(e)},[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(d=>`${d} ${f}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:jV(e),[`${t}-loading`]:WV(e),[`${t}-rtl`]:{direction:"rtl"}}},KV=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${te(r)}`,fontSize:s,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},UV=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),qV=Zt("Card",e=>{const t=Jt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[VV(t),KV(t)]},UV),GV=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return a.createElement("ul",{className:t,style:r},n.map((o,s)=>{const i=`action-${s}`;return a.createElement("li",{style:{width:`${100/n.length}%`},key:i},a.createElement("span",null,o))}))},XV=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:s,extra:i,headStyle:c={},bodyStyle:f={},title:d,loading:p,bordered:m,variant:h,size:y,type:b,cover:v,actions:$,tabList:x,children:E,activeTabKey:C,defaultActiveTabKey:w,tabBarExtraContent:R,hoverable:P,tabProps:I={},classNames:T,styles:L,...z}=e,{getPrefixCls:M,direction:O,className:_,style:F,classNames:W,styles:q}=Xt("card"),[G]=no("card",h,m),j=or(y),H={...e,size:j,variant:G},k=ut(F),B=ut(s),[D,K]=qt([W,T],[q,k,L,B],{props:H}),Q=_e=>{I.onChange?.(_e),e.onTabChange?.(_e)},Z=a.useMemo(()=>cr(E),[E]),X=a.useMemo(()=>Z.some(_e=>a.isValidElement(_e)&&_e.type===a6),[Z]),J=M("card",n),[ne,oe]=qV(J),ae=a.createElement(ro,{loading:!0,active:!0,paragraph:{rows:4},title:!1},E),pe=C!==void 0,fe={...I,[pe?"activeKey":"defaultActiveKey"]:pe?C:w??I.defaultActiveKey,tabBarExtraContent:R};let le;const ie=j!=="small"?"large":j,re=x?a.createElement(i6,{size:ie,...fe,className:`${J}-head-tabs`,onChange:Q,items:x.map(({tab:_e,...Ie})=>({label:_e,...Ie}))}):null;if(tt(d)||tt(i)||re){const _e=U(`${J}-head`,D.header),Ie=U(`${J}-head-title`,D.title),me=U(`${J}-extra`,D.extra),Le={...c,...K.header};le=a.createElement("div",{className:_e,style:Le},a.createElement("div",{className:`${J}-head-wrapper`},tt(d)&&a.createElement("div",{className:Ie,style:K.title},d),tt(i)&&a.createElement("div",{className:me,style:K.extra},i)),re)}const de=U(`${J}-cover`,D.cover),ge=tt(v)?a.createElement("div",{className:de,style:K.cover},v):null,se=U(`${J}-body`,D.body),ce={...f,...K.body},xe=p||Z.length?a.createElement("div",{className:se,style:ce},p?ae:E):null,Ee=U(`${J}-actions`,D.actions),Se=$?.length?a.createElement(GV,{actionClasses:Ee,actionStyle:K.actions,actions:$}):null,Fe=dn(z,["onTabChange"]),qe=U(J,_,{[`${J}-loading`]:p,[`${J}-bordered`]:G!=="borderless",[`${J}-hoverable`]:P,[`${J}-contain-grid`]:X,[`${J}-contain-tabs`]:x?.length,[`${J}-small`]:j==="small",[`${J}-type-${b}`]:!!b,[`${J}-rtl`]:O==="rtl"},r,o,ne,oe,D.root),Ne={...K.root};return a.createElement("div",{ref:t,...Fe,className:qe,style:Ne},le,ge,xe,Se)}),YV=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,avatar:o,title:s,description:i,style:c,classNames:f,styles:d,...p}=e,{getPrefixCls:m,className:h,style:y,classNames:b,styles:v}=Xt("cardMeta"),x=`${m("card",n)}-meta`,E=ut(y),C=ut(c),[w,R]=qt([b,f],[v,E,d,C],{props:e}),P=U(x,r,h,w.root),I={...R.root},T=U(`${x}-avatar`,w.avatar),L=U(`${x}-title`,w.title),z=U(`${x}-description`,w.description),M=U(`${x}-section`,w.section),O=tt(o)?a.createElement("div",{className:T,style:R.avatar},o):null,_=tt(s)?a.createElement("div",{className:L,style:R.title},s):null,F=tt(i)?a.createElement("div",{className:z,style:R.description},i):null,W=_||F?a.createElement("div",{className:M,style:R.section},_,F):null,q=a.useRef(null);return a.useImperativeHandle(t,()=>({nativeElement:q.current})),a.createElement("div",{ref:q,...p,className:P,style:I},O,W)}),Nr=XV;Nr.Grid=a6;Nr.Meta=YV;function Dh(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 QV(e,t,n){var r=n||{},o=r.noTrailing,s=o===void 0?!1:o,i=r.noLeading,c=i===void 0?!1:i,f=r.debounceMode,d=f===void 0?void 0:f,p,m=!1,h=0;function y(){p&&clearTimeout(p)}function b($){var x=$||{},E=x.upcomingOnly,C=E===void 0?!1:E;y(),m=!C}function v(){for(var $=arguments.length,x=new Array($),E=0;E<$;E++)x[E]=arguments[E];var C=this,w=Date.now()-h;if(m)return;function R(){h=Date.now(),t.apply(C,x)}function P(){p=void 0}!c&&d&&!p&&R(),y(),d===void 0&&w>e?c?(h=Date.now(),s||(p=setTimeout(d?P:R,e))):R():s!==!0&&(p=setTimeout(d?P:R,d===void 0?e-w:e))}return v.cancel=b,v}function JV(e,t,n){var r={},o=r.atBegin,s=o===void 0?!1:o;return QV(e,t,{debounceMode:s!==!1})}const c$=a.createContext(null),ZV=a.createContext({}),eK=e=>{const{dropPosition:t,dropLevelOffset:n,indent:r}=e,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return ee.createElement("div",{style:o})},tK=({prefixCls:e,level:t,isStart:n,isEnd:r})=>{const o=`${e}-indent-unit`,s=[];for(let i=0;i<t;i+=1)s.push(a.createElement("span",{key:i,className:U(o,{[`${o}-start`]:n[i],[`${o}-end`]:r[i]})}));return a.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},s)},nK=a.memo(tK);function Ur(e,t){return e[t]}function l6(e,t){return`${e}-${t}`}function rK(e){return e&&e.type&&e.type.isTreeNode}function tf(e,t){return e??t}function Oc(e){const{title:t,_title:n,key:r,children:o}=e||{},s=t||"title";return{title:s,_title:n||[s],key:r||"key",children:o||"children"}}function c6(e){function t(n){return cr(n).map(o=>{if(!rK(o))return kn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:s}=o,{children:i,...c}=o.props,f={key:s,...c},d=t(i);return d.length&&(f.children=d),f}).filter(o=>o)}return t(e)}function Mb(e,t,n){const{_title:r,key:o,children:s}=Oc(n),i=new Set(t===!0?[]:t),c=[];function f(d,p=null){return d.map((m,h)=>{const y=l6(p?p.pos:"0",h),b=tf(m[o],y);let v;for(let x=0;x<r.length;x+=1){const E=r[x];if(m[E]!==void 0){v=m[E];break}}const $=Object.assign(dn(m,[...r,o,s]),{title:v,key:b,parent:p,pos:y,children:null,data:m,isStart:[...p?p.isStart:[],h===0],isEnd:[...p?p.isEnd:[],h===d.length-1]});return c.push($),t===!0||i.has(b)?$.children=f(m[s]||[],$):$.children=[],$})}return f(e),c}function oK(e,t,n){const r=typeof n=="object"?n||{}:{externalGetKey:n},{childrenPropName:o,externalGetKey:s,fieldNames:i}=r,{key:c,children:f}=Oc(i),d=o||f;let p;s?typeof s=="string"?p=h=>h[s]:typeof s=="function"&&(p=h=>s(h)):p=(h,y)=>tf(h[c],y);function m(h,y,b,v){const $=h?h[d]:e,x=h?l6(b.pos,y):"0",E=h?[...v,h]:[];if(h){const C=p(h,x),w={node:h,index:y,pos:x,key:C,parentPos:b.node?b.pos:null,level:b.level+1,nodes:E};t(w)}$&&$.forEach((C,w)=>{m(C,w,{node:h,pos:x,level:b?b.level+1:-1},E)})}m(null)}function Bh(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:s,fieldNames:i}={},c){const f=o||c,d={},p={};let m={posEntities:d,keyEntities:p};return t&&(m=t(m)||m),oK(e,h=>{const{node:y,index:b,pos:v,key:$,parentPos:x,level:E,nodes:C}=h,w={node:y,nodes:C,index:b,key:$,pos:v,level:E},R=tf($,v);d[v]=w,p[R]=w,w.parent=d[x],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),n&&n(w,m)},{externalGetKey:f,childrenPropName:s,fieldNames:i}),r&&r(m),m}function u6(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function ed(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:o,checkedKeys:s,halfCheckedKeys:i,dragOverNodeKey:c,dropPosition:f,keyEntities:d}){const p=Ur(d,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:i.indexOf(e)!==-1,pos:String(p?p.pos:""),dragOver:c===e&&f===0,dragOverGapTop:c===e&&f===-1,dragOverGapBottom:c===e&&f===1}}function ir(e){const{data:t,expanded:n,selected:r,checked:o,loaded:s,loading:i,halfChecked:c,dragOver:f,dragOverGapTop:d,dragOverGapBottom:p,pos:m,active:h,eventKey:y}=e,b={...t,expanded:n,selected:r,checked:o,loaded:s,loading:i,halfChecked:c,dragOver:f,dragOverGapTop:d,dragOverGapBottom:p,pos:m,active:h,key:y};return"props"in b||Object.defineProperty(b,"props",{get(){return kn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),b}function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wx.apply(this,arguments)}const cP="open",uP="close",sK="---",$d=e=>{const{eventKey:t,className:n,style:r,dragOver:o,dragOverGapTop:s,dragOverGapBottom:i,isLeaf:c,isStart:f,isEnd:d,expanded:p,selected:m,checked:h,halfChecked:y,loading:b,domRef:v,active:$,data:x,onMouseMove:E,selectable:C,treeId:w,...R}=e,P=YT(w,t),I=ee.useContext(c$),{classNames:T,styles:L}=I||{},z=ee.useContext(ZV),M=ee.useRef(null),[O,_]=ee.useState(!1),F=!!(I.disabled||e.disabled||z.nodeDisabled?.(x)),W=ee.useMemo(()=>!I.checkable||e.checkable===!1?!1:I.checkable,[I.checkable,e.checkable]),q=me=>{F||I.onNodeSelect(me,ir(e))},G=me=>{F||!W||e.disableCheckbox||I.onNodeCheck(me,ir(e),!h)},j=ee.useMemo(()=>typeof C=="boolean"?C:I.selectable,[C,I.selectable]),H=!I.checkable&&!j,k=me=>{I.onNodeClick(me,ir(e)),j?q(me):G(me)},B=me=>{I.onNodeDoubleClick(me,ir(e))},D=me=>{I.onNodeMouseEnter(me,ir(e))},K=me=>{I.onNodeMouseLeave(me,ir(e))},Q=me=>{I.onNodeContextMenu(me,ir(e))},Z=ee.useMemo(()=>!!(I.draggable&&(!I.draggable.nodeDraggable||I.draggable.nodeDraggable(x))),[I.draggable,x]),X=me=>{me.stopPropagation(),_(!0);try{me.dataTransfer.setData("text/plain","")}catch{}I.onNodeDragStart(me,e)},J=me=>{me.preventDefault(),me.stopPropagation(),I.onNodeDragEnter(me,e)},ne=me=>{me.preventDefault(),me.stopPropagation(),I.onNodeDragOver(me,e)},oe=me=>{me.stopPropagation(),I.onNodeDragLeave(me,e)},ae=me=>{me.stopPropagation(),_(!1),I.onNodeDragEnd(me,e)},pe=me=>{me.preventDefault(),me.stopPropagation(),_(!1),I.onNodeDrop(me,e)},fe=me=>{b||I.onNodeExpand(me,ir(e))},le=ee.useMemo(()=>{const{children:me}=Ur(I.keyEntities,t)||{};return!!(me||[]).length},[I.keyEntities,t]),ie=ee.useMemo(()=>u6(c,I.loadData,le,e.loaded),[c,I.loadData,le,e.loaded]);ee.useEffect(()=>{b||typeof I.loadData=="function"&&p&&!ie&&!e.loaded&&I.onNodeLoad(ir(e))},[b,I.loadData,I.onNodeLoad,p,ie,e]);const re=ee.useMemo(()=>I.draggable?.icon?ee.createElement("span",{className:`${I.prefixCls}-draggable-icon`},I.draggable.icon):null,[I.draggable]),de=me=>{const Le=e.switcherIcon||I.switcherIcon;return typeof Le=="function"?Le({...e,isLeaf:me}):Le},ge=()=>{if(ie){const Le=de(!0);return Le!==!1?ee.createElement("span",{className:U(`${I.prefixCls}-switcher`,`${I.prefixCls}-switcher-noop`,T?.itemSwitcher),style:L?.itemSwitcher},Le):null}const me=de(!1);return me!==!1?ee.createElement("span",{onClick:fe,className:U(`${I.prefixCls}-switcher`,`${I.prefixCls}-switcher_${p?cP:uP}`,T?.itemSwitcher),style:L?.itemSwitcher},me):null},se=ee.useMemo(()=>{if(!W)return null;const me=typeof W!="boolean"?W:null;return ee.createElement("span",{className:U(`${I.prefixCls}-checkbox`,{[`${I.prefixCls}-checkbox-checked`]:h,[`${I.prefixCls}-checkbox-indeterminate`]:!h&&y,[`${I.prefixCls}-checkbox-disabled`]:F||e.disableCheckbox}),onClick:G,role:"checkbox","aria-checked":y?"mixed":h,"aria-disabled":F||e.disableCheckbox,"aria-labelledby":P},me)},[W,h,y,F,e.disableCheckbox,P]),ce=ee.useMemo(()=>ie?null:p?cP:uP,[ie,p]),xe=ee.useMemo(()=>ee.createElement("span",{className:U(T?.itemIcon,`${I.prefixCls}-iconEle`,`${I.prefixCls}-icon__${ce||"docu"}`,{[`${I.prefixCls}-icon_loading`]:b}),style:L?.itemIcon}),[I.prefixCls,ce,b]),Ee=ee.useMemo(()=>{const me=!!I.draggable;return!e.disabled&&me&&I.dragOverNodeKey===t?I.dropIndicatorRender({dropPosition:I.dropPosition,dropLevelOffset:I.dropLevelOffset,indent:I.indent,prefixCls:I.prefixCls,direction:I.direction}):null},[I.dropPosition,I.dropLevelOffset,I.indent,I.prefixCls,I.direction,I.draggable,I.dragOverNodeKey,I.dropIndicatorRender]),Se=ee.useMemo(()=>{const{title:me=sK}=e,Le=`${I.prefixCls}-node-content-wrapper`;let He;if(I.showIcon){const Oe=tt(e.icon)?e.icon:I.icon;He=tt(Oe)?ee.createElement("span",{className:U(T?.itemIcon,`${I.prefixCls}-iconEle`,`${I.prefixCls}-icon__customize`),style:L?.itemIcon},typeof Oe=="function"?Oe(e):Oe):xe}else I.loadData&&b&&(He=xe);let Ae;return typeof me=="function"?Ae=me(x):I.titleRender?Ae=I.titleRender(x):Ae=me,ee.createElement("span",{ref:M,title:typeof me=="string"?me:"",className:U(Le,`${Le}-${ce||"normal"}`,{[`${I.prefixCls}-node-selected`]:!F&&(m||O)}),onMouseEnter:D,onMouseLeave:K,onContextMenu:Q,onClick:k,onDoubleClick:B},He,ee.createElement("span",{className:U(`${I.prefixCls}-title`,T?.itemTitle),style:L?.itemTitle},Ae),Ee)},[I.prefixCls,I.showIcon,e,I.icon,xe,I.titleRender,x,ce,D,K,Q,k,B]),Fe=Hn(R,{aria:!0,data:!0}),{level:qe}=Ur(I.keyEntities,t)||{},Ne=d[d.length-1],_e=!F&&Z,Ie=I.draggingNodeKey===t;return ee.createElement("div",wx({ref:v,role:"treeitem",id:P,"aria-expanded":ie?void 0:p,"aria-selected":j&&!F?m:void 0,"aria-checked":W&&!F?y?"mixed":h:void 0,"aria-disabled":F,className:U(n,`${I.prefixCls}-treenode`,T?.item,{[`${I.prefixCls}-treenode-disabled`]:F,[`${I.prefixCls}-treenode-unselectable`]:H,[`${I.prefixCls}-treenode-switcher-${p?"open":"close"}`]:!c,[`${I.prefixCls}-treenode-checkbox-checked`]:h,[`${I.prefixCls}-treenode-checkbox-indeterminate`]:y,[`${I.prefixCls}-treenode-selected`]:m,[`${I.prefixCls}-treenode-loading`]:b,[`${I.prefixCls}-treenode-active`]:$,[`${I.prefixCls}-treenode-leaf-last`]:Ne,[`${I.prefixCls}-treenode-draggable`]:Z,dragging:Ie,"drop-target":I.dropTargetKey===t,"drop-container":I.dropContainerKey===t,"drag-over":!F&&o,"drag-over-gap-top":!F&&s,"drag-over-gap-bottom":!F&&i,"filter-node":I.filterTreeNode?.(ir(e)),[`${I.prefixCls}-treenode-leaf`]:ie}),style:{...r,...L?.item},draggable:_e,onDragStart:_e?X:void 0,onDragEnter:Z?J:void 0,onDragOver:Z?ne:void 0,onDragLeave:Z?oe:void 0,onDrop:Z?pe:void 0,onDragEnd:Z?ae:void 0,onMouseMove:E},Fe),ee.createElement(nK,{prefixCls:I.prefixCls,level:qe,isStart:f,isEnd:d}),re,ge(),se,Se)};$d.isTreeNode=1;function iK(e,t){const[n,r]=a.useState(!1);Qt(()=>{if(n)return e(),()=>{t()}},[n]),Qt(()=>(r(!0),()=>{r(!1)}),[])}function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},td.apply(this,arguments)}const aK=a.forwardRef((e,t)=>{const{className:n,style:r,motion:o,motionNodes:s,motionType:i,onMotionStart:c,onMotionEnd:f,active:d,treeNodeRequiredProps:p,...m}=e,[h,y]=a.useState(!0),{prefixCls:b}=a.useContext(c$),v=s&&i!=="hide";Qt(()=>{s&&v!==h&&y(v)},[s]);const $=()=>{s&&c()},x=a.useRef(!1),E=()=>{s&&!x.current&&(x.current=!0,f())};iK($,E);const C=w=>{v===w&&E()};return s?a.createElement(Ar,td({ref:t,visible:h},o,{motionAppear:i==="show",onVisibleChanged:C}),({className:w,style:R},P)=>a.createElement("div",{ref:P,className:U(`${b}-treenode-motion`,w),style:R},s.map(I=>{const{data:{...T},title:L,key:z,isStart:M,isEnd:O}=I;delete T.children;const _=ed(z,p);return a.createElement($d,td({},T,_,{title:L,active:d,data:I.data,key:z,isStart:M,isEnd:O}))}))):a.createElement($d,td({domRef:t,className:n,style:r},m,{active:d}))});function lK(e=[],t=[]){const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(s,i){const c=new Map;s.forEach(d=>{c.set(d,!0)});const f=i.filter(d=>!c.has(d));return f.length===1?f[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function dP(e,t,n){const r=e.findIndex(i=>i.key===n),o=e[r+1],s=t.findIndex(i=>i.key===n);if(o){const i=t.findIndex(c=>c.key===o.key);return t.slice(s+1,i)}return t.slice(s+1)}function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(this,arguments)}const Ja=`RC_TREE_MOTION_${Math.random()}`,Ex={key:Ja},d6={key:Ja,level:0,index:0,pos:"0",node:Ex,nodes:[Ex]},fP={parent:null,children:[],pos:d6.pos,data:Ex,title:null,key:Ja,isStart:[],isEnd:[]};function pP(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function mP(e){const{key:t,pos:n}=e;return tf(t,n)}const cK=a.forwardRef((e,t)=>{const{prefixCls:n,data:r,selectable:o,checkable:s,expandedKeys:i,selectedKeys:c,checkedKeys:f,loadedKeys:d,loadingKeys:p,halfCheckedKeys:m,keyEntities:h,disabled:y,dragging:b,dragOverNodeKey:v,dropPosition:$,motion:x,height:E,itemHeight:C,virtual:w,scrollWidth:R,focusable:P,activeItem:I,tabIndex:T,onKeyDown:L,onFocus:z,onBlur:M,onMouseDown:O,onActiveChange:_,onListChangeStart:F,onListChangeEnd:W,...q}=e,G=Xo(),j=a.useRef(null),H=a.useRef(null);a.useImperativeHandle(t,()=>({scrollTo:ie=>{j.current.scrollTo(ie)},getIndentWidth:()=>H.current.offsetWidth}));const[k,B]=a.useState(i),[D,K]=a.useState(r),[Q,Z]=a.useState(r),[X,J]=a.useState([]),[ne,oe]=a.useState(null),ae=a.useRef(r);ae.current=r;function pe(){const ie=ae.current;K(ie),Z(ie),J([]),oe(null),W()}Qt(()=>{B(i);const ie=lK(k,i);if(ie.key!==null)if(ie.add){const re=D.findIndex(({key:se})=>se===ie.key),de=pP(dP(D,r,ie.key),w,E,C),ge=D.slice();ge.splice(re+1,0,fP),Z(ge),J(de),oe("show")}else{const re=r.findIndex(({key:se})=>se===ie.key),de=pP(dP(r,D,ie.key),w,E,C),ge=r.slice();ge.splice(re+1,0,fP),Z(ge),J(de),oe("hide")}else D!==r&&(K(r),Z(r))},[i,r]),a.useEffect(()=>{b||pe()},[b]);const fe=x?Q:r,le={expandedKeys:i,selectedKeys:c,loadedKeys:d,loadingKeys:p,checkedKeys:f,halfCheckedKeys:m,dragOverNodeKey:v,dropPosition:$,keyEntities:h};return a.createElement(a.Fragment,null,a.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:`${n}-indent`},a.createElement("div",{ref:H,className:`${n}-indent-unit`}))),a.createElement(Ph,jm({},q,{data:fe,itemKey:mP,height:E,fullHeight:!1,virtual:w,itemHeight:C,scrollWidth:R,prefixCls:`${n}-list`,ref:j,role:"tree",tabIndex:P!==!1&&!y?T:void 0,"aria-activedescendant":I?YT(G,I.key):void 0,onKeyDown:L,onFocus:z,onBlur:M,onMouseDown:O,onVisibleChange:ie=>{ie.every(re=>mP(re)!==Ja)&&pe()}}),ie=>{const{pos:re,data:{...de},title:ge,key:se,isStart:ce,isEnd:xe}=ie,Ee=tf(se,re);delete de.key,delete de.children;const Se=ed(Ee,le);return a.createElement(aK,jm({},de,Se,{title:ge,active:!!I&&se===I.key,pos:re,data:ie.data,isStart:ce,isEnd:xe,motion:x,motionNodes:se===Ja?X:null,motionType:ne,onMotionStart:F,onMotionEnd:pe,treeNodeRequiredProps:le,treeId:G,onMouseMove:()=>{_(null)}}))}))});function Rs(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Is(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function u$(e){return e.split("-")}function uK(e,t){const n=[],r=Ur(t,e);function o(s=[]){s.forEach(({key:i,children:c})=>{n.push(i),o(c)})}return o(r.children),n}function dK(e){if(e.parent){const t=u$(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function fK(e){const t=u$(e.pos);return Number(t[t.length-1])===0}function hP(e,t,n,r,o,s,i,c,f,d){const{clientX:p,clientY:m}=e,{top:h,height:y}=e.target.getBoundingClientRect(),v=((d==="rtl"?-1:1)*((o?.x||0)-p)-12)/r,$=f.filter(M=>c[M]?.children?.length);let x=Ur(c,n.eventKey);const E=m<h+y/2&&fK(x);if(m<h+y/2&&!E){const M=i.findIndex(F=>F.key===x.key),O=M<=0?0:M-1,_=i[O].key;x=Ur(c,_)}const C=x.key,w=x,R=x.key;let P=0,I=0;if(!$.includes(C))for(let M=0;M<v&&dK(x);M+=1)x=x.parent,I+=1;const T=t.data,L=x.node;let z=!0;return E&&s({dragNode:T,dropNode:L,dropPosition:-1})&&x.key===n.eventKey?P=-1:(w.children||[]).length&&$.includes(R)?s({dragNode:T,dropNode:L,dropPosition:0})?P=0:z=!1:I===0?v>-1.5?s({dragNode:T,dropNode:L,dropPosition:1})?P=1:z=!1:s({dragNode:T,dropNode:L,dropPosition:0})?P=0:s({dragNode:T,dropNode:L,dropPosition:1})?P=1:z=!1:s({dragNode:T,dropNode:L,dropPosition:1})?P=1:z=!1,{dropPosition:P,dropLevelOffset:I,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:R,dropContainerKey:P===0?null:x.parent?.key||null,dropAllowed:z}}function gP(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function Ob(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return kn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Rx(e,t){const n=new Set;function r(o){if(n.has(o))return;const s=Ur(t,o);if(!s)return;n.add(o);const{parent:i,node:c}=s;c.disabled||i&&r(i.key)}return(e||[]).forEach(o=>{r(o)}),[...n]}function f6(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function pK(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function mK(e,t,n,r){const o=new Set(e),s=new Set;for(let c=0;c<=n;c+=1)(t.get(c)||new Set).forEach(d=>{const{key:p,node:m,children:h=[]}=d;o.has(p)&&!r(m)&&h.filter(y=>!r(y.node)).forEach(y=>{o.add(y.key)})});const i=new Set;for(let c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(d=>{const{parent:p,node:m}=d;if(r(m)||!d.parent||i.has(d.parent.key))return;if(r(d.parent.node)){i.add(p.key);return}let h=!0,y=!1;(p.children||[]).filter(b=>!r(b.node)).forEach(({key:b})=>{const v=o.has(b);h&&!v&&(h=!1),!y&&(v||s.has(b))&&(y=!0)}),h&&o.add(p.key),y&&s.add(p.key),i.add(p.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(f6(s,o))}}function hK(e,t,n,r,o){const s=new Set(e);let i=new Set(t);for(let f=0;f<=r;f+=1)(n.get(f)||new Set).forEach(p=>{const{key:m,node:h,children:y=[]}=p;!s.has(m)&&!i.has(m)&&!o(h)&&y.filter(b=>!o(b.node)).forEach(b=>{s.delete(b.key)})});i=new Set;const c=new Set;for(let f=r;f>=0;f-=1)(n.get(f)||new Set).forEach(p=>{const{parent:m,node:h}=p;if(o(h)||!p.parent||c.has(p.parent.key))return;if(o(p.parent.node)){c.add(m.key);return}let y=!0,b=!1;(m.children||[]).filter(v=>!o(v.node)).forEach(({key:v})=>{const $=s.has(v);y&&!$&&(y=!1),!b&&($||i.has(v))&&(b=!0)}),y||s.delete(m.key),b&&i.add(m.key),c.add(m.key)});return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(f6(i,s))}}function cc(e,t,n,r){const o=[];let s;r?s=r:s=pK;const i=new Set(e.filter(p=>{const m=!!Ur(n,p);return m||o.push(p),m})),c=new Map;let f=0;Object.keys(n).forEach(p=>{const m=n[p],{level:h}=m;let y=c.get(h);y||(y=new Set,c.set(h,y)),y.add(m),f=Math.max(f,h)}),kn(!o.length,`Tree missing follow keys: ${o.slice(0,100).map(p=>`'${p}'`).join(", ")}`);let d;return t===!0?d=mK(i,c,f,s):d=hK(i,t.halfCheckedKeys,c,f,s),d}function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ix.apply(this,arguments)}const gK=10;var Yp;let yK=(Yp=class extends a.Component{constructor(){super(...arguments);Ce(this,"destroyed",!1);Ce(this,"delayedDragEnterLogic",{});Ce(this,"loadingRetryTimes",{});Ce(this,"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:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:Oc()});Ce(this,"dragStartMousePosition",null);Ce(this,"dragNodeProps",null);Ce(this,"currentMouseOverDroppableNodeKey",null);Ce(this,"focusedByMouse",!1);Ce(this,"listRef",a.createRef());Ce(this,"clearDelayedDragEnterLogic",()=>{Object.values(this.delayedDragEnterLogic).forEach(n=>{clearTimeout(n)}),this.delayedDragEnterLogic={}});Ce(this,"onNodeDragStart",(n,r)=>{const{expandedKeys:o,keyEntities:s}=this.state,{onDragStart:i}=this.props,{eventKey:c}=r;this.dragNodeProps=r,this.dragStartMousePosition={x:n.clientX,y:n.clientY};const f=Rs(o,c);this.setState({draggingNodeKey:c,dragChildrenKeys:uK(c,s),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(f),window.addEventListener("dragend",this.onWindowDragEnd),i?.({event:n,node:ir(r)})});Ce(this,"onNodeDragEnter",(n,r)=>{const{expandedKeys:o,keyEntities:s,dragChildrenKeys:i,flattenNodes:c,indent:f}=this.state,{onDragEnter:d,onExpand:p,allowDrop:m,direction:h}=this.props,{pos:y,eventKey:b}=r;if(this.currentMouseOverDroppableNodeKey!==b&&(this.currentMouseOverDroppableNodeKey=b),!this.dragNodeProps){this.resetDragState();return}const{dropPosition:v,dropLevelOffset:$,dropTargetKey:x,dropContainerKey:E,dropTargetPos:C,dropAllowed:w,dragOverNodeKey:R}=hP(n,this.dragNodeProps,r,f,this.dragStartMousePosition,m,c,s,o,h);if(i.includes(x)||!w){this.resetDragState();return}if(this.clearDelayedDragEnterLogic(),this.dragNodeProps.eventKey!==r.eventKey&&(n.persist(),this.delayedDragEnterLogic[y]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let P=[...o];const I=Ur(s,r.eventKey);I&&(I.children||[]).length&&(P=Is(o,r.eventKey)),this.setExpandedKeys(P),p?.(P,{node:ir(r),expanded:!0,nativeEvent:n.nativeEvent})},800)),this.dragNodeProps.eventKey===x&&$===0){this.resetDragState();return}this.setState({dragOverNodeKey:R,dropPosition:v,dropLevelOffset:$,dropTargetKey:x,dropContainerKey:E,dropTargetPos:C,dropAllowed:w}),d?.({event:n,node:ir(r),expandedKeys:o})});Ce(this,"onNodeDragOver",(n,r)=>{const{dragChildrenKeys:o,flattenNodes:s,keyEntities:i,expandedKeys:c,indent:f}=this.state,{onDragOver:d,allowDrop:p,direction:m}=this.props;if(!this.dragNodeProps)return;const{dropPosition:h,dropLevelOffset:y,dropTargetKey:b,dropContainerKey:v,dropTargetPos:$,dropAllowed:x,dragOverNodeKey:E}=hP(n,this.dragNodeProps,r,f,this.dragStartMousePosition,p,s,i,c,m);o.includes(b)||!x||(this.dragNodeProps.eventKey===b&&y===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():h===this.state.dropPosition&&y===this.state.dropLevelOffset&&b===this.state.dropTargetKey&&v===this.state.dropContainerKey&&$===this.state.dropTargetPos&&x===this.state.dropAllowed&&E===this.state.dragOverNodeKey||this.setState({dropPosition:h,dropLevelOffset:y,dropTargetKey:b,dropContainerKey:v,dropTargetPos:$,dropAllowed:x,dragOverNodeKey:E}),d?.({event:n,node:ir(r)}))});Ce(this,"onNodeDragLeave",(n,r)=>{this.currentMouseOverDroppableNodeKey===r.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:o}=this.props;o?.({event:n,node:ir(r)})});Ce(this,"onWindowDragEnd",n=>{this.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)});Ce(this,"onNodeDragEnd",(n,r)=>{const{onDragEnd:o}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),o?.({event:n,node:ir(r)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)});Ce(this,"onNodeDrop",(n,r,o=!1)=>{const{dragChildrenKeys:s,dropPosition:i,dropTargetKey:c,dropTargetPos:f,dropAllowed:d}=this.state;if(!d)return;const{onDrop:p}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),c===null)return;const m={...ed(c,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===c,data:Ur(this.state.keyEntities,c).node},h=s.includes(c);kn(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const y=u$(f),b={event:n,node:ir(m),dragNode:this.dragNodeProps?ir(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(s),dropToGap:i!==0,dropPosition:i+Number(y[y.length-1])};o||p?.(b),this.dragNodeProps=null});Ce(this,"cleanDragState",()=>{const{draggingNodeKey:n}=this.state;n!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null});Ce(this,"triggerExpandActionExpand",(n,r)=>{const{expandedKeys:o,flattenNodes:s}=this.state,{expanded:i,key:c,isLeaf:f}=r;if(f||n.shiftKey||n.metaKey||n.ctrlKey)return;const d=s.filter(m=>m.key===c)[0],p=ir({...ed(c,this.getTreeNodeRequiredProps()),data:d.data});this.setExpandedKeys(i?Rs(o,c):Is(o,c)),this.onNodeExpand(n,p)});Ce(this,"onNodeClick",(n,r)=>{const{onClick:o,expandAction:s}=this.props;s==="click"&&this.triggerExpandActionExpand(n,r),o?.(n,r)});Ce(this,"onNodeDoubleClick",(n,r)=>{const{onDoubleClick:o,expandAction:s}=this.props;s==="doubleClick"&&this.triggerExpandActionExpand(n,r),o?.(n,r)});Ce(this,"onNodeSelect",(n,r)=>{let{selectedKeys:o}=this.state;const{keyEntities:s,fieldNames:i}=this.state,{onSelect:c,multiple:f}=this.props,{selected:d}=r,p=r[i.key],m=!d;m?f?o=Is(o,p):o=[p]:o=Rs(o,p);const h=o.map(y=>{const b=Ur(s,y);return b?b.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:o}),c?.(o,{event:"select",selected:m,node:r,selectedNodes:h,nativeEvent:n.nativeEvent})});Ce(this,"onNodeCheck",(n,r,o)=>{const{keyEntities:s,checkedKeys:i,halfCheckedKeys:c}=this.state,{checkStrictly:f,onCheck:d}=this.props,{key:p}=r;let m;const h={event:"check",node:r,checked:o,nativeEvent:n.nativeEvent};if(f){const y=o?Is(i,p):Rs(i,p),b=Rs(c,p);m={checked:y,halfChecked:b},h.checkedNodes=y.map(v=>Ur(s,v)).filter(Boolean).map(v=>v.node),this.setUncontrolledState({checkedKeys:y})}else{let{checkedKeys:y,halfCheckedKeys:b}=cc([...i,p],!0,s);if(!o){const v=new Set(y);v.delete(p),{checkedKeys:y,halfCheckedKeys:b}=cc(Array.from(v),{halfCheckedKeys:b},s)}m=y,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=b,y.forEach(v=>{const $=Ur(s,v);if(!$)return;const{node:x,pos:E}=$;h.checkedNodes.push(x),h.checkedNodesPositions.push({node:x,pos:E})}),this.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:b})}d?.(m,h)});Ce(this,"onNodeLoad",n=>{const{key:r}=n,{keyEntities:o}=this.state;if(Ur(o,r)?.children?.length)return;const i=new Promise((c,f)=>{this.setState(({loadedKeys:d=[],loadingKeys:p=[]})=>{const{loadData:m,onLoad:h}=this.props;return!m||d.includes(r)||p.includes(r)?null:(m(n).then(()=>{const{loadedKeys:b}=this.state,v=Is(b,r);h?.(v,{event:"load",node:n}),this.setUncontrolledState({loadedKeys:v}),this.setState($=>({loadingKeys:Rs($.loadingKeys,r)})),c()}).catch(b=>{if(this.setState(v=>({loadingKeys:Rs(v.loadingKeys,r)})),this.loadingRetryTimes[r]=(this.loadingRetryTimes[r]||0)+1,this.loadingRetryTimes[r]>=gK){const{loadedKeys:v}=this.state;kn(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:Is(v,r)}),c()}f(b)}),{loadingKeys:Is(p,r)})})});return i.catch(()=>{}),i});Ce(this,"onNodeMouseEnter",(n,r)=>{const{onMouseEnter:o}=this.props;o?.({event:n,node:r})});Ce(this,"onNodeMouseLeave",(n,r)=>{const{onMouseLeave:o}=this.props;o?.({event:n,node:r})});Ce(this,"onNodeContextMenu",(n,r)=>{const{onRightClick:o}=this.props;o&&(n.preventDefault(),o({event:n,node:r}))});Ce(this,"onMouseDown",n=>{this.focusedByMouse=!0;const{onMouseDown:r}=this.props;r?.(n)});Ce(this,"onGlobalMouseUp",()=>{this.focusedByMouse=!1});Ce(this,"onFocus",(...n)=>{const[r]=n,{onFocus:o,disabled:s}=this.props,{activeKey:i,selectedKeys:c,flattenNodes:f}=this.state;if(r.target===r.currentTarget&&!this.focusedByMouse&&!s&&i===null){const d=c.find(p=>f.some(m=>m.key===p));d!==void 0?this.onActiveChange(d):this.onActiveChange(f?.[0]?.key||null)}o?.(...n)});Ce(this,"onBlur",(...n)=>{const{onBlur:r}=this.props;this.onActiveChange(null),r?.(...n)});Ce(this,"getTreeNodeRequiredProps",()=>{const{expandedKeys:n,selectedKeys:r,loadedKeys:o,loadingKeys:s,checkedKeys:i,halfCheckedKeys:c,dragOverNodeKey:f,dropPosition:d,keyEntities:p}=this.state;return{expandedKeys:n||[],selectedKeys:r||[],loadedKeys:o||[],loadingKeys:s||[],checkedKeys:i||[],halfCheckedKeys:c||[],dragOverNodeKey:f,dropPosition:d,keyEntities:p}});Ce(this,"setExpandedKeys",n=>{if(this.props.expandedKeys!==void 0)return;const{treeData:r,fieldNames:o}=this.state,s=Mb(r,n,o);this.setUncontrolledState({expandedKeys:n,flattenNodes:s},!0)});Ce(this,"onNodeExpand",(n,r)=>{let{expandedKeys:o}=this.state;const{listChanging:s,fieldNames:i}=this.state,{onExpand:c,loadData:f}=this.props,{expanded:d}=r,p=r[i.key];if(s)return;const m=o.includes(p),h=!d;if(kn(d&&m||!d&&!m,"Expand state not sync with index check"),o=h?Is(o,p):Rs(o,p),this.setExpandedKeys(o),c?.(o,{node:r,expanded:h,nativeEvent:n.nativeEvent}),h&&f){const y=this.onNodeLoad(r);y&&y.then(()=>{const b=Mb(this.state.treeData,o,i);this.setUncontrolledState({flattenNodes:b})}).catch(()=>{const{expandedKeys:b}=this.state,v=Rs(b,p);this.setExpandedKeys(v)})}});Ce(this,"onListChangeStart",()=>{this.setUncontrolledState({listChanging:!0})});Ce(this,"onListChangeEnd",()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})});Ce(this,"onActiveChange",n=>{const{activeKey:r}=this.state,{onActiveChange:o,itemScrollOffset:s=0}=this.props;r!==n&&(this.setState({activeKey:n}),n!==null&&this.scrollTo({key:n,offset:s}),o?.(n))});Ce(this,"getActiveItem",()=>{const{activeKey:n,flattenNodes:r}=this.state;return n===null?null:r.find(({key:o})=>o===n)||null});Ce(this,"offsetActiveKey",n=>{const{flattenNodes:r,activeKey:o}=this.state;let s=r.findIndex(({key:c})=>c===o);s===-1&&n<0&&(s=r.length),s=(s+n+r.length)%r.length;const i=r[s];if(i){const{key:c}=i;this.onActiveChange(c)}else this.onActiveChange(null)});Ce(this,"onKeyDown",n=>{const{activeKey:r,expandedKeys:o,checkedKeys:s,flattenNodes:i,keyEntities:c}=this.state,{onKeyDown:f,checkable:d,selectable:p,disabled:m,loadData:h}=this.props;if(m)return;switch(n.key){case"ArrowUp":{this.offsetActiveKey(-1),n.preventDefault();break}case"ArrowDown":{this.offsetActiveKey(1),n.preventDefault();break}case"Home":{this.onActiveChange(i?.[0]?.key),n.preventDefault();break}case"End":{this.onActiveChange(i?.[i.length-1]?.key),n.preventDefault();break}}const y=this.getActiveItem();if(y&&y.data){const b=this.getTreeNodeRequiredProps(),v=ir({...ed(r,b),data:y.data,active:!0}),x=!!Ur(c,r)?.children?.length,E=!u6(y.data.isLeaf,h,x,v.loaded),C=d&&!v.disabled&&v.checkable!==!1&&!v.disableCheckbox,w=!d&&p&&!v.disabled&&v.selectable!==!1;switch(n.key){case"ArrowLeft":{E&&o.includes(r)?this.onNodeExpand({},v):y.parent&&this.onActiveChange(y.parent.key),n.preventDefault();break}case"ArrowRight":{E&&!o.includes(r)?this.onNodeExpand({},v):y.children&&y.children.length&&this.onActiveChange(y.children[0].key),n.preventDefault();break}case"Enter":{E?(n.preventDefault(),this.onNodeExpand({},v)):C?s.includes(r)||(n.preventDefault(),this.onNodeCheck({},v,!0)):w&&!v.selected&&(n.preventDefault(),this.onNodeSelect({},v));break}case" ":{C?(n.preventDefault(),this.onNodeCheck({},v,!s.includes(r))):w&&(n.preventDefault(),this.onNodeSelect({},v));break}}}f?.(n)});Ce(this,"setUncontrolledState",(n,r=!1,o=null)=>{if(!this.destroyed){let s=!1,i=!0;const c={};Object.keys(n).forEach(f=>{if(this.props[f]!==void 0){i=!1;return}s=!0,c[f]=n[f]}),s&&(!r||i)&&this.setState({...c,...o})}});Ce(this,"scrollTo",n=>{n&&typeof n=="object"&&n.autoExpand&&this.setExpandedKeys(Is(this.state.expandedKeys,n.key)),this.listRef.current.scrollTo(n)})}componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:n,itemScrollOffset:r=0}=this.props;n!==void 0&&n!==this.state.activeKey&&(this.setState({activeKey:n}),n!==null&&this.scrollTo({key:n,offset:r}))}componentWillUnmount(){this.clearDelayedDragEnterLogic(),window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(n,r){const{prevProps:o}=r,s={prevProps:n};function i(p){return!o&&n[p]!==void 0||o&&o[p]!==n[p]}let c,{fieldNames:f}=r;if(i("fieldNames")&&(f=Oc(n.fieldNames),s.fieldNames=f),i("treeData")?{treeData:c}=n:i("children")&&(kn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=c6(n.children)),c){s.treeData=c;const p=Bh(c,{fieldNames:f});s.keyEntities={[Ja]:d6,...p.keyEntities}}const d=s.keyEntities||r.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent")&&n.expandedKeys!==void 0){const p=n.expandedKeys??[];s.expandedKeys=n.autoExpandParent||!o&&n.defaultExpandParent?Rx(p,d):p}else if(!o&&n.defaultExpandAll){const p={...d};delete p[Ja];const m=[];Object.keys(p).forEach(h=>{const y=p[h];y.children&&y.children.length&&m.push(y.key)}),s.expandedKeys=m}else!o&&n.defaultExpandedKeys&&(s.expandedKeys=n.autoExpandParent||n.defaultExpandParent?Rx(n.defaultExpandedKeys,d):n.defaultExpandedKeys);if(c||s.expandedKeys){const p=Mb(c||r.treeData,s.expandedKeys||r.expandedKeys,f);s.flattenNodes=p}if(n.selectable&&(i("selectedKeys")?s.selectedKeys=gP(n.selectedKeys??[],n):!o&&n.defaultSelectedKeys&&(s.selectedKeys=gP(n.defaultSelectedKeys,n))),n.checkable){let p;if(i("checkedKeys")?p=Ob(n.checkedKeys)||{}:!o&&n.defaultCheckedKeys?p=Ob(n.defaultCheckedKeys)||{}:c&&(p=Ob(n.checkedKeys)||{checkedKeys:r.checkedKeys,halfCheckedKeys:r.halfCheckedKeys}),p){let{checkedKeys:m=[],halfCheckedKeys:h=[]}=p;n.checkStrictly||({checkedKeys:m,halfCheckedKeys:h}=cc(m,!0,d)),s.checkedKeys=m,s.halfCheckedKeys=h}}return i("loadedKeys")&&(s.loadedKeys=n.loadedKeys??[]),o&&i("activeKey")&&n.activeKey===void 0&&(s.activeKey=null),s}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){const{flattenNodes:n,keyEntities:r,draggingNodeKey:o,dropLevelOffset:s,dropContainerKey:i,dropTargetKey:c,dropPosition:f,dragOverNodeKey:d,indent:p}=this.state,{prefixCls:m,className:h,style:y,styles:b,classNames:v,showLine:$,focusable:x,tabIndex:E=0,selectable:C,showIcon:w,icon:R,switcherIcon:P,draggable:I,checkable:T,checkStrictly:L,disabled:z,motion:M,loadData:O,filterTreeNode:_,height:F,itemHeight:W,scrollWidth:q,virtual:G,titleRender:j,dropIndicatorRender:H,onContextMenu:k,onScroll:B,direction:D,rootClassName:K,rootStyle:Q}=this.props,Z=Hn(this.props,{aria:!0,data:!0});let X;I&&(typeof I=="object"?X=I:typeof I=="function"?X={nodeDraggable:I}:X={});const J={styles:b,classNames:v,prefixCls:m,selectable:C,showIcon:w,icon:R,switcherIcon:P,draggable:X,draggingNodeKey:o,checkable:T,checkStrictly:L,disabled:z,keyEntities:r,dropLevelOffset:s,dropContainerKey:i,dropTargetKey:c,dropPosition:f,dragOverNodeKey:d,indent:p,direction:D,dropIndicatorRender:H,loadData:O,filterTreeNode:_,titleRender:j,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 a.createElement(c$.Provider,{value:J},a.createElement("div",{className:U(m,h,K,{[`${m}-show-line`]:$}),style:Q},a.createElement(cK,Ix({ref:this.listRef,prefixCls:m,style:y,data:n,disabled:z,selectable:C,checkable:!!T,motion:M,dragging:o!==null,height:F,itemHeight:W,virtual:G,focusable:x,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:k,onScroll:B,scrollWidth:q},this.getTreeNodeRequiredProps(),Z))))}},Ce(Yp,"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:eK,allowDrop:()=>!0,expandAction:!1}),Ce(Yp,"TreeNode",$d),Yp);function bK(e,t){const{fieldNames:n}=t,r=a.useMemo(()=>{const{keyEntities:s}=Bh(e,{fieldNames:n});return s},[e,n]);return{getPath:Ct(s=>{const i=[];let c=Ur(r,s);for(;c;)i.unshift(c),c=c.parent;return i})}}const vK=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`,s="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:{...an(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...an(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0}},[t]:{...an(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...uO(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${te(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...sI()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:eo(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[s]:{[`
|
|
286
|
+
${o}:not(${o}-disabled),
|
|
287
|
+
${t}:not(${t}-disabled)
|
|
288
|
+
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[`${t}-checked`]:{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}`,...sI()},[s]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{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:'""'},[s]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function p6(e,t){const n=Jt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return vK(n)}const m6=Zt("Checkbox",(e,{prefixCls:t})=>[p6(t,e)]),h6=ee.createContext(null),xK=(e,t)=>{const{prefixCls:n,children:r,indeterminate:o=!1,onMouseEnter:s,onMouseLeave:i,onPointerEnter:c,onPointerLeave:f,skipGroup:d=!1,disabled:p,rootClassName:m,className:h,style:y,classNames:b,styles:v,name:$,value:x,checked:E,defaultChecked:C,onChange:w,...R}=e,{getPrefixCls:P,direction:I,className:T,style:L,classNames:z,styles:M}=Xt("checkbox"),O=a.useContext(h6),{isFormItemInput:_}=a.useContext(Rr),F=a.useContext(Er),W=p??O?.disabled??F,[q,G]=Rn(C,E);let j=q;const H=Ct(de=>{G(de.target.checked),w?.(de),!d&&O?.toggleOption&&O.toggleOption({label:r,value:x})});O&&!d&&(j=O.value.includes(x));const k=a.useRef(null),B=Yo(t,k);a.useEffect(()=>{if(!(d||!O))return O.registerValue(x),()=>{O.cancelValue(x)}},[x,d]),a.useEffect(()=>{k.current?.input&&(k.current.input.indeterminate=o)},[o]);const D=P("checkbox",n),K=er(D),[Q,Z]=m6(D,K),X={...R},J={...e,indeterminate:o,disabled:W,checked:j},ne=ut(L),oe=ut(y),[ae,pe]=qt([z,d?void 0:O?.classNames,b],[M,ne,d?void 0:O?.styles,v,oe],{props:J}),fe=U(`${D}-wrapper`,{[`${D}-rtl`]:I==="rtl",[`${D}-wrapper-checked`]:j,[`${D}-wrapper-disabled`]:W,[`${D}-wrapper-in-form-item`]:_},T,h,ae.root,m,Z,K,Q),le=U(ae.icon,{[`${D}-indeterminate`]:o},kd,Q),[ie,re]=W4(X.onClick);return a.createElement(Hd,{component:"Checkbox",disabled:W},a.createElement("label",{className:fe,style:pe.root,onMouseEnter:s,onMouseLeave:i,onPointerEnter:c,onPointerLeave:f,onClick:ie},a.createElement(j4,{...X,name:!d&&O?O.name:$,checked:j,onClick:re,onChange:H,prefixCls:D,className:le,style:pe.icon,disabled:W,ref:B,value:x}),tt(r)&&a.createElement("span",{className:U(`${D}-label`,ae.label),style:pe.label},r)))},g6=a.forwardRef(xK),CK=ee.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:s,className:i,rootClassName:c,classNames:f,styles:d,style:p,onChange:m,role:h="group",...y}=e,{getPrefixCls:b,direction:v}=ee.useContext(Ot),$=ee.useContext(Er),x=y.disabled??$,[E,C]=Rn(n||[],y.value),w=E||[],[R,P]=ee.useState([]),I=ee.useMemo(()=>o.map(Q=>us(Q)||Un(Q)?{label:Q,value:Q}:Q).filter(Q=>un(Q)&&un(Q.value)),[o]),T=Q=>{P(Z=>Z.filter(X=>X!==Q))},L=Q=>{P(Z=>[].concat(jt(Z),[Q]))},z=Q=>{const Z=w.indexOf(Q.value),X=jt(w);Z===-1?X.push(Q.value):X.splice(Z,1),C(X),m?.(X.filter(J=>R.includes(J)).sort((J,ne)=>{const oe=I.findIndex(pe=>pe.value===J),ae=I.findIndex(pe=>pe.value===ne);return oe-ae}))},M=b("checkbox",s),O=`${M}-group`,_=er(M),[F,W]=m6(M,_),q={...e,options:o,value:E,disabled:x},G=ut(p),[j,H]=qt([f],[d,G],{props:q}),k=dn(y,["value","disabled"]),B=I.length>0?I.map(Q=>ee.createElement(g6,{prefixCls:M,key:Q.value.toString(),disabled:"disabled"in Q?Q.disabled:y.disabled,value:Q.value,checked:w.includes(Q.value),onChange:Q.onChange,className:U(`${O}-item`,Q.className),style:Q.style,title:Q.title,id:Q.id,required:Q.required},Q.label)):r,D=ee.useMemo(()=>({toggleOption:z,value:w,disabled:y.disabled,name:y.name,classNames:{root:j.item,icon:j.itemIcon,label:j.itemLabel},styles:{root:H.item,icon:H.itemIcon,label:H.itemLabel},registerValue:L,cancelValue:T}),[z,w,y.disabled,y.name,j,H,L,T]),K=U(O,{[`${O}-rtl`]:v==="rtl"},i,c,j.root,W,_,F);return ee.createElement("div",{className:K,style:H.root,role:h,...k,ref:t},ee.createElement(h6.Provider,{value:D},B))}),Za=g6;Za.Group=CK;Za.__ANT_CHECKBOX=!0;const y6=a.createContext({});function yP(e){return e==="auto"?"1 1 auto":Un(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const zc=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(Ot),{gutter:o,wrap:s}=a.useContext(y6),{prefixCls:i,span:c,order:f,offset:d,push:p,pull:m,className:h,children:y,flex:b,style:v,...$}=e,x=n("col",i),E=n(),[C,w]=mj(x),[R]=Bt(E,"col"),P={};let I={};i4.forEach(z=>{let M={};const O=e[z];Un(O)?M.span=O:Rt(O)&&(M=O||{}),delete $[z],I={...I,[`${x}-${z}-${M.span}`]:un(M.span),[`${x}-${z}-order-${M.order}`]:M.order||M.order===0,[`${x}-${z}-offset-${M.offset}`]:M.offset||M.offset===0,[`${x}-${z}-push-${M.push}`]:M.push||M.push===0,[`${x}-${z}-pull-${M.pull}`]:M.pull||M.pull===0,[`${x}-rtl`]:r==="rtl"},(M.flex||M.flex===0)&&(I[`${x}-${z}-flex`]=!0,P[R(`${z}-flex`)]=yP(M.flex))});const T=U(x,{[`${x}-${c}`]:c!==void 0,[`${x}-order-${f}`]:f,[`${x}-offset-${d}`]:d,[`${x}-push-${p}`]:p,[`${x}-pull-${m}`]:m},h,I,C,w),L={};if(o?.[0]){const z=Un(o[0])?`${o[0]/2}px`:`calc(${o[0]} / 2)`;L.paddingInline=z}return(b||b===0)&&(L.flex=yP(b),s===!1&&!L.minWidth&&(L.minWidth=0)),a.createElement("div",{...$,style:{...L,...v,...P},className:T,ref:t},y)});function SK(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((s,i)=>{if(Rt(s))for(let c=0;c<na.length;c++){const f=na[c];if(o[f]&&s[f]!==void 0){n[i]=s[f];break}}else n[i]=s}),n}const bP=(e,t)=>{if(us(e))return e;if(Rt(e))for(let n=0;n<na.length;n++){const r=na[n];if(!t||!t[r])continue;const o=e[r];if(o!==void 0)return o}return""},_h=a.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:s,style:i,children:c,gutter:f=0,wrap:d,...p}=e,{getPrefixCls:m,direction:h}=a.useContext(Ot),y=Yd(!0,null),b=bP(o,y),v=bP(r,y),$=m("row",n),[x,E]=pj($),C=SK(f,y),w=U($,{[`${$}-no-wrap`]:d===!1,[`${$}-${v}`]:v,[`${$}-${b}`]:b,[`${$}-rtl`]:h==="rtl"},s,x,E),R={};if(C?.[0]){const L=Un(C[0])?`${C[0]/-2}px`:`calc(${C[0]} / -2)`;R.marginInline=L}const[P,I]=C;R.rowGap=I;const T=a.useMemo(()=>({gutter:[P,I],wrap:d}),[P,I,d]);return a.createElement(y6.Provider,{value:T},a.createElement("div",{...p,className:w,style:{...R,...i},ref:t},c))}),vP=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},Es=e=>e!==void 0?`${e}px`:void 0;function $K(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:o,motionName:s,onMotionStart:i,onMotionEnd:c,direction:f,vertical:d=!1}=e,p=a.useRef(null),[m,h]=a.useState(r),y=I=>{const T=o(I),L=n.current?.querySelectorAll(`.${t}-item`)[T];return L?.offsetParent&&L},[b,v]=a.useState(null),[$,x]=a.useState(null);Qt(()=>{if(m!==r){const I=y(m),T=y(r),L=vP(I,d),z=vP(T,d);h(r),v(L),x(z),I&&T?i():c()}},[r]);const E=a.useMemo(()=>Es(d?b?.top??0:f==="rtl"?-b?.right:b?.left),[d,f,b]),C=a.useMemo(()=>Es(d?$?.top??0:f==="rtl"?-$?.right:$?.left),[d,f,$]),w=()=>d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},R=()=>d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},P=()=>{v(null),x(null),c()};return!b||!$?null:a.createElement(Ar,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:w,onAppearActive:R,onVisibleChanged:P},({className:I,style:T},L)=>{const z={...T,"--thumb-start-left":E,"--thumb-start-width":Es(b?.width),"--thumb-active-left":C,"--thumb-active-width":Es($?.width),"--thumb-start-top":E,"--thumb-start-height":Es(b?.height),"--thumb-active-top":C,"--thumb-active-height":Es($?.height)},M={ref:ur(p,L),style:z,className:U(`${t}-thumb`,I)};return a.createElement("div",M)})}function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wm.apply(this,arguments)}function wK(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function EK(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=wK(t);return{...t,value:t.value,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const RK=({prefixCls:e,className:t,style:n,styles:r,classNames:o,data:s,disabled:i,checked:c,label:f,title:d,value:p,name:m,onChange:h,onFocus:y,onBlur:b,onKeyDown:v,onKeyUp:$,onMouseDown:x,itemRender:E=C=>C})=>{const C=R=>{i||h(R,p)},w=a.createElement("label",{className:U(t,{[`${e}-item-disabled`]:i}),style:n,onMouseDown:x},a.createElement("input",{name:m,className:`${e}-item-input`,type:"radio",disabled:i,checked:c,onChange:C,onFocus:y,onBlur:b,onKeyDown:v,onKeyUp:$}),a.createElement("div",{className:U(`${e}-item-label`,o?.label),title:d,style:r?.label},f));return E(w,{item:s})},IK=a.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:o,options:s=[],disabled:i,defaultValue:c,value:f,name:d,onChange:p,className:m="",style:h,styles:y,classNames:b,motionName:v="thumb-motion",itemRender:$,...x}=e,E=a.useRef(null),C=a.useMemo(()=>ur(E,t),[E,t]),w=a.useMemo(()=>EK(s),[s]),[R,P]=Rn(c??w[0]?.value,f),[I,T]=a.useState(!1),L=(D,K)=>{P(K),p?.(K)},z=dn(x,["children"]),[M,O]=a.useState(!1),[_,F]=a.useState(!1),W=()=>{F(!0)},q=()=>{F(!1)},G=()=>{O(!1)},j=D=>{D.key==="Tab"&&O(!0)},H=D=>{const K=w.filter(ne=>ne.value===R||!ne.disabled),Q=K.findIndex(ne=>ne.value===R),Z=K.length,X=(Q+D+Z)%Z,J=K[X];J&&J.value!==R&&(P(J.value),p?.(J.value))},k=D=>{switch(D.key){case"ArrowLeft":case"ArrowUp":H(-1);break;case"ArrowRight":case"ArrowDown":H(1);break}},B=D=>{const{value:K,disabled:Q}=D;return a.createElement(RK,Wm({},D,{name:d,data:D,itemRender:$,key:K,prefixCls:n,className:U(D.className,`${n}-item`,b?.item,{[`${n}-item-selected`]:K===R&&!I,[`${n}-item-selected-text`]:K===R,[`${n}-item-focused`]:_&&M&&K===R}),style:y?.item,classNames:b,styles:y,checked:K===R,onChange:L,onFocus:W,onBlur:q,onKeyDown:k,onKeyUp:j,onMouseDown:G,disabled:!!i||!!Q}))};return a.createElement("div",Wm({role:"radiogroup","aria-label":"segmented control",tabIndex:i?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:h},z,{className:U(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:i,[`${n}-vertical`]:o},m),ref:C}),a.createElement("div",{className:`${n}-group`},a.createElement($K,{vertical:o,prefixCls:n,value:R,containerRef:E,motionName:`${n}-${v}`,direction:r,getValueIndex:D=>w.findIndex(K=>K.value===D),onMotionStart:()=>{T(!0)},onMotionEnd:()=>{T(!1)}}),w.map(B)))}),PK=IK;function xP(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const CP=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),NK={overflow:"hidden",...zr},TK=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),c=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...an(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...to(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${te(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...CP(e),color:e.itemSelectedColor},"&-selected-text":{color:e.itemSelectedColor,transition:`color ${o}`},"&-focused":eo(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(f=>`${f} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-selected-text):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:s,lineHeight:te(s),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,...NK},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-icon > svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...CP(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${te(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:i,lineHeight:te(i),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:c,lineHeight:te(c),padding:`0 ${te(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...xP(`&-disabled ${t}-item`,e),...xP(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(f=>`${f} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},MK=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:s,lineWidthBold:i,colorBgLayout:c}=e;return{trackPadding:i,trackBg:c,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:s,itemSelectedColor:n}},OK=Zt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Jt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return TK(r)},MK);function zK(e){return Rt(e)&&!!e?.icon}const AK=a.forwardRef((e,t)=>{const n=Xo(),{prefixCls:r,className:o,rootClassName:s,block:i,options:c=[],size:f,style:d,vertical:p,orientation:m,shape:h="default",name:y=n,styles:b,classNames:v,...$}=e,{getPrefixCls:x,direction:E,className:C,style:w,classNames:R,styles:P}=Xt("segmented"),I={...e,options:c,size:f,shape:h},T=ut(w),L=ut(d),[z,M]=qt([R,v],[P,T,b,L],{props:I}),O=x("segmented",r),[_,F]=OK(O),W=or(f),q=a.useMemo(()=>c.map(k=>{if(zK(k)){const{icon:B,label:D,...K}=k;return{...K,label:a.createElement(a.Fragment,null,a.createElement("span",{className:U(`${O}-item-icon`,z.icon),style:M.icon},B),tt(D)&&a.createElement("span",null,D))}}return k}),[c,O,z.icon,M.icon]),[,G]=_d(m,p),j=U(o,s,C,z.root,{[`${O}-block`]:i,[`${O}-sm`]:W==="small",[`${O}-lg`]:W==="large",[`${O}-vertical`]:G,[`${O}-shape-${h}`]:h==="round"},_,F),H=(k,{item:B})=>{if(!B.tooltip)return k;const D=Rt(B.tooltip)?B.tooltip:{title:B.tooltip};return a.createElement(rr,{...D},k)};return a.createElement(PK,{...$,name:y,className:j,style:M.root,classNames:z,styles:M,itemRender:H,options:q,ref:t,prefixCls:O,direction:E,vertical:G})}),SP=AK;var LK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function Px(){return Px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Px.apply(this,arguments)}const DK=(e,t)=>a.createElement(_t,Px({},e,{ref:t,icon:LK})),BK=a.forwardRef(DK);var _K={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"};function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nx.apply(this,arguments)}const FK=(e,t)=>a.createElement(_t,Nx({},e,{ref:t,icon:_K})),kK=a.forwardRef(FK);function Tx(){return typeof BigInt=="function"}function b6(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function qa(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",o=r.split("."),s=o[0]||"0",i=o[1]||"0";s==="0"&&i==="0"&&(n=!1);var c=n?"-":"";return{negative:n,negativeStr:c,trimStr:r,integerStr:s,decimalStr:i,fullStr:"".concat(c).concat(r)}}function Fh(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function v6(e){var t=e.toLowerCase().split("e"),n=vm(t,2),r=n[0],o=n[1],s=o===void 0?"0":o,i=r.startsWith("-"),c=i?r.slice(1):r,f=c.split("."),d=vm(f,2),p=d[0],m=p===void 0?"0":p,h=d[1],y=h===void 0?"":h,b="".concat(m).concat(y).replace(/^0+/,"")||"0";return{decimal:y,digits:b,exponent:Number(s),integer:m,negative:i}}function HK(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,s=e.negative;if(n==="0")return"0";var i=o.replace(/^0+/,"").length,c=(t.match(/^0*/)||[""])[0].length,f=i||-c,d=f+r,p="";return d<=0?p="0.".concat("0".repeat(-d)).concat(n):d>=n.length?p="".concat(n).concat("0".repeat(d-n.length)):p="".concat(n.slice(0,d),".").concat(n.slice(d)),"".concat(s?"-":"").concat(p)}function x6(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Pa(e){var t=String(e);return Fh(e)?x6(v6(t)):t.includes(".")&&d$(t)?t.length-t.indexOf(".")-1:0}function kh(e){var t=String(e);if(Fh(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Tx()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Tx()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=v6(t),r=x6(n);t=r>100?HK(n):e.toFixed(r)}return qa(t).fullStr}function d$(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 jK=(function(){function e(t){if(sl(this,e),ar(this,"origin",""),ar(this,"negative",void 0),ar(this,"integer",void 0),ar(this,"decimal",void 0),ar(this,"decimalLen",void 0),ar(this,"empty",void 0),ar(this,"nan",void 0),b6(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Fh(n)&&(n=Number(n)),n=typeof n=="string"?n:kh(n),d$(n)){var r=qa(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var s=o[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return il(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,o){var s=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(s),c=n.alignDecimal(s),f=r(i,c).toString(),d=o(s),p=qa(f),m=p.negativeStr,h=p.trimStr,y="".concat(m).concat(h.padStart(d+1,"0"));return new e("".concat(y.slice(0,-d),".").concat(y.slice(-d)))}},{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(o,s){return o+s},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,s){return o*s},function(o){return o*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?.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()?"":qa("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),WK=(function(){function e(t){if(sl(this,e),ar(this,"origin",""),ar(this,"number",void 0),ar(this,"empty",void 0),b6(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return il(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 o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(Pa(this.number),Pa(r));return new e(o.toFixed(s))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(Pa(this.number),Pa(r));return new e(o.toFixed(s))}},{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?.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()?"":Fh(this.number)&&Pa(this.number)>100?String(this.number):kh(this.number):this.origin}}]),e})();function Vo(e){return Tx()?new jK(e):new WK(e)}function um(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=qa(e),s=o.negativeStr,i=o.integerStr,c=o.decimalStr,f="".concat(t).concat(c),d="".concat(s).concat(i);if(n>=0){var p=Number(c[n]);if(p>=5&&!r){var m=Vo(e).add("".concat(s,"0.").concat("0".repeat(n)).concat(10-p));return um(m.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(c.padEnd(n,"0").slice(0,n))}return f===".0"?d:"".concat(d).concat(f)}function VK(e,t){const n=a.useRef(null);function r(){try{const{selectionStart:s,selectionEnd:i,value:c}=e,f=c.substring(0,s),d=c.substring(i);n.current={start:s,end:i,value:c,beforeTxt:f,afterTxt:d}}catch{}}function o(){if(e&&n.current&&t)try{const{value:s}=e,{beforeTxt:i,afterTxt:c,start:f}=n.current;let d=s.length;if(s.startsWith(i))d=i.length;else if(s.endsWith(c))d=s.length-n.current.afterTxt.length;else{const p=i[f-1],m=s.indexOf(p,f-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(s){kn(!1,`Something warning of cursor restore. Please fire issue about this: ${s.message}`)}}return[r,o]}const KK=200,UK=600;function $P({prefixCls:e,action:t,children:n,disabled:r,className:o,style:s,onStep:i}){const c=t==="up",f=a.useRef(void 0),d=a.useRef([]),p=()=>{clearTimeout(f.current)},m=v=>{v.preventDefault(),p(),i(c,"handler");function $(){i(c,"handler"),f.current=setTimeout($,KK)}f.current=setTimeout($,UK)};a.useEffect(()=>()=>{p(),d.current.forEach(v=>{Wt.cancel(v)})},[]);const h=`${e}-action`,y=U(h,`${h}-${t}`,{[`${h}-${t}-disabled`]:r},o),b=()=>d.current.push(Wt(p));return a.createElement("span",{unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b,onMouseDown:v=>{m(v)},"aria-label":c?"Increase Value":"Decrease Value","aria-disabled":r,className:y,style:s},tt(n)?n:a.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function wP(e){const t=typeof e=="number"?kh(e):qa(e).fullStr;return t.includes(".")?qa(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const qK=(()=>{const e=a.useRef(0),t=()=>{Wt.cancel(e.current)};return a.useEffect(()=>t,[]),n=>{t(),e.current=Wt(()=>{n()})}});function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nd.apply(this,arguments)}const EP=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),RP=e=>{const t=Vo(e);return t.isInvalidate()?null:t},IP=100,GK=40,XK=800,YK=200,QK=e=>{switch(e.deltaMode){case 1:return e.deltaY*GK;case 2:return e.deltaY*XK;default:return e.deltaY}},JK=a.forwardRef((e,t)=>{const{mode:n="input",prefixCls:r="rc-input-number",className:o,style:s,classNames:i,styles:c,min:f,max:d,step:p=1,defaultValue:m,value:h,disabled:y,readOnly:b,upHandler:v,downHandler:$,keyboard:x,changeOnWheel:E=!1,controls:C=!0,prefix:w,suffix:R,allowClear:P,stringMode:I,parser:T,formatter:L,precision:z,decimalSeparator:M,onChange:O,onClear:_,onInput:F,onPressEnter:W,onStep:q,onMouseDown:G,onClick:j,onMouseUp:H,onMouseLeave:k,onMouseMove:B,onMouseEnter:D,onMouseOut:K,changeOnBlur:Q=!0,...Z}=e,[X,J]=a.useState(!1),ne=a.useRef(!1),oe=a.useRef(!1),ae=a.useRef(!1),pe=a.useRef(0),fe=a.useRef(0),le=a.useRef(null),ie=a.useRef(null);a.useImperativeHandle(t,()=>KD(ie.current,{focus:Te=>{oS(ie.current,Te)},blur:()=>{ie.current?.blur()},nativeElement:le.current}));const[re,de]=a.useState(()=>Vo(h??m));function ge(Te){h===void 0&&de(Te)}const se=a.useCallback((Te,lt)=>{if(!lt)return z>=0?z:Math.max(Pa(Te),Pa(p))},[z,p]),ce=a.useCallback(Te=>{const lt=String(Te);if(T)return T(lt);let at=lt;return M&&(at=at.replace(M,".")),at.replace(/[^\w.-]+/g,"")},[T,M]),xe=a.useRef(""),Ee=a.useRef(0),Se=a.useCallback((Te,lt)=>{if(L)return L(Te,{userTyping:lt,input:String(xe.current)});let at=typeof Te=="number"?kh(Te):Te;if(!lt){const Vt=se(at,lt);d$(at)&&(M||Vt>=0)&&(at=um(at,M||".",Vt))}return at},[L,se,M]),[Fe,qe]=a.useState(()=>{const Te=m??h;return re.isInvalidate()&&["string","number"].includes(typeof Te)?Number.isNaN(Te)?"":Te:Se(re.toString(),!1)});xe.current=Fe;function Ne(Te,lt){qe(Se(Te.isInvalidate()?Te.toString(!1):Te.toString(!lt),lt))}const _e=a.useMemo(()=>RP(d),[d,z]),Ie=a.useMemo(()=>RP(f),[f,z]),me=a.useMemo(()=>!_e||!re||re.isInvalidate()?!1:_e.lessEquals(re),[_e,re]),Le=a.useMemo(()=>!Ie||!re||re.isInvalidate()?!1:re.lessEquals(Ie),[Ie,re]),[He,Ae]=VK(ie.current,X),Oe=Te=>_e&&!Te.lessEquals(_e)?_e:Ie&&!Ie.lessEquals(Te)?Ie:null,st=Te=>!Oe(Te),je=(Te,lt)=>{let at=Te,Vt=st(at)||at.isEmpty();if(!at.isEmpty()&&!lt&&(at=Oe(at)||at,Vt=!0),!b&&!y&&Vt){const Kt=at.toString(),yn=se(Kt,lt);return yn>=0&&(at=Vo(um(Kt,".",yn)),st(at)||(at=Vo(um(Kt,".",yn,!0)))),at.equals(re)||(ge(at),O?.(at.isEmpty()?null:EP(I,at)),h===void 0&&Ne(at,lt)),at}return re},Je=qK(),ze=Te=>{const lt=Ee.current+=1;if(He(),xe.current=Te,qe(Te),!oe.current){const at=ce(Te),Vt=Vo(at);Vt.isNaN()||je(Vt,!0)}F?.(Te),Je(()=>{if(lt!==Ee.current)return;let at=Te;T||(at=Te.replace(/。/g,".")),at!==Te&&ze(at)})},Ve=()=>{oe.current=!0},Ke=()=>{oe.current=!1,ze(ie.current.value)},ot=Te=>{ze(Te.target.value)},Ge=Ct((Te,lt)=>{if(Te&&me||!Te&&Le)return;ne.current=!1;let at=Vo(ae.current?wP(p):p);Te||(at=at.negate());const Vt=(re||Vo(0)).add(at.toString()),Kt=je(Vt,!1);q?.(EP(I,Kt),{offset:ae.current?wP(p):p,type:Te?"up":"down",emitter:lt}),ie.current?.focus()}),dt=Te=>{const lt=Vo(ce(Fe));let at;lt.isNaN()?at=je(re,Te):at=je(lt,Te),h!==void 0?Ne(re,!1):at.isNaN()||Ne(at,!1)},xt=()=>{ne.current=!0},St=Te=>{const{key:lt,shiftKey:at}=Te;ne.current=!0,ae.current=at,lt==="Enter"&&(oe.current||(ne.current=!1),dt(!1),W?.(Te)),x!==!1&&!oe.current&&["Up","ArrowUp","Down","ArrowDown"].includes(lt)&&(Ge(lt==="Up"||lt==="ArrowUp","keyboard"),Te.preventDefault())},Lt=()=>{ne.current=!1,ae.current=!1},gt=Ct(Te=>{const lt=QK(Te);if(!lt)return;const at=Te.timeStamp||Date.now();at-fe.current>YK&&(pe.current=0),fe.current=at,pe.current&&Math.sign(pe.current)!==Math.sign(lt)&&(pe.current=0),pe.current+=lt,Math.abs(pe.current)>=IP&&(Ge(pe.current<0,"wheel"),pe.current-=Math.sign(pe.current)*IP)});a.useEffect(()=>{if(E&&X){const Te=at=>{gt(at),at.preventDefault()},lt=ie.current;if(lt)return lt.addEventListener("wheel",Te,{passive:!1}),()=>{lt.removeEventListener("wheel",Te),pe.current=0,fe.current=0}}},[E,X,gt]);const mt=Te=>{Te.relatedTarget instanceof Node&&le.current?.contains(Te.relatedTarget)||(Q&&dt(!1),J(!1),ne.current=!1,pe.current=0,fe.current=0)},De=Te=>{ie.current&&Te.target!==ie.current&&(ie.current.focus(),Te.preventDefault()),G?.(Te)};Qp(()=>{re.isInvalidate()||Ne(re,!1)},[z,L]),Qp(()=>{const Te=Vo(h);de(Te);const lt=Vo(ce(Fe));(!Te.equals(lt)||!ne.current||L)&&Ne(Te,ne.current)},[h]),Qp(()=>{L&&Ae()},[Fe]);const Ze={prefixCls:r,onStep:Ge,className:i?.action,style:c?.action},Be=a.createElement($P,nd({},Ze,{action:"up",disabled:me}),v),we=a.createElement($P,nd({},Ze,{action:"down",disabled:Le}),$),ke=ch(P),Re=!y&&!b&&ke.disabled!==!0&&String(Fe).length>0,Xe=tt(R),Ue=`${r}-clear-icon`,nt=Te=>{const lt=["Up","ArrowUp","Down","ArrowDown"].includes(Te.key);(Te.key==="Enter"||x!==!1&<)&&Te.stopPropagation()},zt=()=>{ne.current=!1,xe.current="",Ee.current+=1;const Te=Vo(null);h!==void 0?Ne(re,!1):re.isEmpty()&&Ne(Te,!1),ie.current?.focus(),je(Te,!1),_?.()},ht=!ke.disabled&&a.createElement("button",{type:"button","aria-label":ke.label??"Clear",tabIndex:ke.tabIndex,disabled:!Re,className:U(Ue,{[`${Ue}-hidden`]:!Re,[`${Ue}-has-suffix`]:Xe},i?.clear),style:c?.clear,onMouseDown:Te=>Te.preventDefault(),onKeyDown:nt,onClick:zt},ke.clearIcon??"✖");return a.createElement("div",{ref:le,className:U(r,`${r}-mode-${n}`,o,i?.root,{[`${r}-focused`]:X,[`${r}-disabled`]:y,[`${r}-readonly`]:b,[`${r}-not-a-number`]:re.isNaN(),[`${r}-out-of-range`]:!re.isInvalidate()&&!st(re)}),style:{...c?.root,...s},onMouseDown:De,onMouseUp:H,onMouseLeave:k,onMouseMove:B,onMouseEnter:D,onMouseOut:K,onClick:j,onFocus:()=>{J(!0)},onBlur:mt,onKeyDown:St,onKeyUp:Lt,onCompositionStart:Ve,onCompositionEnd:Ke,onBeforeInput:xt},n==="spinner"&&C&&we,tt(w)&&a.createElement("div",{className:U(`${r}-prefix`,i?.prefix),style:c?.prefix},w),a.createElement("input",nd({autoComplete:"off",role:"spinbutton","aria-valuemin":f,"aria-valuemax":d,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:p,ref:ie,className:U(`${r}-input`,i?.input),style:c?.input,value:Fe,onChange:ot,disabled:y,readOnly:b},Z)),(!ke.disabled||Xe)&&a.createElement("div",{className:U(`${r}-suffix`,i?.suffix),style:c?.suffix},ht,R),n==="spinner"&&C&&Be,n==="input"&&C&&a.createElement("div",{className:U(`${r}-actions`,i?.actions),style:c?.actions},Be,we))}),ZK=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:s,fontSizeLG:i,fontSizeSM:c,borderRadiusLG:f,borderRadiusSM:d,colorBgContainerDisabled:p,lineWidth:m,lineType:h,antCls:y}=e,[b,v]=Bt(y,"space-addon");return{[t]:[{...an(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:m,borderStyle:h,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:f},"&-small":{paddingInline:s,borderRadius:d,fontSize:c},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[b("addon-border-color")]:o,[b("addon-background")]:p,[b("addon-border-color-outlined")]:o,[b("addon-background-filled")]:p,borderColor:v("addon-border-color"),background:v("addon-background"),"&-variant-outlined":{[b("addon-border-color")]:v("addon-border-color-outlined")},"&-variant-filled":{[b("addon-border-color")]:"transparent",[b("addon-background")]:v("addon-background-filled"),[`&${t}-disabled`]:{[b("addon-border-color")]:o,[b("addon-background")]:p}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[b("addon-border-color-outlined")]:e.colorError,[b("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[b("addon-border-color-outlined")]:e.colorWarning,[b("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},eU=Zt("Addon",e=>[ZK(e),Wd(e,{focus:!1})]),C6=ee.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:s,variant:i="outlined",disabled:c,status:f,...d}=e,{getPrefixCls:p,direction:m}=ee.useContext(Ot),h=p("space-addon",s),[y,b]=eU(h),{compactItemClassnames:v,compactSize:$}=aa(h,m),x=Tc(h,f),E=U(h,y,v,b,`${h}-variant-${i}`,x,{[`${h}-${$}`]:$,[`${h}-disabled`]:c},n);return ee.createElement("div",{ref:t,className:E,style:o,...d},r)}),tU=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return{...ml(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Cn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===!0?1:0,handleVisibleWidth:t===!0?n:0}},nU=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:s,inputFontSizeLG:i,colorError:c,paddingInlineSM:f,paddingBlockSM:d,paddingBlockLG:p,paddingInlineLG:m,colorIcon:h,colorTextDisabled:y,motionDurationMid:b,handleHoverColor:v,handleOpacity:$,paddingInline:x,paddingBlock:E,handleBg:C,handleActiveBg:w,inputAffixPadding:R,borderRadiusSM:P,controlWidth:I,handleBorderColor:T,filledHandleBg:L,lineHeightLG:z,antCls:M}=e,O=`${te(n)} ${r} ${T}`,[_,F]=Bt(M,"input-number");return[{[t]:{...an(e),...Lh(e),[_("input-padding-block")]:te(E),[_("input-padding-inline")]:te(x),display:"inline-flex",width:I,margin:0,paddingBlock:0,borderRadius:o,...K4(e,{[`${t}-actions`]:{background:C,[`${t}-action-down`]:{borderBlockStart:O}}}),...Y4(e,{[`${t}-actions`]:{background:L,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:C}}}),...J4(e,{[`${t}-actions`]:{background:C,[`${t}-action-down`]:{borderBlockStart:O}}}),...G4(e),[`&${t}-borderless`]:{paddingBlock:0,[_("input-padding-block")]:te(e.calc(E).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[_("input-padding-block")]:te(e.calc(d).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[_("input-padding-block")]:te(e.calc(p).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:c}},[`${t}-input`]:{...an(e),width:"100%",paddingBlock:F("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...Z4(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...Ad(),userSelect:"none",overflow:"hidden",fontWeight:700,lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${b} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:w},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:v},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:y}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:$,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:h,height:"50%",borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:F("input-padding-inline"),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:"center",paddingInline:F("input-padding-inline")},[`${t}-suffix`]:{marginInlineEnd:F("input-padding-inline")}}}},{[t]:{"&-lg":{[_("input-padding-block")]:te(p),[_("input-padding-inline")]:te(m),paddingBlock:0,fontSize:i,lineHeight:z},"&-sm":{[_("input-padding-block")]:te(d),[_("input-padding-inline")]:te(f),paddingBlock:0,fontSize:s,borderRadius:P}}},{[t]:{...e6(e),[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:R},[`${t}-suffix`]:{height:"100%",marginInlineStart:R,transition:`margin ${b}`,[`${t}-clear-icon`]:{flex:"none",pointerEvents:"auto"}},[`&-mode-input:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleVisibleWidth},[`&:hover, &${t}-focused`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}}]},rU=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},oU=Zt("InputNumber",e=>{const t=Jt(e,pl(e));return[nU(t),rU(t),Wd(t)]},tU,{unitless:{handleOpacity:!0},resetFont:!1}),sU=a.forwardRef((e,t)=>{const n=a.useRef(null);a.useImperativeHandle(t,()=>n.current);const{rootClassName:r,size:o,disabled:s,prefixCls:i,addonBefore:c,addonAfter:f,prefix:d,suffix:p,allowClear:m,bordered:h,readOnly:y,status:b,controls:v=!0,variant:$,className:x,style:E,classNames:C,styles:w,mode:R,...P}=e,{direction:I,className:T,style:L,styles:z,classNames:M,allowClear:O}=Xt("inputNumber"),[_]=br("global"),F=xh({allowClear:m,contextAllowClear:O,componentName:"InputNumber",defaultLabel:_.clear}),W=a.useContext(Er),q=s??W,G=a.useMemo(()=>!v||q||y?!1:v,[v,q,y]),{compactSize:j,compactItemClassnames:H}=aa(i,I);let k=R==="spinner"?a.createElement(i$,null):a.createElement(kK,null),B=R==="spinner"?a.createElement(BK,null):a.createElement(Xd,null);const D=typeof G=="boolean"?G:void 0;Rt(G)&&(k=G.upIcon||k,B=G.downIcon||B);const{hasFeedback:K,isFormItemInput:Q,feedbackIcon:Z}=a.useContext(Rr),X=or(re=>o??j??re),[J,ne]=no("inputNumber",$,h),oe=(K||p)&&a.createElement(a.Fragment,null,p,K&&Z),ae={...e,size:X,disabled:q,controls:G,allowClear:F},pe=ut(L),fe=ut(E),[le,ie]=qt([M,C],[z,pe,w,fe],{props:ae});return a.createElement(JK,{ref:n,mode:R,disabled:q,className:U(x,r,le.root,T,H,Tc(i,b,K),{[`${i}-${J}`]:ne,[`${i}-lg`]:X==="large",[`${i}-sm`]:X==="small",[`${i}-rtl`]:I==="rtl",[`${i}-in-form-item`]:Q,[`${i}-without-controls`]:!G}),style:ie.root,upHandler:k,downHandler:B,prefixCls:i,readOnly:y,controls:D,prefix:d,suffix:oe,allowClear:F,classNames:le,styles:ie,...P})}),S6=a.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:r,prefixCls:o,className:s,status:i,rootClassName:c,...f}=e,{getPrefixCls:d}=Xt("inputNumber"),p=d("input-number",o),{status:m}=a.useContext(Rr),h=Gd(m,i),y=er(p),[b,v]=oU(p,y),$=n||r,x=a.createElement(sU,{ref:t,...f,prefixCls:p,status:h,className:U(v,y,b,s),rootClassName:$?void 0:c});if($){const E=R=>R?a.createElement(C6,{className:U(`${p}-addon`,v,b),variant:e.variant,disabled:e.disabled,status:h},a.createElement(ta,{form:!0},R)):null,C=E(n),w=E(r);return a.createElement(zS,{rootClassName:c},C,x,w)}return x}),Wu=S6,iU=e=>a.createElement(ys,{theme:{components:{InputNumber:{handleVisible:!0}}}},a.createElement(S6,{...e}));Wu._InternalPanelDoNotUseOrYouWillBeFired=iU;function aU(e){return tt(e.addonBefore)||tt(e.addonAfter)}function lU(e){return tt(e.prefix)||tt(e.suffix)||(typeof e.allowClear=="object"?!!e.allowClear&&!e.allowClear.disabled:!!e.allowClear)}function PP(e,t,n){const r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...s)=>{t.setSelectionRange(...s)},o}function Vm(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=PP(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=PP(t,e,r),n(o);return}n(o)}function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mx.apply(this,arguments)}const $6=ee.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:o,prefix:s,suffix:i,addonBefore:c,addonAfter:f,className:d,style:p,disabled:m,readOnly:h,focused:y,triggerFocus:b,allowClear:v,value:$,handleReset:x,hidden:E,classes:C,classNames:w,dataAttrs:R,styles:P,components:I,onClear:T}=e,L=ch(v),z=!L.disabled,M=r??n,O=I?.affixWrapper||"span",_=I?.groupWrapper||"span",F=I?.wrapper||"span",W=I?.groupAddon||"span",q=a.useRef(null),G=B=>{q.current?.contains(B.target)&&b?.()},j=lU(e);let H=a.cloneElement(M,{value:$,className:U(M.props?.className,!j&&w?.variant)||null});const k=a.useRef(null);if(ee.useImperativeHandle(t,()=>({nativeElement:k.current||q.current})),j){let B=null;if(z){const Z=!m&&!h&&$,X=`${o}-clear-icon`,J=tt(L.clearIcon)?L.clearIcon:"✖";B=ee.createElement("button",{type:"button",tabIndex:L.tabIndex,"aria-label":L.label??"Clear",onClick:ne=>{x?.(ne),T?.()},onMouseDown:ne=>ne.preventDefault(),className:U(X,{[`${X}-hidden`]:!Z,[`${X}-has-suffix`]:tt(i)},w?.clear),style:P?.clear},J)}const D=`${o}-affix-wrapper`,K=U(D,{[`${o}-disabled`]:m,[`${D}-disabled`]:m,[`${D}-focused`]:y,[`${D}-readonly`]:h,[`${D}-input-with-clear-btn`]:tt(i)&&z&&$},C?.affixWrapper,w?.affixWrapper,w?.variant),Q=(tt(i)||z)&&ee.createElement("span",{className:U(`${o}-suffix`,w?.suffix),style:P?.suffix},B,i);H=ee.createElement(O,Mx({className:K,style:P?.affixWrapper,onClick:G},R?.affixWrapper,{ref:q}),tt(s)&&ee.createElement("span",{className:U(`${o}-prefix`,w?.prefix),style:P?.prefix},s),H,Q)}if(aU(e)){const B=`${o}-group`,D=`${B}-addon`,K=`${B}-wrapper`,Q=U(`${o}-wrapper`,B,C?.wrapper,w?.wrapper),Z=U(K,{[`${K}-disabled`]:m},C?.group,w?.groupWrapper);H=ee.createElement(_,{className:Z,ref:k},ee.createElement(F,{className:Q},tt(c)&&ee.createElement(W,{className:D},c),H,tt(f)&&ee.createElement(W,{className:D},f)))}return ee.cloneElement(H,{className:U(H.props?.className,d)||null,style:{...H.props?.style,...p},hidden:E})});function w6(e,t){return a.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return{...o,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:o.strategy||(s=>s.length)}},[e,t])}function E6({countConfig:e,value:t,maxLength:n}){return a.useMemo(()=>{const r=e.max??n,o=e.strategy(t),s=!!r&&o>r,i=Number(r)>0,c=e.show?e.showFormatter?e.showFormatter({value:t,count:o,maxLength:r}):`${o}${i?` / ${r}`:""}`:void 0;return{mergedMax:r,isOutOfRange:s,dataCount:c}},[e,n,t])}function R6({countConfig:e,getTarget:t}){const[n,r]=a.useState(null),o=a.useRef(t);return a.useEffect(()=>{o.current=t},[t]),a.useEffect(()=>{n&&(o.current()?.setSelectionRange(...n),r(null))},[n]),a.useCallback((i,c)=>{let f=i;return!c&&e.exceedFormatter&&e.max&&e.strategy(i)>e.max&&(f=e.exceedFormatter(i,{max:e.max}),i!==f&&r([o.current()?.selectionStart||0,o.current()?.selectionEnd||0])),f},[e])}function I6(e,t){const[n,r]=Rn(e,t),o=n==null?"":String(n);return{value:n,setValue:r,formatValue:o}}function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Km.apply(this,arguments)}const cU=a.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:o,onBlur:s,onPressEnter:i,onKeyDown:c,onKeyUp:f,prefixCls:d="rc-input",disabled:p,htmlSize:m,className:h,maxLength:y,suffix:b,showCount:v,count:$,type:x="text",classes:E,classNames:C,styles:w,onCompositionStart:R,onCompositionEnd:P,...I}=e,[T,L]=a.useState(!1),z=a.useRef(!1),M=a.useRef(!1),O=a.useRef(null),_=a.useRef(null),F=fe=>{O.current&&oS(O.current,fe)},{setValue:W,formatValue:q}=I6(e.defaultValue,e.value),G=w6($,v),{isOutOfRange:j,dataCount:H}=E6({countConfig:G,value:q,maxLength:y}),k=R6({countConfig:G,getTarget:()=>O.current});a.useImperativeHandle(t,()=>({focus:F,blur:()=>{O.current?.blur()},setSelectionRange:(fe,le,ie)=>{O.current?.setSelectionRange(fe,le,ie)},select:()=>{O.current?.select()},input:O.current,nativeElement:_.current?.nativeElement||O.current})),a.useEffect(()=>{M.current&&(M.current=!1),L(fe=>fe&&p?!1:fe)},[p]);const B=(fe,le,ie)=>{const re=k(le,z.current);ie.source==="compositionEnd"&&le===re||(W(re),O.current&&Vm(O.current,fe,r,re))},D=fe=>{B(fe,fe.target.value,{source:"change"})},K=fe=>{z.current=!1,B(fe,fe.currentTarget.value,{source:"compositionEnd"}),P?.(fe)},Q=fe=>{i&&fe.key==="Enter"&&!M.current&&!fe.nativeEvent.isComposing&&(M.current=!0,i(fe)),c?.(fe)},Z=fe=>{fe.key==="Enter"&&(M.current=!1),f?.(fe)},X=fe=>{L(!0),o?.(fe)},J=fe=>{M.current&&(M.current=!1),L(!1),s?.(fe)},ne=fe=>{W(""),F(),O.current&&Vm(O.current,fe,r)},oe=j&&`${d}-out-of-range`,ae=()=>{const fe=dn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ee.createElement("input",Km({autoComplete:n},fe,{onChange:D,onFocus:X,onBlur:J,onKeyDown:Q,onKeyUp:Z,className:U(d,{[`${d}-disabled`]:p},C?.input),style:w?.input,ref:O,size:m,type:x,onCompositionStart:le=>{z.current=!0,R?.(le)},onCompositionEnd:K}))},pe=()=>b||G.show?ee.createElement(ee.Fragment,null,G.show&&ee.createElement("span",{className:U(`${d}-show-count-suffix`,{[`${d}-show-count-has-suffix`]:!!b},C?.count),style:{...w?.count}},H),b):null;return ee.createElement($6,Km({},I,{prefixCls:d,className:U(h,oe),handleReset:ne,value:q,focused:T,triggerFocus:F,suffix:pe(),disabled:p,classes:E,classNames:C,styles:w,ref:_}),ae())}),uU=`
|
|
289
|
+
min-height:0 !important;
|
|
290
|
+
max-height:none !important;
|
|
291
|
+
height:0 !important;
|
|
292
|
+
visibility:hidden !important;
|
|
293
|
+
overflow:hidden !important;
|
|
294
|
+
position:absolute !important;
|
|
295
|
+
z-index:-1000 !important;
|
|
296
|
+
top:0 !important;
|
|
297
|
+
right:0 !important;
|
|
298
|
+
pointer-events: none !important;
|
|
299
|
+
`,dU=["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"],zb={};let Io;function fU(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&zb[n])return zb[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),f={sizingStyle:dU.map(d=>`${d}:${r.getPropertyValue(d)}`).join(";"),paddingSize:s,borderSize:i,boxSizing:o};return t&&n&&(zb[n]=f),f}function pU(e,t=!1,n=null,r=null){Io||(Io=document.createElement("textarea"),Io.setAttribute("tab-index","-1"),Io.setAttribute("aria-hidden","true"),Io.setAttribute("name","hiddenTextarea"),document.body.appendChild(Io)),e.getAttribute("wrap")?Io.setAttribute("wrap",e.getAttribute("wrap")):Io.removeAttribute("wrap");const{paddingSize:o,borderSize:s,boxSizing:i,sizingStyle:c}=fU(e,t);Io.setAttribute("style",`${c};${uU}`),Io.value=e.value||e.placeholder||"";let f,d,p,m=Io.scrollHeight;if(i==="border-box"?m+=s:i==="content-box"&&(m-=o),n!==null||r!==null){Io.value=" ";const y=Io.scrollHeight-o;n!==null&&(f=y*n,i==="border-box"&&(f=f+o+s),m=Math.max(f,m)),r!==null&&(d=y*r,i==="border-box"&&(d=d+o+s),p=m>d?void 0:"hidden",m=Math.min(d,m))}const h={height:m,overflowY:p,resize:"none"};return f&&(h.minHeight=f),d&&(h.maxHeight=d),h}function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ox.apply(this,arguments)}const Ab=0,Lb=1,Db=2,mU=a.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:o,autoSize:s,onResize:i,className:c,style:f,disabled:d,onChange:p,onInternalAutoSize:m,...h}=e,[y,b]=Rn(r,o),v=y??"",$=W=>{b(W.target.value),p?.(W)},x=a.useRef(null);a.useImperativeHandle(t,()=>({textArea:x.current}));const[E,C]=a.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),w=!!s,[R,P]=a.useState(Db),[I,T]=a.useState(),L=()=>{P(Ab)};Qt(()=>{w&&L()},[o,E,C,w]),Qt(()=>{if(R===Ab)P(Lb);else if(R===Lb){const W=pU(x.current,!1,E,C);P(Db),T(W)}},[R]);const z=a.useRef(void 0),M=()=>{z.current!==void 0&&Wt.cancel(z.current)},O=W=>{R===Db&&(i?.(W),s&&(M(),z.current=Wt(()=>{L()})))};a.useEffect(()=>M,[]);const F={...f,...w?I:null};return(R===Ab||R===Lb)&&(F.overflowY="hidden",F.overflowX="hidden"),a.createElement(bo,{onResize:O,disabled:!(s||i)},a.createElement("textarea",Ox({},h,{ref:x,style:F,className:U(n,c,{[`${n}-disabled`]:d}),disabled:d,value:v,onChange:$})))});function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zx.apply(this,arguments)}const hU=ee.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:o,allowClear:s,maxLength:i,onCompositionStart:c,onCompositionEnd:f,suffix:d,prefixCls:p="rc-textarea",showCount:m,count:h,className:y,style:b,disabled:v,hidden:$,classNames:x,styles:E,onResize:C,onClear:w,onPressEnter:R,readOnly:P,autoSize:I,onKeyDown:T,...L},z)=>{const[M,O]=ee.useState(!1),_=ee.useRef(!1),[F,W]=ee.useState(null),q=a.useRef(null),G=a.useRef(null),j=()=>G.current?.textArea||null,{setValue:H,formatValue:k}=I6(e,t),B=w6(h,m),{isOutOfRange:D,dataCount:K}=E6({countConfig:B,value:k,maxLength:i}),Q=R6({countConfig:B,getTarget:()=>G.current?.textArea||null}),Z=()=>{j()?.focus()};a.useImperativeHandle(z,()=>({resizableTextArea:G.current,focus:Z,blur:()=>{j()?.blur()},nativeElement:q.current?.nativeElement||j()})),a.useEffect(()=>{O(se=>!v&&se)},[v]);const X=(se,ce)=>{const xe=Q(ce,_.current);H(xe),Vm(se.currentTarget,se,o,xe)},J=se=>{_.current=!0,c?.(se)},ne=se=>{_.current=!1,X(se,se.currentTarget.value),f?.(se)},oe=se=>{X(se,se.target.value)},ae=se=>{se.key==="Enter"&&R&&!se.nativeEvent.isComposing&&R(se),T?.(se)},pe=se=>{O(!0),n?.(se)},fe=se=>{O(!1),r?.(se)},le=se=>{H(""),Z();const ce=j();ce&&Vm(ce,se,o)};let ie=d;B.show&&(ie=ee.createElement(ee.Fragment,null,ie,ee.createElement("span",{className:U(`${p}-data-count`,x?.count),style:E?.count},K)));const re=se=>{C?.(se),j()?.style.height&&W(!0)},de=ch(s),ge=!I&&!m&&de.disabled;return ee.createElement($6,{ref:q,value:k,allowClear:s,handleReset:le,suffix:ie,prefixCls:p,classNames:{...x,affixWrapper:U(x?.affixWrapper,{[`${p}-show-count`]:m,[`${p}-textarea-allow-clear`]:!de.disabled})},disabled:v,focused:M,className:U(y,D&&`${p}-out-of-range`),style:{...b,...F&&!ge?{height:"auto"}:{}},dataAttrs:typeof K=="string"?{affixWrapper:{"data-count":K}}:void 0,styles:E,hidden:$,readOnly:P,onClear:w},ee.createElement(mU,zx({},L,{autoSize:I,maxLength:i,onKeyDown:ae,onChange:oe,onFocus:pe,onBlur:fe,onCompositionStart:J,onCompositionEnd:ne,className:U(x?.textarea),style:{resize:b?.resize,...E?.textarea},disabled:v,prefixCls:p,onResize:re,ref:G,readOnly:P})))});function P6(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[t]),r}function gU(e){const{allowClear:t}=e,n=Rt(t)?!t.disabled:t;return!!(e.prefix||e.suffix||n||e.showCount)}const nf=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:s,disabled:i,onBlur:c,onFocus:f,suffix:d,allowClear:p,addonAfter:m,addonBefore:h,className:y,style:b,styles:v,rootClassName:$,onChange:x,classNames:E,variant:C,...w}=e,{getPrefixCls:R,direction:P,allowClear:I,autoComplete:T,className:L,style:z,classNames:M,styles:O}=Xt("input"),_=R("input",n),F=a.useRef(null),W=er(_),[q,G]=t6(_,$);n6(_,W);const{compactSize:j,compactItemClassnames:H}=aa(_,P),k=or(Se=>s??j??Se),B=ee.useContext(Er),D=i??B,K={...e,size:k,disabled:D},Q=ut(z),Z=ut(b),[X,J]=qt([M,E],[O,Q,v,Z],{props:K}),{status:ne,hasFeedback:oe,feedbackIcon:ae}=a.useContext(Rr),pe=Gd(ne,o),[fe]=br("global"),le=xh({allowClear:p,contextAllowClear:I,defaultLabel:fe.clear,componentName:"Input"}),ie=gU({...e,allowClear:le})||!!oe;a.useRef(ie);const re=P6(F,!0),de=Se=>{re(),c?.(Se)},ge=Se=>{re(),f?.(Se)},se=Se=>{re(),x?.(Se)},ce=(oe||d)&&ee.createElement(ee.Fragment,null,d,oe&&ae),[xe,Ee]=no("input",C,r);return ee.createElement(cU,{ref:ur(t,F),prefixCls:_,autoComplete:T,...w,disabled:D,onBlur:de,onFocus:ge,style:J.root,styles:J,suffix:ce,allowClear:le,className:U(y,$,G,W,H,L,X.root),onChange:se,addonBefore:h&&ee.createElement(ta,{form:!0,space:!0},h),addonAfter:m&&ee.createElement(ta,{form:!0,space:!0},m),classNames:{...X,input:U({[`${_}-sm`]:k==="small",[`${_}-lg`]:k==="large",[`${_}-rtl`]:P==="rtl"},X.input,q),variant:U({[`${_}-${xe}`]:Ee},Tc(_,pe)),affixWrapper:U({[`${_}-affix-wrapper-sm`]:k==="small",[`${_}-affix-wrapper-lg`]:k==="large",[`${_}-affix-wrapper-rtl`]:P==="rtl"},q),wrapper:U({[`${_}-group-rtl`]:P==="rtl"},q),groupWrapper:U({[`${_}-group-wrapper-sm`]:k==="small",[`${_}-group-wrapper-lg`]:k==="large",[`${_}-group-wrapper-rtl`]:P==="rtl",[`${_}-group-wrapper-${xe}`]:Ee},Tc(`${_}-group-wrapper`,pe,oe),q)}})}),yU={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},f$=ee.createContext(null),bU=e=>cr(e).map(t=>({...t?.props,key:t.key}));function vU(e,t,n){const r=a.useMemo(()=>t||bU(n),[t,n]);return a.useMemo(()=>r.map(({span:s,...i})=>s==="filled"?{...i,filled:!0}:{...i,span:Un(s)?s:sx(e,s)}),[r,e])}function xU(e,t){let n=[],r=[],o=!1,s=0;return e.filter(i=>i).forEach(i=>{const{filled:c,...f}=i;if(c){r.push(f),n.push(r),r=[],s=0;return}const d=t-s;s+=i.span||1,s>=t?(s>t?(o=!0,r.push({...f,span:d})):r.push(f),n.push(r),r=[],s=0):r.push(f)}),r.length>0&&n.push(r),n=n.map(i=>{const c=i.reduce((f,d)=>f+(d.span||1),0);if(c<t){const f=i[i.length-1];return f.span=t-(c-(f.span||1)),i}return i}),[n,o]}const CU=(e,t)=>{const[n,r]=a.useMemo(()=>xU(t,e),[t,e]);return n},SU=e=>e.children,Bb=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:s,labelStyle:i,contentStyle:c,bordered:f,label:d,content:p,colon:m,type:h,styles:y,classNames:b}=e,v=n,{classNames:$,styles:x}=ee.useContext(f$),[E,C]=qt([$,b],[x,y],{props:e}),w={...i,...C.label},R={...c,...C.content};if(f){let P;h==="label"&&(P=w),h==="content"&&(P=R);const I=P?{...s,...P}:s;return ee.createElement(v,{colSpan:r,style:I,className:U(o,{[`${t}-item-${h}`]:h==="label"||h==="content",[E.label]:E.label&&h==="label",[E.content]:E.content&&h==="content"})},tt(d)&&ee.createElement("span",null,d),tt(p)&&ee.createElement("span",null,p))}return ee.createElement(v,{className:U(`${t}-item`,o),style:s,colSpan:r},ee.createElement("div",{className:`${t}-item-container`},tt(d)&&ee.createElement("span",{style:w,className:U(`${t}-item-label`,E.label,{[`${t}-item-no-colon`]:!m})},d),tt(p)&&ee.createElement("span",{style:R,className:U(`${t}-item-content`,E.content)},p)))};function _b(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:s,showLabel:i,showContent:c,labelStyle:f,contentStyle:d,styles:p}){return e.map(({label:m,children:h,prefixCls:y=n,className:b,style:v,labelStyle:$,contentStyle:x,span:E=1,key:C,styles:w,classNames:R},P)=>{const I=C??P;if(typeof o=="string")return a.createElement(Bb,{key:`${s}-${I}`,className:b,style:v,classNames:R,styles:{label:{...f,...p?.label,...$,...w?.label},content:{...d,...p?.content,...x,...w?.content}},span:E,colon:t,component:o,itemPrefixCls:y,bordered:r,label:i?m:null,content:c?h:null,type:s});const T={label:{...f,...p?.label,...$,...w?.label},content:{...d,...p?.content,...x,...w?.content}};return[a.createElement(Bb,{key:`label-${I}`,className:b,style:v,classNames:R,styles:T,span:1,colon:t,component:o[0],itemPrefixCls:y,bordered:r,label:m,type:"label"}),a.createElement(Bb,{key:`content-${I}`,className:b,style:v,classNames:R,styles:T,span:E*2-1,component:o[1],itemPrefixCls:y,bordered:r,content:h,type:"content"})]})}const $U=e=>{const t=a.useContext(f$),{prefixCls:n,vertical:r,row:o,index:s,bordered:i}=e;return r?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${s}`,className:`${n}-row`},_b(o,e,{component:"th",type:"label",showLabel:!0,...t})),a.createElement("tr",{key:`content-${s}`,className:`${n}-row`},_b(o,e,{component:"td",type:"content",showContent:!0,...t}))):a.createElement("tr",{key:s,className:`${n}-row`},_b(o,e,{component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,...t}))},wU=e=>{const{componentCls:t,labelBg:n}=e,r=`> ${t}-view > table > tbody > ${t}-row`;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`> table > tbody > ${t}-row`]:{borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${te(e.padding)} ${te(e.paddingLG)}`,borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-medium`]:{[r]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${te(e.paddingSM)} ${te(e.paddingLG)}`}}},[`&${t}-small`]:{[r]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${te(e.paddingXS)} ${te(e.padding)}`}}}}}},EU=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:s,colonMarginLeft:i,titleMarginBottom:c}=e,f=`> ${t}-view > table > tbody > ${t}-row`;return{[t]:{...an(e),...wU(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:c},[`${t}-title`]:{...zr,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{minWidth:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[f]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:400,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${te(i)} ${te(s)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`> ${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`> ${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-medium":{[f]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[f]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},RU=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),IU=Zt("Descriptions",e=>{const t=Jt(e,{});return EU(t)},RU),Um=a.forwardRef((e,t)=>{const{prefixCls:n,title:r,extra:o,column:s,colon:i=!0,bordered:c,layout:f,children:d,className:p,rootClassName:m,style:h,size:y,labelStyle:b,contentStyle:v,styles:$,items:x,classNames:E,...C}=e,{getPrefixCls:w,direction:R,className:P,style:I,classNames:T,styles:L}=Xt("descriptions"),z=w("descriptions",n),M=Yd(),O=a.useMemo(()=>Un(s)?s:sx(M,s)??sx(M,yU)??3,[M,s]),_=vU(M,x,d),F=or(y),W=CU(O,_),[q,G]=IU(z),j={...e,column:O,items:_,size:F},H=ut(I),k=ut(h),[B,D]=qt([T,E],[L,H,$,k],{props:j}),K=a.useMemo(()=>({labelStyle:b,contentStyle:v,styles:{label:D.label,content:D.content},classNames:{label:B.label,content:B.content}}),[b,v,D.label,D.content,B.label,B.content]),Q=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:Q.current}));const Z=tt(r),X=tt(o);return a.createElement(f$.Provider,{value:K},a.createElement("div",{ref:Q,className:U(z,P,B.root,{[`${z}-medium`]:F==="medium"||F==="middle",[`${z}-small`]:F==="small",[`${z}-bordered`]:!!c,[`${z}-rtl`]:R==="rtl"},p,m,q,G),style:D.root,...C},(Z||X)&&a.createElement("div",{className:U(`${z}-header`,B.header),style:D.header},Z&&a.createElement("div",{className:U(`${z}-title`,B.title),style:D.title},r),X&&a.createElement("div",{className:U(`${z}-extra`,B.extra),style:D.extra},o)),a.createElement("div",{className:`${z}-view`},a.createElement("table",null,a.createElement("tbody",null,W.map((J,ne)=>a.createElement($U,{key:ne,index:ne,colon:i,prefixCls:z,vertical:f==="vertical",bordered:c,row:J})))))))});Um.Item=SU;const NP=a.createContext(null),N6=a.createContext({});function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ax.apply(this,arguments)}const PU=e=>{const{prefixCls:t,className:n,containerRef:r,...o}=e,{panel:s}=a.useContext(N6),i=Yo(s,r);return a.createElement("div",Ax({className:U(`${t}-section`,n),role:"dialog",ref:i},Hn(e,{aria:!0}),{"aria-modal":"true"},o))};function NU(e){const{prefixCls:t,direction:n,className:r,style:o,maxSize:s,containerRef:i,currentSize:c,onResize:f,onResizeEnd:d,onResizeStart:p}=e,[m,h]=a.useState(!1),[y,b]=a.useState(0),[v,$]=a.useState(0),x=n==="left"||n==="right",E=Ct(P=>{P.preventDefault(),P.stopPropagation(),h(!0),b(x?P.clientX:P.clientY);let I;if(typeof c=="number")I=c;else if(i?.current){const T=i.current.getBoundingClientRect();I=x?T.width:T.height}$(I),p?.(I)}),C=Ct(P=>{if(!m)return;let T=(x?P.clientX:P.clientY)-y;(n==="right"||n==="bottom")&&(T=-T);let L=v+T;L<0&&(L=0),s&&L>s&&(L=s),f?.(L)}),w=a.useCallback(()=>{if(m&&(h(!1),i?.current)){const P=i.current.getBoundingClientRect(),I=x?P.width:P.height;d?.(I)}},[m,i,d,x]);return a.useEffect(()=>{if(m)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",w),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",w)}},[m,C,w]),{dragElementProps:{className:U(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:m,[`${t}-dragger-horizontal`]:x,[`${t}-dragger-vertical`]:!x},r),style:o,onMouseDown:E},isDragging:m}}function Fb(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&kn(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function TU(e,t,n,r,o){const s=r??o!==!1,[i]=n2(t&&s,e);return ee.useEffect(()=>{t&&n===!0&&e()?.focus({preventScroll:!0})},[t]),i}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}const MU=(e,t)=>{const{prefixCls:n,open:r,placement:o,inline:s,push:i,forceRender:c,autoFocus:f,focusTrap:d,classNames:p,rootClassName:m,rootStyle:h,zIndex:y,className:b,id:v,style:$,motion:x,width:E,height:C,size:w,maxSize:R,children:P,mask:I,maskClosable:T,maskMotion:L,maskClassName:z,maskStyle:M,afterOpenChange:O,onClose:_,onMouseEnter:F,onMouseOver:W,onMouseLeave:q,onClick:G,onKeyDown:j,onKeyUp:H,styles:k,drawerRender:B,resizable:D,defaultSize:K}=e,Q=a.useRef(null);a.useImperativeHandle(t,()=>Q.current);const Z=TU(()=>Q.current,r,f,d,I),[X,J]=a.useState(!1),ne=a.useContext(NP);let oe;typeof i=="boolean"?oe=i?{}:{distance:0}:oe=i||{};const ae=oe?.distance??ne?.pushDistance??180,pe=a.useMemo(()=>({pushDistance:ae,push:()=>{J(!0)},pull:()=>{J(!1)}}),[ae]);a.useEffect(()=>{r?ne?.push?.():ne?.pull?.()},[r]),a.useEffect(()=>()=>{ne?.pull?.()},[]);const fe=a.createElement(Ar,oc({key:"mask"},L,{visible:I&&r}),({className:me,style:Le},He)=>a.createElement("div",{className:U(`${n}-mask`,me,p?.mask,z),style:{...Le,...M,...k?.mask},onClick:T&&r?_:void 0,ref:He})),le=typeof x=="function"?x(o):x,[ie,re]=a.useState(),de=o==="left"||o==="right",ge=a.useMemo(()=>Fb(w??(de?E:C)??ie??K??(de?378:void 0)),[w,E,C,K,de,ie]),se=a.useMemo(()=>{const me={};if(X&&ae)switch(o){case"top":me.transform=`translateY(${ae}px)`;break;case"bottom":me.transform=`translateY(${-ae}px)`;break;case"left":me.transform=`translateX(${ae}px)`;break;default:me.transform=`translateX(${-ae}px)`;break}return de?me.width=Fb(ge):me.height=Fb(ge),me},[X,ae,o,de,ge]),ce=a.useRef(null),xe=!!D,Ee=typeof D=="object"&&D||{},Se=Ct(me=>{re(me),Ee.onResize?.(me)}),{dragElementProps:Fe,isDragging:qe}=NU({prefixCls:`${n}-resizable`,direction:o,className:p?.dragger,style:k?.dragger,maxSize:R,containerRef:ce,currentSize:ge,onResize:Se,onResizeStart:Ee.onResizeStart,onResizeEnd:Ee.onResizeEnd}),Ne={onMouseEnter:F,onMouseOver:W,onMouseLeave:q,onClick:G,onKeyDown:j,onKeyUp:H,onFocus:me=>{Z(me.target)}},_e=a.createElement(Ar,oc({key:"panel"},le,{visible:r,forceRender:c,onVisibleChanged:O,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:me,style:Le},He)=>{const Ae=a.createElement(PU,oc({id:v,containerRef:He,prefixCls:n,className:U(b,p?.section),style:{...$,...k?.section}},Hn(e,{aria:!0}),Ne),P);return a.createElement("div",oc({ref:ce,className:U(`${n}-content-wrapper`,qe&&`${n}-content-wrapper-dragging`,p?.wrapper,!qe&&me),style:{...Le,...se,...k?.wrapper}},Hn(e,{data:!0})),xe&&a.createElement("div",Fe),B?B(Ae):Ae)}),Ie={...h};return y&&(Ie.zIndex=y),a.createElement(NP.Provider,{value:pe},a.createElement("div",{className:U(n,`${n}-${o}`,m,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:Ie,tabIndex:-1,ref:Q},fe,_e))},OU=a.forwardRef(MU),zU=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:r="right",autoFocus:o=!0,keyboard:s=!0,width:i,height:c,size:f,maxSize:d,mask:p=!0,maskClosable:m=!0,getContainer:h,forceRender:y,afterOpenChange:b,destroyOnHidden:v,onMouseEnter:$,onMouseOver:x,onMouseLeave:E,onClick:C,onKeyDown:w,onKeyUp:R,onClose:P,resizable:I,defaultSize:T,focusTriggerAfterClose:L,panelRef:z}=e,[M,O]=a.useState(!1),[_,F]=a.useState(!1);Qt(()=>{F(!0)},[]);const W=_?t:!1,q=a.useRef(null),G=a.useRef(null);Qt(()=>{W&&(G.current=document.activeElement)},[W]);const j=K=>{O(K),b?.(K),!K&&L!==!1&&G.current&&!q.current?.contains(G.current)&&G.current?.focus({preventScroll:!0})},H=a.useMemo(()=>({panel:z}),[z]);if(!y&&!M&&!W&&v)return null;const B={...e,open:W,prefixCls:n,placement:r,autoFocus:o,keyboard:s,width:i,height:c,size:f,maxSize:d,defaultSize:T,mask:p,maskClosable:m,inline:h===!1,afterOpenChange:j,ref:q,resizable:I,...{onMouseEnter:$,onMouseOver:x,onMouseLeave:E,onClick:C,onKeyDown:w,onKeyUp:R}},D=({top:K,event:Q})=>{K&&s&&(Q.stopPropagation(),P?.(Q))};return a.createElement(N6.Provider,{value:H},a.createElement(Dd,{open:W||y||M,autoDestroy:!1,getContainer:h,autoLock:p&&(W||M),onEsc:D},a.createElement(OU,B)))},T6=e=>{const{prefixCls:t,ariaId:n,title:r,footer:o,extra:s,closable:i,loading:c,onClose:f,headerStyle:d,bodyStyle:p,footerStyle:m,children:h,classNames:y,styles:b}=e,v=Xt("drawer"),{classNames:$,styles:x,closable:E}=v,[C,w]=qt([$,y],[x,b],{props:{...e,closable:i??E}}),R=a.useMemo(()=>{const W=i??E;if(W!==!1)return Rt(W)&&W?.placement==="end"?"end":"start"},[i,E]),P=a.useCallback(W=>a.createElement("button",{type:"button",onClick:f,className:U(`${t}-close`,{[`${t}-close-${R}`]:R==="end"},C.close),style:w.close},W),[f,t,R,C.close,w.close]),[I,T,L]=NS(ea(e),ea(v),{closable:!0,closeIconRender:P}),z=hr(T,{disabled:L}),M=tt(r),O=tt(s),_=()=>!M&&!I&&!O?null:a.createElement("div",{style:{...w.header,...d},className:U(`${t}-header`,C.header,{[`${t}-header-close-only`]:I&&!M&&!O})},a.createElement("div",{className:`${t}-header-title`},R==="start"&&z,M&&a.createElement("div",{className:U(`${t}-title`,C.title),style:w.title,id:n},r)),O&&a.createElement("div",{className:U(`${t}-extra`,C.extra),style:w.extra},s),R==="end"&&z),F=()=>tt(o)?a.createElement("div",{className:U(`${t}-footer`,C.footer),style:{...w.footer,...m}},o):null;return a.createElement(a.Fragment,null,_(),a.createElement("div",{className:U(`${t}-body`,C.body),style:{...w.body,...p}},c?a.createElement(ro,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):h),F())},AU=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},M6=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),O6=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...M6({opacity:e},{opacity:1})}),LU=(e,t)=>[O6(.7,t),M6({transform:AU(e)},{transform:"none"})],DU=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:O6(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>({...r,[`&-${o}`]:LU(o,n)}),{})}}},BU=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:s,motionDurationSlow:i,motionDurationMid:c,paddingXS:f,padding:d,paddingLG:p,fontSizeLG:m,lineHeightLG:h,lineWidth:y,lineType:b,colorSplit:v,marginXS:$,colorIcon:x,colorIconHover:E,colorBgTextHover:C,colorBgTextActive:w,colorText:R,fontWeightStrong:P,footerPaddingBlock:I,footerPaddingInline:T,draggerSize:L,calc:z}=e,M=`${n}-content-wrapper`,O=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:R,"&-pure":{position:"relative",background:s,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[M]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${M}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${M}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${M}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${M}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:s,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${te(d)} ${te(p)}`,fontSize:m,lineHeight:h,borderBottom:`${te(y)} ${b} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:z(m).add(f).equal(),height:z(m).add(f).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:x,fontWeight:P,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${c}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:$},[`&:not(${n}-close-end)`]:{marginInlineEnd:$},"&:disabled":{pointerEvents:"none"},"&:hover":{color:E,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:w},...to(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${te(I)} ${te(T)}`,borderTop:`${te(y)} ${b} ${v}`},[O]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${O}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:L,cursor:"col-resize"},[`${O}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:L,cursor:"col-resize"},[`${O}-top`]:{insetInline:0,bottom:0,height:L,cursor:"row-resize"},[`${O}-bottom`]:{insetInline:0,top:0,height:L,cursor:"row-resize"},[`${M}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},_U=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),z6=Zt("Drawer",e=>{const t=Jt(e,{});return[BU(t),DU(t)]},_U),FU={distance:180},TP=378,MP={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},A6=e=>{const{rootClassName:t,size:n,defaultSize:r=TP,height:o,width:s,mask:i,push:c=FU,open:f,afterOpenChange:d,onClose:p,prefixCls:m,getContainer:h,panelRef:y=null,style:b,className:v,resizable:$,"aria-labelledby":x,focusable:E,maskClosable:C,maskStyle:w,drawerStyle:R,contentWrapperStyle:P,destroyOnClose:I,destroyOnHidden:T,...L}=e,{placement:z}=L,M=Xo(),O=tt(L.title)?M:void 0,{getPopupContainer:_,getPrefixCls:F,direction:W,className:q,style:G,classNames:j,styles:H,mask:k,focusable:B}=Xt("drawer"),D=F("drawer",m),[K,Q]=z6(D),Z=h===void 0&&_?()=>_(document.body):h,X=a.useMemo(()=>Un(n)?n:n==="large"?736:n==="default"?TP:typeof n=="string"?/^\d+(\.\d+)?$/.test(n)?Number(n):n:!z||z==="left"||z==="right"?s:o,[n,z,s,o]),J={motionName:Ls(D,"mask-motion"),...MP},ne=Ie=>({motionName:Ls(D,`panel-motion-${Ie}`),...MP}),oe=xO(),ae=ur(y,oe),[pe,fe]=Fc("Drawer",L.zIndex),[le,ie,re]=qM(i,k,D,C),de=yO({...B,...E},Z!==!1&&le),{classNames:ge,styles:se,rootStyle:ce}=L,xe={...e,zIndex:pe,panelRef:y,mask:le,maskClosable:re,defaultSize:r,push:c,focusable:de},Ee=ut(G,"section"),Se=ut(R,"section"),Fe=ut(b,"section"),[qe,Ne]=qt([j,ge],[H,Ee,se,Se,Fe],{props:xe}),_e=U({"no-mask":!le,[`${D}-rtl`]:W==="rtl"},t,K,Q,qe.root);return a.createElement(ta,{form:!0,space:!0},a.createElement(Fd.Provider,{value:fe},a.createElement(zU,{prefixCls:D,onClose:p,maskMotion:J,motion:ne,...L,classNames:{mask:U(qe.mask,ie.mask),section:qe.section,wrapper:qe.wrapper,dragger:qe.dragger},styles:{mask:{...Ne.mask,...w},section:Ne.section,wrapper:{...Ne.wrapper,...P},dragger:Ne.dragger},open:f,mask:le,maskClosable:re,push:c,size:X,defaultSize:r,rootStyle:{...Ne.root,...ce},className:U(q,v),rootClassName:_e,getContainer:Z,afterOpenChange:d,panelRef:ae,zIndex:pe,...$?{resizable:$}:{},"aria-labelledby":x??O,destroyOnHidden:T??I,focusTriggerAfterClose:de.focusTriggerAfterClose,focusTrap:de.trap},a.createElement(T6,{prefixCls:D,size:n,...L,ariaId:O,onClose:p}))))},kU=e=>{const{prefixCls:t,style:n,className:r,placement:o="right",...s}=e,{getPrefixCls:i}=a.useContext(Ot),c=i("drawer",t),[f,d]=z6(c),p=U(c,`${c}-pure`,`${c}-${o}`,f,d,r);return a.createElement("div",{className:p,style:n},a.createElement(T6,{prefixCls:c,...s}))};A6._InternalPanelDoNotUseOrYouWillBeFired=kU;function qm(e){return["small","middle","medium","large"].includes(e)}function OP(e){return e?Un(e):!1}const L6=ee.createContext({latestIndex:0}),HU=L6.Provider,jU=e=>{const{className:t,prefix:n,index:r,children:o,separator:s,style:i,classNames:c,styles:f}=e,{latestIndex:d}=a.useContext(L6);return tt(o)?a.createElement(a.Fragment,null,a.createElement("div",{className:t,style:i},o),r<d&&s&&a.createElement("span",{className:U(`${n}-item-separator`,c?.separator),style:f?.separator},s)):null},WU=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"},"&-stretch":{alignItems:"stretch",[`> ${t}-item`]:{display:"flex"},[`&${t}-vertical > ${t}-item`]:{flexDirection:"column"},[`&${t}-horizontal > ${t}-item > *`]:{height:"100%"},[`&${t}-vertical > ${t}-item > *`]:{width:"100%"}}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},VU=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},KU=Zt("Space",e=>{const t=Jt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[WU(t),VU(t)]},()=>({}),{resetStyle:!1}),UU=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:s,style:i,classNames:c,styles:f}=Xt("space"),{size:d=o??"small",align:p,className:m,rootClassName:h,children:y,direction:b,orientation:v,prefixCls:$,split:x,separator:E,style:C,vertical:w,wrap:R=!1,classNames:P,styles:I,...T}=e,[L,z]=Array.isArray(d)?d:[d,d],M=qm(z),O=qm(L),_=OP(z),F=OP(L),W=cr(y,{keepEmpty:!0}),[q,G]=_d(v,w,b),j=p===void 0&&!G?"center":p,H=E??x,k=n("space",$),[B,D]=KU(k),K={...e,size:d,orientation:q,align:j},Q=ut(i),Z=ut(C),[X,J]=qt([c,P],[f,Q,I,Z],{props:K}),ne=U(k,s,B,`${k}-${q}`,{[`${k}-rtl`]:r==="rtl",[`${k}-align-${j}`]:j,[`${k}-gap-row-${z}`]:M,[`${k}-gap-col-${L}`]:O},m,h,D,X.root),oe=U(`${k}-item`,X.item),ae=W.map((le,ie)=>{const re=le?.key||`${oe}-${ie}`;return a.createElement(jU,{prefix:k,classNames:X,styles:J,className:oe,key:re,index:ie,separator:H,style:J.item},le)}),pe=a.useMemo(()=>({latestIndex:W.reduce((ie,re,de)=>tt(re)?de:ie,0)}),[W]);if(W.length===0)return null;const fe={};return R&&(fe.flexWrap="wrap"),!O&&F&&(fe.columnGap=L),!M&&_&&(fe.rowGap=z),a.createElement("div",{ref:t,className:ne,style:{...fe,...J.root},...T},a.createElement(HU,{value:pe},ae))}),Hh=UU;Hh.Compact=zS;Hh.Addon=C6;const D6=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=a.useContext(Ot),{prefixCls:o,type:s="default",danger:i,disabled:c,loading:f,onClick:d,htmlType:p,children:m,className:h,menu:y,arrow:b,autoFocus:v,trigger:$,align:x,open:E,onOpenChange:C,placement:w,getPopupContainer:R,href:P,icon:I=a.createElement(Jd,null),title:T,buttonsRender:L=ae=>ae,mouseEnterDelay:z,mouseLeaveDelay:M,overlayClassName:O,overlayStyle:_,destroyOnHidden:F,destroyPopupOnHide:W,dropdownRender:q,popupRender:G,...j}=e,H=n("dropdown",o),k=`${H}-button`,D={menu:y,arrow:b,autoFocus:v,align:x,disabled:c,trigger:c?[]:$,onOpenChange:C,getPopupContainer:R||t,mouseEnterDelay:z,mouseLeaveDelay:M,classNames:{root:O},styles:{root:_},destroyOnHidden:F,popupRender:G||q},{compactSize:K,compactItemClassnames:Q}=aa(H,r),Z=U(k,Q,h);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=W),"open"in e&&(D.open=E),"placement"in e?D.placement=w:D.placement=r==="rtl"?"bottomLeft":"bottomRight";const X=a.createElement(sn,{type:s,danger:i,disabled:c,loading:f,onClick:d,htmlType:p,href:P,title:T},m),J=a.createElement(sn,{type:s,danger:i,icon:I}),[ne,oe]=L([X,J]);return a.createElement(Hh.Compact,{className:Z,size:K,block:!0,...j},ne,a.createElement(Ah,{...D},oe))};D6.__ANT_BUTTON=!0;const rf=Ah;rf.Button=D6;const B6=["wrap","nowrap","wrap-reverse"],_6=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],F6=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],qU=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&B6.includes(n)}},GU=(e,t)=>{const n={};return F6.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},XU=(e,t)=>{const n={};return _6.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},YU=(e,t)=>U({...qU(e,t),...GU(e,t),...XU(e,t)}),QU=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},JU=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ZU=e=>{const{componentCls:t}=e,n={};return B6.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},eq=e=>{const{componentCls:t}=e,n={};return F6.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},tq=e=>{const{componentCls:t}=e,n={};return _6.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},nq=()=>({}),rq=Zt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Jt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[QU(o),JU(o),ZU(o),eq(o),tq(o)]},nq,{resetStyle:!1}),Sn=ee.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:s,flex:i,gap:c,vertical:f,orientation:d,component:p="div",children:m,...h}=e,{flex:y,direction:b,getPrefixCls:v}=ee.useContext(Ot),$=v("flex",n),[x,E]=rq($),[,C]=_d(d,f??y?.vertical),w=U(o,r,y?.className,$,x,E,YU($,{...e,vertical:C}),{[`${$}-rtl`]:b==="rtl",[`${$}-gap-${c}`]:qm(c),[`${$}-vertical`]:C}),R={...y?.style,...s};return un(i)&&(R.flex=i),un(c)&&!qm(c)&&(R.gap=c),ee.createElement(p,{ref:t,className:w,style:R,...dn(h,["justify","wrap","align"])},m)}),oq=(e,t)=>tt(e)?Rt(e)&&!a.isValidElement(e)?{...t,...e}:{...t,title:e}:null;function Gm(e){const[t,n]=uh(e);return a.useEffect(()=>{n(e,{ms:e.length?0:10})},[e]),t}const sq=e=>{const{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,o=`${t}-show-help`,s=`${t}-show-help-item`;return{[o]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[s]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(i=>`${i} ${n} ${r}`).join(", ")} !important`,[`&${s}-appear, &${s}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${s}-leave-active`]:{transform:"translateY(-5px)"}}}}},iq=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${te(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, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zP=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},aq=e=>{const{componentCls:t}=e;return{[t]:{...an(e),...iq(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...zP(e,e.controlHeightSM)},"&-large":{...zP(e,e.controlHeightLG)}}}},lq=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:s,labelColor:i,labelFontSize:c,labelHeight:f,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:p,itemMarginBottom:m}=e,[h]=Bt(o,"grid");return{[t]:{...an(e),marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
300
|
+
&-hidden${o}-row`]:{display:"none"},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-start, &-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:f,color:i,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"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:d,marginInlineEnd:p},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[h("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(> ${o}-switch:only-child, > ${o}-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:DS,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},k6=e=>({padding:e.verticalLabelPadding,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),sc=e=>({...k6(e),margin:e.verticalLabelMargin}),cq=e=>{const[t]=Bt(e.antCls,"form");return{...k6(e),[t("item-label-margin")]:e.verticalLabelMargin}},uq=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"}},[`> ${n}-row > ${t}-col-24${n}-label,
|
|
301
|
+
> ${n}-row > ${t}-col-xl-24${n}-label`]:sc(e)}}},dq=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,
|
|
302
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},fq=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n}:not(${n}-vertical) > ${n}-row > ${n}-label`]:sc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},pq=e=>{const{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:o}=e,[s,i]=Bt(r,"form");return{[n]:{[s("item-label-margin")]:"initial"},[`${n}-label`]:{margin:i("item-label-margin")},[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:o},[`${n}-control`]:{width:"100%",flex:"none"},[`> ${n}-row > ${n}-label,
|
|
303
|
+
> ${n}-row > ${r}-col-24${n}-label,
|
|
304
|
+
> ${n}-row > ${r}-col-xl-24${n}-label`]:cq(e)},[`@media (max-width: ${te(e.screenXSMax)})`]:[fq(e),{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-xs-24${n}-label`]:sc(e)}}}],[`@media (max-width: ${te(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-sm-24${n}-label`]:sc(e)}}},[`@media (max-width: ${te(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-md-24${n}-label`]:sc(e)}}},[`@media (max-width: ${te(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal):not(${n}-vertical)`]:{[`> ${n}-row > ${r}-col-lg-24${n}-label`]:sc(e)}}}}},mq=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),hq=(e,t)=>Jt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),p$=Zt("Form",(e,{rootPrefixCls:t})=>{const n=hq(e,t);return[aq(n),lq(n),sq(n),uq(n),dq(n),pq(n),LS(n),DS]},mq,{order:-1e3}),AP=[];function kb(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const H6=({help:e,helpStatus:t,errors:n=AP,warnings:r=AP,className:o,fieldId:s,onVisibleChanged:i})=>{const{prefixCls:c}=a.useContext(IS),{classNames:f,styles:d}=a.useContext(As),p=`${c}-item-explain`,m=er(c),[h,y]=p$(c,m),b=a.useMemo(()=>Pm(c),[c]),v=Gm(n),$=Gm(r),x=un(e),E=a.useMemo(()=>x?[kb(e,"help",t)]:[].concat(jt(v.map((R,P)=>kb(R,"error","error",P))),jt($.map((R,P)=>kb(R,"warning","warning",P)))),[e,t,x,v,$]),C=a.useMemo(()=>{const R={};return E.forEach(({key:P})=>{R[P]=(R[P]||0)+1}),E.map((P,I)=>({...P,key:R[P.key]>1?`${P.key}-fallback-${I}`:P.key}))},[E]),w={};return s&&(w.id=`${s}_help`),a.createElement(Ar,{motionDeadline:b.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:i},R=>{const{className:P,style:I}=R;return a.createElement("div",{...w,className:U(p,P,f?.help,y,m,o,h),style:{...d?.help,...I}},a.createElement(rM,{keys:C,...Pm(c),motionName:`${c}-show-help-item`,component:!1},T=>{const{key:L,error:z,errorStatus:M,className:O,style:_}=T;return a.createElement("div",{key:L,className:U(O,f?.helpItem,{[`${p}-${M}`]:M}),style:{...d?.helpItem,..._}},z)}))})},gq=(e,t)=>{const n=a.useContext(Er),{getPrefixCls:r,direction:o,requiredMark:s,colon:i,scrollToFirstError:c,className:f,style:d,styles:p,classNames:m,tooltip:h,labelAlign:y,labelWrap:b}=Xt("form"),{prefixCls:v,className:$,rootClassName:x,size:E,disabled:C=n,form:w,colon:R,labelAlign:P,labelWrap:I,labelCol:T,wrapperCol:L,layout:z="horizontal",scrollToFirstError:M,requiredMark:O,onFinishFailed:_,name:F,style:W,feedbackIcons:q,variant:G,classNames:j,styles:H,tooltip:k,...B}=e,D=or(E),K=a.useContext(aM),Q=a.useMemo(()=>O!==void 0?O:s!==void 0?s:!0,[O,s]),Z=R??i,X=P??y,J=I??b,ne={...h,...k},oe=r("form",v),ae=er(oe),[pe,fe]=p$(oe,ae),le={...e,size:D,disabled:C,layout:z,colon:Z,requiredMark:Q,labelAlign:X,labelWrap:J},ie=ut(d),re=ut(W),[de,ge]=qt([m,j],[p,ie,H,re],{props:le}),se=U(oe,`${oe}-${z}`,{[`${oe}-hide-required-mark`]:Q===!1,[`${oe}-rtl`]:o==="rtl",[`${oe}-large`]:D==="large",[`${oe}-small`]:D==="small"},fe,ae,pe,f,$,x,de.root),[ce]=F4(w),{__INTERNAL__:xe}=ce;xe.name=F;const Ee=a.useMemo(()=>({name:F,labelAlign:X,labelCol:T,labelWrap:J,wrapperCol:L,layout:z,colon:Z,requiredMark:Q,itemRef:xe.itemRef,form:ce,feedbackIcons:q,tooltip:ne,classNames:de,styles:ge}),[F,X,J,T,L,z,Z,Q,ce,q,de,ge,ne]),Se=a.useRef(null);a.useImperativeHandle(t,()=>({...ce,nativeElement:Se.current?.nativeElement}));const Fe=(Ne,_e)=>{if(Ne){let Ie={block:"nearest"};Rt(Ne)&&(Ie={...Ie,...Ne}),ce.scrollToField(_e,Ie)}},qe=Ne=>{if(_?.(Ne),Ne.errorFields.length){const _e=Ne.errorFields[0].name;if(M!==void 0){Fe(M,_e);return}c!==void 0&&Fe(c,_e)}};return a.createElement(BM.Provider,{value:G},a.createElement(wS,{disabled:C},a.createElement(Ya.Provider,{value:D},a.createElement(LM,{validateMessages:K},a.createElement(As.Provider,{value:Ee},a.createElement(DM,{status:!0},a.createElement(_c,{id:F,...B,name:F,onFinishFailed:qe,form:ce,ref:Se,style:ge?.root,className:se})))))))},yq=a.forwardRef(gq),bq=e=>{if(Tt(e))return e;const t=cr(e);return t.length<=1?t[0]:t},j6=()=>{const{status:e,errors:t=[],warnings:n=[]}=a.useContext(Rr);return{status:e,errors:t,warnings:n}};j6.Context=Rr;function vq(e){const[t,n]=a.useState(e),r=a.useRef(null),o=a.useRef([]),s=a.useRef(!1);a.useEffect(()=>(s.current=!1,()=>{s.current=!0,Wt.cancel(r.current),r.current=null}),[]);function i(c){s.current||(r.current===null&&(o.current=[],r.current=Wt(()=>{r.current=null,n(f=>{let d=f;return o.current.forEach(p=>{d=p(d)}),d})})),o.current.push(c))}return[t,i]}const xq=()=>{const{itemRef:e}=a.useContext(As),t=a.useRef({});return(r,o)=>{const s=o&&Rt(o)&&Fs(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==s)&&(t.current.name=i,t.current.originRef=s,t.current.ref=ur(e(r),s)),t.current.ref}},Cq=24,Sq=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:s,errors:i,warnings:c,_internalItemRender:f,extra:d,help:p,fieldId:m,marginBottom:h,onErrorVisibleChanged:y,label:b}=e,v=`${t}-item`,$=a.useContext(As),{classNames:x,styles:E}=$,C=a.useMemo(()=>{let G={...o||$.wrapperCol||{}};return b===null&&!r&&!o&&$.labelCol&&[void 0].concat(jt(i4)).forEach(H=>{const k=H?[H]:[],B=Mr($.labelCol,k),D=Rt(B)?B:{},K=Mr(G,k),Q=Rt(K)?K:{};"span"in D&&!("offset"in Q)&&D.span<Cq&&(G=mo(G,[].concat(k,["offset"]),D.span))}),G},[o,$.wrapperCol,$.labelCol,b,r]),w=U(`${v}-control`,C.className),R=a.useMemo(()=>{const{labelCol:G,wrapperCol:j,...H}=$;return H},[$]),P=a.useRef(null),[I,T]=a.useState(0),L=tt(d);Qt(()=>{L&&P.current?T(P.current.clientHeight):T(0)},[d,L]);const z=a.createElement("div",{className:`${v}-control-input`},a.createElement("div",{className:U(`${v}-control-input-content`,x?.content),style:E?.content},s)),M=a.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=h!==null||i.length||c.length?a.createElement(IS.Provider,{value:M},a.createElement(H6,{fieldId:m,errors:i,warnings:c,help:p,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:y})):null,_={};m&&(_.id=`${m}_extra`);const F=L?a.createElement("div",{..._,className:U(`${v}-extra`,x?.extra),style:E?.extra,ref:P},d):null,W=O||F?a.createElement("div",{className:`${v}-additional`,style:h?{minHeight:h+I}:{}},O,F):null,q=f&&f.mark==="pro_table_render"&&f.render?f.render(e,{input:z,errorList:O,extra:F}):a.createElement(a.Fragment,null,z,W);return a.createElement(As.Provider,{value:R},a.createElement(zc,{...C,className:w},q))};var $q={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"};function Lx(){return Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lx.apply(this,arguments)}const wq=(e,t)=>a.createElement(_t,Lx({},e,{ref:t,icon:$q})),Eq=a.forwardRef(wq),Rq=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:s,required:i,requiredMark:c,tooltip:f,vertical:d})=>{const[p]=br("Form"),{labelAlign:m,labelCol:h,labelWrap:y,colon:b,classNames:v,styles:$,tooltip:x}=a.useContext(As);if(!tt(t))return null;const E=r||h||{},C=o||m,w=C==="left"||C==="start",R=`${e}-item-label`,P=U(R,E.className,{[`${R}-start ${R}-left`]:w,[`${R}-wrap`]:y});let I=t;const T=s===!0||b!==!1&&s!==!1;T&&!d&&typeof t=="string"&&t.trim()&&(I=t.replace(/[::]\s*$/,""));const z=oq(f,x);if(z){const q=a.createElement(rr,{...z},a.createElement("span",{className:`${e}-item-tooltip`,onClick:G=>{G.preventDefault()},tabIndex:-1},z.icon||z.children||a.createElement(Eq,null)));I=a.createElement(a.Fragment,null,I,q)}const M=c==="optional",O=Tt(c),_=c===!1;O?I=c(I,{required:!!i}):M&&!i&&(I=a.createElement(a.Fragment,null,I,a.createElement("span",{className:`${e}-item-optional`},p?.optional||xo.Form?.optional)));let F;_?F="hidden":(M||O)&&(F="optional");const W=U(v?.label,{[`${e}-item-required`]:i,[`${e}-item-required-mark-${F}`]:F,[`${e}-item-no-colon`]:!T});return a.createElement(zc,{...E,className:P},a.createElement("label",{htmlFor:n,className:W,style:$?.label,title:typeof t=="string"?t:void 0},I))},Iq={success:Ld,warning:cl,error:ll,validating:oi};function W6({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:s,meta:i,noStyle:c,name:f}){const d=`${s}-item`,{feedbackIcons:p}=a.useContext(As),m=_4(t,n,i,null,!!r,o),{isFormItemInput:h,status:y,hasFeedback:b,feedbackIcon:v,name:$}=a.useContext(Rr),x=c&&y&&o===void 0&&m==="success"?y:m,E=a.useMemo(()=>{let C;if(r){const R=r!==!0&&r.icons||p,P=x&&R?.({status:x,errors:t,warnings:n})?.[x],I=x?Iq[x]:null;C=P!==!1&&I?a.createElement("span",{className:U(`${d}-feedback-icon`,`${d}-feedback-icon-${x}`)},P||a.createElement(I,null)):null}const w={status:x||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:!0,name:f};return c&&(w.status=(x??y)||"",w.isFormItemInput=h,w.hasFeedback=!!(r??b),w.feedbackIcon=r!==void 0?w.feedbackIcon:v,w.name=f??$),w},[x,t,n,r,p,c,f,h,y,d,b,v,$]);return a.createElement(Rr.Provider,{value:E},e)}function Pq(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:s,errors:i,warnings:c,validateStatus:f,meta:d,hasFeedback:p,hidden:m,children:h,fieldId:y,required:b,isRequired:v,onSubItemMetaChange:$,layout:x,name:E,...C}=e,w=`${t}-item`,{requiredMark:R,layout:P}=a.useContext(As),I=x||P,T=I==="vertical",L=a.useRef(null),z=Gm(i),M=Gm(c),O=un(s),_=!!(O||z.length||M.length),F=!!L.current&&Od(L.current),[W,q]=a.useState(null);Qt(()=>{if(_&&L.current){const B=getComputedStyle(L.current);q(Number.parseInt(B.marginBottom,10))}},[_,F]);const G=B=>{!B&&!_&&q(null)},H=((B=!1)=>{const D=B?z:d.errors,K=B?M:d.warnings;return _4(D,K,d,"",!!p,f)})(),k=U(w,n,r,{[`${w}-with-help`]:O||z.length||M.length,[`${w}-has-feedback`]:H&&p,[`${w}-has-success`]:H==="success",[`${w}-has-warning`]:H==="warning",[`${w}-has-error`]:H==="error",[`${w}-is-validating`]:H==="validating",[`${w}-hidden`]:m,[`${w}-${I}`]:I});return a.createElement("div",{className:k,style:o,ref:L},a.createElement(_h,{className:`${w}-row`,...dn(C,["_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"])},a.createElement(Rq,{htmlFor:y,...e,requiredMark:R,required:b??v,prefixCls:t,vertical:T}),a.createElement(Sq,{...e,...d,errors:z,warnings:M,prefixCls:t,status:H,help:s,marginBottom:W,onErrorVisibleChanged:G},a.createElement(AM.Provider,{value:$},a.createElement(W6,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:p,validateStatus:H,name:E},h)))),!!W&&a.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-W}}))}const Nq="__SPLIT__";function Tq(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const s=e[o],i=t[o];return s===i||Tt(s)||Tt(i)})}const Mq=a.memo(e=>e.children,(e,t)=>Tq(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function LP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Oq(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:s,shouldUpdate:i,rules:c,children:f,required:d,label:p,labelAlign:m,messageVariables:h,trigger:y="onChange",validateTrigger:b,hidden:v,help:$,layout:x}=e,{getPrefixCls:E}=a.useContext(Ot),{name:C}=a.useContext(As),w=bq(f),R=Tt(w),P=a.useContext(AM),{validateTrigger:I}=a.useContext(Qa),T=un(b)?b:I,L=un(t),z=E("form",s),M=er(z),[O,_]=p$(z,M);aS();const F=a.useContext(gd),W=a.useRef(null),[q,G]=vq({}),[j,H]=UT(()=>LP()),k=J=>{const ne=F?.getKey(J.name);if(H(J.destroy?LP():J,!0),n&&$!==!1&&P){let oe=J.name;if(J.destroy)oe=W.current||oe;else if(ne!==void 0){const[ae,pe]=ne;oe=[ae].concat(jt(pe)),W.current=oe}P(J,oe)}},B=(J,ne)=>{G(oe=>{const ae={...oe},fe=[].concat(jt(J.name.slice(0,-1)),jt(ne)).join(Nq);return J.destroy?delete ae[fe]:ae[fe]=J,ae})},[D,K]=a.useMemo(()=>{const J=jt(j.errors),ne=jt(j.warnings);return Object.values(q).forEach(oe=>{J.push.apply(J,jt(oe.errors||[])),ne.push.apply(ne,jt(oe.warnings||[]))}),[J,ne]},[q,j.errors,j.warnings]),Q=xq();function Z(J,ne,oe){return n&&!v?a.createElement(W6,{prefixCls:z,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:D,warnings:K,noStyle:!0,name:t},J):a.createElement(Pq,{key:"row",...e,className:U(r,_,M,O),prefixCls:z,fieldId:ne,isRequired:oe,errors:D,warnings:K,meta:j,onSubItemMetaChange:B,layout:x,name:t},J)}if(!L&&!R&&!o)return Z(w);let X={};return typeof p=="string"?X.label=p:t&&(X.label=String(t)),h&&(X={...X,...h}),a.createElement(ES,{...e,messageVariables:X,trigger:y,validateTrigger:T,onMetaChange:k},(J,ne,oe)=>{const ae=Ju(t).length&&ne?ne.name:[],pe=B4(ae,C),fe=d!==void 0?d:c?.some(re=>{if(Rt(re)&&re.required&&!re.warningOnly)return!0;if(Tt(re)){const de=re(oe);return de?.required&&!de?.warningOnly}return!1}),le={...J};let ie=null;if(Array.isArray(w)&&L)ie=w;else if(!(R&&(!(i||o)||L))){if(!(o&&!R&&!L))if(a.isValidElement(w)){const re={...w.props,...le};re.id||(re.id=pe);const de=tt(e.extra);if($||D.length>0||K.length>0||de){const ce=[];($||D.length>0||K.length>0)&&ce.push(`${pe}_help`),de&&ce.push(`${pe}_extra`),re["aria-describedby"]=ce.join(" ")}D.length>0&&(re["aria-invalid"]="true"),fe&&(re["aria-required"]="true"),ri(w)&&(re.ref=Q(ae,w)),new Set([].concat(jt(Ju(y)),jt(Ju(T)))).forEach(ce=>{re[ce]=(...xe)=>{le[ce]?.(...xe),w.props[ce]?.(...xe)}});const se=[re["aria-required"],re["aria-invalid"],re["aria-describedby"]];ie=a.createElement(Mq,{control:le,update:w,childProps:se},hr(w,re))}else R&&(i||o)&&!L?ie=w(oe):ie=w}return Z(ie,pe,fe)})}const V6=Oq;V6.useStatus=j6;const zq=({prefixCls:e,children:t,...n})=>{const{getPrefixCls:r}=a.useContext(Ot),o=r("form",e),s=a.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return a.createElement(MM,{...n},(i,c,f)=>a.createElement(IS.Provider,{value:s},t(i.map(d=>({...d,fieldKey:d.key})),c,{errors:f.errors,warnings:f.warnings})))};function Aq(){const{form:e}=a.useContext(As);return e}const nr=yq;nr.Item=V6;nr.List=zq;nr.ErrorList=H6;nr.useForm=F4;nr.useFormInstance=Aq;nr.useWatch=zM;nr.Provider=LM;const Lq=e=>{const{getPrefixCls:t,direction:n}=a.useContext(Ot),{prefixCls:r,className:o}=e,s=t("input-group",r),i=t("input"),[c,f]=n6(i),d=U(s,f,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},c,o),p=a.useContext(Rr),m=a.useMemo(()=>({...p,isFormItemInput:!1}),[p]);return a.createElement(Rr.Provider,{value:m},a.createElement(Hh.Compact,{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},Dq=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,"&::selection":{color:"transparent"}},[`${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}}}},Bq=Zt(["Input","OTP"],e=>{const t=Jt(e,pl(e));return Dq(t)},ml),_q="•",Fq=a.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:s,index:i,mask:c,onFocus:f,type:d,...p}=e,{getPrefixCls:m}=a.useContext(Ot),h=m("otp"),y=typeof c=="string"?c:_q,b=a.useRef(null);a.useImperativeHandle(t,()=>b.current);const v=C=>{o(i,C.target.value)},$=()=>{Wt(()=>{const C=b.current?.input;document.activeElement===C&&C&&C.select()})},x=C=>{f?.(C),$()},E=C=>{const{key:w,ctrlKey:R,metaKey:P}=C;w==="ArrowLeft"?s(i-1):w==="ArrowRight"?s(i+1):w==="z"&&(R||P)?C.preventDefault():w==="Backspace"&&!r&&s(i-1),$()};return a.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},c&&r!==""&&r!==void 0&&a.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},y),a.createElement(nf,{...p,type:d??(c?"password":"text"),ref:b,value:r,onInput:v,onFocus:x,onKeyDown:E,onMouseDown:$,onMouseUp:$,className:U(n,{[`${h}-mask-input`]:c})}))});function zp(e){return(e||"").split("")}const kq=e=>{const{index:t,prefixCls:n,separator:r,className:o,style:s}=e,i=Tt(r)?r(t):r;return tt(i)?a.createElement("span",{className:U(`${n}-separator`,o),style:s},i):null},Hq=a.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:s,value:i,onChange:c,formatter:f,separator:d,variant:p,disabled:m,status:h,autoFocus:y,mask:b,type:v,autoComplete:$,onInput:x,onFocus:E,inputMode:C,classNames:w,styles:R,rootClassName:P,className:I,style:T,...L}=e,{classNames:z,styles:M,getPrefixCls:O,direction:_,style:F,className:W}=Xt("otp"),q=O("otp",n),[G]=no("otp",p,void 0,"input"),j={...e,length:r,variant:G},H=ut(F),k=ut(T),[B,D]=qt([z,w],[M,H,R,k],{props:j}),{"aria-invalid":K,...Q}=L,Z=Hn(Q,{aria:!0,data:!0,attr:!0}),[X]=br("Input"),[J,ne]=Bq(q),oe=or(Ne=>o??Ne),ae=a.useContext(Rr),pe=Gd(ae.status,h),fe=a.useMemo(()=>({...ae,status:pe,hasFeedback:!1,feedbackIcon:null}),[ae,pe]),le=a.useRef(null),ie=a.useRef({});a.useImperativeHandle(t,()=>({focus:()=>{ie.current[0]?.focus()},blur:()=>{for(let Ne=0;Ne<r;Ne+=1)ie.current[Ne]?.blur()},nativeElement:le.current}));const re=Ne=>f?f(Ne):Ne,[de,ge]=GM(zp(re(s||""))),se=de();a.useEffect(()=>{i!==void 0&&ge(zp(i))},[i]);const ce=Ct(Ne=>{const _e=de();ge(Ne),x&&x(Ne),c&&Ne.length===r&&Ne.every(Ie=>Ie)&&Ne.some((Ie,me)=>_e[me]!==Ie)&&c(Ne.join(""))}),xe=Ct((Ne,_e)=>{let Ie=jt(se);for(let Le=0;Le<Ne;Le+=1)Ie[Le]||(Ie[Le]="");_e.length<=1?Ie[Ne]=_e:Ie=Ie.slice(0,Ne).concat(zp(_e));for(let Le=Ie.length-1;Le>=0&&!Ie[Le];Le-=1)Ie.pop();const me=re(Ie.map(Le=>Le||" ").join(""));return Ie=zp(me).map((Le,He)=>Le===" "&&!Ie[He]?Ie[He]:Le),Ie.slice(0,r)}),Ee=(Ne,_e)=>{const Ie=xe(Ne,_e),me=Math.min(Ne+_e.length,r-1);ce(Ie),me!==Ne&&Ie[Ne]!==void 0&&ie.current[me]?.focus()},Se=Ne=>{ie.current[Ne]?.focus()},Fe=(Ne,_e)=>{for(let Ie=0;Ie<_e;Ie+=1)if(!de()[Ie]){ie.current[Ie]?.focus();break}E?.(Ne)},qe={"aria-invalid":K??(pe==="error"||void 0),variant:G,disabled:m,status:pe,mask:b,type:v,inputMode:C,autoComplete:$};return a.createElement("div",{...Z,ref:le,className:U(I,P,q,{[`${q}-sm`]:oe==="small",[`${q}-lg`]:oe==="large",[`${q}-rtl`]:_==="rtl"},ne,J,W,B.root),style:D.root,role:"group"},a.createElement(Rr.Provider,{value:fe},Array.from({length:r}).map((Ne,_e)=>{const Ie=`otp-${_e}`,me=se[_e]||"";return a.createElement(a.Fragment,{key:Ie},a.createElement(Fq,{ref:Le=>{ie.current[_e]=Le},index:_e,"aria-label":X.otpCell?.replace(/\$\{index\}/g,String(_e+1)).replace(/\$\{total\}/g,String(r)),size:oe,htmlSize:1,className:U(B.input,`${q}-input`),style:D.input,onChange:Ee,value:me,onActiveChange:Se,autoFocus:_e===0&&y,onFocus:Le=>Fe(Le,_e),...qe}),_e<r-1&&a.createElement(kq,{separator:d,index:_e,prefixCls:q,className:U(B.separator),style:D.separator}))})))});var jq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dx.apply(this,arguments)}const Wq=(e,t)=>a.createElement(_t,Dx({},e,{ref:t,icon:jq})),Vq=a.forwardRef(Wq);var Kq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(this,arguments)}const Uq=(e,t)=>a.createElement(_t,Bx({},e,{ref:t,icon:Kq})),qq=a.forwardRef(Uq),Gq=e=>e?a.createElement(qq,null):a.createElement(Vq,null),Xq={click:"onClick",hover:"onMouseOver"},Yq=a.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:s,prefixCls:i,inputPrefixCls:c,suffix:f,className:d,style:p,classNames:m,styles:h,variant:y,...b}=e,{getPrefixCls:v,className:$,style:x,classNames:E,styles:C,iconRender:w}=Xt("inputPassword"),[R]=no("inputPassword",y,e.bordered,"input"),[P]=br("global"),I=a.useContext(Er),T=n??I,L={...e,disabled:T,variant:R},z=ut(x),M=ut(p),[O,_]=qt([E,m],[C,z,h,M],{props:L}),F=Rt(o)&&o.visible!==void 0,[W,q]=a.useState(()=>F?o.visible:!1),G=a.useRef(null);a.useEffect(()=>{F&&q(o.visible)},[F,o]);const j=P6(G),H=()=>{if(T)return;W&&j();const X=!W;F||q(X),Rt(o)&&o.onVisibleChange?.(X)},k=X=>{const J=Xq[r]||"",oe=(s||w||Gq)(W),ae=Rt(o)?o.tabIndex:void 0;return a.createElement("span",{key:"passwordIcon",role:"button",tabIndex:T?-1:ae??0,className:`${X}-icon`,"aria-disabled":T,"aria-pressed":W,"aria-label":W?P.hide:P.show,onMouseDown:pe=>{pe.preventDefault()},onMouseUp:pe=>{pe.preventDefault()},onKeyDown:pe=>{(pe.key==="Enter"||pe.key===" ")&&(pe.preventDefault(),pe.repeat||H())},[J]:H},oe)},B=v("input",c),D=v("input-password",i),K=o&&k(D),Q=U(D,$,d,{[`${D}-${e.size}`]:!!e.size}),Z={...b,type:W?"text":"password",prefixCls:B,suffix:a.createElement(a.Fragment,null,K,f),disabled:T,className:Q,classNames:O,styles:_,variant:R};return a.createElement(nf,{ref:ur(t,G),...Z})}),Qq=e=>{const{componentCls:t,antCls:n,calc:r,max:o}=e,s=`${t}-btn`,[i,c]=Bt(n,"input-search"),f=e.inputFontSizeSM??e.fontSize,d=o(e.controlHeightSM,r(f).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[i("btn-height")]:te(e.controlHeight),width:"100%",[s]:{height:c("btn-height"),"&:focus-visible":{zIndex:5},[`&${n}-btn-icon-only`]:{width:c("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[i("btn-height")]:te(e.controlHeightLG)},[`&${t}-small`]:{[i("btn-height")]:te(e.controlHeightSM)},[`&${t}-small ${s}`]:{minHeight:d,[`&${e.antCls}-btn-icon-only`]:{minWidth:d}}}}},Jq=Zt(["Input","Search"],e=>{const t=Jt(e,pl(e));return Qq(t)},ml),Zq=a.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,rootClassName:s,size:i,style:c,enterButton:f=!1,searchIcon:d,addonAfter:p,loading:m,disabled:h,onSearch:y,onChange:b,onCompositionStart:v,onCompositionEnd:$,variant:x,onPressEnter:E,classNames:C,styles:w,hidden:R,...P}=e,{direction:I,getPrefixCls:T,className:L,style:z,classNames:M,styles:O,searchIcon:_}=Xt("inputSearch"),F=a.useContext(Er),W=h??F,[q,,G]=no("inputSearch",x,e.bordered),j=G?q:void 0,[H]=no("inputSearch",x,e.bordered,"input"),k={...e,enterButton:f,variant:j},B=ut(z),D=ut(c),[K,Q]=qt([M,C],[O,B,w,D],{props:k},{button:{_default:"root"}}),Z=a.useRef(!1),X=T("input-search",n),J=T("input",r),[ne,oe]=Jq(X),{compactSize:ae}=aa(X,I),pe=or(me=>i??ae??me),fe=a.useRef(null),le=me=>{me?.target&&me.type==="click"&&y&&y(me.target.value,me,{source:"clear"}),b?.(me)},ie=me=>{document.activeElement===fe.current?.input&&me.preventDefault()},re=me=>{y&&y(fe.current?.input?.value,me,{source:"input"})},de=me=>{Z.current||m||(E?.(me),re(me))},ge=typeof f=="boolean"?wr(d,_,a.createElement(Nh,null)):null,se=`${X}-btn`,ce=U(se,{[`${se}-${j}`]:j});let xe;const Ee=f||{},Se=Ee.type&&Ee.type.__ANT_BUTTON===!0;if(Se||Ee.type==="button"){const me=Ee.props;xe=hr(Ee,{disabled:W||me.disabled||!Se&&m,onMouseDown:Le=>{me.onMouseDown?.(Le),ie(Le)},onClick:Le=>{Ee?.props?.onClick?.(Le),re(Le)},key:"enterButton",...Se?{className:U(ce,me.className),loading:m||me.loading,size:pe}:{}})}else xe=a.createElement(sn,{classNames:K.button,styles:Q.button,className:ce,color:f?"primary":"default",size:pe,disabled:h,key:"enterButton",onMouseDown:ie,onClick:re,loading:m,icon:ge,variant:j==="borderless"||j==="filled"||j==="underlined"?"text":f?"solid":void 0},f);p&&(xe=[xe,hr(p,{key:"addonAfter"})]);const Fe=U(X,oe,{[`${X}-rtl`]:I==="rtl",[`${X}-${pe}`]:!!pe,[`${X}-with-button`]:!!f},o,s,L,ne,K.root),qe=me=>{Z.current=!0,v?.(me)},Ne=me=>{Z.current=!1,$?.(me)},_e=Hn(P,{data:!0}),Ie=dn({...P,classNames:dn(K,["button","root"]),styles:dn(Q,["button","root"]),prefixCls:J,type:"search",size:pe,variant:H,onPressEnter:de,onCompositionStart:qe,onCompositionEnd:Ne,onChange:le,disabled:h},Object.keys(_e));return a.createElement(zS,{className:Fe,style:Q.root,..._e,hidden:R},a.createElement(nf,{ref:ur(fe,t),...Ie}),xe)}),eG=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","@media (hover: none) and (pointer: coarse)":{resize:"none"},[`&${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"}},[`
|
|
305
|
+
&-allow-clear > ${t},
|
|
306
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
307
|
+
`]:{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}}}}}},tG=Zt(["Input","TextArea"],e=>{const t=Jt(e,pl(e));return eG(t)},ml,{resetFont:!1}),K6=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:s,status:i,allowClear:c,classNames:f,rootClassName:d,className:p,style:m,styles:h,variant:y,showCount:b,onMouseDown:v,onResize:$,...x}=e,{getPrefixCls:E,direction:C,allowClear:w,autoComplete:R,className:P,style:I,classNames:T,styles:L}=Xt("textArea"),z=a.useContext(Er),M=s??z,{status:O,hasFeedback:_,feedbackIcon:F}=a.useContext(Rr),W=Gd(O,i),q=ut(I),G=ut(m),[j,H]=qt([T,f],[L,q,h,G],{props:e}),k=a.useRef(null);a.useImperativeHandle(t,()=>({resizableTextArea:k.current?.resizableTextArea,focus:se=>{oS(k.current?.resizableTextArea?.textArea,se)},blur:()=>k.current?.blur(),nativeElement:k.current?.nativeElement||null}));const B=E("input",n),D=er(B),[K,Q]=t6(B,d);tG(B,D);const{compactSize:Z,compactItemClassnames:X}=aa(B,C),J=or(se=>o??Z??se),[ne,oe]=no("textArea",y,r),[ae]=br("global"),pe=xh({allowClear:c,contextAllowClear:w,componentName:"TextArea",defaultLabel:ae.clear}),[fe,le]=a.useState(!1),[ie,re]=a.useState(!1),de=se=>{le(!0),v?.(se);const ce=()=>{le(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},ge=se=>{if($?.(se),fe&&Tt(getComputedStyle)){const ce=k.current?.nativeElement?.querySelector("textarea");ce&&getComputedStyle(ce).resize==="both"&&re(!0)}};return a.createElement(hU,{autoComplete:R,...x,style:H.root,styles:H,disabled:M,allowClear:pe,className:U(Q,D,p,d,X,P,j.root,{[`${B}-textarea-affix-wrapper-resize-dirty`]:ie}),classNames:{...j,textarea:U({[`${B}-sm`]:J==="small",[`${B}-lg`]:J==="large"},K,j.textarea,fe&&`${B}-mouse-active`),variant:U({[`${B}-${ne}`]:oe},Tc(B,W)),affixWrapper:U(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:C==="rtl",[`${B}-affix-wrapper-sm`]:J==="small",[`${B}-affix-wrapper-lg`]:J==="large",[`${B}-textarea-show-count`]:b||e.count?.show},K)},prefixCls:B,suffix:_&&a.createElement("span",{className:`${B}-textarea-suffix`},F),showCount:b,ref:k,onResize:ge,onMouseDown:de})}),Uo=nf;Uo.Group=Lq;Uo.Search=Zq;Uo.TextArea=K6;Uo.Password=Yq;Uo.OTP=Hq;function nG(e,t,n){return typeof n=="boolean"?n:e.length?!0:cr(t).some(o=>o.type===O4)}const jh=({suffixCls:e,tagName:t,displayName:n})=>r=>a.forwardRef((s,i)=>a.createElement(r,{ref:i,suffixCls:e,tagName:t,...s})),m$=a.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:s,...i}=e,{getPrefixCls:c}=a.useContext(Ot),f=c("layout",n),[d,p]=M4(f),m=r?`${f}-${r}`:f;return a.createElement(s,{className:U(n||m,o,d,p),ref:t,...i})}),rG=a.forwardRef((e,t)=>{const{direction:n}=a.useContext(Ot),[r,o]=a.useState([]),{prefixCls:s,className:i,rootClassName:c,children:f,hasSider:d,tagName:p,style:m,...h}=e,y=dn(h,["suffixCls"]),{getPrefixCls:b,className:v,style:$}=Xt("layout"),x=b("layout",s),E=nG(r,f,d),[C,w]=M4(x),R=U(x,{[`${x}-has-sider`]:E,[`${x}-rtl`]:n==="rtl"},v,i,c,C,w),P=a.useMemo(()=>({siderHook:{addSider:I=>{o(T=>[].concat(jt(T),[I]))},removeSider:I=>{o(T=>{const L=T.indexOf(I);return T.filter((z,M)=>M!==L)})}}}),[]);return a.createElement(P4.Provider,{value:P},a.createElement(p,{ref:t,className:R,style:{...$,...m},...y},f))}),oG=jh({tagName:"div",displayName:"Layout"})(rG),sG=jh({suffixCls:"header",tagName:"header",displayName:"Header"})(m$),iG=jh({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(m$),aG=jh({suffixCls:"content",tagName:"main",displayName:"Content"})(m$),Ms=oG;Ms.Header=sG;Ms.Footer=iG;Ms.Content=aG;Ms.Sider=O4;Ms._InternalSiderContext=zh;var lG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_x.apply(this,arguments)}const cG=(e,t)=>a.createElement(_t,_x({},e,{ref:t,icon:lG})),DP=a.forwardRef(cG);var uG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function Fx(){return Fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fx.apply(this,arguments)}const dG=(e,t)=>a.createElement(_t,Fx({},e,{ref:t,icon:uG})),BP=a.forwardRef(dG);function kx(e){return e.key==="Enter"||e.key===" "||e.key==="Spacebar"||e.charCode===vt.ENTER||e.keyCode===vt.ENTER}const fG={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:"页码"},pG=[10,20,50,100],mG=e=>{const{pageSizeOptions:t=pG,locale:n,changeSize:r,pageSize:o,goButton:s,quickGo:i,rootPrefixCls:c,disabled:f,buildOptionText:d,showSizeChanger:p,sizeChangerRender:m}=e,[h,y]=ee.useState(""),b=ee.useMemo(()=>!h||Number.isNaN(h)?void 0:Number(h),[h]),v=typeof d=="function"?d:T=>`${T} ${n.items_per_page}`,$=T=>{const L=T.target.value;/^\d*$/.test(L)&&y(L)},x=T=>{s||h===""||(y(""),!(T.relatedTarget&&T.relatedTarget.closest(`.${c}-item-link, .${c}-item`))&&i?.(b))},E=T=>{h!==""&&(T.keyCode===vt.ENTER||T.type==="click")&&(y(""),i?.(b))},C=()=>t.some(T=>T.toString()===o.toString())?t:t.concat([o]).sort((T,L)=>{const z=Number.isNaN(Number(T))?0:Number(T),M=Number.isNaN(Number(L))?0:Number(L);return z-M}),w=`${c}-options`;if(!p&&!i)return null;let R=null,P=null,I=null;return p&&m&&(R=m({disabled:f,size:o,onSizeChange:T=>{r?.(Number(T))},"aria-label":n.page_size,className:`${w}-size-changer`,options:C().map(T=>({label:v(T),value:T}))})),i&&(s&&(I=typeof s=="boolean"?ee.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:f,className:`${w}-quick-jumper-button`},n.jump_to_confirm):ee.createElement("span",{onClick:E,onKeyUp:E},s)),P=ee.createElement("div",{className:`${w}-quick-jumper`},n.jump_to,ee.createElement("input",{disabled:f,type:"text",value:h,onChange:$,onKeyUp:E,onBlur:x,"aria-label":n.page}),n.page,I)),ee.createElement("li",{className:w},R,P)};function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hx.apply(this,arguments)}function _P(e){const t=e;return t.tagName==="BUTTON"||t.tagName==="A"&&t.hasAttribute("href")}const Vu=({children:e,disabled:t,onClick:n,onKeyDown:r,tabIndex:o,"aria-label":s,"aria-current":i,"aria-disabled":c,...f})=>{const d=ee.isValidElement(e)?e:null,p=!!(t||c===!0||d?.props.disabled);if(!d||typeof d.type!="string"){const y=d&&d.type!==ee.Fragment&&(c!==void 0||p)?ee.cloneElement(d,{disabled:p}):e;return ee.createElement("li",Hx({},f,{onClickCapture:b=>{p&&(b.preventDefault(),b.stopPropagation())},onKeyDownCapture:b=>{p&&kx(b)&&(b.preventDefault(),b.stopPropagation())},onClick:n,onKeyDown:b=>{!p&&!b.defaultPrevented&&!b.isPropagationStopped()&&!_P(b.target)&&r?.(b)},tabIndex:p||o==null?-1:o,"aria-label":s,"aria-current":i,"aria-disabled":p||void 0}),y)}const{props:m}=d,h=ee.cloneElement(d,{role:m.href==null?"button":void 0,"aria-label":m["aria-label"]??s,"aria-current":i,"aria-disabled":p||void 0,tabIndex:p||o==null?-1:0,...d.type==="button"?{type:m.type??"button",disabled:p}:{},onClick:y=>{if(p){y.preventDefault();return}m.onClick?.(y),y.isPropagationStopped()||n?.(y)},onKeyDown:y=>{if(p){kx(y)&&y.preventDefault();return}m.onKeyDown?.(y),!(y.defaultPrevented||y.isPropagationStopped())&&(_P(y.target)||r?.(y))}});return ee.createElement("li",f,h)},Au=e=>{const{rootPrefixCls:t,page:n,pageLabel:r,active:o,className:s,style:i,showTitle:c,disabled:f,onClick:d,onKeyPress:p,itemRender:m}=e,h=`${t}-item`,y=U(h,`${h}-${n}`,{[`${h}-active`]:o,[`${h}-disabled`]:!n},s),b=()=>{d(n)},v=E=>{p(E,d,n)},$=m(n,"page",ee.createElement("a",{rel:"nofollow"},n)),x=`${r} ${n}`.trim();return $?ee.createElement(Vu,{title:c?String(n):null,className:y,style:i,onClick:b,onKeyDown:v,tabIndex:0,disabled:f||!n,"aria-label":x,"aria-current":o?"page":void 0},$):null};function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Li.apply(this,arguments)}const hG=(e,t,n)=>n;function FP(){}function kP(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Sa(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const gG=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:o,styles:s,current:i,defaultCurrent:c=1,total:f=0,pageSize:d,defaultPageSize:p=10,onChange:m=FP,hideOnSinglePage:h,align:y,showPrevNextJumpers:b=!0,showQuickJumper:v,showLessItems:$,showTitle:x=!0,onShowSizeChange:E=FP,locale:C=fG,style:w,totalBoundaryShowSizeChanger:R=50,disabled:P,simple:I,showTotal:T,showSizeChanger:L=f>R,sizeChangerRender:z,pageSizeOptions:M,itemRender:O=hG,jumpPrevIcon:_,jumpNextIcon:F,prevIcon:W,nextIcon:q}=e,G=ee.useRef(null),[j,H]=Rn(p,d),[k,B]=Rn(c,i),D=Math.max(1,Math.min(k,Sa(void 0,j,f))),[K,Q]=ee.useState(D);a.useEffect(()=>{Q(D)},[D]);const Z=Math.max(1,D-($?3:5)),X=Math.min(Sa(void 0,j,f),D+($?3:5));function J(De,Ze,Be){let we=tt(De)?De:ee.createElement("button",{type:"button",tabIndex:-1,title:Be,className:`${t}-item-link`});return typeof De=="function"&&(we=ee.createElement(De,e)),we}function ne(De){const Ze=De.target.value,Be=Sa(void 0,j,f);let we;return Ze===""?we=Ze:Number.isNaN(Number(Ze))?we=K:Ze>=Be?we=Be:we=Number(Ze),we}function oe(De){return kP(De)&&De!==D&&kP(f)&&f>0}const ae=f>j?v:!1;function pe(De){(De.keyCode===vt.UP||De.keyCode===vt.DOWN)&&De.preventDefault()}function fe(De){const Ze=ne(De);switch(Ze!==K&&Q(Ze),De.keyCode){case vt.ENTER:re(Ze);break;case vt.UP:re(Ze-1);break;case vt.DOWN:re(Ze+1);break}}function le(De){re(ne(De))}function ie(De){const Ze=Math.floor((D-1)*j/De)+1,Be=Sa(De,j,f),we=Be===0?1:Math.min(Ze,Be),ke=D>Be&&Be!==0?Be:D;H(De),Q(ke),E?.(D,De),B(ke),m?.(ke,De,{recommendPage:we})}function re(De){if(oe(De)&&!P){const Ze=Sa(void 0,j,f);let Be=De;return De>Ze?Be=Ze:De<1&&(Be=1),Be!==K&&Q(Be),B(Be),m?.(Be,j),Be}return D}const de=D>1,ge=D<Sa(void 0,j,f);function se(){de&&re(D-1)}function ce(){ge&&re(D+1)}function xe(){re(Z)}function Ee(){re(X)}function Se(De,Ze,...Be){kx(De)&&(De.preventDefault(),Ze(...Be))}function Fe(De){Se(De,se)}function qe(De){Se(De,ce)}function Ne(De){Se(De,xe)}function _e(De){Se(De,Ee)}function Ie(De){const Ze=C.prev_page||"prev page";return O(De,"prev",J(W,Ze,x?Ze:void 0))}function me(De){const Ze=C.next_page||"next page";return O(De,"next",J(q,Ze,x?Ze:void 0))}function Le(De){(De.type==="click"||De.keyCode===vt.ENTER)&&re(K)}let He=null;const Ae=Hn(e,{aria:!0,data:!0}),Oe=T&&ee.createElement("li",{className:`${t}-total-text`},T(f,[f===0?0:(D-1)*j+1,D*j>f?f:D*j]));let st=null;const je=Sa(void 0,j,f);if(h&&f<=j)return null;const Je=[],ze={rootPrefixCls:t,onClick:re,onKeyPress:Se,showTitle:x,disabled:P,itemRender:O,pageLabel:C.page,page:-1,className:o?.item,style:s?.item},Ve=D-1>0?D-1:0,Ke=D+1<je?D+1:je,ot=v&&v.goButton,Ge=typeof I=="object"?I.readOnly:!I;let dt=ot,xt=null;I&&(ot&&(typeof ot=="boolean"?dt=ee.createElement("button",{type:"button",onClick:Le,onKeyUp:Le},C.jump_to_confirm):dt=ee.createElement("span",{onClick:Le,onKeyUp:Le},ot),dt=ee.createElement("li",{title:x?`${C.jump_to}${D}/${je}`:null,className:`${t}-simple-pager`},dt)),xt=ee.createElement("li",{title:x?`${D}/${je}`:null,className:U(`${t}-simple-pager`,o?.item),style:s?.item},Ge?K:ee.createElement("input",{type:"text","aria-label":C.jump_to,value:K,disabled:P,onKeyDown:pe,onKeyUp:fe,onChange:fe,onBlur:le,size:3}),ee.createElement("span",{className:`${t}-slash`},"/"),je));const St=$?1:2;if(je<=3+St*2){je||Je.push(ee.createElement(Au,Li({},ze,{key:"noPager",disabled:!0,page:1,className:`${t}-item-disabled`})));for(let De=1;De<=je;De+=1)Je.push(ee.createElement(Au,Li({},ze,{key:De,page:De,active:D===De})))}else{const De=$?C.prev_3:C.prev_5,Ze=$?C.next_3:C.next_5,Be=O(Z,"jump-prev",J(_,De,x?De:void 0)),we=O(X,"jump-next",J(F,Ze,x?Ze:void 0));b&&(He=tt(Be)?ee.createElement(Vu,{key:"prev",onClick:xe,tabIndex:0,onKeyDown:Ne,className:U(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:tt(_)}),disabled:P,"aria-label":De},Be):null,st=tt(we)?ee.createElement(Vu,{key:"next",onClick:Ee,tabIndex:0,onKeyDown:_e,className:U(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:tt(F)}),disabled:P,"aria-label":Ze},we):null);let ke=Math.max(1,D-St),Re=Math.min(D+St,je);D-1<=St&&(Re=1+St*2),je-D<=St&&(ke=je-St*2);const Xe=!!He&&D-1>=St*2&&D!==3,Ue=!!st&&je-D>=St*2&&D!==je-2;!$&&Xe&&Re!==je&&(ke+=1),!$&&Ue&&ke!==1&&(Re-=1);for(let nt=ke;nt<=Re;nt+=1)Je.push(ee.createElement(Au,Li({},ze,{key:nt,page:nt,active:D===nt})));if(Xe&&(Je[0]=ee.cloneElement(Je[0],{className:U(`${t}-item-after-jump-prev`,Je[0].props.className)}),Je.unshift(He)),Ue){const nt=Je[Je.length-1];Je[Je.length-1]=ee.cloneElement(nt,{className:U(`${t}-item-before-jump-next`,nt.props.className)}),Je.push(st)}ke!==1&&Je.unshift(ee.createElement(Au,Li({},ze,{key:1,page:1}))),Re!==je&&Je.push(ee.createElement(Au,Li({},ze,{key:je,page:je})))}let Lt=Ie(Ve);if(tt(Lt)){const De=!de||!je;Lt=ee.createElement(Vu,{onClick:se,tabIndex:De?null:0,onKeyDown:Fe,className:U(`${t}-prev`,o?.item,{[`${t}-disabled`]:De}),style:s?.item,"aria-disabled":De,disabled:P||De,"aria-label":C.prev_page},Lt)}let gt=me(Ke);if(tt(gt)){let De,Ze;I?(De=!ge,Ze=de?0:null):(De=!ge||!je,Ze=De?null:0),gt=ee.createElement(Vu,{onClick:ce,tabIndex:Ze,onKeyDown:qe,className:U(`${t}-next`,o?.item,{[`${t}-disabled`]:De}),style:s?.item,"aria-disabled":De,disabled:P||De,"aria-label":C.next_page},gt)}const mt=U(t,r,{[`${t}-start`]:y==="start",[`${t}-center`]:y==="center",[`${t}-end`]:y==="end",[`${t}-simple`]:I,[`${t}-disabled`]:P});return ee.createElement("ul",Li({className:mt,style:w,ref:G},Ae),Oe,Lt,I?xt:Je,gt,ee.createElement(mG,{locale:C,rootPrefixCls:t,disabled:P,selectPrefixCls:n,changeSize:ie,pageSize:j,pageSizeOptions:M,quickGo:ae?re:null,goButton:dt,showSizeChanger:L,sizeChangerRender:z}))},yG=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link, a`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link, a`]:{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, a`]:{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}}}}},bG=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...s$(e),width:e.paginationMiniQuickJumperInputWidth}}}}},vG=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...o$(e)}}}}},xG=e=>{const{componentCls:t,antCls:n}=e,[,r]=Bt(n,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${te(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${te(e.inputOutlineOffset)} 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},CG=e=>{const{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:"transparent","&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...ef(e)}}},[`&${t}-borderless`]:{[n]:{background:"transparent",border:"none","&:focus":{outline:"none",boxShadow:"none"},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"}}}}},SG=e=>{const{componentCls:t,iconCls:n,sizeLG:r,antCls:o}=e,[,s]=Bt(o,"pagination");return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",inset:0,display:"inline-flex",justifyContent:"center",alignItems:"center",margin:"auto",color:e.colorTextDisabled,textAlign:"center",opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
308
|
+
${t}-prev,
|
|
309
|
+
${t}-jump-prev,
|
|
310
|
+
${t}-jump-next
|
|
311
|
+
`]:{marginInlineEnd:s("item-spacing-actual")},[`
|
|
312
|
+
${t}-prev,
|
|
313
|
+
${t}-next,
|
|
314
|
+
${t}-jump-prev,
|
|
315
|
+
${t}-jump-next
|
|
316
|
+
`]:{display:"inline-block",minWidth:s("item-size-actual"),height:s("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:s("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle",[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:"auto"},"&-quick-jumper":{display:"inline-block",height:s("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:s("item-size-actual"),verticalAlign:"baseline",input:{...Lh(e),...r$(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...ef(e)},width:e.quickJumperInputWidth,height:s("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:s("item-spacing-actual"),marginInlineEnd:s("item-spacing-actual")}}}}},$G=e=>{const{componentCls:t,antCls:n}=e,[,r]=Bt(n,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:te(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},wG=e=>{const{componentCls:t,antCls:n}=e,[r,o]=Bt(n,"pagination");return{[t]:{[r("item-size-actual")]:te(e.itemSize),[r("item-spacing-actual")]:te(e.marginXS),"&-small":{[r("item-size-actual")]:te(e.itemSizeSM),[r("item-spacing-actual")]:te(e.marginXXS)},"&-large":{[r("item-size-actual")]:te(e.itemSizeLG),[r("item-spacing-actual")]:te(e.marginSM)},...an(e),display:"flex",alignItems:"center",userSelect:"none","&-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:o("item-size-actual"),marginInlineEnd:o("item-spacing-actual"),lineHeight:te(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle",userSelect:"text"},...$G(e),...SG(e),...xG(e),...CG(e),...bG(e),...vG(e),...yG(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"}}},EG=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...to(e),"> a, > button":{borderRadius:"inherit",...to(e)}},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible, &:has(> :focus-visible)":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...eo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link, ${t}-item-link:focus-visible`]:eo(e)}}}},U6=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...ml(e)}),q6=e=>Jt(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"},pl(e)),RG=Zt("Pagination",e=>{const t=q6(e);return[wG(t),EG(t)]},U6),IG=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},PG=al(["Pagination","bordered"],e=>{const t=q6(e);return IG(t)},U6);function HP(e){return a.useMemo(()=>typeof e=="boolean"?[e,{}]:Rt(e)?[!0,e]:[void 0,void 0],[e])}const G6=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:s,style:i,size:c,locale:f,responsive:d,showSizeChanger:p,components:m,selectComponentClass:h,pageSizeOptions:y,styles:b,classNames:v,...$}=e,{xs:x}=Yd(d),[,E]=Dr(),{getPrefixCls:C,direction:w,showSizeChanger:R,className:P,style:I,classNames:T,styles:L,totalBoundaryShowSizeChanger:z}=Xt("pagination"),M=C("pagination",n),[O,_]=RG(M),F=or(c),W=F==="small"||!!(x&&!F&&d),[q,G]=no("input"),j={...e,size:F},H=ut(I),k=ut(i),[B,D]=qt([T,v],[L,H,b,k],{props:j}),[K]=br("Pagination",lM),Q={...K,...f},[Z,X]=HP(p),[J,ne]=HP(R),oe=Z??J,ae=X??ne,pe=h||dl,fe=a.useMemo(()=>y?y.map(Number):void 0,[y]),le=se=>{const{disabled:ce,size:xe,onSizeChange:Ee,"aria-label":Se,className:Fe,options:qe}=se,Ne=m?.sizeChanger;if(Ne)return a.createElement(Ne,{value:xe,onChange:Ee,disabled:!!ce,className:Fe});const{className:_e,onChange:Ie}=ae||{},me=qe.find(Le=>String(Le.value)===String(xe))?.value;return a.createElement(pe,{disabled:ce,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Le=>Le.parentNode,"aria-label":Se,options:qe,...ae,value:me,onChange:(Le,He)=>{Ee?.(Le),Ie?.(Le,He)},size:F,className:U(`${M}-options-size-changer-select`,Fe,_e)})},ie=a.useMemo(()=>{const se=a.createElement("span",{className:`${M}-item-ellipsis`},a.createElement(Jd,null)),ce=a.createElement("button",{className:`${M}-item-link`,type:"button",tabIndex:-1},w==="rtl"?a.createElement(bd,null):a.createElement(vd,null)),xe=a.createElement("button",{className:`${M}-item-link`,type:"button",tabIndex:-1},w==="rtl"?a.createElement(vd,null):a.createElement(bd,null)),Ee=a.createElement("a",{className:`${M}-item-link`},a.createElement("div",{className:`${M}-item-container`},w==="rtl"?a.createElement(BP,{className:`${M}-item-link-icon`}):a.createElement(DP,{className:`${M}-item-link-icon`}),se)),Se=a.createElement("a",{className:`${M}-item-link`},a.createElement("div",{className:`${M}-item-container`},w==="rtl"?a.createElement(DP,{className:`${M}-item-link-icon`}):a.createElement(BP,{className:`${M}-item-link-icon`}),se));return{prevIcon:ce,nextIcon:xe,jumpPrevIcon:Ee,jumpNextIcon:Se}},[w,M]),re=C("select",r),de=U({[`${M}-${t}`]:!!t,[`${M}-${F}`]:F,[`${M}-${q}`]:G&&q!=="outlined",[`${M}-mini`]:W,[`${M}-rtl`]:w==="rtl",[`${M}-bordered`]:E.wireframe},P,o,s,B.root,O,_),ge={...D.root};return a.createElement(a.Fragment,null,E.wireframe&&a.createElement(PG,{prefixCls:M}),a.createElement(gG,{...ie,...$,styles:D,classNames:B,style:ge,prefixCls:M,selectPrefixCls:re,className:de,locale:Q,pageSizeOptions:fe,showSizeChanger:oe,totalBoundaryShowSizeChanger:$.totalBoundaryShowSizeChanger??z,sizeChangerRender:le}))},Xm=100,X6=Xm/5,Y6=Xm/2-X6/2,Hb=Y6*2*Math.PI,jP=50,WP=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return a.createElement("circle",{className:U(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Y6,cx:jP,cy:jP,strokeWidth:X6,style:n})},NG=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[s,i]=a.useState(!1);Qt(()=>{e!==0&&i(!0)},[e]);const c=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${Hb/4}`,strokeDasharray:`${Hb*c/100} ${Hb*(100-c)/100}`};return a.createElement("span",{className:U(r,`${n}-progress`,{[o]:c<=0})},a.createElement("svg",{viewBox:`0 0 ${Xm} ${Xm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},a.createElement(WP,{dotClassName:n,hasCircleCls:!0}),a.createElement(WP,{dotClassName:n,style:f})))};function TG(e){const{prefixCls:t,percent:n=0,className:r,style:o}=e,s=`${t}-dot`,i=`${s}-holder`,c=`${i}-hidden`;return a.createElement(a.Fragment,null,a.createElement("span",{className:U(i,r,n>0&&c),style:o},a.createElement("span",{className:U(s,`${t}-dot-spin`)},[1,2,3,4].map(f=>a.createElement("i",{className:`${t}-dot-item`,key:f})))),a.createElement(NG,{prefixCls:t,percent:n}))}function MG(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:s}=e,i=`${t}-dot`;return n&&a.isValidElement(n)?hr(n,c=>({className:U(c.className,i,o),style:{...c.style,...s},percent:r})):a.createElement(TG,{prefixCls:t,percent:r,className:o,style:s})}const OG=new fn("antSpinMove",{to:{opacity:1}}),zG=new fn("antRotate",{to:{transform:"rotate(405deg)"}}),AG=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:{...an(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, > ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[`> ${n}`]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[`> ${n}`]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},LG=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,s]=Bt(n,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${s("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:s("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(i=>`${i} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:s("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:zG,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:s("dot-item-size"),height:s("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:OG,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"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(i=>`${i} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},DG=e=>{const{componentCls:t}=e,[n]=Bt(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},BG=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},_G=Zt("Spin",e=>{const t=Jt(e,{spinDotDefault:e.colorTextDescription});return[AG(t),LG(t),DG(t)]},BG),FG=200,VP=[[30,.05],[70,.03],[96,.01]];function kG(e,t){const[n,r]=a.useState(0),o=a.useRef(null),s=t==="auto";return a.useEffect(()=>(s&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const c=100-i;for(let f=0;f<VP.length;f+=1){const[d,p]=VP[f];if(i<=d)return i+c*p}return i})},FG)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[s,e]),s?n:t}let Q6;function HG(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const J6=a.forwardRef((e,t)=>{const{prefixCls:n,spinning:r=!0,delay:o=0,className:s,rootClassName:i,size:c,tip:f,description:d,wrapperClassName:p,style:m,children:h,fullscreen:y=!1,indicator:b,percent:v,classNames:$,styles:x,...E}=e,{getPrefixCls:C,direction:w,indicator:R,className:P,style:I,classNames:T,styles:L}=Xt("spin"),z=C("spin",n),[M,O]=_G(z),[_,F]=a.useState(()=>r&&!HG(r,o)),W=kG(_,v);a.useEffect(()=>{if(r){const J=JV(o,()=>{F(!0)});return J(),()=>{J?.cancel?.()}}F(!1)},[o,r]);const q=or(J=>c??J),G=d??f,j={...e,size:q,spinning:_,tip:G,description:G,fullscreen:y,children:h,percent:W},H=ut(I),[k,B]=qt([T,$],[L,H,x],{props:j}),D=b??R??Q6,K=typeof h<"u",Q=K||y,Z=a.createElement(a.Fragment,null,a.createElement(MG,{className:U(k.indicator),style:B.indicator,prefixCls:z,indicator:D,percent:W}),G&&a.createElement("div",{className:U(`${z}-description`,k.tip,k.description),style:{...B.tip,...B.description}},G)),X=a.useRef(null);return a.useImperativeHandle(t,()=>({nativeElement:X.current})),a.createElement("div",{ref:X,className:U(z,{[`${z}-sm`]:q==="small",[`${z}-lg`]:q==="large",[`${z}-spinning`]:_,[`${z}-rtl`]:w==="rtl",[`${z}-fullscreen`]:y},i,k.root,y&&k.mask,Q?p:[`${z}-section`,k.section],P,s,M,O),style:{...B.root,...Q?{}:B.section,...y?B.mask:{},...m},"aria-live":"polite","aria-busy":_,...E},_&&(Q?a.createElement("div",{className:U(`${z}-section`,k.section),style:B.section},Z):Z),K&&a.createElement("div",{className:U(`${z}-container`,k.container),style:B.container},h))});J6.setDefaultIndicator=e=>{Q6=e};const Z6=(e,t={})=>!un(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],jG=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:s,title:i,children:c,footer:f,style:d,classNames:p,styles:m,...h}=e,{getPrefixCls:y}=a.useContext(Ot),{className:b,style:v,classNames:$,styles:x}=Xt("modal"),E=y(),C=t||y("modal"),w=er(E),[R,P]=RO(C,w),I=ut(v),T=ut(d),[L,z]=qt([$,p],[x,I,m,T],{props:e}),M=`${C}-confirm`;let O={};return s?O={closable:o??!1,title:"",footer:"",children:a.createElement(PO,{...e,prefixCls:C,confirmPrefixCls:M,rootPrefixCls:E,content:c})}:O={closable:o??!0,title:i,footer:f!==null&&a.createElement(SO,{...e}),children:c},a.createElement(gO,{prefixCls:C,className:U(R,`${C}-pure-panel`,s&&M,s&&`${M}-${s}`,n,b,P,w,L.root),style:z.root,...h,closeIcon:CO(C,r),closable:o,classNames:L,styles:z,...O})},WG=kO(jG);function ez(e){return Ud(OO(e))}const Qo=IO;Qo.useModal=BO;Qo.info=function(t){return Ud(zO(t))};Qo.success=function(t){return Ud(AO(t))};Qo.error=function(t){return Ud(LO(t))};Qo.warning=ez;Qo.warn=ez;Qo.confirm=function(t){return Ud(DO(t))};Qo.destroyAll=function(){for(;Oa.length;){const t=Oa.pop();t&&t()}};Qo.config=Ej;Qo._InternalPanelDoNotUseOrYouWillBeFired=WG;const VG=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:s,colorWarning:i,marginXXS:c,marginXS:f,fontSize:d,fontWeightStrong:p,colorTextHeading:m}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:d},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon`]:{color:i},[`> ${t}-message-icon ${n}`]:{fontSize:d,lineHeight:1,marginInlineEnd:f},[`${t}-title`]:{fontWeight:p,color:m,"&:only-child":{fontWeight:400}},[`${t}-description`]:{marginTop:c,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:f}}}}},KG=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},tz=Zt("Popconfirm",VG,KG,{resetStyle:!1}),nz=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:s,cancelText:i,okText:c,okType:f="primary",icon:d=a.createElement(cl,null),showCancel:p=!0,close:m,onConfirm:h,onCancel:y,onPopupClick:b,classNames:v,styles:$}=e,{getPrefixCls:x}=a.useContext(Ot),[E]=br("Popconfirm",xo.Popconfirm),C=Mc(o),w=Mc(s),R=P=>{y?.(P),r?.onClick?.(P)};return a.createElement("div",{className:`${t}-inner-content`,onClick:b},a.createElement("div",{className:`${t}-message`},d&&a.createElement("span",{className:U(`${t}-message-icon`,v?.icon),style:$?.icon},d),a.createElement("div",{className:`${t}-message-text`},tt(C)&&a.createElement("div",{className:U(`${t}-title`,v?.title),style:$?.title},C),tt(w)&&a.createElement("div",{className:U(`${t}-description`,v?.content),style:$?.content},w))),a.createElement("div",{className:`${t}-buttons`},p&&a.createElement(sn,{size:"small",...r,onClick:R},i||E?.cancelText),a.createElement(_S,{buttonProps:{size:"small",...AS(f),...n},actionFn:h,close:m,prefixCls:x("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||E?.okText)))},UG=e=>{const{prefixCls:t,placement:n,className:r,style:o,...s}=e,{getPrefixCls:i}=a.useContext(Ot),c=i("popconfirm",t);return tz(c),a.createElement(m4,{placement:n,className:U(c,r),style:o,content:a.createElement(nz,{prefixCls:c,...s})})},qG=a.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:s="primary",icon:i=a.createElement(cl,null),children:c,overlayClassName:f,onOpenChange:d,onConfirm:p,onCancel:m,overlayStyle:h,styles:y,arrow:b,classNames:v,disabled:$=!1,mouseEnterDelay:x,mouseLeaveDelay:E,...C}=e,{getPrefixCls:w,className:R,style:P,classNames:I,styles:T,arrow:L,trigger:z,mouseEnterDelay:M,mouseLeaveDelay:O}=Xt("popconfirm"),[_,F]=Rn(e.defaultOpen??!1,e.open),W=YS(b,L),q=o||z||"click",G=x??M??.1,j=E??O??.1,H=pe=>{F(pe),d?.(pe)},k=()=>{H(!1)},B=pe=>p?.(pe),D=pe=>{H(!1),m?.(pe)},K=pe=>{$||H(pe)},Q=w("popconfirm",n),Z={...e,placement:r,trigger:q,okType:s,overlayStyle:h,styles:y,classNames:v,mouseEnterDelay:G,mouseLeaveDelay:j},X=ut(P),J=ut(h),[ne,oe]=qt([I,v],[T,X,y,J],{props:Z}),ae=U(Q,R,f,ne.root);return tz(Q),a.createElement(h4,{arrow:W,...dn(C,["title"]),trigger:q,placement:r,onOpenChange:K,open:_,ref:t,mouseEnterDelay:G,mouseLeaveDelay:j,classNames:{root:ae,container:ne.container,arrow:ne.arrow},styles:{root:oe.root,container:oe.container,arrow:oe.arrow},content:a.createElement(nz,{okType:s,icon:i,...e,onPopupClick:void 0,prefixCls:Q,close:k,onConfirm:B,onCancel:D,classNames:ne,styles:oe}),"data-popover-inject":!0},c)}),si=qG;si._InternalPanelDoNotUseOrYouWillBeFired=UG;var GG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jx.apply(this,arguments)}const XG=(e,t)=>a.createElement(_t,jx({},e,{ref:t,icon:GG})),YG=a.forwardRef(XG),QG=new Intl.NumberFormat("en-US",{notation:"standard",useGrouping:!1,maximumSignificantDigits:21}),JG=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:s="",prefixCls:i,className:c,style:f}=e;let d;if(Tt(n))d=n(t);else{const p=String(t),m=Un(t)&&p.includes("e")?QG.format(t):p,h=m.match(/^(-?)(\d*)(\.(\d+))?$/);if(!h||m==="-")d=m;else{const y=h[1];let b=h[2]||"0",v=h[4]||"";b=b.replace(/\B(?=(\d{3})+(?!\d))/g,s),Un(r)&&(v=v.padEnd(r,"0").slice(0,r>0?r:0)),v&&(v=`${o}${v}`),d=[a.createElement("span",{key:"int",className:`${i}-content-value-int`},y,b),v&&a.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},v)]}}return a.createElement("span",{className:c,style:f},d)},ZG=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:s,colorTextHeading:i,contentFontSize:c,fontFamily:f}=e;return{[t]:{...an(e),[`${t}-header`]:{paddingBottom:n,[`${t}-title`]:{color:o,fontSize:s}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:i,fontSize:c,fontFamily:f,[`${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}}}}},eX=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},tX=Zt("Statistic",e=>{const t=Jt(e,{});return ZG(t)},eX),of=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:s,valueStyle:i,value:c=0,title:f,valueRender:d,prefix:p,suffix:m,loading:h=!1,formatter:y,precision:b,decimalSeparator:v=".",groupSeparator:$=",",onMouseEnter:x,onMouseLeave:E,styles:C,classNames:w,...R}=e,{getPrefixCls:P,direction:I,className:T,style:L,classNames:z,styles:M}=Xt("statistic"),O=P("statistic",n),[_,F]=tX(O),W={...e,decimalSeparator:v,groupSeparator:$,loading:h,value:c},q=ut(L),G=ut(s),[j,H]=qt([z,w],[M,q,C,G],{props:W}),k=U(O,{[`${O}-rtl`]:I==="rtl"},T,r,o,j.root,_,F),B=U(`${O}-header`,j.header),D=U(`${O}-title`,j.title),K=U(`${O}-content`,j.content),Q=U(`${O}-content-value`,j.value),Z=U(`${O}-content-prefix`,j.prefix),X=U(`${O}-content-suffix`,j.suffix),J=a.createElement(JG,{decimalSeparator:v,groupSeparator:$,prefixCls:O,formatter:y,precision:b,value:c,className:Q,style:H.value}),ne=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:ne.current}));const oe=Hn(R,{aria:!0,data:!0});return a.createElement("div",{...oe,className:k,style:H.root,ref:ne,onMouseEnter:x,onMouseLeave:E},tt(f)&&a.createElement("div",{className:B,style:H.header},a.createElement("div",{className:D,style:H.title},f)),a.createElement(ro,{paragraph:!1,loading:h,className:`${O}-skeleton`,active:!0},a.createElement("div",{className:K,style:{...i,...H.content}},tt(p)&&a.createElement("span",{className:Z,style:H.prefix},p),Tt(d)?d(J):J,tt(m)&&a.createElement("span",{className:X,style:H.suffix},m))))}),nX=[["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 rX(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(f=>f.slice(1,-1)),s=t.replace(r,"[]"),i=nX.reduce((f,[d,p])=>{if(f.includes(d)){const m=Math.floor(n/p);return n-=m*p,f.replace(new RegExp(`${d}+`,"g"),h=>{const y=h.length;return m.toString().padStart(y,"0")})}return f},s);let c=0;return i.replace(r,()=>{const f=o[c];return c+=1,f})}function oX(e,t,n){const{format:r=""}=t,o=new Date(e).getTime(),s=Date.now(),i=Math.max(n?o-s:s-o,0);return rX(i,r)}const sX=1e3/60;function iX(e){return new Date(e).getTime()}const rz=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:o,type:s,...i}=e,c=s==="countdown",[f,d]=a.useState(null),p=Ct(()=>{const y=Date.now(),b=iX(t);d({});const v=c?b-y:y-b;return r?.(v),c&&b<y?(o?.(),!1):!0});a.useEffect(()=>{let y;const b=()=>{p()||window.clearInterval(y)},v=()=>{y=window.setInterval(b,sX)},$=()=>{window.clearInterval(y)};return v(),()=>{$()}},[t,c]),a.useEffect(()=>{d({})},[]);const m=(y,b)=>f?oX(y,{...b,format:n},c):"-",h=y=>hr(y,{title:void 0});return a.createElement(of,{...i,value:t,valueRender:h,formatter:m})},aX=e=>a.createElement(rz,{...e,type:"countdown"}),lX=a.memo(aX);of.Timer=rz;of.Countdown=lX;function cX(e){const{prefixCls:t,className:n,style:r,status:o}=e,s=`${t}-rail`;return a.createElement("div",{className:U(s,`${s}-${o}`,n),style:r})}const oz=a.createContext({}),h$=a.createContext(null);function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}const sz=a.createContext({}),KP=a.forwardRef((e,t)=>{const{className:n,style:r,children:o,...s}=e,{prefixCls:i,classNames:c,styles:f}=a.useContext(h$),{className:d,style:p}=a.useContext(sz),m=`${i}-item`;return a.createElement("div",Wx({},Hn(s,!1),{ref:t,className:U(`${m}-icon`,c.itemIcon,d,n),style:{...f.itemIcon,...p,...r}}),o)});function Vx(){return Vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vx.apply(this,arguments)}function jb(e){return e!=null}function uX(e){const{prefixCls:t,classNames:n,styles:r,data:o,last:s,nextStatus:i,active:c,index:f,itemRender:d,iconRender:p,itemWrapperRender:m,onClick:h}=e,y=`${t}-item`,{railFollowPrevStatus:b}=a.useContext(oz),{ItemComponent:v}=a.useContext(h$),{onClick:$,title:x,subTitle:E,content:C,description:w,disabled:R,icon:P,status:I,className:T,style:L,classNames:z={},styles:M={},...O}=o,_=C??w,F={item:{...o,content:_},index:f,active:c},W=!!(h||$)&&!R,q={};W&&(q.role="button",q.tabIndex=0,q.onClick=Q=>{$?.(Q),h(f)},q.onKeyDown=Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),Q.currentTarget.click())});const G=I||"wait",j=jb(x),H=jb(E),k=U(y,`${y}-${G}`,{[`${y}-custom`]:P,[`${y}-active`]:c,[`${y}-disabled`]:R===!0,[`${y}-empty-header`]:!j&&!H},T,n.item,z.root);let B=a.createElement(KP,null);p&&(B=p(B,{...F,components:{Icon:KP}}));const D=a.createElement("div",{className:U(`${y}-wrapper`,n.itemWrapper,z.wrapper),style:{...r.itemWrapper,...M.wrapper}},a.createElement(sz.Provider,{value:{className:z.icon,style:M.icon}},B),a.createElement("div",{className:U(`${y}-section`,n.itemSection,z.section),style:{...r.itemSection,...M.section}},a.createElement("div",{className:U(`${y}-header`,n.itemHeader,z.header),style:{...r.itemHeader,...M.header}},j&&a.createElement("div",{className:U(`${y}-title`,n.itemTitle,z.title),style:{...r.itemTitle,...M.title}},x),H&&a.createElement("div",{title:typeof E=="string"?E:void 0,className:U(`${y}-subtitle`,n.itemSubtitle,z.subtitle),style:{...r.itemSubtitle,...M.subtitle}},E),!s&&a.createElement(cX,{prefixCls:y,className:U(n.itemRail,z.rail),style:{...r.itemRail,...M.rail},status:b?I:i})),jb(_)&&a.createElement("div",{className:U(`${y}-content`,n.itemContent,z.content),style:{...r.itemContent,...M.content}},_)));let K=a.createElement(v,Vx({},O,q,{className:k,style:{...r.item,...M.root,...L}}),m?m(D):D);return d&&(K=d(K,F)||null),K}function Kx(){return Kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kx.apply(this,arguments)}const UP={};function dX(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:o=UP,styles:s=UP,rootClassName:i,orientation:c,titlePlacement:f,components:d,status:p="process",current:m=0,initial:h=0,onChange:y,items:b,iconRender:v,itemRender:$,itemWrapperRender:x,...E}=e,C=c==="vertical",w=C?"vertical":"horizontal",R=!C&&f==="vertical"?"vertical":"horizontal",P=U(t,`${t}-${w}`,`${t}-title-${R}`,i,r,o.root),I=ee.useMemo(()=>(b||[]).filter(Boolean),[b]),T=ee.useMemo(()=>I.map(({status:F},W)=>{const q=h+W;return F||(q===m?p:q<m?"finish":"wait")}),[I,p,m,h]),L=F=>{y&&m!==F&&y(F)},{root:z="div",item:M="div"}=d||{},O=ee.useMemo(()=>({prefixCls:t,classNames:o,styles:s,ItemComponent:M}),[t,o,s,M]),_=(F,W)=>{const q=h+W,G=T[W],j=T[W+1],H={...F,status:G};return ee.createElement(uX,{key:q,prefixCls:t,classNames:o,styles:s,data:H,nextStatus:j,active:q===m,index:q,last:I.length-1===W,iconRender:v,itemRender:$,itemWrapperRender:x,onClick:y&&L})};return ee.createElement(z,Kx({className:P,style:{...n,...s?.root}},E),ee.createElement(h$.Provider,{value:O},I.map(_)))}const iz=a.createContext(null),fX=e=>{const{prefixCls:t}=e;return a.createElement("svg",{"aria-hidden":!0,className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},a.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},pX=e=>{const{prefixCls:t,rootPrefixCls:n,children:r,percent:o}=e,s=`${t}-item-progress-icon`,i=`${s}-circle`,[,c]=Bt(n,"cmp-steps"),f=`calc(${c("progress-radius")} * 2 * ${Math.PI*o/100}) 9999`;return a.createElement(a.Fragment,null,a.createElement("svg",{className:`${s}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o},a.createElement("circle",{className:U(i,`${i}-rail`)}),a.createElement("circle",{className:U(i,`${i}-ptg`),strokeDasharray:f,transform:"rotate(-90 50 50)"})),r)},mX=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[o,s]=Bt(n,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[o("horizontal-rail-margin")]:`calc(${s("icon-size-max")} / 2 - ${s("rail-size")} / 2 + ${s("item-wrapper-padding-top")})`,position:"static",marginTop:s("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:s("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},hX=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r,iconSize:o,lineWidth:s,lineType:i,antCls:c}=e,f=`${t}-item`,[d,p]=Bt(c,"cmp-steps");return{[t]:{[d("icon-size")]:o,[d("icon-border-width")]:s,[`${f}-icon`]:{width:p("icon-size"),height:p("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:p("icon-size"),textAlign:"center",borderRadius:p("icon-size"),border:`${p("icon-border-width")} ${i} transparent`,transition:["background-color","border","color","inset","transform"].map(m=>`${m} ${r}`).join(", "),zIndex:1},[`${f}-custom ${f}-icon`]:{background:"none",border:0,fontSize:n}}}},gX=e=>{const{componentCls:t,inlineDotSize:n,paddingXS:r,lineWidth:o,antCls:s,calc:i}=e,c=i(r).add(o).equal(),f=`${t}-item`,[d,p]=Bt(s,"cmp-steps");return{[`${t}-inline`]:{[d("items-offset")]:"0",[d("item-wrapper-padding-top")]:c,display:"inline-flex","&:before":{content:'""',flex:p("items-offset")},[f]:{[d("title-vertical-row-gap")]:r,[d("icon-size")]:n,[d("icon-size-active")]:n,[d("title-font-size")]:e.fontSizeSM,[d("title-line-height")]:e.lineHeightSM,[d("item-title-color")]:e.colorTextSecondary,[d("subtitle-font-size")]:e.fontSizeSM,[d("subtitle-line-height")]:e.lineHeightSM,[d("item-subtitle-color")]:e.colorTextQuaternary,[d("rail-size")]:e.lineWidth,[d("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${f}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:400,whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function yX(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}const g$=(e,t,n)=>{const{calc:r,componentCls:o,descriptionMaxWidth:s,antCls:i}=e,c=`${o}-item`,[,f]=Bt(i,"cmp-steps");return{[`@container style(${yX(s)})`]:[{[`${c}-icon`]:{marginInlineStart:r(s).sub(f("icon-size")).div(2).equal()},[`${c}-rail`]:{width:"auto",insetInlineStart:r(s).add(f("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(s).sub(f("icon-size")).div(2).sub(t).mul(-1).equal()}},n]}},bX=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:o,margin:s,paddingSM:i,marginXXS:c,antCls:f,calc:d}=e,p=`${t}-item`,[m,h]=Bt(f,"cmp-steps");return{[t]:{[m("icon-size-max")]:`max(${h("icon-size")}, ${h("icon-size-active",h("icon-size"))})`,[`${p}-icon`]:{marginBlockStart:`calc((${h("heading-height")} - ${h("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[m("title-horizontal-item-margin")]:s,[m("title-horizontal-rail-margin")]:s,[m("title-horizontal-title-height")]:o,[m("heading-height")]:`max(${h("icon-size")}, ${h("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${p}:not(:first-child)`]:{marginInlineStart:h("title-horizontal-item-margin")},[`${p}:last-child`]:{flex:"0 1 auto"},[`${p}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${p}-wrapper`]:{columnGap:e.margin},[`${p}-empty-header`]:{[`${p}-header`]:{minHeight:"auto"},[`${p}-content`]:{marginTop:d(h("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${p}-section`]:{flex:1,minWidth:0},[`${p}-header`]:{minHeight:h("heading-height")},[`${p}-title`]:{flex:"0 1 auto"},[`${p}-content`]:{maxWidth:n},[`${p}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${p}-rail`]:{[m("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:h("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[m("title-vertical-row-gap")]:i,[m("title-horizontal-rail-gap")]:c,[m("heading-height")]:h("icon-size-max"),[`> ${p}`]:{flex:"1 1 0%",[`${p}-wrapper`]:{flexDirection:"column",rowGap:h("title-vertical-row-gap"),alignItems:"center"},[`${p}-section`]:{alignSelf:"stretch"},[`${p}-header`]:{flexDirection:"column",alignItems:"center"},[`${p}-title, ${p}-subtitle, ${p}-content`]:{textAlign:"center",maxWidth:"100%"},[`${p}-subtitle`]:{margin:0},[`${p}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${h("icon-size")} - ${h("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${h("icon-size")} / 2 + ${h("title-horizontal-rail-gap")})`}},...g$(e,r,{[`${p}:last-child`]:{flex:"none"},[`${p}-icon`]:{alignSelf:"flex-start"},[`${p}-section`]:{width:n}})}}},vX=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-max-count`]:{[`${n}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:{color:e.colorTextDescription}}}}},xX=e=>{const{componentCls:t,fontSizeIcon:n,navContentMaxWidth:r,navArrowColor:o,colorPrimary:s,motionDurationSlow:i,antCls:c,calc:f}=e,d=`${t}-item`,p=s,[m,h]=Bt(c,"cmp-steps");return{[`${t}${t}-navigation`]:{[d.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${d}-wrapper`]:{paddingBlock:e.paddingSM},[`${d}-section`]:{maxWidth:r},[`${d}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:p,transition:`all ${i}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${o}`,content:'""'},[`&${d}-active`]:{[m("item-content-active-color")]:h("item-content-color"),[m("item-icon-active-bg-color")]:h("item-icon-bg-color"),[m("item-icon-active-border-color")]:h("item-icon-border-color"),[m("item-icon-active-text-color")]:h("item-icon-text-color")}},[`&${t}-horizontal`]:{[d]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${d}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:f(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[d.repeat(4)]:{[`${d}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${d}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:f(n).div(3).mul(2).equal(),height:f(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},CX=e=>{const{componentCls:t,lineWidthBold:n,borderRadius:r,borderRadiusSM:o,motionDurationMid:s,paddingXS:i,lineType:c,paddingSM:f,antCls:d,calc:p}=e,m=`${t}-item`,[h,y]=Bt(d,"cmp-steps"),b=`${te(n)} ${c} ${y("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${m}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[m]:{flex:1,margin:0}}},{"&":{[h("panel-padding")]:f,[h("item-border-radius")]:r,[m]:{[h("panel-bg-color")]:y("item-icon-bg-color"),[h("panel-border-color")]:y("item-icon-border-color"),[h("panel-active-bg-color")]:y("item-icon-active-bg-color"),[h("panel-active-border-color")]:y("item-icon-active-border-color"),[h("panel-title-height")]:`calc(${y("title-font-size")} * ${y("title-line-height")})`,[h("item-base-height")]:p(y("panel-padding")).mul(2).add(y("icon-size")).add(y("panel-title-height")).equal(),[h("item-base-width")]:`calc(${y("item-base-height")} * 0.7071)`,transition:`background-color ${s}`}},[`${m}-icon`]:{display:"none"},[`${m}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:p(n).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:p(n).mul(2).add("100%").equal(),width:y("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:y("panel-bg-color"),stroke:y("panel-border-color"),strokeWidth:n,vectorEffect:"non-scaling-stroke",transition:`fill ${s}`}},[`${m}:last-child ${t}-panel-arrow`]:{display:"none"},[m]:{padding:y("panel-padding"),background:y("panel-bg-color"),position:"relative",borderBlock:b,"&:not(:first-child)":{paddingInlineStart:`calc(${y("panel-padding")} + ${y("item-base-width")})`},"&:first-child":{borderInlineStart:b,borderStartStartRadius:y("item-border-radius"),borderEndStartRadius:y("item-border-radius")},"&:last-child":{borderInlineEnd:b,borderStartEndRadius:y("item-border-radius"),borderEndEndRadius:y("item-border-radius")},"&-active":{background:y("panel-active-bg-color"),borderColor:y("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:y("panel-active-bg-color"),stroke:y("panel-active-border-color")}},[`${m}-title, ${m}-subtitle, ${m}-content`]:{color:y("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[h("panel-padding")]:i,[h("item-border-radius")]:o}},{[`&${t}-filled`]:{[m]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(n)} 0`,`calc(100% + ${y("item-base-width")}) 0`,`calc(100% + ${y("item-base-width")}) 100%`,`${te(n)} 100%`,`calc(${y("item-base-width")} + ${te(n)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:p(n).div(2).mul(-1).equal(),height:p(n).add("100%").equal()}}}]}},SX=e=>{const{calc:t,antCls:n,componentCls:r,lineWidthBold:o,motionDurationSlow:s}=e,i=`${r}-item`,[c,f]=Bt(n,"cmp-steps"),d=t(o).add(o).equal();return{[`${r}${r}-with-progress`]:{[c("item-wrapper-padding-top")]:d,[`${i}${i}-process`]:{[`${i}-icon`]:{position:"relative"}},[`${i}-progress-icon`]:{"&-svg":{[c("svg-size")]:t(d).mul(2).add(f("icon-size")).equal(),[c("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${f("svg-size")}, 1px)))`,fontSize:f("svg-size"),lineHeight:f("icon-size-ptg-unitless"),position:"absolute",inset:t(d).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:f("icon-size-ptg-unitless"),strokeWidth:t(f("icon-size-ptg-unitless")).mul(o).equal(),[c("progress-radius")]:t(f("svg-size")).sub(o).mul(f("icon-size-ptg-unitless")).div(2).equal(),r:f("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${s} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},$X=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:o,marginXXS:s,lineWidthBold:i,fontSizeSM:c,antCls:f}=e,d=`${t}-item`,[p,m]=Bt(f,"cmp-steps");return{[`${t}${t}-dot`]:{[p("icon-size-active")]:o,[p("icon-size")]:r,[p("dot-icon-size")]:r,[p("dot-icon-border-width")]:i,[p("rail-size")]:i,[p("icon-border-width")]:i,[`${d}-custom ${d}-icon`]:{fontSize:c},[`${d}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${d}-active ${d}-icon`]:{[p("icon-size")]:m("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:g$(e,s)}}}},wX=e=>{const{componentCls:t,lineWidthBold:n,antCls:r}=e,o=`${t}-item`,[,s]=Bt(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${o}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[o]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${s("item-base-width")}) 0px`,`calc(100% - ${te(n)}) 0px`,`calc(100% - ${s("item-base-width")} - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,`calc(0px - ${s("item-base-width")}) 100%`].join(",")})`}}}}}}},EX=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:o,marginXS:s,fontHeight:i,marginSM:c,paddingXS:f,antCls:d}=e,[p]=Bt(d,"cmp-steps");return{[`${t}${t}-small`]:{[p("icon-size")]:n,[p("title-horizontal-item-margin")]:c,[p("title-vertical-row-gap")]:f,[p("title-font-size")]:r,[p("title-line-height")]:o,[p("title-horizontal-rail-margin")]:s,[p("title-horizontal-title-height")]:i,[`&${t}-horizontal${t}-title-vertical`]:g$(e,s)}}},Ap="wait",Lp="process",Dp="finish",Bp="error",RX=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:o,colorTextLabel:s,colorError:i,colorErrorHover:c,colorErrorBgFilledHover:f,colorFillTertiary:d,colorErrorBg:p,colorPrimaryBgHover:m,colorPrimaryBg:h,colorText:y,colorTextDescription:b,colorBgContainer:v,colorPrimaryHover:$,lineType:x,antCls:E}=e,C=`${t}-item`,[w,R]=Bt(E,"cmp-steps");return{[t]:[{[C]:{[w("item-solid-line-color")]:"#000",[w("item-title-color")]:"#000",[w("item-content-color")]:"#000",[w("item-subtitle-color")]:R("item-content-color"),[w("item-icon-custom-color")]:"#000",[w("item-icon-bg-color")]:"#000",[w("item-icon-border-color")]:"#000",[w("item-icon-text-color")]:"#fff",[w("item-icon-dot-color")]:"#000",[w("item-icon-dot-bg-color")]:R("item-icon-dot-color"),[w("item-icon-dot-border-color")]:R("item-icon-dot-color"),[w("item-text-hover-color")]:"#000",[w("item-icon-bg-hover-color")]:R("item-icon-bg-color"),[w("item-icon-border-hover-color")]:R("item-icon-border-color"),[w("item-icon-text-hover-color")]:R("item-icon-text-color"),[w("item-content-active-color")]:R("item-content-color"),[w("item-icon-active-bg-color")]:R("item-icon-bg-color"),[w("item-icon-active-border-color")]:R("item-icon-border-color"),[w("item-icon-active-text-color")]:R("item-icon-text-color"),[w("item-process-rail-line-style")]:x},[`${C}-rail`]:{borderColor:R("item-solid-line-color")},[`${C}-custom ${C}-icon`]:{color:R("item-icon-custom-color")},[`${C}-title`]:{color:R("item-title-color")},[`${C}-subtitle`]:{color:R("item-subtitle-color")},[`${C}-content`]:{color:R("item-content-color")},[`${C}-active ${C}-icon`]:{},[`${C}-active ${C}-content`]:{color:R("item-content-active-color")},[`${C}[role='button']:not(${C}-active):hover`]:{[`${C}-title, ${C}-content`]:{color:R("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${C}:not(${C}-custom)`]:{[`${C}-icon`]:{background:R("item-icon-bg-color"),borderColor:R("item-icon-border-color"),color:R("item-icon-text-color")},[`&[role='button']:not(${C}-active):hover`]:{[`${C}-icon`]:{background:R("item-icon-bg-hover-color"),borderColor:R("item-icon-border-hover-color"),color:R("item-icon-text-hover-color")}},[`&${C}-active`]:{[`${C}-icon`]:{background:R("item-icon-active-bg-color"),borderColor:R("item-icon-active-border-color"),color:R("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${C}-icon`]:{background:R("item-icon-dot-bg-color"),borderColor:R("item-icon-dot-border-color"),color:R("item-icon-dot-color"),[`&${C}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${C}-${Ap}`]:{[w("item-icon-custom-color")]:n,[w("item-title-color")]:b,[w("item-content-color")]:b,[w("item-content-active-color")]:y,[w("item-text-hover-color")]:$},[`${C}-rail-${Ap}`]:{[w("item-solid-line-color")]:n},[`${C}-${Lp}`]:{[w("item-icon-custom-color")]:o,[w("item-title-color")]:y,[w("item-content-color")]:b,[w("item-content-active-color")]:y,[w("item-text-hover-color")]:$},[`${C}-rail-${Lp}`]:{[w("item-solid-line-color")]:o,[w("rail-line-style")]:R("item-process-rail-line-style")},[`${C}-${Dp}`]:{[w("item-icon-custom-color")]:o,[w("item-title-color")]:y,[w("item-content-color")]:b,[w("item-content-active-color")]:y,[w("item-text-hover-color")]:$},[`${C}-rail-${Dp}`]:{[w("item-solid-line-color")]:o},[`${C}-${Bp}`]:{[w("item-icon-custom-color")]:i,[w("item-title-color")]:i,[w("item-content-color")]:i,[w("item-content-active-color")]:i,[w("item-text-hover-color")]:c},[`${C}-rail-${Bp}`]:{[w("item-solid-line-color")]:i}},{[`&${t}-filled`]:{[C]:{[w("item-icon-dot-border-color")]:"transparent"},[`${C}-${Ap}`]:{[w("item-icon-bg-color")]:d,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:s,[w("item-icon-dot-bg-color")]:n,[w("item-icon-bg-hover-color")]:m,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:o,[w("item-icon-active-bg-color")]:o,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r},[`${C}-${Lp}, ${C}-${Dp}`]:{[w("item-icon-bg-color")]:h,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:o,[w("item-icon-dot-bg-color")]:o,[w("item-icon-bg-hover-color")]:m,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:o,[w("item-icon-active-bg-color")]:o,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r},[`${C}-${Bp}`]:{[w("item-icon-bg-color")]:p,[w("item-icon-border-color")]:"transparent",[w("item-icon-text-color")]:i,[w("item-icon-dot-bg-color")]:i,[w("item-icon-bg-hover-color")]:f,[w("item-icon-border-hover-color")]:"transparent",[w("item-icon-text-hover-color")]:i,[w("item-icon-active-bg-color")]:i,[w("item-icon-active-border-color")]:"transparent",[w("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[C]:{[w("item-icon-dot-bg-color")]:"transparent"},[`${C}-${Ap}`]:{[w("item-icon-bg-color")]:v,[w("item-icon-border-color")]:n,[w("item-icon-text-color")]:n,[w("item-icon-dot-color")]:n,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:$,[w("item-icon-text-hover-color")]:$,[w("item-icon-active-bg-color")]:d},[`${C}-${Lp}, ${C}-${Dp}`]:{[w("item-icon-bg-color")]:v,[w("item-icon-border-color")]:o,[w("item-icon-text-color")]:o,[w("item-icon-dot-color")]:o,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:$,[w("item-icon-text-hover-color")]:$,[w("item-icon-active-bg-color")]:h},[`${C}-${Bp}`]:{[w("item-icon-bg-color")]:v,[w("item-icon-border-color")]:i,[w("item-icon-text-color")]:i,[w("item-icon-dot-color")]:i,[w("item-icon-bg-hover-color")]:"transparent",[w("item-icon-border-hover-color")]:c,[w("item-icon-text-hover-color")]:c,[w("item-icon-active-bg-color")]:p}}}]}},IX=e=>{const{componentCls:t,marginXXS:n,paddingSM:r,controlHeight:o,antCls:s,calc:i}=e,c=`${t}-item`,[f,d]=Bt(s,"cmp-steps");return{[`${t}-vertical`]:{[f("vertical-rail-margin")]:i(n).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${c}`]:{minHeight:i(o).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${c}-icon`]:{marginInlineStart:`calc((${d("icon-size-max")} - ${d("icon-size")}) / 2)`},[`${c}-rail`]:{[f("rail-offset")]:i(d("heading-height")).sub(d("icon-size")).div(2).equal(),borderInlineStartWidth:d("rail-size"),position:"absolute",top:i(d("icon-size")).add(d("item-wrapper-padding-top")).add(d("rail-offset")).add(d("vertical-rail-margin")).equal(),insetInlineStart:i(d("icon-size-max")).div(2).equal(),bottom:i(d("vertical-rail-margin")).sub(d("rail-offset")).equal(),marginInlineStart:`calc(${d("rail-size")} / -2)`}}}}},PX=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[o,s]=Bt(n,"cmp-steps");return{[t]:{[o("title-font-size")]:e.fontSizeLG,[o("title-line-height")]:e.lineHeightLG,[o("subtitle-font-size")]:e.fontSize,[o("subtitle-line-height")]:e.lineHeight,[o("item-wrapper-padding-top")]:"0px",[o("rail-size")]:e.lineWidth,[o("rail-line-style")]:e.lineType,...an(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:s("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:s("title-font-size"),lineHeight:s("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:400,fontSize:s("subtitle-font-size"),lineHeight:s("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:s("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:zr},[`${r}[role='button']:focus-visible`]:eo(e),[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},NX=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),TX=Zt("Steps",e=>{const t=Jt(e,{inlineDotSize:6});return[PX(t),hX(t),IX(t),mX(t),bX(t),EX(t),$X(t),RX(t),xX(t),CX(t),gX(t),vX(t),SX(t),wX(t)]},NX);function MX(e,t){return{item:{...e,key:e.key??t},originIndex:t}}function OX(e,t,n,r,o){const s=e[n].key??n,i=e[r].key??r,f=e.slice(n+1,r).some(d=>d.status==="error")?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${s}-${i}`,title:"",icon:a.createElement(Jd),status:f,disabled:!0,className:`${o}-item-ellipsis`},originIndex:-1}}function zX(e,t,n){const r=Math.min(Math.max(t,0),e-1),o=Math.min(n,e),s=new Set([0,r,e-1]);for(let i=1;s.size<o&&i<e;i+=1){const c=[r-i,r+i,i,e-1-i];for(const f of c){if(s.size>=o)break;f>=0&&f<e&&s.add(f)}}return Array.from(s).sort((i,c)=>i-c).flatMap((i,c,f)=>c>0&&i-f[c-1]>1?[null,i]:[i])}function AX(e,t,n,r,o){const s=r!==void 0&&r>=3&&e.length>r,i=t-n,c=a.useMemo(()=>{if(!s)return e.map((p,m)=>({item:p,originIndex:m}));const d=zX(e.length,i,r);return d.map((p,m)=>p===null?OX(e,i,d[m-1],d[m+1],o):MX(e[p],p))},[s,i,e,r,o]),f=c.findIndex(d=>d.originIndex===i);return{canApplyMaxCount:s,displaySteps:c,mappedDisplayCurrent:f>=0?f:i,displayItems:c.map(d=>d.item)}}const LX={itemIcon:kd},DX=e=>{const{size:t,className:n,rootClassName:r,style:o,variant:s,type:i,classNames:c,styles:f,direction:d,orientation:p,responsive:m=!0,progressDot:h,labelPlacement:y,titlePlacement:b,ellipsis:v,maxCount:$,offset:x=0,items:E,percent:C,current:w=0,initial:R=0,onChange:P,iconRender:I,...T}=e,L=a.useContext(iz),z=Xt("steps"),{getPrefixCls:M,direction:O,className:_,style:F}=z,[W]=no("steps",s,{variants:["filled","outlined"],defaultVariant:"filled"});let q,G,j={};L?j={root:L.rootComponent,item:L.itemComponent}:{classNames:q,styles:G}=z;const H=M(),k=M("steps",e.prefixCls),B=`${k}-item-icon`,[D,K]=TX(k),[Q]=Bt(H,"cmp-steps"),Z=or(t),X=a.useMemo(()=>(E||[]).filter(Boolean),[E]),{xs:J}=Yd(m),ne=a.useMemo(()=>i&&i!=="default"?i:h?"dot":i,[h,i]),oe=ne==="inline",ae=ne==="dot"||ne==="inline",pe=a.useMemo(()=>ne==="dot"&&Tt(h)?h:void 0,[ne,h]),fe=a.useMemo(()=>{const He=p||d;return ne==="panel"?"horizontal":m&&J||He==="vertical"?"vertical":"horizontal"},[p,d,ne,m,J]),le=a.useMemo(()=>ae||fe==="vertical"?fe==="vertical"?"horizontal":"vertical":i==="navigation"?"horizontal":b||y||"horizontal",[ae,y,fe,b,i]),ie=oe?void 0:C,{canApplyMaxCount:re,displaySteps:de,mappedDisplayCurrent:ge,displayItems:se}=AX(X,w,R,$,k),ce={...e,variant:W,size:Z,type:ne,orientation:fe,titlePlacement:le,current:w,initial:R,percent:ie,responsive:m,offset:x,ellipsis:v,maxCount:$},xe=ut(F),Ee=ut(o),[Se,Fe]=qt([LX,q,c],[G,xe,f,Ee],{props:ce}),qe=(He,Ae)=>{const{item:Oe,index:st,active:je,components:{Icon:Je}}=Ae,ze=de[st]?.originIndex,Ve=ze!==void 0&&ze>=0?R+ze:st,{status:Ke,icon:ot}=Oe;let Ge=null;if(ae||ot)Ge=ot;else switch(Ke){case"finish":Ge=a.createElement(KS,{className:`${B}-finish`});break;case"error":Ge=a.createElement(ii,{className:`${B}-error`});break;default:{let xt=a.createElement("span",{className:`${B}-number`},Ve+1);Ke==="process"&&ie!==void 0&&(xt=a.createElement(pX,{prefixCls:k,rootPrefixCls:H,percent:ie},xt)),Ge=xt}}let dt=a.createElement(Je,null,Ge);return I?dt=I(dt,{index:Ve,active:je,item:Oe,components:{Icon:Je}}):Tt(pe)&&(dt=pe(dt,{index:Ve,...Oe})),dt},Ne=(He,Ae)=>{let Oe=He;return oe&&Ae.item.content&&(Oe=a.createElement(rr,{destroyOnHidden:!0,title:Ae.item.content},He)),a.createElement(Hd,{component:"Steps",disabled:Ae.item.disabled||!P,colorSource:W==="filled"?"color":null},Oe)},_e=ne==="panel"?He=>a.createElement(a.Fragment,null,He,a.createElement(fX,{prefixCls:k})):void 0,Ie={[Q("items-offset")]:`${x}`},me=U(_,`${k}-${W}`,{[`${k}-${ne}`]:ne!=="dot"?ne:!1,[`${k}-rtl`]:O==="rtl",[`${k}-dot`]:ae,[`${k}-ellipsis`]:v,[`${k}-max-count`]:re,[`${k}-with-progress`]:ie!==void 0,[`${k}-small`]:Z==="small"},n,r,D,K),Le=He=>{const Ae=de[He];P&&Ae&&Ae.originIndex>=0&&P(R+Ae.originIndex)};return a.createElement(dX,{...T,prefixCls:k,className:me,style:Ie,classNames:Se,styles:Fe,orientation:fe,titlePlacement:le,components:j,initial:0,current:ge,items:se,onChange:P?Le:void 0,iconRender:qe,itemRender:Ne,itemWrapperRender:_e})},Qs={},sf="rc-table-internal-hook";function y$(e){const t=a.createContext(void 0);return{Context:t,Provider:({value:r,children:o})=>{const s=a.useRef(r);s.current=r;const[i]=a.useState(()=>({getValue:()=>s.current,listeners:new Set}));return Qt(()=>{Qi.unstable_batchedUpdates(()=>{i.listeners.forEach(c=>{c(r)})})},[r]),a.createElement(t.Provider,{value:i},o)},defaultValue:e}}function yr(e,t){const n=Ct(typeof t=="function"?t:f=>{if(t===void 0)return f;if(!Array.isArray(t))return f[t];const d={};return t.forEach(p=>{d[p]=f[p]}),d}),r=a.useContext(e?.Context),{listeners:o,getValue:s}=r||{},i=a.useRef();i.current=n(r?s():e?.defaultValue);const[,c]=a.useState({});return Qt(()=>{if(!r)return;function f(d){const p=n(d);ps(i.current,p,!0)||c({})}return o.add(f),()=>{o.delete(f)}},[r]),i.current}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}function BX(){const e=a.createContext(null);function t(){return a.useContext(e)}function n(o,s){const i=ri(o),c=(f,d)=>{const p=i?{ref:d}:{},m=a.useRef(0),h=a.useRef(f);return t()!==null?a.createElement(o,rd({},f,p)):((!s||s(h.current,f))&&(m.current+=1),h.current=f,a.createElement(e.Provider,{value:m.current},a.createElement(o,rd({},f,p))))};return i?a.forwardRef(c):c}function r(o,s){const i=ri(o),c=(f,d)=>{const p=i?{ref:d}:{};return t(),a.createElement(o,rd({},f,p))};return a.memo(i?a.forwardRef(c):c,s)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}const{makeImmutable:az,responseImmutable:Wc,useImmutableMark:_X}=BX(),Lr=y$(),lz=a.createContext({renderWithProps:!1}),FX="RC_TABLE_KEY";function kX(e){return e==null?[]:Array.isArray(e)?e:[e]}function Wh(e){const t=[],n={};return e.forEach(r=>{const{key:o,dataIndex:s}=r||{};let i=o||kX(s).join("-")||FX;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function Ux(e){return e!=null}function HX(e){return typeof e=="number"&&!Number.isNaN(e)}function jX(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!a.isValidElement(e)}function WX(e,t,n,r,o,s){const i=a.useContext(lz),c=_X();return ol(()=>{if(Ux(r))return[r];const d=t==null||t===""?[]:Array.isArray(t)?t:[t],p=Mr(e,d);let m=p,h;if(o){const y=o(p,e,n);jX(y)?(m=y.children,h=y.props,i.renderWithProps=!0):m=y}return[m,h]},[c,e,r,t,o,n],(d,p)=>{if(s){const[,m]=d,[,h]=p;return s(h,m)}return i.renderWithProps?!0:!ps(d,p,!0)})}function VX(e,t,n,r){const o=e+t-1;return e<=r&&o>=n}function KX(e,t){return yr(Lr,n=>[VX(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function qx(){return qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qx.apply(this,arguments)}const UX=({ellipsis:e,rowType:t,children:n})=>{let r;const o=e===!0?{showTitle:!0}:e;return o&&(o.showTitle||t==="header")&&(typeof n=="string"||typeof n=="number"?r=n.toString():a.isValidElement(n)&&typeof n.props?.children=="string"&&(r=n.props?.children)),r},qX=e=>{const{component:t,children:n,ellipsis:r,scope:o,prefixCls:s,className:i,style:c,align:f,record:d,render:p,dataIndex:m,renderIndex:h,shouldCellUpdate:y,index:b,rowType:v,colSpan:$,rowSpan:x,fixStart:E,fixEnd:C,fixedStartShadow:w,fixedEndShadow:R,offsetFixedStartShadow:P,offsetFixedEndShadow:I,zIndex:T,zIndexReverse:L,appendNode:z,additionalProps:M={},originRowSpan:O,isSticky:_}=e,F=`${s}-cell`,{allColumnsFixedLeft:W,rowHoverable:q}=yr(Lr,["allColumnsFixedLeft","rowHoverable"]),[G,j]=WX(d,m,h,n,p,y),H={},k=typeof E=="number"&&!W,B=typeof C=="number"&&!W,[D,K]=yr(Lr,({scrollInfo:de})=>{if(!k&&!B)return[!1,!1];const[ge,se]=de,ce=(k&&w&&ge)-P>=1,xe=(B&&R&&se-ge)-I>1;return[ce,xe]});k&&(H.insetInlineStart=E,H["--z-offset"]=T,H["--z-offset-reverse"]=L),B&&(H.insetInlineEnd=C,H["--z-offset"]=T,H["--z-offset-reverse"]=L);const Q=j?.colSpan??M.colSpan??$??1,Z=j?.rowSpan??M.rowSpan??x??1,X=j?.rowSpan??O??Z,[J,ne]=KX(b,X),oe=Ct(de=>{d&&ne(b,b+X-1),M?.onMouseEnter?.(de)}),ae=Ct(de=>{d&&ne(-1,-1),M?.onMouseLeave?.(de)});if(Q===0||Z===0)return null;const pe=M.title??UX({rowType:v,ellipsis:r,children:G}),fe=U(F,i,{[`${F}-fix`]:k||B,[`${F}-fix-start`]:k,[`${F}-fix-end`]:B,[`${F}-fix-start-shadow`]:w,[`${F}-fix-start-shadow-show`]:w&&D,[`${F}-fix-end-shadow`]:R,[`${F}-fix-end-shadow-show`]:R&&K,[`${F}-ellipsis`]:r,[`${F}-with-append`]:z,[`${F}-fix-sticky`]:(k||B)&&_,[`${F}-row-hover`]:!j&&J},M.className,j?.className),le={};f&&(le.textAlign=f);const ie={...j?.style,...H,...le,...M.style,...c};let re=G;return typeof re=="object"&&!Array.isArray(re)&&!a.isValidElement(re)&&(re=null),r&&(w||R)&&(re=a.createElement("span",{className:`${F}-content`},re)),a.createElement(t,qx({},j,M,{className:fe,style:ie,title:pe,scope:o,onMouseEnter:q?oe:void 0,onMouseLeave:q?ae:void 0,colSpan:Q!==1?Q:null,rowSpan:Z!==1?Z:null}),z,re)},Vc=a.memo(qX);function _p(e){return e.fixed==="start"}function Fp(e){return e.fixed==="end"}function b$(e,t,n,r){const o=n[e]||{},s=n[t]||{};let i=null,c=null;_p(o)&&_p(s)?i=r.start[e]:Fp(s)&&Fp(o)&&(c=r.end[t]);let f=!1,d=!1,p=0,m=0;i!==null&&(f=!n[t+1]||!_p(n[t+1]),p=n.length*2-e,m=n.length+e),c!==null&&(d=!n[e-1]||!Fp(n[e-1]),p=t,m=n.length-t);let h=0,y=0;if(f)for(let b=0;b<e;b+=1)_p(n[b])||(h+=r.widths[b]||0);if(d)for(let b=n.length-1;b>t;b-=1)Fp(n[b])||(y+=r.widths[b]||0);return{fixStart:i,fixEnd:c,fixedStartShadow:f,fixedEndShadow:d,offsetFixedStartShadow:h,offsetFixedEndShadow:y,isSticky:r.isSticky,zIndex:p,zIndexReverse:m}}const cz=a.createContext({});function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gx.apply(this,arguments)}const GX=e=>{const{className:t,index:n,children:r,colSpan:o=1,rowSpan:s,align:i}=e,{prefixCls:c}=yr(Lr,["prefixCls"]),{scrollColumnIndex:f,stickyOffsets:d,flattenColumns:p}=a.useContext(cz),h=n+o-1+1===f?o+1:o,y=a.useMemo(()=>b$(n,n+h-1,p,d),[n,h,p,d]);return a.createElement(Vc,Gx({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:i,colSpan:h,rowSpan:s,render:()=>r},y))},XX=e=>{const{children:t,...n}=e;return a.createElement("tr",n,t)},Vh=e=>{const{children:t}=e;return t};Vh.Row=XX;Vh.Cell=GX;const YX=e=>{const{children:t,stickyOffsets:n,flattenColumns:r}=e,o=yr(Lr,"prefixCls"),s=r.length-1,i=r[s],c=a.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i?.scrollbar?s:null}),[i,r,s,n]);return a.createElement(cz.Provider,{value:c},a.createElement("tfoot",{className:`${o}-summary`},t))},kp=Wc(YX),uz=Vh;function QX(e){return null}function JX(e){return null}function dz(e,t,n,r,o,s,i){const c=s(t,i);e.push({record:t,indent:n,index:i,rowKey:c});const f=o?.has(c);if(t&&Array.isArray(t[r])&&f)for(let d=0;d<t[r].length;d+=1)dz(e,t[r][d],n+1,r,o,s,d)}function fz(e,t,n,r){return a.useMemo(()=>{if(n?.size){const s=[];for(let i=0;i<e?.length;i+=1){const c=e[i];dz(s,c,0,t,n,r,i)}return s}return e?.map((s,i)=>({record:s,indent:0,index:i,rowKey:r(s,i)}))},[e,t,n,r])}function pz(e,t,n,r){const o=yr(Lr,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","forceRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:s,expandableType:i,expandedKeys:c,childrenColumnName:f,onTriggerExpand:d,rowExpandable:p,onRow:m,expandRowByClick:h,rowClassName:y}=o,b=i==="nest",v=i==="row"&&(!p||p(e)),$=v||b,x=c&&c.has(t),E=f&&e&&e[f],C=Ct(d),w=m?.(e,n),R=w?.onClick,P=(L,...z)=>{h&&$&&d(e,L),R?.(L,...z)};let I;typeof y=="string"?I=y:typeof y=="function"&&(I=y(e,n,r));const T=Wh(s);return{...o,columnsKey:T,nestExpandable:b,expanded:x,hasNestChildren:E,record:e,onTriggerExpand:C,rowSupportExpand:v,expandable:$,rowProps:{...w,className:U(I,w?.className),onClick:P}}}const mz=e=>{const{prefixCls:t,children:n,component:r,cellComponent:o,className:s,expanded:i,colSpan:c,isEmpty:f,stickyOffset:d=0}=e,{scrollbarSize:p,fixHeader:m,fixColumn:h,componentWidth:y,horizonScroll:b}=yr(Lr,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let v=n;return(f?b&&y:h)&&(v=a.createElement("div",{style:{width:y-d-(m&&!f?p:0),position:"sticky",left:d,overflow:"hidden"},className:`${t}-expanded-row-fixed`},v)),a.createElement(r,{className:s,style:{display:i?null:"none"}},a.createElement(Vc,{component:o,prefixCls:t,colSpan:c},v))};function hz({prefixCls:e,type:t,onClick:n,expanded:r,expandable:o}){const s=`${e}-row-expand-icon`;if(!o)return a.createElement("span",{className:U(s,`${e}-row-spaced`)});const i=U(s,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r});return t==="all"?a.createElement("button",{type:"button","aria-expanded":r,"aria-label":r?"Collapse all rows":"Expand all rows",className:i,onClick:n}):a.createElement("span",{className:i,onClick:n})}function ZX({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:o}){const s=i=>{n(t,i),i.stopPropagation()};return a.createElement(hz,{type:"row",prefixCls:e,record:t,expanded:r,expandable:!!o,onClick:s})}function eY(e,t){const{prefixCls:n,record:r,onExpand:o,expanded:s,expandable:i}=t,c=f=>{o(r,f),f.stopPropagation()};return a.createElement(e,{type:"row",prefixCls:n,record:r,expanded:s,expandable:!!i,onClick:c})}function tY(e,t,n){const r=[];function o(s){(s||[]).forEach((i,c)=>{r.push(t(i,c)),o(i[n])})}return o(e),r}function gz(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ym.apply(this,arguments)}function yz(e,t,n,r,o,s=[],i=0){const{record:c,prefixCls:f,columnsKey:d,fixedInfoList:p,expandIconColumnIndex:m,nestExpandable:h,indentSize:y,expandIcon:b,expanded:v,hasNestChildren:$,onTriggerExpand:x,expandable:E,expandedKeys:C}=e,w=d[n],R=p[n];let P;n===(m||0)&&h&&(P=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:`${y*r}px`},className:`${f}-row-indent indent-level-${r}`}),b({prefixCls:f,expanded:v,expandable:$,record:c,onExpand:x})));const I={...t.onCell?.(c,o)};let T;if(i){const{rowSpan:L=1}=I;if(E&&L&&n<i){T=L;let z=L;for(let M=o;M<o+L;M+=1){const O=s[M];C.has(O)&&(z+=1)}I.rowSpan=z}}return{key:w,fixedInfo:R,appendCellNode:P,additionalCellProps:I,originRowSpan:T}}const nY=e=>{const{className:t,style:n,classNames:r,styles:o,record:s,index:i,renderIndex:c,rowKey:f,rowKeys:d,indent:p=0,rowComponent:m,cellComponent:h,scopeCellComponent:y,expandedRowInfo:b}=e,v=pz(s,f,i,p),{prefixCls:$,flattenColumns:x,expandedRowClassName:E,expandedRowRender:C,forceRender:w,rowProps:R,expanded:P,rowSupportExpand:I}=v,T=a.useRef(!1);T.current||(T.current=P);const L=gz(E,s,i,p),z=a.createElement(m,Ym({},R,{"data-row-key":f,className:U(t,`${$}-row`,`${$}-row-level-${p}`,R?.className,r.row,{[L]:p>=1}),style:{...n,...R?.style,...o.row}}),x.map((O,_)=>{const{render:F,dataIndex:W,className:q}=O,{key:G,fixedInfo:j,appendCellNode:H,additionalCellProps:k,originRowSpan:B}=yz(v,O,_,p,i,d,b?.offset);return a.createElement(Vc,Ym({className:U(q,r.cell),style:o.cell,ellipsis:O.ellipsis,align:O.align,scope:O.rowScope,component:O.rowScope?y:h,prefixCls:$,key:G,record:s,index:i,renderIndex:c,dataIndex:W,render:F,shouldCellUpdate:O.shouldCellUpdate},j,{appendNode:H,additionalProps:k,originRowSpan:B}))}));let M;if(I&&(w||T.current||P)){const O=C(s,i,p+1,P);M=a.createElement(mz,{expanded:P,className:U(`${$}-expanded-row`,`${$}-expanded-row-level-${p+1}`,L),prefixCls:$,component:m,cellComponent:h,colSpan:b?b.colSpan:x.length,isEmpty:!1,stickyOffset:b?.sticky},O)}return a.createElement(a.Fragment,null,z,M)},rY=Wc(nY),oY=e=>{const{columnKey:t,onColumnResize:n,title:r}=e,o=a.useRef(null);return Qt(()=>{o.current&&n(t,o.current.offsetWidth)},[]),a.createElement(bo,{data:t},a.createElement("td",{ref:o,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},r||" ")))},sY=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{const o=a.useRef(null),{measureRowRender:s}=yr(Lr,["measureRowRender"]),i=a.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:o},a.createElement(bo.Collection,{onBatchResize:c=>{Od(o.current)&&c.forEach(({data:f,size:d})=>{n(f,d.offsetWidth)})}},t.map(c=>{const d=r.find(m=>m.key===c)?.title,p=a.isValidElement(d)?a.cloneElement(d,{ref:null}):d;return a.createElement(oY,{key:c,columnKey:c,onColumnResize:n,title:p})})));return typeof s=="function"?s(i):i},iY=e=>{const{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:o,onColumnResize:s,flattenColumns:i,getRowKey:c,expandedKeys:f,childrenColumnName:d,emptyNode:p,classNames:m,styles:h,expandedRowOffset:y=0,colWidths:b}=yr(Lr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:v={}}=m||{},{body:$={}}=h||{},x=fz(t,d,f,c),E=a.useMemo(()=>x.map(M=>M.rowKey),[x]),C=a.useRef({renderWithProps:!1}),w=a.useMemo(()=>{const M=i.length-y;let O=0;for(let _=0;_<y;_+=1)O+=b[_]||0;return{offset:y,colSpan:M,sticky:O}},[i.length,y,b]),R=o(["body","wrapper"],"tbody"),P=o(["body","row"],"tr"),I=o(["body","cell"],"td"),T=o(["body","cell"],"th");let L;t.length?L=x.map((M,O)=>{const{record:_,indent:F,index:W,rowKey:q}=M;return a.createElement(rY,{classNames:v,styles:$,key:q,rowKey:q,rowKeys:E,record:_,index:O,renderIndex:W,rowComponent:P,cellComponent:I,scopeCellComponent:T,indent:F,expandedRowInfo:w})}):L=a.createElement(mz,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:P,cellComponent:I,colSpan:i.length,isEmpty:!0},p);const z=Wh(i);return a.createElement(lz.Provider,{value:C.current},a.createElement(R,{style:$.wrapper,className:U(`${r}-tbody`,v.wrapper)},n&&a.createElement(sY,{prefixCls:r,columnsKey:z,onColumnResize:s,columns:i}),L))},aY=Wc(iY),od="RC_TABLE_INTERNAL_COL_DEFINE";function lY(e){const{expandable:t,...n}=e;let r;return"expandable"in e?r={...n,...t}:r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function Xx(){return Xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xx.apply(this,arguments)}const bz=e=>{const{colWidths:t,columns:n,columCount:r}=e,{tableLayout:o}=yr(Lr,["tableLayout"]),s=[],i=r||n.length;let c=!1;for(let f=i-1;f>=0;f-=1){const d=t[f],p=n&&n[f];let m,h;if(p&&(m=p[od],o==="auto"&&(h=p.minWidth)),d||h||m||c){const{columnType:y,...b}=m||{};s.unshift(a.createElement("col",Xx({key:f,style:{width:d,minWidth:h}},b))),c=!0}}return s.length>0?a.createElement("colgroup",null,s):null};function cY(e,t){return a.useMemo(()=>{const n=[];for(let r=0;r<t;r+=1){const o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}const uY=a.forwardRef((e,t)=>{const{className:n,style:r,noData:o,columns:s,flattenColumns:i,colWidths:c,colGroup:f,columCount:d,stickyOffsets:p,direction:m,fixHeader:h,stickyTopOffset:y,stickyBottomOffset:b,stickyClassName:v,scrollX:$,tableLayout:x="fixed",onScroll:E,maxContentScroll:C,children:w,...R}=e,{prefixCls:P,scrollbarSize:I,isSticky:T,getComponent:L}=yr(Lr,["prefixCls","scrollbarSize","isSticky","getComponent"]),z=L(["header","table"],"table"),M=T&&!h?0:I,O=a.useRef(null),_=a.useCallback(B=>{Mv(t,B),Mv(O,B)},[]);a.useEffect(()=>{function B(K){const{currentTarget:Q,deltaX:Z}=K;if(Z){const{scrollLeft:X,scrollWidth:J,clientWidth:ne}=Q,oe=J-ne;let ae=X+Z;m==="rtl"?(ae=Math.max(-oe,ae),ae=Math.min(0,ae)):(ae=Math.min(oe,ae),ae=Math.max(0,ae)),E({currentTarget:Q,scrollLeft:ae}),K.preventDefault()}}const D=O.current;return D?.addEventListener("wheel",B,{passive:!1}),()=>{D?.removeEventListener("wheel",B)}},[]);const F=i[i.length-1],W={fixed:F?F.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${P}-cell-scrollbar`})},q=a.useMemo(()=>M?[...s,W]:s,[M,s]),G=a.useMemo(()=>M?[...i,W]:i,[M,i]),j=a.useMemo(()=>{const{start:B,end:D}=p;return{...p,start:B,end:[...D.map(K=>K+M),0],isSticky:T}},[M,p,T]),H=cY(c,d),k=a.useMemo(()=>{const B=!H||!H.length||H.every(D=>!D);return o||B},[o,H]);return a.createElement("div",{style:{overflow:"hidden",...T?{top:y,bottom:b}:{},...r},ref:_,className:U(n,{[v]:!!v})},a.createElement(z,{style:{tableLayout:x,minWidth:"100%",width:$}},k?f:a.createElement(bz,{colWidths:[...H,M],columCount:d+1,columns:G}),w({...R,stickyOffsets:j,columns:q,flattenColumns:G})))}),qP=a.memo(uY);function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}const dY=e=>{const{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:o,cellComponent:s,onHeaderRow:i,index:c,classNames:f,styles:d}=e,{prefixCls:p}=yr(Lr,["prefixCls"]);let m;i&&(m=i(t.map(y=>y.column),c));const h=Wh(t.map(y=>y.column));return a.createElement(o,Qm({},m,{className:f.row,style:d.row}),t.map((y,b)=>{const{column:v,colStart:$,colEnd:x,colSpan:E}=y,C=b$($,x,r,n),w=v?.onHeaderCell?.(v)||{};return a.createElement(Vc,Qm({},y,{scope:v.title?E>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:s,prefixCls:p,key:h[b]},C,{additionalProps:w,rowType:"header"}))}))};function fY(e,t,n){const r=[];function o(i,c,f=0){r[f]=r[f]||[];let d=c;return i.filter(Boolean).map(m=>{const h={key:m.key,className:U(m.className,t.cell)||"",style:n.cell,children:m.title,column:m,colStart:d};let y=1;const b=m.children;return b&&b.length>0&&(y=o(b,d,f+1).reduce((v,$)=>v+$,0),h.hasSubColumns=!0),"colSpan"in m&&({colSpan:y}=m),"rowSpan"in m&&(h.rowSpan=m.rowSpan),h.colSpan=y,h.colEnd=h.colStart+y-1,r[f].push(h),d+=y,y})}o(e,0);const s=r.length;for(let i=0;i<s;i+=1)r[i].forEach(c=>{!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=s-i)});return r}const pY=e=>{const{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:o}=e,{prefixCls:s,getComponent:i,classNames:c,styles:f}=yr(Lr,["prefixCls","getComponent","classNames","styles"]),{header:d={}}=c||{},{header:p={}}=f||{},m=a.useMemo(()=>fY(n,d,p),[n,d,p]),h=i(["header","wrapper"],"thead"),y=i(["header","row"],"tr"),b=i(["header","cell"],"th");return a.createElement(h,{className:U(`${s}-thead`,d.wrapper),style:p.wrapper},m.map((v,$)=>a.createElement(dY,{classNames:d,styles:p,key:$,flattenColumns:r,cells:v,stickyOffsets:t,rowComponent:y,cellComponent:b,onHeaderRow:o,index:$})))},GP=Wc(pY);function XP(e,t=""){return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function mY(e,t,n){return a.useMemo(()=>{if(t&&t>0){let r=0,o=0;e.forEach(m=>{const h=XP(t,m.width);h?r+=h:o+=1});const s=Math.max(t,n);let i=Math.max(s-r,o),c=o;const f=i/o;let d=0;const p=e.map(m=>{const h={...m},y=XP(t,h.width);if(y)h.width=y;else{const b=Math.floor(f);h.width=c===1?i:b,i-=b,c-=1}return d+=h.width,h});if(d<s){const m=s/d;i=s,p.forEach((h,y)=>{const b=Math.floor(h.width*m);h.width=y===p.length-1?i:b,i-=b})}return[p,Math.max(d,s)]}return[e,t]},[e,t,n])}function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yx.apply(this,arguments)}function v$(e){return cr(e).filter(t=>a.isValidElement(t)).map(t=>{const{key:n,props:r}=t,{children:o,...s}=r,i={key:n,...s};return o&&(i.children=v$(o)),i})}function vz(e){return e.filter(t=>t&&typeof t=="object"&&!t.hidden).map(t=>{const n=t.children;return n&&n.length>0?{...t,children:vz(n)}:t})}function xz(e,t="key"){return e.filter(n=>n&&typeof n=="object").reduce((n,r,o)=>{const{fixed:s}=r,i=s===!0||s==="left"?"start":s==="right"?"end":s,c=`${t}-${o}`,f=r.children;return f&&f.length>0?[...n,...xz(f,c).map(d=>({...d,fixed:d.fixed??i}))]:[...n,{key:c,...r,fixed:i}]},[])}function hY({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:o,columnTitle:s,getRowKey:i,onTriggerExpand:c,expandIcon:f,ExpandIcon:d,expandAllInfo:p,rowExpandable:m,expandIconColumnIndex:h,expandedRowOffset:y=0,direction:b,expandRowByClick:v,columnWidth:$,fixed:x,scrollWidth:E,clientWidth:C},w){const R=a.useMemo(()=>{const M=t||v$(n)||[];return vz(M.slice())},[t,n]),P=a.useMemo(()=>{if(r){let M=R.slice();if(!M.includes(Qs)){const H=h||0,k=H===0&&(x==="right"||x==="end")?R.length:H;k>=0&&M.splice(k,0,Qs)}const O=M.indexOf(Qs);M=M.filter((H,k)=>H!==Qs||k===O);const _=R[O];let F;x?F=x:F=_?_.fixed:null;const W=d||hz,q=p?a.createElement(W,Yx({type:"all",prefixCls:e},p)):void 0,G=typeof s=="function"?s({expandIcon:q}):s??q,j={[od]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:G,fixed:F,className:`${e}-row-expand-icon-cell`,width:$,render:(H,k,B)=>{const D=i(k,B),K=o.has(D),Q=m?m(k):!0,Z=f({prefixCls:e,expanded:K,expandable:Q,record:k,onExpand:c});return v?a.createElement("span",{onClick:X=>X.stopPropagation()},Z):Z}};return M.map((H,k)=>{const B=H===Qs?j:H;return k<y?{...B,fixed:B.fixed||"start"}:B})}return R.filter(M=>M!==Qs)},[r,R,i,o,f,d,p,s,b,y]),I=a.useMemo(()=>{let M=P;return w&&(M=w(M)),M.length||(M=[{render:()=>null}]),M},[w,P,b]),T=a.useMemo(()=>xz(I),[I,b,E]),[L,z]=mY(T,E,C);return[I,L,z]}function gY(e,t,n){const r=lY(e),{expandIcon:o,expandedRowKeys:s,defaultExpandedRowKeys:i,defaultExpandAllRows:c,expandedRowRender:f,onExpand:d,onExpandAll:p,onExpandedRowsChange:m,childrenColumnName:h,rowExpandable:y,showExpandAll:b}=r,v=e.components?.ExpandIcon,x=a.useMemo(()=>v?O=>eY(v,O):void 0,[v])||o||ZX,E=h||"children",C=a.useMemo(()=>f?"row":e.expandable&&e.internalHooks===sf&&e.expandable.__PARENT_RENDER_ICON__||t.some(O=>O&&typeof O=="object"&&O[E])?"nest":!1,[!!f,t]),[w,R]=a.useState(()=>i||(c?tY(t,n,E):[])),P=a.useMemo(()=>new Set(s||w||[]),[s,w]),I=a.useMemo(()=>!b||C!=="row"?[]:t.reduce((O,_,F)=>((!y||y(_))&&O.push({key:n(_,F),record:_}),O),[]),[C,n,t,b]),T=a.useMemo(()=>I.length>0&&I.every(({key:O})=>P.has(O)),[I,P]),L=a.useCallback(O=>{const _=n(O,t.indexOf(O));let F;const W=P.has(_);W?(P.delete(_),F=[...P]):F=[...P,_],R(F),d&&d(!W,O),m&&m(F)},[n,P,t,d,m]),z=Ct(O=>{if(O.stopPropagation(),!I.length)return;const _=!T,F=new Set(P);I.forEach(({key:q})=>{_?F.add(q):F.delete(q)});const W=[...F];R(W),p?.(_),m?.(W)}),M=a.useMemo(()=>b&&C==="row"?{expanded:T,expandable:I.length>0,onClick:z}:void 0,[T,I.length,C,z,b]);return[r,C,P,x,E,L,M]}function yY(e,t){const n=a.useMemo(()=>e.map((r,o)=>b$(o,o,e,t)),[e,t]);return ol(()=>n,[n],(r,o)=>!ps(r,o))}function bY(e){const t=a.useRef(e),[,n]=a.useState({}),r=a.useRef(null),o=a.useRef([]);function s(i){o.current.push(i);const c=Promise.resolve();r.current=c,c.then(()=>{if(r.current===c){const f=o.current,d=t.current;o.current=[],f.forEach(p=>{t.current=p(t.current)}),r.current=null,d!==t.current&&n({})}})}return a.useEffect(()=>()=>{r.current=null},[]),[t.current,s]}function vY(e){const t=a.useRef(null),n=a.useRef(null);function r(){clearTimeout(n.current)}function o(i){t.current=i,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function s(){return t.current}return a.useEffect(()=>r,[]),[o,s]}function xY(){const[e,t]=a.useState(-1),[n,r]=a.useState(-1),o=a.useCallback((s,i)=>{t(s),r(i)},[]);return[e,n,o]}const YP=Zr()?window:null;function CY(e,t){const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:o=0,getContainer:s=()=>YP}=typeof e=="object"?e:{},i=s()||YP,c=!!e;return a.useMemo(()=>({isSticky:c,stickyClassName:c?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:o,container:i}),[c,o,n,r,t,i])}function SY(e,t){return a.useMemo(()=>{const r=t.length,o=(c,f,d)=>{const p=[];let m=0;for(let h=c;h!==f;h+=d)p.push(m),t[h].fixed&&(m+=e[h]||0);return p},s=o(0,r,1),i=o(r-1,-1,-1).reverse();return{start:s,end:i,widths:e}},[e,t])}const QP=e=>{const{children:t,className:n,style:r}=e;return a.createElement("div",{className:n,style:r},t)};function JP(e){const n=fs(e).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)}}const ZP="mouseup",eN="mousemove",ec="scroll",tN="resize",$Y=(e,t)=>{const{scrollBodyRef:n,onScroll:r,offsetScroll:o,container:s,direction:i}=e,c=yr(Lr,"prefixCls"),f=n.current?.scrollWidth||0,d=n.current?.clientWidth||0,p=f&&d*(d/f),m=a.useRef(null),[h,y]=bY({scrollLeft:0,isHiddenScrollBar:!0}),b=a.useRef({delta:0,x:0}),[v,$]=a.useState(!1),x=a.useRef(null);a.useEffect(()=>()=>{Wt.cancel(x.current)},[]);const E=()=>{$(!1)},C=I=>{I.persist(),b.current.delta=I.pageX-h.scrollLeft,b.current.x=0,$(!0),I.preventDefault()},w=I=>{const{buttons:T}=I||window?.event;if(!v||T===0){v&&$(!1);return}let L=b.current.x+I.pageX-b.current.x-b.current.delta;const z=i==="rtl";L=Math.max(z?p-d:0,Math.min(z?0:d-p,L)),(!z||Math.abs(L)+Math.abs(p)<d)&&(r({scrollLeft:L/d*(f+2)}),b.current.x=I.pageX)},R=()=>{Wt.cancel(x.current),x.current=Wt(()=>{if(!n.current)return;const I=JP(n.current).top,T=I+n.current.offsetHeight,L=s===window?document.documentElement.scrollTop+window.innerHeight:JP(s).top+s.clientHeight;T-WE()<=L||I>=L-o?y(z=>({...z,isHiddenScrollBar:!0})):y(z=>({...z,isHiddenScrollBar:!1}))})},P=I=>{y(T=>({...T,scrollLeft:I/f*d||0}))};return a.useImperativeHandle(t,()=>({setScrollLeft:P,checkScrollBarVisible:R})),a.useEffect(()=>(document.body.addEventListener(ZP,E,!1),document.body.addEventListener(eN,w,!1),R(),()=>{document.body.removeEventListener(ZP,E),document.body.removeEventListener(eN,w)}),[p,v]),a.useEffect(()=>{if(n.current){const I=[];let T=fs(n.current);for(;T;)I.push(T),T=T.parentElement;return I.forEach(L=>{L.addEventListener(ec,R,!1)}),window.addEventListener(tN,R,!1),window.addEventListener(ec,R,!1),s.addEventListener(ec,R,!1),()=>{I.forEach(L=>{L.removeEventListener(ec,R)}),window.removeEventListener(tN,R),window.removeEventListener(ec,R),s.removeEventListener(ec,R)}}},[s]),a.useEffect(()=>{h.isHiddenScrollBar||y(I=>{const T=n.current;return T?{...I,scrollLeft:T.scrollLeft/T.scrollWidth*T.clientWidth}:I})},[h.isHiddenScrollBar]),f<=d||!p||h.isHiddenScrollBar?null:a.createElement("div",{style:{height:WE(),width:d,bottom:o},className:`${c}-sticky-scroll`},a.createElement("div",{onMouseDown:C,ref:m,className:U(`${c}-sticky-scroll-bar`,{[`${c}-sticky-scroll-bar-active`]:v}),style:{width:`${p}px`,transform:`translate3d(${h.scrollLeft}px, 0, 0)`}}))},wY=a.forwardRef($Y);function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(this,arguments)}const Cz="rc-table",EY=[],RY={};function IY(){return"No Data"}const PY=(e,t)=>{const n={rowKey:"key",prefixCls:Cz,emptyText:IY,...e},{prefixCls:r,className:o,rowClassName:s,style:i,classNames:c,styles:f,data:d,rowKey:p,scroll:m,tableLayout:h,direction:y,title:b,footer:v,summary:$,caption:x,id:E,showHeader:C,components:w,emptyText:R,onRow:P,onHeaderRow:I,measureRowRender:T,onScroll:L,internalHooks:z,transformColumns:M,internalRefs:O,tailor:_,getContainerWidth:F,sticky:W,rowHoverable:q=!0}=n,G=d||EY,j=!!G.length,H=z===sf,k=a.useCallback((We,Ye)=>Mr(w,We)||Ye,[w]),B=a.useMemo(()=>typeof p=="function"?p:We=>We&&We[p],[p]),D=k(["body"]),[K,Q,Z]=xY(),[X,J,ne,oe,ae,pe,fe]=gY(n,G,B),le=m?.x,[ie,re]=a.useState(0),[de,ge,se]=hY({...n,...X,expandable:!!X.expandedRowRender,columnTitle:X.columnTitle,expandedKeys:ne,getRowKey:B,onTriggerExpand:pe,expandIcon:oe,ExpandIcon:w?.ExpandIcon,expandAllInfo:fe,expandIconColumnIndex:X.expandIconColumnIndex,direction:y,scrollWidth:H&&_&&typeof le=="number"?le:null,clientWidth:ie},H?M:null),ce=se??le,xe=a.useMemo(()=>({columns:de,flattenColumns:ge}),[de,ge]),Ee=a.useRef(null),Se=a.useRef(null),Fe=a.useRef(null),qe=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:Ee.current,scrollTo:We=>{if(Fe.current instanceof HTMLElement){const{index:Ye,top:Dt,key:en,offset:Pn,align:Wn="nearest"}=We;if(HX(Dt))Fe.current?.scrollTo({top:Dt});else{const Vn=en??B(G[Ye]),_r=Fe.current.querySelector(`[data-row-key="${Vn}"]`);if(_r&&(_r.scrollIntoView({block:Wn}),Pn)){const Xr=Fe.current;Xr.scrollTo({top:Xr.scrollTop+Pn})}}}else Fe.current?.scrollTo&&Fe.current.scrollTo(We)}}));const Ne=a.useRef(null),[_e,Ie]=a.useState(!1),[me,Le]=a.useState(!1),[He,Ae]=a.useState(new Map),st=Wh(ge).map(We=>He.get(We)),je=a.useMemo(()=>st,[st.join("_")]),Je=SY(je,ge),ze=m&&Ux(m.y),Ve=m&&Ux(ce)||!!X.fixed,Ke=Ve&&ge.some(({fixed:We})=>We),ot=a.useRef(null),{isSticky:Ge,offsetHeader:dt,offsetSummary:xt,offsetScroll:St,stickyClassName:Lt,container:gt}=CY(W,r),mt=a.useMemo(()=>$?.(G),[$,G]),De=(ze||Ge)&&a.isValidElement(mt)&&mt.type===Vh&&mt.props.fixed;let Ze,Be,we;ze&&(Be={overflowY:j?"scroll":"auto",maxHeight:m.y}),Ve&&(Ze={overflowX:"auto"},ze||(Be={overflowY:"hidden"}),we={width:ce===!0?"auto":ce,minWidth:"100%"});const ke=a.useCallback((We,Ye)=>{Ae(Dt=>{if(Dt.get(We)!==Ye){const en=new Map(Dt);return en.set(We,Ye),en}return Dt})},[]),[Re,Xe]=vY(),[Ue]=a.useState(()=>new WeakMap);function nt(We,Ye){if(!Ye)return;if(typeof Ye=="function"){Ye(We);return}const Dt=Ue.get(Ye);if(Dt&&clearTimeout(Dt),Ye.scrollLeft!==We){Ye.scrollLeft=We;const en=setTimeout(()=>{Ye.scrollLeft!==We&&(Ye.scrollLeft=We)},0);Ue.set(Ye,en)}}const[zt,ht]=a.useState([0,0]),Te=Ct(({currentTarget:We,scrollLeft:Ye})=>{const Dt=typeof Ye=="number"?Ye:We.scrollLeft,en=We||RY;(!Xe()||Xe()===en)&&(Re(en),nt(Dt,Se.current),nt(Dt,Fe.current),nt(Dt,Ne.current),nt(Dt,ot.current?.setScrollLeft));const Pn=We||Se.current;if(Pn){const Wn=H&&_&&typeof ce=="number"?ce:Pn.scrollWidth,Vn=Pn.clientWidth,_r=Math.abs(Dt);if(ht(Xr=>{const vs=[_r,Wn-Vn];return ps(Xr,vs)?Xr:vs}),Wn===Vn){Ie(!1),Le(!1);return}Ie(_r>0),Le(_r<Wn-Vn-1)}}),lt=Ct(We=>{Te(We),L?.(We)}),at=()=>{Ve&&Fe.current?Te({currentTarget:fs(Fe.current),scrollLeft:Fe.current?.scrollLeft}):(Ie(!1),Le(!1))},Vt=We=>{ot.current?.checkScrollBarVisible();let Ye=We??Ee.current?.offsetWidth??0;H&&F&&Ee.current&&(Ye=F(Ee.current,Ye)||Ye),Ye!==ie&&(at(),re(Ye))};Qt(()=>{Ve&&Vt()},[Ve]);const Kt=a.useRef(!1);a.useEffect(()=>{Kt.current&&at()},[Ve,d,de.length]),a.useEffect(()=>{Kt.current=!0},[]);const[yn,At]=a.useState(0);Qt(()=>{(!_||!H)&&(Fe.current instanceof Element?At(Dv(Fe.current).width):At(Dv(qe.current).width))},[]),a.useEffect(()=>{H&&O&&(O.body.current=Fe.current)});const Gt=a.useCallback(We=>a.createElement(a.Fragment,null,a.createElement(GP,We),De==="top"&&a.createElement(kp,We,mt)),[De,mt]),Yt=a.useCallback(We=>a.createElement(kp,We,mt),[mt]),ct=k(["table"],"table"),Nt=a.useMemo(()=>h||(Ke?ce==="max-content"?"auto":"fixed":ze||Ge||ge.some(({ellipsis:We})=>We)?"fixed":"auto"),[ze,Ke,ge,h,Ge]);let tn;const hn={colWidths:je,columCount:ge.length,stickyOffsets:Je,onHeaderRow:I,fixHeader:ze,scroll:m},It=a.useMemo(()=>j?null:typeof R=="function"?R():R,[j,R]),nn=a.createElement(aY,{data:G,measureColumnWidth:ze||Ve||Ge}),In=a.createElement(bz,{colWidths:ge.map(({width:We})=>We),columns:ge}),Ln=x!=null?a.createElement("caption",{className:`${r}-caption`},x):void 0,An=Hn(n,{data:!0}),oo=Hn(n,{aria:!0});if(ze||Ge){let We;typeof D=="function"?(We=D(G,{scrollbarSize:yn,ref:Fe,onScroll:Te}),hn.colWidths=ge.map(({width:Dt},en)=>{const Pn=en===ge.length-1?Dt-yn:Dt;return typeof Pn=="number"&&!Number.isNaN(Pn)?Pn:0})):We=a.createElement("div",{style:{...Ze,...Be},onScroll:lt,ref:Fe,className:`${r}-body`},a.createElement(ct,Di({style:{...we,tableLayout:Nt}},oo),Ln,In,nn,!De&&mt&&a.createElement(kp,{stickyOffsets:Je,flattenColumns:ge},mt)));const Ye={noData:!G.length,maxContentScroll:Ve&&ce==="max-content",...hn,...xe,direction:y,stickyClassName:Lt,scrollX:ce,tableLayout:Nt,onScroll:Te};tn=a.createElement(a.Fragment,null,C!==!1&&a.createElement(qP,Di({},Ye,{stickyTopOffset:dt,className:`${r}-header`,ref:Se,colGroup:In}),Gt),We,De&&De!=="top"&&a.createElement(qP,Di({},Ye,{stickyBottomOffset:xt,className:`${r}-summary`,ref:Ne,colGroup:In}),Yt),Ge&&Fe.current&&Fe.current instanceof Element&&a.createElement(wY,{ref:ot,offsetScroll:St,scrollBodyRef:Fe,onScroll:Te,container:gt,direction:y}))}else tn=a.createElement("div",{style:{...Ze,...Be,...f?.content},className:U(`${r}-content`,c?.content),onScroll:Te,ref:Fe},a.createElement(ct,Di({style:{...we,tableLayout:Nt}},oo),Ln,In,C!==!1&&a.createElement(GP,Di({},hn,xe)),nn,mt&&a.createElement(kp,{stickyOffsets:Je,flattenColumns:ge},mt)));const Br={...i};Ge&&(Br["--columns-count"]=ge.length);let dr=a.createElement("div",Di({className:U(r,o,{[`${r}-rtl`]:y==="rtl",[`${r}-fix-start-shadow`]:Ve,[`${r}-fix-end-shadow`]:Ve,[`${r}-fix-start-shadow-show`]:Ve&&_e,[`${r}-fix-end-shadow-show`]:Ve&&me,[`${r}-layout-fixed`]:h==="fixed",[`${r}-fixed-header`]:ze,[`${r}-fixed-column`]:Ke,[`${r}-scroll-horizontal`]:Ve,[`${r}-has-fix-start`]:ge[0]?.fixed,[`${r}-has-fix-end`]:ge[ge.length-1]?.fixed==="end"}),style:Br,id:E,ref:Ee},An),b&&a.createElement(QP,{className:U(`${r}-title`,c?.title),style:f?.title},b(G)),a.createElement("div",{ref:qe,className:U(`${r}-container`,c?.section),style:f?.section},tn),v&&a.createElement(QP,{className:U(`${r}-footer`,c?.footer),style:f?.footer},v(G)));Ve&&(dr=a.createElement(bo,{onResize:({offsetWidth:We})=>Vt(We)},dr));const jn=yY(ge,Je),Co=a.useMemo(()=>({scrollX:ce,scrollInfo:zt,classNames:c,styles:f,prefixCls:r,getComponent:k,scrollbarSize:yn,direction:y,fixedInfoList:jn,isSticky:Ge,componentWidth:ie,fixHeader:ze,fixColumn:Ke,horizonScroll:Ve,tableLayout:Nt,rowClassName:s,expandedRowClassName:X.expandedRowClassName,expandIcon:oe,expandableType:J,expandRowByClick:X.expandRowByClick,expandedRowRender:X.expandedRowRender,forceRender:X.forceRender??!1,expandedRowOffset:X.expandedRowOffset,onTriggerExpand:pe,expandIconColumnIndex:X.expandIconColumnIndex,indentSize:X.indentSize,allColumnsFixedLeft:ge.every(We=>We.fixed==="start"),emptyNode:It,columns:de,flattenColumns:ge,onColumnResize:ke,colWidths:je,hoverStartRow:K,hoverEndRow:Q,onHover:Z,rowExpandable:X.rowExpandable,onRow:P,getRowKey:B,expandedKeys:ne,childrenColumnName:ae,rowHoverable:q,measureRowRender:T}),[ce,zt,c,f,r,k,yn,y,jn,Ge,ie,ze,Ke,Ve,Nt,s,X.expandedRowClassName,oe,J,X.expandRowByClick,X.expandedRowRender,X.forceRender,X.expandedRowOffset,pe,X.expandIconColumnIndex,X.indentSize,It,de,ge,ke,je,K,Q,Z,X.rowExpandable,P,B,ne,ae,q,T]);return a.createElement(Lr.Provider,{value:Co},dr)},NY=a.forwardRef(PY),Sz=e=>az(NY,e),Kc=Sz();Kc.EXPAND_COLUMN=Qs;Kc.INTERNAL_HOOKS=sf;Kc.Column=QX;Kc.ColumnGroup=JX;Kc.Summary=uz;const x$=y$(null),$z=y$(null);function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qx.apply(this,arguments)}function TY(e,t,n){return n[e+(t||1)]-(n[e]||0)}const MY=e=>{const{rowInfo:t,column:n,colIndex:r,indent:o,index:s,component:i,renderIndex:c,record:f,style:d,className:p,inverse:m,getHeight:h}=e,{render:y,dataIndex:b,className:v,width:$}=n,{columnsOffset:x}=yr($z,["columnsOffset"]),{key:E,fixedInfo:C,appendCellNode:w,additionalCellProps:R,originRowSpan:P}=yz(t,n,r,o,s),{style:I,colSpan:T=1,rowSpan:L=1}=R,z=r-1,M=TY(z,T,x),O=T>1?$-M:0,_={...I,...d,flex:`0 0 ${M}px`,width:`${M}px`,marginRight:O,pointerEvents:"auto"},F=a.useMemo(()=>m?L<=1:T===0||L===0||L>1,[L,T,m]);F?_.visibility="hidden":m&&(_.height=h?.(L));const W=F?()=>null:y,q={};return(L===0||T===0)&&(q.rowSpan=1,q.colSpan=1),a.createElement(Vc,Qx({className:U(v,p),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:E,record:f,index:s,renderIndex:c,dataIndex:b,render:W,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:w,originRowSpan:P,additionalProps:{...R,style:_,...q}}))};function Jx(){return Jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jx.apply(this,arguments)}const OY=a.forwardRef((e,t)=>{const{data:n,index:r,className:o,rowKey:s,style:i,extra:c,getHeight:f,...d}=e,{record:p,indent:m,index:h}=n,{scrollX:y,flattenColumns:b,prefixCls:v,fixColumn:$,componentWidth:x,classNames:E,styles:C}=yr(Lr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX","classNames","styles"]),{getComponent:w}=yr(x$,["getComponent"]),R=pz(p,s,r,m),P=w(["body","row"],"div"),I=w(["body","cell"],"div"),{rowSupportExpand:T,expanded:L,rowProps:z,expandedRowRender:M,expandedRowClassName:O,forceRender:_}=R,F=gz(O,p,r,m);let W;if(!c&&T&&(_||L)){const j=M(p,r,m+1,L);let H={};$&&(H={style:{"--virtual-width":`${x}px`}});const k=`${v}-expanded-row-cell`;W=a.createElement(P,{className:U(`${v}-expanded-row`,`${v}-expanded-row-level-${m+1}`,F),style:{display:L?void 0:"none"}},a.createElement(Vc,{component:I,prefixCls:v,className:U(k,{[`${k}-fixed`]:$}),additionalProps:H},j))}const q={...i,width:y};c&&(q.position="absolute",q.pointerEvents="none");const G=a.createElement(P,Jx({},z,d,{"data-row-key":s,ref:T?null:t,className:U(o,`${v}-row`,z?.className,E?.body?.row,{[F]:m>=1,[`${v}-row-extra`]:c}),style:{...q,...z?.style,...C?.body?.row}}),b.map((j,H)=>a.createElement(MY,{key:H,className:E?.body?.cell,style:C?.body?.cell,component:I,rowInfo:R,column:j,colIndex:H,indent:m,index:r,renderIndex:h,record:p,inverse:c,getHeight:f})));return T?a.createElement("div",{ref:t},G,W):G}),nN=Wc(OY),zY={start:"top",end:"bottom",nearest:"auto"},AY=a.forwardRef((e,t)=>{const{data:n,onScroll:r}=e,{flattenColumns:o,onColumnResize:s,getRowKey:i,expandedKeys:c,prefixCls:f,childrenColumnName:d,scrollX:p,direction:m}=yr(Lr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:h,scrollY:y,listItemHeight:b,getComponent:v,onScroll:$}=yr(x$),x=a.useRef(null),E=fz(n,d,c,i),C=a.useMemo(()=>{let M=0;return o.map(({width:O,minWidth:_,key:F})=>{const W=Math.max(O||0,_||0);return M+=W,[F,W,M]})},[o]),w=a.useMemo(()=>C.map(M=>M[2]),[C]);a.useEffect(()=>{C.forEach(([M,O])=>{s(M,O)})},[C]),a.useImperativeHandle(t,()=>{const M={scrollTo:O=>{const{align:_,offset:F,...W}=O,q=zY[_]??(F?"top":"auto");x.current?.scrollTo({...W,offset:F,align:q})},nativeElement:x.current?.nativeElement};return Object.defineProperty(M,"scrollLeft",{get:()=>x.current?.getScrollInfo().x||0,set:O=>{x.current?.scrollTo({left:O})}}),Object.defineProperty(M,"scrollTop",{get:()=>x.current?.getScrollInfo().y||0,set:O=>{x.current?.scrollTo({top:O})}}),M});const R=(M,O)=>{const _=E[O]?.record,{onCell:F}=M;return F?F(_,O)?.rowSpan??1:1},P=M=>{const{start:O,end:_,getSize:F,offsetY:W}=M;if(_<0)return null;let q=o.filter(D=>R(D,O)===0),G=O;for(let D=O;D>=0;D-=1)if(q=q.filter(K=>R(K,D)===0),!q.length){G=D;break}let j=o.filter(D=>R(D,_)!==1),H=_;for(let D=_;D<E.length;D+=1)if(j=j.filter(K=>R(K,D)!==1),!j.length){H=Math.max(D-1,_);break}const k=[];for(let D=G;D<=H;D+=1)E[D]&&o.some(Q=>R(Q,D)>1)&&k.push(D);return k.map(D=>{const K=E[D],Q=i(K.record,D),Z=J=>{const ne=D+J-1,oe=E[ne];if(!oe||!oe.record){const fe=Math.min(ne,E.length-1),le=E[fe],ie=i(le.record,fe),re=F(Q,ie);return re.bottom-re.top}const ae=i(oe.record,ne),pe=F(Q,ae);return pe.bottom-pe.top},X=F(Q);return a.createElement(nN,{key:D,data:K,rowKey:Q,index:D,style:{top:-W+X.top},extra:!0,getHeight:Z})})},I=a.useMemo(()=>({columnsOffset:w}),[w]),T=`${f}-tbody`,L=v(["body","wrapper"]),z={};return h&&(z.position="sticky",z.bottom=0,typeof h=="object"&&h.offsetScroll&&(z.bottom=h.offsetScroll)),a.createElement($z.Provider,{value:I},a.createElement(Ph,{fullHeight:!1,ref:x,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:z},className:T,height:y,itemHeight:b||24,data:E,itemKey:M=>i(M.record),component:L,scrollWidth:p,direction:m,onVirtualScroll:({x:M})=>{r({currentTarget:x.current?.nativeElement,scrollLeft:M})},onScroll:$,extraRender:P},(M,O,_)=>{const F=i(M.record,O);return a.createElement(nN,{data:M,rowKey:F,index:O,style:_.style})}))}),LY=Wc(AY);function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zx.apply(this,arguments)}const DY=(e,t)=>{const{ref:n,onScroll:r}=t;return a.createElement(LY,{ref:n,data:e,onScroll:r})},BY=(e,t)=>{const{data:n,columns:r,scroll:o,sticky:s,prefixCls:i=Cz,className:c,listItemHeight:f,components:d,onScroll:p}=e;let{x:m,y:h}=o||{};typeof m!="number"&&(m=1),typeof h!="number"&&(h=500);const y=Ct(($,x)=>Mr(d,$)||x),b=Ct(p),v=a.useMemo(()=>({sticky:s,scrollY:h,listItemHeight:f,getComponent:y,onScroll:b}),[s,h,f,y,b]);return a.createElement(x$.Provider,{value:v},a.createElement(Kc,Zx({},e,{className:U(c,`${i}-virtual`),scroll:{...o,x:m},components:{...d,body:n?.length?DY:void 0},columns:r,internalHooks:sf,tailor:!0,ref:t})))},_Y=a.forwardRef(BY),wz=e=>az(_Y,e);wz();const FY=e=>null,kY=e=>null,Ys={},eC="SELECT_ALL",tC="SELECT_INVERT",nC="SELECT_NONE",Wb=[],HY=e=>{const{menu:t,getPopupContainer:n,label:r}=e,[o,s]=a.useState(!1);return a.createElement(rf,{menu:t,getPopupContainer:n,trigger:["click","hover"],onOpenChange:s},a.createElement(Xd,{role:"button",tabIndex:0,"aria-label":r,"aria-haspopup":"menu","aria-expanded":o,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.currentTarget.click())}}))},rC=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),Rt(r)&&e in r&&rC(e,r[e],n)}),n),jY=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:s,getTitleCheckboxProps:i,onChange:c,onSelect:f,onSelectAll:d,onSelectInvert:p,onSelectNone:m,onSelectMultiple:h,columnWidth:y,type:b,selections:v,fixed:$,renderCell:x,hideSelectAll:E,checkStrictly:C=!0}=t||{},{prefixCls:w,data:R,pageData:P,getRecordByKey:I,getRowKey:T,expandType:L,childrenColumnName:z,locale:M,getPopupContainer:O}=e,{selectAll:_,selectRow:F="Select row",selectedRow:W="Row selected",selectionMenu:q="Selection menu"}=M,G=ia(),[j,H]=DF(se=>se),[k,B]=Rn(o||Wb,r),D=k??Wb,K=a.useRef(new Map),Q=a.useCallback(se=>{if(n){const ce=new Map;se.forEach(xe=>{let Ee=I(xe);!Ee&&K.current.has(xe)&&(Ee=K.current.get(xe)),ce.set(xe,Ee)}),K.current=ce}},[I,n]);a.useEffect(()=>{Q(D)},[D,Q]);const Z=a.useCallback(se=>{const ce=I(se);return!ce&&n?K.current.get(se):ce},[I,n]),X=a.useMemo(()=>rC(z,P),[z,P]),{keyEntities:J}=a.useMemo(()=>{if(C)return{keyEntities:null};let se=R;if(n){const ce=new Set(X.map(T)),xe=Array.from(K.current).reduce((Ee,[Se,Fe])=>ce.has(Se)?Ee:Ee.concat(Fe),[]);se=[].concat(jt(se),jt(xe))}return Bh(se,{externalGetKey:T,childrenPropName:z})},[R,T,C,z,n,X]),ne=a.useMemo(()=>{const se=new Map;return X.forEach((ce,xe)=>{const Ee=T(ce,xe),Se=(s?s(ce):null)||{};se.set(Ee,Se)}),se},[X,T,s]),oe=a.useCallback(se=>{const ce=T(se);let xe;return ne.has(ce)?xe=ne.get(T(se)):xe=s?s(se):void 0,!!xe?.disabled},[ne,T]),[ae,pe]=a.useMemo(()=>{if(C)return[D,[]];const{checkedKeys:se,halfCheckedKeys:ce}=cc(D,!0,J,oe);return[se||[],ce]},[D,C,J,oe]),fe=a.useMemo(()=>{const se=b==="radio"?ae.slice(0,1):ae;return new Set(se)},[ae,b]),le=a.useMemo(()=>b==="radio"?new Set:new Set(pe),[pe,b]);a.useEffect(()=>{t||B(Wb)},[!!t]);const ie=a.useCallback((se,ce)=>{let xe,Ee;Q(se),n?(xe=se,Ee=se.map(Se=>K.current.get(Se))):(xe=[],Ee=[],se.forEach(Se=>{const Fe=I(Se);Fe!==void 0&&(xe.push(Se),Ee.push(Fe))})),B(xe),c?.(xe,Ee,{type:ce})},[B,I,c,n]),re=a.useCallback((se,ce,xe,Ee)=>{if(f){const Se=xe.map(Z);f(I(se),ce,Se,Ee)}ie(xe,"single")},[f,I,Z,ie]),de=a.useMemo(()=>!v||E?null:(v===!0?[eC,tC,nC]:v).map(ce=>{let xe;return ce===eC?xe={key:"all",text:M.selectionAll,onSelect(){ie(rC(z,R).reduce((Ee,Se,Fe)=>{const qe=T(Se,Fe);return(!oe(Se)||fe.has(qe))&&Ee.push(qe),Ee},[]),"all")}}:ce===tC?xe={key:"invert",text:M.selectInvert,onSelect(){const Ee=new Set(fe);X.forEach((Fe,qe)=>{const Ne=T(Fe,qe);ne.get(Ne)?.disabled||(Ee.has(Ne)?Ee.delete(Ne):Ee.add(Ne))});const Se=Array.from(Ee);p&&(G.deprecated(!1,"onSelectInvert","onChange"),p(Se)),ie(Se,"invert")}}:ce===nC?xe={key:"none",text:M.selectNone,onSelect(){m?.(),ie(Array.from(fe).filter(Ee=>{const Se=Z(Ee);return Se!==void 0&&oe(Se)}),"none")}}:xe=ce,{...xe,onSelect:Ee=>{xe.onSelect?.(Ee),H(null)}}}),[v,E,M.selectionAll,M.selectInvert,M.selectNone,ne,oe,fe,R,z,X,T,Z,p,ie]);return[a.useCallback(se=>{if(!t)return se.filter(ze=>ze!==Ys);let ce=jt(se);const xe=new Set(fe),Ee=X.reduce((ze,Ve,Ke)=>{const ot=T(Ve,Ke);return ne.get(ot).disabled||ze.push(ot),ze},[]),Se=Ee.every(ze=>xe.has(ze)),Fe=Ee.some(ze=>xe.has(ze)),qe=()=>{const ze=[];Se?Ee.forEach(Ke=>{xe.delete(Ke),ze.push(Ke)}):Ee.forEach(Ke=>{xe.has(Ke)||(xe.add(Ke),ze.push(Ke))});const Ve=Array.from(xe);d?.(!Se,Ve.map(Z),ze.map(I)),ie(Ve,"all"),H(null)};let Ne,_e;if(b!=="radio"){let ze;if(de){const gt={getPopupContainer:O,items:de.map((mt,De)=>{const{key:Ze,text:Be,onSelect:we}=mt;return{key:Ze??De,onClick:()=>{we?.(Ee)},label:Be}})};ze=a.createElement("div",{className:`${w}-selection-extra`},a.createElement(HY,{menu:gt,getPopupContainer:O,label:q}))}const Ve=X.reduce((gt,mt,De)=>{const Ze=T(mt,De),Be=ne.get(Ze)||{},we={checked:xe.has(Ze),...Be};return we.disabled&>.push(we),gt},[]),Ke=!!Ve.length&&Ve.length===X.length,ot=Ke&&Ve.every(({checked:gt})=>gt),Ge=Ke&&Ve.some(({checked:gt})=>gt),dt=i?.()||{},{onChange:xt,disabled:St}=dt,Lt=us(_)&&_?_:"Select all";_e=a.createElement(Za,{"aria-label":Lt,...dt,checked:Ke?ot:!!X.length&&Se,indeterminate:Ke?!ot&&Ge:!Se&&Fe,onChange:gt=>{qe(),xt?.(gt)},disabled:St??(X.length===0||Ke),skipGroup:!0}),Ne=!E&&a.createElement("div",{className:`${w}-selection`},_e,ze)}let Ie;b==="radio"?Ie=(ze,Ve,Ke)=>{const ot=T(Ve,Ke),Ge=xe.has(ot),dt=ne.get(ot),xt=F;return{node:a.createElement(Zd,{"aria-label":xt,...dt,checked:Ge,onClick:St=>{St.stopPropagation(),dt?.onClick?.(St)},onChange:St=>{xe.has(ot)||re(ot,!0,[ot],St.nativeEvent),dt?.onChange?.(St)}}),checked:Ge}}:Ie=(ze,Ve,Ke)=>{const ot=T(Ve,Ke),Ge=xe.has(ot),dt=le.has(ot),xt=ne.get(ot);let St;L==="nest"?St=dt:St=xt?.indeterminate??dt;const Lt=Ge?W:F;return{node:a.createElement(Za,{"aria-label":Lt,...xt,indeterminate:St,checked:Ge,skipGroup:!0,onClick:gt=>{gt.stopPropagation(),xt?.onClick?.(gt)},onChange:gt=>{const{nativeEvent:mt}=gt,{shiftKey:De}=mt,Ze=Ee.indexOf(ot),Be=fe.size>0&&Ee.some(we=>fe.has(we));if(De&&C&&Be){const we=j(Ze,Ee,xe),ke=Array.from(xe);h?.(!Ge,ke.map(Z),we.map(I)),ie(ke,"multiple")}else{const we=ae;if(C){const ke=Ge?Rs(we,ot):Is(we,ot);re(ot,!Ge,ke,mt)}else{const ke=cc([].concat(jt(we),[ot]),!0,J,oe),{checkedKeys:Re,halfCheckedKeys:Xe}=ke;let Ue=Re;if(Ge){const nt=new Set(Re);nt.delete(ot),Ue=cc(Array.from(nt),{halfCheckedKeys:Xe},J,oe).checkedKeys}re(ot,!Ge,Ue,mt)}}H(Ge?null:Ze),xt?.onChange?.(gt)}}),checked:Ge}};const me=(ze,Ve,Ke)=>{const{node:ot,checked:Ge}=Ie(ze,Ve,Ke);return x?x(Ge,Ve,Ke,ot):ot};if(!ce.includes(Ys))if(ce.findIndex(ze=>ze[od]?.columnType==="EXPAND_COLUMN")===0){const[ze,...Ve]=ce;ce=[ze,Ys].concat(jt(Ve))}else ce=[Ys].concat(jt(ce));const Le=ce.indexOf(Ys);ce=ce.filter((ze,Ve)=>ze!==Ys||Ve===Le);const He=ce[Le-1],Ae=ce[Le+1];let Oe=$;Oe===void 0&&(Ae?.fixed!==void 0?Oe=Ae.fixed:He?.fixed!==void 0&&(Oe=He.fixed)),Oe&&He&&He[od]?.columnType==="EXPAND_COLUMN"&&He.fixed===void 0&&(He.fixed=Oe);const st=U(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:v&&b==="checkbox"}),je=()=>t?.columnTitle?Tt(t.columnTitle)?t.columnTitle(_e):t.columnTitle:Ne,Je={fixed:Oe,width:y,className:`${w}-selection-column`,title:je(),render:me,onCell:t.onCell,align:t.align,[od]:{className:st}};return ce.map(ze=>ze===Ys?Je:ze)},[T,X,t,ae,fe,le,y,de,L,ne,h,re,oe,_,F,W,q]),fe]},rN=e=>{const{prefixCls:t,type:n,expanded:r,expandable:o,onClick:s,locale:i}=e,c=`${t}-row-expand-icon`;if(n==="all"&&!o)return ee.createElement("span",{className:U(c,`${c}-spaced`)});const f=n==="all"?r?i.collapseAll:i.expandAll:r?i.collapse:i.expand;return ee.createElement("button",{type:"button",onClick:s,className:U(c,{[`${c}-spaced`]:!o,[`${c}-expanded`]:o&&r,[`${c}-collapsed`]:o&&!r}),"aria-label":f,"aria-expanded":r})};function WY(e,t,...n){return Ct(o=>{if(t)return ee.createElement(t,{...o});for(const s of n)if(s){if(o.type==="row"){const{prefixCls:i,record:c,expanded:f,expandable:d,onClick:p}=o;return s({prefixCls:i,record:c,expanded:f,expandable:d,onExpand:(m,h)=>p(h)})}return ee.createElement(rN,{...o,locale:e})}return ee.createElement(rN,{...o,locale:e})})}const VY=e=>{const t={};for(const[n,r]of Object.entries(e))un(r)&&(t[n]=r);return t},KY=(e,t)=>ee.useMemo(()=>({...e,filters:VY(t)}),[e,t]);function UY(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let s=r;if(o){const i=getComputedStyle(o),c=Number.parseInt(i.borderLeftWidth,10),f=Number.parseInt(i.borderRightWidth,10);s=r-c-f}return s}}const qY=(e,t)=>a.useMemo(()=>{if(!t)return e;const n=r=>r.map(o=>{if(o===Ys||o===Qs)return o;if("children"in o&&Array.isArray(o.children))return{...Rc(t,o),children:n(o.children)};const s=dn(t,["children"]);return Rc(s,o)});return n(e)},[e,t]),ra=(e,t)=>"key"in e&&un(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Uc(e,t){return t?`${t}-${e}`:`${e}`}const Kh=(e,t)=>Tt(e)?e(t):e,GY=(e,t)=>{const n=Kh(e,t);return Rt(n)||Array.isArray(n)?"":n},oN=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"},XY=(e,t)=>{if(e)return e;if(t==="small"||t==="medium")return"small"};var YY={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"};function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(this,arguments)}const QY=(e,t)=>a.createElement(_t,oC({},e,{ref:t,icon:YY})),JY=a.forwardRef(QY);var ZY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function sC(){return sC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sC.apply(this,arguments)}const eQ=(e,t)=>a.createElement(_t,sC({},e,{ref:t,icon:ZY})),Ez=a.forwardRef(eQ);var tQ={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"};function iC(){return iC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iC.apply(this,arguments)}const nQ=(e,t)=>a.createElement(_t,iC({},e,{ref:t,icon:tQ})),rQ=a.forwardRef(nQ);var oQ={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"};function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aC.apply(this,arguments)}const sQ=(e,t)=>a.createElement(_t,aC({},e,{ref:t,icon:oQ})),iQ=a.forwardRef(sQ);var aQ={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"};function lC(){return lC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lC.apply(this,arguments)}const lQ=(e,t)=>a.createElement(_t,lC({},e,{ref:t,icon:aQ})),cQ=a.forwardRef(lQ),uQ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:s,controlItemBgHover:i})=>({[`${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 ${o}`,content:'""',borderRadius:s},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:s,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),dQ=new fn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),fQ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),pQ=(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:`${te(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),mQ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:s,indentSize:i,switcherSize:c,motionDurationMid:f,nodeSelectedBg:d,nodeHoverBg:p,colorTextQuaternary:m,controlItemBgActiveDisabled:h}=t;return{[n]:{...an(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)"},[`${n}-list`]:{"&:focus-visible":{outline:"none",[`${r}-active ${n}-node-content-wrapper`]:{...eo(t)}}},[`${n}-list-scrollbar`]:{cursor:"pointer","&:hover":{backgroundColor:t.colorFillQuaternary}},[`${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:`${te(t.lineWidth)} ${t.lineType} ${t.colorPrimary}`,opacity:0,animationName:dQ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:te(s),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&-unselectable ${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:h},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled):not(${r}-unselectable)`]:{[`${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:c,textAlign:"center",visibility:"visible",color:m},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(c).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...fQ(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:c,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:c,height:s,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(c).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEnd:`${te(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(c).div(2).equal()).mul(.8).equal(),height:t.calc(s).div(2).equal(),borderBottom:`${te(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:s,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:[`all ${f}`,"border 0s","line-height 0s","box-shadow 0s"].join(", "),...pQ(e,t),"&:hover":{backgroundColor:p},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:d},[`${n}-iconEle`]:{display:"inline-block",width:c,height:s,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(c).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`${te(t.lineWidth)} ${t.lineType} ${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:`${te(t.calc(s).div(2).equal())} !important`}}}},hQ=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,s=t.calc(t.paddingXS).div(2).equal(),i=Jt(t,{treeCls:r,treeNodeCls:o,treeNodePadding:s});return[mQ(e,i),n&&uQ(i)].filter(Boolean)},gQ=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,switcherSize:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},yQ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...gQ(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}},bQ=Zt("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:p6(`${t}-checkbox`,e)},hQ(t,e),LS(e)],yQ),sN=4,vQ=e=>{const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:s="ltr"}=e,i=s==="ltr"?"left":"right",c=s==="ltr"?"right":"left",f={[i]:-n*o+sN,[c]:0};switch(t){case-1:f.top=-3;break;case 1:f.bottom=-3;break;default:f.bottom=-3,f[i]=o+sN;break}return ee.createElement("div",{style:f,className:`${r}-drop-indicator`})};var xQ={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"};function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cC.apply(this,arguments)}const CQ=(e,t)=>a.createElement(_t,cC({},e,{ref:t,icon:xQ})),SQ=a.forwardRef(CQ);var $Q={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"};function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uC.apply(this,arguments)}const wQ=(e,t)=>a.createElement(_t,uC({},e,{ref:t,icon:$Q})),EQ=a.forwardRef(wQ);var RQ={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"};function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dC.apply(this,arguments)}const IQ=(e,t)=>a.createElement(_t,dC({},e,{ref:t,icon:RQ})),PQ=a.forwardRef(IQ),NQ=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:s}=e,{isLeaf:i,expanded:c,loading:f}=r;if(f)return a.isValidElement(s)?s:a.createElement(oi,{className:`${t}-switcher-loading-icon`});let d;if(Rt(o)&&(d=o.showLeafIcon),i){if(!o)return null;if(typeof d!="boolean"&&d){const h=Tt(d)?d(r):d,y=`${t}-switcher-line-custom-icon`;return a.isValidElement(h)?hr(h,{className:U(h.props?.className,y)}):h}return d?a.createElement(Ez,{className:`${t}-switcher-line-icon`}):a.createElement("span",{className:`${t}-switcher-leaf-line`})}const p=`${t}-switcher-icon`,m=Tt(n)?n(r):n;return a.isValidElement(m)?hr(m,{className:U(m.props?.className,o?`${t}-switcher-line-icon`:p)}):m!==void 0?m:o?c?a.createElement(EQ,{className:`${t}-switcher-line-icon`}):a.createElement(PQ,{className:`${t}-switcher-line-icon`}):a.createElement(SQ,{className:p})},Rz=ee.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,className:o,style:s,classNames:i,styles:c}=Xt("tree"),{virtual:f}=ee.useContext(Ot),{prefixCls:d,className:p,showIcon:m=!1,showLine:h,switcherIcon:y,switcherLoadingIcon:b,blockNode:v=!1,children:$,checkable:x=!1,selectable:E=!0,draggable:C,disabled:w,motion:R,style:P,rootClassName:I,rootStyle:T,classNames:L,styles:z,icon:M}=e,O=ee.useContext(Er),_=w??O,F=n("tree",d),W=n(),q=R??{...Pm(W),motionAppear:!1},G={...e,showIcon:m,blockNode:v,checkable:x,selectable:E,disabled:_,motion:q},j=ut(T),[H,k]=qt([i,L],[c,j,z],{props:G}),B={...G,showLine:!!h,icon:M,dropIndicatorRender:vQ},[D,K]=bQ(F),[,Q]=Dr(),Z=Q.paddingXS/2+(Q.Tree?.titleHeight||Q.controlHeightSM),X=ee.useMemo(()=>{if(!C)return!1;let ne={};switch(typeof C){case"function":ne.nodeDraggable=C;break;case"object":ne={...C};break}return ne.icon!==!1&&(ne.icon=ne.icon||ee.createElement(cQ,null)),ne},[C]),J=ne=>ee.createElement(NQ,{prefixCls:F,switcherIcon:y,switcherLoadingIcon:b,treeNodeProps:ne,showLine:h});return ee.createElement(yK,{itemHeight:Z,ref:t,virtual:f,...B,prefixCls:F,className:U({[`${F}-icon-hide`]:!m,[`${F}-block-node`]:v,[`${F}-unselectable`]:!E,[`${F}-rtl`]:r==="rtl",[`${F}-disabled`]:_},o,p,D,K),style:{...s,...P},rootClassName:U(H.root,I),rootStyle:k.root,classNames:H,styles:k,direction:r,checkable:x&&ee.createElement("span",{className:`${F}-checkbox-inner`}),selectable:E,switcherIcon:J,draggable:X},$)}),iN=0,Vb=1,aN=2;function C$(e,t,n){const{key:r,children:o}=n;function s(i){const c=i[r],f=i[o];t(c,i)!==!1&&C$(f||[],t,n)}e.forEach(s)}function TQ({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const s=[];let i=iN;if(!un(n)||!un(r))return[];if(n===r)return[n];function c(f){return f===n||f===r}return C$(e,(f,d)=>{if(i===aN)return!1;if(c(f)){if(s.push(f),i===iN)i=Vb;else if(i===Vb)return i=aN,!1}else i===Vb&&!d.disabled&&d.selectable!==!1&&s.push(f);return t.includes(f)},Oc(o)),s}function Kb(e,t,n){const r=jt(t),o=[];return C$(e,(s,i)=>{const c=r.indexOf(s);return c!==-1&&(o.push(i),r.splice(c,1)),!!r.length},Oc(n)),o}function MQ(e){const{isLeaf:t,expanded:n}=e;return t?a.createElement(Ez,null):n?a.createElement(rQ,null):a.createElement(iQ,null)}function lN({treeData:e,children:t}){return e||c6(t)}const OQ=a.forwardRef((e,t)=>{const{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:o,...s}=e,i=a.useRef(null),c=a.useRef(null),f=()=>{const{keyEntities:T}=Bh(lN(s),{fieldNames:s.fieldNames});let L;const z=s.expandedKeys||o||[];return n?L=Object.values(T).map(({key:M})=>M):r?L=Rx(z,T):L=z,L},[d,p]=Rn(s.defaultSelectedKeys||[],s.selectedKeys),[m,h]=Rn(f,s.expandedKeys),y=(T,L)=>(h(T),s.onExpand?.(T,L)),b=(T,L)=>{const{multiple:z,fieldNames:M}=s,{node:O,nativeEvent:_}=L,{key:F=""}=O,W=lN(s),q={...L,selected:!0},G=_?.ctrlKey||_?.metaKey,j=_?.shiftKey;let H;z&&G?(H=T,i.current=F,c.current=H,q.selectedNodes=Kb(W,H,M)):z&&j?(H=Array.from(new Set([].concat(jt(c.current||[]),jt(TQ({treeData:W,expandedKeys:m,startKey:F,endKey:i.current,fieldNames:M}))))),q.selectedNodes=Kb(W,H,M)):(H=[F],i.current=F,c.current=H,q.selectedNodes=Kb(W,H,M)),s.onSelect?.(H,q),p(H)},{getPrefixCls:v,direction:$}=a.useContext(Ot),{prefixCls:x,className:E,showIcon:C=!0,expandAction:w="click",...R}=s,P=v("tree",x),I=U(`${P}-directory`,{[`${P}-directory-rtl`]:$==="rtl"},E);return a.createElement(Rz,{icon:MQ,ref:t,blockNode:!0,...R,showIcon:C,expandAction:w,prefixCls:P,className:I,defaultExpandParent:r,expandedKeys:m,selectedKeys:d,onSelect:b,onExpand:y})}),Uh=Rz;Uh.DirectoryTree=OQ;Uh.TreeNode=$d;Uh.useTree=bK;const cN=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:s}=e;return n?a.createElement("div",{className:`${r}-filter-dropdown-search`},a.createElement(nf,{prefix:a.createElement(Nh,null),placeholder:o.filterSearchPlaceholder,onChange:s,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},zQ=e=>{const{keyCode:t}=e;t===vt.ENTER&&e.stopPropagation()},AQ=a.forwardRef((e,t)=>a.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:zQ,ref:t,role:"presentation"},e.children));function uc(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(jt(t),jt(uc(r))))}),t}function LQ(e){return e.some(({children:t})=>t)}const Iz=(e,t)=>typeof t=="string"||Un(t)?t.toString().toLowerCase().includes(e):!1,Pz=e=>{const{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:s,normalizedSearchValue:i,filterSearch:c}=e;return t.map((f,d)=>{const p=String(f.value);if(f.children)return{key:p||d,label:f.text,popupClassName:`${n}-dropdown-submenu`,children:Pz({filters:f.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:s,normalizedSearchValue:i,filterSearch:c})};const m=o?Za:Zd,h={key:f.value!==void 0?p:d,label:a.createElement(a.Fragment,null,a.createElement(m,{checked:r.includes(p)}),a.createElement("span",null,f.text))};return i?Tt(c)?c(i,f)?h:null:Iz(i,f.text)?h:null:h})};function Ub(e){return e||[]}const DQ=e=>{const{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:o,columnKey:s,filterOnClose:i,filterMultiple:c,filterMode:f="menu",filterSearch:d=!1,filterState:p,triggerFilter:m,locale:h,children:y,getPopupContainer:b,rootClassName:v}=e,{filterResetToDefaultFilteredValue:$,defaultFilteredValue:x,filterDropdownProps:E={},filterDropdownOpen:C,onFilterDropdownOpenChange:w}=r,[R,P]=a.useState(!1),I=a.useContext(XS),T=!!(p&&(p.filteredKeys?.length||p.forceFiltered)),L=se=>{P(se),E.onOpenChange?.(se),w?.(se)},z=E.open??C??R,M=p?.filteredKeys,[O,_]=GM(Ub(M)),F=({selectedKeys:se})=>{_(se)},W=(se,{node:ce,checked:xe})=>{F(c?{selectedKeys:se}:{selectedKeys:xe?[ce.key]:[]})};a.useEffect(()=>{z&&F({selectedKeys:Ub(M)})},[M,z]);const[q,G]=a.useState([]),j=se=>{G(se)},[H,k]=a.useState(""),B=a.useMemo(()=>H.trim().toLowerCase(),[H]),D=se=>{const{value:ce}=se.target;k(ce)};a.useEffect(()=>{z||k("")},[z]);const K=se=>{const ce=se?.length?se:null;if(ce===null&&(!p||!p.filteredKeys)||ps(ce,p?.filteredKeys,!0))return null;m({column:r,key:s,filteredKeys:ce})},Q=()=>{L(!1),K(O())},Z=({confirm:se,closeDropdown:ce}={confirm:!1,closeDropdown:!1})=>{se&&K([]),ce&&L(!1),k(""),_($?(x||[]).map(String):[])},X=({closeDropdown:se}={closeDropdown:!0})=>{se&&L(!1),K(O())},J=(se,ce)=>{ce.source==="trigger"&&(se&&M!==void 0&&_(Ub(M)),!se&&!r.filterDropdown&&i?Q():L(se))},ne=U({[`${o}-menu-without-submenu`]:!LQ(r.filters||[])}),oe=se=>{if(se.target.checked){const ce=uc(r?.filters).map(String);_(ce)}else _([])},ae=({filters:se})=>(se||[]).map((ce,xe)=>{const Ee=String(ce.value),Se={title:ce.text,key:ce.value!==void 0?Ee:String(xe)};return ce.children&&(Se.children=ae({filters:ce.children})),Se}),pe=se=>({...se,text:se.title,value:se.key,children:se.children?.map(pe)||[]});let fe;const{direction:le,renderEmpty:ie}=a.useContext(Ot);if(Tt(r.filterDropdown))fe=r.filterDropdown({prefixCls:`${o}-custom`,setSelectedKeys:se=>F({selectedKeys:se}),selectedKeys:O(),confirm:X,clearFilters:Z,filters:r.filters,visible:z,close:()=>{L(!1)}});else if(r.filterDropdown)fe=r.filterDropdown;else{const se=O()||[],ce=()=>{const Ee=ie?.("Table.filter")??a.createElement(ls,{image:ls.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return Ee;if(f==="tree")return a.createElement(a.Fragment,null,a.createElement(cN,{filterSearch:d,value:H,onChange:D,tablePrefixCls:t,locale:h}),a.createElement("div",{className:`${t}-filter-dropdown-tree`},c?a.createElement(Za,{checked:se.length===uc(r.filters).length,indeterminate:se.length>0&&se.length<uc(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:oe},h?.filterCheckall??h?.filterCheckAll):null,a.createElement(Uh,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${o}-menu`,onCheck:W,checkedKeys:se,selectedKeys:se,showIcon:!1,treeData:ae({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:B?qe=>Tt(d)?d(H,pe(qe)):Iz(B,qe.title):void 0})));const Se=Pz({filters:r.filters||[],filterSearch:d,prefixCls:n,filteredKeys:O(),filterMultiple:c,searchValue:H,normalizedSearchValue:B}),Fe=Se.every(qe=>qe===null);return a.createElement(a.Fragment,null,a.createElement(cN,{filterSearch:d,value:H,onChange:D,tablePrefixCls:t,locale:h}),Fe?Ee:a.createElement(fl,{selectable:!0,multiple:c,prefixCls:`${o}-menu`,className:ne,onSelect:F,onDeselect:F,selectedKeys:se,getPopupContainer:b,openKeys:q,onOpenChange:j,items:Se}))},xe=()=>$?ps((x||[]).map(String),se,!0):se.length===0;fe=a.createElement(a.Fragment,null,ce(),a.createElement("div",{className:`${n}-dropdown-btns`},a.createElement(sn,{type:"link",size:"small",disabled:xe(),onClick:()=>Z()},h.filterReset),a.createElement(sn,{type:"primary",size:"small",onClick:Q},h.filterConfirm)))}r.filterDropdown&&(fe=a.createElement(L4,{selectable:void 0},fe)),fe=a.createElement(AQ,{className:`${n}-dropdown`},fe);const de=(()=>{let se;return Tt(r.filterIcon)?se=r.filterIcon(T):r.filterIcon?se=r.filterIcon:se=a.createElement(JY,null),a.createElement("span",{role:"button",tabIndex:-1,className:U(`${n}-trigger`,{active:T}),onClick:ce=>{ce.stopPropagation()}},se)})();if(I)return a.createElement("div",{className:`${n}-column`},a.createElement("span",{className:`${t}-column-title`},y),de);const ge=Rc({trigger:["click"],placement:le==="rtl"?"bottomLeft":"bottomRight",children:de,getPopupContainer:b},{...E,rootClassName:U(v,E.rootClassName),open:z,onOpenChange:J,popupRender:()=>{const se=E?.popupRender??E?.dropdownRender;return Tt(se)?se(fe):fe}});return a.createElement("div",{className:`${n}-column`},a.createElement("span",{className:`${t}-column-title`},y),a.createElement(rf,{...ge}))},fC=(e,t,n)=>{let r=[];return(e||[]).forEach((o,s)=>{const i=Uc(s,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let f=o.filteredValue;c||(f=f?.map(String)??f),r.push({column:o,key:ra(o,i),filteredKeys:f,forceFiltered:o.filtered})}else r.push({column:o,key:ra(o,i),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(jt(r),jt(fC(o.children,t,i))))}),r};function Nz(e,t,n,r,o,s,i,c,f){return n.map((d,p)=>{const m=Uc(p,c),{filterOnClose:h=!0,filterMultiple:y=!0,filterMode:b,filterSearch:v}=d;let $=d;if($.filters||$.filterDropdown){const x=ra($,m),E=r.find(({key:C})=>x===C);$={...$,title:C=>a.createElement(DQ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:$,columnKey:x,filterState:E,filterOnClose:h,filterMultiple:y,filterMode:b,filterSearch:v,triggerFilter:s,locale:o,getPopupContainer:i,rootClassName:f},Kh(d.title,C))}}return"children"in $&&($={...$,children:Nz(e,t,$.children,r,o,s,i,m,f)}),$})}const uN=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const s=n,{filters:i,filterDropdown:c}=o;if(c)t[s]=r||null;else if(Array.isArray(r)){const f=uc(i);t[s]=f.filter(d=>r.includes(String(d)))}else t[s]=null}),t},pC=(e,t,n)=>{let r=!1;return t.reduce((s,i)=>{const{column:{onFilter:c,filters:f},filteredKeys:d}=i;if(c&&d&&d.length){const p=uc(f),m=new Map;p.forEach(v=>{const $=String(v);m.has($)||m.set($,v)});const h=d.map(v=>{const $=String(v);return m.get($)??v}),b=(v=>v.reduce(($,x)=>{const E={...x};return!r&&E[n]&&(E[n]=pC(E[n],t,n)),h.some(C=>c(C,E))&&$.push(E),$},[]))(s);return r=!0,b}return s},e)},Tz=e=>e.flatMap(t=>"children"in t?[t].concat(jt(Tz(t.children||[]))):[t]),BQ=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,baseColumns:o,onFilterChange:s,getPopupContainer:i,locale:c,rootClassName:f}=e;ia();const d=a.useMemo(()=>Tz(o??r??[]),[o,r]),[p,m]=a.useState(()=>fC(d,!0)),h=a.useMemo(()=>{const $=fC(d,!1);if($.length===0)return $;let x=!0;if($.forEach(({filteredKeys:E})=>{E!==void 0&&(x=!1)}),x){const E=(d||[]).map((C,w)=>ra(C,Uc(w)));return p.reduce((C,w)=>{const R=E.indexOf(w.key);if(R!==-1){const P=d[R];C.push({...w,column:{...w.column,...P},forceFiltered:P.filtered})}return C},[])}return $},[d,p]),y=a.useMemo(()=>uN(h),[h]),b=$=>{const x=h.filter(({key:E})=>E!==$.key);x.push($),m(x),s(uN(x),x)};return[$=>Nz(t,n,$,h,c,b,i,void 0,f),h,y]},_Q=(e,t,n)=>{const r=a.useRef({});function o(s){if(r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let f=function(d){d.forEach((p,m)=>{const h=n(p,m);c.set(h,p),Rt(p)&&t in p&&f(p[t]||[])})};var i=f;const c=new Map;f(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return r.current.kvMap?.get(s)}return[o]},Mz=10;function FQ(e,t){const n={current:e.current,pageSize:e.pageSize},r=Rt(t)?t:{};return Object.keys(r).forEach(o=>{const s=e[o];Tt(s)||(n[o]=s)}),n}function kQ(e,t,n){const{total:r=0,...o}=Rt(n)?n:{},[s,i]=a.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:Mz})),c=Rc(s,o,{total:r>0?r:e}),f=Math.ceil((r||e)/c.pageSize);c.current>f&&(c.current=f||1);const d=(m,h)=>{i({current:m??1,pageSize:h||c.pageSize})},p=(m,h,y)=>{n&&(y?n.onChange?.(m,h,y):n.onChange?.(m,h)),d(m,h),y?t(m,h||c?.pageSize,y):t(m,h||c?.pageSize)};return n===!1?[{},()=>{}]:[{...c,onChange:p},d]}var HQ={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"};function mC(){return mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mC.apply(this,arguments)}const jQ=(e,t)=>a.createElement(_t,mC({},e,{ref:t,icon:HQ})),WQ=a.forwardRef(jQ);var VQ={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"};function hC(){return hC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hC.apply(this,arguments)}const KQ=(e,t)=>a.createElement(_t,hC({},e,{ref:t,icon:VQ})),UQ=a.forwardRef(KQ),dm="ascend",qb="descend",Jm=e=>Rt(e.sorter)&&Un(e.sorter.multiple)?e.sorter.multiple:!1,dN=e=>Tt(e)?e:Rt(e)&&e.compare?e.compare:!1,qQ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],gC=(e,t,n)=>{let r=[];const o=(s,i)=>{r.push({column:s,key:ra(s,i),multiplePriority:Jm(s),sortOrder:s.sortOrder})};return(e||[]).forEach((s,i)=>{const c=Uc(i,n);s.children?("sortOrder"in s&&o(s,c),r=[].concat(jt(r),jt(gC(s.children,t,c)))):s.sorter&&("sortOrder"in s?o(s,c):t&&s.defaultSortOrder&&r.push({column:s,key:ra(s,c),multiplePriority:Jm(s),sortOrder:s.defaultSortOrder}))}),r},Oz=(e,t,n,r,o,s,i,c,f)=>(t||[]).map((p,m)=>{const h=Uc(m,c);let y=p;if(y.sorter){const b=y.sortDirections||o,v=y.showSorterTooltip===void 0?i:y.showSorterTooltip,$=ra(y,h),x=n.find(({key:z})=>z===$),E=x?x.sortOrder:null,C=qQ(b,E);let w;if(p.sortIcon)w=p.sortIcon({sortOrder:E});else{const z=b.includes(dm)&&a.createElement(UQ,{className:U(`${e}-column-sorter-up`,{active:E===dm})}),M=b.includes(qb)&&a.createElement(WQ,{className:U(`${e}-column-sorter-down`,{active:E===qb})});w=a.createElement("span",{className:U(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(z&&M)})},a.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},z,M))}const{cancelSort:R,triggerAsc:P,triggerDesc:I}=s||{};let T=R;C===qb?T=I:C===dm&&(T=P);const L=Rt(v)?{title:T,...v}:{title:T};y={...y,className:U(y.className,{[`${e}-column-sort`]:E}),title:z=>{const M=`${e}-column-sorters`,O=a.createElement("span",{className:`${e}-column-title`},Kh(p.title,z)),_=a.createElement("div",{className:M},O,w);return v?typeof v!="boolean"&&v?.target==="sorter-icon"?a.createElement("div",{className:U(M,`${M}-tooltip-target-sorter`)},O,a.createElement(rr,{...L},w)):a.createElement(rr,{...L},_):_},onHeaderCell:z=>{const M=p.onHeaderCell?.(z)||{},O=M.onClick,_=M.onKeyDown;M.onClick=q=>{r({column:p,key:$,sortOrder:C,multiplePriority:Jm(p)}),O?.(q)},M.onKeyDown=q=>{q.keyCode===vt.ENTER&&r({column:p,key:$,sortOrder:C,multiplePriority:Jm(p)}),_?.(q)};const F=GY(p.title,{}),W=F?.toString();return E&&(M["aria-sort"]=E==="ascend"?"ascending":"descending"),M["aria-description"]=f?.sortable,M["aria-label"]=W||"",M.className=U(M.className,`${e}-column-has-sorters`),M.tabIndex=0,p.ellipsis&&(M.title=(F??"").toString()),M}}}return"children"in y&&(y={...y,children:Oz(e,y.children,n,r,o,s,i,h,f)}),y}),fN=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},pN=e=>{const t=e.reduce((n,r)=>(r.sortOrder&&n.push(fN(r)),n),[]);if(t.length===0&&e.length){const n=e.length-1;return{...fN(e[n]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},yC=(e,t,n)=>{const r=t.slice().sort((i,c)=>c.multiplePriority-i.multiplePriority),o=e.slice(),s=r.filter(({column:{sorter:i},sortOrder:c})=>dN(i)&&c);return s.length?o.sort((i,c)=>{for(let f=0;f<s.length;f+=1){const d=s[f],{column:{sorter:p},sortOrder:m}=d,h=dN(p);if(h&&m){const y=h(i,c,m);if(y!==0)return m===dm?y:-y}}return 0}).map(i=>{const c=i[n];return c?{...i,[n]:yC(c,t,n)}:i}):o},GQ=e=>{const{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:o,tableLocale:s,showSorterTooltip:i,onSorterChange:c,globalLocale:f}=e,d=r??n,[p,m]=a.useState(()=>gC(d,!0)),h=(E,C)=>{const w=[];return E.forEach((R,P)=>{const I=Uc(P,C);if(w.push(ra(R,I)),Array.isArray(R.children)){const T=h(R.children,I);w.push.apply(w,jt(T))}}),w},y=a.useMemo(()=>{let E=!0;const C=gC(d,!1);if(!C.length){const I=h(d);return p.filter(({key:T})=>I.includes(T))}const w=[];function R(I){E?w.push(I):w.push({...I,sortOrder:null})}let P=null;return C.forEach(I=>{P===null?(R(I),I.sortOrder&&(I.multiplePriority===!1?E=!1:P=!0)):(P&&I.multiplePriority!==!1||(E=!1),R(I))}),w},[d,p]),b=a.useMemo(()=>{const E=y.map(({column:C,sortOrder:w})=>({column:C,order:w}));return{sortColumns:E,sortColumn:E[0]?.column,sortOrder:E[0]?.order}},[y]),v=E=>{let C;E.multiplePriority===!1||!y.length||y[0].multiplePriority===!1?C=[E]:C=[].concat(jt(y.filter(({key:w})=>w!==E.key)),[E]),m(C),c(pN(C),C)};return[E=>Oz(t,E,y,v,o,s,i,void 0,f),y,b,()=>pN(y)]},XQ=e=>ee.useMemo(()=>typeof e=="boolean"?{spinning:e}:Rt(e)?{spinning:!0,...e}:{},[e]),zz=(e,t)=>e.map(r=>{const o={...r};return o.title=Kh(r.title,t),"children"in o&&(o.children=zz(o.children,t)),o}),YQ=e=>[a.useCallback(n=>zz(n,e),[e])],QQ=Sz((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),JQ=wz((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),ZQ=e=>{const{antCls:t,componentCls:n,lineWidth:r,lineType:o,tableBorderColor:s,tableHeaderBg:i,tablePaddingVertical:c,tablePaddingHorizontal:f,calc:d}=e,p=`${te(r)} ${o} ${s}`,[m,h]=Bt(t,"table"),y=(b,v,$)=>({[`&${n}-${b}`]:{[`> ${n}-container`]:{[`> ${n}-content, > ${n}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:`${te(d(v).mul(-1).equal())}
|
|
317
|
+
${te(d(d($).add(r)).mul(-1).equal())}`}}}}}});return{[`${n}-wrapper`]:{[m("nested-border-top")]:p,[`${n}${n}-bordered`]:{[`> ${n}-title`]:{border:p,borderBottom:0},[`> ${n}-container`]:{borderInlineStart:p,borderTop:p,"&:first-child":{borderTop:h("nested-border-top",p)},[`> ${n}-header${n}-sticky-holder`]:{marginTop:d(r).mul(-1).equal(),borderTop:p},[`> ${n}-content, > ${n}-header, > ${n}-body, > ${n}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:p},"> thead":{"> tr:not(:last-child) > th":{borderBottom:p},"> tr > th::before":{backgroundColor:"transparent !important"}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${n}-cell-fix-right-first:not(${n}-cell-fix-right-last)::after`]:{borderInlineEnd:p}},"> tbody > tr > th, > tbody > tr > td":{[`> ${n}-expanded-row-fixed`]:{margin:`${te(d(c).mul(-1).equal())} ${te(d(d(f).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:p,content:'""'}}}}}},[`&${n}-scroll-horizontal`]:{[`> ${n}-container > ${n}-body`]:{"> table > tbody":{[`
|
|
318
|
+
> tr${n}-expanded-row,
|
|
319
|
+
> tr${n}-placeholder
|
|
320
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}},...y("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...y("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${n}-footer`]:{border:p,borderTop:0}},[`${n}-cell`]:{[`
|
|
321
|
+
> ${n}-wrapper:only-child,
|
|
322
|
+
> ${n}-expanded-row-fixed > ${n}-wrapper:only-child
|
|
323
|
+
`]:{[m("nested-border-top")]:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${te(r)} 0 ${te(r)} ${i}`}},[`${n}-bordered ${n}-cell-scrollbar`]:{borderInlineEnd:p}}}},eJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...zr,wordBreak:"keep-all",[`
|
|
324
|
+
&${t}-cell-fix-start-shadow,
|
|
325
|
+
&${t}-cell-fix-end-shadow
|
|
326
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{...zr,display:"block"}},[`${t}-column-title`]:{...zr,wordBreak:"keep-all"}}}}},tJ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},nJ=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:s,lineType:i,tableBorderColor:c,tableExpandIconBg:f,tableExpandColumnWidth:d,borderRadius:p,tablePaddingVertical:m,tablePaddingHorizontal:h,tableExpandedRowBg:y,paddingXXS:b,expandIconMarginTop:v,expandIconSize:$,expandIconHalfInner:x,expandIconScale:E,calc:C}=e,w=`${te(o)} ${i} ${c}`,R=C(b).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${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`]:{...yS(e),position:"relative",float:"left",width:$,height:$,color:"inherit",lineHeight:te($),background:f,border:w,borderRadius:p,transform:`scale(${E})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:R,insetInlineStart:R,height:o},"&::after":{top:R,bottom:R,insetInlineStart:x,width:o,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:v,marginInlineEnd:s},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${te(C(m).mul(-1).equal())} ${te(C(h).mul(-1).equal())}`,padding:`${te(m)} ${te(h)}`}}}},rJ=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:s,paddingXXS:i,paddingXS:c,colorText:f,lineWidth:d,lineType:p,tableBorderColor:m,headerIconColor:h,fontSizeSM:y,tablePaddingHorizontal:b,borderRadius:v,motionDurationSlow:$,colorIcon:x,colorPrimary:E,tableHeaderFilterActiveBg:C,colorTextDisabled:w,tableFilterDropdownBg:R,tableFilterDropdownHeight:P,controlItemBgHover:I,controlItemBgActive:T,boxShadowSecondary:L,filterDropdownMenuBg:z,calc:M}=e,O=`${n}-dropdown`,_=`${t}-filter-dropdown`,F=`${n}-tree`,W=`${te(d)} ${p} ${m}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(i).mul(-1).equal(),marginInline:`${te(i)} ${te(M(b).div(2).mul(-1).equal())}`,padding:`0 ${te(i)}`,color:h,fontSize:y,borderRadius:v,cursor:"pointer",transition:`all ${$}`,"&:hover":{color:x,background:C},"&.active":{color:E}}}},{[`${n}-dropdown`]:{[_]:{...an(e),minWidth:o,backgroundColor:R,borderRadius:v,boxShadow:L,overflow:"hidden",[`${O}-menu`]:{maxHeight:P,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:z,"&:empty::after":{display:"block",padding:`${te(c)} 0`,color:w,fontSize:y,textAlign:"center",content:'"Not Found"'}},[`${_}-tree`]:{paddingBlock:`${te(c)} 0`,paddingInline:c,[F]:{padding:0},[`${F}-treenode ${F}-node-content-wrapper:hover`]:{backgroundColor:I},[`${F}-treenode-checkbox-checked ${F}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${_}-search`]:{padding:c,borderBottom:W,"&-input":{input:{minWidth:s},[r]:{color:w}}},[`${_}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${_}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${te(M(c).sub(d).equal())} ${te(c)}`,overflow:"hidden",borderTop:W}}}},{[`${n}-dropdown ${_}, ${_}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:c,color:f},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function Az({colorSplit:e}){const t={boxShadow:`inset 10px 0 8px -8px ${e}`},n={boxShadow:`inset -10px 0 8px -8px ${e}`};return[t,n]}const oJ=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:o,tableBg:s,calc:i}=e,c=`${t}-cell`,f=`${c}-fix`,d={position:"absolute",top:0,bottom:i(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[p,m]=Az(e);return{[`${t}-wrapper`]:{[`${c}${f}`]:{position:"sticky"},[f]:{zIndex:`calc(var(--z-offset-reverse) + ${o})`,background:s,"&:after":d,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":p,"&-end-shadow-show:after":m},[`${t}-container`]:{position:"relative","&:before, &:after":{...d,zIndex:`calc(var(--columns-count) * 2 + ${o} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:p,[`${t}-fix-end-shadow-show ${t}-container:after`]:m}}},sJ=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${te(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},iJ=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${te(n)} ${te(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}}},[`&${t}-bordered${t}-no-header`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${te(n)} ${te(n)}`}}}}},aJ=e=>{const{componentCls:t}=e,[n,r]=Az(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},lJ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:s,paddingXS:i,headerIconColor:c,headerIconHoverColor:f,tableSelectionColumnWidth:d,tableSelectedRowBg:p,tableSelectedRowHoverBg:m,tableRowHoverBg:h,tablePaddingHorizontal:y,calc:b}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:b(d).add(o).add(b(s).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:b(d).add(b(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:b(d).add(o).add(b(s).div(4)).add(b(i).mul(2)).equal()}},[`
|
|
327
|
+
table tr th${t}-selection-column,
|
|
328
|
+
table tr td${t}-selection-column,
|
|
329
|
+
${t}-selection-column
|
|
330
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-start`]:{zIndex:`calc(var(--z-offset, 0) + ${e.zIndexTableFixed})`},[`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:te(b(y).div(4).equal()),[r]:{color:c,fontSize:o,verticalAlign:"baseline","&:hover":{color:f}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:m}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},cJ=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(s,i,c,f)=>({[`${t}${t}-${s}`]:{fontSize:f,[`
|
|
331
|
+
${t}-title,
|
|
332
|
+
${t}-footer,
|
|
333
|
+
${t}-cell,
|
|
334
|
+
${t}-thead > tr > th,
|
|
335
|
+
${t}-tbody > tr > th,
|
|
336
|
+
${t}-tbody > tr > td,
|
|
337
|
+
tfoot > tr > th,
|
|
338
|
+
tfoot > tr > td
|
|
339
|
+
`]:{padding:`${te(i)} ${te(c)}`},[`${t}-filter-trigger`]:{marginInlineEnd:te(r(c).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${te(r(i).mul(-1).equal())} ${te(r(c).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:te(r(i).mul(-1).equal()),marginInline:`${te(r(n).sub(c).equal())} ${te(r(c).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:te(r(c).div(4).equal())}}});return{[`${t}-wrapper`]:{...o("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},uJ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:s}=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},[`
|
|
340
|
+
&${t}-cell-fix-start:hover,
|
|
341
|
+
&${t}-cell-fix-end:hover
|
|
342
|
+
`]:{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:o,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:s}}}},dJ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:s,tableScrollBg:i,stickyScrollBarBorderRadius:c,lineWidth:f,lineType:d,tableBorderColor:p,zIndexTableFixed:m}=e,h=`${te(f)} ${d} ${p}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${m} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${te(s)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${m} + 1)`,display:"flex",alignItems:"center",background:i,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:s,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},mN=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,s=`${te(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:s}}},[`div${t}-summary`]:{boxShadow:`0 ${te(o(n).mul(-1).equal())} 0 ${r}`}}}},fJ=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:s,calc:i}=e,c=`${te(r)} ${o} ${s}`,f=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-scrollbar`]:{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
343
|
+
& > ${t}-row,
|
|
344
|
+
& > div:not(${t}-row) > ${t}-row
|
|
345
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%",[`> ${t}-cell`]:{alignContent:"center"}}},[`${t}-cell`]:{borderBottom:c,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${f}${f}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${te(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:c,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:c,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:c}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:c,borderBottom:c}}}}}},pJ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:s,lineWidth:i,lineType:c,tableBorderColor:f,tableFontSize:d,tableBg:p,tableRadius:m,tableHeaderTextColor:h,motionDurationMid:y,tableHeaderBg:b,tableHeaderCellSplitColor:v,tableFooterTextColor:$,tableFooterBg:x,calc:E}=e,C=`${te(i)} ${c} ${f}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Ji(),[t]:{...an(e),fontSize:d,background:p,borderRadius:`${te(m)} ${te(m)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${te(m)} ${te(m)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
346
|
+
${t}-cell,
|
|
347
|
+
${t}-thead > tr > th,
|
|
348
|
+
${t}-tbody > tr > th,
|
|
349
|
+
${t}-tbody > tr > td,
|
|
350
|
+
tfoot > tr > th,
|
|
351
|
+
tfoot > tr > td
|
|
352
|
+
`]:{position:"relative",padding:`${te(r)} ${te(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${te(r)} ${te(o)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:b,borderBottom:C,transition:`background-color ${y} 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:v,transform:"translateY(-50%)",transition:`background-color ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:C,transition:["background-color","border-color"].map(w=>`${w} ${y}`).join(", "),[`
|
|
353
|
+
> ${t}-wrapper:only-child,
|
|
354
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
355
|
+
`]:{[t]:{marginBlock:te(E(r).mul(-1).equal()),marginInline:`${te(E(s).sub(o).equal())}
|
|
356
|
+
${te(E(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:b,borderBottom:C,transition:`background-color ${y} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${te(r)} ${te(o)}`,color:$,background:x}}}},mJ=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:s,controlItemBgActive:i,controlItemBgActiveHover:c,padding:f,paddingSM:d,paddingXS:p,colorBorderSecondary:m,borderRadiusLG:h,controlHeight:y,colorTextPlaceholder:b,fontSize:v,fontSizeSM:$,lineHeight:x,lineWidth:E,colorIcon:C,colorIconHover:w,opacityLoading:R,controlInteractiveSize:P}=e,I=new Cn(o).onBackground(n).toHexString(),T=new Cn(s).onBackground(n).toHexString(),L=new Cn(t).onBackground(n).toHexString(),z=new Cn(C),M=new Cn(w),O=P/2-E,_=O*2+E*3;return{headerBg:L,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:T,bodySortBg:L,rowHoverBg:L,rowSelectedBg:i,rowSelectedHoverBg:c,rowExpandedBg:t,cellPaddingBlock:f,cellPaddingInline:f,cellPaddingBlockMD:d,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:m,headerBorderRadius:h,footerBg:L,footerColor:r,cellFontSize:v,cellFontSizeMD:v,cellFontSizeSM:v,headerSplitColor:m,fixedHeaderSortActiveBg:I,headerFilterHoverBg:s,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:y,stickyScrollBarBg:b,stickyScrollBarBorderRadius:100,expandIconMarginTop:(v*x-E*3)/2-Math.ceil(($*1.4-E*3)/2),headerIconColor:z.clone().setA(z.a*R).toRgbString(),headerIconHoverColor:M.clone().setA(M.a*R).toRgbString(),expandIconHalfInner:O,expandIconSize:_,expandIconScale:P/_}},hJ=2,gJ=Zt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:s,headerColor:i,headerSortActiveBg:c,headerSortHoverBg:f,bodySortBg:d,rowHoverBg:p,rowSelectedBg:m,rowSelectedHoverBg:h,rowExpandedBg:y,cellPaddingBlock:b,cellPaddingInline:v,cellPaddingBlockMD:$,cellPaddingInlineMD:x,cellPaddingBlockSM:E,cellPaddingInlineSM:C,borderColor:w,footerBg:R,footerColor:P,headerBorderRadius:I,cellFontSize:T,cellFontSizeMD:L,cellFontSizeSM:z,headerSplitColor:M,fixedHeaderSortActiveBg:O,headerFilterHoverBg:_,filterDropdownBg:F,expandIconBg:W,selectionColumnWidth:q,stickyScrollBarBg:G,calc:j}=e,H=Jt(e,{tableFontSize:T,tableBg:r,tableRadius:I,tablePaddingVertical:b,tablePaddingHorizontal:v,tablePaddingVerticalMiddle:$,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:E,tablePaddingHorizontalSmall:C,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:s,tableFooterTextColor:P,tableFooterBg:R,tableHeaderCellSplitColor:M,tableHeaderSortBg:c,tableHeaderSortHoverBg:f,tableBodySortBg:d,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:_,tableFilterDropdownBg:F,tableRowHoverBg:p,tableSelectedRowBg:m,tableSelectedRowHoverBg:h,zIndexTableFixed:hJ,tableFontSizeMiddle:L,tableFontSizeSmall:z,tableSelectionColumnWidth:q,tableExpandIconBg:W,tableExpandColumnWidth:j(o).add(j(e.padding).mul(2)).equal(),tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:G,tableScrollThumbBgHover:t,tableScrollBg:n});return[pJ(H),sJ(H),mN(H),uJ(H),rJ(H),ZQ(H),iJ(H),nJ(H),mN(H),tJ(H),lJ(H),oJ(H),dJ(H),eJ(H),cJ(H),aJ(H),fJ(H)]},mJ,{resetFont:!1,unitless:{expandIconScale:!0}}),hN=[],Lz=a.createContext({}),yJ=e=>{const{ariaProps:t,component:n="table"}=a.useContext(Lz);return a.createElement(n,{...t,...e})},bJ=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:s,classNames:i,styles:c,size:f,bordered:d,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:y,rowKey:b,rowClassName:v,column:$,columns:x,children:E,childrenColumnName:C,onChange:w,getPopupContainer:R,loading:P,expandIcon:I,expandable:T,expandedRowRender:L,expandIconColumnIndex:z,indentSize:M,scroll:O,sortDirections:_,locale:F,showSorterTooltip:W={target:"full-header"},virtual:q,title:G,showHeader:j}=e;ia();const H=a.useMemo(()=>x||v$(E),[x,E]),k=qY(H,$),B=a.useMemo(()=>k.some(We=>We.responsive),[k]),D=Yd(B),K=a.useMemo(()=>{const We=new Set(Object.keys(D).filter(Ye=>D[Ye]));return k.filter(Ye=>!Ye.responsive||Ye.responsive.some(Dt=>We.has(Dt)))},[k,D]),Q=dn(e,["className","style","column","columns"]),Z=Q.components,X=Hn(Q,{aria:!0}),J=Object.keys(X).length>0,ne=a.useMemo(()=>({ariaProps:X,component:Z?.header?.table}),[X,Z?.header?.table]),{locale:oe,table:ae}=a.useContext(Ot),{getPrefixCls:pe,direction:fe,renderEmpty:le,getPopupContainer:ie,className:re,style:de,classNames:ge,styles:se}=Xt("table"),ce=or(We=>f==="middle"?"medium":f??We),xe={...e,size:ce,bordered:d},Ee=ut(de),Se=ut(s),[Fe,qe]=qt([ge,i],[se,Ee,c,Se],{props:xe},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),Ne={...xo.Table,...oe?.Table,...F},[_e]=br("global",xo.global),Ie=m||hN,me=pe("table",n),Le=pe("dropdown",p),[,He]=Dr(),Ae=a.useMemo(()=>Rt(y)?{columnWidth:He.Table?.selectionColumnWidth,...y}:y,[y,He.Table?.selectionColumnWidth]),Oe=er(me),[st,je]=gJ(me,Oe),Je={childrenColumnName:C,expandIconColumnIndex:z,...T,expandIcon:void 0},{childrenColumnName:ze="children"}=Je,Ve=a.useMemo(()=>Ie.some(We=>We?.[ze])?"nest":L||T?.expandedRowRender?"row":null,[ze,Ie]),Ke={body:a.useRef(null)},ot=UY(me),Ge=a.useRef(null),dt=a.useRef(null);_F(t,()=>({...dt.current,nativeElement:Ge.current}));const xt=b||ae?.rowKey||"key",St=O??ae?.scroll,Lt=a.useMemo(()=>Tt(xt)?xt:We=>We?.[xt],[xt]),[gt]=_Q(Ie,ze,Lt),mt={},De=(We,Ye,Dt=!1)=>{const en={...mt,...We};Dt&&(mt.resetPagination?.(),en.pagination?.current&&(en.pagination.current=1),h&&h.onChange?.(1,en.pagination?.pageSize)),St&&St.scrollToFirstRowOnChange!==!1&&Ke.body.current&&fF(0,{getContainer:()=>Ke.body.current}),w?.(en.pagination,en.filters,en.sorter,{currentDataSource:pC(yC(Ie,en.sorterStates,ze),en.filterStates,ze),action:Ye})},Ze=(We,Ye)=>{De({sorter:We,sorterStates:Ye},"sort",!1)},[Be,we,ke,Re]=GQ({prefixCls:me,mergedColumns:K,baseColumns:k,onSorterChange:Ze,sortDirections:_||["ascend","descend"],tableLocale:Ne,showSorterTooltip:W,globalLocale:_e}),Xe=a.useMemo(()=>yC(Ie,we,ze),[ze,Ie,we]);mt.sorter=Re(),mt.sorterStates=we;const Ue=(We,Ye)=>{De({filters:We,filterStates:Ye},"filter",!0)},[nt,zt,ht]=BQ({prefixCls:me,locale:Ne,dropdownPrefixCls:Le,mergedColumns:K,baseColumns:k,onFilterChange:Ue,getPopupContainer:R||ie,rootClassName:U(o,Oe)}),Te=pC(Xe,zt,ze);mt.filters=ht,mt.filterStates=zt;const lt=KY(ke,ht),[at]=YQ(lt),Vt=(We,Ye)=>{De({pagination:{...mt.pagination,current:We,pageSize:Ye}},"paginate")},[Kt,yn]=kQ(Te.length,Vt,h),At=We=>SS({},Fe.pagination,Zi(Kt.classNames,We)),Gt=We=>iM(Zi(Kt.styles,We),qe.pagination);mt.pagination=h===!1?{}:FQ(Kt,h),mt.resetPagination=yn;const Yt=a.useMemo(()=>{if(h===!1||!Kt.pageSize)return Te;const{current:We=1,total:Ye,pageSize:Dt=Mz}=Kt;return Te.length<Ye?Te.length>Dt?Te.slice((We-1)*Dt,We*Dt):Te:Te.slice((We-1)*Dt,We*Dt)},[!!h,Te,Kt?.current,Kt?.pageSize,Kt?.total]),[ct,Nt]=jY({prefixCls:me,data:Te,pageData:Yt,getRowKey:Lt,getRecordByKey:gt,expandType:Ve,childrenColumnName:ze,locale:Ne,getPopupContainer:R||ie},Ae),tn=(We,Ye,Dt)=>U({[`${me}-row-selected`]:Nt.has(Lt(We,Ye))},Tt(v)?v(We,Ye,Dt):v);Je.__PARENT_RENDER_ICON__=T?.expandIcon;const hn=WY(Ne,Z?.ExpandIcon,T?.expandIcon,ae?.expandable?.expandIcon,I);Ve==="nest"&&Je.expandIconColumnIndex===void 0?Je.expandIconColumnIndex=Ae?1:0:Je.expandIconColumnIndex>0&&Ae&&(Je.expandIconColumnIndex-=1),Un(Je.indentSize)||(Je.indentSize=Un(M)?M:15);const It=a.useMemo(()=>{let We=Z;return J&&(We={...We,header:{...We?.header,table:yJ}}),{...We,ExpandIcon:hn}},[Z,J,hn]),nn=a.useCallback(We=>at(ct(nt(Be(We)))),[Be,nt,ct]);let In,Ln;if(h!==!1&&Kt?.total){const We=XY(Kt.size,ce),Ye=(Wn="end")=>a.createElement(G6,{...Kt,classNames:At,styles:Gt,className:U(`${me}-pagination`,`${me}-pagination-${Wn}`,Kt.className),size:We}),{placement:Dt,position:en}=Kt,Pn=Dt??en;if(Array.isArray(Pn)){const[Wn,Vn]=["top","bottom"].map(Xr=>Pn.find(vs=>vs.includes(Xr))),_r=Pn.every(Xr=>`${Xr}`=="none");!Wn&&!Vn&&!_r&&(Ln=Ye()),Wn&&(In=Ye(oN(Wn))),Vn&&(Ln=Ye(oN(Vn)))}else Ln=Ye()}const An=XQ(P),oo=U(je,Oe,`${me}-wrapper`,re,{[`${me}-wrapper-rtl`]:fe==="rtl"},r,o,Fe.root,st),Br=a.useMemo(()=>An?.spinning&&Ie===hN?null:typeof F?.emptyText<"u"?F.emptyText:le?.("Table")||a.createElement(o4,{componentName:"Table"}),[An?.spinning,Ie,F?.emptyText,le]),dr=q?JQ:QQ,jn={},Co=a.useMemo(()=>{const{fontSize:We,lineHeight:Ye,lineWidth:Dt,padding:en,paddingXS:Pn,paddingSM:Wn}=He,Vn=Math.floor(We*Ye);switch(ce){case"medium":return Wn*2+Vn+Dt;case"small":return Pn*2+Vn+Dt;default:return en*2+Vn+Dt}},[He,ce]);return q&&(jn.listItemHeight=Co),a.createElement("div",{ref:Ge,className:oo,style:qe.root},a.createElement(J6,{spinning:!1,...An},In,a.createElement(Lz.Provider,{value:ne},a.createElement(dr,{...jn,...Q,components:It,scroll:St,classNames:Fe,styles:qe,ref:dt,columns:K,direction:fe,expandable:Je,prefixCls:me,className:U({[`${me}-medium`]:ce==="medium",[`${me}-small`]:ce==="small",[`${me}-bordered`]:d,[`${me}-empty`]:Ie.length===0,[`${me}-no-header`]:!G&&j===!1},je,Oe,st),data:Yt,rowKey:Lt,rowClassName:tn,emptyText:Br,internalHooks:sf,internalRefs:Ke,transformColumns:nn,getContainerWidth:ot,measureRowRender:We=>a.createElement(XS.Provider,{value:!0},a.createElement(ys,{getPopupContainer:Ye=>Ye},We))})),Ln))},vJ=a.forwardRef(bJ),xJ=(e,t)=>{const n=a.useRef(0);return n.current+=1,a.createElement(vJ,{...e,ref:t,_renderTimes:n.current})},Jo=a.forwardRef(xJ);Jo.SELECTION_COLUMN=Ys;Jo.EXPAND_COLUMN=Qs;Jo.SELECTION_ALL=eC;Jo.SELECTION_INVERT=tC;Jo.SELECTION_NONE=nC;Jo.Column=FY;Jo.ColumnGroup=kY;Jo.Summary=uz;const CJ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:s}=e,i=s(r).sub(n).equal(),c=s(t).sub(n).equal();return{[o]:{...an(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},"> svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"},[`> ${e.iconCls} + span, > span + ${e.iconCls}, > svg + span, > span + svg`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},S$=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Jt(e,{tagFontSize:o,tagLineHeight:te(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},$$=e=>{const t=dO(new Tm(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Cn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},w$=Zt("Tag",e=>{const t=S$(e);return CJ(t)},$$),Dz=a.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:s,children:i,icon:c,onChange:f,onClick:d,onKeyDown:p,disabled:m,...h}=e,{getPrefixCls:y,tag:b}=a.useContext(Ot),v=a.useContext(Er),$=m??v,x=I=>{$||(f?.(!s),d?.(I))},E=I=>{p?.(I),!(I.defaultPrevented||$)&&I.key===" "&&(I.preventDefault(),I.repeat||f?.(!s))},C=y("tag",n),[w,R]=w$(C),P=U(C,`${C}-checkable`,{[`${C}-checkable-checked`]:s,[`${C}-checkable-disabled`]:$},b?.className,o,w,R);return a.createElement("span",{...h,ref:t,role:"checkbox","aria-checked":s,"aria-disabled":$||void 0,tabIndex:$?-1:0,style:{...b?.style,...r},className:P,onClick:x,onKeyDown:E},c,a.createElement("span",null,i))}),SJ=ee.forwardRef((e,t)=>{const{id:n,prefixCls:r,rootClassName:o,className:s,style:i,classNames:c,styles:f,disabled:d,options:p,value:m,defaultValue:h,onChange:y,multiple:b,...v}=e,{getPrefixCls:$,direction:x,className:E,style:C,classNames:w,styles:R}=Xt("tag"),P=$("tag",r),I=`${P}-checkable-group`,T=er(P),[L,z]=w$(P,T),M=ut(C),O=ut(i),[_,F]=qt([w,c],[R,M,f,O],{props:e}),W=a.useMemo(()=>Array.isArray(p)?p.map(B=>Rt(B)?B:{value:B,label:B}):[],[p]),[q,G]=Rn(h,m),j=(B,D)=>{let K=null;if(b){const Q=q||[];K=B?[].concat(jt(Q),[D.value]):Q.filter(Z=>Z!==D.value)}else K=B?D.value:null;G(K),y?.(K)},H=ee.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:H.current}));const k=Hn(v,{aria:!0,data:!0});return ee.createElement("div",{...k,className:U(I,E,o,{[`${I}-disabled`]:d,[`${I}-rtl`]:x==="rtl"},L,z,s,_.root),style:F.root,id:n,ref:H},W.map(B=>ee.createElement(Dz,{key:B.value,className:U(`${I}-item`,_.item,B.className),style:{...F.item,...B.style},checked:b?(q||[]).includes(B.value):q===B.value,onChange:D=>j(D,B),disabled:d},B.label)))});function $J(e,t){const{color:n,variant:r,bordered:o}=e;return a.useMemo(()=>{const s=n?.endsWith("-inverse");let i;r?i=r:s?i="solid":o===!1?i="filled":i=t||"filled";let c=s?n?.replace("-inverse",""):n;c===void 0&&i==="solid"&&(c="default");const f=u4(c),d=O9(c),p={};if(!f&&!d&&c)if(i==="solid")p.backgroundColor=n;else{const m=new Cn(c).toHsl();m.l=.95,p.backgroundColor=new Cn(m).toHexString(),p.color=n,i==="outlined"&&(p.borderColor=n)}return[i,c,f,d,p]},[n,r,o,t])}const wJ=e=>H2(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:n}}})),EJ=al(["Tag","preset"],e=>{const t=S$(e);return wJ(t)},$$);function RJ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Hp=(e,t,n)=>{const r=RJ(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},IJ=al(["Tag","status"],e=>{const t=S$(e);return[Hp(t,"success","Success"),Hp(t,"processing","Info"),Hp(t,"error","Error"),Hp(t,"warning","Warning")]},$$),PJ=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:s,children:i,icon:c,color:f,variant:d,onClose:p,bordered:m,disabled:h,href:y,target:b,styles:v,classNames:$,...x}=e,{getPrefixCls:E,direction:C,className:w,style:R,classNames:P,styles:I}=Xt("tag"),[T]=no("tag",void 0,{variants:["filled","solid","outlined"],defaultVariant:"filled"}),[L,z,M,O,_]=$J(e,T),F=M||O,W=a.useContext(Er),q=h??W,{tag:G}=a.useContext(Ot),[j,H]=a.useState(!0),k=dn(x,["closeIcon","closable"]),B={...e,color:z,variant:L,disabled:q},D=ut(R),K=ut(s),[Q,Z]=qt([P,$],[I,D,v,K],{props:B}),X=a.useMemo(()=>{let ce=Z.root;return q||(ce={..._,...ce}),ce},[Z.root,_,q]),J=E("tag",n),[ne,oe]=w$(J),ae=U(J,w,Q.root,`${J}-${L}`,{[`${J}-${z}`]:F,[`${J}-hidden`]:!j,[`${J}-rtl`]:C==="rtl",[`${J}-disabled`]:q},r,o,ne,oe),pe=ce=>{q||(ce.stopPropagation(),p?.(ce),!ce.defaultPrevented&&(y&&ce.preventDefault(),H(!1)))},fe=ce=>{(ce.key==="Enter"||ce.key===" ")&&(ce.preventDefault(),ce.repeat||ce.currentTarget.click())},[,le]=NS(ea(e),ea(G),{closable:!1,closeIconRender:ce=>{const xe=a.createElement("span",{role:"button",tabIndex:q?-1:0,"aria-disabled":q||void 0,className:U(`${J}-close-icon`,Q.close),onClick:pe,onKeyDown:fe,style:Z.close},ce);return SM(ce,xe,Ee=>({onClick:Se=>{Ee?.onClick?.(Se),pe(Se)},onKeyDown:Se=>{Ee?.onKeyDown?.(Se),Se.defaultPrevented||fe(Se)},role:"button",tabIndex:q?-1:0,"aria-disabled":q||void 0,className:U(Ee?.className,`${J}-close-icon`,Q.close),style:{...Z.close,...Ee?.style}}))}}),ie=Tt(x.onClick)||i&&i.type==="a",re=hr(c,{className:U(a.isValidElement(c)?c.props?.className:void 0,Q.icon),style:Z.icon}),de=re?a.createElement(a.Fragment,null,re,tt(i)&&a.createElement("span",{className:Q.content,style:Z.content},i)):i,ge=y?"a":"span",se=a.createElement(ge,{...k,ref:t,className:ae,style:X,href:q?void 0:y,target:b,onClick:q?void 0:k.onClick,...y&&q?{"aria-disabled":!0}:{}},de,le,M&&a.createElement(EJ,{key:"preset",prefixCls:J}),O&&a.createElement(IJ,{key:"status",prefixCls:J}));return ie?a.createElement(Hd,{component:"Tag"},se):se}),E$=PJ;E$.CheckableTag=Dz;E$.CheckableTagGroup=SJ;const NJ=e=>{const t=e?.algorithm,n=t&&(!Array.isArray(t)||t.length>0)?bm(t):hS,r={...Nc,...e?.token};return g2(r,{override:e?.token},n,B2)};function TJ(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const MJ=(e,t)=>{const n=t??yh(e),r=n.fontSizeSM,o=n.controlHeight-4;return{...n,...TJ(t??e),...D2(r),controlHeight:o,...L2({...n,controlHeight:o})}},jo=(e,t)=>new Cn(e).setA(t).toRgbString(),$a=(e,t)=>new Cn(e).lighten(t).toHexString(),gN=e=>{const t=gh(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},OJ=(e,t,n)=>{const r=e||"#000",o=t||"#fff";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:jo(o,.85),colorTextSecondary:jo(o,.65),colorTextTertiary:jo(o,.45),colorTextQuaternary:jo(o,.25),colorFill:jo(o,.18),colorFillSecondary:jo(o,.12),colorFillTertiary:jo(o,.08),colorFillQuaternary:jo(o,.04),colorBgSolid:jo(o,.95),colorBgSolidHover:jo(o,1),colorBgSolidActive:jo(o,.9),colorBgElevated:$a(r,12),colorBgContainer:$a(r,8),colorBgLayout:$a(r,0),colorBgSpotlight:$a(r,26),colorBgBlur:jo(o,.04),colorBorder:$a(r,26),colorBorderDisabled:$a(r,26),colorBorderSecondary:$a(r,19)}},zJ=(e,t)=>{const n=Object.keys(mS).map(i=>{const c=gh(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((f,d,p)=>(f[`${i}-${p+1}`]=c[p],f[`${i}${p+1}`]=c[p],f),{})}).reduce((i,c)=>(i={...i,...c},i),{}),r=t??yh(e),o=A2(e,{generateColorPalettes:gN,generateNeutralColorPalettes:OJ}),s=zs.reduce((i,c)=>{const f=e[c];if(f){const d=gN(f);i[`${c}Hover`]=d[7],i[`${c}Active`]=d[5]}return i},{});return{...r,...n,...o,...s,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}};function AJ(){const[e,t,n,r]=Dr();return{theme:e,token:t,hashId:n,cssVar:r}}const Ds={defaultSeed:md.token,useToken:AJ,defaultAlgorithm:yh,darkAlgorithm:zJ,compactAlgorithm:MJ,getDesignToken:NJ,defaultConfig:md,_internalContext:gS},LJ=e=>{const{componentCls:t,fontHeight:n,antCls:r,paddingXS:o}=e,[s,i]=Bt(r,"cmp-steps"),[c,f]=Bt(r,"timeline"),d=`${t}-item`;return{[`${t}-horizontal`]:{[s("title-vertical-row-gap")]:o,[c("content-height")]:te(n),alignItems:"stretch",[`&${t}-layout-alternate`]:{[d]:{[`${d}-wrapper`]:{[c("alternate-content-offset")]:`calc(${f("content-height")} + ${i("title-vertical-row-gap")} * 2 + ${i("icon-size-max")})`,height:`calc(${f("content-height")} * 2 + ${i("title-vertical-row-gap")} * 2 + ${i("icon-size-max")})`},[`${d}-icon`]:{position:"absolute"},[`${d}-icon, ${d}-rail`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",margin:0},[`${d}-title, ${d}-subtitle, ${d}-content`]:{whiteSpace:"nowrap",maxWidth:"unset"},[`${d}-title`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},[`${d}-content`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-placement-start":{[`${d}-title`]:{bottom:f("alternate-content-offset")},[`${d}-content`]:{top:f("alternate-content-offset")}},"&-placement-end":{[`${d}-title`]:{top:f("alternate-content-offset")},[`${d}-content`]:{bottom:f("alternate-content-offset")}}}},[`&:not(${t}-layout-alternate)`]:{[`${d}-placement-end`]:{display:"flex",alignItems:"flex-end",[`${d}-wrapper`]:{flex:"auto",flexDirection:"column-reverse"},[`${d}-rail`]:{top:"auto",bottom:i("horizontal-rail-margin"),transform:"translateY(50%)"}}}}}},DJ=e=>{const{componentCls:t,tailColor:n,fontHeight:r,dotSize:o,dotBg:s,dotBorderWidth:i,fontSize:c,lineHeight:f,colorText:d,tailWidth:p,colorPrimary:m,colorError:h,colorSuccess:y,colorTextDisabled:b,antCls:v}=e,$=`${t}-item`,[x,E]=Bt(v,"cmp-steps");return{[t]:[{...an(e),[$]:{[x("title-horizontal-title-height")]:r,[x("vertical-rail-margin")]:"0px",[x("title-horizontal-rail-gap")]:"0px",[x("icon-dot-size-origin")]:E("icon-size-active"),[x("icon-dot-size-custom")]:o,[x("item-icon-dot-bg-color-origin")]:E("item-icon-dot-bg-color"),[x("item-icon-dot-bg-color-custom")]:s,[x("icon-size")]:E("icon-dot-size-custom",E("icon-dot-size-origin")),[`${$}-icon`]:{[x("dot-icon-border-width")]:i,[x("dot-icon-size")]:E("icon-size"),[x("item-icon-dot-bg-color")]:E("item-icon-dot-bg-color-custom",E("item-icon-dot-bg-color-origin"))},[`${$}-title`]:{fontSize:c,lineHeight:f},[`${$}-content`]:{color:d},[`${$}-rail`]:{[x("item-solid-line-color")]:n,[x("rail-size")]:p}}},{[$]:{[x("item-process-rail-line-style")]:"dotted"},[`${$}${$}${$}-color`]:{"&-blue":{[x("item-icon-dot-color")]:m},"&-red":{[x("item-icon-dot-color")]:h},"&-green":{[x("item-icon-dot-color")]:y},"&-gray":{[x("item-icon-dot-color")]:b}}}]}},BJ=e=>{const{calc:t,componentCls:n,itemPaddingBottom:r,margin:o,antCls:s}=e,i=`${n}-item`,[,c]=Bt(s,"cmp-steps"),[f,d]=Bt(s,"timeline");return{[`${n}:not(${n}-horizontal)`]:{[f("head-span")]:"12",[f("head-span-ptg")]:`calc(${d("head-span")} / 24 * 100%)`,[`&${n}-layout-alternate`]:{[i]:{[f("alternate-gap")]:t(o).mul(2).add(c("dot-icon-size")).equal(),minHeight:"auto",paddingBottom:r,[`${i}-icon, ${i}-rail`]:{position:"absolute",insetInlineStart:d("head-span-ptg")},[`${i}-icon`]:{marginInlineStart:`calc(${c("icon-size")} / -2)`},[`${i}-section`]:{display:"flex",flexWrap:"nowrap",gap:d("alternate-gap")},[`${i}-header`]:{textAlign:"end",flexDirection:"column",alignItems:"stretch",flex:`1 1 calc(${d("head-span-ptg")} - ${d("alternate-gap")} / 2)`},[`${i}-content`]:{textAlign:"start",flex:`1 1 calc(100% - ${d("head-span-ptg")} - ${d("alternate-gap")} / 2)`},"&-placement-end":{[`${i}-header`]:{textAlign:"start",order:1},[`${i}-content`]:{textAlign:"end"},[`${i}-icon, ${i}-rail`]:{insetInlineStart:`calc(100% - ${d("head-span-ptg")})`}}}},[`&:not(${n}-layout-alternate)`]:{[`${i}-placement-end`]:{textAlign:"end",[`${i}-icon`]:{order:1},[`${i}-rail`]:{insetInlineStart:"auto",insetInlineEnd:`calc(${c("icon-size")} / 2)`,marginInlineEnd:`calc(${c("rail-size")} / -2)`}}}}}},_J=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.lineWidthBold,dotBg:void 0,dotSize:void 0,itemPaddingBottom:e.padding*1.25}),FJ=Zt("Timeline",e=>{const t=Jt(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[DJ(t),BJ(t),LJ(t)]},_J),kJ=(e,t,n,r,o,s,i)=>{const c=`${t}-item`,[f]=Bt(e,"cmp-steps"),d=a.useMemo(()=>Array.isArray(r)?r:cr(o).map(p=>({...p.props})),[r,o]);return a.useMemo(()=>{const p=d.map((m,h)=>{const{label:y,children:b,title:v,content:$,color:x,className:E,style:C,icon:w,dot:R,placement:P,position:I,loading:T,...L}=m;let z=C,M=E;x&&(["blue","red","green","gray"].includes(x)?M=U(E,`${c}-color-${x}`):z={[f("item-icon-dot-color")]:x,...C});const O=P??I??(n==="alternate"?h%2===0?"start":"end":n);M=U(M,`${c}-placement-${O}`);let _=w??R;return!_&&T&&(_=a.createElement(oi,null)),{...L,title:v??y,content:$??b,style:z,className:M,icon:_,status:T?"process":"finish"}});return s&&p.push({icon:i??a.createElement(oi,null),content:s,status:"process"}),p},[d,s,n,c,f,i])},HJ={rootComponent:"ol",itemComponent:"li"},Bz=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:s,styles:i}=Xt("timeline"),{prefixCls:c,className:f,style:d,classNames:p,styles:m,variant:h,mode:y,orientation:b="vertical",titleSpan:v,items:$,children:x,reverse:E,pending:C,pendingDot:w,...R}=e,P=t(),I=t("timeline",c),[T]=no("timeline",h,{variants:["filled","outlined"],defaultVariant:"outlined"}),[L,z]=FJ(I),[M]=Bt(P,"timeline"),O=a.useMemo(()=>({item:`${I}-item`,itemTitle:`${I}-item-title`,itemIcon:`${I}-item-icon`,itemContent:`${I}-item-content`,itemRail:`${I}-item-rail`,itemWrapper:`${I}-item-wrapper`,itemSection:`${I}-item-section`,itemHeader:`${I}-item-header`}),[I]),_=a.useMemo(()=>y==="left"?"start":y==="right"?"end":["alternate","start","end"].includes(y)?y:"start",[y]),F=kJ(P,I,_,$,x,C,w),W=a.useMemo(()=>E?jt(F).reverse():F,[E,F]),q={...e,variant:T,mode:_,orientation:b,items:W},G=ut(o),j=ut(d),[H,k]=qt([O,s,p],[i,G,m,j],{props:q}),B=a.useMemo(()=>({railFollowPrevStatus:E}),[E]),D=a.useMemo(()=>_==="alternate"||b==="vertical"&&W.some(Q=>Q.title),[W,_,b]),K={};return un(v)&&_!=="alternate"&&(Un(v)?K[M("head-span")]=v:K[M("head-span-ptg")]=v),a.createElement(iz.Provider,{value:HJ},a.createElement(oz.Provider,{value:B},a.createElement(DX,{...R,className:U(I,r,f,L,z,{[`${I}-${b}`]:b==="horizontal",[`${I}-layout-alternate`]:D,[`${I}-rtl`]:n==="rtl"}),style:K,classNames:H,styles:k,variant:T,orientation:b,type:"dot",items:W,current:W.length-1})))};Bz.Item=()=>{};var jJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function bC(){return bC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bC.apply(this,arguments)}const WJ=(e,t)=>a.createElement(_t,bC({},e,{ref:t,icon:jJ})),VJ=a.forwardRef(WJ);var KJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function vC(){return vC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vC.apply(this,arguments)}const UJ=(e,t)=>a.createElement(_t,vC({},e,{ref:t,icon:KJ})),qJ=a.forwardRef(UJ);var GJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function xC(){return xC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xC.apply(this,arguments)}const XJ=(e,t)=>a.createElement(_t,xC({},e,{ref:t,icon:GJ})),YJ=a.forwardRef(XJ),QJ=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:s}=r;return{marginBottom:o,color:n,fontWeight:s,fontSize:e,lineHeight:t}},JJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
357
|
+
h${r}&,
|
|
358
|
+
div&-h${r},
|
|
359
|
+
div&-h${r} > textarea,
|
|
360
|
+
h${r}
|
|
361
|
+
`]=QJ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},ZJ=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...yS(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},eZ=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:`${te(e.lineWidth)} ${e.lineType} 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:`${te(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Cm[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:`${te(e.lineWidth)} ${e.lineType} 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},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:te(e.padding),overflowWrap:"break-word",borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),tZ=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:400,fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},[`&${t}-edit-content textarea`]:{margin:"0!important",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",fontWeight:"inherit",MozTransition:"none",height:"1em"}}}},nZ=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rZ=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...zr,"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"}}),oZ=e=>{const[,t]=Bt(e.antCls,"typography"),n=t("shimmer-motion-time","1"),r=t("shimmer-wait-time","1"),o=new fn("antTypographyShimmer",{"0%":{backgroundPosition:"-66.6667% 100%, 0 0"},"100%":{backgroundPosition:`calc(166.6667% + 233.3334% * ${r} / ${n}) 100%, 0 0`}});return{backgroundClip:"text, text",WebkitBackgroundClip:"text, text",WebkitTextFillColor:"transparent",backgroundImage:["linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), white, rgba(255, 255, 255, 0.8), transparent)","linear-gradient(currentColor, currentColor)"].join(", "),backgroundSize:"40% 100%, 100% 100%",backgroundRepeat:"no-repeat",animationName:o,animationDuration:`calc((${n} + ${r}) * 1s)`,animationIterationCount:"infinite",animationTimingFunction:"linear",animationFillMode:"forwards"}},sZ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...JJ(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...eZ(e),...ZJ(e),[`${t}-actions`]:{display:"inline"},[`
|
|
362
|
+
${t}-expand,
|
|
363
|
+
${t}-collapse,
|
|
364
|
+
${t}-edit,
|
|
365
|
+
${t}-copy
|
|
366
|
+
`]:{...yS(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
|
|
367
|
+
${t}-expand,
|
|
368
|
+
${t}-collapse,
|
|
369
|
+
${t}-edit,
|
|
370
|
+
${t}-copy:not(${t}-copy-icon-only)
|
|
371
|
+
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...tZ(e),...nZ(e),...rZ(),[`&${t}-shimmer`]:oZ(e),"&-rtl":{direction:"rtl"}}}},iZ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),_z=Zt("Typography",sZ,iZ),aZ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,classNames:s,styles:i,direction:c,maxLength:f,autoSize:d=!0,value:p,onSave:m,onCancel:h,onEnd:y,component:b,enterIcon:v=a.createElement(YJ,null)}=e,$=a.useRef(null),x=a.useRef(!1),E=a.useRef(null),[C,w]=a.useState(p);a.useEffect(()=>{w(p)},[p]),a.useEffect(()=>{if($.current?.resizableTextArea){const{textArea:W}=$.current.resizableTextArea;W.focus();const{length:q}=W.value;W.setSelectionRange(q,q)}},[]);const R=({target:W})=>{w(W.value.replace(/[\n\r]/g,""))},P=()=>{x.current=!0},I=()=>{x.current=!1},T=({keyCode:W})=>{x.current||(E.current=W)},L=()=>{m(C.trim())},z=({keyCode:W,ctrlKey:q,altKey:G,metaKey:j,shiftKey:H})=>{E.current!==W||x.current||q||G||j||H||(W===vt.ENTER?(L(),y?.()):W===vt.ESC&&h())},M=()=>{L()},[O,_]=_z(t),F=U(t,`${t}-edit-content`,{[`${t}-rtl`]:c==="rtl",[`${t}-${b}`]:!!b},r,s.root,O,_);return a.createElement("div",{className:F,style:{...i.root,...o}},a.createElement(K6,{ref:$,maxLength:f,value:C,onChange:R,onKeyDown:T,onKeyUp:z,onCompositionStart:P,onCompositionEnd:I,onBlur:M,"aria-label":n,rows:1,autoSize:d,className:s.textarea,style:i.textarea}),v!==null?hr(v,{className:`${t}-edit-content-confirm`}):null)},lZ=(e,t)=>{let n=!1;const r=o=>{o.stopPropagation(),o.preventDefault(),o.clipboardData?.clearData(),o.clipboardData?.setData("text/plain",e),t&&o.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},cZ=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function uZ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await cZ(e,n)||lZ(e,n))}const dZ=({copyConfig:e,children:t})=>{const[n,r]=uh(!1),[o,s]=a.useState(!1),i={};e.format&&(i.format=e.format);const c=Ct(async f=>{f?.preventDefault(),f?.stopPropagation(),s(!0);try{const d=Tt(e.text)?await e.text():e.text;await uZ(d||Z6(t,{skipEmpty:!0}).join("")||"",i),s(!1),r(!0,!0),r(!1,{ms:3e3}),e.onCopy?.(f)}catch(d){throw s(!1),d}});return{copied:n,copyLoading:o,onClick:c}},jp=(e,t)=>{const n=!!e;return a.useMemo(()=>{const r={...n?t:null,...n&&Rt(e)?e:null};return[n,r]},[n,e,t])},fZ=e=>{const t=a.useRef(void 0);return a.useEffect(()=>{t.current=e}),t.current},pZ=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:Rt(e)?{title:t??n,...e}:{title:e},[e,t,n]),Fz=(e,t,n,r,o)=>{const{getPrefixCls:s,direction:i,className:c,style:f,classNames:d,styles:p}=Xt("typography"),m=r??i,h=s(),y=s("typography",e),b={...o,prefixCls:y,direction:m},v=a.useMemo(()=>({root:c}),[c]),$=ut(f),[x,E]=qt([v,d,t],[p,$,n],{props:b});return[x,E,y,m,h]},kz=a.forwardRef((e,t)=>{const{component:n="article",className:r,rootClassName:o,children:s,direction:i,style:c,classNames:f,styles:d,prefixCls:p,...m}=e,[h,y]=_z(p),b=U(p,{[`${p}-rtl`]:i==="rtl"},r,o,h,y,f?.root),v={...d?.root,...c};return a.createElement(n,{...m,className:b,style:v,ref:t},s)}),mZ=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,direction:s,classNames:i,styles:c,...f}=e,[d,p,m,h]=Fz(n,i,c,s,e);return a.createElement(kz,{ref:t,className:U(r,o),direction:h,classNames:d,styles:p,prefixCls:m,...f})});var hZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function CC(){return CC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CC.apply(this,arguments)}const gZ=(e,t)=>a.createElement(_t,CC({},e,{ref:t,icon:hZ})),yZ=a.forwardRef(gZ),yN=e=>e===!1?[!1,!1]:Z6(e);function Gb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function bZ(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 R$=e=>["string","number"].includes(typeof e),vZ=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:s,icon:i,tabIndex:c,onCopy:f,loading:d,className:p,style:m}=e,h=yN(s),y=yN(i),{copied:b,copy:v}=r??{},$=n?b:v,x=Gb(h[n?1:0],$),E=typeof x=="string"?x:$;return a.createElement(rr,{title:x},a.createElement("button",{type:"button",className:U(`${t}-copy`,p,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),style:m,onClick:f,"aria-label":E,tabIndex:c},n?Gb(y[1],a.createElement(KS,null),!0):Gb(y[0],d?a.createElement(oi,null):a.createElement(yZ,null),!0)))},Wp=a.forwardRef(({style:e,children:t},n)=>{const r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),xZ=e=>e.reduce((t,n)=>t+(R$(n)?String(n).length:1),0);function bN(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const s=e[o],c=R$(s)?String(s).length:1,f=n+c;if(f>t){const d=t-n;return r.push(String(s).slice(0,d)),r}r.push(s),n=f}return e}const Xb=0,Yb=1,Qb=2,Jb=3,vN=4,Vp={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function CZ(e){const{enableMeasure:t,width:n,text:r,children:o,rows:s,expanded:i,measureDeps:c,miscDeps:f,onEllipsis:d}=e,p=a.useMemo(()=>cr(r),[r]),m=a.useMemo(()=>xZ(p),[r]),h=a.useMemo(()=>o(p,!1),[r].concat(jt(c))),[y,b]=a.useState(null),v=a.useRef(null),$=a.useRef(null),x=a.useRef(null),E=a.useRef(null),C=a.useRef(null),[w,R]=a.useState(!1),[P,I]=a.useState(Xb),[T,L]=a.useState(0),[z,M]=a.useState(null);Qt(()=>{I(t&&n&&m?Yb:Xb)},[n,r,s,t,p].concat(jt(c))),Qt(()=>{if(P===Yb){I(Qb);const W=$.current&&getComputedStyle($.current).whiteSpace;M(W)}else if(P===Qb){const W=!!x.current?.isExceed();I(W?Jb:vN),b(W?[0,m]:null),R(W);const q=x.current?.getHeight()||0,G=s===1?0:E.current?.getHeight()||0,j=C.current?.getHeight()||0,H=Math.max(q,G+j);L(H+1),d(W)}},[P]);const O=y?Math.ceil((y[0]+y[1])/2):0;Qt(()=>{const[W,q]=y||[0,0];if(W!==q){const j=(v.current?.getHeight()||0)>T;let H=O;q-W===1&&(H=j?W:q),b(j?[W,H]:[H,q])}},[y,O]);const _=a.useMemo(()=>{if(!t)return o(p,!1);if(P!==Jb||!y||y[0]!==y[1]){const W=o(p,!1);return[vN,Xb].includes(P)?W:a.createElement("span",{style:{...Vp,WebkitLineClamp:s}},W)}return o(i?p:bN(p,y[0]),w)},[i,P,y,p].concat(jt(f))),F={width:n,margin:0,padding:0,whiteSpace:z==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,_,P===Qb&&a.createElement(a.Fragment,null,a.createElement(Wp,{style:{...F,...Vp,WebkitLineClamp:s},ref:x},h),a.createElement(Wp,{style:{...F,...Vp,WebkitLineClamp:s-1},ref:E},h),a.createElement(Wp,{style:{...F,...Vp,WebkitLineClamp:1},ref:C},o([],!0))),P===Jb&&y&&y[0]!==y[1]&&a.createElement(Wp,{style:{...F,top:400},ref:v},o(bN(p,O),!0)),P===Yb&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const SZ=({enableEllipsis:e,isEllipsis:t,disabled:n,children:r,tooltipProps:o})=>!o?.title||!e?r:a.createElement(rr,{...o,disabled:!t||n},r);function $Z({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:s,italic:i},c){let f=c;function d(p,m){m&&(f=a.createElement(p,{},f))}return d("strong",o),d("u",n),d("del",r),d("code",t),d("mark",e),d("kbd",s),d("i",i),f}const wZ="...",Hz=1,EZ={duration:Hz},xN=["delete","mark","code","underline","strong","keyboard","italic"],qh=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,classNames:s,styles:i,direction:c,type:f,disabled:d,children:p,ellipsis:m,shimmer:h,editable:y,copyable:b,actions:v,component:$,title:x,onClick:E,onMouseEnter:C,onMouseLeave:w,...R}=e,[P]=br("Text"),I=a.useRef(null),T=a.useRef(null),[L,z,M,O,_]=Fz(n,s,i,c,e),[F]=Bt(_,"typography"),W=dn(R,xN),[q,G]=jp(y),[j,H]=Rn(!1,G.editing),{triggerType:k=["icon"]}=G,B=ht=>{ht&&G.onStart?.(),H(ht)},D=fZ(j);Qt(()=>{!j&&D&&T.current?.focus()},[j]);const K=ht=>{ht?.preventDefault(),B(!0)},Q=ht=>{G.onChange?.(ht),B(!1)},Z=()=>{G.onCancel?.(),B(!1)},[X,J]=jp(b),[ne,oe]=jp(h,EZ),ae=oe?.duration,[pe=Hz,fe=1]=Array.isArray(ae)?ae:[ae],{placement:le="end"}=v??{},{copied:ie,copyLoading:re,onClick:de}=dZ({copyConfig:J,children:p}),[ge,se]=a.useState(!1),[ce,xe]=a.useState(!1),[Ee,Se]=a.useState(!1),[Fe,qe]=a.useState(!1),[Ne,_e]=a.useState(!0),[Ie,me]=jp(m,{expandable:!1,symbol:ht=>ht?P?.collapse:P?.expand}),[Le,He]=Rn(me.defaultExpanded||!1,me.expanded),Ae=Ie&&(!Le||me.expandable==="collapsible"),{rows:Oe=1}=me,st=a.useMemo(()=>Ae&&(me.suffix!==void 0||me.onEllipsis||me.expandable||q||X),[Ae,me,q,X]);Qt(()=>{Ie&&!st&&(se(jE("webkitLineClamp")),xe(jE("textOverflow")))},[st,Ie]);const[je,Je]=a.useState(Ae),ze=a.useMemo(()=>st?!1:Oe===1?ce:ge,[st,Oe,ge,ce]);Qt(()=>{Je(ze&&Ae)},[ze,Ae]);const Ve=pZ(me.tooltip,G.text,p),Ke=je&&!!Ve.title,ot=Ae&&(je?Ke&&Fe:Ee),Ge=Ae&&Oe===1&&je,dt=Ae&&Oe>1&&je,xt=(ht,Te)=>{He(Te.expanded),me.onExpand?.(ht,Te)},[St,Lt]=a.useState(0),[gt,mt]=uh(!1),De=a.useRef(!1),Ze=({offsetWidth:ht})=>{Lt(ht)},Be=ht=>{Se(ht),Ee!==ht&&me.onEllipsis?.(ht)},we=a.useCallback(()=>{const ht=I.current;if(Ie&&Ke&&ht){const Te=bZ(ht);qe(lt=>lt===Te?lt:Te)}},[Ie,Ke]);a.useEffect(()=>{De.current&&we()},[we,p,dt,Ne,St]),a.useEffect(()=>{const ht=I.current;if(typeof IntersectionObserver>"u"||!ht||!Ke||!Ae)return;const Te=new IntersectionObserver(()=>{_e(!!ht.offsetParent)});return Te.observe(ht),()=>{Te.disconnect()}},[Ke,Ae]);const ke=a.useMemo(()=>{if(!(!Ie||je))return[G.text,p,x,Ve.title].find(R$)},[Ie,je,x,Ve.title,ot,G.text]);if(j)return a.createElement(aZ,{value:G.text??(typeof p=="string"?p:""),onSave:Q,onCancel:Z,onEnd:G.onEnd,prefixCls:M,className:r,style:o,direction:O,component:$,maxLength:G.maxLength,autoSize:G.autoSize,enterIcon:G.enterIcon,classNames:L,styles:z});const Re=()=>{const{expandable:ht,symbol:Te}=me;return ht?a.createElement("button",{type:"button",key:"expand",className:U(`${M}-${Le?"collapse":"expand"}`,L.action),style:z.action,onClick:lt=>xt(lt,{expanded:!Le}),"aria-label":Le?P.collapse:P?.expand},Tt(Te)?Te(Le):Te):null},Xe=()=>{if(!q)return;const{icon:ht,tooltip:Te,tabIndex:lt}=G,at=cr(Te)[0]||P?.edit,Vt=typeof at=="string"?at:"";return k.includes("icon")?a.createElement(rr,{key:"edit",title:Te===!1?"":at},a.createElement("button",{type:"button",ref:T,className:U(`${M}-edit`,L.action),style:z.action,onClick:K,"aria-label":Vt,tabIndex:lt},ht||a.createElement(qJ,null))):null},Ue=()=>X?a.createElement(vZ,{key:"copy",...J,prefixCls:M,copied:ie,locale:P,onCopy:de,loading:re,iconOnly:!tt(p),className:L.action,style:z.action}):null,nt=ht=>{const Te=ht&&Re(),lt=Xe(),at=Ue();return!Te&&!lt&&!at?null:a.createElement("span",{key:"operations",className:U(`${M}-actions`,L.actions,{[`${M}-actions-start`]:le==="start"}),style:z.actions,onMouseEnter:()=>mt(!0,!0),onMouseLeave:()=>mt(!1,{ms:500})},Te,lt,at)},zt=ht=>[ht&&!Le&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},wZ),me.suffix];return a.createElement(bo,{onResize:Ze,disabled:!Ae},ht=>a.createElement(SZ,{tooltipProps:Ve,enableEllipsis:Ae,isEllipsis:ot,disabled:gt},a.createElement(kz,{onMouseEnter:Te=>{De.current=!0,we(),C?.(Te)},onMouseLeave:Te=>{De.current=!1,w?.(Te)},className:U({[`${M}-${f}`]:f,[`${M}-disabled`]:d,[`${M}-shimmer`]:ne&&!d,[`${M}-ellipsis`]:Ie,[`${M}-ellipsis-single-line`]:Ge,[`${M}-ellipsis-multiple-line`]:dt,[`${M}-link`]:$==="a"},r),classNames:L,styles:z,prefixCls:M,style:{[F("shimmer-motion-time")]:ne?pe:void 0,[F("shimmer-wait-time")]:ne?fe:void 0,...o,WebkitLineClamp:dt?Oe:void 0},component:$,ref:ur(ht,I,t),direction:O,onClick:Te=>{k.includes("text")&&K(Te),E?.(Te)},"aria-label":ke?.toString(),title:x,"aria-busy":ne?!d:void 0,"aria-disabled":ne&&d?!0:void 0,...W},a.createElement(CZ,{enableMeasure:Ae&&!je,text:p,rows:Oe,width:St,onEllipsis:Be,expanded:Le,measureDeps:[le],miscDeps:[ie,Le,re,q,X,le,P].concat(jt(xN.map(Te=>e[Te])))},(Te,lt)=>$Z(e,a.createElement(a.Fragment,null,le==="start"?nt(lt):null,Te.length>0&<&&!Le&&ke?a.createElement("span",{key:"show-content","aria-hidden":!0},Te):Te,zt(lt),le==="start"?null:nt(lt)))))))}),RZ=a.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:s,...i}=e,c={...i,rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r};return a.createElement(qh,{...c,ref:t,ellipsis:!!n,component:"a"},o)}),IZ=a.forwardRef((e,t)=>{const{children:n,...r}=e;return a.createElement(qh,{ref:t,...r,component:"div"},n)}),PZ=a.forwardRef((e,t)=>{const{ellipsis:n,children:r,...o}=e,s=a.useMemo(()=>Rt(n)?dn(n,["expandable","rows"]):n,[n]);return a.createElement(qh,{ref:t,...o,ellipsis:s,component:"span"},r)}),NZ=[1,2,3,4,5],TZ=a.forwardRef((e,t)=>{const{level:n=1,children:r,...o}=e,s=NZ.includes(n)?`h${n}`:"h1";return a.createElement(qh,{ref:t,...o,component:s},r)}),zn=mZ;zn.Text=PZ;zn.Link=RZ;zn.Title=TZ;zn.Paragraph=IZ;function Bs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xm(e,t)}var Zb={exports:{}},ev,CN;function MZ(){if(CN)return ev;CN=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ev=e,ev}var tv,SN;function OZ(){if(SN)return tv;SN=1;var e=MZ();function t(){}function n(){}return n.resetWarningCache=t,tv=function(){function r(i,c,f,d,p,m){if(m!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},tv}var $N;function zZ(){return $N||($N=1,Zb.exports=OZ()()),Zb.exports}var AZ=zZ();const wN=lh(AZ);function Kp(e){return e.charAt(0)==="/"}function nv(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function LZ(e,t){t===void 0&&(t="");var n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&Kp(e),s=t&&Kp(t),i=o||s;if(e&&Kp(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c;if(r.length){var f=r[r.length-1];c=f==="."||f===".."||f===""}else c=!1;for(var d=0,p=r.length;p>=0;p--){var m=r[p];m==="."?nv(r,p):m===".."?(nv(r,p),d++):d&&(nv(r,p),d--)}if(!i)for(;d--;d)r.unshift("..");i&&r[0]!==""&&(!r[0]||!Kp(r[0]))&&r.unshift("");var h=r.join("/");return c&&h.substr(-1)!=="/"&&(h+="/"),h}var DZ="Invariant failed";function hl(e,t){throw new Error(DZ)}function sd(e){return e.charAt(0)==="/"?e:"/"+e}function EN(e){return e.charAt(0)==="/"?e.substr(1):e}function BZ(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function jz(e,t){return BZ(e,t)?e.substr(t.length):e}function Wz(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function _Z(e){var t=e||"/",n="",r="",o=t.indexOf("#");o!==-1&&(r=t.substr(o),t=t.substr(0,o));var s=t.indexOf("?");return s!==-1&&(n=t.substr(s),t=t.substr(0,s)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function go(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&n!=="?"&&(o+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(o+=r.charAt(0)==="#"?r:"#"+r),o}function Mo(e,t,n,r){var o;typeof e=="string"?(o=_Z(e),o.state=t):(o=Xn({},e),o.pathname===void 0&&(o.pathname=""),o.search?o.search.charAt(0)!=="?"&&(o.search="?"+o.search):o.search="",o.hash?o.hash.charAt(0)!=="#"&&(o.hash="#"+o.hash):o.hash="",t!==void 0&&o.state===void 0&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),r?o.pathname?o.pathname.charAt(0)!=="/"&&(o.pathname=LZ(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I$(){var e=null;function t(i){return e=i,function(){e===i&&(e=null)}}function n(i,c,f,d){if(e!=null){var p=typeof e=="function"?e(i,c):e;typeof p=="string"?typeof f=="function"?f(p,d):d(!0):d(p!==!1)}else d(!0)}var r=[];function o(i){var c=!0;function f(){c&&i.apply(void 0,arguments)}return r.push(f),function(){c=!1,r=r.filter(function(d){return d!==f})}}function s(){for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];r.forEach(function(d){return d.apply(void 0,c)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:o,notifyListeners:s}}var Vz=!!(typeof window<"u"&&window.document&&window.document.createElement);function Kz(e,t){t(window.confirm(e))}function FZ(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function kZ(){return window.navigator.userAgent.indexOf("Trident")===-1}function HZ(){return window.navigator.userAgent.indexOf("Firefox")===-1}function jZ(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var RN="popstate",IN="hashchange";function PN(){try{return window.history.state||{}}catch{return{}}}function WZ(e){e===void 0&&(e={}),Vz||hl();var t=window.history,n=FZ(),r=!kZ(),o=e,s=o.forceRefresh,i=s===void 0?!1:s,c=o.getUserConfirmation,f=c===void 0?Kz:c,d=o.keyLength,p=d===void 0?6:d,m=e.basename?Wz(sd(e.basename)):"";function h(H){var k=H||{},B=k.key,D=k.state,K=window.location,Q=K.pathname,Z=K.search,X=K.hash,J=Q+Z+X;return m&&(J=jz(J,m)),Mo(J,D,B)}function y(){return Math.random().toString(36).substr(2,p)}var b=I$();function v(H){Xn(j,H),j.length=t.length,b.notifyListeners(j.location,j.action)}function $(H){jZ(H)||C(h(H.state))}function x(){C(h(PN()))}var E=!1;function C(H){if(E)E=!1,v();else{var k="POP";b.confirmTransitionTo(H,k,f,function(B){B?v({action:k,location:H}):w(H)})}}function w(H){var k=j.location,B=P.indexOf(k.key);B===-1&&(B=0);var D=P.indexOf(H.key);D===-1&&(D=0);var K=B-D;K&&(E=!0,z(K))}var R=h(PN()),P=[R.key];function I(H){return m+go(H)}function T(H,k){var B="PUSH",D=Mo(H,k,y(),j.location);b.confirmTransitionTo(D,B,f,function(K){if(K){var Q=I(D),Z=D.key,X=D.state;if(n)if(t.pushState({key:Z,state:X},null,Q),i)window.location.href=Q;else{var J=P.indexOf(j.location.key),ne=P.slice(0,J+1);ne.push(D.key),P=ne,v({action:B,location:D})}else window.location.href=Q}})}function L(H,k){var B="REPLACE",D=Mo(H,k,y(),j.location);b.confirmTransitionTo(D,B,f,function(K){if(K){var Q=I(D),Z=D.key,X=D.state;if(n)if(t.replaceState({key:Z,state:X},null,Q),i)window.location.replace(Q);else{var J=P.indexOf(j.location.key);J!==-1&&(P[J]=D.key),v({action:B,location:D})}else window.location.replace(Q)}})}function z(H){t.go(H)}function M(){z(-1)}function O(){z(1)}var _=0;function F(H){_+=H,_===1&&H===1?(window.addEventListener(RN,$),r&&window.addEventListener(IN,x)):_===0&&(window.removeEventListener(RN,$),r&&window.removeEventListener(IN,x))}var W=!1;function q(H){H===void 0&&(H=!1);var k=b.setPrompt(H);return W||(F(1),W=!0),function(){return W&&(W=!1,F(-1)),k()}}function G(H){var k=b.appendListener(H);return F(1),function(){F(-1),k()}}var j={length:t.length,action:"POP",location:R,createHref:I,push:T,replace:L,go:z,goBack:M,goForward:O,block:q,listen:G};return j}var NN="hashchange",VZ={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+EN(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:EN,decodePath:sd},slash:{encodePath:sd,decodePath:sd}};function Uz(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Lu(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function KZ(e){window.location.hash=e}function rv(e){window.location.replace(Uz(window.location.href)+"#"+e)}function UZ(e){e===void 0&&(e={}),Vz||hl();var t=window.history;HZ();var n=e,r=n.getUserConfirmation,o=r===void 0?Kz:r,s=n.hashType,i=s===void 0?"slash":s,c=e.basename?Wz(sd(e.basename)):"",f=VZ[i],d=f.encodePath,p=f.decodePath;function m(){var k=p(Lu());return c&&(k=jz(k,c)),Mo(k)}var h=I$();function y(k){Xn(H,k),H.length=t.length,h.notifyListeners(H.location,H.action)}var b=!1,v=null;function $(k,B){return k.pathname===B.pathname&&k.search===B.search&&k.hash===B.hash}function x(){var k=Lu(),B=d(k);if(k!==B)rv(B);else{var D=m(),K=H.location;if(!b&&$(K,D)||v===go(D))return;v=null,E(D)}}function E(k){if(b)b=!1,y();else{var B="POP";h.confirmTransitionTo(k,B,o,function(D){D?y({action:B,location:k}):C(k)})}}function C(k){var B=H.location,D=I.lastIndexOf(go(B));D===-1&&(D=0);var K=I.lastIndexOf(go(k));K===-1&&(K=0);var Q=D-K;Q&&(b=!0,M(Q))}var w=Lu(),R=d(w);w!==R&&rv(R);var P=m(),I=[go(P)];function T(k){var B=document.querySelector("base"),D="";return B&&B.getAttribute("href")&&(D=Uz(window.location.href)),D+"#"+d(c+go(k))}function L(k,B){var D="PUSH",K=Mo(k,void 0,void 0,H.location);h.confirmTransitionTo(K,D,o,function(Q){if(Q){var Z=go(K),X=d(c+Z),J=Lu()!==X;if(J){v=Z,KZ(X);var ne=I.lastIndexOf(go(H.location)),oe=I.slice(0,ne+1);oe.push(Z),I=oe,y({action:D,location:K})}else y()}})}function z(k,B){var D="REPLACE",K=Mo(k,void 0,void 0,H.location);h.confirmTransitionTo(K,D,o,function(Q){if(Q){var Z=go(K),X=d(c+Z),J=Lu()!==X;J&&(v=Z,rv(X));var ne=I.indexOf(go(H.location));ne!==-1&&(I[ne]=Z),y({action:D,location:K})}})}function M(k){t.go(k)}function O(){M(-1)}function _(){M(1)}var F=0;function W(k){F+=k,F===1&&k===1?window.addEventListener(NN,x):F===0&&window.removeEventListener(NN,x)}var q=!1;function G(k){k===void 0&&(k=!1);var B=h.setPrompt(k);return q||(W(1),q=!0),function(){return q&&(q=!1,W(-1)),B()}}function j(k){var B=h.appendListener(k);return W(1),function(){W(-1),B()}}var H={length:t.length,action:"POP",location:P,createHref:T,push:L,replace:z,go:M,goBack:O,goForward:_,block:G,listen:j};return H}function TN(e,t,n){return Math.min(Math.max(e,t),n)}function qZ(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=r===void 0?["/"]:r,s=t.initialIndex,i=s===void 0?0:s,c=t.keyLength,f=c===void 0?6:c,d=I$();function p(T){Xn(I,T),I.length=I.entries.length,d.notifyListeners(I.location,I.action)}function m(){return Math.random().toString(36).substr(2,f)}var h=TN(i,0,o.length-1),y=o.map(function(T){return typeof T=="string"?Mo(T,void 0,m()):Mo(T,void 0,T.key||m())}),b=go;function v(T,L){var z="PUSH",M=Mo(T,L,m(),I.location);d.confirmTransitionTo(M,z,n,function(O){if(O){var _=I.index,F=_+1,W=I.entries.slice(0);W.length>F?W.splice(F,W.length-F,M):W.push(M),p({action:z,location:M,index:F,entries:W})}})}function $(T,L){var z="REPLACE",M=Mo(T,L,m(),I.location);d.confirmTransitionTo(M,z,n,function(O){O&&(I.entries[I.index]=M,p({action:z,location:M}))})}function x(T){var L=TN(I.index+T,0,I.entries.length-1),z="POP",M=I.entries[L];d.confirmTransitionTo(M,z,n,function(O){O?p({action:z,location:M,index:L}):p()})}function E(){x(-1)}function C(){x(1)}function w(T){var L=I.index+T;return L>=0&&L<I.entries.length}function R(T){return T===void 0&&(T=!1),d.setPrompt(T)}function P(T){return d.appendListener(T)}var I={length:y.length,action:"POP",location:y[h],index:h,entries:y,createHref:b,push:v,replace:$,go:x,goBack:E,goForward:C,canGo:w,block:R,listen:P};return I}var wa={exports:{}},ov,MN;function GZ(){return MN||(MN=1,ov=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}),ov}var ON;function XZ(){if(ON)return wa.exports;ON=1;var e=GZ();wa.exports=$,wa.exports.parse=n,wa.exports.compile=o,wa.exports.tokensToFunction=c,wa.exports.tokensToRegExp=v;var t=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function n(x,E){for(var C=[],w=0,R=0,P="",I=E&&E.delimiter||"/",T;(T=t.exec(x))!=null;){var L=T[0],z=T[1],M=T.index;if(P+=x.slice(R,M),R=M+L.length,z){P+=z[1];continue}var O=x[R],_=T[2],F=T[3],W=T[4],q=T[5],G=T[6],j=T[7];P&&(C.push(P),P="");var H=_!=null&&O!=null&&O!==_,k=G==="+"||G==="*",B=G==="?"||G==="*",D=_||I,K=W||q,Q=_||(typeof C[C.length-1]=="string"?C[C.length-1]:"");C.push({name:F||w++,prefix:_||"",delimiter:D,optional:B,repeat:k,partial:H,asterisk:!!j,pattern:K?d(K):j?".*":r(D,Q)})}return R<x.length&&(P+=x.substr(R)),P&&C.push(P),C}function r(x,E){return!E||E.indexOf(x)>-1?"[^"+f(x)+"]+?":f(E)+"|(?:(?!"+f(E)+")[^"+f(x)+"])+?"}function o(x,E){return c(n(x,E),E)}function s(x){return encodeURI(x).replace(/[\/?#]/g,function(E){return"%"+E.charCodeAt(0).toString(16).toUpperCase()})}function i(x){return encodeURI(x).replace(/[?#]/g,function(E){return"%"+E.charCodeAt(0).toString(16).toUpperCase()})}function c(x,E){for(var C=new Array(x.length),w=0;w<x.length;w++)typeof x[w]=="object"&&(C[w]=new RegExp("^(?:"+x[w].pattern+")$",m(E)));return function(R,P){for(var I="",T=R||{},L=P||{},z=L.pretty?s:encodeURIComponent,M=0;M<x.length;M++){var O=x[M];if(typeof O=="string"){I+=O;continue}var _=T[O.name],F;if(_==null)if(O.optional){O.partial&&(I+=O.prefix);continue}else throw new TypeError('Expected "'+O.name+'" to be defined');if(e(_)){if(!O.repeat)throw new TypeError('Expected "'+O.name+'" to not repeat, but received `'+JSON.stringify(_)+"`");if(_.length===0){if(O.optional)continue;throw new TypeError('Expected "'+O.name+'" to not be empty')}for(var W=0;W<_.length;W++){if(F=z(_[W]),!C[M].test(F))throw new TypeError('Expected all "'+O.name+'" to match "'+O.pattern+'", but received `'+JSON.stringify(F)+"`");I+=(W===0?O.prefix:O.delimiter)+F}continue}if(F=O.asterisk?i(_):z(_),!C[M].test(F))throw new TypeError('Expected "'+O.name+'" to match "'+O.pattern+'", but received "'+F+'"');I+=O.prefix+F}return I}}function f(x){return x.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function d(x){return x.replace(/([=!:$\/()])/g,"\\$1")}function p(x,E){return x.keys=E,x}function m(x){return x&&x.sensitive?"":"i"}function h(x,E){var C=x.source.match(/\((?!\?)/g);if(C)for(var w=0;w<C.length;w++)E.push({name:w,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(x,E)}function y(x,E,C){for(var w=[],R=0;R<x.length;R++)w.push($(x[R],E,C).source);var P=new RegExp("(?:"+w.join("|")+")",m(C));return p(P,E)}function b(x,E,C){return v(n(x,C),E,C)}function v(x,E,C){e(E)||(C=E||C,E=[]),C=C||{};for(var w=C.strict,R=C.end!==!1,P="",I=0;I<x.length;I++){var T=x[I];if(typeof T=="string")P+=f(T);else{var L=f(T.prefix),z="(?:"+T.pattern+")";E.push(T),T.repeat&&(z+="(?:"+L+z+")*"),T.optional?T.partial?z=L+"("+z+")?":z="(?:"+L+"("+z+"))?":z=L+"("+z+")",P+=z}}var M=f(C.delimiter||"/"),O=P.slice(-M.length)===M;return w||(P=(O?P.slice(0,-M.length):P)+"(?:"+M+"(?=$))?"),R?P+="$":P+=w&&O?"":"(?="+M+"|$)",p(new RegExp("^"+P,m(C)),E)}function $(x,E,C){return e(E)||(C=E||C,E=[]),C=C||{},x instanceof RegExp?h(x,E):e(x)?y(x,E,C):b(x,E,C)}return wa.exports}var YZ=XZ();const QZ=lh(YZ);var sv={exports:{}},wn={};/** @license React v16.13.1
|
|
372
|
+
* react-is.production.min.js
|
|
373
|
+
*
|
|
374
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the MIT license found in the
|
|
377
|
+
* LICENSE file in the root directory of this source tree.
|
|
378
|
+
*/var zN;function JZ(){if(zN)return wn;zN=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function C(R){if(typeof R=="object"&&R!==null){var P=R.$$typeof;switch(P){case t:switch(R=R.type,R){case f:case d:case r:case s:case o:case m:return R;default:switch(R=R&&R.$$typeof,R){case c:case p:case b:case y:case i:return R;default:return P}}case n:return P}}}function w(R){return C(R)===d}return wn.AsyncMode=f,wn.ConcurrentMode=d,wn.ContextConsumer=c,wn.ContextProvider=i,wn.Element=t,wn.ForwardRef=p,wn.Fragment=r,wn.Lazy=b,wn.Memo=y,wn.Portal=n,wn.Profiler=s,wn.StrictMode=o,wn.Suspense=m,wn.isAsyncMode=function(R){return w(R)||C(R)===f},wn.isConcurrentMode=w,wn.isContextConsumer=function(R){return C(R)===c},wn.isContextProvider=function(R){return C(R)===i},wn.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},wn.isForwardRef=function(R){return C(R)===p},wn.isFragment=function(R){return C(R)===r},wn.isLazy=function(R){return C(R)===b},wn.isMemo=function(R){return C(R)===y},wn.isPortal=function(R){return C(R)===n},wn.isProfiler=function(R){return C(R)===s},wn.isStrictMode=function(R){return C(R)===o},wn.isSuspense=function(R){return C(R)===m},wn.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===s||R===o||R===m||R===h||typeof R=="object"&&R!==null&&(R.$$typeof===b||R.$$typeof===y||R.$$typeof===i||R.$$typeof===c||R.$$typeof===p||R.$$typeof===$||R.$$typeof===x||R.$$typeof===E||R.$$typeof===v)},wn.typeOf=C,wn}var AN;function qz(){return AN||(AN=1,sv.exports=JZ()),sv.exports}qz();var iv,LN;function ZZ(){if(LN)return iv;LN=1;var e=qz(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function i(b){return e.isMemo(b)?o:s[b.$$typeof]||t}var c=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;function y(b,v,$){if(typeof v!="string"){if(h){var x=m(v);x&&x!==h&&y(b,x,$)}var E=f(v);d&&(E=E.concat(d(v)));for(var C=i(b),w=i(v),R=0;R<E.length;++R){var P=E[R];if(!n[P]&&!($&&$[P])&&!(w&&w[P])&&!(C&&C[P])){var I=p(v,P);try{c(b,P,I)}catch{}}}}return b}return iv=y,iv}ZZ();var av=1073741823,DN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function eee(){var e="__global_unique_id__";return DN[e]=(DN[e]||0)+1}function tee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function nee(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(o){return o!==r})},get:function(){return e},set:function(r,o){e=r,t.forEach(function(s){return s(e,o)})}}}function ree(e){return Array.isArray(e)?e[0]:e}function oee(e,t){var n,r,o="__create-react-context-"+eee()+"__",s=(function(c){Bs(f,c);function f(){for(var p,m=arguments.length,h=new Array(m),y=0;y<m;y++)h[y]=arguments[y];return p=c.call.apply(c,[this].concat(h))||this,p.emitter=nee(p.props.value),p}var d=f.prototype;return d.getChildContext=function(){var m;return m={},m[o]=this.emitter,m},d.componentWillReceiveProps=function(m){if(this.props.value!==m.value){var h=this.props.value,y=m.value,b;tee(h,y)?b=0:(b=typeof t=="function"?t(h,y):av,b|=0,b!==0&&this.emitter.set(m.value,b))}},d.render=function(){return this.props.children},f})(ee.Component);s.childContextTypes=(n={},n[o]=wN.object.isRequired,n);var i=(function(c){Bs(f,c);function f(){for(var p,m=arguments.length,h=new Array(m),y=0;y<m;y++)h[y]=arguments[y];return p=c.call.apply(c,[this].concat(h))||this,p.observedBits=void 0,p.state={value:p.getValue()},p.onUpdate=function(b,v){var $=p.observedBits|0;($&v)!==0&&p.setState({value:p.getValue()})},p}var d=f.prototype;return d.componentWillReceiveProps=function(m){var h=m.observedBits;this.observedBits=h??av},d.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var m=this.props.observedBits;this.observedBits=m??av},d.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},d.getValue=function(){return this.context[o]?this.context[o].get():e},d.render=function(){return ree(this.props.children)(this.state.value)},f})(ee.Component);return i.contextTypes=(r={},r[o]=wN.object,r),{Provider:s,Consumer:i}}var see=ee.createContext||oee,Gz=function(t){var n=see();return n.displayName=t,n},Xz=Gz("Router-History"),oa=Gz("Router"),Gh=(function(e){Bs(t,e),t.computeRootMatch=function(o){return{path:"/",url:"/",params:{},isExact:o==="/"}};function t(r){var o;return o=e.call(this,r)||this,o.state={location:r.history.location},o._isMounted=!1,o._pendingLocation=null,r.staticContext||(o.unlisten=r.history.listen(function(s){o._pendingLocation=s})),o}var n=t.prototype;return n.componentDidMount=function(){var o=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(s){o._isMounted&&o.setState({location:s})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return ee.createElement(oa.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},ee.createElement(Xz.Provider,{children:this.props.children||null,value:this.props.history}))},t})(ee.Component);ee.Component;ee.Component;var BN={},iee=1e4,_N=0;function aee(e,t){var n=""+t.end+t.strict+t.sensitive,r=BN[n]||(BN[n]={});if(r[e])return r[e];var o=[],s=QZ(e,o,t),i={regexp:s,keys:o};return _N<iee&&(r[e]=i,_N++),i}function P$(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,s=o===void 0?!1:o,i=n.strict,c=i===void 0?!1:i,f=n.sensitive,d=f===void 0?!1:f,p=[].concat(r);return p.reduce(function(m,h){if(!h&&h!=="")return null;if(m)return m;var y=aee(h,{end:s,strict:c,sensitive:d}),b=y.regexp,v=y.keys,$=b.exec(e);if(!$)return null;var x=$[0],E=$.slice(1),C=e===x;return s&&!C?null:{path:h,url:h==="/"&&x===""?"/":x,isExact:C,params:v.reduce(function(w,R,P){return w[R.name]=E[P],w},{})}},null)}function lee(e){return ee.Children.count(e)===0}var Ni=(function(e){Bs(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this;return ee.createElement(oa.Consumer,null,function(s){s||hl();var i=o.props.location||s.location,c=o.props.computedMatch?o.props.computedMatch:o.props.path?P$(i.pathname,o.props):s.match,f=Xn({},s,{location:i,match:c}),d=o.props,p=d.children,m=d.component,h=d.render;return Array.isArray(p)&&lee(p)&&(p=null),ee.createElement(oa.Provider,{value:f},f.match?p?typeof p=="function"?p(f):p:m?ee.createElement(m,f):h?h(f):null:typeof p=="function"?p(f):null)})},t})(ee.Component);function N$(e){return e.charAt(0)==="/"?e:"/"+e}function cee(e,t){return e?Xn({},t,{pathname:N$(e)+t.pathname}):t}function uee(e,t){if(!e)return t;var n=N$(e);return t.pathname.indexOf(n)!==0?t:Xn({},t,{pathname:t.pathname.substr(n.length)})}function FN(e){return typeof e=="string"?e:go(e)}function lv(e){return function(){hl()}}function kN(){}ee.Component;var dee=(function(e){Bs(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this;return ee.createElement(oa.Consumer,null,function(s){s||hl();var i=o.props.location||s.location,c,f;return ee.Children.forEach(o.props.children,function(d){if(f==null&&ee.isValidElement(d)){c=d;var p=d.props.path||d.props.from;f=p?P$(i.pathname,Xn({},d.props,{path:p})):s.match}}),f?ee.cloneElement(c,{location:i,computedMatch:f}):null})},t})(ee.Component),T$=ee.useContext;function af(){return T$(Xz)}function Xh(){return T$(oa).location}function Yh(){var e=T$(oa).match;return e?e.params:{}}var fee=(function(e){Bs(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.history=WZ(r.props),r}var n=t.prototype;return n.render=function(){return ee.createElement(Gh,{history:this.history,children:this.props.children})},t})(ee.Component);ee.Component;var SC=function(t,n){return typeof t=="function"?t(n):t},$C=function(t,n){return typeof t=="string"?Mo(t,null,null,n):t},M$=function(t){return t},Ac=ee.forwardRef;typeof Ac>"u"&&(Ac=M$);function pee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var mee=Ac(function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,s=Dh(e,["innerRef","navigate","onClick"]),i=s.target,c=Xn({},s,{onClick:function(d){try{o&&o(d)}catch(p){throw d.preventDefault(),p}!d.defaultPrevented&&d.button===0&&(!i||i==="_self")&&!pee(d)&&(d.preventDefault(),r())}});return M$!==Ac?c.ref=t||n:c.ref=n,ee.createElement("a",c)}),O$=Ac(function(e,t){var n=e.component,r=n===void 0?mee:n,o=e.replace,s=e.to,i=e.innerRef,c=Dh(e,["component","replace","to","innerRef"]);return ee.createElement(oa.Consumer,null,function(f){f||hl();var d=f.history,p=$C(SC(s,f.location),f.location),m=p?d.createHref(p):"",h=Xn({},c,{href:m,navigate:function(){var b=SC(s,f.location),v=go(f.location)===go($C(b)),$=o||v?d.replace:d.push;$(b)}});return M$!==Ac?h.ref=t||i:h.innerRef=i,ee.createElement(r,h)})}),Yz=function(t){return t},Zm=ee.forwardRef;typeof Zm>"u"&&(Zm=Yz);function hee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r}).join(" ")}Zm(function(e,t){var n=e["aria-current"],r=n===void 0?"page":n,o=e.activeClassName,s=o===void 0?"active":o,i=e.activeStyle,c=e.className,f=e.exact,d=e.isActive,p=e.location,m=e.sensitive,h=e.strict,y=e.style,b=e.to,v=e.innerRef,$=Dh(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return ee.createElement(oa.Consumer,null,function(x){x||hl();var E=p||x.location,C=$C(SC(b,E),E),w=C.pathname,R=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=R?P$(E.pathname,{path:R,exact:f,sensitive:m,strict:h}):null,I=!!(d?d(P,E):P),T=typeof c=="function"?c(I):c,L=typeof y=="function"?y(I):y;I&&(T=hee(T,s),L=Xn({},L,i));var z=Xn({"aria-current":I&&r||null,className:T,style:L,to:C},$);return Yz!==Zm?z.ref=t||v:z.innerRef=v,ee.createElement(O$,z)})});var gee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"};function wC(){return wC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wC.apply(this,arguments)}const yee=(e,t)=>a.createElement(_t,wC({},e,{ref:t,icon:gee})),bee=a.forwardRef(yee);var vee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EC.apply(this,arguments)}const xee=(e,t)=>a.createElement(_t,EC({},e,{ref:t,icon:vee})),Cee=a.forwardRef(xee);var See={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"};function RC(){return RC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RC.apply(this,arguments)}const $ee=(e,t)=>a.createElement(_t,RC({},e,{ref:t,icon:See})),wee=a.forwardRef($ee);var Eee={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"};function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IC.apply(this,arguments)}const Ree=(e,t)=>a.createElement(_t,IC({},e,{ref:t,icon:Eee})),Iee=a.forwardRef(Ree);var Pee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};function PC(){return PC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PC.apply(this,arguments)}const Nee=(e,t)=>a.createElement(_t,PC({},e,{ref:t,icon:Pee})),Tee=a.forwardRef(Nee);var Mee={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"};function NC(){return NC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NC.apply(this,arguments)}const Oee=(e,t)=>a.createElement(_t,NC({},e,{ref:t,icon:Mee})),zee=a.forwardRef(Oee);var Aee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};function TC(){return TC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TC.apply(this,arguments)}const Lee=(e,t)=>a.createElement(_t,TC({},e,{ref:t,icon:Aee})),Dee=a.forwardRef(Lee);var Bee={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};function MC(){return MC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MC.apply(this,arguments)}const _ee=(e,t)=>a.createElement(_t,MC({},e,{ref:t,icon:Bee})),Fee=a.forwardRef(_ee);var kee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};function OC(){return OC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OC.apply(this,arguments)}const Hee=(e,t)=>a.createElement(_t,OC({},e,{ref:t,icon:kee})),Qz=a.forwardRef(Hee);var jee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};function zC(){return zC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zC.apply(this,arguments)}const Wee=(e,t)=>a.createElement(_t,zC({},e,{ref:t,icon:jee})),Jz=a.forwardRef(Wee);var Vee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"};function AC(){return AC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AC.apply(this,arguments)}const Kee=(e,t)=>a.createElement(_t,AC({},e,{ref:t,icon:Vee})),Uee=a.forwardRef(Kee);var qee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function LC(){return LC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LC.apply(this,arguments)}const Gee=(e,t)=>a.createElement(_t,LC({},e,{ref:t,icon:qee})),Xee=a.forwardRef(Gee);var Yee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-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-8zm0 136H232c-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-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0025.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z"}}]},name:"schedule",theme:"outlined"};function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DC.apply(this,arguments)}const Qee=(e,t)=>a.createElement(_t,DC({},e,{ref:t,icon:Yee})),Jee=a.forwardRef(Qee);var Zee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z"}}]},name:"snippets",theme:"outlined"};function BC(){return BC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BC.apply(this,arguments)}const ete=(e,t)=>a.createElement(_t,BC({},e,{ref:t,icon:Zee})),tte=a.forwardRef(ete);var nte={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"};function _C(){return _C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_C.apply(this,arguments)}const rte=(e,t)=>a.createElement(_t,_C({},e,{ref:t,icon:nte})),ote=a.forwardRef(rte);var ste={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};function FC(){return FC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FC.apply(this,arguments)}const ite=(e,t)=>a.createElement(_t,FC({},e,{ref:t,icon:ste})),ate=a.forwardRef(ite);var lte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"};function kC(){return kC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kC.apply(this,arguments)}const cte=(e,t)=>a.createElement(_t,kC({},e,{ref:t,icon:lte})),ute=a.forwardRef(cte),dte={brand:"#A9D8B8",brandHover:"#6FA184",dangerHover:"#B5645F",warningHover:"#C68A4E"},fte={light:{bg:"#F2F3F1",surface:"#FFFFFF",surfaceAlt:"#DDE3DE",text:"#1B1F1D",textMuted:"rgba(27, 31, 29, 0.68)",textFaint:"rgba(27, 31, 29, 0.5)",border:"#DDE3DE",borderStrong:"#C9D1CB",onBrand:"#1B1F1D",brandSolid:"#A9D8B8",brandSolidHover:"#6FA184",link:"#6FA184",infoText:"#4F86AD",warningText:"#B47A3C",dangerText:"#A85450",overlay:"rgba(9, 12, 18, 0.45)"},dark:{bg:"#171A19",surface:"#1F2422",surfaceAlt:"#272D2A",text:"#EDEFEC",textMuted:"rgba(237, 239, 236, 0.68)",textFaint:"rgba(237, 239, 236, 0.5)",border:"#2C332F",borderStrong:"#3A423D",onBrand:"#1B1F1D",brandSolid:"#6FA184",brandSolidHover:"#A9D8B8",link:"#A9D8B8",infoText:"#8FB8D8",warningText:"#C68A4E",dangerText:"#C98A86",overlay:"rgba(0, 0, 0, 0.55)"}},pte={PENDING:"#8A908C",ACTIVE:"#5B87A8",COMPLETED:"#6FA184",FAILED:"#B5645F",RETRY:"#C68A4E",CANCELLED:"#9AA09C",EXPIRED:"#9AA09C",STALLED:"#9A7AA0"},mte={sm:6,md:10,lg:16},hte={4:16},gte={md:14},yte={body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Inter", system-ui, sans-serif',display:'"Space Grotesk", "Segoe UI", system-ui, sans-serif',mono:'"JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace'},bte={md:"0 4px 12px rgba(27, 31, 29, 0.07), 0 2px 6px rgba(27, 31, 29, 0.05)",lg:"0 12px 32px rgba(27, 31, 29, 0.1), 0 6px 16px rgba(27, 31, 29, 0.07)"},vte={easing:"cubic-bezier(0.4, 0, 0.2, 1)",fastMs:120,baseMs:200,slowMs:320},xte={palette:dte,modes:fte,status:pte,radius:mte,space:hte,fontSize:gte,font:yte,shadow:bte,motion:vte},xn=xte;function Cte(e){return xn.status[e.toUpperCase()]??xn.status.PENDING}function HN({variant:e="full",size:t=32,color:n}){const r=`pq-logo-${ee.useId()}`,o=e==="mono",s=o?"currentColor":`url(#${r})`,i=xn.modes.light,c=o?i.surface:i.text,f=o?i.surface:i.bg,d=o?i.surface:i.surfaceAlt,p=V.jsxs("svg",{width:t,height:t,viewBox:"0 0 40 40",role:"img","aria-label":"PortQueue",style:{color:n??"currentColor",flex:"0 0 auto"},children:[!o&&V.jsx("defs",{children:V.jsxs("linearGradient",{id:r,x1:"0",y1:"0",x2:"40",y2:"40",gradientUnits:"userSpaceOnUse",children:[V.jsx("stop",{offset:"0",stopColor:xn.palette.brand}),V.jsx("stop",{offset:"1",stopColor:xn.palette.brandHover})]})}),V.jsx("rect",{x:"2",y:"2",width:"36",height:"36",rx:"10",fill:s}),V.jsx("path",{d:"M9 23 L31 23 L27 30 L13 30 Z",fill:c,opacity:o?.75:1}),V.jsx("rect",{x:"11.5",y:"13.5",width:"5",height:"4",rx:"1",fill:f,opacity:o?.9:1}),V.jsx("rect",{x:"17.5",y:"13.5",width:"5",height:"4",rx:"1",fill:d,opacity:o?.6:1}),V.jsx("rect",{x:"23.5",y:"13.5",width:"5",height:"4",rx:"1",fill:f,opacity:o?.9:1}),V.jsx("rect",{x:"11.5",y:"18",width:"5",height:"4",rx:"1",fill:d,opacity:o?.6:1}),V.jsx("rect",{x:"17.5",y:"18",width:"5",height:"4",rx:"1",fill:f,opacity:o?.9:1}),V.jsx("rect",{x:"23.5",y:"18",width:"5",height:"4",rx:"1",fill:d,opacity:o?.6:1})]});return e==="mark"||e==="mono"?p:V.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:10},children:[p,V.jsxs("span",{style:{fontFamily:xn.font.display,fontWeight:700,fontSize:t*.6,letterSpacing:"-0.02em",color:n??"currentColor"},children:["Port",V.jsx("span",{style:{color:xn.palette.brandHover},children:"Queue"})]})]})}const jN="portqueue-live-updates",Zz=a.createContext(null);function Ste({children:e}){const[t,n]=a.useState(()=>typeof localStorage>"u"?!0:localStorage.getItem(jN)!=="off"),r=a.useCallback(s=>{n(s),typeof localStorage<"u"&&localStorage.setItem(jN,s?"on":"off")},[]),o=a.useMemo(()=>({live:t,setLive:r}),[t,r]);return V.jsx(Zz.Provider,{value:o,children:e})}function e3(){const e=a.useContext(Zz);if(!e)throw new Error("useLive must be used within LiveProvider");return e}const $te=15e3,gs={queues:e=>["queues",e??{}],stats:e=>["stats",e??null],jobs:e=>["jobs",e??{}],job:e=>["job",e],schedules:e=>["schedules",e??{}],schedule:e=>["schedule",e],instances:e=>["instances",e??{}],instance:e=>["instance",e]},wte=["queues","stats","jobs","job","schedules","schedule","instances","instance"];function _s(e,t){const{live:n}=e3();return KT({queryKey:e,queryFn:t,refetchInterval:n?$te:!1,refetchIntervalInBackground:!1,refetchOnWindowFocus:n,placeholderData:r=>r})}function Ete(e,t){return KT({queryKey:e,queryFn:t,placeholderData:n=>n})}function t3(){const e=WT();return a.useCallback(()=>{for(const t of wte)e.invalidateQueries({queryKey:[t]})},[e])}var On=(e=>(e.PENDING="PENDING",e.ACTIVE="ACTIVE",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.RETRY="RETRY",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e))(On||{}),wd=(e=>(e.PROCESSING="PROCESSING",e.ALL="ALL",e))(wd||{});const Rte=["Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."],Ku=e=>String(e).padStart(2,"0");function Ite(e){if(!e)return"UTC";const t=e>0?"+":"-",n=Math.abs(e),r=n%60;return`UTC${t}${Math.floor(n/60)}${r?`:${Ku(r)}`:""}`}function n3(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return null;const n=`${Ku(t.getDate())} ${Rte[t.getMonth()]} ${t.getFullYear()}`,r=`${Ku(t.getHours())}:${Ku(t.getMinutes())}:${Ku(t.getSeconds())}`;return{instant:`${n} ${r}`,offset:Ite(-t.getTimezoneOffset())}}function r3(e){const t=n3(e);return t?`${t.instant} ${t.offset}`:"—"}const fm=1e3,Uu=60*fm,cv=60*Uu;function Pte(e,t){if(!e||!t)return"—";const n=new Date(t).getTime()-new Date(e).getTime();return Number.isNaN(n)||n<0?"—":n<fm?`${n}ms`:n<Uu?`${(n/fm).toFixed(1)}s`:n<cv?`${Math.floor(n/Uu)}m ${Math.round(n%Uu/fm)}s`:`${Math.floor(n/cv)}h ${Math.round(n%cv/Uu)}m`}function Nte(e,t=8,n=6){return e?e.length<=t+n+1?e:`${e.slice(0,t)}…${e.slice(-n)}`:"—"}function z$(e){return Object.values(e).reduce((t,n)=>t+(n??0),0)}const Qh="STALLED",Jh={[On.PENDING]:{label:"Pending"},[On.ACTIVE]:{label:"Active"},[On.COMPLETED]:{label:"Completed"},[On.FAILED]:{label:"Failed"},[On.RETRY]:{label:"Retry"},[On.CANCELLED]:{label:"Cancelled"},[On.EXPIRED]:{label:"Expired"}},Tte="Stalled",Mte=[On.ACTIVE,On.PENDING,On.FAILED,On.COMPLETED],Ote=[On.ACTIVE,On.PENDING,On.FAILED,On.COMPLETED];function A$(e){return e===Qh?Tte:Jh[e]?.label??e}const zte={[wd.PROCESSING]:{label:"Pause processing (still accepts jobs)"},[wd.ALL]:{label:"Pause all (also refuse new jobs)"}},id={running:{label:"Running"},processingPaused:{label:"Paused"},allPaused:{label:"Paused (all)"}},eh={alive:{label:"Alive"},stale:{label:"Stale"}},th={enabled:{label:"Enabled"},disabled:{label:"Disabled"}},WN={live:{label:"Pause",icon:V.jsx(Qz,{"aria-hidden":!0}),hint:"Auto-updates are on (every 15s) — pause to freeze the data"},paused:{label:"Resume",icon:V.jsx(Jz,{"aria-hidden":!0}),hint:"Auto-updates are paused — data is frozen until you resume"}},wt={retry:{label:"Retry",icon:V.jsx(Xee,{"aria-hidden":!0})},cancel:{label:"Cancel",icon:V.jsx(ote,{"aria-hidden":!0})},remove:{label:"Remove",icon:V.jsx(VJ,{"aria-hidden":!0})},pause:{label:"Pause",icon:V.jsx(Qz,{"aria-hidden":!0})},resume:{label:"Resume",icon:V.jsx(Jz,{"aria-hidden":!0})},add:{label:"Add job",icon:V.jsx(i$,{"aria-hidden":!0})},filters:{label:"Filters",icon:V.jsx(Iee,{"aria-hidden":!0})},refresh:{icon:V.jsx(YG,{"aria-hidden":!0})},clone:{label:"Clone",icon:V.jsx(tte,{"aria-hidden":!0})},bulk:{label:"Bulk actions",icon:V.jsx(ute,{"aria-hidden":!0})}};function Ate(e){return e.processingPaused?e.acceptingPaused?id.allPaused.label:id.processingPaused.label:id.running.label}const o3=[{label:id.running.label,value:"running"},{label:id.processingPaused.label,value:"paused"}];function s3(e){return Date.now()>Date.parse(e.removableAfter)}const Gi={removeBlocked:e=>`Seen recently — removable from ${r3(Date.parse(e))}`,pauseConfirm:"Pause job processing on this instance?",removeConfirm:"Remove this inactive instance from monitoring?",removeConfirmDescription:"Only tidies the instances list; job history is untouched."},Lte="_desktopOnly_dlvml_7",Dte="_mobileOnly_dlvml_13",VN={desktopOnly:Lte,mobileOnly:Dte},KN=200,i3=[{to:"/",label:"Overview",icon:V.jsx(Cee,{"aria-hidden":!0})},{to:"/instances",label:"Instances",icon:V.jsx(bee,{"aria-hidden":!0})},{to:"/schedules",label:"Schedules",icon:V.jsx(Jee,{"aria-hidden":!0})}],Bte=[{href:"https://episclera.github.io/portqueue/",label:"Docs",icon:V.jsx(Uee,{"aria-hidden":!0})},{href:"https://github.com/episclera/portqueue",label:"GitHub",icon:V.jsx(Tee,{"aria-hidden":!0})}];function _te(e){if(e==="/")return["/"];const t=i3.find(n=>n.to!=="/"&&e.startsWith(n.to));return t?[t.to]:[]}function UN(){const e=Xh(),{token:t}=Ds.useToken();return V.jsxs(Sn,{component:"nav",vertical:!0,"aria-label":"Main navigation",style:{height:"100%"},children:[V.jsx(fl,{mode:"inline",selectedKeys:_te(e.pathname),style:{borderInlineEnd:0,flex:1},items:i3.map(n=>({key:n.to,icon:n.icon,label:V.jsx(O$,{to:n.to,children:n.label})}))}),V.jsx(Sn,{gap:t.marginXS,wrap:!0,style:{padding:t.paddingSM,borderTop:`1px solid ${t.colorBorderSecondary}`},children:Bte.map(n=>V.jsx(sn,{href:n.href,target:"_blank",rel:"noreferrer noopener",icon:n.icon,style:{paddingInline:t.paddingXS},children:n.label},n.href))})]})}function Fte(){const{live:e,setLive:t}=e3(),n=t3(),r=e?WN.live:WN.paused;return V.jsxs(Sn,{gap:"small",align:"center",children:[V.jsx(rr,{title:r.hint,placement:"bottom",children:V.jsx(sn,{icon:r.icon,onClick:()=>t(!e),"aria-label":`${r.label} auto-updates`,children:r.label})}),V.jsx(rr,{title:"Fetch the latest data now",placement:"bottom",children:V.jsx(sn,{icon:wt.refresh.icon,onClick:n,"aria-label":"Refresh now"})})]})}function kte({mode:e,onChange:t}){const n=e==="dark"?"light":"dark";return V.jsx(sn,{type:"text",icon:e==="dark"?V.jsx(Fee,{"aria-hidden":!0}):V.jsx(ate,{"aria-hidden":!0}),onClick:()=>t(n),title:`Switch to ${n} theme`,"aria-label":`Switch to ${n} theme`})}function Hte({mode:e,onThemeChange:t,children:n}){const[r,o]=a.useState(!1),s=Xh(),{token:i}=Ds.useToken();return a.useEffect(()=>o(!1),[s.pathname]),V.jsxs(Ms,{style:{minHeight:"100vh"},children:[V.jsxs(Ms.Header,{style:{position:"sticky",top:0,zIndex:i.zIndexPopupBase-1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:i.marginSM,borderBottom:`1px solid ${i.colorBorderSecondary}`,lineHeight:"normal"},children:[V.jsxs(Sn,{align:"center",gap:"middle",children:[V.jsx("span",{className:VN.mobileOnly,children:V.jsx(sn,{icon:V.jsx(Dee,{"aria-hidden":!0}),"aria-label":"Toggle navigation","aria-expanded":r,onClick:()=>o(c=>!c)})}),V.jsx(O$,{to:"/","aria-label":"Home",style:{display:"inline-flex",color:"inherit"},children:V.jsx(HN,{variant:"full",size:30})})]}),V.jsxs(Sn,{align:"center",gap:"small",children:[V.jsx(Fte,{}),V.jsx(kte,{mode:e,onChange:t})]})]}),V.jsxs(Ms,{hasSider:!0,children:[V.jsx(Ms.Sider,{width:KN,className:VN.desktopOnly,style:{position:"sticky",top:60,height:"calc(100vh - 60px)",borderRight:`1px solid ${i.colorBorderSecondary}`,overflowY:"auto"},children:V.jsx(UN,{})}),V.jsx(Ms.Content,{style:{minWidth:0},children:n})]}),V.jsx(A6,{open:r,onClose:()=>o(!1),placement:"left",size:KN+58,title:V.jsx(HN,{variant:"full",size:26}),styles:{body:{padding:0}},children:V.jsx(UN,{})})]})}function Oo({title:e,entity:t,tags:n,subtitle:r,extra:o}){const{token:s}=Ds.useToken();return V.jsxs(Sn,{component:"header",justify:"space-between",align:"center",gap:s.marginSM,wrap:!0,style:{padding:`${s.paddingMD}px ${s.paddingLG}px`,background:s.colorBgContainer,borderBottom:`1px solid ${s.colorBorderSecondary}`},children:[V.jsxs(Sn,{vertical:!0,gap:s.marginXXS,style:{minWidth:0},children:[V.jsxs(Sn,{vertical:!0,children:[t?V.jsx(zn.Text,{type:"secondary",style:{fontSize:s.fontSize,lineHeight:1.3},children:t}):null,V.jsxs(Sn,{align:"center",gap:s.marginXS,wrap:!0,children:[V.jsx(zn.Title,{level:3,style:{margin:0,wordBreak:"break-word"},children:e}),n!=null?V.jsx(Sn,{gap:s.marginXXS,align:"center",children:n}):null]})]}),r!=null?V.jsx(zn.Text,{type:"secondary",children:r}):null]}),o!=null?V.jsx("div",{children:o}):null]})}function qr({children:e}){const{token:t}=Ds.useToken();return V.jsx(Sn,{vertical:!0,gap:t.marginMD,style:{padding:t.paddingLG},children:e})}const jte=({error:e})=>V.jsx(Nr,{children:V.jsxs(Sn,{vertical:!0,gap:"middle",align:"flex-start",children:[V.jsx(PS,{type:"error",showIcon:!0,title:"Something went wrong rendering this page",description:e.message||"An unexpected error occurred.",style:{alignSelf:"stretch"}}),V.jsx(zn.Text,{type:"secondary",children:"The dashboard itself failed here — your queues and jobs are unaffected. Reloading usually clears it; if it happens consistently, the browser console has the full stack trace."}),V.jsx(sn,{type:"primary",onClick:()=>window.location.reload(),children:"Reload the dashboard"})]})});class Wte extends ee.Component{constructor(){super(...arguments);Ce(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidUpdate(n){this.state.error&&n.resetKey!==this.props.resetKey&&this.setState({error:null})}componentDidCatch(n,r){console.error("[portqueue-dashboard] Render error:",n,r.componentStack)}render(){return this.state.error?V.jsx(qr,{children:V.jsx(jte,{error:this.state.error})}):this.props.children}}var Nn=(e=>(e.PAUSE="pause",e.RESUME="resume",e.RETRY="retry",e.REMOVE="remove",e.CANCEL="cancel",e.ADD="add",e.REMOVE_SCHEDULE="removeSchedule",e.SET_SCHEDULE_ENABLED="setScheduleEnabled",e.REMOVE_QUEUE="removeQueue",e.PAUSE_INSTANCE="pauseInstance",e.RESUME_INSTANCE="resumeInstance",e.REMOVE_INSTANCE="removeInstance",e))(Nn||{});function a3(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vte}=Object.prototype,{getPrototypeOf:Lc}=Object,{iterator:lf,toStringTag:l3}=Symbol,nh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ed=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),nh(n,t))return!0;n=Lc(n)}return!1},Kte=(e,t)=>e!=null&&Ed(e,t)?e[t]:void 0,L$=(e=>t=>{const n=Vte.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bs=e=>(e=e.toLowerCase(),t=>L$(t)===e),Zh=e=>t=>typeof t===e,{isArray:el}=Array,Dc=Zh("undefined");function qc(e){return e!==null&&!Dc(e)&&e.constructor!==null&&!Dc(e.constructor)&&vo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const c3=bs("ArrayBuffer");function Ute(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&c3(e.buffer),t}const qte=Zh("string"),vo=Zh("function"),u3=Zh("number"),Gc=e=>e!==null&&typeof e=="object",Gte=e=>e===!0||e===!1,pm=e=>{if(!Gc(e))return!1;const t=Lc(e);return(t===null||t===Object.prototype||Lc(t)===null)&&!Ed(e,l3)&&!Ed(e,lf)},Xte=e=>{if(!Gc(e)||qc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Yte=bs("Date"),Qte=bs("File"),Jte=e=>!!(e&&typeof e.uri<"u"),Zte=e=>e&&typeof e.getParts<"u",ene=bs("Blob"),tne=bs("FileList"),nne=e=>Gc(e)&&vo(e.pipe);function rne(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const qN=rne(),GN=typeof qN.FormData<"u"?qN.FormData:void 0,one=e=>{if(!e)return!1;if(GN&&e instanceof GN)return!0;const t=Lc(e);if(!t||t===Object.prototype||!vo(e.append))return!1;const n=L$(e);return n==="formdata"||n==="object"&&vo(e.toString)&&e.toString()==="[object FormData]"},sne=bs("URLSearchParams"),[ine,ane,lne,cne]=["ReadableStream","Request","Response","Headers"].map(bs),une=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),el(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(qc(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let c;for(r=0;r<i;r++)c=s[r],t.call(null,e[c],c,e)}}function d3(e,t){if(qc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,f3=e=>!Dc(e)&&e!==Aa;function HC(...e){const{caseless:t,skipUndefined:n}=f3(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=t&&typeof i=="string"&&d3(r,i)||i,f=nh(r,c)?r[c]:void 0;pm(f)&&pm(s)?r[c]=HC(f,s):pm(s)?r[c]=HC({},s):el(s)?r[c]=s.slice():(!n||!Dc(s))&&(r[c]=s)};for(let s=0,i=e.length;s<i;s++){const c=e[s];if(!c||qc(c)||(cf(c,o),typeof c!="object"||el(c)))continue;const f=Object.getOwnPropertySymbols(c);for(let d=0;d<f.length;d++){const p=f[d];Sne.call(c,p)&&o(c[p],p)}}return r}const dne=(e,t,n,{allOwnKeys:r}={})=>(cf(t,(o,s)=>{n&&vo(o)?Object.defineProperty(e,s,{__proto__:null,value:a3(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),fne=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pne=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},mne=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Lc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hne=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},gne=e=>{if(!e)return null;if(el(e))return e;let t=e.length;if(!u3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yne=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lc(Uint8Array)),bne=(e,t)=>{const r=(e&&e[lf]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},vne=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xne=bs("HTMLFormElement"),Cne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:Sne}=Object.prototype,$ne=bs("RegExp"),p3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};cf(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},wne=e=>{p3(e,(t,n)=>{if(vo(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(vo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ene=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return el(e)?r(e):r(String(e).split(t)),n},Rne=()=>{},Ine=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Pne(e){return!!(e&&vo(e.append)&&e[l3]==="FormData"&&e[lf])}const Nne=e=>{const t=new WeakSet,n=r=>{if(Gc(r)){if(t.has(r))return;if(qc(r))return r;if(!("toJSON"in r)){t.add(r);const o=el(r)?[]:{};return cf(r,(s,i)=>{const c=n(s);!Dc(c)&&(o[i]=c)}),t.delete(r),o}}return r};return n(e)},Tne=bs("AsyncFunction"),Mne=e=>e&&(Gc(e)||vo(e))&&vo(e.then)&&vo(e.catch),m3=((e,t)=>e?setImmediate:t?((n,r)=>(Aa.addEventListener("message",({source:o,data:s})=>{o===Aa&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Aa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vo(Aa.postMessage)),One=typeof queueMicrotask<"u"?queueMicrotask.bind(Aa):typeof process<"u"&&process.nextTick||m3,h3=e=>e!=null&&vo(e[lf]),zne=e=>e!=null&&Ed(e,lf)&&h3(e),ve={isArray:el,isArrayBuffer:c3,isBuffer:qc,isFormData:one,isArrayBufferView:Ute,isString:qte,isNumber:u3,isBoolean:Gte,isObject:Gc,isPlainObject:pm,isEmptyObject:Xte,isReadableStream:ine,isRequest:ane,isResponse:lne,isHeaders:cne,isUndefined:Dc,isDate:Yte,isFile:Qte,isReactNativeBlob:Jte,isReactNative:Zte,isBlob:ene,isRegExp:$ne,isFunction:vo,isStream:nne,isURLSearchParams:sne,isTypedArray:yne,isFileList:tne,forEach:cf,merge:HC,extend:dne,trim:une,stripBOM:fne,inherits:pne,toFlatObject:mne,kindOf:L$,kindOfTest:bs,endsWith:hne,toArray:gne,forEachEntry:bne,matchAll:vne,isHTMLForm:xne,hasOwnProperty:nh,hasOwnProp:nh,hasOwnInPrototypeChain:Ed,getSafeProp:Kte,reduceDescriptors:p3,freezeMethods:wne,toObjectSet:Ene,toCamelCase:Cne,noop:Rne,toFiniteNumber:Ine,findKey:d3,global:Aa,isContextDefined:f3,isSpecCompliantForm:Pne,toJSONObject:Nne,isAsyncFn:Tne,isThenable:Mne,setImmediate:m3,asap:One,isIterable:h3,isSafeIterable:zne},Ane=ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lne=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
379
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Ane[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Dne(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Bne=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),_ne=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function D$(e,t){return ve.isArray(e)?e.map(n=>D$(n,t)):Dne(String(e).replace(t,""))}const Fne=e=>D$(e,Bne),kne=e=>D$(e,_ne);function g3(e){const t=Object.create(null);return ve.forEach(e.toJSON(),(n,r)=>{t[r]=kne(n)}),t}const XN=Symbol("internals");function Du(e){return e&&String(e).trim().toLowerCase()}function mm(e){return e===!1||e==null?e:ve.isArray(e)?e.map(mm):Fne(String(e))}function Hne(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const jne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uv(e,t,n,r,o){if(ve.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ve.isString(t)){if(ve.isString(r))return t.indexOf(r)!==-1;if(ve.isRegExp(r))return r.test(t)}}function Wne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Vne(e,t){const n=ve.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let Gr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,d){const p=Du(f);if(!p)return;const m=ve.findKey(o,p);(!m||o[m]===void 0||d===!0||d===void 0&&o[m]!==!1)&&(o[m||f]=mm(c))}const i=(c,f)=>ve.forEach(c,(d,p)=>s(d,p,f));if(ve.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(ve.isString(t)&&(t=t.trim())&&!jne(t))i(Lne(t),n);else if(ve.isObject(t)&&ve.isSafeIterable(t)){let c=Object.create(null),f,d;for(const p of t){if(!ve.isArray(p))throw new TypeError("Object iterator must return a key-value pair");d=p[0],ve.hasOwnProp(c,d)?(f=c[d],c[d]=ve.isArray(f)?[...f,p[1]]:[f,p[1]]):c[d]=p[1]}i(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Du(t),t){const r=ve.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Hne(o);if(ve.isFunction(n))return n.call(this,o,r);if(ve.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Du(t),t){const r=ve.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||uv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Du(i),i){const c=ve.findKey(r,i);c&&(!n||uv(r,r[c],c,n))&&(delete r[c],o=!0)}}return ve.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||uv(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return ve.forEach(this,(o,s)=>{const i=ve.findKey(r,s);if(i){n[i]=mm(o),delete n[s];return}const c=t?Wne(s):String(s).trim();c!==s&&delete n[s],n[c]=mm(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ve.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
380
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[XN]=this[XN]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=Du(i);r[c]||(Vne(o,i),r[c]=!0)}return ve.isArray(t)?t.forEach(s):s(t),this}};Gr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(Gr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ve.freezeMethods(Gr);const Kne="[REDACTED ****]";function Une(e){if(ve.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ve.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function qne(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||ve.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Gr&&(s=s.toJSON()),r.push(s);let i;if(ve.isArray(s))i=[],s.forEach((c,f)=>{const d=o(c);ve.isUndefined(d)||(i[f]=d)});else{if(!ve.isPlainObject(s)&&Une(s))return r.pop(),s;i=Object.create(null);for(const[c,f]of Object.entries(s)){const d=n.has(c.toLowerCase())?Kne:o(f);ve.isUndefined(d)||(i[c]=d)}}return r.pop(),i};return o(e)}let ft=class y3 extends Error{static from(t,n,r,o,s,i){const c=new y3(t.message,n||t.code,r,o,s);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&ve.hasOwnProp(t,"redact")?t.redact:void 0,r=ve.isArray(n)&&n.length>0?qne(t,n):ve.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ft.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ft.ERR_BAD_OPTION="ERR_BAD_OPTION";ft.ECONNABORTED="ECONNABORTED";ft.ETIMEDOUT="ETIMEDOUT";ft.ECONNREFUSED="ECONNREFUSED";ft.ERR_NETWORK="ERR_NETWORK";ft.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ft.ERR_DEPRECATED="ERR_DEPRECATED";ft.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ft.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ft.ERR_CANCELED="ERR_CANCELED";ft.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ft.ERR_INVALID_URL="ERR_INVALID_URL";ft.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Gne=null,b3=100;function jC(e){return ve.isPlainObject(e)||ve.isArray(e)}function v3(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function dv(e,t,n){return e?e.concat(t).map(function(o,s){return o=v3(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Xne(e){return ve.isArray(e)&&!e.some(jC)}const Yne=ve.toFlatObject(ve,{},null,function(t){return/^is[A-Z]/.test(t)});function eg(e,t,n){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,C){return!ve.isUndefined(C[E])});const r=n.metaTokens,o=n.visitor||b,s=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?b3:n.maxDepth,d=c&&ve.isSpecCompliantForm(t),p=[];if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function m(x){if(x===null)return"";if(ve.isDate(x))return x.toISOString();if(ve.isBoolean(x))return x.toString();if(!d&&ve.isBlob(x))throw new ft("Blob is not supported. Use a Buffer instead.");if(ve.isArrayBuffer(x)||ve.isTypedArray(x)){if(d&&typeof c=="function")return new c([x]);if(typeof Buffer<"u")return Buffer.from(x);throw new ft("Blob is not supported. Use a Buffer instead.",ft.ERR_NOT_SUPPORT)}return x}function h(x){if(x>f)throw new ft("Object is too deeply nested ("+x+" levels). Max depth: "+f,ft.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(x,E){if(f===1/0)return JSON.stringify(x);const C=[];return JSON.stringify(x,function(R,P){if(!ve.isObject(P))return P;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(P),h(E+C.length-1),P})}function b(x,E,C){let w=x;if(ve.isReactNative(t)&&ve.isReactNativeBlob(x))return t.append(dv(C,E,s),m(x)),!1;if(x&&!C&&typeof x=="object"){if(ve.endsWith(E,"{}"))E=r?E:E.slice(0,-2),x=y(x,1);else if(ve.isArray(x)&&Xne(x)||(ve.isFileList(x)||ve.endsWith(E,"[]"))&&(w=ve.toArray(x)))return E=v3(E),w.forEach(function(P,I){!(ve.isUndefined(P)||P===null)&&t.append(i===!0?dv([E],I,s):i===null?E:E+"[]",m(P))}),!1}return jC(x)?!0:(t.append(dv(C,E,s),m(x)),!1)}const v=Object.assign(Yne,{defaultVisitor:b,convertValue:m,isVisitable:jC});function $(x,E,C=0){if(!ve.isUndefined(x)){if(h(C),p.indexOf(x)!==-1)throw new Error("Circular reference detected in "+E.join("."));p.push(x),ve.forEach(x,function(R,P){(!(ve.isUndefined(R)||R===null)&&o.call(t,R,ve.isString(P)?P.trim():P,E,v))===!0&&$(R,E?E.concat(P):[P],C+1)}),p.pop()}}if(!ve.isObject(e))throw new TypeError("data must be an object");return $(e),t}function YN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function B$(e,t){this._pairs=[],e&&eg(e,this,t)}const x3=B$.prototype;x3.append=function(t,n){this._pairs.push([t,n])};x3.toString=function(t){const n=t?r=>t.call(this,r,YN):YN;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Qne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function C3(e,t,n){if(!t)return e;e=e||"";const r=ve.isFunction(n)?{serialize:n}:n,o=ve.getSafeProp(r,"encode")||Qne,s=ve.getSafeProp(r,"serialize");let i;if(s?i=s(t,r):i=ve.isURLSearchParams(t)?t.toString():new B$(t,r).toString(o),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class QN{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ve.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Jne=typeof URLSearchParams<"u"?URLSearchParams:B$,Zne=typeof FormData<"u"?FormData:null,ere=typeof Blob<"u"?Blob:null,tre={isBrowser:!0,classes:{URLSearchParams:Jne,FormData:Zne,Blob:ere},protocols:["http","https","file","blob","url","data"]},F$=typeof window<"u"&&typeof document<"u",WC=typeof navigator=="object"&&navigator||void 0,nre=F$&&(!WC||["ReactNative","NativeScript","NS"].indexOf(WC.product)<0),rre=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ore=F$&&window.location.href||"http://localhost",sre=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F$,hasStandardBrowserEnv:nre,hasStandardBrowserWebWorkerEnv:rre,navigator:WC,origin:ore},Symbol.toStringTag,{value:"Module"})),Or={...sre,...tre};function ire(e,t){return eg(e,new Or.classes.URLSearchParams,{visitor:function(n,r,o,s){return Or.isNode&&ve.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const JN=b3;function S3(e){if(e>JN)throw new ft("FormData field is too deeply nested ("+e+" levels). Max depth: "+JN,ft.ERR_FORM_DATA_DEPTH_EXCEEDED)}function are(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)S3(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function lre(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function $3(e){function t(n,r,o,s){S3(s);let i=n[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=s>=n.length;return i=!i&&ve.isArray(o)?o.length:i,f?(ve.hasOwnProp(o,i)?o[i]=ve.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!c):((!ve.hasOwnProp(o,i)||!ve.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&ve.isArray(o[i])&&(o[i]=lre(o[i])),!c)}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};return ve.forEachEntry(e,(r,o)=>{t(are(r),o,n,0)}),n}return null}const tc=(e,t)=>e!=null&&ve.hasOwnProp(e,t)?e[t]:void 0;function cre(e,t,n){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const uf={transitional:_$,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ve.isObject(t);if(s&&ve.isHTMLForm(t)&&(t=new FormData(t)),ve.isFormData(t))return o?JSON.stringify($3(t)):t;if(ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t)||ve.isReadableStream(t))return t;if(ve.isArrayBufferView(t))return t.buffer;if(ve.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){const f=tc(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ire(t,f).toString();if((c=ve.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=tc(this,"env"),p=d&&d.FormData;return eg(c?{"files[]":t}:t,p&&new p,f)}}return s||o?(n.setContentType("application/json",!1),cre(t)):t}],transformResponse:[function(t){const n=tc(this,"transitional")||uf.transitional,r=n&&n.forcedJSONParsing,o=tc(this,"responseType"),s=o==="json";if(ve.isResponse(t)||ve.isReadableStream(t))return t;if(t&&ve.isString(t)&&(r&&!o||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,tc(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?ft.from(f,ft.ERR_BAD_RESPONSE,this,null,tc(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Or.classes.FormData,Blob:Or.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch","query"],e=>{uf.headers[e]={}});function fv(e,t){const n=this||uf,r=t||n,o=Gr.from(r.headers);let s=r.data;return ve.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function w3(e){return!!(e&&e.__CANCEL__)}let df=class extends ft{constructor(t,n,r){super(t??"canceled",ft.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function E3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ft("Request failed with status code "+n.status,n.status>=400&&n.status<500?ft.ERR_BAD_REQUEST:ft.ERR_BAD_RESPONSE,n.config,n.request,n))}function ure(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function dre(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),p=r[s];i||(i=d),n[o]=f,r[o]=d;let m=s,h=0;for(;m!==o;)h+=n[m++],m=m%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i<t)return;const y=p&&d-p;return y?Math.round(h*1e3/y):void 0}}function fre(e,t){let n=0,r=1e3/t,o,s;const i=(d,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const p=Date.now(),m=p-n;m>=r?i(d,p):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-m)))},()=>o&&i(o)]}const rh=(e,t,n=3)=>{let r=0;const o=dre(50,250);return fre(s=>{if(!s||typeof s.loaded!="number")return;const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=c!=null?Math.min(i,c):i,d=Math.max(0,f-r),p=o(d);r=Math.max(r,f);const m={loaded:f,total:c,progress:c?f/c:void 0,bytes:d,rate:p||void 0,estimated:p&&c?(c-f)/p:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},ZN=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eT=e=>(...t)=>ve.asap(()=>e(...t)),pre=Or.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Or.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Or.origin),Or.navigator&&/(msie|trident)/i.test(Or.navigator.userAgent)):()=>!0,mre=Or.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];ve.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),ve.isString(r)&&c.push(`path=${r}`),ve.isString(o)&&c.push(`domain=${o}`),s===!0&&c.push("secure"),ve.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hre(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gre(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const yre=/^https?:(?!\/\/)/i,bre=/[\t\n\r]/g;function vre(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function xre(e){return vre(e).replace(bre,"")}function tT(e,t){if(typeof e=="string"&&yre.test(xre(e)))throw new ft('Invalid URL: missing "//" after protocol',ft.ERR_INVALID_URL,t)}function R3(e,t,n,r){tT(t,r);let o=!hre(t);return e&&(o||n===!1)?(tT(e,r),gre(e,t)):t}const nT=e=>e instanceof Gr?{...e}:e;function tl(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,m,h,y){return ve.isPlainObject(p)&&ve.isPlainObject(m)?ve.merge.call({caseless:y},p,m):ve.isPlainObject(m)?ve.merge({},m):ve.isArray(m)?m.slice():m}function o(p,m,h,y){if(ve.isUndefined(m)){if(!ve.isUndefined(p))return r(void 0,p,h,y)}else return r(p,m,h,y)}function s(p,m){if(!ve.isUndefined(m))return r(void 0,m)}function i(p,m){if(ve.isUndefined(m)){if(!ve.isUndefined(p))return r(void 0,p)}else return r(void 0,m)}function c(p){const m=ve.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ve.isUndefined(m))if(ve.isPlainObject(m)){if(ve.hasOwnProp(m,p))return m[p]}else return;const h=ve.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ve.isPlainObject(h)&&ve.hasOwnProp(h,p))return h[p]}function f(p,m,h){if(ve.hasOwnProp(t,h))return r(p,m);if(ve.hasOwnProp(e,h))return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:f,headers:(p,m,h)=>o(nT(p),nT(m),h,!0)};return ve.forEach(Object.keys({...e,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const h=ve.hasOwnProp(d,m)?d[m]:o,y=ve.hasOwnProp(e,m)?e[m]:void 0,b=ve.hasOwnProp(t,m)?t[m]:void 0,v=h(y,b,m);ve.isUndefined(v)&&h!==f||(n[m]=v)}),ve.hasOwnProp(t,"validateStatus")&&ve.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(ve.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const Cre=["content-type","content-length"];function Sre(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{Cre.includes(r.toLowerCase())&&e.set(r,o)})}const $re=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function I3(e){const t=tl({},e),n=h=>ve.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const f=n("auth"),d=n("baseURL"),p=n("allowAbsoluteUrls"),m=n("url");if(t.headers=c=Gr.from(c),t.url=C3(R3(d,m,p,t),n("params"),n("paramsSerializer")),f){const h=ve.getSafeProp(f,"username")||"",y=ve.getSafeProp(f,"password")||"";try{c.set("Authorization","Basic "+btoa(h+":"+(y?$re(y):"")))}catch(b){throw ft.from(b,ft.ERR_BAD_OPTION_VALUE,e)}}if(ve.isFormData(r)&&(Or.hasStandardBrowserEnv||Or.hasStandardBrowserWebWorkerEnv||ve.isReactNative(r)?c.setContentType(void 0):ve.isFunction(r.getHeaders)&&Sre(c,r.getHeaders(),n("formDataHeaderPolicy"))),Or.hasStandardBrowserEnv&&(ve.isFunction(o)&&(o=o(t)),o===!0||o==null&&pre(t.url))){const y=s&&i&&mre.read(i);y&&c.set(s,y)}return t}const wre=typeof XMLHttpRequest<"u",Ere=wre&&function(e){return new Promise(function(n,r){const o=I3(e);let s=o.data;const i=Gr.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:d}=o,p,m,h,y,b;function v(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let $=new XMLHttpRequest;$.open(o.method.toUpperCase(),o.url,!0),$.timeout=o.timeout;function x(){if(!$)return;const C=Gr.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:C,config:e,request:$};E3(function(I){n(I),v()},function(I){r(I),v()},R),$=null}"onloadend"in $?$.onloadend=x:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.startsWith("file:"))||setTimeout(x)},$.onabort=function(){$&&(r(new ft("Request aborted",ft.ECONNABORTED,e,$)),v(),$=null)},$.onerror=function(w){const R=w&&w.message?w.message:"Network Error",P=new ft(R,ft.ERR_NETWORK,e,$);P.event=w||null,r(P),v(),$=null},$.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||_$;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new ft(w,R.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,$)),v(),$=null},s===void 0&&i.setContentType(null),"setRequestHeader"in $&&ve.forEach(g3(i),function(w,R){$.setRequestHeader(R,w)}),ve.isUndefined(o.withCredentials)||($.withCredentials=!!o.withCredentials),c&&c!=="json"&&($.responseType=o.responseType),d&&([h,b]=rh(d,!0),$.addEventListener("progress",h)),f&&$.upload&&([m,y]=rh(f),$.upload.addEventListener("progress",m),$.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=C=>{$&&(r(!C||C.type?new df(null,e,$):C),$.abort(),v(),$=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const E=ure(o.url);if(E&&!Or.protocols.includes(E)){r(new ft("Unsupported protocol "+E+":",ft.ERR_BAD_REQUEST,e)),v();return}$.send(s||null)})},Rre=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(f){if(!r){r=!0,i();const d=f instanceof Error?f:this.reason;n.abort(d instanceof ft?d:new df(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,o(new ft(`timeout of ${t}ms exceeded`,ft.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>ve.asap(i),c},Ire=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Pre=async function*(e,t){for await(const n of Nre(e))yield*Ire(n,t)},Nre=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},rT=(e,t,n,r)=>{const o=Pre(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:d,value:p}=await o.next();if(d){c(),f.close();return}let m=p.byteLength;if(n){let h=s+=m;n(h)}f.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},oh=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Tre=(e,t,n)=>t+2<n&&oh(e.charCodeAt(t+1))&&oh(e.charCodeAt(t+2));function Mre(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const c=r.length;for(let y=0;y<c;y++)if(r.charCodeAt(y)===37&&y+2<c){const b=r.charCodeAt(y+1),v=r.charCodeAt(y+2);oh(b)&&oh(v)&&(i-=2,y+=2)}let f=0,d=c-1;const p=y=>y>=2&&r.charCodeAt(y-2)===37&&r.charCodeAt(y-1)===51&&(r.charCodeAt(y)===68||r.charCodeAt(y)===100);d>=0&&(r.charCodeAt(d)===61?(f++,d--):p(d)&&(f++,d-=3)),f===1&&d>=0&&(r.charCodeAt(d)===61||p(d))&&f++;const h=Math.floor(i/4)*3-(f||0);return h>0?h:0}let s=0;for(let i=0,c=r.length;i<c;i++){const f=r.charCodeAt(i);if(f===37&&Tre(r,i,c))s+=1,i+=2;else if(f<128)s+=1;else if(f<2048)s+=2;else if(f>=55296&&f<=56319&&i+1<c){const d=r.charCodeAt(i+1);d>=56320&&d<=57343?(s+=4,i++):s+=3}else s+=3}return s}const k$="1.18.1",oT=64*1024,{isFunction:Up}=ve,Ore=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),sT=e=>{if(!ve.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},iT=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zre=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Are=e=>{const t=ve.global!==void 0&&ve.global!==null?ve.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ve.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,c=o?Up(o):typeof fetch=="function",f=Up(s),d=Up(i);if(!c)return!1;const p=c&&Up(n),m=c&&(typeof r=="function"?(x=>E=>x.encode(E))(new r):async x=>new Uint8Array(await new s(x).arrayBuffer())),h=f&&p&&iT(()=>{let x=!1;const E=new s(Or.origin,{body:new n,method:"POST",get duplex(){return x=!0,"half"}}),C=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),x&&!C}),y=d&&p&&iT(()=>ve.isReadableStream(new i("").body)),b={stream:y&&(x=>x.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!b[x]&&(b[x]=(E,C)=>{let w=E&&E[x];if(w)return w.call(E);throw new ft(`Response type '${x}' is not supported`,ft.ERR_NOT_SUPPORT,C)})});const v=async x=>{if(x==null)return 0;if(ve.isBlob(x))return x.size;if(ve.isSpecCompliantForm(x))return(await new s(Or.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(ve.isArrayBufferView(x)||ve.isArrayBuffer(x))return x.byteLength;if(ve.isURLSearchParams(x)&&(x=x+""),ve.isString(x))return(await m(x)).byteLength},$=async(x,E)=>{const C=ve.toFiniteNumber(x.getContentLength());return C??v(E)};return async x=>{let{url:E,method:C,data:w,signal:R,cancelToken:P,timeout:I,onDownloadProgress:T,onUploadProgress:L,responseType:z,headers:M,withCredentials:O="same-origin",fetchOptions:_,maxContentLength:F,maxBodyLength:W}=I3(x);const q=ve.isNumber(F)&&F>-1,G=ve.isNumber(W)&&W>-1,j=X=>ve.hasOwnProp(x,X)?x[X]:void 0;let H=o||fetch;z=z?(z+"").toLowerCase():"text";let k=Rre([R,P&&P.toAbortSignal()],I),B=null;const D=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let K,Q=null;const Z=()=>new ft("Request body larger than maxBodyLength limit",ft.ERR_BAD_REQUEST,x,B);try{let X;const J=j("auth");if(J){const de=ve.getSafeProp(J,"username")||"",ge=ve.getSafeProp(J,"password")||"";X={username:de,password:ge}}if(zre(E)){const de=new URL(E,Or.origin);if(!X&&(de.username||de.password)){const ge=sT(de.username),se=sT(de.password);X={username:ge,password:se}}(de.username||de.password)&&(de.username="",de.password="",E=de.href)}if(X&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(Ore((X.username||"")+":"+(X.password||""))))),q&&typeof E=="string"&&E.startsWith("data:")&&Mre(E)>F)throw new ft("maxContentLength size of "+F+" exceeded",ft.ERR_BAD_RESPONSE,x,B);if(G&&C!=="get"&&C!=="head"){const de=await v(w);if(typeof de=="number"&&isFinite(de)&&(K=de,de>W))throw Z()}const ne=G&&(ve.isReadableStream(w)||ve.isStream(w)),oe=(de,ge,se)=>rT(de,oT,ce=>{if(G&&ce>W)throw Q=Z();ge&&ge(ce)},se);if(h&&C!=="get"&&C!=="head"&&(L||ne)){if(K=K??await $(M,w),K!==0||ne){let de=new s(E,{method:"POST",body:w,duplex:"half"}),ge;if(ve.isFormData(w)&&(ge=de.headers.get("content-type"))&&M.setContentType(ge),de.body){const[se,ce]=L&&ZN(K,rh(eT(L)))||[];w=oe(de.body,se,ce)}}}else if(ne&&!f&&p&&C!=="get"&&C!=="head")w=oe(w);else if(ne&&f&&!h&&C!=="get"&&C!=="head")throw new ft("Stream request bodies are not supported by the current fetch implementation",ft.ERR_NOT_SUPPORT,x,B);ve.isString(O)||(O=O?"include":"omit");const ae=f&&"credentials"in s.prototype;if(ve.isFormData(w)){const de=M.getContentType();de&&/^multipart\/form-data/i.test(de)&&!/boundary=/i.test(de)&&M.delete("content-type")}M.set("User-Agent","axios/"+k$,!1);const pe={..._,signal:k,method:C.toUpperCase(),headers:g3(M.normalize()),body:w,duplex:"half",credentials:ae?O:void 0};B=f&&new s(E,pe);let fe=await(f?H(B,_):H(E,pe));const le=Gr.from(fe.headers);if(q){const de=ve.toFiniteNumber(le.getContentLength());if(de!=null&&de>F)throw new ft("maxContentLength size of "+F+" exceeded",ft.ERR_BAD_RESPONSE,x,B)}const ie=y&&(z==="stream"||z==="response");if(y&&fe.body&&(T||q||ie&&D)){const de={};["status","statusText","headers"].forEach(Se=>{de[Se]=fe[Se]});const ge=ve.toFiniteNumber(le.getContentLength()),[se,ce]=T&&ZN(ge,rh(eT(T),!0))||[];let xe=0;const Ee=Se=>{if(q&&(xe=Se,xe>F))throw new ft("maxContentLength size of "+F+" exceeded",ft.ERR_BAD_RESPONSE,x,B);se&&se(Se)};fe=new i(rT(fe.body,oT,Ee,()=>{ce&&ce(),D&&D()}),de)}z=z||"text";let re=await b[ve.findKey(b,z)||"text"](fe,x);if(q&&!y&&!ie){let de;if(re!=null&&(typeof re.byteLength=="number"?de=re.byteLength:typeof re.size=="number"?de=re.size:typeof re=="string"&&(de=typeof r=="function"?new r().encode(re).byteLength:re.length)),typeof de=="number"&&de>F)throw new ft("maxContentLength size of "+F+" exceeded",ft.ERR_BAD_RESPONSE,x,B)}return!ie&&D&&D(),await new Promise((de,ge)=>{E3(de,ge,{data:re,headers:Gr.from(fe.headers),status:fe.status,statusText:fe.statusText,config:x,request:B})})}catch(X){if(D&&D(),k&&k.aborted&&k.reason instanceof ft){const J=k.reason;throw J.config=x,B&&(J.request=B),X!==J&&Object.defineProperty(J,"cause",{__proto__:null,value:X,writable:!0,enumerable:!1,configurable:!0}),J}if(Q)throw B&&!Q.request&&(Q.request=B),Q;if(X instanceof ft)throw B&&!X.request&&(X.request=B),X;if(X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)){const J=new ft("Network Error",ft.ERR_NETWORK,x,B,X&&X.response);throw Object.defineProperty(J,"cause",{__proto__:null,value:X.cause||X,writable:!0,enumerable:!1,configurable:!0}),J}throw ft.from(X,X&&X.code,x,B,X&&X.response)}}},Lre=new Map,P3=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i=s.length,c=i,f,d,p=Lre;for(;c--;)f=s[c],d=p.get(f),d===void 0&&p.set(f,d=c?new Map:Are(t)),p=d;return d};P3();const H$={http:Gne,xhr:Ere,fetch:{get:P3}};ve.forEach(H$,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const aT=e=>`- ${e}`,Dre=e=>ve.isFunction(e)||e===null||e===!1;function Bre(e,t){e=ve.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){r=e[i];let c;if(o=r,!Dre(r)&&(o=H$[(c=String(r)).toLowerCase()],o===void 0))throw new ft(`Unknown adapter '${c}'`);if(o&&(ve.isFunction(o)||(o=o.get(t))))break;s[c||"#"+i]=o}if(!o){const i=Object.entries(s).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
|
|
381
|
+
`+i.map(aT).join(`
|
|
382
|
+
`):" "+aT(i[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+c,ft.ERR_NOT_SUPPORT)}return o}const N3={getAdapter:Bre,adapters:H$};function pv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new df(null,e)}function lT(e){return pv(e),e.headers=Gr.from(e.headers),e.data=fv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),N3.getAdapter(e.adapter||uf.adapter,e)(e).then(function(r){pv(e),e.response=r;try{r.data=fv.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Gr.from(r.headers),r},function(r){if(!w3(r)&&(pv(e),r&&r.response)){e.response=r.response;try{r.response.data=fv.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Gr.from(r.response.headers)}return Promise.reject(r)})}const tg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cT={};tg.transitional=function(t,n,r){function o(s,i){return"[Axios v"+k$+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new ft(o(i," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!cT[i]&&(cT[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};tg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _re(e,t,n){if(typeof e!="object"||e===null)throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new ft("option "+s+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+s,ft.ERR_BAD_OPTION)}}const hm={assertOptions:_re,validators:tg},Wr=hm.validators;let Ga=class{constructor(t){this.defaults=t||{},this.interceptors={request:new QN,response:new QN}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const i=o.stack.indexOf(`
|
|
383
|
+
`);return i===-1?"":o.stack.slice(i+1)})();try{if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
384
|
+
`),c=i===-1?-1:s.indexOf(`
|
|
385
|
+
`,i+1),f=c===-1?"":s.slice(c+1);String(r.stack).endsWith(f)||(r.stack+=`
|
|
386
|
+
`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tl(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&hm.assertOptions(r,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean),legacyInterceptorReqResOrdering:Wr.transitional(Wr.boolean),advertiseZstdAcceptEncoding:Wr.transitional(Wr.boolean),validateStatusUndefinedResolves:Wr.transitional(Wr.boolean)},!1),o!=null&&(ve.isFunction(o)?n.paramsSerializer={serialize:o}:hm.assertOptions(o,{encode:Wr.function,serialize:Wr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),hm.assertOptions(n,{baseUrl:Wr.spelling("baseURL"),withXsrfToken:Wr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&ve.merge(s.common,s[n.method]);s&&ve.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete s[b]}),n.headers=Gr.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;f=f&&v.synchronous;const $=n.transitional||_$;$&&$.legacyInterceptorReqResOrdering?c.unshift(v.fulfilled,v.rejected):c.push(v.fulfilled,v.rejected)});const d=[];this.interceptors.response.forEach(function(v){d.push(v.fulfilled,v.rejected)});let p,m=0,h;if(!f){const b=[lT.bind(this),void 0];for(b.unshift(...c),b.push(...d),h=b.length,p=Promise.resolve(n);m<h;)p=p.then(b[m++],b[m++]);return p}h=c.length;let y=n;for(;m<h;){const b=c[m++],v=c[m++];try{y=b(y)}catch($){v.call(this,$);break}}try{p=lT.call(this,y)}catch(b){return Promise.reject(b)}for(m=0,h=d.length;m<h;)p=p.then(d[m++],d[m++]);return p}getUri(t){t=tl(this.defaults,t);const n=R3(t.baseURL,t.url,t.allowAbsoluteUrls,t);return C3(n,t.params,t.paramsSerializer)}};ve.forEach(["delete","get","head","options"],function(t){Ga.prototype[t]=function(n,r){return this.request(tl(r||{},{method:t,url:n,data:r&&ve.hasOwnProp(r,"data")?r.data:void 0}))}});ve.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,i,c){return this.request(tl(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Ga.prototype[t]=n(),t!=="query"&&(Ga.prototype[t+"Form"]=n(!0))});let Fre=class T3{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new df(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new T3(function(o){t=o}),cancel:t}}};function kre(e){return function(n){return e.apply(null,n)}}function Hre(e){return ve.isObject(e)&&e.isAxiosError===!0}const VC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(VC).forEach(([e,t])=>{VC[t]=e});function M3(e){const t=new Ga(e),n=a3(Ga.prototype.request,t);return ve.extend(n,Ga.prototype,t,{allOwnKeys:!0}),ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return M3(tl(e,o))},n}const Zn=M3(uf);Zn.Axios=Ga;Zn.CanceledError=df;Zn.CancelToken=Fre;Zn.isCancel=w3;Zn.VERSION=k$;Zn.toFormData=eg;Zn.AxiosError=ft;Zn.Cancel=Zn.CanceledError;Zn.all=function(t){return Promise.all(t)};Zn.spread=kre;Zn.isAxiosError=Hre;Zn.mergeConfig=tl;Zn.AxiosHeaders=Gr;Zn.formToJSON=e=>$3(ve.isHTMLForm(e)?new FormData(e):e);Zn.getAdapter=N3.getAdapter;Zn.HttpStatusCode=VC;Zn.default=Zn;const{Axios:joe,AxiosError:Woe,CanceledError:Voe,isCancel:Koe,CancelToken:Uoe,VERSION:qoe,all:Goe,Cancel:Xoe,isAxiosError:Yoe,spread:Qoe,toFormData:Joe,AxiosHeaders:Zoe,HttpStatusCode:ese,formToJSON:tse,getAdapter:nse,mergeConfig:rse,create:ose}=Zn,jre="PortQueue Dashboard",Wre="x-requested-with",Vre="portqueue-dashboard",nl=typeof window<"u"&&window.__PORTQUEUE_DASHBOARD__||{basePath:"/portqueue",maxBatchIds:Number.POSITIVE_INFINITY},j$=Zn.create({baseURL:`${nl.basePath}/api`,withCredentials:!0,headers:{[Wre]:Vre}});j$.interceptors.response.use(e=>e,e=>{if(Zn.isAxiosError(e)){const t=e.response?.data;throw t?.error?new Error(t.error):e.response?new Error(`${e.response.status} ${e.response.statusText}`.trim()):new Error(e.message||"The dashboard server is unreachable.")}throw e instanceof Error?e:new Error(String(e))});function Kre(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e))r!==void 0&&r!==""&&(t[n]=r);return t}async function Ti(e,t){return(await j$.get(e,{params:Kre(t)})).data}const Go={getQueues:(e={})=>Ti("/queues",e),getStats:e=>Ti("/stats",{queue:e}),getJobs:(e={})=>Ti("/jobs",e),getJob:e=>Ti(`/jobs/${encodeURIComponent(e)}`),getSchedules:(e={})=>Ti("/schedules",e),getSchedule:e=>Ti(`/schedules/${encodeURIComponent(e)}`),getInstances:(e={})=>Ti("/instances",e),getInstance:e=>Ti(`/instances/${encodeURIComponent(e)}`),action:async({kind:e,...t})=>(await j$.post(`/actions/${encodeURIComponent(e)}`,t)).data};function ai(){const{message:e}=kc.useApp(),t=t3(),n=a.useCallback(async(o,s,i)=>{try{const c=await Go.action(o);return i?.silent||e.success(s??"Done"),t(),c}catch(c){return e.error(c instanceof Error?c.message:"Action failed"),null}},[e,t]),r=a.useCallback(async(o,s)=>{const i=await n(o,void 0,{silent:!0});if(!i)return null;const{affected:c=0,requested:f=0,signalled:d=0}=i,p=y=>`${s.noun}${y===1?"":"s"}`,m=d?`${d} running ${d===1?"job was":"jobs were"} asked to stop.`:"";return f>0&&c+d<f?e.info([`${s.verb} ${c} of ${f} ${p(f)}.`,m].filter(Boolean).join(" ")):c===0&&d>0?e.info(m):e.success([`${s.verb} ${c} ${p(c)}.`,m].filter(Boolean).join(" ")),i},[n,e]);return{run:n,runBatch:r,refresh:t}}const gl=20,Ure=e=>{const t=Number(e);return Number.isFinite(t)&&t>=1?Math.trunc(t):1};function ng(e,t=[]){const n=af(),r=Xh(),o=`${e}.page`,s=`${e}.q`,i=a.useCallback(x=>`${e}.${x}`,[e]),c=a.useMemo(()=>new URLSearchParams(r.search),[r.search]),f=Ure(c.get(o)),d=c.get(s)??"",p=a.useMemo(()=>{const x={};for(const E of t){const C=c.get(i(E)),w=C?C.split(",").filter(Boolean):[];w.length&&(x[E]=w)}return x},[c,t,i]),m=a.useRef(r);m.current=r;const h=a.useCallback((x,E)=>{const{pathname:C,search:w}=m.current,R=new URLSearchParams(w);for(const[T,L]of Object.entries(x))L===void 0||L===""?R.delete(T):R.set(T,L);const P=R.toString(),I=`${C}${P?`?${P}`:""}`;E?n.replace(I):n.push(I)},[n]),y=a.useCallback(x=>h({[o]:x>1?String(x):void 0},!1),[h,o]),b=a.useCallback(x=>h({[s]:x||void 0,[o]:void 0},!0),[h,s,o]),v=a.useCallback(x=>{const E={[o]:void 0};for(const C of t){const w=x[C]??[];E[i(C)]=w.length?w.join(","):void 0}h(E,!1)},[h,o,t,i]),$=a.useCallback((x,E)=>{const C=p[x]??[],w=E===void 0?[]:C.filter(R=>R!==E);h({[i(x)]:w.length?w.join(","):void 0,[o]:void 0},!1)},[h,p,i,o]);return{page:f,search:d,filters:p,setPage:y,setSearch:b,setFilters:v,clearFilter:$,offset:(f-1)*gl}}function rg(e,t){const n=Math.max(1,Math.ceil(t/gl));return Math.min(Math.max(e,1),n)}const qp="https://episclera.github.io/portqueue/docs",og={firstQueue:`${qp}/getting-started/first-queue`,producing:`${qp}/guides/producing-jobs`,scheduling:`${qp}/guides/scheduling`,scaleHorizontally:`${qp}/scale-horizontally`};function qre(e){return e instanceof Error&&e.message?e.message:typeof e=="string"&&e?e:"The dashboard could not reach its server."}function ff({title:e,error:t,onRetry:n}){return V.jsx(PS,{type:"error",title:e,showIcon:!0,action:n?V.jsx(sn,{size:"small",onClick:n,children:"Retry"}):void 0,description:V.jsxs(Sn,{vertical:!0,gap:4,children:[V.jsx(zn.Text,{children:qre(t)}),V.jsx(zn.Text,{type:"secondary",children:"The queue itself keeps running — this only affects what the dashboard can display."})]})})}function sa({message:e,hint:t,docsHref:n,docsLabel:r="Read the guide"}){return V.jsx(ls,{image:ls.PRESENTED_IMAGE_SIMPLE,description:V.jsxs(Sn,{vertical:!0,gap:4,align:"center",children:[V.jsx(zn.Text,{type:"secondary",children:e}),t?V.jsxs(zn.Text,{type:"secondary",children:[t," ",n?V.jsxs(zn.Link,{href:n,target:"_blank",rel:"noreferrer noopener",children:[r," ",V.jsx(wee,{"aria-hidden":!0})]}):null]}):null]})})}const Gre=6;function O3({stats:e,loading:t,error:n,onRetry:r}){const o=e?.counts??{},s=Ote.map(i=>({label:Jh[i].label,value:o[i]??0,color:xn.status[i]}));return n?V.jsx(ff,{title:"Could not load activity",error:n,...r?{onRetry:r}:{}}):V.jsx(_h,{gutter:[16,16],children:s.map(i=>V.jsx(zc,{xs:24,sm:12,lg:Gre,children:V.jsx(Nr,{children:t&&!e?V.jsx(ro,{active:!0,title:!1,paragraph:{rows:2,width:["40%","60%"]}}):V.jsx(of,{title:i.label,value:i.value,styles:{content:{color:i.color}}})})},i.label))})}const Xre=12;function yl({tone:e="neutral",color:t,style:n,...r}){const{token:o}=Ds.useToken(),s={success:o.colorSuccess,warning:o.colorWarning,error:o.colorError,info:o.colorInfo,neutral:o.colorTextSecondary},i=t??s[e];return V.jsx(E$,{...r,variant:"outlined",style:{color:i,borderColor:i,background:`color-mix(in srgb, ${i} ${Xre}%, transparent)`,...n}})}function sg({row:e}){const t=e.processingPaused?e.acceptingPaused?"error":"warning":"success";return V.jsx(yl,{tone:t,children:Ate(e)})}function z3({alive:e}){return V.jsx(yl,{tone:e?"success":"neutral",children:e?eh.alive.label:eh.stale.label})}function KC({enabled:e}){return V.jsx(yl,{tone:e?"success":"warning",children:e?th.enabled.label:th.disabled.label})}function Yre({on:e}){return V.jsx(yl,{tone:e?"warning":"neutral",children:e?"Yes":"No"})}const Qre=300;function Jre({value:e,onChange:t,placeholder:n}){const[r,o]=a.useState(e);return a.useEffect(()=>o(e),[e]),a.useEffect(()=>{if(r===e)return;const s=setTimeout(()=>t(r),Qre);return()=>clearTimeout(s)},[r,e,t]),V.jsx(Uo,{allowClear:!0,value:r,placeholder:n,"aria-label":n,prefix:V.jsx(Nh,{"aria-hidden":!0}),style:{width:280},onChange:s=>{o(s.target.value),s.target.value||t("")}})}const mv="__any";function uT(e){const t={};for(const[n,r]of Object.entries(e))r?.length&&(t[n]=r);return t}function Zre({open:e,onClose:t,defs:n,values:r,onApply:o}){const[s,i]=a.useState(()=>uT(r)),c=JSON.stringify(r);a.useEffect(()=>{e&&i(uT(r))},[e,c]);const f=V.jsxs(Sn,{justify:"space-between",gap:"small",children:[V.jsx(sn,{type:"text",onClick:()=>i({}),children:"Clear all"}),V.jsxs(Sn,{gap:"small",children:[V.jsx(sn,{onClick:t,children:"Cancel"}),V.jsx(sn,{type:"primary",onClick:()=>{o(s),t()},children:"Apply filters"})]})]});return V.jsxs(Qo,{open:e,onCancel:t,title:"Filters",footer:f,destroyOnHidden:!0,children:[n.length===0?V.jsx(zn.Text,{type:"secondary",children:"No filters available."}):null,V.jsx(nr,{layout:"vertical",component:"div",children:n.map(d=>V.jsx(nr.Item,{label:d.label,htmlFor:`filter-${d.key}`,children:V.jsx(dl,{id:`filter-${d.key}`,value:s[d.key]?.[0]??mv,onChange:p=>i(m=>({...m,[d.key]:p===mv?[]:[p]})),options:[{label:"Any",value:mv},...d.options.map(p=>({label:p.label,value:p.value}))]})},d.key))})]})}const eoe=e=>Object.values(e).reduce((t,n)=>t+(n?.length??0),0);function toe(e,t){const n=[];for(const r of e)for(const o of t[r.key]??[]){const s=r.options.find(i=>i.value===o);n.push({key:r.key,value:o,label:r.label,valueLabel:s?.label??o})}return n}function ig({total:e,page:t,onPageChange:n,loading:r=!1,error:o,errorTitle:s="Could not load this table",onRetry:i,search:c,filters:f,toolbarLeading:d,children:p}){const m=a.useRef(null),[h,y]=a.useState(!1),{token:b}=Ds.useToken(),v=f?eoe(f.values):0,$=f?toe(f.defs,f.values):[],x={padding:`${b.paddingSM}px ${b.padding}px`},E=C=>{n(C),m.current?.scrollIntoView?.({behavior:"smooth",block:"start"})};return V.jsxs(Nr,{ref:m,title:`Results (${e})`,extra:V.jsxs(Sn,{gap:"small",align:"center",wrap:!0,children:[d,f?V.jsxs(sn,{icon:wt.filters.icon,onClick:()=>y(!0),children:[wt.filters.label,v>0?` (${v})`:""]}):null,c?V.jsx(Jre,{value:c.value,onChange:c.onChange,placeholder:c.placeholder}):null]}),styles:{body:{padding:0},header:{flexWrap:"wrap",gap:b.marginSM}},children:[$.length>0&&f?V.jsx(Sn,{gap:"small",wrap:!0,align:"center",style:{...x,borderBottom:`1px solid ${b.colorBorderSecondary}`},children:$.map(C=>V.jsxs(yl,{closable:{"aria-label":`Remove the ${C.label} filter ${C.valueLabel}`},onClose:w=>{w.preventDefault(),f.onClear(C.key,C.value)},children:[C.label,": ",V.jsx("strong",{children:C.valueLabel})]},`${C.key}:${C.value}`))}):null,o?V.jsx("div",{style:{padding:b.padding},children:V.jsx(ff,{title:s,error:o,...i?{onRetry:i}:{}})}):r?V.jsx("div",{style:{padding:b.padding},children:V.jsx(ro,{active:!0,title:!1,paragraph:{rows:6}})}):p,V.jsx(Sn,{justify:"center",style:{...x,borderTop:`1px solid ${b.colorBorderSecondary}`},children:V.jsx(G6,{current:t,total:e,pageSize:gl,showSizeChanger:!1,onChange:E})}),f?V.jsx(Zre,{open:h,onClose:()=>y(!1),defs:f.defs,values:f.values,onApply:f.onChange}):null]})}function ds({icon:e,label:t,onClick:n,disabled:r=!1,danger:o=!1,confirm:s}){const i=V.jsx(sn,{type:"text",size:"small",danger:o,disabled:r,icon:e,"aria-label":t,onClick:s?void 0:n});return V.jsx(rr,{title:t,placement:"bottom",children:s?V.jsx(si,{title:s.title,description:s.description,okText:t,cancelText:"Keep",okButtonProps:{danger:o},onConfirm:n,disabled:r,children:i}):i})}function ag({children:e}){return V.jsx(Sn,{gap:4,align:"center",style:{display:"inline-flex"},children:e})}function A3({count:e,items:t}){return e===0?null:V.jsx(rf,{trigger:["click"],menu:{items:t.map(({key:n,label:r,icon:o,danger:s})=>({key:n,label:r,icon:o,danger:s})),onClick:({key:n})=>t.find(r=>r.key===n)?.onClick()},children:V.jsxs(sn,{icon:wt.bulk.icon,children:[wt.bulk.label," (",e,") ",V.jsx(Xd,{"aria-hidden":!0})]})})}function rl({value:e,stacked:t=!1}){const n=e?new Date(e).getTime():Number.NaN;if(Number.isNaN(n))return V.jsx(V.Fragment,{children:"—"});const r=new Date(n).toISOString();if(t){const{instant:o,offset:s}=n3(n);return V.jsxs("time",{dateTime:r,title:r,style:{display:"inline-block",lineHeight:1.3},children:[o,V.jsx(zn.Text,{type:"secondary",style:{display:"block",fontSize:12},children:s})]})}return V.jsx("time",{dateTime:r,title:r,children:r3(n)})}const lg={pagination:!1,size:"middle",scroll:{x:"max-content"}};function noe(){return[{title:"Total",key:"total",render:(e,t)=>z$(t.counts)},...Mte.map(e=>({title:Jh[e].label,key:e,render:(t,n)=>n.counts[e]??0}))]}const roe=170;function La(e,t,n){const r={minWidth:roe};return{title:e,key:t,onHeaderCell:()=>({style:r}),onCell:()=>({style:r}),render:(o,s)=>V.jsx(rl,{value:n(s),stacked:!0})}}function cg(e,t={}){const{align:n="right",width:r}=t;return{title:"Actions",key:"actions",align:n,...r!==void 0?{width:r}:{},onHeaderCell:()=>({style:{textAlign:"left"}}),render:(o,s)=>e(s)}}function L3({rows:e,keyOf:t,selected:n,onChange:r,max:o,hint:s}){const i=e.map(t),c=new Set(n),f=n.length>=o,d=i.length>0&&i.every(h=>c.has(h)),p=i.some(h=>c.has(h)),m=h=>f&&!c.has(t(h));return{selectedRowKeys:n,onChange:h=>r(h.map(String)),columnTitle:V.jsx(Za,{"aria-label":"Select all rows",checked:d,indeterminate:p&&!d,disabled:!p&&i.length>o,onChange:()=>r(p?[]:i)}),getCheckboxProps:h=>({disabled:m(h),"aria-label":`Select row ${t(h)}`}),renderCell:(h,y,b,v)=>m(y)?V.jsx(rr,{title:s,children:V.jsx("span",{children:v})}):v}}function zo({to:e,children:t,...n}){const r=af(),[o="",s=""]=e.split("?"),i=r.createHref({pathname:o,search:s?`?${s}`:""});return V.jsx(zn.Link,{...n,href:i,onClick:c=>{c.button!==0||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey||(c.preventDefault(),r.push(e))},children:t})}const ooe=["state"],dT=80,soe=96,ioe=[{key:"state",label:"State",options:o3}];function aoe(){const{run:e}=ai(),t=ng("queues",ooe),n=t.filters.state?.[0],r={limit:gl,offset:t.offset,...t.search?{search:t.search}:{},...n?{processingPaused:n==="paused"}:{}},o=_s(gs.stats(),()=>Go.getStats()),s=_s(gs.queues(r),()=>Go.getQueues(r)),i=s.data?.items??[],c=s.data?.total??0,f=[{title:"Queue",key:"name",onHeaderCell:()=>({style:{minWidth:dT}}),onCell:()=>({style:{minWidth:dT}}),render:(d,p)=>V.jsx(zo,{to:`/queues/${encodeURIComponent(p.name)}`,children:p.name})},{title:"State",key:"state",render:(d,p)=>V.jsx(sg,{row:p})},...noe(),cg(d=>V.jsx(ag,{children:d.processingPaused?V.jsx(ds,{icon:wt.resume.icon,label:wt.resume.label,onClick:()=>void e({kind:Nn.RESUME,queue:d.name},"Resumed")}):V.jsx(ds,{icon:wt.pause.icon,label:wt.pause.label,confirm:{title:"Pause processing on this queue?"},onClick:()=>void e({kind:Nn.PAUSE,queue:d.name},"Paused")})}),{align:"left",width:soe})];return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{title:"Overview",subtitle:"Live queue health across every queue."}),V.jsxs(qr,{children:[V.jsx(O3,{stats:o.data,loading:o.isLoading,error:o.error,onRetry:()=>void o.refetch()}),V.jsx(ig,{total:c,page:rg(t.page,c),onPageChange:t.setPage,loading:s.isLoading,error:s.error,errorTitle:"Could not load queues",onRetry:()=>void s.refetch(),search:{value:t.search,onChange:t.setSearch,placeholder:"Search queue name"},filters:{defs:ioe,values:t.filters,onChange:t.setFilters,onClear:(d,p)=>t.clearFilter(d,p)},children:V.jsx(Jo,{...lg,rowKey:d=>d.name,columns:f,dataSource:i,locale:{emptyText:t.search?V.jsx(sa,{message:`No queues match “${t.search}”.`}):V.jsx(sa,{message:"No queues yet.",hint:"A queue appears here the first time your app adds a job to it — here's how to add your first one.",docsHref:og.firstQueue,docsLabel:"Getting started"})}})})]})]})}function UC({status:e,label:t}){return V.jsx(yl,{color:Cte(e),children:t??e})}function qC({value:e,head:t,tail:n}){const r=Nte(e,t,n);return r===e?V.jsx(V.Fragment,{children:e}):V.jsx(rr,{title:e,placement:"bottom",children:V.jsx("span",{children:r})})}const loe=["status"],coe=[{key:"status",label:"Status",options:Object.values(On).map(e=>({label:Jh[e].label,value:e}))}],uoe=[On.PENDING,On.ACTIVE,On.RETRY];function W$({queue:e,scheduleId:t,instanceKey:n,prefix:r="jobs"}){const{run:o,runBatch:s}=ai(),{modal:i}=kc.useApp(),c=ng(r,loe),f=(c.filters.status??[]).join(","),[d,p]=a.useState([]),m={...e?{queue:e}:{},...t?{scheduleId:t}:{},...n?{instanceKey:n}:{},...f?{statuses:f}:{},...c.search?{search:c.search}:{},offset:c.offset,limit:gl},h=_s(gs.jobs(m),()=>Go.getJobs(m)),y=a.useMemo(()=>h.data?.items??[],[h.data]),b=h.data?.total??0;a.useEffect(()=>p([]),[e,t,f,c.search,c.offset]),a.useEffect(()=>{const E=new Set(y.map(C=>C.id));p(C=>{const w=C.filter(R=>E.has(R));return w.length===C.length?C:w})},[y]);const v=[{title:"Job",key:"id",render:(E,C)=>V.jsx(zo,{to:`/jobs/${encodeURIComponent(C.id)}`,"aria-label":C.id,children:V.jsx(qC,{value:C.id})})},{title:"Status",key:"status",render:(E,C)=>{const w=C.stalled?Qh:C.status;return V.jsx(UC,{status:w,label:A$(w)})}},{title:"Attempt",key:"attempt",render:(E,C)=>`${C.retryAttempt}/${C.retryMaxAttempts}`},{title:"Priority",dataIndex:"priority",key:"priority"},{title:"Processed On Instance",key:"processedOnInstanceKey",render:(E,C)=>C.processedOnInstanceKey?V.jsx(zo,{to:`/instances/${encodeURIComponent(C.processedOnInstanceKey)}`,"aria-label":C.processedOnInstanceKey,children:V.jsx(qC,{value:C.processedOnInstanceKey,head:8,tail:4})}):"—"},La("Created At","createdAt",E=>E.createdAt),La("Start After","startAfter",E=>E.startAfter),La("Completed At","completedAt",E=>E.completedAt),La("Failed At","failedAt",E=>E.failedAt),cg(E=>V.jsxs(ag,{children:[V.jsx(ds,{icon:wt.retry.icon,label:wt.retry.label,disabled:E.status===On.ACTIVE,onClick:()=>void o({kind:Nn.RETRY,jobId:E.id},"Retry queued")}),V.jsx(ds,{icon:wt.cancel.icon,label:wt.cancel.label,disabled:!uoe.includes(E.status),confirm:{title:"Cancel this job?"},onClick:()=>void o({kind:Nn.CANCEL,jobId:E.id},"Cancelled")}),V.jsx(ds,{danger:!0,icon:wt.remove.icon,label:wt.remove.label,confirm:{title:"Remove this job permanently?"},onClick:()=>void o({kind:Nn.REMOVE,jobId:E.id},"Removed")})]}))],$=async(E,C)=>{await s({kind:E,jobIds:[...d]},{verb:C,noun:"job"}),p([])},x=[{key:"retry",label:`${wt.retry.label} selected`,icon:wt.retry.icon,onClick:()=>void $(Nn.RETRY,"Requeued")},{key:"cancel",label:`${wt.cancel.label} selected`,icon:wt.cancel.icon,onClick:()=>void $(Nn.CANCEL,"Cancelled")},{key:"remove",label:`${wt.remove.label} selected`,icon:wt.remove.icon,danger:!0,onClick:()=>void i.confirm({title:`Remove ${d.length} job(s)?`,content:"This permanently deletes the selected job rows. It cannot be undone.",okText:wt.remove.label,okButtonProps:{danger:!0},onOk:()=>$(Nn.REMOVE,"Removed")})}];return V.jsx(ig,{total:b,page:rg(c.page,b),onPageChange:c.setPage,loading:h.isLoading,error:h.error,errorTitle:"Could not load jobs",onRetry:()=>void h.refetch(),search:{value:c.search,onChange:c.setSearch,placeholder:"Search id, status, key, error or payload"},filters:{defs:coe,values:c.filters,onChange:c.setFilters,onClear:(E,C)=>c.clearFilter(E,C)},toolbarLeading:V.jsx(A3,{count:d.length,items:x}),children:V.jsx(Jo,{...lg,rowKey:E=>E.id,columns:v,dataSource:y,locale:{emptyText:c.search?V.jsx(sa,{message:`No jobs match “${c.search}”.`}):V.jsx(sa,{message:"No jobs yet.",hint:"Jobs appear here as your app produces them — here's how to add one.",docsHref:og.producing,docsLabel:"Producing jobs"})},rowSelection:L3({rows:y,keyOf:E=>E.id,selected:d,onChange:p,max:nl.maxBatchIds,hint:`You can act on ${nl.maxBatchIds} jobs at a time — the limit is what one database statement can carry. Clear a selection to pick another.`})})})}const hv=1;function doe(e){const t=e.trim().split(/\s+/);if(t.length!==5)return`A cron expression has 5 fields (minute hour day month weekday); this has ${t.length}.`;const n=[[0,59],[0,23],[1,31],[1,12],[0,7]];for(const[r,o]of t.entries()){const[s,i]=n[r];for(const c of o.split(",")){const[f,d]=c.split("/");if(d!==void 0&&!/^\d+$/.test(d))return`Invalid step '/${d}'.`;if(f==="*"||f===void 0||f==="")continue;const p=f.split("-");if(p.length>2)return`Invalid range '${f}'.`;for(const m of p){if(!/^\d+$/.test(m))return`'${m}' is not a number.`;const h=Number(m);if(h<s||h>i)return`'${m}' is outside the allowed range ${s}–${i}.`}}}}function fT(e){if(!e.trim())return{ok:!1,message:"Data is required."};try{return{ok:!0,value:JSON.parse(e)}}catch(t){return{ok:!1,message:t instanceof Error?t.message:"Invalid JSON."}}}function D3({open:e,queue:t,onClose:n,initial:r,onCreated:o}){const{run:s}=ai(),[i,c]=a.useState("once"),[f,d]=a.useState("cron"),[p,m]=a.useState(!1),h=r?.data!==void 0?JSON.stringify(r.data,null,2):"{}",[y,b]=a.useState(h),[v,$]=a.useState(r?.priority??null),[x,E]=a.useState(""),[C,w]=a.useState(""),[R,P]=a.useState(null),[I,T]=a.useState(""),[L,z]=a.useState(null),[M,O]=a.useState(""),[_,F]=a.useState(null),[W,q]=a.useState(""),[G,j]=a.useState({}),H=a.useMemo(()=>fT(y),[y]);a.useEffect(()=>{e&&(b(h),$(r?.priority??null),E(""),w(""),P(null),T(""),z(null),O(""),F(null),q(""),j({}),c("once"),d("cron"))},[e]);const k=()=>{const K={};let Q;const Z=fT(y);if(Z.ok?Q=Z.value:K.data=Z.message,v!==null&&!Number.isInteger(v)&&(K.priority="Priority must be a whole number."),R!==null&&(!Number.isInteger(R)||R<0)&&(K.retry="Max attempts must be a whole number of 0 or more."),I)try{new RegExp(I)}catch(X){K.pattern=X instanceof Error?X.message:"Not a valid regular expression."}i==="once"&&L!==null&&(!Number.isInteger(L)||L<0)&&(K.startAfter="A delay must be a whole number of seconds, 0 or more."),i==="recurring"&&(f==="cron"?M.trim()?K.cron=doe(M):K.cron="A cron expression is required for this cadence.":_===null?K.every="An interval is required for this cadence.":(!Number.isInteger(_)||_<hv)&&(K.every=`The interval must be a whole number of seconds, at least ${hv}.`));for(const X of Object.keys(K))K[X]===void 0&&delete K[X];return{errors:K,...Q!==void 0?{parsed:Q}:{}}},B=async()=>{const{errors:K,parsed:Q}=k();if(j(K),Object.keys(K).length>0)return;const Z={data:Q,...typeof v=="number"?{priority:v}:{},...x?{idempotencyKey:x}:{},...C?{singletonKey:C}:{},...typeof R=="number"?{retryMaxAttempts:R}:{},...I?{preferredInstanceKeyPattern:I}:{},...i==="once"&&L!==null?{startAfterSeconds:L}:{},...i==="recurring"&&f==="cron"?{cron:W?{pattern:M,tz:W}:M}:{},...i==="recurring"&&f==="every"&&_!==null?{startEverySeconds:_}:{}};m(!0);const X=await s({kind:Nn.ADD,queue:t,add:Z},i==="recurring"?"Schedule created":"Job added");m(!1),X&&(n(),o?.(X))},D=(K,Q)=>K!==void 0?{validateStatus:"error",help:K}:Q!==void 0?{extra:Q}:{};return V.jsx(Qo,{title:`Add job to “${t}”`,open:e,onCancel:n,onOk:()=>void B(),okText:i==="recurring"?"Create schedule":"Add job",confirmLoading:p,destroyOnHidden:!0,children:V.jsxs(Sn,{vertical:!0,gap:"middle",children:[V.jsx(SP,{value:i,onChange:c,options:[{label:"One-off",value:"once"},{label:"Recurring",value:"recurring"}]}),V.jsxs(nr,{layout:"vertical",component:"div",children:[V.jsx(nr.Item,{label:"Data (JSON)",required:!0,htmlFor:"add-job-data",hasFeedback:!0,validateStatus:H.ok?"success":"error",help:H.ok?"Valid JSON":H.message,children:V.jsx(Uo.TextArea,{id:"add-job-data",rows:5,style:{fontFamily:"var(--pq-font-mono)"},value:y,onChange:K=>b(K.target.value)})}),V.jsx(nr.Item,{label:"Priority",htmlFor:"add-job-priority",...D(G.priority,"Higher runs first"),children:V.jsx(Wu,{id:"add-job-priority",style:{width:"100%"},value:v,onChange:$})}),V.jsx(nr.Item,{label:"Max retry attempts",htmlFor:"add-job-retry",...D(G.retry,"Leave empty to use the queue's default"),children:V.jsx(Wu,{id:"add-job-retry",style:{width:"100%"},min:0,value:R,onChange:P})}),V.jsx(nr.Item,{label:"Idempotency key",htmlFor:"add-job-idempotency",children:V.jsx(Uo,{id:"add-job-idempotency",placeholder:"Optional; dedupes identical adds",value:x,onChange:K=>E(K.target.value)})}),V.jsx(nr.Item,{label:"Singleton key",htmlFor:"add-job-singleton",...D(void 0,"At most one unfinished job may hold this key"),children:V.jsx(Uo,{id:"add-job-singleton",placeholder:"Optional",value:C,onChange:K=>w(K.target.value)})}),V.jsx(nr.Item,{label:"Preferred instance pattern",htmlFor:"add-job-instance",...D(G.pattern,"A regular expression matching the instance keys allowed to run this job"),children:V.jsx(Uo,{id:"add-job-instance",placeholder:"e.g. ^worker-eu-",value:I,onChange:K=>T(K.target.value)})}),i==="once"?V.jsx(nr.Item,{label:"Start after (seconds)",htmlFor:"add-job-start-after",...D(G.startAfter,"Optional delay from now. Every duration in PortQueue is seconds."),children:V.jsx(Wu,{id:"add-job-start-after",style:{width:"100%"},min:0,placeholder:"e.g. 30",value:L,onChange:z})}):V.jsxs(V.Fragment,{children:[V.jsx(nr.Item,{label:"Cadence",children:V.jsx(SP,{size:"small",value:f,onChange:d,options:[{label:"Cron expression",value:"cron"},{label:"Fixed interval",value:"every"}]})}),f==="cron"?V.jsxs(V.Fragment,{children:[V.jsx(nr.Item,{label:"Cron expression",required:!0,htmlFor:"add-job-cron",...D(G.cron,"Five fields: minute hour day month weekday"),children:V.jsx(Uo,{id:"add-job-cron",placeholder:"e.g. 0 * * * *",value:M,onChange:K=>O(K.target.value)})}),V.jsx(nr.Item,{label:"Timezone",htmlFor:"add-job-tz",children:V.jsx(Uo,{id:"add-job-tz",placeholder:"IANA tz, e.g. UTC",value:W,onChange:K=>q(K.target.value)})})]}):V.jsx(nr.Item,{label:"Every (seconds)",required:!0,htmlFor:"add-job-every",...D(G.every,"Seconds between runs"),children:V.jsx(Wu,{id:"add-job-every",style:{width:"100%"},min:hv,value:_,onChange:F,placeholder:"e.g. 60"})})]})]})]})})}function foe(){const{name:e}=Yh(),t=decodeURIComponent(e),{run:n}=ai(),r=_s(gs.stats(t),()=>Go.getStats(t)),o={search:t,limit:1},i=_s(gs.queues(o),()=>Go.getQueues(o)).data?.items.find(m=>m.name===t),[c,f]=a.useState(!1),d={items:[wd.PROCESSING,wd.ALL].map(m=>({key:m,label:zte[m].label})),onClick:({key:m})=>void n({kind:Nn.PAUSE,queue:t,mode:m},"Paused")},p=V.jsxs(Sn,{gap:"small",align:"center",wrap:!0,children:[i?.processingPaused?V.jsx(sn,{icon:wt.resume.icon,onClick:()=>void n({kind:Nn.RESUME,queue:t},"Resumed"),children:wt.resume.label}):V.jsx(rf,{menu:d,trigger:["click"],placement:"bottomRight",children:V.jsxs(sn,{icon:wt.pause.icon,children:[wt.pause.label," ",V.jsx(Xd,{"aria-hidden":!0})]})}),V.jsx(sn,{type:"primary",icon:wt.add.icon,onClick:()=>f(!0),children:wt.add.label}),i&&V.jsx(si,{title:"Remove this queue from the database?",description:"Refused while a running process still declares this queue. Job rows are untouched.",okText:"Remove queue",cancelText:"Keep",okButtonProps:{danger:!0},onConfirm:()=>void n({kind:Nn.REMOVE_QUEUE,queue:t},"Queue removed"),children:V.jsx(sn,{danger:!0,icon:wt.remove.icon,children:"Remove queue"})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Queue",title:t,tags:i?V.jsx(sg,{row:i}):void 0,extra:p}),V.jsxs(qr,{children:[V.jsx(O3,{stats:r.data,loading:r.isLoading,error:r.error,onRetry:()=>void r.refetch()}),V.jsx(W$,{queue:t})]}),V.jsx(D3,{open:c,queue:t,onClose:()=>f(!1)})]})}function poe({job:e}){const t=[{label:"Created",at:e.createdAt,color:xn.status.PENDING},{label:"Started",at:e.startedAt,color:xn.status.ACTIVE},{label:"Retried",at:e.retriedAt,color:xn.status.RETRY},{label:"Stalled",at:e.stalledAt,color:xn.status.STALLED},{label:"Completed",at:e.completedAt,color:xn.status.COMPLETED},{label:"Failed",at:e.failedAt,color:xn.status.FAILED},{label:"Cancelled",at:e.cancelledAt,color:xn.status.CANCELLED},{label:"Expired",at:e.expiredAt,color:xn.status.EXPIRED}].filter(o=>o.at);t.sort((o,s)=>new Date(o.at).getTime()-new Date(s.at).getTime());const n=t.map((o,s)=>{const i=s>0?t[s-1]:void 0;return{key:`${o.label}-${o.at}`,color:o.color,content:V.jsxs(Sn,{vertical:!0,children:[V.jsx(zn.Text,{strong:!0,children:o.label}),V.jsx(zn.Text,{type:"secondary",children:V.jsx(rl,{value:o.at})}),i&&V.jsxs(zn.Text,{type:"secondary",children:["+",Pte(i.at,o.at)," since ",i.label.toLowerCase()]})]})}}),r=e.stalled?Qh:e.status;return V.jsxs(Sn,{vertical:!0,gap:"middle",children:[V.jsxs(Sn,{align:"center",gap:"small",children:[V.jsxs(yl,{tone:"info",children:["Now: ",A$(r)]}),V.jsxs(zn.Text,{type:"secondary",children:["Attempt ",e.retryAttempt," / ",e.retryMaxAttempts]})]}),n.length?V.jsx(Bz,{items:n}):V.jsx(zn.Text,{type:"secondary",children:"No lifecycle events yet."})]})}const moe=[On.COMPLETED,On.FAILED,On.CANCELLED,On.EXPIRED],hoe=[{key:"createdAt",label:"Created at"},{key:"startAfter",label:"Start after"},{key:"startedAt",label:"Started at"},{key:"retriedAt",label:"Retried at"},{key:"stalledAt",label:"Stalled at"},{key:"completedAt",label:"Completed at"},{key:"failedAt",label:"Failed at"},{key:"cancelledAt",label:"Cancelled at"},{key:"expiredAt",label:"Expired at"},{key:"updatedAt",label:"Updated at"}],goe=410,pT={xs:1,sm:2},B3=({children:e})=>V.jsx(zn.Text,{code:!0,children:e});function Gp({value:e,to:t}){return e?t?V.jsx(zo,{to:t(e),children:e}):V.jsx(B3,{children:e}):V.jsx(V.Fragment,{children:"—"})}function mT(e){if(e==null)return"—";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function yoe(){const{id:e}=Yh(),t=decodeURIComponent(e),{run:n}=ai(),r=af(),{message:o}=kc.useApp(),{token:s}=Ds.useToken(),[i,c]=a.useState(!1),f=_s(gs.job(t),()=>Go.getJob(t)),d=Ete(gs.job(t),()=>Go.getJob(t)),p=i?d:f,[m,h]=a.useState(!1);if(a.useEffect(()=>{const P=p.data?.status;c(P!==void 0&&moe.includes(P))},[t,p.data?.status]),p.error)return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Job",title:t,subtitle:"This job could not be loaded."}),V.jsxs(qr,{children:[V.jsx(ff,{title:"Could not load this job",error:p.error,onRetry:()=>void p.refetch()}),V.jsx(zo,{to:"/",children:"Back to overview"})]})]});if(p.isLoading&&!p.data)return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Job",title:t,subtitle:"Loading the record…"}),V.jsx(qr,{children:V.jsx(Nr,{children:V.jsx(ro,{active:!0,paragraph:{rows:6}})})})]});const y=p.data;if(!y)return V.jsx(qr,{children:V.jsx(Nr,{children:V.jsx(ro,{active:!0,paragraph:{rows:6}})})});const b=y.status===On.FAILED,v=y.stalled?Qh:y.status,$=A$(v),x=`/queues/${encodeURIComponent(y.queue)}`,E=async()=>{const P=await n({kind:Nn.REMOVE,jobId:y.id},void 0,{silent:!0});if(P){if(!P.ok){o.info("This job is still running. Cancel it first, then remove it.");return}o.success("Removed"),r.push(x)}},C=V.jsxs(Sn,{gap:"small",wrap:!0,children:[V.jsx(sn,{icon:wt.retry.icon,disabled:!b&&y.status===On.ACTIVE,onClick:()=>void n({kind:Nn.RETRY,jobId:y.id},"Retry queued"),children:wt.retry.label}),V.jsx(sn,{icon:wt.clone.icon,onClick:()=>h(!0),children:wt.clone.label}),y.status===On.ACTIVE&&V.jsx(si,{title:"Cancel this job?",okText:wt.cancel.label,cancelText:"Keep",onConfirm:()=>void n({kind:Nn.CANCEL,jobId:y.id},"Cancelled"),children:V.jsx(sn,{icon:wt.cancel.icon,children:wt.cancel.label})}),V.jsx(si,{title:"Remove this job permanently?",okText:wt.remove.label,cancelText:"Keep",okButtonProps:{danger:!0},onConfirm:()=>void E(),children:V.jsx(sn,{danger:!0,icon:wt.remove.icon,children:wt.remove.label})})]}),w=[{key:"id",label:"Job id",children:V.jsx(B3,{children:y.id})},{key:"queue",label:"Queue",children:V.jsx(zo,{to:x,children:y.queue})},{key:"status",label:"Status",children:V.jsx(UC,{status:v,label:$})},{key:"stalled",label:"Stalled",children:V.jsx(Yre,{on:y.stalled})},{key:"priority",label:"Priority",children:y.priority},{key:"attempts",label:"Attempts",children:`${y.retryAttempt} / ${y.retryMaxAttempts}`},{key:"instance",label:"Processed on instance",children:V.jsx(Gp,{value:y.processedOnInstanceKey,to:P=>`/instances/${encodeURIComponent(P)}`})},{key:"pattern",label:"Preferred instance pattern",children:V.jsx(Gp,{value:y.preferredInstanceKeyPattern})},{key:"lockedUntil",label:"Locked until",children:V.jsx(rl,{value:y.lockedUntil})},{key:"idempotency",label:"Idempotency key",children:V.jsx(Gp,{value:y.idempotencyKey})},{key:"schedule",label:"Schedule",children:V.jsx(Gp,{value:y.scheduleId,to:P=>`/schedules/${encodeURIComponent(P)}`})}],R=(P,I=!1)=>V.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:s.fontFamilyCode,fontSize:s.fontSizeSM,color:I?s.colorError:s.colorText},children:P});return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Job",title:y.id,tags:V.jsx(UC,{status:v,label:$}),extra:C}),V.jsx(qr,{children:V.jsxs(_h,{gutter:[16,16],children:[V.jsx(zc,{xs:24,lg:{flex:"1 1 0"},style:{minWidth:0},children:V.jsx(Nr,{title:"Details",children:V.jsxs(Sn,{vertical:!0,gap:"middle",children:[V.jsx(Um,{column:pT,items:w}),y.failureMessage&&V.jsx(Nr,{type:"inner",size:"small",title:"Failure message",children:R(y.failureMessage,!0)}),V.jsx(Nr,{type:"inner",size:"small",title:"Data",children:R(mT(y.data))}),V.jsx(Nr,{type:"inner",size:"small",title:"Return value",children:R(mT(y.returnValue))}),V.jsx(Nr,{type:"inner",size:"small",title:"Timestamps",children:V.jsx(Um,{column:pT,items:hoe.map(P=>({key:P.key,label:P.label,children:V.jsx(rl,{value:y[P.key]})}))})})]})})}),V.jsx(zc,{xs:24,lg:{flex:`0 0 ${goe}px`},children:V.jsx(Nr,{title:"Lifecycle",children:V.jsx(poe,{job:y})})})]})}),V.jsx(D3,{open:m,queue:y.queue,onClose:()=>h(!1),initial:{data:y.data,priority:y.priority},onCreated:P=>{P.jobId?r.push(`/jobs/${encodeURIComponent(P.jobId)}`):P.scheduleId&&r.push(`/schedules/${encodeURIComponent(P.scheduleId)}`)}})]})}const boe=["state"],voe=[{key:"state",label:"State",options:[{label:th.enabled.label,value:"enabled"},{label:th.disabled.label,value:"disabled"}]}];function _3(e){return e.cron?e.cron:e.everySeconds?`every ${e.everySeconds}s`:"—"}function xoe({queue:e}){const{run:t,runBatch:n}=ai(),{modal:r}=kc.useApp(),o=ng("schedules",boe),s=o.filters.state?.[0],[i,c]=a.useState([]),f={limit:gl,offset:o.offset,...e?{queue:e}:{},...o.search?{search:o.search}:{},...s?{enabled:s==="enabled"}:{}},d=_s(gs.schedules(f),()=>Go.getSchedules(f)),p=a.useMemo(()=>d.data?.items??[],[d.data]),m=d.data?.total??0;a.useEffect(()=>c([]),[e,o.search,s,o.offset]),a.useEffect(()=>{const v=new Set(p.map($=>$.scheduleId));c($=>{const x=$.filter(E=>v.has(E));return x.length===$.length?$:x})},[p]);const h=[{title:"Schedule",key:"scheduleId",render:(v,$)=>V.jsx(zo,{to:`/schedules/${encodeURIComponent($.scheduleId)}`,"aria-label":$.scheduleId,children:V.jsx(qC,{value:$.scheduleId})})},{title:"Queue",key:"queue",render:(v,$)=>V.jsx(zo,{to:`/queues/${encodeURIComponent($.queue)}`,children:$.queue})},{title:"Cadence",key:"cadence",render:(v,$)=>$.cron?V.jsx(zn.Text,{code:!0,children:$.cron}):_3($)},{title:"Timezone",key:"timezone",render:(v,$)=>$.timezone??"UTC"},La("Next Run","nextRunAt",v=>v.nextRunAt),La("Last Run","lastRunAt",v=>v.lastRunAt),{title:"State",key:"enabled",render:(v,$)=>V.jsx(KC,{enabled:$.enabled})},cg(v=>V.jsxs(ag,{children:[v.enabled?V.jsx(ds,{icon:wt.pause.icon,label:"Disable",confirm:{title:"Stop this schedule from firing?"},onClick:()=>void t({kind:Nn.SET_SCHEDULE_ENABLED,scheduleId:v.scheduleId,enabled:!1},"Schedule disabled")}):V.jsx(ds,{icon:wt.resume.icon,label:"Enable",onClick:()=>void t({kind:Nn.SET_SCHEDULE_ENABLED,scheduleId:v.scheduleId,enabled:!0},"Schedule enabled")}),V.jsx(ds,{danger:!0,icon:wt.remove.icon,label:wt.remove.label,confirm:{title:"Remove this schedule?"},onClick:()=>void t({kind:Nn.REMOVE_SCHEDULE,scheduleId:v.scheduleId},"Schedule removed")})]}))],y=async()=>{await n({kind:Nn.REMOVE_SCHEDULE,scheduleIds:[...i]},{verb:"Removed",noun:"schedule"}),c([])},b=[{key:"remove",label:`${wt.remove.label} selected`,icon:wt.remove.icon,danger:!0,onClick:()=>void r.confirm({title:`Remove ${i.length} schedule(s)?`,content:"The selected recurring definitions stop firing. Jobs they already created are kept.",okText:wt.remove.label,okButtonProps:{danger:!0},onOk:()=>y()})}];return V.jsx(ig,{total:m,page:rg(o.page,m),onPageChange:o.setPage,loading:d.isLoading,error:d.error,errorTitle:"Could not load schedules",onRetry:()=>void d.refetch(),search:{value:o.search,onChange:o.setSearch,placeholder:"Search id, queue or cadence"},filters:{defs:voe,values:o.filters,onChange:o.setFilters,onClear:(v,$)=>o.clearFilter(v,$)},toolbarLeading:V.jsx(A3,{count:i.length,items:b}),children:V.jsx(Jo,{...lg,rowKey:v=>v.scheduleId,columns:h,dataSource:p,locale:{emptyText:o.search?V.jsx(sa,{message:`No schedules match “${o.search}”.`}):V.jsx(sa,{message:"No recurring schedules.",hint:"Pass `schedule: { cron }` or `schedule: { startEverySeconds }` to addJob to create one — here's how.",docsHref:og.scheduling,docsLabel:"Scheduling guide"})},rowSelection:L3({rows:p,keyOf:v=>v.scheduleId,selected:i,onChange:c,max:nl.maxBatchIds,hint:`You can act on ${nl.maxBatchIds} schedules at a time — the limit is what one database statement can carry. Clear a selection to pick another.`})})})}function Coe(){return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{title:"Schedules",subtitle:"Recurring definitions and when they next fire, across every queue."}),V.jsx(qr,{children:V.jsx(xoe,{})})]})}const gv=({children:e})=>V.jsx(zn.Text,{code:!0,children:e});function Soe(){const{id:e}=Yh(),t=decodeURIComponent(e),{run:n}=ai(),r=af(),o=_s(gs.schedule(t),()=>Go.getSchedule(t));if(o.error)return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Schedule",title:t,subtitle:"This schedule could not be loaded."}),V.jsxs(qr,{children:[V.jsx(ff,{title:"Could not load this schedule",error:o.error,onRetry:()=>void o.refetch()}),V.jsx(zo,{to:"/schedules",children:"Back to schedules"})]})]});const s=o.data;if(!s)return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Schedule",title:t,subtitle:"Loading the definition…"}),V.jsx(qr,{children:V.jsx(Nr,{children:V.jsx(ro,{active:!0,paragraph:{rows:4}})})})]});const i=async()=>{await n({kind:Nn.REMOVE_SCHEDULE,scheduleId:s.scheduleId},"Schedule removed")&&r.push("/schedules")},c=V.jsxs(Sn,{gap:"small",wrap:!0,children:[s.enabled?V.jsx(si,{title:"Stop this schedule from firing?",description:"The definition is kept, so you can re-enable it later.",okText:"Disable",cancelText:"Keep",onConfirm:()=>void n({kind:Nn.SET_SCHEDULE_ENABLED,scheduleId:s.scheduleId,enabled:!1},"Schedule disabled"),children:V.jsx(sn,{icon:wt.pause.icon,children:"Disable"})}):V.jsx(sn,{icon:wt.resume.icon,onClick:()=>void n({kind:Nn.SET_SCHEDULE_ENABLED,scheduleId:s.scheduleId,enabled:!0},"Schedule enabled"),children:"Enable"}),V.jsx(si,{title:"Remove this schedule?",description:"It stops firing permanently. Jobs it already created are kept.",okText:wt.remove.label,cancelText:"Keep",okButtonProps:{danger:!0},onConfirm:()=>void i(),children:V.jsx(sn,{danger:!0,icon:wt.remove.icon,children:wt.remove.label})})]}),f=V.jsx(zo,{to:`/queues/${encodeURIComponent(s.queue)}`,children:s.queue}),d=[{key:"id",label:"Schedule id",children:V.jsx(gv,{children:s.scheduleId})},{key:"queue",label:"Queue",children:f},{key:"cadence",label:"Cadence",children:s.cron?V.jsx(gv,{children:s.cron}):_3(s)},{key:"timezone",label:"Timezone",children:s.timezone??"UTC"},{key:"next",label:"Next run",children:V.jsx(rl,{value:s.nextRunAt})},{key:"last",label:"Last run",children:V.jsx(rl,{value:s.lastRunAt})},{key:"state",label:"State",children:V.jsx(KC,{enabled:s.enabled})},{key:"idempotency",label:"Idempotency key",children:s.idempotencyKey?V.jsx(gv,{children:s.idempotencyKey}):"—"}];return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Schedule",title:s.scheduleId,tags:V.jsx(KC,{enabled:s.enabled}),extra:c}),V.jsxs(qr,{children:[V.jsx(Nr,{title:"Definition",children:V.jsx(Um,{column:{xs:1,sm:2,lg:3},items:d})}),V.jsxs(Sn,{vertical:!0,gap:"small",children:[V.jsx(zn.Title,{level:5,style:{margin:0},children:"Jobs produced"}),V.jsx(W$,{queue:s.queue,scheduleId:s.scheduleId,prefix:"scheduleJobs"})]})]})]})}const hT={warn:75,danger:85},sh={cpu:"This Node process’s CPU since the last heartbeat, as a share of all the cores available to it — 100% means it is using every core. Not the machine’s load",memory:"This Node process’s used heap as a share of the limit V8 would abort at (--max-old-space-size) — not the machine’s memory"};function ih(e){return e===null?"—":`${e.toFixed(1)}%`}function ah(e){return e===null?"normal":e>=hT.danger?"danger":e>=hT.warn?"warn":"normal"}const gT=ee.forwardRef(function({children:t,tone:n,...r},o){return V.jsx(zn.Text,{...r,ref:o,...n==="normal"?{}:{type:n==="warn"?"warning":"danger",strong:!0},title:n==="normal"?void 0:`Running ${n}`,style:{color:n==="normal"?"inherit":void 0,fontVariantNumeric:"tabular-nums"},children:t})}),$oe=["liveness","state"],woe=[{key:"liveness",label:"Liveness",options:[{label:eh.alive.label,value:"alive"},{label:eh.stale.label,value:"stale"}]},{key:"state",label:"State",options:o3}];function Eoe(){const{run:e}=ai(),t=ng("instances",$oe),n=t.filters.liveness?.[0],r=t.filters.state?.[0],o={limit:gl,offset:t.offset,...t.search?{search:t.search}:{},...n?{alive:n==="alive"}:{},...r?{processingPaused:r==="paused"}:{}},s=_s(gs.instances(o),()=>Go.getInstances(o)),i=s.data?.items??[],c=s.data?.total??0,f=[{title:"Instance",key:"instanceKey",render:(d,p)=>V.jsx(zo,{to:`/instances/${encodeURIComponent(p.instanceKey)}`,children:p.instanceKey})},{title:"Liveness",key:"liveness",render:(d,p)=>V.jsx(z3,{alive:p.alive})},{title:"State",key:"state",render:(d,p)=>V.jsx(sg,{row:p})},{title:"CPU (process)",key:"cpuPercent",align:"right",render:(d,p)=>V.jsx(rr,{title:sh.cpu,placement:"bottom",children:V.jsx(gT,{tone:ah(p.cpuPercent),children:ih(p.cpuPercent)})})},{title:"Memory (process)",key:"memoryPercent",align:"right",render:(d,p)=>V.jsx(rr,{title:sh.memory,placement:"bottom",children:V.jsx(gT,{tone:ah(p.memoryPercent),children:ih(p.memoryPercent)})})},{title:"Processed",key:"processed",align:"right",render:(d,p)=>z$(p.counts)},La("Last Seen","lastSeenAt",d=>d.lastSeenAt),cg(d=>{const p=s3(d);return V.jsxs(ag,{children:[d.processingPaused?V.jsx(ds,{icon:wt.resume.icon,label:wt.resume.label,onClick:()=>void e({kind:Nn.RESUME_INSTANCE,instanceKey:d.instanceKey},"Resumed")}):V.jsx(ds,{icon:wt.pause.icon,label:wt.pause.label,confirm:{title:Gi.pauseConfirm},onClick:()=>void e({kind:Nn.PAUSE_INSTANCE,instanceKey:d.instanceKey},"Paused")}),V.jsx(ds,{danger:!0,disabled:!p,icon:wt.remove.icon,label:p?wt.remove.label:Gi.removeBlocked(d.removableAfter),confirm:{title:Gi.removeConfirm,description:Gi.removeConfirmDescription},onClick:()=>void e({kind:Nn.REMOVE_INSTANCE,instanceKey:d.instanceKey},"Instance removed")})]})})];return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{title:"Instances",subtitle:"Liveness, the health of each instance's process at its last heartbeat, and jobs processed across the cluster."}),V.jsx(qr,{children:V.jsx(ig,{total:c,page:rg(t.page,c),onPageChange:t.setPage,loading:s.isLoading,error:s.error,errorTitle:"Could not load instances",onRetry:()=>void s.refetch(),search:{value:t.search,onChange:t.setSearch,placeholder:"Search instance key"},filters:{defs:woe,values:t.filters,onChange:t.setFilters,onClear:(d,p)=>t.clearFilter(d,p)},children:V.jsx(Jo,{...lg,rowKey:d=>d.instanceKey,columns:f,dataSource:i,locale:{emptyText:t.search?V.jsx(sa,{message:`No instances match “${t.search}”.`}):V.jsx(sa,{message:"No instances registered.",hint:"Give each process an `instanceKey` to attribute jobs to it and control it from here — here's how.",docsHref:og.scaleHorizontally,docsLabel:"Scaling horizontally"})}})})})]})}const Roe=8;function Ioe(){const{key:e}=Yh(),t=decodeURIComponent(e),{run:n}=ai(),r=af(),{token:o}=Ds.useToken(),s={normal:void 0,warn:o.colorWarning,danger:o.colorError},i=_s(gs.instance(t),()=>Go.getInstance(t));if(i.error)return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Instance",title:t,subtitle:"This instance could not be loaded."}),V.jsxs(qr,{children:[V.jsx(ff,{title:"Could not load this instance",error:i.error,onRetry:()=>void i.refetch()}),V.jsx(zo,{to:"/instances",children:"Back to instances"})]})]});const c=i.data;if(!c)return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Instance",title:t,subtitle:"Loading this instance…"}),V.jsx(qr,{children:V.jsx(Nr,{children:V.jsx(ro,{active:!0,paragraph:{rows:4}})})})]});const f=[{label:"CPU (process)",value:ih(c.cpuPercent),color:s[ah(c.cpuPercent)],hint:sh.cpu},{label:"Memory (process)",value:ih(c.memoryPercent),color:s[ah(c.memoryPercent)],hint:sh.memory},{label:"Processed",value:String(z$(c.counts)),color:void 0,hint:"Every job this instance has claimed, in any state"}],d=async()=>{await n({kind:Nn.REMOVE_INSTANCE,instanceKey:c.instanceKey},"Instance removed")&&r.push("/instances")},p=s3(c),m=V.jsxs(Sn,{gap:"small",align:"center",wrap:!0,children:[c.processingPaused?V.jsx(sn,{icon:wt.resume.icon,onClick:()=>void n({kind:Nn.RESUME_INSTANCE,instanceKey:c.instanceKey},"Resumed"),children:wt.resume.label}):V.jsx(si,{title:Gi.pauseConfirm,okText:wt.pause.label,cancelText:"Keep",onConfirm:()=>void n({kind:Nn.PAUSE_INSTANCE,instanceKey:c.instanceKey},"Paused"),children:V.jsx(sn,{icon:wt.pause.icon,children:wt.pause.label})}),V.jsx(rr,{title:p?wt.remove.label:Gi.removeBlocked(c.removableAfter),placement:"bottom",children:V.jsx(si,{title:Gi.removeConfirm,description:Gi.removeConfirmDescription,okText:wt.remove.label,cancelText:"Keep",okButtonProps:{danger:!0},onConfirm:()=>void d(),disabled:!p,children:V.jsx(sn,{danger:!0,icon:wt.remove.icon,disabled:!p,children:wt.remove.label})})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Oo,{entity:"Instance",title:c.instanceKey,tags:V.jsxs(V.Fragment,{children:[V.jsx(z3,{alive:c.alive}),V.jsx(sg,{row:c})]}),subtitle:V.jsxs("span",{children:["Last seen ",V.jsx(rl,{value:c.lastSeenAt})]}),extra:m}),V.jsxs(qr,{children:[V.jsx(_h,{gutter:[16,16],children:f.map(h=>V.jsx(zc,{xs:24,md:Roe,children:V.jsx(Nr,{children:V.jsx(of,{title:V.jsxs(Sn,{gap:6,align:"center",component:"span",children:[h.label,V.jsx(rr,{title:h.hint,trigger:["hover","focus"],children:V.jsx(zee,{tabIndex:0,"aria-label":`About ${h.label}`})})]}),value:h.value,styles:{content:{color:h.color}}})})},h.label))}),V.jsxs(Sn,{vertical:!0,gap:"small",children:[V.jsx(zn.Title,{level:5,style:{margin:0},children:"Jobs processed"}),V.jsx(W$,{instanceKey:c.instanceKey,prefix:"instanceJobs"})]})]})]})}function F3(e){return e==="/"?"":e.replace(/\/+$/,"")}function Poe(e){if(typeof window>"u")return;const{hash:t}=window.location;t.startsWith("#/")&&window.history.replaceState(window.history.state,"",`${F3(e)}${t.slice(1)}`)}function Noe(){const e=Xh();return V.jsx(Wte,{resetKey:e.pathname,children:V.jsxs(dee,{children:[V.jsx(Ni,{exact:!0,path:"/",component:aoe}),V.jsx(Ni,{exact:!0,path:"/instances",component:Eoe}),V.jsx(Ni,{exact:!0,path:"/instances/:key",component:Ioe}),V.jsx(Ni,{exact:!0,path:"/queues/:name",component:foe}),V.jsx(Ni,{exact:!0,path:"/jobs/:id",component:yoe}),V.jsx(Ni,{exact:!0,path:"/schedules",component:Coe}),V.jsx(Ni,{exact:!0,path:"/schedules/:id",component:Soe}),V.jsx(Ni,{children:V.jsxs(qr,{children:[V.jsx(zn.Title,{level:3,children:"Not found"}),V.jsx(zo,{to:"/",children:"Back to overview"})]})})]})})}function Toe({mode:e,onThemeChange:t}){return Poe(nl.basePath),V.jsx(fee,{basename:F3(nl.basePath),children:V.jsx(Hte,{mode:e,onThemeChange:t,children:V.jsx(Noe,{})})})}const Xp="portqueue-theme",yT="(prefers-color-scheme: dark)",Moe="(prefers-reduced-motion: reduce)",bT=e=>typeof matchMedia<"u"&&matchMedia(e).matches;function Ooe(e,t=!1){const n=xn.modes[e],r=xn.palette;return{algorithm:e==="dark"?Ds.darkAlgorithm:Ds.defaultAlgorithm,token:{colorPrimary:n.link,colorLink:n.link,colorInfo:n.infoText,colorSuccess:xn.status.COMPLETED,colorWarning:r.warningHover,colorError:r.dangerHover,colorBgLayout:n.bg,colorBgContainer:n.surface,colorBgElevated:n.surface,colorBgMask:n.overlay,colorText:n.text,colorTextSecondary:n.textMuted,colorTextTertiary:n.textFaint,colorBorder:n.borderStrong,colorBorderSecondary:n.border,colorFillAlter:n.surfaceAlt,fontFamily:xn.font.body,fontFamilyCode:xn.font.mono,fontSize:xn.fontSize.md,borderRadius:xn.radius.md,borderRadiusSM:xn.radius.sm,borderRadiusLG:xn.radius.lg,boxShadow:xn.shadow.md,boxShadowSecondary:xn.shadow.lg,motionEaseInOut:xn.motion.easing,motionDurationFast:`${xn.motion.fastMs}ms`,motionDurationMid:`${xn.motion.baseMs}ms`,motionDurationSlow:`${xn.motion.slowMs}ms`,motion:!t},components:{Button:{colorPrimary:n.brandSolid,colorPrimaryHover:n.brandSolidHover,colorPrimaryActive:n.brandSolidHover,primaryColor:n.onBrand,primaryShadow:"none"},Layout:{headerBg:n.surface,siderBg:n.surface,bodyBg:n.bg,headerHeight:60,headerPadding:`0 ${xn.space[4]}px`},Menu:{itemBg:n.surface,itemSelectedColor:n.link},Table:{headerBorderRadius:0}}}}function zoe(){const[e,t]=a.useState(()=>{if(typeof localStorage>"u")return"system";const c=localStorage.getItem(Xp);return c==="light"||c==="dark"?c:"system"}),[n,r]=a.useState(()=>bT(yT)),[o]=a.useState(()=>bT(Moe));a.useEffect(()=>{if(typeof matchMedia>"u")return;const c=matchMedia(yT),f=d=>{r(d.matches),t("system"),localStorage.removeItem(Xp)};return c.addEventListener("change",f),()=>c.removeEventListener("change",f)},[]);const s=e==="system"?n?"dark":"light":e;return a.useLayoutEffect(()=>{document.documentElement.dataset.theme=s},[s]),{effective:s,reducedMotion:o,setMode:c=>{t(c),!(typeof localStorage>"u")&&(c==="system"?localStorage.removeItem(Xp):localStorage.setItem(Xp,c))}}}const Aoe=new eD({defaultOptions:{queries:{staleTime:0,gcTime:0,retry:1,refetchOnWindowFocus:!1}}});function Loe(){const{effective:e,reducedMotion:t,setMode:n}=zoe();return V.jsx(ys,{theme:Ooe(e,t),children:V.jsx(kc,{children:V.jsx(tD,{client:Aoe,children:V.jsx(Ste,{children:V.jsx(Toe,{mode:e,onThemeChange:n})})})})})}const vT=document.getElementById("root");vT?(document.title=jre,MT.createRoot(vT).render(V.jsx(ee.StrictMode,{children:V.jsx(Loe,{})}))):console.error("[portqueue-dashboard] No #root element found; the SPA did not mount. The served HTML shell is missing its mount point — the client bundle may be stale or partially built.");
|