equip-reserve-build/dist/assets/index-D1eq4NRT.js

522 lines
1.3 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var aj=Object.defineProperty;var ij=(e,t,n)=>t in e?aj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jr=(e,t,n)=>ij(e,typeof t!="symbol"?t+"":t,n);function iR(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 a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{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 a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ah={exports:{}},Vc={},ih={exports:{}},wn={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qw;function lj(){if(qw)return wn;qw=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"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function p(B){return B===null||typeof B!="object"?null:(B=v&&B[v]||B["@@iterator"],typeof B=="function"?B:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,C={};function g(B,V,U){this.props=B,this.context=V,this.refs=C,this.updater=U||y}g.prototype.isReactComponent={},g.prototype.setState=function(B,V){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,V,"setState")},g.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function S(){}S.prototype=g.prototype;function x(B,V,U){this.props=B,this.context=V,this.refs=C,this.updater=U||y}var w=x.prototype=new S;w.constructor=x,h(w,g.prototype),w.isPureReactComponent=!0;var R=Array.isArray,$=Object.prototype.hasOwnProperty,O={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function N(B,V,U){var q,G={},Z=null,ee=null;if(V!=null)for(q in V.ref!==void 0&&(ee=V.ref),V.key!==void 0&&(Z=""+V.key),V)$.call(V,q)&&!I.hasOwnProperty(q)&&(G[q]=V[q]);var J=arguments.length-2;if(J===1)G.children=U;else if(1<J){for(var oe=Array(J),ae=0;ae<J;ae++)oe[ae]=arguments[ae+2];G.children=oe}if(B&&B.defaultProps)for(q in J=B.defaultProps,J)G[q]===void 0&&(G[q]=J[q]);return{$$typeof:e,type:B,key:Z,ref:ee,props:G,_owner:O.current}}function P(B,V){return{$$typeof:e,type:B.type,key:V,ref:B.ref,props:B.props,_owner:B._owner}}function T(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function k(B){var V={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(U){return V[U]})}var H=/\/+/g;function A(B,V){return typeof B=="object"&&B!==null&&B.key!=null?k(""+B.key):V.toString(36)}function _(B,V,U,q,G){var Z=typeof B;(Z==="undefined"||Z==="boolean")&&(B=null);var ee=!1;if(B===null)ee=!0;else switch(Z){case"string":case"number":ee=!0;break;case"object":switch(B.$$typeof){case e:case t:ee=!0}}if(ee)return ee=B,G=G(ee),B=q===""?"."+A(ee,0):q,R(G)?(U="",B!=null&&(U=B.replace(H,"$&/")+"/"),_(G,V,U,"",function(ae){return ae})):G!=null&&(T(G)&&(G=P(G,U+(!G.key||ee&&ee.key===G.key?"":(""+G.key).replace(H,"$&/")+"/")+B)),V.push(G)),1;if(ee=0,q=q===""?".":q+":",R(B))for(var J=0;J<B.length;J++){Z=B[J];var oe=q+A(Z,J);ee+=_(Z,V,U,oe,G)}else if(oe=p(B),typeof oe=="function")for(B=oe.call(B),J=0;!(Z=B.next()).done;)Z=Z.value,oe=q+A(Z,J++),ee+=_(Z,V,U,oe,G);else if(Z==="object")throw V=String(B),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return ee}function D(B,V,U){if(B==null)return B;var q=[],G=0;return _(B,q,"","",function(Z){return V.call(U,Z,G++)}),q}function j(B){if(B._status===-1){var V=B._result;V=V(),V.then(function(U){(B._status===0||B._status===-1)&&(B._status=1,B._result=U)},function(U){(B._status===0||B._status===-1)&&(B._status=2,B._result=U)}),B._status===-1&&(B._status=0,B._result=V)}if(B._status===1)return B._result.default;throw B._result}var z={current:null},F={transition:null},W={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:F,ReactCurrentOwner:O};function K(){throw Error("act(...) is not supported in production builds of React.")}return wn.Children={map:D,forEach:function(B,V,U){D(B,function(){V.apply(this,arguments)},U)},count:function(B){var V=0;return D(B,function(){V++}),V},toArray:function(B){return D(B,function(V){return V})||[]},only:function(B){if(!T(B))throw Error("React.Children.only expected to receive a single React element child.");return B}},wn.Component=g,wn.Fragment=n,wn.Profiler=o,wn.PureComponent=x,wn.StrictMode=r,wn.Suspense=u,wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,wn.act=K,wn.cloneElement=function(B,V,U){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var q=h({},B.props),G=B.key,Z=B.ref,ee=B._owner;if(V!=null){if(V.ref!==void 0&&(Z=V.ref,ee=O.current),V.key!==void 0&&(G=""+V.key),B.type&&B.type.defaultProps)var J=B.type.defaultProps;for(oe in V)$.call(V,oe)&&!I.hasOwnProperty(oe)&&(q[oe]=V[oe]===void 0&&J!==void 0?J[oe]:V[oe])}var oe=arguments.length-2;if(oe===1)q.children=U;else if(1<oe){J=Array(oe);for(var ae=0;ae<oe;ae++)J[ae]=arguments[ae+2];q.children=J}return{$$typeof:e,type:B.type,key:G,ref:Z,props:q,_owner:ee}},wn.createContext=function(B){return B={$$typeof:i,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},B.Provider={$$typeof:a,_context:B},B.Consumer=B},wn.createElement=N,wn.createFactory=function(B){var V=N.bind(null,B);return V.type=B,V},wn.createRef=function(){return{current:null}},wn.forwardRef=function(B){return{$$typeof:s,render:B}},wn.isValidElement=T,wn.lazy=function(B){return{$$typeof:m,_payload:{_status:-1,_result:B},_init:j}},wn.memo=function(B,V){return{$$typeof:d,type:B,compare:V===void 0?null:V}},wn.startTransition=function(B){var V=F.transition;F.transition={};try{B()}finally{F.transition=V}},wn.unstable_act=K,wn.useCallback=function(B,V){return z.current.useCallback(B,V)},wn.useContext=function(B){return z.current.useContext(B)},wn.useDebugValue=function(){},wn.useDeferredValue=function(B){return z.current.useDeferredValue(B)},wn.useEffect=function(B,V){return z.current.useEffect(B,V)},wn.useId=function(){return z.current.useId()},wn.useImperativeHandle=function(B,V,U){return z.current.useImperativeHandle(B,V,U)},wn.useInsertionEffect=function(B,V){return z.current.useInsertionEffect(B,V)},wn.useLayoutEffect=function(B,V){return z.current.useLayoutEffect(B,V)},wn.useMemo=function(B,V){return z.current.useMemo(B,V)},wn.useReducer=function(B,V,U){return z.current.useReducer(B,V,U)},wn.useRef=function(B){return z.current.useRef(B)},wn.useState=function(B){return z.current.useState(B)},wn.useSyncExternalStore=function(B,V,U){return z.current.useSyncExternalStore(B,V,U)},wn.useTransition=function(){return z.current.useTransition()},wn.version="18.3.1",wn}var Yw;function uv(){return Yw||(Yw=1,ih.exports=lj()),ih.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Gw;function sj(){if(Gw)return Vc;Gw=1;var e=uv(),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,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,u,d){var m,v={},p=null,y=null;d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(y=u.ref);for(m in u)r.call(u,m)&&!a.hasOwnProperty(m)&&(v[m]=u[m]);if(s&&s.defaultProps)for(m in u=s.defaultProps,u)v[m]===void 0&&(v[m]=u[m]);return{$$typeof:t,type:s,key:p,ref:y,props:v,_owner:o.current}}return Vc.Fragment=n,Vc.jsx=i,Vc.jsxs=i,Vc}var Xw;function cj(){return Xw||(Xw=1,ah.exports=sj()),ah.exports}var me=cj(),l=uv();const pe=Mo(l),dv=iR({__proto__:null,default:pe},[l]);var Ef={},lh={exports:{}},uo={},sh={exports:{}},ch={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qw;function uj(){return Qw||(Qw=1,function(e){function t(F,W){var K=F.length;F.push(W);e:for(;0<K;){var B=K-1>>>1,V=F[B];if(0<o(V,W))F[B]=W,F[K]=V,K=B;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var W=F[0],K=F.pop();if(K!==W){F[0]=K;e:for(var B=0,V=F.length,U=V>>>1;B<U;){var q=2*(B+1)-1,G=F[q],Z=q+1,ee=F[Z];if(0>o(G,K))Z<V&&0>o(ee,G)?(F[B]=ee,F[Z]=K,B=Z):(F[B]=G,F[q]=K,B=q);else if(Z<V&&0>o(ee,K))F[B]=ee,F[Z]=K,B=Z;else break e}}return W}function o(F,W){var K=F.sortIndex-W.sortIndex;return K!==0?K:F.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],d=[],m=1,v=null,p=3,y=!1,h=!1,C=!1,g=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(F){for(var W=n(d);W!==null;){if(W.callback===null)r(d);else if(W.startTime<=F)r(d),W.sortIndex=W.expirationTime,t(u,W);else break;W=n(d)}}function R(F){if(C=!1,w(F),!h)if(n(u)!==null)h=!0,j($);else{var W=n(d);W!==null&&z(R,W.startTime-F)}}function $(F,W){h=!1,C&&(C=!1,S(N),N=-1),y=!0;var K=p;try{for(w(W),v=n(u);v!==null&&(!(v.expirationTime>W)||F&&!k());){var B=v.callback;if(typeof B=="function"){v.callback=null,p=v.priorityLevel;var V=B(v.expirationTime<=W);W=e.unstable_now(),typeof V=="function"?v.callback=V:v===n(u)&&r(u),w(W)}else r(u);v=n(u)}if(v!==null)var U=!0;else{var q=n(d);q!==null&&z(R,q.startTime-W),U=!1}return U}finally{v=null,p=K,y=!1}}var O=!1,I=null,N=-1,P=5,T=-1;function k(){return!(e.unstable_now()-T<P)}function H(){if(I!==null){var F=e.unstable_now();T=F;var W=!0;try{W=I(!0,F)}finally{W?A():(O=!1,I=null)}}else O=!1}var A;if(typeof x=="function")A=function(){x(H)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,D=_.port2;_.port1.onmessage=H,A=function(){D.postMessage(null)}}else A=function(){g(H,0)};function j(F){I=F,O||(O=!0,A())}function z(F,W){N=g(function(){F(e.unstable_now())},W)}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(F){F.callback=null},e.unstable_continueExecution=function(){h||y||(h=!0,j($))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(F){switch(p){case 1:case 2:case 3:var W=3;break;default:W=p}var K=p;p=W;try{return F()}finally{p=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,W){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var K=p;p=F;try{return W()}finally{p=K}},e.unstable_scheduleCallback=function(F,W,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,F){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=K+V,F={id:m++,callback:W,priorityLevel:F,startTime:K,expirationTime:V,sortIndex:-1},K>B?(F.sortIndex=K,t(d,F),n(u)===null&&F===n(d)&&(C?(S(N),N=-1):C=!0,z(R,K-B))):(F.sortIndex=V,t(u,F),h||y||(h=!0,j($))),F},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(F){var W=p;return function(){var K=p;p=W;try{return F.apply(this,arguments)}finally{p=K}}}}(ch)),ch}var Zw;function dj(){return Zw||(Zw=1,sh.exports=uj()),sh.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Jw;function fj(){if(Jw)return uo;Jw=1;var e=uv(),t=dj();function n(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,b=1;b<arguments.length;b++)f+="&args[]="+encodeURIComponent(arguments[b]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(c,f){i(c,f),i(c+"Capture",f)}function i(c,f){for(o[c]=f,c=0;c<f.length;c++)r.add(f[c])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=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]*$/,m={},v={};function p(c){return u.call(v,c)?!0:u.call(m,c)?!1:d.test(c)?v[c]=!0:(m[c]=!0,!1)}function y(c,f,b,E){if(b!==null&&b.type===0)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":return E?!1:b!==null?!b.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function h(c,f,b,E){if(f===null||typeof f>"u"||y(c,f,b,E))return!0;if(E)return!1;if(b!==null)switch(b.type){case 3:return!f;case 4:return f===!1;case 5:return isNaN(f);case 6:return isNaN(f)||1>f}return!1}function C(c,f,b,E,M,L,Q){this.acceptsBooleans=f===2||f===3||f===4,this.attributeName=E,this.attributeNamespace=M,this.mustUseProperty=b,this.propertyName=c,this.type=f,this.sanitizeURL=L,this.removeEmptyString=Q}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){g[c]=new C(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var f=c[0];g[f]=new C(f,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){g[c]=new C(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){g[c]=new C(c,2,!1,c,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(c){g[c]=new C(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){g[c]=new C(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){g[c]=new C(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){g[c]=new C(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){g[c]=new C(c,5,!1,c.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function x(c){return c[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(c){var f=c.replace(S,x);g[f]=new C(f,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var f=c.replace(S,x);g[f]=new C(f,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var f=c.replace(S,x);g[f]=new C(f,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){g[c]=new C(c,1,!1,c.toLowerCase(),null,!1,!1)}),g.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){g[c]=new C(c,1,!1,c.toLowerCase(),null,!0,!0)});function w(c,f,b,E){var M=g.hasOwnProperty(f)?g[f]:null;(M!==null?M.type!==0:E||!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(h(f,b,M,E)&&(b=null),E||M===null?p(f)&&(b===null?c.removeAttribute(f):c.setAttribute(f,""+b)):M.mustUseProperty?c[M.propertyName]=b===null?M.type===3?!1:"":b:(f=M.attributeName,E=M.attributeNamespace,b===null?c.removeAttribute(f):(M=M.type,b=M===3||M===4&&b===!0?"":""+b,E?c.setAttributeNS(E,f,b):c.setAttribute(f,b))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),O=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),k=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),F=Symbol.iterator;function W(c){return c===null||typeof c!="object"?null:(c=F&&c[F]||c["@@iterator"],typeof c=="function"?c:null)}var K=Object.assign,B;function V(c){if(B===void 0)try{throw Error()}catch(b){var f=b.stack.trim().match(/\n( *(at )?)/);B=f&&f[1]||""}return`
`+B+c}var U=!1;function q(c,f){if(!c||U)return"";U=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Ue){var E=Ue}Reflect.construct(c,[],f)}else{try{f.call()}catch(Ue){E=Ue}c.call(f.prototype)}else{try{throw Error()}catch(Ue){E=Ue}c()}}catch(Ue){if(Ue&&E&&typeof Ue.stack=="string"){for(var M=Ue.stack.split(`
`),L=E.stack.split(`
`),Q=M.length-1,ge=L.length-1;1<=Q&&0<=ge&&M[Q]!==L[ge];)ge--;for(;1<=Q&&0<=ge;Q--,ge--)if(M[Q]!==L[ge]){if(Q!==1||ge!==1)do if(Q--,ge--,0>ge||M[Q]!==L[ge]){var $e=`
`+M[Q].replace(" at new "," at ");return c.displayName&&$e.includes("<anonymous>")&&($e=$e.replace("<anonymous>",c.displayName)),$e}while(1<=Q&&0<=ge);break}}}finally{U=!1,Error.prepareStackTrace=b}return(c=c?c.displayName||c.name:"")?V(c):""}function G(c){switch(c.tag){case 5:return V(c.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return c=q(c.type,!1),c;case 11:return c=q(c.type.render,!1),c;case 1:return c=q(c.type,!0),c;default:return""}}function Z(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case I:return"Fragment";case O:return"Portal";case P:return"Profiler";case N:return"StrictMode";case A:return"Suspense";case _:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case k:return(c.displayName||"Context")+".Consumer";case T:return(c._context.displayName||"Context")+".Provider";case H:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case D:return f=c.displayName||null,f!==null?f:Z(c.type)||"Memo";case j:f=c._payload,c=c._init;try{return Z(c(f))}catch{}}return null}function ee(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(f);case 8:return f===N?"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 f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function J(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function oe(c){var f=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function ae(c){var f=oe(c)?"checked":"value",b=Object.getOwnPropertyDescriptor(c.constructor.prototype,f),E=""+c[f];if(!c.hasOwnProperty(f)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var M=b.get,L=b.set;return Object.defineProperty(c,f,{configurable:!0,get:function(){return M.call(this)},set:function(Q){E=""+Q,L.call(this,Q)}}),Object.defineProperty(c,f,{enumerable:b.enumerable}),{getValue:function(){return E},setValue:function(Q){E=""+Q},stopTracking:function(){c._valueTracker=null,delete c[f]}}}}function te(c){c._valueTracker||(c._valueTracker=ae(c))}function ne(c){if(!c)return!1;var f=c._valueTracker;if(!f)return!0;var b=f.getValue(),E="";return c&&(E=oe(c)?c.checked?"true":"false":c.value),c=E,c!==b?(f.setValue(c),!0):!1}function ie(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function de(c,f){var b=f.checked;return K({},f,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??c._wrapperState.initialChecked})}function ve(c,f){var b=f.defaultValue==null?"":f.defaultValue,E=f.checked!=null?f.checked:f.defaultChecked;b=J(f.value!=null?f.value:b),c._wrapperState={initialChecked:E,initialValue:b,controlled:f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null}}function se(c,f){f=f.checked,f!=null&&w(c,"checked",f,!1)}function he(c,f){se(c,f);var b=J(f.value),E=f.type;if(b!=null)E==="number"?(b===0&&c.value===""||c.value!=b)&&(c.value=""+b):c.value!==""+b&&(c.value=""+b);else if(E==="submit"||E==="reset"){c.removeAttribute("value");return}f.hasOwnProperty("value")?je(c,f.type,b):f.hasOwnProperty("defaultValue")&&je(c,f.type,J(f.defaultValue)),f.checked==null&&f.defaultChecked!=null&&(c.defaultChecked=!!f.defaultChecked)}function Se(c,f,b){if(f.hasOwnProperty("value")||f.hasOwnProperty("defaultValue")){var E=f.type;if(!(E!=="submit"&&E!=="reset"||f.value!==void 0&&f.value!==null))return;f=""+c._wrapperState.initialValue,b||f===c.value||(c.value=f),c.defaultValue=f}b=c.name,b!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,b!==""&&(c.name=b)}function je(c,f,b){(f!=="number"||ie(c.ownerDocument)!==c)&&(b==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+b&&(c.defaultValue=""+b))}var Te=Array.isArray;function Ce(c,f,b,E){if(c=c.options,f){f={};for(var M=0;M<b.length;M++)f["$"+b[M]]=!0;for(b=0;b<c.length;b++)M=f.hasOwnProperty("$"+c[b].value),c[b].selected!==M&&(c[b].selected=M),M&&E&&(c[b].defaultSelected=!0)}else{for(b=""+J(b),f=null,M=0;M<c.length;M++){if(c[M].value===b){c[M].selected=!0,E&&(c[M].defaultSelected=!0);return}f!==null||c[M].disabled||(f=c[M])}f!==null&&(f.selected=!0)}}function xe(c,f){if(f.dangerouslySetInnerHTML!=null)throw Error(n(91));return K({},f,{value:void 0,defaultValue:void 0,children:""+c._wrapperState.initialValue})}function Ne(c,f){var b=f.value;if(b==null){if(b=f.children,f=f.defaultValue,b!=null){if(f!=null)throw Error(n(92));if(Te(b)){if(1<b.length)throw Error(n(93));b=b[0]}f=b}f==null&&(f=""),b=f}c._wrapperState={initialValue:J(b)}}function Ee(c,f){var b=J(f.value),E=J(f.defaultValue);b!=null&&(b=""+b,b!==c.value&&(c.value=b),f.defaultValue==null&&c.defaultValue!==b&&(c.defaultValue=b)),E!=null&&(c.defaultValue=""+E)}function Be(c){var f=c.textContent;f===c._wrapperState.initialValue&&f!==""&&f!==null&&(c.value=f)}function Ve(c){switch(c){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 tt(c,f){return c==null||c==="http://www.w3.org/1999/xhtml"?Ve(f):c==="http://www.w3.org/2000/svg"&&f==="foreignObject"?"http://www.w3.org/1999/xhtml":c}var nt,We=function(c){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(f,b,E,M){MSApp.execUnsafeLocalFunction(function(){return c(f,b,E,M)})}:c}(function(c,f){if(c.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in c)c.innerHTML=f;else{for(nt=nt||document.createElement("div"),nt.innerHTML="<svg>"+f.valueOf().toString()+"</svg>",f=nt.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;f.firstChild;)c.appendChild(f.firstChild)}});function Ze(c,f){if(f){var b=c.firstChild;if(b&&b===c.lastChild&&b.nodeType===3){b.nodeValue=f;return}}c.textContent=f}var Le={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},Re=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(c){Re.forEach(function(f){f=f+c.charAt(0).toUpperCase()+c.substring(1),Le[f]=Le[c]})});function qe(c,f,b){return f==null||typeof f=="boolean"||f===""?"":b||typeof f!="number"||f===0||Le.hasOwnProperty(c)&&Le[c]?(""+f).trim():f+"px"}function ye(c,f){c=c.style;for(var b in f)if(f.hasOwnProperty(b)){var E=b.indexOf("--")===0,M=qe(b,f[b],E);b==="float"&&(b="cssFloat"),E?c.setProperty(b,M):c[b]=M}}var Oe=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 Fe(c,f){if(f){if(Oe[c]&&(f.children!=null||f.dangerouslySetInnerHTML!=null))throw Error(n(137,c));if(f.dangerouslySetInnerHTML!=null){if(f.children!=null)throw Error(n(60));if(typeof f.dangerouslySetInnerHTML!="object"||!("__html"in f.dangerouslySetInnerHTML))throw Error(n(61))}if(f.style!=null&&typeof f.style!="object")throw Error(n(62))}}function we(c,f){if(c.indexOf("-")===-1)return typeof f.is=="string";switch(c){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 He=null;function ot(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var gt=null,yt=null,Rt=null;function qt(c){if(c=Ic(c)){if(typeof gt!="function")throw Error(n(280));var f=c.stateNode;f&&(f=Fd(f),gt(c.stateNode,c.type,f))}}function Wt(c){yt?Rt?Rt.push(c):Rt=[c]:yt=c}function It(){if(yt){var c=yt,f=Rt;if(Rt=yt=null,qt(c),f)for(c=0;c<f.length;c++)qt(f[c])}}function bt(c,f){return c(f)}function mt(){}var ue=!1;function fe(c,f,b){if(ue)return c(f,b);ue=!0;try{return bt(c,f,b)}finally{ue=!1,(yt!==null||Rt!==null)&&(mt(),It())}}function be(c,f){var b=c.stateNode;if(b===null)return null;var E=Fd(b);if(E===null)return null;b=E[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(E=!E.disabled)||(c=c.type,E=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!E;break e;default:c=!1}if(c)return null;if(b&&typeof b!="function")throw Error(n(231,f,typeof b));return b}var De=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){De=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch{De=!1}function ke(c,f,b,E,M,L,Q,ge,$e){var Ue=Array.prototype.slice.call(arguments,3);try{f.apply(b,Ue)}catch(lt){this.onError(lt)}}var Qe=!1,Ke=null,Ye=!1,et=null,Je={onError:function(c){Qe=!0,Ke=c}};function Ge(c,f,b,E,M,L,Q,ge,$e){Qe=!1,Ke=null,ke.apply(Je,arguments)}function rt(c,f,b,E,M,L,Q,ge,$e){if(Ge.apply(this,arguments),Qe){if(Qe){var Ue=Ke;Qe=!1,Ke=null}else throw Error(n(198));Ye||(Ye=!0,et=Ue)}}function st(c){var f=c,b=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(b=f.return),c=f.return;while(c)}return f.tag===3?b:null}function Nt(c){if(c.tag===13){var f=c.memoizedState;if(f===null&&(c=c.alternate,c!==null&&(f=c.memoizedState)),f!==null)return f.dehydrated}return null}function Lt(c){if(st(c)!==c)throw Error(n(188))}function Bt(c){var f=c.alternate;if(!f){if(f=st(c),f===null)throw Error(n(188));return f!==c?null:c}for(var b=c,E=f;;){var M=b.return;if(M===null)break;var L=M.alternate;if(L===null){if(E=M.return,E!==null){b=E;continue}break}if(M.child===L.child){for(L=M.child;L;){if(L===b)return Lt(M),c;if(L===E)return Lt(M),f;L=L.sibling}throw Error(n(188))}if(b.return!==E.return)b=M,E=L;else{for(var Q=!1,ge=M.child;ge;){if(ge===b){Q=!0,b=M,E=L;break}if(ge===E){Q=!0,E=M,b=L;break}ge=ge.sibling}if(!Q){for(ge=L.child;ge;){if(ge===b){Q=!0,b=L,E=M;break}if(ge===E){Q=!0,E=L,b=M;break}ge=ge.sibling}if(!Q)throw Error(n(189))}}if(b.alternate!==E)throw Error(n(190))}if(b.tag!==3)throw Error(n(188));return b.stateNode.current===b?c:f}function Pt(c){return c=Bt(c),c!==null?rn(c):null}function rn(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=rn(c);if(f!==null)return f;c=c.sibling}return null}var Jt=t.unstable_scheduleCallback,ct=t.unstable_cancelCallback,ut=t.unstable_shouldYield,Tt=t.unstable_requestPaint,Ct=t.unstable_now,Yt=t.unstable_getCurrentPriorityLevel,pn=t.unstable_ImmediatePriority,On=t.unstable_UserBlockingPriority,Ut=t.unstable_NormalPriority,wt=t.unstable_LowPriority,Mt=t.unstable_IdlePriority,Kt=null,Cn=null;function on(c){if(Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(Kt,c,void 0,(c.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:pr,ar=Math.log,Yn=Math.LN2;function pr(c){return c>>>=0,c===0?32:31-(ar(c)/Yn|0)|0}var Qn=64,Wn=4194304;function Zn(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function mn(c,f){var b=c.pendingLanes;if(b===0)return 0;var E=0,M=c.suspendedLanes,L=c.pingedLanes,Q=b&268435455;if(Q!==0){var ge=Q&~M;ge!==0?E=Zn(ge):(L&=Q,L!==0&&(E=Zn(L)))}else Q=b&~M,Q!==0?E=Zn(Q):L!==0&&(E=Zn(L));if(E===0)return 0;if(f!==0&&f!==E&&(f&M)===0&&(M=E&-E,L=f&-f,M>=L||M===16&&(L&4194240)!==0))return f;if((E&4)!==0&&(E|=b&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=E;0<f;)b=31-Pn(f),M=1<<b,E|=c[b],f&=~M;return E}function Ot(c,f){switch(c){case 1:case 2:case 4:return f+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 f+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 $t(c,f){for(var b=c.suspendedLanes,E=c.pingedLanes,M=c.expirationTimes,L=c.pendingLanes;0<L;){var Q=31-Pn(L),ge=1<<Q,$e=M[Q];$e===-1?((ge&b)===0||(ge&E)!==0)&&(M[Q]=Ot(ge,f)):$e<=f&&(c.expiredLanes|=ge),L&=~ge}}function un(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function xt(){var c=Qn;return Qn<<=1,(Qn&4194240)===0&&(Qn=64),c}function St(c){for(var f=[],b=0;31>b;b++)f.push(c);return f}function en(c,f,b){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-Pn(f),c[f]=b}function _n(c,f){var b=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var E=c.eventTimes;for(c=c.expirationTimes;0<b;){var M=31-Pn(b),L=1<<M;f[M]=0,E[M]=-1,c[M]=-1,b&=~L}}function An(c,f){var b=c.entangledLanes|=f;for(c=c.entanglements;b;){var E=31-Pn(b),M=1<<E;M&f|c[E]&f&&(c[E]|=f),b&=~M}}var Zt=0;function Jn(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var sr,vt,it,Ft,vn,gn=!1,Or=[],zn=null,er=null,gr=null,jr=new Map,jo=new Map,yo=[],Fl="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 kt(c,f){switch(c){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":er=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":jr.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(f.pointerId)}}function Gt(c,f,b,E,M,L){return c===null||c.nativeEvent!==L?(c={blockedOn:f,domEventName:b,eventSystemFlags:E,nativeEvent:L,targetContainers:[M]},f!==null&&(f=Ic(f),f!==null&&vt(f)),c):(c.eventSystemFlags|=E,f=c.targetContainers,M!==null&&f.indexOf(M)===-1&&f.push(M),c)}function Kn(c,f,b,E,M){switch(f){case"focusin":return zn=Gt(zn,c,f,b,E,M),!0;case"dragenter":return er=Gt(er,c,f,b,E,M),!0;case"mouseover":return gr=Gt(gr,c,f,b,E,M),!0;case"pointerover":var L=M.pointerId;return jr.set(L,Gt(jr.get(L)||null,c,f,b,E,M)),!0;case"gotpointercapture":return L=M.pointerId,jo.set(L,Gt(jo.get(L)||null,c,f,b,E,M)),!0}return!1}function tr(c){var f=Gi(c.target);if(f!==null){var b=st(f);if(b!==null){if(f=b.tag,f===13){if(f=Nt(b),f!==null){c.blockedOn=f,vn(c.priority,function(){it(b)});return}}else if(f===3&&b.stateNode.current.memoizedState.isDehydrated){c.blockedOn=b.tag===3?b.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Bn(c){if(c.blockedOn!==null)return!1;for(var f=c.targetContainers;0<f.length;){var b=Tp(c.domEventName,c.eventSystemFlags,f[0],c.nativeEvent);if(b===null){b=c.nativeEvent;var E=new b.constructor(b.type,b);He=E,b.target.dispatchEvent(E),He=null}else return f=Ic(b),f!==null&&vt(f),c.blockedOn=b,!1;f.shift()}return!0}function La(c,f,b){Bn(c)&&b.delete(f)}function gc(){gn=!1,zn!==null&&Bn(zn)&&(zn=null),er!==null&&Bn(er)&&(er=null),gr!==null&&Bn(gr)&&(gr=null),jr.forEach(La),jo.forEach(La)}function ri(c,f){c.blockedOn===f&&(c.blockedOn=null,gn||(gn=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,gc)))}function Ea(c){function f(M){return ri(M,c)}if(0<Or.length){ri(Or[0],c);for(var b=1;b<Or.length;b++){var E=Or[b];E.blockedOn===c&&(E.blockedOn=null)}}for(zn!==null&&ri(zn,c),er!==null&&ri(er,c),gr!==null&&ri(gr,c),jr.forEach(f),jo.forEach(f),b=0;b<yo.length;b++)E=yo[b],E.blockedOn===c&&(E.blockedOn=null);for(;0<yo.length&&(b=yo[0],b.blockedOn===null);)tr(b),b.blockedOn===null&&yo.shift()}var Al=R.ReactCurrentBatchConfig,Od=!0;function N4(c,f,b,E){var M=Zt,L=Al.transition;Al.transition=null;try{Zt=1,Mp(c,f,b,E)}finally{Zt=M,Al.transition=L}}function M4(c,f,b,E){var M=Zt,L=Al.transition;Al.transition=null;try{Zt=4,Mp(c,f,b,E)}finally{Zt=M,Al.transition=L}}function Mp(c,f,b,E){if(Od){var M=Tp(c,f,b,E);if(M===null)Gp(c,f,E,Rd,b),kt(c,E);else if(Kn(M,c,f,b,E))E.stopPropagation();else if(kt(c,E),f&4&&-1<Fl.indexOf(c)){for(;M!==null;){var L=Ic(M);if(L!==null&&sr(L),L=Tp(c,f,b,E),L===null&&Gp(c,f,E,Rd,b),L===M)break;M=L}M!==null&&E.stopPropagation()}else Gp(c,f,E,null,b)}}var Rd=null;function Tp(c,f,b,E){if(Rd=null,c=ot(E),c=Gi(c),c!==null)if(f=st(c),f===null)c=null;else if(b=f.tag,b===13){if(c=Nt(f),c!==null)return c;c=null}else if(b===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;c=null}else f!==c&&(c=null);return Rd=c,null}function _S(c){switch(c){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(Yt()){case pn:return 1;case On:return 4;case Ut:case wt:return 16;case Mt:return 536870912;default:return 16}default:return 16}}var oi=null,_p=null,Id=null;function DS(){if(Id)return Id;var c,f=_p,b=f.length,E,M="value"in oi?oi.value:oi.textContent,L=M.length;for(c=0;c<b&&f[c]===M[c];c++);var Q=b-c;for(E=1;E<=Q&&f[b-E]===M[L-E];E++);return Id=M.slice(c,1<E?1-E:void 0)}function Pd(c){var f=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&f===13&&(c=13)):c=f,c===10&&(c=13),32<=c||c===13?c:0}function Nd(){return!0}function jS(){return!1}function bo(c){function f(b,E,M,L,Q){this._reactName=b,this._targetInst=M,this.type=E,this.nativeEvent=L,this.target=Q,this.currentTarget=null;for(var ge in c)c.hasOwnProperty(ge)&&(b=c[ge],this[ge]=b?b(L):L[ge]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Nd:jS,this.isPropagationStopped=jS,this}return K(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():typeof b.returnValue!="unknown"&&(b.returnValue=!1),this.isDefaultPrevented=Nd)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():typeof b.cancelBubble!="unknown"&&(b.cancelBubble=!0),this.isPropagationStopped=Nd)},persist:function(){},isPersistent:Nd}),f}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dp=bo(Bl),hc=K({},Bl,{view:0,detail:0}),T4=bo(hc),jp,kp,yc,Md=K({},hc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lp,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==yc&&(yc&&c.type==="mousemove"?(jp=c.screenX-yc.screenX,kp=c.screenY-yc.screenY):kp=jp=0,yc=c),jp)},movementY:function(c){return"movementY"in c?c.movementY:kp}}),kS=bo(Md),_4=K({},Md,{dataTransfer:0}),D4=bo(_4),j4=K({},hc,{relatedTarget:0}),zp=bo(j4),k4=K({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),z4=bo(k4),L4=K({},Bl,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),F4=bo(L4),A4=K({},Bl,{data:0}),zS=bo(A4),B4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H4={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"},V4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W4(c){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(c):(c=V4[c])?!!f[c]:!1}function Lp(){return W4}var K4=K({},hc,{key:function(c){if(c.key){var f=B4[c.key]||c.key;if(f!=="Unidentified")return f}return c.type==="keypress"?(c=Pd(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?H4[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lp,charCode:function(c){return c.type==="keypress"?Pd(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Pd(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),U4=bo(K4),q4=K({},Md,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),LS=bo(q4),Y4=K({},hc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lp}),G4=bo(Y4),X4=K({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q4=bo(X4),Z4=K({},Md,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),J4=bo(Z4),eD=[9,13,27,32],Fp=s&&"CompositionEvent"in window,bc=null;s&&"documentMode"in document&&(bc=document.documentMode);var tD=s&&"TextEvent"in window&&!bc,FS=s&&(!Fp||bc&&8<bc&&11>=bc),AS=" ",BS=!1;function HS(c,f){switch(c){case"keyup":return eD.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function VS(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Hl=!1;function nD(c,f){switch(c){case"compositionend":return VS(f);case"keypress":return f.which!==32?null:(BS=!0,AS);case"textInput":return c=f.data,c===AS&&BS?null:c;default:return null}}function rD(c,f){if(Hl)return c==="compositionend"||!Fp&&HS(c,f)?(c=DS(),Id=_p=oi=null,Hl=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return FS&&f.locale!=="ko"?null:f.data;default:return null}}var oD={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 WS(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f==="input"?!!oD[c.type]:f==="textarea"}function KS(c,f,b,E){Wt(E),f=kd(f,"onChange"),0<f.length&&(b=new Dp("onChange","change",null,b,E),c.push({event:b,listeners:f}))}var Cc=null,Sc=null;function aD(c){cx(c,0)}function Td(c){var f=ql(c);if(ne(f))return c}function iD(c,f){if(c==="change")return f}var US=!1;if(s){var Ap;if(s){var Bp="oninput"in document;if(!Bp){var qS=document.createElement("div");qS.setAttribute("oninput","return;"),Bp=typeof qS.oninput=="function"}Ap=Bp}else Ap=!1;US=Ap&&(!document.documentMode||9<document.documentMode)}function YS(){Cc&&(Cc.detachEvent("onpropertychange",GS),Sc=Cc=null)}function GS(c){if(c.propertyName==="value"&&Td(Sc)){var f=[];KS(f,Sc,c,ot(c)),fe(aD,f)}}function lD(c,f,b){c==="focusin"?(YS(),Cc=f,Sc=b,Cc.attachEvent("onpropertychange",GS)):c==="focusout"&&YS()}function sD(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Td(Sc)}function cD(c,f){if(c==="click")return Td(f)}function uD(c,f){if(c==="input"||c==="change")return Td(f)}function dD(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var oa=typeof Object.is=="function"?Object.is:dD;function xc(c,f){if(oa(c,f))return!0;if(typeof c!="object"||c===null||typeof f!="object"||f===null)return!1;var b=Object.keys(c),E=Object.keys(f);if(b.length!==E.length)return!1;for(E=0;E<b.length;E++){var M=b[E];if(!u.call(f,M)||!oa(c[M],f[M]))return!1}return!0}function XS(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function QS(c,f){var b=XS(c);c=0;for(var E;b;){if(b.nodeType===3){if(E=c+b.textContent.length,c<=f&&E>=f)return{node:b,offset:f-c};c=E}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=XS(b)}}function ZS(c,f){return c&&f?c===f?!0:c&&c.nodeType===3?!1:f&&f.nodeType===3?ZS(c,f.parentNode):"contains"in c?c.contains(f):c.compareDocumentPosition?!!(c.compareDocumentPosition(f)&16):!1:!1}function JS(){for(var c=window,f=ie();f instanceof c.HTMLIFrameElement;){try{var b=typeof f.contentWindow.location.href=="string"}catch{b=!1}if(b)c=f.contentWindow;else break;f=ie(c.document)}return f}function Hp(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f&&(f==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||f==="textarea"||c.contentEditable==="true")}function fD(c){var f=JS(),b=c.focusedElem,E=c.selectionRange;if(f!==b&&b&&b.ownerDocument&&ZS(b.ownerDocument.documentElement,b)){if(E!==null&&Hp(b)){if(f=E.start,c=E.end,c===void 0&&(c=f),"selectionStart"in b)b.selectionStart=f,b.selectionEnd=Math.min(c,b.value.length);else if(c=(f=b.ownerDocument||document)&&f.defaultView||window,c.getSelection){c=c.getSelection();var M=b.textContent.length,L=Math.min(E.start,M);E=E.end===void 0?L:Math.min(E.end,M),!c.extend&&L>E&&(M=E,E=L,L=M),M=QS(b,L);var Q=QS(b,E);M&&Q&&(c.rangeCount!==1||c.anchorNode!==M.node||c.anchorOffset!==M.offset||c.focusNode!==Q.node||c.focusOffset!==Q.offset)&&(f=f.createRange(),f.setStart(M.node,M.offset),c.removeAllRanges(),L>E?(c.addRange(f),c.extend(Q.node,Q.offset)):(f.setEnd(Q.node,Q.offset),c.addRange(f)))}}for(f=[],c=b;c=c.parentNode;)c.nodeType===1&&f.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<f.length;b++)c=f[b],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var mD=s&&"documentMode"in document&&11>=document.documentMode,Vl=null,Vp=null,wc=null,Wp=!1;function ex(c,f,b){var E=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;Wp||Vl==null||Vl!==ie(E)||(E=Vl,"selectionStart"in E&&Hp(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),wc&&xc(wc,E)||(wc=E,E=kd(Vp,"onSelect"),0<E.length&&(f=new Dp("onSelect","select",null,f,b),c.push({event:f,listeners:E}),f.target=Vl)))}function _d(c,f){var b={};return b[c.toLowerCase()]=f.toLowerCase(),b["Webkit"+c]="webkit"+f,b["Moz"+c]="moz"+f,b}var Wl={animationend:_d("Animation","AnimationEnd"),animationiteration:_d("Animation","AnimationIteration"),animationstart:_d("Animation","AnimationStart"),transitionend:_d("Transition","TransitionEnd")},Kp={},tx={};s&&(tx=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function Dd(c){if(Kp[c])return Kp[c];if(!Wl[c])return c;var f=Wl[c],b;for(b in f)if(f.hasOwnProperty(b)&&b in tx)return Kp[c]=f[b];return c}var nx=Dd("animationend"),rx=Dd("animationiteration"),ox=Dd("animationstart"),ax=Dd("transitionend"),ix=new Map,lx="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 ai(c,f){ix.set(c,f),a(f,[c])}for(var Up=0;Up<lx.length;Up++){var qp=lx[Up],vD=qp.toLowerCase(),pD=qp[0].toUpperCase()+qp.slice(1);ai(vD,"on"+pD)}ai(nx,"onAnimationEnd"),ai(rx,"onAnimationIteration"),ai(ox,"onAnimationStart"),ai("dblclick","onDoubleClick"),ai("focusin","onFocus"),ai("focusout","onBlur"),ai(ax,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $c="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gD=new Set("cancel close invalid load scroll toggle".split(" ").concat($c));function sx(c,f,b){var E=c.type||"unknown-event";c.currentTarget=b,rt(E,f,void 0,c),c.currentTarget=null}function cx(c,f){f=(f&4)!==0;for(var b=0;b<c.length;b++){var E=c[b],M=E.event;E=E.listeners;e:{var L=void 0;if(f)for(var Q=E.length-1;0<=Q;Q--){var ge=E[Q],$e=ge.instance,Ue=ge.currentTarget;if(ge=ge.listener,$e!==L&&M.isPropagationStopped())break e;sx(M,ge,Ue),L=$e}else for(Q=0;Q<E.length;Q++){if(ge=E[Q],$e=ge.instance,Ue=ge.currentTarget,ge=ge.listener,$e!==L&&M.isPropagationStopped())break e;sx(M,ge,Ue),L=$e}}}if(Ye)throw c=et,Ye=!1,et=null,c}function Gn(c,f){var b=f[tg];b===void 0&&(b=f[tg]=new Set);var E=c+"__bubble";b.has(E)||(ux(f,c,2,!1),b.add(E))}function Yp(c,f,b){var E=0;f&&(E|=4),ux(b,c,E,f)}var jd="_reactListening"+Math.random().toString(36).slice(2);function Ec(c){if(!c[jd]){c[jd]=!0,r.forEach(function(b){b!=="selectionchange"&&(gD.has(b)||Yp(b,!1,c),Yp(b,!0,c))});var f=c.nodeType===9?c:c.ownerDocument;f===null||f[jd]||(f[jd]=!0,Yp("selectionchange",!1,f))}}function ux(c,f,b,E){switch(_S(f)){case 1:var M=N4;break;case 4:M=M4;break;default:M=Mp}b=M.bind(null,f,b,c),M=void 0,!De||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(M=!0),E?M!==void 0?c.addEventListener(f,b,{capture:!0,passive:M}):c.addEventListener(f,b,!0):M!==void 0?c.addEventListener(f,b,{passive:M}):c.addEventListener(f,b,!1)}function Gp(c,f,b,E,M){var L=E;if((f&1)===0&&(f&2)===0&&E!==null)e:for(;;){if(E===null)return;var Q=E.tag;if(Q===3||Q===4){var ge=E.stateNode.containerInfo;if(ge===M||ge.nodeType===8&&ge.parentNode===M)break;if(Q===4)for(Q=E.return;Q!==null;){var $e=Q.tag;if(($e===3||$e===4)&&($e=Q.stateNode.containerInfo,$e===M||$e.nodeType===8&&$e.parentNode===M))return;Q=Q.return}for(;ge!==null;){if(Q=Gi(ge),Q===null)return;if($e=Q.tag,$e===5||$e===6){E=L=Q;continue e}ge=ge.parentNode}}E=E.return}fe(function(){var Ue=L,lt=ot(b),dt=[];e:{var at=ix.get(c);if(at!==void 0){var _t=Dp,At=c;switch(c){case"keypress":if(Pd(b)===0)break e;case"keydown":case"keyup":_t=U4;break;case"focusin":At="focus",_t=zp;break;case"focusout":At="blur",_t=zp;break;case"beforeblur":case"afterblur":_t=zp;break;case"click":if(b.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_t=kS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_t=D4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_t=G4;break;case nx:case rx:case ox:_t=z4;break;case ax:_t=Q4;break;case"scroll":_t=T4;break;case"wheel":_t=J4;break;case"copy":case"cut":case"paste":_t=F4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_t=LS}var Ht=(f&4)!==0,ur=!Ht&&c==="scroll",ze=Ht?at!==null?at+"Capture":null:at;Ht=[];for(var Ie=Ue,Ae;Ie!==null;){Ae=Ie;var pt=Ae.stateNode;if(Ae.tag===5&&pt!==null&&(Ae=pt,ze!==null&&(pt=be(Ie,ze),pt!=null&&Ht.push(Oc(Ie,pt,Ae)))),ur)break;Ie=Ie.return}0<Ht.length&&(at=new _t(at,At,null,b,lt),dt.push({event:at,listeners:Ht}))}}if((f&7)===0){e:{if(at=c==="mouseover"||c==="pointerover",_t=c==="mouseout"||c==="pointerout",at&&b!==He&&(At=b.relatedTarget||b.fromElement)&&(Gi(At)||At[Fa]))break e;if((_t||at)&&(at=lt.window===lt?lt:(at=lt.ownerDocument)?at.defaultView||at.parentWindow:window,_t?(At=b.relatedTarget||b.toElement,_t=Ue,At=At?Gi(At):null,At!==null&&(ur=st(At),At!==ur||At.tag!==5&&At.tag!==6)&&(At=null)):(_t=null,At=Ue),_t!==At)){if(Ht=kS,pt="onMouseLeave",ze="onMouseEnter",Ie="mouse",(c==="pointerout"||c==="pointerover")&&(Ht=LS,pt="onPointerLeave",ze="onPointerEnter",Ie="pointer"),ur=_t==null?at:ql(_t),Ae=At==null?at:ql(At),at=new Ht(pt,Ie+"leave",_t,b,lt),at.target=ur,at.relatedTarget=Ae,pt=null,Gi(lt)===Ue&&(Ht=new Ht(ze,Ie+"enter",At,b,lt),Ht.target=Ae,Ht.relatedTarget=ur,pt=Ht),ur=pt,_t&&At)t:{for(Ht=_t,ze=At,Ie=0,Ae=Ht;Ae;Ae=Kl(Ae))Ie++;for(Ae=0,pt=ze;pt;pt=Kl(pt))Ae++;for(;0<Ie-Ae;)Ht=Kl(Ht),Ie--;for(;0<Ae-Ie;)ze=Kl(ze),Ae--;for(;Ie--;){if(Ht===ze||ze!==null&&Ht===ze.alternate)break t;Ht=Kl(Ht),ze=Kl(ze)}Ht=null}else Ht=null;_t!==null&&dx(dt,at,_t,Ht,!1),At!==null&&ur!==null&&dx(dt,ur,At,Ht,!0)}}e:{if(at=Ue?ql(Ue):window,_t=at.nodeName&&at.nodeName.toLowerCase(),_t==="select"||_t==="input"&&at.type==="file")var Vt=iD;else if(WS(at))if(US)Vt=uD;else{Vt=sD;var Xt=lD}else(_t=at.nodeName)&&_t.toLowerCase()==="input"&&(at.type==="checkbox"||at.type==="radio")&&(Vt=cD);if(Vt&&(Vt=Vt(c,Ue))){KS(dt,Vt,b,lt);break e}Xt&&Xt(c,at,Ue),c==="focusout"&&(Xt=at._wrapperState)&&Xt.controlled&&at.type==="number"&&je(at,"number",at.value)}switch(Xt=Ue?ql(Ue):window,c){case"focusin":(WS(Xt)||Xt.contentEditable==="true")&&(Vl=Xt,Vp=Ue,wc=null);break;case"focusout":wc=Vp=Vl=null;break;case"mousedown":Wp=!0;break;case"contextmenu":case"mouseup":case"dragend":Wp=!1,ex(dt,b,lt);break;case"selectionchange":if(mD)break;case"keydown":case"keyup":ex(dt,b,lt)}var Qt;if(Fp)e:{switch(c){case"compositionstart":var an="onCompositionStart";break e;case"compositionend":an="onCompositionEnd";break e;case"compositionupdate":an="onCompositionUpdate";break e}an=void 0}else Hl?HS(c,b)&&(an="onCompositionEnd"):c==="keydown"&&b.keyCode===229&&(an="onCompositionStart");an&&(FS&&b.locale!=="ko"&&(Hl||an!=="onCompositionStart"?an==="onCompositionEnd"&&Hl&&(Qt=DS()):(oi=lt,_p="value"in oi?oi.value:oi.textContent,Hl=!0)),Xt=kd(Ue,an),0<Xt.length&&(an=new zS(an,c,null,b,lt),dt.push({event:an,listeners:Xt}),Qt?an.data=Qt:(Qt=VS(b),Qt!==null&&(an.data=Qt)))),(Qt=tD?nD(c,b):rD(c,b))&&(Ue=kd(Ue,"onBeforeInput"),0<Ue.length&&(lt=new zS("onBeforeInput","beforeinput",null,b,lt),dt.push({event:lt,listeners:Ue}),lt.data=Qt))}cx(dt,f)})}function Oc(c,f,b){return{instance:c,listener:f,currentTarget:b}}function kd(c,f){for(var b=f+"Capture",E=[];c!==null;){var M=c,L=M.stateNode;M.tag===5&&L!==null&&(M=L,L=be(c,b),L!=null&&E.unshift(Oc(c,L,M)),L=be(c,f),L!=null&&E.push(Oc(c,L,M))),c=c.return}return E}function Kl(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5);return c||null}function dx(c,f,b,E,M){for(var L=f._reactName,Q=[];b!==null&&b!==E;){var ge=b,$e=ge.alternate,Ue=ge.stateNode;if($e!==null&&$e===E)break;ge.tag===5&&Ue!==null&&(ge=Ue,M?($e=be(b,L),$e!=null&&Q.unshift(Oc(b,$e,ge))):M||($e=be(b,L),$e!=null&&Q.push(Oc(b,$e,ge)))),b=b.return}Q.length!==0&&c.push({event:f,listeners:Q})}var hD=/\r\n?/g,yD=/\u0000|\uFFFD/g;function fx(c){return(typeof c=="string"?c:""+c).replace(hD,`
`).replace(yD,"")}function zd(c,f,b){if(f=fx(f),fx(c)!==f&&b)throw Error(n(425))}function Ld(){}var Xp=null,Qp=null;function Zp(c,f){return c==="textarea"||c==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var Jp=typeof setTimeout=="function"?setTimeout:void 0,bD=typeof clearTimeout=="function"?clearTimeout:void 0,mx=typeof Promise=="function"?Promise:void 0,CD=typeof queueMicrotask=="function"?queueMicrotask:typeof mx<"u"?function(c){return mx.resolve(null).then(c).catch(SD)}:Jp;function SD(c){setTimeout(function(){throw c})}function eg(c,f){var b=f,E=0;do{var M=b.nextSibling;if(c.removeChild(b),M&&M.nodeType===8)if(b=M.data,b==="/$"){if(E===0){c.removeChild(M),Ea(f);return}E--}else b!=="$"&&b!=="$?"&&b!=="$!"||E++;b=M}while(b);Ea(f)}function ii(c){for(;c!=null;c=c.nextSibling){var f=c.nodeType;if(f===1||f===3)break;if(f===8){if(f=c.data,f==="$"||f==="$!"||f==="$?")break;if(f==="/$")return null}}return c}function vx(c){c=c.previousSibling;for(var f=0;c;){if(c.nodeType===8){var b=c.data;if(b==="$"||b==="$!"||b==="$?"){if(f===0)return c;f--}else b==="/$"&&f++}c=c.previousSibling}return null}var Ul=Math.random().toString(36).slice(2),Oa="__reactFiber$"+Ul,Rc="__reactProps$"+Ul,Fa="__reactContainer$"+Ul,tg="__reactEvents$"+Ul,xD="__reactListeners$"+Ul,wD="__reactHandles$"+Ul;function Gi(c){var f=c[Oa];if(f)return f;for(var b=c.parentNode;b;){if(f=b[Fa]||b[Oa]){if(b=f.alternate,f.child!==null||b!==null&&b.child!==null)for(c=vx(c);c!==null;){if(b=c[Oa])return b;c=vx(c)}return f}c=b,b=c.parentNode}return null}function Ic(c){return c=c[Oa]||c[Fa],!c||c.tag!==5&&c.tag!==6&&c.tag!==13&&c.tag!==3?null:c}function ql(c){if(c.tag===5||c.tag===6)return c.stateNode;throw Error(n(33))}function Fd(c){return c[Rc]||null}var ng=[],Yl=-1;function li(c){return{current:c}}function Xn(c){0>Yl||(c.current=ng[Yl],ng[Yl]=null,Yl--)}function Un(c,f){Yl++,ng[Yl]=c.current,c.current=f}var si={},Hr=li(si),ao=li(!1),Xi=si;function Gl(c,f){var b=c.type.contextTypes;if(!b)return si;var E=c.stateNode;if(E&&E.__reactInternalMemoizedUnmaskedChildContext===f)return E.__reactInternalMemoizedMaskedChildContext;var M={},L;for(L in b)M[L]=f[L];return E&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=M),M}function io(c){return c=c.childContextTypes,c!=null}function Ad(){Xn(ao),Xn(Hr)}function px(c,f,b){if(Hr.current!==si)throw Error(n(168));Un(Hr,f),Un(ao,b)}function gx(c,f,b){var E=c.stateNode;if(f=f.childContextTypes,typeof E.getChildContext!="function")return b;E=E.getChildContext();for(var M in E)if(!(M in f))throw Error(n(108,ee(c)||"Unknown",M));return K({},b,E)}function Bd(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||si,Xi=Hr.current,Un(Hr,c),Un(ao,ao.current),!0}function hx(c,f,b){var E=c.stateNode;if(!E)throw Error(n(169));b?(c=gx(c,f,Xi),E.__reactInternalMemoizedMergedChildContext=c,Xn(ao),Xn(Hr),Un(Hr,c)):Xn(ao),Un(ao,b)}var Aa=null,Hd=!1,rg=!1;function yx(c){Aa===null?Aa=[c]:Aa.push(c)}function $D(c){Hd=!0,yx(c)}function ci(){if(!rg&&Aa!==null){rg=!0;var c=0,f=Zt;try{var b=Aa;for(Zt=1;c<b.length;c++){var E=b[c];do E=E(!0);while(E!==null)}Aa=null,Hd=!1}catch(M){throw Aa!==null&&(Aa=Aa.slice(c+1)),Jt(pn,ci),M}finally{Zt=f,rg=!1}}return null}var Xl=[],Ql=0,Vd=null,Wd=0,ko=[],zo=0,Qi=null,Ba=1,Ha="";function Zi(c,f){Xl[Ql++]=Wd,Xl[Ql++]=Vd,Vd=c,Wd=f}function bx(c,f,b){ko[zo++]=Ba,ko[zo++]=Ha,ko[zo++]=Qi,Qi=c;var E=Ba;c=Ha;var M=32-Pn(E)-1;E&=~(1<<M),b+=1;var L=32-Pn(f)+M;if(30<L){var Q=M-M%5;L=(E&(1<<Q)-1).toString(32),E>>=Q,M-=Q,Ba=1<<32-Pn(f)+M|b<<M|E,Ha=L+c}else Ba=1<<L|b<<M|E,Ha=c}function og(c){c.return!==null&&(Zi(c,1),bx(c,1,0))}function ag(c){for(;c===Vd;)Vd=Xl[--Ql],Xl[Ql]=null,Wd=Xl[--Ql],Xl[Ql]=null;for(;c===Qi;)Qi=ko[--zo],ko[zo]=null,Ha=ko[--zo],ko[zo]=null,Ba=ko[--zo],ko[zo]=null}var Co=null,So=null,nr=!1,aa=null;function Cx(c,f){var b=Bo(5,null,null,0);b.elementType="DELETED",b.stateNode=f,b.return=c,f=c.deletions,f===null?(c.deletions=[b],c.flags|=16):f.push(b)}function Sx(c,f){switch(c.tag){case 5:var b=c.type;return f=f.nodeType!==1||b.toLowerCase()!==f.nodeName.toLowerCase()?null:f,f!==null?(c.stateNode=f,Co=c,So=ii(f.firstChild),!0):!1;case 6:return f=c.pendingProps===""||f.nodeType!==3?null:f,f!==null?(c.stateNode=f,Co=c,So=null,!0):!1;case 13:return f=f.nodeType!==8?null:f,f!==null?(b=Qi!==null?{id:Ba,overflow:Ha}:null,c.memoizedState={dehydrated:f,treeContext:b,retryLane:1073741824},b=Bo(18,null,null,0),b.stateNode=f,b.return=c,c.child=b,Co=c,So=null,!0):!1;default:return!1}}function ig(c){return(c.mode&1)!==0&&(c.flags&128)===0}function lg(c){if(nr){var f=So;if(f){var b=f;if(!Sx(c,f)){if(ig(c))throw Error(n(418));f=ii(b.nextSibling);var E=Co;f&&Sx(c,f)?Cx(E,b):(c.flags=c.flags&-4097|2,nr=!1,Co=c)}}else{if(ig(c))throw Error(n(418));c.flags=c.flags&-4097|2,nr=!1,Co=c}}}function xx(c){for(c=c.return;c!==null&&c.tag!==5&&c.tag!==3&&c.tag!==13;)c=c.return;Co=c}function Kd(c){if(c!==Co)return!1;if(!nr)return xx(c),nr=!0,!1;var f;if((f=c.tag!==3)&&!(f=c.tag!==5)&&(f=c.type,f=f!=="head"&&f!=="body"&&!Zp(c.type,c.memoizedProps)),f&&(f=So)){if(ig(c))throw wx(),Error(n(418));for(;f;)Cx(c,f),f=ii(f.nextSibling)}if(xx(c),c.tag===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(n(317));e:{for(c=c.nextSibling,f=0;c;){if(c.nodeType===8){var b=c.data;if(b==="/$"){if(f===0){So=ii(c.nextSibling);break e}f--}else b!=="$"&&b!=="$!"&&b!=="$?"||f++}c=c.nextSibling}So=null}}else So=Co?ii(c.stateNode.nextSibling):null;return!0}function wx(){for(var c=So;c;)c=ii(c.nextSibling)}function Zl(){So=Co=null,nr=!1}function sg(c){aa===null?aa=[c]:aa.push(c)}var ED=R.ReactCurrentBatchConfig;function Pc(c,f,b){if(c=b.ref,c!==null&&typeof c!="function"&&typeof c!="object"){if(b._owner){if(b=b._owner,b){if(b.tag!==1)throw Error(n(309));var E=b.stateNode}if(!E)throw Error(n(147,c));var M=E,L=""+c;return f!==null&&f.ref!==null&&typeof f.ref=="function"&&f.ref._stringRef===L?f.ref:(f=function(Q){var ge=M.refs;Q===null?delete ge[L]:ge[L]=Q},f._stringRef=L,f)}if(typeof c!="string")throw Error(n(284));if(!b._owner)throw Error(n(290,c))}return c}function Ud(c,f){throw c=Object.prototype.toString.call(f),Error(n(31,c==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":c))}function $x(c){var f=c._init;return f(c._payload)}function Ex(c){function f(ze,Ie){if(c){var Ae=ze.deletions;Ae===null?(ze.deletions=[Ie],ze.flags|=16):Ae.push(Ie)}}function b(ze,Ie){if(!c)return null;for(;Ie!==null;)f(ze,Ie),Ie=Ie.sibling;return null}function E(ze,Ie){for(ze=new Map;Ie!==null;)Ie.key!==null?ze.set(Ie.key,Ie):ze.set(Ie.index,Ie),Ie=Ie.sibling;return ze}function M(ze,Ie){return ze=hi(ze,Ie),ze.index=0,ze.sibling=null,ze}function L(ze,Ie,Ae){return ze.index=Ae,c?(Ae=ze.alternate,Ae!==null?(Ae=Ae.index,Ae<Ie?(ze.flags|=2,Ie):Ae):(ze.flags|=2,Ie)):(ze.flags|=1048576,Ie)}function Q(ze){return c&&ze.alternate===null&&(ze.flags|=2),ze}function ge(ze,Ie,Ae,pt){return Ie===null||Ie.tag!==6?(Ie=Jg(Ae,ze.mode,pt),Ie.return=ze,Ie):(Ie=M(Ie,Ae),Ie.return=ze,Ie)}function $e(ze,Ie,Ae,pt){var Vt=Ae.type;return Vt===I?lt(ze,Ie,Ae.props.children,pt,Ae.key):Ie!==null&&(Ie.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===j&&$x(Vt)===Ie.type)?(pt=M(Ie,Ae.props),pt.ref=Pc(ze,Ie,Ae),pt.return=ze,pt):(pt=hf(Ae.type,Ae.key,Ae.props,null,ze.mode,pt),pt.ref=Pc(ze,Ie,Ae),pt.return=ze,pt)}function Ue(ze,Ie,Ae,pt){return Ie===null||Ie.tag!==4||Ie.stateNode.containerInfo!==Ae.containerInfo||Ie.stateNode.implementation!==Ae.implementation?(Ie=eh(Ae,ze.mode,pt),Ie.return=ze,Ie):(Ie=M(Ie,Ae.children||[]),Ie.return=ze,Ie)}function lt(ze,Ie,Ae,pt,Vt){return Ie===null||Ie.tag!==7?(Ie=il(Ae,ze.mode,pt,Vt),Ie.return=ze,Ie):(Ie=M(Ie,Ae),Ie.return=ze,Ie)}function dt(ze,Ie,Ae){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number")return Ie=Jg(""+Ie,ze.mode,Ae),Ie.return=ze,Ie;if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case $:return Ae=hf(Ie.type,Ie.key,Ie.props,null,ze.mode,Ae),Ae.ref=Pc(ze,null,Ie),Ae.return=ze,Ae;case O:return Ie=eh(Ie,ze.mode,Ae),Ie.return=ze,Ie;case j:var pt=Ie._init;return dt(ze,pt(Ie._payload),Ae)}if(Te(Ie)||W(Ie))return Ie=il(Ie,ze.mode,Ae,null),Ie.return=ze,Ie;Ud(ze,Ie)}return null}function at(ze,Ie,Ae,pt){var Vt=Ie!==null?Ie.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number")return Vt!==null?null:ge(ze,Ie,""+Ae,pt);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case $:return Ae.key===Vt?$e(ze,Ie,Ae,pt):null;case O:return Ae.key===Vt?Ue(ze,Ie,Ae,pt):null;case j:return Vt=Ae._init,at(ze,Ie,Vt(Ae._payload),pt)}if(Te(Ae)||W(Ae))return Vt!==null?null:lt(ze,Ie,Ae,pt,null);Ud(ze,Ae)}return null}function _t(ze,Ie,Ae,pt,Vt){if(typeof pt=="string"&&pt!==""||typeof pt=="number")return ze=ze.get(Ae)||null,ge(Ie,ze,""+pt,Vt);if(typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case $:return ze=ze.get(pt.key===null?Ae:pt.key)||null,$e(Ie,ze,pt,Vt);case O:return ze=ze.get(pt.key===null?Ae:pt.key)||null,Ue(Ie,ze,pt,Vt);case j:var Xt=pt._init;return _t(ze,Ie,Ae,Xt(pt._payload),Vt)}if(Te(pt)||W(pt))return ze=ze.get(Ae)||null,lt(Ie,ze,pt,Vt,null);Ud(Ie,pt)}return null}function At(ze,Ie,Ae,pt){for(var Vt=null,Xt=null,Qt=Ie,an=Ie=0,Pr=null;Qt!==null&&an<Ae.length;an++){Qt.index>an?(Pr=Qt,Qt=null):Pr=Qt.sibling;var Dn=at(ze,Qt,Ae[an],pt);if(Dn===null){Qt===null&&(Qt=Pr);break}c&&Qt&&Dn.alternate===null&&f(ze,Qt),Ie=L(Dn,Ie,an),Xt===null?Vt=Dn:Xt.sibling=Dn,Xt=Dn,Qt=Pr}if(an===Ae.length)return b(ze,Qt),nr&&Zi(ze,an),Vt;if(Qt===null){for(;an<Ae.length;an++)Qt=dt(ze,Ae[an],pt),Qt!==null&&(Ie=L(Qt,Ie,an),Xt===null?Vt=Qt:Xt.sibling=Qt,Xt=Qt);return nr&&Zi(ze,an),Vt}for(Qt=E(ze,Qt);an<Ae.length;an++)Pr=_t(Qt,ze,an,Ae[an],pt),Pr!==null&&(c&&Pr.alternate!==null&&Qt.delete(Pr.key===null?an:Pr.key),Ie=L(Pr,Ie,an),Xt===null?Vt=Pr:Xt.sibling=Pr,Xt=Pr);return c&&Qt.forEach(function(yi){return f(ze,yi)}),nr&&Zi(ze,an),Vt}function Ht(ze,Ie,Ae,pt){var Vt=W(Ae);if(typeof Vt!="function")throw Error(n(150));if(Ae=Vt.call(Ae),Ae==null)throw Error(n(151));for(var Xt=Vt=null,Qt=Ie,an=Ie=0,Pr=null,Dn=Ae.next();Qt!==null&&!Dn.done;an++,Dn=Ae.next()){Qt.index>an?(Pr=Qt,Qt=null):Pr=Qt.sibling;var yi=at(ze,Qt,Dn.value,pt);if(yi===null){Qt===null&&(Qt=Pr);break}c&&Qt&&yi.alternate===null&&f(ze,Qt),Ie=L(yi,Ie,an),Xt===null?Vt=yi:Xt.sibling=yi,Xt=yi,Qt=Pr}if(Dn.done)return b(ze,Qt),nr&&Zi(ze,an),Vt;if(Qt===null){for(;!Dn.done;an++,Dn=Ae.next())Dn=dt(ze,Dn.value,pt),Dn!==null&&(Ie=L(Dn,Ie,an),Xt===null?Vt=Dn:Xt.sibling=Dn,Xt=Dn);return nr&&Zi(ze,an),Vt}for(Qt=E(ze,Qt);!Dn.done;an++,Dn=Ae.next())Dn=_t(Qt,ze,an,Dn.value,pt),Dn!==null&&(c&&Dn.alternate!==null&&Qt.delete(Dn.key===null?an:Dn.key),Ie=L(Dn,Ie,an),Xt===null?Vt=Dn:Xt.sibling=Dn,Xt=Dn);return c&&Qt.forEach(function(oj){return f(ze,oj)}),nr&&Zi(ze,an),Vt}function ur(ze,Ie,Ae,pt){if(typeof Ae=="object"&&Ae!==null&&Ae.type===I&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case $:e:{for(var Vt=Ae.key,Xt=Ie;Xt!==null;){if(Xt.key===Vt){if(Vt=Ae.type,Vt===I){if(Xt.tag===7){b(ze,Xt.sibling),Ie=M(Xt,Ae.props.children),Ie.return=ze,ze=Ie;break e}}else if(Xt.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===j&&$x(Vt)===Xt.type){b(ze,Xt.sibling),Ie=M(Xt,Ae.props),Ie.ref=Pc(ze,Xt,Ae),Ie.return=ze,ze=Ie;break e}b(ze,Xt);break}else f(ze,Xt);Xt=Xt.sibling}Ae.type===I?(Ie=il(Ae.props.children,ze.mode,pt,Ae.key),Ie.return=ze,ze=Ie):(pt=hf(Ae.type,Ae.key,Ae.props,null,ze.mode,pt),pt.ref=Pc(ze,Ie,Ae),pt.return=ze,ze=pt)}return Q(ze);case O:e:{for(Xt=Ae.key;Ie!==null;){if(Ie.key===Xt)if(Ie.tag===4&&Ie.stateNode.containerInfo===Ae.containerInfo&&Ie.stateNode.implementation===Ae.implementation){b(ze,Ie.sibling),Ie=M(Ie,Ae.children||[]),Ie.return=ze,ze=Ie;break e}else{b(ze,Ie);break}else f(ze,Ie);Ie=Ie.sibling}Ie=eh(Ae,ze.mode,pt),Ie.return=ze,ze=Ie}return Q(ze);case j:return Xt=Ae._init,ur(ze,Ie,Xt(Ae._payload),pt)}if(Te(Ae))return At(ze,Ie,Ae,pt);if(W(Ae))return Ht(ze,Ie,Ae,pt);Ud(ze,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"?(Ae=""+Ae,Ie!==null&&Ie.tag===6?(b(ze,Ie.sibling),Ie=M(Ie,Ae),Ie.return=ze,ze=Ie):(b(ze,Ie),Ie=Jg(Ae,ze.mode,pt),Ie.return=ze,ze=Ie),Q(ze)):b(ze,Ie)}return ur}var Jl=Ex(!0),Ox=Ex(!1),qd=li(null),Yd=null,es=null,cg=null;function ug(){cg=es=Yd=null}function dg(c){var f=qd.current;Xn(qd),c._currentValue=f}function fg(c,f,b){for(;c!==null;){var E=c.alternate;if((c.childLanes&f)!==f?(c.childLanes|=f,E!==null&&(E.childLanes|=f)):E!==null&&(E.childLanes&f)!==f&&(E.childLanes|=f),c===b)break;c=c.return}}function ts(c,f){Yd=c,cg=es=null,c=c.dependencies,c!==null&&c.firstContext!==null&&((c.lanes&f)!==0&&(lo=!0),c.firstContext=null)}function Lo(c){var f=c._currentValue;if(cg!==c)if(c={context:c,memoizedValue:f,next:null},es===null){if(Yd===null)throw Error(n(308));es=c,Yd.dependencies={lanes:0,firstContext:c}}else es=es.next=c;return f}var Ji=null;function mg(c){Ji===null?Ji=[c]:Ji.push(c)}function Rx(c,f,b,E){var M=f.interleaved;return M===null?(b.next=b,mg(f)):(b.next=M.next,M.next=b),f.interleaved=b,Va(c,E)}function Va(c,f){c.lanes|=f;var b=c.alternate;for(b!==null&&(b.lanes|=f),b=c,c=c.return;c!==null;)c.childLanes|=f,b=c.alternate,b!==null&&(b.childLanes|=f),b=c,c=c.return;return b.tag===3?b.stateNode:null}var ui=!1;function vg(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ix(c,f){c=c.updateQueue,f.updateQueue===c&&(f.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function Wa(c,f){return{eventTime:c,lane:f,tag:0,payload:null,callback:null,next:null}}function di(c,f,b){var E=c.updateQueue;if(E===null)return null;if(E=E.shared,(Nn&2)!==0){var M=E.pending;return M===null?f.next=f:(f.next=M.next,M.next=f),E.pending=f,Va(c,b)}return M=E.interleaved,M===null?(f.next=f,mg(E)):(f.next=M.next,M.next=f),E.interleaved=f,Va(c,b)}function Gd(c,f,b){if(f=f.updateQueue,f!==null&&(f=f.shared,(b&4194240)!==0)){var E=f.lanes;E&=c.pendingLanes,b|=E,f.lanes=b,An(c,b)}}function Px(c,f){var b=c.updateQueue,E=c.alternate;if(E!==null&&(E=E.updateQueue,b===E)){var M=null,L=null;if(b=b.firstBaseUpdate,b!==null){do{var Q={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};L===null?M=L=Q:L=L.next=Q,b=b.next}while(b!==null);L===null?M=L=f:L=L.next=f}else M=L=f;b={baseState:E.baseState,firstBaseUpdate:M,lastBaseUpdate:L,shared:E.shared,effects:E.effects},c.updateQueue=b;return}c=b.lastBaseUpdate,c===null?b.firstBaseUpdate=f:c.next=f,b.lastBaseUpdate=f}function Xd(c,f,b,E){var M=c.updateQueue;ui=!1;var L=M.firstBaseUpdate,Q=M.lastBaseUpdate,ge=M.shared.pending;if(ge!==null){M.shared.pending=null;var $e=ge,Ue=$e.next;$e.next=null,Q===null?L=Ue:Q.next=Ue,Q=$e;var lt=c.alternate;lt!==null&&(lt=lt.updateQueue,ge=lt.lastBaseUpdate,ge!==Q&&(ge===null?lt.firstBaseUpdate=Ue:ge.next=Ue,lt.lastBaseUpdate=$e))}if(L!==null){var dt=M.baseState;Q=0,lt=Ue=$e=null,ge=L;do{var at=ge.lane,_t=ge.eventTime;if((E&at)===at){lt!==null&&(lt=lt.next={eventTime:_t,lane:0,tag:ge.tag,payload:ge.payload,callback:ge.callback,next:null});e:{var At=c,Ht=ge;switch(at=f,_t=b,Ht.tag){case 1:if(At=Ht.payload,typeof At=="function"){dt=At.call(_t,dt,at);break e}dt=At;break e;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Ht.payload,at=typeof At=="function"?At.call(_t,dt,at):At,at==null)break e;dt=K({},dt,at);break e;case 2:ui=!0}}ge.callback!==null&&ge.lane!==0&&(c.flags|=64,at=M.effects,at===null?M.effects=[ge]:at.push(ge))}else _t={eventTime:_t,lane:at,tag:ge.tag,payload:ge.payload,callback:ge.callback,next:null},lt===null?(Ue=lt=_t,$e=dt):lt=lt.next=_t,Q|=at;if(ge=ge.next,ge===null){if(ge=M.shared.pending,ge===null)break;at=ge,ge=at.next,at.next=null,M.lastBaseUpdate=at,M.shared.pending=null}}while(!0);if(lt===null&&($e=dt),M.baseState=$e,M.firstBaseUpdate=Ue,M.lastBaseUpdate=lt,f=M.shared.interleaved,f!==null){M=f;do Q|=M.lane,M=M.next;while(M!==f)}else L===null&&(M.shared.lanes=0);nl|=Q,c.lanes=Q,c.memoizedState=dt}}function Nx(c,f,b){if(c=f.effects,f.effects=null,c!==null)for(f=0;f<c.length;f++){var E=c[f],M=E.callback;if(M!==null){if(E.callback=null,E=b,typeof M!="function")throw Error(n(191,M));M.call(E)}}}var Nc={},Ra=li(Nc),Mc=li(Nc),Tc=li(Nc);function el(c){if(c===Nc)throw Error(n(174));return c}function pg(c,f){switch(Un(Tc,f),Un(Mc,c),Un(Ra,Nc),c=f.nodeType,c){case 9:case 11:f=(f=f.documentElement)?f.namespaceURI:tt(null,"");break;default:c=c===8?f.parentNode:f,f=c.namespaceURI||null,c=c.tagName,f=tt(f,c)}Xn(Ra),Un(Ra,f)}function ns(){Xn(Ra),Xn(Mc),Xn(Tc)}function Mx(c){el(Tc.current);var f=el(Ra.current),b=tt(f,c.type);f!==b&&(Un(Mc,c),Un(Ra,b))}function gg(c){Mc.current===c&&(Xn(Ra),Xn(Mc))}var ir=li(0);function Qd(c){for(var f=c;f!==null;){if(f.tag===13){var b=f.memoizedState;if(b!==null&&(b=b.dehydrated,b===null||b.data==="$?"||b.data==="$!"))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var hg=[];function yg(){for(var c=0;c<hg.length;c++)hg[c]._workInProgressVersionPrimary=null;hg.length=0}var Zd=R.ReactCurrentDispatcher,bg=R.ReactCurrentBatchConfig,tl=0,lr=null,Cr=null,Rr=null,Jd=!1,_c=!1,Dc=0,OD=0;function Vr(){throw Error(n(321))}function Cg(c,f){if(f===null)return!1;for(var b=0;b<f.length&&b<c.length;b++)if(!oa(c[b],f[b]))return!1;return!0}function Sg(c,f,b,E,M,L){if(tl=L,lr=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,Zd.current=c===null||c.memoizedState===null?ND:MD,c=b(E,M),_c){L=0;do{if(_c=!1,Dc=0,25<=L)throw Error(n(301));L+=1,Rr=Cr=null,f.updateQueue=null,Zd.current=TD,c=b(E,M)}while(_c)}if(Zd.current=nf,f=Cr!==null&&Cr.next!==null,tl=0,Rr=Cr=lr=null,Jd=!1,f)throw Error(n(300));return c}function xg(){var c=Dc!==0;return Dc=0,c}function Ia(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rr===null?lr.memoizedState=Rr=c:Rr=Rr.next=c,Rr}function Fo(){if(Cr===null){var c=lr.alternate;c=c!==null?c.memoizedState:null}else c=Cr.next;var f=Rr===null?lr.memoizedState:Rr.next;if(f!==null)Rr=f,Cr=c;else{if(c===null)throw Error(n(310));Cr=c,c={memoizedState:Cr.memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},Rr===null?lr.memoizedState=Rr=c:Rr=Rr.next=c}return Rr}function jc(c,f){return typeof f=="function"?f(c):f}function wg(c){var f=Fo(),b=f.queue;if(b===null)throw Error(n(311));b.lastRenderedReducer=c;var E=Cr,M=E.baseQueue,L=b.pending;if(L!==null){if(M!==null){var Q=M.next;M.next=L.next,L.next=Q}E.baseQueue=M=L,b.pending=null}if(M!==null){L=M.next,E=E.baseState;var ge=Q=null,$e=null,Ue=L;do{var lt=Ue.lane;if((tl&lt)===lt)$e!==null&&($e=$e.next={lane:0,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null}),E=Ue.hasEagerState?Ue.eagerState:c(E,Ue.action);else{var dt={lane:lt,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null};$e===null?(ge=$e=dt,Q=E):$e=$e.next=dt,lr.lanes|=lt,nl|=lt}Ue=Ue.next}while(Ue!==null&&Ue!==L);$e===null?Q=E:$e.next=ge,oa(E,f.memoizedState)||(lo=!0),f.memoizedState=E,f.baseState=Q,f.baseQueue=$e,b.lastRenderedState=E}if(c=b.interleaved,c!==null){M=c;do L=M.lane,lr.lanes|=L,nl|=L,M=M.next;while(M!==c)}else M===null&&(b.lanes=0);return[f.memoizedState,b.dispatch]}function $g(c){var f=Fo(),b=f.queue;if(b===null)throw Error(n(311));b.lastRenderedReducer=c;var E=b.dispatch,M=b.pending,L=f.memoizedState;if(M!==null){b.pending=null;var Q=M=M.next;do L=c(L,Q.action),Q=Q.next;while(Q!==M);oa(L,f.memoizedState)||(lo=!0),f.memoizedState=L,f.baseQueue===null&&(f.baseState=L),b.lastRenderedState=L}return[L,E]}function Tx(){}function _x(c,f){var b=lr,E=Fo(),M=f(),L=!oa(E.memoizedState,M);if(L&&(E.memoizedState=M,lo=!0),E=E.queue,Eg(kx.bind(null,b,E,c),[c]),E.getSnapshot!==f||L||Rr!==null&&Rr.memoizedState.tag&1){if(b.flags|=2048,kc(9,jx.bind(null,b,E,M,f),void 0,null),Ir===null)throw Error(n(349));(tl&30)!==0||Dx(b,f,M)}return M}function Dx(c,f,b){c.flags|=16384,c={getSnapshot:f,value:b},f=lr.updateQueue,f===null?(f={lastEffect:null,stores:null},lr.updateQueue=f,f.stores=[c]):(b=f.stores,b===null?f.stores=[c]:b.push(c))}function jx(c,f,b,E){f.value=b,f.getSnapshot=E,zx(f)&&Lx(c)}function kx(c,f,b){return b(function(){zx(f)&&Lx(c)})}function zx(c){var f=c.getSnapshot;c=c.value;try{var b=f();return!oa(c,b)}catch{return!0}}function Lx(c){var f=Va(c,1);f!==null&&ca(f,c,1,-1)}function Fx(c){var f=Ia();return typeof c=="function"&&(c=c()),f.memoizedState=f.baseState=c,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jc,lastRenderedState:c},f.queue=c,c=c.dispatch=PD.bind(null,lr,c),[f.memoizedState,c]}function kc(c,f,b,E){return c={tag:c,create:f,destroy:b,deps:E,next:null},f=lr.updateQueue,f===null?(f={lastEffect:null,stores:null},lr.updateQueue=f,f.lastEffect=c.next=c):(b=f.lastEffect,b===null?f.lastEffect=c.next=c:(E=b.next,b.next=c,c.next=E,f.lastEffect=c)),c}function Ax(){return Fo().memoizedState}function ef(c,f,b,E){var M=Ia();lr.flags|=c,M.memoizedState=kc(1|f,b,void 0,E===void 0?null:E)}function tf(c,f,b,E){var M=Fo();E=E===void 0?null:E;var L=void 0;if(Cr!==null){var Q=Cr.memoizedState;if(L=Q.destroy,E!==null&&Cg(E,Q.deps)){M.memoizedState=kc(f,b,L,E);return}}lr.flags|=c,M.memoizedState=kc(1|f,b,L,E)}function Bx(c,f){return ef(8390656,8,c,f)}function Eg(c,f){return tf(2048,8,c,f)}function Hx(c,f){return tf(4,2,c,f)}function Vx(c,f){return tf(4,4,c,f)}function Wx(c,f){if(typeof f=="function")return c=c(),f(c),function(){f(null)};if(f!=null)return c=c(),f.current=c,function(){f.current=null}}function Kx(c,f,b){return b=b!=null?b.concat([c]):null,tf(4,4,Wx.bind(null,f,c),b)}function Og(){}function Ux(c,f){var b=Fo();f=f===void 0?null:f;var E=b.memoizedState;return E!==null&&f!==null&&Cg(f,E[1])?E[0]:(b.memoizedState=[c,f],c)}function qx(c,f){var b=Fo();f=f===void 0?null:f;var E=b.memoizedState;return E!==null&&f!==null&&Cg(f,E[1])?E[0]:(c=c(),b.memoizedState=[c,f],c)}function Yx(c,f,b){return(tl&21)===0?(c.baseState&&(c.baseState=!1,lo=!0),c.memoizedState=b):(oa(b,f)||(b=xt(),lr.lanes|=b,nl|=b,c.baseState=!0),f)}function RD(c,f){var b=Zt;Zt=b!==0&&4>b?b:4,c(!0);var E=bg.transition;bg.transition={};try{c(!1),f()}finally{Zt=b,bg.transition=E}}function Gx(){return Fo().memoizedState}function ID(c,f,b){var E=pi(c);if(b={lane:E,action:b,hasEagerState:!1,eagerState:null,next:null},Xx(c))Qx(f,b);else if(b=Rx(c,f,b,E),b!==null){var M=Zr();ca(b,c,E,M),Zx(b,f,E)}}function PD(c,f,b){var E=pi(c),M={lane:E,action:b,hasEagerState:!1,eagerState:null,next:null};if(Xx(c))Qx(f,M);else{var L=c.alternate;if(c.lanes===0&&(L===null||L.lanes===0)&&(L=f.lastRenderedReducer,L!==null))try{var Q=f.lastRenderedState,ge=L(Q,b);if(M.hasEagerState=!0,M.eagerState=ge,oa(ge,Q)){var $e=f.interleaved;$e===null?(M.next=M,mg(f)):(M.next=$e.next,$e.next=M),f.interleaved=M;return}}catch{}finally{}b=Rx(c,f,M,E),b!==null&&(M=Zr(),ca(b,c,E,M),Zx(b,f,E))}}function Xx(c){var f=c.alternate;return c===lr||f!==null&&f===lr}function Qx(c,f){_c=Jd=!0;var b=c.pending;b===null?f.next=f:(f.next=b.next,b.next=f),c.pending=f}function Zx(c,f,b){if((b&4194240)!==0){var E=f.lanes;E&=c.pendingLanes,b|=E,f.lanes=b,An(c,b)}}var nf={readContext:Lo,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},ND={readContext:Lo,useCallback:function(c,f){return Ia().memoizedState=[c,f===void 0?null:f],c},useContext:Lo,useEffect:Bx,useImperativeHandle:function(c,f,b){return b=b!=null?b.concat([c]):null,ef(4194308,4,Wx.bind(null,f,c),b)},useLayoutEffect:function(c,f){return ef(4194308,4,c,f)},useInsertionEffect:function(c,f){return ef(4,2,c,f)},useMemo:function(c,f){var b=Ia();return f=f===void 0?null:f,c=c(),b.memoizedState=[c,f],c},useReducer:function(c,f,b){var E=Ia();return f=b!==void 0?b(f):f,E.memoizedState=E.baseState=f,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:f},E.queue=c,c=c.dispatch=ID.bind(null,lr,c),[E.memoizedState,c]},useRef:function(c){var f=Ia();return c={current:c},f.memoizedState=c},useState:Fx,useDebugValue:Og,useDeferredValue:function(c){return Ia().memoizedState=c},useTransition:function(){var c=Fx(!1),f=c[0];return c=RD.bind(null,c[1]),Ia().memoizedState=c,[f,c]},useMutableSource:function(){},useSyncExternalStore:function(c,f,b){var E=lr,M=Ia();if(nr){if(b===void 0)throw Error(n(407));b=b()}else{if(b=f(),Ir===null)throw Error(n(349));(tl&30)!==0||Dx(E,f,b)}M.memoizedState=b;var L={value:b,getSnapshot:f};return M.queue=L,Bx(kx.bind(null,E,L,c),[c]),E.flags|=2048,kc(9,jx.bind(null,E,L,b,f),void 0,null),b},useId:function(){var c=Ia(),f=Ir.identifierPrefix;if(nr){var b=Ha,E=Ba;b=(E&~(1<<32-Pn(E)-1)).toString(32)+b,f=":"+f+"R"+b,b=Dc++,0<b&&(f+="H"+b.toString(32)),f+=":"}else b=OD++,f=":"+f+"r"+b.toString(32)+":";return c.memoizedState=f},unstable_isNewReconciler:!1},MD={readContext:Lo,useCallback:Ux,useContext:Lo,useEffect:Eg,useImperativeHandle:Kx,useInsertionEffect:Hx,useLayoutEffect:Vx,useMemo:qx,useReducer:wg,useRef:Ax,useState:function(){return wg(jc)},useDebugValue:Og,useDeferredValue:function(c){var f=Fo();return Yx(f,Cr.memoizedState,c)},useTransition:function(){var c=wg(jc)[0],f=Fo().memoizedState;return[c,f]},useMutableSource:Tx,useSyncExternalStore:_x,useId:Gx,unstable_isNewReconciler:!1},TD={readContext:Lo,useCallback:Ux,useContext:Lo,useEffect:Eg,useImperativeHandle:Kx,useInsertionEffect:Hx,useLayoutEffect:Vx,useMemo:qx,useReducer:$g,useRef:Ax,useState:function(){return $g(jc)},useDebugValue:Og,useDeferredValue:function(c){var f=Fo();return Cr===null?f.memoizedState=c:Yx(f,Cr.memoizedState,c)},useTransition:function(){var c=$g(jc)[0],f=Fo().memoizedState;return[c,f]},useMutableSource:Tx,useSyncExternalStore:_x,useId:Gx,unstable_isNewReconciler:!1};function ia(c,f){if(c&&c.defaultProps){f=K({},f),c=c.defaultProps;for(var b in c)f[b]===void 0&&(f[b]=c[b]);return f}return f}function Rg(c,f,b,E){f=c.memoizedState,b=b(E,f),b=b==null?f:K({},f,b),c.memoizedState=b,c.lanes===0&&(c.updateQueue.baseState=b)}var rf={isMounted:function(c){return(c=c._reactInternals)?st(c)===c:!1},enqueueSetState:function(c,f,b){c=c._reactInternals;var E=Zr(),M=pi(c),L=Wa(E,M);L.payload=f,b!=null&&(L.callback=b),f=di(c,L,M),f!==null&&(ca(f,c,M,E),Gd(f,c,M))},enqueueReplaceState:function(c,f,b){c=c._reactInternals;var E=Zr(),M=pi(c),L=Wa(E,M);L.tag=1,L.payload=f,b!=null&&(L.callback=b),f=di(c,L,M),f!==null&&(ca(f,c,M,E),Gd(f,c,M))},enqueueForceUpdate:function(c,f){c=c._reactInternals;var b=Zr(),E=pi(c),M=Wa(b,E);M.tag=2,f!=null&&(M.callback=f),f=di(c,M,E),f!==null&&(ca(f,c,E,b),Gd(f,c,E))}};function Jx(c,f,b,E,M,L,Q){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(E,L,Q):f.prototype&&f.prototype.isPureReactComponent?!xc(b,E)||!xc(M,L):!0}function ew(c,f,b){var E=!1,M=si,L=f.contextType;return typeof L=="object"&&L!==null?L=Lo(L):(M=io(f)?Xi:Hr.current,E=f.contextTypes,L=(E=E!=null)?Gl(c,M):si),f=new f(b,L),c.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=rf,c.stateNode=f,f._reactInternals=c,E&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=M,c.__reactInternalMemoizedMaskedChildContext=L),f}function tw(c,f,b,E){c=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(b,E),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(b,E),f.state!==c&&rf.enqueueReplaceState(f,f.state,null)}function Ig(c,f,b,E){var M=c.stateNode;M.props=b,M.state=c.memoizedState,M.refs={},vg(c);var L=f.contextType;typeof L=="object"&&L!==null?M.context=Lo(L):(L=io(f)?Xi:Hr.current,M.context=Gl(c,L)),M.state=c.memoizedState,L=f.getDerivedStateFromProps,typeof L=="function"&&(Rg(c,f,L,b),M.state=c.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(f=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),f!==M.state&&rf.enqueueReplaceState(M,M.state,null),Xd(c,b,M,E),M.state=c.memoizedState),typeof M.componentDidMount=="function"&&(c.flags|=4194308)}function rs(c,f){try{var b="",E=f;do b+=G(E),E=E.return;while(E);var M=b}catch(L){M=`
Error generating stack: `+L.message+`
`+L.stack}return{value:c,source:f,stack:M,digest:null}}function Pg(c,f,b){return{value:c,source:null,stack:b??null,digest:f??null}}function Ng(c,f){try{console.error(f.value)}catch(b){setTimeout(function(){throw b})}}var _D=typeof WeakMap=="function"?WeakMap:Map;function nw(c,f,b){b=Wa(-1,b),b.tag=3,b.payload={element:null};var E=f.value;return b.callback=function(){df||(df=!0,Kg=E),Ng(c,f)},b}function rw(c,f,b){b=Wa(-1,b),b.tag=3;var E=c.type.getDerivedStateFromError;if(typeof E=="function"){var M=f.value;b.payload=function(){return E(M)},b.callback=function(){Ng(c,f)}}var L=c.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(b.callback=function(){Ng(c,f),typeof E!="function"&&(mi===null?mi=new Set([this]):mi.add(this));var Q=f.stack;this.componentDidCatch(f.value,{componentStack:Q!==null?Q:""})}),b}function ow(c,f,b){var E=c.pingCache;if(E===null){E=c.pingCache=new _D;var M=new Set;E.set(f,M)}else M=E.get(f),M===void 0&&(M=new Set,E.set(f,M));M.has(b)||(M.add(b),c=qD.bind(null,c,f,b),f.then(c,c))}function aw(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function iw(c,f,b,E,M){return(c.mode&1)===0?(c===f?c.flags|=65536:(c.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:(f=Wa(-1,1),f.tag=2,di(b,f,1))),b.lanes|=1),c):(c.flags|=65536,c.lanes=M,c)}var DD=R.ReactCurrentOwner,lo=!1;function Qr(c,f,b,E){f.child=c===null?Ox(f,null,b,E):Jl(f,c.child,b,E)}function lw(c,f,b,E,M){b=b.render;var L=f.ref;return ts(f,M),E=Sg(c,f,b,E,L,M),b=xg(),c!==null&&!lo?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~M,Ka(c,f,M)):(nr&&b&&og(f),f.flags|=1,Qr(c,f,E,M),f.child)}function sw(c,f,b,E,M){if(c===null){var L=b.type;return typeof L=="function"&&!Zg(L)&&L.defaultProps===void 0&&b.compare===null&&b.defaultProps===void 0?(f.tag=15,f.type=L,cw(c,f,L,E,M)):(c=hf(b.type,null,E,f,f.mode,M),c.ref=f.ref,c.return=f,f.child=c)}if(L=c.child,(c.lanes&M)===0){var Q=L.memoizedProps;if(b=b.compare,b=b!==null?b:xc,b(Q,E)&&c.ref===f.ref)return Ka(c,f,M)}return f.flags|=1,c=hi(L,E),c.ref=f.ref,c.return=f,f.child=c}function cw(c,f,b,E,M){if(c!==null){var L=c.memoizedProps;if(xc(L,E)&&c.ref===f.ref)if(lo=!1,f.pendingProps=E=L,(c.lanes&M)!==0)(c.flags&131072)!==0&&(lo=!0);else return f.lanes=c.lanes,Ka(c,f,M)}return Mg(c,f,b,E,M)}function uw(c,f,b){var E=f.pendingProps,M=E.children,L=c!==null?c.memoizedState:null;if(E.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},Un(as,xo),xo|=b;else{if((b&1073741824)===0)return c=L!==null?L.baseLanes|b:b,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,Un(as,xo),xo|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},E=L!==null?L.baseLanes:b,Un(as,xo),xo|=E}else L!==null?(E=L.baseLanes|b,f.memoizedState=null):E=b,Un(as,xo),xo|=E;return Qr(c,f,M,b),f.child}function dw(c,f){var b=f.ref;(c===null&&b!==null||c!==null&&c.ref!==b)&&(f.flags|=512,f.flags|=2097152)}function Mg(c,f,b,E,M){var L=io(b)?Xi:Hr.current;return L=Gl(f,L),ts(f,M),b=Sg(c,f,b,E,L,M),E=xg(),c!==null&&!lo?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~M,Ka(c,f,M)):(nr&&E&&og(f),f.flags|=1,Qr(c,f,b,M),f.child)}function fw(c,f,b,E,M){if(io(b)){var L=!0;Bd(f)}else L=!1;if(ts(f,M),f.stateNode===null)af(c,f),ew(f,b,E),Ig(f,b,E,M),E=!0;else if(c===null){var Q=f.stateNode,ge=f.memoizedProps;Q.props=ge;var $e=Q.context,Ue=b.contextType;typeof Ue=="object"&&Ue!==null?Ue=Lo(Ue):(Ue=io(b)?Xi:Hr.current,Ue=Gl(f,Ue));var lt=b.getDerivedStateFromProps,dt=typeof lt=="function"||typeof Q.getSnapshotBeforeUpdate=="function";dt||typeof Q.UNSAFE_componentWillReceiveProps!="function"&&typeof Q.componentWillReceiveProps!="function"||(ge!==E||$e!==Ue)&&tw(f,Q,E,Ue),ui=!1;var at=f.memoizedState;Q.state=at,Xd(f,E,Q,M),$e=f.memoizedState,ge!==E||at!==$e||ao.current||ui?(typeof lt=="function"&&(Rg(f,b,lt,E),$e=f.memoizedState),(ge=ui||Jx(f,b,ge,E,at,$e,Ue))?(dt||typeof Q.UNSAFE_componentWillMount!="function"&&typeof Q.componentWillMount!="function"||(typeof Q.componentWillMount=="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount=="function"&&Q.UNSAFE_componentWillMount()),typeof Q.componentDidMount=="function"&&(f.flags|=4194308)):(typeof Q.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=E,f.memoizedState=$e),Q.props=E,Q.state=$e,Q.context=Ue,E=ge):(typeof Q.componentDidMount=="function"&&(f.flags|=4194308),E=!1)}else{Q=f.stateNode,Ix(c,f),ge=f.memoizedProps,Ue=f.type===f.elementType?ge:ia(f.type,ge),Q.props=Ue,dt=f.pendingProps,at=Q.context,$e=b.contextType,typeof $e=="object"&&$e!==null?$e=Lo($e):($e=io(b)?Xi:Hr.current,$e=Gl(f,$e));var _t=b.getDerivedStateFromProps;(lt=typeof _t=="function"||typeof Q.getSnapshotBeforeUpdate=="function")||typeof Q.UNSAFE_componentWillReceiveProps!="function"&&typeof Q.componentWillReceiveProps!="function"||(ge!==dt||at!==$e)&&tw(f,Q,E,$e),ui=!1,at=f.memoizedState,Q.state=at,Xd(f,E,Q,M);var At=f.memoizedState;ge!==dt||at!==At||ao.current||ui?(typeof _t=="function"&&(Rg(f,b,_t,E),At=f.memoizedState),(Ue=ui||Jx(f,b,Ue,E,at,At,$e)||!1)?(lt||typeof Q.UNSAFE_componentWillUpdate!="function"&&typeof Q.componentWillUpdate!="function"||(typeof Q.componentWillUpdate=="function"&&Q.componentWillUpdate(E,At,$e),typeof Q.UNSAFE_componentWillUpdate=="function"&&Q.UNSAFE_componentWillUpdate(E,At,$e)),typeof Q.componentDidUpdate=="function"&&(f.flags|=4),typeof Q.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof Q.componentDidUpdate!="function"||ge===c.memoizedProps&&at===c.memoizedState||(f.flags|=4),typeof Q.getSnapshotBeforeUpdate!="function"||ge===c.memoizedProps&&at===c.memoizedState||(f.flags|=1024),f.memoizedProps=E,f.memoizedState=At),Q.props=E,Q.state=At,Q.context=$e,E=Ue):(typeof Q.componentDidUpdate!="function"||ge===c.memoizedProps&&at===c.memoizedState||(f.flags|=4),typeof Q.getSnapshotBeforeUpdate!="function"||ge===c.memoizedProps&&at===c.memoizedState||(f.flags|=1024),E=!1)}return Tg(c,f,b,E,L,M)}function Tg(c,f,b,E,M,L){dw(c,f);var Q=(f.flags&128)!==0;if(!E&&!Q)return M&&hx(f,b,!1),Ka(c,f,L);E=f.stateNode,DD.current=f;var ge=Q&&typeof b.getDerivedStateFromError!="function"?null:E.render();return f.flags|=1,c!==null&&Q?(f.child=Jl(f,c.child,null,L),f.child=Jl(f,null,ge,L)):Qr(c,f,ge,L),f.memoizedState=E.state,M&&hx(f,b,!0),f.child}function mw(c){var f=c.stateNode;f.pendingContext?px(c,f.pendingContext,f.pendingContext!==f.context):f.context&&px(c,f.context,!1),pg(c,f.containerInfo)}function vw(c,f,b,E,M){return Zl(),sg(M),f.flags|=256,Qr(c,f,b,E),f.child}var _g={dehydrated:null,treeContext:null,retryLane:0};function Dg(c){return{baseLanes:c,cachePool:null,transitions:null}}function pw(c,f,b){var E=f.pendingProps,M=ir.current,L=!1,Q=(f.flags&128)!==0,ge;if((ge=Q)||(ge=c!==null&&c.memoizedState===null?!1:(M&2)!==0),ge?(L=!0,f.flags&=-129):(c===null||c.memoizedState!==null)&&(M|=1),Un(ir,M&1),c===null)return lg(f),c=f.memoizedState,c!==null&&(c=c.dehydrated,c!==null)?((f.mode&1)===0?f.lanes=1:c.data==="$!"?f.lanes=8:f.lanes=1073741824,null):(Q=E.children,c=E.fallback,L?(E=f.mode,L=f.child,Q={mode:"hidden",children:Q},(E&1)===0&&L!==null?(L.childLanes=0,L.pendingProps=Q):L=yf(Q,E,0,null),c=il(c,E,b,null),L.return=f,c.return=f,L.sibling=c,f.child=L,f.child.memoizedState=Dg(b),f.memoizedState=_g,c):jg(f,Q));if(M=c.memoizedState,M!==null&&(ge=M.dehydrated,ge!==null))return jD(c,f,Q,E,ge,M,b);if(L){L=E.fallback,Q=f.mode,M=c.child,ge=M.sibling;var $e={mode:"hidden",children:E.children};return(Q&1)===0&&f.child!==M?(E=f.child,E.childLanes=0,E.pendingProps=$e,f.deletions=null):(E=hi(M,$e),E.subtreeFlags=M.subtreeFlags&14680064),ge!==null?L=hi(ge,L):(L=il(L,Q,b,null),L.flags|=2),L.return=f,E.return=f,E.sibling=L,f.child=E,E=L,L=f.child,Q=c.child.memoizedState,Q=Q===null?Dg(b):{baseLanes:Q.baseLanes|b,cachePool:null,transitions:Q.transitions},L.memoizedState=Q,L.childLanes=c.childLanes&~b,f.memoizedState=_g,E}return L=c.child,c=L.sibling,E=hi(L,{mode:"visible",children:E.children}),(f.mode&1)===0&&(E.lanes=b),E.return=f,E.sibling=null,c!==null&&(b=f.deletions,b===null?(f.deletions=[c],f.flags|=16):b.push(c)),f.child=E,f.memoizedState=null,E}function jg(c,f){return f=yf({mode:"visible",children:f},c.mode,0,null),f.return=c,c.child=f}function of(c,f,b,E){return E!==null&&sg(E),Jl(f,c.child,null,b),c=jg(f,f.pendingProps.children),c.flags|=2,f.memoizedState=null,c}function jD(c,f,b,E,M,L,Q){if(b)return f.flags&256?(f.flags&=-257,E=Pg(Error(n(422))),of(c,f,Q,E)):f.memoizedState!==null?(f.child=c.child,f.flags|=128,null):(L=E.fallback,M=f.mode,E=yf({mode:"visible",children:E.children},M,0,null),L=il(L,M,Q,null),L.flags|=2,E.return=f,L.return=f,E.sibling=L,f.child=E,(f.mode&1)!==0&&Jl(f,c.child,null,Q),f.child.memoizedState=Dg(Q),f.memoizedState=_g,L);if((f.mode&1)===0)return of(c,f,Q,null);if(M.data==="$!"){if(E=M.nextSibling&&M.nextSibling.dataset,E)var ge=E.dgst;return E=ge,L=Error(n(419)),E=Pg(L,E,void 0),of(c,f,Q,E)}if(ge=(Q&c.childLanes)!==0,lo||ge){if(E=Ir,E!==null){switch(Q&-Q){case 4:M=2;break;case 16:M=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:M=32;break;case 536870912:M=268435456;break;default:M=0}M=(M&(E.suspendedLanes|Q))!==0?0:M,M!==0&&M!==L.retryLane&&(L.retryLane=M,Va(c,M),ca(E,c,M,-1))}return Qg(),E=Pg(Error(n(421))),of(c,f,Q,E)}return M.data==="$?"?(f.flags|=128,f.child=c.child,f=YD.bind(null,c),M._reactRetry=f,null):(c=L.treeContext,So=ii(M.nextSibling),Co=f,nr=!0,aa=null,c!==null&&(ko[zo++]=Ba,ko[zo++]=Ha,ko[zo++]=Qi,Ba=c.id,Ha=c.overflow,Qi=f),f=jg(f,E.children),f.flags|=4096,f)}function gw(c,f,b){c.lanes|=f;var E=c.alternate;E!==null&&(E.lanes|=f),fg(c.return,f,b)}function kg(c,f,b,E,M){var L=c.memoizedState;L===null?c.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:E,tail:b,tailMode:M}:(L.isBackwards=f,L.rendering=null,L.renderingStartTime=0,L.last=E,L.tail=b,L.tailMode=M)}function hw(c,f,b){var E=f.pendingProps,M=E.revealOrder,L=E.tail;if(Qr(c,f,E.children,b),E=ir.current,(E&2)!==0)E=E&1|2,f.flags|=128;else{if(c!==null&&(c.flags&128)!==0)e:for(c=f.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&gw(c,b,f);else if(c.tag===19)gw(c,b,f);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===f)break e;for(;c.sibling===null;){if(c.return===null||c.return===f)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}E&=1}if(Un(ir,E),(f.mode&1)===0)f.memoizedState=null;else switch(M){case"forwards":for(b=f.child,M=null;b!==null;)c=b.alternate,c!==null&&Qd(c)===null&&(M=b),b=b.sibling;b=M,b===null?(M=f.child,f.child=null):(M=b.sibling,b.sibling=null),kg(f,!1,M,b,L);break;case"backwards":for(b=null,M=f.child,f.child=null;M!==null;){if(c=M.alternate,c!==null&&Qd(c)===null){f.child=M;break}c=M.sibling,M.sibling=b,b=M,M=c}kg(f,!0,b,null,L);break;case"together":kg(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function af(c,f){(f.mode&1)===0&&c!==null&&(c.alternate=null,f.alternate=null,f.flags|=2)}function Ka(c,f,b){if(c!==null&&(f.dependencies=c.dependencies),nl|=f.lanes,(b&f.childLanes)===0)return null;if(c!==null&&f.child!==c.child)throw Error(n(153));if(f.child!==null){for(c=f.child,b=hi(c,c.pendingProps),f.child=b,b.return=f;c.sibling!==null;)c=c.sibling,b=b.sibling=hi(c,c.pendingProps),b.return=f;b.sibling=null}return f.child}function kD(c,f,b){switch(f.tag){case 3:mw(f),Zl();break;case 5:Mx(f);break;case 1:io(f.type)&&Bd(f);break;case 4:pg(f,f.stateNode.containerInfo);break;case 10:var E=f.type._context,M=f.memoizedProps.value;Un(qd,E._currentValue),E._currentValue=M;break;case 13:if(E=f.memoizedState,E!==null)return E.dehydrated!==null?(Un(ir,ir.current&1),f.flags|=128,null):(b&f.child.childLanes)!==0?pw(c,f,b):(Un(ir,ir.current&1),c=Ka(c,f,b),c!==null?c.sibling:null);Un(ir,ir.current&1);break;case 19:if(E=(b&f.childLanes)!==0,(c.flags&128)!==0){if(E)return hw(c,f,b);f.flags|=128}if(M=f.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),Un(ir,ir.current),E)break;return null;case 22:case 23:return f.lanes=0,uw(c,f,b)}return Ka(c,f,b)}var yw,zg,bw,Cw;yw=function(c,f){for(var b=f.child;b!==null;){if(b.tag===5||b.tag===6)c.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===f)break;for(;b.sibling===null;){if(b.return===null||b.return===f)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},zg=function(){},bw=function(c,f,b,E){var M=c.memoizedProps;if(M!==E){c=f.stateNode,el(Ra.current);var L=null;switch(b){case"input":M=de(c,M),E=de(c,E),L=[];break;case"select":M=K({},M,{value:void 0}),E=K({},E,{value:void 0}),L=[];break;case"textarea":M=xe(c,M),E=xe(c,E),L=[];break;default:typeof M.onClick!="function"&&typeof E.onClick=="function"&&(c.onclick=Ld)}Fe(b,E);var Q;b=null;for(Ue in M)if(!E.hasOwnProperty(Ue)&&M.hasOwnProperty(Ue)&&M[Ue]!=null)if(Ue==="style"){var ge=M[Ue];for(Q in ge)ge.hasOwnProperty(Q)&&(b||(b={}),b[Q]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(o.hasOwnProperty(Ue)?L||(L=[]):(L=L||[]).push(Ue,null));for(Ue in E){var $e=E[Ue];if(ge=M!=null?M[Ue]:void 0,E.hasOwnProperty(Ue)&&$e!==ge&&($e!=null||ge!=null))if(Ue==="style")if(ge){for(Q in ge)!ge.hasOwnProperty(Q)||$e&&$e.hasOwnProperty(Q)||(b||(b={}),b[Q]="");for(Q in $e)$e.hasOwnProperty(Q)&&ge[Q]!==$e[Q]&&(b||(b={}),b[Q]=$e[Q])}else b||(L||(L=[]),L.push(Ue,b)),b=$e;else Ue==="dangerouslySetInnerHTML"?($e=$e?$e.__html:void 0,ge=ge?ge.__html:void 0,$e!=null&&ge!==$e&&(L=L||[]).push(Ue,$e)):Ue==="children"?typeof $e!="string"&&typeof $e!="number"||(L=L||[]).push(Ue,""+$e):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(o.hasOwnProperty(Ue)?($e!=null&&Ue==="onScroll"&&Gn("scroll",c),L||ge===$e||(L=[])):(L=L||[]).push(Ue,$e))}b&&(L=L||[]).push("style",b);var Ue=L;(f.updateQueue=Ue)&&(f.flags|=4)}},Cw=function(c,f,b,E){b!==E&&(f.flags|=4)};function zc(c,f){if(!nr)switch(c.tailMode){case"hidden":f=c.tail;for(var b=null;f!==null;)f.alternate!==null&&(b=f),f=f.sibling;b===null?c.tail=null:b.sibling=null;break;case"collapsed":b=c.tail;for(var E=null;b!==null;)b.alternate!==null&&(E=b),b=b.sibling;E===null?f||c.tail===null?c.tail=null:c.tail.sibling=null:E.sibling=null}}function Wr(c){var f=c.alternate!==null&&c.alternate.child===c.child,b=0,E=0;if(f)for(var M=c.child;M!==null;)b|=M.lanes|M.childLanes,E|=M.subtreeFlags&14680064,E|=M.flags&14680064,M.return=c,M=M.sibling;else for(M=c.child;M!==null;)b|=M.lanes|M.childLanes,E|=M.subtreeFlags,E|=M.flags,M.return=c,M=M.sibling;return c.subtreeFlags|=E,c.childLanes=b,f}function zD(c,f,b){var E=f.pendingProps;switch(ag(f),f.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wr(f),null;case 1:return io(f.type)&&Ad(),Wr(f),null;case 3:return E=f.stateNode,ns(),Xn(ao),Xn(Hr),yg(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),(c===null||c.child===null)&&(Kd(f)?f.flags|=4:c===null||c.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,aa!==null&&(Yg(aa),aa=null))),zg(c,f),Wr(f),null;case 5:gg(f);var M=el(Tc.current);if(b=f.type,c!==null&&f.stateNode!=null)bw(c,f,b,E,M),c.ref!==f.ref&&(f.flags|=512,f.flags|=2097152);else{if(!E){if(f.stateNode===null)throw Error(n(166));return Wr(f),null}if(c=el(Ra.current),Kd(f)){E=f.stateNode,b=f.type;var L=f.memoizedProps;switch(E[Oa]=f,E[Rc]=L,c=(f.mode&1)!==0,b){case"dialog":Gn("cancel",E),Gn("close",E);break;case"iframe":case"object":case"embed":Gn("load",E);break;case"video":case"audio":for(M=0;M<$c.length;M++)Gn($c[M],E);break;case"source":Gn("error",E);break;case"img":case"image":case"link":Gn("error",E),Gn("load",E);break;case"details":Gn("toggle",E);break;case"input":ve(E,L),Gn("invalid",E);break;case"select":E._wrapperState={wasMultiple:!!L.multiple},Gn("invalid",E);break;case"textarea":Ne(E,L),Gn("invalid",E)}Fe(b,L),M=null;for(var Q in L)if(L.hasOwnProperty(Q)){var ge=L[Q];Q==="children"?typeof ge=="string"?E.textContent!==ge&&(L.suppressHydrationWarning!==!0&&zd(E.textContent,ge,c),M=["children",ge]):typeof ge=="number"&&E.textContent!==""+ge&&(L.suppressHydrationWarning!==!0&&zd(E.textContent,ge,c),M=["children",""+ge]):o.hasOwnProperty(Q)&&ge!=null&&Q==="onScroll"&&Gn("scroll",E)}switch(b){case"input":te(E),Se(E,L,!0);break;case"textarea":te(E),Be(E);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(E.onclick=Ld)}E=M,f.updateQueue=E,E!==null&&(f.flags|=4)}else{Q=M.nodeType===9?M:M.ownerDocument,c==="http://www.w3.org/1999/xhtml"&&(c=Ve(b)),c==="http://www.w3.org/1999/xhtml"?b==="script"?(c=Q.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild)):typeof E.is=="string"?c=Q.createElement(b,{is:E.is}):(c=Q.createElement(b),b==="select"&&(Q=c,E.multiple?Q.multiple=!0:E.size&&(Q.size=E.size))):c=Q.createElementNS(c,b),c[Oa]=f,c[Rc]=E,yw(c,f,!1,!1),f.stateNode=c;e:{switch(Q=we(b,E),b){case"dialog":Gn("cancel",c),Gn("close",c),M=E;break;case"iframe":case"object":case"embed":Gn("load",c),M=E;break;case"video":case"audio":for(M=0;M<$c.length;M++)Gn($c[M],c);M=E;break;case"source":Gn("error",c),M=E;break;case"img":case"image":case"link":Gn("error",c),Gn("load",c),M=E;break;case"details":Gn("toggle",c),M=E;break;case"input":ve(c,E),M=de(c,E),Gn("invalid",c);break;case"option":M=E;break;case"select":c._wrapperState={wasMultiple:!!E.multiple},M=K({},E,{value:void 0}),Gn("invalid",c);break;case"textarea":Ne(c,E),M=xe(c,E),Gn("invalid",c);break;default:M=E}Fe(b,M),ge=M;for(L in ge)if(ge.hasOwnProperty(L)){var $e=ge[L];L==="style"?ye(c,$e):L==="dangerouslySetInnerHTML"?($e=$e?$e.__html:void 0,$e!=null&&We(c,$e)):L==="children"?typeof $e=="string"?(b!=="textarea"||$e!=="")&&Ze(c,$e):typeof $e=="number"&&Ze(c,""+$e):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(o.hasOwnProperty(L)?$e!=null&&L==="onScroll"&&Gn("scroll",c):$e!=null&&w(c,L,$e,Q))}switch(b){case"input":te(c),Se(c,E,!1);break;case"textarea":te(c),Be(c);break;case"option":E.value!=null&&c.setAttribute("value",""+J(E.value));break;case"select":c.multiple=!!E.multiple,L=E.value,L!=null?Ce(c,!!E.multiple,L,!1):E.defaultValue!=null&&Ce(c,!!E.multiple,E.defaultValue,!0);break;default:typeof M.onClick=="function"&&(c.onclick=Ld)}switch(b){case"button":case"input":case"select":case"textarea":E=!!E.autoFocus;break e;case"img":E=!0;break e;default:E=!1}}E&&(f.flags|=4)}f.ref!==null&&(f.flags|=512,f.flags|=2097152)}return Wr(f),null;case 6:if(c&&f.stateNode!=null)Cw(c,f,c.memoizedProps,E);else{if(typeof E!="string"&&f.stateNode===null)throw Error(n(166));if(b=el(Tc.current),el(Ra.current),Kd(f)){if(E=f.stateNode,b=f.memoizedProps,E[Oa]=f,(L=E.nodeValue!==b)&&(c=Co,c!==null))switch(c.tag){case 3:zd(E.nodeValue,b,(c.mode&1)!==0);break;case 5:c.memoizedProps.suppressHydrationWarning!==!0&&zd(E.nodeValue,b,(c.mode&1)!==0)}L&&(f.flags|=4)}else E=(b.nodeType===9?b:b.ownerDocument).createTextNode(E),E[Oa]=f,f.stateNode=E}return Wr(f),null;case 13:if(Xn(ir),E=f.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(nr&&So!==null&&(f.mode&1)!==0&&(f.flags&128)===0)wx(),Zl(),f.flags|=98560,L=!1;else if(L=Kd(f),E!==null&&E.dehydrated!==null){if(c===null){if(!L)throw Error(n(318));if(L=f.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(n(317));L[Oa]=f}else Zl(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Wr(f),L=!1}else aa!==null&&(Yg(aa),aa=null),L=!0;if(!L)return f.flags&65536?f:null}return(f.flags&128)!==0?(f.lanes=b,f):(E=E!==null,E!==(c!==null&&c.memoizedState!==null)&&E&&(f.child.flags|=8192,(f.mode&1)!==0&&(c===null||(ir.current&1)!==0?Sr===0&&(Sr=3):Qg())),f.updateQueue!==null&&(f.flags|=4),Wr(f),null);case 4:return ns(),zg(c,f),c===null&&Ec(f.stateNode.containerInfo),Wr(f),null;case 10:return dg(f.type._context),Wr(f),null;case 17:return io(f.type)&&Ad(),Wr(f),null;case 19:if(Xn(ir),L=f.memoizedState,L===null)return Wr(f),null;if(E=(f.flags&128)!==0,Q=L.rendering,Q===null)if(E)zc(L,!1);else{if(Sr!==0||c!==null&&(c.flags&128)!==0)for(c=f.child;c!==null;){if(Q=Qd(c),Q!==null){for(f.flags|=128,zc(L,!1),E=Q.updateQueue,E!==null&&(f.updateQueue=E,f.flags|=4),f.subtreeFlags=0,E=b,b=f.child;b!==null;)L=b,c=E,L.flags&=14680066,Q=L.alternate,Q===null?(L.childLanes=0,L.lanes=c,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=Q.childLanes,L.lanes=Q.lanes,L.child=Q.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=Q.memoizedProps,L.memoizedState=Q.memoizedState,L.updateQueue=Q.updateQueue,L.type=Q.type,c=Q.dependencies,L.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),b=b.sibling;return Un(ir,ir.current&1|2),f.child}c=c.sibling}L.tail!==null&&Ct()>is&&(f.flags|=128,E=!0,zc(L,!1),f.lanes=4194304)}else{if(!E)if(c=Qd(Q),c!==null){if(f.flags|=128,E=!0,b=c.updateQueue,b!==null&&(f.updateQueue=b,f.flags|=4),zc(L,!0),L.tail===null&&L.tailMode==="hidden"&&!Q.alternate&&!nr)return Wr(f),null}else 2*Ct()-L.renderingStartTime>is&&b!==1073741824&&(f.flags|=128,E=!0,zc(L,!1),f.lanes=4194304);L.isBackwards?(Q.sibling=f.child,f.child=Q):(b=L.last,b!==null?b.sibling=Q:f.child=Q,L.last=Q)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Ct(),f.sibling=null,b=ir.current,Un(ir,E?b&1|2:b&1),f):(Wr(f),null);case 22:case 23:return Xg(),E=f.memoizedState!==null,c!==null&&c.memoizedState!==null!==E&&(f.flags|=8192),E&&(f.mode&1)!==0?(xo&1073741824)!==0&&(Wr(f),f.subtreeFlags&6&&(f.flags|=8192)):Wr(f),null;case 24:return null;case 25:return null}throw Error(n(156,f.tag))}function LD(c,f){switch(ag(f),f.tag){case 1:return io(f.type)&&Ad(),c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 3:return ns(),Xn(ao),Xn(Hr),yg(),c=f.flags,(c&65536)!==0&&(c&128)===0?(f.flags=c&-65537|128,f):null;case 5:return gg(f),null;case 13:if(Xn(ir),c=f.memoizedState,c!==null&&c.dehydrated!==null){if(f.alternate===null)throw Error(n(340));Zl()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 19:return Xn(ir),null;case 4:return ns(),null;case 10:return dg(f.type._context),null;case 22:case 23:return Xg(),null;case 24:return null;default:return null}}var lf=!1,Kr=!1,FD=typeof WeakSet=="function"?WeakSet:Set,zt=null;function os(c,f){var b=c.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(E){cr(c,f,E)}else b.current=null}function Lg(c,f,b){try{b()}catch(E){cr(c,f,E)}}var Sw=!1;function AD(c,f){if(Xp=Od,c=JS(),Hp(c)){if("selectionStart"in c)var b={start:c.selectionStart,end:c.selectionEnd};else e:{b=(b=c.ownerDocument)&&b.defaultView||window;var E=b.getSelection&&b.getSelection();if(E&&E.rangeCount!==0){b=E.anchorNode;var M=E.anchorOffset,L=E.focusNode;E=E.focusOffset;try{b.nodeType,L.nodeType}catch{b=null;break e}var Q=0,ge=-1,$e=-1,Ue=0,lt=0,dt=c,at=null;t:for(;;){for(var _t;dt!==b||M!==0&&dt.nodeType!==3||(ge=Q+M),dt!==L||E!==0&&dt.nodeType!==3||($e=Q+E),dt.nodeType===3&&(Q+=dt.nodeValue.length),(_t=dt.firstChild)!==null;)at=dt,dt=_t;for(;;){if(dt===c)break t;if(at===b&&++Ue===M&&(ge=Q),at===L&&++lt===E&&($e=Q),(_t=dt.nextSibling)!==null)break;dt=at,at=dt.parentNode}dt=_t}b=ge===-1||$e===-1?null:{start:ge,end:$e}}else b=null}b=b||{start:0,end:0}}else b=null;for(Qp={focusedElem:c,selectionRange:b},Od=!1,zt=f;zt!==null;)if(f=zt,c=f.child,(f.subtreeFlags&1028)!==0&&c!==null)c.return=f,zt=c;else for(;zt!==null;){f=zt;try{var At=f.alternate;if((f.flags&1024)!==0)switch(f.tag){case 0:case 11:case 15:break;case 1:if(At!==null){var Ht=At.memoizedProps,ur=At.memoizedState,ze=f.stateNode,Ie=ze.getSnapshotBeforeUpdate(f.elementType===f.type?Ht:ia(f.type,Ht),ur);ze.__reactInternalSnapshotBeforeUpdate=Ie}break;case 3:var Ae=f.stateNode.containerInfo;Ae.nodeType===1?Ae.textContent="":Ae.nodeType===9&&Ae.documentElement&&Ae.removeChild(Ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(pt){cr(f,f.return,pt)}if(c=f.sibling,c!==null){c.return=f.return,zt=c;break}zt=f.return}return At=Sw,Sw=!1,At}function Lc(c,f,b){var E=f.updateQueue;if(E=E!==null?E.lastEffect:null,E!==null){var M=E=E.next;do{if((M.tag&c)===c){var L=M.destroy;M.destroy=void 0,L!==void 0&&Lg(f,b,L)}M=M.next}while(M!==E)}}function sf(c,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var b=f=f.next;do{if((b.tag&c)===c){var E=b.create;b.destroy=E()}b=b.next}while(b!==f)}}function Fg(c){var f=c.ref;if(f!==null){var b=c.stateNode;switch(c.tag){case 5:c=b;break;default:c=b}typeof f=="function"?f(c):f.current=c}}function xw(c){var f=c.alternate;f!==null&&(c.alternate=null,xw(f)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(f=c.stateNode,f!==null&&(delete f[Oa],delete f[Rc],delete f[tg],delete f[xD],delete f[wD])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function ww(c){return c.tag===5||c.tag===3||c.tag===4}function $w(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||ww(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function Ag(c,f,b){var E=c.tag;if(E===5||E===6)c=c.stateNode,f?b.nodeType===8?b.parentNode.insertBefore(c,f):b.insertBefore(c,f):(b.nodeType===8?(f=b.parentNode,f.insertBefore(c,b)):(f=b,f.appendChild(c)),b=b._reactRootContainer,b!=null||f.onclick!==null||(f.onclick=Ld));else if(E!==4&&(c=c.child,c!==null))for(Ag(c,f,b),c=c.sibling;c!==null;)Ag(c,f,b),c=c.sibling}function Bg(c,f,b){var E=c.tag;if(E===5||E===6)c=c.stateNode,f?b.insertBefore(c,f):b.appendChild(c);else if(E!==4&&(c=c.child,c!==null))for(Bg(c,f,b),c=c.sibling;c!==null;)Bg(c,f,b),c=c.sibling}var kr=null,la=!1;function fi(c,f,b){for(b=b.child;b!==null;)Ew(c,f,b),b=b.sibling}function Ew(c,f,b){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(Kt,b)}catch{}switch(b.tag){case 5:Kr||os(b,f);case 6:var E=kr,M=la;kr=null,fi(c,f,b),kr=E,la=M,kr!==null&&(la?(c=kr,b=b.stateNode,c.nodeType===8?c.parentNode.removeChild(b):c.removeChild(b)):kr.removeChild(b.stateNode));break;case 18:kr!==null&&(la?(c=kr,b=b.stateNode,c.nodeType===8?eg(c.parentNode,b):c.nodeType===1&&eg(c,b),Ea(c)):eg(kr,b.stateNode));break;case 4:E=kr,M=la,kr=b.stateNode.containerInfo,la=!0,fi(c,f,b),kr=E,la=M;break;case 0:case 11:case 14:case 15:if(!Kr&&(E=b.updateQueue,E!==null&&(E=E.lastEffect,E!==null))){M=E=E.next;do{var L=M,Q=L.destroy;L=L.tag,Q!==void 0&&((L&2)!==0||(L&4)!==0)&&Lg(b,f,Q),M=M.next}while(M!==E)}fi(c,f,b);break;case 1:if(!Kr&&(os(b,f),E=b.stateNode,typeof E.componentWillUnmount=="function"))try{E.props=b.memoizedProps,E.state=b.memoizedState,E.componentWillUnmount()}catch(ge){cr(b,f,ge)}fi(c,f,b);break;case 21:fi(c,f,b);break;case 22:b.mode&1?(Kr=(E=Kr)||b.memoizedState!==null,fi(c,f,b),Kr=E):fi(c,f,b);break;default:fi(c,f,b)}}function Ow(c){var f=c.updateQueue;if(f!==null){c.updateQueue=null;var b=c.stateNode;b===null&&(b=c.stateNode=new FD),f.forEach(function(E){var M=GD.bind(null,c,E);b.has(E)||(b.add(E),E.then(M,M))})}}function sa(c,f){var b=f.deletions;if(b!==null)for(var E=0;E<b.length;E++){var M=b[E];try{var L=c,Q=f,ge=Q;e:for(;ge!==null;){switch(ge.tag){case 5:kr=ge.stateNode,la=!1;break e;case 3:kr=ge.stateNode.containerInfo,la=!0;break e;case 4:kr=ge.stateNode.containerInfo,la=!0;break e}ge=ge.return}if(kr===null)throw Error(n(160));Ew(L,Q,M),kr=null,la=!1;var $e=M.alternate;$e!==null&&($e.return=null),M.return=null}catch(Ue){cr(M,f,Ue)}}if(f.subtreeFlags&12854)for(f=f.child;f!==null;)Rw(f,c),f=f.sibling}function Rw(c,f){var b=c.alternate,E=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(sa(f,c),Pa(c),E&4){try{Lc(3,c,c.return),sf(3,c)}catch(Ht){cr(c,c.return,Ht)}try{Lc(5,c,c.return)}catch(Ht){cr(c,c.return,Ht)}}break;case 1:sa(f,c),Pa(c),E&512&&b!==null&&os(b,b.return);break;case 5:if(sa(f,c),Pa(c),E&512&&b!==null&&os(b,b.return),c.flags&32){var M=c.stateNode;try{Ze(M,"")}catch(Ht){cr(c,c.return,Ht)}}if(E&4&&(M=c.stateNode,M!=null)){var L=c.memoizedProps,Q=b!==null?b.memoizedProps:L,ge=c.type,$e=c.updateQueue;if(c.updateQueue=null,$e!==null)try{ge==="input"&&L.type==="radio"&&L.name!=null&&se(M,L),we(ge,Q);var Ue=we(ge,L);for(Q=0;Q<$e.length;Q+=2){var lt=$e[Q],dt=$e[Q+1];lt==="style"?ye(M,dt):lt==="dangerouslySetInnerHTML"?We(M,dt):lt==="children"?Ze(M,dt):w(M,lt,dt,Ue)}switch(ge){case"input":he(M,L);break;case"textarea":Ee(M,L);break;case"select":var at=M._wrapperState.wasMultiple;M._wrapperState.wasMultiple=!!L.multiple;var _t=L.value;_t!=null?Ce(M,!!L.multiple,_t,!1):at!==!!L.multiple&&(L.defaultValue!=null?Ce(M,!!L.multiple,L.defaultValue,!0):Ce(M,!!L.multiple,L.multiple?[]:"",!1))}M[Rc]=L}catch(Ht){cr(c,c.return,Ht)}}break;case 6:if(sa(f,c),Pa(c),E&4){if(c.stateNode===null)throw Error(n(162));M=c.stateNode,L=c.memoizedProps;try{M.nodeValue=L}catch(Ht){cr(c,c.return,Ht)}}break;case 3:if(sa(f,c),Pa(c),E&4&&b!==null&&b.memoizedState.isDehydrated)try{Ea(f.containerInfo)}catch(Ht){cr(c,c.return,Ht)}break;case 4:sa(f,c),Pa(c);break;case 13:sa(f,c),Pa(c),M=c.child,M.flags&8192&&(L=M.memoizedState!==null,M.stateNode.isHidden=L,!L||M.alternate!==null&&M.alternate.memoizedState!==null||(Wg=Ct())),E&4&&Ow(c);break;case 22:if(lt=b!==null&&b.memoizedState!==null,c.mode&1?(Kr=(Ue=Kr)||lt,sa(f,c),Kr=Ue):sa(f,c),Pa(c),E&8192){if(Ue=c.memoizedState!==null,(c.stateNode.isHidden=Ue)&&!lt&&(c.mode&1)!==0)for(zt=c,lt=c.child;lt!==null;){for(dt=zt=lt;zt!==null;){switch(at=zt,_t=at.child,at.tag){case 0:case 11:case 14:case 15:Lc(4,at,at.return);break;case 1:os(at,at.return);var At=at.stateNode;if(typeof At.componentWillUnmount=="function"){E=at,b=at.return;try{f=E,At.props=f.memoizedProps,At.state=f.memoizedState,At.componentWillUnmount()}catch(Ht){cr(E,b,Ht)}}break;case 5:os(at,at.return);break;case 22:if(at.memoizedState!==null){Nw(dt);continue}}_t!==null?(_t.return=at,zt=_t):Nw(dt)}lt=lt.sibling}e:for(lt=null,dt=c;;){if(dt.tag===5){if(lt===null){lt=dt;try{M=dt.stateNode,Ue?(L=M.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(ge=dt.stateNode,$e=dt.memoizedProps.style,Q=$e!=null&&$e.hasOwnProperty("display")?$e.display:null,ge.style.display=qe("display",Q))}catch(Ht){cr(c,c.return,Ht)}}}else if(dt.tag===6){if(lt===null)try{dt.stateNode.nodeValue=Ue?"":dt.memoizedProps}catch(Ht){cr(c,c.return,Ht)}}else if((dt.tag!==22&&dt.tag!==23||dt.memoizedState===null||dt===c)&&dt.child!==null){dt.child.return=dt,dt=dt.child;continue}if(dt===c)break e;for(;dt.sibling===null;){if(dt.return===null||dt.return===c)break e;lt===dt&&(lt=null),dt=dt.return}lt===dt&&(lt=null),dt.sibling.return=dt.return,dt=dt.sibling}}break;case 19:sa(f,c),Pa(c),E&4&&Ow(c);break;case 21:break;default:sa(f,c),Pa(c)}}function Pa(c){var f=c.flags;if(f&2){try{e:{for(var b=c.return;b!==null;){if(ww(b)){var E=b;break e}b=b.return}throw Error(n(160))}switch(E.tag){case 5:var M=E.stateNode;E.flags&32&&(Ze(M,""),E.flags&=-33);var L=$w(c);Bg(c,L,M);break;case 3:case 4:var Q=E.stateNode.containerInfo,ge=$w(c);Ag(c,ge,Q);break;default:throw Error(n(161))}}catch($e){cr(c,c.return,$e)}c.flags&=-3}f&4096&&(c.flags&=-4097)}function BD(c,f,b){zt=c,Iw(c)}function Iw(c,f,b){for(var E=(c.mode&1)!==0;zt!==null;){var M=zt,L=M.child;if(M.tag===22&&E){var Q=M.memoizedState!==null||lf;if(!Q){var ge=M.alternate,$e=ge!==null&&ge.memoizedState!==null||Kr;ge=lf;var Ue=Kr;if(lf=Q,(Kr=$e)&&!Ue)for(zt=M;zt!==null;)Q=zt,$e=Q.child,Q.tag===22&&Q.memoizedState!==null?Mw(M):$e!==null?($e.return=Q,zt=$e):Mw(M);for(;L!==null;)zt=L,Iw(L),L=L.sibling;zt=M,lf=ge,Kr=Ue}Pw(c)}else(M.subtreeFlags&8772)!==0&&L!==null?(L.return=M,zt=L):Pw(c)}}function Pw(c){for(;zt!==null;){var f=zt;if((f.flags&8772)!==0){var b=f.alternate;try{if((f.flags&8772)!==0)switch(f.tag){case 0:case 11:case 15:Kr||sf(5,f);break;case 1:var E=f.stateNode;if(f.flags&4&&!Kr)if(b===null)E.componentDidMount();else{var M=f.elementType===f.type?b.memoizedProps:ia(f.type,b.memoizedProps);E.componentDidUpdate(M,b.memoizedState,E.__reactInternalSnapshotBeforeUpdate)}var L=f.updateQueue;L!==null&&Nx(f,L,E);break;case 3:var Q=f.updateQueue;if(Q!==null){if(b=null,f.child!==null)switch(f.child.tag){case 5:b=f.child.stateNode;break;case 1:b=f.child.stateNode}Nx(f,Q,b)}break;case 5:var ge=f.stateNode;if(b===null&&f.flags&4){b=ge;var $e=f.memoizedProps;switch(f.type){case"button":case"input":case"select":case"textarea":$e.autoFocus&&b.focus();break;case"img":$e.src&&(b.src=$e.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(f.memoizedState===null){var Ue=f.alternate;if(Ue!==null){var lt=Ue.memoizedState;if(lt!==null){var dt=lt.dehydrated;dt!==null&&Ea(dt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Kr||f.flags&512&&Fg(f)}catch(at){cr(f,f.return,at)}}if(f===c){zt=null;break}if(b=f.sibling,b!==null){b.return=f.return,zt=b;break}zt=f.return}}function Nw(c){for(;zt!==null;){var f=zt;if(f===c){zt=null;break}var b=f.sibling;if(b!==null){b.return=f.return,zt=b;break}zt=f.return}}function Mw(c){for(;zt!==null;){var f=zt;try{switch(f.tag){case 0:case 11:case 15:var b=f.return;try{sf(4,f)}catch($e){cr(f,b,$e)}break;case 1:var E=f.stateNode;if(typeof E.componentDidMount=="function"){var M=f.return;try{E.componentDidMount()}catch($e){cr(f,M,$e)}}var L=f.return;try{Fg(f)}catch($e){cr(f,L,$e)}break;case 5:var Q=f.return;try{Fg(f)}catch($e){cr(f,Q,$e)}}}catch($e){cr(f,f.return,$e)}if(f===c){zt=null;break}var ge=f.sibling;if(ge!==null){ge.return=f.return,zt=ge;break}zt=f.return}}var HD=Math.ceil,cf=R.ReactCurrentDispatcher,Hg=R.ReactCurrentOwner,Ao=R.ReactCurrentBatchConfig,Nn=0,Ir=null,hr=null,zr=0,xo=0,as=li(0),Sr=0,Fc=null,nl=0,uf=0,Vg=0,Ac=null,so=null,Wg=0,is=1/0,Ua=null,df=!1,Kg=null,mi=null,ff=!1,vi=null,mf=0,Bc=0,Ug=null,vf=-1,pf=0;function Zr(){return(Nn&6)!==0?Ct():vf!==-1?vf:vf=Ct()}function pi(c){return(c.mode&1)===0?1:(Nn&2)!==0&&zr!==0?zr&-zr:ED.transition!==null?(pf===0&&(pf=xt()),pf):(c=Zt,c!==0||(c=window.event,c=c===void 0?16:_S(c.type)),c)}function ca(c,f,b,E){if(50<Bc)throw Bc=0,Ug=null,Error(n(185));en(c,b,E),((Nn&2)===0||c!==Ir)&&(c===Ir&&((Nn&2)===0&&(uf|=b),Sr===4&&gi(c,zr)),co(c,E),b===1&&Nn===0&&(f.mode&1)===0&&(is=Ct()+500,Hd&&ci()))}function co(c,f){var b=c.callbackNode;$t(c,f);var E=mn(c,c===Ir?zr:0);if(E===0)b!==null&&ct(b),c.callbackNode=null,c.callbackPriority=0;else if(f=E&-E,c.callbackPriority!==f){if(b!=null&&ct(b),f===1)c.tag===0?$D(_w.bind(null,c)):yx(_w.bind(null,c)),CD(function(){(Nn&6)===0&&ci()}),b=null;else{switch(Jn(E)){case 1:b=pn;break;case 4:b=On;break;case 16:b=Ut;break;case 536870912:b=Mt;break;default:b=Ut}b=Bw(b,Tw.bind(null,c))}c.callbackPriority=f,c.callbackNode=b}}function Tw(c,f){if(vf=-1,pf=0,(Nn&6)!==0)throw Error(n(327));var b=c.callbackNode;if(ls()&&c.callbackNode!==b)return null;var E=mn(c,c===Ir?zr:0);if(E===0)return null;if((E&30)!==0||(E&c.expiredLanes)!==0||f)f=gf(c,E);else{f=E;var M=Nn;Nn|=2;var L=jw();(Ir!==c||zr!==f)&&(Ua=null,is=Ct()+500,ol(c,f));do try{KD();break}catch(ge){Dw(c,ge)}while(!0);ug(),cf.current=L,Nn=M,hr!==null?f=0:(Ir=null,zr=0,f=Sr)}if(f!==0){if(f===2&&(M=un(c),M!==0&&(E=M,f=qg(c,M))),f===1)throw b=Fc,ol(c,0),gi(c,E),co(c,Ct()),b;if(f===6)gi(c,E);else{if(M=c.current.alternate,(E&30)===0&&!VD(M)&&(f=gf(c,E),f===2&&(L=un(c),L!==0&&(E=L,f=qg(c,L))),f===1))throw b=Fc,ol(c,0),gi(c,E),co(c,Ct()),b;switch(c.finishedWork=M,c.finishedLanes=E,f){case 0:case 1:throw Error(n(345));case 2:al(c,so,Ua);break;case 3:if(gi(c,E),(E&130023424)===E&&(f=Wg+500-Ct(),10<f)){if(mn(c,0)!==0)break;if(M=c.suspendedLanes,(M&E)!==E){Zr(),c.pingedLanes|=c.suspendedLanes&M;break}c.timeoutHandle=Jp(al.bind(null,c,so,Ua),f);break}al(c,so,Ua);break;case 4:if(gi(c,E),(E&4194240)===E)break;for(f=c.eventTimes,M=-1;0<E;){var Q=31-Pn(E);L=1<<Q,Q=f[Q],Q>M&&(M=Q),E&=~L}if(E=M,E=Ct()-E,E=(120>E?120:480>E?480:1080>E?1080:1920>E?1920:3e3>E?3e3:4320>E?4320:1960*HD(E/1960))-E,10<E){c.timeoutHandle=Jp(al.bind(null,c,so,Ua),E);break}al(c,so,Ua);break;case 5:al(c,so,Ua);break;default:throw Error(n(329))}}}return co(c,Ct()),c.callbackNode===b?Tw.bind(null,c):null}function qg(c,f){var b=Ac;return c.current.memoizedState.isDehydrated&&(ol(c,f).flags|=256),c=gf(c,f),c!==2&&(f=so,so=b,f!==null&&Yg(f)),c}function Yg(c){so===null?so=c:so.push.apply(so,c)}function VD(c){for(var f=c;;){if(f.flags&16384){var b=f.updateQueue;if(b!==null&&(b=b.stores,b!==null))for(var E=0;E<b.length;E++){var M=b[E],L=M.getSnapshot;M=M.value;try{if(!oa(L(),M))return!1}catch{return!1}}}if(b=f.child,f.subtreeFlags&16384&&b!==null)b.return=f,f=b;else{if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function gi(c,f){for(f&=~Vg,f&=~uf,c.suspendedLanes|=f,c.pingedLanes&=~f,c=c.expirationTimes;0<f;){var b=31-Pn(f),E=1<<b;c[b]=-1,f&=~E}}function _w(c){if((Nn&6)!==0)throw Error(n(327));ls();var f=mn(c,0);if((f&1)===0)return co(c,Ct()),null;var b=gf(c,f);if(c.tag!==0&&b===2){var E=un(c);E!==0&&(f=E,b=qg(c,E))}if(b===1)throw b=Fc,ol(c,0),gi(c,f),co(c,Ct()),b;if(b===6)throw Error(n(345));return c.finishedWork=c.current.alternate,c.finishedLanes=f,al(c,so,Ua),co(c,Ct()),null}function Gg(c,f){var b=Nn;Nn|=1;try{return c(f)}finally{Nn=b,Nn===0&&(is=Ct()+500,Hd&&ci())}}function rl(c){vi!==null&&vi.tag===0&&(Nn&6)===0&&ls();var f=Nn;Nn|=1;var b=Ao.transition,E=Zt;try{if(Ao.transition=null,Zt=1,c)return c()}finally{Zt=E,Ao.transition=b,Nn=f,(Nn&6)===0&&ci()}}function Xg(){xo=as.current,Xn(as)}function ol(c,f){c.finishedWork=null,c.finishedLanes=0;var b=c.timeoutHandle;if(b!==-1&&(c.timeoutHandle=-1,bD(b)),hr!==null)for(b=hr.return;b!==null;){var E=b;switch(ag(E),E.tag){case 1:E=E.type.childContextTypes,E!=null&&Ad();break;case 3:ns(),Xn(ao),Xn(Hr),yg();break;case 5:gg(E);break;case 4:ns();break;case 13:Xn(ir);break;case 19:Xn(ir);break;case 10:dg(E.type._context);break;case 22:case 23:Xg()}b=b.return}if(Ir=c,hr=c=hi(c.current,null),zr=xo=f,Sr=0,Fc=null,Vg=uf=nl=0,so=Ac=null,Ji!==null){for(f=0;f<Ji.length;f++)if(b=Ji[f],E=b.interleaved,E!==null){b.interleaved=null;var M=E.next,L=b.pending;if(L!==null){var Q=L.next;L.next=M,E.next=Q}b.pending=E}Ji=null}return c}function Dw(c,f){do{var b=hr;try{if(ug(),Zd.current=nf,Jd){for(var E=lr.memoizedState;E!==null;){var M=E.queue;M!==null&&(M.pending=null),E=E.next}Jd=!1}if(tl=0,Rr=Cr=lr=null,_c=!1,Dc=0,Hg.current=null,b===null||b.return===null){Sr=1,Fc=f,hr=null;break}e:{var L=c,Q=b.return,ge=b,$e=f;if(f=zr,ge.flags|=32768,$e!==null&&typeof $e=="object"&&typeof $e.then=="function"){var Ue=$e,lt=ge,dt=lt.tag;if((lt.mode&1)===0&&(dt===0||dt===11||dt===15)){var at=lt.alternate;at?(lt.updateQueue=at.updateQueue,lt.memoizedState=at.memoizedState,lt.lanes=at.lanes):(lt.updateQueue=null,lt.memoizedState=null)}var _t=aw(Q);if(_t!==null){_t.flags&=-257,iw(_t,Q,ge,L,f),_t.mode&1&&ow(L,Ue,f),f=_t,$e=Ue;var At=f.updateQueue;if(At===null){var Ht=new Set;Ht.add($e),f.updateQueue=Ht}else At.add($e);break e}else{if((f&1)===0){ow(L,Ue,f),Qg();break e}$e=Error(n(426))}}else if(nr&&ge.mode&1){var ur=aw(Q);if(ur!==null){(ur.flags&65536)===0&&(ur.flags|=256),iw(ur,Q,ge,L,f),sg(rs($e,ge));break e}}L=$e=rs($e,ge),Sr!==4&&(Sr=2),Ac===null?Ac=[L]:Ac.push(L),L=Q;do{switch(L.tag){case 3:L.flags|=65536,f&=-f,L.lanes|=f;var ze=nw(L,$e,f);Px(L,ze);break e;case 1:ge=$e;var Ie=L.type,Ae=L.stateNode;if((L.flags&128)===0&&(typeof Ie.getDerivedStateFromError=="function"||Ae!==null&&typeof Ae.componentDidCatch=="function"&&(mi===null||!mi.has(Ae)))){L.flags|=65536,f&=-f,L.lanes|=f;var pt=rw(L,ge,f);Px(L,pt);break e}}L=L.return}while(L!==null)}zw(b)}catch(Vt){f=Vt,hr===b&&b!==null&&(hr=b=b.return);continue}break}while(!0)}function jw(){var c=cf.current;return cf.current=nf,c===null?nf:c}function Qg(){(Sr===0||Sr===3||Sr===2)&&(Sr=4),Ir===null||(nl&268435455)===0&&(uf&268435455)===0||gi(Ir,zr)}function gf(c,f){var b=Nn;Nn|=2;var E=jw();(Ir!==c||zr!==f)&&(Ua=null,ol(c,f));do try{WD();break}catch(M){Dw(c,M)}while(!0);if(ug(),Nn=b,cf.current=E,hr!==null)throw Error(n(261));return Ir=null,zr=0,Sr}function WD(){for(;hr!==null;)kw(hr)}function KD(){for(;hr!==null&&!ut();)kw(hr)}function kw(c){var f=Aw(c.alternate,c,xo);c.memoizedProps=c.pendingProps,f===null?zw(c):hr=f,Hg.current=null}function zw(c){var f=c;do{var b=f.alternate;if(c=f.return,(f.flags&32768)===0){if(b=zD(b,f,xo),b!==null){hr=b;return}}else{if(b=LD(b,f),b!==null){b.flags&=32767,hr=b;return}if(c!==null)c.flags|=32768,c.subtreeFlags=0,c.deletions=null;else{Sr=6,hr=null;return}}if(f=f.sibling,f!==null){hr=f;return}hr=f=c}while(f!==null);Sr===0&&(Sr=5)}function al(c,f,b){var E=Zt,M=Ao.transition;try{Ao.transition=null,Zt=1,UD(c,f,b,E)}finally{Ao.transition=M,Zt=E}return null}function UD(c,f,b,E){do ls();while(vi!==null);if((Nn&6)!==0)throw Error(n(327));b=c.finishedWork;var M=c.finishedLanes;if(b===null)return null;if(c.finishedWork=null,c.finishedLanes=0,b===c.current)throw Error(n(177));c.callbackNode=null,c.callbackPriority=0;var L=b.lanes|b.childLanes;if(_n(c,L),c===Ir&&(hr=Ir=null,zr=0),(b.subtreeFlags&2064)===0&&(b.flags&2064)===0||ff||(ff=!0,Bw(Ut,function(){return ls(),null})),L=(b.flags&15990)!==0,(b.subtreeFlags&15990)!==0||L){L=Ao.transition,Ao.transition=null;var Q=Zt;Zt=1;var ge=Nn;Nn|=4,Hg.current=null,AD(c,b),Rw(b,c),fD(Qp),Od=!!Xp,Qp=Xp=null,c.current=b,BD(b),Tt(),Nn=ge,Zt=Q,Ao.transition=L}else c.current=b;if(ff&&(ff=!1,vi=c,mf=M),L=c.pendingLanes,L===0&&(mi=null),on(b.stateNode),co(c,Ct()),f!==null)for(E=c.onRecoverableError,b=0;b<f.length;b++)M=f[b],E(M.value,{componentStack:M.stack,digest:M.digest});if(df)throw df=!1,c=Kg,Kg=null,c;return(mf&1)!==0&&c.tag!==0&&ls(),L=c.pendingLanes,(L&1)!==0?c===Ug?Bc++:(Bc=0,Ug=c):Bc=0,ci(),null}function ls(){if(vi!==null){var c=Jn(mf),f=Ao.transition,b=Zt;try{if(Ao.transition=null,Zt=16>c?16:c,vi===null)var E=!1;else{if(c=vi,vi=null,mf=0,(Nn&6)!==0)throw Error(n(331));var M=Nn;for(Nn|=4,zt=c.current;zt!==null;){var L=zt,Q=L.child;if((zt.flags&16)!==0){var ge=L.deletions;if(ge!==null){for(var $e=0;$e<ge.length;$e++){var Ue=ge[$e];for(zt=Ue;zt!==null;){var lt=zt;switch(lt.tag){case 0:case 11:case 15:Lc(8,lt,L)}var dt=lt.child;if(dt!==null)dt.return=lt,zt=dt;else for(;zt!==null;){lt=zt;var at=lt.sibling,_t=lt.return;if(xw(lt),lt===Ue){zt=null;break}if(at!==null){at.return=_t,zt=at;break}zt=_t}}}var At=L.alternate;if(At!==null){var Ht=At.child;if(Ht!==null){At.child=null;do{var ur=Ht.sibling;Ht.sibling=null,Ht=ur}while(Ht!==null)}}zt=L}}if((L.subtreeFlags&2064)!==0&&Q!==null)Q.return=L,zt=Q;else e:for(;zt!==null;){if(L=zt,(L.flags&2048)!==0)switch(L.tag){case 0:case 11:case 15:Lc(9,L,L.return)}var ze=L.sibling;if(ze!==null){ze.return=L.return,zt=ze;break e}zt=L.return}}var Ie=c.current;for(zt=Ie;zt!==null;){Q=zt;var Ae=Q.child;if((Q.subtreeFlags&2064)!==0&&Ae!==null)Ae.return=Q,zt=Ae;else e:for(Q=Ie;zt!==null;){if(ge=zt,(ge.flags&2048)!==0)try{switch(ge.tag){case 0:case 11:case 15:sf(9,ge)}}catch(Vt){cr(ge,ge.return,Vt)}if(ge===Q){zt=null;break e}var pt=ge.sibling;if(pt!==null){pt.return=ge.return,zt=pt;break e}zt=ge.return}}if(Nn=M,ci(),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(Kt,c)}catch{}E=!0}return E}finally{Zt=b,Ao.transition=f}}return!1}function Lw(c,f,b){f=rs(b,f),f=nw(c,f,1),c=di(c,f,1),f=Zr(),c!==null&&(en(c,1,f),co(c,f))}function cr(c,f,b){if(c.tag===3)Lw(c,c,b);else for(;f!==null;){if(f.tag===3){Lw(f,c,b);break}else if(f.tag===1){var E=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof E.componentDidCatch=="function"&&(mi===null||!mi.has(E))){c=rs(b,c),c=rw(f,c,1),f=di(f,c,1),c=Zr(),f!==null&&(en(f,1,c),co(f,c));break}}f=f.return}}function qD(c,f,b){var E=c.pingCache;E!==null&&E.delete(f),f=Zr(),c.pingedLanes|=c.suspendedLanes&b,Ir===c&&(zr&b)===b&&(Sr===4||Sr===3&&(zr&130023424)===zr&&500>Ct()-Wg?ol(c,0):Vg|=b),co(c,f)}function Fw(c,f){f===0&&((c.mode&1)===0?f=1:(f=Wn,Wn<<=1,(Wn&130023424)===0&&(Wn=4194304)));var b=Zr();c=Va(c,f),c!==null&&(en(c,f,b),co(c,b))}function YD(c){var f=c.memoizedState,b=0;f!==null&&(b=f.retryLane),Fw(c,b)}function GD(c,f){var b=0;switch(c.tag){case 13:var E=c.stateNode,M=c.memoizedState;M!==null&&(b=M.retryLane);break;case 19:E=c.stateNode;break;default:throw Error(n(314))}E!==null&&E.delete(f),Fw(c,b)}var Aw;Aw=function(c,f,b){if(c!==null)if(c.memoizedProps!==f.pendingProps||ao.current)lo=!0;else{if((c.lanes&b)===0&&(f.flags&128)===0)return lo=!1,kD(c,f,b);lo=(c.flags&131072)!==0}else lo=!1,nr&&(f.flags&1048576)!==0&&bx(f,Wd,f.index);switch(f.lanes=0,f.tag){case 2:var E=f.type;af(c,f),c=f.pendingProps;var M=Gl(f,Hr.current);ts(f,b),M=Sg(null,f,E,c,M,b);var L=xg();return f.flags|=1,typeof M=="object"&&M!==null&&typeof M.render=="function"&&M.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,io(E)?(L=!0,Bd(f)):L=!1,f.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,vg(f),M.updater=rf,f.stateNode=M,M._reactInternals=f,Ig(f,E,c,b),f=Tg(null,f,E,!0,L,b)):(f.tag=0,nr&&L&&og(f),Qr(null,f,M,b),f=f.child),f;case 16:E=f.elementType;e:{switch(af(c,f),c=f.pendingProps,M=E._init,E=M(E._payload),f.type=E,M=f.tag=QD(E),c=ia(E,c),M){case 0:f=Mg(null,f,E,c,b);break e;case 1:f=fw(null,f,E,c,b);break e;case 11:f=lw(null,f,E,c,b);break e;case 14:f=sw(null,f,E,ia(E.type,c),b);break e}throw Error(n(306,E,""))}return f;case 0:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),Mg(c,f,E,M,b);case 1:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),fw(c,f,E,M,b);case 3:e:{if(mw(f),c===null)throw Error(n(387));E=f.pendingProps,L=f.memoizedState,M=L.element,Ix(c,f),Xd(f,E,null,b);var Q=f.memoizedState;if(E=Q.element,L.isDehydrated)if(L={element:E,isDehydrated:!1,cache:Q.cache,pendingSuspenseBoundaries:Q.pendingSuspenseBoundaries,transitions:Q.transitions},f.updateQueue.baseState=L,f.memoizedState=L,f.flags&256){M=rs(Error(n(423)),f),f=vw(c,f,E,b,M);break e}else if(E!==M){M=rs(Error(n(424)),f),f=vw(c,f,E,b,M);break e}else for(So=ii(f.stateNode.containerInfo.firstChild),Co=f,nr=!0,aa=null,b=Ox(f,null,E,b),f.child=b;b;)b.flags=b.flags&-3|4096,b=b.sibling;else{if(Zl(),E===M){f=Ka(c,f,b);break e}Qr(c,f,E,b)}f=f.child}return f;case 5:return Mx(f),c===null&&lg(f),E=f.type,M=f.pendingProps,L=c!==null?c.memoizedProps:null,Q=M.children,Zp(E,M)?Q=null:L!==null&&Zp(E,L)&&(f.flags|=32),dw(c,f),Qr(c,f,Q,b),f.child;case 6:return c===null&&lg(f),null;case 13:return pw(c,f,b);case 4:return pg(f,f.stateNode.containerInfo),E=f.pendingProps,c===null?f.child=Jl(f,null,E,b):Qr(c,f,E,b),f.child;case 11:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),lw(c,f,E,M,b);case 7:return Qr(c,f,f.pendingProps,b),f.child;case 8:return Qr(c,f,f.pendingProps.children,b),f.child;case 12:return Qr(c,f,f.pendingProps.children,b),f.child;case 10:e:{if(E=f.type._context,M=f.pendingProps,L=f.memoizedProps,Q=M.value,Un(qd,E._currentValue),E._currentValue=Q,L!==null)if(oa(L.value,Q)){if(L.children===M.children&&!ao.current){f=Ka(c,f,b);break e}}else for(L=f.child,L!==null&&(L.return=f);L!==null;){var ge=L.dependencies;if(ge!==null){Q=L.child;for(var $e=ge.firstContext;$e!==null;){if($e.context===E){if(L.tag===1){$e=Wa(-1,b&-b),$e.tag=2;var Ue=L.updateQueue;if(Ue!==null){Ue=Ue.shared;var lt=Ue.pending;lt===null?$e.next=$e:($e.next=lt.next,lt.next=$e),Ue.pending=$e}}L.lanes|=b,$e=L.alternate,$e!==null&&($e.lanes|=b),fg(L.return,b,f),ge.lanes|=b;break}$e=$e.next}}else if(L.tag===10)Q=L.type===f.type?null:L.child;else if(L.tag===18){if(Q=L.return,Q===null)throw Error(n(341));Q.lanes|=b,ge=Q.alternate,ge!==null&&(ge.lanes|=b),fg(Q,b,f),Q=L.sibling}else Q=L.child;if(Q!==null)Q.return=L;else for(Q=L;Q!==null;){if(Q===f){Q=null;break}if(L=Q.sibling,L!==null){L.return=Q.return,Q=L;break}Q=Q.return}L=Q}Qr(c,f,M.children,b),f=f.child}return f;case 9:return M=f.type,E=f.pendingProps.children,ts(f,b),M=Lo(M),E=E(M),f.flags|=1,Qr(c,f,E,b),f.child;case 14:return E=f.type,M=ia(E,f.pendingProps),M=ia(E.type,M),sw(c,f,E,M,b);case 15:return cw(c,f,f.type,f.pendingProps,b);case 17:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),af(c,f),f.tag=1,io(E)?(c=!0,Bd(f)):c=!1,ts(f,b),ew(f,E,M),Ig(f,E,M,b),Tg(null,f,E,!0,c,b);case 19:return hw(c,f,b);case 22:return uw(c,f,b)}throw Error(n(156,f.tag))};function Bw(c,f){return Jt(c,f)}function XD(c,f,b,E){this.tag=c,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(c,f,b,E){return new XD(c,f,b,E)}function Zg(c){return c=c.prototype,!(!c||!c.isReactComponent)}function QD(c){if(typeof c=="function")return Zg(c)?1:0;if(c!=null){if(c=c.$$typeof,c===H)return 11;if(c===D)return 14}return 2}function hi(c,f){var b=c.alternate;return b===null?(b=Bo(c.tag,f,c.key,c.mode),b.elementType=c.elementType,b.type=c.type,b.stateNode=c.stateNode,b.alternate=c,c.alternate=b):(b.pendingProps=f,b.type=c.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=c.flags&14680064,b.childLanes=c.childLanes,b.lanes=c.lanes,b.child=c.child,b.memoizedProps=c.memoizedProps,b.memoizedState=c.memoizedState,b.updateQueue=c.updateQueue,f=c.dependencies,b.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},b.sibling=c.sibling,b.index=c.index,b.ref=c.ref,b}function hf(c,f,b,E,M,L){var Q=2;if(E=c,typeof c=="function")Zg(c)&&(Q=1);else if(typeof c=="string")Q=5;else e:switch(c){case I:return il(b.children,M,L,f);case N:Q=8,M|=8;break;case P:return c=Bo(12,b,f,M|2),c.elementType=P,c.lanes=L,c;case A:return c=Bo(13,b,f,M),c.elementType=A,c.lanes=L,c;case _:return c=Bo(19,b,f,M),c.elementType=_,c.lanes=L,c;case z:return yf(b,M,L,f);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case T:Q=10;break e;case k:Q=9;break e;case H:Q=11;break e;case D:Q=14;break e;case j:Q=16,E=null;break e}throw Error(n(130,c==null?c:typeof c,""))}return f=Bo(Q,b,f,M),f.elementType=c,f.type=E,f.lanes=L,f}function il(c,f,b,E){return c=Bo(7,c,E,f),c.lanes=b,c}function yf(c,f,b,E){return c=Bo(22,c,E,f),c.elementType=z,c.lanes=b,c.stateNode={isHidden:!1},c}function Jg(c,f,b){return c=Bo(6,c,null,f),c.lanes=b,c}function eh(c,f,b){return f=Bo(4,c.children!==null?c.children:[],c.key,f),f.lanes=b,f.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},f}function ZD(c,f,b,E,M){this.tag=f,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=St(0),this.expirationTimes=St(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.identifierPrefix=E,this.onRecoverableError=M,this.mutableSourceEagerHydrationData=null}function th(c,f,b,E,M,L,Q,ge,$e){return c=new ZD(c,f,b,ge,$e),f===1?(f=1,L===!0&&(f|=8)):f=0,L=Bo(3,null,null,f),c.current=L,L.stateNode=c,L.memoizedState={element:E,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},vg(L),c}function JD(c,f,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:E==null?null:""+E,children:c,containerInfo:f,implementation:b}}function Hw(c){if(!c)return si;c=c._reactInternals;e:{if(st(c)!==c||c.tag!==1)throw Error(n(170));var f=c;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(io(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(n(171))}if(c.tag===1){var b=c.type;if(io(b))return gx(c,b,f)}return f}function Vw(c,f,b,E,M,L,Q,ge,$e){return c=th(b,E,!0,c,M,L,Q,ge,$e),c.context=Hw(null),b=c.current,E=Zr(),M=pi(b),L=Wa(E,M),L.callback=f??null,di(b,L,M),c.current.lanes=M,en(c,M,E),co(c,E),c}function bf(c,f,b,E){var M=f.current,L=Zr(),Q=pi(M);return b=Hw(b),f.context===null?f.context=b:f.pendingContext=b,f=Wa(L,Q),f.payload={element:c},E=E===void 0?null:E,E!==null&&(f.callback=E),c=di(M,f,Q),c!==null&&(ca(c,M,Q,L),Gd(c,M,Q)),Q}function Cf(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return c.child.stateNode;default:return c.child.stateNode}}function Ww(c,f){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var b=c.retryLane;c.retryLane=b!==0&&b<f?b:f}}function nh(c,f){Ww(c,f),(c=c.alternate)&&Ww(c,f)}function ej(){return null}var Kw=typeof reportError=="function"?reportError:function(c){console.error(c)};function rh(c){this._internalRoot=c}Sf.prototype.render=rh.prototype.render=function(c){var f=this._internalRoot;if(f===null)throw Error(n(409));bf(c,f,null,null)},Sf.prototype.unmount=rh.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var f=c.containerInfo;rl(function(){bf(null,c,null,null)}),f[Fa]=null}};function Sf(c){this._internalRoot=c}Sf.prototype.unstable_scheduleHydration=function(c){if(c){var f=Ft();c={blockedOn:null,target:c,priority:f};for(var b=0;b<yo.length&&f!==0&&f<yo[b].priority;b++);yo.splice(b,0,c),b===0&&tr(c)}};function oh(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function xf(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11&&(c.nodeType!==8||c.nodeValue!==" react-mount-point-unstable "))}function Uw(){}function tj(c,f,b,E,M){if(M){if(typeof E=="function"){var L=E;E=function(){var Ue=Cf(Q);L.call(Ue)}}var Q=Vw(f,E,c,0,null,!1,!1,"",Uw);return c._reactRootContainer=Q,c[Fa]=Q.current,Ec(c.nodeType===8?c.parentNode:c),rl(),Q}for(;M=c.lastChild;)c.removeChild(M);if(typeof E=="function"){var ge=E;E=function(){var Ue=Cf($e);ge.call(Ue)}}var $e=th(c,0,!1,null,null,!1,!1,"",Uw);return c._reactRootContainer=$e,c[Fa]=$e.current,Ec(c.nodeType===8?c.parentNode:c),rl(function(){bf(f,$e,b,E)}),$e}function wf(c,f,b,E,M){var L=b._reactRootContainer;if(L){var Q=L;if(typeof M=="function"){var ge=M;M=function(){var $e=Cf(Q);ge.call($e)}}bf(f,Q,c,M)}else Q=tj(b,f,c,M,E);return Cf(Q)}sr=function(c){switch(c.tag){case 3:var f=c.stateNode;if(f.current.memoizedState.isDehydrated){var b=Zn(f.pendingLanes);b!==0&&(An(f,b|1),co(f,Ct()),(Nn&6)===0&&(is=Ct()+500,ci()))}break;case 13:rl(function(){var E=Va(c,1);if(E!==null){var M=Zr();ca(E,c,1,M)}}),nh(c,1)}},vt=function(c){if(c.tag===13){var f=Va(c,134217728);if(f!==null){var b=Zr();ca(f,c,134217728,b)}nh(c,134217728)}},it=function(c){if(c.tag===13){var f=pi(c),b=Va(c,f);if(b!==null){var E=Zr();ca(b,c,f,E)}nh(c,f)}},Ft=function(){return Zt},vn=function(c,f){var b=Zt;try{return Zt=c,f()}finally{Zt=b}},gt=function(c,f,b){switch(f){case"input":if(he(c,b),f=b.name,b.type==="radio"&&f!=null){for(b=c;b.parentNode;)b=b.parentNode;for(b=b.querySelectorAll("input[name="+JSON.stringify(""+f)+'][type="radio"]'),f=0;f<b.length;f++){var E=b[f];if(E!==c&&E.form===c.form){var M=Fd(E);if(!M)throw Error(n(90));ne(E),he(E,M)}}}break;case"textarea":Ee(c,b);break;case"select":f=b.value,f!=null&&Ce(c,!!b.multiple,f,!1)}},bt=Gg,mt=rl;var nj={usingClientEntryPoint:!1,Events:[Ic,ql,Fd,Wt,It,Gg]},Hc={findFiberByHostInstance:Gi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rj={bundleType:Hc.bundleType,version:Hc.version,rendererPackageName:Hc.rendererPackageName,rendererConfig:Hc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(c){return c=Pt(c),c===null?null:c.stateNode},findFiberByHostInstance:Hc.findFiberByHostInstance||ej,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 $f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$f.isDisabled&&$f.supportsFiber)try{Kt=$f.inject(rj),Cn=$f}catch{}}return uo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nj,uo.createPortal=function(c,f){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!oh(f))throw Error(n(200));return JD(c,f,null,b)},uo.createRoot=function(c,f){if(!oh(c))throw Error(n(299));var b=!1,E="",M=Kw;return f!=null&&(f.unstable_strictMode===!0&&(b=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onRecoverableError!==void 0&&(M=f.onRecoverableError)),f=th(c,1,!1,null,null,b,!1,E,M),c[Fa]=f.current,Ec(c.nodeType===8?c.parentNode:c),new rh(f)},uo.findDOMNode=function(c){if(c==null)return null;if(c.nodeType===1)return c;var f=c._reactInternals;if(f===void 0)throw typeof c.render=="function"?Error(n(188)):(c=Object.keys(c).join(","),Error(n(268,c)));return c=Pt(f),c=c===null?null:c.stateNode,c},uo.flushSync=function(c){return rl(c)},uo.hydrate=function(c,f,b){if(!xf(f))throw Error(n(200));return wf(null,c,f,!0,b)},uo.hydrateRoot=function(c,f,b){if(!oh(c))throw Error(n(405));var E=b!=null&&b.hydratedSources||null,M=!1,L="",Q=Kw;if(b!=null&&(b.unstable_strictMode===!0&&(M=!0),b.identifierPrefix!==void 0&&(L=b.identifierPrefix),b.onRecoverableError!==void 0&&(Q=b.onRecoverableError)),f=Vw(f,null,c,1,b??null,M,!1,L,Q),c[Fa]=f.current,Ec(c),E)for(c=0;c<E.length;c++)b=E[c],M=b._getVersion,M=M(b._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[b,M]:f.mutableSourceEagerHydrationData.push(b,M);return new Sf(f)},uo.render=function(c,f,b){if(!xf(f))throw Error(n(200));return wf(null,c,f,!1,b)},uo.unmountComponentAtNode=function(c){if(!xf(c))throw Error(n(40));return c._reactRootContainer?(rl(function(){wf(null,null,c,!1,function(){c._reactRootContainer=null,c[Fa]=null})}),!0):!1},uo.unstable_batchedUpdates=Gg,uo.unstable_renderSubtreeIntoContainer=function(c,f,b,E){if(!xf(b))throw Error(n(200));if(c==null||c._reactInternals===void 0)throw Error(n(38));return wf(c,f,b,!1,E)},uo.version="18.3.1-next-f1338f8080-20240426",uo}var e1;function lR(){if(e1)return lh.exports;e1=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(),lh.exports=fj(),lh.exports}var t1;function mj(){if(t1)return Ef;t1=1;var e=lR();return Ef.createRoot=e.createRoot,Ef.hydrateRoot=e.hydrateRoot,Ef}var vj=mj(),uh={exports:{}},dh={};/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n1;function pj(){if(n1)return dh;n1=1;var e=uv();function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return dh.useSyncExternalStoreWithSelector=function(u,d,m,v,p){var y=o(null);if(y.current===null){var h={hasValue:!1,value:null};y.current=h}else h=y.current;y=i(function(){function g($){if(!S){if(S=!0,x=$,$=v($),p!==void 0&&h.hasValue){var O=h.value;if(p(O,$))return w=O}return w=$}if(O=w,n(x,$))return O;var I=v($);return p!==void 0&&p(O,I)?(x=$,O):(x=$,w=I)}var S=!1,x,w,R=m===void 0?null:m;return[function(){return g(d())},R===null?void 0:function(){return g(R())}]},[d,m,v,p]);var C=r(u,y[0],y[1]);return a(function(){h.hasValue=!0,h.value=C},[C]),s(C),C},dh}var r1;function gj(){return r1||(r1=1,uh.exports=pj()),uh.exports}var hj=gj();function yj(e){e()}function bj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){yj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var o1={notify(){},get:()=>[]};function Cj(e,t){let n,r=o1,o=0,a=!1;function i(C){m();const g=r.subscribe(C);let S=!1;return()=>{S||(S=!0,g(),v())}}function s(){r.notify()}function u(){h.onStateChange&&h.onStateChange()}function d(){return a}function m(){o++,n||(n=e.subscribe(u),r=bj())}function v(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=o1)}function p(){a||(a=!0,m())}function y(){a&&(a=!1,v())}const h={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:d,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>r};return h}var Sj=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xj=Sj(),wj=()=>typeof navigator<"u"&&navigator.product==="ReactNative",$j=wj(),Ej=()=>xj||$j?l.useLayoutEffect:l.useEffect,Oj=Ej(),fh=Symbol.for("react-redux-context"),mh=typeof globalThis<"u"?globalThis:{};function Rj(){if(!l.createContext)return{};const e=mh[fh]??(mh[fh]=new Map);let t=e.get(l.createContext);return t||(t=l.createContext(null),e.set(l.createContext,t)),t}var _i=Rj();function Ij(e){const{children:t,context:n,serverState:r,store:o}=e,a=l.useMemo(()=>{const u=Cj(o);return{store:o,subscription:u,getServerState:r?()=>r:void 0}},[o,r]),i=l.useMemo(()=>o.getState(),[o]);Oj(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,i]);const s=n||_i;return l.createElement(s.Provider,{value:a},t)}var Pj=Ij;function Wb(e=_i){return function(){return l.useContext(e)}}var sR=Wb();function cR(e=_i){const t=e===_i?sR:Wb(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Nj=cR();function Mj(e=_i){const t=e===_i?Nj:cR(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var uR=Mj(),Tj=(e,t)=>e===t;function _j(e=_i){const t=e===_i?sR:Wb(e),n=(r,o={})=>{const{equalityFn:a=Tj}=typeof o=="function"?{equalityFn:o}:o,i=t(),{store:s,subscription:u,getServerState:d}=i;l.useRef(!0);const m=l.useCallback({[r.name](p){return r(p)}}[r.name],[r]),v=hj.useSyncExternalStoreWithSelector(u.addNestedSub,s.getState,d||s.getState,m,a);return l.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var Xo=_j(),Wc={},a1;function Dj(){if(a1)return Wc;a1=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.parse=i,Wc.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function i(p,y){const h=new a,C=p.length;if(C<2)return h;const g=(y==null?void 0:y.decode)||m;let S=0;do{const x=p.indexOf("=",S);if(x===-1)break;const w=p.indexOf(";",S),R=w===-1?C:w;if(x>R){S=p.lastIndexOf(";",x-1)+1;continue}const $=s(p,S,x),O=u(p,x,$),I=p.slice($,O);if(h[I]===void 0){let N=s(p,x+1,R),P=u(p,R,N);const T=g(p.slice(N,P));h[I]=T}S=R+1}while(S<C);return h}function s(p,y,h){do{const C=p.charCodeAt(y);if(C!==32&&C!==9)return y}while(++y<h);return h}function u(p,y,h){for(;y>h;){const C=p.charCodeAt(--y);if(C!==32&&C!==9)return y+1}return h}function d(p,y,h){const C=(h==null?void 0:h.encode)||encodeURIComponent;if(!e.test(p))throw new TypeError(`argument name is invalid: ${p}`);const g=C(y);if(!t.test(g))throw new TypeError(`argument val is invalid: ${y}`);let S=p+"="+g;if(!h)return S;if(h.maxAge!==void 0){if(!Number.isInteger(h.maxAge))throw new TypeError(`option maxAge is invalid: ${h.maxAge}`);S+="; Max-Age="+h.maxAge}if(h.domain){if(!n.test(h.domain))throw new TypeError(`option domain is invalid: ${h.domain}`);S+="; Domain="+h.domain}if(h.path){if(!r.test(h.path))throw new TypeError(`option path is invalid: ${h.path}`);S+="; Path="+h.path}if(h.expires){if(!v(h.expires)||!Number.isFinite(h.expires.valueOf()))throw new TypeError(`option expires is invalid: ${h.expires}`);S+="; Expires="+h.expires.toUTCString()}if(h.httpOnly&&(S+="; HttpOnly"),h.secure&&(S+="; Secure"),h.partitioned&&(S+="; Partitioned"),h.priority)switch(typeof h.priority=="string"?h.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${h.priority}`)}if(h.sameSite)switch(typeof h.sameSite=="string"?h.sameSite.toLowerCase():h.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${h.sameSite}`)}return S}function m(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function v(p){return o.call(p)==="[object Date]"}return Wc}Dj();/**
* react-router v7.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var dR=e=>{throw TypeError(e)},jj=(e,t,n)=>t.has(e)||dR("Cannot "+n),vh=(e,t,n)=>(jj(e,t,"read from private field"),n?n.call(e):t.get(e)),kj=(e,t,n)=>t.has(e)?dR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),i1="popstate";function zj(e={}){function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return _u("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Di(o)}return Fj(t,n,null,e)}function $n(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lj(){return Math.random().toString(36).substring(2,10)}function l1(e,t){return{usr:e.state,key:e.key,idx:t}}function _u(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Vi(t):t,state:n,key:t&&t.key||r||Lj()}}function Di({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Vi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Fj(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",u=null,d=m();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function m(){return(i.state||{idx:null}).idx}function v(){s="POP";let g=m(),S=g==null?null:g-d;d=g,u&&u({action:s,location:C.location,delta:S})}function p(g,S){s="PUSH";let x=_u(C.location,g,S);d=m()+1;let w=l1(x,d),R=C.createHref(x);try{i.pushState(w,"",R)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(R)}a&&u&&u({action:s,location:C.location,delta:1})}function y(g,S){s="REPLACE";let x=_u(C.location,g,S);d=m();let w=l1(x,d),R=C.createHref(x);i.replaceState(w,"",R),a&&u&&u({action:s,location:C.location,delta:0})}function h(g){return fR(g)}let C={get action(){return s},get location(){return e(o,i)},listen(g){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(i1,v),u=g,()=>{o.removeEventListener(i1,v),u=null}},createHref(g){return t(o,g)},createURL:h,encodeLocation(g){let S=h(g);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:y,go(g){return i.go(g)}};return C}function fR(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),$n(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Di(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var mu,s1=class{constructor(e){if(kj(this,mu,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(vh(this,mu).has(e))return vh(this,mu).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){vh(this,mu).set(e,t)}};mu=new WeakMap;var Aj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Bj(e){return Aj.has(e)}var Hj=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Vj(e){return Hj.has(e)}function Wj(e){return e.index===!0}function Pm(e,t,n=[],r={}){return e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if($n(o.index!==!0||!o.children,"Cannot specify children on an index route"),$n(!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Wj(o)){let u={...o,...t(o),id:s};return r[s]=u,u}else{let u={...o,...t(o),id:s,children:void 0};return r[s]=u,o.children&&(u.children=Pm(o.children,t,i,r)),u}})}function Oi(e,t,n="/"){return tm(e,t,n,!1)}function tm(e,t,n,r){let o=typeof t=="string"?Vi(t):t,a=Qo(o.pathname||"/",n);if(a==null)return null;let i=mR(e);Uj(i);let s=null;for(let u=0;s==null&&u<i.length;++u){let d=rk(a);s=tk(i[u],d,r)}return s}function Kj(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function mR(e,t=[],n=[],r=""){let o=(a,i,s)=>{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};u.relativePath.startsWith("/")&&($n(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=_a([r,u.relativePath]),m=n.concat(u);a.children&&a.children.length>0&&($n(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),mR(a.children,t,m,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:Jj(d,a.index),routesMeta:m})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let u of vR(a.path))o(a,i,u)}),t}function vR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=vR(r.join("/")),s=[];return s.push(...i.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Uj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ek(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qj=/^:[\w-]+$/,Yj=3,Gj=2,Xj=1,Qj=10,Zj=-2,c1=e=>e==="*";function Jj(e,t){let n=e.split("/"),r=n.length;return n.some(c1)&&(r+=Zj),t&&(r+=Gj),n.filter(o=>!c1(o)).reduce((o,a)=>o+(qj.test(a)?Yj:a===""?Xj:Qj),r)}function ek(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function tk(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let u=r[s],d=s===r.length-1,m=a==="/"?t:t.slice(a.length)||"/",v=Nm({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},m),p=u.route;if(!v&&d&&n&&!r[r.length-1].route.index&&(v=Nm({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},m)),!v)return null;Object.assign(o,v.params),i.push({params:o,pathname:_a([a,v.pathname]),pathnameBase:ik(_a([a,v.pathnameBase])),route:p}),v.pathnameBase!=="/"&&(a=_a([a,v.pathnameBase]))}return i}function Nm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nk(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:v},p)=>{if(m==="*"){let h=s[p]||"";i=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}const y=s[p];return v&&!y?d[m]=void 0:d[m]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:i,pattern:e}}function nk(e,t=!1,n=!0){fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Qo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ok(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Vi(e):e;return{pathname:n?n.startsWith("/")?n:ak(n,t):t,search:lk(r),hash:sk(o)}}function ak(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ph(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function pR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fv(e){let t=pR(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function mv(e,t,n,r=!1){let o;typeof e=="string"?o=Vi(e):(o={...e},$n(!o.pathname||!o.pathname.includes("?"),ph("?","pathname","search",o)),$n(!o.pathname||!o.pathname.includes("#"),ph("#","pathname","hash",o)),$n(!o.search||!o.search.includes("#"),ph("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let v=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),v-=1;o.pathname=p.join("/")}s=v>=0?t[v]:"/"}let u=ok(o,s),d=i&&i!=="/"&&i.endsWith("/"),m=(a||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||m)&&(u.pathname+="/"),u}var _a=e=>e.join("/").replace(/\/\/+/g,"/"),ik=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Mm=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Du(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var gR=["POST","PUT","PATCH","DELETE"],ck=new Set(gR),uk=["GET",...gR],dk=new Set(uk),fk=new Set([301,302,303,307,308]),mk=new Set([307,308]),gh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Kb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pk=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),hR="remix-router-transitions",yR=Symbol("ResetLoaderData");function gk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";$n(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||pk,a={},i=Pm(e.routes,o,void 0,a),s,u=e.basename||"/",d=e.dataStrategy||Sk,m={unstable_middleware:!1,...e.future},v=null,p=new Set,y=null,h=null,C=null,g=e.hydrationData!=null,S=Oi(i,e.history.location,u),x=!1,w=null,R;if(S==null&&!e.patchRoutesOnNavigation){let ue=qo(404,{pathname:e.history.location.pathname}),{matches:fe,route:be}=S1(i);R=!0,S=fe,w={[be.id]:ue}}else if(S&&!e.hydrationData&&Wt(S,i,e.history.location.pathname).active&&(S=null),S)if(S.some(ue=>ue.route.lazy))R=!1;else if(!S.some(ue=>ue.route.loader))R=!0;else{let ue=e.hydrationData?e.hydrationData.loaderData:null,fe=e.hydrationData?e.hydrationData.errors:null;if(fe){let be=S.findIndex(De=>fe[De.route.id]!==void 0);R=S.slice(0,be+1).every(De=>!A0(De.route,ue,fe))}else R=S.every(be=>!A0(be.route,ue,fe))}else{R=!1,S=[];let ue=Wt(null,i,e.history.location.pathname);ue.active&&ue.matches&&(x=!0,S=ue.matches)}let $,O={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:gh,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},I="POP",N=!1,P,T=!1,k=new Map,H=null,A=!1,_=!1,D=new Set,j=new Map,z=0,F=-1,W=new Map,K=new Set,B=new Map,V=new Map,U=new Set,q=new Map,G,Z=null;function ee(){if(v=e.history.listen(({action:ue,location:fe,delta:be})=>{if(G){G(),G=void 0;return}fr(q.size===0||be!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let De=He({currentLocation:O.location,nextLocation:fe,historyAction:ue});if(De&&be!=null){let Pe=new Promise(ke=>{G=ke});e.history.go(be*-1),we(De,{state:"blocked",location:fe,proceed(){we(De,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),Pe.then(()=>e.history.go(be))},reset(){let ke=new Map(O.blockers);ke.set(De,Kc),ae({blockers:ke})}});return}return de(ue,fe)}),n){Tk(t,k);let ue=()=>_k(t,k);t.addEventListener("pagehide",ue),H=()=>t.removeEventListener("pagehide",ue)}return O.initialized||de("POP",O.location,{initialHydration:!0}),$}function J(){v&&v(),H&&H(),p.clear(),P&&P.abort(),O.fetchers.forEach((ue,fe)=>We(fe)),O.blockers.forEach((ue,fe)=>Fe(fe))}function oe(ue){return p.add(ue),()=>p.delete(ue)}function ae(ue,fe={}){O={...O,...ue};let be=[],De=[];O.fetchers.forEach((Pe,ke)=>{Pe.state==="idle"&&(U.has(ke)?be.push(ke):De.push(ke))}),U.forEach(Pe=>{!O.fetchers.has(Pe)&&!j.has(Pe)&&be.push(Pe)}),[...p].forEach(Pe=>Pe(O,{deletedFetchers:be,viewTransitionOpts:fe.viewTransitionOpts,flushSync:fe.flushSync===!0})),be.forEach(Pe=>We(Pe)),De.forEach(Pe=>O.fetchers.delete(Pe))}function te(ue,fe,{flushSync:be}={}){var et,Je;let De=O.actionData!=null&&O.navigation.formMethod!=null&&Ro(O.navigation.formMethod)&&O.navigation.state==="loading"&&((et=ue.state)==null?void 0:et._isRedirect)!==!0,Pe;fe.actionData?Object.keys(fe.actionData).length>0?Pe=fe.actionData:Pe=null:De?Pe=O.actionData:Pe=null;let ke=fe.loaderData?b1(O.loaderData,fe.loaderData,fe.matches||[],fe.errors):O.loaderData,Qe=O.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((Ge,rt)=>Qe.set(rt,Kc)));let Ke=N===!0||O.navigation.formMethod!=null&&Ro(O.navigation.formMethod)&&((Je=ue.state)==null?void 0:Je._isRedirect)!==!0;s&&(i=s,s=void 0),A||I==="POP"||(I==="PUSH"?e.history.push(ue,ue.state):I==="REPLACE"&&e.history.replace(ue,ue.state));let Ye;if(I==="POP"){let Ge=k.get(O.location.pathname);Ge&&Ge.has(ue.pathname)?Ye={currentLocation:O.location,nextLocation:ue}:k.has(ue.pathname)&&(Ye={currentLocation:ue,nextLocation:O.location})}else if(T){let Ge=k.get(O.location.pathname);Ge?Ge.add(ue.pathname):(Ge=new Set([ue.pathname]),k.set(O.location.pathname,Ge)),Ye={currentLocation:O.location,nextLocation:ue}}ae({...fe,actionData:Pe,loaderData:ke,historyAction:I,location:ue,initialized:!0,navigation:gh,revalidation:"idle",restoreScrollPosition:qt(ue,fe.matches||O.matches),preventScrollReset:Ke,blockers:Qe},{viewTransitionOpts:Ye,flushSync:be===!0}),I="POP",N=!1,T=!1,A=!1,_=!1,Z==null||Z.resolve(),Z=null}async function ne(ue,fe){if(typeof ue=="number"){e.history.go(ue);return}let be=F0(O.location,O.matches,u,ue,fe==null?void 0:fe.fromRouteId,fe==null?void 0:fe.relative),{path:De,submission:Pe,error:ke}=u1(!1,be,fe),Qe=O.location,Ke=_u(O.location,De,fe&&fe.state);Ke={...Ke,...e.history.encodeLocation(Ke)};let Ye=fe&&fe.replace!=null?fe.replace:void 0,et="PUSH";Ye===!0?et="REPLACE":Ye===!1||Pe!=null&&Ro(Pe.formMethod)&&Pe.formAction===O.location.pathname+O.location.search&&(et="REPLACE");let Je=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Ge=(fe&&fe.flushSync)===!0,rt=He({currentLocation:Qe,nextLocation:Ke,historyAction:et});if(rt){we(rt,{state:"blocked",location:Ke,proceed(){we(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),ne(ue,fe)},reset(){let st=new Map(O.blockers);st.set(rt,Kc),ae({blockers:st})}});return}await de(et,Ke,{submission:Pe,pendingError:ke,preventScrollReset:Je,replace:fe&&fe.replace,enableViewTransition:fe&&fe.viewTransition,flushSync:Ge})}function ie(){Z||(Z=Dk()),Be(),ae({revalidation:"loading"});let ue=Z.promise;return O.navigation.state==="submitting"?ue:O.navigation.state==="idle"?(de(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),ue):(de(I||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:T===!0}),ue)}async function de(ue,fe,be){P&&P.abort(),P=null,I=ue,A=(be&&be.startUninterruptedRevalidation)===!0,Rt(O.location,O.matches),N=(be&&be.preventScrollReset)===!0,T=(be&&be.enableViewTransition)===!0;let De=s||i,Pe=be&&be.overrideNavigation,ke=be!=null&&be.initialHydration&&O.matches&&O.matches.length>0&&!x?O.matches:Oi(De,fe,u),Qe=(be&&be.flushSync)===!0;if(ke&&O.initialized&&!_&&Rk(O.location,fe)&&!(be&&be.submission&&Ro(be.submission.formMethod))){te(fe,{matches:ke},{flushSync:Qe});return}let Ke=Wt(ke,De,fe.pathname);if(Ke.active&&Ke.matches&&(ke=Ke.matches),!ke){let{error:Lt,notFoundMatches:Bt,route:Pt}=ot(fe.pathname);te(fe,{matches:Bt,loaderData:{},errors:{[Pt.id]:Lt}},{flushSync:Qe});return}P=new AbortController;let Ye=ys(e.history,fe,P.signal,be&&be.submission),et=new s1(e.unstable_getContext?await e.unstable_getContext():void 0),Je;if(be&&be.pendingError)Je=[dl(ke).route.id,{type:"error",error:be.pendingError}];else if(be&&be.submission&&Ro(be.submission.formMethod)){let Lt=await ve(Ye,fe,be.submission,ke,et,Ke.active,be&&be.initialHydration===!0,{replace:be.replace,flushSync:Qe});if(Lt.shortCircuited)return;if(Lt.pendingActionResult){let[Bt,Pt]=Lt.pendingActionResult;if(Oo(Pt)&&Du(Pt.error)&&Pt.error.status===404){P=null,te(fe,{matches:Lt.matches,loaderData:{},errors:{[Bt]:Pt.error}});return}}ke=Lt.matches||ke,Je=Lt.pendingActionResult,Pe=hh(fe,be.submission),Qe=!1,Ke.active=!1,Ye=ys(e.history,Ye.url,Ye.signal)}let{shortCircuited:Ge,matches:rt,loaderData:st,errors:Nt}=await se(Ye,fe,ke,et,Ke.active,Pe,be&&be.submission,be&&be.fetcherSubmission,be&&be.replace,be&&be.initialHydration===!0,Qe,Je);Ge||(P=null,te(fe,{matches:rt||ke,...C1(Je),loaderData:st,errors:Nt}))}async function ve(ue,fe,be,De,Pe,ke,Qe,Ke={}){Be();let Ye=Nk(fe,be);if(ae({navigation:Ye},{flushSync:Ke.flushSync===!0}),ke){let Ge=await It(De,fe.pathname,ue.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let rt=dl(Ge.partialMatches).route.id;return{matches:Ge.partialMatches,pendingActionResult:[rt,{type:"error",error:Ge.error}]}}else if(Ge.matches)De=Ge.matches;else{let{notFoundMatches:rt,error:st,route:Nt}=ot(fe.pathname);return{matches:rt,pendingActionResult:[Nt.id,{type:"error",error:st}]}}}let et,Je=vu(De,fe);if(!Je.route.action&&!Je.route.lazy)et={type:"error",error:qo(405,{method:ue.method,pathname:fe.pathname,routeId:Je.route.id})};else{let Ge=Es(o,a,ue,De,Je,Qe?[]:r,Pe),rt=await Ne(ue,Ge,Pe,null);if(et=rt[Je.route.id],!et){for(let st of De)if(rt[st.route.id]){et=rt[st.route.id];break}}if(ue.signal.aborted)return{shortCircuited:!0}}if(ml(et)){let Ge;return Ke&&Ke.replace!=null?Ge=Ke.replace:Ge=g1(et.response.headers.get("Location"),new URL(ue.url),u)===O.location.pathname+O.location.search,await xe(ue,et,!0,{submission:be,replace:Ge}),{shortCircuited:!0}}if(Oo(et)){let Ge=dl(De,Je.route.id);return(Ke&&Ke.replace)!==!0&&(I="PUSH"),{matches:De,pendingActionResult:[Ge.route.id,et,Je.route.id]}}return{matches:De,pendingActionResult:[Je.route.id,et]}}async function se(ue,fe,be,De,Pe,ke,Qe,Ke,Ye,et,Je,Ge){let rt=ke||hh(fe,Qe),st=Qe||Ke||w1(rt),Nt=!A&&!et;if(Pe){if(Nt){let wt=he(Ge);ae({navigation:rt,...wt!==void 0?{actionData:wt}:{}},{flushSync:Je})}let Ut=await It(be,fe.pathname,ue.signal);if(Ut.type==="aborted")return{shortCircuited:!0};if(Ut.type==="error"){let wt=dl(Ut.partialMatches).route.id;return{matches:Ut.partialMatches,loaderData:{},errors:{[wt]:Ut.error}}}else if(Ut.matches)be=Ut.matches;else{let{error:wt,notFoundMatches:Mt,route:Kt}=ot(fe.pathname);return{matches:Mt,loaderData:{},errors:{[Kt.id]:wt}}}}let Lt=s||i,{dsMatches:Bt,revalidatingFetchers:Pt}=d1(ue,De,o,a,e.history,O,be,st,fe,et?[]:r,et===!0,_,D,U,B,K,Lt,u,e.patchRoutesOnNavigation!=null,Ge);if(F=++z,!e.dataStrategy&&!Bt.some(Ut=>Ut.shouldLoad)&&Pt.length===0){let Ut=qe();return te(fe,{matches:be,loaderData:{},errors:Ge&&Oo(Ge[1])?{[Ge[0]]:Ge[1].error}:null,...C1(Ge),...Ut?{fetchers:new Map(O.fetchers)}:{}},{flushSync:Je}),{shortCircuited:!0}}if(Nt){let Ut={};if(!Pe){Ut.navigation=rt;let wt=he(Ge);wt!==void 0&&(Ut.actionData=wt)}Pt.length>0&&(Ut.fetchers=Se(Pt)),ae(Ut,{flushSync:Je})}Pt.forEach(Ut=>{Le(Ut.key),Ut.controller&&j.set(Ut.key,Ut.controller)});let rn=()=>Pt.forEach(Ut=>Le(Ut.key));P&&P.signal.addEventListener("abort",rn);let{loaderResults:Jt,fetcherResults:ct}=await Ee(Bt,Pt,ue,De);if(ue.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",rn),Pt.forEach(Ut=>j.delete(Ut.key));let ut=Of(Jt);if(ut)return await xe(ue,ut.result,!0,{replace:Ye}),{shortCircuited:!0};if(ut=Of(ct),ut)return K.add(ut.key),await xe(ue,ut.result,!0,{replace:Ye}),{shortCircuited:!0};let{loaderData:Tt,errors:Ct}=y1(O,be,Jt,Ge,Pt,ct);et&&O.errors&&(Ct={...O.errors,...Ct});let Yt=qe(),pn=ye(F),On=Yt||pn||Pt.length>0;return{matches:be,loaderData:Tt,errors:Ct,...On?{fetchers:new Map(O.fetchers)}:{}}}function he(ue){if(ue&&!Oo(ue[1]))return{[ue[0]]:ue[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function Se(ue){return ue.forEach(fe=>{let be=O.fetchers.get(fe.key),De=Uc(void 0,be?be.data:void 0);O.fetchers.set(fe.key,De)}),new Map(O.fetchers)}async function je(ue,fe,be,De){Le(ue);let Pe=(De&&De.flushSync)===!0,ke=s||i,Qe=F0(O.location,O.matches,u,be,fe,De==null?void 0:De.relative),Ke=Oi(ke,Qe,u),Ye=Wt(Ke,ke,Qe);if(Ye.active&&Ye.matches&&(Ke=Ye.matches),!Ke){tt(ue,fe,qo(404,{pathname:Qe}),{flushSync:Pe});return}let{path:et,submission:Je,error:Ge}=u1(!0,Qe,De);if(Ge){tt(ue,fe,Ge,{flushSync:Pe});return}let rt=vu(Ke,et),st=new s1(e.unstable_getContext?await e.unstable_getContext():void 0),Nt=(De&&De.preventScrollReset)===!0;if(Je&&Ro(Je.formMethod)){await Te(ue,fe,et,rt,Ke,st,Ye.active,Pe,Nt,Je);return}B.set(ue,{routeId:fe,path:et}),await Ce(ue,fe,et,rt,Ke,st,Ye.active,Pe,Nt,Je)}async function Te(ue,fe,be,De,Pe,ke,Qe,Ke,Ye,et){Be(),B.delete(ue);function Je(on){if(!on.route.action&&!on.route.lazy){let Pn=qo(405,{method:et.formMethod,pathname:be,routeId:fe});return tt(ue,fe,Pn,{flushSync:Ke}),!0}return!1}if(!Qe&&Je(De))return;let Ge=O.fetchers.get(ue);Ve(ue,Mk(et,Ge),{flushSync:Ke});let rt=new AbortController,st=ys(e.history,be,rt.signal,et);if(Qe){let on=await It(Pe,be,st.signal,ue);if(on.type==="aborted")return;if(on.type==="error"){tt(ue,fe,on.error,{flushSync:Ke});return}else if(on.matches){if(Pe=on.matches,De=vu(Pe,be),Je(De))return}else{tt(ue,fe,qo(404,{pathname:be}),{flushSync:Ke});return}}j.set(ue,rt);let Nt=z,Lt=Es(o,a,st,Pe,De,r,ke),Pt=(await Ne(st,Lt,ke,ue))[De.route.id];if(st.signal.aborted){j.get(ue)===rt&&j.delete(ue);return}if(U.has(ue)){if(ml(Pt)||Oo(Pt)){Ve(ue,xi(void 0));return}}else{if(ml(Pt))if(j.delete(ue),F>Nt){Ve(ue,xi(void 0));return}else return K.add(ue),Ve(ue,Uc(et)),xe(st,Pt,!1,{fetcherSubmission:et,preventScrollReset:Ye});if(Oo(Pt)){tt(ue,fe,Pt.error);return}}let rn=O.navigation.location||O.location,Jt=ys(e.history,rn,rt.signal),ct=s||i,ut=O.navigation.state!=="idle"?Oi(ct,O.navigation.location,u):O.matches;$n(ut,"Didn't find any matches after fetcher action");let Tt=++z;W.set(ue,Tt);let Ct=Uc(et,Pt.data);O.fetchers.set(ue,Ct);let{dsMatches:Yt,revalidatingFetchers:pn}=d1(Jt,ke,o,a,e.history,O,ut,et,rn,r,!1,_,D,U,B,K,ct,u,e.patchRoutesOnNavigation!=null,[De.route.id,Pt]);pn.filter(on=>on.key!==ue).forEach(on=>{let Pn=on.key,ar=O.fetchers.get(Pn),Yn=Uc(void 0,ar?ar.data:void 0);O.fetchers.set(Pn,Yn),Le(Pn),on.controller&&j.set(Pn,on.controller)}),ae({fetchers:new Map(O.fetchers)});let On=()=>pn.forEach(on=>Le(on.key));rt.signal.addEventListener("abort",On);let{loaderResults:Ut,fetcherResults:wt}=await Ee(Yt,pn,Jt,ke);if(rt.signal.aborted)return;if(rt.signal.removeEventListener("abort",On),W.delete(ue),j.delete(ue),pn.forEach(on=>j.delete(on.key)),O.fetchers.has(ue)){let on=xi(Pt.data);O.fetchers.set(ue,on)}let Mt=Of(Ut);if(Mt)return xe(Jt,Mt.result,!1,{preventScrollReset:Ye});if(Mt=Of(wt),Mt)return K.add(Mt.key),xe(Jt,Mt.result,!1,{preventScrollReset:Ye});let{loaderData:Kt,errors:Cn}=y1(O,ut,Ut,void 0,pn,wt);ye(Tt),O.navigation.state==="loading"&&Tt>F?($n(I,"Expected pending action"),P&&P.abort(),te(O.navigation.location,{matches:ut,loaderData:Kt,errors:Cn,fetchers:new Map(O.fetchers)})):(ae({errors:Cn,loaderData:b1(O.loaderData,Kt,ut,Cn),fetchers:new Map(O.fetchers)}),_=!1)}async function Ce(ue,fe,be,De,Pe,ke,Qe,Ke,Ye,et){let Je=O.fetchers.get(ue);Ve(ue,Uc(et,Je?Je.data:void 0),{flushSync:Ke});let Ge=new AbortController,rt=ys(e.history,be,Ge.signal);if(Qe){let Pt=await It(Pe,be,rt.signal,ue);if(Pt.type==="aborted")return;if(Pt.type==="error"){tt(ue,fe,Pt.error,{flushSync:Ke});return}else if(Pt.matches)Pe=Pt.matches,De=vu(Pe,be);else{tt(ue,fe,qo(404,{pathname:be}),{flushSync:Ke});return}}j.set(ue,Ge);let st=z,Nt=Es(o,a,rt,Pe,De,r,ke),Bt=(await Ne(rt,Nt,ke,ue))[De.route.id];if(j.get(ue)===Ge&&j.delete(ue),!rt.signal.aborted){if(U.has(ue)){Ve(ue,xi(void 0));return}if(ml(Bt))if(F>st){Ve(ue,xi(void 0));return}else{K.add(ue),await xe(rt,Bt,!1,{preventScrollReset:Ye});return}if(Oo(Bt)){tt(ue,fe,Bt.error);return}Ve(ue,xi(Bt.data))}}async function xe(ue,fe,be,{submission:De,fetcherSubmission:Pe,preventScrollReset:ke,replace:Qe}={}){fe.response.headers.has("X-Remix-Revalidate")&&(_=!0);let Ke=fe.response.headers.get("Location");$n(Ke,"Expected a Location header on the redirect Response"),Ke=g1(Ke,new URL(ue.url),u);let Ye=_u(O.location,Ke,{_isRedirect:!0});if(n){let Nt=!1;if(fe.response.headers.has("X-Remix-Reload-Document"))Nt=!0;else if(Kb.test(Ke)){const Lt=fR(Ke,!0);Nt=Lt.origin!==t.location.origin||Qo(Lt.pathname,u)==null}if(Nt){Qe?t.location.replace(Ke):t.location.assign(Ke);return}}P=null;let et=Qe===!0||fe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Je,formAction:Ge,formEncType:rt}=O.navigation;!De&&!Pe&&Je&&Ge&&rt&&(De=w1(O.navigation));let st=De||Pe;if(mk.has(fe.response.status)&&st&&Ro(st.formMethod))await de(et,Ye,{submission:{...st,formAction:Ke},preventScrollReset:ke||N,enableViewTransition:be?T:void 0});else{let Nt=hh(Ye,De);await de(et,Ye,{overrideNavigation:Nt,fetcherSubmission:Pe,preventScrollReset:ke||N,enableViewTransition:be?T:void 0})}}async function Ne(ue,fe,be,De){let Pe,ke={};try{Pe=await xk(d,ue,fe,De,be,!1)}catch(Qe){return fe.filter(Ke=>Ke.shouldLoad).forEach(Ke=>{ke[Ke.route.id]={type:"error",error:Qe}}),ke}if(ue.signal.aborted)return ke;for(let[Qe,Ke]of Object.entries(Pe))if(Ik(Ke)){let Ye=Ke.result;ke[Qe]={type:"redirect",response:Ek(Ye,ue,Qe,fe,u)}}else ke[Qe]=await $k(Ke);return ke}async function Ee(ue,fe,be,De){let Pe=Ne(be,ue,De,null),ke=Promise.all(fe.map(async Ye=>{if(Ye.matches&&Ye.match&&Ye.request&&Ye.controller){let Je=(await Ne(Ye.request,Ye.matches,De,Ye.key))[Ye.match.route.id];return{[Ye.key]:Je}}else return Promise.resolve({[Ye.key]:{type:"error",error:qo(404,{pathname:Ye.path})}})})),Qe=await Pe,Ke=(await ke).reduce((Ye,et)=>Object.assign(Ye,et),{});return{loaderResults:Qe,fetcherResults:Ke}}function Be(){_=!0,B.forEach((ue,fe)=>{j.has(fe)&&D.add(fe),Le(fe)})}function Ve(ue,fe,be={}){O.fetchers.set(ue,fe),ae({fetchers:new Map(O.fetchers)},{flushSync:(be&&be.flushSync)===!0})}function tt(ue,fe,be,De={}){let Pe=dl(O.matches,fe);We(ue),ae({errors:{[Pe.route.id]:be},fetchers:new Map(O.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function nt(ue){return V.set(ue,(V.get(ue)||0)+1),U.has(ue)&&U.delete(ue),O.fetchers.get(ue)||vk}function We(ue){let fe=O.fetchers.get(ue);j.has(ue)&&!(fe&&fe.state==="loading"&&W.has(ue))&&Le(ue),B.delete(ue),W.delete(ue),K.delete(ue),U.delete(ue),D.delete(ue),O.fetchers.delete(ue)}function Ze(ue){let fe=(V.get(ue)||0)-1;fe<=0?(V.delete(ue),U.add(ue)):V.set(ue,fe),ae({fetchers:new Map(O.fetchers)})}function Le(ue){let fe=j.get(ue);fe&&(fe.abort(),j.delete(ue))}function Re(ue){for(let fe of ue){let be=nt(fe),De=xi(be.data);O.fetchers.set(fe,De)}}function qe(){let ue=[],fe=!1;for(let be of K){let De=O.fetchers.get(be);$n(De,`Expected fetcher: ${be}`),De.state==="loading"&&(K.delete(be),ue.push(be),fe=!0)}return Re(ue),fe}function ye(ue){let fe=[];for(let[be,De]of W)if(De<ue){let Pe=O.fetchers.get(be);$n(Pe,`Expected fetcher: ${be}`),Pe.state==="loading"&&(Le(be),W.delete(be),fe.push(be))}return Re(fe),fe.length>0}function Oe(ue,fe){let be=O.blockers.get(ue)||Kc;return q.get(ue)!==fe&&q.set(ue,fe),be}function Fe(ue){O.blockers.delete(ue),q.delete(ue)}function we(ue,fe){let be=O.blockers.get(ue)||Kc;$n(be.state==="unblocked"&&fe.state==="blocked"||be.state==="blocked"&&fe.state==="blocked"||be.state==="blocked"&&fe.state==="proceeding"||be.state==="blocked"&&fe.state==="unblocked"||be.state==="proceeding"&&fe.state==="unblocked",`Invalid blocker state transition: ${be.state} -> ${fe.state}`);let De=new Map(O.blockers);De.set(ue,fe),ae({blockers:De})}function He({currentLocation:ue,nextLocation:fe,historyAction:be}){if(q.size===0)return;q.size>1&&fr(!1,"A router only supports one blocker at a time");let De=Array.from(q.entries()),[Pe,ke]=De[De.length-1],Qe=O.blockers.get(Pe);if(!(Qe&&Qe.state==="proceeding")&&ke({currentLocation:ue,nextLocation:fe,historyAction:be}))return Pe}function ot(ue){let fe=qo(404,{pathname:ue}),be=s||i,{matches:De,route:Pe}=S1(be);return{notFoundMatches:De,route:Pe,error:fe}}function gt(ue,fe,be){if(y=ue,C=fe,h=be||null,!g&&O.navigation===gh){g=!0;let De=qt(O.location,O.matches);De!=null&&ae({restoreScrollPosition:De})}return()=>{y=null,C=null,h=null}}function yt(ue,fe){return h&&h(ue,fe.map(De=>Kj(De,O.loaderData)))||ue.key}function Rt(ue,fe){if(y&&C){let be=yt(ue,fe);y[be]=C()}}function qt(ue,fe){if(y){let be=yt(ue,fe),De=y[be];if(typeof De=="number")return De}return null}function Wt(ue,fe,be){if(e.patchRoutesOnNavigation)if(ue){if(Object.keys(ue[0].params).length>0)return{active:!0,matches:tm(fe,be,u,!0)}}else return{active:!0,matches:tm(fe,be,u,!0)||[]};return{active:!1,matches:null}}async function It(ue,fe,be,De){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ue};let Pe=ue;for(;;){let ke=s==null,Qe=s||i,Ke=a;try{await e.patchRoutesOnNavigation({signal:be,path:fe,matches:Pe,fetcherKey:De,patch:(Je,Ge)=>{be.aborted||f1(Je,Ge,Qe,Ke,o)}})}catch(Je){return{type:"error",error:Je,partialMatches:Pe}}finally{ke&&!be.aborted&&(i=[...i])}if(be.aborted)return{type:"aborted"};let Ye=Oi(Qe,fe,u);if(Ye)return{type:"success",matches:Ye};let et=tm(Qe,fe,u,!0);if(!et||Pe.length===et.length&&Pe.every((Je,Ge)=>Je.route.id===et[Ge].route.id))return{type:"success",matches:null};Pe=et}}function bt(ue){a={},s=Pm(ue,o,void 0,a)}function mt(ue,fe){let be=s==null;f1(ue,fe,s||i,a,o),be&&(i=[...i],ae({}))}return $={get basename(){return u},get future(){return m},get state(){return O},get routes(){return i},get window(){return t},initialize:ee,subscribe:oe,enableScrollRestoration:gt,navigate:ne,fetch:je,revalidate:ie,createHref:ue=>e.history.createHref(ue),encodeLocation:ue=>e.history.encodeLocation(ue),getFetcher:nt,deleteFetcher:Ze,dispose:J,getBlocker:Oe,deleteBlocker:Fe,patchRoutes:mt,_internalFetchControllers:j,_internalSetRoutes:bt},$}function hk(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function F0(e,t,n,r,o,a){let i,s;if(o){i=[];for(let d of t)if(i.push(d),d.route.id===o){s=d;break}}else i=t,s=t[t.length-1];let u=mv(r||".",fv(i),Qo(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&s){let d=Ub(u.search);if(s.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&d){let m=new URLSearchParams(u.search),v=m.getAll("index");m.delete("index"),v.filter(y=>y).forEach(y=>m.append("index",y));let p=m.toString();u.search=p?`?${p}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:_a([n,u.pathname])),Di(u)}function u1(e,t,n){if(!n||!hk(n))return{path:t};if(n.formMethod&&!Pk(n.formMethod))return{path:t,error:qo(405,{method:n.formMethod})};let r=()=>({path:t,error:qo(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),i=$R(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ro(a))return r();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((p,[y,h])=>`${p}${y}=${h}
`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Ro(a))return r();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}$n(typeof FormData=="function","FormData is not available in this environment");let s,u;if(n.formData)s=H0(n.formData),u=n.formData;else if(n.body instanceof FormData)s=H0(n.body),u=n.body;else if(n.body instanceof URLSearchParams)s=n.body,u=h1(s);else if(n.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(n.body),u=h1(s)}catch{return r()}let d={formMethod:a,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ro(d.formMethod))return{path:t,submission:d};let m=Vi(t);return e&&m.search&&Ub(m.search)&&s.append("index",""),m.search=`?${s}`,{path:Di(m),submission:d}}function d1(e,t,n,r,o,a,i,s,u,d,m,v,p,y,h,C,g,S,x,w){var A;let R=w?Oo(w[1])?w[1].error:w[1].data:void 0,$=o.createURL(a.location),O=o.createURL(u),I;if(m&&a.errors){let _=Object.keys(a.errors)[0];I=i.findIndex(D=>D.route.id===_)}else if(w&&Oo(w[1])){let _=w[0];I=i.findIndex(D=>D.route.id===_)-1}let N=w?w[1].statusCode:void 0,P=N&&N>=400,T={currentUrl:$,currentParams:((A=a.matches[0])==null?void 0:A.params)||{},nextUrl:O,nextParams:i[0].params,...s,actionResult:R,actionStatus:N},k=i.map((_,D)=>{let{route:j}=_,z=null;if(I!=null&&D>I?z=!1:j.lazy?z=!0:j.loader==null?z=!1:m?z=A0(j,a.loaderData,a.errors):yk(a.loaderData,a.matches[D],_)&&(z=!0),z!==null)return B0(n,r,e,_,d,t,z);let F=P?!1:v||$.pathname+$.search===O.pathname+O.search||$.search!==O.search||bk(a.matches[D],_),W={...T,defaultShouldRevalidate:F},K=Tm(_,W);return B0(n,r,e,_,d,t,K,W)}),H=[];return h.forEach((_,D)=>{if(m||!i.some(U=>U.route.id===_.routeId)||y.has(D))return;let j=a.fetchers.get(D),z=j&&j.state!=="idle"&&j.data===void 0,F=Oi(g,_.path,S);if(!F){if(x&&z)return;H.push({key:D,routeId:_.routeId,path:_.path,matches:null,match:null,request:null,controller:null});return}if(C.has(D))return;let W=vu(F,_.path),K=new AbortController,B=ys(o,_.path,K.signal),V=null;if(p.has(D))p.delete(D),V=Es(n,r,B,F,W,d,t);else if(z)v&&(V=Es(n,r,B,F,W,d,t));else{let U={...T,defaultShouldRevalidate:P?!1:v};Tm(W,U)&&(V=Es(n,r,B,F,W,d,t,U))}V&&H.push({key:D,routeId:_.routeId,path:_.path,matches:V,match:W,request:B,controller:K})}),{dsMatches:k,revalidatingFetchers:H}}function A0(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function yk(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function bk(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Tm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function f1(e,t,n,r,o){let a;if(e){let u=r[e];$n(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),a=u.children}else a=n;let i=t.filter(u=>!a.some(d=>bR(u,d))),s=Pm(i,o,[e||"_","patch",String((a==null?void 0:a.length)||"0")],r);a.push(...s)}function bR(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(a=>bR(n,a))}):!1}var m1=new WeakMap,CR=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if($n(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=m1.get(o);i||(i={},m1.set(o,i));let s=i[e];if(s)return s;let u=(async()=>{let d=Bj(e),v=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)fr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(v)fr(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let p=await a();p!=null&&(Object.assign(o,{[e]:p}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(p=>p===void 0)&&(o.lazy=void 0))})();return i[e]=u,u},v1=new WeakMap;function Ck(e,t,n,r,o){let a=n[e.id];if($n(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=v1.get(a);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let v=(async()=>{$n(typeof e.lazy=="function","No lazy route function found");let p=await e.lazy(),y={};for(let h in p){let C=p[h];if(C===void 0)continue;let g=Vj(h),x=a[h]!==void 0&&h!=="hasErrorBoundary";g?fr(!g,"Route property "+h+" is not a supported property to be returned from a lazy route function. This property will be ignored."):x?fr(!x,`Route "${a.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`):y[h]=C}Object.assign(a,y),Object.assign(a,{...r(a),lazy:void 0})})();return v1.set(a,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let i=Object.keys(e.lazy),s=[],u;for(let m of i){if(o&&o.includes(m))continue;let v=CR({key:m,route:e,manifest:n,mapRouteProperties:r});v&&(s.push(v),m===t&&(u=v))}let d=s.length>0?Promise.all(s).then(()=>{}):void 0;return d==null||d.catch(()=>{}),u==null||u.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function p1(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function Sk(e){return e.matches.some(t=>t.route.unstable_middleware)?SR(e,!1,()=>p1(e),(t,n)=>({[n]:{type:"error",result:t}})):p1(e)}async function SR(e,t,n,r){let{matches:o,request:a,params:i,context:s}=e,u={handlerResult:void 0};try{let d=o.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(p=>[v.route.id,p]):[]),m=await xR({request:a,params:i,context:s},d,t,u,n);return t?m:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let m=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,m):m}}async function xR(e,t,n,r,o,a=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let s=t[a];if(!s)return r.handlerResult=await o(),r.handlerResult;let[u,d]=s,m=!1,v,p=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");m=!0,await xR(e,t,n,r,o,a+1)};try{let y=await d({request:e.request,params:e.params,context:e.context},p);return m?y===void 0?v:y:p()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:u,error:y}):r.middlewareError={routeId:u,error:y},y}}function wR(e,t,n,r,o){let a=CR({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=Ck(r.route,Ro(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function B0(e,t,n,r,o,a,i,s=null){let u=!1,d=wR(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler(m){return u=!0,s?typeof m=="boolean"?Tm(r,{...s,defaultShouldRevalidate:m}):Tm(r,s):i},resolve(m){return u||i||m&&n.method==="GET"&&(r.route.lazy||r.route.loader)?wk({request:n,match:r,lazyHandlerPromise:d==null?void 0:d.handler,lazyRoutePromise:d==null?void 0:d.route,handlerOverride:m,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Es(e,t,n,r,o,a,i,s=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:wR(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:B0(e,t,n,u,a,i,!0,s))}async function xk(e,t,n,r,o,a){n.some(d=>{var m;return(m=d._lazyPromises)==null?void 0:m.middleware})&&await Promise.all(n.map(d=>{var m;return(m=d._lazyPromises)==null?void 0:m.middleware}));let i={request:t,params:n[0].params,context:o,matches:n},u=await e({...i,fetcherKey:r,unstable_runClientMiddleware:d=>{let m=i;return SR(m,!1,()=>d({...m,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,p)=>({[p]:{type:"error",result:v}}))}});try{await Promise.all(n.flatMap(d=>{var m,v;return[(m=d._lazyPromises)==null?void 0:m.handler,(v=d._lazyPromises)==null?void 0:v.route]}))}catch{}return u}async function wk({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,s,u=Ro(e.method),d=u?"action":"loader",m=v=>{let p,y=new Promise((g,S)=>p=S);s=()=>p(),e.signal.addEventListener("abort",s);let h=g=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):v({request:e,params:t.params,context:a},...g!==void 0?[g]:[]),C=(async()=>{try{return{type:"data",result:await(o?o(S=>h(S)):h())}}catch(g){return{type:"error",result:g}}})();return Promise.race([C,y])};try{let v=u?t.route.action:t.route.loader;if(n||r)if(v){let p,[y]=await Promise.all([m(v).catch(h=>{p=h}),n,r]);if(p!==void 0)throw p;i=y}else{await n;let p=u?t.route.action:t.route.loader;if(p)[i]=await Promise.all([m(p),r]);else if(d==="action"){let y=new URL(e.url),h=y.pathname+y.search;throw qo(405,{method:e.method,pathname:h,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(v)i=await m(v);else{let p=new URL(e.url),y=p.pathname+p.search;throw qo(404,{pathname:y})}}catch(v){return{type:"error",result:v}}finally{s&&e.signal.removeEventListener("abort",s)}return i}async function $k(e){var r,o,a,i,s,u;let{result:t,type:n}=e;if(ER(t)){let d;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(m){return{type:"error",error:m}}return n==="error"?{type:"error",error:new Mm(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:"data",data:d,statusCode:t.status,headers:t.headers}}return n==="error"?x1(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Mm(((a=t.init)==null?void 0:a.status)||500,void 0,t.data),statusCode:Du(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Du(t)?t.status:void 0}:x1(t)?{type:"data",data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ek(e,t,n,r,o){let a=e.headers.get("Location");if($n(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Kb.test(a)){let i=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=F0(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function g1(e,t,n){if(Kb.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Qo(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function ys(e,t,n,r){let o=e.createURL($R(t)).toString(),a={signal:n};if(r&&Ro(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=H0(r.formData):a.body=r.formData}return new Request(o,a)}function H0(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function h1(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ok(e,t,n,r=!1,o=!1){let a={},i=null,s,u=!1,d={},m=n&&Oo(n[1])?n[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in t))return;let p=v.route.id,y=t[p];if($n(!ml(y),"Cannot handle redirect results in processLoaderData"),Oo(y)){let h=y.error;if(m!==void 0&&(h=m,m=void 0),i=i||{},o)i[p]=h;else{let C=dl(e,p);i[C.route.id]==null&&(i[C.route.id]=h)}r||(a[p]=yR),u||(u=!0,s=Du(y.error)?y.error.status:500),y.headers&&(d[p]=y.headers)}else a[p]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(s=y.statusCode),y.headers&&(d[p]=y.headers)}),m!==void 0&&n&&(i={[n[0]]:m},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:d}}function y1(e,t,n,r,o,a){let{loaderData:i,errors:s}=Ok(t,n,r);return o.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:m,controller:v}=u,p=a[d];if($n(p,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Oo(p)){let y=dl(e.matches,m==null?void 0:m.route.id);s&&s[y.route.id]||(s={...s,[y.route.id]:p.error}),e.fetchers.delete(d)}else if(ml(p))$n(!1,"Unhandled fetcher revalidation redirect");else{let y=xi(p.data);e.fetchers.set(d,y)}}),{loaderData:i,errors:s}}function b1(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==yR).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of n){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function C1(e){return e?Oo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function dl(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function S1(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qo(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Mm(e||500,i,new Error(s),!0)}function Of(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(ml(o))return{key:r,result:o}}}function $R(e){let t=typeof e=="string"?Vi(e):e;return Di({...t,hash:""})}function Rk(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ik(e){return ER(e.result)&&fk.has(e.result.status)}function Oo(e){return e.type==="error"}function ml(e){return(e&&e.type)==="redirect"}function x1(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function ER(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Pk(e){return dk.has(e.toUpperCase())}function Ro(e){return ck.has(e.toUpperCase())}function Ub(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vu(e,t){let n=typeof t=="string"?Vi(t).search:t.search;if(e[e.length-1].route.index&&Ub(n||""))return e[e.length-1];let r=pR(e);return r[r.length-1]}function w1(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function hh(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Nk(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Uc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Mk(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Tk(e,t){try{let n=e.sessionStorage.getItem(hR);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function _k(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(hR,JSON.stringify(n))}catch(r){fr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function Dk(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var _l=l.createContext(null);_l.displayName="DataRouter";var rd=l.createContext(null);rd.displayName="DataRouterState";var qb=l.createContext({isTransitioning:!1});qb.displayName="ViewTransition";var OR=l.createContext(new Map);OR.displayName="Fetchers";var jk=l.createContext(null);jk.displayName="Await";var Sa=l.createContext(null);Sa.displayName="Navigation";var vv=l.createContext(null);vv.displayName="Location";var xa=l.createContext({outlet:null,matches:[],isDataRoute:!1});xa.displayName="Route";var Yb=l.createContext(null);Yb.displayName="RouteError";function kk(e,{relative:t}={}){$n(Ks(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=l.useContext(Sa),{hash:o,pathname:a,search:i}=od(e,{relative:t}),s=a;return n!=="/"&&(s=a==="/"?n:_a([n,a])),r.createHref({pathname:s,search:i,hash:o})}function Ks(){return l.useContext(vv)!=null}function ei(){return $n(Ks(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(vv).location}var RR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function IR(e){l.useContext(Sa).static||l.useLayoutEffect(e)}function pv(){let{isDataRoute:e}=l.useContext(xa);return e?Qk():zk()}function zk(){$n(Ks(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(_l),{basename:t,navigator:n}=l.useContext(Sa),{matches:r}=l.useContext(xa),{pathname:o}=ei(),a=JSON.stringify(fv(r)),i=l.useRef(!1);return IR(()=>{i.current=!0}),l.useCallback((u,d={})=>{if(fr(i.current,RR),!i.current)return;if(typeof u=="number"){n.go(u);return}let m=mv(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:_a([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,a,o,e])}var Lk=l.createContext(null);function Fk(e){let t=l.useContext(xa).outlet;return t&&l.createElement(Lk.Provider,{value:e},t)}function od(e,{relative:t}={}){let{matches:n}=l.useContext(xa),{pathname:r}=ei(),o=JSON.stringify(fv(n));return l.useMemo(()=>mv(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Ak(e,t,n,r){$n(Ks(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=l.useContext(Sa),{matches:a}=l.useContext(xa),i=a[a.length-1],s=i?i.params:{},u=i?i.pathname:"/",d=i?i.pathnameBase:"/",m=i&&i.route;{let S=m&&m.path||"";PR(u,!m||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let v=ei(),p;p=v;let y=p.pathname||"/",h=y;if(d!=="/"){let S=d.replace(/^\//,"").split("/");h="/"+y.replace(/^\//,"").split("/").slice(S.length).join("/")}let C=Oi(e,{pathname:h});return fr(m||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),fr(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Kk(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:_a([d,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?d:_a([d,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function Bk(){let e=Xk(),t=Du(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:a},"ErrorBoundary")," or"," ",l.createElement("code",{style:a},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,i)}var Hk=l.createElement(Bk,null),Vk=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?l.createElement(xa.Provider,{value:this.props.routeContext},l.createElement(Yb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Wk({routeContext:e,match:t,children:n}){let r=l.useContext(_l);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(xa.Provider,{value:e},n)}function Kk(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);$n(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let i=!1,s=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=u),d.route.id){let{loaderData:m,errors:v}=n,p=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||p){i=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((u,d,m)=>{let v,p=!1,y=null,h=null;n&&(v=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||Hk,i&&(s<0&&m===0?(PR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,h=null):s===m&&(p=!0,h=d.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,m+1)),g=()=>{let S;return v?S=y:p?S=h:d.route.Component?S=l.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,l.createElement(Wk,{match:d,routeContext:{outlet:u,matches:C,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?l.createElement(Vk,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:g(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):g()},null)}function Gb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uk(e){let t=l.useContext(_l);return $n(t,Gb(e)),t}function qk(e){let t=l.useContext(rd);return $n(t,Gb(e)),t}function Yk(e){let t=l.useContext(xa);return $n(t,Gb(e)),t}function Xb(e){let t=Yk(e),n=t.matches[t.matches.length-1];return $n(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Gk(){return Xb("useRouteId")}function Xk(){var r;let e=l.useContext(Yb),t=qk("useRouteError"),n=Xb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Qk(){let{router:e}=Uk("useNavigate"),t=Xb("useNavigate"),n=l.useRef(!1);return IR(()=>{n.current=!0}),l.useCallback(async(o,a={})=>{fr(n.current,RR),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var $1={};function PR(e,t,n){!t&&!$1[e]&&($1[e]=!0,fr(!1,n))}var E1={};function O1(e,t){!e&&!E1[t]&&(E1[t]=!0,console.warn(t))}function Zk(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&fr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:l.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&fr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&fr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Jk=["HydrateFallback","hydrateFallbackElement"],e3=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function t3({router:e,flushSync:t}){let[n,r]=l.useState(e.state),[o,a]=l.useState(),[i,s]=l.useState({isTransitioning:!1}),[u,d]=l.useState(),[m,v]=l.useState(),[p,y]=l.useState(),h=l.useRef(new Map),C=l.useCallback((w,{deletedFetchers:R,flushSync:$,viewTransitionOpts:O})=>{w.fetchers.forEach((N,P)=>{N.data!==void 0&&h.current.set(P,N.data)}),R.forEach(N=>h.current.delete(N)),O1($===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let I=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(O1(O==null||I,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!O||!I){t&&$?t(()=>r(w)):l.startTransition(()=>r(w));return}if(t&&$){t(()=>{m&&(u&&u.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let N=e.window.document.startViewTransition(()=>{t(()=>r(w))});N.finished.finally(()=>{t(()=>{d(void 0),v(void 0),a(void 0),s({isTransitioning:!1})})}),t(()=>v(N));return}m?(u&&u.resolve(),m.skipTransition(),y({state:w,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(w),s({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,m,u]);l.useLayoutEffect(()=>e.subscribe(C),[e,C]),l.useEffect(()=>{i.isTransitioning&&!i.flushSync&&d(new e3)},[i]),l.useEffect(()=>{if(u&&o&&e.window){let w=o,R=u.promise,$=e.window.document.startViewTransition(async()=>{l.startTransition(()=>r(w)),await R});$.finished.finally(()=>{d(void 0),v(void 0),a(void 0),s({isTransitioning:!1})}),v($)}},[o,u,e.window]),l.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,m,n.location,o]),l.useEffect(()=>{!i.isTransitioning&&p&&(a(p.state),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),y(void 0))},[i.isTransitioning,p]);let g=l.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,R,$)=>e.navigate(w,{state:R,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(w,R,$)=>e.navigate(w,{replace:!0,state:R,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[e]),S=e.basename||"/",x=l.useMemo(()=>({router:e,navigator:g,static:!1,basename:S}),[e,g,S]);return l.createElement(l.Fragment,null,l.createElement(_l.Provider,{value:x},l.createElement(rd.Provider,{value:n},l.createElement(OR.Provider,{value:h.current},l.createElement(qb.Provider,{value:i},l.createElement(o3,{basename:S,location:n.location,navigationType:n.historyAction,navigator:g},l.createElement(n3,{routes:e.routes,future:e.future,state:n})))))),null)}var n3=l.memo(r3);function r3({routes:e,future:t,state:n}){return Ak(e,void 0,n,t)}function V0({to:e,replace:t,state:n,relative:r}){$n(Ks(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=l.useContext(Sa);fr(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=l.useContext(xa),{pathname:i}=ei(),s=pv(),u=mv(e,fv(a),i,r==="path"),d=JSON.stringify(u);return l.useEffect(()=>{s(JSON.parse(d),{replace:t,state:n,relative:r})},[s,d,r,t,n]),null}function NR(e){return Fk(e.context)}function o3({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){$n(!Ks(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=l.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);typeof n=="string"&&(n=Vi(n));let{pathname:u="/",search:d="",hash:m="",state:v=null,key:p="default"}=n,y=l.useMemo(()=>{let h=Qo(u,i);return h==null?null:{location:{pathname:h,search:d,hash:m,state:v,key:p},navigationType:r}},[i,u,d,m,v,p,r]);return fr(y!=null,`<Router basename="${i}"> is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:l.createElement(Sa.Provider,{value:s},l.createElement(vv.Provider,{children:t,value:y}))}var nm="get",rm="application/x-www-form-urlencoded";function gv(e){return e!=null&&typeof e.tagName=="string"}function a3(e){return gv(e)&&e.tagName.toLowerCase()==="button"}function i3(e){return gv(e)&&e.tagName.toLowerCase()==="form"}function l3(e){return gv(e)&&e.tagName.toLowerCase()==="input"}function s3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c3(e,t){return e.button===0&&(!t||t==="_self")&&!s3(e)}var Rf=null;function u3(){if(Rf===null)try{new FormData(document.createElement("form"),0),Rf=!1}catch{Rf=!0}return Rf}var d3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yh(e){return e!=null&&!d3.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${rm}"`),null):e}function f3(e,t){let n,r,o,a,i;if(i3(e)){let s=e.getAttribute("action");r=s?Qo(s,t):null,n=e.getAttribute("method")||nm,o=yh(e.getAttribute("enctype"))||rm,a=new FormData(e)}else if(a3(e)||l3(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||s.getAttribute("action");if(r=u?Qo(u,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||nm,o=yh(e.getAttribute("formenctype"))||yh(s.getAttribute("enctype"))||rm,a=new FormData(s,e),!u3()){let{name:d,type:m,value:v}=e;if(m==="image"){let p=d?`${d}.`:"";a.append(`${p}x`,"0"),a.append(`${p}y`,"0")}else d&&a.append(d,v)}}else{if(gv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=nm,r=null,o=rm,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function Qb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function m3(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function v3(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function p3(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await m3(a,n);return i.links?i.links():[]}return[]}));return b3(r.flat(1).filter(v3).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function R1(e,t,n,r,o,a){let i=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,s=(u,d)=>{var m;return n[d].pathname!==u.pathname||((m=n[d].route.path)==null?void 0:m.endsWith("*"))&&n[d].params["*"]!==u.params["*"]};return a==="assets"?t.filter((u,d)=>i(u,d)||s(u,d)):a==="data"?t.filter((u,d)=>{var v;let m=r.routes[u.route.id];if(!m||!m.hasLoader)return!1;if(i(u,d)||s(u,d))return!0;if(u.route.shouldRevalidate){let p=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function g3(e,t,{includeHydrateFallback:n}={}){return h3(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function h3(e){return[...new Set(e)]}function y3(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function b3(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(y3(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var C3=new Set([100,101,204,205]);function S3(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Qo(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function MR(){let e=l.useContext(_l);return Qb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function x3(){let e=l.useContext(rd);return Qb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zb=l.createContext(void 0);Zb.displayName="FrameworkContext";function TR(){let e=l.useContext(Zb);return Qb(e,"You must render this element inside a <HydratedRouter> element"),e}function w3(e,t){let n=l.useContext(Zb),[r,o]=l.useState(!1),[a,i]=l.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:d,onMouseLeave:m,onTouchStart:v}=t,p=l.useRef(null);l.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let C=S=>{S.forEach(x=>{i(x.isIntersecting)})},g=new IntersectionObserver(C,{threshold:.5});return p.current&&g.observe(p.current),()=>{g.disconnect()}}},[e]),l.useEffect(()=>{if(r){let C=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(C)}}},[r]);let y=()=>{o(!0)},h=()=>{o(!1),i(!1)};return n?e!=="intent"?[a,p,{}]:[a,p,{onFocus:qc(s,y),onBlur:qc(u,h),onMouseEnter:qc(d,y),onMouseLeave:qc(m,h),onTouchStart:qc(v,y)}]:[!1,p,{}]}function qc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function $3({page:e,...t}){let{router:n}=MR(),r=l.useMemo(()=>Oi(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(O3,{page:e,matches:r,...t}):null}function E3(e){let{manifest:t,routeModules:n}=TR(),[r,o]=l.useState([]);return l.useEffect(()=>{let a=!1;return p3(e,t,n).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,n]),r}function O3({page:e,matches:t,...n}){let r=ei(),{manifest:o,routeModules:a}=TR(),{basename:i}=MR(),{loaderData:s,matches:u}=x3(),d=l.useMemo(()=>R1(e,t,u,o,r,"data"),[e,t,u,o,r]),m=l.useMemo(()=>R1(e,t,u,o,r,"assets"),[e,t,u,o,r]),v=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let h=new Set,C=!1;if(t.forEach(S=>{var w;let x=o.routes[S.route.id];!x||!x.hasLoader||(!d.some(R=>R.route.id===S.route.id)&&S.route.id in s&&((w=a[S.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?C=!0:h.add(S.route.id))}),h.size===0)return[];let g=S3(e,i);return C&&h.size>0&&g.searchParams.set("_routes",t.filter(S=>h.has(S.route.id)).map(S=>S.route.id).join(",")),[g.pathname+g.search]},[i,s,r,o,d,t,e,a]),p=l.useMemo(()=>g3(m,o),[m,o]),y=E3(m);return l.createElement(l.Fragment,null,v.map(h=>l.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...n})),p.map(h=>l.createElement("link",{key:h,rel:"modulepreload",href:h,...n})),y.map(({key:h,link:C})=>l.createElement("link",{key:h,...C})))}function R3(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var _R=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_R&&(window.__reactRouterVersion="7.6.2")}catch{}function I3(e,t){return gk({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:zj({window:t==null?void 0:t.window}),hydrationData:P3(),routes:e,mapRouteProperties:Zk,hydrationRouteProperties:Jk,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function P3(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:N3(e.errors)}),e}function N3(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Mm(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var DR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jR=l.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:s,target:u,to:d,preventScrollReset:m,viewTransition:v,...p},y){let{basename:h}=l.useContext(Sa),C=typeof d=="string"&&DR.test(d),g,S=!1;if(typeof d=="string"&&C&&(g=d,_R))try{let P=new URL(window.location.href),T=d.startsWith("//")?new URL(P.protocol+d):new URL(d),k=Qo(T.pathname,h);T.origin===P.origin&&k!=null?d=k+T.search+T.hash:S=!0}catch{fr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=kk(d,{relative:o}),[w,R,$]=w3(r,p),O=D3(d,{replace:i,state:s,target:u,preventScrollReset:m,relative:o,viewTransition:v});function I(P){t&&t(P),P.defaultPrevented||O(P)}let N=l.createElement("a",{...p,...$,href:g||x,onClick:S||a?t:I,ref:R3(y,R),target:u,"data-discover":!C&&n==="render"?"true":void 0});return w&&!C?l.createElement(l.Fragment,null,N,l.createElement($3,{page:x})):N});jR.displayName="Link";var M3=l.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:s,children:u,...d},m){let v=od(i,{relative:d.relative}),p=ei(),y=l.useContext(rd),{navigator:h,basename:C}=l.useContext(Sa),g=y!=null&&F3(v)&&s===!0,S=h.encodeLocation?h.encodeLocation(v).pathname:v.pathname,x=p.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,S=S.toLowerCase()),w&&C&&(w=Qo(w,C)||w);const R=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let $=x===S||!o&&x.startsWith(S)&&x.charAt(R)==="/",O=w!=null&&(w===S||!o&&w.startsWith(S)&&w.charAt(S.length)==="/"),I={isActive:$,isPending:O,isTransitioning:g},N=$?t:void 0,P;typeof r=="function"?P=r(I):P=[r,$?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let T=typeof a=="function"?a(I):a;return l.createElement(jR,{...d,"aria-current":N,className:P,ref:m,style:T,to:i,viewTransition:s},typeof u=="function"?u(I):u)});M3.displayName="NavLink";var T3=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=nm,action:s,onSubmit:u,relative:d,preventScrollReset:m,viewTransition:v,...p},y)=>{let h=z3(),C=L3(s,{relative:d}),g=i.toLowerCase()==="get"?"get":"post",S=typeof s=="string"&&DR.test(s),x=w=>{if(u&&u(w),w.defaultPrevented)return;w.preventDefault();let R=w.nativeEvent.submitter,$=(R==null?void 0:R.getAttribute("formmethod"))||i;h(R||w.currentTarget,{fetcherKey:t,method:$,navigate:n,replace:o,state:a,relative:d,preventScrollReset:m,viewTransition:v})};return l.createElement("form",{ref:y,method:g,action:C,onSubmit:r?u:x,...p,"data-discover":!S&&e==="render"?"true":void 0})});T3.displayName="Form";function _3(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kR(e){let t=l.useContext(_l);return $n(t,_3(e)),t}function D3(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let s=pv(),u=ei(),d=od(e,{relative:a});return l.useCallback(m=>{if(c3(m,t)){m.preventDefault();let v=n!==void 0?n:Di(u)===Di(d);s(e,{replace:v,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[u,s,d,n,r,t,e,o,a,i])}var j3=0,k3=()=>`__${String(++j3)}__`;function z3(){let{router:e}=kR("useSubmit"),{basename:t}=l.useContext(Sa),n=Gk();return l.useCallback(async(r,o={})=>{let{action:a,method:i,encType:s,formData:u,body:d}=f3(r,t);if(o.navigate===!1){let m=o.fetcherKey||k3();await e.fetch(m,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function L3(e,{relative:t}={}){let{basename:n}=l.useContext(Sa),r=l.useContext(xa);$n(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...od(e||".",{relative:t})},i=ei();if(e==null){a.search=i.search;let s=new URLSearchParams(a.search),u=s.getAll("index");if(u.some(m=>m==="")){s.delete("index"),u.filter(v=>v).forEach(v=>s.append("index",v));let m=s.toString();a.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:_a([n,a.pathname])),Di(a)}function F3(e,t={}){let n=l.useContext(qb);$n(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=kR("useViewTransitionState"),o=od(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Qo(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Qo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Nm(o.pathname,i)!=null||Nm(o.pathname,a)!=null}[...C3];var Zo=lR();const ju=Mo(Zo),A3=iR({__proto__:null,default:ju},[Zo]);/**
* react-router v7.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function B3(e){return l.createElement(t3,{flushSync:Zo.flushSync,...e})}const zR=l.createContext({});var bh={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var I1;function H3(){return I1||(I1=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(bh)),bh.exports}var V3=H3();const re=Mo(V3),W3={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"},Nr=Math.round;function Ch(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 P1=(e,t,n)=>n===0?e:e/100;function Yc(e,t){const n=t||255;return e>n?n:e<0?0:e}let If=class LR{constructor(t){Jr(this,"isValid",!0);Jr(this,"r",0);Jr(this,"g",0);Jr(this,"b",0);Jr(this,"a",1);Jr(this,"_h");Jr(this,"_s");Jr(this,"_l");Jr(this,"_v");Jr(this,"_max");Jr(this,"_min");Jr(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 a=function(i){return o.startsWith(i)};var r=a;const o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(a("rgb"))this.fromRgbString(o);else if(a("hsl"))this.fromHslString(o);else if(a("hsv")||a("hsb"))this.fromHsvString(o);else{const i=W3[o.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof LR)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Yc(t.r),this.g=Yc(t.g),this.b=Yc(t.b),this.a=typeof t.a=="number"?Yc(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(a){const i=a/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=Nr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let 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,a=s=>(r[s]-this[s])*o+this[s],i={r:Nr(a("r")),g:Nr(a("g")),b:Nr(a("b")),a:Nr(a("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=a=>Nr((this[a]*this.a+n[a]*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 a=Nr(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Nr(this.getSaturation()*100),r=Nr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Yc(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,a){return parseInt(n[o]+n[a||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}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=Nr(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,s=0;const u=t/60,d=(1-Math.abs(2*r-1))*n,m=d*(1-Math.abs(u%2-1));u>=0&&u<1?(a=d,i=m):u>=1&&u<2?(a=m,i=d):u>=2&&u<3?(i=d,s=m):u>=3&&u<4?(i=m,s=d):u>=4&&u<5?(a=m,s=d):u>=5&&u<6&&(a=d,s=m);const v=r-d/2;this.r=Nr((a+v)*255),this.g=Nr((i+v)*255),this.b=Nr((s+v)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=Nr(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),u=i-s,d=Nr(r*(1-n)*255),m=Nr(r*(1-n*u)*255),v=Nr(r*(1-n*(1-u))*255);switch(s){case 0:this.g=v,this.b=d;break;case 1:this.r=m,this.b=d;break;case 2:this.r=d,this.b=v;break;case 3:this.r=d,this.g=m;break;case 4:this.r=v,this.g=d;break;case 5:default:this.g=d,this.b=m;break}}fromHsvString(t){const n=Ch(t,P1);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Ch(t,P1);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Ch(t,(r,o)=>o.includes("%")?Nr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};const Pf=2,N1=.16,K3=.05,U3=.05,q3=.15,FR=5,AR=4,Y3=[{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 M1(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Pf*t:Math.round(e.h)+Pf*t:r=n?Math.round(e.h)+Pf*t:Math.round(e.h)-Pf*t,r<0?r+=360:r>=360&&(r-=360),r}function T1(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-N1*t:t===AR?r=e.s+N1:r=e.s+K3*t,r>1&&(r=1),n&&t===FR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function _1(e,t,n){let r;return n?r=e.v+U3*t:r=e.v-q3*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function G3(e,t={}){const n=[],r=new If(e),o=r.toHsv();for(let a=FR;a>0;a-=1){const i=new If({h:M1(o,a,!0),s:T1(o,a,!0),v:_1(o,a,!0)});n.push(i)}n.push(r);for(let a=1;a<=AR;a+=1){const i=new If({h:M1(o,a),s:T1(o,a),v:_1(o,a)});n.push(i)}return t.theme==="dark"?Y3.map(({index:a,amount:i})=>new If(t.backgroundColor||"#141414").mix(n[a],i).toHexString()):n.map(a=>a.toHexString())}const W0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];W0.primary=W0[5];function X3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Q3(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 D1="data-rc-order",j1="data-rc-priority",Z3="rc-util-key",K0=new Map;function BR({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Z3}function Jb(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function J3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function eC(e){return Array.from((K0.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function HR(e,t={}){if(!X3())return null;const{csp:n,prepend:r,priority:o=0}=t,a=J3(r),i=a==="prependQueue",s=document.createElement("style");s.setAttribute(D1,a),i&&o&&s.setAttribute(j1,`${o}`),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;const u=Jb(t),{firstChild:d}=u;if(r){if(i){const m=(t.styles||eC(u)).filter(v=>{if(!["prepend","prependQueue"].includes(v.getAttribute(D1)))return!1;const p=Number(v.getAttribute(j1)||0);return o>=p});if(m.length)return u.insertBefore(s,m[m.length-1].nextSibling),s}u.insertBefore(s,d)}else u.appendChild(s);return s}function e6(e,t={}){let{styles:n}=t;return n||(n=eC(Jb(t))),n.find(r=>r.getAttribute(BR(t))===e)}function t6(e,t){const n=K0.get(e);if(!n||!Q3(document,n)){const r=HR("",t),{parentNode:o}=r;K0.set(e,o),e.removeChild(r)}}function n6(e,t,n={}){var u,d,m;const r=Jb(n),o=eC(r),a={...n,styles:o};t6(r,a);const i=e6(t,a);if(i)return(u=a.csp)!=null&&u.nonce&&i.nonce!==((d=a.csp)==null?void 0:d.nonce)&&(i.nonce=(m=a.csp)==null?void 0:m.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const s=HR(e,a);return s.setAttribute(BR(a),t),s}function VR(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function r6(e){return VR(e)instanceof ShadowRoot}function o6(e){return r6(e)?VR(e):null}let U0={};const a6=e=>{};function i6(e,t){}function l6(e,t){}function s6(){U0={}}function WR(e,t,n){!t&&!U0[n]&&(e(!1,n),U0[n]=!0)}function hv(e,t){WR(i6,e,t)}function c6(e,t){WR(l6,e,t)}hv.preMessage=a6;hv.resetWarned=s6;hv.noteOnce=c6;function u6(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function d6(e,t){hv(e,`[@ant-design/icons] ${t}`)}function k1(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function z1(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[u6(n)]=r}return t},{})}function q0(e,t,n){return n?pe.createElement(e.tag,{key:t,...z1(e.attrs),...n},(e.children||[]).map((r,o)=>q0(r,`${t}-${e.tag}-${o}`))):pe.createElement(e.tag,{key:t,...z1(e.attrs)},(e.children||[]).map((r,o)=>q0(r,`${t}-${e.tag}-${o}`)))}function KR(e){return G3(e)[0]}function UR(e){return e?Array.isArray(e)?e:[e]:[]}const f6=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,m6=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(zR);let o=f6;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),l.useEffect(()=>{const a=e.current,i=o6(a);n6(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:i})},[])},wu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function v6({primaryColor:e,secondaryColor:t}){wu.primaryColor=e,wu.secondaryColor=t||KR(e),wu.calculated=!!t}function p6(){return{...wu}}const Us=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:a,secondaryColor:i,...s}=e,u=l.useRef();let d=wu;if(a&&(d={primaryColor:a,secondaryColor:i||KR(a)}),m6(u),d6(k1(t),`icon should be icon definiton, but got ${t}`),!k1(t))return null;let m=t;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(d.primaryColor,d.secondaryColor)}),q0(m.icon,`svg-${m.name}`,{className:n,onClick:r,style:o,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:u})};Us.displayName="IconReact";Us.getTwoToneColors=p6;Us.setTwoToneColors=v6;function qR(e){const[t,n]=UR(e);return Us.setTwoToneColors({primaryColor:t,secondaryColor:n})}function g6(){const e=Us.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}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)}qR(W0.primary);const no=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:a,tabIndex:i,onClick:s,twoToneColor:u,...d}=e,{prefixCls:m="anticon",rootClassName:v}=l.useContext(zR),p=re(v,m,{[`${m}-${r.name}`]:!!r.name,[`${m}-spin`]:!!o||r.name==="loading"},n);let y=i;y===void 0&&s&&(y=-1);const h=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[C,g]=UR(u);return l.createElement("span",Y0({role:"img","aria-label":r.name},d,{ref:t,tabIndex:y,onClick:s,className:p}),l.createElement(Us,{icon:r,primaryColor:C,secondaryColor:g,style:h}))});no.displayName="AntdIcon";no.getTwoToneColor=g6;no.setTwoToneColor=qR;var h6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};function G0(){return G0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G0.apply(this,arguments)}const y6=(e,t)=>l.createElement(no,G0({},e,{ref:t,icon:h6})),b6=l.forwardRef(y6);var C6={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"},S6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},x6={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"},w6={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"},$6={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"},E6={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"},O6={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"},R6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},I6={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"},P6={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"},N6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"};function X0(){return X0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X0.apply(this,arguments)}const M6=(e,t)=>l.createElement(no,X0({},e,{ref:t,icon:N6})),T6=l.forwardRef(M6);var _6={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"},D6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};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 j6=(e,t)=>l.createElement(no,Q0({},e,{ref:t,icon:D6})),k6=l.forwardRef(j6);var z6={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"},L6={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"},YR={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 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 F6=(e,t)=>l.createElement(no,Z0({},e,{ref:t,icon:YR})),A6=l.forwardRef(F6);var B6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},H6={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"},V6={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"},W6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"};function J0(){return J0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J0.apply(this,arguments)}const K6=(e,t)=>l.createElement(no,J0({},e,{ref:t,icon:W6})),U6=l.forwardRef(K6);var q6={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"},Y6={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"},G6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ey.apply(this,arguments)}const X6=(e,t)=>l.createElement(no,ey({},e,{ref:t,icon:G6})),Q6=l.forwardRef(X6);var Z6={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"},J6={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},ez={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"},tz={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"},nz={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"},rz={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"},oz={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"},az={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"},iz={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"},lz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ty.apply(this,arguments)}const sz=(e,t)=>l.createElement(no,ty({},e,{ref:t,icon:lz})),cz=l.forwardRef(sz);var uz={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"},dz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},fz={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"}}]},name:"pie-chart",theme:"outlined"};function ny(){return ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ny.apply(this,arguments)}const vz=(e,t)=>l.createElement(no,ny({},e,{ref:t,icon:mz})),pz=l.forwardRef(vz);var gz={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"},hz={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"},yz={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"},bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Cz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Sz={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"},xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},wz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},$z={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 ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(this,arguments)}const Ez=(e,t)=>l.createElement(no,ry({},e,{ref:t,icon:$z})),Oz=l.forwardRef(Ez);var Rz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};function oy(){return oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oy.apply(this,arguments)}const Iz=(e,t)=>l.createElement(no,oy({},e,{ref:t,icon:Rz})),Pz=l.forwardRef(Iz);var Nz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ay.apply(this,arguments)}const Mz=(e,t)=>l.createElement(no,ay({},e,{ref:t,icon:Nz})),GR=l.forwardRef(Mz);var Tz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iy.apply(this,arguments)}const _z=(e,t)=>l.createElement(no,iy({},e,{ref:t,icon:Tz})),Dz=l.forwardRef(_z);var jz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Sh={exports:{}},Fn={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var L1;function zz(){if(L1)return Fn;L1=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"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function C(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case e:switch(g=g.type,g){case n:case o:case r:case d:case m:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case u:case p:case v:case a:return g;default:return S}}case t:return S}}}return Fn.ContextConsumer=i,Fn.ContextProvider=a,Fn.Element=e,Fn.ForwardRef=u,Fn.Fragment=n,Fn.Lazy=p,Fn.Memo=v,Fn.Portal=t,Fn.Profiler=o,Fn.StrictMode=r,Fn.Suspense=d,Fn.SuspenseList=m,Fn.isAsyncMode=function(){return!1},Fn.isConcurrentMode=function(){return!1},Fn.isContextConsumer=function(g){return C(g)===i},Fn.isContextProvider=function(g){return C(g)===a},Fn.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Fn.isForwardRef=function(g){return C(g)===u},Fn.isFragment=function(g){return C(g)===n},Fn.isLazy=function(g){return C(g)===p},Fn.isMemo=function(g){return C(g)===v},Fn.isPortal=function(g){return C(g)===t},Fn.isProfiler=function(g){return C(g)===o},Fn.isStrictMode=function(g){return C(g)===r},Fn.isSuspense=function(g){return C(g)===d},Fn.isSuspenseList=function(g){return C(g)===m},Fn.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===d||g===m||g===y||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===v||g.$$typeof===a||g.$$typeof===i||g.$$typeof===u||g.$$typeof===h||g.getModuleId!==void 0)},Fn.typeOf=C,Fn}var F1;function Lz(){return F1||(F1=1,Sh.exports=zz()),Sh.exports}var xh=Lz();function Me(){return Me=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},Me.apply(null,arguments)}function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}var Fz=Symbol.for("react.element"),Az=Symbol.for("react.transitional.element"),Bz=Symbol.for("react.fragment");function XR(e){return e&&ht(e)==="object"&&(e.$$typeof===Fz||e.$$typeof===Az)&&e.type===Bz}function po(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return pe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(po(r)):XR(r)&&r.props?n=n.concat(po(r.props.children,t)):n.push(r))}),n}var ly={},Hz=function(t){};function Vz(e,t){}function Wz(e,t){}function Kz(){ly={}}function QR(e,t,n){!t&&!ly[n]&&(e(!1,n),ly[n]=!0)}function qn(e,t){QR(Vz,e,t)}function Uz(e,t){QR(Wz,e,t)}qn.preMessage=Hz;qn.resetWarned=Kz;qn.noteOnce=Uz;function qz(e,t){if(ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZR(e){var t=qz(e,"string");return ht(t)=="symbol"?t:t+""}function Y(e,t,n){return(t=ZR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A1(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 X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A1(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ku(e){return e instanceof HTMLElement||e instanceof SVGElement}function ad(e){return e&&ht(e)==="object"&&ku(e.nativeElement)?e.nativeElement:ku(e)?e:null}function om(e){var t=ad(e);if(t)return t;if(e instanceof pe.Component){var n;return(n=ju.findDOMNode)===null||n===void 0?void 0:n.call(ju,e)}return null}function Dl(e,t,n){var r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Yz=Number(l.version.split(".")[0]),zu=function(t,n){typeof t=="function"?t(n):ht(t)==="object"&&t&&"current"in t&&(t.current=n)},To=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(a){n.forEach(function(i){zu(i,a)})}},Wi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Dl(function(){return To.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},ha=function(t){var n,r;if(!t)return!1;if(tC(t)&&Yz>=19)return!0;var o=xh.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==xh.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==xh.ForwardRef)};function tC(e){return l.isValidElement(e)&&!XR(e)}var Gz=function(t){return tC(t)&&ha(t)},Ki=function(t){if(t&&tC(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},sy=l.createContext(null);function Xz(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),o=l.useRef([]),a=l.useContext(sy),i=l.useCallback(function(s,u,d){r.current+=1;var m=r.current;o.current.push({size:s,element:u,data:d}),Promise.resolve().then(function(){m===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,u,d)},[n,a]);return l.createElement(sy.Provider,{value:i},t)}var JR=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),cy=typeof window<"u"&&typeof document<"u"&&window.document===document,_m=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Qz=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_m):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Zz=2;function Jz(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){Qz(a)}function s(){var u=Date.now();if(n){if(u-o<Zz)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=u}return s}var eL=20,tL=["top","right","bottom","left","width","height","size","weight"],nL=typeof MutationObserver<"u",rL=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Jz(this.refresh.bind(this),eL)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!cy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nL?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!cy||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=tL.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),eI=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ts=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_m},tI=yv(0,0,0,0);function Dm(e){return parseFloat(e)||0}function B1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Dm(a)},0)}function oL(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Dm(i)}return n}function aL(e){var t=e.getBBox();return yv(0,0,t.width,t.height)}function iL(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return tI;var r=Ts(e).getComputedStyle(e),o=oL(r),a=o.left+o.right,i=o.top+o.bottom,s=Dm(r.width),u=Dm(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=B1(r,"left","right")+a),Math.round(u+i)!==n&&(u-=B1(r,"top","bottom")+i)),!sL(e)){var d=Math.round(s+a)-t,m=Math.round(u+i)-n;Math.abs(d)!==1&&(s-=d),Math.abs(m)!==1&&(u-=m)}return yv(o.left,o.top,s,u)}var lL=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ts(e).SVGGraphicsElement}:function(e){return e instanceof Ts(e).SVGElement&&typeof e.getBBox=="function"}}();function sL(e){return e===Ts(e).document.documentElement}function cL(e){return cy?lL(e)?aL(e):iL(e):tI}function uL(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return eI(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function yv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var dL=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yv(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=cL(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),fL=function(){function e(t,n){var r=uL(n);eI(this,{target:t,contentRect:r})}return e}(),mL=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new JR,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ts(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new dL(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ts(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new fL(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nI=typeof WeakMap<"u"?new WeakMap:new JR,rI=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rL.getInstance(),r=new mL(t,n,this);nI.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){rI.prototype[e]=function(){var t;return(t=nI.get(this))[e].apply(t,arguments)}});var vL=function(){return typeof _m.ResizeObserver<"u"?_m.ResizeObserver:rI}(),Ri=new Map;function pL(e){e.forEach(function(t){var n,r=t.target;(n=Ri.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var oI=new vL(pL);function gL(e,t){Ri.has(e)||(Ri.set(e,new Set),oI.observe(e)),Ri.get(e).add(t)}function hL(e,t){Ri.has(e)&&(Ri.get(e).delete(t),Ri.get(e).size||(oI.unobserve(e),Ri.delete(e)))}function rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(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,ZR(r.key),r)}}function or(e,t,n){return t&&H1(e.prototype,t),n&&H1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lu(e,t){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Lu(e,t)}function na(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&&Lu(e,t)}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fu(e)}function nC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nC=function(){return!!e})()}function ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yL(e,t){if(t&&(ht(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ft(e)}function ra(e){var t=nC();return function(){var n,r=Fu(e);if(t){var o=Fu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yL(this,n)}}var bL=function(e){na(n,e);var t=ra(n);function n(){return rr(this,n),t.apply(this,arguments)}return or(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function CL(e,t){var n=e.children,r=e.disabled,o=l.useRef(null),a=l.useRef(null),i=l.useContext(sy),s=typeof n=="function",u=s?n(o):n,d=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!s&&l.isValidElement(u)&&ha(u),v=m?Ki(u):null,p=Wi(v,o),y=function(){var S;return om(o.current)||(o.current&&ht(o.current)==="object"?om((S=o.current)===null||S===void 0?void 0:S.nativeElement):null)||om(a.current)};l.useImperativeHandle(t,function(){return y()});var h=l.useRef(e);h.current=e;var C=l.useCallback(function(g){var S=h.current,x=S.onResize,w=S.data,R=g.getBoundingClientRect(),$=R.width,O=R.height,I=g.offsetWidth,N=g.offsetHeight,P=Math.floor($),T=Math.floor(O);if(d.current.width!==P||d.current.height!==T||d.current.offsetWidth!==I||d.current.offsetHeight!==N){var k={width:P,height:T,offsetWidth:I,offsetHeight:N};d.current=k;var H=I===Math.round($)?$:I,A=N===Math.round(O)?O:N,_=X(X({},k),{},{offsetWidth:H,offsetHeight:A});i==null||i(_,g,w),x&&Promise.resolve().then(function(){x(_,g)})}},[]);return l.useEffect(function(){var g=y();return g&&!r&&gL(g,C),function(){return hL(g,C)}},[o.current,r]),l.createElement(bL,{ref:a},m?l.cloneElement(u,{ref:p}):u)}var SL=l.forwardRef(CL),xL="rc-observer-key";function wL(e,t){var n=e.children,r=typeof n=="function"?[n]:po(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(xL,"-").concat(a);return l.createElement(SL,Me({},e,{key:i,ref:a===0?t:void 0}),o)})}var _o=l.forwardRef(wL);_o.Collection=Xz;function uy(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 $L(e){if(Array.isArray(e))return uy(e)}function aI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rC(e,t){if(e){if(typeof e=="string")return uy(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)?uy(e,t):void 0}}function EL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _e(e){return $L(e)||aI(e)||rC(e)||EL()}var iI=function(t){return+setTimeout(t,16)},lI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(iI=function(t){return window.requestAnimationFrame(t)},lI=function(t){return window.cancelAnimationFrame(t)});var V1=0,oC=new Map;function sI(e){oC.delete(e)}var cn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;V1+=1;var r=V1;function o(a){if(a===0)sI(r),t();else{var i=iI(function(){o(a-1)});oC.set(r,i)}}return o(n),r};cn.cancel=function(e){var t=oC.get(e);return sI(e),lI(t)};function cI(e){if(Array.isArray(e))return e}function OL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],u=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(m){d=!0,o=m}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return s}}function uI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e,t){return cI(e)||OL(e,t)||rC(e,t)||uI()}function Au(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)}function Tr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dy(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var W1="data-rc-order",K1="data-rc-priority",RL="rc-util-key",fy=new Map;function dI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):RL}function bv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function IL(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function aC(e){return Array.from((fy.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Tr())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=IL(r),s=i==="prependQueue",u=document.createElement("style");u.setAttribute(W1,i),s&&a&&u.setAttribute(K1,"".concat(a)),n!=null&&n.nonce&&(u.nonce=n==null?void 0:n.nonce),u.innerHTML=e;var d=bv(t),m=d.firstChild;if(r){if(s){var v=(t.styles||aC(d)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(W1)))return!1;var y=Number(p.getAttribute(K1)||0);return a>=y});if(v.length)return d.insertBefore(u,v[v.length-1].nextSibling),u}d.insertBefore(u,m)}else d.appendChild(u);return u}function mI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bv(t);return(t.styles||aC(n)).find(function(r){return r.getAttribute(dI(t))===e})}function Bu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mI(e,t);if(n){var r=bv(t);r.removeChild(n)}}function PL(e,t){var n=fy.get(e);if(!n||!dy(document,n)){var r=fI("",t),o=r.parentNode;fy.set(e,o),e.removeChild(r)}}function Xa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=bv(n),o=aC(r),a=X(X({},n),{},{styles:o});PL(r,a);var i=mI(t,a);if(i){var s,u;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((u=a.csp)===null||u===void 0?void 0:u.nonce)){var d;i.nonce=(d=a.csp)===null||d===void 0?void 0:d.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var m=fI(e,a);return m.setAttribute(dI(a),t),m}function NL(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 jt(e,t){if(e==null)return{};var n,r,o=NL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ya(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=r.has(a);if(qn(!u,"Warning: There may be circular references"),u)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var d=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var m=0;m<a.length;m++)if(!o(a[m],i[m],d))return!1;return!0}if(a&&i&&ht(a)==="object"&&ht(i)==="object"){var v=Object.keys(a);return v.length!==Object.keys(i).length?!1:v.every(function(p){return o(a[p],i[p],d)})}return!1}return o(e,t)}var ML="%";function my(e){return e.join(ML)}var TL=function(){function e(t){rr(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),this.instanceId=t}return or(e,[{key:"get",value:function(n){return this.opGet(my(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(my(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),_s="data-token-hash",va="data-css-hash",Ii="__cssinjs_instance__";function _L(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(va,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ii]=o[Ii]||e,o[Ii]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(va,"]"))).forEach(function(o){var a=o.getAttribute(va);if(r[a]){if(o[Ii]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new TL(e)}var id=l.createContext({hashPriority:"low",cache:_L(),defaultCache:!0});function DL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var iC=function(){function e(){rr(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return or(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var u;i=(u=i)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(d,m){var v=ce(d,2),p=v[1];return o.internalGet(m)[1]<p?[m,o.internalGet(m)[1]]:d},[this.keys[0],this.cacheCallTimes]),i=ce(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var u=this.cache;n.forEach(function(d,m){if(m===n.length-1)u.set(d,{value:[r,o.cacheCallTimes++]});else{var v=u.get(d);v?v.map||(v.map=new Map):u.set(d,{map:new Map}),u=u.get(d).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!DL(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Y(iC,"MAX_CACHE_SIZE",20);Y(iC,"MAX_CACHE_OFFSET",5);var U1=0,vI=function(){function e(t){rr(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=U1,t.length===0&&(t.length>0,void 0),U1+=1}return or(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),wh=new iC;function jm(e){var t=Array.isArray(e)?e:[e];return wh.has(t)||wh.set(t,new vI(t)),wh.get(t)}var jL=new WeakMap,$h={};function kL(e,t){for(var n=jL,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has($h)||n.set($h,e()),n.get($h)}var q1=new WeakMap;function $u(e){var t=q1.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof vI?t+=r.id:r&&ht(r)==="object"?t+=$u(r):t+=r}),t=Au(t),q1.set(e,t)),t}function Y1(e,t){return Au("".concat(t,"_").concat($u(e)))}var vy=Tr();function le(e){return typeof e=="number"?"".concat(e,"px"):e}function km(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=X(X({},o),{},(r={},Y(r,_s,t),Y(r,va,n),r)),s=Object.keys(i).map(function(u){var d=i[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var am=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},zL=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=ce(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},pI=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,u,d=ce(i,2),m=d[0],v=d[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[m])a[m]=v;else if((typeof v=="string"||typeof v=="number")&&!(r!=null&&(u=r.ignore)!==null&&u!==void 0&&u[m])){var p,y=am(m,r==null?void 0:r.prefix);o[y]=typeof v=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[m])?"".concat(v,"px"):String(v),a[m]="var(".concat(y,")")}}),[a,zL(o,n,{scope:r==null?void 0:r.scope})]},G1=Tr()?l.useLayoutEffect:l.useEffect,dn=function(t,n){var r=l.useRef(!0);G1(function(){return t(r.current)},n),G1(function(){return r.current=!1,function(){r.current=!0}},[])},py=function(t,n){dn(function(r){if(!r)return t()},n)},LL=X({},dv),X1=LL.useInsertionEffect,FL=function(t,n,r){l.useMemo(t,r),dn(function(){return n(!0)},r)},AL=X1?function(e,t,n){return X1(function(){return e(),t()},n)}:FL,BL=X({},dv),HL=BL.useInsertionEffect,VL=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},WL=function(){return function(t){t()}},KL=typeof HL<"u"?VL:WL;function lC(e,t,n,r,o){var a=l.useContext(id),i=a.cache,s=[e].concat(_e(t)),u=my(s),d=KL([u]),m=function(h){i.opUpdate(u,function(C){var g=C||[void 0,void 0],S=ce(g,2),x=S[0],w=x===void 0?0:x,R=S[1],$=R,O=$||n(),I=[w,O];return h?h(I):I})};l.useMemo(function(){m()},[u]);var v=i.opGet(u),p=v[1];return AL(function(){o==null||o(p)},function(y){return m(function(h){var C=ce(h,2),g=C[0],S=C[1];return y&&g===0&&(o==null||o(p)),[g+1,S]}),function(){i.opUpdate(u,function(h){var C=h||[],g=ce(C,2),S=g[0],x=S===void 0?0:S,w=g[1],R=x-1;return R===0?(d(function(){(y||!i.opGet(u))&&(r==null||r(w,!1))}),null):[x-1,w]})}},[u]),p}var UL={},qL="css",fl=new Map;function YL(e){fl.set(e,(fl.get(e)||0)+1)}function GL(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_s,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ii]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var XL=0;function QL(e,t){fl.set(e,(fl.get(e)||0)-1);var n=Array.from(fl.keys()),r=n.filter(function(o){var a=fl.get(o)||0;return a<=0});n.length-r.length>XL&&r.forEach(function(o){GL(o,t),fl.delete(o)})}var gI=function(t,n,r,o){var a=r.getDerivativeToken(t),i=X(X({},a),n);return o&&(i=o(i)),i},hI="token";function ZL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(id),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,u=n.override,d=u===void 0?UL:u,m=n.formatToken,v=n.getComputedToken,p=n.cssVar,y=kL(function(){return Object.assign.apply(Object,[{}].concat(_e(t)))},t),h=$u(y),C=$u(d),g=p?$u(p):"",S=lC(hI,[s,e.id,h,C,g],function(){var x,w=v?v(y,d,e):gI(y,d,e,m),R=X({},w),$="";if(p){var O=pI(w,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),I=ce(O,2);w=I[0],$=I[1]}var N=Y1(w,s);w._tokenKey=N,R._tokenKey=Y1(R,s);var P=(x=p==null?void 0:p.key)!==null&&x!==void 0?x:N;w._themeKey=P,YL(P);var T="".concat(qL,"-").concat(Au(N));return w._hashId=T,[w,T,R,$,(p==null?void 0:p.key)||""]},function(x){QL(x[0]._themeKey,o)},function(x){var w=ce(x,4),R=w[0],$=w[3];if(p&&$){var O=Xa($,Au("css-variables-".concat(R._themeKey)),{mark:va,prepend:"queue",attachTo:a,priority:-999});O[Ii]=o,O.setAttribute(_s,R._themeKey)}});return S}var JL=function(t,n,r){var o=ce(t,5),a=o[2],i=o[3],s=o[4],u=r||{},d=u.plain;if(!i)return null;var m=a._tokenKey,v=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},y=km(i,s,m,p,d);return[v,m,y]},e8={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},yI="comm",bI="rule",CI="decl",t8="@import",n8="@namespace",r8="@keyframes",o8="@layer",SI=Math.abs,sC=String.fromCharCode;function xI(e){return e.trim()}function im(e,t,n){return e.replace(t,n)}function a8(e,t,n){return e.indexOf(t,n)}function Os(e,t){return e.charCodeAt(t)|0}function Ds(e,t,n){return e.slice(t,n)}function Ta(e){return e.length}function i8(e){return e.length}function Nf(e,t){return t.push(e),e}var Cv=1,js=1,wI=0,Jo=0,br=0,qs="";function cC(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Cv,column:js,length:i,return:"",siblings:s}}function l8(){return br}function s8(){return br=Jo>0?Os(qs,--Jo):0,js--,br===10&&(js=1,Cv--),br}function pa(){return br=Jo<wI?Os(qs,Jo++):0,js++,br===10&&(js=1,Cv++),br}function Pi(){return Os(qs,Jo)}function lm(){return Jo}function Sv(e,t){return Ds(qs,e,t)}function Hu(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 c8(e){return Cv=js=1,wI=Ta(qs=e),Jo=0,[]}function u8(e){return qs="",e}function Eh(e){return xI(Sv(Jo-1,gy(e===91?e+2:e===40?e+1:e)))}function d8(e){for(;(br=Pi())&&br<33;)pa();return Hu(e)>2||Hu(br)>3?"":" "}function f8(e,t){for(;--t&&pa()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return Sv(e,lm()+(t<6&&Pi()==32&&pa()==32))}function gy(e){for(;pa();)switch(br){case e:return Jo;case 34:case 39:e!==34&&e!==39&&gy(br);break;case 40:e===41&&gy(e);break;case 92:pa();break}return Jo}function m8(e,t){for(;pa()&&e+br!==57;)if(e+br===84&&Pi()===47)break;return"/*"+Sv(t,Jo-1)+"*"+sC(e===47?e:pa())}function v8(e){for(;!Hu(Pi());)pa();return Sv(e,Jo)}function p8(e){return u8(sm("",null,null,null,[""],e=c8(e),0,[0],e))}function sm(e,t,n,r,o,a,i,s,u){for(var d=0,m=0,v=i,p=0,y=0,h=0,C=1,g=1,S=1,x=0,w="",R=o,$=a,O=r,I=w;g;)switch(h=x,x=pa()){case 40:if(h!=108&&Os(I,v-1)==58){a8(I+=im(Eh(x),"&","&\f"),"&\f",SI(d?s[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=Eh(x);break;case 9:case 10:case 13:case 32:I+=d8(h);break;case 92:I+=f8(lm()-1,7);continue;case 47:switch(Pi()){case 42:case 47:Nf(g8(m8(pa(),lm()),t,n,u),u),(Hu(h||1)==5||Hu(Pi()||1)==5)&&Ta(I)&&Ds(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*C:s[d++]=Ta(I)*S;case 125*C:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+m:S==-1&&(I=im(I,/\f/g,"")),y>0&&(Ta(I)-v||C===0&&h===47)&&Nf(y>32?Z1(I+";",r,n,v-1,u):Z1(im(I," ","")+";",r,n,v-2,u),u);break;case 59:I+=";";default:if(Nf(O=Q1(I,t,n,d,m,o,s,w,R=[],$=[],v,a),a),x===123)if(m===0)sm(I,t,O,O,R,a,v,s,$);else{switch(p){case 99:if(Os(I,3)===110)break;case 108:if(Os(I,2)===97)break;default:m=0;case 100:case 109:case 115:}m?sm(e,O,O,r&&Nf(Q1(e,O,O,0,0,o,s,w,o,R=[],v,$),$),o,$,v,s,r?R:$):sm(I,O,O,O,[""],$,0,s,$)}}d=m=y=0,C=S=1,w=I="",v=i;break;case 58:v=1+Ta(I),y=h;default:if(C<1){if(x==123)--C;else if(x==125&&C++==0&&s8()==125)continue}switch(I+=sC(x),x*C){case 38:S=m>0?1:(I+="\f",-1);break;case 44:s[d++]=(Ta(I)-1)*S,S=1;break;case 64:Pi()===45&&(I+=Eh(pa())),p=Pi(),m=v=Ta(w=I+=v8(lm())),x++;break;case 45:h===45&&Ta(I)==2&&(C=0)}}return a}function Q1(e,t,n,r,o,a,i,s,u,d,m,v){for(var p=o-1,y=o===0?a:[""],h=i8(y),C=0,g=0,S=0;C<r;++C)for(var x=0,w=Ds(e,p+1,p=SI(g=i[C])),R=e;x<h;++x)(R=xI(g>0?y[x]+" "+w:im(w,/&\f/g,y[x])))&&(u[S++]=R);return cC(e,t,n,o===0?bI:s,u,d,m,v)}function g8(e,t,n,r){return cC(e,t,n,yI,sC(l8()),Ds(e,2,-2),0,r)}function Z1(e,t,n,r,o){return cC(e,t,n,CI,Ds(e,0,r),Ds(e,r+1,-1),r,o)}function hy(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function h8(e,t,n,r){switch(e.type){case o8:if(e.children.length)break;case t8:case n8:case CI:return e.return=e.return||e.value;case yI:return"";case r8:return e.return=e.value+"{"+hy(e.children,r)+"}";case bI:if(!Ta(e.value=e.props.join(",")))return""}return Ta(n=hy(e.children,r))?e.return=e.value+"{"+n+"}":""}var J1="data-ant-cssinjs-cache-path",$I="_FILE_STYLE__",yl,EI=!0;function y8(){if(!yl&&(yl={},Tr())){var e=document.createElement("div");e.className=J1,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=ce(a,2),s=i[0],u=i[1];yl[s]=u});var n=document.querySelector("style[".concat(J1,"]"));if(n){var r;EI=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function b8(e){return y8(),!!yl[e]}function C8(e){var t=yl[e],n=null;if(t&&Tr())if(EI)n=$I;else{var r=document.querySelector("style[".concat(va,'="').concat(yl[e],'"]'));r?n=r.innerHTML:delete yl[e]}return[n,t]}var S8="_skip_check_",OI="_multi_value_";function cm(e){var t=hy(p8(e),h8);return t.replace(/\{%%%\:[^;];}/g,";")}function x8(e){return ht(e)==="object"&&e&&(S8 in e||OI in e)}function e$(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,u=i.trim().split(/\s+/),d=u[0]||"",m=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(m).concat(o).concat(d.slice(m.length)),[d].concat(_e(u.slice(1))).join(" ")});return a.join(",")}var w8=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,u=n.layer;n.path;var d=n.hashPriority,m=n.transformers,v=m===void 0?[]:m;n.linters;var p="",y={};function h(S){var x=S.getName(s);if(!y[x]){var w=e(S.style,n,{root:!1,parentSelectors:i}),R=ce(w,1),$=R[0];y[x]="@keyframes ".concat(S.getName(s)).concat($)}}function C(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(w){Array.isArray(w)?C(w,x):w&&x.push(w)}),x}var g=C(Array.isArray(t)?t:[t]);return g.forEach(function(S){var x=typeof S=="string"&&!o?{}:S;if(typeof x=="string")p+="".concat(x,`
`);else if(x._keyframe)h(x);else{var w=v.reduce(function(R,$){var O;return($==null||(O=$.visit)===null||O===void 0?void 0:O.call($,R))||R},x);Object.keys(w).forEach(function(R){var $=w[R];if(ht($)==="object"&&$&&(R!=="animationName"||!$._keyframe)&&!x8($)){var O=!1,I=R.trim(),N=!1;(o||a)&&s?I.startsWith("@")?O=!0:I==="&"?I=e$("",s,d):I=e$(R,s,d):o&&!s&&(I==="&"||I==="")&&(I="",N=!0);var P=e($,n,{root:N,injectHash:O,parentSelectors:[].concat(_e(i),[I])}),T=ce(P,2),k=T[0],H=T[1];y=X(X({},y),H),p+="".concat(I).concat(k)}else{let D=function(j,z){var F=j.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),W=z;!e8[j]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),j==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(h(z),W=z.getName(s)),p+="".concat(F,":").concat(W,";")};var A,_=(A=$==null?void 0:$.value)!==null&&A!==void 0?A:$;ht($)==="object"&&$!==null&&$!==void 0&&$[OI]&&Array.isArray(_)?_.forEach(function(j){D(R,j)}):D(R,_)}})}}),o?u&&(p&&(p="@layer ".concat(u.name," {").concat(p,"}")),u.dependencies&&(y["@layer ".concat(u.name)]=u.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(u.name,";")}).join(`
`))):p="{".concat(p,"}"),[p,y]};function RI(e,t){return Au("".concat(e.join("%")).concat(t))}function $8(){return null}var II="style";function yy(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,u=e.order,d=u===void 0?0:u,m=l.useContext(id),v=m.autoClear;m.mock;var p=m.defaultCache,y=m.hashPriority,h=m.container,C=m.ssrInline,g=m.transformers,S=m.linters,x=m.cache,w=m.layer,R=n._tokenKey,$=[R];w&&$.push("layer"),$.push.apply($,_e(r));var O=vy,I=lC(II,$,function(){var H=$.join("|");if(b8(H)){var A=C8(H),_=ce(A,2),D=_[0],j=_[1];if(D)return[D,R,j,{},s,d]}var z=t(),F=w8(z,{hashId:o,hashPriority:y,layer:w?a:void 0,path:r.join("-"),transformers:g,linters:S}),W=ce(F,2),K=W[0],B=W[1],V=cm(K),U=RI($,V);return[V,R,U,B,s,d]},function(H,A){var _=ce(H,3),D=_[2];(A||v)&&vy&&Bu(D,{mark:va})},function(H){var A=ce(H,4),_=A[0];A[1];var D=A[2],j=A[3];if(O&&_!==$I){var z={mark:va,prepend:w?!1:"queue",attachTo:h,priority:d},F=typeof i=="function"?i():i;F&&(z.csp={nonce:F});var W=[],K=[];Object.keys(j).forEach(function(V){V.startsWith("@layer")?W.push(V):K.push(V)}),W.forEach(function(V){Xa(cm(j[V]),"_layer-".concat(V),X(X({},z),{},{prepend:!0}))});var B=Xa(_,D,z);B[Ii]=x.instanceId,B.setAttribute(_s,R),K.forEach(function(V){Xa(cm(j[V]),"_effect-".concat(V),z)})}}),N=ce(I,3),P=N[0],T=N[1],k=N[2];return function(H){var A;if(!C||O||!p)A=l.createElement($8,null);else{var _;A=l.createElement("style",Me({},(_={},Y(_,_s,T),Y(_,va,k),_),{dangerouslySetInnerHTML:{__html:P}}))}return l.createElement(l.Fragment,null,A,H)}}var E8=function(t,n,r){var o=ce(t,6),a=o[0],i=o[1],s=o[2],u=o[3],d=o[4],m=o[5],v=r||{},p=v.plain;if(d)return null;var y=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return y=km(a,i,s,h,p),u&&Object.keys(u).forEach(function(C){if(!n[C]){n[C]=!0;var g=cm(u[C]),S=km(g,i,"_effect-".concat(C),h,p);C.startsWith("@layer")?y=S+y:y+=S}}),[m,s,y]},PI="cssVar",O8=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,u=t.scope,d=u===void 0?"":u,m=l.useContext(id),v=m.cache.instanceId,p=m.container,y=s._tokenKey,h=[].concat(_e(t.path),[r,d,y]),C=lC(PI,h,function(){var g=n(),S=pI(g,r,{prefix:o,unitless:a,ignore:i,scope:d}),x=ce(S,2),w=x[0],R=x[1],$=RI(h,R);return[w,R,$,r]},function(g){var S=ce(g,3),x=S[2];vy&&Bu(x,{mark:va})},function(g){var S=ce(g,3),x=S[1],w=S[2];if(x){var R=Xa(x,w,{mark:va,prepend:"queue",attachTo:p,priority:-999});R[Ii]=v,R.setAttribute(_s,r)}});return C},R8=function(t,n,r){var o=ce(t,4),a=o[1],i=o[2],s=o[3],u=r||{},d=u.plain;if(!a)return null;var m=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},p=km(a,s,i,v,d);return[m,i,p]},Gc;Gc={},Y(Gc,II,E8),Y(Gc,hI,JL),Y(Gc,PI,R8);var xn=function(){function e(t,n){rr(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=n}return or(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function ss(e){return e.notSplit=!0,e}ss(["borderTop","borderBottom"]),ss(["borderTop"]),ss(["borderBottom"]),ss(["borderLeft","borderRight"]),ss(["borderLeft"]),ss(["borderRight"]);var uC=l.createContext({});function NI(e){return cI(e)||aI(e)||rC(e)||uI()}function eo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function MI(e,t,n,r){if(!t.length)return n;var o=NI(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=_e(e):s=X({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=MI(s[a],i,n,r),s}function Go(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!eo(e,t.slice(0,-1))?e:MI(e,t,n,r)}function I8(e){return ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function t$(e){return Array.isArray(e)?[]:{}}var P8=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Cs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t$(t[0]);return t.forEach(function(o){function a(i,s){var u=new Set(s),d=eo(o,i),m=Array.isArray(d);if(m||I8(d)){if(!u.has(d)){u.add(d);var v=eo(r,i);m?r=Go(r,i,[]):(!v||ht(v)!=="object")&&(r=Go(r,i,t$(d))),P8(d).forEach(function(p){a([].concat(_e(i),[p]),u)})}}else r=Go(r,i,d)}a([])}),r}function N8(){}const M8=l.createContext({}),Ui=()=>{const e=()=>{};return e.deprecated=N8,e},TI=l.createContext(void 0);var _I={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"},T8={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},_8=X(X({},T8),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const DI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zm={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},_8),timePickerLocale:Object.assign({},DI)},wo="${label} is not a valid ${type}",ea={locale:"en",Pagination:_I,DatePicker:zm,TimePicker:DI,Calendar:zm,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let um=Object.assign({},ea.Modal),dm=[];const n$=()=>dm.reduce((e,t)=>Object.assign(Object.assign({},e),t),ea.Modal);function D8(e){if(e){const t=Object.assign({},e);return dm.push(t),um=n$(),()=>{dm=dm.filter(n=>n!==t),um=n$()}}um=Object.assign({},ea.Modal)}function jI(){return um}const dC=l.createContext(void 0),ho=(e,t)=>{const n=l.useContext(dC),r=l.useMemo(()=>{var a;const i=t||ea[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=l.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?ea.locale:a},[n]);return[r,o]},j8="internalMark",k8=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>D8(t==null?void 0:t.Modal),[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(dC.Provider,{value:o},n)},fC={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"},ks=Object.assign(Object.assign({},fC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Mr=Math.round;function Oh(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 r$=(e,t,n)=>n===0?e:e/100;function Xc(e,t){const n=t||255;return e>n?n:e<0?0:e}class tn{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let a=function(i){return o.startsWith(i)};var r=a;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):a("rgb")?this.fromRgbString(o):a("hsl")?this.fromHslString(o):(a("hsv")||a("hsb"))&&this.fromHsvString(o)}else if(t instanceof tn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Xc(t.r),this.g=Xc(t.g),this.b=Xc(t.b),this.a=typeof t.a=="number"?Xc(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(a){const i=a/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=Mr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let 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,a=s=>(r[s]-this[s])*o+this[s],i={r:Mr(a("r")),g:Mr(a("g")),b:Mr(a("b")),a:Mr(a("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=a=>Mr((this[a]*this.a+n[a]*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 a=Mr(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Mr(this.getSaturation()*100),r=Mr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Xc(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,a){return parseInt(n[o]+n[a||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}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=Mr(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,s=0;const u=t/60,d=(1-Math.abs(2*r-1))*n,m=d*(1-Math.abs(u%2-1));u>=0&&u<1?(a=d,i=m):u>=1&&u<2?(a=m,i=d):u>=2&&u<3?(i=d,s=m):u>=3&&u<4?(i=m,s=d):u>=4&&u<5?(a=m,s=d):u>=5&&u<6&&(a=d,s=m);const v=r-d/2;this.r=Mr((a+v)*255),this.g=Mr((i+v)*255),this.b=Mr((s+v)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=Mr(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),u=i-s,d=Mr(r*(1-n)*255),m=Mr(r*(1-n*u)*255),v=Mr(r*(1-n*(1-u))*255);switch(s){case 0:this.g=v,this.b=d;break;case 1:this.r=m,this.b=d;break;case 2:this.r=d,this.b=v;break;case 3:this.r=d,this.g=m;break;case 4:this.r=v,this.g=d;break;case 5:default:this.g=d,this.b=m;break}}fromHsvString(t){const n=Oh(t,r$);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Oh(t,r$);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Oh(t,(r,o)=>o.includes("%")?Mr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Mf=2,o$=.16,z8=.05,L8=.05,F8=.15,kI=5,zI=4,A8=[{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 a$(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Mf*t:Math.round(e.h)+Mf*t:r=n?Math.round(e.h)+Mf*t:Math.round(e.h)-Mf*t,r<0?r+=360:r>=360&&(r-=360),r}function i$(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-o$*t:t===zI?r=e.s+o$:r=e.s+z8*t,r>1&&(r=1),n&&t===kI&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function l$(e,t,n){var r;return n?r=e.v+L8*t:r=e.v-F8*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Cl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new tn(e),o=r.toHsv(),a=kI;a>0;a-=1){var i=new tn({h:a$(o,a,!0),s:i$(o,a,!0),v:l$(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=zI;s+=1){var u=new tn({h:a$(o,s),s:i$(o,s),v:l$(o,s)});n.push(u)}return t.theme==="dark"?A8.map(function(d){var m=d.index,v=d.amount;return new tn(t.backgroundColor||"#141414").mix(n[m],v).toHexString()}):n.map(function(d){return d.toHexString()})}var Rs={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"},by=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];by.primary=by[5];var Cy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Cy.primary=Cy[5];var Sy=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Sy.primary=Sy[5];var xy=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];xy.primary=xy[5];var wy=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];wy.primary=wy[5];var $y=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$y.primary=$y[5];var Ey=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ey.primary=Ey[5];var Oy=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Oy.primary=Oy[5];var zs=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zs.primary=zs[5];var Ry=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ry.primary=Ry[5];var Iy=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Iy.primary=Iy[5];var Py=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Py.primary=Py[5];var Ny=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ny.primary=Ny[5];var Rh={red:by,volcano:Cy,orange:Sy,gold:xy,yellow:wy,lime:$y,green:Ey,cyan:Oy,blue:zs,geekblue:Ry,purple:Iy,magenta:Py,grey:Ny};function LI(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:u,colorTextBase:d}=e,m=t(s),v=t(r),p=t(o),y=t(a),h=t(i),C=n(u,d),g=e.colorLink||e.colorInfo,S=t(g),x=new tn(y[1]).mix(new tn(y[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:x,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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new tn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const B8=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 H8(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},B8(r))}const FI=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function fm(e){return(e+8)/e}function V8(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:fm(n)}))}const AI=e=>{const t=V8(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],u=r[0],d=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:d,lineHeightSM:u,fontHeight:Math.round(s*o),fontHeightLG:Math.round(d*i),fontHeightSM:Math.round(u*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function W8(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ho=(e,t)=>new tn(e).setA(t).toRgbString(),Qc=(e,t)=>new tn(e).darken(t).toHexString(),K8=e=>{const t=Cl(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]}},U8=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ho(r,.88),colorTextSecondary:Ho(r,.65),colorTextTertiary:Ho(r,.45),colorTextQuaternary:Ho(r,.25),colorFill:Ho(r,.15),colorFillSecondary:Ho(r,.06),colorFillTertiary:Ho(r,.04),colorFillQuaternary:Ho(r,.02),colorBgSolid:Ho(r,1),colorBgSolidHover:Ho(r,.75),colorBgSolidActive:Ho(r,.95),colorBgLayout:Qc(n,4),colorBgContainer:Qc(n,0),colorBgElevated:Qc(n,0),colorBgSpotlight:Ho(r,.85),colorBgBlur:"transparent",colorBorder:Qc(n,15),colorBorderSecondary:Qc(n,6)}};function xv(e){Rs.pink=Rs.magenta,Rh.pink=Rh.magenta;const t=Object.keys(fC).map(n=>{const r=e[n]===Rs[n]?Rh[n]:Cl(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),LI(e,{generateColorPalettes:K8,generateNeutralColorPalettes:U8})),AI(e.fontSize)),W8(e)),FI(e)),H8(e))}const mC=jm(xv),Vu={token:ks,override:{override:ks},hashed:!0},vC=pe.createContext(Vu),Wu="ant",wv="anticon",q8=["outlined","borderless","filled","underlined"],Y8=(e,t)=>t||(e?`${Wu}-${e}`:Wu),Dt=l.createContext({getPrefixCls:Y8,iconPrefixCls:wv}),{Consumer:Cie}=Dt,s$={};function Er(e){const t=l.useContext(Dt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:s$,styles:s$},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const G8=`-ant-${Date.now()}-${Math.random()}`;function X8(e,t){const n={},r=(i,s)=>{let u=i.clone();return u=(s==null?void 0:s(u))||u,u.toRgbString()},o=(i,s)=>{const u=new tn(i),d=Cl(u.toRgbString());n[`${s}-color`]=r(u),n[`${s}-color-disabled`]=d[1],n[`${s}-color-hover`]=d[4],n[`${s}-color-active`]=d[6],n[`${s}-color-outline`]=u.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=d[0],n[`${s}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new tn(t.primaryColor),s=Cl(i.toRgbString());s.forEach((d,m)=>{n[`primary-${m+1}`]=d}),n["primary-color-deprecated-l-35"]=r(i,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(i,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(i,d=>d.setA(d.a*.12));const u=new tn(s[0]);n["primary-color-active-deprecated-f-30"]=r(u,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(u,d=>d.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
:root {
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
}
`.trim()}function Q8(e,t){const n=X8(e,t);Tr()&&Xa(n,`${G8}-dynamic-theme`)}const go=l.createContext(!1),pC=({children:e,disabled:t})=>{const n=l.useContext(go);return l.createElement(go.Provider,{value:t??n},e)},Sl=l.createContext(void 0),Z8=({children:e,size:t})=>{const n=l.useContext(Sl);return l.createElement(Sl.Provider,{value:t||n},e)};function J8(){const e=l.useContext(go),t=l.useContext(Sl);return{componentDisabled:e,componentSize:t}}var BI=or(function e(){rr(this,e)}),HI="CALC_UNIT",eF=new RegExp(HI,"g");function Ih(e){return typeof e=="number"?"".concat(e).concat(HI):e}var tF=function(e){na(n,e);var t=ra(n);function n(r,o){var a;rr(this,n),a=t.call(this),Y(ft(a),"result",""),Y(ft(a),"unitlessCssVar",void 0),Y(ft(a),"lowPriority",void 0);var i=ht(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Ih(r):i==="string"&&(a.result=r),a}return or(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(Ih(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(Ih(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 a=this,i=o||{},s=i.unit,u=!0;return typeof s=="boolean"?u=s:Array.from(this.unitlessCssVar).some(function(d){return a.result.includes(d)})&&(u=!1),this.result=this.result.replace(eF,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(BI),nF=function(e){na(n,e);var t=ra(n);function n(r){var o;return rr(this,n),o=t.call(this),Y(ft(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return or(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(BI),rF=function(t,n){var r=t==="css"?tF:nF;return function(o){return new r(o,n)}},c$=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 ln(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function xl(e){var t=l.useRef(!1),n=l.useState(e),r=ce(n,2),o=r[0],a=r[1];l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,u){u&&t.current||a(s)}return[o,i]}function Ph(e){return e!==void 0}function Tn(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=xl(function(){return Ph(o)?o:Ph(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),u=ce(s,2),d=u[0],m=u[1],v=o!==void 0?o:d,p=i?i(v):v,y=ln(a),h=xl([v]),C=ce(h,2),g=C[0],S=C[1];py(function(){var w=g[0];d!==w&&y(d,w)},[g]),py(function(){Ph(o)||m(o)},[o]);var x=ln(function(w,R){m(w,R),S([v],R)});return[p,x]}function u$(e,t,n,r){var o=X({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var u=ce(s,2),d=u[0],m=u[1];if(o!=null&&o[d]||o!=null&&o[m]){var v;(v=o[m])!==null&&v!==void 0||(o[m]=o==null?void 0:o[d])}})}var i=X(X({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var VI=typeof CSSINJS_STATISTIC<"u",My=!0;function nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!VI)return Object.assign.apply(Object,[{}].concat(t));My=!1;var r={};return t.forEach(function(o){if(ht(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),My=!0,r}var d$={};function oF(){}var aF=function(t){var n,r=t,o=oF;return VI&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(My){var u;(u=n)===null||u===void 0||u.add(s)}return i[s]}}),o=function(i,s){var u;d$[i]={global:Array.from(n),component:X(X({},(u=d$[i])===null||u===void 0?void 0:u.component),s)}}),{token:r,keys:n,flush:o}};function f$(e,t,n){if(typeof n=="function"){var r;return n(nn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function iF(e){return e==="js"?{max:Math.max,min:Math.min}:{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(a){return le(a)}).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(a){return le(a)}).join(","),")")}}}var lF=1e3*60*10,sF=function(){function e(){rr(this,e),Y(this,"map",new Map),Y(this,"objectIDMap",new WeakMap),Y(this,"nextID",0),Y(this,"lastAccessBeat",new Map),Y(this,"accessBeat",0)}return or(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(a){return a&&ht(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(ht(a),"_").concat(a)});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,a){r-o>lF&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),m$=new sF;function cF(e,t){return pe.useMemo(function(){var n=m$.get(t);if(n)return n;var r=e();return m$.set(t,r),r},t)}var uF=function(){return{}};function dF(e){var t=e.useCSP,n=t===void 0?uF:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function u(p,y,h,C){var g=Array.isArray(p)?p[0]:p;function S(N){return"".concat(String(g)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var x=(C==null?void 0:C.unitless)||{},w=typeof s=="function"?s(p):{},R=X(X({},w),{},Y({},S("zIndexPopup"),!0));Object.keys(x).forEach(function(N){R[S(N)]=x[N]});var $=X(X({},C),{},{unitless:R,prefixToken:S}),O=m(p,y,h,$),I=d(g,h,$);return function(N){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,T=O(N,P),k=ce(T,2),H=k[1],A=I(P),_=ce(A,2),D=_[0],j=_[1];return[D,H,j]}}function d(p,y,h){var C=h.unitless,g=h.injectStyle,S=g===void 0?!0:g,x=h.prefixToken,w=h.ignore,R=function(I){var N=I.rootCls,P=I.cssVar,T=P===void 0?{}:P,k=r(),H=k.realToken;return O8({path:[p],prefix:T.prefix,key:T.key,unitless:C,ignore:w,token:H,scope:N},function(){var A=f$(p,H,y),_=u$(p,H,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(D){_[x(D)]=_[D],delete _[D]}),_}),null},$=function(I){var N=r(),P=N.cssVar;return[function(T){return S&&P?pe.createElement(pe.Fragment,null,pe.createElement(R,{rootCls:I,cssVar:P,component:p}),T):T},P==null?void 0:P.key]};return $}function m(p,y,h){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(p)?p:[p,p],S=ce(g,1),x=S[0],w=g.join("-"),R=e.layer||{name:"antd"};return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,I=r(),N=I.theme,P=I.realToken,T=I.hashId,k=I.token,H=I.cssVar,A=o(),_=A.rootPrefixCls,D=A.iconPrefixCls,j=n(),z=H?"css":"js",F=cF(function(){var q=new Set;return H&&Object.keys(C.unitless||{}).forEach(function(G){q.add(am(G,H.prefix)),q.add(am(G,c$(x,H.prefix)))}),rF(z,q)},[z,x,H==null?void 0:H.prefix]),W=iF(z),K=W.max,B=W.min,V={theme:N,token:k,hashId:T,nonce:function(){return j.nonce},clientOnly:C.clientOnly,layer:R,order:C.order||-999};typeof a=="function"&&yy(X(X({},V),{},{clientOnly:!1,path:["Shared",_]}),function(){return a(k,{prefix:{rootPrefixCls:_,iconPrefixCls:D},csp:j})});var U=yy(X(X({},V),{},{path:[w,$,D]}),function(){if(C.injectStyle===!1)return[];var q=aF(k),G=q.token,Z=q.flush,ee=f$(x,P,h),J=".".concat($),oe=u$(x,P,ee,{deprecatedTokens:C.deprecatedTokens});H&&ee&&ht(ee)==="object"&&Object.keys(ee).forEach(function(ie){ee[ie]="var(".concat(am(ie,c$(x,H.prefix)),")")});var ae=nn(G,{componentCls:J,prefixCls:$,iconCls:".".concat(D),antCls:".".concat(_),calc:F,max:K,min:B},H?ee:oe),te=y(ae,{hashId:T,prefixCls:$,rootPrefixCls:_,iconPrefixCls:D});Z(x,oe);var ne=typeof i=="function"?i(ae,$,O,C.resetFont):null;return[C.resetStyle===!1?null:ne,te]});return[U,T]}}function v(p,y,h){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=m(p,y,h,X({resetStyle:!1,order:-998},C)),S=function(w){var R=w.prefixCls,$=w.rootCls,O=$===void 0?R:$;return g(R,O),null};return S}return{genStyleHooks:u,genSubStyleComponent:v,genComponentStyleHook:m}}const ji=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fF="5.26.1";function Nh(e){return e>=0&&e<=255}function pu(e,t){const{r:n,g:r,b:o,a}=new tn(e).toRgb();if(a<1)return e;const{r:i,g:s,b:u}=new tn(t).toRgb();for(let d=.01;d<=1;d+=.01){const m=Math.round((n-i*(1-d))/d),v=Math.round((r-s*(1-d))/d),p=Math.round((o-u*(1-d))/d);if(Nh(m)&&Nh(v)&&Nh(p))return new tn({r:m,g:v,b:p,a:Math.round(d*100)/100}).toRgbString()}return new tn({r:n,g:r,b:o,a:1}).toRgbString()}var mF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gC(e){const{override:t}=e,n=mF(e,["override"]),r=Object.assign({},t);Object.keys(ks).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,u=992,d=1200,m=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:pu(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:pu(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:pu(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus: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:pu(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:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new tn("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new tn("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new tn("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var v$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WI={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},vF={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},pF={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},KI=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=v$(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=gC(i),a&&Object.entries(a).forEach(([s,u])=>{const{theme:d}=u,m=v$(u,["theme"]);let v=m;d&&(v=KI(Object.assign(Object.assign({},i),m),{override:m},d)),i[s]=v}),i};function _r(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=pe.useContext(vC),a=`${fF}-${t||""}`,i=n||mC,[s,u,d]=ZL(i,[ks,e],{salt:a,override:r,getComputedToken:KI,formatToken:gC,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:WI,ignore:vF,preserve:pF}});return[i,d,t?u:"",s,o]}const Da={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},kn=(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}),ld=()=>({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"}}),wl=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gF=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),hF=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},ki=(e,t)=>({outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ls=(e,t)=>({"&:focus-visible":Object.assign({},ki(e,t))}),UI=e=>({[`.${e}`]:Object.assign(Object.assign({},ld()),{[`.${e} .${e}-icon`]:{display:"block"}})}),yF=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Ls(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:In,genComponentStyleHook:bF,genSubStyleComponent:Ys}=dF({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(Dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=_r();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=l.useContext(Dt);return e??{}},getResetStyles:(e,t)=>{var n;const r=gF(e);return[r,{"&":r},UI((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:wv)]},getCommonStyle:hF,getCompUnitless:()=>WI});function qI(e,t){return ji.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const CF=(e,t)=>{const[n,r]=_r();return yy({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[UI(e)])},SF=Object.assign({},dv),{useId:p$}=SF,xF=()=>"",wF=typeof p$>"u"?xF:p$;function $F(e,t,n){var r;Ui();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},Vu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Vu.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=wF();return Dl(()=>{var s,u;if(!e)return t;const d=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{d[p]=Object.assign(Object.assign({},d[p]),e.components[p])});const m=`css-var-${i.replace(/:/g,"")}`,v=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((u=o.cssVar)===null||u===void 0?void 0:u.key)||m});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:d,cssVar:v})},[o,a],(s,u)=>s.some((d,m)=>{const v=u[m];return!ya(d,v,!0)}))}var EF=["children"],YI=l.createContext({});function OF(e){var t=e.children,n=jt(e,EF);return l.createElement(YI.Provider,{value:n},t)}var RF=function(e){na(n,e);var t=ra(n);function n(){return rr(this,n),t.apply(this,arguments)}return or(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function IF(e){var t=l.useReducer(function(s){return s+1},0),n=ce(t,2),r=n[1],o=l.useRef(e),a=ln(function(){return o.current}),i=ln(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var wi="none",Tf="appear",_f="enter",Df="leave",g$="none",ua="prepare",Ss="start",xs="active",hC="end",GI="prepared";function h$(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function PF(e,t){var n={animationend:h$("Animation","AnimationEnd"),transitionend:h$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var NF=PF(Tr(),typeof window<"u"?window:{}),XI={};if(Tr()){var MF=document.createElement("div");XI=MF.style}var jf={};function QI(e){if(jf[e])return jf[e];var t=NF[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in XI)return jf[e]=t[a],jf[e]}return""}var ZI=QI("animationend"),JI=QI("transitionend"),eP=!!(ZI&&JI),y$=ZI||"animationend",b$=JI||"transitionend";function C$(e,t){if(!e)return null;if(ht(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const TF=function(e){var t=l.useRef();function n(o){o&&(o.removeEventListener(b$,e),o.removeEventListener(y$,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(b$,e),o.addEventListener(y$,e),t.current=o)}return l.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var tP=Tr()?l.useLayoutEffect:l.useEffect;const _F=function(){var e=l.useRef(null);function t(){cn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=cn(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var DF=[ua,Ss,xs,hC],jF=[ua,GI],nP=!1,kF=!0;function rP(e){return e===xs||e===hC}const zF=function(e,t,n){var r=xl(g$),o=ce(r,2),a=o[0],i=o[1],s=_F(),u=ce(s,2),d=u[0],m=u[1];function v(){i(ua,!0)}var p=t?jF:DF;return tP(function(){if(a!==g$&&a!==hC){var y=p.indexOf(a),h=p[y+1],C=n(a);C===nP?i(h,!0):h&&d(function(g){function S(){g.isCanceled()||i(h,!0)}C===!0?S():Promise.resolve(C).then(S)})}},[e,a]),l.useEffect(function(){return function(){m()}},[]),[v,a]};function LF(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,u=r.motionLeave,d=u===void 0?!0:u,m=r.motionDeadline,v=r.motionLeaveImmediately,p=r.onAppearPrepare,y=r.onEnterPrepare,h=r.onLeavePrepare,C=r.onAppearStart,g=r.onEnterStart,S=r.onLeaveStart,x=r.onAppearActive,w=r.onEnterActive,R=r.onLeaveActive,$=r.onAppearEnd,O=r.onEnterEnd,I=r.onLeaveEnd,N=r.onVisibleChanged,P=xl(),T=ce(P,2),k=T[0],H=T[1],A=IF(wi),_=ce(A,2),D=_[0],j=_[1],z=xl(null),F=ce(z,2),W=F[0],K=F[1],B=D(),V=l.useRef(!1),U=l.useRef(null);function q(){return n()}var G=l.useRef(!1);function Z(){j(wi),K(null,!0)}var ee=ln(function(Ce){var xe=D();if(xe!==wi){var Ne=q();if(!(Ce&&!Ce.deadline&&Ce.target!==Ne)){var Ee=G.current,Be;xe===Tf&&Ee?Be=$==null?void 0:$(Ne,Ce):xe===_f&&Ee?Be=O==null?void 0:O(Ne,Ce):xe===Df&&Ee&&(Be=I==null?void 0:I(Ne,Ce)),Ee&&Be!==!1&&Z()}}}),J=TF(ee),oe=ce(J,1),ae=oe[0],te=function(xe){switch(xe){case Tf:return Y(Y(Y({},ua,p),Ss,C),xs,x);case _f:return Y(Y(Y({},ua,y),Ss,g),xs,w);case Df:return Y(Y(Y({},ua,h),Ss,S),xs,R);default:return{}}},ne=l.useMemo(function(){return te(B)},[B]),ie=zF(B,!e,function(Ce){if(Ce===ua){var xe=ne[ua];return xe?xe(q()):nP}if(se in ne){var Ne;K(((Ne=ne[se])===null||Ne===void 0?void 0:Ne.call(ne,q(),null))||null)}return se===xs&&B!==wi&&(ae(q()),m>0&&(clearTimeout(U.current),U.current=setTimeout(function(){ee({deadline:!0})},m))),se===GI&&Z(),kF}),de=ce(ie,2),ve=de[0],se=de[1],he=rP(se);G.current=he;var Se=l.useRef(null);tP(function(){if(!(V.current&&Se.current===t)){H(t);var Ce=V.current;V.current=!0;var xe;!Ce&&t&&s&&(xe=Tf),Ce&&t&&a&&(xe=_f),(Ce&&!t&&d||!Ce&&v&&!t&&d)&&(xe=Df);var Ne=te(xe);xe&&(e||Ne[ua])?(j(xe),ve()):j(wi),Se.current=t}},[t]),l.useEffect(function(){(B===Tf&&!s||B===_f&&!a||B===Df&&!d)&&j(wi)},[s,a,d]),l.useEffect(function(){return function(){V.current=!1,clearTimeout(U.current)}},[]);var je=l.useRef(!1);l.useEffect(function(){k&&(je.current=!0),k!==void 0&&B===wi&&((je.current||k)&&(N==null||N(k)),je.current=!0)},[k,B]);var Te=W;return ne[ua]&&se===Ss&&(Te=X({transition:"none"},Te)),[B,se,Te,k??t]}function FF(e){var t=e;ht(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=l.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,u=o.removeOnLeave,d=u===void 0?!0:u,m=o.forceRender,v=o.children,p=o.motionName,y=o.leavedClassName,h=o.eventProps,C=l.useContext(YI),g=C.motion,S=n(o,g),x=l.useRef(),w=l.useRef();function R(){try{return x.current instanceof HTMLElement?x.current:om(w.current)}catch{return null}}var $=LF(S,s,R,o),O=ce($,4),I=O[0],N=O[1],P=O[2],T=O[3],k=l.useRef(T);T&&(k.current=!0);var H=l.useCallback(function(F){x.current=F,zu(a,F)},[a]),A,_=X(X({},h),{},{visible:s});if(!v)A=null;else if(I===wi)T?A=v(X({},_),H):!d&&k.current&&y?A=v(X(X({},_),{},{className:y}),H):m||!d&&!y?A=v(X(X({},_),{},{style:{display:"none"}}),H):A=null;else{var D;N===ua?D="prepare":rP(N)?D="active":N===Ss&&(D="start");var j=C$(p,"".concat(I,"-").concat(D));A=v(X(X({},_),{},{className:re(C$(p,I),Y(Y({},j,j&&D),p,typeof p=="string")),style:P}),H)}if(l.isValidElement(A)&&ha(A)){var z=Ki(A);z||(A=l.cloneElement(A,{ref:H}))}return l.createElement(RF,{ref:w},A)});return r.displayName="CSSMotion",r}const Do=FF(eP);var Ty="add",_y="keep",Dy="remove",Mh="removed";function AF(e){var t;return e&&ht(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function jy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(AF)}function BF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=jy(e),i=jy(t);a.forEach(function(d){for(var m=!1,v=r;v<o;v+=1){var p=i[v];if(p.key===d.key){r<v&&(n=n.concat(i.slice(r,v).map(function(y){return X(X({},y),{},{status:Ty})})),r=v),n.push(X(X({},p),{},{status:_y})),r+=1,m=!0;break}}m||n.push(X(X({},d),{},{status:Dy}))}),r<o&&(n=n.concat(i.slice(r).map(function(d){return X(X({},d),{},{status:Ty})})));var s={};n.forEach(function(d){var m=d.key;s[m]=(s[m]||0)+1});var u=Object.keys(s).filter(function(d){return s[d]>1});return u.forEach(function(d){n=n.filter(function(m){var v=m.key,p=m.status;return v!==d||p!==Dy}),n.forEach(function(m){m.key===d&&(m.status=_y)})}),n}var HF=["component","children","onVisibleChanged","onAllRemoved"],VF=["status"],WF=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function KF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Do,n=function(r){na(a,r);var o=ra(a);function a(){var i;rr(this,a);for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];return i=o.call.apply(o,[this].concat(u)),Y(ft(i),"state",{keyEntities:[]}),Y(ft(i),"removeKey",function(m){i.setState(function(v){var p=v.keyEntities.map(function(y){return y.key!==m?y:X(X({},y),{},{status:Mh})});return{keyEntities:p}},function(){var v=i.state.keyEntities,p=v.filter(function(y){var h=y.status;return h!==Mh}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return or(a,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,d=this.props,m=d.component,v=d.children,p=d.onVisibleChanged;d.onAllRemoved;var y=jt(d,HF),h=m||l.Fragment,C={};return WF.forEach(function(g){C[g]=y[g],delete y[g]}),delete y.keys,l.createElement(h,y,u.map(function(g,S){var x=g.status,w=jt(g,VF),R=x===Ty||x===_y;return l.createElement(t,Me({},C,{key:w.key,visible:R,eventProps:w,onVisibleChanged:function(O){p==null||p(O,{key:w.key}),O||s.removeKey(w.key)}}),function($,O){return v(X(X({},$),{},{index:S}),O)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var d=s.keys,m=u.keyEntities,v=jy(d),p=BF(m,v);return{keyEntities:p.filter(function(y){var h=m.find(function(C){var g=C.key;return y.key===g});return!(h&&h.status===Mh&&y.status===Dy)})}}}]),a}(l.Component);return Y(n,"defaultProps",{component:"div"}),n}const yC=KF(eP),S$=l.createContext(!0);function UF(e){const t=l.useContext(S$),{children:n}=e,[,r]=_r(),{motion:o}=r,a=l.useRef(!1);return a.current||(a.current=t!==o),a.current?l.createElement(S$.Provider,{value:o},l.createElement(OF,{motion:o},n)):n}const qF=()=>null;var YF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const GF=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Lm,oP,aP,iP;function mm(){return Lm||Wu}function XF(){return oP||wv}function QF(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const ZF=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Lm=t),n!==void 0&&(oP=n),"holderRender"in e&&(iP=o),r&&(QF(r)?Q8(mm(),r):aP=r)},lP=()=>({getPrefixCls:(e,t)=>t||(e?`${mm()}-${e}`:mm()),getIconPrefixCls:XF,getRootPrefixCls:()=>Lm||mm(),getTheme:()=>aP,holderRender:iP}),JF=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:u,direction:d,space:m,splitter:v,virtual:p,dropdownMatchSelectWidth:y,popupMatchSelectWidth:h,popupOverflow:C,legacyLocale:g,parentContext:S,iconPrefixCls:x,theme:w,componentDisabled:R,segmented:$,statistic:O,spin:I,calendar:N,carousel:P,cascader:T,collapse:k,typography:H,checkbox:A,descriptions:_,divider:D,drawer:j,skeleton:z,steps:F,image:W,layout:K,list:B,mentions:V,modal:U,progress:q,result:G,slider:Z,breadcrumb:ee,menu:J,pagination:oe,input:ae,textArea:te,empty:ne,badge:ie,radio:de,rate:ve,switch:se,transfer:he,avatar:Se,message:je,tag:Te,table:Ce,card:xe,tabs:Ne,timeline:Ee,timePicker:Be,upload:Ve,notification:tt,tree:nt,colorPicker:We,datePicker:Ze,rangePicker:Le,flex:Re,wave:qe,dropdown:ye,warning:Oe,tour:Fe,tooltip:we,popover:He,popconfirm:ot,floatButtonGroup:gt,variant:yt,inputNumber:Rt,treeSelect:qt}=e,Wt=l.useCallback((Ye,et)=>{const{prefixCls:Je}=e;if(et)return et;const Ge=Je||S.getPrefixCls("");return Ye?`${Ge}-${Ye}`:Ge},[S.getPrefixCls,e.prefixCls]),It=x||S.iconPrefixCls||wv,bt=n||S.csp;CF(It,bt);const mt=$F(w,S.theme,{prefixCls:Wt("")}),ue={csp:bt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||g,direction:d,space:m,splitter:v,virtual:p,popupMatchSelectWidth:h??y,popupOverflow:C,getPrefixCls:Wt,iconPrefixCls:It,theme:mt,segmented:$,statistic:O,spin:I,calendar:N,carousel:P,cascader:T,collapse:k,typography:H,checkbox:A,descriptions:_,divider:D,drawer:j,skeleton:z,steps:F,image:W,input:ae,textArea:te,layout:K,list:B,mentions:V,modal:U,progress:q,result:G,slider:Z,breadcrumb:ee,menu:J,pagination:oe,empty:ne,badge:ie,radio:de,rate:ve,switch:se,transfer:he,avatar:Se,message:je,tag:Te,table:Ce,card:xe,tabs:Ne,timeline:Ee,timePicker:Be,upload:Ve,notification:tt,tree:nt,colorPicker:We,datePicker:Ze,rangePicker:Le,flex:Re,wave:qe,dropdown:ye,warning:Oe,tour:Fe,tooltip:we,popover:He,popconfirm:ot,floatButtonGroup:gt,variant:yt,inputNumber:Rt,treeSelect:qt},fe=Object.assign({},S);Object.keys(ue).forEach(Ye=>{ue[Ye]!==void 0&&(fe[Ye]=ue[Ye])}),GF.forEach(Ye=>{const et=e[Ye];et&&(fe[Ye]=et)}),typeof r<"u"&&(fe.button=Object.assign({autoInsertSpace:r},fe.button));const be=Dl(()=>fe,fe,(Ye,et)=>{const Je=Object.keys(Ye),Ge=Object.keys(et);return Je.length!==Ge.length||Je.some(rt=>Ye[rt]!==et[rt])}),{layer:De}=l.useContext(id),Pe=l.useMemo(()=>({prefixCls:It,csp:bt,layer:De?"antd":void 0}),[It,bt,De]);let ke=l.createElement(l.Fragment,null,l.createElement(qF,{dropdownMatchSelectWidth:y}),t);const Qe=l.useMemo(()=>{var Ye,et,Je,Ge;return Cs(((Ye=ea.Form)===null||Ye===void 0?void 0:Ye.defaultValidateMessages)||{},((Je=(et=be.locale)===null||et===void 0?void 0:et.Form)===null||Je===void 0?void 0:Je.defaultValidateMessages)||{},((Ge=be.form)===null||Ge===void 0?void 0:Ge.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[be,i==null?void 0:i.validateMessages]);Object.keys(Qe).length>0&&(ke=l.createElement(TI.Provider,{value:Qe},ke)),s&&(ke=l.createElement(k8,{locale:s,_ANT_MARK__:j8},ke)),ke=l.createElement(uC.Provider,{value:Pe},ke),u&&(ke=l.createElement(Z8,{size:u},ke)),ke=l.createElement(UF,null,ke);const Ke=l.useMemo(()=>{const Ye=mt||{},{algorithm:et,token:Je,components:Ge,cssVar:rt}=Ye,st=YF(Ye,["algorithm","token","components","cssVar"]),Nt=et&&(!Array.isArray(et)||et.length>0)?jm(et):mC,Lt={};Object.entries(Ge||{}).forEach(([Pt,rn])=>{const Jt=Object.assign({},rn);"algorithm"in Jt&&(Jt.algorithm===!0?Jt.theme=Nt:(Array.isArray(Jt.algorithm)||typeof Jt.algorithm=="function")&&(Jt.theme=jm(Jt.algorithm)),delete Jt.algorithm),Lt[Pt]=Jt});const Bt=Object.assign(Object.assign({},ks),Je);return Object.assign(Object.assign({},st),{theme:Nt,token:Bt,components:Lt,override:Object.assign({override:Bt},Lt),cssVar:rt})},[mt]);return w&&(ke=l.createElement(vC.Provider,{value:Ke},ke)),be.warning&&(ke=l.createElement(M8.Provider,{value:be.warning},ke)),R!==void 0&&(ke=l.createElement(pC,{disabled:R},ke)),l.createElement(Dt.Provider,{value:be},ke)},za=e=>{const t=l.useContext(Dt),n=l.useContext(dC);return l.createElement(JF,Object.assign({parentContext:t,legacyLocale:n},e))};za.ConfigContext=Dt;za.SizeContext=Sl;za.config=ZF;za.useConfig=J8;Object.defineProperty(za,"SizeContext",{get:()=>Sl});function sP(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function eA(e){return sP(e)instanceof ShadowRoot}function Fm(e){return eA(e)?sP(e):null}function tA(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function nA(e,t){qn(e,"[@ant-design/icons] ".concat(t))}function x$(e){return ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ht(e.icon)==="object"||typeof e.icon=="function")}function w$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[tA(n)]=r}return t},{})}function ky(e,t,n){return n?pe.createElement(e.tag,X(X({key:t},w$(e.attrs)),n),(e.children||[]).map(function(r,o){return ky(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):pe.createElement(e.tag,X({key:t},w$(e.attrs)),(e.children||[]).map(function(r,o){return ky(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function cP(e){return Cl(e)[0]}function uP(e){return e?Array.isArray(e)?e:[e]:[]}var rA=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,oA=function(t){var n=l.useContext(uC),r=n.csp,o=n.prefixCls,a=n.layer,i=rA;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
`).concat(i,`
}`)),l.useEffect(function(){var s=t.current,u=Fm(s);Xa(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:u})},[])},aA=["icon","className","onClick","style","primaryColor","secondaryColor"],Eu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function iA(e){var t=e.primaryColor,n=e.secondaryColor;Eu.primaryColor=t,Eu.secondaryColor=n||cP(t),Eu.calculated=!!n}function lA(){return X({},Eu)}var Gs=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,u=jt(t,aA),d=l.useRef(),m=Eu;if(i&&(m={primaryColor:i,secondaryColor:s||cP(i)}),oA(d),nA(x$(n),"icon should be icon definiton, but got ".concat(n)),!x$(n))return null;var v=n;return v&&typeof v.icon=="function"&&(v=X(X({},v),{},{icon:v.icon(m.primaryColor,m.secondaryColor)})),ky(v.icon,"svg-".concat(v.name),X(X({className:r,onClick:o,style:a,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};Gs.displayName="IconReact";Gs.getTwoToneColors=lA;Gs.setTwoToneColors=iA;function dP(e){var t=uP(e),n=ce(t,2),r=n[0],o=n[1];return Gs.setTwoToneColors({primaryColor:r,secondaryColor:o})}function sA(){var e=Gs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var cA=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dP(zs.primary);var fn=l.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,u=e.twoToneColor,d=jt(e,cA),m=l.useContext(uC),v=m.prefixCls,p=v===void 0?"anticon":v,y=m.rootClassName,h=re(y,p,Y(Y({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),C=i;C===void 0&&s&&(C=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=uP(u),x=ce(S,2),w=x[0],R=x[1];return l.createElement("span",Me({role:"img","aria-label":r.name},d,{ref:t,tabIndex:C,onClick:s,className:h}),l.createElement(Gs,{icon:r,primaryColor:w,secondaryColor:R,style:g}))});fn.displayName="AntdIcon";fn.getTwoToneColor=sA;fn.setTwoToneColor=dP;var uA=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:E6}))},$v=l.forwardRef(uA),dA=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:I6}))},Xs=l.forwardRef(dA),fA=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:P6}))},jl=l.forwardRef(fA),mA=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:V6}))},sd=l.forwardRef(mA),vA=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:oz}))},fP=l.forwardRef(vA),pA=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,gA=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,hA="".concat(pA," ").concat(gA).split(/[\s\n]+/),yA="aria-",bA="data-";function $$(e,t){return e.indexOf(t)===0}function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=X({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||$$(o,yA))||n.data&&$$(o,bA)||n.attr&&hA.includes(o))&&(r[o]=e[o])}),r}function mP(e){return e&&pe.isValidElement(e)&&e.type===pe.Fragment}const vP=(e,t,n)=>pe.isValidElement(e)?pe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Fr(e,t){return vP(e,e,t)}const E$=e=>typeof e=="object"&&e!=null&&e.nodeType===1,O$=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",kf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return O$(n.overflowY,t)||O$(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},zf=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,CA=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},R$=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:u,boundary:d,skipOverflowHiddenElements:m}=t,v=typeof d=="function"?d:j=>j!==d;if(!E$(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let h=e;for(;E$(h)&&v(h);){if(h=CA(h),h===p){y.push(h);break}h!=null&&h===document.body&&kf(h)&&!kf(document.documentElement)||h!=null&&kf(h,m)&&y.push(h)}const C=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:S,scrollY:x}=window,{height:w,width:R,top:$,right:O,bottom:I,left:N}=e.getBoundingClientRect(),{top:P,right:T,bottom:k,left:H}=(j=>{const z=window.getComputedStyle(j);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?$-P:s==="end"?I+k:$+w/2-P+k,_=u==="center"?N+R/2-H+T:u==="end"?O+T:N-H;const D=[];for(let j=0;j<y.length;j++){const z=y[j],{height:F,width:W,top:K,right:B,bottom:V,left:U}=z.getBoundingClientRect();if(i==="if-needed"&&$>=0&&N>=0&&I<=g&&O<=C&&(z===p&&!kf(z)||$>=K&&I<=V&&N>=U&&O<=B))return D;const q=getComputedStyle(z),G=parseInt(q.borderLeftWidth,10),Z=parseInt(q.borderTopWidth,10),ee=parseInt(q.borderRightWidth,10),J=parseInt(q.borderBottomWidth,10);let oe=0,ae=0;const te="offsetWidth"in z?z.offsetWidth-z.clientWidth-G-ee:0,ne="offsetHeight"in z?z.offsetHeight-z.clientHeight-Z-J:0,ie="offsetWidth"in z?z.offsetWidth===0?0:W/z.offsetWidth:0,de="offsetHeight"in z?z.offsetHeight===0?0:F/z.offsetHeight:0;if(p===z)oe=s==="start"?A:s==="end"?A-g:s==="nearest"?zf(x,x+g,g,Z,J,x+A,x+A+w,w):A-g/2,ae=u==="start"?_:u==="center"?_-C/2:u==="end"?_-C:zf(S,S+C,C,G,ee,S+_,S+_+R,R),oe=Math.max(0,oe+x),ae=Math.max(0,ae+S);else{oe=s==="start"?A-K-Z:s==="end"?A-V+J+ne:s==="nearest"?zf(K,V,F,Z,J+ne,A,A+w,w):A-(K+F/2)+ne/2,ae=u==="start"?_-U-G:u==="center"?_-(U+W/2)+te/2:u==="end"?_-B+ee+te:zf(U,B,W,G,ee+te,_,_+R,R);const{scrollLeft:ve,scrollTop:se}=z;oe=de===0?0:Math.max(0,Math.min(se+oe/de,z.scrollHeight-F/de+ne)),ae=ie===0?0:Math.max(0,Math.min(ve+ae/ie,z.scrollWidth-W/ie+te)),A+=se-oe,_+=ve-ae}D.push({el:z,top:oe,left:ae})}return D},SA=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function xA(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(R$(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of R$(e,SA(t))){const s=a-n.top+n.bottom,u=i-n.left+n.right;o.scroll({top:s,left:u,behavior:r})}}function zy(e){return e!=null&&e===e.window}const wA=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return zy(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!zy(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function $A(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}function EA(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=wA(a),s=Date.now(),u=()=>{const m=Date.now()-s,v=$A(m>o?o:m,i,e,o);zy(a)?a.scrollTo(window.pageXOffset,v):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=v:a.scrollTop=v,m<o?cn(u):typeof r=="function"&&r()};cn(u)}const vr=e=>{const[,,,,t]=_r();return t?`${e}-css-var`:""};var Et={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},pP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,u=e.pauseOnHover,d=u===void 0?!0:u,m=e.eventKey,v=e.content,p=e.closable,y=e.closeIcon,h=y===void 0?"x":y,C=e.props,g=e.onClick,S=e.onNoticeClose,x=e.times,w=e.hovering,R=l.useState(!1),$=ce(R,2),O=$[0],I=$[1],N=l.useState(0),P=ce(N,2),T=P[0],k=P[1],H=l.useState(0),A=ce(H,2),_=A[0],D=A[1],j=w||O,z=i>0&&s,F=function(){S(m)},W=function(G){(G.key==="Enter"||G.code==="Enter"||G.keyCode===Et.ENTER)&&F()};l.useEffect(function(){if(!j&&i>0){var q=Date.now()-_,G=setTimeout(function(){F()},i*1e3-_);return function(){d&&clearTimeout(G),D(Date.now()-q)}}},[i,j,x]),l.useEffect(function(){if(!j&&z&&(d||_===0)){var q=performance.now(),G,Z=function ee(){cancelAnimationFrame(G),G=requestAnimationFrame(function(J){var oe=J+_-q,ae=Math.min(oe/(i*1e3),1);k(ae*100),ae<1&&ee()})};return Z(),function(){d&&cancelAnimationFrame(G)}}},[i,_,j,z,x]);var K=l.useMemo(function(){return ht(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),B=wr(K,!0),V=100-(!T||T<0?0:T>100?100:T),U="".concat(n,"-notice");return l.createElement("div",Me({},C,{ref:t,className:re(U,o,Y({},"".concat(U,"-closable"),p)),style:r,onMouseEnter:function(G){var Z;I(!0),C==null||(Z=C.onMouseEnter)===null||Z===void 0||Z.call(C,G)},onMouseLeave:function(G){var Z;I(!1),C==null||(Z=C.onMouseLeave)===null||Z===void 0||Z.call(C,G)},onClick:g}),l.createElement("div",{className:"".concat(U,"-content")},v),p&&l.createElement("a",Me({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:W,"aria-label":"Close"},B,{onClick:function(G){G.preventDefault(),G.stopPropagation(),F()}}),K.closeIcon),z&&l.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:V},V+"%"))}),gP=pe.createContext({}),OA=function(t){var n=t.children,r=t.classNames;return pe.createElement(gP.Provider,{value:{classNames:r}},n)},I$=8,P$=3,N$=16,RA=function(t){var n={offset:I$,threshold:P$,gap:N$};if(t&&ht(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:I$,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:P$,n.gap=(a=t.gap)!==null&&a!==void 0?a:N$}return[!!t,n]},IA=["className","style","classNames","styles"],PA=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,m=t.stack,v=l.useContext(gP),p=v.classNames,y=l.useRef({}),h=l.useState(null),C=ce(h,2),g=C[0],S=C[1],x=l.useState([]),w=ce(x,2),R=w[0],$=w[1],O=n.map(function(j){return{config:j,key:String(j.key)}}),I=RA(m),N=ce(I,2),P=N[0],T=N[1],k=T.offset,H=T.threshold,A=T.gap,_=P&&(R.length>0||O.length<=H),D=typeof s=="function"?s(r):s;return l.useEffect(function(){P&&R.length>1&&$(function(j){return j.filter(function(z){return O.some(function(F){var W=F.key;return z===W})})})},[R,O,P]),l.useEffect(function(){var j;if(P&&y.current[(j=O[O.length-1])===null||j===void 0?void 0:j.key]){var z;S(y.current[(z=O[O.length-1])===null||z===void 0?void 0:z.key])}},[O,P]),pe.createElement(yC,Me({key:r,className:re(o,"".concat(o,"-").concat(r),p==null?void 0:p.list,a,Y(Y({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),_)),style:i,keys:O,motionAppear:!0},D,{onAllRemoved:function(){u(r)}}),function(j,z){var F=j.config,W=j.className,K=j.style,B=j.index,V=F,U=V.key,q=V.times,G=String(U),Z=F,ee=Z.className,J=Z.style,oe=Z.classNames,ae=Z.styles,te=jt(Z,IA),ne=O.findIndex(function(Ee){return Ee.key===G}),ie={};if(P){var de=O.length-1-(ne>-1?ne:B-1),ve=r==="top"||r==="bottom"?"-50%":"0";if(de>0){var se,he,Se;ie.height=_?(se=y.current[G])===null||se===void 0?void 0:se.offsetHeight:g==null?void 0:g.offsetHeight;for(var je=0,Te=0;Te<de;Te++){var Ce;je+=((Ce=y.current[O[O.length-1-Te].key])===null||Ce===void 0?void 0:Ce.offsetHeight)+A}var xe=(_?je:de*k)*(r.startsWith("top")?1:-1),Ne=!_&&g!==null&&g!==void 0&&g.offsetWidth&&(he=y.current[G])!==null&&he!==void 0&&he.offsetWidth?((g==null?void 0:g.offsetWidth)-k*2*(de<3?de:3))/((Se=y.current[G])===null||Se===void 0?void 0:Se.offsetWidth):1;ie.transform="translate3d(".concat(ve,", ").concat(xe,"px, 0) scaleX(").concat(Ne,")")}else ie.transform="translate3d(".concat(ve,", 0, 0)")}return pe.createElement("div",{ref:z,className:re("".concat(o,"-notice-wrapper"),W,oe==null?void 0:oe.wrapper),style:X(X(X({},K),ie),ae==null?void 0:ae.wrapper),onMouseEnter:function(){return $(function(Be){return Be.includes(G)?Be:[].concat(_e(Be),[G])})},onMouseLeave:function(){return $(function(Be){return Be.filter(function(Ve){return Ve!==G})})}},pe.createElement(pP,Me({},te,{ref:function(Be){ne>-1?y.current[G]=Be:delete y.current[G]},prefixCls:o,classNames:oe,styles:ae,className:re(ee,p==null?void 0:p.notice),style:J,times:q,key:U,eventKey:U,onNoticeClose:d,hovering:P&&R.length>0})))})},NA=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,u=e.style,d=e.onAllRemoved,m=e.stack,v=e.renderNotifications,p=l.useState([]),y=ce(p,2),h=y[0],C=y[1],g=function(P){var T,k=h.find(function(H){return H.key===P});k==null||(T=k.onClose)===null||T===void 0||T.call(k),C(function(H){return H.filter(function(A){return A.key!==P})})};l.useImperativeHandle(t,function(){return{open:function(P){C(function(T){var k=_e(T),H=k.findIndex(function(D){return D.key===P.key}),A=X({},P);if(H>=0){var _;A.times=(((_=T[H])===null||_===void 0?void 0:_.times)||0)+1,k[H]=A}else A.times=0,k.push(A);return i>0&&k.length>i&&(k=k.slice(-i)),k})},close:function(P){g(P)},destroy:function(){C([])}}});var S=l.useState({}),x=ce(S,2),w=x[0],R=x[1];l.useEffect(function(){var N={};h.forEach(function(P){var T=P.placement,k=T===void 0?"topRight":T;k&&(N[k]=N[k]||[],N[k].push(P))}),Object.keys(w).forEach(function(P){N[P]=N[P]||[]}),R(N)},[h]);var $=function(P){R(function(T){var k=X({},T),H=k[P]||[];return H.length||delete k[P],k})},O=l.useRef(!1);if(l.useEffect(function(){Object.keys(w).length>0?O.current=!0:O.current&&(d==null||d(),O.current=!1)},[w]),!o)return null;var I=Object.keys(w);return Zo.createPortal(l.createElement(l.Fragment,null,I.map(function(N){var P=w[N],T=l.createElement(PA,{key:N,configList:P,placement:N,prefixCls:r,className:s==null?void 0:s(N),style:u==null?void 0:u(N),motion:a,onNoticeClose:g,onAllNoticeRemoved:$,stack:m});return v?v(T,{prefixCls:r,key:N}):T})),o)}),MA=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],TA=function(){return document.body},M$=0;function _A(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function DA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?TA:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,m=e.renderNotifications,v=jt(e,MA),p=l.useState(),y=ce(p,2),h=y[0],C=y[1],g=l.useRef(),S=l.createElement(NA,{container:h,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:u,stack:d,renderNotifications:m}),x=l.useState([]),w=ce(x,2),R=w[0],$=w[1],O=ln(function(N){var P=_A(v,N);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(M$),M$+=1),$(function(T){return[].concat(_e(T),[{type:"open",config:P}])})}),I=l.useMemo(function(){return{open:O,close:function(P){$(function(T){return[].concat(_e(T),[{type:"close",key:P}])})},destroy:function(){$(function(P){return[].concat(_e(P),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){C(n())}),l.useEffect(function(){if(g.current&&R.length){R.forEach(function(T){switch(T.type){case"open":g.current.open(T.config);break;case"close":g.current.close(T.key);break;case"destroy":g.current.destroy();break}});var N,P;$(function(T){return(N!==T||!P)&&(N=T,P=T.filter(function(k){return!R.includes(k)})),P})}},[R]),[I,S]}var jA=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:iz}))},$l=l.forwardRef(jA);const Ev=pe.createContext(void 0),$i=100,kA=10,hP=$i*kA,yP={Modal:$i,Drawer:$i,Popover:$i,Popconfirm:$i,Tooltip:$i,Tour:$i,FloatButton:$i},zA={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function LA(e){return e in yP}const ti=(e,t)=>{const[,n]=_r(),r=pe.useContext(Ev),o=LA(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+yP[e]:i+=zA[e],a=[r===void 0?t:i,i]}return a},FA=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:u,fontSizeLG:d,motionEaseInOutCirc:m,motionDurationSlow:v,marginXS:p,paddingXS:y,borderRadiusLG:h,zIndexPopup:C,contentPadding:g,contentBg:S}=e,x=`${t}-notice`,w=new xn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),R=new xn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:d},[`${x}-content`]:{display:"inline-block",padding:g,background:S,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
${t}-loading > ${n}`]:{color:u}};return[{[t]:Object.assign(Object.assign({},kn(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:w,animationDuration:v,animationPlayState:"paused",animationTimingFunction:m},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:R,animationDuration:v,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},AA=e=>({zIndexPopup:e.zIndexPopupBase+hP+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),bP=In("Message",e=>{const t=nn(e,{height:150});return[FA(t)]},AA);var BA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const HA={info:l.createElement(fP,null),success:l.createElement($v,null),error:l.createElement(Xs,null),warning:l.createElement(sd,null),loading:l.createElement($l,null)},CP=({prefixCls:e,type:t,icon:n,children:r})=>l.createElement("div",{className:re(`${e}-custom-content`,`${e}-${t}`)},n||HA[t],l.createElement("span",null,r)),VA=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=BA(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(Dt),u=t||s("message"),d=vr(u),[m,v,p]=bP(u,d);return m(l.createElement(pP,Object.assign({},i,{prefixCls:u,className:re(n,v,`${u}-notice-pure-panel`,p,d),eventKey:"pure",duration:null,content:l.createElement(CP,{prefixCls:u,type:r,icon:o},a)})))};function WA(e,t){return{motionName:t??`${e}-move-up`}}function bC(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var KA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UA=8,qA=3,YA=({children:e,prefixCls:t})=>{const n=vr(t),[r,o,a]=bP(t,n);return r(l.createElement(OA,{classNames:{list:re(o,a,n)}},e))},GA=(e,{prefixCls:t,key:n})=>l.createElement(YA,{prefixCls:t,key:n},e),XA=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=qA,rtl:s,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:m,getPopupContainer:v,message:p,direction:y}=l.useContext(Dt),h=r||m("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??UA}),g=()=>re({[`${h}-rtl`]:s??y==="rtl"}),S=()=>WA(h,u),x=l.createElement("span",{className:`${h}-close-x`},l.createElement(jl,{className:`${h}-close-icon`})),[w,R]=DA({prefixCls:h,style:C,className:g,motion:S,closable:!1,closeIcon:x,duration:i,getContainer:()=>(o==null?void 0:o())||(v==null?void 0:v())||document.body,maxCount:a,onAllRemoved:d,renderNotifications:GA});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:h,message:p})),R});let T$=0;function SP(e){const t=l.useRef(null);return Ui(),[l.useMemo(()=>{const r=u=>{var d;(d=t.current)===null||d===void 0||d.close(u)},o=u=>{if(!t.current){const O=()=>{};return O.then=()=>{},O}const{open:d,prefixCls:m,message:v}=t.current,p=`${m}-notice`,{content:y,icon:h,type:C,key:g,className:S,style:x,onClose:w}=u,R=KA(u,["content","icon","type","key","className","style","onClose"]);let $=g;return $==null&&(T$+=1,$=`antd-message-${T$}`),bC(O=>(d(Object.assign(Object.assign({},R),{key:$,content:l.createElement(CP,{prefixCls:m,type:C,icon:h},y),placement:"top",className:re(C&&`${p}-${C}`,S,v==null?void 0:v.className),style:Object.assign(Object.assign({},v==null?void 0:v.style),x),onClose:()=>{w==null||w(),O()}})),()=>{r($)}))},i={open:o,destroy:u=>{var d;u!==void 0?r(u):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const d=(m,v,p)=>{let y;m&&typeof m=="object"&&"content"in m?y=m:y={content:m};let h,C;typeof v=="function"?C=v:(h=v,C=p);const g=Object.assign(Object.assign({onClose:C,duration:h},y),{type:u});return o(g)};i[u]=d}),i},[]),l.createElement(XA,Object.assign({key:"message-holder"},e,{ref:t}))]}function QA(e){return SP(e)}function ZA(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(_e(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function xP(e,t){this.v=e,this.k=t}function Ur(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Ur=function(i,s,u,d){if(s)o?o(i,s,{value:u,enumerable:!d,configurable:!d,writable:!d}):i[s]=u;else{var m=function(p,y){Ur(i,p,function(h){return this._invoke(p,y,h)})};m("next",0),m("throw",1),m("return",2)}},Ur(e,t,n,r)}function CC(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(y,h,C,g){var S=h&&h.prototype instanceof s?h:s,x=Object.create(S.prototype);return Ur(x,"_invoke",function(w,R,$){var O,I,N,P=0,T=$||[],k=!1,H={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(D,j){return O=D,I=0,N=e,H.n=j,i}};function A(_,D){for(I=_,N=D,t=0;!k&&P&&!j&&t<T.length;t++){var j,z=T[t],F=H.p,W=z[2];_>3?(j=W===D)&&(N=z[(I=z[4])?5:(I=3,3)],z[4]=z[5]=e):z[0]<=F&&((j=_<2&&F<z[1])?(I=0,H.v=D,H.n=z[1]):F<W&&(j=_<3||z[0]>D||D>W)&&(z[4]=_,z[5]=D,H.n=W,I=0))}if(j||_>1)return i;throw k=!0,D}return function(_,D,j){if(P>1)throw TypeError("Generator is already running");for(k&&D===1&&A(D,j),I=D,N=j;(t=I<2?e:N)||!k;){O||(I?I<3?(I>1&&(H.n=-1),A(I,N)):H.n=N:H.v=N);try{if(P=2,O){if(I||(_="next"),t=O[_]){if(!(t=t.call(O,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,I<2&&(I=0)}else I===1&&(t=O.return)&&t.call(O),I<2&&(N=TypeError("The iterator does not provide a '"+_+"' method"),I=1);O=e}else if((t=(k=H.n<0)?N:w.call(R,H))!==i)break}catch(z){O=e,I=1,N=z}finally{P=1}}return{value:t,done:k}}}(y,C,g),!0),x}var i={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(Ur(t={},r,function(){return this}),t),v=d.prototype=s.prototype=Object.create(m);function p(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,d):(y.__proto__=d,Ur(y,o,"GeneratorFunction")),y.prototype=Object.create(v),y}return u.prototype=d,Ur(v,"constructor",d),Ur(d,"constructor",u),u.displayName="GeneratorFunction",Ur(d,o,"GeneratorFunction"),Ur(v),Ur(v,o,"Generator"),Ur(v,r,function(){return this}),Ur(v,"toString",function(){return"[object Generator]"}),(CC=function(){return{w:a,m:p}})()}function Am(e,t){function n(o,a,i,s){try{var u=e[o](a),d=u.value;return d instanceof xP?t.resolve(d.v).then(function(m){n("next",m,i,s)},function(m){n("throw",m,i,s)}):t.resolve(d).then(function(m){u.value=m,i(u)},function(m){return n("throw",m,i,s)})}catch(m){s(m)}}var r;this.next||(Ur(Am.prototype),Ur(Am.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Ur(this,"_invoke",function(o,a,i){function s(){return new t(function(u,d){n(o,i,u,d)})}return r=r?r.then(s,s):s()},!0)}function wP(e,t,n,r,o){return new Am(CC().w(e,t,n,r),o||Promise)}function JA(e,t,n,r,o){var a=wP(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function e5(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function _$(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ht(e)+" is not iterable")}function jn(){var e=CC(),t=e.m(jn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,u;return function(d){s||(s={stop:function(){return u(d.a,2)},catch:function(){return d.v},abrupt:function(v,p){return u(d.a,o[v],p)},delegateYield:function(v,p,y){return s.resultName=p,u(d.d,_$(v),y)},finish:function(v){return u(d.f,v)}},u=function(v,p,y){d.p=s.prev,d.n=s.next;try{return v(p,y)}finally{s.next=d.n}}),s.resultName&&(s[s.resultName]=d.v,s.resultName=void 0),s.sent=d.v,s.next=d.n;try{return i.call(this,s)}finally{d.p=s.prev,d.n=s.next}}}return(jn=function(){return{wrap:function(u,d,m,v){return e.w(a(u),d,m,v&&v.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(u,d){return new xP(u,d)},AsyncIterator:Am,async:function(u,d,m,v,p){return(r(d)?wP:JA)(a(u),d,m,v,p)},keys:e5,values:_$}})()}function D$(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(d){return void n(d)}s.done?t(u):Promise.resolve(u).then(r,o)}function to(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(u){D$(a,r,o,i,s,"next",u)}function s(u){D$(a,r,o,i,s,"throw",u)}i(void 0)})}}var cd=X({},A3),t5=cd.version,Th=cd.render,n5=cd.unmountComponentAtNode,Ov;try{var r5=Number((t5||"").split(".")[0]);r5>=18&&(Ov=cd.createRoot)}catch{}function j$(e){var t=cd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ht(t)==="object"&&(t.usingClientEntryPoint=e)}var Bm="__rc_react_root__";function o5(e,t){j$(!0);var n=t[Bm]||Ov(t);j$(!1),n.render(e),t[Bm]=n}function a5(e,t){Th==null||Th(e,t)}function i5(e,t){if(Ov){o5(e,t);return}a5(e,t)}function l5(e){return Ly.apply(this,arguments)}function Ly(){return Ly=to(jn().mark(function e(t){return jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Bm])===null||o===void 0||o.unmount(),delete t[Bm]}));case 1:case"end":return r.stop()}},e)})),Ly.apply(this,arguments)}function s5(e){n5(e)}function c5(e){return Fy.apply(this,arguments)}function Fy(){return Fy=to(jn().mark(function e(t){return jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ov===void 0){r.next=2;break}return r.abrupt("return",l5(t));case 2:s5(t);case 3:case"end":return r.stop()}},e)})),Fy.apply(this,arguments)}const u5=(e,t)=>(i5(e,t),()=>c5(t));let d5=u5;function SC(e){return d5}const _h=()=>({height:0,opacity:0}),k$=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},f5=e=>({height:e?e.offsetHeight:0}),Dh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ku=(e=Wu)=>({motionName:`${e}-motion-collapse`,onAppearStart:_h,onEnterStart:_h,onAppearActive:k$,onEnterActive:k$,onLeaveStart:f5,onLeaveActive:_h,onAppearEnd:Dh,onEnterEnd:Dh,onLeaveEnd:Dh,motionDeadline:500}),ba=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Hn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Qs=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},m5=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},v5=bF("Wave",e=>[m5(e)]),Rv=`${Wu}-wave-target`;function jh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function p5(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return jh(t)?t:jh(n)?n:jh(r)?r:null}function kh(e){return Number.isNaN(e)?0:e}const g5=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=l.useRef(null),i=l.useRef(null);l.useEffect(()=>{i.current=o()},[]);const[s,u]=l.useState(null),[d,m]=l.useState([]),[v,p]=l.useState(0),[y,h]=l.useState(0),[C,g]=l.useState(0),[S,x]=l.useState(0),[w,R]=l.useState(!1),$={left:v,top:y,width:C,height:S,borderRadius:d.map(N=>`${N}px`).join(" ")};s&&($["--wave-color"]=s);function O(){const N=getComputedStyle(n);u(p5(n));const P=N.position==="static",{borderLeftWidth:T,borderTopWidth:k}=N;p(P?n.offsetLeft:kh(-parseFloat(T))),h(P?n.offsetTop:kh(-parseFloat(k))),g(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:H,borderTopRightRadius:A,borderBottomLeftRadius:_,borderBottomRightRadius:D}=N;m([H,A,D,_].map(j=>kh(parseFloat(j))))}if(l.useEffect(()=>{if(n){const N=cn(()=>{O(),R(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(O),P.observe(n)),()=>{cn.cancel(N),P==null||P.disconnect()}}},[]),!w)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Rv));return l.createElement(Do,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,P)=>{var T,k;if(P.deadline||P.propertyName==="opacity"){const H=(T=a.current)===null||T===void 0?void 0:T.parentElement;(k=i.current)===null||k===void 0||k.call(i).then(()=>{H==null||H.remove()})}return!1}},({className:N},P)=>l.createElement("div",{ref:To(a,P),className:re(t,N,{"wave-quick":I}),style:$}))},h5=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=SC();let i=null;function s(){return i}i=a(l.createElement(g5,Object.assign({},t,{target:e,registerUnmount:s})),o)},y5=(e,t,n)=>{const{wave:r}=l.useContext(Dt),[,o,a]=_r(),i=ln(d=>{const m=e.current;if(r!=null&&r.disabled||!m)return;const v=m.querySelector(`.${Rv}`)||m,{showEffect:p}=r||{};(p||h5)(v,{className:t,token:o,component:n,event:d,hashId:a})}),s=l.useRef(null);return d=>{cn.cancel(s.current),s.current=cn(()=>{i(d)})}},Iv=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=l.useContext(Dt),a=l.useRef(null),i=o("wave"),[,s]=v5(i),u=y5(a,re(i,s),r);if(pe.useEffect(()=>{const m=a.current;if(!m||m.nodeType!==1||n)return;const v=p=>{!Qs(p.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")||m.className.includes("-leave")||u(p)};return m.addEventListener("click",v,!0),()=>{m.removeEventListener("click",v,!0)}},[n]),!pe.isValidElement(t))return t??null;const d=ha(t)?To(Ki(t),a):a;return Fr(t,{ref:d})},Xr=e=>{const t=pe.useContext(Sl);return pe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},b5=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},C5=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},S5=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},$P=In("Space",e=>{const t=nn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[C5(t),S5(t),b5(t)]},()=>({}),{resetStyle:!1});var EP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pv=l.createContext(null),qi=(e,t)=>{const n=l.useContext(Pv),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return re(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},x5=e=>{const{children:t}=e;return l.createElement(Pv.Provider,{value:null},t)},w5=e=>{const{children:t}=e,n=EP(e,["children"]);return l.createElement(Pv.Provider,{value:l.useMemo(()=>n,[n])},t)},$5=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Dt),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:u,children:d}=e,m=EP(e,["size","direction","block","prefixCls","className","rootClassName","children"]),v=Xr(w=>r??w),p=t("space-compact",i),[y,h]=$P(p),C=re(p,h,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:o==="vertical"},s,u),g=l.useContext(Pv),S=po(d),x=l.useMemo(()=>S.map((w,R)=>{const $=(w==null?void 0:w.key)||`${p}-item-${R}`;return l.createElement(w5,{key:$,compactSize:v,compactDirection:o,isFirstItem:R===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:R===S.length-1&&(!g||(g==null?void 0:g.isLastItem))},w)}),[r,S,g]);return S.length===0?null:y(l.createElement("div",Object.assign({className:C},m),x))};var E5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OP=l.createContext(void 0),O5=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Dt),{prefixCls:r,size:o,className:a}=e,i=E5(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,u]=_r(),d=l.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),m=re(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:n==="rtl"},a,u);return l.createElement(OP.Provider,{value:o},l.createElement("div",Object.assign({},i,{className:m})))},z$=/^[\u4E00-\u9FA5]{2}$/,Ay=z$.test.bind(z$);function xC(e){return e==="danger"?{danger:!0}:{type:e}}function L$(e){return typeof e=="string"}function zh(e){return e==="text"||e==="link"}function R5(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&L$(e.type)&&Ay(e.props.children)?Fr(e,{children:e.props.children.split("").join(n)}):L$(e)?Ay(e)?pe.createElement("span",null,e.split("").join(n)):pe.createElement("span",null,e):mP(e)?pe.createElement("span",null,e):e}function I5(e,t){let n=!1;const r=[];return pe.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,u=r[s];r[s]=`${u}${o}`}else r.push(o);n=i}),pe.Children.map(r,o=>R5(o,t))}["default","primary","danger"].concat(_e(ji));const By=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=re(`${a}-icon`,n);return pe.createElement("span",{ref:t,className:i,style:r},o)}),F$=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=re(`${n}-loading-icon`,r);return pe.createElement(By,{prefixCls:n,className:i,style:o,ref:t},pe.createElement($l,{className:a}))}),Lh=()=>({width:0,opacity:0,transform:"scale(0)"}),Fh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),P5=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?pe.createElement(F$,{prefixCls:t,className:o,style:a}):pe.createElement(Do,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Lh,onAppearActive:Fh,onEnterStart:Lh,onEnterActive:Fh,onLeaveStart:Fh,onLeaveActive:Lh},({className:u,style:d},m)=>{const v=Object.assign(Object.assign({},a),d);return pe.createElement(F$,{prefixCls:t,className:re(o,u),style:v,ref:m})})},A$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),N5=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=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}},A$(`${t}-primary`,o),A$(`${t}-danger`,a)]}};var M5=["b"],T5=["v"],Ah=function(t){return Math.round(Number(t||0))},_5=function(t){if(t instanceof tn)return t;if(t&&ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=jt(n,M5);return X(X({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Uu=function(e){na(n,e);var t=ra(n);function n(r){return rr(this,n),t.call(this,_5(r))}return or(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Ah(o.s*100),i=Ah(o.b*100),s=Ah(o.h),u=o.a,d="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),m="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(u.toFixed(u===0?0:2),")");return u===1?d:m}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=jt(o,T5);return X(X({},i),{},{b:a,a:this.a})}}]),n}(tn),D5=function(t){return t instanceof Uu?t:new Uu(t)};D5("#1677ff");const j5=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",k5=(e,t)=>e?j5(e,t):"";let z5=function(){function e(t){rr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new Uu(this.colors[0].color.metaColor)):this.metaColor=new Uu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return or(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return k5(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 a=n.colors[o];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var L5=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:yz}))},zi=l.forwardRef(L5);const Nv=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),F5=e=>({animationDuration:e,animationFillMode:"both"}),A5=e=>({animationDuration:e,animationFillMode:"both"}),Mv=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
${a}${e}-enter,
${a}${e}-appear
`]:Object.assign(Object.assign({},F5(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},A5(r)),{animationPlayState:"paused"}),[`
${a}${e}-enter${e}-enter-active,
${a}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},B5=new xn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),H5=new xn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),wC=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Mv(r,B5,H5,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},V5=new xn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W5=new xn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),K5=new xn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),U5=new xn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q5=new xn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y5=new xn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),G5=new xn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X5=new xn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Q5={"move-up":{inKeyframes:G5,outKeyframes:X5},"move-down":{inKeyframes:V5,outKeyframes:W5},"move-left":{inKeyframes:K5,outKeyframes:U5},"move-right":{inKeyframes:q5,outKeyframes:Y5}},Fs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Q5[t];return[Mv(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Tv=new xn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_v=new xn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dv=new xn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),jv=new xn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Z5=new xn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),J5=new xn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),eB=new xn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),tB=new xn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),nB={"slide-up":{inKeyframes:Tv,outKeyframes:_v},"slide-down":{inKeyframes:Dv,outKeyframes:jv},"slide-left":{inKeyframes:Z5,outKeyframes:J5},"slide-right":{inKeyframes:eB,outKeyframes:tB}},Li=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=nB[t];return[Mv(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},$C=new xn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rB=new xn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),B$=new xn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),H$=new xn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),oB=new xn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),aB=new xn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),iB=new xn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),lB=new xn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),sB=new xn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),cB=new xn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),uB=new xn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),dB=new xn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),fB={zoom:{inKeyframes:$C,outKeyframes:rB},"zoom-big":{inKeyframes:B$,outKeyframes:H$},"zoom-big-fast":{inKeyframes:B$,outKeyframes:H$},"zoom-left":{inKeyframes:iB,outKeyframes:lB},"zoom-right":{inKeyframes:sB,outKeyframes:cB},"zoom-up":{inKeyframes:oB,outKeyframes:aB},"zoom-down":{inKeyframes:uB,outKeyframes:dB}},Zs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=fB[t];return[Mv(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},mB=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Uu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},RP=e=>{const{paddingInline:t,onlyIconSize:n}=e;return nn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},IP=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,u=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,m=(o=e.contentLineHeight)!==null&&o!==void 0?o:fm(s),v=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:fm(u),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:fm(d),y=mB(new z5(e.colorBgSolid),"#fff")?"#000":"#fff",h=ji.reduce((C,g)=>Object.assign(Object.assign({},C),{[`${g}ShadowColor`]:`0 ${le(e.controlOutlineWidth)} 0 ${pu(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:y,contentFontSize:s,contentFontSizeSM:u,contentFontSizeLG:d,contentLineHeight:m,contentLineHeightSM:v,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*m)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-u*v)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*p)/2-e.lineWidth,0)})},vB=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,marginXS:s,calc:u}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ld(),"> a":{color:"currentColor"},"&:not(:disabled)":Ls(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(s).mul(-1).equal()}}}}}},PP=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),pB=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),gB=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),hB=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),kv=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},PP(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),yB=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},hB(e))}),bB=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),zv=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?bB:yB;return Object.assign(Object.assign({},a(e)),PP(e.componentCls,t,n))},Lv=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},zv(e,r,o))}),Fv=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},zv(e,r,o))}),Av=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Bv=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},zv(e,n,r))}),ja=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},zv(e,r,o,n))}),CB=e=>{const{componentCls:t}=e;return ji.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],s=e[`${r}2`],u=e[`${r}3`],d=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Lv(e,e.colorTextLightSolid,o,{background:i},{background:d})),Fv(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),Av(e)),Bv(e,a,{background:s},{background:u})),ja(e,o,"link",{color:i},{color:d})),ja(e,o,"text",{color:i,background:a},{color:d,background:u}))})},{})},SB=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Lv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Av(e)),Bv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),kv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ja(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xB=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Av(e)),Bv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),ja(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ja(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),kv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),wB=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Lv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Fv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Av(e)),Bv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),ja(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ja(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),kv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),$B=e=>Object.assign(Object.assign({},ja(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),kv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),EB=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:SB(e),[`${t}-color-primary`]:xB(e),[`${t}-color-dangerous`]:wB(e),[`${t}-color-link`]:$B(e)},CB(e))},OB=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ja(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Lv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ja(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),EC=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:u,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:o,height:r,padding:`${le(u)} ${le(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:pB(e)},{[`${n}${n}-round${t}`]:gB(e)}]},RB=e=>{const t=nn(e,{fontSize:e.contentFontSize});return EC(t,e.componentCls)},IB=e=>{const t=nn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return EC(t,`${e.componentCls}-sm`)},PB=e=>{const t=nn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return EC(t,`${e.componentCls}-lg`)},NB=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},MB=In("Button",e=>{const t=RP(e);return[vB(t),RB(t),IB(t),PB(t),NB(t),EB(t),OB(t),N5(t)]},IP,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function TB(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function _B(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 Hv(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},TB(e,r,t)),_B(n,r,t))}}function DB(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function jB(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 kB(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},DB(e,t)),jB(e.componentCls,t))}}const zB=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const u=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${u} + ${u}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},LB=Ys(["Button","compact"],e=>{const t=RP(e);return[Hv(t),kB(t),zB(t)]},IP);var FB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function AB(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const BB={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},HB=pe.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:u,danger:d=!1,shape:m="default",size:v,styles:p,disabled:y,className:h,rootClassName:C,children:g,icon:S,iconPosition:x="start",ghost:w=!1,block:R=!1,htmlType:$="button",classNames:O,style:I={},autoInsertSpace:N,autoFocus:P}=e,T=FB(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),k=u||"default",{button:H}=pe.useContext(Dt),[A,_]=l.useMemo(()=>{if(i&&s)return[i,s];if(u||d){const Fe=BB[k]||[];return d?["danger",Fe[1]]:Fe}return H!=null&&H.color&&(H!=null&&H.variant)?[H.color,H.variant]:["default","outlined"]},[u,i,s,d,H==null?void 0:H.variant,H==null?void 0:H.color]),j=A==="danger"?"dangerous":A,{getPrefixCls:z,direction:F,autoInsertSpace:W,className:K,style:B,classNames:V,styles:U}=Er("button"),q=(n=N??W)!==null&&n!==void 0?n:!0,G=z("btn",a),[Z,ee,J]=MB(G),oe=l.useContext(go),ae=y??oe,te=l.useContext(OP),ne=l.useMemo(()=>AB(o),[o]),[ie,de]=l.useState(ne.loading),[ve,se]=l.useState(!1),he=l.useRef(null),Se=Wi(t,he),je=l.Children.count(g)===1&&!S&&!zh(_),Te=l.useRef(!0);pe.useEffect(()=>(Te.current=!1,()=>{Te.current=!0}),[]),l.useLayoutEffect(()=>{let Fe=null;ne.delay>0?Fe=setTimeout(()=>{Fe=null,de(!0)},ne.delay):de(ne.loading);function we(){Fe&&(clearTimeout(Fe),Fe=null)}return we},[ne.delay,ne.loading]),l.useEffect(()=>{if(!he.current||!q)return;const Fe=he.current.textContent||"";je&&Ay(Fe)?ve||se(!0):ve&&se(!1)}),l.useEffect(()=>{P&&he.current&&he.current.focus()},[]);const Ce=pe.useCallback(Fe=>{var we;if(ie||ae){Fe.preventDefault();return}(we=e.onClick)===null||we===void 0||we.call(e,("href"in e,Fe))},[e.onClick,ie,ae]),{compactSize:xe,compactItemClassnames:Ne}=qi(G,F),Ee={large:"lg",small:"sm",middle:void 0},Be=Xr(Fe=>{var we,He;return(He=(we=v??xe)!==null&&we!==void 0?we:te)!==null&&He!==void 0?He:Fe}),Ve=Be&&(r=Ee[Be])!==null&&r!==void 0?r:"",tt=ie?"loading":S,nt=Hn(T,["navigate"]),We=re(G,ee,J,{[`${G}-${m}`]:m!=="default"&&m,[`${G}-${k}`]:k,[`${G}-dangerous`]:d,[`${G}-color-${j}`]:j,[`${G}-variant-${_}`]:_,[`${G}-${Ve}`]:Ve,[`${G}-icon-only`]:!g&&g!==0&&!!tt,[`${G}-background-ghost`]:w&&!zh(_),[`${G}-loading`]:ie,[`${G}-two-chinese-chars`]:ve&&q&&!ie,[`${G}-block`]:R,[`${G}-rtl`]:F==="rtl",[`${G}-icon-end`]:x==="end"},Ne,h,C,K),Ze=Object.assign(Object.assign({},B),I),Le=re(O==null?void 0:O.icon,V.icon),Re=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),U.icon||{}),qe=S&&!ie?pe.createElement(By,{prefixCls:G,className:Le,style:Re},S):o&&typeof o=="object"&&o.icon?pe.createElement(By,{prefixCls:G,className:Le,style:Re},o.icon):pe.createElement(P5,{existIcon:!!S,prefixCls:G,loading:ie,mount:Te.current}),ye=g||g===0?I5(g,je&&q):null;if(nt.href!==void 0)return Z(pe.createElement("a",Object.assign({},nt,{className:re(We,{[`${G}-disabled`]:ae}),href:ae?void 0:nt.href,style:Ze,onClick:Ce,ref:Se,tabIndex:ae?-1:0}),qe,ye));let Oe=pe.createElement("button",Object.assign({},T,{type:$,className:We,style:Ze,onClick:Ce,disabled:ae,ref:Se}),qe,ye,Ne&&pe.createElement(LB,{prefixCls:G}));return zh(_)||(Oe=pe.createElement(Iv,{component:"Button",disabled:ie},Oe)),Z(Oe)}),Sn=HB;Sn.Group=O5;Sn.__ANT_BUTTON=!0;function Bh(e){return!!(e!=null&&e.then)}const OC=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:u,quitOnNullishReturnValue:d,actionFn:m}=e,v=l.useRef(!1),p=l.useRef(null),[y,h]=xl(!1),C=(...x)=>{a==null||a.apply(void 0,x)};l.useEffect(()=>{let x=null;return i&&(x=setTimeout(()=>{var w;(w=p.current)===null||w===void 0||w.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[]);const g=x=>{Bh(x)&&(h(!0),x.then((...w)=>{h(!1,!0),C.apply(void 0,w),v.current=!1},w=>{if(h(!1,!0),v.current=!1,!(u!=null&&u()))return Promise.reject(w)}))},S=x=>{if(v.current)return;if(v.current=!0,!m){C();return}let w;if(s){if(w=m(x),d&&!Bh(w)){v.current=!1,C(x);return}}else if(m.length)w=m(a),v.current=!1;else if(w=m(),!Bh(w)){C();return}g(w)};return l.createElement(Sn,Object.assign({},xC(t),{onClick:S,loading:y,prefixCls:r},o,{ref:p}),n)},ud=pe.createContext({}),{Provider:NP}=ud,V$=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:u}=l.useContext(ud);return o?pe.createElement(OC,{isSilent:r,actionFn:s,close:(...d)=>{i==null||i.apply(void 0,d),u==null||u(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},W$=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:u}=l.useContext(ud);return pe.createElement(OC,{isSilent:n,type:i||"primary",actionFn:u,close:(...d)=>{t==null||t.apply(void 0,d),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var MP=l.createContext(null),K$=[];function VB(e,t){var n=l.useState(function(){if(!Tr())return null;var h=document.createElement("div");return h}),r=ce(n,1),o=r[0],a=l.useRef(!1),i=l.useContext(MP),s=l.useState(K$),u=ce(s,2),d=u[0],m=u[1],v=i||(a.current?void 0:function(h){m(function(C){var g=[h].concat(_e(C));return g})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function y(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return dn(function(){return e?i?i(p):p():y(),y},[e]),dn(function(){d.length&&(d.forEach(function(h){return h()}),m(K$))},[d]),[o,v]}var Hh;function TP(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(s.width,10),d=parseInt(s.height,10);try{var m=u?"width: ".concat(s.width,";"):"",v=d?"height: ".concat(s.height,";"):"";Xa(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(m,`
`).concat(v,`
}`),t)}catch(h){console.error(h),o=u,a=d}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Bu(t),{width:p,height:y}}function U$(e){return typeof document>"u"?0:(Hh===void 0&&(Hh=TP()),Hh.width)}function Hy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:TP(e)}function WB(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var KB="rc-util-locker-".concat(Date.now()),q$=0;function UB(e){var t=!!e,n=l.useState(function(){return q$+=1,"".concat(KB,"_").concat(q$)}),r=ce(n,1),o=r[0];dn(function(){if(t){var a=Hy(document.body).width,i=WB();Xa(`
html body {
overflow-y: hidden;
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o)}else Bu(o);return function(){Bu(o)}},[t,o])}var qB=!1;function YB(e){return qB}var Y$=function(t){return t===!1?!1:!Tr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Vv=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,u=l.useState(n),d=ce(u,2),m=d[0],v=d[1],p=m||n;l.useEffect(function(){(i||n)&&v(n)},[n,i]);var y=l.useState(function(){return Y$(o)}),h=ce(y,2),C=h[0],g=h[1];l.useEffect(function(){var k=Y$(o);g(k??null)});var S=VB(p&&!C),x=ce(S,2),w=x[0],R=x[1],$=C??w;UB(r&&n&&Tr()&&($===w||$===document.body));var O=null;if(s&&ha(s)&&t){var I=s;O=I.ref}var N=Wi(O,t);if(!p||!Tr()||C===void 0)return null;var P=$===!1||YB(),T=s;return t&&(T=l.cloneElement(s,{ref:N})),l.createElement(MP.Provider,{value:R},P?T:Zo.createPortal(T,$))}),_P=l.createContext({});function GB(){var e=X({},dv);return e.useId}var G$=0,X$=GB();const Wv=X$?function(t){var n=X$();return t||n}:function(t){var n=l.useState("ssr-id"),r=ce(n,2),o=r[0],a=r[1];return l.useEffect(function(){var i=G$;G$+=1,a("rc_unique_".concat(i))},[]),t||o};function Q$(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Z$(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function XB(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Z$(o),n.top+=Z$(o,!0),n}const QB=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var ZB={width:0,height:0,overflow:"hidden",outline:"none"},JB={outline:"none"},DP=pe.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,u=e.closable,d=e.closeIcon,m=e.onClose,v=e.children,p=e.bodyStyle,y=e.bodyProps,h=e.modalRender,C=e.onMouseDown,g=e.onMouseUp,S=e.holderRef,x=e.visible,w=e.forceRender,R=e.width,$=e.height,O=e.classNames,I=e.styles,N=pe.useContext(_P),P=N.panel,T=Wi(S,P),k=l.useRef(),H=l.useRef();pe.useImperativeHandle(t,function(){return{focus:function(){var V;(V=k.current)===null||V===void 0||V.focus({preventScroll:!0})},changeActive:function(V){var U=document,q=U.activeElement;V&&q===H.current?k.current.focus({preventScroll:!0}):!V&&q===k.current&&H.current.focus({preventScroll:!0})}}});var A={};R!==void 0&&(A.width=R),$!==void 0&&(A.height=$);var _=s?pe.createElement("div",{className:re("".concat(n,"-footer"),O==null?void 0:O.footer),style:X({},I==null?void 0:I.footer)},s):null,D=a?pe.createElement("div",{className:re("".concat(n,"-header"),O==null?void 0:O.header),style:X({},I==null?void 0:I.header)},pe.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,j=l.useMemo(function(){return ht(u)==="object"&&u!==null?u:u?{closeIcon:d??pe.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[u,d,n]),z=wr(j,!0),F=ht(u)==="object"&&u.disabled,W=u?pe.createElement("button",Me({type:"button",onClick:m,"aria-label":"Close"},z,{className:"".concat(n,"-close"),disabled:F}),j.closeIcon):null,K=pe.createElement("div",{className:re("".concat(n,"-content"),O==null?void 0:O.content),style:I==null?void 0:I.content},W,D,pe.createElement("div",Me({className:re("".concat(n,"-body"),O==null?void 0:O.body),style:X(X({},p),I==null?void 0:I.body)},y),v),_);return pe.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:T,style:X(X({},o),A),className:re(n,r),onMouseDown:C,onMouseUp:g},pe.createElement("div",{ref:k,tabIndex:0,style:JB},pe.createElement(QB,{shouldUpdate:x||w},h?h(K):K)),pe.createElement("div",{tabIndex:0,ref:H,style:ZB}))}),jP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,u=e.destroyOnClose,d=e.motionName,m=e.ariaId,v=e.onVisibleChanged,p=e.mousePosition,y=l.useRef(),h=l.useState(),C=ce(h,2),g=C[0],S=C[1],x={};g&&(x.transformOrigin=g);function w(){var R=XB(y.current);S(p&&(p.x||p.y)?"".concat(p.x-R.left,"px ").concat(p.y-R.top,"px"):"")}return l.createElement(Do,{visible:i,onVisibleChanged:v,onAppearPrepare:w,onEnterPrepare:w,forceRender:s,motionName:d,removeOnLeave:u,ref:y},function(R,$){var O=R.className,I=R.style;return l.createElement(DP,Me({},e,{ref:t,title:r,ariaId:m,prefixCls:n,holderRef:$,style:X(X(X({},I),o),x),className:re(a,O)}))})});jP.displayName="Content";var eH=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return l.createElement(Do,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(u,d){var m=u.className,v=u.style;return l.createElement("div",Me({ref:d,style:X(X({},v),r),className:re("".concat(n,"-mask"),m,s)},a))})},tH=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,s=t.keyboard,u=s===void 0?!0:s,d=t.focusTriggerAfterClose,m=d===void 0?!0:d,v=t.wrapStyle,p=t.wrapClassName,y=t.wrapProps,h=t.onClose,C=t.afterOpenChange,g=t.afterClose,S=t.transitionName,x=t.animation,w=t.closable,R=w===void 0?!0:w,$=t.mask,O=$===void 0?!0:$,I=t.maskTransitionName,N=t.maskAnimation,P=t.maskClosable,T=P===void 0?!0:P,k=t.maskStyle,H=t.maskProps,A=t.rootClassName,_=t.classNames,D=t.styles,j=l.useRef(),z=l.useRef(),F=l.useRef(),W=l.useState(i),K=ce(W,2),B=K[0],V=K[1],U=Wv();function q(){dy(z.current,document.activeElement)||(j.current=document.activeElement)}function G(){if(!dy(z.current,document.activeElement)){var ve;(ve=F.current)===null||ve===void 0||ve.focus()}}function Z(ve){if(ve)G();else{if(V(!1),O&&j.current&&m){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}B&&(g==null||g())}C==null||C(ve)}function ee(ve){h==null||h(ve)}var J=l.useRef(!1),oe=l.useRef(),ae=function(){clearTimeout(oe.current),J.current=!0},te=function(){oe.current=setTimeout(function(){J.current=!1})},ne=null;T&&(ne=function(se){J.current?J.current=!1:z.current===se.target&&ee(se)});function ie(ve){if(u&&ve.keyCode===Et.ESC){ve.stopPropagation(),ee(ve);return}i&&ve.keyCode===Et.TAB&&F.current.changeActive(!ve.shiftKey)}l.useEffect(function(){i&&(V(!0),q())},[i]),l.useEffect(function(){return function(){clearTimeout(oe.current)}},[]);var de=X(X(X({zIndex:o},v),D==null?void 0:D.wrapper),{},{display:B?null:"none"});return l.createElement("div",Me({className:re("".concat(r,"-root"),A)},wr(t,{data:!0})),l.createElement(eH,{prefixCls:r,visible:O&&i,motionName:Q$(r,I,N),style:X(X({zIndex:o},k),D==null?void 0:D.mask),maskProps:H,className:_==null?void 0:_.mask}),l.createElement("div",Me({tabIndex:-1,onKeyDown:ie,className:re("".concat(r,"-wrap"),p,_==null?void 0:_.wrapper),ref:z,onClick:ne,style:de},y),l.createElement(jP,Me({},t,{onMouseDown:ae,onMouseUp:te,ref:F,closable:R,ariaId:U,prefixCls:r,visible:i&&B,onClose:ee,onVisibleChanged:Z,motionName:Q$(r,S,x)}))))},RC=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,u=t.panelRef,d=l.useState(n),m=ce(d,2),v=m[0],p=m[1],y=l.useMemo(function(){return{panel:u}},[u]);return l.useEffect(function(){n&&p(!0)},[n]),!o&&i&&!v?null:l.createElement(_P.Provider,{value:y},l.createElement(Vv,{open:n||o||v,autoDestroy:!1,getContainer:r,autoLock:n||v},l.createElement(tH,Me({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),p(!1)}}))))};RC.displayName="Dialog";var vl="RC_FORM_INTERNAL_HOOKS",Vn=function(){qn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},El=l.createContext({getFieldValue:Vn,getFieldsValue:Vn,getFieldError:Vn,getFieldWarning:Vn,getFieldsError:Vn,isFieldsTouched:Vn,isFieldTouched:Vn,isFieldValidating:Vn,isFieldsValidating:Vn,resetFields:Vn,setFields:Vn,setFieldValue:Vn,setFieldsValue:Vn,validateFields:Vn,submit:Vn,getInternalHooks:function(){return Vn(),{dispatch:Vn,initEntityValue:Vn,registerField:Vn,useSubscribe:Vn,setInitialValues:Vn,destroyForm:Vn,setCallbacks:Vn,registerWatch:Vn,getFields:Vn,setValidateMessages:Vn,setPreserve:Vn,getInitialValue:Vn}}}),qu=l.createContext(null);function Vy(e){return e==null?[]:Array.isArray(e)?e:[e]}function nH(e){return e&&!!e._init}function Wy(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ky=Wy();function rH(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function oH(e,t,n){if(nC())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Lu(o,n.prototype),o}function Uy(e){var t=typeof Map=="function"?new Map:void 0;return Uy=function(r){if(r===null||!rH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return oH(r,arguments,Fu(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Lu(o,r)},Uy(e)}var aH=/%[sdj%]/g,iH=function(){};function qy(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(aH,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function lH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $r(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lH(t)&&typeof e=="string"&&!e)}function sH(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,_e(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function J$(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function cH(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,_e(e[n]||[]))}),t}var eE=function(e){na(n,e);var t=ra(n);function n(r,o){var a;return rr(this,n),a=t.call(this,"Async Validation Error"),Y(ft(a),"errors",void 0),Y(ft(a),"fields",void 0),a.errors=r,a.fields=o,a}return or(n)}(Uy(Error));function uH(e,t,n,r,o){if(t.first){var a=new Promise(function(p,y){var h=function(S){return r(S),S.length?y(new eE(S,qy(S))):p(o)},C=cH(e);J$(C,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),u=s.length,d=0,m=[],v=new Promise(function(p,y){var h=function(g){if(m.push.apply(m,g),d++,d===u)return r(m),m.length?y(new eE(m,qy(m))):p(o)};s.length||(r(m),p(o)),s.forEach(function(C){var g=e[C];i.indexOf(C)!==-1?J$(g,n,h):sH(g,n,h)})});return v.catch(function(p){return p}),v}function dH(e){return!!(e&&e.message!==void 0)}function fH(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function tE(e,t){return function(n){var r;return e.fullFields?r=fH(t,e.fullFields):r=t[n.field||e.fullField],dH(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 nE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ht(r)==="object"&&ht(e[n])==="object"?e[n]=X(X({},e[n]),r):e[n]=r}}return e}var cs="enum",mH=function(t,n,r,o,a){t[cs]=Array.isArray(t[cs])?t[cs]:[],t[cs].indexOf(n)===-1&&o.push(Io(a.messages[cs],t.fullField,t[cs].join(", ")))},vH=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Io(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Io(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},pH=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,v=null,p=typeof n=="number",y=typeof n=="string",h=Array.isArray(n);if(p?v="number":y?v="string":h&&(v="array"),!v)return!1;h&&(m=n.length),y&&(m=n.replace(d,"_").length),i?m!==t.len&&o.push(Io(a.messages[v].len,t.fullField,t.len)):s&&!u&&m<t.min?o.push(Io(a.messages[v].min,t.fullField,t.min)):u&&!s&&m>t.max?o.push(Io(a.messages[v].max,t.fullField,t.max)):s&&u&&(m<t.min||m>t.max)&&o.push(Io(a.messages[v].range,t.fullField,t.min,t.max))},kP=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||$r(n,i||t.type))&&o.push(Io(a.messages.required,t.fullField))},Lf;const gH=function(){if(Lf)return Lf;var e="[a-fA-F\\d:]",t=function(O){return O&&O.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),u=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(i,"$")),m=function(O){return O&&O.exact?s:new RegExp("(?:".concat(t(O)).concat(n).concat(t(O),")|(?:").concat(t(O)).concat(i).concat(t(O),")"),"g")};m.v4=function($){return $&&$.exact?u:new RegExp("".concat(t($)).concat(n).concat(t($)),"g")},m.v6=function($){return $&&$.exact?d:new RegExp("".concat(t($)).concat(i).concat(t($)),"g")};var v="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",y=m.v4().source,h=m.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',R="(?:".concat(v,"|www\\.)").concat(p,"(?:localhost|").concat(y,"|").concat(h,"|").concat(C).concat(g).concat(S,")").concat(x).concat(w);return Lf=new RegExp("(?:^".concat(R,"$)"),"i"),Lf};var rE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},gu={integer:function(t){return gu.number(t)&&parseInt(t,10)===t},float:function(t){return gu.number(t)&&!gu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ht(t)==="object"&&!gu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(rE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(gH())},hex:function(t){return typeof t=="string"&&!!t.match(rE.hex)}},hH=function(t,n,r,o,a){if(t.required&&n===void 0){kP(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?gu[s](n)||o.push(Io(a.messages.types[s],t.fullField,t.type)):s&&ht(n)!==t.type&&o.push(Io(a.messages.types[s],t.fullField,t.type))},yH=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(Io(a.messages.whitespace,t.fullField))};const Rn={required:kP,whitespace:yH,type:hH,range:pH,enum:mH,pattern:vH};var bH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a)}r(i)},CH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Rn.required(t,n,o,i,a,"array"),n!=null&&(Rn.type(t,n,o,i,a),Rn.range(t,n,o,i,a))}r(i)},SH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&Rn.type(t,n,o,i,a)}r(i)},xH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n,"date")&&!t.required)return r();if(Rn.required(t,n,o,i,a),!$r(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Rn.type(t,u,o,i,a),u&&Rn.range(t,u.getTime(),o,i,a)}}r(i)},wH="enum",$H=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&Rn[wH](t,n,o,i,a)}r(i)},EH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&(Rn.type(t,n,o,i,a),Rn.range(t,n,o,i,a))}r(i)},OH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&(Rn.type(t,n,o,i,a),Rn.range(t,n,o,i,a))}r(i)},RH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&Rn.type(t,n,o,i,a)}r(i)},IH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),$r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&(Rn.type(t,n,o,i,a),Rn.range(t,n,o,i,a))}r(i)},PH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),n!==void 0&&Rn.type(t,n,o,i,a)}r(i)},NH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n,"string")&&!t.required)return r();Rn.required(t,n,o,i,a),$r(n,"string")||Rn.pattern(t,n,o,i,a)}r(i)},MH=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n)&&!t.required)return r();Rn.required(t,n,o,i,a),$r(n)||Rn.type(t,n,o,i,a)}r(i)},TH=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":ht(n);Rn.required(t,n,o,i,a,s),r(i)},_H=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if($r(n,"string")&&!t.required)return r();Rn.required(t,n,o,i,a,"string"),$r(n,"string")||(Rn.type(t,n,o,i,a),Rn.range(t,n,o,i,a),Rn.pattern(t,n,o,i,a),t.whitespace===!0&&Rn.whitespace(t,n,o,i,a))}r(i)},Vh=function(t,n,r,o,a){var i=t.type,s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if($r(n,i)&&!t.required)return r();Rn.required(t,n,o,s,a,i),$r(n,i)||Rn.type(t,n,o,s,a)}r(s)};const Ou={string:_H,method:RH,number:IH,boolean:SH,regexp:MH,integer:OH,float:EH,array:CH,object:PH,enum:$H,pattern:NH,date:xH,url:Vh,hex:Vh,email:Vh,required:TH,any:bH};var dd=function(){function e(t){rr(this,e),Y(this,"rules",null),Y(this,"_messages",Ky),this.define(t)}return or(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=nE(Wy(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function d(h){var C=[],g={};function S(w){if(Array.isArray(w)){var R;C=(R=C).concat.apply(R,_e(w))}else C.push(w)}for(var x=0;x<h.length;x++)S(h[x]);C.length?(g=qy(C),u(C,g)):u(null,i)}if(s.messages){var m=this.messages();m===Ky&&(m=Wy()),nE(m,s.messages),s.messages=m}else s.messages=this.messages();var v={},p=s.keys||Object.keys(this.rules);p.forEach(function(h){var C=r.rules[h],g=i[h];C.forEach(function(S){var x=S;typeof x.transform=="function"&&(i===n&&(i=X({},i)),g=i[h]=x.transform(g),g!=null&&(x.type=x.type||(Array.isArray(g)?"array":ht(g)))),typeof x=="function"?x={validator:x}:x=X({},x),x.validator=r.getValidationMethod(x),x.validator&&(x.field=h,x.fullField=x.fullField||h,x.type=r.getType(x),v[h]=v[h]||[],v[h].push({rule:x,value:g,source:i,field:h}))})});var y={};return uH(v,s,function(h,C){var g=h.rule,S=(g.type==="object"||g.type==="array")&&(ht(g.fields)==="object"||ht(g.defaultField)==="object");S=S&&(g.required||!g.required&&h.value),g.field=h.field;function x(I,N){return X(X({},N),{},{fullField:"".concat(g.fullField,".").concat(I),fullFields:g.fullFields?[].concat(_e(g.fullFields),[I]):[I]})}function w(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(I)?I:[I];!s.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&g.message!==void 0&&(N=[].concat(g.message));var P=N.map(tE(g,i));if(s.first&&P.length)return y[g.field]=1,C(P);if(!S)C(P);else{if(g.required&&!h.value)return g.message!==void 0?P=[].concat(g.message).map(tE(g,i)):s.error&&(P=[s.error(g,Io(s.messages.required,g.field))]),C(P);var T={};g.defaultField&&Object.keys(h.value).map(function(A){T[A]=g.defaultField}),T=X(X({},T),h.rule.fields);var k={};Object.keys(T).forEach(function(A){var _=T[A],D=Array.isArray(_)?_:[_];k[A]=D.map(x.bind(null,A))});var H=new e(k);H.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),H.validate(h.value,h.rule.options||s,function(A){var _=[];P&&P.length&&_.push.apply(_,_e(P)),A&&A.length&&_.push.apply(_,_e(A)),C(_.length?_:null)})}}var R;if(g.asyncValidator)R=g.asyncValidator(g,h.value,w,h.source,s);else if(g.validator){try{R=g.validator(g,h.value,w,h.source,s)}catch(I){var $,O;($=(O=console).error)===null||$===void 0||$.call(O,I),s.suppressValidatorError||setTimeout(function(){throw I},0),w(I.message)}R===!0?w():R===!1?w(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):R instanceof Array?w(R):R instanceof Error&&w(R.message)}R&&R.then&&R.then(function(){return w()},function(I){return w(I)})},function(h){d(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ou.hasOwnProperty(n.type))throw new Error(Io("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Ou.required:Ou[this.getType(n)]||void 0}}]),e}();Y(dd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ou[t]=n});Y(dd,"warning",iH);Y(dd,"messages",Ky);Y(dd,"validators",Ou);var $o="'${name}' is not a valid ${type}",zP={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:$o,method:$o,array:$o,object:$o,number:$o,date:$o,boolean:$o,integer:$o,float:$o,regexp:$o,email:$o,url:$o,hex:$o},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}"}},oE=dd;function DH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var aE="CODE_LOGIC_ERROR";function Yy(e,t,n,r,o){return Gy.apply(this,arguments)}function Gy(){return Gy=to(jn().mark(function e(t,n,r,o,a){var i,s,u,d,m,v,p,y,h;return jn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=X({},r),delete i.ruleIndex,oE.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(aE)}}),u=null,i&&i.type==="array"&&i.defaultField&&(u=i.defaultField,delete i.defaultField),d=new oE(Y({},t,[i])),m=Cs(zP,o.validateMessages),d.messages(m),v=[],g.prev=10,g.next=13,Promise.resolve(d.validate(Y({},t,n),X({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(v=g.t0.errors.map(function(S,x){var w=S.message,R=w===aE?m.default:w;return l.isValidElement(R)?l.cloneElement(R,{key:"error_".concat(x)}):R}));case 18:if(!(!v.length&&u)){g.next=23;break}return g.next=21,Promise.all(n.map(function(S,x){return Yy("".concat(t,".").concat(x),S,u,o,a)}));case 21:return p=g.sent,g.abrupt("return",p.reduce(function(S,x){return[].concat(_e(S),_e(x))},[]));case 23:return y=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=v.map(function(S){return typeof S=="string"?DH(S,y):S}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Gy.apply(this,arguments)}function jH(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(m,v){var p=m.validator,y=X(X({},m),{},{ruleIndex:v});return p&&(y.validator=function(h,C,g){var S=!1,x=function(){for(var $=arguments.length,O=new Array($),I=0;I<$;I++)O[I]=arguments[I];Promise.resolve().then(function(){qn(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||g.apply(void 0,O)})},w=p(h,C,x);S=w&&typeof w.then=="function"&&typeof w.catch=="function",qn(S,"`callback` is deprecated. Please return a promise instead."),S&&w.then(function(){g()}).catch(function(R){g(R||" ")})}),y}).sort(function(m,v){var p=m.warningOnly,y=m.ruleIndex,h=v.warningOnly,C=v.ruleIndex;return!!p==!!h?y-C:p?1:-1}),u;if(o===!0)u=new Promise(function(){var m=to(jn().mark(function v(p,y){var h,C,g;return jn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:h=0;case 1:if(!(h<s.length)){x.next=12;break}return C=s[h],x.next=5,Yy(i,t,C,r,a);case 5:if(g=x.sent,!g.length){x.next=9;break}return y([{errors:g,rule:C}]),x.abrupt("return");case 9:h+=1,x.next=1;break;case 12:p([]);case 13:case"end":return x.stop()}},v)}));return function(v,p){return m.apply(this,arguments)}}());else{var d=s.map(function(m){return Yy(i,t,m,r,a).then(function(v){return{errors:v,rule:m}})});u=(o?zH(d):kH(d)).then(function(m){return Promise.reject(m)})}return u.catch(function(m){return m}),u}function kH(e){return Xy.apply(this,arguments)}function Xy(){return Xy=to(jn().mark(function e(t){return jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,_e(o));return i}));case 1:case"end":return r.stop()}},e)})),Xy.apply(this,arguments)}function zH(e){return Qy.apply(this,arguments)}function Qy(){return Qy=to(jn().mark(function e(t){var n;return jn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Qy.apply(this,arguments)}function dr(e){return Vy(e)}function iE(e,t){var n={};return t.forEach(function(r){var o=eo(e,r);n=Go(n,r,o)}),n}function Is(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return LP(t,r,n)})}function LP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function LH(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ht(e)!=="object"||ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return _e(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function FH(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ht(t.target)==="object"&&e in t.target?t.target[e]:t}function lE(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(_e(e.slice(0,n)),[o],_e(e.slice(n,t)),_e(e.slice(t+1,r))):a<0?[].concat(_e(e.slice(0,t)),_e(e.slice(t+1,n+1)),[o],_e(e.slice(n+1,r))):e}var AH=["name"],Vo=[];function Wh(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var IC=function(e){na(n,e);var t=ra(n);function n(r){var o;if(rr(this,n),o=t.call(this,r),Y(ft(o),"state",{resetCount:0}),Y(ft(o),"cancelRegisterFunc",null),Y(ft(o),"mounted",!1),Y(ft(o),"touched",!1),Y(ft(o),"dirty",!1),Y(ft(o),"validatePromise",void 0),Y(ft(o),"prevValidating",void 0),Y(ft(o),"errors",Vo),Y(ft(o),"warnings",Vo),Y(ft(o),"cancelRegister",function(){var u=o.props,d=u.preserve,m=u.isListField,v=u.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(m,d,dr(v)),o.cancelRegisterFunc=null}),Y(ft(o),"getNamePath",function(){var u=o.props,d=u.name,m=u.fieldContext,v=m.prefixName,p=v===void 0?[]:v;return d!==void 0?[].concat(_e(p),_e(d)):[]}),Y(ft(o),"getRules",function(){var u=o.props,d=u.rules,m=d===void 0?[]:d,v=u.fieldContext;return m.map(function(p){return typeof p=="function"?p(v):p})}),Y(ft(o),"refresh",function(){o.mounted&&o.setState(function(u){var d=u.resetCount;return{resetCount:d+1}})}),Y(ft(o),"metaCache",null),Y(ft(o),"triggerMetaEvent",function(u){var d=o.props.onMetaChange;if(d){var m=X(X({},o.getMeta()),{},{destroy:u});ya(o.metaCache,m)||d(m),o.metaCache=m}else o.metaCache=null}),Y(ft(o),"onStoreChange",function(u,d,m){var v=o.props,p=v.shouldUpdate,y=v.dependencies,h=y===void 0?[]:y,C=v.onReset,g=m.store,S=o.getNamePath(),x=o.getValue(u),w=o.getValue(g),R=d&&Is(d,S);switch(m.type==="valueUpdate"&&m.source==="external"&&!ya(x,w)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Vo,o.warnings=Vo,o.triggerMetaEvent()),m.type){case"reset":if(!d||R){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Vo,o.warnings=Vo,o.triggerMetaEvent(),C==null||C(),o.refresh();return}break;case"remove":{if(p&&Wh(p,u,g,x,w,m)){o.reRender();return}break}case"setField":{var $=m.data;if(R){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Vo),"warnings"in $&&(o.warnings=$.warnings||Vo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&Is(d,S,!0)){o.reRender();return}if(p&&!S.length&&Wh(p,u,g,x,w,m)){o.reRender();return}break}case"dependenciesUpdate":{var O=h.map(dr);if(O.some(function(I){return Is(m.relatedFields,I)})){o.reRender();return}break}default:if(R||(!h.length||S.length||p)&&Wh(p,u,g,x,w,m)){o.reRender();return}break}p===!0&&o.reRender()}),Y(ft(o),"validateRules",function(u){var d=o.getNamePath(),m=o.getValue(),v=u||{},p=v.triggerName,y=v.validateOnly,h=y===void 0?!1:y,C=Promise.resolve().then(to(jn().mark(function g(){var S,x,w,R,$,O,I;return jn().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(S=o.props,x=S.validateFirst,w=x===void 0?!1:x,R=S.messageVariables,$=S.validateDebounce,O=o.getRules(),p&&(O=O.filter(function(T){return T}).filter(function(T){var k=T.validateTrigger;if(!k)return!0;var H=Vy(k);return H.includes(p)})),!($&&p)){P.next=10;break}return P.next=8,new Promise(function(T){setTimeout(T,$)});case 8:if(o.validatePromise===C){P.next=10;break}return P.abrupt("return",[]);case 10:return I=jH(d,m,O,u,w,R),I.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vo;if(o.validatePromise===C){var k;o.validatePromise=null;var H=[],A=[];(k=T.forEach)===null||k===void 0||k.call(T,function(_){var D=_.rule.warningOnly,j=_.errors,z=j===void 0?Vo:j;D?A.push.apply(A,_e(z)):H.push.apply(H,_e(z))}),o.errors=H,o.warnings=A,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",I);case 13:case"end":return P.stop()}},g)})));return h||(o.validatePromise=C,o.dirty=!0,o.errors=Vo,o.warnings=Vo,o.triggerMetaEvent(),o.reRender()),C}),Y(ft(o),"isFieldValidating",function(){return!!o.validatePromise}),Y(ft(o),"isFieldTouched",function(){return o.touched}),Y(ft(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var u=o.props.fieldContext,d=u.getInternalHooks(vl),m=d.getInitialValue;return m(o.getNamePath())!==void 0}),Y(ft(o),"getErrors",function(){return o.errors}),Y(ft(o),"getWarnings",function(){return o.warnings}),Y(ft(o),"isListField",function(){return o.props.isListField}),Y(ft(o),"isList",function(){return o.props.isList}),Y(ft(o),"isPreserve",function(){return o.props.preserve}),Y(ft(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var u={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return u}),Y(ft(o),"getOnlyChild",function(u){if(typeof u=="function"){var d=o.getMeta();return X(X({},o.getOnlyChild(u(o.getControlled(),d,o.props.fieldContext))),{},{isFunction:!0})}var m=po(u);return m.length!==1||!l.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),Y(ft(o),"getValue",function(u){var d=o.props.fieldContext.getFieldsValue,m=o.getNamePath();return eo(u||d(!0),m)}),Y(ft(o),"getControlled",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=o.props,m=d.name,v=d.trigger,p=d.validateTrigger,y=d.getValueFromEvent,h=d.normalize,C=d.valuePropName,g=d.getValueProps,S=d.fieldContext,x=p!==void 0?p:S.validateTrigger,w=o.getNamePath(),R=S.getInternalHooks,$=S.getFieldsValue,O=R(vl),I=O.dispatch,N=o.getValue(),P=g||function(_){return Y({},C,_)},T=u[v],k=m!==void 0?P(N):{},H=X(X({},u),k);H[v]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var _,D=arguments.length,j=new Array(D),z=0;z<D;z++)j[z]=arguments[z];y?_=y.apply(void 0,j):_=FH.apply(void 0,[C].concat(j)),h&&(_=h(_,N,$(!0))),_!==N&&I({type:"updateValue",namePath:w,value:_}),T&&T.apply(void 0,j)};var A=Vy(x||[]);return A.forEach(function(_){var D=H[_];H[_]=function(){D&&D.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&I({type:"validateField",namePath:w,triggerName:_})}}),H}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(vl),s=i.initEntityValue;s(ft(o))}return o}return or(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,u=s(vl),d=u.registerField;this.cancelRegisterFunc=d(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,u=i.isFunction,d;return u?d=s:l.isValidElement(s)?d=l.cloneElement(s,this.getControlled(s.props)):(qn(!s,"`children` of Field is not validate ReactElement."),d=s),l.createElement(l.Fragment,{key:o},d)}}]),n}(l.Component);Y(IC,"contextType",El);Y(IC,"defaultProps",{trigger:"onChange",valuePropName:"value"});function PC(e){var t,n=e.name,r=jt(e,AH),o=l.useContext(El),a=l.useContext(qu),i=n!==void 0?dr(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,u="keep";return s||(u="_".concat((i||[]).join("_"))),l.createElement(IC,Me({key:u,name:i,isListField:s},r,{fieldContext:o}))}function FP(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=l.useContext(El),u=l.useContext(qu),d=l.useRef({keys:[],id:0}),m=d.current,v=l.useMemo(function(){var C=dr(s.prefixName)||[];return[].concat(_e(C),_e(dr(t)))},[s.prefixName,t]),p=l.useMemo(function(){return X(X({},s),{},{prefixName:v})},[s,v]),y=l.useMemo(function(){return{getKey:function(g){var S=v.length,x=g[S];return[m.keys[x],g.slice(S+1)]}}},[v]);if(typeof r!="function")return qn(!1,"Form.List only accepts function as children."),null;var h=function(g,S,x){var w=x.source;return w==="internal"?!1:g!==S};return l.createElement(qu.Provider,{value:y},l.createElement(El.Provider,{value:p},l.createElement(PC,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!u},function(C,g){var S=C.value,x=S===void 0?[]:S,w=C.onChange,R=s.getFieldValue,$=function(){var P=R(v||[]);return P||[]},O={add:function(P,T){var k=$();T>=0&&T<=k.length?(m.keys=[].concat(_e(m.keys.slice(0,T)),[m.id],_e(m.keys.slice(T))),w([].concat(_e(k.slice(0,T)),[P],_e(k.slice(T))))):(m.keys=[].concat(_e(m.keys),[m.id]),w([].concat(_e(k),[P]))),m.id+=1},remove:function(P){var T=$(),k=new Set(Array.isArray(P)?P:[P]);k.size<=0||(m.keys=m.keys.filter(function(H,A){return!k.has(A)}),w(T.filter(function(H,A){return!k.has(A)})))},move:function(P,T){if(P!==T){var k=$();P<0||P>=k.length||T<0||T>=k.length||(m.keys=lE(m.keys,P,T),w(lE(k,P,T)))}}},I=x||[];return Array.isArray(I)||(I=[]),r(I.map(function(N,P){var T=m.keys[P];return T===void 0&&(m.keys[P]=m.id,T=m.keys[P],m.id+=1),{name:P,key:T,isListField:!0}}),O,g)})))}function BH(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(u){return t=!0,u}).then(function(u){n-=1,r[s]=u,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var AP="__@field_split__";function Kh(e){return e.map(function(t){return"".concat(ht(t),":").concat(t)}).join(AP)}var us=function(){function e(){rr(this,e),Y(this,"kvs",new Map)}return or(e,[{key:"set",value:function(n,r){this.kvs.set(Kh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Kh(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Kh(n))}},{key:"map",value:function(n){return _e(this.kvs.entries()).map(function(r){var o=ce(r,2),a=o[0],i=o[1],s=a.split(AP);return n({key:s.map(function(u){var d=u.match(/^([^:]*):(.*)$/),m=ce(d,3),v=m[1],p=m[2];return v==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),HH=["name"],VH=or(function e(t){var n=this;rr(this,e),Y(this,"formHooked",!1),Y(this,"forceRootUpdate",void 0),Y(this,"subscribable",!0),Y(this,"store",{}),Y(this,"fieldEntities",[]),Y(this,"initialValues",{}),Y(this,"callbacks",{}),Y(this,"validateMessages",null),Y(this,"preserve",null),Y(this,"lastValidatePromise",null),Y(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Y(this,"getInternalHooks",function(r){return r===vl?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(qn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Y(this,"useSubscribe",function(r){n.subscribable=r}),Y(this,"prevWithoutPreserves",null),Y(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Cs(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var u=s.key;i=Go(i,u,eo(r,u))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),Y(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new us;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Y(this,"getInitialValue",function(r){var o=eo(n.initialValues,r);return r.length?Cs(o):o}),Y(this,"setCallbacks",function(r){n.callbacks=r}),Y(this,"setValidateMessages",function(r){n.validateMessages=r}),Y(this,"setPreserve",function(r){n.preserve=r}),Y(this,"watchList",[]),Y(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Y(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),Y(this,"timeoutId",null),Y(this,"warningUnhooked",function(){}),Y(this,"updateStore",function(r){n.store=r}),Y(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Y(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new us;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),Y(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=dr(a);return o.get(i)||{INVALIDATE_NAME_PATH:dr(a)}})}),Y(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&ht(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var u=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),d=[];return u.forEach(function(m){var v,p,y="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(s){var h,C;if((h=(C=m).isList)!==null&&h!==void 0&&h.call(C))return}else if(!a&&(v=(p=m).isListField)!==null&&v!==void 0&&v.call(p))return;if(!i)d.push(y);else{var g="getMeta"in m?m.getMeta():null;i(g)&&d.push(y)}}),iE(n.store,d.map(dr))}),Y(this,"getFieldValue",function(r){n.warningUnhooked();var o=dr(r);return eo(n.store,o)}),Y(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:dr(r[i]),errors:[],warnings:[]}})}),Y(this,"getFieldError",function(r){n.warningUnhooked();var o=dr(r),a=n.getFieldsError([o])[0];return a.errors}),Y(this,"getFieldWarning",function(r){n.warningUnhooked();var o=dr(r),a=n.getFieldsError([o])[0];return a.warnings}),Y(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],u,d=!1;o.length===0?u=null:o.length===1?Array.isArray(i)?(u=i.map(dr),d=!1):(u=null,d=i):(u=i.map(dr),d=s);var m=n.getFieldEntities(!0),v=function(g){return g.isFieldTouched()};if(!u)return d?m.every(function(C){return v(C)||C.isList()}):m.some(v);var p=new us;u.forEach(function(C){p.set(C,[])}),m.forEach(function(C){var g=C.getNamePath();u.forEach(function(S){S.every(function(x,w){return g[w]===x})&&p.update(S,function(x){return[].concat(_e(x),[C])})})});var y=function(g){return g.some(v)},h=p.map(function(C){var g=C.value;return g});return d?h.every(y):h.some(y)}),Y(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Y(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(dr);return o.some(function(i){var s=i.getNamePath();return Is(a,s)&&i.isFieldValidating()})}),Y(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Y(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new us,a=n.getFieldEntities(!0);a.forEach(function(u){var d=u.props.initialValue,m=u.getNamePath();if(d!==void 0){var v=o.get(m)||new Set;v.add({entity:u,value:d}),o.set(m,v)}});var i=function(d){d.forEach(function(m){var v=m.props.initialValue;if(v!==void 0){var p=m.getNamePath(),y=n.getInitialValue(p);if(y!==void 0)qn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=o.get(p);if(h&&h.size>1)qn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var C=n.getFieldValue(p),g=m.isListField();!g&&(!r.skipExist||C===void 0)&&n.updateStore(Go(n.store,p,_e(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(u){var d=o.get(u);if(d){var m;(m=s).push.apply(m,_e(_e(d).map(function(v){return v.entity})))}})):s=a,i(s)}),Y(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Cs(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(dr);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Go(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),Y(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,u=jt(i,HH),d=dr(s);a.push(d),"value"in u&&n.updateStore(Go(n.store,d,u.value)),n.notifyObservers(o,[d],{type:"setField",data:i})}),n.notifyWatch(a)}),Y(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),u=X(X({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return o}),Y(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=eo(n.store,a);i===void 0&&n.updateStore(Go(n.store,a,o))}}),Y(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Y(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(v){return v!==r}),!n.isMergedPreserve(s)&&(!i||u.length>1)){var d=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==d&&n.fieldEntities.every(function(v){return!LP(v.getNamePath(),o)})){var m=n.store;n.updateStore(Go(m,o,d,!0)),n.notifyObservers(m,[o],{type:"remove"}),n.triggerDependenciesUpdate(m,o)}}n.notifyWatch([o])}}),Y(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),Y(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=X(X({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var u=s.onStoreChange;u(r,o,i)})}else n.forceRootUpdate()}),Y(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(_e(a))}),a}),Y(this,"updateValue",function(r,o){var a=dr(r),i=n.store;n.updateStore(Go(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),u=n.callbacks.onValuesChange;if(u){var d=iE(n.store,[a]);u(d,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(_e(s)))}),Y(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Cs(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Y(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Y(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new us;n.getFieldEntities().forEach(function(u){var d=u.props.dependencies;(d||[]).forEach(function(m){var v=dr(m);i.update(v,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(u),p})})});var s=function u(d){var m=i.get(d)||new Set;m.forEach(function(v){if(!o.has(v)){o.add(v);var p=v.getNamePath();v.isFieldDirty()&&p.length&&(a.push(p),u(p))}})};return s(r),a}),Y(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new us;o.forEach(function(d){var m=d.name,v=d.errors;s.set(m,v)}),i.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var u=i.filter(function(d){var m=d.name;return Is(r,m)});u.length&&a(u,i)}}),Y(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,u=s?a.map(dr):[],d=[],m=String(Date.now()),v=new Set,p=i||{},y=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(x){if(s||u.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(h&&!x.isFieldDirty())){var w=x.getNamePath();if(v.add(w.join(m)),!s||Is(u,w,y)){var R=x.validateRules(X({validateMessages:X(X({},zP),n.validateMessages)},i));d.push(R.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function($){var O,I=[],N=[];return(O=$.forEach)===null||O===void 0||O.call($,function(P){var T=P.rule.warningOnly,k=P.errors;T?N.push.apply(N,_e(k)):I.push.apply(I,_e(k))}),I.length?Promise.reject({name:w,errors:I,warnings:N}):{name:w,errors:I,warnings:N}}))}}});var C=BH(d);n.lastValidatePromise=C,C.catch(function(x){return x}).then(function(x){var w=x.map(function(R){var $=R.name;return $});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,x)});var g=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(u)):Promise.reject([])}).catch(function(x){var w=x.filter(function(R){return R&&R.errors.length});return Promise.reject({values:n.getFieldsValue(u),errorFields:w,outOfDate:n.lastValidatePromise!==C})});g.catch(function(x){return x});var S=u.filter(function(x){return v.has(x.join(m))});return n.triggerOnFieldsChange(S),g}),Y(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function NC(e){var t=l.useRef(),n=l.useState({}),r=ce(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new VH(a);t.current=i.getForm()}return[t.current]}var Zy=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),BP=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=l.useContext(Zy),s=l.useRef({});return l.createElement(Zy.Provider,{value:X(X({},i),{},{validateMessages:X(X({},i.validateMessages),n),triggerFormChange:function(d,m){r&&r(d,{changedFields:m,forms:s.current}),i.triggerFormChange(d,m)},triggerFormFinish:function(d,m){o&&o(d,{values:m,forms:s.current}),i.triggerFormFinish(d,m)},registerForm:function(d,m){d&&(s.current=X(X({},s.current),{},Y({},d,m))),i.registerForm(d,m)},unregisterForm:function(d){var m=X({},s.current);delete m[d],s.current=m,i.unregisterForm(d)}})},a)},WH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],KH=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,u=t.children,d=t.component,m=d===void 0?"form":d,v=t.validateMessages,p=t.validateTrigger,y=p===void 0?"onChange":p,h=t.onValuesChange,C=t.onFieldsChange,g=t.onFinish,S=t.onFinishFailed,x=t.clearOnDestroy,w=jt(t,WH),R=l.useRef(null),$=l.useContext(Zy),O=NC(i),I=ce(O,1),N=I[0],P=N.getInternalHooks(vl),T=P.useSubscribe,k=P.setInitialValues,H=P.setCallbacks,A=P.setValidateMessages,_=P.setPreserve,D=P.destroyForm;l.useImperativeHandle(n,function(){return X(X({},N),{},{nativeElement:R.current})}),l.useEffect(function(){return $.registerForm(r,N),function(){$.unregisterForm(r)}},[$,N,r]),A(X(X({},$.validateMessages),v)),H({onValuesChange:h,onFieldsChange:function(q){if($.triggerFormChange(r,q),C){for(var G=arguments.length,Z=new Array(G>1?G-1:0),ee=1;ee<G;ee++)Z[ee-1]=arguments[ee];C.apply(void 0,[q].concat(Z))}},onFinish:function(q){$.triggerFormFinish(r,q),g&&g(q)},onFinishFailed:S}),_(s);var j=l.useRef(null);k(o,!j.current),j.current||(j.current=!0),l.useEffect(function(){return function(){return D(x)}},[]);var z,F=typeof u=="function";if(F){var W=N.getFieldsValue(!0);z=u(W,N)}else z=u;T(!F);var K=l.useRef();l.useEffect(function(){LH(K.current||[],a||[])||N.setFields(a||[]),K.current=a},[a,N]);var B=l.useMemo(function(){return X(X({},N),{},{validateTrigger:y})},[N,y]),V=l.createElement(qu.Provider,{value:null},l.createElement(El.Provider,{value:B},z));return m===!1?V:l.createElement(m,Me({},w,{ref:R,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),N.submit()},onReset:function(q){var G;q.preventDefault(),N.resetFields(),(G=w.onReset)===null||G===void 0||G.call(w,q)}}),V)};function sE(e){try{return JSON.stringify(e)}catch{return Math.random()}}function HP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=nH(a)?{form:a}:a,s=i.form,u=l.useState(),d=ce(u,2),m=d[0],v=d[1],p=l.useMemo(function(){return sE(m)},[m]),y=l.useRef(p);y.current=p;var h=l.useContext(El),C=s||h,g=C&&C._init,S=dr(r),x=l.useRef(S);return x.current=S,l.useEffect(function(){if(g){var w=C.getFieldsValue,R=C.getInternalHooks,$=R(vl),O=$.registerWatch,I=function(k,H){var A=i.preserve?H:k;return typeof r=="function"?r(A):eo(A,x.current)},N=O(function(T,k){var H=I(T,k),A=sE(H);y.current!==A&&(y.current=A,v(H))}),P=I(w(),w(!0));return m!==P&&v(P),N}},[g]),m}var UH=l.forwardRef(KH),Js=UH;Js.FormProvider=BP;Js.Field=PC;Js.List=FP;Js.useForm=NC;Js.useWatch=HP;const Za=l.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),VP=l.createContext(null),WP=e=>{const t=Hn(e,["prefixCls"]);return l.createElement(BP,Object.assign({},t))},MC=l.createContext({prefixCls:""}),Ar=l.createContext({}),qH=({children:e,status:t,override:n})=>{const r=l.useContext(Ar),o=l.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return l.createElement(Ar.Provider,{value:o},e)},KP=l.createContext(void 0),Ol=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=pe.createElement(qH,{override:!0,status:!0},o)),t&&(o=pe.createElement(x5,null,o)),o};function Yu(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Hm(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function cE(e){const{closable:t,closeIcon:n}=e||{};return pe.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const YH={};function UP(e,t,n=YH){const r=cE(e),o=cE(t),[a]=ho("global",ea.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=pe.useMemo(()=>Object.assign({closeIcon:pe.createElement(jl,null)},n),[n]),u=pe.useMemo(()=>r===!1?!1:r?Yu(s,o,r):o===!1?!1:o?Yu(s,o):s.closable?s:!1,[r,o,s]);return pe.useMemo(()=>{if(u===!1)return[!1,null,i,{}];const{closeIconRender:d}=s,{closeIcon:m}=u;let v=m;const p=wr(u,!0);return v!=null&&(d&&(v=d(m)),v=pe.isValidElement(v)?pe.cloneElement(v,Object.assign({"aria-label":a.close},p)):pe.createElement("span",Object.assign({"aria-label":a.close},p),v)),[!0,v,i,p]},[u,s])}var qP=function(t){if(Tr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},GH=function(t,n){if(!qP(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function XH(e,t){return!Array.isArray(e)&&t!==void 0?GH(e,t):qP(e)}const QH=()=>Tr()&&window.document.documentElement,Kv=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=re({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=re({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),u=l.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return l.createElement("span",{className:re(t,i,s,n),style:Object.assign(Object.assign({},u),r)})},ZH=new xn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Uv=e=>({height:e,lineHeight:le(e)}),Ps=e=>Object.assign({width:e},Uv(e)),JH=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ZH,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Uh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Uv(e)),e7=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ps(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ps(o)),[`${t}${t}-sm`]:Object.assign({},Ps(a))}},t7=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Uh(t,s)),[`${r}-lg`]:Object.assign({},Uh(o,s)),[`${r}-sm`]:Object.assign({},Uh(a,s))}},uE=e=>Object.assign({width:e},Uv(e)),n7=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},uE(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},uE(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},qh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Yh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Uv(e)),r7=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Yh(r,s))},qh(e,r,n)),{[`${n}-lg`]:Object.assign({},Yh(o,s))}),qh(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Yh(a,s))}),qh(e,a,`${n}-sm`))},o7=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:u,controlHeightLG:d,controlHeightSM:m,gradientFromColor:v,padding:p,marginSM:y,borderRadius:h,titleHeight:C,blockRadius:g,paragraphLiHeight:S,controlHeightXS:x,paragraphMarginTop:w}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:v},Ps(u)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ps(d)),[`${n}-sm`]:Object.assign({},Ps(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:v,borderRadius:g,[`+ ${o}`]:{marginBlockStart:m}},[o]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:v,borderRadius:g,"+ li":{marginBlockStart:x}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},r7(e)),e7(e)),t7(e)),n7(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${o} > li,
${n},
${a},
${i},
${s}
`]:Object.assign({},JH(e))}}},a7=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}},ec=In("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=nn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[o7(r)]},a7,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),i7=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(Dt),u=s("skeleton",t),[d,m,v]=ec(u),p=Hn(e,["prefixCls","className"]),y=re(u,`${u}-element`,{[`${u}-active`]:o},n,r,m,v);return d(l.createElement("div",{className:y},l.createElement(Kv,Object.assign({prefixCls:`${u}-avatar`,shape:a,size:i},p))))},l7=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(Dt),u=s("skeleton",t),[d,m,v]=ec(u),p=Hn(e,["prefixCls"]),y=re(u,`${u}-element`,{[`${u}-active`]:o,[`${u}-block`]:a},n,r,m,v);return d(l.createElement("div",{className:y},l.createElement(Kv,Object.assign({prefixCls:`${u}-button`,size:i},p))))},s7="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",c7=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=l.useContext(Dt),s=i("skeleton",t),[u,d,m]=ec(s),v=re(s,`${s}-element`,{[`${s}-active`]:a},n,r,d,m);return u(l.createElement("div",{className:v},l.createElement("div",{className:re(`${s}-image`,n),style:o},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:s7,className:`${s}-image-path`})))))},u7=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=l.useContext(Dt),u=s("skeleton",t),[d,m,v]=ec(u),p=Hn(e,["prefixCls"]),y=re(u,`${u}-element`,{[`${u}-active`]:o,[`${u}-block`]:a},n,r,m,v);return d(l.createElement("div",{className:y},l.createElement(Kv,Object.assign({prefixCls:`${u}-input`,size:i},p))))},d7=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=l.useContext(Dt),u=s("skeleton",t),[d,m,v]=ec(u),p=re(u,`${u}-element`,{[`${u}-active`]:a},m,n,r,v);return d(l.createElement("div",{className:p},l.createElement("div",{className:re(`${u}-image`,n),style:o},i)))},f7=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},m7=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((i,s)=>l.createElement("li",{key:s,style:{width:f7(s,e)}}));return l.createElement("ul",{className:re(t,n),style:r},a)},v7=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:re(e,t),style:Object.assign({width:n},r)});function Gh(e){return e&&typeof e=="object"?e:{}}function p7(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function g7(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function h7(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const tc=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:u=!0,paragraph:d=!0,active:m,round:v}=e,{getPrefixCls:p,direction:y,className:h,style:C}=Er("skeleton"),g=p("skeleton",t),[S,x,w]=ec(g);if(n||!("loading"in e)){const R=!!s,$=!!u,O=!!d;let I;if(R){const T=Object.assign(Object.assign({prefixCls:`${g}-avatar`},p7($,O)),Gh(s));I=l.createElement("div",{className:`${g}-header`},l.createElement(Kv,Object.assign({},T)))}let N;if($||O){let T;if($){const H=Object.assign(Object.assign({prefixCls:`${g}-title`},g7(R,O)),Gh(u));T=l.createElement(v7,Object.assign({},H))}let k;if(O){const H=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},h7(R,$)),Gh(d));k=l.createElement(m7,Object.assign({},H))}N=l.createElement("div",{className:`${g}-content`},T,k)}const P=re(g,{[`${g}-with-avatar`]:R,[`${g}-active`]:m,[`${g}-rtl`]:y==="rtl",[`${g}-round`]:v},h,r,o,x,w);return S(l.createElement("div",{className:P,style:Object.assign(Object.assign({},C),a)},I,N))}return i??null};tc.Button=l7;tc.Avatar=i7;tc.Input=u7;tc.Image=c7;tc.Node=d7;function dE(){}const y7=l.createContext({add:dE,remove:dE});function b7(e){const t=l.useContext(y7),n=l.useRef(null);return ln(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const fE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(ud);return pe.createElement(Sn,Object.assign({onClick:n},e),t)},mE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=l.useContext(ud);return pe.createElement(Sn,Object.assign({},xC(n),{loading:e,onClick:o},t),r)};function YP(e,t){return pe.createElement("span",{className:`${e}-close-x`},t||pe.createElement(jl,{className:`${e}-close-icon`}))}const GP=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:u,footer:d}=e,[m]=ho("Modal",jI()),v=t||(m==null?void 0:m.okText),p=r||(m==null?void 0:m.cancelText),y={confirmLoading:o,okButtonProps:s,cancelButtonProps:u,okTextLocale:v,cancelTextLocale:p,okType:n,onOk:a,onCancel:i},h=pe.useMemo(()=>y,_e(Object.values(y)));let C;return typeof d=="function"||typeof d>"u"?(C=pe.createElement(pe.Fragment,null,pe.createElement(fE,null),pe.createElement(mE,null)),typeof d=="function"&&(C=d(C,{OkBtn:mE,CancelBtn:fE})),C=pe.createElement(NP,{value:h},C)):C=d,pe.createElement(pC,{disabled:!1},C)},C7=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"}}}},S7=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},x7=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Jy=(e,t)=>x7(e,t),w7=(e,t,n)=>({[`@media (min-width: ${le(t)})`]:Object.assign({},Jy(e,n))}),$7=()=>({}),E7=()=>({}),O7=In("Grid",C7,$7),XP=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),R7=In("Grid",e=>{const t=nn(e,{gridColumns:24}),n=XP(t);return delete n.xs,[S7(t),Jy(t,""),Jy(t,"-xs"),Object.keys(n).map(r=>w7(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},E7);function vE(e){return{position:e,inset:0}}const QP=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},vE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},vE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:wC(e)}]},I7=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${le(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},kn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${le(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:le(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ls(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${le(e.borderRadiusLG)} ${le(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:`${le(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},P7=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},N7=e=>{const{componentCls:t}=e,n=XP(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${le(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(_e(r))}}},ZP=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return nn(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()})},JP=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${le(e.paddingMD)} ${le(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${le(e.padding)} ${le(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${le(e.paddingXS)} ${le(e.padding)}`:0,footerBorderTop:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${le(e.padding*2)} ${le(e.padding*2)} ${le(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),eN=In("Modal",e=>{const t=ZP(e);return[I7(t),P7(t),QP(t),Zs(t,"zoom"),N7(t)]},JP,{unitless:{titleLineHeight:!0}});var M7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eb;const T7=e=>{eb={x:e.pageX,y:e.pageY},setTimeout(()=>{eb=null},100)};QH()&&document.documentElement.addEventListener("click",T7,!0);const tN=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:a,centered:i,getContainer:s,focusTriggerAfterClose:u=!0,style:d,visible:m,width:v=520,footer:p,classNames:y,styles:h,children:C,loading:g,confirmLoading:S,zIndex:x,mousePosition:w,onOk:R,onCancel:$,destroyOnHidden:O,destroyOnClose:I}=e,N=M7(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:P,getPrefixCls:T,direction:k,modal:H}=l.useContext(Dt),A=ie=>{S||$==null||$(ie)},_=ie=>{R==null||R(ie)},D=T("modal",t),j=T(),z=vr(D),[F,W,K]=eN(D,z),B=re(a,{[`${D}-centered`]:i??(H==null?void 0:H.centered),[`${D}-wrap-rtl`]:k==="rtl"}),V=p!==null&&!g?l.createElement(GP,Object.assign({},e,{onOk:_,onCancel:A})):null,[U,q,G,Z]=UP(Hm(e),Hm(H),{closable:!0,closeIcon:l.createElement(jl,{className:`${D}-close-icon`}),closeIconRender:ie=>YP(D,ie)}),ee=b7(`.${D}-content`),[J,oe]=ti("Modal",x),[ae,te]=l.useMemo(()=>v&&typeof v=="object"?[void 0,v]:[v,void 0],[v]),ne=l.useMemo(()=>{const ie={};return te&&Object.keys(te).forEach(de=>{const ve=te[de];ve!==void 0&&(ie[`--${D}-${de}-width`]=typeof ve=="number"?`${ve}px`:ve)}),ie},[te]);return F(l.createElement(Ol,{form:!0,space:!0},l.createElement(Ev.Provider,{value:oe},l.createElement(RC,Object.assign({width:ae},N,{zIndex:J,getContainer:s===void 0?P:s,prefixCls:D,rootClassName:re(W,r,K,z),footer:V,visible:o??m,mousePosition:w??eb,onClose:A,closable:U&&Object.assign({disabled:G,closeIcon:q},Z),closeIcon:q,focusTriggerAfterClose:u,transitionName:ba(j,"zoom",e.transitionName),maskTransitionName:ba(j,"fade",e.maskTransitionName),className:re(W,n,H==null?void 0:H.className),style:Object.assign(Object.assign(Object.assign({},H==null?void 0:H.style),d),ne),classNames:Object.assign(Object.assign(Object.assign({},H==null?void 0:H.classNames),y),{wrapper:re(B,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},H==null?void 0:H.styles),h),panelRef:ee,destroyOnClose:O??I}),g?l.createElement(tc,{active:!0,title:!1,paragraph:{rows:4},className:`${D}-body-skeleton`}):C))))},_7=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:u,confirmBodyPadding:d}=e,m=`${t}-confirm`;return{[m]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${m}-body-wrapper`]:Object.assign({},wl()),[`&${t} ${t}-body`]:{padding:d},[`${m}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(u).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${m}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${le(e.marginSM)})`},[`${e.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${le(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${m}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${m}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${m}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${m}-error ${m}-body > ${e.iconCls}`]:{color:e.colorError},[`${m}-warning ${m}-body > ${e.iconCls},
${m}-confirm ${m}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${m}-info ${m}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${m}-success ${m}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},D7=Ys(["Modal","confirm"],e=>{const t=ZP(e);return[_7(t)]},JP,{order:-1e3});var j7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nN(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:u,locale:d}=e,m=j7(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let v=n;if(!n&&n!==null)switch(i){case"info":v=l.createElement(fP,null);break;case"success":v=l.createElement($v,null);break;case"error":v=l.createElement(Xs,null);break;default:v=l.createElement(sd,null)}const p=s??i==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=ho("Modal"),C=d||h,g=r||(p?C==null?void 0:C.okText:C==null?void 0:C.justOkText),S=o||(C==null?void 0:C.cancelText),x=Object.assign({autoFocusButton:y,cancelTextLocale:S,okTextLocale:g,mergedOkCancel:p},m),w=l.useMemo(()=>x,_e(Object.values(x))),R=l.createElement(l.Fragment,null,l.createElement(V$,null),l.createElement(W$,null)),$=e.title!==void 0&&e.title!==null,O=`${a}-body`;return l.createElement("div",{className:`${a}-body-wrapper`},l.createElement("div",{className:re(O,{[`${O}-has-title`]:$})},v,l.createElement("div",{className:`${a}-paragraph`},$&&l.createElement("span",{className:`${a}-title`},e.title),l.createElement("div",{className:`${a}-content`},e.content))),u===void 0||typeof u=="function"?l.createElement(NP,{value:w},l.createElement("div",{className:`${a}-btns`},typeof u=="function"?u(R,{OkBtn:W$,CancelBtn:V$}):R)):u,l.createElement(D7,{prefixCls:t}))}const k7=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:a,wrapClassName:i,rootPrefixCls:s,bodyStyle:u,closable:d=!1,onConfirm:m,styles:v}=e,p=`${a}-confirm`,y=e.width||416,h=e.style||{},C=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,S=re(p,`${p}-${e.type}`,{[`${p}-rtl`]:o==="rtl"},e.className),[,x]=_r(),w=l.useMemo(()=>n!==void 0?n:x.zIndexPopupBase+hP,[n,x]);return l.createElement(tN,Object.assign({},e,{className:S,wrapClassName:re({[`${p}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),m==null||m(!1)},title:"",footer:null,transitionName:ba(s||"","zoom",e.transitionName),maskTransitionName:ba(s||"","fade",e.maskTransitionName),mask:C,maskClosable:g,style:h,styles:Object.assign({body:u,mask:r},v),width:y,zIndex:w,closable:d}),l.createElement(nN,Object.assign({},e,{confirmPrefixCls:p})))},rN=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return l.createElement(za,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},l.createElement(k7,Object.assign({},e)))},pl=[];let oN="";function aN(){return oN}const z7=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=jI(),s=l.useContext(Dt),u=aN()||s.getPrefixCls(),d=r||`${u}-modal`;let m=o;return m===!1&&(m=void 0),pe.createElement(rN,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:m}))};function fd(e){const t=lP(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:u,open:!0}),o,a;function i(...m){var v;if(m.some(h=>h==null?void 0:h.triggerCancel)){var y;(v=e.onCancel)===null||v===void 0||(y=v).call.apply(y,[e,()=>{}].concat(_e(m.slice(1))))}for(let h=0;h<pl.length;h++)if(pl[h]===u){pl.splice(h,1);break}a()}function s(m){clearTimeout(o),o=setTimeout(()=>{const v=t.getPrefixCls(void 0,aN()),p=t.getIconPrefixCls(),y=t.getTheme(),h=pe.createElement(z7,Object.assign({},m));a=SC()(pe.createElement(za,{prefixCls:v,iconPrefixCls:p,theme:y},t.holderRender?t.holderRender(h):h),n)})}function u(...m){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,m)}}),r.visible&&delete r.visible,s(r)}function d(m){typeof m=="function"?r=m(r):r=Object.assign(Object.assign({},r),m),s(r)}return s(r),pl.push(u),{destroy:u,update:d}}function iN(e){return Object.assign(Object.assign({},e),{type:"warning"})}function lN(e){return Object.assign(Object.assign({},e),{type:"info"})}function sN(e){return Object.assign(Object.assign({},e),{type:"success"})}function cN(e){return Object.assign(Object.assign({},e),{type:"error"})}function uN(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function L7({rootPrefixCls:e}){oN=e}var F7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A7=(e,t)=>{var n,{afterClose:r,config:o}=e,a=F7(e,["afterClose","config"]);const[i,s]=l.useState(!0),[u,d]=l.useState(o),{direction:m,getPrefixCls:v}=l.useContext(Dt),p=v("modal"),y=v(),h=()=>{var x;r(),(x=u.afterClose)===null||x===void 0||x.call(u)},C=(...x)=>{var w;if(s(!1),x.some(O=>O==null?void 0:O.triggerCancel)){var $;(w=u.onCancel)===null||w===void 0||($=w).call.apply($,[u,()=>{}].concat(_e(x.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:C,update:x=>{d(w=>{const R=typeof x=="function"?x(w):x;return Object.assign(Object.assign({},w),R)})}}));const g=(n=u.okCancel)!==null&&n!==void 0?n:u.type==="confirm",[S]=ho("Modal",ea.Modal);return l.createElement(rN,Object.assign({prefixCls:p,rootPrefixCls:y},u,{close:C,open:i,afterClose:h,okText:u.okText||(g?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:u.direction||m,cancelText:u.cancelText||(S==null?void 0:S.cancelText)},a))},B7=l.forwardRef(A7);let pE=0;const H7=l.memo(l.forwardRef((e,t)=>{const[n,r]=ZA();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function V7(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(_e(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(a=>function(s){var u;pE+=1;const d=l.createRef();let m;const v=new Promise(g=>{m=g});let p=!1,y;const h=l.createElement(B7,{key:`modal-${pE}`,config:a(s),ref:d,afterClose:()=>{y==null||y()},isSilent:()=>p,onConfirm:g=>{m(g)}});return y=(u=e.current)===null||u===void 0?void 0:u.patchElement(h),y&&pl.push(y),{destroy:()=>{function g(){var S;(S=d.current)===null||S===void 0||S.destroy()}d.current?g():n(S=>[].concat(_e(S),[g]))},update:g=>{function S(){var x;(x=d.current)===null||x===void 0||x.update(g)}d.current?S():n(x=>[].concat(_e(x),[S]))},then:g=>(p=!0,v.then(g))}},[]);return[l.useMemo(()=>({info:r(lN),success:r(sN),error:r(cN),warning:r(iN),confirm:r(uN)}),[]),l.createElement(H7,{key:"modal-holder",ref:e})]}const W7=pe.createContext({});function dN(e){return t=>l.createElement(za,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const qv=(e,t,n,r,o)=>dN(i=>{const{prefixCls:s,style:u}=i,d=l.useRef(null),[m,v]=l.useState(0),[p,y]=l.useState(0),[h,C]=Tn(!1,{value:i.open}),{getPrefixCls:g}=l.useContext(Dt),S=g(r||"select",s);l.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(O=>{const I=O[0].target;v(I.offsetHeight+8),y(I.offsetWidth)}),$=setInterval(()=>{var O;const I=o?`.${o(S)}`:`.${S}-dropdown`,N=(O=d.current)===null||O===void 0?void 0:O.querySelector(I);N&&(clearInterval($),R.observe(N))},10);return()=>{clearInterval($),R.disconnect()}}},[]);let x=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},u),{margin:0}),open:h,visible:h,getPopupContainer:()=>d.current});t&&Object.assign(x,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:m,position:"relative",minWidth:p};return l.createElement("div",{ref:d,style:w},l.createElement(e,Object.assign({},x)))}),fN=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Yv=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,u=typeof r=="function"?r(o):r;return l.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),i==null||i(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},u!==void 0?u:l.createElement("span",{className:re(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},a))},K7=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=pe.useMemo(function(){if(ht(o)==="object")return o.clearIcon;if(a)return a},[o,a]),m=pe.useMemo(function(){return!!(!i&&o&&(r.length||s)&&!(u==="combobox"&&s===""))},[o,i,r.length,s,u]);return{allowClear:m,clearIcon:pe.createElement(Yv,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},mN=l.createContext(null);function U7(){return l.useContext(mN)}function q7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=ce(t,2),r=n[0],o=n[1],a=l.useRef(null),i=function(){window.clearTimeout(a.current)};l.useEffect(function(){return i},[]);var s=function(d,m){i(),a.current=window.setTimeout(function(){o(d),m&&m()},e)};return[r,s,i]}function vN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Y7(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var u=i.target;u.shadowRoot&&i.composed&&(u=i.composedPath()[0]||u),o.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(u)&&d!==u})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function G7(e){return e&&![Et.ESC,Et.SHIFT,Et.BACKSPACE,Et.TAB,Et.WIN_KEY,Et.ALT,Et.META,Et.WIN_KEY_RIGHT,Et.CTRL,Et.SEMICOLON,Et.EQUALS,Et.CAPS_LOCK,Et.CONTEXT_MENU,Et.F1,Et.F2,Et.F3,Et.F4,Et.F5,Et.F6,Et.F7,Et.F8,Et.F9,Et.F10,Et.F11,Et.F12].includes(e)}var X7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ds=void 0;function Q7(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,m=e.className,v=e.style,p=e.children,y=e.display,h=e.order,C=e.component,g=C===void 0?"div":C,S=jt(e,X7),x=i&&!y;function w(N){u(d,N)}l.useEffect(function(){return function(){w(null)}},[]);var R=a&&o!==ds?a(o,{index:h}):p,$;r||($={opacity:x?0:1,height:x?0:ds,overflowY:x?"hidden":ds,order:i?h:ds,pointerEvents:x?"none":ds,position:x?"absolute":ds});var O={};x&&(O["aria-hidden"]=!0);var I=l.createElement(g,Me({className:re(!r&&n,m),style:X(X({},$),v)},O,S,{ref:t}),R);return i&&(I=l.createElement(_o,{onResize:function(P){var T=P.offsetWidth;w(T)},disabled:s},I)),I}var Ru=l.forwardRef(Q7);Ru.displayName="Item";function Z7(e){if(typeof MessageChannel>"u")cn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function J7(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Z7(function(){Zo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Zc(e,t){var n=l.useState(t),r=ce(n,2),o=r[0],a=r[1],i=ln(function(s){e(function(){a(s)})});return[o,i]}var Vm=pe.createContext(null),e9=["component"],t9=["className"],n9=["className"],r9=function(t,n){var r=l.useContext(Vm);if(!r){var o=t.component,a=o===void 0?"div":o,i=jt(t,e9);return l.createElement(a,Me({},i,{ref:n}))}var s=r.className,u=jt(r,t9),d=t.className,m=jt(t,n9);return l.createElement(Vm.Provider,{value:null},l.createElement(Ru,Me({ref:n,className:re(s,d)},u,m)))},pN=l.forwardRef(r9);pN.displayName="RawItem";var o9=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],gN="responsive",hN="invalidate";function a9(e){return"+ ".concat(e.length," ...")}function i9(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,u=e.itemKey,d=e.itemWidth,m=d===void 0?10:d,v=e.ssr,p=e.style,y=e.className,h=e.maxCount,C=e.renderRest,g=e.renderRawRest,S=e.suffix,x=e.component,w=x===void 0?"div":x,R=e.itemComponent,$=e.onVisibleChange,O=jt(e,o9),I=v==="full",N=J7(),P=Zc(N,null),T=ce(P,2),k=T[0],H=T[1],A=k||0,_=Zc(N,new Map),D=ce(_,2),j=D[0],z=D[1],F=Zc(N,0),W=ce(F,2),K=W[0],B=W[1],V=Zc(N,0),U=ce(V,2),q=U[0],G=U[1],Z=Zc(N,0),ee=ce(Z,2),J=ee[0],oe=ee[1],ae=l.useState(null),te=ce(ae,2),ne=te[0],ie=te[1],de=l.useState(null),ve=ce(de,2),se=ve[0],he=ve[1],Se=l.useMemo(function(){return se===null&&I?Number.MAX_SAFE_INTEGER:se||0},[se,k]),je=l.useState(!1),Te=ce(je,2),Ce=Te[0],xe=Te[1],Ne="".concat(r,"-item"),Ee=Math.max(K,q),Be=h===gN,Ve=a.length&&Be,tt=h===hN,nt=Ve||typeof h=="number"&&a.length>h,We=l.useMemo(function(){var mt=a;return Ve?k===null&&I?mt=a:mt=a.slice(0,Math.min(a.length,A/m)):typeof h=="number"&&(mt=a.slice(0,h)),mt},[a,m,k,h,Ve]),Ze=l.useMemo(function(){return Ve?a.slice(Se+1):a.slice(We.length)},[a,We,Ve,Se]),Le=l.useCallback(function(mt,ue){var fe;return typeof u=="function"?u(mt):(fe=u&&(mt==null?void 0:mt[u]))!==null&&fe!==void 0?fe:ue},[u]),Re=l.useCallback(i||function(mt){return mt},[i]);function qe(mt,ue,fe){se===mt&&(ue===void 0||ue===ne)||(he(mt),fe||(xe(mt<a.length-1),$==null||$(mt)),ue!==void 0&&ie(ue))}function ye(mt,ue){H(ue.clientWidth)}function Oe(mt,ue){z(function(fe){var be=new Map(fe);return ue===null?be.delete(mt):be.set(mt,ue),be})}function Fe(mt,ue){G(ue),B(q)}function we(mt,ue){oe(ue)}function He(mt){return j.get(Le(We[mt],mt))}dn(function(){if(A&&typeof Ee=="number"&&We){var mt=J,ue=We.length,fe=ue-1;if(!ue){qe(0,null);return}for(var be=0;be<ue;be+=1){var De=He(be);if(I&&(De=De||0),De===void 0){qe(be-1,void 0,!0);break}if(mt+=De,fe===0&&mt<=A||be===fe-1&&mt+He(fe)<=A){qe(fe,null);break}else if(mt+Ee>A){qe(be-1,mt-De-J+q);break}}S&&He(0)+J>A&&ie(null)}},[A,j,q,J,Le,We]);var ot=Ce&&!!Ze.length,gt={};ne!==null&&Ve&&(gt={position:"absolute",left:ne,top:0});var yt={prefixCls:Ne,responsive:Ve,component:R,invalidate:tt},Rt=s?function(mt,ue){var fe=Le(mt,ue);return l.createElement(Vm.Provider,{key:fe,value:X(X({},yt),{},{order:ue,item:mt,itemKey:fe,registerSize:Oe,display:ue<=Se})},s(mt,ue))}:function(mt,ue){var fe=Le(mt,ue);return l.createElement(Ru,Me({},yt,{order:ue,key:fe,item:mt,renderItem:Re,itemKey:fe,registerSize:Oe,display:ue<=Se}))},qt={order:ot?Se:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:Fe,display:ot},Wt=C||a9,It=g?l.createElement(Vm.Provider,{value:X(X({},yt),qt)},g(Ze)):l.createElement(Ru,Me({},yt,qt),typeof Wt=="function"?Wt(Ze):Wt),bt=l.createElement(w,Me({className:re(!tt&&r,y),style:p,ref:t},O),We.map(Rt),nt?It:null,S&&l.createElement(Ru,Me({},yt,{responsive:Be,responsiveDisabled:!Ve,order:Se,className:"".concat(Ne,"-suffix"),registerSize:we,display:!0,style:gt}),S));return Be?l.createElement(_o,{onResize:ye,disabled:!Ve},bt):bt}var ga=l.forwardRef(i9);ga.displayName="Overflow";ga.Item=pN;ga.RESPONSIVE=gN;ga.INVALIDATE=hN;function l9(e,t,n){var r=X(X({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];return a.apply(void 0,u),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(u))})}),r}var s9=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],c9=function(t,n){var r=t.prefixCls,o=t.id,a=t.inputElement,i=t.autoFocus,s=t.autoComplete,u=t.editable,d=t.activeDescendantId,m=t.value,v=t.open,p=t.attrs,y=jt(t,s9),h=a||l.createElement("input",null),C=h,g=C.ref,S=C.props;return"maxLength"in h.props,h=l.cloneElement(h,X(X(X({type:"search"},l9(y,S)),{},{id:o,ref:To(n,g),autoComplete:s||"off",autoFocus:i,className:re("".concat(r,"-selection-search-input"),S==null?void 0:S.className),role:"combobox","aria-expanded":v||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":v?d:void 0},p),{},{value:u?m:"",readOnly:!u,unselectable:u?null:"on",style:X(X({},S.style),{},{opacity:u?null:0})})),h},yN=l.forwardRef(c9);function bN(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var u9=typeof window<"u"&&window.document&&window.document.documentElement,d9=u9;function f9(e){return e!=null}function m9(e){return!e&&e!==0}function gE(e){return["string","number"].includes(ht(e))}function CN(e){var t=void 0;return e&&(gE(e.title)?t=e.title.toString():gE(e.label)&&(t=e.label.toString())),t}function v9(e,t){d9?l.useLayoutEffect(e,t):l.useEffect(e,t)}function p9(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var hE=function(t){t.preventDefault(),t.stopPropagation()},g9=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,u=t.inputRef,d=t.placeholder,m=t.disabled,v=t.mode,p=t.showSearch,y=t.autoFocus,h=t.autoComplete,C=t.activeDescendantId,g=t.tabIndex,S=t.removeIcon,x=t.maxTagCount,w=t.maxTagTextLength,R=t.maxTagPlaceholder,$=R===void 0?function(de){return"+ ".concat(de.length," ...")}:R,O=t.tagRender,I=t.onToggleOpen,N=t.onRemove,P=t.onInputChange,T=t.onInputPaste,k=t.onInputKeyDown,H=t.onInputMouseDown,A=t.onInputCompositionStart,_=t.onInputCompositionEnd,D=t.onInputBlur,j=l.useRef(null),z=l.useState(0),F=ce(z,2),W=F[0],K=F[1],B=l.useState(!1),V=ce(B,2),U=V[0],q=V[1],G="".concat(r,"-selection"),Z=a||v==="multiple"&&s===!1||v==="tags"?i:"",ee=v==="tags"||v==="multiple"&&s===!1||p&&(a||U);v9(function(){K(j.current.scrollWidth)},[Z]);var J=function(ve,se,he,Se,je){return l.createElement("span",{title:CN(ve),className:re("".concat(G,"-item"),Y({},"".concat(G,"-item-disabled"),he))},l.createElement("span",{className:"".concat(G,"-item-content")},se),Se&&l.createElement(Yv,{className:"".concat(G,"-item-remove"),onMouseDown:hE,onClick:je,customizeIcon:S},"×"))},oe=function(ve,se,he,Se,je,Te){var Ce=function(Ne){hE(Ne),I(!a)};return l.createElement("span",{onMouseDown:Ce},O({label:se,value:ve,disabled:he,closable:Se,onClose:je,isMaxTag:!!Te}))},ae=function(ve){var se=ve.disabled,he=ve.label,Se=ve.value,je=!m&&!se,Te=he;if(typeof w=="number"&&(typeof he=="string"||typeof he=="number")){var Ce=String(Te);Ce.length>w&&(Te="".concat(Ce.slice(0,w),"..."))}var xe=function(Ee){Ee&&Ee.stopPropagation(),N(ve)};return typeof O=="function"?oe(Se,Te,se,je,xe):J(ve,Te,se,je,xe)},te=function(ve){if(!o.length)return null;var se=typeof $=="function"?$(ve):$;return typeof O=="function"?oe(void 0,se,!1,!1,void 0,!0):J({title:se},se,!1)},ne=l.createElement("div",{className:"".concat(G,"-search"),style:{width:W},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},l.createElement(yN,{ref:u,open:a,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:y,autoComplete:h,editable:ee,activeDescendantId:C,value:Z,onKeyDown:k,onMouseDown:H,onChange:P,onPaste:T,onCompositionStart:A,onCompositionEnd:_,onBlur:D,tabIndex:g,attrs:wr(t,!0)}),l.createElement("span",{ref:j,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},Z," ")),ie=l.createElement(ga,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:ae,renderRest:te,suffix:ne,itemKey:p9,maxCount:x});return l.createElement("span",{className:"".concat(G,"-wrap")},ie,!o.length&&!Z&&l.createElement("span",{className:"".concat(G,"-placeholder")},d))},h9=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,u=t.autoComplete,d=t.activeDescendantId,m=t.mode,v=t.open,p=t.values,y=t.placeholder,h=t.tabIndex,C=t.showSearch,g=t.searchValue,S=t.activeValue,x=t.maxLength,w=t.onInputKeyDown,R=t.onInputMouseDown,$=t.onInputChange,O=t.onInputPaste,I=t.onInputCompositionStart,N=t.onInputCompositionEnd,P=t.onInputBlur,T=t.title,k=l.useState(!1),H=ce(k,2),A=H[0],_=H[1],D=m==="combobox",j=D||C,z=p[0],F=g||"";D&&S&&!A&&(F=S),l.useEffect(function(){D&&_(!1)},[D,S]);var W=m!=="combobox"&&!v&&!C?!1:!!F,K=T===void 0?CN(z):T,B=l.useMemo(function(){return z?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:W?{visibility:"hidden"}:void 0},y)},[z,W,y,r]);return l.createElement("span",{className:"".concat(r,"-selection-wrap")},l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(yN,{ref:a,prefixCls:r,id:o,open:v,inputElement:n,disabled:i,autoFocus:s,autoComplete:u,editable:j,activeDescendantId:d,value:F,onKeyDown:w,onMouseDown:R,onChange:function(U){_(!0),$(U)},onPaste:O,onCompositionStart:I,onCompositionEnd:N,onBlur:P,tabIndex:h,attrs:wr(t,!0),maxLength:D?x:void 0})),!D&&z?l.createElement("span",{className:"".concat(r,"-selection-item"),title:K,style:W?{visibility:"hidden"}:void 0},z.label):null,B)},y9=function(t,n){var r=l.useRef(null),o=l.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,u=t.showSearch,d=t.tokenWithEnter,m=t.disabled,v=t.prefix,p=t.autoClearSearchValue,y=t.onSearch,h=t.onSearchSubmit,C=t.onToggleOpen,g=t.onInputKeyDown,S=t.onInputBlur,x=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(K){r.current.focus(K)},blur:function(){r.current.blur()}}});var w=vN(0),R=ce(w,2),$=R[0],O=R[1],I=function(K){var B=K.which,V=r.current instanceof HTMLTextAreaElement;!V&&i&&(B===Et.UP||B===Et.DOWN)&&K.preventDefault(),g&&g(K),B===Et.ENTER&&s==="tags"&&!o.current&&!i&&(h==null||h(K.target.value)),!(V&&!i&&~[Et.UP,Et.DOWN,Et.LEFT,Et.RIGHT].indexOf(B))&&G7(B)&&C(!0)},N=function(){O(!0)},P=l.useRef(null),T=function(K){y(K,!0,o.current)!==!1&&C(!0)},k=function(){o.current=!0},H=function(K){o.current=!1,s!=="combobox"&&T(K.target.value)},A=function(K){var B=K.target.value;if(d&&P.current&&/[\r\n]/.test(P.current)){var V=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(V,P.current)}P.current=null,T(B)},_=function(K){var B=K.clipboardData,V=B==null?void 0:B.getData("text");P.current=V||""},D=function(K){var B=K.target;if(B!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(K){var B=$();K.target!==r.current&&!B&&!(s==="combobox"&&m)&&K.preventDefault(),(s!=="combobox"&&(!u||!B)||!i)&&(i&&p!==!1&&y("",!0,!1),C())},z={inputRef:r,onInputKeyDown:I,onInputMouseDown:N,onInputChange:A,onInputPaste:_,onInputCompositionStart:k,onInputCompositionEnd:H,onInputBlur:S},F=s==="multiple"||s==="tags"?l.createElement(g9,Me({},t,z)):l.createElement(h9,Me({},t,z));return l.createElement("div",{ref:x,className:"".concat(a,"-selector"),onClick:D,onMouseDown:j},v&&l.createElement("div",{className:"".concat(a,"-prefix")},v),F)},b9=l.forwardRef(y9);function C9(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,u=o.x,d=u===void 0?0:u,m=o.y,v=m===void 0?0:m,p=l.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],C=n.points[1],g=h[0],S=h[1],x=C[0],w=C[1];g===x||!["t","b"].includes(g)?y.top=v:g==="t"?y.top=0:y.bottom=0,S===w||!["l","r"].includes(S)?y.left=d:S==="l"?y.left=0:y.right=0}return l.createElement("div",{ref:p,className:re("".concat(t,"-arrow"),i),style:y},s)}function S9(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?l.createElement(Do,Me({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:re("".concat(t,"-mask"),s)})}):null}var x9=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),w9=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,m=e.fresh,v=e.onClick,p=e.mask,y=e.arrow,h=e.arrowPos,C=e.align,g=e.motion,S=e.maskMotion,x=e.forceRender,w=e.getPopupContainer,R=e.autoDestroy,$=e.portal,O=e.zIndex,I=e.onMouseEnter,N=e.onMouseLeave,P=e.onPointerEnter,T=e.onPointerDownCapture,k=e.ready,H=e.offsetX,A=e.offsetY,_=e.offsetR,D=e.offsetB,j=e.onAlign,z=e.onPrepare,F=e.stretch,W=e.targetWidth,K=e.targetHeight,B=typeof n=="function"?n():n,V=u||d,U=(w==null?void 0:w.length)>0,q=l.useState(!w||!U),G=ce(q,2),Z=G[0],ee=G[1];if(dn(function(){!Z&&U&&i&&ee(!0)},[Z,U,i]),!Z)return null;var J="auto",oe={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(k||!u){var ae,te=C.points,ne=C.dynamicInset||((ae=C._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ie=ne&&te[0][1]==="r",de=ne&&te[0][0]==="b";ie?(oe.right=_,oe.left=J):(oe.left=H,oe.right=J),de?(oe.bottom=D,oe.top=J):(oe.top=A,oe.bottom=J)}var ve={};return F&&(F.includes("height")&&K?ve.height=K:F.includes("minHeight")&&K&&(ve.minHeight=K),F.includes("width")&&W?ve.width=W:F.includes("minWidth")&&W&&(ve.minWidth=W)),u||(ve.pointerEvents="none"),l.createElement($,{open:x||V,getContainer:w&&function(){return w(i)},autoDestroy:R},l.createElement(S9,{prefixCls:o,open:u,zIndex:O,mask:p,motion:S}),l.createElement(_o,{onResize:j,disabled:!u},function(se){return l.createElement(Do,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:z,onEnterPrepare:z,visible:u,onVisibleChanged:function(Se){var je;g==null||(je=g.onVisibleChanged)===null||je===void 0||je.call(g,Se),s(Se)}}),function(he,Se){var je=he.className,Te=he.style,Ce=re(o,je,r);return l.createElement("div",{ref:To(se,t,Se),className:Ce,style:X(X(X(X({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},oe),ve),Te),{},{boxSizing:"border-box",zIndex:O},a),onMouseEnter:I,onMouseLeave:N,onPointerEnter:P,onClick:v,onPointerDownCapture:T},y&&l.createElement(C9,{prefixCls:o,arrow:y,arrowPos:h,align:C}),l.createElement(x9,{cache:!u&&!m},B))})}))}),$9=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ha(n),a=l.useCallback(function(s){zu(t,r?r(s):s)},[r]),i=Wi(a,Ki(n));return o?l.cloneElement(n,{ref:i}):n}),yE=l.createContext(null);function bE(e){return e?Array.isArray(e)?e:[e]:[]}function E9(e,t,n,r){return l.useMemo(function(){var o=bE(n??t),a=bE(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function O9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function R9(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,u=a[i];if(O9((s=e[u])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(u)}return""}function CE(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function md(e){return e.ownerDocument.defaultView}function tb(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=md(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(u){return r.includes(u)})&&t.push(n),n=n.parentElement}return t}function Gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Jc(e){return Gu(parseFloat(e),0)}function SE(e,t){var n=X({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=md(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,u=o.borderBottomWidth,d=o.borderLeftWidth,m=o.borderRightWidth,v=r.getBoundingClientRect(),p=r.offsetHeight,y=r.clientHeight,h=r.offsetWidth,C=r.clientWidth,g=Jc(s),S=Jc(u),x=Jc(d),w=Jc(m),R=Gu(Math.round(v.width/h*1e3)/1e3),$=Gu(Math.round(v.height/p*1e3)/1e3),O=(h-C-x-w)*R,I=(p-y-g-S)*$,N=g*$,P=S*$,T=x*R,k=w*R,H=0,A=0;if(a==="clip"){var _=Jc(i);H=_*R,A=_*$}var D=v.x+T-H,j=v.y+N-A,z=D+v.width+2*H-T-k-O,F=j+v.height+2*A-N-P-I;n.left=Math.max(n.left,D),n.top=Math.max(n.top,j),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,F)}}),n}function xE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function wE(e,t){var n=t||[],r=ce(n,2),o=r[0],a=r[1];return[xE(e.width,o),xE(e.height,a)]}function $E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function fs(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function bi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function I9(e,t,n,r,o,a,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),u=ce(s,2),d=u[0],m=u[1],v=l.useRef(0),p=l.useMemo(function(){return t?tb(t):[]},[t]),y=l.useRef({}),h=function(){y.current={}};e||h();var C=ln(function(){if(t&&n&&e){let zn=function(gr,jr){var jo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be,yo=V.x+gr,Fl=V.y+jr,kt=yo+de,Gt=Fl+ie,Kn=Math.max(yo,jo.left),tr=Math.max(Fl,jo.top),Bn=Math.min(kt,jo.right),La=Math.min(Gt,jo.bottom);return Math.max(0,(Bn-Kn)*(La-tr))},er=function(){Lt=V.y+be,Bt=Lt+ie,Pt=V.x+fe,rn=Pt+de};var gn=zn,Or=er,x,w,R,$,O=t,I=O.ownerDocument,N=md(O),P=N.getComputedStyle(O),T=P.position,k=O.style.left,H=O.style.top,A=O.style.right,_=O.style.bottom,D=O.style.overflow,j=X(X({},o[r]),a),z=I.createElement("div");(x=O.parentElement)===null||x===void 0||x.appendChild(z),z.style.left="".concat(O.offsetLeft,"px"),z.style.top="".concat(O.offsetTop,"px"),z.style.position=T,z.style.height="".concat(O.offsetHeight,"px"),z.style.width="".concat(O.offsetWidth,"px"),O.style.left="0",O.style.top="0",O.style.right="auto",O.style.bottom="auto",O.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var W,K,B=n.getBoundingClientRect();B.x=(W=B.x)!==null&&W!==void 0?W:B.left,B.y=(K=B.y)!==null&&K!==void 0?K:B.top,F={x:B.x,y:B.y,width:B.width,height:B.height}}var V=O.getBoundingClientRect(),U=N.getComputedStyle(O),q=U.height,G=U.width;V.x=(w=V.x)!==null&&w!==void 0?w:V.left,V.y=(R=V.y)!==null&&R!==void 0?R:V.top;var Z=I.documentElement,ee=Z.clientWidth,J=Z.clientHeight,oe=Z.scrollWidth,ae=Z.scrollHeight,te=Z.scrollTop,ne=Z.scrollLeft,ie=V.height,de=V.width,ve=F.height,se=F.width,he={left:0,top:0,right:ee,bottom:J},Se={left:-ne,top:-te,right:oe-ne,bottom:ae-te},je=j.htmlRegion,Te="visible",Ce="visibleFirst";je!=="scroll"&&je!==Ce&&(je=Te);var xe=je===Ce,Ne=SE(Se,p),Ee=SE(he,p),Be=je===Te?Ee:Ne,Ve=xe?Ee:Be;O.style.left="auto",O.style.top="auto",O.style.right="0",O.style.bottom="0";var tt=O.getBoundingClientRect();O.style.left=k,O.style.top=H,O.style.right=A,O.style.bottom=_,O.style.overflow=D,($=O.parentElement)===null||$===void 0||$.removeChild(z);var nt=Gu(Math.round(de/parseFloat(G)*1e3)/1e3),We=Gu(Math.round(ie/parseFloat(q)*1e3)/1e3);if(nt===0||We===0||ku(n)&&!Qs(n))return;var Ze=j.offset,Le=j.targetOffset,Re=wE(V,Ze),qe=ce(Re,2),ye=qe[0],Oe=qe[1],Fe=wE(F,Le),we=ce(Fe,2),He=we[0],ot=we[1];F.x-=He,F.y-=ot;var gt=j.points||[],yt=ce(gt,2),Rt=yt[0],qt=yt[1],Wt=$E(qt),It=$E(Rt),bt=fs(F,Wt),mt=fs(V,It),ue=X({},j),fe=bt.x-mt.x+ye,be=bt.y-mt.y+Oe,De=zn(fe,be),Pe=zn(fe,be,Ee),ke=fs(F,["t","l"]),Qe=fs(V,["t","l"]),Ke=fs(F,["b","r"]),Ye=fs(V,["b","r"]),et=j.overflow||{},Je=et.adjustX,Ge=et.adjustY,rt=et.shiftX,st=et.shiftY,Nt=function(jr){return typeof jr=="boolean"?jr:jr>=0},Lt,Bt,Pt,rn;er();var Jt=Nt(Ge),ct=It[0]===Wt[0];if(Jt&&It[0]==="t"&&(Bt>Ve.bottom||y.current.bt)){var ut=be;ct?ut-=ie-ve:ut=ke.y-Ye.y-Oe;var Tt=zn(fe,ut),Ct=zn(fe,ut,Ee);Tt>De||Tt===De&&(!xe||Ct>=Pe)?(y.current.bt=!0,be=ut,Oe=-Oe,ue.points=[bi(It,0),bi(Wt,0)]):y.current.bt=!1}if(Jt&&It[0]==="b"&&(Lt<Ve.top||y.current.tb)){var Yt=be;ct?Yt+=ie-ve:Yt=Ke.y-Qe.y-Oe;var pn=zn(fe,Yt),On=zn(fe,Yt,Ee);pn>De||pn===De&&(!xe||On>=Pe)?(y.current.tb=!0,be=Yt,Oe=-Oe,ue.points=[bi(It,0),bi(Wt,0)]):y.current.tb=!1}var Ut=Nt(Je),wt=It[1]===Wt[1];if(Ut&&It[1]==="l"&&(rn>Ve.right||y.current.rl)){var Mt=fe;wt?Mt-=de-se:Mt=ke.x-Ye.x-ye;var Kt=zn(Mt,be),Cn=zn(Mt,be,Ee);Kt>De||Kt===De&&(!xe||Cn>=Pe)?(y.current.rl=!0,fe=Mt,ye=-ye,ue.points=[bi(It,1),bi(Wt,1)]):y.current.rl=!1}if(Ut&&It[1]==="r"&&(Pt<Ve.left||y.current.lr)){var on=fe;wt?on+=de-se:on=Ke.x-Qe.x-ye;var Pn=zn(on,be),ar=zn(on,be,Ee);Pn>De||Pn===De&&(!xe||ar>=Pe)?(y.current.lr=!0,fe=on,ye=-ye,ue.points=[bi(It,1),bi(Wt,1)]):y.current.lr=!1}er();var Yn=rt===!0?0:rt;typeof Yn=="number"&&(Pt<Ee.left&&(fe-=Pt-Ee.left-ye,F.x+se<Ee.left+Yn&&(fe+=F.x-Ee.left+se-Yn)),rn>Ee.right&&(fe-=rn-Ee.right-ye,F.x>Ee.right-Yn&&(fe+=F.x-Ee.right+Yn)));var pr=st===!0?0:st;typeof pr=="number"&&(Lt<Ee.top&&(be-=Lt-Ee.top-Oe,F.y+ve<Ee.top+pr&&(be+=F.y-Ee.top+ve-pr)),Bt>Ee.bottom&&(be-=Bt-Ee.bottom-Oe,F.y>Ee.bottom-pr&&(be+=F.y-Ee.bottom+pr)));var Qn=V.x+fe,Wn=Qn+de,Zn=V.y+be,mn=Zn+ie,Ot=F.x,$t=Ot+se,un=F.y,xt=un+ve,St=Math.max(Qn,Ot),en=Math.min(Wn,$t),_n=(St+en)/2,An=_n-Qn,Zt=Math.max(Zn,un),Jn=Math.min(mn,xt),sr=(Zt+Jn)/2,vt=sr-Zn;i==null||i(t,ue);var it=tt.right-V.x-(fe+V.width),Ft=tt.bottom-V.y-(be+V.height);nt===1&&(fe=Math.round(fe),it=Math.round(it)),We===1&&(be=Math.round(be),Ft=Math.round(Ft));var vn={ready:!0,offsetX:fe/nt,offsetY:be/We,offsetR:it/nt,offsetB:Ft/We,arrowX:An/nt,arrowY:vt/We,scaleX:nt,scaleY:We,align:ue};m(vn)}}),g=function(){v.current+=1;var w=v.current;Promise.resolve().then(function(){v.current===w&&C()})},S=function(){m(function(w){return X(X({},w),{},{ready:!1})})};return dn(S,[r]),dn(function(){e||S()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,g]}function P9(e,t,n,r,o){dn(function(){if(e&&t&&n){let p=function(){r(),o()};var v=p,a=t,i=n,s=tb(a),u=tb(i),d=md(i),m=new Set([d].concat(_e(s),_e(u)));return m.forEach(function(y){y.addEventListener("scroll",p,{passive:!0})}),d.addEventListener("resize",p,{passive:!0}),r(),function(){m.forEach(function(y){y.removeEventListener("scroll",p),d.removeEventListener("resize",p)})}}},[e,t,n])}function N9(e,t,n,r,o,a,i,s){var u=l.useRef(e);u.current=e;var d=l.useRef(!1);l.useEffect(function(){if(t&&r&&(!o||a)){var v=function(){d.current=!1},p=function(g){var S;u.current&&!i(((S=g.composedPath)===null||S===void 0||(S=S.call(g))===null||S===void 0?void 0:S[0])||g.target)&&!d.current&&s(!1)},y=md(r);y.addEventListener("pointerdown",v,!0),y.addEventListener("mousedown",p,!0),y.addEventListener("contextmenu",p,!0);var h=Fm(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){y.removeEventListener("pointerdown",v,!0),y.removeEventListener("mousedown",p,!0),y.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,a]);function m(){d.current=!0}return m}var M9=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function T9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vv,t=l.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,u=s===void 0?"hover":s,d=n.showAction,m=n.hideAction,v=n.popupVisible,p=n.defaultPopupVisible,y=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,C=n.mouseEnterDelay,g=n.mouseLeaveDelay,S=g===void 0?.1:g,x=n.focusDelay,w=n.blurDelay,R=n.mask,$=n.maskClosable,O=$===void 0?!0:$,I=n.getPopupContainer,N=n.forceRender,P=n.autoDestroy,T=n.destroyPopupOnHide,k=n.popup,H=n.popupClassName,A=n.popupStyle,_=n.popupPlacement,D=n.builtinPlacements,j=D===void 0?{}:D,z=n.popupAlign,F=n.zIndex,W=n.stretch,K=n.getPopupClassNameFromAlign,B=n.fresh,V=n.alignPoint,U=n.onPopupClick,q=n.onPopupAlign,G=n.arrow,Z=n.popupMotion,ee=n.maskMotion,J=n.popupTransitionName,oe=n.popupAnimation,ae=n.maskTransitionName,te=n.maskAnimation,ne=n.className,ie=n.getTriggerDOMNode,de=jt(n,M9),ve=P||T||!1,se=l.useState(!1),he=ce(se,2),Se=he[0],je=he[1];dn(function(){je(fN())},[]);var Te=l.useRef({}),Ce=l.useContext(yE),xe=l.useMemo(function(){return{registerSubPopup:function(Gt,Kn){Te.current[Gt]=Kn,Ce==null||Ce.registerSubPopup(Gt,Kn)}}},[Ce]),Ne=Wv(),Ee=l.useState(null),Be=ce(Ee,2),Ve=Be[0],tt=Be[1],nt=l.useRef(null),We=ln(function(kt){nt.current=kt,ku(kt)&&Ve!==kt&&tt(kt),Ce==null||Ce.registerSubPopup(Ne,kt)}),Ze=l.useState(null),Le=ce(Ze,2),Re=Le[0],qe=Le[1],ye=l.useRef(null),Oe=ln(function(kt){ku(kt)&&Re!==kt&&(qe(kt),ye.current=kt)}),Fe=l.Children.only(i),we=(Fe==null?void 0:Fe.props)||{},He={},ot=ln(function(kt){var Gt,Kn,tr=Re;return(tr==null?void 0:tr.contains(kt))||((Gt=Fm(tr))===null||Gt===void 0?void 0:Gt.host)===kt||kt===tr||(Ve==null?void 0:Ve.contains(kt))||((Kn=Fm(Ve))===null||Kn===void 0?void 0:Kn.host)===kt||kt===Ve||Object.values(Te.current).some(function(Bn){return(Bn==null?void 0:Bn.contains(kt))||kt===Bn})}),gt=CE(a,Z,oe,J),yt=CE(a,ee,te,ae),Rt=l.useState(p||!1),qt=ce(Rt,2),Wt=qt[0],It=qt[1],bt=v??Wt,mt=ln(function(kt){v===void 0&&It(kt)});dn(function(){It(v||!1)},[v]);var ue=l.useRef(bt);ue.current=bt;var fe=l.useRef([]);fe.current=[];var be=ln(function(kt){var Gt;mt(kt),((Gt=fe.current[fe.current.length-1])!==null&&Gt!==void 0?Gt:bt)!==kt&&(fe.current.push(kt),y==null||y(kt))}),De=l.useRef(),Pe=function(){clearTimeout(De.current)},ke=function(Gt){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Pe(),Kn===0?be(Gt):De.current=setTimeout(function(){be(Gt)},Kn*1e3)};l.useEffect(function(){return Pe},[]);var Qe=l.useState(!1),Ke=ce(Qe,2),Ye=Ke[0],et=Ke[1];dn(function(kt){(!kt||bt)&&et(!0)},[bt]);var Je=l.useState(null),Ge=ce(Je,2),rt=Ge[0],st=Ge[1],Nt=l.useState(null),Lt=ce(Nt,2),Bt=Lt[0],Pt=Lt[1],rn=function(Gt){Pt([Gt.clientX,Gt.clientY])},Jt=I9(bt,Ve,V&&Bt!==null?Bt:Re,_,j,z,q),ct=ce(Jt,11),ut=ct[0],Tt=ct[1],Ct=ct[2],Yt=ct[3],pn=ct[4],On=ct[5],Ut=ct[6],wt=ct[7],Mt=ct[8],Kt=ct[9],Cn=ct[10],on=E9(Se,u,d,m),Pn=ce(on,2),ar=Pn[0],Yn=Pn[1],pr=ar.has("click"),Qn=Yn.has("click")||Yn.has("contextMenu"),Wn=ln(function(){Ye||Cn()}),Zn=function(){ue.current&&V&&Qn&&ke(!1)};P9(bt,Re,Ve,Wn,Zn),dn(function(){Wn()},[Bt,_]),dn(function(){bt&&!(j!=null&&j[_])&&Wn()},[JSON.stringify(z)]);var mn=l.useMemo(function(){var kt=R9(j,a,Kt,V);return re(kt,K==null?void 0:K(Kt))},[Kt,K,j,a,V]);l.useImperativeHandle(r,function(){return{nativeElement:ye.current,popupElement:nt.current,forceAlign:Wn}});var Ot=l.useState(0),$t=ce(Ot,2),un=$t[0],xt=$t[1],St=l.useState(0),en=ce(St,2),_n=en[0],An=en[1],Zt=function(){if(W&&Re){var Gt=Re.getBoundingClientRect();xt(Gt.width),An(Gt.height)}},Jn=function(){Zt(),Wn()},sr=function(Gt){et(!1),Cn(),h==null||h(Gt)},vt=function(){return new Promise(function(Gt){Zt(),st(function(){return Gt})})};dn(function(){rt&&(Cn(),rt(),st(null))},[rt]);function it(kt,Gt,Kn,tr){He[kt]=function(Bn){var La;tr==null||tr(Bn),ke(Gt,Kn);for(var gc=arguments.length,ri=new Array(gc>1?gc-1:0),Ea=1;Ea<gc;Ea++)ri[Ea-1]=arguments[Ea];(La=we[kt])===null||La===void 0||La.call.apply(La,[we,Bn].concat(ri))}}(pr||Qn)&&(He.onClick=function(kt){var Gt;ue.current&&Qn?ke(!1):!ue.current&&pr&&(rn(kt),ke(!0));for(var Kn=arguments.length,tr=new Array(Kn>1?Kn-1:0),Bn=1;Bn<Kn;Bn++)tr[Bn-1]=arguments[Bn];(Gt=we.onClick)===null||Gt===void 0||Gt.call.apply(Gt,[we,kt].concat(tr))});var Ft=N9(bt,Qn,Re,Ve,R,O,ot,ke),vn=ar.has("hover"),gn=Yn.has("hover"),Or,zn;vn&&(it("onMouseEnter",!0,C,function(kt){rn(kt)}),it("onPointerEnter",!0,C,function(kt){rn(kt)}),Or=function(Gt){(bt||Ye)&&Ve!==null&&Ve!==void 0&&Ve.contains(Gt.target)&&ke(!0,C)},V&&(He.onMouseMove=function(kt){var Gt;(Gt=we.onMouseMove)===null||Gt===void 0||Gt.call(we,kt)})),gn&&(it("onMouseLeave",!1,S),it("onPointerLeave",!1,S),zn=function(){ke(!1,S)}),ar.has("focus")&&it("onFocus",!0,x),Yn.has("focus")&&it("onBlur",!1,w),ar.has("contextMenu")&&(He.onContextMenu=function(kt){var Gt;ue.current&&Yn.has("contextMenu")?ke(!1):(rn(kt),ke(!0)),kt.preventDefault();for(var Kn=arguments.length,tr=new Array(Kn>1?Kn-1:0),Bn=1;Bn<Kn;Bn++)tr[Bn-1]=arguments[Bn];(Gt=we.onContextMenu)===null||Gt===void 0||Gt.call.apply(Gt,[we,kt].concat(tr))}),ne&&(He.className=re(we.className,ne));var er=X(X({},we),He),gr={},jr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];jr.forEach(function(kt){de[kt]&&(gr[kt]=function(){for(var Gt,Kn=arguments.length,tr=new Array(Kn),Bn=0;Bn<Kn;Bn++)tr[Bn]=arguments[Bn];(Gt=er[kt])===null||Gt===void 0||Gt.call.apply(Gt,[er].concat(tr)),de[kt].apply(de,tr)})});var jo=l.cloneElement(Fe,X(X({},er),gr)),yo={x:On,y:Ut},Fl=G?X({},G!==!0?G:{}):null;return l.createElement(l.Fragment,null,l.createElement(_o,{disabled:!bt,ref:Oe,onResize:Jn},l.createElement($9,{getTriggerDOMNode:ie},jo)),l.createElement(yE.Provider,{value:xe},l.createElement(w9,{portal:e,ref:We,prefixCls:a,popup:k,className:re(H,mn),style:A,target:Re,onMouseEnter:Or,onMouseLeave:zn,onPointerEnter:Or,zIndex:F,open:bt,keepDom:Ye,fresh:B,onClick:U,onPointerDownCapture:Ft,mask:R,motion:gt,maskMotion:yt,onVisibleChanged:sr,onPrepare:vt,forceRender:N,autoDestroy:ve,getPopupContainer:I,align:Kt,arrow:Fl,arrowPos:yo,ready:ut,offsetX:Tt,offsetY:Ct,offsetR:Yt,offsetB:pn,onAlign:Wn,stretch:W,targetWidth:un/wt,targetHeight:_n/Mt})))});return t}const vd=T9(Vv);var _9=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],D9=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},j9=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,u=t.transitionName,d=t.dropdownStyle,m=t.dropdownClassName,v=t.direction,p=v===void 0?"ltr":v,y=t.placement,h=t.builtinPlacements,C=t.dropdownMatchSelectWidth,g=t.dropdownRender,S=t.dropdownAlign,x=t.getPopupContainer,w=t.empty,R=t.getTriggerDOMNode,$=t.onPopupVisibleChange,O=t.onPopupMouseEnter,I=jt(t,_9),N="".concat(r,"-dropdown"),P=i;g&&(P=g(i));var T=l.useMemo(function(){return h||D9(C)},[h,C]),k=s?"".concat(N,"-").concat(s):u,H=typeof C=="number",A=l.useMemo(function(){return H?null:C===!1?"minWidth":"width"},[C,H]),_=d;H&&(_=X(X({},_),{},{width:C}));var D=l.useRef(null);return l.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=D.current)===null||z===void 0?void 0:z.popupElement}}}),l.createElement(vd,Me({},I,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:y||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:N,popupTransitionName:k,popup:l.createElement("div",{onMouseEnter:O},P),ref:D,stretch:A,popupAlign:S,popupVisible:o,getPopupContainer:x,popupClassName:re(m,Y({},"".concat(N,"-empty"),w)),popupStyle:_,getTriggerDOMNode:R,onPopupVisibleChange:$}),a)},k9=l.forwardRef(j9);function EE(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function nb(e){return typeof e<"u"&&!Number.isNaN(e)}function SN(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function z9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=SN(n,!1),i=a.label,s=a.value,u=a.options,d=a.groupLabel;function m(v,p){Array.isArray(v)&&v.forEach(function(y){if(p||!(u in y)){var h=y[s];o.push({key:EE(y,o.length),groupOption:p,data:y,label:y[i],value:h})}else{var C=y[d];C===void 0&&r&&(C=y.label),o.push({key:EE(y,o.length),group:!0,data:y,label:C}),m(y[u],!0)}})}return m(e,!1),o}function rb(e){var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return qn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var L9=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(u,d){var m=NI(d),v=m[0],p=m.slice(1);if(!v)return[u];var y=u.split(v);return o=o||y.length>1,y.reduce(function(h,C){return[].concat(_e(h),_e(s(C,p)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},TC=l.createContext(null);function F9(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(ht(a))?a:i}).join(", ")),n.length>r?", ...":null)}var A9=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],B9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ob=function(t){return t==="tags"||t==="multiple"},H9=l.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,m=e.displayValues,v=e.onDisplayValuesChange,p=e.emptyOptions,y=e.notFoundContent,h=y===void 0?"Not Found":y,C=e.onClear,g=e.mode,S=e.disabled,x=e.loading,w=e.getInputElement,R=e.getRawInputElement,$=e.open,O=e.defaultOpen,I=e.onDropdownVisibleChange,N=e.activeValue,P=e.onActiveValueChange,T=e.activeDescendantId,k=e.searchValue,H=e.autoClearSearchValue,A=e.onSearch,_=e.onSearchSplit,D=e.tokenSeparators,j=e.allowClear,z=e.prefix,F=e.suffixIcon,W=e.clearIcon,K=e.OptionList,B=e.animation,V=e.transitionName,U=e.dropdownStyle,q=e.dropdownClassName,G=e.dropdownMatchSelectWidth,Z=e.dropdownRender,ee=e.dropdownAlign,J=e.placement,oe=e.builtinPlacements,ae=e.getPopupContainer,te=e.showAction,ne=te===void 0?[]:te,ie=e.onFocus,de=e.onBlur,ve=e.onKeyUp,se=e.onKeyDown,he=e.onMouseDown,Se=jt(e,A9),je=ob(g),Te=(i!==void 0?i:je)||g==="combobox",Ce=X({},Se);B9.forEach(function(Ot){delete Ce[Ot]}),d==null||d.forEach(function(Ot){delete Ce[Ot]});var xe=l.useState(!1),Ne=ce(xe,2),Ee=Ne[0],Be=Ne[1];l.useEffect(function(){Be(fN())},[]);var Ve=l.useRef(null),tt=l.useRef(null),nt=l.useRef(null),We=l.useRef(null),Ze=l.useRef(null),Le=l.useRef(!1),Re=q7(),qe=ce(Re,3),ye=qe[0],Oe=qe[1],Fe=qe[2];l.useImperativeHandle(t,function(){var Ot,$t;return{focus:(Ot=We.current)===null||Ot===void 0?void 0:Ot.focus,blur:($t=We.current)===null||$t===void 0?void 0:$t.blur,scrollTo:function(xt){var St;return(St=Ze.current)===null||St===void 0?void 0:St.scrollTo(xt)},nativeElement:Ve.current||tt.current}});var we=l.useMemo(function(){var Ot;if(g!=="combobox")return k;var $t=(Ot=m[0])===null||Ot===void 0?void 0:Ot.value;return typeof $t=="string"||typeof $t=="number"?String($t):""},[k,g,m]),He=g==="combobox"&&typeof w=="function"&&w()||null,ot=typeof R=="function"&&R(),gt=Wi(tt,ot==null||(n=ot.props)===null||n===void 0?void 0:n.ref),yt=l.useState(!1),Rt=ce(yt,2),qt=Rt[0],Wt=Rt[1];dn(function(){Wt(!0)},[]);var It=Tn(!1,{defaultValue:O,value:$}),bt=ce(It,2),mt=bt[0],ue=bt[1],fe=qt?mt:!1,be=!h&&p;(S||be&&fe&&g==="combobox")&&(fe=!1);var De=be?!1:fe,Pe=l.useCallback(function(Ot){var $t=Ot!==void 0?Ot:!fe;S||(ue($t),fe!==$t&&(I==null||I($t)))},[S,fe,ue,I]),ke=l.useMemo(function(){return(D||[]).some(function(Ot){return[`
`,`\r
`].includes(Ot)})},[D]),Qe=l.useContext(TC)||{},Ke=Qe.maxCount,Ye=Qe.rawValues,et=function($t,un,xt){if(!(je&&nb(Ke)&&(Ye==null?void 0:Ye.size)>=Ke)){var St=!0,en=$t;P==null||P(null);var _n=L9($t,D,nb(Ke)?Ke-Ye.size:void 0),An=xt?null:_n;return g!=="combobox"&&An&&(en="",_==null||_(An),Pe(!1),St=!1),A&&we!==en&&A(en,{source:un?"typing":"effect"}),St}},Je=function($t){!$t||!$t.trim()||A($t,{source:"submit"})};l.useEffect(function(){!fe&&!je&&g!=="combobox"&&et("",!1,!1)},[fe]),l.useEffect(function(){mt&&S&&ue(!1),S&&!Le.current&&Oe(!1)},[S]);var Ge=vN(),rt=ce(Ge,2),st=rt[0],Nt=rt[1],Lt=l.useRef(!1),Bt=function($t){var un=st(),xt=$t.key,St=xt==="Enter";if(St&&(g!=="combobox"&&$t.preventDefault(),fe||Pe(!0)),Nt(!!we),xt==="Backspace"&&!un&&je&&!we&&m.length){for(var en=_e(m),_n=null,An=en.length-1;An>=0;An-=1){var Zt=en[An];if(!Zt.disabled){en.splice(An,1),_n=Zt;break}}_n&&v(en,{type:"remove",values:[_n]})}for(var Jn=arguments.length,sr=new Array(Jn>1?Jn-1:0),vt=1;vt<Jn;vt++)sr[vt-1]=arguments[vt];if(fe&&(!St||!Lt.current)){var it;St&&(Lt.current=!0),(it=Ze.current)===null||it===void 0||it.onKeyDown.apply(it,[$t].concat(sr))}se==null||se.apply(void 0,[$t].concat(sr))},Pt=function($t){for(var un=arguments.length,xt=new Array(un>1?un-1:0),St=1;St<un;St++)xt[St-1]=arguments[St];if(fe){var en;(en=Ze.current)===null||en===void 0||en.onKeyUp.apply(en,[$t].concat(xt))}$t.key==="Enter"&&(Lt.current=!1),ve==null||ve.apply(void 0,[$t].concat(xt))},rn=function($t){var un=m.filter(function(xt){return xt!==$t});v(un,{type:"remove",values:[$t]})},Jt=function(){Lt.current=!1},ct=l.useRef(!1),ut=function(){Oe(!0),S||(ie&&!ct.current&&ie.apply(void 0,arguments),ne.includes("focus")&&Pe(!0)),ct.current=!0},Tt=function(){Le.current=!0,Oe(!1,function(){ct.current=!1,Le.current=!1,Pe(!1)}),!S&&(we&&(g==="tags"?A(we,{source:"submit"}):g==="multiple"&&A("",{source:"blur"})),de&&de.apply(void 0,arguments))},Ct=[];l.useEffect(function(){return function(){Ct.forEach(function(Ot){return clearTimeout(Ot)}),Ct.splice(0,Ct.length)}},[]);var Yt=function($t){var un,xt=$t.target,St=(un=nt.current)===null||un===void 0?void 0:un.getPopupElement();if(St&&St.contains(xt)){var en=setTimeout(function(){var Jn=Ct.indexOf(en);if(Jn!==-1&&Ct.splice(Jn,1),Fe(),!Ee&&!St.contains(document.activeElement)){var sr;(sr=We.current)===null||sr===void 0||sr.focus()}});Ct.push(en)}for(var _n=arguments.length,An=new Array(_n>1?_n-1:0),Zt=1;Zt<_n;Zt++)An[Zt-1]=arguments[Zt];he==null||he.apply(void 0,[$t].concat(An))},pn=l.useState({}),On=ce(pn,2),Ut=On[1];function wt(){Ut({})}var Mt;ot&&(Mt=function($t){Pe($t)}),Y7(function(){var Ot;return[Ve.current,(Ot=nt.current)===null||Ot===void 0?void 0:Ot.getPopupElement()]},De,Pe,!!ot);var Kt=l.useMemo(function(){return X(X({},e),{},{notFoundContent:h,open:fe,triggerOpen:De,id:r,showSearch:Te,multiple:je,toggleOpen:Pe})},[e,h,De,fe,r,Te,je,Pe]),Cn=!!F||x,on;Cn&&(on=l.createElement(Yv,{className:re("".concat(o,"-arrow"),Y({},"".concat(o,"-arrow-loading"),x)),customizeIcon:F,customizeIconProps:{loading:x,searchValue:we,open:fe,focused:ye,showSearch:Te}}));var Pn=function(){var $t;C==null||C(),($t=We.current)===null||$t===void 0||$t.focus(),v([],{type:"clear",values:m}),et("",!1,!1)},ar=K7(o,Pn,m,j,W,S,we,g),Yn=ar.allowClear,pr=ar.clearIcon,Qn=l.createElement(K,{ref:Ze}),Wn=re(o,a,Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},"".concat(o,"-focused"),ye),"".concat(o,"-multiple"),je),"".concat(o,"-single"),!je),"".concat(o,"-allow-clear"),j),"".concat(o,"-show-arrow"),Cn),"".concat(o,"-disabled"),S),"".concat(o,"-loading"),x),"".concat(o,"-open"),fe),"".concat(o,"-customize-input"),He),"".concat(o,"-show-search"),Te)),Zn=l.createElement(k9,{ref:nt,disabled:S,prefixCls:o,visible:De,popupElement:Qn,animation:B,transitionName:V,dropdownStyle:U,dropdownClassName:q,direction:u,dropdownMatchSelectWidth:G,dropdownRender:Z,dropdownAlign:ee,placement:J,builtinPlacements:oe,getPopupContainer:ae,empty:p,getTriggerDOMNode:function($t){return tt.current||$t},onPopupVisibleChange:Mt,onPopupMouseEnter:wt},ot?l.cloneElement(ot,{ref:gt}):l.createElement(b9,Me({},e,{domRef:tt,prefixCls:o,inputElement:He,ref:We,id:r,prefix:z,showSearch:Te,autoClearSearchValue:H,mode:g,activeDescendantId:T,tagRender:s,values:m,open:fe,onToggleOpen:Pe,activeValue:N,searchValue:we,onSearch:et,onSearchSubmit:Je,onRemove:rn,tokenWithEnter:ke,onInputBlur:Jt}))),mn;return ot?mn=Zn:mn=l.createElement("div",Me({className:Wn},Ce,{ref:Ve,onMouseDown:Yt,onKeyDown:Bt,onKeyUp:Pt,onFocus:ut,onBlur:Tt}),l.createElement(F9,{visible:ye&&!fe,values:m}),Zn,on,Yn&&pr),l.createElement(mN.Provider,{value:Kt},mn)}),_C=function(){return null};_C.isSelectOptGroup=!0;var DC=function(){return null};DC.isSelectOption=!0;var xN=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,u=e.innerProps,d=e.rtl,m=e.extra,v={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(v={height:n,position:"relative",overflow:"hidden"},p=X(X({},p),{},Y(Y(Y(Y(Y({transform:"translateY(".concat(r,"px)")},d?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:v},l.createElement(_o,{onResize:function(h){var C=h.offsetHeight;C&&s&&s()}},l.createElement("div",Me({style:p,className:re(Y({},"".concat(i,"-holder-inner"),i)),ref:t},u),a,m)))});xN.displayName="Filler";function V9(e){var t=e.children,n=e.setRef,r=l.useCallback(function(o){n(o)},[]);return l.cloneElement(t,{ref:r})}function W9(e,t,n,r,o,a,i,s){var u=s.getKey;return e.slice(t,n+1).map(function(d,m){var v=t+m,p=i(d,v,{style:{width:r},offsetX:o}),y=u(d);return l.createElement(V9,{key:y,setRef:function(C){return a(d,C)}},p)})}function K9(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function u(h){return h!==void 0?n(h):s}for(var d=null,m=Math.abs(r-o)!==1,v=0;v<i.length;v+=1){var p=u(a[v]),y=u(i[v]);if(p!==y){d=v,m=m||p!==u(i[v+1]);break}}return d===null?null:{index:d,multiple:m}}function U9(e,t,n){var r=l.useState(e),o=ce(r,2),a=o[0],i=o[1],s=l.useState(null),u=ce(s,2),d=u[0],m=u[1];return l.useEffect(function(){var v=K9(a||[],e||[],t);(v==null?void 0:v.index)!==void 0&&m(e[v.index]),i(e)},[e]),[d]}var OE=(typeof navigator>"u"?"undefined":ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const wN=function(e,t,n,r){var o=l.useRef(!1),a=l.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(u,d){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=u?d<0&&s.current.left||d>0&&s.current.right:d<0&&s.current.top||d>0&&s.current.bottom;return m&&v?(clearTimeout(a.current),o.current=!1):(!v||o.current)&&i(),!o.current&&v}};function q9(e,t,n,r,o,a,i){var s=l.useRef(0),u=l.useRef(null),d=l.useRef(null),m=l.useRef(!1),v=wN(t,n,r,o);function p(x,w){if(cn.cancel(u.current),!v(!1,w)){var R=x;if(!R._virtualHandled)R._virtualHandled=!0;else return;s.current+=w,d.current=w,OE||R.preventDefault(),u.current=cn(function(){var $=m.current?10:1;i(s.current*$,!1),s.current=0})}}function y(x,w){i(w,!0),OE||x.preventDefault()}var h=l.useRef(null),C=l.useRef(null);function g(x){if(e){cn.cancel(C.current),C.current=cn(function(){h.current=null},2);var w=x.deltaX,R=x.deltaY,$=x.shiftKey,O=w,I=R;(h.current==="sx"||!h.current&&$&&R&&!w)&&(O=R,I=0,h.current="sx");var N=Math.abs(O),P=Math.abs(I);h.current===null&&(h.current=a&&N>P?"x":"y"),h.current==="y"?p(x,I):y(x,O)}}function S(x){e&&(m.current=x.detail===d.current)}return[g,S]}function Y9(e,t,n,r){var o=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=ce(o,2),i=a[0],s=a[1],u=function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,p=i.get(m),y=i.get(v);if(p===void 0||y===void 0)for(var h=e.length,C=s.length;C<h;C+=1){var g,S=e[C],x=t(S);i.set(x,C);var w=(g=n.get(x))!==null&&g!==void 0?g:r;if(s[C]=(s[C-1]||0)+w,x===m&&(p=C),x===v&&(y=C),p!==void 0&&y!==void 0)break}return{top:s[p-1]||0,bottom:s[y]}};return u}var G9=function(){function e(){rr(this,e),Y(this,"maps",void 0),Y(this,"id",0),Y(this,"diffRecords",new Map),this.maps=Object.create(null)}return or(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function RE(e){var t=parseFloat(e);return isNaN(t)?0:t}function X9(e,t,n){var r=l.useState(0),o=ce(r,2),a=o[0],i=o[1],s=l.useRef(new Map),u=l.useRef(new G9),d=l.useRef(0);function m(){d.current+=1}function v(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;m();var h=function(){var S=!1;s.current.forEach(function(x,w){if(x&&x.offsetParent){var R=x.offsetHeight,$=getComputedStyle(x),O=$.marginTop,I=$.marginBottom,N=RE(O),P=RE(I),T=R+N+P;u.current.get(w)!==T&&(u.current.set(w,T),S=!0)}}),S&&i(function(x){return x+1})};if(y)h();else{d.current+=1;var C=d.current;Promise.resolve().then(function(){C===d.current&&h()})}}function p(y,h){var C=e(y);s.current.get(C),h?(s.current.set(C,h),v()):s.current.delete(C)}return l.useEffect(function(){return m},[]),[p,v,u.current,a]}var IE=14/15;function Q9(e,t,n){var r=l.useRef(!1),o=l.useRef(0),a=l.useRef(0),i=l.useRef(null),s=l.useRef(null),u,d=function(y){if(r.current){var h=Math.ceil(y.touches[0].pageX),C=Math.ceil(y.touches[0].pageY),g=o.current-h,S=a.current-C,x=Math.abs(g)>Math.abs(S);x?o.current=h:a.current=C;var w=n(x,x?g:S,!1,y);w&&y.preventDefault(),clearInterval(s.current),w&&(s.current=setInterval(function(){x?g*=IE:S*=IE;var R=Math.floor(x?g:S);(!n(x,R,!0)||Math.abs(R)<=.1)&&clearInterval(s.current)},16))}},m=function(){r.current=!1,u()},v=function(y){u(),y.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(y.touches[0].pageX),a.current=Math.ceil(y.touches[0].pageY),i.current=y.target,i.current.addEventListener("touchmove",d,{passive:!1}),i.current.addEventListener("touchend",m,{passive:!0}))};u=function(){i.current&&(i.current.removeEventListener("touchmove",d),i.current.removeEventListener("touchend",m))},dn(function(){return e&&t.current.addEventListener("touchstart",v,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",v),u(),clearInterval(s.current)}},[e])}function PE(e){return Math.floor(Math.pow(e,.5))}function ab(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Z9(e,t,n){l.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){cn.cancel(a)},u=function p(){s(),a=cn(function(){n(i),p()})},d=function(y){if(!(y.target.draggable||y.button!==0)){var h=y;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},m=function(){o=!1,s()},v=function(y){if(o){var h=ab(y,!1),C=r.getBoundingClientRect(),g=C.top,S=C.bottom;if(h<=g){var x=g-h;i=-PE(x),u()}else if(h>=S){var w=h-S;i=PE(w),u()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",v),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",v),s()}}},[e])}var J9=10;function eV(e,t,n,r,o,a,i,s){var u=l.useRef(),d=l.useState(null),m=ce(d,2),v=m[0],p=m[1];return dn(function(){if(v&&v.times<J9){if(!e.current){p(function(W){return X({},W)});return}a();var y=v.targetAlign,h=v.originAlign,C=v.index,g=v.offset,S=e.current.clientHeight,x=!1,w=y,R=null;if(S){for(var $=y||h,O=0,I=0,N=0,P=Math.min(t.length-1,C),T=0;T<=P;T+=1){var k=o(t[T]);I=O;var H=n.get(k);N=I+(H===void 0?r:H),O=N}for(var A=$==="top"?g:S-g,_=P;_>=0;_-=1){var D=o(t[_]),j=n.get(D);if(j===void 0){x=!0;break}if(A-=j,A<=0)break}switch($){case"top":R=I-g;break;case"bottom":R=N-S+g;break;default:{var z=e.current.scrollTop,F=z+S;I<z?w="top":N>F&&(w="bottom")}}R!==null&&i(R),R!==v.lastTop&&(x=!0)}x&&p(X(X({},v),{},{times:v.times+1,targetAlign:w,lastTop:R}))}},[v,e.current]),function(y){if(y==null){s();return}if(cn.cancel(u.current),typeof y=="number")i(y);else if(y&&ht(y)==="object"){var h,C=y.align;"index"in y?h=y.index:h=t.findIndex(function(x){return o(x)===y.key});var g=y.offset,S=g===void 0?0:g;p({times:0,index:h,offset:S,originAlign:C})}}}var NE=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,u=e.onScroll,d=e.horizontal,m=e.spinSize,v=e.containerSize,p=e.style,y=e.thumbStyle,h=e.showScrollBar,C=l.useState(!1),g=ce(C,2),S=g[0],x=g[1],w=l.useState(null),R=ce(w,2),$=R[0],O=R[1],I=l.useState(null),N=ce(I,2),P=N[0],T=N[1],k=!r,H=l.useRef(),A=l.useRef(),_=l.useState(h),D=ce(_,2),j=D[0],z=D[1],F=l.useRef(),W=function(){h===!0||h===!1||(clearTimeout(F.current),z(!0),F.current=setTimeout(function(){z(!1)},3e3))},K=a-v||0,B=v-m||0,V=l.useMemo(function(){if(o===0||K===0)return 0;var te=o/K;return te*B},[o,K,B]),U=function(ne){ne.stopPropagation(),ne.preventDefault()},q=l.useRef({top:V,dragging:S,pageY:$,startTop:P});q.current={top:V,dragging:S,pageY:$,startTop:P};var G=function(ne){x(!0),O(ab(ne,d)),T(q.current.top),i(),ne.stopPropagation(),ne.preventDefault()};l.useEffect(function(){var te=function(ve){ve.preventDefault()},ne=H.current,ie=A.current;return ne.addEventListener("touchstart",te,{passive:!1}),ie.addEventListener("touchstart",G,{passive:!1}),function(){ne.removeEventListener("touchstart",te),ie.removeEventListener("touchstart",G)}},[]);var Z=l.useRef();Z.current=K;var ee=l.useRef();ee.current=B,l.useEffect(function(){if(S){var te,ne=function(ve){var se=q.current,he=se.dragging,Se=se.pageY,je=se.startTop;cn.cancel(te);var Te=H.current.getBoundingClientRect(),Ce=v/(d?Te.width:Te.height);if(he){var xe=(ab(ve,d)-Se)*Ce,Ne=je;!k&&d?Ne-=xe:Ne+=xe;var Ee=Z.current,Be=ee.current,Ve=Be?Ne/Be:0,tt=Math.ceil(Ve*Ee);tt=Math.max(tt,0),tt=Math.min(tt,Ee),te=cn(function(){u(tt,d)})}},ie=function(){x(!1),s()};return window.addEventListener("mousemove",ne,{passive:!0}),window.addEventListener("touchmove",ne,{passive:!0}),window.addEventListener("mouseup",ie,{passive:!0}),window.addEventListener("touchend",ie,{passive:!0}),function(){window.removeEventListener("mousemove",ne),window.removeEventListener("touchmove",ne),window.removeEventListener("mouseup",ie),window.removeEventListener("touchend",ie),cn.cancel(te)}}},[S]),l.useEffect(function(){return W(),function(){clearTimeout(F.current)}},[o]),l.useImperativeHandle(t,function(){return{delayHidden:W}});var J="".concat(n,"-scrollbar"),oe={position:"absolute",visibility:j?null:"hidden"},ae={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(oe,{height:8,left:0,right:0,bottom:0}),Object.assign(ae,Y({height:"100%",width:m},k?"left":"right",V))):(Object.assign(oe,Y({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(ae,{width:"100%",height:m,top:V})),l.createElement("div",{ref:H,className:re(J,Y(Y(Y({},"".concat(J,"-horizontal"),d),"".concat(J,"-vertical"),!d),"".concat(J,"-visible"),j)),style:X(X({},oe),p),onMouseDown:U,onMouseMove:W},l.createElement("div",{ref:A,className:re("".concat(J,"-thumb"),Y({},"".concat(J,"-thumb-moving"),S)),style:X(X({},ae),y),onMouseDown:G}))}),tV=20;function ME(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,tV),Math.floor(n)}var nV=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],rV=[],oV={overflowY:"auto",overflowAnchor:"none"};function aV(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,u=s===void 0?!0:s,d=e.style,m=e.data,v=e.children,p=e.itemKey,y=e.virtual,h=e.direction,C=e.scrollWidth,g=e.component,S=g===void 0?"div":g,x=e.onScroll,w=e.onVirtualScroll,R=e.onVisibleChange,$=e.innerProps,O=e.extraRender,I=e.styles,N=e.showScrollBar,P=N===void 0?"optional":N,T=jt(e,nV),k=l.useCallback(function(ct){return typeof p=="function"?p(ct):ct==null?void 0:ct[p]},[p]),H=X9(k),A=ce(H,4),_=A[0],D=A[1],j=A[2],z=A[3],F=!!(y!==!1&&a&&i),W=l.useMemo(function(){return Object.values(j.maps).reduce(function(ct,ut){return ct+ut},0)},[j.id,j.maps]),K=F&&m&&(Math.max(i*m.length,W)>a||!!C),B=h==="rtl",V=re(r,Y({},"".concat(r,"-rtl"),B),o),U=m||rV,q=l.useRef(),G=l.useRef(),Z=l.useRef(),ee=l.useState(0),J=ce(ee,2),oe=J[0],ae=J[1],te=l.useState(0),ne=ce(te,2),ie=ne[0],de=ne[1],ve=l.useState(!1),se=ce(ve,2),he=se[0],Se=se[1],je=function(){Se(!0)},Te=function(){Se(!1)},Ce={getKey:k};function xe(ct){ae(function(ut){var Tt;typeof ct=="function"?Tt=ct(ut):Tt=ct;var Ct=Wt(Tt);return q.current.scrollTop=Ct,Ct})}var Ne=l.useRef({start:0,end:U.length}),Ee=l.useRef(),Be=U9(U,k),Ve=ce(Be,1),tt=Ve[0];Ee.current=tt;var nt=l.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!K){var ct;return{scrollHeight:((ct=G.current)===null||ct===void 0?void 0:ct.offsetHeight)||0,start:0,end:U.length-1,offset:void 0}}for(var ut=0,Tt,Ct,Yt,pn=U.length,On=0;On<pn;On+=1){var Ut=U[On],wt=k(Ut),Mt=j.get(wt),Kt=ut+(Mt===void 0?i:Mt);Kt>=oe&&Tt===void 0&&(Tt=On,Ct=ut),Kt>oe+a&&Yt===void 0&&(Yt=On),ut=Kt}return Tt===void 0&&(Tt=0,Ct=0,Yt=Math.ceil(a/i)),Yt===void 0&&(Yt=U.length-1),Yt=Math.min(Yt+1,U.length-1),{scrollHeight:ut,start:Tt,end:Yt,offset:Ct}},[K,F,oe,U,z,a]),We=nt.scrollHeight,Ze=nt.start,Le=nt.end,Re=nt.offset;Ne.current.start=Ze,Ne.current.end=Le,l.useLayoutEffect(function(){var ct=j.getRecord();if(ct.size===1){var ut=Array.from(ct.keys())[0],Tt=ct.get(ut),Ct=U[Ze];if(Ct&&Tt===void 0){var Yt=k(Ct);if(Yt===ut){var pn=j.get(ut),On=pn-i;xe(function(Ut){return Ut+On})}}}j.resetRecord()},[We]);var qe=l.useState({width:0,height:a}),ye=ce(qe,2),Oe=ye[0],Fe=ye[1],we=function(ut){Fe({width:ut.offsetWidth,height:ut.offsetHeight})},He=l.useRef(),ot=l.useRef(),gt=l.useMemo(function(){return ME(Oe.width,C)},[Oe.width,C]),yt=l.useMemo(function(){return ME(Oe.height,We)},[Oe.height,We]),Rt=We-a,qt=l.useRef(Rt);qt.current=Rt;function Wt(ct){var ut=ct;return Number.isNaN(qt.current)||(ut=Math.min(ut,qt.current)),ut=Math.max(ut,0),ut}var It=oe<=0,bt=oe>=Rt,mt=ie<=0,ue=ie>=C,fe=wN(It,bt,mt,ue),be=function(){return{x:B?-ie:ie,y:oe}},De=l.useRef(be()),Pe=ln(function(ct){if(w){var ut=X(X({},be()),ct);(De.current.x!==ut.x||De.current.y!==ut.y)&&(w(ut),De.current=ut)}});function ke(ct,ut){var Tt=ct;ut?(Zo.flushSync(function(){de(Tt)}),Pe()):xe(Tt)}function Qe(ct){var ut=ct.currentTarget.scrollTop;ut!==oe&&xe(ut),x==null||x(ct),Pe()}var Ke=function(ut){var Tt=ut,Ct=C?C-Oe.width:0;return Tt=Math.max(Tt,0),Tt=Math.min(Tt,Ct),Tt},Ye=ln(function(ct,ut){ut?(Zo.flushSync(function(){de(function(Tt){var Ct=Tt+(B?-ct:ct);return Ke(Ct)})}),Pe()):xe(function(Tt){var Ct=Tt+ct;return Ct})}),et=q9(F,It,bt,mt,ue,!!C,Ye),Je=ce(et,2),Ge=Je[0],rt=Je[1];Q9(F,q,function(ct,ut,Tt,Ct){var Yt=Ct;return fe(ct,ut,Tt)?!1:!Yt||!Yt._virtualHandled?(Yt&&(Yt._virtualHandled=!0),Ge({preventDefault:function(){},deltaX:ct?ut:0,deltaY:ct?0:ut}),!0):!1}),Z9(K,q,function(ct){xe(function(ut){return ut+ct})}),dn(function(){function ct(Tt){var Ct=It&&Tt.detail<0,Yt=bt&&Tt.detail>0;F&&!Ct&&!Yt&&Tt.preventDefault()}var ut=q.current;return ut.addEventListener("wheel",Ge,{passive:!1}),ut.addEventListener("DOMMouseScroll",rt,{passive:!0}),ut.addEventListener("MozMousePixelScroll",ct,{passive:!1}),function(){ut.removeEventListener("wheel",Ge),ut.removeEventListener("DOMMouseScroll",rt),ut.removeEventListener("MozMousePixelScroll",ct)}},[F,It,bt]),dn(function(){if(C){var ct=Ke(ie);de(ct),Pe({x:ct})}},[Oe.width,C]);var st=function(){var ut,Tt;(ut=He.current)===null||ut===void 0||ut.delayHidden(),(Tt=ot.current)===null||Tt===void 0||Tt.delayHidden()},Nt=eV(q,U,j,i,k,function(){return D(!0)},xe,st);l.useImperativeHandle(t,function(){return{nativeElement:Z.current,getScrollInfo:be,scrollTo:function(ut){function Tt(Ct){return Ct&&ht(Ct)==="object"&&("left"in Ct||"top"in Ct)}Tt(ut)?(ut.left!==void 0&&de(Ke(ut.left)),Nt(ut.top)):Nt(ut)}}}),dn(function(){if(R){var ct=U.slice(Ze,Le+1);R(ct,U)}},[Ze,Le,U]);var Lt=Y9(U,k,j,i),Bt=O==null?void 0:O({start:Ze,end:Le,virtual:K,offsetX:ie,offsetY:Re,rtl:B,getSize:Lt}),Pt=W9(U,Ze,Le,C,ie,_,v,Ce),rn=null;a&&(rn=X(Y({},u?"height":"maxHeight",a),oV),F&&(rn.overflowY="hidden",C&&(rn.overflowX="hidden"),he&&(rn.pointerEvents="none")));var Jt={};return B&&(Jt.dir="rtl"),l.createElement("div",Me({ref:Z,style:X(X({},d),{},{position:"relative"}),className:V},Jt,T),l.createElement(_o,{onResize:we},l.createElement(S,{className:"".concat(r,"-holder"),style:rn,ref:q,onScroll:Qe,onMouseEnter:st},l.createElement(xN,{prefixCls:r,height:We,offsetX:ie,offsetY:Re,scrollWidth:C,onInnerResize:D,ref:G,innerProps:$,rtl:B,extra:Bt},Pt))),K&&We>a&&l.createElement(NE,{ref:He,prefixCls:r,scrollOffset:oe,scrollRange:We,rtl:B,onScroll:ke,onStartMove:je,onStopMove:Te,spinSize:yt,containerSize:Oe.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb,showScrollBar:P}),K&&C>Oe.width&&l.createElement(NE,{ref:ot,prefixCls:r,scrollOffset:ie,scrollRange:C,rtl:B,onScroll:ke,onStartMove:je,onStopMove:Te,spinSize:gt,containerSize:Oe.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb,showScrollBar:P}))}var Gv=l.forwardRef(aV);Gv.displayName="List";function iV(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var lV=["disabled","title","children","style","className"];function TE(e){return typeof e=="string"||typeof e=="number"}var sV=function(t,n){var r=U7(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,u=r.mode,d=r.searchValue,m=r.toggleOpen,v=r.notFoundContent,p=r.onPopupScroll,y=l.useContext(TC),h=y.maxCount,C=y.flattenOptions,g=y.onActiveValue,S=y.defaultActiveFirstOption,x=y.onSelect,w=y.menuItemSelectedIcon,R=y.rawValues,$=y.fieldNames,O=y.virtual,I=y.direction,N=y.listHeight,P=y.listItemHeight,T=y.optionRender,k="".concat(o,"-item"),H=Dl(function(){return C},[i,C],function(te,ne){return ne[0]&&te[1]!==ne[1]}),A=l.useRef(null),_=l.useMemo(function(){return s&&nb(h)&&(R==null?void 0:R.size)>=h},[s,h,R==null?void 0:R.size]),D=function(ne){ne.preventDefault()},j=function(ne){var ie;(ie=A.current)===null||ie===void 0||ie.scrollTo(typeof ne=="number"?{index:ne}:ne)},z=l.useCallback(function(te){return u==="combobox"?!1:R.has(te)},[u,_e(R).toString(),R.size]),F=function(ne){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=H.length,ve=0;ve<de;ve+=1){var se=(ne+ve*ie+de)%de,he=H[se]||{},Se=he.group,je=he.data;if(!Se&&!(je!=null&&je.disabled)&&(z(je.value)||!_))return se}return-1},W=l.useState(function(){return F(0)}),K=ce(W,2),B=K[0],V=K[1],U=function(ne){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(ne);var de={source:ie?"keyboard":"mouse"},ve=H[ne];if(!ve){g(null,-1,de);return}g(ve.value,ne,de)};l.useEffect(function(){U(S!==!1?F(0):-1)},[H.length,d]);var q=l.useCallback(function(te){return u==="combobox"?String(te).toLowerCase()===d.toLowerCase():R.has(te)},[u,d,_e(R).toString(),R.size]);l.useEffect(function(){var te=setTimeout(function(){if(!s&&i&&R.size===1){var ie=Array.from(R)[0],de=H.findIndex(function(ve){var se=ve.data;return d?String(se.value).startsWith(d):se.value===ie});de!==-1&&(U(de),j(de))}});if(i){var ne;(ne=A.current)===null||ne===void 0||ne.scrollTo(void 0)}return function(){return clearTimeout(te)}},[i,d]);var G=function(ne){ne!==void 0&&x(ne,{selected:!R.has(ne)}),s||m(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(ne){var ie=ne.which,de=ne.ctrlKey;switch(ie){case Et.N:case Et.P:case Et.UP:case Et.DOWN:{var ve=0;if(ie===Et.UP?ve=-1:ie===Et.DOWN?ve=1:iV()&&de&&(ie===Et.N?ve=1:ie===Et.P&&(ve=-1)),ve!==0){var se=F(B+ve,ve);j(se),U(se,!0)}break}case Et.TAB:case Et.ENTER:{var he,Se=H[B];Se&&!(Se!=null&&(he=Se.data)!==null&&he!==void 0&&he.disabled)&&!_?G(Se.value):G(void 0),i&&ne.preventDefault();break}case Et.ESC:m(!1),i&&ne.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ne){j(ne)}}}),H.length===0)return l.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(k,"-empty"),onMouseDown:D},v);var Z=Object.keys($).map(function(te){return $[te]}),ee=function(ne){return ne.label};function J(te,ne){var ie=te.group;return{role:ie?"presentation":"option",id:"".concat(a,"_list_").concat(ne)}}var oe=function(ne){var ie=H[ne];if(!ie)return null;var de=ie.data||{},ve=de.value,se=ie.group,he=wr(de,!0),Se=ee(ie);return ie?l.createElement("div",Me({"aria-label":typeof Se=="string"&&!se?Se:null},he,{key:ne},J(ie,ne),{"aria-selected":q(ve)}),ve):null},ae={role:"listbox",id:"".concat(a,"_list")};return l.createElement(l.Fragment,null,O&&l.createElement("div",Me({},ae,{style:{height:0,width:0,overflow:"hidden"}}),oe(B-1),oe(B),oe(B+1)),l.createElement(Gv,{itemKey:"key",ref:A,data:H,height:N,itemHeight:P,fullHeight:!1,onMouseDown:D,onScroll:p,virtual:O,direction:I,innerProps:O?null:ae},function(te,ne){var ie=te.group,de=te.groupOption,ve=te.data,se=te.label,he=te.value,Se=ve.key;if(ie){var je,Te=(je=ve.title)!==null&&je!==void 0?je:TE(se)?se.toString():void 0;return l.createElement("div",{className:re(k,"".concat(k,"-group"),ve.className),title:Te},se!==void 0?se:Se)}var Ce=ve.disabled,xe=ve.title;ve.children;var Ne=ve.style,Ee=ve.className,Be=jt(ve,lV),Ve=Hn(Be,Z),tt=z(he),nt=Ce||!tt&&_,We="".concat(k,"-option"),Ze=re(k,We,Ee,Y(Y(Y(Y({},"".concat(We,"-grouped"),de),"".concat(We,"-active"),B===ne&&!nt),"".concat(We,"-disabled"),nt),"".concat(We,"-selected"),tt)),Le=ee(te),Re=!w||typeof w=="function"||tt,qe=typeof Le=="number"?Le:Le||he,ye=TE(qe)?qe.toString():void 0;return xe!==void 0&&(ye=xe),l.createElement("div",Me({},wr(Ve),O?{}:J(te,ne),{"aria-selected":q(he),className:Ze,title:ye,onMouseMove:function(){B===ne||nt||U(ne)},onClick:function(){nt||G(he)},style:Ne}),l.createElement("div",{className:"".concat(We,"-content")},typeof T=="function"?T(te,{index:ne}):qe),l.isValidElement(w)||tt,Re&&l.createElement(Yv,{className:"".concat(k,"-option-state"),customizeIcon:w,customizeIconProps:{value:he,disabled:nt,isSelected:tt}},tt?"✓":null))}))},cV=l.forwardRef(sV);const uV=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var a=n.current,i=a.values,s=a.options,u=e.map(function(v){if(v.label===void 0){var p;return X(X({},v),{},{label:(p=i.get(v.value))===null||p===void 0?void 0:p.label})}return v}),d=new Map,m=new Map;return u.forEach(function(v){d.set(v.value,v),m.set(v.value,t.get(v.value)||s.get(v.value))}),n.current.values=d,n.current.options=m,u},[e,t]),o=l.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Xh(e,t){return bN(e).join("").toUpperCase().includes(t)}const dV=function(e,t,n,r,o){return l.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,u=[],d=typeof r=="function",m=n.toUpperCase(),v=d?r:function(y,h){return o?Xh(h[o],m):h[a]?Xh(h[i!=="children"?i:"label"],m):Xh(h[s],m)},p=d?function(y){return rb(y)}:function(y){return y};return e.forEach(function(y){if(y[a]){var h=v(n,p(y));if(h)u.push(y);else{var C=y[a].filter(function(g){return v(n,p(g))});C.length&&u.push(X(X({},y),{},Y({},a,C)))}return}v(n,p(y))&&u.push(y)}),u},[e,r,o,n,t])};var _E=0,fV=Tr();function mV(){var e;return fV?(e=_E,_E+=1):e="TEST_OR_SSR",e}function vV(e){var t=l.useState(),n=ce(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_select_".concat(mV()))},[]),e||r}var pV=["children","value"],gV=["children"];function hV(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=jt(r,pV);return X({key:n,value:a!==void 0?a:n,children:o},i)}function $N(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return po(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,u=s.children,d=jt(s,gV);return t||!a?hV(n):X(X({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},d),{},{options:$N(u)})}).filter(function(n){return n})}var yV=function(t,n,r,o,a){return l.useMemo(function(){var i=t,s=!t;s&&(i=$N(n));var u=new Map,d=new Map,m=function(y,h,C){C&&typeof C=="string"&&y.set(h[C],h)},v=function p(y){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<y.length;C+=1){var g=y[C];!g[r.options]||h?(u.set(g[r.value],g),m(d,g,r.label),m(d,g,o),m(d,g,a)):p(g[r.options],!0)}};return v(i),{options:i,valueOptions:u,labelOptions:d}},[t,n,r,o,a])};function DE(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var bV=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],CV=["inputValue"];function SV(e){return!e||ht(e)!=="object"}var xV=l.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,u=e.inputValue,d=e.searchValue,m=e.onSearch,v=e.autoClearSearchValue,p=v===void 0?!0:v,y=e.onSelect,h=e.onDeselect,C=e.dropdownMatchSelectWidth,g=C===void 0?!0:C,S=e.filterOption,x=e.filterSort,w=e.optionFilterProp,R=e.optionLabelProp,$=e.options,O=e.optionRender,I=e.children,N=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,T=e.virtual,k=e.direction,H=e.listHeight,A=H===void 0?200:H,_=e.listItemHeight,D=_===void 0?20:_,j=e.labelRender,z=e.value,F=e.defaultValue,W=e.labelInValue,K=e.onChange,B=e.maxCount,V=jt(e,bV),U=vV(n),q=ob(r),G=!!(!$&&I),Z=l.useMemo(function(){return S===void 0&&r==="combobox"?!1:S},[S,r]),ee=l.useMemo(function(){return SN(s,G)},[JSON.stringify(s),G]),J=Tn("",{value:d!==void 0?d:u,postState:function(ke){return ke||""}}),oe=ce(J,2),ae=oe[0],te=oe[1],ne=yV($,I,ee,w,R),ie=ne.valueOptions,de=ne.labelOptions,ve=ne.options,se=l.useCallback(function(Pe){var ke=bN(Pe);return ke.map(function(Qe){var Ke,Ye,et,Je,Ge;if(SV(Qe))Ke=Qe;else{var rt;et=Qe.key,Ye=Qe.label,Ke=(rt=Qe.value)!==null&&rt!==void 0?rt:et}var st=ie.get(Ke);if(st){var Nt;Ye===void 0&&(Ye=st==null?void 0:st[R||ee.label]),et===void 0&&(et=(Nt=st==null?void 0:st.key)!==null&&Nt!==void 0?Nt:Ke),Je=st==null?void 0:st.disabled,Ge=st==null?void 0:st.title}return{label:Ye,value:Ke,key:et,disabled:Je,title:Ge}})},[ee,R,ie]),he=Tn(F,{value:z}),Se=ce(he,2),je=Se[0],Te=Se[1],Ce=l.useMemo(function(){var Pe,ke=q&&je===null?[]:je,Qe=se(ke);return r==="combobox"&&m9((Pe=Qe[0])===null||Pe===void 0?void 0:Pe.value)?[]:Qe},[je,se,r,q]),xe=uV(Ce,ie),Ne=ce(xe,2),Ee=Ne[0],Be=Ne[1],Ve=l.useMemo(function(){if(!r&&Ee.length===1){var Pe=Ee[0];if(Pe.value===null&&(Pe.label===null||Pe.label===void 0))return[]}return Ee.map(function(ke){var Qe;return X(X({},ke),{},{label:(Qe=typeof j=="function"?j(ke):ke.label)!==null&&Qe!==void 0?Qe:ke.value})})},[r,Ee,j]),tt=l.useMemo(function(){return new Set(Ee.map(function(Pe){return Pe.value}))},[Ee]);l.useEffect(function(){if(r==="combobox"){var Pe,ke=(Pe=Ee[0])===null||Pe===void 0?void 0:Pe.value;te(f9(ke)?String(ke):"")}},[Ee]);var nt=DE(function(Pe,ke){var Qe=ke??Pe;return Y(Y({},ee.value,Pe),ee.label,Qe)}),We=l.useMemo(function(){if(r!=="tags")return ve;var Pe=_e(ve),ke=function(Ke){return ie.has(Ke)};return _e(Ee).sort(function(Qe,Ke){return Qe.value<Ke.value?-1:1}).forEach(function(Qe){var Ke=Qe.value;ke(Ke)||Pe.push(nt(Ke,Qe.label))}),Pe},[nt,ve,ie,Ee,r]),Ze=dV(We,ee,ae,Z,w),Le=l.useMemo(function(){return r!=="tags"||!ae||Ze.some(function(Pe){return Pe[w||"value"]===ae})||Ze.some(function(Pe){return Pe[ee.value]===ae})?Ze:[nt(ae)].concat(_e(Ze))},[nt,w,r,Ze,ae,ee]),Re=function Pe(ke){var Qe=_e(ke).sort(function(Ke,Ye){return x(Ke,Ye,{searchValue:ae})});return Qe.map(function(Ke){return Array.isArray(Ke.options)?X(X({},Ke),{},{options:Ke.options.length>0?Pe(Ke.options):Ke.options}):Ke})},qe=l.useMemo(function(){return x?Re(Le):Le},[Le,x,ae]),ye=l.useMemo(function(){return z9(qe,{fieldNames:ee,childrenAsData:G})},[qe,ee,G]),Oe=function(ke){var Qe=se(ke);if(Te(Qe),K&&(Qe.length!==Ee.length||Qe.some(function(et,Je){var Ge;return((Ge=Ee[Je])===null||Ge===void 0?void 0:Ge.value)!==(et==null?void 0:et.value)}))){var Ke=W?Qe:Qe.map(function(et){return et.value}),Ye=Qe.map(function(et){return rb(Be(et.value))});K(q?Ke:Ke[0],q?Ye:Ye[0])}},Fe=l.useState(null),we=ce(Fe,2),He=we[0],ot=we[1],gt=l.useState(0),yt=ce(gt,2),Rt=yt[0],qt=yt[1],Wt=N!==void 0?N:r!=="combobox",It=l.useCallback(function(Pe,ke){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ke=Qe.source,Ye=Ke===void 0?"keyboard":Ke;qt(ke),i&&r==="combobox"&&Pe!==null&&Ye==="keyboard"&&ot(String(Pe))},[i,r]),bt=function(ke,Qe,Ke){var Ye=function(){var rn,Jt=Be(ke);return[W?{label:Jt==null?void 0:Jt[ee.label],value:ke,key:(rn=Jt==null?void 0:Jt.key)!==null&&rn!==void 0?rn:ke}:ke,rb(Jt)]};if(Qe&&y){var et=Ye(),Je=ce(et,2),Ge=Je[0],rt=Je[1];y(Ge,rt)}else if(!Qe&&h&&Ke!=="clear"){var st=Ye(),Nt=ce(st,2),Lt=Nt[0],Bt=Nt[1];h(Lt,Bt)}},mt=DE(function(Pe,ke){var Qe,Ke=q?ke.selected:!0;Ke?Qe=q?[].concat(_e(Ee),[Pe]):[Pe]:Qe=Ee.filter(function(Ye){return Ye.value!==Pe}),Oe(Qe),bt(Pe,Ke),r==="combobox"?ot(""):(!ob||p)&&(te(""),ot(""))}),ue=function(ke,Qe){Oe(ke);var Ke=Qe.type,Ye=Qe.values;(Ke==="remove"||Ke==="clear")&&Ye.forEach(function(et){bt(et.value,!1,Ke)})},fe=function(ke,Qe){if(te(ke),ot(null),Qe.source==="submit"){var Ke=(ke||"").trim();if(Ke){var Ye=Array.from(new Set([].concat(_e(tt),[Ke])));Oe(Ye),bt(Ke,!0),te("")}return}Qe.source!=="blur"&&(r==="combobox"&&Oe(ke),m==null||m(ke))},be=function(ke){var Qe=ke;r!=="tags"&&(Qe=ke.map(function(Ye){var et=de.get(Ye);return et==null?void 0:et.value}).filter(function(Ye){return Ye!==void 0}));var Ke=Array.from(new Set([].concat(_e(tt),_e(Qe))));Oe(Ke),Ke.forEach(function(Ye){bt(Ye,!0)})},De=l.useMemo(function(){var Pe=T!==!1&&g!==!1;return X(X({},ne),{},{flattenOptions:ye,onActiveValue:It,defaultActiveFirstOption:Wt,onSelect:mt,menuItemSelectedIcon:P,rawValues:tt,fieldNames:ee,virtual:Pe,direction:k,listHeight:A,listItemHeight:D,childrenAsData:G,maxCount:B,optionRender:O})},[B,ne,ye,It,Wt,mt,P,tt,ee,T,g,k,A,D,G,O]);return l.createElement(TC.Provider,{value:De},l.createElement(H9,Me({},V,{id:U,prefixCls:a,ref:t,omitDomProps:CV,mode:r,displayValues:Ve,onDisplayValuesChange:ue,direction:k,searchValue:ae,onSearch:fe,autoClearSearchValue:p,onSearchSplit:be,dropdownMatchSelectWidth:g,OptionList:cV,emptyOptions:!ye.length,activeValue:He,activeDescendantId:"".concat(U,"_list_").concat(Rt)})))}),jC=xV;jC.Option=DC;jC.OptGroup=_C;function As(e,t,n){return re({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const nc=(e,t)=>t||e,wV=()=>{const[,e]=_r(),[t]=ho("Empty"),r=new tn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$V=()=>{const[,e]=_r(),[t]=ho("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:u}=l.useMemo(()=>({borderColor:new tn(n).onBackground(a).toHexString(),shadowColor:new tn(r).onBackground(a).toHexString(),contentColor:new tn(o).onBackground(a).toHexString()}),[n,r,o,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:i},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))},EV=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,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}}}}},OV=In("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=nn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[EV(o)]});var RV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EN=l.createElement(wV,null),ON=l.createElement($V,null),Ga=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=EN,description:a,children:i,imageStyle:s,style:u,classNames:d,styles:m}=e,v=RV(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:y,className:h,style:C,classNames:g,styles:S}=Er("empty"),x=p("empty",r),[w,R,$]=OV(x),[O]=ho("Empty"),I=typeof a<"u"?a:O==null?void 0:O.description,N=typeof I=="string"?I:"empty";let P=null;return typeof o=="string"?P=l.createElement("img",{alt:N,src:o}):P=o,w(l.createElement("div",Object.assign({className:re(R,$,x,h,{[`${x}-normal`]:o===ON,[`${x}-rtl`]:y==="rtl"},t,n,g.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),C),m==null?void 0:m.root),u)},v),l.createElement("div",{className:re(`${x}-image`,g.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),S.image),m==null?void 0:m.image)},P),I&&l.createElement("div",{className:re(`${x}-description`,g.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},S.description),m==null?void 0:m.description)},I),i&&l.createElement("div",{className:re(`${x}-footer`,g.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},S.footer),m==null?void 0:m.footer)},i)))};Ga.PRESENTED_IMAGE_DEFAULT=EN;Ga.PRESENTED_IMAGE_SIMPLE=ON;const kC=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(Dt),r=n("empty");switch(t){case"Table":case"List":return pe.createElement(Ga,{image:Ga.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(Ga,{image:Ga.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return pe.createElement(Ga,null)}},pd=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=l.useContext(Dt),s=l.useContext(KP),u=i==null?void 0:i.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(o=(r=s??u)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const m=q8.includes(d);return[d,m]},IV=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function PV(e,t){return e||IV(t)}const jE=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},NV=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,u=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},kn(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,[`
${o}${s}bottomLeft,
${a}${s}bottomLeft
`]:{animationName:Tv},[`
${o}${s}topLeft,
${a}${s}topLeft,
${o}${s}topRight,
${a}${s}topRight
`]:{animationName:Dv},[`${i}${s}bottomLeft`]:{animationName:_v},[`
${i}${s}topLeft,
${i}${s}topRight
`]:{animationName:jv},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},jE(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Da),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},jE(e)),{color:e.colorTextDisabled})}),[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Li(e,"slide-up"),Li(e,"slide-down"),Fs(e,"move-up"),Fs(e,"move-down")]},RN=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:le(t),itemLineHeight:le(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},MV=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},IN=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:u,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:m}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:m,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(m).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ld()),{display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},TV=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=MV(e),s=t?`${n}-${t}`:"",u=RN(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},IN(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:u.basePadding,paddingBlock:u.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${le(r)} 0`,lineHeight:le(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:u.itemHeight,lineHeight:le(u.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:le(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal()},[`${o}-item + ${o}-item,
${n}-prefix + ${n}-selection-wrap
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:u.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:le(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Qh(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[TV(e,t),o]}const _V=e=>{const{componentCls:t}=e,n=nn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=nn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Qh(e),Qh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Qh(r,"lg")]};function Zh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},kn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:le(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:le(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${le(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:le(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${le(r)}`,"&:after":{display:"none"}}}}}}}function DV(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Zh(e),Zh(nn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${le(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Zh(nn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const jV=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:u,zIndexPopupBase:d,colorText:m,fontWeightStrong:v,controlItemBgActive:p,controlItemBgHover:y,colorBgContainer:h,colorFillSecondary:C,colorBgContainerDisabled:g,colorTextDisabled:S,colorPrimaryHover:x,colorPrimary:w,controlOutline:R}=e,$=s*2,O=r*2,I=Math.min(o-$,o-O),N=Math.min(a-$,a-O),P=Math.min(i-$,i-O);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:d+50,optionSelectedColor:m,optionSelectedFontWeight:v,optionSelectedBg:p,optionActiveBg:y,optionPadding:`${(o-t*n)/2}px ${u}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:I,multipleItemHeightSM:N,multipleItemHeightLG:P,multipleSelectorBgDisabled:g,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:x,activeBorderColor:w,activeOutlineColor:R,selectAffixPadding:s}},PN=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${le(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${le(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},kE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},PN(e,t))}),kV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},PN(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),kE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),kE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NN=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${le(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},zE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},NN(e,t))}),zV=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},NN(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),zE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),zE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),LV=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),MN=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${le(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},LE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},MN(e,t))}),FV=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},MN(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),LE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),LE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),AV=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},kV(e)),zV(e)),LV(e)),FV(e))}),BV=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},HV=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},VV=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},kn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},BV(e)),HV(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Da),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Da),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ld()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},WV=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},VV(e),DV(e),_V(e),NV(e),{[`${t}-rtl`]:{direction:"rtl"}},Hv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},KV=In("Select",(e,{rootPrefixCls:t})=>{const n=nn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[WV(n),AV(n)]},jV,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var UV=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:O6}))},TN=l.forwardRef(UV),qV=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:YR}))},_N=l.forwardRef(qV),YV=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:Sz}))},zC=l.forwardRef(YV);function DN({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:m,componentName:v}){const p=t??l.createElement(Xs,null),y=S=>e===null&&!i&&!m?null:l.createElement(l.Fragment,null,u!==!1&&S,i&&d);let h=null;if(e!==void 0)h=y(e);else if(o)h=y(l.createElement($l,{spin:!0}));else{const S=`${s}-suffix`;h=({open:x,showSearch:w})=>y(x&&w?l.createElement(zC,{className:S}):l.createElement(_N,{className:S}))}let C=null;n!==void 0?C=n:a?C=l.createElement(TN,null):C=null;let g=null;return r!==void 0?g=r:g=l.createElement(jl,null),{clearIcon:p,suffixIcon:h,itemIcon:C,removeIcon:g}}function GV(e,t){return t!==void 0?t:e!==null}var XV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jN="SECRET_COMBOBOX_MODE_DO_NOT_USE",QV=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:u,className:d,rootClassName:m,getPopupContainer:v,popupClassName:p,dropdownClassName:y,listHeight:h=256,placement:C,listItemHeight:g,size:S,disabled:x,notFoundContent:w,status:R,builtinPlacements:$,dropdownMatchSelectWidth:O,popupMatchSelectWidth:I,direction:N,style:P,allowClear:T,variant:k,dropdownStyle:H,transitionName:A,tagRender:_,maxCount:D,prefix:j,dropdownRender:z,popupRender:F,onDropdownVisibleChange:W,onOpenChange:K,styles:B,classNames:V}=e,U=XV(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:q,getPrefixCls:G,renderEmpty:Z,direction:ee,virtual:J,popupMatchSelectWidth:oe,popupOverflow:ae}=l.useContext(Dt),{showSearch:te,style:ne,styles:ie,className:de,classNames:ve}=Er("select"),[,se]=_r(),he=g??(se==null?void 0:se.controlHeight),Se=G("select",s),je=G(),Te=N??ee,{compactSize:Ce,compactItemClassnames:xe}=qi(Se,Te),[Ne,Ee]=pd("select",k,u),Be=vr(Se),[Ve,tt,nt]=KV(Se,Be),We=l.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===jN?"combobox":Ke},[e.mode]),Ze=We==="multiple"||We==="tags",Le=GV(e.suffixIcon,e.showArrow),Re=(n=I??O)!==null&&n!==void 0?n:oe,qe=((r=B==null?void 0:B.popup)===null||r===void 0?void 0:r.root)||((o=ie.popup)===null||o===void 0?void 0:o.root)||H,ye=F||z,Oe=K||W,{status:Fe,hasFeedback:we,isFormItemInput:He,feedbackIcon:ot}=l.useContext(Ar),gt=nc(Fe,R);let yt;w!==void 0?yt=w:We==="combobox"?yt=null:yt=(Z==null?void 0:Z("Select"))||l.createElement(kC,{componentName:"Select"});const{suffixIcon:Rt,itemIcon:qt,removeIcon:Wt,clearIcon:It}=DN(Object.assign(Object.assign({},U),{multiple:Ze,hasFeedback:we,feedbackIcon:ot,showSuffixIcon:Le,prefixCls:Se,componentName:"Select"})),bt=T===!0?{clearIcon:It}:T,mt=Hn(U,["suffixIcon","itemIcon"]),ue=re(((a=V==null?void 0:V.popup)===null||a===void 0?void 0:a.root)||((i=ve==null?void 0:ve.popup)===null||i===void 0?void 0:i.root)||p||y,{[`${Se}-dropdown-${Te}`]:Te==="rtl"},m,ve.root,V==null?void 0:V.root,nt,Be,tt),fe=Xr(Ke=>{var Ye;return(Ye=S??Ce)!==null&&Ye!==void 0?Ye:Ke}),be=l.useContext(go),De=x??be,Pe=re({[`${Se}-lg`]:fe==="large",[`${Se}-sm`]:fe==="small",[`${Se}-rtl`]:Te==="rtl",[`${Se}-${Ne}`]:Ee,[`${Se}-in-form-item`]:He},As(Se,gt,we),xe,de,d,ve.root,V==null?void 0:V.root,m,nt,Be,tt),ke=l.useMemo(()=>C!==void 0?C:Te==="rtl"?"bottomRight":"bottomLeft",[C,Te]),[Qe]=ti("SelectLike",qe==null?void 0:qe.zIndex);return Ve(l.createElement(jC,Object.assign({ref:t,virtual:J,showSearch:te},mt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie.root),B==null?void 0:B.root),ne),P),dropdownMatchSelectWidth:Re,transitionName:ba(je,"slide-up",A),builtinPlacements:PV($,ae),listHeight:h,listItemHeight:he,mode:We,prefixCls:Se,placement:ke,direction:Te,prefix:j,suffixIcon:Rt,menuItemSelectedIcon:qt,removeIcon:Wt,allowClear:bt,notFoundContent:yt,className:Pe,getPopupContainer:v||q,dropdownClassName:ue,disabled:De,dropdownStyle:Object.assign(Object.assign({},qe),{zIndex:Qe}),maxCount:Ze?D:void 0,tagRender:Ze?_:void 0,dropdownRender:ye,onDropdownVisibleChange:Oe})))},ka=l.forwardRef(QV),ZV=qv(ka,"dropdownAlign");ka.SECRET_COMBOBOX_MODE_DO_NOT_USE=jN;ka.Option=DC;ka.OptGroup=_C;ka._InternalPanelDoNotUseOrYouWillBeFired=ZV;const kN=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},zN=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Fi=["xxl","xl","lg","md","sm","xs"],JV=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)`}),eW=e=>{const t=e,n=[].concat(Fi).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const u=`screen${a}Max`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`);const m=`screen${n[o+1].toUpperCase()}Min`;if(!(t[u]<=t[m]))throw new Error(`${u}<=${m} fails : !(${t[u]}<=${t[m]})`)}}),e},LN=(e,t)=>{if(t){for(const n of Fi)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},tW=()=>{const[,e]=_r(),t=JV(eW(e));return pe.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},u=window.matchMedia(i);kN(u,s),this.matchHandlers[i]={mql:u,listener:s},s(u)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];zN(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function LC(){const[,e]=l.useReducer(t=>t+1,0);return e}function gd(e=!0,t={}){const n=l.useRef(t),r=LC(),o=tW();return dn(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}const Bs=e=>e?typeof e=="function"?e():e:null;function FC(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return l.createElement("div",{className:re("".concat(n,"-content"),i),style:s},l.createElement("div",{className:re("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var ms={shiftX:64,adjustY:1},vs={adjustX:1,shiftY:!0},Wo=[0,0],nW={left:{points:["cr","cl"],overflow:vs,offset:[-4,0],targetOffset:Wo},right:{points:["cl","cr"],overflow:vs,offset:[4,0],targetOffset:Wo},top:{points:["bc","tc"],overflow:ms,offset:[0,-4],targetOffset:Wo},bottom:{points:["tc","bc"],overflow:ms,offset:[0,4],targetOffset:Wo},topLeft:{points:["bl","tl"],overflow:ms,offset:[0,-4],targetOffset:Wo},leftTop:{points:["tr","tl"],overflow:vs,offset:[-4,0],targetOffset:Wo},topRight:{points:["br","tr"],overflow:ms,offset:[0,-4],targetOffset:Wo},rightTop:{points:["tl","tr"],overflow:vs,offset:[4,0],targetOffset:Wo},bottomRight:{points:["tr","br"],overflow:ms,offset:[0,4],targetOffset:Wo},rightBottom:{points:["bl","br"],overflow:vs,offset:[4,0],targetOffset:Wo},bottomLeft:{points:["tl","bl"],overflow:ms,offset:[0,4],targetOffset:Wo},leftBottom:{points:["br","bl"],overflow:vs,offset:[-4,0],targetOffset:Wo}},rW=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],oW=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,u=t.mouseLeaveDelay,d=u===void 0?.1:u,m=t.overlayStyle,v=t.prefixCls,p=v===void 0?"rc-tooltip":v,y=t.children,h=t.onVisibleChange,C=t.afterVisibleChange,g=t.transitionName,S=t.animation,x=t.motion,w=t.placement,R=w===void 0?"right":w,$=t.align,O=$===void 0?{}:$,I=t.destroyTooltipOnHide,N=I===void 0?!1:I,P=t.defaultVisible,T=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var H=t.overlay,A=t.id,_=t.showArrow,D=_===void 0?!0:_,j=t.classNames,z=t.styles,F=jt(t,rW),W=Wv(A),K=l.useRef(null);l.useImperativeHandle(n,function(){return K.current});var B=X({},F);"visible"in t&&(B.popupVisible=t.visible);var V=function(){return l.createElement(FC,{key:"content",prefixCls:p,id:W,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:X(X({},k),z==null?void 0:z.body)},H)},U=function(){var G=l.Children.only(y),Z=(G==null?void 0:G.props)||{},ee=X(X({},Z),{},{"aria-describedby":H?W:null});return l.cloneElement(y,ee)};return l.createElement(vd,Me({popupClassName:re(r,j==null?void 0:j.root),prefixCls:p,popup:V,action:a,builtinPlacements:nW,popupPlacement:R,ref:K,popupAlign:O,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:C,popupTransitionName:g,popupAnimation:S,popupMotion:x,defaultPopupVisible:P,autoDestroy:N,mouseLeaveDelay:d,popupStyle:X(X({},m),z==null?void 0:z.root),mouseEnterDelay:s,arrow:D},B),U())};const aW=l.forwardRef(oW);function Xv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),u=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),v=2*o-d,p=m,y=2*o-s,h=u,C=2*o-a,g=i,S=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),x=r*(Math.sqrt(2)-1),w=`polygon(${x}px 100%, 50% ${x}px, ${2*o-x}px 100%, ${x}px 100%)`,R=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${u} L ${d} ${m} A ${n} ${n} 0 0 1 ${v} ${p} L ${y} ${h} A ${r} ${r} 0 0 0 ${C} ${g} Z')`;return{arrowShadowWidth:S,arrowPath:R,arrowPolygon:w}}const FN=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:u}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${le(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},AN=8;function Qv(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?AN:r}}function Ff(e,t){return e?t:{}}function AC(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},FN(e,t,o)),{"&:before":{background:t}})]},Ff(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${le(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ff(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${le(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ff(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Ff(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function iW(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const FE={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"]}},lW={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"]}},sW=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function BN(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,u={};return Object.keys(FE).forEach(d=>{const m=r&&lW[d]||FE[d],v=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(u[d]=v,sW.has(d)&&(v.autoArrow=!1),d){case"top":case"topLeft":case"topRight":v.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=s+o;break}const p=Qv({contentRadius:a,limitVerticalRadius:!0});if(r)switch(d){case"topLeft":case"bottomLeft":v.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":v.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":v.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":v.offset[1]=p.arrowOffsetHorizontal*2-s;break}v.overflow=iW(d,p,t,n),i&&(v.htmlRegion="visibleFirst")}),u}const cW=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:u,boxShadowSecondary:d,paddingSM:m,paddingXS:v,arrowOffsetHorizontal:p,sizePopupArrow:y}=e,h=t(i).add(y).add(p).equal(),C=t(i).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},kn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:C,minHeight:u,padding:`${le(e.calc(m).div(2).equal())} ${le(v)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,AN)}},[`${n}-content`]:{position:"relative"}}),qI(e,(g,{darkColor:S})=>({[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:S},[`${n}-arrow`]:{"--antd-arrow-background-color":S}}}))),{"&-rtl":{direction:"rtl"}})},AC(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},uW=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Qv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Xv(nn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),HN=(e,t=!0)=>In("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,s=nn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[cW(s),Zs(r,"zoom-big-fast")]},uW,{resetStyle:!1,injectStyle:t})(e),dW=ji.map(e=>`${e}-inverse`),fW=["success","processing","error","default","warning"];function VN(e,t=!0){return t?[].concat(_e(dW),_e(ji)).includes(e):ji.includes(e)}function mW(e){return fW.includes(e)}function WN(e,t){const n=VN(t),r=re({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const vW=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(Dt),u=s("tooltip",t),[d,m,v]=HN(u),p=WN(u,a),y=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),C=re(m,v,u,`${u}-pure`,`${u}-placement-${r}`,n,p.className);return d(l.createElement("div",{className:C,style:y},l.createElement("div",{className:`${u}-arrow`}),l.createElement(FC,Object.assign({},e,{className:m,prefixCls:u,overlayInnerStyle:h}),o)))};var pW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gW=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:u,children:d,afterOpenChange:m,afterVisibleChange:v,destroyTooltipOnHide:p,destroyOnHidden:y,arrow:h=!0,title:C,overlay:g,builtinPlacements:S,arrowPointAtCenter:x=!1,autoAdjustOverflow:w=!0,motion:R,getPopupContainer:$,placement:O="top",mouseEnterDelay:I=.1,mouseLeaveDelay:N=.1,overlayStyle:P,rootClassName:T,overlayClassName:k,styles:H,classNames:A}=e,_=pW(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),D=!!h,[,j]=_r(),{getPopupContainer:z,getPrefixCls:F,direction:W,className:K,style:B,classNames:V,styles:U}=Er("tooltip"),q=Ui(),G=l.useRef(null),Z=()=>{var Le;(Le=G.current)===null||Le===void 0||Le.forceAlign()};l.useImperativeHandle(t,()=>{var Le,Re;return{forceAlign:Z,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),Z()},nativeElement:(Le=G.current)===null||Le===void 0?void 0:Le.nativeElement,popupElement:(Re=G.current)===null||Re===void 0?void 0:Re.popupElement}});const[ee,J]=Tn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),oe=!C&&!g&&C!==0,ae=Le=>{var Re,qe;J(oe?!1:Le),oe||((Re=e.onOpenChange)===null||Re===void 0||Re.call(e,Le),(qe=e.onVisibleChange)===null||qe===void 0||qe.call(e,Le))},te=l.useMemo(()=>{var Le,Re;let qe=x;return typeof h=="object"&&(qe=(Re=(Le=h.pointAtCenter)!==null&&Le!==void 0?Le:h.arrowPointAtCenter)!==null&&Re!==void 0?Re:x),S||BN({arrowPointAtCenter:qe,autoAdjustOverflow:w,arrowWidth:D?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0})},[x,h,S,j]),ne=l.useMemo(()=>C===0?C:g||C||"",[g,C]),ie=l.createElement(Ol,{space:!0},typeof ne=="function"?ne():ne),de=F("tooltip",o),ve=F(),se=e["data-popover-inject"];let he=ee;!("open"in e)&&!("visible"in e)&&oe&&(he=!1);const Se=l.isValidElement(d)&&!mP(d)?d:l.createElement("span",null,d),je=Se.props,Te=!je.className||typeof je.className=="string"?re(je.className,a||`${de}-open`):je.className,[Ce,xe,Ne]=HN(de,!se),Ee=WN(de,s),Be=Ee.arrowStyle,Ve=re(k,{[`${de}-rtl`]:W==="rtl"},Ee.className,T,xe,Ne,K,V.root,A==null?void 0:A.root),tt=re(V.body,A==null?void 0:A.body),[nt,We]=ti("Tooltip",_.zIndex),Ze=l.createElement(aW,Object.assign({},_,{zIndex:nt,showArrow:D,placement:O,mouseEnterDelay:I,mouseLeaveDelay:N,prefixCls:de,classNames:{root:Ve,body:tt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Be),U.root),B),P),H==null?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),u),H==null?void 0:H.body),Ee.overlayStyle)},getTooltipContainer:$||i||z,ref:G,builtinPlacements:te,overlay:ie,visible:he,onVisibleChange:ae,afterVisibleChange:m??v,arrowContent:l.createElement("span",{className:`${de}-arrow-content`}),motion:{motionName:ba(ve,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!p}),he?Fr(Se,{className:Te}):Se);return Ce(l.createElement(Ev.Provider,{value:We},Ze))}),Ai=gW;Ai._InternalPanelDoNotUseOrYouWillBeFired=vW;const hW=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:d,titleMarginBottom:m,colorBgElevated:v,popoverBg:p,titleBorderBottom:y,innerContentPadding:h,titlePadding:C}=e;return[{[t]:Object.assign(Object.assign({},kn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":v,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:u,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:m,color:s,fontWeight:o,borderBottom:y,padding:C},[`${t}-inner-content`]:{color:n,padding:h}})},AC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},yW=e=>{const{componentCls:t}=e;return{[t]:ji.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},bW=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:u,lineType:d,colorSplit:m,paddingSM:v}=e,p=n-r,y=p/2,h=p/2-t,C=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Xv(e)),Qv({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:u,titlePadding:a?`${y}px ${C}px ${h}px`:0,titleBorderBottom:a?`${t}px ${d} ${m}`:"none",innerContentPadding:a?`${v}px ${C}px`:0})},KN=In("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=nn(e,{popoverBg:t,popoverColor:n});return[hW(r),yW(r),Zs(r,"zoom-big")]},bW,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var CW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UN=({title:e,content:t,prefixCls:n})=>!e&&!t?null:l.createElement(l.Fragment,null,e&&l.createElement("div",{className:`${n}-title`},e),t&&l.createElement("div",{className:`${n}-inner-content`},t)),SW=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:u}=e,d=Bs(i),m=Bs(s),v=re(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return l.createElement("div",{className:v,style:o},l.createElement("div",{className:`${n}-arrow`}),l.createElement(FC,Object.assign({},e,{className:t,prefixCls:n}),u||l.createElement(UN,{prefixCls:n,title:d,content:m})))},qN=e=>{const{prefixCls:t,className:n}=e,r=CW(e,["prefixCls","className"]),{getPrefixCls:o}=l.useContext(Dt),a=o("popover",t),[i,s,u]=KN(a);return i(l.createElement(SW,Object.assign({},r,{prefixCls:a,hashId:s,className:re(n,u)})))};var xW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wW=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:a,content:i,overlayClassName:s,placement:u="top",trigger:d="hover",children:m,mouseEnterDelay:v=.1,mouseLeaveDelay:p=.1,onOpenChange:y,overlayStyle:h={},styles:C,classNames:g}=e,S=xW(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:w,style:R,classNames:$,styles:O}=Er("popover"),I=x("popover",o),[N,P,T]=KN(I),k=x(),H=re(s,P,T,w,$.root,g==null?void 0:g.root),A=re($.body,g==null?void 0:g.body),[_,D]=Tn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=(B,V)=>{D(B,!0),y==null||y(B,V)},z=B=>{B.keyCode===Et.ESC&&j(!1,B)},F=B=>{j(B)},W=Bs(a),K=Bs(i);return N(l.createElement(Ai,Object.assign({placement:u,trigger:d,mouseEnterDelay:v,mouseLeaveDelay:p},S,{prefixCls:I,classNames:{root:H,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),R),h),C==null?void 0:C.root),body:Object.assign(Object.assign({},O.body),C==null?void 0:C.body)},ref:t,open:_,onOpenChange:F,overlay:W||K?l.createElement(UN,{prefixCls:I,title:W,content:K}):null,transitionName:ba(k,"zoom-big",S.transitionName),"data-popover-inject":!0}),Fr(m,{onKeyDown:B=>{var V,U;l.isValidElement(m)&&((U=m==null?void 0:(V=m.props).onKeyDown)===null||U===void 0||U.call(V,B)),z(B)}})))}),YN=wW;YN._InternalPanelDoNotUseOrYouWillBeFired=qN;var $W=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:az}))},Bi=l.forwardRef($W),EW=Et.ESC,OW=Et.TAB;function RW(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var v,p;(v=n.current)===null||v===void 0||(p=v.focus)===null||p===void 0||p.call(v),r==null||r(!1)}},u=function(){var v;return(v=a.current)!==null&&v!==void 0&&v.focus?(a.current.focus(),i.current=!0,!0):!1},d=function(v){switch(v.keyCode){case EW:s();break;case OW:{var p=!1;i.current||(p=u()),p?v.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",d),o&&cn(u,3),function(){window.removeEventListener("keydown",d),i.current=!1}):function(){i.current=!1}},[t])}var IW=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=To(t,Ki(a));return pe.createElement(pe.Fragment,null,r&&pe.createElement("div",{className:"".concat(o,"-arrow")}),pe.cloneElement(a,{ref:ha(a)?i:void 0}))}),ps={adjustX:1,adjustY:1},gs=[0,0],PW={topLeft:{points:["bl","tl"],overflow:ps,offset:[0,-4],targetOffset:gs},top:{points:["bc","tc"],overflow:ps,offset:[0,-4],targetOffset:gs},topRight:{points:["br","tr"],overflow:ps,offset:[0,-4],targetOffset:gs},bottomLeft:{points:["tl","bl"],overflow:ps,offset:[0,4],targetOffset:gs},bottom:{points:["tc","bc"],overflow:ps,offset:[0,4],targetOffset:gs},bottomRight:{points:["tr","br"],overflow:ps,offset:[0,4],targetOffset:gs}},NW=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function MW(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,u=e.animation,d=e.align,m=e.placement,v=m===void 0?"bottomLeft":m,p=e.placements,y=p===void 0?PW:p,h=e.getPopupContainer,C=e.showAction,g=e.hideAction,S=e.overlayClassName,x=e.overlayStyle,w=e.visible,R=e.trigger,$=R===void 0?["hover"]:R,O=e.autoFocus,I=e.overlay,N=e.children,P=e.onVisibleChange,T=jt(e,NW),k=pe.useState(),H=ce(k,2),A=H[0],_=H[1],D="visible"in e?w:A,j=pe.useRef(null),z=pe.useRef(null),F=pe.useRef(null);pe.useImperativeHandle(t,function(){return j.current});var W=function(J){_(J),P==null||P(J)};RW({visible:D,triggerRef:F,onVisibleChange:W,autoFocus:O,overlayRef:z});var K=function(J){var oe=e.onOverlayClick;_(!1),oe&&oe(J)},B=function(){return pe.createElement(IW,{ref:z,overlay:I,prefixCls:i,arrow:o})},V=function(){return typeof I=="function"?B:B()},U=function(){var J=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!oe},q=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},G=pe.cloneElement(N,{className:re((n=N.props)===null||n===void 0?void 0:n.className,D&&q()),ref:ha(N)?To(F,Ki(N)):void 0}),Z=g;return!Z&&$.indexOf("contextMenu")!==-1&&(Z=["click"]),pe.createElement(vd,Me({builtinPlacements:y},T,{prefixCls:i,ref:j,popupClassName:re(S,Y({},"".concat(i,"-show-arrow"),o)),popupStyle:x,action:$,showAction:C,hideAction:Z,popupPlacement:v,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:D,stretch:U()?"minWidth":"",popup:V(),onPopupVisibleChange:W,onPopupClick:K,getPopupContainer:h}),G)}const TW=pe.forwardRef(MW),_W=e=>typeof e!="object"&&typeof e!="function"||e===null;var GN=l.createContext(null);function XN(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function QN(e){var t=l.useContext(GN);return XN(t,e)}var DW=["children","locked"],Ca=l.createContext(null);function jW(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Xu(e){var t=e.children,n=e.locked,r=jt(e,DW),o=l.useContext(Ca),a=Dl(function(){return jW(o,r)},[o,r],function(i,s){return!n&&(i[0]!==s[0]||!ya(i[1],s[1],!0))});return l.createElement(Ca.Provider,{value:a},t)}var kW=[],ZN=l.createContext(null);function Zv(){return l.useContext(ZN)}var JN=l.createContext(kW);function rc(e){var t=l.useContext(JN);return l.useMemo(function(){return e!==void 0?[].concat(_e(t),[e]):t},[t,e])}var eM=l.createContext(null),BC=l.createContext({});function AE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Qs(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function zW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=_e(e.querySelectorAll("*")).filter(function(r){return AE(r,t)});return AE(e,t)&&n.unshift(e),n}var ib=Et.LEFT,lb=Et.RIGHT,sb=Et.UP,vm=Et.DOWN,pm=Et.ENTER,tM=Et.ESC,eu=Et.HOME,tu=Et.END,BE=[sb,vm,ib,lb];function LW(e,t,n,r){var o,a="prev",i="next",s="children",u="parent";if(e==="inline"&&r===pm)return{inlineTrigger:!0};var d=Y(Y({},sb,a),vm,i),m=Y(Y(Y(Y({},ib,n?i:a),lb,n?a:i),vm,s),pm,s),v=Y(Y(Y(Y(Y(Y({},sb,a),vm,i),pm,s),tM,u),ib,n?s:u),lb,n?u:s),p={inline:d,horizontal:m,vertical:v,inlineSub:d,horizontalSub:v,verticalSub:v},y=(o=p["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(y){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function FW(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function AW(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function HC(e,t){var n=zW(e,!0);return n.filter(function(r){return t.has(r)})}function HE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=HC(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var cb=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(XN(n,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function BW(e,t,n,r,o,a,i,s,u,d){var m=l.useRef(),v=l.useRef();v.current=t;var p=function(){cn.cancel(m.current)};return l.useEffect(function(){return function(){p()}},[]),function(y){var h=y.which;if([].concat(BE,[pm,tM,eu,tu]).includes(h)){var C=a(),g=cb(C,r),S=g,x=S.elements,w=S.key2element,R=S.element2key,$=w.get(t),O=AW($,x),I=R.get(O),N=LW(e,i(I,!0).length===1,n,h);if(!N&&h!==eu&&h!==tu)return;(BE.includes(h)||[eu,tu].includes(h))&&y.preventDefault();var P=function(z){if(z){var F=z,W=z.querySelector("a");W!=null&&W.getAttribute("href")&&(F=W);var K=R.get(z);s(K),p(),m.current=cn(function(){v.current===K&&F.focus()})}};if([eu,tu].includes(h)||N.sibling||!O){var T;!O||e==="inline"?T=o.current:T=FW(O);var k,H=HC(T,x);h===eu?k=H[0]:h===tu?k=H[H.length-1]:k=HE(T,x,O,N.offset),P(k)}else if(N.inlineTrigger)u(I);else if(N.offset>0)u(I,!0),p(),m.current=cn(function(){g=cb(C,r);var j=O.getAttribute("aria-controls"),z=document.getElementById(j),F=HE(z,g.elements);P(F)},5);else if(N.offset<0){var A=i(I,!0),_=A[A.length-2],D=w.get(_);u(_,!1),P(D)}}d==null||d(y)}}function HW(e){Promise.resolve().then(e)}var VC="__RC_UTIL_PATH_SPLIT__",VE=function(t){return t.join(VC)},VW=function(t){return t.split(VC)},ub="rc-menu-more";function WW(){var e=l.useState({}),t=ce(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),a=l.useState([]),i=ce(a,2),s=i[0],u=i[1],d=l.useRef(0),m=l.useRef(!1),v=function(){m.current||n({})},p=l.useCallback(function(w,R){var $=VE(R);o.current.set($,w),r.current.set(w,$),d.current+=1;var O=d.current;HW(function(){O===d.current&&v()})},[]),y=l.useCallback(function(w,R){var $=VE(R);o.current.delete($),r.current.delete(w)},[]),h=l.useCallback(function(w){u(w)},[]),C=l.useCallback(function(w,R){var $=r.current.get(w)||"",O=VW($);return R&&s.includes(O[0])&&O.unshift(ub),O},[s]),g=l.useCallback(function(w,R){return w.filter(function($){return $!==void 0}).some(function($){var O=C($,!0);return O.includes(R)})},[C]),S=function(){var R=_e(r.current.keys());return s.length&&R.push(ub),R},x=l.useCallback(function(w){var R="".concat(r.current.get(w)).concat(VC),$=new Set;return _e(o.current.keys()).forEach(function(O){O.startsWith(R)&&$.add(o.current.get(O))}),$},[]);return l.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:p,unregisterPath:y,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:C,getKeys:S,getSubPathKeys:x}}function hu(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var KW=Math.random().toFixed(5).toString().slice(2),WE=0;function UW(e){var t=Tn(e,{value:e}),n=ce(t,2),r=n[0],o=n[1];return l.useEffect(function(){WE+=1;var a="".concat(KW,"-").concat(WE);o("rc-menu-uuid-".concat(a))},[]),r}function nM(e,t,n,r){var o=l.useContext(Ca),a=o.activeKey,i=o.onActive,s=o.onInactive,u={active:a===e};return t||(u.onMouseEnter=function(d){n==null||n({key:e,domEvent:d}),i(e)},u.onMouseLeave=function(d){r==null||r({key:e,domEvent:d}),s(e)}),u}function rM(e){var t=l.useContext(Ca),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function oM(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=l.createElement(t,X({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var qW=["item"];function Wm(e){var t=e.item,n=jt(e,qW);return Object.defineProperty(n,"item",{get:function(){return qn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var YW=["title","attribute","elementRef"],GW=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],XW=["active"],QW=function(e){na(n,e);var t=ra(n);function n(){return rr(this,n),t.apply(this,arguments)}return or(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,u=jt(o,YW),d=Hn(u,["eventKey","popupClassName","popupOffset","onTitleClick"]);return qn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(ga.Item,Me({},i,{title:typeof a=="string"?a:void 0},d,{ref:s}))}}]),n}(l.Component),ZW=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,i=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,m=e.onMouseLeave,v=e.onClick,p=e.onKeyDown,y=e.onFocus,h=jt(e,GW),C=QN(o),g=l.useContext(Ca),S=g.prefixCls,x=g.onItemClick,w=g.disabled,R=g.overflowDisabled,$=g.itemIcon,O=g.selectedKeys,I=g.onActive,N=l.useContext(BC),P=N._internalRenderMenuItem,T="".concat(S,"-item"),k=l.useRef(),H=l.useRef(),A=w||a,_=Wi(t,H),D=rc(o),j=function(oe){return{key:o,keyPath:_e(D).reverse(),item:k.current,domEvent:oe}},z=i||$,F=nM(o,A,d,m),W=F.active,K=jt(F,XW),B=O.includes(o),V=rM(D.length),U=function(oe){if(!A){var ae=j(oe);v==null||v(Wm(ae)),x(ae)}},q=function(oe){if(p==null||p(oe),oe.which===Et.ENTER){var ae=j(oe);v==null||v(Wm(ae)),x(ae)}},G=function(oe){I(o),y==null||y(oe)},Z={};e.role==="option"&&(Z["aria-selected"]=B);var ee=l.createElement(QW,Me({ref:k,elementRef:_,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":R&&C?null:C},Hn(h,["extra"]),K,Z,{component:"li","aria-disabled":a,style:X(X({},V),n),className:re(T,Y(Y(Y({},"".concat(T,"-active"),W),"".concat(T,"-selected"),B),"".concat(T,"-disabled"),A),r),onClick:U,onKeyDown:q,onFocus:G}),s,l.createElement(oM,{props:X(X({},e),{},{isSelected:B}),icon:z}));return P&&(ee=P(ee,e,{selected:B})),ee});function JW(e,t){var n=e.eventKey,r=Zv(),o=rc(n);return l.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:l.createElement(ZW,Me({},e,{ref:t}))}const Jv=l.forwardRef(JW);var eK=["className","children"],tK=function(t,n){var r=t.className,o=t.children,a=jt(t,eK),i=l.useContext(Ca),s=i.prefixCls,u=i.mode,d=i.rtl;return l.createElement("ul",Me({className:re(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(u==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},WC=l.forwardRef(tK);WC.displayName="SubMenuList";function KC(e,t){return po(e).map(function(n,r){if(l.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,u=s==null;u&&(s="tmp_key-".concat([].concat(_e(t),[r]).join("-")));var d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}var qr={adjustX:1,adjustY:1},nK={topLeft:{points:["bl","tl"],overflow:qr},topRight:{points:["br","tr"],overflow:qr},bottomLeft:{points:["tl","bl"],overflow:qr},bottomRight:{points:["tr","br"],overflow:qr},leftTop:{points:["tr","tl"],overflow:qr},leftBottom:{points:["br","bl"],overflow:qr},rightTop:{points:["tl","tr"],overflow:qr},rightBottom:{points:["bl","br"],overflow:qr}},rK={topLeft:{points:["bl","tl"],overflow:qr},topRight:{points:["br","tr"],overflow:qr},bottomLeft:{points:["tl","bl"],overflow:qr},bottomRight:{points:["tr","br"],overflow:qr},rightTop:{points:["tr","tl"],overflow:qr},rightBottom:{points:["br","bl"],overflow:qr},leftTop:{points:["tl","tr"],overflow:qr},leftBottom:{points:["bl","br"],overflow:qr}};function aM(e,t,n){if(t)return t;if(n)return n[e]||n.other}var oK={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aK(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,u=e.disabled,d=e.mode,m=e.onVisibleChange,v=l.useContext(Ca),p=v.getPopupContainer,y=v.rtl,h=v.subMenuOpenDelay,C=v.subMenuCloseDelay,g=v.builtinPlacements,S=v.triggerSubMenuAction,x=v.forceSubMenuRender,w=v.rootClassName,R=v.motion,$=v.defaultMotions,O=l.useState(!1),I=ce(O,2),N=I[0],P=I[1],T=X(y?X({},rK):X({},nK),g),k=oK[d],H=aM(d,R,$),A=l.useRef(H);d!=="inline"&&(A.current=H);var _=X(X({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),D=l.useRef();return l.useEffect(function(){return D.current=cn(function(){P(n)}),function(){cn.cancel(D.current)}},[n]),l.createElement(vd,{prefixCls:t,popupClassName:re("".concat(t,"-popup"),Y({},"".concat(t,"-rtl"),y),i,w),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:T,popupPlacement:k,popupVisible:N,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:u?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:C,onPopupVisibleChange:m,forceRender:x,popupMotion:_,fresh:!0},r)}function iK(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=l.useContext(Ca),s=i.prefixCls,u=i.forceSubMenuRender,d=i.motion,m=i.defaultMotions,v=i.mode,p=l.useRef(!1);p.current=v===a;var y=l.useState(!p.current),h=ce(y,2),C=h[0],g=h[1],S=p.current?n:!1;l.useEffect(function(){p.current&&g(!1)},[v]);var x=X({},aM(a,d,m));r.length>1&&(x.motionAppear=!1);var w=x.onVisibleChanged;return x.onVisibleChanged=function(R){return!p.current&&!R&&g(!0),w==null?void 0:w(R)},C?null:l.createElement(Xu,{mode:a,locked:!p.current},l.createElement(Do,Me({visible:S},x,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(R){var $=R.className,O=R.style;return l.createElement(WC,{id:t,className:$,style:O},o)}))}var lK=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sK=["active"],cK=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,u=e.children,d=e.itemIcon,m=e.expandIcon,v=e.popupClassName,p=e.popupOffset,y=e.popupStyle,h=e.onClick,C=e.onMouseEnter,g=e.onMouseLeave,S=e.onTitleClick,x=e.onTitleMouseEnter,w=e.onTitleMouseLeave,R=jt(e,lK),$=QN(a),O=l.useContext(Ca),I=O.prefixCls,N=O.mode,P=O.openKeys,T=O.disabled,k=O.overflowDisabled,H=O.activeKey,A=O.selectedKeys,_=O.itemIcon,D=O.expandIcon,j=O.onItemClick,z=O.onOpenChange,F=O.onActive,W=l.useContext(BC),K=W._internalRenderSubMenuItem,B=l.useContext(eM),V=B.isSubPathKey,U=rc(),q="".concat(I,"-submenu"),G=T||i,Z=l.useRef(),ee=l.useRef(),J=d??_,oe=m??D,ae=P.includes(a),te=!k&&ae,ne=V(A,a),ie=nM(a,G,x,w),de=ie.active,ve=jt(ie,sK),se=l.useState(!1),he=ce(se,2),Se=he[0],je=he[1],Te=function(Fe){G||je(Fe)},Ce=function(Fe){Te(!0),C==null||C({key:a,domEvent:Fe})},xe=function(Fe){Te(!1),g==null||g({key:a,domEvent:Fe})},Ne=l.useMemo(function(){return de||(N!=="inline"?Se||V([H],a):!1)},[N,de,H,Se,a,V]),Ee=rM(U.length),Be=function(Fe){G||(S==null||S({key:a,domEvent:Fe}),N==="inline"&&z(a,!ae))},Ve=hu(function(Oe){h==null||h(Wm(Oe)),j(Oe)}),tt=function(Fe){N!=="inline"&&z(a,Fe)},nt=function(){F(a)},We=$&&"".concat($,"-popup"),Ze=l.useMemo(function(){return l.createElement(oM,{icon:N!=="horizontal"?oe:void 0,props:X(X({},e),{},{isOpen:te,isSubMenu:!0})},l.createElement("i",{className:"".concat(q,"-arrow")}))},[N,oe,e,te,q]),Le=l.createElement("div",Me({role:"menuitem",style:Ee,className:"".concat(q,"-title"),tabIndex:G?null:-1,ref:Z,title:typeof o=="string"?o:null,"data-menu-id":k&&$?null:$,"aria-expanded":te,"aria-haspopup":!0,"aria-controls":We,"aria-disabled":G,onClick:Be,onFocus:nt},ve),o,Ze),Re=l.useRef(N);if(N!=="inline"&&U.length>1?Re.current="vertical":Re.current=N,!k){var qe=Re.current;Le=l.createElement(aK,{mode:qe,prefixCls:q,visible:!s&&te&&N!=="inline",popupClassName:v,popupOffset:p,popupStyle:y,popup:l.createElement(Xu,{mode:qe==="horizontal"?"vertical":qe},l.createElement(WC,{id:We,ref:ee},u)),disabled:G,onVisibleChange:tt},Le)}var ye=l.createElement(ga.Item,Me({ref:t,role:"none"},R,{component:"li",style:n,className:re(q,"".concat(q,"-").concat(N),r,Y(Y(Y(Y({},"".concat(q,"-open"),te),"".concat(q,"-active"),Ne),"".concat(q,"-selected"),ne),"".concat(q,"-disabled"),G)),onMouseEnter:Ce,onMouseLeave:xe}),Le,!k&&l.createElement(iK,{id:We,open:te,keyPath:U},u));return K&&(ye=K(ye,e,{selected:ne,active:Ne,open:te,disabled:G})),l.createElement(Xu,{onItemClick:Ve,mode:N==="horizontal"?"vertical":N,itemIcon:J,expandIcon:oe},ye)}),ep=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=rc(n),a=KC(r,o),i=Zv();l.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var s;return i?s=a:s=l.createElement(cK,Me({ref:t},e),a),l.createElement(JN.Provider,{value:o},s)});function UC(e){var t=e.className,n=e.style,r=l.useContext(Ca),o=r.prefixCls,a=Zv();return a?null:l.createElement("li",{role:"separator",className:re("".concat(o,"-item-divider"),t),style:n})}var uK=["className","title","eventKey","children"],dK=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=jt(e,uK),i=l.useContext(Ca),s=i.prefixCls,u="".concat(s,"-item-group");return l.createElement("li",Me({ref:t,role:"presentation"},a,{onClick:function(m){return m.stopPropagation()},className:re(u,n)}),l.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))}),qC=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=rc(n),a=KC(r,o),i=Zv();return i?a:l.createElement(dK,Me({ref:t},Hn(e,["warnKey"])),a)}),fK=["label","children","key","type","extra"];function db(e,t,n){var r=t.item,o=t.group,a=t.submenu,i=t.divider;return(e||[]).map(function(s,u){if(s&&ht(s)==="object"){var d=s,m=d.label,v=d.children,p=d.key,y=d.type,h=d.extra,C=jt(d,fK),g=p??"tmp-".concat(u);return v||y==="group"?y==="group"?l.createElement(o,Me({key:g},C,{title:m}),db(v,t,n)):l.createElement(a,Me({key:g},C,{title:m}),db(v,t,n)):y==="divider"?l.createElement(i,Me({key:g},C)):l.createElement(r,Me({key:g},C,{extra:h}),m,(!!h||h===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function KE(e,t,n,r,o){var a=e,i=X({divider:UC,item:Jv,group:qC,submenu:ep},r);return t&&(a=db(t,i,o)),KC(a,n)}var mK=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ll=[],vK=l.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,u=r.className,d=r.tabIndex,m=d===void 0?0:d,v=r.items,p=r.children,y=r.direction,h=r.id,C=r.mode,g=C===void 0?"vertical":C,S=r.inlineCollapsed,x=r.disabled,w=r.disabledOverflow,R=r.subMenuOpenDelay,$=R===void 0?.1:R,O=r.subMenuCloseDelay,I=O===void 0?.1:O,N=r.forceSubMenuRender,P=r.defaultOpenKeys,T=r.openKeys,k=r.activeKey,H=r.defaultActiveFirst,A=r.selectable,_=A===void 0?!0:A,D=r.multiple,j=D===void 0?!1:D,z=r.defaultSelectedKeys,F=r.selectedKeys,W=r.onSelect,K=r.onDeselect,B=r.inlineIndent,V=B===void 0?24:B,U=r.motion,q=r.defaultMotions,G=r.triggerSubMenuAction,Z=G===void 0?"hover":G,ee=r.builtinPlacements,J=r.itemIcon,oe=r.expandIcon,ae=r.overflowedIndicator,te=ae===void 0?"...":ae,ne=r.overflowedIndicatorPopupClassName,ie=r.getPopupContainer,de=r.onClick,ve=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var he=r._internalRenderMenuItem,Se=r._internalRenderSubMenuItem,je=r._internalComponents,Te=jt(r,mK),Ce=l.useMemo(function(){return[KE(p,v,ll,je,a),KE(p,v,ll,{},a)]},[p,v,je]),xe=ce(Ce,2),Ne=xe[0],Ee=xe[1],Be=l.useState(!1),Ve=ce(Be,2),tt=Ve[0],nt=Ve[1],We=l.useRef(),Ze=UW(h),Le=y==="rtl",Re=Tn(P,{value:T,postState:function(Ot){return Ot||ll}}),qe=ce(Re,2),ye=qe[0],Oe=qe[1],Fe=function(Ot){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function un(){Oe(Ot),ve==null||ve(Ot)}$t?Zo.flushSync(un):un()},we=l.useState(ye),He=ce(we,2),ot=He[0],gt=He[1],yt=l.useRef(!1),Rt=l.useMemo(function(){return(g==="inline"||g==="vertical")&&S?["vertical",S]:[g,!1]},[g,S]),qt=ce(Rt,2),Wt=qt[0],It=qt[1],bt=Wt==="inline",mt=l.useState(Wt),ue=ce(mt,2),fe=ue[0],be=ue[1],De=l.useState(It),Pe=ce(De,2),ke=Pe[0],Qe=Pe[1];l.useEffect(function(){be(Wt),Qe(It),yt.current&&(bt?Oe(ot):Fe(ll))},[Wt,It]);var Ke=l.useState(0),Ye=ce(Ke,2),et=Ye[0],Je=Ye[1],Ge=et>=Ne.length-1||fe!=="horizontal"||w;l.useEffect(function(){bt&&gt(ye)},[ye]),l.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var rt=WW(),st=rt.registerPath,Nt=rt.unregisterPath,Lt=rt.refreshOverflowKeys,Bt=rt.isSubPathKey,Pt=rt.getKeyPath,rn=rt.getKeys,Jt=rt.getSubPathKeys,ct=l.useMemo(function(){return{registerPath:st,unregisterPath:Nt}},[st,Nt]),ut=l.useMemo(function(){return{isSubPathKey:Bt}},[Bt]);l.useEffect(function(){Lt(Ge?ll:Ne.slice(et+1).map(function(mn){return mn.key}))},[et,Ge]);var Tt=Tn(k||H&&((n=Ne[0])===null||n===void 0?void 0:n.key),{value:k}),Ct=ce(Tt,2),Yt=Ct[0],pn=Ct[1],On=hu(function(mn){pn(mn)}),Ut=hu(function(){pn(void 0)});l.useImperativeHandle(t,function(){return{list:We.current,focus:function(Ot){var $t,un=rn(),xt=cb(un,Ze),St=xt.elements,en=xt.key2element,_n=xt.element2key,An=HC(We.current,St),Zt=Yt??(An[0]?_n.get(An[0]):($t=Ne.find(function(vt){return!vt.props.disabled}))===null||$t===void 0?void 0:$t.key),Jn=en.get(Zt);if(Zt&&Jn){var sr;Jn==null||(sr=Jn.focus)===null||sr===void 0||sr.call(Jn,Ot)}}}});var wt=Tn(z||[],{value:F,postState:function(Ot){return Array.isArray(Ot)?Ot:Ot==null?ll:[Ot]}}),Mt=ce(wt,2),Kt=Mt[0],Cn=Mt[1],on=function(Ot){if(_){var $t=Ot.key,un=Kt.includes($t),xt;j?un?xt=Kt.filter(function(en){return en!==$t}):xt=[].concat(_e(Kt),[$t]):xt=[$t],Cn(xt);var St=X(X({},Ot),{},{selectedKeys:xt});un?K==null||K(St):W==null||W(St)}!j&&ye.length&&fe!=="inline"&&Fe(ll)},Pn=hu(function(mn){de==null||de(Wm(mn)),on(mn)}),ar=hu(function(mn,Ot){var $t=ye.filter(function(xt){return xt!==mn});if(Ot)$t.push(mn);else if(fe!=="inline"){var un=Jt(mn);$t=$t.filter(function(xt){return!un.has(xt)})}ya(ye,$t,!0)||Fe($t,!0)}),Yn=function(Ot,$t){var un=$t??!ye.includes(Ot);ar(Ot,un)},pr=BW(fe,Yt,Le,Ze,We,rn,Pt,pn,Yn,se);l.useEffect(function(){nt(!0)},[]);var Qn=l.useMemo(function(){return{_internalRenderMenuItem:he,_internalRenderSubMenuItem:Se}},[he,Se]),Wn=fe!=="horizontal"||w?Ne:Ne.map(function(mn,Ot){return l.createElement(Xu,{key:mn.key,overflowDisabled:Ot>et},mn)}),Zn=l.createElement(ga,Me({id:h,ref:We,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Jv,className:re(a,"".concat(a,"-root"),"".concat(a,"-").concat(fe),u,Y(Y({},"".concat(a,"-inline-collapsed"),ke),"".concat(a,"-rtl"),Le),i),dir:y,style:s,role:"menu",tabIndex:m,data:Wn,renderRawItem:function(Ot){return Ot},renderRawRest:function(Ot){var $t=Ot.length,un=$t?Ne.slice(-$t):null;return l.createElement(ep,{eventKey:ub,title:te,disabled:Ge,internalPopupClose:$t===0,popupClassName:ne},un)},maxCount:fe!=="horizontal"||w?ga.INVALIDATE:ga.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ot){Je(Ot)},onKeyDown:pr},Te));return l.createElement(BC.Provider,{value:Qn},l.createElement(GN.Provider,{value:Ze},l.createElement(Xu,{prefixCls:a,rootClassName:i,mode:fe,openKeys:ye,rtl:Le,disabled:x,motion:tt?U:null,defaultMotions:tt?q:null,activeKey:Yt,onActive:On,onInactive:Ut,selectedKeys:Kt,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:I,forceSubMenuRender:N,builtinPlacements:ee,triggerSubMenuAction:Z,getPopupContainer:ie,itemIcon:J,expandIcon:oe,onItemClick:Pn,onOpenChange:ar},l.createElement(eM.Provider,{value:ut},Zn),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(ZN.Provider,{value:ct},Ee)))))}),hd=vK;hd.Item=Jv;hd.SubMenu=ep;hd.ItemGroup=qC;hd.Divider=UC;var pK=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:C6}))},gK=l.forwardRef(pK);const iM=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),hK=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:i,headerColor:s,footerPadding:u,fontSize:d,bodyBg:m,headerBg:v}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{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:a,padding:i,color:s,lineHeight:le(a),background:v,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:d,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},lM=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:s,colorBgContainer:u}=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:`${a}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:u,lightTriggerBg:u,lightTriggerColor:o}},sM=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],cM=In("Layout",e=>[hK(e)],lM,{deprecatedTokens:sM}),yK=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:i,triggerColor:s,triggerBg:u,headerHeight:d,zeroTriggerWidth:m,zeroTriggerHeight:v,borderRadiusLG:p,lightSiderBg:y,lightTriggerColor:h,lightTriggerBg:C,bodyBg:g}=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,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:s,lineHeight:le(i),textAlign:"center",background:u,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:d,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:v,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${le(p)} ${le(p)} 0`,cursor:"pointer",transition:`background ${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(m).mul(-1).equal(),borderRadius:`${le(p)} 0 0 ${le(p)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:h,background:C},[`${t}-zero-width-trigger`]:{color:h,background:C,border:`1px solid ${g}`,borderInlineStart:0}}}}},bK=In(["Layout","Sider"],e=>[yK(e)],lM,{deprecatedTokens:sM});var CK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},SK=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),tp=l.createContext({}),xK=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),YC=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:m=!1,width:v=200,collapsedWidth:p=80,zeroWidthTriggerStyle:y,breakpoint:h,onCollapse:C,onBreakpoint:g}=e,S=CK(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=l.useContext(iM),[w,R]=l.useState("collapsed"in e?e.collapsed:i),[$,O]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const I=(J,oe)=>{"collapsed"in e||R(J),C==null||C(J,oe)},{getPrefixCls:N,direction:P}=l.useContext(Dt),T=N("layout-sider",n),[k,H,A]=bK(T),_=l.useRef(null);_.current=J=>{O(J.matches),g==null||g(J.matches),w!==J.matches&&I(J.matches,"responsive")},l.useEffect(()=>{function J(ae){var te;return(te=_.current)===null||te===void 0?void 0:te.call(_,ae)}let oe;return typeof(window==null?void 0:window.matchMedia)<"u"&&h&&h in UE&&(oe=window.matchMedia(`screen and (max-width: ${UE[h]})`),kN(oe,J),J(oe)),()=>{zN(oe,J)}},[h]),l.useEffect(()=>{const J=xK("ant-sider-");return x.addSider(J),()=>x.removeSider(J)},[]);const D=()=>{I(!w,"clickTrigger")},j=Hn(S,["collapsed"]),z=w?p:v,F=SK(z)?`${z}px`:String(z),W=parseFloat(String(p||0))===0?l.createElement("span",{onClick:D,className:re(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${m?"right":"left"}`),style:y},o||l.createElement(gK,null)):null,K=P==="rtl"==!m,U={expanded:K?l.createElement(zi,null):l.createElement(Bi,null),collapsed:K?l.createElement(Bi,null):l.createElement(zi,null)}[w?"collapsed":"expanded"],q=o!==null?W||l.createElement("div",{className:`${T}-trigger`,onClick:D,style:{width:F}},o||U):null,G=Object.assign(Object.assign({},u),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),Z=re(T,`${T}-${s}`,{[`${T}-collapsed`]:!!w,[`${T}-has-trigger`]:d&&o!==null&&!W,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(F)===0},r,H,A),ee=l.useMemo(()=>({siderCollapsed:w}),[w]);return k(l.createElement(tp.Provider,{value:ee},l.createElement("aside",Object.assign({className:Z},j,{style:G,ref:t}),l.createElement("div",{className:`${T}-children`},a),d||$&&W?q:null)))});var wK=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:H6}))},uM=l.forwardRef(wK);const Km=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var $K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dM=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=$K(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(Dt),i=a("menu",t),s=re({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(UC,Object.assign({className:s},o))},fM=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i,extra:s}=e,{prefixCls:u,firstLevel:d,direction:m,disableMenuItemTitleTooltip:v,inlineCollapsed:p}=l.useContext(Km),y=w=>{const R=r==null?void 0:r[0],$=l.createElement("span",{className:re(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!s||s===0})},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&w&&d&&typeof R=="string"?l.createElement("div",{className:`${u}-inline-collapsed-noicon`},R.charAt(0)):$},{siderCollapsed:h}=l.useContext(tp);let C=a;typeof a>"u"?C=d?r:"":a===!1&&(C="");const g={title:C};!h&&!p&&(g.title=null,g.open=!1);const S=po(r).length;let x=l.createElement(Jv,Object.assign({},Hn(e,["title","icon","danger"]),{className:re({[`${u}-item-danger`]:i,[`${u}-item-only-child`]:(o?S+1:S)===1},n),title:typeof a=="string"?a:void 0}),Fr(o,{className:re(l.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${u}-item-icon`)}),y(p));return v||(x=l.createElement(Ai,Object.assign({},g,{placement:m==="rtl"?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),x)),x};var EK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Um=l.createContext(null),mM=l.forwardRef((e,t)=>{const{children:n}=e,r=EK(e,["children"]),o=l.useContext(Um),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Gz(n),s=Wi(t,i?Ki(n):null);return l.createElement(Um.Provider,{value:a},l.createElement(Ol,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),OK=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${le(a)} ${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:s},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},RK=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${le(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${le(t)})`}}}}),qE=e=>Object.assign({},ki(e)),YE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:s,subMenuItemBg:u,itemSelectedBg:d,activeBarHeight:m,activeBarWidth:v,activeBarBorderWidth:p,motionDurationSlow:y,motionEaseInOut:h,motionEaseOut:C,itemPaddingInline:g,motionDurationMid:S,itemHoverColor:x,lineType:w,colorSplit:R,itemDisabledColor:$,dangerItemColor:O,dangerItemHoverColor:I,dangerItemSelectedColor:N,dangerItemActiveBg:P,dangerItemSelectedBg:T,popupBg:k,itemHoverBg:H,itemActiveBg:A,menuSubMenuBg:_,horizontalItemSelectedColor:D,horizontalItemSelectedBg:j,horizontalItemBorderRadius:z,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},qE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},qE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:x}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:H},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:O,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:I}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:N},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${le(m)} solid transparent`,transition:`border-color ${y} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:m,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:m,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${le(p)} ${w} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:u},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${le(v)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${C}`,`opacity ${S} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${h}`,`opacity ${S} ${h}`].join(",")}}}}}},GE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:u,itemPaddingInline:d}=e,m=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:le(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:u},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:le(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:m}}},IK=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionEaseOut:s,paddingXL:u,itemMarginInline:d,fontSizeLG:m,motionDurationFast:v,motionDurationSlow:p,paddingXS:y,boxShadowSecondary:h,collapsedWidth:C,collapsedIconSize:g}=e,S={height:r,lineHeight:le(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},GE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},GE(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${le(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 ${p}`,`background ${p}`,`padding ${v} ${s}`].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`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:C,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${le(e.calc(g).div(2).equal())} - ${le(d)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:le(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Da),{paddingInline:y})}}]},XE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:u}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:u,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ld()),[`&${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"}}}},QE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${le(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${le(i)})`}}}}},PK=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:u,colorSplit:d,lineWidth:m,zIndexPopup:v,borderRadiusLG:p,subMenuItemBorderRadius:y,menuArrowSize:h,menuArrowOffset:C,lineType:g,groupTitleLineHeight:S,groupTitleFontSize:x}=e;return[{"":{[n]:Object.assign(Object.assign({},wl()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kn(e)),wl()),{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:`${le(s)} ${le(u)}`,fontSize:x,lineHeight:S,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:g,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),XE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${le(e.calc(r).mul(2).equal())} ${le(u)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},XE(e)),QE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),QE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le(C)})`},"&::after":{transform:`rotate(45deg) translateX(${le(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${le(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${le(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${le(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},NK=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:u,colorTextDescription:d,colorBgContainer:m,colorFillAlter:v,colorFillContent:p,lineWidth:y,lineWidthBold:h,controlItemBgActive:C,colorBgTextHover:g,controlHeightLG:S,lineHeight:x,colorBgElevated:w,marginXXS:R,padding:$,fontSize:O,controlHeightSM:I,fontSizeLG:N,colorTextLightSolid:P,colorErrorHover:T}=e,k=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,H=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new tn(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:u,itemColor:u,colorItemTextHover:u,itemHoverColor:u,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:m,itemBg:m,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:p,itemActiveBg:C,colorSubItemBg:v,subMenuItemBg:v,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:y,activeBarBorderWidth:H,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:x,collapsedWidth:S*2,popupBg:w,itemMarginBlock:R,itemPaddingInline:$,horizontalLineHeight:`${S*1.15}px`,iconSize:O,iconMarginInlineEnd:I-O,collapsedIconSize:N,groupTitleFontSize:O,darkItemDisabledColor:new tn(P).setA(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:P,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:a,itemWidth:k?`calc(100% + ${H}px)`:`calc(100% - ${A*2}px)`}},MK=(e,t=e,n=!0)=>In("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:u,darkDangerItemColor:d,darkItemBg:m,darkSubMenuItemBg:v,darkItemSelectedColor:p,darkItemSelectedBg:y,darkDangerItemSelectedBg:h,darkItemHoverBg:C,darkGroupTitleColor:g,darkItemHoverColor:S,darkItemDisabledColor:x,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:$,popupBg:O,darkPopupBg:I}=o,N=o.calc(s).div(7).mul(5).equal(),P=nn(o,{menuArrowSize:N,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(N).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:O}),T=nn(P,{itemColor:u,itemHoverColor:S,groupTitleColor:g,itemSelectedColor:p,subMenuItemSelectedColor:p,itemBg:m,popupBg:I,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:x,dangerItemColor:d,dangerItemHoverColor:w,dangerItemSelectedColor:R,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:v,horizontalItemSelectedColor:p,horizontalItemSelectedBg:y});return[PK(P),OK(P),IK(P),YE(P,"light"),YE(T,"dark"),RK(P),Nv(P),Li(P,"slide-up"),Li(P,"slide-down"),Zs(P,"zoom-big")]},NK,{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),vM=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=l.useContext(Km),{prefixCls:s,inlineCollapsed:u,theme:d}=i,m=rc();let v;if(!r)v=u&&!m.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const h=l.isValidElement(o)&&o.type==="span";v=l.createElement(l.Fragment,null,Fr(r,{className:re(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:l.createElement("span",{className:`${s}-title-content`},o))}const p=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[y]=ti("Menu");return l.createElement(Km.Provider,{value:p},l.createElement(ep,Object.assign({},Hn(e,["icon"]),{title:v,popupClassName:re(s,n,`${s}-${a||d}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var TK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Jh(e){return e===null||e===!1}const _K={item:fM,submenu:vM,divider:dM},DK=l.forwardRef((e,t)=>{var n;const r=l.useContext(Um),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:u}=l.useContext(Dt),d=a(),{prefixCls:m,className:v,style:p,theme:y="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:g,siderCollapsed:S,rootClassName:x,mode:w,selectable:R,onClick:$,overflowedIndicatorPopupClassName:O}=e,I=TK(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=Hn(I,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:w});const P=ln((...V)=>{var U;$==null||$.apply(void 0,V),(U=o.onClick)===null||U===void 0||U.call(o)}),T=o.mode||w,k=R??o.selectable,H=g??S,A={horizontal:{motionName:`${d}-slide-up`},inline:Ku(d),other:{motionName:`${d}-zoom-big`}},_=a("menu",m||o.prefixCls),D=vr(_),[j,z,F]=MK(_,D,!r),W=re(`${_}-${y}`,u==null?void 0:u.className,v),K=l.useMemo(()=>{var V,U;if(typeof h=="function"||Jh(h))return h||null;if(typeof o.expandIcon=="function"||Jh(o.expandIcon))return o.expandIcon||null;if(typeof(u==null?void 0:u.expandIcon)=="function"||Jh(u==null?void 0:u.expandIcon))return(u==null?void 0:u.expandIcon)||null;const q=(V=h??(o==null?void 0:o.expandIcon))!==null&&V!==void 0?V:u==null?void 0:u.expandIcon;return Fr(q,{className:re(`${_}-submenu-expand-icon`,l.isValidElement(q)?(U=q.props)===null||U===void 0?void 0:U.className:void 0)})},[h,o==null?void 0:o.expandIcon,u==null?void 0:u.expandIcon,_]),B=l.useMemo(()=>({prefixCls:_,inlineCollapsed:H||!1,direction:s,firstLevel:!0,theme:y,mode:T,disableMenuItemTitleTooltip:C}),[_,H,s,C,y]);return j(l.createElement(Um.Provider,{value:null},l.createElement(Km.Provider,{value:B},l.createElement(hd,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(uM,null),overflowedIndicatorPopupClassName:re(_,`${_}-${y}`,O),mode:T,selectable:k,onClick:P},N,{inlineCollapsed:H,style:Object.assign(Object.assign({},u==null?void 0:u.style),p),className:W,prefixCls:_,direction:s,defaultMotions:A,expandIcon:K,ref:t,rootClassName:re(x,z,o.rootClassName,F,D),_internalComponents:_K})))))}),kl=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(tp);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),l.createElement(DK,Object.assign({ref:n},e,r))});kl.Item=fM;kl.SubMenu=vM;kl.Divider=dM;kl.ItemGroup=qC;const jK=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},kK=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:u,paddingBlock:d,fontSize:m,dropdownEdgeChildPadding:v,colorTextDisabled:p,fontSizeIcon:y,controlPaddingHorizontal:h,colorBgElevated:C}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:y},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Tv},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Dv},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:_v},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:jv}}},AC(e,C,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},kn(e)),{[n]:Object.assign(Object.assign({padding:v,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ls(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${le(d)} ${le(h)}`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${le(d)} ${le(h)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ls(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${le(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 ${le(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Li(e,"slide-up"),Li(e,"slide-down"),Fs(e,"move-up"),Fs(e,"move-down"),Zs(e,"zoom-big")]]},zK=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Qv({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Xv(e)),LK=In("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=nn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[kK(a),jK(a)]},zK,{resetStyle:!1}),np=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:a,trigger:i,disabled:s,dropdownRender:u,popupRender:d,getPopupContainer:m,overlayClassName:v,rootClassName:p,overlayStyle:y,open:h,onOpenChange:C,visible:g,onVisibleChange:S,mouseEnterDelay:x=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:R=!0,placement:$="",overlay:O,transitionName:I,destroyOnHidden:N,destroyPopupOnHide:P}=e,{getPopupContainer:T,getPrefixCls:k,direction:H,dropdown:A}=l.useContext(Dt),_=d||u;Ui();const D=l.useMemo(()=>{const he=k();return I!==void 0?I:$.includes("top")?`${he}-slide-down`:`${he}-slide-up`},[k,$,I]),j=l.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:H==="rtl"?"bottomRight":"bottomLeft",[$,H]),z=k("dropdown",o),F=vr(z),[W,K,B]=LK(z,F),[,V]=_r(),U=l.Children.only(_W(a)?l.createElement("span",null,a):a),q=Fr(U,{className:re(`${z}-trigger`,{[`${z}-rtl`]:H==="rtl"},U.props.className),disabled:(t=U.props.disabled)!==null&&t!==void 0?t:s}),G=s?[]:i,Z=!!(G!=null&&G.includes("contextMenu")),[ee,J]=Tn(!1,{value:h??g}),oe=ln(he=>{C==null||C(he,{source:"trigger"}),S==null||S(he),J(he)}),ae=re(v,p,K,B,F,A==null?void 0:A.className,{[`${z}-rtl`]:H==="rtl"}),te=BN({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:R,offset:V.marginXXS,arrowWidth:r?V.sizePopupArrow:0,borderRadius:V.borderRadius}),ne=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(C==null||C(!1,{source:"menu"}),J(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ie=()=>{let he;return n!=null&&n.items?he=l.createElement(kl,Object.assign({},n)):typeof O=="function"?he=O():he=O,_&&(he=_(he)),he=l.Children.only(typeof he=="string"?l.createElement("span",null,he):he),l.createElement(mM,{prefixCls:`${z}-menu`,rootClassName:re(B,F),expandIcon:l.createElement("span",{className:`${z}-menu-submenu-arrow`},H==="rtl"?l.createElement(Bi,{className:`${z}-menu-submenu-arrow-icon`}):l.createElement(zi,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:({mode:Se})=>{}},he)},[de,ve]=ti("Dropdown",y==null?void 0:y.zIndex);let se=l.createElement(TW,Object.assign({alignPoint:Z},Hn(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:w,visible:ee,builtinPlacements:te,arrow:!!r,overlayClassName:ae,prefixCls:z,getPopupContainer:m||T,transitionName:D,trigger:G,overlay:ie,placement:j,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),y),{zIndex:de}),autoDestroy:N??P}),q);return de&&(se=l.createElement(Ev.Provider,{value:ve},se)),W(se)},FK=qv(np,"align",void 0,"dropdown",e=>e),AK=e=>l.createElement(FK,Object.assign({},e),l.createElement("span",null));np._InternalPanelDoNotUseOrYouWillBeFired=AK;var gm={exports:{}},BK=gm.exports,ZE;function HK(){return ZE||(ZE=1,function(e,t){(function(n,r){e.exports=r()})(BK,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",m="week",v="month",p="quarter",y="year",h="date",C="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var D=["th","st","nd","rd"],j=_%100;return"["+_+(D[(j-20)%10]||D[j]||D[0])+"]"}},w=function(_,D,j){var z=String(_);return!z||z.length>=D?_:""+Array(D+1-z.length).join(j)+_},R={s:w,z:function(_){var D=-_.utcOffset(),j=Math.abs(D),z=Math.floor(j/60),F=j%60;return(D<=0?"+":"-")+w(z,2,"0")+":"+w(F,2,"0")},m:function _(D,j){if(D.date()<j.date())return-_(j,D);var z=12*(j.year()-D.year())+(j.month()-D.month()),F=D.clone().add(z,v),W=j-F<0,K=D.clone().add(z+(W?-1:1),v);return+(-(z+(j-F)/(W?F-K:K-F))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:v,y,w:m,d,D:h,h:u,m:s,s:i,ms:a,Q:p}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},$="en",O={};O[$]=x;var I="$isDayjsObject",N=function(_){return _ instanceof H||!(!_||!_[I])},P=function _(D,j,z){var F;if(!D)return $;if(typeof D=="string"){var W=D.toLowerCase();O[W]&&(F=W),j&&(O[W]=j,F=W);var K=D.split("-");if(!F&&K.length>1)return _(K[0])}else{var B=D.name;O[B]=D,F=B}return!z&&F&&($=F),F||!z&&$},T=function(_,D){if(N(_))return _.clone();var j=typeof D=="object"?D:{};return j.date=_,j.args=arguments,new H(j)},k=R;k.l=P,k.i=N,k.w=function(_,D){return T(_,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var H=function(){function _(j){this.$L=P(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[I]=!0}var D=_.prototype;return D.parse=function(j){this.$d=function(z){var F=z.date,W=z.utc;if(F===null)return new Date(NaN);if(k.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var K=F.match(g);if(K){var B=K[2]-1||0,V=(K[7]||"0").substring(0,3);return W?new Date(Date.UTC(K[1],B,K[3]||1,K[4]||0,K[5]||0,K[6]||0,V)):new Date(K[1],B,K[3]||1,K[4]||0,K[5]||0,K[6]||0,V)}}return new Date(F)}(j),this.init()},D.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},D.$utils=function(){return k},D.isValid=function(){return this.$d.toString()!==C},D.isSame=function(j,z){var F=T(j);return this.startOf(z)<=F&&F<=this.endOf(z)},D.isAfter=function(j,z){return T(j)<this.startOf(z)},D.isBefore=function(j,z){return this.endOf(z)<T(j)},D.$g=function(j,z,F){return k.u(j)?this[z]:this.set(F,j)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(j,z){var F=this,W=!!k.u(z)||z,K=k.p(j),B=function(oe,ae){var te=k.w(F.$u?Date.UTC(F.$y,ae,oe):new Date(F.$y,ae,oe),F);return W?te:te.endOf(d)},V=function(oe,ae){return k.w(F.toDate()[oe].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},U=this.$W,q=this.$M,G=this.$D,Z="set"+(this.$u?"UTC":"");switch(K){case y:return W?B(1,0):B(31,11);case v:return W?B(1,q):B(0,q+1);case m:var ee=this.$locale().weekStart||0,J=(U<ee?U+7:U)-ee;return B(W?G-J:G+(6-J),q);case d:case h:return V(Z+"Hours",0);case u:return V(Z+"Minutes",1);case s:return V(Z+"Seconds",2);case i:return V(Z+"Milliseconds",3);default:return this.clone()}},D.endOf=function(j){return this.startOf(j,!1)},D.$set=function(j,z){var F,W=k.p(j),K="set"+(this.$u?"UTC":""),B=(F={},F[d]=K+"Date",F[h]=K+"Date",F[v]=K+"Month",F[y]=K+"FullYear",F[u]=K+"Hours",F[s]=K+"Minutes",F[i]=K+"Seconds",F[a]=K+"Milliseconds",F)[W],V=W===d?this.$D+(z-this.$W):z;if(W===v||W===y){var U=this.clone().set(h,1);U.$d[B](V),U.init(),this.$d=U.set(h,Math.min(this.$D,U.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},D.set=function(j,z){return this.clone().$set(j,z)},D.get=function(j){return this[k.p(j)]()},D.add=function(j,z){var F,W=this;j=Number(j);var K=k.p(z),B=function(q){var G=T(W);return k.w(G.date(G.date()+Math.round(q*j)),W)};if(K===v)return this.set(v,this.$M+j);if(K===y)return this.set(y,this.$y+j);if(K===d)return B(1);if(K===m)return B(7);var V=(F={},F[s]=r,F[u]=o,F[i]=n,F)[K]||1,U=this.$d.getTime()+j*V;return k.w(U,this)},D.subtract=function(j,z){return this.add(-1*j,z)},D.format=function(j){var z=this,F=this.$locale();if(!this.isValid())return F.invalidDate||C;var W=j||"YYYY-MM-DDTHH:mm:ssZ",K=k.z(this),B=this.$H,V=this.$m,U=this.$M,q=F.weekdays,G=F.months,Z=F.meridiem,ee=function(ae,te,ne,ie){return ae&&(ae[te]||ae(z,W))||ne[te].slice(0,ie)},J=function(ae){return k.s(B%12||12,ae,"0")},oe=Z||function(ae,te,ne){var ie=ae<12?"AM":"PM";return ne?ie.toLowerCase():ie};return W.replace(S,function(ae,te){return te||function(ne){switch(ne){case"YY":return String(z.$y).slice(-2);case"YYYY":return k.s(z.$y,4,"0");case"M":return U+1;case"MM":return k.s(U+1,2,"0");case"MMM":return ee(F.monthsShort,U,G,3);case"MMMM":return ee(G,U);case"D":return z.$D;case"DD":return k.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return ee(F.weekdaysMin,z.$W,q,2);case"ddd":return ee(F.weekdaysShort,z.$W,q,3);case"dddd":return q[z.$W];case"H":return String(B);case"HH":return k.s(B,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return oe(B,V,!0);case"A":return oe(B,V,!1);case"m":return String(V);case"mm":return k.s(V,2,"0");case"s":return String(z.$s);case"ss":return k.s(z.$s,2,"0");case"SSS":return k.s(z.$ms,3,"0");case"Z":return K}return null}(ae)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(j,z,F){var W,K=this,B=k.p(z),V=T(j),U=(V.utcOffset()-this.utcOffset())*r,q=this-V,G=function(){return k.m(K,V)};switch(B){case y:W=G()/12;break;case v:W=G();break;case p:W=G()/3;break;case m:W=(q-U)/6048e5;break;case d:W=(q-U)/864e5;break;case u:W=q/o;break;case s:W=q/r;break;case i:W=q/n;break;default:W=q}return F?W:k.a(W)},D.daysInMonth=function(){return this.endOf(v).$D},D.$locale=function(){return O[this.$L]},D.locale=function(j,z){if(!j)return this.$L;var F=this.clone(),W=P(j,z,!0);return W&&(F.$L=W),F},D.clone=function(){return k.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},_}(),A=H.prototype;return T.prototype=A,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",v],["$y",y],["$D",h]].forEach(function(_){A[_[1]]=function(D){return this.$g(D,_[0],_[1])}}),T.extend=function(_,D){return _.$i||(_(D,H,T),_.$i=!0),T},T.locale=P,T.isDayjs=N,T.unix=function(_){return T(1e3*_)},T.en=O[$],T.Ls=O,T.p={},T})}(gm)),gm.exports}var VK=HK();const bn=Mo(VK);var hm={exports:{}},WK=hm.exports,JE;function KK(){return JE||(JE=1,function(e,t){(function(n,r){e.exports=r()})(WK,function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,s=(i<a?i+7:i)-a;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}})}(hm)),hm.exports}var UK=KK();const qK=Mo(UK);var ym={exports:{}},YK=ym.exports,e2;function GK(){return e2||(e2=1,function(e,t){(function(n,r){e.exports=r()})(YK,function(){return function(n,r,o){var a=r.prototype,i=function(v){return v&&(v.indexOf?v:v.s)},s=function(v,p,y,h,C){var g=v.name?v:v.$locale(),S=i(g[p]),x=i(g[y]),w=S||x.map(function($){return $.slice(0,h)});if(!C)return w;var R=g.weekStart;return w.map(function($,O){return w[(O+(R||0))%7]})},u=function(){return o.Ls[o.locale()]},d=function(v,p){return v.formats[p]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,C,g){return C||g.slice(1)})}(v.formats[p.toUpperCase()])},m=function(){var v=this;return{months:function(p){return p?p.format("MMMM"):s(v,"months")},monthsShort:function(p){return p?p.format("MMM"):s(v,"monthsShort","months",3)},firstDayOfWeek:function(){return v.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(v,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(v,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(v,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(v.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return m.bind(this)()},o.localeData=function(){var v=u();return{firstDayOfWeek:function(){return v.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return d(v,p)},meridiem:v.meridiem,ordinal:v.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(v){return s(u(),"weekdays",null,null,v)},o.weekdaysShort=function(v){return s(u(),"weekdaysShort","weekdays",3,v)},o.weekdaysMin=function(v){return s(u(),"weekdaysMin","weekdays",2,v)}}})}(ym)),ym.exports}var XK=GK();const QK=Mo(XK);var bm={exports:{}},ZK=bm.exports,t2;function JK(){return t2||(t2=1,function(e,t){(function(n,r){e.exports=r()})(ZK,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=i(this).startOf(r).add(1,r).date(d),v=i(this).endOf(n);if(m.isBefore(v))return 1}var p=i(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),y=this.diff(p,n,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})}(bm)),bm.exports}var eU=JK();const tU=Mo(eU);var Cm={exports:{}},nU=Cm.exports,n2;function rU(){return n2||(n2=1,function(e,t){(function(n,r){e.exports=r()})(nU,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})}(Cm)),Cm.exports}var oU=rU();const aU=Mo(oU);var Sm={exports:{}},iU=Sm.exports,r2;function lU(){return r2||(r2=1,function(e,t){(function(n,r){e.exports=r()})(iU,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var s=this,u=this.$locale();if(!this.isValid())return a.bind(this)(i);var d=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return u.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return u.ordinal(s.week(),"W");case"w":case"ww":return d.s(s.week(),v==="w"?1:2,"0");case"W":case"WW":return d.s(s.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return d.s(String(s.$H===0?24:s.$H),v==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return v}});return a.bind(this)(m)}}})}(Sm)),Sm.exports}var sU=lU();const cU=Mo(sU);var xm={exports:{}},uU=xm.exports,o2;function dU(){return o2||(o2=1,function(e,t){(function(n,r){e.exports=r()})(uU,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},d=function(g){return(g=+g)+(g>68?1900:2e3)},m=function(g){return function(S){this[g]=+S}},v=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var x=S.match(/([+-]|\d\d)/g),w=60*x[1]+(+x[2]||0);return w===0?0:x[0]==="+"?-w:w}(g)}],p=function(g){var S=u[g];return S&&(S.indexOf?S:S.s.concat(S.f))},y=function(g,S){var x,w=u.meridiem;if(w){for(var R=1;R<=24;R+=1)if(g.indexOf(w(R,0,S))>-1){x=R>12;break}}else x=g===(S?"pm":"PM");return x},h={A:[s,function(g){this.afternoon=y(g,!1)}],a:[s,function(g){this.afternoon=y(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,m("seconds")],ss:[i,m("seconds")],m:[i,m("minutes")],mm:[i,m("minutes")],H:[i,m("hours")],h:[i,m("hours")],HH:[i,m("hours")],hh:[i,m("hours")],D:[i,m("day")],DD:[a,m("day")],Do:[s,function(g){var S=u.ordinal,x=g.match(/\d+/);if(this.day=x[0],S)for(var w=1;w<=31;w+=1)S(w).replace(/\[|\]/g,"")===g&&(this.day=w)}],w:[i,m("week")],ww:[a,m("week")],M:[i,m("month")],MM:[a,m("month")],MMM:[s,function(g){var S=p("months"),x=(p("monthsShort")||S.map(function(w){return w.slice(0,3)})).indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(g){var S=p("months").indexOf(g)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(g){this.year=d(g)}],YYYY:[/\d{4}/,m("year")],Z:v,ZZ:v};function C(g){var S,x;S=g,x=u&&u.formats;for(var w=(g=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,k,H){var A=H&&H.toUpperCase();return k||x[H]||n[H]||x[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,D,j){return D||j.slice(1)})})).match(r),R=w.length,$=0;$<R;$+=1){var O=w[$],I=h[O],N=I&&I[0],P=I&&I[1];w[$]=P?{regex:N,parser:P}:O.replace(/^\[|\]$/g,"")}return function(T){for(var k={},H=0,A=0;H<R;H+=1){var _=w[H];if(typeof _=="string")A+=_.length;else{var D=_.regex,j=_.parser,z=T.slice(A),F=D.exec(z)[0];j.call(k,F),T=T.replace(F,"")}}return function(W){var K=W.afternoon;if(K!==void 0){var B=W.hours;K?B<12&&(W.hours+=12):B===12&&(W.hours=0),delete W.afternoon}}(k),k}}return function(g,S,x){x.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(d=g.parseTwoDigitYear);var w=S.prototype,R=w.parse;w.parse=function($){var O=$.date,I=$.utc,N=$.args;this.$u=I;var P=N[1];if(typeof P=="string"){var T=N[2]===!0,k=N[3]===!0,H=T||k,A=N[2];k&&(A=N[2]),u=this.$locale(),!T&&A&&(u=x.Ls[A]),this.$d=function(z,F,W,K){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*z);var B=C(F)(z),V=B.year,U=B.month,q=B.day,G=B.hours,Z=B.minutes,ee=B.seconds,J=B.milliseconds,oe=B.zone,ae=B.week,te=new Date,ne=q||(V||U?1:te.getDate()),ie=V||te.getFullYear(),de=0;V&&!U||(de=U>0?U-1:te.getMonth());var ve,se=G||0,he=Z||0,Se=ee||0,je=J||0;return oe?new Date(Date.UTC(ie,de,ne,se,he,Se,je+60*oe.offset*1e3)):W?new Date(Date.UTC(ie,de,ne,se,he,Se,je)):(ve=new Date(ie,de,ne,se,he,Se,je),ae&&(ve=K(ve).week(ae).toDate()),ve)}catch{return new Date("")}}(O,P,I,x),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),H&&O!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var _=P.length,D=1;D<=_;D+=1){N[1]=P[D-1];var j=x.apply(this,N);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}D===_&&(this.$d=new Date(""))}else R.call(this,$)}}})}(xm)),xm.exports}var fU=dU();const mU=Mo(fU);bn.extend(mU);bn.extend(cU);bn.extend(qK);bn.extend(QK);bn.extend(tU);bn.extend(aU);bn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});var vU={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},sl=function(t){var n=vU[t];return n||t.split("_")[0]},pU={getNow:function(){var t=bn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return bn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return bn().locale(sl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(sl(t)).weekday(0)},getWeek:function(t,n){return n.locale(sl(t)).week()},getShortWeekDays:function(t){return bn().locale(sl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return bn().locale(sl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(sl(t)).format(r)},parse:function(t,n,r){for(var o=sl(t),a=0;a<r.length;a+=1){var i=r[a],s=n;if(i.includes("wo")||i.includes("Wo")){for(var u=s.split("-")[0],d=s.split("-")[1],m=bn(u,"YYYY").startOf("year").locale(o),v=0;v<=52;v+=1){var p=m.add(v,"week");if(p.format("Wo")===d)return p}return null}var y=bn(s,i,!0).locale(o);if(y.isValid())return y}return null}}};function gU(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var wa=l.createContext(null),hU={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function pM(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,s=e.children,u=e.range,d=e.placement,m=e.builtinPlacements,v=m===void 0?hU:m,p=e.direction,y=e.visible,h=e.onClose,C=l.useContext(wa),g=C.prefixCls,S="".concat(g,"-dropdown"),x=gU(d,p==="rtl");return l.createElement(vd,{showAction:[],hideAction:["click"],popupPlacement:x,builtinPlacements:v,prefixCls:S,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:y,popupClassName:re(r,Y(Y({},"".concat(S,"-range"),u),"".concat(S,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(R){R||h()}},s)}function GC(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function zl(e){return e==null?[]:Array.isArray(e)?e:[e]}function Iu(e,t,n){var r=_e(e);return r[t]=n,r}function rp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function gM(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function hM(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function yM(e){return rp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function XC(e,t,n,r){var o=l.useMemo(function(){return e||function(i,s){var u=i;return t&&s.type==="date"?t(u,s.today):n&&s.type==="month"?n(u,s.locale):s.originNode}},[e,n,t]),a=l.useCallback(function(i,s){return o(i,X(X({},s),{},{range:r}))},[o,r]);return a}function bM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),o=ce(r,2),a=o[0],i=o[1],s=function(m,v){i(function(p){return Iu(p,v,m)})},u=l.useMemo(function(){return a.map(function(d,m){if(d)return!0;var v=e[m];return v?!!(!n[m]&&!v||v&&t(v,{activeIndex:m})):!1})},[e,a,t,n]);return[u,s]}function CM(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function yU(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,u=e.fieldTimeFormat,d=e.fieldMonthFormat,m=e.fieldYearFormat,v=e.fieldWeekFormat,p=e.fieldQuarterFormat,y=e.yearFormat,h=e.cellYearFormat,C=e.cellQuarterFormat,g=e.dayFormat,S=e.cellDateFormat,x=CM(t,n,r,o,a);return X(X({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(x),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:u||x,fieldMonthFormat:d||"YYYY-MM",fieldYearFormat:m||"YYYY",fieldWeekFormat:v||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:y||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:C||"[Q]Q",cellDateFormat:S||g||"D"})}function SM(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return pe.useMemo(function(){return yU(e,n,r,o,a,i)},[e,n,r,o,a,i])}function nu(e,t,n){return n??t.some(function(r){return e.includes(r)})}var bU=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function CU(e){var t=rp(e,bU),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=ht(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function SU(e){return e&&typeof e=="string"}function xM(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function wM(e,t,n,r,o){var a=t,i=n,s=r;if(!e&&!a&&!i&&!s&&!o)a=!0,i=!0,s=!0;else if(e){var u,d,m,v=[a,i,s].some(function(h){return h===!1}),p=[a,i,s].some(function(h){return h===!0}),y=v?!0:!p;a=(u=a)!==null&&u!==void 0?u:y,i=(d=i)!==null&&d!==void 0?d:y,s=(m=s)!==null&&m!==void 0?m:y}return[a,i,s,o]}function $M(e){var t=e.showTime,n=CU(e),r=ce(n,2),o=r[0],a=r[1],i=t&&ht(t)==="object"?t:{},s=X(X({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),u=s.showMillisecond,d=s.showHour,m=s.showMinute,v=s.showSecond,p=xM(d,m,v,u),y=wM(p,d,m,v,u),h=ce(y,3);return d=h[0],m=h[1],v=h[2],[s,X(X({},s),{},{showHour:d,showMinute:m,showSecond:v,showMillisecond:u}),s.format,a]}function EM(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,s=gM(e,o,null),u=s,d=[t,n],m=0;m<d.length;m+=1){var v=zl(d[m])[0];if(SU(v)){u=v;break}}var p=i.showHour,y=i.showMinute,h=i.showSecond,C=i.showMillisecond,g=i.use12Hours,S=nu(u,["a","A","LT","LLL","LTS"],g),x=xM(p,y,h,C);x||(p=nu(u,["H","h","k","LT","LLL"]),y=nu(u,["m","LT","LLL"]),h=nu(u,["s","LTS"]),C=nu(u,["SSS"]));var w=wM(x,p,y,h,C),R=ce(w,3);p=R[0],y=R[1],h=R[2];var $=t||CM(p,y,h,C,S);return X(X({},i),{},{format:$,showHour:p,showMinute:y,showSecond:h,showMillisecond:C,use12Hours:S})}return null}function xU(e,t,n){if(t===!1)return null;var r=t&&ht(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var e0=7;function Yi(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function fb(e,t,n){return Yi(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function Rl(e,t,n){return Yi(t,n,function(){return e.getYear(t)===e.getYear(n)})}function a2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function wU(e,t,n){return Yi(t,n,function(){return Rl(e,t,n)&&a2(e,t)===a2(e,n)})}function QC(e,t,n){return Yi(t,n,function(){return Rl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function ZC(e,t,n){return Yi(t,n,function(){return Rl(e,t,n)&&QC(e,t,n)&&e.getDate(t)===e.getDate(n)})}function OM(e,t,n){return Yi(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function RM(e,t,n){return Yi(t,n,function(){return ZC(e,t,n)&&OM(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function yu(e,t,n,r){return Yi(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return Rl(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Gr(e,t,n,r,o){switch(o){case"date":return ZC(e,n,r);case"week":return yu(e,t.locale,n,r);case"month":return QC(e,n,r);case"quarter":return wU(e,n,r);case"year":return Rl(e,n,r);case"decade":return fb(e,n,r);case"time":return OM(e,n,r);default:return RM(e,n,r)}}function op(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Af(e,t,n,r,o){return Gr(e,t,n,r,o)?!0:e.isAfter(n,r)}function $U(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function xr(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function qm(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,s){n?r=e[i](r,e[o[s]](n)):r=e[i](r,0)}),r}function EU(e,t,n,r,o){var a=ln(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!Gr(e,t,r,i,s.type)||o&&e.isAfter(i,o)&&!Gr(e,t,o,i,s.type))});return a}function OU(e,t,n){return l.useMemo(function(){var r=gM(e,t,n),o=zl(r),a=o[0],i=ht(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function RU(e,t,n){return typeof e[0]=="function"||n?!0:t}function IU(e,t,n,r){var o=ln(function(a,i){var s=X({type:t},i);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var u,d=i&&i.activeIndex===1?"end":"start",m=((u=r.disabledTime)===null||u===void 0?void 0:u.call(r,a,d,{from:s.from}))||{},v=m.disabledHours,p=m.disabledMinutes,y=m.disabledSeconds,h=m.disabledMilliseconds,C=r.disabledHours,g=r.disabledMinutes,S=r.disabledSeconds,x=v||C,w=p||g,R=y||S,$=e.getHour(a),O=e.getMinute(a),I=e.getSecond(a),N=e.getMillisecond(a);if(x&&x().includes($)||w&&w($).includes(O)||R&&R($,O).includes(I)||h&&h($,O,I).includes(N))return!0}return!1});return o}function Bf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&zl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function IM(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,s=i===void 0?"rc-picker":i,u=e.styles,d=u===void 0?{}:u,m=e.classNames,v=m===void 0?{}:m,p=e.order,y=p===void 0?!0:p,h=e.components,C=h===void 0?{}:h,g=e.inputRender,S=e.allowClear,x=e.clearIcon,w=e.needConfirm,R=e.multiple,$=e.format,O=e.inputReadOnly,I=e.disabledDate,N=e.minDate,P=e.maxDate,T=e.showTime,k=e.value,H=e.defaultValue,A=e.pickerValue,_=e.defaultPickerValue,D=Bf(k),j=Bf(H),z=Bf(A),F=Bf(_),W=a==="date"&&T?"datetime":a,K=W==="time"||W==="datetime",B=K||R,V=w??K,U=$M(e),q=ce(U,4),G=q[0],Z=q[1],ee=q[2],J=q[3],oe=SM(r,Z),ae=l.useMemo(function(){return EM(W,ee,J,G,oe)},[W,ee,J,G,oe]),te=l.useMemo(function(){return X(X({},e),{},{prefixCls:s,locale:oe,picker:a,styles:d,classNames:v,order:y,components:X({input:g},C),clearIcon:xU(s,S,x),showTime:ae,value:D,defaultValue:j,pickerValue:z,defaultPickerValue:F},t==null?void 0:t())},[e]),ne=OU(W,oe,$),ie=ce(ne,2),de=ie[0],ve=ie[1],se=RU(de,O,R),he=EU(n,r,I,N,P),Se=IU(n,a,he,ae),je=l.useMemo(function(){return X(X({},te),{},{needConfirm:V,inputReadOnly:se,disabledDate:he})},[te,V,se,he]);return[je,W,B,de,ve,Se]}function PU(e,t,n){var r=Tn(t,{value:e}),o=ce(r,2),a=o[0],i=o[1],s=pe.useRef(e),u=pe.useRef(),d=function(){cn.cancel(u.current)},m=ln(function(){i(s.current),n&&a!==s.current&&n(s.current)}),v=ln(function(p,y){d(),s.current=p,p||y?m():u.current=cn(m)});return pe.useEffect(function(){return d},[]),[a,v]}function PM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(m){return m})?!1:e,a=PU(o,t||!1,r),i=ce(a,2),s=i[0],u=i[1];function d(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!v.inherit||s)&&u(m,v.force)}return[s,d]}function NM(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var a;(a=t.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function MM(e,t){return l.useMemo(function(){return e||(t?(qn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ce(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function JC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,py(function(){if(e)r.current(e);else{var o=cn(function(){r.current(e)},n);return function(){cn.cancel(o)}}},[e])}function TM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),o=ce(r,2),a=o[0],i=o[1],s=l.useState(!1),u=ce(s,2),d=u[0],m=u[1],v=l.useRef([]),p=l.useRef(null),y=l.useRef(null),h=function(R){p.current=R},C=function(R){return p.current===R},g=function(R){m(R)},S=function(R){return R&&(y.current=R),y.current},x=function(R){var $=v.current,O=new Set($.filter(function(N){return R[N]||t[N]})),I=$[$.length-1]===0?1:0;return O.size>=2||e[I]?null:I};return JC(d||n,function(){d||(v.current=[],h(null))}),l.useEffect(function(){d&&v.current.push(a)},[d,a]),[d,g,S,a,i,x,v.current,h,C]}function NU(e,t,n,r,o,a){var i=n[n.length-1],s=function(d,m){var v=ce(e,2),p=v[0],y=v[1],h=X(X({},m),{},{from:hM(e,n)});return i===1&&t[0]&&p&&!Gr(r,o,p,d,h.type)&&r.isAfter(p,d)||i===0&&t[1]&&y&&!Gr(r,o,y,d,h.type)&&r.isAfter(d,y)?!0:a==null?void 0:a(d,h)};return s}function bu(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var t0=[];function _M(e,t,n,r,o,a,i,s){var u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:t0,d=arguments.length>9&&arguments[9]!==void 0?arguments[9]:t0,m=arguments.length>10&&arguments[10]!==void 0?arguments[10]:t0,v=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,y=arguments.length>13?arguments[13]:void 0,h=i==="time",C=a||0,g=function(z){var F=e.getNow();return h&&(F=qm(e,F)),u[z]||n[z]||F},S=ce(d,2),x=S[0],w=S[1],R=Tn(function(){return g(0)},{value:x}),$=ce(R,2),O=$[0],I=$[1],N=Tn(function(){return g(1)},{value:w}),P=ce(N,2),T=P[0],k=P[1],H=l.useMemo(function(){var j=[O,T][C];return h?j:qm(e,j,m[C])},[h,O,T,C,e,m]),A=function(z){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",W=[I,k][C];W(z);var K=[O,T];K[C]=z,v&&(!Gr(e,t,O,K[0],i)||!Gr(e,t,T,K[1],i))&&v(K,{source:F,range:C===1?"end":"start",mode:r})},_=function(z,F){if(s){var W={date:"month",week:"month",month:"year",quarter:"year"},K=W[i];if(K&&!Gr(e,t,z,F,K))return bu(e,i,F,-1);if(i==="year"&&z){var B=Math.floor(e.getYear(z)/10),V=Math.floor(e.getYear(F)/10);if(B!==V)return bu(e,i,F,-1)}}return F},D=l.useRef(null);return dn(function(){if(o&&!u[C]){var j=h?null:e.getNow();if(D.current!==null&&D.current!==C?j=[O,T][C^1]:n[C]?j=C===0?n[0]:_(n[0],n[1]):n[C^1]&&(j=n[C^1]),j){p&&e.isAfter(p,j)&&(j=p);var z=s?bu(e,i,j,1):j;y&&e.isAfter(z,y)&&(j=s?bu(e,i,y,-1):y),A(j,"reset")}}},[o,C,n[C]]),l.useEffect(function(){o?D.current=C:D.current=null},[o,C]),dn(function(){o&&u&&u[C]&&A(u[C],"reset")},[o,C]),[H,A]}function DM(e,t){var n=l.useRef(e),r=l.useState({}),o=ce(r,2),a=o[1],i=function(d){return d&&t!==void 0?t:n.current},s=function(d){n.current=d,a({})};return[i,s,i(!0)]}var MU=[];function jM(e,t,n){var r=function(i){return i.map(function(s){return xr(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,s){for(var u=Math.max(i.length,s.length),d=-1,m=0;m<u;m+=1){var v=i[m]||null,p=s[m]||null;if(v!==p&&!RM(e,v,p)){d=m;break}}return[d<0,d!==0]};return[r,o]}function kM(e,t){return _e(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function TU(e){var t=DM(e),n=ce(t,2),r=n[0],o=n[1],a=ln(function(){o(e)});return l.useEffect(function(){a()},[e]),[r,o]}function zM(e,t,n,r,o,a,i,s,u){var d=Tn(a,{value:i}),m=ce(d,2),v=m[0],p=m[1],y=v||MU,h=TU(y),C=ce(h,2),g=C[0],S=C[1],x=jM(e,t,n),w=ce(x,2),R=w[0],$=w[1],O=ln(function(N){var P=_e(N);if(r)for(var T=0;T<2;T+=1)P[T]=P[T]||null;else o&&(P=kM(P.filter(function(j){return j}),e));var k=$(g(),P),H=ce(k,2),A=H[0],_=H[1];if(!A&&(S(P),s)){var D=R(P);s(P,D,{range:_?"end":"start"})}}),I=function(){u&&u(g())};return[y,p,g,O,I]}function LM(e,t,n,r,o,a,i,s,u,d){var m=e.generateConfig,v=e.locale,p=e.picker,y=e.onChange,h=e.allowEmpty,C=e.order,g=a.some(function(A){return A})?!1:C,S=jM(m,v,i),x=ce(S,2),w=x[0],R=x[1],$=DM(t),O=ce($,2),I=O[0],N=O[1],P=ln(function(){N(t)});l.useEffect(function(){P()},[t]);var T=ln(function(A){var _=A===null,D=_e(A||I());if(_)for(var j=Math.max(a.length,D.length),z=0;z<j;z+=1)a[z]||(D[z]=null);g&&D[0]&&D[1]&&(D=kM(D,m)),o(D);var F=D,W=ce(F,2),K=W[0],B=W[1],V=!K,U=!B,q=h?(!V||h[0])&&(!U||h[1]):!0,G=!C||V||U||Gr(m,v,K,B,p)||m.isAfter(B,K),Z=(a[0]||!K||!d(K,{activeIndex:0}))&&(a[1]||!B||!d(B,{from:K,activeIndex:1})),ee=_||q&&G&&Z;if(ee){n(D);var J=R(D,t),oe=ce(J,1),ae=oe[0];y&&!ae&&y(_&&D.every(function(te){return!te})?null:D,w(D))}return ee}),k=ln(function(A,_){var D=Iu(I(),A,r()[A]);N(D),_&&T()}),H=!s&&!u;return JC(!H,function(){H&&(T(),o(t),P())},2),[k,T]}function FM(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function _U(e,t,n,r,o,a){var i=e;function s(v,p,y){var h=a[v](i),C=y.find(function(w){return w.value===h});if(!C||C.disabled){var g=y.filter(function(w){return!w.disabled}),S=_e(g).reverse(),x=S.find(function(w){return w.value<=h})||g[0];x&&(h=x.value,i=a[p](i,h))}return h}var u=s("getHour","setHour",t()),d=s("getMinute","setMinute",n(u)),m=s("getSecond","setSecond",r(u,d));return s("getMillisecond","setMillisecond",o(u,d,m)),i}function Hf(){return[]}function Vf(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,u=e;u<=t;u+=s){var d=o.includes(u);(!d||!r)&&i.push({label:GC(u,a),value:u,disabled:d})}return i}function eS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,s=r.minuteStep,u=s===void 0?1:s,d=r.secondStep,m=d===void 0?1:d,v=r.millisecondStep,p=v===void 0?100:v,y=r.hideDisabledOptions,h=r.disabledTime,C=r.disabledHours,g=r.disabledMinutes,S=r.disabledSeconds,x=l.useMemo(function(){return n||e.getNow()},[n,e]),w=l.useCallback(function(F){var W=(h==null?void 0:h(F))||{};return[W.disabledHours||C||Hf,W.disabledMinutes||g||Hf,W.disabledSeconds||S||Hf,W.disabledMilliseconds||Hf]},[h,C,g,S]),R=l.useMemo(function(){return w(x)},[x,w]),$=ce(R,4),O=$[0],I=$[1],N=$[2],P=$[3],T=l.useCallback(function(F,W,K,B){var V=Vf(0,23,i,y,F()),U=o?V.map(function(ee){return X(X({},ee),{},{label:GC(ee.value%12||12,2)})}):V,q=function(J){return Vf(0,59,u,y,W(J))},G=function(J,oe){return Vf(0,59,m,y,K(J,oe))},Z=function(J,oe,ae){return Vf(0,999,p,y,B(J,oe,ae),3)};return[U,q,G,Z]},[y,i,o,p,u,m]),k=l.useMemo(function(){return T(O,I,N,P)},[T,O,I,N,P]),H=ce(k,4),A=H[0],_=H[1],D=H[2],j=H[3],z=function(W,K){var B=function(){return A},V=_,U=D,q=j;if(K){var G=w(K),Z=ce(G,4),ee=Z[0],J=Z[1],oe=Z[2],ae=Z[3],te=T(ee,J,oe,ae),ne=ce(te,4),ie=ne[0],de=ne[1],ve=ne[2],se=ne[3];B=function(){return ie},V=de,U=ve,q=se}var he=_U(W,B,V,U,q,e);return he};return[z,A,_,D,j]}function DU(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,s=e.onNow,u=e.invalid,d=e.needConfirm,m=e.generateConfig,v=e.disabledDate,p=l.useContext(wa),y=p.prefixCls,h=p.locale,C=p.button,g=C===void 0?"button":C,S=m.getNow(),x=eS(m,a,S),w=ce(x,1),R=w[0],$=r==null?void 0:r(t),O=v(S,{type:t}),I=function(){if(!O){var _=R(S);s(_)}},N="".concat(y,"-now"),P="".concat(N,"-btn"),T=o&&l.createElement("li",{className:N},l.createElement("a",{className:re(P,O&&"".concat(P,"-disabled")),"aria-disabled":O,onClick:I},n==="date"?h.today:h.now)),k=d&&l.createElement("li",{className:"".concat(y,"-ok")},l.createElement(g,{disabled:u,onClick:i},h.ok)),H=(T||k)&&l.createElement("ul",{className:"".concat(y,"-ranges")},T,k);return!$&&!H?null:l.createElement("div",{className:"".concat(y,"-footer")},$&&l.createElement("div",{className:"".concat(y,"-footer-extra")},$),H)}function AM(e,t,n){function r(o,a){var i=o.findIndex(function(u){return Gr(e,t,u,a,n)});if(i===-1)return[].concat(_e(o),[a]);var s=_e(o);return s.splice(i,1),s}return r}var Ll=l.createContext(null);function ap(){return l.useContext(Ll)}function oc(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,s=e.maxDate,u=e.cellRender,d=e.hoverValue,m=e.hoverRangeValue,v=e.onHover,p=e.values,y=e.pickerValue,h=e.onSelect,C=e.prevIcon,g=e.nextIcon,S=e.superPrevIcon,x=e.superNextIcon,w=r.getNow(),R={now:w,values:p,pickerValue:y,prefixCls:n,disabledDate:a,minDate:i,maxDate:s,cellRender:u,hoverValue:d,hoverRangeValue:m,onHover:v,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:C,nextIcon:g,superPrevIcon:S,superNextIcon:x};return[R,w]}var Mi=l.createContext({});function yd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,u=e.getCellText,d=e.getCellClassName,m=e.headerCells,v=e.cellSelection,p=v===void 0?!0:v,y=e.disabledDate,h=ap(),C=h.prefixCls,g=h.panelType,S=h.now,x=h.disabledDate,w=h.cellRender,R=h.onHover,$=h.hoverValue,O=h.hoverRangeValue,I=h.generateConfig,N=h.values,P=h.locale,T=h.onSelect,k=y||x,H="".concat(C,"-cell"),A=l.useContext(Mi),_=A.onCellDblClick,D=function(U){return N.some(function(q){return q&&Gr(I,P,U,q,g)})},j=[],z=0;z<t;z+=1){for(var F=[],W=void 0,K=function(){var U=z*n+B,q=o(r,U),G=k==null?void 0:k(q,{type:g});B===0&&(W=q,a&&F.push(a(W)));var Z=!1,ee=!1,J=!1;if(p&&O){var oe=ce(O,2),ae=oe[0],te=oe[1];Z=op(I,ae,te,q),ee=Gr(I,P,q,ae,g),J=Gr(I,P,q,te,g)}var ne=s?xr(q,{locale:P,format:s,generateConfig:I}):void 0,ie=l.createElement("div",{className:"".concat(H,"-inner")},u(q));F.push(l.createElement("td",{key:B,title:ne,className:re(H,X(Y(Y(Y(Y(Y(Y({},"".concat(H,"-disabled"),G),"".concat(H,"-hover"),($||[]).some(function(de){return Gr(I,P,q,de,g)})),"".concat(H,"-in-range"),Z&&!ee&&!J),"".concat(H,"-range-start"),ee),"".concat(H,"-range-end"),J),"".concat(C,"-cell-selected"),!O&&g!=="week"&&D(q)),d(q))),onClick:function(){G||T(q)},onDoubleClick:function(){!G&&_&&_()},onMouseEnter:function(){G||R==null||R(q)},onMouseLeave:function(){G||R==null||R(null)}},w?w(q,{prefixCls:C,originNode:ie,today:S,type:g,locale:P}):ie))},B=0;B<n;B+=1)K();j.push(l.createElement("tr",{key:z,className:i==null?void 0:i(W)},F))}return l.createElement("div",{className:"".concat(C,"-body")},l.createElement("table",{className:"".concat(C,"-content")},m&&l.createElement("thead",null,l.createElement("tr",null,m)),l.createElement("tbody",null,j)))}var Wf={visibility:"hidden"};function ac(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,s=ap(),u=s.prefixCls,d=s.prevIcon,m=d===void 0?"":d,v=s.nextIcon,p=v===void 0?"":v,y=s.superPrevIcon,h=y===void 0?"«":y,C=s.superNextIcon,g=C===void 0?"»":C,S=s.minDate,x=s.maxDate,w=s.generateConfig,R=s.locale,$=s.pickerValue,O=s.panelType,I="".concat(u,"-header"),N=l.useContext(Mi),P=N.hidePrev,T=N.hideNext,k=N.hideHeader,H=l.useMemo(function(){if(!S||!t||!a)return!1;var V=a(t(-1,$));return!Af(w,R,V,S,O)},[S,t,$,a,w,R,O]),A=l.useMemo(function(){if(!S||!n||!a)return!1;var V=a(n(-1,$));return!Af(w,R,V,S,O)},[S,n,$,a,w,R,O]),_=l.useMemo(function(){if(!x||!t||!o)return!1;var V=o(t(1,$));return!Af(w,R,x,V,O)},[x,t,$,o,w,R,O]),D=l.useMemo(function(){if(!x||!n||!o)return!1;var V=o(n(1,$));return!Af(w,R,x,V,O)},[x,n,$,o,w,R,O]),j=function(U){t&&r(t(U,$))},z=function(U){n&&r(n(U,$))};if(k)return null;var F="".concat(I,"-prev-btn"),W="".concat(I,"-next-btn"),K="".concat(I,"-super-prev-btn"),B="".concat(I,"-super-next-btn");return l.createElement("div",{className:I},n&&l.createElement("button",{type:"button","aria-label":R.previousYear,onClick:function(){return z(-1)},tabIndex:-1,className:re(K,A&&"".concat(K,"-disabled")),disabled:A,style:P?Wf:{}},h),t&&l.createElement("button",{type:"button","aria-label":R.previousMonth,onClick:function(){return j(-1)},tabIndex:-1,className:re(F,H&&"".concat(F,"-disabled")),disabled:H,style:P?Wf:{}},m),l.createElement("div",{className:"".concat(I,"-view")},i),t&&l.createElement("button",{type:"button","aria-label":R.nextMonth,onClick:function(){return j(1)},tabIndex:-1,className:re(W,_&&"".concat(W,"-disabled")),disabled:_,style:T?Wf:{}},p),n&&l.createElement("button",{type:"button","aria-label":R.nextYear,onClick:function(){return z(1)},tabIndex:-1,className:re(B,D&&"".concat(B,"-disabled")),disabled:D,style:T?Wf:{}},g))}function ip(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,u=e.onModeChange,d=e.mode,m=d===void 0?"date":d,v=e.disabledDate,p=e.onSelect,y=e.onHover,h=e.showWeek,C="".concat(t,"-").concat(r,"-panel"),g="".concat(t,"-cell"),S=m==="week",x=oc(e,m),w=ce(x,2),R=w[0],$=w[1],O=a.locale.getWeekFirstDay(o.locale),I=a.setDate(i,1),N=$U(o.locale,a,I),P=a.getMonth(i),T=h===void 0?S:h,k=T?function(V){var U=v==null?void 0:v(V,{type:"week"});return l.createElement("td",{key:"week",className:re(g,"".concat(g,"-week"),Y({},"".concat(g,"-disabled"),U)),onClick:function(){U||p(V)},onMouseEnter:function(){U||y==null||y(V)},onMouseLeave:function(){U||y==null||y(null)}},l.createElement("div",{className:"".concat(g,"-inner")},a.locale.getWeek(o.locale,V)))}:null,H=[],A=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);k&&H.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var _=0;_<e0;_+=1)H.push(l.createElement("th",{key:_},A[(_+O)%e0]));var D=function(U,q){return a.addDate(U,q)},j=function(U){return xr(U,{locale:o,format:o.cellDateFormat,generateConfig:a})},z=function(U){var q=Y(Y({},"".concat(t,"-cell-in-view"),QC(a,U,i)),"".concat(t,"-cell-today"),ZC(a,U,$));return q},F=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),W=l.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){u("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},xr(i,{locale:o,format:o.yearFormat,generateConfig:a})),K=l.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){u("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?xr(i,{locale:o,format:o.monthFormat,generateConfig:a}):F[P]),B=o.monthBeforeYear?[K,W]:[W,K];return l.createElement(Ll.Provider,{value:R},l.createElement("div",{className:re(C,h&&"".concat(C,"-show-week"))},l.createElement(ac,{offset:function(U){return a.addMonth(i,U)},superOffset:function(U){return a.addYear(i,U)},onChange:s,getStart:function(U){return a.setDate(U,1)},getEnd:function(U){var q=a.setDate(U,1);return q=a.addMonth(q,1),a.addDate(q,-1)}},B),l.createElement(yd,Me({titleFormat:o.fieldDateFormat},e,{colNum:e0,rowNum:6,baseDate:N,headerCells:H,getCellDate:D,getCellText:j,getCellClassName:z,prefixColumn:k,cellSelection:!S}))))}var jU=1/3;function kU(e,t){var n=l.useRef(!1),r=l.useRef(null),o=l.useRef(null),a=function(){return n.current},i=function(){cn.cancel(r.current),n.current=!1},s=l.useRef(),u=function(){var v=e.current;if(o.current=null,s.current=0,v){var p=v.querySelector('[data-value="'.concat(t,'"]')),y=v.querySelector("li"),h=function C(){i(),n.current=!0,s.current+=1;var g=v.scrollTop,S=y.offsetTop,x=p.offsetTop,w=x-S;if(x===0&&p!==y||!Qs(v)){s.current<=5&&(r.current=cn(C));return}var R=g+(w-g)*jU,$=Math.abs(w-R);if(o.current!==null&&o.current<$){i();return}if(o.current=$,$<=1){v.scrollTop=w,i();return}v.scrollTop=R,r.current=cn(C)};p&&y&&h()}},d=ln(u);return[d,i,a]}var zU=300;function LU(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function ru(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,s=e.onDblClick,u=e.changeOnScroll,d=ap(),m=d.prefixCls,v=d.cellRender,p=d.now,y=d.locale,h="".concat(m,"-time-panel"),C="".concat(m,"-time-panel-cell"),g=l.useRef(null),S=l.useRef(),x=function(){clearTimeout(S.current)},w=kU(g,n??r),R=ce(w,3),$=R[0],O=R[1],I=R[2];dn(function(){return $(),x(),function(){O(),x()}},[n,r,LU(t)]);var N=function(k){x();var H=k.target;!I()&&u&&(S.current=setTimeout(function(){var A=g.current,_=A.querySelector("li").offsetTop,D=Array.from(A.querySelectorAll("li")),j=D.map(function(B){return B.offsetTop-_}),z=j.map(function(B,V){return t[V].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-H.scrollTop)}),F=Math.min.apply(Math,_e(z)),W=z.findIndex(function(B){return B===F}),K=t[W];K&&!K.disabled&&a(K.value)},zU))},P="".concat(h,"-column");return l.createElement("ul",{className:P,ref:g,"data-type":o,onScroll:N},t.map(function(T){var k=T.label,H=T.value,A=T.disabled,_=l.createElement("div",{className:"".concat(C,"-inner")},k);return l.createElement("li",{key:H,className:re(C,Y(Y({},"".concat(C,"-selected"),n===H),"".concat(C,"-disabled"),A)),onClick:function(){A||a(H)},onDoubleClick:function(){!A&&s&&s()},onMouseEnter:function(){i(H)},onMouseLeave:function(){i(null)},"data-value":H},v?v(H,{prefixCls:m,originNode:_,today:p,type:"time",subType:o,locale:y}):_)}))}function Ci(e){return e<12}function FU(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,s=ap(),u=s.prefixCls,d=s.values,m=s.generateConfig,v=s.locale,p=s.onSelect,y=s.onHover,h=y===void 0?function(){}:y,C=s.pickerValue,g=(d==null?void 0:d[0])||null,S=l.useContext(Mi),x=S.onCellDblClick,w=eS(m,e,g),R=ce(w,5),$=R[0],O=R[1],I=R[2],N=R[3],P=R[4],T=function(He){var ot=g&&m[He](g),gt=C&&m[He](C);return[ot,gt]},k=T("getHour"),H=ce(k,2),A=H[0],_=H[1],D=T("getMinute"),j=ce(D,2),z=j[0],F=j[1],W=T("getSecond"),K=ce(W,2),B=K[0],V=K[1],U=T("getMillisecond"),q=ce(U,2),G=q[0],Z=q[1],ee=A===null?null:Ci(A)?"am":"pm",J=l.useMemo(function(){return a?Ci(A)?O.filter(function(we){return Ci(we.value)}):O.filter(function(we){return!Ci(we.value)}):O},[A,O,a]),oe=function(He,ot){var gt,yt=He.filter(function(Rt){return!Rt.disabled});return ot??(yt==null||(gt=yt[0])===null||gt===void 0?void 0:gt.value)},ae=oe(O,A),te=l.useMemo(function(){return I(ae)},[I,ae]),ne=oe(te,z),ie=l.useMemo(function(){return N(ae,ne)},[N,ae,ne]),de=oe(ie,B),ve=l.useMemo(function(){return P(ae,ne,de)},[P,ae,ne,de]),se=oe(ve,G),he=l.useMemo(function(){if(!a)return[];var we=m.getNow(),He=m.setHour(we,6),ot=m.setHour(we,18),gt=function(Rt,qt){var Wt=v.cellMeridiemFormat;return Wt?xr(Rt,{generateConfig:m,locale:v,format:Wt}):qt};return[{label:gt(He,"AM"),value:"am",disabled:O.every(function(yt){return yt.disabled||!Ci(yt.value)})},{label:gt(ot,"PM"),value:"pm",disabled:O.every(function(yt){return yt.disabled||Ci(yt.value)})}]},[O,a,m,v]),Se=function(He){var ot=$(He);p(ot)},je=l.useMemo(function(){var we=g||C||m.getNow(),He=function(gt){return gt!=null};return He(A)?(we=m.setHour(we,A),we=m.setMinute(we,z),we=m.setSecond(we,B),we=m.setMillisecond(we,G)):He(_)?(we=m.setHour(we,_),we=m.setMinute(we,F),we=m.setSecond(we,V),we=m.setMillisecond(we,Z)):He(ae)&&(we=m.setHour(we,ae),we=m.setMinute(we,ne),we=m.setSecond(we,de),we=m.setMillisecond(we,se)),we},[g,C,A,z,B,G,ae,ne,de,se,_,F,V,Z,m]),Te=function(He,ot){return He===null?null:m[ot](je,He)},Ce=function(He){return Te(He,"setHour")},xe=function(He){return Te(He,"setMinute")},Ne=function(He){return Te(He,"setSecond")},Ee=function(He){return Te(He,"setMillisecond")},Be=function(He){return He===null?null:He==="am"&&!Ci(A)?m.setHour(je,A-12):He==="pm"&&Ci(A)?m.setHour(je,A+12):je},Ve=function(He){Se(Ce(He))},tt=function(He){Se(xe(He))},nt=function(He){Se(Ne(He))},We=function(He){Se(Ee(He))},Ze=function(He){Se(Be(He))},Le=function(He){h(Ce(He))},Re=function(He){h(xe(He))},qe=function(He){h(Ne(He))},ye=function(He){h(Ee(He))},Oe=function(He){h(Be(He))},Fe={onDblClick:x,changeOnScroll:i};return l.createElement("div",{className:"".concat(u,"-content")},t&&l.createElement(ru,Me({units:J,value:A,optionalValue:_,type:"hour",onChange:Ve,onHover:Le},Fe)),n&&l.createElement(ru,Me({units:te,value:z,optionalValue:F,type:"minute",onChange:tt,onHover:Re},Fe)),r&&l.createElement(ru,Me({units:ie,value:B,optionalValue:V,type:"second",onChange:nt,onHover:qe},Fe)),o&&l.createElement(ru,Me({units:ve,value:G,optionalValue:Z,type:"millisecond",onChange:We,onHover:ye},Fe)),a&&l.createElement(ru,Me({units:he,value:ee,type:"meridiem",onChange:Ze,onHover:Oe},Fe)))}function BM(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},s=i.format,u="".concat(t,"-time-panel"),d=oc(e,"time"),m=ce(d,1),v=m[0];return l.createElement(Ll.Provider,{value:v},l.createElement("div",{className:re(u)},l.createElement(ac,null,n?xr(n,{locale:r,format:s,generateConfig:o}):" "),l.createElement(FU,a)))}function AU(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,s=e.onHover,u="".concat(t,"-datetime-panel"),d=eS(n,r),m=ce(d,1),v=m[0],p=function(g){return a?qm(n,g,a):qm(n,g,i)},y=function(g){s==null||s(g&&p(g))},h=function(g){var S=p(g);o(v(S,S))};return l.createElement("div",{className:u},l.createElement(ip,Me({},e,{onSelect:h,onHover:y})),l.createElement(BM,e))}function BU(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),u=oc(e,"decade"),d=ce(u,1),m=d[0],v=function(O){var I=Math.floor(r.getYear(O)/100)*100;return r.setYear(O,I)},p=function(O){var I=v(O);return r.addYear(I,99)},y=v(o),h=p(o),C=r.addYear(y,-10),g=function(O,I){return r.addYear(O,I*10)},S=function(O){var I=n.cellYearFormat,N=xr(O,{locale:n,format:I,generateConfig:r}),P=xr(r.addYear(O,9),{locale:n,format:I,generateConfig:r});return"".concat(N,"-").concat(P)},x=function(O){return Y({},"".concat(t,"-cell-in-view"),fb(r,O,y)||fb(r,O,h)||op(r,y,h,O))},w=a?function($,O){var I=r.setDate($,1),N=r.setMonth(I,0),P=r.setYear(N,Math.floor(r.getYear(N)/10)*10),T=r.addYear(P,10),k=r.addDate(T,-1);return a(P,O)&&a(k,O)}:null,R="".concat(xr(y,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(xr(h,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ll.Provider,{value:m},l.createElement("div",{className:s},l.createElement(ac,{superOffset:function(O){return r.addYear(o,O*100)},onChange:i,getStart:v,getEnd:p},R),l.createElement(yd,Me({},e,{disabledDate:w,colNum:3,rowNum:4,baseDate:C,getCellDate:g,getCellText:S,getCellClassName:x}))))}function HU(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-month-panel"),d=oc(e,"month"),m=ce(d,1),v=m[0],p=r.setMonth(o,0),y=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(R,$){return r.addMonth(R,$)},C=function(R){var $=r.getMonth(R);return n.monthFormat?xr(R,{locale:n,format:n.monthFormat,generateConfig:r}):y[$]},g=function(){return Y({},"".concat(t,"-cell-in-view"),!0)},S=a?function(w,R){var $=r.setDate(w,1),O=r.setMonth($,r.getMonth($)+1),I=r.addDate(O,-1);return a($,R)&&a(I,R)}:null,x=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},xr(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ll.Provider,{value:v},l.createElement("div",{className:u},l.createElement(ac,{superOffset:function(R){return r.addYear(o,R)},onChange:i,getStart:function(R){return r.setMonth(R,0)},getEnd:function(R){return r.setMonth(R,11)}},x),l.createElement(yd,Me({},e,{disabledDate:S,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:h,getCellText:C,getCellClassName:g}))))}function VU(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),u=oc(e,"quarter"),d=ce(u,1),m=d[0],v=r.setMonth(o,0),p=function(S,x){return r.addMonth(S,x*3)},y=function(S){return xr(S,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return Y({},"".concat(t,"-cell-in-view"),!0)},C=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},xr(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ll.Provider,{value:m},l.createElement("div",{className:s},l.createElement(ac,{superOffset:function(S){return r.addYear(o,S)},onChange:a,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},C),l.createElement(yd,Me({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:v,getCellDate:p,getCellText:y,getCellClassName:h}))))}function WU(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,s=r.locale,u="".concat(t,"-week-panel-row"),d=function(v){var p={};if(i){var y=ce(i,2),h=y[0],C=y[1],g=yu(n,s,h,v),S=yu(n,s,C,v);p["".concat(u,"-range-start")]=g,p["".concat(u,"-range-end")]=S,p["".concat(u,"-range-hover")]=!g&&!S&&op(n,h,C,v)}return a&&(p["".concat(u,"-hover")]=a.some(function(x){return yu(n,s,v,x)})),re(u,Y({},"".concat(u,"-selected"),!i&&yu(n,s,o,v)),p)};return l.createElement(ip,Me({},e,{mode:"week",panelName:"week",rowClassName:d}))}function KU(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-year-panel"),d=oc(e,"year"),m=ce(d,1),v=m[0],p=function(I){var N=Math.floor(r.getYear(I)/10)*10;return r.setYear(I,N)},y=function(I){var N=p(I);return r.addYear(N,9)},h=p(o),C=y(o),g=r.addYear(h,-1),S=function(I,N){return r.addYear(I,N)},x=function(I){return xr(I,{locale:n,format:n.cellYearFormat,generateConfig:r})},w=function(I){return Y({},"".concat(t,"-cell-in-view"),Rl(r,I,h)||Rl(r,I,C)||op(r,h,C,I))},R=a?function(O,I){var N=r.setMonth(O,0),P=r.setDate(N,1),T=r.addYear(P,1),k=r.addDate(T,-1);return a(P,I)&&a(k,I)}:null,$=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},xr(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",xr(C,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(Ll.Provider,{value:v},l.createElement("div",{className:u},l.createElement(ac,{superOffset:function(I){return r.addYear(o,I*10)},onChange:i,getStart:p,getEnd:y},$),l.createElement(yd,Me({},e,{disabledDate:R,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:S,getCellText:x,getCellClassName:w}))))}var UU={date:ip,datetime:AU,week:WU,month:HU,quarter:VU,year:KU,decade:BU,time:BM};function qU(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,s=e.tabIndex,u=s===void 0?0:s,d=e.multiple,m=e.defaultValue,v=e.value,p=e.onChange,y=e.onSelect,h=e.defaultPickerValue,C=e.pickerValue,g=e.onPickerValueChange,S=e.mode,x=e.onPanelChange,w=e.picker,R=w===void 0?"date":w,$=e.showTime,O=e.hoverValue,I=e.hoverRangeValue,N=e.cellRender,P=e.dateRender,T=e.monthCellRender,k=e.components,H=k===void 0?{}:k,A=e.hideHeader,_=((n=l.useContext(wa))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",D=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:D.current}});var j=$M(e),z=ce(j,4),F=z[0],W=z[1],K=z[2],B=z[3],V=SM(r,W),U=R==="date"&&$?"datetime":R,q=l.useMemo(function(){return EM(U,K,B,F,V)},[U,K,B,F,V]),G=o.getNow(),Z=Tn(R,{value:S,postState:function(Oe){return Oe||"date"}}),ee=ce(Z,2),J=ee[0],oe=ee[1],ae=J==="date"&&q?"datetime":J,te=AM(o,r,U),ne=Tn(m,{value:v}),ie=ce(ne,2),de=ie[0],ve=ie[1],se=l.useMemo(function(){var ye=zl(de).filter(function(Oe){return Oe});return d?ye:ye.slice(0,1)},[de,d]),he=ln(function(ye){ve(ye),p&&(ye===null||se.length!==ye.length||se.some(function(Oe,Fe){return!Gr(o,r,Oe,ye[Fe],U)}))&&(p==null||p(d?ye:ye[0]))}),Se=ln(function(ye){if(y==null||y(ye),J===R){var Oe=d?te(se,ye):[ye];he(Oe)}}),je=Tn(h||se[0]||G,{value:C}),Te=ce(je,2),Ce=Te[0],xe=Te[1];l.useEffect(function(){se[0]&&!C&&xe(se[0])},[se[0]]);var Ne=function(Oe,Fe){x==null||x(Oe||C,Fe||J)},Ee=function(Oe){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe(Oe),g==null||g(Oe),Fe&&Ne(Oe)},Be=function(Oe,Fe){oe(Oe),Fe&&Ee(Fe),Ne(Fe,Oe)},Ve=function(Oe){if(Se(Oe),Ee(Oe),J!==R){var Fe=["decade","year"],we=[].concat(Fe,["month"]),He={quarter:[].concat(Fe,["quarter"]),week:[].concat(_e(we),["week"]),date:[].concat(_e(we),["date"])},ot=He[R]||we,gt=ot.indexOf(J),yt=ot[gt+1];yt&&Be(yt,Oe)}},tt=l.useMemo(function(){var ye,Oe;if(Array.isArray(I)){var Fe=ce(I,2);ye=Fe[0],Oe=Fe[1]}else ye=I;return!ye&&!Oe?null:(ye=ye||Oe,Oe=Oe||ye,o.isAfter(ye,Oe)?[Oe,ye]:[ye,Oe])},[I,o]),nt=XC(N,P,T),We=H[ae]||UU[ae]||ip,Ze=l.useContext(Mi),Le=l.useMemo(function(){return X(X({},Ze),{},{hideHeader:A})},[Ze,A]),Re="".concat(_,"-panel"),qe=rp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Mi.Provider,{value:Le},l.createElement("div",{ref:D,tabIndex:u,className:re(Re,Y({},"".concat(Re,"-rtl"),a==="rtl"))},l.createElement(We,Me({},qe,{showTime:q,prefixCls:_,locale:V,generateConfig:o,onModeChange:Be,pickerValue:Ce,onPickerValueChange:function(Oe){Ee(Oe,!0)},value:se[0],onSelect:Ve,values:se,cellRender:nt,hoverRangeValue:tt,hoverValue:O}))))}var n0=l.memo(l.forwardRef(qU));function YU(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,s=e.range,u=e.hoverValue,d=l.useContext(wa),m=d.prefixCls,v=d.generateConfig,p=l.useCallback(function(x,w){return bu(v,t,x,w)},[v,t]),y=l.useMemo(function(){return p(r,1)},[r,p]),h=function(w){o(p(w,-1))},C={onCellDblClick:function(){a&&i()}},g=t==="time",S=X(X({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?S.hoverRangeValue=u:S.hoverValue=u,n?l.createElement("div",{className:"".concat(m,"-panels")},l.createElement(Mi.Provider,{value:X(X({},C),{},{hideNext:!0})},l.createElement(n0,S)),l.createElement(Mi.Provider,{value:X(X({},C),{},{hidePrev:!0})},l.createElement(n0,Me({},S,{pickerValue:y,onPickerValueChange:h})))):l.createElement(Mi.Provider,{value:X({},C)},l.createElement(n0,S))}function i2(e){return typeof e=="function"?e():e}function GU(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(a,i){var s=a.label,u=a.value;return l.createElement("li",{key:i,onClick:function(){r(i2(u))},onMouseEnter:function(){o(i2(u))},onMouseLeave:function(){o(null)}},s)}))):null}function HM(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,s=e.activeInfo,u=s===void 0?[0,0,0]:s,d=e.presets,m=e.onPresetHover,v=e.onPresetSubmit,p=e.onFocus,y=e.onBlur,h=e.onPanelMouseDown,C=e.direction,g=e.value,S=e.onSelect,x=e.isInvalid,w=e.defaultOpenValue,R=e.onOk,$=e.onSubmit,O=l.useContext(wa),I=O.prefixCls,N="".concat(I,"-panel"),P=C==="rtl",T=l.useRef(null),k=l.useRef(null),H=l.useState(0),A=ce(H,2),_=A[0],D=A[1],j=l.useState(0),z=ce(j,2),F=z[0],W=z[1],K=l.useState(0),B=ce(K,2),V=B[0],U=B[1],q=function(Ve){Ve.width&&D(Ve.width)},G=ce(u,3),Z=G[0],ee=G[1],J=G[2],oe=l.useState(0),ae=ce(oe,2),te=ae[0],ne=ae[1];l.useEffect(function(){ne(10)},[Z]),l.useEffect(function(){if(a&&k.current){var Be,Ve=((Be=T.current)===null||Be===void 0?void 0:Be.offsetWidth)||0,tt=k.current.getBoundingClientRect();if(!tt.height||tt.right<0){ne(function(Le){return Math.max(0,Le-1)});return}var nt=(P?ee-Ve:Z)-tt.left;if(U(nt),_&&_<J){var We=P?tt.right-(ee-Ve+_):Z+Ve-tt.left-_,Ze=Math.max(0,We);W(Ze)}else W(0)}},[te,P,_,Z,ee,J,a]);function ie(Be){return Be.filter(function(Ve){return Ve})}var de=l.useMemo(function(){return ie(zl(g))},[g]),ve=r==="time"&&!de.length,se=l.useMemo(function(){return ve?ie([w]):de},[ve,de,w]),he=ve?w:de,Se=l.useMemo(function(){return se.length?se.some(function(Be){return x(Be)}):!0},[se,x]),je=function(){ve&&S(w),R(),$()},Te=l.createElement("div",{className:"".concat(I,"-panel-layout")},l.createElement(GU,{prefixCls:I,presets:d,onClick:v,onHover:m}),l.createElement("div",null,l.createElement(YU,Me({},e,{value:he})),l.createElement(DU,Me({},e,{showNow:i?!1:o,invalid:Se,onSubmit:je}))));t&&(Te=t(Te));var Ce="".concat(N,"-container"),xe="marginLeft",Ne="marginRight",Ee=l.createElement("div",{onMouseDown:h,tabIndex:-1,className:re(Ce,"".concat(I,"-").concat(n,"-panel-container")),style:Y(Y({},P?Ne:xe,F),P?xe:Ne,"auto"),onFocus:p,onBlur:y},Te);return a&&(Ee=l.createElement("div",{onMouseDown:h,ref:k,className:re("".concat(I,"-range-wrapper"),"".concat(I,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:T,className:"".concat(I,"-range-arrow"),style:{left:V}}),l.createElement(_o,{onResize:q},Ee))),Ee}function VM(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,u=e.required,d=e["aria-required"],m=e.onSubmit,v=e.onFocus,p=e.onBlur,y=e.onInputChange,h=e.onInvalid,C=e.open,g=e.onOpenChange,S=e.onKeyDown,x=e.onChange,w=e.activeHelp,R=e.name,$=e.autoComplete,O=e.id,I=e.value,N=e.invalid,P=e.placeholder,T=e.disabled,k=e.activeIndex,H=e.allHelp,A=e.picker,_=function(V,U){var q=o.locale.parse(a.locale,V,[U]);return q&&o.isValidate(q)?q:null},D=n[0],j=l.useCallback(function(B){return xr(B,{locale:a,format:D,generateConfig:o})},[a,o,D]),z=l.useMemo(function(){return I.map(j)},[I,j]),F=l.useMemo(function(){var B=A==="time"?8:10,V=typeof D=="function"?D(o.getNow()).length:D.length;return Math.max(B,V)+2},[D,A,o]),W=function(V){for(var U=0;U<n.length;U+=1){var q=n[U];if(typeof q=="string"){var G=_(V,q);if(G)return G}}return!1},K=function(V){function U(Z){return V!==void 0?Z[V]:Z}var q=wr(e,{aria:!0,data:!0}),G=X(X({},q),{},{format:r,validateFormat:function(ee){return!!W(ee)},preserveInvalidOnBlur:i,readOnly:s,required:u,"aria-required":d,name:R,autoComplete:$,size:F,id:U(O),value:U(z)||"",invalid:U(N),placeholder:U(P),active:k===V,helped:H||w&&k===V,disabled:U(T),onFocus:function(ee){v(ee,V)},onBlur:function(ee){p(ee,V)},onSubmit:m,onChange:function(ee){y();var J=W(ee);if(J){h(!1,V),x(J,V);return}h(!!ee,V)},onHelp:function(){g(!0,{index:V})},onKeyDown:function(ee){var J=!1;if(S==null||S(ee,function(){J=!0}),!ee.defaultPrevented&&!J)switch(ee.key){case"Escape":g(!1,{index:V});break;case"Enter":C||g(!0);break}}},t==null?void 0:t({valueTexts:z}));return Object.keys(G).forEach(function(Z){G[Z]===void 0&&delete G[Z]}),G};return[K,j]}var XU=["onMouseEnter","onMouseLeave"];function WM(e){return l.useMemo(function(){return rp(e,XU)},[e])}var QU=["icon","type"],ZU=["onClear"];function lp(e){var t=e.icon,n=e.type,r=jt(e,QU),o=l.useContext(wa),a=o.prefixCls;return t?l.createElement("span",Me({className:"".concat(a,"-").concat(n)},r),t):null}function mb(e){var t=e.onClear,n=jt(e,ZU);return l.createElement(lp,Me({},n,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),t()}}))}var r0=["YYYY","MM","DD","HH","mm","ss","SSS"],l2="顧",JU=function(){function e(t){rr(this,e),Y(this,"format",void 0),Y(this,"maskFormat",void 0),Y(this,"cells",void 0),Y(this,"maskCells",void 0),this.format=t;var n=r0.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return l2.repeat(s.length)});var o=new RegExp("(".concat(r0.join("|"),")")),a=(t.split(o)||[]).filter(function(s){return s}),i=0;this.cells=a.map(function(s){var u=r0.includes(s),d=i,m=i+s.length;return i=m,{text:s,mask:u,start:d,end:m}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return or(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},o=r.start,a=r.end;return[o||0,a||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var o=this.maskFormat[r],a=n[r];if(!a||o!==l2&&o!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,o=0,a=0;a<this.maskCells.length;a+=1){var i=this.maskCells[a],s=i.start,u=i.end;if(n>=s&&n<=u)return a;var d=Math.min(Math.abs(n-s),Math.abs(n-u));d<r&&(r=d,o=a)}return o}}]),e}();function eq(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var tq=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],vb=l.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,s=e.validateFormat,u=e.onChange;e.onInput;var d=e.helped,m=e.onHelp,v=e.onSubmit,p=e.onKeyDown,y=e.preserveInvalidOnBlur,h=y===void 0?!1:y,C=e.invalid,g=e.clearIcon,S=jt(e,tq),x=e.value,w=e.onFocus,R=e.onBlur,$=e.onMouseUp,O=l.useContext(wa),I=O.prefixCls,N=O.input,P=N===void 0?"input":N,T="".concat(I,"-input"),k=l.useState(!1),H=ce(k,2),A=H[0],_=H[1],D=l.useState(x),j=ce(D,2),z=j[0],F=j[1],W=l.useState(""),K=ce(W,2),B=K[0],V=K[1],U=l.useState(null),q=ce(U,2),G=q[0],Z=q[1],ee=l.useState(null),J=ce(ee,2),oe=J[0],ae=J[1],te=z||"";l.useEffect(function(){F(x)},[x]);var ne=l.useRef(),ie=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:ne.current,inputElement:ie.current,focus:function(ye){ie.current.focus(ye)},blur:function(){ie.current.blur()}}});var de=l.useMemo(function(){return new JU(i||"")},[i]),ve=l.useMemo(function(){return d?[0,0]:de.getSelection(G)},[de,G,d]),se=ce(ve,2),he=se[0],Se=se[1],je=function(ye){ye&&ye!==i&&ye!==x&&m()},Te=ln(function(qe){s(qe)&&u(qe),F(qe),je(qe)}),Ce=function(ye){if(!i){var Oe=ye.target.value;je(Oe),F(Oe),u(Oe)}},xe=function(ye){var Oe=ye.clipboardData.getData("text");s(Oe)&&Te(Oe)},Ne=l.useRef(!1),Ee=function(){Ne.current=!0},Be=function(ye){var Oe=ye.target,Fe=Oe.selectionStart,we=de.getMaskCellIndex(Fe);Z(we),ae({}),$==null||$(ye),Ne.current=!1},Ve=function(ye){_(!0),Z(0),V(""),w(ye)},tt=function(ye){R(ye)},nt=function(ye){_(!1),tt(ye)};JC(n,function(){!n&&!h&&F(x)});var We=function(ye){ye.key==="Enter"&&s(te)&&v(),p==null||p(ye)},Ze=function(ye){We(ye);var Oe=ye.key,Fe=null,we=null,He=Se-he,ot=i.slice(he,Se),gt=function(Wt){Z(function(It){var bt=It+Wt;return bt=Math.max(bt,0),bt=Math.min(bt,de.size()-1),bt})},yt=function(Wt){var It=eq(ot),bt=ce(It,3),mt=bt[0],ue=bt[1],fe=bt[2],be=te.slice(he,Se),De=Number(be);if(isNaN(De))return String(fe||(Wt>0?mt:ue));var Pe=De+Wt,ke=ue-mt+1;return String(mt+(ke+Pe-mt)%ke)};switch(Oe){case"Backspace":case"Delete":Fe="",we=ot;break;case"ArrowLeft":Fe="",gt(-1);break;case"ArrowRight":Fe="",gt(1);break;case"ArrowUp":Fe="",we=yt(1);break;case"ArrowDown":Fe="",we=yt(-1);break;default:isNaN(Number(Oe))||(Fe=B+Oe,we=Fe);break}if(Fe!==null&&(V(Fe),Fe.length>=He&&(gt(1),V(""))),we!==null){var Rt=te.slice(0,he)+GC(we,He)+te.slice(Se);Te(Rt.slice(0,i.length))}ae({})},Le=l.useRef();dn(function(){if(!(!A||!i||Ne.current)){if(!de.match(te)){Te(i);return}return ie.current.setSelectionRange(he,Se),Le.current=cn(function(){ie.current.setSelectionRange(he,Se)}),function(){cn.cancel(Le.current)}}},[de,i,A,te,G,he,Se,oe,Te]);var Re=i?{onFocus:Ve,onBlur:nt,onKeyDown:Ze,onMouseDown:Ee,onMouseUp:Be,onPaste:xe}:{};return l.createElement("div",{ref:ne,className:re(T,Y(Y({},"".concat(T,"-active"),n&&o),"".concat(T,"-placeholder"),d))},l.createElement(P,Me({ref:ie,"aria-invalid":C,autoComplete:"off"},S,{onKeyDown:We,onBlur:tt},Re,{value:te,onChange:Ce})),l.createElement(lp,{type:"suffix",icon:a}),g)}),nq=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],rq=["index"];function oq(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,u=e.activeIndex;e.activeHelp,e.allHelp;var d=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var m=e.placeholder,v=e.className,p=e.style,y=e.onClick,h=e.onClear,C=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,S=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var w=e.onActiveInfo;e.placement;var R=e.onMouseDown;e.required,e["aria-required"];var $=e.autoFocus,O=e.tabIndex,I=jt(e,nq),N=x==="rtl",P=l.useContext(wa),T=P.prefixCls,k=l.useMemo(function(){if(typeof n=="string")return[n];var oe=n||{};return[oe.start,oe.end]},[n]),H=l.useRef(),A=l.useRef(),_=l.useRef(),D=function(ae){var te;return(te=[A,_][ae])===null||te===void 0?void 0:te.current};l.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(ae){if(ht(ae)==="object"){var te,ne=ae||{},ie=ne.index,de=ie===void 0?0:ie,ve=jt(ne,rq);(te=D(de))===null||te===void 0||te.focus(ve)}else{var se;(se=D(ae??0))===null||se===void 0||se.focus()}},blur:function(){var ae,te;(ae=D(0))===null||ae===void 0||ae.blur(),(te=D(1))===null||te===void 0||te.blur()}}});var j=WM(I),z=l.useMemo(function(){return Array.isArray(m)?m:[m,m]},[m]),F=VM(X(X({},e),{},{id:k,placeholder:z})),W=ce(F,1),K=W[0],B=l.useState({position:"absolute",width:0}),V=ce(B,2),U=V[0],q=V[1],G=ln(function(){var oe=D(u);if(oe){var ae=oe.nativeElement.getBoundingClientRect(),te=H.current.getBoundingClientRect(),ne=ae.left-te.left;q(function(ie){return X(X({},ie),{},{width:ae.width,left:ne})}),w([ae.left,ae.right,te.width])}});l.useEffect(function(){G()},[u]);var Z=o&&(C[0]&&!g[0]||C[1]&&!g[1]),ee=$&&!g[0],J=$&&!ee&&!g[1];return l.createElement(_o,{onResize:G},l.createElement("div",Me({},j,{className:re(T,"".concat(T,"-range"),Y(Y(Y(Y({},"".concat(T,"-focused"),d),"".concat(T,"-disabled"),g.every(function(oe){return oe})),"".concat(T,"-invalid"),S.some(function(oe){return oe})),"".concat(T,"-rtl"),N),v),style:p,ref:H,onClick:y,onMouseDown:function(ae){var te=ae.target;te!==A.current.inputElement&&te!==_.current.inputElement&&ae.preventDefault(),R==null||R(ae)}}),r&&l.createElement("div",{className:"".concat(T,"-prefix")},r),l.createElement(vb,Me({ref:A},K(0),{autoFocus:ee,tabIndex:O,"date-range":"start"})),l.createElement("div",{className:"".concat(T,"-range-separator")},s),l.createElement(vb,Me({ref:_},K(1),{autoFocus:J,tabIndex:O,"date-range":"end"})),l.createElement("div",{className:"".concat(T,"-active-bar"),style:U}),l.createElement(lp,{type:"suffix",icon:a}),Z&&l.createElement(mb,{icon:o,onClear:h})))}var aq=l.forwardRef(oq);function s2(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Kf(e){return e===1?"end":"start"}function iq(e,t){var n=IM(e,function(){var vt=e.disabled,it=e.allowEmpty,Ft=s2(vt,!1),vn=s2(it,!1);return{disabled:Ft,allowEmpty:vn}}),r=ce(n,6),o=r[0],a=r[1],i=r[2],s=r[3],u=r[4],d=r[5],m=o.prefixCls,v=o.styles,p=o.classNames,y=o.defaultValue,h=o.value,C=o.needConfirm,g=o.onKeyDown,S=o.disabled,x=o.allowEmpty,w=o.disabledDate,R=o.minDate,$=o.maxDate,O=o.defaultOpen,I=o.open,N=o.onOpenChange,P=o.locale,T=o.generateConfig,k=o.picker,H=o.showNow,A=o.showToday,_=o.showTime,D=o.mode,j=o.onPanelChange,z=o.onCalendarChange,F=o.onOk,W=o.defaultPickerValue,K=o.pickerValue,B=o.onPickerValueChange,V=o.inputReadOnly,U=o.suffixIcon,q=o.onFocus,G=o.onBlur,Z=o.presets,ee=o.ranges,J=o.components,oe=o.cellRender,ae=o.dateRender,te=o.monthCellRender,ne=o.onClick,ie=NM(t),de=PM(I,O,S,N),ve=ce(de,2),se=ve[0],he=ve[1],Se=function(it,Ft){(S.some(function(vn){return!vn})||!it)&&he(it,Ft)},je=zM(T,P,s,!0,!1,y,h,z,F),Te=ce(je,5),Ce=Te[0],xe=Te[1],Ne=Te[2],Ee=Te[3],Be=Te[4],Ve=Ne(),tt=TM(S,x,se),nt=ce(tt,9),We=nt[0],Ze=nt[1],Le=nt[2],Re=nt[3],qe=nt[4],ye=nt[5],Oe=nt[6],Fe=nt[7],we=nt[8],He=function(it,Ft){Ze(!0),q==null||q(it,{range:Kf(Ft??Re)})},ot=function(it,Ft){Ze(!1),G==null||G(it,{range:Kf(Ft??Re)})},gt=l.useMemo(function(){if(!_)return null;var vt=_.disabledTime,it=vt?function(Ft){var vn=Kf(Re),gn=hM(Ve,Oe,Re);return vt(Ft,vn,{from:gn})}:void 0;return X(X({},_),{},{disabledTime:it})},[_,Re,Ve,Oe]),yt=Tn([k,k],{value:D}),Rt=ce(yt,2),qt=Rt[0],Wt=Rt[1],It=qt[Re]||k,bt=It==="date"&&gt?"datetime":It,mt=bt===k&&bt!=="time",ue=FM(k,It,H,A,!0),fe=LM(o,Ce,xe,Ne,Ee,S,s,We,se,d),be=ce(fe,2),De=be[0],Pe=be[1],ke=NU(Ve,S,Oe,T,P,w),Qe=bM(Ve,d,x),Ke=ce(Qe,2),Ye=Ke[0],et=Ke[1],Je=_M(T,P,Ve,qt,se,Re,a,mt,W,K,gt==null?void 0:gt.defaultOpenValue,B,R,$),Ge=ce(Je,2),rt=Ge[0],st=Ge[1],Nt=ln(function(vt,it,Ft){var vn=Iu(qt,Re,it);if((vn[0]!==qt[0]||vn[1]!==qt[1])&&Wt(vn),j&&Ft!==!1){var gn=_e(Ve);vt&&(gn[Re]=vt),j(gn,vn)}}),Lt=function(it,Ft){return Iu(Ve,Ft,it)},Bt=function(it,Ft){var vn=Ve;it&&(vn=Lt(it,Re)),Fe(Re);var gn=ye(vn);Ee(vn),De(Re,gn===null),gn===null?Se(!1,{force:!0}):Ft||ie.current.focus({index:gn})},Pt=function(it){var Ft,vn=it.target.getRootNode();if(!ie.current.nativeElement.contains((Ft=vn.activeElement)!==null&&Ft!==void 0?Ft:document.activeElement)){var gn=S.findIndex(function(Or){return!Or});gn>=0&&ie.current.focus({index:gn})}Se(!0),ne==null||ne(it)},rn=function(){Pe(null),Se(!1,{force:!0})},Jt=l.useState(null),ct=ce(Jt,2),ut=ct[0],Tt=ct[1],Ct=l.useState(null),Yt=ce(Ct,2),pn=Yt[0],On=Yt[1],Ut=l.useMemo(function(){return pn||Ve},[Ve,pn]);l.useEffect(function(){se||On(null)},[se]);var wt=l.useState([0,0,0]),Mt=ce(wt,2),Kt=Mt[0],Cn=Mt[1],on=MM(Z,ee),Pn=function(it){On(it),Tt("preset")},ar=function(it){var Ft=Pe(it);Ft&&Se(!1,{force:!0})},Yn=function(it){Bt(it)},pr=function(it){On(it?Lt(it,Re):null),Tt("cell")},Qn=function(it){Se(!0),He(it)},Wn=function(){Le("panel")},Zn=function(it){var Ft=Iu(Ve,Re,it);Ee(Ft),!C&&!i&&a===bt&&Bt(it)},mn=function(){Se(!1)},Ot=XC(oe,ae,te,Kf(Re)),$t=Ve[Re]||null,un=ln(function(vt){return d(vt,{activeIndex:Re})}),xt=l.useMemo(function(){var vt=wr(o,!1),it=Hn(o,[].concat(_e(Object.keys(vt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return it},[o]),St=l.createElement(HM,Me({},xt,{showNow:ue,showTime:gt,range:!0,multiplePanel:mt,activeInfo:Kt,disabledDate:ke,onFocus:Qn,onBlur:ot,onPanelMouseDown:Wn,picker:k,mode:It,internalMode:bt,onPanelChange:Nt,format:u,value:$t,isInvalid:un,onChange:null,onSelect:Zn,pickerValue:rt,defaultOpenValue:zl(_==null?void 0:_.defaultOpenValue)[Re],onPickerValueChange:st,hoverValue:Ut,onHover:pr,needConfirm:C,onSubmit:Bt,onOk:Be,presets:on,onPresetHover:Pn,onPresetSubmit:ar,onNow:Yn,cellRender:Ot})),en=function(it,Ft){var vn=Lt(it,Ft);Ee(vn)},_n=function(){Le("input")},An=function(it,Ft){var vn=Oe.length,gn=Oe[vn-1];if(vn&&gn!==Ft&&C&&!x[gn]&&!we(gn)&&Ve[gn]){ie.current.focus({index:gn});return}Le("input"),Se(!0,{inherit:!0}),Re!==Ft&&se&&!C&&i&&Bt(null,!0),qe(Ft),He(it,Ft)},Zt=function(it,Ft){if(Se(!1),!C&&Le()==="input"){var vn=ye(Ve);De(Re,vn===null)}ot(it,Ft)},Jn=function(it,Ft){it.key==="Tab"&&Bt(null,!0),g==null||g(it,Ft)},sr=l.useMemo(function(){return{prefixCls:m,locale:P,generateConfig:T,button:J.button,input:J.input}},[m,P,T,J.button,J.input]);return dn(function(){se&&Re!==void 0&&Nt(null,k,!1)},[se,Re,k]),dn(function(){var vt=Le();!se&&vt==="input"&&(Se(!1),Bt(null,!0)),!se&&i&&!C&&vt==="panel"&&(Se(!0),Bt())},[se]),l.createElement(wa.Provider,{value:sr},l.createElement(pM,Me({},yM(o),{popupElement:St,popupStyle:v.popup,popupClassName:p.popup,visible:se,onClose:mn,range:!0}),l.createElement(aq,Me({},o,{ref:ie,suffixIcon:U,activeIndex:We||se?Re:null,activeHelp:!!pn,allHelp:!!pn&&ut==="preset",focused:We,onFocus:An,onBlur:Zt,onKeyDown:Jn,onSubmit:Bt,value:Ut,maskFormat:u,onChange:en,onInputChange:_n,format:s,inputReadOnly:V,disabled:S,open:se,onOpenChange:Se,onClick:Pt,onClear:rn,invalid:Ye,onInvalid:et,onActiveInfo:Cn}))))}var lq=l.forwardRef(iq);function sq(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,i=e.formatDate,s=e.disabled,u=e.maxTagCount,d=e.placeholder,m="".concat(t,"-selector"),v="".concat(t,"-selection"),p="".concat(v,"-overflow");function y(g,S){return l.createElement("span",{className:re("".concat(v,"-item")),title:typeof g=="string"?g:null},l.createElement("span",{className:"".concat(v,"-item-content")},g),!s&&S&&l.createElement("span",{onMouseDown:function(w){w.preventDefault()},onClick:S,className:"".concat(v,"-item-remove")},a))}function h(g){var S=i(g),x=function(R){R&&R.stopPropagation(),r(g)};return y(S,x)}function C(g){var S="+ ".concat(g.length," ...");return y(S)}return l.createElement("div",{className:m},l.createElement(ga,{prefixCls:p,data:n,renderItem:h,renderRest:C,itemKey:function(S){return i(S)},maxCount:u}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var cq=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function uq(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,u=e.generateConfig,d=e.placeholder,m=e.className,v=e.style,p=e.onClick,y=e.onClear,h=e.internalPicker,C=e.value,g=e.onChange,S=e.onSubmit;e.onInputChange;var x=e.multiple,w=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var R=e.disabled,$=e.invalid;e.inputReadOnly;var O=e.direction;e.onOpenChange;var I=e.onMouseDown;e.required,e["aria-required"];var N=e.autoFocus,P=e.tabIndex,T=e.removeIcon,k=jt(e,cq),H=O==="rtl",A=l.useContext(wa),_=A.prefixCls,D=l.useRef(),j=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(ee){var J;(J=j.current)===null||J===void 0||J.focus(ee)},blur:function(){var ee;(ee=j.current)===null||ee===void 0||ee.blur()}}});var z=WM(k),F=function(ee){g([ee])},W=function(ee){var J=C.filter(function(oe){return oe&&!Gr(u,s,oe,ee,h)});g(J),n||S()},K=VM(X(X({},e),{},{onChange:F}),function(Z){var ee=Z.valueTexts;return{value:ee[0]||"",active:i}}),B=ce(K,2),V=B[0],U=B[1],q=!!(o&&C.length&&!R),G=x?l.createElement(l.Fragment,null,l.createElement(sq,{prefixCls:_,value:C,onRemove:W,formatDate:U,maxTagCount:w,disabled:R,removeIcon:T,placeholder:d}),l.createElement("input",{className:"".concat(_,"-multiple-input"),value:C.map(U).join(","),ref:j,readOnly:!0,autoFocus:N,tabIndex:P}),l.createElement(lp,{type:"suffix",icon:a}),q&&l.createElement(mb,{icon:o,onClear:y})):l.createElement(vb,Me({ref:j},V(),{autoFocus:N,tabIndex:P,suffixIcon:a,clearIcon:q&&l.createElement(mb,{icon:o,onClear:y}),showActiveCls:!1}));return l.createElement("div",Me({},z,{className:re(_,Y(Y(Y(Y(Y({},"".concat(_,"-multiple"),x),"".concat(_,"-focused"),i),"".concat(_,"-disabled"),R),"".concat(_,"-invalid"),$),"".concat(_,"-rtl"),H),m),style:v,ref:D,onClick:p,onMouseDown:function(ee){var J,oe=ee.target;oe!==((J=j.current)===null||J===void 0?void 0:J.inputElement)&&ee.preventDefault(),I==null||I(ee)}}),r&&l.createElement("div",{className:"".concat(_,"-prefix")},r),G)}var dq=l.forwardRef(uq);function fq(e,t){var n=IM(e),r=ce(n,6),o=r[0],a=r[1],i=r[2],s=r[3],u=r[4],d=r[5],m=o,v=m.prefixCls,p=m.styles,y=m.classNames,h=m.order,C=m.defaultValue,g=m.value,S=m.needConfirm,x=m.onChange,w=m.onKeyDown,R=m.disabled,$=m.disabledDate,O=m.minDate,I=m.maxDate,N=m.defaultOpen,P=m.open,T=m.onOpenChange,k=m.locale,H=m.generateConfig,A=m.picker,_=m.showNow,D=m.showToday,j=m.showTime,z=m.mode,F=m.onPanelChange,W=m.onCalendarChange,K=m.onOk,B=m.multiple,V=m.defaultPickerValue,U=m.pickerValue,q=m.onPickerValueChange,G=m.inputReadOnly,Z=m.suffixIcon,ee=m.removeIcon,J=m.onFocus,oe=m.onBlur,ae=m.presets,te=m.components,ne=m.cellRender,ie=m.dateRender,de=m.monthCellRender,ve=m.onClick,se=NM(t);function he(xt){return xt===null?null:B?xt:xt[0]}var Se=AM(H,k,a),je=PM(P,N,[R],T),Te=ce(je,2),Ce=Te[0],xe=Te[1],Ne=function(St,en,_n){if(W){var An=X({},_n);delete An.range,W(he(St),he(en),An)}},Ee=function(St){K==null||K(he(St))},Be=zM(H,k,s,!1,h,C,g,Ne,Ee),Ve=ce(Be,5),tt=Ve[0],nt=Ve[1],We=Ve[2],Ze=Ve[3],Le=Ve[4],Re=We(),qe=TM([R]),ye=ce(qe,4),Oe=ye[0],Fe=ye[1],we=ye[2],He=ye[3],ot=function(St){Fe(!0),J==null||J(St,{})},gt=function(St){Fe(!1),oe==null||oe(St,{})},yt=Tn(A,{value:z}),Rt=ce(yt,2),qt=Rt[0],Wt=Rt[1],It=qt==="date"&&j?"datetime":qt,bt=FM(A,qt,_,D),mt=x&&function(xt,St){x(he(xt),he(St))},ue=LM(X(X({},o),{},{onChange:mt}),tt,nt,We,Ze,[],s,Oe,Ce,d),fe=ce(ue,2),be=fe[1],De=bM(Re,d),Pe=ce(De,2),ke=Pe[0],Qe=Pe[1],Ke=l.useMemo(function(){return ke.some(function(xt){return xt})},[ke]),Ye=function(St,en){if(q){var _n=X(X({},en),{},{mode:en.mode[0]});delete _n.range,q(St[0],_n)}},et=_M(H,k,Re,[qt],Ce,He,a,!1,V,U,zl(j==null?void 0:j.defaultOpenValue),Ye,O,I),Je=ce(et,2),Ge=Je[0],rt=Je[1],st=ln(function(xt,St,en){if(Wt(St),F&&en!==!1){var _n=xt||Re[Re.length-1];F(_n,St)}}),Nt=function(){be(We()),xe(!1,{force:!0})},Lt=function(St){!R&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),xe(!0),ve==null||ve(St)},Bt=function(){be(null),xe(!1,{force:!0})},Pt=l.useState(null),rn=ce(Pt,2),Jt=rn[0],ct=rn[1],ut=l.useState(null),Tt=ce(ut,2),Ct=Tt[0],Yt=Tt[1],pn=l.useMemo(function(){var xt=[Ct].concat(_e(Re)).filter(function(St){return St});return B?xt:xt.slice(0,1)},[Re,Ct,B]),On=l.useMemo(function(){return!B&&Ct?[Ct]:Re.filter(function(xt){return xt})},[Re,Ct,B]);l.useEffect(function(){Ce||Yt(null)},[Ce]);var Ut=MM(ae),wt=function(St){Yt(St),ct("preset")},Mt=function(St){var en=B?Se(We(),St):[St],_n=be(en);_n&&!B&&xe(!1,{force:!0})},Kt=function(St){Mt(St)},Cn=function(St){Yt(St),ct("cell")},on=function(St){xe(!0),ot(St)},Pn=function(St){if(we("panel"),!(B&&It!==A)){var en=B?Se(We(),St):[St];Ze(en),!S&&!i&&a===It&&Nt()}},ar=function(){xe(!1)},Yn=XC(ne,ie,de),pr=l.useMemo(function(){var xt=wr(o,!1),St=Hn(o,[].concat(_e(Object.keys(xt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return X(X({},St),{},{multiple:o.multiple})},[o]),Qn=l.createElement(HM,Me({},pr,{showNow:bt,showTime:j,disabledDate:$,onFocus:on,onBlur:gt,picker:A,mode:qt,internalMode:It,onPanelChange:st,format:u,value:Re,isInvalid:d,onChange:null,onSelect:Pn,pickerValue:Ge,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:rt,hoverValue:pn,onHover:Cn,needConfirm:S,onSubmit:Nt,onOk:Le,presets:Ut,onPresetHover:wt,onPresetSubmit:Mt,onNow:Kt,cellRender:Yn})),Wn=function(St){Ze(St)},Zn=function(){we("input")},mn=function(St){we("input"),xe(!0,{inherit:!0}),ot(St)},Ot=function(St){xe(!1),gt(St)},$t=function(St,en){St.key==="Tab"&&Nt(),w==null||w(St,en)},un=l.useMemo(function(){return{prefixCls:v,locale:k,generateConfig:H,button:te.button,input:te.input}},[v,k,H,te.button,te.input]);return dn(function(){Ce&&He!==void 0&&st(null,A,!1)},[Ce,He,A]),dn(function(){var xt=we();!Ce&&xt==="input"&&(xe(!1),Nt()),!Ce&&i&&!S&&xt==="panel"&&Nt()},[Ce]),l.createElement(wa.Provider,{value:un},l.createElement(pM,Me({},yM(o),{popupElement:Qn,popupStyle:p.popup,popupClassName:y.popup,visible:Ce,onClose:ar}),l.createElement(dq,Me({},o,{ref:se,suffixIcon:Z,removeIcon:ee,activeHelp:!!Ct,allHelp:!!Ct&&Jt==="preset",focused:Oe,onFocus:mn,onBlur:Ot,onKeyDown:$t,onSubmit:Nt,value:On,maskFormat:u,onChange:Wn,onInputChange:Zn,internalPicker:a,format:s,inputReadOnly:G,disabled:R,open:Ce,onOpenChange:xe,onClick:Lt,onClear:Bt,invalid:Ke,onInvalid:function(St){Qe(St,0)}}))))}var mq=l.forwardRef(fq);const KM=l.createContext(null),vq=KM.Provider,UM=l.createContext(null),pq=UM.Provider;var gq=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],qM=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,m=e.type,v=m===void 0?"checkbox":m,p=e.title,y=e.onChange,h=jt(e,gq),C=l.useRef(null),g=l.useRef(null),S=Tn(d,{value:i}),x=ce(S,2),w=x[0],R=x[1];l.useImperativeHandle(t,function(){return{focus:function(N){var P;(P=C.current)===null||P===void 0||P.focus(N)},blur:function(){var N;(N=C.current)===null||N===void 0||N.blur()},input:C.current,nativeElement:g.current}});var $=re(r,o,Y(Y({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),s)),O=function(N){s||("checked"in e||R(N.target.checked),y==null||y({target:X(X({},e),{},{type:v,checked:N.target.checked}),stopPropagation:function(){N.stopPropagation()},preventDefault:function(){N.preventDefault()},nativeEvent:N.nativeEvent}))};return l.createElement("span",{className:$,title:p,style:a,ref:g},l.createElement("input",Me({},h,{className:"".concat(r,"-input"),ref:C,onChange:O,disabled:s,checked:!!w,type:v})),l.createElement("span",{className:"".concat(r,"-inner")}))});function YM(e){const t=pe.useRef(null),n=()=>{cn.cancel(t.current),t.current=null};return[()=>{n(),t.current=cn(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const hq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},kn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},yq=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:u,colorBorder:d,lineWidth:m,colorBgContainerDisabled:v,colorTextDisabled:p,paddingXS:y,dotColorDisabled:h,lineType:C,radioColor:g,radioBgColor:S,calc:x}=e,w=`${t}-inner`,$=x(o).sub(x(4).mul(2)),O=x(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},kn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${le(m)} ${C} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},kn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},ki(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:O,height:O,marginBlockStart:x(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:x(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:O,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:O,height:O,backgroundColor:u,borderColor:d,borderStyle:"solid",borderWidth:m,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:v,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${x($).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}})}},bq=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:u,buttonPaddingInline:d,fontSize:m,buttonBg:v,fontSizeLG:p,controlHeightLG:y,controlHeightSM:h,paddingXS:C,borderRadius:g,borderRadiusSM:S,borderRadiusLG:x,buttonCheckedBg:w,buttonSolidCheckedColor:R,colorTextDisabled:$,colorBgContainerDisabled:O,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:N,colorPrimary:P,colorPrimaryHover:T,colorPrimaryActive:k,buttonSolidCheckedBg:H,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:_,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:m,lineHeight:le(D(n).sub(D(o).mul(2)).equal()),background:v,border:`${le(o)} ${a} ${i}`,borderBlockStartWidth:D(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${u}`,`background ${u}`,`box-shadow ${u}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:D(o).mul(-1).equal(),insetInlineStart:D(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${le(o)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:y,fontSize:p,lineHeight:le(D(y).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:h,paddingInline:D(C).sub(o).equal(),paddingBlock:0,lineHeight:le(D(h).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Object.assign({},ki(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:w,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:R,background:H,borderColor:H,"&:hover":{color:R,background:A,borderColor:A},"&:active":{color:R,background:_,borderColor:_}},"&-disabled":{color:$,backgroundColor:O,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:O,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:N,backgroundColor:I,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Cq=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:u,controlItemBgActiveDisabled:d,colorTextLightSolid:m,colorPrimary:v,colorPrimaryHover:p,colorPrimaryActive:y,colorWhite:h}=e,C=4,g=a,S=t?g-C*2:g-(C+o)*2;return{radioSize:g,dotSize:S,dotColorDisabled:u,buttonSolidCheckedColor:m,buttonSolidCheckedBg:v,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:y,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:u,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?v:h,radioBgColor:t?s:v}},GM=In("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${le(n)} ${t}`,a=nn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[hq(a),yq(a),bq(a)]},Cq,{unitless:{radioSize:!0,dotSize:!0}});var Sq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xq=(e,t)=>{var n,r;const o=l.useContext(KM),a=l.useContext(UM),{getPrefixCls:i,direction:s,radio:u}=l.useContext(Dt),d=l.useRef(null),m=To(t,d),{isFormItemInput:v}=l.useContext(Ar),p=j=>{var z,F;(z=e.onChange)===null||z===void 0||z.call(e,j),(F=o==null?void 0:o.onChange)===null||F===void 0||F.call(o,j)},{prefixCls:y,className:h,rootClassName:C,children:g,style:S,title:x}=e,w=Sq(e,["prefixCls","className","rootClassName","children","style","title"]),R=i("radio",y),$=((o==null?void 0:o.optionType)||a)==="button",O=$?`${R}-button`:R,I=vr(R),[N,P,T]=GM(R,I),k=Object.assign({},w),H=l.useContext(go);o&&(k.name=o.name,k.onChange=p,k.checked=e.value===o.value,k.disabled=(n=k.disabled)!==null&&n!==void 0?n:o.disabled),k.disabled=(r=k.disabled)!==null&&r!==void 0?r:H;const A=re(`${O}-wrapper`,{[`${O}-wrapper-checked`]:k.checked,[`${O}-wrapper-disabled`]:k.disabled,[`${O}-wrapper-rtl`]:s==="rtl",[`${O}-wrapper-in-form-item`]:v,[`${O}-wrapper-block`]:!!(o!=null&&o.block)},u==null?void 0:u.className,h,C,P,T,I),[_,D]=YM(k.onClick);return N(l.createElement(Iv,{component:"Radio",disabled:k.disabled},l.createElement("label",{className:A,style:Object.assign(Object.assign({},u==null?void 0:u.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:_},l.createElement(qM,Object.assign({},k,{className:re(k.className,{[Rv]:!$}),type:"radio",prefixCls:O,ref:m,onClick:D})),g!==void 0?l.createElement("span",{className:`${O}-label`},g):null)))},Ym=l.forwardRef(xq),wq=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Dt),o=Wv(),{prefixCls:a,className:i,rootClassName:s,options:u,buttonStyle:d="outline",disabled:m,children:v,size:p,style:y,id:h,optionType:C,name:g=o,defaultValue:S,value:x,block:w=!1,onChange:R,onMouseEnter:$,onMouseLeave:O,onFocus:I,onBlur:N}=e,[P,T]=Tn(S,{value:x}),k=l.useCallback(V=>{const U=P,q=V.target.value;"value"in e||T(q),q!==U&&(R==null||R(V))},[P,T,R]),H=n("radio",a),A=`${H}-group`,_=vr(H),[D,j,z]=GM(H,_);let F=v;u&&u.length>0&&(F=u.map(V=>typeof V=="string"||typeof V=="number"?l.createElement(Ym,{key:V.toString(),prefixCls:H,disabled:m,value:V,checked:P===V},V):l.createElement(Ym,{key:`radio-group-value-options-${V.value}`,prefixCls:H,disabled:V.disabled||m,value:V.value,checked:P===V.value,title:V.title,style:V.style,className:V.className,id:V.id,required:V.required},V.label)));const W=Xr(p),K=re(A,`${A}-${d}`,{[`${A}-${W}`]:W,[`${A}-rtl`]:r==="rtl",[`${A}-block`]:w},i,s,j,z,_),B=l.useMemo(()=>({onChange:k,value:P,disabled:m,name:g,optionType:C,block:w}),[k,P,m,g,C,w]);return D(l.createElement("div",Object.assign({},wr(e,{aria:!0,data:!0}),{className:K,style:y,onMouseEnter:$,onMouseLeave:O,onFocus:I,onBlur:N,id:h,ref:t}),l.createElement(vq,{value:B},F)))}),$q=l.memo(wq);var Eq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Oq=(e,t)=>{const{getPrefixCls:n}=l.useContext(Dt),{prefixCls:r}=e,o=Eq(e,["prefixCls"]),a=n("radio",r);return l.createElement(pq,{value:"button"},l.createElement(Ym,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},Rq=l.forwardRef(Oq),bd=Ym;bd.Button=Rq;bd.Group=$q;bd.__ANT_RADIO=!0;function ic(e){return nn(e,{inputAffixPadding:e.paddingXXS})}const lc=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:m,controlPaddingHorizontal:v,colorFillAlter:p,colorPrimaryHover:y,colorPrimary:h,controlOutlineWidth:C,controlOutline:g,colorErrorOutline:S,colorWarningOutline:x,colorBgContainer:w,inputFontSize:R,inputFontSizeLG:$,inputFontSizeSM:O}=e,I=R||n,N=O||I,P=$||s,T=Math.round((t-I*r)/2*10)/10-o,k=Math.round((a-N*r)/2*10)/10-o,H=Math.ceil((i-P*u)/2*10)/10-o;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(k,0),paddingBlockLG:Math.max(H,0),paddingInline:d-o,paddingInlineSM:m-o,paddingInlineLG:v-o,addonBg:p,activeBorderColor:h,hoverBorderColor:y,activeShadow:`0 0 0 ${C}px ${g}`,errorActiveShadow:`0 0 0 ${C}px ${S}`,warningActiveShadow:`0 0 0 ${C}px ${x}`,hoverBg:w,activeBg:w,inputFontSize:I,inputFontSizeLG:P,inputFontSizeSM:N}},Iq=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),sp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Iq(nn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),tS=(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}}),c2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),XM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sp(e))}),c2(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),c2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u2=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Pq=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u2(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u2(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},sp(e))}})}),QM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},ZM=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},d2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ZM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),JM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sp(e))}),d2(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),d2(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),f2=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Nq=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},f2(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),f2(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),eT=(e,t)=>({background:e.colorBgContainer,borderWidth:`${le(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),m2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},eT(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`}}),tT=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eT(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"}}),m2(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),m2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),rT=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${le(t)} ${le(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},nS=e=>({padding:`${le(e.paddingBlockSM)} ${le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),rS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${le(e.paddingBlock)} ${le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},nT(e.colorTextPlaceholder)),{"&-lg":Object.assign({},rT(e)),"&-sm":Object.assign({},nS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Mq=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},rT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},nS(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${le(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${le(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},wl()),{[`${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},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${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,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Tq=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]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kn(e)),rS(e)),XM(e)),JM(e)),QM(e)),tT(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"}})}},_q=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${le(e.inputAffixPadding)}`}}}},Dq=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},rS(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),_q(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},jq=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},kn(e)),Mq(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Pq(e)),Nq(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}}})})}},kq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},zq=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},oT=In(["Input","Shared"],e=>{const t=nn(e,ic(e));return[Tq(t),Dq(t)]},lc,{resetFont:!1}),aT=In(["Input","Component"],e=>{const t=nn(e,ic(e));return[jq(t),kq(t),zq(t),Hv(t)]},lc,{resetFont:!1}),o0=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=RN(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:le(a.itemLineHeight)}}}]},Lq=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=nn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=nn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[o0(o,"small"),o0(e),o0(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},IN(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Fq=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:s,lineType:u,colorPrimary:d,cellActiveWithRangeBg:m,colorTextLightSolid:v,colorTextDisabled:p,cellBgDisabled:y,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:le(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${le(s)} ${u} ${d}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:m}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:v,background:d},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:y}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},Aq=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:u,paddingXXS:d,colorBgContainer:m,lineWidth:v,lineType:p,borderRadiusLG:y,colorPrimary:h,colorTextHeading:C,colorSplit:g,pickerControlIconBorderWidth:S,colorIcon:x,textHeight:w,motionDurationMid:R,colorIconHover:$,fontWeightStrong:O,cellHeight:I,pickerCellPaddingVertical:N,colorTextDisabled:P,colorText:T,fontSize:k,motionDurationSlow:H,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:_,borderRadiusSM:D,colorTextLightSolid:j,cellHoverBg:z,timeColumnHeight:F,timeColumnWidth:W,timeCellHeight:K,controlItemBgActive:B,marginXXS:V,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:q}=e,G=e.calc(i).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:m,borderRadius:y,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${le(u)}`,color:C,borderBottom:`${le(v)} ${p} ${g}`,"> *":{flex:"none"},button:{padding:0,color:x,lineHeight:le(w),background:"transparent",border:0,cursor:"pointer",transition:`color ${R}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:k,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:O,lineHeight:le(w),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:u},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(N).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${le(N)} 0`,color:P,cursor:"pointer","&-in-view":{color:T}},Fq(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${le(u)}`}},"&-quarter-panel":{[`${t}-content`]:{height:_}},"&-decade-panel":{[r]:{padding:`0 ${le(e.calc(u).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${le(u)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${le(u)} ${le(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
&-selected ${r},
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${R}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td:before":{background:z},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new tn(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${le(u)} ${le(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${le(v)} ${p} ${g}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${H}`},"&-active":{[`${t}-date-panel,
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:W,margin:`${le(d)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${R}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${le(K)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${le(v)} ${p} ${g}`},"&-active":{background:new tn(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(W).sub(e.calc(V).mul(2)).equal(),height:K,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(W).sub(K).div(2).equal(),color:T,lineHeight:le(K),borderRadius:D,cursor:"pointer",transition:`background ${R}`,"&:hover":{background:z}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},Bq=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:u,lineType:d,colorSplit:m}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${le(r)} ${d} ${m}`,"&-extra":{padding:`0 ${le(o)}`,lineHeight:le(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${le(r)} ${d} ${m}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:le(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:le(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:s,borderColor:u,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Hq=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},Vq=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,s=a*2,u=i*2,d=Math.min(n-s,n-u),m=Math.min(r-s,r-u),v=Math.min(o-s,o-u);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new tn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new tn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:d,multipleItemHeightSM:m,multipleItemHeightLG:v,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Wq=e=>Object.assign(Object.assign(Object.assign(Object.assign({},lc(e)),Vq(e)),Xv(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Kq=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},XM(e)),tT(e)),JM(e)),QM(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},a0=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${le(a)} ${le(r)} ${le(i)}`}},Uq=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},qq=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:u,motionDurationMid:d,colorTextDisabled:m,colorTextPlaceholder:v,controlHeightLG:p,fontSizeLG:y,controlHeightSM:h,paddingInlineSM:C,paddingXS:g,marginXS:S,colorIcon:x,lineWidthBold:w,colorPrimary:R,motionDurationSlow:$,zIndexPopup:O,paddingXXS:I,sizePopupArrow:N,colorBgElevated:P,borderRadiusLG:T,boxShadowSecondary:k,borderRadiusSM:H,colorSplit:A,cellHoverBg:_,presetsWidth:D,presetsMaxWidth:j,boxShadowPopoverArrow:z,fontHeight:F,fontHeightLG:W,lineHeightLG:K}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},kn(e)),a0(e,r,F,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:u,transition:`border ${d}, box-shadow ${d}, background ${d}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${d}`},nT(v)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:m,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:v}}},"&-large":Object.assign(Object.assign({},a0(e,p,W,o)),{[`${t}-input > input`]:{fontSize:y,lineHeight:K}}),"&-small":Object.assign({},a0(e,h,F,C)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top"},"&:hover":{color:x}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:m,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:x},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:w,background:R,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${le(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},kn(e)),Aq(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Dv},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Tv},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:jv},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:_v},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${$} ease-out`},FN(e,P,z)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:P,borderRadius:T,boxShadow:k,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${le(a)} ${i} ${A}`,li:Object.assign(Object.assign({},Da),{borderRadius:H,paddingInline:g,paddingBlock:e.calc(h).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:S},"&:hover":{background:_}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${le(e.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Li(e,"slide-up"),Li(e,"slide-down"),Fs(e,"move-up"),Fs(e,"move-down")]},iT=In("DatePicker",e=>{const t=nn(ic(e),Hq(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Bq(t),qq(t),Kq(t),Uq(t),Lq(t),Hv(e,{focusElCls:`${e.componentCls}-focused`})]},Wq);function Yq(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,s=i===void 0?!1:i,u=r.debounceMode,d=u===void 0?void 0:u,m,v=!1,p=0;function y(){m&&clearTimeout(m)}function h(g){var S=g||{},x=S.upcomingOnly,w=x===void 0?!1:x;y(),v=!w}function C(){for(var g=arguments.length,S=new Array(g),x=0;x<g;x++)S[x]=arguments[x];var w=this,R=Date.now()-p;if(v)return;function $(){p=Date.now(),t.apply(w,S)}function O(){m=void 0}!s&&d&&!m&&$(),y(),d===void 0&&R>e?s?(p=Date.now(),a||(m=setTimeout(d?O:$,e))):$():a!==!0&&(m=setTimeout(d?O:$,d===void 0?e-R:e))}return C.cancel=h,C}function Gq(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return Yq(e,t,{debounceMode:a!==!1})}function fo(e,t){return e[t]}var Xq=["children"];function lT(e,t){return"".concat(e,"-").concat(t)}function Qq(e){return e&&e.type&&e.type.isTreeNode}function Cd(e,t){return e??t}function Hs(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function sT(e){function t(n){var r=po(n);return r.map(function(o){if(!Qq(o))return qn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,s=i.children,u=jt(i,Xq),d=X({key:a},u),m=t(s);return m.length&&(d.children=m),d}).filter(function(o){return o})}return t(e)}function i0(e,t,n){var r=Hs(n),o=r._title,a=r.key,i=r.children,s=new Set(t===!0?[]:t),u=[];function d(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function(p,y){for(var h=lT(v?v.pos:"0",y),C=Cd(p[a],h),g,S=0;S<o.length;S+=1){var x=o[S];if(p[x]!==void 0){g=p[x];break}}var w=Object.assign(Hn(p,[].concat(_e(o),[a,i])),{title:g,key:C,parent:v,pos:h,children:null,data:p,isStart:[].concat(_e(v?v.isStart:[]),[y===0]),isEnd:[].concat(_e(v?v.isEnd:[]),[y===m.length-1])});return u.push(w),t===!0||s.has(C)?w.children=d(p[i]||[],w):w.children=[],w})}return d(e),u}function Zq(e,t,n){var r={};ht(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,i=o.externalGetKey,s=o.fieldNames,u=Hs(s),d=u.key,m=u.children,v=a||m,p;i?typeof i=="string"?p=function(C){return C[i]}:typeof i=="function"&&(p=function(C){return i(C)}):p=function(C,g){return Cd(C[d],g)};function y(h,C,g,S){var x=h?h[v]:e,w=h?lT(g.pos,C):"0",R=h?[].concat(_e(S),[h]):[];if(h){var $=p(h,w),O={node:h,index:C,pos:w,key:$,parentPos:g.node?g.pos:null,level:g.level+1,nodes:R};t(O)}x&&x.forEach(function(I,N){y(I,N,{node:h,pos:w,level:g?g.level+1:-1},R)})}y(null)}function oS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,u=arguments.length>2?arguments[2]:void 0,d=a||u,m={},v={},p={posEntities:m,keyEntities:v};return n&&(p=n(p)||p),Zq(e,function(y){var h=y.node,C=y.index,g=y.pos,S=y.key,x=y.parentPos,w=y.level,R=y.nodes,$={node:h,nodes:R,index:C,key:S,pos:g,level:w},O=Cd(S,g);m[g]=$,v[O]=$,$.parent=m[x],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,p)},{externalGetKey:d,childrenPropName:i,fieldNames:s}),o&&o(p),p}function Pu(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,u=t.dragOverNodeKey,d=t.dropPosition,m=t.keyEntities,v=fo(m,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(v?v.pos:""),dragOver:u===e&&d===0,dragOverGapTop:u===e&&d===-1,dragOverGapBottom:u===e&&d===1};return p}function yr(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,m=e.dragOverGapBottom,v=e.pos,p=e.active,y=e.eventKey,h=X(X({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:u,dragOverGapTop:d,dragOverGapBottom:m,pos:v,active:p,key:y});return"props"in h||Object.defineProperty(h,"props",{get:function(){return qn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function cT(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Jq(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function eY(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(v){var p=v.key,y=v.node,h=v.children,C=h===void 0?[]:h;o.has(p)&&!r(y)&&C.filter(function(g){return!r(g.node)}).forEach(function(g){o.add(g.key)})})}for(var u=new Set,d=n;d>=0;d-=1){var m=t.get(d)||new Set;m.forEach(function(v){var p=v.parent,y=v.node;if(!(r(y)||!v.parent||u.has(v.parent.key))){if(r(v.parent.node)){u.add(p.key);return}var h=!0,C=!1;(p.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var S=g.key,x=o.has(S);h&&!x&&(h=!1),!C&&(x||a.has(S))&&(C=!0)}),h&&o.add(p.key),C&&a.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(cT(a,o))}}function tY(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var u=n.get(s)||new Set;u.forEach(function(p){var y=p.key,h=p.node,C=p.children,g=C===void 0?[]:C;!a.has(y)&&!i.has(y)&&!o(h)&&g.filter(function(S){return!o(S.node)}).forEach(function(S){a.delete(S.key)})})}i=new Set;for(var d=new Set,m=r;m>=0;m-=1){var v=n.get(m)||new Set;v.forEach(function(p){var y=p.parent,h=p.node;if(!(o(h)||!p.parent||d.has(p.parent.key))){if(o(p.parent.node)){d.add(y.key);return}var C=!0,g=!1;(y.children||[]).filter(function(S){return!o(S.node)}).forEach(function(S){var x=S.key,w=a.has(x);C&&!w&&(C=!1),!g&&(w||i.has(x))&&(g=!0)}),C||a.delete(y.key),g&&i.add(y.key),d.add(y.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(cT(i,a))}}function Ns(e,t,n,r){var o=[],a;r?a=r:a=Jq;var i=new Set(e.filter(function(m){var v=!!fo(n,m);return v||o.push(m),v})),s=new Map,u=0;Object.keys(n).forEach(function(m){var v=n[m],p=v.level,y=s.get(p);y||(y=new Set,s.set(p,y)),y.add(v),u=Math.max(u,p)}),qn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(m){return"'".concat(m,"'")}).join(", ")));var d;return t===!0?d=eY(i,s,u,a):d=tY(i,t.halfCheckedKeys,s,u,a),d}const nY=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},kn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},kn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},kn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},ki(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${le(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function uT(e,t){const n=nn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[nY(n)]}const dT=In("Checkbox",(e,{prefixCls:t})=>[uT(t,e)]),fT=pe.createContext(null);var rY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oY=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:m,skipGroup:v=!1,disabled:p}=e,y=rY(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:C,checkbox:g}=l.useContext(Dt),S=l.useContext(fT),{isFormItemInput:x}=l.useContext(Ar),w=l.useContext(go),R=(n=(S==null?void 0:S.disabled)||p)!==null&&n!==void 0?n:w,$=l.useRef(y.value),O=l.useRef(null),I=To(t,O);l.useEffect(()=>{S==null||S.registerValue(y.value)},[]),l.useEffect(()=>{if(!v)return y.value!==$.current&&(S==null||S.cancelValue($.current),S==null||S.registerValue(y.value),$.current=y.value),()=>S==null?void 0:S.cancelValue(y.value)},[y.value]),l.useEffect(()=>{var F;!((F=O.current)===null||F===void 0)&&F.input&&(O.current.input.indeterminate=s)},[s]);const N=h("checkbox",r),P=vr(N),[T,k,H]=dT(N,P),A=Object.assign({},y);S&&!v&&(A.onChange=(...F)=>{y.onChange&&y.onChange.apply(y,F),S.toggleOption&&S.toggleOption({label:i,value:y.value})},A.name=S.name,A.checked=S.value.includes(y.value));const _=re(`${N}-wrapper`,{[`${N}-rtl`]:C==="rtl",[`${N}-wrapper-checked`]:A.checked,[`${N}-wrapper-disabled`]:R,[`${N}-wrapper-in-form-item`]:x},g==null?void 0:g.className,o,a,H,P,k),D=re({[`${N}-indeterminate`]:s},Rv,k),[j,z]=YM(A.onClick);return T(l.createElement(Iv,{component:"Checkbox",disabled:R},l.createElement("label",{className:_,style:Object.assign(Object.assign({},g==null?void 0:g.style),u),onMouseEnter:d,onMouseLeave:m,onClick:j},l.createElement(qM,Object.assign({},A,{onClick:z,prefixCls:N,className:D,disabled:R,ref:I})),i!=null&&l.createElement("span",{className:`${N}-label`},i))))},mT=l.forwardRef(oY);var aY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iY=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:u,onChange:d}=e,m=aY(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:p}=l.useContext(Dt),[y,h]=l.useState(m.value||n||[]),[C,g]=l.useState([]);l.useEffect(()=>{"value"in m&&h(m.value||[])},[m.value]);const S=l.useMemo(()=>o.map(D=>typeof D=="string"||typeof D=="number"?{label:D,value:D}:D),[o]),x=D=>{g(j=>j.filter(z=>z!==D))},w=D=>{g(j=>[].concat(_e(j),[D]))},R=D=>{const j=y.indexOf(D.value),z=_e(y);j===-1?z.push(D.value):z.splice(j,1),"value"in m||h(z),d==null||d(z.filter(F=>C.includes(F)).sort((F,W)=>{const K=S.findIndex(V=>V.value===F),B=S.findIndex(V=>V.value===W);return K-B}))},$=v("checkbox",a),O=`${$}-group`,I=vr($),[N,P,T]=dT($,I),k=Hn(m,["value","disabled"]),H=o.length?S.map(D=>l.createElement(mT,{prefixCls:$,key:D.value.toString(),disabled:"disabled"in D?D.disabled:m.disabled,value:D.value,checked:y.includes(D.value),onChange:D.onChange,className:re(`${O}-item`,D.className),style:D.style,title:D.title,id:D.id,required:D.required},D.label)):r,A=l.useMemo(()=>({toggleOption:R,value:y,disabled:m.disabled,name:m.name,registerValue:w,cancelValue:x}),[R,y,m.disabled,m.name,w,x]),_=re(O,{[`${O}-rtl`]:p==="rtl"},i,s,T,I,P);return N(l.createElement("div",Object.assign({className:_,style:u},k,{ref:t}),l.createElement(fT.Provider,{value:A},H)))}),Vs=mT;Vs.Group=iY;Vs.__ANT_CHECKBOX=!0;const vT=l.createContext({});var lY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function v2(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const sY=["xs","sm","md","lg","xl","xxl"],Uo=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Dt),{gutter:o,wrap:a}=l.useContext(vT),{prefixCls:i,span:s,order:u,offset:d,push:m,pull:v,className:p,children:y,flex:h,style:C}=e,g=lY(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[x,w,R]=R7(S),$={};let O={};sY.forEach(P=>{let T={};const k=e[P];typeof k=="number"?T.span=k:typeof k=="object"&&(T=k||{}),delete g[P],O=Object.assign(Object.assign({},O),{[`${S}-${P}-${T.span}`]:T.span!==void 0,[`${S}-${P}-order-${T.order}`]:T.order||T.order===0,[`${S}-${P}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${P}-push-${T.push}`]:T.push||T.push===0,[`${S}-${P}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:r==="rtl"}),T.flex&&(O[`${S}-${P}-flex`]=!0,$[`--${S}-${P}-flex`]=v2(T.flex))});const I=re(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${u}`]:u,[`${S}-offset-${d}`]:d,[`${S}-push-${m}`]:m,[`${S}-pull-${v}`]:v},p,O,w,R),N={};if(o&&o[0]>0){const P=o[0]/2;N.paddingLeft=P,N.paddingRight=P}return h&&(N.flex=v2(h),a===!1&&!N.minWidth&&(N.minWidth=0)),x(l.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},N),C),$),className:I,ref:t}),y))});function cY(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};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Fi.length;s++){const u=Fi[s];if(o[u]&&a[u]!==void 0){n[i]=a[u];break}}else n[i]=a}),n}var uY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function p2(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Fi.length;a++){const i=Fi[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return l.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const ws=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:u=0,wrap:d}=e,m=uY(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:v,direction:p}=l.useContext(Dt),y=gd(!0,null),h=p2(o,y),C=p2(r,y),g=v("row",n),[S,x,w]=O7(g),R=cY(u,y),$=re(g,{[`${g}-no-wrap`]:d===!1,[`${g}-${C}`]:C,[`${g}-${h}`]:h,[`${g}-rtl`]:p==="rtl"},a,x,w),O={},I=R[0]!=null&&R[0]>0?R[0]/-2:void 0;I&&(O.marginLeft=I,O.marginRight=I);const[N,P]=R;O.rowGap=P;const T=l.useMemo(()=>({gutter:[N,P],wrap:d}),[N,P,d]);return S(l.createElement(vT.Provider,{value:T},l.createElement("div",Object.assign({},m,{className:$,style:Object.assign(Object.assign({},O),i),ref:t}),s)))}),dY=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},fY=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},kn(e)),{borderBlockStart:`${le(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${le(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${le(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${le(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${le(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${le(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${le(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},mY=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),vY=In("Divider",e=>{const t=nn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[fY(t),dY(t)]},mY,{unitless:{orientationMargin:!0}});var pY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gY={small:"sm",middle:"md"},hY=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=Er("divider"),{prefixCls:a,type:i="horizontal",orientation:s="center",orientationMargin:u,className:d,rootClassName:m,children:v,dashed:p,variant:y="solid",plain:h,style:C,size:g}=e,S=pY(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),x=t("divider",a),[w,R,$]=vY(x),O=Xr(g),I=gY[O],N=!!v,P=l.useMemo(()=>s==="left"?n==="rtl"?"end":"start":s==="right"?n==="rtl"?"start":"end":s,[n,s]),T=P==="start"&&u!=null,k=P==="end"&&u!=null,H=re(x,r,R,$,`${x}-${i}`,{[`${x}-with-text`]:N,[`${x}-with-text-${P}`]:N,[`${x}-dashed`]:!!p,[`${x}-${y}`]:y!=="solid",[`${x}-plain`]:!!h,[`${x}-rtl`]:n==="rtl",[`${x}-no-default-orientation-margin-start`]:T,[`${x}-no-default-orientation-margin-end`]:k,[`${x}-${I}`]:!!I},d,m),A=l.useMemo(()=>typeof u=="number"?u:/^\d+$/.test(u)?Number(u):u,[u]),_={marginInlineStart:T?A:void 0,marginInlineEnd:k?A:void 0};return w(l.createElement("div",Object.assign({className:H,style:Object.assign(Object.assign({},o),C)},S,{role:"separator"}),v&&i!=="vertical"&&l.createElement("span",{className:`${x}-inner-text`,style:_},v)))};function yY(e){return!!(e.addonBefore||e.addonAfter)}function bY(e){return!!(e.prefix||e.suffix||e.allowClear)}function g2(e,t,n){var 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=function(){t.setSelectionRange.apply(t,arguments)},o}function Gm(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=g2(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=g2(t,e,r),n(o);return}n(o)}}function pT(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var gT=pe.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,u=e.prefix,d=e.suffix,m=e.addonBefore,v=e.addonAfter,p=e.className,y=e.style,h=e.disabled,C=e.readOnly,g=e.focused,S=e.triggerFocus,x=e.allowClear,w=e.value,R=e.handleReset,$=e.hidden,O=e.classes,I=e.classNames,N=e.dataAttrs,P=e.styles,T=e.components,k=e.onClear,H=i??a,A=(T==null?void 0:T.affixWrapper)||"span",_=(T==null?void 0:T.groupWrapper)||"span",D=(T==null?void 0:T.wrapper)||"span",j=(T==null?void 0:T.groupAddon)||"span",z=l.useRef(null),F=function(ve){var se;(se=z.current)!==null&&se!==void 0&&se.contains(ve.target)&&(S==null||S())},W=bY(e),K=l.cloneElement(H,{value:w,className:re((n=H.props)===null||n===void 0?void 0:n.className,!W&&(I==null?void 0:I.variant))||null}),B=l.useRef(null);if(pe.useImperativeHandle(t,function(){return{nativeElement:B.current||z.current}}),W){var V=null;if(x){var U=!h&&!C&&w,q="".concat(s,"-clear-icon"),G=ht(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";V=pe.createElement("button",{type:"button",tabIndex:-1,onClick:function(ve){R==null||R(ve),k==null||k()},onMouseDown:function(ve){return ve.preventDefault()},className:re(q,Y(Y({},"".concat(q,"-hidden"),!U),"".concat(q,"-has-suffix"),!!d))},G)}var Z="".concat(s,"-affix-wrapper"),ee=re(Z,Y(Y(Y(Y(Y({},"".concat(s,"-disabled"),h),"".concat(Z,"-disabled"),h),"".concat(Z,"-focused"),g),"".concat(Z,"-readonly"),C),"".concat(Z,"-input-with-clear-btn"),d&&x&&w),O==null?void 0:O.affixWrapper,I==null?void 0:I.affixWrapper,I==null?void 0:I.variant),J=(d||x)&&pe.createElement("span",{className:re("".concat(s,"-suffix"),I==null?void 0:I.suffix),style:P==null?void 0:P.suffix},V,d);K=pe.createElement(A,Me({className:ee,style:P==null?void 0:P.affixWrapper,onClick:F},N==null?void 0:N.affixWrapper,{ref:z}),u&&pe.createElement("span",{className:re("".concat(s,"-prefix"),I==null?void 0:I.prefix),style:P==null?void 0:P.prefix},u),K,J)}if(yY(e)){var oe="".concat(s,"-group"),ae="".concat(oe,"-addon"),te="".concat(oe,"-wrapper"),ne=re("".concat(s,"-wrapper"),oe,O==null?void 0:O.wrapper,I==null?void 0:I.wrapper),ie=re(te,Y({},"".concat(te,"-disabled"),h),O==null?void 0:O.group,I==null?void 0:I.groupWrapper);K=pe.createElement(_,{className:ie,ref:B},pe.createElement(D,{className:ne},m&&pe.createElement(j,{className:ae},m),K,v&&pe.createElement(j,{className:ae},v)))}return pe.cloneElement(K,{className:re((r=K.props)===null||r===void 0?void 0:r.className,p)||null,style:X(X({},(o=K.props)===null||o===void 0?void 0:o.style),y),hidden:$})}),CY=["show"];function hT(e,t){return l.useMemo(function(){var n={};t&&(n.show=ht(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,o=r.show,a=jt(r,CY);return X(X({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var SY=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xY=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,m=d===void 0?"rc-input":d,v=e.disabled,p=e.htmlSize,y=e.className,h=e.maxLength,C=e.suffix,g=e.showCount,S=e.count,x=e.type,w=x===void 0?"text":x,R=e.classes,$=e.classNames,O=e.styles,I=e.onCompositionStart,N=e.onCompositionEnd,P=jt(e,SY),T=l.useState(!1),k=ce(T,2),H=k[0],A=k[1],_=l.useRef(!1),D=l.useRef(!1),j=l.useRef(null),z=l.useRef(null),F=function(Ee){j.current&&pT(j.current,Ee)},W=Tn(e.defaultValue,{value:e.value}),K=ce(W,2),B=K[0],V=K[1],U=B==null?"":String(B),q=l.useState(null),G=ce(q,2),Z=G[0],ee=G[1],J=hT(S,g),oe=J.max||h,ae=J.strategy(U),te=!!oe&&ae>oe;l.useImperativeHandle(t,function(){var Ne;return{focus:F,blur:function(){var Be;(Be=j.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,Ve,tt){var nt;(nt=j.current)===null||nt===void 0||nt.setSelectionRange(Be,Ve,tt)},select:function(){var Be;(Be=j.current)===null||Be===void 0||Be.select()},input:j.current,nativeElement:((Ne=z.current)===null||Ne===void 0?void 0:Ne.nativeElement)||j.current}}),l.useEffect(function(){D.current&&(D.current=!1),A(function(Ne){return Ne&&v?!1:Ne})},[v]);var ne=function(Ee,Be,Ve){var tt=Be;if(!_.current&&J.exceedFormatter&&J.max&&J.strategy(Be)>J.max){if(tt=J.exceedFormatter(Be,{max:J.max}),Be!==tt){var nt,We;ee([((nt=j.current)===null||nt===void 0?void 0:nt.selectionStart)||0,((We=j.current)===null||We===void 0?void 0:We.selectionEnd)||0])}}else if(Ve.source==="compositionEnd")return;V(tt),j.current&&Gm(j.current,Ee,r,tt)};l.useEffect(function(){if(Z){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.setSelectionRange.apply(Ne,_e(Z))}},[Z]);var ie=function(Ee){ne(Ee,Ee.target.value,{source:"change"})},de=function(Ee){_.current=!1,ne(Ee,Ee.currentTarget.value,{source:"compositionEnd"}),N==null||N(Ee)},ve=function(Ee){i&&Ee.key==="Enter"&&!D.current&&(D.current=!0,i(Ee)),s==null||s(Ee)},se=function(Ee){Ee.key==="Enter"&&(D.current=!1),u==null||u(Ee)},he=function(Ee){A(!0),o==null||o(Ee)},Se=function(Ee){D.current&&(D.current=!1),A(!1),a==null||a(Ee)},je=function(Ee){V(""),F(),j.current&&Gm(j.current,Ee,r)},Te=te&&"".concat(m,"-out-of-range"),Ce=function(){var Ee=Hn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return pe.createElement("input",Me({autoComplete:n},Ee,{onChange:ie,onFocus:he,onBlur:Se,onKeyDown:ve,onKeyUp:se,className:re(m,Y({},"".concat(m,"-disabled"),v),$==null?void 0:$.input),style:O==null?void 0:O.input,ref:j,size:p,type:w,onCompositionStart:function(Ve){_.current=!0,I==null||I(Ve)},onCompositionEnd:de}))},xe=function(){var Ee=Number(oe)>0;if(C||J.show){var Be=J.showFormatter?J.showFormatter({value:U,count:ae,maxLength:oe}):"".concat(ae).concat(Ee?" / ".concat(oe):"");return pe.createElement(pe.Fragment,null,J.show&&pe.createElement("span",{className:re("".concat(m,"-show-count-suffix"),Y({},"".concat(m,"-show-count-has-suffix"),!!C),$==null?void 0:$.count),style:X({},O==null?void 0:O.count)},Be),C)}return null};return pe.createElement(gT,Me({},P,{prefixCls:m,className:re(y,Te),handleReset:je,value:U,focused:H,triggerFocus:F,suffix:xe(),disabled:v,classes:R,classNames:$,styles:O,ref:z}),Ce())});const yT=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:pe.createElement(Xs,null)}),t};function bT(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function wY(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var $Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sd=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:u,suffix:d,allowClear:m,addonAfter:v,addonBefore:p,className:y,style:h,styles:C,rootClassName:g,onChange:S,classNames:x,variant:w}=e,R=$Y(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:O,allowClear:I,autoComplete:N,className:P,style:T,classNames:k,styles:H}=Er("input"),A=$("input",n),_=l.useRef(null),D=vr(A),[j,z,F]=oT(A,g),[W]=aT(A,D),{compactSize:K,compactItemClassnames:B}=qi(A,O),V=Xr(Se=>{var je;return(je=a??K)!==null&&je!==void 0?je:Se}),U=pe.useContext(go),q=i??U,{status:G,hasFeedback:Z,feedbackIcon:ee}=l.useContext(Ar),J=nc(G,o),oe=wY(e)||!!Z;l.useRef(oe);const ae=bT(_,!0),te=Se=>{ae(),s==null||s(Se)},ne=Se=>{ae(),u==null||u(Se)},ie=Se=>{ae(),S==null||S(Se)},de=(Z||d)&&pe.createElement(pe.Fragment,null,d,Z&&ee),ve=yT(m??I),[se,he]=pd("input",w,r);return j(W(pe.createElement(xY,Object.assign({ref:To(t,_),prefixCls:A,autoComplete:N},R,{disabled:q,onBlur:te,onFocus:ne,style:Object.assign(Object.assign({},T),h),styles:Object.assign(Object.assign({},H),C),suffix:de,allowClear:ve,className:re(y,g,F,D,B,P),onChange:ie,addonBefore:p&&pe.createElement(Ol,{form:!0,space:!0},p),addonAfter:v&&pe.createElement(Ol,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},x),k),{input:re({[`${A}-sm`]:V==="small",[`${A}-lg`]:V==="large",[`${A}-rtl`]:O==="rtl"},x==null?void 0:x.input,k.input,z),variant:re({[`${A}-${se}`]:he},As(A,J)),affixWrapper:re({[`${A}-affix-wrapper-sm`]:V==="small",[`${A}-affix-wrapper-lg`]:V==="large",[`${A}-affix-wrapper-rtl`]:O==="rtl"},z),wrapper:re({[`${A}-group-rtl`]:O==="rtl"},z),groupWrapper:re({[`${A}-group-wrapper-sm`]:V==="small",[`${A}-group-wrapper-lg`]:V==="large",[`${A}-group-wrapper-rtl`]:O==="rtl",[`${A}-group-wrapper-${se}`]:he},As(`${A}-group-wrapper`,J,Z),z)})}))))});var EY=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:S6}))},CT=l.forwardRef(EY),OY=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:R6}))},ST=l.forwardRef(OY),RY=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:wz}))},IY=l.forwardRef(RY);function PY(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function NY(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function xT(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=DN(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[MY,TY]=["week","WeekPicker"],[_Y,DY]=["month","MonthPicker"],[jY,kY]=["year","YearPicker"],[zY,LY]=["quarter","QuarterPicker"],[pb,h2]=["time","TimePicker"],FY=e=>l.createElement(Sn,Object.assign({size:"small",type:"primary"},e));function wT(e){return l.useMemo(()=>Object.assign({button:FY},e),[e])}function $T(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],s=o[a];if(i&&typeof i=="object")if(s&&typeof s=="object")r[a]=$T(i,r[a],s);else{const{_default:u}=i;r[a]=r[a]||{},r[a][u]=re(r[a][u],s)}else r[a]=re(r[a],s)}),r),{})}function AY(e,...t){return l.useMemo(()=>$T.apply(void 0,[e].concat(t)),[t])}function BY(...e){return l.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function gb(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?gb(a,o):a}}),n}function HY(e,t,n){const r=AY.apply(void 0,[n].concat(_e(e))),o=BY.apply(void 0,_e(t));return l.useMemo(()=>[gb(r,n),gb(o,n)],[r,o])}const ET=(e,t,n,r,o)=>{const{classNames:a,styles:i}=Er(e),[s,u]=HY([a,t],[i,n],{popup:{_default:"root"}});return l.useMemo(()=>{var d,m;const v=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:re((d=s.popup)===null||d===void 0?void 0:d.root,r)})}),p=Object.assign(Object.assign({},u),{popup:Object.assign(Object.assign({},u.popup),{root:Object.assign(Object.assign({},(m=u.popup)===null||m===void 0?void 0:m.root),o)})});return[v,p]},[s,u,r,o])};var VY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WY=e=>l.forwardRef((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:s,className:u,style:d,placement:m,size:v,disabled:p,bordered:y=!0,placeholder:h,popupStyle:C,popupClassName:g,dropdownClassName:S,status:x,rootClassName:w,variant:R,picker:$,styles:O,classNames:I}=n,N=VY(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),P=$===pb?"timePicker":"datePicker",T=l.useRef(null),{getPrefixCls:k,direction:H,getPopupContainer:A,rangePicker:_}=l.useContext(Dt),D=k("picker",a),{compactSize:j,compactItemClassnames:z}=qi(D,H),F=k(),[W,K]=pd("rangePicker",R,y),B=vr(D),[V,U,q]=iT(D,B),[G,Z]=ET(P,I,O,g||S,C),[ee]=xT(n,D),J=wT(s),oe=Xr(Te=>{var Ce;return(Ce=v??j)!==null&&Ce!==void 0?Ce:Te}),ae=l.useContext(go),te=p??ae,ne=l.useContext(Ar),{hasFeedback:ie,status:de,feedbackIcon:ve}=ne,se=l.createElement(l.Fragment,null,$===pb?l.createElement(ST,null):l.createElement(CT,null),ie&&ve);l.useImperativeHandle(r,()=>T.current);const[he]=ho("Calendar",zm),Se=Object.assign(Object.assign({},he),n.locale),[je]=ti("DatePicker",(o=Z.popup.root)===null||o===void 0?void 0:o.zIndex);return V(l.createElement(Ol,{space:!0},l.createElement(lq,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${D}-separator`},l.createElement(IY,null)),disabled:te,ref:T,placement:m,placeholder:NY(Se,$,h),suffixIcon:se,prevIcon:l.createElement("span",{className:`${D}-prev-icon`}),nextIcon:l.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:$},N,{className:re({[`${D}-${oe}`]:oe,[`${D}-${W}`]:K},As(D,nc(de,x),ie),U,z,u,_==null?void 0:_.className,q,B,w,G.root),style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),d),Z.root),locale:Se.lang,prefixCls:D,getPopupContainer:i||A,generateConfig:e,components:J,direction:H,classNames:{popup:re(U,q,B,w,G.popup.root)},styles:{popup:Object.assign(Object.assign({},Z.popup.root),{zIndex:je})},allowClear:ee}))))});var KY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UY=e=>{const t=(u,d)=>{const m=d===h2?"timePicker":"datePicker";return l.forwardRef((p,y)=>{var h;const{prefixCls:C,getPopupContainer:g,components:S,style:x,className:w,rootClassName:R,size:$,bordered:O,placement:I,placeholder:N,popupStyle:P,popupClassName:T,dropdownClassName:k,disabled:H,status:A,variant:_,onCalendarChange:D,styles:j,classNames:z}=p,F=KY(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:W,direction:K,getPopupContainer:B,[m]:V}=l.useContext(Dt),U=W("picker",C),{compactSize:q,compactItemClassnames:G}=qi(U,K),Z=l.useRef(null),[ee,J]=pd("datePicker",_,O),oe=vr(U),[ae,te,ne]=iT(U,oe);l.useImperativeHandle(y,()=>Z.current);const ie={showToday:!0},de=u||p.picker,ve=W(),{onSelect:se,multiple:he}=F,Se=se&&u==="time"&&!he,je=(Fe,we,He)=>{D==null||D(Fe,we,He),Se&&se(Fe)},[Te,Ce]=ET(m,z,j,T||k,P),[xe,Ne]=xT(p,U),Ee=wT(S),Be=Xr(Fe=>{var we;return(we=$??q)!==null&&we!==void 0?we:Fe}),Ve=l.useContext(go),tt=H??Ve,nt=l.useContext(Ar),{hasFeedback:We,status:Ze,feedbackIcon:Le}=nt,Re=l.createElement(l.Fragment,null,de==="time"?l.createElement(ST,null):l.createElement(CT,null),We&&Le),[qe]=ho("DatePicker",zm),ye=Object.assign(Object.assign({},qe),p.locale),[Oe]=ti("DatePicker",(h=Ce.popup.root)===null||h===void 0?void 0:h.zIndex);return ae(l.createElement(Ol,{space:!0},l.createElement(mq,Object.assign({ref:Z,placeholder:PY(ye,de,N),suffixIcon:Re,placement:I,prevIcon:l.createElement("span",{className:`${U}-prev-icon`}),nextIcon:l.createElement("span",{className:`${U}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${U}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${U}-super-next-icon`}),transitionName:`${ve}-slide-up`,picker:u,onCalendarChange:je},ie,F,{locale:ye.lang,className:re({[`${U}-${Be}`]:Be,[`${U}-${ee}`]:J},As(U,nc(Ze,A),We),te,G,V==null?void 0:V.className,w,ne,oe,R,Te.root),style:Object.assign(Object.assign(Object.assign({},V==null?void 0:V.style),x),Ce.root),prefixCls:U,getPopupContainer:g||B,generateConfig:e,components:Ee,direction:K,disabled:tt,classNames:{popup:re(te,ne,oe,R,Te.popup.root)},styles:{popup:Object.assign(Object.assign({},Ce.popup.root),{zIndex:Oe})},allowClear:xe,removeIcon:Ne}))))})},n=t(),r=t(MY,TY),o=t(_Y,DY),a=t(jY,kY),i=t(zY,LY),s=t(pb,h2);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:s,QuarterPicker:i}},OT=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=UY(e),s=WY(e),u=t;return u.WeekPicker=n,u.MonthPicker=r,u.YearPicker=o,u.RangePicker=s,u.TimePicker=a,u.QuarterPicker=i,u},ni=OT(pU),qY=qv(ni,"popupAlign",void 0,"picker");ni._InternalPanelDoNotUseOrYouWillBeFired=qY;const YY=qv(ni.RangePicker,"popupAlign",void 0,"picker");ni._InternalRangePanelDoNotUseOrYouWillBeFired=YY;ni.generatePicker=OT;const GY={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},aS=pe.createContext({});var XY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const QY=e=>po(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function ZY(e,t,n){const r=l.useMemo(()=>t||QY(n),[t,n]);return l.useMemo(()=>r.map(a=>{var{span:i}=a,s=XY(a,["span"]);return i==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof i=="number"?i:LN(e,i)})}),[r,e])}var JY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eG(e,t){let n=[],r=[],o=!1,a=0;return e.filter(i=>i).forEach(i=>{const{filled:s}=i,u=JY(i,["filled"]);if(s){r.push(u),n.push(r),r=[],a=0;return}const d=t-a;a+=i.span||1,a>=t?(a>t?(o=!0,r.push(Object.assign(Object.assign({},u),{span:d}))):r.push(u),n.push(r),r=[],a=0):r.push(u)}),r.length>0&&n.push(r),n=n.map(i=>{const s=i.reduce((u,d)=>u+(d.span||1),0);if(s<t){const u=i[i.length-1];return u.span=t-(s-(u.span||1)),i}return i}),[n,o]}const tG=(e,t)=>{const[n,r]=l.useMemo(()=>eG(t,e),[t,e]);return n},nG=({children:e})=>e;function y2(e){return e!=null}const l0=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:a,labelStyle:i,contentStyle:s,bordered:u,label:d,content:m,colon:v,type:p,styles:y}=e,h=n,C=l.useContext(aS),{classNames:g}=C;return u?l.createElement(h,{className:re({[`${t}-item-label`]:p==="label",[`${t}-item-content`]:p==="content",[`${g==null?void 0:g.label}`]:p==="label",[`${g==null?void 0:g.content}`]:p==="content"},o),style:a,colSpan:r},y2(d)&&l.createElement("span",{style:Object.assign(Object.assign({},i),y==null?void 0:y.label)},d),y2(m)&&l.createElement("span",{style:Object.assign(Object.assign({},i),y==null?void 0:y.content)},m)):l.createElement(h,{className:re(`${t}-item`,o),style:a,colSpan:r},l.createElement("div",{className:`${t}-item-container`},(d||d===0)&&l.createElement("span",{className:re(`${t}-item-label`,g==null?void 0:g.label,{[`${t}-item-no-colon`]:!v}),style:Object.assign(Object.assign({},i),y==null?void 0:y.label)},d),(m||m===0)&&l.createElement("span",{className:re(`${t}-item-content`,g==null?void 0:g.content),style:Object.assign(Object.assign({},s),y==null?void 0:y.content)},m)))};function s0(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:a,showLabel:i,showContent:s,labelStyle:u,contentStyle:d,styles:m}){return e.map(({label:v,children:p,prefixCls:y=n,className:h,style:C,labelStyle:g,contentStyle:S,span:x=1,key:w,styles:R},$)=>typeof o=="string"?l.createElement(l0,{key:`${a}-${w||$}`,className:h,style:C,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.label),g),R==null?void 0:R.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},d),m==null?void 0:m.content),S),R==null?void 0:R.content)},span:x,colon:t,component:o,itemPrefixCls:y,bordered:r,label:i?v:null,content:s?p:null,type:a}):[l.createElement(l0,{key:`label-${w||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.label),C),g),R==null?void 0:R.label),span:1,colon:t,component:o[0],itemPrefixCls:y,bordered:r,label:v,type:"label"}),l.createElement(l0,{key:`content-${w||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),m==null?void 0:m.content),C),S),R==null?void 0:R.content),span:x*2-1,component:o[1],itemPrefixCls:y,bordered:r,content:p,type:"content"})])}const rG=e=>{const t=l.useContext(aS),{prefixCls:n,vertical:r,row:o,index:a,bordered:i}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${a}`,className:`${n}-row`},s0(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),l.createElement("tr",{key:`content-${a}`,className:`${n}-row`},s0(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):l.createElement("tr",{key:a,className:`${n}-row`},s0(o,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},oG=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${le(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:`${le(e.padding)} ${le(e.paddingLG)}`,borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${le(e.paddingSM)} ${le(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${le(e.paddingXS)} ${le(e.padding)}`}}}}}},aG=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:a,colonMarginLeft:i,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},kn(e)),oG(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Da),{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:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> 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:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${le(i)} ${le(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,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"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},iG=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}),lG=In("Descriptions",e=>{const t=nn(e,{});return aG(t)},iG);var sG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bs=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:a=!0,bordered:i,layout:s,children:u,className:d,rootClassName:m,style:v,size:p,labelStyle:y,contentStyle:h,styles:C,items:g,classNames:S}=e,x=sG(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:w,direction:R,className:$,style:O,classNames:I,styles:N}=Er("descriptions"),P=w("descriptions",t),T=gd(),k=l.useMemo(()=>{var W;return typeof o=="number"?o:(W=LN(T,Object.assign(Object.assign({},GY),o)))!==null&&W!==void 0?W:3},[T,o]),H=ZY(T,g,u),A=Xr(p),_=tG(k,H),[D,j,z]=lG(P),F=l.useMemo(()=>({labelStyle:y,contentStyle:h,styles:{content:Object.assign(Object.assign({},N.content),C==null?void 0:C.content),label:Object.assign(Object.assign({},N.label),C==null?void 0:C.label)},classNames:{label:re(I.label,S==null?void 0:S.label),content:re(I.content,S==null?void 0:S.content)}}),[y,h,C,S,I,N]);return D(l.createElement(aS.Provider,{value:F},l.createElement("div",Object.assign({className:re(P,$,I.root,S==null?void 0:S.root,{[`${P}-${A}`]:A&&A!=="default",[`${P}-bordered`]:!!i,[`${P}-rtl`]:R==="rtl"},d,m,j,z),style:Object.assign(Object.assign(Object.assign(Object.assign({},O),N.root),C==null?void 0:C.root),v)},x),(n||r)&&l.createElement("div",{className:re(`${P}-header`,I.header,S==null?void 0:S.header),style:Object.assign(Object.assign({},N.header),C==null?void 0:C.header)},n&&l.createElement("div",{className:re(`${P}-title`,I.title,S==null?void 0:S.title),style:Object.assign(Object.assign({},N.title),C==null?void 0:C.title)},n),r&&l.createElement("div",{className:re(`${P}-extra`,I.extra,S==null?void 0:S.extra),style:Object.assign(Object.assign({},N.extra),C==null?void 0:C.extra)},r)),l.createElement("div",{className:`${P}-view`},l.createElement("table",null,l.createElement("tbody",null,_.map((W,K)=>l.createElement(rG,{key:K,index:K,colon:a,prefixCls:P,vertical:s==="vertical",bordered:i,row:W}))))))))};bs.Item=nG;function Xm(e){return["small","middle","large"].includes(e)}function b2(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const RT=pe.createContext({latestIndex:0}),cG=RT.Provider,uG=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:a}=l.useContext(RT);return n==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:o},n),t<a&&r&&l.createElement("span",{className:`${e}-split`},r))};var dG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fG=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:a,className:i,style:s,classNames:u,styles:d}=Er("space"),{size:m=a??"small",align:v,className:p,rootClassName:y,children:h,direction:C="horizontal",prefixCls:g,split:S,style:x,wrap:w=!1,classNames:R,styles:$}=e,O=dG(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[I,N]=Array.isArray(m)?m:[m,m],P=Xm(N),T=Xm(I),k=b2(N),H=b2(I),A=po(h,{keepEmpty:!0}),_=v===void 0&&C==="horizontal"?"center":v,D=r("space",g),[j,z,F]=$P(D),W=re(D,i,z,`${D}-${C}`,{[`${D}-rtl`]:o==="rtl",[`${D}-align-${_}`]:_,[`${D}-gap-row-${N}`]:P,[`${D}-gap-col-${I}`]:T},p,y,F),K=re(`${D}-item`,(n=R==null?void 0:R.item)!==null&&n!==void 0?n:u.item);let B=0;const V=A.map((G,Z)=>{var ee;G!=null&&(B=Z);const J=(G==null?void 0:G.key)||`${K}-${Z}`;return l.createElement(uG,{className:K,key:J,index:Z,split:S,style:(ee=$==null?void 0:$.item)!==null&&ee!==void 0?ee:d.item},G)}),U=l.useMemo(()=>({latestIndex:B}),[B]);if(A.length===0)return null;const q={};return w&&(q.flexWrap="wrap"),!T&&H&&(q.columnGap=I),!P&&k&&(q.rowGap=N),j(l.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},q),s),x)},O),l.createElement(cG,{value:U},V)))}),ta=fG;ta.Compact=$5;var mG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IT=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(Dt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:u,onClick:d,htmlType:m,children:v,className:p,menu:y,arrow:h,autoFocus:C,overlay:g,trigger:S,align:x,open:w,onOpenChange:R,placement:$,getPopupContainer:O,href:I,icon:N=l.createElement(uM,null),title:P,buttonsRender:T=te=>te,mouseEnterDelay:k,mouseLeaveDelay:H,overlayClassName:A,overlayStyle:_,destroyOnHidden:D,destroyPopupOnHide:j,dropdownRender:z,popupRender:F}=e,W=mG(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),K=n("dropdown",o),B=`${K}-button`,U={menu:y,arrow:h,autoFocus:C,align:x,disabled:s,trigger:s?[]:S,onOpenChange:R,getPopupContainer:O||t,mouseEnterDelay:k,mouseLeaveDelay:H,overlayClassName:A,overlayStyle:_,destroyOnHidden:D,popupRender:F||z},{compactSize:q,compactItemClassnames:G}=qi(K,r),Z=re(B,G,p);"destroyPopupOnHide"in e&&(U.destroyPopupOnHide=j),"overlay"in e&&(U.overlay=g),"open"in e&&(U.open=w),"placement"in e?U.placement=$:U.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=l.createElement(Sn,{type:a,danger:i,disabled:s,loading:u,onClick:d,htmlType:m,href:I,title:P},v),J=l.createElement(Sn,{type:a,danger:i,icon:N}),[oe,ae]=T([ee,J]);return l.createElement(ta.Compact,Object.assign({className:Z,size:q,block:!0},W),oe,l.createElement(np,Object.assign({},U),ae))};IT.__ANT_BUTTON=!0;const cp=np;cp.Button=IT;const PT=["wrap","nowrap","wrap-reverse"],NT=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],MT=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],vG=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&PT.includes(n)}},pG=(e,t)=>{const n={};return MT.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},gG=(e,t)=>{const n={};return NT.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function hG(e,t){return re(Object.assign(Object.assign(Object.assign({},vG(e,t)),pG(e,t)),gG(e,t)))}const yG=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},bG=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},CG=e=>{const{componentCls:t}=e,n={};return PT.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},SG=e=>{const{componentCls:t}=e,n={};return MT.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},xG=e=>{const{componentCls:t}=e,n={};return NT.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},wG=()=>({}),$G=In("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=nn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[yG(o),bG(o),CG(o),SG(o),xG(o)]},wG,{resetStyle:!1});var EG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const up=pe.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:a,flex:i,gap:s,children:u,vertical:d=!1,component:m="div"}=e,v=EG(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:y,getPrefixCls:h}=pe.useContext(Dt),C=h("flex",n),[g,S,x]=$G(C),w=d??(p==null?void 0:p.vertical),R=re(o,r,p==null?void 0:p.className,C,S,x,hG(C,e),{[`${C}-rtl`]:y==="rtl",[`${C}-gap-${s}`]:Xm(s),[`${C}-vertical`]:w}),$=Object.assign(Object.assign({},p==null?void 0:p.style),a);return i&&($.flex=i),s&&!Xm(s)&&($.gap=s),g(pe.createElement(m,Object.assign({ref:t,className:R,style:$},Hn(v,["justify","wrap","align"])),u))});function OG(e){return e==null?null:typeof e=="object"&&!l.isValidElement(e)?e:{title:e}}function Qm(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const RG=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},IG=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),C2=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},PG=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},kn(e)),IG(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},C2(e,e.controlHeightSM)),"&-large":Object.assign({},C2(e,e.controlHeightLG))})}},NG=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:m,itemMarginBottom:v}=e;return{[t]:Object.assign(Object.assign({},kn(e)),{marginBottom:v,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:m},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[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:$C,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},S2=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-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"}}}}},MG=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},da=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),TT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:da(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},TG=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:da(e)}},[`@media (max-width: ${le(e.screenXSMax)})`]:[TT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:da(e)}}}],[`@media (max-width: ${le(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:da(e)}}},[`@media (max-width: ${le(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:da(e)}}},[`@media (max-width: ${le(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:da(e)}}}}},_G=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
${n}-col-24${t}-label,
${n}-col-xl-24${t}-label`]:da(e),[`@media (max-width: ${le(e.screenXSMax)})`]:[TT(e),{[t]:{[`${n}-col-xs-24${t}-label`]:da(e)}}],[`@media (max-width: ${le(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:da(e)}},[`@media (max-width: ${le(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:da(e)}},[`@media (max-width: ${le(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:da(e)}}}},DG=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),_T=(e,t)=>nn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),iS=In("Form",(e,{rootPrefixCls:t})=>{const n=_T(e,t);return[PG(n),NG(n),RG(n),S2(n,n.componentCls),S2(n,n.formItemCls),MG(n),TG(n),_G(n),Nv(n),$C]},DG,{order:-1e3}),x2=[];function c0(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const DT=({help:e,helpStatus:t,errors:n=x2,warnings:r=x2,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=l.useContext(MC),u=`${s}-item-explain`,d=vr(s),[m,v,p]=iS(s,d),y=l.useMemo(()=>Ku(s),[s]),h=Qm(n),C=Qm(r),g=l.useMemo(()=>e!=null?[c0(e,"help",t)]:[].concat(_e(h.map((w,R)=>c0(w,"error","error",R))),_e(C.map((w,R)=>c0(w,"warning","warning",R)))),[e,t,h,C]),S=l.useMemo(()=>{const w={};return g.forEach(({key:R})=>{w[R]=(w[R]||0)+1}),g.map((R,$)=>Object.assign(Object.assign({},R),{key:w[R.key]>1?`${R.key}-fallback-${$}`:R.key}))},[g]),x={};return a&&(x.id=`${a}_help`),m(l.createElement(Do,{motionDeadline:y.motionDeadline,motionName:`${s}-show-help`,visible:!!S.length,onVisibleChanged:i},w=>{const{className:R,style:$}=w;return l.createElement("div",Object.assign({},x,{className:re(u,R,p,d,o,v),style:$}),l.createElement(yC,Object.assign({keys:S},Ku(s),{motionName:`${s}-show-help-item`,component:!1}),O=>{const{key:I,error:N,errorStatus:P,className:T,style:k}=O;return l.createElement("div",{key:I,className:re(T,{[`${u}-${P}`]:P}),style:k},N)}))}))},jG=["parentNode"],kG="form_item";function Nu(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function jT(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:jG.includes(n)?`${kG}_${n}`:n}function kT(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var zG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function w2(e){return Nu(e).join("_")}function $2(e,t){const n=t.getFieldInstance(e),r=ad(n);if(r)return r;const o=jT(Nu(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function lS(e){const[t]=NC(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=w2(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=zG(a,["focus"]),u=$2(o,r);u&&(xA(u,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=$2(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=w2(o);return n.current[a]}}),[e,t]);return[r]}var LG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FG=(e,t)=>{const n=l.useContext(go),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:u,style:d}=Er("form"),{prefixCls:m,className:v,rootClassName:p,size:y,disabled:h=n,form:C,colon:g,labelAlign:S,labelWrap:x,labelCol:w,wrapperCol:R,hideRequiredMark:$,layout:O="horizontal",scrollToFirstError:I,requiredMark:N,onFinishFailed:P,name:T,style:k,feedbackIcons:H,variant:A}=e,_=LG(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=Xr(y),j=l.useContext(TI),z=l.useMemo(()=>N!==void 0?N:$?!1:a!==void 0?a:!0,[$,N,a]),F=g??i,W=r("form",m),K=vr(W),[B,V,U]=iS(W,K),q=re(W,`${W}-${O}`,{[`${W}-hide-required-mark`]:z===!1,[`${W}-rtl`]:o==="rtl",[`${W}-${D}`]:D},U,K,V,u,v,p),[G]=lS(C),{__INTERNAL__:Z}=G;Z.name=T;const ee=l.useMemo(()=>({name:T,labelAlign:S,labelCol:w,labelWrap:x,wrapperCol:R,vertical:O==="vertical",colon:F,requiredMark:z,itemRef:Z.itemRef,form:G,feedbackIcons:H}),[T,S,w,R,O,F,z,G,H]),J=l.useRef(null);l.useImperativeHandle(t,()=>{var te;return Object.assign(Object.assign({},G),{nativeElement:(te=J.current)===null||te===void 0?void 0:te.nativeElement})});const oe=(te,ne)=>{if(te){let ie={block:"nearest"};typeof te=="object"&&(ie=Object.assign(Object.assign({},ie),te)),G.scrollToField(ne,ie)}},ae=te=>{if(P==null||P(te),te.errorFields.length){const ne=te.errorFields[0].name;if(I!==void 0){oe(I,ne);return}s!==void 0&&oe(s,ne)}};return B(l.createElement(KP.Provider,{value:A},l.createElement(pC,{disabled:h},l.createElement(Sl.Provider,{value:D},l.createElement(WP,{validateMessages:j},l.createElement(Za.Provider,{value:ee},l.createElement(Js,Object.assign({id:T},_,{name:T,onFinishFailed:ae,form:G,ref:J,style:Object.assign(Object.assign({},d),k),className:q}))))))))},AG=l.forwardRef(FG);function BG(e){if(typeof e=="function")return e;const t=po(e);return t.length<=1?t[0]:t}const zT=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(Ar);return{status:e,errors:t,warnings:n}};zT.Context=Ar;function HG(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,cn.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=cn(()=>{r.current=null,n(u=>{let d=u;return o.current.forEach(m=>{d=m(d)}),d})})),o.current.push(s))}return[t,i]}function VG(){const{itemRef:e}=l.useContext(Za),t=l.useRef({});function n(r,o){const a=o&&typeof o=="object"&&Ki(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=To(e(r),a)),t.current.ref}return n}const WG=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},KG=Ys(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=_T(e,t);return[WG(n)]});var UG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qG=24,YG=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:u,extra:d,help:m,fieldId:v,marginBottom:p,onErrorVisibleChanged:y,label:h}=e,C=`${t}-item`,g=l.useContext(Za),S=l.useMemo(()=>{let _=Object.assign({},o||g.wrapperCol||{});return h===null&&!r&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const z=j?[j]:[],F=eo(g.labelCol,z),W=typeof F=="object"?F:{},K=eo(_,z),B=typeof K=="object"?K:{};"span"in W&&!("offset"in B)&&W.span<qG&&(_=Go(_,[].concat(z,["offset"]),W.span))}),_},[o,g]),x=re(`${C}-control`,S.className),w=l.useMemo(()=>{const{labelCol:_,wrapperCol:D}=g;return UG(g,["labelCol","wrapperCol"])},[g]),R=l.useRef(null),[$,O]=l.useState(0);dn(()=>{d&&R.current?O(R.current.clientHeight):O(0)},[d]);const I=l.createElement("div",{className:`${C}-control-input`},l.createElement("div",{className:`${C}-control-input-content`},a)),N=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=p!==null||i.length||s.length?l.createElement(MC.Provider,{value:N},l.createElement(DT,{fieldId:v,errors:i,warnings:s,help:m,helpStatus:n,className:`${C}-explain-connected`,onVisibleChanged:y})):null,T={};v&&(T.id=`${v}_extra`);const k=d?l.createElement("div",Object.assign({},T,{className:`${C}-extra`,ref:R}),d):null,H=P||k?l.createElement("div",{className:`${C}-additional`,style:p?{minHeight:p+$}:{}},P,k):null,A=u&&u.mark==="pro_table_render"&&u.render?u.render(e,{input:I,errorList:P,extra:k}):l.createElement(l.Fragment,null,I,H);return l.createElement(Za.Provider,{value:w},l.createElement(Uo,Object.assign({},S,{className:x}),A),l.createElement(KG,{prefixCls:t}))};var GG=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:hz}))},XG=l.forwardRef(GG),QG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZG=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:u,vertical:d})=>{var m;const[v]=ho("Form"),{labelAlign:p,labelCol:y,labelWrap:h,colon:C}=l.useContext(Za);if(!t)return null;const g=r||y||{},S=o||p,x=`${e}-item-label`,w=re(x,S==="left"&&`${x}-left`,g.className,{[`${x}-wrap`]:!!h});let R=t;const $=a===!0||C!==!1&&a!==!1;$&&!d&&typeof t=="string"&&t.trim()&&(R=t.replace(/[:|]\s*$/,""));const I=OG(u);if(I){const{icon:A=l.createElement(XG,null)}=I,_=QG(I,["icon"]),D=l.createElement(Ai,Object.assign({},_),l.cloneElement(A,{className:`${e}-item-tooltip`,title:"",onClick:j=>{j.preventDefault()},tabIndex:null}));R=l.createElement(l.Fragment,null,R,D)}const N=s==="optional",P=typeof s=="function",T=s===!1;P?R=s(R,{required:!!i}):N&&!i&&(R=l.createElement(l.Fragment,null,R,l.createElement("span",{className:`${e}-item-optional`,title:""},(v==null?void 0:v.optional)||((m=ea.Form)===null||m===void 0?void 0:m.optional))));let k;T?k="hidden":(N||P)&&(k="optional");const H=re({[`${e}-item-required`]:i,[`${e}-item-required-mark-${k}`]:k,[`${e}-item-no-colon`]:!$});return l.createElement(Uo,Object.assign({},g,{className:w}),l.createElement("label",{htmlFor:n,className:H,title:typeof t=="string"?t:""},R))},JG={success:$v,warning:sd,error:Xs,validating:$l};function LT({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s}){const u=`${a}-item`,{feedbackIcons:d}=l.useContext(Za),m=kT(t,n,i,null,!!r,o),{isFormItemInput:v,status:p,hasFeedback:y,feedbackIcon:h}=l.useContext(Ar),C=l.useMemo(()=>{var g;let S;if(r){const w=r!==!0&&r.icons||d,R=m&&((g=w==null?void 0:w({status:m,errors:t,warnings:n}))===null||g===void 0?void 0:g[m]),$=m&&JG[m];S=R!==!1&&$?l.createElement("span",{className:re(`${u}-feedback-icon`,`${u}-feedback-icon-${m}`)},R||l.createElement($,null)):null}const x={status:m||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:S,isFormItemInput:!0};return s&&(x.status=(m??p)||"",x.isFormItemInput=v,x.hasFeedback=!!(r??y),x.feedbackIcon=r!==void 0?x.feedbackIcon:h),x},[m,r,s,v,p]);return l.createElement(Ar.Provider,{value:C},e)}var eX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function tX(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:u,meta:d,hasFeedback:m,hidden:v,children:p,fieldId:y,required:h,isRequired:C,onSubItemMetaChange:g,layout:S}=e,x=eX(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),w=`${t}-item`,{requiredMark:R,vertical:$}=l.useContext(Za),O=$||S==="vertical",I=l.useRef(null),N=Qm(i),P=Qm(s),T=a!=null,k=!!(T||i.length||s.length),H=!!I.current&&Qs(I.current),[A,_]=l.useState(null);dn(()=>{if(k&&I.current){const W=getComputedStyle(I.current);_(parseInt(W.marginBottom,10))}},[k,H]);const D=W=>{W||_(null)},z=((W=!1)=>{const K=W?N:d.errors,B=W?P:d.warnings;return kT(K,B,d,"",!!m,u)})(),F=re(w,n,r,{[`${w}-with-help`]:T||N.length||P.length,[`${w}-has-feedback`]:z&&m,[`${w}-has-success`]:z==="success",[`${w}-has-warning`]:z==="warning",[`${w}-has-error`]:z==="error",[`${w}-is-validating`]:z==="validating",[`${w}-hidden`]:v,[`${w}-${S}`]:S});return l.createElement("div",{className:F,style:o,ref:I},l.createElement(ws,Object.assign({className:`${w}-row`},Hn(x,["_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"])),l.createElement(ZG,Object.assign({htmlFor:y},e,{requiredMark:R,required:h??C,prefixCls:t,vertical:O})),l.createElement(YG,Object.assign({},e,d,{errors:N,warnings:P,prefixCls:t,status:z,help:a,marginBottom:A,onErrorVisibleChanged:D}),l.createElement(VP.Provider,{value:g},l.createElement(LT,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:m,validateStatus:z},p)))),!!A&&l.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-A}}))}const nX="__SPLIT__";function rX(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const oX=l.memo(({children:e})=>e,(e,t)=>rX(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function E2(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function aX(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:u,required:d,label:m,messageVariables:v,trigger:p="onChange",validateTrigger:y,hidden:h,help:C,layout:g}=e,{getPrefixCls:S}=l.useContext(Dt),{name:x}=l.useContext(Za),w=BG(u),R=typeof w=="function",$=l.useContext(VP),{validateTrigger:O}=l.useContext(El),I=y!==void 0?y:O,N=t!=null,P=S("form",a),T=vr(P),[k,H,A]=iS(P,T);Ui();const _=l.useContext(qu),D=l.useRef(null),[j,z]=HG({}),[F,W]=xl(()=>E2()),K=ee=>{const J=_==null?void 0:_.getKey(ee.name);if(W(ee.destroy?E2():ee,!0),n&&C!==!1&&$){let oe=ee.name;if(ee.destroy)oe=D.current||oe;else if(J!==void 0){const[ae,te]=J;oe=[ae].concat(_e(te)),D.current=oe}$(ee,oe)}},B=(ee,J)=>{z(oe=>{const ae=Object.assign({},oe),ne=[].concat(_e(ee.name.slice(0,-1)),_e(J)).join(nX);return ee.destroy?delete ae[ne]:ae[ne]=ee,ae})},[V,U]=l.useMemo(()=>{const ee=_e(F.errors),J=_e(F.warnings);return Object.values(j).forEach(oe=>{ee.push.apply(ee,_e(oe.errors||[])),J.push.apply(J,_e(oe.warnings||[]))}),[ee,J]},[j,F.errors,F.warnings]),q=VG();function G(ee,J,oe){return n&&!h?l.createElement(LT,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:V,warnings:U,noStyle:!0},ee):l.createElement(tX,Object.assign({key:"row"},e,{className:re(r,A,T,H),prefixCls:P,fieldId:J,isRequired:oe,errors:V,warnings:U,meta:F,onSubItemMetaChange:B,layout:g}),ee)}if(!N&&!R&&!o)return k(G(w));let Z={};return typeof m=="string"?Z.label=m:t&&(Z.label=String(t)),v&&(Z=Object.assign(Object.assign({},Z),v)),k(l.createElement(PC,Object.assign({},e,{messageVariables:Z,trigger:p,validateTrigger:I,onMetaChange:K}),(ee,J,oe)=>{const ae=Nu(t).length&&J?J.name:[],te=jT(ae,x),ne=d!==void 0?d:!!(s!=null&&s.some(ve=>{if(ve&&typeof ve=="object"&&ve.required&&!ve.warningOnly)return!0;if(typeof ve=="function"){const se=ve(oe);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),ie=Object.assign({},ee);let de=null;if(Array.isArray(w)&&N)de=w;else if(!(R&&(!(i||o)||N))){if(!(o&&!R&&!N))if(l.isValidElement(w)){const ve=Object.assign(Object.assign({},w.props),ie);if(ve.id||(ve.id=te),C||V.length>0||U.length>0||e.extra){const Se=[];(C||V.length>0)&&Se.push(`${te}_help`),e.extra&&Se.push(`${te}_extra`),ve["aria-describedby"]=Se.join(" ")}V.length>0&&(ve["aria-invalid"]="true"),ne&&(ve["aria-required"]="true"),ha(w)&&(ve.ref=q(ae,w)),new Set([].concat(_e(Nu(p)),_e(Nu(I)))).forEach(Se=>{ve[Se]=(...je)=>{var Te,Ce,xe,Ne,Ee;(xe=ie[Se])===null||xe===void 0||(Te=xe).call.apply(Te,[ie].concat(je)),(Ee=(Ne=w.props)[Se])===null||Ee===void 0||(Ce=Ee).call.apply(Ce,[Ne].concat(je))}});const he=[ve["aria-required"],ve["aria-invalid"],ve["aria-describedby"]];de=l.createElement(oX,{control:ie,update:w,childProps:he},Fr(w,ve))}else R&&(i||o)&&!N?de=w(oe):de=w}return G(de,te,ne)}))}const FT=aX;FT.useStatus=zT;var iX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lX=e=>{var{prefixCls:t,children:n}=e,r=iX(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(Dt),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(FP,Object.assign({},r),(s,u,d)=>l.createElement(MC.Provider,{value:i},n(s.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),u,{errors:d.errors,warnings:d.warnings})))};function sX(){const{form:e}=l.useContext(Za);return e}const sn=AG;sn.Item=FT;sn.List=lX;sn.ErrorList=DT;sn.useForm=lS;sn.useFormInstance=sX;sn.useWatch=HP;sn.Provider=WP;sn.create=()=>{};var cX=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:Y6}))},sS=l.forwardRef(cX);function AT(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function uX(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Ni(e,t,n,r){var o=ju.unstable_batchedUpdates?function(i){ju.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var xd=l.createContext(null),dX=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,a=t.prefixCls,i=t.rootClassName,s=t.icons,u=t.countRender,d=t.showSwitch,m=t.showProgress,v=t.current,p=t.transform,y=t.count,h=t.scale,C=t.minScale,g=t.maxScale,S=t.closeIcon,x=t.onActive,w=t.onClose,R=t.onZoomIn,$=t.onZoomOut,O=t.onRotateRight,I=t.onRotateLeft,N=t.onFlipX,P=t.onFlipY,T=t.onReset,k=t.toolbarRender,H=t.zIndex,A=t.image,_=l.useContext(xd),D=s.rotateLeft,j=s.rotateRight,z=s.zoomIn,F=s.zoomOut,W=s.close,K=s.left,B=s.right,V=s.flipX,U=s.flipY,q="".concat(a,"-operations-operation");l.useEffect(function(){var se=function(Se){Se.keyCode===Et.ESC&&w()};return n&&window.addEventListener("keydown",se),function(){window.removeEventListener("keydown",se)}},[n]);var G=function(he,Se){he.preventDefault(),he.stopPropagation(),x(Se)},Z=l.useCallback(function(se){var he=se.type,Se=se.disabled,je=se.onClick,Te=se.icon;return l.createElement("div",{key:he,className:re(q,"".concat(a,"-operations-operation-").concat(he),Y({},"".concat(a,"-operations-operation-disabled"),!!Se)),onClick:je},Te)},[q,a]),ee=d?Z({icon:K,onClick:function(he){return G(he,-1)},type:"prev",disabled:v===0}):void 0,J=d?Z({icon:B,onClick:function(he){return G(he,1)},type:"next",disabled:v===y-1}):void 0,oe=Z({icon:U,onClick:P,type:"flipY"}),ae=Z({icon:V,onClick:N,type:"flipX"}),te=Z({icon:D,onClick:I,type:"rotateLeft"}),ne=Z({icon:j,onClick:O,type:"rotateRight"}),ie=Z({icon:F,onClick:$,type:"zoomOut",disabled:h<=C}),de=Z({icon:z,onClick:R,type:"zoomIn",disabled:h===g}),ve=l.createElement("div",{className:"".concat(a,"-operations")},oe,ae,te,ne,ie,de);return l.createElement(Do,{visible:n,motionName:r},function(se){var he=se.className,Se=se.style;return l.createElement(Vv,{open:!0,getContainer:o??document.body},l.createElement("div",{className:re("".concat(a,"-operations-wrapper"),he,i),style:X(X({},Se),{},{zIndex:H})},S===null?null:l.createElement("button",{className:"".concat(a,"-close"),onClick:w},S||W),d&&l.createElement(l.Fragment,null,l.createElement("div",{className:re("".concat(a,"-switch-left"),Y({},"".concat(a,"-switch-left-disabled"),v===0)),onClick:function(Te){return G(Te,-1)}},K),l.createElement("div",{className:re("".concat(a,"-switch-right"),Y({},"".concat(a,"-switch-right-disabled"),v===y-1)),onClick:function(Te){return G(Te,1)}},B)),l.createElement("div",{className:"".concat(a,"-footer")},m&&l.createElement("div",{className:"".concat(a,"-progress")},u?u(v+1,y):l.createElement("bdi",null,"".concat(v+1," / ").concat(y))),k?k(ve,X(X({icons:{prevIcon:ee,nextIcon:J,flipYIcon:oe,flipXIcon:ae,rotateLeftIcon:te,rotateRightIcon:ne,zoomOutIcon:ie,zoomInIcon:de},actions:{onActive:x,onFlipY:P,onFlipX:N,onRotateLeft:I,onRotateRight:O,onZoomOut:$,onZoomIn:R,onReset:T,onClose:w},transform:p},_?{current:v,total:y}:{}),{},{image:A})):ve)))})},Uf={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function fX(e,t,n,r){var o=l.useRef(null),a=l.useRef([]),i=l.useState(Uf),s=ce(i,2),u=s[0],d=s[1],m=function(h){d(Uf),ya(Uf,u)||r==null||r({transform:Uf,action:h})},v=function(h,C){o.current===null&&(a.current=[],o.current=cn(function(){d(function(g){var S=g;return a.current.forEach(function(x){S=X(X({},S),x)}),o.current=null,r==null||r({transform:S,action:C}),S})})),a.current.push(X(X({},u),h))},p=function(h,C,g,S,x){var w=e.current,R=w.width,$=w.height,O=w.offsetWidth,I=w.offsetHeight,N=w.offsetLeft,P=w.offsetTop,T=h,k=u.scale*h;k>n?(k=n,T=n/u.scale):k<t&&(k=x?k:t,T=k/u.scale);var H=g??innerWidth/2,A=S??innerHeight/2,_=T-1,D=_*R*.5,j=_*$*.5,z=_*(H-u.x-N),F=_*(A-u.y-P),W=u.x-(z-D),K=u.y-(F-j);if(h<1&&k===1){var B=O*k,V=I*k,U=AT(),q=U.width,G=U.height;B<=q&&V<=G&&(W=0,K=0)}v({x:W,y:K,scale:k},C)};return{transform:u,resetTransform:m,updateTransform:v,dispatchZoomChange:p}}function O2(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return Y({},e,a);if(t<0&&o<r)return Y({},e,-a)}else if(t<0||o>r)return Y({},e,t<0?a:-a);return{}}function BT(e,t,n,r){var o=AT(),a=o.width,i=o.height,s=null;return e<=a&&t<=i?s={x:0,y:0}:(e>a||t>i)&&(s=X(X({},O2("x",n,e,a)),O2("y",r,t,i))),s}var $s=1,mX=1;function vX(e,t,n,r,o,a,i){var s=o.rotate,u=o.scale,d=o.x,m=o.y,v=l.useState(!1),p=ce(v,2),y=p[0],h=p[1],C=l.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),g=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),C.current={diffX:$.pageX-d,diffY:$.pageY-m,transformX:d,transformY:m},h(!0))},S=function($){n&&y&&a({x:$.pageX-C.current.diffX,y:$.pageY-C.current.diffY},"move")},x=function(){if(n&&y){h(!1);var $=C.current,O=$.transformX,I=$.transformY,N=d!==O&&m!==I;if(!N)return;var P=e.current.offsetWidth*u,T=e.current.offsetHeight*u,k=e.current.getBoundingClientRect(),H=k.left,A=k.top,_=s%180!==0,D=BT(_?T:P,_?P:T,H,A);D&&a(X({},D),"dragRebound")}},w=function($){if(!(!n||$.deltaY==0)){var O=Math.abs($.deltaY/100),I=Math.min(O,mX),N=$s+I*r;$.deltaY>0&&(N=$s/N),i(N,"wheel",$.clientX,$.clientY)}};return l.useEffect(function(){var R,$,O,I;if(t){O=Ni(window,"mouseup",x,!1),I=Ni(window,"mousemove",S,!1);try{window.top!==window.self&&(R=Ni(window.top,"mouseup",x,!1),$=Ni(window.top,"mousemove",S,!1))}catch{}}return function(){var N,P,T,k;(N=O)===null||N===void 0||N.remove(),(P=I)===null||P===void 0||P.remove(),(T=R)===null||T===void 0||T.remove(),(k=$)===null||k===void 0||k.remove()}},[n,y,d,m,s,t]),{isMoving:y,onMouseDown:g,onMouseMove:S,onMouseUp:x,onWheel:w}}function pX(e){return new Promise(function(t){if(!e){t(!1);return}var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function HT(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=l.useState(n?"loading":"normal"),a=ce(o,2),i=a[0],s=a[1],u=l.useRef(!1),d=i==="error";l.useEffect(function(){var y=!0;return pX(t).then(function(h){!h&&y&&s("error")}),function(){y=!1}},[t]),l.useEffect(function(){n&&!u.current?s("loading"):d&&s("normal")},[t]);var m=function(){s("normal")},v=function(h){u.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(u.current=!0,m())},p=d&&r?{src:r}:{onLoad:m,src:t};return[v,p,i]}function Zm(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function gX(e,t,n,r){var o=Zm(e,n),a=Zm(t,r);if(o===0&&a===0)return[e.x,e.y];var i=o/(o+a),s=e.x+i*(t.x-e.x),u=e.y+i*(t.y-e.y);return[s,u]}function hX(e,t,n,r,o,a,i){var s=o.rotate,u=o.scale,d=o.x,m=o.y,v=l.useState(!1),p=ce(v,2),y=p[0],h=p[1],C=l.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function($){C.current=X(X({},C.current),$)},S=function($){if(t){$.stopPropagation(),h(!0);var O=$.touches,I=O===void 0?[]:O;I.length>1?g({point1:{x:I[0].clientX,y:I[0].clientY},point2:{x:I[1].clientX,y:I[1].clientY},eventType:"touchZoom"}):g({point1:{x:I[0].clientX-d,y:I[0].clientY-m},eventType:"move"})}},x=function($){var O=$.touches,I=O===void 0?[]:O,N=C.current,P=N.point1,T=N.point2,k=N.eventType;if(I.length>1&&k==="touchZoom"){var H={x:I[0].clientX,y:I[0].clientY},A={x:I[1].clientX,y:I[1].clientY},_=gX(P,T,H,A),D=ce(_,2),j=D[0],z=D[1],F=Zm(H,A)/Zm(P,T);i(F,"touchZoom",j,z,!0),g({point1:H,point2:A,eventType:"touchZoom"})}else k==="move"&&(a({x:I[0].clientX-P.x,y:I[0].clientY-P.y},"move"),g({eventType:"move"}))},w=function(){if(n){if(y&&h(!1),g({eventType:"none"}),r>u)return a({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*u,O=e.current.offsetHeight*u,I=e.current.getBoundingClientRect(),N=I.left,P=I.top,T=s%180!==0,k=BT(T?O:$,T?$:O,N,P);k&&a(X({},k),"dragRebound")}};return l.useEffect(function(){var R;return n&&t&&(R=Ni(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=R)===null||$===void 0||$.remove()}},[n,t]),{isTouching:y,onTouchStart:S,onTouchMove:x,onTouchEnd:w}}var yX=["fallback","src","imgRef"],bX=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],CX=function(t){var n=t.fallback,r=t.src,o=t.imgRef,a=jt(t,yX),i=HT({src:r,fallback:n}),s=ce(i,2),u=s[0],d=s[1];return pe.createElement("img",Me({ref:function(v){o.current=v,u(v)}},a,d))},VT=function(t){var n=t.prefixCls,r=t.src,o=t.alt,a=t.imageInfo,i=t.fallback,s=t.movable,u=s===void 0?!0:s,d=t.onClose,m=t.visible,v=t.icons,p=v===void 0?{}:v,y=t.rootClassName,h=t.closeIcon,C=t.getContainer,g=t.current,S=g===void 0?0:g,x=t.count,w=x===void 0?1:x,R=t.countRender,$=t.scaleStep,O=$===void 0?.5:$,I=t.minScale,N=I===void 0?1:I,P=t.maxScale,T=P===void 0?50:P,k=t.transitionName,H=k===void 0?"zoom":k,A=t.maskTransitionName,_=A===void 0?"fade":A,D=t.imageRender,j=t.imgCommonProps,z=t.toolbarRender,F=t.onTransform,W=t.onChange,K=jt(t,bX),B=l.useRef(),V=l.useContext(xd),U=V&&w>1,q=V&&w>=1,G=l.useState(!0),Z=ce(G,2),ee=Z[0],J=Z[1],oe=fX(B,N,T,F),ae=oe.transform,te=oe.resetTransform,ne=oe.updateTransform,ie=oe.dispatchZoomChange,de=vX(B,u,m,O,ae,ne,ie),ve=de.isMoving,se=de.onMouseDown,he=de.onWheel,Se=hX(B,u,m,N,ae,ne,ie),je=Se.isTouching,Te=Se.onTouchStart,Ce=Se.onTouchMove,xe=Se.onTouchEnd,Ne=ae.rotate,Ee=ae.scale,Be=re(Y({},"".concat(n,"-moving"),ve));l.useEffect(function(){ee||J(!0)},[ee]);var Ve=function(){te("close")},tt=function(){ie($s+O,"zoomIn")},nt=function(){ie($s/($s+O),"zoomOut")},We=function(){ne({rotate:Ne+90},"rotateRight")},Ze=function(){ne({rotate:Ne-90},"rotateLeft")},Le=function(){ne({flipX:!ae.flipX},"flipX")},Re=function(){ne({flipY:!ae.flipY},"flipY")},qe=function(){te("reset")},ye=function(gt){var yt=S+gt;!Number.isInteger(yt)||yt<0||yt>w-1||(J(!1),te(gt<0?"prev":"next"),W==null||W(yt,S))},Oe=function(gt){!m||!U||(gt.keyCode===Et.LEFT?ye(-1):gt.keyCode===Et.RIGHT&&ye(1))},Fe=function(gt){m&&(Ee!==1?ne({x:0,y:0,scale:1},"doubleClick"):ie($s+O,"doubleClick",gt.clientX,gt.clientY))};l.useEffect(function(){var ot=Ni(window,"keydown",Oe,!1);return function(){ot.remove()}},[m,U,S]);var we=pe.createElement(CX,Me({},j,{width:t.width,height:t.height,imgRef:B,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(ae.x,"px, ").concat(ae.y,"px, 0) scale3d(").concat(ae.flipX?"-":"").concat(Ee,", ").concat(ae.flipY?"-":"").concat(Ee,", 1) rotate(").concat(Ne,"deg)"),transitionDuration:(!ee||je)&&"0s"},fallback:i,src:r,onWheel:he,onMouseDown:se,onDoubleClick:Fe,onTouchStart:Te,onTouchMove:Ce,onTouchEnd:xe,onTouchCancel:xe})),He=X({url:r,alt:o},a);return pe.createElement(pe.Fragment,null,pe.createElement(RC,Me({transitionName:H,maskTransitionName:_,closable:!1,keyboard:!0,prefixCls:n,onClose:d,visible:m,classNames:{wrapper:Be},rootClassName:y,getContainer:C},K,{afterClose:Ve}),pe.createElement("div",{className:"".concat(n,"-img-wrapper")},D?D(we,X({transform:ae,image:He},V?{current:S}:{})):we)),pe.createElement(dX,{visible:m,transform:ae,maskTransitionName:_,closeIcon:h,getContainer:C,prefixCls:n,rootClassName:y,icons:p,countRender:R,showSwitch:U,showProgress:q,current:S,count:w,scale:Ee,minScale:N,maxScale:T,toolbarRender:z,onActive:ye,onZoomIn:tt,onZoomOut:nt,onRotateRight:We,onRotateLeft:Ze,onFlipX:Le,onFlipY:Re,onClose:d,onReset:qe,zIndex:K.zIndex!==void 0?K.zIndex+1:void 0,image:He}))},hb=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function SX(e){var t=l.useState({}),n=ce(t,2),r=n[0],o=n[1],a=l.useCallback(function(s,u){return o(function(d){return X(X({},d),{},Y({},s,u))}),function(){o(function(d){var m=X({},d);return delete m[s],m})}},[]),i=l.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var u={};return Object.keys(s).forEach(function(d){["src"].concat(_e(hb)).includes(d)&&(u[d]=s[d])}),{data:u}}):Object.keys(r).reduce(function(s,u){var d=r[u],m=d.canPreview,v=d.data;return m&&s.push({data:v,id:u}),s},[])},[e,r]);return[i,a,!!e]}var xX=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],wX=["src"],$X=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,a=t.children,i=t.icons,s=i===void 0?{}:i,u=t.items,d=t.preview,m=t.fallback,v=ht(d)==="object"?d:{},p=v.visible,y=v.onVisibleChange,h=v.getContainer,C=v.current,g=v.movable,S=v.minScale,x=v.maxScale,w=v.countRender,R=v.closeIcon,$=v.onChange,O=v.onTransform,I=v.toolbarRender,N=v.imageRender,P=jt(v,xX),T=SX(u),k=ce(T,3),H=k[0],A=k[1],_=k[2],D=Tn(0,{value:C}),j=ce(D,2),z=j[0],F=j[1],W=l.useState(!1),K=ce(W,2),B=K[0],V=K[1],U=((n=H[z])===null||n===void 0?void 0:n.data)||{},q=U.src,G=jt(U,wX),Z=Tn(!!p,{value:p,onChange:function(je,Te){y==null||y(je,Te,z)}}),ee=ce(Z,2),J=ee[0],oe=ee[1],ae=l.useState(null),te=ce(ae,2),ne=te[0],ie=te[1],de=l.useCallback(function(Se,je,Te,Ce){var xe=_?H.findIndex(function(Ne){return Ne.data.src===je}):H.findIndex(function(Ne){return Ne.id===Se});F(xe<0?0:xe),oe(!0),ie({x:Te,y:Ce}),V(!0)},[H,_]);l.useEffect(function(){J?B||F(0):V(!1)},[J]);var ve=function(je,Te){F(je),$==null||$(je,Te)},se=function(){oe(!1),ie(null)},he=l.useMemo(function(){return{register:A,onPreview:de}},[A,de]);return l.createElement(xd.Provider,{value:he},a,l.createElement(VT,Me({"aria-hidden":!J,movable:g,visible:J,prefixCls:o,closeIcon:R,onClose:se,mousePosition:ne,imgCommonProps:G,src:q,fallback:m,icons:s,minScale:S,maxScale:x,getContainer:h,current:z,count:H.length,countRender:w,onTransform:O,toolbarRender:I,imageRender:N,onChange:ve},P)))},R2=0;function EX(e,t){var n=l.useState(function(){return R2+=1,String(R2)}),r=ce(n,1),o=r[0],a=l.useContext(xd),i={data:t,canPreview:e};return l.useEffect(function(){if(a)return a.register(o,i)},[]),l.useEffect(function(){a&&a.register(o,i)},[e,t]),o}var OX=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],RX=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],cS=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,a=t.prefixCls,i=a===void 0?"rc-image":a,s=t.previewPrefixCls,u=s===void 0?"".concat(i,"-preview"):s,d=t.placeholder,m=t.fallback,v=t.width,p=t.height,y=t.style,h=t.preview,C=h===void 0?!0:h,g=t.className,S=t.onClick,x=t.onError,w=t.wrapperClassName,R=t.wrapperStyle,$=t.rootClassName,O=jt(t,OX),I=d&&d!==!0,N=ht(C)==="object"?C:{},P=N.src,T=N.visible,k=T===void 0?void 0:T,H=N.onVisibleChange,A=H===void 0?o:H,_=N.getContainer,D=_===void 0?void 0:_,j=N.mask,z=N.maskClassName,F=N.movable,W=N.icons,K=N.scaleStep,B=N.minScale,V=N.maxScale,U=N.imageRender,q=N.toolbarRender,G=jt(N,RX),Z=P??n,ee=Tn(!!k,{value:k,onChange:A}),J=ce(ee,2),oe=J[0],ae=J[1],te=HT({src:n,isCustomPlaceholder:I,fallback:m}),ne=ce(te,3),ie=ne[0],de=ne[1],ve=ne[2],se=l.useState(null),he=ce(se,2),Se=he[0],je=he[1],Te=l.useContext(xd),Ce=!!C,xe=function(){ae(!1),je(null)},Ne=re(i,w,$,Y({},"".concat(i,"-error"),ve==="error")),Ee=l.useMemo(function(){var nt={};return hb.forEach(function(We){t[We]!==void 0&&(nt[We]=t[We])}),nt},hb.map(function(nt){return t[nt]})),Be=l.useMemo(function(){return X(X({},Ee),{},{src:Z})},[Z,Ee]),Ve=EX(Ce,Be),tt=function(We){var Ze=uX(We.target),Le=Ze.left,Re=Ze.top;Te?Te.onPreview(Ve,Z,Le,Re):(je({x:Le,y:Re}),ae(!0)),S==null||S(We)};return l.createElement(l.Fragment,null,l.createElement("div",Me({},O,{className:Ne,onClick:Ce?tt:S,style:X({width:v,height:p},R)}),l.createElement("img",Me({},Ee,{className:re("".concat(i,"-img"),Y({},"".concat(i,"-img-placeholder"),d===!0),g),style:X({height:p},y),ref:ie},de,{width:v,height:p,onError:x})),ve==="loading"&&l.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},d),j&&Ce&&l.createElement("div",{className:re("".concat(i,"-mask"),z),style:{display:(y==null?void 0:y.display)==="none"?"none":void 0}},j)),!Te&&Ce&&l.createElement(VT,Me({"aria-hidden":!oe,visible:oe,prefixCls:u,onClose:xe,mousePosition:Se,src:Z,alt:r,imageInfo:{width:v,height:p},fallback:m,getContainer:D,icons:W,movable:F,scaleStep:K,minScale:B,maxScale:V,rootClassName:$,imageRender:U,imgCommonProps:Ee,toolbarRender:q},G)))};cS.PreviewGroup=$X;var IX=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:bz}))},PX=l.forwardRef(IX),NX=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:Cz}))},MX=l.forwardRef(NX),TX=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:xz}))},I2=l.forwardRef(TX),_X=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:jz}))},DX=l.forwardRef(_X),jX=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:kz}))},kX=l.forwardRef(jX);const yb=e=>({position:e||"absolute",inset:0}),zX=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new tn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Da),{padding:`0 ${le(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},LX=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:a,paddingLG:i,previewOperationColorDisabled:s,previewOperationHoverColor:u,motionDurationSlow:d,iconCls:m,colorTextLightSolid:v}=e,p=new tn(n).setA(.1),y=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:v,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${d}`,"&:hover":{backgroundColor:y.toRgbString()},[`& > ${m}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${le(i)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${d}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${m}`]:{color:u},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${m}`]:{fontSize:e.previewOperationSize}}}}},FX=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,s=new tn(t).setA(.1),u=s.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:u.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},AX=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},yb()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},yb()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[LX(e),FX(e)]}]},BX=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},zX(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},yb())}}},HX=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Zs(e,"zoom"),"&":wC(e,!0)}},VX=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new tn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new tn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new tn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),WT=In("Image",e=>{const t=`${e.componentCls}-preview`,n=nn(e,{previewCls:t,modalMaskBg:new tn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[BX(n),AX(n),QP(nn(n,{componentCls:t})),HX(n)]},VX);var WX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KT={rotateLeft:l.createElement(PX,null),rotateRight:l.createElement(MX,null),zoomIn:l.createElement(DX,null),zoomOut:l.createElement(kX,null),close:l.createElement(jl,null),left:l.createElement(Bi,null),right:l.createElement(zi,null),flipX:l.createElement(I2,null),flipY:l.createElement(I2,{rotate:90})},KX=e=>{var{previewPrefixCls:t,preview:n}=e,r=WX(e,["previewPrefixCls","preview"]);const{getPrefixCls:o,direction:a}=l.useContext(Dt),i=o("image",t),s=`${i}-preview`,u=o(),d=vr(i),[m,v,p]=WT(i,d),[y]=ti("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=l.useMemo(()=>Object.assign(Object.assign({},KT),{left:a==="rtl"?l.createElement(zi,null):l.createElement(Bi,null),right:a==="rtl"?l.createElement(Bi,null):l.createElement(zi,null)}),[a]),C=l.useMemo(()=>{var g;if(n===!1)return n;const S=typeof n=="object"?n:{},x=re(v,p,d,(g=S.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},S),{transitionName:ba(u,"zoom",S.transitionName),maskTransitionName:ba(u,"fade",S.maskTransitionName),rootClassName:x,zIndex:y})},[n]);return m(l.createElement(cS.PreviewGroup,Object.assign({preview:C,previewPrefixCls:s,icons:h},r)))};var P2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uS=e=>{const{prefixCls:t,preview:n,className:r,rootClassName:o,style:a}=e,i=P2(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:u,className:d,style:m,preview:v}=Er("image"),[p]=ho("Image"),y=s("image",t),h=s(),C=vr(y),[g,S,x]=WT(y,C),w=re(o,S,x,C),R=re(r,S,d),[$]=ti("ImagePreview",typeof n=="object"?n.zIndex:void 0),O=l.useMemo(()=>{if(n===!1)return n;const N=typeof n=="object"?n:{},{getContainer:P,closeIcon:T,rootClassName:k,destroyOnClose:H,destroyOnHidden:A}=N,_=P2(N,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:l.createElement("div",{className:`${y}-mask-info`},l.createElement(sS,null),p==null?void 0:p.preview),icons:KT},_),{destroyOnClose:A??H,rootClassName:re(w,k),getContainer:P??u,transitionName:ba(h,"zoom",N.transitionName),maskTransitionName:ba(h,"fade",N.maskTransitionName),zIndex:$,closeIcon:T??(v==null?void 0:v.closeIcon)})},[n,p,v==null?void 0:v.closeIcon]),I=Object.assign(Object.assign({},m),a);return g(l.createElement(cS,Object.assign({prefixCls:y,preview:O,rootClassName:w,className:R,style:I},i)))};uS.PreviewGroup=KX;const UX=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Dt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,u,d]=aT(i),m=re(a,d,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},u,o),v=l.useContext(Ar),p=l.useMemo(()=>Object.assign(Object.assign({},v),{isFormItemInput:!1}),[v]);return s(l.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(Ar.Provider,{value:p},e.children)))},qX=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:"var(--ant-color-text)"},[`${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}}}},YX=In(["Input","OTP"],e=>{const t=nn(e,ic(e));return[qX(t)]},lc);var GX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XX=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,u=GX(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=l.useContext(Dt),m=d("otp"),v=typeof s=="string"?s:r,p=l.useRef(null);l.useImperativeHandle(t,()=>p.current);const y=S=>{o(i,S.target.value)},h=()=>{cn(()=>{var S;const x=(S=p.current)===null||S===void 0?void 0:S.input;document.activeElement===x&&x&&x.select()})},C=S=>{const{key:x,ctrlKey:w,metaKey:R}=S;x==="ArrowLeft"?a(i-1):x==="ArrowRight"?a(i+1):x==="z"&&(w||R)&&S.preventDefault(),h()},g=S=>{S.key==="Backspace"&&!r&&a(i-1),h()};return l.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&l.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},v),l.createElement(Sd,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},u,{ref:p,value:r,onInput:y,onFocus:h,onKeyDown:C,onKeyUp:g,onMouseDown:h,onMouseUp:h,className:re(n,{[`${m}-mask-input`]:s})})))});var QX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function qf(e){return(e||"").split("")}const ZX=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?l.createElement("span",{className:`${n}-separator`},o):null},JX=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:u,separator:d,variant:m,disabled:v,status:p,autoFocus:y,mask:h,type:C,onInput:g,inputMode:S}=e,x=QX(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:R}=l.useContext(Dt),$=w("otp",n),O=wr(x,{aria:!0,data:!0,attr:!0}),[I,N,P]=YX($),T=Xr(q=>o??q),k=l.useContext(Ar),H=nc(k.status,p),A=l.useMemo(()=>Object.assign(Object.assign({},k),{status:H,hasFeedback:!1,feedbackIcon:null}),[k,H]),_=l.useRef(null),D=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var q;(q=D.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let G=0;G<r;G+=1)(q=D.current[G])===null||q===void 0||q.blur()},nativeElement:_.current}));const j=q=>u?u(q):q,[z,F]=l.useState(()=>qf(j(a||"")));l.useEffect(()=>{i!==void 0&&F(qf(i))},[i]);const W=ln(q=>{F(q),g&&g(q),s&&q.length===r&&q.every(G=>G)&&q.some((G,Z)=>z[Z]!==G)&&s(q.join(""))}),K=ln((q,G)=>{let Z=_e(z);for(let J=0;J<q;J+=1)Z[J]||(Z[J]="");G.length<=1?Z[q]=G:Z=Z.slice(0,q).concat(qf(G)),Z=Z.slice(0,r);for(let J=Z.length-1;J>=0&&!Z[J];J-=1)Z.pop();const ee=j(Z.map(J=>J||" ").join(""));return Z=qf(ee).map((J,oe)=>J===" "&&!Z[oe]?Z[oe]:J),Z}),B=(q,G)=>{var Z;const ee=K(q,G),J=Math.min(q+G.length,r-1);J!==q&&ee[q]!==void 0&&((Z=D.current[J])===null||Z===void 0||Z.focus()),W(ee)},V=q=>{var G;(G=D.current[q])===null||G===void 0||G.focus()},U={variant:m,disabled:v,status:H,mask:h,type:C,inputMode:S};return I(l.createElement("div",Object.assign({},O,{ref:_,className:re($,{[`${$}-sm`]:T==="small",[`${$}-lg`]:T==="large",[`${$}-rtl`]:R==="rtl"},P,N),role:"group"}),l.createElement(Ar.Provider,{value:A},Array.from({length:r}).map((q,G)=>{const Z=`otp-${G}`,ee=z[G]||"";return l.createElement(l.Fragment,{key:Z},l.createElement(XX,Object.assign({ref:J=>{D.current[G]=J},index:G,size:T,htmlSize:1,className:`${$}-input`,onChange:B,value:ee,onActiveChange:V,autoFocus:G===0&&y},U)),G<r-1&&l.createElement(ZX,{separator:d,index:G,prefixCls:$}))}))))});var eQ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:q6}))},tQ=l.forwardRef(eQ),nQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rQ=e=>e?l.createElement(sS,null):l.createElement(tQ,null),oQ={click:"onClick",hover:"onMouseOver"},aQ=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=rQ}=e,i=l.useContext(go),s=n??i,u=typeof o=="object"&&o.visible!==void 0,[d,m]=l.useState(()=>u?o.visible:!1),v=l.useRef(null);l.useEffect(()=>{u&&m(o.visible)},[u,o]);const p=bT(v),y=()=>{var T;if(s)return;d&&p();const k=!d;m(k),typeof o=="object"&&((T=o.onVisibleChange)===null||T===void 0||T.call(o,k))},h=T=>{const k=oQ[r]||"",H=a(d),A={[k]:y,className:`${T}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault()},onMouseUp:_=>{_.preventDefault()}};return l.cloneElement(l.isValidElement(H)?H:l.createElement("span",null,H),A)},{className:C,prefixCls:g,inputPrefixCls:S,size:x}=e,w=nQ(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:R}=l.useContext(Dt),$=R("input",S),O=R("input-password",g),I=o&&h(O),N=re(O,C,{[`${O}-${x}`]:!!x}),P=Object.assign(Object.assign({},Hn(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:N,prefixCls:$,suffix:I});return x&&(P.size=x),l.createElement(Sd,Object.assign({ref:To(t,v)},P))});var iQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lQ=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:u,loading:d,disabled:m,onSearch:v,onChange:p,onCompositionStart:y,onCompositionEnd:h,variant:C,onPressEnter:g}=e,S=iQ(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:w}=l.useContext(Dt),R=l.useRef(!1),$=x("input-search",n),O=x("input",r),{compactSize:I}=qi($,w),N=Xr(U=>{var q;return(q=a??I)!==null&&q!==void 0?q:U}),P=l.useRef(null),T=U=>{U!=null&&U.target&&U.type==="click"&&v&&v(U.target.value,U,{source:"clear"}),p==null||p(U)},k=U=>{var q;document.activeElement===((q=P.current)===null||q===void 0?void 0:q.input)&&U.preventDefault()},H=U=>{var q,G;v&&v((G=(q=P.current)===null||q===void 0?void 0:q.input)===null||G===void 0?void 0:G.value,U,{source:"input"})},A=U=>{R.current||d||(g==null||g(U),H(U))},_=typeof s=="boolean"?l.createElement(zC,null):null,D=`${$}-button`;let j;const z=s||{},F=z.type&&z.type.__ANT_BUTTON===!0;F||z.type==="button"?j=Fr(z,Object.assign({onMouseDown:k,onClick:U=>{var q,G;(G=(q=z==null?void 0:z.props)===null||q===void 0?void 0:q.onClick)===null||G===void 0||G.call(q,U),H(U)},key:"enterButton"},F?{className:D,size:N}:{})):j=l.createElement(Sn,{className:D,color:s?"primary":"default",size:N,disabled:m,key:"enterButton",onMouseDown:k,onClick:H,loading:d,icon:_,variant:C==="borderless"||C==="filled"||C==="underlined"?"text":s?"solid":void 0},s),u&&(j=[j,Fr(u,{key:"addonAfter"})]);const W=re($,{[`${$}-rtl`]:w==="rtl",[`${$}-${N}`]:!!N,[`${$}-with-button`]:!!s},o),K=U=>{R.current=!0,y==null||y(U)},B=U=>{R.current=!1,h==null||h(U)},V=Object.assign(Object.assign({},S),{className:W,prefixCls:O,type:"search",size:N,variant:C,onPressEnter:A,onCompositionStart:K,onCompositionEnd:B,addonAfter:j,suffix:i,onChange:T,disabled:m});return l.createElement(Sd,Object.assign({ref:To(P,t)},V))});var sQ=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,cQ=["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"],u0={},Eo;function uQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&u0[n])return u0[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=cQ.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),u={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(u0[n]=u),u}function dQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Eo||(Eo=document.createElement("textarea"),Eo.setAttribute("tab-index","-1"),Eo.setAttribute("aria-hidden","true"),Eo.setAttribute("name","hiddenTextarea"),document.body.appendChild(Eo)),e.getAttribute("wrap")?Eo.setAttribute("wrap",e.getAttribute("wrap")):Eo.removeAttribute("wrap");var o=uQ(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,u=o.sizingStyle;Eo.setAttribute("style","".concat(u,";").concat(sQ)),Eo.value=e.value||e.placeholder||"";var d=void 0,m=void 0,v,p=Eo.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=a),n!==null||r!==null){Eo.value=" ";var y=Eo.scrollHeight-a;n!==null&&(d=y*n,s==="border-box"&&(d=d+a+i),p=Math.max(d,p)),r!==null&&(m=y*r,s==="border-box"&&(m=m+a+i),v=p>m?"":"hidden",p=Math.min(m,p))}var h={height:p,overflowY:v,resize:"none"};return d&&(h.minHeight=d),m&&(h.maxHeight=m),h}var fQ=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],d0=0,f0=1,m0=2,mQ=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,u=n.className,d=n.style,m=n.disabled,v=n.onChange;n.onInternalAutoSize;var p=jt(n,fQ),y=Tn(o,{value:a,postState:function(q){return q??""}}),h=ce(y,2),C=h[0],g=h[1],S=function(q){g(q.target.value),v==null||v(q)},x=l.useRef();l.useImperativeHandle(t,function(){return{textArea:x.current}});var w=l.useMemo(function(){return i&&ht(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),R=ce(w,2),$=R[0],O=R[1],I=!!i,N=function(){try{if(document.activeElement===x.current){var q=x.current,G=q.selectionStart,Z=q.selectionEnd,ee=q.scrollTop;x.current.setSelectionRange(G,Z),x.current.scrollTop=ee}}catch{}},P=l.useState(m0),T=ce(P,2),k=T[0],H=T[1],A=l.useState(),_=ce(A,2),D=_[0],j=_[1],z=function(){H(d0)};dn(function(){I&&z()},[a,$,O,I]),dn(function(){if(k===d0)H(f0);else if(k===f0){var U=dQ(x.current,!1,$,O);H(m0),j(U)}else N()},[k]);var F=l.useRef(),W=function(){cn.cancel(F.current)},K=function(q){k===m0&&(s==null||s(q),i&&(W(),F.current=cn(function(){z()})))};l.useEffect(function(){return W},[]);var B=I?D:null,V=X(X({},d),B);return(k===d0||k===f0)&&(V.overflowY="hidden",V.overflowX="hidden"),l.createElement(_o,{onResize:K,disabled:!(i||s)},l.createElement("textarea",Me({},p,{ref:x,style:V,className:re(r,u,Y({},"".concat(r,"-disabled"),m)),disabled:m,value:C,onChange:S})))}),vQ=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],pQ=pe.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,m=e.onCompositionStart,v=e.onCompositionEnd,p=e.suffix,y=e.prefixCls,h=y===void 0?"rc-textarea":y,C=e.showCount,g=e.count,S=e.className,x=e.style,w=e.disabled,R=e.hidden,$=e.classNames,O=e.styles,I=e.onResize,N=e.onClear,P=e.onPressEnter,T=e.readOnly,k=e.autoSize,H=e.onKeyDown,A=jt(e,vQ),_=Tn(r,{value:o,defaultValue:r}),D=ce(_,2),j=D[0],z=D[1],F=j==null?"":String(j),W=pe.useState(!1),K=ce(W,2),B=K[0],V=K[1],U=pe.useRef(!1),q=pe.useState(null),G=ce(q,2),Z=G[0],ee=G[1],J=l.useRef(null),oe=l.useRef(null),ae=function(){var ye;return(ye=oe.current)===null||ye===void 0?void 0:ye.textArea},te=function(){ae().focus()};l.useImperativeHandle(t,function(){var qe;return{resizableTextArea:oe.current,focus:te,blur:function(){ae().blur()},nativeElement:((qe=J.current)===null||qe===void 0?void 0:qe.nativeElement)||ae()}}),l.useEffect(function(){V(function(qe){return!w&&qe})},[w]);var ne=pe.useState(null),ie=ce(ne,2),de=ie[0],ve=ie[1];pe.useEffect(function(){if(de){var qe;(qe=ae()).setSelectionRange.apply(qe,_e(de))}},[de]);var se=hT(g,C),he=(n=se.max)!==null&&n!==void 0?n:d,Se=Number(he)>0,je=se.strategy(F),Te=!!he&&je>he,Ce=function(ye,Oe){var Fe=Oe;!U.current&&se.exceedFormatter&&se.max&&se.strategy(Oe)>se.max&&(Fe=se.exceedFormatter(Oe,{max:se.max}),Oe!==Fe&&ve([ae().selectionStart||0,ae().selectionEnd||0])),z(Fe),Gm(ye.currentTarget,ye,s,Fe)},xe=function(ye){U.current=!0,m==null||m(ye)},Ne=function(ye){U.current=!1,Ce(ye,ye.currentTarget.value),v==null||v(ye)},Ee=function(ye){Ce(ye,ye.target.value)},Be=function(ye){ye.key==="Enter"&&P&&P(ye),H==null||H(ye)},Ve=function(ye){V(!0),a==null||a(ye)},tt=function(ye){V(!1),i==null||i(ye)},nt=function(ye){z(""),te(),Gm(ae(),ye,s)},We=p,Ze;se.show&&(se.showFormatter?Ze=se.showFormatter({value:F,count:je,maxLength:he}):Ze="".concat(je).concat(Se?" / ".concat(he):""),We=pe.createElement(pe.Fragment,null,We,pe.createElement("span",{className:re("".concat(h,"-data-count"),$==null?void 0:$.count),style:O==null?void 0:O.count},Ze)));var Le=function(ye){var Oe;I==null||I(ye),(Oe=ae())!==null&&Oe!==void 0&&Oe.style.height&&ee(!0)},Re=!k&&!C&&!u;return pe.createElement(gT,{ref:J,value:F,allowClear:u,handleReset:nt,suffix:We,prefixCls:h,classNames:X(X({},$),{},{affixWrapper:re($==null?void 0:$.affixWrapper,Y(Y({},"".concat(h,"-show-count"),C),"".concat(h,"-textarea-allow-clear"),u))}),disabled:w,focused:B,className:re(S,Te&&"".concat(h,"-out-of-range")),style:X(X({},x),Z&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ze=="string"?Ze:void 0}},hidden:R,readOnly:T,onClear:N},pe.createElement(mQ,Me({},A,{autoSize:k,maxLength:d,onKeyDown:Be,onChange:Ee,onFocus:Ve,onBlur:tt,onCompositionStart:xe,onCompositionEnd:Ne,className:re($==null?void 0:$.textarea),style:X(X({},O==null?void 0:O.textarea),{},{resize:x==null?void 0:x.resize}),disabled:w,prefixCls:h,onResize:Le,ref:oe,readOnly:T})))});const gQ=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{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}}}}}},hQ=In(["Input","TextArea"],e=>{const t=nn(e,ic(e));return[gQ(t)]},lc,{resetFont:!1});var yQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UT=l.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:u,classNames:d,rootClassName:m,className:v,style:p,styles:y,variant:h,showCount:C,onMouseDown:g,onResize:S}=e,x=yQ(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:w,direction:R,allowClear:$,autoComplete:O,className:I,style:N,classNames:P,styles:T}=Er("textArea"),k=l.useContext(go),H=i??k,{status:A,hasFeedback:_,feedbackIcon:D}=l.useContext(Ar),j=nc(A,s),z=l.useRef(null);l.useImperativeHandle(t,()=>{var se;return{resizableTextArea:(se=z.current)===null||se===void 0?void 0:se.resizableTextArea,focus:he=>{var Se,je;pT((je=(Se=z.current)===null||Se===void 0?void 0:Se.resizableTextArea)===null||je===void 0?void 0:je.textArea,he)},blur:()=>{var he;return(he=z.current)===null||he===void 0?void 0:he.blur()}}});const F=w("input",r),W=vr(F),[K,B,V]=oT(F,m),[U]=hQ(F,W),{compactSize:q,compactItemClassnames:G}=qi(F,R),Z=Xr(se=>{var he;return(he=a??q)!==null&&he!==void 0?he:se}),[ee,J]=pd("textArea",h,o),oe=yT(u??$),[ae,te]=l.useState(!1),[ne,ie]=l.useState(!1),de=se=>{te(!0),g==null||g(se);const he=()=>{te(!1),document.removeEventListener("mouseup",he)};document.addEventListener("mouseup",he)},ve=se=>{var he,Se;if(S==null||S(se),ae&&typeof getComputedStyle=="function"){const je=(Se=(he=z.current)===null||he===void 0?void 0:he.nativeElement)===null||Se===void 0?void 0:Se.querySelector("textarea");je&&getComputedStyle(je).resize==="both"&&ie(!0)}};return K(U(l.createElement(pQ,Object.assign({autoComplete:O},x,{style:Object.assign(Object.assign({},N),p),styles:Object.assign(Object.assign({},T),y),disabled:H,allowClear:oe,className:re(V,W,v,m,G,I,ne&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),P),{textarea:re({[`${F}-sm`]:Z==="small",[`${F}-lg`]:Z==="large"},B,d==null?void 0:d.textarea,P.textarea,ae&&`${F}-mouse-active`),variant:re({[`${F}-${ee}`]:J},As(F,j)),affixWrapper:re(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:R==="rtl",[`${F}-affix-wrapper-sm`]:Z==="small",[`${F}-affix-wrapper-lg`]:Z==="large",[`${F}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},B)}),prefixCls:F,suffix:_&&l.createElement("span",{className:`${F}-textarea-suffix`},D),showCount:C,ref:z,onResize:ve,onMouseDown:de}))))}),Ln=Sd;Ln.Group=UX;Ln.Search=lQ;Ln.TextArea=UT;Ln.Password=aQ;Ln.OTP=JX;function bQ(e,t,n){return typeof n=="boolean"?n:e.length?!0:po(t).some(o=>o.type===YC)}var qT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function dp({suffixCls:e,tagName:t,displayName:n}){return r=>l.forwardRef((a,i)=>l.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},a)))}const dS=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=qT(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(Dt),u=s("layout",n),[d,m,v]=cM(u),p=r?`${u}-${r}`:u;return d(l.createElement(a,Object.assign({className:re(n||p,o,m,v),ref:t},i)))}),CQ=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(Dt),[r,o]=l.useState([]),{prefixCls:a,className:i,rootClassName:s,children:u,hasSider:d,tagName:m,style:v}=e,p=qT(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Hn(p,["suffixCls"]),{getPrefixCls:h,className:C,style:g}=Er("layout"),S=h("layout",a),x=bQ(r,u,d),[w,R,$]=cM(S),O=re(S,{[`${S}-has-sider`]:x,[`${S}-rtl`]:n==="rtl"},C,i,s,R,$),I=l.useMemo(()=>({siderHook:{addSider:N=>{o(P=>[].concat(_e(P),[N]))},removeSider:N=>{o(P=>P.filter(T=>T!==N))}}}),[]);return w(l.createElement(iM.Provider,{value:I},l.createElement(m,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},g),v)},y),u)))}),SQ=dp({tagName:"div",displayName:"Layout"})(CQ),YT=dp({suffixCls:"header",tagName:"header",displayName:"Header"})(dS),xQ=dp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(dS),GT=dp({suffixCls:"content",tagName:"main",displayName:"Content"})(dS),Il=SQ;Il.Header=YT;Il.Footer=xQ;Il.Content=GT;Il.Sider=YC;Il._InternalSiderContext=tp;var wQ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:z6}))},N2=l.forwardRef(wQ),$Q=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:L6}))},M2=l.forwardRef($Q),EQ={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:"页码"},OQ=[10,20,50,100],RQ=function(t){var n=t.pageSizeOptions,r=n===void 0?OQ:n,o=t.locale,a=t.changeSize,i=t.pageSize,s=t.goButton,u=t.quickGo,d=t.rootPrefixCls,m=t.disabled,v=t.buildOptionText,p=t.showSizeChanger,y=t.sizeChangerRender,h=pe.useState(""),C=ce(h,2),g=C[0],S=C[1],x=function(){return!g||Number.isNaN(g)?void 0:Number(g)},w=typeof v=="function"?v:function(H){return"".concat(H," ").concat(o.items_per_page)},R=function(A){S(A.target.value)},$=function(A){s||g===""||(S(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&(u==null||u(x())))},O=function(A){g!==""&&(A.keyCode===Et.ENTER||A.type==="click")&&(S(""),u==null||u(x()))},I=function(){return r.some(function(A){return A.toString()===i.toString()})?r:r.concat([i]).sort(function(A,_){var D=Number.isNaN(Number(A))?0:Number(A),j=Number.isNaN(Number(_))?0:Number(_);return D-j})},N="".concat(d,"-options");if(!p&&!u)return null;var P=null,T=null,k=null;return p&&y&&(P=y({disabled:m,size:i,onSizeChange:function(A){a==null||a(Number(A))},"aria-label":o.page_size,className:"".concat(N,"-size-changer"),options:I().map(function(H){return{label:w(H),value:H}})})),u&&(s&&(k=typeof s=="boolean"?pe.createElement("button",{type:"button",onClick:O,onKeyUp:O,disabled:m,className:"".concat(N,"-quick-jumper-button")},o.jump_to_confirm):pe.createElement("span",{onClick:O,onKeyUp:O},s)),T=pe.createElement("div",{className:"".concat(N,"-quick-jumper")},o.jump_to,pe.createElement("input",{disabled:m,type:"text",value:g,onChange:R,onKeyUp:O,onBlur:$,"aria-label":o.page}),o.page,k)),pe.createElement("li",{className:N},P,T)},ou=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,a=t.className,i=t.showTitle,s=t.onClick,u=t.onKeyPress,d=t.itemRender,m="".concat(n,"-item"),v=re(m,"".concat(m,"-").concat(r),Y(Y({},"".concat(m,"-active"),o),"".concat(m,"-disabled"),!r),a),p=function(){s(r)},y=function(g){u(g,s,r)},h=d(r,"page",pe.createElement("a",{rel:"nofollow"},r));return h?pe.createElement("li",{title:i?String(r):null,className:v,onClick:p,onKeyDown:y,tabIndex:0},h):null},IQ=function(t,n,r){return r};function T2(){}function _2(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function cl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var PQ=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,i=t.className,s=t.current,u=t.defaultCurrent,d=u===void 0?1:u,m=t.total,v=m===void 0?0:m,p=t.pageSize,y=t.defaultPageSize,h=y===void 0?10:y,C=t.onChange,g=C===void 0?T2:C,S=t.hideOnSinglePage,x=t.align,w=t.showPrevNextJumpers,R=w===void 0?!0:w,$=t.showQuickJumper,O=t.showLessItems,I=t.showTitle,N=I===void 0?!0:I,P=t.onShowSizeChange,T=P===void 0?T2:P,k=t.locale,H=k===void 0?EQ:k,A=t.style,_=t.totalBoundaryShowSizeChanger,D=_===void 0?50:_,j=t.disabled,z=t.simple,F=t.showTotal,W=t.showSizeChanger,K=W===void 0?v>D:W,B=t.sizeChangerRender,V=t.pageSizeOptions,U=t.itemRender,q=U===void 0?IQ:U,G=t.jumpPrevIcon,Z=t.jumpNextIcon,ee=t.prevIcon,J=t.nextIcon,oe=pe.useRef(null),ae=Tn(10,{value:p,defaultValue:h}),te=ce(ae,2),ne=te[0],ie=te[1],de=Tn(1,{value:s,defaultValue:d,postState:function(Mt){return Math.max(1,Math.min(Mt,cl(void 0,ne,v)))}}),ve=ce(de,2),se=ve[0],he=ve[1],Se=pe.useState(se),je=ce(Se,2),Te=je[0],Ce=je[1];l.useEffect(function(){Ce(se)},[se]);var xe=Math.max(1,se-(O?3:5)),Ne=Math.min(cl(void 0,ne,v),se+(O?3:5));function Ee(wt,Mt){var Kt=wt||pe.createElement("button",{type:"button","aria-label":Mt,className:"".concat(r,"-item-link")});return typeof wt=="function"&&(Kt=pe.createElement(wt,X({},t))),Kt}function Be(wt){var Mt=wt.target.value,Kt=cl(void 0,ne,v),Cn;return Mt===""?Cn=Mt:Number.isNaN(Number(Mt))?Cn=Te:Mt>=Kt?Cn=Kt:Cn=Number(Mt),Cn}function Ve(wt){return _2(wt)&&wt!==se&&_2(v)&&v>0}var tt=v>ne?$:!1;function nt(wt){(wt.keyCode===Et.UP||wt.keyCode===Et.DOWN)&&wt.preventDefault()}function We(wt){var Mt=Be(wt);switch(Mt!==Te&&Ce(Mt),wt.keyCode){case Et.ENTER:Re(Mt);break;case Et.UP:Re(Mt-1);break;case Et.DOWN:Re(Mt+1);break}}function Ze(wt){Re(Be(wt))}function Le(wt){var Mt=cl(wt,ne,v),Kt=se>Mt&&Mt!==0?Mt:se;ie(wt),Ce(Kt),T==null||T(se,wt),he(Kt),g==null||g(Kt,wt)}function Re(wt){if(Ve(wt)&&!j){var Mt=cl(void 0,ne,v),Kt=wt;return wt>Mt?Kt=Mt:wt<1&&(Kt=1),Kt!==Te&&Ce(Kt),he(Kt),g==null||g(Kt,ne),Kt}return se}var qe=se>1,ye=se<cl(void 0,ne,v);function Oe(){qe&&Re(se-1)}function Fe(){ye&&Re(se+1)}function we(){Re(xe)}function He(){Re(Ne)}function ot(wt,Mt){if(wt.key==="Enter"||wt.charCode===Et.ENTER||wt.keyCode===Et.ENTER){for(var Kt=arguments.length,Cn=new Array(Kt>2?Kt-2:0),on=2;on<Kt;on++)Cn[on-2]=arguments[on];Mt.apply(void 0,Cn)}}function gt(wt){ot(wt,Oe)}function yt(wt){ot(wt,Fe)}function Rt(wt){ot(wt,we)}function qt(wt){ot(wt,He)}function Wt(wt){var Mt=q(wt,"prev",Ee(ee,"prev page"));return pe.isValidElement(Mt)?pe.cloneElement(Mt,{disabled:!qe}):Mt}function It(wt){var Mt=q(wt,"next",Ee(J,"next page"));return pe.isValidElement(Mt)?pe.cloneElement(Mt,{disabled:!ye}):Mt}function bt(wt){(wt.type==="click"||wt.keyCode===Et.ENTER)&&Re(Te)}var mt=null,ue=wr(t,{aria:!0,data:!0}),fe=F&&pe.createElement("li",{className:"".concat(r,"-total-text")},F(v,[v===0?0:(se-1)*ne+1,se*ne>v?v:se*ne])),be=null,De=cl(void 0,ne,v);if(S&&v<=ne)return null;var Pe=[],ke={rootPrefixCls:r,onClick:Re,onKeyPress:ot,showTitle:N,itemRender:q,page:-1},Qe=se-1>0?se-1:0,Ke=se+1<De?se+1:De,Ye=$&&$.goButton,et=ht(z)==="object"?z.readOnly:!z,Je=Ye,Ge=null;z&&(Ye&&(typeof Ye=="boolean"?Je=pe.createElement("button",{type:"button",onClick:bt,onKeyUp:bt},H.jump_to_confirm):Je=pe.createElement("span",{onClick:bt,onKeyUp:bt},Ye),Je=pe.createElement("li",{title:N?"".concat(H.jump_to).concat(se,"/").concat(De):null,className:"".concat(r,"-simple-pager")},Je)),Ge=pe.createElement("li",{title:N?"".concat(se,"/").concat(De):null,className:"".concat(r,"-simple-pager")},et?Te:pe.createElement("input",{type:"text","aria-label":H.jump_to,value:Te,disabled:j,onKeyDown:nt,onKeyUp:We,onChange:We,onBlur:Ze,size:3}),pe.createElement("span",{className:"".concat(r,"-slash")},"/"),De));var rt=O?1:2;if(De<=3+rt*2){De||Pe.push(pe.createElement(ou,Me({},ke,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var st=1;st<=De;st+=1)Pe.push(pe.createElement(ou,Me({},ke,{key:st,page:st,active:se===st})))}else{var Nt=O?H.prev_3:H.prev_5,Lt=O?H.next_3:H.next_5,Bt=q(xe,"jump-prev",Ee(G,"prev page")),Pt=q(Ne,"jump-next",Ee(Z,"next page"));R&&(mt=Bt?pe.createElement("li",{title:N?Nt:null,key:"prev",onClick:we,tabIndex:0,onKeyDown:Rt,className:re("".concat(r,"-jump-prev"),Y({},"".concat(r,"-jump-prev-custom-icon"),!!G))},Bt):null,be=Pt?pe.createElement("li",{title:N?Lt:null,key:"next",onClick:He,tabIndex:0,onKeyDown:qt,className:re("".concat(r,"-jump-next"),Y({},"".concat(r,"-jump-next-custom-icon"),!!Z))},Pt):null);var rn=Math.max(1,se-rt),Jt=Math.min(se+rt,De);se-1<=rt&&(Jt=1+rt*2),De-se<=rt&&(rn=De-rt*2);for(var ct=rn;ct<=Jt;ct+=1)Pe.push(pe.createElement(ou,Me({},ke,{key:ct,page:ct,active:se===ct})));if(se-1>=rt*2&&se!==3&&(Pe[0]=pe.cloneElement(Pe[0],{className:re("".concat(r,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(mt)),De-se>=rt*2&&se!==De-2){var ut=Pe[Pe.length-1];Pe[Pe.length-1]=pe.cloneElement(ut,{className:re("".concat(r,"-item-before-jump-next"),ut.props.className)}),Pe.push(be)}rn!==1&&Pe.unshift(pe.createElement(ou,Me({},ke,{key:1,page:1}))),Jt!==De&&Pe.push(pe.createElement(ou,Me({},ke,{key:De,page:De})))}var Tt=Wt(Qe);if(Tt){var Ct=!qe||!De;Tt=pe.createElement("li",{title:N?H.prev_page:null,onClick:Oe,tabIndex:Ct?null:0,onKeyDown:gt,className:re("".concat(r,"-prev"),Y({},"".concat(r,"-disabled"),Ct)),"aria-disabled":Ct},Tt)}var Yt=It(Ke);if(Yt){var pn,On;z?(pn=!ye,On=qe?0:null):(pn=!ye||!De,On=pn?null:0),Yt=pe.createElement("li",{title:N?H.next_page:null,onClick:Fe,tabIndex:On,onKeyDown:yt,className:re("".concat(r,"-next"),Y({},"".concat(r,"-disabled"),pn)),"aria-disabled":pn},Yt)}var Ut=re(r,i,Y(Y(Y(Y(Y({},"".concat(r,"-start"),x==="start"),"".concat(r,"-center"),x==="center"),"".concat(r,"-end"),x==="end"),"".concat(r,"-simple"),z),"".concat(r,"-disabled"),j));return pe.createElement("ul",Me({className:Ut,style:A,ref:oe},ue),fe,Tt,z?Ge:Pe,Yt,pe.createElement(RQ,{locale:H,rootPrefixCls:r,disabled:j,selectPrefixCls:a,changeSize:Le,pageSize:ne,pageSizeOptions:V,quickGo:tt?Re:null,goButton:Je,showSizeChanger:K,sizeChangerRender:B}))};const NQ=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},MQ=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM),input:Object.assign(Object.assign({},nS(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},TQ=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${le(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${le(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:`${le(e.inputOutlineOffset)} 0 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},_Q=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:le(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:le(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},rS(e)),tS(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},sp(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},DQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:le(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${le(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${le(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},jQ=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kn(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:le(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),DQ(e)),_Q(e)),TQ(e)),MQ(e)),NQ(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"}}},kQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ls(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ki(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ki(e))}}}},XT=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},lc(e)),QT=e=>nn(e,{inputOutlineOffset:0,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"},ic(e)),zQ=In("Pagination",e=>{const t=QT(e);return[jQ(t),kQ(t)]},XT),LQ=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},FQ=Ys(["Pagination","bordered"],e=>{const t=QT(e);return[LQ(t)]},XT);function D2(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var AQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZT=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:i,size:s,locale:u,responsive:d,showSizeChanger:m,selectComponentClass:v,pageSizeOptions:p}=e,y=AQ(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=gd(d),[,C]=_r(),{getPrefixCls:g,direction:S,showSizeChanger:x,className:w,style:R}=Er("pagination"),$=g("pagination",n),[O,I,N]=zQ($),P=Xr(s),T=P==="small"||!!(h&&!P&&d),[k]=ho("Pagination",_I),H=Object.assign(Object.assign({},k),u),[A,_]=D2(m),[D,j]=D2(x),z=A??D,F=_??j,W=v||ka,K=l.useMemo(()=>p?p.map(Z=>Number(Z)):void 0,[p]),B=Z=>{var ee;const{disabled:J,size:oe,onSizeChange:ae,"aria-label":te,className:ne,options:ie}=Z,{className:de,onChange:ve}=F||{},se=(ee=ie.find(he=>String(he.value)===String(oe)))===null||ee===void 0?void 0:ee.value;return l.createElement(W,Object.assign({disabled:J,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:he=>he.parentNode,"aria-label":te,options:ie},F,{value:se,onChange:(he,Se)=>{ae==null||ae(he),ve==null||ve(he,Se)},size:T?"small":"middle",className:re(ne,de)}))},V=l.useMemo(()=>{const Z=l.createElement("span",{className:`${$}-item-ellipsis`},"•••"),ee=l.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?l.createElement(zi,null):l.createElement(Bi,null)),J=l.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?l.createElement(Bi,null):l.createElement(zi,null)),oe=l.createElement("a",{className:`${$}-item-link`},l.createElement("div",{className:`${$}-item-container`},S==="rtl"?l.createElement(M2,{className:`${$}-item-link-icon`}):l.createElement(N2,{className:`${$}-item-link-icon`}),Z)),ae=l.createElement("a",{className:`${$}-item-link`},l.createElement("div",{className:`${$}-item-container`},S==="rtl"?l.createElement(N2,{className:`${$}-item-link-icon`}):l.createElement(M2,{className:`${$}-item-link-icon`}),Z));return{prevIcon:ee,nextIcon:J,jumpPrevIcon:oe,jumpNextIcon:ae}},[S,$]),U=g("select",r),q=re({[`${$}-${t}`]:!!t,[`${$}-mini`]:T,[`${$}-rtl`]:S==="rtl",[`${$}-bordered`]:C.wireframe},w,o,a,I,N),G=Object.assign(Object.assign({},R),i);return O(l.createElement(l.Fragment,null,C.wireframe&&l.createElement(FQ,{prefixCls:$}),l.createElement(PQ,Object.assign({},V,y,{style:G,prefixCls:$,selectPrefixCls:U,className:q,locale:H,pageSizeOptions:K,showSizeChanger:z,sizeChangerRender:B}))))},Jm=100,JT=Jm/5,e_=Jm/2-JT/2,v0=e_*2*Math.PI,j2=50,k2=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:e_,cx:j2,cy:j2,strokeWidth:JT,style:n})},BQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[a,i]=l.useState(!1);dn(()=>{e!==0&&i(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const u={strokeDashoffset:`${v0/4}`,strokeDasharray:`${v0*s/100} ${v0*(100-s)/100}`};return l.createElement("span",{className:re(r,`${n}-progress`,s<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${Jm} ${Jm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},l.createElement(k2,{dotClassName:n,hasCircleCls:!0}),l.createElement(k2,{dotClassName:n,style:u})))};function HQ(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:re(o,n>0&&a)},l.createElement("span",{className:re(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(BQ,{prefixCls:t,percent:n}))}function VQ(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&l.isValidElement(n)?Fr(n,{className:re(n.props.className,o),percent:r}):l.createElement(HQ,{prefixCls:t,percent:r})}const WQ=new xn("antSpinMove",{to:{opacity:1}}),KQ=new xn("antRotate",{to:{transform:"rotate(405deg)"}}),UQ=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},kn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:WQ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:KQ,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},qQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},YQ=In("Spin",e=>{const t=nn(e,{spinDotDefault:e.colorTextDescription});return[UQ(t)]},qQ),GQ=200,z2=[[30,.05],[70,.03],[96,.01]];function XQ(e,t){const[n,r]=l.useState(0),o=l.useRef(null),a=t==="auto";return l.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const s=100-i;for(let u=0;u<z2.length;u+=1){const[d,m]=z2[u];if(i<=d)return i+s*m}return i})},GQ)),()=>{clearInterval(o.current)}),[a,e]),a?n:t}var QQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let t_;function ZQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const sc=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:i,size:s="default",tip:u,wrapperClassName:d,style:m,children:v,fullscreen:p=!1,indicator:y,percent:h}=e,C=QQ(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:S,className:x,style:w,indicator:R}=Er("spin"),$=g("spin",n),[O,I,N]=YQ($),[P,T]=l.useState(()=>r&&!ZQ(r,o)),k=XQ(P,h);l.useEffect(()=>{if(r){const F=Gq(o,()=>{T(!0)});return F(),()=>{var W;(W=F==null?void 0:F.cancel)===null||W===void 0||W.call(F)}}T(!1)},[o,r]);const H=l.useMemo(()=>typeof v<"u"&&!p,[v,p]),A=re($,x,{[`${$}-sm`]:s==="small",[`${$}-lg`]:s==="large",[`${$}-spinning`]:P,[`${$}-show-text`]:!!u,[`${$}-rtl`]:S==="rtl"},a,!p&&i,I,N),_=re(`${$}-container`,{[`${$}-blur`]:P}),D=(t=y??R)!==null&&t!==void 0?t:t_,j=Object.assign(Object.assign({},w),m),z=l.createElement("div",Object.assign({},C,{style:j,className:A,"aria-live":"polite","aria-busy":P}),l.createElement(VQ,{prefixCls:$,indicator:D,percent:k}),u&&(H||p)?l.createElement("div",{className:`${$}-text`},u):null);return O(H?l.createElement("div",Object.assign({},C,{className:re(`${$}-nested-loading`,d,I,N)}),P&&l.createElement("div",{key:"loading"},z),l.createElement("div",{className:_,key:"container"},v)):p?l.createElement("div",{className:re(`${$}-fullscreen`,{[`${$}-fullscreen-show`]:P},i,I,N)},z):z)};sc.setDefaultIndicator=e=>{t_=e};const fS=pe.createContext({});fS.Consumer;var n_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JQ=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=n_(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(Dt),u=s("list",t),d=re(`${u}-item-meta`,n),m=pe.createElement("div",{className:`${u}-item-meta-content`},o&&pe.createElement("h4",{className:`${u}-item-meta-title`},o),a&&pe.createElement("div",{className:`${u}-item-meta-description`},a));return pe.createElement("div",Object.assign({},i,{className:d}),r&&pe.createElement("div",{className:`${u}-item-meta-avatar`},r),(o||a)&&m)},eZ=pe.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:a,styles:i,className:s,classNames:u,colStyle:d}=e,m=n_(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:v,itemLayout:p}=l.useContext(fS),{getPrefixCls:y,list:h}=l.useContext(Dt),C=I=>{var N,P;return re((P=(N=h==null?void 0:h.item)===null||N===void 0?void 0:N.classNames)===null||P===void 0?void 0:P[I],u==null?void 0:u[I])},g=I=>{var N,P;return Object.assign(Object.assign({},(P=(N=h==null?void 0:h.item)===null||N===void 0?void 0:N.styles)===null||P===void 0?void 0:P[I]),i==null?void 0:i[I])},S=()=>{let I=!1;return l.Children.forEach(r,N=>{typeof N=="string"&&(I=!0)}),I&&l.Children.count(r)>1},x=()=>p==="vertical"?!!a:!S(),w=y("list",n),R=o&&o.length>0&&pe.createElement("ul",{className:re(`${w}-item-action`,C("actions")),key:"actions",style:g("actions")},o.map((I,N)=>pe.createElement("li",{key:`${w}-item-action-${N}`},I,N!==o.length-1&&pe.createElement("em",{className:`${w}-item-action-split`})))),$=v?"div":"li",O=pe.createElement($,Object.assign({},m,v?{}:{ref:t},{className:re(`${w}-item`,{[`${w}-item-no-flex`]:!x()},s)}),p==="vertical"&&a?[pe.createElement("div",{className:`${w}-item-main`,key:"content"},r,R),pe.createElement("div",{className:re(`${w}-item-extra`,C("extra")),key:"extra",style:g("extra")},a)]:[r,R,Fr(a,{key:"extra"})]);return v?pe.createElement(Uo,{ref:t,flex:1,style:d},O):O}),r_=eZ;r_.Meta=JQ;const tZ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:s,borderRadiusLG:u}=e;return{[t]:{border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:u,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${le(o)} ${le(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},nZ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${le(i)}`}}}}}},rZ=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:s,itemPadding:u,colorPrimary:d,itemPaddingSM:m,itemPaddingLG:v,paddingXS:p,margin:y,colorText:h,colorTextDescription:C,motionDurationSlow:g,lineWidth:S,headerBg:x,footerBg:w,emptyTextPadding:R,metaMarginBottom:$,avatarMarginRight:O,titleMarginBottom:I,descriptionFontSize:N}=e;return{[t]:Object.assign(Object.assign({},kn(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:x},[`${t}-footer`]:{background:w},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:u,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:O},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${le(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${g}`,"&:hover":{color:d}}},[`${t}-item-meta-description`]:{color:C,fontSize:N,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${le(p)}`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${le(s)} 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:R,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:y,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${le(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:v},[`${t}-sm ${t}-item`]:{padding:m},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},oZ=e=>({contentWidth:220,itemPadding:`${le(e.paddingContentVertical)} 0`,itemPaddingSM:`${le(e.paddingContentVerticalSM)} ${le(e.paddingContentHorizontal)}`,itemPaddingLG:`${le(e.paddingContentVerticalLG)} ${le(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),aZ=In("List",e=>{const t=nn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[rZ(t),tZ(t),nZ(t)]},oZ);var iZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lZ(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:a=!0,className:i,rootClassName:s,style:u,children:d,itemLayout:m,loadMore:v,grid:p,dataSource:y=[],size:h,header:C,footer:g,loading:S=!1,rowKey:x,renderItem:w,locale:R}=e,$=iZ(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),O=n&&typeof n=="object"?n:{},[I,N]=l.useState(O.defaultCurrent||1),[P,T]=l.useState(O.defaultPageSize||10),{getPrefixCls:k,direction:H,className:A,style:_}=Er("list"),{renderEmpty:D}=l.useContext(Dt),j={current:1,total:0,position:"bottom"},z=xe=>(Ne,Ee)=>{var Be;N(Ne),T(Ee),n&&((Be=n==null?void 0:n[xe])===null||Be===void 0||Be.call(n,Ne,Ee))},F=z("onChange"),W=z("onShowSizeChange"),K=(xe,Ne)=>{if(!w)return null;let Ee;return typeof x=="function"?Ee=x(xe):x?Ee=xe[x]:Ee=xe.key,Ee||(Ee=`list-item-${Ne}`),l.createElement(l.Fragment,{key:Ee},w(xe,Ne))},B=!!(v||n||g),V=k("list",r),[U,q,G]=aZ(V);let Z=S;typeof Z=="boolean"&&(Z={spinning:Z});const ee=!!(Z!=null&&Z.spinning),J=Xr(h);let oe="";switch(J){case"large":oe="lg";break;case"small":oe="sm";break}const ae=re(V,{[`${V}-vertical`]:m==="vertical",[`${V}-${oe}`]:oe,[`${V}-split`]:a,[`${V}-bordered`]:o,[`${V}-loading`]:ee,[`${V}-grid`]:!!p,[`${V}-something-after-last-item`]:B,[`${V}-rtl`]:H==="rtl"},A,i,s,q,G),te=Yu(j,{total:y.length,current:I,pageSize:P},n||{}),ne=Math.ceil(te.total/te.pageSize);te.current=Math.min(te.current,ne);const ie=n&&l.createElement("div",{className:re(`${V}-pagination`)},l.createElement(ZT,Object.assign({align:"end"},te,{onChange:F,onShowSizeChange:W})));let de=_e(y);n&&y.length>(te.current-1)*te.pageSize&&(de=_e(y).splice((te.current-1)*te.pageSize,te.pageSize));const ve=Object.keys(p||{}).some(xe=>["xs","sm","md","lg","xl","xxl"].includes(xe)),se=gd(ve),he=l.useMemo(()=>{for(let xe=0;xe<Fi.length;xe+=1){const Ne=Fi[xe];if(se[Ne])return Ne}},[se]),Se=l.useMemo(()=>{if(!p)return;const xe=he&&p[he]?p[he]:p.column;if(xe)return{width:`${100/xe}%`,maxWidth:`${100/xe}%`}},[JSON.stringify(p),he]);let je=ee&&l.createElement("div",{style:{minHeight:53}});if(de.length>0){const xe=de.map(K);je=p?l.createElement(ws,{gutter:p.gutter},l.Children.map(xe,Ne=>l.createElement("div",{key:Ne==null?void 0:Ne.key,style:Se},Ne))):l.createElement("ul",{className:`${V}-items`},xe)}else!d&&!ee&&(je=l.createElement("div",{className:`${V}-empty-text`},(R==null?void 0:R.emptyText)||(D==null?void 0:D("List"))||l.createElement(kC,{componentName:"List"})));const Te=te.position,Ce=l.useMemo(()=>({grid:p,itemLayout:m}),[JSON.stringify(p),m]);return U(l.createElement(fS.Provider,{value:Ce},l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_),u),className:ae},$),(Te==="top"||Te==="both")&&ie,C&&l.createElement("div",{className:`${V}-header`},C),l.createElement(sc,Object.assign({},Z),je,d),g&&l.createElement("div",{className:`${V}-footer`},g),v||(Te==="bottom"||Te==="both")&&ie)))}const sZ=l.forwardRef(lZ),bb=sZ;bb.Item=r_;let Yo=null,gl=e=>e(),Qu=[],Zu={};function L2(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Zu,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const cZ=pe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=l.useContext(Dt),a=Zu.prefixCls||o("message"),i=l.useContext(W7),[s,u]=SP(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return pe.useImperativeHandle(t,()=>{const d=Object.assign({},s);return Object.keys(d).forEach(m=>{d[m]=(...v)=>(r(),s[m].apply(s,v))}),{instance:d,sync:r}}),u}),uZ=pe.forwardRef((e,t)=>{const[n,r]=pe.useState(L2),o=()=>{r(L2)};pe.useEffect(o,[]);const a=lP(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),u=a.getTheme(),d=pe.createElement(cZ,{ref:t,sync:o,messageConfig:n});return pe.createElement(za,{prefixCls:i,iconPrefixCls:s,theme:u},a.holderRender?a.holderRender(d):d)});function fp(){if(!Yo){const e=document.createDocumentFragment(),t={fragment:e};Yo=t,gl(()=>{SC()(pe.createElement(uZ,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,fp())})}}),e)});return}Yo.instance&&(Qu.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{gl(()=>{const r=Yo.instance.open(Object.assign(Object.assign({},Zu),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":gl(()=>{Yo==null||Yo.instance.destroy(e.key)});break;default:gl(()=>{var r;const o=(r=Yo.instance)[t].apply(r,_e(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Qu=[])}function dZ(e){Zu=Object.assign(Object.assign({},Zu),e),gl(()=>{var t;(t=Yo==null?void 0:Yo.sync)===null||t===void 0||t.call(Yo)})}function fZ(e){const t=bC(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Qu.push(o),()=>{r?gl(()=>{r()}):o.skipped=!0}});return fp(),t}function mZ(e,t){const n=bC(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Qu.push(a),()=>{o?gl(()=>{o()}):a.skipped=!0}});return fp(),n}const vZ=e=>{Qu.push({type:"destroy",key:e}),fp()},pZ=["success","info","warning","error","loading"],gZ={open:fZ,destroy:vZ,config:dZ,useMessage:QA,_InternalPanelDoNotUseOrYouWillBeFired:VA},Mn=gZ;pZ.forEach(e=>{Mn[e]=(...t)=>mZ(e,t)});var hZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yZ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:u}=e,d=hZ(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:m}=l.useContext(Dt),v=m(),p=t||m("modal"),y=vr(v),[h,C,g]=eN(p,y),S=`${p}-confirm`;let x={};return a?x={closable:o??!1,title:"",footer:"",children:l.createElement(nN,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:v,content:s}))}:x={closable:o??!0,title:i,footer:u!==null&&l.createElement(GP,Object.assign({},e)),children:s},h(l.createElement(DP,Object.assign({prefixCls:p,className:re(C,`${p}-pure-panel`,a&&S,a&&`${S}-${a}`,n,g,y)},d,{closeIcon:YP(p,r),closable:o},x)))},bZ=dN(yZ);function o_(e){return fd(iN(e))}const ro=tN;ro.useModal=V7;ro.info=function(t){return fd(lN(t))};ro.success=function(t){return fd(sN(t))};ro.error=function(t){return fd(cN(t))};ro.warning=o_;ro.warn=o_;ro.confirm=function(t){return fd(uN(t))};ro.destroyAll=function(){for(;pl.length;){const t=pl.pop();t&&t()}};ro.config=L7;ro._InternalPanelDoNotUseOrYouWillBeFired=bZ;const CZ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:u,fontSize:d,fontWeightStrong:m,colorTextHeading:v}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:d},[`${t}-message`]:{marginBottom:u,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:d,lineHeight:1,marginInlineEnd:u},[`${t}-title`]:{fontWeight:m,color:v,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:u}}}}},SZ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},a_=In("Popconfirm",e=>CZ(e),SZ,{resetStyle:!1});var xZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const i_=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:u="primary",icon:d=l.createElement(sd,null),showCancel:m=!0,close:v,onConfirm:p,onCancel:y,onPopupClick:h}=e,{getPrefixCls:C}=l.useContext(Dt),[g]=ho("Popconfirm",ea.Popconfirm),S=Bs(o),x=Bs(a);return l.createElement("div",{className:`${t}-inner-content`,onClick:h},l.createElement("div",{className:`${t}-message`},d&&l.createElement("span",{className:`${t}-message-icon`},d),l.createElement("div",{className:`${t}-message-text`},S&&l.createElement("div",{className:`${t}-title`},S),x&&l.createElement("div",{className:`${t}-description`},x))),l.createElement("div",{className:`${t}-buttons`},m&&l.createElement(Sn,Object.assign({onClick:y,size:"small"},r),i||(g==null?void 0:g.cancelText)),l.createElement(OC,{buttonProps:Object.assign(Object.assign({size:"small"},xC(u)),n),actionFn:p,close:v,prefixCls:C("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(g==null?void 0:g.okText))))},wZ=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=xZ(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=l.useContext(Dt),s=i("popconfirm",t),[u]=a_(s);return u(l.createElement(qN,{placement:n,className:re(s,r),style:o,content:l.createElement(i_,Object.assign({prefixCls:s},a))}))};var $Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EZ=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:u=l.createElement(sd,null),children:d,overlayClassName:m,onOpenChange:v,onVisibleChange:p,overlayStyle:y,styles:h,classNames:C}=e,g=$Z(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:S,className:x,style:w,classNames:R,styles:$}=Er("popconfirm"),[O,I]=Tn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),N=(z,F)=>{I(z,!0),p==null||p(z),v==null||v(z,F)},P=z=>{N(!1,z)},T=z=>{var F;return(F=e.onConfirm)===null||F===void 0?void 0:F.call(void 0,z)},k=z=>{var F;N(!1,z),(F=e.onCancel)===null||F===void 0||F.call(void 0,z)},H=(z,F)=>{const{disabled:W=!1}=e;W||N(z,F)},A=S("popconfirm",o),_=re(A,x,m,R.root,C==null?void 0:C.root),D=re(R.body,C==null?void 0:C.body),[j]=a_(A);return j(l.createElement(YN,Object.assign({},Hn(g,["title"]),{trigger:i,placement:a,onOpenChange:H,open:O,ref:t,classNames:{root:_,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),w),y),h==null?void 0:h.root),body:Object.assign(Object.assign({},$.body),h==null?void 0:h.body)},content:l.createElement(i_,Object.assign({okType:s,icon:u},e,{prefixCls:A,close:P,onConfirm:T,onCancel:k})),"data-popover-inject":!0}),d))}),mp=EZ;mp._InternalPanelDoNotUseOrYouWillBeFired=wZ;var OZ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},RZ=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(a){if(a){o=!0;var i=a.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},F2=0,IZ=Tr();function PZ(){var e;return IZ?(e=F2,F2+=1):e="TEST_OR_SSR",e}const NZ=function(e){var t=l.useState(),n=ce(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_progress_".concat(PZ()))},[]),e||r};var A2=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function B2(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var MZ=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,a=e.radius,i=e.style,s=e.ptg,u=e.strokeLinecap,d=e.strokeWidth,m=e.size,v=e.gapDegree,p=r&&ht(r)==="object",y=p?"#FFF":void 0,h=m/2,C=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:h,cy:h,stroke:y,strokeLinecap:u,strokeWidth:d,opacity:s===0?0:1,style:i,ref:t});if(!p)return C;var g="".concat(o,"-conic"),S=v?"".concat(180+v/2,"deg"):"0deg",x=B2(r,(360-v)/360),w=B2(r,1),R="conic-gradient(from ".concat(S,", ").concat(x.join(", "),")"),$="linear-gradient(to ".concat(v?"bottom":"top",", ").concat(w.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:g},C),l.createElement("foreignObject",{x:0,y:0,width:m,height:m,mask:"url(#".concat(g,")")},l.createElement(A2,{bg:$},l.createElement(A2,{bg:R}))))}),Cu=100,p0=function(t,n,r,o,a,i,s,u,d,m){var v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-i)/360),y=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*n;d==="round"&&o!==100&&(h+=m/2,h>=n&&(h=n-.01));var C=Cu/2;return{stroke:typeof u=="string"?u:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+v,transform:"rotate(".concat(a+p+y,"deg)"),transformOrigin:"".concat(C,"px ").concat(C,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},TZ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function H2(e){var t=e??[];return Array.isArray(t)?t:[t]}var _Z=function(t){var n=X(X({},OZ),t),r=n.id,o=n.prefixCls,a=n.steps,i=n.strokeWidth,s=n.trailWidth,u=n.gapDegree,d=u===void 0?0:u,m=n.gapPosition,v=n.trailColor,p=n.strokeLinecap,y=n.style,h=n.className,C=n.strokeColor,g=n.percent,S=jt(n,TZ),x=Cu/2,w=NZ(r),R="".concat(w,"-gradient"),$=x-i/2,O=Math.PI*2*$,I=d>0?90+d/2:-90,N=O*((360-d)/360),P=ht(a)==="object"?a:{count:a,gap:2},T=P.count,k=P.gap,H=H2(g),A=H2(C),_=A.find(function(B){return B&&ht(B)==="object"}),D=_&&ht(_)==="object",j=D?"butt":p,z=p0(O,N,0,100,I,d,m,v,j,i),F=RZ(),W=function(){var V=0;return H.map(function(U,q){var G=A[q]||A[A.length-1],Z=p0(O,N,V,U,I,d,m,G,j,i);return V+=U,l.createElement(MZ,{key:q,color:G,ptg:U,radius:$,prefixCls:o,gradientId:R,style:Z,strokeLinecap:j,strokeWidth:i,gapDegree:d,ref:function(J){F[q]=J},size:Cu})}).reverse()},K=function(){var V=Math.round(T*(H[0]/100)),U=100/T,q=0;return new Array(T).fill(null).map(function(G,Z){var ee=Z<=V-1?A[0]:v,J=ee&&ht(ee)==="object"?"url(#".concat(R,")"):void 0,oe=p0(O,N,q,U,I,d,m,ee,"butt",i,k);return q+=(N-oe.strokeDashoffset+k)*100/N,l.createElement("circle",{key:Z,className:"".concat(o,"-circle-path"),r:$,cx:x,cy:x,stroke:J,strokeWidth:i,opacity:1,style:oe,ref:function(te){F[Z]=te}})})};return l.createElement("svg",Me({className:re("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Cu," ").concat(Cu),style:y,id:r,role:"presentation"},S),!T&&l.createElement("circle",{className:"".concat(o,"-circle-trail"),r:$,cx:x,cy:x,stroke:v,strokeLinecap:j,strokeWidth:s||i,style:z}),T?K():W())};function Ti(e){return!e||e<0?0:e>100?100:e}function ev({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const DZ=({percent:e,success:t,successPercent:n})=>{const r=Ti(ev({success:t,successPercent:n}));return[r,Ti(Ti(e)-r)]},jZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Rs.green,t||null]},vp=(e,t,n)=>{var r,o,a,i;let s=-1,u=-1;if(t==="step"){const d=n.steps,m=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,u=m??8):typeof e=="number"?[s,u]=[e,e]:[s=14,u=8]=Array.isArray(e)?e:[e.width,e.height],s*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?u=d||(e==="small"?6:8):typeof e=="number"?[s,u]=[e,e]:[s=-1,u=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,u]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,u=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return[s,u]},kZ=3,zZ=e=>kZ/e*100,LZ=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:a,width:i=120,type:s,children:u,success:d,size:m=i,steps:v}=e,[p,y]=vp(m,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(zZ(p),6));const C={width:p,height:y,fontSize:p*.15+6},g=l.useMemo(()=>{if(a||a===0)return a;if(s==="dashboard")return 75},[a,s]),S=DZ(e),x=o||s==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",R=jZ({success:d,strokeColor:e.strokeColor}),$=re(`${t}-inner`,{[`${t}-circle-gradient`]:w}),O=l.createElement(_Z,{steps:v,percent:v?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:v?R[1]:R,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:x}),I=p<=20,N=l.createElement("div",{className:$,style:C},O,!I&&u);return I?l.createElement(Ai,{title:u},N):N},tv="--progress-line-stroke-color",l_="--progress-percent",V2=e=>{const t=e?"100%":"-100%";return new xn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},FZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},kn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${tv})`]},height:"100%",width:`calc(1 / var(${l_}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${le(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:V2(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:V2(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},AZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},BZ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},HZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},VZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),WZ=In("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=nn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[FZ(n),AZ(n),BZ(n),HZ(n)]},VZ);var KZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UZ=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},qZ=(e,t)=>{const{from:n=Rs.blue,to:r=Rs.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=KZ(e,["from","to","direction"]);if(Object.keys(a).length!==0){const s=UZ(a),u=`linear-gradient(${o}, ${s})`;return{background:u,[tv]:u}}const i=`linear-gradient(${o}, ${n}, ${r})`;return{background:i,[tv]:i}},YZ=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:a,strokeColor:i,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:m,success:v}=e,{align:p,type:y}=m,h=i&&typeof i!="string"?qZ(i,n):{[tv]:i,background:i},C=s==="square"||s==="butt"?0:void 0,g=o??[-1,a||(o==="small"?6:8)],[S,x]=vp(g,"line",{strokeWidth:a}),w={backgroundColor:d||void 0,borderRadius:C},R=Object.assign(Object.assign({width:`${Ti(r)}%`,height:x,borderRadius:C},h),{[l_]:Ti(r)/100}),$=ev(e),O={width:`${Ti($)}%`,height:x,borderRadius:C,backgroundColor:v==null?void 0:v.strokeColor},I={width:S<0?"100%":S},N=l.createElement("div",{className:`${t}-inner`,style:w},l.createElement("div",{className:re(`${t}-bg`,`${t}-bg-${y}`),style:R},y==="inner"&&u),$!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:O})),P=y==="outer"&&p==="start",T=y==="outer"&&p==="end";return y==="outer"&&p==="center"?l.createElement("div",{className:`${t}-layout-bottom`},N,u):l.createElement("div",{className:`${t}-outer`,style:I},P&&u,N,T&&u)},GZ=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:u,children:d}=e,m=r(n*(o/100)),p=t??[t==="small"?2:14,a],[y,h]=vp(p,"step",{steps:n,strokeWidth:a}),C=y/n,g=Array.from({length:n});for(let S=0;S<n;S++){const x=Array.isArray(i)?i[S]:i;g[S]=l.createElement("div",{key:S,className:re(`${u}-steps-item`,{[`${u}-steps-item-active`]:S<=m-1}),style:{backgroundColor:S<=m-1?x:s,width:C,height:h}})}return l.createElement("div",{className:`${u}-steps-outer`},g,d)};var XZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const QZ=["normal","exception","active","success"],ZZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:a,strokeColor:i,percent:s=0,size:u="default",showInfo:d=!0,type:m="line",status:v,format:p,style:y,percentPosition:h={}}=e,C=XZ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:S="outer"}=h,x=Array.isArray(i)?i[0]:i,w=typeof i=="string"||Array.isArray(i)?i:void 0,R=l.useMemo(()=>{if(x){const W=typeof x=="string"?x:Object.values(x)[0];return new tn(W).isLight()}return!1},[i]),$=l.useMemo(()=>{var W,K;const B=ev(e);return parseInt(B!==void 0?(W=B??0)===null||W===void 0?void 0:W.toString():(K=s??0)===null||K===void 0?void 0:K.toString(),10)},[s,e.success,e.successPercent]),O=l.useMemo(()=>!QZ.includes(v)&&$>=100?"success":v||"normal",[v,$]),{getPrefixCls:I,direction:N,progress:P}=l.useContext(Dt),T=I("progress",n),[k,H,A]=WZ(T),_=m==="line",D=_&&!a,j=l.useMemo(()=>{if(!d)return null;const W=ev(e);let K;const B=p||(U=>`${U}%`),V=_&&R&&S==="inner";return S==="inner"||p||O!=="exception"&&O!=="success"?K=B(Ti(s),Ti(W)):O==="exception"?K=_?l.createElement(Xs,null):l.createElement(jl,null):O==="success"&&(K=_?l.createElement($v,null):l.createElement(TN,null)),l.createElement("span",{className:re(`${T}-text`,{[`${T}-text-bright`]:V,[`${T}-text-${g}`]:D,[`${T}-text-${S}`]:D}),title:typeof K=="string"?K:void 0},K)},[d,s,$,O,m,T,p]);let z;m==="line"?z=a?l.createElement(GZ,Object.assign({},e,{strokeColor:w,prefixCls:T,steps:typeof a=="object"?a.count:a}),j):l.createElement(YZ,Object.assign({},e,{strokeColor:x,prefixCls:T,direction:N,percentPosition:{align:g,type:S}}),j):(m==="circle"||m==="dashboard")&&(z=l.createElement(LZ,Object.assign({},e,{strokeColor:x,prefixCls:T,progressStatus:O}),j));const F=re(T,`${T}-status-${O}`,{[`${T}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${T}-inline-circle`]:m==="circle"&&vp(u,"circle")[0]<=20,[`${T}-line`]:D,[`${T}-line-align-${g}`]:D,[`${T}-line-position-${S}`]:D,[`${T}-steps`]:a,[`${T}-show-info`]:d,[`${T}-${u}`]:typeof u=="string",[`${T}-rtl`]:N==="rtl"},P==null?void 0:P.className,r,o,H,A);return k(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P==null?void 0:P.style),y),className:F,role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100},Hn(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});var JZ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:x6}))},eJ=l.forwardRef(JZ),tJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:w6}))},nJ=l.forwardRef(tJ),rJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:$6}))},oJ=l.forwardRef(rJ),aJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:_6}))},iJ=l.forwardRef(aJ),lJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:B6}))},sJ=l.forwardRef(lJ),cJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:Z6}))},s_=l.forwardRef(cJ),uJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:J6}))},dJ=l.forwardRef(uJ),fJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:ez}))},mJ=l.forwardRef(fJ),vJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:tz}))},pJ=l.forwardRef(vJ),gJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:nz}))},hJ=l.forwardRef(gJ),yJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:rz}))},bJ=l.forwardRef(yJ),CJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:uz}))},SJ=l.forwardRef(CJ),xJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:dz}))},wJ=l.forwardRef(xJ),$J=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:fz}))},EJ=l.forwardRef($J),OJ=function(t,n){return l.createElement(fn,Me({},t,{ref:n,icon:gz}))},RJ=l.forwardRef(OJ),Ya={},wd="rc-table-internal-hook";function mS(e){var t=l.createContext(void 0),n=function(o){var a=o.value,i=o.children,s=l.useRef(a);s.current=a;var u=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),d=ce(u,1),m=d[0];return dn(function(){Zo.unstable_batchedUpdates(function(){m.listeners.forEach(function(v){v(a)})})},[a]),l.createElement(t.Provider,{value:m},i)};return{Context:t,Provider:n,defaultValue:e}}function Br(e,t){var n=ln(typeof t=="function"?t:function(v){if(t===void 0)return v;if(!Array.isArray(t))return v[t];var p={};return t.forEach(function(y){p[y]=v[y]}),p}),r=l.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,i=o.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var u=l.useState({}),d=ce(u,2),m=d[1];return dn(function(){if(!r)return;function v(p){var y=n(p);ya(s.current,y,!0)||m({})}return a.add(v),function(){a.delete(v)}},[r]),s.current}function IJ(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(o,a){var i=ha(o),s=function(d,m){var v=i?{ref:m}:{},p=l.useRef(0),y=l.useRef(d),h=t();return h!==null?l.createElement(o,Me({},d,v)):((!a||a(y.current,d))&&(p.current+=1),y.current=d,l.createElement(e.Provider,{value:p.current},l.createElement(o,Me({},d,v))))};return i?l.forwardRef(s):s}function r(o,a){var i=ha(o),s=function(d,m){var v=i?{ref:m}:{};return t(),l.createElement(o,Me({},d,v))};return i?l.memo(l.forwardRef(s),a):l.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var vS=IJ(),c_=vS.makeImmutable,cc=vS.responseImmutable,PJ=vS.useImmutableMark,oo=mS(),u_=l.createContext({renderWithProps:!1}),NJ="RC_TABLE_KEY";function MJ(e){return e==null?[]:Array.isArray(e)?e:[e]}function pp(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,i=o.dataIndex,s=a||MJ(i).join("-")||NJ;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function Cb(e){return e!=null}function TJ(e){return typeof e=="number"&&!Number.isNaN(e)}function _J(e){return e&&ht(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function DJ(e,t,n,r,o,a){var i=l.useContext(u_),s=PJ(),u=Dl(function(){if(Cb(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],m=eo(e,d),v=m,p=void 0;if(o){var y=o(m,e,n);_J(y)?(v=y.children,p=y.props,i.renderWithProps=!0):v=y}return[v,p]},[s,e,r,t,o,n],function(d,m){if(a){var v=ce(d,2),p=v[1],y=ce(m,2),h=y[1];return a(h,p)}return i.renderWithProps?!0:!ya(d,m,!0)});return u}function jJ(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function kJ(e,t){return Br(oo,function(n){var r=jJ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var zJ=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():l.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function LJ(e){var t,n,r,o,a,i,s,u,d=e.component,m=e.children,v=e.ellipsis,p=e.scope,y=e.prefixCls,h=e.className,C=e.align,g=e.record,S=e.render,x=e.dataIndex,w=e.renderIndex,R=e.shouldCellUpdate,$=e.index,O=e.rowType,I=e.colSpan,N=e.rowSpan,P=e.fixLeft,T=e.fixRight,k=e.firstFixLeft,H=e.lastFixLeft,A=e.firstFixRight,_=e.lastFixRight,D=e.appendNode,j=e.additionalProps,z=j===void 0?{}:j,F=e.isSticky,W="".concat(y,"-cell"),K=Br(oo,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=K.supportSticky,V=K.allColumnsFixedLeft,U=K.rowHoverable,q=DJ(g,x,w,m,S,R),G=ce(q,2),Z=G[0],ee=G[1],J={},oe=typeof P=="number"&&B,ae=typeof T=="number"&&B;oe&&(J.position="sticky",J.left=P),ae&&(J.position="sticky",J.right=T);var te=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:z.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,ne=(o=(a=(i=ee==null?void 0:ee.rowSpan)!==null&&i!==void 0?i:z.rowSpan)!==null&&a!==void 0?a:N)!==null&&o!==void 0?o:1,ie=kJ($,ne),de=ce(ie,2),ve=de[0],se=de[1],he=ln(function(Ee){var Be;g&&se($,$+ne-1),z==null||(Be=z.onMouseEnter)===null||Be===void 0||Be.call(z,Ee)}),Se=ln(function(Ee){var Be;g&&se(-1,-1),z==null||(Be=z.onMouseLeave)===null||Be===void 0||Be.call(z,Ee)});if(te===0||ne===0)return null;var je=(s=z.title)!==null&&s!==void 0?s:zJ({rowType:O,ellipsis:v,children:Z}),Te=re(W,h,(u={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(u,"".concat(W,"-fix-left"),oe&&B),"".concat(W,"-fix-left-first"),k&&B),"".concat(W,"-fix-left-last"),H&&B),"".concat(W,"-fix-left-all"),H&&V&&B),"".concat(W,"-fix-right"),ae&&B),"".concat(W,"-fix-right-first"),A&&B),"".concat(W,"-fix-right-last"),_&&B),"".concat(W,"-ellipsis"),v),"".concat(W,"-with-append"),D),"".concat(W,"-fix-sticky"),(oe||ae)&&F&&B),Y(u,"".concat(W,"-row-hover"),!ee&&ve)),z.className,ee==null?void 0:ee.className),Ce={};C&&(Ce.textAlign=C);var xe=X(X(X(X({},ee==null?void 0:ee.style),J),Ce),z.style),Ne=Z;return ht(Ne)==="object"&&!Array.isArray(Ne)&&!l.isValidElement(Ne)&&(Ne=null),v&&(H||A)&&(Ne=l.createElement("span",{className:"".concat(W,"-content")},Ne)),l.createElement(d,Me({},ee,z,{className:Te,style:xe,title:je,scope:p,onMouseEnter:U?he:void 0,onMouseLeave:U?Se:void 0,colSpan:te!==1?te:null,rowSpan:ne!==1?ne:null}),D,Ne)}const uc=l.memo(LJ);function pS(e,t,n,r,o){var a=n[e]||{},i=n[t]||{},s,u;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:i.fixed==="right"&&(u=r.right[o==="rtl"?e:t]);var d=!1,m=!1,v=!1,p=!1,y=n[t+1],h=n[e-1],C=y&&!y.fixed||h&&!h.fixed||n.every(function(R){return R.fixed==="left"});if(o==="rtl"){if(s!==void 0){var g=h&&h.fixed==="left";p=!g&&C}else if(u!==void 0){var S=y&&y.fixed==="right";v=!S&&C}}else if(s!==void 0){var x=y&&y.fixed==="left";d=!x&&C}else if(u!==void 0){var w=h&&h.fixed==="right";m=!w&&C}return{fixLeft:s,fixRight:u,lastFixLeft:d,firstFixRight:m,lastFixRight:v,firstFixLeft:p,isSticky:r.isSticky}}var d_=l.createContext({});function FJ(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,i=e.rowSpan,s=e.align,u=Br(oo,["prefixCls","direction"]),d=u.prefixCls,m=u.direction,v=l.useContext(d_),p=v.scrollColumnIndex,y=v.stickyOffsets,h=v.flattenColumns,C=n+a-1,g=C+1===p?a+1:a,S=pS(n,n+g-1,h,y,m);return l.createElement(uc,Me({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:i,render:function(){return r}},S))}var AJ=["children"];function BJ(e){var t=e.children,n=jt(e,AJ);return l.createElement("tr",n,t)}function gp(e){var t=e.children;return t}gp.Row=BJ;gp.Cell=FJ;function HJ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Br(oo,"prefixCls"),a=r.length-1,i=r[a],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?a:null}},[i,r,a,n]);return l.createElement(d_.Provider,{value:s},l.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Yf=cc(HJ);var f_=gp;function VJ(e){return null}function WJ(e){return null}function m_(e,t,n,r,o,a,i){var s=a(t,i);e.push({record:t,indent:n,index:i,rowKey:s});var u=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&u)for(var d=0;d<t[r].length;d+=1)m_(e,t[r][d],n+1,r,o,a,d)}function v_(e,t,n,r){var o=l.useMemo(function(){if(n!=null&&n.size){for(var a=[],i=0;i<(e==null?void 0:e.length);i+=1){var s=e[i];m_(a,s,0,t,n,r,i)}return a}return e==null?void 0:e.map(function(u,d){return{record:u,indent:0,index:d,rowKey:r(u,d)}})},[e,t,n,r]);return o}function p_(e,t,n,r){var o=Br(oo,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,i=o.expandableType,s=o.expandedKeys,u=o.childrenColumnName,d=o.onTriggerExpand,m=o.rowExpandable,v=o.onRow,p=o.expandRowByClick,y=o.rowClassName,h=i==="nest",C=i==="row"&&(!m||m(e)),g=C||h,S=s&&s.has(t),x=u&&e&&e[u],w=ln(d),R=v==null?void 0:v(e,n),$=R==null?void 0:R.onClick,O=function(T){p&&g&&d(e,T);for(var k=arguments.length,H=new Array(k>1?k-1:0),A=1;A<k;A++)H[A-1]=arguments[A];$==null||$.apply(void 0,[T].concat(H))},I;typeof y=="string"?I=y:typeof y=="function"&&(I=y(e,n,r));var N=pp(a);return X(X({},o),{},{columnsKey:N,nestExpandable:h,expanded:S,hasNestChildren:x,record:e,onTriggerExpand:w,rowSupportExpand:C,expandable:g,rowProps:X(X({},R),{},{className:re(I,R==null?void 0:R.className),onClick:O})})}function g_(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,a=e.className,i=e.expanded,s=e.colSpan,u=e.isEmpty,d=e.stickyOffset,m=d===void 0?0:d,v=Br(oo,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=v.scrollbarSize,y=v.fixHeader,h=v.fixColumn,C=v.componentWidth,g=v.horizonScroll,S=n;return(u?g&&C:h)&&(S=l.createElement("div",{style:{width:C-m-(y&&!u?p:0),position:"sticky",left:m,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},S)),l.createElement(r,{className:a,style:{display:i?null:"none"}},l.createElement(uc,{component:o,prefixCls:t,colSpan:s},S))}function KJ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(t,"-row-expand-icon");if(!a)return l.createElement("span",{className:re(i,"".concat(t,"-row-spaced"))});var s=function(d){r(n,d),d.stopPropagation()};return l.createElement("span",{className:re(i,Y(Y({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function UJ(e,t,n){var r=[];function o(a){(a||[]).forEach(function(i,s){r.push(t(i,s)),o(i[n])})}return o(e),r}function h_(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function y_(e,t,n,r,o){var a,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,u=e.record,d=e.prefixCls,m=e.columnsKey,v=e.fixedInfoList,p=e.expandIconColumnIndex,y=e.nestExpandable,h=e.indentSize,C=e.expandIcon,g=e.expanded,S=e.hasNestChildren,x=e.onTriggerExpand,w=e.expandable,R=e.expandedKeys,$=m[n],O=v[n],I;n===(p||0)&&y&&(I=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(d,"-row-indent indent-level-").concat(r)}),C({prefixCls:d,expanded:g,expandable:S,record:u,onExpand:x})));var N=((a=t.onCell)===null||a===void 0?void 0:a.call(t,u,o))||{};if(s){var P=N.rowSpan,T=P===void 0?1:P;if(w&&T&&n<s){for(var k=T,H=o;H<o+T;H+=1){var A=i[H];R.has(A)&&(k+=1)}N.rowSpan=k}}return{key:$,fixedInfo:O,appendCellNode:I,additionalCellProps:N}}function qJ(e){var t=e.className,n=e.style,r=e.record,o=e.index,a=e.renderIndex,i=e.rowKey,s=e.rowKeys,u=e.indent,d=u===void 0?0:u,m=e.rowComponent,v=e.cellComponent,p=e.scopeCellComponent,y=e.expandedRowInfo,h=p_(r,i,o,d),C=h.prefixCls,g=h.flattenColumns,S=h.expandedRowClassName,x=h.expandedRowRender,w=h.rowProps,R=h.expanded,$=h.rowSupportExpand,O=l.useRef(!1);O.current||(O.current=R);var I=h_(S,r,o,d),N=l.createElement(m,Me({},w,{"data-row-key":i,className:re(t,"".concat(C,"-row"),"".concat(C,"-row-level-").concat(d),w==null?void 0:w.className,Y({},I,d>=1)),style:X(X({},n),w==null?void 0:w.style)}),g.map(function(k,H){var A=k.render,_=k.dataIndex,D=k.className,j=y_(h,k,H,d,o,s,y==null?void 0:y.offset),z=j.key,F=j.fixedInfo,W=j.appendCellNode,K=j.additionalCellProps;return l.createElement(uc,Me({className:D,ellipsis:k.ellipsis,align:k.align,scope:k.rowScope,component:k.rowScope?p:v,prefixCls:C,key:z,record:r,index:o,renderIndex:a,dataIndex:_,render:A,shouldCellUpdate:k.shouldCellUpdate},F,{appendNode:W,additionalProps:K}))})),P;if($&&(O.current||R)){var T=x(r,o,d+1,R);P=l.createElement(g_,{expanded:R,className:re("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(d+1),I),prefixCls:C,component:m,cellComponent:v,colSpan:y?y.colSpan:g.length,stickyOffset:y==null?void 0:y.sticky,isEmpty:!1},T)}return l.createElement(l.Fragment,null,N,P)}const YJ=cc(qJ);function GJ(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return dn(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(_o,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function XJ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=l.useRef(null);return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:o},l.createElement(_o.Collection,{onBatchResize:function(i){Qs(o.current)&&i.forEach(function(s){var u=s.data,d=s.size;r(u,d.offsetWidth)})}},n.map(function(a){return l.createElement(GJ,{key:a,columnKey:a,onColumnResize:r})})))}function QJ(e){var t=e.data,n=e.measureColumnWidth,r=Br(oo,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,a=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,u=r.getRowKey,d=r.expandedKeys,m=r.childrenColumnName,v=r.emptyNode,p=r.expandedRowOffset,y=p===void 0?0:p,h=r.colWidths,C=v_(t,m,d,u),g=l.useMemo(function(){return C.map(function(P){return P.rowKey})},[C]),S=l.useRef({renderWithProps:!1}),x=l.useMemo(function(){for(var P=s.length-y,T=0,k=0;k<y;k+=1)T+=h[k]||0;return{offset:y,colSpan:P,sticky:T}},[s.length,y,h]),w=a(["body","wrapper"],"tbody"),R=a(["body","row"],"tr"),$=a(["body","cell"],"td"),O=a(["body","cell"],"th"),I;t.length?I=C.map(function(P,T){var k=P.record,H=P.indent,A=P.index,_=P.rowKey;return l.createElement(YJ,{key:_,rowKey:_,rowKeys:g,record:k,index:T,renderIndex:A,rowComponent:R,cellComponent:$,scopeCellComponent:O,indent:H,expandedRowInfo:x})}):I=l.createElement(g_,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:R,cellComponent:$,colSpan:s.length,isEmpty:!0},v);var N=pp(s);return l.createElement(u_.Provider,{value:S.current},l.createElement(w,{className:"".concat(o,"-tbody")},n&&l.createElement(XJ,{prefixCls:o,columnsKey:N,onColumnResize:i}),I))}const ZJ=cc(QJ);var JJ=["expandable"],Mu="RC_TABLE_INTERNAL_COL_DEFINE";function eee(e){var t=e.expandable,n=jt(e,JJ),r;return"expandable"in e?r=X(X({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var tee=["columnType"];function b_(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=Br(oo,["tableLayout"]),a=o.tableLayout,i=[],s=r||n.length,u=!1,d=s-1;d>=0;d-=1){var m=t[d],v=n&&n[d],p=void 0,y=void 0;if(v&&(p=v[Mu],a==="auto"&&(y=v.minWidth)),m||y||p||u){var h=p||{};h.columnType;var C=jt(h,tee);i.unshift(l.createElement("col",Me({key:d,style:{width:m,minWidth:y}},C))),u=!0}}return l.createElement("colgroup",null,i)}var nee=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ree(e,t){return l.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var oee=l.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,s=e.columCount,u=e.stickyOffsets,d=e.direction,m=e.fixHeader,v=e.stickyTopOffset,p=e.stickyBottomOffset,y=e.stickyClassName,h=e.onScroll,C=e.maxContentScroll,g=e.children,S=jt(e,nee),x=Br(oo,["prefixCls","scrollbarSize","isSticky","getComponent"]),w=x.prefixCls,R=x.scrollbarSize,$=x.isSticky,O=x.getComponent,I=O(["header","table"],"table"),N=$&&!m?0:R,P=l.useRef(null),T=l.useCallback(function(F){zu(t,F),zu(P,F)},[]);l.useEffect(function(){function F(K){var B=K,V=B.currentTarget,U=B.deltaX;U&&(h({currentTarget:V,scrollLeft:V.scrollLeft+U}),K.preventDefault())}var W=P.current;return W==null||W.addEventListener("wheel",F,{passive:!1}),function(){W==null||W.removeEventListener("wheel",F)}},[]);var k=l.useMemo(function(){return a.every(function(F){return F.width})},[a]),H=a[a.length-1],A={fixed:H?H.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},_=l.useMemo(function(){return N?[].concat(_e(o),[A]):o},[N,o]),D=l.useMemo(function(){return N?[].concat(_e(a),[A]):a},[N,a]),j=l.useMemo(function(){var F=u.right,W=u.left;return X(X({},u),{},{left:d==="rtl"?[].concat(_e(W.map(function(K){return K+N})),[0]):W,right:d==="rtl"?F:[].concat(_e(F.map(function(K){return K+N})),[0]),isSticky:$})},[N,u,$]),z=ree(i,s);return l.createElement("div",{style:X({overflow:"hidden"},$?{top:v,bottom:p}:{}),ref:T,className:re(n,Y({},y,!!y))},l.createElement(I,{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!C||k)&&l.createElement(b_,{colWidths:z?[].concat(_e(z),[N]):[],columCount:s+1,columns:D}),g(X(X({},S),{},{stickyOffsets:j,columns:_,flattenColumns:D}))))});const W2=l.memo(oee);var aee=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,a=t.rowComponent,i=t.cellComponent,s=t.onHeaderRow,u=t.index,d=Br(oo,["prefixCls","direction"]),m=d.prefixCls,v=d.direction,p;s&&(p=s(n.map(function(h){return h.column}),u));var y=pp(n.map(function(h){return h.column}));return l.createElement(a,p,n.map(function(h,C){var g=h.column,S=pS(h.colStart,h.colEnd,o,r,v),x;return g&&g.onHeaderCell&&(x=h.column.onHeaderCell(g)),l.createElement(uc,Me({},h,{scope:g.title?h.colSpan>1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:i,prefixCls:m,key:y[C]},S,{additionalProps:x,rowType:"header"}))}))};function iee(e){var t=[];function n(i,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[u]=t[u]||[];var d=s,m=i.filter(Boolean).map(function(v){var p={key:v.key,className:v.className||"",children:v.title,column:v,colStart:d},y=1,h=v.children;return h&&h.length>0&&(y=n(h,d,u+1).reduce(function(C,g){return C+g},0),p.hasSubColumns=!0),"colSpan"in v&&(y=v.colSpan),"rowSpan"in v&&(p.rowSpan=v.rowSpan),p.colSpan=y,p.colEnd=p.colStart+y-1,t[u].push(p),d+=y,y});return m}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(u){!("rowSpan"in u)&&!u.hasSubColumns&&(u.rowSpan=r-s)})},a=0;a<r;a+=1)o(a);return t}var lee=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,a=t.onHeaderRow,i=Br(oo,["prefixCls","getComponent"]),s=i.prefixCls,u=i.getComponent,d=l.useMemo(function(){return iee(r)},[r]),m=u(["header","wrapper"],"thead"),v=u(["header","row"],"tr"),p=u(["header","cell"],"th");return l.createElement(m,{className:"".concat(s,"-thead")},d.map(function(y,h){var C=l.createElement(aee,{key:h,flattenColumns:o,cells:y,stickyOffsets:n,rowComponent:v,cellComponent:p,onHeaderRow:a,index:h});return C}))};const K2=cc(lee);function U2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function see(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(p){var y=U2(t,p.width);y?r+=y:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),s=o,u=i/o,d=0,m=e.map(function(p){var y=X({},p),h=U2(t,y.width);if(h)y.width=h;else{var C=Math.floor(u);y.width=s===1?i:C,i-=C,s-=1}return d+=y.width,y});if(d<a){var v=a/d;i=a,m.forEach(function(p,y){var h=Math.floor(p.width*v);p.width=y===m.length-1?i:h,i-=h})}return[m,Math.max(d,a)]}return[e,t]},[e,t,n])}var cee=["children"],uee=["fixed"];function gS(e){return po(e).filter(function(t){return l.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,a=jt(r,cee),i=X({key:n},a);return o&&(i.children=gS(o)),i})}function C_(e){return e.filter(function(t){return t&&ht(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?X(X({},t),{},{children:C_(n)}):t})}function Sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ht(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,i=a===!0?"left":a,s="".concat(t,"-").concat(o),u=r.children;return u&&u.length>0?[].concat(_e(n),_e(Sb(u,s).map(function(d){return X({fixed:i},d)}))):[].concat(_e(n),[X(X({key:s},r),{},{fixed:i})])},[])}function dee(e){return e.map(function(t){var n=t.fixed,r=jt(t,uee),o=n;return n==="left"?o="right":n==="right"&&(o="left"),X({fixed:o},r)})}function fee(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,s=e.columnTitle,u=e.getRowKey,d=e.onTriggerExpand,m=e.expandIcon,v=e.rowExpandable,p=e.expandIconColumnIndex,y=e.expandedRowOffset,h=y===void 0?0:y,C=e.direction,g=e.expandRowByClick,S=e.columnWidth,x=e.fixed,w=e.scrollWidth,R=e.clientWidth,$=l.useMemo(function(){var _=r||gS(o)||[];return C_(_.slice())},[r,o]),O=l.useMemo(function(){if(a){var _=$.slice();if(!_.includes(Ya)){var D=p||0;D>=0&&(D||x==="left"||!x)&&_.splice(D,0,Ya),x==="right"&&_.splice($.length,0,Ya)}var j=_.indexOf(Ya);_=_.filter(function(K,B){return K!==Ya||B===j});var z=$[j],F;x?F=x:F=z?z.fixed:null;var W=Y(Y(Y(Y(Y(Y({},Mu,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",F),"className","".concat(n,"-row-expand-icon-cell")),"width",S),"render",function(B,V,U){var q=u(V,U),G=i.has(q),Z=v?v(V):!0,ee=m({prefixCls:n,expanded:G,expandable:Z,record:V,onExpand:d});return g?l.createElement("span",{onClick:function(oe){return oe.stopPropagation()}},ee):ee});return _.map(function(K,B){var V=K===Ya?W:K;return B<h?X(X({},V),{},{fixed:V.fixed||"left"}):V})}return $.filter(function(K){return K!==Ya})},[a,$,u,i,m,C,h]),I=l.useMemo(function(){var _=O;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,O,C]),N=l.useMemo(function(){return C==="rtl"?dee(Sb(I)):Sb(I)},[I,C,w]),P=l.useMemo(function(){for(var _=-1,D=N.length-1;D>=0;D-=1){var j=N[D].fixed;if(j==="left"||j===!0){_=D;break}}if(_>=0)for(var z=0;z<=_;z+=1){var F=N[z].fixed;if(F!=="left"&&F!==!0)return!0}var W=N.findIndex(function(V){var U=V.fixed;return U==="right"});if(W>=0)for(var K=W;K<N.length;K+=1){var B=N[K].fixed;if(B!=="right")return!0}return!1},[N]),T=see(N,w,R),k=ce(T,2),H=k[0],A=k[1];return[I,H,A,P]}function mee(e,t,n){var r=eee(e),o=r.expandIcon,a=r.expandedRowKeys,i=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,u=r.expandedRowRender,d=r.onExpand,m=r.onExpandedRowsChange,v=r.childrenColumnName,p=o||KJ,y=v||"children",h=l.useMemo(function(){return u?"row":e.expandable&&e.internalHooks===wd&&e.expandable.__PARENT_RENDER_ICON__||t.some(function($){return $&&ht($)==="object"&&$[y]})?"nest":!1},[!!u,t]),C=l.useState(function(){return i||(s?UJ(t,n,y):[])}),g=ce(C,2),S=g[0],x=g[1],w=l.useMemo(function(){return new Set(a||S||[])},[a,S]),R=l.useCallback(function($){var O=n($,t.indexOf($)),I,N=w.has(O);N?(w.delete(O),I=_e(w)):I=[].concat(_e(w),[O]),x(I),d&&d(!N,$),m&&m(I)},[n,w,t,d,m]);return[r,h,w,p,y,R]}function vee(e,t,n){var r=e.map(function(o,a){return pS(a,a,e,t,n)});return Dl(function(){return r},[r],function(o,a){return!ya(o,a)})}function pee(e){var t=l.useRef(e),n=l.useState({}),r=ce(n,2),o=r[1],a=l.useRef(null),i=l.useRef([]);function s(u){i.current.push(u);var d=Promise.resolve();a.current=d,d.then(function(){if(a.current===d){var m=i.current,v=t.current;i.current=[],m.forEach(function(p){t.current=p(t.current)}),a.current=null,v!==t.current&&o({})}})}return l.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function gee(e){var t=l.useRef(null),n=l.useRef();function r(){window.clearTimeout(n.current)}function o(i){t.current=i,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return l.useEffect(function(){return r},[]),[o,a]}function hee(){var e=l.useState(-1),t=ce(e,2),n=t[0],r=t[1],o=l.useState(-1),a=ce(o,2),i=a[0],s=a[1],u=l.useCallback(function(d,m){r(d),s(m)},[]);return[n,i,u]}var q2=Tr()?window:null;function yee(e,t){var n=ht(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,a=n.offsetSummary,i=a===void 0?0:a,s=n.offsetScroll,u=s===void 0?0:s,d=n.getContainer,m=d===void 0?function(){return q2}:d,v=m()||q2,p=!!e;return l.useMemo(function(){return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:i,offsetScroll:u,container:v}},[p,u,o,i,t,v])}function bee(e,t,n){var r=l.useMemo(function(){var o=t.length,a=function(d,m,v){for(var p=[],y=0,h=d;h!==m;h+=v)p.push(y),t[h].fixed&&(y+=e[h]||0);return p},i=a(0,o,1),s=a(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:i}:{left:i,right:s}},[e,t,n]);return r}function Y2(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function G2(e){var t=ad(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var Cee=function(t,n){var r,o,a=t.scrollBodyRef,i=t.onScroll,s=t.offsetScroll,u=t.container,d=t.direction,m=Br(oo,"prefixCls"),v=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,p=((o=a.current)===null||o===void 0?void 0:o.clientWidth)||0,y=v&&p*(p/v),h=l.useRef(),C=pee({scrollLeft:0,isHiddenScrollBar:!0}),g=ce(C,2),S=g[0],x=g[1],w=l.useRef({delta:0,x:0}),R=l.useState(!1),$=ce(R,2),O=$[0],I=$[1],N=l.useRef(null);l.useEffect(function(){return function(){cn.cancel(N.current)}},[]);var P=function(){I(!1)},T=function(D){D.persist(),w.current.delta=D.pageX-S.scrollLeft,w.current.x=0,I(!0),D.preventDefault()},k=function(D){var j,z=D||((j=window)===null||j===void 0?void 0:j.event),F=z.buttons;if(!O||F===0){O&&I(!1);return}var W=w.current.x+D.pageX-w.current.x-w.current.delta,K=d==="rtl";W=Math.max(K?y-p:0,Math.min(K?0:p-y,W));var B=!K||Math.abs(W)+Math.abs(y)<p;B&&(i({scrollLeft:W/p*(v+2)}),w.current.x=D.pageX)},H=function(){cn.cancel(N.current),N.current=cn(function(){if(a.current){var D=G2(a.current).top,j=D+a.current.offsetHeight,z=u===window?document.documentElement.scrollTop+window.innerHeight:G2(u).top+u.clientHeight;j-U$()<=z||D>=z-s?x(function(F){return X(X({},F),{},{isHiddenScrollBar:!0})}):x(function(F){return X(X({},F),{},{isHiddenScrollBar:!1})})}})},A=function(D){x(function(j){return X(X({},j),{},{scrollLeft:D/v*p||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:A,checkScrollBarVisible:H}}),l.useEffect(function(){var _=Ni(document.body,"mouseup",P,!1),D=Ni(document.body,"mousemove",k,!1);return H(),function(){_.remove(),D.remove()}},[y,O]),l.useEffect(function(){if(a.current){for(var _=[],D=ad(a.current);D;)_.push(D),D=D.parentElement;return _.forEach(function(j){return j.addEventListener("scroll",H,!1)}),window.addEventListener("resize",H,!1),window.addEventListener("scroll",H,!1),u.addEventListener("scroll",H,!1),function(){_.forEach(function(j){return j.removeEventListener("scroll",H)}),window.removeEventListener("resize",H),window.removeEventListener("scroll",H),u.removeEventListener("scroll",H)}}},[u]),l.useEffect(function(){S.isHiddenScrollBar||x(function(_){var D=a.current;return D?X(X({},_),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):_})},[S.isHiddenScrollBar]),v<=p||!y||S.isHiddenScrollBar?null:l.createElement("div",{style:{height:U$(),width:p,bottom:s},className:"".concat(m,"-sticky-scroll")},l.createElement("div",{onMouseDown:T,ref:h,className:re("".concat(m,"-sticky-scroll-bar"),Y({},"".concat(m,"-sticky-scroll-bar-active"),O)),style:{width:"".concat(y,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const See=l.forwardRef(Cee);var S_="rc-table",xee=[],wee={};function $ee(){return"No Data"}function Eee(e,t){var n=X({rowKey:"key",prefixCls:S_,emptyText:$ee},e),r=n.prefixCls,o=n.className,a=n.rowClassName,i=n.style,s=n.data,u=n.rowKey,d=n.scroll,m=n.tableLayout,v=n.direction,p=n.title,y=n.footer,h=n.summary,C=n.caption,g=n.id,S=n.showHeader,x=n.components,w=n.emptyText,R=n.onRow,$=n.onHeaderRow,O=n.onScroll,I=n.internalHooks,N=n.transformColumns,P=n.internalRefs,T=n.tailor,k=n.getContainerWidth,H=n.sticky,A=n.rowHoverable,_=A===void 0?!0:A,D=s||xee,j=!!D.length,z=I===wd,F=l.useCallback(function(vt,it){return eo(x,vt)||it},[x]),W=l.useMemo(function(){return typeof u=="function"?u:function(vt){var it=vt&&vt[u];return it}},[u]),K=F(["body"]),B=hee(),V=ce(B,3),U=V[0],q=V[1],G=V[2],Z=mee(n,D,W),ee=ce(Z,6),J=ee[0],oe=ee[1],ae=ee[2],te=ee[3],ne=ee[4],ie=ee[5],de=d==null?void 0:d.x,ve=l.useState(0),se=ce(ve,2),he=se[0],Se=se[1],je=fee(X(X(X({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:ae,getRowKey:W,onTriggerExpand:ie,expandIcon:te,expandIconColumnIndex:J.expandIconColumnIndex,direction:v,scrollWidth:z&&T&&typeof de=="number"?de:null,clientWidth:he}),z?N:null),Te=ce(je,4),Ce=Te[0],xe=Te[1],Ne=Te[2],Ee=Te[3],Be=Ne??de,Ve=l.useMemo(function(){return{columns:Ce,flattenColumns:xe}},[Ce,xe]),tt=l.useRef(),nt=l.useRef(),We=l.useRef(),Ze=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:tt.current,scrollTo:function(it){var Ft;if(We.current instanceof HTMLElement){var vn=it.index,gn=it.top,Or=it.key;if(TJ(gn)){var zn;(zn=We.current)===null||zn===void 0||zn.scrollTo({top:gn})}else{var er,gr=Or??W(D[vn]);(er=We.current.querySelector('[data-row-key="'.concat(gr,'"]')))===null||er===void 0||er.scrollIntoView()}}else(Ft=We.current)!==null&&Ft!==void 0&&Ft.scrollTo&&We.current.scrollTo(it)}}});var Le=l.useRef(),Re=l.useState(!1),qe=ce(Re,2),ye=qe[0],Oe=qe[1],Fe=l.useState(!1),we=ce(Fe,2),He=we[0],ot=we[1],gt=l.useState(new Map),yt=ce(gt,2),Rt=yt[0],qt=yt[1],Wt=pp(xe),It=Wt.map(function(vt){return Rt.get(vt)}),bt=l.useMemo(function(){return It},[It.join("_")]),mt=bee(bt,xe,v),ue=d&&Cb(d.y),fe=d&&Cb(Be)||!!J.fixed,be=fe&&xe.some(function(vt){var it=vt.fixed;return it}),De=l.useRef(),Pe=yee(H,r),ke=Pe.isSticky,Qe=Pe.offsetHeader,Ke=Pe.offsetSummary,Ye=Pe.offsetScroll,et=Pe.stickyClassName,Je=Pe.container,Ge=l.useMemo(function(){return h==null?void 0:h(D)},[h,D]),rt=(ue||ke)&&l.isValidElement(Ge)&&Ge.type===gp&&Ge.props.fixed,st,Nt,Lt;ue&&(Nt={overflowY:j?"scroll":"auto",maxHeight:d.y}),fe&&(st={overflowX:"auto"},ue||(Nt={overflowY:"hidden"}),Lt={width:Be===!0?"auto":Be,minWidth:"100%"});var Bt=l.useCallback(function(vt,it){qt(function(Ft){if(Ft.get(vt)!==it){var vn=new Map(Ft);return vn.set(vt,it),vn}return Ft})},[]),Pt=gee(),rn=ce(Pt,2),Jt=rn[0],ct=rn[1];function ut(vt,it){it&&(typeof it=="function"?it(vt):it.scrollLeft!==vt&&(it.scrollLeft=vt,it.scrollLeft!==vt&&setTimeout(function(){it.scrollLeft=vt},0)))}var Tt=ln(function(vt){var it=vt.currentTarget,Ft=vt.scrollLeft,vn=v==="rtl",gn=typeof Ft=="number"?Ft:it.scrollLeft,Or=it||wee;if(!ct()||ct()===Or){var zn;Jt(Or),ut(gn,nt.current),ut(gn,We.current),ut(gn,Le.current),ut(gn,(zn=De.current)===null||zn===void 0?void 0:zn.setScrollLeft)}var er=it||nt.current;if(er){var gr=z&&T&&typeof Be=="number"?Be:er.scrollWidth,jr=er.clientWidth;if(gr===jr){Oe(!1),ot(!1);return}vn?(Oe(-gn<gr-jr),ot(-gn>0)):(Oe(gn>0),ot(gn<gr-jr))}}),Ct=ln(function(vt){Tt(vt),O==null||O(vt)}),Yt=function(){if(fe&&We.current){var it;Tt({currentTarget:ad(We.current),scrollLeft:(it=We.current)===null||it===void 0?void 0:it.scrollLeft})}else Oe(!1),ot(!1)},pn=function(it){var Ft,vn=it.width;(Ft=De.current)===null||Ft===void 0||Ft.checkScrollBarVisible();var gn=tt.current?tt.current.offsetWidth:vn;z&&k&&tt.current&&(gn=k(tt.current,gn)||gn),gn!==he&&(Yt(),Se(gn))},On=l.useRef(!1);l.useEffect(function(){On.current&&Yt()},[fe,s,Ce.length]),l.useEffect(function(){On.current=!0},[]);var Ut=l.useState(0),wt=ce(Ut,2),Mt=wt[0],Kt=wt[1],Cn=l.useState(!0),on=ce(Cn,2),Pn=on[0],ar=on[1];dn(function(){(!T||!z)&&(We.current instanceof Element?Kt(Hy(We.current).width):Kt(Hy(Ze.current).width)),ar(XH("position","sticky"))},[]),l.useEffect(function(){z&&P&&(P.body.current=We.current)});var Yn=l.useCallback(function(vt){return l.createElement(l.Fragment,null,l.createElement(K2,vt),rt==="top"&&l.createElement(Yf,vt,Ge))},[rt,Ge]),pr=l.useCallback(function(vt){return l.createElement(Yf,vt,Ge)},[Ge]),Qn=F(["table"],"table"),Wn=l.useMemo(function(){return m||(be?Be==="max-content"?"auto":"fixed":ue||ke||xe.some(function(vt){var it=vt.ellipsis;return it})?"fixed":"auto")},[ue,be,xe,m,ke]),Zn,mn={colWidths:bt,columCount:xe.length,stickyOffsets:mt,onHeaderRow:$,fixHeader:ue,scroll:d},Ot=l.useMemo(function(){return j?null:typeof w=="function"?w():w},[j,w]),$t=l.createElement(ZJ,{data:D,measureColumnWidth:ue||fe||ke}),un=l.createElement(b_,{colWidths:xe.map(function(vt){var it=vt.width;return it}),columns:xe}),xt=C!=null?l.createElement("caption",{className:"".concat(r,"-caption")},C):void 0,St=wr(n,{data:!0}),en=wr(n,{aria:!0});if(ue||ke){var _n;typeof K=="function"?(_n=K(D,{scrollbarSize:Mt,ref:We,onScroll:Tt}),mn.colWidths=xe.map(function(vt,it){var Ft=vt.width,vn=it===xe.length-1?Ft-Mt:Ft;return typeof vn=="number"&&!Number.isNaN(vn)?vn:0})):_n=l.createElement("div",{style:X(X({},st),Nt),onScroll:Ct,ref:We,className:re("".concat(r,"-body"))},l.createElement(Qn,Me({style:X(X({},Lt),{},{tableLayout:Wn})},en),xt,un,$t,!rt&&Ge&&l.createElement(Yf,{stickyOffsets:mt,flattenColumns:xe},Ge)));var An=X(X(X({noData:!D.length,maxContentScroll:fe&&Be==="max-content"},mn),Ve),{},{direction:v,stickyClassName:et,onScroll:Tt});Zn=l.createElement(l.Fragment,null,S!==!1&&l.createElement(W2,Me({},An,{stickyTopOffset:Qe,className:"".concat(r,"-header"),ref:nt}),Yn),_n,rt&&rt!=="top"&&l.createElement(W2,Me({},An,{stickyBottomOffset:Ke,className:"".concat(r,"-summary"),ref:Le}),pr),ke&&We.current&&We.current instanceof Element&&l.createElement(See,{ref:De,offsetScroll:Ye,scrollBodyRef:We,onScroll:Tt,container:Je,direction:v}))}else Zn=l.createElement("div",{style:X(X({},st),Nt),className:re("".concat(r,"-content")),onScroll:Tt,ref:We},l.createElement(Qn,Me({style:X(X({},Lt),{},{tableLayout:Wn})},en),xt,un,S!==!1&&l.createElement(K2,Me({},mn,Ve)),$t,Ge&&l.createElement(Yf,{stickyOffsets:mt,flattenColumns:xe},Ge)));var Zt=l.createElement("div",Me({className:re(r,o,Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},"".concat(r,"-rtl"),v==="rtl"),"".concat(r,"-ping-left"),ye),"".concat(r,"-ping-right"),He),"".concat(r,"-layout-fixed"),m==="fixed"),"".concat(r,"-fixed-header"),ue),"".concat(r,"-fixed-column"),be),"".concat(r,"-fixed-column-gapped"),be&&Ee),"".concat(r,"-scroll-horizontal"),fe),"".concat(r,"-has-fix-left"),xe[0]&&xe[0].fixed),"".concat(r,"-has-fix-right"),xe[xe.length-1]&&xe[xe.length-1].fixed==="right")),style:i,id:g,ref:tt},St),p&&l.createElement(Y2,{className:"".concat(r,"-title")},p(D)),l.createElement("div",{ref:Ze,className:"".concat(r,"-container")},Zn),y&&l.createElement(Y2,{className:"".concat(r,"-footer")},y(D)));fe&&(Zt=l.createElement(_o,{onResize:pn},Zt));var Jn=vee(xe,mt,v),sr=l.useMemo(function(){return{scrollX:Be,prefixCls:r,getComponent:F,scrollbarSize:Mt,direction:v,fixedInfoList:Jn,isSticky:ke,supportSticky:Pn,componentWidth:he,fixHeader:ue,fixColumn:be,horizonScroll:fe,tableLayout:Wn,rowClassName:a,expandedRowClassName:J.expandedRowClassName,expandIcon:te,expandableType:oe,expandRowByClick:J.expandRowByClick,expandedRowRender:J.expandedRowRender,expandedRowOffset:J.expandedRowOffset,onTriggerExpand:ie,expandIconColumnIndex:J.expandIconColumnIndex,indentSize:J.indentSize,allColumnsFixedLeft:xe.every(function(vt){return vt.fixed==="left"}),emptyNode:Ot,columns:Ce,flattenColumns:xe,onColumnResize:Bt,colWidths:bt,hoverStartRow:U,hoverEndRow:q,onHover:G,rowExpandable:J.rowExpandable,onRow:R,getRowKey:W,expandedKeys:ae,childrenColumnName:ne,rowHoverable:_}},[Be,r,F,Mt,v,Jn,ke,Pn,he,ue,be,fe,Wn,a,J.expandedRowClassName,te,oe,J.expandRowByClick,J.expandedRowRender,J.expandedRowOffset,ie,J.expandIconColumnIndex,J.indentSize,Ot,Ce,xe,Bt,bt,U,q,G,J.rowExpandable,R,W,ae,ne,_]);return l.createElement(oo.Provider,{value:sr},Zt)}var Oee=l.forwardRef(Eee);function x_(e){return c_(Oee,e)}var dc=x_();dc.EXPAND_COLUMN=Ya;dc.INTERNAL_HOOKS=wd;dc.Column=VJ;dc.ColumnGroup=WJ;dc.Summary=f_;var hS=mS(null),w_=mS(null);function Ree(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function Iee(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,a=e.index,i=e.component,s=e.renderIndex,u=e.record,d=e.style,m=e.className,v=e.inverse,p=e.getHeight,y=n.render,h=n.dataIndex,C=n.className,g=n.width,S=Br(w_,["columnsOffset"]),x=S.columnsOffset,w=y_(t,n,r,o,a),R=w.key,$=w.fixedInfo,O=w.appendCellNode,I=w.additionalCellProps,N=I.style,P=I.colSpan,T=P===void 0?1:P,k=I.rowSpan,H=k===void 0?1:k,A=r-1,_=Ree(A,T,x),D=T>1?g-_:0,j=X(X(X({},N),d),{},{flex:"0 0 ".concat(_,"px"),width:"".concat(_,"px"),marginRight:D,pointerEvents:"auto"}),z=l.useMemo(function(){return v?H<=1:T===0||H===0||H>1},[H,T,v]);z?j.visibility="hidden":v&&(j.height=p==null?void 0:p(H));var F=z?function(){return null}:y,W={};return(H===0||T===0)&&(W.rowSpan=1,W.colSpan=1),l.createElement(uc,Me({className:re(C,m),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:R,record:u,index:a,renderIndex:s,dataIndex:h,render:F,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:O,additionalProps:X(X({},I),{},{style:j},W)}))}var Pee=["data","index","className","rowKey","style","extra","getHeight"],Nee=l.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,i=e.style,s=e.extra,u=e.getHeight,d=jt(e,Pee),m=n.record,v=n.indent,p=n.index,y=Br(oo,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=y.scrollX,C=y.flattenColumns,g=y.prefixCls,S=y.fixColumn,x=y.componentWidth,w=Br(hS,["getComponent"]),R=w.getComponent,$=p_(m,a,r,v),O=R(["body","row"],"div"),I=R(["body","cell"],"div"),N=$.rowSupportExpand,P=$.expanded,T=$.rowProps,k=$.expandedRowRender,H=$.expandedRowClassName,A;if(N&&P){var _=k(m,r,v+1,P),D=h_(H,m,r,v),j={};S&&(j={style:Y({},"--virtual-width","".concat(x,"px"))});var z="".concat(g,"-expanded-row-cell");A=l.createElement(O,{className:re("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(v+1),D)},l.createElement(uc,{component:I,prefixCls:g,className:re(z,Y({},"".concat(z,"-fixed"),S)),additionalProps:j},_))}var F=X(X({},i),{},{width:h});s&&(F.position="absolute",F.pointerEvents="none");var W=l.createElement(O,Me({},T,d,{"data-row-key":a,ref:N?null:t,className:re(o,"".concat(g,"-row"),T==null?void 0:T.className,Y({},"".concat(g,"-row-extra"),s)),style:X(X({},F),T==null?void 0:T.style)}),C.map(function(K,B){return l.createElement(Iee,{key:B,component:I,rowInfo:$,column:K,colIndex:B,indent:v,index:r,renderIndex:p,record:m,inverse:s,getHeight:u})}));return N?l.createElement("div",{ref:t},W,A):W}),X2=cc(Nee),Mee=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Br(oo,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=o.flattenColumns,i=o.onColumnResize,s=o.getRowKey,u=o.expandedKeys,d=o.prefixCls,m=o.childrenColumnName,v=o.scrollX,p=o.direction,y=Br(hS),h=y.sticky,C=y.scrollY,g=y.listItemHeight,S=y.getComponent,x=y.onScroll,w=l.useRef(),R=v_(n,m,u,s),$=l.useMemo(function(){var A=0;return a.map(function(_){var D=_.width,j=_.key;return A+=D,[j,D,A]})},[a]),O=l.useMemo(function(){return $.map(function(A){return A[2]})},[$]);l.useEffect(function(){$.forEach(function(A){var _=ce(A,2),D=_[0],j=_[1];i(D,j)})},[$]),l.useImperativeHandle(t,function(){var A,_={scrollTo:function(j){var z;(z=w.current)===null||z===void 0||z.scrollTo(j)},nativeElement:(A=w.current)===null||A===void 0?void 0:A.nativeElement};return Object.defineProperty(_,"scrollLeft",{get:function(){var j;return((j=w.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var z;(z=w.current)===null||z===void 0||z.scrollTo({left:j})}}),_});var I=function(_,D){var j,z=(j=R[D])===null||j===void 0?void 0:j.record,F=_.onCell;if(F){var W,K=F(z,D);return(W=K==null?void 0:K.rowSpan)!==null&&W!==void 0?W:1}return 1},N=function(_){var D=_.start,j=_.end,z=_.getSize,F=_.offsetY;if(j<0)return null;for(var W=a.filter(function(te){return I(te,D)===0}),K=D,B=function(ne){if(W=W.filter(function(ie){return I(ie,ne)===0}),!W.length)return K=ne,1},V=D;V>=0&&!B(V);V-=1);for(var U=a.filter(function(te){return I(te,j)!==1}),q=j,G=function(ne){if(U=U.filter(function(ie){return I(ie,ne)!==1}),!U.length)return q=Math.max(ne-1,j),1},Z=j;Z<R.length&&!G(Z);Z+=1);for(var ee=[],J=function(ne){var ie=R[ne];if(!ie)return 1;a.some(function(de){return I(de,ne)>1})&&ee.push(ne)},oe=K;oe<=q;oe+=1)J(oe);var ae=ee.map(function(te){var ne=R[te],ie=s(ne.record,te),de=function(he){var Se=te+he-1,je=s(R[Se].record,Se),Te=z(ie,je);return Te.bottom-Te.top},ve=z(ie);return l.createElement(X2,{key:te,data:ne,rowKey:ie,index:te,style:{top:-F+ve.top},extra:!0,getHeight:de})});return ae},P=l.useMemo(function(){return{columnsOffset:O}},[O]),T="".concat(d,"-tbody"),k=S(["body","wrapper"]),H={};return h&&(H.position="sticky",H.bottom=0,ht(h)==="object"&&h.offsetScroll&&(H.bottom=h.offsetScroll)),l.createElement(w_.Provider,{value:P},l.createElement(Gv,{fullHeight:!1,ref:w,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:H},className:T,height:C,itemHeight:g||24,data:R,itemKey:function(_){return s(_.record)},component:k,scrollWidth:v,direction:p,onVirtualScroll:function(_){var D,j=_.x;r({currentTarget:(D=w.current)===null||D===void 0?void 0:D.nativeElement,scrollLeft:j})},onScroll:x,extraRender:N},function(A,_,D){var j=s(A.record,_);return l.createElement(X2,{data:A,rowKey:j,index:_,style:D.style})}))}),Tee=cc(Mee),_ee=function(t,n){var r=n.ref,o=n.onScroll;return l.createElement(Tee,{ref:r,data:t,onScroll:o})};function Dee(e,t){var n=e.data,r=e.columns,o=e.scroll,a=e.sticky,i=e.prefixCls,s=i===void 0?S_:i,u=e.className,d=e.listItemHeight,m=e.components,v=e.onScroll,p=o||{},y=p.x,h=p.y;typeof y!="number"&&(y=1),typeof h!="number"&&(h=500);var C=ln(function(x,w){return eo(m,x)||w}),g=ln(v),S=l.useMemo(function(){return{sticky:a,scrollY:h,listItemHeight:d,getComponent:C,onScroll:g}},[a,h,d,C,g]);return l.createElement(hS.Provider,{value:S},l.createElement(dc,Me({},e,{className:re(u,"".concat(s,"-virtual")),scroll:X(X({},o),{},{x:y}),components:X(X({},m),{},{body:n!=null&&n.length?_ee:void 0}),columns:r,internalHooks:wd,tailor:!0,ref:t})))}var jee=l.forwardRef(Dee);function $_(e){return c_(jee,e)}$_();const yn=e=>null,kee=e=>null;var yS=l.createContext(null),zee=l.createContext({}),Lee=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],u=0;u<r;u+=1)s.push(l.createElement("span",{key:u,className:re(i,Y(Y({},"".concat(i,"-start"),o[u]),"".concat(i,"-end"),a[u]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const Fee=l.memo(Lee);var Aee=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Q2="open",Z2="close",Bee="---",Ju=function(t){var n,r,o,a=t.eventKey,i=t.className,s=t.style,u=t.dragOver,d=t.dragOverGapTop,m=t.dragOverGapBottom,v=t.isLeaf,p=t.isStart,y=t.isEnd,h=t.expanded,C=t.selected,g=t.checked,S=t.halfChecked,x=t.loading,w=t.domRef,R=t.active,$=t.data,O=t.onMouseMove,I=t.selectable,N=jt(t,Aee),P=pe.useContext(yS),T=pe.useContext(zee),k=pe.useRef(null),H=pe.useState(!1),A=ce(H,2),_=A[0],D=A[1],j=!!(P.disabled||t.disabled||(n=T.nodeDisabled)!==null&&n!==void 0&&n.call(T,$)),z=pe.useMemo(function(){return!P.checkable||t.checkable===!1?!1:P.checkable},[P.checkable,t.checkable]),F=function(Re){j||P.onNodeSelect(Re,yr(t))},W=function(Re){j||!z||t.disableCheckbox||P.onNodeCheck(Re,yr(t),!g)},K=pe.useMemo(function(){return typeof I=="boolean"?I:P.selectable},[I,P.selectable]),B=function(Re){P.onNodeClick(Re,yr(t)),K?F(Re):W(Re)},V=function(Re){P.onNodeDoubleClick(Re,yr(t))},U=function(Re){P.onNodeMouseEnter(Re,yr(t))},q=function(Re){P.onNodeMouseLeave(Re,yr(t))},G=function(Re){P.onNodeContextMenu(Re,yr(t))},Z=pe.useMemo(function(){return!!(P.draggable&&(!P.draggable.nodeDraggable||P.draggable.nodeDraggable($)))},[P.draggable,$]),ee=function(Re){Re.stopPropagation(),D(!0),P.onNodeDragStart(Re,t);try{Re.dataTransfer.setData("text/plain","")}catch{}},J=function(Re){Re.preventDefault(),Re.stopPropagation(),P.onNodeDragEnter(Re,t)},oe=function(Re){Re.preventDefault(),Re.stopPropagation(),P.onNodeDragOver(Re,t)},ae=function(Re){Re.stopPropagation(),P.onNodeDragLeave(Re,t)},te=function(Re){Re.stopPropagation(),D(!1),P.onNodeDragEnd(Re,t)},ne=function(Re){Re.preventDefault(),Re.stopPropagation(),D(!1),P.onNodeDrop(Re,t)},ie=function(Re){x||P.onNodeExpand(Re,yr(t))},de=pe.useMemo(function(){var Le=fo(P.keyEntities,a)||{},Re=Le.children;return!!(Re||[]).length},[P.keyEntities,a]),ve=pe.useMemo(function(){return v===!1?!1:v||!P.loadData&&!de||P.loadData&&t.loaded&&!de},[v,P.loadData,de,t.loaded]);pe.useEffect(function(){x||typeof P.loadData=="function"&&h&&!ve&&!t.loaded&&P.onNodeLoad(yr(t))},[x,P.loadData,P.onNodeLoad,h,ve,t]);var se=pe.useMemo(function(){var Le;return(Le=P.draggable)!==null&&Le!==void 0&&Le.icon?pe.createElement("span",{className:"".concat(P.prefixCls,"-draggable-icon")},P.draggable.icon):null},[P.draggable]),he=function(Re){var qe=t.switcherIcon||P.switcherIcon;return typeof qe=="function"?qe(X(X({},t),{},{isLeaf:Re})):qe},Se=function(){if(ve){var Re=he(!0);return Re!==!1?pe.createElement("span",{className:re("".concat(P.prefixCls,"-switcher"),"".concat(P.prefixCls,"-switcher-noop"))},Re):null}var qe=he(!1);return qe!==!1?pe.createElement("span",{onClick:ie,className:re("".concat(P.prefixCls,"-switcher"),"".concat(P.prefixCls,"-switcher_").concat(h?Q2:Z2))},qe):null},je=pe.useMemo(function(){if(!z)return null;var Le=typeof z!="boolean"?z:null;return pe.createElement("span",{className:re("".concat(P.prefixCls,"-checkbox"),Y(Y(Y({},"".concat(P.prefixCls,"-checkbox-checked"),g),"".concat(P.prefixCls,"-checkbox-indeterminate"),!g&&S),"".concat(P.prefixCls,"-checkbox-disabled"),j||t.disableCheckbox)),onClick:W,role:"checkbox","aria-checked":S?"mixed":g,"aria-disabled":j||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Le)},[z,g,S,j,t.disableCheckbox,t.title]),Te=pe.useMemo(function(){return ve?null:h?Q2:Z2},[ve,h]),Ce=pe.useMemo(function(){return pe.createElement("span",{className:re("".concat(P.prefixCls,"-iconEle"),"".concat(P.prefixCls,"-icon__").concat(Te||"docu"),Y({},"".concat(P.prefixCls,"-icon_loading"),x))})},[P.prefixCls,Te,x]),xe=pe.useMemo(function(){var Le=!!P.draggable,Re=!t.disabled&&Le&&P.dragOverNodeKey===a;return Re?P.dropIndicatorRender({dropPosition:P.dropPosition,dropLevelOffset:P.dropLevelOffset,indent:P.indent,prefixCls:P.prefixCls,direction:P.direction}):null},[P.dropPosition,P.dropLevelOffset,P.indent,P.prefixCls,P.direction,P.draggable,P.dragOverNodeKey,P.dropIndicatorRender]),Ne=pe.useMemo(function(){var Le=t.title,Re=Le===void 0?Bee:Le,qe="".concat(P.prefixCls,"-node-content-wrapper"),ye;if(P.showIcon){var Oe=t.icon||P.icon;ye=Oe?pe.createElement("span",{className:re("".concat(P.prefixCls,"-iconEle"),"".concat(P.prefixCls,"-icon__customize"))},typeof Oe=="function"?Oe(t):Oe):Ce}else P.loadData&&x&&(ye=Ce);var Fe;return typeof Re=="function"?Fe=Re($):P.titleRender?Fe=P.titleRender($):Fe=Re,pe.createElement("span",{ref:k,title:typeof Re=="string"?Re:"",className:re(qe,"".concat(qe,"-").concat(Te||"normal"),Y({},"".concat(P.prefixCls,"-node-selected"),!j&&(C||_))),onMouseEnter:U,onMouseLeave:q,onContextMenu:G,onClick:B,onDoubleClick:V},ye,pe.createElement("span",{className:"".concat(P.prefixCls,"-title")},Fe),xe)},[P.prefixCls,P.showIcon,t,P.icon,Ce,P.titleRender,$,Te,U,q,G,B,V]),Ee=wr(N,{aria:!0,data:!0}),Be=fo(P.keyEntities,a)||{},Ve=Be.level,tt=y[y.length-1],nt=!j&&Z,We=P.draggingNodeKey===a,Ze=I!==void 0?{"aria-selected":!!I}:void 0;return pe.createElement("div",Me({ref:w,role:"treeitem","aria-expanded":v?void 0:h,className:re(i,"".concat(P.prefixCls,"-treenode"),(o={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(o,"".concat(P.prefixCls,"-treenode-disabled"),j),"".concat(P.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!v),"".concat(P.prefixCls,"-treenode-checkbox-checked"),g),"".concat(P.prefixCls,"-treenode-checkbox-indeterminate"),S),"".concat(P.prefixCls,"-treenode-selected"),C),"".concat(P.prefixCls,"-treenode-loading"),x),"".concat(P.prefixCls,"-treenode-active"),R),"".concat(P.prefixCls,"-treenode-leaf-last"),tt),"".concat(P.prefixCls,"-treenode-draggable"),Z),"dragging",We),Y(Y(Y(Y(Y(Y(Y(o,"drop-target",P.dropTargetKey===a),"drop-container",P.dropContainerKey===a),"drag-over",!j&&u),"drag-over-gap-top",!j&&d),"drag-over-gap-bottom",!j&&m),"filter-node",(r=P.filterTreeNode)===null||r===void 0?void 0:r.call(P,yr(t))),"".concat(P.prefixCls,"-treenode-leaf"),ve))),style:s,draggable:nt,onDragStart:nt?ee:void 0,onDragEnter:Z?J:void 0,onDragOver:Z?oe:void 0,onDragLeave:Z?ae:void 0,onDrop:Z?ne:void 0,onDragEnd:Z?te:void 0,onMouseMove:O},Ze,Ee),pe.createElement(Fee,{prefixCls:P.prefixCls,level:Ve,isStart:p,isEnd:y}),se,Se(),je,Ne)};Ju.isTreeNode=1;function Ma(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function qa(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function bS(e){return e.split("-")}function Hee(e,t){var n=[],r=fo(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var s=i.key,u=i.children;n.push(s),o(u)})}return o(r.children),n}function Vee(e){if(e.parent){var t=bS(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Wee(e){var t=bS(e.pos);return Number(t[t.length-1])===0}function J2(e,t,n,r,o,a,i,s,u,d){var m,v=e.clientX,p=e.clientY,y=e.target.getBoundingClientRect(),h=y.top,C=y.height,g=(d==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-v),S=(g-12)/r,x=u.filter(function(j){var z;return(z=s[j])===null||z===void 0||(z=z.children)===null||z===void 0?void 0:z.length}),w=fo(s,n.eventKey);if(p<h+C/2){var R=i.findIndex(function(j){return j.key===w.key}),$=R<=0?0:R-1,O=i[$].key;w=fo(s,O)}var I=w.key,N=w,P=w.key,T=0,k=0;if(!x.includes(I))for(var H=0;H<S&&Vee(w);H+=1)w=w.parent,k+=1;var A=t.data,_=w.node,D=!0;return Wee(w)&&w.level===0&&p<h+C/2&&a({dragNode:A,dropNode:_,dropPosition:-1})&&w.key===n.eventKey?T=-1:(N.children||[]).length&&x.includes(P)?a({dragNode:A,dropNode:_,dropPosition:0})?T=0:D=!1:k===0?S>-1.5?a({dragNode:A,dropNode:_,dropPosition:1})?T=1:D=!1:a({dragNode:A,dropNode:_,dropPosition:0})?T=0:a({dragNode:A,dropNode:_,dropPosition:1})?T=1:D=!1:a({dragNode:A,dropNode:_,dropPosition:1})?T=1:D=!1,{dropPosition:T,dropLevelOffset:k,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:P,dropContainerKey:T===0?null:((m=w.parent)===null||m===void 0?void 0:m.key)||null,dropAllowed:D}}function eO(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function g0(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return qn(!1,"`checkedKeys` is not an array or an object"),null;return t}function xb(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=fo(t,o);if(a){n.add(o);var i=a.parent,s=a.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),_e(n)}function Kee(e){const[t,n]=l.useState(null);return[l.useCallback((a,i,s)=>{const u=t??a,d=Math.min(u||0,a),m=Math.max(u||0,a),v=i.slice(d,m+1).map(h=>e(h)),p=v.some(h=>!s.has(h)),y=[];return v.forEach(h=>{p?(s.has(h)||y.push(h),s.add(h)):(s.delete(h),y.push(h))}),n(p?m:null),y},[t]),a=>{n(a)}]}const Ei={},wb="SELECT_ALL",$b="SELECT_INVERT",Eb="SELECT_NONE",tO=[],E_=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(_e(n),_e(E_(e,r[e]))))}),n},Uee=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:i,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:m,onSelectMultiple:v,columnWidth:p,type:y,selections:h,fixed:C,renderCell:g,hideSelectAll:S,checkStrictly:x=!0}=t||{},{prefixCls:w,data:R,pageData:$,getRecordByKey:O,getRowKey:I,expandType:N,childrenColumnName:P,locale:T,getPopupContainer:k}=e,H=Ui(),[A,_]=Kee(te=>te),[D,j]=Tn(r||o||tO,{value:r}),z=l.useRef(new Map),F=l.useCallback(te=>{if(n){const ne=new Map;te.forEach(ie=>{let de=O(ie);!de&&z.current.has(ie)&&(de=z.current.get(ie)),ne.set(ie,de)}),z.current=ne}},[O,n]);l.useEffect(()=>{F(D)},[D]);const W=l.useMemo(()=>E_(P,$),[P,$]),{keyEntities:K}=l.useMemo(()=>{if(x)return{keyEntities:null};let te=R;if(n){const ne=new Set(W.map((de,ve)=>I(de,ve))),ie=Array.from(z.current).reduce((de,[ve,se])=>ne.has(ve)?de:de.concat(se),[]);te=[].concat(_e(te),_e(ie))}return oS(te,{externalGetKey:I,childrenPropName:P})},[R,I,x,P,n,W]),B=l.useMemo(()=>{const te=new Map;return W.forEach((ne,ie)=>{const de=I(ne,ie),ve=(a?a(ne):null)||{};te.set(de,ve)}),te},[W,I,a]),V=l.useCallback(te=>{const ne=I(te);let ie;return B.has(ne)?ie=B.get(I(te)):ie=a?a(te):void 0,!!(ie!=null&&ie.disabled)},[B,I]),[U,q]=l.useMemo(()=>{if(x)return[D||[],[]];const{checkedKeys:te,halfCheckedKeys:ne}=Ns(D,!0,K,V);return[te||[],ne]},[D,x,K,V]),G=l.useMemo(()=>{const te=y==="radio"?U.slice(0,1):U;return new Set(te)},[U,y]),Z=l.useMemo(()=>y==="radio"?new Set:new Set(q),[q,y]);l.useEffect(()=>{t||j(tO)},[!!t]);const ee=l.useCallback((te,ne)=>{let ie,de;F(te),n?(ie=te,de=te.map(ve=>z.current.get(ve))):(ie=[],de=[],te.forEach(ve=>{const se=O(ve);se!==void 0&&(ie.push(ve),de.push(se))})),j(ie),i==null||i(ie,de,{type:ne})},[j,O,i,n]),J=l.useCallback((te,ne,ie,de)=>{if(s){const ve=ie.map(se=>O(se));s(O(te),ne,ve,de)}ee(ie,"single")},[s,O,ee]),oe=l.useMemo(()=>!h||S?null:(h===!0?[wb,$b,Eb]:h).map(ne=>ne===wb?{key:"all",text:T.selectionAll,onSelect(){ee(R.map((ie,de)=>I(ie,de)).filter(ie=>{const de=B.get(ie);return!(de!=null&&de.disabled)||G.has(ie)}),"all")}}:ne===$b?{key:"invert",text:T.selectInvert,onSelect(){const ie=new Set(G);$.forEach((ve,se)=>{const he=I(ve,se),Se=B.get(he);Se!=null&&Se.disabled||(ie.has(he)?ie.delete(he):ie.add(he))});const de=Array.from(ie);d&&(H.deprecated(!1,"onSelectInvert","onChange"),d(de)),ee(de,"invert")}}:ne===Eb?{key:"none",text:T.selectNone,onSelect(){m==null||m(),ee(Array.from(G).filter(ie=>{const de=B.get(ie);return de==null?void 0:de.disabled}),"none")}}:ne).map(ne=>Object.assign(Object.assign({},ne),{onSelect:(...ie)=>{var de,ve;(ve=ne.onSelect)===null||ve===void 0||(de=ve).call.apply(de,[ne].concat(ie)),_(null)}})),[h,G,$,I,d,ee]);return[l.useCallback(te=>{var ne;if(!t)return te.filter(Ze=>Ze!==Ei);let ie=_e(te);const de=new Set(G),ve=W.map(I).filter(Ze=>!B.get(Ze).disabled),se=ve.every(Ze=>de.has(Ze)),he=ve.some(Ze=>de.has(Ze)),Se=()=>{const Ze=[];se?ve.forEach(Re=>{de.delete(Re),Ze.push(Re)}):ve.forEach(Re=>{de.has(Re)||(de.add(Re),Ze.push(Re))});const Le=Array.from(de);u==null||u(!se,Le.map(Re=>O(Re)),Ze.map(Re=>O(Re))),ee(Le,"all"),_(null)};let je,Te;if(y!=="radio"){let Ze;if(oe){const Oe={getPopupContainer:k,items:oe.map((Fe,we)=>{const{key:He,text:ot,onSelect:gt}=Fe;return{key:He??we,onClick:()=>{gt==null||gt(ve)},label:ot}})};Ze=l.createElement("div",{className:`${w}-selection-extra`},l.createElement(cp,{menu:Oe,getPopupContainer:k},l.createElement("span",null,l.createElement(_N,null))))}const Le=W.map((Oe,Fe)=>{const we=I(Oe,Fe),He=B.get(we)||{};return Object.assign({checked:de.has(we)},He)}).filter(({disabled:Oe})=>Oe),Re=!!Le.length&&Le.length===W.length,qe=Re&&Le.every(({checked:Oe})=>Oe),ye=Re&&Le.some(({checked:Oe})=>Oe);Te=l.createElement(Vs,{checked:Re?qe:!!W.length&&se,indeterminate:Re?!qe&&ye:!se&&he,onChange:Se,disabled:W.length===0||Re,"aria-label":Ze?"Custom selection":"Select all",skipGroup:!0}),je=!S&&l.createElement("div",{className:`${w}-selection`},Te,Ze)}let Ce;y==="radio"?Ce=(Ze,Le,Re)=>{const qe=I(Le,Re),ye=de.has(qe),Oe=B.get(qe);return{node:l.createElement(bd,Object.assign({},Oe,{checked:ye,onClick:Fe=>{var we;Fe.stopPropagation(),(we=Oe==null?void 0:Oe.onClick)===null||we===void 0||we.call(Oe,Fe)},onChange:Fe=>{var we;de.has(qe)||J(qe,!0,[qe],Fe.nativeEvent),(we=Oe==null?void 0:Oe.onChange)===null||we===void 0||we.call(Oe,Fe)}})),checked:ye}}:Ce=(Ze,Le,Re)=>{var qe;const ye=I(Le,Re),Oe=de.has(ye),Fe=Z.has(ye),we=B.get(ye);let He;return N==="nest"?He=Fe:He=(qe=we==null?void 0:we.indeterminate)!==null&&qe!==void 0?qe:Fe,{node:l.createElement(Vs,Object.assign({},we,{indeterminate:He,checked:Oe,skipGroup:!0,onClick:ot=>{var gt;ot.stopPropagation(),(gt=we==null?void 0:we.onClick)===null||gt===void 0||gt.call(we,ot)},onChange:ot=>{var gt;const{nativeEvent:yt}=ot,{shiftKey:Rt}=yt,qt=ve.findIndex(It=>It===ye),Wt=U.some(It=>ve.includes(It));if(Rt&&x&&Wt){const It=A(qt,ve,de),bt=Array.from(de);v==null||v(!Oe,bt.map(mt=>O(mt)),It.map(mt=>O(mt))),ee(bt,"multiple")}else{const It=U;if(x){const bt=Oe?Ma(It,ye):qa(It,ye);J(ye,!Oe,bt,yt)}else{const bt=Ns([].concat(_e(It),[ye]),!0,K,V),{checkedKeys:mt,halfCheckedKeys:ue}=bt;let fe=mt;if(Oe){const be=new Set(mt);be.delete(ye),fe=Ns(Array.from(be),{halfCheckedKeys:ue},K,V).checkedKeys}J(ye,!Oe,fe,yt)}}_(Oe?null:qt),(gt=we==null?void 0:we.onChange)===null||gt===void 0||gt.call(we,ot)}})),checked:Oe}};const xe=(Ze,Le,Re)=>{const{node:qe,checked:ye}=Ce(Ze,Le,Re);return g?g(ye,Le,Re,qe):qe};if(!ie.includes(Ei))if(ie.findIndex(Ze=>{var Le;return((Le=Ze[Mu])===null||Le===void 0?void 0:Le.columnType)==="EXPAND_COLUMN"})===0){const[Ze,...Le]=ie;ie=[Ze,Ei].concat(_e(Le))}else ie=[Ei].concat(_e(ie));const Ne=ie.indexOf(Ei);ie=ie.filter((Ze,Le)=>Ze!==Ei||Le===Ne);const Ee=ie[Ne-1],Be=ie[Ne+1];let Ve=C;Ve===void 0&&((Be==null?void 0:Be.fixed)!==void 0?Ve=Be.fixed:(Ee==null?void 0:Ee.fixed)!==void 0&&(Ve=Ee.fixed)),Ve&&Ee&&((ne=Ee[Mu])===null||ne===void 0?void 0:ne.columnType)==="EXPAND_COLUMN"&&Ee.fixed===void 0&&(Ee.fixed=Ve);const tt=re(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:h&&y==="checkbox"}),nt=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Te):t.columnTitle:je,We={fixed:Ve,width:p,className:`${w}-selection-column`,title:nt(),render:xe,onCell:t.onCell,align:t.align,[Mu]:{className:tt}};return ie.map(Ze=>Ze===Ei?We:Ze)},[I,W,t,U,G,Z,p,oe,N,B,v,J,V]),G]};function qee(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function Yee(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):qee(r,n)})}function Gee(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:u=>{r(o,u),u.stopPropagation()},className:re(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&a,[`${s}-collapsed`]:i&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Xee(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const i=getComputedStyle(o),s=parseInt(i.borderLeftWidth,10),u=parseInt(i.borderRightWidth,10);a=r-s-u}return a}}const Hi=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function fc(e,t){return t?`${t}-${e}`:`${e}`}const hp=(e,t)=>typeof e=="function"?e(t):e,Qee=(e,t)=>{const n=hp(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function Zee(e){const t=l.useRef(e),n=LC();return[()=>t.current,r=>{t.current=r,n()}]}var Jee=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o;break}return pe.createElement("div",{style:a})};function O_(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function ete(e,t){var n=l.useState(!1),r=ce(n,2),o=r[0],a=r[1];dn(function(){if(o)return e(),function(){t()}},[o]),dn(function(){return a(!0),function(){a(!1)}},[])}var tte=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nte=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,s=e.onMotionStart,u=e.onMotionEnd,d=e.active,m=e.treeNodeRequiredProps,v=jt(e,tte),p=l.useState(!0),y=ce(p,2),h=y[0],C=y[1],g=l.useContext(yS),S=g.prefixCls,x=a&&i!=="hide";dn(function(){a&&x!==h&&C(x)},[a]);var w=function(){a&&s()},R=l.useRef(!1),$=function(){a&&!R.current&&(R.current=!0,u())};ete(w,$);var O=function(N){x===N&&$()};return a?l.createElement(Do,Me({ref:t,visible:h},o,{motionAppear:i==="show",onVisibleChanged:O}),function(I,N){var P=I.className,T=I.style;return l.createElement("div",{ref:N,className:re("".concat(S,"-treenode-motion"),P),style:T},a.map(function(k){var H=Object.assign({},(O_(k.data),k.data)),A=k.title,_=k.key,D=k.isStart,j=k.isEnd;delete H.children;var z=Pu(_,m);return l.createElement(Ju,Me({},H,z,{title:A,active:d,data:k.data,key:_,isStart:D,isEnd:j}))}))}):l.createElement(Ju,Me({domRef:t,className:n,style:r},v,{active:d}))});function rte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var s=new Map;a.forEach(function(d){s.set(d,!0)});var u=i.filter(function(d){return!s.has(d)});return u.length===1?u[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function nO(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],a=t.findIndex(function(s){return s.key===n});if(o){var i=t.findIndex(function(s){return s.key===o.key});return t.slice(a+1,i)}return t.slice(a+1)}var ote=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],rO={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ate=function(){},Pl="RC_TREE_MOTION_".concat(Math.random()),Ob={key:Pl},R_={key:Pl,level:0,index:0,pos:"0",node:Ob,nodes:[Ob]},oO={parent:null,children:[],pos:R_.pos,data:Ob,title:null,key:Pl,isStart:[],isEnd:[]};function aO(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function iO(e){var t=e.key,n=e.pos;return Cd(t,n)}function ite(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var lte=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,m=e.keyEntities,v=e.disabled,p=e.dragging,y=e.dragOverNodeKey,h=e.dropPosition,C=e.motion,g=e.height,S=e.itemHeight,x=e.virtual,w=e.scrollWidth,R=e.focusable,$=e.activeItem,O=e.focused,I=e.tabIndex,N=e.onKeyDown,P=e.onFocus,T=e.onBlur,k=e.onActiveChange,H=e.onListChangeStart,A=e.onListChangeEnd,_=jt(e,ote),D=l.useRef(null),j=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(xe){D.current.scrollTo(xe)},getIndentWidth:function(){return j.current.offsetWidth}}});var z=l.useState(o),F=ce(z,2),W=F[0],K=F[1],B=l.useState(r),V=ce(B,2),U=V[0],q=V[1],G=l.useState(r),Z=ce(G,2),ee=Z[0],J=Z[1],oe=l.useState([]),ae=ce(oe,2),te=ae[0],ne=ae[1],ie=l.useState(null),de=ce(ie,2),ve=de[0],se=de[1],he=l.useRef(r);he.current=r;function Se(){var Ce=he.current;q(Ce),J(Ce),ne([]),se(null),A()}dn(function(){K(o);var Ce=rte(W,o);if(Ce.key!==null)if(Ce.add){var xe=U.findIndex(function(nt){var We=nt.key;return We===Ce.key}),Ne=aO(nO(U,r,Ce.key),x,g,S),Ee=U.slice();Ee.splice(xe+1,0,oO),J(Ee),ne(Ne),se("show")}else{var Be=r.findIndex(function(nt){var We=nt.key;return We===Ce.key}),Ve=aO(nO(r,U,Ce.key),x,g,S),tt=r.slice();tt.splice(Be+1,0,oO),J(tt),ne(Ve),se("hide")}else U!==r&&(q(r),J(r))},[o,r]),l.useEffect(function(){p||Se()},[p]);var je=C?ee:r,Te={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:u,checkedKeys:i,halfCheckedKeys:d,dragOverNodeKey:y,dropPosition:h,keyEntities:m};return l.createElement(l.Fragment,null,O&&$&&l.createElement("span",{style:rO,"aria-live":"assertive"},ite($)),l.createElement("div",null,l.createElement("input",{style:rO,disabled:R===!1||v,tabIndex:R!==!1?I:null,onKeyDown:N,onFocus:P,onBlur:T,value:"",onChange:ate,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),l.createElement(Gv,Me({},_,{data:je,itemKey:iO,height:g,fullHeight:!1,virtual:x,itemHeight:S,scrollWidth:w,prefixCls:"".concat(n,"-list"),ref:D,role:"tree",onVisibleChange:function(xe){xe.every(function(Ne){return iO(Ne)!==Pl})&&Se()}}),function(Ce){var xe=Ce.pos,Ne=Object.assign({},(O_(Ce.data),Ce.data)),Ee=Ce.title,Be=Ce.key,Ve=Ce.isStart,tt=Ce.isEnd,nt=Cd(Be,xe);delete Ne.key,delete Ne.children;var We=Pu(nt,Te);return l.createElement(nte,Me({},Ne,We,{title:Ee,active:!!$&&Be===$.key,pos:xe,data:Ce.data,isStart:Ve,isEnd:tt,motion:C,motionNodes:Be===Pl?te:null,motionType:ve,onMotionStart:H,onMotionEnd:Se,treeNodeRequiredProps:Te,onMouseMove:function(){k(null)}}))}))}),ste=10,CS=function(e){na(n,e);var t=ra(n);function n(){var r;rr(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Y(ft(r),"destroyed",!1),Y(ft(r),"delayedDragEnterLogic",void 0),Y(ft(r),"loadingRetryTimes",{}),Y(ft(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Hs()}),Y(ft(r),"dragStartMousePosition",null),Y(ft(r),"dragNodeProps",null),Y(ft(r),"currentMouseOverDroppableNodeKey",null),Y(ft(r),"listRef",l.createRef()),Y(ft(r),"onNodeDragStart",function(s,u){var d=r.state,m=d.expandedKeys,v=d.keyEntities,p=r.props.onDragStart,y=u.eventKey;r.dragNodeProps=u,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=Ma(m,y);r.setState({draggingNodeKey:y,dragChildrenKeys:Hee(y,v),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:s,node:yr(u)})}),Y(ft(r),"onNodeDragEnter",function(s,u){var d=r.state,m=d.expandedKeys,v=d.keyEntities,p=d.dragChildrenKeys,y=d.flattenNodes,h=d.indent,C=r.props,g=C.onDragEnter,S=C.onExpand,x=C.allowDrop,w=C.direction,R=u.pos,$=u.eventKey;if(r.currentMouseOverDroppableNodeKey!==$&&(r.currentMouseOverDroppableNodeKey=$),!r.dragNodeProps){r.resetDragState();return}var O=J2(s,r.dragNodeProps,u,h,r.dragStartMousePosition,x,y,v,m,w),I=O.dropPosition,N=O.dropLevelOffset,P=O.dropTargetKey,T=O.dropContainerKey,k=O.dropTargetPos,H=O.dropAllowed,A=O.dragOverNodeKey;if(p.includes(P)||!H){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(_){clearTimeout(r.delayedDragEnterLogic[_])}),r.dragNodeProps.eventKey!==u.eventKey&&(s.persist(),r.delayedDragEnterLogic[R]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var _=_e(m),D=fo(v,u.eventKey);D&&(D.children||[]).length&&(_=qa(m,u.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(_),S==null||S(_,{node:yr(u),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===P&&N===0){r.resetDragState();return}r.setState({dragOverNodeKey:A,dropPosition:I,dropLevelOffset:N,dropTargetKey:P,dropContainerKey:T,dropTargetPos:k,dropAllowed:H}),g==null||g({event:s,node:yr(u),expandedKeys:m})}),Y(ft(r),"onNodeDragOver",function(s,u){var d=r.state,m=d.dragChildrenKeys,v=d.flattenNodes,p=d.keyEntities,y=d.expandedKeys,h=d.indent,C=r.props,g=C.onDragOver,S=C.allowDrop,x=C.direction;if(r.dragNodeProps){var w=J2(s,r.dragNodeProps,u,h,r.dragStartMousePosition,S,v,p,y,x),R=w.dropPosition,$=w.dropLevelOffset,O=w.dropTargetKey,I=w.dropContainerKey,N=w.dropTargetPos,P=w.dropAllowed,T=w.dragOverNodeKey;m.includes(O)||!P||(r.dragNodeProps.eventKey===O&&$===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():R===r.state.dropPosition&&$===r.state.dropLevelOffset&&O===r.state.dropTargetKey&&I===r.state.dropContainerKey&&N===r.state.dropTargetPos&&P===r.state.dropAllowed&&T===r.state.dragOverNodeKey||r.setState({dropPosition:R,dropLevelOffset:$,dropTargetKey:O,dropContainerKey:I,dropTargetPos:N,dropAllowed:P,dragOverNodeKey:T}),g==null||g({event:s,node:yr(u)}))}}),Y(ft(r),"onNodeDragLeave",function(s,u){r.currentMouseOverDroppableNodeKey===u.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var d=r.props.onDragLeave;d==null||d({event:s,node:yr(u)})}),Y(ft(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),Y(ft(r),"onNodeDragEnd",function(s,u){var d=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),d==null||d({event:s,node:yr(u)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),Y(ft(r),"onNodeDrop",function(s,u){var d,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=r.state,p=v.dragChildrenKeys,y=v.dropPosition,h=v.dropTargetKey,C=v.dropTargetPos,g=v.dropAllowed;if(g){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var x=X(X({},Pu(h,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===h,data:fo(r.state.keyEntities,h).node}),w=p.includes(h);qn(!w,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var R=bS(C),$={event:s,node:yr(x),dragNode:r.dragNodeProps?yr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:y!==0,dropPosition:y+Number(R[R.length-1])};m||S==null||S($),r.dragNodeProps=null}}}),Y(ft(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),Y(ft(r),"triggerExpandActionExpand",function(s,u){var d=r.state,m=d.expandedKeys,v=d.flattenNodes,p=u.expanded,y=u.key,h=u.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var C=v.filter(function(S){return S.key===y})[0],g=yr(X(X({},Pu(y,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(p?Ma(m,y):qa(m,y)),r.onNodeExpand(s,g)}}),Y(ft(r),"onNodeClick",function(s,u){var d=r.props,m=d.onClick,v=d.expandAction;v==="click"&&r.triggerExpandActionExpand(s,u),m==null||m(s,u)}),Y(ft(r),"onNodeDoubleClick",function(s,u){var d=r.props,m=d.onDoubleClick,v=d.expandAction;v==="doubleClick"&&r.triggerExpandActionExpand(s,u),m==null||m(s,u)}),Y(ft(r),"onNodeSelect",function(s,u){var d=r.state.selectedKeys,m=r.state,v=m.keyEntities,p=m.fieldNames,y=r.props,h=y.onSelect,C=y.multiple,g=u.selected,S=u[p.key],x=!g;x?C?d=qa(d,S):d=[S]:d=Ma(d,S);var w=d.map(function(R){var $=fo(v,R);return $?$.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:d}),h==null||h(d,{event:"select",selected:x,node:u,selectedNodes:w,nativeEvent:s.nativeEvent})}),Y(ft(r),"onNodeCheck",function(s,u,d){var m=r.state,v=m.keyEntities,p=m.checkedKeys,y=m.halfCheckedKeys,h=r.props,C=h.checkStrictly,g=h.onCheck,S=u.key,x,w={event:"check",node:u,checked:d,nativeEvent:s.nativeEvent};if(C){var R=d?qa(p,S):Ma(p,S),$=Ma(y,S);x={checked:R,halfChecked:$},w.checkedNodes=R.map(function(k){return fo(v,k)}).filter(Boolean).map(function(k){return k.node}),r.setUncontrolledState({checkedKeys:R})}else{var O=Ns([].concat(_e(p),[S]),!0,v),I=O.checkedKeys,N=O.halfCheckedKeys;if(!d){var P=new Set(I);P.delete(S);var T=Ns(Array.from(P),{halfCheckedKeys:N},v);I=T.checkedKeys,N=T.halfCheckedKeys}x=I,w.checkedNodes=[],w.checkedNodesPositions=[],w.halfCheckedKeys=N,I.forEach(function(k){var H=fo(v,k);if(H){var A=H.node,_=H.pos;w.checkedNodes.push(A),w.checkedNodesPositions.push({node:A,pos:_})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:N})}g==null||g(x,w)}),Y(ft(r),"onNodeLoad",function(s){var u,d=s.key,m=r.state.keyEntities,v=fo(m,d);if(!(v!=null&&(u=v.children)!==null&&u!==void 0&&u.length)){var p=new Promise(function(y,h){r.setState(function(C){var g=C.loadedKeys,S=g===void 0?[]:g,x=C.loadingKeys,w=x===void 0?[]:x,R=r.props,$=R.loadData,O=R.onLoad;if(!$||S.includes(d)||w.includes(d))return null;var I=$(s);return I.then(function(){var N=r.state.loadedKeys,P=qa(N,d);O==null||O(P,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:P}),r.setState(function(T){return{loadingKeys:Ma(T.loadingKeys,d)}}),y()}).catch(function(N){if(r.setState(function(T){return{loadingKeys:Ma(T.loadingKeys,d)}}),r.loadingRetryTimes[d]=(r.loadingRetryTimes[d]||0)+1,r.loadingRetryTimes[d]>=ste){var P=r.state.loadedKeys;qn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:qa(P,d)}),y()}h(N)}),{loadingKeys:qa(w,d)}})});return p.catch(function(){}),p}}),Y(ft(r),"onNodeMouseEnter",function(s,u){var d=r.props.onMouseEnter;d==null||d({event:s,node:u})}),Y(ft(r),"onNodeMouseLeave",function(s,u){var d=r.props.onMouseLeave;d==null||d({event:s,node:u})}),Y(ft(r),"onNodeContextMenu",function(s,u){var d=r.props.onRightClick;d&&(s.preventDefault(),d({event:s,node:u}))}),Y(ft(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];s==null||s.apply(void 0,d)}),Y(ft(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];s==null||s.apply(void 0,d)}),Y(ft(r),"getTreeNodeRequiredProps",function(){var s=r.state,u=s.expandedKeys,d=s.selectedKeys,m=s.loadedKeys,v=s.loadingKeys,p=s.checkedKeys,y=s.halfCheckedKeys,h=s.dragOverNodeKey,C=s.dropPosition,g=s.keyEntities;return{expandedKeys:u||[],selectedKeys:d||[],loadedKeys:m||[],loadingKeys:v||[],checkedKeys:p||[],halfCheckedKeys:y||[],dragOverNodeKey:h,dropPosition:C,keyEntities:g}}),Y(ft(r),"setExpandedKeys",function(s){var u=r.state,d=u.treeData,m=u.fieldNames,v=i0(d,s,m);r.setUncontrolledState({expandedKeys:s,flattenNodes:v},!0)}),Y(ft(r),"onNodeExpand",function(s,u){var d=r.state.expandedKeys,m=r.state,v=m.listChanging,p=m.fieldNames,y=r.props,h=y.onExpand,C=y.loadData,g=u.expanded,S=u[p.key];if(!v){var x=d.includes(S),w=!g;if(qn(g&&x||!g&&!x,"Expand state not sync with index check"),d=w?qa(d,S):Ma(d,S),r.setExpandedKeys(d),h==null||h(d,{node:u,expanded:w,nativeEvent:s.nativeEvent}),w&&C){var R=r.onNodeLoad(u);R&&R.then(function(){var $=i0(r.state.treeData,d,p);r.setUncontrolledState({flattenNodes:$})}).catch(function(){var $=r.state.expandedKeys,O=Ma($,S);r.setExpandedKeys(O)})}}}),Y(ft(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),Y(ft(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),Y(ft(r),"onActiveChange",function(s){var u=r.state.activeKey,d=r.props,m=d.onActiveChange,v=d.itemScrollOffset,p=v===void 0?0:v;u!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:p}),m==null||m(s))}),Y(ft(r),"getActiveItem",function(){var s=r.state,u=s.activeKey,d=s.flattenNodes;return u===null?null:d.find(function(m){var v=m.key;return v===u})||null}),Y(ft(r),"offsetActiveKey",function(s){var u=r.state,d=u.flattenNodes,m=u.activeKey,v=d.findIndex(function(h){var C=h.key;return C===m});v===-1&&s<0&&(v=d.length),v=(v+s+d.length)%d.length;var p=d[v];if(p){var y=p.key;r.onActiveChange(y)}else r.onActiveChange(null)}),Y(ft(r),"onKeyDown",function(s){var u=r.state,d=u.activeKey,m=u.expandedKeys,v=u.checkedKeys,p=u.fieldNames,y=r.props,h=y.onKeyDown,C=y.checkable,g=y.selectable;switch(s.which){case Et.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Et.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var S=r.getActiveItem();if(S&&S.data){var x=r.getTreeNodeRequiredProps(),w=S.data.isLeaf===!1||!!(S.data[p.children]||[]).length,R=yr(X(X({},Pu(d,x)),{},{data:S.data,active:!0}));switch(s.which){case Et.LEFT:{w&&m.includes(d)?r.onNodeExpand({},R):S.parent&&r.onActiveChange(S.parent.key),s.preventDefault();break}case Et.RIGHT:{w&&!m.includes(d)?r.onNodeExpand({},R):S.children&&S.children.length&&r.onActiveChange(S.children[0].key),s.preventDefault();break}case Et.ENTER:case Et.SPACE:{C&&!R.disabled&&R.checkable!==!1&&!R.disableCheckbox?r.onNodeCheck({},R,!v.includes(d)):!C&&g&&!R.disabled&&R.selectable!==!1&&r.onNodeSelect({},R);break}}}h==null||h(s)}),Y(ft(r),"setUncontrolledState",function(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var m=!1,v=!0,p={};Object.keys(s).forEach(function(y){if(r.props.hasOwnProperty(y)){v=!1;return}m=!0,p[y]=s[y]}),m&&(!u||v)&&r.setState(X(X({},p),d))}}),Y(ft(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return or(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,s=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,s=o.keyEntities,u=o.draggingNodeKey,d=o.activeKey,m=o.dropLevelOffset,v=o.dropContainerKey,p=o.dropTargetKey,y=o.dropPosition,h=o.dragOverNodeKey,C=o.indent,g=this.props,S=g.prefixCls,x=g.className,w=g.style,R=g.showLine,$=g.focusable,O=g.tabIndex,I=O===void 0?0:O,N=g.selectable,P=g.showIcon,T=g.icon,k=g.switcherIcon,H=g.draggable,A=g.checkable,_=g.checkStrictly,D=g.disabled,j=g.motion,z=g.loadData,F=g.filterTreeNode,W=g.height,K=g.itemHeight,B=g.scrollWidth,V=g.virtual,U=g.titleRender,q=g.dropIndicatorRender,G=g.onContextMenu,Z=g.onScroll,ee=g.direction,J=g.rootClassName,oe=g.rootStyle,ae=wr(this.props,{aria:!0,data:!0}),te;H&&(ht(H)==="object"?te=H:typeof H=="function"?te={nodeDraggable:H}:te={});var ne={prefixCls:S,selectable:N,showIcon:P,icon:T,switcherIcon:k,draggable:te,draggingNodeKey:u,checkable:A,checkStrictly:_,disabled:D,keyEntities:s,dropLevelOffset:m,dropContainerKey:v,dropTargetKey:p,dropPosition:y,dragOverNodeKey:h,indent:C,direction:ee,dropIndicatorRender:q,loadData:z,filterTreeNode:F,titleRender:U,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 l.createElement(yS.Provider,{value:ne},l.createElement("div",{className:re(S,x,J,Y(Y(Y({},"".concat(S,"-show-line"),R),"".concat(S,"-focused"),a),"".concat(S,"-active-focused"),d!==null)),style:oe},l.createElement(lte,Me({ref:this.listRef,prefixCls:S,style:w,data:i,disabled:D,selectable:N,checkable:!!A,motion:j,dragging:u!==null,height:W,itemHeight:K,virtual:V,focusable:$,focused:a,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:Z,scrollWidth:B},this.getTreeNodeRequiredProps(),ae))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s={prevProps:o};function u(I){return!i&&o.hasOwnProperty(I)||i&&i[I]!==o[I]}var d,m=a.fieldNames;if(u("fieldNames")&&(m=Hs(o.fieldNames),s.fieldNames=m),u("treeData")?d=o.treeData:u("children")&&(qn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=sT(o.children)),d){s.treeData=d;var v=oS(d,{fieldNames:m});s.keyEntities=X(Y({},Pl,R_),v.keyEntities)}var p=s.keyEntities||a.keyEntities;if(u("expandedKeys")||i&&u("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?xb(o.expandedKeys,p):o.expandedKeys;else if(!i&&o.defaultExpandAll){var y=X({},p);delete y[Pl];var h=[];Object.keys(y).forEach(function(I){var N=y[I];N.children&&N.children.length&&h.push(N.key)}),s.expandedKeys=h}else!i&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?xb(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,d||s.expandedKeys){var C=i0(d||a.treeData,s.expandedKeys||a.expandedKeys,m);s.flattenNodes=C}if(o.selectable&&(u("selectedKeys")?s.selectedKeys=eO(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(s.selectedKeys=eO(o.defaultSelectedKeys,o))),o.checkable){var g;if(u("checkedKeys")?g=g0(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?g=g0(o.defaultCheckedKeys)||{}:d&&(g=g0(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),g){var S=g,x=S.checkedKeys,w=x===void 0?[]:x,R=S.halfCheckedKeys,$=R===void 0?[]:R;if(!o.checkStrictly){var O=Ns(w,!0,p);w=O.checkedKeys,$=O.halfCheckedKeys}s.checkedKeys=w,s.halfCheckedKeys=$}}return u("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(l.Component);Y(CS,"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:Jee,allowDrop:function(){return!0},expandAction:!1});Y(CS,"TreeNode",Ju);const cte=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:n}}}}}),ute=new xn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),dte=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),fte=(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:`${le(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),mte=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,indentSize:i,nodeSelectedBg:s,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:m}=t;return{[n]:Object.assign(Object.assign({},kn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},ki(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:ute,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:le(a),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"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:m},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:d},[`&${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(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},dte(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,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(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},fte(e,t)),{"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,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(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${le(t.calc(a).div(2).equal())} !important`}})}},vte=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=nn(t,{treeCls:r,treeNodeCls:o,treeNodePadding:a});return[mte(e,i),n&&cte(i)].filter(Boolean)},pte=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},gte=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},pte(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},hte=In("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:uT(`${t}-checkbox`,e)},vte(t,e),Nv(e)],gte),lO=4;function yte(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",u={[i]:-n*o+lO,[s]:0};switch(t){case-1:u.top=-3;break;case 1:u.bottom=-3;break;default:u.bottom=-3,u[i]=o+lO;break}return pe.createElement("div",{style:u,className:`${r}-drop-indicator`})}const bte=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:a}=e,{isLeaf:i,expanded:s,loading:u}=r;if(u)return l.isValidElement(a)?a:l.createElement($l,{className:`${t}-switcher-loading-icon`});let d;if(o&&typeof o=="object"&&(d=o.showLeafIcon),i){if(!o)return null;if(typeof d!="boolean"&&d){const p=typeof d=="function"?d(r):d,y=`${t}-switcher-line-custom-icon`;return l.isValidElement(p)?Fr(p,{className:re(p.props.className||"",y)}):p}return d?l.createElement(s_,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const m=`${t}-switcher-icon`,v=typeof n=="function"?n(r):n;return l.isValidElement(v)?Fr(v,{className:re(v.props.className||"",m)}):v!==void 0?v:o?s?l.createElement(SJ,{className:`${t}-switcher-line-icon`}):l.createElement(RJ,{className:`${t}-switcher-line-icon`}):l.createElement(eJ,{className:m})},I_=pe.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=pe.useContext(Dt),{prefixCls:s,className:u,showIcon:d=!1,showLine:m,switcherIcon:v,switcherLoadingIcon:p,blockNode:y=!1,children:h,checkable:C=!1,selectable:g=!0,draggable:S,motion:x,style:w}=e,R=r("tree",s),$=r(),O=x??Object.assign(Object.assign({},Ku($)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:C,selectable:g,showIcon:d,motion:O,blockNode:y,showLine:!!m,dropIndicatorRender:yte}),[N,P,T]=hte(R),[,k]=_r(),H=k.paddingXS/2+(((n=k.Tree)===null||n===void 0?void 0:n.titleHeight)||k.controlHeightSM),A=pe.useMemo(()=>{if(!S)return!1;let D={};switch(typeof S){case"function":D.nodeDraggable=S;break;case"object":D=Object.assign({},S);break}return D.icon!==!1&&(D.icon=D.icon||pe.createElement(bJ,null)),D},[S]),_=D=>pe.createElement(bte,{prefixCls:R,switcherIcon:v,switcherLoadingIcon:p,treeNodeProps:D,showLine:m});return N(pe.createElement(CS,Object.assign({itemHeight:H,ref:t,virtual:a},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),w),prefixCls:R,className:re({[`${R}-icon-hide`]:!d,[`${R}-block-node`]:y,[`${R}-unselectable`]:!g,[`${R}-rtl`]:o==="rtl"},i==null?void 0:i.className,u,P,T),direction:o,checkable:C&&pe.createElement("span",{className:`${R}-checkbox-inner`}),selectable:g,switcherIcon:_,draggable:A}),h))}),sO=0,h0=1,cO=2;function SS(e,t,n){const{key:r,children:o}=n;function a(i){const s=i[r],u=i[o];t(s,i)!==!1&&SS(u||[],t,n)}e.forEach(a)}function Cte({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const a=[];let i=sO;if(n&&n===r)return[n];if(!n||!r)return[];function s(u){return u===n||u===r}return SS(e,u=>{if(i===cO)return!1;if(s(u)){if(a.push(u),i===sO)i=h0;else if(i===h0)return i=cO,!1}else i===h0&&a.push(u);return t.includes(u)},Hs(o)),a}function y0(e,t,n){const r=_e(t),o=[];return SS(e,(a,i)=>{const s=r.indexOf(a);return s!==-1&&(o.push(i),r.splice(s,1)),!!r.length},Hs(n)),o}var uO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ste(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(s_,null):n?l.createElement(pJ,null):l.createElement(hJ,null)}function dO({treeData:e,children:t}){return e||sT(t)}const xte=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=uO(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(null),s=l.useRef(null),u=()=>{const{keyEntities:N}=oS(dO(a));let P;return n?P=Object.keys(N):r?P=xb(a.expandedKeys||o||[],N):P=a.expandedKeys||o||[],P},[d,m]=l.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[v,p]=l.useState(()=>u());l.useEffect(()=>{"selectedKeys"in a&&m(a.selectedKeys)},[a.selectedKeys]),l.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const y=(N,P)=>{var T;return"expandedKeys"in a||p(N),(T=a.onExpand)===null||T===void 0?void 0:T.call(a,N,P)},h=(N,P)=>{var T;const{multiple:k,fieldNames:H}=a,{node:A,nativeEvent:_}=P,{key:D=""}=A,j=dO(a),z=Object.assign(Object.assign({},P),{selected:!0}),F=(_==null?void 0:_.ctrlKey)||(_==null?void 0:_.metaKey),W=_==null?void 0:_.shiftKey;let K;k&&F?(K=N,i.current=D,s.current=K,z.selectedNodes=y0(j,K,H)):k&&W?(K=Array.from(new Set([].concat(_e(s.current||[]),_e(Cte({treeData:j,expandedKeys:v,startKey:D,endKey:i.current,fieldNames:H}))))),z.selectedNodes=y0(j,K,H)):(K=[D],i.current=D,s.current=K,z.selectedNodes=y0(j,K,H)),(T=a.onSelect)===null||T===void 0||T.call(a,K,z),"selectedKeys"in a||m(K)},{getPrefixCls:C,direction:g}=l.useContext(Dt),{prefixCls:S,className:x,showIcon:w=!0,expandAction:R="click"}=a,$=uO(a,["prefixCls","className","showIcon","expandAction"]),O=C("tree",S),I=re(`${O}-directory`,{[`${O}-directory-rtl`]:g==="rtl"},x);return l.createElement(I_,Object.assign({icon:Ste,ref:t,blockNode:!0},$,{showIcon:w,expandAction:R,prefixCls:O,className:I,expandedKeys:v,selectedKeys:d,onSelect:h,onExpand:y}))},wte=l.forwardRef(xte),xS=I_;xS.DirectoryTree=wte;xS.TreeNode=Ju;const fO=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Sd,{prefix:l.createElement(zC,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},$te=e=>{const{keyCode:t}=e;t===Et.ENTER&&e.stopPropagation()},Ete=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:$te,ref:t},e.children));function Ms(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(_e(t),_e(Ms(r))))}),t}function Ote(e){return e.some(({children:t})=>t)}function P_(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function N_({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a}){return e.map((i,s)=>{const u=String(i.value);if(i.children)return{key:u||s,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:N_({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a})};const d=r?Vs:bd,m={key:i.value!==void 0?u:s,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:n.includes(u)}),l.createElement("span",null,i.text))};return o.trim()?typeof a=="function"?a(o,i)?m:null:P_(o,i.text)?m:null:m})}function b0(e){return e||[]}const Rte=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:i,column:s,dropdownPrefixCls:u,columnKey:d,filterOnClose:m,filterMultiple:v,filterMode:p="menu",filterSearch:y=!1,filterState:h,triggerFilter:C,locale:g,children:S,getPopupContainer:x,rootClassName:w}=e,{filterResetToDefaultFilteredValue:R,defaultFilteredValue:$,filterDropdownProps:O={},filterDropdownOpen:I,filterDropdownVisible:N,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:T}=s,[k,H]=l.useState(!1),A=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),_=Ce=>{var xe;H(Ce),(xe=O.onOpenChange)===null||xe===void 0||xe.call(O,Ce),T==null||T(Ce),P==null||P(Ce)},D=(o=(r=(n=O.open)!==null&&n!==void 0?n:I)!==null&&r!==void 0?r:N)!==null&&o!==void 0?o:k,j=h==null?void 0:h.filteredKeys,[z,F]=Zee(b0(j)),W=({selectedKeys:Ce})=>{F(Ce)},K=(Ce,{node:xe,checked:Ne})=>{W(v?{selectedKeys:Ce}:{selectedKeys:Ne&&xe.key?[xe.key]:[]})};l.useEffect(()=>{k&&W({selectedKeys:b0(j)})},[j]);const[B,V]=l.useState([]),U=Ce=>{V(Ce)},[q,G]=l.useState(""),Z=Ce=>{const{value:xe}=Ce.target;G(xe)};l.useEffect(()=>{k||G("")},[k]);const ee=Ce=>{const xe=Ce!=null&&Ce.length?Ce:null;if(xe===null&&(!h||!h.filteredKeys)||ya(xe,h==null?void 0:h.filteredKeys,!0))return null;C({column:s,key:d,filteredKeys:xe})},J=()=>{_(!1),ee(z())},oe=({confirm:Ce,closeDropdown:xe}={confirm:!1,closeDropdown:!1})=>{Ce&&ee([]),xe&&_(!1),G(""),F(R?($||[]).map(Ne=>String(Ne)):[])},ae=({closeDropdown:Ce}={closeDropdown:!0})=>{Ce&&_(!1),ee(z())},te=(Ce,xe)=>{xe.source==="trigger"&&(Ce&&j!==void 0&&F(b0(j)),_(Ce),!Ce&&!s.filterDropdown&&m&&J())},ne=re({[`${u}-menu-without-submenu`]:!Ote(s.filters||[])}),ie=Ce=>{if(Ce.target.checked){const xe=Ms(s==null?void 0:s.filters).map(Ne=>String(Ne));F(xe)}else F([])},de=({filters:Ce})=>(Ce||[]).map((xe,Ne)=>{const Ee=String(xe.value),Be={title:xe.text,key:xe.value!==void 0?Ee:String(Ne)};return xe.children&&(Be.children=de({filters:xe.children})),Be}),ve=Ce=>{var xe;return Object.assign(Object.assign({},Ce),{text:Ce.title,value:Ce.key,children:((xe=Ce.children)===null||xe===void 0?void 0:xe.map(Ne=>ve(Ne)))||[]})};let se;const{direction:he,renderEmpty:Se}=l.useContext(Dt);if(typeof s.filterDropdown=="function")se=s.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:Ce=>W({selectedKeys:Ce}),selectedKeys:z(),confirm:ae,clearFilters:oe,filters:s.filters,visible:D,close:()=>{_(!1)}});else if(s.filterDropdown)se=s.filterDropdown;else{const Ce=z()||[],xe=()=>{var Ee,Be;const Ve=(Ee=Se==null?void 0:Se("Table.filter"))!==null&&Ee!==void 0?Ee:l.createElement(Ga,{image:Ga.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Ve;if(p==="tree")return l.createElement(l.Fragment,null,l.createElement(fO,{filterSearch:y,value:q,onChange:Z,tablePrefixCls:a,locale:g}),l.createElement("div",{className:`${a}-filter-dropdown-tree`},v?l.createElement(Vs,{checked:Ce.length===Ms(s.filters).length,indeterminate:Ce.length>0&&Ce.length<Ms(s.filters).length,className:`${a}-filter-dropdown-checkall`,onChange:ie},(Be=g==null?void 0:g.filterCheckall)!==null&&Be!==void 0?Be:g==null?void 0:g.filterCheckAll):null,l.createElement(xS,{checkable:!0,selectable:!1,blockNode:!0,multiple:v,checkStrictly:!v,className:`${u}-menu`,onCheck:K,checkedKeys:Ce,selectedKeys:Ce,showIcon:!1,treeData:de({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:q.trim()?We=>typeof y=="function"?y(q,ve(We)):P_(q,We.title):void 0})));const tt=N_({filters:s.filters||[],filterSearch:y,prefixCls:i,filteredKeys:z(),filterMultiple:v,searchValue:q}),nt=tt.every(We=>We===null);return l.createElement(l.Fragment,null,l.createElement(fO,{filterSearch:y,value:q,onChange:Z,tablePrefixCls:a,locale:g}),nt?Ve:l.createElement(kl,{selectable:!0,multiple:v,prefixCls:`${u}-menu`,className:ne,onSelect:W,onDeselect:W,selectedKeys:Ce,getPopupContainer:x,openKeys:B,onOpenChange:U,items:tt}))},Ne=()=>R?ya(($||[]).map(Ee=>String(Ee)),Ce,!0):Ce.length===0;se=l.createElement(l.Fragment,null,xe(),l.createElement("div",{className:`${i}-dropdown-btns`},l.createElement(Sn,{type:"link",size:"small",disabled:Ne(),onClick:()=>oe()},g.filterReset),l.createElement(Sn,{type:"primary",size:"small",onClick:J},g.filterConfirm)))}s.filterDropdown&&(se=l.createElement(mM,{selectable:void 0},se)),se=l.createElement(Ete,{className:`${i}-dropdown`},se);const Te=Yu({trigger:["click"],placement:he==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Ce;return typeof s.filterIcon=="function"?Ce=s.filterIcon(A):s.filterIcon?Ce=s.filterIcon:Ce=l.createElement(mJ,null),l.createElement("span",{role:"button",tabIndex:-1,className:re(`${i}-trigger`,{active:A}),onClick:xe=>{xe.stopPropagation()}},Ce)})(),getPopupContainer:x},Object.assign(Object.assign({},O),{rootClassName:re(w,O.rootClassName),open:D,onOpenChange:te,popupRender:()=>typeof(O==null?void 0:O.dropdownRender)=="function"?O.dropdownRender(se):se}));return l.createElement("div",{className:`${i}-column`},l.createElement("span",{className:`${a}-column-title`},S),l.createElement(cp,Object.assign({},Te)))},Rb=(e,t,n)=>{let r=[];return(e||[]).forEach((o,a)=>{var i;const s=fc(a,n),u=o.filterDropdown!==void 0;if(o.filters||u||"onFilter"in o)if("filteredValue"in o){let d=o.filteredValue;u||(d=(i=d==null?void 0:d.map(String))!==null&&i!==void 0?i:d),r.push({column:o,key:Hi(o,s),filteredKeys:d,forceFiltered:o.filtered})}else r.push({column:o,key:Hi(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(_e(r),_e(Rb(o.children,t,s))))}),r};function M_(e,t,n,r,o,a,i,s,u){return n.map((d,m)=>{const v=fc(m,s),{filterOnClose:p=!0,filterMultiple:y=!0,filterMode:h,filterSearch:C}=d;let g=d;if(g.filters||g.filterDropdown){const S=Hi(g,v),x=r.find(({key:w})=>S===w);g=Object.assign(Object.assign({},g),{title:w=>l.createElement(Rte,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:S,filterState:x,filterOnClose:p,filterMultiple:y,filterMode:h,filterSearch:C,triggerFilter:a,locale:o,getPopupContainer:i,rootClassName:u},hp(d.title,w))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:M_(e,t,g.children,r,o,a,i,v,u)})),g})}const mO=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const a=n,{filters:i,filterDropdown:s}=o;if(s)t[a]=r||null;else if(Array.isArray(r)){const u=Ms(i);t[a]=u.filter(d=>r.includes(String(d)))}else t[a]=null}),t},Ib=(e,t,n)=>t.reduce((o,a)=>{const{column:{onFilter:i,filters:s},filteredKeys:u}=a;return i&&u&&u.length?o.map(d=>Object.assign({},d)).filter(d=>u.some(m=>{const v=Ms(s),p=v.findIndex(h=>String(h)===String(m)),y=p!==-1?v[p]:m;return d[n]&&(d[n]=Ib(d[n],t,n)),i(y,d)})):o},e),T_=e=>e.flatMap(t=>"children"in t?[t].concat(_e(T_(t.children||[]))):[t]),Ite=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:s}=e;Ui();const u=l.useMemo(()=>T_(r||[]),[r]),[d,m]=l.useState(()=>Rb(u,!0)),v=l.useMemo(()=>{const C=Rb(u,!1);if(C.length===0)return C;let g=!0;if(C.forEach(({filteredKeys:S})=>{S!==void 0&&(g=!1)}),g){const S=(u||[]).map((x,w)=>Hi(x,fc(w)));return d.filter(({key:x})=>S.includes(x)).map(x=>{const w=u[S.findIndex(R=>R===x.key)];return Object.assign(Object.assign({},x),{column:Object.assign(Object.assign({},x.column),w),forceFiltered:w.filtered})})}return C},[u,d]),p=l.useMemo(()=>mO(v),[v]),y=C=>{const g=v.filter(({key:S})=>S!==C.key);g.push(C),m(g),o(mO(g),g)};return[C=>M_(t,n,C,v,i,y,a,void 0,s),v,p]},Pte=(e,t,n)=>{const r=l.useRef({});function o(a){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let d=function(m){m.forEach((v,p)=>{const y=n(v,p);u.set(y,v),v&&typeof v=="object"&&t in v&&d(v[t]||[])})};var s=d;const u=new Map;d(e),r.current={data:e,childrenColumnName:t,kvMap:u,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(a)}return[o]};var Nte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const __=10;function Mte(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function Tte(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=Nte(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:__})),u=Yu(i,a,{total:o>0?o:e}),d=Math.ceil((o||e)/u.pageSize);u.current>d&&(u.current=d||1);const m=(p,y)=>{s({current:p??1,pageSize:y||u.pageSize})},v=(p,y)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,p,y)),m(p,y),t(p,y||(u==null?void 0:u.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},u),{onChange:v}),m]}const wm="ascend",C0="descend",nv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,vO=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,_te=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Pb=(e,t,n)=>{let r=[];const o=(a,i)=>{r.push({column:a,key:Hi(a,i),multiplePriority:nv(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,i)=>{const s=fc(i,n);a.children?("sortOrder"in a&&o(a,s),r=[].concat(_e(r),_e(Pb(a.children,t,s)))):a.sorter&&("sortOrder"in a?o(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Hi(a,s),multiplePriority:nv(a),sortOrder:a.defaultSortOrder}))}),r},D_=(e,t,n,r,o,a,i,s)=>(t||[]).map((d,m)=>{const v=fc(m,s);let p=d;if(p.sorter){const y=p.sortDirections||o,h=p.showSorterTooltip===void 0?i:p.showSorterTooltip,C=Hi(p,v),g=n.find(({key:P})=>P===C),S=g?g.sortOrder:null,x=_te(y,S);let w;if(d.sortIcon)w=d.sortIcon({sortOrder:S});else{const P=y.includes(wm)&&l.createElement(oJ,{className:re(`${e}-column-sorter-up`,{active:S===wm})}),T=y.includes(C0)&&l.createElement(nJ,{className:re(`${e}-column-sorter-down`,{active:S===C0})});w=l.createElement("span",{className:re(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(P&&T)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},P,T))}const{cancelSort:R,triggerAsc:$,triggerDesc:O}=a||{};let I=R;x===C0?I=O:x===wm&&(I=$);const N=typeof h=="object"?Object.assign({title:I},h):{title:I};p=Object.assign(Object.assign({},p),{className:re(p.className,{[`${e}-column-sort`]:S}),title:P=>{const T=`${e}-column-sorters`,k=l.createElement("span",{className:`${e}-column-title`},hp(d.title,P)),H=l.createElement("div",{className:T},k,w);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?l.createElement("div",{className:`${T} ${e}-column-sorters-tooltip-target-sorter`},k,l.createElement(Ai,Object.assign({},N),w)):l.createElement(Ai,Object.assign({},N),H):H},onHeaderCell:P=>{var T;const k=((T=d.onHeaderCell)===null||T===void 0?void 0:T.call(d,P))||{},H=k.onClick,A=k.onKeyDown;k.onClick=j=>{r({column:d,key:C,sortOrder:x,multiplePriority:nv(d)}),H==null||H(j)},k.onKeyDown=j=>{j.keyCode===Et.ENTER&&(r({column:d,key:C,sortOrder:x,multiplePriority:nv(d)}),A==null||A(j))};const _=Qee(d.title,{}),D=_==null?void 0:_.toString();return S&&(k["aria-sort"]=S==="ascend"?"ascending":"descending"),k["aria-label"]=D||"",k.className=re(k.className,`${e}-column-has-sorters`),k.tabIndex=0,d.ellipsis&&(k.title=(_??"").toString()),k}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:D_(e,p.children,n,r,o,a,i,v)})),p}),pO=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},gO=e=>{const t=e.filter(({sortOrder:n})=>n).map(pO);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},pO(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Nb=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(({column:{sorter:i},sortOrder:s})=>vO(i)&&s);return a.length?o.sort((i,s)=>{for(let u=0;u<a.length;u+=1){const d=a[u],{column:{sorter:m},sortOrder:v}=d,p=vO(m);if(p&&v){const y=p(i,s,v);if(y!==0)return v===wm?y:-y}}return 0}).map(i=>{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:Nb(s,t,n)}):i}):o},Dte=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:i}=e,[s,u]=l.useState(()=>Pb(n,!0)),d=(C,g)=>{const S=[];return C.forEach((x,w)=>{const R=fc(w,g);if(S.push(Hi(x,R)),Array.isArray(x.children)){const $=d(x.children,R);S.push.apply(S,_e($))}}),S},m=l.useMemo(()=>{let C=!0;const g=Pb(n,!1);if(!g.length){const R=d(n);return s.filter(({key:$})=>R.includes($))}const S=[];function x(R){C?S.push(R):S.push(Object.assign(Object.assign({},R),{sortOrder:null}))}let w=null;return g.forEach(R=>{w===null?(x(R),R.sortOrder&&(R.multiplePriority===!1?C=!1:w=!0)):(w&&R.multiplePriority!==!1||(C=!1),x(R))}),S},[n,s]),v=l.useMemo(()=>{var C,g;const S=m.map(({column:x,sortOrder:w})=>({column:x,order:w}));return{sortColumns:S,sortColumn:(C=S[0])===null||C===void 0?void 0:C.column,sortOrder:(g=S[0])===null||g===void 0?void 0:g.order}},[m]),p=C=>{let g;C.multiplePriority===!1||!m.length||m[0].multiplePriority===!1?g=[C]:g=[].concat(_e(m.filter(({key:S})=>S!==C.key)),[C]),u(g),i(gO(g),g)};return[C=>D_(t,C,m,p,r,o,a),m,v,()=>gO(m)]},j_=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=hp(r.title,t),"children"in o&&(o.children=j_(o.children,t)),o}),jte=e=>[l.useCallback(n=>j_(n,e),[e])],kte=x_((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zte=$_((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Lte=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:u}=e,d=`${le(n)} ${r} ${o}`,m=(v,p,y)=>({[`&${t}-${v}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${le(u(p).mul(-1).equal())}
${le(u(u(y).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${le(u(i).mul(-1).equal())} ${le(u(u(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},m("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),m("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${le(n)} 0 ${le(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},Fte=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Da),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ate=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Bte=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:u,tableExpandColumnWidth:d,borderRadius:m,tablePaddingVertical:v,tablePaddingHorizontal:p,tableExpandedRowBg:y,paddingXXS:h,expandIconMarginTop:C,expandIconSize:g,expandIconHalfInner:S,expandIconScale:x,calc:w}=e,R=`${le(o)} ${i} ${s}`,$=w(h).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`]:Object.assign(Object.assign({},yF(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:le(g),background:u,border:R,borderRadius:m,transform:`scale(${x})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:$,insetInlineStart:$,height:o},"&::after":{top:$,bottom:$,insetInlineStart:S,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:C,marginInlineEnd:a},[`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:`${le(w(v).mul(-1).equal())} ${le(w(p).mul(-1).equal())}`,padding:`${le(v)} ${le(p)}`}}}},Hte=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:s,colorText:u,lineWidth:d,lineType:m,tableBorderColor:v,headerIconColor:p,fontSizeSM:y,tablePaddingHorizontal:h,borderRadius:C,motionDurationSlow:g,colorIcon:S,colorPrimary:x,tableHeaderFilterActiveBg:w,colorTextDisabled:R,tableFilterDropdownBg:$,tableFilterDropdownHeight:O,controlItemBgHover:I,controlItemBgActive:N,boxShadowSecondary:P,filterDropdownMenuBg:T,calc:k}=e,H=`${n}-dropdown`,A=`${t}-filter-dropdown`,_=`${n}-tree`,D=`${le(d)} ${m} ${v}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:k(i).mul(-1).equal(),marginInline:`${le(i)} ${le(k(h).div(2).mul(-1).equal())}`,padding:`0 ${le(i)}`,color:p,fontSize:y,borderRadius:C,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:S,background:w},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[A]:Object.assign(Object.assign({},kn(e)),{minWidth:o,backgroundColor:$,borderRadius:C,boxShadow:P,overflow:"hidden",[`${H}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${le(s)} 0`,color:R,fontSize:y,textAlign:"center",content:'"Not Found"'}},[`${A}-tree`]:{paddingBlock:`${le(s)} 0`,paddingInline:s,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:I},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:N}}},[`${A}-search`]:{padding:s,borderBottom:D,"&-input":{input:{minWidth:a},[r]:{color:R}}},[`${A}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${A}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${le(k(s).sub(d).equal())} ${le(s)}`,overflow:"hidden",borderTop:D}})}},{[`${n}-dropdown ${A}, ${A}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:u},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Vte=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:s,calc:u}=e,d=r;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:a,background:i},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:u(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:u(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:u(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${d}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${d}`}},[`${t}-fixed-column-gapped`]:{[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after,
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},Wte=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${le(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Kte=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${le(n)} ${le(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${le(n)} ${le(n)}`}}}}},Ute=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},qte=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:s,headerIconHoverColor:u,tableSelectionColumnWidth:d,tableSelectedRowBg:m,tableSelectedRowHoverBg:v,tableRowHoverBg:p,tablePaddingHorizontal:y,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:h(d).add(o).add(h(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(d).add(h(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(d).add(o).add(h(a).div(4)).add(h(i).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:le(h(y).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:u}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:m,"&-row-hover":{background:v}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},Yte=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,i,s,u)=>({[`${t}${t}-${a}`]:{fontSize:u,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${le(i)} ${le(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:le(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${le(r(i).mul(-1).equal())} ${le(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:le(r(i).mul(-1).equal()),marginInline:`${le(r(n).sub(s).equal())} ${le(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:le(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Gte=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=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},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{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:a}}}},Xte=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:u,lineWidth:d,lineType:m,tableBorderColor:v}=e,p=`${le(d)} ${m} ${v}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${le(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:u,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},hO=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${le(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${le(o(n).mul(-1).equal())} 0 ${r}`}}}},Qte=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,s=`${le(r)} ${o} ${a}`,u=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${u}${u}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${le(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Zte=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:s,tableBorderColor:u,tableFontSize:d,tableBg:m,tableRadius:v,tableHeaderTextColor:p,motionDurationMid:y,tableHeaderBg:h,tableHeaderCellSplitColor:C,tableFooterTextColor:g,tableFooterBg:S,calc:x}=e,w=`${le(i)} ${s} ${u}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},wl()),{[t]:Object.assign(Object.assign({},kn(e)),{fontSize:d,background:m,borderRadius:`${le(v)} ${le(v)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${le(v)} ${le(v)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${le(r)} ${le(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${le(r)} ${le(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:w,transition:`background ${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:C,transform:"translateY(-50%)",transition:`background-color ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${y}, border-color ${y}`,borderBottom:w,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:le(x(r).mul(-1).equal()),marginInline:`${le(x(a).sub(o).equal())}
${le(x(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:w,transition:`background ${y} ease`}}},[`${t}-footer`]:{padding:`${le(r)} ${le(o)}`,color:g,background:S}})}},Jte=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:s,padding:u,paddingSM:d,paddingXS:m,colorBorderSecondary:v,borderRadiusLG:p,controlHeight:y,colorTextPlaceholder:h,fontSize:C,fontSizeSM:g,lineHeight:S,lineWidth:x,colorIcon:w,colorIconHover:R,opacityLoading:$,controlInteractiveSize:O}=e,I=new tn(o).onBackground(n).toHexString(),N=new tn(a).onBackground(n).toHexString(),P=new tn(t).onBackground(n).toHexString(),T=new tn(w),k=new tn(R),H=O/2-x,A=H*2+x*3;return{headerBg:P,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:N,bodySortBg:P,rowHoverBg:P,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:u,cellPaddingInline:u,cellPaddingBlockMD:d,cellPaddingInlineMD:m,cellPaddingBlockSM:m,cellPaddingInlineSM:m,borderColor:v,headerBorderRadius:p,footerBg:P,footerColor:r,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:v,fixedHeaderSortActiveBg:I,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:y,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*S-x*3)/2-Math.ceil((g*1.4-x*3)/2),headerIconColor:T.clone().setA(T.a*$).toRgbString(),headerIconHoverColor:k.clone().setA(k.a*$).toRgbString(),expandIconHalfInner:H,expandIconSize:A,expandIconScale:O/A}},yO=2,ene=In("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:u,bodySortBg:d,rowHoverBg:m,rowSelectedBg:v,rowSelectedHoverBg:p,rowExpandedBg:y,cellPaddingBlock:h,cellPaddingInline:C,cellPaddingBlockMD:g,cellPaddingInlineMD:S,cellPaddingBlockSM:x,cellPaddingInlineSM:w,borderColor:R,footerBg:$,footerColor:O,headerBorderRadius:I,cellFontSize:N,cellFontSizeMD:P,cellFontSizeSM:T,headerSplitColor:k,fixedHeaderSortActiveBg:H,headerFilterHoverBg:A,filterDropdownBg:_,expandIconBg:D,selectionColumnWidth:j,stickyScrollBarBg:z,calc:F}=e,W=nn(e,{tableFontSize:N,tableBg:r,tableRadius:I,tablePaddingVertical:h,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:x,tablePaddingHorizontalSmall:w,tableBorderColor:R,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:O,tableFooterBg:$,tableHeaderCellSplitColor:k,tableHeaderSortBg:s,tableHeaderSortHoverBg:u,tableBodySortBg:d,tableFixedHeaderSortActiveBg:H,tableHeaderFilterActiveBg:A,tableFilterDropdownBg:_,tableRowHoverBg:m,tableSelectedRowBg:v,tableSelectedRowHoverBg:p,zIndexTableFixed:yO,zIndexTableSticky:F(yO).add(1).equal({unit:!1}),tableFontSizeMiddle:P,tableFontSizeSmall:T,tableSelectionColumnWidth:j,tableExpandIconBg:D,tableExpandColumnWidth:F(o).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:t,tableScrollBg:n});return[Zte(W),Wte(W),hO(W),Gte(W),Hte(W),Lte(W),Kte(W),Bte(W),hO(W),Ate(W),qte(W),Vte(W),Xte(W),Fte(W),Yte(W),Ute(W),Qte(W)]},Jte,{unitless:{expandIconScale:!0}}),tne=[],nne=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:i,style:s,size:u,bordered:d,dropdownPrefixCls:m,dataSource:v,pagination:p,rowSelection:y,rowKey:h="key",rowClassName:C,columns:g,children:S,childrenColumnName:x,onChange:w,getPopupContainer:R,loading:$,expandIcon:O,expandable:I,expandedRowRender:N,expandIconColumnIndex:P,indentSize:T,scroll:k,sortDirections:H,locale:A,showSorterTooltip:_={target:"full-header"},virtual:D}=e;Ui();const j=l.useMemo(()=>g||gS(S),[g,S]),z=l.useMemo(()=>j.some(Je=>Je.responsive),[j]),F=gd(z),W=l.useMemo(()=>{const Je=new Set(Object.keys(F).filter(Ge=>F[Ge]));return j.filter(Ge=>!Ge.responsive||Ge.responsive.some(rt=>Je.has(rt)))},[j,F]),K=Hn(e,["className","style","columns"]),{locale:B=ea,direction:V,table:U,renderEmpty:q,getPrefixCls:G,getPopupContainer:Z}=l.useContext(Dt),ee=Xr(u),J=Object.assign(Object.assign({},B.Table),A),oe=v||tne,ae=G("table",o),te=G("dropdown",m),[,ne]=_r(),ie=vr(ae),[de,ve,se]=ene(ae,ie),he=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:P},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=U==null?void 0:U.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Se="children"}=he,je=l.useMemo(()=>oe.some(Je=>Je==null?void 0:Je[Se])?"nest":N||I!=null&&I.expandedRowRender?"row":null,[oe]),Te={body:l.useRef(null)},Ce=Xee(ae),xe=l.useRef(null),Ne=l.useRef(null);Yee(t,()=>Object.assign(Object.assign({},Ne.current),{nativeElement:xe.current}));const Ee=l.useMemo(()=>typeof h=="function"?h:Je=>Je==null?void 0:Je[h],[h]),[Be]=Pte(oe,Se,Ee),Ve={},tt=(Je,Ge,rt=!1)=>{var st,Nt,Lt,Bt;const Pt=Object.assign(Object.assign({},Ve),Je);rt&&((st=Ve.resetPagination)===null||st===void 0||st.call(Ve),!((Nt=Pt.pagination)===null||Nt===void 0)&&Nt.current&&(Pt.pagination.current=1),p&&((Lt=p.onChange)===null||Lt===void 0||Lt.call(p,1,(Bt=Pt.pagination)===null||Bt===void 0?void 0:Bt.pageSize))),k&&k.scrollToFirstRowOnChange!==!1&&Te.body.current&&EA(0,{getContainer:()=>Te.body.current}),w==null||w(Pt.pagination,Pt.filters,Pt.sorter,{currentDataSource:Ib(Nb(oe,Pt.sorterStates,Se),Pt.filterStates,Se),action:Ge})},nt=(Je,Ge)=>{tt({sorter:Je,sorterStates:Ge},"sort",!1)},[We,Ze,Le,Re]=Dte({prefixCls:ae,mergedColumns:W,onSorterChange:nt,sortDirections:H||["ascend","descend"],tableLocale:J,showSorterTooltip:_}),qe=l.useMemo(()=>Nb(oe,Ze,Se),[oe,Ze]);Ve.sorter=Re(),Ve.sorterStates=Ze;const ye=(Je,Ge)=>{tt({filters:Je,filterStates:Ge},"filter",!0)},[Oe,Fe,we]=Ite({prefixCls:ae,locale:J,dropdownPrefixCls:te,mergedColumns:W,onFilterChange:ye,getPopupContainer:R||Z,rootClassName:re(i,ie)}),He=Ib(qe,Fe,Se);Ve.filters=we,Ve.filterStates=Fe;const ot=l.useMemo(()=>{const Je={};return Object.keys(we).forEach(Ge=>{we[Ge]!==null&&(Je[Ge]=we[Ge])}),Object.assign(Object.assign({},Le),{filters:Je})},[Le,we]),[gt]=jte(ot),yt=(Je,Ge)=>{tt({pagination:Object.assign(Object.assign({},Ve.pagination),{current:Je,pageSize:Ge})},"paginate")},[Rt,qt]=Tte(He.length,yt,p);Ve.pagination=p===!1?{}:Mte(Rt,p),Ve.resetPagination=qt;const Wt=l.useMemo(()=>{if(p===!1||!Rt.pageSize)return He;const{current:Je=1,total:Ge,pageSize:rt=__}=Rt;return He.length<Ge?He.length>rt?He.slice((Je-1)*rt,Je*rt):He:He.slice((Je-1)*rt,Je*rt)},[!!p,He,Rt==null?void 0:Rt.current,Rt==null?void 0:Rt.pageSize,Rt==null?void 0:Rt.total]),[It,bt]=Uee({prefixCls:ae,data:He,pageData:Wt,getRowKey:Ee,getRecordByKey:Be,expandType:je,childrenColumnName:Se,locale:J,getPopupContainer:R||Z},y),mt=(Je,Ge,rt)=>{let st;return typeof C=="function"?st=re(C(Je,Ge,rt)):st=re(C),re({[`${ae}-row-selected`]:bt.has(Ee(Je,Ge))},st)};he.__PARENT_RENDER_ICON__=he.expandIcon,he.expandIcon=he.expandIcon||O||Gee(J),je==="nest"&&he.expandIconColumnIndex===void 0?he.expandIconColumnIndex=y?1:0:he.expandIconColumnIndex>0&&y&&(he.expandIconColumnIndex-=1),typeof he.indentSize!="number"&&(he.indentSize=typeof T=="number"?T:15);const ue=l.useCallback(Je=>gt(It(Oe(We(Je)))),[We,Oe,It]);let fe,be;if(p!==!1&&(Rt!=null&&Rt.total)){let Je;Rt.size?Je=Rt.size:Je=ee==="small"||ee==="middle"?"small":void 0;const Ge=Nt=>l.createElement(ZT,Object.assign({},Rt,{className:re(`${ae}-pagination ${ae}-pagination-${Nt}`,Rt.className),size:Je})),rt=V==="rtl"?"left":"right",{position:st}=Rt;if(st!==null&&Array.isArray(st)){const Nt=st.find(Pt=>Pt.includes("top")),Lt=st.find(Pt=>Pt.includes("bottom")),Bt=st.every(Pt=>`${Pt}`=="none");!Nt&&!Lt&&!Bt&&(be=Ge(rt)),Nt&&(fe=Ge(Nt.toLowerCase().replace("top",""))),Lt&&(be=Ge(Lt.toLowerCase().replace("bottom","")))}else be=Ge(rt)}let De;typeof $=="boolean"?De={spinning:$}:typeof $=="object"&&(De=Object.assign({spinning:!0},$));const Pe=re(se,ie,`${ae}-wrapper`,U==null?void 0:U.className,{[`${ae}-wrapper-rtl`]:V==="rtl"},a,i,ve),ke=Object.assign(Object.assign({},U==null?void 0:U.style),s),Qe=typeof(A==null?void 0:A.emptyText)<"u"?A.emptyText:(q==null?void 0:q("Table"))||l.createElement(kC,{componentName:"Table"}),Ke=D?zte:kte,Ye={},et=l.useMemo(()=>{const{fontSize:Je,lineHeight:Ge,lineWidth:rt,padding:st,paddingXS:Nt,paddingSM:Lt}=ne,Bt=Math.floor(Je*Ge);switch(ee){case"middle":return Lt*2+Bt+rt;case"small":return Nt*2+Bt+rt;default:return st*2+Bt+rt}},[ne,ee]);return D&&(Ye.listItemHeight=et),de(l.createElement("div",{ref:xe,className:Pe,style:ke},l.createElement(sc,Object.assign({spinning:!1},De),fe,l.createElement(Ke,Object.assign({},Ye,K,{ref:Ne,columns:W,direction:V,expandable:he,prefixCls:ae,className:re({[`${ae}-middle`]:ee==="middle",[`${ae}-small`]:ee==="small",[`${ae}-bordered`]:d,[`${ae}-empty`]:oe.length===0},se,ie,ve),data:Wt,rowKey:Ee,rowClassName:mt,emptyText:Qe,internalHooks:wd,internalRefs:Te,transformColumns:ue,getContainerWidth:Ce})),be)))},rne=l.forwardRef(nne),one=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(rne,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Dr=l.forwardRef(one);Dr.SELECTION_COLUMN=Ei;Dr.EXPAND_COLUMN=Ya;Dr.SELECTION_ALL=wb;Dr.SELECTION_INVERT=$b;Dr.SELECTION_NONE=Eb;Dr.Column=yn;Dr.ColumnGroup=kee;Dr.Summary=f_;const ane=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},kn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${le(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:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${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}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},wS=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return nn(e,{tagFontSize:o,tagLineHeight:le(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},$S=e=>({defaultBg:new tn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),k_=In("Tag",e=>{const t=wS(e);return ane(t)},$S);var ine=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lne=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,u=ine(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:m}=l.useContext(Dt),v=S=>{i==null||i(!a),s==null||s(S)},p=d("tag",n),[y,h,C]=k_(p),g=re(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},m==null?void 0:m.className,o,h,C);return y(l.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:g,onClick:v})))}),sne=e=>qI(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),cne=Ys(["Tag","preset"],e=>{const t=wS(e);return sne(t)},$S);function une(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Gf=(e,t,n)=>{const r=une(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},dne=Ys(["Tag","status"],e=>{const t=wS(e);return[Gf(t,"success","Success"),Gf(t,"processing","Info"),Gf(t,"error","Error"),Gf(t,"warning","Warning")]},$S);var fne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mne=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:u,onClose:d,bordered:m=!0,visible:v}=e,p=fne(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:h,tag:C}=l.useContext(Dt),[g,S]=l.useState(!0),x=Hn(p,["closeIcon","closable"]);l.useEffect(()=>{v!==void 0&&S(v)},[v]);const w=VN(u),R=mW(u),$=w||R,O=Object.assign(Object.assign({backgroundColor:u&&!$?u:void 0},C==null?void 0:C.style),a),I=y("tag",n),[N,P,T]=k_(I),k=re(I,C==null?void 0:C.className,{[`${I}-${u}`]:$,[`${I}-has-color`]:u&&!$,[`${I}-hidden`]:!g,[`${I}-rtl`]:h==="rtl",[`${I}-borderless`]:!m},r,o,P,T),H=F=>{F.stopPropagation(),d==null||d(F),!F.defaultPrevented&&S(!1)},[,A]=UP(Hm(e),Hm(C),{closable:!1,closeIconRender:F=>{const W=l.createElement("span",{className:`${I}-close-icon`,onClick:H},F);return vP(F,W,K=>({onClick:B=>{var V;(V=K==null?void 0:K.onClick)===null||V===void 0||V.call(K,B),H(B)},className:re(K==null?void 0:K.className,`${I}-close-icon`)}))}}),_=typeof p.onClick=="function"||i&&i.type==="a",D=s||null,j=D?l.createElement(l.Fragment,null,D,i&&l.createElement("span",null,i)):i,z=l.createElement("span",Object.assign({},x,{ref:t,className:k,style:O}),j,A,w&&l.createElement(cne,{key:"preset",prefixCls:I}),R&&l.createElement(dne,{key:"status",prefixCls:I}));return N(_?l.createElement(Iv,{component:"Tag"},z):z)}),ma=mne;ma.CheckableTag=lne;const vne=e=>{const t=e!=null&&e.algorithm?jm(e.algorithm):mC,n=Object.assign(Object.assign({},ks),e==null?void 0:e.token);return gI(n,{override:e==null?void 0:e.token},t,gC)};function pne(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 gne=(e,t)=>{const n=t??xv(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),pne(t??e)),AI(r)),{controlHeight:o}),FI(Object.assign(Object.assign({},n),{controlHeight:o})))},Ko=(e,t)=>new tn(e).setA(t).toRgbString(),hs=(e,t)=>new tn(e).lighten(t).toHexString(),hne=e=>{const t=Cl(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]}},yne=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ko(r,.85),colorTextSecondary:Ko(r,.65),colorTextTertiary:Ko(r,.45),colorTextQuaternary:Ko(r,.25),colorFill:Ko(r,.18),colorFillSecondary:Ko(r,.12),colorFillTertiary:Ko(r,.08),colorFillQuaternary:Ko(r,.04),colorBgSolid:Ko(r,.95),colorBgSolidHover:Ko(r,1),colorBgSolidActive:Ko(r,.9),colorBgElevated:hs(n,12),colorBgContainer:hs(n,8),colorBgLayout:hs(n,0),colorBgSpotlight:hs(n,26),colorBgBlur:Ko(r,.04),colorBorder:hs(n,26),colorBorderSecondary:hs(n,19)}},bne=(e,t)=>{const n=Object.keys(fC).map(a=>{const i=Cl(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,u,d)=>(s[`${a}-${d+1}`]=i[d],s[`${a}${d+1}`]=i[d],s),{})}).reduce((a,i)=>(a=Object.assign(Object.assign({},a),i),a),{}),r=t??xv(e),o=LI(e,{generateColorPalettes:hne,generateNeutralColorPalettes:yne});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};function Cne(){const[e,t,n]=_r();return{theme:e,token:t,hashId:n}}const Sne={defaultSeed:Vu.token,useToken:Cne,defaultAlgorithm:xv,darkAlgorithm:bne,compactAlgorithm:gne,getDesignToken:vne,defaultConfig:Vu,_internalContext:vC},S0=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var u=r.toLowerCase(),d=s.toLowerCase(),m=[d];return(d===".jpg"||d===".jpeg")&&(m=[".jpg",".jpeg"]),m.some(function(v){return u.endsWith(v)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(qn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function xne(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function bO(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function wne(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var a=e.data[o];if(Array.isArray(a)){a.forEach(function(i){n.append("".concat(o,"[]"),i)});return}n.append(o,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(xne(e,t),bO(t)):e.onSuccess(bO(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var $ne=function(){var e=to(jn().mark(function t(n,r){var o,a,i,s,u,d,m,v;return jn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:d=function(){return d=to(jn().mark(function C(g){return jn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",new Promise(function(w){g.file(function(R){r(R)?(g.fullPath&&!R.webkitRelativePath&&(Object.defineProperties(R,{webkitRelativePath:{writable:!0}}),R.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(R,{webkitRelativePath:{writable:!1}})),w(R)):w(null)})}));case 1:case"end":return x.stop()}},C)})),d.apply(this,arguments)},u=function(C){return d.apply(this,arguments)},s=function(){return s=to(jn().mark(function C(g){var S,x,w,R,$;return jn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:S=g.createReader(),x=[];case 2:return I.next=5,new Promise(function(N){S.readEntries(N,function(){return N([])})});case 5:if(w=I.sent,R=w.length,R){I.next=9;break}return I.abrupt("break",12);case 9:for($=0;$<R;$++)x.push(w[$]);I.next=2;break;case 12:return I.abrupt("return",x);case 13:case"end":return I.stop()}},C)})),s.apply(this,arguments)},i=function(C){return s.apply(this,arguments)},o=[],a=[],n.forEach(function(h){return a.push(h.webkitGetAsEntry())}),m=function(){var h=to(jn().mark(function C(g,S){var x,w;return jn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(g){$.next=2;break}return $.abrupt("return");case 2:if(g.path=S||"",!g.isFile){$.next=10;break}return $.next=6,u(g);case 6:x=$.sent,x&&o.push(x),$.next=15;break;case 10:if(!g.isDirectory){$.next=15;break}return $.next=13,i(g);case 13:w=$.sent,a.push.apply(a,_e(w));case 15:case"end":return $.stop()}},C)}));return function(g,S){return h.apply(this,arguments)}}(),v=0;case 9:if(!(v<a.length)){y.next=15;break}return y.next=12,m(a[v]);case 12:v++,y.next=9;break;case 15:return y.abrupt("return",o);case 16:case"end":return y.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),Ene=+new Date,One=0;function x0(){return"rc-upload-".concat(Ene,"-").concat(++One)}var Rne=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Ine=function(e){na(n,e);var t=ra(n);function n(){var r;rr(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Y(ft(r),"state",{uid:x0()}),Y(ft(r),"reqs",{}),Y(ft(r),"fileInput",void 0),Y(ft(r),"_isMounted",void 0),Y(ft(r),"onChange",function(s){var u=r.props,d=u.accept,m=u.directory,v=s.target.files,p=_e(v).filter(function(y){return!m||S0(y,d)});r.uploadFiles(p),r.reset()}),Y(ft(r),"onClick",function(s){var u=r.fileInput;if(u){var d=s.target,m=r.props.onClick;if(d&&d.tagName==="BUTTON"){var v=u.parentNode;v.focus(),d.blur()}u.click(),m&&m(s)}}),Y(ft(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),Y(ft(r),"onDataTransferFiles",function(){var s=to(jn().mark(function u(d,m){var v,p,y,h,C,g,S;return jn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(v=r.props,p=v.multiple,y=v.accept,h=v.directory,C=_e(d.items||[]),g=_e(d.files||[]),(g.length>0||C.some(function(R){return R.kind==="file"}))&&(m==null||m()),!h){w.next=11;break}return w.next=7,$ne(Array.prototype.slice.call(C),function(R){return S0(R,r.props.accept)});case 7:g=w.sent,r.uploadFiles(g),w.next=14;break;case 11:S=_e(g).filter(function(R){return S0(R,y)}),p===!1&&(S=g.slice(0,1)),r.uploadFiles(S);case 14:case"end":return w.stop()}},u)}));return function(u,d){return s.apply(this,arguments)}}()),Y(ft(r),"onFilePaste",function(){var s=to(jn().mark(function u(d){var m,v;return jn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(m=r.props.pastable,m){y.next=3;break}return y.abrupt("return");case 3:if(d.type!=="paste"){y.next=6;break}return v=d.clipboardData,y.abrupt("return",r.onDataTransferFiles(v,function(){d.preventDefault()}));case 6:case"end":return y.stop()}},u)}));return function(u){return s.apply(this,arguments)}}()),Y(ft(r),"onFileDragOver",function(s){s.preventDefault()}),Y(ft(r),"onFileDrop",function(){var s=to(jn().mark(function u(d){var m;return jn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(d.preventDefault(),d.type!=="drop"){p.next=4;break}return m=d.dataTransfer,p.abrupt("return",r.onDataTransferFiles(m));case 4:case"end":return p.stop()}},u)}));return function(u){return s.apply(this,arguments)}}()),Y(ft(r),"uploadFiles",function(s){var u=_e(s),d=u.map(function(m){return m.uid=x0(),r.processFile(m,u)});Promise.all(d).then(function(m){var v=r.props.onBatchStart;v==null||v(m.map(function(p){var y=p.origin,h=p.parsedFile;return{file:y,parsedFile:h}})),m.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),Y(ft(r),"processFile",function(){var s=to(jn().mark(function u(d,m){var v,p,y,h,C,g,S,x,w;return jn().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(v=r.props.beforeUpload,p=d,!v){$.next=14;break}return $.prev=3,$.next=6,v(d,m);case 6:p=$.sent,$.next=12;break;case 9:$.prev=9,$.t0=$.catch(3),p=!1;case 12:if(p!==!1){$.next=14;break}return $.abrupt("return",{origin:d,parsedFile:null,action:null,data:null});case 14:if(y=r.props.action,typeof y!="function"){$.next=21;break}return $.next=18,y(d);case 18:h=$.sent,$.next=22;break;case 21:h=y;case 22:if(C=r.props.data,typeof C!="function"){$.next=29;break}return $.next=26,C(d);case 26:g=$.sent,$.next=30;break;case 29:g=C;case 30:return S=(ht(p)==="object"||typeof p=="string")&&p?p:d,S instanceof File?x=S:x=new File([S],d.name,{type:d.type}),w=x,w.uid=d.uid,$.abrupt("return",{origin:d,data:g,parsedFile:w,action:h});case 35:case"end":return $.stop()}},u,null,[[3,9]])}));return function(u,d){return s.apply(this,arguments)}}()),Y(ft(r),"saveFileInput",function(s){r.fileInput=s}),r}return or(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var a=this.props.pastable;a&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!a&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var a=this,i=o.data,s=o.origin,u=o.action,d=o.parsedFile;if(this._isMounted){var m=this.props,v=m.onStart,p=m.customRequest,y=m.name,h=m.headers,C=m.withCredentials,g=m.method,S=s.uid,x=p||wne,w={action:u,filename:y,data:i,file:d,headers:h,withCredentials:C,method:g||"post",onProgress:function($){var O=a.props.onProgress;O==null||O($,d)},onSuccess:function($,O){var I=a.props.onSuccess;I==null||I($,d,O),delete a.reqs[S]},onError:function($,O){var I=a.props.onError;I==null||I($,O,d),delete a.reqs[S]}};v(s),this.reqs[S]=x(w)}}},{key:"reset",value:function(){this.setState({uid:x0()})}},{key:"abort",value:function(o){var a=this.reqs;if(o){var i=o.uid?o.uid:o;a[i]&&a[i].abort&&a[i].abort(),delete a[i]}else Object.keys(a).forEach(function(s){a[s]&&a[s].abort&&a[s].abort(),delete a[s]})}},{key:"render",value:function(){var o=this.props,a=o.component,i=o.prefixCls,s=o.className,u=o.classNames,d=u===void 0?{}:u,m=o.disabled,v=o.id,p=o.name,y=o.style,h=o.styles,C=h===void 0?{}:h,g=o.multiple,S=o.accept,x=o.capture,w=o.children,R=o.directory,$=o.openFileDialogOnClick,O=o.onMouseEnter,I=o.onMouseLeave,N=o.hasControlInside,P=jt(o,Rne),T=re(Y(Y(Y({},i,!0),"".concat(i,"-disabled"),m),s,s)),k=R?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},H=m?{}:{onClick:$?this.onClick:function(){},onKeyDown:$?this.onKeyDown:function(){},onMouseEnter:O,onMouseLeave:I,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:N?void 0:"0"};return pe.createElement(a,Me({},H,{className:T,role:N?void 0:"button",style:y}),pe.createElement("input",Me({},wr(P,{aria:!0,data:!0}),{id:v,name:p,disabled:m,type:"file",ref:this.saveFileInput,onClick:function(_){return _.stopPropagation()},key:this.state.uid,style:X({display:"none"},C.input),className:d.input,accept:S},k,{multiple:g,onChange:this.onChange},x!=null?{capture:x}:{})),w)}}]),n}(l.Component);function w0(){}var Mb=function(e){na(n,e);var t=ra(n);function n(){var r;rr(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Y(ft(r),"uploader",void 0),Y(ft(r),"saveUploader",function(s){r.uploader=s}),r}return or(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return pe.createElement(Ine,Me({},this.props,{ref:this.saveUploader}))}}]),n}(l.Component);Y(Mb,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:w0,onError:w0,onSuccess:w0,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Pne=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${le(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${le(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},Nne=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:a}=e,i=`${t}-list-item`,s=`${i}-actions`,u=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},wl()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},Da),{padding:`0 ${le(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[u]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${u}:focus-visible,
&.picture ${u}
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${u}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Mne=e=>{const{componentCls:t}=e,n=new xn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new xn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:wC(e)},n,r]},Tne=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i=`${t}-list`,s=`${i}-item`;return{[`${t}-wrapper`]:{[`
${i}${i}-picture,
${i}${i}-picture-card,
${i}${i}-picture-circle
`]:{[s]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Da),{width:r,height:r,lineHeight:le(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${le(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${zs[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${zs.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},_ne=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i=`${t}-list`,s=`${i}-item`,u=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},wl()),{display:"block",[`${t}${t}-select`]:{width:u,height:u,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${le(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:u,height:u,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${le(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:r,margin:`0 ${le(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${le(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${le(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Dne=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},jne=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},kn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},kne=e=>({actionsColor:e.colorIcon}),zne=In("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=nn(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[jne(i),Pne(i),Tne(i),_ne(i),Nne(i),Mne(i),Dne(i),Nv(i)]},kne);function Xf(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Qf(e,t){const n=_e(t),r=n.findIndex(({uid:o})=>o===e.uid);return r===-1?n.push(e):n[r]=e,n}function $0(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Lne(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const Fne=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},z_=e=>e.indexOf("image/")===0,Ane=e=>{if(e.type&&!e.thumbUrl)return z_(e.type);const t=e.thumbUrl||e.url||"",n=Fne(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Si=200;function Bne(e){return new Promise(t=>{if(!e.type||!z_(e.type)){t("");return}const n=document.createElement("canvas");n.width=Si,n.height=Si,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Si}px; height: ${Si}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let s=Si,u=Si,d=0,m=0;a>i?(u=i*(Si/a),m=-(u-s)/2):(s=a*(Si/i),d=-(s-u)/2),r.drawImage(o,d,m,s,u);const v=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(v)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const Hne=l.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:s,iconRender:u,actionIconRender:d,itemRender:m,isImgUrl:v,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:h,previewIcon:C,removeIcon:g,downloadIcon:S,extra:x,onPreview:w,onDownload:R,onClose:$},O)=>{var I,N;const{status:P}=a,[T,k]=l.useState(P);l.useEffect(()=>{P!=="removed"&&k(P)},[P]);const[H,A]=l.useState(!1);l.useEffect(()=>{const ne=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(ne)}},[]);const _=u(a);let D=l.createElement("div",{className:`${e}-icon`},_);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(T==="uploading"||!a.thumbUrl&&!a.url){const ne=re(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});D=l.createElement("div",{className:ne},_)}else{const ne=v!=null&&v(a)?l.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):_,ie=re(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:v&&!v(a)});D=l.createElement("a",{className:ie,onClick:de=>w(a,de),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ne)}const j=re(`${e}-list-item`,`${e}-list-item-${T}`),z=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,F=(typeof y=="function"?y(a):y)?d((typeof g=="function"?g(a):g)||l.createElement(iJ,null),()=>$(a),e,r.removeFile,!0):null,W=(typeof h=="function"?h(a):h)&&T==="done"?d((typeof S=="function"?S(a):S)||l.createElement(sJ,null),()=>R(a),e,r.downloadFile):null,K=o!=="picture-card"&&o!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:re(`${e}-list-item-actions`,{picture:o==="picture"})},W,F),B=typeof x=="function"?x(a):x,V=B&&l.createElement("span",{className:`${e}-list-item-extra`},B),U=re(`${e}-list-item-name`),q=a.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:a.name},z,{href:a.url,onClick:ne=>w(a,ne)}),a.name,V):l.createElement("span",{key:"view",className:U,onClick:ne=>w(a,ne),title:a.name},a.name,V),G=(typeof p=="function"?p(a):p)&&(a.url||a.thumbUrl)?l.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ne=>w(a,ne),title:r.previewFile},typeof C=="function"?C(a):C||l.createElement(sS,null)):null,Z=(o==="picture-card"||o==="picture-circle")&&T!=="uploading"&&l.createElement("span",{className:`${e}-list-item-actions`},G,T==="done"&&W,F),{getPrefixCls:ee}=l.useContext(Dt),J=ee(),oe=l.createElement("div",{className:j},D,q,K,Z,H&&l.createElement(Do,{motionName:`${J}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:ne})=>{const ie="percent"in a?l.createElement(ZZ,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},s)):null;return l.createElement("div",{className:re(`${e}-list-item-progress`,ne)},ie)})),ae=a.response&&typeof a.response=="string"?a.response:((I=a.error)===null||I===void 0?void 0:I.statusText)||((N=a.error)===null||N===void 0?void 0:N.message)||r.uploadError,te=T==="error"?l.createElement(Ai,{title:ae,getPopupContainer:ne=>ne.parentNode},oe):oe;return l.createElement("div",{className:re(`${e}-list-item-container`,t),style:n,ref:O},m?m(te,a,i,{download:R.bind(null,a),preview:w.bind(null,a),remove:$.bind(null,a)}):te)}),Vne=(e,t)=>{const{listType:n="text",previewFile:r=Bne,onPreview:o,onDownload:a,onRemove:i,locale:s,iconRender:u,isImageUrl:d=Ane,prefixCls:m,items:v=[],showPreviewIcon:p=!0,showRemoveIcon:y=!0,showDownloadIcon:h=!1,removeIcon:C,previewIcon:g,downloadIcon:S,extra:x,progress:w={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:$=!0,itemRender:O,disabled:I}=e,N=LC(),[P,T]=l.useState(!1),k=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(v||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(q=>{U.thumbUrl=q||"",N()}))})},[n,v,r]),l.useEffect(()=>{T(!0)},[]);const H=(U,q)=>{if(o)return q==null||q.preventDefault(),o(U)},A=U=>{typeof a=="function"?a(U):U.url&&window.open(U.url)},_=U=>{i==null||i(U)},D=U=>{if(u)return u(U,n);const q=U.status==="uploading";if(n.startsWith("picture")){const G=n==="picture"?l.createElement($l,null):s.uploading,Z=d!=null&&d(U)?l.createElement(EJ,null):l.createElement(dJ,null);return q?G:Z}return q?l.createElement($l,null):l.createElement(wJ,null)},j=(U,q,G,Z,ee)=>{const J={type:"text",size:"small",title:Z,onClick:oe=>{var ae,te;q(),l.isValidElement(U)&&((te=(ae=U.props).onClick)===null||te===void 0||te.call(ae,oe))},className:`${G}-list-item-action`,disabled:ee?I:!1};return l.isValidElement(U)?l.createElement(Sn,Object.assign({},J,{icon:Fr(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):l.createElement(Sn,Object.assign({},J),l.createElement("span",null,U))};l.useImperativeHandle(t,()=>({handlePreview:H,handleDownload:A}));const{getPrefixCls:z}=l.useContext(Dt),F=z("upload",m),W=z(),K=re(`${F}-list`,`${F}-list-${n}`),B=l.useMemo(()=>Hn(Ku(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),V=Object.assign(Object.assign({},k?{}:B),{motionDeadline:2e3,motionName:`${F}-${k?"animate-inline":"animate"}`,keys:_e(v.map(U=>({key:U.uid,file:U}))),motionAppear:P});return l.createElement("div",{className:K},l.createElement(yC,Object.assign({},V,{component:!1}),({key:U,file:q,className:G,style:Z})=>l.createElement(Hne,{key:U,locale:s,prefixCls:F,className:G,style:Z,file:q,items:v,progress:w,listType:n,isImgUrl:d,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:h,removeIcon:C,previewIcon:g,downloadIcon:S,extra:x,iconRender:D,actionIconRender:j,itemRender:O,onPreview:H,onDownload:A,onClose:_})),R&&l.createElement(Do,Object.assign({},V,{visible:$,forceRender:!0}),({className:U,style:q})=>Fr(R,G=>({className:re(G.className,U),style:Object.assign(Object.assign(Object.assign({},q),{pointerEvents:U?"none":void 0}),G.style)}))))},Wne=l.forwardRef(Vne);var Kne=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(m){try{d(r.next(m))}catch(v){i(v)}}function u(m){try{d(r.throw(m))}catch(v){i(v)}}function d(m){m.done?a(m.value):o(m.value).then(s,u)}d((r=r.apply(e,[])).next())})};const Su=`__LIST_IGNORE_${Date.now()}__`,Une=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:a=!0,listType:i="text",onPreview:s,onDownload:u,onChange:d,onDrop:m,previewFile:v,disabled:p,locale:y,iconRender:h,isImageUrl:C,progress:g,prefixCls:S,className:x,type:w="select",children:R,style:$,itemRender:O,maxCount:I,data:N={},multiple:P=!1,hasControlInside:T=!0,action:k="",accept:H="",supportServerRender:A=!0,rootClassName:_}=e,D=l.useContext(go),j=p??D,[z,F]=Tn(r||[],{value:n,postState:ye=>ye??[]}),[W,K]=l.useState("drop"),B=l.useRef(null),V=l.useRef(null);l.useMemo(()=>{const ye=Date.now();(n||[]).forEach((Oe,Fe)=>{!Oe.uid&&!Object.isFrozen(Oe)&&(Oe.uid=`__AUTO__${ye}_${Fe}__`)})},[n]);const U=(ye,Oe,Fe)=>{let we=_e(Oe),He=!1;I===1?we=we.slice(-1):I&&(He=we.length>I,we=we.slice(0,I)),Zo.flushSync(()=>{F(we)});const ot={file:ye,fileList:we};Fe&&(ot.event=Fe),(!He||ye.status==="removed"||we.some(gt=>gt.uid===ye.uid))&&Zo.flushSync(()=>{d==null||d(ot)})},q=(ye,Oe)=>Kne(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:we}=e;let He=ye;if(Fe){const ot=yield Fe(ye,Oe);if(ot===!1)return!1;if(delete ye[Su],ot===Su)return Object.defineProperty(ye,Su,{value:!0,configurable:!0}),!1;typeof ot=="object"&&ot&&(He=ot)}return we&&(He=yield we(He)),He}),G=ye=>{const Oe=ye.filter(He=>!He.file[Su]);if(!Oe.length)return;const Fe=Oe.map(He=>Xf(He.file));let we=_e(z);Fe.forEach(He=>{we=Qf(He,we)}),Fe.forEach((He,ot)=>{let gt=He;if(Oe[ot].parsedFile)He.status="uploading";else{const{originFileObj:yt}=He;let Rt;try{Rt=new File([yt],yt.name,{type:yt.type})}catch{Rt=new Blob([yt],{type:yt.type}),Rt.name=yt.name,Rt.lastModifiedDate=new Date,Rt.lastModified=new Date().getTime()}Rt.uid=He.uid,gt=Rt}U(gt,we)})},Z=(ye,Oe,Fe)=>{try{typeof ye=="string"&&(ye=JSON.parse(ye))}catch{}if(!$0(Oe,z))return;const we=Xf(Oe);we.status="done",we.percent=100,we.response=ye,we.xhr=Fe;const He=Qf(we,z);U(we,He)},ee=(ye,Oe)=>{if(!$0(Oe,z))return;const Fe=Xf(Oe);Fe.status="uploading",Fe.percent=ye.percent;const we=Qf(Fe,z);U(Fe,we,ye)},J=(ye,Oe,Fe)=>{if(!$0(Fe,z))return;const we=Xf(Fe);we.error=ye,we.response=Oe,we.status="error";const He=Qf(we,z);U(we,He)},oe=ye=>{let Oe;Promise.resolve(typeof o=="function"?o(ye):o).then(Fe=>{var we;if(Fe===!1)return;const He=Lne(ye,z);He&&(Oe=Object.assign(Object.assign({},ye),{status:"removed"}),z==null||z.forEach(ot=>{const gt=Oe.uid!==void 0?"uid":"name";ot[gt]===Oe[gt]&&!Object.isFrozen(ot)&&(ot.status="removed")}),(we=B.current)===null||we===void 0||we.abort(Oe),U(Oe,He))})},ae=ye=>{K(ye.type),ye.type==="drop"&&(m==null||m(ye))};l.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:Z,onProgress:ee,onError:J,fileList:z,upload:B.current,nativeElement:V.current}));const{getPrefixCls:te,direction:ne,upload:ie}=l.useContext(Dt),de=te("upload",S),ve=Object.assign(Object.assign({onBatchStart:G,onError:J,onProgress:ee,onSuccess:Z},e),{data:N,multiple:P,action:k,accept:H,supportServerRender:A,prefixCls:de,disabled:j,beforeUpload:q,onChange:void 0,hasControlInside:T});delete ve.className,delete ve.style,(!R||j)&&delete ve.id;const se=`${de}-wrapper`,[he,Se,je]=zne(de,se),[Te]=ho("Upload",ea.Upload),{showRemoveIcon:Ce,showPreviewIcon:xe,showDownloadIcon:Ne,removeIcon:Ee,previewIcon:Be,downloadIcon:Ve,extra:tt}=typeof a=="boolean"?{}:a,nt=typeof Ce>"u"?!j:Ce,We=(ye,Oe)=>a?l.createElement(Wne,{prefixCls:de,listType:i,items:z,previewFile:v,onPreview:s,onDownload:u,onRemove:oe,showRemoveIcon:nt,showPreviewIcon:xe,showDownloadIcon:Ne,removeIcon:Ee,previewIcon:Be,downloadIcon:Ve,iconRender:h,extra:tt,locale:Object.assign(Object.assign({},Te),y),isImageUrl:C,progress:g,appendAction:ye,appendActionVisible:Oe,itemRender:O,disabled:j}):ye,Ze=re(se,x,_,Se,je,ie==null?void 0:ie.className,{[`${de}-rtl`]:ne==="rtl",[`${de}-picture-card-wrapper`]:i==="picture-card",[`${de}-picture-circle-wrapper`]:i==="picture-circle"}),Le=Object.assign(Object.assign({},ie==null?void 0:ie.style),$);if(w==="drag"){const ye=re(Se,de,`${de}-drag`,{[`${de}-drag-uploading`]:z.some(Oe=>Oe.status==="uploading"),[`${de}-drag-hover`]:W==="dragover",[`${de}-disabled`]:j,[`${de}-rtl`]:ne==="rtl"});return he(l.createElement("span",{className:Ze,ref:V},l.createElement("div",{className:ye,style:Le,onDrop:ae,onDragOver:ae,onDragLeave:ae},l.createElement(Mb,Object.assign({},ve,{ref:B,className:`${de}-btn`}),l.createElement("div",{className:`${de}-drag-container`},R))),We()))}const Re=re(de,`${de}-select`,{[`${de}-disabled`]:j,[`${de}-hidden`]:!R}),qe=l.createElement("div",{className:Re,style:Le},l.createElement(Mb,Object.assign({},ve,{ref:B})));return he(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:Ze,ref:V},We(qe,!!R)):l.createElement("span",{className:Ze,ref:V},qe,We()))},L_=l.forwardRef(Une);var qne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yne=l.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,a=qne(e,["style","height","hasControlInside"]);return l.createElement(L_,Object.assign({ref:t,hasControlInside:o},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),ES=L_;ES.Dragger=Yne;ES.LIST_IGNORE=Su;const Gne=[{path:"/user/reserve",label:"设备预约",icon:k6,roles:["USER","LEADER","DEVICE_ADMIN"],order:4},{path:"/user/my-reservation",label:"我的预约",icon:T6,roles:["USER","LEADER","DEVICE_ADMIN"],order:5},{path:"/approval",label:"预约审批",icon:Q6,roles:["LEADER","DEVICE_ADMIN"],order:1},{path:"/my-approval",label:"审批记录",icon:Oz,roles:["LEADER","DEVICE_ADMIN"],order:2},{path:"/device-manage",label:"设备管理",icon:U6,roles:["DEVICE_ADMIN"],order:3},{path:"/admin/user-manage",label:"用户管理",icon:Dz,roles:["ADMIN"],order:1},{label:"数据统计",icon:pz,order:2,children:[{path:"/admin/stats-device",label:"设备统计",order:1},{path:"/admin/stats-reservation",label:"使用人统计",order:2}],roles:["ADMIN"]},{path:"/admin/team-manage",icon:b6,label:"团队管理",roles:["ADMIN"],order:3},{path:"/userdetail",label:"个人信息",icon:GR,roles:["USER","LEADER","DEVICE_ADMIN","ADMIN"],order:999}];function Lr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Xne=typeof Symbol=="function"&&Symbol.observable||"@@observable",CO=Xne,E0=()=>Math.random().toString(36).substring(7).split("").join("."),Qne={INIT:`@@redux/INIT${E0()}`,REPLACE:`@@redux/REPLACE${E0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${E0()}`},rv=Qne;function OS(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function F_(e,t,n){if(typeof e!="function")throw new Error(Lr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Lr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Lr(1));return n(F_)(e,t)}let r=e,o=t,a=new Map,i=a,s=0,u=!1;function d(){i===a&&(i=new Map,a.forEach((g,S)=>{i.set(S,g)}))}function m(){if(u)throw new Error(Lr(3));return o}function v(g){if(typeof g!="function")throw new Error(Lr(4));if(u)throw new Error(Lr(5));let S=!0;d();const x=s++;return i.set(x,g),function(){if(S){if(u)throw new Error(Lr(6));S=!1,d(),i.delete(x),a=null}}}function p(g){if(!OS(g))throw new Error(Lr(7));if(typeof g.type>"u")throw new Error(Lr(8));if(typeof g.type!="string")throw new Error(Lr(17));if(u)throw new Error(Lr(9));try{u=!0,o=r(o,g)}finally{u=!1}return(a=i).forEach(x=>{x()}),g}function y(g){if(typeof g!="function")throw new Error(Lr(10));r=g,p({type:rv.REPLACE})}function h(){const g=v;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(Lr(11));function x(){const R=S;R.next&&R.next(m())}return x(),{unsubscribe:g(x)}},[CO](){return this}}}return p({type:rv.INIT}),{dispatch:p,subscribe:v,getState:m,replaceReducer:y,[CO]:h}}function Zne(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:rv.INIT})>"u")throw new Error(Lr(12));if(typeof n(void 0,{type:rv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Lr(13))})}function Jne(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const i=t[a];typeof e[i]=="function"&&(n[i]=e[i])}const r=Object.keys(n);let o;try{Zne(n)}catch(a){o=a}return function(i={},s){if(o)throw o;let u=!1;const d={};for(let m=0;m<r.length;m++){const v=r[m],p=n[v],y=i[v],h=p(y,s);if(typeof h>"u")throw s&&s.type,new Error(Lr(14));d[v]=h,u=u||h!==y}return u=u||r.length!==Object.keys(i).length,u?d:i}}function ov(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function ere(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(Lr(15))};const i={getState:o.getState,dispatch:(u,...d)=>a(u,...d)},s=e.map(u=>u(i));return a=ov(...s)(o.dispatch),{...o,dispatch:a}}}function tre(e){return OS(e)&&"type"in e&&typeof e.type=="string"}var A_=Symbol.for("immer-nothing"),SO=Symbol.for("immer-draftable"),Po=Symbol.for("immer-state");function fa(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ws=Object.getPrototypeOf;function Nl(e){return!!e&&!!e[Po]}function Ja(e){var t;return e?B_(e)||Array.isArray(e)||!!e[SO]||!!((t=e.constructor)!=null&&t[SO])||bp(e)||Cp(e):!1}var nre=Object.prototype.constructor.toString();function B_(e){if(!e||typeof e!="object")return!1;const t=Ws(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===nre}function av(e,t){yp(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function yp(e){const t=e[Po];return t?t.type_:Array.isArray(e)?1:bp(e)?2:Cp(e)?3:0}function Tb(e,t){return yp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function H_(e,t,n){const r=yp(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function rre(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function bp(e){return e instanceof Map}function Cp(e){return e instanceof Set}function ul(e){return e.copy_||e.base_}function _b(e,t){if(bp(e))return new Map(e);if(Cp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=B_(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Po];let o=Reflect.ownKeys(r);for(let a=0;a<o.length;a++){const i=o[a],s=r[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Ws(e),r)}else{const r=Ws(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function RS(e,t=!1){return Sp(e)||Nl(e)||!Ja(e)||(yp(e)>1&&(e.set=e.add=e.clear=e.delete=ore),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>RS(r,!0))),e}function ore(){fa(2)}function Sp(e){return Object.isFrozen(e)}var are={};function Ml(e){const t=are[e];return t||fa(0,e),t}var ed;function V_(){return ed}function ire(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xO(e,t){t&&(Ml("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Db(e){jb(e),e.drafts_.forEach(lre),e.drafts_=null}function jb(e){e===ed&&(ed=e.parent_)}function wO(e){return ed=ire(ed,e)}function lre(e){const t=e[Po];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $O(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Po].modified_&&(Db(t),fa(4)),Ja(e)&&(e=iv(t,e),t.parent_||lv(t,e)),t.patches_&&Ml("Patches").generateReplacementPatches_(n[Po].base_,e,t.patches_,t.inversePatches_)):e=iv(t,n,[]),Db(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==A_?e:void 0}function iv(e,t,n){if(Sp(t))return t;const r=t[Po];if(!r)return av(t,(o,a)=>EO(e,r,t,o,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return lv(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let a=o,i=!1;r.type_===3&&(a=new Set(o),o.clear(),i=!0),av(a,(s,u)=>EO(e,r,o,s,u,n,i)),lv(e,o,!1),n&&e.patches_&&Ml("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function EO(e,t,n,r,o,a,i){if(Nl(o)){const s=a&&t&&t.type_!==3&&!Tb(t.assigned_,r)?a.concat(r):void 0,u=iv(e,o,s);if(H_(n,r,u),Nl(u))e.canAutoFreeze_=!1;else return}else i&&n.add(o);if(Ja(o)&&!Sp(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;iv(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&lv(e,o)}}function lv(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&RS(t,n)}function sre(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:V_(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=IS;n&&(o=[r],a=td);const{revoke:i,proxy:s}=Proxy.revocable(o,a);return r.draft_=s,r.revoke_=i,s}var IS={get(e,t){if(t===Po)return e;const n=ul(e);if(!Tb(n,t))return cre(e,n,t);const r=n[t];return e.finalized_||!Ja(r)?r:r===O0(e.base_,t)?(R0(e),e.copy_[t]=zb(r,e)):r},has(e,t){return t in ul(e)},ownKeys(e){return Reflect.ownKeys(ul(e))},set(e,t,n){const r=W_(ul(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=O0(ul(e),t),a=o==null?void 0:o[Po];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(rre(n,o)&&(n!==void 0||Tb(e.base_,t)))return!0;R0(e),kb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return O0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,R0(e),kb(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ul(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){fa(11)},getPrototypeOf(e){return Ws(e.base_)},setPrototypeOf(){fa(12)}},td={};av(IS,(e,t)=>{td[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});td.deleteProperty=function(e,t){return td.set.call(this,e,t,void 0)};td.set=function(e,t,n){return IS.set.call(this,e[0],t,n,e[0])};function O0(e,t){const n=e[Po];return(n?ul(n):e)[t]}function cre(e,t,n){var o;const r=W_(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function W_(e,t){if(!(t in e))return;let n=Ws(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ws(n)}}function kb(e){e.modified_||(e.modified_=!0,e.parent_&&kb(e.parent_))}function R0(e){e.copy_||(e.copy_=_b(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ure=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const i=this;return function(u=a,...d){return i.produce(u,m=>n.call(this,m,...d))}}typeof n!="function"&&fa(6),r!==void 0&&typeof r!="function"&&fa(7);let o;if(Ja(t)){const a=wO(this),i=zb(t,void 0);let s=!0;try{o=n(i),s=!1}finally{s?Db(a):jb(a)}return xO(a,r),$O(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===A_&&(o=void 0),this.autoFreeze_&&RS(o,!0),r){const a=[],i=[];Ml("Patches").generateReplacementPatches_(t,o,a,i),r(a,i)}return o}else fa(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...s)=>this.produceWithPatches(i,u=>t(u,...s));let r,o;return[this.produce(t,n,(i,s)=>{r=i,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ja(e)||fa(8),Nl(e)&&(e=dre(e));const t=wO(this),n=zb(e,void 0);return n[Po].isManual_=!0,jb(t),n}finishDraft(e,t){const n=e&&e[Po];(!n||!n.isManual_)&&fa(9);const{scope_:r}=n;return xO(r,t),$O(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ml("Patches").applyPatches_;return Nl(e)?r(e,t):this.produce(e,o=>r(o,t))}};function zb(e,t){const n=bp(e)?Ml("MapSet").proxyMap_(e,t):Cp(e)?Ml("MapSet").proxySet_(e,t):sre(e,t);return(t?t.scope_:V_()).drafts_.push(n),n}function dre(e){return Nl(e)||fa(10,e),K_(e)}function K_(e){if(!Ja(e)||Sp(e))return e;const t=e[Po];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_b(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_b(e,!0);return av(n,(r,o)=>{H_(n,r,K_(o))}),t&&(t.finalized_=!1),n}var No=new ure,U_=No.produce;No.produceWithPatches.bind(No);No.setAutoFreeze.bind(No);No.setUseStrictShallowCopy.bind(No);No.applyPatches.bind(No);No.createDraft.bind(No);No.finishDraft.bind(No);function q_(e){return({dispatch:n,getState:r})=>o=>a=>typeof a=="function"?a(n,r,e):o(a)}var fre=q_(),mre=q_,vre=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ov:ov.apply(null,arguments)},pre=e=>e&&typeof e.match=="function";function Tu(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Qa(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>tre(r)&&r.type===e,n}var Y_=class xu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xu.prototype)}static get[Symbol.species](){return xu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xu(...t[0].concat(this)):new xu(...t.concat(this))}};function OO(e){return Ja(e)?U_(e,()=>{}):e}function Zf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function gre(e){return typeof e=="boolean"}var hre=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new Y_;return n&&(gre(n)?i.push(fre):i.push(mre(n.extraArgument))),i},yre="RTK_autoBatch",RO=e=>t=>{setTimeout(t,e)},bre=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,a=!1,i=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:RO(10):e.type==="callback"?e.queueNotification:RO(e.timeout),d=()=>{i=!1,a&&(a=!1,s.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const v=()=>o&&m(),p=r.subscribe(v);return s.add(m),()=>{p(),s.delete(m)}},dispatch(m){var v;try{return o=!((v=m==null?void 0:m.meta)!=null&&v[yre]),a=!o,a&&(i||(i=!0,u(d))),r.dispatch(m)}finally{o=!0}}})},Cre=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new Y_(e);return r&&o.push(bre(typeof r=="object"?r:void 0)),o};function Sre(e){const t=hre(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:a=void 0,enhancers:i=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(OS(n))s=Jne(n);else throw new Error(Qa(1));let u;typeof r=="function"?u=r(t):u=t();let d=ov;o&&(d=vre({trace:!1,...typeof o=="object"&&o}));const m=ere(...u),v=Cre(m);let p=typeof i=="function"?i(v):v();const y=d(...p);return F_(s,a,y)}function G_(e){const t={},n=[];let r;const o={addCase(a,i){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(Qa(28));if(s in t)throw new Error(Qa(29));return t[s]=i,o},addMatcher(a,i){return n.push({matcher:a,reducer:i}),o},addDefaultCase(a){return r=a,o}};return e(o),[t,n,r]}function xre(e){return typeof e=="function"}function wre(e,t){let[n,r,o]=G_(t),a;if(xre(e))a=()=>OO(e());else{const s=OO(e);a=()=>s}function i(s=a(),u){let d=[n[u.type],...r.filter(({matcher:m})=>m(u)).map(({reducer:m})=>m)];return d.filter(m=>!!m).length===0&&(d=[o]),d.reduce((m,v)=>{if(v)if(Nl(m)){const y=v(m,u);return y===void 0?m:y}else{if(Ja(m))return U_(m,p=>v(p,u));{const p=v(m,u);if(p===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return m},s)}return i.getInitialState=a,i}var $re=(e,t)=>pre(e)?e.match(t):e(t);function Ere(...e){return t=>e.some(n=>$re(n,t))}var Ore="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rre=(e=21)=>{let t="",n=e;for(;n--;)t+=Ore[Math.random()*64|0];return t},Ire=["name","message","stack","code"],I0=class{constructor(e,t){Jr(this,"_type");this.payload=e,this.meta=t}},IO=class{constructor(e,t){Jr(this,"_type");this.payload=e,this.meta=t}},Pre=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ire)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},PO="External signal was aborted",Nre=(()=>{function e(t,n,r){const o=Tu(t+"/fulfilled",(u,d,m,v)=>({payload:u,meta:{...v||{},arg:m,requestId:d,requestStatus:"fulfilled"}})),a=Tu(t+"/pending",(u,d,m)=>({payload:void 0,meta:{...m||{},arg:d,requestId:u,requestStatus:"pending"}})),i=Tu(t+"/rejected",(u,d,m,v,p)=>({payload:v,error:(r&&r.serializeError||Pre)(u||"Rejected"),meta:{...p||{},arg:m,requestId:d,rejectedWithValue:!!v,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function s(u,{signal:d}={}){return(m,v,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):Rre(),h=new AbortController;let C,g;function S(w){g=w,h.abort()}d&&(d.aborted?S(PO):d.addEventListener("abort",()=>S(PO),{once:!0}));const x=async function(){var $,O;let w;try{let I=($=r==null?void 0:r.condition)==null?void 0:$.call(r,u,{getState:v,extra:p});if(Tre(I)&&(I=await I),I===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise((P,T)=>{C=()=>{T({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",C)});m(a(y,u,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:y,arg:u},{getState:v,extra:p}))),w=await Promise.race([N,Promise.resolve(n(u,{dispatch:m,getState:v,extra:p,requestId:y,signal:h.signal,abort:S,rejectWithValue:(P,T)=>new I0(P,T),fulfillWithValue:(P,T)=>new IO(P,T)})).then(P=>{if(P instanceof I0)throw P;return P instanceof IO?o(P.payload,y,u,P.meta):o(P,y,u)})])}catch(I){w=I instanceof I0?i(null,y,u,I.payload,I.meta):i(I,y,u)}finally{C&&h.signal.removeEventListener("abort",C)}return r&&!r.dispatchConditionRejection&&i.match(w)&&w.meta.condition||m(w),w}();return Object.assign(x,{abort:S,requestId:y,arg:u,unwrap(){return x.then(Mre)}})}}return Object.assign(s,{pending:a,rejected:i,fulfilled:o,settled:Ere(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Mre(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Tre(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _re=Symbol.for("rtk-slice-createasyncthunk");function Dre(e,t){return`${e}/${t}`}function jre({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[_re];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(Qa(11));const s=(typeof o.reducers=="function"?o.reducers(Lre()):o.reducers)||{},u=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(R,$){const O=typeof R=="string"?R:R.type;if(!O)throw new Error(Qa(12));if(O in d.sliceCaseReducersByType)throw new Error(Qa(13));return d.sliceCaseReducersByType[O]=$,m},addMatcher(R,$){return d.sliceMatchers.push({matcher:R,reducer:$}),m},exposeAction(R,$){return d.actionCreators[R]=$,m},exposeCaseReducer(R,$){return d.sliceCaseReducersByName[R]=$,m}};u.forEach(R=>{const $=s[R],O={reducerName:R,type:Dre(a,R),createNotation:typeof o.reducers=="function"};Are($)?Hre(O,$,m,t):Fre(O,$,m)});function v(){const[R={},$=[],O=void 0]=typeof o.extraReducers=="function"?G_(o.extraReducers):[o.extraReducers],I={...R,...d.sliceCaseReducersByType};return wre(o.initialState,N=>{for(let P in I)N.addCase(P,I[P]);for(let P of d.sliceMatchers)N.addMatcher(P.matcher,P.reducer);for(let P of $)N.addMatcher(P.matcher,P.reducer);O&&N.addDefaultCase(O)})}const p=R=>R,y=new Map,h=new WeakMap;let C;function g(R,$){return C||(C=v()),C(R,$)}function S(){return C||(C=v()),C.getInitialState()}function x(R,$=!1){function O(N){let P=N[R];return typeof P>"u"&&$&&(P=Zf(h,O,S)),P}function I(N=p){const P=Zf(y,$,()=>new WeakMap);return Zf(P,N,()=>{const T={};for(const[k,H]of Object.entries(o.selectors??{}))T[k]=kre(H,N,()=>Zf(h,N,S),$);return T})}return{reducerPath:R,getSelectors:I,get selectors(){return I(O)},selectSlice:O}}const w={name:a,reducer:g,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:S,...x(i),injectInto(R,{reducerPath:$,...O}={}){const I=$??i;return R.inject({reducerPath:I,reducer:g},O),{...w,...x(I,!0)}}};return w}}function kre(e,t,n,r){function o(a,...i){let s=t(a);return typeof s>"u"&&r&&(s=n()),e(s,...i)}return o.unwrapped=e,o}var zre=jre();function Lre(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Fre({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!Bre(r))throw new Error(Qa(17));a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?Tu(e,i):Tu(e))}function Are(e){return e._reducerDefinitionType==="asyncThunk"}function Bre(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hre({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Qa(18));const{payloadCreator:a,fulfilled:i,pending:s,rejected:u,settled:d,options:m}=n,v=o(e,a,m);r.exposeAction(t,v),i&&r.addCase(v.fulfilled,i),s&&r.addCase(v.pending,s),u&&r.addCase(v.rejected,u),d&&r.addMatcher(v.settled,d),r.exposeCaseReducer(t,{fulfilled:i||Jf,pending:s||Jf,rejected:u||Jf,settled:d||Jf})}function Jf(){}function Qa(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Vre="modulepreload",Wre=function(e){return"/"+e},NO={},Kre=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let i=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),u=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=i(n.map(d=>{if(d=Wre(d),d in NO)return;NO[d]=!0;const m=d.endsWith(".css"),v=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${v}`))return;const p=document.createElement("link");if(p.rel=m?"stylesheet":Vre,m||(p.as="script"),p.crossOrigin="",p.href=d,u&&p.setAttribute("nonce",u),document.head.appendChild(p),m)return new Promise((y,h)=>{p.addEventListener("load",y),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function X_(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ure}=Object.prototype,{getPrototypeOf:PS}=Object,{iterator:xp,toStringTag:Q_}=Symbol,wp=(e=>t=>{const n=Ure.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),t=>wp(t)===e),$p=e=>t=>typeof t===e,{isArray:mc}=Array,nd=$p("undefined");function qre(e){return e!==null&&!nd(e)&&e.constructor!==null&&!nd(e.constructor)&&mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Z_=$a("ArrayBuffer");function Yre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Z_(e.buffer),t}const Gre=$p("string"),mo=$p("function"),J_=$p("number"),Ep=e=>e!==null&&typeof e=="object",Xre=e=>e===!0||e===!1,$m=e=>{if(wp(e)!=="object")return!1;const t=PS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Q_ in e)&&!(xp in e)},Qre=$a("Date"),Zre=$a("File"),Jre=$a("Blob"),eoe=$a("FileList"),toe=e=>Ep(e)&&mo(e.pipe),noe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mo(e.append)&&((t=wp(e))==="formdata"||t==="object"&&mo(e.toString)&&e.toString()==="[object FormData]"))},roe=$a("URLSearchParams"),[ooe,aoe,ioe,loe]=["ReadableStream","Request","Response","Headers"].map($a),soe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $d(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),mc(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(r=0;r<i;r++)s=a[r],t.call(null,e[s],s,e)}}function e4(e,t){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 hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,t4=e=>!nd(e)&&e!==hl;function Lb(){const{caseless:e}=t4(this)&&this||{},t={},n=(r,o)=>{const a=e&&e4(t,o)||o;$m(t[a])&&$m(r)?t[a]=Lb(t[a],r):$m(r)?t[a]=Lb({},r):mc(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&$d(arguments[r],n);return t}const coe=(e,t,n,{allOwnKeys:r}={})=>($d(t,(o,a)=>{n&&mo(o)?e[a]=X_(o,n):e[a]=o},{allOwnKeys:r}),e),uoe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),doe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},foe=(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&PS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},moe=(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},voe=e=>{if(!e)return null;if(mc(e))return e;let t=e.length;if(!J_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},poe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&PS(Uint8Array)),goe=(e,t)=>{const r=(e&&e[xp]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},hoe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yoe=$a("HTMLFormElement"),boe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),MO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Coe=$a("RegExp"),n4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$d(n,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},Soe=e=>{n4(e,(t,n)=>{if(mo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mo(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+"'")})}})},xoe=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return mc(e)?r(e):r(String(e).split(t)),n},woe=()=>{},$oe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Eoe(e){return!!(e&&mo(e.append)&&e[Q_]==="FormData"&&e[xp])}const Ooe=e=>{const t=new Array(10),n=(r,o)=>{if(Ep(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=mc(r)?[]:{};return $d(r,(i,s)=>{const u=n(i,o+1);!nd(u)&&(a[s]=u)}),t[o]=void 0,a}}return r};return n(e,0)},Roe=$a("AsyncFunction"),Ioe=e=>e&&(Ep(e)||mo(e))&&mo(e.then)&&mo(e.catch),r4=((e,t)=>e?setImmediate:t?((n,r)=>(hl.addEventListener("message",({source:o,data:a})=>{o===hl&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),hl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mo(hl.postMessage)),Poe=typeof queueMicrotask<"u"?queueMicrotask.bind(hl):typeof process<"u"&&process.nextTick||r4,Noe=e=>e!=null&&mo(e[xp]),Xe={isArray:mc,isArrayBuffer:Z_,isBuffer:qre,isFormData:noe,isArrayBufferView:Yre,isString:Gre,isNumber:J_,isBoolean:Xre,isObject:Ep,isPlainObject:$m,isReadableStream:ooe,isRequest:aoe,isResponse:ioe,isHeaders:loe,isUndefined:nd,isDate:Qre,isFile:Zre,isBlob:Jre,isRegExp:Coe,isFunction:mo,isStream:toe,isURLSearchParams:roe,isTypedArray:poe,isFileList:eoe,forEach:$d,merge:Lb,extend:coe,trim:soe,stripBOM:uoe,inherits:doe,toFlatObject:foe,kindOf:wp,kindOfTest:$a,endsWith:moe,toArray:voe,forEachEntry:goe,matchAll:hoe,isHTMLForm:yoe,hasOwnProperty:MO,hasOwnProp:MO,reduceDescriptors:n4,freezeMethods:Soe,toObjectSet:xoe,toCamelCase:boe,noop:woe,toFiniteNumber:$oe,findKey:e4,global:hl,isContextDefined:t4,isSpecCompliantForm:Eoe,toJSONObject:Ooe,isAsyncFn:Roe,isThenable:Ioe,setImmediate:r4,asap:Poe,isIterable:Noe};function hn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Xe.inherits(hn,Error,{toJSON:function(){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:Xe.toJSONObject(this.config),code:this.code,status:this.status}}});const o4=hn.prototype,a4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{a4[e]={value:e}});Object.defineProperties(hn,a4);Object.defineProperty(o4,"isAxiosError",{value:!0});hn.from=(e,t,n,r,o,a)=>{const i=Object.create(o4);return Xe.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),hn.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Moe=null;function Fb(e){return Xe.isPlainObject(e)||Xe.isArray(e)}function i4(e){return Xe.endsWith(e,"[]")?e.slice(0,-2):e}function TO(e,t,n){return e?e.concat(t).map(function(o,a){return o=i4(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function Toe(e){return Xe.isArray(e)&&!e.some(Fb)}const _oe=Xe.toFlatObject(Xe,{},null,function(t){return/^is[A-Z]/.test(t)});function Op(e,t,n){if(!Xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,g){return!Xe.isUndefined(g[C])});const r=n.metaTokens,o=n.visitor||m,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Xe.isSpecCompliantForm(t);if(!Xe.isFunction(o))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(Xe.isDate(h))return h.toISOString();if(Xe.isBoolean(h))return h.toString();if(!u&&Xe.isBlob(h))throw new hn("Blob is not supported. Use a Buffer instead.");return Xe.isArrayBuffer(h)||Xe.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function m(h,C,g){let S=h;if(h&&!g&&typeof h=="object"){if(Xe.endsWith(C,"{}"))C=r?C:C.slice(0,-2),h=JSON.stringify(h);else if(Xe.isArray(h)&&Toe(h)||(Xe.isFileList(h)||Xe.endsWith(C,"[]"))&&(S=Xe.toArray(h)))return C=i4(C),S.forEach(function(w,R){!(Xe.isUndefined(w)||w===null)&&t.append(i===!0?TO([C],R,a):i===null?C:C+"[]",d(w))}),!1}return Fb(h)?!0:(t.append(TO(g,C,a),d(h)),!1)}const v=[],p=Object.assign(_oe,{defaultVisitor:m,convertValue:d,isVisitable:Fb});function y(h,C){if(!Xe.isUndefined(h)){if(v.indexOf(h)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(h),Xe.forEach(h,function(S,x){(!(Xe.isUndefined(S)||S===null)&&o.call(t,S,Xe.isString(x)?x.trim():x,C,p))===!0&&y(S,C?C.concat(x):[x])}),v.pop()}}if(!Xe.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _O(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function NS(e,t){this._pairs=[],e&&Op(e,this,t)}const l4=NS.prototype;l4.append=function(t,n){this._pairs.push([t,n])};l4.toString=function(t){const n=t?function(r){return t.call(this,r,_O)}:_O;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Doe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s4(e,t,n){if(!t)return e;const r=n&&n.encode||Doe;Xe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Xe.isURLSearchParams(t)?t.toString():new NS(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class DO{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){Xe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const c4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},joe=typeof URLSearchParams<"u"?URLSearchParams:NS,koe=typeof FormData<"u"?FormData:null,zoe=typeof Blob<"u"?Blob:null,Loe={isBrowser:!0,classes:{URLSearchParams:joe,FormData:koe,Blob:zoe},protocols:["http","https","file","blob","url","data"]},MS=typeof window<"u"&&typeof document<"u",Ab=typeof navigator=="object"&&navigator||void 0,Foe=MS&&(!Ab||["ReactNative","NativeScript","NS"].indexOf(Ab.product)<0),Aoe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Boe=MS&&window.location.href||"http://localhost",Hoe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:MS,hasStandardBrowserEnv:Foe,hasStandardBrowserWebWorkerEnv:Aoe,navigator:Ab,origin:Boe},Symbol.toStringTag,{value:"Module"})),Yr={...Hoe,...Loe};function Voe(e,t){return Op(e,new Yr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Yr.isNode&&Xe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Woe(e){return Xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Koe(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function u4(e){function t(n,r,o,a){let i=n[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),u=a>=n.length;return i=!i&&Xe.isArray(o)?o.length:i,u?(Xe.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!s):((!o[i]||!Xe.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Xe.isArray(o[i])&&(o[i]=Koe(o[i])),!s)}if(Xe.isFormData(e)&&Xe.isFunction(e.entries)){const n={};return Xe.forEachEntry(e,(r,o)=>{t(Woe(r),o,n,0)}),n}return null}function Uoe(e,t,n){if(Xe.isString(e))try{return(t||JSON.parse)(e),Xe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ed={transitional:c4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Xe.isObject(t);if(a&&Xe.isHTMLForm(t)&&(t=new FormData(t)),Xe.isFormData(t))return o?JSON.stringify(u4(t)):t;if(Xe.isArrayBuffer(t)||Xe.isBuffer(t)||Xe.isStream(t)||Xe.isFile(t)||Xe.isBlob(t)||Xe.isReadableStream(t))return t;if(Xe.isArrayBufferView(t))return t.buffer;if(Xe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Voe(t,this.formSerializer).toString();if((s=Xe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Op(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Uoe(t)):t}],transformResponse:[function(t){const n=this.transitional||Ed.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Xe.isResponse(t)||Xe.isReadableStream(t))return t;if(t&&Xe.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?hn.from(s,hn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yr.classes.FormData,Blob:Yr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xe.forEach(["delete","get","head","post","put","patch"],e=>{Ed.headers[e]={}});const qoe=Xe.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"]),Yoe=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&qoe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},jO=Symbol("internals");function au(e){return e&&String(e).trim().toLowerCase()}function Em(e){return e===!1||e==null?e:Xe.isArray(e)?e.map(Em):String(e)}function Goe(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 Xoe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function P0(e,t,n,r,o){if(Xe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Xe.isString(t)){if(Xe.isString(r))return t.indexOf(r)!==-1;if(Xe.isRegExp(r))return r.test(t)}}function Qoe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Zoe(e,t){const n=Xe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}let vo=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(s,u,d){const m=au(u);if(!m)throw new Error("header name must be a non-empty string");const v=Xe.findKey(o,m);(!v||o[v]===void 0||d===!0||d===void 0&&o[v]!==!1)&&(o[v||u]=Em(s))}const i=(s,u)=>Xe.forEach(s,(d,m)=>a(d,m,u));if(Xe.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(Xe.isString(t)&&(t=t.trim())&&!Xoe(t))i(Yoe(t),n);else if(Xe.isObject(t)&&Xe.isIterable(t)){let s={},u,d;for(const m of t){if(!Xe.isArray(m))throw TypeError("Object iterator must return a key-value pair");s[d=m[0]]=(u=s[d])?Xe.isArray(u)?[...u,m[1]]:[u,m[1]]:m[1]}i(s,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=au(t),t){const r=Xe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Goe(o);if(Xe.isFunction(n))return n.call(this,o,r);if(Xe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=au(t),t){const r=Xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||P0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=au(i),i){const s=Xe.findKey(r,i);s&&(!n||P0(r,r[s],s,n))&&(delete r[s],o=!0)}}return Xe.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||P0(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Xe.forEach(this,(o,a)=>{const i=Xe.findKey(r,a);if(i){n[i]=Em(o),delete n[a];return}const s=t?Qoe(a):String(a).trim();s!==a&&delete n[a],n[s]=Em(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Xe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Xe.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(`
`)}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[jO]=this[jO]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=au(i);r[s]||(Zoe(o,i),r[s]=!0)}return Xe.isArray(t)?t.forEach(a):a(t),this}};vo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Xe.reduceDescriptors(vo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Xe.freezeMethods(vo);function N0(e,t){const n=this||Ed,r=t||n,o=vo.from(r.headers);let a=r.data;return Xe.forEach(e,function(s){a=s.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function d4(e){return!!(e&&e.__CANCEL__)}function vc(e,t,n){hn.call(this,e??"canceled",hn.ERR_CANCELED,t,n),this.name="CanceledError"}Xe.inherits(vc,hn,{__CANCEL__:!0});function f4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new hn("Request failed with status code "+n.status,[hn.ERR_BAD_REQUEST,hn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Joe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eae(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),m=r[a];i||(i=d),n[o]=u,r[o]=d;let v=a,p=0;for(;v!==o;)p+=n[v++],v=v%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-i<t)return;const y=m&&d-m;return y?Math.round(p*1e3/y):void 0}}function tae(e,t){let n=0,r=1e3/t,o,a;const i=(d,m=Date.now())=>{n=m,o=null,a&&(clearTimeout(a),a=null),e.apply(null,d)};return[(...d)=>{const m=Date.now(),v=m-n;v>=r?i(d,m):(o=d,a||(a=setTimeout(()=>{a=null,i(o)},r-v)))},()=>o&&i(o)]}const sv=(e,t,n=3)=>{let r=0;const o=eae(50,250);return tae(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,u=i-r,d=o(u),m=i<=s;r=i;const v={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:d||void 0,estimated:d&&s&&m?(s-i)/d:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(v)},n)},kO=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zO=e=>(...t)=>Xe.asap(()=>e(...t)),nae=Yr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yr.origin),Yr.navigator&&/(msie|trident)/i.test(Yr.navigator.userAgent)):()=>!0,rae=Yr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];Xe.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Xe.isString(r)&&i.push("path="+r),Xe.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oae(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aae(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function m4(e,t,n){let r=!oae(t);return e&&(r||n==!1)?aae(e,t):t}const LO=e=>e instanceof vo?{...e}:e;function Tl(e,t){t=t||{};const n={};function r(d,m,v,p){return Xe.isPlainObject(d)&&Xe.isPlainObject(m)?Xe.merge.call({caseless:p},d,m):Xe.isPlainObject(m)?Xe.merge({},m):Xe.isArray(m)?m.slice():m}function o(d,m,v,p){if(Xe.isUndefined(m)){if(!Xe.isUndefined(d))return r(void 0,d,v,p)}else return r(d,m,v,p)}function a(d,m){if(!Xe.isUndefined(m))return r(void 0,m)}function i(d,m){if(Xe.isUndefined(m)){if(!Xe.isUndefined(d))return r(void 0,d)}else return r(void 0,m)}function s(d,m,v){if(v in t)return r(d,m);if(v in e)return r(void 0,d)}const u={url:a,method:a,data:a,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,responseEncoding:i,validateStatus:s,headers:(d,m,v)=>o(LO(d),LO(m),v,!0)};return Xe.forEach(Object.keys(Object.assign({},e,t)),function(m){const v=u[m]||o,p=v(e[m],t[m],m);Xe.isUndefined(p)&&v!==s||(n[m]=p)}),n}const v4=e=>{const t=Tl({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;t.headers=i=vo.from(i),t.url=s4(m4(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(Xe.isFormData(n)){if(Yr.hasStandardBrowserEnv||Yr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[d,...m]=u?u.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...m].join("; "))}}if(Yr.hasStandardBrowserEnv&&(r&&Xe.isFunction(r)&&(r=r(t)),r||r!==!1&&nae(t.url))){const d=o&&a&&rae.read(a);d&&i.set(o,d)}return t},iae=typeof XMLHttpRequest<"u",lae=iae&&function(e){return new Promise(function(n,r){const o=v4(e);let a=o.data;const i=vo.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:d}=o,m,v,p,y,h;function C(){y&&y(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function S(){if(!g)return;const w=vo.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),$={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};f4(function(I){n(I),C()},function(I){r(I),C()},$),g=null}"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(r(new hn("Request aborted",hn.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new hn("Network Error",hn.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||c4;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new hn(R,$.clarifyTimeoutError?hn.ETIMEDOUT:hn.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&Xe.forEach(i.toJSON(),function(R,$){g.setRequestHeader($,R)}),Xe.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),s&&s!=="json"&&(g.responseType=o.responseType),d&&([p,h]=sv(d,!0),g.addEventListener("progress",p)),u&&g.upload&&([v,y]=sv(u),g.upload.addEventListener("progress",v),g.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(m=w=>{g&&(r(!w||w.type?new vc(null,e,g):w),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const x=Joe(o.url);if(x&&Yr.protocols.indexOf(x)===-1){r(new hn("Unsupported protocol "+x+":",hn.ERR_BAD_REQUEST,e));return}g.send(a||null)})},sae=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,s();const m=d instanceof Error?d:this.reason;r.abort(m instanceof hn?m:new vc(m instanceof Error?m.message:m))}};let i=t&&setTimeout(()=>{i=null,a(new hn(`timeout ${t} of ms exceeded`,hn.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>Xe.asap(s),u}},cae=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},uae=async function*(e,t){for await(const n of dae(e))yield*cae(n,t)},dae=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()}},FO=(e,t,n,r)=>{const o=uae(e,t);let a=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await o.next();if(d){s(),u.close();return}let v=m.byteLength;if(n){let p=a+=v;n(p)}u.enqueue(new Uint8Array(m))}catch(d){throw s(d),d}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Rp=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",p4=Rp&&typeof ReadableStream=="function",fae=Rp&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),g4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mae=p4&&g4(()=>{let e=!1;const t=new Request(Yr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),AO=64*1024,Bb=p4&&g4(()=>Xe.isReadableStream(new Response("").body)),cv={stream:Bb&&(e=>e.body)};Rp&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!cv[t]&&(cv[t]=Xe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new hn(`Response type '${t}' is not supported`,hn.ERR_NOT_SUPPORT,r)})})})(new Response);const vae=async e=>{if(e==null)return 0;if(Xe.isBlob(e))return e.size;if(Xe.isSpecCompliantForm(e))return(await new Request(Yr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Xe.isArrayBufferView(e)||Xe.isArrayBuffer(e))return e.byteLength;if(Xe.isURLSearchParams(e)&&(e=e+""),Xe.isString(e))return(await fae(e)).byteLength},pae=async(e,t)=>{const n=Xe.toFiniteNumber(e.getContentLength());return n??vae(t)},gae=Rp&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:u,responseType:d,headers:m,withCredentials:v="same-origin",fetchOptions:p}=v4(e);d=d?(d+"").toLowerCase():"text";let y=sae([o,a&&a.toAbortSignal()],i),h;const C=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let g;try{if(u&&mae&&n!=="get"&&n!=="head"&&(g=await pae(m,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(Xe.isFormData(r)&&(O=$.headers.get("content-type"))&&m.setContentType(O),$.body){const[I,N]=kO(g,sv(zO(u)));r=FO($.body,AO,I,N)}}Xe.isString(v)||(v=v?"include":"omit");const S="credentials"in Request.prototype;h=new Request(t,{...p,signal:y,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:S?v:void 0});let x=await fetch(h,p);const w=Bb&&(d==="stream"||d==="response");if(Bb&&(s||w&&C)){const $={};["status","statusText","headers"].forEach(P=>{$[P]=x[P]});const O=Xe.toFiniteNumber(x.headers.get("content-length")),[I,N]=s&&kO(O,sv(zO(s),!0))||[];x=new Response(FO(x.body,AO,I,()=>{N&&N(),C&&C()}),$)}d=d||"text";let R=await cv[Xe.findKey(cv,d)||"text"](x,e);return!w&&C&&C(),await new Promise(($,O)=>{f4($,O,{data:R,headers:vo.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:h})})}catch(S){throw C&&C(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new hn("Network Error",hn.ERR_NETWORK,e,h),{cause:S.cause||S}):hn.from(S,S&&S.code,e,h)}}),Hb={http:Moe,xhr:lae,fetch:gae};Xe.forEach(Hb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const BO=e=>`- ${e}`,hae=e=>Xe.isFunction(e)||e===null||e===!1,h4={getAdapter:e=>{e=Xe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){n=e[a];let i;if(r=n,!hae(n)&&(r=Hb[(i=String(n)).toLowerCase()],r===void 0))throw new hn(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+a]=r}if(!r){const a=Object.entries(o).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
`+a.map(BO).join(`
`):" "+BO(a[0]):"as no adapter specified";throw new hn("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Hb};function M0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vc(null,e)}function HO(e){return M0(e),e.headers=vo.from(e.headers),e.data=N0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),h4.getAdapter(e.adapter||Ed.adapter)(e).then(function(r){return M0(e),r.data=N0.call(e,e.transformResponse,r),r.headers=vo.from(r.headers),r},function(r){return d4(r)||(M0(e),r&&r.response&&(r.response.data=N0.call(e,e.transformResponse,r.response),r.response.headers=vo.from(r.response.headers))),Promise.reject(r)})}const y4="1.10.0",Ip={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ip[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const VO={};Ip.transitional=function(t,n,r){function o(a,i){return"[Axios v"+y4+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(t===!1)throw new hn(o(i," has been removed"+(n?" in "+n:"")),hn.ERR_DEPRECATED);return n&&!VO[i]&&(VO[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};Ip.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function yae(e,t,n){if(typeof e!="object")throw new hn("options must be an object",hn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const s=e[a],u=s===void 0||i(s,a,e);if(u!==!0)throw new hn("option "+a+" must be "+u,hn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new hn("Unknown option "+a,hn.ERR_BAD_OPTION)}}const Om={assertOptions:yae,validators:Ip},Na=Om.validators;let bl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new DO,response:new DO}}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 a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}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:a}=n;r!==void 0&&Om.assertOptions(r,{silentJSONParsing:Na.transitional(Na.boolean),forcedJSONParsing:Na.transitional(Na.boolean),clarifyTimeoutError:Na.transitional(Na.boolean)},!1),o!=null&&(Xe.isFunction(o)?n.paramsSerializer={serialize:o}:Om.assertOptions(o,{encode:Na.function,serialize:Na.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Om.assertOptions(n,{baseUrl:Na.spelling("baseURL"),withXsrfToken:Na.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Xe.merge(a.common,a[n.method]);a&&Xe.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=vo.concat(i,a);const s=[];let u=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(u=u&&C.synchronous,s.unshift(C.fulfilled,C.rejected))});const d=[];this.interceptors.response.forEach(function(C){d.push(C.fulfilled,C.rejected)});let m,v=0,p;if(!u){const h=[HO.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,d),p=h.length,m=Promise.resolve(n);v<p;)m=m.then(h[v++],h[v++]);return m}p=s.length;let y=n;for(v=0;v<p;){const h=s[v++],C=s[v++];try{y=h(y)}catch(g){C.call(this,g);break}}try{m=HO.call(this,y)}catch(h){return Promise.reject(h)}for(v=0,p=d.length;v<p;)m=m.then(d[v++],d[v++]);return m}getUri(t){t=Tl(this.defaults,t);const n=m4(t.baseURL,t.url,t.allowAbsoluteUrls);return s4(n,t.params,t.paramsSerializer)}};Xe.forEach(["delete","get","head","options"],function(t){bl.prototype[t]=function(n,r){return this.request(Tl(r||{},{method:t,url:n,data:(r||{}).data}))}});Xe.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(Tl(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}bl.prototype[t]=n(),bl.prototype[t+"Form"]=n(!0)});let bae=class b4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,s){r.reason||(r.reason=new vc(a,i,s),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 b4(function(o){t=o}),cancel:t}}};function Cae(e){return function(n){return e.apply(null,n)}}function Sae(e){return Xe.isObject(e)&&e.isAxiosError===!0}const Vb={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};Object.entries(Vb).forEach(([e,t])=>{Vb[t]=e});function C4(e){const t=new bl(e),n=X_(bl.prototype.request,t);return Xe.extend(n,bl.prototype,t,{allOwnKeys:!0}),Xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return C4(Tl(e,o))},n}const mr=C4(Ed);mr.Axios=bl;mr.CanceledError=vc;mr.CancelToken=bae;mr.isCancel=d4;mr.VERSION=y4;mr.toFormData=Op;mr.AxiosError=hn;mr.Cancel=mr.CanceledError;mr.all=function(t){return Promise.all(t)};mr.spread=Cae;mr.isAxiosError=Sae;mr.mergeConfig=Tl;mr.AxiosHeaders=vo;mr.formToJSON=e=>u4(Xe.isHTMLForm(e)?new FormData(e):e);mr.getAdapter=h4.getAdapter;mr.HttpStatusCode=Vb;mr.default=mr;const{Axios:wie,AxiosError:$ie,CanceledError:Eie,isCancel:Oie,CancelToken:Rie,VERSION:Iie,all:Pie,Cancel:Nie,isAxiosError:Mie,spread:Tie,toFormData:_ie,AxiosHeaders:Die,HttpStatusCode:jie,formToJSON:kie,getAdapter:zie,mergeConfig:Lie}=mr,TS="/api",En=mr.create({baseURL:TS,timeout:3e4});En.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));En.interceptors.response.use(e=>{if(e.config.skipInterceptor)return e;const n=e.headers.authorization||e.headers.Authorization;if(n){const i=n.replace(/^Bearer\s+/i,"");localStorage.setItem("token",i)}const{code:r,message:o,data:a}=e.data;return r===0?a:(Mn.error(o),Promise.reject(new Error(o)))},async e=>{if(e.response){const t=e.response.status,{store:n}=await Kre(async()=>{const{store:r}=await Promise.resolve().then(()=>iie);return{store:r}},[]);t===403&&(Mn.error("请登录后重试"),n.dispatch(w4()),window.location.href="/login")}});const S4=Nre("auth/login",async(e,t)=>await En.post("/login",e)),x4=zre({name:"authSlice",initialState:{userId:null,name:null,roles:[],token:null},reducers:{logout(e){e.userId=null,e.name=null,e.token=null,e.roles=[],localStorage.removeItem("userId"),localStorage.removeItem("name"),localStorage.removeItem("roles"),localStorage.removeItem("token")}},extraReducers:e=>{e.addCase(S4.fulfilled,(t,n)=>{const r=n.payload;t.userId=r.userId,t.name=r.name,t.roles=r.roles,t.token=r.token,localStorage.setItem("userId",r.userId),localStorage.setItem("name",r.name),localStorage.setItem("roles",JSON.stringify(r.roles)),localStorage.setItem("token",n.payload.token)})}}),{logout:w4}=x4.actions,Pp=e=>e.auth.roles,xae=e=>e.auth.name,pc=e=>e.auth.userId,wae=x4.reducer;function $ae(){const e=ei(),t=pv(),n=uR(),r=Xo(xae),[o,a]=l.useState(!1),{token:{colorBgContainer:i,borderRadiusLG:s}}=Sne.useToken(),u=Xo(Pp),d=Gne.filter(h=>!h.roles||h.roles.some(C=>u.includes(C))),m=[{key:"logout",label:"退出登录"}],v=({key:h})=>{h==="logout"&&(n(w4()),Mn.success("已退出登录"),t("/login"))},p=h=>[...h].sort((C,g)=>(C.order??999)-(g.order??999)).map(C=>({...C,children:C.children?p(C.children):void 0})),y=h=>p(h).map(C=>C.children?{key:C.label,label:C.label,icon:C.icon?pe.createElement(C.icon):null,children:y(C.children)}:{key:C.path,label:C.label,icon:C.icon?pe.createElement(C.icon):null});return me.jsxs(Il,{style:{minHeight:"100vh"},children:[me.jsxs(YC,{collapsible:!0,collapsed:o,onCollapse:h=>a(h),children:[me.jsx("div",{className:"demo-logo-vertical"}),me.jsx(kl,{theme:"dark",selectedKeys:[e.pathname],mode:"inline",items:y(d),onClick:({key:h})=>t(h)})]}),me.jsxs(Il,{children:[me.jsx(YT,{style:{padding:0,background:i},className:"flex justify-end",children:me.jsx(cp,{menu:{items:m,onClick:v},className:"p-4",children:me.jsxs(ta,{children:[r,me.jsx(A6,{})]})})}),me.jsx(GT,{style:{margin:"16px 16px",background:i,borderRadius:s},children:me.jsx(NR,{})})]})]})}const Eae={USER:"/user/reserve",ADMIN:"/admin/user-manage",LEADER:"/approval",DEVICE_ADMIN:"/approval"};function Oae(){const e=uR(),t=pv(),n=async r=>{const a=(await e(S4(r)).unwrap()).roles.map(i=>Eae[i]).find(Boolean);a?(Mn.success("登录成功"),t(a)):Mn.error("系统错误")};return me.jsxs("div",{className:"w-screen h-screen flex justify-center items-center flex-col",children:[me.jsx("h1",{className:"m-6 text-gray-800 font-mono text-4xl",children:"电科院材料所实验室仪器设备预约系统"}),me.jsxs(sn,{name:"login",autoComplete:"off",initialValues:{size:"large"},size:"large",onFinish:n,className:"w-1/4",children:[me.jsx(sn.Item,{name:"username",rules:[{required:!0,message:"请输入用户名"}],children:me.jsx(Ln,{prefix:me.jsx(GR,{}),placeholder:"请输入用户名"})}),me.jsx(sn.Item,{name:"password",rules:[{required:!0,message:"请输入密码"}],children:me.jsx(Ln.Password,{prefix:me.jsx(cz,{}),placeholder:"请输入密码"})}),me.jsx(up,{justify:"flex-end",children:me.jsx(sn.Item,{label:null,children:me.jsx(Sn,{type:"primary",htmlType:"submit",children:"登录"})})})]})]})}function Rae(){const[e,t]=l.useState([]),[n,r]=l.useState({current:1,pageSize:10,total:0}),o=Xo(pc),a=Xo(Pp);let i=!1;a.some(m=>m==="DEVICE_ADMIN")&&(i=!0);const s=async m=>{const v=await En.get(`/reservation/approval/${o}`,{params:{page:m.current,size:m.pageSize}});t(v.records),r({...m,total:v.total})};l.useEffect(()=>{s(n)},[]);const u=async m=>{await s(m)},d=async(m,v,p)=>{await En.post("/approval",{userId:o,reservationId:m,isApprove:v,needAssist:p}),Mn.success("审核成功");const y={...n,current:1};r(y),await s(y)};return me.jsxs(Dr,{dataSource:e,pagination:n,rowKey:"reservationId",onChange:u,children:[me.jsx(yn,{title:"预约人",dataIndex:"applicantName"},"applicantName"),me.jsx(yn,{title:"所属团队",dataIndex:"applicantTeam"},"applicantTeam"),me.jsx(yn,{title:"联系方式",dataIndex:"applicantContact"},"applicantContact"),me.jsx(yn,{title:"预约设备",dataIndex:"deviceName"},"deviceName"),me.jsx(yn,{title:"开始时间",dataIndex:"startTime"},"startTime"),me.jsx(yn,{title:"结束时间",dataIndex:"endTime"},"endTime"),me.jsx(yn,{title:"操作",render:(m,v)=>me.jsxs(ta,{children:[me.jsx(Sn,{type:"primary",size:"small",onClick:()=>d(v.reservationId,!0,!1),children:"批准"}),i&&me.jsx(Sn,{color:"green",variant:"solid",size:"small",onClick:()=>d(v.reservationId,!0,!0),children:"批准(需要协助)"}),me.jsx(Sn,{color:"danger",variant:"solid",size:"small",onClick:()=>d(v.reservationId,!1,!1),children:"拒绝"})]})},"action")]})}function Iae(){const[e,t]=l.useState([]),[n]=lS(),[r,o]=l.useState({current:1,pageSize:10,total:0}),[a,i]=l.useState(null),[s,u]=l.useState(null),d=Xo(pc),m=Xo(Pp),v=async(C,g)=>{const S=await En.get(`/approval/${d}`,{params:{page:C.current,size:C.pageSize,applicantName:g==null?void 0:g.applicantName,deviceName:g==null?void 0:g.deviceName}});t(S.records),o({...C,total:S.total})};l.useEffect(()=>{v(r)},[]);const p=async C=>{const g=await n.validateFields();v(C,g)},y=async()=>{const C=await n.validateFields(),g={...r,current:1};o(g),await v(g,C)},h=async C=>{try{await En.post(`/reservation/endTime/${C.reservationId}`,{endTime:bn(s).format("YYYY-MM-DD")});const g=await n.validateFields();await v(r,g),i(null),Mn.success("修改成功")}catch{Mn.error("修改失败")}};return me.jsxs("div",{className:"p-2 pt-4",children:[me.jsxs(sn,{form:n,layout:"inline",onFinish:y,children:[me.jsx(sn.Item,{name:"applicantName",children:me.jsx(Ln,{placeholder:"请输入预约人姓名",allowClear:!0})}),me.jsx(sn.Item,{name:"deviceName",children:me.jsx(Ln,{placeholder:"请输入设备名称",allowClear:!0})}),me.jsx(sn.Item,{children:me.jsx(Sn,{type:"primary",htmlType:"submit",children:"搜索"})})]}),me.jsxs(Dr,{dataSource:e,pagination:r,onChange:p,className:"mt-4",rowKey:"approvalId",children:[me.jsx(yn,{title:"预约人",dataIndex:"applicantName"},"applicantName"),me.jsx(yn,{title:"所属团队",dataIndex:"applicantTeam"},"applicantTeam"),me.jsx(yn,{title:"联系方式",dataIndex:"applicantContact"},"applicantContact"),me.jsx(yn,{title:"预约设备",dataIndex:"deviceName"},"deviceName"),me.jsx(yn,{title:"开始时间",dataIndex:"startTime"},"startTime"),me.jsx(yn,{title:"结束时间",render:(C,g)=>{const S=g.decision===1&&m.includes("DEVICE_ADMIN");return a===g.approvalId?me.jsxs("div",{style:{display:"flex",gap:8},children:[me.jsx(ni,{defaultValue:bn(g.endTime),onChange:x=>u(x),disabledDate:x=>x&&x.isBefore(bn(g.startTime),"day"),size:"small"}),me.jsx(Sn,{type:"primary",size:"small",onClick:()=>h(g),children:"提交"}),me.jsx(Sn,{onClick:()=>i(null),size:"small",children:"取消"})]}):S?me.jsxs("span",{children:[me.jsx("span",{className:"pr-6",children:g.endTime}),me.jsx(Sn,{size:"small",onClick:()=>{i(g.approvalId),u(bn(g.endTime))},children:"修改"})]}):me.jsx("span",{children:g.endTime})}},"endTime"),me.jsx(yn,{title:"审批情况",render:(C,{decision:g,status:S})=>g===1?S==="APPROVED_ASSIST"?me.jsx(ma,{color:"blue",children:"通过,需要协助"},"decision"):me.jsx(ma,{color:"green",children:"通过"},"decision"):g===0?me.jsx(ma,{color:"red",children:"拒绝"},"decision"):me.jsx(ma,{color:"grey",children:"ERROR"},"decision")},"decision")]})]})}function Pae(){const[e]=sn.useForm(),[t,n]=l.useState(!1),[r,o]=l.useState({userId:"",username:"",team:"",name:"",phone:""}),a=Xo(pc),i=async d=>{const m=await En.get(`/userdetail/${d}`);o(m),e.setFieldsValue(m)};l.useEffect(()=>{i(a)},[]);const s=()=>{e.resetFields()},u=async d=>{if(d.password&&d.password!==d.confirmPassword){Mn.error("两次输入的密码不一致");return}const m={};for(const p in d)d[p]!==r[p]&&d[p]!==void 0&&(m[p]=d[p]);delete m.confirmPassword;const v=await En.put(`/user/${a}`,m);o(v),e.setFieldsValue(v),Mn.success("修改成功")};return me.jsx("div",{className:"p-6",children:me.jsxs(sn,{requiredMark:!1,variant:"borderless",form:e,initialValues:r,onFinish:u,children:[me.jsxs(ws,{gutter:16,children:[me.jsx(Uo,{span:12,children:me.jsx(sn.Item,{label:"账号",children:me.jsx(Ln,{disabled:!0,value:r.username})})}),me.jsx(Uo,{span:12,children:me.jsx(sn.Item,{label:"所属团队",children:me.jsx(Ln,{disabled:!0,value:r.team})})})]}),me.jsxs(ws,{gutter:16,children:[me.jsx(Uo,{span:12,children:me.jsx(sn.Item,{name:"name",label:"姓名",rules:[{required:!0,message:"请输入姓名"}],children:me.jsx(Ln,{})})}),me.jsx(Uo,{span:12,children:me.jsx(sn.Item,{name:"phone",label:"联系电话",rules:[{required:!0,message:"请输入联系电话"}],children:me.jsx(Ln,{value:r.phone})})})]}),t&&me.jsx(me.Fragment,{children:me.jsxs(ws,{gutter:16,children:[me.jsx(Uo,{span:12,children:me.jsx(sn.Item,{name:"password",label:"新密码",rules:[{required:!0,message:"请输入新密码"}],children:me.jsx(Ln.Password,{})})}),me.jsx(Uo,{span:12,children:me.jsx(sn.Item,{name:"confirmPassword",label:"确认新密码",dependencies:["password"],rules:[{required:!0,message:"请再次输入新密码"},({getFieldValue:d})=>({validator(m,v){return!v||d("password")===v?Promise.resolve():Promise.reject(new Error("两次输入密码不一致"))}})],children:me.jsx(Ln.Password,{})})})]})}),me.jsxs(ws,{justify:"center",gutter:8,children:[me.jsx(Uo,{children:me.jsx(Sn,{type:"dashed",onClick:()=>n(!t),children:t?"取消修改密码":"修改密码"})}),me.jsx(Uo,{children:me.jsx(Sn,{onClick:s,children:"重置修改"})}),me.jsx(Uo,{children:me.jsx(sn.Item,{children:me.jsx(Sn,{type:"primary",htmlType:"submit",children:"保存修改"})})})]})]})})}function Nae(){const[e,t]=l.useState([]),[n,r]=l.useState({current:1,pageSize:10,total:0}),o=Xo(pc),a=async s=>{const u=await En.get(`/reservation/${o}`,{params:{page:s.current,size:s.pageSize}});t(u.records),r({...s,total:u.total})};l.useEffect(()=>{a(n)},[]);const i=s=>{a(s)};return me.jsx(me.Fragment,{children:me.jsxs(Dr,{dataSource:e,pagination:n,onChange:i,rowKey:"reservationId",children:[me.jsx(yn,{title:"设备名称",dataIndex:"deviceName",render:(s,{deviceName:u})=>u||me.jsx("span",{className:"text-red-600",children:"该设备已被删除"})},"deviceName"),me.jsx(yn,{title:"团队负责人",dataIndex:"deviceLeaderName"},"deviceLeaderName"),me.jsx(yn,{title:"负责人联系方式",dataIndex:"deviceLeaderContact"},"deviceLeaderContact"),me.jsx(yn,{title:"设备管理员",dataIndex:"deviceAdminName"},"deviceAdminName"),me.jsx(yn,{title:"管理员联系方式",dataIndex:"deviceAdminContact"},"deviceAdminContact"),me.jsx(yn,{title:"使用时间",render:(s,u)=>me.jsxs("span",{children:[u.startTime," 至 ",u.endTime]})},"usageTime"),me.jsx(yn,{title:"预约状态",dataIndex:"statusLabel",render:(s,u)=>u.statusLabel==="通过"?me.jsx(ma,{color:"green",children:"通过"},"statusLabel"):u.statusLabel==="不通过"?me.jsx(ma,{color:"red",children:"不通过"},"statusLabel"):u.statusLabel==="通过,需要协助实验"?me.jsx(ma,{color:"blue",children:"通过,需要协助实验"},"statusLabel"):me.jsx(ma,{color:"yellow",children:u.statusLabel},"statusLabel")},"statusLabel"),me.jsx(yn,{title:"预约提交时间",dataIndex:"createdTime",render:(s,{createdTime:u})=>bn(u).format("YYYY-MM-DD HH:mm")},"createdTime")]})})}var Rm={exports:{}},Mae=Rm.exports,WO;function Tae(){return WO||(WO=1,function(e,t){(function(n,r){e.exports=r()})(Mae,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,u){var d=o(a),m=o(i),v=(u=u||"()")[0]==="(",p=u[1]===")";return(v?this.isAfter(d,s):!this.isBefore(d,s))&&(p?this.isBefore(m,s):!this.isAfter(m,s))||(v?this.isBefore(d,s):!this.isAfter(d,s))&&(p?this.isAfter(m,s):!this.isBefore(m,s))}}})}(Rm)),Rm.exports}var _ae=Tae();const Dae=Mo(_ae);function jae({visiable:e,device:t,onclose:n}){const[r,o]=l.useState([]),[a]=sn.useForm(),i=Xo(g=>g.auth.userId),[s,u]=l.useState([]),[d,m]=l.useState(),v=async()=>{const S=(await En.get("/team-label")).map(x=>({label:x.label,value:x.label}));u(S)},p=async()=>{const g=await En.get(`/userdetail/${i}`),S={name:g.name,phone:g.phone,team:g.team};m(S),a.setFieldsValue(S)};l.useEffect(()=>{v()},[]),l.useEffect(()=>{const g=async S=>{const x=await En.get(`/device/unavailable-times/${S}`);o(x)};e&&(t!=null&&t.deviceId)&&(g(t.deviceId),p())},[e,t==null?void 0:t.deviceId]);const{RangePicker:y}=ni,h=(g,{from:S}={})=>{if(!g)return!1;const x=bn().startOf("day"),w=g.startOf("day"),R=g.isBefore(x);bn.extend(Dae);const $=r.some(({startTime:I,endTime:N})=>{const P=bn(I).startOf("day"),T=bn(N).endOf("day");return w.isBetween(P,T,null,"[]")}),O=S&&Math.abs(g.diff(S,"day"))>=7;return R||$||O},C=async()=>{const g=await a.validateFields(),[S,x]=g.date,w={deviceId:t.deviceId,userId:i,startTime:S.format("YYYY-MM-DD"),endTime:x.format("YYYY-MM-DD"),applicantName:g.name,applicantContact:g.phone,applicantTeam:g.team};await En.post("/reservation",w),Mn.success("预约成功"),a.resetFields(),n()};return me.jsx(ro,{title:"预约设备",open:e,onCancel:()=>{n()},onOk:C,children:me.jsxs(ta,{direction:"vertical",children:[me.jsxs(bs,{column:1,children:[me.jsx(bs.Item,{label:"设备名称",children:t==null?void 0:t.name}),me.jsx(bs.Item,{label:"使用要求",children:t==null?void 0:t.usageRequirement}),me.jsx(bs.Item,{label:"设备位置",children:t==null?void 0:t.location}),me.jsx(bs.Item,{label:"设备图片",children:me.jsx(uS,{src:`${TS}/${t==null?void 0:t.imagePath}`})})]}),me.jsx(hY,{}),me.jsxs(sn,{form:a,layout:"vertical",initialValues:d,children:[me.jsx(sn.Item,{name:"date",label:"预约日期",rules:[{required:!0,message:"请选择预约日期"}],children:me.jsx(y,{disabledDate:h})}),me.jsx(sn.Item,{name:"name",label:"姓名",rules:[{required:!0}],children:me.jsx(Ln,{})}),me.jsx(sn.Item,{name:"phone",label:"联系电话",children:me.jsx(Ln,{})}),me.jsx(sn.Item,{name:"team",label:"所属团队",rules:[{required:!0,message:"请选择所属团队"}],children:me.jsx(ka,{options:s})})]})]})})}const kae={空闲:"green",使用中:"red",有预约:"yellow",维修中:"gray"};function zae(){const[e,t]=l.useState(null),[n,r]=l.useState({current:1,pageSize:10,total:0}),[o,a]=l.useState([]),i=async(v,p=e)=>{const y=await En.get("/device",{params:{page:v.current,size:v.pageSize,name:p}});a(y.records),r({...v,total:y.total})};l.useEffect(()=>{i(n)},[]);const s=v=>{i(v)},[u,d]=l.useState(null),m=v=>{t(v);const p={...n,current:1};r(p),i(p,v)};return me.jsxs(me.Fragment,{children:[me.jsx(Ln.Search,{placeholder:"请输入设备名称",onSearch:m,style:{width:"200px"},className:"m-4"}),me.jsxs(Dr,{dataSource:o,pagination:n,onChange:s,rowKey:"deviceId",children:[me.jsx(yn,{title:"设备名称",dataIndex:"name"},"name"),me.jsx(yn,{title:"使用要求",dataIndex:"usageRequirement",ellipsis:"true"},"usageRequirement"),me.jsx(yn,{title:"位置",dataIndex:"location"},"location"),me.jsx(yn,{title:"状态",dataIndex:"state",render:(v,{state:p})=>me.jsx(me.Fragment,{children:me.jsx(ma,{color:kae[p],children:p},"state")})},"state"),me.jsx(yn,{title:"操作",render:(v,p)=>me.jsx(ta,{size:"middle",children:me.jsx("a",{onClick:()=>d(p),children:"预约"})})},"action")]}),me.jsx(jae,{visiable:!!u,device:u,onclose:()=>d(null)})]})}function em({allowedRoles:e}){const t=Xo(Pp);return t.length===0?me.jsx(V0,{to:"/login",replace:!0}):t.some(n=>e.includes(n))?me.jsx(NR,{}):me.jsx(V0,{to:"/unauthorized",replace:!0})}const $4=[{label:"可用",value:"AVAILABLE"},{label:"停用",value:"DISABLED"}];function Lae({visiable:e,mode:t="create",device:n,onclose:r,onSuccess:o}){const[a]=sn.useForm(),[i,s]=l.useState(null),[u,d]=l.useState({}),[m,v]=l.useState(),p=Xo(pc);l.useEffect(()=>{if(e)if(v([]),t==="edit"){const h={name:n.name,location:n.location,usageRequirement:n.usageRequirement,status:n.status};a.setFieldsValue(h),d(h)}else{const h={name:void 0,location:void 0,usageRequirement:void 0,status:void 0};a.setFieldsValue(h),d(h)}},[e,t,n,a]);const y=async()=>{const h=await a.validateFields(),C={};if(Object.keys(u).forEach(g=>{h[g]!==u[g]&&(C[g]=h[g])}),Object.keys(C).length>0&&(t==="edit"?(await En.put(`/device/${n.deviceId}`,C),Mn.success("编辑成功")):(n=await En.post(`/device/${p}`,C),Mn.success("添加成功"))),i){const g=new FormData;g.append("image",i),await En.post(`device/${n.deviceId}/image`,g,{headers:{"Content-Type":"multipart/form-data"}}),Mn.success("图片上传成功")}o(),r()};return me.jsx(ro,{title:t==="edit"?"编辑设备":"添加设备",open:e,onCancel:()=>{r()},onOk:y,okText:"保存",children:me.jsxs(sn,{form:a,layout:"vertical",initialValues:u,children:[me.jsx(sn.Item,{name:"name",label:"设备名称",rules:[{required:!0}],children:me.jsx(Ln,{})}),me.jsx(sn.Item,{name:"location",label:"位置",children:me.jsx(Ln,{})}),me.jsx(sn.Item,{name:"usageRequirement",label:"使用要求",children:me.jsx(UT,{})}),me.jsx(sn.Item,{name:"status",label:"设备状态",rules:[{required:!0,message:"请选择设备状态"}],children:me.jsx(ka,{options:$4,placeholder:"请选择设备状态"})}),me.jsxs(sn.Item,{label:"设备图片",children:[(n==null?void 0:n.imagePath)&&me.jsx(uS,{src:`${TS}/${n.imagePath}`,className:"mt-2"}),me.jsx("br",{}),me.jsx(ES,{fileList:m,beforeUpload:h=>(s(h),!1),showUploadList:{showRemoveIcon:!0},onChange:({fileList:h})=>v(h),maxCount:1,children:me.jsx(Sn,{icon:me.jsx(Pz,{}),children:"点击上传"})})]})]})})}function Fae(){const[e,t]=l.useState([]),[n,r]=l.useState(null),[o,a]=l.useState(!1),[i,s]=l.useState(null),[u,d]=l.useState(null),[m,v]=l.useState({current:1,pageSize:10,total:0}),p=Xo(pc),y=async(S,x=u)=>{const w=await En.get(`/device/${p}`,{params:{page:S.current,size:S.pageSize,name:x}});t(w.records),v({...S,total:w.total})};l.useEffect(()=>{y(m)},[]);const h=async S=>{await y(S)},C=async S=>{await En.delete(`/device/${S}`),Mn.success("删除成功");const x={...m,current:1};v(x),await y(x)},g=async S=>{d(S);const x={...m,current:1};v(x),await y(x,S)};return me.jsxs(me.Fragment,{children:[me.jsxs(up,{justify:"space-between",children:[me.jsx(Ln.Search,{placeholder:"请输入设备名称",onSearch:g,style:{width:"200px"},className:"m-4"}),me.jsx(Sn,{className:"m-4",type:"primary",onClick:()=>{s("create"),r(null),a(!0)},children:"添加设备"})]}),me.jsxs(Dr,{rowKey:"deviceId",dataSource:e,onChange:h,pagination:m,children:[me.jsx(yn,{title:"名称",dataIndex:"name"},"name"),me.jsx(yn,{title:"使用要求",dataIndex:"usageRequirement",ellipsis:!0},"usageRequirement"),me.jsx(yn,{title:"位置",dataIndex:"location"},"location"),me.jsx(yn,{title:"状态",render:(S,{status:x})=>{const w=x==="AVAILABLE"?"green":"grey",R=$4.find($=>$.value===x);return me.jsx(ma,{color:w,children:R?R.label:x},"status")}},"status"),me.jsx(yn,{title:"操作",render:(S,x)=>me.jsxs(ta,{children:[me.jsx(Sn,{size:"small",onClick:()=>{r(x),a(!0),s("edit")},children:"编辑"}),me.jsx(mp,{title:"删除设备",description:"确认要删除该设备吗?",onConfirm:()=>C(x.deviceId),children:me.jsx(Sn,{color:"red",variant:"solid",size:"small",children:"删除"})})]})})]}),me.jsx(Lae,{visiable:o,device:n,mode:i,onclose:()=>{a(!1),r(null)},onSuccess:async()=>{await y({...m,current:1})}})]})}function Aae({visiable:e,mode:t="create",user:n,roles:r,onclose:o,onSuccess:a}){const[i]=sn.useForm(),[s,u]=l.useState(),[d,m]=l.useState([]),v=async()=>{const y=await En.get("/team-label");m(y)};l.useEffect(()=>{v()},[]),l.useEffect(()=>{if(e)if(t==="edit"){const y={username:n.username,name:n.name,phone:n.phone,teamId:n.teamId,roleId:n.roleId};u(y),i.setFieldsValue(y)}else{const y={username:void 0,password:void 0,name:void 0,phone:void 0,teamId:void 0,roleId:void 0};u(y),i.setFieldsValue(y)}},[e,t,n,i]);const p=async()=>{const y=await i.validateFields(),h={};Object.keys(s).forEach(C=>{y[C]!==s[C]&&(h[C]=y[C])}),Object.keys(h).length>0&&(t==="edit"?(await En.put(`/user/${n.userId}`,h),Mn.success("编辑成功")):(await En.post("/user",h),Mn.success("添加成功"))),a(),o()};return me.jsx(ro,{title:t==="edit"?"编辑用户":"添加用户",open:e,onCancel:()=>{o()},onOk:p,okText:"保存",children:me.jsxs(sn,{form:i,layout:"vertical",initialValues:s,children:[me.jsx(sn.Item,{name:"username",label:"用户账号",rules:[{required:!0}],children:me.jsx(Ln,{})}),t==="create"&&me.jsx(sn.Item,{name:"password",label:"初始密码",rules:[{required:!0}],children:me.jsx(Ln.Password,{})}),me.jsx(sn.Item,{name:"name",label:"姓名",rules:[{required:!0}],children:me.jsx(Ln,{})}),me.jsx(sn.Item,{name:"phone",label:"联系电话",children:me.jsx(Ln,{})}),me.jsx(sn.Item,{name:"teamId",label:"所属团队",rules:[{required:!0,message:"请选择所属团队"}],children:me.jsx(ka,{options:d})}),me.jsx(sn.Item,{name:"roleId",label:"用户角色",rules:[{required:!0,message:"请选择用户角色"}],children:me.jsx(ka,{options:r})})]})})}function Bae(){const[e,t]=l.useState([]),[n,r]=l.useState([]),[o,a]=l.useState(),[i,s]=l.useState(),[u,d]=l.useState(!1),[m,v]=l.useState([]),[p,y]=l.useState({current:1,pageSize:10,total:0}),h=async()=>{const w=await En.get("/role");v(w)},C=async(w,R)=>{const $=await En.get("/user",{params:{page:w.current,size:w.pageSize,name:R}});t($.records),y({...w,total:$.total})};l.useEffect(()=>{h(),C({current:1,pageSize:10})},[]);const g=async w=>{await C(w)},S=async w=>{await C({...p,current:1},w)},x=async w=>{await En.delete(`/user/${w.userId}`),C({current:1,pageSize:10})};return me.jsxs(me.Fragment,{children:[me.jsxs(up,{justify:"space-between",children:[me.jsx(Ln.Search,{placeholder:"请输入用户姓名",onSearch:S,style:{width:"200px"},className:"m-4"}),me.jsx(Sn,{className:"m-4",type:"primary",onClick:()=>{a("create"),s(null),d(!0)},children:"添加用户"})]}),me.jsxs(Dr,{rowKey:"userId",dataSource:e,pagination:p,onChange:g,children:[me.jsx(yn,{title:"姓名",dataIndex:"name"},"name"),me.jsx(yn,{title:"账号",dataIndex:"username"},"username"),me.jsx(yn,{title:"联系电话",dataIndex:"phone"},"phone"),me.jsx(yn,{title:"所属团队",dataIndex:"team"},"team"),me.jsx(yn,{title:"角色",render:(w,{roleId:R})=>{var $;return(($=m.find(O=>O.value===R))==null?void 0:$.label)||"未知角色"}},"roleId"),me.jsx(yn,{title:"操作",render:(w,R)=>me.jsxs(ta,{children:[me.jsx(Sn,{size:"small",onClick:()=>{s(R),d(!0),a("edit")},children:"编辑"}),me.jsx(mp,{title:"删除用户",description:"确认要删除该用户吗?",onConfirm:()=>x(R),children:me.jsx(Sn,{danger:!0,size:"small",children:"删除"})})]})})]}),me.jsx(Aae,{visiable:u,mode:o,user:i,roles:m,onclose:()=>{d(!1),s(null)},onSuccess:async()=>{await C({...p,current:1})}})]})}var Im={exports:{}},Hae=Im.exports,KO;function Vae(){return KO||(KO=1,function(e,t){(function(n,r){e.exports=r()})(Hae,function(){var n="month",r="quarter";return function(o,a){var i=a.prototype;i.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var s=i.add;i.add=function(d,m){return d=Number(d),this.$utils().p(m)===r?this.add(3*d,n):s.bind(this)(d,m)};var u=i.startOf;i.startOf=function(d,m){var v=this.$utils(),p=!!v.u(m)||m;if(v.p(d)===r){var y=this.quarter()-1;return p?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return u.bind(this)(d,m)}}})}(Im)),Im.exports}var Wae=Vae();const Kae=Mo(Wae);bn.extend(Kae);const E4=[{label:"本月",value:[bn().startOf("month"),bn().endOf("month")]},{label:"上月",value:[bn().subtract(1,"month").startOf("month"),bn().subtract(1,"month").endOf("month")]},{label:"本季度",value:[bn().startOf("quarter"),bn().endOf("quarter")]},{label:"上季度",value:[bn().subtract(1,"quarter").startOf("quarter"),bn().subtract(1,"quarter").endOf("quarter")]},{label:"本年",value:[bn().startOf("year"),bn().endOf("year")]},{label:"去年",value:[bn().subtract(1,"year").startOf("year"),bn().subtract(1,"year").endOf("year")]}];function Uae({visible:e,record:t,range:n,onClose:r}){const[o,a]=l.useState(!1),[i,s]=l.useState([]),u=async()=>{a(!0);try{const v=await En.get("/device/detail-stats",{params:{deviceId:t.deviceId,start:n[0].format("YYYY-MM-DD"),end:n[1].format("YYYY-MM-DD")}});s(v)}catch{Mn.error("获取数据失败")}finally{a(!1)}},d=async()=>{a(!0);try{const v=await En.get("/device/detail-stats/export",{params:{deviceId:t.deviceId,start:n[0].format("YYYY-MM-DD"),end:n[1].format("YYYY-MM-DD")},responseType:"blob",skipInterceptor:!0}),p=`${t==null?void 0:t.deviceName}_${n[0].format("YYYY.MM.DD")}-${n[1].format("YYYY.MM.DD")}_使用详情.xlsx`,y=new Blob([v.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),h=window.URL.createObjectURL(y),C=document.createElement("a");C.href=h,C.download=p,document.body.appendChild(C),C.click(),C.remove(),window.URL.revokeObjectURL(h),Mn.success("导出成功")}catch(v){Mn.error("导出失败,请稍后重试"),console.error(v)}finally{a(!1)}};l.useEffect(()=>{e&&u()},[e,t]);const m=[{title:"使用人",dataIndex:"applicantName",key:"applicantName",sorter:(v,p)=>v.applicantName.localeCompare(p.applicantName)},{title:"所属团队",dataIndex:"applicantTeam",key:"applicantTeam",sorter:(v,p)=>v.applicantTeam.localeCompare(p.applicantTeam)},{title:"开始日期",dataIndex:"startDay",key:"startDay",sorter:(v,p)=>v.startDay.localeCompare(p.startDay)},{title:"结束日期",dataIndex:"endDay",key:"endDay",sorter:(v,p)=>v.endDay.localeCompare(p.endDay)}];return me.jsx(sc,{spinning:o,children:me.jsx(ro,{open:e,title:`${t==null?void 0:t.deviceName}_${n[0].format("YYYY.MM.DD")}-${n[1].format("YYYY.MM.DD")}_使用详情`,width:"80%",cancelText:"返回",onCancel:()=>{r()},okText:"导出Excel",onOk:d,children:me.jsx(Dr,{rowKey:v=>v.deviceId,dataSource:i,columns:m,className:"mt-4"})})})}const{RangePicker:qae}=ni;function Yae(){const[e,t]=l.useState([]),[n,r]=l.useState([]),[o,a]=l.useState([bn().startOf("month"),bn().endOf("month")]),[i,s]=l.useState(""),[u,d]=l.useState(!1),[m,v]=l.useState(!1),[p,y]=l.useState(null),h=async()=>{d(!0);try{const x=await En.get("/device/usage-stats",{params:{start:o[0].format("YYYY-MM-DD"),end:o[1].format("YYYY-MM-DD")}});t(x),r(x)}catch{Mn.error("获取数据失败")}finally{d(!1)}},C=x=>{s(x);const w=e.filter(R=>R.deviceName.toLowerCase().includes(x.toLowerCase()));r(w)},g=async()=>{d(!0);try{const x=await En.get("/device/usage-stats/export",{params:{start:o[0].format("YYYY-MM-DD"),end:o[1].format("YYYY-MM-DD")},responseType:"blob",skipInterceptor:!0}),w=x.headers["content-disposition"];let R="设备统计数据.xlsx";if(w){const N=w.match(/filename="?([^"]+)"?/);N&&N[1]&&(R=decodeURIComponent(N[1]))}const $=new Blob([x.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),O=window.URL.createObjectURL($),I=document.createElement("a");I.href=O,I.download=R,document.body.appendChild(I),I.click(),I.remove(),window.URL.revokeObjectURL(O),Mn.success("导出成功")}catch(x){Mn.error("导出失败,请稍后重试"),console.error(x)}finally{d(!1)}};l.useEffect(()=>{h()},[o]);const S=[{title:"设备名称",dataIndex:"deviceName",key:"deviceName",sorter:(x,w)=>x.deviceName.localeCompare(w.deviceName)},{title:"使用次数",dataIndex:"usageCount",key:"usageCount",sorter:(x,w)=>x.usageCount-w.usageCount},{title:"使用总时长(天)",dataIndex:"totalUsageDays",key:"totalUsageDays",sorter:(x,w)=>x.totalUsageDays-w.totalUsageDays},{title:"操作",key:"action",render:(x,w)=>me.jsx(Sn,{size:"small",onClick:()=>{y(w),v(!0)},children:"查看详情"})}];return me.jsxs(sc,{spinning:u,children:[me.jsxs(ta,{className:"p-4",children:[me.jsx(qae,{value:o,onChange:x=>{x&&a(x)},presets:E4}),me.jsx(Ln.Search,{allowClear:!0,placeholder:"搜索设备名称",onSearch:C,style:{width:200}}),me.jsx(Sn,{type:"primary",onClick:g,children:"导出 Excel"})]}),me.jsx(Dr,{rowKey:x=>x.deviceId,dataSource:n,columns:S}),me.jsx(Uae,{visible:m,record:p,onClose:()=>{v(!1)},range:o})]})}const{RangePicker:Gae}=ni;function Xae(){const[e,t]=l.useState([]),[n,r]=l.useState([]),[o,a]=l.useState([bn().startOf("month"),bn().endOf("month")]),[i,s]=l.useState(""),[u,d]=l.useState(!1),m=async()=>{d(!0);try{const h=await En.get("/reservation/stats",{params:{start:o[0].format("YYYY-MM-DD"),end:o[1].format("YYYY-MM-DD")}});t(h),r(h)}catch{Mn.error("获取数据失败")}finally{d(!1)}},v=h=>{s(h);const C=e.filter(g=>g.deviceName.toLowerCase().includes(h.toLowerCase()));r(C)},p=async()=>{d(!0);try{const h=await En.get("/reservation/stats/export",{params:{start:o[0].format("YYYY-MM-DD"),end:o[1].format("YYYY-MM-DD")},responseType:"blob",skipInterceptor:!0}),C=h.headers["content-disposition"];let g="使用人统计.xlsx";if(C){const R=C.match(/filename="?([^"]+)"?/);R&&R[1]&&(g=decodeURIComponent(R[1]))}const S=new Blob([h.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),x=window.URL.createObjectURL(S),w=document.createElement("a");w.href=x,w.download=g,document.body.appendChild(w),w.click(),w.remove(),window.URL.revokeObjectURL(x),Mn.success("导出成功")}catch(h){Mn.error("导出失败,请稍后重试"),console.error(h)}finally{d(!1)}};l.useEffect(()=>{m()},[o]);const y=[{title:"设备名称",dataIndex:"deviceName",key:"deviceName",sorter:(h,C)=>h.deviceName.localeCompare(C.deviceName)},{title:"使用人",dataIndex:"applicantName",key:"applicantName",sorter:(h,C)=>h.applicantName.localeCompare(C.applicantName)},{title:"所属团队",dataIndex:"applicantTeam",key:"applicantTeam",sorter:(h,C)=>h.applicantTeam.localeCompare(C.applicantTeam)},{title:"使用次数",dataIndex:"usageCount",key:"usageCount",sorter:(h,C)=>h.usageCount-C.usageCount}];return me.jsxs(sc,{spinning:u,children:[me.jsxs(ta,{className:"p-4",children:[me.jsx(Gae,{value:o,onChange:h=>{h&&a(h)},presets:E4}),me.jsx(Ln.Search,{allowClear:!0,placeholder:"搜索设备名称",onSearch:v,style:{width:200}}),me.jsx(Sn,{type:"primary",onClick:p,children:"导出 Excel"})]}),me.jsx(Dr,{rowKey:h=>`${h.deviceId}_${h.applicantName}_${h.applicantTeam}`,dataSource:n,columns:y})]})}function Qae({record:e,onConfirm:t}){const[n,r]=l.useState(!1),o=i=>{i.size>0?Mn.warning("该团队下还有成员,无法删除"):r(!0)},a=()=>{t(),r(!1)};return me.jsx(mp,{title:"删除团队",description:"确认要删除该团队吗?",open:n,onConfirm:a,onCancel:()=>{r(!1)},children:me.jsx(Sn,{danger:!0,size:"small",onClick:()=>o(e),children:"删除"})})}function Zae({open:e,team:t,onclose:n}){const[r,o]=l.useState([]),a=async()=>{const i=await En.get(`/user-team/${t.id}`);o(i)};return l.useEffect(()=>{e&&a()},[e,t]),me.jsx(ro,{open:e,onCancel:()=>{n()},children:me.jsx(bb,{header:me.jsx("div",{children:t==null?void 0:t.name}),dataSource:r,renderItem:i=>me.jsx(bb.Item,{children:i})})})}function Jae(){const[e,t]=l.useState([]),[n,r]=l.useState([]),[o,a]=l.useState(),[i,s]=l.useState(),[u,d]=l.useState(""),[m,v]=l.useState(),[p,y]=l.useState(!1),[h,C]=l.useState(null),g=async()=>{const O=await En.get("/teams");r(O),t(O),a(null)};l.useEffect(()=>{g()},[]);const S=O=>{a(O);const I=n.filter(N=>N.name.toLowerCase().includes(O.toLowerCase()));t(I)},x=async O=>{await En.delete(`/team/${O.id}`),Mn.success("删除成功"),g()},w=O=>{s(O.id),d(O.name)},R=async O=>{if(!u.trim())return Mn.warning("请输入新名称");await En.put(`/team/${O}`,{name:u}),s(null),Mn.success("修改成功"),await g()},$=async()=>{if(!m.trim()){Mn.warning("请输入团队名称");return}await En.post("/team",{name:m}),Mn.success("添加成功"),v(null),g()};return me.jsxs(me.Fragment,{children:[me.jsxs(up,{justify:"space-between",children:[me.jsx(Ln.Search,{placeholder:"请输入团队名称",onSearch:S,onChange:O=>a(O.target.value),value:o,style:{width:"200px"},className:"m-4"}),me.jsx(Ln.Search,{placeholder:"请输入新团队名称",enterButton:"添加团队",onSearch:$,value:m,onChange:O=>v(O.target.value),className:"m-4",style:{width:"300px"}})]}),me.jsxs(Dr,{rowKey:"id",dataSource:e,children:[me.jsx(yn,{title:"团队名",render:(O,I)=>I.id===i?me.jsx(Ln,{value:u,onChange:N=>d(N.target.value)}):I.name},"name"),me.jsx(yn,{title:"下属人数",dataIndex:"size"},"size"),me.jsx(yn,{title:"操作",render:(O,I)=>me.jsxs(ta,{children:[I.id===i?me.jsxs(ta,{children:[me.jsx(Sn,{size:"small",type:"primary",onClick:()=>R(I.id),children:"保存"}),me.jsx(Sn,{size:"small",onClick:()=>s(null),children:"取消"})]}):me.jsx(Sn,{size:"small",onClick:()=>w(I),children:"编辑"}),me.jsx(Sn,{size:"small",onClick:()=>{C(I),y(!0)},children:"人员列表"}),me.jsx(Qae,{record:I,onConfirm:()=>x(I)})]})})]}),me.jsx(Zae,{open:p,team:h,onclose:()=>{y(!1),C(null)}})]})}const eie=I3([{path:"/",element:me.jsx(V0,{to:"/login",replace:!0})},{path:"/login",element:me.jsx(Oae,{})},{path:"/",element:me.jsx($ae,{}),children:[{path:"user",element:me.jsx(em,{allowedRoles:["USER","LEADER","DEVICE_ADMIN"]}),children:[{path:"reserve",element:me.jsx(zae,{})},{path:"my-reservation",element:me.jsx(Nae,{})}]},{element:me.jsx(em,{allowedRoles:["LEADER","DEVICE_ADMIN"]}),children:[{path:"approval",element:me.jsx(Rae,{})},{path:"my-approval",element:me.jsx(Iae,{})}]},{path:"device-manage",element:me.jsx(em,{allowedRoles:["DEVICE_ADMIN"]}),children:[{path:"",element:me.jsx(Fae,{})}]},{path:"admin",element:me.jsx(em,{allowedRoles:["ADMIN"]}),children:[{path:"user-manage",element:me.jsx(Bae,{})},{path:"stats-device",element:me.jsx(Yae,{})},{path:"stats-reservation",element:me.jsx(Xae,{})},{path:"team-manage",element:me.jsx(Jae,{})}]},{path:"userdetail",element:me.jsx(Pae,{})}]}]),tie=localStorage.getItem("userId"),nie=localStorage.getItem("name"),rie=JSON.parse(localStorage.getItem("roles")||"[]"),oie=localStorage.getItem("token"),aie={auth:{userId:tie,name:nie,roles:rie,token:oie}},O4=Sre({reducer:{auth:wae},preloadedState:aie}),iie=Object.freeze(Object.defineProperty({__proto__:null,store:O4},Symbol.toStringTag,{value:"Module"}));var iu={},T0={exports:{}},UO;function Np(){return UO||(UO=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(T0)),T0.exports}var lu={},qO;function lie(){if(qO)return lu;qO=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0;var e={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:"页码"};return lu.default=e,lu}var su={},cu={},uu={},_0={exports:{}},D0={exports:{}},j0={exports:{}},k0={exports:{}},YO;function R4(){return YO||(YO=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(k0)),k0.exports}var z0={exports:{}},GO;function sie(){return GO||(GO=1,function(e){var t=R4().default;function n(r,o){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(z0)),z0.exports}var XO;function cie(){return XO||(XO=1,function(e){var t=R4().default,n=sie();function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(j0)),j0.exports}var QO;function uie(){return QO||(QO=1,function(e){var t=cie();function n(r,o,a){return(o=t(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(D0)),D0.exports}var ZO;function die(){return ZO||(ZO=1,function(e){var t=uie();function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);a&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(o,u).enumerable})),i.push.apply(i,s)}return i}function r(o){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?n(Object(i),!0).forEach(function(s){t(o,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_0)),_0.exports}var du={},JO;function fie(){return JO||(JO=1,Object.defineProperty(du,"__esModule",{value:!0}),du.commonLocale=void 0,du.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),du}var eR;function mie(){if(eR)return uu;eR=1;var e=Np().default;Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0;var t=e(die()),n=fie(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return uu.default=r,uu}var fu={},tR;function I4(){if(tR)return fu;tR=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return fu.default=e,fu}var nR;function P4(){if(nR)return cu;nR=1;var e=Np().default;Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0;var t=e(mie()),n=e(I4());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",cu.default=r,cu}var rR;function vie(){if(rR)return su;rR=1;var e=Np().default;Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var t=e(P4());return su.default=t.default,su}var oR;function pie(){if(oR)return iu;oR=1;var e=Np().default;Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0;var t=e(lie()),n=e(vie()),r=e(P4()),o=e(I4());const a="${label}不是一个有效的${type}",i={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return iu.default=i,iu}var L0,aR;function gie(){return aR||(aR=1,L0=pie()),L0}var hie=gie();const yie=Mo(hie);bn.locale("zh-cn");vj.createRoot(document.getElementById("root")).render(me.jsx(l.StrictMode,{children:me.jsx(za,{locale:yie,children:me.jsx(Pj,{store:O4,children:me.jsx(B3,{router:eie})})})}));