@telepat/ideon 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,219 @@
1
+ function Vw(e,t){for(var o=0;o<t.length;o++){const a=t[o];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>a[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function o(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(l){if(l.ep)return;l.ep=!0;const c=o(l);fetch(l.href,c)}})();function SC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hm={exports:{}},es={};var Bv;function Fw(){if(Bv)return es;Bv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var m in l)m!=="key"&&(c[m]=l[m])}else c=l;return l=c.ref,{$$typeof:e,type:a,key:f,ref:l!==void 0?l:null,props:c}}return es.Fragment=t,es.jsx=o,es.jsxs=o,es}var Hv;function qw(){return Hv||(Hv=1,hm.exports=Fw()),hm.exports}var ce=qw(),ym={exports:{}},ts={},bm={exports:{}},vm={};var Lv;function Uw(){return Lv||(Lv=1,(function(e){function t(P,q){var G=P.length;P.push(q);e:for(;0<G;){var Y=G-1>>>1,Z=P[Y];if(0<l(Z,q))P[Y]=q,P[G]=Z,G=Y;else break e}}function o(P){return P.length===0?null:P[0]}function a(P){if(P.length===0)return null;var q=P[0],G=P.pop();if(G!==q){P[0]=G;e:for(var Y=0,Z=P.length,A=Z>>>1;Y<A;){var D=2*(Y+1)-1,K=P[D],Q=D+1,ee=P[Q];if(0>l(K,G))Q<Z&&0>l(ee,K)?(P[Y]=ee,P[Q]=G,Y=Q):(P[Y]=K,P[D]=G,Y=D);else if(Q<Z&&0>l(ee,G))P[Y]=ee,P[Q]=G,Y=Q;else break e}}return q}function l(P,q){var G=P.sortIndex-q.sortIndex;return G!==0?G:P.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();e.unstable_now=function(){return f.now()-m}}var h=[],p=[],y=1,b=null,v=3,$=!1,x=!1,E=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function N(P){for(var q=o(p);q!==null;){if(q.callback===null)a(p);else if(q.startTime<=P)a(p),q.sortIndex=q.expirationTime,t(h,q);else break;q=o(p)}}function R(P){if(E=!1,N(P),!x)if(o(h)!==null)x=!0,_||(_=!0,V());else{var q=o(p);q!==null&&F(R,q.startTime-P)}}var _=!1,z=-1,B=5,H=-1;function I(){return C?!0:!(e.unstable_now()-H<B)}function L(){if(C=!1,_){var P=e.unstable_now();H=P;var q=!0;try{e:{x=!1,E&&(E=!1,M(z),z=-1),$=!0;var G=v;try{t:{for(N(P),b=o(h);b!==null&&!(b.expirationTime>P&&I());){var Y=b.callback;if(typeof Y=="function"){b.callback=null,v=b.priorityLevel;var Z=Y(b.expirationTime<=P);if(P=e.unstable_now(),typeof Z=="function"){b.callback=Z,N(P),q=!0;break t}b===o(h)&&a(h),N(P)}else a(h);b=o(h)}if(b!==null)q=!0;else{var A=o(p);A!==null&&F(R,A.startTime-P),q=!1}}break e}finally{b=null,v=G,$=!1}q=void 0}}finally{q?V():_=!1}}}var V;if(typeof w=="function")V=function(){w(L)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,U=k.port2;k.port1.onmessage=L,V=function(){U.postMessage(null)}}else V=function(){T(L,0)};function F(P,q){z=T(function(){P(e.unstable_now())},q)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(P){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var G=v;v=q;try{return P()}finally{v=G}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(P,q){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var G=v;v=P;try{return q()}finally{v=G}},e.unstable_scheduleCallback=function(P,q,G){var Y=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Y+G:Y):G=Y,P){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=G+Z,P={id:y++,callback:q,priorityLevel:P,startTime:G,expirationTime:Z,sortIndex:-1},G>Y?(P.sortIndex=G,t(p,P),o(h)===null&&P===o(p)&&(E?(M(z),z=-1):E=!0,F(R,G-Y))):(P.sortIndex=Z,t(h,P),x||$||(x=!0,_||(_=!0,V()))),P},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(P){var q=v;return function(){var G=v;v=q;try{return P.apply(this,arguments)}finally{v=G}}}})(vm)),vm}var Dv;function Gw(){return Dv||(Dv=1,bm.exports=Uw()),bm.exports}var Sm={exports:{}},Ze={};var Pv;function Xw(){if(Pv)return Ze;Pv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function $(A){return A===null||typeof A!="object"?null:(A=v&&A[v]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function T(A,D,K){this.props=A,this.context=D,this.refs=C,this.updater=K||x}T.prototype.isReactComponent={},T.prototype.setState=function(A,D){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,D,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function M(){}M.prototype=T.prototype;function w(A,D,K){this.props=A,this.context=D,this.refs=C,this.updater=K||x}var N=w.prototype=new M;N.constructor=w,E(N,T.prototype),N.isPureReactComponent=!0;var R=Array.isArray;function _(){}var z={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function H(A,D,K){var Q=K.ref;return{$$typeof:e,type:A,key:D,ref:Q!==void 0?Q:null,props:K}}function I(A,D){return H(A.type,D,A.props)}function L(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function V(A){var D={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(K){return D[K]})}var k=/\/+/g;function U(A,D){return typeof A=="object"&&A!==null&&A.key!=null?V(""+A.key):D.toString(36)}function F(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(_,_):(A.status="pending",A.then(function(D){A.status==="pending"&&(A.status="fulfilled",A.value=D)},function(D){A.status==="pending"&&(A.status="rejected",A.reason=D)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function P(A,D,K,Q,ee){var ie=typeof A;(ie==="undefined"||ie==="boolean")&&(A=null);var le=!1;if(A===null)le=!0;else switch(ie){case"bigint":case"string":case"number":le=!0;break;case"object":switch(A.$$typeof){case e:case t:le=!0;break;case y:return le=A._init,P(le(A._payload),D,K,Q,ee)}}if(le)return ee=ee(A),le=Q===""?"."+U(A,0):Q,R(ee)?(K="",le!=null&&(K=le.replace(k,"$&/")+"/"),P(ee,D,K,"",function(ve){return ve})):ee!=null&&(L(ee)&&(ee=I(ee,K+(ee.key==null||A&&A.key===ee.key?"":(""+ee.key).replace(k,"$&/")+"/")+le)),D.push(ee)),1;le=0;var de=Q===""?".":Q+":";if(R(A))for(var ye=0;ye<A.length;ye++)Q=A[ye],ie=de+U(Q,ye),le+=P(Q,D,K,ie,ee);else if(ye=$(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(Q=A.next()).done;)Q=Q.value,ie=de+U(Q,ye++),le+=P(Q,D,K,ie,ee);else if(ie==="object"){if(typeof A.then=="function")return P(F(A),D,K,Q,ee);throw D=String(A),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return le}function q(A,D,K){if(A==null)return A;var Q=[],ee=0;return P(A,Q,"","",function(ie){return D.call(K,ie,ee++)}),Q}function G(A){if(A._status===-1){var D=A._result;D=D(),D.then(function(K){(A._status===0||A._status===-1)&&(A._status=1,A._result=K)},function(K){(A._status===0||A._status===-1)&&(A._status=2,A._result=K)}),A._status===-1&&(A._status=0,A._result=D)}if(A._status===1)return A._result.default;throw A._result}var Y=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Z={map:q,forEach:function(A,D,K){q(A,function(){D.apply(this,arguments)},K)},count:function(A){var D=0;return q(A,function(){D++}),D},toArray:function(A){return q(A,function(D){return D})||[]},only:function(A){if(!L(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ze.Activity=b,Ze.Children=Z,Ze.Component=T,Ze.Fragment=o,Ze.Profiler=l,Ze.PureComponent=w,Ze.StrictMode=a,Ze.Suspense=h,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(A){return z.H.useMemoCache(A)}},Ze.cache=function(A){return function(){return A.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cloneElement=function(A,D,K){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Q=E({},A.props),ee=A.key;if(D!=null)for(ie in D.key!==void 0&&(ee=""+D.key),D)!B.call(D,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&D.ref===void 0||(Q[ie]=D[ie]);var ie=arguments.length-2;if(ie===1)Q.children=K;else if(1<ie){for(var le=Array(ie),de=0;de<ie;de++)le[de]=arguments[de+2];Q.children=le}return H(A.type,ee,Q)},Ze.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Ze.createElement=function(A,D,K){var Q,ee={},ie=null;if(D!=null)for(Q in D.key!==void 0&&(ie=""+D.key),D)B.call(D,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ee[Q]=D[Q]);var le=arguments.length-2;if(le===1)ee.children=K;else if(1<le){for(var de=Array(le),ye=0;ye<le;ye++)de[ye]=arguments[ye+2];ee.children=de}if(A&&A.defaultProps)for(Q in le=A.defaultProps,le)ee[Q]===void 0&&(ee[Q]=le[Q]);return H(A,ie,ee)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(A){return{$$typeof:m,render:A}},Ze.isValidElement=L,Ze.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:G}},Ze.memo=function(A,D){return{$$typeof:p,type:A,compare:D===void 0?null:D}},Ze.startTransition=function(A){var D=z.T,K={};z.T=K;try{var Q=A(),ee=z.S;ee!==null&&ee(K,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(_,Y)}catch(ie){Y(ie)}finally{D!==null&&K.types!==null&&(D.types=K.types),z.T=D}},Ze.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Ze.use=function(A){return z.H.use(A)},Ze.useActionState=function(A,D,K){return z.H.useActionState(A,D,K)},Ze.useCallback=function(A,D){return z.H.useCallback(A,D)},Ze.useContext=function(A){return z.H.useContext(A)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(A,D){return z.H.useDeferredValue(A,D)},Ze.useEffect=function(A,D){return z.H.useEffect(A,D)},Ze.useEffectEvent=function(A){return z.H.useEffectEvent(A)},Ze.useId=function(){return z.H.useId()},Ze.useImperativeHandle=function(A,D,K){return z.H.useImperativeHandle(A,D,K)},Ze.useInsertionEffect=function(A,D){return z.H.useInsertionEffect(A,D)},Ze.useLayoutEffect=function(A,D){return z.H.useLayoutEffect(A,D)},Ze.useMemo=function(A,D){return z.H.useMemo(A,D)},Ze.useOptimistic=function(A,D){return z.H.useOptimistic(A,D)},Ze.useReducer=function(A,D,K){return z.H.useReducer(A,D,K)},Ze.useRef=function(A){return z.H.useRef(A)},Ze.useState=function(A){return z.H.useState(A)},Ze.useSyncExternalStore=function(A,D,K){return z.H.useSyncExternalStore(A,D,K)},Ze.useTransition=function(){return z.H.useTransition()},Ze.version="19.2.4",Ze}var Iv;function Jp(){return Iv||(Iv=1,Sm.exports=Xw()),Sm.exports}var Cm={exports:{}},Vn={};var jv;function Ww(){if(jv)return Vn;jv=1;var e=Jp();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(h,p,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:h,containerInfo:p,implementation:y}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Vn.createPortal=function(h,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(h,p,null,y)},Vn.flushSync=function(h){var p=f.T,y=a.p;try{if(f.T=null,a.p=2,h)return h()}finally{f.T=p,a.p=y,a.d.f()}},Vn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Vn.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Vn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var y=p.as,b=m(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,$=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:$}):y==="script"&&a.d.X(h,{crossOrigin:b,integrity:v,fetchPriority:$,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Vn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=m(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(h)},Vn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,b=m(y,p.crossOrigin);a.d.L(h,y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Vn.preloadModule=function(h,p){if(typeof h=="string")if(p){var y=m(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Vn.requestFormReset=function(h){a.d.r(h)},Vn.unstable_batchedUpdates=function(h,p){return h(p)},Vn.useFormState=function(h,p,y){return f.H.useFormState(h,p,y)},Vn.useFormStatus=function(){return f.H.useHostTransitionStatus()},Vn.version="19.2.4",Vn}var Vv;function CC(){if(Vv)return Cm.exports;Vv=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(),Cm.exports=Ww(),Cm.exports}var Fv;function Yw(){if(Fv)return ts;Fv=1;var e=Gw(),t=Jp(),o=CC();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var r=n,i=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(i=r.return),n=r.return;while(n)}return r.tag===3?i:null}function f(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function m(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(c(n)!==n)throw Error(a(188))}function p(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(a(188));return r!==n?null:n}for(var i=n,s=r;;){var d=i.return;if(d===null)break;var g=d.alternate;if(g===null){if(s=d.return,s!==null){i=s;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===i)return h(d),n;if(g===s)return h(d),r;g=g.sibling}throw Error(a(188))}if(i.return!==s.return)i=d,s=g;else{for(var S=!1,O=d.child;O;){if(O===i){S=!0,i=d,s=g;break}if(O===s){S=!0,s=d,i=g;break}O=O.sibling}if(!S){for(O=g.child;O;){if(O===i){S=!0,i=g,s=d;break}if(O===s){S=!0,s=g,i=d;break}O=O.sibling}if(!S)throw Error(a(189))}}if(i.alternate!==s)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?n:r}function y(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=y(n),r!==null)return r;n=n.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),$=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),w=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function V(n){return n===null||typeof n!="object"?null:(n=L&&n[L]||n["@@iterator"],typeof n=="function"?n:null)}var k=Symbol.for("react.client.reference");function U(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===k?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case T:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case _:return"SuspenseList";case H:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case w:return n.displayName||"Context";case M:return(n._context.displayName||"Context")+".Consumer";case N:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return r=n.displayName||null,r!==null?r:U(n.type)||"Memo";case B:r=n._payload,n=n._init;try{return U(n(r))}catch{}}return null}var F=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},Y=[],Z=-1;function A(n){return{current:n}}function D(n){0>Z||(n.current=Y[Z],Y[Z]=null,Z--)}function K(n,r){Z++,Y[Z]=n.current,n.current=r}var Q=A(null),ee=A(null),ie=A(null),le=A(null);function de(n,r){switch(K(ie,r),K(ee,n),K(Q,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?rv(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=rv(r),n=ov(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}D(Q),K(Q,n)}function ye(){D(Q),D(ee),D(ie)}function ve(n){n.memoizedState!==null&&K(le,n);var r=Q.current,i=ov(r,n.type);r!==i&&(K(ee,n),K(Q,i))}function we(n){ee.current===n&&(D(Q),D(ee)),le.current===n&&(D(le),kl._currentValue=G)}var be,Se;function me(n){if(be===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",Se=-1<i.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+be+n+Se}var he=!1;function pe(n,r){if(!n||he)return"";he=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(se){var oe=se}Reflect.construct(n,[],ge)}else{try{ge.call()}catch(se){oe=se}n.call(ge.prototype)}}else{try{throw Error()}catch(se){oe=se}(ge=n())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(se){if(se&&oe&&typeof se.stack=="string")return[se.stack,oe.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),S=g[0],O=g[1];if(S&&O){var j=S.split(`
4
+ `),re=O.split(`
5
+ `);for(d=s=0;s<j.length&&!j[s].includes("DetermineComponentFrameRoot");)s++;for(;d<re.length&&!re[d].includes("DetermineComponentFrameRoot");)d++;if(s===j.length||d===re.length)for(s=j.length-1,d=re.length-1;1<=s&&0<=d&&j[s]!==re[d];)d--;for(;1<=s&&0<=d;s--,d--)if(j[s]!==re[d]){if(s!==1||d!==1)do if(s--,d--,0>d||j[s]!==re[d]){var ue=`
6
+ `+j[s].replace(" at new "," at ");return n.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",n.displayName)),ue}while(1<=s&&0<=d);break}}}finally{he=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?me(i):""}function Pe(n,r){switch(n.tag){case 26:case 27:case 5:return me(n.type);case 16:return me("Lazy");case 13:return n.child!==r&&r!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return pe(n.type,!1);case 11:return pe(n.type.render,!1);case 1:return pe(n.type,!0);case 31:return me("Activity");default:return""}}function Le(n){try{var r="",i=null;do r+=Pe(n,i),i=n,n=n.return;while(n);return r}catch(s){return`
7
+ Error generating stack: `+s.message+`
8
+ `+s.stack}}var Ee=Object.prototype.hasOwnProperty,Xe=e.unstable_scheduleCallback,Oe=e.unstable_cancelCallback,Re=e.unstable_shouldYield,De=e.unstable_requestPaint,Te=e.unstable_now,et=e.unstable_getCurrentPriorityLevel,it=e.unstable_ImmediatePriority,ft=e.unstable_UserBlockingPriority,Ue=e.unstable_NormalPriority,dt=e.unstable_LowPriority,Me=e.unstable_IdlePriority,xe=e.log,Ae=e.unstable_setDisableYieldValue,Ye=null,_e=null;function Ce(n){if(typeof xe=="function"&&Ae(n),_e&&typeof _e.setStrictMode=="function")try{_e.setStrictMode(Ye,n)}catch{}}var Ie=Math.clz32?Math.clz32:Ut,mt=Math.log,ke=Math.LN2;function Ut(n){return n>>>=0,n===0?32:31-(mt(n)/ke|0)|0}var bt=256,je=262144,Fe=4194304;function ot(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Pt(n,r,i){var s=n.pendingLanes;if(s===0)return 0;var d=0,g=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var O=s&134217727;return O!==0?(s=O&~g,s!==0?d=ot(s):(S&=O,S!==0?d=ot(S):i||(i=O&~n,i!==0&&(d=ot(i))))):(O=s&~g,O!==0?d=ot(O):S!==0?d=ot(S):i||(i=s&~n,i!==0&&(d=ot(i)))),d===0?0:r!==0&&r!==d&&(r&g)===0&&(g=d&-d,i=r&-r,g>=i||g===32&&(i&4194048)!==0)?r:d}function Wt(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function vt(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function un(){var n=Fe;return Fe<<=1,(Fe&62914560)===0&&(Fe=4194304),n}function Bn(n){for(var r=[],i=0;31>i;i++)r.push(n);return r}function Hn(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ve(n,r,i,s,d,g){var S=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var O=n.entanglements,j=n.expirationTimes,re=n.hiddenUpdates;for(i=S&~i;0<i;){var ue=31-Ie(i),ge=1<<ue;O[ue]=0,j[ue]=-1;var oe=re[ue];if(oe!==null)for(re[ue]=null,ue=0;ue<oe.length;ue++){var se=oe[ue];se!==null&&(se.lane&=-536870913)}i&=~ge}s!==0&&Be(n,s,0),g!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=g&~(S&~r))}function Be(n,r,i){n.pendingLanes|=r,n.suspendedLanes&=~r;var s=31-Ie(r);n.entangledLanes|=r,n.entanglements[s]=n.entanglements[s]|1073741824|i&261930}function We(n,r){var i=n.entangledLanes|=r;for(n=n.entanglements;i;){var s=31-Ie(i),d=1<<s;d&r|n[s]&r&&(n[s]|=r),i&=~d}}function at(n,r){var i=r&-r;return i=(i&42)!==0?1:It(i),(i&(n.suspendedLanes|r))!==0?0:i}function It(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Zt(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function gn(){var n=q.p;return n!==0?n:(n=window.event,n===void 0?32:Mv(n.type))}function jn(n,r){var i=q.p;try{return q.p=n,r()}finally{q.p=i}}var Gt=Math.random().toString(36).slice(2),rt="__reactFiber$"+Gt,Ot="__reactProps$"+Gt,$n="__reactContainer$"+Gt,Ne="__reactEvents$"+Gt,xt="__reactListeners$"+Gt,jt="__reactHandles$"+Gt,lt="__reactResources$"+Gt,Vt="__reactMarker$"+Gt;function pn(n){delete n[rt],delete n[Ot],delete n[Ne],delete n[xt],delete n[jt]}function en(n){var r=n[rt];if(r)return r;for(var i=n.parentNode;i;){if(r=i[$n]||i[rt]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(n=fv(n);n!==null;){if(i=n[rt])return i;n=fv(n)}return r}n=i,i=n.parentNode}return null}function wn(n){if(n=n[rt]||n[$n]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Xn(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function rr(n){var r=n[lt];return r||(r=n[lt]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Yt(n){n[Vt]=!0}var or=new Set,oo={};function tn(n,r){Sr(n,r),Sr(n+"Capture",r)}function Sr(n,r){for(oo[n]=r,n=0;n<r.length;n++)or.add(r[n])}var Ca=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ro={},ti={};function Ke(n){return Ee.call(ti,n)?!0:Ee.call(Ro,n)?!1:Ca.test(n)?ti[n]=!0:(Ro[n]=!0,!1)}function fn(n,r,i){if(Ke(r))if(i===null)n.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+i)}}function nn(n,r,i){if(i===null)n.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+i)}}function Un(n,r,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(r,i,""+s)}}function zn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function xa(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ws(n,r,i){var s=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,g=s.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(S){i=""+S,g.call(this,S)}}),Object.defineProperty(n,r,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Ea(n){if(!n._valueTracker){var r=xa(n)?"checked":"value";n._valueTracker=Ws(n,r,""+n[r])}}function ni(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var i=r.getValue(),s="";return n&&(s=xa(n)?n.checked?"true":"false":n.value),n=s,n!==i?(r.setValue(n),!0):!1}function No(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var $e=/[\n"\\]/g;function Qe(n){return n.replace($e,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function zo(n,r,i,s,d,g,S,O){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),r!=null?S==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+zn(r)):n.value!==""+zn(r)&&(n.value=""+zn(r)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),r!=null?ri(n,S,zn(r)):i!=null?ri(n,S,zn(i)):s!=null&&n.removeAttribute("value"),d==null&&g!=null&&(n.defaultChecked=!!g),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?n.name=""+zn(O):n.removeAttribute("name")}function Ys(n,r,i,s,d,g,S,O){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),r!=null||i!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){Ea(n);return}i=i!=null?""+zn(i):"",r=r!=null?""+zn(r):i,O||r===n.value||(n.value=r),n.defaultValue=r}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=O?n.checked:!!s,n.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S),Ea(n)}function ri(n,r,i){r==="number"&&No(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function ao(n,r,i,s){if(n=n.options,r){r={};for(var d=0;d<i.length;d++)r["$"+i[d]]=!0;for(i=0;i<n.length;i++)d=r.hasOwnProperty("$"+n[i].value),n[i].selected!==d&&(n[i].selected=d),d&&s&&(n[i].defaultSelected=!0)}else{for(i=""+zn(i),r=null,d=0;d<n.length;d++){if(n[d].value===i){n[d].selected=!0,s&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function Ks(n,r,i){if(r!=null&&(r=""+zn(r),r!==n.value&&(n.value=r),i==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=i!=null?""+zn(i):""}function Jh(n,r,i,s){if(r==null){if(s!=null){if(i!=null)throw Error(a(92));if(F(s)){if(1<s.length)throw Error(a(93));s=s[0]}i=s}i==null&&(i=""),r=i}i=zn(r),n.defaultValue=i,s=n.textContent,s===i&&s!==""&&s!==null&&(n.value=s),Ea(n)}function oi(n,r){if(r){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=r;return}}n.textContent=r}var L$=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function e0(n,r,i){var s=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":s?n.setProperty(r,i):typeof i!="number"||i===0||L$.has(r)?r==="float"?n.cssFloat=i:n[r]=(""+i).trim():n[r]=i+"px"}function t0(n,r,i){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var d in r)s=r[d],r.hasOwnProperty(d)&&i[d]!==s&&e0(n,d,s)}else for(var g in r)r.hasOwnProperty(g)&&e0(n,g,r[g])}function df(n){if(n.indexOf("-")===-1)return!1;switch(n){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 D$=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),P$=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ks(n){return P$.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function io(){}var mf=null;function gf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ai=null,ii=null;function n0(n){var r=wn(n);if(r&&(n=r.stateNode)){var i=n[Ot]||null;e:switch(n=r.stateNode,r.type){case"input":if(zo(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Qe(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var s=i[r];if(s!==n&&s.form===n.form){var d=s[Ot]||null;if(!d)throw Error(a(90));zo(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<i.length;r++)s=i[r],s.form===n.form&&ni(s)}break e;case"textarea":Ks(n,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&ao(n,!!i.multiple,r,!1)}}}var pf=!1;function r0(n,r,i){if(pf)return n(r,i);pf=!0;try{var s=n(r);return s}finally{if(pf=!1,(ai!==null||ii!==null)&&(Dc(),ai&&(r=ai,n=ii,ii=ai=null,n0(r),n)))for(r=0;r<n.length;r++)n0(n[r])}}function ml(n,r){var i=n.stateNode;if(i===null)return null;var s=i[Ot]||null;if(s===null)return null;i=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(a(231,r,typeof i));return i}var lo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hf=!1;if(lo)try{var gl={};Object.defineProperty(gl,"passive",{get:function(){hf=!0}}),window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{hf=!1}var Oo=null,yf=null,Qs=null;function o0(){if(Qs)return Qs;var n,r=yf,i=r.length,s,d="value"in Oo?Oo.value:Oo.textContent,g=d.length;for(n=0;n<i&&r[n]===d[n];n++);var S=i-n;for(s=1;s<=S&&r[i-s]===d[g-s];s++);return Qs=d.slice(n,1<s?1-s:void 0)}function Zs(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Js(){return!0}function a0(){return!1}function Wn(n){function r(i,s,d,g,S){this._reactName=i,this._targetInst=d,this.type=s,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var O in n)n.hasOwnProperty(O)&&(i=n[O],this[O]=i?i(g):g[O]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Js:a0,this.isPropagationStopped=a0,this}return b(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),r}var $a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ec=Wn($a),pl=b({},$a,{view:0,detail:0}),I$=Wn(pl),bf,vf,hl,tc=b({},pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==hl&&(hl&&n.type==="mousemove"?(bf=n.screenX-hl.screenX,vf=n.screenY-hl.screenY):vf=bf=0,hl=n),bf)},movementY:function(n){return"movementY"in n?n.movementY:vf}}),i0=Wn(tc),j$=b({},tc,{dataTransfer:0}),V$=Wn(j$),F$=b({},pl,{relatedTarget:0}),Sf=Wn(F$),q$=b({},$a,{animationName:0,elapsedTime:0,pseudoElement:0}),U$=Wn(q$),G$=b({},$a,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),X$=Wn(G$),W$=b({},$a,{data:0}),l0=Wn(W$),Y$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K$={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"},k$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q$(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=k$[n])?!!r[n]:!1}function Cf(){return Q$}var Z$=b({},pl,{key:function(n){if(n.key){var r=Y$[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Zs(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?K$[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cf,charCode:function(n){return n.type==="keypress"?Zs(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Zs(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),J$=Wn(Z$),e2=b({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s0=Wn(e2),t2=b({},pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cf}),n2=Wn(t2),r2=b({},$a,{propertyName:0,elapsedTime:0,pseudoElement:0}),o2=Wn(r2),a2=b({},tc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),i2=Wn(a2),l2=b({},$a,{newState:0,oldState:0}),s2=Wn(l2),c2=[9,13,27,32],xf=lo&&"CompositionEvent"in window,yl=null;lo&&"documentMode"in document&&(yl=document.documentMode);var u2=lo&&"TextEvent"in window&&!yl,c0=lo&&(!xf||yl&&8<yl&&11>=yl),u0=" ",f0=!1;function d0(n,r){switch(n){case"keyup":return c2.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var li=!1;function f2(n,r){switch(n){case"compositionend":return m0(r);case"keypress":return r.which!==32?null:(f0=!0,u0);case"textInput":return n=r.data,n===u0&&f0?null:n;default:return null}}function d2(n,r){if(li)return n==="compositionend"||!xf&&d0(n,r)?(n=o0(),Qs=yf=Oo=null,li=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return c0&&r.locale!=="ko"?null:r.data;default:return null}}var m2={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 g0(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!m2[n.type]:r==="textarea"}function p0(n,r,i,s){ai?ii?ii.push(s):ii=[s]:ai=s,r=Uc(r,"onChange"),0<r.length&&(i=new ec("onChange","change",null,i,s),n.push({event:i,listeners:r}))}var bl=null,vl=null;function g2(n){Qb(n,0)}function nc(n){var r=Xn(n);if(ni(r))return n}function h0(n,r){if(n==="change")return r}var y0=!1;if(lo){var Ef;if(lo){var $f="oninput"in document;if(!$f){var b0=document.createElement("div");b0.setAttribute("oninput","return;"),$f=typeof b0.oninput=="function"}Ef=$f}else Ef=!1;y0=Ef&&(!document.documentMode||9<document.documentMode)}function v0(){bl&&(bl.detachEvent("onpropertychange",S0),vl=bl=null)}function S0(n){if(n.propertyName==="value"&&nc(vl)){var r=[];p0(r,vl,n,gf(n)),r0(g2,r)}}function p2(n,r,i){n==="focusin"?(v0(),bl=r,vl=i,bl.attachEvent("onpropertychange",S0)):n==="focusout"&&v0()}function h2(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return nc(vl)}function y2(n,r){if(n==="click")return nc(r)}function b2(n,r){if(n==="input"||n==="change")return nc(r)}function v2(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var ar=typeof Object.is=="function"?Object.is:v2;function Sl(n,r){if(ar(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var i=Object.keys(n),s=Object.keys(r);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var d=i[s];if(!Ee.call(r,d)||!ar(n[d],r[d]))return!1}return!0}function C0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function x0(n,r){var i=C0(n);n=0;for(var s;i;){if(i.nodeType===3){if(s=n+i.textContent.length,n<=r&&s>=r)return{node:i,offset:r-n};n=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=C0(i)}}function E0(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?E0(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function $0(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=No(n.document);r instanceof n.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)n=r.contentWindow;else break;r=No(n.document)}return r}function wf(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var S2=lo&&"documentMode"in document&&11>=document.documentMode,si=null,Tf=null,Cl=null,Mf=!1;function w0(n,r,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Mf||si==null||si!==No(s)||(s=si,"selectionStart"in s&&wf(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Cl&&Sl(Cl,s)||(Cl=s,s=Uc(Tf,"onSelect"),0<s.length&&(r=new ec("onSelect","select",null,r,i),n.push({event:r,listeners:s}),r.target=si)))}function wa(n,r){var i={};return i[n.toLowerCase()]=r.toLowerCase(),i["Webkit"+n]="webkit"+r,i["Moz"+n]="moz"+r,i}var ci={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionrun:wa("Transition","TransitionRun"),transitionstart:wa("Transition","TransitionStart"),transitioncancel:wa("Transition","TransitionCancel"),transitionend:wa("Transition","TransitionEnd")},Rf={},T0={};lo&&(T0=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function Ta(n){if(Rf[n])return Rf[n];if(!ci[n])return n;var r=ci[n],i;for(i in r)if(r.hasOwnProperty(i)&&i in T0)return Rf[n]=r[i];return n}var M0=Ta("animationend"),R0=Ta("animationiteration"),N0=Ta("animationstart"),C2=Ta("transitionrun"),x2=Ta("transitionstart"),E2=Ta("transitioncancel"),z0=Ta("transitionend"),O0=new Map,Nf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nf.push("scrollEnd");function Ir(n,r){O0.set(n,r),tn(r,[n])}var rc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Cr=[],ui=0,zf=0;function oc(){for(var n=ui,r=zf=ui=0;r<n;){var i=Cr[r];Cr[r++]=null;var s=Cr[r];Cr[r++]=null;var d=Cr[r];Cr[r++]=null;var g=Cr[r];if(Cr[r++]=null,s!==null&&d!==null){var S=s.pending;S===null?d.next=d:(d.next=S.next,S.next=d),s.pending=d}g!==0&&A0(i,d,g)}}function ac(n,r,i,s){Cr[ui++]=n,Cr[ui++]=r,Cr[ui++]=i,Cr[ui++]=s,zf|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function Of(n,r,i,s){return ac(n,r,i,s),ic(n)}function Ma(n,r){return ac(n,null,null,r),ic(n)}function A0(n,r,i){n.lanes|=i;var s=n.alternate;s!==null&&(s.lanes|=i);for(var d=!1,g=n.return;g!==null;)g.childLanes|=i,s=g.alternate,s!==null&&(s.childLanes|=i),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(d=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,d&&r!==null&&(d=31-Ie(i),n=g.hiddenUpdates,s=n[d],s===null?n[d]=[r]:s.push(r),r.lane=i|536870912),g):null}function ic(n){if(50<ql)throw ql=0,jd=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var fi={};function $2(n,r,i,s){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ir(n,r,i,s){return new $2(n,r,i,s)}function Af(n){return n=n.prototype,!(!n||!n.isReactComponent)}function so(n,r){var i=n.alternate;return i===null?(i=ir(n.tag,r,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=r,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,r=n.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function _0(n,r){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,r=i.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function lc(n,r,i,s,d,g){var S=0;if(s=n,typeof n=="function")Af(n)&&(S=1);else if(typeof n=="string")S=Nw(n,i,Q.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case H:return n=ir(31,i,r,d),n.elementType=H,n.lanes=g,n;case E:return Ra(i.children,d,g,r);case C:S=8,d|=24;break;case T:return n=ir(12,i,r,d|2),n.elementType=T,n.lanes=g,n;case R:return n=ir(13,i,r,d),n.elementType=R,n.lanes=g,n;case _:return n=ir(19,i,r,d),n.elementType=_,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case w:S=10;break e;case M:S=9;break e;case N:S=11;break e;case z:S=14;break e;case B:S=16,s=null;break e}S=29,i=Error(a(130,n===null?"null":typeof n,"")),s=null}return r=ir(S,i,r,d),r.elementType=n,r.type=s,r.lanes=g,r}function Ra(n,r,i,s){return n=ir(7,n,s,r),n.lanes=i,n}function _f(n,r,i){return n=ir(6,n,null,r),n.lanes=i,n}function B0(n){var r=ir(18,null,null,0);return r.stateNode=n,r}function Bf(n,r,i){return r=ir(4,n.children!==null?n.children:[],n.key,r),r.lanes=i,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var H0=new WeakMap;function xr(n,r){if(typeof n=="object"&&n!==null){var i=H0.get(n);return i!==void 0?i:(r={value:n,source:r,stack:Le(r)},H0.set(n,r),r)}return{value:n,source:r,stack:Le(r)}}var di=[],mi=0,sc=null,xl=0,Er=[],$r=0,Ao=null,Wr=1,Yr="";function co(n,r){di[mi++]=xl,di[mi++]=sc,sc=n,xl=r}function L0(n,r,i){Er[$r++]=Wr,Er[$r++]=Yr,Er[$r++]=Ao,Ao=n;var s=Wr;n=Yr;var d=32-Ie(s)-1;s&=~(1<<d),i+=1;var g=32-Ie(r)+d;if(30<g){var S=d-d%5;g=(s&(1<<S)-1).toString(32),s>>=S,d-=S,Wr=1<<32-Ie(r)+d|i<<d|s,Yr=g+n}else Wr=1<<g|i<<d|s,Yr=n}function Hf(n){n.return!==null&&(co(n,1),L0(n,1,0))}function Lf(n){for(;n===sc;)sc=di[--mi],di[mi]=null,xl=di[--mi],di[mi]=null;for(;n===Ao;)Ao=Er[--$r],Er[$r]=null,Yr=Er[--$r],Er[$r]=null,Wr=Er[--$r],Er[$r]=null}function D0(n,r){Er[$r++]=Wr,Er[$r++]=Yr,Er[$r++]=Ao,Wr=r.id,Yr=r.overflow,Ao=n}var Ln=null,Kt=null,yt=!1,_o=null,wr=!1,Df=Error(a(519));function Bo(n){var r=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw El(xr(r,n)),Df}function P0(n){var r=n.stateNode,i=n.type,s=n.memoizedProps;switch(r[rt]=n,r[Ot]=s,i){case"dialog":ct("cancel",r),ct("close",r);break;case"iframe":case"object":case"embed":ct("load",r);break;case"video":case"audio":for(i=0;i<Gl.length;i++)ct(Gl[i],r);break;case"source":ct("error",r);break;case"img":case"image":case"link":ct("error",r),ct("load",r);break;case"details":ct("toggle",r);break;case"input":ct("invalid",r),Ys(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ct("invalid",r);break;case"textarea":ct("invalid",r),Jh(r,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||s.suppressHydrationWarning===!0||tv(r.textContent,i)?(s.popover!=null&&(ct("beforetoggle",r),ct("toggle",r)),s.onScroll!=null&&ct("scroll",r),s.onScrollEnd!=null&&ct("scrollend",r),s.onClick!=null&&(r.onclick=io),r=!0):r=!1,r||Bo(n,!0)}function I0(n){for(Ln=n.return;Ln;)switch(Ln.tag){case 5:case 31:case 13:wr=!1;return;case 27:case 3:wr=!0;return;default:Ln=Ln.return}}function gi(n){if(n!==Ln)return!1;if(!yt)return I0(n),yt=!0,!1;var r=n.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||tm(n.type,n.memoizedProps)),i=!i),i&&Kt&&Bo(n),I0(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Kt=uv(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Kt=uv(n)}else r===27?(r=Kt,Yo(n.type)?(n=im,im=null,Kt=n):Kt=r):Kt=Ln?Mr(n.stateNode.nextSibling):null;return!0}function Na(){Kt=Ln=null,yt=!1}function Pf(){var n=_o;return n!==null&&(Qn===null?Qn=n:Qn.push.apply(Qn,n),_o=null),n}function El(n){_o===null?_o=[n]:_o.push(n)}var If=A(null),za=null,uo=null;function Ho(n,r,i){K(If,r._currentValue),r._currentValue=i}function fo(n){n._currentValue=If.current,D(If)}function jf(n,r,i){for(;n!==null;){var s=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),n===i)break;n=n.return}}function Vf(n,r,i,s){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var g=d.dependencies;if(g!==null){var S=d.child;g=g.firstContext;e:for(;g!==null;){var O=g;g=d;for(var j=0;j<r.length;j++)if(O.context===r[j]){g.lanes|=i,O=g.alternate,O!==null&&(O.lanes|=i),jf(g.return,i,n),s||(S=null);break e}g=O.next}}else if(d.tag===18){if(S=d.return,S===null)throw Error(a(341));S.lanes|=i,g=S.alternate,g!==null&&(g.lanes|=i),jf(S,i,n),S=null}else S=d.child;if(S!==null)S.return=d;else for(S=d;S!==null;){if(S===n){S=null;break}if(d=S.sibling,d!==null){d.return=S.return,S=d;break}S=S.return}d=S}}function pi(n,r,i,s){n=null;for(var d=r,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var S=d.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var O=d.type;ar(d.pendingProps.value,S.value)||(n!==null?n.push(O):n=[O])}}else if(d===le.current){if(S=d.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(kl):n=[kl])}d=d.return}n!==null&&Vf(r,n,i,s),r.flags|=262144}function cc(n){for(n=n.firstContext;n!==null;){if(!ar(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Oa(n){za=n,uo=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Dn(n){return j0(za,n)}function uc(n,r){return za===null&&Oa(n),j0(n,r)}function j0(n,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},uo===null){if(n===null)throw Error(a(308));uo=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else uo=uo.next=r;return i}var w2=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(i,s){n.push(s)}};this.abort=function(){r.aborted=!0,n.forEach(function(i){return i()})}},T2=e.unstable_scheduleCallback,M2=e.unstable_NormalPriority,hn={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ff(){return{controller:new w2,data:new Map,refCount:0}}function $l(n){n.refCount--,n.refCount===0&&T2(M2,function(){n.controller.abort()})}var wl=null,qf=0,hi=0,yi=null;function R2(n,r){if(wl===null){var i=wl=[];qf=0,hi=Xd(),yi={status:"pending",value:void 0,then:function(s){i.push(s)}}}return qf++,r.then(V0,V0),r}function V0(){if(--qf===0&&wl!==null){yi!==null&&(yi.status="fulfilled");var n=wl;wl=null,hi=0,yi=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function N2(n,r){var i=[],s={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return n.then(function(){s.status="fulfilled",s.value=r;for(var d=0;d<i.length;d++)(0,i[d])(r)},function(d){for(s.status="rejected",s.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),s}var F0=P.S;P.S=function(n,r){wb=Te(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&R2(n,r),F0!==null&&F0(n,r)};var Aa=A(null);function Uf(){var n=Aa.current;return n!==null?n:Ft.pooledCache}function fc(n,r){r===null?K(Aa,Aa.current):K(Aa,r.pool)}function q0(){var n=Uf();return n===null?null:{parent:hn._currentValue,pool:n}}var bi=Error(a(460)),Gf=Error(a(474)),dc=Error(a(542)),mc={then:function(){}};function U0(n){return n=n.status,n==="fulfilled"||n==="rejected"}function G0(n,r,i){switch(i=n[i],i===void 0?n.push(r):i!==r&&(r.then(io,io),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,W0(n),n;default:if(typeof r.status=="string")r.then(io,io);else{if(n=Ft,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(s){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=s}},function(s){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,W0(n),n}throw Ba=r,bi}}function _a(n){try{var r=n._init;return r(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ba=i,bi):i}}var Ba=null;function X0(){if(Ba===null)throw Error(a(459));var n=Ba;return Ba=null,n}function W0(n){if(n===bi||n===dc)throw Error(a(483))}var vi=null,Tl=0;function gc(n){var r=Tl;return Tl+=1,vi===null&&(vi=[]),G0(vi,n,r)}function Ml(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function pc(n,r){throw r.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function Y0(n){function r(J,X){if(n){var ne=J.deletions;ne===null?(J.deletions=[X],J.flags|=16):ne.push(X)}}function i(J,X){if(!n)return null;for(;X!==null;)r(J,X),X=X.sibling;return null}function s(J){for(var X=new Map;J!==null;)J.key!==null?X.set(J.key,J):X.set(J.index,J),J=J.sibling;return X}function d(J,X){return J=so(J,X),J.index=0,J.sibling=null,J}function g(J,X,ne){return J.index=ne,n?(ne=J.alternate,ne!==null?(ne=ne.index,ne<X?(J.flags|=67108866,X):ne):(J.flags|=67108866,X)):(J.flags|=1048576,X)}function S(J){return n&&J.alternate===null&&(J.flags|=67108866),J}function O(J,X,ne,fe){return X===null||X.tag!==6?(X=_f(ne,J.mode,fe),X.return=J,X):(X=d(X,ne),X.return=J,X)}function j(J,X,ne,fe){var qe=ne.type;return qe===E?ue(J,X,ne.props.children,fe,ne.key):X!==null&&(X.elementType===qe||typeof qe=="object"&&qe!==null&&qe.$$typeof===B&&_a(qe)===X.type)?(X=d(X,ne.props),Ml(X,ne),X.return=J,X):(X=lc(ne.type,ne.key,ne.props,null,J.mode,fe),Ml(X,ne),X.return=J,X)}function re(J,X,ne,fe){return X===null||X.tag!==4||X.stateNode.containerInfo!==ne.containerInfo||X.stateNode.implementation!==ne.implementation?(X=Bf(ne,J.mode,fe),X.return=J,X):(X=d(X,ne.children||[]),X.return=J,X)}function ue(J,X,ne,fe,qe){return X===null||X.tag!==7?(X=Ra(ne,J.mode,fe,qe),X.return=J,X):(X=d(X,ne),X.return=J,X)}function ge(J,X,ne){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=_f(""+X,J.mode,ne),X.return=J,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case $:return ne=lc(X.type,X.key,X.props,null,J.mode,ne),Ml(ne,X),ne.return=J,ne;case x:return X=Bf(X,J.mode,ne),X.return=J,X;case B:return X=_a(X),ge(J,X,ne)}if(F(X)||V(X))return X=Ra(X,J.mode,ne,null),X.return=J,X;if(typeof X.then=="function")return ge(J,gc(X),ne);if(X.$$typeof===w)return ge(J,uc(J,X),ne);pc(J,X)}return null}function oe(J,X,ne,fe){var qe=X!==null?X.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return qe!==null?null:O(J,X,""+ne,fe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case $:return ne.key===qe?j(J,X,ne,fe):null;case x:return ne.key===qe?re(J,X,ne,fe):null;case B:return ne=_a(ne),oe(J,X,ne,fe)}if(F(ne)||V(ne))return qe!==null?null:ue(J,X,ne,fe,null);if(typeof ne.then=="function")return oe(J,X,gc(ne),fe);if(ne.$$typeof===w)return oe(J,X,uc(J,ne),fe);pc(J,ne)}return null}function se(J,X,ne,fe,qe){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return J=J.get(ne)||null,O(X,J,""+fe,qe);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case $:return J=J.get(fe.key===null?ne:fe.key)||null,j(X,J,fe,qe);case x:return J=J.get(fe.key===null?ne:fe.key)||null,re(X,J,fe,qe);case B:return fe=_a(fe),se(J,X,ne,fe,qe)}if(F(fe)||V(fe))return J=J.get(ne)||null,ue(X,J,fe,qe,null);if(typeof fe.then=="function")return se(J,X,ne,gc(fe),qe);if(fe.$$typeof===w)return se(J,X,ne,uc(X,fe),qe);pc(X,fe)}return null}function ze(J,X,ne,fe){for(var qe=null,St=null,He=X,tt=X=0,pt=null;He!==null&&tt<ne.length;tt++){He.index>tt?(pt=He,He=null):pt=He.sibling;var Ct=oe(J,He,ne[tt],fe);if(Ct===null){He===null&&(He=pt);break}n&&He&&Ct.alternate===null&&r(J,He),X=g(Ct,X,tt),St===null?qe=Ct:St.sibling=Ct,St=Ct,He=pt}if(tt===ne.length)return i(J,He),yt&&co(J,tt),qe;if(He===null){for(;tt<ne.length;tt++)He=ge(J,ne[tt],fe),He!==null&&(X=g(He,X,tt),St===null?qe=He:St.sibling=He,St=He);return yt&&co(J,tt),qe}for(He=s(He);tt<ne.length;tt++)pt=se(He,J,tt,ne[tt],fe),pt!==null&&(n&&pt.alternate!==null&&He.delete(pt.key===null?tt:pt.key),X=g(pt,X,tt),St===null?qe=pt:St.sibling=pt,St=pt);return n&&He.forEach(function(Jo){return r(J,Jo)}),yt&&co(J,tt),qe}function Ge(J,X,ne,fe){if(ne==null)throw Error(a(151));for(var qe=null,St=null,He=X,tt=X=0,pt=null,Ct=ne.next();He!==null&&!Ct.done;tt++,Ct=ne.next()){He.index>tt?(pt=He,He=null):pt=He.sibling;var Jo=oe(J,He,Ct.value,fe);if(Jo===null){He===null&&(He=pt);break}n&&He&&Jo.alternate===null&&r(J,He),X=g(Jo,X,tt),St===null?qe=Jo:St.sibling=Jo,St=Jo,He=pt}if(Ct.done)return i(J,He),yt&&co(J,tt),qe;if(He===null){for(;!Ct.done;tt++,Ct=ne.next())Ct=ge(J,Ct.value,fe),Ct!==null&&(X=g(Ct,X,tt),St===null?qe=Ct:St.sibling=Ct,St=Ct);return yt&&co(J,tt),qe}for(He=s(He);!Ct.done;tt++,Ct=ne.next())Ct=se(He,J,tt,Ct.value,fe),Ct!==null&&(n&&Ct.alternate!==null&&He.delete(Ct.key===null?tt:Ct.key),X=g(Ct,X,tt),St===null?qe=Ct:St.sibling=Ct,St=Ct);return n&&He.forEach(function(jw){return r(J,jw)}),yt&&co(J,tt),qe}function Bt(J,X,ne,fe){if(typeof ne=="object"&&ne!==null&&ne.type===E&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case $:e:{for(var qe=ne.key;X!==null;){if(X.key===qe){if(qe=ne.type,qe===E){if(X.tag===7){i(J,X.sibling),fe=d(X,ne.props.children),fe.return=J,J=fe;break e}}else if(X.elementType===qe||typeof qe=="object"&&qe!==null&&qe.$$typeof===B&&_a(qe)===X.type){i(J,X.sibling),fe=d(X,ne.props),Ml(fe,ne),fe.return=J,J=fe;break e}i(J,X);break}else r(J,X);X=X.sibling}ne.type===E?(fe=Ra(ne.props.children,J.mode,fe,ne.key),fe.return=J,J=fe):(fe=lc(ne.type,ne.key,ne.props,null,J.mode,fe),Ml(fe,ne),fe.return=J,J=fe)}return S(J);case x:e:{for(qe=ne.key;X!==null;){if(X.key===qe)if(X.tag===4&&X.stateNode.containerInfo===ne.containerInfo&&X.stateNode.implementation===ne.implementation){i(J,X.sibling),fe=d(X,ne.children||[]),fe.return=J,J=fe;break e}else{i(J,X);break}else r(J,X);X=X.sibling}fe=Bf(ne,J.mode,fe),fe.return=J,J=fe}return S(J);case B:return ne=_a(ne),Bt(J,X,ne,fe)}if(F(ne))return ze(J,X,ne,fe);if(V(ne)){if(qe=V(ne),typeof qe!="function")throw Error(a(150));return ne=qe.call(ne),Ge(J,X,ne,fe)}if(typeof ne.then=="function")return Bt(J,X,gc(ne),fe);if(ne.$$typeof===w)return Bt(J,X,uc(J,ne),fe);pc(J,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,X!==null&&X.tag===6?(i(J,X.sibling),fe=d(X,ne),fe.return=J,J=fe):(i(J,X),fe=_f(ne,J.mode,fe),fe.return=J,J=fe),S(J)):i(J,X)}return function(J,X,ne,fe){try{Tl=0;var qe=Bt(J,X,ne,fe);return vi=null,qe}catch(He){if(He===bi||He===dc)throw He;var St=ir(29,He,null,J.mode);return St.lanes=fe,St.return=J,St}}}var Ha=Y0(!0),K0=Y0(!1),Lo=!1;function Xf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wf(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Do(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Po(n,r,i){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(Et&2)!==0){var d=s.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),s.pending=r,r=ic(n),A0(n,null,i),r}return ac(n,s,r,i),ic(n)}function Rl(n,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var s=r.lanes;s&=n.pendingLanes,i|=s,r.lanes=i,We(n,i)}}function Yf(n,r){var i=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var d=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};g===null?d=g=S:g=g.next=S,i=i.next}while(i!==null);g===null?d=g=r:g=g.next=r}else d=g=r;i={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=r:n.next=r,i.lastBaseUpdate=r}var Kf=!1;function Nl(){if(Kf){var n=yi;if(n!==null)throw n}}function zl(n,r,i,s){Kf=!1;var d=n.updateQueue;Lo=!1;var g=d.firstBaseUpdate,S=d.lastBaseUpdate,O=d.shared.pending;if(O!==null){d.shared.pending=null;var j=O,re=j.next;j.next=null,S===null?g=re:S.next=re,S=j;var ue=n.alternate;ue!==null&&(ue=ue.updateQueue,O=ue.lastBaseUpdate,O!==S&&(O===null?ue.firstBaseUpdate=re:O.next=re,ue.lastBaseUpdate=j))}if(g!==null){var ge=d.baseState;S=0,ue=re=j=null,O=g;do{var oe=O.lane&-536870913,se=oe!==O.lane;if(se?(gt&oe)===oe:(s&oe)===oe){oe!==0&&oe===hi&&(Kf=!0),ue!==null&&(ue=ue.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var ze=n,Ge=O;oe=r;var Bt=i;switch(Ge.tag){case 1:if(ze=Ge.payload,typeof ze=="function"){ge=ze.call(Bt,ge,oe);break e}ge=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Ge.payload,oe=typeof ze=="function"?ze.call(Bt,ge,oe):ze,oe==null)break e;ge=b({},ge,oe);break e;case 2:Lo=!0}}oe=O.callback,oe!==null&&(n.flags|=64,se&&(n.flags|=8192),se=d.callbacks,se===null?d.callbacks=[oe]:se.push(oe))}else se={lane:oe,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ue===null?(re=ue=se,j=ge):ue=ue.next=se,S|=oe;if(O=O.next,O===null){if(O=d.shared.pending,O===null)break;se=O,O=se.next,se.next=null,d.lastBaseUpdate=se,d.shared.pending=null}}while(!0);ue===null&&(j=ge),d.baseState=j,d.firstBaseUpdate=re,d.lastBaseUpdate=ue,g===null&&(d.shared.lanes=0),qo|=S,n.lanes=S,n.memoizedState=ge}}function k0(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Q0(n,r){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)k0(i[n],r)}var Si=A(null),hc=A(0);function Z0(n,r){n=Co,K(hc,n),K(Si,r),Co=n|r.baseLanes}function kf(){K(hc,Co),K(Si,Si.current)}function Qf(){Co=hc.current,D(Si),D(hc)}var lr=A(null),Tr=null;function Io(n){var r=n.alternate;K(dn,dn.current&1),K(lr,n),Tr===null&&(r===null||Si.current!==null||r.memoizedState!==null)&&(Tr=n)}function Zf(n){K(dn,dn.current),K(lr,n),Tr===null&&(Tr=n)}function J0(n){n.tag===22?(K(dn,dn.current),K(lr,n),Tr===null&&(Tr=n)):jo()}function jo(){K(dn,dn.current),K(lr,lr.current)}function sr(n){D(lr),Tr===n&&(Tr=null),D(dn)}var dn=A(0);function yc(n){for(var r=n;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||om(i)||am(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var mo=0,Je=null,At=null,yn=null,bc=!1,Ci=!1,La=!1,vc=0,Ol=0,xi=null,z2=0;function rn(){throw Error(a(321))}function Jf(n,r){if(r===null)return!1;for(var i=0;i<r.length&&i<n.length;i++)if(!ar(n[i],r[i]))return!1;return!0}function ed(n,r,i,s,d,g){return mo=g,Je=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,P.H=n===null||n.memoizedState===null?Ly:pd,La=!1,g=i(s,d),La=!1,Ci&&(g=ty(r,i,s,d)),ey(n),g}function ey(n){P.H=Bl;var r=At!==null&&At.next!==null;if(mo=0,yn=At=Je=null,bc=!1,Ol=0,xi=null,r)throw Error(a(300));n===null||bn||(n=n.dependencies,n!==null&&cc(n)&&(bn=!0))}function ty(n,r,i,s){Je=n;var d=0;do{if(Ci&&(xi=null),Ol=0,Ci=!1,25<=d)throw Error(a(301));if(d+=1,yn=At=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}P.H=Dy,g=r(i,s)}while(Ci);return g}function O2(){var n=P.H,r=n.useState()[0];return r=typeof r.then=="function"?Al(r):r,n=n.useState()[0],(At!==null?At.memoizedState:null)!==n&&(Je.flags|=1024),r}function td(){var n=vc!==0;return vc=0,n}function nd(n,r,i){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~i}function rd(n){if(bc){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}bc=!1}mo=0,yn=At=Je=null,Ci=!1,Ol=vc=0,xi=null}function Gn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?Je.memoizedState=yn=n:yn=yn.next=n,yn}function mn(){if(At===null){var n=Je.alternate;n=n!==null?n.memoizedState:null}else n=At.next;var r=yn===null?Je.memoizedState:yn.next;if(r!==null)yn=r,At=n;else{if(n===null)throw Je.alternate===null?Error(a(467)):Error(a(310));At=n,n={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},yn===null?Je.memoizedState=yn=n:yn=yn.next=n}return yn}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(n){var r=Ol;return Ol+=1,xi===null&&(xi=[]),n=G0(xi,n,r),r=Je,(yn===null?r.memoizedState:yn.next)===null&&(r=r.alternate,P.H=r===null||r.memoizedState===null?Ly:pd),n}function Cc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Al(n);if(n.$$typeof===w)return Dn(n)}throw Error(a(438,String(n)))}function od(n){var r=null,i=Je.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var s=Je.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=Sc(),Je.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(n),s=0;s<n;s++)i[s]=I;return r.index++,i}function go(n,r){return typeof r=="function"?r(n):r}function xc(n){var r=mn();return ad(r,At,n)}function ad(n,r,i){var s=n.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=i;var d=n.baseQueue,g=s.pending;if(g!==null){if(d!==null){var S=d.next;d.next=g.next,g.next=S}r.baseQueue=d=g,s.pending=null}if(g=n.baseState,d===null)n.memoizedState=g;else{r=d.next;var O=S=null,j=null,re=r,ue=!1;do{var ge=re.lane&-536870913;if(ge!==re.lane?(gt&ge)===ge:(mo&ge)===ge){var oe=re.revertLane;if(oe===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),ge===hi&&(ue=!0);else if((mo&oe)===oe){re=re.next,oe===hi&&(ue=!0);continue}else ge={lane:0,revertLane:re.revertLane,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},j===null?(O=j=ge,S=g):j=j.next=ge,Je.lanes|=oe,qo|=oe;ge=re.action,La&&i(g,ge),g=re.hasEagerState?re.eagerState:i(g,ge)}else oe={lane:ge,revertLane:re.revertLane,gesture:re.gesture,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},j===null?(O=j=oe,S=g):j=j.next=oe,Je.lanes|=ge,qo|=ge;re=re.next}while(re!==null&&re!==r);if(j===null?S=g:j.next=O,!ar(g,n.memoizedState)&&(bn=!0,ue&&(i=yi,i!==null)))throw i;n.memoizedState=g,n.baseState=S,n.baseQueue=j,s.lastRenderedState=g}return d===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function id(n){var r=mn(),i=r.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=n;var s=i.dispatch,d=i.pending,g=r.memoizedState;if(d!==null){i.pending=null;var S=d=d.next;do g=n(g,S.action),S=S.next;while(S!==d);ar(g,r.memoizedState)||(bn=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),i.lastRenderedState=g}return[g,s]}function ny(n,r,i){var s=Je,d=mn(),g=yt;if(g){if(i===void 0)throw Error(a(407));i=i()}else i=r();var S=!ar((At||d).memoizedState,i);if(S&&(d.memoizedState=i,bn=!0),d=d.queue,cd(ay.bind(null,s,d,n),[n]),d.getSnapshot!==r||S||yn!==null&&yn.memoizedState.tag&1){if(s.flags|=2048,Ei(9,{destroy:void 0},oy.bind(null,s,d,i,r),null),Ft===null)throw Error(a(349));g||(mo&127)!==0||ry(s,r,i)}return i}function ry(n,r,i){n.flags|=16384,n={getSnapshot:r,value:i},r=Je.updateQueue,r===null?(r=Sc(),Je.updateQueue=r,r.stores=[n]):(i=r.stores,i===null?r.stores=[n]:i.push(n))}function oy(n,r,i,s){r.value=i,r.getSnapshot=s,iy(r)&&ly(n)}function ay(n,r,i){return i(function(){iy(r)&&ly(n)})}function iy(n){var r=n.getSnapshot;n=n.value;try{var i=r();return!ar(n,i)}catch{return!0}}function ly(n){var r=Ma(n,2);r!==null&&Zn(r,n,2)}function ld(n){var r=Gn();if(typeof n=="function"){var i=n;if(n=i(),La){Ce(!0);try{i()}finally{Ce(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:n},r}function sy(n,r,i,s){return n.baseState=i,ad(n,At,typeof s=="function"?s:go)}function A2(n,r,i,s,d){if(wc(n))throw Error(a(485));if(n=r.action,n!==null){var g={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};P.T!==null?i(!0):g.isTransition=!1,s(g),i=r.pending,i===null?(g.next=r.pending=g,cy(r,g)):(g.next=i.next,r.pending=i.next=g)}}function cy(n,r){var i=r.action,s=r.payload,d=n.state;if(r.isTransition){var g=P.T,S={};P.T=S;try{var O=i(d,s),j=P.S;j!==null&&j(S,O),uy(n,r,O)}catch(re){sd(n,r,re)}finally{g!==null&&S.types!==null&&(g.types=S.types),P.T=g}}else try{g=i(d,s),uy(n,r,g)}catch(re){sd(n,r,re)}}function uy(n,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){fy(n,r,s)},function(s){return sd(n,r,s)}):fy(n,r,i)}function fy(n,r,i){r.status="fulfilled",r.value=i,dy(r),n.state=i,r=n.pending,r!==null&&(i=r.next,i===r?n.pending=null:(i=i.next,r.next=i,cy(n,i)))}function sd(n,r,i){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=i,dy(r),r=r.next;while(r!==s)}n.action=null}function dy(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function my(n,r){return r}function gy(n,r){if(yt){var i=Ft.formState;if(i!==null){e:{var s=Je;if(yt){if(Kt){t:{for(var d=Kt,g=wr;d.nodeType!==8;){if(!g){d=null;break t}if(d=Mr(d.nextSibling),d===null){d=null;break t}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){Kt=Mr(d.nextSibling),s=d.data==="F!";break e}}Bo(s)}s=!1}s&&(r=i[0])}}return i=Gn(),i.memoizedState=i.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:my,lastRenderedState:r},i.queue=s,i=_y.bind(null,Je,s),s.dispatch=i,s=ld(!1),g=gd.bind(null,Je,!1,s.queue),s=Gn(),d={state:r,dispatch:null,action:n,pending:null},s.queue=d,i=A2.bind(null,Je,d,g,i),d.dispatch=i,s.memoizedState=n,[r,i,!1]}function py(n){var r=mn();return hy(r,At,n)}function hy(n,r,i){if(r=ad(n,r,my)[0],n=xc(go)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Al(r)}catch(S){throw S===bi?dc:S}else s=r;r=mn();var d=r.queue,g=d.dispatch;return i!==r.memoizedState&&(Je.flags|=2048,Ei(9,{destroy:void 0},_2.bind(null,d,i),null)),[s,g,n]}function _2(n,r){n.action=r}function yy(n){var r=mn(),i=At;if(i!==null)return hy(r,i,n);mn(),r=r.memoizedState,i=mn();var s=i.queue.dispatch;return i.memoizedState=n,[r,s,!1]}function Ei(n,r,i,s){return n={tag:n,create:i,deps:s,inst:r,next:null},r=Je.updateQueue,r===null&&(r=Sc(),Je.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=n.next=n:(s=i.next,i.next=n,n.next=s,r.lastEffect=n),n}function by(){return mn().memoizedState}function Ec(n,r,i,s){var d=Gn();Je.flags|=n,d.memoizedState=Ei(1|r,{destroy:void 0},i,s===void 0?null:s)}function $c(n,r,i,s){var d=mn();s=s===void 0?null:s;var g=d.memoizedState.inst;At!==null&&s!==null&&Jf(s,At.memoizedState.deps)?d.memoizedState=Ei(r,g,i,s):(Je.flags|=n,d.memoizedState=Ei(1|r,g,i,s))}function vy(n,r){Ec(8390656,8,n,r)}function cd(n,r){$c(2048,8,n,r)}function B2(n){Je.flags|=4;var r=Je.updateQueue;if(r===null)r=Sc(),Je.updateQueue=r,r.events=[n];else{var i=r.events;i===null?r.events=[n]:i.push(n)}}function Sy(n){var r=mn().memoizedState;return B2({ref:r,nextImpl:n}),function(){if((Et&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}function Cy(n,r){return $c(4,2,n,r)}function xy(n,r){return $c(4,4,n,r)}function Ey(n,r){if(typeof r=="function"){n=n();var i=r(n);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function $y(n,r,i){i=i!=null?i.concat([n]):null,$c(4,4,Ey.bind(null,r,n),i)}function ud(){}function wy(n,r){var i=mn();r=r===void 0?null:r;var s=i.memoizedState;return r!==null&&Jf(r,s[1])?s[0]:(i.memoizedState=[n,r],n)}function Ty(n,r){var i=mn();r=r===void 0?null:r;var s=i.memoizedState;if(r!==null&&Jf(r,s[1]))return s[0];if(s=n(),La){Ce(!0);try{n()}finally{Ce(!1)}}return i.memoizedState=[s,r],s}function fd(n,r,i){return i===void 0||(mo&1073741824)!==0&&(gt&261930)===0?n.memoizedState=r:(n.memoizedState=i,n=Mb(),Je.lanes|=n,qo|=n,i)}function My(n,r,i,s){return ar(i,r)?i:Si.current!==null?(n=fd(n,i,s),ar(n,r)||(bn=!0),n):(mo&42)===0||(mo&1073741824)!==0&&(gt&261930)===0?(bn=!0,n.memoizedState=i):(n=Mb(),Je.lanes|=n,qo|=n,r)}function Ry(n,r,i,s,d){var g=q.p;q.p=g!==0&&8>g?g:8;var S=P.T,O={};P.T=O,gd(n,!1,r,i);try{var j=d(),re=P.S;if(re!==null&&re(O,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var ue=N2(j,s);_l(n,r,ue,fr(n))}else _l(n,r,s,fr(n))}catch(ge){_l(n,r,{then:function(){},status:"rejected",reason:ge},fr())}finally{q.p=g,S!==null&&O.types!==null&&(S.types=O.types),P.T=S}}function H2(){}function dd(n,r,i,s){if(n.tag!==5)throw Error(a(476));var d=Ny(n).queue;Ry(n,d,r,G,i===null?H2:function(){return zy(n),i(s)})}function Ny(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:G},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:i},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function zy(n){var r=Ny(n);r.next===null&&(r=n.alternate.memoizedState),_l(n,r.next.queue,{},fr())}function md(){return Dn(kl)}function Oy(){return mn().memoizedState}function Ay(){return mn().memoizedState}function L2(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var i=fr();n=Do(i);var s=Po(r,n,i);s!==null&&(Zn(s,r,i),Rl(s,r,i)),r={cache:Ff()},n.payload=r;return}r=r.return}}function D2(n,r,i){var s=fr();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},wc(n)?By(r,i):(i=Of(n,r,i,s),i!==null&&(Zn(i,n,s),Hy(i,r,s)))}function _y(n,r,i){var s=fr();_l(n,r,i,s)}function _l(n,r,i,s){var d={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(wc(n))By(r,d);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var S=r.lastRenderedState,O=g(S,i);if(d.hasEagerState=!0,d.eagerState=O,ar(O,S))return ac(n,r,d,0),Ft===null&&oc(),!1}catch{}if(i=Of(n,r,d,s),i!==null)return Zn(i,n,s),Hy(i,r,s),!0}return!1}function gd(n,r,i,s){if(s={lane:2,revertLane:Xd(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},wc(n)){if(r)throw Error(a(479))}else r=Of(n,i,s,2),r!==null&&Zn(r,n,2)}function wc(n){var r=n.alternate;return n===Je||r!==null&&r===Je}function By(n,r){Ci=bc=!0;var i=n.pending;i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r}function Hy(n,r,i){if((i&4194048)!==0){var s=r.lanes;s&=n.pendingLanes,i|=s,r.lanes=i,We(n,i)}}var Bl={readContext:Dn,use:Cc,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useLayoutEffect:rn,useInsertionEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useSyncExternalStore:rn,useId:rn,useHostTransitionStatus:rn,useFormState:rn,useActionState:rn,useOptimistic:rn,useMemoCache:rn,useCacheRefresh:rn};Bl.useEffectEvent=rn;var Ly={readContext:Dn,use:Cc,useCallback:function(n,r){return Gn().memoizedState=[n,r===void 0?null:r],n},useContext:Dn,useEffect:vy,useImperativeHandle:function(n,r,i){i=i!=null?i.concat([n]):null,Ec(4194308,4,Ey.bind(null,r,n),i)},useLayoutEffect:function(n,r){return Ec(4194308,4,n,r)},useInsertionEffect:function(n,r){Ec(4,2,n,r)},useMemo:function(n,r){var i=Gn();r=r===void 0?null:r;var s=n();if(La){Ce(!0);try{n()}finally{Ce(!1)}}return i.memoizedState=[s,r],s},useReducer:function(n,r,i){var s=Gn();if(i!==void 0){var d=i(r);if(La){Ce(!0);try{i(r)}finally{Ce(!1)}}}else d=r;return s.memoizedState=s.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},s.queue=n,n=n.dispatch=D2.bind(null,Je,n),[s.memoizedState,n]},useRef:function(n){var r=Gn();return n={current:n},r.memoizedState=n},useState:function(n){n=ld(n);var r=n.queue,i=_y.bind(null,Je,r);return r.dispatch=i,[n.memoizedState,i]},useDebugValue:ud,useDeferredValue:function(n,r){var i=Gn();return fd(i,n,r)},useTransition:function(){var n=ld(!1);return n=Ry.bind(null,Je,n.queue,!0,!1),Gn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,i){var s=Je,d=Gn();if(yt){if(i===void 0)throw Error(a(407));i=i()}else{if(i=r(),Ft===null)throw Error(a(349));(gt&127)!==0||ry(s,r,i)}d.memoizedState=i;var g={value:i,getSnapshot:r};return d.queue=g,vy(ay.bind(null,s,g,n),[n]),s.flags|=2048,Ei(9,{destroy:void 0},oy.bind(null,s,g,i,r),null),i},useId:function(){var n=Gn(),r=Ft.identifierPrefix;if(yt){var i=Yr,s=Wr;i=(s&~(1<<32-Ie(s)-1)).toString(32)+i,r="_"+r+"R_"+i,i=vc++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=z2++,r="_"+r+"r_"+i.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:md,useFormState:gy,useActionState:gy,useOptimistic:function(n){var r=Gn();r.memoizedState=r.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=gd.bind(null,Je,!0,i),i.dispatch=r,[n,r]},useMemoCache:od,useCacheRefresh:function(){return Gn().memoizedState=L2.bind(null,Je)},useEffectEvent:function(n){var r=Gn(),i={impl:n};return r.memoizedState=i,function(){if((Et&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},pd={readContext:Dn,use:Cc,useCallback:wy,useContext:Dn,useEffect:cd,useImperativeHandle:$y,useInsertionEffect:Cy,useLayoutEffect:xy,useMemo:Ty,useReducer:xc,useRef:by,useState:function(){return xc(go)},useDebugValue:ud,useDeferredValue:function(n,r){var i=mn();return My(i,At.memoizedState,n,r)},useTransition:function(){var n=xc(go)[0],r=mn().memoizedState;return[typeof n=="boolean"?n:Al(n),r]},useSyncExternalStore:ny,useId:Oy,useHostTransitionStatus:md,useFormState:py,useActionState:py,useOptimistic:function(n,r){var i=mn();return sy(i,At,n,r)},useMemoCache:od,useCacheRefresh:Ay};pd.useEffectEvent=Sy;var Dy={readContext:Dn,use:Cc,useCallback:wy,useContext:Dn,useEffect:cd,useImperativeHandle:$y,useInsertionEffect:Cy,useLayoutEffect:xy,useMemo:Ty,useReducer:id,useRef:by,useState:function(){return id(go)},useDebugValue:ud,useDeferredValue:function(n,r){var i=mn();return At===null?fd(i,n,r):My(i,At.memoizedState,n,r)},useTransition:function(){var n=id(go)[0],r=mn().memoizedState;return[typeof n=="boolean"?n:Al(n),r]},useSyncExternalStore:ny,useId:Oy,useHostTransitionStatus:md,useFormState:yy,useActionState:yy,useOptimistic:function(n,r){var i=mn();return At!==null?sy(i,At,n,r):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:od,useCacheRefresh:Ay};Dy.useEffectEvent=Sy;function hd(n,r,i,s){r=n.memoizedState,i=i(s,r),i=i==null?r:b({},r,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var yd={enqueueSetState:function(n,r,i){n=n._reactInternals;var s=fr(),d=Do(s);d.payload=r,i!=null&&(d.callback=i),r=Po(n,d,s),r!==null&&(Zn(r,n,s),Rl(r,n,s))},enqueueReplaceState:function(n,r,i){n=n._reactInternals;var s=fr(),d=Do(s);d.tag=1,d.payload=r,i!=null&&(d.callback=i),r=Po(n,d,s),r!==null&&(Zn(r,n,s),Rl(r,n,s))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var i=fr(),s=Do(i);s.tag=2,r!=null&&(s.callback=r),r=Po(n,s,i),r!==null&&(Zn(r,n,i),Rl(r,n,i))}};function Py(n,r,i,s,d,g,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,g,S):r.prototype&&r.prototype.isPureReactComponent?!Sl(i,s)||!Sl(d,g):!0}function Iy(n,r,i,s){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,s),r.state!==n&&yd.enqueueReplaceState(r,r.state,null)}function Da(n,r){var i=r;if("ref"in r){i={};for(var s in r)s!=="ref"&&(i[s]=r[s])}if(n=n.defaultProps){i===r&&(i=b({},i));for(var d in n)i[d]===void 0&&(i[d]=n[d])}return i}function jy(n){rc(n)}function Vy(n){console.error(n)}function Fy(n){rc(n)}function Tc(n,r){try{var i=n.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function qy(n,r,i){try{var s=n.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function bd(n,r,i){return i=Do(i),i.tag=3,i.payload={element:null},i.callback=function(){Tc(n,r)},i}function Uy(n){return n=Do(n),n.tag=3,n}function Gy(n,r,i,s){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var g=s.value;n.payload=function(){return d(g)},n.callback=function(){qy(r,i,s)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){qy(r,i,s),typeof d!="function"&&(Uo===null?Uo=new Set([this]):Uo.add(this));var O=s.stack;this.componentDidCatch(s.value,{componentStack:O!==null?O:""})})}function P2(n,r,i,s,d){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=i.alternate,r!==null&&pi(r,i,d,!0),i=lr.current,i!==null){switch(i.tag){case 31:case 13:return Tr===null?Pc():i.alternate===null&&on===0&&(on=3),i.flags&=-257,i.flags|=65536,i.lanes=d,s===mc?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([s]):r.add(s),qd(n,s,d)),!1;case 22:return i.flags|=65536,s===mc?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([s]):i.add(s)),qd(n,s,d)),!1}throw Error(a(435,i.tag))}return qd(n,s,d),Pc(),!1}if(yt)return r=lr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,s!==Df&&(n=Error(a(422),{cause:s}),El(xr(n,i)))):(s!==Df&&(r=Error(a(423),{cause:s}),El(xr(r,i))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,s=xr(s,i),d=bd(n.stateNode,s,d),Yf(n,d),on!==4&&(on=2)),!1;var g=Error(a(520),{cause:s});if(g=xr(g,i),Fl===null?Fl=[g]:Fl.push(g),on!==4&&(on=2),r===null)return!0;s=xr(s,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,n=d&-d,i.lanes|=n,n=bd(i.stateNode,s,n),Yf(i,n),!1;case 1:if(r=i.type,g=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Uo===null||!Uo.has(g))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Uy(d),Gy(d,n,i,s),Yf(i,d),!1}i=i.return}while(i!==null);return!1}var vd=Error(a(461)),bn=!1;function Pn(n,r,i,s){r.child=n===null?K0(r,null,i,s):Ha(r,n.child,i,s)}function Xy(n,r,i,s,d){i=i.render;var g=r.ref;if("ref"in s){var S={};for(var O in s)O!=="ref"&&(S[O]=s[O])}else S=s;return Oa(r),s=ed(n,r,i,S,g,d),O=td(),n!==null&&!bn?(nd(n,r,d),po(n,r,d)):(yt&&O&&Hf(r),r.flags|=1,Pn(n,r,s,d),r.child)}function Wy(n,r,i,s,d){if(n===null){var g=i.type;return typeof g=="function"&&!Af(g)&&g.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=g,Yy(n,r,g,s,d)):(n=lc(i.type,null,s,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(g=n.child,!Md(n,d)){var S=g.memoizedProps;if(i=i.compare,i=i!==null?i:Sl,i(S,s)&&n.ref===r.ref)return po(n,r,d)}return r.flags|=1,n=so(g,s),n.ref=r.ref,n.return=r,r.child=n}function Yy(n,r,i,s,d){if(n!==null){var g=n.memoizedProps;if(Sl(g,s)&&n.ref===r.ref)if(bn=!1,r.pendingProps=s=g,Md(n,d))(n.flags&131072)!==0&&(bn=!0);else return r.lanes=n.lanes,po(n,r,d)}return Sd(n,r,i,s,d)}function Ky(n,r,i,s){var d=s.children,g=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((r.flags&128)!==0){if(g=g!==null?g.baseLanes|i:i,n!==null){for(s=r.child=n.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~g}else s=0,r.child=null;return ky(n,r,g,i,s)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&fc(r,g!==null?g.cachePool:null),g!==null?Z0(r,g):kf(),J0(r);else return s=r.lanes=536870912,ky(n,r,g!==null?g.baseLanes|i:i,i,s)}else g!==null?(fc(r,g.cachePool),Z0(r,g),jo(),r.memoizedState=null):(n!==null&&fc(r,null),kf(),jo());return Pn(n,r,d,i),r.child}function Hl(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function ky(n,r,i,s,d){var g=Uf();return g=g===null?null:{parent:hn._currentValue,pool:g},r.memoizedState={baseLanes:i,cachePool:g},n!==null&&fc(r,null),kf(),J0(r),n!==null&&pi(n,r,s,!0),r.childLanes=d,null}function Mc(n,r){return r=Nc({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function Qy(n,r,i){return Ha(r,n.child,null,i),n=Mc(r,r.pendingProps),n.flags|=2,sr(r),r.memoizedState=null,n}function I2(n,r,i){var s=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(yt){if(s.mode==="hidden")return n=Mc(r,s),r.lanes=536870912,Hl(null,n);if(Zf(r),(n=Kt)?(n=cv(n,wr),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ao!==null?{id:Wr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},i=B0(n),i.return=r,r.child=i,Ln=r,Kt=null)):n=null,n===null)throw Bo(r);return r.lanes=536870912,null}return Mc(r,s)}var g=n.memoizedState;if(g!==null){var S=g.dehydrated;if(Zf(r),d)if(r.flags&256)r.flags&=-257,r=Qy(n,r,i);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(a(558));else if(bn||pi(n,r,i,!1),d=(i&n.childLanes)!==0,bn||d){if(s=Ft,s!==null&&(S=at(s,i),S!==0&&S!==g.retryLane))throw g.retryLane=S,Ma(n,S),Zn(s,n,S),vd;Pc(),r=Qy(n,r,i)}else n=g.treeContext,Kt=Mr(S.nextSibling),Ln=r,yt=!0,_o=null,wr=!1,n!==null&&D0(r,n),r=Mc(r,s),r.flags|=4096;return r}return n=so(n.child,{mode:s.mode,children:s.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Rc(n,r){var i=r.ref;if(i===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(n===null||n.ref!==i)&&(r.flags|=4194816)}}function Sd(n,r,i,s,d){return Oa(r),i=ed(n,r,i,s,void 0,d),s=td(),n!==null&&!bn?(nd(n,r,d),po(n,r,d)):(yt&&s&&Hf(r),r.flags|=1,Pn(n,r,i,d),r.child)}function Zy(n,r,i,s,d,g){return Oa(r),r.updateQueue=null,i=ty(r,s,i,d),ey(n),s=td(),n!==null&&!bn?(nd(n,r,g),po(n,r,g)):(yt&&s&&Hf(r),r.flags|=1,Pn(n,r,i,g),r.child)}function Jy(n,r,i,s,d){if(Oa(r),r.stateNode===null){var g=fi,S=i.contextType;typeof S=="object"&&S!==null&&(g=Dn(S)),g=new i(s,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=yd,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=s,g.state=r.memoizedState,g.refs={},Xf(r),S=i.contextType,g.context=typeof S=="object"&&S!==null?Dn(S):fi,g.state=r.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(hd(r,i,S,s),g.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&yd.enqueueReplaceState(g,g.state,null),zl(r,s,g,d),Nl(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(n===null){g=r.stateNode;var O=r.memoizedProps,j=Da(i,O);g.props=j;var re=g.context,ue=i.contextType;S=fi,typeof ue=="object"&&ue!==null&&(S=Dn(ue));var ge=i.getDerivedStateFromProps;ue=typeof ge=="function"||typeof g.getSnapshotBeforeUpdate=="function",O=r.pendingProps!==O,ue||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O||re!==S)&&Iy(r,g,s,S),Lo=!1;var oe=r.memoizedState;g.state=oe,zl(r,s,g,d),Nl(),re=r.memoizedState,O||oe!==re||Lo?(typeof ge=="function"&&(hd(r,i,ge,s),re=r.memoizedState),(j=Lo||Py(r,i,j,s,oe,re,S))?(ue||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=re),g.props=s,g.state=re,g.context=S,s=j):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{g=r.stateNode,Wf(n,r),S=r.memoizedProps,ue=Da(i,S),g.props=ue,ge=r.pendingProps,oe=g.context,re=i.contextType,j=fi,typeof re=="object"&&re!==null&&(j=Dn(re)),O=i.getDerivedStateFromProps,(re=typeof O=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==ge||oe!==j)&&Iy(r,g,s,j),Lo=!1,oe=r.memoizedState,g.state=oe,zl(r,s,g,d),Nl();var se=r.memoizedState;S!==ge||oe!==se||Lo||n!==null&&n.dependencies!==null&&cc(n.dependencies)?(typeof O=="function"&&(hd(r,i,O,s),se=r.memoizedState),(ue=Lo||Py(r,i,ue,s,oe,se,j)||n!==null&&n.dependencies!==null&&cc(n.dependencies))?(re||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,se,j),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,se,j)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===n.memoizedProps&&oe===n.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&oe===n.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=se),g.props=s,g.state=se,g.context=j,s=ue):(typeof g.componentDidUpdate!="function"||S===n.memoizedProps&&oe===n.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&oe===n.memoizedState||(r.flags|=1024),s=!1)}return g=s,Rc(n,r),s=(r.flags&128)!==0,g||s?(g=r.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,n!==null&&s?(r.child=Ha(r,n.child,null,d),r.child=Ha(r,null,i,d)):Pn(n,r,i,d),r.memoizedState=g.state,n=r.child):n=po(n,r,d),n}function eb(n,r,i,s){return Na(),r.flags|=256,Pn(n,r,i,s),r.child}var Cd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xd(n){return{baseLanes:n,cachePool:q0()}}function Ed(n,r,i){return n=n!==null?n.childLanes&~i:0,r&&(n|=ur),n}function tb(n,r,i){var s=r.pendingProps,d=!1,g=(r.flags&128)!==0,S;if((S=g)||(S=n!==null&&n.memoizedState===null?!1:(dn.current&2)!==0),S&&(d=!0,r.flags&=-129),S=(r.flags&32)!==0,r.flags&=-33,n===null){if(yt){if(d?Io(r):jo(),(n=Kt)?(n=cv(n,wr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ao!==null?{id:Wr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},i=B0(n),i.return=r,r.child=i,Ln=r,Kt=null)):n=null,n===null)throw Bo(r);return am(n)?r.lanes=32:r.lanes=536870912,null}var O=s.children;return s=s.fallback,d?(jo(),d=r.mode,O=Nc({mode:"hidden",children:O},d),s=Ra(s,d,i,null),O.return=r,s.return=r,O.sibling=s,r.child=O,s=r.child,s.memoizedState=xd(i),s.childLanes=Ed(n,S,i),r.memoizedState=Cd,Hl(null,s)):(Io(r),$d(r,O))}var j=n.memoizedState;if(j!==null&&(O=j.dehydrated,O!==null)){if(g)r.flags&256?(Io(r),r.flags&=-257,r=wd(n,r,i)):r.memoizedState!==null?(jo(),r.child=n.child,r.flags|=128,r=null):(jo(),O=s.fallback,d=r.mode,s=Nc({mode:"visible",children:s.children},d),O=Ra(O,d,i,null),O.flags|=2,s.return=r,O.return=r,s.sibling=O,r.child=s,Ha(r,n.child,null,i),s=r.child,s.memoizedState=xd(i),s.childLanes=Ed(n,S,i),r.memoizedState=Cd,r=Hl(null,s));else if(Io(r),am(O)){if(S=O.nextSibling&&O.nextSibling.dataset,S)var re=S.dgst;S=re,s=Error(a(419)),s.stack="",s.digest=S,El({value:s,source:null,stack:null}),r=wd(n,r,i)}else if(bn||pi(n,r,i,!1),S=(i&n.childLanes)!==0,bn||S){if(S=Ft,S!==null&&(s=at(S,i),s!==0&&s!==j.retryLane))throw j.retryLane=s,Ma(n,s),Zn(S,n,s),vd;om(O)||Pc(),r=wd(n,r,i)}else om(O)?(r.flags|=192,r.child=n.child,r=null):(n=j.treeContext,Kt=Mr(O.nextSibling),Ln=r,yt=!0,_o=null,wr=!1,n!==null&&D0(r,n),r=$d(r,s.children),r.flags|=4096);return r}return d?(jo(),O=s.fallback,d=r.mode,j=n.child,re=j.sibling,s=so(j,{mode:"hidden",children:s.children}),s.subtreeFlags=j.subtreeFlags&65011712,re!==null?O=so(re,O):(O=Ra(O,d,i,null),O.flags|=2),O.return=r,s.return=r,s.sibling=O,r.child=s,Hl(null,s),s=r.child,O=n.child.memoizedState,O===null?O=xd(i):(d=O.cachePool,d!==null?(j=hn._currentValue,d=d.parent!==j?{parent:j,pool:j}:d):d=q0(),O={baseLanes:O.baseLanes|i,cachePool:d}),s.memoizedState=O,s.childLanes=Ed(n,S,i),r.memoizedState=Cd,Hl(n.child,s)):(Io(r),i=n.child,n=i.sibling,i=so(i,{mode:"visible",children:s.children}),i.return=r,i.sibling=null,n!==null&&(S=r.deletions,S===null?(r.deletions=[n],r.flags|=16):S.push(n)),r.child=i,r.memoizedState=null,i)}function $d(n,r){return r=Nc({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Nc(n,r){return n=ir(22,n,null,r),n.lanes=0,n}function wd(n,r,i){return Ha(r,n.child,null,i),n=$d(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function nb(n,r,i){n.lanes|=r;var s=n.alternate;s!==null&&(s.lanes|=r),jf(n.return,r,i)}function Td(n,r,i,s,d,g){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:d,treeForkCount:g}:(S.isBackwards=r,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=i,S.tailMode=d,S.treeForkCount=g)}function rb(n,r,i){var s=r.pendingProps,d=s.revealOrder,g=s.tail;s=s.children;var S=dn.current,O=(S&2)!==0;if(O?(S=S&1|2,r.flags|=128):S&=1,K(dn,S),Pn(n,r,s,i),s=yt?xl:0,!O&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&nb(n,i,r);else if(n.tag===19)nb(n,i,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(i=r.child,d=null;i!==null;)n=i.alternate,n!==null&&yc(n)===null&&(d=i),i=i.sibling;i=d,i===null?(d=r.child,r.child=null):(d=i.sibling,i.sibling=null),Td(r,!1,d,i,g,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&yc(n)===null){r.child=d;break}n=d.sibling,d.sibling=i,i=d,d=n}Td(r,!0,i,null,g,s);break;case"together":Td(r,!1,null,null,void 0,s);break;default:r.memoizedState=null}return r.child}function po(n,r,i){if(n!==null&&(r.dependencies=n.dependencies),qo|=r.lanes,(i&r.childLanes)===0)if(n!==null){if(pi(n,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,i=so(n,n.pendingProps),r.child=i,i.return=r;n.sibling!==null;)n=n.sibling,i=i.sibling=so(n,n.pendingProps),i.return=r;i.sibling=null}return r.child}function Md(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&cc(n)))}function j2(n,r,i){switch(r.tag){case 3:de(r,r.stateNode.containerInfo),Ho(r,hn,n.memoizedState.cache),Na();break;case 27:case 5:ve(r);break;case 4:de(r,r.stateNode.containerInfo);break;case 10:Ho(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Zf(r),null;break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(Io(r),r.flags|=128,null):(i&r.child.childLanes)!==0?tb(n,r,i):(Io(r),n=po(n,r,i),n!==null?n.sibling:null);Io(r);break;case 19:var d=(n.flags&128)!==0;if(s=(i&r.childLanes)!==0,s||(pi(n,r,i,!1),s=(i&r.childLanes)!==0),d){if(s)return rb(n,r,i);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),K(dn,dn.current),s)break;return null;case 22:return r.lanes=0,Ky(n,r,i,r.pendingProps);case 24:Ho(r,hn,n.memoizedState.cache)}return po(n,r,i)}function ob(n,r,i){if(n!==null)if(n.memoizedProps!==r.pendingProps)bn=!0;else{if(!Md(n,i)&&(r.flags&128)===0)return bn=!1,j2(n,r,i);bn=(n.flags&131072)!==0}else bn=!1,yt&&(r.flags&1048576)!==0&&L0(r,xl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var s=r.pendingProps;if(n=_a(r.elementType),r.type=n,typeof n=="function")Af(n)?(s=Da(n,s),r.tag=1,r=Jy(null,r,n,s,i)):(r.tag=0,r=Sd(null,r,n,s,i));else{if(n!=null){var d=n.$$typeof;if(d===N){r.tag=11,r=Xy(null,r,n,s,i);break e}else if(d===z){r.tag=14,r=Wy(null,r,n,s,i);break e}}throw r=U(n)||n,Error(a(306,r,""))}}return r;case 0:return Sd(n,r,r.type,r.pendingProps,i);case 1:return s=r.type,d=Da(s,r.pendingProps),Jy(n,r,s,d,i);case 3:e:{if(de(r,r.stateNode.containerInfo),n===null)throw Error(a(387));s=r.pendingProps;var g=r.memoizedState;d=g.element,Wf(n,r),zl(r,s,null,i);var S=r.memoizedState;if(s=S.cache,Ho(r,hn,s),s!==g.cache&&Vf(r,[hn],i,!0),Nl(),s=S.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:S.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=eb(n,r,s,i);break e}else if(s!==d){d=xr(Error(a(424)),r),El(d),r=eb(n,r,s,i);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Kt=Mr(n.firstChild),Ln=r,yt=!0,_o=null,wr=!0,i=K0(r,null,s,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Na(),s===d){r=po(n,r,i);break e}Pn(n,r,s,i)}r=r.child}return r;case 26:return Rc(n,r),n===null?(i=pv(r.type,null,r.pendingProps,null))?r.memoizedState=i:yt||(i=r.type,n=r.pendingProps,s=Gc(ie.current).createElement(i),s[rt]=r,s[Ot]=n,In(s,i,n),Yt(s),r.stateNode=s):r.memoizedState=pv(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return ve(r),n===null&&yt&&(s=r.stateNode=dv(r.type,r.pendingProps,ie.current),Ln=r,wr=!0,d=Kt,Yo(r.type)?(im=d,Kt=Mr(s.firstChild)):Kt=d),Pn(n,r,r.pendingProps.children,i),Rc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&yt&&((d=s=Kt)&&(s=hw(s,r.type,r.pendingProps,wr),s!==null?(r.stateNode=s,Ln=r,Kt=Mr(s.firstChild),wr=!1,d=!0):d=!1),d||Bo(r)),ve(r),d=r.type,g=r.pendingProps,S=n!==null?n.memoizedProps:null,s=g.children,tm(d,g)?s=null:S!==null&&tm(d,S)&&(r.flags|=32),r.memoizedState!==null&&(d=ed(n,r,O2,null,null,i),kl._currentValue=d),Rc(n,r),Pn(n,r,s,i),r.child;case 6:return n===null&&yt&&((n=i=Kt)&&(i=yw(i,r.pendingProps,wr),i!==null?(r.stateNode=i,Ln=r,Kt=null,n=!0):n=!1),n||Bo(r)),null;case 13:return tb(n,r,i);case 4:return de(r,r.stateNode.containerInfo),s=r.pendingProps,n===null?r.child=Ha(r,null,s,i):Pn(n,r,s,i),r.child;case 11:return Xy(n,r,r.type,r.pendingProps,i);case 7:return Pn(n,r,r.pendingProps,i),r.child;case 8:return Pn(n,r,r.pendingProps.children,i),r.child;case 12:return Pn(n,r,r.pendingProps.children,i),r.child;case 10:return s=r.pendingProps,Ho(r,r.type,s.value),Pn(n,r,s.children,i),r.child;case 9:return d=r.type._context,s=r.pendingProps.children,Oa(r),d=Dn(d),s=s(d),r.flags|=1,Pn(n,r,s,i),r.child;case 14:return Wy(n,r,r.type,r.pendingProps,i);case 15:return Yy(n,r,r.type,r.pendingProps,i);case 19:return rb(n,r,i);case 31:return I2(n,r,i);case 22:return Ky(n,r,i,r.pendingProps);case 24:return Oa(r),s=Dn(hn),n===null?(d=Uf(),d===null&&(d=Ft,g=Ff(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=i),d=g),r.memoizedState={parent:s,cache:d},Xf(r),Ho(r,hn,d)):((n.lanes&i)!==0&&(Wf(n,r),zl(r,null,null,i),Nl()),d=n.memoizedState,g=r.memoizedState,d.parent!==s?(d={parent:s,cache:s},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),Ho(r,hn,s)):(s=g.cache,Ho(r,hn,s),s!==d.cache&&Vf(r,[hn],i,!0))),Pn(n,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function ho(n){n.flags|=4}function Rd(n,r,i,s,d){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Ob())n.flags|=8192;else throw Ba=mc,Gf}else n.flags&=-16777217}function ab(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Sv(r))if(Ob())n.flags|=8192;else throw Ba=mc,Gf}function zc(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?un():536870912,n.lanes|=r,Mi|=r)}function Ll(n,r){if(!yt)switch(n.tailMode){case"hidden":r=n.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function kt(n){var r=n.alternate!==null&&n.alternate.child===n.child,i=0,s=0;if(r)for(var d=n.child;d!==null;)i|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)i|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=s,n.childLanes=i,r}function V2(n,r,i){var s=r.pendingProps;switch(Lf(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(r),null;case 1:return kt(r),null;case 3:return i=r.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),fo(hn),ye(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(gi(r)?ho(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Pf())),kt(r),null;case 26:var d=r.type,g=r.memoizedState;return n===null?(ho(r),g!==null?(kt(r),ab(r,g)):(kt(r),Rd(r,d,null,s,i))):g?g!==n.memoizedState?(ho(r),kt(r),ab(r,g)):(kt(r),r.flags&=-16777217):(n=n.memoizedProps,n!==s&&ho(r),kt(r),Rd(r,d,n,s,i)),null;case 27:if(we(r),i=ie.current,d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==s&&ho(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return kt(r),null}n=Q.current,gi(r)?P0(r):(n=dv(d,s,i),r.stateNode=n,ho(r))}return kt(r),null;case 5:if(we(r),d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==s&&ho(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return kt(r),null}if(g=Q.current,gi(r))P0(r);else{var S=Gc(ie.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?g.multiple=!0:s.size&&(g.size=s.size);break;default:g=typeof s.is=="string"?S.createElement(d,{is:s.is}):S.createElement(d)}}g[rt]=r,g[Ot]=s;e:for(S=r.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===r)break e;for(;S.sibling===null;){if(S.return===null||S.return===r)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}r.stateNode=g;e:switch(In(g,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ho(r)}}return kt(r),Rd(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,i),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==s&&ho(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(a(166));if(n=ie.current,gi(r)){if(n=r.stateNode,i=r.memoizedProps,s=null,d=Ln,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}n[rt]=r,n=!!(n.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||tv(n.nodeValue,i)),n||Bo(r,!0)}else n=Gc(n).createTextNode(s),n[rt]=r,r.stateNode=n}return kt(r),null;case 31:if(i=r.memoizedState,n===null||n.memoizedState!==null){if(s=gi(r),i!==null){if(n===null){if(!s)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[rt]=r}else Na(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;kt(r),n=!1}else i=Pf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return r.flags&256?(sr(r),r):(sr(r),null);if((r.flags&128)!==0)throw Error(a(558))}return kt(r),null;case 13:if(s=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=gi(r),s!==null&&s.dehydrated!==null){if(n===null){if(!d)throw Error(a(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[rt]=r}else Na(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;kt(r),d=!1}else d=Pf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(sr(r),r):(sr(r),null)}return sr(r),(r.flags&128)!==0?(r.lanes=i,r):(i=s!==null,n=n!==null&&n.memoizedState!==null,i&&(s=r.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==d&&(s.flags|=2048)),i!==n&&i&&(r.child.flags|=8192),zc(r,r.updateQueue),kt(r),null);case 4:return ye(),n===null&&kd(r.stateNode.containerInfo),kt(r),null;case 10:return fo(r.type),kt(r),null;case 19:if(D(dn),s=r.memoizedState,s===null)return kt(r),null;if(d=(r.flags&128)!==0,g=s.rendering,g===null)if(d)Ll(s,!1);else{if(on!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(g=yc(n),g!==null){for(r.flags|=128,Ll(s,!1),n=g.updateQueue,r.updateQueue=n,zc(r,n),r.subtreeFlags=0,n=i,i=r.child;i!==null;)_0(i,n),i=i.sibling;return K(dn,dn.current&1|2),yt&&co(r,s.treeForkCount),r.child}n=n.sibling}s.tail!==null&&Te()>Hc&&(r.flags|=128,d=!0,Ll(s,!1),r.lanes=4194304)}else{if(!d)if(n=yc(g),n!==null){if(r.flags|=128,d=!0,n=n.updateQueue,r.updateQueue=n,zc(r,n),Ll(s,!0),s.tail===null&&s.tailMode==="hidden"&&!g.alternate&&!yt)return kt(r),null}else 2*Te()-s.renderingStartTime>Hc&&i!==536870912&&(r.flags|=128,d=!0,Ll(s,!1),r.lanes=4194304);s.isBackwards?(g.sibling=r.child,r.child=g):(n=s.last,n!==null?n.sibling=g:r.child=g,s.last=g)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=Te(),n.sibling=null,i=dn.current,K(dn,d?i&1|2:i&1),yt&&co(r,s.treeForkCount),n):(kt(r),null);case 22:case 23:return sr(r),Qf(),s=r.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(i&536870912)!==0&&(r.flags&128)===0&&(kt(r),r.subtreeFlags&6&&(r.flags|=8192)):kt(r),i=r.updateQueue,i!==null&&zc(r,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==i&&(r.flags|=2048),n!==null&&D(Aa),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),fo(hn),kt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function F2(n,r){switch(Lf(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return fo(hn),ye(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return we(r),null;case 31:if(r.memoizedState!==null){if(sr(r),r.alternate===null)throw Error(a(340));Na()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(sr(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));Na()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return D(dn),null;case 4:return ye(),null;case 10:return fo(r.type),null;case 22:case 23:return sr(r),Qf(),n!==null&&D(Aa),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return fo(hn),null;case 25:return null;default:return null}}function ib(n,r){switch(Lf(r),r.tag){case 3:fo(hn),ye();break;case 26:case 27:case 5:we(r);break;case 4:ye();break;case 31:r.memoizedState!==null&&sr(r);break;case 13:sr(r);break;case 19:D(dn);break;case 10:fo(r.type);break;case 22:case 23:sr(r),Qf(),n!==null&&D(Aa);break;case 24:fo(hn)}}function Dl(n,r){try{var i=r.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var d=s.next;i=d;do{if((i.tag&n)===n){s=void 0;var g=i.create,S=i.inst;s=g(),S.destroy=s}i=i.next}while(i!==d)}}catch(O){Nt(r,r.return,O)}}function Vo(n,r,i){try{var s=r.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var g=d.next;s=g;do{if((s.tag&n)===n){var S=s.inst,O=S.destroy;if(O!==void 0){S.destroy=void 0,d=r;var j=i,re=O;try{re()}catch(ue){Nt(d,j,ue)}}}s=s.next}while(s!==g)}}catch(ue){Nt(r,r.return,ue)}}function lb(n){var r=n.updateQueue;if(r!==null){var i=n.stateNode;try{Q0(r,i)}catch(s){Nt(n,n.return,s)}}}function sb(n,r,i){i.props=Da(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(s){Nt(n,r,s)}}function Pl(n,r){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof i=="function"?n.refCleanup=i(s):i.current=s}}catch(d){Nt(n,r,d)}}function Kr(n,r){var i=n.ref,s=n.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(d){Nt(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){Nt(n,r,d)}else i.current=null}function cb(n){var r=n.type,i=n.memoizedProps,s=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(d){Nt(n,n.return,d)}}function Nd(n,r,i){try{var s=n.stateNode;uw(s,n.type,i,r),s[Ot]=r}catch(d){Nt(n,n.return,d)}}function ub(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Yo(n.type)||n.tag===4}function zd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ub(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Yo(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Od(n,r,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(n),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=io));else if(s!==4&&(s===27&&Yo(n.type)&&(i=n.stateNode,r=null),n=n.child,n!==null))for(Od(n,r,i),n=n.sibling;n!==null;)Od(n,r,i),n=n.sibling}function Oc(n,r,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?i.insertBefore(n,r):i.appendChild(n);else if(s!==4&&(s===27&&Yo(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(Oc(n,r,i),n=n.sibling;n!==null;)Oc(n,r,i),n=n.sibling}function fb(n){var r=n.stateNode,i=n.memoizedProps;try{for(var s=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);In(r,s,i),r[rt]=n,r[Ot]=i}catch(g){Nt(n,n.return,g)}}var yo=!1,vn=!1,Ad=!1,db=typeof WeakSet=="function"?WeakSet:Set,On=null;function q2(n,r){if(n=n.containerInfo,Jd=Zc,n=$0(n),wf(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var d=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break e}var S=0,O=-1,j=-1,re=0,ue=0,ge=n,oe=null;t:for(;;){for(var se;ge!==i||d!==0&&ge.nodeType!==3||(O=S+d),ge!==g||s!==0&&ge.nodeType!==3||(j=S+s),ge.nodeType===3&&(S+=ge.nodeValue.length),(se=ge.firstChild)!==null;)oe=ge,ge=se;for(;;){if(ge===n)break t;if(oe===i&&++re===d&&(O=S),oe===g&&++ue===s&&(j=S),(se=ge.nextSibling)!==null)break;ge=oe,oe=ge.parentNode}ge=se}i=O===-1||j===-1?null:{start:O,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(em={focusedElem:n,selectionRange:i},Zc=!1,On=r;On!==null;)if(r=On,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,On=n;else for(;On!==null;){switch(r=On,g=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)d=n[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,i=r,d=g.memoizedProps,g=g.memoizedState,s=i.stateNode;try{var ze=Da(i.type,d);n=s.getSnapshotBeforeUpdate(ze,g),s.__reactInternalSnapshotBeforeUpdate=n}catch(Ge){Nt(i,i.return,Ge)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,i=n.nodeType,i===9)rm(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":rm(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,On=n;break}On=r.return}}function mb(n,r,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:vo(n,i),s&4&&Dl(5,i);break;case 1:if(vo(n,i),s&4)if(n=i.stateNode,r===null)try{n.componentDidMount()}catch(S){Nt(i,i.return,S)}else{var d=Da(i.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(S){Nt(i,i.return,S)}}s&64&&lb(i),s&512&&Pl(i,i.return);break;case 3:if(vo(n,i),s&64&&(n=i.updateQueue,n!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{Q0(n,r)}catch(S){Nt(i,i.return,S)}}break;case 27:r===null&&s&4&&fb(i);case 26:case 5:vo(n,i),r===null&&s&4&&cb(i),s&512&&Pl(i,i.return);break;case 12:vo(n,i);break;case 31:vo(n,i),s&4&&hb(n,i);break;case 13:vo(n,i),s&4&&yb(n,i),s&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=Z2.bind(null,i),bw(n,i))));break;case 22:if(s=i.memoizedState!==null||yo,!s){r=r!==null&&r.memoizedState!==null||vn,d=yo;var g=vn;yo=s,(vn=r)&&!g?So(n,i,(i.subtreeFlags&8772)!==0):vo(n,i),yo=d,vn=g}break;case 30:break;default:vo(n,i)}}function gb(n){var r=n.alternate;r!==null&&(n.alternate=null,gb(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&pn(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Jt=null,Yn=!1;function bo(n,r,i){for(i=i.child;i!==null;)pb(n,r,i),i=i.sibling}function pb(n,r,i){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(Ye,i)}catch{}switch(i.tag){case 26:vn||Kr(i,r),bo(n,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:vn||Kr(i,r);var s=Jt,d=Yn;Yo(i.type)&&(Jt=i.stateNode,Yn=!1),bo(n,r,i),Wl(i.stateNode),Jt=s,Yn=d;break;case 5:vn||Kr(i,r);case 6:if(s=Jt,d=Yn,Jt=null,bo(n,r,i),Jt=s,Yn=d,Jt!==null)if(Yn)try{(Jt.nodeType===9?Jt.body:Jt.nodeName==="HTML"?Jt.ownerDocument.body:Jt).removeChild(i.stateNode)}catch(g){Nt(i,r,g)}else try{Jt.removeChild(i.stateNode)}catch(g){Nt(i,r,g)}break;case 18:Jt!==null&&(Yn?(n=Jt,lv(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),Hi(n)):lv(Jt,i.stateNode));break;case 4:s=Jt,d=Yn,Jt=i.stateNode.containerInfo,Yn=!0,bo(n,r,i),Jt=s,Yn=d;break;case 0:case 11:case 14:case 15:Vo(2,i,r),vn||Vo(4,i,r),bo(n,r,i);break;case 1:vn||(Kr(i,r),s=i.stateNode,typeof s.componentWillUnmount=="function"&&sb(i,r,s)),bo(n,r,i);break;case 21:bo(n,r,i);break;case 22:vn=(s=vn)||i.memoizedState!==null,bo(n,r,i),vn=s;break;default:bo(n,r,i)}}function hb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Hi(n)}catch(i){Nt(r,r.return,i)}}}function yb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Hi(n)}catch(i){Nt(r,r.return,i)}}function U2(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new db),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new db),r;default:throw Error(a(435,n.tag))}}function Ac(n,r){var i=U2(n);r.forEach(function(s){if(!i.has(s)){i.add(s);var d=J2.bind(null,n,s);s.then(d,d)}})}function Kn(n,r){var i=r.deletions;if(i!==null)for(var s=0;s<i.length;s++){var d=i[s],g=n,S=r,O=S;e:for(;O!==null;){switch(O.tag){case 27:if(Yo(O.type)){Jt=O.stateNode,Yn=!1;break e}break;case 5:Jt=O.stateNode,Yn=!1;break e;case 3:case 4:Jt=O.stateNode.containerInfo,Yn=!0;break e}O=O.return}if(Jt===null)throw Error(a(160));pb(g,S,d),Jt=null,Yn=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)bb(r,n),r=r.sibling}var jr=null;function bb(n,r){var i=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Kn(r,n),kn(n),s&4&&(Vo(3,n,n.return),Dl(3,n),Vo(5,n,n.return));break;case 1:Kn(r,n),kn(n),s&512&&(vn||i===null||Kr(i,i.return)),s&64&&yo&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var d=jr;if(Kn(r,n),kn(n),s&512&&(vn||i===null||Kr(i,i.return)),s&4){var g=i!==null?i.memoizedState:null;if(s=n.memoizedState,i===null)if(s===null)if(n.stateNode===null){e:{s=n.type,i=n.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":g=d.getElementsByTagName("title")[0],(!g||g[Vt]||g[rt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(s),d.head.insertBefore(g,d.querySelector("head > title"))),In(g,s,i),g[rt]=n,Yt(g),s=g;break e;case"link":var S=bv("link","href",d).get(s+(i.href||""));if(S){for(var O=0;O<S.length;O++)if(g=S[O],g.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&g.getAttribute("rel")===(i.rel==null?null:i.rel)&&g.getAttribute("title")===(i.title==null?null:i.title)&&g.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice(O,1);break t}}g=d.createElement(s),In(g,s,i),d.head.appendChild(g);break;case"meta":if(S=bv("meta","content",d).get(s+(i.content||""))){for(O=0;O<S.length;O++)if(g=S[O],g.getAttribute("content")===(i.content==null?null:""+i.content)&&g.getAttribute("name")===(i.name==null?null:i.name)&&g.getAttribute("property")===(i.property==null?null:i.property)&&g.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&g.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice(O,1);break t}}g=d.createElement(s),In(g,s,i),d.head.appendChild(g);break;default:throw Error(a(468,s))}g[rt]=n,Yt(g),s=g}n.stateNode=s}else vv(d,n.type,n.stateNode);else n.stateNode=yv(d,s,n.memoizedProps);else g!==s?(g===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):g.count--,s===null?vv(d,n.type,n.stateNode):yv(d,s,n.memoizedProps)):s===null&&n.stateNode!==null&&Nd(n,n.memoizedProps,i.memoizedProps)}break;case 27:Kn(r,n),kn(n),s&512&&(vn||i===null||Kr(i,i.return)),i!==null&&s&4&&Nd(n,n.memoizedProps,i.memoizedProps);break;case 5:if(Kn(r,n),kn(n),s&512&&(vn||i===null||Kr(i,i.return)),n.flags&32){d=n.stateNode;try{oi(d,"")}catch(ze){Nt(n,n.return,ze)}}s&4&&n.stateNode!=null&&(d=n.memoizedProps,Nd(n,d,i!==null?i.memoizedProps:d)),s&1024&&(Ad=!0);break;case 6:if(Kn(r,n),kn(n),s&4){if(n.stateNode===null)throw Error(a(162));s=n.memoizedProps,i=n.stateNode;try{i.nodeValue=s}catch(ze){Nt(n,n.return,ze)}}break;case 3:if(Yc=null,d=jr,jr=Xc(r.containerInfo),Kn(r,n),jr=d,kn(n),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Hi(r.containerInfo)}catch(ze){Nt(n,n.return,ze)}Ad&&(Ad=!1,vb(n));break;case 4:s=jr,jr=Xc(n.stateNode.containerInfo),Kn(r,n),kn(n),jr=s;break;case 12:Kn(r,n),kn(n);break;case 31:Kn(r,n),kn(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Ac(n,s)));break;case 13:Kn(r,n),kn(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Bc=Te()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Ac(n,s)));break;case 22:d=n.memoizedState!==null;var j=i!==null&&i.memoizedState!==null,re=yo,ue=vn;if(yo=re||d,vn=ue||j,Kn(r,n),vn=ue,yo=re,kn(n),s&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(i===null||j||yo||vn||Pa(n)),i=null,r=n;;){if(r.tag===5||r.tag===26){if(i===null){j=i=r;try{if(g=j.stateNode,d)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{O=j.stateNode;var ge=j.memoizedProps.style,oe=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;O.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(ze){Nt(j,j.return,ze)}}}else if(r.tag===6){if(i===null){j=r;try{j.stateNode.nodeValue=d?"":j.memoizedProps}catch(ze){Nt(j,j.return,ze)}}}else if(r.tag===18){if(i===null){j=r;try{var se=j.stateNode;d?sv(se,!0):sv(j.stateNode,!1)}catch(ze){Nt(j,j.return,ze)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=n.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Ac(n,i))));break;case 19:Kn(r,n),kn(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Ac(n,s)));break;case 30:break;case 21:break;default:Kn(r,n),kn(n)}}function kn(n){var r=n.flags;if(r&2){try{for(var i,s=n.return;s!==null;){if(ub(s)){i=s;break}s=s.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var d=i.stateNode,g=zd(n);Oc(n,g,d);break;case 5:var S=i.stateNode;i.flags&32&&(oi(S,""),i.flags&=-33);var O=zd(n);Oc(n,O,S);break;case 3:case 4:var j=i.stateNode.containerInfo,re=zd(n);Od(n,re,j);break;default:throw Error(a(161))}}catch(ue){Nt(n,n.return,ue)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function vb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;vb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function vo(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)mb(n,r.alternate,r),r=r.sibling}function Pa(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Vo(4,r,r.return),Pa(r);break;case 1:Kr(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&sb(r,r.return,i),Pa(r);break;case 27:Wl(r.stateNode);case 26:case 5:Kr(r,r.return),Pa(r);break;case 22:r.memoizedState===null&&Pa(r);break;case 30:Pa(r);break;default:Pa(r)}n=n.sibling}}function So(n,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,d=n,g=r,S=g.flags;switch(g.tag){case 0:case 11:case 15:So(d,g,i),Dl(4,g);break;case 1:if(So(d,g,i),s=g,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(re){Nt(s,s.return,re)}if(s=g,d=s.updateQueue,d!==null){var O=s.stateNode;try{var j=d.shared.hiddenCallbacks;if(j!==null)for(d.shared.hiddenCallbacks=null,d=0;d<j.length;d++)k0(j[d],O)}catch(re){Nt(s,s.return,re)}}i&&S&64&&lb(g),Pl(g,g.return);break;case 27:fb(g);case 26:case 5:So(d,g,i),i&&s===null&&S&4&&cb(g),Pl(g,g.return);break;case 12:So(d,g,i);break;case 31:So(d,g,i),i&&S&4&&hb(d,g);break;case 13:So(d,g,i),i&&S&4&&yb(d,g);break;case 22:g.memoizedState===null&&So(d,g,i),Pl(g,g.return);break;case 30:break;default:So(d,g,i)}r=r.sibling}}function _d(n,r){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&$l(i))}function Bd(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&$l(n))}function Vr(n,r,i,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Sb(n,r,i,s),r=r.sibling}function Sb(n,r,i,s){var d=r.flags;switch(r.tag){case 0:case 11:case 15:Vr(n,r,i,s),d&2048&&Dl(9,r);break;case 1:Vr(n,r,i,s);break;case 3:Vr(n,r,i,s),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&$l(n)));break;case 12:if(d&2048){Vr(n,r,i,s),n=r.stateNode;try{var g=r.memoizedProps,S=g.id,O=g.onPostCommit;typeof O=="function"&&O(S,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(j){Nt(r,r.return,j)}}else Vr(n,r,i,s);break;case 31:Vr(n,r,i,s);break;case 13:Vr(n,r,i,s);break;case 23:break;case 22:g=r.stateNode,S=r.alternate,r.memoizedState!==null?g._visibility&2?Vr(n,r,i,s):Il(n,r):g._visibility&2?Vr(n,r,i,s):(g._visibility|=2,$i(n,r,i,s,(r.subtreeFlags&10256)!==0||!1)),d&2048&&_d(S,r);break;case 24:Vr(n,r,i,s),d&2048&&Bd(r.alternate,r);break;default:Vr(n,r,i,s)}}function $i(n,r,i,s,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var g=n,S=r,O=i,j=s,re=S.flags;switch(S.tag){case 0:case 11:case 15:$i(g,S,O,j,d),Dl(8,S);break;case 23:break;case 22:var ue=S.stateNode;S.memoizedState!==null?ue._visibility&2?$i(g,S,O,j,d):Il(g,S):(ue._visibility|=2,$i(g,S,O,j,d)),d&&re&2048&&_d(S.alternate,S);break;case 24:$i(g,S,O,j,d),d&&re&2048&&Bd(S.alternate,S);break;default:$i(g,S,O,j,d)}r=r.sibling}}function Il(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=n,s=r,d=s.flags;switch(s.tag){case 22:Il(i,s),d&2048&&_d(s.alternate,s);break;case 24:Il(i,s),d&2048&&Bd(s.alternate,s);break;default:Il(i,s)}r=r.sibling}}var jl=8192;function wi(n,r,i){if(n.subtreeFlags&jl)for(n=n.child;n!==null;)Cb(n,r,i),n=n.sibling}function Cb(n,r,i){switch(n.tag){case 26:wi(n,r,i),n.flags&jl&&n.memoizedState!==null&&zw(i,jr,n.memoizedState,n.memoizedProps);break;case 5:wi(n,r,i);break;case 3:case 4:var s=jr;jr=Xc(n.stateNode.containerInfo),wi(n,r,i),jr=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=jl,jl=16777216,wi(n,r,i),jl=s):wi(n,r,i));break;default:wi(n,r,i)}}function xb(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Vl(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var s=r[i];On=s,$b(s,n)}xb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Eb(n),n=n.sibling}function Eb(n){switch(n.tag){case 0:case 11:case 15:Vl(n),n.flags&2048&&Vo(9,n,n.return);break;case 3:Vl(n);break;case 12:Vl(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,_c(n)):Vl(n);break;default:Vl(n)}}function _c(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var s=r[i];On=s,$b(s,n)}xb(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Vo(8,r,r.return),_c(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,_c(r));break;default:_c(r)}n=n.sibling}}function $b(n,r){for(;On!==null;){var i=On;switch(i.tag){case 0:case 11:case 15:Vo(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:$l(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,On=s;else e:for(i=n;On!==null;){s=On;var d=s.sibling,g=s.return;if(gb(s),s===i){On=null;break e}if(d!==null){d.return=g,On=d;break e}On=g}}}var G2={getCacheForType:function(n){var r=Dn(hn),i=r.data.get(n);return i===void 0&&(i=n(),r.data.set(n,i)),i},cacheSignal:function(){return Dn(hn).controller.signal}},X2=typeof WeakMap=="function"?WeakMap:Map,Et=0,Ft=null,st=null,gt=0,Rt=0,cr=null,Fo=!1,Ti=!1,Hd=!1,Co=0,on=0,qo=0,Ia=0,Ld=0,ur=0,Mi=0,Fl=null,Qn=null,Dd=!1,Bc=0,wb=0,Hc=1/0,Lc=null,Uo=null,Tn=0,Go=null,Ri=null,xo=0,Pd=0,Id=null,Tb=null,ql=0,jd=null;function fr(){return(Et&2)!==0&&gt!==0?gt&-gt:P.T!==null?Xd():gn()}function Mb(){if(ur===0)if((gt&536870912)===0||yt){var n=je;je<<=1,(je&3932160)===0&&(je=262144),ur=n}else ur=536870912;return n=lr.current,n!==null&&(n.flags|=32),ur}function Zn(n,r,i){(n===Ft&&(Rt===2||Rt===9)||n.cancelPendingCommit!==null)&&(Ni(n,0),Xo(n,gt,ur,!1)),Hn(n,i),((Et&2)===0||n!==Ft)&&(n===Ft&&((Et&2)===0&&(Ia|=i),on===4&&Xo(n,gt,ur,!1)),kr(n))}function Rb(n,r,i){if((Et&6)!==0)throw Error(a(327));var s=!i&&(r&127)===0&&(r&n.expiredLanes)===0||Wt(n,r),d=s?K2(n,r):Fd(n,r,!0),g=s;do{if(d===0){Ti&&!s&&Xo(n,r,0,!1);break}else{if(i=n.current.alternate,g&&!W2(i)){d=Fd(n,r,!1),g=!1;continue}if(d===2){if(g=r,n.errorRecoveryDisabledLanes&g)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){r=S;e:{var O=n;d=Fl;var j=O.current.memoizedState.isDehydrated;if(j&&(Ni(O,S).flags|=256),S=Fd(O,S,!1),S!==2){if(Hd&&!j){O.errorRecoveryDisabledLanes|=g,Ia|=g,d=4;break e}g=Qn,Qn=d,g!==null&&(Qn===null?Qn=g:Qn.push.apply(Qn,g))}d=S}if(g=!1,d!==2)continue}}if(d===1){Ni(n,0),Xo(n,r,0,!0);break}e:{switch(s=n,g=d,g){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:Xo(s,r,ur,!Fo);break e;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=Bc+300-Te(),10<d)){if(Xo(s,r,ur,!Fo),Pt(s,0,!0)!==0)break e;xo=r,s.timeoutHandle=av(Nb.bind(null,s,i,Qn,Lc,Dd,r,ur,Ia,Mi,Fo,g,"Throttled",-0,0),d);break e}Nb(s,i,Qn,Lc,Dd,r,ur,Ia,Mi,Fo,g,null,-0,0)}}break}while(!0);kr(n)}function Nb(n,r,i,s,d,g,S,O,j,re,ue,ge,oe,se){if(n.timeoutHandle=-1,ge=r.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:io},Cb(r,g,ge);var ze=(g&62914560)===g?Bc-Te():(g&4194048)===g?wb-Te():0;if(ze=Ow(ge,ze),ze!==null){xo=g,n.cancelPendingCommit=ze(Db.bind(null,n,r,g,i,s,d,S,O,j,ue,ge,null,oe,se)),Xo(n,g,S,!re);return}}Db(n,r,g,i,s,d,S,O,j)}function W2(n){for(var r=n;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var d=i[s],g=d.getSnapshot;d=d.value;try{if(!ar(g(),d))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Xo(n,r,i,s){r&=~Ld,r&=~Ia,n.suspendedLanes|=r,n.pingedLanes&=~r,s&&(n.warmLanes|=r),s=n.expirationTimes;for(var d=r;0<d;){var g=31-Ie(d),S=1<<g;s[g]=-1,d&=~S}i!==0&&Be(n,i,r)}function Dc(){return(Et&6)===0?(Ul(0),!1):!0}function Vd(){if(st!==null){if(Rt===0)var n=st.return;else n=st,uo=za=null,rd(n),vi=null,Tl=0,n=st;for(;n!==null;)ib(n.alternate,n),n=n.return;st=null}}function Ni(n,r){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,mw(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),xo=0,Vd(),Ft=n,st=i=so(n.current,null),gt=r,Rt=0,cr=null,Fo=!1,Ti=Wt(n,r),Hd=!1,Mi=ur=Ld=Ia=qo=on=0,Qn=Fl=null,Dd=!1,(r&8)!==0&&(r|=r&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=r;0<s;){var d=31-Ie(s),g=1<<d;r|=n[d],s&=~g}return Co=r,oc(),i}function zb(n,r){Je=null,P.H=Bl,r===bi||r===dc?(r=X0(),Rt=3):r===Gf?(r=X0(),Rt=4):Rt=r===vd?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,cr=r,st===null&&(on=1,Tc(n,xr(r,n.current)))}function Ob(){var n=lr.current;return n===null?!0:(gt&4194048)===gt?Tr===null:(gt&62914560)===gt||(gt&536870912)!==0?n===Tr:!1}function Ab(){var n=P.H;return P.H=Bl,n===null?Bl:n}function _b(){var n=P.A;return P.A=G2,n}function Pc(){on=4,Fo||(gt&4194048)!==gt&&lr.current!==null||(Ti=!0),(qo&134217727)===0&&(Ia&134217727)===0||Ft===null||Xo(Ft,gt,ur,!1)}function Fd(n,r,i){var s=Et;Et|=2;var d=Ab(),g=_b();(Ft!==n||gt!==r)&&(Lc=null,Ni(n,r)),r=!1;var S=on;e:do try{if(Rt!==0&&st!==null){var O=st,j=cr;switch(Rt){case 8:Vd(),S=6;break e;case 3:case 2:case 9:case 6:lr.current===null&&(r=!0);var re=Rt;if(Rt=0,cr=null,zi(n,O,j,re),i&&Ti){S=0;break e}break;default:re=Rt,Rt=0,cr=null,zi(n,O,j,re)}}Y2(),S=on;break}catch(ue){zb(n,ue)}while(!0);return r&&n.shellSuspendCounter++,uo=za=null,Et=s,P.H=d,P.A=g,st===null&&(Ft=null,gt=0,oc()),S}function Y2(){for(;st!==null;)Bb(st)}function K2(n,r){var i=Et;Et|=2;var s=Ab(),d=_b();Ft!==n||gt!==r?(Lc=null,Hc=Te()+500,Ni(n,r)):Ti=Wt(n,r);e:do try{if(Rt!==0&&st!==null){r=st;var g=cr;t:switch(Rt){case 1:Rt=0,cr=null,zi(n,r,g,1);break;case 2:case 9:if(U0(g)){Rt=0,cr=null,Hb(r);break}r=function(){Rt!==2&&Rt!==9||Ft!==n||(Rt=7),kr(n)},g.then(r,r);break e;case 3:Rt=7;break e;case 4:Rt=5;break e;case 7:U0(g)?(Rt=0,cr=null,Hb(r)):(Rt=0,cr=null,zi(n,r,g,7));break;case 5:var S=null;switch(st.tag){case 26:S=st.memoizedState;case 5:case 27:var O=st;if(S?Sv(S):O.stateNode.complete){Rt=0,cr=null;var j=O.sibling;if(j!==null)st=j;else{var re=O.return;re!==null?(st=re,Ic(re)):st=null}break t}}Rt=0,cr=null,zi(n,r,g,5);break;case 6:Rt=0,cr=null,zi(n,r,g,6);break;case 8:Vd(),on=6;break e;default:throw Error(a(462))}}k2();break}catch(ue){zb(n,ue)}while(!0);return uo=za=null,P.H=s,P.A=d,Et=i,st!==null?0:(Ft=null,gt=0,oc(),on)}function k2(){for(;st!==null&&!Re();)Bb(st)}function Bb(n){var r=ob(n.alternate,n,Co);n.memoizedProps=n.pendingProps,r===null?Ic(n):st=r}function Hb(n){var r=n,i=r.alternate;switch(r.tag){case 15:case 0:r=Zy(i,r,r.pendingProps,r.type,void 0,gt);break;case 11:r=Zy(i,r,r.pendingProps,r.type.render,r.ref,gt);break;case 5:rd(r);default:ib(i,r),r=st=_0(r,Co),r=ob(i,r,Co)}n.memoizedProps=n.pendingProps,r===null?Ic(n):st=r}function zi(n,r,i,s){uo=za=null,rd(r),vi=null,Tl=0;var d=r.return;try{if(P2(n,d,r,i,gt)){on=1,Tc(n,xr(i,n.current)),st=null;return}}catch(g){if(d!==null)throw st=d,g;on=1,Tc(n,xr(i,n.current)),st=null;return}r.flags&32768?(yt||s===1?n=!0:Ti||(gt&536870912)!==0?n=!1:(Fo=n=!0,(s===2||s===9||s===3||s===6)&&(s=lr.current,s!==null&&s.tag===13&&(s.flags|=16384))),Lb(r,n)):Ic(r)}function Ic(n){var r=n;do{if((r.flags&32768)!==0){Lb(r,Fo);return}n=r.return;var i=V2(r.alternate,r,Co);if(i!==null){st=i;return}if(r=r.sibling,r!==null){st=r;return}st=r=n}while(r!==null);on===0&&(on=5)}function Lb(n,r){do{var i=F2(n.alternate,n);if(i!==null){i.flags&=32767,st=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(n=n.sibling,n!==null)){st=n;return}st=n=i}while(n!==null);on=6,st=null}function Db(n,r,i,s,d,g,S,O,j){n.cancelPendingCommit=null;do jc();while(Tn!==0);if((Et&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(g=r.lanes|r.childLanes,g|=zf,Ve(n,i,g,S,O,j),n===Ft&&(st=Ft=null,gt=0),Ri=r,Go=n,xo=i,Pd=g,Id=d,Tb=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,ew(Ue,function(){return Fb(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=P.T,P.T=null,d=q.p,q.p=2,S=Et,Et|=4;try{q2(n,r,i)}finally{Et=S,q.p=d,P.T=s}}Tn=1,Pb(),Ib(),jb()}}function Pb(){if(Tn===1){Tn=0;var n=Go,r=Ri,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=P.T,P.T=null;var s=q.p;q.p=2;var d=Et;Et|=4;try{bb(r,n);var g=em,S=$0(n.containerInfo),O=g.focusedElem,j=g.selectionRange;if(S!==O&&O&&O.ownerDocument&&E0(O.ownerDocument.documentElement,O)){if(j!==null&&wf(O)){var re=j.start,ue=j.end;if(ue===void 0&&(ue=re),"selectionStart"in O)O.selectionStart=re,O.selectionEnd=Math.min(ue,O.value.length);else{var ge=O.ownerDocument||document,oe=ge&&ge.defaultView||window;if(oe.getSelection){var se=oe.getSelection(),ze=O.textContent.length,Ge=Math.min(j.start,ze),Bt=j.end===void 0?Ge:Math.min(j.end,ze);!se.extend&&Ge>Bt&&(S=Bt,Bt=Ge,Ge=S);var J=x0(O,Ge),X=x0(O,Bt);if(J&&X&&(se.rangeCount!==1||se.anchorNode!==J.node||se.anchorOffset!==J.offset||se.focusNode!==X.node||se.focusOffset!==X.offset)){var ne=ge.createRange();ne.setStart(J.node,J.offset),se.removeAllRanges(),Ge>Bt?(se.addRange(ne),se.extend(X.node,X.offset)):(ne.setEnd(X.node,X.offset),se.addRange(ne))}}}}for(ge=[],se=O;se=se.parentNode;)se.nodeType===1&&ge.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<ge.length;O++){var fe=ge[O];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Zc=!!Jd,em=Jd=null}finally{Et=d,q.p=s,P.T=i}}n.current=r,Tn=2}}function Ib(){if(Tn===2){Tn=0;var n=Go,r=Ri,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=P.T,P.T=null;var s=q.p;q.p=2;var d=Et;Et|=4;try{mb(n,r.alternate,r)}finally{Et=d,q.p=s,P.T=i}}Tn=3}}function jb(){if(Tn===4||Tn===3){Tn=0,De();var n=Go,r=Ri,i=xo,s=Tb;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Tn=5:(Tn=0,Ri=Go=null,Vb(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Uo=null),Zt(i),r=r.stateNode,_e&&typeof _e.onCommitFiberRoot=="function")try{_e.onCommitFiberRoot(Ye,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=P.T,d=q.p,q.p=2,P.T=null;try{for(var g=n.onRecoverableError,S=0;S<s.length;S++){var O=s[S];g(O.value,{componentStack:O.stack})}}finally{P.T=r,q.p=d}}(xo&3)!==0&&jc(),kr(n),d=n.pendingLanes,(i&261930)!==0&&(d&42)!==0?n===jd?ql++:(ql=0,jd=n):ql=0,Ul(0)}}function Vb(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,$l(r)))}function jc(){return Pb(),Ib(),jb(),Fb()}function Fb(){if(Tn!==5)return!1;var n=Go,r=Pd;Pd=0;var i=Zt(xo),s=P.T,d=q.p;try{q.p=32>i?32:i,P.T=null,i=Id,Id=null;var g=Go,S=xo;if(Tn=0,Ri=Go=null,xo=0,(Et&6)!==0)throw Error(a(331));var O=Et;if(Et|=4,Eb(g.current),Sb(g,g.current,S,i),Et=O,Ul(0,!1),_e&&typeof _e.onPostCommitFiberRoot=="function")try{_e.onPostCommitFiberRoot(Ye,g)}catch{}return!0}finally{q.p=d,P.T=s,Vb(n,r)}}function qb(n,r,i){r=xr(i,r),r=bd(n.stateNode,r,2),n=Po(n,r,2),n!==null&&(Hn(n,2),kr(n))}function Nt(n,r,i){if(n.tag===3)qb(n,n,i);else for(;r!==null;){if(r.tag===3){qb(r,n,i);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Uo===null||!Uo.has(s))){n=xr(i,n),i=Uy(2),s=Po(r,i,2),s!==null&&(Gy(i,s,r,n),Hn(s,2),kr(s));break}}r=r.return}}function qd(n,r,i){var s=n.pingCache;if(s===null){s=n.pingCache=new X2;var d=new Set;s.set(r,d)}else d=s.get(r),d===void 0&&(d=new Set,s.set(r,d));d.has(i)||(Hd=!0,d.add(i),n=Q2.bind(null,n,r,i),r.then(n,n))}function Q2(n,r,i){var s=n.pingCache;s!==null&&s.delete(r),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Ft===n&&(gt&i)===i&&(on===4||on===3&&(gt&62914560)===gt&&300>Te()-Bc?(Et&2)===0&&Ni(n,0):Ld|=i,Mi===gt&&(Mi=0)),kr(n)}function Ub(n,r){r===0&&(r=un()),n=Ma(n,r),n!==null&&(Hn(n,r),kr(n))}function Z2(n){var r=n.memoizedState,i=0;r!==null&&(i=r.retryLane),Ub(n,i)}function J2(n,r){var i=0;switch(n.tag){case 31:case 13:var s=n.stateNode,d=n.memoizedState;d!==null&&(i=d.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(r),Ub(n,i)}function ew(n,r){return Xe(n,r)}var Vc=null,Oi=null,Ud=!1,Fc=!1,Gd=!1,Wo=0;function kr(n){n!==Oi&&n.next===null&&(Oi===null?Vc=Oi=n:Oi=Oi.next=n),Fc=!0,Ud||(Ud=!0,nw())}function Ul(n,r){if(!Gd&&Fc){Gd=!0;do for(var i=!1,s=Vc;s!==null;){if(n!==0){var d=s.pendingLanes;if(d===0)var g=0;else{var S=s.suspendedLanes,O=s.pingedLanes;g=(1<<31-Ie(42|n)+1)-1,g&=d&~(S&~O),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(i=!0,Yb(s,g))}else g=gt,g=Pt(s,s===Ft?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||Wt(s,g)||(i=!0,Yb(s,g));s=s.next}while(i);Gd=!1}}function tw(){Gb()}function Gb(){Fc=Ud=!1;var n=0;Wo!==0&&dw()&&(n=Wo);for(var r=Te(),i=null,s=Vc;s!==null;){var d=s.next,g=Xb(s,r);g===0?(s.next=null,i===null?Vc=d:i.next=d,d===null&&(Oi=i)):(i=s,(n!==0||(g&3)!==0)&&(Fc=!0)),s=d}Tn!==0&&Tn!==5||Ul(n),Wo!==0&&(Wo=0)}function Xb(n,r){for(var i=n.suspendedLanes,s=n.pingedLanes,d=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var S=31-Ie(g),O=1<<S,j=d[S];j===-1?((O&i)===0||(O&s)!==0)&&(d[S]=vt(O,r)):j<=r&&(n.expiredLanes|=O),g&=~O}if(r=Ft,i=gt,i=Pt(n,n===r?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,i===0||n===r&&(Rt===2||Rt===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&Oe(s),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Wt(n,i)){if(r=i&-i,r===n.callbackPriority)return r;switch(s!==null&&Oe(s),Zt(i)){case 2:case 8:i=ft;break;case 32:i=Ue;break;case 268435456:i=Me;break;default:i=Ue}return s=Wb.bind(null,n),i=Xe(i,s),n.callbackPriority=r,n.callbackNode=i,r}return s!==null&&s!==null&&Oe(s),n.callbackPriority=2,n.callbackNode=null,2}function Wb(n,r){if(Tn!==0&&Tn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(jc()&&n.callbackNode!==i)return null;var s=gt;return s=Pt(n,n===Ft?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Rb(n,s,r),Xb(n,Te()),n.callbackNode!=null&&n.callbackNode===i?Wb.bind(null,n):null)}function Yb(n,r){if(jc())return null;Rb(n,r,!0)}function nw(){gw(function(){(Et&6)!==0?Xe(it,tw):Gb()})}function Xd(){if(Wo===0){var n=hi;n===0&&(n=bt,bt<<=1,(bt&261888)===0&&(bt=256)),Wo=n}return Wo}function Kb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ks(""+n)}function kb(n,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,n.id&&i.setAttribute("form",n.id),r.parentNode.insertBefore(i,r),n=new FormData(n),i.parentNode.removeChild(i),n}function rw(n,r,i,s,d){if(r==="submit"&&i&&i.stateNode===d){var g=Kb((d[Ot]||null).action),S=s.submitter;S&&(r=(r=S[Ot]||null)?Kb(r.formAction):S.getAttribute("formAction"),r!==null&&(g=r,S=null));var O=new ec("action","action",null,s,d);n.push({event:O,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Wo!==0){var j=S?kb(d,S):new FormData(d);dd(i,{pending:!0,data:j,method:d.method,action:g},null,j)}}else typeof g=="function"&&(O.preventDefault(),j=S?kb(d,S):new FormData(d),dd(i,{pending:!0,data:j,method:d.method,action:g},g,j))},currentTarget:d}]})}}for(var Wd=0;Wd<Nf.length;Wd++){var Yd=Nf[Wd],ow=Yd.toLowerCase(),aw=Yd[0].toUpperCase()+Yd.slice(1);Ir(ow,"on"+aw)}Ir(M0,"onAnimationEnd"),Ir(R0,"onAnimationIteration"),Ir(N0,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(C2,"onTransitionRun"),Ir(x2,"onTransitionStart"),Ir(E2,"onTransitionCancel"),Ir(z0,"onTransitionEnd"),Sr("onMouseEnter",["mouseout","mouseover"]),Sr("onMouseLeave",["mouseout","mouseover"]),Sr("onPointerEnter",["pointerout","pointerover"]),Sr("onPointerLeave",["pointerout","pointerover"]),tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tn("onBeforeInput",["compositionend","keypress","textInput","paste"]),tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="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(" "),iw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gl));function Qb(n,r){r=(r&4)!==0;for(var i=0;i<n.length;i++){var s=n[i],d=s.event;s=s.listeners;e:{var g=void 0;if(r)for(var S=s.length-1;0<=S;S--){var O=s[S],j=O.instance,re=O.currentTarget;if(O=O.listener,j!==g&&d.isPropagationStopped())break e;g=O,d.currentTarget=re;try{g(d)}catch(ue){rc(ue)}d.currentTarget=null,g=j}else for(S=0;S<s.length;S++){if(O=s[S],j=O.instance,re=O.currentTarget,O=O.listener,j!==g&&d.isPropagationStopped())break e;g=O,d.currentTarget=re;try{g(d)}catch(ue){rc(ue)}d.currentTarget=null,g=j}}}}function ct(n,r){var i=r[Ne];i===void 0&&(i=r[Ne]=new Set);var s=n+"__bubble";i.has(s)||(Zb(r,n,2,!1),i.add(s))}function Kd(n,r,i){var s=0;r&&(s|=4),Zb(i,n,s,r)}var qc="_reactListening"+Math.random().toString(36).slice(2);function kd(n){if(!n[qc]){n[qc]=!0,or.forEach(function(i){i!=="selectionchange"&&(iw.has(i)||Kd(i,!1,n),Kd(i,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[qc]||(r[qc]=!0,Kd("selectionchange",!1,r))}}function Zb(n,r,i,s){switch(Mv(r)){case 2:var d=Bw;break;case 8:d=Hw;break;default:d=fm}i=d.bind(null,r,i,n),d=void 0,!hf||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),s?d!==void 0?n.addEventListener(r,i,{capture:!0,passive:d}):n.addEventListener(r,i,!0):d!==void 0?n.addEventListener(r,i,{passive:d}):n.addEventListener(r,i,!1)}function Qd(n,r,i,s,d){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var O=s.stateNode.containerInfo;if(O===d)break;if(S===4)for(S=s.return;S!==null;){var j=S.tag;if((j===3||j===4)&&S.stateNode.containerInfo===d)return;S=S.return}for(;O!==null;){if(S=en(O),S===null)return;if(j=S.tag,j===5||j===6||j===26||j===27){s=g=S;continue e}O=O.parentNode}}s=s.return}r0(function(){var re=g,ue=gf(i),ge=[];e:{var oe=O0.get(n);if(oe!==void 0){var se=ec,ze=n;switch(n){case"keypress":if(Zs(i)===0)break e;case"keydown":case"keyup":se=J$;break;case"focusin":ze="focus",se=Sf;break;case"focusout":ze="blur",se=Sf;break;case"beforeblur":case"afterblur":se=Sf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=i0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=V$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=n2;break;case M0:case R0:case N0:se=U$;break;case z0:se=o2;break;case"scroll":case"scrollend":se=I$;break;case"wheel":se=i2;break;case"copy":case"cut":case"paste":se=X$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=s0;break;case"toggle":case"beforetoggle":se=s2}var Ge=(r&4)!==0,Bt=!Ge&&(n==="scroll"||n==="scrollend"),J=Ge?oe!==null?oe+"Capture":null:oe;Ge=[];for(var X=re,ne;X!==null;){var fe=X;if(ne=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||ne===null||J===null||(fe=ml(X,J),fe!=null&&Ge.push(Xl(X,fe,ne))),Bt)break;X=X.return}0<Ge.length&&(oe=new se(oe,ze,null,i,ue),ge.push({event:oe,listeners:Ge}))}}if((r&7)===0){e:{if(oe=n==="mouseover"||n==="pointerover",se=n==="mouseout"||n==="pointerout",oe&&i!==mf&&(ze=i.relatedTarget||i.fromElement)&&(en(ze)||ze[$n]))break e;if((se||oe)&&(oe=ue.window===ue?ue:(oe=ue.ownerDocument)?oe.defaultView||oe.parentWindow:window,se?(ze=i.relatedTarget||i.toElement,se=re,ze=ze?en(ze):null,ze!==null&&(Bt=c(ze),Ge=ze.tag,ze!==Bt||Ge!==5&&Ge!==27&&Ge!==6)&&(ze=null)):(se=null,ze=re),se!==ze)){if(Ge=i0,fe="onMouseLeave",J="onMouseEnter",X="mouse",(n==="pointerout"||n==="pointerover")&&(Ge=s0,fe="onPointerLeave",J="onPointerEnter",X="pointer"),Bt=se==null?oe:Xn(se),ne=ze==null?oe:Xn(ze),oe=new Ge(fe,X+"leave",se,i,ue),oe.target=Bt,oe.relatedTarget=ne,fe=null,en(ue)===re&&(Ge=new Ge(J,X+"enter",ze,i,ue),Ge.target=ne,Ge.relatedTarget=Bt,fe=Ge),Bt=fe,se&&ze)t:{for(Ge=lw,J=se,X=ze,ne=0,fe=J;fe;fe=Ge(fe))ne++;fe=0;for(var qe=X;qe;qe=Ge(qe))fe++;for(;0<ne-fe;)J=Ge(J),ne--;for(;0<fe-ne;)X=Ge(X),fe--;for(;ne--;){if(J===X||X!==null&&J===X.alternate){Ge=J;break t}J=Ge(J),X=Ge(X)}Ge=null}else Ge=null;se!==null&&Jb(ge,oe,se,Ge,!1),ze!==null&&Bt!==null&&Jb(ge,Bt,ze,Ge,!0)}}e:{if(oe=re?Xn(re):window,se=oe.nodeName&&oe.nodeName.toLowerCase(),se==="select"||se==="input"&&oe.type==="file")var St=h0;else if(g0(oe))if(y0)St=b2;else{St=h2;var He=p2}else se=oe.nodeName,!se||se.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?re&&df(re.elementType)&&(St=h0):St=y2;if(St&&(St=St(n,re))){p0(ge,St,i,ue);break e}He&&He(n,oe,re),n==="focusout"&&re&&oe.type==="number"&&re.memoizedProps.value!=null&&ri(oe,"number",oe.value)}switch(He=re?Xn(re):window,n){case"focusin":(g0(He)||He.contentEditable==="true")&&(si=He,Tf=re,Cl=null);break;case"focusout":Cl=Tf=si=null;break;case"mousedown":Mf=!0;break;case"contextmenu":case"mouseup":case"dragend":Mf=!1,w0(ge,i,ue);break;case"selectionchange":if(S2)break;case"keydown":case"keyup":w0(ge,i,ue)}var tt;if(xf)e:{switch(n){case"compositionstart":var pt="onCompositionStart";break e;case"compositionend":pt="onCompositionEnd";break e;case"compositionupdate":pt="onCompositionUpdate";break e}pt=void 0}else li?d0(n,i)&&(pt="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(pt="onCompositionStart");pt&&(c0&&i.locale!=="ko"&&(li||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&li&&(tt=o0()):(Oo=ue,yf="value"in Oo?Oo.value:Oo.textContent,li=!0)),He=Uc(re,pt),0<He.length&&(pt=new l0(pt,n,null,i,ue),ge.push({event:pt,listeners:He}),tt?pt.data=tt:(tt=m0(i),tt!==null&&(pt.data=tt)))),(tt=u2?f2(n,i):d2(n,i))&&(pt=Uc(re,"onBeforeInput"),0<pt.length&&(He=new l0("onBeforeInput","beforeinput",null,i,ue),ge.push({event:He,listeners:pt}),He.data=tt)),rw(ge,n,re,i,ue)}Qb(ge,r)})}function Xl(n,r,i){return{instance:n,listener:r,currentTarget:i}}function Uc(n,r){for(var i=r+"Capture",s=[];n!==null;){var d=n,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=ml(n,i),d!=null&&s.unshift(Xl(n,d,g)),d=ml(n,r),d!=null&&s.push(Xl(n,d,g))),n.tag===3)return s;n=n.return}return[]}function lw(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Jb(n,r,i,s,d){for(var g=r._reactName,S=[];i!==null&&i!==s;){var O=i,j=O.alternate,re=O.stateNode;if(O=O.tag,j!==null&&j===s)break;O!==5&&O!==26&&O!==27||re===null||(j=re,d?(re=ml(i,g),re!=null&&S.unshift(Xl(i,re,j))):d||(re=ml(i,g),re!=null&&S.push(Xl(i,re,j)))),i=i.return}S.length!==0&&n.push({event:r,listeners:S})}var sw=/\r\n?/g,cw=/\u0000|\uFFFD/g;function ev(n){return(typeof n=="string"?n:""+n).replace(sw,`
9
+ `).replace(cw,"")}function tv(n,r){return r=ev(r),ev(n)===r}function _t(n,r,i,s,d,g){switch(i){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||oi(n,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&oi(n,""+s);break;case"className":nn(n,"class",s);break;case"tabIndex":nn(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":nn(n,i,s);break;case"style":t0(n,s,g);break;case"data":if(r!=="object"){nn(n,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||i!=="href")){n.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(i);break}s=ks(""+s),n.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(i==="formAction"?(r!=="input"&&_t(n,r,"name",d.name,d,null),_t(n,r,"formEncType",d.formEncType,d,null),_t(n,r,"formMethod",d.formMethod,d,null),_t(n,r,"formTarget",d.formTarget,d,null)):(_t(n,r,"encType",d.encType,d,null),_t(n,r,"method",d.method,d,null),_t(n,r,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(i);break}s=ks(""+s),n.setAttribute(i,s);break;case"onClick":s!=null&&(n.onclick=io);break;case"onScroll":s!=null&&ct("scroll",n);break;case"onScrollEnd":s!=null&&ct("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(i=s.__html,i!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=i}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}i=ks(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(i,""+s):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":s===!0?n.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(i,s):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(i,s):n.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(i):n.setAttribute(i,s);break;case"popover":ct("beforetoggle",n),ct("toggle",n),fn(n,"popover",s);break;case"xlinkActuate":Un(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Un(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Un(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Un(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Un(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Un(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Un(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Un(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Un(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":fn(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=D$.get(i)||i,fn(n,i,s))}}function Zd(n,r,i,s,d,g){switch(i){case"style":t0(n,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(i=s.__html,i!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=i}}break;case"children":typeof s=="string"?oi(n,s):(typeof s=="number"||typeof s=="bigint")&&oi(n,""+s);break;case"onScroll":s!=null&&ct("scroll",n);break;case"onScrollEnd":s!=null&&ct("scrollend",n);break;case"onClick":s!=null&&(n.onclick=io);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oo.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),r=i.slice(2,d?i.length-7:void 0),g=n[Ot]||null,g=g!=null?g[i]:null,typeof g=="function"&&n.removeEventListener(r,g,d),typeof s=="function")){typeof g!="function"&&g!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(r,s,d);break e}i in n?n[i]=s:s===!0?n.setAttribute(i,""):fn(n,i,s)}}}function In(n,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ct("error",n),ct("load",n);var s=!1,d=!1,g;for(g in i)if(i.hasOwnProperty(g)){var S=i[g];if(S!=null)switch(g){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:_t(n,r,g,S,i,null)}}d&&_t(n,r,"srcSet",i.srcSet,i,null),s&&_t(n,r,"src",i.src,i,null);return;case"input":ct("invalid",n);var O=g=S=d=null,j=null,re=null;for(s in i)if(i.hasOwnProperty(s)){var ue=i[s];if(ue!=null)switch(s){case"name":d=ue;break;case"type":S=ue;break;case"checked":j=ue;break;case"defaultChecked":re=ue;break;case"value":g=ue;break;case"defaultValue":O=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(a(137,r));break;default:_t(n,r,s,ue,i,null)}}Ys(n,g,O,j,re,S,d,!1);return;case"select":ct("invalid",n),s=S=g=null;for(d in i)if(i.hasOwnProperty(d)&&(O=i[d],O!=null))switch(d){case"value":g=O;break;case"defaultValue":S=O;break;case"multiple":s=O;default:_t(n,r,d,O,i,null)}r=g,i=S,n.multiple=!!s,r!=null?ao(n,!!s,r,!1):i!=null&&ao(n,!!s,i,!0);return;case"textarea":ct("invalid",n),g=d=s=null;for(S in i)if(i.hasOwnProperty(S)&&(O=i[S],O!=null))switch(S){case"value":s=O;break;case"defaultValue":d=O;break;case"children":g=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(a(91));break;default:_t(n,r,S,O,i,null)}Jh(n,s,d,g);return;case"option":for(j in i)i.hasOwnProperty(j)&&(s=i[j],s!=null)&&(j==="selected"?n.selected=s&&typeof s!="function"&&typeof s!="symbol":_t(n,r,j,s,i,null));return;case"dialog":ct("beforetoggle",n),ct("toggle",n),ct("cancel",n),ct("close",n);break;case"iframe":case"object":ct("load",n);break;case"video":case"audio":for(s=0;s<Gl.length;s++)ct(Gl[s],n);break;case"image":ct("error",n),ct("load",n);break;case"details":ct("toggle",n);break;case"embed":case"source":case"link":ct("error",n),ct("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in i)if(i.hasOwnProperty(re)&&(s=i[re],s!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:_t(n,r,re,s,i,null)}return;default:if(df(r)){for(ue in i)i.hasOwnProperty(ue)&&(s=i[ue],s!==void 0&&Zd(n,r,ue,s,i,void 0));return}}for(O in i)i.hasOwnProperty(O)&&(s=i[O],s!=null&&_t(n,r,O,s,i,null))}function uw(n,r,i,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,S=null,O=null,j=null,re=null,ue=null;for(se in i){var ge=i[se];if(i.hasOwnProperty(se)&&ge!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":j=ge;default:s.hasOwnProperty(se)||_t(n,r,se,null,s,ge)}}for(var oe in s){var se=s[oe];if(ge=i[oe],s.hasOwnProperty(oe)&&(se!=null||ge!=null))switch(oe){case"type":g=se;break;case"name":d=se;break;case"checked":re=se;break;case"defaultChecked":ue=se;break;case"value":S=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(a(137,r));break;default:se!==ge&&_t(n,r,oe,se,s,ge)}}zo(n,S,O,j,re,ue,g,d);return;case"select":se=S=O=oe=null;for(g in i)if(j=i[g],i.hasOwnProperty(g)&&j!=null)switch(g){case"value":break;case"multiple":se=j;default:s.hasOwnProperty(g)||_t(n,r,g,null,s,j)}for(d in s)if(g=s[d],j=i[d],s.hasOwnProperty(d)&&(g!=null||j!=null))switch(d){case"value":oe=g;break;case"defaultValue":O=g;break;case"multiple":S=g;default:g!==j&&_t(n,r,d,g,s,j)}r=O,i=S,s=se,oe!=null?ao(n,!!i,oe,!1):!!s!=!!i&&(r!=null?ao(n,!!i,r,!0):ao(n,!!i,i?[]:"",!1));return;case"textarea":se=oe=null;for(O in i)if(d=i[O],i.hasOwnProperty(O)&&d!=null&&!s.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:_t(n,r,O,null,s,d)}for(S in s)if(d=s[S],g=i[S],s.hasOwnProperty(S)&&(d!=null||g!=null))switch(S){case"value":oe=d;break;case"defaultValue":se=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==g&&_t(n,r,S,d,s,g)}Ks(n,oe,se);return;case"option":for(var ze in i)oe=i[ze],i.hasOwnProperty(ze)&&oe!=null&&!s.hasOwnProperty(ze)&&(ze==="selected"?n.selected=!1:_t(n,r,ze,null,s,oe));for(j in s)oe=s[j],se=i[j],s.hasOwnProperty(j)&&oe!==se&&(oe!=null||se!=null)&&(j==="selected"?n.selected=oe&&typeof oe!="function"&&typeof oe!="symbol":_t(n,r,j,oe,s,se));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ge in i)oe=i[Ge],i.hasOwnProperty(Ge)&&oe!=null&&!s.hasOwnProperty(Ge)&&_t(n,r,Ge,null,s,oe);for(re in s)if(oe=s[re],se=i[re],s.hasOwnProperty(re)&&oe!==se&&(oe!=null||se!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(a(137,r));break;default:_t(n,r,re,oe,s,se)}return;default:if(df(r)){for(var Bt in i)oe=i[Bt],i.hasOwnProperty(Bt)&&oe!==void 0&&!s.hasOwnProperty(Bt)&&Zd(n,r,Bt,void 0,s,oe);for(ue in s)oe=s[ue],se=i[ue],!s.hasOwnProperty(ue)||oe===se||oe===void 0&&se===void 0||Zd(n,r,ue,oe,s,se);return}}for(var J in i)oe=i[J],i.hasOwnProperty(J)&&oe!=null&&!s.hasOwnProperty(J)&&_t(n,r,J,null,s,oe);for(ge in s)oe=s[ge],se=i[ge],!s.hasOwnProperty(ge)||oe===se||oe==null&&se==null||_t(n,r,ge,oe,s,se)}function nv(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fw(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var d=i[s],g=d.transferSize,S=d.initiatorType,O=d.duration;if(g&&O&&nv(S)){for(S=0,O=d.responseEnd,s+=1;s<i.length;s++){var j=i[s],re=j.startTime;if(re>O)break;var ue=j.transferSize,ge=j.initiatorType;ue&&nv(ge)&&(j=j.responseEnd,S+=ue*(j<O?1:(O-re)/(j-re)))}if(--s,r+=8*(g+S)/(d.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Jd=null,em=null;function Gc(n){return n.nodeType===9?n:n.ownerDocument}function rv(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ov(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function tm(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var nm=null;function dw(){var n=window.event;return n&&n.type==="popstate"?n===nm?!1:(nm=n,!0):(nm=null,!1)}var av=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,iv=typeof Promise=="function"?Promise:void 0,gw=typeof queueMicrotask=="function"?queueMicrotask:typeof iv<"u"?function(n){return iv.resolve(null).then(n).catch(pw)}:av;function pw(n){setTimeout(function(){throw n})}function Yo(n){return n==="head"}function lv(n,r){var i=r,s=0;do{var d=i.nextSibling;if(n.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(s===0){n.removeChild(d),Hi(r);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")Wl(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,Wl(i);for(var g=i.firstChild;g;){var S=g.nextSibling,O=g.nodeName;g[Vt]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&g.rel.toLowerCase()==="stylesheet"||i.removeChild(g),g=S}}else i==="body"&&Wl(n.ownerDocument.body);i=d}while(i);Hi(r)}function sv(n,r){var i=n;n=0;do{var s=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=s}while(i)}function rm(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":rm(i),pn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function hw(n,r,i,s){for(;n.nodeType===1;){var d=i;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[Vt])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Mr(n.nextSibling),n===null)break}return null}function yw(n,r,i){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=Mr(n.nextSibling),n===null))return null;return n}function cv(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Mr(n.nextSibling),n===null))return null;return n}function om(n){return n.data==="$?"||n.data==="$~"}function am(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function bw(n,r){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||i.readyState!=="loading")r();else{var s=function(){r(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function Mr(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var im=null;function uv(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(r===0)return Mr(n.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}n=n.nextSibling}return null}function fv(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return n;r--}else i!=="/$"&&i!=="/&"||r++}n=n.previousSibling}return null}function dv(n,r,i){switch(r=Gc(i),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Wl(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);pn(n)}var Rr=new Map,mv=new Set;function Xc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Eo=q.d;q.d={f:vw,r:Sw,D:Cw,C:xw,L:Ew,m:$w,X:Tw,S:ww,M:Mw};function vw(){var n=Eo.f(),r=Dc();return n||r}function Sw(n){var r=wn(n);r!==null&&r.tag===5&&r.type==="form"?zy(r):Eo.r(n)}var Ai=typeof document>"u"?null:document;function gv(n,r,i){var s=Ai;if(s&&typeof r=="string"&&r){var d=Qe(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),mv.has(d)||(mv.add(d),n={rel:n,crossOrigin:i,href:r},s.querySelector(d)===null&&(r=s.createElement("link"),In(r,"link",n),Yt(r),s.head.appendChild(r)))}}function Cw(n){Eo.D(n),gv("dns-prefetch",n,null)}function xw(n,r){Eo.C(n,r),gv("preconnect",n,r)}function Ew(n,r,i){Eo.L(n,r,i);var s=Ai;if(s&&n&&r){var d='link[rel="preload"][as="'+Qe(r)+'"]';r==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Qe(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Qe(i.imageSizes)+'"]')):d+='[href="'+Qe(n)+'"]';var g=d;switch(r){case"style":g=_i(n);break;case"script":g=Bi(n)}Rr.has(g)||(n=b({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:n,as:r},i),Rr.set(g,n),s.querySelector(d)!==null||r==="style"&&s.querySelector(Yl(g))||r==="script"&&s.querySelector(Kl(g))||(r=s.createElement("link"),In(r,"link",n),Yt(r),s.head.appendChild(r)))}}function $w(n,r){Eo.m(n,r);var i=Ai;if(i&&n){var s=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Qe(s)+'"][href="'+Qe(n)+'"]',g=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Bi(n)}if(!Rr.has(g)&&(n=b({rel:"modulepreload",href:n},r),Rr.set(g,n),i.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Kl(g)))return}s=i.createElement("link"),In(s,"link",n),Yt(s),i.head.appendChild(s)}}}function ww(n,r,i){Eo.S(n,r,i);var s=Ai;if(s&&n){var d=rr(s).hoistableStyles,g=_i(n);r=r||"default";var S=d.get(g);if(!S){var O={loading:0,preload:null};if(S=s.querySelector(Yl(g)))O.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":r},i),(i=Rr.get(g))&&lm(n,i);var j=S=s.createElement("link");Yt(j),In(j,"link",n),j._p=new Promise(function(re,ue){j.onload=re,j.onerror=ue}),j.addEventListener("load",function(){O.loading|=1}),j.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Wc(S,r,s)}S={type:"stylesheet",instance:S,count:1,state:O},d.set(g,S)}}}function Tw(n,r){Eo.X(n,r);var i=Ai;if(i&&n){var s=rr(i).hoistableScripts,d=Bi(n),g=s.get(d);g||(g=i.querySelector(Kl(d)),g||(n=b({src:n,async:!0},r),(r=Rr.get(d))&&sm(n,r),g=i.createElement("script"),Yt(g),In(g,"link",n),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function Mw(n,r){Eo.M(n,r);var i=Ai;if(i&&n){var s=rr(i).hoistableScripts,d=Bi(n),g=s.get(d);g||(g=i.querySelector(Kl(d)),g||(n=b({src:n,async:!0,type:"module"},r),(r=Rr.get(d))&&sm(n,r),g=i.createElement("script"),Yt(g),In(g,"link",n),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function pv(n,r,i,s){var d=(d=ie.current)?Xc(d):null;if(!d)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=_i(i.href),i=rr(d).hoistableStyles,s=i.get(r),s||(s={type:"style",instance:null,count:0,state:null},i.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=_i(i.href);var g=rr(d).hoistableStyles,S=g.get(n);if(S||(d=d.ownerDocument||d,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,S),(g=d.querySelector(Yl(n)))&&!g._p&&(S.instance=g,S.state.loading=5),Rr.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Rr.set(n,i),g||Rw(d,n,i,S.state))),r&&s===null)throw Error(a(528,""));return S}if(r&&s!==null)throw Error(a(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Bi(i),i=rr(d).hoistableScripts,s=i.get(r),s||(s={type:"script",instance:null,count:0,state:null},i.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function _i(n){return'href="'+Qe(n)+'"'}function Yl(n){return'link[rel="stylesheet"]['+n+"]"}function hv(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function Rw(n,r,i,s){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=n.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),In(r,"link",i),Yt(r),n.head.appendChild(r))}function Bi(n){return'[src="'+Qe(n)+'"]'}function Kl(n){return"script[async]"+n}function yv(n,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var s=n.querySelector('style[data-href~="'+Qe(i.href)+'"]');if(s)return r.instance=s,Yt(s),s;var d=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),Yt(s),In(s,"style",d),Wc(s,i.precedence,n),r.instance=s;case"stylesheet":d=_i(i.href);var g=n.querySelector(Yl(d));if(g)return r.state.loading|=4,r.instance=g,Yt(g),g;s=hv(i),(d=Rr.get(d))&&lm(s,d),g=(n.ownerDocument||n).createElement("link"),Yt(g);var S=g;return S._p=new Promise(function(O,j){S.onload=O,S.onerror=j}),In(g,"link",s),r.state.loading|=4,Wc(g,i.precedence,n),r.instance=g;case"script":return g=Bi(i.src),(d=n.querySelector(Kl(g)))?(r.instance=d,Yt(d),d):(s=i,(d=Rr.get(g))&&(s=b({},i),sm(s,d)),n=n.ownerDocument||n,d=n.createElement("script"),Yt(d),In(d,"link",s),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,Wc(s,i.precedence,n));return r.instance}function Wc(n,r,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,g=d,S=0;S<s.length;S++){var O=s[S];if(O.dataset.precedence===r)g=O;else if(g!==d)break}g?g.parentNode.insertBefore(n,g.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(n,r.firstChild))}function lm(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function sm(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Yc=null;function bv(n,r,i){if(Yc===null){var s=new Map,d=Yc=new Map;d.set(i,s)}else d=Yc,s=d.get(i),s||(s=new Map,d.set(i,s));if(s.has(n))return s;for(s.set(n,null),i=i.getElementsByTagName(n),d=0;d<i.length;d++){var g=i[d];if(!(g[Vt]||g[rt]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(r)||"";S=n+S;var O=s.get(S);O?O.push(g):s.set(S,[g])}}return s}function vv(n,r,i){n=n.ownerDocument||n,n.head.insertBefore(i,r==="title"?n.querySelector("head > title"):null)}function Nw(n,r,i){if(i===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Sv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function zw(n,r,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=_i(s.href),g=r.querySelector(Yl(d));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Kc.bind(n),r.then(n,n)),i.state.loading|=4,i.instance=g,Yt(g);return}g=r.ownerDocument||r,s=hv(s),(d=Rr.get(d))&&lm(s,d),g=g.createElement("link"),Yt(g);var S=g;S._p=new Promise(function(O,j){S.onload=O,S.onerror=j}),In(g,"link",s),i.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=Kc.bind(n),r.addEventListener("load",i),r.addEventListener("error",i))}}var cm=0;function Ow(n,r){return n.stylesheets&&n.count===0&&Qc(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var s=setTimeout(function(){if(n.stylesheets&&Qc(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+r);0<n.imgBytes&&cm===0&&(cm=62500*fw());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Qc(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>cm?50:800)+r);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function Kc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var kc=null;function Qc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,kc=new Map,r.forEach(Aw,n),kc=null,Kc.call(n))}function Aw(n,r){if(!(r.state.loading&4)){var i=kc.get(n);if(i)var s=i.get(null);else{i=new Map,kc.set(n,i);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var S=d[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),s=S)}s&&i.set(null,s)}d=r.instance,S=d.getAttribute("data-precedence"),g=i.get(S)||s,g===s&&i.set(null,d),i.set(S,d),this.count++,s=Kc.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),g?g.parentNode.insertBefore(d,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var kl={$$typeof:w,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function _w(n,r,i,s,d,g,S,O,j){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bn(0),this.hiddenUpdates=Bn(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Cv(n,r,i,s,d,g,S,O,j,re,ue,ge){return n=new _w(n,r,i,S,j,re,ue,ge,O),r=1,g===!0&&(r|=24),g=ir(3,null,null,r),n.current=g,g.stateNode=n,r=Ff(),r.refCount++,n.pooledCache=r,r.refCount++,g.memoizedState={element:s,isDehydrated:i,cache:r},Xf(g),n}function xv(n){return n?(n=fi,n):fi}function Ev(n,r,i,s,d,g){d=xv(d),s.context===null?s.context=d:s.pendingContext=d,s=Do(r),s.payload={element:i},g=g===void 0?null:g,g!==null&&(s.callback=g),i=Po(n,s,r),i!==null&&(Zn(i,n,r),Rl(i,n,r))}function $v(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<r?i:r}}function um(n,r){$v(n,r),(n=n.alternate)&&$v(n,r)}function wv(n){if(n.tag===13||n.tag===31){var r=Ma(n,67108864);r!==null&&Zn(r,n,67108864),um(n,67108864)}}function Tv(n){if(n.tag===13||n.tag===31){var r=fr();r=It(r);var i=Ma(n,r);i!==null&&Zn(i,n,r),um(n,r)}}var Zc=!0;function Bw(n,r,i,s){var d=P.T;P.T=null;var g=q.p;try{q.p=2,fm(n,r,i,s)}finally{q.p=g,P.T=d}}function Hw(n,r,i,s){var d=P.T;P.T=null;var g=q.p;try{q.p=8,fm(n,r,i,s)}finally{q.p=g,P.T=d}}function fm(n,r,i,s){if(Zc){var d=dm(s);if(d===null)Qd(n,r,s,Jc,i),Rv(n,s);else if(Dw(d,n,r,i,s))s.stopPropagation();else if(Rv(n,s),r&4&&-1<Lw.indexOf(n)){for(;d!==null;){var g=wn(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=ot(g.pendingLanes);if(S!==0){var O=g;for(O.pendingLanes|=2,O.entangledLanes|=2;S;){var j=1<<31-Ie(S);O.entanglements[1]|=j,S&=~j}kr(g),(Et&6)===0&&(Hc=Te()+500,Ul(0))}}break;case 31:case 13:O=Ma(g,2),O!==null&&Zn(O,g,2),Dc(),um(g,2)}if(g=dm(s),g===null&&Qd(n,r,s,Jc,i),g===d)break;d=g}d!==null&&s.stopPropagation()}else Qd(n,r,s,null,i)}}function dm(n){return n=gf(n),mm(n)}var Jc=null;function mm(n){if(Jc=null,n=en(n),n!==null){var r=c(n);if(r===null)n=null;else{var i=r.tag;if(i===13){if(n=f(r),n!==null)return n;n=null}else if(i===31){if(n=m(r),n!==null)return n;n=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Jc=n,null}function Mv(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(et()){case it:return 2;case ft:return 8;case Ue:case dt:return 32;case Me:return 268435456;default:return 32}default:return 32}}var gm=!1,Ko=null,ko=null,Qo=null,Ql=new Map,Zl=new Map,Zo=[],Lw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Rv(n,r){switch(n){case"focusin":case"focusout":Ko=null;break;case"dragenter":case"dragleave":ko=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":Ql.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(r.pointerId)}}function Jl(n,r,i,s,d,g){return n===null||n.nativeEvent!==g?(n={blockedOn:r,domEventName:i,eventSystemFlags:s,nativeEvent:g,targetContainers:[d]},r!==null&&(r=wn(r),r!==null&&wv(r)),n):(n.eventSystemFlags|=s,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function Dw(n,r,i,s,d){switch(r){case"focusin":return Ko=Jl(Ko,n,r,i,s,d),!0;case"dragenter":return ko=Jl(ko,n,r,i,s,d),!0;case"mouseover":return Qo=Jl(Qo,n,r,i,s,d),!0;case"pointerover":var g=d.pointerId;return Ql.set(g,Jl(Ql.get(g)||null,n,r,i,s,d)),!0;case"gotpointercapture":return g=d.pointerId,Zl.set(g,Jl(Zl.get(g)||null,n,r,i,s,d)),!0}return!1}function Nv(n){var r=en(n.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=f(i),r!==null){n.blockedOn=r,jn(n.priority,function(){Tv(i)});return}}else if(r===31){if(r=m(i),r!==null){n.blockedOn=r,jn(n.priority,function(){Tv(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function eu(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var i=dm(n.nativeEvent);if(i===null){i=n.nativeEvent;var s=new i.constructor(i.type,i);mf=s,i.target.dispatchEvent(s),mf=null}else return r=wn(i),r!==null&&wv(r),n.blockedOn=i,!1;r.shift()}return!0}function zv(n,r,i){eu(n)&&i.delete(r)}function Pw(){gm=!1,Ko!==null&&eu(Ko)&&(Ko=null),ko!==null&&eu(ko)&&(ko=null),Qo!==null&&eu(Qo)&&(Qo=null),Ql.forEach(zv),Zl.forEach(zv)}function tu(n,r){n.blockedOn===r&&(n.blockedOn=null,gm||(gm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Pw)))}var nu=null;function Ov(n){nu!==n&&(nu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nu===n&&(nu=null);for(var r=0;r<n.length;r+=3){var i=n[r],s=n[r+1],d=n[r+2];if(typeof s!="function"){if(mm(s||i)===null)continue;break}var g=wn(i);g!==null&&(n.splice(r,3),r-=3,dd(g,{pending:!0,data:d,method:i.method,action:s},s,d))}}))}function Hi(n){function r(j){return tu(j,n)}Ko!==null&&tu(Ko,n),ko!==null&&tu(ko,n),Qo!==null&&tu(Qo,n),Ql.forEach(r),Zl.forEach(r);for(var i=0;i<Zo.length;i++){var s=Zo[i];s.blockedOn===n&&(s.blockedOn=null)}for(;0<Zo.length&&(i=Zo[0],i.blockedOn===null);)Nv(i),i.blockedOn===null&&Zo.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var d=i[s],g=i[s+1],S=d[Ot]||null;if(typeof g=="function")S||Ov(i);else if(S){var O=null;if(g&&g.hasAttribute("formAction")){if(d=g,S=g[Ot]||null)O=S.formAction;else if(mm(d)!==null)continue}else O=S.action;typeof O=="function"?i[s+1]=O:(i.splice(s,3),s-=3),Ov(i)}}}function Av(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return d=S})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function pm(n){this._internalRoot=n}ru.prototype.render=pm.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var i=r.current,s=fr();Ev(i,s,n,r,null,null)},ru.prototype.unmount=pm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Ev(n.current,2,null,n,null,null),Dc(),r[$n]=null}};function ru(n){this._internalRoot=n}ru.prototype.unstable_scheduleHydration=function(n){if(n){var r=gn();n={blockedOn:null,target:n,priority:r};for(var i=0;i<Zo.length&&r!==0&&r<Zo[i].priority;i++);Zo.splice(i,0,n),i===0&&Nv(n)}};var _v=t.version;if(_v!=="19.2.4")throw Error(a(527,_v,"19.2.4"));q.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=p(r),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var Iw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{Ye=ou.inject(Iw),_e=ou}catch{}}return ts.createRoot=function(n,r){if(!l(n))throw Error(a(299));var i=!1,s="",d=jy,g=Vy,S=Fy;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError)),r=Cv(n,1,!1,null,null,i,s,null,d,g,S,Av),n[$n]=r.current,kd(n),new pm(r)},ts.hydrateRoot=function(n,r,i){if(!l(n))throw Error(a(299));var s=!1,d="",g=jy,S=Vy,O=Fy,j=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&(O=i.onRecoverableError),i.formState!==void 0&&(j=i.formState)),r=Cv(n,1,!0,r,i??null,s,d,j,g,S,O,Av),r.context=xv(null),i=r.current,s=fr(),s=It(s),d=Do(s),d.callback=null,Po(i,d,s),i=s,r.current.lanes=i,Hn(r,i),kr(r),n[$n]=r.current,kd(n),new ru(r)},ts.version="19.2.4",ts}var qv;function Kw(){if(qv)return ym.exports;qv=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(),ym.exports=Yw(),ym.exports}var xC=Kw(),u=Jp();const te=SC(u),kw=Vw({__proto__:null,default:te},[u]),Tt=e=>{const t=u.useRef(e);return t.current=e,u.useCallback((...a)=>t.current?.(...a),[])};function tr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Uv=tr()?u.useLayoutEffect:u.useEffect,Lt=(e,t)=>{const o=u.useRef(!0);Uv(()=>e(o.current),t),Uv(()=>(o.current=!1,()=>{o.current=!0}),[])},Qw=(e,t)=>{Lt(o=>{if(!o)return e()},t)},EC=e=>{const t=u.useRef(!1),[o,a]=u.useState(e);u.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function l(c,f){f&&t.current||a(c)}return[o,l]};function yr(e,t){const[o,a]=u.useState(e),l=t!==void 0?t:o;return Lt(c=>{c||a(t)},[t]),[l,a]}var xm={exports:{}},wt={};var Gv;function Zw(){if(Gv)return wt;Gv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function E(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case e:switch(C=C.type,C){case o:case l:case a:case p:case y:return C;default:switch(C=C&&C.$$typeof,C){case m:case f:case h:case v:case b:case c:return C;default:return T}}case t:return T}}}return wt.ContextConsumer=f,wt.ContextProvider=c,wt.Element=e,wt.ForwardRef=h,wt.Fragment=o,wt.Lazy=v,wt.Memo=b,wt.Portal=t,wt.Profiler=l,wt.StrictMode=a,wt.Suspense=p,wt.SuspenseList=y,wt.isAsyncMode=function(){return!1},wt.isConcurrentMode=function(){return!1},wt.isContextConsumer=function(C){return E(C)===f},wt.isContextProvider=function(C){return E(C)===c},wt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},wt.isForwardRef=function(C){return E(C)===h},wt.isFragment=function(C){return E(C)===o},wt.isLazy=function(C){return E(C)===v},wt.isMemo=function(C){return E(C)===b},wt.isPortal=function(C){return E(C)===t},wt.isProfiler=function(C){return E(C)===l},wt.isStrictMode=function(C){return E(C)===a},wt.isSuspense=function(C){return E(C)===p},wt.isSuspenseList=function(C){return E(C)===y},wt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===l||C===a||C===p||C===y||C===$||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===b||C.$$typeof===c||C.$$typeof===f||C.$$typeof===h||C.$$typeof===x||C.getModuleId!==void 0)},wt.typeOf=E,wt}var Xv;function Jw(){return Xv||(Xv=1,xm.exports=Zw()),xm.exports}var Em=Jw();function Ku(e,t,o){const a=u.useRef({});return(!("value"in a.current)||o(a.current.condition,t))&&(a.current.value=e(),a.current.condition=t),a.current.value}const e4=Symbol.for("react.element"),t4=Symbol.for("react.transitional.element"),n4=Symbol.for("react.fragment");function $C(e){return e&&typeof e=="object"&&(e.$$typeof===e4||e.$$typeof===t4)&&e.type===n4}const r4=Number(u.version.split(".")[0]),o4=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Hr=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:o=>{e.forEach(a=>{o4(a,o)})}},ya=(...e)=>Ku(()=>Hr(...e),e,(t,o)=>t.length!==o.length||t.every((a,l)=>a!==o[l])),il=e=>{if(!e)return!1;if(eh(e)&&r4>=19)return!0;const t=Em.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Em.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Em.ForwardRef)};function eh(e){return u.isValidElement(e)&&!$C(e)}const a4=e=>eh(e)&&il(e),Ja=e=>{if(e&&eh(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Ar(e,t){let o=e;for(let a=0;a<t.length;a+=1){if(o==null)return;o=o[t[a]]}return o}function wC(e,t,o,a){if(!t.length)return o;const[l,...c]=t;let f;return!e&&typeof l=="number"?f=[]:Array.isArray(e)?f=[...e]:f={...e},a&&o===void 0&&c.length===1?delete f[l][c[0]]:f[l]=wC(f[l],c,o,a),f}function gr(e,t,o,a=!1){return t.length&&a&&o===void 0&&!Ar(e,t.slice(0,-1))?e:wC(e,t,o,a)}function i4(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wv(e){return Array.isArray(e)?[]:{}}const l4=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function s4(e,t={}){const{prepareArray:o}=t,a=o||(()=>[]);let l=Wv(e[0]);return e.forEach(c=>{function f(m,h){const p=new Set(h),y=Ar(c,m),b=Array.isArray(y);if(b||i4(y)){if(!p.has(y)){p.add(y);const v=Ar(l,m);b?l=gr(l,m,a(v,y)):(!v||typeof v!="object")&&(l=gr(l,m,Wv(y))),l4(y).forEach($=>{Object.getOwnPropertyDescriptor(y,$).enumerable&&f([...m,$],p)})}}else l=gr(l,m,y)}f([])}),l}function Ki(...e){return s4(e)}let lg={};const c4=e=>{};function u4(e,t){}function f4(e,t){}function d4(){lg={}}function TC(e,t,o){!t&&!lg[o]&&(e(!1,o),lg[o]=!0)}function qn(e,t){TC(u4,e,t)}function m4(e,t){TC(f4,e,t)}qn.preMessage=c4;qn.resetWarned=d4;qn.noteOnce=m4;function Lr(e,t){const o=Object.assign({},e);return Array.isArray(t)&&t.forEach(a=>{delete o[a]}),o}function br(e,t={}){let o=[];return te.Children.forEach(e,a=>{a==null&&!t.keepEmpty||(Array.isArray(a)?o=o.concat(br(a)):$C(a)&&a.props?o=o.concat(br(a.props.children,t)):o.push(a))}),o}const g4=u.createContext({});function tl(e){return e instanceof HTMLElement||e instanceof SVGElement}function th(e){return e&&typeof e=="object"&&tl(e.nativeElement)?e.nativeElement:tl(e)?e:null}const sg=u.createContext(null);function p4({children:e,onBatchResize:t}){const o=u.useRef(0),a=u.useRef([]),l=u.useContext(sg),c=u.useCallback((f,m,h)=>{o.current+=1;const p=o.current;a.current.push({size:f,element:m,data:h}),Promise.resolve().then(()=>{p===o.current&&(t?.(a.current),a.current=[])}),l?.(f,m,h)},[t,l]);return u.createElement(sg.Provider,{value:c},e)}const aa=new Map;function h4(e){e.forEach(t=>{const{target:o}=t;aa.get(o)?.forEach(a=>a(o))})}let $m;function MC(){return $m||($m=new ResizeObserver(h4)),$m}function y4(e,t){aa.has(e)||(aa.set(e,new Set),MC().observe(e)),aa.get(e).add(t)}function b4(e,t){aa.has(e)&&(aa.get(e).delete(t),aa.get(e).size||(MC().unobserve(e),aa.delete(e)))}function RC(e,t,o,a){const l=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=Tt(h=>{const{width:p,height:y}=h.getBoundingClientRect(),{offsetWidth:b,offsetHeight:v}=h,$=Math.floor(p),x=Math.floor(y);if(l.current.width!==$||l.current.height!==x||l.current.offsetWidth!==b||l.current.offsetHeight!==v){const E={width:$,height:x,offsetWidth:b,offsetHeight:v};l.current=E;const C=b===Math.round(p)?p:b,T=v===Math.round(y)?y:v,M={...E,offsetWidth:C,offsetHeight:T};a?.(M,h),Promise.resolve().then(()=>{o?.(M,h)})}}),f=typeof t=="function",m=u.useRef(0);u.useEffect(()=>{const h=f?t():t;return h&&e?y4(h,c):e&&f&&(m.current+=1),()=>{h&&b4(h,c)}},[e,f?m.current:t])}function v4(e,t){const{children:o,disabled:a,onResize:l,data:c}=e,f=u.useRef(null),m=u.useContext(sg),h=typeof o=="function",p=h?o(f):o,y=!h&&u.isValidElement(p)&&il(p),b=y?Ja(p):null,v=ya(b,f),$=()=>th(f.current);return u.useImperativeHandle(t,()=>$()),RC(!a,$,l,(x,E)=>{m?.(x,E,c)}),y?u.cloneElement(p,{ref:v}):p}const S4=u.forwardRef(v4);function cg(){return cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},cg.apply(this,arguments)}const C4="rc-observer-key";function x4(e,t){const{children:o}=e;return(typeof o=="function"?[o]:br(o)).map((l,c)=>{const f=l?.key||`${C4}-${c}`;return u.createElement(S4,cg({},e,{key:f,ref:c===0?t:void 0}),l)})}const wo=u.forwardRef(x4);wo.Collection=p4;function NC(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(o=NC(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function W(){for(var e,t,o=0,a="",l=arguments.length;o<l;o++)(e=arguments[o])&&(t=NC(e))&&(a&&(a+=" "),a+=t);return a}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,a=Array(t);o<t;o++)a[o]=e[o];return a}function E4(e){if(Array.isArray(e))return ug(e)}function $4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zC(e,t){if(e){if(typeof e=="string")return ug(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ug(e,t):void 0}}function w4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sn(e){return E4(e)||$4(e)||zC(e)||w4()}let OC=e=>+setTimeout(e,16),AC=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(OC=e=>window.requestAnimationFrame(e),AC=e=>window.cancelAnimationFrame(e));let Yv=0;const nh=new Map;function _C(e){nh.delete(e)}const En=(e,t=1)=>{Yv+=1;const o=Yv;function a(l){if(l===0)_C(o),e();else{const c=OC(()=>{a(l-1)});nh.set(o,c)}}return a(t),o};En.cancel=e=>{const t=nh.get(e);return _C(e),AC(t)};const fg="ant",rh="anticon",T4=["outlined","borderless","filled","underlined"],M4=(e,t)=>t||(e?`${fg}-${e}`:fg),ut=u.createContext({getPrefixCls:M4,iconPrefixCls:rh}),{Consumer:X7}=ut,Kv={};function cn(e){const t=u.useContext(ut),{getPrefixCls:o,direction:a,getPopupContainer:l,renderEmpty:c}=t,f=t[e];return{classNames:Kv,styles:Kv,...f,getPrefixCls:o,direction:a,getPopupContainer:l,renderEmpty:c}}function vs(e){for(var t=0,o,a=0,l=e.length;l>=4;++a,l-=4)o=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&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 dg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}const kv="data-rc-order",Qv="data-rc-priority",R4="rc-util-key",mg=new Map;function BC({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:R4}function ku(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function N4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oh(e){return Array.from((mg.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function HC(e,t={}){if(!tr())return null;const{csp:o,prepend:a,priority:l=0}=t,c=N4(a),f=c==="prependQueue",m=document.createElement("style");m.setAttribute(kv,c),f&&l&&m.setAttribute(Qv,`${l}`),o?.nonce&&(m.nonce=o?.nonce),m.innerHTML=e;const h=ku(t),{firstChild:p}=h;if(a){if(f){const y=(t.styles||oh(h)).filter(b=>{if(!["prepend","prependQueue"].includes(b.getAttribute(kv)))return!1;const v=Number(b.getAttribute(Qv)||0);return l>=v});if(y.length)return h.insertBefore(m,y[y.length-1].nextSibling),m}h.insertBefore(m,p)}else h.appendChild(m);return m}function LC(e,t={}){let{styles:o}=t;return o||=oh(ku(t)),o.find(a=>a.getAttribute(BC(t))===e)}function Ss(e,t={}){const o=LC(e,t);o&&ku(t).removeChild(o)}function z4(e,t){const o=mg.get(e);if(!o||!dg(document,o)){const a=HC("",t),{parentNode:l}=a;mg.set(e,l),e.removeChild(a)}}function sa(e,t,o={}){const a=ku(o),l=oh(a),c={...o,styles:l};z4(a,c);const f=LC(t,c);if(f)return c.csp?.nonce&&f.nonce!==c.csp?.nonce&&(f.nonce=c.csp?.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;const m=HC(e,c);return m.setAttribute(BC(c),t),m}function Cs(e,t,o=!1){const a=new Set;function l(c,f,m=1){const h=a.has(c);if(qn(!h,"Warning: There may be circular references"),h)return!1;if(c===f)return!0;if(o&&m>1)return!1;a.add(c);const p=m+1;if(Array.isArray(c)){if(!Array.isArray(f)||c.length!==f.length)return!1;for(let y=0;y<c.length;y++)if(!l(c[y],f[y],p))return!1;return!0}if(c&&f&&typeof c=="object"&&typeof f=="object"){const y=Object.keys(c);return y.length!==Object.keys(f).length?!1:y.every(b=>l(c[b],f[b],p))}return!1}return l(e,t)}const O4="%";function gg(e){return e.join(O4)}let Zv=0;class A4{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(gg(t))}opGet(t){return this.cache.get(t)||null}update(t,o){return this.opUpdate(gg(t),o)}opUpdate(t,o){const a=this.cache.get(t),l=o(a);l===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,l),this.updateTimes.set(t,Zv),Zv+=1)}}const ah="data-token-hash",To="data-css-hash",Ka="__cssinjs_instance__";function _4(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${To}]`)||[],{firstChild:o}=document.head;Array.from(t).forEach(l=>{l[Ka]||=e,l[Ka]===e&&document.head.insertBefore(l,o)});const a={};Array.from(document.querySelectorAll(`style[${To}]`)).forEach(l=>{const c=l.getAttribute(To);a[c]?l[Ka]===e&&l.parentNode?.removeChild(l):a[c]=!0})}return new A4(e)}const _s=u.createContext({hashPriority:"low",cache:_4(),defaultCache:!0,autoPrefix:!1});function B4(e,t){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}class zu{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,o=!1){let a={map:this.cache};return t.forEach(l=>{a?a=a?.map?.get(l):a=void 0}),a?.value&&o&&(a.value[1]=this.cacheCallTimes++),a?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,o){if(!this.has(t)){if(this.size()+1>zu.MAX_CACHE_SIZE+zu.MAX_CACHE_OFFSET){const[l]=this.keys.reduce((c,f)=>{const[,m]=c;return this.internalGet(f)[1]<m?[f,this.internalGet(f)[1]]:c},[this.keys[0],this.cacheCallTimes]);this.delete(l)}this.keys.push(t)}let a=this.cache;t.forEach((l,c)=>{if(c===t.length-1)a.set(l,{value:[o,this.cacheCallTimes++]});else{const f=a.get(l);f?f.map||(f.map=new Map):a.set(l,{map:new Map}),a=a.get(l).map}})}deleteByPath(t,o){const a=t.get(o[0]);if(o.length===1)return a.map?t.set(o[0],{map:a.map}):t.delete(o[0]),a.value?.[0];const l=this.deleteByPath(a.map,o.slice(1));return(!a.map||a.map.size===0)&&!a.value&&t.delete(o[0]),l}delete(t){if(this.has(t))return this.keys=this.keys.filter(o=>!B4(o,t)),this.deleteByPath(this.cache,t)}}let Jv=0;class DC{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Jv,t.length===0&&(t.length>0,void 0),Jv+=1}getDerivativeToken(t){return this.derivatives.reduce((o,a)=>a(t,o),void 0)}}const wm=new zu;function pg(e){const t=Array.isArray(e)?e:[e];return wm.has(t)||wm.set(t,new DC(t)),wm.get(t)}const H4=new WeakMap,Tm={};function L4(e,t){let o=H4;for(let a=0;a<t.length;a+=1){const l=t[a];o.has(l)||o.set(l,new WeakMap),o=o.get(l)}return o.has(Tm)||o.set(Tm,e()),o.get(Tm)}const e1=new WeakMap;function ms(e){let t=e1.get(e)||"";return t||(Object.keys(e).forEach(o=>{const a=e[o];t+=o,a instanceof DC?t+=a.id:a&&typeof a=="object"?t+=ms(a):t+=a}),t=vs(t),e1.set(e,t)),t}function D4(e,t){return vs(`${t}_${ms(e)}`)}const hg=tr();function ae(e){return typeof e=="number"?`${e}px`:e}function PC(e){const{hashCls:t,hashPriority:o="low"}=e||{};if(!t)return"";const a=`.${t}`;return o==="low"?`:where(${a})`:a}const P4=e=>e!=null;function ih(e,t){const o=typeof t=="function"?t():t;return o?{...e,csp:{...e.csp,nonce:o}}:e}const Su=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),I4=(e,t,o)=>{const{hashCls:a,hashPriority:l="low",scope:c}=o||{};if(!Object.keys(e).length)return"";const f=`${PC({hashCls:a,hashPriority:l})}.${t}`,m=[c].flat().filter(Boolean);return`${m.length?m.map(p=>`${f}.${p}`).join(", "):f}{${Object.entries(e).map(([p,y])=>`${p}:${y};`).join("")}}`},IC=(e,t,o)=>{const{hashCls:a,hashPriority:l="low",prefix:c,unitless:f,ignore:m,preserve:h}=o||{},p={},y={};return Object.entries(e).forEach(([b,v])=>{if(h?.[b])y[b]=v;else if((typeof v=="string"||typeof v=="number")&&!m?.[b]){const $=Su(b,c);p[$]=typeof v=="number"&&!f?.[b]?`${v}px`:String(v),y[b]=`var(${$})`}}),[y,I4(p,t,{scope:o?.scope,hashCls:a,hashPriority:l})]},au=new Map;function lh(e,t,o,a,l){const{cache:c}=u.useContext(_s),f=[e,...t],m=gg(f),h=b=>{c.opUpdate(m,v=>{const[$=0,x]=v||[void 0,void 0],C=x||o(),T=[$,C];return b?b(T):T})};u.useMemo(()=>{h()},[m]);const y=c.opGet(m)[1];return u.useInsertionEffect(()=>(h(([b,v])=>[b+1,v]),au.has(m)||(l?.(y),au.set(m,!0),Promise.resolve().then(()=>{au.delete(m)})),()=>{c.opUpdate(m,b=>{const[v=0,$]=b||[];return v-1===0?(a?.($,!1),au.delete(m),null):[v-1,$]})}),[m]),y}const j4={},V4="css",qa=new Map;function F4(e){qa.set(e,(qa.get(e)||0)+1)}function q4(e,t){typeof document<"u"&&document.querySelectorAll(`style[${ah}="${e}"]`).forEach(a=>{a[Ka]===t&&a.parentNode?.removeChild(a)})}const U4=-1;function G4(e,t){qa.set(e,(qa.get(e)||0)-1);const o=new Set;qa.forEach((a,l)=>{a<=0&&o.add(l)}),qa.size-o.size>U4&&o.forEach(a=>{q4(a,t),qa.delete(a)})}const X4=(e,t,o,a)=>{let c={...o.getDerivativeToken(e),...t};return a&&(c=a(c)),c},W4="token";function Y4(e,t,o){const{cache:{instanceId:a},container:l,hashPriority:c}=u.useContext(_s),{salt:f="",override:m=j4,formatToken:h,getComputedToken:p,cssVar:y,nonce:b}=o,v=L4(()=>Object.assign({},...t),t),$=ms(v),x=ms(m),E=ms(y);return lh(W4,[f,e.id,$,x,E],()=>{const T=p?p(v,m,e):X4(v,m,e,h),M={...T},w=`${f}_${y.prefix}`,N=vs(w),R=`${V4}-${N}`;M._tokenKey=D4(M,w);const[_,z]=IC(T,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve,hashPriority:c,hashCls:y.hashed?R:void 0});return _._hashId=N,F4(y.key),[_,R,M,z,y.key]},([,,,,T])=>{G4(T,a)},([,,,T,M])=>{if(!T)return;let w={mark:To,prepend:"queue",attachTo:l,priority:-999};w=ih(w,b);const N=sa(T,vs(`css-var-${M}`),w);N[Ka]=a,N.setAttribute(ah,M)})}var K4={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},Qt="-ms-",gs="-moz-",$t="-webkit-",jC="comm",sh="rule",ch="decl",k4="@import",Q4="@namespace",VC="@keyframes",Z4="@layer",FC=Math.abs,uh=String.fromCharCode,yg=Object.assign;function J4(e,t){return Mn(e,0)^45?(((t<<2^Mn(e,0))<<2^Mn(e,1))<<2^Mn(e,2))<<2^Mn(e,3):0}function qC(e){return e.trim()}function $o(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,o){return e.replace(t,o)}function Cu(e,t,o){return e.indexOf(t,o)}function Mn(e,t){return e.charCodeAt(t)|0}function Qa(e,t,o){return e.slice(t,o)}function Fr(e){return e.length}function UC(e){return e.length}function ss(e,t){return t.push(e),e}function e3(e,t){return e.map(t).join("")}function t1(e,t){return e.filter(function(o){return!$o(o,t)})}var Qu=1,nl=1,GC=0,Br=0,Cn=0,ll="";function Zu(e,t,o,a,l,c,f,m){return{value:e,root:t,parent:o,type:a,props:l,children:c,line:Qu,column:nl,length:f,return:"",siblings:m}}function ta(e,t){return yg(Zu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Li(e){for(;e.root;)e=ta(e.root,{children:[e]});ss(e,e.siblings)}function t3(){return Cn}function n3(){return Cn=Br>0?Mn(ll,--Br):0,nl--,Cn===10&&(nl=1,Qu--),Cn}function Gr(){return Cn=Br<GC?Mn(ll,Br++):0,nl++,Cn===10&&(nl=1,Qu++),Cn}function ia(){return Mn(ll,Br)}function xu(){return Br}function Ju(e,t){return Qa(ll,e,t)}function xs(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 r3(e){return Qu=nl=1,GC=Fr(ll=e),Br=0,[]}function o3(e){return ll="",e}function Mm(e){return qC(Ju(Br-1,bg(e===91?e+2:e===40?e+1:e)))}function a3(e){for(;(Cn=ia())&&Cn<33;)Gr();return xs(e)>2||xs(Cn)>3?"":" "}function i3(e,t){for(;--t&&Gr()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return Ju(e,xu()+(t<6&&ia()==32&&Gr()==32))}function bg(e){for(;Gr();)switch(Cn){case e:return Br;case 34:case 39:e!==34&&e!==39&&bg(Cn);break;case 40:e===41&&bg(e);break;case 92:Gr();break}return Br}function l3(e,t){for(;Gr()&&e+Cn!==57;)if(e+Cn===84&&ia()===47)break;return"/*"+Ju(t,Br-1)+"*"+uh(e===47?e:Gr())}function s3(e){for(;!xs(ia());)Gr();return Ju(e,Br)}function n1(e){return o3(Eu("",null,null,null,[""],e=r3(e),0,[0],e))}function Eu(e,t,o,a,l,c,f,m,h){for(var p=0,y=0,b=f,v=0,$=0,x=0,E=1,C=1,T=1,M=0,w="",N=l,R=c,_=a,z=w;C;)switch(x=M,M=Gr()){case 40:if(x!=108&&Mn(z,b-1)==58){Cu(z+=nt(Mm(M),"&","&\f"),"&\f",FC(p?m[p-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:z+=Mm(M);break;case 9:case 10:case 13:case 32:z+=a3(x);break;case 92:z+=i3(xu()-1,7);continue;case 47:switch(ia()){case 42:case 47:ss(c3(l3(Gr(),xu()),t,o,h),h),(xs(x||1)==5||xs(ia()||1)==5)&&Fr(z)&&Qa(z,-1,void 0)!==" "&&(z+=" ");break;default:z+="/"}break;case 123*E:m[p++]=Fr(z)*T;case 125*E:case 59:case 0:switch(M){case 0:case 125:C=0;case 59+y:T==-1&&(z=nt(z,/\f/g,"")),$>0&&(Fr(z)-b||E===0&&x===47)&&ss($>32?o1(z+";",a,o,b-1,h):o1(nt(z," ","")+";",a,o,b-2,h),h);break;case 59:z+=";";default:if(ss(_=r1(z,t,o,p,y,l,m,w,N=[],R=[],b,c),c),M===123)if(y===0)Eu(z,t,_,_,N,c,b,m,R);else{switch(v){case 99:if(Mn(z,3)===110)break;case 108:if(Mn(z,2)===97)break;default:y=0;case 100:case 109:case 115:}y?Eu(e,_,_,a&&ss(r1(e,_,_,0,0,l,m,w,l,N=[],b,R),R),l,R,b,m,a?N:R):Eu(z,_,_,_,[""],R,0,m,R)}}p=y=$=0,E=T=1,w=z="",b=f;break;case 58:b=1+Fr(z),$=x;default:if(E<1){if(M==123)--E;else if(M==125&&E++==0&&n3()==125)continue}switch(z+=uh(M),M*E){case 38:T=y>0?1:(z+="\f",-1);break;case 44:m[p++]=(Fr(z)-1)*T,T=1;break;case 64:ia()===45&&(z+=Mm(Gr())),v=ia(),y=b=Fr(w=z+=s3(xu())),M++;break;case 45:x===45&&Fr(z)==2&&(E=0)}}return c}function r1(e,t,o,a,l,c,f,m,h,p,y,b){for(var v=l-1,$=l===0?c:[""],x=UC($),E=0,C=0,T=0;E<a;++E)for(var M=0,w=Qa(e,v+1,v=FC(C=f[E])),N=e;M<x;++M)(N=qC(C>0?$[M]+" "+w:nt(w,/&\f/g,$[M])))&&(h[T++]=N);return Zu(e,t,o,l===0?sh:m,h,p,y,b)}function c3(e,t,o,a){return Zu(e,t,o,jC,uh(t3()),Qa(e,2,-2),0,a)}function o1(e,t,o,a,l){return Zu(e,t,o,ch,Qa(e,0,a),Qa(e,a+1,-1),a,l)}function XC(e,t,o){switch(J4(e,t)){case 5103:return $t+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return $t+e+e;case 4855:return $t+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return gs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $t+e+gs+e+Qt+e+e;case 5936:switch(Mn(e,t+11)){case 114:return $t+e+Qt+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+Qt+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+Qt+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $t+e+Qt+e+e;case 6165:return $t+e+Qt+"flex-"+e+e;case 5187:return $t+e+nt(e,/(\w+).+(:[^]+)/,$t+"box-$1$2"+Qt+"flex-$1$2")+e;case 5443:return $t+e+Qt+"flex-item-"+nt(e,/flex-|-self/g,"")+($o(e,/flex-|baseline/)?"":Qt+"grid-row-"+nt(e,/flex-|-self/g,""))+e;case 4675:return $t+e+Qt+"flex-line-pack"+nt(e,/align-content|flex-|-self/g,"")+e;case 5548:return $t+e+Qt+nt(e,"shrink","negative")+e;case 5292:return $t+e+Qt+nt(e,"basis","preferred-size")+e;case 6060:return $t+"box-"+nt(e,"-grow","")+$t+e+Qt+nt(e,"grow","positive")+e;case 4554:return $t+nt(e,/([^-])(transform)/g,"$1"+$t+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,$t+"$1"),/(image-set)/,$t+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,$t+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,$t+"box-pack:$3"+Qt+"flex-pack:$3"),/space-between/,"justify")+$t+e+e;case 4200:if(!$o(e,/flex-|baseline/))return Qt+"grid-column-align"+Qa(e,t)+e;break;case 2592:case 3360:return Qt+nt(e,"template-","")+e;case 4384:case 3616:return o&&o.some(function(a,l){return t=l,$o(a.props,/grid-\w+-end/)})?~Cu(e+(o=o[t].value),"span",0)?e:Qt+nt(e,"-start","")+e+Qt+"grid-row-span:"+(~Cu(o,"span",0)?$o(o,/\d+/):+$o(o,/\d+/)-+$o(e,/\d+/))+";":Qt+nt(e,"-start","")+e;case 4896:case 4128:return o&&o.some(function(a){return $o(a.props,/grid-\w+-start/)})?e:Qt+nt(nt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,$t+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fr(e)-1-t>6)switch(Mn(e,t+1)){case 109:if(Mn(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+gs+(Mn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cu(e,"stretch",0)?XC(nt(e,"stretch","fill-available"),t,o)+e:e}break;case 5152:case 5920:return nt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(a,l,c,f,m,h,p){return Qt+l+":"+c+p+(f?Qt+l+"-span:"+(m?h:+h-+c)+p:"")+e});case 4949:if(Mn(e,t+6)===121)return nt(e,":",":"+$t)+e;break;case 6444:switch(Mn(e,Mn(e,14)===45?18:11)){case 120:return nt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$t+(Mn(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+Qt+"$2box$3")+e;case 100:return nt(e,":",":"+Qt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nt(e,"scroll-","scroll-snap-")+e}return e}function Es(e,t){for(var o="",a=0;a<e.length;a++)o+=t(e[a],a,e,t)||"";return o}function a1(e,t,o,a){switch(e.type){case Z4:if(e.children.length)break;case k4:case Q4:case ch:return e.return=e.return||e.value;case jC:return"";case VC:return e.return=e.value+"{"+Es(e.children,a)+"}";case sh:if(!Fr(e.value=e.props.join(",")))return""}return Fr(o=Es(e.children,a))?e.return=e.value+"{"+o+"}":""}function u3(e){var t=UC(e);return function(o,a,l,c){for(var f="",m=0;m<t;m++)f+=e[m](o,a,l,c)||"";return f}}function f3(e,t,o,a){if(e.length>-1&&!e.return)switch(e.type){case ch:e.return=XC(e.value,e.length,o);return;case VC:return Es([ta(e,{value:nt(e.value,"@","@"+$t)})],a);case sh:if(e.length)return e3(o=e.props,function(l){switch($o(l,a=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Li(ta(e,{props:[nt(l,/:(read-\w+)/,":"+gs+"$1")]})),Li(ta(e,{props:[l]})),yg(e,{props:t1(o,a)});break;case"::placeholder":Li(ta(e,{props:[nt(l,/:(plac\w+)/,":"+$t+"input-$1")]})),Li(ta(e,{props:[nt(l,/:(plac\w+)/,":"+gs+"$1")]})),Li(ta(e,{props:[nt(l,/:(plac\w+)/,Qt+"input-$1")]})),Li(ta(e,{props:[l]})),yg(e,{props:t1(o,a)});break}return""})}}const i1="data-ant-cssinjs-cache-path",WC="_FILE_STYLE__";let ka,YC=!0;function d3(){if(!ka&&(ka={},tr())){const e=document.createElement("div");e.className=i1,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(a=>{const[l,c]=a.split(":");ka[l]=c});const o=document.querySelector(`style[${i1}]`);o&&(YC=!1,o.parentNode?.removeChild(o)),document.body.removeChild(e)}}function m3(e){return d3(),!!ka[e]}function g3(e){const t=ka[e];let o=null;if(t&&tr())if(YC)o=WC;else{const a=document.querySelector(`style[${To}="${ka[e]}"]`);a?o=a.innerHTML:delete ka[e]}return[o,t]}const p3="_skip_check_",KC="_multi_value_";function Rm(e,t){return(t?Es(n1(e),u3([f3,a1])):Es(n1(e),a1)).replace(/\{%%%\:[^;];}/g,";")}function h3(e){return typeof e=="object"&&e&&(p3 in e||KC in e)}function l1(e,t,o="high"){if(!t)return e;const a=PC({hashCls:t,hashPriority:o});return e.split(",").map(c=>{const f=c.trim().split(/\s+/);let m=f[0]||"";const h=m.match(/^\w+/)?.[0]||"";return m=`${h}${a}${m.slice(h.length)}`,[m,...f.slice(1)].join(" ")}).join(",")}const vg=(e,t={},{root:o,injectHash:a,parentSelectors:l}={root:!0,parentSelectors:[]})=>{const{hashId:c,layer:f,path:m,hashPriority:h,transformers:p=[],linters:y=[]}=t;let b="",v={};function $(C){const T=C.getName(c);if(!v[T]){const[M]=vg(C.style,t,{root:!1,parentSelectors:l});v[T]=`@keyframes ${C.getName(c)}${M}`}}function x(C,T=[]){return C.forEach(M=>{Array.isArray(M)?x(M,T):M&&T.push(M)}),T}return x(Array.isArray(e)?e:[e]).forEach(C=>{const T=typeof C=="string"&&!o?{}:C;if(typeof T=="string")b+=`${T}
11
+ `;else if(T._keyframe)$(T);else{const M=p.reduce((w,N)=>N?.visit?.(w)||w,T);Object.keys(M).forEach(w=>{const N=M[w];if(typeof N=="object"&&N&&(w!=="animationName"||!N._keyframe)&&!h3(N)){let R=!1,_=w.trim(),z=!1;(o||a)&&c?_.startsWith("@")?R=!0:_==="&"?_=l1("",c,h):_=l1(w,c,h):o&&!c&&(_==="&"||_==="")&&(_="",z=!0);const[B,H]=vg(N,t,{root:z,injectHash:R,parentSelectors:[...l,_]});v={...v,...H},b+=`${_}${B}`}else{let R=function(z,B){const H=z.replace(/[A-Z]/g,L=>`-${L.toLowerCase()}`);let I=B;!K4[z]&&typeof I=="number"&&I!==0&&(I=`${I}px`),z==="animationName"&&B?._keyframe&&($(B),I=B.getName(c)),b+=`${H}:${I};`};const _=N?.value??N;typeof N=="object"&&N?.[KC]&&Array.isArray(_)?_.forEach(z=>{R(w,z)}):P4(_)&&R(w,_)}})}}),o?f&&(b&&(b=`@layer ${f.name} {${b}}`),f.dependencies&&(v[`@layer ${f.name}`]=f.dependencies.map(C=>`@layer ${C}, ${f.name};`).join(`
12
+ `))):b=`{${b}}`,[b,v]};function kC(e,t){return vs(`${e.join("%")}${t}`)}const y3="style";function Sg(e,t){const{path:o,hashId:a,layer:l,nonce:c,clientOnly:f,order:m=0}=e,{mock:h,hashPriority:p,container:y,transformers:b,linters:v,cache:$,layer:x,autoPrefix:E}=u.useContext(_s),C=[a||""];x&&C.push("layer"),C.push(...o);let T=hg;lh(y3,C,()=>{const M=C.join("|");if(m3(M)){const[B,H]=g3(M);if(B)return[B,H,{},f,m]}const w=t(),[N,R]=vg(w,{hashId:a,hashPriority:p,layer:x?l:void 0,path:o.join("-"),transformers:b,linters:v}),_=Rm(N,E||!1),z=kC(C,_);return[_,z,R,f,m]},(M,w)=>{const[,N]=M;w&&hg&&Ss(N,{mark:To,attachTo:y})},M=>{const[w,N,R,,_]=M;if(T&&w!==WC){let z={mark:To,prepend:x?!1:"queue",attachTo:y,priority:_};z=ih(z,c);const B=[],H=[];Object.keys(R).forEach(L=>{L.startsWith("@layer")?B.push(L):H.push(L)}),B.forEach(L=>{sa(Rm(R[L],E||!1),`_layer-${L}`,{...z,prepend:!0})});const I=sa(w,N,z);I[Ka]=$.instanceId,H.forEach(L=>{sa(Rm(R[L],E||!1),`_effect-${L}`,z)})}})}const b3="cssVar",v3=(e,t)=>{const{key:o,prefix:a,unitless:l,ignore:c,token:f,hashId:m,scope:h,nonce:p}=e,{cache:{instanceId:y},container:b,hashPriority:v}=u.useContext(_s),{_tokenKey:$}=f,x=Array.isArray(h)?h.join("@@"):h,E=[...e.path,o,x,$];return lh(b3,E,()=>{const T=t(),[M,w]=IC(T,o,{prefix:a,unitless:l,ignore:c,scope:h,hashPriority:v,hashCls:m}),N=kC(E,w);return[M,w,N,o]},([,,T])=>{hg&&Ss(T,{mark:To,attachTo:b})},([,T,M])=>{if(!T)return;let w={mark:To,prepend:"queue",attachTo:b,priority:-999};w=ih(w,p);const N=sa(T,M,w);N[Ka]=y,N.setAttribute(ah,o)})};class Mt{name;style;constructor(t,o){this.name=t,this.style=o}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Di(e){return e.notSplit=!0,e}Di(["borderTop","borderBottom"]),Di(["borderTop"]),Di(["borderBottom"]),Di(["borderLeft","borderRight"]),Di(["borderLeft"]),Di(["borderRight"]);function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function S3(e){if(Array.isArray(e))return e}function C3(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a,l,c,f,m=[],h=!0,p=!1;try{if(c=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;h=!1}else for(;!(h=(a=c.call(o)).done)&&(m.push(a.value),m.length!==t);h=!0);}catch(y){p=!0,l=y}finally{try{if(!h&&o.return!=null&&(f=o.return(),Object(f)!==f))return}finally{if(p)throw l}}return m}}function x3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QC(e,t){return S3(e)||C3(e,t)||zC(e,t)||x3()}function E3(e,t){if(xn(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,t);if(xn(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZC(e){var t=E3(e,"string");return xn(t)=="symbol"?t:t+""}function _n(e,t,o){return(t=ZC(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function s1(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),o.push.apply(o,a)}return o}function ln(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?s1(Object(o),!0).forEach(function(a){_n(e,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s1(Object(o)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(o,a))})}return e}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $3(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ZC(a.key),a)}}function cl(e,t,o){return t&&$3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},$s(e,t)}function JC(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&&$s(e,t)}function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ws(e)}function fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fh=function(){return!!e})()}function w3(e,t){if(t&&(xn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zi(e)}function ex(e){var t=fh();return function(){var o,a=ws(e);if(t){var l=ws(this).constructor;o=Reflect.construct(a,arguments,l)}else o=a.apply(this,arguments);return w3(this,o)}}var T3=cl(function e(){sl(this,e)}),tx="CALC_UNIT",M3=new RegExp(tx,"g");function Nm(e){return typeof e=="number"?"".concat(e).concat(tx):e}var R3=(function(e){JC(o,e);var t=ex(o);function o(a,l){var c;sl(this,o),c=t.call(this),_n(Zi(c),"result",""),_n(Zi(c),"unitlessCssVar",void 0),_n(Zi(c),"lowPriority",void 0);var f=xn(a);return c.unitlessCssVar=l,a instanceof o?c.result="(".concat(a.result,")"):f==="number"?c.result=Nm(a):f==="string"&&(c.result=a),c}return cl(o,[{key:"add",value:function(l){return l instanceof o?this.result="".concat(this.result," + ").concat(l.getResult()):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," + ").concat(Nm(l))),this.lowPriority=!0,this}},{key:"sub",value:function(l){return l instanceof o?this.result="".concat(this.result," - ").concat(l.getResult()):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," - ").concat(Nm(l))),this.lowPriority=!0,this}},{key:"mul",value:function(l){return this.lowPriority&&(this.result="(".concat(this.result,")")),l instanceof o?this.result="".concat(this.result," * ").concat(l.getResult(!0)):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," * ").concat(l)),this.lowPriority=!1,this}},{key:"div",value:function(l){return this.lowPriority&&(this.result="(".concat(this.result,")")),l instanceof o?this.result="".concat(this.result," / ").concat(l.getResult(!0)):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," / ").concat(l)),this.lowPriority=!1,this}},{key:"getResult",value:function(l){return this.lowPriority||l?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(l){var c=this,f=l||{},m=f.unit,h=!0;return typeof m=="boolean"?h=m:Array.from(this.unitlessCssVar).some(function(p){return c.result.includes(p)})&&(h=!1),this.result=this.result.replace(M3,h?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),o})(T3),N3=function(t,o){var a=R3;return function(l){return new a(l,o)}},c1=function(t,o){return"".concat([o,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function u1(e,t,o,a){var l=ln({},t[e]);if(a!=null&&a.deprecatedTokens){var c=a.deprecatedTokens;c.forEach(function(m){var h=QC(m,2),p=h[0],y=h[1];if(l!=null&&l[p]||l!=null&&l[y]){var b;(b=l[y])!==null&&b!==void 0||(l[y]=l?.[p])}})}var f=ln(ln({},o),l);return Object.keys(f).forEach(function(m){f[m]===t[m]&&delete f[m]}),f}var nx=typeof CSSINJS_STATISTIC<"u",Cg=!0;function qt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(!nx)return Object.assign.apply(Object,[{}].concat(t));Cg=!1;var a={};return t.forEach(function(l){if(xn(l)==="object"){var c=Object.keys(l);c.forEach(function(f){Object.defineProperty(a,f,{configurable:!0,enumerable:!0,get:function(){return l[f]}})})}}),Cg=!0,a}var f1={};function z3(){}var O3=function(t){var o,a=t,l=z3;return nx&&typeof Proxy<"u"&&(o=new Set,a=new Proxy(t,{get:function(f,m){if(Cg){var h;(h=o)===null||h===void 0||h.add(m)}return f[m]}}),l=function(f,m){var h;f1[f]={global:Array.from(o),component:ln(ln({},(h=f1[f])===null||h===void 0?void 0:h.component),m)}}),{token:a,keys:o,flush:l}};function d1(e,t,o){if(typeof o=="function"){var a;return o(qt(t,(a=t[e])!==null&&a!==void 0?a:{}))}return o??{}}function A3(e){return{max:function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return"max(".concat(a.map(function(c){return ae(c)}).join(","),")")},min:function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return"min(".concat(a.map(function(c){return ae(c)}).join(","),")")}}}var _3=1e3*60*10,B3=(function(){function e(){sl(this,e),_n(this,"map",new Map),_n(this,"objectIDMap",new WeakMap),_n(this,"nextID",0),_n(this,"lastAccessBeat",new Map),_n(this,"accessBeat",0)}return cl(e,[{key:"set",value:function(o,a){this.clear();var l=this.getCompositeKey(o);this.map.set(l,a),this.lastAccessBeat.set(l,Date.now())}},{key:"get",value:function(o){var a=this.getCompositeKey(o),l=this.map.get(a);return this.lastAccessBeat.set(a,Date.now()),this.accessBeat+=1,l}},{key:"getCompositeKey",value:function(o){var a=this,l=o.map(function(c){return c&&xn(c)==="object"?"obj_".concat(a.getObjectID(c)):"".concat(xn(c),"_").concat(c)});return l.join("|")}},{key:"getObjectID",value:function(o){if(this.objectIDMap.has(o))return this.objectIDMap.get(o);var a=this.nextID;return this.objectIDMap.set(o,a),this.nextID+=1,a}},{key:"clear",value:function(){var o=this;if(this.accessBeat>1e4){var a=Date.now();this.lastAccessBeat.forEach(function(l,c){a-l>_3&&(o.map.delete(c),o.lastAccessBeat.delete(c))}),this.accessBeat=0}}}]),e})(),m1=new B3;function H3(e,t){return te.useMemo(function(){var o=m1.get(t);if(o)return o;var a=e();return m1.set(t,a),a},t)}var L3=function(){return{}};function D3(e){var t=e.useCSP,o=t===void 0?L3:t,a=e.useToken,l=e.usePrefix,c=e.getResetStyles,f=e.getCommonStyle,m=e.getCompUnitless;function h(v,$,x,E){var C=Array.isArray(v)?v[0]:v;function T(B){return"".concat(String(C)).concat(B.slice(0,1).toUpperCase()).concat(B.slice(1))}var M=E?.unitless||{},w=typeof m=="function"?m(v):{},N=ln(ln({},w),{},_n({},T("zIndexPopup"),!0));Object.keys(M).forEach(function(B){N[T(B)]=M[B]});var R=ln(ln({},E),{},{unitless:N,prefixToken:T}),_=y(v,$,x,R),z=p(C,x,R);return function(B){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B,I=_(B,H),L=E?.extraCssVarPrefixCls,V=typeof L=="function"?L({prefixCls:B,rootCls:H}):L,k=z(V!=null&&V.length?[H].concat(sn(V)):H);return[I,k]}}function p(v,$,x){var E=x.unitless,C=x.prefixToken,T=x.ignore;return function(M){var w=a(),N=w.cssVar,R=w.realToken,_=o();return v3({path:[v],prefix:N.prefix,key:N.key,unitless:E,ignore:T,token:R,scope:M,nonce:function(){return _.nonce}},function(){var z=d1(v,R,$),B=u1(v,R,z,{deprecatedTokens:x?.deprecatedTokens});return z&&Object.keys(z).forEach(function(H){B[C(H)]=B[H],delete B[H]}),B}),N?.key}}function y(v,$,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(v)?v:[v,v],T=QC(C,1),M=T[0],w=C.join("-"),N=e.layer||{name:"antd"};return function(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,z=a(),B=z.theme,H=z.realToken,I=z.hashId,L=z.token,V=z.cssVar,k=z.zeroRuntime,U=u.useMemo(function(){return k},[]);if(U)return I;var F=l(),P=F.rootPrefixCls,q=F.iconPrefixCls,G=o(),Y="css",Z=H3(function(){var ee=new Set;return Object.keys(E.unitless||{}).forEach(function(ie){ee.add(Su(ie,V.prefix)),ee.add(Su(ie,c1(M,V.prefix)))}),N3(Y,ee)},[Y,M,V?.prefix]),A=A3(),D=A.max,K=A.min,Q={theme:B,token:L,hashId:I,nonce:function(){return G.nonce},clientOnly:E.clientOnly,layer:N,order:E.order||-999};return typeof c=="function"&&Sg(ln(ln({},Q),{},{clientOnly:!1,path:["Shared",P]}),function(){return c(L,{prefix:{rootPrefixCls:P,iconPrefixCls:q},csp:G})}),Sg(ln(ln({},Q),{},{path:[w,R,q]}),function(){if(E.injectStyle===!1)return[];var ee=O3(L),ie=ee.token,le=ee.flush,de=d1(M,H,x),ye=".".concat(R),ve=u1(M,H,de,{deprecatedTokens:E.deprecatedTokens});de&&xn(de)==="object"&&Object.keys(de).forEach(function(me){de[me]="var(".concat(Su(me,c1(M,V.prefix)),")")});var we=qt(ie,{componentCls:ye,prefixCls:R,iconCls:".".concat(q),antCls:".".concat(P),calc:Z,max:D,min:K},de),be=$(we,{hashId:I,prefixCls:R,rootPrefixCls:P,iconPrefixCls:q});le(M,ve);var Se=typeof f=="function"?f(we,R,_,E.resetFont):null;return[E.resetStyle===!1?null:Se,be]}),I}}function b(v,$,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=y(v,$,x,ln({resetStyle:!1,order:-998},E)),T=function(w){var N=w.prefixCls,R=w.rootCls,_=R===void 0?N:R;return C(N,_),null};return T}return{genStyleHooks:h,genSubStyleComponent:b,genComponentStyleHook:y}}const Mo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function $u(e){return(e+8)/e}function P3(e){const t=Array.from({length:10}).map((o,a)=>{const l=a-1,c=e*Math.E**(l/5),f=a>1?Math.floor(c):Math.ceil(c);return Math.floor(f/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:$u(o)}))}const I3="6.3.4",dh={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"},Ts={...dh,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
14
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
15
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},j3={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"},An=Math.round;function zm(e,t){const o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],a=o.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)a[l]=t(a[l]||0,o[l]||"",l);return o[3]?a[3]=o[3].includes("%")?a[3]/100:a[3]:a[3]=1,a}const g1=(e,t,o)=>o===0?e:e/100;function ns(e,t){const o=t||255;return e>o?o:e<0?0:e}class zt{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function o(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let c=function(f){return l.startsWith(f)};var a=c;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(c("rgb"))this.fromRgbString(l);else if(c("hsl"))this.fromHslString(l);else if(c("hsv")||c("hsb"))this.fromHsvString(l);else{const f=j3[l.toLowerCase()];f&&this.fromHexString(parseInt(f,36).toString(16).padStart(6,"0"))}}else if(t instanceof zt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(o("rgb"))this.r=ns(t.r),this.g=ns(t.g),this.b=ns(t.b),this.a=typeof t.a=="number"?ns(t.a,1):1;else if(o("hsl"))this.fromHsl(t);else if(o("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 o=this.toHsv();return o.h=t,this._c(o)}getLuminance(){function t(c){const f=c/255;return f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)}const o=t(this.r),a=t(this.g),l=t(this.b);return .2126*o+.7152*a+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=An(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const o=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*o-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const o=this.getHue(),a=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:o,s:a,l,a:this.a})}lighten(t=10){const o=this.getHue(),a=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:o,s:a,l,a:this.a})}mix(t,o=50){const a=this._c(t),l=o/100,c=m=>(a[m]-this[m])*l+this[m],f={r:An(c("r")),g:An(c("g")),b:An(c("b")),a:An(c("a")*100)/100};return this._c(f)}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 o=this._c(t),a=this.a+o.a*(1-this.a),l=c=>An((this[c]*this.a+o[c]*o.a*(1-this.a))/a);return this._c({r:l("r"),g:l("g"),b:l("b"),a})}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 o=(this.r||0).toString(16);t+=o.length===2?o:"0"+o;const a=(this.g||0).toString(16);t+=a.length===2?a:"0"+a;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const c=An(this.a*255).toString(16);t+=c.length===2?c:"0"+c}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),o=An(this.getHSLSaturation()*100),a=An(this.getLightness()*100);return this.a!==1?`hsla(${t},${o}%,${a}%,${this.a})`:`hsl(${t},${o}%,${a}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,o,a){const l=this.clone();return l[t]=ns(o,a),l}_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 o=t.replace("#","");function a(l,c){return parseInt(o[l]+o[c||l],16)}o.length<6?(this.r=a(0),this.g=a(1),this.b=a(2),this.a=o[3]?a(3)/255:1):(this.r=a(0,1),this.g=a(2,3),this.b=a(4,5),this.a=o[6]?a(6,7)/255:1)}fromHsl({h:t,s:o,l:a,a:l}){const c=(t%360+360)%360;if(this._h=c,this._hsl_s=o,this._l=a,this.a=typeof l=="number"?l:1,o<=0){const $=An(a*255);this.r=$,this.g=$,this.b=$;return}let f=0,m=0,h=0;const p=c/60,y=(1-Math.abs(2*a-1))*o,b=y*(1-Math.abs(p%2-1));p>=0&&p<1?(f=y,m=b):p>=1&&p<2?(f=b,m=y):p>=2&&p<3?(m=y,h=b):p>=3&&p<4?(m=b,h=y):p>=4&&p<5?(f=b,h=y):p>=5&&p<6&&(f=y,h=b);const v=a-y/2;this.r=An((f+v)*255),this.g=An((m+v)*255),this.b=An((h+v)*255)}fromHsv({h:t,s:o,v:a,a:l}){const c=(t%360+360)%360;this._h=c,this._hsv_s=o,this._v=a,this.a=typeof l=="number"?l:1;const f=An(a*255);if(this.r=f,this.g=f,this.b=f,o<=0)return;const m=c/60,h=Math.floor(m),p=m-h,y=An(a*(1-o)*255),b=An(a*(1-o*p)*255),v=An(a*(1-o*(1-p))*255);switch(h){case 0:this.g=v,this.b=y;break;case 1:this.r=b,this.b=y;break;case 2:this.r=y,this.b=v;break;case 3:this.r=y,this.g=b;break;case 4:this.r=v,this.g=y;break;default:this.g=y,this.b=b;break}}fromHsvString(t){const o=zm(t,g1);this.fromHsv({h:o[0],s:o[1],v:o[2],a:o[3]})}fromHslString(t){const o=zm(t,g1);this.fromHsl({h:o[0],s:o[1],l:o[2],a:o[3]})}fromRgbString(t){const o=zm(t,(a,l)=>l.includes("%")?An(a/100*255):a);this.r=o[0],this.g=o[1],this.b=o[2],this.a=o[3]}}const iu=2,p1=.16,V3=.05,F3=.05,q3=.15,rx=5,ox=4,U3=[{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 h1(e,t,o){let a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=o?Math.round(e.h)-iu*t:Math.round(e.h)+iu*t:a=o?Math.round(e.h)+iu*t:Math.round(e.h)-iu*t,a<0?a+=360:a>=360&&(a-=360),a}function y1(e,t,o){if(e.h===0&&e.s===0)return e.s;let a;return o?a=e.s-p1*t:t===ox?a=e.s+p1:a=e.s+V3*t,a>1&&(a=1),o&&t===rx&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(a*100)/100}function b1(e,t,o){let a;return o?a=e.v+F3*t:a=e.v-q3*t,a=Math.max(0,Math.min(1,a)),Math.round(a*100)/100}function Bs(e,t={}){const o=[],a=new zt(e),l=a.toHsv();for(let c=rx;c>0;c-=1){const f=new zt({h:h1(l,c,!0),s:y1(l,c,!0),v:b1(l,c,!0)});o.push(f)}o.push(a);for(let c=1;c<=ox;c+=1){const f=new zt({h:h1(l,c),s:y1(l,c),v:b1(l,c)});o.push(f)}return t.theme==="dark"?U3.map(({index:c,amount:f})=>new zt(t.backgroundColor||"#141414").mix(o[c],f).toHexString()):o.map(c=>c.toHexString())}const Om={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"},xg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];xg.primary=xg[5];const Eg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Eg.primary=Eg[5];const $g=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$g.primary=$g[5];const Ou=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ou.primary=Ou[5];const wg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];wg.primary=wg[5];const Tg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Tg.primary=Tg[5];const Mg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Mg.primary=Mg[5];const Rg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Rg.primary=Rg[5];const Au=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Au.primary=Au[5];const Ng=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ng.primary=Ng[5];const zg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zg.primary=zg[5];const Og=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Og.primary=Og[5];const Ag=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ag.primary=Ag[5];const Am={red:xg,volcano:Eg,orange:$g,gold:Ou,yellow:wg,lime:Tg,green:Mg,cyan:Rg,blue:Au,geekblue:Ng,purple:zg,magenta:Og,grey:Ag};function ax(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){const{colorSuccess:a,colorWarning:l,colorError:c,colorInfo:f,colorPrimary:m,colorBgBase:h,colorTextBase:p}=e,y=t(m),b=t(a),v=t(l),$=t(c),x=t(f),E=o(h,p),C=e.colorLink||e.colorInfo,T=t(C),M=new zt($[1]).mix(new zt($[3]),50).toHexString(),w={};return Mo.forEach(N=>{const R=e[N];if(R){const _=t(R);w[`${N}Hover`]=_[5],w[`${N}Active`]=_[7]}}),{...E,colorPrimaryBg:y[1],colorPrimaryBgHover:y[2],colorPrimaryBorder:y[3],colorPrimaryBorderHover:y[4],colorPrimaryHover:y[5],colorPrimary:y[6],colorPrimaryActive:y[7],colorPrimaryTextHover:y[8],colorPrimaryText:y[9],colorPrimaryTextActive:y[10],colorSuccessBg:b[1],colorSuccessBgHover:b[2],colorSuccessBorder:b[3],colorSuccessBorderHover:b[4],colorSuccessHover:b[4],colorSuccess:b[6],colorSuccessActive:b[7],colorSuccessTextHover:b[8],colorSuccessText:b[9],colorSuccessTextActive:b[10],colorErrorBg:$[1],colorErrorBgHover:$[2],colorErrorBgFilledHover:M,colorErrorBgActive:$[3],colorErrorBorder:$[3],colorErrorBorderHover:$[4],colorErrorHover:$[5],colorError:$[6],colorErrorActive:$[7],colorErrorTextHover:$[8],colorErrorText:$[9],colorErrorTextActive:$[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:T[4],colorLink:T[6],colorLinkActive:T[7],...w,colorBgMask:new zt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const G3=e=>{let t=e,o=e,a=e,l=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?a=1:e>=6&&(a=2),e>4&&e<8?l=4:e>=8&&(l=6),{borderRadius:e,borderRadiusXS:a,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:l}};function X3(e){const{motionUnit:t,motionBase:o,borderRadius:a,lineWidth:l}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:l+1,...G3(a)}}const W3=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Y3=e=>{const t=P3(e),o=t.map(y=>y.size),a=t.map(y=>y.lineHeight),l=o[1],c=o[0],f=o[2],m=a[1],h=a[0],p=a[2];return{fontSizeSM:c,fontSize:l,fontSizeLG:f,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:m,lineHeightLG:p,lineHeightSM:h,fontHeight:Math.round(m*l),fontHeightLG:Math.round(p*f),fontHeightSM:Math.round(h*c),lineHeightHeading1:a[6],lineHeightHeading2:a[5],lineHeightHeading3:a[4],lineHeightHeading4:a[3],lineHeightHeading5:a[2]}};function K3(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}const Nr=(e,t)=>new zt(e).setA(t).toRgbString(),Pi=(e,t)=>new zt(e).darken(t).toHexString(),k3=e=>{const t=Bs(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]}},Q3=(e,t)=>{const o=e||"#fff",a=t||"#000";return{colorBgBase:o,colorTextBase:a,colorText:Nr(a,.88),colorTextSecondary:Nr(a,.65),colorTextTertiary:Nr(a,.45),colorTextQuaternary:Nr(a,.25),colorFill:Nr(a,.15),colorFillSecondary:Nr(a,.06),colorFillTertiary:Nr(a,.04),colorFillQuaternary:Nr(a,.02),colorBgSolid:Nr(a,1),colorBgSolidHover:Nr(a,.75),colorBgSolidActive:Nr(a,.95),colorBgLayout:Pi(o,4),colorBgContainer:Pi(o,0),colorBgElevated:Pi(o,0),colorBgSpotlight:Nr(a,.85),colorBgBlur:"transparent",colorBorder:Pi(o,15),colorBorderDisabled:Pi(o,15),colorBorderSecondary:Pi(o,6)}};function mh(e){Om.pink=Om.magenta,Am.pink=Am.magenta;const t=Object.keys(dh).map(o=>{const a=e[o]===Om[o]?Am[o]:Bs(e[o]);return Array.from({length:10},()=>1).reduce((l,c,f)=>(l[`${o}-${f+1}`]=a[f],l[`${o}${f+1}`]=a[f],l),{})}).reduce((o,a)=>(o={...o,...a},o),{});return{...e,...t,...ax(e,{generateColorPalettes:k3,generateNeutralColorPalettes:Q3}),...Y3(e.fontSize),...K3(e),...W3(e),...X3(e)}}const ix=pg(mh),_u={token:Ts,override:{override:Ts},hashed:!0},lx=te.createContext(_u);function _m(e){return e>=0&&e<=255}function cs(e,t){const{r:o,g:a,b:l,a:c}=new zt(e).toRgb();if(c<1)return e;const{r:f,g:m,b:h}=new zt(t).toRgb();for(let p=.01;p<=1;p+=.01){const y=Math.round((o-f*(1-p))/p),b=Math.round((a-m*(1-p))/p),v=Math.round((l-h*(1-p))/p);if(_m(y)&&_m(b)&&_m(v))return new zt({r:y,g:b,b:v,a:Math.round(p*100)/100}).toRgbString()}return new zt({r:o,g:a,b:l,a:1}).toRgbString()}function Z3(e){const{override:t,...o}=e,a={...t};Object.keys(Ts).forEach($=>{delete a[$]});const l={...o,...a},c=480,f=576,m=768,h=992,p=1200,y=1600,b=1920;return l.motion===!1&&(l.motionDurationFast="0s",l.motionDurationMid="0s",l.motionDurationSlow="0s"),{...l,colorFillContent:l.colorFillSecondary,colorFillContentHover:l.colorFill,colorFillAlter:l.colorFillQuaternary,colorBgContainerDisabled:l.colorFillTertiary,colorBorderBg:l.colorBgContainer,colorSplit:cs(l.colorBorderSecondary,l.colorBgContainer),colorTextPlaceholder:l.colorTextQuaternary,colorTextDisabled:l.colorTextQuaternary,colorTextHeading:l.colorText,colorTextLabel:l.colorTextSecondary,colorTextDescription:l.colorTextTertiary,colorTextLightSolid:l.colorWhite,colorHighlight:l.colorError,colorBgTextHover:l.colorFillSecondary,colorBgTextActive:l.colorFill,colorIcon:l.colorTextTertiary,colorIconHover:l.colorText,colorErrorOutline:cs(l.colorErrorBg,l.colorBgContainer),colorWarningOutline:cs(l.colorWarningBg,l.colorBgContainer),fontSizeIcon:l.fontSizeSM,lineWidthFocus:l.lineWidth*3,lineWidth:l.lineWidth,controlOutlineWidth:l.lineWidth*2,controlInteractiveSize:l.controlHeight/2,controlItemBgHover:l.colorFillTertiary,controlItemBgActive:l.colorPrimaryBg,controlItemBgActiveHover:l.colorPrimaryBgHover,controlItemBgActiveDisabled:l.colorFill,controlTmpOutline:l.colorFillQuaternary,controlOutline:cs(l.colorPrimaryBg,l.colorBgContainer),lineType:l.lineType,borderRadius:l.borderRadius,borderRadiusXS:l.borderRadiusXS,borderRadiusSM:l.borderRadiusSM,borderRadiusLG:l.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:l.sizeXXS,paddingXS:l.sizeXS,paddingSM:l.sizeSM,padding:l.size,paddingMD:l.sizeMD,paddingLG:l.sizeLG,paddingXL:l.sizeXL,paddingContentHorizontalLG:l.sizeLG,paddingContentVerticalLG:l.sizeMS,paddingContentHorizontal:l.sizeMS,paddingContentVertical:l.sizeSM,paddingContentHorizontalSM:l.size,paddingContentVerticalSM:l.sizeXS,marginXXS:l.sizeXXS,marginXS:l.sizeXS,marginSM:l.sizeSM,margin:l.size,marginMD:l.sizeMD,marginLG:l.sizeLG,marginXL:l.sizeXL,marginXXL:l.sizeXXL,boxShadow:`
16
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
17
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
18
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
19
+ `,boxShadowSecondary:`
20
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
21
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
22
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
23
+ `,boxShadowTertiary:`
24
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
25
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
26
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
27
+ `,screenXS:c,screenXSMin:c,screenXSMax:f-1,screenSM:f,screenSMMin:f,screenSMMax:m-1,screenMD:m,screenMDMin:m,screenMDMax:h-1,screenLG:h,screenLGMin:h,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:y-1,screenXXL:y,screenXXLMin:y,screenXXLMax:b-1,screenXXXL:b,screenXXXLMin:b,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
28
+ 0 1px 2px -2px ${new zt("rgba(0, 0, 0, 0.16)").toRgbString()},
29
+ 0 3px 6px 0 ${new zt("rgba(0, 0, 0, 0.12)").toRgbString()},
30
+ 0 5px 12px 4px ${new zt("rgba(0, 0, 0, 0.09)").toRgbString()}
31
+ `,boxShadowDrawerRight:`
32
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
33
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
34
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
35
+ `,boxShadowDrawerLeft:`
36
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
37
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
38
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
39
+ `,boxShadowDrawerUp:`
40
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
41
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
42
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
43
+ `,boxShadowDrawerDown:`
44
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
45
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
46
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
47
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...a}}const sx={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},J3={motionBase:!0,motionUnit:!0},e6={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},cx=(e,t,o)=>{const a=o.getDerivativeToken(e),{override:l,...c}=t;let f={...a,override:l};return f=Z3(f),c&&Object.entries(c).forEach(([m,h])=>{const{theme:p,...y}=h;let b=y;p&&(b=cx({...f,...y},{override:y},p)),f[m]=b}),f};function Dr(){const{token:e,hashed:t,theme:o,override:a,cssVar:l,zeroRuntime:c}=te.useContext(lx),{csp:f}=te.useContext(ut),m={prefix:l?.prefix??"ant",key:l?.key??"css-var-root"},h=`${I3}-${t||""}`,p=o||ix,[y,b,v]=Y4(p,[Ts,e],{salt:h,override:a,getComputedToken:cx,cssVar:{...m,unitless:sx,ignore:J3,preserve:e6},nonce:f?.nonce});return[p,v,t?b:"",y,m,!!c]}const ef={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Pr=(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}),ux=()=>({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"}}),Hs=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ls=(e,t)=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),eo=(e,t)=>({"&:focus-visible":Ls(e,t)}),t6=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},...eo(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),n6=(e,t,o,a)=>{const l=`[class^="${t}"], [class*=" ${t}"]`,c=o?`.${o}`:l,f={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let m={};return a!==!1&&(m={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[c]:{...m,...f,[l]:f}}},fx=e=>({[`.${e}`]:{...ux(),[`.${e} .${e}-icon`]:{display:"block"}}}),dx=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...eo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Xt,genComponentStyleHook:r6,genSubStyleComponent:tf}=D3({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,o,a,l,c]=Dr();return{theme:e,realToken:t,hashId:o,token:a,cssVar:l,zeroRuntime:c}},useCSP:()=>{const{csp:e}=u.useContext(ut);return e??{}},getResetStyles:(e,t)=>{const o=t6(e);return[o,{"&":o},fx(t?.prefix.iconPrefixCls??rh)]},getCommonStyle:n6,getCompUnitless:()=>sx}),to=(e,t)=>{const o=`--${e.replace(/\./g,"")}-${t}-`;return[c=>`${o}${c}`,(c,f)=>f?`var(${o}${c}, ${f})`:`var(${o}${c})`]};function mx(e,t){return Mo.reduce((o,a)=>{const l=e[`${a}1`],c=e[`${a}3`],f=e[`${a}6`],m=e[`${a}7`];return{...o,...t(a,{lightColor:l,lightBorderColor:c,darkColor:f,textColor:m})}},{})}const o6=(e,t)=>(Dr(),Sg({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>fx(e)));var a6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const gh=u.createContext({});function gx(e){return e?.getRootNode?.()}function i6(e){return gx(e)instanceof ShadowRoot}function Bu(e){return i6(e)?gx(e):null}function l6(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function s6(e,t){qn(e,`[@ant-design/icons] ${t}`)}function v1(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function S1(e={}){return Object.keys(e).reduce((t,o)=>{const a=e[o];return o==="class"?(t.className=a,delete t.class):(delete t[o],t[l6(o)]=a),t},{})}function _g(e,t,o){return o?te.createElement(e.tag,{key:t,...S1(e.attrs),...o},(e.children||[]).map((a,l)=>_g(a,`${t}-${e.tag}-${l}`))):te.createElement(e.tag,{key:t,...S1(e.attrs)},(e.children||[]).map((a,l)=>_g(a,`${t}-${e.tag}-${l}`)))}function px(e){return Bs(e)[0]}function hx(e){return e?Array.isArray(e)?e:[e]:[]}const c6=`
48
+ .anticon {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ color: inherit;
52
+ font-style: normal;
53
+ line-height: 0;
54
+ text-align: center;
55
+ text-transform: none;
56
+ vertical-align: -0.125em;
57
+ text-rendering: optimizeLegibility;
58
+ -webkit-font-smoothing: antialiased;
59
+ -moz-osx-font-smoothing: grayscale;
60
+ }
61
+
62
+ .anticon > * {
63
+ line-height: 1;
64
+ }
65
+
66
+ .anticon svg {
67
+ display: inline-block;
68
+ vertical-align: inherit;
69
+ }
70
+
71
+ .anticon::before {
72
+ display: none;
73
+ }
74
+
75
+ .anticon .anticon-icon {
76
+ display: block;
77
+ }
78
+
79
+ .anticon[tabindex] {
80
+ cursor: pointer;
81
+ }
82
+
83
+ .anticon-spin {
84
+ -webkit-animation: loadingCircle 1s infinite linear;
85
+ animation: loadingCircle 1s infinite linear;
86
+ }
87
+
88
+ @-webkit-keyframes loadingCircle {
89
+ 100% {
90
+ -webkit-transform: rotate(360deg);
91
+ transform: rotate(360deg);
92
+ }
93
+ }
94
+
95
+ @keyframes loadingCircle {
96
+ 100% {
97
+ -webkit-transform: rotate(360deg);
98
+ transform: rotate(360deg);
99
+ }
100
+ }
101
+ `,u6=e=>{const{csp:t,prefixCls:o,layer:a}=u.useContext(gh);let l=c6;o&&(l=l.replace(/anticon/g,o)),a&&(l=`@layer ${a} {
102
+ ${l}
103
+ }`),u.useEffect(()=>{const c=e.current,f=Bu(c);sa(l,"@ant-design-icons",{prepend:!a,csp:t,attachTo:f})},[])},ps={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function f6({primaryColor:e,secondaryColor:t}){ps.primaryColor=e,ps.secondaryColor=t||px(e),ps.calculated=!!t}function d6(){return{...ps}}const ul=e=>{const{icon:t,className:o,onClick:a,style:l,primaryColor:c,secondaryColor:f,...m}=e,h=u.useRef(null);let p=ps;if(c&&(p={primaryColor:c,secondaryColor:f||px(c)}),u6(h),s6(v1(t),`icon should be icon definiton, but got ${t}`),!v1(t))return null;let y=t;return y&&typeof y.icon=="function"&&(y={...y,icon:y.icon(p.primaryColor,p.secondaryColor)}),_g(y.icon,`svg-${y.name}`,{className:o,onClick:a,style:l,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...m,ref:h})};ul.displayName="IconReact";ul.getTwoToneColors=d6;ul.setTwoToneColors=f6;function yx(e){const[t,o]=hx(e);return ul.setTwoToneColors({primaryColor:t,secondaryColor:o})}function m6(){const e=ul.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Bg.apply(this,arguments)}yx(Au.primary);const Dt=u.forwardRef((e,t)=>{const{className:o,icon:a,spin:l,rotate:c,tabIndex:f,onClick:m,twoToneColor:h,...p}=e,{prefixCls:y="anticon",rootClassName:b}=u.useContext(gh),v=W(b,y,{[`${y}-${a.name}`]:!!a.name,[`${y}-spin`]:!!l||a.name==="loading"},o);let $=f;$===void 0&&m&&($=-1);const x=c?{msTransform:`rotate(${c}deg)`,transform:`rotate(${c}deg)`}:void 0,[E,C]=hx(h);return u.createElement("span",Bg({role:"img","aria-label":a.name},p,{ref:t,tabIndex:$,onClick:m,className:v}),u.createElement(ul,{icon:a,primaryColor:E,secondaryColor:C,style:x}))});Dt.getTwoToneColor=m6;Dt.setTwoToneColor=yx;function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Hg.apply(this,arguments)}const g6=(e,t)=>u.createElement(Dt,Hg({},e,{ref:t,icon:a6})),ph=u.forwardRef(g6);var p6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Lg.apply(this,arguments)}const h6=(e,t)=>u.createElement(Dt,Lg({},e,{ref:t,icon:p6})),nf=u.forwardRef(h6);var y6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Dg.apply(this,arguments)}const b6=(e,t)=>u.createElement(Dt,Dg({},e,{ref:t,icon:y6})),fl=u.forwardRef(b6);var 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"};function Pg(){return Pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Pg.apply(this,arguments)}const S6=(e,t)=>u.createElement(Dt,Pg({},e,{ref:t,icon:v6})),hh=u.forwardRef(S6);var C6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Ig.apply(this,arguments)}const x6=(e,t)=>u.createElement(Dt,Ig({},e,{ref:t,icon:C6})),yh=u.forwardRef(x6),bx=u.createContext({}),E6=e=>{const{children:t,...o}=e,a=u.useMemo(()=>({motion:o.motion}),[o.motion]);return u.createElement(bx.Provider,{value:a},t)};function $6(e){const[,t]=u.useReducer(c=>c+1,0),o=u.useRef(e),a=Tt(()=>o.current),l=Tt(c=>{o.current=typeof c=="function"?c(o.current):c,t()});return[a,l]}const Zr="none",lu="appear",su="enter",cu="leave",C1="none",qr="prepare",Ua="start",Ga="active",bh="end",vx="prepared";function x1(e,t){const o={};return o[e.toLowerCase()]=t.toLowerCase(),o[`Webkit${e}`]=`webkit${t}`,o[`Moz${e}`]=`moz${t}`,o[`ms${e}`]=`MS${t}`,o[`O${e}`]=`o${t.toLowerCase()}`,o}function w6(e,t){const o={animationend:x1("Animation","AnimationEnd"),transitionend:x1("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete o.animationend.animation,"TransitionEvent"in t||delete o.transitionend.transition),o}const T6=w6(tr(),typeof window<"u"?window:{});let Sx={};tr()&&({style:Sx}=document.createElement("div"));const uu={};function Cx(e){if(uu[e])return uu[e];const t=T6[e];if(t){const o=Object.keys(t),a=o.length;for(let l=0;l<a;l+=1){const c=o[l];if(Object.prototype.hasOwnProperty.call(t,c)&&c in Sx)return uu[e]=t[c],uu[e]}}return""}const xx=Cx("animationend"),Ex=Cx("transitionend"),M6=!!(xx&&Ex),E1=xx||"animationend",$1=Ex||"transitionend";function w1(e,t){if(!e)return null;if(typeof e=="object"){const o=t.replace(/-\w/g,a=>a[1].toUpperCase());return e[o]}return`${e}-${t}`}const R6=(e=>{const t=u.useRef();function o(l){l&&(l.removeEventListener($1,e),l.removeEventListener(E1,e))}function a(l){t.current&&t.current!==l&&o(t.current),l&&l!==t.current&&(l.addEventListener($1,e),l.addEventListener(E1,e),t.current=l)}return u.useEffect(()=>()=>{o(t.current),t.current=null},[]),[a,o]}),$x=tr()?u.useLayoutEffect:u.useEffect,N6=(()=>{const e=u.useRef(null);function t(){En.cancel(e.current)}function o(a,l=2){t();const c=En(()=>{l<=1?a({isCanceled:()=>c!==e.current}):o(a,l-1)});e.current=c}return u.useEffect(()=>()=>{t()},[]),[o,t]}),z6=[qr,Ua,Ga,bh],O6=[qr,vx],wx=!1,A6=!0;function Tx(e){return e===Ga||e===bh}const _6=((e,t,o)=>{const[a,l]=EC(C1),[c,f]=N6();function m(){l(qr,!0)}const h=t?O6:z6;return $x(()=>{if(a!==C1&&a!==bh){const p=h.indexOf(a),y=h[p+1],b=o(a);b===wx?l(y,!0):y&&c(v=>{function $(){v.isCanceled()||l(y,!0)}b===!0?$():Promise.resolve(b).then($)})}},[e,a]),u.useEffect(()=>()=>{f()},[]),[m,a]});function B6(e,t,o,{motionEnter:a=!0,motionAppear:l=!0,motionLeave:c=!0,motionDeadline:f,motionLeaveImmediately:m,onAppearPrepare:h,onEnterPrepare:p,onLeavePrepare:y,onAppearStart:b,onEnterStart:v,onLeaveStart:$,onAppearActive:x,onEnterActive:E,onLeaveActive:C,onAppearEnd:T,onEnterEnd:M,onLeaveEnd:w,onVisibleChanged:N}){const[R,_]=u.useState(),[z,B]=$6(Zr),[H,I]=u.useState([null,null]),L=z(),V=u.useRef(!1),k=u.useRef(null);function U(){return o()}const F=u.useRef(!1);function P(){B(Zr),I([null,null])}const q=Tt(de=>{const ye=z();if(ye===Zr)return;const ve=U();if(de&&!de.deadline&&de.target!==ve)return;const we=F.current;let be;ye===lu&&we?be=T?.(ve,de):ye===su&&we?be=M?.(ve,de):ye===cu&&we&&(be=w?.(ve,de)),we&&be!==!1&&P()}),[G]=R6(q),Y=de=>{switch(de){case lu:return{[qr]:h,[Ua]:b,[Ga]:x};case su:return{[qr]:p,[Ua]:v,[Ga]:E};case cu:return{[qr]:y,[Ua]:$,[Ga]:C};default:return{}}},Z=u.useMemo(()=>Y(L),[L]),[A,D]=_6(L,!e,de=>{if(de===qr){const ye=Z[qr];return ye?ye(U()):wx}return de in Z&&I([Z[de]?.(U(),null)||null,de]),de===Ga&&L!==Zr&&(G(U()),f>0&&(clearTimeout(k.current),k.current=setTimeout(()=>{q({deadline:!0})},f))),de===vx&&P(),A6}),K=Tx(D);F.current=K;const Q=u.useRef(null);$x(()=>{if(V.current&&Q.current===t)return;_(t);const de=V.current;V.current=!0;let ye;!de&&t&&l&&(ye=lu),de&&t&&a&&(ye=su),(de&&!t&&c||!de&&m&&!t&&c)&&(ye=cu);const ve=Y(ye);ye&&(e||ve[qr])?(B(ye),A()):B(Zr),Q.current=t},[t]),u.useEffect(()=>{(L===lu&&!l||L===su&&!a||L===cu&&!c)&&B(Zr)},[l,a,c]),u.useEffect(()=>()=>{V.current=!1,clearTimeout(k.current)},[]);const ee=u.useRef(!1);u.useEffect(()=>{R&&(ee.current=!0),R!==void 0&&L===Zr&&((ee.current||R)&&N?.(R),ee.current=!0)},[R,L]);let ie=H[0];Z[qr]&&D===Ua&&(ie={transition:"none",...ie});const le=H[1];return[z,D,ie,R??t,!V.current&&L===Zr&&e&&l?"NONE":D===Ua||D===Ga?le===D:!0]}function Mx(e){return e?.length<2}function H6(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function o(l,c){return!!(l.motionName&&t&&c!==!1)}const a=u.forwardRef((l,c)=>{const{visible:f=!0,removeOnLeave:m=!0,forceRender:h,children:p,motionName:y,leavedClassName:b,eventProps:v}=l,{motion:$}=u.useContext(bx),x=o(l,$),E=u.useRef();function C(){return th(E.current)}const[T,M,w,N,R]=B6(x,f,C,l),_=T(),z=u.useRef(N);N&&(z.current=!0);const B=u.useMemo(()=>{const L={};return Object.defineProperties(L,{nativeElement:{enumerable:!0,get:C},inMotion:{enumerable:!0,get:()=>()=>T()!==Zr},enableMotion:{enumerable:!0,get:()=>()=>x}}),L},[]);u.useImperativeHandle(c,()=>B,[]);const H=u.useRef(0);R&&(H.current+=1);const I=u.useMemo(()=>{if(R==="NONE")return null;let L;const V={...v,visible:f};if(!p)L=null;else if(_===Zr)N?L=p({...V},E):!m&&z.current&&b?L=p({...V,className:b},E):h||!m&&!b?L=p({...V,style:{display:"none"}},E):L=null;else{let k;M===qr?k="prepare":Tx(M)?k="active":M===Ua&&(k="start");const U=w1(y,`${_}-${k}`);L=p({...V,className:W(w1(y,_),{[U]:U&&k,[y]:typeof y=="string"}),style:w},E)}return L},[H.current]);if(Mx(p)&&a4(I)){const L=Ja(I);if(L!==E)return u.cloneElement(I,{ref:Hr(L,E)})}return I});return a.displayName="CSSMotion",a}const nr=H6(M6),jg="add",Vg="keep",Fg="remove",Bm="removed";function L6(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function qg(e=[]){return e.map(L6)}function D6(e=[],t=[]){let o=[],a=0;const l=t.length,c=qg(e),f=qg(t);c.forEach(p=>{let y=!1;for(let b=a;b<l;b+=1){const v=f[b];if(v.key===p.key){a<b&&(o=o.concat(f.slice(a,b).map($=>({...$,status:jg}))),a=b),o.push({...v,status:Vg}),a+=1,y=!0;break}}y||o.push({...p,status:Fg})}),a<l&&(o=o.concat(f.slice(a).map(p=>({...p,status:jg}))));const m={};return o.forEach(({key:p})=>{m[p]=(m[p]||0)+1}),Object.keys(m).filter(p=>m[p]>1).forEach(p=>{o=o.filter(({key:y,status:b})=>y!==p||b!==Fg),o.forEach(y=>{y.key===p&&(y.status=Vg)})}),o}function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Ug.apply(this,arguments)}const P6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function I6(e,t=nr){class o extends u.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:l},{keyEntities:c}){const f=qg(l);return{keyEntities:D6(c,f).filter(h=>{const p=c.find(({key:y})=>h.key===y);return!(p&&p.status===Bm&&h.status===Fg)})}}removeKey=l=>{this.setState(c=>({keyEntities:c.keyEntities.map(m=>m.key!==l?m:{...m,status:Bm})}),()=>{const{keyEntities:c}=this.state;c.filter(({status:m})=>m!==Bm).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:l}=this.state,{component:c,children:f,onVisibleChanged:m,onAllRemoved:h,...p}=this.props,y=c||u.Fragment,b={};return P6.forEach(v=>{b[v]=p[v],delete p[v]}),delete p.keys,u.createElement(y,p,l.map(({status:v,...$},x)=>{const E=v===jg||v===Vg;return u.createElement(t,Ug({},b,{key:$.key,visible:E,eventProps:$,onVisibleChanged:C=>{m?.(C,{key:$.key}),C||this.removeKey($.key)}}),Mx(f)?C=>f({...C,index:x}):(C,T)=>f({...C,index:x},T))}))}}return o}const j6=I6(),V6=`accept acceptCharset accessKey action allowFullScreen allowTransparency
104
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
105
+ charSet checked classID className colSpan cols content contentEditable contextMenu
106
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
107
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
108
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
109
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
110
+ mediaGroup method min minLength multiple muted name noValidate nonce open
111
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
112
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
113
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
114
+ summary tabIndex target title type useMap value width wmode wrap`,F6=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
115
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
116
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
117
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
118
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
119
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
120
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,q6=`${V6} ${F6}`.split(/[\s\n]+/),U6="aria-",G6="data-";function T1(e,t){return e.indexOf(t)===0}function da(e,t=!1){let o;t===!1?o={aria:!0,data:!0,attr:!0}:t===!0?o={aria:!0}:o={...t};const a={};return Object.keys(e).forEach(l=>{(o.aria&&(l==="role"||T1(l,U6))||o.data&&T1(l,G6)||o.attr&&q6.includes(l))&&(a[l]=e[l])}),a}const X6={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var W6={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function M1(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),o.push.apply(o,a)}return o}function R1(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?M1(Object(o),!0).forEach(function(a){Y6(e,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):M1(Object(o)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(o,a))})}return e}function Y6(e,t,o){return t=K6(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function K6(e){var t=k6(e,"string");return Ms(t)=="symbol"?t:String(t)}function k6(e,t){if(Ms(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,t);if(Ms(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q6=R1(R1({},W6),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Rx={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},N1={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Q6},timePickerLocale:{...Rx}},dr="${label} is not a valid ${type}",ma={locale:"en",Pagination:X6,DatePicker:N1,TimePicker:Rx,Calendar:N1,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:dr,method:dr,array:dr,object:dr,number:dr,date:dr,boolean:dr,integer:dr,float:dr,regexp:dr,email:dr,url:dr,hex:dr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let wu={...ma.Modal},Tu=[];const z1=()=>Tu.reduce((e,t)=>({...e,...t}),ma.Modal);function Z6(e){if(e){const t={...e};return Tu.push(t),wu=z1(),()=>{Tu=Tu.filter(o=>o!==t),wu=z1()}}wu={...ma.Modal}}function J6(){return wu}const vh=u.createContext(void 0),ba=(e,t)=>{const o=u.useContext(vh),a=u.useMemo(()=>{const c=t||ma[e],f=o?.[e]??{};return{...typeof c=="function"?c():c,...f||{}}},[e,t,o]),l=u.useMemo(()=>{const c=o?.locale;return o?.exist&&!c?ma.locale:c},[o]);return[a,l]},eT="internalMark",tT=e=>{const{locale:t={},children:o,_ANT_MARK__:a}=e;u.useEffect(()=>Z6(t?.Modal),[t]);const l=u.useMemo(()=>({...t,exist:!0}),[t]);return u.createElement(vh.Provider,{value:l},o)};function O1(...e){const t={};return e.forEach(o=>{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(t[a]=o[a])})}),t}const vr=e=>e!=null,ga=e=>{if(!e)return;const{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},Nx={},A1=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let o={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(o={...o,...e}),o},nT=(e,t,o)=>e===!1?!1:e?O1(o,t,e):t===!1?!1:t?O1(o,t):o.closable?o:!1,rT=(e,t,o)=>{const{closeIconRender:a}=t,{closeIcon:l,...c}=e;let f=l;const m=da(c,!0);return vr(f)&&(a&&(f=a(f)),f=te.isValidElement(f)?te.cloneElement(f,{"aria-label":o,...f.props,...m}):te.createElement("span",{"aria-label":o,...m},f)),[f,m]},zx=(e,t,o=Nx,a="Close")=>{const l=A1(e?.closable,e?.closeIcon),c=A1(t?.closable,t?.closeIcon),f={closeIcon:te.createElement(fl,null),...o},m=nT(l,c,f),h=typeof m!="boolean"?!!m?.disabled:!1;if(m===!1)return[!1,null,h,{}];const[p,y]=rT(m,f,a);return[!0,p,h,y]},Sh=(e,t,o=Nx)=>{const[a]=ba("global",ma.global);return te.useMemo(()=>zx(e,t,{closeIcon:te.createElement(fl,null),...o},a.close),[e,t,o,a.close])},oT=()=>te.useReducer(e=>e+1,0),Gg=(e,t)=>{let o={};return e&&typeof e=="object"&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},Ox=(e,t,o,a)=>u.useMemo(()=>{const l=Gg(e,a),c=Gg(t),f={blur:!1,...c,...l,closable:l.closable??a??c.closable??!0},m=f.blur?`${o}-mask-blur`:void 0;return[f.enabled!==!1,{mask:m},!!f.closable]},[e,t,o,a]),rf=(e,...t)=>{const o=e||{};return t.filter(Boolean).reduce((a,l)=>(Object.keys(l||{}).forEach(c=>{const f=o[c],m=l[c];if(f&&typeof f=="object")if(m&&typeof m=="object")a[c]=rf(f,a[c],m);else{const{_default:h}=f;h&&(a[c]=a[c]||{},a[c][h]=W(a[c][h],m))}else a[c]=W(a[c],m)}),a),{})},aT=(e,...t)=>u.useMemo(()=>rf.apply(void 0,[e].concat(t)),[e].concat(t)),Ch=(...e)=>e.filter(Boolean).reduce((t,o={})=>(Object.keys(o).forEach(a=>{t[a]={...t[a],...o[a]}}),t),{}),iT=(...e)=>u.useMemo(()=>Ch.apply(void 0,e),[].concat(e)),Xg=(e,t)=>{const o={...e};return Object.keys(t).forEach(a=>{if(a!=="_default"){const l=t[a],c=o[a]||{};o[a]=l?Xg(c,l):c}}),o},la=(e,t)=>typeof e=="function"?e(t):e,Nn=(e,t,o,a)=>{const l=e.map(h=>h?la(h,o):void 0),c=t.map(h=>h?la(h,o):void 0),f=aT.apply(void 0,[a].concat(sn(l))),m=iT.apply(void 0,sn(c));return u.useMemo(()=>a?[Xg(f,a),Xg(m,a)]:[f,m],[f,m,a])},_1=e=>e==="horizontal"||e==="vertical",Ds=(e,t,o)=>u.useMemo(()=>{const a=_1(e);let l;return a?l=e:typeof t=="boolean"?l=t?"vertical":"horizontal":l=_1(o)?o:"horizontal",[l,l==="vertical"]},[o,e,t]),lT=()=>{const[e,t]=u.useState([]),o=u.useCallback(a=>(t(l=>[].concat(sn(l),[a])),()=>{t(l=>l.filter(c=>c!==a))}),[]);return[e,o]},of=te.createContext(void 0),na=100,sT=10,xh=na*sT,Ax={Modal:na,Drawer:na,Popover:na,Popconfirm:na,Tooltip:na,Tour:na,FloatButton:na},cT={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},uT=e=>e in Ax,Eh=(e,t)=>{const[,o]=Dr(),a=te.useContext(of),l=uT(e);let c;if(t!==void 0)c=[t,t];else{let f=a??0;l?f+=(a?0:o.zIndexPopupBase)+Ax[e]:f+=cT[e],c=[a===void 0?t:f,f]}return c},va=e=>`${e}-css-var`,fT=u.createContext(void 0);var Ps=CC();const _x=u.createContext(null);let dT=!1;function mT(e){return dT}const B1=[];function gT(e,t){const[o]=u.useState(()=>tr()?document.createElement("div"):null),a=u.useRef(!1),l=u.useContext(_x),[c,f]=u.useState(B1),m=l||(a.current?void 0:y=>{f(b=>[y,...b])});function h(){o.parentElement||document.body.appendChild(o),a.current=!0}function p(){o.parentElement?.removeChild(o),a.current=!1}return Lt(()=>(e?l?l(h):h():p(),p),[e]),Lt(()=>{c.length&&(c.forEach(y=>y()),f(B1))},[c]),[o,m]}function pT(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,o=document.createElement("div");o.id=t;const a=o.style;a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll";let l,c;if(e){const h=getComputedStyle(e);a.scrollbarColor=h.scrollbarColor,a.scrollbarWidth=h.scrollbarWidth;const p=getComputedStyle(e,"::-webkit-scrollbar"),y=parseInt(p.width,10),b=parseInt(p.height,10);try{const v=y?`width: ${p.width};`:"",$=b?`height: ${p.height};`:"";sa(`
121
+ #${t}::-webkit-scrollbar {
122
+ ${v}
123
+ ${$}
124
+ }`,t)}catch(v){console.error(v),l=y,c=b}}document.body.appendChild(o);const f=e&&l&&!Number.isNaN(l)?l:o.offsetWidth-o.clientWidth,m=e&&c&&!Number.isNaN(c)?c:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),Ss(t),{width:f,height:m}}function hT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:pT(e)}function yT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const bT=`rc-util-locker-${Date.now()}`;let H1=0;function vT(e){const t=!!e,[o]=u.useState(()=>(H1+=1,`${bT}_${H1}`));Lt(()=>{if(t){const a=hT(document.body).width,l=yT();sa(`
125
+ html body {
126
+ overflow-y: hidden;
127
+ ${l?`width: calc(100% - ${a}px);`:""}
128
+ }`,o)}else Ss(o);return()=>{Ss(o)}},[t,o])}function ST(){return{...kw}.useId}let L1=0;const D1=ST(),Sa=D1?(function(t){const o=D1();return t||o}):(function(t){const[o,a]=u.useState("ssr-id");return u.useEffect(()=>{const l=L1;L1+=1,a(`rc_unique_${l}`)},[]),t||o});let Xa=[];const CT=200;let Bx=0;const Hx=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Bx<CT)return;const o=Xa.length;for(let a=o-1;a>=0;a-=1)Xa[a].onEsc({top:a===o-1,event:e})}},Lx=()=>{Bx=Date.now()};function xT(){window.addEventListener("keydown",Hx),window.addEventListener("compositionend",Lx)}function ET(){Xa.length===0&&(window.removeEventListener("keydown",Hx),window.removeEventListener("compositionend",Lx))}function $T(e,t){const o=Sa(),a=Tt(t),l=()=>{Xa.find(f=>f.id===o)||Xa.push({id:o,onEsc:a})},c=()=>{Xa=Xa.filter(f=>f.id!==o)};u.useMemo(()=>{e?l():e||c()},[e]),u.useEffect(()=>{if(e)return l(),xT(),()=>{c(),ET()}},[e])}const P1=e=>e===!1?!1:!tr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Is=u.forwardRef((e,t)=>{const{open:o,autoLock:a,getContainer:l,debug:c,autoDestroy:f=!0,children:m,onEsc:h}=e,[p,y]=u.useState(o),b=p||o;u.useEffect(()=>{(f||o)&&y(o)},[o,f]);const[v,$]=u.useState(()=>P1(l));u.useEffect(()=>{const R=P1(l);$(()=>R??null)});const[x,E]=gT(b&&!v),C=v??x;vT(a&&o&&tr()&&(C===x||C===document.body)),$T(o,h);let T=null;m&&il(m)&&t&&(T=Ja(m));const M=ya(T,t);if(!b||!tr()||v===void 0)return null;const w=C===!1||mT();let N=m;return t&&(N=u.cloneElement(m,{ref:M})),u.createElement(_x.Provider,{value:E},w?N:Ps.createPortal(N,C))});function wT(e){const{prefixCls:t,align:o,arrow:a,arrowPos:l}=e,{className:c,content:f,style:m}=a||{},{x:h=0,y:p=0}=l,y=u.useRef(null);if(!o||!o.points)return null;const b={position:"absolute"};if(o.autoArrow!==!1){const v=o.points[0],$=o.points[1],x=v[0],E=v[1],C=$[0],T=$[1];x===C||!["t","b"].includes(x)?b.top=p:x==="t"?b.top=0:b.bottom=0,E===T||!["l","r"].includes(E)?b.left=h:E==="l"?b.left=0:b.right=0}return u.createElement("div",{ref:y,className:W(`${t}-arrow`,c),style:{...b,...m}},f)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Wg.apply(this,arguments)}function TT(e){const{prefixCls:t,open:o,zIndex:a,mask:l,motion:c,mobile:f}=e;return l?u.createElement(nr,Wg({},c,{motionAppear:!0,visible:o,removeOnLeave:!0}),({className:m})=>u.createElement("div",{style:{zIndex:a},className:W(`${t}-mask`,f&&`${t}-mobile-mask`,m)})):null}const MT=u.memo(({children:e})=>e,(e,t)=>t.cache);function Dx(e,t,o,a,l,c,f,m){const h="auto",p=e?{}:{left:"-1000vw",top:"-1000vh",right:h,bottom:h};if(!e&&(t||!o)){const{points:y}=a,b=a.dynamicInset||a._experimental?.dynamicInset,v=b&&y[0][1]==="r",$=b&&y[0][0]==="b";v?(p.right=l,p.left=h):(p.left=f,p.right=h),$?(p.bottom=c,p.top=h):(p.top=m,p.bottom=h)}return p}function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Yg.apply(this,arguments)}const Px=u.forwardRef((e,t)=>{const{onEsc:o,popup:a,className:l,prefixCls:c,style:f,target:m,onVisibleChanged:h,open:p,keepDom:y,fresh:b,onClick:v,mask:$,arrow:x,arrowPos:E,align:C,motion:T,maskMotion:M,mobile:w,forceRender:N,getPopupContainer:R,autoDestroy:_,portal:z,children:B,zIndex:H,onMouseEnter:I,onMouseLeave:L,onPointerEnter:V,onPointerDownCapture:k,ready:U,offsetX:F,offsetY:P,offsetR:q,offsetB:G,onAlign:Y,onPrepare:Z,onResize:A,stretch:D,targetWidth:K,targetHeight:Q}=e,ee=typeof a=="function"?a():a,ie=p||y,le=!!w,[de,ye,ve]=u.useMemo(()=>w?[w.mask,w.maskMotion,w.motion]:[$,M,T],[w,$,M,T]),we=R?.length>0,[be,Se]=u.useState(!R||!we);Lt(()=>{!be&&we&&m&&Se(!0)},[be,we,m]);const me=Tt((Pe,Le)=>{A?.(Pe,Le),Y()}),he=Dx(le,U,p,C,q,G,F,P);if(!be)return null;const pe={};return D&&(D.includes("height")&&Q?pe.height=Q:D.includes("minHeight")&&Q&&(pe.minHeight=Q),D.includes("width")&&K?pe.width=K:D.includes("minWidth")&&K&&(pe.minWidth=K)),p||(pe.pointerEvents="none"),u.createElement(z,{open:N||ie,getContainer:R&&(()=>R(m)),autoDestroy:_,onEsc:o},u.createElement(TT,{prefixCls:c,open:p,zIndex:H,mask:de,motion:ye,mobile:le}),u.createElement(wo,{onResize:me,disabled:!p},Pe=>u.createElement(nr,Yg({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:`${c}-hidden`},ve,{onAppearPrepare:Z,onEnterPrepare:Z,visible:p,onVisibleChanged:Le=>{T?.onVisibleChanged?.(Le),h(Le)}}),({className:Le,style:Ee},Xe)=>{const Oe=W(c,Le,l,{[`${c}-mobile`]:le});return u.createElement("div",{ref:Hr(Pe,t,Xe),className:Oe,style:{"--arrow-x":`${E.x||0}px`,"--arrow-y":`${E.y||0}px`,...he,...pe,...Ee,boxSizing:"border-box",zIndex:H,...f},onMouseEnter:I,onMouseLeave:L,onPointerEnter:V,onClick:v,onPointerDownCapture:k},x&&u.createElement(wT,{prefixCls:c,arrow:x,arrowPos:E,align:C}),u.createElement(MT,{cache:!p&&!b},ee))})),B)}),Hu=u.createContext(null),Ix=u.createContext(null);function I1(e){return e?Array.isArray(e)?e:[e]:[]}function RT(e,t,o){return u.useMemo(()=>{const a=I1(t??e),l=I1(o??e),c=new Set(a),f=new Set(l);return c.has("hover")&&!c.has("click")&&c.add("touch"),f.has("hover")&&!f.has("click")&&f.add("touch"),[c,f]},[e,t,o])}const $h=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:o}=e.getBBox();if(t||o)return!0}if(e.getBoundingClientRect){const{width:t,height:o}=e.getBoundingClientRect();if(t||o)return!0}}return!1});function NT(e=[],t=[],o){const a=(l,c)=>l[c]||"";return o?a(e,0)===a(t,0):a(e,0)===a(t,0)&&a(e,1)===a(t,1)}function jx(e,t,o,a){const{points:l}=o,c=Object.keys(e);for(let f=0;f<c.length;f+=1){const m=c[f];if(NT(e[m]?.points,l,a))return`${t}-placement-${m}`}return""}function js(e){return e.ownerDocument.defaultView}function Kg(e){const t=[];let o=e?.parentElement;const a=["hidden","scroll","clip","auto"];for(;o;){const{overflowX:l,overflowY:c,overflow:f}=js(o).getComputedStyle(o);[l,c,f].some(m=>a.includes(m))&&t.push(o),o=o.parentElement}return t}function Rs(e,t=1){return Number.isNaN(e)?t:e}function rs(e){return Rs(parseFloat(e),0)}function j1(e,t){const o={...e};return(t||[]).forEach(a=>{if(a instanceof HTMLBodyElement||a instanceof HTMLHtmlElement)return;const{overflow:l,overflowClipMargin:c,borderTopWidth:f,borderBottomWidth:m,borderLeftWidth:h,borderRightWidth:p}=js(a).getComputedStyle(a),y=a.getBoundingClientRect(),{offsetHeight:b,clientHeight:v,offsetWidth:$,clientWidth:x}=a,E=rs(f),C=rs(m),T=rs(h),M=rs(p),w=Rs(Math.round(y.width/$*1e3)/1e3),N=Rs(Math.round(y.height/b*1e3)/1e3),R=($-x-T-M)*w,_=(b-v-E-C)*N,z=E*N,B=C*N,H=T*w,I=M*w;let L=0,V=0;if(l==="clip"){const q=rs(c);L=q*w,V=q*N}const k=y.x+H-L,U=y.y+z-V,F=k+y.width+2*L-H-I-R,P=U+y.height+2*V-z-B-_;o.left=Math.max(o.left,k),o.top=Math.max(o.top,U),o.right=Math.min(o.right,F),o.bottom=Math.min(o.bottom,P)}),o}function V1(e,t=0){const o=`${t}`,a=o.match(/^(.*)\%$/);return a?e*(parseFloat(a[1])/100):parseFloat(o)}function F1(e,t){const[o,a]=t||[];return[V1(e.width,o),V1(e.height,a)]}function q1(e=""){return[e[0],e[1]]}function Ii(e,t){const o=t[0],a=t[1];let l,c;return o==="t"?c=e.y:o==="b"?c=e.y+e.height:c=e.y+e.height/2,a==="l"?l=e.x:a==="r"?l=e.x+e.width:l=e.x+e.width/2,{x:l,y:c}}function ea(e,t){const o={t:"b",b:"t",l:"r",r:"l"},a=[...e];return a[t]=o[e[t]]||"c",a}function U1(e){return e.join("")}function Vx(e,t,o,a,l,c,f,m){const[h,p]=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:l[a]||{}}),y=u.useRef(0),b=u.useMemo(()=>!t||m?[]:Kg(t),[t]),v=u.useRef({});e||(v.current={});const x=Tt(()=>{if(t&&o&&e&&!m){let mt=function(Ke,fn,nn=pe){const Un=F.x+Ke,zn=F.y+fn,xa=Un+ee,Ws=zn+Q,Ea=Math.max(Un,nn.left),ni=Math.max(zn,nn.top),No=Math.min(xa,nn.right),$e=Math.min(Ws,nn.bottom);return Math.max(0,(No-Ea)*($e-ni))},It=function(){Ve=F.y+Ie,Be=Ve+Q,We=F.x+Ce,at=We+ee};var T=mt,M=It;const w=t,N=w.ownerDocument,R=js(w),{position:_}=R.getComputedStyle(w),z=w.style.left,B=w.style.top,H=w.style.right,I=w.style.bottom,L=w.style.overflow,V={...l[a],...c},k=N.createElement("div");w.parentElement?.appendChild(k),k.style.left=`${w.offsetLeft}px`,k.style.top=`${w.offsetTop}px`,k.style.position=_,k.style.height=`${w.offsetHeight}px`,k.style.width=`${w.offsetWidth}px`,w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";let U;if(Array.isArray(o))U={x:o[0],y:o[1],width:0,height:0};else{const Ke=o.getBoundingClientRect();Ke.x=Ke.x??Ke.left,Ke.y=Ke.y??Ke.top,U={x:Ke.x,y:Ke.y,width:Ke.width,height:Ke.height}}const F=w.getBoundingClientRect(),{height:P,width:q}=R.getComputedStyle(w);F.x=F.x??F.left,F.y=F.y??F.top;const{clientWidth:G,clientHeight:Y,scrollWidth:Z,scrollHeight:A,scrollTop:D,scrollLeft:K}=N.documentElement,Q=F.height,ee=F.width,ie=U.height,le=U.width,de={left:0,top:0,right:G,bottom:Y},ye={left:-K,top:-D,right:Z-K,bottom:A-D};let{htmlRegion:ve}=V;const we="visible",be="visibleFirst";ve!=="scroll"&&ve!==be&&(ve=we);const Se=ve===be,me=j1(ye,b),he=j1(de,b),pe=ve===we?he:me,Pe=Se?he:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";const Le=w.getBoundingClientRect();w.style.left=z,w.style.top=B,w.style.right=H,w.style.bottom=I,w.style.overflow=L,w.parentElement?.removeChild(k);const Ee=Rs(Math.round(ee/parseFloat(q)*1e3)/1e3),Xe=Rs(Math.round(Q/parseFloat(P)*1e3)/1e3);if(Ee===0||Xe===0||tl(o)&&!$h(o))return;const{offset:Oe,targetOffset:Re}=V;let[De,Te]=F1(F,Oe);const[et,it]=F1(U,Re);U.x-=et,U.y-=it;const[ft,Ue]=V.points||[],dt=q1(Ue),Me=q1(ft),xe=Ii(U,dt),Ae=Ii(F,Me),Ye={...V};let _e=[Me,dt],Ce=xe.x-Ae.x+De,Ie=xe.y-Ae.y+Te;const ke=mt(Ce,Ie),Ut=mt(Ce,Ie,he),bt=Ii(U,["t","l"]),je=Ii(F,["t","l"]),Fe=Ii(U,["b","r"]),ot=Ii(F,["b","r"]),Pt=V.overflow||{},{adjustX:Wt,adjustY:vt,shiftX:un,shiftY:Bn}=Pt,Hn=Ke=>typeof Ke=="boolean"?Ke:Ke>=0;let Ve,Be,We,at;It();const Zt=Hn(vt),gn=Me[0]===dt[0];if(Zt&&Me[0]==="t"&&(Be>Pe.bottom||v.current.bt)){let Ke=Ie;gn?Ke-=Q-ie:Ke=bt.y-ot.y-Te;const fn=mt(Ce,Ke),nn=mt(Ce,Ke,he);fn>ke||fn===ke&&(!Se||nn>=Ut)?(v.current.bt=!0,Ie=Ke,Te=-Te,_e=[ea(_e[0],0),ea(_e[1],0)]):v.current.bt=!1}if(Zt&&Me[0]==="b"&&(Ve<Pe.top||v.current.tb)){let Ke=Ie;gn?Ke+=Q-ie:Ke=Fe.y-je.y-Te;const fn=mt(Ce,Ke),nn=mt(Ce,Ke,he);fn>ke||fn===ke&&(!Se||nn>=Ut)?(v.current.tb=!0,Ie=Ke,Te=-Te,_e=[ea(_e[0],0),ea(_e[1],0)]):v.current.tb=!1}const jn=Hn(Wt),Gt=Me[1]===dt[1];if(jn&&Me[1]==="l"&&(at>Pe.right||v.current.rl)){let Ke=Ce;Gt?Ke-=ee-le:Ke=bt.x-ot.x-De;const fn=mt(Ke,Ie),nn=mt(Ke,Ie,he);fn>ke||fn===ke&&(!Se||nn>=Ut)?(v.current.rl=!0,Ce=Ke,De=-De,_e=[ea(_e[0],1),ea(_e[1],1)]):v.current.rl=!1}if(jn&&Me[1]==="r"&&(We<Pe.left||v.current.lr)){let Ke=Ce;Gt?Ke+=ee-le:Ke=Fe.x-je.x-De;const fn=mt(Ke,Ie),nn=mt(Ke,Ie,he);fn>ke||fn===ke&&(!Se||nn>=Ut)?(v.current.lr=!0,Ce=Ke,De=-De,_e=[ea(_e[0],1),ea(_e[1],1)]):v.current.lr=!1}Ye.points=[U1(_e[0]),U1(_e[1])],It();const rt=un===!0?0:un;typeof rt=="number"&&(We<he.left&&(Ce-=We-he.left-De,U.x+le<he.left+rt&&(Ce+=U.x-he.left+le-rt)),at>he.right&&(Ce-=at-he.right-De,U.x>he.right-rt&&(Ce+=U.x-he.right+rt)));const Ot=Bn===!0?0:Bn;typeof Ot=="number"&&(Ve<he.top&&(Ie-=Ve-he.top-Te,U.y+ie<he.top+Ot&&(Ie+=U.y-he.top+ie-Ot)),Be>he.bottom&&(Ie-=Be-he.bottom-Te,U.y>he.bottom-Ot&&(Ie+=U.y-he.bottom+Ot)));const $n=F.x+Ce,Ne=$n+ee,xt=F.y+Ie,jt=xt+Q,lt=U.x,Vt=lt+le,pn=U.y,en=pn+ie,wn=Math.max($n,lt),Xn=Math.min(Ne,Vt),Yt=(wn+Xn)/2-$n,or=Math.max(xt,pn),oo=Math.min(jt,en),Sr=(or+oo)/2-xt;f?.(t,Ye);let Ca=Le.right-F.x-(Ce+F.width),Ro=Le.bottom-F.y-(Ie+F.height);Ee===1&&(Ce=Math.floor(Ce),Ca=Math.floor(Ca)),Xe===1&&(Ie=Math.floor(Ie),Ro=Math.floor(Ro));const ti={ready:!0,offsetX:Ce/Ee,offsetY:Ie/Xe,offsetR:Ca/Ee,offsetB:Ro/Xe,arrowX:Yt/Ee,arrowY:Sr/Xe,scaleX:Ee,scaleY:Xe,align:Ye};p(ti)}}),E=()=>{y.current+=1;const T=y.current;Promise.resolve().then(()=>{y.current===T&&x()})},C=()=>{p(T=>({...T,ready:!1}))};return Lt(C,[a]),Lt(()=>{e||C()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,E]}function Fx(){const e=u.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},o=(a,l)=>{t(),l===0?a():e.current=setTimeout(()=>{a()},l*1e3)};return u.useEffect(()=>()=>{t()},[]),o}function zT(e,t,o,a,l){Lt(()=>{if(e&&t&&o){let v=function(){a(),l()};var c=v;const f=t,m=o,h=Kg(f),p=Kg(m),y=js(m),b=new Set([y,...h,...p]);return b.forEach($=>{$.addEventListener("scroll",v,{passive:!0})}),y.addEventListener("resize",v,{passive:!0}),a(),()=>{b.forEach($=>{$.removeEventListener("scroll",v),y.removeEventListener("resize",v)})}}},[e,t,o])}function OT(e,t,o,a,l,c,f,m){const h=u.useRef(e);h.current=e;const p=u.useRef(!1);u.useEffect(()=>{if(t&&a&&(!l||c)){const b=()=>{p.current=!1},v=E=>{h.current&&!f(E.composedPath?.()?.[0]||E.target)&&!p.current&&m(!1)},$=js(a);$.addEventListener("pointerdown",b,!0),$.addEventListener("mousedown",v,!0),$.addEventListener("contextmenu",v,!0);const x=Bu(o);return x&&(x.addEventListener("mousedown",v,!0),x.addEventListener("contextmenu",v,!0)),()=>{$.removeEventListener("pointerdown",b,!0),$.removeEventListener("mousedown",v,!0),$.removeEventListener("contextmenu",v,!0),x&&(x.removeEventListener("mousedown",v,!0),x.removeEventListener("contextmenu",v,!0))}}},[t,o,a,l,c]);function y(){p.current=!0}return y}function AT(){const[e,t]=te.useState(null),[o,a]=te.useState(!1),[l,c]=te.useState(!1),f=te.useRef(null),m=Tt(p=>{p===!1?(f.current=null,a(!1)):l&&o?f.current=p:(a(!0),t(p),f.current=null,o||c(!0))}),h=Tt(p=>{p?(c(!1),f.current&&(t(f.current),f.current=null)):(c(!1),f.current=null)});return[m,o,e,h]}function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},kg.apply(this,arguments)}const _T=e=>{const{prefixCls:t,isMobile:o,ready:a,open:l,align:c,offsetR:f,offsetB:m,offsetX:h,offsetY:p,arrowPos:y,popupSize:b,motion:v,uniqueContainerClassName:$,uniqueContainerStyle:x}=e,E=`${t}-unique-container`,[C,T]=te.useState(!1),M=Dx(o,a,l,c,f,m,h,p),w=te.useRef(M);a&&(w.current=M);const N={};return b&&(N.width=b.width,N.height=b.height),te.createElement(nr,kg({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${E}-hidden`},v,{visible:l,onVisibleChanged:R=>{T(R)}}),({className:R,style:_})=>{const z=W(E,R,$,{[`${E}-visible`]:C});return te.createElement("div",{className:z,style:{"--arrow-x":`${y?.x||0}px`,"--arrow-y":`${y?.y||0}px`,...w.current,...N,..._,...x}})})},BT=({children:e,postTriggerProps:t})=>{const[o,a,l,c]=AT(),f=u.useMemo(()=>!l||!t?l:t(l),[l,t]),[m,h]=u.useState(null),[p,y]=u.useState(null),b=u.useRef(null),v=Tt(G=>{b.current=G,tl(G)&&m!==G&&h(G)}),$=u.useRef(null),x=Fx(),E=Tt((G,Y)=>{$.current=Y,x(()=>{o(G)},G.delay)}),C=G=>{x(()=>{$.current?.()||o(!1)},G)},T=Tt(G=>{c(G)}),[M,w,N,R,_,z,B,,,H,I]=Vx(a,m,f?.target,f?.popupPlacement,f?.builtinPlacements||{},f?.popupAlign,void 0,!1),L=u.useMemo(()=>{if(!f)return"";const G=jx(f.builtinPlacements||{},f.prefixCls||"",H,!1);return W(G,f.getPopupClassNameFromAlign?.(H))},[H,f?.getPopupClassNameFromAlign,f?.builtinPlacements,f?.prefixCls]),V=u.useMemo(()=>({show:E,hide:C}),[]);u.useEffect(()=>{I()},[f?.target]);const k=Tt(()=>(I(),Promise.resolve())),U=u.useRef({}),F=u.useContext(Hu),P=u.useMemo(()=>({registerSubPopup:(G,Y)=>{U.current[G]=Y,F?.registerSubPopup(G,Y)}}),[F]),q=f?.prefixCls;return u.createElement(Ix.Provider,{value:V},e,f&&u.createElement(Hu.Provider,{value:P},u.createElement(Px,{ref:v,portal:Is,onEsc:f.onEsc,prefixCls:q,popup:f.popup,className:W(f.popupClassName,L,`${q}-unique-controlled`),style:f.popupStyle,target:f.target,open:a,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:T,ready:M,offsetX:w,offsetY:N,offsetR:R,offsetB:_,onAlign:I,onPrepare:k,onResize:G=>y({width:G.offsetWidth,height:G.offsetHeight}),arrowPos:{x:z,y:B},align:H,zIndex:f.zIndex,mask:f.mask,arrow:f.arrow,motion:f.popupMotion,maskMotion:f.maskMotion,getPopupContainer:f.getPopupContainer},u.createElement(_T,{prefixCls:q,isMobile:!1,ready:M,open:a,align:H,offsetR:R,offsetB:_,offsetX:w,offsetY:N,arrowPos:{x:z,y:B},popupSize:p,motion:f.popupMotion,uniqueContainerClassName:W(f.uniqueContainerClassName,L),uniqueContainerStyle:f.uniqueContainerStyle}))))};function HT(e=Is){return u.forwardRef((o,a)=>{const{prefixCls:l="rc-trigger-popup",children:c,action:f="hover",showAction:m,hideAction:h,popupVisible:p,defaultPopupVisible:y,onOpenChange:b,afterOpenChange:v,onPopupVisibleChange:$,afterPopupVisibleChange:x,mouseEnterDelay:E,mouseLeaveDelay:C=.1,focusDelay:T,blurDelay:M,mask:w,maskClosable:N=!0,getPopupContainer:R,forceRender:_,autoDestroy:z,popup:B,popupClassName:H,uniqueContainerClassName:I,uniqueContainerStyle:L,popupStyle:V,popupPlacement:k,builtinPlacements:U={},popupAlign:F,zIndex:P,stretch:q,getPopupClassNameFromAlign:G,fresh:Y,unique:Z,alignPoint:A,onPopupClick:D,onPopupAlign:K,arrow:Q,popupMotion:ee,maskMotion:ie,mobile:le,...de}=o,ye=z||!1,ve=p===void 0,we=!!le,be=u.useRef({}),Se=u.useContext(Hu),me=u.useMemo(()=>({registerSubPopup:($e,Qe)=>{be.current[$e]=Qe,Se?.registerSubPopup($e,Qe)}}),[Se]),he=u.useContext(Ix),pe=Sa(),[Pe,Le]=u.useState(null),Ee=u.useRef(null),Xe=Tt($e=>{Ee.current=$e,tl($e)&&Pe!==$e&&Le($e),Se?.registerSubPopup(pe,$e)}),[Oe,Re]=u.useState(null),De=u.useRef(null),Te=Tt($e=>{const Qe=th($e);tl(Qe)&&Oe!==Qe&&(Re(Qe),De.current=Qe)}),et={},it=Tt($e=>{const Qe=Oe;return Qe?.contains($e)||Bu(Qe)?.host===$e||$e===Qe||Pe?.contains($e)||Bu(Pe)?.host===$e||$e===Pe||Object.values(be.current).some(zo=>zo?.contains($e)||$e===zo)}),ft=Q?{...Q!==!0?Q:{}}:null,[Ue,dt]=yr(y||!1,p),Me=Ue||!1,xe=u.useMemo(()=>{const $e=typeof c=="function"?c({open:Me}):c;return u.Children.only($e)},[c,Me]),Ae=xe?.props||{},Ye=Tt(()=>Me),_e=Tt(($e=0)=>({popup:B,target:Oe,delay:$e,prefixCls:l,popupClassName:H,uniqueContainerClassName:I,uniqueContainerStyle:L,popupStyle:V,popupPlacement:k,builtinPlacements:U,popupAlign:F,zIndex:P,mask:w,maskClosable:N,popupMotion:ee,maskMotion:ie,arrow:ft,getPopupContainer:R,getPopupClassNameFromAlign:G,id:pe,onEsc:Ut}));Lt(()=>{he&&Z&&Oe&&!ve&&!Se&&(Me?he.show(_e(E),Ye):he.hide(C))},[Me,Oe]);const Ce=u.useRef(Me);Ce.current=Me;const Ie=Tt($e=>{Ps.flushSync(()=>{Me!==$e&&(dt($e),b?.($e),$?.($e))})}),mt=Fx(),ke=($e,Qe=0)=>{if(p!==void 0){mt(()=>{Ie($e)},Qe);return}if(he&&Z&&ve&&!Se){$e?he.show(_e(Qe),Ye):he.hide(Qe);return}mt(()=>{Ie($e)},Qe)};function Ut({top:$e}){$e&&ke(!1)}const[bt,je]=u.useState(!1);Lt($e=>{(!$e||Me)&&je(!0)},[Me]);const[Fe,ot]=u.useState(null),[Pt,Wt]=u.useState(null),vt=$e=>{Wt([$e.clientX,$e.clientY])},[un,Bn,Hn,Ve,Be,We,at,It,Zt,gn,jn]=Vx(Me,Pe,A&&Pt!==null?Pt:Oe,k,U,F,K,we),[Gt,rt]=RT(f,m,h),Ot=Gt.has("click"),$n=rt.has("click")||rt.has("contextMenu"),Ne=Tt(()=>{bt||jn()});zT(Me,Oe,Pe,Ne,()=>{Ce.current&&A&&$n&&ke(!1)}),Lt(()=>{Ne()},[Pt,k]),Lt(()=>{Me&&!U?.[k]&&Ne()},[JSON.stringify(F)]);const jt=u.useMemo(()=>{const $e=jx(U,l,gn,A);return W($e,G?.(gn))},[gn,G,U,l,A]);u.useImperativeHandle(a,()=>({nativeElement:De.current,popupElement:Ee.current,forceAlign:Ne}));const[lt,Vt]=u.useState(0),[pn,en]=u.useState(0),wn=()=>{if(q&&Oe){const $e=Oe.getBoundingClientRect();Vt($e.width),en($e.height)}},Xn=()=>{wn(),Ne()},rr=$e=>{je(!1),jn(),v?.($e),x?.($e)},Yt=()=>new Promise($e=>{wn(),ot(()=>$e)});Lt(()=>{Fe&&(jn(),Fe(),ot(null))},[Fe]);function or($e,Qe,zo,Ys,ri){et[$e]=(ao,...Ks)=>{(!ri||!ri())&&(Ys?.(ao),ke(Qe,zo)),Ae[$e]?.(ao,...Ks)}}const oo=Gt.has("touch"),tn=rt.has("touch"),Sr=u.useRef(!1);(oo||tn)&&(et.onTouchStart=(...$e)=>{Sr.current=!0,Ce.current&&tn?ke(!1):!Ce.current&&oo&&ke(!0),Ae.onTouchStart?.(...$e)}),(Ot||$n)&&(et.onClick=($e,...Qe)=>{Ce.current&&$n?ke(!1):!Ce.current&&Ot&&(vt($e),ke(!0)),Ae.onClick?.($e,...Qe),Sr.current=!1});const Ca=OT(Me,$n||tn,Oe,Pe,w,N,it,ke),Ro=Gt.has("hover"),ti=rt.has("hover");let Ke,fn;const nn=()=>Sr.current;if(Ro){const $e=Qe=>{vt(Qe)};or("onMouseEnter",!0,E,$e,nn),or("onPointerEnter",!0,E,$e,nn),Ke=Qe=>{(Me||bt)&&Pe?.contains(Qe.target)&&ke(!0,E)},A&&(et.onMouseMove=Qe=>{Ae.onMouseMove?.(Qe)})}ti&&(or("onMouseLeave",!1,C,void 0,nn),or("onPointerLeave",!1,C,void 0,nn),fn=()=>{ke(!1,C)}),Gt.has("focus")&&or("onFocus",!0,T),rt.has("focus")&&or("onBlur",!1,M),Gt.has("contextMenu")&&(et.onContextMenu=($e,...Qe)=>{Ce.current&&rt.has("contextMenu")?ke(!1):(vt($e),ke(!0)),$e.preventDefault(),Ae.onContextMenu?.($e,...Qe)});const Un=u.useRef(!1);Un.current||=_||Me||bt;const zn={...Ae,...et},xa={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach($e=>{de[$e]&&(xa[$e]=(...Qe)=>{zn[$e]?.(...Qe),de[$e](...Qe)})});const Ea={x:We,y:at};RC(Me,Oe,Xn);const ni=ya(Te,Ja(xe)),No=u.cloneElement(xe,{...zn,...xa,ref:ni});return u.createElement(u.Fragment,null,No,Un.current&&(!he||!Z)&&u.createElement(Hu.Provider,{value:me},u.createElement(Px,{portal:e,ref:Xe,prefixCls:l,popup:B,className:W(H,!we&&jt),style:V,target:Oe,onMouseEnter:Ke,onMouseLeave:fn,onPointerEnter:Ke,zIndex:P,open:Me,keepDom:bt,fresh:Y,onClick:D,onPointerDownCapture:Ca,mask:w,motion:ee,maskMotion:ie,onVisibleChanged:rr,onPrepare:Yt,forceRender:_,autoDestroy:ye,getPopupContainer:R,onEsc:Ut,align:gn,arrow:ft,arrowPos:Ea,ready:un,offsetX:Bn,offsetY:Hn,offsetR:Ve,offsetB:Be,onAlign:Ne,stretch:q,targetWidth:lt/It,targetHeight:pn/Zt,mobile:le})))})}const wh=HT(Is);function qx(e){return e&&te.isValidElement(e)&&e.type===te.Fragment}const Ux=(e,t,o)=>te.isValidElement(e)?te.cloneElement(e,typeof o=="function"?o(e.props||{}):o):t;function pa(e,t){return Ux(e,e,t)}const LT=({children:e})=>{const{getPrefixCls:t}=te.useContext(ut),o=t();return te.isValidElement(e)?te.createElement(nr,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:a,className:l})=>pa(e,c=>({className:W(c.className,l),style:{...c.style,...a}}))):e},fu=[null,null];function DT(e){if(fu[0]!==e){const t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),fu[0]=e,fu[1]=t}return fu[1]}const Gx=({children:e})=>{const t=o=>{const{id:a,builtinPlacements:l,popup:c}=o,f=typeof c=="function"?c():c,m=DT(l);return{...o,getPopupContainer:null,arrow:!1,popup:te.createElement(LT,{key:a},f),builtinPlacements:m}};return te.createElement(BT,{postTriggerProps:t},e)},Za=u.createContext(!1),Xx=({children:e,disabled:t})=>{const o=u.useContext(Za);return u.createElement(Za.Provider,{value:t??o},e)},rl=u.createContext(void 0),PT=({children:e,size:t})=>{const o=u.useContext(rl);return u.createElement(rl.Provider,{value:t||o},e)};function IT(){const e=u.useContext(Za),t=u.useContext(rl);return{componentDisabled:e,componentSize:t}}function jT(e,t,o){const a=e||{},l=a.inherit===!1||!t?{..._u,hashed:t?.hashed??_u.hashed,cssVar:t?.cssVar}:t,c=u.useId();return Ku(()=>{if(!e)return t;const f={...l.components};Object.keys(e.components||{}).forEach(p=>{f[p]={...f[p],...e.components[p]}});const m=`css-var-${c.replace(/:/g,"")}`,h={prefix:o?.prefixCls,...l.cssVar,...a.cssVar,key:a.cssVar?.key||m};return{...l,...a,token:{...l.token,...a.token},components:f,cssVar:h}},[a,l],(f,m)=>f.some((h,p)=>{const y=m[p];return!Cs(h,y,!0)}))}const G1=u.createContext(!0);function VT(e){const t=u.useContext(G1),{children:o}=e,[,a]=Dr(),{motion:l}=a,c=u.useRef(!1);return c.current||(c.current=t!==l),c.current?u.createElement(G1.Provider,{value:l},u.createElement(E6,{motion:l},o)):o}const FT=()=>null,qT=({iconPrefixCls:e,csp:t})=>(o6(e,t),null),UT=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],GT=e=>{const{prefixCls:t,iconPrefixCls:o,theme:a,holderRender:l}=e},XT=e=>{const{children:t,csp:o,autoInsertSpaceInButton:a,alert:l,affix:c,anchor:f,app:m,form:h,locale:p,componentSize:y,direction:b,space:v,splitter:$,virtual:x,dropdownMatchSelectWidth:E,popupMatchSelectWidth:C,popupOverflow:T,legacyLocale:M,parentContext:w,iconPrefixCls:N,theme:R,componentDisabled:_,segmented:z,statistic:B,spin:H,calendar:I,carousel:L,cascader:V,collapse:k,typography:U,checkbox:F,descriptions:P,divider:q,drawer:G,skeleton:Y,steps:Z,image:A,layout:D,list:K,mentions:Q,modal:ee,progress:ie,result:le,slider:de,breadcrumb:ye,masonry:ve,menu:we,pagination:be,input:Se,textArea:me,otp:he,empty:pe,badge:Pe,radio:Le,rate:Ee,ribbon:Xe,switch:Oe,transfer:Re,avatar:De,message:Te,tag:et,table:it,card:ft,cardMeta:Ue,tabs:dt,timeline:Me,timePicker:xe,upload:Ae,notification:Ye,tree:_e,colorPicker:Ce,datePicker:Ie,rangePicker:mt,flex:ke,wave:Ut,dropdown:bt,warning:je,tour:Fe,tooltip:ot,popover:Pt,popconfirm:Wt,qrcode:vt,floatButton:un,floatButtonGroup:Bn,variant:Hn,inputNumber:Ve,treeSelect:Be,watermark:We}=e,at=u.useCallback((lt,Vt)=>{const{prefixCls:pn}=e;if(Vt)return Vt;const en=pn||w.getPrefixCls("");return lt?`${en}-${lt}`:en},[w.getPrefixCls,e.prefixCls]),It=N||w.iconPrefixCls||rh,Zt=o||w.csp,gn=jT(R,w.theme,{prefixCls:at("")}),jn={csp:Zt,autoInsertSpaceInButton:a,alert:l,affix:c,anchor:f,app:m,locale:p||M,direction:b,space:v,splitter:$,virtual:x,popupMatchSelectWidth:C??E,popupOverflow:T,getPrefixCls:at,iconPrefixCls:It,theme:gn,segmented:z,statistic:B,spin:H,calendar:I,carousel:L,cascader:V,collapse:k,typography:U,checkbox:F,descriptions:P,divider:q,drawer:G,skeleton:Y,steps:Z,image:A,input:Se,textArea:me,otp:he,layout:D,list:K,mentions:Q,modal:ee,progress:ie,result:le,slider:de,breadcrumb:ye,masonry:ve,menu:we,pagination:be,empty:pe,badge:Pe,radio:Le,rate:Ee,ribbon:Xe,switch:Oe,transfer:Re,avatar:De,message:Te,tag:et,table:it,card:ft,cardMeta:Ue,tabs:dt,timeline:Me,timePicker:xe,upload:Ae,notification:Ye,tree:_e,colorPicker:Ce,datePicker:Ie,rangePicker:mt,flex:ke,wave:Ut,dropdown:bt,warning:je,tour:Fe,tooltip:ot,popover:Pt,popconfirm:Wt,qrcode:vt,floatButton:un,floatButtonGroup:Bn,variant:Hn,inputNumber:Ve,treeSelect:Be,watermark:We},Gt={...w};Object.keys(jn).forEach(lt=>{jn[lt]!==void 0&&(Gt[lt]=jn[lt])}),UT.forEach(lt=>{const Vt=e[lt];Vt&&(Gt[lt]=Vt)}),typeof a<"u"&&(Gt.button={autoInsertSpace:a,...Gt.button});const rt=Ku(()=>Gt,Gt,(lt,Vt)=>{const pn=Object.keys(lt),en=Object.keys(Vt);return pn.length!==en.length||pn.some(wn=>lt[wn]!==Vt[wn])}),{layer:Ot}=u.useContext(_s),$n=u.useMemo(()=>({prefixCls:It,csp:Zt,layer:Ot?"antd":void 0}),[It,Zt,Ot]);let Ne=u.createElement(u.Fragment,null,u.createElement(qT,{iconPrefixCls:It,csp:Zt}),u.createElement(FT,{dropdownMatchSelectWidth:E}),t);const xt=u.useMemo(()=>Ki(ma.Form?.defaultValidateMessages||{},rt.locale?.Form?.defaultValidateMessages||{},rt.form?.validateMessages||{},h?.validateMessages||{}),[rt,h?.validateMessages]);Object.keys(xt).length>0&&(Ne=u.createElement(fT.Provider,{value:xt},Ne)),p&&(Ne=u.createElement(tT,{locale:p,_ANT_MARK__:eT},Ne)),Ne=u.createElement(gh.Provider,{value:$n},Ne),y&&(Ne=u.createElement(PT,{size:y},Ne)),Ne=u.createElement(VT,null,Ne),ot?.unique&&(Ne=u.createElement(Gx,null,Ne));const jt=u.useMemo(()=>{const{algorithm:lt,token:Vt,components:pn,cssVar:en,...wn}=gn||{},Xn=lt&&(!Array.isArray(lt)||lt.length>0)?pg(lt):ix,rr={};Object.entries(pn||{}).forEach(([or,oo])=>{const tn={...oo};"algorithm"in tn&&(tn.algorithm===!0?tn.theme=Xn:(Array.isArray(tn.algorithm)||typeof tn.algorithm=="function")&&(tn.theme=pg(tn.algorithm)),delete tn.algorithm),rr[or]=tn});const Yt={...Ts,...Vt};return{...wn,theme:Xn,token:Yt,components:rr,override:{override:Yt,...rr},cssVar:en}},[gn]);return R&&(Ne=u.createElement(lx.Provider,{value:jt},Ne)),rt.warning&&(Ne=u.createElement(g4.Provider,{value:rt.warning},Ne)),_!==void 0&&(Ne=u.createElement(Xx,{disabled:_},Ne)),u.createElement(ut.Provider,{value:rt},Ne)},ei=e=>{const t=u.useContext(ut),o=u.useContext(vh);return u.createElement(XT,{parentContext:t,legacyLocale:o,...e})};ei.ConfigContext=ut;ei.SizeContext=rl;ei.config=GT;ei.useConfig=IT;Object.defineProperty(ei,"SizeContext",{get:()=>rl});const er={TAB:9,ENTER:13,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Lu.apply(this,arguments)}const WT=u.forwardRef((e,t)=>{const{prefixCls:o,style:a,className:l,duration:c=4.5,showProgress:f,pauseOnHover:m=!0,eventKey:h,content:p,closable:y,props:b,onClick:v,onNoticeClose:$,times:x,hovering:E}=e,[C,T]=u.useState(!1),[M,w]=u.useState(0),[N,R]=u.useState(0),_=E||C,z=typeof c=="number"?c:0,B=z>0&&f,H=()=>{$(h)},I=F=>{(F.key==="Enter"||F.code==="Enter"||F.keyCode===er.ENTER)&&H()};u.useEffect(()=>{if(!_&&z>0){const F=Date.now()-N,P=setTimeout(()=>{H()},z*1e3-N);return()=>{m&&clearTimeout(P),R(Date.now()-F)}}},[z,_,x]),u.useEffect(()=>{if(!_&&B&&(m||N===0)){const F=performance.now();let P;const q=()=>{cancelAnimationFrame(P),P=requestAnimationFrame(G=>{const Y=G+N-F,Z=Math.min(Y/(z*1e3),1);w(Z*100),Z<1&&q()})};return q(),()=>{m&&cancelAnimationFrame(P)}}},[z,N,_,B,x]);const L=u.useMemo(()=>typeof y=="object"&&y!==null?y:{},[y]),V=da(L,!0),k=100-(!M||M<0?0:M>100?100:M),U=`${o}-notice`;return u.createElement("div",Lu({},b,{ref:t,className:W(U,l,{[`${U}-closable`]:y}),style:a,onMouseEnter:F=>{T(!0),b?.onMouseEnter?.(F)},onMouseLeave:F=>{T(!1),b?.onMouseLeave?.(F)},onClick:v}),u.createElement("div",{className:`${U}-content`},p),y&&u.createElement("button",Lu({className:`${U}-close`,onKeyDown:I,"aria-label":"Close"},V,{onClick:F=>{F.preventDefault(),F.stopPropagation(),H()}}),L.closeIcon??"x"),B&&u.createElement("progress",{className:`${U}-progress`,max:"100",value:k},k+"%"))}),Wx=te.createContext({}),Yx=({children:e,classNames:t})=>te.createElement(Wx.Provider,{value:{classNames:t}},e),X1=8,W1=3,Y1=16,YT=e=>{const t={offset:X1,threshold:W1,gap:Y1};return e&&typeof e=="object"&&(t.offset=e.offset??X1,t.threshold=e.threshold??W1,t.gap=e.gap??Y1),[!!e,t]};function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Du.apply(this,arguments)}const KT=e=>{const{configList:t,placement:o,prefixCls:a,className:l,style:c,motion:f,onAllNoticeRemoved:m,onNoticeClose:h,stack:p}=e,{classNames:y}=u.useContext(Wx),b=u.useRef({}),[v,$]=u.useState(null),[x,E]=u.useState([]),C=t.map(z=>({config:z,key:String(z.key)})),[T,{offset:M,threshold:w,gap:N}]=YT(p),R=T&&(x.length>0||C.length<=w),_=typeof f=="function"?f(o):f;return u.useEffect(()=>{T&&x.length>1&&E(z=>z.filter(B=>C.some(({key:H})=>B===H)))},[x,C,T]),u.useEffect(()=>{T&&b.current[C[C.length-1]?.key]&&$(b.current[C[C.length-1]?.key])},[C,T]),te.createElement(j6,Du({key:o,className:W(a,`${a}-${o}`,y?.list,l,{[`${a}-stack`]:!!T,[`${a}-stack-expanded`]:R}),style:c,keys:C,motionAppear:!0},_,{onAllRemoved:()=>{m(o)}}),({config:z,className:B,style:H,index:I},L)=>{const{key:V,times:k}=z,U=String(V),{className:F,style:P,classNames:q,styles:G,...Y}=z,Z=C.findIndex(D=>D.key===U),A={};if(T){const D=C.length-1-(Z>-1?Z:I-1),K=o==="top"||o==="bottom"?"-50%":"0";if(D>0){A.height=R?b.current[U]?.offsetHeight:v?.offsetHeight;let Q=0;for(let le=0;le<D;le++)Q+=b.current[C[C.length-1-le].key]?.offsetHeight+N;const ee=(R?Q:D*M)*(o.startsWith("top")?1:-1),ie=!R&&v?.offsetWidth&&b.current[U]?.offsetWidth?(v?.offsetWidth-M*2*(D<3?D:3))/b.current[U]?.offsetWidth:1;A.transform=`translate3d(${K}, ${ee}px, 0) scaleX(${ie})`}else A.transform=`translate3d(${K}, 0, 0)`}return te.createElement("div",{ref:L,className:W(`${a}-notice-wrapper`,B,q?.wrapper),style:{...H,...A,...G?.wrapper},onMouseEnter:()=>E(D=>D.includes(U)?D:[...D,U]),onMouseLeave:()=>E(D=>D.filter(K=>K!==U))},te.createElement(WT,Du({},Y,{ref:D=>{Z>-1?b.current[U]=D:delete b.current[U]},prefixCls:a,classNames:q,styles:G,className:W(F,y?.notice),style:P,times:k,key:V,eventKey:V,onNoticeClose:h,hovering:T&&x.length>0})))})},kT=u.forwardRef((e,t)=>{const{prefixCls:o="rc-notification",container:a,motion:l,maxCount:c,className:f,style:m,onAllRemoved:h,stack:p,renderNotifications:y}=e,[b,v]=u.useState([]),$=w=>{const N=b.find(B=>B.key===w),R=N?.closable,_=R&&typeof R=="object"?R:{},{onClose:z}=_;z?.(),N?.onClose?.(),v(B=>B.filter(H=>H.key!==w))};u.useImperativeHandle(t,()=>({open:w=>{v(N=>{let R=[...N];const _=R.findIndex(B=>B.key===w.key),z={...w};return _>=0?(z.times=(N[_]?.times||0)+1,R[_]=z):(z.times=0,R.push(z)),c>0&&R.length>c&&(R=R.slice(-c)),R})},close:w=>{$(w)},destroy:()=>{v([])}}));const[x,E]=u.useState({});u.useEffect(()=>{const w={};b.forEach(N=>{const{placement:R="topRight"}=N;R&&(w[R]=w[R]||[],w[R].push(N))}),Object.keys(x).forEach(N=>{w[N]=w[N]||[]}),E(w)},[b]);const C=w=>{E(N=>{const R={...N};return(R[w]||[]).length||delete R[w],R})},T=u.useRef(!1);if(u.useEffect(()=>{Object.keys(x).length>0?T.current=!0:T.current&&(h?.(),T.current=!1)},[x]),!a)return null;const M=Object.keys(x);return Ps.createPortal(u.createElement(u.Fragment,null,M.map(w=>{const N=x[w],R=u.createElement(KT,{key:w,configList:N,placement:w,prefixCls:o,className:f?.(w),style:m?.(w),motion:l,onNoticeClose:$,onAllNoticeRemoved:C,stack:p});return y?y(R,{prefixCls:o,key:w}):R})),a)}),QT=()=>document.body;let K1=0;function ZT(...e){const t={};return e.forEach(o=>{o&&Object.keys(o).forEach(a=>{const l=o[a];l!==void 0&&(t[a]=l)})}),t}function Kx(e={}){const{getContainer:t=QT,motion:o,prefixCls:a,maxCount:l,className:c,style:f,onAllRemoved:m,stack:h,renderNotifications:p,...y}=e,[b,v]=u.useState(),$=u.useRef(),x=u.createElement(kT,{container:b,ref:$,prefixCls:a,motion:o,maxCount:l,className:c,style:f,onAllRemoved:m,stack:h,renderNotifications:p}),[E,C]=u.useState([]),T=Tt(w=>{const N=ZT(y,w);(N.key===null||N.key===void 0)&&(N.key=`rc-notification-${K1}`,K1+=1),C(R=>[...R,{type:"open",config:N}])}),M=u.useMemo(()=>({open:T,close:w=>{C(N=>[...N,{type:"close",key:w}])},destroy:()=>{C(w=>[...w,{type:"destroy"}])}}),[]);return u.useEffect(()=>{v(t())}),u.useEffect(()=>{if($.current&&E.length){E.forEach(R=>{switch(R.type){case"open":$.current.open(R.config);break;case"close":$.current.close(R.key);break;case"destroy":$.current.destroy();break}});let w,N;C(R=>((w!==R||!N)&&(w=R,N=R.filter(_=>!E.includes(_))),N))}},[E]),[M,x]}var JT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Qg.apply(this,arguments)}const eM=(e,t)=>u.createElement(Dt,Qg({},e,{ref:t,icon:JT})),Th=u.forwardRef(eM),tM=e=>{const{componentCls:t,iconCls:o,boxShadow:a,colorText:l,colorSuccess:c,colorError:f,colorWarning:m,colorInfo:h,fontSizeLG:p,motionEaseInOutCirc:y,motionDurationSlow:b,marginXS:v,paddingXS:$,borderRadiusLG:x,zIndexPopup:E,contentPadding:C,contentBg:T}=e,M=`${t}-notice`,w=new Mt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:$,transform:"translateY(0)",opacity:1}}),N=new Mt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:$,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),R={padding:$,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${o}`]:{marginInlineEnd:v,fontSize:p},[`${M}-content`]:{display:"inline-block",padding:C,background:T,borderRadius:x,boxShadow:a,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:c},[`${t}-error > ${o}`]:{color:f},[`${t}-warning > ${o}`]:{color:m},[`${t}-info > ${o},
129
+ ${t}-loading > ${o}`]:{color:h}};return[{[t]:{...Pr(e),color:l,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:E,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
130
+ ${t}-move-up-appear,
131
+ ${t}-move-up-enter
132
+ `]:{animationName:w,animationDuration:b,animationPlayState:"paused",animationTimingFunction:y},[`
133
+ ${t}-move-up-appear${t}-move-up-appear-active,
134
+ ${t}-move-up-enter${t}-move-up-enter-active
135
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:N,animationDuration:b,animationPlayState:"paused",animationTimingFunction:y},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${M}-wrapper`]:{...R}}},{[`${t}-notice-pure-panel`]:{...R,padding:0,textAlign:"start"}}]},nM=e=>({zIndexPopup:e.zIndexPopupBase+xh+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),rM=Xt("Message",e=>{const t=qt(e,{height:150});return tM(t)},nM),oM={info:u.createElement(yh,null),success:u.createElement(ph,null),error:u.createElement(nf,null),warning:u.createElement(hh,null),loading:u.createElement(Th,null)},aM=e=>{const{prefixCls:t,type:o,icon:a,children:l,classNames:c,styles:f}=e,m=a||o&&oM[o],h=pa(m,p=>{const y={...p?.style,...f?.icon};return{className:W(p.className,c?.icon),style:y}});return u.createElement("div",{className:W(`${t}-custom-content`,`${t}-${o}`)},h,u.createElement("span",{className:c?.content,style:f?.content},l))};function iM(e,t){return{motionName:t??`${e}-move-up`}}function lM(e){let t;const o=new Promise(l=>{t=e(()=>{l(!0)})}),a=()=>{t?.()};return a.then=(l,c)=>o.then(l,c),a.promise=o,a}const sM=8,cM=3,uM=({children:e,prefixCls:t})=>{const o=va(t),[a,l]=rM(t,o);return u.createElement(Yx,{classNames:{list:W(a,l,o)}},e)},fM=(e,{prefixCls:t,key:o})=>u.createElement(uM,{prefixCls:t,key:o},e),dM=u.forwardRef((e,t)=>{const{top:o,prefixCls:a,getContainer:l,maxCount:c,duration:f=cM,rtl:m,transitionName:h,onAllRemoved:p,pauseOnHover:y=!0}=e,{getPrefixCls:b,direction:v,getPopupContainer:$}=cn("message"),{message:x}=u.useContext(ut),E=a||b("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:o??sM}),T=()=>W({[`${E}-rtl`]:m??v==="rtl"}),M=()=>iM(E,h),[w,N]=Nn([e?.classNames,x?.classNames],[e?.styles,x?.styles],{props:e}),[R,_]=Kx({prefixCls:E,style:C,className:T,motion:M,closable:!1,duration:f,getContainer:()=>l?.()||$?.()||document.body,maxCount:c,onAllRemoved:p,renderNotifications:fM,pauseOnHover:y});return u.useImperativeHandle(t,()=>({...R,prefixCls:E,message:x,classNames:w,styles:N})),_});let k1=0;function mM(e){const t=u.useRef(null);return[u.useMemo(()=>{const a=h=>{t.current?.close(h)},l=h=>{if(!t.current){const A=()=>{};return A.then=()=>{},A}const{open:p,prefixCls:y,message:b,classNames:v,styles:$}=t.current,x=b?.className||{},E=b?.style||{},C=b?.classNames||{},T=b?.styles||{},M=`${y}-notice`,{content:w,icon:N,type:R,key:_,className:z,style:B,onClose:H,classNames:I={},styles:L={},...V}=h;let k=_;vr(k)||(k1+=1,k=`antd-message-${k1}`);const U={...e,...h},F=la(C,{props:U}),P=la(I,{props:U}),q=la(T,{props:U}),G=la(L,{props:U}),Y=rf(void 0,F,P,v),Z=Ch(q,G,$);return lM(A=>(p({...V,key:k,content:u.createElement(aM,{prefixCls:y,type:R,icon:N,classNames:Y,styles:Z},w),placement:"top",className:W({[`${M}-${R}`]:R},z,x,Y.root),style:{...Z.root,...E,...B},onClose:()=>{H?.(),A()}}),()=>{a(k)}))},f={open:l,destroy:h=>{h!==void 0?a(h):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(h=>{const p=(y,b,v)=>{let $;y&&typeof y=="object"&&"content"in y?$=y:$={content:y};let x,E;typeof b=="function"?E=b:(x=b,E=v);const C={onClose:E,duration:x,...$,type:h};return l(C)};f[h]=p}),f},[]),u.createElement(dM,{key:"message-holder",...e,ref:t})]}function gM(e){return mM(e)}const Pu="__rc_react_root__";function pM(e,t){const o=t[Pu]||xC.createRoot(t);o.render(e),t[Pu]=o}async function hM(e){return Promise.resolve().then(()=>{e[Pu]?.unmount(),delete e[Pu]})}const ha=(e,t,o)=>o!==void 0?o:`${e}-${t}`,yM=e=>{const{componentCls:t,colorPrimary:o,motionDurationSlow:a,motionEaseInOut:l,motionEaseOutCirc:c,antCls:f}=e,[,m]=to(f,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:m("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(h=>`${h} ${c}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(h=>`${h} ${a} ${l}`).join(",")}}}}},bM=r6("Wave",yM),kx=`${fg}-wave-target`;function Q1(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function vM(e,t=null){const o=getComputedStyle(e),{borderTopColor:a,borderColor:l,backgroundColor:c}=o;return t&&Q1(o[t])?o[t]:[a,l,c].find(Q1)??null}function Hm(e){return Number.isNaN(e)?0:e}const SM=e=>{const{className:t,target:o,component:a,colorSource:l}=e,c=u.useRef(null),{getPrefixCls:f}=u.useContext(ut),m=f(),[h]=to(m,"wave"),[p,y]=u.useState(null),[b,v]=u.useState([]),[$,x]=u.useState(0),[E,C]=u.useState(0),[T,M]=u.useState(0),[w,N]=u.useState(0),[R,_]=u.useState(!1),z={left:$,top:E,width:T,height:w,borderRadius:b.map(I=>`${I}px`).join(" ")};p&&(z[h("color")]=p);function B(){const I=getComputedStyle(o);y(vM(o,l));const L=I.position==="static",{borderLeftWidth:V,borderTopWidth:k}=I;x(L?o.offsetLeft:Hm(-Number.parseFloat(V))),C(L?o.offsetTop:Hm(-Number.parseFloat(k))),M(o.offsetWidth),N(o.offsetHeight);const{borderTopLeftRadius:U,borderTopRightRadius:F,borderBottomLeftRadius:P,borderBottomRightRadius:q}=I;v([U,F,q,P].map(G=>Hm(Number.parseFloat(G))))}if(u.useEffect(()=>{if(o){const I=En(()=>{B(),_(!0)});let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(B),L.observe(o)),()=>{En.cancel(I),L?.disconnect()}}},[o]),!R)return null;const H=(a==="Checkbox"||a==="Radio")&&o?.classList.contains(kx);return u.createElement(nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(I,L)=>{if(L.deadline||L.propertyName==="opacity"){const V=c.current?.parentElement;hM(V).then(()=>{V?.remove()})}return!1}},({className:I},L)=>u.createElement("div",{ref:Hr(c,L),className:W(t,I,{"wave-quick":H}),style:z}))},CM=(e,t)=>{const{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e?.insertBefore(a,e?.firstChild),pM(u.createElement(SM,{...t,target:e}),a)},xM=(e,t,o,a)=>{const{wave:l}=u.useContext(ut),[,c,f]=Dr(),m=Tt(y=>{const b=e.current;if(l?.disabled||!b)return;const v=b.querySelector(`.${kx}`)||b,{showEffect:$}=l||{};($||CM)(v,{className:t,token:c,component:o,event:y,hashId:f,colorSource:a})}),h=u.useRef(null);return u.useEffect(()=>()=>{En.cancel(h.current)},[]),y=>{En.cancel(h.current),h.current=En(()=>{m(y)})}},Qx=e=>{const{children:t,disabled:o,component:a,colorSource:l}=e,{getPrefixCls:c}=u.useContext(ut),f=u.useRef(null),m=c("wave"),h=bM(m),p=xM(f,W(m,h),a,l);if(te.useEffect(()=>{const b=f.current;if(!b||b.nodeType!==window.Node.ELEMENT_NODE||o)return;const v=$=>{!$h($.target)||!b.getAttribute||b.getAttribute("disabled")||b.disabled||b.className.includes("disabled")&&!b.className.includes("disabled:")||b.getAttribute("aria-disabled")==="true"||b.className.includes("-leave")||p($)};return b.addEventListener("click",v,!0),()=>{b.removeEventListener("click",v,!0)}},[o]),!te.isValidElement(t))return t??null;const y=il(t)?Hr(Ja(t),f):f;return pa(t,{ref:y})},no=e=>{const t=te.useContext(rl);return te.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},EM=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},$M=Xt(["Space","Compact"],EM,()=>({}),{resetStyle:!1}),af=u.createContext(null),Mh=(e,t)=>{const o=u.useContext(af),a=u.useMemo(()=>{if(!o)return"";const{compactDirection:l,isFirstItem:c,isLastItem:f}=o,m=l==="vertical"?"-vertical-":"-";return W(`${e}-compact${m}item`,{[`${e}-compact${m}first-item`]:c,[`${e}-compact${m}last-item`]:f,[`${e}-compact${m}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:a}},wM=e=>{const{children:t}=e;return u.createElement(af.Provider,{value:null},t)},TM=e=>{const{children:t,...o}=e;return u.createElement(af.Provider,{value:u.useMemo(()=>o,[o])},t)},MM=e=>{const{getPrefixCls:t,direction:o}=u.useContext(ut),{size:a,direction:l,orientation:c,block:f,prefixCls:m,className:h,rootClassName:p,children:y,vertical:b,...v}=e,[$,x]=Ds(c,b,l),E=no(_=>a??_),C=t("space-compact",m),[T]=$M(C),M=W(C,T,{[`${C}-rtl`]:o==="rtl",[`${C}-block`]:f,[`${C}-vertical`]:x},h,p),w=u.useContext(af),N=br(y),R=u.useMemo(()=>N.map((_,z)=>{const B=_?.key||`${C}-item-${z}`;return u.createElement(TM,{key:B,compactSize:E,compactDirection:$,isFirstItem:z===0&&(!w||w?.isFirstItem),isLastItem:z===N.length-1&&(!w||w?.isLastItem)},_)}),[N,w,$,E,C]);return N.length===0?null:u.createElement("div",{className:M,...v},R)},Zx=u.createContext(void 0),RM=e=>{const{getPrefixCls:t,direction:o}=u.useContext(ut),{prefixCls:a,size:l,className:c,...f}=e,m=t("btn-group",a),[,,h]=Dr(),p=u.useMemo(()=>{switch(l){case"large":return"lg";case"small":return"sm";default:return""}},[l]),y=W(m,{[`${m}-${p}`]:p,[`${m}-rtl`]:o==="rtl"},c,h);return u.createElement(Zx.Provider,{value:l},u.createElement("div",{...f,className:y}))},Z1=/^[\u4E00-\u9FA5]{2}$/,Zg=Z1.test.bind(Z1);function Jx(e){return e==="danger"?{danger:!0}:{type:e}}function J1(e){return typeof e=="string"}function Lm(e){return e==="text"||e==="link"}function NM(e,t,o,a){if(!vr(e)||e==="")return;const l=t?" ":"";return typeof e!="string"&&typeof e!="number"&&J1(e.type)&&Zg(e.props.children)?pa(e,c=>{const f=W(c.className,a)||void 0,m={...o,...c.style};return{...c,children:c.children.split("").join(l),className:f,style:m}}):J1(e)?te.createElement("span",{className:a,style:o},Zg(e)?e.split("").join(l):e):qx(e)?te.createElement("span",{className:a,style:o},e):pa(e,c=>({...c,className:W(c.className,a)||void 0,style:{...c.style,...o}}))}function zM(e,t,o,a){let l=!1;const c=[];return te.Children.forEach(e,f=>{const m=typeof f,h=m==="string"||m==="number";if(l&&h){const p=c.length-1,y=c[p];c[p]=`${y}${f}`}else c.push(f);l=h}),te.Children.map(c,f=>NM(f,t,o,a))}["default","primary","danger"].concat(sn(Mo));const eE=u.forwardRef((e,t)=>{const{className:o,style:a,children:l,prefixCls:c}=e,f=W(`${c}-icon`,o);return te.createElement("span",{ref:t,className:f,style:a},l)}),eS=u.forwardRef((e,t)=>{const{prefixCls:o,className:a,style:l,iconClassName:c}=e,f=W(`${o}-loading-icon`,a);return te.createElement(eE,{prefixCls:o,className:f,style:l,ref:t},te.createElement(Th,{className:c}))}),Dm=()=>({width:0,opacity:0,transform:"scale(0)"}),Pm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),OM=e=>{const{prefixCls:t,loading:o,existIcon:a,className:l,style:c,mount:f}=e,m=!!o;return a?te.createElement(eS,{prefixCls:t,className:l,style:c}):te.createElement(nr,{visible:m,motionName:`${t}-loading-icon-motion`,motionAppear:!f,motionEnter:!f,motionLeave:!f,removeOnLeave:!0,onAppearStart:Dm,onAppearActive:Pm,onEnterStart:Dm,onEnterActive:Pm,onLeaveStart:Pm,onLeaveActive:Dm},({className:h,style:p},y)=>{const b={...c,...p};return te.createElement(eS,{prefixCls:t,className:W(l,h),style:b,ref:y})})},tS=e=>({animationDuration:e,animationFillMode:"both"}),Rh=(e,t,o,a,l=!1)=>{const c=l?"&":"";return{[`
136
+ ${c}${e}-enter,
137
+ ${c}${e}-appear
138
+ `]:{...tS(a),animationPlayState:"paused"},[`${c}${e}-leave`]:{...tS(a),animationPlayState:"paused"},[`
139
+ ${c}${e}-enter${e}-enter-active,
140
+ ${c}${e}-appear${e}-appear-active
141
+ `]:{animationName:t,animationPlayState:"running"},[`${c}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}},AM=new Mt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_M=new Mt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),tE=(e,t=!1)=>{const{antCls:o}=e,a=`${o}-fade`,l=t?"&":"";return[Rh(a,AM,_M,e.motionDurationMid,t),{[`
142
+ ${l}${a}-enter,
143
+ ${l}${a}-appear
144
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${a}-leave`]:{animationTimingFunction:"linear"}}]},BM=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),HM=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),LM=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),DM=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),PM=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),IM=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),jM=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),VM=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),FM={"slide-up":{inKeyframes:BM,outKeyframes:HM},"slide-down":{inKeyframes:LM,outKeyframes:DM},"slide-left":{inKeyframes:PM,outKeyframes:IM},"slide-right":{inKeyframes:jM,outKeyframes:VM}},nS=(e,t)=>{const{antCls:o}=e,a=`${o}-${t}`,{inKeyframes:l,outKeyframes:c}=FM[t];return[Rh(a,l,c,e.motionDurationMid),{[`
145
+ ${a}-enter,
146
+ ${a}-appear
147
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${a}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},qM=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),UM=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GM=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),rS=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),oS=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),XM=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),WM=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),YM=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),KM=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),kM=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),QM=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ZM=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),JM=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),eR={zoom:{inKeyframes:UM,outKeyframes:GM},"zoom-big":{inKeyframes:rS,outKeyframes:oS},"zoom-big-fast":{inKeyframes:rS,outKeyframes:oS},"zoom-left":{inKeyframes:YM,outKeyframes:KM},"zoom-right":{inKeyframes:kM,outKeyframes:QM},"zoom-up":{inKeyframes:XM,outKeyframes:WM},"zoom-down":{inKeyframes:ZM,outKeyframes:JM}},nE=(e,t)=>{const{antCls:o}=e,a=`${o}-${t}`,{inKeyframes:l,outKeyframes:c}=eR[t];return[Rh(a,l,c,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
148
+ ${a}-enter,
149
+ ${a}-appear
150
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${a}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},aS=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),tR=e=>{const{componentCls:t,fontSize:o,lineWidth:a,groupBorderColor:l,colorErrorHover:c}=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(a).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:o}},aS(`${t}-primary`,l),aS(`${t}-danger`,c)]}},Im=e=>Math.round(Number(e||0)),nR=e=>{if(e instanceof zt)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...o}=e;return{...o,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Ns extends zt{constructor(t){super(nR(t))}toHsbString(){const t=this.toHsb(),o=Im(t.s*100),a=Im(t.b*100),l=Im(t.h),c=t.a,f=`hsb(${l}, ${o}%, ${a}%)`,m=`hsba(${l}, ${o}%, ${a}%, ${c.toFixed(c===0?0:2)})`;return c===1?f:m}toHsb(){const{v:t,...o}=this.toHsv();return{...o,b:t,a:this.a}}}const rR=e=>e instanceof Ns?e:new Ns(e);rR("#1677ff");const oR=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",aR=(e,t)=>e?oR(e,t):"";let Iu=(function(){function e(t){if(sl(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:a,percent:l})=>({color:new e(a),percent:l})),this.metaColor=new Ns(this.colors[0].color.metaColor)):this.metaColor=new Ns(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return cl(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return aR(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:o}=this;return o?`linear-gradient(90deg, ${o.map(l=>`${l.color.toRgbString()} ${l.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((a,l)=>{const c=o.colors[l];return a.percent===c.percent&&a.color.equals(c.color)}):this.toHexString()===o.toHexString()}}])})();var iR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Jg.apply(this,arguments)}const lR=(e,t)=>u.createElement(Dt,Jg({},e,{ref:t,icon:iR})),iS=u.forwardRef(lR);function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},_r.apply(null,arguments)}const sR=e=>e instanceof Iu?e:new Iu(e),rE=(e,t)=>{const{r:o,g:a,b:l,a:c}=e.toRgb(),f=new Ns(e.toRgbString()).onBackground(t).toHsv();return c<=.5?f.v>.5:o*.299+a*.587+l*.114>192},oE=e=>{const{paddingInline:t,onlyIconSize:o,borderColorDisabled:a}=e;return qt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:a})},aE=e=>{const t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,a=e.contentFontSizeLG??e.fontSizeLG,l=e.contentLineHeight??$u(t),c=e.contentLineHeightSM??$u(o),f=e.contentLineHeightLG??$u(a),m=rE(new Iu(e.colorBgSolid),"#fff")?"#000":"#fff",h=Mo.reduce((b,v)=>({...b,[`${v}ShadowColor`]:`0 ${ae(e.controlOutlineWidth)} 0 ${cs(e[`${v}1`],e.colorBgContainer)}`}),{}),p=e.colorBgContainerDisabled,y=e.colorBgContainerDisabled;return{...h,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:a,contentLineHeight:l,contentLineHeightSM:c,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-t*l)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*c)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-a*f)/2-e.lineWidth,0),defaultBgDisabled:p,dashedBgDisabled:y}},cR=e=>{const{componentCls:t,antCls:o,lineWidth:a}=e,[l,c]=to(o,"btn");return{[t]:[{[l("border-width")]:a,[l("border-color")]:"#000",[l("border-color-hover")]:c("border-color"),[l("border-color-active")]:c("border-color"),[l("border-color-disabled")]:c("border-color"),[l("border-style")]:"solid",[l("text-color")]:"#000",[l("text-color-hover")]:c("text-color"),[l("text-color-active")]:c("text-color"),[l("text-color-disabled")]:c("text-color"),[l("bg-color")]:"#ddd",[l("bg-color-hover")]:c("bg-color"),[l("bg-color-active")]:c("bg-color"),[l("bg-color-disabled")]:e.colorBgContainerDisabled,[l("bg-color-container")]:e.colorBgContainer,[l("shadow")]:"none"},{border:[c("border-width"),c("border-style"),c("border-color")].join(" "),color:c("text-color"),backgroundColor:c("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[c("border-width"),c("border-style"),c("border-color-hover")].join(" "),color:c("text-color-hover"),backgroundColor:c("bg-color-hover")},"&:active":{border:[c("border-width"),c("border-style"),c("border-color-active")].join(" "),color:c("text-color-active"),backgroundColor:c("bg-color-active")}}},{[`&${t}-variant-solid`]:{[l("solid-bg-color")]:c("color-base"),[l("solid-bg-color-hover")]:c("color-hover"),[l("solid-bg-color-active")]:c("color-active"),[l("border-color")]:"transparent",[l("text-color")]:e.colorTextLightSolid,[l("bg-color")]:c("solid-bg-color"),[l("bg-color-hover")]:c("solid-bg-color-hover"),[l("bg-color-active")]:c("solid-bg-color-active"),boxShadow:c("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("border-color")]:c("color-base"),[l("border-color-hover")]:c("color-hover"),[l("border-color-active")]:c("color-active"),[l("bg-color")]:c("bg-color-container"),[l("text-color")]:c("color-base"),[l("text-color-hover")]:c("color-hover"),[l("text-color-active")]:c("color-active"),boxShadow:c("shadow")},[`&${t}-variant-dashed`]:{[l("border-style")]:"dashed",[l("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[l("border-color")]:"transparent",[l("text-color")]:c("color-base"),[l("bg-color")]:c("color-light"),[l("bg-color-hover")]:c("color-light-hover"),[l("bg-color-active")]:c("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[l("border-color")]:"transparent",[l("text-color")]:c("color-base"),[l("text-color-hover")]:c("color-hover"),[l("text-color-active")]:c("color-active"),[l("bg-color")]:"transparent",[l("bg-color-hover")]:"transparent",[l("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[l("bg-color-hover")]:c("color-light"),[l("bg-color-active")]:c("color-light-active")}},{[`&${t}-variant-link`]:{[l("color-base")]:e.colorLink,[l("color-hover")]:e.colorLinkHover,[l("color-active")]:e.colorLinkActive,[l("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[l("color-base")]:e.colorPrimary,[l("color-hover")]:e.colorPrimaryHover,[l("color-active")]:e.colorPrimaryActive,[l("color-light")]:e.colorPrimaryBg,[l("color-light-hover")]:e.colorPrimaryBgHover,[l("color-light-active")]:e.colorPrimaryBorder,[l("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.primaryColor,[l("text-color-hover")]:c("text-color"),[l("text-color-active")]:c("text-color")}},[`&${t}-color-dangerous`]:{[l("color-base")]:e.colorError,[l("color-hover")]:e.colorErrorHover,[l("color-active")]:e.colorErrorActive,[l("color-light")]:e.colorErrorBg,[l("color-light-hover")]:e.colorErrorBgFilledHover,[l("color-light-active")]:e.colorErrorBgActive,[l("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[l("text-color")]:e.dangerColor,[l("text-color-hover")]:c("text-color"),[l("text-color-active")]:c("text-color")}},[`&${t}-color-default`]:{[l("solid-bg-color")]:e.colorBgSolid,[l("solid-bg-color-hover")]:e.colorBgSolidHover,[l("solid-bg-color-active")]:e.colorBgSolidActive,[l("color-base")]:e.defaultBorderColor,[l("color-hover")]:e.defaultHoverBorderColor,[l("color-active")]:e.defaultActiveBorderColor,[l("color-light")]:e.colorFillTertiary,[l("color-light-hover")]:e.colorFillSecondary,[l("color-light-active")]:e.colorFill,[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[l("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[l("text-color")]:e.solidTextColor,[l("text-color-hover")]:c("text-color"),[l("text-color-active")]:c("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[l("text-color-hover")]:c("text-color"),[l("text-color-active")]:c("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultColor,[l("text-color-hover")]:e.defaultHoverColor,[l("text-color-active")]:e.defaultActiveColor,[l("bg-color-container")]:e.defaultBg,[l("bg-color-hover")]:e.defaultHoverBg,[l("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[l("text-color")]:e.textTextColor,[l("text-color-hover")]:e.textTextHoverColor,[l("text-color-active")]:e.textTextActiveColor,[l("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("text-color")]:e.defaultGhostColor,[l("border-color")]:e.defaultGhostBorderColor}}}},Mo.map(f=>{const m=e[`${f}6`],h=e[`${f}1`],p=e[`${f}Hover`],y=e[`${f}2`],b=e[`${f}3`],v=e[`${f}Active`],$=e[`${f}ShadowColor`];return{[`&${t}-color-${f}`]:{[l("color-base")]:m,[l("color-hover")]:p,[l("color-active")]:v,[l("color-light")]:h,[l("color-light-hover")]:y,[l("color-light-active")]:b,[l("shadow")]:$}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:c("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[l("bg-color")]:e.ghostBg,[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg,[l("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[l("bg-color-hover")]:e.ghostBg,[l("bg-color-active")]:e.ghostBg}}}]}},uR=e=>{const{componentCls:t,iconCls:o,fontWeight:a,opacityLoading:l,motionDurationSlow:c,motionEaseInOut:f,iconGap:m,calc:h}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:m,alignItems:"center",justifyContent:"center",fontWeight:a,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...qM(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ux(),"> a":{color:"currentColor"},"&:not(:disabled)":eo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:l,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${c} ${f}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:h(m).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:h(m).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:h(m).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:h(m).mul(-1).equal()}}}}}},fR=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Nh=(e,t="")=>{const{componentCls:o,controlHeight:a,fontSize:l,borderRadius:c,buttonPaddingHorizontal:f,iconCls:m,buttonPaddingVertical:h,buttonIconOnlyFontSize:p}=e;return[{[t]:{fontSize:l,height:a,padding:`${ae(h)} ${ae(f)}`,borderRadius:c,[`&${o}-icon-only`]:{width:a,[m]:{fontSize:p}}}},{[`${o}${o}-circle${t}`]:fR(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},dR=e=>{const t=qt(e,{fontSize:e.contentFontSize});return Nh(t,e.componentCls)},mR=e=>{const t=qt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Nh(t,`${e.componentCls}-sm`)},gR=e=>{const t=qt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Nh(t,`${e.componentCls}-lg`)},pR=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},hR=Xt("Button",e=>{const t=oE(e);return[uR(t),dR(t),mR(t),gR(t),pR(t),cR(t),tR(t)]},aE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function yR(e,t,o,a){const{focusElCls:l,focus:c,borderElCls:f}=o,m=f?"> *":"",h=["hover",c?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${m}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${a}-status-success)`]:{zIndex:2},"&-item":{[h]:{zIndex:3},...l?{[`&${l}`]:{zIndex:3}}:{},[`&[disabled] ${m}`]:{zIndex:0}}}}function bR(e,t,o){const{borderElCls:a}=o,l=a?`> ${a}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${l}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function zh(e,t={focus:!0}){const{componentCls:o}=e,{componentCls:a}=t,l=a||o,c=`${l}-compact`;return{[c]:{...yR(e,c,t,l),...bR(l,c,t)}}}function vR(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function SR(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 CR(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...vR(e,t,e.componentCls),...SR(e.componentCls,t)}}}const xR=e=>{const{antCls:t,componentCls:o,lineWidth:a,calc:l,colorBgContainer:c}=e,f=`${o}-variant-solid:not([disabled])`,m=l(a).mul(-1).equal(),[h,p]=to(t,"btn"),y=b=>({[`${o}-compact${b?"-vertical":""}-item`]:{[h("compact-connect-border-color")]:p("bg-color-hover"),[`&${f}`]:{transition:"none",[`& + ${f}:before`]:[{position:"absolute",backgroundColor:p("compact-connect-border-color"),content:'""'},b?{top:m,insetInline:m,height:a}:{insetBlock:m,insetInlineStart:m,width:a}],"&:hover:before":{display:"none"}}}});return[y(),y(!0),{[`${f}${o}-color-default`]:{[h("compact-connect-border-color")]:`color-mix(in srgb, ${p("bg-color-hover")} 75%, ${c})`}}]},ER=tf(["Button","compact"],e=>{const t=oE(e);return[zh(t),CR(t),xR(t)]},aE);function $R(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const wR={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},TR=te.forwardRef((e,t)=>{const{_skipSemantic:o,loading:a=!1,prefixCls:l,color:c,variant:f,type:m,danger:h=!1,shape:p,size:y,disabled:b,className:v,rootClassName:$,children:x,icon:E,iconPosition:C,iconPlacement:T,ghost:M=!1,block:w=!1,htmlType:N="button",classNames:R,styles:_,style:z,autoInsertSpace:B,autoFocus:H,...I}=e,L=br(x),V=m||"default",{getPrefixCls:k,direction:U,autoInsertSpace:F,className:P,style:q,classNames:G,styles:Y,loadingIcon:Z,shape:A,color:D,variant:K}=cn("button"),Q=p||A||"default",[ee,ie]=u.useMemo(()=>{if(c&&f)return[c,f];if(m||h){const vt=wR[V]||[];return h?["danger",vt[1]]:vt}return D&&K?[D,K]:["default","outlined"]},[c,f,m,h,D,K,V]),[le,de]=u.useMemo(()=>M&&ie==="solid"?[ee,"outlined"]:[ee,ie],[ee,ie,M]),ye=le==="danger",ve=ye?"dangerous":le,we=B??F??!0,be=k("btn",l),[Se,me]=hR(be),he=u.useContext(Za),pe=b??he,Pe=u.useContext(Zx),Le=u.useMemo(()=>$R(a),[a]),[Ee,Xe]=u.useState(Le.loading),[Oe,Re]=u.useState(!1),De=u.useRef(null),Te=ya(t,De),et=L.length===1&&!E&&!Lm(de),it=u.useRef(!0);te.useEffect(()=>(it.current=!1,()=>{it.current=!0}),[]),Lt(()=>{let vt=null;Le.delay>0?vt=setTimeout(()=>{vt=null,Xe(!0)},Le.delay):Xe(Le.loading);function un(){vt&&(clearTimeout(vt),vt=null)}return un},[Le.delay,Le.loading]),u.useEffect(()=>{if(!De.current||!we)return;const vt=De.current.textContent||"";et&&Zg(vt)?Oe||Re(!0):Oe&&Re(!1)}),u.useEffect(()=>{H&&De.current&&De.current.focus()},[]);const ft=te.useCallback(vt=>{if(Ee||pe){vt.preventDefault();return}e.onClick?.(("href"in e,vt))},[e.onClick,Ee,pe]),{compactSize:Ue,compactItemClassnames:dt}=Mh(be,U),Me=no(vt=>y??Ue??Pe??vt),xe=Ee?"loading":E,Ae=T??C??"start",Ye=Lr(I,["navigate"]),_e={...e,type:V,color:le,variant:de,danger:ye,shape:Q,size:Me,disabled:pe,loading:Ee,iconPlacement:Ae},[Ce,Ie]=Nn([o?void 0:G,R],[o?void 0:Y,_],{props:_e}),mt=W(be,Se,me,{[`${be}-${Q}`]:Q!=="default"&&Q!=="square"&&Q,[`${be}-${V}`]:V,[`${be}-dangerous`]:h,[`${be}-color-${ve}`]:ve,[`${be}-variant-${de}`]:de,[`${be}-lg`]:Me==="large",[`${be}-sm`]:Me==="small",[`${be}-icon-only`]:!x&&x!==0&&!!xe,[`${be}-background-ghost`]:M&&!Lm(de),[`${be}-loading`]:Ee,[`${be}-two-chinese-chars`]:Oe&&we&&!Ee,[`${be}-block`]:w,[`${be}-rtl`]:U==="rtl",[`${be}-icon-end`]:Ae==="end"},dt,v,$,P,Ce.root),ke={...Ie.root,...q,...z},Ut={className:Ce.icon,style:Ie.icon},bt=vt=>te.createElement(eE,{prefixCls:be,...Ut},vt),je=te.createElement(OM,{existIcon:!!E,prefixCls:be,loading:Ee,mount:it.current,...Ut}),Fe=a&&typeof a=="object"&&a.icon||Z;let ot;E&&!Ee?ot=bt(E):a&&Fe?ot=bt(Fe):ot=je;const Pt=vr(x)?zM(x,et&&we,Ie.content,Ce.content):null;if(Ye.href!==void 0)return te.createElement("a",{...Ye,className:W(mt,{[`${be}-disabled`]:pe}),href:pe?void 0:Ye.href,style:ke,onClick:ft,ref:Te,tabIndex:pe?-1:0,"aria-disabled":pe},ot,Pt);let Wt=te.createElement("button",{...I,type:N,className:mt,style:ke,onClick:ft,disabled:pe,ref:Te},ot,Pt,dt&&te.createElement(ER,{prefixCls:be}));return Lm(de)||(Wt=te.createElement(Qx,{component:"Button",disabled:Ee},Wt)),Wt}),pr=TR;pr.Group=RM;pr.__ANT_BUTTON=!0;const jm=e=>typeof e?.then=="function",iE=e=>{const{type:t,children:o,prefixCls:a,buttonProps:l,close:c,autoFocus:f,emitEvent:m,isSilent:h,quitOnNullishReturnValue:p,actionFn:y}=e,b=u.useRef(!1),v=u.useRef(null),[$,x]=EC(!1),E=(...M)=>{c?.(...M)};u.useEffect(()=>{let M=null;return f&&(M=setTimeout(()=>{v.current?.focus({preventScroll:!0})})),()=>{M&&clearTimeout(M)}},[f]);const C=M=>{jm(M)&&(x(!0),M.then((...w)=>{x(!1,!0),E.apply(void 0,w),b.current=!1},w=>{if(x(!1,!0),b.current=!1,!h?.())return Promise.reject(w)}))},T=M=>{if(b.current)return;if(b.current=!0,!y){E();return}let w;if(m){if(w=y(M),p&&!jm(w)){b.current=!1,E(M);return}}else if(y.length)w=y(c),b.current=!1;else if(w=y(),!jm(w)){E();return}C(w)};return u.createElement(pr,{...Jx(t),onClick:T,loading:$,prefixCls:a,...l,ref:v},o)},Vs=te.createContext({}),{Provider:lE}=Vs,lS=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:a,mergedOkCancel:l,rootPrefixCls:c,close:f,onCancel:m,onConfirm:h,onClose:p}=u.useContext(Vs);return l?te.createElement(iE,{isSilent:a,actionFn:m,close:(...y)=>{f?.(...y),h?.(!1),p?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${c}-btn`},o):null},sS=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:a,rootPrefixCls:l,okTextLocale:c,okType:f,onConfirm:m,onOk:h,onClose:p}=u.useContext(Vs);return te.createElement(iE,{isSilent:o,type:f||"primary",actionFn:h,close:(...y)=>{t?.(...y),m?.(!0),p?.()},autoFocus:e==="ok",buttonProps:a,prefixCls:`${l}-btn`},c)},sE=u.createContext({});function cS(e,t,o){let a=t;return!a&&o&&(a=`${e}-${o}`),a}function uS(e,t){let o=e[`page${t?"Y":"X"}Offset`];const a=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){const l=e.document;o=l.documentElement[a],typeof o!="number"&&(o=l.body[a])}return o}function MR(e){const t=e.getBoundingClientRect(),o={left:t.left,top:t.top},a=e.ownerDocument,l=a.defaultView||a.parentWindow;return o.left+=uS(l),o.top+=uS(l,!0),o}function fS(e,t=!1){if($h(e)){const o=e.nodeName.toLowerCase(),a=["input","select","textarea","button"].includes(o)||e.isContentEditable||o==="a"&&!!e.getAttribute("href"),l=e.getAttribute("tabindex"),c=Number(l);let f=null;return l&&!Number.isNaN(c)?f=c:a&&f===null&&(f=0),a&&e.disabled&&(f=null),f!==null&&(f>=0||t&&f<0)}return!1}function Oh(e,t=!1){const o=[...e.querySelectorAll("*")].filter(a=>fS(a,t));return fS(e,t)&&o.unshift(e),o}function RR(e,t){if(!e)return;e.focus(t);const{cursor:o}=t||{};if(o&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const a=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}let Ji=null,ra=[];const ep=new Map,Ah=new Map;function _h(){return ra[ra.length-1]}function NR(e){const t=_h();if(e&&t){let o;for(const[l,c]of ep.entries())if(c===t){o=l;break}const a=Ah.get(o);return!!a&&(a===e||a.contains(e))}return!1}function zR(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Vm(){const e=_h(),{activeElement:t}=document;if(!NR(t))if(e&&!zR(e)){const o=Oh(e);(o.includes(Ji)?Ji:o[0])?.focus({preventScroll:!0})}else Ji=t}function dS(e){if(e.key==="Tab"){const{activeElement:t}=document,o=_h(),a=Oh(o),l=a[a.length-1];e.shiftKey&&t===a[0]?Ji=l:!e.shiftKey&&t===l&&(Ji=a[0])}}function OR(e,t){return e&&(ep.set(t,e),ra=ra.filter(o=>o!==e),ra.push(e),window.addEventListener("focusin",Vm),window.addEventListener("keydown",dS,!0),Vm()),()=>{Ji=null,ra=ra.filter(o=>o!==e),ep.delete(t),Ah.delete(t),ra.length===0&&(window.removeEventListener("focusin",Vm),window.removeEventListener("keydown",dS,!0))}}function cE(e,t){const o=Sa();return u.useEffect(()=>{if(e){const l=t();if(l)return OR(l,o)}},[e,o]),[l=>{l&&Ah.set(o,l)}]}const AR=u.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},ju.apply(this,arguments)}const _R=te.forwardRef((e,t)=>{const{prefixCls:o,className:a,style:l,title:c,ariaId:f,footer:m,closable:h,closeIcon:p,onClose:y,children:b,bodyStyle:v,bodyProps:$,modalRender:x,onMouseDown:E,onMouseUp:C,holderRef:T,visible:M,forceRender:w,width:N,height:R,classNames:_,styles:z,isFixedPos:B,focusTrap:H}=e,{panel:I}=te.useContext(sE),L=u.useRef(null),V=ya(T,I,L),[k]=cE(M&&B&&H!==!1,()=>L.current);te.useImperativeHandle(t,()=>({focus:()=>{L.current?.focus({preventScroll:!0})}}));const U={};N!==void 0&&(U.width=N),R!==void 0&&(U.height=R);const F=m?te.createElement("div",{className:W(`${o}-footer`,_?.footer),style:{...z?.footer}},m):null,P=c?te.createElement("div",{className:W(`${o}-header`,_?.header),style:{...z?.header}},te.createElement("div",{className:W(`${o}-title`,_?.title),id:f,style:{...z?.title}},c)):null,q=u.useMemo(()=>typeof h=="object"&&h!==null?h:h?{closeIcon:p??te.createElement("span",{className:`${o}-close-x`})}:{},[h,p,o]),G=da(q,!0),Y=typeof h=="object"&&h.disabled,Z=h?te.createElement("button",ju({type:"button",onClick:y,"aria-label":"Close"},G,{className:`${o}-close`,disabled:Y}),q.closeIcon):null,A=te.createElement("div",{className:W(`${o}-container`,_?.container),style:z?.container},Z,P,te.createElement("div",ju({className:W(`${o}-body`,_?.body),style:{...v,...z?.body}},$),b),F);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?f:null,"aria-modal":"true",ref:V,style:{...l,...U},className:W(o,a),onMouseDown:E,onMouseUp:C,tabIndex:-1,onFocus:D=>{k(D.target)}},te.createElement(AR,{shouldUpdate:M||w},x?x(A):A))});function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},tp.apply(this,arguments)}const BR=u.forwardRef((e,t)=>{const{prefixCls:o,title:a,style:l,className:c,visible:f,forceRender:m,destroyOnHidden:h,motionName:p,ariaId:y,onVisibleChanged:b,mousePosition:v}=e,$=u.useRef(null),x=u.useRef(null);u.useImperativeHandle(t,()=>({...x.current,inMotion:$.current.inMotion,enableMotion:$.current.enableMotion}));const[E,C]=u.useState(),T={};E&&(T.transformOrigin=E);function M(){if(!$.current?.nativeElement)return;const w=MR($.current.nativeElement);C(v&&(v.x||v.y)?`${v.x-w.left}px ${v.y-w.top}px`:"")}return u.createElement(nr,{visible:f,onVisibleChanged:b,onAppearPrepare:M,onEnterPrepare:M,forceRender:m,motionName:p,removeOnLeave:h,ref:$},({className:w,style:N},R)=>u.createElement(_R,tp({},e,{ref:x,title:a,ariaId:y,prefixCls:o,holderRef:R,style:{...N,...l,...T},className:W(c,w)})))});function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},np.apply(this,arguments)}const HR=e=>{const{prefixCls:t,style:o,visible:a,maskProps:l,motionName:c,className:f}=e;return u.createElement(nr,{key:"mask",visible:a,motionName:c,leavedClassName:`${t}-mask-hidden`},({className:m,style:h},p)=>u.createElement("div",np({ref:p,style:{...h,...o},className:W(`${t}-mask`,m,f)},l)))};function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},hs.apply(this,arguments)}const LR=e=>{const{prefixCls:t="rc-dialog",zIndex:o,visible:a=!1,focusTriggerAfterClose:l=!0,wrapStyle:c,wrapClassName:f,wrapProps:m,onClose:h,afterOpenChange:p,afterClose:y,transitionName:b,animation:v,closable:$=!0,mask:x=!0,maskTransitionName:E,maskAnimation:C,maskClosable:T=!0,maskStyle:M,maskProps:w,rootClassName:N,rootStyle:R,classNames:_,styles:z}=e,B=u.useRef(null),H=u.useRef(null),I=u.useRef(null),[L,V]=u.useState(a),[k,U]=u.useState(!1),F=Sa();function P(){dg(H.current,document.activeElement)||(B.current=document.activeElement)}function q(){dg(H.current,document.activeElement)||I.current?.focus()}function G(){if(V(!1),x&&B.current&&l){try{B.current.focus({preventScroll:!0})}catch{}B.current=null}L&&y?.()}function Y(ee){ee?q():G(),p?.(ee)}function Z(ee){h?.(ee)}const A=u.useRef(!1);let D=null;T&&(D=ee=>{H.current===ee.target&&A.current&&Z(ee)});function K(ee){A.current=ee.target===H.current}u.useEffect(()=>{if(a){if(A.current=!1,V(!0),P(),H.current){const ee=getComputedStyle(H.current);U(ee.position==="fixed")}}else L&&I.current.enableMotion()&&!I.current.inMotion()&&G()},[a]);const Q={zIndex:o,...c,...z?.wrapper,display:L?null:"none"};return u.createElement("div",hs({className:W(`${t}-root`,N),style:R},da(e,{data:!0})),u.createElement(HR,{prefixCls:t,visible:x&&a,motionName:cS(t,E,C),style:{zIndex:o,...M,...z?.mask},maskProps:w,className:_?.mask}),u.createElement("div",hs({className:W(`${t}-wrap`,f,_?.wrapper),ref:H,onClick:D,onMouseDown:K,style:Q},m),u.createElement(BR,hs({},e,{isFixedPos:k,ref:I,closable:$,ariaId:F,prefixCls:t,visible:a&&L,onClose:Z,onVisibleChanged:Y,motionName:cS(t,b,v)}))))};function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},rp.apply(this,arguments)}const DR=e=>{const{visible:t,getContainer:o,forceRender:a,destroyOnHidden:l=!1,afterClose:c,closable:f,panelRef:m,keyboard:h=!0,onClose:p}=e,[y,b]=u.useState(t),v=u.useMemo(()=>({panel:m}),[m]),$=({top:x,event:E})=>{if(x&&h){E.stopPropagation(),p?.(E);return}};return u.useEffect(()=>{t&&b(!0)},[t]),!a&&l&&!y?null:u.createElement(sE.Provider,{value:v},u.createElement(Is,{open:t||a||y,onEsc:$,autoDestroy:!1,getContainer:o,autoLock:t||y},u.createElement(LR,rp({},e,{destroyOnHidden:l,afterClose:()=>{const x=f&&typeof f=="object"?f:{},{afterClose:E}=x||{};E?.(),c?.(),b(!1)}}))))},Wa="RC_FORM_INTERNAL_HOOKS",Ht=()=>{qn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ol=u.createContext({getFieldValue:Ht,getFieldsValue:Ht,getFieldError:Ht,getFieldWarning:Ht,getFieldsError:Ht,isFieldsTouched:Ht,isFieldTouched:Ht,isFieldValidating:Ht,isFieldsValidating:Ht,resetFields:Ht,setFields:Ht,setFieldValue:Ht,setFieldsValue:Ht,validateFields:Ht,submit:Ht,getInternalHooks:()=>(Ht(),{dispatch:Ht,initEntityValue:Ht,registerField:Ht,useSubscribe:Ht,setInitialValues:Ht,destroyForm:Ht,setCallbacks:Ht,registerWatch:Ht,getFields:Ht,setValidateMessages:Ht,setPreserve:Ht,getInitialValue:Ht})}),Vu=u.createContext(null);function op(e){return e==null?[]:Array.isArray(e)?e:[e]}function PR(e){return e&&!!e._init}function ap(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ip=ap();function IR(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jR(e,t,o){if(fh())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var l=new(e.bind.apply(e,a));return o&&$s(l,o.prototype),l}function lp(e){var t=typeof Map=="function"?new Map:void 0;return lp=function(a){if(a===null||!IR(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(a))return t.get(a);t.set(a,l)}function l(){return jR(a,arguments,ws(this).constructor)}return l.prototype=Object.create(a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),$s(l,a)},lp(e)}var VR=/%[sdj%]/g,FR=function(){};function sp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var a=o.field;t[a]=t[a]||[],t[a].push(o)}),t}function hr(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];var l=0,c=o.length;if(typeof e=="function")return e.apply(null,o);if(typeof e=="string"){var f=e.replace(VR,function(m){if(m==="%%")return"%";if(l>=c)return m;switch(m){case"%s":return String(o[l++]);case"%d":return Number(o[l++]);case"%j":try{return JSON.stringify(o[l++])}catch{return"[Circular]"}break;default:return m}});return f}return e}function qR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Rn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qR(t)&&typeof e=="string"&&!e)}function UR(e,t,o){var a=[],l=0,c=e.length;function f(m){a.push.apply(a,sn(m||[])),l++,l===c&&o(a)}e.forEach(function(m){t(m,f)})}function mS(e,t,o){var a=0,l=e.length;function c(f){if(f&&f.length){o(f);return}var m=a;a=a+1,m<l?t(e[m],c):o([])}c([])}function GR(e){var t=[];return Object.keys(e).forEach(function(o){t.push.apply(t,sn(e[o]||[]))}),t}var gS=(function(e){JC(o,e);var t=ex(o);function o(a,l){var c;return sl(this,o),c=t.call(this,"Async Validation Error"),_n(Zi(c),"errors",void 0),_n(Zi(c),"fields",void 0),c.errors=a,c.fields=l,c}return cl(o)})(lp(Error));function XR(e,t,o,a,l){if(t.first){var c=new Promise(function(v,$){var x=function(T){return a(T),T.length?$(new gS(T,sp(T))):v(l)},E=GR(e);mS(E,o,x)});return c.catch(function(v){return v}),c}var f=t.firstFields===!0?Object.keys(e):t.firstFields||[],m=Object.keys(e),h=m.length,p=0,y=[],b=new Promise(function(v,$){var x=function(C){if(y.push.apply(y,C),p++,p===h)return a(y),y.length?$(new gS(y,sp(y))):v(l)};m.length||(a(y),v(l)),m.forEach(function(E){var C=e[E];f.indexOf(E)!==-1?mS(C,o,x):UR(C,o,x)})});return b.catch(function(v){return v}),b}function WR(e){return!!(e&&e.message!==void 0)}function YR(e,t){for(var o=e,a=0;a<t.length;a++){if(o==null)return o;o=o[t[a]]}return o}function pS(e,t){return function(o){var a;return e.fullFields?a=YR(t,e.fullFields):a=t[o.field||e.fullField],WR(o)?(o.field=o.field||e.fullField,o.fieldValue=a,o):{message:typeof o=="function"?o():o,fieldValue:a,field:o.field||e.fullField}}}function hS(e,t){if(t){for(var o in t)if(t.hasOwnProperty(o)){var a=t[o];xn(a)==="object"&&xn(e[o])==="object"?e[o]=ln(ln({},e[o]),a):e[o]=a}}return e}var ji="enum",KR=function(t,o,a,l,c){t[ji]=Array.isArray(t[ji])?t[ji]:[],t[ji].indexOf(o)===-1&&l.push(hr(c.messages[ji],t.fullField,t[ji].join(", ")))},kR=function(t,o,a,l,c){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||l.push(hr(c.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var f=new RegExp(t.pattern);f.test(o)||l.push(hr(c.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},QR=function(t,o,a,l,c){var f=typeof t.len=="number",m=typeof t.min=="number",h=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y=o,b=null,v=typeof o=="number",$=typeof o=="string",x=Array.isArray(o);if(v?b="number":$?b="string":x&&(b="array"),!b)return!1;x&&(y=o.length),$&&(y=o.replace(p,"_").length),f?y!==t.len&&l.push(hr(c.messages[b].len,t.fullField,t.len)):m&&!h&&y<t.min?l.push(hr(c.messages[b].min,t.fullField,t.min)):h&&!m&&y>t.max?l.push(hr(c.messages[b].max,t.fullField,t.max)):m&&h&&(y<t.min||y>t.max)&&l.push(hr(c.messages[b].range,t.fullField,t.min,t.max))},uE=function(t,o,a,l,c,f){t.required&&(!a.hasOwnProperty(t.field)||Rn(o,f||t.type))&&l.push(hr(c.messages.required,t.fullField))},du;const ZR=(function(){if(du)return du;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},o="(?: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}",a="[a-fA-F\\d]{1,4}",l=["(?:".concat(a,":){7}(?:").concat(a,"|:)"),"(?:".concat(a,":){6}(?:").concat(o,"|:").concat(a,"|:)"),"(?:".concat(a,":){5}(?::").concat(o,"|(?::").concat(a,"){1,2}|:)"),"(?:".concat(a,":){4}(?:(?::").concat(a,"){0,1}:").concat(o,"|(?::").concat(a,"){1,3}|:)"),"(?:".concat(a,":){3}(?:(?::").concat(a,"){0,2}:").concat(o,"|(?::").concat(a,"){1,4}|:)"),"(?:".concat(a,":){2}(?:(?::").concat(a,"){0,3}:").concat(o,"|(?::").concat(a,"){1,5}|:)"),"(?:".concat(a,":){1}(?:(?::").concat(a,"){0,4}:").concat(o,"|(?::").concat(a,"){1,6}|:)"),"(?::(?:(?::".concat(a,"){0,5}:").concat(o,"|(?::").concat(a,"){1,7}|:))")],c="(?:%[0-9a-zA-Z]{1,})?",f="(?:".concat(l.join("|"),")").concat(c),m=new RegExp("(?:^".concat(o,"$)|(?:^").concat(f,"$)")),h=new RegExp("^".concat(o,"$")),p=new RegExp("^".concat(f,"$")),y=function(_){return _&&_.exact?m:new RegExp("(?:".concat(t(_)).concat(o).concat(t(_),")|(?:").concat(t(_)).concat(f).concat(t(_),")"),"g")};y.v4=function(R){return R&&R.exact?h:new RegExp("".concat(t(R)).concat(o).concat(t(R)),"g")},y.v6=function(R){return R&&R.exact?p:new RegExp("".concat(t(R)).concat(f).concat(t(R)),"g")};var b="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",$=y.v4().source,x=y.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",T="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",M="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',N="(?:".concat(b,"|www\\.)").concat(v,"(?:localhost|").concat($,"|").concat(x,"|").concat(E).concat(C).concat(T,")").concat(M).concat(w);return du=new RegExp("(?:^".concat(N,"$)"),"i"),du});var Fm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},us={integer:function(t){return us.number(t)&&parseInt(t,10)===t},float:function(t){return us.number(t)&&!us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return xn(t)==="object"&&!us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Fm.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Fm.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ZR())},hex:function(t){return typeof t=="string"&&!!t.match(Fm.hex)}},JR=function(t,o,a,l,c){if(t.required&&o===void 0){uE(t,o,a,l,c);return}var f=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],m=t.type;f.indexOf(m)>-1?us[m](o)||l.push(hr(c.messages.types[m],t.fullField,t.type)):m&&xn(o)!==t.type&&l.push(hr(c.messages.types[m],t.fullField,t.type))},eN=function(t,o,a,l,c){(/^\s+$/.test(o)||o==="")&&l.push(hr(c.messages.whitespace,t.fullField))};const ht={required:uE,whitespace:eN,type:JR,range:QR,enum:KR,pattern:kR};var tN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c)}a(f)},nN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(o==null&&!t.required)return a();ht.required(t,o,l,f,c,"array"),o!=null&&(ht.type(t,o,l,f,c),ht.range(t,o,l,f,c))}a(f)},rN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&ht.type(t,o,l,f,c)}a(f)},oN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o,"date")&&!t.required)return a();if(ht.required(t,o,l,f,c),!Rn(o,"date")){var h;o instanceof Date?h=o:h=new Date(o),ht.type(t,h,l,f,c),h&&ht.range(t,h.getTime(),l,f,c)}}a(f)},aN="enum",iN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&ht[aN](t,o,l,f,c)}a(f)},lN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&(ht.type(t,o,l,f,c),ht.range(t,o,l,f,c))}a(f)},sN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&(ht.type(t,o,l,f,c),ht.range(t,o,l,f,c))}a(f)},cN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&ht.type(t,o,l,f,c)}a(f)},uN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(o===""&&(o=void 0),Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&(ht.type(t,o,l,f,c),ht.range(t,o,l,f,c))}a(f)},fN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),o!==void 0&&ht.type(t,o,l,f,c)}a(f)},dN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o,"string")&&!t.required)return a();ht.required(t,o,l,f,c),Rn(o,"string")||ht.pattern(t,o,l,f,c)}a(f)},mN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o)&&!t.required)return a();ht.required(t,o,l,f,c),Rn(o)||ht.type(t,o,l,f,c)}a(f)},gN=function(t,o,a,l,c){var f=[],m=Array.isArray(o)?"array":xn(o);ht.required(t,o,l,f,c,m),a(f)},pN=function(t,o,a,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(Rn(o,"string")&&!t.required)return a();ht.required(t,o,l,f,c,"string"),Rn(o,"string")||(ht.type(t,o,l,f,c),ht.range(t,o,l,f,c),ht.pattern(t,o,l,f,c),t.whitespace===!0&&ht.whitespace(t,o,l,f,c))}a(f)},mu=function(t,o,a,l,c){var f=t.type,m=[],h=t.required||!t.required&&l.hasOwnProperty(t.field);if(h){if(Rn(o,f)&&!t.required)return a();ht.required(t,o,l,m,c,f),Rn(o,f)||ht.type(t,o,l,m,c)}a(m)};const ys={string:pN,method:cN,number:uN,boolean:rN,regexp:mN,integer:sN,float:lN,array:nN,object:fN,enum:iN,pattern:dN,date:oN,url:mu,hex:mu,email:mu,tel:mu,required:gN,any:tN};var Fs=(function(){function e(t){sl(this,e),_n(this,"rules",null),_n(this,"_messages",ip),this.define(t)}return cl(e,[{key:"define",value:function(o){var a=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(xn(o)!=="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var c=o[l];a.rules[l]=Array.isArray(c)?c:[c]})}},{key:"messages",value:function(o){return o&&(this._messages=hS(ap(),o)),this._messages}},{key:"validate",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=o,m=l,h=c;if(typeof m=="function"&&(h=m,m={}),!this.rules||Object.keys(this.rules).length===0)return h&&h(null,f),Promise.resolve(f);function p(x){var E=[],C={};function T(w){if(Array.isArray(w)){var N;E=(N=E).concat.apply(N,sn(w))}else E.push(w)}for(var M=0;M<x.length;M++)T(x[M]);E.length?(C=sp(E),h(E,C)):h(null,f)}if(m.messages){var y=this.messages();y===ip&&(y=ap()),hS(y,m.messages),m.messages=y}else m.messages=this.messages();var b={},v=m.keys||Object.keys(this.rules);v.forEach(function(x){var E=a.rules[x],C=f[x];E.forEach(function(T){var M=T;typeof M.transform=="function"&&(f===o&&(f=ln({},f)),C=f[x]=M.transform(C),C!=null&&(M.type=M.type||(Array.isArray(C)?"array":xn(C)))),typeof M=="function"?M={validator:M}:M=ln({},M),M.validator=a.getValidationMethod(M),M.validator&&(M.field=x,M.fullField=M.fullField||x,M.type=a.getType(M),b[x]=b[x]||[],b[x].push({rule:M,value:C,source:f,field:x}))})});var $={};return XR(b,m,function(x,E){var C=x.rule,T=(C.type==="object"||C.type==="array")&&(xn(C.fields)==="object"||xn(C.defaultField)==="object");T=T&&(C.required||!C.required&&x.value),C.field=x.field;function M(z,B){return ln(ln({},B),{},{fullField:"".concat(C.fullField,".").concat(z),fullFields:C.fullFields?[].concat(sn(C.fullFields),[z]):[z]})}function w(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],B=Array.isArray(z)?z:[z];!m.suppressWarning&&B.length&&e.warning("async-validator:",B),B.length&&C.message!==void 0&&C.message!==null&&(B=[].concat(C.message));var H=B.map(pS(C,f));if(m.first&&H.length)return $[C.field]=1,E(H);if(!T)E(H);else{if(C.required&&!x.value)return C.message!==void 0?H=[].concat(C.message).map(pS(C,f)):m.error&&(H=[m.error(C,hr(m.messages.required,C.field))]),E(H);var I={};C.defaultField&&Object.keys(x.value).map(function(k){I[k]=C.defaultField}),I=ln(ln({},I),x.rule.fields);var L={};Object.keys(I).forEach(function(k){var U=I[k],F=Array.isArray(U)?U:[U];L[k]=F.map(M.bind(null,k))});var V=new e(L);V.messages(m.messages),x.rule.options&&(x.rule.options.messages=m.messages,x.rule.options.error=m.error),V.validate(x.value,x.rule.options||m,function(k){var U=[];H&&H.length&&U.push.apply(U,sn(H)),k&&k.length&&U.push.apply(U,sn(k)),E(U.length?U:null)})}}var N;if(C.asyncValidator)N=C.asyncValidator(C,x.value,w,x.source,m);else if(C.validator){try{N=C.validator(C,x.value,w,x.source,m)}catch(z){var R,_;(R=(_=console).error)===null||R===void 0||R.call(_,z),m.suppressValidatorError||setTimeout(function(){throw z},0),w(z.message)}N===!0?w():N===!1?w(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):N instanceof Array?w(N):N instanceof Error&&w(N.message)}N&&N.then&&N.then(function(){return w()},function(z){return w(z)})},function(x){p(x)},f)}},{key:"getType",value:function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!ys.hasOwnProperty(o.type))throw new Error(hr("Unknown rule type %s",o.type));return o.type||"string"}},{key:"getValidationMethod",value:function(o){if(typeof o.validator=="function")return o.validator;var a=Object.keys(o),l=a.indexOf("message");return l!==-1&&a.splice(l,1),a.length===1&&a[0]==="required"?ys.required:ys[this.getType(o)]||void 0}}]),e})();_n(Fs,"register",function(t,o){if(typeof o!="function")throw new Error("Cannot register a validator by type, validator is not a function");ys[t]=o});_n(Fs,"warning",FR);_n(Fs,"messages",ip);_n(Fs,"validators",ys);const Jn="'${name}' is not a valid ${type}",fE={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:Jn,method:Jn,array:Jn,object:Jn,number:Jn,date:Jn,boolean:Jn,integer:Jn,float:Jn,regexp:Jn,email:Jn,tel:Jn,url:Jn,hex:Jn},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}"}},yS=Fs;function hN(e,t){return e.replace(/\\?\$\{\w+\}/g,o=>{if(o.startsWith("\\"))return o.slice(1);const a=o.slice(2,-1);return t[a]})}const bS="CODE_LOGIC_ERROR";async function cp(e,t,o,a,l){const c={...o};if(delete c.ruleIndex,yS.warning=()=>{},c.validator){const v=c.validator;c.validator=(...$)=>{try{return v(...$)}catch(x){return console.error(x),Promise.reject(bS)}}}let f=null;c&&c.type==="array"&&c.defaultField&&(f=c.defaultField,delete c.defaultField);const m=new yS({[e]:[c]}),h=Ki(fE,a.validateMessages);m.messages(h);let p=[];try{await Promise.resolve(m.validate({[e]:t},{...a}))}catch(v){v.errors&&(p=v.errors.map(({message:$},x)=>{const E=$===bS?h.default:$;return u.isValidElement(E)?u.cloneElement(E,{key:`error_${x}`}):E}))}if(!p.length&&f&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map(($,x)=>cp(`${e}.${x}`,$,f,a,l)))).reduce(($,x)=>[...$,...x],[]);const y={...o,name:e,enum:(o.enum||[]).join(", "),...l};return p.map(v=>typeof v=="string"?hN(v,y):v)}function yN(e,t,o,a,l,c){const f=e.join("."),m=o.map((p,y)=>{const b=p.validator,v={...p,ruleIndex:y};return b&&(v.validator=($,x,E)=>{let C=!1;const M=b($,x,(...w)=>{Promise.resolve().then(()=>{qn(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||E(...w)})});C=M&&typeof M.then=="function"&&typeof M.catch=="function",qn(C,"`callback` is deprecated. Please return a promise instead."),C&&M.then(()=>{E()}).catch(w=>{E(w||" ")})}),v}).sort(({warningOnly:p,ruleIndex:y},{warningOnly:b,ruleIndex:v})=>!!p==!!b?y-v:p?1:-1);let h;if(l===!0)h=new Promise(async(p,y)=>{for(let b=0;b<m.length;b+=1){const v=m[b],$=await cp(f,t,v,a,c);if($.length){y([{errors:$,rule:v}]);return}}p([])});else{const p=m.map(y=>cp(f,t,y,a,c).then(b=>({errors:b,rule:y})));h=(l?vN(p):bN(p)).then(y=>Promise.reject(y))}return h.catch(p=>p),h}async function bN(e){return Promise.all(e).then(t=>[].concat(...t))}async function vN(e){let t=0;return new Promise(o=>{e.forEach(a=>{a.then(l=>{l.errors.length&&o([l]),t+=1,t===e.length&&o([])})})})}function an(e){return op(e)}function vS(e,t){let o={};return t.forEach(a=>{const l=Ar(e,a);o=gr(o,a,l)}),o}function el(e,t,o=!1){return e&&e.some(a=>Fu(t,a,o))}function Fu(e,t,o=!1){return!e||!t||!o&&e.length!==t.length?!1:t.every((a,l)=>e[l]===a)}function SN(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const o=Object.keys(e),a=Object.keys(t);return[...new Set([...o,...a])].every(c=>{const f=e[c],m=t[c];return typeof f=="function"&&typeof m=="function"?!0:f===m})}function CN(e,...t){const o=t[0];return o&&o.target&&typeof o.target=="object"&&e in o.target?o.target[e]:o}function SS(e,t,o){const{length:a}=e;if(t<0||t>=a||o<0||o>=a)return e;const l=e[t],c=t-o;return c>0?[...e.slice(0,o),l,...e.slice(o,t),...e.slice(t+1,a)]:c<0?[...e.slice(0,t),...e.slice(t+1,o+1),l,...e.slice(o+1,a)]:e}const dE=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class xN{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(o=>{this.namePathList.every(a=>!Fu(a,o))&&this.namePathList.push(o)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;dE(()=>{if(t===this.taskId&&this.watcherList.size){const o=this.form.getForm(),a=o.getFieldsValue(),l=o.getFieldsValue(!0);this.watcherList.forEach(c=>{c(a,l,this.namePathList)}),this.namePathList=[]}})}}async function EN(){return new Promise(e=>{dE(()=>{En(()=>{e()})})})}function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},up.apply(this,arguments)}const ja=[],os=[];function qm(e,t,o,a,l,c){return typeof e=="function"?e(t,o,"source"in c?{source:c.source}:{}):a!==l}class $N extends u.Component{static contextType=ol;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=ja;warnings=os;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:o}=t.fieldContext,{initEntityValue:a}=o(Wa);a(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:a}=o,{registerField:l}=a(Wa);this.cancelRegisterFunc=l(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:o,name:a}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,t,an(a)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:o}=this.props,{prefixName:a=[]}=o;return t!==void 0?[...a,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:o}=this.props;return t.map(a=>typeof a=="function"?a(o):a)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:o}=this.props;if(o){const a={...this.getMeta(),destroy:t};Cs(this.metaCache,a)||o(a),this.metaCache=a}else this.metaCache=null};onStoreChange=(t,o,a)=>{const{shouldUpdate:l,dependencies:c=[],onReset:f}=this.props,{store:m}=a,h=this.getNamePath(),p=this.getValue(t),y=this.getValue(m),b=o&&el(o,h);switch(a.type==="valueUpdate"&&a.source==="external"&&!Cs(p,y)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=ja,this.warnings=os,this.triggerMetaEvent()),a.type){case"reset":if(!o||b){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=ja,this.warnings=os,this.triggerMetaEvent(),f?.(),this.refresh();return}break;case"remove":{if(l&&qm(l,t,m,p,y,a)){this.reRender();return}break}case"setField":{const{data:v}=a;if(b){"touched"in v&&(this.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(this.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(this.errors=v.errors||ja),"warnings"in v&&(this.warnings=v.warnings||os),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in v&&el(o,h,!0)){this.reRender();return}if(l&&!h.length&&qm(l,t,m,p,y,a)){this.reRender();return}break}case"dependenciesUpdate":{if(c.map(an).some($=>el(a.relatedFields,$))){this.reRender();return}break}default:if(b||(!c.length||h.length||l)&&qm(l,t,m,p,y,a)){this.reRender();return}break}l===!0&&this.reRender()};validateRules=t=>{const o=this.getNamePath(),a=this.getValue(),{triggerName:l,validateOnly:c=!1,delayFrame:f}=t||{},m=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:h=!1,messageVariables:p,validateDebounce:y}=this.props;f&&await EN();let b=this.getRules();if(l&&(b=b.filter($=>$).filter($=>{const{validateTrigger:x}=$;return x?op(x).includes(l):!0})),y&&l&&(await new Promise($=>{setTimeout($,y)}),this.validatePromise!==m))return[];const v=yN(o,a,b,t,h,p);return v.catch($=>$).then(($=ja)=>{if(this.validatePromise===m){this.validatePromise=null;const x=[],E=[];$.forEach?.(({rule:{warningOnly:C},errors:T=ja})=>{C?E.push(...T):x.push(...T)}),this.errors=x,this.warnings=E,this.triggerMetaEvent(),this.reRender()}}),v});return c||(this.validatePromise=m,this.dirty=!0,this.errors=ja,this.warnings=os,this.triggerMetaEvent(),this.reRender()),m};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:o}=t.getInternalHooks(Wa);return o(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const a=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),a,this.props.fieldContext)),isFunction:!0}}const o=br(t);return o.length!==1||!u.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:o}=this.props.fieldContext,a=this.getNamePath();return Ar(t||o(!0),a)};getControlled=(t={})=>{const{name:o,trigger:a="onChange",validateTrigger:l,getValueFromEvent:c,normalize:f,valuePropName:m="value",getValueProps:h,fieldContext:p}=this.props,y=l!==void 0?l:p.validateTrigger,b=this.getNamePath(),{getInternalHooks:v,getFieldsValue:$}=p,{dispatch:x}=v(Wa),E=this.getValue(),C=h||(R=>({[m]:R})),T=t[a],M=o!==void 0?C(E):{},w={...t,...M};return w[a]=(...R)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let _;c?_=c(...R):_=CN(m,...R),f&&(_=f(_,E,$(!0))),_!==E&&x({type:"updateValue",namePath:b,value:_}),T&&T(...R)},op(y||[]).forEach(R=>{const _=w[R];w[R]=(...z)=>{_&&_(...z);const{rules:B}=this.props;B&&B.length&&x({type:"validateField",namePath:b,triggerName:R})}}),w};render(){const{resetCount:t}=this.state,{children:o}=this.props,{child:a,isFunction:l}=this.getOnlyChild(o);let c;return l?c=a:u.isValidElement(a)?c=u.cloneElement(a,this.getControlled(a.props)):(qn(!a,"`children` of Field is not validate ReactElement."),c=a),u.createElement(u.Fragment,{key:t},c)}}function mE({name:e,...t}){const o=u.useContext(ol),a=u.useContext(Vu),l=e!==void 0?an(e):void 0,c=t.isListField??!!a;let f="keep";return c||(f=`_${(l||[]).join("_")}`),u.createElement($N,up({key:f,name:l,isListField:c},t,{fieldContext:o}))}function wN({name:e,initialValue:t,children:o,rules:a,validateTrigger:l,isListField:c}){const f=u.useContext(ol),m=u.useContext(Vu),p=u.useRef({keys:[],id:0}).current,y=u.useMemo(()=>[...an(f.prefixName)||[],...an(e)],[f.prefixName,e]),b=u.useMemo(()=>({...f,prefixName:y}),[f,y]),v=u.useMemo(()=>({getKey:x=>{const E=y.length,C=x[E];return[p.keys[C],x.slice(E+1)]}}),[p,y]);if(typeof o!="function")return qn(!1,"Form.List only accepts function as children."),null;const $=(x,E,{source:C})=>C==="internal"?!1:x!==E;return u.createElement(Vu.Provider,{value:v},u.createElement(ol.Provider,{value:b},u.createElement(mE,{name:[],shouldUpdate:$,rules:a,validateTrigger:l,initialValue:t,isList:!0,isListField:c??!!m},({value:x=[],onChange:E},C)=>{const{getFieldValue:T}=f,M=()=>T(y||[])||[],w={add:(R,_)=>{const z=M();_>=0&&_<=z.length?(p.keys=[...p.keys.slice(0,_),p.id,...p.keys.slice(_)],E([...z.slice(0,_),R,...z.slice(_)])):(p.keys=[...p.keys,p.id],E([...z,R])),p.id+=1},remove:R=>{const _=M(),z=new Set(Array.isArray(R)?R:[R]);z.size<=0||(p.keys=p.keys.filter((B,H)=>!z.has(H)),E(_.filter((B,H)=>!z.has(H))))},move(R,_){if(R===_)return;const z=M();R<0||R>=z.length||_<0||_>=z.length||(p.keys=SS(p.keys,R,_),E(SS(z,R,_)))}};let N=x||[];return Array.isArray(N)||(N=[]),o(N.map((R,_)=>{let z=p.keys[_];return z===void 0&&(p.keys[_]=p.id,z=p.keys[_],p.id+=1),{name:_,key:z,isListField:!0}}),w,C)})))}function TN(e){let t=!1,o=e.length;const a=[];return e.length?new Promise((l,c)=>{e.forEach((f,m)=>{f.catch(h=>(t=!0,h)).then(h=>{o-=1,a[m]=h,!(o>0)&&(t&&c(a),l(a))})})}):Promise.resolve([])}const fp="__@field_split__";function gu(e){return e.map(t=>`${typeof t}:${t}`).join(fp)}class Vi{kvs=new Map;set(t,o){this.kvs.set(gu(t),o)}get(t){return this.kvs.get(gu(t))}getAsPrefix(t){const o=gu(t),a=o+fp,l=[],c=this.kvs.get(o);return c!==void 0&&l.push(c),this.kvs.forEach((f,m)=>{m.startsWith(a)&&l.push(f)}),l}update(t,o){const a=this.get(t),l=o(a);l?this.set(t,l):this.delete(t)}delete(t){this.kvs.delete(gu(t))}map(t){return[...this.kvs.entries()].map(([o,a])=>{const l=o.split(fp);return t({key:l.map(c=>{const[,f,m]=c.match(/^([^:]*):(.*)$/);return f==="number"?Number(m):m}),value:a})})}toJSON(){const t={};return this.map(({key:o,value:a})=>(t[o.join(".")]=a,null)),t}}class MN{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new xN(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===Wa?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(qn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,o)=>{if(this.initialValues=t||{},o){let a=Ki(t,this.store);this.prevWithoutPreserves?.map(({key:l})=>{a=gr(a,l,Ar(t,l))}),this.prevWithoutPreserves=null,this.updateStore(a)}};destroyForm=t=>{if(t)this.updateStore({});else{const o=new Vi;this.getFieldEntities(!0).forEach(a=>{this.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),this.prevWithoutPreserves=o}};getInitialValue=t=>{const o=Ar(this.initialValues,t);return t.length?Ki(o):o};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(o=>o.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const o=new Vi;return this.getFieldEntities(t).forEach(a=>{const l=a.getNamePath();o.set(l,a)}),o};getFieldEntitiesForNamePathList=(t,o=!1)=>{if(!t)return this.getFieldEntities(!0);const a=this.getFieldsMap(!0);return o?t.flatMap(l=>{const c=an(l),f=a.getAsPrefix(c);return f.length?f:[{INVALIDATE_NAME_PATH:c}]}):t.map(l=>{const c=an(l);return a.get(c)||{INVALIDATE_NAME_PATH:an(l)}})};getFieldsValue=(t,o)=>{this.warningUnhooked();let a,l;if(t===!0||Array.isArray(t)?(a=t,l=o):t&&typeof t=="object"&&(l=t.filter),a===!0&&!l)return this.store;const c=this.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null,!0),f=[],m=[];c.forEach(p=>{const y=p.INVALIDATE_NAME_PATH||p.getNamePath();if(p.isList?.()){m.push(y);return}if(!l)f.push(y);else{const b="getMeta"in p?p.getMeta():null;l(b)&&f.push(y)}});let h=vS(this.store,f.map(an));return m.forEach(p=>{Ar(h,p)||(h=gr(h,p,[]))}),h};getFieldValue=t=>{this.warningUnhooked();const o=an(t);return Ar(this.store,o)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((a,l)=>a&&!a.INVALIDATE_NAME_PATH?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:an(t[l]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const o=an(t);return this.getFieldsError([o])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const o=an(t);return this.getFieldsError([o])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[o,a]=t;let l,c=!1;t.length===0?l=null:t.length===1?Array.isArray(o)?(l=o.map(an),c=!1):(l=null,c=o):(l=o.map(an),c=a);const f=this.getFieldEntities(!0),m=b=>b.isFieldTouched();if(!l)return c?f.every(b=>m(b)||b.isList()):f.some(m);const h=new Vi;l.forEach(b=>{h.set(b,[])}),f.forEach(b=>{const v=b.getNamePath();l.forEach($=>{$.every((x,E)=>v[E]===x)&&h.update($,x=>[...x,b])})});const p=b=>b.some(m),y=h.map(({value:b})=>b);return c?y.every(p):y.some(p)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const o=this.getFieldEntities();if(!t)return o.some(l=>l.isFieldValidating());const a=t.map(an);return o.some(l=>{const c=l.getNamePath();return el(a,c)&&l.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const o=new Vi,a=this.getFieldEntities(!0);a.forEach(f=>{const{initialValue:m}=f.props,h=f.getNamePath();if(m!==void 0){const p=o.get(h)||new Set;p.add({entity:f,value:m}),o.set(h,p)}});const l=f=>{f.forEach(m=>{const{initialValue:h}=m.props;if(h!==void 0){const p=m.getNamePath();if(this.getInitialValue(p)!==void 0)qn(!1,`Form already set 'initialValues' with path '${p.join(".")}'. Field can not overwrite it.`);else{const b=o.get(p);if(b&&b.size>1)qn(!1,`Multiple Field with path '${p.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(b){const v=this.getFieldValue(p);!m.isListField()&&(!t.skipExist||v===void 0)&&this.updateStore(gr(this.store,p,[...b][0].value))}}}})};let c;t.entities?c=t.entities:t.namePathList?(c=[],t.namePathList.forEach(f=>{const m=o.get(f);m&&c.push(...[...m].map(h=>h.entity))})):c=a,l(c)};resetFields=t=>{this.warningUnhooked();const o=this.store;if(!t){this.updateStore(Ki(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(o,null,{type:"reset"}),this.notifyWatch();return}const a=t.map(an);a.forEach(l=>{const c=this.getInitialValue(l);this.updateStore(gr(this.store,l,c))}),this.resetWithFieldInitialValue({namePathList:a}),this.notifyObservers(o,a,{type:"reset"}),this.notifyWatch(a)};setFields=t=>{this.warningUnhooked();const o=this.store,a=[];t.forEach(l=>{const{name:c,...f}=l,m=an(c);a.push(m),"value"in f&&this.updateStore(gr(this.store,m,f.value)),this.notifyObservers(o,[m],{type:"setField",data:l})}),this.notifyWatch(a)};getFields=()=>this.getFieldEntities(!0).map(a=>{const l=a.getNamePath(),f={...a.getMeta(),name:l,value:this.getFieldValue(l)};return Object.defineProperty(f,"originRCField",{value:!0}),f});initEntityValue=t=>{const{initialValue:o}=t.props;if(o!==void 0){const a=t.getNamePath();Ar(this.store,a)===void 0&&this.updateStore(gr(this.store,a,o))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const o=t.getNamePath();if(this.notifyWatch([o]),t.props.initialValue!==void 0){const a=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(a,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(a,l,c=[])=>{if(this.fieldEntities=this.fieldEntities.filter(f=>f!==t),!this.isMergedPreserve(l)&&(!a||c.length>1)){const f=a?void 0:this.getInitialValue(o);if(o.length&&this.getFieldValue(o)!==f&&this.fieldEntities.every(m=>!Fu(m.getNamePath(),o))){const m=this.store;this.updateStore(gr(m,o,f,!0)),this.notifyObservers(m,[o],{type:"remove"}),this.triggerDependenciesUpdate(m,o)}}this.notifyWatch([o])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:o,value:a}=t;this.updateValue(o,a);break}case"validateField":{const{namePath:o,triggerName:a}=t;this.validateFields([o],{triggerName:a});break}}};notifyObservers=(t,o,a)=>{if(this.subscribable){const l={...a,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:c})=>{c(t,o,l)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,o)=>{const a=this.getDependencyChildrenFields(o);return a.length&&this.validateFields(a,{delayFrame:!0}),this.notifyObservers(t,a,{type:"dependenciesUpdate",relatedFields:[o,...a]}),a};updateValue=(t,o)=>{const a=an(t),l=this.store;this.updateStore(gr(this.store,a,o)),this.notifyObservers(l,[a],{type:"valueUpdate",source:"internal"}),this.notifyWatch([a]);const c=this.triggerDependenciesUpdate(l,a),{onValuesChange:f}=this.callbacks;if(f){const m=vS(this.store,[a]),h=this.getFieldsValue(),p=gr(h,a,Ar(m,a));f(m,p)}this.triggerOnFieldsChange([a,...c])};setFieldsValue=t=>{this.warningUnhooked();const o=this.store;if(t){const a=Ki(this.store,t);this.updateStore(a)}this.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,o)=>{this.setFields([{name:t,value:o,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const o=new Set,a=[],l=new Vi;this.getFieldEntities().forEach(f=>{const{dependencies:m}=f.props;(m||[]).forEach(h=>{const p=an(h);l.update(p,(y=new Set)=>(y.add(f),y))})});const c=f=>{(l.get(f)||new Set).forEach(h=>{if(!o.has(h)){o.add(h);const p=h.getNamePath();h.isFieldDirty()&&p.length&&(a.push(p),c(p))}})};return c(t),a};triggerOnFieldsChange=(t,o)=>{const{onFieldsChange:a}=this.callbacks;if(a){const l=this.getFields();if(o){const f=new Vi;o.forEach(({name:m,errors:h})=>{f.set(m,h)}),l.forEach(m=>{m.errors=f.get(m.name)||m.errors})}const c=l.filter(({name:f})=>el(t,f));c.length&&a(c,l)}};validateFields=(t,o)=>{this.warningUnhooked();let a,l;Array.isArray(t)||typeof t=="string"||typeof o=="string"?(a=t,l=o):l=t;const c=!!a,f=c?a.map(an):[],m=[...f],h=[],p=String(Date.now()),y=new Set,{recursive:b,dirty:v}=l||{};this.getFieldEntities(!0).forEach(C=>{const T=C.getNamePath();if(c||((!C.isList()||!f.some(M=>Fu(M,T,!0)))&&m.push(T),f.push(T)),!(!C.props.rules||!C.props.rules.length)&&!(v&&!C.isFieldDirty())&&(y.add(T.join(p)),!c||el(f,T,b))){const M=C.validateRules({validateMessages:{...fE,...this.validateMessages},...l});h.push(M.then(()=>({name:T,errors:[],warnings:[]})).catch(w=>{const N=[],R=[];return w.forEach?.(({rule:{warningOnly:_},errors:z})=>{_?R.push(...z):N.push(...z)}),N.length?Promise.reject({name:T,errors:N,warnings:R}):{name:T,errors:N,warnings:R}}))}});const $=TN(h);this.lastValidatePromise=$,$.catch(C=>C).then(C=>{const T=C.map(({name:M})=>M);this.notifyObservers(this.store,T,{type:"validateFinish"}),this.triggerOnFieldsChange(T,C)});const x=$.then(()=>this.lastValidatePromise===$?Promise.resolve(this.getFieldsValue(m)):Promise.reject([])).catch(C=>{const T=C.filter(w=>w&&w.errors.length),M=T[0]?.errors?.[0];return Promise.reject({message:M,values:this.getFieldsValue(f),errorFields:T,outOfDate:this.lastValidatePromise!==$})});x.catch(C=>C);const E=f.filter(C=>y.has(C.join(p)));return this.triggerOnFieldsChange(E),x};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:o}=this.callbacks;if(o)try{o(t)}catch(a){console.error(a)}}).catch(t=>{const{onFinishFailed:o}=this.callbacks;o&&o(t)})}}function gE(e){const t=u.useRef(null),[,o]=u.useState({});if(!t.current)if(e)t.current=e;else{const a=()=>{o({})},l=new MN(a);t.current=l.getForm()}return[t.current]}const dp=u.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),RN=({validateMessages:e,onFormChange:t,onFormFinish:o,children:a})=>{const l=u.useContext(dp),c=u.useRef({});return u.createElement(dp.Provider,{value:{...l,validateMessages:{...l.validateMessages,...e},triggerFormChange:(f,m)=>{t&&t(f,{changedFields:m,forms:c.current}),l.triggerFormChange(f,m)},triggerFormFinish:(f,m)=>{o&&o(f,{values:m,forms:c.current}),l.triggerFormFinish(f,m)},registerForm:(f,m)=>{f&&(c.current={...c.current,[f]:m}),l.registerForm(f,m)},unregisterForm:f=>{const m={...c.current};delete m[f],c.current=m,l.unregisterForm(f)}}},a)};function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},mp.apply(this,arguments)}const NN=({name:e,initialValues:t,fields:o,form:a,preserve:l,children:c,component:f="form",validateMessages:m,validateTrigger:h="onChange",onValuesChange:p,onFieldsChange:y,onFinish:b,onFinishFailed:v,clearOnDestroy:$,...x},E)=>{const C=u.useRef(null),T=u.useContext(dp),[M]=gE(a),{useSubscribe:w,setInitialValues:N,setCallbacks:R,setValidateMessages:_,setPreserve:z,destroyForm:B}=M.getInternalHooks(Wa);u.useImperativeHandle(E,()=>({...M,nativeElement:C.current})),u.useEffect(()=>(T.registerForm(e,M),()=>{T.unregisterForm(e)}),[T,M,e]),_({...T.validateMessages,...m}),R({onValuesChange:p,onFieldsChange:(F,...P)=>{T.triggerFormChange(e,F),y&&y(F,...P)},onFinish:F=>{T.triggerFormFinish(e,F),b&&b(F)},onFinishFailed:v}),z(l);const H=u.useRef(null);N(t,!H.current),H.current||(H.current=!0),u.useEffect(()=>()=>B($),[]);let I;const L=typeof c=="function";if(L){const F=M.getFieldsValue(!0);I=c(F,M)}else I=c;w(!L);const V=u.useRef(null);u.useEffect(()=>{SN(V.current||[],o||[])||M.setFields(o||[]),V.current=o},[o,M]);const k=u.useMemo(()=>({...M,validateTrigger:h}),[M,h]),U=u.createElement(Vu.Provider,{value:null},u.createElement(ol.Provider,{value:k},I));return f===!1?U:u.createElement(f,mp({},x,{ref:C,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),M.submit()},onReset:F=>{F.preventDefault(),M.resetFields(),x.onReset?.(F)}}),U)};function Um(e){try{return JSON.stringify(e)}catch{return Math.random()}}function zN(...e){const[t,o={}]=e,a=PR(o)?{form:o}:o,l=a.form,[c,f]=u.useState(()=>typeof t=="function"?t({}):void 0),m=u.useMemo(()=>Um(c),[c]),h=u.useRef(m);h.current=m;const p=u.useContext(ol),y=l||p,b=y&&y._init,{getFieldsValue:v,getInternalHooks:$}=y,{registerWatch:x}=$(Wa),E=Tt((T,M)=>{const w=a.preserve?M??v(!0):T??v(),N=typeof t=="function"?t(w):Ar(w,an(t));Um(c)!==Um(N)&&f(N)}),C=typeof t=="function"?t:JSON.stringify(t);return u.useEffect(()=>{b&&E()},[b,C]),u.useEffect(()=>b?x((M,w)=>{E(M,w)}):void 0,[b]),c}const ON=u.forwardRef(NN),qs=ON;qs.FormProvider=RN;qs.Field=mE;qs.List=wN;qs.useForm=gE;qs.useWatch=zN;const gp=u.createContext({}),AN=({children:e,status:t,override:o})=>{const a=u.useContext(gp),l=u.useMemo(()=>{const c={...a};return o&&delete c.isFormItemInput,t&&(delete c.status,delete c.hasFeedback,delete c.feedbackIcon),c},[t,o,a]);return u.createElement(gp.Provider,{value:l},e)},_N=u.createContext(void 0),Bh=e=>{const{space:t,form:o,children:a}=e;if(!vr(a))return null;let l=a;return o&&(l=te.createElement(AN,{override:!0,status:!0},l)),t&&(l=te.createElement(wM,null,l)),l},BN=e=>{if(tr()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:o}=window.document;return t.some(a=>a in o.style)}return!1};function CS(e,t){return BN(e)}const HN=()=>tr()&&window.document.documentElement;function pE(e,t,o){return u.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}const lf=e=>{const{prefixCls:t,className:o,style:a,size:l,shape:c}=e,f=W({[`${t}-lg`]:l==="large",[`${t}-sm`]:l==="small"}),m=W({[`${t}-circle`]:c==="circle",[`${t}-square`]:c==="square",[`${t}-round`]:c==="round"}),h=u.useMemo(()=>typeof l=="number"?{width:l,height:l,lineHeight:`${l}px`}:{},[l]);return u.createElement("span",{className:W(t,f,m,o),style:{...h,...a}})},LN=new Mt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Hh=e=>({height:e,lineHeight:ae(e)}),ca=e=>({width:e,...Hh(e)}),DN=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:LN,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Gm=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Hh(e)}),PN=e=>{const{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:a,controlHeightLG:l,controlHeightSM:c}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...ca(a)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...ca(l)},[`${t}${t}-sm`]:{...ca(c)}}},IN=e=>{const{controlHeight:t,borderRadiusSM:o,skeletonInputCls:a,controlHeightLG:l,controlHeightSM:c,gradientFromColor:f,calc:m}=e;return{[a]:{display:"inline-block",verticalAlign:"top",background:f,borderRadius:o,...Gm(t,m)},[`${a}-lg`]:{...Gm(l,m)},[`${a}-sm`]:{...Gm(c,m)}}},hE=e=>{const{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:a,calc:l}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...ca(l(a).mul(2).equal())}},jN=e=>({[e.skeletonNodeCls]:{...hE(e)}}),VN=e=>{const{skeletonImageCls:t,imageSizeBase:o,calc:a}=e;return{[t]:{...hE(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...ca(o),maxWidth:a(o).mul(4).equal(),maxHeight:a(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Xm=(e,t,o)=>{const{skeletonButtonCls:a}=e;return{[`${o}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${a}-round`]:{borderRadius:t}}},Wm=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Hh(e)}),FN=e=>{const{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:a,controlHeightLG:l,controlHeightSM:c,gradientFromColor:f,calc:m}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:f,borderRadius:t,width:m(a).mul(2).equal(),minWidth:m(a).mul(2).equal(),...Wm(a,m)},...Xm(e,a,o),[`${o}-lg`]:{...Wm(l,m)},...Xm(e,l,`${o}-lg`),[`${o}-sm`]:{...Wm(c,m)},...Xm(e,c,`${o}-sm`)}},qN=e=>{const{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:a,skeletonParagraphCls:l,skeletonButtonCls:c,skeletonInputCls:f,skeletonNodeCls:m,skeletonImageCls:h,controlHeight:p,controlHeightLG:y,controlHeightSM:b,gradientFromColor:v,padding:$,marginSM:x,borderRadius:E,titleHeight:C,blockRadius:T,paragraphLiHeight:M,controlHeightXS:w,paragraphMarginTop:N}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:v,...ca(p)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...ca(y)},[`${o}-sm`]:{...ca(b)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[a]:{width:"100%",height:C,background:v,borderRadius:T,[`+ ${l}`]:{marginBlockStart:b}},[l]:{padding:0,"> li":{width:"100%",height:M,listStyle:"none",background:v,borderRadius:T,"+ li":{marginBlockStart:w}}},[`${l}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${a}, ${l} > li`]:{borderRadius:E}}},[`${t}-with-avatar ${t}-section`]:{[a]:{marginBlockStart:x,[`+ ${l}`]:{marginBlockStart:N}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...FN(e),...PN(e),...IN(e),...jN(e),...VN(e)},[`${t}${t}-block`]:{width:"100%",[c]:{width:"100%"},[f]:{width:"100%"}},[`${t}${t}-active`]:{[`
151
+ ${a},
152
+ ${l} > li,
153
+ ${o},
154
+ ${c},
155
+ ${f},
156
+ ${m},
157
+ ${h}
158
+ `]:{...DN(e)}}}},UN=e=>{const{colorFillContent:t,colorFill:o}=e,a=t,l=o;return{color:a,colorGradientEnd:l,gradientFromColor:a,gradientToColor:l,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Us=Xt("Skeleton",e=>{const{componentCls:t,calc:o}=e,a=qt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(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 qN(a)},UN,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),GN=e=>{const{prefixCls:t,className:o,classNames:a,rootClassName:l,active:c,style:f,styles:m,shape:h="circle",size:p,...y}=e,{getPrefixCls:b}=u.useContext(ut),v=b("skeleton",t),[$,x]=Us(v),E=no(T=>p??T),C=W(v,`${v}-element`,{[`${v}-active`]:c},a?.root,o,l,$,x);return u.createElement("div",{className:C,style:m?.root},u.createElement(lf,{prefixCls:`${v}-avatar`,className:a?.content,style:{...m?.content,...f},shape:h,size:E,...y}))},XN=e=>{const{prefixCls:t,className:o,rootClassName:a,classNames:l,active:c,style:f,styles:m,block:h=!1,size:p,...y}=e,{getPrefixCls:b}=u.useContext(ut),v=b("skeleton",t),[$,x]=Us(v),E=no(T=>p??T),C=W(v,`${v}-element`,{[`${v}-active`]:c,[`${v}-block`]:h},l?.root,o,a,$,x);return u.createElement("div",{className:C,style:m?.root},u.createElement(lf,{prefixCls:`${v}-button`,className:l?.content,style:{...m?.content,...f},size:E,...y}))},yE=e=>{const{prefixCls:t,className:o,classNames:a,rootClassName:l,internalClassName:c,style:f,styles:m,active:h,children:p}=e,{getPrefixCls:y}=u.useContext(ut),b=y("skeleton",t),[v,$]=Us(b),x=W(b,`${b}-element`,{[`${b}-active`]:h},v,a?.root,o,l,$);return u.createElement("div",{className:x,style:m?.root},u.createElement("div",{className:W(a?.content,c||`${b}-node`),style:{...m?.content,...f}},p))},WN=e=>{const{getPrefixCls:t}=u.useContext(ut),o=t("skeleton",e.prefixCls);return u.createElement(yE,{...e,internalClassName:`${o}-image`},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},YN=e=>{const{prefixCls:t,className:o,classNames:a,rootClassName:l,active:c,block:f,style:m,styles:h,size:p,...y}=e,{getPrefixCls:b}=u.useContext(ut),v=b("skeleton",t),[$,x]=Us(v),E=no(T=>p??T),C=W(v,`${v}-element`,{[`${v}-active`]:c,[`${v}-block`]:f},a?.root,o,l,$,x);return u.createElement("div",{className:C,style:h?.root},u.createElement(lf,{prefixCls:`${v}-input`,className:a?.content,style:{...h?.content,...m},size:E,...y}))},KN=(e,t)=>{const{width:o,rows:a=2}=t;if(Array.isArray(o))return o[e];if(a-1===e)return o},kN=e=>{const{prefixCls:t,className:o,style:a,rows:l=0}=e,c=Array.from({length:l}).map((f,m)=>u.createElement("li",{key:m,style:{width:KN(m,e)}}));return u.createElement("ul",{className:W(t,o),style:a},c)},QN=({prefixCls:e,className:t,width:o,style:a})=>u.createElement("h3",{className:W(e,t),style:{width:o,...a}});function Ym(e){return e&&typeof e=="object"?e:{}}function ZN(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function JN(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function e5(e,t){const o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}const ro=e=>{const{prefixCls:t,loading:o,className:a,rootClassName:l,classNames:c,style:f,styles:m,children:h,avatar:p=!1,title:y=!0,paragraph:b=!0,active:v,round:$}=e,{getPrefixCls:x,direction:E,className:C,style:T,classNames:M,styles:w}=cn("skeleton"),N=x("skeleton",t),[R,_]=Us(N),z={...e,avatar:p,title:y,paragraph:b},[B,H]=Nn([M,c],[w,m],{props:z});if(o||!("loading"in e)){const I=!!p,L=!!y,V=!!b;let k;if(I){const P={className:B.avatar,prefixCls:`${N}-avatar`,...ZN(L,V),...Ym(p),style:H.avatar};k=u.createElement("div",{className:W(B.header,`${N}-header`),style:H.header},u.createElement(lf,{...P}))}let U;if(L||V){let P;if(L){const G={className:B.title,prefixCls:`${N}-title`,...JN(I,V),...Ym(y),style:H.title};P=u.createElement(QN,{...G})}let q;if(V){const G={className:B.paragraph,prefixCls:`${N}-paragraph`,...e5(I,L),...Ym(b),style:H.paragraph};q=u.createElement(kN,{...G})}U=u.createElement("div",{className:W(B.section,`${N}-section`),style:H.section},P,q)}const F=W(N,{[`${N}-with-avatar`]:I,[`${N}-active`]:v,[`${N}-rtl`]:E==="rtl",[`${N}-round`]:$},B.root,C,a,l,R,_);return u.createElement("div",{className:F,style:{...H.root,...T,...f}},k,U)}return h??null};ro.Button=XN;ro.Avatar=GN;ro.Input=YN;ro.Image=WN;ro.Node=yE;function xS(){}const t5=u.createContext({add:xS,remove:xS});function bE(e){const t=u.useContext(t5),o=u.useRef(null);return Tt(l=>{if(l){const c=e?l.querySelector(e):l;c&&(t.add(c),o.current=c)}else t.remove(o.current)})}const ES=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=u.useContext(Vs);return te.createElement(pr,{onClick:o,...e},t)},$S=()=>{const{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:a,onOk:l}=u.useContext(Vs);return te.createElement(pr,{...Jx(o),loading:e,onClick:l,...t},a)};function n5(e,t){return te.createElement("span",{className:`${e}-close-x`},t||te.createElement(fl,{className:`${e}-close-icon`}))}const r5=e=>{const{okText:t,okType:o="primary",cancelText:a,confirmLoading:l,onOk:c,onCancel:f,okButtonProps:m,cancelButtonProps:h,footer:p}=e,[y]=ba("Modal",J6()),b=t||y?.okText,v=a||y?.cancelText,$=te.useMemo(()=>({confirmLoading:l,okButtonProps:m,cancelButtonProps:h,okTextLocale:b,cancelTextLocale:v,okType:o,onOk:c,onCancel:f}),[l,m,h,b,v,o,c,f]);let x;return typeof p=="function"||typeof p>"u"?(x=te.createElement(te.Fragment,null,te.createElement(ES,null),te.createElement($S,null)),typeof p=="function"&&(x=p(x,{OkBtn:$S,CancelBtn:ES})),x=te.createElement(lE,{value:$},x)):x=p,te.createElement(Xx,{disabled:!1},x)},o5=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"}}}},a5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},i5=(e,t)=>{const{componentCls:o,gridColumns:a,antCls:l}=e,[c,f]=to(l,"grid"),[,m]=to(l,"col"),h={};for(let p=a;p>=0;p--)p===0?(h[`${o}${t}-${p}`]={display:"none"},h[`${o}-push-${p}`]={insetInlineStart:"auto"},h[`${o}-pull-${p}`]={insetInlineEnd:"auto"},h[`${o}${t}-push-${p}`]={insetInlineStart:"auto"},h[`${o}${t}-pull-${p}`]={insetInlineEnd:"auto"},h[`${o}${t}-offset-${p}`]={marginInlineStart:0},h[`${o}${t}-order-${p}`]={order:0}):(h[`${o}${t}-${p}`]=[{[c("display")]:"block",display:"block"},{display:f("display"),flex:`0 0 ${p/a*100}%`,maxWidth:`${p/a*100}%`}],h[`${o}${t}-push-${p}`]={insetInlineStart:`${p/a*100}%`},h[`${o}${t}-pull-${p}`]={insetInlineEnd:`${p/a*100}%`},h[`${o}${t}-offset-${p}`]={marginInlineStart:`${p/a*100}%`},h[`${o}${t}-order-${p}`]={order:p});return h[`${o}${t}-flex`]={flex:m(`${t.replace(/-/,"")}-flex`)},h},pp=(e,t)=>i5(e,t),l5=(e,t,o)=>({[`@media (min-width: ${ae(t)})`]:{...pp(e,o)}}),s5=()=>({}),c5=()=>({});Xt("Grid",o5,s5);const vE=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin});Xt("Grid",e=>{const t=qt(e,{gridColumns:24}),o=vE(t);return delete o.xs,[a5(t),pp(t,""),pp(t,"-xs"),Object.keys(o).map(a=>l5(t,o[a],`-${a}`)).reduce((a,l)=>({...a,...l}),{})]},c5);function wS(e){return{position:e,inset:0}}const u5=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...wS("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...wS("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:tE(e)}]},f5=e=>{const{componentCls:t,motionDurationMid:o}=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:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Pr(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...Ls(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(a=>`${a} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ae(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...eo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(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:`${ae(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
159
+ ${t}-body,
160
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},d5=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},m5=e=>{const{componentCls:t}=e,o=vE(e),a={...o};delete a.xs;const l=`--${t.replace(".","")}-`,c=Object.keys(a).map(f=>({[`@media (min-width: ${ae(a[f])})`]:{width:`var(${l}${f}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(sn(Object.keys(o).map((f,m)=>{const h=Object.keys(o)[m-1];return h?{[`${l}${f}-width`]:`var(${l}${h}-width)`}:null})),[{width:`var(${l}xs-width)`}],sn(c))}}},SE=e=>{const t=e.padding,o=e.fontSizeHeading5,a=e.lineHeightHeading5;return qt(e,{modalHeaderHeight:e.calc(e.calc(a).mul(o).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()})},CE=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),g5=Xt("Modal",e=>{const t=SE(e);return[f5(t),d5(t),u5(t),nE(t,"zoom"),m5(t)]},CE,{unitless:{titleLineHeight:!0}});let hp;const p5=e=>{hp={x:e.pageX,y:e.pageY},setTimeout(()=>{hp=null},100)};HN()&&document.documentElement.addEventListener("click",p5,!0);const h5=e=>{const{prefixCls:t,className:o,rootClassName:a,open:l,wrapClassName:c,centered:f,getContainer:m,style:h,width:p=520,footer:y,classNames:b,styles:v,children:$,loading:x,confirmLoading:E,zIndex:C,mousePosition:T,onOk:M,onCancel:w,okButtonProps:N,cancelButtonProps:R,destroyOnHidden:_,destroyOnClose:z,panelRef:B=null,closable:H,mask:I,modalRender:L,maskClosable:V,focusTriggerAfterClose:k,focusable:U,...F}=e,{getPopupContainer:P,getPrefixCls:q,direction:G,className:Y,style:Z,classNames:A,styles:D,centered:K,cancelButtonProps:Q,okButtonProps:ee,mask:ie}=cn("modal"),{modal:le}=u.useContext(ut),[de,ye]=u.useMemo(()=>typeof H=="boolean"?[void 0,void 0]:[H?.afterClose,H?.onClose],[H]),ve=q("modal",t),we=q(),[be,Se,me]=Ox(I,ie,ve,V),he=pE(U,be,k),pe=bt=>{E||(w?.(bt),ye?.())},Pe=bt=>{M?.(bt),ye?.()},Le=va(ve),[Ee,Xe]=g5(ve,Le),Oe=W(c,{[`${ve}-centered`]:f??K,[`${ve}-wrap-rtl`]:G==="rtl"}),Re=y!==null&&!x?u.createElement(r5,{...e,okButtonProps:{...ee,...N},onOk:Pe,cancelButtonProps:{...Q,...R},onCancel:pe}):null,[De,Te,et,it]=Sh(ga(e),ga(le),{closable:!0,closeIcon:u.createElement(fl,{className:`${ve}-close-icon`}),closeIconRender:bt=>n5(ve,bt)}),ft=De?{disabled:et,closeIcon:Te,afterClose:de,...it}:!1,Ue=L?bt=>u.createElement("div",{className:`${ve}-render`},L(bt)):void 0,dt=`.${ve}-${L?"render":"container"}`,Me=bE(dt),xe=Hr(B,Me),[Ae,Ye]=Eh("Modal",C),_e={...e,width:p,panelRef:B,focusTriggerAfterClose:he.focusTriggerAfterClose,focusable:he,mask:be,maskClosable:me,zIndex:Ae},[Ce,Ie]=Nn([A,b,Se],[D,v],{props:_e}),[mt,ke]=u.useMemo(()=>p&&typeof p=="object"?[void 0,p]:[p,void 0],[p]),Ut=u.useMemo(()=>{const bt={};return ke&&Object.keys(ke).forEach(je=>{const Fe=ke[je];Fe!==void 0&&(bt[`--${ve}-${je}-width`]=typeof Fe=="number"?`${Fe}px`:Fe)}),bt},[ve,ke]);return u.createElement(Bh,{form:!0,space:!0},u.createElement(of.Provider,{value:Ye},u.createElement(DR,{width:mt,...F,zIndex:Ae,getContainer:m===void 0?P:m,prefixCls:ve,rootClassName:W(Ee,a,Xe,Le,Ce.root),rootStyle:Ie.root,footer:Re,visible:l,mousePosition:T??hp,onClose:pe,closable:ft,closeIcon:Te,transitionName:ha(we,"zoom",e.transitionName),maskTransitionName:ha(we,"fade",e.maskTransitionName),mask:be,maskClosable:me,className:W(Ee,o,Y),style:{...Z,...h,...Ut},classNames:{...Ce,wrapper:W(Ce.wrapper,Oe)},styles:Ie,panelRef:xe,destroyOnHidden:_??z,modalRender:Ue,focusTriggerAfterClose:he.focusTriggerAfterClose,focusTrap:he.trap},x?u.createElement(ro,{active:!0,title:!1,paragraph:{rows:4},className:`${ve}-body-skeleton`}):$)))},y5=e=>{const{componentCls:t,titleFontSize:o,titleLineHeight:a,modalConfirmIconSize:l,fontSize:c,lineHeight:f,modalTitleHeight:m,fontHeight:h,confirmBodyPadding:p}=e,y=`${t}-confirm`;return{[y]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${y}-body-wrapper`]:{...Hs()},[`&${t} ${t}-body`]:{padding:p},[`${y}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:l,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(h).sub(l).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(m).sub(l).equal()).div(2).equal()}},[`${y}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.marginSM)})`},[`${y}-body-no-icon ${y}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${y}-paragraph`]:{maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${y}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:a},[`${y}-container`]:{color:e.colorText,fontSize:c,lineHeight:f},[`${y}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${y}-error ${y}-body > ${e.iconCls}`]:{color:e.colorError},[`${y}-warning ${y}-body > ${e.iconCls},
161
+ ${y}-confirm ${y}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${y}-info ${y}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${y}-success ${y}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},b5=tf(["Modal","confirm"],e=>{const t=SE(e);return y5(t)},CE,{order:-1e3}),v5=e=>{const{prefixCls:t,icon:o,okText:a,cancelText:l,confirmPrefixCls:c,type:f,okCancel:m,footer:h,locale:p,autoFocusButton:y,focusable:b,...v}=e;let $=o;if(!o&&o!==null)switch(f){case"info":$=u.createElement(yh,null);break;case"success":$=u.createElement(ph,null);break;case"error":$=u.createElement(nf,null);break;default:$=u.createElement(hh,null)}const x=m??f==="confirm",E=u.useMemo(()=>{const L=b?.autoFocusButton||y;return L||L===null?L:"ok"},[y,b?.autoFocusButton]),[C]=ba("Modal"),T=p||C,M=a||(x?T?.okText:T?.justOkText),w=l||T?.cancelText,{closable:N}=v,{onClose:R}=N&&typeof N=="object"?N:{},_=u.useMemo(()=>({autoFocusButton:E,cancelTextLocale:w,okTextLocale:M,mergedOkCancel:x,onClose:R,...v}),[E,w,M,x,R,v]),z=u.createElement(u.Fragment,null,u.createElement(lS,null),u.createElement(sS,null)),B=vr(e.title)&&e.title!=="",H=vr($),I=`${c}-body`;return u.createElement("div",{className:`${c}-body-wrapper`},u.createElement("div",{className:W(I,{[`${I}-has-title`]:B,[`${I}-no-icon`]:!H})},$,u.createElement("div",{className:`${c}-paragraph`},B&&u.createElement("span",{className:`${c}-title`},e.title),u.createElement("div",{className:`${c}-content`},e.content))),h===void 0||typeof h=="function"?u.createElement(lE,{value:_},u.createElement("div",{className:`${c}-btns`},typeof h=="function"?h(z,{OkBtn:sS,CancelBtn:lS}):z)):h,u.createElement(b5,{prefixCls:t}))},S5=e=>{const{close:t,zIndex:o,maskStyle:a,direction:l,prefixCls:c,wrapClassName:f,rootPrefixCls:m,bodyStyle:h,closable:p=!1,onConfirm:y,styles:b,title:v,mask:$,maskClosable:x,okButtonProps:E,cancelButtonProps:C}=e,{cancelButtonProps:T,okButtonProps:M}=cn("modal"),w=`${c}-confirm`,N=e.width||416,R=e.style||{},_=W(w,`${w}-${e.type}`,{[`${w}-rtl`]:l==="rtl"},e.className),z=u.useMemo(()=>{const I=Gg($,x);return I.closable??(I.closable=!1),I},[$,x]),[,B]=Dr(),H=u.useMemo(()=>o!==void 0?o:B.zIndexPopupBase+xh,[o,B]);return u.createElement(h5,{...e,className:_,wrapClassName:W({[`${w}-centered`]:!!e.centered},f),onCancel:()=>{t?.({triggerCancel:!0}),y?.(!1)},title:v,footer:null,transitionName:ha(m||"","zoom",e.transitionName),maskTransitionName:ha(m||"","fade",e.maskTransitionName),mask:z,style:R,styles:{body:h,mask:a,...b},width:N,zIndex:H,closable:p},u.createElement(v5,{...e,confirmPrefixCls:w,okButtonProps:{...M,...E},cancelButtonProps:{...T,...C}}))},C5=e=>{const{rootPrefixCls:t,iconPrefixCls:o,direction:a,theme:l}=e;return u.createElement(ei,{prefixCls:t,iconPrefixCls:o,direction:a,theme:l},u.createElement(S5,{...e}))};function x5(e){return{...e,type:"warning"}}function E5(e){return{...e,type:"info"}}function $5(e){return{...e,type:"success"}}function w5(e){return{...e,type:"error"}}function T5(e){return{...e,type:"confirm"}}const M5=u.forwardRef((e,t)=>{const{afterClose:o,config:a,...l}=e,[c,f]=u.useState(!0),[m,h]=u.useState(a),{direction:p,getPrefixCls:y}=u.useContext(ut),b=y("modal"),v=y(),$=()=>{o(),m.afterClose?.()},x=(...T)=>{f(!1),T.some(w=>w?.triggerCancel)&&m.onCancel?.(()=>{},...T.slice(1))};u.useImperativeHandle(t,()=>({destroy:x,update:T=>{h(M=>{const w=typeof T=="function"?T(M):T;return{...M,...w}})}}));const E=m.okCancel??m.type==="confirm",[C]=ba("Modal",ma.Modal);return u.createElement(C5,{prefixCls:b,rootPrefixCls:v,...m,close:x,open:c,afterClose:$,okText:m.okText||(E?C?.okText:C?.justOkText),direction:m.direction||p,cancelText:m.cancelText||C?.cancelText,...l})});let TS=0;const R5=u.memo(u.forwardRef((e,t)=>{const[o,a]=lT();return u.useImperativeHandle(t,()=>({patchElement:a}),[a]),u.createElement(u.Fragment,null,o)}));function N5(){const e=u.useRef(null),[t,o]=u.useState([]);u.useEffect(()=>{t.length&&(sn(t).forEach(f=>{f()}),o([]))},[t]);const a=u.useCallback(c=>function(m){TS+=1;const h=u.createRef();let p;const y=new Promise(E=>{p=E});let b=!1,v;const $=u.createElement(M5,{key:`modal-${TS}`,config:c(m),ref:h,afterClose:()=>{v?.()},isSilent:()=>b,onConfirm:E=>{p(E)}});return v=e.current?.patchElement($),{destroy:()=>{function E(){h.current?.destroy()}h.current?E():o(C=>[].concat(sn(C),[E]))},update:E=>{function C(){h.current?.update(E)}h.current?C():o(T=>[].concat(sn(T),[C]))},then:E=>(b=!0,y.then(E))}},[]);return[u.useMemo(()=>({info:a(E5),success:a($5),error:a(w5),warning:a(x5),confirm:a(T5)}),[a]),u.createElement(R5,{key:"modal-holder",ref:e})]}const z5=e=>{const{componentCls:t,notificationMarginEdge:o,animationMaxHeight:a}=e,l=`${t}-notice`,c=new Mt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),f=new Mt("antNotificationTopFadeIn",{"0%":{top:-a,opacity:0},"100%":{top:0,opacity:1}}),m=new Mt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(a).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),h=new Mt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[l]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:f}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:m}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:o,_skip_check_:!0},[l]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:h}}}}},O5=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],A5={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},_5=(e,t)=>{const{componentCls:o}=e;return{[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[A5[t]]:{value:0,_skip_check_:!0}}}}},B5=e=>{const t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return{[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},H5=e=>{const t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return t},L5=e=>{const{componentCls:t}=e;return{[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...B5(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...H5(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...O5.map(o=>_5(e,o)).reduce((o,a)=>({...o,...a}),{})}},D5=e=>{const{iconCls:t,componentCls:o,boxShadow:a,fontSizeLG:l,notificationMarginBottom:c,borderRadiusLG:f,colorSuccess:m,colorInfo:h,colorWarning:p,colorError:y,colorTextHeading:b,notificationBg:v,notificationPadding:$,notificationMarginEdge:x,progressBg:E,notificationProgressHeight:C,fontSize:T,lineHeight:M,width:w,notificationIconSize:N,colorText:R,colorSuccessBg:_,colorErrorBg:z,colorInfoBg:B,colorWarningBg:H,motionDurationMid:I}=e,L=`${o}-notice`;return{position:"relative",marginBottom:c,marginInlineStart:"auto",background:v,borderRadius:f,boxShadow:a,[L]:{padding:$,width:w,maxWidth:`calc(100vw - ${ae(e.calc(x).mul(2).equal())})`,lineHeight:M,wordWrap:"break-word",borderRadius:f,overflow:"hidden","&-success":_?{background:_}:{},"&-error":z?{background:z}:{},"&-info":B?{background:B}:{},"&-warning":H?{background:H}:{}},[`${L}-title`]:{marginBottom:e.marginXS,color:b,fontSize:l,lineHeight:e.lineHeightLG},[`${L}-description`]:{fontSize:T,color:R,marginTop:e.marginXS},[`${L}-closable ${L}-title`]:{paddingInlineEnd:e.paddingLG},[`${L}-with-icon ${L}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(N).equal(),fontSize:l},[`${L}-with-icon ${L}-description`]:{marginInlineStart:e.calc(e.marginSM).add(N).equal(),fontSize:T},[`${L}-icon`]:{position:"absolute",fontSize:N,lineHeight:1,[`&-success${t}`]:{color:m},[`&-info${t}`]:{color:h},[`&-warning${t}`]:{color:p},[`&-error${t}`]:{color:y}},[`${L}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(V=>`${V} ${I}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...eo(e)},[`${L}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${ae(f)} * 2)`,left:{_skip_check_:!0,value:f},right:{_skip_check_:!0,value:f},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:f,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:E},"&::-webkit-progress-value":{borderRadius:f,background:E}},[`${L}-actions`]:{float:"right",marginTop:e.marginSM}}},P5=e=>{const{componentCls:t,notificationMarginBottom:o,notificationMarginEdge:a,motionDurationMid:l,motionEaseInOut:c}=e,f=`${t}-notice`,m=new Mt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:o},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:{...Pr(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:a,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:c,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:c,animationFillMode:"both",animationDuration:l,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:m,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${f}-actions`]:{float:"left"}}}},{[t]:{[`${f}-wrapper`]:D5(e)}}]},I5=e=>({zIndexPopup:e.zIndexPopupBase+xh+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),j5=e=>{const t=e.paddingMD,o=e.paddingLG;return qt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},V5=Xt("Notification",e=>{const t=j5(e);return[P5(t),z5(t),L5(t)]},I5);function xE(e,t){return t===null||t===!1?null:t||u.createElement(fl,{className:`${e}-close-icon`})}const F5={success:ph,info:yh,error:nf,warning:hh},q5=e=>{const{prefixCls:t,icon:o,type:a,title:l,description:c,actions:f,role:m="alert",styles:h,classNames:p}=e;let y=null;return o?y=u.createElement("span",{className:W(`${t}-icon`,p.icon),style:h.icon},o):a&&(y=u.createElement(F5[a]||null,{className:W(`${t}-icon`,p.icon,`${t}-icon-${a}`),style:h.icon})),u.createElement("div",{className:W({[`${t}-with-icon`]:y}),role:m},y,u.createElement("div",{className:W(`${t}-title`,p.title),style:h.title},l),c&&u.createElement("div",{className:W(`${t}-description`,p.description),style:h.description},c),f&&u.createElement("div",{className:W(`${t}-actions`,p.actions),style:h.actions},f))};function U5(e,t,o){let a;switch(e){case"top":a={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":a={left:0,top:t,bottom:"auto"};break;case"topRight":a={right:0,top:t,bottom:"auto"};break;case"bottom":a={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case"bottomLeft":a={left:0,top:"auto",bottom:o};break;default:a={right:0,top:"auto",bottom:o};break}return a}function G5(e){return{motionName:`${e}-fade`}}function X5(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}const MS=24,W5=4.5,Y5="topRight",K5=({children:e,prefixCls:t})=>{const o=va(t),[a,l]=V5(t,o);return te.createElement(Yx,{classNames:{list:W(a,l,o)}},e)},k5=(e,{prefixCls:t,key:o})=>te.createElement(K5,{prefixCls:t,key:o},e),Q5=te.forwardRef((e,t)=>{const{top:o,bottom:a,prefixCls:l,getContainer:c,maxCount:f,rtl:m,onAllRemoved:h,stack:p,duration:y=W5,pauseOnHover:b=!0,showProgress:v}=e,{getPrefixCls:$,getPopupContainer:x,direction:E}=cn("notification"),{notification:C}=u.useContext(ut),[,T]=Dr(),M=l||$("notification"),w=u.useMemo(()=>typeof y=="number"&&y>0?y:!1,[y]),N=L=>U5(L,o??MS,a??MS),R=()=>W({[`${M}-rtl`]:m??E==="rtl"}),_=()=>G5(M),[z,B]=Kx({prefixCls:M,style:N,className:R,motion:_,closable:{closeIcon:xE(M)},duration:w,getContainer:()=>c?.()||x?.()||document.body,maxCount:f,pauseOnHover:b,showProgress:v,onAllRemoved:h,renderNotifications:k5,stack:p===!1?!1:{threshold:typeof p=="object"?p?.threshold:void 0,offset:8,gap:T.margin}}),[H,I]=Nn([C?.classNames,e?.classNames],[C?.styles,e?.styles],{props:e});return te.useImperativeHandle(t,()=>({...z,prefixCls:M,notification:C,classNames:H,styles:I})),B});function Z5(e){const t=te.useRef(null),{notification:o}=te.useContext(ut);return[te.useMemo(()=>{const l=h=>{if(!t.current)return;const{open:p,prefixCls:y,notification:b,classNames:v,styles:$}=t.current,x=b?.className||{},E=b?.style||{},C=`${y}-notice`,{title:T,message:M,description:w,icon:N,type:R,btn:_,actions:z,className:B,style:H,role:I="alert",closeIcon:L,closable:V,classNames:k={},styles:U={},...F}=h,P=T??M,q=z??_,G=xE(C,X5(L,e,b)),[Y,Z,,A]=zx(ga({...e||{},...h}),ga(o),{closable:!0,closeIcon:G}),D=Y?{onClose:V&&typeof V=="object"?V.onClose:void 0,closeIcon:Z,...A}:!1,K=la(k,{props:h}),Q=la(U,{props:h}),ee=rf(void 0,v,K),ie=Ch($,Q);return p({placement:e?.placement??Y5,...F,content:te.createElement(q5,{prefixCls:C,icon:N,type:R,title:P,description:w,actions:q,role:I,classNames:ee,styles:ie}),className:W({[`${C}-${R}`]:R},B,x,ee.root),style:{...E,...ie.root,...H},closable:D})},f={open:l,destroy:h=>{h!==void 0?t.current?.close(h):t.current?.destroy()}};return["success","info","warning","error"].forEach(h=>{f[h]=p=>l({...p,type:h})}),f},[e,o]),te.createElement(Q5,{key:"notification-holder",...e,ref:t})]}function J5(e){return Z5(e)}const RS=te.createContext({}),EE=te.createContext({message:{},notification:{},modal:{}}),ez=e=>{const{componentCls:t,colorText:o,fontSize:a,lineHeight:l,fontFamily:c}=e;return{[t]:{color:o,fontSize:a,lineHeight:l,fontFamily:c,[`&${t}-rtl`]:{direction:"rtl"}}}},tz=()=>({}),nz=Xt("App",ez,tz),rz=e=>{const{prefixCls:t,children:o,className:a,rootClassName:l,message:c,notification:f,style:m,component:h="div"}=e,{direction:p,getPrefixCls:y,className:b,style:v}=cn("app"),$=y("app",t),[x,E]=nz($),C=W(x,$,a,l,E,{[`${$}-rtl`]:p==="rtl"}),T=u.useContext(RS),M=te.useMemo(()=>({message:{...T.message,...c},notification:{...T.notification,...f}}),[c,f,T.message,T.notification]),[w,N]=gM(M.message),[R,_]=J5(M.notification),[z,B]=N5(),H=te.useMemo(()=>({message:w,notification:R,modal:z}),[w,R,z]),I=h===!1?te.Fragment:h,L={className:W(b,C),style:{...v,...m}};return te.createElement(EE.Provider,{value:H},te.createElement(RS.Provider,{value:M},te.createElement(I,{...h===!1?void 0:L},B,N,_,o)))},oz=()=>te.useContext(EE),$E=rz;$E.useApp=oz;const Fi=void 0;function az(e,t){const{prefixCls:o,invalidate:a,item:l,renderItem:c,responsive:f,responsiveDisabled:m,registerSize:h,itemKey:p,className:y,style:b,children:v,display:$,order:x,component:E="div",...C}=e,T=f&&!$;function M(z){h(p,z)}u.useEffect(()=>()=>{M(null)},[]);const w=c&&l!==Fi?c(l,{index:x}):v;let N;a||(N={opacity:T?0:1,height:T?0:Fi,overflowY:T?"hidden":Fi,order:f?x:Fi,pointerEvents:T?"none":Fi,position:T?"absolute":Fi});const R={};T&&(R["aria-hidden"]=!0);let _=u.createElement(E,_r({className:W(!a&&o,y),style:{...N,...b}},R,C,{ref:t}),w);return f&&(_=u.createElement(wo,{onResize:({offsetWidth:z})=>{M(z)},disabled:m},_)),_}const fs=u.forwardRef(az);function iz(e){if(typeof MessageChannel>"u")En(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function lz(){const e=u.useRef(null);return o=>{e.current||(e.current=[],iz(()=>{Ps.unstable_batchedUpdates(()=>{e.current.forEach(a=>{a()}),e.current=null})})),e.current.push(o)}}function qi(e,t){const[o,a]=u.useState(t),l=Tt(c=>{e(()=>{a(c)})});return[o,l]}const qu=te.createContext(null),sz=(e,t)=>{const o=u.useContext(qu);if(!o){const{component:m="div",...h}=e;return u.createElement(m,_r({},h,{ref:t}))}const{className:a,...l}=o,{className:c,...f}=e;return u.createElement(qu.Provider,{value:null},u.createElement(fs,_r({ref:t,className:W(a,c)},l,f)))},cz=u.forwardRef(sz),wE="responsive",TE="invalidate";function uz(e){return`+ ${e.length} ...`}function fz(e,t){const{prefixCls:o="rc-overflow",data:a=[],renderItem:l,renderRawItem:c,itemKey:f,itemWidth:m=10,ssr:h,style:p,className:y,maxCount:b,renderRest:v,renderRawRest:$,prefix:x,suffix:E,component:C="div",itemComponent:T,onVisibleChange:M,...w}=e,N=h==="full",R=lz(),[_,z]=qi(R,null),B=_||0,[H,I]=qi(R,new Map),[L,V]=qi(R,0),[k,U]=qi(R,0),[F,P]=qi(R,0),[q,G]=qi(R,0),[Y,Z]=u.useState(null),[A,D]=u.useState(null),K=u.useMemo(()=>A===null&&N?Number.MAX_SAFE_INTEGER:A||0,[A,_]),[Q,ee]=u.useState(!1),ie=`${o}-item`,le=Math.max(L,k),de=b===wE,ye=a.length&&de,ve=b===TE,we=ye||typeof b=="number"&&a.length>b,be=u.useMemo(()=>{let xe=a;return ye?_===null&&N?xe=a:xe=a.slice(0,Math.min(a.length,B/m)):typeof b=="number"&&(xe=a.slice(0,b)),xe},[a,m,_,b,ye]),Se=u.useMemo(()=>ye?a.slice(K+1):a.slice(be.length),[a,be,ye,K]),me=u.useCallback((xe,Ae)=>typeof f=="function"?f(xe):(f&&xe?.[f])??Ae,[f]),he=u.useCallback(l||(xe=>xe),[l]);function pe(xe,Ae,Ye){A===xe&&(Ae===void 0||Ae===Y)||(D(xe),Ye||(ee(xe<a.length-1),M?.(xe)),Ae!==void 0&&Z(Ae))}function Pe(xe,Ae){z(Ae.clientWidth)}function Le(xe,Ae){I(Ye=>{const _e=new Map(Ye);return Ae===null?_e.delete(xe):_e.set(xe,Ae),_e})}function Ee(xe,Ae){U(Ae),V(k)}function Xe(xe,Ae){P(Ae)}function Oe(xe,Ae){G(Ae)}function Re(xe){return H.get(me(be[xe],xe))}Lt(()=>{if(B&&typeof le=="number"&&be){let xe=F+q;const Ae=be.length,Ye=Ae-1;if(!Ae){pe(0,null);return}for(let _e=0;_e<Ae;_e+=1){let Ce=Re(_e);if(N&&(Ce=Ce||0),Ce===void 0){pe(_e-1,void 0,!0);break}if(xe+=Ce,Ye===0&&xe<=B||_e===Ye-1&&xe+Re(Ye)<=B){pe(Ye,null);break}else if(xe+le>B){pe(_e-1,xe-Ce-q+k);break}}E&&Re(0)+q>B&&Z(null)}},[B,H,k,F,q,me,be]);const De=Q&&!!Se.length;let Te={};Y!==null&&ye&&(Te={position:"absolute",left:Y,top:0});const et={prefixCls:ie,responsive:ye,component:T,invalidate:ve},it=c?(xe,Ae)=>{const Ye=me(xe,Ae);return u.createElement(qu.Provider,{key:Ye,value:{...et,order:Ae,item:xe,itemKey:Ye,registerSize:Le,display:Ae<=K}},c(xe,Ae))}:(xe,Ae)=>{const Ye=me(xe,Ae);return u.createElement(fs,_r({},et,{order:Ae,key:Ye,item:xe,renderItem:he,itemKey:Ye,registerSize:Le,display:Ae<=K}))},ft={order:De?K:Number.MAX_SAFE_INTEGER,className:`${ie}-rest`,registerSize:Ee,display:De},Ue=v||uz,dt=$?u.createElement(qu.Provider,{value:{...et,...ft}},$(Se)):u.createElement(fs,_r({},et,ft),typeof Ue=="function"?Ue(Se):Ue),Me=u.createElement(C,_r({className:W(!ve&&o,y),style:p,ref:t},w),x&&u.createElement(fs,_r({},et,{responsive:de,responsiveDisabled:!ye,order:-1,className:`${ie}-prefix`,registerSize:Xe,display:!0}),x),be.map(it),we?dt:null,E&&u.createElement(fs,_r({},et,{responsive:de,responsiveDisabled:!ye,order:K,className:`${ie}-suffix`,registerSize:Oe,display:!0,style:Te}),E));return de?u.createElement(wo,{onResize:Pe,disabled:!ye},Me):Me}const ua=u.forwardRef(fz);ua.Item=cz;ua.RESPONSIVE=wE;ua.INVALIDATE=TE;const ME=(e,t,o)=>W({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),dz=(e,t)=>t||e,mz=()=>{const[,e]=Dr(),[t]=ba("Empty"),a=new zt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:a,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,t?.description||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.7)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),u.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),u.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),u.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),u.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),u.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},u.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),u.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},gz=()=>{const[,e]=Dr(),[t]=ba("Empty"),{colorFill:o,colorFillTertiary:a,colorFillQuaternary:l,colorBgContainer:c}=e,{borderColor:f,shadowColor:m,contentColor:h}=u.useMemo(()=>({borderColor:new zt(o).onBackground(c).toHexString(),shadowColor:new zt(a).onBackground(c).toHexString(),contentColor:new zt(l).onBackground(c).toHexString()}),[o,a,l,c]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,t?.description||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:m,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:f},u.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),u.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:h}))))},pz=e=>{const{componentCls:t,margin:o,marginXS:a,marginXL:l,fontSize:c,lineHeight:f}=e;return{[t]:{marginInline:a,fontSize:c,lineHeight:f,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:a,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:l,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:a,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hz=Xt("Empty",e=>{const{componentCls:t,controlHeightLG:o,calc:a}=e,l=qt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:a(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:a(o).mul(.875).equal()});return pz(l)}),RE=u.createElement(mz,null),NE=u.createElement(gz,null),Ur=e=>{const{className:t,rootClassName:o,prefixCls:a,image:l,description:c,children:f,imageStyle:m,style:h,classNames:p,styles:y,...b}=e,{getPrefixCls:v,direction:$,className:x,style:E,classNames:C,styles:T,image:M}=cn("empty"),w=v("empty",a),[N,R]=hz(w),[_,z]=Nn([C,p],[T,y],{props:e}),[B]=ba("Empty"),H=typeof c<"u"?c:B?.description,I=typeof H=="string"?H:"empty",L=l??M??RE;let V=null;return typeof L=="string"?V=u.createElement("img",{draggable:!1,alt:I,src:L}):V=L,u.createElement("div",{className:W(N,R,w,x,{[`${w}-normal`]:L===NE,[`${w}-rtl`]:$==="rtl"},t,o,_.root),style:{...z.root,...E,...h},...b},u.createElement("div",{className:W(`${w}-image`,_.image),style:{...m,...z.image}},V),H&&u.createElement("div",{className:W(`${w}-description`,_.description),style:z.description},H),f&&u.createElement("div",{className:W(`${w}-footer`,_.footer),style:z.footer},f))};Ur.PRESENTED_IMAGE_DEFAULT=RE;Ur.PRESENTED_IMAGE_SIMPLE=NE;const zE=(e,t,o)=>{const{variant:a,[e]:l}=u.useContext(ut),c=u.useContext(_N),f=l?.variant;let m;typeof t<"u"?m=t:o===!1?m="borderless":m=c??f??a??"outlined";const h=T4.includes(m);return[m,h]};var yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},yp.apply(this,arguments)}const bz=(e,t)=>u.createElement(Dt,yp({},e,{ref:t,icon:yz})),vz=u.forwardRef(bz),Sz=["xxxl","xxl","xl","lg","md","sm","xs"],Cz=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),xz=e=>{const t=e,o=[].concat(Sz).reverse();return o.forEach((a,l)=>{const c=a.toUpperCase(),f=`screen${c}Min`,m=`screen${c}`;if(!(t[f]<=t[m]))throw new Error(`${f}<=${m} fails : !(${t[f]}<=${t[m]})`);if(l<o.length-1){const h=`screen${c}Max`;if(!(t[m]<=t[h]))throw new Error(`${m}<=${h} fails : !(${t[m]}<=${t[h]})`);const y=`screen${o[l+1].toUpperCase()}Min`;if(!(t[h]<=t[y]))throw new Error(`${h}<=${y} fails : !(${t[h]}<=${t[y]})`)}}),e},Ez=()=>{const[,e]=Dr(),t=Cz(xz(e));return te.useMemo(()=>{const o=new Map;let a=-1,l={};return{responsiveMap:t,matchHandlers:{},dispatch(c){return l=c,o.forEach(f=>f(l)),o.size>=1},subscribe(c){return o.size||this.register(),a+=1,o.set(a,c),c(l),a},unsubscribe(c){o.delete(c),o.size||this.unregister()},register(){Object.entries(t).forEach(([c,f])=>{const m=({matches:p})=>{this.dispatch({...l,[c]:p})},h=window.matchMedia(f);typeof h?.addEventListener=="function"&&h.addEventListener("change",m),this.matchHandlers[f]={mql:h,listener:m},m(h)})},unregister(){Object.values(t).forEach(c=>{const f=this.matchHandlers[c];typeof f?.mql?.removeEventListener=="function"&&f.mql.removeEventListener("change",f?.listener)}),o.clear()}}},[t])};function $z(e=!0,t={}){const o=u.useRef(t),[,a]=oT(),l=Ez();return Lt(()=>{const c=l.subscribe(f=>{o.current=f,e&&a()});return()=>l.unsubscribe(c)},[]),o.current}const OE=e=>{const{children:t,prefixCls:o,id:a,classNames:l,styles:c,className:f,style:m}=e;return u.createElement("div",{id:a,className:W(`${o}-container`,l?.container,f),style:{...c?.container,...m},role:"tooltip"},typeof t=="function"?t():t)},Ui={shiftX:64,adjustY:1},Gi={adjustX:1,shiftY:!0},zr=[0,0],wz={left:{points:["cr","cl"],overflow:Gi,offset:[-4,0],targetOffset:zr},right:{points:["cl","cr"],overflow:Gi,offset:[4,0],targetOffset:zr},top:{points:["bc","tc"],overflow:Ui,offset:[0,-4],targetOffset:zr},bottom:{points:["tc","bc"],overflow:Ui,offset:[0,4],targetOffset:zr},topLeft:{points:["bl","tl"],overflow:Ui,offset:[0,-4],targetOffset:zr},leftTop:{points:["tr","tl"],overflow:Gi,offset:[-4,0],targetOffset:zr},topRight:{points:["br","tr"],overflow:Ui,offset:[0,-4],targetOffset:zr},rightTop:{points:["tl","tr"],overflow:Gi,offset:[4,0],targetOffset:zr},bottomRight:{points:["tr","br"],overflow:Ui,offset:[0,4],targetOffset:zr},rightBottom:{points:["bl","br"],overflow:Gi,offset:[4,0],targetOffset:zr},bottomLeft:{points:["tl","bl"],overflow:Ui,offset:[0,4],targetOffset:zr},leftBottom:{points:["br","bl"],overflow:Gi,offset:[-4,0],targetOffset:zr}};function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},bp.apply(this,arguments)}const Tz=u.forwardRef((e,t)=>{const{trigger:o=["hover"],mouseEnterDelay:a=0,mouseLeaveDelay:l=.1,prefixCls:c="rc-tooltip",children:f,onVisibleChange:m,afterVisibleChange:h,motion:p,placement:y="right",align:b={},destroyOnHidden:v=!1,defaultVisible:$,getTooltipContainer:x,arrowContent:E,overlay:C,id:T,showArrow:M=!0,classNames:w,styles:N,...R}=e,_=Sa(T),z=u.useRef(null);u.useImperativeHandle(t,()=>z.current);const B={...R};"visible"in e&&(B.popupVisible=e.visible);const H=u.useMemo(()=>{if(!M)return!1;const L=M===!0?{}:M;return{...L,className:W(L.className,w?.arrow),style:{...L.style,...N?.arrow},content:L.content??E}},[M,w?.arrow,N?.arrow,E]),I=({open:L})=>{const V=u.Children.only(f),k={"aria-describedby":C&&L?_:void 0};return u.cloneElement(V,k)};return u.createElement(wh,bp({popupClassName:w?.root,prefixCls:c,popup:u.createElement(OE,{key:"content",prefixCls:c,id:_,classNames:w,styles:N},C),action:o,builtinPlacements:wz,popupPlacement:y,ref:z,popupAlign:b,getPopupContainer:x,onOpenChange:m,afterOpenChange:h,popupMotion:p,defaultPopupVisible:$,autoDestroy:v,mouseLeaveDelay:l,popupStyle:N?.root,mouseEnterDelay:a,arrow:H,uniqueContainerClassName:w?.uniqueContainer,uniqueContainerStyle:N?.uniqueContainer},B),I)});function Mz(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:a}=e,l=t/2,c=0,f=l,m=a*1/Math.sqrt(2),h=l-a*(1-1/Math.sqrt(2)),p=l-o*(1/Math.sqrt(2)),y=a*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),b=2*l-p,v=y,$=2*l-m,x=h,E=2*l-c,C=f,T=l*Math.sqrt(2)+a*(Math.sqrt(2)-2),M=a*(Math.sqrt(2)-1),w=`polygon(${M}px 100%, 50% ${M}px, ${2*l-M}px 100%, ${M}px 100%)`,N=`path('M ${c} ${f} A ${a} ${a} 0 0 0 ${m} ${h} L ${p} ${y} A ${o} ${o} 0 0 1 ${b} ${v} L ${$} ${x} A ${a} ${a} 0 0 0 ${E} ${C} Z')`;return{arrowShadowWidth:T,arrowPath:N,arrowPolygon:w}}const Rz=(e,t,o)=>{const{sizePopupArrow:a,arrowPolygon:l,arrowPath:c,arrowShadowWidth:f,borderRadiusXS:m,calc:h}=e;return{pointerEvents:"none",width:a,height:a,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:a,height:h(a).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[l,c]},content:'""'},"&::after":{content:'""',position:"absolute",width:f,height:f,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(m)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},AE=8;function _E(e){const{contentRadius:t,limitVerticalRadius:o}=e,a=t>12?t+2:12;return{arrowOffsetHorizontal:a,arrowOffsetVertical:o?AE:a}}function pu(e,t){return e?t:{}}const Nz=(e,t,o)=>{const{componentCls:a,boxShadowPopoverArrow:l,arrowOffsetVertical:c,arrowOffsetHorizontal:f,antCls:m}=e,[h]=to(m,"tooltip"),{arrowDistance:p=0,arrowPlacement:y={left:!0,right:!0,top:!0,bottom:!0}}={};return{[a]:{[`${a}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...Rz(e,t,l),"&:before":{background:t}}],...pu(!!y.top,{[[`&-placement-top > ${a}-arrow`,`&-placement-topLeft > ${a}-arrow`,`&-placement-topRight > ${a}-arrow`].join(",")]:{bottom:p,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${a}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[h("arrow-offset-x")]:f,[`> ${a}-arrow`]:{left:{_skip_check_:!0,value:f}}},"&-placement-topRight":{[h("arrow-offset-x")]:`calc(100% - ${ae(f)})`,[`> ${a}-arrow`]:{right:{_skip_check_:!0,value:f}}}}),...pu(!!y.bottom,{[[`&-placement-bottom > ${a}-arrow`,`&-placement-bottomLeft > ${a}-arrow`,`&-placement-bottomRight > ${a}-arrow`].join(",")]:{top:p,transform:"translateY(-100%)"},[`&-placement-bottom > ${a}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[h("arrow-offset-x")]:f,[`> ${a}-arrow`]:{left:{_skip_check_:!0,value:f}}},"&-placement-bottomRight":{[h("arrow-offset-x")]:`calc(100% - ${ae(f)})`,[`> ${a}-arrow`]:{right:{_skip_check_:!0,value:f}}}}),...pu(!!y.left,{[[`&-placement-left > ${a}-arrow`,`&-placement-leftTop > ${a}-arrow`,`&-placement-leftBottom > ${a}-arrow`].join(",")]:{right:{_skip_check_:!0,value:p},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${a}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${a}-arrow`]:{top:c},[`&-placement-leftBottom > ${a}-arrow`]:{bottom:c}}),...pu(!!y.right,{[[`&-placement-right > ${a}-arrow`,`&-placement-rightTop > ${a}-arrow`,`&-placement-rightBottom > ${a}-arrow`].join(",")]:{left:{_skip_check_:!0,value:p},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${a}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${a}-arrow`]:{top:c},[`&-placement-rightBottom > ${a}-arrow`]:{bottom:c}})}}};function zz(e,t,o,a){if(a===!1)return{adjustX:!1,adjustY:!1};const l=a&&typeof a=="object"?a:{},c={};switch(e){case"top":case"bottom":c.shiftX=t.arrowOffsetHorizontal*2+o,c.shiftY=!0,c.adjustY=!0;break;case"left":case"right":c.shiftY=t.arrowOffsetVertical*2+o,c.shiftX=!0,c.adjustX=!0;break}const f={...c,...l};return f.shiftX||(f.adjustX=!0),f.shiftY||(f.adjustY=!0),f}const NS={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"]}},Oz={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"]}},Az=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _z(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:a,offset:l,borderRadius:c}=e,f=t/2,m={},h=_E({contentRadius:c,limitVerticalRadius:!0});return Object.keys(NS).forEach(p=>{const b={...a&&Oz[p]||NS[p],offset:[0,0],dynamicInset:!0};switch(m[p]=b,Az.has(p)&&(b.autoArrow=!1),p){case"top":case"topLeft":case"topRight":b.offset[1]=-f-l;break;case"bottom":case"bottomLeft":case"bottomRight":b.offset[1]=f+l;break;case"left":case"leftTop":case"leftBottom":b.offset[0]=-f-l;break;case"right":case"rightTop":case"rightBottom":b.offset[0]=f+l;break}if(a)switch(p){case"topLeft":case"bottomLeft":b.offset[0]=-h.arrowOffsetHorizontal-f;break;case"topRight":case"bottomRight":b.offset[0]=h.arrowOffsetHorizontal+f;break;case"leftTop":case"rightTop":b.offset[1]=-h.arrowOffsetHorizontal*2+f;break;case"leftBottom":case"rightBottom":b.offset[1]=h.arrowOffsetHorizontal*2-f;break}b.overflow=zz(p,h,t,o),b.htmlRegion="visibleFirst"}),m}const Bz=te.createContext(!1),Hz=(e,t)=>{const o=a=>typeof a=="boolean"?{show:a}:a||{};return te.useMemo(()=>{const a=o(e),l=o(t);return{...l,...a,show:a.show??l.show??!0}},[e,t])},zS="50%",Lz=e=>{const{calc:t,componentCls:o,tooltipMaxWidth:a,tooltipColor:l,tooltipBg:c,tooltipBorderRadius:f,zIndexPopup:m,controlHeight:h,boxShadowSecondary:p,paddingSM:y,paddingXS:b,arrowOffsetHorizontal:v,sizePopupArrow:$,antCls:x}=e,[E,C]=to(x,"tooltip"),T=t(f).add($).add(v).equal(),w={minWidth:t(f).mul(2).add($).equal(),minHeight:h,padding:`${ae(e.calc(y).div(2).equal())} ${ae(b)}`,color:C("overlay-color",l),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:c,borderRadius:f,boxShadow:p,boxSizing:"border-box"},N={[E("valid-offset-x")]:C("arrow-offset-x","var(--arrow-x)"),transformOrigin:[C("valid-offset-x",zS),`var(--arrow-y, ${zS})`].join(" ")};return[{[o]:{...Pr(e),position:"absolute",zIndex:m,display:"block",width:"max-content",maxWidth:a,visibility:"visible",...N,"&-hidden":{display:"none"},[E("arrow-background-color")]:c,[`${o}-container`]:[w,tE(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:T},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(f,AE)}},[`${o}-content`]:{position:"relative"},...mx(e,(R,{darkColor:_})=>({[`&${o}-${R}`]:{[`${o}-container`]:{backgroundColor:_},[`${o}-arrow`]:{[E("arrow-background-color")]:_}}})),"&-rtl":{direction:"rtl"}}},Nz(e,C("arrow-background-color")),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...w,...N,position:"absolute",zIndex:t(m).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Dz=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,..._E({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Mz(qt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),BE=(e,t,o=!0)=>Xt("Tooltip",l=>{const{borderRadius:c,colorTextLightSolid:f,colorBgSpotlight:m,maxWidth:h}=l,p=qt(l,{tooltipMaxWidth:h,tooltipColor:f,tooltipBorderRadius:c,tooltipBg:m});return[Lz(p),nE(l,"zoom-big-fast")]},Dz,{resetStyle:!1,injectStyle:o})(e,t),Pz=Mo.map(e=>`${e}-inverse`),Iz=["success","processing","error","default","warning"];function HE(e,t=!0){return t?[].concat(sn(Pz),sn(Mo)).includes(e):Mo.includes(e)}function jz(e){return Iz.includes(e)}const LE=(e,t,o)=>{const a=HE(o),[l]=to(e,"tooltip"),c=W({[`${t}-${o}`]:o&&a}),f={},m={},h=sR(o).toRgb(),y=(.299*h.r+.587*h.g+.114*h.b)/255<.5?"#FFF":"#000";return o&&!a&&(f.background=o,f[l("overlay-color")]=y,m[l("arrow-background-color")]=o),{className:c,overlayStyle:f,arrowStyle:m}},Vz=e=>{const{prefixCls:t,className:o,placement:a="top",title:l,color:c,overlayInnerStyle:f,classNames:m,styles:h}=e,{getPrefixCls:p}=u.useContext(ut),y=p("tooltip",t),b=p(),v=va(y),[$,x]=BE(y,v),E=LE(b,y,c),C=E.arrowStyle,T=u.useMemo(()=>({container:{...f,...E.overlayStyle}}),[f,E.overlayStyle]),M={...e,placement:a},[w,N]=Nn([m],[T,h],{props:M}),R=W(v,$,x,y,`${y}-pure`,`${y}-placement-${a}`,o,E.className);return u.createElement("div",{className:R,style:C},u.createElement("div",{className:`${y}-arrow`}),u.createElement(OE,{...e,className:$,prefixCls:y,classNames:w,styles:N},l))},Fz=u.forwardRef((e,t)=>{const{prefixCls:o,openClassName:a,getTooltipContainer:l,color:c,children:f,afterOpenChange:m,arrow:h,destroyTooltipOnHide:p,destroyOnHidden:y,title:b,overlay:v,trigger:$,builtinPlacements:x,autoAdjustOverflow:E=!0,motion:C,getPopupContainer:T,placement:M="top",mouseEnterDelay:w=.1,mouseLeaveDelay:N=.1,rootClassName:R,styles:_,classNames:z,onOpenChange:B,overlayInnerStyle:H,overlayStyle:I,overlayClassName:L,...V}=e,[,k]=Dr(),{getPopupContainer:U,getPrefixCls:F,direction:P,className:q,style:G,classNames:Y,styles:Z,arrow:A,trigger:D}=cn("tooltip"),K=Hz(h,A),Q=K.show,ee=$||D||"hover",ie=T||U,le=y??!!p,de=u.useContext(Bz),ye=u.useRef(null),ve=()=>{ye.current?.forceAlign()};u.useImperativeHandle(t,()=>({forceAlign:ve,nativeElement:ye.current?.nativeElement,popupElement:ye.current?.popupElement}));const[we,be]=yr(e.defaultOpen??!1,e.open),Se=!b&&!v&&b!==0,me=Ut=>{be(Se?!1:Ut),!Se&&B&&B(Ut)},he=u.useMemo(()=>x||_z({arrowPointAtCenter:K?.pointAtCenter??!1,autoAdjustOverflow:E,arrowWidth:Q?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS}),[K,x,k,Q,E]),pe=u.useMemo(()=>b===0?b:v||b||"",[v,b]),Pe=u.createElement(Bh,{space:!0,form:!0},typeof pe=="function"?pe():pe),Le={...e,trigger:ee,builtinPlacements:he,getPopupContainer:ie,destroyOnHidden:le},[Ee,Xe]=Nn([Y,z],[Z,_],{props:Le}),Oe=F("tooltip",o),Re=F(),De=e["data-popover-inject"];let Te=we;(!("open"in e)&&Se||de)&&(Te=!1);const et=u.isValidElement(f)&&!qx(f)?f:u.createElement("span",null,f),it=et.props,ft=!it.className||typeof it.className=="string"?W(it.className,a||`${Oe}-open`):it.className,Ue=va(Oe),[dt,Me]=BE(Oe,Ue,!De),xe=LE(Re,Oe,c),Ae=xe.arrowStyle,Ye=W(Ue,dt,Me),_e=W(L,{[`${Oe}-rtl`]:P==="rtl"},xe.className,R,Ye,q,Ee.root),[Ce,Ie]=Eh("Tooltip",V.zIndex),mt={...Xe.container,...H,...xe.overlayStyle},ke=u.createElement(Tz,{unique:!0,...V,zIndex:Ce,showArrow:Q,placement:M,mouseEnterDelay:w,mouseLeaveDelay:N,prefixCls:Oe,classNames:{root:_e,container:Ee.container,arrow:Ee.arrow,uniqueContainer:W(Ye,Ee.container)},styles:{root:{...Ae,...Xe.root,...G,...I},container:mt,uniqueContainer:mt,arrow:Xe.arrow},ref:ye,overlay:Pe,visible:Te,onVisibleChange:me,afterVisibleChange:m,arrowContent:u.createElement("span",{className:`${Oe}-arrow-content`}),motion:{motionName:ha(Re,"zoom-big-fast",typeof C?.motionName=="string"?C?.motionName:void 0),motionDeadline:1e3},trigger:ee,builtinPlacements:he,getTooltipContainer:ie,destroyOnHidden:le},Te?pa(et,{className:ft}):et);return u.createElement(of.Provider,{value:Ie},ke)}),dl=Fz;dl._InternalPanelDoNotUseOrYouWillBeFired=Vz;dl.UniqueProvider=Gx;var qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},vp.apply(this,arguments)}const Uz=(e,t)=>u.createElement(Dt,vp({},e,{ref:t,icon:qz})),OS=u.forwardRef(Uz),{ESC:Gz,TAB:Xz}=er;function Wz({visible:e,triggerRef:t,onVisibleChange:o,autoFocus:a,overlayRef:l}){const c=u.useRef(!1),f=()=>{e&&(t.current?.focus?.(),o?.(!1))},m=()=>l.current?.focus?(l.current.focus(),c.current=!0,!0):!1,h=p=>{switch(p.keyCode){case Gz:f();break;case Xz:{let y=!1;c.current||(y=m()),y?p.preventDefault():f();break}}};u.useEffect(()=>e?(window.addEventListener("keydown",h),a&&En(m,3),()=>{window.removeEventListener("keydown",h),c.current=!1}):()=>{c.current=!1},[e])}const Yz=u.forwardRef((e,t)=>{const{overlay:o,arrow:a,prefixCls:l}=e,c=u.useMemo(()=>{let m;return typeof o=="function"?m=o():m=o,m},[o]),f=Hr(t,Ja(c));return te.createElement(te.Fragment,null,a&&te.createElement("div",{className:`${l}-arrow`}),te.cloneElement(c,{ref:il(c)?f:void 0}))}),Xi={adjustX:1,adjustY:1},Wi=[0,0],Kz={topLeft:{points:["bl","tl"],overflow:Xi,offset:[0,-4],targetOffset:Wi},top:{points:["bc","tc"],overflow:Xi,offset:[0,-4],targetOffset:Wi},topRight:{points:["br","tr"],overflow:Xi,offset:[0,-4],targetOffset:Wi},bottomLeft:{points:["tl","bl"],overflow:Xi,offset:[0,4],targetOffset:Wi},bottom:{points:["tc","bc"],overflow:Xi,offset:[0,4],targetOffset:Wi},bottomRight:{points:["tr","br"],overflow:Xi,offset:[0,4],targetOffset:Wi}};function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Sp.apply(this,arguments)}const kz=te.forwardRef((e,t)=>{const{arrow:o=!1,prefixCls:a="rc-dropdown",transitionName:l,animation:c,align:f,placement:m="bottomLeft",placements:h=Kz,getPopupContainer:p,showAction:y,hideAction:b,overlayClassName:v,overlayStyle:$,visible:x,trigger:E=["hover"],autoFocus:C,overlay:T,children:M,onVisibleChange:w,...N}=e,[R,_]=te.useState(),z="visible"in e?x:R,B=c?`${a}-${c}`:l,H=te.useRef(null),I=te.useRef(null),L=te.useRef(null);te.useImperativeHandle(t,()=>H.current);const V=Z=>{_(Z),w?.(Z)};Wz({visible:z,triggerRef:L,onVisibleChange:V,autoFocus:C,overlayRef:I});const k=Z=>{const{onOverlayClick:A}=e;_(!1),A&&A(Z)},U=()=>te.createElement(Yz,{ref:I,overlay:T,prefixCls:a,arrow:o}),F=()=>typeof T=="function"?U:U(),P=()=>{const{minOverlayWidthMatchTrigger:Z,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?Z:!A},q=()=>{const{openClassName:Z}=e;return Z!==void 0?Z:`${a}-open`},G=te.cloneElement(M,{className:W(M.props?.className,z&&q()),ref:il(M)?Hr(L,Ja(M)):void 0});let Y=b;return!Y&&E.indexOf("contextMenu")!==-1&&(Y=["click"]),te.createElement(wh,Sp({builtinPlacements:h},N,{prefixCls:a,ref:H,popupClassName:W(v,{[`${a}-show-arrow`]:o}),popupStyle:$,action:E,showAction:y,hideAction:Y,popupPlacement:m,popupAlign:f,popupMotion:{motionName:B},popupVisible:z,stretch:P()?"minWidth":"",popup:F(),onOpenChange:V,onPopupClick:k,getPopupContainer:p}),G)}),DE=u.createContext(null);function PE(e,t){return`${e}-${t}`}function IE(e){const t=u.useContext(DE);return PE(t,e)}const Xr=u.createContext(null);function Qz(e,t){const o={...e};return Object.keys(t).forEach(a=>{const l=t[a];l!==void 0&&(o[a]=l)}),o}function zs({children:e,locked:t,...o}){const a=u.useContext(Xr),l=Ku(()=>Qz(a,o),[a,o],(c,f)=>!t&&(c[0]!==f[0]||!Cs(c[1],f[1],!0)));return u.createElement(Xr.Provider,{value:l},e)}const Zz=[],jE=u.createContext(null);function sf(){return u.useContext(jE)}const VE=u.createContext(Zz);function Gs(e){const t=u.useContext(VE);return u.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const FE=u.createContext(null),Lh=u.createContext({}),{LEFT:Cp,RIGHT:xp,UP:Ep,DOWN:Mu,ENTER:Ru,ESC:qE,HOME:as,END:is}=er,AS=[Ep,Mu,Cp,xp];function Jz(e,t,o,a){const l="prev",c="next",f="children",m="parent";if(e==="inline"&&a===Ru)return{inlineTrigger:!0};const h={[Ep]:l,[Mu]:c},p={[Cp]:o?c:l,[xp]:o?l:c,[Mu]:f,[Ru]:f},y={[Ep]:l,[Mu]:c,[Ru]:f,[qE]:m,[Cp]:o?f:m,[xp]:o?m:f};switch({inline:h,horizontal:p,vertical:y,inlineSub:h,horizontalSub:y,verticalSub:y}[`${e}${t?"":"Sub"}`]?.[a]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function e8(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function t8(e,t){let o=e||document.activeElement;for(;o;){if(t.has(o))return o;o=o.parentElement}return null}function Dh(e,t){return Oh(e,!0).filter(a=>t.has(a))}function _S(e,t,o,a=1){if(!e)return null;const l=Dh(e,t),c=l.length;let f=l.findIndex(m=>o===m);return a<0?f===-1?f=c-1:f-=1:a>0&&(f+=1),f=(f+c)%c,l[f]}const Uu=(e,t)=>{const o=new Set,a=new Map,l=new Map;return e.forEach(c=>{const f=document.querySelector(`[data-menu-id='${PE(t,c)}']`);f&&(o.add(f),l.set(f,c),a.set(c,f))}),{elements:o,key2element:a,element2key:l}};function n8(e,t,o,a,l,c,f,m,h,p){const y=u.useRef(),b=u.useRef();b.current=t;const v=()=>{En.cancel(y.current)};return u.useEffect(()=>()=>{v()},[]),$=>{const{which:x}=$;if([...AS,Ru,qE,as,is].includes(x)){const E=c();let C=Uu(E,a);const{elements:T,key2element:M,element2key:w}=C,N=M.get(t),R=t8(N,T),_=w.get(R),z=Jz(e,f(_,!0).length===1,o,x);if(!z&&x!==as&&x!==is)return;(AS.includes(x)||[as,is].includes(x))&&$.preventDefault();const B=H=>{if(H){let I=H;const L=H.querySelector("a");L?.getAttribute("href")&&(I=L);const V=w.get(H);m(V),v(),y.current=En(()=>{b.current===V&&I.focus()})}};if([as,is].includes(x)||z.sibling||!R){let H;!R||e==="inline"?H=l.current:H=e8(R);let I;const L=Dh(H,T);x===as?I=L[0]:x===is?I=L[L.length-1]:I=_S(H,T,R,z.offset),B(I)}else if(z.inlineTrigger)h(_);else if(z.offset>0)h(_,!0),v(),y.current=En(()=>{C=Uu(E,a);const H=R.getAttribute("aria-controls"),I=document.getElementById(H),L=_S(I,C.elements);B(L)},5);else if(z.offset<0){const H=f(_,!0),I=H[H.length-2],L=M.get(I);h(I,!1),B(L)}}p?.($)}}function r8(e){Promise.resolve().then(e)}const Ph="__RC_UTIL_PATH_SPLIT__",BS=e=>e.join(Ph),o8=e=>e.split(Ph),$p="rc-menu-more";function a8(){const[,e]=u.useState({}),t=u.useRef(new Map),o=u.useRef(new Map),[a,l]=u.useState([]),c=u.useRef(0),f=u.useRef(!1),m=()=>{f.current||e({})},h=u.useCallback((E,C)=>{const T=BS(C);o.current.set(T,E),t.current.set(E,T),c.current+=1;const M=c.current;r8(()=>{M===c.current&&m()})},[]),p=u.useCallback((E,C)=>{const T=BS(C);o.current.delete(T),t.current.delete(E)},[]),y=u.useCallback(E=>{l(E)},[]),b=u.useCallback((E,C)=>{const T=t.current.get(E)||"",M=o8(T);return C&&a.includes(M[0])&&M.unshift($p),M},[a]),v=u.useCallback((E,C)=>E.filter(T=>T!==void 0).some(T=>b(T,!0).includes(C)),[b]),$=()=>{const E=[...t.current.keys()];return a.length&&E.push($p),E},x=u.useCallback(E=>{const C=`${t.current.get(E)}${Ph}`,T=new Set;return[...o.current.keys()].forEach(M=>{M.startsWith(C)&&T.add(o.current.get(M))}),T},[]);return u.useEffect(()=>()=>{f.current=!0},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:y,isSubPathKey:v,getKeyPath:b,getKeys:$,getSubPathKeys:x}}function ds(e){const t=u.useRef(e);t.current=e;const o=u.useCallback((...a)=>t.current?.(...a),[]);return e?o:void 0}function UE(e,t,o,a){const{activeKey:l,onActive:c,onInactive:f}=u.useContext(Xr),m={active:l===e};return t||(m.onMouseEnter=h=>{o?.({key:e,domEvent:h}),c(e)},m.onMouseLeave=h=>{a?.({key:e,domEvent:h}),f(e)}),m}function GE(e){const{mode:t,rtl:o,inlineIndent:a}=u.useContext(Xr);if(t!=="inline")return null;const l=e;return o?{paddingRight:l*a}:{paddingLeft:l*a}}function XE({icon:e,props:t,children:o}){let a;return e===null||e===!1?null:(typeof e=="function"?a=u.createElement(e,{...t}):typeof e!="boolean"&&(a=e),a||o||null)}function Gu({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(qn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Os.apply(this,arguments)}class i8 extends u.Component{render(){const{title:t,attribute:o,elementRef:a,...l}=this.props,c=Lr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return qn(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(ua.Item,Os({},o,{title:typeof t=="string"?t:void 0},c,{ref:a}))}}const l8=u.forwardRef((e,t)=>{const{style:o,className:a,eventKey:l,warnKey:c,disabled:f,itemIcon:m,children:h,role:p,onMouseEnter:y,onMouseLeave:b,onClick:v,onKeyDown:$,onFocus:x,...E}=e,C=IE(l),{prefixCls:T,onItemClick:M,disabled:w,overflowDisabled:N,itemIcon:R,selectedKeys:_,onActive:z}=u.useContext(Xr),{_internalRenderMenuItem:B}=u.useContext(Lh),H=`${T}-item`,I=u.useRef(),L=u.useRef(),V=w||f,k=ya(t,L),U=Gs(l),F=ie=>({key:l,keyPath:[...U].reverse(),item:I.current,domEvent:ie}),P=m||R,{active:q,...G}=UE(l,V,y,b),Y=_.includes(l),Z=GE(U.length),A=ie=>{if(V)return;const le=F(ie);v?.(Gu(le)),M(le)},D=ie=>{if($?.(ie),ie.which===er.ENTER){const le=F(ie);v?.(Gu(le)),M(le)}},K=ie=>{z(l),x?.(ie)},Q={};e.role==="option"&&(Q["aria-selected"]=Y);let ee=u.createElement(i8,Os({ref:I,elementRef:k,role:p===null?"none":p||"menuitem",tabIndex:f?null:-1,"data-menu-id":N&&C?null:C},Lr(E,["extra"]),G,Q,{component:"li","aria-disabled":f,style:{...Z,...o},className:W(H,{[`${H}-active`]:q,[`${H}-selected`]:Y,[`${H}-disabled`]:V},a),onClick:A,onKeyDown:D,onFocus:K}),h,u.createElement(XE,{props:{...e,isSelected:Y},icon:P}));return B&&(ee=B(ee,e,{selected:Y})),ee});function s8(e,t){const{eventKey:o}=e,a=sf(),l=Gs(o);return u.useEffect(()=>{if(a)return a.registerPath(o,l),()=>{a.unregisterPath(o,l)}},[l]),a?null:u.createElement(l8,Os({},e,{ref:t}))}const cf=u.forwardRef(s8);function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},wp.apply(this,arguments)}const c8=({className:e,children:t,...o},a)=>{const{prefixCls:l,mode:c,rtl:f}=u.useContext(Xr);return u.createElement("ul",wp({className:W(l,f&&`${l}-rtl`,`${l}-sub`,`${l}-${c==="inline"?"inline":"vertical"}`,e),role:"menu"},o,{"data-menu-list":!0,ref:a}),t)},WE=u.forwardRef(c8);function Ih(e,t){return br(e).map((o,a)=>{if(u.isValidElement(o)){const{key:l}=o;let c=o.props?.eventKey??l;c==null&&(c=`tmp_key-${[...t,a].join("-")}`);const m={key:c,eventKey:c};return u.cloneElement(o,m)}return o})}const Fn={adjustX:1,adjustY:1},u8={topLeft:{points:["bl","tl"],overflow:Fn},topRight:{points:["br","tr"],overflow:Fn},bottomLeft:{points:["tl","bl"],overflow:Fn},bottomRight:{points:["tr","br"],overflow:Fn},leftTop:{points:["tr","tl"],overflow:Fn},leftBottom:{points:["br","bl"],overflow:Fn},rightTop:{points:["tl","tr"],overflow:Fn},rightBottom:{points:["bl","br"],overflow:Fn}},f8={topLeft:{points:["bl","tl"],overflow:Fn},topRight:{points:["br","tr"],overflow:Fn},bottomLeft:{points:["tl","bl"],overflow:Fn},bottomRight:{points:["tr","br"],overflow:Fn},rightTop:{points:["tr","tl"],overflow:Fn},rightBottom:{points:["br","bl"],overflow:Fn},leftTop:{points:["tl","tr"],overflow:Fn},leftBottom:{points:["bl","br"],overflow:Fn}};function YE(e,t,o){if(t)return t;if(o)return o[e]||o.other}const d8={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function m8({prefixCls:e,visible:t,children:o,popup:a,popupStyle:l,popupClassName:c,popupOffset:f,disabled:m,mode:h,onVisibleChange:p}){const{getPopupContainer:y,rtl:b,subMenuOpenDelay:v,subMenuCloseDelay:$,builtinPlacements:x,triggerSubMenuAction:E,forceSubMenuRender:C,rootClassName:T,motion:M,defaultMotions:w}=u.useContext(Xr),[N,R]=u.useState(!1),_=b?{...f8,...x}:{...u8,...x},z=d8[h],B=YE(h,M,w),H=u.useRef(B);h!=="inline"&&(H.current=B);const I={...H.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},L=u.useRef();return u.useEffect(()=>(L.current=En(()=>{R(t)}),()=>{En.cancel(L.current)}),[t]),u.createElement(wh,{prefixCls:e,popupClassName:W(`${e}-popup`,{[`${e}-rtl`]:b},c,T),stretch:h==="horizontal"?"minWidth":null,getPopupContainer:y,builtinPlacements:_,popupPlacement:z,popupVisible:N,popup:a,popupStyle:l,popupAlign:f&&{offset:f},action:m?[]:[E],mouseEnterDelay:v,mouseLeaveDelay:$,onPopupVisibleChange:p,forceRender:C,popupMotion:I,fresh:!0},o)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Tp.apply(this,arguments)}function g8({id:e,open:t,keyPath:o,children:a}){const l="inline",{prefixCls:c,forceSubMenuRender:f,motion:m,defaultMotions:h,mode:p}=u.useContext(Xr),y=u.useRef(!1);y.current=p===l;const[b,v]=u.useState(!y.current),$=y.current?t:!1;u.useEffect(()=>{y.current&&v(!1)},[p]);const x={...YE(l,m,h)};o.length>1&&(x.motionAppear=!1);const E=x.onVisibleChanged;return x.onVisibleChanged=C=>(!y.current&&!C&&v(!0),E?.(C)),b?null:u.createElement(zs,{mode:l,locked:!y.current},u.createElement(nr,Tp({visible:$},x,{forceRender:f,removeOnLeave:!1,leavedClassName:`${c}-hidden`}),({className:C,style:T})=>u.createElement(WE,{id:e,className:C,style:T},a)))}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},As.apply(this,arguments)}const p8=u.forwardRef((e,t)=>{const{style:o,className:a,styles:l,classNames:c,title:f,eventKey:m,warnKey:h,disabled:p,internalPopupClose:y,children:b,itemIcon:v,expandIcon:$,popupClassName:x,popupOffset:E,popupStyle:C,onClick:T,onMouseEnter:M,onMouseLeave:w,onTitleClick:N,onTitleMouseEnter:R,onTitleMouseLeave:_,popupRender:z,...B}=e,H=IE(m),{prefixCls:I,mode:L,openKeys:V,disabled:k,overflowDisabled:U,activeKey:F,selectedKeys:P,itemIcon:q,expandIcon:G,onItemClick:Y,onOpenChange:Z,onActive:A,popupRender:D}=u.useContext(Xr),{_internalRenderSubMenuItem:K}=u.useContext(Lh),{isSubPathKey:Q}=u.useContext(FE),ee=Gs(),ie=`${I}-submenu`,le=k||p,de=u.useRef(),ye=u.useRef(),ve=v??q,we=$??G,be=V.includes(m),Se=!U&&be,me=Q(P,m),{active:he,...pe}=UE(m,le,R,_),[Pe,Le]=u.useState(!1),Ee=Ce=>{le||Le(Ce)},Xe=Ce=>{Ee(!0),M?.({key:m,domEvent:Ce})},Oe=Ce=>{Ee(!1),w?.({key:m,domEvent:Ce})},Re=u.useMemo(()=>he||(L!=="inline"?Pe||Q([F],m):!1),[L,he,F,Pe,m,Q]),De=GE(ee.length),Te=Ce=>{le||(N?.({key:m,domEvent:Ce}),L==="inline"&&Z(m,!be))},et=ds(Ce=>{T?.(Gu(Ce)),Y(Ce)}),it=Ce=>{L!=="inline"&&Z(m,Ce)},ft=()=>{A(m)},Ue=H&&`${H}-popup`,dt=u.useMemo(()=>u.createElement(XE,{icon:L!=="horizontal"?we:void 0,props:{...e,isOpen:Se,isSubMenu:!0}},u.createElement("i",{className:`${ie}-arrow`})),[L,we,e,Se,ie]);let Me=u.createElement("div",As({role:"menuitem",style:De,className:`${ie}-title`,tabIndex:le?null:-1,ref:de,title:typeof f=="string"?f:null,"data-menu-id":U&&H?null:H,"aria-expanded":Se,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":le,onClick:Te,onFocus:ft},pe),f,dt);const xe=u.useRef(L);L!=="inline"&&ee.length>1?xe.current="vertical":xe.current=L;const Ae=xe.current,Ye=u.useMemo(()=>{const Ce=u.createElement(zs,{classNames:c,styles:l,mode:Ae==="horizontal"?"vertical":Ae},u.createElement(WE,{id:Ue,ref:ye},b)),Ie=z||D;return Ie?Ie(Ce,{item:e,keys:ee}):Ce},[z,D,ee,Ue,b,e,Ae]);if(!U){const Ce=xe.current;Me=u.createElement(m8,{mode:Ce,prefixCls:ie,visible:!y&&Se&&L!=="inline",popupClassName:x,popupOffset:E,popupStyle:C,popup:Ye,disabled:le,onVisibleChange:it},Me)}let _e=u.createElement(ua.Item,As({ref:t,role:"none"},B,{component:"li",style:o,className:W(ie,`${ie}-${L}`,a,{[`${ie}-open`]:Se,[`${ie}-active`]:Re,[`${ie}-selected`]:me,[`${ie}-disabled`]:le}),onMouseEnter:Xe,onMouseLeave:Oe}),Me,!U&&u.createElement(g8,{id:Ue,open:Se,keyPath:ee},b));return K&&(_e=K(_e,e,{selected:me,active:Re,open:Se,disabled:le})),u.createElement(zs,{classNames:c,styles:l,onItemClick:et,mode:L==="horizontal"?"vertical":L,itemIcon:ve,expandIcon:we},_e)}),jh=u.forwardRef((e,t)=>{const{eventKey:o,children:a}=e,l=Gs(o),c=Ih(a,l),f=sf();u.useEffect(()=>{if(f)return f.registerPath(o,l),()=>{f.unregisterPath(o,l)}},[l]);let m;return f?m=c:m=u.createElement(p8,As({ref:t},e),c),u.createElement(VE.Provider,{value:l},m)});function KE({className:e,style:t}){const{prefixCls:o}=u.useContext(Xr);return sf()?null:u.createElement("li",{role:"separator",className:W(`${o}-item-divider`,e),style:t})}function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Xu.apply(this,arguments)}const h8=u.forwardRef((e,t)=>{const{className:o,title:a,eventKey:l,children:c,...f}=e,{prefixCls:m,classNames:h,styles:p}=u.useContext(Xr),y=`${m}-item-group`;return u.createElement("li",Xu({ref:t,role:"presentation"},f,{onClick:b=>b.stopPropagation(),className:W(y,o)}),u.createElement("div",{role:"presentation",className:W(`${y}-title`,h?.listTitle),style:p?.listTitle,title:typeof a=="string"?a:void 0},a),u.createElement("ul",{role:"group",className:W(`${y}-list`,h?.list),style:p?.list},c))}),kE=u.forwardRef((e,t)=>{const{eventKey:o,children:a}=e,l=Gs(o),c=Ih(a,l);return sf()?c:u.createElement(h8,Xu({ref:t},Lr(e,["warnKey"])),c)});function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},ki.apply(this,arguments)}function Mp(e,t,o){const{item:a,group:l,submenu:c,divider:f}=t;return(e||[]).map((m,h)=>{if(m&&typeof m=="object"){const{label:p,children:y,key:b,type:v,extra:$,...x}=m,E=b??`tmp-${h}`;return y||v==="group"?v==="group"?u.createElement(l,ki({key:E},x,{title:p}),Mp(y,t,o)):u.createElement(c,ki({key:E},x,{title:p}),Mp(y,t,o)):v==="divider"?u.createElement(f,ki({key:E},x)):u.createElement(a,ki({key:E},x,{extra:$}),p,(!!$||$===0)&&u.createElement("span",{className:`${o}-item-extra`},$))}return null}).filter(m=>m)}function HS(e,t,o,a,l){let c=e;const f={divider:KE,item:cf,group:kE,submenu:jh,...a};return t&&(c=Mp(t,f,l)),Ih(c,o)}function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Rp.apply(this,arguments)}const Va=[],y8=u.forwardRef((e,t)=>{const{prefixCls:o="rc-menu",rootClassName:a,style:l,className:c,styles:f,classNames:m,tabIndex:h=0,items:p,children:y,direction:b,id:v,mode:$="vertical",inlineCollapsed:x,disabled:E,disabledOverflow:C,subMenuOpenDelay:T=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:w,defaultOpenKeys:N,openKeys:R,activeKey:_,defaultActiveFirst:z,selectable:B=!0,multiple:H=!1,defaultSelectedKeys:I,selectedKeys:L,onSelect:V,onDeselect:k,inlineIndent:U=24,motion:F,defaultMotions:P,triggerSubMenuAction:q="hover",builtinPlacements:G,itemIcon:Y,expandIcon:Z,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:D,getPopupContainer:K,onClick:Q,onOpenChange:ee,onKeyDown:ie,openAnimation:le,openTransitionName:de,_internalRenderMenuItem:ye,_internalRenderSubMenuItem:ve,_internalComponents:we,popupRender:be,...Se}=e,[me,he]=u.useMemo(()=>[HS(y,p,Va,we,o),HS(y,p,Va,{},o)],[y,p,we]),[pe,Pe]=u.useState(!1),Le=u.useRef(),Ee=Sa(v?`rc-menu-uuid-${v}`:"rc-menu-uuid"),Xe=b==="rtl",[Oe,Re]=yr(N,R),De=Oe||Va,Te=(Ne,xt=!1)=>{function jt(){Re(Ne),ee?.(Ne)}xt?Ps.flushSync(jt):jt()},[et,it]=u.useState(De),ft=u.useRef(!1),[Ue,dt]=u.useMemo(()=>($==="inline"||$==="vertical")&&x?["vertical",x]:[$,!1],[$,x]),Me=Ue==="inline",[xe,Ae]=u.useState(Ue),[Ye,_e]=u.useState(dt);u.useEffect(()=>{Ae(Ue),_e(dt),ft.current&&(Me?Re(et):Te(Va))},[Ue,dt]);const[Ce,Ie]=u.useState(0),mt=Ce>=me.length-1||xe!=="horizontal"||C;u.useEffect(()=>{Me&&it(De)},[De]),u.useEffect(()=>(ft.current=!0,()=>{ft.current=!1}),[]);const{registerPath:ke,unregisterPath:Ut,refreshOverflowKeys:bt,isSubPathKey:je,getKeyPath:Fe,getKeys:ot,getSubPathKeys:Pt}=a8(),Wt=u.useMemo(()=>({registerPath:ke,unregisterPath:Ut}),[ke,Ut]),vt=u.useMemo(()=>({isSubPathKey:je}),[je]);u.useEffect(()=>{bt(mt?Va:me.slice(Ce+1).map(Ne=>Ne.key))},[Ce,mt]);const[un,Bn]=yr(_||z&&me[0]?.key,_),Hn=ds(Ne=>{Bn(Ne)}),Ve=ds(()=>{Bn(void 0)});u.useImperativeHandle(t,()=>({list:Le.current,focus:Ne=>{const xt=ot(),{elements:jt,key2element:lt,element2key:Vt}=Uu(xt,Ee),pn=Dh(Le.current,jt);let en;un&&xt.includes(un)?en=un:en=pn[0]?Vt.get(pn[0]):me.find(Xn=>!Xn.props.disabled)?.key;const wn=lt.get(en);en&&wn&&wn?.focus?.(Ne)},findItem:({key:Ne})=>{const xt=ot(),{key2element:jt}=Uu(xt,Ee);return jt.get(Ne)||null}}));const[Be,We]=yr(I||[],L),at=u.useMemo(()=>Array.isArray(Be)?Be:Be==null?Va:[Be],[Be]),It=Ne=>{if(B){const{key:xt}=Ne,jt=at.includes(xt);let lt;H?jt?lt=at.filter(pn=>pn!==xt):lt=[...at,xt]:lt=[xt],We(lt);const Vt={...Ne,selectedKeys:lt};jt?k?.(Vt):V?.(Vt)}!H&&De.length&&xe!=="inline"&&Te(Va)},Zt=ds(Ne=>{Q?.(Gu(Ne)),It(Ne)}),gn=ds((Ne,xt)=>{let jt=De.filter(lt=>lt!==Ne);if(xt)jt.push(Ne);else if(xe!=="inline"){const lt=Pt(Ne);jt=jt.filter(Vt=>!lt.has(Vt))}Cs(De,jt,!0)||Te(jt,!0)}),Gt=n8(xe,un,Xe,Ee,Le,ot,Fe,Bn,(Ne,xt)=>{const jt=xt??!De.includes(Ne);gn(Ne,jt)},ie);u.useEffect(()=>{Pe(!0)},[]);const rt=u.useMemo(()=>({_internalRenderMenuItem:ye,_internalRenderSubMenuItem:ve}),[ye,ve]),Ot=xe!=="horizontal"||C?me:me.map((Ne,xt)=>u.createElement(zs,{key:Ne.key,overflowDisabled:xt>Ce,classNames:m,styles:f},Ne)),$n=u.createElement(ua,Rp({id:v,ref:Le,prefixCls:`${o}-overflow`,component:"ul",itemComponent:cf,className:W(o,`${o}-root`,`${o}-${xe}`,c,{[`${o}-inline-collapsed`]:Ye,[`${o}-rtl`]:Xe},a),dir:b,style:l,role:"menu",tabIndex:h,data:Ot,renderRawItem:Ne=>Ne,renderRawRest:Ne=>{const xt=Ne.length,jt=xt?me.slice(-xt):null;return u.createElement(jh,{eventKey:$p,title:A,disabled:mt,internalPopupClose:xt===0,popupClassName:D},jt)},maxCount:xe!=="horizontal"||C?ua.INVALIDATE:ua.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ne=>{Ie(Ne)},onKeyDown:Gt},Se));return u.createElement(Lh.Provider,{value:rt},u.createElement(DE.Provider,{value:Ee},u.createElement(zs,{prefixCls:o,rootClassName:a,classNames:m,styles:f,mode:xe,openKeys:De,rtl:Xe,disabled:E,motion:pe?F:null,defaultMotions:pe?P:null,activeKey:un,onActive:Hn,onInactive:Ve,selectedKeys:at,inlineIndent:U,subMenuOpenDelay:T,subMenuCloseDelay:M,forceSubMenuRender:w,builtinPlacements:G,triggerSubMenuAction:q,getPopupContainer:K,itemIcon:Y,expandIcon:Z,onItemClick:Zt,onOpenChange:gn,popupRender:be},u.createElement(FE.Provider,{value:vt},$n),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(jE.Provider,{value:Wt},he)))))}),Xs=y8;Xs.Item=cf;Xs.SubMenu=jh;Xs.ItemGroup=kE;Xs.Divider=KE;var b8={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Np.apply(this,arguments)}const v8=(e,t)=>u.createElement(Dt,Np({},e,{ref:t,icon:b8})),S8=u.forwardRef(v8),QE=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),C8=e=>{const{antCls:t,componentCls:o,colorText:a,footerBg:l,headerHeight:c,headerPadding:f,headerColor:m,footerPadding:h,fontSize:p,bodyBg:y,headerBg:b}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:c,padding:f,color:m,lineHeight:ae(c),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:h,color:a,fontSize:p,background:l},[`${o}-content`]:{flex:"auto",color:a,minHeight:0}}},ZE=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:a,colorText:l,controlHeightSM:c,marginXXS:f,colorTextLightSolid:m,colorBgContainer:h}=e,p=a*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${p}px`,headerColor:l,footerPadding:`${c}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:a+f*2,triggerBg:"#002140",triggerColor:m,zeroTriggerWidth:a,zeroTriggerHeight:a,lightSiderBg:h,lightTriggerBg:h,lightTriggerColor:l}},JE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],e$=Xt("Layout",C8,ZE,{deprecatedTokens:JE}),x8=e=>{const{componentCls:t,siderBg:o,motionDurationMid:a,motionDurationSlow:l,antCls:c,triggerHeight:f,triggerColor:m,triggerBg:h,headerHeight:p,zeroTriggerWidth:y,zeroTriggerHeight:b,borderRadiusLG:v,lightSiderBg:$,lightTriggerColor:x,lightTriggerBg:E,bodyBg:C}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${a}, background 0s`,"&-has-trigger":{paddingBottom:f},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${c}-menu${c}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:f,color:m,lineHeight:ae(f),textAlign:"center",background:h,cursor:"pointer",transition:`all ${a}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:p,insetInlineEnd:e.calc(y).mul(-1).equal(),zIndex:1,width:y,height:b,color:m,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${ae(v)} ${ae(v)} 0`,cursor:"pointer",transition:`background-color ${l} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${l}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(y).mul(-1).equal(),borderRadius:`${ae(v)} 0 0 ${ae(v)}`}},"&-light":{background:$,[`${t}-trigger`]:{color:x,background:E},[`${t}-zero-width-trigger`]:{color:x,background:E,border:`1px solid ${C}`,borderInlineStart:0}}}}},E8=Xt(["Layout","Sider"],x8,ZE,{deprecatedTokens:JE}),LS={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},$8=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),t$=u.createContext({}),w8=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),n$=u.forwardRef((e,t)=>{const{prefixCls:o,className:a,trigger:l,children:c,defaultCollapsed:f=!1,theme:m="dark",style:h={},collapsible:p=!1,reverseArrow:y=!1,width:b=200,collapsedWidth:v=80,zeroWidthTriggerStyle:$,breakpoint:x,onCollapse:E,onBreakpoint:C,...T}=e,{siderHook:M}=u.useContext(QE),[w,N]=u.useState("collapsed"in e?e.collapsed:f),[R,_]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&N(e.collapsed)},[e.collapsed]);const z=(le,de)=>{"collapsed"in e||N(le),E?.(le,de)},{getPrefixCls:B,direction:H}=u.useContext(ut),I=B("layout-sider",o),[L,V]=E8(I),k=u.useRef(null);k.current=le=>{_(le.matches),C?.(le.matches),w!==le.matches&&z(le.matches,"responsive")},u.useEffect(()=>{function le(ye){return k.current?.(ye)}let de;return typeof window?.matchMedia<"u"&&x&&x in LS&&(de=window.matchMedia(`screen and (max-width: ${LS[x]})`),typeof de?.addEventListener=="function"&&de.addEventListener("change",le),le(de)),()=>{typeof de?.removeEventListener=="function"&&de.removeEventListener("change",le)}},[x]),u.useEffect(()=>{const le=w8("ant-sider-");return M.addSider(le),()=>M.removeSider(le)},[]);const U=()=>{z(!w,"clickTrigger")},F=Lr(T,["collapsed"]),P=w?v:b,q=$8(P)?`${P}px`:String(P),G=Number.parseFloat(String(v||0))===0?u.createElement("span",{onClick:U,className:W(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${y?"right":"left"}`),style:$},l||u.createElement(S8,null)):null,Y=H==="rtl"==!y,D={expanded:Y?u.createElement(iS,null):u.createElement(OS,null),collapsed:Y?u.createElement(OS,null):u.createElement(iS,null)}[w?"collapsed":"expanded"],K=l!==null?G||u.createElement("div",{className:`${I}-trigger`,onClick:U,style:{width:q}},l||D):null,Q={...h,flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q},ee=W(I,`${I}-${m}`,{[`${I}-collapsed`]:!!w,[`${I}-has-trigger`]:p&&l!==null&&!G,[`${I}-below`]:!!R,[`${I}-zero-width`]:Number.parseFloat(q)===0},a,L,V),ie=u.useMemo(()=>({siderCollapsed:w}),[w]);return u.createElement(t$.Provider,{value:ie},u.createElement("aside",{className:ee,...F,style:Q,ref:t},u.createElement("div",{className:`${I}-children`},c),p||R&&G?K:null))});var T8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},zp.apply(this,arguments)}const M8=(e,t)=>u.createElement(Dt,zp({},e,{ref:t,icon:T8})),R8=u.forwardRef(M8);function Vh(e){return qt(e,{inputAffixPadding:e.paddingXXS})}const Fh=e=>{const{controlHeight:t,fontSize:o,lineHeight:a,lineWidth:l,controlHeightSM:c,controlHeightLG:f,fontSizeLG:m,lineHeightLG:h,paddingSM:p,controlPaddingHorizontalSM:y,controlPaddingHorizontal:b,colorFillAlter:v,colorPrimaryHover:$,colorPrimary:x,controlOutlineWidth:E,controlOutline:C,colorErrorOutline:T,colorWarningOutline:M,colorBgContainer:w,inputFontSize:N,inputFontSizeLG:R,inputFontSizeSM:_}=e,z=N||o,B=_||z,H=R||m,I=Math.round((t-z*a)/2*10)/10-l,L=Math.round((c-B*a)/2*10)/10-l,V=Math.ceil((f-H*h)/2*10)/10-l;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(V,0),paddingInline:p-l,paddingInlineSM:y-l,paddingInlineLG:b-l,addonBg:v,activeBorderColor:x,hoverBorderColor:$,activeShadow:`0 0 0 ${E}px ${C}`,errorActiveShadow:`0 0 0 ${E}px ${T}`,warningActiveShadow:`0 0 0 ${E}px ${M}`,hoverBg:w,activeBg:w,inputFontSize:z,inputFontSizeLG:H,inputFontSizeSM:B}},N8=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),qh=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])":{...N8(qt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),r$=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),DS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...r$(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),z8=(e,t)=>({"&-outlined":{...r$(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...qh(e)},...DS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...DS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),PS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),O8=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...PS(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...PS(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...qh(e)}}}}),A8=(e,t)=>{const{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${o}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},o$=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),IS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...o$(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),_8=(e,t)=>({"&-filled":{...o$(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...qh(e)},...IS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...IS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),jS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),B8=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...jS(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...jS(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:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),a$=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ae(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),VS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...a$(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`}}),H8=(e,t)=>({"&-underlined":{...a$(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"},...VS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...VS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),L8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),i$=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:a,paddingInlineLG:l}=e;return{padding:`${ae(t)} ${ae(l)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:a}},l$=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),s$=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...L8(e.colorTextPlaceholder),"&-lg":{...i$(e),...t.largeStyle},"&-sm":{...l$(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),D8=e=>{const{componentCls:t,antCls:o}=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`]:{...i$(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...l$(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Hs(),[`${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},[`
162
+ & > ${t}-affix-wrapper,
163
+ & > ${t}-number-affix-wrapper,
164
+ & > ${o}-picker-range
165
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${o}-select,
166
+ & > ${o}-select-auto-complete ${t},
167
+ & > ${o}-cascader-picker ${t},
168
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
169
+ & > ${o}-select:first-child,
170
+ & > ${o}-select-auto-complete:first-child ${t},
171
+ & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
172
+ & > ${o}-select:last-child,
173
+ & > ${o}-cascader-picker:last-child ${t},
174
+ & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},P8=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:a,calc:l}=e,f=l(o).sub(l(a).mul(2)).sub(16).div(2).equal();return{[t]:{...Pr(e),...s$(e),...z8(e),..._8(e),...A8(e),...H8(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:f,paddingBottom:f}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},I8=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 ${ae(e.inputAffixPadding)}`}}}},j8=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:a,motionDurationSlow:l,colorIcon:c,colorIconHover:f,iconCls:m}=e,h=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[h]:{...s$(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:a,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}},...I8(e),[`${m}${t}-password-icon`]:{color:c,cursor:"pointer",transition:`all ${l}`,"&:hover":{color:f}}},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${m}${t}-password-icon`]:{color:c,cursor:"not-allowed","&:hover":{color:c}}}}},V8=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:{...Pr(e),...D8(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},...O8(e),...B8(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}}}}}},F8=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},q8=Xt(["Input","Shared"],e=>{const t=qt(e,Vh(e));return[P8(t),j8(t)]},Fh,{resetFont:!1});Xt(["Input","Component"],e=>{const t=qt(e,Vh(e));return[V8(t),F8(t),zh(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Fh,{resetFont:!1});var U8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Op.apply(this,arguments)}const G8=(e,t)=>u.createElement(Dt,Op({},e,{ref:t,icon:U8})),X8=u.forwardRef(G8);var ls={exports:{}},FS;function W8(){if(FS)return ls.exports;FS=1,ls.exports=a,ls.exports.isMobile=a,ls.exports.default=a;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,o=/android|ipad|playbook|silk/i;function a(l){l||(l={});let c=l.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let f=e.test(c)&&!t.test(c)||!!l.tablet&&o.test(c);return!f&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}return ls.exports}var Y8=W8();const K8=SC(Y8);let Km;const k8=()=>(typeof Km>"u"&&(Km=K8()),Km),Uh=u.createContext(null),Q8=e=>{const{activeTabOffset:t,horizontal:o,rtl:a,indicator:l={}}=e,{size:c,align:f="center"}=l,[m,h]=u.useState(),p=u.useRef(),y=te.useCallback(v=>typeof c=="function"?c(v):typeof c=="number"?c:v,[c]);function b(){En.cancel(p.current)}return u.useEffect(()=>{const v={};if(t)if(o){v.width=y(t.width);const $=a?"right":"left";f==="start"&&(v[$]=t[$]),f==="center"&&(v[$]=t[$]+t.width/2,v.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&(v[$]=t[$]+t.width,v.transform="translateX(-100%)")}else v.height=y(t.height),f==="start"&&(v.top=t.top),f==="center"&&(v.top=t.top+t.height/2,v.transform="translateY(-50%)"),f==="end"&&(v.top=t.top+t.height,v.transform="translateY(-100%)");return b(),p.current=En(()=>{m&&v&&Object.keys(v).every(x=>{const E=v[x],C=m[x];return typeof E=="number"&&typeof C=="number"?Math.round(E)===Math.round(C):E===C})||h(v)}),b},[JSON.stringify(t),o,a,f,y]),{style:m}},qS={width:0,height:0,left:0,top:0};function Z8(e,t,o){return u.useMemo(()=>{const a=new Map,l=t.get(e[0]?.key)||qS,c=l.left+l.width;for(let f=0;f<e.length;f+=1){const{key:m}=e[f];let h=t.get(m);h||(h=t.get(e[f-1]?.key)||qS);const p=a.get(m)||{...h};p.right=c-p.left-p.width,a.set(m,p)}return a},[e.map(a=>a.key).join("_"),t,o])}function US(e,t){const o=u.useRef(e),[,a]=u.useState({});function l(c){const f=typeof c=="function"?c(o.current):c;f!==o.current&&t(f,o.current),o.current=f,a({})}return[o.current,l]}const J8=.1,GS=.01,Nu=20,XS=.995**Nu;function eO(e,t){const[o,a]=u.useState(),[l,c]=u.useState(0),[f,m]=u.useState(0),[h,p]=u.useState(),y=u.useRef();function b(T){const{screenX:M,screenY:w}=T.touches[0];a({x:M,y:w}),window.clearInterval(y.current)}function v(T){if(!o)return;const{screenX:M,screenY:w}=T.touches[0];a({x:M,y:w});const N=M-o.x,R=w-o.y;t(N,R);const _=Date.now();c(_),m(_-l),p({x:N,y:R})}function $(){if(o&&(a(null),p(null),h)){const T=h.x/f,M=h.y/f,w=Math.abs(T),N=Math.abs(M);if(Math.max(w,N)<J8)return;let R=T,_=M;y.current=window.setInterval(()=>{if(Math.abs(R)<GS&&Math.abs(_)<GS){window.clearInterval(y.current);return}R*=XS,_*=XS,t(R*Nu,_*Nu)},Nu)}}const x=u.useRef();function E(T){const{deltaX:M,deltaY:w}=T;let N=0;const R=Math.abs(M),_=Math.abs(w);R===_?N=x.current==="x"?M:w:R>_?(N=M,x.current="x"):(N=w,x.current="y"),t(-N,-N)&&T.preventDefault()}const C=u.useRef(null);C.current={onTouchStart:b,onTouchMove:v,onTouchEnd:$,onWheel:E},u.useEffect(()=>{function T(R){C.current.onTouchStart(R)}function M(R){C.current.onTouchMove(R)}function w(R){C.current.onTouchEnd(R)}function N(R){C.current.onWheel(R)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",w,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",w)}},[])}function c$(e){const[t,o]=u.useState(0),a=u.useRef(0),l=u.useRef();return l.current=e,Qw(()=>{l.current?.()},[t]),()=>{a.current===t&&(a.current+=1,o(a.current))}}function tO(e){const t=u.useRef([]),[,o]=u.useState({}),a=u.useRef(typeof e=="function"?e():e),l=c$(()=>{let f=a.current;t.current.forEach(m=>{f=m(f)}),t.current=[],a.current=f,o({})});function c(f){t.current.push(f),l()}return[a.current,c]}const WS={width:0,height:0,left:0,top:0,right:0};function nO(e,t,o,a,l,c,{tabs:f,tabPosition:m,rtl:h}){let p,y,b;return["top","bottom"].includes(m)?(p="width",y=h?"right":"left",b=Math.abs(o)):(p="height",y="top",b=-o),u.useMemo(()=>{if(!f.length)return[0,0];const v=f.length;let $=v;for(let E=0;E<v;E+=1){const C=e.get(f[E].key)||WS;if(Math.floor(C[y]+C[p])>Math.floor(b+t)){$=E-1;break}}let x=0;for(let E=v-1;E>=0;E-=1)if((e.get(f[E].key)||WS)[y]<b){x=E+1;break}return x>$?[0,-1]:[x,$]},[e,t,a,l,c,b,m,f.map(v=>v.key).join("_"),h])}function YS(e){let t;return e instanceof Map?(t={},e.forEach((o,a)=>{t[a]=o})):t=e,JSON.stringify(t)}const rO="TABS_DQ";function u$(e){return String(e).replace(/"/g,rO)}function Gh(e,t,o,a){return!(!o||a||e===!1||e===void 0&&(t===!1||t===null))}const f$=u.forwardRef((e,t)=>{const{prefixCls:o,editable:a,locale:l,style:c}=e;return!a||a.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:`${o}-nav-add`,style:c,"aria-label":l?.addAriaLabel||"Add tab",onClick:f=>{a.onEdit("add",{event:f})}},a.addIcon||"+")}),KS=u.forwardRef((e,t)=>{const{position:o,prefixCls:a,extra:l}=e;if(!l)return null;let c,f={};return typeof l=="object"&&!u.isValidElement(l)?f=l:f.right=l,o==="right"&&(c=f.right),o==="left"&&(c=f.left),c?u.createElement("div",{className:`${a}-extra-content`,ref:t},c):null});function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Ap.apply(this,arguments)}const oO=u.forwardRef((e,t)=>{const{prefixCls:o,id:a,tabs:l,locale:c,mobile:f,more:m={},style:h,className:p,editable:y,tabBarGutter:b,rtl:v,removeAriaLabel:$,onTabClick:x,getPopupContainer:E,popupClassName:C,popupStyle:T}=e,[M,w]=u.useState(!1),[N,R]=u.useState(null),{icon:_="More"}=m,z=`${a}-more-popup`,B=`${o}-dropdown`,H=N!==null?`${z}-${N}`:null,I=c?.dropdownAriaLabel;function L(G,Y){G.preventDefault(),G.stopPropagation(),y.onEdit("remove",{key:Y,event:G})}const V=u.createElement(Xs,{onClick:({key:G,domEvent:Y})=>{x(G,Y),w(!1)},prefixCls:`${B}-menu`,id:z,tabIndex:-1,role:"listbox","aria-activedescendant":H,selectedKeys:[N],"aria-label":I!==void 0?I:"expanded dropdown"},l.map(G=>{const{closable:Y,disabled:Z,closeIcon:A,key:D,label:K}=G,Q=Gh(Y,A,y,Z);return u.createElement(cf,{key:D,id:`${z}-${D}`,role:"option","aria-controls":a&&`${a}-panel-${D}`,disabled:Z},u.createElement("span",null,K),Q&&u.createElement("button",{type:"button","aria-label":$||"remove",tabIndex:0,className:`${B}-menu-item-remove`,onClick:ee=>{ee.stopPropagation(),L(ee,D)}},A||y.removeIcon||"×"))}));function k(G){const Y=l.filter(D=>!D.disabled);let Z=Y.findIndex(D=>D.key===N)||0;const A=Y.length;for(let D=0;D<A;D+=1){Z=(Z+G+A)%A;const K=Y[Z];if(!K.disabled){R(K.key);return}}}function U(G){const{which:Y}=G;if(!M){[er.DOWN,er.SPACE,er.ENTER].includes(Y)&&(w(!0),G.preventDefault());return}switch(Y){case er.UP:k(-1),G.preventDefault();break;case er.DOWN:k(1),G.preventDefault();break;case er.ESC:w(!1);break;case er.SPACE:case er.ENTER:N!==null&&x(N,G);break}}u.useEffect(()=>{const G=document.getElementById(H);G?.scrollIntoView&&G.scrollIntoView(!1)},[H,N]),u.useEffect(()=>{M||R(null)},[M]);const F={marginInlineStart:b};l.length||(F.visibility="hidden",F.order=1);const P=W(C,{[`${B}-rtl`]:v}),q=f?null:u.createElement(kz,Ap({prefixCls:B,overlay:V,visible:l.length?M:!1,onVisibleChange:w,overlayClassName:P,overlayStyle:T,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:E},m),u.createElement("button",{type:"button",className:`${o}-nav-more`,style:F,"aria-haspopup":"listbox","aria-controls":z,id:`${a}-more`,"aria-expanded":M,onKeyDown:U},_));return u.createElement("div",{className:W(`${o}-nav-operations`,p),style:h,ref:t},q,u.createElement(f$,{prefixCls:o,locale:c,editable:y}))}),aO=u.memo(oO,(e,t)=>t.tabMoving),iO=e=>{const{prefixCls:t,id:o,active:a,focus:l,tab:{key:c,label:f,disabled:m,closeIcon:h,icon:p},closable:y,renderWrapper:b,removeAriaLabel:v,editable:$,onClick:x,onFocus:E,onBlur:C,onKeyDown:T,onMouseDown:M,onMouseUp:w,style:N,className:R,tabCount:_,currentPosition:z}=e,B=`${t}-tab`,H=Gh(y,h,$,m);function I(F){m||x(F)}function L(F){F.preventDefault(),F.stopPropagation(),$.onEdit("remove",{key:c,event:F})}const V=u.useMemo(()=>p&&typeof f=="string"?u.createElement("span",null,f):f,[f,p]),k=u.useRef(null);u.useEffect(()=>{l&&k.current&&k.current.focus()},[l]);const U=u.createElement("div",{key:c,"data-node-key":u$(c),className:W(B,R,{[`${B}-with-remove`]:H,[`${B}-active`]:a,[`${B}-disabled`]:m,[`${B}-focus`]:l}),style:N,onClick:I},u.createElement("div",{ref:k,role:"tab","aria-selected":a,id:o&&`${o}-tab-${c}`,className:`${B}-btn`,"aria-controls":o&&`${o}-panel-${c}`,"aria-disabled":m,tabIndex:m?null:a?0:-1,onClick:F=>{F.stopPropagation(),I(F)},onKeyDown:T,onMouseDown:M,onMouseUp:w,onFocus:E,onBlur:C},l&&u.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${z} of ${_}`),p&&u.createElement("span",{className:`${B}-icon`},p),f&&V),H&&u.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:a?0:-1,className:`${B}-remove`,onClick:F=>{F.stopPropagation(),L(F)}},h||$.removeIcon||"×"));return b?b(U):U};function _p(){return _p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},_p.apply(this,arguments)}const lO=(e,t)=>{const{offsetWidth:o,offsetHeight:a,offsetTop:l,offsetLeft:c}=e,{width:f,height:m,left:h,top:p}=e.getBoundingClientRect();return Math.abs(f-o)<1?[f,m,h-t.left,p-t.top]:[o,a,c,l]},Yi=e=>{const{offsetWidth:t=0,offsetHeight:o=0}=e.current||{};if(e.current){const{width:a,height:l}=e.current.getBoundingClientRect();if(Math.abs(a-t)<1)return[a,l]}return[t,o]},hu=(e,t)=>e[t?0:1],kS=u.forwardRef((e,t)=>{const{className:o,style:a,id:l,animated:c,activeKey:f,rtl:m,extra:h,editable:p,locale:y,tabPosition:b,tabBarGutter:v,children:$,onTabClick:x,onTabScroll:E,indicator:C,classNames:T,styles:M}=e,{prefixCls:w,tabs:N}=u.useContext(Uh),R=u.useRef(null),_=u.useRef(null),z=u.useRef(null),B=u.useRef(null),H=u.useRef(null),I=u.useRef(null),L=u.useRef(null),V=b==="top"||b==="bottom",[k,U]=US(0,(Ve,Be)=>{V&&E&&E({direction:Ve>Be?"left":"right"})}),[F,P]=US(0,(Ve,Be)=>{!V&&E&&E({direction:Ve>Be?"top":"bottom"})}),[q,G]=u.useState([0,0]),[Y,Z]=u.useState([0,0]),[A,D]=u.useState([0,0]),[K,Q]=u.useState([0,0]),[ee,ie]=tO(new Map),le=Z8(N,ee,Y[0]),de=hu(q,V),ye=hu(Y,V),ve=hu(A,V),we=hu(K,V),be=Math.floor(de)<Math.floor(ye+ve),Se=be?de-we:de-ve,me=`${w}-nav-operations-hidden`;let he=0,pe=0;V&&m?(he=0,pe=Math.max(0,ye-Se)):(he=Math.min(0,Se-ye),pe=0);function Pe(Ve){return Ve<he?he:Ve>pe?pe:Ve}const Le=u.useRef(null),[Ee,Xe]=u.useState();function Oe(){Xe(Date.now())}function Re(){Le.current&&clearTimeout(Le.current)}eO(B,(Ve,Be)=>{function We(at,It){at(Zt=>Pe(Zt+It))}return be?(V?We(U,Ve):We(P,Be),Re(),Oe(),!0):!1}),u.useEffect(()=>(Re(),Ee&&(Le.current=setTimeout(()=>{Xe(0)},100)),Re),[Ee]);const[De,Te]=nO(le,Se,V?k:F,ye,ve,we,{...e,tabs:N}),et=Tt((Ve=f)=>{const Be=le.get(Ve)||{width:0,height:0,left:0,right:0,top:0};if(V){let We=k;m?Be.right<k?We=Be.right:Be.right+Be.width>k+Se&&(We=Be.right+Be.width-Se):Be.left<-k?We=-Be.left:Be.left+Be.width>-k+Se&&(We=-(Be.left+Be.width-Se)),P(0),U(Pe(We))}else{let We=F;Be.top<-F?We=-Be.top:Be.top+Be.height>-F+Se&&(We=-(Be.top+Be.height-Se)),U(0),P(Pe(We))}}),[it,ft]=u.useState(),[Ue,dt]=u.useState(!1),Me=N.filter(Ve=>!Ve.disabled).map(Ve=>Ve.key),xe=Ve=>{const Be=Me.indexOf(it||f),We=Me.length,at=(Be+Ve+We)%We,It=Me[at];ft(It)},Ae=(Ve,Be)=>{const We=Me.indexOf(Ve),at=N.find(Zt=>Zt.key===Ve);Gh(at?.closable,at?.closeIcon,p,at?.disabled)&&(Be.preventDefault(),Be.stopPropagation(),p.onEdit("remove",{key:Ve,event:Be}),We===Me.length-1?xe(-1):xe(1))},Ye=(Ve,Be)=>{dt(!0),Be.button===1&&Ae(Ve,Be)},_e=Ve=>{const{code:Be}=Ve,We=m&&V,at=Me[0],It=Me[Me.length-1];switch(Be){case"ArrowLeft":{V&&xe(We?1:-1);break}case"ArrowRight":{V&&xe(We?-1:1);break}case"ArrowUp":{Ve.preventDefault(),V||xe(-1);break}case"ArrowDown":{Ve.preventDefault(),V||xe(1);break}case"Home":{Ve.preventDefault(),ft(at);break}case"End":{Ve.preventDefault(),ft(It);break}case"Enter":case"Space":{Ve.preventDefault(),x(it??f,Ve);break}case"Backspace":case"Delete":{Ae(it,Ve);break}}},Ce={};V?Ce.marginInlineStart=v:Ce.marginTop=v;const Ie=N.map((Ve,Be)=>{const{key:We}=Ve;return u.createElement(iO,{id:l,prefixCls:w,key:We,tab:Ve,className:T?.item,style:Be===0?M?.item:{...Ce,...M?.item},closable:Ve.closable,editable:p,active:We===f,focus:We===it,renderWrapper:$,removeAriaLabel:y?.removeAriaLabel,tabCount:Me.length,currentPosition:Be+1,onClick:at=>{x(We,at)},onKeyDown:_e,onFocus:()=>{Ue||ft(We),et(We),Oe(),B.current&&(m||(B.current.scrollLeft=0),B.current.scrollTop=0)},onBlur:()=>{ft(void 0)},onMouseDown:at=>Ye(We,at),onMouseUp:()=>{dt(!1)}})}),mt=()=>ie(()=>{const Ve=new Map,Be=H.current?.getBoundingClientRect();return N.forEach(({key:We})=>{const at=H.current?.querySelector(`[data-node-key="${u$(We)}"]`);if(at){const[It,Zt,gn,jn]=lO(at,Be);Ve.set(We,{width:It,height:Zt,left:gn,top:jn})}}),Ve});u.useEffect(()=>{mt()},[N.map(Ve=>Ve.key).join("_")]);const ke=c$(()=>{const Ve=Yi(R),Be=Yi(_),We=Yi(z);G([Ve[0]-Be[0]-We[0],Ve[1]-Be[1]-We[1]]);const at=Yi(L);D(at);const It=Yi(I);Q(It);const Zt=Yi(H);Z([Zt[0]-at[0],Zt[1]-at[1]]),mt()}),Ut=N.slice(0,De),bt=N.slice(Te+1),je=[...Ut,...bt],Fe=le.get(f),{style:ot}=Q8({activeTabOffset:Fe,horizontal:V,indicator:C,rtl:m});u.useEffect(()=>{et()},[f,he,pe,YS(Fe),YS(le),V]),u.useEffect(()=>{ke()},[m]);const Pt=!!je.length,Wt=`${w}-nav-wrap`;let vt,un,Bn,Hn;return V?m?(un=k>0,vt=k!==pe):(vt=k<0,un=k!==he):(Bn=F<0,Hn=F!==he),u.createElement(wo,{onResize:ke},u.createElement("div",{ref:ya(t,R),role:"tablist","aria-orientation":V?"horizontal":"vertical",className:W(`${w}-nav`,o,T?.header),style:{...M?.header,...a},onKeyDown:()=>{Oe()}},u.createElement(KS,{ref:_,position:"left",extra:h,prefixCls:w}),u.createElement(wo,{onResize:ke},u.createElement("div",{className:W(Wt,{[`${Wt}-ping-left`]:vt,[`${Wt}-ping-right`]:un,[`${Wt}-ping-top`]:Bn,[`${Wt}-ping-bottom`]:Hn}),ref:B},u.createElement(wo,{onResize:ke},u.createElement("div",{ref:H,className:`${w}-nav-list`,style:{transform:`translate(${k}px, ${F}px)`,transition:Ee?"none":void 0}},Ie,u.createElement(f$,{ref:L,prefixCls:w,locale:y,editable:p,style:{...Ie.length===0?void 0:Ce,visibility:Pt?"hidden":null}}),u.createElement("div",{className:W(`${w}-ink-bar`,T?.indicator,{[`${w}-ink-bar-animated`]:c.inkBar}),style:{...ot,...M?.indicator}}))))),u.createElement(aO,_p({},e,{removeAriaLabel:y?.removeAriaLabel,ref:I,prefixCls:w,tabs:je,className:!Pt&&me,popupStyle:M?.popup,tabMoving:!!Ee})),u.createElement(KS,{ref:z,position:"right",extra:h,prefixCls:w})))}),sO=({renderTabBar:e,...t})=>e?e(t,kS):u.createElement(kS,t),cO=u.forwardRef((e,t)=>{const{prefixCls:o,className:a,style:l,id:c,active:f,tabKey:m,children:h}=e,p=u.Children.count(h)>0;return u.createElement("div",{id:c&&`${c}-panel-${m}`,role:"tabpanel",tabIndex:f&&p?0:-1,"aria-labelledby":c&&`${c}-tab-${m}`,"aria-hidden":!f,style:l,className:W(o,f&&`${o}-active`,a),ref:t},h)});function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Wu.apply(this,arguments)}const uO=e=>{const{id:t,activeKey:o,animated:a,tabPosition:l,destroyOnHidden:c,contentStyle:f,contentClassName:m}=e,{prefixCls:h,tabs:p}=u.useContext(Uh),y=a.tabPane,b=`${h}-tabpane`;return u.createElement("div",{className:W(`${h}-content-holder`)},u.createElement("div",{className:W(`${h}-content`,`${h}-content-${l}`,{[`${h}-content-animated`]:y})},p.map(v=>{const{key:$,forceRender:x,style:E,className:C,destroyOnHidden:T,...M}=v,w=$===o;return u.createElement(nr,Wu({key:$,visible:w,forceRender:x,removeOnLeave:!!(c??T),leavedClassName:`${b}-hidden`},a.tabPaneMotion),({style:N,className:R},_)=>u.createElement(cO,Wu({},M,{prefixCls:b,id:t,tabKey:$,animated:y,active:w,style:{...f,...E,...N},className:W(m,C,R),ref:_})))})))};function fO(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},bs.apply(this,arguments)}let QS=0;const dO=u.forwardRef((e,t)=>{const{id:o,prefixCls:a="rc-tabs",className:l,items:c,direction:f,activeKey:m,defaultActiveKey:h,editable:p,animated:y,tabPosition:b="top",tabBarGutter:v,tabBarStyle:$,tabBarExtraContent:x,locale:E,more:C,destroyOnHidden:T,renderTabBar:M,onChange:w,onTabClick:N,onTabScroll:R,getPopupContainer:_,popupClassName:z,indicator:B,classNames:H,styles:I,...L}=e,V=u.useMemo(()=>(c||[]).filter(le=>le&&typeof le=="object"&&"key"in le),[c]),k=f==="rtl",U=fO(y),[F,P]=u.useState(!1);u.useEffect(()=>{P(k8())},[]);const[q,G]=yr(h??V[0]?.key,m),[Y,Z]=u.useState(()=>V.findIndex(le=>le.key===q));u.useEffect(()=>{let le=V.findIndex(de=>de.key===q);le===-1&&(le=Math.max(0,Math.min(Y,V.length-1)),G(V[le]?.key)),Z(le)},[V.map(le=>le.key).join("_"),q,Y]);const[A,D]=yr(null,o);u.useEffect(()=>{o||(D(`rc-tabs-${QS}`),QS+=1)},[]);function K(le,de){N?.(le,de);const ye=le!==q;G(le),ye&&w?.(le)}const Q={id:A,activeKey:q,animated:U,tabPosition:b,rtl:k,mobile:F},ee={...Q,editable:p,locale:E,more:C,tabBarGutter:v,onTabClick:K,onTabScroll:R,extra:x,style:$,getPopupContainer:_,popupClassName:W(z,H?.popup),indicator:B,styles:I,classNames:H},ie=u.useMemo(()=>({tabs:V,prefixCls:a}),[V,a]);return u.createElement(Uh.Provider,{value:ie},u.createElement("div",bs({ref:t,id:o,className:W(a,`${a}-${b}`,{[`${a}-mobile`]:F,[`${a}-editable`]:p,[`${a}-rtl`]:k},l)},L),u.createElement(sO,bs({},ee,{renderTabBar:M})),u.createElement(uO,bs({destroyOnHidden:T},Q,{contentStyle:I?.content,contentClassName:H?.content,animated:U}))))}),mO={motionAppear:!1,motionEnter:!0,motionLeave:!0};function gO(e,t={inkBar:!0,tabPane:!1}){let o;return t===!1?o={inkBar:!1,tabPane:!1}:t===!0?o={inkBar:!0,tabPane:!0}:o={inkBar:!0,...typeof t=="object"?t:{}},o.tabPane&&(o.tabPaneMotion={...mO,motionName:ha(e,"switch")}),o}function pO(e){return e.filter(t=>t)}function hO(e,t){if(e)return e.map(a=>({...a,destroyOnHidden:a.destroyOnHidden??a.destroyInactiveTabPane}));const o=br(t).map(a=>{if(u.isValidElement(a)){const{key:l,props:c}=a,{tab:f,...m}=c||{};return{key:String(l),...m,label:f}}return null});return pO(o)}const yO=e=>{const{componentCls:t,motionDurationSlow:o}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[nS(e,"slide-up"),nS(e,"slide-down")]]},bO=e=>{const{componentCls:t,tabsCardPadding:o,cardBg:a,cardGutter:l,colorBorderSecondary:c,itemSelectedColor:f}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:a,border:`${ae(e.lineWidth)} ${e.lineType} ${c}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:f,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ls(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(l)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(l)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},vO=e=>{const{componentCls:t,itemHoverColor:o,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:{...Pr(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ae(a)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...ef,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},SO=e=>{const{componentCls:t,margin:o,colorBorderSecondary:a,horizontalMargin:l,verticalItemPadding:c,verticalItemMargin:f,motionDurationSlow:m,calc:h}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:l,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(p=>`${p} ${m}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
175
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:h(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:c,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:f},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(p=>`${p} ${m}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(h(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:h(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},CO=e=>{const{componentCls:t,cardPaddingSM:o,cardPaddingLG:a,cardHeightSM:l,cardHeightLG:c,horizontalItemPaddingSM:f,horizontalItemPaddingLG:m}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:f,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:m,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:l,minHeight:l}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:c,minHeight:c}}}}}},xO=e=>{const{componentCls:t,itemActiveColor:o,itemHoverColor:a,iconCls:l,tabsHorizontalItemMargin:c,horizontalItemPadding:f,itemSelectedColor:m,itemColor:h}=e,p=`${t}-tab`;return{[p]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:f,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:h,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${p}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...eo(e)},"&:hover":{color:a},[`&${p}-active ${p}-btn`]:{color:m},[`&${p}-focus ${p}-btn:focus-visible`]:Ls(e),[`&${p}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${p}-disabled ${p}-btn, &${p}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${p}-remove ${l}`]:{margin:0,verticalAlign:"middle"},[`${l}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${p} + ${p}`]:{margin:{_skip_check_:!0,value:c}}}},EO=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:a,cardGutter:l,calc:c}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:c(e.marginXXS).mul(-1).equal()},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:l},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},$O=e=>{const{componentCls:t,tabsCardPadding:o,cardHeight:a,cardGutter:l,itemHoverColor:c,itemActiveColor:f,colorBorderSecondary:m}=e;return{[t]:{...Pr(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:l},background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${m}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:f},...eo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...xO(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...eo(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},wO=e=>{const{cardHeight:t,cardHeightSM:o,cardHeightLG:a,controlHeight:l,controlHeightLG:c}=e,f=t||c,m=o||l,h=a||c+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:f,cardHeightSM:m,cardHeightLG:h,cardPadding:`${(f-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(m-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(h-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},TO=Xt("Tabs",e=>{const t=qt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[CO(t),EO(t),SO(t),vO(t),bO(t),$O(t),yO(t)]},wO),MO=()=>null,RO=u.forwardRef((e,t)=>{const{type:o,className:a,rootClassName:l,size:c,onEdit:f,hideAdd:m,centered:h,addIcon:p,removeIcon:y,moreIcon:b,more:v,popupClassName:$,children:x,items:E,animated:C,style:T,indicatorSize:M,indicator:w,classNames:N,styles:R,destroyInactiveTabPane:_,destroyOnHidden:z,tabPlacement:B,tabPosition:H,...I}=e,{prefixCls:L}=I,{getPrefixCls:V,direction:k,getPopupContainer:U,className:F,style:P,classNames:q,styles:G}=cn("tabs"),{tabs:Y}=u.useContext(ut),Z=V("tabs",L),A=va(Z),[D,K]=TO(Z,A),Q=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:Q.current}));let ee;o==="editable-card"&&(ee={onEdit:(he,{key:pe,event:Pe})=>{f?.(he==="add"?Pe:pe,he)},removeIcon:y??Y?.removeIcon??u.createElement(fl,null),addIcon:(p??Y?.addIcon)||u.createElement(X8,null),showAdd:m!==!0});const ie=V(),le=no(c),de=hO(E,x),ye=gO(Z,C),ve={align:w?.align??Y?.indicator?.align,size:w?.size??M??Y?.indicator?.size??Y?.indicatorSize},we=u.useMemo(()=>{const he=B??H??void 0,pe=k==="rtl";switch(he){case"start":return pe?"right":"left";case"end":return pe?"left":"right";default:return he}},[B,H,k]),be={...e,size:le,tabPlacement:we,items:de},[Se,me]=Nn([q,N],[G,R],{props:be},{popup:{_default:"root"}});return u.createElement(dO,{ref:Q,direction:k,getPopupContainer:U,...I,items:de,className:W({[`${Z}-large`]:le==="large",[`${Z}-small`]:le==="small",[`${Z}-card`]:["card","editable-card"].includes(o),[`${Z}-editable-card`]:o==="editable-card",[`${Z}-centered`]:h},F,a,l,Se.root,D,K,A),classNames:{...Se,popup:W($,D,K,A,Se.popup?.root)},styles:me,style:{...me.root,...P,...T},editable:ee,more:{icon:Y?.more?.icon??Y?.moreIcon??b??u.createElement(R8,null),transitionName:`${ie}-slide-up`,...v},prefixCls:Z,animated:ye,indicator:ve,destroyOnHidden:z??_,tabPosition:we})}),Xh=RO;Xh.TabPane=MO;const d$=({prefixCls:e,className:t,hoverable:o=!0,...a})=>{const{getPrefixCls:l}=u.useContext(ut),c=l("card",e),f=W(`${c}-grid`,t,{[`${c}-grid-hoverable`]:o});return u.createElement("div",{...a,className:f})},NO=e=>{const{antCls:t,componentCls:o,headerHeight:a,headerPadding:l,tabsMarginBottom:c}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${ae(l)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,...Hs(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...ef,[`
176
+ > ${o}-typography,
177
+ > ${o}-typography-edit-content
178
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},zO=e=>{const{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:a,lineWidth:l}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
179
+ ${ae(l)} 0 0 0 ${o},
180
+ 0 ${ae(l)} 0 0 ${o},
181
+ ${ae(l)} ${ae(l)} 0 0 ${o},
182
+ ${ae(l)} 0 0 0 ${o} inset,
183
+ 0 ${ae(l)} 0 0 ${o} inset;
184
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},OO=e=>{const{componentCls:t,iconCls:o,actionsLiMargin:a,cardActionsIconSize:l,colorBorderSecondary:c,actionsBg:f}=e;return{margin:0,padding:0,listStyle:"none",background:f,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`,...Hs(),"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:ae(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:l,lineHeight:ae(e.calc(l).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${c}`}}}},AO=e=>({margin:`${ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Hs(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...ef},"&-description":{color:e.colorTextDescription}}),_O=e=>{const{componentCls:t,colorFillAlter:o,headerPadding:a,bodyPadding:l}=e;return{[`${t}-head`]:{padding:`0 ${ae(a)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ae(e.padding)} ${ae(l)}`}}},BO=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},HO=e=>{const{componentCls:t,cardShadow:o,cardHeadPadding:a,colorBorderSecondary:l,boxShadowTertiary:c,bodyPadding:f,extraColor:m,motionDurationMid:h}=e;return{[t]:{...Pr(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:c},[`${t}-head`]:NO(e),[`${t}-extra`]:{marginInlineStart:"auto",color:m,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:f,borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:zO(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:OO(e),[`${t}-meta`]:AO(e)},[`${t}-bordered`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${l}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(p=>`${p} ${h}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:_O(e),[`${t}-loading`]:BO(e),[`${t}-rtl`]:{direction:"rtl"}}},LO=e=>{const{componentCls:t,bodyPaddingSM:o,headerPaddingSM:a,headerHeightSM:l,headerFontSizeSM:c}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:l,padding:`0 ${ae(a)}`,fontSize:c,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},DO=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),PO=Xt("Card",e=>{const t=qt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[HO(t),LO(t)]},DO),IO=e=>{const{actionClasses:t,actions:o=[],actionStyle:a}=e;return u.createElement("ul",{className:t,style:a},o.map((l,c)=>{const f=`action-${c}`;return u.createElement("li",{style:{width:`${100/o.length}%`},key:f},u.createElement("span",null,l))}))},jO=u.forwardRef((e,t)=>{const{prefixCls:o,className:a,rootClassName:l,style:c,extra:f,headStyle:m={},bodyStyle:h={},title:p,loading:y,bordered:b,variant:v,size:$,type:x,cover:E,actions:C,tabList:T,children:M,activeTabKey:w,defaultActiveTabKey:N,tabBarExtraContent:R,hoverable:_,tabProps:z={},classNames:B,styles:H,...I}=e,{getPrefixCls:L,direction:V,className:k,style:U,classNames:F,styles:P}=cn("card"),[q]=zE("card",v,b),G=no($),Y={...e,size:G,variant:q},[Z,A]=Nn([F,B],[P,H],{props:Y}),D=De=>{e.onTabChange?.(De)},K=u.useMemo(()=>br(M).some(Te=>u.isValidElement(Te)&&Te.type===d$),[M]),Q=L("card",o),[ee,ie]=PO(Q),le=u.createElement(ro,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),de=w!==void 0,ye={...z,[de?"activeKey":"defaultActiveKey"]:de?w:N,tabBarExtraContent:R};let ve;const we=G!=="small"?"large":G,be=T?u.createElement(Xh,{size:we,...ye,className:`${Q}-head-tabs`,onChange:D,items:T.map(({tab:De,...Te})=>({label:De,...Te}))}):null;if(p||f||be){const De=W(`${Q}-head`,Z.header),Te=W(`${Q}-head-title`,Z.title),et=W(`${Q}-extra`,Z.extra),it={...m,...A.header};ve=u.createElement("div",{className:De,style:it},u.createElement("div",{className:`${Q}-head-wrapper`},p&&u.createElement("div",{className:Te,style:A.title},p),f&&u.createElement("div",{className:et,style:A.extra},f)),be)}const Se=W(`${Q}-cover`,Z.cover),me=E?u.createElement("div",{className:Se,style:A.cover},E):null,he=W(`${Q}-body`,Z.body),pe={...h,...A.body},Pe=u.createElement("div",{className:he,style:pe},y?le:M),Le=W(`${Q}-actions`,Z.actions),Ee=C?.length?u.createElement(IO,{actionClasses:Le,actionStyle:A.actions,actions:C}):null,Xe=Lr(I,["onTabChange"]),Oe=W(Q,k,{[`${Q}-loading`]:y,[`${Q}-bordered`]:q!=="borderless",[`${Q}-hoverable`]:_,[`${Q}-contain-grid`]:K,[`${Q}-contain-tabs`]:T?.length,[`${Q}-small`]:G==="small",[`${Q}-type-${x}`]:!!x,[`${Q}-rtl`]:V==="rtl"},a,l,ee,ie,Z.root),Re={...A.root,...U,...c};return u.createElement("div",{ref:t,...Xe,className:Oe,style:Re},ve,me,Pe,Ee)}),VO=e=>{const{prefixCls:t,className:o,avatar:a,title:l,description:c,style:f,classNames:m,styles:h,...p}=e,{getPrefixCls:y,className:b,style:v,classNames:$,styles:x}=cn("cardMeta"),C=`${y("card",t)}-meta`,[T,M]=Nn([$,m],[x,h],{props:e}),w=W(C,o,b,T.root),N={...v,...M.root,...f},R=W(`${C}-avatar`,T.avatar),_=W(`${C}-title`,T.title),z=W(`${C}-description`,T.description),B=W(`${C}-section`,T.section),H=a?u.createElement("div",{className:R,style:M.avatar},a):null,I=l?u.createElement("div",{className:_,style:M.title},l):null,L=c?u.createElement("div",{className:z,style:M.description},c):null,V=I||L?u.createElement("div",{className:B,style:M.section},I,L):null;return u.createElement("div",{...p,className:w,style:N},H,V)},oa=jO;oa.Grid=d$;oa.Meta=VO;function FO(){return $z()}const qO={useBreakpoint:FO},UO=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},GO=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:a,lineWidth:l,textPaddingInline:c,orientationMargin:f,verticalMarginInline:m}=e,h=`${t}-rail`;return{[t]:{...Pr(e),borderBlockStart:`${ae(l)} solid ${a}`,[h]:{borderBlockStart:`${ae(l)} solid ${a}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:m,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ae(l)} solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ae(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ae(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,[`${h}-start, ${h}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${h}-start`]:{width:`calc(${f} * 100%)`},[`${h}-end`]:{width:`calc(100% - ${f} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${h}-start`]:{width:`calc(100% - ${f} * 100%)`},[`${h}-end`]:{width:`calc(${f} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:c},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${ae(l)} 0 0`,[h]:{borderBlockStart:`${ae(l)} dashed ${a}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${h}-start, ${h}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:l,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:a,borderStyle:"dotted",borderWidth:`${ae(l)} 0 0`,[h]:{borderBlockStart:`${ae(l)} dotted ${a}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:l,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`]:{[`${h}-start`]:{width:0},[`${h}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${h}-start`]:{width:"100%"},[`${h}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},XO=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),WO=Xt("Divider",e=>{const t=qt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[GO(t),UO(t)]},XO,{unitless:{orientationMargin:!0}}),YO=["left","right","center","start","end"],m$=e=>{const{getPrefixCls:t,direction:o,className:a,style:l,classNames:c,styles:f}=cn("divider"),{prefixCls:m,type:h,orientation:p,vertical:y,titlePlacement:b,orientationMargin:v,className:$,rootClassName:x,children:E,dashed:C,variant:T="solid",plain:M,style:w,size:N,classNames:R,styles:_,...z}=e,B=t("divider",m),H=`${B}-rail`,[I,L]=WO(B),V=no(N),k=!!E,U=YO.includes(p||""),F=u.useMemo(()=>{const ie=b??(U?p:"center");return ie==="left"?o==="rtl"?"end":"start":ie==="right"?o==="rtl"?"start":"end":ie},[o,p,b,U]),P=F==="start"&&v!=null,q=F==="end"&&v!=null,[G,Y]=Ds(p,y,h),Z={...e,orientation:G,titlePlacement:F,size:V},[A,D]=Nn([c,R],[f,_],{props:Z}),K=W(B,a,I,L,`${B}-${G}`,{[`${B}-with-text`]:k,[`${B}-with-text-${F}`]:k,[`${B}-dashed`]:!!C,[`${B}-${T}`]:T!=="solid",[`${B}-plain`]:!!M,[`${B}-rtl`]:o==="rtl",[`${B}-no-default-orientation-margin-start`]:P,[`${B}-no-default-orientation-margin-end`]:q,[`${B}-md`]:V==="medium"||V==="middle",[`${B}-sm`]:V==="small",[H]:!E,[A.rail]:A.rail&&!E},$,x,A.root),Q=u.useMemo(()=>typeof v=="number"?v:/^\d+$/.test(v)?Number(v):v,[v]),ee={marginInlineStart:P?Q:void 0,marginInlineEnd:q?Q:void 0};return u.createElement("div",{className:K,style:{...l,...D.root,...E?{}:D.rail,...w},...z,role:"separator"},E&&!Y&&u.createElement(u.Fragment,null,u.createElement("div",{className:W(H,`${H}-start`,A.rail),style:D.rail}),u.createElement("span",{className:W(`${B}-inner-text`,A.content),style:{...ee,...D.content}},E),u.createElement("div",{className:W(H,`${H}-end`,A.rail),style:D.rail})))},ZS=(e,t)=>{if(!e)return null;const o={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:o.top,bottom:o.bottom,height:o.height}:{left:o.left,right:o.right,width:o.width,top:0,bottom:0,height:0}},Qr=e=>e!==void 0?`${e}px`:void 0;function KO(e){const{prefixCls:t,containerRef:o,value:a,getValueIndex:l,motionName:c,onMotionStart:f,onMotionEnd:m,direction:h,vertical:p=!1}=e,y=u.useRef(null),[b,v]=u.useState(a),$=z=>{const B=l(z),H=o.current?.querySelectorAll(`.${t}-item`)[B];return H?.offsetParent&&H},[x,E]=u.useState(null),[C,T]=u.useState(null);Lt(()=>{if(b!==a){const z=$(b),B=$(a),H=ZS(z,p),I=ZS(B,p);v(a),E(H),T(I),z&&B?f():m()}},[a]);const M=u.useMemo(()=>Qr(p?x?.top??0:h==="rtl"?-x?.right:x?.left),[p,h,x]),w=u.useMemo(()=>Qr(p?C?.top??0:h==="rtl"?-C?.right:C?.left),[p,h,C]),N=()=>p?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},R=()=>p?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},_=()=>{E(null),T(null),m()};return!x||!C?null:u.createElement(nr,{visible:!0,motionName:c,motionAppear:!0,onAppearStart:N,onAppearActive:R,onVisibleChanged:_},({className:z,style:B},H)=>{const I={...B,"--thumb-start-left":M,"--thumb-start-width":Qr(x?.width),"--thumb-active-left":w,"--thumb-active-width":Qr(C?.width),"--thumb-start-top":M,"--thumb-start-height":Qr(x?.height),"--thumb-active-top":w,"--thumb-active-height":Qr(C?.height)},L={ref:Hr(y,H),style:I,className:W(`${t}-thumb`,z)};return u.createElement("div",L)})}function kO(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function QO(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const o=kO(t);return{...t,title:o}}return{label:t?.toString(),title:t?.toString(),value:t}})}const ZO=({prefixCls:e,className:t,style:o,styles:a,classNames:l,data:c,disabled:f,checked:m,label:h,title:p,value:y,name:b,onChange:v,onFocus:$,onBlur:x,onKeyDown:E,onKeyUp:C,onMouseDown:T,itemRender:M=w=>w})=>{const w=R=>{f||v(R,y)},N=u.createElement("label",{className:W(t,{[`${e}-item-disabled`]:f}),style:o,onMouseDown:T},u.createElement("input",{name:b,className:`${e}-item-input`,type:"radio",disabled:f,checked:m,onChange:w,onFocus:$,onBlur:x,onKeyDown:E,onKeyUp:C}),u.createElement("div",{className:W(`${e}-item-label`,l?.label),title:p,style:a?.label},h));return M(N,{item:c})},JO=u.forwardRef((e,t)=>{const{prefixCls:o="rc-segmented",direction:a,vertical:l,options:c=[],disabled:f,defaultValue:m,value:h,name:p,onChange:y,className:b="",style:v,styles:$,classNames:x,motionName:E="thumb-motion",itemRender:C,...T}=e,M=u.useRef(null),w=u.useMemo(()=>Hr(M,t),[M,t]),N=u.useMemo(()=>QO(c),[c]),[R,_]=yr(m??N[0]?.value,h),[z,B]=u.useState(!1),H=(D,K)=>{_(K),y?.(K)},I=Lr(T,["children"]),[L,V]=u.useState(!1),[k,U]=u.useState(!1),F=()=>{U(!0)},P=()=>{U(!1)},q=()=>{V(!1)},G=D=>{D.key==="Tab"&&V(!0)},Y=D=>{const K=N.findIndex(le=>le.value===R),Q=N.length,ee=(K+D+Q)%Q,ie=N[ee];ie&&(_(ie.value),y?.(ie.value))},Z=D=>{switch(D.key){case"ArrowLeft":case"ArrowUp":Y(-1);break;case"ArrowRight":case"ArrowDown":Y(1);break}},A=D=>{const{value:K,disabled:Q}=D;return u.createElement(ZO,_r({},D,{name:p,data:D,itemRender:C,key:K,prefixCls:o,className:W(D.className,`${o}-item`,x?.item,{[`${o}-item-selected`]:K===R&&!z,[`${o}-item-focused`]:k&&L&&K===R}),style:$?.item,classNames:x,styles:$,checked:K===R,onChange:H,onFocus:F,onBlur:P,onKeyDown:Z,onKeyUp:G,onMouseDown:q,disabled:!!f||!!Q}))};return u.createElement("div",_r({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0,"aria-orientation":l?"vertical":"horizontal",style:v},I,{className:W(o,{[`${o}-rtl`]:a==="rtl",[`${o}-disabled`]:f,[`${o}-vertical`]:l},b),ref:w}),u.createElement("div",{className:`${o}-group`},u.createElement(KO,{vertical:l,prefixCls:o,value:R,containerRef:M,motionName:`${o}-${E}`,direction:a,getValueIndex:D=>N.findIndex(K=>K.value===D),onMotionStart:()=>{B(!0)},onMotionEnd:()=>{B(!1)}}),N.map(A)))}),eA=JO;function JS(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const eC=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),tA={overflow:"hidden",...ef},nA=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:a,motionDurationMid:l}=e,c=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),f=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),m=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Pr(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${l}`,...eo(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${ae(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${l}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...eC(e),color:e.itemSelectedColor},"&-focused":Ls(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(h=>`${h} ${l}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:c,lineHeight:ae(c),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`,...tA},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...eC(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ae(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:f,lineHeight:ae(f),padding:`0 ${ae(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:m,lineHeight:ae(m),padding:`0 ${ae(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...JS(`&-disabled ${t}-item`,e),...JS(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(h=>`${h} ${o} ${a}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},rA=e=>{const{colorTextLabel:t,colorText:o,colorFillSecondary:a,colorBgElevated:l,colorFill:c,lineWidthBold:f,colorBgLayout:m}=e;return{trackPadding:f,trackBg:m,itemColor:t,itemHoverColor:o,itemHoverBg:a,itemSelectedBg:l,itemActiveBg:c,itemSelectedColor:o}},oA=Xt("Segmented",e=>{const{lineWidth:t,calc:o}=e,a=qt(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return nA(a)},rA);function aA(e){return typeof e=="object"&&!!e?.icon}const iA=u.forwardRef((e,t)=>{const o=Sa(),{prefixCls:a,className:l,rootClassName:c,block:f,options:m=[],size:h,style:p,vertical:y,orientation:b,shape:v="default",name:$=o,styles:x,classNames:E,...C}=e,{getPrefixCls:T,direction:M,className:w,style:N,classNames:R,styles:_}=cn("segmented"),z={...e,options:m,size:h,shape:v},[B,H]=Nn([R,E],[_,x],{props:z}),I=T("segmented",a),[L,V]=oA(I),k=no(h),U=u.useMemo(()=>m.map(Y=>{if(aA(Y)){const{icon:Z,label:A,...D}=Y;return{...D,label:u.createElement(u.Fragment,null,u.createElement("span",{className:W(`${I}-item-icon`,B.icon),style:H.icon},Z),A&&u.createElement("span",null,A))}}return Y}),[m,I,B.icon,H.icon]),[,F]=Ds(b,y),P=W(l,c,w,B.root,{[`${I}-block`]:f,[`${I}-sm`]:k==="small",[`${I}-lg`]:k==="large",[`${I}-vertical`]:F,[`${I}-shape-${v}`]:v==="round"},L,V),q={...H.root,...N,...p},G=(Y,{item:Z})=>{if(!Z.tooltip)return Y;const A=typeof Z.tooltip=="object"?Z.tooltip:{title:Z.tooltip};return u.createElement(dl,{...A},Y)};return u.createElement(eA,{...C,name:$,className:P,style:q,classNames:B,styles:H,itemRender:G,options:U,ref:t,prefixCls:I,direction:M,vertical:F})}),tC=iA,lA=e=>{const{componentCls:t,borderRadius:o,paddingSM:a,colorBorder:l,paddingXS:c,fontSizeLG:f,fontSizeSM:m,borderRadiusLG:h,borderRadiusSM:p,colorBgContainerDisabled:y,lineWidth:b,antCls:v}=e,[$,x]=to(v,"space");return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:a,margin:0,borderWidth:b,borderStyle:"solid",borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:f,borderRadius:h},"&-small":{paddingInline:c,borderRadius:p,fontSize:m},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[$("addon-border-color")]:l,[$("addon-background")]:y,[$("addon-border-color-outlined")]:l,[$("addon-background-filled")]:y,borderColor:x("addon-border-color"),background:x("addon-background"),"&-variant-outlined":{[$("addon-border-color")]:x("addon-border-color-outlined")},"&-variant-filled":{[$("addon-border-color")]:"transparent",[$("addon-background")]:x("addon-background-filled"),[`&${t}-disabled`]:{[$("addon-border-color")]:l,[$("addon-background")]:y}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[$("addon-border-color-outlined")]:e.colorError,[$("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[$("addon-border-color-outlined")]:e.colorWarning,[$("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},sA=Xt(["Space","Addon"],e=>[lA(e),zh(e,{focus:!1})]),cA=te.forwardRef((e,t)=>{const{className:o,children:a,style:l,prefixCls:c,variant:f="outlined",disabled:m,status:h,...p}=e,{getPrefixCls:y,direction:b}=te.useContext(ut),v=y("space-addon",c),[$,x]=sA(v),{compactItemClassnames:E,compactSize:C}=Mh(v,b),T=ME(v,h),M=W(v,$,E,x,`${v}-variant-${f}`,T,{[`${v}-${C}`]:C,[`${v}-disabled`]:m},o);return te.createElement("div",{ref:t,className:M,style:l,...p},a)});function uA(e){return!!(e.addonBefore||e.addonAfter)}function fA(e){return!!(e.prefix||e.suffix||e.allowClear)}function nC(e,t,o){const a=t.cloneNode(!0),l=Object.create(e,{target:{value:a},currentTarget:{value:a}});return a.value=o,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(a.selectionStart=t.selectionStart,a.selectionEnd=t.selectionEnd),a.setSelectionRange=(...c)=>{t.setSelectionRange(...c)},l}function rC(e,t,o,a){if(!o)return;let l=t;if(t.type==="click"){l=nC(t,e,""),o(l);return}if(e.type!=="file"&&a!==void 0){l=nC(t,e,a),o(l);return}o(l)}function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Bp.apply(this,arguments)}const dA=te.forwardRef((e,t)=>{const{inputElement:o,children:a,prefixCls:l,prefix:c,suffix:f,addonBefore:m,addonAfter:h,className:p,style:y,disabled:b,readOnly:v,focused:$,triggerFocus:x,allowClear:E,value:C,handleReset:T,hidden:M,classes:w,classNames:N,dataAttrs:R,styles:_,components:z,onClear:B}=e,H=a??o,I=z?.affixWrapper||"span",L=z?.groupWrapper||"span",V=z?.wrapper||"span",k=z?.groupAddon||"span",U=u.useRef(null),F=Y=>{U.current?.contains(Y.target)&&x?.()},P=fA(e);let q=u.cloneElement(H,{value:C,className:W(H.props?.className,!P&&N?.variant)||null});const G=u.useRef(null);if(te.useImperativeHandle(t,()=>({nativeElement:G.current||U.current})),P){let Y=null;if(E){const K=!b&&!v&&C,Q=`${l}-clear-icon`,ee=typeof E=="object"&&E?.clearIcon?E.clearIcon:"✖";Y=te.createElement("button",{type:"button",tabIndex:-1,onClick:ie=>{T?.(ie),B?.()},onMouseDown:ie=>ie.preventDefault(),className:W(Q,{[`${Q}-hidden`]:!K,[`${Q}-has-suffix`]:!!f})},ee)}const Z=`${l}-affix-wrapper`,A=W(Z,{[`${l}-disabled`]:b,[`${Z}-disabled`]:b,[`${Z}-focused`]:$,[`${Z}-readonly`]:v,[`${Z}-input-with-clear-btn`]:f&&E&&C},w?.affixWrapper,N?.affixWrapper,N?.variant),D=(f||E)&&te.createElement("span",{className:W(`${l}-suffix`,N?.suffix),style:_?.suffix},Y,f);q=te.createElement(I,Bp({className:A,style:_?.affixWrapper,onClick:F},R?.affixWrapper,{ref:U}),c&&te.createElement("span",{className:W(`${l}-prefix`,N?.prefix),style:_?.prefix},c),q,D)}if(uA(e)){const Y=`${l}-group`,Z=`${Y}-addon`,A=`${Y}-wrapper`,D=W(`${l}-wrapper`,Y,w?.wrapper,N?.wrapper),K=W(A,{[`${A}-disabled`]:b},w?.group,N?.groupWrapper);q=te.createElement(L,{className:K,ref:G},te.createElement(V,{className:D},m&&te.createElement(k,{className:Z},m),q,h&&te.createElement(k,{className:Z},h)))}return te.cloneElement(q,{className:W(q.props?.className,p)||null,style:{...q.props?.style,...y},hidden:M})});function mA(e,t){return u.useMemo(()=>{let o={};t&&(o.show=typeof t=="object"&&t.formatter?t.formatter:!!t),o={...o,...e};const{show:a,...l}=o;return{...l,show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:l.strategy||(c=>c.length)}},[e,t])}const gA=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:te.createElement(nf,null)}),t};var pA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Hp.apply(this,arguments)}const hA=(e,t)=>u.createElement(Dt,Hp({},e,{ref:t,icon:pA})),yA=u.forwardRef(hA),oC=u.createContext(null),g$=u.createContext({});function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Lp.apply(this,arguments)}const bA=e=>{const{prefixCls:t,className:o,containerRef:a,...l}=e,{panel:c}=u.useContext(g$),f=ya(c,a);return u.createElement("div",Lp({className:W(`${t}-section`,o),role:"dialog",ref:f},da(e,{aria:!0}),{"aria-modal":"true"},l))};function vA(e){const{prefixCls:t,direction:o,className:a,style:l,maxSize:c,containerRef:f,currentSize:m,onResize:h,onResizeEnd:p,onResizeStart:y}=e,[b,v]=u.useState(!1),[$,x]=u.useState(0),[E,C]=u.useState(0),T=o==="left"||o==="right",M=Tt(_=>{_.preventDefault(),_.stopPropagation(),v(!0),x(T?_.clientX:_.clientY);let z;if(typeof m=="number")z=m;else if(f?.current){const B=f.current.getBoundingClientRect();z=T?B.width:B.height}C(z),y?.(z)}),w=Tt(_=>{if(!b)return;let B=(T?_.clientX:_.clientY)-$;(o==="right"||o==="bottom")&&(B=-B);let H=E+B;H<0&&(H=0),c&&H>c&&(H=c),h?.(H)}),N=u.useCallback(()=>{if(b&&(v(!1),f?.current)){const _=f.current.getBoundingClientRect(),z=T?_.width:_.height;p?.(z)}},[b,f,p,T]);return u.useEffect(()=>{if(b)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",N),()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",N)}},[b,w,N]),{dragElementProps:{className:W(`${t}-dragger`,`${t}-dragger-${o}`,{[`${t}-dragger-dragging`]:b,[`${t}-dragger-horizontal`]:T,[`${t}-dragger-vertical`]:!T},a),style:l,onMouseDown:M},isDragging:b}}function km(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&qn(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function SA(e,t,o,a,l){const c=a??l!==!1,[f]=cE(t&&c,e);return te.useEffect(()=>{t&&o===!0&&e()?.focus({preventScroll:!0})},[t]),f}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Qi.apply(this,arguments)}const CA=(e,t)=>{const{prefixCls:o,open:a,placement:l,inline:c,push:f,forceRender:m,autoFocus:h,focusTrap:p,classNames:y,rootClassName:b,rootStyle:v,zIndex:$,className:x,id:E,style:C,motion:T,width:M,height:w,size:N,maxSize:R,children:_,mask:z,maskClosable:B,maskMotion:H,maskClassName:I,maskStyle:L,afterOpenChange:V,onClose:k,onMouseEnter:U,onMouseOver:F,onMouseLeave:P,onClick:q,onKeyDown:G,onKeyUp:Y,styles:Z,drawerRender:A,resizable:D,defaultSize:K}=e,Q=u.useRef(null);u.useImperativeHandle(t,()=>Q.current);const ee=SA(()=>Q.current,a,h,p,z),[ie,le]=u.useState(!1),de=u.useContext(oC);let ye;typeof f=="boolean"?ye=f?{}:{distance:0}:ye=f||{};const ve=ye?.distance??de?.pushDistance??180,we=u.useMemo(()=>({pushDistance:ve,push:()=>{le(!0)},pull:()=>{le(!1)}}),[ve]);u.useEffect(()=>{a?de?.push?.():de?.pull?.()},[a]),u.useEffect(()=>()=>{de?.pull?.()},[]);const be=u.createElement(nr,Qi({key:"mask"},H,{visible:z&&a}),({className:Ue,style:dt},Me)=>u.createElement("div",{className:W(`${o}-mask`,Ue,y?.mask,I),style:{...dt,...L,...Z?.mask},onClick:B&&a?k:void 0,ref:Me})),Se=typeof T=="function"?T(l):T,[me,he]=u.useState(),pe=l==="left"||l==="right",Pe=u.useMemo(()=>km(N??(pe?M:w)??me??K??(pe?378:void 0)),[N,M,w,K,pe,me]),Le=u.useMemo(()=>{const Ue={};if(ie&&ve)switch(l){case"top":Ue.transform=`translateY(${ve}px)`;break;case"bottom":Ue.transform=`translateY(${-ve}px)`;break;case"left":Ue.transform=`translateX(${ve}px)`;break;default:Ue.transform=`translateX(${-ve}px)`;break}return pe?Ue.width=km(Pe):Ue.height=km(Pe),Ue},[ie,ve,l,pe,Pe]),Ee=u.useRef(null),Xe=!!D,Oe=typeof D=="object"&&D||{},Re=Tt(Ue=>{he(Ue),Oe.onResize?.(Ue)}),{dragElementProps:De,isDragging:Te}=vA({prefixCls:`${o}-resizable`,direction:l,className:y?.dragger,style:Z?.dragger,maxSize:R,containerRef:Ee,currentSize:Pe,onResize:Re,onResizeStart:Oe.onResizeStart,onResizeEnd:Oe.onResizeEnd}),et={onMouseEnter:U,onMouseOver:F,onMouseLeave:P,onClick:q,onKeyDown:G,onKeyUp:Y,onFocus:Ue=>{ee(Ue.target)}},it=u.createElement(nr,Qi({key:"panel"},Se,{visible:a,forceRender:m,onVisibleChanged:V,removeOnLeave:!1,leavedClassName:`${o}-content-wrapper-hidden`}),({className:Ue,style:dt},Me)=>{const xe=u.createElement(bA,Qi({id:E,containerRef:Me,prefixCls:o,className:W(x,y?.section),style:{...C,...Z?.section}},da(e,{aria:!0}),et),_);return u.createElement("div",Qi({ref:Ee,className:W(`${o}-content-wrapper`,Te&&`${o}-content-wrapper-dragging`,y?.wrapper,!Te&&Ue),style:{...dt,...Le,...Z?.wrapper}},da(e,{data:!0})),Xe&&u.createElement("div",De),A?A(xe):xe)}),ft={...v};return $&&(ft.zIndex=$),u.createElement(oC.Provider,{value:we},u.createElement("div",{className:W(o,`${o}-${l}`,b,{[`${o}-open`]:a,[`${o}-inline`]:c}),style:ft,tabIndex:-1,ref:Q},be,it))},xA=u.forwardRef(CA),EA=e=>{const{open:t=!1,prefixCls:o="rc-drawer",placement:a="right",autoFocus:l=!0,keyboard:c=!0,width:f,height:m,size:h,maxSize:p,mask:y=!0,maskClosable:b=!0,getContainer:v,forceRender:$,afterOpenChange:x,destroyOnHidden:E,onMouseEnter:C,onMouseOver:T,onMouseLeave:M,onClick:w,onKeyDown:N,onKeyUp:R,onClose:_,resizable:z,defaultSize:B,focusTriggerAfterClose:H,panelRef:I}=e,[L,V]=u.useState(!1),[k,U]=u.useState(!1);Lt(()=>{U(!0)},[]);const F=k?t:!1,P=u.useRef(null),q=u.useRef(null);Lt(()=>{F&&(q.current=document.activeElement)},[F]);const G=K=>{V(K),x?.(K),!K&&H!==!1&&q.current&&!P.current?.contains(q.current)&&q.current?.focus({preventScroll:!0})},Y=u.useMemo(()=>({panel:I}),[I]);if(!$&&!L&&!F&&E)return null;const A={...e,open:F,prefixCls:o,placement:a,autoFocus:l,keyboard:c,width:f,height:m,size:h,maxSize:p,defaultSize:B,mask:y,maskClosable:b,inline:v===!1,afterOpenChange:G,ref:P,resizable:z,...{onMouseEnter:C,onMouseOver:T,onMouseLeave:M,onClick:w,onKeyDown:N,onKeyUp:R}},D=({top:K,event:Q})=>{K&&c&&(Q.stopPropagation(),_?.(Q))};return u.createElement(g$.Provider,{value:Y},u.createElement(Is,{open:F||$||L,autoDestroy:!1,getContainer:v,autoLock:y&&(F||L),onEsc:D},u.createElement(xA,A)))},p$=e=>{const{prefixCls:t,ariaId:o,title:a,footer:l,extra:c,closable:f,loading:m,onClose:h,headerStyle:p,bodyStyle:y,footerStyle:b,children:v,classNames:$,styles:x}=e,E=cn("drawer"),{classNames:C,styles:T,closable:M}=E,[w,N]=Nn([C,$],[T,x],{props:{...e,closable:f??M}}),R=u.useMemo(()=>{const L=f??M;if(L!==!1)return typeof L=="object"&&L?.placement==="end"?"end":"start"},[f,M]),_=u.useCallback(L=>u.createElement("button",{type:"button",onClick:h,className:W(`${t}-close`,{[`${t}-close-${R}`]:R==="end"},w.close),style:N.close},L),[h,t,R,w.close,N.close]),[z,B]=Sh(ga(e),ga(E),{closable:!0,closeIconRender:_}),H=()=>!a&&!z?null:u.createElement("div",{style:{...N.header,...p},className:W(`${t}-header`,w.header,{[`${t}-header-close-only`]:z&&!a&&!c})},u.createElement("div",{className:`${t}-header-title`},R==="start"&&B,a&&u.createElement("div",{className:W(`${t}-title`,w.title),style:N.title,id:o},a)),c&&u.createElement("div",{className:W(`${t}-extra`,w.extra),style:N.extra},c),R==="end"&&B),I=()=>l?u.createElement("div",{className:W(`${t}-footer`,w.footer),style:{...N.footer,...b}},l):null;return u.createElement(u.Fragment,null,H(),u.createElement("div",{className:W(`${t}-body`,w.body),style:{...N.body,...y}},m?u.createElement(ro,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):v),I())},$A=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},h$=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),y$=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...h$({opacity:e},{opacity:1})}),wA=(e,t)=>[y$(.7,t),h$({transform:$A(e)},{transform:"none"})],TA=e=>{const{componentCls:t,motionDurationSlow:o}=e;return{[t]:{[`${t}-mask-motion`]:y$(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((a,l)=>({...a,[`&-${l}`]:wA(l,o)}),{})}}},MA=e=>{const{borderRadiusSM:t,componentCls:o,zIndexPopup:a,colorBgMask:l,colorBgElevated:c,motionDurationSlow:f,motionDurationMid:m,paddingXS:h,padding:p,paddingLG:y,fontSizeLG:b,lineHeightLG:v,lineWidth:$,lineType:x,colorSplit:E,marginXS:C,colorIcon:T,colorIconHover:M,colorBgTextHover:w,colorBgTextActive:N,colorText:R,fontWeightStrong:_,footerPaddingBlock:z,footerPaddingInline:B,draggerSize:H,calc:I}=e,L=`${o}-content-wrapper`,V=`${o}-resizable-dragger`;return{[o]:{position:"fixed",inset:0,zIndex:a,pointerEvents:"none",color:R,"&-pure":{position:"relative",background:c,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:a,background:l,pointerEvents:"auto",[`&${o}-mask-blur`]:{backdropFilter:"blur(4px)"}},[L]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${f}`,"&-hidden":{display:"none"}},[`&-left > ${L}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${L}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${L}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${L}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:c,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae(p)} ${ae(y)}`,fontSize:b,lineHeight:v,borderBottom:`${ae($)} ${x} ${E}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:I(b).add(h).equal(),height:I(b).add(h).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:T,fontWeight:_,fontSize:b,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${m}`,textRendering:"auto",[`&${o}-close-end`]:{marginInlineStart:C},[`&:not(${o}-close-end)`]:{marginInlineEnd:C},"&:hover":{color:M,backgroundColor:w,textDecoration:"none"},"&:active":{backgroundColor:N},...eo(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:b,lineHeight:v},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:y,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${ae(z)} ${ae(B)}`,borderTop:`${ae($)} ${x} ${E}`},[V]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${V}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:H,cursor:"col-resize"},[`${V}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:H,cursor:"col-resize"},[`${V}-top`]:{insetInline:0,bottom:0,height:H,cursor:"row-resize"},[`${V}-bottom`]:{insetInline:0,top:0,height:H,cursor:"row-resize"},[`${L}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${o}-content`]:{pointerEvents:"none"},[`${o}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},RA=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),b$=Xt("Drawer",e=>{const t=qt(e,{});return[MA(t),TA(t)]},RA),NA={distance:180},aC=378,iC={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},v$=e=>{const{rootClassName:t,size:o,defaultSize:a=aC,height:l,width:c,mask:f,push:m=NA,open:h,afterOpenChange:p,onClose:y,prefixCls:b,getContainer:v,panelRef:$=null,style:x,className:E,resizable:C,"aria-labelledby":T,focusable:M,maskClosable:w,maskStyle:N,drawerStyle:R,contentWrapperStyle:_,destroyOnClose:z,destroyOnHidden:B,...H}=e,{placement:I}=H,L=Sa(),V=H.title?L:void 0,{getPopupContainer:k,getPrefixCls:U,direction:F,className:P,style:q,classNames:G,styles:Y,mask:Z}=cn("drawer"),A=U("drawer",b),[D,K]=b$(A),Q=v===void 0&&k?()=>k(document.body):v,ee=u.useMemo(()=>typeof o=="number"?o:o==="large"?736:o==="default"?aC:typeof o=="string"?/^\d+(\.\d+)?$/.test(o)?Number(o):o:!I||I==="left"||I==="right"?c:l,[o,I,c,l]),ie={motionName:ha(A,"mask-motion"),...iC},le=De=>({motionName:ha(A,`panel-motion-${De}`),...iC}),de=bE(),ye=Hr($,de),[ve,we]=Eh("Drawer",H.zIndex),[be,Se,me]=Ox(f,Z,A,w),he=pE(M,Q!==!1&&be),{classNames:pe,styles:Pe,rootStyle:Le}=H,Ee={...e,zIndex:ve,panelRef:$,mask:be,maskClosable:me,defaultSize:a,push:m,focusable:he},[Xe,Oe]=Nn([G,pe],[Y,Pe],{props:Ee}),Re=W({"no-mask":!be,[`${A}-rtl`]:F==="rtl"},t,D,K,Xe.root);return u.createElement(Bh,{form:!0,space:!0},u.createElement(of.Provider,{value:we},u.createElement(EA,{prefixCls:A,onClose:y,maskMotion:ie,motion:le,...H,classNames:{mask:W(Xe.mask,Se.mask),section:Xe.section,wrapper:Xe.wrapper,dragger:Xe.dragger},styles:{mask:{...Oe.mask,...N},section:{...Oe.section,...R},wrapper:{...Oe.wrapper,..._},dragger:Oe.dragger},open:h,mask:be,maskClosable:me,push:m,size:ee,defaultSize:a,style:{...q,...x},rootStyle:{...Le,...Oe.root},className:W(P,E),rootClassName:Re,getContainer:Q,afterOpenChange:p,panelRef:ye,zIndex:ve,...C?{resizable:C}:{},"aria-labelledby":T??V,destroyOnHidden:B??z,focusTriggerAfterClose:he.focusTriggerAfterClose,focusTrap:he.trap},u.createElement(p$,{prefixCls:A,size:o,...H,ariaId:V,onClose:y}))))},zA=e=>{const{prefixCls:t,style:o,className:a,placement:l="right",...c}=e,{getPrefixCls:f}=u.useContext(ut),m=f("drawer",t),[h,p]=b$(m),y=W(m,`${m}-pure`,`${m}-${l}`,h,p,a);return u.createElement("div",{className:y,style:o},u.createElement(p$,{prefixCls:m,...c}))};v$._InternalPanelDoNotUseOrYouWillBeFired=zA;function Yu(e){return["small","middle","medium","large"].includes(e)}function lC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const S$=te.createContext({latestIndex:0}),OA=S$.Provider,AA=e=>{const{className:t,prefix:o,index:a,children:l,separator:c,style:f,classNames:m,styles:h}=e,{latestIndex:p}=u.useContext(S$);return vr(l)?u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:f},l),a<p&&c&&u.createElement("span",{className:W(`${o}-item-separator`,m?.separator),style:h?.separator},c)):null},_A=e=>{const{componentCls:t,antCls:o}=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 > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},BA=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},HA=Xt("Space",e=>{const t=qt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[_A(t),BA(t)]},()=>({}),{resetStyle:!1}),LA=u.forwardRef((e,t)=>{const{getPrefixCls:o,direction:a,size:l,className:c,style:f,classNames:m,styles:h}=cn("space"),{size:p=l??"small",align:y,className:b,rootClassName:v,children:$,direction:x,orientation:E,prefixCls:C,split:T,separator:M,style:w,vertical:N,wrap:R=!1,classNames:_,styles:z,...B}=e,[H,I]=Array.isArray(p)?p:[p,p],L=Yu(I),V=Yu(H),k=lC(I),U=lC(H),F=br($,{keepEmpty:!0}),[P,q]=Ds(E,N,x),G=y===void 0&&!q?"center":y,Y=M??T,Z=o("space",C),[A,D]=HA(Z),K={...e,size:p,orientation:P,align:G},[Q,ee]=Nn([m,_],[h,z],{props:K}),ie=W(Z,c,A,`${Z}-${P}`,{[`${Z}-rtl`]:a==="rtl",[`${Z}-align-${G}`]:G,[`${Z}-gap-row-${I}`]:L,[`${Z}-gap-col-${H}`]:V},b,v,D,Q.root),le=W(`${Z}-item`,Q.item),de=F.map((we,be)=>{const Se=we?.key||`${le}-${be}`;return u.createElement(AA,{prefix:Z,classNames:Q,styles:ee,className:le,key:Se,index:be,separator:Y,style:ee.item},we)}),ye=u.useMemo(()=>({latestIndex:F.reduce((be,Se,me)=>vr(Se)?me:be,0)}),[F]);if(F.length===0)return null;const ve={};return R&&(ve.flexWrap="wrap"),!V&&U&&(ve.columnGap=H),!L&&k&&(ve.rowGap=I),u.createElement("div",{ref:t,className:ie,style:{...ve,...ee.root,...f,...w},...B},u.createElement(OA,{value:ye},de))}),al=LA;al.Compact=MM;al.Addon=cA;const C$=["wrap","nowrap","wrap-reverse"],x$=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],E$=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],DA=(e,t)=>{const o=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${o}`]:o&&C$.includes(o)}},PA=(e,t)=>{const o={};return E$.forEach(a=>{o[`${e}-align-${a}`]=t.align===a}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},IA=(e,t)=>{const o={};return x$.forEach(a=>{o[`${e}-justify-${a}`]=t.justify===a}),o},jA=(e,t)=>W({...DA(e,t),...PA(e,t),...IA(e,t)}),VA=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},FA=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},qA=e=>{const{componentCls:t}=e,o={};return C$.forEach(a=>{o[`${t}-wrap-${a}`]={flexWrap:a}}),o},UA=e=>{const{componentCls:t}=e,o={};return E$.forEach(a=>{o[`${t}-align-${a}`]={alignItems:a}}),o},GA=e=>{const{componentCls:t}=e,o={};return x$.forEach(a=>{o[`${t}-justify-${a}`]={justifyContent:a}}),o},XA=()=>({}),WA=Xt("Flex",e=>{const{paddingXS:t,padding:o,paddingLG:a}=e,l=qt(e,{flexGapSM:t,flexGap:o,flexGapLG:a});return[VA(l),FA(l),qA(l),UA(l),GA(l)]},XA,{resetStyle:!1}),Ya=te.forwardRef((e,t)=>{const{prefixCls:o,rootClassName:a,className:l,style:c,flex:f,gap:m,vertical:h,orientation:p,component:y="div",children:b,...v}=e,{flex:$,direction:x,getPrefixCls:E}=te.useContext(ut),C=E("flex",o),[T,M]=WA(C),[,w]=Ds(p,h??$?.vertical),N=W(l,a,$?.className,C,T,M,jA(C,{...e,vertical:w}),{[`${C}-rtl`]:x==="rtl",[`${C}-gap-${m}`]:Yu(m),[`${C}-vertical`]:w}),R={...$?.style,...c};return vr(f)&&(R.flex=f),vr(m)&&!Yu(m)&&(R.gap=m),te.createElement(y,{ref:t,className:N,style:R,...Lr(v,["justify","wrap","align"])},b)});var YA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function Dp(){return Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Dp.apply(this,arguments)}const KA=(e,t)=>u.createElement(Dt,Dp({},e,{ref:t,icon:YA})),Pp=u.forwardRef(KA),kA=`
185
+ min-height:0 !important;
186
+ max-height:none !important;
187
+ height:0 !important;
188
+ visibility:hidden !important;
189
+ overflow:hidden !important;
190
+ position:absolute !important;
191
+ z-index:-1000 !important;
192
+ top:0 !important;
193
+ right:0 !important;
194
+ pointer-events: none !important;
195
+ `,QA=["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"],Qm={};let mr;function ZA(e,t=!1){const o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Qm[o])return Qm[o];const a=window.getComputedStyle(e),l=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),c=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),f=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),h={sizingStyle:QA.map(p=>`${p}:${a.getPropertyValue(p)}`).join(";"),paddingSize:c,borderSize:f,boxSizing:l};return t&&o&&(Qm[o]=h),h}function JA(e,t=!1,o=null,a=null){mr||(mr=document.createElement("textarea"),mr.setAttribute("tab-index","-1"),mr.setAttribute("aria-hidden","true"),mr.setAttribute("name","hiddenTextarea"),document.body.appendChild(mr)),e.getAttribute("wrap")?mr.setAttribute("wrap",e.getAttribute("wrap")):mr.removeAttribute("wrap");const{paddingSize:l,borderSize:c,boxSizing:f,sizingStyle:m}=ZA(e,t);mr.setAttribute("style",`${m};${kA}`),mr.value=e.value||e.placeholder||"";let h,p,y,b=mr.scrollHeight;if(f==="border-box"?b+=c:f==="content-box"&&(b-=l),o!==null||a!==null){mr.value=" ";const $=mr.scrollHeight-l;o!==null&&(h=$*o,f==="border-box"&&(h=h+l+c),b=Math.max(h,b)),a!==null&&(p=$*a,f==="border-box"&&(p=p+l+c),y=b>p?"":"hidden",b=Math.min(p,b))}const v={height:b,overflowY:y,resize:"none"};return h&&(v.minHeight=h),p&&(v.maxHeight=p),v}function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Ip.apply(this,arguments)}const Zm=0,Jm=1,eg=2,e9=u.forwardRef((e,t)=>{const{prefixCls:o,defaultValue:a,value:l,autoSize:c,onResize:f,className:m,style:h,disabled:p,onChange:y,onInternalAutoSize:b,...v}=e,[$,x]=yr(a,l),E=$??"",C=F=>{x(F.target.value),y?.(F)},T=u.useRef();u.useImperativeHandle(t,()=>({textArea:T.current}));const[M,w]=u.useMemo(()=>c&&typeof c=="object"?[c.minRows,c.maxRows]:[],[c]),N=!!c,[R,_]=u.useState(eg),[z,B]=u.useState(),H=()=>{_(Zm)};Lt(()=>{N&&H()},[l,M,w,N]),Lt(()=>{if(R===Zm)_(Jm);else if(R===Jm){const F=JA(T.current,!1,M,w);_(eg),B(F)}},[R]);const I=u.useRef(),L=()=>{En.cancel(I.current)},V=F=>{R===eg&&(f?.(F),c&&(L(),I.current=En(()=>{H()})))};u.useEffect(()=>L,[]);const U={...h,...N?z:null};return(R===Zm||R===Jm)&&(U.overflowY="hidden",U.overflowX="hidden"),u.createElement(wo,{onResize:V,disabled:!(c||f)},u.createElement("textarea",Ip({},v,{ref:T,style:U,className:W(o,m,{[`${o}-disabled`]:p}),disabled:p,value:E,onChange:C})))});function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},jp.apply(this,arguments)}const t9=te.forwardRef(({defaultValue:e,value:t,onFocus:o,onBlur:a,onChange:l,allowClear:c,maxLength:f,onCompositionStart:m,onCompositionEnd:h,suffix:p,prefixCls:y="rc-textarea",showCount:b,count:v,className:$,style:x,disabled:E,hidden:C,classNames:T,styles:M,onResize:w,onClear:N,onPressEnter:R,readOnly:_,autoSize:z,onKeyDown:B,...H},I)=>{const[L,V]=yr(e,t),k=L==null?"":String(L),[U,F]=te.useState(!1),P=te.useRef(!1),[q,G]=te.useState(null),Y=u.useRef(null),Z=u.useRef(null),A=()=>Z.current?.textArea,D=()=>{A().focus()};u.useImperativeHandle(I,()=>({resizableTextArea:Z.current,focus:D,blur:()=>{A().blur()},nativeElement:Y.current?.nativeElement||A()})),u.useEffect(()=>{F(Re=>!E&&Re)},[E]);const[K,Q]=te.useState(null);te.useEffect(()=>{K&&A().setSelectionRange(...K)},[K]);const ee=mA(v,b),ie=ee.max??f,le=Number(ie)>0,de=ee.strategy(k),ye=!!ie&&de>ie,ve=(Re,De)=>{let Te=De;!P.current&&ee.exceedFormatter&&ee.max&&ee.strategy(De)>ee.max&&(Te=ee.exceedFormatter(De,{max:ee.max}),De!==Te&&Q([A().selectionStart||0,A().selectionEnd||0])),V(Te),rC(Re.currentTarget,Re,l,Te)},we=Re=>{P.current=!0,m?.(Re)},be=Re=>{P.current=!1,ve(Re,Re.currentTarget.value),h?.(Re)},Se=Re=>{ve(Re,Re.target.value)},me=Re=>{Re.key==="Enter"&&R&&!Re.nativeEvent.isComposing&&R(Re),B?.(Re)},he=Re=>{F(!0),o?.(Re)},pe=Re=>{F(!1),a?.(Re)},Pe=Re=>{V(""),D(),rC(A(),Re,l)};let Le=p,Ee;ee.show&&(ee.showFormatter?Ee=ee.showFormatter({value:k,count:de,maxLength:ie}):Ee=`${de}${le?` / ${ie}`:""}`,Le=te.createElement(te.Fragment,null,Le,te.createElement("span",{className:W(`${y}-data-count`,T?.count),style:M?.count},Ee)));const Xe=Re=>{w?.(Re),A()?.style.height&&G(!0)},Oe=!z&&!b&&!c;return te.createElement(dA,{ref:Y,value:k,allowClear:c,handleReset:Pe,suffix:Le,prefixCls:y,classNames:{...T,affixWrapper:W(T?.affixWrapper,{[`${y}-show-count`]:b,[`${y}-textarea-allow-clear`]:c})},disabled:E,focused:U,className:W($,ye&&`${y}-out-of-range`),style:{...x,...q&&!Oe?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:C,readOnly:_,onClear:N},te.createElement(e9,jp({},H,{autoSize:z,maxLength:f,onKeyDown:me,onChange:Se,onFocus:he,onBlur:pe,onCompositionStart:we,onCompositionEnd:be,className:W(T?.textarea),style:{resize:x?.resize,...M?.textarea},disabled:E,prefixCls:y,onResize:Xe,ref:Z,readOnly:_})))}),n9=e=>{const{componentCls:t,paddingLG:o}=e,a=`${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"},[a]:{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"}},[`
196
+ &-allow-clear > ${t},
197
+ &-affix-wrapper${a}-has-feedback ${t}
198
+ `]:{paddingInlineEnd:o},[`&-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},[`${a}-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}}}}}},r9=Xt(["Input","TextArea"],e=>{const t=qt(e,Vh(e));return n9(t)},Fh,{resetFont:!1}),o9=u.forwardRef((e,t)=>{const{prefixCls:o,bordered:a=!0,size:l,disabled:c,status:f,allowClear:m,classNames:h,rootClassName:p,className:y,style:b,styles:v,variant:$,showCount:x,onMouseDown:E,onResize:C,...T}=e,{getPrefixCls:M,direction:w,allowClear:N,autoComplete:R,className:_,style:z,classNames:B,styles:H}=cn("textArea"),I=u.useContext(Za),L=c??I,{status:V,hasFeedback:k,feedbackIcon:U}=u.useContext(gp),F=dz(V,f),[P,q]=Nn([B,h],[H,v],{props:e}),G=u.useRef(null);u.useImperativeHandle(t,()=>({resizableTextArea:G.current?.resizableTextArea,focus:he=>{RR(G.current?.resizableTextArea?.textArea,he)},blur:()=>G.current?.blur(),nativeElement:G.current?.nativeElement||null}));const Y=M("input",o),Z=va(Y),[A,D]=q8(Y,p);r9(Y,Z);const{compactSize:K,compactItemClassnames:Q}=Mh(Y,w),ee=no(he=>l??K??he),[ie,le]=zE("textArea",$,a),de=gA(m??N),[ye,ve]=u.useState(!1),[we,be]=u.useState(!1),Se=he=>{ve(!0),E?.(he);const pe=()=>{ve(!1),document.removeEventListener("mouseup",pe)};document.addEventListener("mouseup",pe)},me=he=>{if(C?.(he),ye&&typeof getComputedStyle=="function"){const pe=G.current?.nativeElement?.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&be(!0)}};return u.createElement(t9,{autoComplete:R,...T,style:{...q.root,...z,...b},styles:q,disabled:L,allowClear:de,className:W(D,Z,y,p,Q,_,P.root,{[`${Y}-textarea-affix-wrapper-resize-dirty`]:we}),classNames:{...P,textarea:W({[`${Y}-sm`]:ee==="small",[`${Y}-lg`]:ee==="large"},A,P.textarea,ye&&`${Y}-mouse-active`),variant:W({[`${Y}-${ie}`]:le},ME(Y,F)),affixWrapper:W(`${Y}-textarea-affix-wrapper`,{[`${Y}-affix-wrapper-rtl`]:w==="rtl",[`${Y}-affix-wrapper-sm`]:ee==="small",[`${Y}-affix-wrapper-lg`]:ee==="large",[`${Y}-textarea-show-count`]:x||e.count?.show},A)},prefixCls:Y,suffix:k&&u.createElement("span",{className:`${Y}-textarea-suffix`},U),showCount:x,ref:G,onResize:me,onMouseDown:Se})});function a9(e,t,o){return typeof o=="boolean"?o:e.length?!0:br(t).some(l=>l.type===n$)}const uf=({suffixCls:e,tagName:t,displayName:o})=>a=>u.forwardRef((c,f)=>u.createElement(a,{ref:f,suffixCls:e,tagName:t,...c})),Wh=u.forwardRef((e,t)=>{const{prefixCls:o,suffixCls:a,className:l,tagName:c,...f}=e,{getPrefixCls:m}=u.useContext(ut),h=m("layout",o),[p]=e$(h),y=a?`${h}-${a}`:h;return u.createElement(c,{className:W(o||y,l,p),ref:t,...f})}),i9=u.forwardRef((e,t)=>{const{direction:o}=u.useContext(ut),[a,l]=u.useState([]),{prefixCls:c,className:f,rootClassName:m,children:h,hasSider:p,tagName:y,style:b,...v}=e,$=Lr(v,["suffixCls"]),{getPrefixCls:x,className:E,style:C}=cn("layout"),T=x("layout",c),M=a9(a,h,p),[w,N]=e$(T),R=W(T,{[`${T}-has-sider`]:M,[`${T}-rtl`]:o==="rtl"},E,f,m,w,N),_=u.useMemo(()=>({siderHook:{addSider:z=>{l(B=>[].concat(sn(B),[z]))},removeSider:z=>{l(B=>B.filter(H=>H!==z))}}}),[]);return u.createElement(QE.Provider,{value:_},u.createElement(y,{ref:t,className:R,style:{...C,...b},...$},h))}),l9=uf({tagName:"div",displayName:"Layout"})(i9),s9=uf({suffixCls:"header",tagName:"header",displayName:"Header"})(Wh),c9=uf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Wh),u9=uf({suffixCls:"content",tagName:"main",displayName:"Content"})(Wh),Jr=l9;Jr.Header=s9;Jr.Footer=c9;Jr.Content=u9;Jr.Sider=n$;Jr._InternalSiderContext=t$;const $$=(e,t={})=>!vr(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e];var f9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Vp.apply(this,arguments)}const d9=(e,t)=>u.createElement(Dt,Vp({},e,{ref:t,icon:f9})),w$=u.forwardRef(d9),m9=e=>{const{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:a,componentCls:l,calc:c}=e,f=c(a).sub(o).equal(),m=c(t).sub(o).equal();return{[l]:{...Pr(e),display:"inline-block",height:"auto",paddingInline:f,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${l}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${l}-close-icon`]:{marginInlineStart:m,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${l}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${l}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${l}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${l}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:f}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${l}-default`]:{color:e.solidTextColor}},[`${l}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${l}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${l}-solid, &${l}-filled`]:{color:e.colorTextDisabled,[`${l}-close-icon`]:{color:e.colorTextDisabled}},[`${l}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},Yh=e=>{const{lineWidth:t,fontSizeIcon:o,calc:a}=e,l=e.fontSizeSM;return qt(e,{tagFontSize:l,tagLineHeight:ae(a(e.lineHeightSM).mul(l).equal()),tagIconSize:a(o).sub(a(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Kh=e=>{const t=rE(new Iu(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new zt(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},kh=Xt("Tag",e=>{const t=Yh(e);return m9(t)},Kh),T$=u.forwardRef((e,t)=>{const{prefixCls:o,style:a,className:l,checked:c,children:f,icon:m,onChange:h,onClick:p,disabled:y,...b}=e,{getPrefixCls:v,tag:$}=u.useContext(ut),x=u.useContext(Za),E=y??x,C=R=>{E||(h?.(!c),p?.(R))},T=v("tag",o),[M,w]=kh(T),N=W(T,`${T}-checkable`,{[`${T}-checkable-checked`]:c,[`${T}-checkable-disabled`]:E},$?.className,l,M,w);return u.createElement("span",{...b,ref:t,style:{...a,...$?.style},className:N,onClick:C},m,u.createElement("span",null,f))}),g9=te.forwardRef((e,t)=>{const{id:o,prefixCls:a,rootClassName:l,className:c,style:f,classNames:m,styles:h,disabled:p,options:y,value:b,defaultValue:v,onChange:$,multiple:x,...E}=e,{getPrefixCls:C,direction:T,className:M,style:w,classNames:N,styles:R}=cn("tag"),_=C("tag",a),z=`${_}-checkable-group`,B=va(_),[H,I]=kh(_,B),[L,V]=Nn([N,m],[R,h],{props:e}),k=u.useMemo(()=>Array.isArray(y)?y.map(Y=>Y&&typeof Y=="object"?Y:{value:Y,label:Y}):[],[y]),[U,F]=yr(v,b),P=(Y,Z)=>{let A=null;if(x){const D=U||[];A=Y?[].concat(sn(D),[Z.value]):D.filter(K=>K!==Z.value)}else A=Y?Z.value:null;F(A),$?.(A)},q=te.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:q.current}));const G=da(E,{aria:!0,data:!0});return te.createElement("div",{...G,className:W(z,M,l,{[`${z}-disabled`]:p,[`${z}-rtl`]:T==="rtl"},H,I,c,L.root),style:{...w,...V.root,...f},id:o,ref:q},k.map(Y=>te.createElement(T$,{key:Y.value,className:W(`${z}-item`,L.item),style:V.item,checked:x?(U||[]).includes(Y.value):U===Y.value,onChange:Z=>P(Z,Y),disabled:p},Y.label)))});function p9(e,t){const{color:o,variant:a,bordered:l}=e;return u.useMemo(()=>{const c=o?.endsWith("-inverse");let f;a?f=a:c?f="solid":l===!1?f="filled":f=t||"filled";const m=c?o?.replace("-inverse",""):o,h=HE(o),p=jz(o),y={};if(!h&&!p&&m)if(f==="solid")y.backgroundColor=o;else{const b=new zt(m).toHsl();b.l=.95,y.backgroundColor=new zt(b).toHexString(),y.color=o,f==="outlined"&&(y.borderColor=o)}return[f,m,h,p,y]},[o,a,l,t])}const h9=e=>mx(e,(t,{textColor:o,lightBorderColor:a,lightColor:l,darkColor:c})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:l,borderColor:a,color:o},[`&${e.componentCls}-solid`]:{backgroundColor:c,borderColor:c,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:l,color:o}}})),y9=tf(["Tag","preset"],e=>{const t=Yh(e);return h9(t)},Kh);function b9(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const yu=(e,t,o)=>{const a=b9(o);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${a}Bg`],borderColor:e[`color${a}Border`],color:e[`color${o}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${o}`],borderColor:e[`color${o}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${a}Bg`],color:e[`color${o}`]}}}},v9=tf(["Tag","status"],e=>{const t=Yh(e);return[yu(t,"success","Success"),yu(t,"processing","Info"),yu(t,"error","Error"),yu(t,"warning","Warning")]},Kh),S9=u.forwardRef((e,t)=>{const{prefixCls:o,className:a,rootClassName:l,style:c,children:f,icon:m,color:h,variant:p,onClose:y,bordered:b,disabled:v,href:$,target:x,styles:E,classNames:C,...T}=e,{getPrefixCls:M,direction:w,className:N,variant:R,style:_,classNames:z,styles:B}=cn("tag"),[H,I,L,V,k]=p9(e,R),U=L||V,F=u.useContext(Za),P=v??F,{tag:q}=u.useContext(ut),[G,Y]=u.useState(!0),Z=Lr(T,["closeIcon","closable"]),A={...e,color:I,variant:H,disabled:P},[D,K]=Nn([z,C],[B,E],{props:A}),Q=u.useMemo(()=>{let pe={...K.root,..._,...c};return P||(pe={...k,...pe}),pe},[K.root,_,c,k,P]),ee=M("tag",o),[ie,le]=kh(ee),de=W(ee,N,D.root,`${ee}-${H}`,{[`${ee}-${I}`]:U,[`${ee}-hidden`]:!G,[`${ee}-rtl`]:w==="rtl",[`${ee}-disabled`]:P},a,l,ie,le),ye=pe=>{P||(pe.stopPropagation(),y?.(pe),!pe.defaultPrevented&&Y(!1))},[,ve]=Sh(ga(e),ga(q),{closable:!1,closeIconRender:pe=>{const Pe=u.createElement("span",{className:`${ee}-close-icon`,onClick:ye},pe);return Ux(pe,Pe,Le=>({onClick:Ee=>{Le?.onClick?.(Ee),ye(Ee)},className:W(Le?.className,`${ee}-close-icon`)}))}}),we=typeof T.onClick=="function"||f&&f.type==="a",be=pa(m,{className:W(u.isValidElement(m)?m.props?.className:void 0,D.icon),style:K.icon}),Se=be?u.createElement(u.Fragment,null,be,f&&u.createElement("span",{className:D.content,style:K.content},f)):f,me=$?"a":"span",he=u.createElement(me,{...Z,ref:t,className:de,style:Q,href:P?void 0:$,target:x,onClick:P?void 0:Z.onClick,...$&&P?{"aria-disabled":!0}:{}},Se,ve,L&&u.createElement(y9,{key:"preset",prefixCls:ee}),V&&u.createElement(v9,{key:"status",prefixCls:ee}));return we?u.createElement(Qx,{component:"Tag"},he):he}),fa=S9;fa.CheckableTag=T$;fa.CheckableTagGroup=g9;const Or=(e,t)=>new zt(e).setA(t).toRgbString(),Fa=(e,t)=>new zt(e).lighten(t).toHexString(),sC=e=>{const t=Bs(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]}},C9=(e,t)=>{const o=e||"#000",a=t||"#fff";return{colorBgBase:o,colorTextBase:a,colorText:Or(a,.85),colorTextSecondary:Or(a,.65),colorTextTertiary:Or(a,.45),colorTextQuaternary:Or(a,.25),colorFill:Or(a,.18),colorFillSecondary:Or(a,.12),colorFillTertiary:Or(a,.08),colorFillQuaternary:Or(a,.04),colorBgSolid:Or(a,.95),colorBgSolidHover:Or(a,1),colorBgSolidActive:Or(a,.9),colorBgElevated:Fa(o,12),colorBgContainer:Fa(o,8),colorBgLayout:Fa(o,0),colorBgSpotlight:Fa(o,26),colorBgBlur:Or(a,.04),colorBorder:Fa(o,26),colorBorderDisabled:Fa(o,26),colorBorderSecondary:Fa(o,19)}},x9=(e,t)=>{const o=Object.keys(dh).map(f=>{const m=Bs(e[f],{theme:"dark"});return Array.from({length:10},()=>1).reduce((h,p,y)=>(h[`${f}-${y+1}`]=m[y],h[`${f}${y+1}`]=m[y],h),{})}).reduce((f,m)=>(f={...f,...m},f),{}),a=t??mh(e),l=ax(e,{generateColorPalettes:sC,generateNeutralColorPalettes:C9}),c=Mo.reduce((f,m)=>{const h=e[m];if(h){const p=sC(h);f[`${m}Hover`]=p[7],f[`${m}Active`]=p[5]}return f},{});return{...a,...o,...l,...c,colorPrimaryBg:l.colorPrimaryBorder,colorPrimaryBgHover:l.colorPrimaryBorderHover}},cC={defaultSeed:_u.token,defaultAlgorithm:mh,darkAlgorithm:x9};var E9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Fp.apply(this,arguments)}const $9=(e,t)=>u.createElement(Dt,Fp({},e,{ref:t,icon:E9})),w9=u.forwardRef($9);var T9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},qp.apply(this,arguments)}const M9=(e,t)=>u.createElement(Dt,qp({},e,{ref:t,icon:T9})),R9=u.forwardRef(M9),N9=(e,t,o,a)=>{const{titleMarginBottom:l,fontWeightStrong:c}=a;return{marginBottom:l,color:o,fontWeight:c,fontSize:e,lineHeight:t}},z9=e=>{const t=[1,2,3,4,5],o={};return t.forEach(a=>{o[`
199
+ h${a}&,
200
+ div&-h${a},
201
+ div&-h${a} > textarea,
202
+ h${a}
203
+ `]=N9(e[`fontSizeHeading${a}`],e[`lineHeightHeading${a}`],e.colorTextHeading,e)}),o},O9=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...dx(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},A9=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ou[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),_9=e=>{const{componentCls:t,paddingSM:o}=e,a=o;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(a).div(-2).add(1).equal(),marginBottom:e.calc(a).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},B9=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),H9=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),L9=e=>{const{componentCls:t,titleMarginTop:o}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...z9(e),[`
204
+ & + h1${t},
205
+ & + h2${t},
206
+ & + h3${t},
207
+ & + h4${t},
208
+ & + h5${t}
209
+ `]:{marginTop:o},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:o}},...A9(e),...O9(e),[`${t}-actions`]:{display:"inline"},[`
210
+ ${t}-expand,
211
+ ${t}-collapse,
212
+ ${t}-edit,
213
+ ${t}-copy
214
+ `]:{...dx(e),marginInlineStart:e.marginXXS},..._9(e),...B9(e),...H9(),"&-rtl":{direction:"rtl"}}}},D9=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),M$=Xt("Typography",L9,D9),P9=e=>{const{prefixCls:t,"aria-label":o,className:a,style:l,direction:c,maxLength:f,autoSize:m=!0,value:h,onSave:p,onCancel:y,onEnd:b,component:v,enterIcon:$=u.createElement(R9,null)}=e,x=u.useRef(null),E=u.useRef(!1),C=u.useRef(null),[T,M]=u.useState(h);u.useEffect(()=>{M(h)},[h]),u.useEffect(()=>{if(x.current?.resizableTextArea){const{textArea:k}=x.current.resizableTextArea;k.focus();const{length:U}=k.value;k.setSelectionRange(U,U)}},[]);const w=({target:k})=>{M(k.value.replace(/[\n\r]/g,""))},N=()=>{E.current=!0},R=()=>{E.current=!1},_=({keyCode:k})=>{E.current||(C.current=k)},z=()=>{p(T.trim())},B=({keyCode:k,ctrlKey:U,altKey:F,metaKey:P,shiftKey:q})=>{C.current!==k||E.current||U||F||P||q||(k===er.ENTER?(z(),b?.()):k===er.ESC&&y())},H=()=>{z()},[I,L]=M$(t),V=W(t,`${t}-edit-content`,{[`${t}-rtl`]:c==="rtl",[`${t}-${v}`]:!!v},a,I,L);return u.createElement("div",{className:V,style:l},u.createElement(o9,{ref:x,maxLength:f,value:T,onChange:w,onKeyDown:_,onKeyUp:B,onCompositionStart:N,onCompositionEnd:R,onBlur:H,"aria-label":o,rows:1,autoSize:m}),$!==null?pa($,{className:`${t}-edit-content-confirm`}):null)},I9=(e,t)=>{let o=!1;const a=l=>{l.stopPropagation(),l.preventDefault(),l.clipboardData?.clearData(),l.clipboardData?.setData("text/plain",e),t&&l.clipboardData?.setData("text/html",e),o=!0};try{return document.addEventListener("copy",a,{capture:!0}),document.execCommand("copy"),o}catch{return!1}finally{document.removeEventListener("copy",a,{capture:!0})}},j9=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function V9(e,t){if(typeof e!="string")return!1;const o=t?.format==="text/html";return!!(await j9(e,o)||I9(e,o))}const F9=({copyConfig:e,children:t})=>{const[o,a]=u.useState(!1),[l,c]=u.useState(!1),f=u.useRef(null),m=()=>{f.current&&clearTimeout(f.current)},h={};e.format&&(h.format=e.format),u.useEffect(()=>m,[]);const p=Tt(async y=>{y?.preventDefault(),y?.stopPropagation(),c(!0);try{const b=typeof e.text=="function"?await e.text():e.text;await V9(b||$$(t,{skipEmpty:!0}).join("")||"",h),c(!1),a(!0),m(),f.current=setTimeout(()=>{a(!1)},3e3),e.onCopy?.(y)}catch(b){throw c(!1),b}});return{copied:o,copyLoading:l,onClick:p}};function tg(e,t){return u.useMemo(()=>{const o=!!e;return[o,{...t,...o&&typeof e=="object"?e:null}]},[e])}const q9=e=>{const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current},U9=(e,t,o)=>u.useMemo(()=>e===!0?{title:t??o}:u.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??o,...e}:{title:e},[e,t,o]),R$=u.forwardRef((e,t)=>{const{prefixCls:o,component:a="article",className:l,rootClassName:c,children:f,direction:m,style:h,...p}=e,{getPrefixCls:y,direction:b,className:v,style:$}=cn("typography"),x=m??b,E=y("typography",o),[C,T]=M$(E),M=W(E,v,{[`${E}-rtl`]:x==="rtl"},l,c,C,T),w={...$,...h};return u.createElement(a,{className:M,style:w,ref:t,...p},f)});var G9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Up.apply(this,arguments)}const X9=(e,t)=>u.createElement(Dt,Up({},e,{ref:t,icon:G9})),W9=u.forwardRef(X9),uC=e=>e===!1?[!1,!1]:$$(e);function ng(e,t,o){return e===!0||e===void 0?t:e||o&&t}function Y9(e){const t=document.createElement("em");e.appendChild(t);const o=e.getBoundingClientRect(),a=t.getBoundingClientRect();return e.removeChild(t),o.left>a.left||a.right>o.right||o.top>a.top||a.bottom>o.bottom}const Qh=e=>["string","number"].includes(typeof e),K9=e=>{const{prefixCls:t,copied:o,locale:a,iconOnly:l,tooltips:c,icon:f,tabIndex:m,onCopy:h,loading:p}=e,y=uC(c),b=uC(f),{copied:v,copy:$}=a??{},x=o?v:$,E=ng(y[o?1:0],x),C=typeof E=="string"?E:x;return u.createElement(dl,{title:E},u.createElement("button",{type:"button",className:W(`${t}-copy`,{[`${t}-copy-success`]:o,[`${t}-copy-icon-only`]:l}),onClick:h,"aria-label":C,tabIndex:m},o?ng(b[1],u.createElement(vz,null),!0):ng(b[0],p?u.createElement(Th,null):u.createElement(W9,null),!0)))},bu=u.forwardRef(({style:e,children:t},o)=>{const a=u.useRef(null);return u.useImperativeHandle(o,()=>({isExceed:()=>{const l=a.current;return l.scrollHeight>l.clientHeight},getHeight:()=>a.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:a,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),k9=e=>e.reduce((t,o)=>t+(Qh(o)?String(o).length:1),0);function fC(e,t){let o=0;const a=[];for(let l=0;l<e.length;l+=1){if(o===t)return a;const c=e[l],m=Qh(c)?String(c).length:1,h=o+m;if(h>t){const p=t-o;return a.push(String(c).slice(0,p)),a}a.push(c),o=h}return e}const rg=0,og=1,ag=2,ig=3,dC=4,vu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Q9(e){const{enableMeasure:t,width:o,text:a,children:l,rows:c,expanded:f,miscDeps:m,onEllipsis:h}=e,p=u.useMemo(()=>br(a),[a]),y=u.useMemo(()=>k9(p),[a]),b=u.useMemo(()=>l(p,!1),[a]),[v,$]=u.useState(null),x=u.useRef(null),E=u.useRef(null),C=u.useRef(null),T=u.useRef(null),M=u.useRef(null),[w,N]=u.useState(!1),[R,_]=u.useState(rg),[z,B]=u.useState(0),[H,I]=u.useState(null);Lt(()=>{_(t&&o&&y?og:rg)},[o,a,c,t,p]),Lt(()=>{if(R===og){_(ag);const U=E.current&&getComputedStyle(E.current).whiteSpace;I(U)}else if(R===ag){const U=!!C.current?.isExceed();_(U?ig:dC),$(U?[0,y]:null),N(U);const F=C.current?.getHeight()||0,P=c===1?0:T.current?.getHeight()||0,q=M.current?.getHeight()||0,G=Math.max(F,P+q);B(G+1),h(U)}},[R]);const L=v?Math.ceil((v[0]+v[1])/2):0;Lt(()=>{const[U,F]=v||[0,0];if(U!==F){const q=(x.current?.getHeight()||0)>z;let G=L;F-U===1&&(G=q?U:F),$(q?[U,G]:[G,F])}},[v,L]);const V=u.useMemo(()=>{if(!t)return l(p,!1);if(R!==ig||!v||v[0]!==v[1]){const U=l(p,!1);return[dC,rg].includes(R)?U:u.createElement("span",{style:{...vu,WebkitLineClamp:c}},U)}return l(f?p:fC(p,v[0]),w)},[f,R,v,p].concat(sn(m))),k={width:o,margin:0,padding:0,whiteSpace:H==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,V,R===ag&&u.createElement(u.Fragment,null,u.createElement(bu,{style:{...k,...vu,WebkitLineClamp:c},ref:C},b),u.createElement(bu,{style:{...k,...vu,WebkitLineClamp:c-1},ref:T},b),u.createElement(bu,{style:{...k,...vu,WebkitLineClamp:1},ref:M},l([],!0))),R===ig&&v&&v[0]!==v[1]&&u.createElement(bu,{style:{...k,top:400},ref:x},l(fC(p,L),!0)),R===og&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:E}))}const Z9=({enableEllipsis:e,isEllipsis:t,open:o,children:a,tooltipProps:l})=>{if(!l?.title||!e)return a;const c=o&&t;return u.createElement(dl,{open:c,...l},a)};function J9({mark:e,code:t,underline:o,delete:a,strong:l,keyboard:c,italic:f},m){let h=m;function p(y,b){b&&(h=u.createElement(y,{},h))}return p("strong",l),p("u",o),p("del",a),p("code",t),p("mark",e),p("kbd",c),p("i",f),h}const e7="...",mC=["delete","mark","code","underline","strong","keyboard","italic"],ff=u.forwardRef((e,t)=>{const{prefixCls:o,className:a,style:l,type:c,disabled:f,children:m,ellipsis:h,editable:p,copyable:y,component:b,title:v,onMouseEnter:$,onMouseLeave:x,...E}=e,{getPrefixCls:C,direction:T}=u.useContext(ut),[M]=ba("Text"),w=u.useRef(null),N=u.useRef(null),R=C("typography",o),_=Lr(E,mC),[z,B]=tg(p),[H,I]=yr(!1,B.editing),{triggerType:L=["icon"]}=B,V=je=>{je&&B.onStart?.(),I(je)},k=q9(H);Lt(()=>{!H&&k&&N.current?.focus()},[H]);const U=je=>{je?.preventDefault(),V(!0)},F=je=>{B.onChange?.(je),V(!1)},P=()=>{B.onCancel?.(),V(!1)},[q,G]=tg(y),{copied:Y,copyLoading:Z,onClick:A}=F9({copyConfig:G,children:m}),[D,K]=u.useState(!1),[Q,ee]=u.useState(!1),[ie,le]=u.useState(!1),[de,ye]=u.useState(!1),[ve,we]=u.useState(!0),[be,Se]=tg(h,{expandable:!1,symbol:je=>je?M?.collapse:M?.expand}),[me,he]=yr(Se.defaultExpanded||!1,Se.expanded),pe=be&&(!me||Se.expandable==="collapsible"),{rows:Pe=1}=Se,Le=u.useMemo(()=>pe&&(Se.suffix!==void 0||Se.onEllipsis||Se.expandable||z||q),[pe,Se,z,q]);Lt(()=>{be&&!Le&&(K(CS("webkitLineClamp")),ee(CS("textOverflow")))},[Le,be]);const[Ee,Xe]=u.useState(pe),Oe=u.useMemo(()=>Le?!1:Pe===1?Q:D,[Le,Q,D]);Lt(()=>{Xe(Oe&&pe)},[Oe,pe]);const Re=pe&&(Ee?de:ie),De=pe&&Pe===1&&Ee,Te=pe&&Pe>1&&Ee,et=(je,Fe)=>{he(Fe.expanded),Se.onExpand?.(je,Fe)},[it,ft]=u.useState(0),[Ue,dt]=u.useState(!1),[Me,xe]=u.useState(!1),Ae=({offsetWidth:je})=>{ft(je)},Ye=je=>{le(je),ie!==je&&Se.onEllipsis?.(je)};u.useEffect(()=>{const je=w.current;if(be&&Ee&&je){const Fe=Y9(je);de!==Fe&&ye(Fe)}},[be,Ee,m,Te,ve,it]),u.useEffect(()=>{const je=w.current;if(typeof IntersectionObserver>"u"||!je||!Ee||!pe)return;const Fe=new IntersectionObserver(()=>{we(!!je.offsetParent)});return Fe.observe(je),()=>{Fe.disconnect()}},[Ee,pe]);const _e=U9(Se.tooltip,B.text,m),Ce=u.useMemo(()=>{if(!(!be||Ee))return[B.text,m,v,_e.title].find(Qh)},[be,Ee,v,_e.title,Re]);if(H)return u.createElement(P9,{value:B.text??(typeof m=="string"?m:""),onSave:F,onCancel:P,onEnd:B.onEnd,prefixCls:R,className:a,style:l,direction:T,component:b,maxLength:B.maxLength,autoSize:B.autoSize,enterIcon:B.enterIcon});const Ie=()=>{const{expandable:je,symbol:Fe}=Se;return je?u.createElement("button",{type:"button",key:"expand",className:`${R}-${me?"collapse":"expand"}`,onClick:ot=>et(ot,{expanded:!me}),"aria-label":me?M.collapse:M?.expand},typeof Fe=="function"?Fe(me):Fe):null},mt=()=>{if(!z)return;const{icon:je,tooltip:Fe,tabIndex:ot}=B,Pt=br(Fe)[0]||M?.edit,Wt=typeof Pt=="string"?Pt:"";return L.includes("icon")?u.createElement(dl,{key:"edit",title:Fe===!1?"":Pt},u.createElement("button",{type:"button",ref:N,className:`${R}-edit`,onClick:U,"aria-label":Wt,tabIndex:ot},je||u.createElement(w9,{role:"button"}))):null},ke=()=>q?u.createElement(K9,{key:"copy",...G,prefixCls:R,copied:Y,locale:M,onCopy:A,loading:Z,iconOnly:!vr(m)}):null,Ut=je=>{const Fe=je&&Ie(),ot=mt(),Pt=ke();return!Fe&&!ot&&!Pt?null:u.createElement("span",{key:"operations",className:`${R}-actions`,onMouseEnter:()=>dt(!0),onMouseLeave:()=>dt(!1)},Fe,ot,Pt)},bt=je=>[je&&!me&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},e7),Se.suffix,Ut(je)];return u.createElement(wo,{onResize:Ae,disabled:!pe},je=>u.createElement(Z9,{tooltipProps:_e,enableEllipsis:pe,isEllipsis:Re,open:Me&&!Ue},u.createElement(R$,{onMouseEnter:Fe=>{xe(!0),$?.(Fe)},onMouseLeave:Fe=>{xe(!1),x?.(Fe)},className:W({[`${R}-${c}`]:c,[`${R}-disabled`]:f,[`${R}-ellipsis`]:be,[`${R}-ellipsis-single-line`]:De,[`${R}-ellipsis-multiple-line`]:Te,[`${R}-link`]:b==="a"},a),prefixCls:o,style:{...l,WebkitLineClamp:Te?Pe:void 0},component:b,ref:Hr(je,w,t),direction:T,onClick:L.includes("text")?U:void 0,"aria-label":Ce?.toString(),title:v,..._},u.createElement(Q9,{enableMeasure:pe&&!Ee,text:m,rows:Pe,width:it,onEllipsis:Ye,expanded:me,miscDeps:[Y,me,Z,z,q,M].concat(sn(mC.map(Fe=>e[Fe])))},(Fe,ot)=>J9(e,u.createElement(u.Fragment,null,Fe.length>0&&ot&&!me&&Ce?u.createElement("span",{key:"show-content","aria-hidden":!0},Fe):Fe,bt(ot)))))))}),t7=u.forwardRef((e,t)=>{const{ellipsis:o,rel:a,children:l,navigate:c,...f}=e,m={...f,rel:a===void 0&&f.target==="_blank"?"noopener noreferrer":a};return u.createElement(ff,{...m,ref:t,ellipsis:!!o,component:"a"},l)}),n7=u.forwardRef((e,t)=>{const{children:o,...a}=e;return u.createElement(ff,{ref:t,...a,component:"div"},o)}),r7=u.forwardRef((e,t)=>{const{ellipsis:o,children:a,...l}=e,c=u.useMemo(()=>o&&typeof o=="object"?Lr(o,["expandable","rows"]):o,[o]);return u.createElement(ff,{ref:t,...l,ellipsis:c,component:"span"},a)}),o7=[1,2,3,4,5],a7=u.forwardRef((e,t)=>{const{level:o=1,children:a,...l}=e,c=o7.includes(o)?`h${o}`:"h1";return u.createElement(ff,{ref:t,...l,component:c},a)}),Sn=R$;Sn.Text=r7;Sn.Link=t7;Sn.Title=a7;Sn.Paragraph=n7;var i7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};function Gp(){return Gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Gp.apply(this,arguments)}const l7=(e,t)=>u.createElement(Dt,Gp({},e,{ref:t,icon:i7})),s7=u.forwardRef(l7);var c7={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 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"}}]},name:"dollar",theme:"outlined"};function Xp(){return Xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Xp.apply(this,arguments)}const u7=(e,t)=>u.createElement(Dt,Xp({},e,{ref:t,icon:c7})),f7=u.forwardRef(u7);var d7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};function Wp(){return Wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Wp.apply(this,arguments)}const m7=(e,t)=>u.createElement(Dt,Wp({},e,{ref:t,icon:d7})),gC=u.forwardRef(m7);var g7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 10-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z"}}]},name:"linkedin",theme:"outlined"};function Yp(){return Yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Yp.apply(this,arguments)}const p7=(e,t)=>u.createElement(Dt,Yp({},e,{ref:t,icon:g7})),h7=u.forwardRef(p7);var y7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"};function Kp(){return Kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Kp.apply(this,arguments)}const b7=(e,t)=>u.createElement(Dt,Kp({},e,{ref:t,icon:y7})),v7=u.forwardRef(b7);var S7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},kp.apply(this,arguments)}const C7=(e,t)=>u.createElement(Dt,kp({},e,{ref:t,icon:S7})),x7=u.forwardRef(C7);var E7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Qp.apply(this,arguments)}const $7=(e,t)=>u.createElement(Dt,Qp({},e,{ref:t,icon:E7})),w7=u.forwardRef($7);var T7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0075-94 336.64 336.64 0 01-108.2 41.2A170.1 170.1 0 00672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 00-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 01-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 01-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}}]},name:"twitter",theme:"outlined"};function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Zp.apply(this,arguments)}const M7=(e,t)=>u.createElement(Dt,Zp({},e,{ref:t,icon:T7})),pC=u.forwardRef(M7);async function Zh(e){const t=await fetch(e);if(!t.ok){let o=`Request failed with status ${t.status}`;try{const a=await t.json();typeof a.error=="string"&&a.error.length>0&&(o=a.error)}catch{}throw new Error(o)}return t.json()}function R7(){return Zh("/api/bootstrap")}function N7(){return Zh("/api/articles")}function z7(e){return Zh(`/api/articles/${encodeURIComponent(e)}`)}const hC=["article","blog-post","x-thread","x-post","linkedin-post","reddit-post","newsletter","landing-page-copy"],yC=["shared-brief","planning","sections","image-prompts","images","output","links"];function N$(e){return e.reduce((t,o)=>{const a=o.contentType||"article",l=t[a]??[];return l.push(o),l.sort((c,f)=>c.index-f.index),t[a]=l,t},{})}function z$(e){return[...e].sort((t,o)=>{const a=hC.indexOf(t),l=hC.indexOf(o),c=a===-1?Number.MAX_SAFE_INTEGER:a,f=l===-1?Number.MAX_SAFE_INTEGER:l;return c!==f?c-f:t.localeCompare(o)})}function O$(e){const t=Array.isArray(e?.llmCalls)?e.llmCalls:[],o=Array.isArray(e?.t2iCalls)?e.t2iCalls:[],a=t.map((c,f)=>({id:`llm-${f}`,source:"llm",stageId:String(c.stageId||"unknown"),operationId:String(c.operationId||""),status:String(c.status||""),requestType:String(c.requestType||""),provider:String(c.provider||""),modelId:String(c.modelId||""),durationMs:Number(c.durationMs||0),raw:c})),l=o.map((c,f)=>({id:`t2i-${f}`,source:"t2i",stageId:String(c.stageId||"images"),operationId:String(c.operationId||""),status:String(c.status||""),requestType:"t2i",provider:String(c.provider||""),modelId:String(c.modelId||""),durationMs:Number(c.durationMs||0),raw:c}));return a.concat(l).sort((c,f)=>{const m=new Date(bC(c.raw)).getTime(),h=new Date(bC(f.raw)).getTime();return m!==h?m-h:c.id.localeCompare(f.id)})}function O7(e){const t=e.reduce((o,a)=>{const l=o[a.stageId]??[];return l.push(a),o[a.stageId]=l,o},{});return Object.keys(t).sort((o,a)=>{const l=yC.indexOf(o),c=yC.indexOf(a),f=l===-1?Number.MAX_SAFE_INTEGER:l,m=c===-1?Number.MAX_SAFE_INTEGER:c;return f!==m?f-m:o.localeCompare(a)}).map(o=>({stageId:o,items:t[o]??[]}))}function A7(e){if(e.source==="t2i"){const f=e.raw;return{promptText:String(f.prompt||""),responseText:f.errorMessage?`Error: ${f.errorMessage}`:"Image request completed. Inspect Full JSON for the resolved input payload."}}const t=e.raw,o=vC(t.requestBody),a=vC(t.responseBody),l=Array.isArray(o?.messages)?o.messages.map(f=>`[${String(f.role||"unknown")}]
215
+ ${String(f.content||"")}`).join(`
216
+
217
+ ---
218
+
219
+ `):String(t.requestBody||""),c=typeof a?.choices?.[0]?.message?.content=="string"?a.choices[0].message.content:typeof a?.error?.message=="string"?`Error: ${a.error.message}`:String(t.responseBody||t.errorMessage||"");return{promptText:l,responseText:c}}function _7(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(new Date(e))}function B7(e){return String(e||"").toLowerCase().replace(/[^a-z0-9-]+/g,"-").replace(/^-+|-+$/g,"")}function H7(e){return e.source==="llm"?`${e.requestType||"text"} • ${e.status||"unknown"}`:`${e.provider||"replicate"} • ${e.status||"unknown"}`}function bC(e){return"startedAt"in e?e.startedAt:""}function vC(e){if(typeof e!="string"||e.length===0)return null;try{return JSON.parse(e)}catch{return null}}function L7(e){return{algorithm:e==="dark"?cC.darkAlgorithm:cC.defaultAlgorithm,cssVar:{key:"ideon-preview"},token:{colorPrimary:"#0e7490",colorInfo:"#0e7490",colorSuccess:"#2f855a",colorWarning:"#b7791f",colorError:"#c0564a",borderRadius:8,controlHeight:36,fontFamily:'"Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif',fontFamilyCode:'"SF Mono", Menlo, Consolas, monospace',colorBgBase:e==="dark"?"#0f1923":"#f8f4ef",colorTextBase:e==="dark"?"#e8eff4":"#1e2933"}}}const A$="./logo.svg",D7={article:ce.jsx(Pp,{}),"blog-post":ce.jsx(Pp,{}),"x-post":ce.jsx(pC,{}),"x-thread":ce.jsx(pC,{}),"linkedin-post":ce.jsx(h7,{}),"reddit-post":ce.jsx(gC,{}),newsletter:ce.jsx(v7,{}),"landing-page-copy":ce.jsx(gC,{})},_$="ideon-preview-theme";function B$(){try{const e=window.localStorage.getItem(_$);return e==="light"||e==="dark"?e:null}catch{return null}}function P7(){const e=B$();return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}function I7(e){const t=N$(e.outputs),a=z$(Object.keys(t))[0]??"",l=t[a]?.[0]?.id??"",c=O$(e.interactions);return{activeType:a,activeOutputId:l,selectedInteractionId:c[0]?.id??""}}function j7(){const t=!qO.useBreakpoint().lg,[o,a]=u.useState(P7),[l,c]=u.useState(null),[f,m]=u.useState([]),[h,p]=u.useState(!0),[y,b]=u.useState(null),[v,$]=u.useState(""),[x,E]=u.useState(null),[C,T]=u.useState(!1),[M,w]=u.useState(null),[N,R]=u.useState(""),[_,z]=u.useState(""),[B,H]=u.useState("content"),[I,L]=u.useState(""),[V,k]=u.useState("text"),[U,F]=u.useState(!1),[P,q]=u.useState(""),G=u.useMemo(()=>x?N$(x.outputs):{},[x]),Y=u.useMemo(()=>z$(Object.keys(G)),[G]),Z=u.useMemo(()=>G[N]??[],[N,G]),A=u.useMemo(()=>Z.find(me=>me.id===_)??Z[0]??null,[_,Z]),D=u.useMemo(()=>x?O$(x.interactions):[],[x]),K=u.useMemo(()=>D.find(me=>me.id===I)??D[0]??null,[D,I]),Q=u.useMemo(()=>O7(D),[D]),ee=u.useCallback(async()=>{p(!0),b(null);try{const[me,he]=await Promise.all([R7(),N7()]),pe=me.currentSlug||he[0]?.slug||"";c(me),m(he),$(pe)}catch(me){b(me instanceof Error?me.message:"Failed to load preview data.")}finally{p(!1)}},[]),ie=u.useCallback(async me=>{if(!me){E(null),w(null);return}T(!0),w(null);try{const he=await z7(me),pe=I7(he);E(he),R(pe.activeType),z(pe.activeOutputId),H("content"),k("text"),L(pe.selectedInteractionId)}catch(he){w(he instanceof Error?he.message:"Failed to load generation.")}finally{T(!1)}},[]);u.useEffect(()=>{document.documentElement.setAttribute("data-theme",o)},[o]),u.useEffect(()=>{try{window.localStorage.setItem(_$,o)}catch{}},[o]),u.useEffect(()=>{ee()},[ee]),u.useEffect(()=>{v&&ie(v)},[ie,v]),u.useEffect(()=>{document.title=x?.title?`${x.title} | Ideon Preview`:"Ideon Preview"},[x?.title]),u.useEffect(()=>{const me=window.matchMedia("(prefers-color-scheme: dark)"),he=pe=>{B$()||a(pe.matches?"dark":"light")};return me.addEventListener("change",he),()=>{me.removeEventListener("change",he)}},[]),u.useEffect(()=>{if(!P)return;const me=window.setTimeout(()=>{q("")},1500);return()=>{window.clearTimeout(me)}},[P]);const le=x?.sourcePath??l?.sourcePath??"Resolving preview source...",de=V7(x?.analyticsSummary?.totalDurationMs??null),ye=F7(x?.analyticsSummary?.totalCostUsd??null),ve=x?.analyticsSummary?.totalCostSource,we=me=>{R(me),H("content"),z(G[me]?.[0]?.id??"")},be=async me=>{await navigator.clipboard.writeText(me),q(me)},Se=ce.jsx(q7,{articles:f,listError:y,listLoading:h,selectedSlug:v,onRefresh:()=>{ee()},onSelectSlug:me=>{$(me),F(!1)}});return ce.jsx(ei,{theme:L7(o),children:ce.jsx($E,{children:ce.jsxs("div",{className:"preview-root",children:[ce.jsx("div",{className:"preview-backdrop"}),ce.jsxs(Jr,{className:"preview-layout",children:[t?null:ce.jsx(Jr.Sider,{width:340,className:"preview-sider",children:Se}),ce.jsxs(Jr,{className:"preview-main-layout",children:[ce.jsx(Jr.Header,{className:"preview-header",children:ce.jsxs(Ya,{align:"center",justify:"space-between",style:{height:"100%"},children:[t?ce.jsxs(Ya,{align:"center",gap:8,children:[ce.jsx("img",{src:A$,alt:"Ideon",className:"preview-brand-logo"}),ce.jsx(Sn.Text,{strong:!0,className:"preview-brand",children:"IDEON"}),ce.jsx(pr,{icon:ce.jsx(x7,{}),size:"small",onClick:()=>F(!0)})]}):ce.jsx("span",{}),ce.jsxs(al,{size:"small",children:[ce.jsx(pr,{icon:ce.jsx(w$,{}),onClick:()=>{ee()},title:"Refresh"}),ce.jsx(pr,{icon:ce.jsx(s7,{}),type:o==="light"?"primary":"default",onClick:()=>a("light"),title:"Light mode"}),ce.jsx(pr,{icon:ce.jsx(w7,{}),type:o==="dark"?"primary":"default",onClick:()=>a("dark"),title:"Dark mode"})]})]})}),ce.jsx(Jr.Content,{className:"preview-content",children:ce.jsxs("div",{className:"preview-grid",children:[ce.jsx(oa,{className:"preview-summary-card",variant:"borderless",size:"small",children:ce.jsxs(Ya,{justify:"space-between",gap:12,align:"center",wrap:!0,children:[ce.jsx(Sn.Text,{className:"preview-source-path",style:{margin:0},children:le}),ce.jsxs(al,{size:"small",wrap:!0,children:[ce.jsx(fa,{icon:ce.jsx(yA,{}),bordered:!1,className:"preview-pill",children:`Total time: ${de}`}),ce.jsx(fa,{icon:ce.jsx(f7,{}),bordered:!1,className:"preview-pill",children:`Total cost: ${ye}${ve?` (${ve})`:""}`})]})]})}),y?ce.jsxs(oa,{className:"preview-message-card preview-message-card--error",children:[ce.jsx(Sn.Title,{level:4,children:"Unable to load preview index"}),ce.jsx(Sn.Paragraph,{children:y})]}):null,!h&&f.length===0?ce.jsx(oa,{className:"preview-message-card",children:ce.jsx(Ur,{description:l?.emptyStateMessage??"No generated content found yet.",image:Ur.PRESENTED_IMAGE_SIMPLE})}):null,f.length>0?ce.jsxs(oa,{className:"preview-panel-card",variant:"borderless",children:[ce.jsxs(Ya,{justify:"space-between",gap:16,wrap:!0,align:"center",children:[ce.jsxs("div",{children:[ce.jsx(Sn.Text,{className:"preview-overline",children:"Active Generation"}),ce.jsx(Sn.Title,{level:3,className:"preview-generation-title",children:x?.title??l?.title??"Loading generation..."}),v?ce.jsx(fa,{bordered:!1,className:"preview-generation-tag",children:v}):null]}),ce.jsx(tC,{options:[{label:"Content",value:"content"},{label:"Logs",value:"logs"}],value:B,onChange:me=>H(me)})]}),ce.jsx(m$,{}),C?ce.jsx(ro,{active:!0,paragraph:{rows:8}}):M?ce.jsxs(oa,{className:"preview-message-card preview-message-card--error",children:[ce.jsx(Sn.Title,{level:4,children:"Unable to load generation"}),ce.jsx(Sn.Paragraph,{children:M})]}):x?ce.jsxs("div",{className:"preview-detail-stack",children:[Y.length>0?ce.jsx(Xh,{activeKey:N,onChange:me=>{we(me)},type:"card",className:"preview-type-tabs",items:Y.map(me=>{const pe=G[me]?.[0]?.contentTypeLabel??me;return{key:me,label:ce.jsxs("span",{className:"preview-type-tab-label",children:[D7[me]??ce.jsx(Pp,{}),pe]})}})}):null,B==="content"?ce.jsxs(ce.Fragment,{children:[Z.length>1?ce.jsx(tC,{size:"small",options:Z.map(me=>({label:`${me.contentTypeLabel} ${me.index}`,value:me.id})),value:_||Z[0]?.id||"",onChange:me=>z(me),style:{marginBottom:4}}):null,A?ce.jsx(U7,{copiedSlug:P,output:A,onCopySlug:me=>{be(me)}}):ce.jsx(Ur,{description:"No content outputs found for this generation."})]}):ce.jsx(G7,{interactionViewMode:V,selectedInteraction:K,selectedInteractionId:I,stageGroups:Q,onChangeInteractionMode:k,onSelectInteraction:L})]}):ce.jsx(Ur,{description:"No generation selected.",image:Ur.PRESENTED_IMAGE_SIMPLE})]}):null]})})]})]}),ce.jsx(v$,{open:U,onClose:()=>F(!1),title:"Generations",width:Math.min(window.innerWidth-24,420),children:Se})]})})})}function V7(e){if(e===null||!Number.isFinite(e)||e<0)return"--";const t=Math.round(e/1e3),o=Math.floor(t/3600),a=Math.floor(t%3600/60),l=t%60;return o>0?`${o}h ${a}m ${l}s`:a>0?`${a}m ${l}s`:`${l}s`}function F7(e){return e===null||!Number.isFinite(e)||e<0?"--":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(e)}function q7({articles:e,listLoading:t,listError:o,selectedSlug:a,onRefresh:l,onSelectSlug:c}){return ce.jsxs("div",{className:"preview-sidebar-shell",children:[ce.jsxs("div",{className:"preview-sidebar-hd",children:[ce.jsxs(Ya,{align:"center",gap:8,children:[ce.jsx("img",{src:A$,alt:"Ideon",className:"preview-brand-logo"}),ce.jsx(Sn.Text,{strong:!0,className:"preview-brand",children:"IDEON"})]}),ce.jsx(pr,{size:"small",icon:ce.jsx(w$,{}),onClick:l,title:"Refresh"})]}),ce.jsxs("div",{className:"preview-sidebar-body",children:[t?ce.jsx(ro,{active:!0,paragraph:{rows:6}}):null,o?ce.jsx(Sn.Text,{type:"danger",style:{fontSize:13},children:o}):null,!t&&!o&&e.length===0?ce.jsx(Ur,{description:"No generations yet",image:Ur.PRESENTED_IMAGE_SIMPLE}):null,ce.jsx("div",{className:"preview-generation-list",children:e.map(f=>{const m=f.slug===a;return ce.jsxs("button",{type:"button",className:m?"preview-generation-item is-active":"preview-generation-item",onClick:()=>c(f.slug),children:[f.coverImageUrl?ce.jsx("img",{className:"preview-generation-thumb",src:f.coverImageUrl,alt:"",loading:"lazy"}):ce.jsx("div",{className:"preview-generation-thumb preview-generation-thumb--fallback"}),ce.jsxs("div",{className:"preview-generation-copy",children:[ce.jsx("span",{className:"preview-generation-item-title",children:f.title}),ce.jsx("span",{className:"preview-generation-item-meta",children:_7(f.mtime)}),ce.jsx("span",{className:"preview-generation-item-snippet",children:f.previewSnippet})]})]},f.slug)})})]})]})}function U7({output:e,copiedSlug:t,onCopySlug:o}){const a=`preview-output-shell preview-output-shell--${B7(e.contentType)}`;return ce.jsxs("section",{className:a,children:[ce.jsxs("header",{className:"preview-output-header",children:[ce.jsxs("div",{children:[ce.jsx(Sn.Title,{level:4,children:e.title||e.contentTypeLabel}),ce.jsxs(al,{wrap:!0,children:[ce.jsx(fa,{bordered:!1,className:"preview-generation-tag",children:e.contentTypeLabel}),ce.jsx(fa,{bordered:!1,className:"preview-generation-tag",children:`Variant ${e.index}`})]})]}),ce.jsxs(Ya,{gap:8,wrap:!0,align:"center",children:[ce.jsx(fa,{bordered:!1,className:"preview-slug-pill",children:e.slug}),ce.jsx(pr,{onClick:()=>o(e.slug),children:t===e.slug?"Copied":"Copy slug"})]})]}),ce.jsx("div",{className:"preview-output-body preview-rendered-html",dangerouslySetInnerHTML:{__html:e.htmlBody}})]})}function G7({interactionViewMode:e,selectedInteraction:t,selectedInteractionId:o,stageGroups:a,onChangeInteractionMode:l,onSelectInteraction:c}){if(a.length===0||!t)return ce.jsx(Ur,{description:"No interactions captured for this generation.",image:Ur.PRESENTED_IMAGE_SIMPLE});const f=A7(t);return ce.jsxs("div",{className:"preview-logs-layout",children:[ce.jsx("section",{className:"preview-logs-list",children:a.map(m=>ce.jsxs("div",{className:"preview-stage-group",children:[ce.jsx(Sn.Text,{className:"preview-stage-title",children:m.stageId}),ce.jsx("div",{className:"preview-stage-items",children:m.items.map(h=>{const p=h.id===o;return ce.jsxs("button",{type:"button",className:p?"preview-stage-button is-active":"preview-stage-button",onClick:()=>c(h.id),children:[ce.jsx("span",{className:"preview-stage-button-title",children:h.operationId||h.id}),ce.jsx("span",{className:"preview-stage-button-meta",children:H7(h)})]},h.id)})})]},m.stageId))}),ce.jsxs(oa,{className:"preview-logs-detail",variant:"borderless",children:[ce.jsxs(Ya,{justify:"space-between",gap:16,wrap:!0,align:"center",children:[ce.jsxs("div",{children:[ce.jsx(Sn.Text,{className:"preview-overline",children:"Interaction Inspector"}),ce.jsx(Sn.Title,{level:4,children:t.operationId||t.id})]}),ce.jsxs(al,{wrap:!0,children:[ce.jsx(pr,{type:e==="text"?"primary":"default",onClick:()=>l("text"),children:"Prompt / Response"}),ce.jsx(pr,{type:e==="json"?"primary":"default",onClick:()=>l("json"),children:"Full JSON"})]})]}),ce.jsx(m$,{}),ce.jsxs("dl",{className:"preview-inspector-grid",children:[ce.jsx("dt",{children:"Stage"}),ce.jsx("dd",{children:t.stageId}),ce.jsx("dt",{children:"Source"}),ce.jsx("dd",{children:t.source}),ce.jsx("dt",{children:"Status"}),ce.jsx("dd",{children:t.status||"unknown"}),ce.jsx("dt",{children:"Model"}),ce.jsx("dd",{children:t.modelId||"unknown"}),ce.jsx("dt",{children:"Duration"}),ce.jsx("dd",{children:`${t.durationMs} ms`})]}),e==="json"?ce.jsx("pre",{className:"preview-inspector-pre",children:JSON.stringify(t.raw,null,2)}):ce.jsxs("div",{className:"preview-inspector-text-stack",children:[ce.jsxs("section",{children:[ce.jsx(Sn.Text,{className:"preview-overline",children:"Prompt / Request"}),ce.jsx("pre",{className:"preview-inspector-pre",children:f.promptText||"No prompt text found."})]}),ce.jsxs("section",{children:[ce.jsx(Sn.Text,{className:"preview-overline",children:"Response"}),ce.jsx("pre",{className:"preview-inspector-pre",children:f.responseText||"No response text found."})]})]})]})]})}const H$=document.getElementById("root");if(!H$)throw new Error("Missing preview root element.");xC.createRoot(H$).render(ce.jsx(j7,{}));