csvms 0.9.8 → 0.9.11

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,487 @@
1
+ var __=Object.defineProperty;var vS=e=>{throw TypeError(e)};var T_=(e,t,n)=>t in e?__(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ro=(e,t,n)=>T_(e,typeof t!="symbol"?t+"":t,n),sg=(e,t,n)=>t.has(e)||vS("Cannot "+n);var Je=(e,t,n)=>(sg(e,t,"read from private field"),n?n.call(e):t.get(e)),sa=(e,t,n)=>t.has(e)?vS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zo=(e,t,n,r)=>(sg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),cn=(e,t,n)=>(sg(e,t,"access private method"),n);var hS=(e,t,n,r)=>({set _(o){zo(e,t,o,n)},get _(){return Je(e,t,r)}});function vO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hO={exports:{}},Sv={},gO={exports:{}},Qt={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var vd=Symbol.for("react.element"),D_=Symbol.for("react.portal"),k_=Symbol.for("react.fragment"),j_=Symbol.for("react.strict_mode"),z_=Symbol.for("react.profiler"),L_=Symbol.for("react.provider"),F_=Symbol.for("react.context"),A_=Symbol.for("react.forward_ref"),B_=Symbol.for("react.suspense"),H_=Symbol.for("react.memo"),V_=Symbol.for("react.lazy"),gS=Symbol.iterator;function W_(e){return e===null||typeof e!="object"?null:(e=gS&&e[gS]||e["@@iterator"],typeof e=="function"?e:null)}var pO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yO=Object.assign,bO={};function ec(e,t,n){this.props=e,this.context=t,this.refs=bO,this.updater=n||pO}ec.prototype.isReactComponent={};ec.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ec.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function CO(){}CO.prototype=ec.prototype;function Tb(e,t,n){this.props=e,this.context=t,this.refs=bO,this.updater=n||pO}var Db=Tb.prototype=new CO;Db.constructor=Tb;yO(Db,ec.prototype);Db.isPureReactComponent=!0;var pS=Array.isArray,SO=Object.prototype.hasOwnProperty,kb={current:null},xO={key:!0,ref:!0,__self:!0,__source:!0};function wO(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)SO.call(t,r)&&!xO.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:vd,type:e,key:a,ref:i,props:o,_owner:kb.current}}function K_(e,t){return{$$typeof:vd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jb(e){return typeof e=="object"&&e!==null&&e.$$typeof===vd}function U_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yS=/\/+/g;function cg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?U_(""+e.key):t.toString(36)}function Bf(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case vd:case D_:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+cg(i,0):r,pS(o)?(n="",e!=null&&(n=e.replace(yS,"$&/")+"/"),Bf(o,t,n,"",function(u){return u})):o!=null&&(jb(o)&&(o=K_(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(yS,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",pS(e))for(var s=0;s<e.length;s++){a=e[s];var c=r+cg(a,s);i+=Bf(a,t,n,c,o)}else if(c=W_(e),typeof c=="function")for(e=c.call(e),s=0;!(a=e.next()).done;)a=a.value,c=r+cg(a,s++),i+=Bf(a,t,n,c,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function qd(e,t,n){if(e==null)return e;var r=[],o=0;return Bf(e,r,"","",function(a){return t.call(n,a,o++)}),r}function q_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Kr={current:null},Hf={transition:null},G_={ReactCurrentDispatcher:Kr,ReactCurrentBatchConfig:Hf,ReactCurrentOwner:kb};function $O(){throw Error("act(...) is not supported in production builds of React.")}Qt.Children={map:qd,forEach:function(e,t,n){qd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return qd(e,function(){t++}),t},toArray:function(e){return qd(e,function(t){return t})||[]},only:function(e){if(!jb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Qt.Component=ec;Qt.Fragment=k_;Qt.Profiler=z_;Qt.PureComponent=Tb;Qt.StrictMode=j_;Qt.Suspense=B_;Qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G_;Qt.act=$O;Qt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=yO({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=kb.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)SO.call(t,c)&&!xO.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:vd,type:e.type,key:o,ref:a,props:r,_owner:i}};Qt.createContext=function(e){return e={$$typeof:F_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:L_,_context:e},e.Consumer=e};Qt.createElement=wO;Qt.createFactory=function(e){var t=wO.bind(null,e);return t.type=e,t};Qt.createRef=function(){return{current:null}};Qt.forwardRef=function(e){return{$$typeof:A_,render:e}};Qt.isValidElement=jb;Qt.lazy=function(e){return{$$typeof:V_,_payload:{_status:-1,_result:e},_init:q_}};Qt.memo=function(e,t){return{$$typeof:H_,type:e,compare:t===void 0?null:t}};Qt.startTransition=function(e){var t=Hf.transition;Hf.transition={};try{e()}finally{Hf.transition=t}};Qt.unstable_act=$O;Qt.useCallback=function(e,t){return Kr.current.useCallback(e,t)};Qt.useContext=function(e){return Kr.current.useContext(e)};Qt.useDebugValue=function(){};Qt.useDeferredValue=function(e){return Kr.current.useDeferredValue(e)};Qt.useEffect=function(e,t){return Kr.current.useEffect(e,t)};Qt.useId=function(){return Kr.current.useId()};Qt.useImperativeHandle=function(e,t,n){return Kr.current.useImperativeHandle(e,t,n)};Qt.useInsertionEffect=function(e,t){return Kr.current.useInsertionEffect(e,t)};Qt.useLayoutEffect=function(e,t){return Kr.current.useLayoutEffect(e,t)};Qt.useMemo=function(e,t){return Kr.current.useMemo(e,t)};Qt.useReducer=function(e,t,n){return Kr.current.useReducer(e,t,n)};Qt.useRef=function(e){return Kr.current.useRef(e)};Qt.useState=function(e){return Kr.current.useState(e)};Qt.useSyncExternalStore=function(e,t,n){return Kr.current.useSyncExternalStore(e,t,n)};Qt.useTransition=function(){return Kr.current.useTransition()};Qt.version="18.3.1";gO.exports=Qt;var l=gO.exports;const le=ho(l),hd=vO({__proto__:null,default:le},[l]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Y_=l,X_=Symbol.for("react.element"),Q_=Symbol.for("react.fragment"),J_=Object.prototype.hasOwnProperty,Z_=Y_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,e8={key:!0,ref:!0,__self:!0,__source:!0};function EO(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)J_.call(t,r)&&!e8.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:X_,type:e,key:a,ref:i,props:o,_owner:Z_.current}}Sv.Fragment=Q_;Sv.jsx=EO;Sv.jsxs=EO;hO.exports=Sv;var ne=hO.exports,Zp={},OO={exports:{}},go={},IO={exports:{}},RO={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(T,z){var j=T.length;T.push(z);e:for(;0<j;){var L=j-1>>>1,F=T[L];if(0<o(F,z))T[L]=z,T[j]=F,j=L;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var z=T[0],j=T.pop();if(j!==z){T[0]=j;e:for(var L=0,F=T.length,A=F>>>1;L<A;){var H=2*(L+1)-1,U=T[H],X=H+1,ee=T[X];if(0>o(U,j))X<F&&0>o(ee,U)?(T[L]=ee,T[X]=j,L=X):(T[L]=U,T[H]=j,L=H);else if(X<F&&0>o(ee,j))T[L]=ee,T[X]=j,L=X;else break e}}return z}function o(T,z){var j=T.sortIndex-z.sortIndex;return j!==0?j:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,f=null,m=3,v=!1,h=!1,y=!1,p=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(T){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=T)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}function S(T){if(y=!1,b(T),!h)if(n(c)!==null)h=!0,M(w);else{var z=n(u);z!==null&&k(S,z.startTime-T)}}function w(T,z){h=!1,y&&(y=!1,g(E),E=-1),v=!0;var j=m;try{for(b(z),f=n(c);f!==null&&(!(f.expirationTime>z)||T&&!P());){var L=f.callback;if(typeof L=="function"){f.callback=null,m=f.priorityLevel;var F=L(f.expirationTime<=z);z=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(c)&&r(c),b(z)}else r(c);f=n(c)}if(f!==null)var A=!0;else{var H=n(u);H!==null&&k(S,H.startTime-z),A=!1}return A}finally{f=null,m=j,v=!1}}var $=!1,x=null,E=-1,O=5,I=-1;function P(){return!(e.unstable_now()-I<O)}function _(){if(x!==null){var T=e.unstable_now();I=T;var z=!0;try{z=x(!0,T)}finally{z?D():($=!1,x=null)}}else $=!1}var D;if(typeof C=="function")D=function(){C(_)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,N=R.port2;R.port1.onmessage=_,D=function(){N.postMessage(null)}}else D=function(){p(_,0)};function M(T){x=T,$||($=!0,D())}function k(T,z){E=p(function(){T(e.unstable_now())},z)}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(T){T.callback=null},e.unstable_continueExecution=function(){h||v||(h=!0,M(w))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var j=m;m=z;try{return T()}finally{m=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,z){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var j=m;m=T;try{return z()}finally{m=j}},e.unstable_scheduleCallback=function(T,z,j){var L=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?L+j:L):j=L,T){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=j+F,T={id:d++,callback:z,priorityLevel:T,startTime:j,expirationTime:F,sortIndex:-1},j>L?(T.sortIndex=j,t(u,T),n(c)===null&&T===n(u)&&(y?(g(E),E=-1):y=!0,k(S,j-L))):(T.sortIndex=F,t(c,T),h||v||(h=!0,M(w))),T},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(T){var z=m;return function(){var j=m;m=z;try{return T.apply(this,arguments)}finally{m=j}}}})(RO);IO.exports=RO;var t8=IO.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var n8=l,vo=t8;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var PO=new Set,Ru={};function $l(e,t){ks(e,t),ks(e+"Capture",t)}function ks(e,t){for(Ru[e]=t,e=0;e<t.length;e++)PO.add(t[e])}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e0=Object.prototype.hasOwnProperty,r8=/^[: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]*$/,bS={},CS={};function o8(e){return e0.call(CS,e)?!0:e0.call(bS,e)?!1:r8.test(e)?CS[e]=!0:(bS[e]=!0,!1)}function a8(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function i8(e,t,n,r){if(t===null||typeof t>"u"||a8(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ur(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var wr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wr[e]=new Ur(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wr[t]=new Ur(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wr[e]=new Ur(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wr[e]=new Ur(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){wr[e]=new Ur(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wr[e]=new Ur(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wr[e]=new Ur(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wr[e]=new Ur(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wr[e]=new Ur(e,5,!1,e.toLowerCase(),null,!1,!1)});var zb=/[\-:]([a-z])/g;function Lb(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zb,Lb);wr[t]=new Ur(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zb,Lb);wr[t]=new Ur(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zb,Lb);wr[t]=new Ur(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!1,!1)});wr.xlinkHref=new Ur("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fb(e,t,n,r){var o=wr.hasOwnProperty(t)?wr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(i8(t,n,o,r)&&(n=null),r||o===null?o8(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Va=n8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gd=Symbol.for("react.element"),as=Symbol.for("react.portal"),is=Symbol.for("react.fragment"),Ab=Symbol.for("react.strict_mode"),t0=Symbol.for("react.profiler"),MO=Symbol.for("react.provider"),NO=Symbol.for("react.context"),Bb=Symbol.for("react.forward_ref"),n0=Symbol.for("react.suspense"),r0=Symbol.for("react.suspense_list"),Hb=Symbol.for("react.memo"),ti=Symbol.for("react.lazy"),_O=Symbol.for("react.offscreen"),SS=Symbol.iterator;function Pc(e){return e===null||typeof e!="object"?null:(e=SS&&e[SS]||e["@@iterator"],typeof e=="function"?e:null)}var Tn=Object.assign,ug;function Zc(e){if(ug===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ug=t&&t[1]||""}return`
34
+ `+ug+e}var dg=!1;function fg(e,t){if(!e||dg)return"";dg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
+ `),a=r.stack.split(`
36
+ `),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==a[s]){var c=`
37
+ `+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{dg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zc(e):""}function l8(e){switch(e.tag){case 5:return Zc(e.type);case 16:return Zc("Lazy");case 13:return Zc("Suspense");case 19:return Zc("SuspenseList");case 0:case 2:case 15:return e=fg(e.type,!1),e;case 11:return e=fg(e.type.render,!1),e;case 1:return e=fg(e.type,!0),e;default:return""}}function o0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case is:return"Fragment";case as:return"Portal";case t0:return"Profiler";case Ab:return"StrictMode";case n0:return"Suspense";case r0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NO:return(e.displayName||"Context")+".Consumer";case MO:return(e._context.displayName||"Context")+".Provider";case Bb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hb:return t=e.displayName||null,t!==null?t:o0(e.type)||"Memo";case ti:t=e._payload,e=e._init;try{return o0(e(t))}catch{}}return null}function s8(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return o0(t);case 8:return t===Ab?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c8(e){var t=TO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yd(e){e._valueTracker||(e._valueTracker=c8(e))}function DO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=TO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ym(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function a0(e,t){var n=t.checked;return Tn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xS(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kO(e,t){t=t.checked,t!=null&&Fb(e,"checked",t,!1)}function i0(e,t){kO(e,t);var n=xi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?l0(e,t.type,n):t.hasOwnProperty("defaultValue")&&l0(e,t.type,xi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wS(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function l0(e,t,n){(t!=="number"||ym(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eu=Array.isArray;function ws(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+xi(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function s0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(at(91));return Tn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $S(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(at(92));if(eu(n)){if(1<n.length)throw Error(at(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:xi(n)}}function jO(e,t){var n=xi(t.value),r=xi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ES(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function c0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xd,LO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Xd=Xd||document.createElement("div"),Xd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},u8=["Webkit","ms","Moz","O"];Object.keys(uu).forEach(function(e){u8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uu[t]=uu[e]})});function FO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uu.hasOwnProperty(e)&&uu[e]?(""+t).trim():t+"px"}function AO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=FO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var d8=Tn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function u0(e,t){if(t){if(d8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function d0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 f0=null;function Vb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var m0=null,$s=null,Es=null;function OS(e){if(e=yd(e)){if(typeof m0!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Ov(t),m0(e.stateNode,e.type,t))}}function BO(e){$s?Es?Es.push(e):Es=[e]:$s=e}function HO(){if($s){var e=$s,t=Es;if(Es=$s=null,OS(e),t)for(e=0;e<t.length;e++)OS(t[e])}}function VO(e,t){return e(t)}function WO(){}var mg=!1;function KO(e,t,n){if(mg)return e(t,n);mg=!0;try{return VO(e,t,n)}finally{mg=!1,($s!==null||Es!==null)&&(WO(),HO())}}function Mu(e,t){var n=e.stateNode;if(n===null)return null;var r=Ov(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(at(231,t,typeof n));return n}var v0=!1;if(za)try{var Mc={};Object.defineProperty(Mc,"passive",{get:function(){v0=!0}}),window.addEventListener("test",Mc,Mc),window.removeEventListener("test",Mc,Mc)}catch{v0=!1}function f8(e,t,n,r,o,a,i,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var du=!1,bm=null,Cm=!1,h0=null,m8={onError:function(e){du=!0,bm=e}};function v8(e,t,n,r,o,a,i,s,c){du=!1,bm=null,f8.apply(m8,arguments)}function h8(e,t,n,r,o,a,i,s,c){if(v8.apply(this,arguments),du){if(du){var u=bm;du=!1,bm=null}else throw Error(at(198));Cm||(Cm=!0,h0=u)}}function El(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function UO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function IS(e){if(El(e)!==e)throw Error(at(188))}function g8(e){var t=e.alternate;if(!t){if(t=El(e),t===null)throw Error(at(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return IS(o),e;if(a===r)return IS(o),t;a=a.sibling}throw Error(at(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=a;break}if(s===r){i=!0,r=o,n=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===n){i=!0,n=a,r=o;break}if(s===r){i=!0,r=a,n=o;break}s=s.sibling}if(!i)throw Error(at(189))}}if(n.alternate!==r)throw Error(at(190))}if(n.tag!==3)throw Error(at(188));return n.stateNode.current===n?e:t}function qO(e){return e=g8(e),e!==null?GO(e):null}function GO(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=GO(e);if(t!==null)return t;e=e.sibling}return null}var YO=vo.unstable_scheduleCallback,RS=vo.unstable_cancelCallback,p8=vo.unstable_shouldYield,y8=vo.unstable_requestPaint,Kn=vo.unstable_now,b8=vo.unstable_getCurrentPriorityLevel,Wb=vo.unstable_ImmediatePriority,XO=vo.unstable_UserBlockingPriority,Sm=vo.unstable_NormalPriority,C8=vo.unstable_LowPriority,QO=vo.unstable_IdlePriority,xv=null,ga=null;function S8(e){if(ga&&typeof ga.onCommitFiberRoot=="function")try{ga.onCommitFiberRoot(xv,e,void 0,(e.current.flags&128)===128)}catch{}}var Uo=Math.clz32?Math.clz32:$8,x8=Math.log,w8=Math.LN2;function $8(e){return e>>>=0,e===0?32:31-(x8(e)/w8|0)|0}var Qd=64,Jd=4194304;function tu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=tu(s):(a&=i,a!==0&&(r=tu(a)))}else i=n&~o,i!==0?r=tu(i):a!==0&&(r=tu(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Uo(t),o=1<<n,r|=e[n],t&=~o;return r}function E8(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function O8(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Uo(a),s=1<<i,c=o[i];c===-1?(!(s&n)||s&r)&&(o[i]=E8(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function g0(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function JO(){var e=Qd;return Qd<<=1,!(Qd&4194240)&&(Qd=64),e}function vg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Uo(t),e[t]=n}function I8(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Uo(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function Kb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Uo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vn=0;function ZO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var e4,Ub,t4,n4,r4,p0=!1,Zd=[],mi=null,vi=null,hi=null,Nu=new Map,_u=new Map,oi=[],R8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function PS(e,t){switch(e){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":vi=null;break;case"mouseover":case"mouseout":hi=null;break;case"pointerover":case"pointerout":Nu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_u.delete(t.pointerId)}}function Nc(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=yd(t),t!==null&&Ub(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function P8(e,t,n,r,o){switch(t){case"focusin":return mi=Nc(mi,e,t,n,r,o),!0;case"dragenter":return vi=Nc(vi,e,t,n,r,o),!0;case"mouseover":return hi=Nc(hi,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Nu.set(a,Nc(Nu.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,_u.set(a,Nc(_u.get(a)||null,e,t,n,r,o)),!0}return!1}function o4(e){var t=Qi(e.target);if(t!==null){var n=El(t);if(n!==null){if(t=n.tag,t===13){if(t=UO(n),t!==null){e.blockedOn=t,r4(e.priority,function(){t4(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=y0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);f0=r,n.target.dispatchEvent(r),f0=null}else return t=yd(n),t!==null&&Ub(t),e.blockedOn=n,!1;t.shift()}return!0}function MS(e,t,n){Vf(e)&&n.delete(t)}function M8(){p0=!1,mi!==null&&Vf(mi)&&(mi=null),vi!==null&&Vf(vi)&&(vi=null),hi!==null&&Vf(hi)&&(hi=null),Nu.forEach(MS),_u.forEach(MS)}function _c(e,t){e.blockedOn===t&&(e.blockedOn=null,p0||(p0=!0,vo.unstable_scheduleCallback(vo.unstable_NormalPriority,M8)))}function Tu(e){function t(o){return _c(o,e)}if(0<Zd.length){_c(Zd[0],e);for(var n=1;n<Zd.length;n++){var r=Zd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mi!==null&&_c(mi,e),vi!==null&&_c(vi,e),hi!==null&&_c(hi,e),Nu.forEach(t),_u.forEach(t),n=0;n<oi.length;n++)r=oi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<oi.length&&(n=oi[0],n.blockedOn===null);)o4(n),n.blockedOn===null&&oi.shift()}var Os=Va.ReactCurrentBatchConfig,wm=!0;function N8(e,t,n,r){var o=vn,a=Os.transition;Os.transition=null;try{vn=1,qb(e,t,n,r)}finally{vn=o,Os.transition=a}}function _8(e,t,n,r){var o=vn,a=Os.transition;Os.transition=null;try{vn=4,qb(e,t,n,r)}finally{vn=o,Os.transition=a}}function qb(e,t,n,r){if(wm){var o=y0(e,t,n,r);if(o===null)$g(e,t,r,$m,n),PS(e,r);else if(P8(o,e,t,n,r))r.stopPropagation();else if(PS(e,r),t&4&&-1<R8.indexOf(e)){for(;o!==null;){var a=yd(o);if(a!==null&&e4(a),a=y0(e,t,n,r),a===null&&$g(e,t,r,$m,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else $g(e,t,r,null,n)}}var $m=null;function y0(e,t,n,r){if($m=null,e=Vb(r),e=Qi(e),e!==null)if(t=El(e),t===null)e=null;else if(n=t.tag,n===13){if(e=UO(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $m=e,null}function a4(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(b8()){case Wb:return 1;case XO:return 4;case Sm:case C8:return 16;case QO:return 536870912;default:return 16}default:return 16}}var li=null,Gb=null,Wf=null;function i4(){if(Wf)return Wf;var e,t=Gb,n=t.length,r,o="value"in li?li.value:li.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return Wf=o.slice(e,1<r?1-r:void 0)}function Kf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ef(){return!0}function NS(){return!1}function po(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?ef:NS,this.isPropagationStopped=NS,this}return Tn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ef)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ef)},persist:function(){},isPersistent:ef}),t}var tc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yb=po(tc),pd=Tn({},tc,{view:0,detail:0}),T8=po(pd),hg,gg,Tc,wv=Tn({},pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xb,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tc&&(Tc&&e.type==="mousemove"?(hg=e.screenX-Tc.screenX,gg=e.screenY-Tc.screenY):gg=hg=0,Tc=e),hg)},movementY:function(e){return"movementY"in e?e.movementY:gg}}),_S=po(wv),D8=Tn({},wv,{dataTransfer:0}),k8=po(D8),j8=Tn({},pd,{relatedTarget:0}),pg=po(j8),z8=Tn({},tc,{animationName:0,elapsedTime:0,pseudoElement:0}),L8=po(z8),F8=Tn({},tc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A8=po(F8),B8=Tn({},tc,{data:0}),TS=po(B8),H8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V8={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"},W8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W8[e])?!!t[e]:!1}function Xb(){return K8}var U8=Tn({},pd,{key:function(e){if(e.key){var t=H8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xb,charCode:function(e){return e.type==="keypress"?Kf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q8=po(U8),G8=Tn({},wv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),DS=po(G8),Y8=Tn({},pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xb}),X8=po(Y8),Q8=Tn({},tc,{propertyName:0,elapsedTime:0,pseudoElement:0}),J8=po(Q8),Z8=Tn({},wv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eT=po(Z8),tT=[9,13,27,32],Qb=za&&"CompositionEvent"in window,fu=null;za&&"documentMode"in document&&(fu=document.documentMode);var nT=za&&"TextEvent"in window&&!fu,l4=za&&(!Qb||fu&&8<fu&&11>=fu),kS=" ",jS=!1;function s4(e,t){switch(e){case"keyup":return tT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ls=!1;function rT(e,t){switch(e){case"compositionend":return c4(t);case"keypress":return t.which!==32?null:(jS=!0,kS);case"textInput":return e=t.data,e===kS&&jS?null:e;default:return null}}function oT(e,t){if(ls)return e==="compositionend"||!Qb&&s4(e,t)?(e=i4(),Wf=Gb=li=null,ls=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return l4&&t.locale!=="ko"?null:t.data;default:return null}}var aT={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 zS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aT[e.type]:t==="textarea"}function u4(e,t,n,r){BO(r),t=Em(t,"onChange"),0<t.length&&(n=new Yb("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mu=null,Du=null;function iT(e){S4(e,0)}function $v(e){var t=us(e);if(DO(t))return e}function lT(e,t){if(e==="change")return t}var d4=!1;if(za){var yg;if(za){var bg="oninput"in document;if(!bg){var LS=document.createElement("div");LS.setAttribute("oninput","return;"),bg=typeof LS.oninput=="function"}yg=bg}else yg=!1;d4=yg&&(!document.documentMode||9<document.documentMode)}function FS(){mu&&(mu.detachEvent("onpropertychange",f4),Du=mu=null)}function f4(e){if(e.propertyName==="value"&&$v(Du)){var t=[];u4(t,Du,e,Vb(e)),KO(iT,t)}}function sT(e,t,n){e==="focusin"?(FS(),mu=t,Du=n,mu.attachEvent("onpropertychange",f4)):e==="focusout"&&FS()}function cT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $v(Du)}function uT(e,t){if(e==="click")return $v(t)}function dT(e,t){if(e==="input"||e==="change")return $v(t)}function fT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qo=typeof Object.is=="function"?Object.is:fT;function ku(e,t){if(Qo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!e0.call(t,o)||!Qo(e[o],t[o]))return!1}return!0}function AS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function BS(e,t){var n=AS(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=AS(n)}}function m4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?m4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function v4(){for(var e=window,t=ym();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ym(e.document)}return t}function Jb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mT(e){var t=v4(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&m4(n.ownerDocument.documentElement,n)){if(r!==null&&Jb(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=BS(n,a);var i=BS(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vT=za&&"documentMode"in document&&11>=document.documentMode,ss=null,b0=null,vu=null,C0=!1;function HS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;C0||ss==null||ss!==ym(r)||(r=ss,"selectionStart"in r&&Jb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vu&&ku(vu,r)||(vu=r,r=Em(b0,"onSelect"),0<r.length&&(t=new Yb("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ss)))}function tf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cs={animationend:tf("Animation","AnimationEnd"),animationiteration:tf("Animation","AnimationIteration"),animationstart:tf("Animation","AnimationStart"),transitionend:tf("Transition","TransitionEnd")},Cg={},h4={};za&&(h4=document.createElement("div").style,"AnimationEvent"in window||(delete cs.animationend.animation,delete cs.animationiteration.animation,delete cs.animationstart.animation),"TransitionEvent"in window||delete cs.transitionend.transition);function Ev(e){if(Cg[e])return Cg[e];if(!cs[e])return e;var t=cs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in h4)return Cg[e]=t[n];return e}var g4=Ev("animationend"),p4=Ev("animationiteration"),y4=Ev("animationstart"),b4=Ev("transitionend"),C4=new Map,VS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mi(e,t){C4.set(e,t),$l(t,[e])}for(var Sg=0;Sg<VS.length;Sg++){var xg=VS[Sg],hT=xg.toLowerCase(),gT=xg[0].toUpperCase()+xg.slice(1);Mi(hT,"on"+gT)}Mi(g4,"onAnimationEnd");Mi(p4,"onAnimationIteration");Mi(y4,"onAnimationStart");Mi("dblclick","onDoubleClick");Mi("focusin","onFocus");Mi("focusout","onBlur");Mi(b4,"onTransitionEnd");ks("onMouseEnter",["mouseout","mouseover"]);ks("onMouseLeave",["mouseout","mouseover"]);ks("onPointerEnter",["pointerout","pointerover"]);ks("onPointerLeave",["pointerout","pointerover"]);$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$l("onBeforeInput",["compositionend","keypress","textInput","paste"]);$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nu="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(" "),pT=new Set("cancel close invalid load scroll toggle".split(" ").concat(nu));function WS(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,h8(r,t,void 0,e),e.currentTarget=null}function S4(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==a&&o.isPropagationStopped())break e;WS(o,s,u),a=c}else for(i=0;i<r.length;i++){if(s=r[i],c=s.instance,u=s.currentTarget,s=s.listener,c!==a&&o.isPropagationStopped())break e;WS(o,s,u),a=c}}}if(Cm)throw e=h0,Cm=!1,h0=null,e}function xn(e,t){var n=t[E0];n===void 0&&(n=t[E0]=new Set);var r=e+"__bubble";n.has(r)||(x4(t,e,2,!1),n.add(r))}function wg(e,t,n){var r=0;t&&(r|=4),x4(n,e,r,t)}var nf="_reactListening"+Math.random().toString(36).slice(2);function ju(e){if(!e[nf]){e[nf]=!0,PO.forEach(function(n){n!=="selectionchange"&&(pT.has(n)||wg(n,!1,e),wg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nf]||(t[nf]=!0,wg("selectionchange",!1,t))}}function x4(e,t,n,r){switch(a4(t)){case 1:var o=N8;break;case 4:o=_8;break;default:o=qb}n=o.bind(null,t,n,e),o=void 0,!v0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function $g(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;s!==null;){if(i=Qi(s),i===null)return;if(c=i.tag,c===5||c===6){r=a=i;continue e}s=s.parentNode}}r=r.return}KO(function(){var u=a,d=Vb(n),f=[];e:{var m=C4.get(e);if(m!==void 0){var v=Yb,h=e;switch(e){case"keypress":if(Kf(n)===0)break e;case"keydown":case"keyup":v=q8;break;case"focusin":h="focus",v=pg;break;case"focusout":h="blur",v=pg;break;case"beforeblur":case"afterblur":v=pg;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=_S;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=k8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=X8;break;case g4:case p4:case y4:v=L8;break;case b4:v=J8;break;case"scroll":v=T8;break;case"wheel":v=eT;break;case"copy":case"cut":case"paste":v=A8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=DS}var y=(t&4)!==0,p=!y&&e==="scroll",g=y?m!==null?m+"Capture":null:m;y=[];for(var C=u,b;C!==null;){b=C;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,g!==null&&(S=Mu(C,g),S!=null&&y.push(zu(C,S,b)))),p)break;C=C.return}0<y.length&&(m=new v(m,h,null,n,d),f.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==f0&&(h=n.relatedTarget||n.fromElement)&&(Qi(h)||h[La]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(h=n.relatedTarget||n.toElement,v=u,h=h?Qi(h):null,h!==null&&(p=El(h),h!==p||h.tag!==5&&h.tag!==6)&&(h=null)):(v=null,h=u),v!==h)){if(y=_S,S="onMouseLeave",g="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(y=DS,S="onPointerLeave",g="onPointerEnter",C="pointer"),p=v==null?m:us(v),b=h==null?m:us(h),m=new y(S,C+"leave",v,n,d),m.target=p,m.relatedTarget=b,S=null,Qi(d)===u&&(y=new y(g,C+"enter",h,n,d),y.target=b,y.relatedTarget=p,S=y),p=S,v&&h)t:{for(y=v,g=h,C=0,b=y;b;b=Bl(b))C++;for(b=0,S=g;S;S=Bl(S))b++;for(;0<C-b;)y=Bl(y),C--;for(;0<b-C;)g=Bl(g),b--;for(;C--;){if(y===g||g!==null&&y===g.alternate)break t;y=Bl(y),g=Bl(g)}y=null}else y=null;v!==null&&KS(f,m,v,y,!1),h!==null&&p!==null&&KS(f,p,h,y,!0)}}e:{if(m=u?us(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var w=lT;else if(zS(m))if(d4)w=dT;else{w=cT;var $=sT}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(w=uT);if(w&&(w=w(e,u))){u4(f,w,n,d);break e}$&&$(e,m,u),e==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&l0(m,"number",m.value)}switch($=u?us(u):window,e){case"focusin":(zS($)||$.contentEditable==="true")&&(ss=$,b0=u,vu=null);break;case"focusout":vu=b0=ss=null;break;case"mousedown":C0=!0;break;case"contextmenu":case"mouseup":case"dragend":C0=!1,HS(f,n,d);break;case"selectionchange":if(vT)break;case"keydown":case"keyup":HS(f,n,d)}var x;if(Qb)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ls?s4(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(l4&&n.locale!=="ko"&&(ls||E!=="onCompositionStart"?E==="onCompositionEnd"&&ls&&(x=i4()):(li=d,Gb="value"in li?li.value:li.textContent,ls=!0)),$=Em(u,E),0<$.length&&(E=new TS(E,e,null,n,d),f.push({event:E,listeners:$}),x?E.data=x:(x=c4(n),x!==null&&(E.data=x)))),(x=nT?rT(e,n):oT(e,n))&&(u=Em(u,"onBeforeInput"),0<u.length&&(d=new TS("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=x))}S4(f,t)})}function zu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Em(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Mu(e,n),a!=null&&r.unshift(zu(e,a,o)),a=Mu(e,t),a!=null&&r.push(zu(e,a,o))),e=e.return}return r}function Bl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function KS(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=Mu(n,a),c!=null&&i.unshift(zu(n,c,s))):o||(c=Mu(n,a),c!=null&&i.push(zu(n,c,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var yT=/\r\n?/g,bT=/\u0000|\uFFFD/g;function US(e){return(typeof e=="string"?e:""+e).replace(yT,`
38
+ `).replace(bT,"")}function rf(e,t,n){if(t=US(t),US(e)!==t&&n)throw Error(at(425))}function Om(){}var S0=null,x0=null;function w0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $0=typeof setTimeout=="function"?setTimeout:void 0,CT=typeof clearTimeout=="function"?clearTimeout:void 0,qS=typeof Promise=="function"?Promise:void 0,ST=typeof queueMicrotask=="function"?queueMicrotask:typeof qS<"u"?function(e){return qS.resolve(null).then(e).catch(xT)}:$0;function xT(e){setTimeout(function(){throw e})}function Eg(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Tu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Tu(t)}function gi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function GS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var nc=Math.random().toString(36).slice(2),ha="__reactFiber$"+nc,Lu="__reactProps$"+nc,La="__reactContainer$"+nc,E0="__reactEvents$"+nc,wT="__reactListeners$"+nc,$T="__reactHandles$"+nc;function Qi(e){var t=e[ha];if(t)return t;for(var n=e.parentNode;n;){if(t=n[La]||n[ha]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=GS(e);e!==null;){if(n=e[ha])return n;e=GS(e)}return t}e=n,n=e.parentNode}return null}function yd(e){return e=e[ha]||e[La],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function us(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(at(33))}function Ov(e){return e[Lu]||null}var O0=[],ds=-1;function Ni(e){return{current:e}}function wn(e){0>ds||(e.current=O0[ds],O0[ds]=null,ds--)}function Cn(e,t){ds++,O0[ds]=e.current,e.current=t}var wi={},jr=Ni(wi),eo=Ni(!1),dl=wi;function js(e,t){var n=e.type.contextTypes;if(!n)return wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function to(e){return e=e.childContextTypes,e!=null}function Im(){wn(eo),wn(jr)}function YS(e,t,n){if(jr.current!==wi)throw Error(at(168));Cn(jr,t),Cn(eo,n)}function w4(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(at(108,s8(e)||"Unknown",o));return Tn({},n,r)}function Rm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wi,dl=jr.current,Cn(jr,e),Cn(eo,eo.current),!0}function XS(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=w4(e,t,dl),r.__reactInternalMemoizedMergedChildContext=e,wn(eo),wn(jr),Cn(jr,e)):wn(eo),Cn(eo,n)}var Na=null,Iv=!1,Og=!1;function $4(e){Na===null?Na=[e]:Na.push(e)}function ET(e){Iv=!0,$4(e)}function _i(){if(!Og&&Na!==null){Og=!0;var e=0,t=vn;try{var n=Na;for(vn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Na=null,Iv=!1}catch(o){throw Na!==null&&(Na=Na.slice(e+1)),YO(Wb,_i),o}finally{vn=t,Og=!1}}return null}var fs=[],ms=0,Pm=null,Mm=0,Eo=[],Oo=0,fl=null,_a=1,Ta="";function Hi(e,t){fs[ms++]=Mm,fs[ms++]=Pm,Pm=e,Mm=t}function E4(e,t,n){Eo[Oo++]=_a,Eo[Oo++]=Ta,Eo[Oo++]=fl,fl=e;var r=_a;e=Ta;var o=32-Uo(r)-1;r&=~(1<<o),n+=1;var a=32-Uo(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,_a=1<<32-Uo(t)+o|n<<o|r,Ta=a+e}else _a=1<<a|n<<o|r,Ta=e}function Zb(e){e.return!==null&&(Hi(e,1),E4(e,1,0))}function e1(e){for(;e===Pm;)Pm=fs[--ms],fs[ms]=null,Mm=fs[--ms],fs[ms]=null;for(;e===fl;)fl=Eo[--Oo],Eo[Oo]=null,Ta=Eo[--Oo],Eo[Oo]=null,_a=Eo[--Oo],Eo[Oo]=null}var mo=null,uo=null,Rn=!1,Ko=null;function O4(e,t){var n=Po(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function QS(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mo=e,uo=gi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mo=e,uo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fl!==null?{id:_a,overflow:Ta}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Po(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mo=e,uo=null,!0):!1;default:return!1}}function I0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function R0(e){if(Rn){var t=uo;if(t){var n=t;if(!QS(e,t)){if(I0(e))throw Error(at(418));t=gi(n.nextSibling);var r=mo;t&&QS(e,t)?O4(r,n):(e.flags=e.flags&-4097|2,Rn=!1,mo=e)}}else{if(I0(e))throw Error(at(418));e.flags=e.flags&-4097|2,Rn=!1,mo=e}}}function JS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mo=e}function of(e){if(e!==mo)return!1;if(!Rn)return JS(e),Rn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!w0(e.type,e.memoizedProps)),t&&(t=uo)){if(I0(e))throw I4(),Error(at(418));for(;t;)O4(e,t),t=gi(t.nextSibling)}if(JS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(at(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){uo=gi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}uo=null}}else uo=mo?gi(e.stateNode.nextSibling):null;return!0}function I4(){for(var e=uo;e;)e=gi(e.nextSibling)}function zs(){uo=mo=null,Rn=!1}function t1(e){Ko===null?Ko=[e]:Ko.push(e)}var OT=Va.ReactCurrentBatchConfig;function Dc(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(at(309));var r=n.stateNode}if(!r)throw Error(at(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var s=o.refs;i===null?delete s[a]:s[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(at(284));if(!n._owner)throw Error(at(290,e))}return e}function af(e,t){throw e=Object.prototype.toString.call(t),Error(at(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ZS(e){var t=e._init;return t(e._payload)}function R4(e){function t(g,C){if(e){var b=g.deletions;b===null?(g.deletions=[C],g.flags|=16):b.push(C)}}function n(g,C){if(!e)return null;for(;C!==null;)t(g,C),C=C.sibling;return null}function r(g,C){for(g=new Map;C!==null;)C.key!==null?g.set(C.key,C):g.set(C.index,C),C=C.sibling;return g}function o(g,C){return g=Ci(g,C),g.index=0,g.sibling=null,g}function a(g,C,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<C?(g.flags|=2,C):b):(g.flags|=2,C)):(g.flags|=1048576,C)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,C,b,S){return C===null||C.tag!==6?(C=Tg(b,g.mode,S),C.return=g,C):(C=o(C,b),C.return=g,C)}function c(g,C,b,S){var w=b.type;return w===is?d(g,C,b.props.children,S,b.key):C!==null&&(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ti&&ZS(w)===C.type)?(S=o(C,b.props),S.ref=Dc(g,C,b),S.return=g,S):(S=Jf(b.type,b.key,b.props,null,g.mode,S),S.ref=Dc(g,C,b),S.return=g,S)}function u(g,C,b,S){return C===null||C.tag!==4||C.stateNode.containerInfo!==b.containerInfo||C.stateNode.implementation!==b.implementation?(C=Dg(b,g.mode,S),C.return=g,C):(C=o(C,b.children||[]),C.return=g,C)}function d(g,C,b,S,w){return C===null||C.tag!==7?(C=ll(b,g.mode,S,w),C.return=g,C):(C=o(C,b),C.return=g,C)}function f(g,C,b){if(typeof C=="string"&&C!==""||typeof C=="number")return C=Tg(""+C,g.mode,b),C.return=g,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Gd:return b=Jf(C.type,C.key,C.props,null,g.mode,b),b.ref=Dc(g,null,C),b.return=g,b;case as:return C=Dg(C,g.mode,b),C.return=g,C;case ti:var S=C._init;return f(g,S(C._payload),b)}if(eu(C)||Pc(C))return C=ll(C,g.mode,b,null),C.return=g,C;af(g,C)}return null}function m(g,C,b,S){var w=C!==null?C.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return w!==null?null:s(g,C,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Gd:return b.key===w?c(g,C,b,S):null;case as:return b.key===w?u(g,C,b,S):null;case ti:return w=b._init,m(g,C,w(b._payload),S)}if(eu(b)||Pc(b))return w!==null?null:d(g,C,b,S,null);af(g,b)}return null}function v(g,C,b,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(b)||null,s(C,g,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Gd:return g=g.get(S.key===null?b:S.key)||null,c(C,g,S,w);case as:return g=g.get(S.key===null?b:S.key)||null,u(C,g,S,w);case ti:var $=S._init;return v(g,C,b,$(S._payload),w)}if(eu(S)||Pc(S))return g=g.get(b)||null,d(C,g,S,w,null);af(C,S)}return null}function h(g,C,b,S){for(var w=null,$=null,x=C,E=C=0,O=null;x!==null&&E<b.length;E++){x.index>E?(O=x,x=null):O=x.sibling;var I=m(g,x,b[E],S);if(I===null){x===null&&(x=O);break}e&&x&&I.alternate===null&&t(g,x),C=a(I,C,E),$===null?w=I:$.sibling=I,$=I,x=O}if(E===b.length)return n(g,x),Rn&&Hi(g,E),w;if(x===null){for(;E<b.length;E++)x=f(g,b[E],S),x!==null&&(C=a(x,C,E),$===null?w=x:$.sibling=x,$=x);return Rn&&Hi(g,E),w}for(x=r(g,x);E<b.length;E++)O=v(x,g,E,b[E],S),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?E:O.key),C=a(O,C,E),$===null?w=O:$.sibling=O,$=O);return e&&x.forEach(function(P){return t(g,P)}),Rn&&Hi(g,E),w}function y(g,C,b,S){var w=Pc(b);if(typeof w!="function")throw Error(at(150));if(b=w.call(b),b==null)throw Error(at(151));for(var $=w=null,x=C,E=C=0,O=null,I=b.next();x!==null&&!I.done;E++,I=b.next()){x.index>E?(O=x,x=null):O=x.sibling;var P=m(g,x,I.value,S);if(P===null){x===null&&(x=O);break}e&&x&&P.alternate===null&&t(g,x),C=a(P,C,E),$===null?w=P:$.sibling=P,$=P,x=O}if(I.done)return n(g,x),Rn&&Hi(g,E),w;if(x===null){for(;!I.done;E++,I=b.next())I=f(g,I.value,S),I!==null&&(C=a(I,C,E),$===null?w=I:$.sibling=I,$=I);return Rn&&Hi(g,E),w}for(x=r(g,x);!I.done;E++,I=b.next())I=v(x,g,E,I.value,S),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?E:I.key),C=a(I,C,E),$===null?w=I:$.sibling=I,$=I);return e&&x.forEach(function(_){return t(g,_)}),Rn&&Hi(g,E),w}function p(g,C,b,S){if(typeof b=="object"&&b!==null&&b.type===is&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gd:e:{for(var w=b.key,$=C;$!==null;){if($.key===w){if(w=b.type,w===is){if($.tag===7){n(g,$.sibling),C=o($,b.props.children),C.return=g,g=C;break e}}else if($.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ti&&ZS(w)===$.type){n(g,$.sibling),C=o($,b.props),C.ref=Dc(g,$,b),C.return=g,g=C;break e}n(g,$);break}else t(g,$);$=$.sibling}b.type===is?(C=ll(b.props.children,g.mode,S,b.key),C.return=g,g=C):(S=Jf(b.type,b.key,b.props,null,g.mode,S),S.ref=Dc(g,C,b),S.return=g,g=S)}return i(g);case as:e:{for($=b.key;C!==null;){if(C.key===$)if(C.tag===4&&C.stateNode.containerInfo===b.containerInfo&&C.stateNode.implementation===b.implementation){n(g,C.sibling),C=o(C,b.children||[]),C.return=g,g=C;break e}else{n(g,C);break}else t(g,C);C=C.sibling}C=Dg(b,g.mode,S),C.return=g,g=C}return i(g);case ti:return $=b._init,p(g,C,$(b._payload),S)}if(eu(b))return h(g,C,b,S);if(Pc(b))return y(g,C,b,S);af(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,C!==null&&C.tag===6?(n(g,C.sibling),C=o(C,b),C.return=g,g=C):(n(g,C),C=Tg(b,g.mode,S),C.return=g,g=C),i(g)):n(g,C)}return p}var Ls=R4(!0),P4=R4(!1),Nm=Ni(null),_m=null,vs=null,n1=null;function r1(){n1=vs=_m=null}function o1(e){var t=Nm.current;wn(Nm),e._currentValue=t}function P0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Is(e,t){_m=e,n1=vs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Zr=!0),e.firstContext=null)}function No(e){var t=e._currentValue;if(n1!==e)if(e={context:e,memoizedValue:t,next:null},vs===null){if(_m===null)throw Error(at(308));vs=e,_m.dependencies={lanes:0,firstContext:e}}else vs=vs.next=e;return t}var Ji=null;function a1(e){Ji===null?Ji=[e]:Ji.push(e)}function M4(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,a1(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fa(e,r)}function Fa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ni=!1;function i1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function N4(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,an&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fa(e,n)}return o=r.interleaved,o===null?(t.next=t,a1(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fa(e,n)}function Uf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kb(e,n)}}function ex(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tm(e,t,n,r){var o=e.updateQueue;ni=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(a!==null){var f=o.baseState;i=0,d=u=c=null,s=a;do{var m=s.lane,v=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,y=s;switch(m=t,v=n,y.tag){case 1:if(h=y.payload,typeof h=="function"){f=h.call(v,f,m);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,m=typeof h=="function"?h.call(v,f,m):h,m==null)break e;f=Tn({},f,m);break e;case 2:ni=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else v={eventTime:v,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=v,c=f):d=d.next=v,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);vl|=i,e.lanes=i,e.memoizedState=f}}function tx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(at(191,o));o.call(r)}}}var bd={},pa=Ni(bd),Fu=Ni(bd),Au=Ni(bd);function Zi(e){if(e===bd)throw Error(at(174));return e}function l1(e,t){switch(Cn(Au,t),Cn(Fu,e),Cn(pa,bd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:c0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=c0(t,e)}wn(pa),Cn(pa,t)}function Fs(){wn(pa),wn(Fu),wn(Au)}function _4(e){Zi(Au.current);var t=Zi(pa.current),n=c0(t,e.type);t!==n&&(Cn(Fu,e),Cn(pa,n))}function s1(e){Fu.current===e&&(wn(pa),wn(Fu))}var Nn=Ni(0);function Dm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ig=[];function c1(){for(var e=0;e<Ig.length;e++)Ig[e]._workInProgressVersionPrimary=null;Ig.length=0}var qf=Va.ReactCurrentDispatcher,Rg=Va.ReactCurrentBatchConfig,ml=0,_n=null,nr=null,dr=null,km=!1,hu=!1,Bu=0,IT=0;function Rr(){throw Error(at(321))}function u1(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qo(e[n],t[n]))return!1;return!0}function d1(e,t,n,r,o,a){if(ml=a,_n=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qf.current=e===null||e.memoizedState===null?NT:_T,e=n(r,o),hu){a=0;do{if(hu=!1,Bu=0,25<=a)throw Error(at(301));a+=1,dr=nr=null,t.updateQueue=null,qf.current=TT,e=n(r,o)}while(hu)}if(qf.current=jm,t=nr!==null&&nr.next!==null,ml=0,dr=nr=_n=null,km=!1,t)throw Error(at(300));return e}function f1(){var e=Bu!==0;return Bu=0,e}function fa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dr===null?_n.memoizedState=dr=e:dr=dr.next=e,dr}function _o(){if(nr===null){var e=_n.alternate;e=e!==null?e.memoizedState:null}else e=nr.next;var t=dr===null?_n.memoizedState:dr.next;if(t!==null)dr=t,nr=e;else{if(e===null)throw Error(at(310));nr=e,e={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},dr===null?_n.memoizedState=dr=e:dr=dr.next=e}return dr}function Hu(e,t){return typeof t=="function"?t(e):t}function Pg(e){var t=_o(),n=t.queue;if(n===null)throw Error(at(311));n.lastRenderedReducer=e;var r=nr,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var s=i=null,c=null,u=a;do{var d=u.lane;if((ml&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=f,i=r):c=c.next=f,_n.lanes|=d,vl|=d}u=u.next}while(u!==null&&u!==a);c===null?i=r:c.next=s,Qo(r,t.memoizedState)||(Zr=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,_n.lanes|=a,vl|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Mg(e){var t=_o(),n=t.queue;if(n===null)throw Error(at(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Qo(a,t.memoizedState)||(Zr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function T4(){}function D4(e,t){var n=_n,r=_o(),o=t(),a=!Qo(r.memoizedState,o);if(a&&(r.memoizedState=o,Zr=!0),r=r.queue,m1(z4.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||dr!==null&&dr.memoizedState.tag&1){if(n.flags|=2048,Vu(9,j4.bind(null,n,r,o,t),void 0,null),mr===null)throw Error(at(349));ml&30||k4(n,t,o)}return o}function k4(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_n.updateQueue,t===null?(t={lastEffect:null,stores:null},_n.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function j4(e,t,n,r){t.value=n,t.getSnapshot=r,L4(t)&&F4(e)}function z4(e,t,n){return n(function(){L4(t)&&F4(e)})}function L4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qo(e,n)}catch{return!0}}function F4(e){var t=Fa(e,1);t!==null&&qo(t,e,1,-1)}function nx(e){var t=fa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hu,lastRenderedState:e},t.queue=e,e=e.dispatch=MT.bind(null,_n,e),[t.memoizedState,e]}function Vu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_n.updateQueue,t===null?(t={lastEffect:null,stores:null},_n.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function A4(){return _o().memoizedState}function Gf(e,t,n,r){var o=fa();_n.flags|=e,o.memoizedState=Vu(1|t,n,void 0,r===void 0?null:r)}function Rv(e,t,n,r){var o=_o();r=r===void 0?null:r;var a=void 0;if(nr!==null){var i=nr.memoizedState;if(a=i.destroy,r!==null&&u1(r,i.deps)){o.memoizedState=Vu(t,n,a,r);return}}_n.flags|=e,o.memoizedState=Vu(1|t,n,a,r)}function rx(e,t){return Gf(8390656,8,e,t)}function m1(e,t){return Rv(2048,8,e,t)}function B4(e,t){return Rv(4,2,e,t)}function H4(e,t){return Rv(4,4,e,t)}function V4(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function W4(e,t,n){return n=n!=null?n.concat([e]):null,Rv(4,4,V4.bind(null,t,e),n)}function v1(){}function K4(e,t){var n=_o();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&u1(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function U4(e,t){var n=_o();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&u1(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function q4(e,t,n){return ml&21?(Qo(n,t)||(n=JO(),_n.lanes|=n,vl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Zr=!0),e.memoizedState=n)}function RT(e,t){var n=vn;vn=n!==0&&4>n?n:4,e(!0);var r=Rg.transition;Rg.transition={};try{e(!1),t()}finally{vn=n,Rg.transition=r}}function G4(){return _o().memoizedState}function PT(e,t,n){var r=bi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Y4(e))X4(t,n);else if(n=M4(e,t,n,r),n!==null){var o=Vr();qo(n,e,r,o),Q4(n,t,r)}}function MT(e,t,n){var r=bi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Y4(e))X4(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Qo(s,i)){var c=t.interleaved;c===null?(o.next=o,a1(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=M4(e,t,o,r),n!==null&&(o=Vr(),qo(n,e,r,o),Q4(n,t,r))}}function Y4(e){var t=e.alternate;return e===_n||t!==null&&t===_n}function X4(e,t){hu=km=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Q4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kb(e,n)}}var jm={readContext:No,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},NT={readContext:No,useCallback:function(e,t){return fa().memoizedState=[e,t===void 0?null:t],e},useContext:No,useEffect:rx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gf(4194308,4,V4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gf(4,2,e,t)},useMemo:function(e,t){var n=fa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=PT.bind(null,_n,e),[r.memoizedState,e]},useRef:function(e){var t=fa();return e={current:e},t.memoizedState=e},useState:nx,useDebugValue:v1,useDeferredValue:function(e){return fa().memoizedState=e},useTransition:function(){var e=nx(!1),t=e[0];return e=RT.bind(null,e[1]),fa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_n,o=fa();if(Rn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),mr===null)throw Error(at(349));ml&30||k4(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,rx(z4.bind(null,r,a,e),[e]),r.flags|=2048,Vu(9,j4.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=fa(),t=mr.identifierPrefix;if(Rn){var n=Ta,r=_a;n=(r&~(1<<32-Uo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=IT++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_T={readContext:No,useCallback:K4,useContext:No,useEffect:m1,useImperativeHandle:W4,useInsertionEffect:B4,useLayoutEffect:H4,useMemo:U4,useReducer:Pg,useRef:A4,useState:function(){return Pg(Hu)},useDebugValue:v1,useDeferredValue:function(e){var t=_o();return q4(t,nr.memoizedState,e)},useTransition:function(){var e=Pg(Hu)[0],t=_o().memoizedState;return[e,t]},useMutableSource:T4,useSyncExternalStore:D4,useId:G4,unstable_isNewReconciler:!1},TT={readContext:No,useCallback:K4,useContext:No,useEffect:m1,useImperativeHandle:W4,useInsertionEffect:B4,useLayoutEffect:H4,useMemo:U4,useReducer:Mg,useRef:A4,useState:function(){return Mg(Hu)},useDebugValue:v1,useDeferredValue:function(e){var t=_o();return nr===null?t.memoizedState=e:q4(t,nr.memoizedState,e)},useTransition:function(){var e=Mg(Hu)[0],t=_o().memoizedState;return[e,t]},useMutableSource:T4,useSyncExternalStore:D4,useId:G4,unstable_isNewReconciler:!1};function Ao(e,t){if(e&&e.defaultProps){t=Tn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function M0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Tn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pv={isMounted:function(e){return(e=e._reactInternals)?El(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vr(),o=bi(e),a=Da(r,o);a.payload=t,n!=null&&(a.callback=n),t=pi(e,a,o),t!==null&&(qo(t,e,o,r),Uf(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vr(),o=bi(e),a=Da(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=pi(e,a,o),t!==null&&(qo(t,e,o,r),Uf(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vr(),r=bi(e),o=Da(n,r);o.tag=2,t!=null&&(o.callback=t),t=pi(e,o,r),t!==null&&(qo(t,e,r,n),Uf(t,e,r))}};function ox(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!ku(n,r)||!ku(o,a):!0}function J4(e,t,n){var r=!1,o=wi,a=t.contextType;return typeof a=="object"&&a!==null?a=No(a):(o=to(t)?dl:jr.current,r=t.contextTypes,a=(r=r!=null)?js(e,o):wi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ax(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pv.enqueueReplaceState(t,t.state,null)}function N0(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},i1(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=No(a):(a=to(t)?dl:jr.current,o.context=js(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(M0(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Pv.enqueueReplaceState(o,o.state,null),Tm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function As(e,t){try{var n="",r=t;do n+=l8(r),r=r.return;while(r);var o=n}catch(a){o=`
39
+ Error generating stack: `+a.message+`
40
+ `+a.stack}return{value:e,source:t,stack:o,digest:null}}function Ng(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var DT=typeof WeakMap=="function"?WeakMap:Map;function Z4(e,t,n){n=Da(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Lm||(Lm=!0,H0=r),_0(e,t)},n}function eI(e,t,n){n=Da(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){_0(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){_0(e,t),typeof r!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ix(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DT;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=GT.bind(null,e,t,n),t.then(e,e))}function lx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sx(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Da(-1,1),t.tag=2,pi(n,t,1))),n.lanes|=1),e)}var kT=Va.ReactCurrentOwner,Zr=!1;function Br(e,t,n,r){t.child=e===null?P4(t,null,n,r):Ls(t,e.child,n,r)}function cx(e,t,n,r,o){n=n.render;var a=t.ref;return Is(t,o),r=d1(e,t,n,r,a,o),n=f1(),e!==null&&!Zr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Aa(e,t,o)):(Rn&&n&&Zb(t),t.flags|=1,Br(e,t,r,o),t.child)}function ux(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!x1(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,tI(e,t,a,r,o)):(e=Jf(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:ku,n(i,r)&&e.ref===t.ref)return Aa(e,t,o)}return t.flags|=1,e=Ci(a,r),e.ref=t.ref,e.return=t,t.child=e}function tI(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(ku(a,r)&&e.ref===t.ref)if(Zr=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Zr=!0);else return t.lanes=e.lanes,Aa(e,t,o)}return T0(e,t,n,r,o)}function nI(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cn(gs,so),so|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Cn(gs,so),so|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Cn(gs,so),so|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Cn(gs,so),so|=r;return Br(e,t,o,n),t.child}function rI(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function T0(e,t,n,r,o){var a=to(n)?dl:jr.current;return a=js(t,a),Is(t,o),n=d1(e,t,n,r,a,o),r=f1(),e!==null&&!Zr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Aa(e,t,o)):(Rn&&r&&Zb(t),t.flags|=1,Br(e,t,n,o),t.child)}function dx(e,t,n,r,o){if(to(n)){var a=!0;Rm(t)}else a=!1;if(Is(t,o),t.stateNode===null)Yf(e,t),J4(t,n,r),N0(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=No(u):(u=to(n)?dl:jr.current,u=js(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||c!==u)&&ax(t,i,r,u),ni=!1;var m=t.memoizedState;i.state=m,Tm(t,r,i,o),c=t.memoizedState,s!==r||m!==c||eo.current||ni?(typeof d=="function"&&(M0(t,n,d,r),c=t.memoizedState),(s=ni||ox(t,n,s,r,m,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,N4(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ao(t.type,s),i.props=u,f=t.pendingProps,m=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=No(c):(c=to(n)?dl:jr.current,c=js(t,c));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||m!==c)&&ax(t,i,r,c),ni=!1,m=t.memoizedState,i.state=m,Tm(t,r,i,o);var h=t.memoizedState;s!==f||m!==h||eo.current||ni?(typeof v=="function"&&(M0(t,n,v,r),h=t.memoizedState),(u=ni||ox(t,n,u,r,m,h,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return D0(e,t,n,r,a,o)}function D0(e,t,n,r,o,a){rI(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&XS(t,n,!1),Aa(e,t,a);r=t.stateNode,kT.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ls(t,e.child,null,a),t.child=Ls(t,null,s,a)):Br(e,t,s,a),t.memoizedState=r.state,o&&XS(t,n,!0),t.child}function oI(e){var t=e.stateNode;t.pendingContext?YS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YS(e,t.context,!1),l1(e,t.containerInfo)}function fx(e,t,n,r,o){return zs(),t1(o),t.flags|=256,Br(e,t,n,r),t.child}var k0={dehydrated:null,treeContext:null,retryLane:0};function j0(e){return{baseLanes:e,cachePool:null,transitions:null}}function aI(e,t,n){var r=t.pendingProps,o=Nn.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Cn(Nn,o&1),e===null)return R0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=_v(i,r,0,null),e=ll(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=j0(n),t.memoizedState=k0,e):h1(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return jT(e,t,i,r,s,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ci(o,c),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=Ci(s,a):(a=ll(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?j0(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=k0,r}return a=e.child,e=a.sibling,r=Ci(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function h1(e,t){return t=_v({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lf(e,t,n,r){return r!==null&&t1(r),Ls(t,e.child,null,n),e=h1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jT(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=Ng(Error(at(422))),lf(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=_v({mode:"visible",children:r.children},o,0,null),a=ll(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Ls(t,e.child,null,i),t.child.memoizedState=j0(i),t.memoizedState=k0,a);if(!(t.mode&1))return lf(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(at(419)),r=Ng(a,r,void 0),lf(e,t,i,r)}if(s=(i&e.childLanes)!==0,Zr||s){if(r=mr,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Fa(e,o),qo(r,e,o,-1))}return S1(),r=Ng(Error(at(421))),lf(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=YT.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,uo=gi(o.nextSibling),mo=t,Rn=!0,Ko=null,e!==null&&(Eo[Oo++]=_a,Eo[Oo++]=Ta,Eo[Oo++]=fl,_a=e.id,Ta=e.overflow,fl=t),t=h1(t,r.children),t.flags|=4096,t)}function mx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),P0(e.return,t,n)}function _g(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function iI(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Br(e,t,r.children,n),r=Nn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mx(e,n,t);else if(e.tag===19)mx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Cn(Nn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Dm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_g(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Dm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}_g(t,!0,n,null,a);break;case"together":_g(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Aa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(at(153));if(t.child!==null){for(e=t.child,n=Ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zT(e,t,n){switch(t.tag){case 3:oI(t),zs();break;case 5:_4(t);break;case 1:to(t.type)&&Rm(t);break;case 4:l1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Cn(Nm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Cn(Nn,Nn.current&1),t.flags|=128,null):n&t.child.childLanes?aI(e,t,n):(Cn(Nn,Nn.current&1),e=Aa(e,t,n),e!==null?e.sibling:null);Cn(Nn,Nn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return iI(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Cn(Nn,Nn.current),r)break;return null;case 22:case 23:return t.lanes=0,nI(e,t,n)}return Aa(e,t,n)}var lI,z0,sI,cI;lI=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};z0=function(){};sI=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zi(pa.current);var a=null;switch(n){case"input":o=a0(e,o),r=a0(e,r),a=[];break;case"select":o=Tn({},o,{value:void 0}),r=Tn({},r,{value:void 0}),a=[];break;case"textarea":o=s0(e,o),r=s0(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Om)}u0(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ru.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ru.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&xn("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};cI=function(e,t,n,r){n!==r&&(t.flags|=4)};function kc(e,t){if(!Rn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function LT(e,t,n){var r=t.pendingProps;switch(e1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pr(t),null;case 1:return to(t.type)&&Im(),Pr(t),null;case 3:return r=t.stateNode,Fs(),wn(eo),wn(jr),c1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(of(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ko!==null&&(K0(Ko),Ko=null))),z0(e,t),Pr(t),null;case 5:s1(t);var o=Zi(Au.current);if(n=t.type,e!==null&&t.stateNode!=null)sI(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(at(166));return Pr(t),null}if(e=Zi(pa.current),of(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ha]=t,r[Lu]=a,e=(t.mode&1)!==0,n){case"dialog":xn("cancel",r),xn("close",r);break;case"iframe":case"object":case"embed":xn("load",r);break;case"video":case"audio":for(o=0;o<nu.length;o++)xn(nu[o],r);break;case"source":xn("error",r);break;case"img":case"image":case"link":xn("error",r),xn("load",r);break;case"details":xn("toggle",r);break;case"input":xS(r,a),xn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},xn("invalid",r);break;case"textarea":$S(r,a),xn("invalid",r)}u0(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="children"?typeof s=="string"?r.textContent!==s&&(a.suppressHydrationWarning!==!0&&rf(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&rf(r.textContent,s,e),o=["children",""+s]):Ru.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&xn("scroll",r)}switch(n){case"input":Yd(r),wS(r,a,!0);break;case"textarea":Yd(r),ES(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Om)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zO(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ha]=t,e[Lu]=r,lI(e,t,!1,!1),t.stateNode=e;e:{switch(i=d0(n,r),n){case"dialog":xn("cancel",e),xn("close",e),o=r;break;case"iframe":case"object":case"embed":xn("load",e),o=r;break;case"video":case"audio":for(o=0;o<nu.length;o++)xn(nu[o],e);o=r;break;case"source":xn("error",e),o=r;break;case"img":case"image":case"link":xn("error",e),xn("load",e),o=r;break;case"details":xn("toggle",e),o=r;break;case"input":xS(e,r),o=a0(e,r),xn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Tn({},r,{value:void 0}),xn("invalid",e);break;case"textarea":$S(e,r),o=s0(e,r),xn("invalid",e);break;default:o=r}u0(n,o),s=o;for(a in s)if(s.hasOwnProperty(a)){var c=s[a];a==="style"?AO(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&LO(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Pu(e,c):typeof c=="number"&&Pu(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ru.hasOwnProperty(a)?c!=null&&a==="onScroll"&&xn("scroll",e):c!=null&&Fb(e,a,c,i))}switch(n){case"input":Yd(e),wS(e,r,!1);break;case"textarea":Yd(e),ES(e);break;case"option":r.value!=null&&e.setAttribute("value",""+xi(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ws(e,!!r.multiple,a,!1):r.defaultValue!=null&&ws(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Om)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pr(t),null;case 6:if(e&&t.stateNode!=null)cI(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(at(166));if(n=Zi(Au.current),Zi(pa.current),of(t)){if(r=t.stateNode,n=t.memoizedProps,r[ha]=t,(a=r.nodeValue!==n)&&(e=mo,e!==null))switch(e.tag){case 3:rf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rf(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ha]=t,t.stateNode=r}return Pr(t),null;case 13:if(wn(Nn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Rn&&uo!==null&&t.mode&1&&!(t.flags&128))I4(),zs(),t.flags|=98560,a=!1;else if(a=of(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(at(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(at(317));a[ha]=t}else zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pr(t),a=!1}else Ko!==null&&(K0(Ko),Ko=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Nn.current&1?rr===0&&(rr=3):S1())),t.updateQueue!==null&&(t.flags|=4),Pr(t),null);case 4:return Fs(),z0(e,t),e===null&&ju(t.stateNode.containerInfo),Pr(t),null;case 10:return o1(t.type._context),Pr(t),null;case 17:return to(t.type)&&Im(),Pr(t),null;case 19:if(wn(Nn),a=t.memoizedState,a===null)return Pr(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)kc(a,!1);else{if(rr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Dm(e),i!==null){for(t.flags|=128,kc(a,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Cn(Nn,Nn.current&1|2),t.child}e=e.sibling}a.tail!==null&&Kn()>Bs&&(t.flags|=128,r=!0,kc(a,!1),t.lanes=4194304)}else{if(!r)if(e=Dm(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Rn)return Pr(t),null}else 2*Kn()-a.renderingStartTime>Bs&&n!==1073741824&&(t.flags|=128,r=!0,kc(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Kn(),t.sibling=null,n=Nn.current,Cn(Nn,r?n&1|2:n&1),t):(Pr(t),null);case 22:case 23:return C1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?so&1073741824&&(Pr(t),t.subtreeFlags&6&&(t.flags|=8192)):Pr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function FT(e,t){switch(e1(t),t.tag){case 1:return to(t.type)&&Im(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fs(),wn(eo),wn(jr),c1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return s1(t),null;case 13:if(wn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(Nn),null;case 4:return Fs(),null;case 10:return o1(t.type._context),null;case 22:case 23:return C1(),null;case 24:return null;default:return null}}var sf=!1,Dr=!1,AT=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function hs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){zn(e,t,r)}else n.current=null}function L0(e,t,n){try{n()}catch(r){zn(e,t,r)}}var vx=!1;function BT(e,t){if(S0=wm,e=v4(),Jb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++u===o&&(s=i),m===a&&++d===r&&(c=i),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(x0={focusedElem:e,selectionRange:n},wm=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){t=Nt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var y=h.memoizedProps,p=h.memoizedState,g=t.stateNode,C=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ao(t.type,y),p);g.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(S){zn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}return h=vx,vx=!1,h}function gu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&L0(t,n,a)}o=o.next}while(o!==r)}}function Mv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function F0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uI(e){var t=e.alternate;t!==null&&(e.alternate=null,uI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ha],delete t[Lu],delete t[E0],delete t[wT],delete t[$T])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dI(e){return e.tag===5||e.tag===3||e.tag===4}function hx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function A0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Om));else if(r!==4&&(e=e.child,e!==null))for(A0(e,t,n),e=e.sibling;e!==null;)A0(e,t,n),e=e.sibling}function B0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(B0(e,t,n),e=e.sibling;e!==null;)B0(e,t,n),e=e.sibling}var pr=null,Ho=!1;function qa(e,t,n){for(n=n.child;n!==null;)fI(e,t,n),n=n.sibling}function fI(e,t,n){if(ga&&typeof ga.onCommitFiberUnmount=="function")try{ga.onCommitFiberUnmount(xv,n)}catch{}switch(n.tag){case 5:Dr||hs(n,t);case 6:var r=pr,o=Ho;pr=null,qa(e,t,n),pr=r,Ho=o,pr!==null&&(Ho?(e=pr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pr.removeChild(n.stateNode));break;case 18:pr!==null&&(Ho?(e=pr,n=n.stateNode,e.nodeType===8?Eg(e.parentNode,n):e.nodeType===1&&Eg(e,n),Tu(e)):Eg(pr,n.stateNode));break;case 4:r=pr,o=Ho,pr=n.stateNode.containerInfo,Ho=!0,qa(e,t,n),pr=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!Dr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&L0(n,t,i),o=o.next}while(o!==r)}qa(e,t,n);break;case 1:if(!Dr&&(hs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){zn(n,t,s)}qa(e,t,n);break;case 21:qa(e,t,n);break;case 22:n.mode&1?(Dr=(r=Dr)||n.memoizedState!==null,qa(e,t,n),Dr=r):qa(e,t,n);break;default:qa(e,t,n)}}function gx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AT),t.forEach(function(r){var o=XT.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Lo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:pr=s.stateNode,Ho=!1;break e;case 3:pr=s.stateNode.containerInfo,Ho=!0;break e;case 4:pr=s.stateNode.containerInfo,Ho=!0;break e}s=s.return}if(pr===null)throw Error(at(160));fI(a,i,o),pr=null,Ho=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){zn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mI(t,e),t=t.sibling}function mI(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Lo(t,e),ca(e),r&4){try{gu(3,e,e.return),Mv(3,e)}catch(y){zn(e,e.return,y)}try{gu(5,e,e.return)}catch(y){zn(e,e.return,y)}}break;case 1:Lo(t,e),ca(e),r&512&&n!==null&&hs(n,n.return);break;case 5:if(Lo(t,e),ca(e),r&512&&n!==null&&hs(n,n.return),e.flags&32){var o=e.stateNode;try{Pu(o,"")}catch(y){zn(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&kO(o,a),d0(s,i);var u=d0(s,a);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];d==="style"?AO(o,f):d==="dangerouslySetInnerHTML"?LO(o,f):d==="children"?Pu(o,f):Fb(o,d,f,u)}switch(s){case"input":i0(o,a);break;case"textarea":jO(o,a);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?ws(o,!!a.multiple,v,!1):m!==!!a.multiple&&(a.defaultValue!=null?ws(o,!!a.multiple,a.defaultValue,!0):ws(o,!!a.multiple,a.multiple?[]:"",!1))}o[Lu]=a}catch(y){zn(e,e.return,y)}}break;case 6:if(Lo(t,e),ca(e),r&4){if(e.stateNode===null)throw Error(at(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(y){zn(e,e.return,y)}}break;case 3:if(Lo(t,e),ca(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Tu(t.containerInfo)}catch(y){zn(e,e.return,y)}break;case 4:Lo(t,e),ca(e);break;case 13:Lo(t,e),ca(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(y1=Kn())),r&4&&gx(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Dr=(u=Dr)||d,Lo(t,e),Dr=u):Lo(t,e),ca(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Nt=e,d=e.child;d!==null;){for(f=Nt=d;Nt!==null;){switch(m=Nt,v=m.child,m.tag){case 0:case 11:case 14:case 15:gu(4,m,m.return);break;case 1:hs(m,m.return);var h=m.stateNode;if(typeof h.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(y){zn(r,n,y)}}break;case 5:hs(m,m.return);break;case 22:if(m.memoizedState!==null){yx(f);continue}}v!==null?(v.return=m,Nt=v):yx(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=FO("display",i))}catch(y){zn(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){zn(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Lo(t,e),ca(e),r&4&&gx(e);break;case 21:break;default:Lo(t,e),ca(e)}}function ca(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dI(n)){var r=n;break e}n=n.return}throw Error(at(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Pu(o,""),r.flags&=-33);var a=hx(e);B0(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=hx(e);A0(e,s,i);break;default:throw Error(at(161))}}catch(c){zn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function HT(e,t,n){Nt=e,vI(e)}function vI(e,t,n){for(var r=(e.mode&1)!==0;Nt!==null;){var o=Nt,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||sf;if(!i){var s=o.alternate,c=s!==null&&s.memoizedState!==null||Dr;s=sf;var u=Dr;if(sf=i,(Dr=c)&&!u)for(Nt=o;Nt!==null;)i=Nt,c=i.child,i.tag===22&&i.memoizedState!==null?bx(o):c!==null?(c.return=i,Nt=c):bx(o);for(;a!==null;)Nt=a,vI(a),a=a.sibling;Nt=o,sf=s,Dr=u}px(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,Nt=a):px(e)}}function px(e){for(;Nt!==null;){var t=Nt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Dr||Mv(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Dr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ao(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&tx(t,a,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}tx(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Tu(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(at(163))}Dr||t.flags&512&&F0(t)}catch(m){zn(t,t.return,m)}}if(t===e){Nt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Nt=n;break}Nt=t.return}}function yx(e){for(;Nt!==null;){var t=Nt;if(t===e){Nt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Nt=n;break}Nt=t.return}}function bx(e){for(;Nt!==null;){var t=Nt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mv(4,t)}catch(c){zn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){zn(t,o,c)}}var a=t.return;try{F0(t)}catch(c){zn(t,a,c)}break;case 5:var i=t.return;try{F0(t)}catch(c){zn(t,i,c)}}}catch(c){zn(t,t.return,c)}if(t===e){Nt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Nt=s;break}Nt=t.return}}var VT=Math.ceil,zm=Va.ReactCurrentDispatcher,g1=Va.ReactCurrentOwner,Mo=Va.ReactCurrentBatchConfig,an=0,mr=null,er=null,Cr=0,so=0,gs=Ni(0),rr=0,Wu=null,vl=0,Nv=0,p1=0,pu=null,Qr=null,y1=0,Bs=1/0,Pa=null,Lm=!1,H0=null,yi=null,cf=!1,si=null,Fm=0,yu=0,V0=null,Xf=-1,Qf=0;function Vr(){return an&6?Kn():Xf!==-1?Xf:Xf=Kn()}function bi(e){return e.mode&1?an&2&&Cr!==0?Cr&-Cr:OT.transition!==null?(Qf===0&&(Qf=JO()),Qf):(e=vn,e!==0||(e=window.event,e=e===void 0?16:a4(e.type)),e):1}function qo(e,t,n,r){if(50<yu)throw yu=0,V0=null,Error(at(185));gd(e,n,r),(!(an&2)||e!==mr)&&(e===mr&&(!(an&2)&&(Nv|=n),rr===4&&ai(e,Cr)),no(e,r),n===1&&an===0&&!(t.mode&1)&&(Bs=Kn()+500,Iv&&_i()))}function no(e,t){var n=e.callbackNode;O8(e,t);var r=xm(e,e===mr?Cr:0);if(r===0)n!==null&&RS(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&RS(n),t===1)e.tag===0?ET(Cx.bind(null,e)):$4(Cx.bind(null,e)),ST(function(){!(an&6)&&_i()}),n=null;else{switch(ZO(r)){case 1:n=Wb;break;case 4:n=XO;break;case 16:n=Sm;break;case 536870912:n=QO;break;default:n=Sm}n=xI(n,hI.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function hI(e,t){if(Xf=-1,Qf=0,an&6)throw Error(at(327));var n=e.callbackNode;if(Rs()&&e.callbackNode!==n)return null;var r=xm(e,e===mr?Cr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Am(e,r);else{t=r;var o=an;an|=2;var a=pI();(mr!==e||Cr!==t)&&(Pa=null,Bs=Kn()+500,il(e,t));do try{UT();break}catch(s){gI(e,s)}while(!0);r1(),zm.current=a,an=o,er!==null?t=0:(mr=null,Cr=0,t=rr)}if(t!==0){if(t===2&&(o=g0(e),o!==0&&(r=o,t=W0(e,o))),t===1)throw n=Wu,il(e,0),ai(e,r),no(e,Kn()),n;if(t===6)ai(e,r);else{if(o=e.current.alternate,!(r&30)&&!WT(o)&&(t=Am(e,r),t===2&&(a=g0(e),a!==0&&(r=a,t=W0(e,a))),t===1))throw n=Wu,il(e,0),ai(e,r),no(e,Kn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(at(345));case 2:Vi(e,Qr,Pa);break;case 3:if(ai(e,r),(r&130023424)===r&&(t=y1+500-Kn(),10<t)){if(xm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Vr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$0(Vi.bind(null,e,Qr,Pa),t);break}Vi(e,Qr,Pa);break;case 4:if(ai(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Uo(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Kn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VT(r/1960))-r,10<r){e.timeoutHandle=$0(Vi.bind(null,e,Qr,Pa),r);break}Vi(e,Qr,Pa);break;case 5:Vi(e,Qr,Pa);break;default:throw Error(at(329))}}}return no(e,Kn()),e.callbackNode===n?hI.bind(null,e):null}function W0(e,t){var n=pu;return e.current.memoizedState.isDehydrated&&(il(e,t).flags|=256),e=Am(e,t),e!==2&&(t=Qr,Qr=n,t!==null&&K0(t)),e}function K0(e){Qr===null?Qr=e:Qr.push.apply(Qr,e)}function WT(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Qo(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ai(e,t){for(t&=~p1,t&=~Nv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Uo(t),r=1<<n;e[n]=-1,t&=~r}}function Cx(e){if(an&6)throw Error(at(327));Rs();var t=xm(e,0);if(!(t&1))return no(e,Kn()),null;var n=Am(e,t);if(e.tag!==0&&n===2){var r=g0(e);r!==0&&(t=r,n=W0(e,r))}if(n===1)throw n=Wu,il(e,0),ai(e,t),no(e,Kn()),n;if(n===6)throw Error(at(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vi(e,Qr,Pa),no(e,Kn()),null}function b1(e,t){var n=an;an|=1;try{return e(t)}finally{an=n,an===0&&(Bs=Kn()+500,Iv&&_i())}}function hl(e){si!==null&&si.tag===0&&!(an&6)&&Rs();var t=an;an|=1;var n=Mo.transition,r=vn;try{if(Mo.transition=null,vn=1,e)return e()}finally{vn=r,Mo.transition=n,an=t,!(an&6)&&_i()}}function C1(){so=gs.current,wn(gs)}function il(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,CT(n)),er!==null)for(n=er.return;n!==null;){var r=n;switch(e1(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Im();break;case 3:Fs(),wn(eo),wn(jr),c1();break;case 5:s1(r);break;case 4:Fs();break;case 13:wn(Nn);break;case 19:wn(Nn);break;case 10:o1(r.type._context);break;case 22:case 23:C1()}n=n.return}if(mr=e,er=e=Ci(e.current,null),Cr=so=t,rr=0,Wu=null,p1=Nv=vl=0,Qr=pu=null,Ji!==null){for(t=0;t<Ji.length;t++)if(n=Ji[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,r.next=i}n.pending=r}Ji=null}return e}function gI(e,t){do{var n=er;try{if(r1(),qf.current=jm,km){for(var r=_n.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}km=!1}if(ml=0,dr=nr=_n=null,hu=!1,Bu=0,g1.current=null,n===null||n.return===null){rr=1,Wu=t,er=null;break}e:{var a=e,i=n.return,s=n,c=t;if(t=Cr,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=lx(i);if(v!==null){v.flags&=-257,sx(v,i,s,a,t),v.mode&1&&ix(a,u,t),t=v,c=u;var h=t.updateQueue;if(h===null){var y=new Set;y.add(c),t.updateQueue=y}else h.add(c);break e}else{if(!(t&1)){ix(a,u,t),S1();break e}c=Error(at(426))}}else if(Rn&&s.mode&1){var p=lx(i);if(p!==null){!(p.flags&65536)&&(p.flags|=256),sx(p,i,s,a,t),t1(As(c,s));break e}}a=c=As(c,s),rr!==4&&(rr=2),pu===null?pu=[a]:pu.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=Z4(a,c,t);ex(a,g);break e;case 1:s=c;var C=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof C.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(yi===null||!yi.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=eI(a,s,t);ex(a,S);break e}}a=a.return}while(a!==null)}bI(n)}catch(w){t=w,er===n&&n!==null&&(er=n=n.return);continue}break}while(!0)}function pI(){var e=zm.current;return zm.current=jm,e===null?jm:e}function S1(){(rr===0||rr===3||rr===2)&&(rr=4),mr===null||!(vl&268435455)&&!(Nv&268435455)||ai(mr,Cr)}function Am(e,t){var n=an;an|=2;var r=pI();(mr!==e||Cr!==t)&&(Pa=null,il(e,t));do try{KT();break}catch(o){gI(e,o)}while(!0);if(r1(),an=n,zm.current=r,er!==null)throw Error(at(261));return mr=null,Cr=0,rr}function KT(){for(;er!==null;)yI(er)}function UT(){for(;er!==null&&!p8();)yI(er)}function yI(e){var t=SI(e.alternate,e,so);e.memoizedProps=e.pendingProps,t===null?bI(e):er=t,g1.current=null}function bI(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=FT(n,t),n!==null){n.flags&=32767,er=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rr=6,er=null;return}}else if(n=LT(n,t,so),n!==null){er=n;return}if(t=t.sibling,t!==null){er=t;return}er=t=e}while(t!==null);rr===0&&(rr=5)}function Vi(e,t,n){var r=vn,o=Mo.transition;try{Mo.transition=null,vn=1,qT(e,t,n,r)}finally{Mo.transition=o,vn=r}return null}function qT(e,t,n,r){do Rs();while(si!==null);if(an&6)throw Error(at(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(at(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(I8(e,a),e===mr&&(er=mr=null,Cr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||cf||(cf=!0,xI(Sm,function(){return Rs(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Mo.transition,Mo.transition=null;var i=vn;vn=1;var s=an;an|=4,g1.current=null,BT(e,n),mI(n,e),mT(x0),wm=!!S0,x0=S0=null,e.current=n,HT(n),y8(),an=s,vn=i,Mo.transition=a}else e.current=n;if(cf&&(cf=!1,si=e,Fm=o),a=e.pendingLanes,a===0&&(yi=null),S8(n.stateNode),no(e,Kn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Lm)throw Lm=!1,e=H0,H0=null,e;return Fm&1&&e.tag!==0&&Rs(),a=e.pendingLanes,a&1?e===V0?yu++:(yu=0,V0=e):yu=0,_i(),null}function Rs(){if(si!==null){var e=ZO(Fm),t=Mo.transition,n=vn;try{if(Mo.transition=null,vn=16>e?16:e,si===null)var r=!1;else{if(e=si,si=null,Fm=0,an&6)throw Error(at(331));var o=an;for(an|=4,Nt=e.current;Nt!==null;){var a=Nt,i=a.child;if(Nt.flags&16){var s=a.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(Nt=u;Nt!==null;){var d=Nt;switch(d.tag){case 0:case 11:case 15:gu(8,d,a)}var f=d.child;if(f!==null)f.return=d,Nt=f;else for(;Nt!==null;){d=Nt;var m=d.sibling,v=d.return;if(uI(d),d===u){Nt=null;break}if(m!==null){m.return=v,Nt=m;break}Nt=v}}}var h=a.alternate;if(h!==null){var y=h.child;if(y!==null){h.child=null;do{var p=y.sibling;y.sibling=null,y=p}while(y!==null)}}Nt=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,Nt=i;else e:for(;Nt!==null;){if(a=Nt,a.flags&2048)switch(a.tag){case 0:case 11:case 15:gu(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,Nt=g;break e}Nt=a.return}}var C=e.current;for(Nt=C;Nt!==null;){i=Nt;var b=i.child;if(i.subtreeFlags&2064&&b!==null)b.return=i,Nt=b;else e:for(i=C;Nt!==null;){if(s=Nt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Mv(9,s)}}catch(w){zn(s,s.return,w)}if(s===i){Nt=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Nt=S;break e}Nt=s.return}}if(an=o,_i(),ga&&typeof ga.onPostCommitFiberRoot=="function")try{ga.onPostCommitFiberRoot(xv,e)}catch{}r=!0}return r}finally{vn=n,Mo.transition=t}}return!1}function Sx(e,t,n){t=As(n,t),t=Z4(e,t,1),e=pi(e,t,1),t=Vr(),e!==null&&(gd(e,1,t),no(e,t))}function zn(e,t,n){if(e.tag===3)Sx(e,e,n);else for(;t!==null;){if(t.tag===3){Sx(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yi===null||!yi.has(r))){e=As(n,e),e=eI(t,e,1),t=pi(t,e,1),e=Vr(),t!==null&&(gd(t,1,e),no(t,e));break}}t=t.return}}function GT(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Vr(),e.pingedLanes|=e.suspendedLanes&n,mr===e&&(Cr&n)===n&&(rr===4||rr===3&&(Cr&130023424)===Cr&&500>Kn()-y1?il(e,0):p1|=n),no(e,t)}function CI(e,t){t===0&&(e.mode&1?(t=Jd,Jd<<=1,!(Jd&130023424)&&(Jd=4194304)):t=1);var n=Vr();e=Fa(e,t),e!==null&&(gd(e,t,n),no(e,n))}function YT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),CI(e,n)}function XT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(t),CI(e,n)}var SI;SI=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Zr=!1,zT(e,t,n);Zr=!!(e.flags&131072)}else Zr=!1,Rn&&t.flags&1048576&&E4(t,Mm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yf(e,t),e=t.pendingProps;var o=js(t,jr.current);Is(t,n),o=d1(null,t,r,e,o,n);var a=f1();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,to(r)?(a=!0,Rm(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,i1(t),o.updater=Pv,t.stateNode=o,o._reactInternals=t,N0(t,r,e,n),t=D0(null,t,r,!0,a,n)):(t.tag=0,Rn&&a&&Zb(t),Br(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yf(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=JT(r),e=Ao(r,e),o){case 0:t=T0(null,t,r,e,n);break e;case 1:t=dx(null,t,r,e,n);break e;case 11:t=cx(null,t,r,e,n);break e;case 14:t=ux(null,t,r,Ao(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),T0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),dx(e,t,r,o,n);case 3:e:{if(oI(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,N4(e,t),Tm(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=As(Error(at(423)),t),t=fx(e,t,r,n,o);break e}else if(r!==o){o=As(Error(at(424)),t),t=fx(e,t,r,n,o);break e}else for(uo=gi(t.stateNode.containerInfo.firstChild),mo=t,Rn=!0,Ko=null,n=P4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zs(),r===o){t=Aa(e,t,n);break e}Br(e,t,r,n)}t=t.child}return t;case 5:return _4(t),e===null&&R0(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,w0(r,o)?i=null:a!==null&&w0(r,a)&&(t.flags|=32),rI(e,t),Br(e,t,i,n),t.child;case 6:return e===null&&R0(t),null;case 13:return aI(e,t,n);case 4:return l1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ls(t,null,r,n):Br(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),cx(e,t,r,o,n);case 7:return Br(e,t,t.pendingProps,n),t.child;case 8:return Br(e,t,t.pendingProps.children,n),t.child;case 12:return Br(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Cn(Nm,r._currentValue),r._currentValue=i,a!==null)if(Qo(a.value,i)){if(a.children===o.children&&!eo.current){t=Aa(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Da(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),P0(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),P0(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Br(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Is(t,n),o=No(o),r=r(o),t.flags|=1,Br(e,t,r,n),t.child;case 14:return r=t.type,o=Ao(r,t.pendingProps),o=Ao(r.type,o),ux(e,t,r,o,n);case 15:return tI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ao(r,o),Yf(e,t),t.tag=1,to(r)?(e=!0,Rm(t)):e=!1,Is(t,n),J4(t,r,o),N0(t,r,o,n),D0(null,t,r,!0,e,n);case 19:return iI(e,t,n);case 22:return nI(e,t,n)}throw Error(at(156,t.tag))};function xI(e,t){return YO(e,t)}function QT(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Po(e,t,n,r){return new QT(e,t,n,r)}function x1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JT(e){if(typeof e=="function")return x1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bb)return 11;if(e===Hb)return 14}return 2}function Ci(e,t){var n=e.alternate;return n===null?(n=Po(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jf(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")x1(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case is:return ll(n.children,o,a,t);case Ab:i=8,o|=8;break;case t0:return e=Po(12,n,t,o|2),e.elementType=t0,e.lanes=a,e;case n0:return e=Po(13,n,t,o),e.elementType=n0,e.lanes=a,e;case r0:return e=Po(19,n,t,o),e.elementType=r0,e.lanes=a,e;case _O:return _v(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case MO:i=10;break e;case NO:i=9;break e;case Bb:i=11;break e;case Hb:i=14;break e;case ti:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=Po(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function ll(e,t,n,r){return e=Po(7,e,r,t),e.lanes=n,e}function _v(e,t,n,r){return e=Po(22,e,r,t),e.elementType=_O,e.lanes=n,e.stateNode={isHidden:!1},e}function Tg(e,t,n){return e=Po(6,e,null,t),e.lanes=n,e}function Dg(e,t,n){return t=Po(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZT(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vg(0),this.expirationTimes=vg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vg(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function w1(e,t,n,r,o,a,i,s,c){return e=new ZT(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Po(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},i1(a),e}function e5(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:as,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function wI(e){if(!e)return wi;e=e._reactInternals;e:{if(El(e)!==e||e.tag!==1)throw Error(at(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(to(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(at(171))}if(e.tag===1){var n=e.type;if(to(n))return w4(e,n,t)}return t}function $I(e,t,n,r,o,a,i,s,c){return e=w1(n,r,!0,e,o,a,i,s,c),e.context=wI(null),n=e.current,r=Vr(),o=bi(n),a=Da(r,o),a.callback=t??null,pi(n,a,o),e.current.lanes=o,gd(e,o,r),no(e,r),e}function Tv(e,t,n,r){var o=t.current,a=Vr(),i=bi(o);return n=wI(n),t.context===null?t.context=n:t.pendingContext=n,t=Da(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pi(o,t,i),e!==null&&(qo(e,o,i,a),Uf(e,o,i)),i}function Bm(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $1(e,t){xx(e,t),(e=e.alternate)&&xx(e,t)}function t5(){return null}var EI=typeof reportError=="function"?reportError:function(e){console.error(e)};function E1(e){this._internalRoot=e}Dv.prototype.render=E1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(at(409));Tv(e,t,null,null)};Dv.prototype.unmount=E1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hl(function(){Tv(null,e,null,null)}),t[La]=null}};function Dv(e){this._internalRoot=e}Dv.prototype.unstable_scheduleHydration=function(e){if(e){var t=n4();e={blockedOn:null,target:e,priority:t};for(var n=0;n<oi.length&&t!==0&&t<oi[n].priority;n++);oi.splice(n,0,e),n===0&&o4(e)}};function O1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wx(){}function n5(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var u=Bm(i);a.call(u)}}var i=$I(t,r,e,0,null,!1,!1,"",wx);return e._reactRootContainer=i,e[La]=i.current,ju(e.nodeType===8?e.parentNode:e),hl(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Bm(c);s.call(u)}}var c=w1(e,0,!1,null,null,!1,!1,"",wx);return e._reactRootContainer=c,e[La]=c.current,ju(e.nodeType===8?e.parentNode:e),hl(function(){Tv(t,c,n,r)}),c}function jv(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var s=o;o=function(){var c=Bm(i);s.call(c)}}Tv(t,i,e,o)}else i=n5(n,t,e,o,r);return Bm(i)}e4=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tu(t.pendingLanes);n!==0&&(Kb(t,n|1),no(t,Kn()),!(an&6)&&(Bs=Kn()+500,_i()))}break;case 13:hl(function(){var r=Fa(e,1);if(r!==null){var o=Vr();qo(r,e,1,o)}}),$1(e,1)}};Ub=function(e){if(e.tag===13){var t=Fa(e,134217728);if(t!==null){var n=Vr();qo(t,e,134217728,n)}$1(e,134217728)}};t4=function(e){if(e.tag===13){var t=bi(e),n=Fa(e,t);if(n!==null){var r=Vr();qo(n,e,t,r)}$1(e,t)}};n4=function(){return vn};r4=function(e,t){var n=vn;try{return vn=e,t()}finally{vn=n}};m0=function(e,t,n){switch(t){case"input":if(i0(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ov(r);if(!o)throw Error(at(90));DO(r),i0(r,o)}}}break;case"textarea":jO(e,n);break;case"select":t=n.value,t!=null&&ws(e,!!n.multiple,t,!1)}};VO=b1;WO=hl;var r5={usingClientEntryPoint:!1,Events:[yd,us,Ov,BO,HO,b1]},jc={findFiberByHostInstance:Qi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},o5={bundleType:jc.bundleType,version:jc.version,rendererPackageName:jc.rendererPackageName,rendererConfig:jc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Va.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qO(e),e===null?null:e.stateNode},findFiberByHostInstance:jc.findFiberByHostInstance||t5,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uf.isDisabled&&uf.supportsFiber)try{xv=uf.inject(o5),ga=uf}catch{}}go.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r5;go.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!O1(t))throw Error(at(200));return e5(e,t,null,n)};go.createRoot=function(e,t){if(!O1(e))throw Error(at(299));var n=!1,r="",o=EI;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=w1(e,1,!1,null,null,n,!1,r,o),e[La]=t.current,ju(e.nodeType===8?e.parentNode:e),new E1(t)};go.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(at(188)):(e=Object.keys(e).join(","),Error(at(268,e)));return e=qO(t),e=e===null?null:e.stateNode,e};go.flushSync=function(e){return hl(e)};go.hydrate=function(e,t,n){if(!kv(t))throw Error(at(200));return jv(null,e,t,!0,n)};go.hydrateRoot=function(e,t,n){if(!O1(e))throw Error(at(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=EI;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=$I(t,null,e,1,n??null,o,!1,a,i),e[La]=t.current,ju(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Dv(t)};go.render=function(e,t,n){if(!kv(t))throw Error(at(200));return jv(null,e,t,!1,n)};go.unmountComponentAtNode=function(e){if(!kv(e))throw Error(at(40));return e._reactRootContainer?(hl(function(){jv(null,null,e,!1,function(){e._reactRootContainer=null,e[La]=null})}),!0):!1};go.unstable_batchedUpdates=b1;go.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!kv(n))throw Error(at(200));if(e==null||e._reactInternals===void 0)throw Error(at(38));return jv(e,t,n,!1,r)};go.version="18.3.1-next-f1338f8080-20240426";function OI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OI)}catch(e){console.error(e)}}OI(),OO.exports=go;var Jo=OO.exports;const Ku=ho(Jo),II=vO({__proto__:null,default:Ku},[Jo]);var $x=Jo;Zp.createRoot=$x.createRoot,Zp.hydrateRoot=$x.hydrateRoot;var RI={exports:{}};/*!
41
+ Copyright (c) 2018 Jed Watson.
42
+ Licensed under the MIT License (MIT), see
43
+ http://jedwatson.github.io/classnames
44
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(RI);var a5=RI.exports;const Z=ho(a5);function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(null,arguments)}function ht(e){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(e)}var i5=Symbol.for("react.element"),l5=Symbol.for("react.transitional.element"),s5=Symbol.for("react.fragment");function PI(e){return e&&ht(e)==="object"&&(e.$$typeof===i5||e.$$typeof===l5)&&e.type===s5}function $r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return le.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat($r(r)):PI(r)&&r.props?n=n.concat($r(r.props.children,t)):n.push(r))}),n}var U0={},c5=function(t){};function u5(e,t){}function d5(e,t){}function f5(){U0={}}function MI(e,t,n){!t&&!U0[n]&&(e(!1,n),U0[n]=!0)}function Sn(e,t){MI(u5,e,t)}function m5(e,t){MI(d5,e,t)}Sn.preMessage=c5;Sn.resetWarned=f5;Sn.noteOnce=m5;function v5(e,t){if(ht(e)!="object"||!e)return e;var n;if(typeof Symbol<"u"&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t);if(ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NI(e){var t=v5(e,"string");return ht(t)=="symbol"?t:t+""}function B(e,t,n){return(t=NI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(n),!0).forEach(function(r){B(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uu(e){return e instanceof HTMLElement||e instanceof SVGElement}function Cd(e){return e&&ht(e)==="object"&&Uu(e.nativeElement)?e.nativeElement:Uu(e)?e:null}function Zf(e){var t=Cd(e);if(t)return t;if(e instanceof le.Component){var n;return(n=Ku.findDOMNode)===null||n===void 0?void 0:n.call(Ku,e)}return null}var _I={exports:{}},hn={};/**
45
+ * @license React
46
+ * react-is.production.min.js
47
+ *
48
+ * Copyright (c) Facebook, Inc. and its affiliates.
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE file in the root directory of this source tree.
52
+ */var I1=Symbol.for("react.element"),R1=Symbol.for("react.portal"),zv=Symbol.for("react.fragment"),Lv=Symbol.for("react.strict_mode"),Fv=Symbol.for("react.profiler"),Av=Symbol.for("react.provider"),Bv=Symbol.for("react.context"),h5=Symbol.for("react.server_context"),Hv=Symbol.for("react.forward_ref"),Vv=Symbol.for("react.suspense"),Wv=Symbol.for("react.suspense_list"),Kv=Symbol.for("react.memo"),Uv=Symbol.for("react.lazy"),g5=Symbol.for("react.offscreen"),TI;TI=Symbol.for("react.module.reference");function Do(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case I1:switch(e=e.type,e){case zv:case Fv:case Lv:case Vv:case Wv:return e;default:switch(e=e&&e.$$typeof,e){case h5:case Bv:case Hv:case Uv:case Kv:case Av:return e;default:return t}}case R1:return t}}}hn.ContextConsumer=Bv;hn.ContextProvider=Av;hn.Element=I1;hn.ForwardRef=Hv;hn.Fragment=zv;hn.Lazy=Uv;hn.Memo=Kv;hn.Portal=R1;hn.Profiler=Fv;hn.StrictMode=Lv;hn.Suspense=Vv;hn.SuspenseList=Wv;hn.isAsyncMode=function(){return!1};hn.isConcurrentMode=function(){return!1};hn.isContextConsumer=function(e){return Do(e)===Bv};hn.isContextProvider=function(e){return Do(e)===Av};hn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===I1};hn.isForwardRef=function(e){return Do(e)===Hv};hn.isFragment=function(e){return Do(e)===zv};hn.isLazy=function(e){return Do(e)===Uv};hn.isMemo=function(e){return Do(e)===Kv};hn.isPortal=function(e){return Do(e)===R1};hn.isProfiler=function(e){return Do(e)===Fv};hn.isStrictMode=function(e){return Do(e)===Lv};hn.isSuspense=function(e){return Do(e)===Vv};hn.isSuspenseList=function(e){return Do(e)===Wv};hn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zv||e===Fv||e===Lv||e===Vv||e===Wv||e===g5||typeof e=="object"&&e!==null&&(e.$$typeof===Uv||e.$$typeof===Kv||e.$$typeof===Av||e.$$typeof===Bv||e.$$typeof===Hv||e.$$typeof===TI||e.getModuleId!==void 0)};hn.typeOf=Do;_I.exports=hn;var kg=_I.exports;function Ol(e,t,n){var r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var p5=Number(l.version.split(".")[0]),qu=function(t,n){typeof t=="function"?t(n):ht(t)==="object"&&t&&"current"in t&&(t.current=n)},lr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(a){n.forEach(function(i){qu(i,a)})}},Wa=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ol(function(){return lr.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},Zo=function(t){var n,r;if(!t)return!1;if(P1(t)&&p5>=19)return!0;var o=kg.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==kg.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==kg.ForwardRef)};function P1(e){return l.isValidElement(e)&&!PI(e)}var y5=function(t){return P1(t)&&Zo(t)},Ti=function(t){if(t&&P1(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},q0=l.createContext(null);function b5(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),o=l.useRef([]),a=l.useContext(q0),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,c,u)},[n,a]);return l.createElement(q0.Provider,{value:i},t)}var DI=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),G0=typeof window<"u"&&typeof document<"u"&&window.document===document,Hm=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),C5=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hm):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),S5=2;function x5(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){C5(a)}function s(){var c=Date.now();if(n){if(c-o<S5)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=c}return s}var w5=20,$5=["top","right","bottom","left","width","height","size","weight"],E5=typeof MutationObserver<"u",O5=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=x5(this.refresh.bind(this),w5)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!G0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),E5?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!G0||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=$5.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),kI=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Hs=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Hm},jI=qv(0,0,0,0);function Vm(e){return parseFloat(e)||0}function Ox(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Vm(a)},0)}function I5(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Vm(i)}return n}function R5(e){var t=e.getBBox();return qv(0,0,t.width,t.height)}function P5(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return jI;var r=Hs(e).getComputedStyle(e),o=I5(r),a=o.left+o.right,i=o.top+o.bottom,s=Vm(r.width),c=Vm(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=Ox(r,"left","right")+a),Math.round(c+i)!==n&&(c-=Ox(r,"top","bottom")+i)),!N5(e)){var u=Math.round(s+a)-t,d=Math.round(c+i)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return qv(o.left,o.top,s,c)}var M5=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Hs(e).SVGGraphicsElement}:function(e){return e instanceof Hs(e).SVGElement&&typeof e.getBBox=="function"}}();function N5(e){return e===Hs(e).document.documentElement}function _5(e){return G0?M5(e)?R5(e):P5(e):jI}function T5(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return kI(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function qv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var D5=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=qv(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=_5(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),k5=function(){function e(t,n){var r=T5(n);kI(this,{target:t,contentRect:r})}return e}(),j5=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new DI,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hs(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new D5(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hs(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new k5(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),zI=typeof WeakMap<"u"?new WeakMap:new DI,LI=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=O5.getInstance(),r=new j5(t,n,this);zI.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){LI.prototype[e]=function(){var t;return(t=zI.get(this))[e].apply(t,arguments)}});var z5=function(){return typeof Hm.ResizeObserver<"u"?Hm.ResizeObserver:LI}(),ci=new Map;function L5(e){e.forEach(function(t){var n,r=t.target;(n=ci.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var FI=new z5(L5);function F5(e,t){ci.has(e)||(ci.set(e,new Set),FI.observe(e)),ci.get(e).add(t)}function A5(e,t){ci.has(e)&&(ci.get(e).delete(t),ci.get(e).size||(FI.unobserve(e),ci.delete(e)))}function Pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ix(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NI(r.key),r)}}function Mn(e,t,n){return t&&Ix(e.prototype,t),n&&Ix(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gu(e,t){return Gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gu(e,t)}function xa(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&&Gu(e,t)}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yu(e)}function M1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M1=function(){return!!e})()}function St(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B5(e,t){if(t&&(ht(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return St(e)}function wa(e){var t=M1();return function(){var n,r=Yu(e);if(t){var o=Yu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B5(this,n)}}var H5=function(e){xa(n,e);var t=wa(n);function n(){return Pn(this,n),t.apply(this,arguments)}return Mn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function V5(e,t){var n=e.children,r=e.disabled,o=l.useRef(null),a=l.useRef(null),i=l.useContext(q0),s=typeof n=="function",c=s?n(o):n,u=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&l.isValidElement(c)&&Zo(c),f=d?Ti(c):null,m=Wa(f,o),v=function(){var g;return Zf(o.current)||(o.current&&ht(o.current)==="object"?Zf((g=o.current)===null||g===void 0?void 0:g.nativeElement):null)||Zf(a.current)};l.useImperativeHandle(t,function(){return v()});var h=l.useRef(e);h.current=e;var y=l.useCallback(function(p){var g=h.current,C=g.onResize,b=g.data,S=p.getBoundingClientRect(),w=S.width,$=S.height,x=p.offsetWidth,E=p.offsetHeight,O=Math.floor(w),I=Math.floor($);if(u.current.width!==O||u.current.height!==I||u.current.offsetWidth!==x||u.current.offsetHeight!==E){var P={width:O,height:I,offsetWidth:x,offsetHeight:E};u.current=P;var _=x===Math.round(w)?w:x,D=E===Math.round($)?$:E,R=q(q({},P),{},{offsetWidth:_,offsetHeight:D});i==null||i(R,p,b),C&&Promise.resolve().then(function(){C(R,p)})}},[]);return l.useEffect(function(){var p=v();return p&&!r&&F5(p,y),function(){return A5(p,y)}},[o.current,r]),l.createElement(H5,{ref:a},d?l.cloneElement(c,{ref:m}):c)}var W5=l.forwardRef(V5),K5="rc-observer-key";function U5(e,t){var n=e.children,r=typeof n=="function"?[n]:$r(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(K5,"-").concat(a);return l.createElement(W5,be({},e,{key:i,ref:a===0?t:void 0}),o)})}var Sr=l.forwardRef(U5);Sr.Collection=b5;function Y0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q5(e){if(Array.isArray(e))return Y0(e)}function AI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N1(e,t){if(e){if(typeof e=="string")return Y0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y0(e,t):void 0}}function G5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(e){return q5(e)||AI(e)||N1(e)||G5()}var BI=function(t){return+setTimeout(t,16)},HI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(BI=function(t){return window.requestAnimationFrame(t)},HI=function(t){return window.cancelAnimationFrame(t)});var Rx=0,_1=new Map;function VI(e){_1.delete(e)}var jt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Rx+=1;var r=Rx;function o(a){if(a===0)VI(r),t();else{var i=BI(function(){o(a-1)});_1.set(r,i)}}return o(n),r};jt.cancel=function(e){var t=_1.get(e);return VI(e),HI(t)};function WI(e){if(Array.isArray(e))return e}function Y5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function KI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return WI(e)||Y5(e,t)||N1(e,t)||KI()}function Xu(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Er(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function X0(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Px="data-rc-order",Mx="data-rc-priority",X5="rc-util-key",Q0=new Map;function UI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):X5}function Gv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Q5(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function T1(e){return Array.from((Q0.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function qI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Er())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=Q5(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(Px,i),s&&a&&c.setAttribute(Mx,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Gv(t),d=u.firstChild;if(r){if(s){var f=(t.styles||T1(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Px)))return!1;var v=Number(m.getAttribute(Mx)||0);return a>=v});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function GI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Gv(t);return(t.styles||T1(n)).find(function(r){return r.getAttribute(UI(t))===e})}function Qu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=GI(e,t);if(n){var r=Gv(t);r.removeChild(n)}}function J5(e,t){var n=Q0.get(e);if(!n||!X0(document,n)){var r=qI("",t),o=r.parentNode;Q0.set(e,o),e.removeChild(r)}}function ka(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Gv(n),o=T1(r),a=q(q({},n),{},{styles:o});J5(r,a);var i=GI(t,a);if(i){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=qI(e,a);return d.setAttribute(UI(a),t),d}function Z5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pt(e,t){if(e==null)return{};var n,r,o=Z5(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ya(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(Sn(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],u))return!1;return!0}if(a&&i&&ht(a)==="object"&&ht(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(m){return o(a[m],i[m],u)})}return!1}return o(e,t)}var eD="%";function J0(e){return e.join(eD)}var tD=function(){function e(t){Pn(this,e),B(this,"instanceId",void 0),B(this,"cache",new Map),B(this,"extracted",new Set),this.instanceId=t}return Mn(e,[{key:"get",value:function(n){return this.opGet(J0(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(J0(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Vs="data-token-hash",Go="data-css-hash",ui="__cssinjs_instance__";function nD(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Go,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ui]=o[ui]||e,o[ui]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Go,"]"))).forEach(function(o){var a=o.getAttribute(Go);if(r[a]){if(o[ui]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new tD(e)}var Sd=l.createContext({hashPriority:"low",cache:nD(),defaultCache:!0});function rD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var D1=function(){function e(){Pn(this,e),B(this,"cache",void 0),B(this,"keys",void 0),B(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Mn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=te(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=te(a,1),s=i[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!rD(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();B(D1,"MAX_CACHE_SIZE",20);B(D1,"MAX_CACHE_OFFSET",5);var Nx=0,YI=function(){function e(t){Pn(this,e),B(this,"derivatives",void 0),B(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nx,t.length===0&&(t.length>0,void 0),Nx+=1}return Mn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),jg=new D1;function Z0(e){var t=Array.isArray(e)?e:[e];return jg.has(t)||jg.set(t,new YI(t)),jg.get(t)}var oD=new WeakMap,zg={};function aD(e,t){for(var n=oD,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(zg)||n.set(zg,e()),n.get(zg)}var _x=new WeakMap;function bu(e){var t=_x.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof YI?t+=r.id:r&&ht(r)==="object"?t+=bu(r):t+=r}),t=Xu(t),_x.set(e,t)),t}function Tx(e,t){return Xu("".concat(t,"_").concat(bu(e)))}var ey=Er();function Y(e){return typeof e=="number"?"".concat(e,"px"):e}function Wm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=q(q({},r),{},B(B({},Vs,t),Go,n)),i=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var em=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},iD=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=te(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},XI=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var s,c,u=te(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,v=em(d,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(v,")")}}),[a,iD(o,n,{scope:r==null?void 0:r.scope})]},Dx=Er()?l.useLayoutEffect:l.useEffect,Dt=function(t,n){var r=l.useRef(!0);Dx(function(){return t(r.current)},n),Dx(function(){return r.current=!1,function(){r.current=!0}},[])},sl=function(t,n){Dt(function(r){if(!r)return t()},n)},lD=q({},hd),kx=lD.useInsertionEffect,sD=function(t,n,r){l.useMemo(t,r),Dt(function(){return n(!0)},r)},cD=kx?function(e,t,n){return kx(function(){return e(),t()},n)}:sD,uD=q({},hd),dD=uD.useInsertionEffect,fD=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},mD=function(){return function(t){t()}},vD=typeof dD<"u"?fD:mD;function k1(e,t,n,r,o){var a=l.useContext(Sd),i=a.cache,s=[e].concat(ze(t)),c=J0(s),u=vD([c]),d=function(h){i.opUpdate(c,function(y){var p=y||[void 0,void 0],g=te(p,2),C=g[0],b=C===void 0?0:C,S=g[1],w=S,$=w||n(),x=[b,$];return h?h(x):x})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return cD(function(){o==null||o(m)},function(v){return d(function(h){var y=te(h,2),p=y[0],g=y[1];return v&&p===0&&(o==null||o(m)),[p+1,g]}),function(){i.opUpdate(c,function(h){var y=h||[],p=te(y,2),g=p[0],C=g===void 0?0:g,b=p[1],S=C-1;return S===0?(u(function(){(v||!i.opGet(c))&&(r==null||r(b,!1))}),null):[C-1,b]})}},[c]),m}var hD={},gD="css",Wi=new Map;function pD(e){Wi.set(e,(Wi.get(e)||0)+1)}function yD(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Vs,'="').concat(e,'"]'));n.forEach(function(r){if(r[ui]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var bD=0;function CD(e,t){Wi.set(e,(Wi.get(e)||0)-1);var n=new Set;Wi.forEach(function(r,o){r<=0&&n.add(o)}),Wi.size-n.size>bD&&n.forEach(function(r){yD(r,t),Wi.delete(r)})}var SD=function(t,n,r,o){var a=r.getDerivativeToken(t),i=q(q({},a),n);return o&&(i=o(i)),i},QI="token";function xD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(Sd),o=r.cache.instanceId,a=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?hD:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=aD(function(){return Object.assign.apply(Object,[{}].concat(ze(t)))},t),h=bu(v),y=bu(u),p=m?bu(m):"",g=k1(QI,[s,e.id,h,y,p],function(){var C,b=f?f(v,u,e):SD(v,u,e,d),S=q({},b),w="";if(m){var $=XI(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),x=te($,2);b=x[0],w=x[1]}var E=Tx(b,s);b._tokenKey=E,S._tokenKey=Tx(S,s);var O=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:E;b._themeKey=O,pD(O);var I="".concat(gD,"-").concat(Xu(E));return b._hashId=I,[b,I,S,w,(m==null?void 0:m.key)||""]},function(C){CD(C[0]._themeKey,o)},function(C){var b=te(C,4),S=b[0],w=b[3];if(m&&w){var $=ka(w,Xu("css-variables-".concat(S._themeKey)),{mark:Go,prepend:"queue",attachTo:a,priority:-999});$[ui]=o,$.setAttribute(Vs,S._themeKey)}});return g}var wD=function(t,n,r){var o=te(t,5),a=o[2],i=o[3],s=o[4],c=r||{},u=c.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=Wm(i,s,d,m,u);return[f,d,v]},$D={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},JI="comm",ZI="rule",eR="decl",ED="@import",OD="@namespace",ID="@keyframes",RD="@layer",PD=Math.abs,Cu=String.fromCharCode;function tR(e){return e.trim()}function ty(e,t,n){return e.replace(t,n)}function Ps(e,t){return e.charCodeAt(t)|0}function Ws(e,t,n){return e.slice(t,n)}function ma(e){return e.length}function MD(e){return e.length}function df(e,t){return t.push(e),e}var Yv=1,Ks=1,nR=0,To=0,Zn=0,rc="";function j1(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Yv,column:Ks,length:i,return:"",siblings:s}}function ND(){return Zn}function _D(){return Zn=To>0?Ps(rc,--To):0,Ks--,Zn===10&&(Ks=1,Yv--),Zn}function Yo(){return Zn=To<nR?Ps(rc,To++):0,Ks++,Zn===10&&(Ks=1,Yv++),Zn}function di(){return Ps(rc,To)}function tm(){return To}function Xv(e,t){return Ws(rc,e,t)}function Ju(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 TD(e){return Yv=Ks=1,nR=ma(rc=e),To=0,[]}function DD(e){return rc="",e}function Lg(e){return tR(Xv(To-1,ny(e===91?e+2:e===40?e+1:e)))}function kD(e){for(;(Zn=di())&&Zn<33;)Yo();return Ju(e)>2||Ju(Zn)>3?"":" "}function jD(e,t){for(;--t&&Yo()&&!(Zn<48||Zn>102||Zn>57&&Zn<65||Zn>70&&Zn<97););return Xv(e,tm()+(t<6&&di()==32&&Yo()==32))}function ny(e){for(;Yo();)switch(Zn){case e:return To;case 34:case 39:e!==34&&e!==39&&ny(Zn);break;case 40:e===41&&ny(e);break;case 92:Yo();break}return To}function zD(e,t){for(;Yo()&&e+Zn!==57;)if(e+Zn===84&&di()===47)break;return"/*"+Xv(t,To-1)+"*"+Cu(e===47?e:Yo())}function LD(e){for(;!Ju(di());)Yo();return Xv(e,To)}function FD(e){return DD(nm("",null,null,null,[""],e=TD(e),0,[0],e))}function nm(e,t,n,r,o,a,i,s,c){for(var u=0,d=0,f=i,m=0,v=0,h=0,y=1,p=1,g=1,C=0,b=0,S="",w=o,$=a,x=r,E=S;p;)switch(h=b,b=Yo()){case 40:h!=108&&Ps(E,f-1)==58?(C++,E+="("):E+=Lg(b);break;case 41:C--,E+=")";break;case 34:case 39:case 91:E+=Lg(b);break;case 9:case 10:case 13:case 32:if(C>0){E+=Cu(b);break}E+=kD(h);break;case 92:E+=jD(tm()-1,7);continue;case 47:switch(di()){case 42:case 47:df(AD(zD(Yo(),tm()),t,n,c),c),(Ju(h||1)==5||Ju(di()||1)==5)&&ma(E)&&Ws(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*y:s[u++]=ma(E)*g;case 125*y:case 59:case 0:if(C>0&&b){E+=Cu(b);break}switch(b){case 0:case 125:p=0;case 59+d:g==-1&&(E=ty(E,/\f/g,"")),v>0&&(ma(E)-f||y===0)&&df(v>32?zx(E+";",r,n,f-1,c):zx(ty(E," ","")+";",r,n,f-2,c),c);break;case 59:E+=";";default:if(df(x=jx(E,t,n,u,d,o,s,S,w=[],$=[],f,a),a),b===123)if(d===0)nm(E,t,x,x,w,a,f,s,$);else{switch(m){case 99:if(Ps(E,3)===110)break;case 108:if(Ps(E,2)===97)break;default:d=0;case 100:case 109:case 115:}d?nm(e,x,x,r&&df(jx(e,x,x,0,0,o,s,S,o,w=[],f,$),$),o,$,f,s,r?w:$):nm(E,x,x,x,[""],$,0,s,$)}}u=d=v=0,y=g=1,S=E="",f=i;break;case 58:f=1+ma(E),v=h;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&_D()==125)continue}switch(E+=Cu(b),b*y){case 38:g=d>0?1:(E+="\f",-1);break;case 44:if(C>0)break;s[u++]=(ma(E)-1)*g,g=1;break;case 64:di()===45&&(E+=Lg(Yo())),m=di(),d=f=ma(S=E+=LD(tm())),b++;break;case 45:h===45&&ma(E)==2&&(y=0)}}return a}function jx(e,t,n,r,o,a,i,s,c,u,d,f){for(var m=o-1,v=o===0?a:[""],h=MD(v),y=0,p=0,g=0;y<r;++y)for(var C=0,b=Ws(e,m+1,m=PD(p=i[y])),S=e;C<h;++C)(S=tR(p>0?v[C]+" "+b:ty(b,/&\f/g,v[C])))&&(c[g++]=S);return j1(e,t,n,o===0?ZI:s,c,u,d,f)}function AD(e,t,n,r){return j1(e,t,n,JI,Cu(ND()),Ws(e,2,-2),0,r)}function zx(e,t,n,r,o){return j1(e,t,n,eR,Ws(e,0,r),Ws(e,r+1,-1),r,o)}function ry(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function BD(e,t,n,r){switch(e.type){case RD:if(e.children.length)break;case ED:case OD:case eR:return e.return=e.return||e.value;case JI:return"";case ID:return e.return=e.value+"{"+ry(e.children,r)+"}";case ZI:if(!ma(e.value=e.props.join(",")))return""}return ma(n=ry(e.children,r))?e.return=e.value+"{"+n+"}":""}var Lx="data-ant-cssinjs-cache-path",rR="_FILE_STYLE__",cl,oR=!0;function HD(){if(!cl&&(cl={},Er())){var e=document.createElement("div");e.className=Lx,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=te(a,2),s=i[0],c=i[1];cl[s]=c});var n=document.querySelector("style[".concat(Lx,"]"));if(n){var r;oR=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function VD(e){return HD(),!!cl[e]}function WD(e){var t=cl[e],n=null;if(t&&Er())if(oR)n=rR;else{var r=document.querySelector("style[".concat(Go,'="').concat(cl[e],'"]'));r?n=r.innerHTML:delete cl[e]}return[n,t]}var KD="_skip_check_",aR="_multi_value_";function rm(e){var t=ry(FD(e),BD);return t.replace(/\{%%%\:[^;];}/g,";")}function UD(e){return ht(e)==="object"&&e&&(KD in e||aR in e)}function Fx(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(ze(c.slice(1))).join(" ")});return a.join(",")}var qD=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",v={};function h(g){var C=g.getName(s);if(!v[C]){var b=e(g.style,n,{root:!1,parentSelectors:i}),S=te(b,1),w=S[0];v[C]="@keyframes ".concat(g.getName(s)).concat(w)}}function y(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return g.forEach(function(b){Array.isArray(b)?y(b,C):b&&C.push(b)}),C}var p=y(Array.isArray(t)?t:[t]);return p.forEach(function(g){var C=typeof g=="string"&&!o?{}:g;if(typeof C=="string")m+="".concat(C,`
55
+ `);else if(C._keyframe)h(C);else{var b=f.reduce(function(S,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,S))||S},C);Object.keys(b).forEach(function(S){var w=b[S];if(ht(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!UD(w)){var $=!1,x=S.trim(),E=!1;(o||a)&&s?x.startsWith("@")?$=!0:x==="&"?x=Fx("",s,u):x=Fx(S,s,u):o&&!s&&(x==="&"||x==="")&&(x="",E=!0);var O=e(w,n,{root:E,injectHash:$,parentSelectors:[].concat(ze(i),[x])}),I=te(O,2),P=I[0],_=I[1];v=q(q({},v),_),m+="".concat(x).concat(P)}else{let N=function(M,k){var T=M.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),z=k;!$D[M]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),M==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(h(k),z=k.getName(s)),m+="".concat(T,":").concat(z,";")};var D,R=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;ht(w)==="object"&&w!==null&&w!==void 0&&w[aR]&&Array.isArray(R)?R.forEach(function(M){N(S,M)}):N(S,R)}})}}),o?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(g){return"@layer ".concat(g,", ").concat(c.name,";")}).join(`
56
+ `))):m="{".concat(m,"}"),[m,v]};function iR(e,t){return Xu("".concat(e.join("%")).concat(t))}function GD(){return null}var lR="style";function oy(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(Sd),f=d.autoClear;d.mock;var m=d.defaultCache,v=d.hashPriority,h=d.container,y=d.ssrInline,p=d.transformers,g=d.linters,C=d.cache,b=d.layer,S=n._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,ze(r));var $=ey,x=k1(lR,w,function(){var _=w.join("|");if(VD(_)){var D=WD(_),R=te(D,2),N=R[0],M=R[1];if(N)return[N,S,M,{},s,u]}var k=t(),T=qD(k,{hashId:o,hashPriority:v,layer:b?a:void 0,path:r.join("-"),transformers:p,linters:g}),z=te(T,2),j=z[0],L=z[1],F=rm(j),A=iR(w,F);return[F,S,A,L,s,u]},function(_,D){var R=te(_,3),N=R[2];(D||f)&&ey&&Qu(N,{mark:Go,attachTo:h})},function(_){var D=te(_,4),R=D[0];D[1];var N=D[2],M=D[3];if($&&R!==rR){var k={mark:Go,prepend:b?!1:"queue",attachTo:h,priority:u},T=typeof i=="function"?i():i;T&&(k.csp={nonce:T});var z=[],j=[];Object.keys(M).forEach(function(F){F.startsWith("@layer")?z.push(F):j.push(F)}),z.forEach(function(F){ka(rm(M[F]),"_layer-".concat(F),q(q({},k),{},{prepend:!0}))});var L=ka(R,N,k);L[ui]=C.instanceId,L.setAttribute(Vs,S),j.forEach(function(F){ka(rm(M[F]),"_effect-".concat(F),k)})}}),E=te(x,3),O=E[0],I=E[1],P=E[2];return function(_){var D;return!y||$||!m?D=l.createElement(GD,null):D=l.createElement("style",be({},B(B({},Vs,I),Go,P),{dangerouslySetInnerHTML:{__html:O}})),l.createElement(l.Fragment,null,D,_)}}var YD=function(t,n,r){var o=te(t,6),a=o[0],i=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var v=a,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=Wm(a,i,s,h,m),c&&Object.keys(c).forEach(function(y){if(!n[y]){n[y]=!0;var p=rm(c[y]),g=Wm(p,i,"_effect-".concat(y),h,m);y.startsWith("@layer")?v=g+v:v+=g}}),[d,s,v]},sR="cssVar",XD=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(Sd),f=d.cache.instanceId,m=d.container,v=s._tokenKey,h=[].concat(ze(t.path),[r,u,v]),y=k1(sR,h,function(){var p=n(),g=XI(p,r,{prefix:o,unitless:a,ignore:i,scope:u}),C=te(g,2),b=C[0],S=C[1],w=iR(h,S);return[b,S,w,r]},function(p){var g=te(p,3),C=g[2];ey&&Qu(C,{mark:Go,attachTo:m})},function(p){var g=te(p,3),C=g[1],b=g[2];if(C){var S=ka(C,b,{mark:Go,prepend:"queue",attachTo:m,priority:-999});S[ui]=f,S.setAttribute(Vs,r)}});return y},QD=function(t,n,r){var o=te(t,4),a=o[1],i=o[2],s=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Wm(a,s,i,f,u);return[d,i,m]};B(B(B({},lR,YD),QI,wD),sR,QD);var nn=function(){function e(t,n){Pn(this,e),B(this,"name",void 0),B(this,"style",void 0),B(this,"_keyframe",!0),this.name=t,this.style=n}return Mn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Hl(e){return e.notSplit=!0,e}Hl(["borderTop","borderBottom"]),Hl(["borderTop"]),Hl(["borderBottom"]),Hl(["borderLeft","borderRight"]),Hl(["borderLeft"]),Hl(["borderRight"]);var z1=l.createContext({});function cR(e){return WI(e)||AI(e)||N1(e)||KI()}function Hr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function uR(e,t,n,r){if(!t.length)return n;var o=cR(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=ze(e):s=q({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=uR(s[a],i,n,r),s}function $o(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Hr(e,t.slice(0,-1))?e:uR(e,t,n,r)}function JD(e){return ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ax(e){return Array.isArray(e)?[]:{}}var ZD=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ps(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ax(t[0]);return t.forEach(function(o){function a(i,s){var c=new Set(s),u=Hr(o,i),d=Array.isArray(u);if(d||JD(u)){if(!c.has(u)){c.add(u);var f=Hr(r,i);d?r=$o(r,i,[]):(!f||ht(f)!=="object")&&(r=$o(r,i,Ax(u))),ZD(u).forEach(function(m){a([].concat(ze(i),[m]),c)})}}else r=$o(r,i,u)}a([])}),r}function ek(){}const tk=l.createContext({}),Di=()=>{const e=()=>{};return e.deprecated=ek,e},dR=l.createContext(void 0);var fR={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"},nk={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},rk=q(q({},nk),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const mR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Km={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},rk),timePickerLocale:Object.assign({},mR)},oo="${label} is not a valid ${type}",ea={locale:"en",Pagination:fR,DatePicker:Km,TimePicker:mR,Calendar:Km,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:oo,method:oo,array:oo,object:oo,number:oo,date:oo,boolean:oo,integer:oo,float:oo,regexp:oo,email:oo,url:oo,hex:oo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let om=Object.assign({},ea.Modal),am=[];const Bx=()=>am.reduce((e,t)=>Object.assign(Object.assign({},e),t),ea.Modal);function ok(e){if(e){const t=Object.assign({},e);return am.push(t),om=Bx(),()=>{am=am.filter(n=>n!==t),om=Bx()}}om=Object.assign({},ea.Modal)}function vR(){return om}const L1=l.createContext(void 0),yo=(e,t)=>{const n=l.useContext(L1),r=l.useMemo(()=>{var a;const i=t||ea[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=l.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?ea.locale:a},[n]);return[r,o]},ak="internalMark",ik=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>ok(t==null?void 0:t.Modal),[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(L1.Provider,{value:o},n)},hR={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"},Zu=Object.assign(Object.assign({},hR),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
57
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
58
+ '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}),cr=Math.round;function Fg(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Hx=(e,t,n)=>n===0?e:e/100;function zc(e,t){const n=t||255;return e>n?n:e<0?0:e}class Kt{constructor(t){B(this,"isValid",!0),B(this,"r",0),B(this,"g",0),B(this,"b",0),B(this,"a",1),B(this,"_h",void 0),B(this,"_s",void 0),B(this,"_l",void 0),B(this,"_v",void 0),B(this,"_max",void 0),B(this,"_min",void 0),B(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let a=function(i){return o.startsWith(i)};var r=a;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):a("rgb")?this.fromRgbString(o):a("hsl")?this.fromHslString(o):(a("hsv")||a("hsb"))&&this.fromHsvString(o)}else if(t instanceof Kt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=zc(t.r),this.g=zc(t.g),this.b=zc(t.b),this.a=typeof t.a=="number"?zc(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=cr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=s=>(r[s]-this[s])*o+this[s],i={r:cr(a("r")),g:cr(a("g")),b:cr(a("b")),a:cr(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>cr((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=cr(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=cr(this.getSaturation()*100),r=cr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=zc(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=cr(r*255);this.r=m,this.g=m,this.b=m}let a=0,i=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,i=d):c>=1&&c<2?(a=d,i=u):c>=2&&c<3?(i=u,s=d):c>=3&&c<4?(i=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const f=r-u/2;this.r=cr((a+f)*255),this.g=cr((i+f)*255),this.b=cr((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=cr(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,s=Math.floor(i),c=i-s,u=cr(r*(1-n)*255),d=cr(r*(1-n*c)*255),f=cr(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=Fg(t,Hx);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Fg(t,Hx);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Fg(t,(r,o)=>o.includes("%")?cr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var ff=2,Vx=.16,lk=.05,sk=.05,ck=.15,gR=5,pR=4,uk=[{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 Wx(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ff*t:Math.round(e.h)+ff*t:r=n?Math.round(e.h)+ff*t:Math.round(e.h)-ff*t,r<0?r+=360:r>=360&&(r-=360),r}function Kx(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Vx*t:t===pR?r=e.s+Vx:r=e.s+lk*t,r>1&&(r=1),n&&t===gR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Ux(e,t,n){var r;return n?r=e.v+sk*t:r=e.v-ck*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ed(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Kt(e),o=r.toHsv(),a=gR;a>0;a-=1){var i=new Kt({h:Wx(o,a,!0),s:Kx(o,a,!0),v:Ux(o,a,!0)});n.push(i)}n.push(r);for(var s=1;s<=pR;s+=1){var c=new Kt({h:Wx(o,s),s:Kx(o,s),v:Ux(o,s)});n.push(c)}return t.theme==="dark"?uk.map(function(u){var d=u.index,f=u.amount;return new Kt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Ag={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"},ay=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ay.primary=ay[5];var iy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];iy.primary=iy[5];var ly=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ly.primary=ly[5];var Um=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Um.primary=Um[5];var sy=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sy.primary=sy[5];var cy=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];cy.primary=cy[5];var uy=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];uy.primary=uy[5];var dy=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];dy.primary=dy[5];var qm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qm.primary=qm[5];var fy=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];fy.primary=fy[5];var my=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];my.primary=my[5];var vy=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vy.primary=vy[5];var hy=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];hy.primary=hy[5];var Bg={red:ay,volcano:iy,orange:ly,gold:Um,yellow:sy,lime:cy,green:uy,cyan:dy,blue:qm,geekblue:fy,purple:my,magenta:vy,grey:hy};function dk(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=t(s),f=t(r),m=t(o),v=t(a),h=t(i),y=n(c,u),p=e.colorLink||e.colorInfo,g=t(p),C=new Kt(v[1]).mix(new Kt(v[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:C,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Kt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const fk=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function mk(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},fk(r))}const vk=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function im(e){return(e+8)/e}function hk(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:im(n)}))}const gk=e=>{const t=hk(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function pk(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const bo=(e,t)=>new Kt(e).setA(t).toRgbString(),Lc=(e,t)=>new Kt(e).darken(t).toHexString(),yk=e=>{const t=ed(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]}},bk=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:bo(r,.88),colorTextSecondary:bo(r,.65),colorTextTertiary:bo(r,.45),colorTextQuaternary:bo(r,.25),colorFill:bo(r,.15),colorFillSecondary:bo(r,.06),colorFillTertiary:bo(r,.04),colorFillQuaternary:bo(r,.02),colorBgSolid:bo(r,1),colorBgSolidHover:bo(r,.75),colorBgSolidActive:bo(r,.95),colorBgLayout:Lc(n,4),colorBgContainer:Lc(n,0),colorBgElevated:Lc(n,0),colorBgSpotlight:bo(r,.85),colorBgBlur:"transparent",colorBorder:Lc(n,15),colorBorderSecondary:Lc(n,6)}};function Ck(e){Ag.pink=Ag.magenta,Bg.pink=Bg.magenta;const t=Object.keys(hR).map(n=>{const r=e[n]===Ag[n]?Bg[n]:ed(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),dk(e,{generateColorPalettes:yk,generateNeutralColorPalettes:bk})),gk(e.fontSize)),pk(e)),vk(e)),mk(e))}const yR=Z0(Ck),gy={token:Zu,override:{override:Zu},hashed:!0},bR=le.createContext(gy),td="ant",Qv="anticon",Sk=["outlined","borderless","filled","underlined"],xk=(e,t)=>t||(e?`${td}-${e}`:td),Et=l.createContext({getPrefixCls:xk,iconPrefixCls:Qv}),{Consumer:mle}=Et,qx={};function gr(e){const t=l.useContext(Et),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:qx,styles:qx},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const wk=`-ant-${Date.now()}-${Math.random()}`;function $k(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(i,s)=>{const c=new Kt(i),u=ed(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Kt(t.primaryColor),s=ed(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const c=new Kt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
59
+ :root {
60
+ ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
61
+ `)}
62
+ }
63
+ `.trim()}function Ek(e,t){const n=$k(e,t);Er()&&ka(n,`${wk}-dynamic-theme`)}const zr=l.createContext(!1),F1=({children:e,disabled:t})=>{const n=l.useContext(zr);return l.createElement(zr.Provider,{value:t??n},e)},gl=l.createContext(void 0),Ok=({children:e,size:t})=>{const n=l.useContext(gl);return l.createElement(gl.Provider,{value:t||n},e)};function Ik(){const e=l.useContext(zr),t=l.useContext(gl);return{componentDisabled:e,componentSize:t}}var CR=Mn(function e(){Pn(this,e)}),SR="CALC_UNIT",Rk=new RegExp(SR,"g");function Hg(e){return typeof e=="number"?"".concat(e).concat(SR):e}var Pk=function(e){xa(n,e);var t=wa(n);function n(r,o){var a;Pn(this,n),a=t.call(this),B(St(a),"result",""),B(St(a),"unitlessCssVar",void 0),B(St(a),"lowPriority",void 0);var i=ht(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=Hg(r):i==="string"&&(a.result=r),a}return Mn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Hg(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Hg(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(Rk,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(CR),Mk=function(e){xa(n,e);var t=wa(n);function n(r){var o;return Pn(this,n),o=t.call(this),B(St(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Mn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(CR),Nk=function(t,n){var r=t==="css"?Pk:Mk;return function(o){return new r(o,n)}},Gx=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function zt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function pl(e){var t=l.useRef(!1),n=l.useState(e),r=te(n,2),o=r[0],a=r[1];l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,c){c&&t.current||a(s)}return[o,i]}function Vg(e){return e!==void 0}function en(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=pl(function(){return Vg(o)?o:Vg(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=te(s,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=i?i(f):f,v=zt(a),h=pl([f]),y=te(h,2),p=y[0],g=y[1];sl(function(){var b=p[0];u!==b&&v(u,b)},[p]),sl(function(){Vg(o)||d(o)},[o]);var C=zt(function(b,S){d(b,S),g([f],S)});return[m,C]}function Yx(e,t,n,r){var o=q({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var c=te(s,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var i=q(q({},n),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var xR=typeof CSSINJS_STATISTIC<"u",py=!0;function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!xR)return Object.assign.apply(Object,[{}].concat(t));py=!1;var r={};return t.forEach(function(o){if(ht(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),py=!0,r}var Xx={};function _k(){}var Tk=function(t){var n,r=t,o=_k;return xR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){if(py){var c;(c=n)===null||c===void 0||c.add(s)}return i[s]}}),o=function(i,s){var c;Xx[i]={global:Array.from(n),component:q(q({},(c=Xx[i])===null||c===void 0?void 0:c.component),s)}}),{token:r,keys:n,flush:o}};function Qx(e,t,n){if(typeof n=="function"){var r;return n(At(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Dk(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(a){return Y(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(a){return Y(a)}).join(","),")")}}}var kk=1e3*60*10,jk=function(){function e(){Pn(this,e),B(this,"map",new Map),B(this,"objectIDMap",new WeakMap),B(this,"nextID",0),B(this,"lastAccessBeat",new Map),B(this,"accessBeat",0)}return Mn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(a){return a&&ht(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(ht(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,a){r-o>kk&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),Jx=new jk;function zk(e,t){return le.useMemo(function(){var n=Jx.get(t);if(n)return n;var r=e();return Jx.set(t,r),r},t)}var Lk=function(){return{}};function Fk(e){var t=e.useCSP,n=t===void 0?Lk:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(m,v,h,y){var p=Array.isArray(m)?m[0]:m;function g(E){return"".concat(String(p)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var C=(y==null?void 0:y.unitless)||{},b=typeof s=="function"?s(m):{},S=q(q({},b),{},B({},g("zIndexPopup"),!0));Object.keys(C).forEach(function(E){S[g(E)]=C[E]});var w=q(q({},y),{},{unitless:S,prefixToken:g}),$=d(m,v,h,w),x=u(p,h,w);return function(E){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,I=$(E,O),P=te(I,2),_=P[1],D=x(O),R=te(D,2),N=R[0],M=R[1];return[N,_,M]}}function u(m,v,h){var y=h.unitless,p=h.injectStyle,g=p===void 0?!0:p,C=h.prefixToken,b=h.ignore,S=function(x){var E=x.rootCls,O=x.cssVar,I=O===void 0?{}:O,P=r(),_=P.realToken;return XD({path:[m],prefix:I.prefix,key:I.key,unitless:y,ignore:b,token:_,scope:E},function(){var D=Qx(m,_,v),R=Yx(m,_,D,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(D).forEach(function(N){R[C(N)]=R[N],delete R[N]}),R}),null},w=function(x){var E=r(),O=E.cssVar;return[function(I){return g&&O?le.createElement(le.Fragment,null,le.createElement(S,{rootCls:x,cssVar:O,component:m}),I):I},O==null?void 0:O.key]};return w}function d(m,v,h){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(m)?m:[m,m],g=te(p,1),C=g[0],b=p.join("-"),S=e.layer||{name:"antd"};return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,x=r(),E=x.theme,O=x.realToken,I=x.hashId,P=x.token,_=x.cssVar,D=o(),R=D.rootPrefixCls,N=D.iconPrefixCls,M=n(),k=_?"css":"js",T=zk(function(){var H=new Set;return _&&Object.keys(y.unitless||{}).forEach(function(U){H.add(em(U,_.prefix)),H.add(em(U,Gx(C,_.prefix)))}),Nk(k,H)},[k,C,_==null?void 0:_.prefix]),z=Dk(k),j=z.max,L=z.min,F={theme:E,token:P,hashId:I,nonce:function(){return M.nonce},clientOnly:y.clientOnly,layer:S,order:y.order||-999};typeof a=="function"&&oy(q(q({},F),{},{clientOnly:!1,path:["Shared",R]}),function(){return a(P,{prefix:{rootPrefixCls:R,iconPrefixCls:N},csp:M})});var A=oy(q(q({},F),{},{path:[b,w,N]}),function(){if(y.injectStyle===!1)return[];var H=Tk(P),U=H.token,X=H.flush,ee=Qx(C,O,h),J=".".concat(w),oe=Yx(C,O,ee,{deprecatedTokens:y.deprecatedTokens});_&&ee&&ht(ee)==="object"&&Object.keys(ee).forEach(function(fe){ee[fe]="var(".concat(em(fe,Gx(C,_.prefix)),")")});var ue=At(U,{componentCls:J,prefixCls:w,iconCls:".".concat(N),antCls:".".concat(R),calc:T,max:j,min:L},_?ee:oe),se=v(ue,{hashId:I,prefixCls:w,rootPrefixCls:R,iconPrefixCls:N});X(C,oe);var Q=typeof i=="function"?i(ue,w,$,y.resetFont):null;return[y.resetStyle===!1?null:Q,se]});return[A,I]}}function f(m,v,h){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=d(m,v,h,q({resetStyle:!1,order:-998},y)),g=function(b){var S=b.prefixCls,w=b.rootCls,$=w===void 0?S:w;return p(S,$),null};return g}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const $i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Ak="5.29.3";function Wg(e){return e>=0&&e<=255}function ru(e,t){const{r:n,g:r,b:o,a}=new Kt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:c}=new Kt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Wg(d)&&Wg(f)&&Wg(m))return new Kt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Kt({r:n,g:r,b:o,a:1}).toRgbString()}var Bk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wR(e){const{override:t}=e,n=Bk(e,["override"]),r=Object.assign({},t);Object.keys(Zu).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ru(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ru(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ru(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ru(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
64
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
65
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
66
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
67
+ `,boxShadowSecondary:`
68
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
69
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
70
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
71
+ `,boxShadowTertiary:`
72
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
73
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
74
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
75
+ `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
76
+ 0 1px 2px -2px ${new Kt("rgba(0, 0, 0, 0.16)").toRgbString()},
77
+ 0 3px 6px 0 ${new Kt("rgba(0, 0, 0, 0.12)").toRgbString()},
78
+ 0 5px 12px 4px ${new Kt("rgba(0, 0, 0, 0.09)").toRgbString()}
79
+ `,boxShadowDrawerRight:`
80
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
81
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
82
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
83
+ `,boxShadowDrawerLeft:`
84
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
85
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
86
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
87
+ `,boxShadowDrawerUp:`
88
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
89
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
90
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
91
+ `,boxShadowDrawerDown:`
92
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
93
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
94
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
95
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Zx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $R={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},Hk={motionBase:!0,motionUnit:!0},Vk={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},ER=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Zx(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=wR(i),a&&Object.entries(a).forEach(([s,c])=>{const{theme:u}=c,d=Zx(c,["theme"]);let f=d;u&&(f=ER(Object.assign(Object.assign({},i),d),{override:d},u)),i[s]=f}),i};function Ir(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=le.useContext(bR),a=`${Ak}-${t||""}`,i=n||yR,[s,c,u]=xD(i,[Zu,e],{salt:a,override:r,getComputedToken:ER,formatToken:wR,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$R,ignore:Hk,preserve:Vk}});return[i,u,t?c:"",s,o]}const ta={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},tn=(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}),oc=()=>({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"}}),Ei=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Wk=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Kk=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},na=(e,t)=>({outline:`${Y(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),ra=(e,t)=>({"&:focus-visible":na(e,t)}),OR=e=>({[`.${e}`]:Object.assign(Object.assign({},oc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),A1=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ra(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Gt,genComponentStyleHook:Uk,genSubStyleComponent:ac}=Fk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(Et);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ir();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=l.useContext(Et);return e??{}},getResetStyles:(e,t)=>{var n;const r=Wk(e);return[r,{"&":r},OR((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Qv)]},getCommonStyle:Kk,getCompUnitless:()=>$R});function IR(e,t){return $i.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const qk=(e,t)=>{const[n,r]=Ir();return oy({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>OR(e))},Gk=Object.assign({},hd),{useId:ew}=Gk,Yk=()=>"",Xk=typeof ew>"u"?Yk:ew;function Qk(e,t,n){var r;Di();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},gy),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:gy.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Xk();return Ol(()=>{var s,c;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(s,c)=>s.some((u,d)=>{const f=c[d];return!ya(u,f,!0)}))}var Jk=["children"],RR=l.createContext({});function Zk(e){var t=e.children,n=Pt(e,Jk);return l.createElement(RR.Provider,{value:n},t)}var ej=function(e){xa(n,e);var t=wa(n);function n(){return Pn(this,n),t.apply(this,arguments)}return Mn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function tj(e){var t=l.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],o=l.useRef(e),a=zt(function(){return o.current}),i=zt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,i]}var Xa="none",mf="appear",vf="enter",hf="leave",tw="none",Vo="prepare",ys="start",bs="active",B1="end",PR="prepared";function nw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function nj(e,t){var n={animationend:nw("Animation","AnimationEnd"),transitionend:nw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var rj=nj(Er(),typeof window<"u"?window:{}),MR={};if(Er()){var oj=document.createElement("div");MR=oj.style}var gf={};function NR(e){if(gf[e])return gf[e];var t=rj[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in MR)return gf[e]=t[a],gf[e]}return""}var _R=NR("animationend"),TR=NR("transitionend"),DR=!!(_R&&TR),rw=_R||"animationend",ow=TR||"transitionend";function aw(e,t){if(!e)return null;if(ht(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const aj=function(e){var t=l.useRef();function n(o){o&&(o.removeEventListener(ow,e),o.removeEventListener(rw,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(ow,e),o.addEventListener(rw,e),t.current=o)}return l.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var kR=Er()?l.useLayoutEffect:l.useEffect;const ij=function(){var e=l.useRef(null);function t(){jt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=jt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var lj=[Vo,ys,bs,B1],sj=[Vo,PR],jR=!1,cj=!0;function zR(e){return e===bs||e===B1}const uj=function(e,t,n){var r=pl(tw),o=te(r,2),a=o[0],i=o[1],s=ij(),c=te(s,2),u=c[0],d=c[1];function f(){i(Vo,!0)}var m=t?sj:lj;return kR(function(){if(a!==tw&&a!==B1){var v=m.indexOf(a),h=m[v+1],y=n(a);y===jR?i(h,!0):h&&u(function(p){function g(){p.isCanceled()||i(h,!0)}y===!0?g():Promise.resolve(y).then(g)})}},[e,a]),l.useEffect(function(){return function(){d()}},[]),[f,a]};function dj(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,y=r.onAppearStart,p=r.onEnterStart,g=r.onLeaveStart,C=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,$=r.onEnterEnd,x=r.onLeaveEnd,E=r.onVisibleChanged,O=pl(),I=te(O,2),P=I[0],_=I[1],D=tj(Xa),R=te(D,2),N=R[0],M=R[1],k=pl(null),T=te(k,2),z=T[0],j=T[1],L=N(),F=l.useRef(!1),A=l.useRef(null);function H(){return n()}var U=l.useRef(!1);function X(){M(Xa),j(null,!0)}var ee=zt(function(ve){var $e=N();if($e!==Xa){var Ee=H();if(!(ve&&!ve.deadline&&ve.target!==Ee)){var we=U.current,Ae;$e===mf&&we?Ae=w==null?void 0:w(Ee,ve):$e===vf&&we?Ae=$==null?void 0:$(Ee,ve):$e===hf&&we&&(Ae=x==null?void 0:x(Ee,ve)),we&&Ae!==!1&&X()}}}),J=aj(ee),oe=te(J,1),ue=oe[0],se=function($e){switch($e){case mf:return B(B(B({},Vo,m),ys,y),bs,C);case vf:return B(B(B({},Vo,v),ys,p),bs,b);case hf:return B(B(B({},Vo,h),ys,g),bs,S);default:return{}}},Q=l.useMemo(function(){return se(L)},[L]),fe=uj(L,!e,function(ve){if(ve===Vo){var $e=Q[Vo];return $e?$e(H()):jR}if(re in Q){var Ee;j(((Ee=Q[re])===null||Ee===void 0?void 0:Ee.call(Q,H(),null))||null)}return re===bs&&L!==Xa&&(ue(H()),d>0&&(clearTimeout(A.current),A.current=setTimeout(function(){ee({deadline:!0})},d))),re===PR&&X(),cj}),de=te(fe,2),ie=de[0],re=de[1],he=zR(re);U.current=he;var ge=l.useRef(null);kR(function(){if(!(F.current&&ge.current===t)){_(t);var ve=F.current;F.current=!0;var $e;!ve&&t&&s&&($e=mf),ve&&t&&a&&($e=vf),(ve&&!t&&u||!ve&&f&&!t&&u)&&($e=hf);var Ee=se($e);$e&&(e||Ee[Vo])?(M($e),ie()):M(Xa),ge.current=t}},[t]),l.useEffect(function(){(L===mf&&!s||L===vf&&!a||L===hf&&!u)&&M(Xa)},[s,a,u]),l.useEffect(function(){return function(){F.current=!1,clearTimeout(A.current)}},[]);var Ne=l.useRef(!1);l.useEffect(function(){P&&(Ne.current=!0),P!==void 0&&L===Xa&&((Ne.current||P)&&(E==null||E(P)),Ne.current=!0)},[P,L]);var Pe=z;return Q[Vo]&&re===ys&&(Pe=q({transition:"none"},Pe)),[L,re,Pe,P??t]}function fj(e){var t=e;ht(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=l.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,h=o.eventProps,y=l.useContext(RR),p=y.motion,g=n(o,p),C=l.useRef(),b=l.useRef();function S(){try{return C.current instanceof HTMLElement?C.current:Zf(b.current)}catch{return null}}var w=dj(g,s,S,o),$=te(w,4),x=$[0],E=$[1],O=$[2],I=$[3],P=l.useRef(I);I&&(P.current=!0);var _=l.useCallback(function(T){C.current=T,qu(a,T)},[a]),D,R=q(q({},h),{},{visible:s});if(!f)D=null;else if(x===Xa)I?D=f(q({},R),_):!u&&P.current&&v?D=f(q(q({},R),{},{className:v}),_):d||!u&&!v?D=f(q(q({},R),{},{style:{display:"none"}}),_):D=null;else{var N;E===Vo?N="prepare":zR(E)?N="active":E===ys&&(N="start");var M=aw(m,"".concat(x,"-").concat(N));D=f(q(q({},R),{},{className:Z(aw(m,x),B(B({},M,M&&N),m,typeof m=="string")),style:O}),_)}if(l.isValidElement(D)&&Zo(D)){var k=Ti(D);k||(D=l.cloneElement(D,{ref:_}))}return l.createElement(ej,{ref:b},D)});return r.displayName="CSSMotion",r}const ko=fj(DR);var yy="add",by="keep",Cy="remove",Kg="removed";function mj(e){var t;return e&&ht(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Sy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mj)}function vj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Sy(e),i=Sy(t);a.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=i[f];if(m.key===u.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return q(q({},v),{},{status:yy})})),r=f),n.push(q(q({},m),{},{status:by})),r+=1,d=!0;break}}d||n.push(q(q({},u),{},{status:Cy}))}),r<o&&(n=n.concat(i.slice(r).map(function(u){return q(q({},u),{},{status:yy})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==Cy}),n.forEach(function(d){d.key===u&&(d.status=by)})}),n}var hj=["component","children","onVisibleChanged","onAllRemoved"],gj=["status"],pj=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function yj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ko,n=function(r){xa(a,r);var o=wa(a);function a(){var i;Pn(this,a);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return i=o.call.apply(o,[this].concat(c)),B(St(i),"state",{keyEntities:[]}),B(St(i),"removeKey",function(d){i.setState(function(f){var m=f.keyEntities.map(function(v){return v.key!==d?v:q(q({},v),{},{status:Kg})});return{keyEntities:m}},function(){var f=i.state.keyEntities,m=f.filter(function(v){var h=v.status;return h!==Kg}).length;m===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Mn(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var v=Pt(u,hj),h=d||l.Fragment,y={};return pj.forEach(function(p){y[p]=v[p],delete v[p]}),delete v.keys,l.createElement(h,v,c.map(function(p,g){var C=p.status,b=Pt(p,gj),S=C===yy||C===by;return l.createElement(t,be({},y,{key:b.key,visible:S,eventProps:b,onVisibleChanged:function($){m==null||m($,{key:b.key}),$||s.removeKey(b.key)}}),function(w,$){return f(q(q({},w),{},{index:g}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,f=Sy(u),m=vj(d,f);return{keyEntities:m.filter(function(v){var h=d.find(function(y){var p=y.key;return v.key===p});return!(h&&h.status===Kg&&v.status===Cy)})}}}]),a}(l.Component);return B(n,"defaultProps",{component:"div"}),n}const LR=yj(DR),iw=l.createContext(!0);function bj(e){const t=l.useContext(iw),{children:n}=e,[,r]=Ir(),{motion:o}=r,a=l.useRef(!1);return a.current||(a.current=t!==o),a.current?l.createElement(iw.Provider,{value:o},l.createElement(Zk,{motion:o},n)):n}const Cj=()=>null;var Sj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xj=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Gm,FR,AR,BR;function lm(){return Gm||td}function wj(){return FR||Qv}function $j(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Ej=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Gm=t),n!==void 0&&(FR=n),"holderRender"in e&&(BR=o),r&&($j(r)?Ek(lm(),r):AR=r)},HR=()=>({getPrefixCls:(e,t)=>t||(e?`${lm()}-${e}`:lm()),getIconPrefixCls:wj,getRootPrefixCls:()=>Gm||lm(),getTheme:()=>AR,holderRender:BR}),Oj=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:y,legacyLocale:p,parentContext:g,iconPrefixCls:C,theme:b,componentDisabled:S,segmented:w,statistic:$,spin:x,calendar:E,carousel:O,cascader:I,collapse:P,typography:_,checkbox:D,descriptions:R,divider:N,drawer:M,skeleton:k,steps:T,image:z,layout:j,list:L,mentions:F,modal:A,progress:H,result:U,slider:X,breadcrumb:ee,menu:J,pagination:oe,input:ue,textArea:se,empty:Q,badge:fe,radio:de,rate:ie,switch:re,transfer:he,avatar:ge,message:Ne,tag:Pe,table:ve,card:$e,tabs:Ee,timeline:we,timePicker:Ae,upload:Le,notification:Ye,tree:Ke,colorPicker:He,datePicker:Ue,rangePicker:Me,flex:Se,wave:Fe,dropdown:xe,warning:Te,tour:Oe,tooltip:Ie,popover:je,popconfirm:qe,floatButton:ut,floatButtonGroup:bt,variant:Ge,inputNumber:tt,treeSelect:rt}=e,V=l.useCallback((Be,Ve)=>{const{prefixCls:ke}=e;if(Ve)return Ve;const _e=ke||g.getPrefixCls("");return Be?`${_e}-${Be}`:_e},[g.getPrefixCls,e.prefixCls]),ae=C||g.iconPrefixCls||Qv,me=n||g.csp;qk(ae,me);const Ce=Qk(b,g.theme,{prefixCls:V("")}),pe={csp:me,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||p,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:h??v,popupOverflow:y,getPrefixCls:V,iconPrefixCls:ae,theme:Ce,segmented:w,statistic:$,spin:x,calendar:E,carousel:O,cascader:I,collapse:P,typography:_,checkbox:D,descriptions:R,divider:N,drawer:M,skeleton:k,steps:T,image:z,input:ue,textArea:se,layout:j,list:L,mentions:F,modal:A,progress:H,result:U,slider:X,breadcrumb:ee,menu:J,pagination:oe,empty:Q,badge:fe,radio:de,rate:ie,switch:re,transfer:he,avatar:ge,message:Ne,tag:Pe,table:ve,card:$e,tabs:Ee,timeline:we,timePicker:Ae,upload:Le,notification:Ye,tree:Ke,colorPicker:He,datePicker:Ue,rangePicker:Me,flex:Se,wave:Fe,dropdown:xe,warning:Te,tour:Oe,tooltip:Ie,popover:je,popconfirm:qe,floatButton:ut,floatButtonGroup:bt,variant:Ge,inputNumber:tt,treeSelect:rt},Re=Object.assign({},g);Object.keys(pe).forEach(Be=>{pe[Be]!==void 0&&(Re[Be]=pe[Be])}),xj.forEach(Be=>{const Ve=e[Be];Ve&&(Re[Be]=Ve)}),typeof r<"u"&&(Re.button=Object.assign({autoInsertSpace:r},Re.button));const W=Ol(()=>Re,Re,(Be,Ve)=>{const ke=Object.keys(Be),_e=Object.keys(Ve);return ke.length!==_e.length||ke.some(We=>Be[We]!==Ve[We])}),{layer:K}=l.useContext(Sd),G=l.useMemo(()=>({prefixCls:ae,csp:me,layer:K?"antd":void 0}),[ae,me,K]);let ce=l.createElement(l.Fragment,null,l.createElement(Cj,{dropdownMatchSelectWidth:v}),t);const ye=l.useMemo(()=>{var Be,Ve,ke,_e;return ps(((Be=ea.Form)===null||Be===void 0?void 0:Be.defaultValidateMessages)||{},((ke=(Ve=W.locale)===null||Ve===void 0?void 0:Ve.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((_e=W.form)===null||_e===void 0?void 0:_e.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[W,i==null?void 0:i.validateMessages]);Object.keys(ye).length>0&&(ce=l.createElement(dR.Provider,{value:ye},ce)),s&&(ce=l.createElement(ik,{locale:s,_ANT_MARK__:ak},ce)),ce=l.createElement(z1.Provider,{value:G},ce),c&&(ce=l.createElement(Ok,{size:c},ce)),ce=l.createElement(bj,null,ce);const De=l.useMemo(()=>{const Be=Ce||{},{algorithm:Ve,token:ke,components:_e,cssVar:We}=Be,Ze=Sj(Be,["algorithm","token","components","cssVar"]),st=Ve&&(!Array.isArray(Ve)||Ve.length>0)?Z0(Ve):yR,$t={};Object.entries(_e||{}).forEach(([ft,_t])=>{const Xe=Object.assign({},_t);"algorithm"in Xe&&(Xe.algorithm===!0?Xe.theme=st:(Array.isArray(Xe.algorithm)||typeof Xe.algorithm=="function")&&(Xe.theme=Z0(Xe.algorithm)),delete Xe.algorithm),$t[ft]=Xe});const Ot=Object.assign(Object.assign({},Zu),ke);return Object.assign(Object.assign({},Ze),{theme:st,token:Ot,components:$t,override:Object.assign({override:Ot},$t),cssVar:We})},[Ce]);return b&&(ce=l.createElement(bR.Provider,{value:De},ce)),W.warning&&(ce=l.createElement(tk.Provider,{value:W.warning},ce)),S!==void 0&&(ce=l.createElement(F1,{disabled:S},ce)),l.createElement(Et.Provider,{value:W},ce)},jo=e=>{const t=l.useContext(Et),n=l.useContext(L1);return l.createElement(Oj,Object.assign({parentContext:t,legacyLocale:n},e))};jo.ConfigContext=Et;jo.SizeContext=gl;jo.config=Ej;jo.useConfig=Ik;Object.defineProperty(jo,"SizeContext",{get:()=>gl});var Ij={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function VR(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Rj(e){return VR(e)instanceof ShadowRoot}function Ym(e){return Rj(e)?VR(e):null}function Pj(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Mj(e,t){Sn(e,"[@ant-design/icons] ".concat(t))}function lw(e){return ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ht(e.icon)==="object"||typeof e.icon=="function")}function sw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Pj(n)]=r}return t},{})}function xy(e,t,n){return n?le.createElement(e.tag,q(q({key:t},sw(e.attrs)),n),(e.children||[]).map(function(r,o){return xy(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):le.createElement(e.tag,q({key:t},sw(e.attrs)),(e.children||[]).map(function(r,o){return xy(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function WR(e){return ed(e)[0]}function KR(e){return e?Array.isArray(e)?e:[e]:[]}var Nj=`
96
+ .anticon {
97
+ display: inline-flex;
98
+ align-items: center;
99
+ color: inherit;
100
+ font-style: normal;
101
+ line-height: 0;
102
+ text-align: center;
103
+ text-transform: none;
104
+ vertical-align: -0.125em;
105
+ text-rendering: optimizeLegibility;
106
+ -webkit-font-smoothing: antialiased;
107
+ -moz-osx-font-smoothing: grayscale;
108
+ }
109
+
110
+ .anticon > * {
111
+ line-height: 1;
112
+ }
113
+
114
+ .anticon svg {
115
+ display: inline-block;
116
+ }
117
+
118
+ .anticon::before {
119
+ display: none;
120
+ }
121
+
122
+ .anticon .anticon-icon {
123
+ display: block;
124
+ }
125
+
126
+ .anticon[tabindex] {
127
+ cursor: pointer;
128
+ }
129
+
130
+ .anticon-spin::before,
131
+ .anticon-spin {
132
+ display: inline-block;
133
+ -webkit-animation: loadingCircle 1s infinite linear;
134
+ animation: loadingCircle 1s infinite linear;
135
+ }
136
+
137
+ @-webkit-keyframes loadingCircle {
138
+ 100% {
139
+ -webkit-transform: rotate(360deg);
140
+ transform: rotate(360deg);
141
+ }
142
+ }
143
+
144
+ @keyframes loadingCircle {
145
+ 100% {
146
+ -webkit-transform: rotate(360deg);
147
+ transform: rotate(360deg);
148
+ }
149
+ }
150
+ `,_j=function(t){var n=l.useContext(z1),r=n.csp,o=n.prefixCls,a=n.layer,i=Nj;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
151
+ `).concat(i,`
152
+ }`)),l.useEffect(function(){var s=t.current,c=Ym(s);ka(i,"@ant-design-icons",{prepend:!a,csp:r,attachTo:c})},[])},Tj=["icon","className","onClick","style","primaryColor","secondaryColor"],Su={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Dj(e){var t=e.primaryColor,n=e.secondaryColor;Su.primaryColor=t,Su.secondaryColor=n||WR(t),Su.calculated=!!n}function kj(){return q({},Su)}var ic=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,c=Pt(t,Tj),u=l.useRef(),d=Su;if(i&&(d={primaryColor:i,secondaryColor:s||WR(i)}),_j(u),Mj(lw(n),"icon should be icon definiton, but got ".concat(n)),!lw(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),xy(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};ic.displayName="IconReact";ic.getTwoToneColors=kj;ic.setTwoToneColors=Dj;function UR(e){var t=KR(e),n=te(t,2),r=n[0],o=n[1];return ic.setTwoToneColors({primaryColor:r,secondaryColor:o})}function jj(){var e=ic.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];UR(qm.primary);var Mt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=Pt(e,zj),d=l.useContext(z1),f=d.prefixCls,m=f===void 0?"anticon":f,v=d.rootClassName,h=Z(v,m,B(B({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),y=i;y===void 0&&s&&(y=-1);var p=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,g=KR(c),C=te(g,2),b=C[0],S=C[1];return l.createElement("span",be({role:"img","aria-label":r.name},u,{ref:t,tabIndex:y,onClick:s,className:h}),l.createElement(ic,{icon:r,primaryColor:b,secondaryColor:S,style:p}))});Mt.displayName="AntdIcon";Mt.getTwoToneColor=jj;Mt.setTwoToneColor=UR;var Lj=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Ij}))},Jv=l.forwardRef(Lj),Fj={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"},Aj=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Fj}))},lc=l.forwardRef(Aj),Bj={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"},Hj=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Bj}))},sc=l.forwardRef(Hj),Vj={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"},Wj=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Vj}))},cc=l.forwardRef(Wj),Kj={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"},Uj=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Kj}))},qR=l.forwardRef(Uj),qj=`accept acceptCharset accessKey action allowFullScreen allowTransparency
153
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
154
+ charSet checked classID className colSpan cols content contentEditable contextMenu
155
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
156
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
157
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
158
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
159
+ mediaGroup method min minLength multiple muted name noValidate nonce open
160
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
161
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
162
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
163
+ summary tabIndex target title type useMap value width wmode wrap`,Gj=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
164
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
165
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
166
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
167
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
168
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
169
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Yj="".concat(qj," ").concat(Gj).split(/[\s\n]+/),Xj="aria-",Qj="data-";function cw(e,t){return e.indexOf(t)===0}function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||cw(o,Xj))||n.data&&cw(o,Qj)||n.attr&&Yj.includes(o))&&(r[o]=e[o])}),r}function GR(e){return e&&le.isValidElement(e)&&e.type===le.Fragment}const YR=(e,t,n)=>le.isValidElement(e)?le.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Wr(e,t){return YR(e,e,t)}const uw=e=>typeof e=="object"&&e!=null&&e.nodeType===1,dw=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",pf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return dw(n.overflowY,t)||dw(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},yf=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,Jj=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},fw=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:M=>M!==u;if(!uw(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let h=e;for(;uw(h)&&f(h);){if(h=Jj(h),h===m){v.push(h);break}h!=null&&h===document.body&&pf(h)&&!pf(document.documentElement)||h!=null&&pf(h,d)&&v.push(h)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:g,scrollY:C}=window,{height:b,width:S,top:w,right:$,bottom:x,left:E}=e.getBoundingClientRect(),{top:O,right:I,bottom:P,left:_}=(M=>{const k=window.getComputedStyle(M);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?w-O:s==="end"?x+P:w+b/2-O+P,R=c==="center"?E+S/2-_+I:c==="end"?$+I:E-_;const N=[];for(let M=0;M<v.length;M++){const k=v[M],{height:T,width:z,top:j,right:L,bottom:F,left:A}=k.getBoundingClientRect();if(i==="if-needed"&&w>=0&&E>=0&&x<=p&&$<=y&&(k===m&&!pf(k)||w>=j&&x<=F&&E>=A&&$<=L))return N;const H=getComputedStyle(k),U=parseInt(H.borderLeftWidth,10),X=parseInt(H.borderTopWidth,10),ee=parseInt(H.borderRightWidth,10),J=parseInt(H.borderBottomWidth,10);let oe=0,ue=0;const se="offsetWidth"in k?k.offsetWidth-k.clientWidth-U-ee:0,Q="offsetHeight"in k?k.offsetHeight-k.clientHeight-X-J:0,fe="offsetWidth"in k?k.offsetWidth===0?0:z/k.offsetWidth:0,de="offsetHeight"in k?k.offsetHeight===0?0:T/k.offsetHeight:0;if(m===k)oe=s==="start"?D:s==="end"?D-p:s==="nearest"?yf(C,C+p,p,X,J,C+D,C+D+b,b):D-p/2,ue=c==="start"?R:c==="center"?R-y/2:c==="end"?R-y:yf(g,g+y,y,U,ee,g+R,g+R+S,S),oe=Math.max(0,oe+C),ue=Math.max(0,ue+g);else{oe=s==="start"?D-j-X:s==="end"?D-F+J+Q:s==="nearest"?yf(j,F,T,X,J+Q,D,D+b,b):D-(j+T/2)+Q/2,ue=c==="start"?R-A-U:c==="center"?R-(A+z/2)+se/2:c==="end"?R-L+ee+se:yf(A,L,z,U,ee+se,R,R+S,S);const{scrollLeft:ie,scrollTop:re}=k;oe=de===0?0:Math.max(0,Math.min(re+oe/de,k.scrollHeight-T/de+Q)),ue=fe===0?0:Math.max(0,Math.min(ie+ue/fe,k.scrollWidth-z/fe+se)),D+=re-oe,R+=ie-ue}N.push({el:k,top:oe,left:ue})}return N},Zj=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function e7(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(fw(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of fw(e,Zj(t))){const s=a-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function wy(e){return e!=null&&e===e.window}const t7=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return wy(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!wy(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function n7(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function r7(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=t7(a),s=Date.now(),c=()=>{const d=Date.now()-s,f=n7(d>o?o:d,i,e,o);wy(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d<o?jt(c):typeof r=="function"&&r()};jt(c)}const Un=e=>{const[,,,,t]=Ir();return t?`${e}-css-var`:""};var ct={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},XR=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,h=v===void 0?"x":v,y=e.props,p=e.onClick,g=e.onNoticeClose,C=e.times,b=e.hovering,S=l.useState(!1),w=te(S,2),$=w[0],x=w[1],E=l.useState(0),O=te(E,2),I=O[0],P=O[1],_=l.useState(0),D=te(_,2),R=D[0],N=D[1],M=b||$,k=i>0&&s,T=function(){g(d)},z=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===ct.ENTER)&&T()};l.useEffect(function(){if(!M&&i>0){var H=Date.now()-R,U=setTimeout(function(){T()},i*1e3-R);return function(){u&&clearTimeout(U),N(Date.now()-H)}}},[i,M,C]),l.useEffect(function(){if(!M&&k&&(u||R===0)){var H=performance.now(),U,X=function ee(){cancelAnimationFrame(U),U=requestAnimationFrame(function(J){var oe=J+R-H,ue=Math.min(oe/(i*1e3),1);P(ue*100),ue<1&&ee()})};return X(),function(){u&&cancelAnimationFrame(U)}}},[i,R,M,k,C]);var j=l.useMemo(function(){return ht(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),L=vr(j,!0),F=100-(!I||I<0?0:I>100?100:I),A="".concat(n,"-notice");return l.createElement("div",be({},y,{ref:t,className:Z(A,o,B({},"".concat(A,"-closable"),m)),style:r,onMouseEnter:function(U){var X;x(!0),y==null||(X=y.onMouseEnter)===null||X===void 0||X.call(y,U)},onMouseLeave:function(U){var X;x(!1),y==null||(X=y.onMouseLeave)===null||X===void 0||X.call(y,U)},onClick:p}),l.createElement("div",{className:"".concat(A,"-content")},f),m&&l.createElement("a",be({tabIndex:0,className:"".concat(A,"-close"),onKeyDown:z,"aria-label":"Close"},L,{onClick:function(U){U.preventDefault(),U.stopPropagation(),T()}}),j.closeIcon),k&&l.createElement("progress",{className:"".concat(A,"-progress"),max:"100",value:F},F+"%"))}),QR=le.createContext({}),o7=function(t){var n=t.children,r=t.classNames;return le.createElement(QR.Provider,{value:{classNames:r}},n)},mw=8,vw=3,hw=16,a7=function(t){var n={offset:mw,threshold:vw,gap:hw};if(t&&ht(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:mw,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:vw,n.gap=(a=t.gap)!==null&&a!==void 0?a:hw}return[!!t,n]},i7=["className","style","classNames","styles"],l7=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(QR),m=f.classNames,v=l.useRef({}),h=l.useState(null),y=te(h,2),p=y[0],g=y[1],C=l.useState([]),b=te(C,2),S=b[0],w=b[1],$=n.map(function(M){return{config:M,key:String(M.key)}}),x=a7(d),E=te(x,2),O=E[0],I=E[1],P=I.offset,_=I.threshold,D=I.gap,R=O&&(S.length>0||$.length<=_),N=typeof s=="function"?s(r):s;return l.useEffect(function(){O&&S.length>1&&w(function(M){return M.filter(function(k){return $.some(function(T){var z=T.key;return k===z})})})},[S,$,O]),l.useEffect(function(){var M;if(O&&v.current[(M=$[$.length-1])===null||M===void 0?void 0:M.key]){var k;g(v.current[(k=$[$.length-1])===null||k===void 0?void 0:k.key])}},[$,O]),le.createElement(LR,be({key:r,className:Z(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,B(B({},"".concat(o,"-stack"),!!O),"".concat(o,"-stack-expanded"),R)),style:i,keys:$,motionAppear:!0},N,{onAllRemoved:function(){c(r)}}),function(M,k){var T=M.config,z=M.className,j=M.style,L=M.index,F=T,A=F.key,H=F.times,U=String(A),X=T,ee=X.className,J=X.style,oe=X.classNames,ue=X.styles,se=Pt(X,i7),Q=$.findIndex(function(we){return we.key===U}),fe={};if(O){var de=$.length-1-(Q>-1?Q:L-1),ie=r==="top"||r==="bottom"?"-50%":"0";if(de>0){var re,he,ge;fe.height=R?(re=v.current[U])===null||re===void 0?void 0:re.offsetHeight:p==null?void 0:p.offsetHeight;for(var Ne=0,Pe=0;Pe<de;Pe++){var ve;Ne+=((ve=v.current[$[$.length-1-Pe].key])===null||ve===void 0?void 0:ve.offsetHeight)+D}var $e=(R?Ne:de*P)*(r.startsWith("top")?1:-1),Ee=!R&&p!==null&&p!==void 0&&p.offsetWidth&&(he=v.current[U])!==null&&he!==void 0&&he.offsetWidth?((p==null?void 0:p.offsetWidth)-P*2*(de<3?de:3))/((ge=v.current[U])===null||ge===void 0?void 0:ge.offsetWidth):1;fe.transform="translate3d(".concat(ie,", ").concat($e,"px, 0) scaleX(").concat(Ee,")")}else fe.transform="translate3d(".concat(ie,", 0, 0)")}return le.createElement("div",{ref:k,className:Z("".concat(o,"-notice-wrapper"),z,oe==null?void 0:oe.wrapper),style:q(q(q({},j),fe),ue==null?void 0:ue.wrapper),onMouseEnter:function(){return w(function(Ae){return Ae.includes(U)?Ae:[].concat(ze(Ae),[U])})},onMouseLeave:function(){return w(function(Ae){return Ae.filter(function(Le){return Le!==U})})}},le.createElement(XR,be({},se,{ref:function(Ae){Q>-1?v.current[U]=Ae:delete v.current[U]},prefixCls:o,classNames:oe,styles:ue,className:Z(ee,m==null?void 0:m.notice),style:J,times:H,key:A,eventKey:A,onNoticeClose:u,hovering:O&&S.length>0})))})},s7=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=l.useState([]),v=te(m,2),h=v[0],y=v[1],p=function(O){var I,P=h.find(function(_){return _.key===O});P==null||(I=P.onClose)===null||I===void 0||I.call(P),y(function(_){return _.filter(function(D){return D.key!==O})})};l.useImperativeHandle(t,function(){return{open:function(O){y(function(I){var P=ze(I),_=P.findIndex(function(N){return N.key===O.key}),D=q({},O);if(_>=0){var R;D.times=(((R=I[_])===null||R===void 0?void 0:R.times)||0)+1,P[_]=D}else D.times=0,P.push(D);return i>0&&P.length>i&&(P=P.slice(-i)),P})},close:function(O){p(O)},destroy:function(){y([])}}});var g=l.useState({}),C=te(g,2),b=C[0],S=C[1];l.useEffect(function(){var E={};h.forEach(function(O){var I=O.placement,P=I===void 0?"topRight":I;P&&(E[P]=E[P]||[],E[P].push(O))}),Object.keys(b).forEach(function(O){E[O]=E[O]||[]}),S(E)},[h]);var w=function(O){S(function(I){var P=q({},I),_=P[O]||[];return _.length||delete P[O],P})},$=l.useRef(!1);if(l.useEffect(function(){Object.keys(b).length>0?$.current=!0:$.current&&(u==null||u(),$.current=!1)},[b]),!o)return null;var x=Object.keys(b);return Jo.createPortal(l.createElement(l.Fragment,null,x.map(function(E){var O=b[E],I=l.createElement(l7,{key:E,configList:O,placement:E,prefixCls:r,className:s==null?void 0:s(E),style:c==null?void 0:c(E),motion:a,onNoticeClose:p,onAllNoticeRemoved:w,stack:d});return f?f(I,{prefixCls:r,key:E}):I})),o)}),c7=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],u7=function(){return document.body},gw=0;function d7(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function f7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?u7:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Pt(e,c7),m=l.useState(),v=te(m,2),h=v[0],y=v[1],p=l.useRef(),g=l.createElement(s7,{container:h,ref:p,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),C=l.useState([]),b=te(C,2),S=b[0],w=b[1],$=zt(function(E){var O=d7(f,E);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(gw),gw+=1),w(function(I){return[].concat(ze(I),[{type:"open",config:O}])})}),x=l.useMemo(function(){return{open:$,close:function(O){w(function(I){return[].concat(ze(I),[{type:"close",key:O}])})},destroy:function(){w(function(O){return[].concat(ze(O),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){y(n())}),l.useEffect(function(){if(p.current&&S.length){S.forEach(function(I){switch(I.type){case"open":p.current.open(I.config);break;case"close":p.current.close(I.key);break;case"destroy":p.current.destroy();break}});var E,O;w(function(I){return(E!==I||!O)&&(E=I,O=I.filter(function(P){return!S.includes(P)})),O})}},[S]),[x,g]}var m7={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"},v7=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:m7}))},Il=l.forwardRef(v7);function Xm(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Qm(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function pw(e){const{closable:t,closeIcon:n}=e||{};return le.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const h7={},JR=(e,t,n=h7)=>{const r=pw(e),o=pw(t),[a]=yo("global",ea.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=le.useMemo(()=>Object.assign({closeIcon:le.createElement(sc,null)},n),[n]),c=le.useMemo(()=>r===!1?!1:r?Xm(s,o,r):o===!1?!1:o?Xm(s,o):s.closable?s:!1,[r,o,s]);return le.useMemo(()=>{var u,d;if(c===!1)return[!1,null,i,{}];const{closeIconRender:f}=s,{closeIcon:m}=c;let v=m;const h=vr(c,!0);return v!=null&&(f&&(v=f(m)),v=le.isValidElement(v)?le.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(d=(u=v.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:a.close}),h)):le.createElement("span",Object.assign({"aria-label":a.close},h),v)),[!0,v,i,h]},[i,a.close,c,s])},ZR=()=>le.useReducer(e=>e+1,0);function e3(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],s=o[a];if(i&&typeof i=="object")if(s&&typeof s=="object")r[a]=e3(i,r[a],s);else{const{_default:c}=i;c&&(r[a]=r[a]||{},r[a][c]=Z(r[a][c],s))}else r[a]=Z(r[a],s)}),r),{})}function g7(e,...t){return l.useMemo(()=>e3.apply(void 0,[e].concat(t)),[t,e])}function p7(...e){return l.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function $y(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?$y(a,o):a}}),n}const y7=(e,t,n)=>{const r=g7.apply(void 0,[n].concat(ze(e))),o=p7.apply(void 0,ze(t));return l.useMemo(()=>[$y(r,n),$y(o,n)],[r,o,n])},b7=e=>{const[t,n]=l.useState(null);return[l.useCallback((o,a,i)=>{const s=t??o,c=Math.min(s||0,o),u=Math.max(s||0,o),d=a.slice(c,u+1).map(e),f=d.some(v=>!i.has(v)),m=[];return d.forEach(v=>{f?(i.has(v)||m.push(v),i.add(v)):(i.delete(v),m.push(v))}),n(f?u:null),m},[t]),n]},C7=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(ze(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]};function S7(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const x7=(e,t)=>l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):S7(r,n)}),w7=e=>{const t=l.useRef(e),[,n]=ZR();return[()=>t.current,r=>{t.current=r,n()}]},Zv=le.createContext(void 0),Qa=100,$7=10,t3=Qa*$7,n3={Modal:Qa,Drawer:Qa,Popover:Qa,Popconfirm:Qa,Tooltip:Qa,Tour:Qa,FloatButton:Qa},E7={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function O7(e){return e in n3}const Rl=(e,t)=>{const[,n]=Ir(),r=le.useContext(Zv),o=O7(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+n3[e]:i+=E7[e],a=[r===void 0?t:i,i]}return a},I7=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:h,zIndexPopup:y,contentPadding:p,contentBg:g}=e,C=`${t}-notice`,b=new nn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),S=new nn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:p,background:g,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
170
+ ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},tn(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
171
+ ${t}-move-up-appear,
172
+ ${t}-move-up-enter
173
+ `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
174
+ ${t}-move-up-appear${t}-move-up-appear-active,
175
+ ${t}-move-up-enter${t}-move-up-enter-active
176
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},R7=e=>({zIndexPopup:e.zIndexPopupBase+t3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),r3=Gt("Message",e=>{const t=At(e,{height:150});return I7(t)},R7);var P7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const M7={info:l.createElement(qR,null),success:l.createElement(Jv,null),error:l.createElement(lc,null),warning:l.createElement(cc,null),loading:l.createElement(Il,null)},o3=({prefixCls:e,type:t,icon:n,children:r})=>l.createElement("div",{className:Z(`${e}-custom-content`,`${e}-${t}`)},n||M7[t],l.createElement("span",null,r)),N7=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=P7(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(Et),c=t||s("message"),u=Un(c),[d,f,m]=r3(c,u);return d(l.createElement(XR,Object.assign({},i,{prefixCls:c,className:Z(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:l.createElement(o3,{prefixCls:c,type:r,icon:o},a)})))};function _7(e,t){return{motionName:t??`${e}-move-up`}}function H1(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var T7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const D7=8,k7=3,j7=({children:e,prefixCls:t})=>{const n=Un(t),[r,o,a]=r3(t,n);return r(l.createElement(o7,{classNames:{list:Z(o,a,n)}},e))},z7=(e,{prefixCls:t,key:n})=>l.createElement(j7,{prefixCls:t,key:n},e),L7=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=k7,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:v}=l.useContext(Et),h=r||d("message"),y=()=>({left:"50%",transform:"translateX(-50%)",top:n??D7}),p=()=>Z({[`${h}-rtl`]:s??v==="rtl"}),g=()=>_7(h,c),C=l.createElement("span",{className:`${h}-close-x`},l.createElement(sc,{className:`${h}-close-icon`})),[b,S]=f7({prefixCls:h,style:y,className:p,motion:g,closable:!1,closeIcon:C,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:z7});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:h,message:m})),S});let yw=0;function a3(e){const t=l.useRef(null);return Di(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const $=()=>{};return $.then=()=>{},$}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:v,icon:h,type:y,key:p,className:g,style:C,onClose:b}=c,S=T7(c,["content","icon","type","key","className","style","onClose"]);let w=p;return w==null&&(yw+=1,w=`antd-message-${yw}`),H1($=>(u(Object.assign(Object.assign({},S),{key:w,content:l.createElement(o3,{prefixCls:d,type:y,icon:h},v),placement:"top",className:Z(y&&`${m}-${y}`,g,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),onClose:()=>{b==null||b(),$()}})),()=>{r(w)}))},i={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let v;d&&typeof d=="object"&&"content"in d?v=d:v={content:d};let h,y;typeof f=="function"?y=f:(h=f,y=m);const p=Object.assign(Object.assign({onClose:y,duration:h},v),{type:c});return o(p)};i[c]=u}),i},[]),l.createElement(L7,Object.assign({key:"message-holder"},e,{ref:t}))]}function F7(e){return a3(e)}function i3(e,t){this.v=e,this.k=t}function Nr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Nr=function(i,s,c,u){function d(f,m){Nr(i,f,function(v){return this._invoke(f,m,v)})}s?o?o(i,s,{value:c,enumerable:!u,configurable:!u,writable:!u}):i[s]=c:(d("next",0),d("throw",1),d("return",2))},Nr(e,t,n,r)}function V1(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,y,p){var g=h&&h.prototype instanceof s?h:s,C=Object.create(g.prototype);return Nr(C,"_invoke",function(b,S,w){var $,x,E,O=0,I=w||[],P=!1,_={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(N,M){return $=N,x=0,E=e,_.n=M,i}};function D(R,N){for(x=R,E=N,t=0;!P&&O&&!M&&t<I.length;t++){var M,k=I[t],T=_.p,z=k[2];R>3?(M=z===N)&&(E=k[(x=k[4])?5:(x=3,3)],k[4]=k[5]=e):k[0]<=T&&((M=R<2&&T<k[1])?(x=0,_.v=N,_.n=k[1]):T<z&&(M=R<3||k[0]>N||N>z)&&(k[4]=R,k[5]=N,_.n=z,x=0))}if(M||R>1)return i;throw P=!0,N}return function(R,N,M){if(O>1)throw TypeError("Generator is already running");for(P&&N===1&&D(N,M),x=N,E=M;(t=x<2?e:E)||!P;){$||(x?(x>1&&(_.n=x<3?-1:E),D(x,E)):_.v=E);try{if(O=2,$){if(x||(R="next"),t=$[R]){if(!(t=t.call($,E)))throw TypeError("iterator result is not an object");if(!t.done)return t;E=t.value,x<2&&(x=0)}else x===1&&(t=$.return)&&t.call($),x<2&&(E=TypeError("The iterator does not provide a '"+R+"' method"),x=1);$=e}else if((t=(P=_.n<0)?E:b.call(S,_))!==i)break}catch(k){$=e,x=1,E=k}finally{O=1}}return{value:t,done:P}}}(v,y,p),!0),C}var i={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Nr(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(d);function m(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,u):(v.__proto__=u,Nr(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return c.prototype=u,Nr(f,"constructor",u),Nr(u,"constructor",c),c.displayName="GeneratorFunction",Nr(u,o,"GeneratorFunction"),Nr(f),Nr(f,o,"Generator"),Nr(f,r,function(){return this}),Nr(f,"toString",function(){return"[object Generator]"}),(V1=function(){return{w:a,m}})()}function Jm(e,t){function n(o,a,i,s){try{var c=e[o](a),u=c.value;return u instanceof i3?t.resolve(u.v).then(function(d){n("next",d,i,s)},function(d){n("throw",d,i,s)}):t.resolve(u).then(function(d){c.value=d,i(c)},function(d){return n("throw",d,i,s)})}catch(d){s(d)}}var r;this.next||(Nr(Jm.prototype),Nr(Jm.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Nr(this,"_invoke",function(o,a,i){function s(){return new t(function(c,u){n(o,i,c,u)})}return r=r?r.then(s,s):s()},!0)}function l3(e,t,n,r,o){return new Jm(V1().w(e,t,n,r),o||Promise)}function A7(e,t,n,r,o){var a=l3(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function B7(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function bw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ht(e)+" is not iterable")}function Lr(){var e=V1(),t=e.m(Lr),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,c;return function(u){s||(s={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,o[f],m)},delegateYield:function(f,m,v){return s.resultName=m,c(u.d,bw(f),v)},finish:function(f){return c(u.f,f)}},c=function(f,m,v){u.p=s.prev,u.n=s.next;try{return f(m,v)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return i.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(Lr=function(){return{wrap:function(c,u,d,f){return e.w(a(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new i3(c,u)},AsyncIterator:Jm,async:function(c,u,d,f,m){return(r(u)?l3:A7)(a(c),u,d,f,m)},keys:B7,values:bw}})()}function Cw(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Pl(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){Cw(a,r,o,i,s,"next",c)}function s(c){Cw(a,r,o,i,s,"throw",c)}i(void 0)})}}var xd=q({},II),H7=xd.version,Ug=xd.render,V7=xd.unmountComponentAtNode,eh;try{var W7=Number((H7||"").split(".")[0]);W7>=18&&(eh=xd.createRoot)}catch{}function Sw(e){var t=xd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ht(t)==="object"&&(t.usingClientEntryPoint=e)}var Zm="__rc_react_root__";function K7(e,t){Sw(!0);var n=t[Zm]||eh(t);Sw(!1),n.render(e),t[Zm]=n}function U7(e,t){Ug==null||Ug(e,t)}function q7(e,t){if(eh){K7(e,t);return}U7(e,t)}function G7(e){return Ey.apply(this,arguments)}function Ey(){return Ey=Pl(Lr().mark(function e(t){return Lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Zm])===null||o===void 0||o.unmount(),delete t[Zm]}));case 1:case"end":return r.stop()}},e)})),Ey.apply(this,arguments)}function Y7(e){V7(e)}function X7(e){return Oy.apply(this,arguments)}function Oy(){return Oy=Pl(Lr().mark(function e(t){return Lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(eh===void 0){r.next=2;break}return r.abrupt("return",G7(t));case 2:Y7(t);case 3:case"end":return r.stop()}},e)})),Oy.apply(this,arguments)}const Q7=(e,t)=>(q7(e,t),()=>X7(t));let J7=Q7;function W1(e){return J7}const qg=()=>({height:0,opacity:0}),xw=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Z7=e=>({height:e?e.offsetHeight:0}),Gg=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",ev=(e=td)=>({motionName:`${e}-motion-collapse`,onAppearStart:qg,onEnterStart:qg,onAppearActive:xw,onEnterActive:xw,onLeaveStart:Z7,onLeaveActive:qg,onAppearEnd:Gg,onEnterEnd:Gg,onLeaveEnd:Gg,motionDeadline:500}),Oi=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function un(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const uc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},ez=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},tz=Uk("Wave",ez),th=`${td}-wave-target`;function nz(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function rz(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(nz))!==null&&t!==void 0?t:null}function Yg(e){return Number.isNaN(e)?0:e}const oz=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=l.useRef(null),i=l.useRef(null);l.useEffect(()=>{i.current=o()},[]);const[s,c]=l.useState(null),[u,d]=l.useState([]),[f,m]=l.useState(0),[v,h]=l.useState(0),[y,p]=l.useState(0),[g,C]=l.useState(0),[b,S]=l.useState(!1),w={left:f,top:v,width:y,height:g,borderRadius:u.map(E=>`${E}px`).join(" ")};s&&(w["--wave-color"]=s);function $(){const E=getComputedStyle(n);c(rz(n));const O=E.position==="static",{borderLeftWidth:I,borderTopWidth:P}=E;m(O?n.offsetLeft:Yg(-Number.parseFloat(I))),h(O?n.offsetTop:Yg(-Number.parseFloat(P))),p(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:D,borderBottomLeftRadius:R,borderBottomRightRadius:N}=E;d([_,D,N,R].map(M=>Yg(Number.parseFloat(M))))}if(l.useEffect(()=>{if(n){const E=jt(()=>{$(),S(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver($),O.observe(n)),()=>{jt.cancel(E),O==null||O.disconnect()}}},[n]),!b)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(th));return l.createElement(ko,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,O)=>{var I,P;if(O.deadline||O.propertyName==="opacity"){const _=(I=a.current)===null||I===void 0?void 0:I.parentElement;(P=i.current)===null||P===void 0||P.call(i).then(()=>{_==null||_.remove()})}return!1}},({className:E},O)=>l.createElement("div",{ref:lr(a,O),className:Z(t,E,{"wave-quick":x}),style:w}))},az=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=W1();let i=null;function s(){return i}i=a(l.createElement(oz,Object.assign({},t,{target:e,registerUnmount:s})),o)},iz=(e,t,n)=>{const{wave:r}=l.useContext(Et),[,o,a]=Ir(),i=zt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${th}`)||d,{showEffect:m}=r||{};(m||az)(f,{className:t,token:o,component:n,event:u,hashId:a})}),s=l.useRef(null);return u=>{jt.cancel(s.current),s.current=jt(()=>{i(u)})}},wd=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=l.useContext(Et),a=l.useRef(null),i=o("wave"),[,s]=tz(i),c=iz(a,Z(i,s),r);if(le.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!uc(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!le.isValidElement(t))return t??null;const u=Zo(t)?lr(Ti(t),a):a;return Wr(t,{ref:u})},sr=e=>{const t=le.useContext(gl);return le.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},lz=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},sz=Gt(["Space","Compact"],e=>[lz(e)],()=>({}),{resetStyle:!1});var s3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nh=l.createContext(null),$a=(e,t)=>{const n=l.useContext(nh),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return Z(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},cz=e=>{const{children:t}=e;return l.createElement(nh.Provider,{value:null},t)},uz=e=>{const{children:t}=e,n=s3(e,["children"]);return l.createElement(nh.Provider,{value:l.useMemo(()=>n,[n])},t)},dz=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Et),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=s3(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=sr(b=>r??b),m=t("space-compact",i),[v,h]=sz(m),y=Z(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),p=l.useContext(nh),g=$r(u),C=l.useMemo(()=>g.map((b,S)=>{const w=(b==null?void 0:b.key)||`${m}-item-${S}`;return l.createElement(uz,{key:w,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:S===g.length-1&&(!p||(p==null?void 0:p.isLastItem))},b)}),[g,p,o,f,m]);return g.length===0?null:v(l.createElement("div",Object.assign({className:y},d),C))};var fz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const c3=l.createContext(void 0),mz=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Et),{prefixCls:r,size:o,className:a}=e,i=fz(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=Ir(),u=l.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=Z(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,c);return l.createElement(c3.Provider,{value:o},l.createElement("div",Object.assign({},i,{className:d})))},ww=/^[\u4E00-\u9FA5]{2}$/,Iy=ww.test.bind(ww);function K1(e){return e==="danger"?{danger:!0}:{type:e}}function $w(e){return typeof e=="string"}function Xg(e){return e==="text"||e==="link"}function vz(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&$w(e.type)&&Iy(e.props.children)?Wr(e,{children:e.props.children.split("").join(n)}):$w(e)?Iy(e)?le.createElement("span",null,e.split("").join(n)):le.createElement("span",null,e):GR(e)?le.createElement("span",null,e):e}function hz(e,t){let n=!1;const r=[];return le.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=i}),le.Children.map(r,o=>vz(o,t))}["default","primary","danger"].concat(ze($i));const u3=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Z(`${a}-icon`,n);return le.createElement("span",{ref:t,className:i,style:r},o)}),Ew=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=Z(`${n}-loading-icon`,r);return le.createElement(u3,{prefixCls:n,className:i,style:o,ref:t},le.createElement(Il,{className:a}))}),Qg=()=>({width:0,opacity:0,transform:"scale(0)"}),Jg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),gz=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,s=!!n;return r?le.createElement(Ew,{prefixCls:t,className:o,style:a}):le.createElement(ko,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Qg,onAppearActive:Jg,onEnterStart:Qg,onEnterActive:Jg,onLeaveStart:Jg,onLeaveActive:Qg},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},a),u);return le.createElement(Ew,{prefixCls:t,className:Z(o,c),style:f,ref:d})})},Ow=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),pz=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ow(`${t}-primary`,o),Ow(`${t}-danger`,a)]}};var yz=["b"],bz=["v"],Zg=function(t){return Math.round(Number(t||0))},Cz=function(t){if(t instanceof Kt)return t;if(t&&ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Pt(n,yz);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},nd=function(e){xa(n,e);var t=wa(n);function n(r){return Pn(this,n),t.call(this,Cz(r))}return Mn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Zg(o.s*100),i=Zg(o.b*100),s=Zg(o.h),c=o.a,u="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=Pt(o,bz);return q(q({},i),{},{b:a,a:this.a})}}]),n}(Kt),Sz=function(t){return t instanceof nd?t:new nd(t)};Sz("#1677ff");const xz=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",wz=(e,t)=>e?xz(e,t):"";let Ry=function(){function e(t){Pn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new nd(this.colors[0].color.metaColor)):this.metaColor=new nd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Mn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return wz(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const a=n.colors[o];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])}();var $z={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"},Ez=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:$z}))},Us=l.forwardRef(Ez);const U1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
177
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
178
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Oz=e=>({animationDuration:e,animationFillMode:"both"}),Iz=e=>({animationDuration:e,animationFillMode:"both"}),rh=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
179
+ ${a}${e}-enter,
180
+ ${a}${e}-appear
181
+ `]:Object.assign(Object.assign({},Oz(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},Iz(r)),{animationPlayState:"paused"}),[`
182
+ ${a}${e}-enter${e}-enter-active,
183
+ ${a}${e}-appear${e}-appear-active
184
+ `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Rz=new nn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Pz=new nn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Mz=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[rh(r,Rz,Pz,e.motionDurationMid,t),{[`
185
+ ${o}${r}-enter,
186
+ ${o}${r}-appear
187
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Nz=new nn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_z=new nn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Tz=new nn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dz=new nn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kz=new nn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jz=new nn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zz=new nn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lz=new nn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Fz={"move-up":{inKeyframes:zz,outKeyframes:Lz},"move-down":{inKeyframes:Nz,outKeyframes:_z},"move-left":{inKeyframes:Tz,outKeyframes:Dz},"move-right":{inKeyframes:kz,outKeyframes:jz}},qs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Fz[t];return[rh(r,o,a,e.motionDurationMid),{[`
188
+ ${r}-enter,
189
+ ${r}-appear
190
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},oh=new nn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ah=new nn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ih=new nn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),lh=new nn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Az=new nn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Bz=new nn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hz=new nn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Vz=new nn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Wz={"slide-up":{inKeyframes:oh,outKeyframes:ah},"slide-down":{inKeyframes:ih,outKeyframes:lh},"slide-left":{inKeyframes:Az,outKeyframes:Bz},"slide-right":{inKeyframes:Hz,outKeyframes:Vz}},ba=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Wz[t];return[rh(r,o,a,e.motionDurationMid),{[`
191
+ ${r}-enter,
192
+ ${r}-appear
193
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},q1=new nn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Kz=new nn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Iw=new nn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Rw=new nn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Uz=new nn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qz=new nn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Gz=new nn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Yz=new nn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Xz=new nn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Qz=new nn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Jz=new nn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Zz=new nn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),eL={zoom:{inKeyframes:q1,outKeyframes:Kz},"zoom-big":{inKeyframes:Iw,outKeyframes:Rw},"zoom-big-fast":{inKeyframes:Iw,outKeyframes:Rw},"zoom-left":{inKeyframes:Gz,outKeyframes:Yz},"zoom-right":{inKeyframes:Xz,outKeyframes:Qz},"zoom-up":{inKeyframes:Uz,outKeyframes:qz},"zoom-down":{inKeyframes:Jz,outKeyframes:Zz}},$d=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=eL[t];return[rh(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
194
+ ${r}-enter,
195
+ ${r}-appear
196
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tL=e=>e instanceof Ry?e:new Ry(e),nL=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new nd(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},d3=e=>{const{paddingInline:t,onlyIconSize:n}=e;return At(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},f3=e=>{var t,n,r,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:im(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:im(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:im(u),v=nL(new Ry(e.colorBgSolid),"#fff")?"#000":"#fff",h=$i.reduce((y,p)=>Object.assign(Object.assign({},y),{[`${p}ShadowColor`]:`0 ${Y(e.controlOutlineWidth)} 0 ${ru(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:v,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},rL=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Y(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:oc(),"> a":{color:"currentColor"},"&:not(:disabled)":ra(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},m3=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),oL=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),aL=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),sh=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},m3(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),iL=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},aL(e))}),lL=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ch=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?lL:iL;return Object.assign(Object.assign({},a(e)),m3(e.componentCls,t,n))},uh=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ch(e,r,o))}),dh=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ch(e,r,o))}),fh=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),mh=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ch(e,n,r))}),Ca=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ch(e,r,o,n))}),sL=e=>{const{componentCls:t}=e;return $i.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},uh(e,e.colorTextLightSolid,o,{background:i},{background:u})),dh(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),fh(e)),mh(e,a,{color:o,background:s},{color:o,background:c})),Ca(e,o,"link",{color:i},{color:u})),Ca(e,o,"text",{color:i,background:a},{color:u,background:c}))})},{})},cL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},uh(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),fh(e)),mh(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),sh(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ca(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),uL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},dh(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),fh(e)),mh(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Ca(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ca(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),sh(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),dL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},uh(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),dh(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fh(e)),mh(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Ca(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ca(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),sh(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fL=e=>Object.assign(Object.assign({},Ca(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),sh(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),mL=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:cL(e),[`${t}-color-primary`]:uL(e),[`${t}-color-dangerous`]:dL(e),[`${t}-color-link`]:fL(e)},sL(e))},vL=e=>Object.assign(Object.assign(Object.assign(Object.assign({},dh(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ca(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),uh(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ca(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),G1=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${Y(c)} ${Y(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:oL(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},hL=e=>{const t=At(e,{fontSize:e.contentFontSize});return G1(t,e.componentCls)},gL=e=>{const t=At(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return G1(t,`${e.componentCls}-sm`)},pL=e=>{const t=At(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return G1(t,`${e.componentCls}-lg`)},yL=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},bL=Gt("Button",e=>{const t=d3(e);return[rL(t),hL(t),gL(t),pL(t),yL(t),mL(t),vL(t),pz(t)]},f3,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function CL(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,s=i?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function SL(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function dc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},CL(e,a,t,o)),SL(o,a,t))}}function xL(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function wL(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 $L(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},xL(e,t,e.componentCls)),wL(e.componentCls,t))}}const EL=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=s=>{const c=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},OL=ac(["Button","compact"],e=>{const t=d3(e);return[dc(t),$L(t),EL(t)]},f3);var IL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function RL(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const PL={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ML=le.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:v,className:h,rootClassName:y,children:p,icon:g,iconPosition:C="start",ghost:b=!1,block:S=!1,htmlType:w="button",classNames:$,style:x={},autoInsertSpace:E,autoFocus:O}=e,I=IL(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=c||"default",{button:_}=le.useContext(Et),D=d||(_==null?void 0:_.shape)||"default",[R,N]=l.useMemo(()=>{if(i&&s)return[i,s];if(c||u){const qe=PL[P]||[];return u?["danger",qe[1]]:qe}return _!=null&&_.color&&(_!=null&&_.variant)?[_.color,_.variant]:["default","outlined"]},[i,s,c,u,_==null?void 0:_.color,_==null?void 0:_.variant,P]),k=R==="danger"?"dangerous":R,{getPrefixCls:T,direction:z,autoInsertSpace:j,className:L,style:F,classNames:A,styles:H}=gr("button"),U=(n=E??j)!==null&&n!==void 0?n:!0,X=T("btn",a),[ee,J,oe]=bL(X),ue=l.useContext(zr),se=v??ue,Q=l.useContext(c3),fe=l.useMemo(()=>RL(o),[o]),[de,ie]=l.useState(fe.loading),[re,he]=l.useState(!1),ge=l.useRef(null),Ne=Wa(t,ge),Pe=l.Children.count(p)===1&&!g&&!Xg(N),ve=l.useRef(!0);le.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),Dt(()=>{let qe=null;fe.delay>0?qe=setTimeout(()=>{qe=null,ie(!0)},fe.delay):ie(fe.loading);function ut(){qe&&(clearTimeout(qe),qe=null)}return ut},[fe.delay,fe.loading]),l.useEffect(()=>{if(!ge.current||!U)return;const qe=ge.current.textContent||"";Pe&&Iy(qe)?re||he(!0):re&&he(!1)}),l.useEffect(()=>{O&&ge.current&&ge.current.focus()},[]);const $e=le.useCallback(qe=>{var ut;if(de||se){qe.preventDefault();return}(ut=e.onClick)===null||ut===void 0||ut.call(e,("href"in e,qe))},[e.onClick,de,se]),{compactSize:Ee,compactItemClassnames:we}=$a(X,z),Ae={large:"lg",small:"sm",middle:void 0},Le=sr(qe=>{var ut,bt;return(bt=(ut=f??Ee)!==null&&ut!==void 0?ut:Q)!==null&&bt!==void 0?bt:qe}),Ye=Le&&(r=Ae[Le])!==null&&r!==void 0?r:"",Ke=de?"loading":g,He=un(I,["navigate"]),Ue=Z(X,J,oe,{[`${X}-${D}`]:D!=="default"&&D,[`${X}-${P}`]:P,[`${X}-dangerous`]:u,[`${X}-color-${k}`]:k,[`${X}-variant-${N}`]:N,[`${X}-${Ye}`]:Ye,[`${X}-icon-only`]:!p&&p!==0&&!!Ke,[`${X}-background-ghost`]:b&&!Xg(N),[`${X}-loading`]:de,[`${X}-two-chinese-chars`]:re&&U&&!de,[`${X}-block`]:S,[`${X}-rtl`]:z==="rtl",[`${X}-icon-end`]:C==="end"},we,h,y,L),Me=Object.assign(Object.assign({},F),x),Se=Z($==null?void 0:$.icon,A.icon),Fe=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),H.icon||{}),xe=qe=>le.createElement(u3,{prefixCls:X,className:Se,style:Fe},qe),Te=()=>le.createElement(gz,{existIcon:!!g,prefixCls:X,loading:de,mount:ve.current});let Oe;g&&!de?Oe=xe(g):o&&typeof o=="object"&&o.icon?Oe=xe(o.icon):Oe=Te();const Ie=p||p===0?hz(p,Pe&&U):null;if(He.href!==void 0)return ee(le.createElement("a",Object.assign({},He,{className:Z(Ue,{[`${X}-disabled`]:se}),href:se?void 0:He.href,style:Me,onClick:$e,ref:Ne,tabIndex:se?-1:0,"aria-disabled":se}),Oe,Ie));let je=le.createElement("button",Object.assign({},I,{type:w,className:Ue,style:Me,onClick:$e,disabled:se,ref:Ne}),Oe,Ie,we&&le.createElement(OL,{prefixCls:X}));return Xg(N)||(je=le.createElement(wd,{component:"Button",disabled:de},je)),ee(je)}),Fn=ML;Fn.Group=mz;Fn.__ANT_BUTTON=!0;const ep=e=>typeof(e==null?void 0:e.then)=="function",Y1=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),m=l.useRef(null),[v,h]=pl(!1),y=(...C)=>{a==null||a.apply(void 0,C)};l.useEffect(()=>{let C=null;return i&&(C=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[i]);const p=C=>{ep(C)&&(h(!0),C.then((...b)=>{h(!1,!0),y.apply(void 0,b),f.current=!1},b=>{if(h(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(b)}))},g=C=>{if(f.current)return;if(f.current=!0,!d){y();return}let b;if(s){if(b=d(C),u&&!ep(b)){f.current=!1,y(C);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!ep(b)){y();return}p(b)};return l.createElement(Fn,Object.assign({},K1(t),{onClick:g,loading:v,prefixCls:r},o,{ref:m}),n)},Ed=le.createContext({}),{Provider:v3}=Ed,Pw=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:c}=l.useContext(Ed);return o?le.createElement(Y1,{isSilent:r,actionFn:s,close:(...u)=>{i==null||i.apply(void 0,u),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},Mw=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:c}=l.useContext(Ed);return le.createElement(Y1,{isSilent:n,type:i||"primary",actionFn:c,close:(...u)=>{t==null||t.apply(void 0,u),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var h3=l.createContext(null),Nw=[];function NL(e,t){var n=l.useState(function(){if(!Er())return null;var h=document.createElement("div");return h}),r=te(n,1),o=r[0],a=l.useRef(!1),i=l.useContext(h3),s=l.useState(Nw),c=te(s,2),u=c[0],d=c[1],f=i||(a.current?void 0:function(h){d(function(y){var p=[h].concat(ze(y));return p})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return Dt(function(){return e?i?i(m):m():v(),v},[e]),Dt(function(){u.length&&(u.forEach(function(h){return h()}),d(Nw))},[u]),[o,f]}var tp;function g3(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";ka(`
197
+ #`.concat(t,`::-webkit-scrollbar {
198
+ `).concat(d,`
199
+ `).concat(f,`
200
+ }`),t)}catch(h){console.error(h),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Qu(t),{width:m,height:v}}function _w(e){return typeof document>"u"?0:(tp===void 0&&(tp=g3()),tp.width)}function Py(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:g3(e)}function _L(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var TL="rc-util-locker-".concat(Date.now()),Tw=0;function DL(e){var t=!!e,n=l.useState(function(){return Tw+=1,"".concat(TL,"_").concat(Tw)}),r=te(n,1),o=r[0];Dt(function(){if(t){var a=Py(document.body).width,i=_L();ka(`
201
+ html body {
202
+ overflow-y: hidden;
203
+ `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
204
+ }`),o)}else Qu(o);return function(){Qu(o)}},[t,o])}var kL=!1;function jL(e){return kL}var Dw=function(t){return t===!1?!1:!Er()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},X1=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,c=l.useState(n),u=te(c,2),d=u[0],f=u[1],m=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=l.useState(function(){return Dw(o)}),h=te(v,2),y=h[0],p=h[1];l.useEffect(function(){var P=Dw(o);p(P??null)});var g=NL(m&&!y),C=te(g,2),b=C[0],S=C[1],w=y??b;DL(r&&n&&Er()&&(w===b||w===document.body));var $=null;if(s&&Zo(s)&&t){var x=s;$=x.ref}var E=Wa($,t);if(!m||!Er()||y===void 0)return null;var O=w===!1||jL(),I=s;return t&&(I=l.cloneElement(s,{ref:E})),l.createElement(h3.Provider,{value:S},O?I:Jo.createPortal(I,w))}),p3=l.createContext({});function zL(){var e=q({},hd);return e.useId}var kw=0,jw=zL();const Od=jw?function(t){var n=jw();return t||n}:function(t){var n=l.useState("ssr-id"),r=te(n,2),o=r[0],a=r[1];return l.useEffect(function(){var i=kw;kw+=1,a("rc_unique_".concat(i))},[]),t||o};function zw(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Lw(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function LL(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Lw(o),n.top+=Lw(o,!0),n}const FL=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var AL={width:0,height:0,overflow:"hidden",outline:"none"},BL={outline:"none"},y3=le.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,v=e.bodyProps,h=e.modalRender,y=e.onMouseDown,p=e.onMouseUp,g=e.holderRef,C=e.visible,b=e.forceRender,S=e.width,w=e.height,$=e.classNames,x=e.styles,E=le.useContext(p3),O=E.panel,I=Wa(g,O),P=l.useRef(),_=l.useRef();le.useImperativeHandle(t,function(){return{focus:function(){var F;(F=P.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var A=document,H=A.activeElement;F&&H===_.current?P.current.focus({preventScroll:!0}):!F&&H===P.current&&_.current.focus({preventScroll:!0})}}});var D={};S!==void 0&&(D.width=S),w!==void 0&&(D.height=w);var R=s?le.createElement("div",{className:Z("".concat(n,"-footer"),$==null?void 0:$.footer),style:q({},x==null?void 0:x.footer)},s):null,N=a?le.createElement("div",{className:Z("".concat(n,"-header"),$==null?void 0:$.header),style:q({},x==null?void 0:x.header)},le.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,M=l.useMemo(function(){return ht(c)==="object"&&c!==null?c:c?{closeIcon:u??le.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),k=vr(M,!0),T=ht(c)==="object"&&c.disabled,z=c?le.createElement("button",be({type:"button",onClick:d,"aria-label":"Close"},k,{className:"".concat(n,"-close"),disabled:T}),M.closeIcon):null,j=le.createElement("div",{className:Z("".concat(n,"-content"),$==null?void 0:$.content),style:x==null?void 0:x.content},z,N,le.createElement("div",be({className:Z("".concat(n,"-body"),$==null?void 0:$.body),style:q(q({},m),x==null?void 0:x.body)},v),f),R);return le.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:q(q({},o),D),className:Z(n,r),onMouseDown:y,onMouseUp:p},le.createElement("div",{ref:P,tabIndex:0,style:BL},le.createElement(FL,{shouldUpdate:C||b},h?h(j):j)),le.createElement("div",{tabIndex:0,ref:_,style:AL}))}),b3=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,v=l.useRef(),h=l.useState(),y=te(h,2),p=y[0],g=y[1],C={};p&&(C.transformOrigin=p);function b(){var S=LL(v.current);g(m&&(m.x||m.y)?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return l.createElement(ko,{visible:i,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:u,removeOnLeave:c,ref:v},function(S,w){var $=S.className,x=S.style;return l.createElement(y3,be({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:q(q(q({},x),o),C),className:Z(a,$)}))})});b3.displayName="Content";var HL=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return l.createElement(ko,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",be({ref:u,style:q(q({},f),r),className:Z("".concat(n,"-mask"),d,s)},a))})},VL=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,v=t.wrapProps,h=t.onClose,y=t.afterOpenChange,p=t.afterClose,g=t.transitionName,C=t.animation,b=t.closable,S=b===void 0?!0:b,w=t.mask,$=w===void 0?!0:w,x=t.maskTransitionName,E=t.maskAnimation,O=t.maskClosable,I=O===void 0?!0:O,P=t.maskStyle,_=t.maskProps,D=t.rootClassName,R=t.classNames,N=t.styles,M=l.useRef(),k=l.useRef(),T=l.useRef(),z=l.useState(i),j=te(z,2),L=j[0],F=j[1],A=Od();function H(){X0(k.current,document.activeElement)||(M.current=document.activeElement)}function U(){if(!X0(k.current,document.activeElement)){var ie;(ie=T.current)===null||ie===void 0||ie.focus()}}function X(ie){if(ie)U();else{if(F(!1),$&&M.current&&d){try{M.current.focus({preventScroll:!0})}catch{}M.current=null}L&&(p==null||p())}y==null||y(ie)}function ee(ie){h==null||h(ie)}var J=l.useRef(!1),oe=l.useRef(),ue=function(){clearTimeout(oe.current),J.current=!0},se=function(){oe.current=setTimeout(function(){J.current=!1})},Q=null;I&&(Q=function(re){J.current?J.current=!1:k.current===re.target&&ee(re)});function fe(ie){if(c&&ie.keyCode===ct.ESC){ie.stopPropagation(),ee(ie);return}i&&ie.keyCode===ct.TAB&&T.current.changeActive(!ie.shiftKey)}l.useEffect(function(){i&&(F(!0),H())},[i]),l.useEffect(function(){return function(){clearTimeout(oe.current)}},[]);var de=q(q(q({zIndex:o},f),N==null?void 0:N.wrapper),{},{display:L?null:"none"});return l.createElement("div",be({className:Z("".concat(r,"-root"),D)},vr(t,{data:!0})),l.createElement(HL,{prefixCls:r,visible:$&&i,motionName:zw(r,x,E),style:q(q({zIndex:o},P),N==null?void 0:N.mask),maskProps:_,className:R==null?void 0:R.mask}),l.createElement("div",be({tabIndex:-1,onKeyDown:fe,className:Z("".concat(r,"-wrap"),m,R==null?void 0:R.wrapper),ref:k,onClick:Q,style:de},v),l.createElement(b3,be({},t,{onMouseDown:ue,onMouseUp:se,ref:T,closable:S,ariaId:A,prefixCls:r,visible:i&&L,onClose:ee,onVisibleChanged:X,motionName:zw(r,g,C)}))))},C3=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=te(u,2),f=d[0],m=d[1],v=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:l.createElement(p3.Provider,{value:v},l.createElement(X1,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(VL,be({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),m(!1)}}))))};C3.displayName="Dialog";var el="RC_FORM_INTERNAL_HOOKS",pn=function(){Sn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},yl=l.createContext({getFieldValue:pn,getFieldsValue:pn,getFieldError:pn,getFieldWarning:pn,getFieldsError:pn,isFieldsTouched:pn,isFieldTouched:pn,isFieldValidating:pn,isFieldsValidating:pn,resetFields:pn,setFields:pn,setFieldValue:pn,setFieldsValue:pn,validateFields:pn,submit:pn,getInternalHooks:function(){return pn(),{dispatch:pn,initEntityValue:pn,registerField:pn,useSubscribe:pn,setInitialValues:pn,destroyForm:pn,setCallbacks:pn,registerWatch:pn,getFields:pn,setValidateMessages:pn,setPreserve:pn,getInitialValue:pn}}}),rd=l.createContext(null);function My(e){return e==null?[]:Array.isArray(e)?e:[e]}function WL(e){return e&&!!e._init}function Ny(){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 _y=Ny();function KL(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function UL(e,t,n){if(M1())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Gu(o,n.prototype),o}function Ty(e){var t=typeof Map=="function"?new Map:void 0;return Ty=function(r){if(r===null||!KL(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return UL(r,arguments,Yu(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Gu(o,r)},Ty(e)}var qL=/%[sdj%]/g,GL=function(){};function Dy(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function fo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(qL,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function YL(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||YL(t)&&typeof e=="string"&&!e)}function XL(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,ze(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,i)})}function Fw(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function QL(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ze(e[n]||[]))}),t}var Aw=function(e){xa(n,e);var t=wa(n);function n(r,o){var a;return Pn(this,n),a=t.call(this,"Async Validation Error"),B(St(a),"errors",void 0),B(St(a),"fields",void 0),a.errors=r,a.fields=o,a}return Mn(n)}(Ty(Error));function JL(e,t,n,r,o){if(t.first){var a=new Promise(function(m,v){var h=function(g){return r(g),g.length?v(new Aw(g,Dy(g))):m(o)},y=QL(e);Fw(y,n,h)});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(m,v){var h=function(p){if(d.push.apply(d,p),u++,u===c)return r(d),d.length?v(new Aw(d,Dy(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(y){var p=e[y];i.indexOf(y)!==-1?Fw(p,n,h):XL(p,n,h)})});return f.catch(function(m){return m}),f}function ZL(e){return!!(e&&e.message!==void 0)}function eF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Bw(e,t){return function(n){var r;return e.fullFields?r=eF(t,e.fullFields):r=t[n.field||e.fullField],ZL(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Hw(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ht(r)==="object"&&ht(e[n])==="object"?e[n]=q(q({},e[n]),r):e[n]=r}}return e}var Vl="enum",tF=function(t,n,r,o,a){t[Vl]=Array.isArray(t[Vl])?t[Vl]:[],t[Vl].indexOf(n)===-1&&o.push(fo(a.messages[Vl],t.fullField,t[Vl].join(", ")))},nF=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(fo(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(fo(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},rF=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",v=typeof n=="string",h=Array.isArray(n);if(m?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),v&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(fo(a.messages[f].len,t.fullField,t.len)):s&&!c&&d<t.min?o.push(fo(a.messages[f].min,t.fullField,t.min)):c&&!s&&d>t.max?o.push(fo(a.messages[f].max,t.fullField,t.max)):s&&c&&(d<t.min||d>t.max)&&o.push(fo(a.messages[f].range,t.fullField,t.min,t.max))},S3=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||ar(n,i||t.type))&&o.push(fo(a.messages.required,t.fullField))},bf;const oF=function(){if(bf)return bf;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function($){return $&&$.exact?s:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(i).concat(t($),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,h=d.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(h,"|").concat(y).concat(p).concat(g,")").concat(C).concat(b);return bf=new RegExp("(?:^".concat(S,"$)"),"i"),bf};var np={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},ou={integer:function(t){return ou.number(t)&&parseInt(t,10)===t},float:function(t){return ou.number(t)&&!ou.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ht(t)==="object"&&!ou.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(np.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(np.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(oF())},hex:function(t){return typeof t=="string"&&!!t.match(np.hex)}},aF=function(t,n,r,o,a){if(t.required&&n===void 0){S3(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?ou[s](n)||o.push(fo(a.messages.types[s],t.fullField,t.type)):s&&ht(n)!==t.type&&o.push(fo(a.messages.types[s],t.fullField,t.type))},iF=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(fo(a.messages.whitespace,t.fullField))};const Zt={required:S3,whitespace:iF,type:aF,range:rF,enum:tF,pattern:nF};var lF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a)}r(i)},sF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Zt.required(t,n,o,i,a,"array"),n!=null&&(Zt.type(t,n,o,i,a),Zt.range(t,n,o,i,a))}r(i)},cF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&Zt.type(t,n,o,i,a)}r(i)},uF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n,"date")&&!t.required)return r();if(Zt.required(t,n,o,i,a),!ar(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Zt.type(t,c,o,i,a),c&&Zt.range(t,c.getTime(),o,i,a)}}r(i)},dF="enum",fF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&Zt[dF](t,n,o,i,a)}r(i)},mF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&(Zt.type(t,n,o,i,a),Zt.range(t,n,o,i,a))}r(i)},vF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&(Zt.type(t,n,o,i,a),Zt.range(t,n,o,i,a))}r(i)},hF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&Zt.type(t,n,o,i,a)}r(i)},gF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&(Zt.type(t,n,o,i,a),Zt.range(t,n,o,i,a))}r(i)},pF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),n!==void 0&&Zt.type(t,n,o,i,a)}r(i)},yF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n,"string")&&!t.required)return r();Zt.required(t,n,o,i,a),ar(n,"string")||Zt.pattern(t,n,o,i,a)}r(i)},bF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n)&&!t.required)return r();Zt.required(t,n,o,i,a),ar(n)||Zt.type(t,n,o,i,a)}r(i)},CF=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":ht(n);Zt.required(t,n,o,i,a,s),r(i)},SF=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ar(n,"string")&&!t.required)return r();Zt.required(t,n,o,i,a,"string"),ar(n,"string")||(Zt.type(t,n,o,i,a),Zt.range(t,n,o,i,a),Zt.pattern(t,n,o,i,a),t.whitespace===!0&&Zt.whitespace(t,n,o,i,a))}r(i)},Cf=function(t,n,r,o,a){var i=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n,i)&&!t.required)return r();Zt.required(t,n,o,s,a,i),ar(n,i)||Zt.type(t,n,o,s,a)}r(s)};const xu={string:SF,method:hF,number:gF,boolean:cF,regexp:bF,integer:vF,float:mF,array:sF,object:pF,enum:fF,pattern:yF,date:uF,url:Cf,hex:Cf,email:Cf,tel:Cf,required:CF,any:lF};var Id=function(){function e(t){Pn(this,e),B(this,"rules",null),B(this,"_messages",_y),this.define(t)}return Mn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Hw(Ny(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=o,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var y=[],p={};function g(b){if(Array.isArray(b)){var S;y=(S=y).concat.apply(S,ze(b))}else y.push(b)}for(var C=0;C<h.length;C++)g(h[C]);y.length?(p=Dy(y),c(y,p)):c(null,i)}if(s.messages){var d=this.messages();d===_y&&(d=Ny()),Hw(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(h){var y=r.rules[h],p=i[h];y.forEach(function(g){var C=g;typeof C.transform=="function"&&(i===n&&(i=q({},i)),p=i[h]=C.transform(p),p!=null&&(C.type=C.type||(Array.isArray(p)?"array":ht(p)))),typeof C=="function"?C={validator:C}:C=q({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=h,C.fullField=C.fullField||h,C.type=r.getType(C),f[h]=f[h]||[],f[h].push({rule:C,value:p,source:i,field:h}))})});var v={};return JL(f,s,function(h,y){var p=h.rule,g=(p.type==="object"||p.type==="array")&&(ht(p.fields)==="object"||ht(p.defaultField)==="object");g=g&&(p.required||!p.required&&h.value),p.field=h.field;function C(x,E){return q(q({},E),{},{fullField:"".concat(p.fullField,".").concat(x),fullFields:p.fullFields?[].concat(ze(p.fullFields),[x]):[x]})}function b(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(x)?x:[x];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&p.message!==void 0&&p.message!==null&&(E=[].concat(p.message));var O=E.map(Bw(p,i));if(s.first&&O.length)return v[p.field]=1,y(O);if(!g)y(O);else{if(p.required&&!h.value)return p.message!==void 0?O=[].concat(p.message).map(Bw(p,i)):s.error&&(O=[s.error(p,fo(s.messages.required,p.field))]),y(O);var I={};p.defaultField&&Object.keys(h.value).map(function(D){I[D]=p.defaultField}),I=q(q({},I),h.rule.fields);var P={};Object.keys(I).forEach(function(D){var R=I[D],N=Array.isArray(R)?R:[R];P[D]=N.map(C.bind(null,D))});var _=new e(P);_.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),_.validate(h.value,h.rule.options||s,function(D){var R=[];O&&O.length&&R.push.apply(R,ze(O)),D&&D.length&&R.push.apply(R,ze(D)),y(R.length?R:null)})}}var S;if(p.asyncValidator)S=p.asyncValidator(p,h.value,b,h.source,s);else if(p.validator){try{S=p.validator(p,h.value,b,h.source,s)}catch(x){var w,$;(w=($=console).error)===null||w===void 0||w.call($,x),s.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}S===!0?b():S===!1?b(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(x){return b(x)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!xu.hasOwnProperty(n.type))throw new Error(fo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?xu.required:xu[this.getType(n)]||void 0}}]),e}();B(Id,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");xu[t]=n});B(Id,"warning",GL);B(Id,"messages",_y);B(Id,"validators",xu);var ao="'${name}' is not a valid ${type}",x3={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:ao,method:ao,array:ao,object:ao,number:ao,date:ao,boolean:ao,integer:ao,float:ao,regexp:ao,email:ao,url:ao,hex:ao},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}"}},Vw=Id;function xF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Ww="CODE_LOGIC_ERROR";function ky(e,t,n,r,o){return jy.apply(this,arguments)}function jy(){return jy=Pl(Lr().mark(function e(t,n,r,o,a){var i,s,c,u,d,f,m,v,h;return Lr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=q({},r),delete i.ruleIndex,Vw.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(Ww)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new Vw(B({},t,[i])),d=ps(x3,o.validateMessages),u.messages(d),f=[],p.prev=10,p.next=13,Promise.resolve(u.validate(B({},t,n),q({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(f=p.t0.errors.map(function(g,C){var b=g.message,S=b===Ww?d.default:b;return l.isValidElement(S)?l.cloneElement(S,{key:"error_".concat(C)}):S}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){p.next=23;break}return p.next=21,Promise.all(n.map(function(g,C){return ky("".concat(t,".").concat(C),g,c,o,a)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(g,C){return[].concat(ze(g),ze(C))},[]));case 23:return v=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(g){return typeof g=="string"?xF(g,v):g}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),jy.apply(this,arguments)}function wF(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(d,f){var m=d.validator,v=q(q({},d),{},{ruleIndex:f});return m&&(v.validator=function(h,y,p){var g=!1,C=function(){for(var w=arguments.length,$=new Array(w),x=0;x<w;x++)$[x]=arguments[x];Promise.resolve().then(function(){Sn(!g,"Your validator function has already return a promise. `callback` will be ignored."),g||p.apply(void 0,$)})},b=m(h,y,C);g=b&&typeof b.then=="function"&&typeof b.catch=="function",Sn(g,"`callback` is deprecated. Please return a promise instead."),g&&b.then(function(){p()}).catch(function(S){p(S||" ")})}),v}).sort(function(d,f){var m=d.warningOnly,v=d.ruleIndex,h=f.warningOnly,y=f.ruleIndex;return!!m==!!h?v-y:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=Pl(Lr().mark(function f(m,v){var h,y,p;return Lr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h=0;case 1:if(!(h<s.length)){C.next=12;break}return y=s[h],C.next=5,ky(i,t,y,r,a);case 5:if(p=C.sent,!p.length){C.next=9;break}return v([{errors:p,rule:y}]),C.abrupt("return");case 9:h+=1,C.next=1;break;case 12:m([]);case 13:case"end":return C.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return ky(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});c=(o?EF(u):$F(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function $F(e){return zy.apply(this,arguments)}function zy(){return zy=Pl(Lr().mark(function e(t){return Lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,ze(o));return i}));case 1:case"end":return r.stop()}},e)})),zy.apply(this,arguments)}function EF(e){return Ly.apply(this,arguments)}function Ly(){return Ly=Pl(Lr().mark(function e(t){var n;return Lr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Ly.apply(this,arguments)}function Wn(e){return My(e)}function Kw(e,t){var n={};return t.forEach(function(r){var o=Hr(e,r);n=$o(n,r,o)}),n}function Ms(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return w3(t,r,n)})}function w3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function OF(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ht(e)!=="object"||ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ze(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function IF(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ht(t.target)==="object"&&e in t.target?t.target[e]:t}function Uw(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ze(e.slice(0,n)),[o],ze(e.slice(n,t)),ze(e.slice(t+1,r))):a<0?[].concat(ze(e.slice(0,t)),ze(e.slice(t+1,n+1)),[o],ze(e.slice(n+1,r))):e}var RF=["name"],Co=[];function rp(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Q1=function(e){xa(n,e);var t=wa(n);function n(r){var o;if(Pn(this,n),o=t.call(this,r),B(St(o),"state",{resetCount:0}),B(St(o),"cancelRegisterFunc",null),B(St(o),"mounted",!1),B(St(o),"touched",!1),B(St(o),"dirty",!1),B(St(o),"validatePromise",void 0),B(St(o),"prevValidating",void 0),B(St(o),"errors",Co),B(St(o),"warnings",Co),B(St(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Wn(f)),o.cancelRegisterFunc=null}),B(St(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ze(m),ze(u)):[]}),B(St(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),B(St(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),B(St(o),"metaCache",null),B(St(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=q(q({},o.getMeta()),{},{destroy:c});ya(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),B(St(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,y=f.onReset,p=d.store,g=o.getNamePath(),C=o.getValue(c),b=o.getValue(p),S=u&&Ms(u,g);switch(d.type==="valueUpdate"&&d.source==="external"&&!ya(C,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Co,o.warnings=Co,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Co,o.warnings=Co,o.triggerMetaEvent(),y==null||y(),o.refresh();return}break;case"remove":{if(m&&rp(m,c,p,C,b,d)){o.reRender();return}break}case"setField":{var w=d.data;if(S){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Co),"warnings"in w&&(o.warnings=w.warnings||Co),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Ms(u,g,!0)){o.reRender();return}if(m&&!g.length&&rp(m,c,p,C,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var $=h.map(Wn);if($.some(function(x){return Ms(d.relatedFields,x)})){o.reRender();return}break}default:if(S||(!h.length||g.length||m)&&rp(m,c,p,C,b,d)){o.reRender();return}break}m===!0&&o.reRender()}),B(St(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,y=Promise.resolve().then(Pl(Lr().mark(function p(){var g,C,b,S,w,$,x;return Lr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(g=o.props,C=g.validateFirst,b=C===void 0?!1:C,S=g.messageVariables,w=g.validateDebounce,$=o.getRules(),m&&($=$.filter(function(I){return I}).filter(function(I){var P=I.validateTrigger;if(!P)return!0;var _=My(P);return _.includes(m)})),!(w&&m)){O.next=10;break}return O.next=8,new Promise(function(I){setTimeout(I,w)});case 8:if(o.validatePromise===y){O.next=10;break}return O.abrupt("return",[]);case 10:return x=wF(u,d,$,c,b,S),x.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Co;if(o.validatePromise===y){var P;o.validatePromise=null;var _=[],D=[];(P=I.forEach)===null||P===void 0||P.call(I,function(R){var N=R.rule.warningOnly,M=R.errors,k=M===void 0?Co:M;N?D.push.apply(D,ze(k)):_.push.apply(_,ze(k))}),o.errors=_,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",x);case 13:case"end":return O.stop()}},p)})));return h||(o.validatePromise=y,o.dirty=!0,o.errors=Co,o.warnings=Co,o.triggerMetaEvent(),o.reRender()),y}),B(St(o),"isFieldValidating",function(){return!!o.validatePromise}),B(St(o),"isFieldTouched",function(){return o.touched}),B(St(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(el),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),B(St(o),"getErrors",function(){return o.errors}),B(St(o),"getWarnings",function(){return o.warnings}),B(St(o),"isListField",function(){return o.props.isListField}),B(St(o),"isList",function(){return o.props.isList}),B(St(o),"isPreserve",function(){return o.props.preserve}),B(St(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),B(St(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return q(q({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=$r(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),B(St(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Hr(c||u(!0),d)}),B(St(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,v=u.getValueFromEvent,h=u.normalize,y=u.valuePropName,p=u.getValueProps,g=u.fieldContext,C=m!==void 0?m:g.validateTrigger,b=o.getNamePath(),S=g.getInternalHooks,w=g.getFieldsValue,$=S(el),x=$.dispatch,E=o.getValue(),O=p||function(R){return B({},y,R)},I=c[f],P=d!==void 0?O(E):{},_=q(q({},c),P);_[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,N=arguments.length,M=new Array(N),k=0;k<N;k++)M[k]=arguments[k];v?R=v.apply(void 0,M):R=IF.apply(void 0,[y].concat(M)),h&&(R=h(R,E,w(!0))),R!==E&&x({type:"updateValue",namePath:b,value:R}),I&&I.apply(void 0,M)};var D=My(C||[]);return D.forEach(function(R){var N=_[R];_[R]=function(){N&&N.apply(void 0,arguments);var M=o.props.rules;M&&M.length&&x({type:"validateField",namePath:b,triggerName:R})}}),_}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(el),s=i.initEntityValue;s(St(o))}return o}return Mn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,c=s(el),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,c=i.isFunction,u;return c?u=s:l.isValidElement(s)?u=l.cloneElement(s,this.getControlled(s.props)):(Sn(!s,"`children` of Field is not validate ReactElement."),u=s),l.createElement(l.Fragment,{key:o},u)}}]),n}(l.Component);B(Q1,"contextType",yl);B(Q1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function J1(e){var t,n=e.name,r=Pt(e,RF),o=l.useContext(yl),a=l.useContext(rd),i=n!==void 0?Wn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,c="keep";return s||(c="_".concat((i||[]).join("_"))),l.createElement(Q1,be({key:c,name:i,isListField:s},r,{fieldContext:o}))}function $3(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=l.useContext(yl),c=l.useContext(rd),u=l.useRef({keys:[],id:0}),d=u.current,f=l.useMemo(function(){var y=Wn(s.prefixName)||[];return[].concat(ze(y),ze(Wn(t)))},[s.prefixName,t]),m=l.useMemo(function(){return q(q({},s),{},{prefixName:f})},[s,f]),v=l.useMemo(function(){return{getKey:function(p){var g=f.length,C=p[g];return[d.keys[C],p.slice(g+1)]}}},[f]);if(typeof r!="function")return Sn(!1,"Form.List only accepts function as children."),null;var h=function(p,g,C){var b=C.source;return b==="internal"?!1:p!==g};return l.createElement(rd.Provider,{value:v},l.createElement(yl.Provider,{value:m},l.createElement(J1,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!c},function(y,p){var g=y.value,C=g===void 0?[]:g,b=y.onChange,S=s.getFieldValue,w=function(){var O=S(f||[]);return O||[]},$={add:function(O,I){var P=w();I>=0&&I<=P.length?(d.keys=[].concat(ze(d.keys.slice(0,I)),[d.id],ze(d.keys.slice(I))),b([].concat(ze(P.slice(0,I)),[O],ze(P.slice(I))))):(d.keys=[].concat(ze(d.keys),[d.id]),b([].concat(ze(P),[O]))),d.id+=1},remove:function(O){var I=w(),P=new Set(Array.isArray(O)?O:[O]);P.size<=0||(d.keys=d.keys.filter(function(_,D){return!P.has(D)}),b(I.filter(function(_,D){return!P.has(D)})))},move:function(O,I){if(O!==I){var P=w();O<0||O>=P.length||I<0||I>=P.length||(d.keys=Uw(d.keys,O,I),b(Uw(P,O,I)))}}},x=C||[];return Array.isArray(x)||(x=[]),r(x.map(function(E,O){var I=d.keys[O];return I===void 0&&(d.keys[O]=d.id,I=d.keys[O],d.id+=1),{name:O,key:I,isListField:!0}}),$,p)})))}function PF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var E3="__@field_split__";function op(e){return e.map(function(t){return"".concat(ht(t),":").concat(t)}).join(E3)}var Wl=function(){function e(){Pn(this,e),B(this,"kvs",new Map)}return Mn(e,[{key:"set",value:function(n,r){this.kvs.set(op(n),r)}},{key:"get",value:function(n){return this.kvs.get(op(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(op(n))}},{key:"map",value:function(n){return ze(this.kvs.entries()).map(function(r){var o=te(r,2),a=o[0],i=o[1],s=a.split(E3);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=te(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),MF=["name"],NF=Mn(function e(t){var n=this;Pn(this,e),B(this,"formHooked",!1),B(this,"forceRootUpdate",void 0),B(this,"subscribable",!0),B(this,"store",{}),B(this,"fieldEntities",[]),B(this,"initialValues",{}),B(this,"callbacks",{}),B(this,"validateMessages",null),B(this,"preserve",null),B(this,"lastValidatePromise",null),B(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),B(this,"getInternalHooks",function(r){return r===el?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Sn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),B(this,"useSubscribe",function(r){n.subscribable=r}),B(this,"prevWithoutPreserves",null),B(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=ps(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;i=$o(i,c,Hr(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),B(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Wl;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),B(this,"getInitialValue",function(r){var o=Hr(n.initialValues,r);return r.length?ps(o):o}),B(this,"setCallbacks",function(r){n.callbacks=r}),B(this,"setValidateMessages",function(r){n.validateMessages=r}),B(this,"setPreserve",function(r){n.preserve=r}),B(this,"watchList",[]),B(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),B(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),B(this,"timeoutId",null),B(this,"warningUnhooked",function(){}),B(this,"updateStore",function(r){n.store=r}),B(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),B(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Wl;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),B(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Wn(a);return o.get(i)||{INVALIDATE_NAME_PATH:Wn(a)}})}),B(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&ht(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,y;if((h=(y=d).isList)!==null&&h!==void 0&&h.call(y))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(v);else{var p="getMeta"in d?d.getMeta():null;i(p)&&u.push(v)}}),Kw(n.store,u.map(Wn))}),B(this,"getFieldValue",function(r){n.warningUnhooked();var o=Wn(r);return Hr(n.store,o)}),B(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Wn(r[i]),errors:[],warnings:[]}})}),B(this,"getFieldError",function(r){n.warningUnhooked();var o=Wn(r),a=n.getFieldsError([o])[0];return a.errors}),B(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Wn(r),a=n.getFieldsError([o])[0];return a.warnings}),B(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(i)?(c=i.map(Wn),u=!1):(c=null,u=i):(c=i.map(Wn),u=s);var d=n.getFieldEntities(!0),f=function(p){return p.isFieldTouched()};if(!c)return u?d.every(function(y){return f(y)||y.isList()}):d.some(f);var m=new Wl;c.forEach(function(y){m.set(y,[])}),d.forEach(function(y){var p=y.getNamePath();c.forEach(function(g){g.every(function(C,b){return p[b]===C})&&m.update(g,function(C){return[].concat(ze(C),[y])})})});var v=function(p){return p.some(f)},h=m.map(function(y){var p=y.value;return p});return u?h.every(v):h.some(v)}),B(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),B(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Wn);return o.some(function(i){var s=i.getNamePath();return Ms(a,s)&&i.isFieldValidating()})}),B(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),B(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Wl,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)Sn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=o.get(m);if(h&&h.size>1)Sn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var y=n.getFieldValue(m),p=d.isListField();!p&&(!r.skipExist||y===void 0)&&n.updateStore($o(n.store,m,ze(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,ze(ze(u).map(function(f){return f.entity})))}})):s=a,i(s)}),B(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ps(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Wn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore($o(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),B(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,c=Pt(i,MF),u=Wn(s);a.push(u),"value"in c&&n.updateStore($o(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),B(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),c=q(q({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),B(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Hr(n.store,a);i===void 0&&n.updateStore($o(n.store,a,o))}}),B(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),B(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!w3(f.getNamePath(),o)})){var d=n.store;n.updateStore($o(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),B(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),B(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,i)})}else n.forceRootUpdate()}),B(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ze(a))}),a}),B(this,"updateValue",function(r,o){var a=Wn(r),i=n.store;n.updateStore($o(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var u=Kw(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ze(s)))}),B(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ps(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),B(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),B(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Wl;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Wn(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),B(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Wl;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return Ms(r,d)});c.length&&a(c,i)}}),B(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,c=s?a.map(Wn):[],u=[],d=String(Date.now()),f=new Set,m=i||{},v=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(s||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(h&&!C.isFieldDirty())){var b=C.getNamePath();if(f.add(b.join(d)),!s||Ms(c,b,v)){var S=C.validateRules(q({validateMessages:q(q({},x3),n.validateMessages)},i));u.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var $,x=[],E=[];return($=w.forEach)===null||$===void 0||$.call(w,function(O){var I=O.rule.warningOnly,P=O.errors;I?E.push.apply(E,ze(P)):x.push.apply(x,ze(P))}),x.length?Promise.reject({name:b,errors:x,warnings:E}):{name:b,errors:x,warnings:E}}))}}});var y=PF(u);n.lastValidatePromise=y,y.catch(function(C){return C}).then(function(C){var b=C.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,C)});var p=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var b=C.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:b,outOfDate:n.lastValidatePromise!==y})});p.catch(function(C){return C});var g=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(g),p}),B(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Z1(e){var t=l.useRef(),n=l.useState({}),r=te(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new NF(a);t.current=i.getForm()}return[t.current]}var Fy=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),O3=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=l.useContext(Fy),s=l.useRef({});return l.createElement(Fy.Provider,{value:q(q({},i),{},{validateMessages:q(q({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=q(q({},s.current),{},B({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=q({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},a)},_F=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],TF=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,h=t.onValuesChange,y=t.onFieldsChange,p=t.onFinish,g=t.onFinishFailed,C=t.clearOnDestroy,b=Pt(t,_F),S=l.useRef(null),w=l.useContext(Fy),$=Z1(i),x=te($,1),E=x[0],O=E.getInternalHooks(el),I=O.useSubscribe,P=O.setInitialValues,_=O.setCallbacks,D=O.setValidateMessages,R=O.setPreserve,N=O.destroyForm;l.useImperativeHandle(n,function(){return q(q({},E),{},{nativeElement:S.current})}),l.useEffect(function(){return w.registerForm(r,E),function(){w.unregisterForm(r)}},[w,E,r]),D(q(q({},w.validateMessages),f)),_({onValuesChange:h,onFieldsChange:function(H){if(w.triggerFormChange(r,H),y){for(var U=arguments.length,X=new Array(U>1?U-1:0),ee=1;ee<U;ee++)X[ee-1]=arguments[ee];y.apply(void 0,[H].concat(X))}},onFinish:function(H){w.triggerFormFinish(r,H),p&&p(H)},onFinishFailed:g}),R(s);var M=l.useRef(null);P(o,!M.current),M.current||(M.current=!0),l.useEffect(function(){return function(){return N(C)}},[]);var k,T=typeof c=="function";if(T){var z=E.getFieldsValue(!0);k=c(z,E)}else k=c;I(!T);var j=l.useRef();l.useEffect(function(){OF(j.current||[],a||[])||E.setFields(a||[]),j.current=a},[a,E]);var L=l.useMemo(function(){return q(q({},E),{},{validateTrigger:v})},[E,v]),F=l.createElement(rd.Provider,{value:null},l.createElement(yl.Provider,{value:L},k));return d===!1?F:l.createElement(d,be({},b,{ref:S,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),E.submit()},onReset:function(H){var U;H.preventDefault(),E.resetFields(),(U=b.onReset)===null||U===void 0||U.call(b,H)}}),F)};function qw(e){try{return JSON.stringify(e)}catch{return Math.random()}}function I3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=WL(a)?{form:a}:a,s=i.form,c=l.useState(),u=te(c,2),d=u[0],f=u[1],m=l.useMemo(function(){return qw(d)},[d]),v=l.useRef(m);v.current=m;var h=l.useContext(yl),y=s||h,p=y&&y._init,g=Wn(r),C=l.useRef(g);return C.current=g,l.useEffect(function(){if(p){var b=y.getFieldsValue,S=y.getInternalHooks,w=S(el),$=w.registerWatch,x=function(P,_){var D=i.preserve?_:P;return typeof r=="function"?r(D):Hr(D,C.current)},E=$(function(I,P){var _=x(I,P),D=qw(_);v.current!==D&&(v.current=D,f(_))}),O=x(b(),b(!0));return d!==O&&f(O),E}},[p]),d}var DF=l.forwardRef(TF),fc=DF;fc.FormProvider=O3;fc.Field=J1;fc.List=$3;fc.useForm=Z1;fc.useWatch=I3;const Ba=l.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),R3=l.createContext(null),P3=e=>{const t=un(e,["prefixCls"]);return l.createElement(O3,Object.assign({},t))},eC=l.createContext({prefixCls:""}),ir=l.createContext({}),M3=({children:e,status:t,override:n})=>{const r=l.useContext(ir),o=l.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return l.createElement(ir.Provider,{value:o},e)},N3=l.createContext(void 0),Sa=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=le.createElement(M3,{override:!0,status:!0},o)),t&&(o=le.createElement(cz,null,o)),o};var _3=function(t){if(Er()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},kF=function(t,n){if(!_3(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Ay(e,t){return!Array.isArray(e)&&t!==void 0?kF(e,t):_3(e)}const jF=()=>Er()&&window.document.documentElement,vh=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Z({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=Z({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=l.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return l.createElement("span",{className:Z(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},zF=new nn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),hh=e=>({height:e,lineHeight:Y(e)}),Ns=e=>Object.assign({width:e},hh(e)),LF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:zF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ap=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},hh(e)),FF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ns(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ns(o)),[`${t}${t}-sm`]:Object.assign({},Ns(a))}},AF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},ap(t,s)),[`${r}-lg`]:Object.assign({},ap(o,s)),[`${r}-sm`]:Object.assign({},ap(a,s))}},Gw=e=>Object.assign({width:e},hh(e)),BF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Gw(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Gw(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ip=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},lp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},hh(e)),HF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},lp(r,s))},ip(e,r,n)),{[`${n}-lg`]:Object.assign({},lp(o,s))}),ip(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},lp(a,s))}),ip(e,a,`${n}-sm`))},VF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:v,borderRadius:h,titleHeight:y,blockRadius:p,paragraphLiHeight:g,controlHeightXS:C,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Ns(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ns(u)),[`${n}-sm`]:Object.assign({},Ns(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:y,background:f,borderRadius:p,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:C}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:v,[`+ ${o}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},HF(e)),FF(e)),AF(e)),BF(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
205
+ ${r},
206
+ ${o} > li,
207
+ ${n},
208
+ ${a},
209
+ ${i},
210
+ ${s}
211
+ `]:Object.assign({},LF(e))}}},WF=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},mc=Gt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=At(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return VF(r)},WF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),KF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(Et),c=s("skeleton",t),[u,d,f]=mc(c),m=un(e,["prefixCls","className"]),v=Z(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(l.createElement("div",{className:v},l.createElement(vh,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:i},m))))},UF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(Et),c=s("skeleton",t),[u,d,f]=mc(c),m=un(e,["prefixCls"]),v=Z(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(l.createElement("div",{className:v},l.createElement(vh,Object.assign({prefixCls:`${c}-button`,size:i},m))))},qF="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",GF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=l.useContext(Et),s=i("skeleton",t),[c,u,d]=mc(s),f=Z(s,`${s}-element`,{[`${s}-active`]:a},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:Z(`${s}-image`,n),style:o},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:qF,className:`${s}-image-path`})))))},YF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=l.useContext(Et),c=s("skeleton",t),[u,d,f]=mc(c),m=un(e,["prefixCls"]),v=Z(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(l.createElement("div",{className:v},l.createElement(vh,Object.assign({prefixCls:`${c}-input`,size:i},m))))},XF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=l.useContext(Et),c=s("skeleton",t),[u,d,f]=mc(c),m=Z(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f);return u(l.createElement("div",{className:m},l.createElement("div",{className:Z(`${c}-image`,n),style:o},i)))},QF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},JF=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((i,s)=>l.createElement("li",{key:s,style:{width:QF(s,e)}}));return l.createElement("ul",{className:Z(t,n),style:r},a)},ZF=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Z(e,t),style:Object.assign({width:n},r)});function sp(e){return e&&typeof e=="object"?e:{}}function eA(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tA(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function nA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ml=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:v,className:h,style:y}=gr("skeleton"),p=m("skeleton",t),[g,C,b]=mc(p);if(n||!("loading"in e)){const S=!!s,w=!!c,$=!!u;let x;if(S){const I=Object.assign(Object.assign({prefixCls:`${p}-avatar`},eA(w,$)),sp(s));x=l.createElement("div",{className:`${p}-header`},l.createElement(vh,Object.assign({},I)))}let E;if(w||$){let I;if(w){const _=Object.assign(Object.assign({prefixCls:`${p}-title`},tA(S,$)),sp(c));I=l.createElement(ZF,Object.assign({},_))}let P;if($){const _=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},nA(S,w)),sp(u));P=l.createElement(JF,Object.assign({},_))}E=l.createElement("div",{className:`${p}-content`},I,P)}const O=Z(p,{[`${p}-with-avatar`]:S,[`${p}-active`]:d,[`${p}-rtl`]:v==="rtl",[`${p}-round`]:f},h,r,o,C,b);return g(l.createElement("div",{className:O,style:Object.assign(Object.assign({},y),a)},x,E))}return i??null};Ml.Button=UF;Ml.Avatar=KF;Ml.Input=YF;Ml.Image=GF;Ml.Node=XF;function Yw(){}const rA=l.createContext({add:Yw,remove:Yw});function oA(e){const t=l.useContext(rA),n=l.useRef(null);return zt(o=>{if(o){const a=e?o.querySelector(e):o;a&&(t.add(a),n.current=a)}else t.remove(n.current)})}const Xw=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(Ed);return le.createElement(Fn,Object.assign({onClick:n},e),t)},Qw=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=l.useContext(Ed);return le.createElement(Fn,Object.assign({},K1(n),{loading:e,onClick:o},t),r)};function T3(e,t){return le.createElement("span",{className:`${e}-close-x`},t||le.createElement(sc,{className:`${e}-close-icon`}))}const D3=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=yo("Modal",vR()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),v=le.useMemo(()=>({confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i}),[o,s,c,f,m,n,a,i]);let h;return typeof u=="function"||typeof u>"u"?(h=le.createElement(le.Fragment,null,le.createElement(Xw,null),le.createElement(Qw,null)),typeof u=="function"&&(h=u(h,{OkBtn:Qw,CancelBtn:Xw})),h=le.createElement(v3,{value:v},h)):h=u,le.createElement(F1,{disabled:!1},h)},aA=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"}}}},iA=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lA=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},By=(e,t)=>lA(e,t),sA=(e,t,n)=>({[`@media (min-width: ${Y(t)})`]:Object.assign({},By(e,n))}),cA=()=>({}),uA=()=>({}),dA=Gt("Grid",aA,cA),k3=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),fA=Gt("Grid",e=>{const t=At(e,{gridColumns:24}),n=k3(t);return delete n.xs,[iA(t),By(t,""),By(t,"-xs"),Object.keys(n).map(r=>sA(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},uA);function Jw(e){return{position:e,inset:0}}const mA=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Jw("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Jw("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Mz(e)}]},vA=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Y(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},tn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Y(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Y(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ra(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Y(e.borderRadiusLG)} ${Y(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:`${Y(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
212
+ ${t}-body,
213
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},hA=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},gA=e=>{const{componentCls:t}=e,n=k3(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,a=Object.keys(r).map(i=>({[`@media (min-width: ${Y(r[i])})`]:{width:`var(${o}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ze(Object.keys(n).map((i,s)=>{const c=Object.keys(n)[s-1];return c?{[`${o}${i}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],ze(a))}}},j3=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return At(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},z3=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Y(e.paddingMD)} ${Y(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Y(e.padding)} ${Y(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Y(e.paddingXS)} ${Y(e.padding)}`:0,footerBorderTop:e.wireframe?`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Y(e.padding*2)} ${Y(e.padding*2)} ${Y(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),L3=Gt("Modal",e=>{const t=j3(e);return[vA(t),hA(t),mA(t),$d(t,"zoom"),gA(t)]},z3,{unitless:{titleLineHeight:!0}});var pA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Hy;const yA=e=>{Hy={x:e.pageX,y:e.pageY},setTimeout(()=>{Hy=null},100)};jF()&&document.documentElement.addEventListener("click",yA,!0);const F3=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:a,centered:i,getContainer:s,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:v,styles:h,children:y,loading:p,confirmLoading:g,zIndex:C,mousePosition:b,onOk:S,onCancel:w,destroyOnHidden:$,destroyOnClose:x,panelRef:E=null,modalRender:O}=e,I=pA(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:P,getPrefixCls:_,direction:D,modal:R}=l.useContext(Et),N=ge=>{g||w==null||w(ge)},M=ge=>{S==null||S(ge)},k=_("modal",t),T=_(),z=Un(k),[j,L,F]=L3(k,z),A=Z(a,{[`${k}-centered`]:i??(R==null?void 0:R.centered),[`${k}-wrap-rtl`]:D==="rtl"}),H=m!==null&&!p?l.createElement(D3,Object.assign({},e,{onOk:M,onCancel:N})):null,[U,X,ee,J]=JR(Qm(e),Qm(R),{closable:!0,closeIcon:l.createElement(sc,{className:`${k}-close-icon`}),closeIconRender:ge=>T3(k,ge)}),oe=O?ge=>l.createElement("div",{className:`${k}-render`},O(ge)):void 0,ue=`.${k}-${O?"render":"content"}`,se=oA(ue),Q=lr(E,se),[fe,de]=Rl("Modal",C),[ie,re]=l.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),he=l.useMemo(()=>{const ge={};return re&&Object.keys(re).forEach(Ne=>{const Pe=re[Ne];Pe!==void 0&&(ge[`--${k}-${Ne}-width`]=typeof Pe=="number"?`${Pe}px`:Pe)}),ge},[k,re]);return j(l.createElement(Sa,{form:!0,space:!0},l.createElement(Zv.Provider,{value:de},l.createElement(C3,Object.assign({width:ie},I,{zIndex:fe,getContainer:s===void 0?P:s,prefixCls:k,rootClassName:Z(L,r,F,z),footer:H,visible:o??d,mousePosition:b??Hy,onClose:N,closable:U&&Object.assign({disabled:ee,closeIcon:X},J),closeIcon:X,focusTriggerAfterClose:c,transitionName:Oi(T,"zoom",e.transitionName),maskTransitionName:Oi(T,"fade",e.maskTransitionName),className:Z(L,n,R==null?void 0:R.className),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),u),he),classNames:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.classNames),v),{wrapper:Z(A,v==null?void 0:v.wrapper)}),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),h),panelRef:Q,destroyOnClose:$??x,modalRender:oe}),p?l.createElement(Ml,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):y))))},bA=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Ei()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Y(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${Y(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
214
+ ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},CA=ac(["Modal","confirm"],e=>{const t=j3(e);return bA(t)},z3,{order:-1e3});var SA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A3=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:c,locale:u}=e,d=SA(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=l.createElement(qR,null);break;case"success":f=l.createElement(Jv,null);break;case"error":f=l.createElement(lc,null);break;default:f=l.createElement(cc,null)}const m=s??i==="confirm",v=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=yo("Modal"),y=u||h,p=r||(m?y==null?void 0:y.okText:y==null?void 0:y.justOkText),g=o||(y==null?void 0:y.cancelText),C=l.useMemo(()=>Object.assign({autoFocusButton:v,cancelTextLocale:g,okTextLocale:p,mergedOkCancel:m},d),[v,g,p,m,d]),b=l.createElement(l.Fragment,null,l.createElement(Pw,null),l.createElement(Mw,null)),S=e.title!==void 0&&e.title!==null,w=`${a}-body`;return l.createElement("div",{className:`${a}-body-wrapper`},l.createElement("div",{className:Z(w,{[`${w}-has-title`]:S})},f,l.createElement("div",{className:`${a}-paragraph`},S&&l.createElement("span",{className:`${a}-title`},e.title),l.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(v3,{value:C},l.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(b,{OkBtn:Mw,CancelBtn:Pw}):b)):c,l.createElement(CA,{prefixCls:t}))},xA=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:a,wrapClassName:i,rootPrefixCls:s,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,v=`${a}-confirm`,h=e.width||416,y=e.style||{},p=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,C=Z(v,`${v}-${e.type}`,{[`${v}-rtl`]:o==="rtl"},e.className),[,b]=Ir(),S=l.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+t3,[n,b]);return l.createElement(F3,Object.assign({},e,{className:C,wrapClassName:Z({[`${v}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:Oi(s||"","zoom",e.transitionName),maskTransitionName:Oi(s||"","fade",e.maskTransitionName),mask:p,maskClosable:g,style:y,styles:Object.assign({body:c,mask:r},f),width:h,zIndex:S,closable:u}),l.createElement(A3,Object.assign({},e,{confirmPrefixCls:v})))},B3=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return l.createElement(jo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},l.createElement(xA,Object.assign({},e)))},tl=[];let H3="";function V3(){return H3}const wA=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=vR(),s=l.useContext(Et),c=V3()||s.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0),le.createElement(B3,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function Rd(e){const t=HR(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),o,a;function i(...d){var f;if(d.some(h=>h==null?void 0:h.triggerCancel)){var v;(f=e.onCancel)===null||f===void 0||(v=f).call.apply(v,[e,()=>{}].concat(ze(d.slice(1))))}for(let h=0;h<tl.length;h++)if(tl[h]===c){tl.splice(h,1);break}a()}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,V3()),m=t.getIconPrefixCls(),v=t.getTheme(),h=le.createElement(wA,Object.assign({},d));a=W1()(le.createElement(jo,{prefixCls:f,iconPrefixCls:m,theme:v},typeof t.holderRender=="function"?t.holderRender(h):h),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),s(r)}return s(r),tl.push(c),{destroy:c,update:u}}function W3(e){return Object.assign(Object.assign({},e),{type:"warning"})}function K3(e){return Object.assign(Object.assign({},e),{type:"info"})}function U3(e){return Object.assign(Object.assign({},e),{type:"success"})}function q3(e){return Object.assign(Object.assign({},e),{type:"error"})}function G3(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function $A({rootPrefixCls:e}){H3=e}var EA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OA=(e,t)=>{var n,{afterClose:r,config:o}=e,a=EA(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(o),{direction:d,getPrefixCls:f}=l.useContext(Et),m=f("modal"),v=f(),h=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},y=(...C)=>{var b;if(s(!1),C.some($=>$==null?void 0:$.triggerCancel)){var w;(b=c.onCancel)===null||b===void 0||(w=b).call.apply(w,[c,()=>{}].concat(ze(C.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:y,update:C=>{u(b=>{const S=typeof C=="function"?C(b):C;return Object.assign(Object.assign({},b),S)})}}));const p=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[g]=yo("Modal",ea.Modal);return l.createElement(B3,Object.assign({prefixCls:m,rootPrefixCls:v},c,{close:y,open:i,afterClose:h,okText:c.okText||(p?g==null?void 0:g.okText:g==null?void 0:g.justOkText),direction:c.direction||d,cancelText:c.cancelText||(g==null?void 0:g.cancelText)},a))},IA=l.forwardRef(OA);let Zw=0;const RA=l.memo(l.forwardRef((e,t)=>{const[n,r]=C7();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function PA(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(ze(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(a=>function(s){var c;Zw+=1;const u=l.createRef();let d;const f=new Promise(p=>{d=p});let m=!1,v;const h=l.createElement(IA,{key:`modal-${Zw}`,config:a(s),ref:u,afterClose:()=>{v==null||v()},isSilent:()=>m,onConfirm:p=>{d(p)}});return v=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),v&&tl.push(v),{destroy:()=>{function p(){var g;(g=u.current)===null||g===void 0||g.destroy()}u.current?p():n(g=>[].concat(ze(g),[p]))},update:p=>{function g(){var C;(C=u.current)===null||C===void 0||C.update(p)}u.current?g():n(C=>[].concat(ze(C),[g]))},then:p=>(m=!0,f.then(p))}},[]);return[l.useMemo(()=>({info:r(K3),success:r(U3),error:r(q3),warning:r(W3),confirm:r(G3)}),[r]),l.createElement(RA,{key:"modal-holder",ref:e})]}const MA=le.createContext({});function Y3(e){return t=>l.createElement(jo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const gh=(e,t,n,r,o)=>Y3(i=>{const{prefixCls:s,style:c}=i,u=l.useRef(null),[d,f]=l.useState(0),[m,v]=l.useState(0),[h,y]=en(!1,{value:i.open}),{getPrefixCls:p}=l.useContext(Et),g=p(r||"select",s);l.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver($=>{const x=$[0].target;f(x.offsetHeight+8),v(x.offsetWidth)}),w=setInterval(()=>{var $;const x=o?`.${o(g)}`:`.${g}-dropdown`,E=($=u.current)===null||$===void 0?void 0:$.querySelector(x);E&&(clearInterval(w),S.observe(E))},10);return()=>{clearInterval(w),S.disconnect()}}},[g]);let C=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:d,position:"relative",minWidth:m};return l.createElement("div",{ref:u,style:b},l.createElement(e,Object.assign({},C)))}),ph=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var yh=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:Z(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},NA=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=le.useMemo(function(){if(ht(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=le.useMemo(function(){return!!(!i&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,i,r.length,s,c]);return{allowClear:d,clearIcon:le.createElement(yh,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},X3=l.createContext(null);function _A(){return l.useContext(X3)}function TA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=te(t,2),r=n[0],o=n[1],a=l.useRef(null),i=function(){window.clearTimeout(a.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,i]}function Q3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function DA(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function kA(e){return e&&![ct.ESC,ct.SHIFT,ct.BACKSPACE,ct.TAB,ct.WIN_KEY,ct.ALT,ct.META,ct.WIN_KEY_RIGHT,ct.CTRL,ct.SEMICOLON,ct.EQUALS,ct.CAPS_LOCK,ct.CONTEXT_MENU,ct.F1,ct.F2,ct.F3,ct.F4,ct.F5,ct.F6,ct.F7,ct.F8,ct.F9,ct.F10,ct.F11,ct.F12].includes(e)}var jA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Kl=void 0;function zA(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,h=e.order,y=e.component,p=y===void 0?"div":y,g=Pt(e,jA),C=i&&!v;function b(E){c(u,E)}l.useEffect(function(){return function(){b(null)}},[]);var S=a&&o!==Kl?a(o,{index:h}):m,w;r||(w={opacity:C?0:1,height:C?0:Kl,overflowY:C?"hidden":Kl,order:i?h:Kl,pointerEvents:C?"none":Kl,position:C?"absolute":Kl});var $={};C&&($["aria-hidden"]=!0);var x=l.createElement(p,be({className:Z(!r&&n,d),style:q(q({},w),f)},$,g,{ref:t}),S);return i&&(x=l.createElement(Sr,{onResize:function(O){var I=O.offsetWidth;b(I)},disabled:s},x)),x}var Cs=l.forwardRef(zA);Cs.displayName="Item";function LA(e){if(typeof MessageChannel>"u")jt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function FA(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],LA(function(){Jo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ul(e,t){var n=l.useState(t),r=te(n,2),o=r[0],a=r[1],i=zt(function(s){e(function(){a(s)})});return[o,i]}var tv=le.createContext(null),AA=["component"],BA=["className"],HA=["className"],VA=function(t,n){var r=l.useContext(tv);if(!r){var o=t.component,a=o===void 0?"div":o,i=Pt(t,AA);return l.createElement(a,be({},i,{ref:n}))}var s=r.className,c=Pt(r,BA),u=t.className,d=Pt(t,HA);return l.createElement(tv.Provider,{value:null},l.createElement(Cs,be({ref:n,className:Z(s,u)},c,d)))},J3=l.forwardRef(VA);J3.displayName="RawItem";var WA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Z3="responsive",eP="invalidate";function KA(e){return"+ ".concat(e.length," ...")}function UA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,h=e.maxCount,y=e.renderRest,p=e.renderRawRest,g=e.prefix,C=e.suffix,b=e.component,S=b===void 0?"div":b,w=e.itemComponent,$=e.onVisibleChange,x=Pt(e,WA),E=f==="full",O=FA(),I=Ul(O,null),P=te(I,2),_=P[0],D=P[1],R=_||0,N=Ul(O,new Map),M=te(N,2),k=M[0],T=M[1],z=Ul(O,0),j=te(z,2),L=j[0],F=j[1],A=Ul(O,0),H=te(A,2),U=H[0],X=H[1],ee=Ul(O,0),J=te(ee,2),oe=J[0],ue=J[1],se=Ul(O,0),Q=te(se,2),fe=Q[0],de=Q[1],ie=l.useState(null),re=te(ie,2),he=re[0],ge=re[1],Ne=l.useState(null),Pe=te(Ne,2),ve=Pe[0],$e=Pe[1],Ee=l.useMemo(function(){return ve===null&&E?Number.MAX_SAFE_INTEGER:ve||0},[ve,_]),we=l.useState(!1),Ae=te(we,2),Le=Ae[0],Ye=Ae[1],Ke="".concat(r,"-item"),He=Math.max(L,U),Ue=h===Z3,Me=a.length&&Ue,Se=h===eP,Fe=Me||typeof h=="number"&&a.length>h,xe=l.useMemo(function(){var G=a;return Me?_===null&&E?G=a:G=a.slice(0,Math.min(a.length,R/d)):typeof h=="number"&&(G=a.slice(0,h)),G},[a,d,_,h,Me]),Te=l.useMemo(function(){return Me?a.slice(Ee+1):a.slice(xe.length)},[a,xe,Me,Ee]),Oe=l.useCallback(function(G,ce){var ye;return typeof c=="function"?c(G):(ye=c&&(G==null?void 0:G[c]))!==null&&ye!==void 0?ye:ce},[c]),Ie=l.useCallback(i||function(G){return G},[i]);function je(G,ce,ye){ve===G&&(ce===void 0||ce===he)||($e(G),ye||(Ye(G<a.length-1),$==null||$(G)),ce!==void 0&&ge(ce))}function qe(G,ce){D(ce.clientWidth)}function ut(G,ce){T(function(ye){var De=new Map(ye);return ce===null?De.delete(G):De.set(G,ce),De})}function bt(G,ce){X(ce),F(U)}function Ge(G,ce){ue(ce)}function tt(G,ce){de(ce)}function rt(G){return k.get(Oe(xe[G],G))}Dt(function(){if(R&&typeof He=="number"&&xe){var G=oe+fe,ce=xe.length,ye=ce-1;if(!ce){je(0,null);return}for(var De=0;De<ce;De+=1){var Be=rt(De);if(E&&(Be=Be||0),Be===void 0){je(De-1,void 0,!0);break}if(G+=Be,ye===0&&G<=R||De===ye-1&&G+rt(ye)<=R){je(ye,null);break}else if(G+He>R){je(De-1,G-Be-fe+U);break}}C&&rt(0)+fe>R&&ge(null)}},[R,k,U,oe,fe,Oe,xe]);var V=Le&&!!Te.length,ae={};he!==null&&Me&&(ae={position:"absolute",left:he,top:0});var me={prefixCls:Ke,responsive:Me,component:w,invalidate:Se},Ce=s?function(G,ce){var ye=Oe(G,ce);return l.createElement(tv.Provider,{key:ye,value:q(q({},me),{},{order:ce,item:G,itemKey:ye,registerSize:ut,display:ce<=Ee})},s(G,ce))}:function(G,ce){var ye=Oe(G,ce);return l.createElement(Cs,be({},me,{order:ce,key:ye,item:G,renderItem:Ie,itemKey:ye,registerSize:ut,display:ce<=Ee}))},pe={order:V?Ee:Number.MAX_SAFE_INTEGER,className:"".concat(Ke,"-rest"),registerSize:bt,display:V},Re=y||KA,W=p?l.createElement(tv.Provider,{value:q(q({},me),pe)},p(Te)):l.createElement(Cs,be({},me,pe),typeof Re=="function"?Re(Te):Re),K=l.createElement(S,be({className:Z(!Se&&r,v),style:m,ref:t},x),g&&l.createElement(Cs,be({},me,{responsive:Ue,responsiveDisabled:!Me,order:-1,className:"".concat(Ke,"-prefix"),registerSize:Ge,display:!0}),g),xe.map(Ce),Fe?W:null,C&&l.createElement(Cs,be({},me,{responsive:Ue,responsiveDisabled:!Me,order:Ee,className:"".concat(Ke,"-suffix"),registerSize:tt,display:!0,style:ae}),C));return Ue?l.createElement(Sr,{onResize:qe,disabled:!Me},K):K}var Xo=l.forwardRef(UA);Xo.displayName="Overflow";Xo.Item=J3;Xo.RESPONSIVE=Z3;Xo.INVALIDATE=eP;function qA(e,t,n){var r=q(q({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return a.apply(void 0,c),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(c))})}),r}var GA=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],YA=function(t,n){var r=t.prefixCls,o=t.id,a=t.inputElement,i=t.autoFocus,s=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,v=Pt(t,GA),h=a||l.createElement("input",null),y=h,p=y.ref,g=y.props;return"maxLength"in h.props,h=l.cloneElement(h,q(q(q({type:"search"},qA(v,g)),{},{id:o,ref:lr(n,p),autoComplete:s||"off",autoFocus:i,className:Z("".concat(r,"-selection-search-input"),g==null?void 0:g.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?u:void 0},m),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",style:q(q({},g.style),{},{opacity:c?null:0})})),h},tP=l.forwardRef(YA);function nP(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var XA=typeof window<"u"&&window.document&&window.document.documentElement,QA=XA;function JA(e){return e!=null}function ZA(e){return!e&&e!==0}function e2(e){return["string","number"].includes(ht(e))}function rP(e){var t=void 0;return e&&(e2(e.title)?t=e.title.toString():e2(e.label)&&(t=e.label.toString())),t}function eB(e,t){QA?l.useLayoutEffect(e,t):l.useEffect(e,t)}function tB(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var t2=function(t){t.preventDefault(),t.stopPropagation()},nB=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,h=t.autoComplete,y=t.activeDescendantId,p=t.tabIndex,g=t.removeIcon,C=t.maxTagCount,b=t.maxTagTextLength,S=t.maxTagPlaceholder,w=S===void 0?function(de){return"+ ".concat(de.length," ...")}:S,$=t.tagRender,x=t.onToggleOpen,E=t.onRemove,O=t.onInputChange,I=t.onInputPaste,P=t.onInputKeyDown,_=t.onInputMouseDown,D=t.onInputCompositionStart,R=t.onInputCompositionEnd,N=t.onInputBlur,M=l.useRef(null),k=l.useState(0),T=te(k,2),z=T[0],j=T[1],L=l.useState(!1),F=te(L,2),A=F[0],H=F[1],U="".concat(r,"-selection"),X=a||f==="multiple"&&s===!1||f==="tags"?i:"",ee=f==="tags"||f==="multiple"&&s===!1||m&&(a||A);eB(function(){j(M.current.scrollWidth)},[X]);var J=function(ie,re,he,ge,Ne){return l.createElement("span",{title:rP(ie),className:Z("".concat(U,"-item"),B({},"".concat(U,"-item-disabled"),he))},l.createElement("span",{className:"".concat(U,"-item-content")},re),ge&&l.createElement(yh,{className:"".concat(U,"-item-remove"),onMouseDown:t2,onClick:Ne,customizeIcon:g},"×"))},oe=function(ie,re,he,ge,Ne,Pe){var ve=function(Ee){t2(Ee),x(!a)};return l.createElement("span",{onMouseDown:ve},$({label:re,value:ie,disabled:he,closable:ge,onClose:Ne,isMaxTag:!!Pe}))},ue=function(ie){var re=ie.disabled,he=ie.label,ge=ie.value,Ne=!d&&!re,Pe=he;if(typeof b=="number"&&(typeof he=="string"||typeof he=="number")){var ve=String(Pe);ve.length>b&&(Pe="".concat(ve.slice(0,b),"..."))}var $e=function(we){we&&we.stopPropagation(),E(ie)};return typeof $=="function"?oe(ge,Pe,re,Ne,$e):J(ie,Pe,re,Ne,$e)},se=function(ie){if(!o.length)return null;var re=typeof w=="function"?w(ie):w;return typeof $=="function"?oe(void 0,re,!1,!1,void 0,!0):J({title:re},re,!1)},Q=l.createElement("div",{className:"".concat(U,"-search"),style:{width:z},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},l.createElement(tP,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:h,editable:ee,activeDescendantId:y,value:X,onKeyDown:P,onMouseDown:_,onChange:O,onPaste:I,onCompositionStart:D,onCompositionEnd:R,onBlur:N,tabIndex:p,attrs:vr(t,!0)}),l.createElement("span",{ref:M,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},X," ")),fe=l.createElement(Xo,{prefixCls:"".concat(U,"-overflow"),data:o,renderItem:ue,renderRest:se,suffix:Q,itemKey:tB,maxCount:C});return l.createElement("span",{className:"".concat(U,"-wrap")},fe,!o.length&&!X&&l.createElement("span",{className:"".concat(U,"-placeholder")},u))},rB=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,h=t.tabIndex,y=t.showSearch,p=t.searchValue,g=t.activeValue,C=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,$=t.onInputPaste,x=t.onInputCompositionStart,E=t.onInputCompositionEnd,O=t.onInputBlur,I=t.title,P=l.useState(!1),_=te(P,2),D=_[0],R=_[1],N=d==="combobox",M=N||y,k=m[0],T=p||"";N&&g&&!D&&(T=g),l.useEffect(function(){N&&R(!1)},[N,g]);var z=d!=="combobox"&&!f&&!y?!1:!!T,j=I===void 0?rP(k):I,L=l.useMemo(function(){return k?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},v)},[k,z,v,r]);return l.createElement("span",{className:"".concat(r,"-selection-wrap")},l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(tP,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:M,activeDescendantId:u,value:T,onKeyDown:b,onMouseDown:S,onChange:function(A){R(!0),w(A)},onPaste:$,onCompositionStart:x,onCompositionEnd:E,onBlur:O,tabIndex:h,attrs:vr(t,!0),maxLength:N?C:void 0})),!N&&k?l.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:z?{visibility:"hidden"}:void 0},k.label):null,L)},oB=function(t,n){var r=l.useRef(null),o=l.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,v=t.onSearch,h=t.onSearchSubmit,y=t.onToggleOpen,p=t.onInputKeyDown,g=t.onInputBlur,C=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(j){r.current.focus(j)},blur:function(){r.current.blur()}}});var b=Q3(0),S=te(b,2),w=S[0],$=S[1],x=function(j){var L=j.which,F=r.current instanceof HTMLTextAreaElement;!F&&i&&(L===ct.UP||L===ct.DOWN)&&j.preventDefault(),p&&p(j),L===ct.ENTER&&s==="tags"&&!o.current&&!i&&(h==null||h(j.target.value)),!(F&&!i&&~[ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT].indexOf(L))&&kA(L)&&y(!0)},E=function(){$(!0)},O=l.useRef(null),I=function(j){v(j,!0,o.current)!==!1&&y(!0)},P=function(){o.current=!0},_=function(j){o.current=!1,s!=="combobox"&&I(j.target.value)},D=function(j){var L=j.target.value;if(u&&O.current&&/[\r\n]/.test(O.current)){var F=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(F,O.current)}O.current=null,I(L)},R=function(j){var L=j.clipboardData,F=L==null?void 0:L.getData("text");O.current=F||""},N=function(j){var L=j.target;if(L!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},M=function(j){var L=w();j.target!==r.current&&!L&&!(s==="combobox"&&d)&&j.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&m!==!1&&v("",!0,!1),y())},k={inputRef:r,onInputKeyDown:x,onInputMouseDown:E,onInputChange:D,onInputPaste:R,onInputCompositionStart:P,onInputCompositionEnd:_,onInputBlur:g},T=s==="multiple"||s==="tags"?l.createElement(nB,be({},t,k)):l.createElement(rB,be({},t,k));return l.createElement("div",{ref:C,className:"".concat(a,"-selector"),onClick:N,onMouseDown:M},f&&l.createElement("div",{className:"".concat(a,"-prefix")},f),T)},aB=l.forwardRef(oB);function iB(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=l.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],y=n.points[1],p=h[0],g=h[1],C=y[0],b=y[1];p===C||!["t","b"].includes(p)?v.top=f:p==="t"?v.top=0:v.bottom=0,g===b||!["l","r"].includes(g)?v.left=u:g==="l"?v.left=0:v.right=0}return l.createElement("div",{ref:m,className:Z("".concat(t,"-arrow"),i),style:v},s)}function lB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?l.createElement(ko,be({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),s)})}):null}var sB=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),cB=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,h=e.arrowPos,y=e.align,p=e.motion,g=e.maskMotion,C=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,w=e.portal,$=e.zIndex,x=e.onMouseEnter,E=e.onMouseLeave,O=e.onPointerEnter,I=e.onPointerDownCapture,P=e.ready,_=e.offsetX,D=e.offsetY,R=e.offsetR,N=e.offsetB,M=e.onAlign,k=e.onPrepare,T=e.stretch,z=e.targetWidth,j=e.targetHeight,L=typeof n=="function"?n():n,F=c||u,A=(b==null?void 0:b.length)>0,H=l.useState(!b||!A),U=te(H,2),X=U[0],ee=U[1];if(Dt(function(){!X&&A&&i&&ee(!0)},[X,A,i]),!X)return null;var J="auto",oe={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(P||!c){var ue,se=y.points,Q=y.dynamicInset||((ue=y._experimental)===null||ue===void 0?void 0:ue.dynamicInset),fe=Q&&se[0][1]==="r",de=Q&&se[0][0]==="b";fe?(oe.right=R,oe.left=J):(oe.left=_,oe.right=J),de?(oe.bottom=N,oe.top=J):(oe.top=D,oe.bottom=J)}var ie={};return T&&(T.includes("height")&&j?ie.height=j:T.includes("minHeight")&&j&&(ie.minHeight=j),T.includes("width")&&z?ie.width=z:T.includes("minWidth")&&z&&(ie.minWidth=z)),c||(ie.pointerEvents="none"),l.createElement(w,{open:C||F,getContainer:b&&function(){return b(i)},autoDestroy:S},l.createElement(lB,{prefixCls:o,open:c,zIndex:$,mask:m,motion:g}),l.createElement(Sr,{onResize:M,disabled:!c},function(re){return l.createElement(ko,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(ge){var Ne;p==null||(Ne=p.onVisibleChanged)===null||Ne===void 0||Ne.call(p,ge),s(ge)}}),function(he,ge){var Ne=he.className,Pe=he.style,ve=Z(o,Ne,r);return l.createElement("div",{ref:lr(re,t,ge),className:ve,style:q(q(q(q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},oe),ie),Pe),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:x,onMouseLeave:E,onPointerEnter:O,onClick:f,onPointerDownCapture:I},v&&l.createElement(iB,{prefixCls:o,arrow:v,arrowPos:h,align:y}),l.createElement(sB,{cache:!c&&!d},L))})}))}),uB=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Zo(n),a=l.useCallback(function(s){qu(t,r?r(s):s)},[r]),i=Wa(a,Ti(n));return o?l.cloneElement(n,{ref:i}):n}),n2=l.createContext(null);function r2(e){return e?Array.isArray(e)?e:[e]:[]}function dB(e,t,n,r){return l.useMemo(function(){var o=r2(n??t),a=r2(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function fB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function mB(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,c=a[i];if(fB((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function o2(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Pd(e){return e.ownerDocument.defaultView}function Vy(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Pd(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Fc(e){return od(parseFloat(e),0)}function a2(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Pd(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,y=r.clientWidth,p=Fc(s),g=Fc(c),C=Fc(u),b=Fc(d),S=od(Math.round(f.width/h*1e3)/1e3),w=od(Math.round(f.height/m*1e3)/1e3),$=(h-y-C-b)*S,x=(m-v-p-g)*w,E=p*w,O=g*w,I=C*S,P=b*S,_=0,D=0;if(a==="clip"){var R=Fc(i);_=R*S,D=R*w}var N=f.x+I-_,M=f.y+E-D,k=N+f.width+2*_-I-P-$,T=M+f.height+2*D-E-O-x;n.left=Math.max(n.left,N),n.top=Math.max(n.top,M),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,T)}}),n}function i2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function l2(e,t){var n=t||[],r=te(n,2),o=r[0],a=r[1];return[i2(e.width,o),i2(e.height,a)]}function s2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ql(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Ga(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function vB(e,t,n,r,o,a,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=te(s,2),u=c[0],d=c[1],f=l.useRef(0),m=l.useMemo(function(){return t?Vy(t):[]},[t]),v=l.useRef({}),h=function(){v.current={}};e||h();var y=zt(function(){if(t&&n&&e){let An=function(qr,Gr){var la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ae,Vd=F.x+qr,Wd=F.y+Gr,ig=Vd+de,Tt=Wd+fe,Lt=Math.max(Vd,la.left),En=Math.max(Wd,la.top),Bn=Math.min(ig,la.right),On=Math.min(Tt,la.bottom);return Math.max(0,(Bn-Lt)*(On-En))},Ar=function(){st=F.y+Re,$t=st+fe,Ot=F.x+pe,ft=Ot+de};var on=An,$n=Ar,C,b,S,w,$=t,x=$.ownerDocument,E=Pd($),O=E.getComputedStyle($),I=O.position,P=$.style.left,_=$.style.top,D=$.style.right,R=$.style.bottom,N=$.style.overflow,M=q(q({},o[r]),a),k=x.createElement("div");(C=$.parentElement)===null||C===void 0||C.appendChild(k),k.style.left="".concat($.offsetLeft,"px"),k.style.top="".concat($.offsetTop,"px"),k.style.position=I,k.style.height="".concat($.offsetHeight,"px"),k.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else{var z,j,L=n.getBoundingClientRect();L.x=(z=L.x)!==null&&z!==void 0?z:L.left,L.y=(j=L.y)!==null&&j!==void 0?j:L.top,T={x:L.x,y:L.y,width:L.width,height:L.height}}var F=$.getBoundingClientRect(),A=E.getComputedStyle($),H=A.height,U=A.width;F.x=(b=F.x)!==null&&b!==void 0?b:F.left,F.y=(S=F.y)!==null&&S!==void 0?S:F.top;var X=x.documentElement,ee=X.clientWidth,J=X.clientHeight,oe=X.scrollWidth,ue=X.scrollHeight,se=X.scrollTop,Q=X.scrollLeft,fe=F.height,de=F.width,ie=T.height,re=T.width,he={left:0,top:0,right:ee,bottom:J},ge={left:-Q,top:-se,right:oe-Q,bottom:ue-se},Ne=M.htmlRegion,Pe="visible",ve="visibleFirst";Ne!=="scroll"&&Ne!==ve&&(Ne=Pe);var $e=Ne===ve,Ee=a2(ge,m),we=a2(he,m),Ae=Ne===Pe?we:Ee,Le=$e?we:Ae;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var Ye=$.getBoundingClientRect();$.style.left=P,$.style.top=_,$.style.right=D,$.style.bottom=R,$.style.overflow=N,(w=$.parentElement)===null||w===void 0||w.removeChild(k);var Ke=od(Math.round(de/parseFloat(U)*1e3)/1e3),He=od(Math.round(fe/parseFloat(H)*1e3)/1e3);if(Ke===0||He===0||Uu(n)&&!uc(n))return;var Ue=M.offset,Me=M.targetOffset,Se=l2(F,Ue),Fe=te(Se,2),xe=Fe[0],Te=Fe[1],Oe=l2(T,Me),Ie=te(Oe,2),je=Ie[0],qe=Ie[1];T.x-=je,T.y-=qe;var ut=M.points||[],bt=te(ut,2),Ge=bt[0],tt=bt[1],rt=s2(tt),V=s2(Ge),ae=ql(T,rt),me=ql(F,V),Ce=q({},M),pe=ae.x-me.x+xe,Re=ae.y-me.y+Te,W=An(pe,Re),K=An(pe,Re,we),G=ql(T,["t","l"]),ce=ql(F,["t","l"]),ye=ql(T,["b","r"]),De=ql(F,["b","r"]),Be=M.overflow||{},Ve=Be.adjustX,ke=Be.adjustY,_e=Be.shiftX,We=Be.shiftY,Ze=function(Gr){return typeof Gr=="boolean"?Gr:Gr>=0},st,$t,Ot,ft;Ar();var _t=Ze(ke),Xe=V[0]===rt[0];if(_t&&V[0]==="t"&&($t>Le.bottom||v.current.bt)){var it=Re;Xe?it-=fe-ie:it=G.y-De.y-Te;var xt=An(pe,it),dt=An(pe,it,we);xt>W||xt===W&&(!$e||dt>=K)?(v.current.bt=!0,Re=it,Te=-Te,Ce.points=[Ga(V,0),Ga(rt,0)]):v.current.bt=!1}if(_t&&V[0]==="b"&&(st<Le.top||v.current.tb)){var mt=Re;Xe?mt+=fe-ie:mt=ye.y-ce.y-Te;var lt=An(pe,mt),It=An(pe,mt,we);lt>W||lt===W&&(!$e||It>=K)?(v.current.tb=!0,Re=mt,Te=-Te,Ce.points=[Ga(V,0),Ga(rt,0)]):v.current.tb=!1}var kt=Ze(Ve),ot=V[1]===rt[1];if(kt&&V[1]==="l"&&(ft>Le.right||v.current.rl)){var Qe=pe;ot?Qe-=de-re:Qe=G.x-De.x-xe;var pt=An(Qe,Re),Jt=An(Qe,Re,we);pt>W||pt===W&&(!$e||Jt>=K)?(v.current.rl=!0,pe=Qe,xe=-xe,Ce.points=[Ga(V,1),Ga(rt,1)]):v.current.rl=!1}if(kt&&V[1]==="r"&&(Ot<Le.left||v.current.lr)){var ln=pe;ot?ln+=de-re:ln=ye.x-ce.x-xe;var Ht=An(ln,Re),gn=An(ln,Re,we);Ht>W||Ht===W&&(!$e||gn>=K)?(v.current.lr=!0,pe=ln,xe=-xe,Ce.points=[Ga(V,1),Ga(rt,1)]):v.current.lr=!1}Ar();var yn=_e===!0?0:_e;typeof yn=="number"&&(Ot<we.left&&(pe-=Ot-we.left-xe,T.x+re<we.left+yn&&(pe+=T.x-we.left+re-yn)),ft>we.right&&(pe-=ft-we.right-xe,T.x>we.right-yn&&(pe+=T.x-we.right+yn)));var Dn=We===!0?0:We;typeof Dn=="number"&&(st<we.top&&(Re-=st-we.top-Te,T.y+ie<we.top+Dn&&(Re+=T.y-we.top+ie-Dn)),$t>we.bottom&&(Re-=$t-we.bottom-Te,T.y>we.bottom-Dn&&(Re+=T.y-we.bottom+Dn)));var qn=F.x+pe,tr=qn+de,Gn=F.y+Re,Yt=Gn+fe,wt=T.x,Ct=wt+re,Ut=T.y,gt=Ut+ie,yt=Math.max(qn,wt),Vt=Math.min(tr,Ct),dn=(yt+Vt)/2,bn=dn-qn,Yn=Math.max(Gn,Ut),kn=Math.min(Yt,gt),Xn=(Yn+kn)/2,Ft=Xn-Gn;i==null||i(t,Ce);var et=Ye.right-F.x-(pe+F.width),vt=Ye.bottom-F.y-(Re+F.height);Ke===1&&(pe=Math.floor(pe),et=Math.floor(et)),He===1&&(Re=Math.floor(Re),vt=Math.floor(vt));var Bt={ready:!0,offsetX:pe/Ke,offsetY:Re/He,offsetR:et/Ke,offsetB:vt/He,arrowX:bn/Ke,arrowY:Ft/He,scaleX:Ke,scaleY:He,align:Ce};d(Bt)}}),p=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&y()})},g=function(){d(function(b){return q(q({},b),{},{ready:!1})})};return Dt(g,[r]),Dt(function(){e||g()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function hB(e,t,n,r,o){Dt(function(){if(e&&t&&n){let m=function(){r(),o()};var f=m,a=t,i=n,s=Vy(a),c=Vy(i),u=Pd(i),d=new Set([u].concat(ze(s),ze(c)));return d.forEach(function(v){v.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function gB(e,t,n,r,o,a,i,s){var c=l.useRef(e);c.current=e;var u=l.useRef(!1);l.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){u.current=!1},m=function(p){var g;c.current&&!i(((g=p.composedPath)===null||g===void 0||(g=g.call(p))===null||g===void 0?void 0:g[0])||p.target)&&!u.current&&s(!1)},v=Pd(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0);var h=Ym(n);return h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,a]);function d(){u.current=!0}return d}var pB=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function yB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X1,t=l.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,y=n.mouseEnterDelay,p=n.mouseLeaveDelay,g=p===void 0?.1:p,C=n.focusDelay,b=n.blurDelay,S=n.mask,w=n.maskClosable,$=w===void 0?!0:w,x=n.getPopupContainer,E=n.forceRender,O=n.autoDestroy,I=n.destroyPopupOnHide,P=n.popup,_=n.popupClassName,D=n.popupStyle,R=n.popupPlacement,N=n.builtinPlacements,M=N===void 0?{}:N,k=n.popupAlign,T=n.zIndex,z=n.stretch,j=n.getPopupClassNameFromAlign,L=n.fresh,F=n.alignPoint,A=n.onPopupClick,H=n.onPopupAlign,U=n.arrow,X=n.popupMotion,ee=n.maskMotion,J=n.popupTransitionName,oe=n.popupAnimation,ue=n.maskTransitionName,se=n.maskAnimation,Q=n.className,fe=n.getTriggerDOMNode,de=Pt(n,pB),ie=O||I||!1,re=l.useState(!1),he=te(re,2),ge=he[0],Ne=he[1];Dt(function(){Ne(ph())},[]);var Pe=l.useRef({}),ve=l.useContext(n2),$e=l.useMemo(function(){return{registerSubPopup:function(Lt,En){Pe.current[Lt]=En,ve==null||ve.registerSubPopup(Lt,En)}}},[ve]),Ee=Od(),we=l.useState(null),Ae=te(we,2),Le=Ae[0],Ye=Ae[1],Ke=l.useRef(null),He=zt(function(Tt){Ke.current=Tt,Uu(Tt)&&Le!==Tt&&Ye(Tt),ve==null||ve.registerSubPopup(Ee,Tt)}),Ue=l.useState(null),Me=te(Ue,2),Se=Me[0],Fe=Me[1],xe=l.useRef(null),Te=zt(function(Tt){Uu(Tt)&&Se!==Tt&&(Fe(Tt),xe.current=Tt)}),Oe=l.Children.only(i),Ie=(Oe==null?void 0:Oe.props)||{},je={},qe=zt(function(Tt){var Lt,En,Bn=Se;return(Bn==null?void 0:Bn.contains(Tt))||((Lt=Ym(Bn))===null||Lt===void 0?void 0:Lt.host)===Tt||Tt===Bn||(Le==null?void 0:Le.contains(Tt))||((En=Ym(Le))===null||En===void 0?void 0:En.host)===Tt||Tt===Le||Object.values(Pe.current).some(function(On){return(On==null?void 0:On.contains(Tt))||Tt===On})}),ut=o2(a,X,oe,J),bt=o2(a,ee,se,ue),Ge=l.useState(m||!1),tt=te(Ge,2),rt=tt[0],V=tt[1],ae=f??rt,me=zt(function(Tt){f===void 0&&V(Tt)});Dt(function(){V(f||!1)},[f]);var Ce=l.useRef(ae);Ce.current=ae;var pe=l.useRef([]);pe.current=[];var Re=zt(function(Tt){var Lt;me(Tt),((Lt=pe.current[pe.current.length-1])!==null&&Lt!==void 0?Lt:ae)!==Tt&&(pe.current.push(Tt),v==null||v(Tt))}),W=l.useRef(),K=function(){clearTimeout(W.current)},G=function(Lt){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;K(),En===0?Re(Lt):W.current=setTimeout(function(){Re(Lt)},En*1e3)};l.useEffect(function(){return K},[]);var ce=l.useState(!1),ye=te(ce,2),De=ye[0],Be=ye[1];Dt(function(Tt){(!Tt||ae)&&Be(!0)},[ae]);var Ve=l.useState(null),ke=te(Ve,2),_e=ke[0],We=ke[1],Ze=l.useState(null),st=te(Ze,2),$t=st[0],Ot=st[1],ft=function(Lt){Ot([Lt.clientX,Lt.clientY])},_t=vB(ae,Le,F&&$t!==null?$t:Se,R,M,k,H),Xe=te(_t,11),it=Xe[0],xt=Xe[1],dt=Xe[2],mt=Xe[3],lt=Xe[4],It=Xe[5],kt=Xe[6],ot=Xe[7],Qe=Xe[8],pt=Xe[9],Jt=Xe[10],ln=dB(ge,c,u,d),Ht=te(ln,2),gn=Ht[0],yn=Ht[1],Dn=gn.has("click"),qn=yn.has("click")||yn.has("contextMenu"),tr=zt(function(){De||Jt()}),Gn=function(){Ce.current&&F&&qn&&G(!1)};hB(ae,Se,Le,tr,Gn),Dt(function(){tr()},[$t,R]),Dt(function(){ae&&!(M!=null&&M[R])&&tr()},[JSON.stringify(k)]);var Yt=l.useMemo(function(){var Tt=mB(M,a,pt,F);return Z(Tt,j==null?void 0:j(pt))},[pt,j,M,a,F]);l.useImperativeHandle(r,function(){return{nativeElement:xe.current,popupElement:Ke.current,forceAlign:tr}});var wt=l.useState(0),Ct=te(wt,2),Ut=Ct[0],gt=Ct[1],yt=l.useState(0),Vt=te(yt,2),dn=Vt[0],bn=Vt[1],Yn=function(){if(z&&Se){var Lt=Se.getBoundingClientRect();gt(Lt.width),bn(Lt.height)}},kn=function(){Yn(),tr()},Xn=function(Lt){Be(!1),Jt(),h==null||h(Lt)},Ft=function(){return new Promise(function(Lt){Yn(),We(function(){return Lt})})};Dt(function(){_e&&(Jt(),_e(),We(null))},[_e]);function et(Tt,Lt,En,Bn){je[Tt]=function(On){var Kd;Bn==null||Bn(On),G(Lt,En);for(var lg=arguments.length,mS=new Array(lg>1?lg-1:0),Ud=1;Ud<lg;Ud++)mS[Ud-1]=arguments[Ud];(Kd=Ie[Tt])===null||Kd===void 0||Kd.call.apply(Kd,[Ie,On].concat(mS))}}(Dn||qn)&&(je.onClick=function(Tt){var Lt;Ce.current&&qn?G(!1):!Ce.current&&Dn&&(ft(Tt),G(!0));for(var En=arguments.length,Bn=new Array(En>1?En-1:0),On=1;On<En;On++)Bn[On-1]=arguments[On];(Lt=Ie.onClick)===null||Lt===void 0||Lt.call.apply(Lt,[Ie,Tt].concat(Bn))});var vt=gB(ae,qn,Se,Le,S,$,qe,G),Bt=gn.has("hover"),on=yn.has("hover"),$n,An;Bt&&(et("onMouseEnter",!0,y,function(Tt){ft(Tt)}),et("onPointerEnter",!0,y,function(Tt){ft(Tt)}),$n=function(Lt){(ae||De)&&Le!==null&&Le!==void 0&&Le.contains(Lt.target)&&G(!0,y)},F&&(je.onMouseMove=function(Tt){var Lt;(Lt=Ie.onMouseMove)===null||Lt===void 0||Lt.call(Ie,Tt)})),on&&(et("onMouseLeave",!1,g),et("onPointerLeave",!1,g),An=function(){G(!1,g)}),gn.has("focus")&&et("onFocus",!0,C),yn.has("focus")&&et("onBlur",!1,b),gn.has("contextMenu")&&(je.onContextMenu=function(Tt){var Lt;Ce.current&&yn.has("contextMenu")?G(!1):(ft(Tt),G(!0)),Tt.preventDefault();for(var En=arguments.length,Bn=new Array(En>1?En-1:0),On=1;On<En;On++)Bn[On-1]=arguments[On];(Lt=Ie.onContextMenu)===null||Lt===void 0||Lt.call.apply(Lt,[Ie,Tt].concat(Bn))}),Q&&(je.className=Z(Ie.className,Q));var Ar=l.useRef(!1);Ar.current||(Ar.current=E||ae||De);var qr=q(q({},Ie),je),Gr={},la=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];la.forEach(function(Tt){de[Tt]&&(Gr[Tt]=function(){for(var Lt,En=arguments.length,Bn=new Array(En),On=0;On<En;On++)Bn[On]=arguments[On];(Lt=qr[Tt])===null||Lt===void 0||Lt.call.apply(Lt,[qr].concat(Bn)),de[Tt].apply(de,Bn)})});var Vd=l.cloneElement(Oe,q(q({},qr),Gr)),Wd={x:It,y:kt},ig=U?q({},U!==!0?U:{}):null;return l.createElement(l.Fragment,null,l.createElement(Sr,{disabled:!ae,ref:Te,onResize:kn},l.createElement(uB,{getTriggerDOMNode:fe},Vd)),Ar.current&&l.createElement(n2.Provider,{value:$e},l.createElement(cB,{portal:e,ref:He,prefixCls:a,popup:P,className:Z(_,Yt),style:D,target:Se,onMouseEnter:$n,onMouseLeave:An,onPointerEnter:$n,zIndex:T,open:ae,keepDom:De,fresh:L,onClick:A,onPointerDownCapture:vt,mask:S,motion:ut,maskMotion:bt,onVisibleChanged:Xn,onPrepare:Ft,forceRender:E,autoDestroy:ie,getPopupContainer:x,align:pt,arrow:ig,arrowPos:Wd,ready:it,offsetX:xt,offsetY:dt,offsetR:mt,offsetB:lt,onAlign:tr,stretch:z,targetWidth:Ut/ot,targetHeight:dn/Qe})))});return t}const Md=yB(X1);var bB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],CB=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},SB=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,v=t.placement,h=t.builtinPlacements,y=t.dropdownMatchSelectWidth,p=t.dropdownRender,g=t.dropdownAlign,C=t.getPopupContainer,b=t.empty,S=t.getTriggerDOMNode,w=t.onPopupVisibleChange,$=t.onPopupMouseEnter,x=Pt(t,bB),E="".concat(r,"-dropdown"),O=i;p&&(O=p(i));var I=l.useMemo(function(){return h||CB(y)},[h,y]),P=s?"".concat(E,"-").concat(s):c,_=typeof y=="number",D=l.useMemo(function(){return _?null:y===!1?"minWidth":"width"},[y,_]),R=u;_&&(R=q(q({},R),{},{width:y}));var N=l.useRef(null);return l.useImperativeHandle(n,function(){return{getPopupElement:function(){var k;return(k=N.current)===null||k===void 0?void 0:k.popupElement}}}),l.createElement(Md,be({},x,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:v||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:E,popupTransitionName:P,popup:l.createElement("div",{onMouseEnter:$},O),ref:N,stretch:D,popupAlign:g,popupVisible:o,getPopupContainer:C,popupClassName:Z(d,B({},"".concat(E,"-empty"),b)),popupStyle:R,getTriggerDOMNode:S,onPopupVisibleChange:w}),a)},xB=l.forwardRef(SB);function c2(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Wy(e){return typeof e<"u"&&!Number.isNaN(e)}function oP(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function wB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=oP(n,!1),i=a.label,s=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(c in v)){var h=v[s];o.push({key:c2(v,o.length),groupOption:m,data:v,label:v[i],value:h})}else{var y=v[u];y===void 0&&r&&(y=v.label),o.push({key:c2(v,o.length),group:!0,data:v,label:y}),d(v[c],!0)}})}return d(e,!1),o}function Ky(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Sn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var $B=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(c,u){var d=cR(u),f=d[0],m=d.slice(1);if(!f)return[c];var v=c.split(f);return o=o||v.length>1,v.reduce(function(h,y){return[].concat(ze(h),ze(s(y,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},tC=l.createContext(null);function EB(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(ht(a))?a:i}).join(", ")),n.length>r?", ...":null)}var OB=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],IB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Uy=function(t){return t==="tags"||t==="multiple"},RB=l.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,y=e.onClear,p=e.mode,g=e.disabled,C=e.loading,b=e.getInputElement,S=e.getRawInputElement,w=e.open,$=e.defaultOpen,x=e.onDropdownVisibleChange,E=e.activeValue,O=e.onActiveValueChange,I=e.activeDescendantId,P=e.searchValue,_=e.autoClearSearchValue,D=e.onSearch,R=e.onSearchSplit,N=e.tokenSeparators,M=e.allowClear,k=e.prefix,T=e.suffixIcon,z=e.clearIcon,j=e.OptionList,L=e.animation,F=e.transitionName,A=e.dropdownStyle,H=e.dropdownClassName,U=e.dropdownMatchSelectWidth,X=e.dropdownRender,ee=e.dropdownAlign,J=e.placement,oe=e.builtinPlacements,ue=e.getPopupContainer,se=e.showAction,Q=se===void 0?[]:se,fe=e.onFocus,de=e.onBlur,ie=e.onKeyUp,re=e.onKeyDown,he=e.onMouseDown,ge=Pt(e,OB),Ne=Uy(p),Pe=(i!==void 0?i:Ne)||p==="combobox",ve=q({},ge);IB.forEach(function(wt){delete ve[wt]}),u==null||u.forEach(function(wt){delete ve[wt]});var $e=l.useState(!1),Ee=te($e,2),we=Ee[0],Ae=Ee[1];l.useEffect(function(){Ae(ph())},[]);var Le=l.useRef(null),Ye=l.useRef(null),Ke=l.useRef(null),He=l.useRef(null),Ue=l.useRef(null),Me=l.useRef(!1),Se=TA(),Fe=te(Se,3),xe=Fe[0],Te=Fe[1],Oe=Fe[2];l.useImperativeHandle(t,function(){var wt,Ct;return{focus:(wt=He.current)===null||wt===void 0?void 0:wt.focus,blur:(Ct=He.current)===null||Ct===void 0?void 0:Ct.blur,scrollTo:function(gt){var yt;return(yt=Ue.current)===null||yt===void 0?void 0:yt.scrollTo(gt)},nativeElement:Le.current||Ye.current}});var Ie=l.useMemo(function(){var wt;if(p!=="combobox")return P;var Ct=(wt=d[0])===null||wt===void 0?void 0:wt.value;return typeof Ct=="string"||typeof Ct=="number"?String(Ct):""},[P,p,d]),je=p==="combobox"&&typeof b=="function"&&b()||null,qe=typeof S=="function"&&S(),ut=Wa(Ye,qe==null||(n=qe.props)===null||n===void 0?void 0:n.ref),bt=l.useState(!1),Ge=te(bt,2),tt=Ge[0],rt=Ge[1];Dt(function(){rt(!0)},[]);var V=en(!1,{defaultValue:$,value:w}),ae=te(V,2),me=ae[0],Ce=ae[1],pe=tt?me:!1,Re=!h&&m;(g||Re&&pe&&p==="combobox")&&(pe=!1);var W=Re?!1:pe,K=l.useCallback(function(wt){var Ct=wt!==void 0?wt:!pe;g||(Ce(Ct),pe!==Ct&&(x==null||x(Ct)))},[g,pe,Ce,x]),G=l.useMemo(function(){return(N||[]).some(function(wt){return[`
215
+ `,`\r
216
+ `].includes(wt)})},[N]),ce=l.useContext(tC)||{},ye=ce.maxCount,De=ce.rawValues,Be=function(Ct,Ut,gt){if(!(Ne&&Wy(ye)&&(De==null?void 0:De.size)>=ye)){var yt=!0,Vt=Ct;O==null||O(null);var dn=$B(Ct,N,Wy(ye)?ye-De.size:void 0),bn=gt?null:dn;return p!=="combobox"&&bn&&(Vt="",R==null||R(bn),K(!1),yt=!1),D&&Ie!==Vt&&D(Vt,{source:Ut?"typing":"effect"}),yt}},Ve=function(Ct){!Ct||!Ct.trim()||D(Ct,{source:"submit"})};l.useEffect(function(){!pe&&!Ne&&p!=="combobox"&&Be("",!1,!1)},[pe]),l.useEffect(function(){me&&g&&Ce(!1),g&&!Me.current&&Te(!1)},[g]);var ke=Q3(),_e=te(ke,2),We=_e[0],Ze=_e[1],st=l.useRef(!1),$t=function(Ct){var Ut=We(),gt=Ct.key,yt=gt==="Enter";if(yt&&(p!=="combobox"&&Ct.preventDefault(),pe||K(!0)),Ze(!!Ie),gt==="Backspace"&&!Ut&&Ne&&!Ie&&d.length){for(var Vt=ze(d),dn=null,bn=Vt.length-1;bn>=0;bn-=1){var Yn=Vt[bn];if(!Yn.disabled){Vt.splice(bn,1),dn=Yn;break}}dn&&f(Vt,{type:"remove",values:[dn]})}for(var kn=arguments.length,Xn=new Array(kn>1?kn-1:0),Ft=1;Ft<kn;Ft++)Xn[Ft-1]=arguments[Ft];if(pe&&(!yt||!st.current)){var et;yt&&(st.current=!0),(et=Ue.current)===null||et===void 0||et.onKeyDown.apply(et,[Ct].concat(Xn))}re==null||re.apply(void 0,[Ct].concat(Xn))},Ot=function(Ct){for(var Ut=arguments.length,gt=new Array(Ut>1?Ut-1:0),yt=1;yt<Ut;yt++)gt[yt-1]=arguments[yt];if(pe){var Vt;(Vt=Ue.current)===null||Vt===void 0||Vt.onKeyUp.apply(Vt,[Ct].concat(gt))}Ct.key==="Enter"&&(st.current=!1),ie==null||ie.apply(void 0,[Ct].concat(gt))},ft=function(Ct){var Ut=d.filter(function(gt){return gt!==Ct});f(Ut,{type:"remove",values:[Ct]})},_t=function(){st.current=!1},Xe=l.useRef(!1),it=function(){Te(!0),g||(fe&&!Xe.current&&fe.apply(void 0,arguments),Q.includes("focus")&&K(!0)),Xe.current=!0},xt=function(){Me.current=!0,Te(!1,function(){Xe.current=!1,Me.current=!1,K(!1)}),!g&&(Ie&&(p==="tags"?D(Ie,{source:"submit"}):p==="multiple"&&D("",{source:"blur"})),de&&de.apply(void 0,arguments))},dt=[];l.useEffect(function(){return function(){dt.forEach(function(wt){return clearTimeout(wt)}),dt.splice(0,dt.length)}},[]);var mt=function(Ct){var Ut,gt=Ct.target,yt=(Ut=Ke.current)===null||Ut===void 0?void 0:Ut.getPopupElement();if(yt&&yt.contains(gt)){var Vt=setTimeout(function(){var kn=dt.indexOf(Vt);if(kn!==-1&&dt.splice(kn,1),Oe(),!we&&!yt.contains(document.activeElement)){var Xn;(Xn=He.current)===null||Xn===void 0||Xn.focus()}});dt.push(Vt)}for(var dn=arguments.length,bn=new Array(dn>1?dn-1:0),Yn=1;Yn<dn;Yn++)bn[Yn-1]=arguments[Yn];he==null||he.apply(void 0,[Ct].concat(bn))},lt=l.useState({}),It=te(lt,2),kt=It[1];function ot(){kt({})}var Qe;qe&&(Qe=function(Ct){K(Ct)}),DA(function(){var wt;return[Le.current,(wt=Ke.current)===null||wt===void 0?void 0:wt.getPopupElement()]},W,K,!!qe);var pt=l.useMemo(function(){return q(q({},e),{},{notFoundContent:h,open:pe,triggerOpen:W,id:r,showSearch:Pe,multiple:Ne,toggleOpen:K})},[e,h,W,pe,r,Pe,Ne,K]),Jt=!!T||C,ln;Jt&&(ln=l.createElement(yh,{className:Z("".concat(o,"-arrow"),B({},"".concat(o,"-arrow-loading"),C)),customizeIcon:T,customizeIconProps:{loading:C,searchValue:Ie,open:pe,focused:xe,showSearch:Pe}}));var Ht=function(){var Ct;y==null||y(),(Ct=He.current)===null||Ct===void 0||Ct.focus(),f([],{type:"clear",values:d}),Be("",!1,!1)},gn=NA(o,Ht,d,M,z,g,Ie,p),yn=gn.allowClear,Dn=gn.clearIcon,qn=l.createElement(j,{ref:Ue}),tr=Z(o,a,B(B(B(B(B(B(B(B(B(B({},"".concat(o,"-focused"),xe),"".concat(o,"-multiple"),Ne),"".concat(o,"-single"),!Ne),"".concat(o,"-allow-clear"),M),"".concat(o,"-show-arrow"),Jt),"".concat(o,"-disabled"),g),"".concat(o,"-loading"),C),"".concat(o,"-open"),pe),"".concat(o,"-customize-input"),je),"".concat(o,"-show-search"),Pe)),Gn=l.createElement(xB,{ref:Ke,disabled:g,prefixCls:o,visible:W,popupElement:qn,animation:L,transitionName:F,dropdownStyle:A,dropdownClassName:H,direction:c,dropdownMatchSelectWidth:U,dropdownRender:X,dropdownAlign:ee,placement:J,builtinPlacements:oe,getPopupContainer:ue,empty:m,getTriggerDOMNode:function(Ct){return Ye.current||Ct},onPopupVisibleChange:Qe,onPopupMouseEnter:ot},qe?l.cloneElement(qe,{ref:ut}):l.createElement(aB,be({},e,{domRef:Ye,prefixCls:o,inputElement:je,ref:He,id:r,prefix:k,showSearch:Pe,autoClearSearchValue:_,mode:p,activeDescendantId:I,tagRender:s,values:d,open:pe,onToggleOpen:K,activeValue:E,searchValue:Ie,onSearch:Be,onSearchSubmit:Ve,onRemove:ft,tokenWithEnter:G,onInputBlur:_t}))),Yt;return qe?Yt=Gn:Yt=l.createElement("div",be({className:tr},ve,{ref:Le,onMouseDown:mt,onKeyDown:$t,onKeyUp:Ot,onFocus:it,onBlur:xt}),l.createElement(EB,{visible:xe&&!pe,values:d}),Gn,ln,yn&&Dn),l.createElement(X3.Provider,{value:pt},Yt)}),nC=function(){return null};nC.isSelectOptGroup=!0;var rC=function(){return null};rC.isSelectOption=!0;var aP=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=q(q({},m),{},B(B(B(B(B({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:f},l.createElement(Sr,{onResize:function(h){var y=h.offsetHeight;y&&s&&s()}},l.createElement("div",be({style:m,className:Z(B({},"".concat(i,"-holder-inner"),i)),ref:t},c),a,d)))});aP.displayName="Filler";function PB(e){var t=e.children,n=e.setRef,r=l.useCallback(function(o){n(o)},[]);return l.cloneElement(t,{ref:r})}function MB(e,t,n,r,o,a,i,s){var c=s.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=i(u,f,{style:{width:r},offsetX:o}),v=c(u);return l.createElement(PB,{key:v,setRef:function(y){return a(u,y)}},m)})}function NB(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function c(h){return h!==void 0?n(h):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var m=c(a[f]),v=c(i[f]);if(m!==v){u=f,d=d||m!==c(i[f+1]);break}}return u===null?null:{index:u,multiple:d}}function _B(e,t,n){var r=l.useState(e),o=te(r,2),a=o[0],i=o[1],s=l.useState(null),c=te(s,2),u=c[0],d=c[1];return l.useEffect(function(){var f=NB(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[u]}var u2=(typeof navigator>"u"?"undefined":ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const iP=function(e,t,n,r){var o=l.useRef(!1),a=l.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function TB(e,t,n,r,o,a,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=iP(t,n,r,o);function m(C,b){if(jt.cancel(c.current),!f(!1,b)){var S=C;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=b,u.current=b,u2||S.preventDefault(),c.current=jt(function(){var w=d.current?10:1;i(s.current*w,!1),s.current=0})}}function v(C,b){i(b,!0),u2||C.preventDefault()}var h=l.useRef(null),y=l.useRef(null);function p(C){if(e){jt.cancel(y.current),y.current=jt(function(){h.current=null},2);var b=C.deltaX,S=C.deltaY,w=C.shiftKey,$=b,x=S;(h.current==="sx"||!h.current&&w&&S&&!b)&&($=S,x=0,h.current="sx");var E=Math.abs($),O=Math.abs(x);h.current===null&&(h.current=a&&E>O?"x":"y"),h.current==="y"?m(C,x):v(C,$)}}function g(C){e&&(d.current=C.detail===u.current)}return[p,g]}function DB(e,t,n,r){var o=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=te(o,2),i=a[0],s=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),v=i.get(f);if(m===void 0||v===void 0)for(var h=e.length,y=s.length;y<h;y+=1){var p,g=e[y],C=t(g);i.set(C,y);var b=(p=n.get(C))!==null&&p!==void 0?p:r;if(s[y]=(s[y-1]||0)+b,C===d&&(m=y),C===f&&(v=y),m!==void 0&&v!==void 0)break}return{top:s[m-1]||0,bottom:s[v]}};return c}var kB=function(){function e(){Pn(this,e),B(this,"maps",void 0),B(this,"id",0),B(this,"diffRecords",new Map),this.maps=Object.create(null)}return Mn(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function d2(e){var t=parseFloat(e);return isNaN(t)?0:t}function jB(e,t,n){var r=l.useState(0),o=te(r,2),a=o[0],i=o[1],s=l.useRef(new Map),c=l.useRef(new kB),u=l.useRef(0);function d(){u.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var g=!1;s.current.forEach(function(C,b){if(C&&C.offsetParent){var S=C.offsetHeight,w=getComputedStyle(C),$=w.marginTop,x=w.marginBottom,E=d2($),O=d2(x),I=S+E+O;c.current.get(b)!==I&&(c.current.set(b,I),g=!0)}}),g&&i(function(C){return C+1})};if(v)h();else{u.current+=1;var y=u.current;Promise.resolve().then(function(){y===u.current&&h()})}}function m(v,h){var y=e(v);s.current.get(y),h?(s.current.set(y,h),f()):s.current.delete(y)}return l.useEffect(function(){return d},[]),[m,f,c.current,a]}var f2=14/15;function zB(e,t,n){var r=l.useRef(!1),o=l.useRef(0),a=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(v){if(r.current){var h=Math.ceil(v.touches[0].pageX),y=Math.ceil(v.touches[0].pageY),p=o.current-h,g=a.current-y,C=Math.abs(p)>Math.abs(g);C?o.current=h:a.current=y;var b=n(C,C?p:g,!1,v);b&&v.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){C?p*=f2:g*=f2;var S=Math.floor(C?p:g);(!n(C,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},f=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageX),a.current=Math.ceil(v.touches[0].pageY),i.current=v.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Dt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}function m2(e){return Math.floor(Math.pow(e,.5))}function qy(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function LB(e,t,n){l.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,s=function(){jt.cancel(a)},c=function m(){s(),a=jt(function(){n(i),m()})},u=function(){o=!1,s()},d=function(v){if(!(v.target.draggable||v.button!==0)){var h=v;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},f=function(v){if(o){var h=qy(v,!1),y=r.getBoundingClientRect(),p=y.top,g=y.bottom;if(h<=p){var C=p-h;i=-m2(C),c()}else if(h>=g){var b=h-g;i=m2(b),c()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),s()}}},[e])}var FB=10;function AB(e,t,n,r,o,a,i,s){var c=l.useRef(),u=l.useState(null),d=te(u,2),f=d[0],m=d[1];return Dt(function(){if(f&&f.times<FB){if(!e.current){m(function(z){return q({},z)});return}a();var v=f.targetAlign,h=f.originAlign,y=f.index,p=f.offset,g=e.current.clientHeight,C=!1,b=v,S=null;if(g){for(var w=v||h,$=0,x=0,E=0,O=Math.min(t.length-1,y),I=0;I<=O;I+=1){var P=o(t[I]);x=$;var _=n.get(P);E=x+(_===void 0?r:_),$=E}for(var D=w==="top"?p:g-p,R=O;R>=0;R-=1){var N=o(t[R]),M=n.get(N);if(M===void 0){C=!0;break}if(D-=M,D<=0)break}switch(w){case"top":S=x-p;break;case"bottom":S=E-g+p;break;default:{var k=e.current.scrollTop,T=k+g;x<k?b="top":E>T&&(b="bottom")}}S!==null&&i(S),S!==f.lastTop&&(C=!0)}C&&m(q(q({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(v){if(v==null){s();return}if(jt.cancel(c.current),typeof v=="number")i(v);else if(v&&ht(v)==="object"){var h,y=v.align;"index"in v?h=v.index:h=t.findIndex(function(C){return o(C)===v.key});var p=v.offset,g=p===void 0?0:p;m({times:0,index:h,offset:g,originAlign:y})}}}var v2=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,h=e.showScrollBar,y=l.useState(!1),p=te(y,2),g=p[0],C=p[1],b=l.useState(null),S=te(b,2),w=S[0],$=S[1],x=l.useState(null),E=te(x,2),O=E[0],I=E[1],P=!r,_=l.useRef(),D=l.useRef(),R=l.useState(h),N=te(R,2),M=N[0],k=N[1],T=l.useRef(),z=function(){h===!0||h===!1||(clearTimeout(T.current),k(!0),T.current=setTimeout(function(){k(!1)},3e3))},j=a-f||0,L=f-d||0,F=l.useMemo(function(){if(o===0||j===0)return 0;var se=o/j;return se*L},[o,j,L]),A=function(Q){Q.stopPropagation(),Q.preventDefault()},H=l.useRef({top:F,dragging:g,pageY:w,startTop:O});H.current={top:F,dragging:g,pageY:w,startTop:O};var U=function(Q){C(!0),$(qy(Q,u)),I(H.current.top),i(),Q.stopPropagation(),Q.preventDefault()};l.useEffect(function(){var se=function(ie){ie.preventDefault()},Q=_.current,fe=D.current;return Q.addEventListener("touchstart",se,{passive:!1}),fe.addEventListener("touchstart",U,{passive:!1}),function(){Q.removeEventListener("touchstart",se),fe.removeEventListener("touchstart",U)}},[]);var X=l.useRef();X.current=j;var ee=l.useRef();ee.current=L,l.useEffect(function(){if(g){var se,Q=function(ie){var re=H.current,he=re.dragging,ge=re.pageY,Ne=re.startTop;jt.cancel(se);var Pe=_.current.getBoundingClientRect(),ve=f/(u?Pe.width:Pe.height);if(he){var $e=(qy(ie,u)-ge)*ve,Ee=Ne;!P&&u?Ee-=$e:Ee+=$e;var we=X.current,Ae=ee.current,Le=Ae?Ee/Ae:0,Ye=Math.ceil(Le*we);Ye=Math.max(Ye,0),Ye=Math.min(Ye,we),se=jt(function(){c(Ye,u)})}},fe=function(){C(!1),s()};return window.addEventListener("mousemove",Q,{passive:!0}),window.addEventListener("touchmove",Q,{passive:!0}),window.addEventListener("mouseup",fe,{passive:!0}),window.addEventListener("touchend",fe,{passive:!0}),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),jt.cancel(se)}}},[g]),l.useEffect(function(){return z(),function(){clearTimeout(T.current)}},[o]),l.useImperativeHandle(t,function(){return{delayHidden:z}});var J="".concat(n,"-scrollbar"),oe={position:"absolute",visibility:M?null:"hidden"},ue={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(oe,{height:8,left:0,right:0,bottom:0}),Object.assign(ue,B({height:"100%",width:d},P?"left":"right",F))):(Object.assign(oe,B({width:8,top:0,bottom:0},P?"right":"left",0)),Object.assign(ue,{width:"100%",height:d,top:F})),l.createElement("div",{ref:_,className:Z(J,B(B(B({},"".concat(J,"-horizontal"),u),"".concat(J,"-vertical"),!u),"".concat(J,"-visible"),M)),style:q(q({},oe),m),onMouseDown:A,onMouseMove:z},l.createElement("div",{ref:D,className:Z("".concat(J,"-thumb"),B({},"".concat(J,"-thumb-moving"),g)),style:q(q({},ue),v),onMouseDown:U}))}),BB=20;function h2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,BB),Math.floor(n)}var HB=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],VB=[],WB={overflowY:"auto",overflowAnchor:"none"};function KB(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,h=e.direction,y=e.scrollWidth,p=e.component,g=p===void 0?"div":p,C=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,$=e.extraRender,x=e.styles,E=e.showScrollBar,O=E===void 0?"optional":E,I=Pt(e,HB),P=l.useCallback(function(Xe){return typeof m=="function"?m(Xe):Xe==null?void 0:Xe[m]},[m]),_=jB(P),D=te(_,4),R=D[0],N=D[1],M=D[2],k=D[3],T=!!(v!==!1&&a&&i),z=l.useMemo(function(){return Object.values(M.maps).reduce(function(Xe,it){return Xe+it},0)},[M.id,M.maps]),j=T&&d&&(Math.max(i*d.length,z)>a||!!y),L=h==="rtl",F=Z(r,B({},"".concat(r,"-rtl"),L),o),A=d||VB,H=l.useRef(),U=l.useRef(),X=l.useRef(),ee=l.useState(0),J=te(ee,2),oe=J[0],ue=J[1],se=l.useState(0),Q=te(se,2),fe=Q[0],de=Q[1],ie=l.useState(!1),re=te(ie,2),he=re[0],ge=re[1],Ne=function(){ge(!0)},Pe=function(){ge(!1)},ve={getKey:P};function $e(Xe){ue(function(it){var xt;typeof Xe=="function"?xt=Xe(it):xt=Xe;var dt=rt(xt);return H.current.scrollTop=dt,dt})}var Ee=l.useRef({start:0,end:A.length}),we=l.useRef(),Ae=_B(A,P),Le=te(Ae,1),Ye=Le[0];we.current=Ye;var Ke=l.useMemo(function(){if(!T)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!j){var Xe;return{scrollHeight:((Xe=U.current)===null||Xe===void 0?void 0:Xe.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var it=0,xt,dt,mt,lt=A.length,It=0;It<lt;It+=1){var kt=A[It],ot=P(kt),Qe=M.get(ot),pt=it+(Qe===void 0?i:Qe);pt>=oe&&xt===void 0&&(xt=It,dt=it),pt>oe+a&&mt===void 0&&(mt=It),it=pt}return xt===void 0&&(xt=0,dt=0,mt=Math.ceil(a/i)),mt===void 0&&(mt=A.length-1),mt=Math.min(mt+1,A.length-1),{scrollHeight:it,start:xt,end:mt,offset:dt}},[j,T,oe,A,k,a]),He=Ke.scrollHeight,Ue=Ke.start,Me=Ke.end,Se=Ke.offset;Ee.current.start=Ue,Ee.current.end=Me,l.useLayoutEffect(function(){var Xe=M.getRecord();if(Xe.size===1){var it=Array.from(Xe.keys())[0],xt=Xe.get(it),dt=A[Ue];if(dt&&xt===void 0){var mt=P(dt);if(mt===it){var lt=M.get(it),It=lt-i;$e(function(kt){return kt+It})}}}M.resetRecord()},[He]);var Fe=l.useState({width:0,height:a}),xe=te(Fe,2),Te=xe[0],Oe=xe[1],Ie=function(it){Oe({width:it.offsetWidth,height:it.offsetHeight})},je=l.useRef(),qe=l.useRef(),ut=l.useMemo(function(){return h2(Te.width,y)},[Te.width,y]),bt=l.useMemo(function(){return h2(Te.height,He)},[Te.height,He]),Ge=He-a,tt=l.useRef(Ge);tt.current=Ge;function rt(Xe){var it=Xe;return Number.isNaN(tt.current)||(it=Math.min(it,tt.current)),it=Math.max(it,0),it}var V=oe<=0,ae=oe>=Ge,me=fe<=0,Ce=fe>=y,pe=iP(V,ae,me,Ce),Re=function(){return{x:L?-fe:fe,y:oe}},W=l.useRef(Re()),K=zt(function(Xe){if(b){var it=q(q({},Re()),Xe);(W.current.x!==it.x||W.current.y!==it.y)&&(b(it),W.current=it)}});function G(Xe,it){var xt=Xe;it?(Jo.flushSync(function(){de(xt)}),K()):$e(xt)}function ce(Xe){var it=Xe.currentTarget.scrollTop;it!==oe&&$e(it),C==null||C(Xe),K()}var ye=function(it){var xt=it,dt=y?y-Te.width:0;return xt=Math.max(xt,0),xt=Math.min(xt,dt),xt},De=zt(function(Xe,it){it?(Jo.flushSync(function(){de(function(xt){var dt=xt+(L?-Xe:Xe);return ye(dt)})}),K()):$e(function(xt){var dt=xt+Xe;return dt})}),Be=TB(T,V,ae,me,Ce,!!y,De),Ve=te(Be,2),ke=Ve[0],_e=Ve[1];zB(T,H,function(Xe,it,xt,dt){var mt=dt;return pe(Xe,it,xt)?!1:!mt||!mt._virtualHandled?(mt&&(mt._virtualHandled=!0),ke({preventDefault:function(){},deltaX:Xe?it:0,deltaY:Xe?0:it}),!0):!1}),LB(j,H,function(Xe){$e(function(it){return it+Xe})}),Dt(function(){function Xe(xt){var dt=V&&xt.detail<0,mt=ae&&xt.detail>0;T&&!dt&&!mt&&xt.preventDefault()}var it=H.current;return it.addEventListener("wheel",ke,{passive:!1}),it.addEventListener("DOMMouseScroll",_e,{passive:!0}),it.addEventListener("MozMousePixelScroll",Xe,{passive:!1}),function(){it.removeEventListener("wheel",ke),it.removeEventListener("DOMMouseScroll",_e),it.removeEventListener("MozMousePixelScroll",Xe)}},[T,V,ae]),Dt(function(){if(y){var Xe=ye(fe);de(Xe),K({x:Xe})}},[Te.width,y]);var We=function(){var it,xt;(it=je.current)===null||it===void 0||it.delayHidden(),(xt=qe.current)===null||xt===void 0||xt.delayHidden()},Ze=AB(H,A,M,i,P,function(){return N(!0)},$e,We);l.useImperativeHandle(t,function(){return{nativeElement:X.current,getScrollInfo:Re,scrollTo:function(it){function xt(dt){return dt&&ht(dt)==="object"&&("left"in dt||"top"in dt)}xt(it)?(it.left!==void 0&&de(ye(it.left)),Ze(it.top)):Ze(it)}}}),Dt(function(){if(S){var Xe=A.slice(Ue,Me+1);S(Xe,A)}},[Ue,Me,A]);var st=DB(A,P,M,i),$t=$==null?void 0:$({start:Ue,end:Me,virtual:j,offsetX:fe,offsetY:Se,rtl:L,getSize:st}),Ot=MB(A,Ue,Me,y,fe,R,f,ve),ft=null;a&&(ft=q(B({},c?"height":"maxHeight",a),WB),T&&(ft.overflowY="hidden",y&&(ft.overflowX="hidden"),he&&(ft.pointerEvents="none")));var _t={};return L&&(_t.dir="rtl"),l.createElement("div",be({ref:X,style:q(q({},u),{},{position:"relative"}),className:F},_t,I),l.createElement(Sr,{onResize:Ie},l.createElement(g,{className:"".concat(r,"-holder"),style:ft,ref:H,onScroll:ce,onMouseEnter:We},l.createElement(aP,{prefixCls:r,height:He,offsetX:fe,offsetY:Se,scrollWidth:y,onInnerResize:N,ref:U,innerProps:w,rtl:L,extra:$t},Ot))),j&&He>a&&l.createElement(v2,{ref:je,prefixCls:r,scrollOffset:oe,scrollRange:He,rtl:L,onScroll:G,onStartMove:Ne,onStopMove:Pe,spinSize:bt,containerSize:Te.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb,showScrollBar:O}),j&&y>Te.width&&l.createElement(v2,{ref:qe,prefixCls:r,scrollOffset:fe,scrollRange:y,rtl:L,onScroll:G,onStartMove:Ne,onStopMove:Pe,spinSize:ut,containerSize:Te.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb,showScrollBar:O}))}var bh=l.forwardRef(KB);bh.displayName="List";function UB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qB=["disabled","title","children","style","className"];function g2(e){return typeof e=="string"||typeof e=="number"}var GB=function(t,n){var r=_A(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=l.useContext(tC),h=v.maxCount,y=v.flattenOptions,p=v.onActiveValue,g=v.defaultActiveFirstOption,C=v.onSelect,b=v.menuItemSelectedIcon,S=v.rawValues,w=v.fieldNames,$=v.virtual,x=v.direction,E=v.listHeight,O=v.listItemHeight,I=v.optionRender,P="".concat(o,"-item"),_=Ol(function(){return y},[i,y],function(se,Q){return Q[0]&&se[1]!==Q[1]}),D=l.useRef(null),R=l.useMemo(function(){return s&&Wy(h)&&(S==null?void 0:S.size)>=h},[s,h,S==null?void 0:S.size]),N=function(Q){Q.preventDefault()},M=function(Q){var fe;(fe=D.current)===null||fe===void 0||fe.scrollTo(typeof Q=="number"?{index:Q}:Q)},k=l.useCallback(function(se){return c==="combobox"?!1:S.has(se)},[c,ze(S).toString(),S.size]),T=function(Q){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=_.length,ie=0;ie<de;ie+=1){var re=(Q+ie*fe+de)%de,he=_[re]||{},ge=he.group,Ne=he.data;if(!ge&&!(Ne!=null&&Ne.disabled)&&(k(Ne.value)||!R))return re}return-1},z=l.useState(function(){return T(0)}),j=te(z,2),L=j[0],F=j[1],A=function(Q){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(Q);var de={source:fe?"keyboard":"mouse"},ie=_[Q];if(!ie){p(null,-1,de);return}p(ie.value,Q,de)};l.useEffect(function(){A(g!==!1?T(0):-1)},[_.length,u]);var H=l.useCallback(function(se){return c==="combobox"?String(se).toLowerCase()===u.toLowerCase():S.has(se)},[c,u,ze(S).toString(),S.size]);l.useEffect(function(){var se=setTimeout(function(){if(!s&&i&&S.size===1){var fe=Array.from(S)[0],de=_.findIndex(function(ie){var re=ie.data;return u?String(re.value).startsWith(u):re.value===fe});de!==-1&&(A(de),M(de))}});if(i){var Q;(Q=D.current)===null||Q===void 0||Q.scrollTo(void 0)}return function(){return clearTimeout(se)}},[i,u]);var U=function(Q){Q!==void 0&&C(Q,{selected:!S.has(Q)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(Q){var fe=Q.which,de=Q.ctrlKey;switch(fe){case ct.N:case ct.P:case ct.UP:case ct.DOWN:{var ie=0;if(fe===ct.UP?ie=-1:fe===ct.DOWN?ie=1:UB()&&de&&(fe===ct.N?ie=1:fe===ct.P&&(ie=-1)),ie!==0){var re=T(L+ie,ie);M(re),A(re,!0)}break}case ct.TAB:case ct.ENTER:{var he,ge=_[L];ge&&!(ge!=null&&(he=ge.data)!==null&&he!==void 0&&he.disabled)&&!R?U(ge.value):U(void 0),i&&Q.preventDefault();break}case ct.ESC:d(!1),i&&Q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Q){M(Q)}}}),_.length===0)return l.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:N},f);var X=Object.keys(w).map(function(se){return w[se]}),ee=function(Q){return Q.label};function J(se,Q){var fe=se.group;return{role:fe?"presentation":"option",id:"".concat(a,"_list_").concat(Q)}}var oe=function(Q){var fe=_[Q];if(!fe)return null;var de=fe.data||{},ie=de.value,re=fe.group,he=vr(de,!0),ge=ee(fe);return fe?l.createElement("div",be({"aria-label":typeof ge=="string"&&!re?ge:null},he,{key:Q},J(fe,Q),{"aria-selected":H(ie)}),ie):null},ue={role:"listbox",id:"".concat(a,"_list")};return l.createElement(l.Fragment,null,$&&l.createElement("div",be({},ue,{style:{height:0,width:0,overflow:"hidden"}}),oe(L-1),oe(L),oe(L+1)),l.createElement(bh,{itemKey:"key",ref:D,data:_,height:E,itemHeight:O,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:$,direction:x,innerProps:$?null:ue},function(se,Q){var fe=se.group,de=se.groupOption,ie=se.data,re=se.label,he=se.value,ge=ie.key;if(fe){var Ne,Pe=(Ne=ie.title)!==null&&Ne!==void 0?Ne:g2(re)?re.toString():void 0;return l.createElement("div",{className:Z(P,"".concat(P,"-group"),ie.className),title:Pe},re!==void 0?re:ge)}var ve=ie.disabled,$e=ie.title;ie.children;var Ee=ie.style,we=ie.className,Ae=Pt(ie,qB),Le=un(Ae,X),Ye=k(he),Ke=ve||!Ye&&R,He="".concat(P,"-option"),Ue=Z(P,He,we,B(B(B(B({},"".concat(He,"-grouped"),de),"".concat(He,"-active"),L===Q&&!Ke),"".concat(He,"-disabled"),Ke),"".concat(He,"-selected"),Ye)),Me=ee(se),Se=!b||typeof b=="function"||Ye,Fe=typeof Me=="number"?Me:Me||he,xe=g2(Fe)?Fe.toString():void 0;return $e!==void 0&&(xe=$e),l.createElement("div",be({},vr(Le),$?{}:J(se,Q),{"aria-selected":H(he),className:Ue,title:xe,onMouseMove:function(){L===Q||Ke||A(Q)},onClick:function(){Ke||U(he)},style:Ee}),l.createElement("div",{className:"".concat(He,"-content")},typeof I=="function"?I(se,{index:Q}):Fe),l.isValidElement(b)||Ye,Se&&l.createElement(yh,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:he,disabled:Ke,isSelected:Ye}},Ye?"✓":null))}))},YB=l.forwardRef(GB);const XB=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var a=n.current,i=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return q(q({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=l.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function cp(e,t){return nP(e).join("").toUpperCase().includes(t)}const QB=function(e,t,n,r,o){return l.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,h){return o?cp(h[o],d):h[a]?cp(h[i!=="children"?i:"label"],d):cp(h[s],d)},m=u?function(v){return Ky(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,m(v));if(h)c.push(v);else{var y=v[a].filter(function(p){return f(n,m(p))});y.length&&c.push(q(q({},v),{},B({},a,y)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])};var p2=0,JB=Er();function ZB(){var e;return JB?(e=p2,p2+=1):e="TEST_OR_SSR",e}function e9(e){var t=l.useState(),n=te(t,2),r=n[0],o=n[1];return l.useEffect(function(){o("rc_select_".concat(ZB()))},[]),e||r}var t9=["children","value"],n9=["children"];function r9(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Pt(r,t9);return q({key:n,value:a!==void 0?a:n,children:o},i)}function lP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $r(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,c=s.children,u=Pt(s,n9);return t||!a?r9(n):q(q({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:lP(c)})}).filter(function(n){return n})}var o9=function(t,n,r,o,a){return l.useMemo(function(){var i=t,s=!t;s&&(i=lP(n));var c=new Map,u=new Map,d=function(v,h,y){y&&typeof y=="string"&&v.set(h[y],h)},f=function m(v){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y<v.length;y+=1){var p=v[y];!p[r.options]||h?(c.set(p[r.value],p),d(u,p,r.label),d(u,p,o),d(u,p,a)):m(p[r.options],!0)}};return f(i),{options:i,valueOptions:c,labelOptions:u}},[t,n,r,o,a])};function y2(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var a9=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],i9=["inputValue"];function l9(e){return!e||ht(e)!=="object"}var s9=l.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,y=e.dropdownMatchSelectWidth,p=y===void 0?!0:y,g=e.filterOption,C=e.filterSort,b=e.optionFilterProp,S=e.optionLabelProp,w=e.options,$=e.optionRender,x=e.children,E=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,I=e.virtual,P=e.direction,_=e.listHeight,D=_===void 0?200:_,R=e.listItemHeight,N=R===void 0?20:R,M=e.labelRender,k=e.value,T=e.defaultValue,z=e.labelInValue,j=e.onChange,L=e.maxCount,F=Pt(e,a9),A=e9(n),H=Uy(r),U=!!(!w&&x),X=l.useMemo(function(){return g===void 0&&r==="combobox"?!1:g},[g,r]),ee=l.useMemo(function(){return oP(s,U)},[JSON.stringify(s),U]),J=en("",{value:u!==void 0?u:c,postState:function(G){return G||""}}),oe=te(J,2),ue=oe[0],se=oe[1],Q=o9(w,x,ee,b,S),fe=Q.valueOptions,de=Q.labelOptions,ie=Q.options,re=l.useCallback(function(K){var G=nP(K);return G.map(function(ce){var ye,De,Be,Ve,ke;if(l9(ce))ye=ce;else{var _e;Be=ce.key,De=ce.label,ye=(_e=ce.value)!==null&&_e!==void 0?_e:Be}var We=fe.get(ye);if(We){var Ze;De===void 0&&(De=We==null?void 0:We[S||ee.label]),Be===void 0&&(Be=(Ze=We==null?void 0:We.key)!==null&&Ze!==void 0?Ze:ye),Ve=We==null?void 0:We.disabled,ke=We==null?void 0:We.title}return{label:De,value:ye,key:Be,disabled:Ve,title:ke}})},[ee,S,fe]),he=en(T,{value:k}),ge=te(he,2),Ne=ge[0],Pe=ge[1],ve=l.useMemo(function(){var K,G=H&&Ne===null?[]:Ne,ce=re(G);return r==="combobox"&&ZA((K=ce[0])===null||K===void 0?void 0:K.value)?[]:ce},[Ne,re,r,H]),$e=XB(ve,fe),Ee=te($e,2),we=Ee[0],Ae=Ee[1],Le=l.useMemo(function(){if(!r&&we.length===1){var K=we[0];if(K.value===null&&(K.label===null||K.label===void 0))return[]}return we.map(function(G){var ce;return q(q({},G),{},{label:(ce=typeof M=="function"?M(G):G.label)!==null&&ce!==void 0?ce:G.value})})},[r,we,M]),Ye=l.useMemo(function(){return new Set(we.map(function(K){return K.value}))},[we]);l.useEffect(function(){if(r==="combobox"){var K,G=(K=we[0])===null||K===void 0?void 0:K.value;se(JA(G)?String(G):"")}},[we]);var Ke=y2(function(K,G){var ce=G??K;return B(B({},ee.value,K),ee.label,ce)}),He=l.useMemo(function(){if(r!=="tags")return ie;var K=ze(ie),G=function(ye){return fe.has(ye)};return ze(we).sort(function(ce,ye){return ce.value<ye.value?-1:1}).forEach(function(ce){var ye=ce.value;G(ye)||K.push(Ke(ye,ce.label))}),K},[Ke,ie,fe,we,r]),Ue=QB(He,ee,ue,X,b),Me=l.useMemo(function(){return r!=="tags"||!ue||Ue.some(function(K){return K[b||"value"]===ue})||Ue.some(function(K){return K[ee.value]===ue})?Ue:[Ke(ue)].concat(ze(Ue))},[Ke,b,r,Ue,ue,ee]),Se=function K(G){var ce=ze(G).sort(function(ye,De){return C(ye,De,{searchValue:ue})});return ce.map(function(ye){return Array.isArray(ye.options)?q(q({},ye),{},{options:ye.options.length>0?K(ye.options):ye.options}):ye})},Fe=l.useMemo(function(){return C?Se(Me):Me},[Me,C,ue]),xe=l.useMemo(function(){return wB(Fe,{fieldNames:ee,childrenAsData:U})},[Fe,ee,U]),Te=function(G){var ce=re(G);if(Pe(ce),j&&(ce.length!==we.length||ce.some(function(Be,Ve){var ke;return((ke=we[Ve])===null||ke===void 0?void 0:ke.value)!==(Be==null?void 0:Be.value)}))){var ye=z?ce:ce.map(function(Be){return Be.value}),De=ce.map(function(Be){return Ky(Ae(Be.value))});j(H?ye:ye[0],H?De:De[0])}},Oe=l.useState(null),Ie=te(Oe,2),je=Ie[0],qe=Ie[1],ut=l.useState(0),bt=te(ut,2),Ge=bt[0],tt=bt[1],rt=E!==void 0?E:r!=="combobox",V=l.useCallback(function(K,G){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=ce.source,De=ye===void 0?"keyboard":ye;tt(G),i&&r==="combobox"&&K!==null&&De==="keyboard"&&qe(String(K))},[i,r]),ae=function(G,ce,ye){var De=function(){var ft,_t=Ae(G);return[z?{label:_t==null?void 0:_t[ee.label],value:G,key:(ft=_t==null?void 0:_t.key)!==null&&ft!==void 0?ft:G}:G,Ky(_t)]};if(ce&&v){var Be=De(),Ve=te(Be,2),ke=Ve[0],_e=Ve[1];v(ke,_e)}else if(!ce&&h&&ye!=="clear"){var We=De(),Ze=te(We,2),st=Ze[0],$t=Ze[1];h(st,$t)}},me=y2(function(K,G){var ce,ye=H?G.selected:!0;ye?ce=H?[].concat(ze(we),[K]):[K]:ce=we.filter(function(De){return De.value!==K}),Te(ce),ae(K,ye),r==="combobox"?qe(""):(!Uy||m)&&(se(""),qe(""))}),Ce=function(G,ce){Te(G);var ye=ce.type,De=ce.values;(ye==="remove"||ye==="clear")&&De.forEach(function(Be){ae(Be.value,!1,ye)})},pe=function(G,ce){if(se(G),qe(null),ce.source==="submit"){var ye=(G||"").trim();if(ye){var De=Array.from(new Set([].concat(ze(Ye),[ye])));Te(De),ae(ye,!0),se("")}return}ce.source!=="blur"&&(r==="combobox"&&Te(G),d==null||d(G))},Re=function(G){var ce=G;r!=="tags"&&(ce=G.map(function(De){var Be=de.get(De);return Be==null?void 0:Be.value}).filter(function(De){return De!==void 0}));var ye=Array.from(new Set([].concat(ze(Ye),ze(ce))));Te(ye),ye.forEach(function(De){ae(De,!0)})},W=l.useMemo(function(){var K=I!==!1&&p!==!1;return q(q({},Q),{},{flattenOptions:xe,onActiveValue:V,defaultActiveFirstOption:rt,onSelect:me,menuItemSelectedIcon:O,rawValues:Ye,fieldNames:ee,virtual:K,direction:P,listHeight:D,listItemHeight:N,childrenAsData:U,maxCount:L,optionRender:$})},[L,Q,xe,V,rt,me,O,Ye,ee,I,p,P,D,N,U,$]);return l.createElement(tC.Provider,{value:W},l.createElement(RB,be({},F,{id:A,prefixCls:a,ref:t,omitDomProps:i9,mode:r,displayValues:Le,onDisplayValuesChange:Ce,direction:P,searchValue:ue,onSearch:pe,autoClearSearchValue:m,onSearchSplit:Re,dropdownMatchSelectWidth:p,OptionList:YB,emptyOptions:!xe.length,activeValue:je,activeDescendantId:"".concat(A,"_list_").concat(Ge)})))}),oC=s9;oC.Option=rC;oC.OptGroup=nC;function Ii(e,t,n){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Nl=(e,t)=>t||e,c9=()=>{const[,e]=Ir(),[t]=yo("Empty"),r=new Kt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},u9=()=>{const[,e]=Ir(),[t]=yo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:c}=l.useMemo(()=>({borderColor:new Kt(n).onBackground(a).toHexString(),shadowColor:new Kt(r).onBackground(a).toHexString(),contentColor:new Kt(o).onBackground(a).toHexString()}),[n,r,o,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:i},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},d9=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},f9=Gt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=At(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return d9(o)});var m9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sP=l.createElement(c9,null),cP=l.createElement(u9,null),Io=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:s,imageStyle:c,style:u,classNames:d,styles:f}=e,m=m9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:y,style:p,classNames:g,styles:C,image:b}=gr("empty"),S=v("empty",o),[w,$,x]=f9(S),[E]=yo("Empty"),O=typeof i<"u"?i:E==null?void 0:E.description,I=typeof O=="string"?O:"empty",P=(t=a??b)!==null&&t!==void 0?t:sP;let _=null;return typeof P=="string"?_=l.createElement("img",{draggable:!1,alt:I,src:P}):_=P,w(l.createElement("div",Object.assign({className:Z($,x,S,y,{[`${S}-normal`]:P===cP,[`${S}-rtl`]:h==="rtl"},n,r,g.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),p),f==null?void 0:f.root),u)},m),l.createElement("div",{className:Z(`${S}-image`,g.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),C.image),f==null?void 0:f.image)},_),O&&l.createElement("div",{className:Z(`${S}-description`,g.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},C.description),f==null?void 0:f.description)},O),s&&l.createElement("div",{className:Z(`${S}-footer`,g.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},C.footer),f==null?void 0:f.footer)},s)))};Io.PRESENTED_IMAGE_DEFAULT=sP;Io.PRESENTED_IMAGE_SIMPLE=cP;const uP=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(Et),r=n("empty");switch(t){case"Table":case"List":return le.createElement(Io,{image:Io.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(Io,{image:Io.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return le.createElement(Io,null)}},_l=(e,t,n)=>{var r,o;const{variant:a,[e]:i}=l.useContext(Et),s=l.useContext(N3),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=s??c)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=Sk.includes(u);return[u,d]},v9=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function h9(e,t){return e||v9(t)}const b2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},g9=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},tn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
217
+ ${o}${s}bottomLeft,
218
+ ${a}${s}bottomLeft
219
+ `]:{animationName:oh},[`
220
+ ${o}${s}topLeft,
221
+ ${a}${s}topLeft,
222
+ ${o}${s}topRight,
223
+ ${a}${s}topRight
224
+ `]:{animationName:ih},[`${i}${s}bottomLeft`]:{animationName:ah},[`
225
+ ${i}${s}topLeft,
226
+ ${i}${s}topRight
227
+ `]:{animationName:lh},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},b2(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ta),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},b2(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ba(e,"slide-up"),ba(e,"slide-down"),qs(e,"move-up"),qs(e,"move-down")]},dP=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:Y(t),itemLineHeight:Y(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},p9=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},fP=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},oc()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},y9=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=p9(e),s=t?`${n}-${t}`:"",c=dP(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},fP(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Y(r)} 0`,lineHeight:Y(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Y(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Y(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
228
+ ${n}-prefix + ${n}-selection-wrap
229
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Y(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function up(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
230
+ &${n}-show-arrow ${n}-selector,
231
+ &${n}-allow-clear ${n}-selector
232
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[y9(e,t),o]}const b9=e=>{const{componentCls:t}=e,n=At(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=At(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[up(e),up(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},up(r,"lg")]};function dp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},tn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Y(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
233
+ ${n}-selection-item,
234
+ ${n}-selection-placeholder
235
+ `]:{display:"block",padding:0,lineHeight:Y(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
236
+ &${n}-show-arrow ${n}-selection-item,
237
+ &${n}-show-arrow ${n}-selection-search,
238
+ &${n}-show-arrow ${n}-selection-placeholder
239
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Y(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:Y(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Y(r)}`,"&:after":{display:"none"}}}}}}}function C9(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[dp(e),dp(At(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Y(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
240
+ &${t}-show-arrow ${t}-selection-item,
241
+ &${t}-show-arrow ${t}-selection-placeholder
242
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},dp(At(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const S9=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:y,colorBgContainerDisabled:p,colorTextDisabled:g,colorPrimaryHover:C,colorPrimary:b,controlOutline:S}=e,w=s*2,$=r*2,x=Math.min(o-w,o-$),E=Math.min(a-w,a-$),O=Math.min(i-w,i-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:E,multipleItemHeightLG:O,multipleSelectorBgDisabled:p,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}},mP=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Y(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},C2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mP(e,t))}),x9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},mP(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),C2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),C2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),vP=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},S2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vP(e,t))}),w9=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},vP(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),S2(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),S2(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),$9=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Y(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),hP=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Y(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},x2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hP(e,t))}),E9=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},hP(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),x2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),x2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),O9=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},x9(e)),w9(e)),$9(e)),E9(e))}),I9=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},R9=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},P9=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},tn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},I9(e)),R9(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ta),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ta),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},oc()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},M9=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},P9(e),C9(e),b9(e),g9(e),{[`${t}-rtl`]:{direction:"rtl"}},dc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},N9=Gt("Select",(e,{rootPrefixCls:t})=>{const n=At(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[M9(n),O9(n)]},S9,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var _9={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"},T9=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:_9}))},gP=l.forwardRef(T9),D9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},k9=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:D9}))},Ch=l.forwardRef(k9),j9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},z9=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:j9}))},Sh=l.forwardRef(z9);function pP({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??l.createElement(lc,null),v=g=>e===null&&!i&&!d?null:l.createElement(l.Fragment,null,c!==!1&&g,i&&u);let h=null;if(e!==void 0)h=v(e);else if(o)h=v(l.createElement(Il,{spin:!0}));else{const g=`${s}-suffix`;h=({open:C,showSearch:b})=>v(C&&b?l.createElement(Sh,{className:g}):l.createElement(Ch,{className:g}))}let y=null;n!==void 0?y=n:a?y=l.createElement(gP,null):y=null;let p=null;return r!==void 0?p=r:p=l.createElement(sc,null),{clearIcon:m,suffixIcon:h,itemIcon:y,removeIcon:p}}function L9(e){return le.useMemo(()=>{if(e)return(...t)=>le.createElement(Sa,{space:!0},e.apply(void 0,t))},[e])}function F9(e,t){return t!==void 0?t:e!==null}var A9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yP="SECRET_COMBOBOX_MODE_DO_NOT_USE",B9=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:v,listHeight:h=256,placement:y,listItemHeight:p,size:g,disabled:C,notFoundContent:b,status:S,builtinPlacements:w,dropdownMatchSelectWidth:$,popupMatchSelectWidth:x,direction:E,style:O,allowClear:I,variant:P,dropdownStyle:_,transitionName:D,tagRender:R,maxCount:N,prefix:M,dropdownRender:k,popupRender:T,onDropdownVisibleChange:z,onOpenChange:j,styles:L,classNames:F}=e,A=A9(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:H,getPrefixCls:U,renderEmpty:X,direction:ee,virtual:J,popupMatchSelectWidth:oe,popupOverflow:ue}=l.useContext(Et),{showSearch:se,style:Q,styles:fe,className:de,classNames:ie}=gr("select"),[,re]=Ir(),he=p??(re==null?void 0:re.controlHeight),ge=U("select",s),Ne=U(),Pe=E??ee,{compactSize:ve,compactItemClassnames:$e}=$a(ge,Pe),[Ee,we]=_l("select",P,c),Ae=Un(ge),[Le,Ye,Ke]=N9(ge,Ae),He=l.useMemo(()=>{const{mode:ye}=e;if(ye!=="combobox")return ye===yP?"combobox":ye},[e.mode]),Ue=He==="multiple"||He==="tags",Me=F9(e.suffixIcon,e.showArrow),Se=(n=x??$)!==null&&n!==void 0?n:oe,Fe=((r=L==null?void 0:L.popup)===null||r===void 0?void 0:r.root)||((o=fe.popup)===null||o===void 0?void 0:o.root)||_,xe=L9(T||k),Te=j||z,{status:Oe,hasFeedback:Ie,isFormItemInput:je,feedbackIcon:qe}=l.useContext(ir),ut=Nl(Oe,S);let bt;b!==void 0?bt=b:He==="combobox"?bt=null:bt=(X==null?void 0:X("Select"))||l.createElement(uP,{componentName:"Select"});const{suffixIcon:Ge,itemIcon:tt,removeIcon:rt,clearIcon:V}=pP(Object.assign(Object.assign({},A),{multiple:Ue,hasFeedback:Ie,feedbackIcon:qe,showSuffixIcon:Me,prefixCls:ge,componentName:"Select"})),ae=I===!0?{clearIcon:V}:I,me=un(A,["suffixIcon","itemIcon"]),Ce=Z(((a=F==null?void 0:F.popup)===null||a===void 0?void 0:a.root)||((i=ie==null?void 0:ie.popup)===null||i===void 0?void 0:i.root)||m||v,{[`${ge}-dropdown-${Pe}`]:Pe==="rtl"},d,ie.root,F==null?void 0:F.root,Ke,Ae,Ye),pe=sr(ye=>{var De;return(De=g??ve)!==null&&De!==void 0?De:ye}),Re=l.useContext(zr),W=C??Re,K=Z({[`${ge}-lg`]:pe==="large",[`${ge}-sm`]:pe==="small",[`${ge}-rtl`]:Pe==="rtl",[`${ge}-${Ee}`]:we,[`${ge}-in-form-item`]:je},Ii(ge,ut,Ie),$e,de,u,ie.root,F==null?void 0:F.root,d,Ke,Ae,Ye),G=l.useMemo(()=>y!==void 0?y:Pe==="rtl"?"bottomRight":"bottomLeft",[y,Pe]),[ce]=Rl("SelectLike",Fe==null?void 0:Fe.zIndex);return Le(l.createElement(oC,Object.assign({ref:t,virtual:J,showSearch:se},me,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),L==null?void 0:L.root),Q),O),dropdownMatchSelectWidth:Se,transitionName:Oi(Ne,"slide-up",D),builtinPlacements:h9(w,ue),listHeight:h,listItemHeight:he,mode:He,prefixCls:ge,placement:G,direction:Pe,prefix:M,suffixIcon:Ge,menuItemSelectedIcon:tt,removeIcon:rt,allowClear:ae,notFoundContent:bt,className:K,getPopupContainer:f||H,dropdownClassName:Ce,disabled:W,dropdownStyle:Object.assign(Object.assign({},Fe),{zIndex:ce}),maxCount:Ue?N:void 0,tagRender:Ue?R:void 0,dropdownRender:xe,onDropdownVisibleChange:Te})))},Tl=l.forwardRef(B9),H9=gh(Tl,"dropdownAlign");Tl.SECRET_COMBOBOX_MODE_DO_NOT_USE=yP;Tl.Option=rC;Tl.OptGroup=nC;Tl._InternalPanelDoNotUseOrYouWillBeFired=H9;const bP=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},CP=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Gs=["xxl","xl","lg","md","sm","xs"],V9=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),W9=e=>{const t=e,n=[].concat(Gs).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const c=`screen${a}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},SP=(e,t)=>{if(t){for(const n of Gs)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},K9=()=>{const[,e]=Ir(),t=V9(W9(e));return le.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:u}))},c=window.matchMedia(i);bP(c,s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];CP(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[t])};function xh(e=!0,t={}){const n=l.useRef(t),[,r]=ZR(),o=K9();return Dt(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}const Ys=e=>e?typeof e=="function"?e():e:null;function aC(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return l.createElement("div",{className:Z("".concat(n,"-content"),i),style:s},l.createElement("div",{className:Z("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Gl={shiftX:64,adjustY:1},Yl={adjustX:1,shiftY:!0},So=[0,0],U9={left:{points:["cr","cl"],overflow:Yl,offset:[-4,0],targetOffset:So},right:{points:["cl","cr"],overflow:Yl,offset:[4,0],targetOffset:So},top:{points:["bc","tc"],overflow:Gl,offset:[0,-4],targetOffset:So},bottom:{points:["tc","bc"],overflow:Gl,offset:[0,4],targetOffset:So},topLeft:{points:["bl","tl"],overflow:Gl,offset:[0,-4],targetOffset:So},leftTop:{points:["tr","tl"],overflow:Yl,offset:[-4,0],targetOffset:So},topRight:{points:["br","tr"],overflow:Gl,offset:[0,-4],targetOffset:So},rightTop:{points:["tl","tr"],overflow:Yl,offset:[4,0],targetOffset:So},bottomRight:{points:["tr","br"],overflow:Gl,offset:[0,4],targetOffset:So},rightBottom:{points:["bl","br"],overflow:Yl,offset:[4,0],targetOffset:So},bottomLeft:{points:["tl","bl"],overflow:Gl,offset:[0,4],targetOffset:So},leftBottom:{points:["br","bl"],overflow:Yl,offset:[-4,0],targetOffset:So}},q9=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],G9=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,h=t.onVisibleChange,y=t.afterVisibleChange,p=t.transitionName,g=t.animation,C=t.motion,b=t.placement,S=b===void 0?"right":b,w=t.align,$=w===void 0?{}:w,x=t.destroyTooltipOnHide,E=x===void 0?!1:x,O=t.defaultVisible,I=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,D=t.id,R=t.showArrow,N=R===void 0?!0:R,M=t.classNames,k=t.styles,T=Pt(t,q9),z=Od(D),j=l.useRef(null);l.useImperativeHandle(n,function(){return j.current});var L=q({},T);"visible"in t&&(L.popupVisible=t.visible);var F=function(){return l.createElement(aC,{key:"content",prefixCls:m,id:z,bodyClassName:M==null?void 0:M.body,overlayInnerStyle:q(q({},P),k==null?void 0:k.body)},_)},A=function(){var U=l.Children.only(v),X=(U==null?void 0:U.props)||{},ee=q(q({},X),{},{"aria-describedby":_?z:null});return l.cloneElement(v,ee)};return l.createElement(Md,be({popupClassName:Z(r,M==null?void 0:M.root),prefixCls:m,popup:F,action:a,builtinPlacements:U9,popupPlacement:S,ref:j,popupAlign:$,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:y,popupTransitionName:p,popupAnimation:g,popupMotion:C,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:u,popupStyle:q(q({},d),k==null?void 0:k.root),mouseEnterDelay:s,arrow:N},L),A())};const Y9=l.forwardRef(G9);function wh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,v=2*o-s,h=c,y=2*o-a,p=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),b=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${h} A ${r} ${r} 0 0 0 ${y} ${p} Z')`;return{arrowShadowWidth:g,arrowPath:S,arrowPolygon:b}}const xP=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Y(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},wP=8;function $h(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?wP:r}}function Sf(e,t){return e?t:{}}function iC(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},xP(e,t,o)),{"&:before":{background:t}})]},Sf(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Y(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Sf(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Y(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Sf(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Sf(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function X9(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const w2={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"]}},Q9={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"]}},J9=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $P(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={},u=$h({contentRadius:a,limitVerticalRadius:!0});return Object.keys(w2).forEach(d=>{const f=r&&Q9[d]||w2[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,J9.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-s;break}m.overflow=X9(d,u,t,n),i&&(m.htmlRegion="visibleFirst")}),c}const Z9=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:v}=e,h=t(i).add(v).add(m).equal(),y=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:y,minHeight:c,padding:`${Y(e.calc(d).div(2).equal())} ${Y(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,wP)}},[`${n}-content`]:{position:"relative"}}),IR(e,(p,{darkColor:g})=>({[`&${n}-${p}`]:{[`${n}-inner`]:{backgroundColor:g},[`${n}-arrow`]:{"--antd-arrow-background-color":g}}}))),{"&-rtl":{direction:"rtl"}})},iC(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},eH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$h({contentRadius:e.borderRadius,limitVerticalRadius:!0})),wh(At(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),EP=(e,t=!0)=>Gt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,s=At(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[Z9(s),$d(r,"zoom-big-fast")]},eH,{resetStyle:!1,injectStyle:t})(e),tH=$i.map(e=>`${e}-inverse`),nH=["success","processing","error","default","warning"];function OP(e,t=!0){return t?[].concat(ze(tH),ze($i)).includes(e):$i.includes(e)}function rH(e){return nH.includes(e)}function IP(e,t){const n=OP(t),r=Z({[`${e}-${t}`]:t&&n}),o={},a={},i=tL(t).toRgb(),c=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const oH=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(Et),c=s("tooltip",t),[u,d,f]=EP(c),m=IP(c,a),v=m.arrowStyle,h=Object.assign(Object.assign({},i),m.overlayStyle),y=Z(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(l.createElement("div",{className:y,style:v},l.createElement("div",{className:`${c}-arrow`}),l.createElement(aC,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),o)))};var aH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iH=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:v,arrow:h=!0,title:y,overlay:p,builtinPlacements:g,arrowPointAtCenter:C=!1,autoAdjustOverflow:b=!0,motion:S,getPopupContainer:w,placement:$="top",mouseEnterDelay:x=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:I,overlayClassName:P,styles:_,classNames:D}=e,R=aH(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!h,[,M]=Ir(),{getPopupContainer:k,getPrefixCls:T,direction:z,className:j,style:L,classNames:F,styles:A}=gr("tooltip"),H=Di(),U=l.useRef(null),X=()=>{var Me;(Me=U.current)===null||Me===void 0||Me.forceAlign()};l.useImperativeHandle(t,()=>{var Me,Se;return{forceAlign:X,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(Me=U.current)===null||Me===void 0?void 0:Me.nativeElement,popupElement:(Se=U.current)===null||Se===void 0?void 0:Se.popupElement}});const[ee,J]=en(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),oe=!y&&!p&&y!==0,ue=Me=>{var Se,Fe;J(oe?!1:Me),oe||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,Me),(Fe=e.onVisibleChange)===null||Fe===void 0||Fe.call(e,Me))},se=l.useMemo(()=>{var Me,Se;let Fe=C;return typeof h=="object"&&(Fe=(Se=(Me=h.pointAtCenter)!==null&&Me!==void 0?Me:h.arrowPointAtCenter)!==null&&Se!==void 0?Se:C),g||$P({arrowPointAtCenter:Fe,autoAdjustOverflow:b,arrowWidth:N?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[C,h,g,M]),Q=l.useMemo(()=>y===0?y:p||y||"",[p,y]),fe=l.createElement(Sa,{space:!0},typeof Q=="function"?Q():Q),de=T("tooltip",o),ie=T(),re=e["data-popover-inject"];let he=ee;!("open"in e)&&!("visible"in e)&&oe&&(he=!1);const ge=l.isValidElement(u)&&!GR(u)?u:l.createElement("span",null,u),Ne=ge.props,Pe=!Ne.className||typeof Ne.className=="string"?Z(Ne.className,a||`${de}-open`):Ne.className,[ve,$e,Ee]=EP(de,!re),we=IP(de,s),Ae=we.arrowStyle,Le=Z(P,{[`${de}-rtl`]:z==="rtl"},we.className,I,$e,Ee,j,F.root,D==null?void 0:D.root),Ye=Z(F.body,D==null?void 0:D.body),[Ke,He]=Rl("Tooltip",R.zIndex),Ue=l.createElement(Y9,Object.assign({},R,{zIndex:Ke,showArrow:N,placement:$,mouseEnterDelay:x,mouseLeaveDelay:E,prefixCls:de,classNames:{root:Le,body:Ye},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ae),A.root),L),O),_==null?void 0:_.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},A.body),c),_==null?void 0:_.body),we.overlayStyle)},getTooltipContainer:w||i||k,ref:U,builtinPlacements:se,overlay:fe,visible:he,onVisibleChange:ue,afterVisibleChange:d??f,arrowContent:l.createElement("span",{className:`${de}-arrow-content`}),motion:{motionName:Oi(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!m}),he?Wr(ge,{className:Pe}):ge);return ve(l.createElement(Zv.Provider,{value:He},Ue))}),xr=iH;xr._InternalPanelDoNotUseOrYouWillBeFired=oH;const lH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:v,innerContentPadding:h,titlePadding:y}=e;return[{[t]:Object.assign(Object.assign({},tn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:v,padding:y},[`${t}-inner-content`]:{color:n,padding:h}})},iC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},sH=e=>{const{componentCls:t}=e;return{[t]:$i.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},cH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,v=m/2,h=m/2-t,y=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},wh(e)),$h({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${v}px ${y}px ${h}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${y}px`:0})},RP=Gt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=At(e,{popoverBg:t,popoverColor:n});return[lH(r),sH(r),$d(r,"zoom-big")]},cH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var uH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PP=({title:e,content:t,prefixCls:n})=>!e&&!t?null:l.createElement(l.Fragment,null,e&&l.createElement("div",{className:`${n}-title`},e),t&&l.createElement("div",{className:`${n}-inner-content`},t)),dH=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:c}=e,u=Ys(i),d=Ys(s),f=Z(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return l.createElement("div",{className:f,style:o},l.createElement("div",{className:`${n}-arrow`}),l.createElement(aC,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(PP,{prefixCls:n,title:u,content:d})))},MP=e=>{const{prefixCls:t,className:n}=e,r=uH(e,["prefixCls","className"]),{getPrefixCls:o}=l.useContext(Et),a=o("popover",t),[i,s,c]=RP(a);return i(l.createElement(dH,Object.assign({},r,{prefixCls:a,hashId:s,className:Z(n,c)})))};var fH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mH=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:a,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:v,overlayStyle:h={},styles:y,classNames:p}=e,g=fH(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:b,style:S,classNames:w,styles:$}=gr("popover"),x=C("popover",o),[E,O,I]=RP(x),P=C(),_=Z(s,O,I,b,w.root,p==null?void 0:p.root),D=Z(w.body,p==null?void 0:p.body),[R,N]=en(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(L,F)=>{N(L,!0),v==null||v(L,F)},k=L=>{L.keyCode===ct.ESC&&M(!1,L)},T=L=>{M(L)},z=Ys(a),j=Ys(i);return E(l.createElement(xr,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},g,{prefixCls:x,classNames:{root:_,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),S),h),y==null?void 0:y.root),body:Object.assign(Object.assign({},$.body),y==null?void 0:y.body)},ref:t,open:R,onOpenChange:T,overlay:z||j?l.createElement(PP,{prefixCls:x,title:z,content:j}):null,transitionName:Oi(P,"zoom-big",g.transitionName),"data-popover-inject":!0}),Wr(d,{onKeyDown:L=>{var F,A;l.isValidElement(d)&&((A=d==null?void 0:(F=d.props).onKeyDown)===null||A===void 0||A.call(F,L)),k(L)}})))}),NP=mH;NP._InternalPanelDoNotUseOrYouWillBeFired=MP;var vH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},hH=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:vH}))},gH=l.forwardRef(hH),pH={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"},yH=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:pH}))},ad=l.forwardRef(yH),bH=ct.ESC,CH=ct.TAB;function SH(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case bH:s();break;case CH:{var m=!1;i.current||(m=c()),m?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&jt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var xH=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=lr(t,Ti(a));return le.createElement(le.Fragment,null,r&&le.createElement("div",{className:"".concat(o,"-arrow")}),le.cloneElement(a,{ref:Zo(a)?i:void 0}))}),Xl={adjustX:1,adjustY:1},Ql=[0,0],wH={topLeft:{points:["bl","tl"],overflow:Xl,offset:[0,-4],targetOffset:Ql},top:{points:["bc","tc"],overflow:Xl,offset:[0,-4],targetOffset:Ql},topRight:{points:["br","tr"],overflow:Xl,offset:[0,-4],targetOffset:Ql},bottomLeft:{points:["tl","bl"],overflow:Xl,offset:[0,4],targetOffset:Ql},bottom:{points:["tc","bc"],overflow:Xl,offset:[0,4],targetOffset:Ql},bottomRight:{points:["tr","br"],overflow:Xl,offset:[0,4],targetOffset:Ql}},$H=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function EH(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?wH:m,h=e.getPopupContainer,y=e.showAction,p=e.hideAction,g=e.overlayClassName,C=e.overlayStyle,b=e.visible,S=e.trigger,w=S===void 0?["hover"]:S,$=e.autoFocus,x=e.overlay,E=e.children,O=e.onVisibleChange,I=Pt(e,$H),P=le.useState(),_=te(P,2),D=_[0],R=_[1],N="visible"in e?b:D,M=le.useRef(null),k=le.useRef(null),T=le.useRef(null);le.useImperativeHandle(t,function(){return M.current});var z=function(J){R(J),O==null||O(J)};SH({visible:N,triggerRef:T,onVisibleChange:z,autoFocus:$,overlayRef:k});var j=function(J){var oe=e.onOverlayClick;R(!1),oe&&oe(J)},L=function(){return le.createElement(xH,{ref:k,overlay:x,prefixCls:i,arrow:o})},F=function(){return typeof x=="function"?L:L()},A=function(){var J=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!oe},H=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},U=le.cloneElement(E,{className:Z((n=E.props)===null||n===void 0?void 0:n.className,N&&H()),ref:Zo(E)?lr(T,Ti(E)):void 0}),X=p;return!X&&w.indexOf("contextMenu")!==-1&&(X=["click"]),le.createElement(Md,be({builtinPlacements:v},I,{prefixCls:i,ref:M,popupClassName:Z(g,B({},"".concat(i,"-show-arrow"),o)),popupStyle:C,action:w,showAction:y,hideAction:X,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:N,stretch:A()?"minWidth":"",popup:F(),onPopupVisibleChange:z,onPopupClick:j,getPopupContainer:h}),U)}const _P=le.forwardRef(EH),OH=e=>typeof e!="object"&&typeof e!="function"||e===null;var TP=l.createContext(null);function DP(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function kP(e){var t=l.useContext(TP);return DP(t,e)}var IH=["children","locked"],oa=l.createContext(null);function RH(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function id(e){var t=e.children,n=e.locked,r=Pt(e,IH),o=l.useContext(oa),a=Ol(function(){return RH(o,r)},[o,r],function(i,s){return!n&&(i[0]!==s[0]||!ya(i[1],s[1],!0))});return l.createElement(oa.Provider,{value:a},t)}var PH=[],jP=l.createContext(null);function Eh(){return l.useContext(jP)}var zP=l.createContext(PH);function vc(e){var t=l.useContext(zP);return l.useMemo(function(){return e!==void 0?[].concat(ze(t),[e]):t},[t,e])}var LP=l.createContext(null),lC=l.createContext({});function $2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(uc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function MH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ze(e.querySelectorAll("*")).filter(function(r){return $2(r,t)});return $2(e,t)&&n.unshift(e),n}var Gy=ct.LEFT,Yy=ct.RIGHT,Xy=ct.UP,sm=ct.DOWN,cm=ct.ENTER,FP=ct.ESC,Ac=ct.HOME,Bc=ct.END,E2=[Xy,sm,Gy,Yy];function NH(e,t,n,r){var o,a="prev",i="next",s="children",c="parent";if(e==="inline"&&r===cm)return{inlineTrigger:!0};var u=B(B({},Xy,a),sm,i),d=B(B(B(B({},Gy,n?i:a),Yy,n?a:i),sm,s),cm,s),f=B(B(B(B(B(B({},Xy,a),sm,i),cm,s),FP,c),Gy,n?s:c),Yy,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function _H(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function TH(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function sC(e,t){var n=MH(e,!0);return n.filter(function(r){return t.has(r)})}function O2(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=sC(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Qy=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(DP(n,i),"']"));s&&(r.add(s),a.set(s,i),o.set(i,s))}),{elements:r,key2element:o,element2key:a}};function DH(e,t,n,r,o,a,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var m=function(){jt.cancel(d.current)};return l.useEffect(function(){return function(){m()}},[]),function(v){var h=v.which;if([].concat(E2,[cm,FP,Ac,Bc]).includes(h)){var y=a(),p=Qy(y,r),g=p,C=g.elements,b=g.key2element,S=g.element2key,w=b.get(t),$=TH(w,C),x=S.get($),E=NH(e,i(x,!0).length===1,n,h);if(!E&&h!==Ac&&h!==Bc)return;(E2.includes(h)||[Ac,Bc].includes(h))&&v.preventDefault();var O=function(k){if(k){var T=k,z=k.querySelector("a");z!=null&&z.getAttribute("href")&&(T=z);var j=S.get(k);s(j),m(),d.current=jt(function(){f.current===j&&T.focus()})}};if([Ac,Bc].includes(h)||E.sibling||!$){var I;!$||e==="inline"?I=o.current:I=_H($);var P,_=sC(I,C);h===Ac?P=_[0]:h===Bc?P=_[_.length-1]:P=O2(I,C,$,E.offset),O(P)}else if(E.inlineTrigger)c(x);else if(E.offset>0)c(x,!0),m(),d.current=jt(function(){p=Qy(y,r);var M=$.getAttribute("aria-controls"),k=document.getElementById(M),T=O2(k,p.elements);O(T)},5);else if(E.offset<0){var D=i(x,!0),R=D[D.length-2],N=b.get(R);c(R,!1),O(N)}}u==null||u(v)}}function kH(e){Promise.resolve().then(e)}var cC="__RC_UTIL_PATH_SPLIT__",I2=function(t){return t.join(cC)},jH=function(t){return t.split(cC)},Jy="rc-menu-more";function zH(){var e=l.useState({}),t=te(e,2),n=t[1],r=l.useRef(new Map),o=l.useRef(new Map),a=l.useState([]),i=te(a,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},m=l.useCallback(function(b,S){var w=I2(S);o.current.set(w,b),r.current.set(b,w),u.current+=1;var $=u.current;kH(function(){$===u.current&&f()})},[]),v=l.useCallback(function(b,S){var w=I2(S);o.current.delete(w),r.current.delete(b)},[]),h=l.useCallback(function(b){c(b)},[]),y=l.useCallback(function(b,S){var w=r.current.get(b)||"",$=jH(w);return S&&s.includes($[0])&&$.unshift(Jy),$},[s]),p=l.useCallback(function(b,S){return b.filter(function(w){return w!==void 0}).some(function(w){var $=y(w,!0);return $.includes(S)})},[y]),g=function(){var S=ze(r.current.keys());return s.length&&S.push(Jy),S},C=l.useCallback(function(b){var S="".concat(r.current.get(b)).concat(cC),w=new Set;return ze(o.current.keys()).forEach(function($){$.startsWith(S)&&w.add(o.current.get($))}),w},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:y,getKeys:g,getSubPathKeys:C}}function au(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var LH=Math.random().toFixed(5).toString().slice(2),R2=0;function FH(e){var t=en(e,{value:e}),n=te(t,2),r=n[0],o=n[1];return l.useEffect(function(){R2+=1;var a="".concat(LH,"-").concat(R2);o("rc-menu-uuid-".concat(a))},[]),r}function AP(e,t,n,r){var o=l.useContext(oa),a=o.activeKey,i=o.onActive,s=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),i(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function BP(e){var t=l.useContext(oa),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function HP(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=l.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var AH=["item"];function nv(e){var t=e.item,n=Pt(e,AH);return Object.defineProperty(n,"item",{get:function(){return Sn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var BH=["title","attribute","elementRef"],HH=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],VH=["active"],WH=function(e){xa(n,e);var t=wa(n);function n(){return Pn(this,n),t.apply(this,arguments)}return Mn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,c=Pt(o,BH),u=un(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Sn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Xo.Item,be({},i,{title:typeof a=="string"?a:void 0},u,{ref:s}))}}]),n}(l.Component),KH=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,i=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,v=e.onFocus,h=Pt(e,HH),y=kP(o),p=l.useContext(oa),g=p.prefixCls,C=p.onItemClick,b=p.disabled,S=p.overflowDisabled,w=p.itemIcon,$=p.selectedKeys,x=p.onActive,E=l.useContext(lC),O=E._internalRenderMenuItem,I="".concat(g,"-item"),P=l.useRef(),_=l.useRef(),D=b||a,R=Wa(t,_),N=vc(o),M=function(oe){return{key:o,keyPath:ze(N).reverse(),item:P.current,domEvent:oe}},k=i||w,T=AP(o,D,u,d),z=T.active,j=Pt(T,VH),L=$.includes(o),F=BP(N.length),A=function(oe){if(!D){var ue=M(oe);f==null||f(nv(ue)),C(ue)}},H=function(oe){if(m==null||m(oe),oe.which===ct.ENTER){var ue=M(oe);f==null||f(nv(ue)),C(ue)}},U=function(oe){x(o),v==null||v(oe)},X={};e.role==="option"&&(X["aria-selected"]=L);var ee=l.createElement(WH,be({ref:P,elementRef:R,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&y?null:y},un(h,["extra"]),j,X,{component:"li","aria-disabled":a,style:q(q({},F),n),className:Z(I,B(B(B({},"".concat(I,"-active"),z),"".concat(I,"-selected"),L),"".concat(I,"-disabled"),D),r),onClick:A,onKeyDown:H,onFocus:U}),s,l.createElement(HP,{props:q(q({},e),{},{isSelected:L}),icon:k}));return O&&(ee=O(ee,e,{selected:L})),ee});function UH(e,t){var n=e.eventKey,r=Eh(),o=vc(n);return l.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:l.createElement(KH,be({},e,{ref:t}))}const Nd=l.forwardRef(UH);var qH=["className","children"],GH=function(t,n){var r=t.className,o=t.children,a=Pt(t,qH),i=l.useContext(oa),s=i.prefixCls,c=i.mode,u=i.rtl;return l.createElement("ul",be({className:Z(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},uC=l.forwardRef(GH);uC.displayName="SubMenuList";function dC(e,t){return $r(e).map(function(n,r){if(l.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,c=s==null;c&&(s="tmp_key-".concat([].concat(ze(t),[r]).join("-")));var u={key:s,eventKey:s};return l.cloneElement(n,u)}return n})}var _r={adjustX:1,adjustY:1},YH={topLeft:{points:["bl","tl"],overflow:_r},topRight:{points:["br","tr"],overflow:_r},bottomLeft:{points:["tl","bl"],overflow:_r},bottomRight:{points:["tr","br"],overflow:_r},leftTop:{points:["tr","tl"],overflow:_r},leftBottom:{points:["br","bl"],overflow:_r},rightTop:{points:["tl","tr"],overflow:_r},rightBottom:{points:["bl","br"],overflow:_r}},XH={topLeft:{points:["bl","tl"],overflow:_r},topRight:{points:["br","tr"],overflow:_r},bottomLeft:{points:["tl","bl"],overflow:_r},bottomRight:{points:["tr","br"],overflow:_r},rightTop:{points:["tr","tl"],overflow:_r},rightBottom:{points:["br","bl"],overflow:_r},leftTop:{points:["tl","tr"],overflow:_r},leftBottom:{points:["bl","br"],overflow:_r}};function VP(e,t,n){if(t)return t;if(n)return n[e]||n.other}var QH={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function JH(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=l.useContext(oa),m=f.getPopupContainer,v=f.rtl,h=f.subMenuOpenDelay,y=f.subMenuCloseDelay,p=f.builtinPlacements,g=f.triggerSubMenuAction,C=f.forceSubMenuRender,b=f.rootClassName,S=f.motion,w=f.defaultMotions,$=l.useState(!1),x=te($,2),E=x[0],O=x[1],I=q(v?q({},XH):q({},YH),p),P=QH[u],_=VP(u,S,w),D=l.useRef(_);u!=="inline"&&(D.current=_);var R=q(q({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=l.useRef();return l.useEffect(function(){return N.current=jt(function(){O(n)}),function(){jt.cancel(N.current)}},[n]),l.createElement(Md,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),B({},"".concat(t,"-rtl"),v),i,b),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:P,popupVisible:E,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[g],mouseEnterDelay:h,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:C,popupMotion:R,fresh:!0},r)}function ZH(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=l.useContext(oa),s=i.prefixCls,c=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,m=l.useRef(!1);m.current=f===a;var v=l.useState(!m.current),h=te(v,2),y=h[0],p=h[1],g=m.current?n:!1;l.useEffect(function(){m.current&&p(!1)},[f]);var C=q({},VP(a,u,d));r.length>1&&(C.motionAppear=!1);var b=C.onVisibleChanged;return C.onVisibleChanged=function(S){return!m.current&&!S&&p(!0),b==null?void 0:b(S)},y?null:l.createElement(id,{mode:a,locked:!m.current},l.createElement(ko,be({visible:g},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var w=S.className,$=S.style;return l.createElement(uC,{id:t,className:w,style:$},o)}))}var eV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tV=["active"],nV=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,v=e.popupStyle,h=e.onClick,y=e.onMouseEnter,p=e.onMouseLeave,g=e.onTitleClick,C=e.onTitleMouseEnter,b=e.onTitleMouseLeave,S=Pt(e,eV),w=kP(a),$=l.useContext(oa),x=$.prefixCls,E=$.mode,O=$.openKeys,I=$.disabled,P=$.overflowDisabled,_=$.activeKey,D=$.selectedKeys,R=$.itemIcon,N=$.expandIcon,M=$.onItemClick,k=$.onOpenChange,T=$.onActive,z=l.useContext(lC),j=z._internalRenderSubMenuItem,L=l.useContext(LP),F=L.isSubPathKey,A=vc(),H="".concat(x,"-submenu"),U=I||i,X=l.useRef(),ee=l.useRef(),J=u??R,oe=d??N,ue=O.includes(a),se=!P&&ue,Q=F(D,a),fe=AP(a,U,C,b),de=fe.active,ie=Pt(fe,tV),re=l.useState(!1),he=te(re,2),ge=he[0],Ne=he[1],Pe=function(Oe){U||Ne(Oe)},ve=function(Oe){Pe(!0),y==null||y({key:a,domEvent:Oe})},$e=function(Oe){Pe(!1),p==null||p({key:a,domEvent:Oe})},Ee=l.useMemo(function(){return de||(E!=="inline"?ge||F([_],a):!1)},[E,de,_,ge,a,F]),we=BP(A.length),Ae=function(Oe){U||(g==null||g({key:a,domEvent:Oe}),E==="inline"&&k(a,!ue))},Le=au(function(Te){h==null||h(nv(Te)),M(Te)}),Ye=function(Oe){E!=="inline"&&k(a,Oe)},Ke=function(){T(a)},He=w&&"".concat(w,"-popup"),Ue=l.useMemo(function(){return l.createElement(HP,{icon:E!=="horizontal"?oe:void 0,props:q(q({},e),{},{isOpen:se,isSubMenu:!0})},l.createElement("i",{className:"".concat(H,"-arrow")}))},[E,oe,e,se,H]),Me=l.createElement("div",be({role:"menuitem",style:we,className:"".concat(H,"-title"),tabIndex:U?null:-1,ref:X,title:typeof o=="string"?o:null,"data-menu-id":P&&w?null:w,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":He,"aria-disabled":U,onClick:Ae,onFocus:Ke},ie),o,Ue),Se=l.useRef(E);if(E!=="inline"&&A.length>1?Se.current="vertical":Se.current=E,!P){var Fe=Se.current;Me=l.createElement(JH,{mode:Fe,prefixCls:H,visible:!s&&se&&E!=="inline",popupClassName:f,popupOffset:m,popupStyle:v,popup:l.createElement(id,{mode:Fe==="horizontal"?"vertical":Fe},l.createElement(uC,{id:He,ref:ee},c)),disabled:U,onVisibleChange:Ye},Me)}var xe=l.createElement(Xo.Item,be({ref:t,role:"none"},S,{component:"li",style:n,className:Z(H,"".concat(H,"-").concat(E),r,B(B(B(B({},"".concat(H,"-open"),se),"".concat(H,"-active"),Ee),"".concat(H,"-selected"),Q),"".concat(H,"-disabled"),U)),onMouseEnter:ve,onMouseLeave:$e}),Me,!P&&l.createElement(ZH,{id:He,open:se,keyPath:A},c));return j&&(xe=j(xe,e,{selected:Q,active:Ee,open:se,disabled:U})),l.createElement(id,{onItemClick:Le,mode:E==="horizontal"?"vertical":E,itemIcon:J,expandIcon:oe},xe)}),Oh=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=vc(n),a=dC(r,o),i=Eh();l.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var s;return i?s=a:s=l.createElement(nV,be({ref:t},e),a),l.createElement(zP.Provider,{value:o},s)});function fC(e){var t=e.className,n=e.style,r=l.useContext(oa),o=r.prefixCls,a=Eh();return a?null:l.createElement("li",{role:"separator",className:Z("".concat(o,"-item-divider"),t),style:n})}var rV=["className","title","eventKey","children"],oV=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=Pt(e,rV),i=l.useContext(oa),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",be({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:Z(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),mC=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=vc(n),a=dC(r,o),i=Eh();return i?a:l.createElement(oV,be({ref:t},un(e,["warnKey"])),a)}),aV=["label","children","key","type","extra"];function Zy(e,t,n){var r=t.item,o=t.group,a=t.submenu,i=t.divider;return(e||[]).map(function(s,c){if(s&&ht(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,v=u.type,h=u.extra,y=Pt(u,aV),p=m??"tmp-".concat(c);return f||v==="group"?v==="group"?l.createElement(o,be({key:p},y,{title:d}),Zy(f,t,n)):l.createElement(a,be({key:p},y,{title:d}),Zy(f,t,n)):v==="divider"?l.createElement(i,be({key:p},y)):l.createElement(r,be({key:p},y,{extra:h}),d,(!!h||h===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function P2(e,t,n,r,o){var a=e,i=q({divider:fC,item:Nd,group:mC,submenu:Oh},r);return t&&(a=Zy(t,i,o)),dC(a,n)}var iV=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Li=[],lV=l.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,v=r.direction,h=r.id,y=r.mode,p=y===void 0?"vertical":y,g=r.inlineCollapsed,C=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,w=S===void 0?.1:S,$=r.subMenuCloseDelay,x=$===void 0?.1:$,E=r.forceSubMenuRender,O=r.defaultOpenKeys,I=r.openKeys,P=r.activeKey,_=r.defaultActiveFirst,D=r.selectable,R=D===void 0?!0:D,N=r.multiple,M=N===void 0?!1:N,k=r.defaultSelectedKeys,T=r.selectedKeys,z=r.onSelect,j=r.onDeselect,L=r.inlineIndent,F=L===void 0?24:L,A=r.motion,H=r.defaultMotions,U=r.triggerSubMenuAction,X=U===void 0?"hover":U,ee=r.builtinPlacements,J=r.itemIcon,oe=r.expandIcon,ue=r.overflowedIndicator,se=ue===void 0?"...":ue,Q=r.overflowedIndicatorPopupClassName,fe=r.getPopupContainer,de=r.onClick,ie=r.onOpenChange,re=r.onKeyDown;r.openAnimation,r.openTransitionName;var he=r._internalRenderMenuItem,ge=r._internalRenderSubMenuItem,Ne=r._internalComponents,Pe=Pt(r,iV),ve=l.useMemo(function(){return[P2(m,f,Li,Ne,a),P2(m,f,Li,{},a)]},[m,f,Ne]),$e=te(ve,2),Ee=$e[0],we=$e[1],Ae=l.useState(!1),Le=te(Ae,2),Ye=Le[0],Ke=Le[1],He=l.useRef(),Ue=FH(h),Me=v==="rtl",Se=en(O,{value:I,postState:function(wt){return wt||Li}}),Fe=te(Se,2),xe=Fe[0],Te=Fe[1],Oe=function(wt){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ut(){Te(wt),ie==null||ie(wt)}Ct?Jo.flushSync(Ut):Ut()},Ie=l.useState(xe),je=te(Ie,2),qe=je[0],ut=je[1],bt=l.useRef(!1),Ge=l.useMemo(function(){return(p==="inline"||p==="vertical")&&g?["vertical",g]:[p,!1]},[p,g]),tt=te(Ge,2),rt=tt[0],V=tt[1],ae=rt==="inline",me=l.useState(rt),Ce=te(me,2),pe=Ce[0],Re=Ce[1],W=l.useState(V),K=te(W,2),G=K[0],ce=K[1];l.useEffect(function(){Re(rt),ce(V),bt.current&&(ae?Te(qe):Oe(Li))},[rt,V]);var ye=l.useState(0),De=te(ye,2),Be=De[0],Ve=De[1],ke=Be>=Ee.length-1||pe!=="horizontal"||b;l.useEffect(function(){ae&&ut(xe)},[xe]),l.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var _e=zH(),We=_e.registerPath,Ze=_e.unregisterPath,st=_e.refreshOverflowKeys,$t=_e.isSubPathKey,Ot=_e.getKeyPath,ft=_e.getKeys,_t=_e.getSubPathKeys,Xe=l.useMemo(function(){return{registerPath:We,unregisterPath:Ze}},[We,Ze]),it=l.useMemo(function(){return{isSubPathKey:$t}},[$t]);l.useEffect(function(){st(ke?Li:Ee.slice(Be+1).map(function(Yt){return Yt.key}))},[Be,ke]);var xt=en(P||_&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:P}),dt=te(xt,2),mt=dt[0],lt=dt[1],It=au(function(Yt){lt(Yt)}),kt=au(function(){lt(void 0)});l.useImperativeHandle(t,function(){return{list:He.current,focus:function(wt){var Ct,Ut=ft(),gt=Qy(Ut,Ue),yt=gt.elements,Vt=gt.key2element,dn=gt.element2key,bn=sC(He.current,yt),Yn=mt??(bn[0]?dn.get(bn[0]):(Ct=Ee.find(function(Ft){return!Ft.props.disabled}))===null||Ct===void 0?void 0:Ct.key),kn=Vt.get(Yn);if(Yn&&kn){var Xn;kn==null||(Xn=kn.focus)===null||Xn===void 0||Xn.call(kn,wt)}}}});var ot=en(k||[],{value:T,postState:function(wt){return Array.isArray(wt)?wt:wt==null?Li:[wt]}}),Qe=te(ot,2),pt=Qe[0],Jt=Qe[1],ln=function(wt){if(R){var Ct=wt.key,Ut=pt.includes(Ct),gt;M?Ut?gt=pt.filter(function(Vt){return Vt!==Ct}):gt=[].concat(ze(pt),[Ct]):gt=[Ct],Jt(gt);var yt=q(q({},wt),{},{selectedKeys:gt});Ut?j==null||j(yt):z==null||z(yt)}!M&&xe.length&&pe!=="inline"&&Oe(Li)},Ht=au(function(Yt){de==null||de(nv(Yt)),ln(Yt)}),gn=au(function(Yt,wt){var Ct=xe.filter(function(gt){return gt!==Yt});if(wt)Ct.push(Yt);else if(pe!=="inline"){var Ut=_t(Yt);Ct=Ct.filter(function(gt){return!Ut.has(gt)})}ya(xe,Ct,!0)||Oe(Ct,!0)}),yn=function(wt,Ct){var Ut=Ct??!xe.includes(wt);gn(wt,Ut)},Dn=DH(pe,mt,Me,Ue,He,ft,Ot,lt,yn,re);l.useEffect(function(){Ke(!0)},[]);var qn=l.useMemo(function(){return{_internalRenderMenuItem:he,_internalRenderSubMenuItem:ge}},[he,ge]),tr=pe!=="horizontal"||b?Ee:Ee.map(function(Yt,wt){return l.createElement(id,{key:Yt.key,overflowDisabled:wt>Be},Yt)}),Gn=l.createElement(Xo,be({id:h,ref:He,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Nd,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(pe),c,B(B({},"".concat(a,"-inline-collapsed"),G),"".concat(a,"-rtl"),Me),i),dir:v,style:s,role:"menu",tabIndex:d,data:tr,renderRawItem:function(wt){return wt},renderRawRest:function(wt){var Ct=wt.length,Ut=Ct?Ee.slice(-Ct):null;return l.createElement(Oh,{eventKey:Jy,title:se,disabled:ke,internalPopupClose:Ct===0,popupClassName:Q},Ut)},maxCount:pe!=="horizontal"||b?Xo.INVALIDATE:Xo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wt){Ve(wt)},onKeyDown:Dn},Pe));return l.createElement(lC.Provider,{value:qn},l.createElement(TP.Provider,{value:Ue},l.createElement(id,{prefixCls:a,rootClassName:i,mode:pe,openKeys:xe,rtl:Me,disabled:C,motion:Ye?A:null,defaultMotions:Ye?H:null,activeKey:mt,onActive:It,onInactive:kt,selectedKeys:pt,inlineIndent:F,subMenuOpenDelay:w,subMenuCloseDelay:x,forceSubMenuRender:E,builtinPlacements:ee,triggerSubMenuAction:X,getPopupContainer:fe,itemIcon:J,expandIcon:oe,onItemClick:Ht,onOpenChange:gn},l.createElement(LP.Provider,{value:it},Gn),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(jP.Provider,{value:Xe},we)))))}),hc=lV;hc.Item=Nd;hc.SubMenu=Oh;hc.ItemGroup=mC;hc.Divider=fC;var sV={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"},cV=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:sV}))},uV=l.forwardRef(cV);const WP=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),dV=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:i,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:s,lineHeight:Y(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},KP=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},UP=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],qP=Gt("Layout",dV,KP,{deprecatedTokens:UP}),fV=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:i,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:v,lightTriggerColor:h,lightTriggerBg:y,bodyBg:p}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:s,lineHeight:Y(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Y(m)} ${Y(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${Y(m)} 0 0 ${Y(m)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:h,background:y},[`${t}-zero-width-trigger`]:{color:h,background:y,border:`1px solid ${p}`,borderInlineStart:0}}}}},mV=Gt(["Layout","Sider"],fV,KP,{deprecatedTokens:UP});var vV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const M2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hV=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Ih=l.createContext({}),gV=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),GP=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:h,onCollapse:y,onBreakpoint:p}=e,g=vV(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=l.useContext(WP),[b,S]=l.useState("collapsed"in e?e.collapsed:i),[w,$]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const x=(J,oe)=>{"collapsed"in e||S(J),y==null||y(J,oe)},{getPrefixCls:E,direction:O}=l.useContext(Et),I=E("layout-sider",n),[P,_,D]=mV(I),R=l.useRef(null);R.current=J=>{$(J.matches),p==null||p(J.matches),b!==J.matches&&x(J.matches,"responsive")},l.useEffect(()=>{function J(ue){var se;return(se=R.current)===null||se===void 0?void 0:se.call(R,ue)}let oe;return typeof(window==null?void 0:window.matchMedia)<"u"&&h&&h in M2&&(oe=window.matchMedia(`screen and (max-width: ${M2[h]})`),bP(oe,J),J(oe)),()=>{CP(oe,J)}},[h]),l.useEffect(()=>{const J=gV("ant-sider-");return C.addSider(J),()=>C.removeSider(J)},[]);const N=()=>{x(!b,"clickTrigger")},M=un(g,["collapsed"]),k=b?m:f,T=hV(k)?`${k}px`:String(k),z=Number.parseFloat(String(m||0))===0?l.createElement("span",{onClick:N,className:Z(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${d?"right":"left"}`),style:v},o||l.createElement(uV,null)):null,j=O==="rtl"==!d,A={expanded:j?l.createElement(Us,null):l.createElement(ad,null),collapsed:j?l.createElement(ad,null):l.createElement(Us,null)}[b?"collapsed":"expanded"],H=o!==null?z||l.createElement("div",{className:`${I}-trigger`,onClick:N,style:{width:T}},o||A):null,U=Object.assign(Object.assign({},c),{flex:`0 0 ${T}`,maxWidth:T,minWidth:T,width:T}),X=Z(I,`${I}-${s}`,{[`${I}-collapsed`]:!!b,[`${I}-has-trigger`]:u&&o!==null&&!z,[`${I}-below`]:!!w,[`${I}-zero-width`]:Number.parseFloat(T)===0},r,_,D),ee=l.useMemo(()=>({siderCollapsed:b}),[b]);return P(l.createElement(Ih.Provider,{value:ee},l.createElement("aside",Object.assign({className:X},M,{style:U,ref:t}),l.createElement("div",{className:`${I}-children`},a),u||w&&z?H:null)))});var pV={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"},yV=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:pV}))},vC=l.forwardRef(yV);const rv=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var bV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YP=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=bV(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=l.useContext(Et),i=a("menu",t),s=Z({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(fC,Object.assign({className:s},o))},XP=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=l.useContext(rv),v=b=>{const S=r==null?void 0:r[0],w=l.createElement("span",{className:Z(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||l.isValidElement(r)&&r.type==="span")&&r&&b&&u&&typeof S=="string"?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:h}=l.useContext(Ih);let y=a;typeof a>"u"?y=u?r:"":a===!1&&(y="");const p={title:y};!h&&!m&&(p.title=null,p.open=!1);const g=$r(r).length;let C=l.createElement(Nd,Object.assign({},un(e,["title","icon","danger"]),{className:Z({[`${c}-item-danger`]:i,[`${c}-item-only-child`]:(o?g+1:g)===1},n),title:typeof a=="string"?a:void 0}),Wr(o,{className:Z(l.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),v(m));return f||(C=l.createElement(xr,Object.assign({},p,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var CV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ov=l.createContext(null),QP=l.forwardRef((e,t)=>{const{children:n}=e,r=CV(e,["children"]),o=l.useContext(ov),a=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=y5(n),s=Wa(t,i?Ti(n):null);return l.createElement(ov.Provider,{value:a},l.createElement(Sa,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),SV=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Y(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
243
+ > ${t}-item-active,
244
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},xV=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
245
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Y(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Y(t)})`}}}}),N2=e=>na(e),_2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:s,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:v,motionEaseInOut:h,motionEaseOut:y,itemPaddingInline:p,motionDurationMid:g,itemHoverColor:C,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:I,popupBg:P,itemHoverBg:_,itemActiveBg:D,menuSubMenuBg:R,horizontalItemSelectedColor:N,horizontalItemSelectedBg:M,horizontalItemBorderRadius:k,horizontalItemHoverBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},N2(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},N2(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${Y(d)} solid transparent`,transition:`border-color ${v} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:d,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:d,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Y(m)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Y(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${y}`,`opacity ${g} ${y}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(",")}}}}}},T2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Y(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
246
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Y(n)},[`${t}-item-group-list ${t}-submenu-title,
247
+ ${t}-submenu-title`]:{paddingInlineEnd:d}}},wV=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:h,collapsedWidth:y,collapsedIconSize:p}=e,g={height:r,lineHeight:Y(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},T2(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},T2(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Y(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:y,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
248
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
249
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
250
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Y(e.calc(p).div(2).equal())} - ${Y(u)})`,textOverflow:"clip",[`
251
+ ${t}-submenu-arrow,
252
+ ${t}-submenu-expand-icon
253
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:Y(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ta),{paddingInline:v})}}]},D2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},oc()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},k2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Y(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Y(i)})`}}}}},$V=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:h,menuArrowOffset:y,lineType:p,groupTitleLineHeight:g,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},Ei()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),Ei()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Y(s)} ${Y(c)}`,fontSize:C,lineHeight:g,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),D2(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Y(e.calc(r).mul(2).equal())} ${Y(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},D2(e)),k2(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),k2(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
254
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Y(y)})`},"&::after":{transform:`rotate(45deg) translateX(${Y(e.calc(y).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Y(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Y(e.calc(y).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Y(y)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},EV=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:p,controlHeightLG:g,lineHeight:C,colorBgElevated:b,marginXXS:S,padding:w,fontSize:$,controlHeightSM:x,fontSizeLG:E,colorTextLightSolid:O,colorErrorHover:I}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,R=new Kt(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:v,activeBarBorderWidth:_,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:C,collapsedWidth:g*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${g*1.15}px`,iconSize:$,iconMarginInlineEnd:x-$,collapsedIconSize:E,groupTitleFontSize:$,darkItemDisabledColor:new Kt(O).setA(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:O,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${_}px)`:`calc(100% - ${D*2}px)`}},OV=(e,t=e,n=!0)=>Gt("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:h,darkItemHoverBg:y,darkGroupTitleColor:p,darkItemHoverColor:g,darkItemDisabledColor:C,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:$,darkPopupBg:x}=o,E=o.calc(s).div(7).mul(5).equal(),O=At(o,{menuArrowSize:E,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:$}),I=At(O,{itemColor:c,itemHoverColor:g,groupTitleColor:p,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:x,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:y,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:w,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[$V(O),SV(O),wV(O),_2(O,"light"),_2(I,"dark"),xV(O),U1(O),ba(O,"slide-up"),ba(O,"slide-down"),$d(O,"zoom-big")]},EV,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),JP=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=l.useContext(rv),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=vc();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${s}-title-content`},o);else{const h=l.isValidElement(o)&&o.type==="span";f=l.createElement(l.Fragment,null,Wr(r,{className:Z(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),h?o:l.createElement("span",{className:`${s}-title-content`},o))}const m=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[v]=Rl("Menu");return l.createElement(rv.Provider,{value:m},l.createElement(Oh,Object.assign({},un(e,["icon"]),{title:f,popupClassName:Z(s,n,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:v},e.popupStyle)})))};var IV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fp(e){return e===null||e===!1}const RV={item:XP,submenu:JP,divider:YP},PV=l.forwardRef((e,t)=>{var n;const r=l.useContext(ov),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:s,menu:c}=l.useContext(Et),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:p,siderCollapsed:g,rootClassName:C,mode:b,selectable:S,onClick:w,overflowedIndicatorPopupClassName:$}=e,x=IV(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),E=un(x,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:b});const O=zt((...F)=>{var A;w==null||w.apply(void 0,F),(A=o.onClick)===null||A===void 0||A.call(o)}),I=o.mode||b,P=S??o.selectable,_=p??g,D={horizontal:{motionName:`${u}-slide-up`},inline:ev(u),other:{motionName:`${u}-zoom-big`}},R=a("menu",d||o.prefixCls),N=Un(R),[M,k,T]=OV(R,N,!r),z=Z(`${R}-${v}`,c==null?void 0:c.className,f),j=l.useMemo(()=>{var F,A;if(typeof h=="function"||fp(h))return h||null;if(typeof o.expandIcon=="function"||fp(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||fp(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const H=(F=h??(o==null?void 0:o.expandIcon))!==null&&F!==void 0?F:c==null?void 0:c.expandIcon;return Wr(H,{className:Z(`${R}-submenu-expand-icon`,l.isValidElement(H)?(A=H.props)===null||A===void 0?void 0:A.className:void 0)})},[h,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,R]),L=l.useMemo(()=>({prefixCls:R,inlineCollapsed:_||!1,direction:s,firstLevel:!0,theme:v,mode:I,disableMenuItemTitleTooltip:y}),[R,_,s,y,v]);return M(l.createElement(ov.Provider,{value:null},l.createElement(rv.Provider,{value:L},l.createElement(hc,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(vC,null),overflowedIndicatorPopupClassName:Z(R,`${R}-${v}`,$),mode:I,selectable:P,onClick:O},E,{inlineCollapsed:_,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:z,prefixCls:R,direction:s,defaultMotions:D,expandIcon:j,ref:t,rootClassName:Z(C,k,o.rootClassName,T,N),_internalComponents:RV})))))}),Dl=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Ih);return l.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),l.createElement(PV,Object.assign({ref:n},e,r))});Dl.Item=XP;Dl.SubMenu=JP;Dl.Divider=YP;Dl.ItemGroup=mC;const MV=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},NV=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:y}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
255
+ &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
256
+ &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
257
+ &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
258
+ &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
259
+ &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:oh},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
260
+ &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
261
+ &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
262
+ &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
263
+ &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
264
+ &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ih},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
265
+ &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
266
+ &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ah},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
267
+ &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
268
+ &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:lh}}},iC(e,y,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},tn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ra(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Y(u)} ${Y(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Y(u)} ${Y(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ra(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Y(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Y(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ba(e,"slide-up"),ba(e,"slide-down"),qs(e,"move-up"),qs(e,"move-down"),$d(e,"zoom-big")]]},_V=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},$h({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),wh(e)),TV=Gt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=At(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[NV(a),MV(a)]},_V,{resetStyle:!1}),Rh=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:a,trigger:i,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:v,open:h,onOpenChange:y,visible:p,onVisibleChange:g,mouseEnterDelay:C=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:S=!0,placement:w="",overlay:$,transitionName:x,destroyOnHidden:E,destroyPopupOnHide:O}=e,{getPopupContainer:I,getPrefixCls:P,direction:_,dropdown:D}=l.useContext(Et),R=u||c;Di();const N=l.useMemo(()=>{const he=P();return x!==void 0?x:w.includes("top")?`${he}-slide-down`:`${he}-slide-up`},[P,w,x]),M=l.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:_==="rtl"?"bottomRight":"bottomLeft",[w,_]),k=P("dropdown",o),T=Un(k),[z,j,L]=TV(k,T),[,F]=Ir(),A=l.Children.only(OH(a)?l.createElement("span",null,a):a),H=Wr(A,{className:Z(`${k}-trigger`,{[`${k}-rtl`]:_==="rtl"},A.props.className),disabled:(t=A.props.disabled)!==null&&t!==void 0?t:s}),U=s?[]:i,X=!!(U!=null&&U.includes("contextMenu")),[ee,J]=en(!1,{value:h??p}),oe=zt(he=>{y==null||y(he,{source:"trigger"}),g==null||g(he),J(he)}),ue=Z(f,m,j,L,T,D==null?void 0:D.className,{[`${k}-rtl`]:_==="rtl"}),se=$P({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),Q=zt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(y==null||y(!1,{source:"menu"}),J(!1))}),fe=()=>{let he;return n!=null&&n.items?he=l.createElement(Dl,Object.assign({},n)):typeof $=="function"?he=$():he=$,R&&(he=R(he)),he=l.Children.only(typeof he=="string"?l.createElement("span",null,he):he),l.createElement(QP,{prefixCls:`${k}-menu`,rootClassName:Z(L,T),expandIcon:l.createElement("span",{className:`${k}-menu-submenu-arrow`},_==="rtl"?l.createElement(ad,{className:`${k}-menu-submenu-arrow-icon`}):l.createElement(Us,{className:`${k}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:({mode:ge})=>{}},he)},[de,ie]=Rl("Dropdown",v==null?void 0:v.zIndex);let re=l.createElement(_P,Object.assign({alignPoint:X},un(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:b,visible:ee,builtinPlacements:se,arrow:!!r,overlayClassName:ue,prefixCls:k,getPopupContainer:d||I,transitionName:N,trigger:U,overlay:fe,placement:M,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),v),{zIndex:de}),autoDestroy:E??O}),H);return de&&(re=l.createElement(Zv.Provider,{value:ie},re)),z(re)},DV=gh(Rh,"align",void 0,"dropdown",e=>e),kV=e=>l.createElement(DV,Object.assign({},e),l.createElement("span",null));Rh._InternalPanelDoNotUseOrYouWillBeFired=kV;var ZP={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",c="hour",u="day",d="week",f="month",m="quarter",v="year",h="date",y="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var N=["th","st","nd","rd"],M=R%100;return"["+R+(N[(M-20)%10]||N[M]||N[0])+"]"}},b=function(R,N,M){var k=String(R);return!k||k.length>=N?R:""+Array(N+1-k.length).join(M)+R},S={s:b,z:function(R){var N=-R.utcOffset(),M=Math.abs(N),k=Math.floor(M/60),T=M%60;return(N<=0?"+":"-")+b(k,2,"0")+":"+b(T,2,"0")},m:function R(N,M){if(N.date()<M.date())return-R(M,N);var k=12*(M.year()-N.year())+(M.month()-N.month()),T=N.clone().add(k,f),z=M-T<0,j=N.clone().add(k+(z?-1:1),f);return+(-(k+(M-T)/(z?T-j:j-T))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:v,w:d,d:u,D:h,h:c,m:s,s:i,ms:a,Q:m}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},w="en",$={};$[w]=C;var x="$isDayjsObject",E=function(R){return R instanceof _||!(!R||!R[x])},O=function R(N,M,k){var T;if(!N)return w;if(typeof N=="string"){var z=N.toLowerCase();$[z]&&(T=z),M&&($[z]=M,T=z);var j=N.split("-");if(!T&&j.length>1)return R(j[0])}else{var L=N.name;$[L]=N,T=L}return!k&&T&&(w=T),T||!k&&w},I=function(R,N){if(E(R))return R.clone();var M=typeof N=="object"?N:{};return M.date=R,M.args=arguments,new _(M)},P=S;P.l=O,P.i=E,P.w=function(R,N){return I(R,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var _=function(){function R(M){this.$L=O(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[x]=!0}var N=R.prototype;return N.parse=function(M){this.$d=function(k){var T=k.date,z=k.utc;if(T===null)return new Date(NaN);if(P.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(p);if(j){var L=j[2]-1||0,F=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],L,j[3]||1,j[4]||0,j[5]||0,j[6]||0,F)):new Date(j[1],L,j[3]||1,j[4]||0,j[5]||0,j[6]||0,F)}}return new Date(T)}(M),this.init()},N.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},N.$utils=function(){return P},N.isValid=function(){return this.$d.toString()!==y},N.isSame=function(M,k){var T=I(M);return this.startOf(k)<=T&&T<=this.endOf(k)},N.isAfter=function(M,k){return I(M)<this.startOf(k)},N.isBefore=function(M,k){return this.endOf(k)<I(M)},N.$g=function(M,k,T){return P.u(M)?this[k]:this.set(T,M)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(M,k){var T=this,z=!!P.u(k)||k,j=P.p(M),L=function(oe,ue){var se=P.w(T.$u?Date.UTC(T.$y,ue,oe):new Date(T.$y,ue,oe),T);return z?se:se.endOf(u)},F=function(oe,ue){return P.w(T.toDate()[oe].apply(T.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ue)),T)},A=this.$W,H=this.$M,U=this.$D,X="set"+(this.$u?"UTC":"");switch(j){case v:return z?L(1,0):L(31,11);case f:return z?L(1,H):L(0,H+1);case d:var ee=this.$locale().weekStart||0,J=(A<ee?A+7:A)-ee;return L(z?U-J:U+(6-J),H);case u:case h:return F(X+"Hours",0);case c:return F(X+"Minutes",1);case s:return F(X+"Seconds",2);case i:return F(X+"Milliseconds",3);default:return this.clone()}},N.endOf=function(M){return this.startOf(M,!1)},N.$set=function(M,k){var T,z=P.p(M),j="set"+(this.$u?"UTC":""),L=(T={},T[u]=j+"Date",T[h]=j+"Date",T[f]=j+"Month",T[v]=j+"FullYear",T[c]=j+"Hours",T[s]=j+"Minutes",T[i]=j+"Seconds",T[a]=j+"Milliseconds",T)[z],F=z===u?this.$D+(k-this.$W):k;if(z===f||z===v){var A=this.clone().set(h,1);A.$d[L](F),A.init(),this.$d=A.set(h,Math.min(this.$D,A.daysInMonth())).$d}else L&&this.$d[L](F);return this.init(),this},N.set=function(M,k){return this.clone().$set(M,k)},N.get=function(M){return this[P.p(M)]()},N.add=function(M,k){var T,z=this;M=Number(M);var j=P.p(k),L=function(H){var U=I(z);return P.w(U.date(U.date()+Math.round(H*M)),z)};if(j===f)return this.set(f,this.$M+M);if(j===v)return this.set(v,this.$y+M);if(j===u)return L(1);if(j===d)return L(7);var F=(T={},T[s]=r,T[c]=o,T[i]=n,T)[j]||1,A=this.$d.getTime()+M*F;return P.w(A,this)},N.subtract=function(M,k){return this.add(-1*M,k)},N.format=function(M){var k=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var z=M||"YYYY-MM-DDTHH:mm:ssZ",j=P.z(this),L=this.$H,F=this.$m,A=this.$M,H=T.weekdays,U=T.months,X=T.meridiem,ee=function(ue,se,Q,fe){return ue&&(ue[se]||ue(k,z))||Q[se].slice(0,fe)},J=function(ue){return P.s(L%12||12,ue,"0")},oe=X||function(ue,se,Q){var fe=ue<12?"AM":"PM";return Q?fe.toLowerCase():fe};return z.replace(g,function(ue,se){return se||function(Q){switch(Q){case"YY":return String(k.$y).slice(-2);case"YYYY":return P.s(k.$y,4,"0");case"M":return A+1;case"MM":return P.s(A+1,2,"0");case"MMM":return ee(T.monthsShort,A,U,3);case"MMMM":return ee(U,A);case"D":return k.$D;case"DD":return P.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return ee(T.weekdaysMin,k.$W,H,2);case"ddd":return ee(T.weekdaysShort,k.$W,H,3);case"dddd":return H[k.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return oe(L,F,!0);case"A":return oe(L,F,!1);case"m":return String(F);case"mm":return P.s(F,2,"0");case"s":return String(k.$s);case"ss":return P.s(k.$s,2,"0");case"SSS":return P.s(k.$ms,3,"0");case"Z":return j}return null}(ue)||j.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(M,k,T){var z,j=this,L=P.p(k),F=I(M),A=(F.utcOffset()-this.utcOffset())*r,H=this-F,U=function(){return P.m(j,F)};switch(L){case v:z=U()/12;break;case f:z=U();break;case m:z=U()/3;break;case d:z=(H-A)/6048e5;break;case u:z=(H-A)/864e5;break;case c:z=H/o;break;case s:z=H/r;break;case i:z=H/n;break;default:z=H}return T?z:P.a(z)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return $[this.$L]},N.locale=function(M,k){if(!M)return this.$L;var T=this.clone(),z=O(M,k,!0);return z&&(T.$L=z),T},N.clone=function(){return P.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},R}(),D=_.prototype;return I.prototype=D,[["$ms",a],["$s",i],["$m",s],["$H",c],["$W",u],["$M",f],["$y",v],["$D",h]].forEach(function(R){D[R[1]]=function(N){return this.$g(N,R[0],R[1])}}),I.extend=function(R,N){return R.$i||(R(N,_,I),R.$i=!0),I},I.locale=O,I.isDayjs=E,I.unix=function(R){return I(1e3*R)},I.en=$[w],I.Ls=$,I.p={},I})})(ZP);var jV=ZP.exports;const Tr=ho(jV);var eM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,s=(i<a?i+7:i)-a;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}})})(eM);var zV=eM.exports;const LV=ho(zV);var tM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,m,v,h,y){var p=f.name?f:f.$locale(),g=i(p[m]),C=i(p[v]),b=g||C.map(function(w){return w.slice(0,h)});if(!y)return b;var S=p.weekStart;return b.map(function(w,$){return b[($+(S||0))%7]})},c=function(){return o.Ls[o.locale()]},u=function(f,m){return f.formats[m]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,y,p){return y||p.slice(1)})}(f.formats[m.toUpperCase()])},d=function(){var f=this;return{months:function(m){return m?m.format("MMMM"):s(f,"months")},monthsShort:function(m){return m?m.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):s(f,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return u(f.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(m){return u(f,m)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(c(),"months")},o.monthsShort=function(){return s(c(),"monthsShort","months",3)},o.weekdays=function(f){return s(c(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(c(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(c(),"weekdaysMin","weekdays",2,f)}}})})(tM);var FV=tM.exports;const AV=ho(FV);var nM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){var n="week",r="year";return function(o,a,i){var s=a.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(m,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(nM);var BV=nM.exports;const HV=ho(BV);var rM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(rM);var VV=rM.exports;const WV=ho(VV);var oM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(oM);var KV=oM.exports;const UV=ho(KV);var aM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(g){this[p]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var C=g.match(/([+-]|\d\d)/g),b=60*C[1]+(+C[2]||0);return b===0?0:C[0]==="+"?-b:b}(p)}],m=function(p){var g=c[p];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(p,g){var C,b=c.meridiem;if(b){for(var S=1;S<=24;S+=1)if(p.indexOf(b(S,0,g))>-1){C=S>12;break}}else C=p===(g?"pm":"PM");return C},h={A:[s,function(p){this.afternoon=v(p,!1)}],a:[s,function(p){this.afternoon=v(p,!0)}],Q:[o,function(p){this.month=3*(p-1)+1}],S:[o,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[s,function(p){var g=c.ordinal,C=p.match(/\d+/);if(this.day=C[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===p&&(this.day=b)}],w:[i,d("week")],ww:[a,d("week")],M:[i,d("month")],MM:[a,d("month")],MMM:[s,function(p){var g=m("months"),C=(m("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(p)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[s,function(p){var g=m("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function y(p){var g,C;g=p,C=c&&c.formats;for(var b=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,P,_){var D=_&&_.toUpperCase();return P||C[_]||n[_]||C[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,N,M){return N||M.slice(1)})})).match(r),S=b.length,w=0;w<S;w+=1){var $=b[w],x=h[$],E=x&&x[0],O=x&&x[1];b[w]=O?{regex:E,parser:O}:$.replace(/^\[|\]$/g,"")}return function(I){for(var P={},_=0,D=0;_<S;_+=1){var R=b[_];if(typeof R=="string")D+=R.length;else{var N=R.regex,M=R.parser,k=I.slice(D),T=N.exec(k)[0];M.call(P,T),I=I.replace(T,"")}}return function(z){var j=z.afternoon;if(j!==void 0){var L=z.hours;j?L<12&&(z.hours+=12):L===12&&(z.hours=0),delete z.afternoon}}(P),P}}return function(p,g,C){C.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var b=g.prototype,S=b.parse;b.parse=function(w){var $=w.date,x=w.utc,E=w.args;this.$u=x;var O=E[1];if(typeof O=="string"){var I=E[2]===!0,P=E[3]===!0,_=I||P,D=E[2];P&&(D=E[2]),c=this.$locale(),!I&&D&&(c=C.Ls[D]),this.$d=function(k,T,z,j){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*k);var L=y(T)(k),F=L.year,A=L.month,H=L.day,U=L.hours,X=L.minutes,ee=L.seconds,J=L.milliseconds,oe=L.zone,ue=L.week,se=new Date,Q=H||(F||A?1:se.getDate()),fe=F||se.getFullYear(),de=0;F&&!A||(de=A>0?A-1:se.getMonth());var ie,re=U||0,he=X||0,ge=ee||0,Ne=J||0;return oe?new Date(Date.UTC(fe,de,Q,re,he,ge,Ne+60*oe.offset*1e3)):z?new Date(Date.UTC(fe,de,Q,re,he,ge,Ne)):(ie=new Date(fe,de,Q,re,he,ge,Ne),ue&&(ie=j(ie).week(ue).toDate()),ie)}catch{return new Date("")}}($,O,x,C),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),_&&$!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var R=O.length,N=1;N<=R;N+=1){E[1]=O[N-1];var M=C.apply(this,E);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}N===R&&(this.$d=new Date(""))}else S.call(this,w)}}})})(aM);var qV=aM.exports;const GV=ho(qV);Tr.extend(GV);Tr.extend(UV);Tr.extend(LV);Tr.extend(AV);Tr.extend(HV);Tr.extend(WV);Tr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(a){var i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});var YV={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Fi=function(t){var n=YV[t];return n||t.split("_")[0]},XV={getNow:function(){var t=Tr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Tr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Tr().locale(Fi(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Fi(t)).weekday(0)},getWeek:function(t,n){return n.locale(Fi(t)).week()},getShortWeekDays:function(t){return Tr().locale(Fi(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Tr().locale(Fi(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Fi(t)).format(r)},parse:function(t,n,r){for(var o=Fi(t),a=0;a<r.length;a+=1){var i=r[a],s=n;if(i.includes("wo")||i.includes("Wo")){for(var c=s.split("-")[0],u=s.split("-")[1],d=Tr(c,"YYYY").startOf("year").locale(o),f=0;f<=52;f+=1){var m=d.add(f,"week");if(m.format("Wo")===u)return m}return null}var v=Tr(s,i,!0).locale(o);if(v.isValid())return v}return null}}};function QV(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var aa=l.createContext(null),JV={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function iM(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,s=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,f=d===void 0?JV:d,m=e.direction,v=e.visible,h=e.onClose,y=l.useContext(aa),p=y.prefixCls,g="".concat(p,"-dropdown"),C=QV(u,m==="rtl");return l.createElement(Md,{showAction:[],hideAction:["click"],popupPlacement:C,builtinPlacements:f,prefixCls:g,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:Z(r,B(B({},"".concat(g,"-range"),c),"".concat(g,"-rtl"),m==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(S){S||h()}},s)}function hC(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function kl(e){return e==null?[]:Array.isArray(e)?e:[e]}function wu(e,t,n){var r=ze(e);return r[t]=n,r}function Ph(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function lM(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function sM(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function cM(e){return Ph(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function gC(e,t,n,r){var o=l.useMemo(function(){return e||function(i,s){var c=i;return t&&s.type==="date"?t(c,s.today):n&&s.type==="month"?n(c,s.locale):s.originNode}},[e,n,t]),a=l.useCallback(function(i,s){return o(i,q(q({},s),{},{range:r}))},[o,r]);return a}function uM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),o=te(r,2),a=o[0],i=o[1],s=function(d,f){i(function(m){return wu(m,f,d)})},c=l.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[c,s]}function dM(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function ZV(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,y=e.cellQuarterFormat,p=e.dayFormat,g=e.cellDateFormat,C=dM(t,n,r,o,a);return q(q({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(C),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||C,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:y||"[Q]Q",cellDateFormat:g||p||"D"})}function fM(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return le.useMemo(function(){return ZV(e,n,r,o,a,i)},[e,n,r,o,a,i])}function Hc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var eW=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function tW(e){var t=Ph(e,eW),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=ht(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function nW(e){return e&&typeof e=="string"}function mM(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function vM(e,t,n,r,o){var a=t,i=n,s=r;if(!e&&!a&&!i&&!s&&!o)a=!0,i=!0,s=!0;else if(e){var c,u,d,f=[a,i,s].some(function(h){return h===!1}),m=[a,i,s].some(function(h){return h===!0}),v=f?!0:!m;a=(c=a)!==null&&c!==void 0?c:v,i=(u=i)!==null&&u!==void 0?u:v,s=(d=s)!==null&&d!==void 0?d:v}return[a,i,s,o]}function hM(e){var t=e.showTime,n=tW(e),r=te(n,2),o=r[0],a=r[1],i=t&&ht(t)==="object"?t:{},s=q(q({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,m=mM(u,d,f,c),v=vM(m,u,d,f,c),h=te(v,3);return u=h[0],d=h[1],f=h[2],[s,q(q({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,a]}function gM(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,s=lM(e,o,null),c=s,u=[t,n],d=0;d<u.length;d+=1){var f=kl(u[d])[0];if(nW(f)){c=f;break}}var m=i.showHour,v=i.showMinute,h=i.showSecond,y=i.showMillisecond,p=i.use12Hours,g=Hc(c,["a","A","LT","LLL","LTS"],p),C=mM(m,v,h,y);C||(m=Hc(c,["H","h","k","LT","LLL"]),v=Hc(c,["m","LT","LLL"]),h=Hc(c,["s","LTS"]),y=Hc(c,["SSS"]));var b=vM(C,m,v,h,y),S=te(b,3);m=S[0],v=S[1],h=S[2];var w=t||dM(m,v,h,y,g);return q(q({},i),{},{format:w,showHour:m,showMinute:v,showSecond:h,showMillisecond:y,use12Hours:g})}return null}function rW(e,t,n){if(t===!1)return null;var r=t&&ht(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var mp=7;function ki(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function eb(e,t,n){return ki(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function bl(e,t,n){return ki(t,n,function(){return e.getYear(t)===e.getYear(n)})}function j2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function oW(e,t,n){return ki(t,n,function(){return bl(e,t,n)&&j2(e,t)===j2(e,n)})}function pC(e,t,n){return ki(t,n,function(){return bl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function yC(e,t,n){return ki(t,n,function(){return bl(e,t,n)&&pC(e,t,n)&&e.getDate(t)===e.getDate(n)})}function pM(e,t,n){return ki(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function yM(e,t,n){return ki(t,n,function(){return yC(e,t,n)&&pM(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function iu(e,t,n,r){return ki(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return bl(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function kr(e,t,n,r,o){switch(o){case"date":return yC(e,n,r);case"week":return iu(e,t.locale,n,r);case"month":return pC(e,n,r);case"quarter":return oW(e,n,r);case"year":return bl(e,n,r);case"decade":return eb(e,n,r);case"time":return pM(e,n,r);default:return yM(e,n,r)}}function Mh(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function xf(e,t,n,r,o){return kr(e,t,n,r,o)?!0:e.isAfter(n,r)}function aW(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function or(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function av(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,s){n?r=e[i](r,e[o[s]](n)):r=e[i](r,0)}),r}function iW(e,t,n,r,o){var a=zt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!kr(e,t,r,i,s.type)||o&&e.isAfter(i,o)&&!kr(e,t,o,i,s.type))});return a}function lW(e,t,n){return l.useMemo(function(){var r=lM(e,t,n),o=kl(r),a=o[0],i=ht(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function sW(e,t,n){return typeof e[0]=="function"||n?!0:t}function cW(e,t,n,r){var o=zt(function(a,i){var s=q({type:t},i);if(delete s.activeIndex,!e.isValidate(a)||n&&n(a,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,a,u,{from:s.from}))||{},f=d.disabledHours,m=d.disabledMinutes,v=d.disabledSeconds,h=d.disabledMilliseconds,y=r.disabledHours,p=r.disabledMinutes,g=r.disabledSeconds,C=f||y,b=m||p,S=v||g,w=e.getHour(a),$=e.getMinute(a),x=e.getSecond(a),E=e.getMillisecond(a);if(C&&C().includes(w)||b&&b(w).includes($)||S&&S(w,$).includes(x)||h&&h(w,$,x).includes(E))return!0}return!1});return o}function wf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&kl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function bM(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,m=e.order,v=m===void 0?!0:m,h=e.components,y=h===void 0?{}:h,p=e.inputRender,g=e.allowClear,C=e.clearIcon,b=e.needConfirm,S=e.multiple,w=e.format,$=e.inputReadOnly,x=e.disabledDate,E=e.minDate,O=e.maxDate,I=e.showTime,P=e.value,_=e.defaultValue,D=e.pickerValue,R=e.defaultPickerValue,N=wf(P),M=wf(_),k=wf(D),T=wf(R),z=a==="date"&&I?"datetime":a,j=z==="time"||z==="datetime",L=j||S,F=b??j,A=hM(e),H=te(A,4),U=H[0],X=H[1],ee=H[2],J=H[3],oe=fM(r,X),ue=l.useMemo(function(){return gM(z,ee,J,U,oe)},[z,ee,J,U,oe]),se=l.useMemo(function(){return q(q({},e),{},{prefixCls:s,locale:oe,picker:a,styles:u,classNames:f,order:v,components:q({input:p},y),clearIcon:rW(s,g,C),showTime:ue,value:N,defaultValue:M,pickerValue:k,defaultPickerValue:T},t==null?void 0:t())},[e]),Q=lW(z,oe,w),fe=te(Q,2),de=fe[0],ie=fe[1],re=sW(de,$,S),he=iW(n,r,x,E,O),ge=cW(n,a,he,ue),Ne=l.useMemo(function(){return q(q({},se),{},{needConfirm:F,inputReadOnly:re,disabledDate:he})},[se,F,re,he]);return[Ne,z,L,de,ie,ge]}function uW(e,t,n){var r=en(t,{value:e}),o=te(r,2),a=o[0],i=o[1],s=le.useRef(e),c=le.useRef(),u=function(){jt.cancel(c.current)},d=zt(function(){i(s.current),n&&a!==s.current&&n(s.current)}),f=zt(function(m,v){u(),s.current=m,m||v?d():c.current=jt(d)});return le.useEffect(function(){return u},[]),[a,f]}function CM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=uW(o,t||!1,r),i=te(a,2),s=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function SM(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var a;(a=t.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function xM(e,t){return l.useMemo(function(){return e||(t?(Sn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=te(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function bC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,sl(function(){if(e)r.current(e);else{var o=jt(function(){r.current(e)},n);return function(){jt.cancel(o)}}},[e])}function wM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),o=te(r,2),a=o[0],i=o[1],s=l.useState(!1),c=te(s,2),u=c[0],d=c[1],f=l.useRef([]),m=l.useRef(null),v=l.useRef(null),h=function(S){m.current=S},y=function(S){return m.current===S},p=function(S){d(S)},g=function(S){return S&&(v.current=S),v.current},C=function(S){var w=f.current,$=new Set(w.filter(function(E){return S[E]||t[E]})),x=w[w.length-1]===0?1:0;return $.size>=2||e[x]?null:x};return bC(u||n,function(){u||(f.current=[],h(null))}),l.useEffect(function(){u&&f.current.push(a)},[u,a]),[u,p,g,a,i,C,f.current,h,y]}function dW(e,t,n,r,o,a){var i=n[n.length-1],s=function(u,d){var f=te(e,2),m=f[0],v=f[1],h=q(q({},d),{},{from:sM(e,n)});return i===1&&t[0]&&m&&!kr(r,o,m,u,h.type)&&r.isAfter(m,u)||i===0&&t[1]&&v&&!kr(r,o,v,u,h.type)&&r.isAfter(u,v)?!0:a==null?void 0:a(u,h)};return s}function lu(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var vp=[];function $M(e,t,n,r,o,a,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:vp,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:vp,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:vp,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=i==="time",y=a||0,p=function(k){var T=e.getNow();return h&&(T=av(e,T)),c[k]||n[k]||T},g=te(u,2),C=g[0],b=g[1],S=en(function(){return p(0)},{value:C}),w=te(S,2),$=w[0],x=w[1],E=en(function(){return p(1)},{value:b}),O=te(E,2),I=O[0],P=O[1],_=l.useMemo(function(){var M=[$,I][y];return h?M:av(e,M,d[y])},[h,$,I,y,e,d]),D=function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[x,P][y];z(k);var j=[$,I];j[y]=k,f&&(!kr(e,t,$,j[0],i)||!kr(e,t,I,j[1],i))&&f(j,{source:T,range:y===1?"end":"start",mode:r})},R=function(k,T){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},j=z[i];if(j&&!kr(e,t,k,T,j))return lu(e,i,T,-1);if(i==="year"&&k){var L=Math.floor(e.getYear(k)/10),F=Math.floor(e.getYear(T)/10);if(L!==F)return lu(e,i,T,-1)}}return T},N=l.useRef(null);return Dt(function(){if(o&&!c[y]){var M=h?null:e.getNow();if(N.current!==null&&N.current!==y?M=[$,I][y^1]:n[y]?M=y===0?n[0]:R(n[0],n[1]):n[y^1]&&(M=n[y^1]),M){m&&e.isAfter(m,M)&&(M=m);var k=s?lu(e,i,M,1):M;v&&e.isAfter(k,v)&&(M=s?lu(e,i,v,-1):v),D(M,"reset")}}},[o,y,n[y]]),l.useEffect(function(){o?N.current=y:N.current=null},[o,y]),Dt(function(){o&&c&&c[y]&&D(c[y],"reset")},[o,y]),[_,D]}function EM(e,t){var n=l.useRef(e),r=l.useState({}),o=te(r,2),a=o[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,a({})};return[i,s,i(!0)]}var fW=[];function OM(e,t,n){var r=function(i){return i.map(function(s){return or(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d<c;d+=1){var f=i[d]||null,m=s[d]||null;if(f!==m&&!yM(e,f,m)){u=d;break}}return[u<0,u!==0]};return[r,o]}function IM(e,t){return ze(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function mW(e){var t=EM(e),n=te(t,2),r=n[0],o=n[1],a=zt(function(){o(e)});return l.useEffect(function(){a()},[e]),[r,o]}function RM(e,t,n,r,o,a,i,s,c){var u=en(a,{value:i}),d=te(u,2),f=d[0],m=d[1],v=f||fW,h=mW(v),y=te(h,2),p=y[0],g=y[1],C=OM(e,t,n),b=te(C,2),S=b[0],w=b[1],$=zt(function(E){var O=ze(E);if(r)for(var I=0;I<2;I+=1)O[I]=O[I]||null;else o&&(O=IM(O.filter(function(M){return M}),e));var P=w(p(),O),_=te(P,2),D=_[0],R=_[1];if(!D&&(g(O),s)){var N=S(O);s(O,N,{range:R?"end":"start"})}}),x=function(){c&&c(p())};return[v,m,p,$,x]}function PM(e,t,n,r,o,a,i,s,c,u){var d=e.generateConfig,f=e.locale,m=e.picker,v=e.onChange,h=e.allowEmpty,y=e.order,p=a.some(function(D){return D})?!1:y,g=OM(d,f,i),C=te(g,2),b=C[0],S=C[1],w=EM(t),$=te(w,2),x=$[0],E=$[1],O=zt(function(){E(t)});l.useEffect(function(){O()},[t]);var I=zt(function(D){var R=D===null,N=ze(D||x());if(R)for(var M=Math.max(a.length,N.length),k=0;k<M;k+=1)a[k]||(N[k]=null);p&&N[0]&&N[1]&&(N=IM(N,d)),o(N);var T=N,z=te(T,2),j=z[0],L=z[1],F=!j,A=!L,H=h?(!F||h[0])&&(!A||h[1]):!0,U=!y||F||A||kr(d,f,j,L,m)||d.isAfter(L,j),X=(a[0]||!j||!u(j,{activeIndex:0}))&&(a[1]||!L||!u(L,{from:j,activeIndex:1})),ee=R||H&&U&&X;if(ee){n(N);var J=S(N,t),oe=te(J,1),ue=oe[0];v&&!ue&&v(R&&N.every(function(se){return!se})?null:N,b(N))}return ee}),P=zt(function(D,R){var N=wu(x(),D,r()[D]);E(N),R&&I()}),_=!s&&!c;return bC(!_,function(){_&&(I(),o(t),O())},2),[P,I]}function MM(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function vW(e,t,n,r,o,a){var i=e;function s(f,m,v){var h=a[f](i),y=v.find(function(b){return b.value===h});if(!y||y.disabled){var p=v.filter(function(b){return!b.disabled}),g=ze(p).reverse(),C=g.find(function(b){return b.value<=h})||p[0];C&&(h=C.value,i=a[m](i,h))}return h}var c=s("getHour","setHour",t()),u=s("getMinute","setMinute",n(c)),d=s("getSecond","setSecond",r(c,u));return s("getMillisecond","setMillisecond",o(c,u,d)),i}function $f(){return[]}function Ef(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=o.includes(c);(!u||!r)&&i.push({label:hC(c,a),value:c,disabled:u})}return i}function CC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,y=r.disabledHours,p=r.disabledMinutes,g=r.disabledSeconds,C=l.useMemo(function(){return n||e.getNow()},[n,e]),b=l.useCallback(function(T){var z=(h==null?void 0:h(T))||{};return[z.disabledHours||y||$f,z.disabledMinutes||p||$f,z.disabledSeconds||g||$f,z.disabledMilliseconds||$f]},[h,y,p,g]),S=l.useMemo(function(){return b(C)},[C,b]),w=te(S,4),$=w[0],x=w[1],E=w[2],O=w[3],I=l.useCallback(function(T,z,j,L){var F=Ef(0,23,i,v,T()),A=o?F.map(function(ee){return q(q({},ee),{},{label:hC(ee.value%12||12,2)})}):F,H=function(J){return Ef(0,59,c,v,z(J))},U=function(J,oe){return Ef(0,59,d,v,j(J,oe))},X=function(J,oe,ue){return Ef(0,999,m,v,L(J,oe,ue),3)};return[A,H,U,X]},[v,i,o,m,c,d]),P=l.useMemo(function(){return I($,x,E,O)},[I,$,x,E,O]),_=te(P,4),D=_[0],R=_[1],N=_[2],M=_[3],k=function(z,j){var L=function(){return D},F=R,A=N,H=M;if(j){var U=b(j),X=te(U,4),ee=X[0],J=X[1],oe=X[2],ue=X[3],se=I(ee,J,oe,ue),Q=te(se,4),fe=Q[0],de=Q[1],ie=Q[2],re=Q[3];L=function(){return fe},F=de,A=ie,H=re}var he=vW(z,L,F,A,H,e);return he};return[k,D,R,N,M]}function hW(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=l.useContext(aa),v=m.prefixCls,h=m.locale,y=m.button,p=y===void 0?"button":y,g=d.getNow(),C=CC(d,a,g),b=te(C,1),S=b[0],w=r==null?void 0:r(t),$=f(g,{type:t}),x=function(){if(!$){var R=S(g);s(R)}},E="".concat(v,"-now"),O="".concat(E,"-btn"),I=o&&l.createElement("li",{className:E},l.createElement("a",{className:Z(O,$&&"".concat(O,"-disabled")),"aria-disabled":$,onClick:x},n==="date"?h.today:h.now)),P=u&&l.createElement("li",{className:"".concat(v,"-ok")},l.createElement(p,{disabled:c,onClick:i},h.ok)),_=(I||P)&&l.createElement("ul",{className:"".concat(v,"-ranges")},I,P);return!w&&!_?null:l.createElement("div",{className:"".concat(v,"-footer")},w&&l.createElement("div",{className:"".concat(v,"-footer-extra")},w),_)}function NM(e,t,n){function r(o,a){var i=o.findIndex(function(c){return kr(e,t,c,a,n)});if(i===-1)return[].concat(ze(o),[a]);var s=ze(o);return s.splice(i,1),s}return r}var jl=l.createContext(null);function Nh(){return l.useContext(jl)}function gc(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,v=e.pickerValue,h=e.onSelect,y=e.prevIcon,p=e.nextIcon,g=e.superPrevIcon,C=e.superNextIcon,b=r.getNow(),S={now:b,values:m,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:y,nextIcon:p,superPrevIcon:g,superNextIcon:C};return[S,b]}var Si=l.createContext({});function _d(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,v=e.disabledDate,h=Nh(),y=h.prefixCls,p=h.panelType,g=h.now,C=h.disabledDate,b=h.cellRender,S=h.onHover,w=h.hoverValue,$=h.hoverRangeValue,x=h.generateConfig,E=h.values,O=h.locale,I=h.onSelect,P=v||C,_="".concat(y,"-cell"),D=l.useContext(Si),R=D.onCellDblClick,N=function(A){return E.some(function(H){return H&&kr(x,O,A,H,p)})},M=[],k=0;k<t;k+=1){for(var T=[],z=void 0,j=function(){var A=k*n+L,H=o(r,A),U=P==null?void 0:P(H,{type:p});L===0&&(z=H,a&&T.push(a(z)));var X=!1,ee=!1,J=!1;if(m&&$){var oe=te($,2),ue=oe[0],se=oe[1];X=Mh(x,ue,se,H),ee=kr(x,O,H,ue,p),J=kr(x,O,H,se,p)}var Q=s?or(H,{locale:O,format:s,generateConfig:x}):void 0,fe=l.createElement("div",{className:"".concat(_,"-inner")},c(H));T.push(l.createElement("td",{key:L,title:Q,className:Z(_,q(B(B(B(B(B(B({},"".concat(_,"-disabled"),U),"".concat(_,"-hover"),(w||[]).some(function(de){return kr(x,O,H,de,p)})),"".concat(_,"-in-range"),X&&!ee&&!J),"".concat(_,"-range-start"),ee),"".concat(_,"-range-end"),J),"".concat(y,"-cell-selected"),!$&&p!=="week"&&N(H)),u(H))),onClick:function(){U||I(H)},onDoubleClick:function(){!U&&R&&R()},onMouseEnter:function(){U||S==null||S(H)},onMouseLeave:function(){U||S==null||S(null)}},b?b(H,{prefixCls:y,originNode:fe,today:g,type:p,locale:O}):fe))},L=0;L<n;L+=1)j();M.push(l.createElement("tr",{key:k,className:i==null?void 0:i(z)},T))}return l.createElement("div",{className:"".concat(y,"-body")},l.createElement("table",{className:"".concat(y,"-content")},d&&l.createElement("thead",null,l.createElement("tr",null,d)),l.createElement("tbody",null,M)))}var Of={visibility:"hidden"};function pc(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,s=Nh(),c=s.prefixCls,u=s.prevIcon,d=u===void 0?"‹":u,f=s.nextIcon,m=f===void 0?"›":f,v=s.superPrevIcon,h=v===void 0?"«":v,y=s.superNextIcon,p=y===void 0?"»":y,g=s.minDate,C=s.maxDate,b=s.generateConfig,S=s.locale,w=s.pickerValue,$=s.panelType,x="".concat(c,"-header"),E=l.useContext(Si),O=E.hidePrev,I=E.hideNext,P=E.hideHeader,_=l.useMemo(function(){if(!g||!t||!a)return!1;var F=a(t(-1,w));return!xf(b,S,F,g,$)},[g,t,w,a,b,S,$]),D=l.useMemo(function(){if(!g||!n||!a)return!1;var F=a(n(-1,w));return!xf(b,S,F,g,$)},[g,n,w,a,b,S,$]),R=l.useMemo(function(){if(!C||!t||!o)return!1;var F=o(t(1,w));return!xf(b,S,C,F,$)},[C,t,w,o,b,S,$]),N=l.useMemo(function(){if(!C||!n||!o)return!1;var F=o(n(1,w));return!xf(b,S,C,F,$)},[C,n,w,o,b,S,$]),M=function(A){t&&r(t(A,w))},k=function(A){n&&r(n(A,w))};if(P)return null;var T="".concat(x,"-prev-btn"),z="".concat(x,"-next-btn"),j="".concat(x,"-super-prev-btn"),L="".concat(x,"-super-next-btn");return l.createElement("div",{className:x},n&&l.createElement("button",{type:"button","aria-label":S.previousYear,onClick:function(){return k(-1)},tabIndex:-1,className:Z(j,D&&"".concat(j,"-disabled")),disabled:D,style:O?Of:{}},h),t&&l.createElement("button",{type:"button","aria-label":S.previousMonth,onClick:function(){return M(-1)},tabIndex:-1,className:Z(T,_&&"".concat(T,"-disabled")),disabled:_,style:O?Of:{}},d),l.createElement("div",{className:"".concat(x,"-view")},i),t&&l.createElement("button",{type:"button","aria-label":S.nextMonth,onClick:function(){return M(1)},tabIndex:-1,className:Z(z,R&&"".concat(z,"-disabled")),disabled:R,style:I?Of:{}},m),n&&l.createElement("button",{type:"button","aria-label":S.nextYear,onClick:function(){return k(1)},tabIndex:-1,className:Z(L,N&&"".concat(L,"-disabled")),disabled:N,style:I?Of:{}},p))}function _h(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=u===void 0?"date":u,f=e.disabledDate,m=e.onSelect,v=e.onHover,h=e.showWeek,y="".concat(t,"-").concat(r,"-panel"),p="".concat(t,"-cell"),g=d==="week",C=gc(e,d),b=te(C,2),S=b[0],w=b[1],$=a.locale.getWeekFirstDay(o.locale),x=a.setDate(i,1),E=aW(o.locale,a,x),O=a.getMonth(i),I=h===void 0?g:h,P=I?function(F){var A=f==null?void 0:f(F,{type:"week"});return l.createElement("td",{key:"week",className:Z(p,"".concat(p,"-week"),B({},"".concat(p,"-disabled"),A)),onClick:function(){A||m(F)},onMouseEnter:function(){A||v==null||v(F)},onMouseLeave:function(){A||v==null||v(null)}},l.createElement("div",{className:"".concat(p,"-inner")},a.locale.getWeek(o.locale,F)))}:null,_=[],D=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);P&&_.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var R=0;R<mp;R+=1)_.push(l.createElement("th",{key:R},D[(R+$)%mp]));var N=function(A,H){return a.addDate(A,H)},M=function(A){return or(A,{locale:o,format:o.cellDateFormat,generateConfig:a})},k=function(A){var H=B(B({},"".concat(t,"-cell-in-view"),pC(a,A,i)),"".concat(t,"-cell-today"),yC(a,A,w));return H},T=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),z=l.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){c("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},or(i,{locale:o,format:o.yearFormat,generateConfig:a})),j=l.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){c("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?or(i,{locale:o,format:o.monthFormat,generateConfig:a}):T[O]),L=o.monthBeforeYear?[j,z]:[z,j];return l.createElement(jl.Provider,{value:S},l.createElement("div",{className:Z(y,h&&"".concat(y,"-show-week"))},l.createElement(pc,{offset:function(A){return a.addMonth(i,A)},superOffset:function(A){return a.addYear(i,A)},onChange:s,getStart:function(A){return a.setDate(A,1)},getEnd:function(A){var H=a.setDate(A,1);return H=a.addMonth(H,1),a.addDate(H,-1)}},L),l.createElement(_d,be({titleFormat:o.fieldDateFormat},e,{colNum:mp,rowNum:6,baseDate:E,headerCells:_,getCellDate:N,getCellText:M,getCellClassName:k,prefixColumn:P,cellSelection:!g}))))}var gW=1/3;function pW(e,t){var n=l.useRef(!1),r=l.useRef(null),o=l.useRef(null),a=function(){return n.current},i=function(){jt.cancel(r.current),n.current=!1},s=l.useRef(),c=function(){var f=e.current;if(o.current=null,s.current=0,f){var m=f.querySelector('[data-value="'.concat(t,'"]')),v=f.querySelector("li"),h=function y(){i(),n.current=!0,s.current+=1;var p=f.scrollTop,g=v.offsetTop,C=m.offsetTop,b=C-g;if(C===0&&m!==v||!uc(f)){s.current<=5&&(r.current=jt(y));return}var S=p+(b-p)*gW,w=Math.abs(b-S);if(o.current!==null&&o.current<w){i();return}if(o.current=w,w<=1){f.scrollTop=b,i();return}f.scrollTop=S,r.current=jt(y)};m&&v&&h()}},u=zt(c);return[u,i,a]}var yW=300;function bW(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Vc(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,s=e.onDblClick,c=e.changeOnScroll,u=Nh(),d=u.prefixCls,f=u.cellRender,m=u.now,v=u.locale,h="".concat(d,"-time-panel"),y="".concat(d,"-time-panel-cell"),p=l.useRef(null),g=l.useRef(),C=function(){clearTimeout(g.current)},b=pW(p,n??r),S=te(b,3),w=S[0],$=S[1],x=S[2];Dt(function(){return w(),C(),function(){$(),C()}},[n,r,bW(t)]);var E=function(P){C();var _=P.target;!x()&&c&&(g.current=setTimeout(function(){var D=p.current,R=D.querySelector("li").offsetTop,N=Array.from(D.querySelectorAll("li")),M=N.map(function(L){return L.offsetTop-R}),k=M.map(function(L,F){return t[F].disabled?Number.MAX_SAFE_INTEGER:Math.abs(L-_.scrollTop)}),T=Math.min.apply(Math,ze(k)),z=k.findIndex(function(L){return L===T}),j=t[z];j&&!j.disabled&&a(j.value)},yW))},O="".concat(h,"-column");return l.createElement("ul",{className:O,ref:p,"data-type":o,onScroll:E},t.map(function(I){var P=I.label,_=I.value,D=I.disabled,R=l.createElement("div",{className:"".concat(y,"-inner")},P);return l.createElement("li",{key:_,className:Z(y,B(B({},"".concat(y,"-selected"),n===_),"".concat(y,"-disabled"),D)),onClick:function(){D||a(_)},onDoubleClick:function(){!D&&s&&s()},onMouseEnter:function(){i(_)},onMouseLeave:function(){i(null)},"data-value":_},f?f(_,{prefixCls:d,originNode:R,today:m,type:"time",subType:o,locale:v}):R)}))}function Ya(e){return e<12}function CW(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,s=Nh(),c=s.prefixCls,u=s.values,d=s.generateConfig,f=s.locale,m=s.onSelect,v=s.onHover,h=v===void 0?function(){}:v,y=s.pickerValue,p=(u==null?void 0:u[0])||null,g=l.useContext(Si),C=g.onCellDblClick,b=CC(d,e,p),S=te(b,5),w=S[0],$=S[1],x=S[2],E=S[3],O=S[4],I=function(je){var qe=p&&d[je](p),ut=y&&d[je](y);return[qe,ut]},P=I("getHour"),_=te(P,2),D=_[0],R=_[1],N=I("getMinute"),M=te(N,2),k=M[0],T=M[1],z=I("getSecond"),j=te(z,2),L=j[0],F=j[1],A=I("getMillisecond"),H=te(A,2),U=H[0],X=H[1],ee=D===null?null:Ya(D)?"am":"pm",J=l.useMemo(function(){return a?Ya(D)?$.filter(function(Ie){return Ya(Ie.value)}):$.filter(function(Ie){return!Ya(Ie.value)}):$},[D,$,a]),oe=function(je,qe){var ut,bt=je.filter(function(Ge){return!Ge.disabled});return qe??(bt==null||(ut=bt[0])===null||ut===void 0?void 0:ut.value)},ue=oe($,D),se=l.useMemo(function(){return x(ue)},[x,ue]),Q=oe(se,k),fe=l.useMemo(function(){return E(ue,Q)},[E,ue,Q]),de=oe(fe,L),ie=l.useMemo(function(){return O(ue,Q,de)},[O,ue,Q,de]),re=oe(ie,U),he=l.useMemo(function(){if(!a)return[];var Ie=d.getNow(),je=d.setHour(Ie,6),qe=d.setHour(Ie,18),ut=function(Ge,tt){var rt=f.cellMeridiemFormat;return rt?or(Ge,{generateConfig:d,locale:f,format:rt}):tt};return[{label:ut(je,"AM"),value:"am",disabled:$.every(function(bt){return bt.disabled||!Ya(bt.value)})},{label:ut(qe,"PM"),value:"pm",disabled:$.every(function(bt){return bt.disabled||Ya(bt.value)})}]},[$,a,d,f]),ge=function(je){var qe=w(je);m(qe)},Ne=l.useMemo(function(){var Ie=p||y||d.getNow(),je=function(ut){return ut!=null};return je(D)?(Ie=d.setHour(Ie,D),Ie=d.setMinute(Ie,k),Ie=d.setSecond(Ie,L),Ie=d.setMillisecond(Ie,U)):je(R)?(Ie=d.setHour(Ie,R),Ie=d.setMinute(Ie,T),Ie=d.setSecond(Ie,F),Ie=d.setMillisecond(Ie,X)):je(ue)&&(Ie=d.setHour(Ie,ue),Ie=d.setMinute(Ie,Q),Ie=d.setSecond(Ie,de),Ie=d.setMillisecond(Ie,re)),Ie},[p,y,D,k,L,U,ue,Q,de,re,R,T,F,X,d]),Pe=function(je,qe){return je===null?null:d[qe](Ne,je)},ve=function(je){return Pe(je,"setHour")},$e=function(je){return Pe(je,"setMinute")},Ee=function(je){return Pe(je,"setSecond")},we=function(je){return Pe(je,"setMillisecond")},Ae=function(je){return je===null?null:je==="am"&&!Ya(D)?d.setHour(Ne,D-12):je==="pm"&&Ya(D)?d.setHour(Ne,D+12):Ne},Le=function(je){ge(ve(je))},Ye=function(je){ge($e(je))},Ke=function(je){ge(Ee(je))},He=function(je){ge(we(je))},Ue=function(je){ge(Ae(je))},Me=function(je){h(ve(je))},Se=function(je){h($e(je))},Fe=function(je){h(Ee(je))},xe=function(je){h(we(je))},Te=function(je){h(Ae(je))},Oe={onDblClick:C,changeOnScroll:i};return l.createElement("div",{className:"".concat(c,"-content")},t&&l.createElement(Vc,be({units:J,value:D,optionalValue:R,type:"hour",onChange:Le,onHover:Me},Oe)),n&&l.createElement(Vc,be({units:se,value:k,optionalValue:T,type:"minute",onChange:Ye,onHover:Se},Oe)),r&&l.createElement(Vc,be({units:fe,value:L,optionalValue:F,type:"second",onChange:Ke,onHover:Fe},Oe)),o&&l.createElement(Vc,be({units:ie,value:U,optionalValue:X,type:"millisecond",onChange:He,onHover:xe},Oe)),a&&l.createElement(Vc,be({units:he,value:ee,type:"meridiem",onChange:Ue,onHover:Te},Oe)))}function _M(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},s=i.format,c="".concat(t,"-time-panel"),u=gc(e,"time"),d=te(u,1),f=d[0];return l.createElement(jl.Provider,{value:f},l.createElement("div",{className:Z(c)},l.createElement(pc,null,n?or(n,{locale:r,format:s,generateConfig:o}):" "),l.createElement(CW,a)))}function SW(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,s=e.onHover,c="".concat(t,"-datetime-panel"),u=CC(n,r),d=te(u,1),f=d[0],m=function(p){return a?av(n,p,a):av(n,p,i)},v=function(p){s==null||s(p&&m(p))},h=function(p){var g=m(p);o(f(g,g))};return l.createElement("div",{className:c},l.createElement(_h,be({},e,{onSelect:h,onHover:v})),l.createElement(_M,e))}function xW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s="".concat(t,"-decade-panel"),c=gc(e,"decade"),u=te(c,1),d=u[0],f=function($){var x=Math.floor(r.getYear($)/100)*100;return r.setYear($,x)},m=function($){var x=f($);return r.addYear(x,99)},v=f(o),h=m(o),y=r.addYear(v,-10),p=function($,x){return r.addYear($,x*10)},g=function($){var x=n.cellYearFormat,E=or($,{locale:n,format:x,generateConfig:r}),O=or(r.addYear($,9),{locale:n,format:x,generateConfig:r});return"".concat(E,"-").concat(O)},C=function($){return B({},"".concat(t,"-cell-in-view"),eb(r,$,v)||eb(r,$,h)||Mh(r,v,h,$))},b=a?function(w,$){var x=r.setDate(w,1),E=r.setMonth(x,0),O=r.setYear(E,Math.floor(r.getYear(E)/10)*10),I=r.addYear(O,10),P=r.addDate(I,-1);return a(O,$)&&a(P,$)}:null,S="".concat(or(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(or(h,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(jl.Provider,{value:d},l.createElement("div",{className:s},l.createElement(pc,{superOffset:function($){return r.addYear(o,$*100)},onChange:i,getStart:f,getEnd:m},S),l.createElement(_d,be({},e,{disabledDate:b,colNum:3,rowNum:4,baseDate:y,getCellDate:p,getCellText:g,getCellClassName:C}))))}function wW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-month-panel"),u=gc(e,"month"),d=te(u,1),f=d[0],m=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(S,w){return r.addMonth(S,w)},y=function(S){var w=r.getMonth(S);return n.monthFormat?or(S,{locale:n,format:n.monthFormat,generateConfig:r}):v[w]},p=function(){return B({},"".concat(t,"-cell-in-view"),!0)},g=a?function(b,S){var w=r.setDate(b,1),$=r.setMonth(w,r.getMonth(w)+1),x=r.addDate($,-1);return a(w,S)&&a(x,S)}:null,C=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},or(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(jl.Provider,{value:f},l.createElement("div",{className:c},l.createElement(pc,{superOffset:function(S){return r.addYear(o,S)},onChange:i,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},C),l.createElement(_d,be({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:y,getCellClassName:p}))))}function $W(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,s="".concat(t,"-quarter-panel"),c=gc(e,"quarter"),u=te(c,1),d=u[0],f=r.setMonth(o,0),m=function(g,C){return r.addMonth(g,C*3)},v=function(g){return or(g,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return B({},"".concat(t,"-cell-in-view"),!0)},y=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},or(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(jl.Provider,{value:d},l.createElement("div",{className:s},l.createElement(pc,{superOffset:function(g){return r.addYear(o,g)},onChange:a,getStart:function(g){return r.setMonth(g,0)},getEnd:function(g){return r.setMonth(g,11)}},y),l.createElement(_d,be({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:m,getCellText:v,getCellClassName:h}))))}function EW(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,s=r.locale,c="".concat(t,"-week-panel-row"),u=function(f){var m={};if(i){var v=te(i,2),h=v[0],y=v[1],p=iu(n,s,h,f),g=iu(n,s,y,f);m["".concat(c,"-range-start")]=p,m["".concat(c,"-range-end")]=g,m["".concat(c,"-range-hover")]=!p&&!g&&Mh(n,h,y,f)}return a&&(m["".concat(c,"-hover")]=a.some(function(C){return iu(n,s,f,C)})),Z(c,B({},"".concat(c,"-selected"),!i&&iu(n,s,o,f)),m)};return l.createElement(_h,be({},e,{mode:"week",panelName:"week",rowClassName:u}))}function OW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-year-panel"),u=gc(e,"year"),d=te(u,1),f=d[0],m=function(x){var E=Math.floor(r.getYear(x)/10)*10;return r.setYear(x,E)},v=function(x){var E=m(x);return r.addYear(E,9)},h=m(o),y=v(o),p=r.addYear(h,-1),g=function(x,E){return r.addYear(x,E)},C=function(x){return or(x,{locale:n,format:n.cellYearFormat,generateConfig:r})},b=function(x){return B({},"".concat(t,"-cell-in-view"),bl(r,x,h)||bl(r,x,y)||Mh(r,h,y,x))},S=a?function($,x){var E=r.setMonth($,0),O=r.setDate(E,1),I=r.addYear(O,1),P=r.addDate(I,-1);return a(O,x)&&a(P,x)}:null,w=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},or(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",or(y,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(jl.Provider,{value:f},l.createElement("div",{className:c},l.createElement(pc,{superOffset:function(x){return r.addYear(o,x*10)},onChange:i,getStart:m,getEnd:v},w),l.createElement(_d,be({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:g,getCellText:C,getCellClassName:b}))))}var IW={date:_h,datetime:SW,week:EW,month:wW,quarter:$W,year:OW,decade:xW,time:_M};function RW(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,s=e.tabIndex,c=s===void 0?0:s,u=e.multiple,d=e.defaultValue,f=e.value,m=e.onChange,v=e.onSelect,h=e.defaultPickerValue,y=e.pickerValue,p=e.onPickerValueChange,g=e.mode,C=e.onPanelChange,b=e.picker,S=b===void 0?"date":b,w=e.showTime,$=e.hoverValue,x=e.hoverRangeValue,E=e.cellRender,O=e.dateRender,I=e.monthCellRender,P=e.components,_=P===void 0?{}:P,D=e.hideHeader,R=((n=l.useContext(aa))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",N=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:N.current}});var M=hM(e),k=te(M,4),T=k[0],z=k[1],j=k[2],L=k[3],F=fM(r,z),A=S==="date"&&w?"datetime":S,H=l.useMemo(function(){return gM(A,j,L,T,F)},[A,j,L,T,F]),U=o.getNow(),X=en(S,{value:g,postState:function(Te){return Te||"date"}}),ee=te(X,2),J=ee[0],oe=ee[1],ue=J==="date"&&H?"datetime":J,se=NM(o,r,A),Q=en(d,{value:f}),fe=te(Q,2),de=fe[0],ie=fe[1],re=l.useMemo(function(){var xe=kl(de).filter(function(Te){return Te});return u?xe:xe.slice(0,1)},[de,u]),he=zt(function(xe){ie(xe),m&&(xe===null||re.length!==xe.length||re.some(function(Te,Oe){return!kr(o,r,Te,xe[Oe],A)}))&&(m==null||m(u?xe:xe[0]))}),ge=zt(function(xe){if(v==null||v(xe),J===S){var Te=u?se(re,xe):[xe];he(Te)}}),Ne=en(h||re[0]||U,{value:y}),Pe=te(Ne,2),ve=Pe[0],$e=Pe[1];l.useEffect(function(){re[0]&&!y&&$e(re[0])},[re[0]]);var Ee=function(Te,Oe){C==null||C(Te||y,Oe||J)},we=function(Te){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$e(Te),p==null||p(Te),Oe&&Ee(Te)},Ae=function(Te,Oe){oe(Te),Oe&&we(Oe),Ee(Oe,Te)},Le=function(Te){if(ge(Te),we(Te),J!==S){var Oe=["decade","year"],Ie=[].concat(Oe,["month"]),je={quarter:[].concat(Oe,["quarter"]),week:[].concat(ze(Ie),["week"]),date:[].concat(ze(Ie),["date"])},qe=je[S]||Ie,ut=qe.indexOf(J),bt=qe[ut+1];bt&&Ae(bt,Te)}},Ye=l.useMemo(function(){var xe,Te;if(Array.isArray(x)){var Oe=te(x,2);xe=Oe[0],Te=Oe[1]}else xe=x;return!xe&&!Te?null:(xe=xe||Te,Te=Te||xe,o.isAfter(xe,Te)?[Te,xe]:[xe,Te])},[x,o]),Ke=gC(E,O,I),He=_[ue]||IW[ue]||_h,Ue=l.useContext(Si),Me=l.useMemo(function(){return q(q({},Ue),{},{hideHeader:D})},[Ue,D]),Se="".concat(R,"-panel"),Fe=Ph(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Si.Provider,{value:Me},l.createElement("div",{ref:N,tabIndex:c,className:Z(Se,B({},"".concat(Se,"-rtl"),a==="rtl"))},l.createElement(He,be({},Fe,{showTime:H,prefixCls:R,locale:F,generateConfig:o,onModeChange:Ae,pickerValue:ve,onPickerValueChange:function(Te){we(Te,!0)},value:re[0],onSelect:Le,values:re,cellRender:Ke,hoverRangeValue:Ye,hoverValue:$}))))}var hp=l.memo(l.forwardRef(RW));function PW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(aa),d=u.prefixCls,f=u.generateConfig,m=l.useCallback(function(C,b){return lu(f,t,C,b)},[f,t]),v=l.useMemo(function(){return m(r,1)},[r,m]),h=function(b){o(m(b,-1))},y={onCellDblClick:function(){a&&i()}},p=t==="time",g=q(q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return s?g.hoverRangeValue=c:g.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(Si.Provider,{value:q(q({},y),{},{hideNext:!0})},l.createElement(hp,g)),l.createElement(Si.Provider,{value:q(q({},y),{},{hidePrev:!0})},l.createElement(hp,be({},g,{pickerValue:v,onPickerValueChange:h})))):l.createElement(Si.Provider,{value:q({},y)},l.createElement(hp,g))}function z2(e){return typeof e=="function"?e():e}function MW(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(a,i){var s=a.label,c=a.value;return l.createElement("li",{key:i,onClick:function(){r(z2(c))},onMouseEnter:function(){o(z2(c))},onMouseLeave:function(){o(null)}},s)}))):null}function TM(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,s=e.activeInfo,c=s===void 0?[0,0,0]:s,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,y=e.direction,p=e.value,g=e.onSelect,C=e.isInvalid,b=e.defaultOpenValue,S=e.onOk,w=e.onSubmit,$=l.useContext(aa),x=$.prefixCls,E="".concat(x,"-panel"),O=y==="rtl",I=l.useRef(null),P=l.useRef(null),_=l.useState(0),D=te(_,2),R=D[0],N=D[1],M=l.useState(0),k=te(M,2),T=k[0],z=k[1],j=l.useState(0),L=te(j,2),F=L[0],A=L[1],H=function(Le){Le.width&&N(Le.width)},U=te(c,3),X=U[0],ee=U[1],J=U[2],oe=l.useState(0),ue=te(oe,2),se=ue[0],Q=ue[1];l.useEffect(function(){Q(10)},[X]),l.useEffect(function(){if(a&&P.current){var Ae,Le=((Ae=I.current)===null||Ae===void 0?void 0:Ae.offsetWidth)||0,Ye=P.current.getBoundingClientRect();if(!Ye.height||Ye.right<0){Q(function(Me){return Math.max(0,Me-1)});return}var Ke=(O?ee-Le:X)-Ye.left;if(A(Ke),R&&R<J){var He=O?Ye.right-(ee-Le+R):X+Le-Ye.left-R,Ue=Math.max(0,He);z(Ue)}else z(0)}},[se,O,R,X,ee,J,a]);function fe(Ae){return Ae.filter(function(Le){return Le})}var de=l.useMemo(function(){return fe(kl(p))},[p]),ie=r==="time"&&!de.length,re=l.useMemo(function(){return ie?fe([b]):de},[ie,de,b]),he=ie?b:de,ge=l.useMemo(function(){return re.length?re.some(function(Ae){return C(Ae)}):!0},[re,C]),Ne=function(){ie&&g(b),S(),w()},Pe=l.createElement("div",{className:"".concat(x,"-panel-layout")},l.createElement(MW,{prefixCls:x,presets:u,onClick:f,onHover:d}),l.createElement("div",null,l.createElement(PW,be({},e,{value:he})),l.createElement(hW,be({},e,{showNow:i?!1:o,invalid:ge,onSubmit:Ne}))));t&&(Pe=t(Pe));var ve="".concat(E,"-container"),$e="marginLeft",Ee="marginRight",we=l.createElement("div",{onMouseDown:h,tabIndex:-1,className:Z(ve,"".concat(x,"-").concat(n,"-panel-container")),style:B(B({},O?Ee:$e,T),O?$e:Ee,"auto"),onFocus:m,onBlur:v},Pe);return a&&(we=l.createElement("div",{onMouseDown:h,ref:P,className:Z("".concat(x,"-range-wrapper"),"".concat(x,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:I,className:"".concat(x,"-range-arrow"),style:{left:F}}),l.createElement(Sr,{onResize:H},we))),we}function DM(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,v=e.onInputChange,h=e.onInvalid,y=e.open,p=e.onOpenChange,g=e.onKeyDown,C=e.onChange,b=e.activeHelp,S=e.name,w=e.autoComplete,$=e.id,x=e.value,E=e.invalid,O=e.placeholder,I=e.disabled,P=e.activeIndex,_=e.allHelp,D=e.picker,R=function(F,A){var H=o.locale.parse(a.locale,F,[A]);return H&&o.isValidate(H)?H:null},N=n[0],M=l.useCallback(function(L){return or(L,{locale:a,format:N,generateConfig:o})},[a,o,N]),k=l.useMemo(function(){return x.map(M)},[x,M]),T=l.useMemo(function(){var L=D==="time"?8:10,F=typeof N=="function"?N(o.getNow()).length:N.length;return Math.max(L,F)+2},[N,D,o]),z=function(F){for(var A=0;A<n.length;A+=1){var H=n[A];if(typeof H=="string"){var U=R(F,H);if(U)return U}}return!1},j=function(F){function A(X){return F!==void 0?X[F]:X}var H=vr(e,{aria:!0,data:!0}),U=q(q({},H),{},{format:r,validateFormat:function(ee){return!!z(ee)},preserveInvalidOnBlur:i,readOnly:s,required:c,"aria-required":u,name:S,autoComplete:w,size:T,id:A($),value:A(k)||"",invalid:A(E),placeholder:A(O),active:P===F,helped:_||b&&P===F,disabled:A(I),onFocus:function(ee){f(ee,F)},onBlur:function(ee){m(ee,F)},onSubmit:d,onChange:function(ee){v();var J=z(ee);if(J){h(!1,F),C(J,F);return}h(!!ee,F)},onHelp:function(){p(!0,{index:F})},onKeyDown:function(ee){var J=!1;if(g==null||g(ee,function(){J=!0}),!ee.defaultPrevented&&!J)switch(ee.key){case"Escape":p(!1,{index:F});break;case"Enter":y||p(!0);break}}},t==null?void 0:t({valueTexts:k}));return Object.keys(U).forEach(function(X){U[X]===void 0&&delete U[X]}),U};return[j,M]}var NW=["onMouseEnter","onMouseLeave"];function kM(e){return l.useMemo(function(){return Ph(e,NW)},[e])}var _W=["icon","type"],TW=["onClear"];function Th(e){var t=e.icon,n=e.type,r=Pt(e,_W),o=l.useContext(aa),a=o.prefixCls;return t?l.createElement("span",be({className:"".concat(a,"-").concat(n)},r),t):null}function tb(e){var t=e.onClear,n=Pt(e,TW);return l.createElement(Th,be({},n,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),t()}}))}var gp=["YYYY","MM","DD","HH","mm","ss","SSS"],L2="顧",DW=function(){function e(t){Pn(this,e),B(this,"format",void 0),B(this,"maskFormat",void 0),B(this,"cells",void 0),B(this,"maskCells",void 0),this.format=t;var n=gp.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return L2.repeat(s.length)});var o=new RegExp("(".concat(gp.join("|"),")")),a=(t.split(o)||[]).filter(function(s){return s}),i=0;this.cells=a.map(function(s){var c=gp.includes(s),u=i,d=i+s.length;return i=d,{text:s,mask:c,start:u,end:d}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return Mn(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},o=r.start,a=r.end;return[o||0,a||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var o=this.maskFormat[r],a=n[r];if(!a||o!==L2&&o!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,o=0,a=0;a<this.maskCells.length;a+=1){var i=this.maskCells[a],s=i.start,c=i.end;if(n>=s&&n<=c)return a;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u<r&&(r=u,o=a)}return o}}]),e}();function kW(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var jW=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],nb=l.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,s=e.validateFormat,c=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,m=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,y=e.invalid,p=e.clearIcon,g=Pt(e,jW),C=e.value,b=e.onFocus,S=e.onBlur,w=e.onMouseUp,$=l.useContext(aa),x=$.prefixCls,E=$.input,O=E===void 0?"input":E,I="".concat(x,"-input"),P=l.useState(!1),_=te(P,2),D=_[0],R=_[1],N=l.useState(C),M=te(N,2),k=M[0],T=M[1],z=l.useState(""),j=te(z,2),L=j[0],F=j[1],A=l.useState(null),H=te(A,2),U=H[0],X=H[1],ee=l.useState(null),J=te(ee,2),oe=J[0],ue=J[1],se=k||"";l.useEffect(function(){T(C)},[C]);var Q=l.useRef(),fe=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Q.current,inputElement:fe.current,focus:function(xe){fe.current.focus(xe)},blur:function(){fe.current.blur()}}});var de=l.useMemo(function(){return new DW(i||"")},[i]),ie=l.useMemo(function(){return u?[0,0]:de.getSelection(U)},[de,U,u]),re=te(ie,2),he=re[0],ge=re[1],Ne=function(xe){xe&&xe!==i&&xe!==C&&d()},Pe=zt(function(Fe){s(Fe)&&c(Fe),T(Fe),Ne(Fe)}),ve=function(xe){if(!i){var Te=xe.target.value;Ne(Te),T(Te),c(Te)}},$e=function(xe){var Te=xe.clipboardData.getData("text");s(Te)&&Pe(Te)},Ee=l.useRef(!1),we=function(){Ee.current=!0},Ae=function(xe){var Te=xe.target,Oe=Te.selectionStart,Ie=de.getMaskCellIndex(Oe);X(Ie),ue({}),w==null||w(xe),Ee.current=!1},Le=function(xe){R(!0),X(0),F(""),b(xe)},Ye=function(xe){S(xe)},Ke=function(xe){R(!1),Ye(xe)};bC(n,function(){!n&&!h&&T(C)});var He=function(xe){xe.key==="Enter"&&s(se)&&f(),m==null||m(xe)},Ue=function(xe){He(xe);var Te=xe.key,Oe=null,Ie=null,je=ge-he,qe=i.slice(he,ge),ut=function(rt){X(function(V){var ae=V+rt;return ae=Math.max(ae,0),ae=Math.min(ae,de.size()-1),ae})},bt=function(rt){var V=kW(qe),ae=te(V,3),me=ae[0],Ce=ae[1],pe=ae[2],Re=se.slice(he,ge),W=Number(Re);if(isNaN(W))return String(pe||(rt>0?me:Ce));var K=W+rt,G=Ce-me+1;return String(me+(G+K-me)%G)};switch(Te){case"Backspace":case"Delete":Oe="",Ie=qe;break;case"ArrowLeft":Oe="",ut(-1);break;case"ArrowRight":Oe="",ut(1);break;case"ArrowUp":Oe="",Ie=bt(1);break;case"ArrowDown":Oe="",Ie=bt(-1);break;default:isNaN(Number(Te))||(Oe=L+Te,Ie=Oe);break}if(Oe!==null&&(F(Oe),Oe.length>=je&&(ut(1),F(""))),Ie!==null){var Ge=se.slice(0,he)+hC(Ie,je)+se.slice(ge);Pe(Ge.slice(0,i.length))}ue({})},Me=l.useRef();Dt(function(){if(!(!D||!i||Ee.current)){if(!de.match(se)){Pe(i);return}return fe.current.setSelectionRange(he,ge),Me.current=jt(function(){fe.current.setSelectionRange(he,ge)}),function(){jt.cancel(Me.current)}}},[de,i,D,se,U,he,ge,oe,Pe]);var Se=i?{onFocus:Le,onBlur:Ke,onKeyDown:Ue,onMouseDown:we,onMouseUp:Ae,onPaste:$e}:{};return l.createElement("div",{ref:Q,className:Z(I,B(B({},"".concat(I,"-active"),n&&o),"".concat(I,"-placeholder"),u))},l.createElement(O,be({ref:fe,"aria-invalid":y,autoComplete:"off"},g,{onKeyDown:He,onBlur:Ye},Se,{value:se,onChange:ve})),l.createElement(Th,{type:"suffix",icon:a}),p)}),zW=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],LW=["index"];function FW(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,s=i===void 0?"~":i,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,v=e.onClick,h=e.onClear,y=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var p=e.disabled,g=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var b=e.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,$=e.tabIndex,x=Pt(e,zW),E=C==="rtl",O=l.useContext(aa),I=O.prefixCls,P=l.useMemo(function(){if(typeof n=="string")return[n];var oe=n||{};return[oe.start,oe.end]},[n]),_=l.useRef(),D=l.useRef(),R=l.useRef(),N=function(ue){var se;return(se=[D,R][ue])===null||se===void 0?void 0:se.current};l.useImperativeHandle(t,function(){return{nativeElement:_.current,focus:function(ue){if(ht(ue)==="object"){var se,Q=ue||{},fe=Q.index,de=fe===void 0?0:fe,ie=Pt(Q,LW);(se=N(de))===null||se===void 0||se.focus(ie)}else{var re;(re=N(ue??0))===null||re===void 0||re.focus()}},blur:function(){var ue,se;(ue=N(0))===null||ue===void 0||ue.blur(),(se=N(1))===null||se===void 0||se.blur()}}});var M=kM(x),k=l.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),T=DM(q(q({},e),{},{id:P,placeholder:k})),z=te(T,1),j=z[0],L=l.useState({position:"absolute",width:0}),F=te(L,2),A=F[0],H=F[1],U=zt(function(){var oe=N(c);if(oe){var ue=oe.nativeElement.getBoundingClientRect(),se=_.current.getBoundingClientRect(),Q=ue.left-se.left;H(function(fe){return q(q({},fe),{},{width:ue.width,left:Q})}),b([ue.left,ue.right,se.width])}});l.useEffect(function(){U()},[c]);var X=o&&(y[0]&&!p[0]||y[1]&&!p[1]),ee=w&&!p[0],J=w&&!ee&&!p[1];return l.createElement(Sr,{onResize:U},l.createElement("div",be({},M,{className:Z(I,"".concat(I,"-range"),B(B(B(B({},"".concat(I,"-focused"),u),"".concat(I,"-disabled"),p.every(function(oe){return oe})),"".concat(I,"-invalid"),g.some(function(oe){return oe})),"".concat(I,"-rtl"),E),f),style:m,ref:_,onClick:v,onMouseDown:function(ue){var se=ue.target;se!==D.current.inputElement&&se!==R.current.inputElement&&ue.preventDefault(),S==null||S(ue)}}),r&&l.createElement("div",{className:"".concat(I,"-prefix")},r),l.createElement(nb,be({ref:D},j(0),{autoFocus:ee,tabIndex:$,"date-range":"start"})),l.createElement("div",{className:"".concat(I,"-range-separator")},s),l.createElement(nb,be({ref:R},j(1),{autoFocus:J,tabIndex:$,"date-range":"end"})),l.createElement("div",{className:"".concat(I,"-active-bar"),style:A}),l.createElement(Th,{type:"suffix",icon:a}),X&&l.createElement(tb,{icon:o,onClear:h})))}var AW=l.forwardRef(FW);function F2(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function If(e){return e===1?"end":"start"}function BW(e,t){var n=bM(e,function(){var Ft=e.disabled,et=e.allowEmpty,vt=F2(Ft,!1),Bt=F2(et,!1);return{disabled:vt,allowEmpty:Bt}}),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=o.prefixCls,f=o.styles,m=o.classNames,v=o.defaultValue,h=o.value,y=o.needConfirm,p=o.onKeyDown,g=o.disabled,C=o.allowEmpty,b=o.disabledDate,S=o.minDate,w=o.maxDate,$=o.defaultOpen,x=o.open,E=o.onOpenChange,O=o.locale,I=o.generateConfig,P=o.picker,_=o.showNow,D=o.showToday,R=o.showTime,N=o.mode,M=o.onPanelChange,k=o.onCalendarChange,T=o.onOk,z=o.defaultPickerValue,j=o.pickerValue,L=o.onPickerValueChange,F=o.inputReadOnly,A=o.suffixIcon,H=o.onFocus,U=o.onBlur,X=o.presets,ee=o.ranges,J=o.components,oe=o.cellRender,ue=o.dateRender,se=o.monthCellRender,Q=o.onClick,fe=SM(t),de=CM(x,$,g,E),ie=te(de,2),re=ie[0],he=ie[1],ge=function(et,vt){(g.some(function(Bt){return!Bt})||!et)&&he(et,vt)},Ne=RM(I,O,s,!0,!1,v,h,k,T),Pe=te(Ne,5),ve=Pe[0],$e=Pe[1],Ee=Pe[2],we=Pe[3],Ae=Pe[4],Le=Ee(),Ye=wM(g,C,re),Ke=te(Ye,9),He=Ke[0],Ue=Ke[1],Me=Ke[2],Se=Ke[3],Fe=Ke[4],xe=Ke[5],Te=Ke[6],Oe=Ke[7],Ie=Ke[8],je=function(et,vt){Ue(!0),H==null||H(et,{range:If(vt??Se)})},qe=function(et,vt){Ue(!1),U==null||U(et,{range:If(vt??Se)})},ut=l.useMemo(function(){if(!R)return null;var Ft=R.disabledTime,et=Ft?function(vt){var Bt=If(Se),on=sM(Le,Te,Se);return Ft(vt,Bt,{from:on})}:void 0;return q(q({},R),{},{disabledTime:et})},[R,Se,Le,Te]),bt=en([P,P],{value:N}),Ge=te(bt,2),tt=Ge[0],rt=Ge[1],V=tt[Se]||P,ae=V==="date"&&ut?"datetime":V,me=ae===P&&ae!=="time",Ce=MM(P,V,_,D,!0),pe=PM(o,ve,$e,Ee,we,g,s,He,re,u),Re=te(pe,2),W=Re[0],K=Re[1],G=dW(Le,g,Te,I,O,b),ce=uM(Le,u,C),ye=te(ce,2),De=ye[0],Be=ye[1],Ve=$M(I,O,Le,tt,re,Se,a,me,z,j,ut==null?void 0:ut.defaultOpenValue,L,S,w),ke=te(Ve,2),_e=ke[0],We=ke[1],Ze=zt(function(Ft,et,vt){var Bt=wu(tt,Se,et);if((Bt[0]!==tt[0]||Bt[1]!==tt[1])&&rt(Bt),M&&vt!==!1){var on=ze(Le);Ft&&(on[Se]=Ft),M(on,Bt)}}),st=function(et,vt){return wu(Le,vt,et)},$t=function(et,vt){var Bt=Le;et&&(Bt=st(et,Se)),Oe(Se);var on=xe(Bt);we(Bt),W(Se,on===null),on===null?ge(!1,{force:!0}):vt||fe.current.focus({index:on})},Ot=function(et){var vt,Bt=et.target.getRootNode();if(!fe.current.nativeElement.contains((vt=Bt.activeElement)!==null&&vt!==void 0?vt:document.activeElement)){var on=g.findIndex(function($n){return!$n});on>=0&&fe.current.focus({index:on})}ge(!0),Q==null||Q(et)},ft=function(){K(null),ge(!1,{force:!0})},_t=l.useState(null),Xe=te(_t,2),it=Xe[0],xt=Xe[1],dt=l.useState(null),mt=te(dt,2),lt=mt[0],It=mt[1],kt=l.useMemo(function(){return lt||Le},[Le,lt]);l.useEffect(function(){re||It(null)},[re]);var ot=l.useState([0,0,0]),Qe=te(ot,2),pt=Qe[0],Jt=Qe[1],ln=xM(X,ee),Ht=function(et){It(et),xt("preset")},gn=function(et){var vt=K(et);vt&&ge(!1,{force:!0})},yn=function(et){$t(et)},Dn=function(et){It(et?st(et,Se):null),xt("cell")},qn=function(et){ge(!0),je(et)},tr=function(){Me("panel")},Gn=function(et){var vt=wu(Le,Se,et);we(vt),!y&&!i&&a===ae&&$t(et)},Yt=function(){ge(!1)},wt=gC(oe,ue,se,If(Se)),Ct=Le[Se]||null,Ut=zt(function(Ft){return u(Ft,{activeIndex:Se})}),gt=l.useMemo(function(){var Ft=vr(o,!1),et=un(o,[].concat(ze(Object.keys(Ft)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return et},[o]),yt=l.createElement(TM,be({},gt,{showNow:Ce,showTime:ut,range:!0,multiplePanel:me,activeInfo:pt,disabledDate:G,onFocus:qn,onBlur:qe,onPanelMouseDown:tr,picker:P,mode:V,internalMode:ae,onPanelChange:Ze,format:c,value:Ct,isInvalid:Ut,onChange:null,onSelect:Gn,pickerValue:_e,defaultOpenValue:kl(R==null?void 0:R.defaultOpenValue)[Se],onPickerValueChange:We,hoverValue:kt,onHover:Dn,needConfirm:y,onSubmit:$t,onOk:Ae,presets:ln,onPresetHover:Ht,onPresetSubmit:gn,onNow:yn,cellRender:wt})),Vt=function(et,vt){var Bt=st(et,vt);we(Bt)},dn=function(){Me("input")},bn=function(et,vt){var Bt=Te.length,on=Te[Bt-1];if(Bt&&on!==vt&&y&&!C[on]&&!Ie(on)&&Le[on]){fe.current.focus({index:on});return}Me("input"),ge(!0,{inherit:!0}),Se!==vt&&re&&!y&&i&&$t(null,!0),Fe(vt),je(et,vt)},Yn=function(et,vt){if(ge(!1),!y&&Me()==="input"){var Bt=xe(Le);W(Se,Bt===null)}qe(et,vt)},kn=function(et,vt){et.key==="Tab"&&$t(null,!0),p==null||p(et,vt)},Xn=l.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:I,button:J.button,input:J.input}},[d,O,I,J.button,J.input]);return Dt(function(){re&&Se!==void 0&&Ze(null,P,!1)},[re,Se,P]),Dt(function(){var Ft=Me();!re&&Ft==="input"&&(ge(!1),$t(null,!0)),!re&&i&&!y&&Ft==="panel"&&(ge(!0),$t())},[re]),l.createElement(aa.Provider,{value:Xn},l.createElement(iM,be({},cM(o),{popupElement:yt,popupStyle:f.popup,popupClassName:m.popup,visible:re,onClose:Yt,range:!0}),l.createElement(AW,be({},o,{ref:fe,suffixIcon:A,activeIndex:He||re?Se:null,activeHelp:!!lt,allHelp:!!lt&&it==="preset",focused:He,onFocus:bn,onBlur:Yn,onKeyDown:kn,onSubmit:$t,value:kt,maskFormat:c,onChange:Vt,onInputChange:dn,format:s,inputReadOnly:F,disabled:g,open:re,onOpenChange:ge,onClick:Ot,onClear:ft,invalid:De,onInvalid:Be,onActiveInfo:Jt}))))}var HW=l.forwardRef(BW);function VW(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function v(p,g){return l.createElement("span",{className:Z("".concat(f,"-item")),title:typeof p=="string"?p:null},l.createElement("span",{className:"".concat(f,"-item-content")},p),!s&&g&&l.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:g,className:"".concat(f,"-item-remove")},a))}function h(p){var g=i(p),C=function(S){S&&S.stopPropagation(),r(p)};return v(g,C)}function y(p){var g="+ ".concat(p.length," ...");return v(g)}return l.createElement("div",{className:d},l.createElement(Xo,{prefixCls:m,data:n,renderItem:h,renderRest:y,itemKey:function(g){return i(g)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var WW=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function KW(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,v=e.onClear,h=e.internalPicker,y=e.value,p=e.onChange,g=e.onSubmit;e.onInputChange;var C=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var $=e.direction;e.onOpenChange;var x=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,O=e.tabIndex,I=e.removeIcon,P=Pt(e,WW),_=$==="rtl",D=l.useContext(aa),R=D.prefixCls,N=l.useRef(),M=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(ee){var J;(J=M.current)===null||J===void 0||J.focus(ee)},blur:function(){var ee;(ee=M.current)===null||ee===void 0||ee.blur()}}});var k=kM(P),T=function(ee){p([ee])},z=function(ee){var J=y.filter(function(oe){return oe&&!kr(c,s,oe,ee,h)});p(J),n||g()},j=DM(q(q({},e),{},{onChange:T}),function(X){var ee=X.valueTexts;return{value:ee[0]||"",active:i}}),L=te(j,2),F=L[0],A=L[1],H=!!(o&&y.length&&!S),U=C?l.createElement(l.Fragment,null,l.createElement(VW,{prefixCls:R,value:y,onRemove:z,formatDate:A,maxTagCount:b,disabled:S,removeIcon:I,placeholder:u}),l.createElement("input",{className:"".concat(R,"-multiple-input"),value:y.map(A).join(","),ref:M,readOnly:!0,autoFocus:E,tabIndex:O}),l.createElement(Th,{type:"suffix",icon:a}),H&&l.createElement(tb,{icon:o,onClear:v})):l.createElement(nb,be({ref:M},F(),{autoFocus:E,tabIndex:O,suffixIcon:a,clearIcon:H&&l.createElement(tb,{icon:o,onClear:v}),showActiveCls:!1}));return l.createElement("div",be({},k,{className:Z(R,B(B(B(B(B({},"".concat(R,"-multiple"),C),"".concat(R,"-focused"),i),"".concat(R,"-disabled"),S),"".concat(R,"-invalid"),w),"".concat(R,"-rtl"),_),d),style:f,ref:N,onClick:m,onMouseDown:function(ee){var J,oe=ee.target;oe!==((J=M.current)===null||J===void 0?void 0:J.inputElement)&&ee.preventDefault(),x==null||x(ee)}}),r&&l.createElement("div",{className:"".concat(R,"-prefix")},r),U)}var UW=l.forwardRef(KW);function qW(e,t){var n=bM(e),r=te(n,6),o=r[0],a=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=o,f=d.prefixCls,m=d.styles,v=d.classNames,h=d.order,y=d.defaultValue,p=d.value,g=d.needConfirm,C=d.onChange,b=d.onKeyDown,S=d.disabled,w=d.disabledDate,$=d.minDate,x=d.maxDate,E=d.defaultOpen,O=d.open,I=d.onOpenChange,P=d.locale,_=d.generateConfig,D=d.picker,R=d.showNow,N=d.showToday,M=d.showTime,k=d.mode,T=d.onPanelChange,z=d.onCalendarChange,j=d.onOk,L=d.multiple,F=d.defaultPickerValue,A=d.pickerValue,H=d.onPickerValueChange,U=d.inputReadOnly,X=d.suffixIcon,ee=d.removeIcon,J=d.onFocus,oe=d.onBlur,ue=d.presets,se=d.components,Q=d.cellRender,fe=d.dateRender,de=d.monthCellRender,ie=d.onClick,re=SM(t);function he(gt){return gt===null?null:L?gt:gt[0]}var ge=NM(_,P,a),Ne=CM(O,E,[S],I),Pe=te(Ne,2),ve=Pe[0],$e=Pe[1],Ee=function(yt,Vt,dn){if(z){var bn=q({},dn);delete bn.range,z(he(yt),he(Vt),bn)}},we=function(yt){j==null||j(he(yt))},Ae=RM(_,P,s,!1,h,y,p,Ee,we),Le=te(Ae,5),Ye=Le[0],Ke=Le[1],He=Le[2],Ue=Le[3],Me=Le[4],Se=He(),Fe=wM([S]),xe=te(Fe,4),Te=xe[0],Oe=xe[1],Ie=xe[2],je=xe[3],qe=function(yt){Oe(!0),J==null||J(yt,{})},ut=function(yt){Oe(!1),oe==null||oe(yt,{})},bt=en(D,{value:k}),Ge=te(bt,2),tt=Ge[0],rt=Ge[1],V=tt==="date"&&M?"datetime":tt,ae=MM(D,tt,R,N),me=C&&function(gt,yt){C(he(gt),he(yt))},Ce=PM(q(q({},o),{},{onChange:me}),Ye,Ke,He,Ue,[],s,Te,ve,u),pe=te(Ce,2),Re=pe[1],W=uM(Se,u),K=te(W,2),G=K[0],ce=K[1],ye=l.useMemo(function(){return G.some(function(gt){return gt})},[G]),De=function(yt,Vt){if(H){var dn=q(q({},Vt),{},{mode:Vt.mode[0]});delete dn.range,H(yt[0],dn)}},Be=$M(_,P,Se,[tt],ve,je,a,!1,F,A,kl(M==null?void 0:M.defaultOpenValue),De,$,x),Ve=te(Be,2),ke=Ve[0],_e=Ve[1],We=zt(function(gt,yt,Vt){if(rt(yt),T&&Vt!==!1){var dn=gt||Se[Se.length-1];T(dn,yt)}}),Ze=function(){Re(He()),$e(!1,{force:!0})},st=function(yt){!S&&!re.current.nativeElement.contains(document.activeElement)&&re.current.focus(),$e(!0),ie==null||ie(yt)},$t=function(){Re(null),$e(!1,{force:!0})},Ot=l.useState(null),ft=te(Ot,2),_t=ft[0],Xe=ft[1],it=l.useState(null),xt=te(it,2),dt=xt[0],mt=xt[1],lt=l.useMemo(function(){var gt=[dt].concat(ze(Se)).filter(function(yt){return yt});return L?gt:gt.slice(0,1)},[Se,dt,L]),It=l.useMemo(function(){return!L&&dt?[dt]:Se.filter(function(gt){return gt})},[Se,dt,L]);l.useEffect(function(){ve||mt(null)},[ve]);var kt=xM(ue),ot=function(yt){mt(yt),Xe("preset")},Qe=function(yt){var Vt=L?ge(He(),yt):[yt],dn=Re(Vt);dn&&!L&&$e(!1,{force:!0})},pt=function(yt){Qe(yt)},Jt=function(yt){mt(yt),Xe("cell")},ln=function(yt){$e(!0),qe(yt)},Ht=function(yt){if(Ie("panel"),!(L&&V!==D)){var Vt=L?ge(He(),yt):[yt];Ue(Vt),!g&&!i&&a===V&&Ze()}},gn=function(){$e(!1)},yn=gC(Q,fe,de),Dn=l.useMemo(function(){var gt=vr(o,!1),yt=un(o,[].concat(ze(Object.keys(gt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return q(q({},yt),{},{multiple:o.multiple})},[o]),qn=l.createElement(TM,be({},Dn,{showNow:ae,showTime:M,disabledDate:w,onFocus:ln,onBlur:ut,picker:D,mode:tt,internalMode:V,onPanelChange:We,format:c,value:Se,isInvalid:u,onChange:null,onSelect:Ht,pickerValue:ke,defaultOpenValue:M==null?void 0:M.defaultOpenValue,onPickerValueChange:_e,hoverValue:lt,onHover:Jt,needConfirm:g,onSubmit:Ze,onOk:Me,presets:kt,onPresetHover:ot,onPresetSubmit:Qe,onNow:pt,cellRender:yn})),tr=function(yt){Ue(yt)},Gn=function(){Ie("input")},Yt=function(yt){Ie("input"),$e(!0,{inherit:!0}),qe(yt)},wt=function(yt){$e(!1),ut(yt)},Ct=function(yt,Vt){yt.key==="Tab"&&Ze(),b==null||b(yt,Vt)},Ut=l.useMemo(function(){return{prefixCls:f,locale:P,generateConfig:_,button:se.button,input:se.input}},[f,P,_,se.button,se.input]);return Dt(function(){ve&&je!==void 0&&We(null,D,!1)},[ve,je,D]),Dt(function(){var gt=Ie();!ve&&gt==="input"&&($e(!1),Ze()),!ve&&i&&!g&&gt==="panel"&&Ze()},[ve]),l.createElement(aa.Provider,{value:Ut},l.createElement(iM,be({},cM(o),{popupElement:qn,popupStyle:m.popup,popupClassName:v.popup,visible:ve,onClose:gn}),l.createElement(UW,be({},o,{ref:re,suffixIcon:X,removeIcon:ee,activeHelp:!!dt,allHelp:!!dt&&_t==="preset",focused:Te,onFocus:Yt,onBlur:wt,onKeyDown:Ct,onSubmit:Ze,value:It,maskFormat:c,onChange:tr,onInputChange:Gn,internalPicker:a,format:s,inputReadOnly:U,disabled:S,open:ve,onOpenChange:$e,onClick:st,onClear:$t,invalid:ye,onInvalid:function(yt){ce(yt,0)}}))))}var GW=l.forwardRef(qW);const jM=l.createContext(null),YW=jM.Provider,zM=l.createContext(null),XW=zM.Provider;var QW=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],LM=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,h=Pt(e,QW),y=l.useRef(null),p=l.useRef(null),g=en(u,{value:i}),C=te(g,2),b=C[0],S=C[1];l.useImperativeHandle(t,function(){return{focus:function(E){var O;(O=y.current)===null||O===void 0||O.focus(E)},blur:function(){var E;(E=y.current)===null||E===void 0||E.blur()},input:y.current,nativeElement:p.current}});var w=Z(r,o,B(B({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),$=function(E){s||("checked"in e||S(E.target.checked),v==null||v({target:q(q({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return l.createElement("span",{className:w,title:m,style:a,ref:p},l.createElement("input",be({},h,{className:"".concat(r,"-input"),ref:y,onChange:$,disabled:s,checked:!!b,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});function FM(e){const t=le.useRef(null),n=()=>{jt.cancel(t.current),t.current=null};return[()=>{n(),t.current=jt(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const JW=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},tn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},ZW=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:h,lineType:y,radioColor:p,radioBgColor:g,calc:C}=e,b=`${t}-inner`,w=C(o).sub(C(4).mul(2)),$=C(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},tn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Y(d)} ${y} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},tn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
269
+ &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:na(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$,height:$,marginBlockStart:C(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${C(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},eK=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:v,paddingXS:h,borderRadius:y,borderRadiusSM:p,borderRadiusLG:g,buttonCheckedBg:C,buttonSolidCheckedColor:b,colorTextDisabled:S,colorBgContainerDisabled:w,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:x,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:I,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:_,buttonSolidCheckedActiveBg:D,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Y(R(n).sub(R(o).mul(2)).equal()),background:d,border:`${Y(o)} ${a} ${i}`,borderBlockStartWidth:R(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:R(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Y(o)} ${a} ${i}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:Y(R(m).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-small &`]:{height:v,paddingInline:R(h).sub(o).equal(),paddingBlock:0,lineHeight:Y(R(v).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":na(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:C,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:b,background:P,borderColor:P,"&:hover":{color:b,background:_,borderColor:_},"&:active":{color:b,background:D,borderColor:D}},"&-disabled":{color:S,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:w,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:x,backgroundColor:$,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},tK=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:h}=e,y=4,p=a,g=t?p-y*2:p-(y+o)*2;return{radioSize:p,dotSize:g,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},AM=Gt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Y(n)} ${t}`,a=At(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[JW(a),ZW(a),eK(a)]},tK,{unitless:{radioSize:!0,dotSize:!0}});var nK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rK=(e,t)=>{var n,r;const o=l.useContext(jM),a=l.useContext(zM),{getPrefixCls:i,direction:s,radio:c}=l.useContext(Et),u=l.useRef(null),d=lr(t,u),{isFormItemInput:f}=l.useContext(ir),m=M=>{var k,T;(k=e.onChange)===null||k===void 0||k.call(e,M),(T=o==null?void 0:o.onChange)===null||T===void 0||T.call(o,M)},{prefixCls:v,className:h,rootClassName:y,children:p,style:g,title:C}=e,b=nK(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",v),w=((o==null?void 0:o.optionType)||a)==="button",$=w?`${S}-button`:S,x=Un(S),[E,O,I]=AM(S,x),P=Object.assign({},b),_=l.useContext(zr);o&&(P.name=o.name,P.onChange=m,P.checked=e.value===o.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:o.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:_;const D=Z(`${$}-wrapper`,{[`${$}-wrapper-checked`]:P.checked,[`${$}-wrapper-disabled`]:P.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:f,[`${$}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,h,y,O,I,x),[R,N]=FM(P.onClick);return E(l.createElement(wd,{component:"Radio",disabled:P.disabled},l.createElement("label",{className:D,style:Object.assign(Object.assign({},c==null?void 0:c.style),g),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:R},l.createElement(LM,Object.assign({},P,{className:Z(P.className,{[th]:!w}),type:"radio",prefixCls:$,ref:d,onClick:N})),p!==void 0?l.createElement("span",{className:`${$}-label`},p):null)))},iv=l.forwardRef(rK),oK=["parentNode"],aK="form_item";function $u(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function BM(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:oK.includes(n)?`${aK}_${n}`:n}function HM(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var iK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rb(e){return $u(e).join("_")}function A2(e,t){const n=t.getFieldInstance(e),r=Cd(n);if(r)return r;const o=BM($u(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function VM(e){const[t]=Z1(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=rb(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=iK(a,["focus"]),c=A2(o,r);c&&(e7(c,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&r.focusField(o))},focusField:o=>{var a,i;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(i=(a=A2(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=rb(o);return n.current[a]}}),[e,t]);return[r]}const lK=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Et),{name:o}=l.useContext(ir),a=Od(rb(o)),{prefixCls:i,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:v,style:h,id:y,optionType:p,name:g=a,defaultValue:C,value:b,block:S=!1,onChange:w,onMouseEnter:$,onMouseLeave:x,onFocus:E,onBlur:O}=e,[I,P]=en(C,{value:b}),_=l.useCallback(A=>{const H=I,U=A.target.value;"value"in e||P(U),U!==H&&(w==null||w(A))},[I,P,w]),D=n("radio",i),R=`${D}-group`,N=Un(D),[M,k,T]=AM(D,N);let z=m;u&&u.length>0&&(z=u.map(A=>typeof A=="string"||typeof A=="number"?l.createElement(iv,{key:A.toString(),prefixCls:D,disabled:f,value:A,checked:I===A},A):l.createElement(iv,{key:`radio-group-value-options-${A.value}`,prefixCls:D,disabled:A.disabled||f,value:A.value,checked:I===A.value,title:A.title,style:A.style,className:A.className,id:A.id,required:A.required},A.label)));const j=sr(v),L=Z(R,`${R}-${d}`,{[`${R}-${j}`]:j,[`${R}-rtl`]:r==="rtl",[`${R}-block`]:S},s,c,k,T,N),F=l.useMemo(()=>({onChange:_,value:I,disabled:f,name:g,optionType:p,block:S}),[_,I,f,g,p,S]);return M(l.createElement("div",Object.assign({},vr(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:$,onMouseLeave:x,onFocus:E,onBlur:O,id:y,ref:t}),l.createElement(YW,{value:F},z)))}),sK=l.memo(lK);var cK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uK=(e,t)=>{const{getPrefixCls:n}=l.useContext(Et),{prefixCls:r}=e,o=cK(e,["prefixCls"]),a=n("radio",r);return l.createElement(XW,{value:"button"},l.createElement(iv,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},dK=l.forwardRef(uK),Td=iv;Td.Button=dK;Td.Group=sK;Td.__ANT_RADIO=!0;function zl(e){return At(e,{inputAffixPadding:e.paddingXXS})}const Ll=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:y,controlOutline:p,colorErrorOutline:g,colorWarningOutline:C,colorBgContainer:b,inputFontSize:S,inputFontSizeLG:w,inputFontSizeSM:$}=e,x=S||n,E=$||x,O=w||s,I=Math.round((t-x*r)/2*10)/10-o,P=Math.round((a-E*r)/2*10)/10-o,_=Math.ceil((i-O*c)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(_,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${y}px ${p}`,errorActiveShadow:`0 0 0 ${y}px ${g}`,warningActiveShadow:`0 0 0 ${y}px ${C}`,hoverBg:b,activeBg:b,inputFontSize:x,inputFontSizeLG:O,inputFontSizeSM:E}},fK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Dh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fK(At(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),SC=(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}}),B2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},SC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),xC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},SC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Dh(e))}),B2(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),B2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),H2=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),WM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},H2(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),H2(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Dh(e))}})}),wC=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},KM=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},V2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},KM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$C=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Dh(e))}),V2(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),V2(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),W2=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),UM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},W2(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),W2(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:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),qM=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Y(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}}),K2=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qM(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`}}),EC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qM(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"}}),K2(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),K2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),OC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),GM=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Y(t)} ${Y(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},IC=e=>({padding:`${Y(e.paddingBlockSM)} ${Y(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Dd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Y(e.paddingBlock)} ${Y(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},OC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},GM(e)),"&-sm":Object.assign({},IC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),YM=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},GM(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},IC(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Y(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Y(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Y(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Y(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Y(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ei()),{[`${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},[`
270
+ & > ${t}-affix-wrapper,
271
+ & > ${t}-number-affix-wrapper,
272
+ & > ${n}-picker-range
273
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
274
+ & > ${n}-select-auto-complete ${t},
275
+ & > ${n}-cascader-picker ${t},
276
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
277
+ & > ${n}-select:first-child > ${n}-select-selector,
278
+ & > ${n}-select-auto-complete:first-child ${t},
279
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
280
+ & > ${n}-select:last-child > ${n}-select-selector,
281
+ & > ${n}-cascader-picker:last-child ${t},
282
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},mK=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),Dd(e)),xC(e)),$C(e)),wC(e)),EC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},vK=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Y(e.inputAffixPadding)}`}}}},hK=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Dd(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),vK(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},gK=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},tn(e)),YM(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},WM(e)),UM(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}}})})}},pK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
283
+ > ${t},
284
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},yK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},XM=Gt(["Input","Shared"],e=>{const t=At(e,zl(e));return[mK(t),hK(t)]},Ll,{resetFont:!1}),QM=Gt(["Input","Component"],e=>{const t=At(e,zl(e));return[gK(t),pK(t),yK(t),dc(t)]},Ll,{resetFont:!1}),pp=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=dP(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:Y(a.itemLineHeight)}}}]},bK=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=At(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=At(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[pp(o,"small"),pp(e),pp(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},fP(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},CK=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:v,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Y(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
285
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Y(s)} ${c} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
286
+ &-in-view${t}-range-start,
287
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
288
+ &-in-view${t}-range-start,
289
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},SK=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:v,colorPrimary:h,colorTextHeading:y,colorSplit:p,pickerControlIconBorderWidth:g,colorIcon:C,textHeight:b,motionDurationMid:S,colorIconHover:w,fontWeightStrong:$,cellHeight:x,pickerCellPaddingVertical:E,colorTextDisabled:O,colorText:I,fontSize:P,motionDurationSlow:_,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:R,borderRadiusSM:N,colorTextLightSolid:M,cellHoverBg:k,timeColumnHeight:T,timeColumnWidth:z,timeCellHeight:j,controlItemBgActive:L,marginXXS:F,pickerDatePanelPaddingHorizontal:A,pickerControlIconMargin:H}=e,U=e.calc(i).mul(7).add(e.calc(A).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:v,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
290
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
291
+ ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:U},"&-header":{display:"flex",padding:`0 ${Y(c)}`,color:y,borderBottom:`${Y(f)} ${m} ${p}`,"> *":{flex:"none"},button:{padding:0,color:C,lineHeight:Y(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:$,lineHeight:Y(b),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:g,borderInlineStartWidth:g,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:g,borderInlineStartWidth:g,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(E).mul(2)).equal(),color:I,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Y(E)} 0`,color:O,cursor:"pointer","&-in-view":{color:I}},CK(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(D).mul(4).equal()},[r]:{padding:`0 ${Y(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:R}},"&-decade-panel":{[r]:{padding:`0 ${Y(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Y(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${Y(c)} ${Y(A)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Kt(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Y(c)} ${Y(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Y(f)} ${m} ${p}`},[`${t}-date-panel,
292
+ ${t}-time-panel`]:{transition:`opacity ${_}`},"&-active":{[`${t}-date-panel,
293
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:z,margin:`${Y(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Y(j)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Y(f)} ${m} ${p}`},"&-active":{background:new Kt(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(F).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(j).div(2).equal(),color:I,lineHeight:Y(j),borderRadius:N,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},xK=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Y(r)} ${u} ${d}`,"&-extra":{padding:`0 ${Y(o)}`,lineHeight:Y(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Y(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Y(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Y(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},wK=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},$K=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,s=a*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),f=Math.min(o-s,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Kt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Kt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},EK=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ll(e)),$K(e)),wh(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),OK=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},xC(e)),EC(e)),$C(e)),wC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},yp=(e,t)=>({padding:`${Y(e)} ${Y(t)}`}),IK=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},RK=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:v,inputFontSizeLG:h,fontSizeSM:y,inputFontSizeSM:p,controlHeightSM:g,paddingInlineSM:C,paddingXS:b,marginXS:S,colorIcon:w,lineWidthBold:$,colorPrimary:x,motionDurationSlow:E,zIndexPopup:O,paddingXXS:I,sizePopupArrow:P,colorBgElevated:_,borderRadiusLG:D,boxShadowSecondary:R,borderRadiusSM:N,colorSplit:M,cellHoverBg:k,presetsWidth:T,presetsMaxWidth:z,boxShadowPopoverArrow:j,fontHeight:L,lineHeightLG:F}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},tn(e)),yp(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},OC(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},yp(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??v,lineHeight:F}}),"&-small":Object.assign(Object.assign({},yp(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:p??y}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:m,fontSize:v,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:$,background:x,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${Y(b)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},tn(e)),SK(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
294
+ &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
295
+ &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
296
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
297
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
298
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:ih},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
299
+ &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
300
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
301
+ &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:oh},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
302
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:lh},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
303
+ &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:ah},[`${n}-panel > ${n}-time-panel`]:{paddingTop:I},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${E} ease-out`},xP(e,_,j)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:_,borderRadius:D,boxShadow:R,transition:`margin ${E}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:T,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${Y(a)} ${i} ${M}`,li:Object.assign(Object.assign({},ta),{borderRadius:N,paddingInline:b,paddingBlock:e.calc(g).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:S},"&:hover":{background:k}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Y(e.calc(P).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},ba(e,"slide-up"),ba(e,"slide-down"),qs(e,"move-up"),qs(e,"move-down")]},JM=Gt("DatePicker",e=>{const t=At(zl(e),wK(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[xK(t),RK(t),OK(t),IK(t),bK(t),dc(e,{focusElCls:`${e.componentCls}-focused`})]},EK);var PK={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"},MK=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:PK}))},lv=l.forwardRef(MK);const kh=l.createContext(null);var NK=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=te(d,2),m=f[0],v=f[1],h=l.useRef(),y=le.useCallback(function(g){return typeof s=="function"?s(g):typeof s=="number"?s:g},[s]);function p(){jt.cancel(h.current)}return l.useEffect(function(){var g={};if(n)if(r){g.width=y(n.width);var C=o?"right":"left";u==="start"&&(g[C]=n[C]),u==="center"&&(g[C]=n[C]+n.width/2,g.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(g[C]=n[C]+n.width,g.transform="translateX(-100%)")}else g.height=y(n.height),u==="start"&&(g.top=n.top),u==="center"&&(g.top=n.top+n.height/2,g.transform="translateY(-50%)"),u==="end"&&(g.top=n.top+n.height,g.transform="translateY(-100%)");return p(),h.current=jt(function(){var b=m&&g&&Object.keys(g).every(function(S){var w=g[S],$=m[S];return typeof w=="number"&&typeof $=="number"?Math.round(w)===Math.round($):w===$});b||v(g)}),p},[JSON.stringify(n),r,o,u,y]),{style:m}},U2={width:0,height:0,left:0,top:0};function _K(e,t,n){return l.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||U2,i=a.left+a.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||U2}var f=o.get(c)||q({},u);f.right=i-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function q2(e,t){var n=l.useRef(e),r=l.useState({}),o=te(r,2),a=o[1];function i(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,a({})}return[n.current,i]}var TK=.1,G2=.01,um=20,Y2=Math.pow(.995,um);function DK(e,t){var n=l.useState(),r=te(n,2),o=r[0],a=r[1],i=l.useState(0),s=te(i,2),c=s[0],u=s[1],d=l.useState(0),f=te(d,2),m=f[0],v=f[1],h=l.useState(),y=te(h,2),p=y[0],g=y[1],C=l.useRef();function b(O){var I=O.touches[0],P=I.screenX,_=I.screenY;a({x:P,y:_}),window.clearInterval(C.current)}function S(O){if(o){var I=O.touches[0],P=I.screenX,_=I.screenY;a({x:P,y:_});var D=P-o.x,R=_-o.y;t(D,R);var N=Date.now();u(N),v(N-c),g({x:D,y:R})}}function w(){if(o&&(a(null),g(null),p)){var O=p.x/m,I=p.y/m,P=Math.abs(O),_=Math.abs(I);if(Math.max(P,_)<TK)return;var D=O,R=I;C.current=window.setInterval(function(){if(Math.abs(D)<G2&&Math.abs(R)<G2){window.clearInterval(C.current);return}D*=Y2,R*=Y2,t(D*um,R*um)},um)}}var $=l.useRef();function x(O){var I=O.deltaX,P=O.deltaY,_=0,D=Math.abs(I),R=Math.abs(P);D===R?_=$.current==="x"?I:P:D>R?(_=I,$.current="x"):(_=P,$.current="y"),t(-_,-_)&&O.preventDefault()}var E=l.useRef(null);E.current={onTouchStart:b,onTouchMove:S,onTouchEnd:w,onWheel:x},l.useEffect(function(){function O(D){E.current.onTouchStart(D)}function I(D){E.current.onTouchMove(D)}function P(D){E.current.onTouchEnd(D)}function _(D){E.current.onWheel(D)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",P)}},[])}function ZM(e){var t=l.useState(0),n=te(t,2),r=n[0],o=n[1],a=l.useRef(0),i=l.useRef();return i.current=e,sl(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function kK(e){var t=l.useRef([]),n=l.useState({}),r=te(n,2),o=r[1],a=l.useRef(typeof e=="function"?e():e),i=ZM(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function s(c){t.current.push(c),i()}return[a.current,s]}var X2={width:0,height:0,left:0,top:0,right:0};function jK(e,t,n,r,o,a,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var v=s.length,h=v,y=0;y<v;y+=1){var p=e.get(s[y].key)||X2;if(Math.floor(p[f]+p[d])>Math.floor(m+t)){h=y-1;break}}for(var g=0,C=v-1;C>=0;C-=1){var b=e.get(s[C].key)||X2;if(b[f]<m){g=C+1;break}}return g>h?[0,-1]:[g,h]},[e,t,r,o,a,m,c,s.map(function(v){return v.key}).join("_"),u])}function Q2(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var zK="TABS_DQ";function e6(e){return String(e).replace(/"/g,zK)}function RC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var t6=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),J2=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return ht(o)==="object"&&!l.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),LK=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,v=e.rtl,h=e.removeAriaLabel,y=e.onTabClick,p=e.getPopupContainer,g=e.popupClassName,C=l.useState(!1),b=te(C,2),S=b[0],w=b[1],$=l.useState(null),x=te($,2),E=x[0],O=x[1],I=c.icon,P=I===void 0?"More":I,_="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),R=E!==null?"".concat(_,"-").concat(E):null,N=a==null?void 0:a.dropdownAriaLabel;function M(A,H){A.preventDefault(),A.stopPropagation(),f.onEdit("remove",{key:H,event:A})}var k=l.createElement(hc,{onClick:function(H){var U=H.key,X=H.domEvent;y(U,X),w(!1)},prefixCls:"".concat(D,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[E],"aria-label":N!==void 0?N:"expanded dropdown"},o.map(function(A){var H=A.closable,U=A.disabled,X=A.closeIcon,ee=A.key,J=A.label,oe=RC(H,X,f,U);return l.createElement(Nd,{key:ee,id:"".concat(_,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:U},l.createElement("span",null,J),oe&&l.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(se){se.stopPropagation(),M(se,ee)}},X||f.removeIcon||"×"))}));function T(A){for(var H=o.filter(function(oe){return!oe.disabled}),U=H.findIndex(function(oe){return oe.key===E})||0,X=H.length,ee=0;ee<X;ee+=1){U=(U+A+X)%X;var J=H[U];if(!J.disabled){O(J.key);return}}}function z(A){var H=A.which;if(!S){[ct.DOWN,ct.SPACE,ct.ENTER].includes(H)&&(w(!0),A.preventDefault());return}switch(H){case ct.UP:T(-1),A.preventDefault();break;case ct.DOWN:T(1),A.preventDefault();break;case ct.ESC:w(!1);break;case ct.SPACE:case ct.ENTER:E!==null&&y(E,A);break}}l.useEffect(function(){var A=document.getElementById(R);A&&A.scrollIntoView&&A.scrollIntoView(!1)},[E]),l.useEffect(function(){S||O(null)},[S]);var j=B({},v?"marginRight":"marginLeft",m);o.length||(j.visibility="hidden",j.order=1);var L=Z(B({},"".concat(D,"-rtl"),v)),F=i?null:l.createElement(_P,be({prefixCls:D,overlay:k,visible:o.length?S:!1,onVisibleChange:w,overlayClassName:Z(L,g),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:p},c),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:j,"aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:z},P));return l.createElement("div",{className:Z("".concat(n,"-nav-operations"),d),style:u,ref:t},F,l.createElement(t6,{prefixCls:n,locale:a,editable:f}))});const FK=l.memo(LK,function(e,t){return t.tabMoving});var AK=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.focus,i=t.tab,s=i.key,c=i.label,u=i.disabled,d=i.closeIcon,f=i.icon,m=t.closable,v=t.renderWrapper,h=t.removeAriaLabel,y=t.editable,p=t.onClick,g=t.onFocus,C=t.onBlur,b=t.onKeyDown,S=t.onMouseDown,w=t.onMouseUp,$=t.style,x=t.tabCount,E=t.currentPosition,O="".concat(n,"-tab"),I=RC(m,d,y,u);function P(M){u||p(M)}function _(M){M.preventDefault(),M.stopPropagation(),y.onEdit("remove",{key:s,event:M})}var D=l.useMemo(function(){return f&&typeof c=="string"?l.createElement("span",null,c):c},[c,f]),R=l.useRef(null);l.useEffect(function(){a&&R.current&&R.current.focus()},[a]);var N=l.createElement("div",{key:s,"data-node-key":e6(s),className:Z(O,B(B(B(B({},"".concat(O,"-with-remove"),I),"".concat(O,"-active"),o),"".concat(O,"-disabled"),u),"".concat(O,"-focus"),a)),style:$,onClick:P},l.createElement("div",{ref:R,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(O,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(k){k.stopPropagation(),P(k)},onKeyDown:b,onMouseDown:S,onMouseUp:w,onFocus:g,onBlur:C},a&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(E," of ").concat(x)),f&&l.createElement("span",{className:"".concat(O,"-icon")},f),c&&D),I&&l.createElement("button",{type:"button",role:"tab","aria-label":h||"remove",tabIndex:o?0:-1,className:"".concat(O,"-remove"),onClick:function(k){k.stopPropagation(),_(k)}},d||y.removeIcon||"×"));return v?v(N):N},BK=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,d=s.left,f=s.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,i,a]},Jl=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-o)<1)return[c,u]}return[o,i]},Rf=function(t,n){return t[n?0:1]},Z2=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,v=e.children,h=e.onTabClick,y=e.onTabScroll,p=e.indicator,g=l.useContext(kh),C=g.prefixCls,b=g.tabs,S=l.useRef(null),w=l.useRef(null),$=l.useRef(null),x=l.useRef(null),E=l.useRef(null),O=l.useRef(null),I=l.useRef(null),P=f==="top"||f==="bottom",_=q2(0,function(mt,lt){P&&y&&y({direction:mt>lt?"left":"right"})}),D=te(_,2),R=D[0],N=D[1],M=q2(0,function(mt,lt){!P&&y&&y({direction:mt>lt?"top":"bottom"})}),k=te(M,2),T=k[0],z=k[1],j=l.useState([0,0]),L=te(j,2),F=L[0],A=L[1],H=l.useState([0,0]),U=te(H,2),X=U[0],ee=U[1],J=l.useState([0,0]),oe=te(J,2),ue=oe[0],se=oe[1],Q=l.useState([0,0]),fe=te(Q,2),de=fe[0],ie=fe[1],re=kK(new Map),he=te(re,2),ge=he[0],Ne=he[1],Pe=_K(b,ge,X[0]),ve=Rf(F,P),$e=Rf(X,P),Ee=Rf(ue,P),we=Rf(de,P),Ae=Math.floor(ve)<Math.floor($e+Ee),Le=Ae?ve-we:ve-Ee,Ye="".concat(C,"-nav-operations-hidden"),Ke=0,He=0;P&&s?(Ke=0,He=Math.max(0,$e-Le)):(Ke=Math.min(0,Le-$e),He=0);function Ue(mt){return mt<Ke?Ke:mt>He?He:mt}var Me=l.useRef(null),Se=l.useState(),Fe=te(Se,2),xe=Fe[0],Te=Fe[1];function Oe(){Te(Date.now())}function Ie(){Me.current&&clearTimeout(Me.current)}DK(x,function(mt,lt){function It(kt,ot){kt(function(Qe){var pt=Ue(Qe+ot);return pt})}return Ae?(P?It(N,mt):It(z,lt),Ie(),Oe(),!0):!1}),l.useEffect(function(){return Ie(),xe&&(Me.current=setTimeout(function(){Te(0)},100)),Ie},[xe]);var je=jK(Pe,Le,P?R:T,$e,Ee,we,q(q({},e),{},{tabs:b})),qe=te(je,2),ut=qe[0],bt=qe[1],Ge=zt(function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,lt=Pe.get(mt)||{width:0,height:0,left:0,right:0,top:0};if(P){var It=R;s?lt.right<R?It=lt.right:lt.right+lt.width>R+Le&&(It=lt.right+lt.width-Le):lt.left<-R?It=-lt.left:lt.left+lt.width>-R+Le&&(It=-(lt.left+lt.width-Le)),z(0),N(Ue(It))}else{var kt=T;lt.top<-T?kt=-lt.top:lt.top+lt.height>-T+Le&&(kt=-(lt.top+lt.height-Le)),N(0),z(Ue(kt))}}),tt=l.useState(),rt=te(tt,2),V=rt[0],ae=rt[1],me=l.useState(!1),Ce=te(me,2),pe=Ce[0],Re=Ce[1],W=b.filter(function(mt){return!mt.disabled}).map(function(mt){return mt.key}),K=function(lt){var It=W.indexOf(V||i),kt=W.length,ot=(It+lt+kt)%kt,Qe=W[ot];ae(Qe)},G=function(lt,It){var kt=W.indexOf(lt),ot=b.find(function(pt){return pt.key===lt}),Qe=RC(ot==null?void 0:ot.closable,ot==null?void 0:ot.closeIcon,u,ot==null?void 0:ot.disabled);Qe&&(It.preventDefault(),It.stopPropagation(),u.onEdit("remove",{key:lt,event:It}),kt===W.length-1?K(-1):K(1))},ce=function(lt,It){Re(!0),It.button===1&&G(lt,It)},ye=function(lt){var It=lt.code,kt=s&&P,ot=W[0],Qe=W[W.length-1];switch(It){case"ArrowLeft":{P&&K(kt?1:-1);break}case"ArrowRight":{P&&K(kt?-1:1);break}case"ArrowUp":{lt.preventDefault(),P||K(-1);break}case"ArrowDown":{lt.preventDefault(),P||K(1);break}case"Home":{lt.preventDefault(),ae(ot);break}case"End":{lt.preventDefault(),ae(Qe);break}case"Enter":case"Space":{lt.preventDefault(),h(V??i,lt);break}case"Backspace":case"Delete":{G(V,lt);break}}},De={};P?De[s?"marginRight":"marginLeft"]=m:De.marginTop=m;var Be=b.map(function(mt,lt){var It=mt.key;return l.createElement(AK,{id:o,prefixCls:C,key:It,tab:mt,style:lt===0?void 0:De,closable:mt.closable,editable:u,active:It===i,focus:It===V,renderWrapper:v,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:W.length,currentPosition:lt+1,onClick:function(ot){h(It,ot)},onKeyDown:ye,onFocus:function(){pe||ae(It),Ge(It),Oe(),x.current&&(s||(x.current.scrollLeft=0),x.current.scrollTop=0)},onBlur:function(){ae(void 0)},onMouseDown:function(ot){return ce(It,ot)},onMouseUp:function(){Re(!1)}})}),Ve=function(){return Ne(function(){var lt,It=new Map,kt=(lt=E.current)===null||lt===void 0?void 0:lt.getBoundingClientRect();return b.forEach(function(ot){var Qe,pt=ot.key,Jt=(Qe=E.current)===null||Qe===void 0?void 0:Qe.querySelector('[data-node-key="'.concat(e6(pt),'"]'));if(Jt){var ln=BK(Jt,kt),Ht=te(ln,4),gn=Ht[0],yn=Ht[1],Dn=Ht[2],qn=Ht[3];It.set(pt,{width:gn,height:yn,left:Dn,top:qn})}}),It})};l.useEffect(function(){Ve()},[b.map(function(mt){return mt.key}).join("_")]);var ke=ZM(function(){var mt=Jl(S),lt=Jl(w),It=Jl($);A([mt[0]-lt[0]-It[0],mt[1]-lt[1]-It[1]]);var kt=Jl(I);se(kt);var ot=Jl(O);ie(ot);var Qe=Jl(E);ee([Qe[0]-kt[0],Qe[1]-kt[1]]),Ve()}),_e=b.slice(0,ut),We=b.slice(bt+1),Ze=[].concat(ze(_e),ze(We)),st=Pe.get(i),$t=NK({activeTabOffset:st,horizontal:P,indicator:p,rtl:s}),Ot=$t.style;l.useEffect(function(){Ge()},[i,Ke,He,Q2(st),Q2(Pe),P]),l.useEffect(function(){ke()},[s]);var ft=!!Ze.length,_t="".concat(C,"-nav-wrap"),Xe,it,xt,dt;return P?s?(it=R>0,Xe=R!==He):(Xe=R<0,it=R!==Ke):(xt=T<0,dt=T!==Ke),l.createElement(Sr,{onResize:ke},l.createElement("div",{ref:Wa(t,S),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:Z("".concat(C,"-nav"),n),style:r,onKeyDown:function(){Oe()}},l.createElement(J2,{ref:w,position:"left",extra:c,prefixCls:C}),l.createElement(Sr,{onResize:ke},l.createElement("div",{className:Z(_t,B(B(B(B({},"".concat(_t,"-ping-left"),Xe),"".concat(_t,"-ping-right"),it),"".concat(_t,"-ping-top"),xt),"".concat(_t,"-ping-bottom"),dt)),ref:x},l.createElement(Sr,{onResize:ke},l.createElement("div",{ref:E,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(T,"px)"),transition:xe?"none":void 0}},Be,l.createElement(t6,{ref:I,prefixCls:C,locale:d,editable:u,style:q(q({},Be.length===0?void 0:De),{},{visibility:ft?"hidden":null})}),l.createElement("div",{className:Z("".concat(C,"-ink-bar"),B({},"".concat(C,"-ink-bar-animated"),a.inkBar)),style:Ot}))))),l.createElement(FK,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:C,tabs:Ze,className:!ft&&Ye,tabMoving:!!xe})),l.createElement(J2,{ref:$,position:"right",extra:c,prefixCls:C})))}),n6=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:Z(n,i&&"".concat(n,"-active"),r),ref:t},c)}),HK=["renderTabBar"],VK=["label","key"],WK=function(t){var n=t.renderTabBar,r=Pt(t,HK),o=l.useContext(kh),a=o.tabs;if(n){var i=q(q({},r),{},{panes:a.map(function(s){var c=s.label,u=s.key,d=Pt(s,VK);return l.createElement(n6,be({tab:c,key:u,tabKey:u},d))})});return n(i,Z2)}return l.createElement(Z2,r)},KK=["key","forceRender","style","className","destroyInactiveTabPane"],UK=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(kh),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:Z("".concat(c,"-content-holder"))},l.createElement("div",{className:Z("".concat(c,"-content"),"".concat(c,"-content-").concat(a),B({},"".concat(c,"-content-animated"),d))},u.map(function(m){var v=m.key,h=m.forceRender,y=m.style,p=m.className,g=m.destroyInactiveTabPane,C=Pt(m,KK),b=v===r;return l.createElement(ko,be({key:v,visible:b,forceRender:h,removeOnLeave:!!(i||g),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,w){var $=S.style,x=S.className;return l.createElement(n6,be({},C,{prefixCls:f,id:n,tabKey:v,animated:d,active:b,style:q(q({},y),$),className:Z(p,x),ref:w}))})})))};function qK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=q({inkBar:!0},ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var GK=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],e$=0,YK=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,v=m===void 0?"top":m,h=e.tabBarGutter,y=e.tabBarStyle,p=e.tabBarExtraContent,g=e.locale,C=e.more,b=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,$=e.onTabClick,x=e.onTabScroll,E=e.getPopupContainer,O=e.popupClassName,I=e.indicator,P=Pt(e,GK),_=l.useMemo(function(){return(i||[]).filter(function(de){return de&&ht(de)==="object"&&"key"in de})},[i]),D=s==="rtl",R=qK(f),N=l.useState(!1),M=te(N,2),k=M[0],T=M[1];l.useEffect(function(){T(ph())},[]);var z=en(function(){var de;return(de=_[0])===null||de===void 0?void 0:de.key},{value:c,defaultValue:u}),j=te(z,2),L=j[0],F=j[1],A=l.useState(function(){return _.findIndex(function(de){return de.key===L})}),H=te(A,2),U=H[0],X=H[1];l.useEffect(function(){var de=_.findIndex(function(re){return re.key===L});if(de===-1){var ie;de=Math.max(0,Math.min(U,_.length-1)),F((ie=_[de])===null||ie===void 0?void 0:ie.key)}X(de)},[_.map(function(de){return de.key}).join("_"),L,U]);var ee=en(null,{value:n}),J=te(ee,2),oe=J[0],ue=J[1];l.useEffect(function(){n||(ue("rc-tabs-".concat(e$)),e$+=1)},[]);function se(de,ie){$==null||$(de,ie);var re=de!==L;F(de),re&&(w==null||w(de))}var Q={id:oe,activeKey:L,animated:R,tabPosition:v,rtl:D,mobile:k},fe=q(q({},Q),{},{editable:d,locale:g,more:C,tabBarGutter:h,onTabClick:se,onTabScroll:x,extra:p,style:y,panes:null,getPopupContainer:E,popupClassName:O,indicator:I});return l.createElement(kh.Provider,{value:{tabs:_,prefixCls:o}},l.createElement("div",be({ref:t,id:n,className:Z(o,"".concat(o,"-").concat(v),B(B(B({},"".concat(o,"-mobile"),k),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),D),a)},P),l.createElement(WK,be({},fe,{renderTabBar:S})),l.createElement(UK,be({destroyInactiveTabPane:b},Q,{animated:R}))))});const XK={motionAppear:!1,motionEnter:!0,motionLeave:!0};function QK(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},XK),{motionName:Oi(e,"switch")})),n}var JK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ZK(e){return e.filter(t=>t)}function eU(e,t){if(e)return e.map(r=>{var o;const a=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:a})});const n=$r(t).map(r=>{if(l.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,c=JK(i,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return ZK(n)}const tU=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ba(e,"slide-up"),ba(e,"slide-down")]]},nU=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Y(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:na(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:Y(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Y(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Y(e.borderRadiusLG)} 0 0 ${Y(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 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},rU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},tn(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:`${Y(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ta),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Y(e.paddingXXS)} ${Y(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},oU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
304
+ right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
305
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Y(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Y(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},aU=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:i,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Y(e.borderRadius)} ${Y(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Y(e.borderRadius)} ${Y(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Y(e.borderRadius)} ${Y(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Y(e.borderRadius)} 0 0 ${Y(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},iU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},ra(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:na(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},lU=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Y(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Y(e.marginXS)},marginLeft:{_skip_check_:!0,value:Y(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},sU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${Y(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ra(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),iU(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},ra(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"}}}}}},cU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:a}=e,i=t||a,s=n||o,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-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}},uU=Gt("Tabs",e=>{const t=At(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Y(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Y(e.horizontalItemGutter)}`});return[aU(t),lU(t),oU(t),rU(t),nU(t),sU(t),tU(t)]},cU),dU=()=>null;var fU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mU=l.forwardRef((e,t)=>{var n,r,o,a,i,s,c,u,d,f,m;const{type:v,className:h,rootClassName:y,size:p,onEdit:g,hideAdd:C,centered:b,addIcon:S,removeIcon:w,moreIcon:$,more:x,popupClassName:E,children:O,items:I,animated:P,style:_,indicatorSize:D,indicator:R,destroyInactiveTabPane:N,destroyOnHidden:M}=e,k=fU(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:T}=k,{direction:z,tabs:j,getPrefixCls:L,getPopupContainer:F}=l.useContext(Et),A=L("tabs",T),H=Un(A),[U,X,ee]=uU(A,H),J=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:J.current}));let oe;v==="editable-card"&&(oe={onEdit:(re,{key:he,event:ge})=>{g==null||g(re==="add"?ge:he,re)},removeIcon:(n=w??(j==null?void 0:j.removeIcon))!==null&&n!==void 0?n:l.createElement(sc,null),addIcon:(S??(j==null?void 0:j.addIcon))||l.createElement(lv,null),showAdd:C!==!0});const ue=L(),se=sr(p),Q=eU(I,O),fe=QK(A,P),de=Object.assign(Object.assign({},j==null?void 0:j.style),_),ie={align:(r=R==null?void 0:R.align)!==null&&r!==void 0?r:(o=j==null?void 0:j.indicator)===null||o===void 0?void 0:o.align,size:(c=(i=(a=R==null?void 0:R.size)!==null&&a!==void 0?a:D)!==null&&i!==void 0?i:(s=j==null?void 0:j.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:j==null?void 0:j.indicatorSize};return U(l.createElement(YK,Object.assign({ref:J,direction:z,getPopupContainer:F},k,{items:Q,className:Z({[`${A}-${se}`]:se,[`${A}-card`]:["card","editable-card"].includes(v),[`${A}-editable-card`]:v==="editable-card",[`${A}-centered`]:b},j==null?void 0:j.className,h,y,X,ee,H),popupClassName:Z(E,X,ee,H),style:de,editable:oe,more:Object.assign({icon:(m=(f=(d=(u=j==null?void 0:j.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:j==null?void 0:j.moreIcon)!==null&&f!==void 0?f:$)!==null&&m!==void 0?m:l.createElement(vC,null),transitionName:`${ue}-slide-up`},x),prefixCls:A,animated:fe,indicator:ie,destroyInactiveTabPane:M??N})))}),r6=mU;r6.TabPane=dU;var vU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const o6=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=vU(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=l.useContext(Et),i=a("card",t),s=Z(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},o,{className:s}))},hU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Y(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`},Ei()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ta),{[`
306
+ > ${n}-typography,
307
+ > ${n}-typography-edit-content
308
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},gU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
309
+ ${Y(o)} 0 0 0 ${n},
310
+ 0 ${Y(o)} 0 0 ${n},
311
+ ${Y(o)} ${Y(o)} 0 0 ${n},
312
+ ${Y(o)} 0 0 0 ${n} inset,
313
+ 0 ${Y(o)} 0 0 ${n} inset;
314
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},pU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`},Ei()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:Y(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Y(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${a}`}}})},yU=e=>Object.assign(Object.assign({margin:`${Y(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ei()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ta),"&-description":{color:e.colorTextDescription}}),bU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${Y(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Y(e.padding)} ${Y(o)}`}}},CU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},SU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},tn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:hU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`},[`${t}-grid`]:gU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:pU(e),[`${t}-meta`]:yU(e)}),[`${t}-bordered`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:bU(e),[`${t}-loading`]:CU(e),[`${t}-rtl`]:{direction:"rtl"}}},xU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Y(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},wU=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},$U=Gt("Card",e=>{const t=At(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[SU(t),xU(t)]},wU);var t$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,o))}))},OU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:v,type:h,cover:y,actions:p,tabList:g,children:C,activeTabKey:b,defaultActiveTabKey:S,tabBarExtraContent:w,hoverable:$,tabProps:x={},classNames:E,styles:O}=e,I=t$(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:_,card:D}=l.useContext(Et),[R]=_l("card",m,f),N=Pe=>{var ve;(ve=e.onTabChange)===null||ve===void 0||ve.call(e,Pe)},M=Pe=>{var ve;return Z((ve=D==null?void 0:D.classNames)===null||ve===void 0?void 0:ve[Pe],E==null?void 0:E[Pe])},k=Pe=>{var ve;return Object.assign(Object.assign({},(ve=D==null?void 0:D.styles)===null||ve===void 0?void 0:ve[Pe]),O==null?void 0:O[Pe])},T=l.useMemo(()=>{let Pe=!1;return l.Children.forEach(C,ve=>{(ve==null?void 0:ve.type)===o6&&(Pe=!0)}),Pe},[C]),z=P("card",n),[j,L,F]=$U(z),A=l.createElement(Ml,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),H=b!==void 0,U=Object.assign(Object.assign({},x),{[H?"activeKey":"defaultActiveKey"]:H?b:S,tabBarExtraContent:w});let X;const ee=sr(v),J=!ee||ee==="default"?"large":ee,oe=g?l.createElement(r6,Object.assign({size:J},U,{className:`${z}-head-tabs`,onChange:N,items:g.map(Pe=>{var{tab:ve}=Pe,$e=t$(Pe,["tab"]);return Object.assign({label:ve},$e)})})):null;if(u||i||oe){const Pe=Z(`${z}-head`,M("header")),ve=Z(`${z}-head-title`,M("title")),$e=Z(`${z}-extra`,M("extra")),Ee=Object.assign(Object.assign({},s),k("header"));X=l.createElement("div",{className:Pe,style:Ee},l.createElement("div",{className:`${z}-head-wrapper`},u&&l.createElement("div",{className:ve,style:k("title")},u),i&&l.createElement("div",{className:$e,style:k("extra")},i)),oe)}const ue=Z(`${z}-cover`,M("cover")),se=y?l.createElement("div",{className:ue,style:k("cover")},y):null,Q=Z(`${z}-body`,M("body")),fe=Object.assign(Object.assign({},c),k("body")),de=l.createElement("div",{className:Q,style:fe},d?A:C),ie=Z(`${z}-actions`,M("actions")),re=p!=null&&p.length?l.createElement(EU,{actionClasses:ie,actionStyle:k("actions"),actions:p}):null,he=un(I,["onTabChange"]),ge=Z(z,D==null?void 0:D.className,{[`${z}-loading`]:d,[`${z}-bordered`]:R!=="borderless",[`${z}-hoverable`]:$,[`${z}-contain-grid`]:T,[`${z}-contain-tabs`]:g==null?void 0:g.length,[`${z}-${ee}`]:ee,[`${z}-type-${h}`]:!!h,[`${z}-rtl`]:_==="rtl"},r,o,L,F),Ne=Object.assign(Object.assign({},D==null?void 0:D.style),a);return j(l.createElement("div",Object.assign({ref:t},he,{className:ge,style:Ne}),X,se,de,re))});var IU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RU=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=IU(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(Et),c=s("card",t),u=Z(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?l.createElement("div",{className:`${c}-meta-title`},o):null,m=a?l.createElement("div",{className:`${c}-meta-description`},a):null,v=f||m?l.createElement("div",{className:`${c}-meta-detail`},f,m):null;return l.createElement("div",Object.assign({},i,{className:u}),d,v)},Xs=OU;Xs.Grid=o6;Xs.Meta=RU;function PU(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function h(p){var g=p||{},C=g.upcomingOnly,b=C===void 0?!1:C;v(),f=!b}function y(){for(var p=arguments.length,g=new Array(p),C=0;C<p;C++)g[C]=arguments[C];var b=this,S=Date.now()-m;if(f)return;function w(){m=Date.now(),t.apply(b,g)}function $(){d=void 0}!s&&u&&!d&&w(),v(),u===void 0&&S>e?s?(m=Date.now(),a||(d=setTimeout(u?$:w,e))):w():a!==!0&&(d=setTimeout(u?$:w,u===void 0?e-S:e))}return y.cancel=h,y}function MU(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return PU(e,t,{debounceMode:a!==!1})}function Jr(e,t){return e[t]}var NU=["children"];function a6(e,t){return"".concat(e,"-").concat(t)}function _U(e){return e&&e.type&&e.type.isTreeNode}function kd(e,t){return e??t}function Qs(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function i6(e){function t(n){var r=$r(n);return r.map(function(o){if(!_U(o))return Sn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,s=i.children,c=Pt(i,NU),u=q({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function bp(e,t,n){var r=Qs(n),o=r._title,a=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var h=a6(f?f.pos:"0",v),y=kd(m[a],h),p,g=0;g<o.length;g+=1){var C=o[g];if(m[C]!==void 0){p=m[C];break}}var b=Object.assign(un(m,[].concat(ze(o),[a,i])),{title:p,key:y,parent:f,pos:h,children:null,data:m,isStart:[].concat(ze(f?f.isStart:[]),[v===0]),isEnd:[].concat(ze(f?f.isEnd:[]),[v===d.length-1])});return c.push(b),t===!0||s.has(y)?b.children=u(m[i]||[],b):b.children=[],b})}return u(e),c}function TU(e,t,n){var r={};ht(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,i=o.externalGetKey,s=o.fieldNames,c=Qs(s),u=c.key,d=c.children,f=a||d,m;i?typeof i=="string"?m=function(y){return y[i]}:typeof i=="function"&&(m=function(y){return i(y)}):m=function(y,p){return kd(y[u],p)};function v(h,y,p,g){var C=h?h[f]:e,b=h?a6(p.pos,y):"0",S=h?[].concat(ze(g),[h]):[];if(h){var w=m(h,b),$={node:h,index:y,pos:b,key:w,parentPos:p.node?p.pos:null,level:p.level+1,nodes:S};t($)}C&&C.forEach(function(x,E){v(x,E,{node:h,pos:b,level:p?p.level+1:-1},S)})}v(null)}function PC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),TU(e,function(v){var h=v.node,y=v.index,p=v.pos,g=v.key,C=v.parentPos,b=v.level,S=v.nodes,w={node:h,nodes:S,index:y,key:g,pos:p,level:b},$=kd(g,p);d[p]=w,f[$]=w,w.parent=d[C],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,m)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),o&&o(m),m}function Eu(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Jr(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Jn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,h=q(q({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Sn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function l6(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function DU(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function kU(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var m=f.key,v=f.node,h=f.children,y=h===void 0?[]:h;o.has(m)&&!r(v)&&y.filter(function(p){return!r(p.node)}).forEach(function(p){o.add(p.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var h=!0,y=!1;(m.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var g=p.key,C=o.has(g);h&&!C&&(h=!1),!y&&(C||a.has(g))&&(y=!0)}),h&&o.add(m.key),y&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(l6(a,o))}}function jU(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var v=m.key,h=m.node,y=m.children,p=y===void 0?[]:y;!a.has(v)&&!i.has(v)&&!o(h)&&p.filter(function(g){return!o(g.node)}).forEach(function(g){a.delete(g.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var v=m.parent,h=m.node;if(!(o(h)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var y=!0,p=!1;(v.children||[]).filter(function(g){return!o(g.node)}).forEach(function(g){var C=g.key,b=a.has(C);y&&!b&&(y=!1),!p&&(b||i.has(C))&&(p=!0)}),y||a.delete(v.key),p&&i.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(l6(i,a))}}function _s(e,t,n,r){var o=[],a;r?a=r:a=DU;var i=new Set(e.filter(function(d){var f=!!Jr(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),c=Math.max(c,m)}),Sn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=kU(i,s,c,a):u=jU(i,t.halfCheckedKeys,s,c,a),u}const zU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},tn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},tn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},tn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:na(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Y(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
315
+ ${n}:not(${n}-disabled),
316
+ ${t}:not(${t}-disabled)
317
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
318
+ ${n}-checked:not(${n}-disabled),
319
+ ${t}-checked:not(${t}-disabled)
320
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function s6(e,t){const n=At(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return zU(n)}const c6=Gt("Checkbox",(e,{prefixCls:t})=>[s6(t,e)]),u6=le.createContext(null);var LU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FU=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,v=LU(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:y,checkbox:p}=l.useContext(Et),g=l.useContext(u6),{isFormItemInput:C}=l.useContext(ir),b=l.useContext(zr),S=(n=(g==null?void 0:g.disabled)||m)!==null&&n!==void 0?n:b,w=l.useRef(v.value),$=l.useRef(null),x=lr(t,$);l.useEffect(()=>{g==null||g.registerValue(v.value)},[]),l.useEffect(()=>{if(!f)return v.value!==w.current&&(g==null||g.cancelValue(w.current),g==null||g.registerValue(v.value),w.current=v.value),()=>g==null?void 0:g.cancelValue(v.value)},[v.value]),l.useEffect(()=>{var T;!((T=$.current)===null||T===void 0)&&T.input&&($.current.input.indeterminate=s)},[s]);const E=h("checkbox",r),O=Un(E),[I,P,_]=c6(E,O),D=Object.assign({},v);g&&!f&&(D.onChange=(...T)=>{v.onChange&&v.onChange.apply(v,T),g.toggleOption&&g.toggleOption({label:i,value:v.value})},D.name=g.name,D.checked=g.value.includes(v.value));const R=Z(`${E}-wrapper`,{[`${E}-rtl`]:y==="rtl",[`${E}-wrapper-checked`]:D.checked,[`${E}-wrapper-disabled`]:S,[`${E}-wrapper-in-form-item`]:C},p==null?void 0:p.className,o,a,_,O,P),N=Z({[`${E}-indeterminate`]:s},th,P),[M,k]=FM(D.onClick);return I(l.createElement(wd,{component:"Checkbox",disabled:S},l.createElement("label",{className:R,style:Object.assign(Object.assign({},p==null?void 0:p.style),c),onMouseEnter:u,onMouseLeave:d,onClick:M},l.createElement(LM,Object.assign({},D,{onClick:k,prefixCls:E,className:N,disabled:S,ref:x})),i!=null&&l.createElement("span",{className:`${E}-label`},i))))},d6=l.forwardRef(FU);var AU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:c,onChange:u}=e,d=AU(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=l.useContext(Et),[v,h]=l.useState(d.value||n||[]),[y,p]=l.useState([]);l.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const g=l.useMemo(()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[o]),C=N=>{p(M=>M.filter(k=>k!==N))},b=N=>{p(M=>[].concat(ze(M),[N]))},S=N=>{const M=v.indexOf(N.value),k=ze(v);M===-1?k.push(N.value):k.splice(M,1),"value"in d||h(k),u==null||u(k.filter(T=>y.includes(T)).sort((T,z)=>{const j=g.findIndex(F=>F.value===T),L=g.findIndex(F=>F.value===z);return j-L}))},w=f("checkbox",a),$=`${w}-group`,x=Un(w),[E,O,I]=c6(w,x),P=un(d,["value","disabled"]),_=o.length?g.map(N=>l.createElement(d6,{prefixCls:w,key:N.value.toString(),disabled:"disabled"in N?N.disabled:d.disabled,value:N.value,checked:v.includes(N.value),onChange:N.onChange,className:Z(`${$}-item`,N.className),style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,D=l.useMemo(()=>({toggleOption:S,value:v,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:C}),[S,v,d.disabled,d.name,b,C]),R=Z($,{[`${$}-rtl`]:m==="rtl"},i,s,I,x,O);return E(l.createElement("div",Object.assign({className:R,style:c},P,{ref:t}),l.createElement(u6.Provider,{value:D},_)))}),Cl=d6;Cl.Group=BU;Cl.__ANT_CHECKBOX=!0;const f6=l.createContext({});var HU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function n$(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const VU=["xs","sm","md","lg","xl","xxl"],m6=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Et),{gutter:o,wrap:a}=l.useContext(f6),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:h,style:y}=e,p=HU(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",i),[C,b,S]=fA(g),w={};let $={};VU.forEach(O=>{let I={};const P=e[O];typeof P=="number"?I.span=P:typeof P=="object"&&(I=P||{}),delete p[O],$=Object.assign(Object.assign({},$),{[`${g}-${O}-${I.span}`]:I.span!==void 0,[`${g}-${O}-order-${I.order}`]:I.order||I.order===0,[`${g}-${O}-offset-${I.offset}`]:I.offset||I.offset===0,[`${g}-${O}-push-${I.push}`]:I.push||I.push===0,[`${g}-${O}-pull-${I.pull}`]:I.pull||I.pull===0,[`${g}-rtl`]:r==="rtl"}),I.flex&&($[`${g}-${O}-flex`]=!0,w[`--${g}-${O}-flex`]=n$(I.flex))});const x=Z(g,{[`${g}-${s}`]:s!==void 0,[`${g}-order-${c}`]:c,[`${g}-offset-${u}`]:u,[`${g}-push-${d}`]:d,[`${g}-pull-${f}`]:f},m,$,b,S),E={};if(o!=null&&o[0]){const O=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;E.paddingLeft=O,E.paddingRight=O}return h&&(E.flex=n$(h),a===!1&&!E.minWidth&&(E.minWidth=0)),C(l.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},E),y),w),className:x,ref:t}),v))});function WU(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Gs.length;s++){const c=Gs[s];if(o[c]&&a[c]!==void 0){n[i]=a[c];break}}else n[i]=a}),n}var KU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function r$(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Gs.length;a++){const i=Gs[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return l.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const UU=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:c=0,wrap:u}=e,d=KU(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=l.useContext(Et),v=xh(!0,null),h=r$(o,v),y=r$(r,v),p=f("row",n),[g,C,b]=dA(p),S=WU(c,v),w=Z(p,{[`${p}-no-wrap`]:u===!1,[`${p}-${y}`]:y,[`${p}-${h}`]:h,[`${p}-rtl`]:m==="rtl"},a,C,b),$={};if(S!=null&&S[0]){const I=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;$.marginLeft=I,$.marginRight=I}const[x,E]=S;$.rowGap=E;const O=l.useMemo(()=>({gutter:[x,E],wrap:u}),[x,E,u]);return g(l.createElement(f6.Provider,{value:O},l.createElement("div",Object.assign({},d,{className:w,style:Object.assign(Object.assign({},$),i),ref:t}),s)))});var o$=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},ua=function(t){return t!==void 0?"".concat(t,"px"):void 0};function qU(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,a=e.motionName,i=e.onMotionStart,s=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=l.useRef(null),m=l.useState(r),v=te(m,2),h=v[0],y=v[1],p=function(N){var M,k=o(N),T=(M=n.current)===null||M===void 0?void 0:M.querySelectorAll(".".concat(t,"-item"))[k];return(T==null?void 0:T.offsetParent)&&T},g=l.useState(null),C=te(g,2),b=C[0],S=C[1],w=l.useState(null),$=te(w,2),x=$[0],E=$[1];Dt(function(){if(h!==r){var R=p(h),N=p(r),M=o$(R,d),k=o$(N,d);y(r),S(M),E(k),R&&N?i():s()}},[r]);var O=l.useMemo(function(){if(d){var R;return ua((R=b==null?void 0:b.top)!==null&&R!==void 0?R:0)}return ua(c==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[d,c,b]),I=l.useMemo(function(){if(d){var R;return ua((R=x==null?void 0:x.top)!==null&&R!==void 0?R:0)}return ua(c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[d,c,x]),P=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},_=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},D=function(){S(null),E(null),s()};return!b||!x?null:l.createElement(ko,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:P,onAppearActive:_,onVisibleChanged:D},function(R,N){var M=R.className,k=R.style,T=q(q({},k),{},{"--thumb-start-left":O,"--thumb-start-width":ua(b==null?void 0:b.width),"--thumb-active-left":I,"--thumb-active-width":ua(x==null?void 0:x.width),"--thumb-start-top":O,"--thumb-start-height":ua(b==null?void 0:b.height),"--thumb-active-top":I,"--thumb-active-height":ua(x==null?void 0:x.height)}),z={ref:lr(f,N),style:T,className:Z("".concat(t,"-thumb"),M)};return l.createElement("div",z)})}var GU=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function YU(e){if(typeof e.title<"u")return e.title;if(ht(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function XU(e){return e.map(function(t){if(ht(t)==="object"&&t!==null){var n=YU(t);return q(q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var QU=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,a=t.checked,i=t.label,s=t.title,c=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,v=t.onKeyDown,h=t.onKeyUp,y=t.onMouseDown,p=function(C){o||d(C,c)};return l.createElement("label",{className:Z(r,B({},"".concat(n,"-item-disabled"),o)),onMouseDown:y},l.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:a,onChange:p,onFocus:f,onBlur:m,onKeyDown:v,onKeyUp:h}),l.createElement("div",{className:"".concat(n,"-item-label"),title:s},i))},JU=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-segmented":r,a=e.direction,i=e.vertical,s=e.options,c=s===void 0?[]:s,u=e.disabled,d=e.defaultValue,f=e.value,m=e.name,v=e.onChange,h=e.className,y=h===void 0?"":h,p=e.motionName,g=p===void 0?"thumb-motion":p,C=Pt(e,GU),b=l.useRef(null),S=l.useMemo(function(){return lr(b,t)},[b,t]),w=l.useMemo(function(){return XU(c)},[c]),$=en((n=w[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),x=te($,2),E=x[0],O=x[1],I=l.useState(!1),P=te(I,2),_=P[0],D=P[1],R=function(se,Q){O(Q),v==null||v(Q)},N=un(C,["children"]),M=l.useState(!1),k=te(M,2),T=k[0],z=k[1],j=l.useState(!1),L=te(j,2),F=L[0],A=L[1],H=function(){A(!0)},U=function(){A(!1)},X=function(){z(!1)},ee=function(se){se.key==="Tab"&&z(!0)},J=function(se){var Q=w.findIndex(function(re){return re.value===E}),fe=w.length,de=(Q+se+fe)%fe,ie=w[de];ie&&(O(ie.value),v==null||v(ie.value))},oe=function(se){switch(se.key){case"ArrowLeft":case"ArrowUp":J(-1);break;case"ArrowRight":case"ArrowDown":J(1);break}};return l.createElement("div",be({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":i?"vertical":"horizontal"},N,{className:Z(o,B(B(B({},"".concat(o,"-rtl"),a==="rtl"),"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),i),y),ref:S}),l.createElement("div",{className:"".concat(o,"-group")},l.createElement(qU,{vertical:i,prefixCls:o,value:E,containerRef:b,motionName:"".concat(o,"-").concat(g),direction:a,getValueIndex:function(se){return w.findIndex(function(Q){return Q.value===se})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),w.map(function(ue){return l.createElement(QU,be({},ue,{name:m,key:ue.value,prefixCls:o,className:Z(ue.className,"".concat(o,"-item"),B(B({},"".concat(o,"-item-selected"),ue.value===E&&!_),"".concat(o,"-item-focused"),F&&T&&ue.value===E)),checked:ue.value===E,onChange:R,onFocus:H,onBlur:U,onKeyDown:oe,onKeyUp:ee,onMouseDown:X,disabled:!!u||!!ue.disabled}))})))}),ZU=JU;function a$(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function i$(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const eq=Object.assign({overflow:"hidden"},ta),tq=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),ra(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 ${Y(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},i$(e)),{color:e.itemSelectedColor}),"&-focused":na(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Y(n),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`},eq),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},i$(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Y(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Y(r),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:Y(o),padding:`0 ${Y(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),a$(`&-disabled ${t}-item`,e)),a$(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},nq=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a,lineWidthBold:i,colorBgLayout:s}=e;return{trackPadding:i,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:n}},rq=Gt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=At(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return tq(r)},nq);var l$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function oq(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const aq=l.forwardRef((e,t)=>{const n=Od(),{prefixCls:r,className:o,rootClassName:a,block:i,options:s=[],size:c="middle",style:u,vertical:d,shape:f="default",name:m=n}=e,v=l$(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:h,direction:y,className:p,style:g}=gr("segmented"),C=h("segmented",r),[b,S,w]=rq(C),$=sr(c),x=l.useMemo(()=>s.map(I=>{if(oq(I)){const{icon:P,label:_}=I,D=l$(I,["icon","label"]);return Object.assign(Object.assign({},D),{label:l.createElement(l.Fragment,null,l.createElement("span",{className:`${C}-item-icon`},P),_&&l.createElement("span",null,_))})}return I}),[s,C]),E=Z(o,a,p,{[`${C}-block`]:i,[`${C}-sm`]:$==="small",[`${C}-lg`]:$==="large",[`${C}-vertical`]:d,[`${C}-shape-${f}`]:f==="round"},S,w),O=Object.assign(Object.assign({},g),u);return b(l.createElement(ZU,Object.assign({},v,{name:m,className:E,style:O,options:x,ref:t,prefixCls:C,direction:y,vertical:d})))}),iq=aq;var lq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},sq=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:lq}))},cq=l.forwardRef(sq);function ob(){return typeof BigInt=="function"}function v6(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ul(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function jh(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function h6(e){var t=e.toLowerCase().split("e"),n=te(t,2),r=n[0],o=n[1],a=o===void 0?"0":o,i=r.startsWith("-"),s=i?r.slice(1):r,c=s.split("."),u=te(c,2),d=u[0],f=d===void 0?"0":d,m=u[1],v=m===void 0?"":m,h="".concat(f).concat(v).replace(/^0+/,"")||"0";return{decimal:v,digits:h,exponent:Number(a),integer:f,negative:i}}function uq(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,a=e.negative;if(n==="0")return"0";var i=o.replace(/^0+/,"").length,s=(t.match(/^0*/)||[""])[0].length,c=i||-s,u=c+r,d="";return u<=0?d="0.".concat("0".repeat(-u)).concat(n):u>=n.length?d="".concat(n).concat("0".repeat(u-n.length)):d="".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(a?"-":"").concat(d)}function g6(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Ki(e){var t=String(e);return jh(e)?g6(h6(t)):t.includes(".")&&MC(t)?t.length-t.indexOf(".")-1:0}function zh(e){var t=String(e);if(jh(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ob()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(ob()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=h6(t),r=g6(n);t=r>100?uq(n):e.toFixed(r)}return ul(t).fullStr}function MC(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var dq=function(){function e(t){if(Pn(this,e),B(this,"origin",""),B(this,"negative",void 0),B(this,"integer",void 0),B(this,"decimal",void 0),B(this,"decimalLen",void 0),B(this,"empty",void 0),B(this,"nan",void 0),v6(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(jh(n)&&(n=Number(n)),n=typeof n=="string"?n:zh(n),MC(n)){var r=ul(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return Mn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),s=n.alignDecimal(a),c=r(i,s).toString(),u=o(a),d=ul(c),f=d.negativeStr,m=d.trimStr,v="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(v.slice(0,-u),".").concat(v.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,a){return o+a},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,a){return o*a},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ul("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),fq=function(){function e(t){if(Pn(this,e),B(this,"origin",""),B(this,"number",void 0),B(this,"empty",void 0),v6(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Mn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(Ki(this.number),Ki(r));return new e(o.toFixed(a))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(Ki(this.number),Ki(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":jh(this.number)&&Ki(this.number)>100?String(this.number):zh(this.number):this.origin}}]),e}();function Fo(e){return ob()?new dq(e):new fq(e)}function dm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ul(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(a).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=Fo(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return dm(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function mq(e){return!!(e.addonBefore||e.addonAfter)}function vq(e){return!!(e.prefix||e.suffix||e.allowClear)}function s$(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function sv(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=s$(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=s$(t,e,r),n(o);return}n(o)}}function NC(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var _C=le.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,s=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,v=e.style,h=e.disabled,y=e.readOnly,p=e.focused,g=e.triggerFocus,C=e.allowClear,b=e.value,S=e.handleReset,w=e.hidden,$=e.classes,x=e.classNames,E=e.dataAttrs,O=e.styles,I=e.components,P=e.onClear,_=i??a,D=(I==null?void 0:I.affixWrapper)||"span",R=(I==null?void 0:I.groupWrapper)||"span",N=(I==null?void 0:I.wrapper)||"span",M=(I==null?void 0:I.groupAddon)||"span",k=l.useRef(null),T=function(ie){var re;(re=k.current)!==null&&re!==void 0&&re.contains(ie.target)&&(g==null||g())},z=vq(e),j=l.cloneElement(_,{value:b,className:Z((n=_.props)===null||n===void 0?void 0:n.className,!z&&(x==null?void 0:x.variant))||null}),L=l.useRef(null);if(le.useImperativeHandle(t,function(){return{nativeElement:L.current||k.current}}),z){var F=null;if(C){var A=!h&&!y&&b,H="".concat(s,"-clear-icon"),U=ht(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";F=le.createElement("button",{type:"button",tabIndex:-1,onClick:function(ie){S==null||S(ie),P==null||P()},onMouseDown:function(ie){return ie.preventDefault()},className:Z(H,B(B({},"".concat(H,"-hidden"),!A),"".concat(H,"-has-suffix"),!!u))},U)}var X="".concat(s,"-affix-wrapper"),ee=Z(X,B(B(B(B(B({},"".concat(s,"-disabled"),h),"".concat(X,"-disabled"),h),"".concat(X,"-focused"),p),"".concat(X,"-readonly"),y),"".concat(X,"-input-with-clear-btn"),u&&C&&b),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),J=(u||C)&&le.createElement("span",{className:Z("".concat(s,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},F,u);j=le.createElement(D,be({className:ee,style:O==null?void 0:O.affixWrapper,onClick:T},E==null?void 0:E.affixWrapper,{ref:k}),c&&le.createElement("span",{className:Z("".concat(s,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},c),j,J)}if(mq(e)){var oe="".concat(s,"-group"),ue="".concat(oe,"-addon"),se="".concat(oe,"-wrapper"),Q=Z("".concat(s,"-wrapper"),oe,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),fe=Z(se,B({},"".concat(se,"-disabled"),h),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);j=le.createElement(R,{className:fe,ref:L},le.createElement(N,{className:Q},d&&le.createElement(M,{className:ue},d),j,f&&le.createElement(M,{className:ue},f)))}return le.cloneElement(j,{className:Z((r=j.props)===null||r===void 0?void 0:r.className,m)||null,style:q(q({},(o=j.props)===null||o===void 0?void 0:o.style),v),hidden:w})}),hq=["show"];function p6(e,t){return l.useMemo(function(){var n={};t&&(n.show=ht(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,o=r.show,a=Pt(r,hq);return q(q({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var gq=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],pq=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,v=e.className,h=e.maxLength,y=e.suffix,p=e.showCount,g=e.count,C=e.type,b=C===void 0?"text":C,S=e.classes,w=e.classNames,$=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,O=Pt(e,gq),I=l.useState(!1),P=te(I,2),_=P[0],D=P[1],R=l.useRef(!1),N=l.useRef(!1),M=l.useRef(null),k=l.useRef(null),T=function(we){M.current&&NC(M.current,we)},z=en(e.defaultValue,{value:e.value}),j=te(z,2),L=j[0],F=j[1],A=L==null?"":String(L),H=l.useState(null),U=te(H,2),X=U[0],ee=U[1],J=p6(g,p),oe=J.max||h,ue=J.strategy(A),se=!!oe&&ue>oe;l.useImperativeHandle(t,function(){var Ee;return{focus:T,blur:function(){var Ae;(Ae=M.current)===null||Ae===void 0||Ae.blur()},setSelectionRange:function(Ae,Le,Ye){var Ke;(Ke=M.current)===null||Ke===void 0||Ke.setSelectionRange(Ae,Le,Ye)},select:function(){var Ae;(Ae=M.current)===null||Ae===void 0||Ae.select()},input:M.current,nativeElement:((Ee=k.current)===null||Ee===void 0?void 0:Ee.nativeElement)||M.current}}),l.useEffect(function(){N.current&&(N.current=!1),D(function(Ee){return Ee&&f?!1:Ee})},[f]);var Q=function(we,Ae,Le){var Ye=Ae;if(!R.current&&J.exceedFormatter&&J.max&&J.strategy(Ae)>J.max){if(Ye=J.exceedFormatter(Ae,{max:J.max}),Ae!==Ye){var Ke,He;ee([((Ke=M.current)===null||Ke===void 0?void 0:Ke.selectionStart)||0,((He=M.current)===null||He===void 0?void 0:He.selectionEnd)||0])}}else if(Le.source==="compositionEnd")return;F(Ye),M.current&&sv(M.current,we,r,Ye)};l.useEffect(function(){if(X){var Ee;(Ee=M.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,ze(X))}},[X]);var fe=function(we){Q(we,we.target.value,{source:"change"})},de=function(we){R.current=!1,Q(we,we.currentTarget.value,{source:"compositionEnd"}),E==null||E(we)},ie=function(we){i&&we.key==="Enter"&&!N.current&&(N.current=!0,i(we)),s==null||s(we)},re=function(we){we.key==="Enter"&&(N.current=!1),c==null||c(we)},he=function(we){D(!0),o==null||o(we)},ge=function(we){N.current&&(N.current=!1),D(!1),a==null||a(we)},Ne=function(we){F(""),T(),M.current&&sv(M.current,we,r)},Pe=se&&"".concat(d,"-out-of-range"),ve=function(){var we=un(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return le.createElement("input",be({autoComplete:n},we,{onChange:fe,onFocus:he,onBlur:ge,onKeyDown:ie,onKeyUp:re,className:Z(d,B({},"".concat(d,"-disabled"),f),w==null?void 0:w.input),style:$==null?void 0:$.input,ref:M,size:m,type:b,onCompositionStart:function(Le){R.current=!0,x==null||x(Le)},onCompositionEnd:de}))},$e=function(){var we=Number(oe)>0;if(y||J.show){var Ae=J.showFormatter?J.showFormatter({value:A,count:ue,maxLength:oe}):"".concat(ue).concat(we?" / ".concat(oe):"");return le.createElement(le.Fragment,null,J.show&&le.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),B({},"".concat(d,"-show-count-has-suffix"),!!y),w==null?void 0:w.count),style:q({},$==null?void 0:$.count)},Ae),y)}return null};return le.createElement(_C,be({},O,{prefixCls:d,className:Z(v,Pe),handleReset:Ne,value:A,focused:_,triggerFocus:T,suffix:$e(),disabled:f,classes:S,classNames:w,styles:$,ref:k}),ve())});function yq(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var a=r[o];return typeof a=="function"?a.bind(r):a}}):e}function bq(e,t){var n=l.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,a),u=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=a.length;if(a.startsWith(s))d=s.length;else if(a.endsWith(c))d=a.length-n.current.afterTxt.length;else{var f=s[u-1],m=a.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(v){Sn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var Cq=function(){var t=l.useState(!1),n=te(t,2),r=n[0],o=n[1];return Dt(function(){o(ph())},[]),r},Sq=200,xq=600;function wq(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(b,S){b.preventDefault(),d(),u.current(S);function w(){u.current(S),s.current=setTimeout(w,Sq)}s.current=setTimeout(w,xq)};l.useEffect(function(){return function(){d(),c.current.forEach(function(C){return jt.cancel(C)})}},[]);var m=Cq();if(m)return null;var v="".concat(t,"-handler"),h=Z(v,"".concat(v,"-up"),B({},"".concat(v,"-up-disabled"),o)),y=Z(v,"".concat(v,"-down"),B({},"".concat(v,"-down-disabled"),a)),p=function(){return c.current.push(jt(d))},g={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return l.createElement("div",{className:"".concat(v,"-wrap")},l.createElement("span",be({},g,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",be({},g,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:y}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function c$(e){var t=typeof e=="number"?zh(e):ul(e).fullStr,n=t.includes(".");return n?ul(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const $q=function(){var e=l.useRef(0),t=function(){jt.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=jt(function(){n()})}};var Eq=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Oq=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],u$=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},d$=function(t){var n=Fo(t);return n.isInvalidate()?null:n},Iq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,v=e.upHandler,h=e.downHandler,y=e.keyboard,p=e.changeOnWheel,g=p===void 0?!1:p,C=e.controls,b=C===void 0?!0:C;e.classNames;var S=e.stringMode,w=e.parser,$=e.formatter,x=e.precision,E=e.decimalSeparator,O=e.onChange,I=e.onInput,P=e.onPressEnter,_=e.onStep,D=e.changeOnBlur,R=D===void 0?!0:D,N=e.domRef,M=Pt(e,Eq),k="".concat(n,"-input"),T=l.useRef(null),z=l.useState(!1),j=te(z,2),L=j[0],F=j[1],A=l.useRef(!1),H=l.useRef(!1),U=l.useRef(!1),X=l.useState(function(){return Fo(d??u)}),ee=te(X,2),J=ee[0],oe=ee[1];function ue(Ge){d===void 0&&oe(Ge)}var se=l.useCallback(function(Ge,tt){if(!tt)return x>=0?x:Math.max(Ki(Ge),Ki(c))},[x,c]),Q=l.useCallback(function(Ge){var tt=String(Ge);if(w)return w(tt);var rt=tt;return E&&(rt=rt.replace(E,".")),rt.replace(/[^\w.-]+/g,"")},[w,E]),fe=l.useRef(""),de=l.useCallback(function(Ge,tt){if($)return $(Ge,{userTyping:tt,input:String(fe.current)});var rt=typeof Ge=="number"?zh(Ge):Ge;if(!tt){var V=se(rt,tt);if(MC(rt)&&(E||V>=0)){var ae=E||".";rt=dm(rt,ae,V)}}return rt},[$,se,E]),ie=l.useState(function(){var Ge=u??d;return J.isInvalidate()&&["string","number"].includes(ht(Ge))?Number.isNaN(Ge)?"":Ge:de(J.toString(),!1)}),re=te(ie,2),he=re[0],ge=re[1];fe.current=he;function Ne(Ge,tt){ge(de(Ge.isInvalidate()?Ge.toString(!1):Ge.toString(!tt),tt))}var Pe=l.useMemo(function(){return d$(i)},[i,x]),ve=l.useMemo(function(){return d$(a)},[a,x]),$e=l.useMemo(function(){return!Pe||!J||J.isInvalidate()?!1:Pe.lessEquals(J)},[Pe,J]),Ee=l.useMemo(function(){return!ve||!J||J.isInvalidate()?!1:J.lessEquals(ve)},[ve,J]),we=bq(T.current,L),Ae=te(we,2),Le=Ae[0],Ye=Ae[1],Ke=function(tt){return Pe&&!tt.lessEquals(Pe)?Pe:ve&&!ve.lessEquals(tt)?ve:null},He=function(tt){return!Ke(tt)},Ue=function(tt,rt){var V=tt,ae=He(V)||V.isEmpty();if(!V.isEmpty()&&!rt&&(V=Ke(V)||V,ae=!0),!m&&!f&&ae){var me=V.toString(),Ce=se(me,rt);return Ce>=0&&(V=Fo(dm(me,".",Ce)),He(V)||(V=Fo(dm(me,".",Ce,!0)))),V.equals(J)||(ue(V),O==null||O(V.isEmpty()?null:u$(S,V)),d===void 0&&Ne(V,rt)),V}return J},Me=$q(),Se=function Ge(tt){if(Le(),fe.current=tt,ge(tt),!H.current){var rt=Q(tt),V=Fo(rt);V.isNaN()||Ue(V,!0)}I==null||I(tt),Me(function(){var ae=tt;w||(ae=tt.replace(/。/g,".")),ae!==tt&&Ge(ae)})},Fe=function(){H.current=!0},xe=function(){H.current=!1,Se(T.current.value)},Te=function(tt){Se(tt.target.value)},Oe=function(tt){var rt;if(!(tt&&$e||!tt&&Ee)){A.current=!1;var V=Fo(U.current?c$(c):c);tt||(V=V.negate());var ae=(J||Fo(0)).add(V.toString()),me=Ue(ae,!1);_==null||_(u$(S,me),{offset:U.current?c$(c):c,type:tt?"up":"down"}),(rt=T.current)===null||rt===void 0||rt.focus()}},Ie=function(tt){var rt=Fo(Q(he)),V;rt.isNaN()?V=Ue(J,tt):V=Ue(rt,tt),d!==void 0?Ne(J,!1):V.isNaN()||Ne(V,!1)},je=function(){A.current=!0},qe=function(tt){var rt=tt.key,V=tt.shiftKey;A.current=!0,U.current=V,rt==="Enter"&&(H.current||(A.current=!1),Ie(!1),P==null||P(tt)),y!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(rt)&&(Oe(rt==="Up"||rt==="ArrowUp"),tt.preventDefault())},ut=function(){A.current=!1,U.current=!1};l.useEffect(function(){if(g&&L){var Ge=function(V){Oe(V.deltaY<0),V.preventDefault()},tt=T.current;if(tt)return tt.addEventListener("wheel",Ge,{passive:!1}),function(){return tt.removeEventListener("wheel",Ge)}}});var bt=function(){R&&Ie(!1),F(!1),A.current=!1};return sl(function(){J.isInvalidate()||Ne(J,!1)},[x,$]),sl(function(){var Ge=Fo(d);oe(Ge);var tt=Fo(Q(he));(!Ge.equals(tt)||!A.current||$)&&Ne(Ge,A.current)},[d]),sl(function(){$&&Ye()},[he]),l.createElement("div",{ref:N,className:Z(n,r,B(B(B(B(B({},"".concat(n,"-focused"),L),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!He(J))),style:o,onFocus:function(){F(!0)},onBlur:bt,onKeyDown:qe,onKeyUp:ut,onCompositionStart:Fe,onCompositionEnd:xe,onBeforeInput:je},b&&l.createElement(wq,{prefixCls:n,upNode:v,downNode:h,upDisabled:$e,downDisabled:Ee,onStep:Oe}),l.createElement("div",{className:"".concat(k,"-wrap")},l.createElement("input",be({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:c},M,{ref:lr(T,t),className:k,value:he,onChange:Te,disabled:f,readOnly:m}))))}),Rq=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,v=Pt(e,Oq),h=l.useRef(null),y=l.useRef(null),p=l.useRef(null),g=function(b){p.current&&NC(p.current,b)};return l.useImperativeHandle(t,function(){return yq(p.current,{focus:g,nativeElement:h.current.nativeElement||y.current})}),l.createElement(_C,{className:f,triggerFocus:g,prefixCls:a,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},l.createElement(Iq,be({prefixCls:a,disabled:n,ref:p,domRef:y,className:m==null?void 0:m.input},v)))});const Pq=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ll(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Kt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},f$=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},Mq=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:v,colorIcon:h,motionDurationMid:y,handleHoverColor:p,handleOpacity:g,paddingInline:C,paddingBlock:b,handleBg:S,handleActiveBg:w,colorTextDisabled:$,borderRadiusSM:x,borderRadiusLG:E,controlWidth:O,handleBorderColor:I,filledHandleBg:P,lineHeightLG:_,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),Dd(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:o}),xC(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Y(n)} ${r} ${I}`}}})),$C(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${Y(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),EC(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Y(n)} ${r} ${I}`}}})),wC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:_,borderRadius:E,[`input${t}-input`]:{height:D(s).sub(D(n).mul(2)).equal(),padding:`${Y(m)} ${Y(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:x,[`input${t}-input`]:{height:D(c).sub(D(n).mul(2)).equal(),padding:`${Y(f)} ${Y(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},tn(e)),YM(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},WM(e)),UM(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),{width:"100%",padding:`${Y(b)} ${Y(C)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit"}),OC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
321
+ ${t}-handler-up-inner,
322
+ ${t}-handler-down-inner
323
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Y(n)} ${r} ${I}`,transition:`all ${y} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
324
+ ${t}-handler-up-inner,
325
+ ${t}-handler-down-inner
326
+ `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},oc()),{color:h,transition:`all ${y} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},f$(e,"lg")),f$(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
327
+ ${t}-handler-up-disabled,
328
+ ${t}-handler-down-disabled
329
+ `]:{cursor:"not-allowed"},[`
330
+ ${t}-handler-up-disabled:hover &-handler-up-inner,
331
+ ${t}-handler-down-disabled:hover &-handler-down-inner
332
+ `]:{color:$}})}]},Nq=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Y(n)} 0`}},Dd(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Y(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${Y(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},_q=Gt("InputNumber",e=>{const t=At(e,zl(e));return[Mq(t),Nq(t),dc(t)]},Pq,{unitless:{handleOpacity:!0},resetFont:!1});var Tq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y6=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(Et),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:v,bordered:h,readOnly:y,status:p,controls:g,variant:C}=e,b=Tq(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),w=Un(S),[$,x,E]=_q(S,w),{compactSize:O,compactItemClassnames:I}=$a(S,r);let P=l.createElement(cq,{className:`${S}-handler-up-inner`}),_=l.createElement(Ch,{className:`${S}-handler-down-inner`});const D=typeof g=="boolean"?g:void 0;typeof g=="object"&&(P=typeof g.upIcon>"u"?P:l.createElement("span",{className:`${S}-handler-up-inner`},g.upIcon),_=typeof g.downIcon>"u"?_:l.createElement("span",{className:`${S}-handler-down-inner`},g.downIcon));const{hasFeedback:R,status:N,isFormItemInput:M,feedbackIcon:k}=l.useContext(ir),T=Nl(N,p),z=sr(J=>{var oe;return(oe=s??O)!==null&&oe!==void 0?oe:J}),j=l.useContext(zr),L=c??j,[F,A]=_l("inputNumber",C,h),H=R&&l.createElement(l.Fragment,null,k),U=Z({[`${S}-lg`]:z==="large",[`${S}-sm`]:z==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:M},x),X=`${S}-group`,ee=l.createElement(Rq,Object.assign({ref:o,disabled:L,className:Z(E,w,a,i,I),upHandler:P,downHandler:_,prefixCls:S,readOnly:y,controls:D,prefix:m,suffix:H||v,addonBefore:d&&l.createElement(Sa,{form:!0,space:!0},d),addonAfter:f&&l.createElement(Sa,{form:!0,space:!0},f),classNames:{input:U,variant:Z({[`${S}-${F}`]:A},Ii(S,T,R)),affixWrapper:Z({[`${S}-affix-wrapper-sm`]:z==="small",[`${S}-affix-wrapper-lg`]:z==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:g===!1||L||y},x),wrapper:Z({[`${X}-rtl`]:r==="rtl"},x),groupWrapper:Z({[`${S}-group-wrapper-sm`]:z==="small",[`${S}-group-wrapper-lg`]:z==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${F}`]:A},Ii(`${S}-group-wrapper`,T,R),x)}},b));return $(ee)}),b6=y6,Dq=e=>l.createElement(jo,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(y6,Object.assign({},e)));b6._InternalPanelDoNotUseOrYouWillBeFired=Dq;const C6=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:le.createElement(lc,null)}),t};function S6(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function kq(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var jq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jd=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:v,style:h,styles:y,rootClassName:p,onChange:g,classNames:C,variant:b,_skipAddonWarning:S}=e,w=jq(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:$,direction:x,allowClear:E,autoComplete:O,className:I,style:P,classNames:_,styles:D}=gr("input"),R=$("input",n),N=l.useRef(null),M=Un(R),[k,T,z]=XM(R,p),[j]=QM(R,M),{compactSize:L,compactItemClassnames:F}=$a(R,x),A=sr(Ne=>{var Pe;return(Pe=a??L)!==null&&Pe!==void 0?Pe:Ne}),H=le.useContext(zr),U=i??H,{status:X,hasFeedback:ee,feedbackIcon:J}=l.useContext(ir),oe=Nl(X,o),ue=kq(e)||!!ee;l.useRef(ue);const se=S6(N,!0),Q=Ne=>{se(),s==null||s(Ne)},fe=Ne=>{se(),c==null||c(Ne)},de=Ne=>{se(),g==null||g(Ne)},ie=(ee||u)&&le.createElement(le.Fragment,null,u,ee&&J),re=C6(d??E),[he,ge]=_l("input",b,r);return k(j(le.createElement(pq,Object.assign({ref:lr(t,N),prefixCls:R,autoComplete:O},w,{disabled:U,onBlur:Q,onFocus:fe,style:Object.assign(Object.assign({},P),h),styles:Object.assign(Object.assign({},D),y),suffix:ie,allowClear:re,className:Z(v,p,z,M,F,I),onChange:de,addonBefore:m&&le.createElement(Sa,{form:!0,space:!0},m),addonAfter:f&&le.createElement(Sa,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),_),{input:Z({[`${R}-sm`]:A==="small",[`${R}-lg`]:A==="large",[`${R}-rtl`]:x==="rtl"},C==null?void 0:C.input,_.input,T),variant:Z({[`${R}-${he}`]:ge},Ii(R,oe)),affixWrapper:Z({[`${R}-affix-wrapper-sm`]:A==="small",[`${R}-affix-wrapper-lg`]:A==="large",[`${R}-affix-wrapper-rtl`]:x==="rtl"},T),wrapper:Z({[`${R}-group-rtl`]:x==="rtl"},T),groupWrapper:Z({[`${R}-group-wrapper-sm`]:A==="small",[`${R}-group-wrapper-lg`]:A==="large",[`${R}-group-wrapper-rtl`]:x==="rtl",[`${R}-group-wrapper-${he}`]:ge},Ii(`${R}-group-wrapper`,oe,ee),T)})}))))});var zq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Lq=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:zq}))},Fq=l.forwardRef(Lq);const x6=(e,t,n,r,o)=>{const{classNames:a,styles:i}=gr(e),[s,c]=y7([a,t],[i,n],{popup:{_default:"root"}});return l.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Z((u=s.popup)===null||u===void 0?void 0:u.root,r)})}),m=Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Object.assign(Object.assign({},(d=c.popup)===null||d===void 0?void 0:d.root),o)})});return[f,m]},[s,c,r,o])};function Aq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Bq(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function w6(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=pP(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[Hq,Vq]=["week","WeekPicker"],[Wq,Kq]=["month","MonthPicker"],[Uq,qq]=["year","YearPicker"],[Gq,Yq]=["quarter","QuarterPicker"],[TC,m$]=["time","TimePicker"];var Xq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Qq=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Xq}))},Jq=l.forwardRef(Qq),Zq={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"},eG=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Zq}))},tG=l.forwardRef(eG);const $6=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?le.createElement(le.Fragment,null,e===TC?le.createElement(tG,null):le.createElement(Jq,null),t&&n):r,nG=e=>l.createElement(Fn,Object.assign({size:"small",type:"primary"},e));function E6(e){return l.useMemo(()=>Object.assign({button:nG},e),[e])}var rG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oG=e=>l.forwardRef((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:f,disabled:m,bordered:v=!0,placeholder:h,popupStyle:y,popupClassName:p,dropdownClassName:g,status:C,rootClassName:b,variant:S,picker:w,styles:$,classNames:x,suffixIcon:E}=n,O=rG(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),I=w===TC?"timePicker":"datePicker",P=l.useRef(null),{getPrefixCls:_,direction:D,getPopupContainer:R,rangePicker:N}=l.useContext(Et),M=_("picker",a),{compactSize:k,compactItemClassnames:T}=$a(M,D),z=_(),[j,L]=_l("rangePicker",S,v),F=Un(M),[A,H,U]=JM(M,F),[X,ee]=x6(I,x,$,p||g,y),[J]=w6(n,M),oe=E6(s),ue=sr(ve=>{var $e;return($e=f??k)!==null&&$e!==void 0?$e:ve}),se=l.useContext(zr),Q=m??se,fe=l.useContext(ir),{hasFeedback:de,status:ie,feedbackIcon:re}=fe,he=l.createElement($6,{picker:w,hasFeedback:de,feedbackIcon:re,suffixIcon:E});l.useImperativeHandle(r,()=>P.current);const[ge]=yo("Calendar",Km),Ne=Object.assign(Object.assign({},ge),n.locale),[Pe]=Rl("DatePicker",(o=ee.popup.root)===null||o===void 0?void 0:o.zIndex);return A(l.createElement(Sa,{space:!0},l.createElement(HW,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${M}-separator`},l.createElement(Fq,null)),disabled:Q,ref:P,placement:d,placeholder:Bq(Ne,w,h),suffixIcon:he,prevIcon:l.createElement("span",{className:`${M}-prev-icon`}),nextIcon:l.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:w},O,{className:Z({[`${M}-${ue}`]:ue,[`${M}-${j}`]:L},Ii(M,Nl(ie,C),de),H,T,c,N==null?void 0:N.className,U,F,b,X.root),style:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),u),ee.root),locale:Ne.lang,prefixCls:M,getPopupContainer:i||R,generateConfig:e,components:oe,direction:D,classNames:{popup:Z(H,U,F,b,X.popup.root)},styles:{popup:Object.assign(Object.assign({},ee.popup.root),{zIndex:Pe})},allowClear:J}))))});var aG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iG=e=>{const t=(c,u)=>{const d=u===m$?"timePicker":"datePicker";return l.forwardRef((m,v)=>{var h;const{prefixCls:y,getPopupContainer:p,components:g,style:C,className:b,rootClassName:S,size:w,bordered:$,placement:x,placeholder:E,popupStyle:O,popupClassName:I,dropdownClassName:P,disabled:_,status:D,variant:R,onCalendarChange:N,styles:M,classNames:k,suffixIcon:T}=m,z=aG(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:j,direction:L,getPopupContainer:F,[d]:A}=l.useContext(Et),H=j("picker",y),{compactSize:U,compactItemClassnames:X}=$a(H,L),ee=l.useRef(null),[J,oe]=_l("datePicker",R,$),ue=Un(H),[se,Q,fe]=JM(H,ue);l.useImperativeHandle(v,()=>ee.current);const de={showToday:!0},ie=c||m.picker,re=j(),{onSelect:he,multiple:ge}=z,Ne=he&&c==="time"&&!ge,Pe=(Ie,je,qe)=>{N==null||N(Ie,je,qe),Ne&&he(Ie)},[ve,$e]=x6(d,k,M,I||P,O),[Ee,we]=w6(m,H),Ae=E6(g),Le=sr(Ie=>{var je;return(je=w??U)!==null&&je!==void 0?je:Ie}),Ye=l.useContext(zr),Ke=_??Ye,He=l.useContext(ir),{hasFeedback:Ue,status:Me,feedbackIcon:Se}=He,Fe=l.createElement($6,{picker:ie,hasFeedback:Ue,feedbackIcon:Se,suffixIcon:T}),[xe]=yo("DatePicker",Km),Te=Object.assign(Object.assign({},xe),m.locale),[Oe]=Rl("DatePicker",(h=$e.popup.root)===null||h===void 0?void 0:h.zIndex);return se(l.createElement(Sa,{space:!0},l.createElement(GW,Object.assign({ref:ee,placeholder:Aq(Te,ie,E),suffixIcon:Fe,placement:x,prevIcon:l.createElement("span",{className:`${H}-prev-icon`}),nextIcon:l.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${re}-slide-up`,picker:c,onCalendarChange:Pe},de,z,{locale:Te.lang,className:Z({[`${H}-${Le}`]:Le,[`${H}-${J}`]:oe},Ii(H,Nl(Me,D),Ue),Q,X,A==null?void 0:A.className,b,fe,ue,S,ve.root),style:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),C),$e.root),prefixCls:H,getPopupContainer:p||F,generateConfig:e,components:Ae,direction:L,disabled:Ke,classNames:{popup:Z(Q,fe,ue,S,ve.popup.root)},styles:{popup:Object.assign(Object.assign({},$e.popup.root),{zIndex:Oe})},allowClear:Ee,removeIcon:we}))))})},n=t(),r=t(Hq,Vq),o=t(Wq,Kq),a=t(Uq,qq),i=t(Gq,Yq),s=t(TC,m$);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:s,QuarterPicker:i}},O6=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=iG(e),s=oG(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=i,c},Fl=O6(XV),lG=gh(Fl,"popupAlign",void 0,"picker");Fl._InternalPanelDoNotUseOrYouWillBeFired=lG;const sG=gh(Fl.RangePicker,"popupAlign",void 0,"picker");Fl._InternalRangePanelDoNotUseOrYouWillBeFired=sG;Fl.generatePicker=O6;const cG={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},DC=le.createContext({});var uG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dG=e=>$r(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function fG(e,t,n){const r=l.useMemo(()=>t||dG(n),[t,n]);return l.useMemo(()=>r.map(a=>{var{span:i}=a,s=uG(a,["span"]);return i==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof i=="number"?i:SP(e,i)})}),[r,e])}var mG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function vG(e,t){let n=[],r=[],o=!1,a=0;return e.filter(i=>i).forEach(i=>{const{filled:s}=i,c=mG(i,["filled"]);if(s){r.push(c),n.push(r),r=[],a=0;return}const u=t-a;a+=i.span||1,a>=t?(a>t?(o=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],a=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(i=>{const s=i.reduce((c,u)=>c+(u.span||1),0);if(s<t){const c=i[i.length-1];return c.span=t-(s-(c.span||1)),i}return i}),[n,o]}const hG=(e,t)=>{const[n,r]=l.useMemo(()=>vG(t,e),[t,e]);return n},gG=({children:e})=>e,Pf=e=>e!=null,Cp=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:a,labelStyle:i,contentStyle:s,bordered:c,label:u,content:d,colon:f,type:m,styles:v}=e,h=n,{classNames:y}=l.useContext(DC),p=Object.assign(Object.assign({},i),v==null?void 0:v.label),g=Object.assign(Object.assign({},s),v==null?void 0:v.content);return c?l.createElement(h,{colSpan:r,style:a,className:Z(o,{[`${t}-item-${m}`]:m==="label"||m==="content",[y==null?void 0:y.label]:(y==null?void 0:y.label)&&m==="label",[y==null?void 0:y.content]:(y==null?void 0:y.content)&&m==="content"})},Pf(u)&&l.createElement("span",{style:p},u),Pf(d)&&l.createElement("span",{style:g},d)):l.createElement(h,{colSpan:r,style:a,className:Z(`${t}-item`,o)},l.createElement("div",{className:`${t}-item-container`},Pf(u)&&l.createElement("span",{style:p,className:Z(`${t}-item-label`,y==null?void 0:y.label,{[`${t}-item-no-colon`]:!f})},u),Pf(d)&&l.createElement("span",{style:g,className:Z(`${t}-item-content`,y==null?void 0:y.content)},d)))};function Sp(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:a,showLabel:i,showContent:s,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:v=n,className:h,style:y,labelStyle:p,contentStyle:g,span:C=1,key:b,styles:S},w)=>typeof o=="string"?l.createElement(Cp,{key:`${a}-${b||w}`,className:h,style:y,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),p),S==null?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),g),S==null?void 0:S.content)},span:C,colon:t,component:o,itemPrefixCls:v,bordered:r,label:i?f:null,content:s?m:null,type:a}):[l.createElement(Cp,{key:`label-${b||w}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),y),p),S==null?void 0:S.label),span:1,colon:t,component:o[0],itemPrefixCls:v,bordered:r,label:f,type:"label"}),l.createElement(Cp,{key:`content-${b||w}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),y),g),S==null?void 0:S.content),span:C*2-1,component:o[1],itemPrefixCls:v,bordered:r,content:m,type:"content"})])}const pG=e=>{const t=l.useContext(DC),{prefixCls:n,vertical:r,row:o,index:a,bordered:i}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${a}`,className:`${n}-row`},Sp(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),l.createElement("tr",{key:`content-${a}`,className:`${n}-row`},Sp(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):l.createElement("tr",{key:a,className:`${n}-row`},Sp(o,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},yG=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Y(e.padding)} ${Y(e.paddingLG)}`,borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Y(e.paddingSM)} ${Y(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Y(e.paddingXS)} ${Y(e.padding)}`}}}}}},bG=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:a,colonMarginLeft:i,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},tn(e)),yG(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},ta),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Y(i)} ${Y(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},CG=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),SG=Gt("Descriptions",e=>{const t=At(e,{});return bG(t)},CG);var xG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Oa=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:a=!0,bordered:i,layout:s,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:v,contentStyle:h,styles:y,items:p,classNames:g}=e,C=xG(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:b,direction:S,className:w,style:$,classNames:x,styles:E}=gr("descriptions"),O=b("descriptions",t),I=xh(),P=l.useMemo(()=>{var z;return typeof o=="number"?o:(z=SP(I,Object.assign(Object.assign({},cG),o)))!==null&&z!==void 0?z:3},[I,o]),_=fG(I,p,c),D=sr(m),R=hG(P,_),[N,M,k]=SG(O),T=l.useMemo(()=>({labelStyle:v,contentStyle:h,styles:{content:Object.assign(Object.assign({},E.content),y==null?void 0:y.content),label:Object.assign(Object.assign({},E.label),y==null?void 0:y.label)},classNames:{label:Z(x.label,g==null?void 0:g.label),content:Z(x.content,g==null?void 0:g.content)}}),[v,h,y,g,x,E]);return N(l.createElement(DC.Provider,{value:T},l.createElement("div",Object.assign({className:Z(O,w,x.root,g==null?void 0:g.root,{[`${O}-${D}`]:D&&D!=="default",[`${O}-bordered`]:!!i,[`${O}-rtl`]:S==="rtl"},u,d,M,k),style:Object.assign(Object.assign(Object.assign(Object.assign({},$),E.root),y==null?void 0:y.root),f)},C),(n||r)&&l.createElement("div",{className:Z(`${O}-header`,x.header,g==null?void 0:g.header),style:Object.assign(Object.assign({},E.header),y==null?void 0:y.header)},n&&l.createElement("div",{className:Z(`${O}-title`,x.title,g==null?void 0:g.title),style:Object.assign(Object.assign({},E.title),y==null?void 0:y.title)},n),r&&l.createElement("div",{className:Z(`${O}-extra`,x.extra,g==null?void 0:g.extra),style:Object.assign(Object.assign({},E.extra),y==null?void 0:y.extra)},r)),l.createElement("div",{className:`${O}-view`},l.createElement("table",null,l.createElement("tbody",null,R.map((z,j)=>l.createElement(pG,{key:j,index:j,colon:a,prefixCls:O,vertical:s==="vertical",bordered:i,row:z}))))))))};Oa.Item=gG;function v$(e){return["small","middle","large"].includes(e)}function h$(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const wG=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:a,fontSizeLG:i,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,fontSize:s},"&-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}},dc(e,{focus:!1})]}},$G=Gt(["Space","Addon"],e=>[wG(e)]);var EG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OG=le.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:a}=e,i=EG(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:c}=le.useContext(Et),u=s("space-addon",a),[d,f,m]=$G(u),{compactItemClassnames:v,compactSize:h}=$a(u,c),y=Z(u,f,v,m,{[`${u}-${h}`]:h},n);return d(le.createElement("div",Object.assign({ref:t,className:y,style:o},i),r))}),I6=le.createContext({latestIndex:0}),IG=I6.Provider,RG=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:a}=l.useContext(I6);return n==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:o},n),t<a&&r&&l.createElement("span",{className:`${e}-split`},r))},PG=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},MG=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},NG=Gt("Space",e=>{const t=At(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[PG(t),MG(t)]},()=>({}),{resetStyle:!1});var _G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TG=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:a,className:i,style:s,classNames:c,styles:u}=gr("space"),{size:d=a??"small",align:f,className:m,rootClassName:v,children:h,direction:y="horizontal",prefixCls:p,split:g,style:C,wrap:b=!1,classNames:S,styles:w}=e,$=_G(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,E]=Array.isArray(d)?d:[d,d],O=v$(E),I=v$(x),P=h$(E),_=h$(x),D=$r(h,{keepEmpty:!0}),R=f===void 0&&y==="horizontal"?"center":f,N=r("space",p),[M,k,T]=NG(N),z=Z(N,i,k,`${N}-${y}`,{[`${N}-rtl`]:o==="rtl",[`${N}-align-${R}`]:R,[`${N}-gap-row-${E}`]:O,[`${N}-gap-col-${x}`]:I},m,v,T),j=Z(`${N}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:c.item),L=Object.assign(Object.assign({},u.item),w==null?void 0:w.item),F=D.map((U,X)=>{const ee=(U==null?void 0:U.key)||`${j}-${X}`;return l.createElement(RG,{className:j,key:ee,index:X,split:g,style:L},U)}),A=l.useMemo(()=>({latestIndex:D.reduce((X,ee,J)=>ee!=null?J:X,0)}),[D]);if(D.length===0)return null;const H={};return b&&(H.flexWrap="wrap"),!I&&_&&(H.columnGap=x),!O&&P&&(H.rowGap=E),M(l.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},H),s),C)},$),l.createElement(IG,{value:A},F)))}),Ri=TG;Ri.Compact=dz;Ri.Addon=OG;var DG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const R6=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(Et),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:h,autoFocus:y,overlay:p,trigger:g,align:C,open:b,onOpenChange:S,placement:w,getPopupContainer:$,href:x,icon:E=l.createElement(vC,null),title:O,buttonsRender:I=se=>se,mouseEnterDelay:P,mouseLeaveDelay:_,overlayClassName:D,overlayStyle:R,destroyOnHidden:N,destroyPopupOnHide:M,dropdownRender:k,popupRender:T}=e,z=DG(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),j=n("dropdown",o),L=`${j}-button`,A={menu:v,arrow:h,autoFocus:y,align:C,disabled:s,trigger:s?[]:g,onOpenChange:S,getPopupContainer:$||t,mouseEnterDelay:P,mouseLeaveDelay:_,overlayClassName:D,overlayStyle:R,destroyOnHidden:N,popupRender:T||k},{compactSize:H,compactItemClassnames:U}=$a(j,r),X=Z(L,U,m);"destroyPopupOnHide"in e&&(A.destroyPopupOnHide=M),"overlay"in e&&(A.overlay=p),"open"in e&&(A.open=b),"placement"in e?A.placement=w:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=l.createElement(Fn,{type:a,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:x,title:O},f),J=l.createElement(Fn,{type:a,danger:i,icon:E}),[oe,ue]=I([ee,J]);return l.createElement(Ri.Compact,Object.assign({className:X,size:H,block:!0},z),oe,l.createElement(Rh,Object.assign({},A),ue))};R6.__ANT_BUTTON=!0;const yc=Rh;yc.Button=R6;function kG(e){return e==null?null:typeof e=="object"&&!l.isValidElement(e)?e:{title:e}}var jG={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"},zG=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:jG}))},LG=l.forwardRef(zG);function cv(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const FG=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
333
+ opacity ${e.motionDurationFast} ${e.motionEaseInOut},
334
+ transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},AG=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Y(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),g$=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},BG=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},tn(e)),AG(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},g$(e,e.controlHeightSM)),"&-large":Object.assign({},g$(e,e.controlHeightLG))})}},HG=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},tn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
335
+ &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:q1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ui=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),VG=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
336
+ ${t}-col-xl-24${n}-label`]:Ui(e)}}},WG=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
337
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},KG=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ui(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},UG=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
338
+ ${r}-col-24${n}-label,
339
+ ${r}-col-xl-24${n}-label`]:Ui(e)},[`@media (max-width: ${Y(e.screenXSMax)})`]:[KG(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ui(e)}}}],[`@media (max-width: ${Y(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ui(e)}}},[`@media (max-width: ${Y(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ui(e)}}},[`@media (max-width: ${Y(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ui(e)}}}}},qG=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),P6=(e,t)=>At(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),kC=Gt("Form",(e,{rootPrefixCls:t})=>{const n=P6(e,t);return[BG(n),HG(n),FG(n),VG(n),WG(n),UG(n),U1(n),q1]},qG,{order:-1e3}),p$=[];function xp(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const M6=({help:e,helpStatus:t,errors:n=p$,warnings:r=p$,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=l.useContext(eC),c=`${s}-item-explain`,u=Un(s),[d,f,m]=kC(s,u),v=l.useMemo(()=>ev(s),[s]),h=cv(n),y=cv(r),p=l.useMemo(()=>e!=null?[xp(e,"help",t)]:[].concat(ze(h.map((b,S)=>xp(b,"error","error",S))),ze(y.map((b,S)=>xp(b,"warning","warning",S)))),[e,t,h,y]),g=l.useMemo(()=>{const b={};return p.forEach(({key:S})=>{b[S]=(b[S]||0)+1}),p.map((S,w)=>Object.assign(Object.assign({},S),{key:b[S.key]>1?`${S.key}-fallback-${w}`:S.key}))},[p]),C={};return a&&(C.id=`${a}_help`),d(l.createElement(ko,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:i},b=>{const{className:S,style:w}=b;return l.createElement("div",Object.assign({},C,{className:Z(c,S,m,u,o,f),style:w}),l.createElement(LR,Object.assign({keys:g},ev(s),{motionName:`${s}-show-help-item`,component:!1}),$=>{const{key:x,error:E,errorStatus:O,className:I,style:P}=$;return l.createElement("div",{key:x,className:Z(I,{[`${c}-${O}`]:O}),style:P},E)}))}))};var GG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YG=(e,t)=>{const n=l.useContext(zr),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:c,style:u}=gr("form"),{prefixCls:d,className:f,rootClassName:m,size:v,disabled:h=n,form:y,colon:p,labelAlign:g,labelWrap:C,labelCol:b,wrapperCol:S,hideRequiredMark:w,layout:$="horizontal",scrollToFirstError:x,requiredMark:E,onFinishFailed:O,name:I,style:P,feedbackIcons:_,variant:D}=e,R=GG(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=sr(v),M=l.useContext(dR),k=l.useMemo(()=>E!==void 0?E:w?!1:a!==void 0?a:!0,[w,E,a]),T=p??i,z=r("form",d),j=Un(z),[L,F,A]=kC(z,j),H=Z(z,`${z}-${$}`,{[`${z}-hide-required-mark`]:k===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${N}`]:N},A,j,F,c,f,m),[U]=VM(y),{__INTERNAL__:X}=U;X.name=I;const ee=l.useMemo(()=>({name:I,labelAlign:g,labelCol:b,labelWrap:C,wrapperCol:S,layout:$,colon:T,requiredMark:k,itemRef:X.itemRef,form:U,feedbackIcons:_}),[I,g,b,S,$,T,k,U,_]),J=l.useRef(null);l.useImperativeHandle(t,()=>{var se;return Object.assign(Object.assign({},U),{nativeElement:(se=J.current)===null||se===void 0?void 0:se.nativeElement})});const oe=(se,Q)=>{if(se){let fe={block:"nearest"};typeof se=="object"&&(fe=Object.assign(Object.assign({},fe),se)),U.scrollToField(Q,fe)}},ue=se=>{if(O==null||O(se),se.errorFields.length){const Q=se.errorFields[0].name;if(x!==void 0){oe(x,Q);return}s!==void 0&&oe(s,Q)}};return L(l.createElement(N3.Provider,{value:D},l.createElement(F1,{disabled:h},l.createElement(gl.Provider,{value:N},l.createElement(P3,{validateMessages:M},l.createElement(Ba.Provider,{value:ee},l.createElement(M3,{status:!0},l.createElement(fc,Object.assign({id:I},R,{name:I,onFinishFailed:ue,form:U,ref:J,style:Object.assign(Object.assign({},u),P),className:H})))))))))},XG=l.forwardRef(YG);function QG(e){if(typeof e=="function")return e;const t=$r(e);return t.length<=1?t[0]:t}const N6=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(ir);return{status:e,errors:t,warnings:n}};N6.Context=ir;function JG(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,jt.cancel(r.current),r.current=null}),[]);function i(s){a.current||(r.current===null&&(o.current=[],r.current=jt(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,i]}function ZG(){const{itemRef:e}=l.useContext(Ba),t=l.useRef({});function n(r,o){const a=o&&typeof o=="object"&&Ti(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=lr(e(r),a)),t.current.ref}return n}const eY=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},tY=ac(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=P6(e,t);return eY(n)});var nY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rY=24,oY=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:v,label:h}=e,y=`${t}-item`,p=l.useContext(Ba),g=l.useMemo(()=>{let R=Object.assign({},o||p.wrapperCol||{});return h===null&&!r&&!o&&p.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(M=>{const k=M?[M]:[],T=Hr(p.labelCol,k),z=typeof T=="object"?T:{},j=Hr(R,k),L=typeof j=="object"?j:{};"span"in z&&!("offset"in L)&&z.span<rY&&(R=$o(R,[].concat(k,["offset"]),z.span))}),R},[o,p.wrapperCol,p.labelCol,h,r]),C=Z(`${y}-control`,g.className),b=l.useMemo(()=>{const{labelCol:R,wrapperCol:N}=p;return nY(p,["labelCol","wrapperCol"])},[p]),S=l.useRef(null),[w,$]=l.useState(0);Dt(()=>{u&&S.current?$(S.current.clientHeight):$(0)},[u]);const x=l.createElement("div",{className:`${y}-control-input`},l.createElement("div",{className:`${y}-control-input-content`},a)),E=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=m!==null||i.length||s.length?l.createElement(eC.Provider,{value:E},l.createElement(M6,{fieldId:f,errors:i,warnings:s,help:d,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:v})):null,I={};f&&(I.id=`${f}_extra`);const P=u?l.createElement("div",Object.assign({},I,{className:`${y}-extra`,ref:S}),u):null,_=O||P?l.createElement("div",{className:`${y}-additional`,style:m?{minHeight:m+w}:{}},O,P):null,D=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:x,errorList:O,extra:P}):l.createElement(l.Fragment,null,x,_);return l.createElement(Ba.Provider,{value:b},l.createElement(m6,Object.assign({},g,{className:C}),D),l.createElement(tY,{prefixCls:t}))};var aY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},iY=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:aY}))},lY=l.forwardRef(iY),sY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cY=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:c,vertical:u})=>{var d;const[f]=yo("Form"),{labelAlign:m,labelCol:v,labelWrap:h,colon:y}=l.useContext(Ba);if(!t)return null;const p=r||v||{},g=o||m,C=`${e}-item-label`,b=Z(C,g==="left"&&`${C}-left`,p.className,{[`${C}-wrap`]:!!h});let S=t;const w=a===!0||y!==!1&&a!==!1;w&&!u&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const x=kG(c);if(x){const{icon:D=l.createElement(lY,null)}=x,R=sY(x,["icon"]),N=l.createElement(xr,Object.assign({},R),l.cloneElement(D,{className:`${e}-item-tooltip`,title:"",onClick:M=>{M.preventDefault()},tabIndex:null}));S=l.createElement(l.Fragment,null,S,N)}const E=s==="optional",O=typeof s=="function",I=s===!1;O?S=s(S,{required:!!i}):E&&!i&&(S=l.createElement(l.Fragment,null,S,l.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=ea.Form)===null||d===void 0?void 0:d.optional))));let P;I?P="hidden":(E||O)&&(P="optional");const _=Z({[`${e}-item-required`]:i,[`${e}-item-required-mark-${P}`]:P,[`${e}-item-no-colon`]:!w});return l.createElement(m6,Object.assign({},p,{className:b}),l.createElement("label",{htmlFor:n,className:_,title:typeof t=="string"?t:""},S))},uY={success:Jv,warning:cc,error:lc,validating:Il};function _6({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:c}){const u=`${a}-item`,{feedbackIcons:d}=l.useContext(Ba),f=HM(t,n,i,null,!!r,o),{isFormItemInput:m,status:v,hasFeedback:h,feedbackIcon:y,name:p}=l.useContext(ir),g=l.useMemo(()=>{var C;let b;if(r){const w=r!==!0&&r.icons||d,$=f&&((C=w==null?void 0:w({status:f,errors:t,warnings:n}))===null||C===void 0?void 0:C[f]),x=f?uY[f]:null;b=$!==!1&&x?l.createElement("span",{className:Z(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||l.createElement(x,null)):null}const S={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:b,isFormItemInput:!0,name:c};return s&&(S.status=(f??v)||"",S.isFormItemInput=m,S.hasFeedback=!!(r??h),S.feedbackIcon=r!==void 0?S.feedbackIcon:y,S.name=c??p),S},[f,r,s,m,v]);return l.createElement(ir.Provider,{value:g},e)}var dY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fY(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:v,required:h,isRequired:y,onSubItemMetaChange:p,layout:g,name:C}=e,b=dY(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),S=`${t}-item`,{requiredMark:w,layout:$}=l.useContext(Ba),x=g||$,E=x==="vertical",O=l.useRef(null),I=cv(i),P=cv(s),_=a!=null,D=!!(_||i.length||s.length),R=!!O.current&&uc(O.current),[N,M]=l.useState(null);Dt(()=>{if(D&&O.current){const L=getComputedStyle(O.current);M(Number.parseInt(L.marginBottom,10))}},[D,R]);const k=L=>{L||M(null)},z=((L=!1)=>{const F=L?I:u.errors,A=L?P:u.warnings;return HM(F,A,u,"",!!d,c)})(),j=Z(S,n,r,{[`${S}-with-help`]:_||I.length||P.length,[`${S}-has-feedback`]:z&&d,[`${S}-has-success`]:z==="success",[`${S}-has-warning`]:z==="warning",[`${S}-has-error`]:z==="error",[`${S}-is-validating`]:z==="validating",[`${S}-hidden`]:f,[`${S}-${x}`]:x});return l.createElement("div",{className:j,style:o,ref:O},l.createElement(UU,Object.assign({className:`${S}-row`},un(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(cY,Object.assign({htmlFor:v},e,{requiredMark:w,required:h??y,prefixCls:t,vertical:E})),l.createElement(oY,Object.assign({},e,u,{errors:I,warnings:P,prefixCls:t,status:z,help:a,marginBottom:N,onErrorVisibleChanged:k}),l.createElement(R3.Provider,{value:p},l.createElement(_6,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:z,name:C},m)))),!!N&&l.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-N}}))}const mY="__SPLIT__";function vY(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const hY=l.memo(({children:e})=>e,(e,t)=>vY(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function y$(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gY(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:h,help:y,layout:p}=e,{getPrefixCls:g}=l.useContext(Et),{name:C}=l.useContext(Ba),b=QG(c),S=typeof b=="function",w=l.useContext(R3),{validateTrigger:$}=l.useContext(yl),x=v!==void 0?v:$,E=t!=null,O=g("form",a),I=Un(O),[P,_,D]=kC(O,I);Di();const R=l.useContext(rd),N=l.useRef(null),[M,k]=JG({}),[T,z]=pl(()=>y$()),j=ee=>{const J=R==null?void 0:R.getKey(ee.name);if(z(ee.destroy?y$():ee,!0),n&&y!==!1&&w){let oe=ee.name;if(ee.destroy)oe=N.current||oe;else if(J!==void 0){const[ue,se]=J;oe=[ue].concat(ze(se)),N.current=oe}w(ee,oe)}},L=(ee,J)=>{k(oe=>{const ue=Object.assign({},oe),Q=[].concat(ze(ee.name.slice(0,-1)),ze(J)).join(mY);return ee.destroy?delete ue[Q]:ue[Q]=ee,ue})},[F,A]=l.useMemo(()=>{const ee=ze(T.errors),J=ze(T.warnings);return Object.values(M).forEach(oe=>{ee.push.apply(ee,ze(oe.errors||[])),J.push.apply(J,ze(oe.warnings||[]))}),[ee,J]},[M,T.errors,T.warnings]),H=ZG();function U(ee,J,oe){return n&&!h?l.createElement(_6,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:T,errors:F,warnings:A,noStyle:!0,name:t},ee):l.createElement(fY,Object.assign({key:"row"},e,{className:Z(r,D,I,_),prefixCls:O,fieldId:J,isRequired:oe,errors:F,warnings:A,meta:T,onSubItemMetaChange:L,layout:p,name:t}),ee)}if(!E&&!S&&!o)return P(U(b));let X={};return typeof d=="string"?X.label=d:t&&(X.label=String(t)),f&&(X=Object.assign(Object.assign({},X),f)),P(l.createElement(J1,Object.assign({},e,{messageVariables:X,trigger:m,validateTrigger:x,onMetaChange:j}),(ee,J,oe)=>{const ue=$u(t).length&&J?J.name:[],se=BM(ue,C),Q=u!==void 0?u:!!(s!=null&&s.some(ie=>{if(ie&&typeof ie=="object"&&ie.required&&!ie.warningOnly)return!0;if(typeof ie=="function"){const re=ie(oe);return(re==null?void 0:re.required)&&!(re!=null&&re.warningOnly)}return!1})),fe=Object.assign({},ee);let de=null;if(Array.isArray(b)&&E)de=b;else if(!(S&&(!(i||o)||E))){if(!(o&&!S&&!E))if(l.isValidElement(b)){const ie=Object.assign(Object.assign({},b.props),fe);if(ie.id||(ie.id=se),y||F.length>0||A.length>0||e.extra){const ge=[];(y||F.length>0)&&ge.push(`${se}_help`),e.extra&&ge.push(`${se}_extra`),ie["aria-describedby"]=ge.join(" ")}F.length>0&&(ie["aria-invalid"]="true"),Q&&(ie["aria-required"]="true"),Zo(b)&&(ie.ref=H(ue,b)),new Set([].concat(ze($u(m)),ze($u(x)))).forEach(ge=>{ie[ge]=(...Ne)=>{var Pe,ve,$e,Ee,we;($e=fe[ge])===null||$e===void 0||(Pe=$e).call.apply(Pe,[fe].concat(Ne)),(we=(Ee=b.props)[ge])===null||we===void 0||(ve=we).call.apply(ve,[Ee].concat(Ne))}});const he=[ie["aria-required"],ie["aria-invalid"],ie["aria-describedby"]];de=l.createElement(hY,{control:fe,update:b,childProps:he},Wr(b,ie))}else S&&(i||o)&&!E?de=b(oe):de=b}return U(de,se,Q)}))}const T6=gY;T6.useStatus=N6;var pY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yY=e=>{var{prefixCls:t,children:n}=e,r=pY(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(Et),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement($3,Object.assign({},r),(s,c,u)=>l.createElement(eC.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function bY(){const{form:e}=l.useContext(Ba);return e}const Or=XG;Or.Item=T6;Or.List=yY;Or.ErrorList=M6;Or.useForm=VM;Or.useFormInstance=bY;Or.useWatch=I3;Or.Provider=P3;Or.create=()=>{};var CY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},SY=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:CY}))},xY=l.forwardRef(SY);function b$(e,t,n,r){var o=Ku.unstable_batchedUpdates?function(i){Ku.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const wY=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Et),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,c,u]=QM(i),d=Z(a,u,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),f=l.useContext(ir),m=l.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(l.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(ir.Provider,{value:m},e.children)))},$Y=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},EY=Gt(["Input","OTP"],e=>{const t=At(e,zl(e));return $Y(t)},Ll);var OY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IY=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:s}=e,c=OY(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=l.useContext(Et),d=u("otp"),f=typeof s=="string"?s:r,m=l.useRef(null);l.useImperativeHandle(t,()=>m.current);const v=p=>{o(i,p.target.value)},h=()=>{jt(()=>{var p;const g=(p=m.current)===null||p===void 0?void 0:p.input;document.activeElement===g&&g&&g.select()})},y=p=>{const{key:g,ctrlKey:C,metaKey:b}=p;g==="ArrowLeft"?a(i-1):g==="ArrowRight"?a(i+1):g==="z"&&(C||b)?p.preventDefault():g==="Backspace"&&!r&&a(i-1),h()};return l.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&l.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),l.createElement(jd,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},c,{ref:m,value:r,onInput:v,onFocus:h,onKeyDown:y,onMouseDown:h,onMouseUp:h,className:Z(n,{[`${d}-mask-input`]:s})})))});var RY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Mf(e){return(e||"").split("")}const PY=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?l.createElement("span",{className:`${n}-separator`},o):null},MY=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:s,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:v,mask:h,type:y,onInput:p,inputMode:g}=e,C=RY(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:S}=l.useContext(Et),w=b("otp",n),$=vr(C,{aria:!0,data:!0,attr:!0}),[x,E,O]=EY(w),I=sr(H=>o??H),P=l.useContext(ir),_=Nl(P.status,m),D=l.useMemo(()=>Object.assign(Object.assign({},P),{status:_,hasFeedback:!1,feedbackIcon:null}),[P,_]),R=l.useRef(null),N=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var H;(H=N.current[0])===null||H===void 0||H.focus()},blur:()=>{var H;for(let U=0;U<r;U+=1)(H=N.current[U])===null||H===void 0||H.blur()},nativeElement:R.current}));const M=H=>c?c(H):H,[k,T]=l.useState(()=>Mf(M(a||"")));l.useEffect(()=>{i!==void 0&&T(Mf(i))},[i]);const z=zt(H=>{T(H),p&&p(H),s&&H.length===r&&H.every(U=>U)&&H.some((U,X)=>k[X]!==U)&&s(H.join(""))}),j=zt((H,U)=>{let X=ze(k);for(let J=0;J<H;J+=1)X[J]||(X[J]="");U.length<=1?X[H]=U:X=X.slice(0,H).concat(Mf(U)),X=X.slice(0,r);for(let J=X.length-1;J>=0&&!X[J];J-=1)X.pop();const ee=M(X.map(J=>J||" ").join(""));return X=Mf(ee).map((J,oe)=>J===" "&&!X[oe]?X[oe]:J),X}),L=(H,U)=>{var X;const ee=j(H,U),J=Math.min(H+U.length,r-1);J!==H&&ee[H]!==void 0&&((X=N.current[J])===null||X===void 0||X.focus()),z(ee)},F=H=>{var U;(U=N.current[H])===null||U===void 0||U.focus()},A={variant:d,disabled:f,status:_,mask:h,type:y,inputMode:g};return x(l.createElement("div",Object.assign({},$,{ref:R,className:Z(w,{[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-rtl`]:S==="rtl"},O,E),role:"group"}),l.createElement(ir.Provider,{value:D},Array.from({length:r}).map((H,U)=>{const X=`otp-${U}`,ee=k[U]||"";return l.createElement(l.Fragment,{key:X},l.createElement(IY,Object.assign({ref:J=>{N.current[U]=J},index:U,size:I,htmlSize:1,className:`${w}-input`,onChange:L,value:ee,onActiveChange:F,autoFocus:U===0&&v},A)),U<r-1&&l.createElement(PY,{separator:u,index:U,prefixCls:w}))}))))});var NY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},_Y=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:NY}))},TY=l.forwardRef(_Y),DY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kY=e=>e?l.createElement(xY,null):l.createElement(TY,null),jY={click:"onClick",hover:"onMouseOver"},zY=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=kY,suffix:i}=e,s=l.useContext(zr),c=n??s,u=typeof o=="object"&&o.visible!==void 0,[d,f]=l.useState(()=>u?o.visible:!1),m=l.useRef(null);l.useEffect(()=>{u&&f(o.visible)},[u,o]);const v=S6(m),h=()=>{var P;if(c)return;d&&v();const _=!d;f(_),typeof o=="object"&&((P=o.onVisibleChange)===null||P===void 0||P.call(o,_))},y=P=>{const _=jY[r]||"",D=a(d),R={[_]:h,className:`${P}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault()},onMouseUp:N=>{N.preventDefault()}};return l.cloneElement(l.isValidElement(D)?D:l.createElement("span",null,D),R)},{className:p,prefixCls:g,inputPrefixCls:C,size:b}=e,S=DY(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=l.useContext(Et),$=w("input",C),x=w("input-password",g),E=o&&y(x),O=Z(x,p,{[`${x}-${b}`]:!!b}),I=Object.assign(Object.assign({},un(S,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:$,suffix:l.createElement(l.Fragment,null,E,i)});return b&&(I.size=b),l.createElement(jd,Object.assign({ref:lr(t,m)},I))});var LY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FY=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:h,variant:y,onPressEnter:p}=e,g=LY(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:C,direction:b}=l.useContext(Et),S=l.useRef(!1),w=C("input-search",n),$=C("input",r),{compactSize:x}=$a(w,b),E=sr(A=>{var H;return(H=a??x)!==null&&H!==void 0?H:A}),O=l.useRef(null),I=A=>{A!=null&&A.target&&A.type==="click"&&f&&f(A.target.value,A,{source:"clear"}),m==null||m(A)},P=A=>{var H;document.activeElement===((H=O.current)===null||H===void 0?void 0:H.input)&&A.preventDefault()},_=A=>{var H,U;f&&f((U=(H=O.current)===null||H===void 0?void 0:H.input)===null||U===void 0?void 0:U.value,A,{source:"input"})},D=A=>{S.current||u||(p==null||p(A),_(A))},R=typeof s=="boolean"?l.createElement(Sh,null):null,N=`${w}-button`;let M;const k=s||{},T=k.type&&k.type.__ANT_BUTTON===!0;T||k.type==="button"?M=Wr(k,Object.assign({onMouseDown:P,onClick:A=>{var H,U;(U=(H=k==null?void 0:k.props)===null||H===void 0?void 0:H.onClick)===null||U===void 0||U.call(H,A),_(A)},key:"enterButton"},T?{className:N,size:E}:{})):M=l.createElement(Fn,{className:N,color:s?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:P,onClick:_,loading:u,icon:R,variant:y==="borderless"||y==="filled"||y==="underlined"?"text":s?"solid":void 0},s),c&&(M=[M,Wr(c,{key:"addonAfter"})]);const z=Z(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${E}`]:!!E,[`${w}-with-button`]:!!s},o),j=A=>{S.current=!0,v==null||v(A)},L=A=>{S.current=!1,h==null||h(A)},F=Object.assign(Object.assign({},g),{className:z,prefixCls:$,type:"search",size:E,variant:y,onPressEnter:D,onCompositionStart:j,onCompositionEnd:L,addonAfter:M,suffix:i,onChange:I,disabled:d,_skipAddonWarning:!0});return l.createElement(jd,Object.assign({ref:lr(O,t)},F))});var AY=`
340
+ min-height:0 !important;
341
+ max-height:none !important;
342
+ height:0 !important;
343
+ visibility:hidden !important;
344
+ overflow:hidden !important;
345
+ position:absolute !important;
346
+ z-index:-1000 !important;
347
+ top:0 !important;
348
+ right:0 !important;
349
+ pointer-events: none !important;
350
+ `,BY=["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"],wp={},io;function HY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&wp[n])return wp[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=BY.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(wp[n]=c),c}function VY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;io||(io=document.createElement("textarea"),io.setAttribute("tab-index","-1"),io.setAttribute("aria-hidden","true"),io.setAttribute("name","hiddenTextarea"),document.body.appendChild(io)),e.getAttribute("wrap")?io.setAttribute("wrap",e.getAttribute("wrap")):io.removeAttribute("wrap");var o=HY(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,c=o.sizingStyle;io.setAttribute("style","".concat(c,";").concat(AY)),io.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=io.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){io.value=" ";var v=io.scrollHeight-a;n!==null&&(u=v*n,s==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=v*r,s==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var WY=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$p=0,Ep=1,Op=2,KY=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Pt(n,WY),v=en(o,{value:a,postState:function(A){return A??""}}),h=te(v,2),y=h[0],p=h[1],g=function(A){p(A.target.value),f==null||f(A)},C=l.useRef();l.useImperativeHandle(t,function(){return{textArea:C.current}});var b=l.useMemo(function(){return i&&ht(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=te(b,2),w=S[0],$=S[1],x=!!i,E=l.useState(Op),O=te(E,2),I=O[0],P=O[1],_=l.useState(),D=te(_,2),R=D[0],N=D[1],M=function(){P($p)};Dt(function(){x&&M()},[a,w,$,x]),Dt(function(){if(I===$p)P(Ep);else if(I===Ep){var F=VY(C.current,!1,w,$);P(Op),N(F)}},[I]);var k=l.useRef(),T=function(){jt.cancel(k.current)},z=function(A){I===Op&&(s==null||s(A),i&&(T(),k.current=jt(function(){M()})))};l.useEffect(function(){return T},[]);var j=x?R:null,L=q(q({},u),j);return(I===$p||I===Ep)&&(L.overflowY="hidden",L.overflowX="hidden"),l.createElement(Sr,{onResize:z,disabled:!(i||s)},l.createElement("textarea",be({},m,{ref:C,style:L,className:Z(r,c,B({},"".concat(r,"-disabled"),d)),disabled:d,value:y,onChange:g})))}),UY=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],qY=le.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,y=e.showCount,p=e.count,g=e.className,C=e.style,b=e.disabled,S=e.hidden,w=e.classNames,$=e.styles,x=e.onResize,E=e.onClear,O=e.onPressEnter,I=e.readOnly,P=e.autoSize,_=e.onKeyDown,D=Pt(e,UY),R=en(r,{value:o,defaultValue:r}),N=te(R,2),M=N[0],k=N[1],T=M==null?"":String(M),z=le.useState(!1),j=te(z,2),L=j[0],F=j[1],A=le.useRef(!1),H=le.useState(null),U=te(H,2),X=U[0],ee=U[1],J=l.useRef(null),oe=l.useRef(null),ue=function(){var xe;return(xe=oe.current)===null||xe===void 0?void 0:xe.textArea},se=function(){ue().focus()};l.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:oe.current,focus:se,blur:function(){ue().blur()},nativeElement:((Fe=J.current)===null||Fe===void 0?void 0:Fe.nativeElement)||ue()}}),l.useEffect(function(){F(function(Fe){return!b&&Fe})},[b]);var Q=le.useState(null),fe=te(Q,2),de=fe[0],ie=fe[1];le.useEffect(function(){if(de){var Fe;(Fe=ue()).setSelectionRange.apply(Fe,ze(de))}},[de]);var re=p6(p,y),he=(n=re.max)!==null&&n!==void 0?n:u,ge=Number(he)>0,Ne=re.strategy(T),Pe=!!he&&Ne>he,ve=function(xe,Te){var Oe=Te;!A.current&&re.exceedFormatter&&re.max&&re.strategy(Te)>re.max&&(Oe=re.exceedFormatter(Te,{max:re.max}),Te!==Oe&&ie([ue().selectionStart||0,ue().selectionEnd||0])),k(Oe),sv(xe.currentTarget,xe,s,Oe)},$e=function(xe){A.current=!0,d==null||d(xe)},Ee=function(xe){A.current=!1,ve(xe,xe.currentTarget.value),f==null||f(xe)},we=function(xe){ve(xe,xe.target.value)},Ae=function(xe){xe.key==="Enter"&&O&&O(xe),_==null||_(xe)},Le=function(xe){F(!0),a==null||a(xe)},Ye=function(xe){F(!1),i==null||i(xe)},Ke=function(xe){k(""),se(),sv(ue(),xe,s)},He=m,Ue;re.show&&(re.showFormatter?Ue=re.showFormatter({value:T,count:Ne,maxLength:he}):Ue="".concat(Ne).concat(ge?" / ".concat(he):""),He=le.createElement(le.Fragment,null,He,le.createElement("span",{className:Z("".concat(h,"-data-count"),w==null?void 0:w.count),style:$==null?void 0:$.count},Ue)));var Me=function(xe){var Te;x==null||x(xe),(Te=ue())!==null&&Te!==void 0&&Te.style.height&&ee(!0)},Se=!P&&!y&&!c;return le.createElement(_C,{ref:J,value:T,allowClear:c,handleReset:Ke,suffix:He,prefixCls:h,classNames:q(q({},w),{},{affixWrapper:Z(w==null?void 0:w.affixWrapper,B(B({},"".concat(h,"-show-count"),y),"".concat(h,"-textarea-allow-clear"),c))}),disabled:b,focused:L,className:Z(g,Pe&&"".concat(h,"-out-of-range")),style:q(q({},C),X&&!Se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:S,readOnly:I,onClear:E},le.createElement(KY,be({},D,{autoSize:P,maxLength:u,onKeyDown:Ae,onChange:we,onFocus:Le,onBlur:Ye,onCompositionStart:$e,onCompositionEnd:Ee,className:Z(w==null?void 0:w.textarea),style:q(q({},$==null?void 0:$.textarea),{},{resize:C==null?void 0:C.resize}),disabled:b,prefixCls:h,onResize:Me,ref:oe,readOnly:I})))});const GY=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
351
+ &-allow-clear > ${t},
352
+ &-affix-wrapper${r}-has-feedback ${t}
353
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},YY=Gt(["Input","TextArea"],e=>{const t=At(e,zl(e));return GY(t)},Ll,{resetFont:!1});var XY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const D6=l.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:v,variant:h,showCount:y,onMouseDown:p,onResize:g}=e,C=XY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:b,direction:S,allowClear:w,autoComplete:$,className:x,style:E,classNames:O,styles:I}=gr("textArea"),P=l.useContext(zr),_=i??P,{status:D,hasFeedback:R,feedbackIcon:N}=l.useContext(ir),M=Nl(D,s),k=l.useRef(null);l.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=k.current)===null||re===void 0?void 0:re.resizableTextArea,focus:he=>{var ge,Ne;NC((Ne=(ge=k.current)===null||ge===void 0?void 0:ge.resizableTextArea)===null||Ne===void 0?void 0:Ne.textArea,he)},blur:()=>{var he;return(he=k.current)===null||he===void 0?void 0:he.blur()}}});const T=b("input",r),z=Un(T),[j,L,F]=XM(T,d),[A]=YY(T,z),{compactSize:H,compactItemClassnames:U}=$a(T,S),X=sr(re=>{var he;return(he=a??H)!==null&&he!==void 0?he:re}),[ee,J]=_l("textArea",h,o),oe=C6(c??w),[ue,se]=l.useState(!1),[Q,fe]=l.useState(!1),de=re=>{se(!0),p==null||p(re);const he=()=>{se(!1),document.removeEventListener("mouseup",he)};document.addEventListener("mouseup",he)},ie=re=>{var he,ge;if(g==null||g(re),ue&&typeof getComputedStyle=="function"){const Ne=(ge=(he=k.current)===null||he===void 0?void 0:he.nativeElement)===null||ge===void 0?void 0:ge.querySelector("textarea");Ne&&getComputedStyle(Ne).resize==="both"&&fe(!0)}};return j(A(l.createElement(qY,Object.assign({autoComplete:$},C,{style:Object.assign(Object.assign({},E),m),styles:Object.assign(Object.assign({},I),v),disabled:_,allowClear:oe,className:Z(F,z,f,d,U,x,Q&&`${T}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:Z({[`${T}-sm`]:X==="small",[`${T}-lg`]:X==="large"},L,u==null?void 0:u.textarea,O.textarea,ue&&`${T}-mouse-active`),variant:Z({[`${T}-${ee}`]:J},Ii(T,M)),affixWrapper:Z(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:S==="rtl",[`${T}-affix-wrapper-sm`]:X==="small",[`${T}-affix-wrapper-lg`]:X==="large",[`${T}-textarea-show-count`]:y||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:T,suffix:R&&l.createElement("span",{className:`${T}-textarea-suffix`},N),showCount:y,ref:k,onResize:ie,onMouseDown:de}))))}),Ka=jd;Ka.Group=wY;Ka.Search=FY;Ka.TextArea=D6;Ka.Password=zY;Ka.OTP=MY;function QY(e,t,n){return typeof n=="boolean"?n:e.length?!0:$r(t).some(o=>o.type===GP)}var k6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Lh({suffixCls:e,tagName:t,displayName:n}){return r=>l.forwardRef((a,i)=>l.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},a)))}const jC=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=k6(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(Et),c=s("layout",n),[u,d,f]=qP(c),m=r?`${c}-${r}`:c;return u(l.createElement(a,Object.assign({className:Z(n||m,o,d,f),ref:t},i)))}),JY=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(Et),[r,o]=l.useState([]),{prefixCls:a,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=k6(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=un(m,["suffixCls"]),{getPrefixCls:h,className:y,style:p}=gr("layout"),g=h("layout",a),C=QY(r,c,u),[b,S,w]=qP(g),$=Z(g,{[`${g}-has-sider`]:C,[`${g}-rtl`]:n==="rtl"},y,i,s,S,w),x=l.useMemo(()=>({siderHook:{addSider:E=>{o(O=>[].concat(ze(O),[E]))},removeSider:E=>{o(O=>O.filter(I=>I!==E))}}}),[]);return b(l.createElement(WP.Provider,{value:x},l.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},p),f)},v),c)))}),ZY=Lh({tagName:"div",displayName:"Layout"})(JY),eX=Lh({suffixCls:"header",tagName:"header",displayName:"Header"})(jC),tX=Lh({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(jC),nX=Lh({suffixCls:"content",tagName:"main",displayName:"Content"})(jC),Ha=ZY;Ha.Header=eX;Ha.Footer=tX;Ha.Content=nX;Ha.Sider=GP;Ha._InternalSiderContext=Ih;var rX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},oX=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:rX}))},C$=l.forwardRef(oX),aX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},iX=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:aX}))},S$=l.forwardRef(iX),lX={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},sX=[10,20,50,100],cX=function(t){var n=t.pageSizeOptions,r=n===void 0?sX:n,o=t.locale,a=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,v=t.sizeChangerRender,h=le.useState(""),y=te(h,2),p=y[0],g=y[1],C=function(){return!p||Number.isNaN(p)?void 0:Number(p)},b=typeof f=="function"?f:function(_){return"".concat(_," ").concat(o.items_per_page)},S=function(D){g(D.target.value)},w=function(D){s||p===""||(g(""),!(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||D.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},$=function(D){p!==""&&(D.keyCode===ct.ENTER||D.type==="click")&&(g(""),c==null||c(C()))},x=function(){return r.some(function(D){return D.toString()===i.toString()})?r:r.concat([i]).sort(function(D,R){var N=Number.isNaN(Number(D))?0:Number(D),M=Number.isNaN(Number(R))?0:Number(R);return N-M})},E="".concat(u,"-options");if(!m&&!c)return null;var O=null,I=null,P=null;return m&&v&&(O=v({disabled:d,size:i,onSizeChange:function(D){a==null||a(Number(D))},"aria-label":o.page_size,className:"".concat(E,"-size-changer"),options:x().map(function(_){return{label:b(_),value:_}})})),c&&(s&&(P=typeof s=="boolean"?le.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:d,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):le.createElement("span",{onClick:$,onKeyUp:$},s)),I=le.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,le.createElement("input",{disabled:d,type:"text",value:p,onChange:S,onKeyUp:$,onBlur:w,"aria-label":o.page}),o.page,P)),le.createElement("li",{className:E},O,I)},Wc=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,a=t.className,i=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=Z(d,"".concat(d,"-").concat(r),B(B({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),a),m=function(){s(r)},v=function(p){c(p,s,r)},h=u(r,"page",le.createElement("a",{rel:"nofollow"},r));return h?le.createElement("li",{title:i?String(r):null,className:f,onClick:m,onKeyDown:v,tabIndex:0},h):null},uX=function(t,n,r){return r};function x$(){}function w$(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ai(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var dX=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,i=t.className,s=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,v=t.defaultPageSize,h=v===void 0?10:v,y=t.onChange,p=y===void 0?x$:y,g=t.hideOnSinglePage,C=t.align,b=t.showPrevNextJumpers,S=b===void 0?!0:b,w=t.showQuickJumper,$=t.showLessItems,x=t.showTitle,E=x===void 0?!0:x,O=t.onShowSizeChange,I=O===void 0?x$:O,P=t.locale,_=P===void 0?lX:P,D=t.style,R=t.totalBoundaryShowSizeChanger,N=R===void 0?50:R,M=t.disabled,k=t.simple,T=t.showTotal,z=t.showSizeChanger,j=z===void 0?f>N:z,L=t.sizeChangerRender,F=t.pageSizeOptions,A=t.itemRender,H=A===void 0?uX:A,U=t.jumpPrevIcon,X=t.jumpNextIcon,ee=t.prevIcon,J=t.nextIcon,oe=le.useRef(null),ue=en(10,{value:m,defaultValue:h}),se=te(ue,2),Q=se[0],fe=se[1],de=en(1,{value:s,defaultValue:u,postState:function(Qe){return Math.max(1,Math.min(Qe,Ai(void 0,Q,f)))}}),ie=te(de,2),re=ie[0],he=ie[1],ge=le.useState(re),Ne=te(ge,2),Pe=Ne[0],ve=Ne[1];l.useEffect(function(){ve(re)},[re]);var $e=Math.max(1,re-($?3:5)),Ee=Math.min(Ai(void 0,Q,f),re+($?3:5));function we(ot,Qe){var pt=ot||le.createElement("button",{type:"button","aria-label":Qe,className:"".concat(r,"-item-link")});return typeof ot=="function"&&(pt=le.createElement(ot,q({},t))),pt}function Ae(ot){var Qe=ot.target.value,pt=Ai(void 0,Q,f),Jt;return Qe===""?Jt=Qe:Number.isNaN(Number(Qe))?Jt=Pe:Qe>=pt?Jt=pt:Jt=Number(Qe),Jt}function Le(ot){return w$(ot)&&ot!==re&&w$(f)&&f>0}var Ye=f>Q?w:!1;function Ke(ot){(ot.keyCode===ct.UP||ot.keyCode===ct.DOWN)&&ot.preventDefault()}function He(ot){var Qe=Ae(ot);switch(Qe!==Pe&&ve(Qe),ot.keyCode){case ct.ENTER:Se(Qe);break;case ct.UP:Se(Qe-1);break;case ct.DOWN:Se(Qe+1);break}}function Ue(ot){Se(Ae(ot))}function Me(ot){var Qe=Ai(ot,Q,f),pt=re>Qe&&Qe!==0?Qe:re;fe(ot),ve(pt),I==null||I(re,ot),he(pt),p==null||p(pt,ot)}function Se(ot){if(Le(ot)&&!M){var Qe=Ai(void 0,Q,f),pt=ot;return ot>Qe?pt=Qe:ot<1&&(pt=1),pt!==Pe&&ve(pt),he(pt),p==null||p(pt,Q),pt}return re}var Fe=re>1,xe=re<Ai(void 0,Q,f);function Te(){Fe&&Se(re-1)}function Oe(){xe&&Se(re+1)}function Ie(){Se($e)}function je(){Se(Ee)}function qe(ot,Qe){if(ot.key==="Enter"||ot.charCode===ct.ENTER||ot.keyCode===ct.ENTER){for(var pt=arguments.length,Jt=new Array(pt>2?pt-2:0),ln=2;ln<pt;ln++)Jt[ln-2]=arguments[ln];Qe.apply(void 0,Jt)}}function ut(ot){qe(ot,Te)}function bt(ot){qe(ot,Oe)}function Ge(ot){qe(ot,Ie)}function tt(ot){qe(ot,je)}function rt(ot){var Qe=H(ot,"prev",we(ee,"prev page"));return le.isValidElement(Qe)?le.cloneElement(Qe,{disabled:!Fe}):Qe}function V(ot){var Qe=H(ot,"next",we(J,"next page"));return le.isValidElement(Qe)?le.cloneElement(Qe,{disabled:!xe}):Qe}function ae(ot){(ot.type==="click"||ot.keyCode===ct.ENTER)&&Se(Pe)}var me=null,Ce=vr(t,{aria:!0,data:!0}),pe=T&&le.createElement("li",{className:"".concat(r,"-total-text")},T(f,[f===0?0:(re-1)*Q+1,re*Q>f?f:re*Q])),Re=null,W=Ai(void 0,Q,f);if(g&&f<=Q)return null;var K=[],G={rootPrefixCls:r,onClick:Se,onKeyPress:qe,showTitle:E,itemRender:H,page:-1},ce=re-1>0?re-1:0,ye=re+1<W?re+1:W,De=w&&w.goButton,Be=ht(k)==="object"?k.readOnly:!k,Ve=De,ke=null;k&&(De&&(typeof De=="boolean"?Ve=le.createElement("button",{type:"button",onClick:ae,onKeyUp:ae},_.jump_to_confirm):Ve=le.createElement("span",{onClick:ae,onKeyUp:ae},De),Ve=le.createElement("li",{title:E?"".concat(_.jump_to).concat(re,"/").concat(W):null,className:"".concat(r,"-simple-pager")},Ve)),ke=le.createElement("li",{title:E?"".concat(re,"/").concat(W):null,className:"".concat(r,"-simple-pager")},Be?Pe:le.createElement("input",{type:"text","aria-label":_.jump_to,value:Pe,disabled:M,onKeyDown:Ke,onKeyUp:He,onChange:He,onBlur:Ue,size:3}),le.createElement("span",{className:"".concat(r,"-slash")},"/"),W));var _e=$?1:2;if(W<=3+_e*2){W||K.push(le.createElement(Wc,be({},G,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var We=1;We<=W;We+=1)K.push(le.createElement(Wc,be({},G,{key:We,page:We,active:re===We})))}else{var Ze=$?_.prev_3:_.prev_5,st=$?_.next_3:_.next_5,$t=H($e,"jump-prev",we(U,"prev page")),Ot=H(Ee,"jump-next",we(X,"next page"));S&&(me=$t?le.createElement("li",{title:E?Ze:null,key:"prev",onClick:Ie,tabIndex:0,onKeyDown:Ge,className:Z("".concat(r,"-jump-prev"),B({},"".concat(r,"-jump-prev-custom-icon"),!!U))},$t):null,Re=Ot?le.createElement("li",{title:E?st:null,key:"next",onClick:je,tabIndex:0,onKeyDown:tt,className:Z("".concat(r,"-jump-next"),B({},"".concat(r,"-jump-next-custom-icon"),!!X))},Ot):null);var ft=Math.max(1,re-_e),_t=Math.min(re+_e,W);re-1<=_e&&(_t=1+_e*2),W-re<=_e&&(ft=W-_e*2);for(var Xe=ft;Xe<=_t;Xe+=1)K.push(le.createElement(Wc,be({},G,{key:Xe,page:Xe,active:re===Xe})));if(re-1>=_e*2&&re!==3&&(K[0]=le.cloneElement(K[0],{className:Z("".concat(r,"-item-after-jump-prev"),K[0].props.className)}),K.unshift(me)),W-re>=_e*2&&re!==W-2){var it=K[K.length-1];K[K.length-1]=le.cloneElement(it,{className:Z("".concat(r,"-item-before-jump-next"),it.props.className)}),K.push(Re)}ft!==1&&K.unshift(le.createElement(Wc,be({},G,{key:1,page:1}))),_t!==W&&K.push(le.createElement(Wc,be({},G,{key:W,page:W})))}var xt=rt(ce);if(xt){var dt=!Fe||!W;xt=le.createElement("li",{title:E?_.prev_page:null,onClick:Te,tabIndex:dt?null:0,onKeyDown:ut,className:Z("".concat(r,"-prev"),B({},"".concat(r,"-disabled"),dt)),"aria-disabled":dt},xt)}var mt=V(ye);if(mt){var lt,It;k?(lt=!xe,It=Fe?0:null):(lt=!xe||!W,It=lt?null:0),mt=le.createElement("li",{title:E?_.next_page:null,onClick:Oe,tabIndex:It,onKeyDown:bt,className:Z("".concat(r,"-next"),B({},"".concat(r,"-disabled"),lt)),"aria-disabled":lt},mt)}var kt=Z(r,i,B(B(B(B(B({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),k),"".concat(r,"-disabled"),M));return le.createElement("ul",be({className:kt,style:D,ref:oe},Ce),pe,xt,k?ke:K,mt,le.createElement(cX,{locale:_,rootPrefixCls:r,disabled:M,selectPrefixCls:a,changeSize:Me,pageSize:Q,pageSizeOptions:F,quickGo:Ye?Se:null,goButton:Ve,showSizeChanger:j,sizeChangerRender:L}))};const fX=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},mX=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Y(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Y(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Y(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
354
+ &${t}-mini ${t}-prev ${t}-item-link,
355
+ &${t}-mini ${t}-next ${t}-item-link
356
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Y(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Y(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Y(e.itemSizeSM),input:Object.assign(Object.assign({},IC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},vX=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Y(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:Y(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${Y(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Y(e.inputOutlineOffset)} 0 ${Y(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:Y(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Y(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},hX=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
357
+ ${t}-prev,
358
+ ${t}-jump-prev,
359
+ ${t}-jump-next
360
+ `]:{marginInlineEnd:e.marginXS},[`
361
+ ${t}-prev,
362
+ ${t}-next,
363
+ ${t}-jump-prev,
364
+ ${t}-jump-next
365
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Y(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Y(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Dd(e)),SC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Dh(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},gX=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Y(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Y(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},pX=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Y(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),gX(e)),hX(e)),vX(e)),mX(e)),fX(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},yX=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ra(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},na(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:na(e)}}}},j6=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ll(e)),z6=e=>At(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},zl(e)),bX=Gt("Pagination",e=>{const t=z6(e);return[pX(t),yX(t)]},j6),CX=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},SX=ac(["Pagination","bordered"],e=>{const t=z6(e);return CX(t)},j6);function $$(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var xX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wX=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:i,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,v=xX(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=xh(u),[,y]=Ir(),{getPrefixCls:p,direction:g,showSizeChanger:C,className:b,style:S}=gr("pagination"),w=p("pagination",n),[$,x,E]=bX(w),O=sr(s),I=O==="small"||!!(h&&!O&&u),[P]=yo("Pagination",fR),_=Object.assign(Object.assign({},P),c),[D,R]=$$(d),[N,M]=$$(C),k=D??N,T=R??M,z=f||Tl,j=l.useMemo(()=>m?m.map(X=>Number(X)):void 0,[m]),L=X=>{var ee;const{disabled:J,size:oe,onSizeChange:ue,"aria-label":se,className:Q,options:fe}=X,{className:de,onChange:ie}=T||{},re=(ee=fe.find(he=>String(he.value)===String(oe)))===null||ee===void 0?void 0:ee.value;return l.createElement(z,Object.assign({disabled:J,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:he=>he.parentNode,"aria-label":se,options:fe},T,{value:re,onChange:(he,ge)=>{ue==null||ue(he),ie==null||ie(he,ge)},size:I?"small":"middle",className:Z(Q,de)}))},F=l.useMemo(()=>{const X=l.createElement("span",{className:`${w}-item-ellipsis`},"•••"),ee=l.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},g==="rtl"?l.createElement(Us,null):l.createElement(ad,null)),J=l.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},g==="rtl"?l.createElement(ad,null):l.createElement(Us,null)),oe=l.createElement("a",{className:`${w}-item-link`},l.createElement("div",{className:`${w}-item-container`},g==="rtl"?l.createElement(S$,{className:`${w}-item-link-icon`}):l.createElement(C$,{className:`${w}-item-link-icon`}),X)),ue=l.createElement("a",{className:`${w}-item-link`},l.createElement("div",{className:`${w}-item-container`},g==="rtl"?l.createElement(C$,{className:`${w}-item-link-icon`}):l.createElement(S$,{className:`${w}-item-link-icon`}),X));return{prevIcon:ee,nextIcon:J,jumpPrevIcon:oe,jumpNextIcon:ue}},[g,w]),A=p("select",r),H=Z({[`${w}-${t}`]:!!t,[`${w}-mini`]:I,[`${w}-rtl`]:g==="rtl",[`${w}-bordered`]:y.wireframe},b,o,a,x,E),U=Object.assign(Object.assign({},S),i);return $(l.createElement(l.Fragment,null,y.wireframe&&l.createElement(SX,{prefixCls:w}),l.createElement(dX,Object.assign({},F,v,{style:U,prefixCls:w,selectPrefixCls:A,className:H,locale:_,pageSizeOptions:j,showSizeChanger:k,sizeChangerRender:L}))))},uv=100,L6=uv/5,F6=uv/2-L6/2,Ip=F6*2*Math.PI,E$=50,O$=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Z(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:F6,cx:E$,cy:E$,strokeWidth:L6,style:n})},$X=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[a,i]=l.useState(!1);Dt(()=>{e!==0&&i(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const c={strokeDashoffset:`${Ip/4}`,strokeDasharray:`${Ip*s/100} ${Ip*(100-s)/100}`};return l.createElement("span",{className:Z(r,`${n}-progress`,s<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${uv} ${uv}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},l.createElement(O$,{dotClassName:n,hasCircleCls:!0}),l.createElement(O$,{dotClassName:n,style:c})))};function EX(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:Z(o,n>0&&a)},l.createElement("span",{className:Z(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement($X,{prefixCls:t,percent:n}))}function OX(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,a=`${n}-dot`;return r&&l.isValidElement(r)?Wr(r,{className:Z((t=r.props)===null||t===void 0?void 0:t.className,a),percent:o}):l.createElement(EX,{prefixCls:n,percent:o})}const IX=new nn("antSpinMove",{to:{opacity:1}}),RX=new nn("antRotate",{to:{transform:"rotate(405deg)"}}),PX=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},tn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:IX,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:RX,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},MX=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},NX=Gt("Spin",e=>{const t=At(e,{spinDotDefault:e.colorTextDescription});return PX(t)},MX),_X=200,I$=[[30,.05],[70,.03],[96,.01]];function TX(e,t){const[n,r]=l.useState(0),o=l.useRef(null),a=t==="auto";return l.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c<I$.length;c+=1){const[u,d]=I$[c];if(i<=u)return i+s*d}return i})},_X)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?n:t}var DX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A6;function kX(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const zd=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:v,percent:h}=e,y=DX(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:p,direction:g,className:C,style:b,indicator:S}=gr("spin"),w=p("spin",n),[$,x,E]=NX(w),[O,I]=l.useState(()=>r&&!kX(r,o)),P=TX(O,h);l.useEffect(()=>{if(r){const T=MU(o,()=>{I(!0)});return T(),()=>{var z;(z=T==null?void 0:T.cancel)===null||z===void 0||z.call(T)}}I(!1)},[o,r]);const _=l.useMemo(()=>typeof f<"u"&&!m,[f,m]),D=Z(w,C,{[`${w}-sm`]:s==="small",[`${w}-lg`]:s==="large",[`${w}-spinning`]:O,[`${w}-show-text`]:!!c,[`${w}-rtl`]:g==="rtl"},a,!m&&i,x,E),R=Z(`${w}-container`,{[`${w}-blur`]:O}),N=(t=v??S)!==null&&t!==void 0?t:A6,M=Object.assign(Object.assign({},b),d),k=l.createElement("div",Object.assign({},y,{style:M,className:D,"aria-live":"polite","aria-busy":O}),l.createElement(OX,{prefixCls:w,indicator:N,percent:P}),c&&(_||m)?l.createElement("div",{className:`${w}-text`},c):null);return $(_?l.createElement("div",Object.assign({},y,{className:Z(`${w}-nested-loading`,u,x,E)}),O&&l.createElement("div",{key:"loading"},k),l.createElement("div",{className:R,key:"container"},f)):m?l.createElement("div",{className:Z(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:O},i,x,E)},k):k)};zd.setDefaultIndicator=e=>{A6=e};const jX=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let wo=null,nl=e=>e(),ld=[],sd={};function R$(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=sd,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const zX=le.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=l.useContext(Et),a=sd.prefixCls||o("message"),i=l.useContext(MA),[s,c]=a3(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return le.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),s[d].apply(s,f))}),{instance:u,sync:r}}),c}),LX=le.forwardRef((e,t)=>{const[n,r]=le.useState(R$),o=()=>{r(R$)};le.useEffect(o,[]);const a=HR(),i=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=le.createElement(zX,{ref:t,sync:o,messageConfig:n});return le.createElement(jo,{prefixCls:i,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),Fh=()=>{if(!wo){const e=document.createDocumentFragment(),t={fragment:e};wo=t,nl(()=>{W1()(le.createElement(LX,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,Fh())})}}),e)});return}wo.instance&&(ld.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{nl(()=>{const r=wo.instance.open(Object.assign(Object.assign({},sd),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":nl(()=>{wo==null||wo.instance.destroy(e.key)});break;default:nl(()=>{var r;const o=(r=wo.instance)[t].apply(r,ze(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ld=[])};function FX(e){sd=Object.assign(Object.assign({},sd),e),nl(()=>{var t;(t=wo==null?void 0:wo.sync)===null||t===void 0||t.call(wo)})}function AX(e){const t=H1(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return ld.push(o),()=>{r?nl(()=>{r()}):o.skipped=!0}});return Fh(),t}function BX(e,t){const n=H1(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return ld.push(a),()=>{o?nl(()=>{o()}):a.skipped=!0}});return Fh(),n}const HX=e=>{ld.push({type:"destroy",key:e}),Fh()},VX=["success","info","warning","error","loading"],WX={open:AX,destroy:HX,config:FX,useMessage:F7,_InternalPanelDoNotUseOrYouWillBeFired:N7},Ts=WX;VX.forEach(e=>{Ts[e]=(...t)=>BX(e,t)});var KX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UX=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:c}=e,u=KX(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(Et),f=d(),m=t||d("modal"),v=Un(f),[h,y,p]=L3(m,v),g=`${m}-confirm`;let C={};return a?C={closable:o??!1,title:"",footer:"",children:l.createElement(A3,Object.assign({},e,{prefixCls:m,confirmPrefixCls:g,rootPrefixCls:f,content:s}))}:C={closable:o??!0,title:i,footer:c!==null&&l.createElement(D3,Object.assign({},e)),children:s},h(l.createElement(y3,Object.assign({prefixCls:m,className:Z(y,`${m}-pure-panel`,a&&g,a&&`${g}-${a}`,n,p,v)},u,{closeIcon:T3(m,r),closable:o},C)))},qX=Y3(UX);function B6(e){return Rd(W3(e))}const ia=F3;ia.useModal=PA;ia.info=function(t){return Rd(K3(t))};ia.success=function(t){return Rd(U3(t))};ia.error=function(t){return Rd(q3(t))};ia.warning=B6;ia.warn=B6;ia.confirm=function(t){return Rd(G3(t))};ia.destroyAll=function(){for(;tl.length;){const t=tl.pop();t&&t()}};ia.config=$A;ia._InternalPanelDoNotUseOrYouWillBeFired=qX;const GX=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},YX=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},H6=Gt("Popconfirm",e=>GX(e),YX,{resetStyle:!1});var XX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const V6=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:c="primary",icon:u=l.createElement(cc,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:v,onPopupClick:h}=e,{getPrefixCls:y}=l.useContext(Et),[p]=yo("Popconfirm",ea.Popconfirm),g=Ys(o),C=Ys(a);return l.createElement("div",{className:`${t}-inner-content`,onClick:h},l.createElement("div",{className:`${t}-message`},u&&l.createElement("span",{className:`${t}-message-icon`},u),l.createElement("div",{className:`${t}-message-text`},g&&l.createElement("div",{className:`${t}-title`},g),C&&l.createElement("div",{className:`${t}-description`},C))),l.createElement("div",{className:`${t}-buttons`},d&&l.createElement(Fn,Object.assign({onClick:v,size:"small"},r),i||(p==null?void 0:p.cancelText)),l.createElement(Y1,{buttonProps:Object.assign(Object.assign({size:"small"},K1(c)),n),actionFn:m,close:f,prefixCls:y("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(p==null?void 0:p.okText))))},QX=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=XX(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=l.useContext(Et),s=i("popconfirm",t),[c]=H6(s);return c(l.createElement(MP,{placement:n,className:Z(s,r),style:o,content:l.createElement(V6,Object.assign({prefixCls:s},a))}))};var JX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZX=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:c=l.createElement(cc,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:v,styles:h,classNames:y}=e,p=JX(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:g,className:C,style:b,classNames:S,styles:w}=gr("popconfirm"),[$,x]=en(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),E=(k,T)=>{x(k,!0),m==null||m(k),f==null||f(k,T)},O=k=>{E(!1,k)},I=k=>{var T;return(T=e.onConfirm)===null||T===void 0?void 0:T.call(void 0,k)},P=k=>{var T;E(!1,k),(T=e.onCancel)===null||T===void 0||T.call(void 0,k)},_=(k,T)=>{const{disabled:z=!1}=e;z||E(k,T)},D=g("popconfirm",o),R=Z(D,C,d,S.root,y==null?void 0:y.root),N=Z(S.body,y==null?void 0:y.body),[M]=H6(D);return M(l.createElement(NP,Object.assign({},un(p,["title"]),{trigger:i,placement:a,onOpenChange:_,open:$,ref:t,classNames:{root:R,body:N},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),b),v),h==null?void 0:h.root),body:Object.assign(Object.assign({},w.body),h==null?void 0:h.body)},content:l.createElement(V6,Object.assign({okType:s,icon:c},e,{prefixCls:D,close:O,onConfirm:I,onCancel:P})),"data-popover-inject":!0}),u))}),W6=ZX;W6._InternalPanelDoNotUseOrYouWillBeFired=QX;var eQ={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"},tQ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:eQ}))},nQ=l.forwardRef(tQ),rQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},oQ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:rQ}))},aQ=l.forwardRef(oQ);const iQ=()=>l.createElement("svg",{width:"252",height:"294"},l.createElement("title",null,"No Found"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),l.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),l.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),l.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),l.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),l.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),l.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),l.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),l.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),l.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),l.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),l.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),l.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),l.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),l.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),l.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),l.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),l.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),l.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),l.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),l.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),l.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),l.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),l.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),l.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),l.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),l.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),l.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),l.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),l.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),l.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),l.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),l.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),l.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),l.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),lQ=()=>l.createElement("svg",{width:"254",height:"294"},l.createElement("title",null,"Server Error"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),l.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),l.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),l.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),l.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),l.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),l.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),l.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),l.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),l.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),l.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),l.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),l.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),l.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),l.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),l.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),l.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),l.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),l.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),l.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),l.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),l.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),l.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),l.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),l.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),l.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),l.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),l.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),l.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),l.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),l.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),l.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),l.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),l.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),l.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),l.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),l.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),l.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),l.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),l.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),sQ=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:s,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${Y(e.calc(s).mul(2).equal())} ${Y(a)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${Y(s)} ${Y(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},cQ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},uQ=e=>[sQ(e),cQ(e)],dQ=e=>uQ(e),fQ=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),mQ=Gt("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,a=At(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[dQ(a)]},fQ),vQ=()=>l.createElement("svg",{width:"251",height:"294"},l.createElement("title",null,"Unauthorized"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),l.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),l.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),l.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),l.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),l.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),l.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),l.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),l.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),l.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),l.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),l.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),l.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),l.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),l.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),l.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),l.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),l.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),l.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),l.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),l.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),l.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),l.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),l.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),l.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),l.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),l.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),l.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),l.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),l.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),l.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),l.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),l.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),l.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),l.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),l.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),l.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),l.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),l.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),l.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),l.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),hQ={success:Jv,error:lc,info:cc,warning:aQ},Ld={404:iQ,500:lQ,403:vQ},gQ=Object.keys(Ld),pQ=({prefixCls:e,icon:t,status:n})=>{const r=Z(`${e}-icon`);if(gQ.includes(`${n}`)){const a=Ld[n];return l.createElement("div",{className:`${r} ${e}-image`},l.createElement(a,null))}const o=l.createElement(hQ[n]);return t===null||t===!1?null:l.createElement("div",{className:r},t||o)},yQ=({prefixCls:e,extra:t})=>t?l.createElement("div",{className:`${e}-extra`},t):null,Ah=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:o,style:a,children:i,status:s="info",icon:c,extra:u})=>{const{getPrefixCls:d,direction:f,result:m}=l.useContext(Et),v=d("result",e),[h,y,p]=mQ(v),g=Z(v,`${v}-${s}`,t,m==null?void 0:m.className,n,{[`${v}-rtl`]:f==="rtl"},y,p),C=Object.assign(Object.assign({},m==null?void 0:m.style),a);return h(l.createElement("div",{className:g,style:C},l.createElement(pQ,{prefixCls:v,status:s,icon:c}),l.createElement("div",{className:`${v}-title`},o),r&&l.createElement("div",{className:`${v}-subtitle`},r),l.createElement(yQ,{prefixCls:v,extra:u}),i&&l.createElement("div",{className:`${v}-content`},i)))};Ah.PRESENTED_IMAGE_403=Ld[403];Ah.PRESENTED_IMAGE_404=Ld[404];Ah.PRESENTED_IMAGE_500=Ld[500];var bQ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],K6=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,v=e.onChange,h=e.onKeyDown,y=Pt(e,bQ),p=en(!1,{value:i,defaultValue:s}),g=te(p,2),C=g[0],b=g[1];function S(E,O){var I=C;return c||(I=E,b(I),v==null||v(I,O)),I}function w(E){E.which===ct.LEFT?S(!1,E):E.which===ct.RIGHT&&S(!0,E),h==null||h(E)}function $(E){var O=S(!C,E);m==null||m(O,E)}var x=Z(o,a,(n={},B(n,"".concat(o,"-checked"),C),B(n,"".concat(o,"-disabled"),c),n));return l.createElement("button",be({},y,{type:"button",role:"switch","aria-checked":C,disabled:c,className:x,ref:t,onKeyDown:w,onClick:$}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});K6.displayName="Switch";const CQ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=Y(c(s).add(c(r).mul(2)).equal()),f=Y(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Y(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Y(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},SQ=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},xQ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Y(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},wQ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,c=`${t}-inner`,u=Y(s(i).add(s(r).mul(2)).equal()),d=Y(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},$Q=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},tn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Y(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ra(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},EQ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,c=a-s*2,u=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Kt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},OQ=Gt("Switch",e=>{const t=At(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$Q(t),wQ(t),xQ(t),SQ(t),CQ(t)]},EQ);var IQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RQ=l.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:v}=e,h=IQ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[y,p]=en(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:g,direction:C,switch:b}=l.useContext(Et),S=l.useContext(zr),w=(o??S)||a,$=g("switch",n),x=l.createElement("div",{className:`${$}-handle`},a&&l.createElement(Il,{className:`${$}-loading-icon`})),[E,O,I]=OQ($),P=sr(r),_=Z(b==null?void 0:b.className,{[`${$}-small`]:P==="small",[`${$}-loading`]:a,[`${$}-rtl`]:C==="rtl"},i,s,O,I),D=Object.assign(Object.assign({},b==null?void 0:b.style),c),R=(...N)=>{p(N[0]),v==null||v.apply(void 0,N)};return E(l.createElement(wd,{component:"Switch",disabled:w},l.createElement(K6,Object.assign({},h,{checked:y,onChange:R,prefixCls:$,className:_,style:D,disabled:w,ref:t,loadingIcon:x}))))}),U6=RQ;U6.__ANT_SWITCH=!0;var ri={},Fd="rc-table-internal-hook";function zC(e){var t=l.createContext(void 0),n=function(o){var a=o.value,i=o.children,s=l.useRef(a);s.current=a;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=te(c,1),d=u[0];return Dt(function(){Jo.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function hr(e,t){var n=zt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(v){m[v]=f[v]}),m}),r=l.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,i=o.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=te(c,2),d=u[1];return Dt(function(){if(!r)return;function f(m){var v=n(m);ya(s.current,v,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function PQ(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(o,a){var i=Zo(o),s=function(u,d){var f=i?{ref:d}:{},m=l.useRef(0),v=l.useRef(u),h=t();return h!==null?l.createElement(o,be({},u,f)):((!a||a(v.current,u))&&(m.current+=1),v.current=u,l.createElement(e.Provider,{value:m.current},l.createElement(o,be({},u,f))))};return i?l.forwardRef(s):s}function r(o,a){var i=Zo(o),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(o,be({},u,f))};return i?l.memo(l.forwardRef(s),a):l.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var LC=PQ(),q6=LC.makeImmutable,bc=LC.responseImmutable,MQ=LC.useImmutableMark,Fr=zC(),G6=l.createContext({renderWithProps:!1}),NQ="RC_TABLE_KEY";function _Q(e){return e==null?[]:Array.isArray(e)?e:[e]}function Bh(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,i=o.dataIndex,s=a||_Q(i).join("-")||NQ;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function ab(e){return e!=null}function TQ(e){return typeof e=="number"&&!Number.isNaN(e)}function DQ(e){return e&&ht(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function kQ(e,t,n,r,o,a){var i=l.useContext(G6),s=MQ(),c=Ol(function(){if(ab(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Hr(e,u),f=d,m=void 0;if(o){var v=o(d,e,n);DQ(v)?(f=v.children,m=v.props,i.renderWithProps=!0):f=v}return[f,m]},[s,e,r,t,o,n],function(u,d){if(a){var f=te(u,2),m=f[1],v=te(d,2),h=v[1];return a(h,m)}return i.renderWithProps?!0:!ya(u,d,!0)});return c}function jQ(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function zQ(e,t){return hr(Fr,function(n){var r=jQ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var LQ=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():l.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function FQ(e){var t,n,r,o,a,i,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,v=e.prefixCls,h=e.className,y=e.align,p=e.record,g=e.render,C=e.dataIndex,b=e.renderIndex,S=e.shouldCellUpdate,w=e.index,$=e.rowType,x=e.colSpan,E=e.rowSpan,O=e.fixLeft,I=e.fixRight,P=e.firstFixLeft,_=e.lastFixLeft,D=e.firstFixRight,R=e.lastFixRight,N=e.appendNode,M=e.additionalProps,k=M===void 0?{}:M,T=e.isSticky,z="".concat(v,"-cell"),j=hr(Fr,["supportSticky","allColumnsFixedLeft","rowHoverable"]),L=j.supportSticky,F=j.allColumnsFixedLeft,A=j.rowHoverable,H=kQ(p,C,b,d,g,S),U=te(H,2),X=U[0],ee=U[1],J={},oe=typeof O=="number"&&L,ue=typeof I=="number"&&L;oe&&(J.position="sticky",J.left=O),ue&&(J.position="sticky",J.right=I);var se=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:x)!==null&&t!==void 0?t:1,Q=(o=(a=(i=ee==null?void 0:ee.rowSpan)!==null&&i!==void 0?i:k.rowSpan)!==null&&a!==void 0?a:E)!==null&&o!==void 0?o:1,fe=zQ(w,Q),de=te(fe,2),ie=de[0],re=de[1],he=zt(function(we){var Ae;p&&re(w,w+Q-1),k==null||(Ae=k.onMouseEnter)===null||Ae===void 0||Ae.call(k,we)}),ge=zt(function(we){var Ae;p&&re(-1,-1),k==null||(Ae=k.onMouseLeave)===null||Ae===void 0||Ae.call(k,we)});if(se===0||Q===0)return null;var Ne=(s=k.title)!==null&&s!==void 0?s:LQ({rowType:$,ellipsis:f,children:X}),Pe=Z(z,h,(c={},B(B(B(B(B(B(B(B(B(B(c,"".concat(z,"-fix-left"),oe&&L),"".concat(z,"-fix-left-first"),P&&L),"".concat(z,"-fix-left-last"),_&&L),"".concat(z,"-fix-left-all"),_&&F&&L),"".concat(z,"-fix-right"),ue&&L),"".concat(z,"-fix-right-first"),D&&L),"".concat(z,"-fix-right-last"),R&&L),"".concat(z,"-ellipsis"),f),"".concat(z,"-with-append"),N),"".concat(z,"-fix-sticky"),(oe||ue)&&T&&L),B(c,"".concat(z,"-row-hover"),!ee&&ie)),k.className,ee==null?void 0:ee.className),ve={};y&&(ve.textAlign=y);var $e=q(q(q(q({},ee==null?void 0:ee.style),J),ve),k.style),Ee=X;return ht(Ee)==="object"&&!Array.isArray(Ee)&&!l.isValidElement(Ee)&&(Ee=null),f&&(_||D)&&(Ee=l.createElement("span",{className:"".concat(z,"-content")},Ee)),l.createElement(u,be({},ee,k,{className:Pe,style:$e,title:Ne,scope:m,onMouseEnter:A?he:void 0,onMouseLeave:A?ge:void 0,colSpan:se!==1?se:null,rowSpan:Q!==1?Q:null}),N,Ee)}const Cc=l.memo(FQ);function FC(e,t,n,r,o){var a=n[e]||{},i=n[t]||{},s,c;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,v=n[t+1],h=n[e-1],y=v&&!v.fixed||h&&!h.fixed||n.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(s!==void 0){var p=h&&h.fixed==="left";m=!p&&y}else if(c!==void 0){var g=v&&v.fixed==="right";f=!g&&y}}else if(s!==void 0){var C=v&&v.fixed==="left";u=!C&&y}else if(c!==void 0){var b=h&&h.fixed==="right";d=!b&&y}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var Y6=l.createContext({});function AQ(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,i=e.rowSpan,s=e.align,c=hr(Fr,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(Y6),m=f.scrollColumnIndex,v=f.stickyOffsets,h=f.flattenColumns,y=n+a-1,p=y+1===m?a+1:a,g=FC(n,n+p-1,h,v,d);return l.createElement(Cc,be({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:p,rowSpan:i,render:function(){return r}},g))}var BQ=["children"];function HQ(e){var t=e.children,n=Pt(e,BQ);return l.createElement("tr",n,t)}function Hh(e){var t=e.children;return t}Hh.Row=HQ;Hh.Cell=AQ;function VQ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=hr(Fr,"prefixCls"),a=r.length-1,i=r[a],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?a:null}},[i,r,a,n]);return l.createElement(Y6.Provider,{value:s},l.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Nf=bc(VQ);var X6=Hh;function WQ(e){return null}function KQ(e){return null}function Q6(e,t,n,r,o,a,i){var s=a(t,i);e.push({record:t,indent:n,index:i,rowKey:s});var c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)Q6(e,t[r][u],n+1,r,o,a,u)}function J6(e,t,n,r){var o=l.useMemo(function(){if(n!=null&&n.size){for(var a=[],i=0;i<(e==null?void 0:e.length);i+=1){var s=e[i];Q6(a,s,0,t,n,r,i)}return a}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u,rowKey:r(c,u)}})},[e,t,n,r]);return o}function Z6(e,t,n,r){var o=hr(Fr,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,i=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,v=o.rowClassName,h=i==="nest",y=i==="row"&&(!d||d(e)),p=y||h,g=s&&s.has(t),C=c&&e&&e[c],b=zt(u),S=f==null?void 0:f(e,n),w=S==null?void 0:S.onClick,$=function(I){m&&p&&u(e,I);for(var P=arguments.length,_=new Array(P>1?P-1:0),D=1;D<P;D++)_[D-1]=arguments[D];w==null||w.apply(void 0,[I].concat(_))},x;typeof v=="string"?x=v:typeof v=="function"&&(x=v(e,n,r));var E=Bh(a);return q(q({},o),{},{columnsKey:E,nestExpandable:h,expanded:g,hasNestChildren:C,record:e,onTriggerExpand:b,rowSupportExpand:y,expandable:p,rowProps:q(q({},S),{},{className:Z(x,S==null?void 0:S.className),onClick:$})})}function eN(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,a=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=hr(Fr,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,v=f.fixHeader,h=f.fixColumn,y=f.componentWidth,p=f.horizonScroll,g=n;return(c?p&&y:h)&&(g=l.createElement("div",{style:{width:y-d-(v&&!c?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},g)),l.createElement(r,{className:a,style:{display:i?null:"none"}},l.createElement(Cc,{component:o,prefixCls:t,colSpan:s},g))}function UQ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(t,"-row-expand-icon");if(!a)return l.createElement("span",{className:Z(i,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return l.createElement("span",{className:Z(i,B(B({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function qQ(e,t,n){var r=[];function o(a){(a||[]).forEach(function(i,s){r.push(t(i,s)),o(i[n])})}return o(e),r}function tN(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function nN(e,t,n,r,o){var a,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,v=e.nestExpandable,h=e.indentSize,y=e.expandIcon,p=e.expanded,g=e.hasNestChildren,C=e.onTriggerExpand,b=e.expandable,S=e.expandedKeys,w=d[n],$=f[n],x;n===(m||0)&&v&&(x=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),y({prefixCls:u,expanded:p,expandable:g,record:c,onExpand:C})));var E=((a=t.onCell)===null||a===void 0?void 0:a.call(t,c,o))||{};if(s){var O=E.rowSpan,I=O===void 0?1:O;if(b&&I&&n<s){for(var P=I,_=o;_<o+I;_+=1){var D=i[_];S.has(D)&&(P+=1)}E.rowSpan=P}}return{key:w,fixedInfo:$,appendCellNode:x,additionalCellProps:E}}function GQ(e){var t=e.className,n=e.style,r=e.record,o=e.index,a=e.renderIndex,i=e.rowKey,s=e.rowKeys,c=e.indent,u=c===void 0?0:c,d=e.rowComponent,f=e.cellComponent,m=e.scopeCellComponent,v=e.expandedRowInfo,h=Z6(r,i,o,u),y=h.prefixCls,p=h.flattenColumns,g=h.expandedRowClassName,C=h.expandedRowRender,b=h.rowProps,S=h.expanded,w=h.rowSupportExpand,$=l.useRef(!1);$.current||($.current=S);var x=tN(g,r,o,u),E=l.createElement(d,be({},b,{"data-row-key":i,className:Z(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(u),b==null?void 0:b.className,B({},x,u>=1)),style:q(q({},n),b==null?void 0:b.style)}),p.map(function(P,_){var D=P.render,R=P.dataIndex,N=P.className,M=nN(h,P,_,u,o,s,v==null?void 0:v.offset),k=M.key,T=M.fixedInfo,z=M.appendCellNode,j=M.additionalCellProps;return l.createElement(Cc,be({className:N,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?m:f,prefixCls:y,key:k,record:r,index:o,renderIndex:a,dataIndex:R,render:D,shouldCellUpdate:P.shouldCellUpdate},T,{appendNode:z,additionalProps:j}))})),O;if(w&&($.current||S)){var I=C(r,o,u+1,S);O=l.createElement(eN,{expanded:S,className:Z("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(u+1),x),prefixCls:y,component:d,cellComponent:f,colSpan:v?v.colSpan:p.length,stickyOffset:v==null?void 0:v.sticky,isEmpty:!1},I)}return l.createElement(l.Fragment,null,E,O)}const YQ=bc(GQ);function XQ(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,a=l.useRef();return Dt(function(){a.current&&n(t,a.current.offsetWidth)},[]),l.createElement(Sr,{data:t},l.createElement("th",{ref:a,className:"".concat(r,"-measure-cell")},l.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function QQ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,a=l.useRef(null),i=hr(Fr,["measureRowRender"]),s=i.measureRowRender,c=l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:a,tabIndex:-1},l.createElement(Sr.Collection,{onBatchResize:function(d){uc(a.current)&&d.forEach(function(f){var m=f.data,v=f.size;r(m,v.offsetWidth)})}},n.map(function(u){var d=o.find(function(v){return v.key===u}),f=d==null?void 0:d.title,m=l.isValidElement(f)?l.cloneElement(f,{ref:null}):f;return l.createElement(XQ,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return s?s(c):c}function JQ(e){var t=e.data,n=e.measureColumnWidth,r=hr(Fr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,a=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,v=m===void 0?0:m,h=r.colWidths,y=J6(t,d,u,c),p=l.useMemo(function(){return y.map(function(O){return O.rowKey})},[y]),g=l.useRef({renderWithProps:!1}),C=l.useMemo(function(){for(var O=s.length-v,I=0,P=0;P<v;P+=1)I+=h[P]||0;return{offset:v,colSpan:O,sticky:I}},[s.length,v,h]),b=a(["body","wrapper"],"tbody"),S=a(["body","row"],"tr"),w=a(["body","cell"],"td"),$=a(["body","cell"],"th"),x;t.length?x=y.map(function(O,I){var P=O.record,_=O.indent,D=O.index,R=O.rowKey;return l.createElement(YQ,{key:R,rowKey:R,rowKeys:p,record:P,index:I,renderIndex:D,rowComponent:S,cellComponent:w,scopeCellComponent:$,indent:_,expandedRowInfo:C})}):x=l.createElement(eN,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:S,cellComponent:w,colSpan:s.length,isEmpty:!0},f);var E=Bh(s);return l.createElement(G6.Provider,{value:g.current},l.createElement(b,{className:"".concat(o,"-tbody")},n&&l.createElement(QQ,{prefixCls:o,columnsKey:E,onColumnResize:i,columns:s}),x))}const ZQ=bc(JQ);var eJ=["expandable"],Ou="RC_TABLE_INTERNAL_COL_DEFINE";function tJ(e){var t=e.expandable,n=Pt(e,eJ),r;return"expandable"in e?r=q(q({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var nJ=["columnType"];function rN(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=hr(Fr,["tableLayout"]),a=o.tableLayout,i=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,v=void 0;if(f&&(m=f[Ou],a==="auto"&&(v=f.minWidth)),d||v||m||c){var h=m||{};h.columnType;var y=Pt(h,nJ);i.unshift(l.createElement("col",be({key:u,style:{width:d,minWidth:v}},y))),c=!0}}return i.length>0?l.createElement("colgroup",null,i):null}var rJ=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function oJ(e,t){return l.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var aJ=l.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,s=e.colGroup,c=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,m=e.stickyTopOffset,v=e.stickyBottomOffset,h=e.stickyClassName,y=e.scrollX,p=e.tableLayout,g=p===void 0?"fixed":p,C=e.onScroll,b=e.children,S=Pt(e,rJ),w=hr(Fr,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=w.prefixCls,x=w.scrollbarSize,E=w.isSticky,O=w.getComponent,I=O(["header","table"],"table"),P=E&&!f?0:x,_=l.useRef(null),D=l.useCallback(function(L){qu(t,L),qu(_,L)},[]);l.useEffect(function(){function L(A){var H=A,U=H.currentTarget,X=H.deltaX;X&&(C({currentTarget:U,scrollLeft:U.scrollLeft+X}),A.preventDefault())}var F=_.current;return F==null||F.addEventListener("wheel",L,{passive:!1}),function(){F==null||F.removeEventListener("wheel",L)}},[]);var R=a[a.length-1],N={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},M=l.useMemo(function(){return P?[].concat(ze(o),[N]):o},[P,o]),k=l.useMemo(function(){return P?[].concat(ze(a),[N]):a},[P,a]),T=l.useMemo(function(){var L=u.right,F=u.left;return q(q({},u),{},{left:d==="rtl"?[].concat(ze(F.map(function(A){return A+P})),[0]):F,right:d==="rtl"?L:[].concat(ze(L.map(function(A){return A+P})),[0]),isSticky:E})},[P,u,E]),z=oJ(i,c),j=l.useMemo(function(){var L=!z||!z.length||z.every(function(F){return!F});return r||L},[r,z]);return l.createElement("div",{style:q({overflow:"hidden"},E?{top:m,bottom:v}:{}),ref:D,className:Z(n,B({},h,!!h))},l.createElement(I,{style:{tableLayout:g,minWidth:"100%",width:y}},j?s:l.createElement(rN,{colWidths:[].concat(ze(z),[P]),columCount:c+1,columns:k}),b(q(q({},S),{},{stickyOffsets:T,columns:M,flattenColumns:k}))))});const P$=l.memo(aJ);var iJ=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,a=t.rowComponent,i=t.cellComponent,s=t.onHeaderRow,c=t.index,u=hr(Fr,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(n.map(function(h){return h.column}),c));var v=Bh(n.map(function(h){return h.column}));return l.createElement(a,m,n.map(function(h,y){var p=h.column,g=FC(h.colStart,h.colEnd,o,r,f),C;return p&&p.onHeaderCell&&(C=h.column.onHeaderCell(p)),l.createElement(Cc,be({},h,{scope:p.title?h.colSpan>1?"colgroup":"col":null,ellipsis:p.ellipsis,align:p.align,component:i,prefixCls:d,key:v[y]},g,{additionalProps:C,rowType:"header"}))}))};function lJ(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},v=1,h=f.children;return h&&h.length>0&&(v=n(h,u,c+1).reduce(function(y,p){return y+p},0),m.hasSubColumns=!0),"colSpan"in f&&(v=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=v,m.colEnd=m.colStart+v-1,t[c].push(m),u+=v,v});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},a=0;a<r;a+=1)o(a);return t}var sJ=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,a=t.onHeaderRow,i=hr(Fr,["prefixCls","getComponent"]),s=i.prefixCls,c=i.getComponent,u=l.useMemo(function(){return lJ(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return l.createElement(d,{className:"".concat(s,"-thead")},u.map(function(v,h){var y=l.createElement(iJ,{key:h,flattenColumns:o,cells:v,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:a,index:h});return y}))};const M$=bc(sJ);function N$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function cJ(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var v=N$(t,m.width);v?r+=v:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),s=o,c=i/o,u=0,d=e.map(function(m){var v=q({},m),h=N$(t,v.width);if(h)v.width=h;else{var y=Math.floor(c);v.width=s===1?i:y,i-=y,s-=1}return u+=v.width,v});if(u<a){var f=a/u;i=a,d.forEach(function(m,v){var h=Math.floor(m.width*f);m.width=v===d.length-1?i:h,i-=h})}return[d,Math.max(u,a)]}return[e,t]},[e,t,n])}var uJ=["children"],dJ=["fixed"];function AC(e){return $r(e).filter(function(t){return l.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,a=Pt(r,uJ),i=q({key:n},a);return o&&(i.children=AC(o)),i})}function oN(e){return e.filter(function(t){return t&&ht(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?q(q({},t),{},{children:oN(n)}):t})}function ib(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ht(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,i=a===!0?"left":a,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ze(n),ze(ib(c,s).map(function(u){var d;return q(q({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:i})}))):[].concat(ze(n),[q(q({key:s},r),{},{fixed:i})])},[])}function fJ(e){return e.map(function(t){var n=t.fixed,r=Pt(t,dJ),o=n;return n==="left"?o="right":n==="right"&&(o="left"),q({fixed:o},r)})}function mJ(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,v=e.expandedRowOffset,h=v===void 0?0:v,y=e.direction,p=e.expandRowByClick,g=e.columnWidth,C=e.fixed,b=e.scrollWidth,S=e.clientWidth,w=l.useMemo(function(){var R=r||AC(o)||[];return oN(R.slice())},[r,o]),$=l.useMemo(function(){if(a){var R=w.slice();if(!R.includes(ri)){var N=m||0,M=N===0&&C==="right"?w.length:N;M>=0&&R.splice(M,0,ri)}var k=R.indexOf(ri);R=R.filter(function(L,F){return L!==ri||F===k});var T=w[k],z;C?z=C:z=T?T.fixed:null;var j=B(B(B(B(B(B({},Ou,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",g),"render",function(F,A,H){var U=c(A,H),X=i.has(U),ee=f?f(A):!0,J=d({prefixCls:n,expanded:X,expandable:ee,record:A,onExpand:u});return p?l.createElement("span",{onClick:function(ue){return ue.stopPropagation()}},J):J});return R.map(function(L,F){var A=L===ri?j:L;return F<h?q(q({},A),{},{fixed:A.fixed||"left"}):A})}return w.filter(function(L){return L!==ri})},[a,w,c,i,d,y,h]),x=l.useMemo(function(){var R=$;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,$,y]),E=l.useMemo(function(){return y==="rtl"?fJ(ib(x)):ib(x)},[x,y,b]),O=l.useMemo(function(){for(var R=-1,N=E.length-1;N>=0;N-=1){var M=E[N].fixed;if(M==="left"||M===!0){R=N;break}}if(R>=0)for(var k=0;k<=R;k+=1){var T=E[k].fixed;if(T!=="left"&&T!==!0)return!0}var z=E.findIndex(function(F){var A=F.fixed;return A==="right"});if(z>=0)for(var j=z;j<E.length;j+=1){var L=E[j].fixed;if(L!=="right")return!0}return!1},[E]),I=cJ(E,b,S),P=te(I,2),_=P[0],D=P[1];return[x,_,D,O]}function vJ(e,t,n){var r=tJ(e),o=r.expandIcon,a=r.expandedRowKeys,i=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||UQ,v=f||"children",h=l.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Fd&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(w){return w&&ht(w)==="object"&&w[v]})?"nest":!1},[!!c,t]),y=l.useState(function(){return i||(s?qQ(t,n,v):[])}),p=te(y,2),g=p[0],C=p[1],b=l.useMemo(function(){return new Set(a||g||[])},[a,g]),S=l.useCallback(function(w){var $=n(w,t.indexOf(w)),x,E=b.has($);E?(b.delete($),x=ze(b)):x=[].concat(ze(b),[$]),C(x),u&&u(!E,w),d&&d(x)},[n,b,t,u,d]);return[r,h,b,m,v,S]}function hJ(e,t,n){var r=e.map(function(o,a){return FC(a,a,e,t,n)});return Ol(function(){return r},[r],function(o,a){return!ya(o,a)})}function gJ(e){var t=l.useRef(e),n=l.useState({}),r=te(n,2),o=r[1],a=l.useRef(null),i=l.useRef([]);function s(c){i.current.push(c);var u=Promise.resolve();a.current=u,u.then(function(){if(a.current===u){var d=i.current,f=t.current;i.current=[],d.forEach(function(m){t.current=m(t.current)}),a.current=null,f!==t.current&&o({})}})}return l.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function pJ(e){var t=l.useRef(null),n=l.useRef();function r(){window.clearTimeout(n.current)}function o(i){t.current=i,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return l.useEffect(function(){return r},[]),[o,a]}function yJ(){var e=l.useState(-1),t=te(e,2),n=t[0],r=t[1],o=l.useState(-1),a=te(o,2),i=a[0],s=a[1],c=l.useCallback(function(u,d){r(u),s(d)},[]);return[n,i,c]}var _$=Er()?window:null;function bJ(e,t){var n=ht(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,a=n.offsetSummary,i=a===void 0?0:a,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return _$}:u,f=d()||_$,m=!!e;return l.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:i,offsetScroll:c,container:f}},[m,c,o,i,t,f])}function CJ(e,t,n){var r=l.useMemo(function(){var o=t.length,a=function(u,d,f){for(var m=[],v=0,h=u;h!==d;h+=f)m.push(v),t[h].fixed&&(v+=e[h]||0);return m},i=a(0,o,1),s=a(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:i}:{left:i,right:s}},[e,t,n]);return r}function T$(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function D$(e){var t=Cd(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var SJ=function(t,n){var r,o,a=t.scrollBodyRef,i=t.onScroll,s=t.offsetScroll,c=t.container,u=t.direction,d=hr(Fr,"prefixCls"),f=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=a.current)===null||o===void 0?void 0:o.clientWidth)||0,v=f&&m*(m/f),h=l.useRef(),y=gJ({scrollLeft:0,isHiddenScrollBar:!0}),p=te(y,2),g=p[0],C=p[1],b=l.useRef({delta:0,x:0}),S=l.useState(!1),w=te(S,2),$=w[0],x=w[1],E=l.useRef(null);l.useEffect(function(){return function(){jt.cancel(E.current)}},[]);var O=function(){x(!1)},I=function(N){N.persist(),b.current.delta=N.pageX-g.scrollLeft,b.current.x=0,x(!0),N.preventDefault()},P=function(N){var M,k=N||((M=window)===null||M===void 0?void 0:M.event),T=k.buttons;if(!$||T===0){$&&x(!1);return}var z=b.current.x+N.pageX-b.current.x-b.current.delta,j=u==="rtl";z=Math.max(j?v-m:0,Math.min(j?0:m-v,z));var L=!j||Math.abs(z)+Math.abs(v)<m;L&&(i({scrollLeft:z/m*(f+2)}),b.current.x=N.pageX)},_=function(){jt.cancel(E.current),E.current=jt(function(){if(a.current){var N=D$(a.current).top,M=N+a.current.offsetHeight,k=c===window?document.documentElement.scrollTop+window.innerHeight:D$(c).top+c.clientHeight;C(function(T){return q(q({},T),{},{isHiddenScrollBar:M-_w()<=k||N>=k-s})})}})},D=function(N){C(function(M){return q(q({},M),{},{scrollLeft:f?N/f*m:0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:D,checkScrollBarVisible:_}}),l.useEffect(function(){var R=b$(document.body,"mouseup",O,!1),N=b$(document.body,"mousemove",P,!1);return _(),function(){R.remove(),N.remove()}},[v,$]),l.useEffect(function(){if(a.current){for(var R=[],N=Cd(a.current);N;)R.push(N),N=N.parentElement;return R.forEach(function(M){return M.addEventListener("scroll",_,!1)}),window.addEventListener("resize",_,!1),window.addEventListener("scroll",_,!1),c.addEventListener("scroll",_,!1),function(){R.forEach(function(M){return M.removeEventListener("scroll",_)}),window.removeEventListener("resize",_),window.removeEventListener("scroll",_),c.removeEventListener("scroll",_)}}},[c]),l.useEffect(function(){g.isHiddenScrollBar||C(function(R){var N=a.current;return N?q(q({},R),{},{scrollLeft:N.scrollLeft/N.scrollWidth*N.clientWidth}):R})},[g.isHiddenScrollBar]),f<=m||!v||g.isHiddenScrollBar?null:l.createElement("div",{style:{height:_w(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},l.createElement("div",{onMouseDown:I,ref:h,className:Z("".concat(d,"-sticky-scroll-bar"),B({},"".concat(d,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))};const xJ=l.forwardRef(SJ);var aN="rc-table",wJ=[],$J={};function EJ(){return"No Data"}function OJ(e,t){var n=q({rowKey:"key",prefixCls:aN,emptyText:EJ},e),r=n.prefixCls,o=n.className,a=n.rowClassName,i=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,v=n.footer,h=n.summary,y=n.caption,p=n.id,g=n.showHeader,C=n.components,b=n.emptyText,S=n.onRow,w=n.onHeaderRow,$=n.measureRowRender,x=n.onScroll,E=n.internalHooks,O=n.transformColumns,I=n.internalRefs,P=n.tailor,_=n.getContainerWidth,D=n.sticky,R=n.rowHoverable,N=R===void 0?!0:R,M=s||wJ,k=!!M.length,T=E===Fd,z=l.useCallback(function(et,vt){return Hr(C,et)||vt},[C]),j=l.useMemo(function(){return typeof c=="function"?c:function(et){var vt=et&&et[c];return vt}},[c]),L=z(["body"]),F=yJ(),A=te(F,3),H=A[0],U=A[1],X=A[2],ee=vJ(n,M,j),J=te(ee,6),oe=J[0],ue=J[1],se=J[2],Q=J[3],fe=J[4],de=J[5],ie=u==null?void 0:u.x,re=l.useState(0),he=te(re,2),ge=he[0],Ne=he[1],Pe=mJ(q(q(q({},n),oe),{},{expandable:!!oe.expandedRowRender,columnTitle:oe.columnTitle,expandedKeys:se,getRowKey:j,onTriggerExpand:de,expandIcon:Q,expandIconColumnIndex:oe.expandIconColumnIndex,direction:f,scrollWidth:T&&P&&typeof ie=="number"?ie:null,clientWidth:ge}),T?O:null),ve=te(Pe,4),$e=ve[0],Ee=ve[1],we=ve[2],Ae=ve[3],Le=we??ie,Ye=l.useMemo(function(){return{columns:$e,flattenColumns:Ee}},[$e,Ee]),Ke=l.useRef(),He=l.useRef(),Ue=l.useRef(),Me=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Ke.current,scrollTo:function(vt){var Bt;if(Ue.current instanceof HTMLElement){var on=vt.index,$n=vt.top,An=vt.key;if(TQ($n)){var Ar;(Ar=Ue.current)===null||Ar===void 0||Ar.scrollTo({top:$n})}else{var qr,Gr=An??j(M[on]);(qr=Ue.current.querySelector('[data-row-key="'.concat(Gr,'"]')))===null||qr===void 0||qr.scrollIntoView()}}else(Bt=Ue.current)!==null&&Bt!==void 0&&Bt.scrollTo&&Ue.current.scrollTo(vt)}}});var Se=l.useRef(),Fe=l.useState(!1),xe=te(Fe,2),Te=xe[0],Oe=xe[1],Ie=l.useState(!1),je=te(Ie,2),qe=je[0],ut=je[1],bt=l.useState(new Map),Ge=te(bt,2),tt=Ge[0],rt=Ge[1],V=Bh(Ee),ae=V.map(function(et){return tt.get(et)}),me=l.useMemo(function(){return ae},[ae.join("_")]),Ce=CJ(me,Ee,f),pe=u&&ab(u.y),Re=u&&ab(Le)||!!oe.fixed,W=Re&&Ee.some(function(et){var vt=et.fixed;return vt}),K=l.useRef(),G=bJ(D,r),ce=G.isSticky,ye=G.offsetHeader,De=G.offsetSummary,Be=G.offsetScroll,Ve=G.stickyClassName,ke=G.container,_e=l.useMemo(function(){return h==null?void 0:h(M)},[h,M]),We=(pe||ce)&&l.isValidElement(_e)&&_e.type===Hh&&_e.props.fixed,Ze,st,$t;pe&&(st={overflowY:k?"scroll":"auto",maxHeight:u.y}),Re&&(Ze={overflowX:"auto"},pe||(st={overflowY:"hidden"}),$t={width:Le===!0?"auto":Le,minWidth:"100%"});var Ot=l.useCallback(function(et,vt){rt(function(Bt){if(Bt.get(et)!==vt){var on=new Map(Bt);return on.set(et,vt),on}return Bt})},[]),ft=pJ(),_t=te(ft,2),Xe=_t[0],it=_t[1];function xt(et,vt){vt&&(typeof vt=="function"?vt(et):vt.scrollLeft!==et&&(vt.scrollLeft=et,vt.scrollLeft!==et&&setTimeout(function(){vt.scrollLeft=et},0)))}var dt=zt(function(et){var vt=et.currentTarget,Bt=et.scrollLeft,on=f==="rtl",$n=typeof Bt=="number"?Bt:vt.scrollLeft,An=vt||$J;if(!it()||it()===An){var Ar;Xe(An),xt($n,He.current),xt($n,Ue.current),xt($n,Se.current),xt($n,(Ar=K.current)===null||Ar===void 0?void 0:Ar.setScrollLeft)}var qr=vt||He.current;if(qr){var Gr=T&&P&&typeof Le=="number"?Le:qr.scrollWidth,la=qr.clientWidth;if(Gr===la){Oe(!1),ut(!1);return}on?(Oe(-$n<Gr-la),ut(-$n>0)):(Oe($n>0),ut($n<Gr-la))}}),mt=zt(function(et){dt(et),x==null||x(et)}),lt=function(){if(Re&&Ue.current){var vt;dt({currentTarget:Cd(Ue.current),scrollLeft:(vt=Ue.current)===null||vt===void 0?void 0:vt.scrollLeft})}else Oe(!1),ut(!1)},It=function(vt){var Bt,on=vt.width;(Bt=K.current)===null||Bt===void 0||Bt.checkScrollBarVisible();var $n=Ke.current?Ke.current.offsetWidth:on;T&&_&&Ke.current&&($n=_(Ke.current,$n)||$n),$n!==ge&&(lt(),Ne($n))},kt=l.useRef(!1);l.useEffect(function(){kt.current&&lt()},[Re,s,$e.length]),l.useEffect(function(){kt.current=!0},[]);var ot=l.useState(0),Qe=te(ot,2),pt=Qe[0],Jt=Qe[1],ln=l.useState(!0),Ht=te(ln,2),gn=Ht[0],yn=Ht[1];Dt(function(){(!P||!T)&&(Ue.current instanceof Element?Jt(Py(Ue.current).width):Jt(Py(Me.current).width)),yn(Ay("position","sticky"))},[]),l.useEffect(function(){T&&I&&(I.body.current=Ue.current)});var Dn=l.useCallback(function(et){return l.createElement(l.Fragment,null,l.createElement(M$,et),We==="top"&&l.createElement(Nf,et,_e))},[We,_e]),qn=l.useCallback(function(et){return l.createElement(Nf,et,_e)},[_e]),tr=z(["table"],"table"),Gn=l.useMemo(function(){return d||(W?Le==="max-content"?"auto":"fixed":pe||ce||Ee.some(function(et){var vt=et.ellipsis;return vt})?"fixed":"auto")},[pe,W,Ee,d,ce]),Yt,wt={colWidths:me,columCount:Ee.length,stickyOffsets:Ce,onHeaderRow:w,fixHeader:pe,scroll:u},Ct=l.useMemo(function(){return k?null:typeof b=="function"?b():b},[k,b]),Ut=l.createElement(ZQ,{data:M,measureColumnWidth:pe||Re||ce}),gt=l.createElement(rN,{colWidths:Ee.map(function(et){var vt=et.width;return vt}),columns:Ee}),yt=y!=null?l.createElement("caption",{className:"".concat(r,"-caption")},y):void 0,Vt=vr(n,{data:!0}),dn=vr(n,{aria:!0});if(pe||ce){var bn;typeof L=="function"?(bn=L(M,{scrollbarSize:pt,ref:Ue,onScroll:dt}),wt.colWidths=Ee.map(function(et,vt){var Bt=et.width,on=vt===Ee.length-1?Bt-pt:Bt;return typeof on=="number"&&!Number.isNaN(on)?on:0})):bn=l.createElement("div",{style:q(q({},Ze),st),onScroll:mt,ref:Ue,className:Z("".concat(r,"-body"))},l.createElement(tr,be({style:q(q({},$t),{},{tableLayout:Gn})},dn),yt,gt,Ut,!We&&_e&&l.createElement(Nf,{stickyOffsets:Ce,flattenColumns:Ee},_e)));var Yn=q(q(q({noData:!M.length},wt),Ye),{},{direction:f,stickyClassName:Ve,scrollX:Le,tableLayout:Gn,onScroll:dt});Yt=l.createElement(l.Fragment,null,g!==!1&&l.createElement(P$,be({},Yn,{stickyTopOffset:ye,className:"".concat(r,"-header"),ref:He,colGroup:gt}),Dn),bn,We&&We!=="top"&&l.createElement(P$,be({},Yn,{stickyBottomOffset:De,className:"".concat(r,"-summary"),ref:Se,colGroup:gt}),qn),ce&&Ue.current&&Ue.current instanceof Element&&l.createElement(xJ,{ref:K,offsetScroll:Be,scrollBodyRef:Ue,onScroll:dt,container:ke,direction:f}))}else Yt=l.createElement("div",{style:q(q({},Ze),st),className:Z("".concat(r,"-content")),onScroll:dt,ref:Ue},l.createElement(tr,be({style:q(q({},$t),{},{tableLayout:Gn})},dn),yt,gt,g!==!1&&l.createElement(M$,be({},wt,Ye)),Ut,_e&&l.createElement(Nf,{stickyOffsets:Ce,flattenColumns:Ee},_e)));var kn=l.createElement("div",be({className:Z(r,o,B(B(B(B(B(B(B(B(B(B({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),Te),"".concat(r,"-ping-right"),qe),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),pe),"".concat(r,"-fixed-column"),W),"".concat(r,"-fixed-column-gapped"),W&&Ae),"".concat(r,"-scroll-horizontal"),Re),"".concat(r,"-has-fix-left"),Ee[0]&&Ee[0].fixed),"".concat(r,"-has-fix-right"),Ee[Ee.length-1]&&Ee[Ee.length-1].fixed==="right")),style:i,id:p,ref:Ke},Vt),m&&l.createElement(T$,{className:"".concat(r,"-title")},m(M)),l.createElement("div",{ref:Me,className:"".concat(r,"-container")},Yt),v&&l.createElement(T$,{className:"".concat(r,"-footer")},v(M)));Re&&(kn=l.createElement(Sr,{onResize:It},kn));var Xn=hJ(Ee,Ce,f),Ft=l.useMemo(function(){return{scrollX:Le,prefixCls:r,getComponent:z,scrollbarSize:pt,direction:f,fixedInfoList:Xn,isSticky:ce,supportSticky:gn,componentWidth:ge,fixHeader:pe,fixColumn:W,horizonScroll:Re,tableLayout:Gn,rowClassName:a,expandedRowClassName:oe.expandedRowClassName,expandIcon:Q,expandableType:ue,expandRowByClick:oe.expandRowByClick,expandedRowRender:oe.expandedRowRender,expandedRowOffset:oe.expandedRowOffset,onTriggerExpand:de,expandIconColumnIndex:oe.expandIconColumnIndex,indentSize:oe.indentSize,allColumnsFixedLeft:Ee.every(function(et){return et.fixed==="left"}),emptyNode:Ct,columns:$e,flattenColumns:Ee,onColumnResize:Ot,colWidths:me,hoverStartRow:H,hoverEndRow:U,onHover:X,rowExpandable:oe.rowExpandable,onRow:S,getRowKey:j,expandedKeys:se,childrenColumnName:fe,rowHoverable:N,measureRowRender:$}},[Le,r,z,pt,f,Xn,ce,gn,ge,pe,W,Re,Gn,a,oe.expandedRowClassName,Q,ue,oe.expandRowByClick,oe.expandedRowRender,oe.expandedRowOffset,de,oe.expandIconColumnIndex,oe.indentSize,Ct,$e,Ee,Ot,me,H,U,X,oe.rowExpandable,S,j,se,fe,N,$]);return l.createElement(Fr.Provider,{value:Ft},kn)}var IJ=l.forwardRef(OJ);function iN(e){return q6(IJ,e)}var Sc=iN();Sc.EXPAND_COLUMN=ri;Sc.INTERNAL_HOOKS=Fd;Sc.Column=WQ;Sc.ColumnGroup=KQ;Sc.Summary=X6;var BC=zC(null),lN=zC(null);function RJ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function PJ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,a=e.index,i=e.component,s=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,v=n.render,h=n.dataIndex,y=n.className,p=n.width,g=hr(lN,["columnsOffset"]),C=g.columnsOffset,b=nN(t,n,r,o,a),S=b.key,w=b.fixedInfo,$=b.appendCellNode,x=b.additionalCellProps,E=x.style,O=x.colSpan,I=O===void 0?1:O,P=x.rowSpan,_=P===void 0?1:P,D=r-1,R=RJ(D,I,C),N=I>1?p-R:0,M=q(q(q({},E),u),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:N,pointerEvents:"auto"}),k=l.useMemo(function(){return f?_<=1:I===0||_===0||_>1},[_,I,f]);k?M.visibility="hidden":f&&(M.height=m==null?void 0:m(_));var T=k?function(){return null}:v,z={};return(_===0||I===0)&&(z.rowSpan=1,z.colSpan=1),l.createElement(Cc,be({className:Z(y,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:s,dataIndex:h,render:T,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:$,additionalProps:q(q({},x),{},{style:M},z)}))}var MJ=["data","index","className","rowKey","style","extra","getHeight"],NJ=l.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=Pt(e,MJ),d=n.record,f=n.indent,m=n.index,v=hr(Fr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=v.scrollX,y=v.flattenColumns,p=v.prefixCls,g=v.fixColumn,C=v.componentWidth,b=hr(BC,["getComponent"]),S=b.getComponent,w=Z6(d,a,r,f),$=S(["body","row"],"div"),x=S(["body","cell"],"div"),E=w.rowSupportExpand,O=w.expanded,I=w.rowProps,P=w.expandedRowRender,_=w.expandedRowClassName,D;if(E&&O){var R=P(d,r,f+1,O),N=tN(_,d,r,f),M={};g&&(M={style:B({},"--virtual-width","".concat(C,"px"))});var k="".concat(p,"-expanded-row-cell");D=l.createElement($,{className:Z("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(f+1),N)},l.createElement(Cc,{component:x,prefixCls:p,className:Z(k,B({},"".concat(k,"-fixed"),g)),additionalProps:M},R))}var T=q(q({},i),{},{width:h});s&&(T.position="absolute",T.pointerEvents="none");var z=l.createElement($,be({},I,u,{"data-row-key":a,ref:E?null:t,className:Z(o,"".concat(p,"-row"),I==null?void 0:I.className,B({},"".concat(p,"-row-extra"),s)),style:q(q({},T),I==null?void 0:I.style)}),y.map(function(j,L){return l.createElement(PJ,{key:L,component:x,rowInfo:w,column:j,colIndex:L,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:c})}));return E?l.createElement("div",{ref:t},z,D):z}),k$=bc(NJ),_J=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=hr(Fr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=o.flattenColumns,i=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,v=hr(BC),h=v.sticky,y=v.scrollY,p=v.listItemHeight,g=v.getComponent,C=v.onScroll,b=l.useRef(),S=J6(n,d,c,s),w=l.useMemo(function(){var D=0;return a.map(function(R){var N=R.width,M=R.minWidth,k=R.key,T=Math.max(N||0,M||0);return D+=T,[k,T,D]})},[a]),$=l.useMemo(function(){return w.map(function(D){return D[2]})},[w]);l.useEffect(function(){w.forEach(function(D){var R=te(D,2),N=R[0],M=R[1];i(N,M)})},[w]),l.useImperativeHandle(t,function(){var D,R={scrollTo:function(M){var k;(k=b.current)===null||k===void 0||k.scrollTo(M)},nativeElement:(D=b.current)===null||D===void 0?void 0:D.nativeElement};return Object.defineProperty(R,"scrollLeft",{get:function(){var M;return((M=b.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var k;(k=b.current)===null||k===void 0||k.scrollTo({left:M})}}),Object.defineProperty(R,"scrollTop",{get:function(){var M;return((M=b.current)===null||M===void 0?void 0:M.getScrollInfo().y)||0},set:function(M){var k;(k=b.current)===null||k===void 0||k.scrollTo({top:M})}}),R});var x=function(R,N){var M,k=(M=S[N])===null||M===void 0?void 0:M.record,T=R.onCell;if(T){var z,j=T(k,N);return(z=j==null?void 0:j.rowSpan)!==null&&z!==void 0?z:1}return 1},E=function(R){var N=R.start,M=R.end,k=R.getSize,T=R.offsetY;if(M<0)return null;for(var z=a.filter(function(se){return x(se,N)===0}),j=N,L=function(Q){if(z=z.filter(function(fe){return x(fe,Q)===0}),!z.length)return j=Q,1},F=N;F>=0&&!L(F);F-=1);for(var A=a.filter(function(se){return x(se,M)!==1}),H=M,U=function(Q){if(A=A.filter(function(fe){return x(fe,Q)!==1}),!A.length)return H=Math.max(Q-1,M),1},X=M;X<S.length&&!U(X);X+=1);for(var ee=[],J=function(Q){var fe=S[Q];if(!fe)return 1;a.some(function(de){return x(de,Q)>1})&&ee.push(Q)},oe=j;oe<=H;oe+=1)J(oe);var ue=ee.map(function(se){var Q=S[se],fe=s(Q.record,se),de=function(he){var ge=se+he-1,Ne=s(S[ge].record,ge),Pe=k(fe,Ne);return Pe.bottom-Pe.top},ie=k(fe);return l.createElement(k$,{key:se,data:Q,rowKey:fe,index:se,style:{top:-T+ie.top},extra:!0,getHeight:de})});return ue},O=l.useMemo(function(){return{columnsOffset:$}},[$]),I="".concat(u,"-tbody"),P=g(["body","wrapper"]),_={};return h&&(_.position="sticky",_.bottom=0,ht(h)==="object"&&h.offsetScroll&&(_.bottom=h.offsetScroll)),l.createElement(lN.Provider,{value:O},l.createElement(bh,{fullHeight:!1,ref:b,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:_},className:I,height:y,itemHeight:p||24,data:S,itemKey:function(R){return s(R.record)},component:P,scrollWidth:f,direction:m,onVirtualScroll:function(R){var N,M=R.x;r({currentTarget:(N=b.current)===null||N===void 0?void 0:N.nativeElement,scrollLeft:M})},onScroll:C,extraRender:E},function(D,R,N){var M=s(D.record,R);return l.createElement(k$,{data:D,rowKey:M,index:R,style:N.style})}))}),TJ=bc(_J),DJ=function(t,n){var r=n.ref,o=n.onScroll;return l.createElement(TJ,{ref:r,data:t,onScroll:o})};function kJ(e,t){var n=e.data,r=e.columns,o=e.scroll,a=e.sticky,i=e.prefixCls,s=i===void 0?aN:i,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},v=m.x,h=m.y;typeof v!="number"&&(v=1),typeof h!="number"&&(h=500);var y=zt(function(C,b){return Hr(d,C)||b}),p=zt(f),g=l.useMemo(function(){return{sticky:a,scrollY:h,listItemHeight:u,getComponent:y,onScroll:p}},[a,h,u,y,p]);return l.createElement(BC.Provider,{value:g},l.createElement(Sc,be({},e,{className:Z(c,"".concat(s,"-virtual")),scroll:q(q({},o),{},{x:v}),components:q(q({},d),{},{body:n!=null&&n.length?DJ:void 0}),columns:r,internalHooks:Fd,tailor:!0,ref:t})))}var jJ=l.forwardRef(kJ);function sN(e){return q6(jJ,e)}sN();const zJ=e=>null,LJ=e=>null;var HC=l.createContext(null),FJ=l.createContext({}),AJ=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1)s.push(l.createElement("span",{key:c,className:Z(i,B(B({},"".concat(i,"-start"),o[c]),"".concat(i,"-end"),a[c]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const BJ=l.memo(AJ);var HJ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],j$="open",z$="close",VJ="---",cd=function(t){var n,r,o,a=t.eventKey,i=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,v=t.isEnd,h=t.expanded,y=t.selected,p=t.checked,g=t.halfChecked,C=t.loading,b=t.domRef,S=t.active,w=t.data,$=t.onMouseMove,x=t.selectable,E=Pt(t,HJ),O=le.useContext(HC),I=le.useContext(FJ),P=le.useRef(null),_=le.useState(!1),D=te(_,2),R=D[0],N=D[1],M=!!(O.disabled||t.disabled||(n=I.nodeDisabled)!==null&&n!==void 0&&n.call(I,w)),k=le.useMemo(function(){return!O.checkable||t.checkable===!1?!1:O.checkable},[O.checkable,t.checkable]),T=function(Se){M||O.onNodeSelect(Se,Jn(t))},z=function(Se){M||!k||t.disableCheckbox||O.onNodeCheck(Se,Jn(t),!p)},j=le.useMemo(function(){return typeof x=="boolean"?x:O.selectable},[x,O.selectable]),L=function(Se){O.onNodeClick(Se,Jn(t)),j?T(Se):z(Se)},F=function(Se){O.onNodeDoubleClick(Se,Jn(t))},A=function(Se){O.onNodeMouseEnter(Se,Jn(t))},H=function(Se){O.onNodeMouseLeave(Se,Jn(t))},U=function(Se){O.onNodeContextMenu(Se,Jn(t))},X=le.useMemo(function(){return!!(O.draggable&&(!O.draggable.nodeDraggable||O.draggable.nodeDraggable(w)))},[O.draggable,w]),ee=function(Se){Se.stopPropagation(),N(!0),O.onNodeDragStart(Se,t);try{Se.dataTransfer.setData("text/plain","")}catch{}},J=function(Se){Se.preventDefault(),Se.stopPropagation(),O.onNodeDragEnter(Se,t)},oe=function(Se){Se.preventDefault(),Se.stopPropagation(),O.onNodeDragOver(Se,t)},ue=function(Se){Se.stopPropagation(),O.onNodeDragLeave(Se,t)},se=function(Se){Se.stopPropagation(),N(!1),O.onNodeDragEnd(Se,t)},Q=function(Se){Se.preventDefault(),Se.stopPropagation(),N(!1),O.onNodeDrop(Se,t)},fe=function(Se){C||O.onNodeExpand(Se,Jn(t))},de=le.useMemo(function(){var Me=Jr(O.keyEntities,a)||{},Se=Me.children;return!!(Se||[]).length},[O.keyEntities,a]),ie=le.useMemo(function(){return f===!1?!1:f||!O.loadData&&!de||O.loadData&&t.loaded&&!de},[f,O.loadData,de,t.loaded]);le.useEffect(function(){C||typeof O.loadData=="function"&&h&&!ie&&!t.loaded&&O.onNodeLoad(Jn(t))},[C,O.loadData,O.onNodeLoad,h,ie,t]);var re=le.useMemo(function(){var Me;return(Me=O.draggable)!==null&&Me!==void 0&&Me.icon?le.createElement("span",{className:"".concat(O.prefixCls,"-draggable-icon")},O.draggable.icon):null},[O.draggable]),he=function(Se){var Fe=t.switcherIcon||O.switcherIcon;return typeof Fe=="function"?Fe(q(q({},t),{},{isLeaf:Se})):Fe},ge=function(){if(ie){var Se=he(!0);return Se!==!1?le.createElement("span",{className:Z("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher-noop"))},Se):null}var Fe=he(!1);return Fe!==!1?le.createElement("span",{onClick:fe,className:Z("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher_").concat(h?j$:z$))},Fe):null},Ne=le.useMemo(function(){if(!k)return null;var Me=typeof k!="boolean"?k:null;return le.createElement("span",{className:Z("".concat(O.prefixCls,"-checkbox"),B(B(B({},"".concat(O.prefixCls,"-checkbox-checked"),p),"".concat(O.prefixCls,"-checkbox-indeterminate"),!p&&g),"".concat(O.prefixCls,"-checkbox-disabled"),M||t.disableCheckbox)),onClick:z,role:"checkbox","aria-checked":g?"mixed":p,"aria-disabled":M||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Me)},[k,p,g,M,t.disableCheckbox,t.title]),Pe=le.useMemo(function(){return ie?null:h?j$:z$},[ie,h]),ve=le.useMemo(function(){return le.createElement("span",{className:Z("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__").concat(Pe||"docu"),B({},"".concat(O.prefixCls,"-icon_loading"),C))})},[O.prefixCls,Pe,C]),$e=le.useMemo(function(){var Me=!!O.draggable,Se=!t.disabled&&Me&&O.dragOverNodeKey===a;return Se?O.dropIndicatorRender({dropPosition:O.dropPosition,dropLevelOffset:O.dropLevelOffset,indent:O.indent,prefixCls:O.prefixCls,direction:O.direction}):null},[O.dropPosition,O.dropLevelOffset,O.indent,O.prefixCls,O.direction,O.draggable,O.dragOverNodeKey,O.dropIndicatorRender]),Ee=le.useMemo(function(){var Me=t.title,Se=Me===void 0?VJ:Me,Fe="".concat(O.prefixCls,"-node-content-wrapper"),xe;if(O.showIcon){var Te=t.icon||O.icon;xe=Te?le.createElement("span",{className:Z("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__customize"))},typeof Te=="function"?Te(t):Te):ve}else O.loadData&&C&&(xe=ve);var Oe;return typeof Se=="function"?Oe=Se(w):O.titleRender?Oe=O.titleRender(w):Oe=Se,le.createElement("span",{ref:P,title:typeof Se=="string"?Se:"",className:Z(Fe,"".concat(Fe,"-").concat(Pe||"normal"),B({},"".concat(O.prefixCls,"-node-selected"),!M&&(y||R))),onMouseEnter:A,onMouseLeave:H,onContextMenu:U,onClick:L,onDoubleClick:F},xe,le.createElement("span",{className:"".concat(O.prefixCls,"-title")},Oe),$e)},[O.prefixCls,O.showIcon,t,O.icon,ve,O.titleRender,w,Pe,A,H,U,L,F]),we=vr(E,{aria:!0,data:!0}),Ae=Jr(O.keyEntities,a)||{},Le=Ae.level,Ye=v[v.length-1],Ke=!M&&X,He=O.draggingNodeKey===a,Ue=x!==void 0?{"aria-selected":!!x}:void 0;return le.createElement("div",be({ref:b,role:"treeitem","aria-expanded":f?void 0:h,className:Z(i,"".concat(O.prefixCls,"-treenode"),(o={},B(B(B(B(B(B(B(B(B(B(o,"".concat(O.prefixCls,"-treenode-disabled"),M),"".concat(O.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!f),"".concat(O.prefixCls,"-treenode-checkbox-checked"),p),"".concat(O.prefixCls,"-treenode-checkbox-indeterminate"),g),"".concat(O.prefixCls,"-treenode-selected"),y),"".concat(O.prefixCls,"-treenode-loading"),C),"".concat(O.prefixCls,"-treenode-active"),S),"".concat(O.prefixCls,"-treenode-leaf-last"),Ye),"".concat(O.prefixCls,"-treenode-draggable"),X),"dragging",He),B(B(B(B(B(B(B(o,"drop-target",O.dropTargetKey===a),"drop-container",O.dropContainerKey===a),"drag-over",!M&&c),"drag-over-gap-top",!M&&u),"drag-over-gap-bottom",!M&&d),"filter-node",(r=O.filterTreeNode)===null||r===void 0?void 0:r.call(O,Jn(t))),"".concat(O.prefixCls,"-treenode-leaf"),ie))),style:s,draggable:Ke,onDragStart:Ke?ee:void 0,onDragEnter:X?J:void 0,onDragOver:X?oe:void 0,onDragLeave:X?ue:void 0,onDrop:X?Q:void 0,onDragEnd:X?se:void 0,onMouseMove:$},Ue,we),le.createElement(BJ,{prefixCls:O.prefixCls,level:Le,isStart:m,isEnd:v}),re,ge(),Ne,Ee)};cd.isTreeNode=1;function da(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Ia(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function VC(e){return e.split("-")}function WJ(e,t){var n=[],r=Jr(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var s=i.key,c=i.children;n.push(s),o(c)})}return o(r.children),n}function KJ(e){if(e.parent){var t=VC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function UJ(e){var t=VC(e.pos);return Number(t[t.length-1])===0}function L$(e,t,n,r,o,a,i,s,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,y=v.height,p=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),g=(p-12)/r,C=c.filter(function(M){var k;return(k=s[M])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),b=Jr(s,n.eventKey);if(m<h+y/2){var S=i.findIndex(function(M){return M.key===b.key}),w=S<=0?0:S-1,$=i[w].key;b=Jr(s,$)}var x=b.key,E=b,O=b.key,I=0,P=0;if(!C.includes(x))for(var _=0;_<g&&KJ(b);_+=1)b=b.parent,P+=1;var D=t.data,R=b.node,N=!0;return UJ(b)&&b.level===0&&m<h+y/2&&a({dragNode:D,dropNode:R,dropPosition:-1})&&b.key===n.eventKey?I=-1:(E.children||[]).length&&C.includes(O)?a({dragNode:D,dropNode:R,dropPosition:0})?I=0:N=!1:P===0?g>-1.5?a({dragNode:D,dropNode:R,dropPosition:1})?I=1:N=!1:a({dragNode:D,dropNode:R,dropPosition:0})?I=0:a({dragNode:D,dropNode:R,dropPosition:1})?I=1:N=!1:a({dragNode:D,dropNode:R,dropPosition:1})?I=1:N=!1,{dropPosition:I,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:O,dropContainerKey:I===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:N}}function F$(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Rp(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Sn(!1,"`checkedKeys` is not an array or an object"),null;return t}function lb(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=Jr(t,o);if(a){n.add(o);var i=a.parent,s=a.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),ze(n)}const Ja={},sb="SELECT_ALL",cb="SELECT_INVERT",ub="SELECT_NONE",A$=[],cN=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&cN(e,r[e],n)}),n),qJ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,getTitleCheckboxProps:i,onChange:s,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:v,type:h,selections:y,fixed:p,renderCell:g,hideSelectAll:C,checkStrictly:b=!0}=t||{},{prefixCls:S,data:w,pageData:$,getRecordByKey:x,getRowKey:E,expandType:O,childrenColumnName:I,locale:P,getPopupContainer:_}=e,D=Di(),[R,N]=b7(Q=>Q),[M,k]=en(r||o||A$,{value:r}),T=l.useRef(new Map),z=l.useCallback(Q=>{if(n){const fe=new Map;Q.forEach(de=>{let ie=x(de);!ie&&T.current.has(de)&&(ie=T.current.get(de)),fe.set(de,ie)}),T.current=fe}},[x,n]);l.useEffect(()=>{z(M)},[M]);const j=l.useMemo(()=>cN(I,$),[I,$]),{keyEntities:L}=l.useMemo(()=>{if(b)return{keyEntities:null};let Q=w;if(n){const fe=new Set(j.map((ie,re)=>E(ie,re))),de=Array.from(T.current).reduce((ie,[re,he])=>fe.has(re)?ie:ie.concat(he),[]);Q=[].concat(ze(Q),ze(de))}return PC(Q,{externalGetKey:E,childrenPropName:I})},[w,E,b,I,n,j]),F=l.useMemo(()=>{const Q=new Map;return j.forEach((fe,de)=>{const ie=E(fe,de),re=(a?a(fe):null)||{};Q.set(ie,re)}),Q},[j,E,a]),A=l.useCallback(Q=>{const fe=E(Q);let de;return F.has(fe)?de=F.get(E(Q)):de=a?a(Q):void 0,!!(de!=null&&de.disabled)},[F,E]),[H,U]=l.useMemo(()=>{if(b)return[M||[],[]];const{checkedKeys:Q,halfCheckedKeys:fe}=_s(M,!0,L,A);return[Q||[],fe]},[M,b,L,A]),X=l.useMemo(()=>{const Q=h==="radio"?H.slice(0,1):H;return new Set(Q)},[H,h]),ee=l.useMemo(()=>h==="radio"?new Set:new Set(U),[U,h]);l.useEffect(()=>{t||k(A$)},[!!t]);const J=l.useCallback((Q,fe)=>{let de,ie;z(Q),n?(de=Q,ie=Q.map(re=>T.current.get(re))):(de=[],ie=[],Q.forEach(re=>{const he=x(re);he!==void 0&&(de.push(re),ie.push(he))})),k(de),s==null||s(de,ie,{type:fe})},[k,x,s,n]),oe=l.useCallback((Q,fe,de,ie)=>{if(c){const re=de.map(he=>x(he));c(x(Q),fe,re,ie)}J(de,"single")},[c,x,J]),ue=l.useMemo(()=>!y||C?null:(y===!0?[sb,cb,ub]:y).map(fe=>fe===sb?{key:"all",text:P.selectionAll,onSelect(){J(w.map((de,ie)=>E(de,ie)).filter(de=>{const ie=F.get(de);return!(ie!=null&&ie.disabled)||X.has(de)}),"all")}}:fe===cb?{key:"invert",text:P.selectInvert,onSelect(){const de=new Set(X);$.forEach((re,he)=>{const ge=E(re,he),Ne=F.get(ge);Ne!=null&&Ne.disabled||(de.has(ge)?de.delete(ge):de.add(ge))});const ie=Array.from(de);d&&(D.deprecated(!1,"onSelectInvert","onChange"),d(ie)),J(ie,"invert")}}:fe===ub?{key:"none",text:P.selectNone,onSelect(){f==null||f(),J(Array.from(X).filter(de=>{const ie=F.get(de);return ie==null?void 0:ie.disabled}),"none")}}:fe).map(fe=>Object.assign(Object.assign({},fe),{onSelect:(...de)=>{var ie,re;(re=fe.onSelect)===null||re===void 0||(ie=re).call.apply(ie,[fe].concat(de)),N(null)}})),[y,X,$,E,d,J]);return[l.useCallback(Q=>{var fe;if(!t)return Q.filter(Me=>Me!==Ja);let de=ze(Q);const ie=new Set(X),re=j.map(E).filter(Me=>!F.get(Me).disabled),he=re.every(Me=>ie.has(Me)),ge=re.some(Me=>ie.has(Me)),Ne=()=>{const Me=[];he?re.forEach(Fe=>{ie.delete(Fe),Me.push(Fe)}):re.forEach(Fe=>{ie.has(Fe)||(ie.add(Fe),Me.push(Fe))});const Se=Array.from(ie);u==null||u(!he,Se.map(Fe=>x(Fe)),Me.map(Fe=>x(Fe))),J(Se,"all"),N(null)};let Pe,ve;if(h!=="radio"){let Me;if(ue){const qe={getPopupContainer:_,items:ue.map((ut,bt)=>{const{key:Ge,text:tt,onSelect:rt}=ut;return{key:Ge??bt,onClick:()=>{rt==null||rt(re)},label:tt}})};Me=l.createElement("div",{className:`${S}-selection-extra`},l.createElement(yc,{menu:qe,getPopupContainer:_},l.createElement("span",null,l.createElement(Ch,null))))}const Se=j.map((qe,ut)=>{const bt=E(qe,ut),Ge=F.get(bt)||{};return Object.assign({checked:ie.has(bt)},Ge)}).filter(({disabled:qe})=>qe),Fe=!!Se.length&&Se.length===j.length,xe=Fe&&Se.every(({checked:qe})=>qe),Te=Fe&&Se.some(({checked:qe})=>qe),Oe=(i==null?void 0:i())||{},{onChange:Ie,disabled:je}=Oe;ve=l.createElement(Cl,Object.assign({"aria-label":Me?"Custom selection":"Select all"},Oe,{checked:Fe?xe:!!j.length&&he,indeterminate:Fe?!xe&&Te:!he&&ge,onChange:qe=>{Ne(),Ie==null||Ie(qe)},disabled:je??(j.length===0||Fe),skipGroup:!0})),Pe=!C&&l.createElement("div",{className:`${S}-selection`},ve,Me)}let $e;h==="radio"?$e=(Me,Se,Fe)=>{const xe=E(Se,Fe),Te=ie.has(xe),Oe=F.get(xe);return{node:l.createElement(Td,Object.assign({},Oe,{checked:Te,onClick:Ie=>{var je;Ie.stopPropagation(),(je=Oe==null?void 0:Oe.onClick)===null||je===void 0||je.call(Oe,Ie)},onChange:Ie=>{var je;ie.has(xe)||oe(xe,!0,[xe],Ie.nativeEvent),(je=Oe==null?void 0:Oe.onChange)===null||je===void 0||je.call(Oe,Ie)}})),checked:Te}}:$e=(Me,Se,Fe)=>{var xe;const Te=E(Se,Fe),Oe=ie.has(Te),Ie=ee.has(Te),je=F.get(Te);let qe;return O==="nest"?qe=Ie:qe=(xe=je==null?void 0:je.indeterminate)!==null&&xe!==void 0?xe:Ie,{node:l.createElement(Cl,Object.assign({},je,{indeterminate:qe,checked:Oe,skipGroup:!0,onClick:ut=>{var bt;ut.stopPropagation(),(bt=je==null?void 0:je.onClick)===null||bt===void 0||bt.call(je,ut)},onChange:ut=>{var bt;const{nativeEvent:Ge}=ut,{shiftKey:tt}=Ge,rt=re.indexOf(Te),V=H.some(ae=>re.includes(ae));if(tt&&b&&V){const ae=R(rt,re,ie),me=Array.from(ie);m==null||m(!Oe,me.map(Ce=>x(Ce)),ae.map(Ce=>x(Ce))),J(me,"multiple")}else{const ae=H;if(b){const me=Oe?da(ae,Te):Ia(ae,Te);oe(Te,!Oe,me,Ge)}else{const me=_s([].concat(ze(ae),[Te]),!0,L,A),{checkedKeys:Ce,halfCheckedKeys:pe}=me;let Re=Ce;if(Oe){const W=new Set(Ce);W.delete(Te),Re=_s(Array.from(W),{halfCheckedKeys:pe},L,A).checkedKeys}oe(Te,!Oe,Re,Ge)}}N(Oe?null:rt),(bt=je==null?void 0:je.onChange)===null||bt===void 0||bt.call(je,ut)}})),checked:Oe}};const Ee=(Me,Se,Fe)=>{const{node:xe,checked:Te}=$e(Me,Se,Fe);return g?g(Te,Se,Fe,xe):xe};if(!de.includes(Ja))if(de.findIndex(Me=>{var Se;return((Se=Me[Ou])===null||Se===void 0?void 0:Se.columnType)==="EXPAND_COLUMN"})===0){const[Me,...Se]=de;de=[Me,Ja].concat(ze(Se))}else de=[Ja].concat(ze(de));const we=de.indexOf(Ja);de=de.filter((Me,Se)=>Me!==Ja||Se===we);const Ae=de[we-1],Le=de[we+1];let Ye=p;Ye===void 0&&((Le==null?void 0:Le.fixed)!==void 0?Ye=Le.fixed:(Ae==null?void 0:Ae.fixed)!==void 0&&(Ye=Ae.fixed)),Ye&&Ae&&((fe=Ae[Ou])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"&&Ae.fixed===void 0&&(Ae.fixed=Ye);const Ke=Z(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:y&&h==="checkbox"}),He=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ve):t.columnTitle:Pe,Ue={fixed:Ye,width:v,className:`${S}-selection-column`,title:He(),render:Ee,onCell:t.onCell,align:t.align,[Ou]:{className:Ke}};return de.map(Me=>Me===Ja?Ue:Me)},[E,j,t,H,X,ee,v,ue,O,F,m,oe,A]),X]};function GJ(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:Z(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&a,[`${s}-collapsed`]:i&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function YJ(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const i=getComputedStyle(o),s=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);a=r-s-c}return a}}const Pi=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function xc(e,t){return t?`${t}-${e}`:`${e}`}const Vh=(e,t)=>typeof e=="function"?e(t):e,XJ=(e,t)=>{const n=Vh(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var QJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},JJ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:QJ}))},ZJ=l.forwardRef(JJ),eZ=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o;break}return le.createElement("div",{style:a})};function uN(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function tZ(e,t){var n=l.useState(!1),r=te(n,2),o=r[0],a=r[1];Dt(function(){if(o)return e(),function(){t()}},[o]),Dt(function(){return a(!0),function(){a(!1)}},[])}var nZ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],rZ=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Pt(e,nZ),m=l.useState(!0),v=te(m,2),h=v[0],y=v[1],p=l.useContext(HC),g=p.prefixCls,C=a&&i!=="hide";Dt(function(){a&&C!==h&&y(C)},[a]);var b=function(){a&&s()},S=l.useRef(!1),w=function(){a&&!S.current&&(S.current=!0,c())};tZ(b,w);var $=function(E){C===E&&w()};return a?l.createElement(ko,be({ref:t,visible:h},o,{motionAppear:i==="show",onVisibleChanged:$}),function(x,E){var O=x.className,I=x.style;return l.createElement("div",{ref:E,className:Z("".concat(g,"-treenode-motion"),O),style:I},a.map(function(P){var _=Object.assign({},(uN(P.data),P.data)),D=P.title,R=P.key,N=P.isStart,M=P.isEnd;delete _.children;var k=Eu(R,d);return l.createElement(cd,be({},_,k,{title:D,active:u,data:P.data,key:R,isStart:N,isEnd:M}))}))}):l.createElement(cd,be({domRef:t,className:n,style:r},f,{active:u}))});function oZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function B$(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],a=t.findIndex(function(s){return s.key===n});if(o){var i=t.findIndex(function(s){return s.key===o.key});return t.slice(a+1,i)}return t.slice(a+1)}var aZ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],H$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},iZ=function(){},Sl="RC_TREE_MOTION_".concat(Math.random()),db={key:Sl},dN={key:Sl,level:0,index:0,pos:"0",node:db,nodes:[db]},V$={parent:null,children:[],pos:dN.pos,data:db,title:null,key:Sl,isStart:[],isEnd:[]};function W$(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function K$(e){var t=e.key,n=e.pos;return kd(t,n)}function lZ(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var sZ=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,h=e.dropPosition,y=e.motion,p=e.height,g=e.itemHeight,C=e.virtual,b=e.scrollWidth,S=e.focusable,w=e.activeItem,$=e.focused,x=e.tabIndex,E=e.onKeyDown,O=e.onFocus,I=e.onBlur,P=e.onActiveChange,_=e.onListChangeStart,D=e.onListChangeEnd,R=Pt(e,aZ),N=l.useRef(null),M=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function($e){N.current.scrollTo($e)},getIndentWidth:function(){return M.current.offsetWidth}}});var k=l.useState(o),T=te(k,2),z=T[0],j=T[1],L=l.useState(r),F=te(L,2),A=F[0],H=F[1],U=l.useState(r),X=te(U,2),ee=X[0],J=X[1],oe=l.useState([]),ue=te(oe,2),se=ue[0],Q=ue[1],fe=l.useState(null),de=te(fe,2),ie=de[0],re=de[1],he=l.useRef(r);he.current=r;function ge(){var ve=he.current;H(ve),J(ve),Q([]),re(null),D()}Dt(function(){j(o);var ve=oZ(z,o);if(ve.key!==null)if(ve.add){var $e=A.findIndex(function(Ke){var He=Ke.key;return He===ve.key}),Ee=W$(B$(A,r,ve.key),C,p,g),we=A.slice();we.splice($e+1,0,V$),J(we),Q(Ee),re("show")}else{var Ae=r.findIndex(function(Ke){var He=Ke.key;return He===ve.key}),Le=W$(B$(r,A,ve.key),C,p,g),Ye=r.slice();Ye.splice(Ae+1,0,V$),J(Ye),Q(Le),re("hide")}else A!==r&&(H(r),J(r))},[o,r]),l.useEffect(function(){m||ge()},[m]);var Ne=y?ee:r,Pe={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:h,keyEntities:d};return l.createElement(l.Fragment,null,$&&w&&l.createElement("span",{style:H$,"aria-live":"assertive"},lZ(w)),l.createElement("div",null,l.createElement("input",{style:H$,disabled:S===!1||f,tabIndex:S!==!1?x:null,onKeyDown:E,onFocus:O,onBlur:I,value:"",onChange:iZ,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:M,className:"".concat(n,"-indent-unit")}))),l.createElement(bh,be({},R,{data:Ne,itemKey:K$,height:p,fullHeight:!1,virtual:C,itemHeight:g,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:N,role:"tree",onVisibleChange:function($e){$e.every(function(Ee){return K$(Ee)!==Sl})&&ge()}}),function(ve){var $e=ve.pos,Ee=Object.assign({},(uN(ve.data),ve.data)),we=ve.title,Ae=ve.key,Le=ve.isStart,Ye=ve.isEnd,Ke=kd(Ae,$e);delete Ee.key,delete Ee.children;var He=Eu(Ke,Pe);return l.createElement(rZ,be({},Ee,He,{title:we,active:!!w&&Ae===w.key,pos:$e,data:ve.data,isStart:Le,isEnd:Ye,motion:y,motionNodes:Ae===Sl?se:null,motionType:ie,onMotionStart:_,onMotionEnd:ge,treeNodeRequiredProps:Pe,onMouseMove:function(){P(null)}}))}))}),cZ=10,WC=function(e){xa(n,e);var t=wa(n);function n(){var r;Pn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),B(St(r),"destroyed",!1),B(St(r),"delayedDragEnterLogic",void 0),B(St(r),"loadingRetryTimes",{}),B(St(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Qs()}),B(St(r),"dragStartMousePosition",null),B(St(r),"dragNodeProps",null),B(St(r),"currentMouseOverDroppableNodeKey",null),B(St(r),"listRef",l.createRef()),B(St(r),"onNodeDragStart",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,v=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=da(d,v);r.setState({draggingNodeKey:v,dragChildrenKeys:WJ(v,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:Jn(c)})}),B(St(r),"onNodeDragEnter",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,v=u.flattenNodes,h=u.indent,y=r.props,p=y.onDragEnter,g=y.onExpand,C=y.allowDrop,b=y.direction,S=c.pos,w=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==w&&(r.currentMouseOverDroppableNodeKey=w),!r.dragNodeProps){r.resetDragState();return}var $=L$(s,r.dragNodeProps,c,h,r.dragStartMousePosition,C,v,f,d,b),x=$.dropPosition,E=$.dropLevelOffset,O=$.dropTargetKey,I=$.dropContainerKey,P=$.dropTargetPos,_=$.dropAllowed,D=$.dragOverNodeKey;if(m.includes(O)||!_){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(R){clearTimeout(r.delayedDragEnterLogic[R])}),r.dragNodeProps.eventKey!==c.eventKey&&(s.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var R=ze(d),N=Jr(f,c.eventKey);N&&(N.children||[]).length&&(R=Ia(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(R),g==null||g(R,{node:Jn(c),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===O&&E===0){r.resetDragState();return}r.setState({dragOverNodeKey:D,dropPosition:x,dropLevelOffset:E,dropTargetKey:O,dropContainerKey:I,dropTargetPos:P,dropAllowed:_}),p==null||p({event:s,node:Jn(c),expandedKeys:d})}),B(St(r),"onNodeDragOver",function(s,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,v=u.expandedKeys,h=u.indent,y=r.props,p=y.onDragOver,g=y.allowDrop,C=y.direction;if(r.dragNodeProps){var b=L$(s,r.dragNodeProps,c,h,r.dragStartMousePosition,g,f,m,v,C),S=b.dropPosition,w=b.dropLevelOffset,$=b.dropTargetKey,x=b.dropContainerKey,E=b.dropTargetPos,O=b.dropAllowed,I=b.dragOverNodeKey;d.includes($)||!O||(r.dragNodeProps.eventKey===$&&w===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():S===r.state.dropPosition&&w===r.state.dropLevelOffset&&$===r.state.dropTargetKey&&x===r.state.dropContainerKey&&E===r.state.dropTargetPos&&O===r.state.dropAllowed&&I===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:w,dropTargetKey:$,dropContainerKey:x,dropTargetPos:E,dropAllowed:O,dragOverNodeKey:I}),p==null||p({event:s,node:Jn(c)}))}}),B(St(r),"onNodeDragLeave",function(s,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:Jn(c)})}),B(St(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),B(St(r),"onNodeDragEnd",function(s,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:Jn(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),B(St(r),"onNodeDrop",function(s,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,h=f.dropTargetKey,y=f.dropTargetPos,p=f.dropAllowed;if(p){var g=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var C=q(q({},Eu(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Jr(r.state.keyEntities,h).node}),b=m.includes(h);Sn(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=VC(y),w={event:s,node:Jn(C),dragNode:r.dragNodeProps?Jn(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(S[S.length-1])};d||g==null||g(w),r.dragNodeProps=null}}}),B(St(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),B(St(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,h=c.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var y=f.filter(function(g){return g.key===v})[0],p=Jn(q(q({},Eu(v,r.getTreeNodeRequiredProps())),{},{data:y.data}));r.setExpandedKeys(m?da(d,v):Ia(d,v)),r.onNodeExpand(s,p)}}),B(St(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),B(St(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),B(St(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,h=v.onSelect,y=v.multiple,p=c.selected,g=c[m.key],C=!p;C?y?u=Ia(u,g):u=[g]:u=da(u,g);var b=u.map(function(S){var w=Jr(f,S);return w?w.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:C,node:c,selectedNodes:b,nativeEvent:s.nativeEvent})}),B(St(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,h=r.props,y=h.checkStrictly,p=h.onCheck,g=c.key,C,b={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(y){var S=u?Ia(m,g):da(m,g),w=da(v,g);C={checked:S,halfChecked:w},b.checkedNodes=S.map(function(P){return Jr(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:S})}else{var $=_s([].concat(ze(m),[g]),!0,f),x=$.checkedKeys,E=$.halfCheckedKeys;if(!u){var O=new Set(x);O.delete(g);var I=_s(Array.from(O),{halfCheckedKeys:E},f);x=I.checkedKeys,E=I.halfCheckedKeys}C=x,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=E,x.forEach(function(P){var _=Jr(f,P);if(_){var D=_.node,R=_.pos;b.checkedNodes.push(D),b.checkedNodesPositions.push({node:D,pos:R})}}),r.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:E})}p==null||p(C,b)}),B(St(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Jr(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,h){r.setState(function(y){var p=y.loadedKeys,g=p===void 0?[]:p,C=y.loadingKeys,b=C===void 0?[]:C,S=r.props,w=S.loadData,$=S.onLoad;if(!w||g.includes(u)||b.includes(u))return null;var x=w(s);return x.then(function(){var E=r.state.loadedKeys,O=Ia(E,u);$==null||$(O,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(I){return{loadingKeys:da(I.loadingKeys,u)}}),v()}).catch(function(E){if(r.setState(function(I){return{loadingKeys:da(I.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=cZ){var O=r.state.loadedKeys;Sn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ia(O,u)}),v()}h(E)}),{loadingKeys:Ia(b,u)}})});return m.catch(function(){}),m}}),B(St(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),B(St(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),B(St(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),B(St(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),B(St(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),B(St(r),"getTreeNodeRequiredProps",function(){var s=r.state,c=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,v=s.halfCheckedKeys,h=s.dragOverNodeKey,y=s.dropPosition,p=s.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:v||[],dragOverNodeKey:h,dropPosition:y,keyEntities:p}}),B(St(r),"setExpandedKeys",function(s){var c=r.state,u=c.treeData,d=c.fieldNames,f=bp(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),B(St(r),"onNodeExpand",function(s,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,v=r.props,h=v.onExpand,y=v.loadData,p=c.expanded,g=c[m.key];if(!f){var C=u.includes(g),b=!p;if(Sn(p&&C||!p&&!C,"Expand state not sync with index check"),u=b?Ia(u,g):da(u,g),r.setExpandedKeys(u),h==null||h(u,{node:c,expanded:b,nativeEvent:s.nativeEvent}),b&&y){var S=r.onNodeLoad(c);S&&S.then(function(){var w=bp(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:w})}).catch(function(){var w=r.state.expandedKeys,$=da(w,g);r.setExpandedKeys($)})}}}),B(St(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),B(St(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),B(St(r),"onActiveChange",function(s){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))}),B(St(r),"getActiveItem",function(){var s=r.state,c=s.activeKey,u=s.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),B(St(r),"offsetActiveKey",function(s){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(h){var y=h.key;return y===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var v=m.key;r.onActiveChange(v)}else r.onActiveChange(null)}),B(St(r),"onKeyDown",function(s){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,v=r.props,h=v.onKeyDown,y=v.checkable,p=v.selectable;switch(s.which){case ct.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case ct.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var g=r.getActiveItem();if(g&&g.data){var C=r.getTreeNodeRequiredProps(),b=g.data.isLeaf===!1||!!(g.data[m.children]||[]).length,S=Jn(q(q({},Eu(u,C)),{},{data:g.data,active:!0}));switch(s.which){case ct.LEFT:{b&&d.includes(u)?r.onNodeExpand({},S):g.parent&&r.onActiveChange(g.parent.key),s.preventDefault();break}case ct.RIGHT:{b&&!d.includes(u)?r.onNodeExpand({},S):g.children&&g.children.length&&r.onActiveChange(g.children[0].key),s.preventDefault();break}case ct.ENTER:case ct.SPACE:{y&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!f.includes(u)):!y&&p&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}h==null||h(s)}),B(St(r),"setUncontrolledState",function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(v){if(r.props.hasOwnProperty(v)){f=!1;return}d=!0,m[v]=s[v]}),d&&(!c||f)&&r.setState(q(q({},m),u))}}),B(St(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Mn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,s=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,v=o.dropPosition,h=o.dragOverNodeKey,y=o.indent,p=this.props,g=p.prefixCls,C=p.className,b=p.style,S=p.showLine,w=p.focusable,$=p.tabIndex,x=$===void 0?0:$,E=p.selectable,O=p.showIcon,I=p.icon,P=p.switcherIcon,_=p.draggable,D=p.checkable,R=p.checkStrictly,N=p.disabled,M=p.motion,k=p.loadData,T=p.filterTreeNode,z=p.height,j=p.itemHeight,L=p.scrollWidth,F=p.virtual,A=p.titleRender,H=p.dropIndicatorRender,U=p.onContextMenu,X=p.onScroll,ee=p.direction,J=p.rootClassName,oe=p.rootStyle,ue=vr(this.props,{aria:!0,data:!0}),se;_&&(ht(_)==="object"?se=_:typeof _=="function"?se={nodeDraggable:_}:se={});var Q={prefixCls:g,selectable:E,showIcon:O,icon:I,switcherIcon:P,draggable:se,draggingNodeKey:c,checkable:D,checkStrictly:R,disabled:N,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:v,dragOverNodeKey:h,indent:y,direction:ee,dropIndicatorRender:H,loadData:k,filterTreeNode:T,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return l.createElement(HC.Provider,{value:Q},l.createElement("div",{className:Z(g,C,J,B(B(B({},"".concat(g,"-show-line"),S),"".concat(g,"-focused"),a),"".concat(g,"-active-focused"),u!==null)),style:oe},l.createElement(sZ,be({ref:this.listRef,prefixCls:g,style:b,data:i,disabled:N,selectable:E,checkable:!!D,motion:M,dragging:c!==null,height:z,itemHeight:j,virtual:F,focusable:w,focused:a,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:X,scrollWidth:L},this.getTreeNodeRequiredProps(),ue))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s={prevProps:o};function c(x){return!i&&o.hasOwnProperty(x)||i&&i[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=Qs(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Sn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=i6(o.children)),u){s.treeData=u;var f=PC(u,{fieldNames:d});s.keyEntities=q(B({},Sl,dN),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?lb(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var v=q({},m);delete v[Sl];var h=[];Object.keys(v).forEach(function(x){var E=v[x];E.children&&E.children.length&&h.push(E.key)}),s.expandedKeys=h}else!i&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?lb(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var y=bp(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=y}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=F$(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(s.selectedKeys=F$(o.defaultSelectedKeys,o))),o.checkable){var p;if(c("checkedKeys")?p=Rp(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?p=Rp(o.defaultCheckedKeys)||{}:u&&(p=Rp(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),p){var g=p,C=g.checkedKeys,b=C===void 0?[]:C,S=g.halfCheckedKeys,w=S===void 0?[]:S;if(!o.checkStrictly){var $=_s(b,!0,m);b=$.checkedKeys,w=$.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=w}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(l.Component);B(WC,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:eZ,allowDrop:function(){return!0},expandAction:!1});B(WC,"TreeNode",cd);var uZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},dZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:uZ}))},fN=l.forwardRef(dZ),fZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},mZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:fZ}))},vZ=l.forwardRef(mZ),hZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},gZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:hZ}))},mN=l.forwardRef(gZ),pZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},yZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:pZ}))},vN=l.forwardRef(yZ);const bZ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),CZ=new nn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),SZ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),xZ=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Y(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),wZ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,indentSize:i,nodeSelectedBg:s,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},tn(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:na(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:CZ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:Y(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},SZ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},xZ(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Y(t.calc(a).div(2).equal())} !important`}})}},$Z=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=At(t,{treeCls:r,treeNodeCls:o,treeNodePadding:a});return[wZ(e,i),n&&bZ(i)].filter(Boolean)},EZ=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},OZ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},EZ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},IZ=Gt("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:s6(`${t}-checkbox`,e)},$Z(t,e),U1(e)],OZ),U$=4;function RZ(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",c={[i]:-n*o+U$,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+U$;break}return le.createElement("div",{style:c,className:`${r}-drop-indicator`})}var PZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},MZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:PZ}))},NZ=l.forwardRef(MZ),_Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},TZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:_Z}))},DZ=l.forwardRef(TZ),kZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},jZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:kZ}))},zZ=l.forwardRef(jZ);const LZ=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:u,loading:d}=a;if(d)return l.isValidElement(s)?s:l.createElement(Il,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),c){if(!i)return null;if(typeof f!="boolean"&&f){const h=typeof f=="function"?f(a):f,y=`${r}-switcher-line-custom-icon`;return l.isValidElement(h)?Wr(h,{className:Z((t=h.props)===null||t===void 0?void 0:t.className,y)}):h}return f?l.createElement(fN,{className:`${r}-switcher-line-icon`}):l.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,v=typeof o=="function"?o(a):o;return l.isValidElement(v)?Wr(v,{className:Z((n=v.props)===null||n===void 0?void 0:n.className,m)}):v!==void 0?v:i?u?l.createElement(DZ,{className:`${r}-switcher-line-icon`}):l.createElement(zZ,{className:`${r}-switcher-line-icon`}):l.createElement(NZ,{className:m})},hN=le.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=le.useContext(Et),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:v=!1,children:h,checkable:y=!1,selectable:p=!0,draggable:g,disabled:C,motion:b,style:S}=e,w=r("tree",s),$=r(),x=le.useContext(zr),E=C??x,O=b??Object.assign(Object.assign({},ev($)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:y,selectable:p,showIcon:u,motion:O,blockNode:v,disabled:E,showLine:!!d,dropIndicatorRender:RZ}),[P,_,D]=IZ(w),[,R]=Ir(),N=R.paddingXS/2+(((n=R.Tree)===null||n===void 0?void 0:n.titleHeight)||R.controlHeightSM),M=le.useMemo(()=>{if(!g)return!1;let T={};switch(typeof g){case"function":T.nodeDraggable=g;break;case"object":T=Object.assign({},g);break}return T.icon!==!1&&(T.icon=T.icon||le.createElement(vN,null)),T},[g]),k=T=>le.createElement(LZ,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:T,showLine:d});return P(le.createElement(WC,Object.assign({itemHeight:N,ref:t,virtual:a},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),S),prefixCls:w,className:Z({[`${w}-icon-hide`]:!u,[`${w}-block-node`]:v,[`${w}-unselectable`]:!p,[`${w}-rtl`]:o==="rtl",[`${w}-disabled`]:E},i==null?void 0:i.className,c,_,D),direction:o,checkable:y&&le.createElement("span",{className:`${w}-checkbox-inner`}),selectable:p,switcherIcon:k,draggable:M}),h))}),q$=0,Pp=1,G$=2;function KC(e,t,n){const{key:r,children:o}=n;function a(i){const s=i[r],c=i[o];t(s,i)!==!1&&KC(c||[],t,n)}e.forEach(a)}function FZ({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const a=[];let i=q$;if(n&&n===r)return[n];if(!n||!r)return[];function s(c){return c===n||c===r}return KC(e,c=>{if(i===G$)return!1;if(s(c)){if(a.push(c),i===q$)i=Pp;else if(i===Pp)return i=G$,!1}else i===Pp&&a.push(c);return t.includes(c)},Qs(o)),a}function Mp(e,t,n){const r=ze(t),o=[];return KC(e,(a,i)=>{const s=r.indexOf(a);return s!==-1&&(o.push(i),r.splice(s,1)),!!r.length},Qs(n)),o}var Y$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function AZ(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(fN,null):n?l.createElement(vZ,null):l.createElement(mN,null)}function X$({treeData:e,children:t}){return e||i6(t)}const BZ=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=Y$(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(null),s=l.useRef(null),c=()=>{const{keyEntities:E}=PC(X$(a),{fieldNames:a.fieldNames});let O;return n?O=Object.keys(E):r?O=lb(a.expandedKeys||o||[],E):O=a.expandedKeys||o||[],O},[u,d]=l.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),l.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const v=(E,O)=>{var I;return"expandedKeys"in a||m(E),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,E,O)},h=(E,O)=>{var I;const{multiple:P,fieldNames:_}=a,{node:D,nativeEvent:R}=O,{key:N=""}=D,M=X$(a),k=Object.assign(Object.assign({},O),{selected:!0}),T=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),z=R==null?void 0:R.shiftKey;let j;P&&T?(j=E,i.current=N,s.current=j,k.selectedNodes=Mp(M,j,_)):P&&z?(j=Array.from(new Set([].concat(ze(s.current||[]),ze(FZ({treeData:M,expandedKeys:f,startKey:N,endKey:i.current,fieldNames:_}))))),k.selectedNodes=Mp(M,j,_)):(j=[N],i.current=N,s.current=j,k.selectedNodes=Mp(M,j,_)),(I=a.onSelect)===null||I===void 0||I.call(a,j,k),"selectedKeys"in a||d(j)},{getPrefixCls:y,direction:p}=l.useContext(Et),{prefixCls:g,className:C,showIcon:b=!0,expandAction:S="click"}=a,w=Y$(a,["prefixCls","className","showIcon","expandAction"]),$=y("tree",g),x=Z(`${$}-directory`,{[`${$}-directory-rtl`]:p==="rtl"},C);return l.createElement(hN,Object.assign({icon:AZ,ref:t,blockNode:!0},w,{showIcon:b,expandAction:S,prefixCls:$,className:x,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:v}))},HZ=l.forwardRef(BZ),UC=hN;UC.DirectoryTree=HZ;UC.TreeNode=cd;const Q$=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(jd,{prefix:l.createElement(Sh,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},VZ=e=>{const{keyCode:t}=e;t===ct.ENTER&&e.stopPropagation()},WZ=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:VZ,ref:t},e.children));function Ds(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(ze(t),ze(Ds(r))))}),t}function KZ(e){return e.some(({children:t})=>t)}function gN(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function pN({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a}){return e.map((i,s)=>{const c=String(i.value);if(i.children)return{key:c||s,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:pN({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a})};const u=r?Cl:Td,d={key:i.value!==void 0?c:s,label:l.createElement(l.Fragment,null,l.createElement(u,{checked:n.includes(c)}),l.createElement("span",null,i.text))};return o.trim()?typeof a=="function"?a(o,i)?d:null:gN(o,i.text)?d:null:d})}function Np(e){return e||[]}const UZ=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:i,column:s,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:v=!1,filterState:h,triggerFilter:y,locale:p,children:g,getPopupContainer:C,rootClassName:b}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownProps:$={},filterDropdownOpen:x,filterDropdownVisible:E,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:I}=s,[P,_]=l.useState(!1),D=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),R=ve=>{var $e;_(ve),($e=$.onOpenChange)===null||$e===void 0||$e.call($,ve),I==null||I(ve),O==null||O(ve)},N=(o=(r=(n=$.open)!==null&&n!==void 0?n:x)!==null&&r!==void 0?r:E)!==null&&o!==void 0?o:P,M=h==null?void 0:h.filteredKeys,[k,T]=w7(Np(M)),z=({selectedKeys:ve})=>{T(ve)},j=(ve,{node:$e,checked:Ee})=>{z(f?{selectedKeys:ve}:{selectedKeys:Ee&&$e.key?[$e.key]:[]})};l.useEffect(()=>{P&&z({selectedKeys:Np(M)})},[M]);const[L,F]=l.useState([]),A=ve=>{F(ve)},[H,U]=l.useState(""),X=ve=>{const{value:$e}=ve.target;U($e)};l.useEffect(()=>{P||U("")},[P]);const ee=ve=>{const $e=ve!=null&&ve.length?ve:null;if($e===null&&(!h||!h.filteredKeys)||ya($e,h==null?void 0:h.filteredKeys,!0))return null;y({column:s,key:u,filteredKeys:$e})},J=()=>{R(!1),ee(k())},oe=({confirm:ve,closeDropdown:$e}={confirm:!1,closeDropdown:!1})=>{ve&&ee([]),$e&&R(!1),U(""),T(S?(w||[]).map(Ee=>String(Ee)):[])},ue=({closeDropdown:ve}={closeDropdown:!0})=>{ve&&R(!1),ee(k())},se=(ve,$e)=>{$e.source==="trigger"&&(ve&&M!==void 0&&T(Np(M)),R(ve),!ve&&!s.filterDropdown&&d&&J())},Q=Z({[`${c}-menu-without-submenu`]:!KZ(s.filters||[])}),fe=ve=>{if(ve.target.checked){const $e=Ds(s==null?void 0:s.filters).map(Ee=>String(Ee));T($e)}else T([])},de=({filters:ve})=>(ve||[]).map(($e,Ee)=>{const we=String($e.value),Ae={title:$e.text,key:$e.value!==void 0?we:String(Ee)};return $e.children&&(Ae.children=de({filters:$e.children})),Ae}),ie=ve=>{var $e;return Object.assign(Object.assign({},ve),{text:ve.title,value:ve.key,children:(($e=ve.children)===null||$e===void 0?void 0:$e.map(Ee=>ie(Ee)))||[]})};let re;const{direction:he,renderEmpty:ge}=l.useContext(Et);if(typeof s.filterDropdown=="function")re=s.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ve=>z({selectedKeys:ve}),selectedKeys:k(),confirm:ue,clearFilters:oe,filters:s.filters,visible:N,close:()=>{R(!1)}});else if(s.filterDropdown)re=s.filterDropdown;else{const ve=k()||[],$e=()=>{var we,Ae;const Le=(we=ge==null?void 0:ge("Table.filter"))!==null&&we!==void 0?we:l.createElement(Io,{image:Io.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Le;if(m==="tree")return l.createElement(l.Fragment,null,l.createElement(Q$,{filterSearch:v,value:H,onChange:X,tablePrefixCls:a,locale:p}),l.createElement("div",{className:`${a}-filter-dropdown-tree`},f?l.createElement(Cl,{checked:ve.length===Ds(s.filters).length,indeterminate:ve.length>0&&ve.length<Ds(s.filters).length,className:`${a}-filter-dropdown-checkall`,onChange:fe},(Ae=p==null?void 0:p.filterCheckall)!==null&&Ae!==void 0?Ae:p==null?void 0:p.filterCheckAll):null,l.createElement(UC,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:j,checkedKeys:ve,selectedKeys:ve,showIcon:!1,treeData:de({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:H.trim()?He=>typeof v=="function"?v(H,ie(He)):gN(H,He.title):void 0})));const Ye=pN({filters:s.filters||[],filterSearch:v,prefixCls:i,filteredKeys:k(),filterMultiple:f,searchValue:H}),Ke=Ye.every(He=>He===null);return l.createElement(l.Fragment,null,l.createElement(Q$,{filterSearch:v,value:H,onChange:X,tablePrefixCls:a,locale:p}),Ke?Le:l.createElement(Dl,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:Q,onSelect:z,onDeselect:z,selectedKeys:ve,getPopupContainer:C,openKeys:L,onOpenChange:A,items:Ye}))},Ee=()=>S?ya((w||[]).map(we=>String(we)),ve,!0):ve.length===0;re=l.createElement(l.Fragment,null,$e(),l.createElement("div",{className:`${i}-dropdown-btns`},l.createElement(Fn,{type:"link",size:"small",disabled:Ee(),onClick:()=>oe()},p.filterReset),l.createElement(Fn,{type:"primary",size:"small",onClick:J},p.filterConfirm)))}s.filterDropdown&&(re=l.createElement(QP,{selectable:void 0},re)),re=l.createElement(WZ,{className:`${i}-dropdown`},re);const Pe=Xm({trigger:["click"],placement:he==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ve;return typeof s.filterIcon=="function"?ve=s.filterIcon(D):s.filterIcon?ve=s.filterIcon:ve=l.createElement(ZJ,null),l.createElement("span",{role:"button",tabIndex:-1,className:Z(`${i}-trigger`,{active:D}),onClick:$e=>{$e.stopPropagation()}},ve)})(),getPopupContainer:C},Object.assign(Object.assign({},$),{rootClassName:Z(b,$.rootClassName),open:N,onOpenChange:se,popupRender:()=>typeof($==null?void 0:$.dropdownRender)=="function"?$.dropdownRender(re):re}));return l.createElement("div",{className:`${i}-column`},l.createElement("span",{className:`${a}-column-title`},g),l.createElement(yc,Object.assign({},Pe)))},fb=(e,t,n)=>{let r=[];return(e||[]).forEach((o,a)=>{var i;const s=xc(a,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(i=u==null?void 0:u.map(String))!==null&&i!==void 0?i:u),r.push({column:o,key:Pi(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:Pi(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ze(r),ze(fb(o.children,t,s))))}),r};function yN(e,t,n,r,o,a,i,s,c){return n.map((u,d)=>{const f=xc(d,s),{filterOnClose:m=!0,filterMultiple:v=!0,filterMode:h,filterSearch:y}=u;let p=u;if(p.filters||p.filterDropdown){const g=Pi(p,f),C=r.find(({key:b})=>g===b);p=Object.assign(Object.assign({},p),{title:b=>l.createElement(UZ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:p,columnKey:g,filterState:C,filterOnClose:m,filterMultiple:v,filterMode:h,filterSearch:y,triggerFilter:a,locale:o,getPopupContainer:i,rootClassName:c},Vh(u.title,b))})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:yN(e,t,p.children,r,o,a,i,f,c)})),p})}const J$=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const a=n,{filters:i,filterDropdown:s}=o;if(s)t[a]=r||null;else if(Array.isArray(r)){const c=Ds(i);t[a]=c.filter(u=>r.includes(String(u)))}else t[a]=null}),t},mb=(e,t,n)=>t.reduce((o,a)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=a;return i&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Ds(s),m=f.findIndex(h=>String(h)===String(d)),v=m!==-1?f[m]:d;return u[n]&&(u[n]=mb(u[n],t,n)),i(v,u)})):o},e),bN=e=>e.flatMap(t=>"children"in t?[t].concat(ze(bN(t.children||[]))):[t]),qZ=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:s}=e;Di();const c=l.useMemo(()=>bN(r||[]),[r]),[u,d]=l.useState(()=>fb(c,!0)),f=l.useMemo(()=>{const y=fb(c,!1);if(y.length===0)return y;let p=!0;if(y.forEach(({filteredKeys:g})=>{g!==void 0&&(p=!1)}),p){const g=(c||[]).map((C,b)=>Pi(C,xc(b)));return u.filter(({key:C})=>g.includes(C)).map(C=>{const b=c[g.indexOf(C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),b),forceFiltered:b.filtered})})}return y},[c,u]),m=l.useMemo(()=>J$(f),[f]),v=y=>{const p=f.filter(({key:g})=>g!==y.key);p.push(y),d(p),o(J$(p),p)};return[y=>yN(t,n,y,f,i,v,a,void 0,s),f,m]},GZ=(e,t,n)=>{const r=l.useRef({});function o(a){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const v=n(f,m);c.set(v,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(a)}return[o]};var YZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CN=10;function XZ(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function QZ(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=YZ(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:CN})),c=Xm(i,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,v)=>{s({current:m??1,pageSize:v||c.pageSize})},f=(m,v)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,m,v)),d(m,v),t(m,v||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var JZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ZZ=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:JZ}))},eee=l.forwardRef(ZZ),tee={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},nee=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:tee}))},ree=l.forwardRef(nee);const fm="ascend",_p="descend",dv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Z$=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,oee=(e,t)=>t?e[e.indexOf(t)+1]:e[0],vb=(e,t,n)=>{let r=[];const o=(a,i)=>{r.push({column:a,key:Pi(a,i),multiplePriority:dv(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,i)=>{const s=xc(i,n);a.children?("sortOrder"in a&&o(a,s),r=[].concat(ze(r),ze(vb(a.children,t,s)))):a.sorter&&("sortOrder"in a?o(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Pi(a,s),multiplePriority:dv(a),sortOrder:a.defaultSortOrder}))}),r},SN=(e,t,n,r,o,a,i,s)=>(t||[]).map((u,d)=>{const f=xc(d,s);let m=u;if(m.sorter){const v=m.sortDirections||o,h=m.showSorterTooltip===void 0?i:m.showSorterTooltip,y=Pi(m,f),p=n.find(({key:O})=>O===y),g=p?p.sortOrder:null,C=oee(v,g);let b;if(u.sortIcon)b=u.sortIcon({sortOrder:g});else{const O=v.includes(fm)&&l.createElement(ree,{className:Z(`${e}-column-sorter-up`,{active:g===fm})}),I=v.includes(_p)&&l.createElement(eee,{className:Z(`${e}-column-sorter-down`,{active:g===_p})});b=l.createElement("span",{className:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&I)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,I))}const{cancelSort:S,triggerAsc:w,triggerDesc:$}=a||{};let x=S;C===_p?x=$:C===fm&&(x=w);const E=typeof h=="object"?Object.assign({title:x},h):{title:x};m=Object.assign(Object.assign({},m),{className:Z(m.className,{[`${e}-column-sort`]:g}),title:O=>{const I=`${e}-column-sorters`,P=l.createElement("span",{className:`${e}-column-title`},Vh(u.title,O)),_=l.createElement("div",{className:I},P,b);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?l.createElement("div",{className:Z(I,`${I}-tooltip-target-sorter`)},P,l.createElement(xr,Object.assign({},E),b)):l.createElement(xr,Object.assign({},E),_):_},onHeaderCell:O=>{var I;const P=((I=u.onHeaderCell)===null||I===void 0?void 0:I.call(u,O))||{},_=P.onClick,D=P.onKeyDown;P.onClick=M=>{r({column:u,key:y,sortOrder:C,multiplePriority:dv(u)}),_==null||_(M)},P.onKeyDown=M=>{M.keyCode===ct.ENTER&&(r({column:u,key:y,sortOrder:C,multiplePriority:dv(u)}),D==null||D(M))};const R=XJ(u.title,{}),N=R==null?void 0:R.toString();return g&&(P["aria-sort"]=g==="ascend"?"ascending":"descending"),P["aria-label"]=N||"",P.className=Z(P.className,`${e}-column-has-sorters`),P.tabIndex=0,u.ellipsis&&(P.title=(R??"").toString()),P}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:SN(e,m.children,n,r,o,a,i,f)})),m}),eE=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},tE=e=>{const t=e.filter(({sortOrder:n})=>n).map(eE);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},eE(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},hb=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(({column:{sorter:i},sortOrder:s})=>Z$(i)&&s);return a.length?o.sort((i,s)=>{for(let c=0;c<a.length;c+=1){const u=a[c],{column:{sorter:d},sortOrder:f}=u,m=Z$(d);if(m&&f){const v=m(i,s,f);if(v!==0)return f===fm?v:-v}}return 0}).map(i=>{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:hb(s,t,n)}):i}):o},aee=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:i}=e,[s,c]=l.useState(()=>vb(n,!0)),u=(y,p)=>{const g=[];return y.forEach((C,b)=>{const S=xc(b,p);if(g.push(Pi(C,S)),Array.isArray(C.children)){const w=u(C.children,S);g.push.apply(g,ze(w))}}),g},d=l.useMemo(()=>{let y=!0;const p=vb(n,!1);if(!p.length){const S=u(n);return s.filter(({key:w})=>S.includes(w))}const g=[];function C(S){y?g.push(S):g.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let b=null;return p.forEach(S=>{b===null?(C(S),S.sortOrder&&(S.multiplePriority===!1?y=!1:b=!0)):(b&&S.multiplePriority!==!1||(y=!1),C(S))}),g},[n,s]),f=l.useMemo(()=>{var y,p;const g=d.map(({column:C,sortOrder:b})=>({column:C,order:b}));return{sortColumns:g,sortColumn:(y=g[0])===null||y===void 0?void 0:y.column,sortOrder:(p=g[0])===null||p===void 0?void 0:p.order}},[d]),m=y=>{let p;y.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?p=[y]:p=[].concat(ze(d.filter(({key:g})=>g!==y.key)),[y]),c(p),i(tE(p),p)};return[y=>SN(t,y,d,m,r,o,a),d,f,()=>tE(d)]},xN=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=Vh(r.title,t),"children"in o&&(o.children=xN(o.children,t)),o}),iee=e=>[l.useCallback(n=>xN(n,e),[e])],lee=iN((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),see=sN((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),cee=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${Y(n)} ${r} ${o}`,d=(f,m,v)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Y(c(m).mul(-1).equal())}
366
+ ${Y(c(c(v).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
367
+ > ${t}-content,
368
+ > ${t}-header,
369
+ > ${t}-body,
370
+ > ${t}-summary
371
+ `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Y(c(i).mul(-1).equal())} ${Y(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
372
+ > tr${t}-expanded-row,
373
+ > tr${t}-placeholder
374
+ `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Y(n)} 0 ${Y(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},uee=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ta),{wordBreak:"keep-all",[`
375
+ &${t}-cell-fix-left-last,
376
+ &${t}-cell-fix-right-first
377
+ `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dee=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},fee=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:h,expandIconMarginTop:y,expandIconSize:p,expandIconHalfInner:g,expandIconScale:C,calc:b}=e,S=`${Y(o)} ${i} ${s}`,w=b(h).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},A1(e)),{position:"relative",float:"left",width:p,height:p,color:"inherit",lineHeight:Y(p),background:c,border:S,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:g,insetInlineEnd:w,insetInlineStart:w,height:o},"&::after":{top:w,bottom:w,insetInlineStart:g,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:y,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Y(b(f).mul(-1).equal())} ${Y(b(m).mul(-1).equal())}`,padding:`${Y(f)} ${Y(m)}`}}}},mee=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:v,tablePaddingHorizontal:h,borderRadius:y,motionDurationSlow:p,colorIcon:g,colorPrimary:C,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:$,controlItemBgHover:x,controlItemBgActive:E,boxShadowSecondary:O,filterDropdownMenuBg:I,calc:P}=e,_=`${n}-dropdown`,D=`${t}-filter-dropdown`,R=`${n}-tree`,N=`${Y(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(i).mul(-1).equal(),marginInline:`${Y(i)} ${Y(P(h).div(2).mul(-1).equal())}`,padding:`0 ${Y(i)}`,color:m,fontSize:v,borderRadius:y,cursor:"pointer",transition:`all ${p}`,"&:hover":{color:g,background:b},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[D]:Object.assign(Object.assign({},tn(e)),{minWidth:o,backgroundColor:w,borderRadius:y,boxShadow:O,overflow:"hidden",[`${_}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${Y(s)} 0`,color:S,fontSize:v,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${Y(s)} 0`,paddingInline:s,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:x},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${D}-search`]:{padding:s,borderBottom:N,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${D}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Y(P(s).sub(u).equal())} ${Y(s)}`,overflow:"hidden",borderTop:N}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},vee=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
378
+ ${t}-cell-fix-left,
379
+ ${t}-cell-fix-right
380
+ `]:{position:"sticky !important",zIndex:a,background:i},[`
381
+ ${t}-cell-fix-left-first::after,
382
+ ${t}-cell-fix-left-last::after
383
+ `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
384
+ ${t}-cell-fix-right-first::after,
385
+ ${t}-cell-fix-right-last::after
386
+ `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
387
+ ${t}-cell-fix-left-first::after,
388
+ ${t}-cell-fix-left-last::after
389
+ `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
390
+ ${t}-cell-fix-right-first::after,
391
+ ${t}-cell-fix-right-last::after
392
+ `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
393
+ ${t}-cell-fix-left-first::after,
394
+ ${t}-cell-fix-left-last::after,
395
+ ${t}-cell-fix-right-first::after,
396
+ ${t}-cell-fix-right-last::after
397
+ `]:{boxShadow:"none"}}}}},hee=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${Y(r)} 0`}}},gee=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Y(n)} ${Y(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Y(n)} ${Y(n)}`}}}}},pee=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},yee=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:v,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(o).add(h(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(o).add(h(a).div(4)).add(h(i).mul(2)).equal()}},[`
398
+ table tr th${t}-selection-column,
399
+ table tr td${t}-selection-column,
400
+ ${t}-selection-column
401
+ `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Y(h(v).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},bee=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,i,s,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[`
402
+ ${t}-title,
403
+ ${t}-footer,
404
+ ${t}-cell,
405
+ ${t}-thead > tr > th,
406
+ ${t}-tbody > tr > th,
407
+ ${t}-tbody > tr > td,
408
+ tfoot > tr > th,
409
+ tfoot > tr > td
410
+ `]:{padding:`${Y(i)} ${Y(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Y(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Y(r(i).mul(-1).equal())} ${Y(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Y(r(i).mul(-1).equal()),marginInline:`${Y(r(n).sub(s).equal())} ${Y(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Y(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Cee=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
411
+ &${t}-cell-fix-left:hover,
412
+ &${t}-cell-fix-right:hover
413
+ `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},See=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${Y(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Y(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},nE=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${Y(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${Y(o(n).mul(-1).equal())} 0 ${r}`}}}},xee=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,s=`${Y(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
414
+ & > ${t}-row,
415
+ & > div:not(${t}-row) > ${t}-row
416
+ `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Y(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},wee=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:v,tableHeaderBg:h,tableHeaderCellSplitColor:y,tableFooterTextColor:p,tableFooterBg:g,calc:C}=e,b=`${Y(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Ei()),{[t]:Object.assign(Object.assign({},tn(e)),{fontSize:u,background:d,borderRadius:`${Y(f)} ${Y(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Y(f)} ${Y(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
417
+ ${t}-cell,
418
+ ${t}-thead > tr > th,
419
+ ${t}-tbody > tr > th,
420
+ ${t}-tbody > tr > td,
421
+ tfoot > tr > th,
422
+ tfoot > tr > td
423
+ `]:{position:"relative",padding:`${Y(r)} ${Y(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Y(r)} ${Y(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${v} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:y,transform:"translateY(-50%)",transition:`background-color ${v}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${v}, border-color ${v}`,borderBottom:b,[`
424
+ > ${t}-wrapper:only-child,
425
+ > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
426
+ `]:{[t]:{marginBlock:Y(C(r).mul(-1).equal()),marginInline:`${Y(C(a).sub(o).equal())}
427
+ ${Y(C(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${v} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${Y(r)} ${Y(o)}`,color:p,background:g}})}},$ee=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:v,colorTextPlaceholder:h,fontSize:y,fontSizeSM:p,lineHeight:g,lineWidth:C,colorIcon:b,colorIconHover:S,opacityLoading:w,controlInteractiveSize:$}=e,x=new Kt(o).onBackground(n).toHexString(),E=new Kt(a).onBackground(n).toHexString(),O=new Kt(t).onBackground(n).toHexString(),I=new Kt(b),P=new Kt(S),_=$/2-C,D=_*2+C*3;return{headerBg:O,headerColor:r,headerSortActiveBg:x,headerSortHoverBg:E,bodySortBg:O,rowHoverBg:O,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:O,footerColor:r,cellFontSize:y,cellFontSizeMD:y,cellFontSizeSM:y,headerSplitColor:f,fixedHeaderSortActiveBg:x,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:v,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(y*g-C*3)/2-Math.ceil((p*1.4-C*3)/2),headerIconColor:I.clone().setA(I.a*w).toRgbString(),headerIconHoverColor:P.clone().setA(P.a*w).toRgbString(),expandIconHalfInner:_,expandIconSize:D,expandIconScale:$/D}},rE=2,Eee=Gt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:v,cellPaddingBlock:h,cellPaddingInline:y,cellPaddingBlockMD:p,cellPaddingInlineMD:g,cellPaddingBlockSM:C,cellPaddingInlineSM:b,borderColor:S,footerBg:w,footerColor:$,headerBorderRadius:x,cellFontSize:E,cellFontSizeMD:O,cellFontSizeSM:I,headerSplitColor:P,fixedHeaderSortActiveBg:_,headerFilterHoverBg:D,filterDropdownBg:R,expandIconBg:N,selectionColumnWidth:M,stickyScrollBarBg:k,calc:T}=e,z=At(e,{tableFontSize:E,tableBg:r,tableRadius:x,tablePaddingVertical:h,tablePaddingHorizontal:y,tablePaddingVerticalMiddle:p,tablePaddingHorizontalMiddle:g,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:$,tableFooterBg:w,tableHeaderCellSplitColor:P,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:D,tableFilterDropdownBg:R,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:rE,zIndexTableSticky:T(rE).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:I,tableSelectionColumnWidth:M,tableExpandIconBg:N,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:v,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[wee(z),hee(z),nE(z),Cee(z),mee(z),cee(z),gee(z),fee(z),nE(z),dee(z),yee(z),vee(z),See(z),uee(z),bee(z),pee(z),xee(z)]},$ee,{unitless:{expandIconScale:!0}}),oE=[],Oee=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:v,rowKey:h="key",rowClassName:y,columns:p,children:g,childrenColumnName:C,onChange:b,getPopupContainer:S,loading:w,expandIcon:$,expandable:x,expandedRowRender:E,expandIconColumnIndex:O,indentSize:I,scroll:P,sortDirections:_,locale:D,showSorterTooltip:R={target:"full-header"},virtual:N}=e;Di();const M=l.useMemo(()=>p||AC(g),[p,g]),k=l.useMemo(()=>M.some(ke=>ke.responsive),[M]),T=xh(k),z=l.useMemo(()=>{const ke=new Set(Object.keys(T).filter(_e=>T[_e]));return M.filter(_e=>!_e.responsive||_e.responsive.some(We=>ke.has(We)))},[M,T]),j=un(e,["className","style","columns"]),{locale:L=ea,direction:F,table:A,renderEmpty:H,getPrefixCls:U,getPopupContainer:X}=l.useContext(Et),ee=sr(c),J=Object.assign(Object.assign({},L.Table),D),oe=f||oE,ue=U("table",o),se=U("dropdown",d),[,Q]=Ir(),fe=Un(ue),[de,ie,re]=Eee(ue,fe),he=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:O},x),{expandIcon:(n=x==null?void 0:x.expandIcon)!==null&&n!==void 0?n:(r=A==null?void 0:A.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ge="children"}=he,Ne=l.useMemo(()=>oe.some(ke=>ke==null?void 0:ke[ge])?"nest":E||x!=null&&x.expandedRowRender?"row":null,[oe]),Pe={body:l.useRef(null)},ve=YJ(ue),$e=l.useRef(null),Ee=l.useRef(null);x7(t,()=>Object.assign(Object.assign({},Ee.current),{nativeElement:$e.current}));const we=l.useMemo(()=>typeof h=="function"?h:ke=>ke==null?void 0:ke[h],[h]),[Ae]=GZ(oe,ge,we),Le={},Ye=(ke,_e,We=!1)=>{var Ze,st,$t,Ot;const ft=Object.assign(Object.assign({},Le),ke);We&&((Ze=Le.resetPagination)===null||Ze===void 0||Ze.call(Le),!((st=ft.pagination)===null||st===void 0)&&st.current&&(ft.pagination.current=1),m&&(($t=m.onChange)===null||$t===void 0||$t.call(m,1,(Ot=ft.pagination)===null||Ot===void 0?void 0:Ot.pageSize))),P&&P.scrollToFirstRowOnChange!==!1&&Pe.body.current&&r7(0,{getContainer:()=>Pe.body.current}),b==null||b(ft.pagination,ft.filters,ft.sorter,{currentDataSource:mb(hb(oe,ft.sorterStates,ge),ft.filterStates,ge),action:_e})},Ke=(ke,_e)=>{Ye({sorter:ke,sorterStates:_e},"sort",!1)},[He,Ue,Me,Se]=aee({prefixCls:ue,mergedColumns:z,onSorterChange:Ke,sortDirections:_||["ascend","descend"],tableLocale:J,showSorterTooltip:R}),Fe=l.useMemo(()=>hb(oe,Ue,ge),[oe,Ue]);Le.sorter=Se(),Le.sorterStates=Ue;const xe=(ke,_e)=>{Ye({filters:ke,filterStates:_e},"filter",!0)},[Te,Oe,Ie]=qZ({prefixCls:ue,locale:J,dropdownPrefixCls:se,mergedColumns:z,onFilterChange:xe,getPopupContainer:S||X,rootClassName:Z(i,fe)}),je=mb(Fe,Oe,ge);Le.filters=Ie,Le.filterStates=Oe;const qe=l.useMemo(()=>{const ke={};return Object.keys(Ie).forEach(_e=>{Ie[_e]!==null&&(ke[_e]=Ie[_e])}),Object.assign(Object.assign({},Me),{filters:ke})},[Me,Ie]),[ut]=iee(qe),bt=(ke,_e)=>{Ye({pagination:Object.assign(Object.assign({},Le.pagination),{current:ke,pageSize:_e})},"paginate")},[Ge,tt]=QZ(je.length,bt,m);Le.pagination=m===!1?{}:XZ(Ge,m),Le.resetPagination=tt;const rt=l.useMemo(()=>{if(m===!1||!Ge.pageSize)return je;const{current:ke=1,total:_e,pageSize:We=CN}=Ge;return je.length<_e?je.length>We?je.slice((ke-1)*We,ke*We):je:je.slice((ke-1)*We,ke*We)},[!!m,je,Ge==null?void 0:Ge.current,Ge==null?void 0:Ge.pageSize,Ge==null?void 0:Ge.total]),[V,ae]=qJ({prefixCls:ue,data:je,pageData:rt,getRowKey:we,getRecordByKey:Ae,expandType:Ne,childrenColumnName:ge,locale:J,getPopupContainer:S||X},v),me=(ke,_e,We)=>{let Ze;return typeof y=="function"?Ze=Z(y(ke,_e,We)):Ze=Z(y),Z({[`${ue}-row-selected`]:ae.has(we(ke,_e))},Ze)};he.__PARENT_RENDER_ICON__=he.expandIcon,he.expandIcon=he.expandIcon||$||GJ(J),Ne==="nest"&&he.expandIconColumnIndex===void 0?he.expandIconColumnIndex=v?1:0:he.expandIconColumnIndex>0&&v&&(he.expandIconColumnIndex-=1),typeof he.indentSize!="number"&&(he.indentSize=typeof I=="number"?I:15);const Ce=l.useCallback(ke=>ut(V(Te(He(ke)))),[He,Te,V]),pe=()=>{if(m===!1||!(Ge!=null&&Ge.total))return{};const ke=()=>Ge.size||(ee==="small"||ee==="middle"?"small":void 0),_e=dt=>{const mt=dt==="left"?"start":dt==="right"?"end":dt;return l.createElement(wX,Object.assign({},Ge,{align:Ge.align||mt,className:Z(`${ue}-pagination`,Ge.className),size:ke()}))},We=F==="rtl"?"left":"right",Ze=Ge.position;if(Ze===null||!Array.isArray(Ze))return{bottom:_e(We)};const st=Ze.find(dt=>typeof dt=="string"&&dt.toLowerCase().includes("top")),$t=Ze.find(dt=>typeof dt=="string"&&dt.toLowerCase().includes("bottom")),Ot=Ze.every(dt=>`${dt}`=="none"),ft=st?st.toLowerCase().replace("top",""):"",_t=$t?$t.toLowerCase().replace("bottom",""):"",Xe=!st&&!$t&&!Ot,it=()=>ft?_e(ft):void 0,xt=()=>{if(_t)return _e(_t);if(Xe)return _e(We)};return{top:it(),bottom:xt()}},Re=l.useMemo(()=>typeof w=="boolean"?{spinning:w}:typeof w=="object"&&w!==null?Object.assign({spinning:!0},w):void 0,[w]),W=Z(re,fe,`${ue}-wrapper`,A==null?void 0:A.className,{[`${ue}-wrapper-rtl`]:F==="rtl"},a,i,ie),K=Object.assign(Object.assign({},A==null?void 0:A.style),s),G=l.useMemo(()=>Re!=null&&Re.spinning&&oe===oE?null:typeof(D==null?void 0:D.emptyText)<"u"?D.emptyText:(H==null?void 0:H("Table"))||l.createElement(uP,{componentName:"Table"}),[Re==null?void 0:Re.spinning,oe,D==null?void 0:D.emptyText,H]),ce=N?see:lee,ye={},De=l.useMemo(()=>{const{fontSize:ke,lineHeight:_e,lineWidth:We,padding:Ze,paddingXS:st,paddingSM:$t}=Q,Ot=Math.floor(ke*_e);switch(ee){case"middle":return $t*2+Ot+We;case"small":return st*2+Ot+We;default:return Ze*2+Ot+We}},[Q,ee]);N&&(ye.listItemHeight=De);const{top:Be,bottom:Ve}=pe();return de(l.createElement("div",{ref:$e,className:W,style:K},l.createElement(zd,Object.assign({spinning:!1},Re),Be,l.createElement(ce,Object.assign({},ye,j,{ref:Ee,columns:z,direction:F,expandable:he,prefixCls:ue,className:Z({[`${ue}-middle`]:ee==="middle",[`${ue}-small`]:ee==="small",[`${ue}-bordered`]:u,[`${ue}-empty`]:oe.length===0},re,fe,ie),data:rt,rowKey:we,rowClassName:me,emptyText:G,internalHooks:Fd,internalRefs:Pe,transformColumns:Ce,getContainerWidth:ve,measureRowRender:ke=>l.createElement(jo,{getPopupContainer:_e=>_e},ke)})),Ve)))},Iee=l.forwardRef(Oee),Ree=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(Iee,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ua=l.forwardRef(Ree);Ua.SELECTION_COLUMN=Ja;Ua.EXPAND_COLUMN=ri;Ua.SELECTION_ALL=sb;Ua.SELECTION_INVERT=cb;Ua.SELECTION_NONE=ub;Ua.Column=zJ;Ua.ColumnGroup=LJ;Ua.Summary=X6;const Pee=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},tn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},qC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return At(e,{tagFontSize:o,tagLineHeight:Y(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},GC=e=>({defaultBg:new Kt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),wN=Gt("Tag",e=>{const t=qC(e);return Pee(t)},GC);var Mee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nee=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:s,onChange:c,onClick:u}=e,d=Mee(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=l.useContext(Et),v=b=>{c==null||c(!a),u==null||u(b)},h=f("tag",n),[y,p,g]=wN(h),C=Z(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},m==null?void 0:m.className,o,p,g);return y(l.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:C,onClick:v}),s,l.createElement("span",null,i)))}),_ee=e=>IR(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Tee=ac(["Tag","preset"],e=>{const t=qC(e);return _ee(t)},GC);function Dee(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const _f=(e,t,n)=>{const r=Dee(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},kee=ac(["Tag","status"],e=>{const t=qC(e);return[_f(t,"success","Success"),_f(t,"processing","Info"),_f(t,"error","Error"),_f(t,"warning","Warning")]},GC);var jee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zee=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=jee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:y}=l.useContext(Et),[p,g]=l.useState(!0),C=un(m,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&g(f)},[f]);const b=OP(c),S=rH(c),w=b||S,$=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},y==null?void 0:y.style),a),x=v("tag",n),[E,O,I]=wN(x),P=Z(x,y==null?void 0:y.className,{[`${x}-${c}`]:w,[`${x}-has-color`]:c&&!w,[`${x}-hidden`]:!p,[`${x}-rtl`]:h==="rtl",[`${x}-borderless`]:!d},r,o,O,I),_=T=>{T.stopPropagation(),u==null||u(T),!T.defaultPrevented&&g(!1)},[,D]=JR(Qm(e),Qm(y),{closable:!1,closeIconRender:T=>{const z=l.createElement("span",{className:`${x}-close-icon`,onClick:_},T);return YR(T,z,j=>({onClick:L=>{var F;(F=j==null?void 0:j.onClick)===null||F===void 0||F.call(j,L),_(L)},className:Z(j==null?void 0:j.className,`${x}-close-icon`)}))}}),R=typeof m.onClick=="function"||i&&i.type==="a",N=s||null,M=N?l.createElement(l.Fragment,null,N,i&&l.createElement("span",null,i)):i,k=l.createElement("span",Object.assign({},C,{ref:t,className:P,style:$}),M,D,b&&l.createElement(Tee,{key:"preset",prefixCls:x}),S&&l.createElement(kee,{key:"status",prefixCls:x}));return E(R?l.createElement(wd,{component:"Tag"},k):k)}),Ln=zee;Ln.CheckableTag=Nee;var Lee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Fee=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Lee}))},YC=l.forwardRef(Fee),Aee={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"},Bee=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Aee}))},fv=l.forwardRef(Bee),Hee={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"},Vee=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Hee}))},Wee=l.forwardRef(Vee);const Kee=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Uee=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
428
+ h${r}&,
429
+ div&-h${r},
430
+ div&-h${r} > textarea,
431
+ h${r}
432
+ `]=Kee(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},qee=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},A1(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Gee=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:Um[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}}),Yee=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Xee=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Qee=()=>({"\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"}}),Jee=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Uee(e)),{[`
433
+ & + h1${t},
434
+ & + h2${t},
435
+ & + h3${t},
436
+ & + h4${t},
437
+ & + h5${t}
438
+ `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Gee(e)),qee(e)),{[`
439
+ ${t}-expand,
440
+ ${t}-collapse,
441
+ ${t}-edit,
442
+ ${t}-copy
443
+ `]:Object.assign(Object.assign({},A1(e)),{marginInlineStart:e.marginXXS})}),Yee(e)),Xee(e)),Qee()),{"&-rtl":{direction:"rtl"}})}},Zee=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),$N=Gt("Typography",Jee,Zee),ete=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:a,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:v=l.createElement(Wee,null)}=e,h=l.useRef(null),y=l.useRef(!1),p=l.useRef(null),[g,C]=l.useState(c);l.useEffect(()=>{C(c)},[c]),l.useEffect(()=>{var R;if(!((R=h.current)===null||R===void 0)&&R.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:M}=N.value;N.setSelectionRange(M,M)}},[]);const b=({target:R})=>{C(R.value.replace(/[\n\r]/g,""))},S=()=>{y.current=!0},w=()=>{y.current=!1},$=({keyCode:R})=>{y.current||(p.current=R)},x=()=>{u(g.trim())},E=({keyCode:R,ctrlKey:N,altKey:M,metaKey:k,shiftKey:T})=>{p.current!==R||y.current||N||M||k||T||(R===ct.ENTER?(x(),f==null||f()):R===ct.ESC&&d())},O=()=>{x()},[I,P,_]=$N(t),D=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${m}`]:!!m},r,P,_);return I(l.createElement("div",{className:D,style:o},l.createElement(D6,{ref:h,maxLength:i,value:g,onChange:b,onKeyDown:$,onKeyUp:E,onCompositionStart:S,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:s}),v!==null?Wr(v,{className:`${t}-edit-content-confirm`}):null))};var tte=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},nte=tte,aE={"text/plain":"Text","text/html":"Url",default:"Text"},rte="Copy to clipboard: #{key}, Enter";function ote(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function ate(e,t){var n,r,o,a,i,s,c=!1;t||(t={}),n=t.debug||!1;try{o=nte(),a=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=aE[t.format]||aE.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),i.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=ote("message"in t?t.message:rte),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var ite=ate;const lte=ho(ite);var ste=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?a(d.value):o(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const cte=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[o,a]=l.useState(!1),i=l.useRef(null),s=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),l.useEffect(()=>s,[]);const u=zt(d=>ste(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;lte(m||jX(t,!0).join("")||"",c),a(!1),r(!0),s(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw a(!1),m}}));return{copied:n,copyLoading:o,onClick:u}};function Tp(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ute=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},dte=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var fte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:a,setContentRef:i,children:s,direction:c,style:u}=e,d=fte(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:v,style:h}=gr("typography"),y=c??m,p=i?lr(t,i):t,g=f("typography",n),[C,b,S]=$N(g),w=Z(g,v,{[`${g}-rtl`]:y==="rtl"},o,a,b,S),$=Object.assign(Object.assign({},h),u);return C(l.createElement(r,Object.assign({className:w,style:$,ref:p},d),s))});var mte={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"},vte=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:mte}))},Wh=l.forwardRef(vte);function iE(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Dp(e,t,n){return e===!0||e===void 0?t:e||n&&t}function hte(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const XC=e=>["string","number"].includes(typeof e),gte=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:a,tabIndex:i,onCopy:s,loading:c})=>{const u=iE(o),d=iE(a),{copied:f,copy:m}=n??{},v=t?f:m,h=Dp(u[t?1:0],v),y=typeof h=="string"?h:v;return l.createElement(xr,{title:h},l.createElement("button",{type:"button",className:Z(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":y,tabIndex:i},t?Dp(d[1],l.createElement(gP,null),!0):Dp(d[0],c?l.createElement(Il,null):l.createElement(Wh,null),!0)))},Tf=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),pte=e=>e.reduce((t,n)=>t+(XC(n)?String(n).length:1),0);function lE(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const a=e[o],s=XC(a)?String(a).length:1,c=n+s;if(c>t){const u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=c}return e}const kp=0,jp=1,zp=2,Lp=3,sE=4,Df={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function yte(e){const{enableMeasure:t,width:n,text:r,children:o,rows:a,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>$r(r),[r]),d=l.useMemo(()=>pte(u),[r]),f=l.useMemo(()=>o(u,!1),[r]),[m,v]=l.useState(null),h=l.useRef(null),y=l.useRef(null),p=l.useRef(null),g=l.useRef(null),C=l.useRef(null),[b,S]=l.useState(!1),[w,$]=l.useState(kp),[x,E]=l.useState(0),[O,I]=l.useState(null);Dt(()=>{$(t&&n&&d?jp:kp)},[n,r,a,t,u]),Dt(()=>{var R,N,M,k;if(w===jp){$(zp);const T=y.current&&getComputedStyle(y.current).whiteSpace;I(T)}else if(w===zp){const T=!!(!((R=p.current)===null||R===void 0)&&R.isExceed());$(T?Lp:sE),v(T?[0,d]:null),S(T);const z=((N=p.current)===null||N===void 0?void 0:N.getHeight())||0,j=a===1?0:((M=g.current)===null||M===void 0?void 0:M.getHeight())||0,L=((k=C.current)===null||k===void 0?void 0:k.getHeight())||0,F=Math.max(z,j+L);E(F+1),c(T)}},[w]);const P=m?Math.ceil((m[0]+m[1])/2):0;Dt(()=>{var R;const[N,M]=m||[0,0];if(N!==M){const T=(((R=h.current)===null||R===void 0?void 0:R.getHeight())||0)>x;let z=P;M-N===1&&(z=T?N:M),v(T?[N,z]:[z,M])}},[m,P]);const _=l.useMemo(()=>{if(!t)return o(u,!1);if(w!==Lp||!m||m[0]!==m[1]){const R=o(u,!1);return[sE,kp].includes(w)?R:l.createElement("span",{style:Object.assign(Object.assign({},Df),{WebkitLineClamp:a})},R)}return o(i?u:lE(u,m[0]),b)},[i,w,m,u].concat(ze(s))),D={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,_,w===zp&&l.createElement(l.Fragment,null,l.createElement(Tf,{style:Object.assign(Object.assign(Object.assign({},D),Df),{WebkitLineClamp:a}),ref:p},f),l.createElement(Tf,{style:Object.assign(Object.assign(Object.assign({},D),Df),{WebkitLineClamp:a-1}),ref:g},f),l.createElement(Tf,{style:Object.assign(Object.assign(Object.assign({},D),Df),{WebkitLineClamp:1}),ref:C},o([],!0))),w===Lp&&m&&m[0]!==m[1]&&l.createElement(Tf,{style:Object.assign(Object.assign({},D),{top:400}),ref:h},o(lE(u,P),!0)),w===jp&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}const bte=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:l.createElement(xr,Object.assign({open:t?void 0:!1},r),n);var Cte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ste({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:a,italic:i},s){let c=s;function u(d,f){f&&(c=l.createElement(d,{},c))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",a),u("i",i),c}const xte="...",cE=["delete","mark","code","underline","strong","keyboard","italic"],Kh=l.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:a,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:v}=e,h=Cte(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:p}=l.useContext(Et),[g]=yo("Text"),C=l.useRef(null),b=l.useRef(null),S=y("typography",r),w=un(h,cE),[$,x]=Tp(d),[E,O]=en(!1,{value:x.editing}),{triggerType:I=["icon"]}=x,P=Oe=>{var Ie;Oe&&((Ie=x.onStart)===null||Ie===void 0||Ie.call(x)),O(Oe)},_=ute(E);Dt(()=>{var Oe;!E&&_&&((Oe=b.current)===null||Oe===void 0||Oe.focus())},[E]);const D=Oe=>{Oe==null||Oe.preventDefault(),P(!0)},R=Oe=>{var Ie;(Ie=x.onChange)===null||Ie===void 0||Ie.call(x,Oe),P(!1)},N=()=>{var Oe;(Oe=x.onCancel)===null||Oe===void 0||Oe.call(x),P(!1)},[M,k]=Tp(f),{copied:T,copyLoading:z,onClick:j}=cte({copyConfig:k,children:c}),[L,F]=l.useState(!1),[A,H]=l.useState(!1),[U,X]=l.useState(!1),[ee,J]=l.useState(!1),[oe,ue]=l.useState(!0),[se,Q]=Tp(u,{expandable:!1,symbol:Oe=>Oe?g==null?void 0:g.collapse:g==null?void 0:g.expand}),[fe,de]=en(Q.defaultExpanded||!1,{value:Q.expanded}),ie=se&&(!fe||Q.expandable==="collapsible"),{rows:re=1}=Q,he=l.useMemo(()=>ie&&(Q.suffix!==void 0||Q.onEllipsis||Q.expandable||$||M),[ie,Q,$,M]);Dt(()=>{se&&!he&&(F(Ay("webkitLineClamp")),H(Ay("textOverflow")))},[he,se]);const[ge,Ne]=l.useState(ie),Pe=l.useMemo(()=>he?!1:re===1?A:L,[he,A,L]);Dt(()=>{Ne(Pe&&ie)},[Pe,ie]);const ve=ie&&(ge?ee:U),$e=ie&&re===1&&ge,Ee=ie&&re>1&&ge,we=(Oe,Ie)=>{var je;de(Ie.expanded),(je=Q.onExpand)===null||je===void 0||je.call(Q,Oe,Ie)},[Ae,Le]=l.useState(0),Ye=({offsetWidth:Oe})=>{Le(Oe)},Ke=Oe=>{var Ie;X(Oe),U!==Oe&&((Ie=Q.onEllipsis)===null||Ie===void 0||Ie.call(Q,Oe))};l.useEffect(()=>{const Oe=C.current;if(se&&ge&&Oe){const Ie=hte(Oe);ee!==Ie&&J(Ie)}},[se,ge,c,Ee,oe,Ae]),l.useEffect(()=>{const Oe=C.current;if(typeof IntersectionObserver>"u"||!Oe||!ge||!ie)return;const Ie=new IntersectionObserver(()=>{ue(!!Oe.offsetParent)});return Ie.observe(Oe),()=>{Ie.disconnect()}},[ge,ie]);const He=dte(Q.tooltip,x.text,c),Ue=l.useMemo(()=>{if(!(!se||ge))return[x.text,c,v,He.title].find(XC)},[se,ge,v,He.title,ve]);if(E)return l.createElement(ete,{value:(n=x.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:R,onCancel:N,onEnd:x.onEnd,prefixCls:S,className:o,style:a,direction:p,component:m,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});const Me=()=>{const{expandable:Oe,symbol:Ie}=Q;return Oe?l.createElement("button",{type:"button",key:"expand",className:`${S}-${fe?"collapse":"expand"}`,onClick:je=>we(je,{expanded:!fe}),"aria-label":fe?g.collapse:g==null?void 0:g.expand},typeof Ie=="function"?Ie(fe):Ie):null},Se=()=>{if(!$)return;const{icon:Oe,tooltip:Ie,tabIndex:je}=x,qe=$r(Ie)[0]||(g==null?void 0:g.edit),ut=typeof qe=="string"?qe:"";return I.includes("icon")?l.createElement(xr,{key:"edit",title:Ie===!1?"":qe},l.createElement("button",{type:"button",ref:b,className:`${S}-edit`,onClick:D,"aria-label":ut,tabIndex:je},Oe||l.createElement(fv,{role:"button"}))):null},Fe=()=>M?l.createElement(gte,Object.assign({key:"copy"},k,{prefixCls:S,copied:T,locale:g,onCopy:j,loading:z,iconOnly:c==null})):null,xe=Oe=>[Oe&&Me(),Se(),Fe()],Te=Oe=>[Oe&&!fe&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},xte),Q.suffix,xe(Oe)];return l.createElement(Sr,{onResize:Ye,disabled:!ie},Oe=>l.createElement(bte,{tooltipProps:He,enableEllipsis:ie,isEllipsis:ve},l.createElement(EN,Object.assign({className:Z({[`${S}-${i}`]:i,[`${S}-disabled`]:s,[`${S}-ellipsis`]:se,[`${S}-ellipsis-single-line`]:$e,[`${S}-ellipsis-multiple-line`]:Ee},o),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:Ee?re:void 0}),component:m,ref:lr(Oe,C,t),direction:p,onClick:I.includes("text")?D:void 0,"aria-label":Ue==null?void 0:Ue.toString(),title:v},w),l.createElement(yte,{enableMeasure:ie&&!ge,text:c,rows:re,width:Ae,onEllipsis:Ke,expanded:fe,miscDeps:[T,fe,z,$,M,g].concat(ze(cE.map(Ie=>e[Ie])))},(Ie,je)=>Ste(e,l.createElement(l.Fragment,null,Ie.length>0&&je&&!fe&&Ue?l.createElement("span",{key:"show-content","aria-hidden":!0},Ie):Ie,Te(je)))))))});var wte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $te=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:a}=e,i=wte(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return l.createElement(Kh,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),o)});var Ete=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ote=l.forwardRef((e,t)=>{const{children:n}=e,r=Ete(e,["children"]);return l.createElement(Kh,Object.assign({ref:t},r,{component:"div"}),n)});var Ite=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Rte=(e,t)=>{const{ellipsis:n,children:r}=e,o=Ite(e,["ellipsis","children"]),a=l.useMemo(()=>n&&typeof n=="object"?un(n,["expandable","rows"]):n,[n]);return l.createElement(Kh,Object.assign({ref:t},o,{ellipsis:a,component:"span"}),r)},Pte=l.forwardRef(Rte);var Mte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nte=[1,2,3,4,5],_te=l.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=Mte(e,["level","children"]),a=Nte.includes(n)?`h${n}`:"h1";return l.createElement(Kh,Object.assign({ref:t},o,{component:a}),r)}),wc=EN;wc.Text=Pte;wc.Link=$te;wc.Title=_te;wc.Paragraph=Ote;var Uh={},ON={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ON);var qh=ON.exports,Gh={};Object.defineProperty(Gh,"__esModule",{value:!0});Gh.default=void 0;var Tte={items_per_page:"件 / ページ",jump_to:"移動",jump_to_confirm:"確認する",page:"ページ",prev_page:"前のページ",next_page:"次のページ",prev_5:"前 5ページ",next_5:"次 5ページ",prev_3:"前 3ページ",next_3:"次 3ページ",page_size:"ページサイズ"};Gh.default=Tte;var Yh={},Ad={},Xh={},IN={exports:{}},RN={exports:{}},PN={exports:{}},MN={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(MN);var NN=MN.exports,_N={exports:{}};(function(e){var t=NN.default;function n(r,o){if(t(r)!="object"||!r)return r;var a;if(typeof Symbol<"u"&&(a=r[Symbol.toPrimitive])!==void 0){var i=a.call(r,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_N);var Dte=_N.exports;(function(e){var t=NN.default,n=Dte;function r(o){var a=n(o,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(PN);var kte=PN.exports;(function(e){var t=kte;function n(r,o,a){return(o=t(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(RN);var jte=RN.exports;(function(e){var t=jte;function n(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),i.push.apply(i,s)}return i}function r(o){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?n(Object(i),!0).forEach(function(s){t(o,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(IN);var zte=IN.exports,Qh={};Object.defineProperty(Qh,"__esModule",{value:!0});Qh.commonLocale=void 0;Qh.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Lte=qh.default;Object.defineProperty(Xh,"__esModule",{value:!0});Xh.default=void 0;var uE=Lte(zte),Fte=Qh,Ate=(0,uE.default)((0,uE.default)({},Fte.commonLocale),{},{locale:"ja_JP",today:"今日",now:"現在時刻",backToToday:"今日に戻る",ok:"確定",timeSelect:"時間を選択",dateSelect:"日時を選択",weekSelect:"週を選択",clear:"クリア",week:"週",month:"月",year:"年",previousMonth:"前月 (ページアップキー)",nextMonth:"翌月 (ページダウンキー)",monthSelect:"月を選択",yearSelect:"年を選択",decadeSelect:"年代を選択",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"前年 (Controlを押しながら左キー)",nextYear:"翌年 (Controlを押しながら右キー)",previousDecade:"前の年代",nextDecade:"次の年代",previousCentury:"前の世紀",nextCentury:"次の世紀",monthBeforeYear:!1});Xh.default=Ate;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});Bd.default=void 0;const Bte={placeholder:"時間を選択",rangePlaceholder:["開始時間","終了時間"]};Bd.default=Bte;var TN=qh.default;Object.defineProperty(Ad,"__esModule",{value:!0});Ad.default=void 0;var Hte=TN(Xh),Vte=TN(Bd);const Wte={lang:Object.assign({placeholder:"日付を選択",yearPlaceholder:"年を選択",quarterPlaceholder:"四半期を選択",monthPlaceholder:"月を選択",weekPlaceholder:"週を選択",rangePlaceholder:["開始日付","終了日付"],rangeYearPlaceholder:["開始年","終了年"],rangeMonthPlaceholder:["開始月","終了月"],rangeQuarterPlaceholder:["開始四半期","終了四半期"],rangeWeekPlaceholder:["開始週","終了週"],shortWeekDays:["日","月","火","水","木","金","土"],shortMonths:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Hte.default),timePickerLocale:Object.assign({},Vte.default)};Ad.default=Wte;var Kte=qh.default;Object.defineProperty(Yh,"__esModule",{value:!0});Yh.default=void 0;var Ute=Kte(Ad);Yh.default=Ute.default;var Jh=qh.default;Object.defineProperty(Uh,"__esModule",{value:!0});Uh.default=void 0;var qte=Jh(Gh),Gte=Jh(Yh),Yte=Jh(Ad),Xte=Jh(Bd);const lo="${label}は有効な${type}ではありません",Qte={locale:"ja",Pagination:qte.default,DatePicker:Yte.default,TimePicker:Xte.default,Calendar:Gte.default,global:{placeholder:"選んでください",close:"閉じる"},Table:{filterTitle:"フィルター",filterConfirm:"OK",filterReset:"リセット",filterEmptyText:"フィルターなし",filterCheckAll:"すべてを選択",filterSearchPlaceholder:"フィルターで検索",emptyText:"データなし",selectAll:"ページ単位で選択",selectInvert:"ページ単位で反転",selectNone:"クリア",selectionAll:"すべてを選択",sortTitle:"ソート",expand:"展開する",collapse:"折り畳む",triggerDesc:"クリックで降順にソート",triggerAsc:"クリックで昇順にソート",cancelSort:"ソートをキャンセル"},Tour:{Next:"次",Previous:"前の",Finish:"仕上げる"},Modal:{okText:"OK",cancelText:"キャンセル",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"キャンセル"},Transfer:{titles:["",""],searchPlaceholder:"ここを検索",itemUnit:"アイテム",itemsUnit:"アイテム",remove:"削除",selectCurrent:"現在のページを選択",removeCurrent:"現在のページを削除",selectAll:"ページ単位で選択",deselectAll:"すべてのデータの選択を解除する",removeAll:"ページ単位で削除",selectInvert:"ページ単位で反転"},Upload:{uploading:"アップロード中...",removeFile:"ファイルを削除",uploadError:"アップロードエラー",previewFile:"ファイルをプレビュー",downloadFile:"ダウンロードファイル"},Empty:{description:"データがありません"},Icon:{icon:"アイコン"},Text:{edit:"編集",copy:"コピー",copied:"コピーされました",expand:"拡大する",collapse:"崩壊"},Form:{optional:"(オプション)",defaultValidateMessages:{default:"${label}のフィールド検証エラー",required:"${label}を入力してください",enum:"${label}は[${enum}]のいずれかである必要があります",whitespace:"${label}は空白文字にすることはできません",date:{format:"${label}の日付形式は不正です",parse:"${label}は日付に変換できません",invalid:"${label}は不正な日付です"},types:{string:lo,method:lo,array:lo,object:lo,number:lo,date:lo,boolean:lo,integer:lo,float:lo,regexp:lo,email:lo,url:lo,hex:lo},string:{len:"${label}は${len}文字である必要があります",min:"${label}は${min}文字以上である必要があります",max:"${label}は${max}文字以下である必要があります",range:"${label}は${min}-${max}文字の範囲である必要があります"},number:{len:"${label}は${len}と等しい必要があります",min:"${label}の最小値は${min}です",max:"${label}の最大値は${max}です",range:"${label}は${min}-${max}の範囲である必要があります"},array:{len:"${label}は${len}である必要があります",min:"${label}の最小は${min}です",max:"${label}の最大は${max}です",range:"${label}の合計は${min}-${max}の範囲である必要があります"},pattern:{mismatch:"${label}はパターン${pattern}と一致しません"}}},Image:{preview:"プレビュー"},QRCode:{expired:"QRコードの有効期限が切れました",refresh:"リフレッシュ",scanned:"スキャン済み"},ColorPicker:{presetEmpty:"空の",transparent:"透明",singleColor:"単色",gradientColor:"グラデーション"}};Uh.default=Qte;var Jte=Uh;const Zte=ho(Jte),ene={token:{colorPrimary:"#1677ff",borderRadius:6,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"},components:{Layout:{siderBg:"#001529",headerBg:"#fff",headerHeight:56},Table:{headerBg:"#fafafa",rowHoverBg:"#f5f5f5"},Menu:{darkItemBg:"transparent",darkItemSelectedBg:"rgba(255, 255, 255, 0.1)",darkItemHoverBg:"rgba(255, 255, 255, 0.05)"},Card:{borderRadiusLG:8}}};/**
444
+ * @remix-run/router v1.23.4
445
+ *
446
+ * Copyright (c) Remix Software Inc.
447
+ *
448
+ * This source code is licensed under the MIT license found in the
449
+ * LICENSE.md file in the root directory of this source tree.
450
+ *
451
+ * @license MIT
452
+ */function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(null,arguments)}var Qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qn||(Qn={}));const dE="popstate";function tne(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return ud("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:xl(o)}return rne(t,n,null,e)}function Xt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Js(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nne(){return Math.random().toString(36).substr(2,8)}function fE(e,t){return{usr:e.state,key:e.key,idx:t}}function ud(e,t,n,r){return n===void 0&&(n=null),In({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ji(t):t,{state:n,key:t&&t.key||r||nne()})}function xl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ji(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rne(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Qn.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(In({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=Qn.Pop;let p=d(),g=p==null?null:p-u;u=p,c&&c({action:s,location:y.location,delta:g})}function m(p,g){s=Qn.Push;let C=ud(y.location,p,g);u=d()+1;let b=fE(C,u),S=y.createHref(C);try{i.pushState(b,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(S)}a&&c&&c({action:s,location:y.location,delta:1})}function v(p,g){s=Qn.Replace;let C=ud(y.location,p,g);u=d();let b=fE(C,u),S=y.createHref(C);i.replaceState(b,"",S),a&&c&&c({action:s,location:y.location,delta:0})}function h(p){let g=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof p=="string"?p:xl(p);return C=C.replace(/ $/,"%20"),Xt(g,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,g)}let y={get action(){return s},get location(){return e(o,i)},listen(p){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(dE,f),c=p,()=>{o.removeEventListener(dE,f),c=null}},createHref(p){return t(o,p)},createURL:h,encodeLocation(p){let g=h(p);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:v,go(p){return i.go(p)}};return y}var fn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fn||(fn={}));const one=new Set(["lazy","caseSensitive","path","id","index","children"]);function ane(e){return e.index===!0}function mv(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(Xt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Xt(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ane(o)){let c=In({},o,t(o),{id:s});return r[s]=c,c}else{let c=In({},o,t(o),{id:s,children:void 0});return r[s]=c,o.children&&(c.children=mv(o.children,t,i,r)),c}})}function qi(e,t,n){return n===void 0&&(n="/"),mm(e,t,n,!1)}function mm(e,t,n,r){let o=typeof t=="string"?ji(t):t,a=$c(o.pathname||"/",n);if(a==null)return null;let i=DN(e);lne(i);let s=null,c=yne(a);for(let u=0;s==null&&u<i.length;++u)s=gne(i[u],c,r);return s}function ine(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function DN(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,s)=>{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(Xt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=ja([r,c.relativePath]),d=n.concat(c);a.children&&a.children.length>0&&(Xt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),DN(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:vne(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of kN(a.path))o(a,i,c)}),t}function kN(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=kN(r.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function lne(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hne(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const sne=/^:[\w-]+$/,cne=3,une=2,dne=1,fne=10,mne=-2,mE=e=>e==="*";function vne(e,t){let n=e.split("/"),r=n.length;return n.some(mE)&&(r+=mne),t&&(r+=une),n.filter(o=>!mE(o)).reduce((o,a)=>o+(sne.test(a)?cne:a===""?dne:fne),r)}function hne(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function gne(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=vE({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),m=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=vE({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:ja([a,f.pathname]),pathnameBase:Cne(ja([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=ja([a,f.pathnameBase]))}return i}function vE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pne(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:v}=d;if(m==="*"){let y=s[f]||"";i=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const h=s[f];return v&&!h?u[m]=void 0:u[m]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function pne(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Js(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function yne(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Js(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $c(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function bne(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ji(e):e,a;return n?(n=QC(n),n.startsWith("/")?a=hE(n.substring(1),"/"):a=hE(n,t)):a=t,{pathname:a,search:Sne(r),hash:xne(o)}}function hE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Fp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function jN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zh(e,t){let n=jN(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ji(e):(o=In({},e),Xt(!o.pathname||!o.pathname.includes("?"),Fp("?","pathname","search",o)),Xt(!o.pathname||!o.pathname.includes("#"),Fp("#","pathname","hash",o)),Xt(!o.search||!o.search.includes("#"),Fp("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}s=f>=0?t[f]:"/"}let c=bne(o,s),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const QC=e=>e.replace(/\/\/+/g,"/"),ja=e=>QC(e.join("/")),Cne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Sne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class vv{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function dd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zN=["post","put","patch","delete"],wne=new Set(zN),$ne=["get",...zN],Ene=new Set($ne),One=new Set([301,302,303,307,308]),Ine=new Set([307,308]),Ap={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rne={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},JC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pne=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),LN="remix-router-transitions";function Mne(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Xt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let W=e.detectErrorBoundary;o=K=>({hasErrorBoundary:W(K)})}else o=Pne;let a={},i=mv(e.routes,o,void 0,a),s,c=e.basename||"/",u=e.dataStrategy||Dne,d=e.patchRoutesOnNavigation,f=In({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,v=new Set,h=null,y=null,p=null,g=e.hydrationData!=null,C=qi(i,e.history.location,c),b=!1,S=null;if(C==null&&!d){let W=Yr(404,{pathname:e.history.location.pathname}),{matches:K,route:G}=OE(i);C=K,S={[G.id]:W}}C&&!e.hydrationData&&me(C,i,e.history.location.pathname).active&&(C=null);let w;if(C)if(C.some(W=>W.route.lazy))w=!1;else if(!C.some(W=>W.route.loader))w=!0;else if(f.v7_partialHydration){let W=e.hydrationData?e.hydrationData.loaderData:null,K=e.hydrationData?e.hydrationData.errors:null;if(K){let G=C.findIndex(ce=>K[ce.route.id]!==void 0);w=C.slice(0,G+1).every(ce=>!pb(ce.route,W,K))}else w=C.every(G=>!pb(G.route,W,K))}else w=e.hydrationData!=null;else if(w=!1,C=[],f.v7_partialHydration){let W=me(null,i,e.history.location.pathname);W.active&&W.matches&&(b=!0,C=W.matches)}let $,x={historyAction:e.history.action,location:e.history.location,matches:C,initialized:w,navigation:Ap,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},E=Qn.Pop,O=!1,I,P=!1,_=new Map,D=null,R=!1,N=!1,M=[],k=new Set,T=new Map,z=0,j=-1,L=new Map,F=new Set,A=new Map,H=new Map,U=new Set,X=new Map,ee=new Map,J;function oe(){if(m=e.history.listen(W=>{let{action:K,location:G,delta:ce}=W;if(J){J(),J=void 0;return}Js(ee.size===0||ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ye=ut({currentLocation:x.location,nextLocation:G,historyAction:K});if(ye&&ce!=null){let De=new Promise(Be=>{J=Be});e.history.go(ce*-1),qe(ye,{state:"blocked",location:G,proceed(){qe(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),De.then(()=>e.history.go(ce))},reset(){let Be=new Map(x.blockers);Be.set(ye,Kc),Q({blockers:Be})}});return}return re(K,G)}),n){Gne(t,_);let W=()=>Yne(t,_);t.addEventListener("pagehide",W),D=()=>t.removeEventListener("pagehide",W)}return x.initialized||re(Qn.Pop,x.location,{initialHydration:!0}),$}function ue(){m&&m(),D&&D(),v.clear(),I&&I.abort(),x.fetchers.forEach((W,K)=>Me(K)),x.blockers.forEach((W,K)=>je(K))}function se(W){return v.add(W),()=>v.delete(W)}function Q(W,K){K===void 0&&(K={}),x=In({},x,W);let G=[],ce=[];f.v7_fetcherPersist&&x.fetchers.forEach((ye,De)=>{ye.state==="idle"&&(U.has(De)?ce.push(De):G.push(De))}),U.forEach(ye=>{!x.fetchers.has(ye)&&!T.has(ye)&&ce.push(ye)}),[...v].forEach(ye=>ye(x,{deletedFetchers:ce,viewTransitionOpts:K.viewTransitionOpts,flushSync:K.flushSync===!0})),f.v7_fetcherPersist?(G.forEach(ye=>x.fetchers.delete(ye)),ce.forEach(ye=>Me(ye))):ce.forEach(ye=>U.delete(ye))}function fe(W,K,G){var ce,ye;let{flushSync:De}=G===void 0?{}:G,Be=x.actionData!=null&&x.navigation.formMethod!=null&&Wo(x.navigation.formMethod)&&x.navigation.state==="loading"&&((ce=W.state)==null?void 0:ce._isRedirect)!==!0,Ve;K.actionData?Object.keys(K.actionData).length>0?Ve=K.actionData:Ve=null:Be?Ve=x.actionData:Ve=null;let ke=K.loaderData?$E(x.loaderData,K.loaderData,K.matches||[],K.errors):x.loaderData,_e=x.blockers;_e.size>0&&(_e=new Map(_e),_e.forEach((st,$t)=>_e.set($t,Kc)));let We=O===!0||x.navigation.formMethod!=null&&Wo(x.navigation.formMethod)&&((ye=W.state)==null?void 0:ye._isRedirect)!==!0;s&&(i=s,s=void 0),R||E===Qn.Pop||(E===Qn.Push?e.history.push(W,W.state):E===Qn.Replace&&e.history.replace(W,W.state));let Ze;if(E===Qn.Pop){let st=_.get(x.location.pathname);st&&st.has(W.pathname)?Ze={currentLocation:x.location,nextLocation:W}:_.has(W.pathname)&&(Ze={currentLocation:W,nextLocation:x.location})}else if(P){let st=_.get(x.location.pathname);st?st.add(W.pathname):(st=new Set([W.pathname]),_.set(x.location.pathname,st)),Ze={currentLocation:x.location,nextLocation:W}}Q(In({},K,{actionData:Ve,loaderData:ke,historyAction:E,location:W,initialized:!0,navigation:Ap,revalidation:"idle",restoreScrollPosition:ae(W,K.matches||x.matches),preventScrollReset:We,blockers:_e}),{viewTransitionOpts:Ze,flushSync:De===!0}),E=Qn.Pop,O=!1,P=!1,R=!1,N=!1,M=[]}async function de(W,K){if(typeof W=="number"){e.history.go(W);return}let G=gb(x.location,x.matches,c,f.v7_prependBasename,W,f.v7_relativeSplatPath,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ce,submission:ye,error:De}=gE(f.v7_normalizeFormMethod,!1,G,K),Be=x.location,Ve=ud(x.location,ce,K&&K.state);Ve=In({},Ve,e.history.encodeLocation(Ve));let ke=K&&K.replace!=null?K.replace:void 0,_e=Qn.Push;ke===!0?_e=Qn.Replace:ke===!1||ye!=null&&Wo(ye.formMethod)&&ye.formAction===x.location.pathname+x.location.search&&(_e=Qn.Replace);let We=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,Ze=(K&&K.flushSync)===!0,st=ut({currentLocation:Be,nextLocation:Ve,historyAction:_e});if(st){qe(st,{state:"blocked",location:Ve,proceed(){qe(st,{state:"proceeding",proceed:void 0,reset:void 0,location:Ve}),de(W,K)},reset(){let $t=new Map(x.blockers);$t.set(st,Kc),Q({blockers:$t})}});return}return await re(_e,Ve,{submission:ye,pendingError:De,preventScrollReset:We,replace:K&&K.replace,enableViewTransition:K&&K.viewTransition,flushSync:Ze})}function ie(){if(Ye(),Q({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){re(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}re(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:P===!0})}}async function re(W,K,G){I&&I.abort(),I=null,E=W,R=(G&&G.startUninterruptedRevalidation)===!0,V(x.location,x.matches),O=(G&&G.preventScrollReset)===!0,P=(G&&G.enableViewTransition)===!0;let ce=s||i,ye=G&&G.overrideNavigation,De=G!=null&&G.initialHydration&&x.matches&&x.matches.length>0&&!b?x.matches:qi(ce,K,c),Be=(G&&G.flushSync)===!0;if(De&&x.initialized&&!N&&Ane(x.location,K)&&!(G&&G.submission&&Wo(G.submission.formMethod))){fe(K,{matches:De},{flushSync:Be});return}let Ve=me(De,ce,K.pathname);if(Ve.active&&Ve.matches&&(De=Ve.matches),!De){let{error:Ot,notFoundMatches:ft,route:_t}=bt(K.pathname);fe(K,{matches:ft,loaderData:{},errors:{[_t.id]:Ot}},{flushSync:Be});return}I=new AbortController;let ke=Zl(e.history,K,I.signal,G&&G.submission),_e;if(G&&G.pendingError)_e=[Gi(De).route.id,{type:fn.error,error:G.pendingError}];else if(G&&G.submission&&Wo(G.submission.formMethod)){let Ot=await he(ke,K,G.submission,De,Ve.active,{replace:G.replace,flushSync:Be});if(Ot.shortCircuited)return;if(Ot.pendingActionResult){let[ft,_t]=Ot.pendingActionResult;if(co(_t)&&dd(_t.error)&&_t.error.status===404){I=null,fe(K,{matches:Ot.matches,loaderData:{},errors:{[ft]:_t.error}});return}}De=Ot.matches||De,_e=Ot.pendingActionResult,ye=Bp(K,G.submission),Be=!1,Ve.active=!1,ke=Zl(e.history,ke.url,ke.signal)}let{shortCircuited:We,matches:Ze,loaderData:st,errors:$t}=await ge(ke,K,De,Ve.active,ye,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,Be,_e);We||(I=null,fe(K,In({matches:Ze||De},EE(_e),{loaderData:st,errors:$t})))}async function he(W,K,G,ce,ye,De){De===void 0&&(De={}),Ye();let Be=Une(K,G);if(Q({navigation:Be},{flushSync:De.flushSync===!0}),ye){let _e=await Ce(ce,K.pathname,W.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){let We=Gi(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[We,{type:fn.error,error:_e.error}]}}else if(_e.matches)ce=_e.matches;else{let{notFoundMatches:We,error:Ze,route:st}=bt(K.pathname);return{matches:We,pendingActionResult:[st.id,{type:fn.error,error:Ze}]}}}let Ve,ke=su(ce,K);if(!ke.route.action&&!ke.route.lazy)Ve={type:fn.error,error:Yr(405,{method:W.method,pathname:K.pathname,routeId:ke.route.id})};else if(Ve=(await Ae("action",x,W,[ke],ce,null))[ke.route.id],W.signal.aborted)return{shortCircuited:!0};if(rl(Ve)){let _e;return De&&De.replace!=null?_e=De.replace:_e=SE(Ve.response.headers.get("Location"),new URL(W.url),c,e.history)===x.location.pathname+x.location.search,await we(W,Ve,!0,{submission:G,replace:_e}),{shortCircuited:!0}}if(fi(Ve))throw Yr(400,{type:"defer-action"});if(co(Ve)){let _e=Gi(ce,ke.route.id);return(De&&De.replace)!==!0&&(E=Qn.Push),{matches:ce,pendingActionResult:[_e.route.id,Ve]}}return{matches:ce,pendingActionResult:[ke.route.id,Ve]}}async function ge(W,K,G,ce,ye,De,Be,Ve,ke,_e,We){let Ze=ye||Bp(K,De),st=De||Be||RE(Ze),$t=!R&&(!f.v7_partialHydration||!ke);if(ce){if($t){let pt=Ne(We);Q(In({navigation:Ze},pt!==void 0?{actionData:pt}:{}),{flushSync:_e})}let Qe=await Ce(G,K.pathname,W.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let pt=Gi(Qe.partialMatches).route.id;return{matches:Qe.partialMatches,loaderData:{},errors:{[pt]:Qe.error}}}else if(Qe.matches)G=Qe.matches;else{let{error:pt,notFoundMatches:Jt,route:ln}=bt(K.pathname);return{matches:Jt,loaderData:{},errors:{[ln.id]:pt}}}}let Ot=s||i,[ft,_t]=yE(e.history,x,G,st,K,f.v7_partialHydration&&ke===!0,f.v7_skipActionErrorRevalidation,N,M,k,U,A,F,Ot,c,We);if(Ge(Qe=>!(G&&G.some(pt=>pt.route.id===Qe))||ft&&ft.some(pt=>pt.route.id===Qe)),j=++z,ft.length===0&&_t.length===0){let Qe=Te();return fe(K,In({matches:G,loaderData:{},errors:We&&co(We[1])?{[We[0]]:We[1].error}:null},EE(We),Qe?{fetchers:new Map(x.fetchers)}:{}),{flushSync:_e}),{shortCircuited:!0}}if($t){let Qe={};if(!ce){Qe.navigation=Ze;let pt=Ne(We);pt!==void 0&&(Qe.actionData=pt)}_t.length>0&&(Qe.fetchers=Pe(_t)),Q(Qe,{flushSync:_e})}_t.forEach(Qe=>{Fe(Qe.key),Qe.controller&&T.set(Qe.key,Qe.controller)});let Xe=()=>_t.forEach(Qe=>Fe(Qe.key));I&&I.signal.addEventListener("abort",Xe);let{loaderResults:it,fetcherResults:xt}=await Le(x,G,ft,_t,W);if(W.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Xe),_t.forEach(Qe=>T.delete(Qe.key));let dt=kf(it);if(dt)return await we(W,dt.result,!0,{replace:Ve}),{shortCircuited:!0};if(dt=kf(xt),dt)return F.add(dt.key),await we(W,dt.result,!0,{replace:Ve}),{shortCircuited:!0};let{loaderData:mt,errors:lt}=wE(x,G,it,We,_t,xt,X);X.forEach((Qe,pt)=>{Qe.subscribe(Jt=>{(Jt||Qe.done)&&X.delete(pt)})}),f.v7_partialHydration&&ke&&x.errors&&(lt=In({},x.errors,lt));let It=Te(),kt=Oe(j),ot=It||kt||_t.length>0;return In({matches:G,loaderData:mt,errors:lt},ot?{fetchers:new Map(x.fetchers)}:{})}function Ne(W){if(W&&!co(W[1]))return{[W[0]]:W[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function Pe(W){return W.forEach(K=>{let G=x.fetchers.get(K.key),ce=Uc(void 0,G?G.data:void 0);x.fetchers.set(K.key,ce)}),new Map(x.fetchers)}function ve(W,K,G,ce){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Fe(W);let ye=(ce&&ce.flushSync)===!0,De=s||i,Be=gb(x.location,x.matches,c,f.v7_prependBasename,G,f.v7_relativeSplatPath,K,ce==null?void 0:ce.relative),Ve=qi(De,Be,c),ke=me(Ve,De,Be);if(ke.active&&ke.matches&&(Ve=ke.matches),!Ve){He(W,K,Yr(404,{pathname:Be}),{flushSync:ye});return}let{path:_e,submission:We,error:Ze}=gE(f.v7_normalizeFormMethod,!0,Be,ce);if(Ze){He(W,K,Ze,{flushSync:ye});return}let st=su(Ve,_e),$t=(ce&&ce.preventScrollReset)===!0;if(We&&Wo(We.formMethod)){$e(W,K,_e,st,Ve,ke.active,ye,$t,We);return}A.set(W,{routeId:K,path:_e}),Ee(W,K,_e,st,Ve,ke.active,ye,$t,We)}async function $e(W,K,G,ce,ye,De,Be,Ve,ke){Ye(),A.delete(W);function _e(Ht){if(!Ht.route.action&&!Ht.route.lazy){let gn=Yr(405,{method:ke.formMethod,pathname:G,routeId:K});return He(W,K,gn,{flushSync:Be}),!0}return!1}if(!De&&_e(ce))return;let We=x.fetchers.get(W);Ke(W,qne(ke,We),{flushSync:Be});let Ze=new AbortController,st=Zl(e.history,G,Ze.signal,ke);if(De){let Ht=await Ce(ye,new URL(st.url).pathname,st.signal,W);if(Ht.type==="aborted")return;if(Ht.type==="error"){He(W,K,Ht.error,{flushSync:Be});return}else if(Ht.matches){if(ye=Ht.matches,ce=su(ye,G),_e(ce))return}else{He(W,K,Yr(404,{pathname:G}),{flushSync:Be});return}}T.set(W,Ze);let $t=z,ft=(await Ae("action",x,st,[ce],ye,W))[ce.route.id];if(st.signal.aborted){T.get(W)===Ze&&T.delete(W);return}if(f.v7_fetcherPersist&&U.has(W)){if(rl(ft)||co(ft)){Ke(W,Za(void 0));return}}else{if(rl(ft))if(T.delete(W),j>$t){Ke(W,Za(void 0));return}else return F.add(W),Ke(W,Uc(ke)),we(st,ft,!1,{fetcherSubmission:ke,preventScrollReset:Ve});if(co(ft)){He(W,K,ft.error);return}}if(fi(ft))throw Yr(400,{type:"defer-action"});let _t=x.navigation.location||x.location,Xe=Zl(e.history,_t,Ze.signal),it=s||i,xt=x.navigation.state!=="idle"?qi(it,x.navigation.location,c):x.matches;Xt(xt,"Didn't find any matches after fetcher action");let dt=++z;L.set(W,dt);let mt=Uc(ke,ft.data);x.fetchers.set(W,mt);let[lt,It]=yE(e.history,x,xt,ke,_t,!1,f.v7_skipActionErrorRevalidation,N,M,k,U,A,F,it,c,[ce.route.id,ft]);It.filter(Ht=>Ht.key!==W).forEach(Ht=>{let gn=Ht.key,yn=x.fetchers.get(gn),Dn=Uc(void 0,yn?yn.data:void 0);x.fetchers.set(gn,Dn),Fe(gn),Ht.controller&&T.set(gn,Ht.controller)}),Q({fetchers:new Map(x.fetchers)});let kt=()=>It.forEach(Ht=>Fe(Ht.key));Ze.signal.addEventListener("abort",kt);let{loaderResults:ot,fetcherResults:Qe}=await Le(x,xt,lt,It,Xe);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",kt),L.delete(W),T.delete(W),It.forEach(Ht=>T.delete(Ht.key));let pt=kf(ot);if(pt)return we(Xe,pt.result,!1,{preventScrollReset:Ve});if(pt=kf(Qe),pt)return F.add(pt.key),we(Xe,pt.result,!1,{preventScrollReset:Ve});let{loaderData:Jt,errors:ln}=wE(x,xt,ot,void 0,It,Qe,X);if(x.fetchers.has(W)){let Ht=Za(ft.data);x.fetchers.set(W,Ht)}Oe(dt),x.navigation.state==="loading"&&dt>j?(Xt(E,"Expected pending action"),I&&I.abort(),fe(x.navigation.location,{matches:xt,loaderData:Jt,errors:ln,fetchers:new Map(x.fetchers)})):(Q({errors:ln,loaderData:$E(x.loaderData,Jt,xt,ln),fetchers:new Map(x.fetchers)}),N=!1)}async function Ee(W,K,G,ce,ye,De,Be,Ve,ke){let _e=x.fetchers.get(W);Ke(W,Uc(ke,_e?_e.data:void 0),{flushSync:Be});let We=new AbortController,Ze=Zl(e.history,G,We.signal);if(De){let ft=await Ce(ye,new URL(Ze.url).pathname,Ze.signal,W);if(ft.type==="aborted")return;if(ft.type==="error"){He(W,K,ft.error,{flushSync:Be});return}else if(ft.matches)ye=ft.matches,ce=su(ye,G);else{He(W,K,Yr(404,{pathname:G}),{flushSync:Be});return}}T.set(W,We);let st=z,Ot=(await Ae("loader",x,Ze,[ce],ye,W))[ce.route.id];if(fi(Ot)&&(Ot=await ZC(Ot,Ze.signal,!0)||Ot),T.get(W)===We&&T.delete(W),!Ze.signal.aborted){if(U.has(W)){Ke(W,Za(void 0));return}if(rl(Ot))if(j>st){Ke(W,Za(void 0));return}else{F.add(W),await we(Ze,Ot,!1,{preventScrollReset:Ve});return}if(co(Ot)){He(W,K,Ot.error);return}Xt(!fi(Ot),"Unhandled fetcher deferred data"),Ke(W,Za(Ot.data))}}async function we(W,K,G,ce){let{submission:ye,fetcherSubmission:De,preventScrollReset:Be,replace:Ve}=ce===void 0?{}:ce;K.response.headers.has("X-Remix-Revalidate")&&(N=!0);let ke=K.response.headers.get("Location");Xt(ke,"Expected a Location header on the redirect Response"),ke=SE(ke,new URL(W.url),c,e.history);let _e=ud(x.location,ke,{_isRedirect:!0});if(n){let ft=!1;if(K.response.headers.has("X-Remix-Reload-Document"))ft=!0;else if(JC.test(ke)){const _t=e.history.createURL(ke);ft=_t.origin!==t.location.origin||$c(_t.pathname,c)==null}if(ft){Ve?t.location.replace(ke):t.location.assign(ke);return}}I=null;let We=Ve===!0||K.response.headers.has("X-Remix-Replace")?Qn.Replace:Qn.Push,{formMethod:Ze,formAction:st,formEncType:$t}=x.navigation;!ye&&!De&&Ze&&st&&$t&&(ye=RE(x.navigation));let Ot=ye||De;if(Ine.has(K.response.status)&&Ot&&Wo(Ot.formMethod))await re(We,_e,{submission:In({},Ot,{formAction:ke}),preventScrollReset:Be||O,enableViewTransition:G?P:void 0});else{let ft=Bp(_e,ye);await re(We,_e,{overrideNavigation:ft,fetcherSubmission:De,preventScrollReset:Be||O,enableViewTransition:G?P:void 0})}}async function Ae(W,K,G,ce,ye,De){let Be,Ve={};try{Be=await kne(u,W,K,G,ce,ye,De,a,o)}catch(ke){return ce.forEach(_e=>{Ve[_e.route.id]={type:fn.error,error:ke}}),Ve}for(let[ke,_e]of Object.entries(Be))if(Bne(_e)){let We=_e.result;Ve[ke]={type:fn.redirect,response:Lne(We,G,ke,ye,c,f.v7_relativeSplatPath)}}else Ve[ke]=await zne(_e);return Ve}async function Le(W,K,G,ce,ye){let De=W.matches,Be=Ae("loader",W,ye,G,K,null),Ve=Promise.all(ce.map(async We=>{if(We.matches&&We.match&&We.controller){let st=(await Ae("loader",W,Zl(e.history,We.path,We.controller.signal),[We.match],We.matches,We.key))[We.match.route.id];return{[We.key]:st}}else return Promise.resolve({[We.key]:{type:fn.error,error:Yr(404,{pathname:We.path})}})})),ke=await Be,_e=(await Ve).reduce((We,Ze)=>Object.assign(We,Ze),{});return await Promise.all([Wne(K,ke,ye.signal,De,W.loaderData),Kne(K,_e,ce)]),{loaderResults:ke,fetcherResults:_e}}function Ye(){N=!0,M.push(...Ge()),A.forEach((W,K)=>{T.has(K)&&k.add(K),Fe(K)})}function Ke(W,K,G){G===void 0&&(G={}),x.fetchers.set(W,K),Q({fetchers:new Map(x.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function He(W,K,G,ce){ce===void 0&&(ce={});let ye=Gi(x.matches,K);Me(W),Q({errors:{[ye.route.id]:G},fetchers:new Map(x.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Ue(W){return H.set(W,(H.get(W)||0)+1),U.has(W)&&U.delete(W),x.fetchers.get(W)||Rne}function Me(W){let K=x.fetchers.get(W);T.has(W)&&!(K&&K.state==="loading"&&L.has(W))&&Fe(W),A.delete(W),L.delete(W),F.delete(W),f.v7_fetcherPersist&&U.delete(W),k.delete(W),x.fetchers.delete(W)}function Se(W){let K=(H.get(W)||0)-1;K<=0?(H.delete(W),U.add(W),f.v7_fetcherPersist||Me(W)):H.set(W,K),Q({fetchers:new Map(x.fetchers)})}function Fe(W){let K=T.get(W);K&&(K.abort(),T.delete(W))}function xe(W){for(let K of W){let G=Ue(K),ce=Za(G.data);x.fetchers.set(K,ce)}}function Te(){let W=[],K=!1;for(let G of F){let ce=x.fetchers.get(G);Xt(ce,"Expected fetcher: "+G),ce.state==="loading"&&(F.delete(G),W.push(G),K=!0)}return xe(W),K}function Oe(W){let K=[];for(let[G,ce]of L)if(ce<W){let ye=x.fetchers.get(G);Xt(ye,"Expected fetcher: "+G),ye.state==="loading"&&(Fe(G),L.delete(G),K.push(G))}return xe(K),K.length>0}function Ie(W,K){let G=x.blockers.get(W)||Kc;return ee.get(W)!==K&&ee.set(W,K),G}function je(W){x.blockers.delete(W),ee.delete(W)}function qe(W,K){let G=x.blockers.get(W)||Kc;Xt(G.state==="unblocked"&&K.state==="blocked"||G.state==="blocked"&&K.state==="blocked"||G.state==="blocked"&&K.state==="proceeding"||G.state==="blocked"&&K.state==="unblocked"||G.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+G.state+" -> "+K.state);let ce=new Map(x.blockers);ce.set(W,K),Q({blockers:ce})}function ut(W){let{currentLocation:K,nextLocation:G,historyAction:ce}=W;if(ee.size===0)return;ee.size>1&&Js(!1,"A router only supports one blocker at a time");let ye=Array.from(ee.entries()),[De,Be]=ye[ye.length-1],Ve=x.blockers.get(De);if(!(Ve&&Ve.state==="proceeding")&&Be({currentLocation:K,nextLocation:G,historyAction:ce}))return De}function bt(W){let K=Yr(404,{pathname:W}),G=s||i,{matches:ce,route:ye}=OE(G);return Ge(),{notFoundMatches:ce,route:ye,error:K}}function Ge(W){let K=[];return X.forEach((G,ce)=>{(!W||W(ce))&&(G.cancel(),K.push(ce),X.delete(ce))}),K}function tt(W,K,G){if(h=W,p=K,y=G||null,!g&&x.navigation===Ap){g=!0;let ce=ae(x.location,x.matches);ce!=null&&Q({restoreScrollPosition:ce})}return()=>{h=null,p=null,y=null}}function rt(W,K){return y&&y(W,K.map(ce=>ine(ce,x.loaderData)))||W.key}function V(W,K){if(h&&p){let G=rt(W,K);h[G]=p()}}function ae(W,K){if(h){let G=rt(W,K),ce=h[G];if(typeof ce=="number")return ce}return null}function me(W,K,G){if(d)if(W){if(Object.keys(W[0].params).length>0)return{active:!0,matches:mm(K,G,c,!0)}}else return{active:!0,matches:mm(K,G,c,!0)||[]};return{active:!1,matches:null}}async function Ce(W,K,G,ce){if(!d)return{type:"success",matches:W};let ye=W;for(;;){let De=s==null,Be=s||i,Ve=a;try{await d({signal:G,path:K,matches:ye,fetcherKey:ce,patch:(We,Ze)=>{G.aborted||CE(We,Ze,Be,Ve,o)}})}catch(We){return{type:"error",error:We,partialMatches:ye}}finally{De&&!G.aborted&&(i=[...i])}if(G.aborted)return{type:"aborted"};let ke=qi(Be,K,c);if(ke)return{type:"success",matches:ke};let _e=mm(Be,K,c,!0);if(!_e||ye.length===_e.length&&ye.every((We,Ze)=>We.route.id===_e[Ze].route.id))return{type:"success",matches:null};ye=_e}}function pe(W){a={},s=mv(W,o,void 0,a)}function Re(W,K){let G=s==null;CE(W,K,s||i,a,o),G&&(i=[...i],Q({}))}return $={get basename(){return c},get future(){return f},get state(){return x},get routes(){return i},get window(){return t},initialize:oe,subscribe:se,enableScrollRestoration:tt,navigate:de,fetch:ve,revalidate:ie,createHref:W=>e.history.createHref(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:Ue,deleteFetcher:Se,dispose:ue,getBlocker:Ie,deleteBlocker:je,patchRoutes:Re,_internalFetchControllers:T,_internalActiveDeferreds:X,_internalSetRoutes:pe},$}function Nne(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gb(e,t,n,r,o,a,i,s){let c,u;if(i){c=[];for(let f of t)if(c.push(f),f.route.id===i){u=f;break}}else c=t,u=t[t.length-1];let d=eg(o||".",Zh(c,a),$c(e.pathname,n)||e.pathname,s==="path");if(o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u){let f=eS(d.search);if(u.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let m=new URLSearchParams(d.search),v=m.getAll("index");m.delete("index"),v.filter(y=>y).forEach(y=>m.append("index",y));let h=m.toString();d.search=h?"?"+h:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:ja([n,d.pathname])),xl(d)}function gE(e,t,n,r){if(!r||!Nne(r))return{path:n};if(r.formMethod&&!Vne(r.formMethod))return{path:n,error:Yr(405,{method:r.formMethod})};let o=()=>({path:n,error:Yr(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=BN(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Wo(i))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,h)=>{let[y,p]=h;return""+v+y+"="+p+`
453
+ `},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Wo(i))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}Xt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=yb(r.formData),u=r.formData;else if(r.body instanceof FormData)c=yb(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=xE(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=xE(c)}catch{return o()}let d={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Wo(d.formMethod))return{path:n,submission:d};let f=ji(n);return t&&f.search&&eS(f.search)&&c.append("index",""),f.search="?"+c,{path:xl(f),submission:d}}function pE(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function yE(e,t,n,r,o,a,i,s,c,u,d,f,m,v,h,y){let p=y?co(y[1])?y[1].error:y[1].data:void 0,g=e.createURL(t.location),C=e.createURL(o),b=n;a&&t.errors?b=pE(n,Object.keys(t.errors)[0],!0):y&&co(y[1])&&(b=pE(n,y[0]));let S=y?y[1].statusCode:void 0,w=i&&S&&S>=400,$=b.filter((E,O)=>{let{route:I}=E;if(I.lazy)return!0;if(I.loader==null)return!1;if(a)return pb(I,t.loaderData,t.errors);if(_ne(t.loaderData,t.matches[O],E)||c.some(D=>D===E.route.id))return!0;let P=t.matches[O],_=E;return bE(E,In({currentUrl:g,currentParams:P.params,nextUrl:C,nextParams:_.params},r,{actionResult:p,actionStatus:S,defaultShouldRevalidate:w?!1:s||g.pathname+g.search===C.pathname+C.search||g.search!==C.search||FN(P,_)}))}),x=[];return f.forEach((E,O)=>{if(a||!n.some(R=>R.route.id===E.routeId)||d.has(O))return;let I=qi(v,E.path,h);if(!I){x.push({key:O,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get(O),_=su(I,E.path),D=!1;m.has(O)?D=!1:u.has(O)?(u.delete(O),D=!0):P&&P.state!=="idle"&&P.data===void 0?D=s:D=bE(_,In({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:p,actionStatus:S,defaultShouldRevalidate:w?!1:s})),D&&x.push({key:O,routeId:E.routeId,path:E.path,matches:I,match:_,controller:new AbortController})}),[$,x]}function pb(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function _ne(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function FN(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function bE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function CE(e,t,n,r,o){var a;let i;if(e){let u=r[e];Xt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=n;let s=t.filter(u=>!i.some(d=>AN(u,d))),c=mv(s,o,[e||"_","patch",String(((a=i)==null?void 0:a.length)||"0")],r);i.push(...c)}function AN(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(a=>AN(n,a))}):!1}async function Tne(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Xt(o,"No route found in manifest");let a={};for(let i in r){let c=o[i]!==void 0&&i!=="hasErrorBoundary";Js(!c,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!one.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,In({},t(o),{lazy:void 0}))}async function Dne(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,a,i)=>Object.assign(o,{[n[i].route.id]:a}),{})}async function kne(e,t,n,r,o,a,i,s,c,u){let d=a.map(v=>v.route.lazy?Tne(v.route,c,s):void 0),f=a.map((v,h)=>{let y=d[h],p=o.some(C=>C.route.id===v.route.id);return In({},v,{shouldLoad:p,resolve:async C=>(C&&r.method==="GET"&&(v.route.lazy||v.route.loader)&&(p=!0),p?jne(t,r,v,y,C,u):Promise.resolve({type:fn.data,result:void 0}))})}),m=await e({matches:f,request:r,params:a[0].params,fetcherKey:i,context:u});try{await Promise.all(d)}catch{}return m}async function jne(e,t,n,r,o,a){let i,s,c=u=>{let d,f=new Promise((h,y)=>d=y);s=()=>d(),t.signal.addEventListener("abort",s);let m=h=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:a},...h!==void 0?[h]:[]),v=(async()=>{try{return{type:"data",result:await(o?o(y=>m(y)):m())}}catch(h){return{type:"error",result:h}}})();return Promise.race([v,f])};try{let u=n.route[e];if(r)if(u){let d,[f]=await Promise.all([c(u).catch(m=>{d=m}),r]);if(d!==void 0)throw d;i=f}else if(await r,u=n.route[e],u)i=await c(u);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Yr(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:fn.data,result:void 0};else if(u)i=await c(u);else{let d=new URL(t.url),f=d.pathname+d.search;throw Yr(404,{pathname:f})}Xt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:fn.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function zne(e){let{result:t,type:n}=e;if(HN(t)){let f;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(m){return{type:fn.error,error:m}}return n===fn.error?{type:fn.error,error:new vv(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:fn.data,data:f,statusCode:t.status,headers:t.headers}}if(n===fn.error){if(IE(t)){var r,o;if(t.data instanceof Error){var a,i;return{type:fn.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:fn.error,error:new vv(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:dd(t)?t.status:void 0,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:fn.error,error:t,statusCode:dd(t)?t.status:void 0}}if(Hne(t)){var s,c;return{type:fn.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((c=t.init)==null?void 0:c.headers)&&new Headers(t.init.headers)}}if(IE(t)){var u,d;return{type:fn.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:fn.data,data:t}}function Lne(e,t,n,r,o,a){let i=e.headers.get("Location");if(Xt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!JC.test(i)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=gb(new URL(t.url),s,o,!0,i,a),e.headers.set("Location",i)}return e}function SE(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(JC.test(e)){let a=e,i=a.startsWith("//")?new URL(t.protocol+a):new URL(a);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let s=$c(i.pathname,n)!=null;if(i.origin===t.origin&&s)return QC(i.pathname)+i.search+i.hash}try{let a=r.createURL(e);if(o.includes(a.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Zl(e,t,n,r){let o=e.createURL(BN(t)).toString(),a={signal:n};if(r&&Wo(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=yb(r.formData):a.body=r.formData}return new Request(o,a)}function yb(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function xE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Fne(e,t,n,r,o){let a={},i=null,s,c=!1,u={},d=n&&co(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let m=f.route.id,v=t[m];if(Xt(!rl(v),"Cannot handle redirect results in processLoaderData"),co(v)){let h=v.error;d!==void 0&&(h=d,d=void 0),i=i||{};{let y=Gi(e,m);i[y.route.id]==null&&(i[y.route.id]=h)}a[m]=void 0,c||(c=!0,s=dd(v.error)?v.error.status:500),v.headers&&(u[m]=v.headers)}else fi(v)?(r.set(m,v.deferredData),a[m]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!c&&(s=v.statusCode),v.headers&&(u[m]=v.headers)):(a[m]=v.data,v.statusCode&&v.statusCode!==200&&!c&&(s=v.statusCode),v.headers&&(u[m]=v.headers))}),d!==void 0&&n&&(i={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:u}}function wE(e,t,n,r,o,a,i){let{loaderData:s,errors:c}=Fne(t,n,r,i);return o.forEach(u=>{let{key:d,match:f,controller:m}=u,v=a[d];if(Xt(v,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(co(v)){let h=Gi(e.matches,f==null?void 0:f.route.id);c&&c[h.route.id]||(c=In({},c,{[h.route.id]:v.error})),e.fetchers.delete(d)}else if(rl(v))Xt(!1,"Unhandled fetcher revalidation redirect");else if(fi(v))Xt(!1,"Unhandled fetcher deferred data");else{let h=Za(v.data);e.fetchers.set(d,h)}}),{loaderData:s,errors:c}}function $E(e,t,n,r){let o=In({},t);for(let a of n){let i=a.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(o[i]=t[i]):e[i]!==void 0&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function EE(e){return e?co(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function OE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Yr(e,t){let{pathname:n,routeId:r,method:o,type:a,message:i}=t===void 0?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",c='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new vv(e||500,s,new Error(c),!0)}function kf(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(rl(o))return{key:r,result:o}}}function BN(e){let t=typeof e=="string"?ji(e):e;return xl(In({},t,{hash:""}))}function Ane(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bne(e){return HN(e.result)&&One.has(e.result.status)}function fi(e){return e.type===fn.deferred}function co(e){return e.type===fn.error}function rl(e){return(e&&e.type)===fn.redirect}function IE(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Hne(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function HN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Vne(e){return Ene.has(e.toLowerCase())}function Wo(e){return wne.has(e.toLowerCase())}async function Wne(e,t,n,r,o){let a=Object.entries(t);for(let i=0;i<a.length;i++){let[s,c]=a[i],u=e.find(m=>(m==null?void 0:m.route.id)===s);if(!u)continue;let d=r.find(m=>m.route.id===u.route.id),f=d!=null&&!FN(d,u)&&(o&&o[u.route.id])!==void 0;fi(c)&&f&&await ZC(c,n,!1).then(m=>{m&&(t[s]=m)})}}async function Kne(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:a,controller:i}=n[r],s=t[o];e.find(u=>(u==null?void 0:u.route.id)===a)&&fi(s)&&(Xt(i,"Expected an AbortController for revalidating fetcher deferred result"),await ZC(s,i.signal,!0).then(u=>{u&&(t[o]=u)}))}}async function ZC(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:fn.data,data:e.deferredData.unwrappedData}}catch(o){return{type:fn.error,error:o}}return{type:fn.data,data:e.deferredData.data}}}function eS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function su(e,t){let n=typeof t=="string"?ji(t).search:t.search;if(e[e.length-1].route.index&&eS(n||""))return e[e.length-1];let r=jN(e);return r[r.length-1]}function RE(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Bp(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Une(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Uc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function qne(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Za(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Gne(e,t){try{let n=e.sessionStorage.getItem(LN);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Yne(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(LN,JSON.stringify(n))}catch(r){Js(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
454
+ * React Router v6.30.6
455
+ *
456
+ * Copyright (c) Remix Software Inc.
457
+ *
458
+ * This source code is licensed under the MIT license found in the
459
+ * LICENSE.md file in the root directory of this source tree.
460
+ *
461
+ * @license MIT
462
+ */function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hv.apply(null,arguments)}const tg=l.createContext(null),VN=l.createContext(null),zi=l.createContext(null),tS=l.createContext(null),Ea=l.createContext({outlet:null,matches:[],isDataRoute:!1}),WN=l.createContext(null);function Xne(e,t){let{relative:n}=t===void 0?{}:t;Ec()||Xt(!1);let{basename:r,navigator:o}=l.useContext(zi),{hash:a,pathname:i,search:s}=qN(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:ja([r,i])),o.createHref({pathname:c,search:s,hash:a})}function Ec(){return l.useContext(tS)!=null}function Oc(){return Ec()||Xt(!1),l.useContext(tS).location}function KN(e){l.useContext(zi).static||l.useLayoutEffect(e)}function ng(){let{isDataRoute:e}=l.useContext(Ea);return e?ure():Qne()}function Qne(){Ec()||Xt(!1);let e=l.useContext(tg),{basename:t,future:n,navigator:r}=l.useContext(zi),{matches:o}=l.useContext(Ea),{pathname:a}=Oc(),i=JSON.stringify(Zh(o,n.v7_relativeSplatPath)),s=l.useRef(!1);return KN(()=>{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=eg(u,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ja([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}const Jne=l.createContext(null);function Zne(e){let t=l.useContext(Ea).outlet;return t&&l.createElement(Jne.Provider,{value:e},t)}function UN(){let{matches:e}=l.useContext(Ea),t=e[e.length-1];return t?t.params:{}}function qN(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(zi),{matches:o}=l.useContext(Ea),{pathname:a}=Oc(),i=JSON.stringify(Zh(o,r.v7_relativeSplatPath));return l.useMemo(()=>eg(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function ere(e,t,n,r){Ec()||Xt(!1);let{navigator:o}=l.useContext(zi),{matches:a}=l.useContext(Ea),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Oc(),d;d=u;let f=d.pathname||"/",m=f;if(c!=="/"){let y=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=qi(e,{pathname:m});return are(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:ja([c,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:ja([c,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,n,r)}function tre(){let e=cre(),t=dd(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,null)}const nre=l.createElement(tre,null);class rre extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(Ea.Provider,{value:this.props.routeContext},l.createElement(WN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ore(e){let{routeContext:t,match:n,children:r}=e,o=l.useContext(tg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(Ea.Provider,{value:t},r)}function are(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Xt(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:v}=n,h=f.route.loader&&m[f.route.id]===void 0&&(!v||v[f.route.id]===void 0);if(f.route.lazy||h){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let v,h=!1,y=null,p=null;n&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||nre,c&&(u<0&&m===0?(dre("route-fallback"),h=!0,p=null):u===m&&(h=!0,p=f.route.hydrateFallbackElement||null)));let g=t.concat(i.slice(0,m+1)),C=()=>{let b;return v?b=y:h?b=p:f.route.Component?b=l.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,l.createElement(ore,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?l.createElement(rre,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:C(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):C()},null)}var GN=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(GN||{}),YN=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(YN||{});function ire(e){let t=l.useContext(tg);return t||Xt(!1),t}function lre(e){let t=l.useContext(VN);return t||Xt(!1),t}function sre(e){let t=l.useContext(Ea);return t||Xt(!1),t}function XN(e){let t=sre(),n=t.matches[t.matches.length-1];return n.route.id||Xt(!1),n.route.id}function cre(){var e;let t=l.useContext(WN),n=lre(YN.UseRouteError),r=XN();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ure(){let{router:e}=ire(GN.UseNavigateStable),t=XN(),n=l.useRef(!1);return KN(()=>{n.current=!0}),l.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,hv({fromRouteId:t},a)))},[e,t])}const PE={};function dre(e,t,n){PE[e]||(PE[e]=!0)}function fre(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function mre(e){let{to:t,replace:n,state:r,relative:o}=e;Ec()||Xt(!1);let{future:a,static:i}=l.useContext(zi),{matches:s}=l.useContext(Ea),{pathname:c}=Oc(),u=ng(),d=eg(t,Zh(s,a.v7_relativeSplatPath),c,o==="path"),f=JSON.stringify(d);return l.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function vre(e){return Zne(e.context)}function hre(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qn.Pop,navigator:a,static:i=!1,future:s}=e;Ec()&&Xt(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:a,static:i,future:hv({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof r=="string"&&(r=ji(r));let{pathname:d="/",search:f="",hash:m="",state:v=null,key:h="default"}=r,y=l.useMemo(()=>{let p=$c(d,c);return p==null?null:{location:{pathname:p,search:f,hash:m,state:v,key:h},navigationType:o}},[c,d,f,m,v,h,o]);return y==null?null:l.createElement(zi.Provider,{value:u},l.createElement(tS.Provider,{children:n,value:y}))}new Promise(()=>{});function gre(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
463
+ * React Router DOM v6.30.6
464
+ *
465
+ * Copyright (c) Remix Software Inc.
466
+ *
467
+ * This source code is licensed under the MIT license found in the
468
+ * LICENSE.md file in the root directory of this source tree.
469
+ *
470
+ * @license MIT
471
+ */function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fd.apply(null,arguments)}function pre(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yre(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bre(e,t){return e.button===0&&(!t||t==="_self")&&!yre(e)}const Cre=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Sre="6";try{window.__reactRouterVersion=Sre}catch{}function xre(e,t){return Mne({basename:void 0,future:fd({},void 0,{v7_prependBasename:!0}),history:tne({window:void 0}),hydrationData:wre(),routes:e,mapRouteProperties:gre,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function wre(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=fd({},t,{errors:$re(t.errors)})),t}function $re(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new vv(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}const Ere=l.createContext({isTransitioning:!1}),Ore=l.createContext(new Map),Ire="startTransition",ME=hd[Ire],Rre="flushSync",NE=II[Rre];function Pre(e){ME?ME(e):e()}function qc(e){NE?NE(e):e()}class Mre{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Nre(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=l.useState(n.state),[i,s]=l.useState(),[c,u]=l.useState({isTransitioning:!1}),[d,f]=l.useState(),[m,v]=l.useState(),[h,y]=l.useState(),p=l.useRef(new Map),{v7_startTransition:g}=r||{},C=l.useCallback(E=>{g?Pre(E):E()},[g]),b=l.useCallback((E,O)=>{let{deletedFetchers:I,flushSync:P,viewTransitionOpts:_}=O;E.fetchers.forEach((R,N)=>{R.data!==void 0&&p.current.set(N,R.data)}),I.forEach(R=>p.current.delete(R));let D=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!_||D){P?qc(()=>a(E)):C(()=>a(E));return}if(P){qc(()=>{m&&(d&&d.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let R=n.window.document.startViewTransition(()=>{qc(()=>a(E))});R.finished.finally(()=>{qc(()=>{f(void 0),v(void 0),s(void 0),u({isTransitioning:!1})})}),qc(()=>v(R));return}m?(d&&d.resolve(),m.skipTransition(),y({state:E,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(s(E),u({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[n.window,m,d,p,C]);l.useLayoutEffect(()=>n.subscribe(b),[n,b]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new Mre)},[c]),l.useEffect(()=>{if(d&&i&&n.window){let E=i,O=d.promise,I=n.window.document.startViewTransition(async()=>{C(()=>a(E)),await O});I.finished.finally(()=>{f(void 0),v(void 0),s(void 0),u({isTransitioning:!1})}),v(I)}},[C,i,d,n.window]),l.useEffect(()=>{d&&i&&o.location.key===i.location.key&&d.resolve()},[d,m,o.location,i]),l.useEffect(()=>{!c.isTransitioning&&h&&(s(h.state),u({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),y(void 0))},[c.isTransitioning,h]),l.useEffect(()=>{},[]);let S=l.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,O,I)=>n.navigate(E,{state:O,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(E,O,I)=>n.navigate(E,{replace:!0,state:O,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),w=n.basename||"/",$=l.useMemo(()=>({router:n,navigator:S,static:!1,basename:w}),[n,S,w]),x=l.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return l.useEffect(()=>fre(r,n.future),[r,n.future]),l.createElement(l.Fragment,null,l.createElement(tg.Provider,{value:$},l.createElement(VN.Provider,{value:o},l.createElement(Ore.Provider,{value:p.current},l.createElement(Ere.Provider,{value:c},l.createElement(hre,{basename:w,location:o.location,navigationType:o.historyAction,navigator:S,future:x},o.initialized||n.future.v7_partialHydration?l.createElement(_re,{routes:n.routes,future:n.future,state:o}):t))))),null)}const _re=l.memo(Tre);function Tre(e){let{routes:t,future:n,state:r}=e;return ere(t,void 0,r,n)}const Dre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_E=l.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,m=pre(t,Cre),{basename:v}=l.useContext(zi),h,y=!1;if(typeof u=="string"&&kre.test(u)&&(h=u,Dre))try{let b=new URL(window.location.href),S=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=$c(S.pathname,v);S.origin===b.origin&&w!=null?u=w+S.search+S.hash:y=!0}catch{}let p=Xne(u,{relative:o}),g=jre(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:o,viewTransition:f});function C(b){r&&r(b),b.defaultPrevented||g(b)}return l.createElement("a",fd({},m,{href:h||p,onClick:y||a?r:C,ref:n,target:c}))});var TE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(TE||(TE={}));var DE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DE||(DE={}));function jre(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,viewTransition:s}=t===void 0?{}:t,c=ng(),u=Oc(),d=qN(e,{relative:i});return l.useCallback(f=>{if(bre(f,n)){f.preventDefault();let m=r!==void 0?r:xl(u)===xl(d);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,viewTransition:s})}},[u,c,d,r,o,n,e,a,i,s])}var zre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Lre=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:zre}))},Fre=l.forwardRef(Lre),Are={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Bre=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Are}))},nS=l.forwardRef(Bre),Hre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Vre=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Hre}))},rS=l.forwardRef(Vre),Wre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},Kre=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Wre}))},Ure=l.forwardRef(Kre),qre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},Gre=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:qre}))},Yre=l.forwardRef(Gre),Xre={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Qre=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Xre}))},Jre=l.forwardRef(Qre),Zre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},eoe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Zre}))},QN=l.forwardRef(eoe),toe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"}}]},name:"diff",theme:"outlined"},noe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:toe}))},roe=l.forwardRef(noe),ooe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},aoe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:ooe}))},JN=l.forwardRef(aoe),ioe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},loe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:ioe}))},soe=l.forwardRef(loe),coe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},uoe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:coe}))},doe=l.forwardRef(uoe),foe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},moe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:foe}))},kE=l.forwardRef(moe),voe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"left-square",theme:"outlined"},hoe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:voe}))},goe=l.forwardRef(hoe),poe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},yoe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:poe}))},boe=l.forwardRef(yoe),Coe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Soe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Coe}))},jE=l.forwardRef(Soe),xoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z"}}]},name:"number",theme:"outlined"},woe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:xoe}))},$oe=l.forwardRef(woe),Eoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"right-square",theme:"outlined"},Ooe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Eoe}))},Ioe=l.forwardRef(Ooe),Roe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Poe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Roe}))},Moe=l.forwardRef(Poe),Noe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},_oe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Noe}))},Toe=l.forwardRef(_oe),Doe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]},name:"sort-ascending",theme:"outlined"},koe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Doe}))},zE=l.forwardRef(koe),joe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM310.3 167.1a8 8 0 00-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z"}}]},name:"sort-descending",theme:"outlined"},zoe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:joe}))},LE=l.forwardRef(zoe),Loe={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 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},Foe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Loe}))},md=l.forwardRef(Foe),Aoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},Boe=function(t,n){return l.createElement(Mt,be({},t,{ref:n,icon:Aoe}))},Hoe=l.forwardRef(Boe);const Voe=({isDirty:e,isReadOnly:t,isSaving:n,onSave:r,onShowDiff:o,detailPanelVisible:a,onToggleDetailPanel:i,singleMode:s=!1,singleDataset:c=null})=>{const d=Oc().pathname==="/",f=s||!d;return ne.jsxs("header",{className:"app-header",children:[ne.jsx("div",{className:"app-header-left",children:s?ne.jsxs("div",{className:"logo single-mode-title",children:[ne.jsx(md,{}),ne.jsx("span",{children:(c==null?void 0:c.title)||"Dataset"})]}):ne.jsxs(ne.Fragment,{children:[ne.jsxs(_E,{to:"/",className:"logo",children:[ne.jsx(QN,{}),ne.jsx("span",{children:"CSVMS"})]}),!d&&ne.jsx(xr,{title:"ホームに戻る",children:ne.jsx(_E,{to:"/",children:ne.jsx(Fn,{type:"text",icon:ne.jsx(soe,{}),children:"Home"})})})]})}),ne.jsx("div",{className:"app-header-right",children:ne.jsxs(Ri,{size:"middle",children:[e&&ne.jsx(Ln,{color:"warning",icon:ne.jsx(JN,{}),children:"未保存の変更があります"}),t&&ne.jsx(Ln,{color:"default",icon:ne.jsx(boe,{}),children:"読み取り専用"}),f&&ne.jsxs(ne.Fragment,{children:[ne.jsx(xr,{title:"変更内容を確認",children:ne.jsx(Fn,{icon:ne.jsx(roe,{}),onClick:o,disabled:!e,children:"差分確認"})}),ne.jsx(Fn,{type:"primary",icon:ne.jsx(Moe,{}),onClick:r,disabled:t||!e,loading:n,children:"保存"}),ne.jsx(xr,{title:a?"詳細パネルを閉じる":"詳細パネルを開く",children:ne.jsx(Fn,{icon:a?ne.jsx(Ioe,{}):ne.jsx(goe,{}),onClick:i})})]})]})})]})},{Sider:Woe}=Ha,Koe=({collapsed:e,onCollapse:t,datasets:n,currentId:r})=>{const o=ng(),a=n.map(i=>({key:i.id,icon:ne.jsx(md,{}),label:e?ne.jsx(xr,{title:`${i.title} (${i.rowCount})`,placement:"right",children:ne.jsx("span",{children:i.title})}):ne.jsx("div",{className:"sidebar-item-content",children:ne.jsxs("span",{children:[i.title,ne.jsxs("span",{style:{color:"rgba(255,255,255,0.45)",marginLeft:4},children:["(",i.rowCount,")"]})]})})}));return ne.jsxs(Woe,{className:"app-sider",collapsible:!0,collapsed:e,onCollapse:t,width:220,collapsedWidth:60,theme:"dark",children:[ne.jsx("div",{style:{padding:"16px 8px",textAlign:"center"},children:!e&&ne.jsx("span",{style:{color:"rgba(255,255,255,0.65)",fontSize:12},children:"Datasets"})}),ne.jsx(Dl,{theme:"dark",mode:"inline",selectedKeys:r?[r]:[],onClick:({key:i})=>o(`/datasets/${i}`),items:a})]})},{Text:FE}=wc,AE=(e,t,n)=>n.every(r=>{const o=e[r.key],a=t[r.key];return(o===""||o===void 0||o===null)&&(a===""||a===void 0||a===null)?!0:String(o)===String(a)}),BE=(e,t,n)=>n.filter(r=>{const o=e[r.key],a=t[r.key];return(o===""||o===void 0||o===null)&&(a===""||a===void 0||a===null)?!1:String(o)!==String(a)}).map(r=>r.key),Uoe=(e,t,n,r)=>{const o=[];if(r){const a=new Map;e.forEach((s,c)=>{const u=String(s[r]??"");u&&a.set(u,{row:s,index:c})});const i=new Map;t.forEach((s,c)=>{const u=String(s[r]??"");u&&i.set(u,{row:s,index:c})}),a.forEach((s,c)=>{i.has(c)||o.push({type:"removed",rowIndex:s.index,originalRow:s.row})}),t.forEach((s,c)=>{const u=String(s[r]??""),d=u?a.get(u):null;!d||!u?o.push({type:"added",rowIndex:c,currentRow:s}):AE(d.row,s,n)||o.push({type:"modified",rowIndex:c,originalRow:d.row,currentRow:s,changedColumns:BE(d.row,s,n)})})}else{const a=Math.max(e.length,t.length);for(let i=0;i<a;i++){const s=e[i],c=t[i];!s&&c?o.push({type:"added",rowIndex:i,currentRow:c}):s&&!c?o.push({type:"removed",rowIndex:i,originalRow:s}):s&&c&&!AE(s,c,n)&&o.push({type:"modified",rowIndex:i,originalRow:s,currentRow:c,changedColumns:BE(s,c,n)})}}return o.sort((a,i)=>a.rowIndex-i.rowIndex)},jf=e=>e==null||e===""?"(空)":typeof e=="boolean"?e?"true":"false":String(e),qoe=({open:e,onClose:t,columns:n,originalRows:r,currentRows:o,primaryKey:a})=>{const i=l.useMemo(()=>Uoe(r,o,n,a),[r,o,n,a]),s=l.useMemo(()=>({added:i.filter(f=>f.type==="added").length,removed:i.filter(f=>f.type==="removed").length,modified:i.filter(f=>f.type==="modified").length}),[i]),c=s.added>0||s.removed>0||s.modified>0,u=l.useMemo(()=>{const f=n.find(v=>v.key===a),m=n.filter(v=>v.key!==a).slice(0,4);return f?[f,...m]:n.slice(0,5)},[n,a]),d=f=>{const{type:m,rowIndex:v,originalRow:h,currentRow:y,changedColumns:p}=f,C={added:{color:"#52c41a",bg:"#f6ffed",label:"追加",icon:ne.jsx(lv,{})},removed:{color:"#ff4d4f",bg:"#fff2f0",label:"削除",icon:ne.jsx(jE,{})},modified:{color:"#faad14",bg:"#fffbe6",label:"変更",icon:ne.jsx(fv,{})}}[m],b=y||h;return ne.jsxs("div",{style:{marginBottom:12,border:`1px solid ${C.color}`,borderRadius:8,overflow:"hidden"},children:[ne.jsxs("div",{style:{background:C.bg,padding:"8px 12px",borderBottom:`1px solid ${C.color}`,display:"flex",alignItems:"center",gap:8},children:[ne.jsx(Ln,{color:m==="added"?"success":m==="removed"?"error":"warning",icon:C.icon,children:C.label}),ne.jsxs(FE,{type:"secondary",children:["行 ",v+1]}),a&&b&&ne.jsxs(FE,{strong:!0,style:{marginLeft:8},children:[a,": ",jf(b[a])]})]}),ne.jsx("div",{style:{padding:12},children:m==="modified"&&h&&y&&p?ne.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[ne.jsx("thead",{children:ne.jsxs("tr",{children:[ne.jsx("th",{style:{textAlign:"left",padding:"4px 8px",borderBottom:"1px solid #f0f0f0",width:120},children:"カラム"}),ne.jsx("th",{style:{textAlign:"left",padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#fff2f0"},children:"変更前"}),ne.jsx("th",{style:{textAlign:"left",padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#f6ffed"},children:"変更後"})]})}),ne.jsx("tbody",{children:p.map(S=>{const w=n.find($=>$.key===S);return ne.jsxs("tr",{children:[ne.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",fontWeight:500},children:(w==null?void 0:w.label)||S}),ne.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#fff2f0",color:"#ff4d4f"},children:jf(h[S])}),ne.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",background:"#f6ffed",color:"#52c41a"},children:jf(y[S])})]},S)})})]}):ne.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:ne.jsxs("tbody",{children:[u.map(S=>ne.jsxs("tr",{children:[ne.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0",fontWeight:500,width:120},children:S.label}),ne.jsx("td",{style:{padding:"4px 8px",borderBottom:"1px solid #f0f0f0"},children:jf(b==null?void 0:b[S.key])})]},S.key)),n.length>u.length&&ne.jsx("tr",{children:ne.jsxs("td",{colSpan:2,style:{padding:"4px 8px",color:"#999",fontStyle:"italic"},children:["...他 ",n.length-u.length," カラム"]})})]})})})]},`${m}-${v}`)};return ne.jsxs(ia,{title:"変更内容の確認",open:e,onCancel:t,footer:null,width:700,styles:{body:{maxHeight:"70vh",overflow:"auto"}},children:[ne.jsx("div",{style:{marginBottom:16},children:ne.jsxs(Ri,{size:"middle",children:[s.added>0&&ne.jsxs(Ln,{icon:ne.jsx(lv,{}),color:"success",children:["追加: ",s.added,"行"]}),s.removed>0&&ne.jsxs(Ln,{icon:ne.jsx(jE,{}),color:"error",children:["削除: ",s.removed,"行"]}),s.modified>0&&ne.jsxs(Ln,{icon:ne.jsx(fv,{}),color:"warning",children:["変更: ",s.modified,"行"]}),!c&&ne.jsx(Ln,{color:"default",children:"変更なし"})]})}),c?ne.jsx("div",{children:i.map(d)}):ne.jsx(Io,{description:"変更はありません",style:{padding:40}})]})},Goe={},HE=e=>{let t;const n=new Set,r=(d,f)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const v=t;t=f??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(h=>h(t,v))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(Goe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},Yoe=e=>e?HE(e):HE;var ZN={exports:{}},e_={},t_={exports:{}},n_={};/**
472
+ * @license React
473
+ * use-sync-external-store-shim.production.js
474
+ *
475
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
476
+ *
477
+ * This source code is licensed under the MIT license found in the
478
+ * LICENSE file in the root directory of this source tree.
479
+ */var Zs=l;function Xoe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qoe=typeof Object.is=="function"?Object.is:Xoe,Joe=Zs.useState,Zoe=Zs.useEffect,eae=Zs.useLayoutEffect,tae=Zs.useDebugValue;function nae(e,t){var n=t(),r=Joe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return eae(function(){o.value=n,o.getSnapshot=t,Hp(o)&&a({inst:o})},[e,n,t]),Zoe(function(){return Hp(o)&&a({inst:o}),e(function(){Hp(o)&&a({inst:o})})},[e]),tae(n),n}function Hp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qoe(e,n)}catch{return!0}}function rae(e,t){return t()}var oae=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rae:nae;n_.useSyncExternalStore=Zs.useSyncExternalStore!==void 0?Zs.useSyncExternalStore:oae;t_.exports=n_;var aae=t_.exports;/**
480
+ * @license React
481
+ * use-sync-external-store-shim/with-selector.production.js
482
+ *
483
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
484
+ *
485
+ * This source code is licensed under the MIT license found in the
486
+ * LICENSE file in the root directory of this source tree.
487
+ */var rg=l,iae=aae;function lae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sae=typeof Object.is=="function"?Object.is:lae,cae=iae.useSyncExternalStore,uae=rg.useRef,dae=rg.useEffect,fae=rg.useMemo,mae=rg.useDebugValue;e_.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=uae(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=fae(function(){function c(v){if(!u){if(u=!0,d=v,v=r(v),o!==void 0&&i.hasValue){var h=i.value;if(o(h,v))return f=h}return f=v}if(h=f,sae(d,v))return h;var y=r(v);return o!==void 0&&o(h,y)?(d=v,h):(d=v,f=y)}var u=!1,d,f,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var s=cae(e,a[0],a[1]);return dae(function(){i.hasValue=!0,i.value=s},[s]),mae(s),s};ZN.exports=e_;var vae=ZN.exports;const hae=ho(vae),r_={},{useDebugValue:gae}=le,{useSyncExternalStoreWithSelector:pae}=hae;let VE=!1;const yae=e=>e;function bae(e,t=yae,n){(r_?"production":void 0)!=="production"&&n&&!VE&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),VE=!0);const r=pae(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return gae(r),r}const WE=e=>{(r_?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Yoe(e):e,n=(r,o)=>bae(t,r,o);return Object.assign(n,t),n},o_=e=>e?WE(e):WE;class bb extends Error{constructor(n,r,o){const a=n.status||n.status===0?n.status:"",i=n.statusText??"",s=`${a} ${i}`.trim(),c=s?`status code ${s}`:"an unknown error";super(`Request failed with ${c}: ${r.method} ${r.url}`);ro(this,"response");ro(this,"request");ro(this,"options");this.name="HTTPError",this.response=n,this.request=r,this.options=o}}class a_ extends Error{constructor(n){let r="Non-error value was thrown";try{typeof n=="string"?r=n:n&&typeof n=="object"&&"message"in n&&typeof n.message=="string"&&(r=n.message)}catch{}super(r);ro(this,"name","NonError");ro(this,"value");this.value=n}}class Vp extends Error{constructor(n){const r=n!=null&&n.cause?n.cause instanceof Error?n.cause:new a_(n.cause):void 0;super(n!=null&&n.code?`Forced retry: ${n.code}`:"Forced retry",r?{cause:r}:void 0);ro(this,"name","ForceRetryError");ro(this,"customDelay");ro(this,"code");ro(this,"customRequest");this.customDelay=n==null?void 0:n.delay,this.code=n==null?void 0:n.code,this.customRequest=n==null?void 0:n.request}}const KE=(()=>{let e=!1,t=!1;const n=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";if(n&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&o.message==="unsupported BodyInit type")return!1;throw o}return e&&!t})(),Cae=typeof globalThis.AbortController=="function",i_=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",Sae=typeof globalThis.ReadableStream=="function",xae=typeof globalThis.FormData=="function",l_=["get","post","put","patch","head","delete"],wae={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Wp=2147483647,$ae=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,s_=Symbol("stop");class c_{constructor(t){ro(this,"options");this.options=t}}const Eae=e=>new c_(e),Oae={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Iae={next:!0},Rae={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Pae=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[n,r]of e)t+=$ae,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${n}"`).length,t+=typeof r=="string"?new TextEncoder().encode(r).length:r.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(typeof e=="object"&&e!==null)try{const t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{return 0}return 0},u_=(e,t,n)=>{let r,o=0;return e.pipeThrough(new TransformStream({transform(a,i){if(i.enqueue(a),r){o+=r.byteLength;let s=t===0?0:o/t;s>=1&&(s=1-Number.EPSILON),n==null||n({percent:s,totalBytes:Math.max(t,o),transferredBytes:o},r)}r=a},flush(){r&&(o+=r.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},r))}}))},Mae=(e,t)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(u_(e.body,n,t),{status:e.status,statusText:e.statusText,headers:e.headers})},Nae=(e,t,n)=>{if(!e.body)return e;const r=Pae(n??e.body);return new Request(e,{duplex:"half",body:u_(e.body,r,t)})},Yi=e=>e!==null&&typeof e=="object",zf=(...e)=>{for(const t of e)if((!Yi(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return oS({},...e)},d_=(e={},t={})=>{const n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[a,i]of o.entries())r&&i==="undefined"||i===void 0?n.delete(a):n.set(a,i);return n};function Lf(e,t,n){return Object.hasOwn(t,n)&&t[n]===void 0?[]:oS(e[n]??[],t[n]??[])}const f_=(e={},t={})=>({beforeRequest:Lf(e,t,"beforeRequest"),beforeRetry:Lf(e,t,"beforeRetry"),afterResponse:Lf(e,t,"afterResponse"),beforeError:Lf(e,t,"beforeError")}),_ae=(e,t)=>{const n=new URLSearchParams;for(const r of[e,t])if(r!==void 0)if(r instanceof URLSearchParams)for(const[o,a]of r.entries())n.append(o,a);else if(Array.isArray(r))for(const o of r){if(!Array.isArray(o)||o.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(o[0]),String(o[1]))}else if(Yi(r))for(const[o,a]of Object.entries(r))a!==void 0&&n.append(o,String(a));else{const o=new URLSearchParams(r);for(const[a,i]of o.entries())n.append(a,i)}return n},oS=(...e)=>{let t={},n={},r={},o;const a=[];for(const i of e)if(Array.isArray(i))Array.isArray(t)||(t=[]),t=[...t,...i];else if(Yi(i)){for(let[s,c]of Object.entries(i)){if(s==="signal"&&c instanceof globalThis.AbortSignal){a.push(c);continue}if(s==="context"){if(c!=null&&(!Yi(c)||Array.isArray(c)))throw new TypeError("The `context` option must be an object");t={...t,context:c==null?{}:{...t.context,...c}};continue}if(s==="searchParams"){c==null?o=void 0:o=o===void 0?c:_ae(o,c);continue}Yi(c)&&s in t&&(c=oS(t[s],c)),t={...t,[s]:c}}Yi(i.hooks)&&(r=f_(r,i.hooks),t.hooks=r),Yi(i.headers)&&(n=d_(n,i.headers),t.headers=n)}return o!==void 0&&(t.searchParams=o),a.length>0&&(a.length===1?t.signal=a[0]:i_?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t},Tae=e=>l_.includes(e)?e.toUpperCase():e,Dae=["get","put","head","delete","options","trace"],kae=[408,413,429,500,502,503,504],jae=[413,429,503],UE={limit:2,methods:Dae,statusCodes:kae,afterStatusCodes:jae,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},zae=(e={})=>{if(typeof e=="number")return{...UE,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.methods&&(e.methods=e.methods.map(n=>n.toLowerCase())),e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");const t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!==void 0));return{...UE,...t}};class Cb extends Error{constructor(n){super(`Request timed out: ${n.method} ${n.url}`);ro(this,"request");this.name="TimeoutError",this.request=n}}async function Lae(e,t,n,r){return new Promise((o,a)=>{const i=setTimeout(()=>{n&&n.abort(),a(new Cb(e))},r.timeout);r.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(i)})})}async function Fae(e,{signal:t}){return new Promise((n,r)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));function o(){clearTimeout(a),r(t.reason)}const a=setTimeout(()=>{t==null||t.removeEventListener("abort",o),n()},e)})}const Aae=(e,t)=>{const n={};for(const r in t)Object.hasOwn(t,r)&&!(r in Rae)&&!(r in Oae)&&(!(r in e)||r in Iae)&&(n[r]=t[r]);return n},Bae=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;function Hae(e){return e instanceof bb||(e==null?void 0:e.name)===bb.name}function Vae(e){return e instanceof Cb||(e==null?void 0:e.name)===Cb.name}var Cv,m_,Bo,xo,Mr,Rt,ii,va,al,qt,vm,v_,Sb,hm,ei,xb,h_,cu,gm,wb;const Iu=class Iu{constructor(t,n={}){sa(this,qt);ro(this,"request");sa(this,Bo);sa(this,xo,0);sa(this,Mr);sa(this,Rt);sa(this,ii);sa(this,va);sa(this,al);var o,a,i;if(zo(this,Mr,t),zo(this,Rt,{...n,headers:d_(Je(this,Mr).headers,n.headers),hooks:f_({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},n.hooks),method:Tae(n.method??Je(this,Mr).method??"GET"),prefixUrl:String(n.prefixUrl||""),retry:zae(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}}),typeof Je(this,Mr)!="string"&&!(Je(this,Mr)instanceof URL||Je(this,Mr)instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(Je(this,Rt).prefixUrl&&typeof Je(this,Mr)=="string"){if(Je(this,Mr).startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");Je(this,Rt).prefixUrl.endsWith("/")||(Je(this,Rt).prefixUrl+="/"),zo(this,Mr,Je(this,Rt).prefixUrl+Je(this,Mr))}Cae&&i_&&(zo(this,va,Je(this,Rt).signal??Je(this,Mr).signal),zo(this,Bo,new globalThis.AbortController),Je(this,Rt).signal=Je(this,va)?AbortSignal.any([Je(this,va),Je(this,Bo).signal]):Je(this,Bo).signal),KE&&(Je(this,Rt).duplex="half"),Je(this,Rt).json!==void 0&&(Je(this,Rt).body=((a=(o=Je(this,Rt)).stringifyJson)==null?void 0:a.call(o,Je(this,Rt).json))??JSON.stringify(Je(this,Rt).json),Je(this,Rt).headers.set("content-type",Je(this,Rt).headers.get("content-type")??"application/json"));const r=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(Je(this,Mr)instanceof globalThis.Request&&(xae&&Je(this,Rt).body instanceof globalThis.FormData||Je(this,Rt).body instanceof URLSearchParams)&&!r&&Je(this,Rt).headers.delete("content-type"),this.request=new globalThis.Request(Je(this,Mr),Je(this,Rt)),Bae(Je(this,Rt).searchParams)){const c="?"+(typeof Je(this,Rt).searchParams=="string"?Je(this,Rt).searchParams.replace(/^\?/,""):new URLSearchParams(cn(i=Iu,Cv,m_).call(i,Je(this,Rt).searchParams)).toString()),u=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,c);this.request=new globalThis.Request(u,Je(this,Rt))}if(Je(this,Rt).onUploadProgress){if(typeof Je(this,Rt).onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!KE)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=cn(this,qt,wb).call(this,this.request,Je(this,Rt).body??void 0)}}static create(t,n){var i,s,c;const r=new Iu(t,n),o=async()=>{var d,f,m,v,h,y,p,g,C,b,S,w;if(typeof Je(r,Rt).timeout=="number"&&Je(r,Rt).timeout>Wp)throw new RangeError(`The \`timeout\` option cannot be greater than ${Wp}`);await Promise.resolve();let u=await cn(d=r,qt,h_).call(d);for(const $ of Je(r,Rt).hooks.afterResponse){const x=cn(f=r,qt,Sb).call(f,u.clone());let E;try{E=await $(r.request,cn(m=r,qt,cu).call(m),x,{retryCount:Je(r,xo)})}catch(I){throw cn(v=r,qt,ei).call(v,x),cn(h=r,qt,ei).call(h,u),I}if(E instanceof c_)throw cn(y=r,qt,ei).call(y,x),cn(p=r,qt,ei).call(p,u),new Vp(E.options);const O=E instanceof globalThis.Response?E:u;x!==O&&cn(g=r,qt,ei).call(g,x),u!==O&&cn(C=r,qt,ei).call(C,u),u=O}if(cn(b=r,qt,Sb).call(b,u),!u.ok&&(typeof Je(r,Rt).throwHttpErrors=="function"?Je(r,Rt).throwHttpErrors(u.status):Je(r,Rt).throwHttpErrors)){let $=new bb(u,r.request,cn(S=r,qt,cu).call(S));for(const x of Je(r,Rt).hooks.beforeError)$=await x($,{retryCount:Je(r,xo)});throw $}if(Je(r,Rt).onDownloadProgress){if(typeof Je(r,Rt).onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Sae)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");const $=u.clone();return cn(w=r,qt,ei).call(w,u),Mae($,Je(r,Rt).onDownloadProgress)}return u},a=cn(i=r,qt,xb).call(i,o).finally(()=>{var d,f;const u=Je(r,ii);cn(d=r,qt,hm).call(d,(u==null?void 0:u.body)??void 0),cn(f=r,qt,hm).call(f,r.request.body??void 0)});for(const[u,d]of Object.entries(wae))u==="bytes"&&typeof((c=(s=globalThis.Response)==null?void 0:s.prototype)==null?void 0:c.bytes)!="function"||(a[u]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||d);const f=await a;if(u==="json"){if(f.status===204)return"";const m=await f.text();return m===""?"":n.parseJson?n.parseJson(m):JSON.parse(m)}return f[u]()});return a}};Cv=new WeakSet,m_=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,n])=>n!==void 0)):t},Bo=new WeakMap,xo=new WeakMap,Mr=new WeakMap,Rt=new WeakMap,ii=new WeakMap,va=new WeakMap,al=new WeakMap,qt=new WeakSet,vm=function(){const t=Je(this,Rt).retry.delay(Je(this,xo));let n=t;Je(this,Rt).retry.jitter===!0?n=Math.random()*t:typeof Je(this,Rt).retry.jitter=="function"&&(n=Je(this,Rt).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t));const r=Je(this,Rt).retry.backoffLimit??Number.POSITIVE_INFINITY;return Math.min(r,n)},v_=async function(t){if(hS(this,xo)._++,Je(this,xo)>Je(this,Rt).retry.limit)throw t;const n=t instanceof Error?t:new a_(t);if(n instanceof Vp)return n.customDelay??cn(this,qt,vm).call(this);if(!Je(this,Rt).retry.methods.includes(this.request.method.toLowerCase()))throw t;if(Je(this,Rt).retry.shouldRetry!==void 0){const r=await Je(this,Rt).retry.shouldRetry({error:n,retryCount:Je(this,xo)});if(r===!1)throw t;if(r===!0)return cn(this,qt,vm).call(this)}if(Vae(t)&&!Je(this,Rt).retry.retryOnTimeout)throw t;if(Hae(t)){if(!Je(this,Rt).retry.statusCodes.includes(t.response.status))throw t;const r=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(r&&Je(this,Rt).retry.afterStatusCodes.includes(t.response.status)){let o=Number(r)*1e3;Number.isNaN(o)?o=Date.parse(r)-Date.now():o>=Date.parse("2024-01-01")&&(o-=Date.now());const a=Je(this,Rt).retry.maxRetryAfter??o;return o<a?o:a}if(t.response.status===413)throw t}return cn(this,qt,vm).call(this)},Sb=function(t){return Je(this,Rt).parseJson&&(t.json=async()=>Je(this,Rt).parseJson(await t.text())),t},hm=function(t){t&&t.cancel().catch(()=>{})},ei=function(t){cn(this,qt,hm).call(this,t.body??void 0)},xb=async function(t){try{return await t()}catch(n){const r=Math.min(await cn(this,qt,v_).call(this,n),Wp);if(Je(this,xo)<1)throw n;if(await Fae(r,Je(this,va)?{signal:Je(this,va)}:{}),n instanceof Vp&&n.customRequest){const o=Je(this,Rt).signal?new globalThis.Request(n.customRequest,{signal:Je(this,Rt).signal}):new globalThis.Request(n.customRequest);cn(this,qt,gm).call(this,o)}for(const o of Je(this,Rt).hooks.beforeRetry){const a=await o({request:this.request,options:cn(this,qt,cu).call(this),error:n,retryCount:Je(this,xo)});if(a instanceof globalThis.Request){cn(this,qt,gm).call(this,a);break}if(a instanceof globalThis.Response)return a;if(a===s_)return}return cn(this,qt,xb).call(this,t)}},h_=async function(){var n;(n=Je(this,Bo))!=null&&n.signal.aborted&&(zo(this,Bo,new globalThis.AbortController),Je(this,Rt).signal=Je(this,va)?AbortSignal.any([Je(this,va),Je(this,Bo).signal]):Je(this,Bo).signal,this.request=new globalThis.Request(this.request,{signal:Je(this,Rt).signal}));for(const r of Je(this,Rt).hooks.beforeRequest){const o=await r(this.request,cn(this,qt,cu).call(this),{retryCount:Je(this,xo)});if(o instanceof Response)return o;if(o instanceof globalThis.Request){cn(this,qt,gm).call(this,o);break}}const t=Aae(this.request,Je(this,Rt));return zo(this,ii,this.request),this.request=Je(this,ii).clone(),Je(this,Rt).timeout===!1?Je(this,Rt).fetch(Je(this,ii),t):Lae(Je(this,ii),t,Je(this,Bo),Je(this,Rt))},cu=function(){if(!Je(this,al)){const{hooks:t,...n}=Je(this,Rt);zo(this,al,Object.freeze(n))}return Je(this,al)},gm=function(t){zo(this,al,void 0),this.request=cn(this,qt,wb).call(this,t)},wb=function(t,n){return!Je(this,Rt).onUploadProgress||!t.body?t:Nae(t,Je(this,Rt).onUploadProgress,n??Je(this,Rt).body??void 0)},sa(Iu,Cv);let gv=Iu;/*! MIT License © Sindre Sorhus */const $b=e=>{const t=(n,r)=>gv.create(n,zf(e,r));for(const n of l_)t[n]=(r,o)=>gv.create(r,zf(e,o,{method:n}));return t.create=n=>$b(zf(n)),t.extend=n=>(typeof n=="function"&&(n=n(e??{})),$b(zf(e,n))),t.stop=s_,t.retry=Eae,t},Wae=$b(),Bi=Wae.create({prefixUrl:"/api",timeout:3e4,hooks:{beforeError:[async e=>{var n;const{response:t}=e;if(t)try{const r=await t.json();(n=r.error)!=null&&n.message&&(e.message=r.error.message)}catch{}return e}]}}),Ss={getConfig:()=>Bi.get("config").json(),getDatasets:()=>Bi.get("datasets").json(),getMeta:e=>Bi.get(`datasets/${e}/meta`).json(),getRows:(e,t,n)=>{const r={};return t!==void 0&&(r.offset=String(t)),n!==void 0&&(r.limit=String(n)),Bi.get(`datasets/${e}/rows`,{searchParams:r}).json()},validate:(e,t)=>Bi.post(`datasets/${e}/validate`,{json:{rows:t}}).json(),save:(e,t,n)=>Bi.post(`datasets/${e}/save`,{json:{rows:t,expectedFileHash:n}}).json(),getDiff:(e,t)=>Bi.post(`datasets/${e}/diff`,{json:{rows:t}}).json()},aS=o_(e=>({config:null,datasets:[],isReadOnly:!1,isLoading:!1,error:null,sidebarCollapsed:!1,singleMode:!1,singleDataset:null,loadConfig:async()=>{e({isLoading:!0,error:null});try{const t=await Ss.getConfig();t.ok&&e({config:t.data,isReadOnly:!t.data.workspace.allowWrite,singleMode:t.data.singleMode,singleDataset:t.data.singleDataset||null,isLoading:!1})}catch(t){e({error:t,isLoading:!1})}},loadDatasets:async()=>{try{const t=await Ss.getDatasets();t.ok&&e({datasets:t.data.datasets})}catch(t){console.error("Failed to load datasets:",t)}},setSidebarCollapsed:t=>e({sidebarCollapsed:t}),setReadOnly:t=>e({isReadOnly:t})})),Ff=e=>e.map(t=>({...t})),Gc=(e,t,n)=>e.length!==t.length?!0:e.some((r,o)=>{const a=t[o];return a?n.columns.some(i=>r[i.key]!==a[i.key]):!0}),g_=o_((e,t)=>({currentDatasetId:null,meta:null,originalRows:[],rows:[],selectedRowIndex:null,validationErrors:[],isDirty:!1,fileHash:null,isSaving:!1,viewMode:"table",searchQuery:"",sortColumn:null,sortOrder:"asc",detailPanelVisible:!0,detailPanelWidth:400,loadDataset:async n=>{var c,u;const r=await Ss.getMeta(n);if(!r.ok)throw new Error("Failed to load dataset meta");const o=r.data,a=await Ss.getRows(n);if(!a.ok)throw new Error("Failed to load dataset rows");const i=a.data.rows.map(d=>({...d,_isNew:!1,_isDirty:!1})),s=((u=(c=o.schema.ui)==null?void 0:c.list)==null?void 0:u.viewMode)==="tile"?"tile":"table";e({currentDatasetId:n,meta:o,originalRows:Ff(i),rows:Ff(i),selectedRowIndex:null,validationErrors:[],isDirty:!1,fileHash:a.data.fileHash,viewMode:s,searchQuery:"",sortColumn:null,sortOrder:"asc"})},updateRow:(n,r)=>{const{rows:o,originalRows:a,meta:i}=t();if(!i)return;const s=[...o];s[n]={...s[n],...r,_isDirty:!0},e({rows:s,isDirty:Gc(s,a,i.schema)})},insertRow:n=>{const{rows:r,originalRows:o,meta:a}=t();if(!a)return;const i={_rowIndex:-1,_isNew:!0,_isDirty:!0};a.schema.columns.forEach(u=>{u.default!==void 0?i[u.key]=u.default:u.type==="boolean"?i[u.key]=!1:u.type==="integer"||u.type==="number"?i[u.key]=0:i[u.key]=""});const s=[...r];let c;switch(n.type){case"head":c=0,s.unshift(i);break;case"last":c=s.length,s.push(i);break;case"before":c=n.index,s.splice(n.index,0,i);break;case"after":c=n.index+1,s.splice(n.index+1,0,i);break}e({rows:s,selectedRowIndex:c,isDirty:Gc(s,o,a.schema),sortColumn:null,sortOrder:"asc"})},duplicateRow:n=>{var d;const{rows:r,originalRows:o,meta:a}=t();if(!a)return;const s={...r[n],_rowIndex:-1,_isNew:!0,_isDirty:!0},c=(d=a.schema.csv)==null?void 0:d.primaryKey;c&&(s[c]="");const u=[...r];u.splice(n+1,0,s),e({rows:u,selectedRowIndex:n+1,isDirty:Gc(u,o,a.schema),sortColumn:null,sortOrder:"asc"})},deleteRow:n=>{const{rows:r,originalRows:o,selectedRowIndex:a,meta:i}=t();if(!i)return;const s=r.filter((u,d)=>d!==n);let c=a;a===n?c=null:a!==null&&a>n&&(c=a-1),e({rows:s,selectedRowIndex:c,isDirty:Gc(s,o,i.schema)})},moveRow:(n,r)=>{const{rows:o,originalRows:a,meta:i,selectedRowIndex:s}=t();if(!i||n===r)return;const c=[...o],[u]=c.splice(n,1);u._isDirty=!0,c.splice(r,0,u);let d=s;s===n?d=r:s!==null&&(n<s&&r>=s?d=s-1:n>s&&r<=s&&(d=s+1)),e({rows:c,selectedRowIndex:d,isDirty:Gc(c,a,i.schema),sortColumn:null,sortOrder:"asc"})},selectRow:n=>{e({selectedRowIndex:n})},selectNextRow:()=>{const{rows:n,selectedRowIndex:r}=t();n.length!==0&&(r===null?e({selectedRowIndex:0}):r<n.length-1&&e({selectedRowIndex:r+1}))},selectPrevRow:()=>{const{rows:n,selectedRowIndex:r}=t();n.length!==0&&(r===null?e({selectedRowIndex:n.length-1}):r>0&&e({selectedRowIndex:r-1}))},validate:async()=>{const{currentDatasetId:n,rows:r}=t();if(!n)return[];try{const o=r.map(i=>{const s={_rowIndex:i._rowIndex};return Object.keys(i).forEach(c=>{(!c.startsWith("_")||c==="_rowIndex")&&(s[c]=i[c])}),s}),a=await Ss.validate(n,o);if(a.ok){const i=a.data.errors.map(s=>({...s,column:s.columnKey,type:"error"}));return e({validationErrors:i}),i}}catch(o){console.error("Validation failed:",o)}return[]},save:async()=>{const{currentDatasetId:n,rows:r,fileHash:o}=t();if(!n||!o)return{success:!1,error:"No dataset loaded"};e({isSaving:!0});try{const a=r.map(s=>{const c={_rowIndex:s._rowIndex};return Object.keys(s).forEach(u=>{(!u.startsWith("_")||u==="_rowIndex")&&(c[u]=s[u])}),c}),i=await Ss.save(n,a,o);if(i.ok){const s=r.map(c=>({...c,_isNew:!1,_isDirty:!1}));return e({rows:s,originalRows:Ff(s),isDirty:!1,isSaving:!1,fileHash:i.data.fileHash}),{success:!0}}else return e({isSaving:!1}),{success:!1,error:"Save failed"}}catch(a){return e({isSaving:!1}),{success:!1,error:a instanceof Error?a.message:"Save failed"}}},reload:async()=>{const{currentDatasetId:n}=t();n&&await t().loadDataset(n)},resetChanges:()=>{const{originalRows:n}=t();e({rows:Ff(n),isDirty:!1,selectedRowIndex:null})},resetSort:()=>{e({sortColumn:null,sortOrder:"asc"})},setViewMode:n=>e({viewMode:n}),setSearchQuery:n=>e({searchQuery:n}),setSortColumn:(n,r)=>e({sortColumn:n,sortOrder:r}),setDetailPanelVisible:n=>e({detailPanelVisible:n}),setDetailPanelWidth:n=>e({detailPanelWidth:Math.max(300,Math.min(600,n))}),toggleDetailPanel:()=>e(n=>({detailPanelVisible:!n.detailPanelVisible}))})),{Content:Kae}=Ha,Uae=()=>{var E;const{id:e}=UN(),{config:t,datasets:n,isReadOnly:r,isLoading:o,sidebarCollapsed:a,singleMode:i,singleDataset:s,loadConfig:c,loadDatasets:u,setSidebarCollapsed:d}=aS(),{isDirty:f,isSaving:m,detailPanelVisible:v,rows:h,originalRows:y,meta:p,save:g,toggleDetailPanel:C}=g_(),[b,S]=l.useState(!1);l.useEffect(()=>{c(),u()},[c,u]);const w=async()=>{const O=await g();O.success?(Ts.success("保存しました"),u()):Ts.error(O.error||"保存に失敗しました")},$=l.useCallback(()=>{f&&S(!0)},[f]),x=l.useCallback(()=>{S(!1)},[]);return l.useEffect(()=>{const O=I=>{f&&(I.preventDefault(),I.returnValue="")};return window.addEventListener("beforeunload",O),()=>window.removeEventListener("beforeunload",O)},[f]),o||!t?ne.jsx("div",{style:{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:ne.jsx(zd,{size:"large",children:ne.jsx("div",{style:{padding:50,textAlign:"center"},children:"読み込み中..."})})}):ne.jsxs(Ha,{className:"app-layout",children:[ne.jsx(Voe,{isDirty:f,isReadOnly:r,isSaving:m,onSave:w,onShowDiff:$,detailPanelVisible:v,onToggleDetailPanel:C,singleMode:i,singleDataset:s}),ne.jsxs(Ha,{children:[!i&&ne.jsx(Koe,{collapsed:a,onCollapse:d,datasets:n,currentId:e}),ne.jsx(Kae,{className:"app-content",children:ne.jsx(vre,{})})]}),ne.jsx(qoe,{open:b,onClose:x,columns:(p==null?void 0:p.schema.columns)??[],originalRows:y,currentRows:h,primaryKey:(E=p==null?void 0:p.schema.csv)==null?void 0:E.primaryKey})]})},qae=({onResize:e,onResizeEnd:t})=>{const[n,r]=l.useState(!1),[o,a]=l.useState(0),i=l.useCallback(u=>{u.preventDefault(),r(!0),a(u.clientX)},[]),s=l.useCallback(u=>{if(!n)return;const d=o-u.clientX;e(d),a(u.clientX)},[n,o,e]),c=l.useCallback(()=>{n&&(r(!1),t==null||t())},[n,t]);return l.useEffect(()=>(n&&(document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),document.body.style.cursor="col-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect=""}),[n,s,c]),ne.jsx("div",{className:`resizer ${n?"resizing":""}`,onMouseDown:i})},Gae=()=>{const e=ng(),{config:t,datasets:n,isLoading:r,singleMode:o,singleDataset:a}=aS();return r||!t?ne.jsx("div",{style:{padding:48,textAlign:"center"},children:ne.jsx(zd,{size:"large",children:ne.jsx("div",{style:{padding:50},children:"読み込み中..."})})}):o&&a?ne.jsx(mre,{to:`/datasets/${a.id}`,replace:!0}):ne.jsxs("div",{className:"home-page",style:{padding:"24px 16px"},children:[ne.jsxs("div",{style:{marginBottom:32},children:[ne.jsxs("h2",{style:{fontSize:16,fontWeight:600,marginBottom:16,display:"flex",alignItems:"center",gap:8},children:[ne.jsx(Toe,{})," Configuration"]}),ne.jsx(Xs,{size:"small",style:{maxWidth:600},children:ne.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[ne.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ne.jsx(mN,{style:{color:"#faad14"}}),ne.jsx("span",{style:{fontWeight:500},children:"Workspace:"}),ne.jsx("code",{style:{background:"#f5f5f5",padding:"2px 6px",borderRadius:4,fontSize:12},children:t.workspace.root})]}),ne.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ne.jsx(fv,{style:{color:t.workspace.allowWrite?"#52c41a":"#ff4d4f"}}),ne.jsx("span",{style:{fontWeight:500},children:"Allow Write:"}),ne.jsx(Ln,{color:t.workspace.allowWrite?"success":"error",children:t.workspace.allowWrite?"Yes":"No"})]}),ne.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ne.jsx(QN,{style:{color:"#1677ff"}}),ne.jsx("span",{style:{fontWeight:500},children:"Datasets:"}),ne.jsx("span",{children:n.length})]})]})})]}),ne.jsxs("div",{children:[ne.jsxs("h2",{style:{fontSize:16,fontWeight:600,marginBottom:16,display:"flex",alignItems:"center",gap:8},children:[ne.jsx(md,{})," Datasets"]}),n.length===0?ne.jsx(Io,{description:"データセットがありません"}):ne.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 320px))",gap:16},children:n.map(i=>ne.jsx(Xs,{hoverable:!0,onClick:()=>e(`/datasets/${i.id}`),size:"small",style:{cursor:"pointer"},children:ne.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[ne.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ne.jsx(md,{style:{fontSize:18,color:"#1677ff"}}),ne.jsx("span",{style:{fontWeight:600,fontSize:15},children:i.title})]}),ne.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,color:"#8c8c8c"},children:[ne.jsx(LG,{}),ne.jsxs("span",{children:[i.rowCount.toLocaleString()," 行"]})]}),ne.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:4},children:[ne.jsx("span",{style:{color:"#8c8c8c",fontSize:12},children:i.csvPath}),ne.jsxs("span",{style:{color:"#1677ff",fontSize:13},children:["開く ",ne.jsx(Us,{})]})]})]})},i.id))})]})]})},Yae=({selectedRowIndex:e,onInsert:t,disabled:n=!1})=>{const r=({key:a})=>{switch(a){case"head":t({type:"head"});break;case"last":t({type:"last"});break;case"before":e!==null&&t({type:"before",index:e});break;case"after":e!==null&&t({type:"after",index:e});break}},o=e!==null?[{key:"before",label:"前に挿入",icon:ne.jsx(rS,{})},{key:"after",label:"後に挿入",icon:ne.jsx(nS,{})}]:[{key:"head",label:"先頭に追加",icon:ne.jsx(gH,{})},{key:"last",label:"末尾に追加",icon:ne.jsx(Hoe,{})}];return ne.jsx(yc,{menu:{items:o,onClick:r},disabled:n,children:ne.jsxs(Fn,{icon:ne.jsx(lv,{}),disabled:n,children:["追加 ",ne.jsx(Ch,{})]})})},Xae=({value:e,onChange:t,placeholder:n="検索..."})=>{const[r,o]=l.useState(e);return l.useEffect(()=>{o(e)},[e]),l.useEffect(()=>{const a=setTimeout(()=>{r!==e&&t(r)},300);return()=>clearTimeout(a)},[r,e,t]),ne.jsx(Ka,{prefix:ne.jsx(Sh,{style:{color:"#bfbfbf"}}),placeholder:n,value:r,onChange:a=>o(a.target.value),allowClear:!0,style:{width:200}})};function Qae(e){return typeof e=="object"?e.key:e}function Jae(e,t){const n=e.length;return new Proxy(e,{get(r,o,a){if(typeof o=="string"){const i=o.charCodeAt(0);if(i>=48&&i<=57){const s=+o;if(Number.isInteger(s)&&s>=0&&s<n){let c=r[s];if(typeof c!="object"){const u=t[s*2];c=r[s]={index:s,key:c,start:u,size:t[s*2+1],end:u+t[s*2+1],lane:0}}return c}}if(o==="length")return n}return Reflect.get(r,o,a)}})}function es(e,t,n){let r=n.initialDeps??[],o,a=!0;function i(){const s=e();return(s.length!==r.length||s.some((u,d)=>r[d]!==u))&&(r=s,o=t(...s),n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(o),a=!1),o}return i.updateDeps=s=>{r=s},i}function qE(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Xi=(e,t)=>Math.abs(e-t)<1.01,Zae=(e,t,n)=>{let r;return Object.assign(function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)},{cancel:()=>{e.clearTimeout(r)}})};function eie({offset:e,isScrolling:t,elementMax:n,holdOffset:r,scrollOffset:o,pendingWrite:a,clampedMaxAtWrite:i,ownWriteAt:s}){var c;return t&&a===null&&e===o?"spurious":a!==null&&Math.abs(e-a.target)<1.5?"readBack":a!==null&&!a.smooth&&n!==null&&a.target>n+r+.5&&Math.abs(e-(n+r))<1.5||a!==null&&!a.smooth&&((c=a.lowMaxes)!=null&&c.some(u=>Math.abs(e-u)<1.5))?"clampedReadBack":i!==null&&Math.abs(e-i)<1.5?"clampedEcho":!t&&s!==null&&Math.abs(e-s)<1.5?"restEcho":"external"}const tie=e=>e==="smooth"||e==="smoothFinishing";function nie({kind:e,offset:t,command:n,target:r}){let o;const a=()=>o??(o=r());return e!=="spurious"&&e!=="readBack"&&e!=="clampedReadBack"&&(n==null?void 0:n.index)!=null&&n.phase!=="queued"&&!tie(n.phase)&&!Xi(t,n.lastTargetOffset)&&!Xi(t,a())&&(e!=="restEcho"||a()===n.lastTargetOffset)&&e!=="clampedEcho"}const Eb=40;function rie(e){const t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<Eb;)n--;if(n<0)return!1;const r=e[n];let o=n-1;for(;o>=0&&r.t-e[o].t<Eb;)o--;if(o<0)return!1;const a=e[o],i=(t.offset-r.offset)/(t.t-r.t),s=(r.offset-a.offset)/(r.t-a.t);return i*s>=0&&Math.abs(i)>=2*Math.abs(s)&&Math.abs(i)-Math.abs(s)>=.8}function oie(e){const t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<Eb;)n--;if(n<0)return!1;const r=e[n];return Math.abs(t.offset-r.offset)/(t.t-r.t)>=.05}let Yc;const pv=()=>{if(Yc!==void 0)return Yc;if(typeof navigator>"u")return Yc=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Yc=!0;const e=navigator.maxTouchPoints;return Yc=navigator.platform==="MacIntel"&&e!==void 0&&e>0};let Kp;const aie=()=>Kp!==void 0?Kp:Kp=pv()&&typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("overflow-anchor: auto"),iie=()=>!pv()||aie(),ts={capture:!0,passive:!0};class lie{constructor(t){this.host=t,this._touch=null,this.inMotion=()=>this._touch!==null&&this._touch.phase!=="lateFling",this.dragging=()=>{var n;return((n=this._touch)==null?void 0:n.phase)==="down"&&this._touch.moved},this.tail=()=>{var n;return((n=this._touch)==null?void 0:n.phase)==="tail"?this._touch.moved?"fling":"tap":null},this.onScroll=({isScrolling:n,ownReadBack:r,moved:o,external:a})=>{var i,s,c;return n&&((i=this._touch)==null?void 0:i.phase)==="tail"?this._openTail(this._touch.moved||!r,!1):((s=this._touch)==null?void 0:s.phase)==="lateFling"&&(this.host.now()>this._touch.until?this._touch=null:a&&n&&o&&this._openTail(!0,!1)),!r&&n&&o&&((c=this._touch)==null?void 0:c.phase)==="down"?(this._touch.moved=!0,!0):!1},this.touchStart=()=>{this.end(),this._touch={phase:"down",moved:!1}},this.touchEnd=()=>{var n;const r=((n=this._touch)==null?void 0:n.phase)==="down"&&this._touch.moved;this.end(),this._openTail(r,r)},this.end=()=>{var n;const r=this.host.getWindow();((n=this._touch)==null?void 0:n.phase)==="tail"&&r!=null&&r.clearTimeout(this._touch.timerId),this._touch=null},this.listen=n=>{const r=()=>this.touchStart(),o=()=>this.touchEnd();return n.addEventListener("touchstart",r,ts),n.addEventListener("touchend",o,ts),n.addEventListener("touchcancel",o,ts),()=>{n.removeEventListener("touchstart",r,ts),n.removeEventListener("touchend",o,ts),n.removeEventListener("touchcancel",o,ts),this.end()}},this._openTail=(n,r)=>{const o=this.host.getWindow();if(o==null)return;this.end();const a={phase:"tail",moved:n,awaitingFling:r,timerId:o.setTimeout(()=>{if(this.host.tailStillMoving()){this._openTail(a.moved,a.awaitingFling);return}this._touch=a.awaitingFling?{phase:"lateFling",until:this.host.now()+1e3}:null,this.host.onTailClosed()},150)};this._touch=a}}get touch(){return this._touch}}const GE=e=>{const{clientWidth:t,clientHeight:n}=e;return{width:t,height:n}},p_=e=>{const t=new Set;return{schedule:n=>{const r=e.requestAnimationFrame(()=>{t.delete(r),n()});t.add(r)},cancel:()=>{t.forEach(n=>e.cancelAnimationFrame(n)),t.clear()}}},sie=e=>e,cie=e=>{const t=e.overscan*Math.max(e.lanes??1,1),n=Math.max(e.startIndex-t,0),o=Math.min(e.endIndex+t,e.count-1)-n+1,a=new Array(o);for(let i=0;i<o;i++)a[i]=n+i;return a},uie=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=s=>{const{width:c,height:u}=s;t({width:Math.round(c),height:Math.round(u)})};if(o(GE(n)),!r.ResizeObserver)return()=>{};const a=p_(r),i=new r.ResizeObserver(()=>{const s=()=>{o(GE(n))};e.options.useAnimationFrameWithResizeObserver?a.schedule(s):s()});return i.observe(n,{box:"content-box"}),()=>{i.unobserve(n),a.cancel()}},YE={passive:!0},die=typeof window>"u"?!0:"onscrollend"in window,fie=(e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const a=e.options.useScrollendEvent&&die;let i=0;const s=a?null:Zae(o,()=>t(n(r),!1),e.options.isScrollingResetDelay),c=f=>()=>{i=n(r),s==null||s(),t(i,f)},u=c(!0),d=c(!1);return r.addEventListener("scroll",u,YE),a&&r.addEventListener("scrollend",d,YE),()=>{r.removeEventListener("scroll",u),a&&r.removeEventListener("scrollend",d),s==null||s.cancel()}},mie=(e,t)=>fie(e,t,n=>{const{horizontal:r,isRtl:o}=e.options;return r?n.scrollLeft*(o&&-1||1):n.scrollTop}),vie=(e,t,n)=>{if(n.options.useCachedMeasurements){const r=n.indexFromElement(e),o=n.options.getItemKey(r);return n.itemSizeCache.get(o)??n.options.estimateSize(r)}if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const r=n.indexFromElement(e),o=n.options.getItemKey(r),a=n.itemSizeCache.get(o);if(a!==void 0)return a}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},hie=(e,{adjustments:t=0,behavior:n},r)=>{var o;const{scrollElement:a,options:i}=r,s=e+t,c=i.horizontal&&i.isRtl&&a!==null&&"ownerDocument"in a;(o=a==null?void 0:a.scrollTo)==null||o.call(a,{[i.horizontal?"left":"top"]:c?-s:s,behavior:n})},gie=hie,XE=(e,t)=>e==="smooth"?t?"smoothLanded":"smooth":"instant",Xc=e=>(e==null?void 0:e.phase)==="smooth"||(e==null?void 0:e.phase)==="smoothLanded";function pie(e,t,n,r){if(t===0)return!1;const o=r(0),a=new Set;let i=0;for(;i<e;){const c=n(i);if(c===o)break;a.add(c),i++}const s=e-i;if(s===0||s>=t)return!1;for(let c=0;c<s;c++)if(r(c)!==n(i+c))return!1;for(let c=s;c<t;c++)if(a.has(r(c)))return!1;return!0}class yie{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.builtMeasurementOptions=null,this.builtItemSizeCacheVersion=-1,this.pendingResizes=[],this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.initialMeasurementsCacheApplied=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._trailing=0,this._drawnListEnd=1/0,this._iosGesture=new lie({getWindow:()=>this.targetWindow,now:()=>this.now(),tailStillMoving:()=>{const n=this.scrollState;if((n==null?void 0:n.phase)!=="queued"||this.pendingWrite!==null)return!1;const r=this._readElementOffset();return r===null||this._lastElementOffset===null||Math.abs(r-this._lastElementOffset)<1?!1:(this._lastElementOffset=r,n.samples=[...n.samples??[],{t:this.now(),offset:r}],!0)},onTailClosed:()=>{const n=this.scrollState;(n==null?void 0:n.phase)==="queued"&&oie(n.samples??[])&&(this.scrollState=null),this._flushHoldIfReady(!0),this._writeAwaitingCommand(),this._retryClampedAdjustment()}}),this._lastElementOffset=null,this.pendingWrite=null,this._ownWriteAt=null,this._clampedAdjustment=null,this.elementsCache=new Map,this._resizeBatch=null,this.now=()=>{var n,r,o;return((o=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:o.call(r))??Date.now()},this.observer=(()=>{let n=null,r=null,o=!1,a=!1;const i=new Set,s=()=>{if(n)return n;const u=this.targetWindow;if(!u||!u.ResizeObserver)return null;const d=r=p_(u);return n=new u.ResizeObserver(f=>{const m=()=>{const v={sync:!1};this._resizeBatch=v;try{f.forEach(c)}finally{this._resizeBatch=null,v.notify&&(this.notify(v.sync),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment(),this.measureElement(null))}};if(this.options.useAnimationFrameWithResizeObserver)d.schedule(m);else{o=!0;try{m()}finally{o=!1}}})},c=u=>{const d=u.target,f=this.indexFromElement(d);if(!d.isConnected){this.observer.unobserve(d);for(const[m,v]of this.elementsCache)if(v===d){this.elementsCache.delete(m);break}return}this.isIndexInRange(f)&&this.shouldMeasureDuringScroll(f)&&this.resizeItem(f,this.options.measureElement(d,u,this))};return{disconnect:()=>{var u;(u=s())==null||u.disconnect(),r==null||r.cancel(),i.clear(),a=!1,n=null,r=null},observe:u=>{const d=s();if(d){if(!o){d.observe(u,{box:"border-box"});return}i.add(u),a||(a=!0,r==null||r.schedule(()=>{a=!1,i.forEach(f=>{f.isConnected&&(n==null||n.observe(f,{box:"border-box"}))}),i.clear()}))}},unobserve:u=>{var d;i.delete(u),(d=s())==null||d.unobserve(u)}}})(),this.range=null,this.setOptions=n=>{var r;const o={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sie,rangeExtractor:cie,onChange:()=>{},measureElement:vie,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const d in n){const f=n[d];f!==void 0&&(o[d]=f)}const a=this.options;let i=null,s=null,c=!1;if(a!==void 0&&a.enabled&&o.enabled&&o.anchorTo==="end"&&this.scrollElement!==null){const d=a.count,f=o.count,m=this.getMeasurements(),v=((r=this._singleLaneMeasurements)==null?void 0:r.items)??m,h=b=>Qae(v[b]),y=d>0?h(0):null,p=d>0?h(d-1):null;if(f!==d||d>0&&f>0&&(o.getItemKey(0)!==y||o.getItemKey(f-1)!==p)){c=!0;const b=d>0?this.getVirtualItemForOffset(this.getScrollOffset())??m[0]:null;b&&(i=[b.key,this.getScrollOffset()-b.start]);const S=o.followOnAppend===!0?"auto":o.followOnAppend||null;S&&f>0&&this.isAtEnd(a.scrollEndThreshold)&&(d===0||o.getItemKey(f-1)!==p)&&(f>d||pie(d,f,h,o.getItemKey))&&(s=S)}}this.options=o,c&&(this.pendingMin=0,this.itemSizeCacheVersion++);let u=null;if(i&&this.scrollOffset!==null&&!this._awaitingCommandReadBack()){const[d,f]=i,m=this.getMeasurements(),{count:v,getItemKey:h}=this.options;let y=0;for(;y<v&&h(y)!==d;)y++;if(y<v){const p=m[y];if(p){const g=Math.max(0,p.start+f);!s&&g!==this.scrollOffset&&(u=g-this.scrollOffset,this.scrollOffset=g)}}}s?this.pendingScrollAnchor={kind:"follow",behavior:s}:u!==null&&(this._canWriteScroll()?this.pendingScrollAnchor={kind:"anchor",delta:u}:(this._holdOffset+=u,this._followAnchor(u)))},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=es(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{var n;this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,(n=this._momentumStop)==null||n.restore(),this._momentumStop=null,this.isScrolling=!1,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._trailing=0,this._clampedAdjustment=null,this.pendingWrite=null,this._ownWriteAt=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{var s,c,u,d;const f=i?this._elementMaxScrollOffset():null;this._readTrailing(f);const m=this._reportedOverscroll;this._reportedOverscroll=a<0||f!==null&&a>f+1;const v=a;this._lastElementOffset=v,a=this._toLayoutOffset(a);const h=this._classifyScrollEvent(a,i,f);if(h==="spurious")return;h==="readBack"?a=this.pendingWrite.target:h==="clampedReadBack"&&((s=this.scrollState)==null?void 0:s.index)!=null&&a<this.getMaxScrollOffset()-1.5?this.scrollState.lastTargetOffset=a:nie({kind:h,offset:a,command:this.scrollState,target:()=>this.getScrollStateTarget(this.scrollState)})&&(this.scrollState=null),this.pendingWrite=null,h==="readBack"||h==="clampedReadBack"||h==="clampedEcho"?this._ownWriteAt=a:h!=="restEcho"&&(this._ownWriteAt=null),this._clampedAdjustment!==null&&Math.abs(a-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null);const y=this.getScrollOffset(),p=this.scrollDirection;this.scrollDirection=i?y===a?this.scrollDirection:y<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=i;const g=this.scrollState;if((g==null?void 0:g.phase)==="queued"&&h==="external"&&i)if(m||this._reportedOverscroll)g.samples=[];else{const C=this.now();g.samples=[...(g.samples??[]).filter(b=>C-b.t<=200),{t:C,offset:v}],(p!==null&&this.scrollDirection!==p||rie(g.samples))&&(this.scrollState=null)}this._iosGesture.onScroll({isScrolling:i,ownReadBack:h==="readBack",moved:a!==y,external:h==="external"&&((c=this.scrollState)==null?void 0:c.phase)!=="smooth"&&((u=this.scrollState)==null?void 0:u.phase)!=="smoothFinishing"})&&((d=this.scrollState)==null?void 0:d.phase)==="queued"&&(this.scrollState=null),this._flushHoldIfReady(!0),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement&&this.unsubs.push(this._iosGesture.listen(this.scrollElement)),this._scrollToOffset(this.getScrollOffset()),this._readTrailing(this._elementMaxScrollOffset()),this.maybeNotify()}this._noteClampMax();const o=this.pendingScrollAnchor;this.pendingScrollAnchor=null,o&&this.scrollElement&&this.options.enabled&&(o.kind==="anchor"?this._canWriteScroll()?Xc(this.scrollState)&&!this._landedBeforeAnchor(this.scrollState,o.delta)||(this._followAnchor(o.delta),this._scrollToOffset(this.getScrollOffset())):(this._holdOffset+=o.delta,this._followAnchor(o.delta),this.notify(!1)):this.scrollToEnd({behavior:o.behavior})),this._flushHoldIfReady(!1),this._retryClampedAdjustment()},this._classifyScrollEvent=(n,r,o)=>{var a;return eie({offset:n,isScrolling:r,elementMax:o,holdOffset:this._holdOffset,scrollOffset:this.scrollOffset,pendingWrite:this.pendingWrite,clampedMaxAtWrite:((a=this._clampedAdjustment)==null?void 0:a.maxAtWrite)??null,ownWriteAt:this._ownWriteAt})},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled||!this._canWriteScroll())return;const{target:n,maxAtWrite:r}=this._clampedAdjustment,o=this.getMaxScrollOffset();o>r+.5&&(this._clampedAdjustment=n>o+.5?{target:n,maxAtWrite:o}:null,this._scrollToOffset(n))},this._writeAwaitingCommand=()=>{const n=this.scrollState;if(n===null||n.phase!=="queued")return;const{behavior:r}=n;this.getMeasurements();const o=this.getScrollStateTarget(n);n.lastTargetOffset=o,this._clampedAdjustment=null,n.phase=XE(r,n.index!=null&&Xi(o,this.getScrollOffset())),this._scrollToOffset(o,{behavior:r}),this.scheduleScrollReconcile()},this._readElementOffset=()=>{const n=this.scrollElement;if(n==null)return null;const{horizontal:r,isRtl:o}=this.options;return typeof n.scrollTop=="number"?r?n.scrollLeft*(o&&-1||1):n.scrollTop:typeof n.scrollY=="number"?r?n.scrollX:n.scrollY:null},this._canWriteScroll=()=>!(pv()&&this._iosGesture.inMotion())&&!this._reportedOverscroll,this._flushHoldIfReady=n=>{var r;if(this._holdOffset===0||!this.scrollElement||!this.options.enabled||!this._canWriteScroll()||((r=this.scrollState)==null?void 0:r.phase)==="smooth")return;this._holdOffset=0,this.scrollOffset!==null&&this.scrollOffset<0&&(this.scrollOffset=0),this.notify(n);const o=this.getCommandWrittenOffset()??this.getScrollOffset();this._clampedAdjustment=this._clampedBy(o),this._scrollToOffset(o)},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=es(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(n,r,o,a,i,s,c,u)=>(this.prevLanes!==void 0&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMin=null,{count:n,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:i,lanes:s,laneAssignmentMode:c,gap:u}),{key:!1}),this.isIndexInRange=n=>n>=0&&n<this.options.count,this.getMeasurements=es(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],(n,r)=>{var o;const{count:a,paddingStart:i,scrollMargin:s,getItemKey:c,enabled:u,lanes:d,laneAssignmentMode:f,gap:m}=n;this.builtMeasurementOptions=n,this.builtItemSizeCacheVersion=r,this.pendingResizes=[];const v=this.itemSizeCache;if(!u)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.initialMeasurementsCacheApplied=!1,[];if(this.laneAssignments.size>a)for(const b of this.laneAssignments.keys())b>=a&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),!this.initialMeasurementsCacheApplied&&this.measurementsCache.length===0&&!this.lanesSettling&&(this.initialMeasurementsCacheApplied=!0,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const h=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===a&&(this.lanesSettling=!1),d===1){const b=a*2;let S=(o=this._singleLaneMeasurements)==null?void 0:o.flat;if(!S||S.length<b){const E=new Float64Array(b);S&&h>0&&E.set(S.subarray(0,h*2)),S=E}const w=h===0?new Array(a):this._singleLaneMeasurements.items.slice();let $;if(h===0)$=i+s;else{const E=h-1;$=S[E*2]+S[E*2+1]+m}for(let E=h;E<a;E++){const O=c(E);w[E]=O;const I=v.get(O),P=typeof I=="number"?I:this.options.estimateSize(E);S[E*2]=$,S[E*2+1]=P,$+=P+m}this._singleLaneMeasurements={flat:S,items:w};const x=Jae(w,S);return this.measurementsCache=x,x}const y=this.measurementsCache.slice(0,h),p=new Array(d).fill(void 0),g=new Float64Array(d);let C=0;for(let b=0;b<h;b++){const S=y[b];S&&(p[S.lane]===void 0&&C++,p[S.lane]=b,g[S.lane]=S.end)}for(let b=h;b<a;b++){const S=c(b),w=this.laneAssignments.get(b);let $,x;const E=f==="estimate"||v.has(S);if(w!==void 0&&this.options.lanes>1){$=w;const _=p[$],D=_!==void 0?y[_]:void 0;x=D?D.end+m:i+s}else if(C===d){let _=0,D=g[0],R=p[0];for(let N=1;N<d;N++){const M=g[N];(M<D||M===D&&p[N]<R)&&(_=N,D=M,R=p[N])}$=_,x=D+m,E&&this.laneAssignments.set(b,$)}else $=b%this.options.lanes,x=i+s,E&&this.laneAssignments.set(b,$);const O=v.get(S),I=typeof O=="number"?O:this.options.estimateSize(b),P=x+I;y[b]={index:b,start:x,size:I,end:P,key:S,lane:$},p[$]===void 0&&C++,p[$]=b,g[$]=P}return this.measurementsCache=y,y},{key:!1,debug:()=>this.options.debug}),this.calculateRange=es(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes,this._getLayoutTotalSize()+this.options.scrollMargin,this._trailing],(n,r,o,a,i,s)=>{if(n.length===0||r===0)return this.range=null,null;const c=Math.max(i+s-r,0);return this.range=Cie(n,r,Math.min(o,c),a,a===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range},{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=es(()=>{let n=null,r=null;const o=this.calculateRange();return o&&(n=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r,this.options.lanes]},(n,r,o,a,i,s)=>a===null||i===null?[]:n({startIndex:a,endIndex:i,overscan:r,count:o,lanes:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!Xc(this.scrollState))return!0;const o=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(o!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),i=Math.max(0,o-a),s=Math.min(this.options.count-1,o+a);return n>=i&&n<=s}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((i,s)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(s))});return}const r=this.indexFromElement(n);if(!this.isIndexInRange(r))return;const o=this.options.getItemKey(r),a=this.elementsCache.get(o);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.canShiftFromPendingResizes=()=>this.options.lanes===1&&this._singleLaneMeasurements!==null&&this.shouldAdjustScrollPositionOnItemSizeChange===void 0&&!this.lanesChangedFlag&&!this.lanesSettling&&this.getMeasurementOptions()===this.builtMeasurementOptions&&this.itemSizeCacheVersion===this.builtItemSizeCacheVersion+this.pendingResizes.length,this.resizeItem=(n,r)=>{var o,a,i;if(!this.isIndexInRange(n))return;let s=0;if((o=this._resizeBatch)!=null&&o.sync)if(this.canShiftFromPendingResizes())for(const h of this.pendingResizes)h.index<n&&(s+=h.delta);else this.getMeasurements();let c,u,d;const f=(a=this._singleLaneMeasurements)==null?void 0:a.flat;if(this.options.lanes===1&&f!=null)d=this.options.getItemKey(n),u=f[n*2]+s,c=f[n*2+1];else{const h=this.measurementsCache[n];if(!h)return;d=h.key,u=h.start,c=h.size}const m=this.itemSizeCache.get(d)??c,v=r-m;if(v!==0){const h=this.options.anchorTo==="end"&&!Xc(this.scrollState)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,y=h?this._getLayoutTotalSize():0,p=this.getScrollOffset(),C=!this.itemSizeCache.has(d)?u<p:u+m<=p&&this.scrollDirection!=="backward",b=!Xc(this.scrollState)&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[n]??{index:n,key:d,start:u,size:c,end:u+c,lane:0},v,this):C);(this.pendingMin===null||n<this.pendingMin)&&(this.pendingMin=n),this.itemSizeCache.set(d,r),this.itemSizeCacheVersion++,this.pendingResizes.push({index:n,delta:v});let S=!1;if(this._awaitingCommandReadBack()||(h?S=this.applyScrollAdjustment(this._getLayoutTotalSize()-y):b&&(S=this.applyScrollAdjustment(v))),this._resizeBatch){this._resizeBatch.notify=!0,(i=this._resizeBatch).sync||(i.sync=S);return}this.notify(S),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment()}else if(this.options.lanes>1&&!this.options.useCachedMeasurements&&!this.laneAssignments.has(n)){const h=this.getMeasurements()[n];h&&this.laneAssignments.set(n,h.lane)}},this.getVirtualItems=es(()=>[this.getVirtualIndexes(),this.getMeasurements(),this._holdOffset],(n,r,o)=>{const a=[];for(let i=0,s=n.length;i<s;i++){const c=n[i],u=r[c];a.push(o===0?u:{...u,start:u.start-o,end:u.end-o})}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{var r;const o=this.getMeasurements();if(o.length===0)return;const a=(r=this._singleLaneMeasurements)==null?void 0:r.flat,i=this.options.lanes===1&&a!=null,s=y_(0,o.length-1,i?c=>a[c*2]:c=>qE(o[c]).start,n);return qE(o[s])},this._noteClampMax=()=>{if(!this._awaitingCommandReadBack())return;const n=this._elementMaxScrollOffset();if(n===null)return;const r=this.pendingWrite,o=Math.max(n,0)+this._holdOffset;if(o>=r.target)return;const a=r.lowMaxes??(r.lowMaxes=[]);a[a.length-1]!==o&&a.push(o)},this.getMaxScrollOffset=()=>(this._elementMaxScrollOffset()??0)+this._holdOffset,this._toLayoutOffset=n=>{var r;let o=n+this._holdOffset;return((r=this.pendingScrollAnchor)==null?void 0:r.kind)==="anchor"&&(o+=this.pendingScrollAnchor.delta),o},this._readTrailing=n=>{if(n===null)return;const r=n+this.getSize()-this._drawnListEnd;this._trailing=r>0?r:0},this._elementMaxScrollOffset=()=>{const n=this.scrollElement;if(n===null)return null;if("scrollHeight"in n)return this.options.horizontal?n.scrollWidth-n.clientWidth:n.scrollHeight-n.clientHeight;if("document"in n){const r=n.document.documentElement;return this.options.horizontal?r.scrollWidth-n.innerWidth:r.scrollHeight-n.innerHeight}return null},this._momentumStop=null,this._stopMomentum=n=>{const r=this.scrollElement,o=this.targetWindow;if(r===null||o===null)return;const a="document"in r?r.document.scrollingElement:r;if(!(a!=null&&a.style))return;if(this._momentumStop){this._momentumStop.done=n;return}const{style:i}=a,s=this.options.horizontal?"overflow-x":"overflow-y",c=i.getPropertyValue(s),u=i.getPropertyPriority(s),d=()=>this.options.horizontal?a.clientHeight:a.clientWidth,f=d();if(i.setProperty(s,"hidden","important"),d()!==f){i.setProperty(s,c,u);return}const m={restore:()=>i.getPropertyValue(s)!=="hidden"||i.getPropertyPriority(s)!=="important"?!1:(i.setProperty(s,c,u),!0),done:n};this._momentumStop=m,o.requestAnimationFrame(()=>o.requestAnimationFrame(()=>{this._momentumStop===m&&(this._momentumStop=null,m.restore()&&m.done())}))},this._clampedBy=n=>{const r=this._elementMaxScrollOffset();if(r===null)return null;const o=r+this._holdOffset;return n>o+.5?{target:n,maxAtWrite:o}:null},this.getVirtualDistanceFromEnd=()=>Math.max(this._getLayoutTotalSize()+this.options.scrollMargin-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(n=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=n,this.getOffsetForAlignment=(n,r,o=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),i=this.getScrollOffset();r==="auto"&&(r=n>=i+a?"end":"start"),r==="center"?n+=(o-a)/2:r==="end"&&(n-=a);const s=this.getMaxScrollOffset();return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getSize(),a=this.getScrollOffset(),i=this.getMeasurements()[n];if(!i)return;if(r==="auto")if(i.end>=a+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];if(r==="end"&&n===this.options.count-1){const c=this.getMaxScrollOffset(),u=c-this.options.paddingEnd+this.options.scrollPaddingEnd;return[Math.max(Math.min(u,c),0),r]}const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:o="auto"}={})=>{this._startScroll({index:null,align:r},this.getOffsetForAlignment(n,r),o,"absolute")},this.scrollToIndex=(n,{align:r="auto",behavior:o="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,r);if(!a)return;const[i,s]=a;this._startScroll({index:n,align:s},i,o,"absolute")},this.scrollBy=(n,{behavior:r="auto"}={})=>{const o=this.getOffsetForAlignment((this.getCommandWrittenOffset()??this.getScrollOffset())+n,"start");this._startScroll({index:null,align:"start"},o,r,"relative")},this.scrollToEnd=({behavior:n="auto"}={})=>{if(this.options.count>0){this._startScroll({index:this.options.count-1,align:"end",toEnd:!0},Math.max(this.getMaxScrollOffset(),0),n,"absolute");return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:n})},this.cancelScroll=()=>{this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>{const n=Math.max(this._getLayoutTotalSize()-this._holdOffset,0);return this._drawnListEnd=n+this.options.scrollMargin,n},this._getLayoutTotalSize=()=>{var n,r;const o=this.getMeasurements();let a;if(o.length===0)a=this.options.scrollMargin+this.options.paddingStart;else if(this.options.lanes===1){const i=o.length-1,s=(n=this._singleLaneMeasurements)==null?void 0:n.flat;s!=null?a=s[i*2]+s[i*2+1]:a=((r=o[i])==null?void 0:r.end)??0}else{const i=Array(this.options.lanes).fill(null);let s=o.length-1;for(;s>=0&&i.some(c=>c===null);){const c=o[s];i[c.lane]===null&&(i[c.lane]=c.end),s--}a=Math.max(...i.filter(c=>c!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const n=[];if(this.itemSizeCache.size===0)return n;const r=this.getMeasurements();for(const o of r)o&&this.itemSizeCache.has(o.key)&&n.push({index:o.index,key:o.key,start:o.start,size:o.size,end:o.end,lane:o.lane});return n},this._scrollToOffset=(n,{adjustments:r,behavior:o}={})=>{const a={target:n+(r??0),smooth:o==="smooth"};return this.pendingWrite=a,this.options.scrollToFn(n-this._holdOffset,{behavior:o,adjustments:r},this),a},this.getCommandWrittenOffset=()=>this.scrollState!==null&&this.pendingWrite!==null&&!this.pendingWrite.smooth?this.pendingWrite.target:null,this._awaitingCommandReadBack=()=>{const n=this.getCommandWrittenOffset();return!(pv()&&this._iosGesture.dragging())&&n!==null&&!Xi(n,this.getScrollOffset())},this._followOffsetTarget=n=>{this.scrollState!==null&&this.scrollState.index==null&&(this.scrollState.lastTargetOffset+=n)},this._landedBeforeAnchor=(n,r)=>n.phase!=="queued"&&(n.stableFrames>0||Xi(this.getScrollOffset()-r,n.lastTargetOffset)),this._followAnchor=n=>{this._followOffsetTarget(n);const r=this.scrollState;(r==null?void 0:r.index)!=null&&!r.toEnd&&this._landedBeforeAnchor(r,n)&&(this.scrollState=null)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}get scrollAdjustments(){return 0}applyScrollAdjustment(t,n){if(t===0)return!1;if(this._followOffsetTarget(t),this._canWriteScroll()){const r=this.getScrollOffset();this._clampedAdjustment=this._clampedBy(r+t);const o=this._scrollToOffset(r,{adjustments:t,behavior:n});return this.scrollOffset!==null&&(this.pendingWrite===o&&(this.scrollOffset+=t),this.scrollOffset<0&&(this.scrollOffset=0)),!0}else return this._holdOffset+=t,this.scrollOffset!==null&&(this.scrollOffset+=t),!0}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}getScrollStateTarget(t){const n=t.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:t.index!=null?this.getOffsetForIndex(t.index,t.align):void 0;return n?n[0]:t.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}if(this.scrollState.phase==="queued"){this.scheduleScrollReconcile();return}this.getMeasurements();const r=this.getScrollStateTarget(this.scrollState),o=this.scrollState.index==null?1:this.options.useAnimationFrameWithResizeObserver?3:2,a=r!==this.scrollState.lastTargetOffset;if(!a&&Xi(r,this.getScrollOffset())){if(this.scrollState.phase==="smooth"?this.scrollState.phase="smoothLanded":this.scrollState.phase==="smoothFinishing"&&(this.scrollState.phase="instant"),this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.getScrollOffset()!==r&&this._scrollToOffset(r,{behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,a){const i=this.getSize()||600,s=Math.abs(r-this.getScrollOffset()),c=Xc(this.scrollState)&&s>i;this.scrollState.lastTargetOffset=r,c?this.scrollState.phase="smooth":this.scrollState.phase==="smooth"?this.scrollState.phase="smoothFinishing":this.scrollState.phase==="smoothLanded"&&(this.scrollState.phase="instant"),this._scrollToOffset(r,{behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}_startScroll(t,n,r,o){this.pendingScrollAnchor=null,this._clampedAdjustment=null;const a=this._iosGesture.tail();if(o==="absolute"&&a!==null){if(a==="fling"&&iie()){this._stopMomentum(()=>{const i=this.scrollState;(i==null?void 0:i.phase)!=="queued"||this._iosGesture.tail()!=="fling"||this._reportedOverscroll||(this._iosGesture.end(),this._flushHoldIfReady(!0),this._writeAwaitingCommand())}),this.scrollState={...t,startedAt:this.now(),lastTargetOffset:n,stableFrames:0,phase:"queued",behavior:r,samples:[]},this.scheduleScrollReconcile();return}this._iosGesture.end()}this.scrollState={...t,startedAt:this.now(),lastTargetOffset:n,stableFrames:0,behavior:r,phase:XE(r,t.index!=null&&Xi(n,this.getScrollOffset()))},this._scrollToOffset(n,{behavior:r}),this.scheduleScrollReconcile()}}const y_=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,a=n(o);if(a<r)e=o+1;else if(a>r)t=o-1;else return o}return e>0?e-1:0};function bie(e,t,n){let r=0;for(;r<=t;){const o=(r+t)/2|0,a=e[o*2];if(a<n)r=o+1;else if(a>n)t=o-1;else return o}return r>0?r-1:0}function Cie(e,t,n,r,o){const a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&o!==null){const u=bie(o,a,n);let d=u;const f=n+t;for(;d<a&&o[d*2]+o[d*2+1]<f;)d++;return{startIndex:u,endIndex:d}}let s=y_(0,a,u=>e[u].start,n),c=s;if(r===1)for(;c<a&&e[c].end<n+t;)c++;else if(r>1){const u=Array(r).fill(0);for(;c<a&&u.some(f=>f<n+t);){const f=e[c];u[f.lane]=f.end,c++}const d=Array(r).fill(n+t);for(;s>=0&&d.some(f=>f>=n);){const f=e[s];d[f.lane]=f.start,s--}s=Math.max(0,s-s%r),c=Math.min(a,c+(r-1-c%r))}return{startIndex:s,endIndex:c}}const Up=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Sie({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const[,o]=l.useReducer(v=>v+1,0),a=l.useRef(o).current,i=l.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});i.current.enabled=t,i.current.mode=n;const s=l.useRef(!1),c=v=>{const h=i.current;if(!h.enabled||!h.container)return;const y=v.getTotalSize();if(y!==h.lastSize){h.lastSize=y;const p=v.options.horizontal?"width":"height";h.container.style[p]=`${y}px`}},u=(v,h,y)=>{const p=i.current,g=!!v.options.horizontal,C=h.start-v.options.scrollMargin;p.lastPositions.get(y)!==C&&(p.lastPositions.set(y,C),p.mode==="transform"?y.style.transform=g?`translate3d(${C}px, 0, 0)`:`translate3d(0, ${C}px, 0)`:y.style[g?"left":"top"]=`${C}px`)},d=v=>{const h=i.current;if(!(!h.enabled||!h.container)){c(v);for(const y of v.getVirtualItems()){const p=v.elementsCache.get(y.key);p&&u(v,y,p)}}},f={...r,onChange:(v,h)=>{var y;const p=i.current;let g=!0;if(p.enabled){d(v);const C=v.range,b=p.prevRange;g=!b||b.isScrolling!==v.isScrolling||b.startIndex!==(C==null?void 0:C.startIndex)||b.endIndex!==(C==null?void 0:C.endIndex),g&&(p.prevRange=C?{startIndex:C.startIndex,endIndex:C.endIndex,isScrolling:v.isScrolling}:null)}g&&(e&&h&&!s.current?Jo.flushSync(a):a()),(y=r.onChange)==null||y.call(r,v,h)}},[m]=l.useState(()=>{const v=new yie(f),h=v.measureElement;return v.measureElement=y=>{s.current=!0;try{h(y)}finally{s.current=!1}const p=i.current;if(y!==null&&p.enabled&&p.container){const g=v.measurementsCache[v.indexFromElement(y)];g&&u(v,g,y)}},Object.assign(v,{containerRef:y=>{const p=i.current;p.container=y,p.lastSize=null,y!==null&&d(v)}})});return m.setOptions(f),Up(()=>m._didMount(),[]),Up(()=>(c(m),m._willUpdate())),Up(()=>{d(m)}),m}function xie(e){return Sie({observeElementRect:uie,observeElementOffset:mie,scrollToFn:gie,...e})}const QE=44,Qc=60,Jc=32,wie=({schema:e,rows:t,selectedRowIndex:n,errors:r,onRowSelect:o,onSort:a,sortColumn:i,sortOrder:s,onDuplicate:c,onDelete:u,onInsert:d,onMoveRow:f,onSelectNext:m,onSelectPrev:v})=>{const h=l.useRef(null),y=l.useRef(null),[p,g]=l.useState(null),[C,b]=l.useState(null),S=l.useMemo(()=>{var L,F;const j=(F=(L=e.ui)==null?void 0:L.list)==null?void 0:F.columns;return j&&j.length>0?j.map(A=>({...e.columns.find(U=>U.key===A.key),width:A.width||150,pinned:A.pinned})):e.columns.map(A=>({...A,width:150,pinned:!1}))},[e]),w=l.useMemo(()=>(f?Jc:0)+Qc+S.reduce((L,F)=>L+F.width,0),[S,f]),$=l.useMemo(()=>{const j=new Map;return r.forEach(L=>{const F=j.get(L.rowIndex)||[];F.push(L),j.set(L.rowIndex,F)}),j},[r]),x=xie({count:t.length,getScrollElement:()=>h.current,estimateSize:()=>QE,overscan:20}),E=x.getVirtualItems();l.useEffect(()=>{const j=L=>{const F=L.target;F.tagName==="INPUT"||F.tagName==="TEXTAREA"||F.isContentEditable||(L.key==="ArrowDown"?(L.preventDefault(),m==null||m()):L.key==="ArrowUp"&&(L.preventDefault(),v==null||v()))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[m,v]),l.useEffect(()=>{n!==null&&h.current&&x.scrollToIndex(n,{align:"auto"})},[n,x]);const O=l.useCallback((j,L)=>{g(L),j.dataTransfer.effectAllowed="move",j.dataTransfer.setData("text/plain",String(L));const F=document.createElement("div");F.className="drag-image",F.textContent=`行 ${L+1}`,F.style.cssText="position: absolute; top: -1000px; padding: 8px 16px; background: #1677ff; color: white; border-radius: 4px; font-size: 12px;",document.body.appendChild(F),j.dataTransfer.setDragImage(F,0,0),setTimeout(()=>document.body.removeChild(F),0)},[]),I=l.useCallback((j,L)=>{j.preventDefault(),j.dataTransfer.dropEffect="move",p!==null&&L!==p&&b(L)},[p]),P=l.useCallback(()=>{b(null)},[]),_=l.useCallback((j,L)=>{j.preventDefault(),p!==null&&p!==L&&f&&f(p,L),g(null),b(null)},[p,f]),D=l.useCallback(()=>{g(null),b(null)},[]),R=l.useCallback((j,L)=>{o(n===j?null:L)},[n,o]),N=l.useCallback(j=>{a(j,i===j&&s==="asc"?"desc":"asc")},[i,s,a]),M=(j,L,F)=>{var A;if(j==null||j==="")return ne.jsx("span",{style:{color:"#bfbfbf"},children:"-"});if(L==="boolean")return j?ne.jsx(Ln,{color:"green",children:"Yes"}):ne.jsx(Ln,{color:"default",children:"No"});if(L==="enum"){const H=e.columns.find(X=>X.key===F),U=(A=H==null?void 0:H.enum)==null?void 0:A.find(X=>X.value===j);return ne.jsx(Ln,{children:(U==null?void 0:U.label)||String(j)})}return String(j)},k=(j,L)=>{const F=["table-row"];return L===n&&F.push("row-selected"),j._isNew?F.push("row-is-new"):j._isDirty&&F.push("row-is-dirty"),$.has(L)&&F.push("row-has-error"),F.join(" ")},T=j=>[{key:"insertBefore",label:"前に挿入",icon:ne.jsx(rS,{}),onClick:()=>d({type:"before",index:j})},{key:"insertAfter",label:"後に挿入",icon:ne.jsx(nS,{}),onClick:()=>d({type:"after",index:j})},{type:"divider"},{key:"duplicate",label:"複製",icon:ne.jsx(Wh,{}),onClick:()=>c(j)},{key:"delete",label:"削除",icon:ne.jsx(YC,{}),danger:!0,onClick:()=>u(j)}],z=l.useCallback(()=>{a("_index",i==="_index"&&s==="asc"?"desc":"asc")},[i,s,a]);return ne.jsxs("div",{className:"data-table-wrapper",ref:y,tabIndex:0,children:[ne.jsxs("div",{className:"data-table-header",style:{minWidth:w},children:[f&&ne.jsx("div",{className:"table-cell header-cell",style:{width:Jc,minWidth:Jc}}),ne.jsxs("div",{className:"table-cell header-cell sortable",style:{width:Qc,minWidth:Qc},onClick:z,children:[ne.jsx("span",{children:"#"}),i==="_index"&&(s==="asc"?ne.jsx(zE,{style:{color:"#1677ff",marginLeft:4}}):ne.jsx(LE,{style:{color:"#1677ff",marginLeft:4}}))]}),S.map(j=>ne.jsxs("div",{className:"table-cell header-cell sortable",style:{width:j.width,minWidth:j.width},onClick:()=>N(j.key),children:[ne.jsx("span",{children:j.label}),i===j.key&&(s==="asc"?ne.jsx(zE,{style:{color:"#1677ff",marginLeft:4}}):ne.jsx(LE,{style:{color:"#1677ff",marginLeft:4}}))]},j.key))]}),ne.jsx("div",{className:"data-table-body",ref:h,children:ne.jsx("div",{style:{height:x.getTotalSize(),width:w,position:"relative"},children:E.map(j=>{const L=t[j.index],F=j.index,A=p===F,H=C===F;return ne.jsx(yc,{menu:{items:T(F)},trigger:["contextMenu"],children:ne.jsxs("div",{className:`${k(L,F)}${A?" row-dragging":""}${H?" row-drag-over":""}`,style:{position:"absolute",top:0,left:0,width:"100%",height:QE,transform:`translateY(${j.start}px)`,opacity:A?.5:1},onClick:()=>R(F,L._arrayIndex),onDragOver:U=>I(U,F),onDragLeave:P,onDrop:U=>_(U,F),children:[f&&ne.jsx("div",{className:"table-cell drag-handle",style:{width:Jc,minWidth:Jc,cursor:"grab"},draggable:!0,onDragStart:U=>O(U,F),onDragEnd:D,children:ne.jsx(vN,{style:{color:"#bfbfbf"}})}),ne.jsx("div",{className:"table-cell",style:{width:Qc,minWidth:Qc,color:"#8c8c8c",fontSize:12},children:L._isNew?"NEW":L._rowIndex}),S.map(U=>ne.jsx("div",{className:"table-cell",style:{width:U.width,minWidth:U.width},children:M(L[U.key],U.type,U.key)},U.key))]})},j.index)})})})]})},$ie=({schema:e,rows:t,selectedRowIndex:n,errors:r,onRowSelect:o,onDuplicate:a,onDelete:i,onInsert:s})=>{var h,y,p,g,C;const c=((y=(h=e.ui)==null?void 0:h.list)==null?void 0:y.tile)||{columns:3,titleField:((p=e.columns[0])==null?void 0:p.key)||"",subtitleField:(g=e.columns[1])==null?void 0:g.key},u=l.useMemo(()=>{const b=new Map;return r.forEach(S=>{const w=b.get(S.rowIndex)||[];w.push(S),b.set(S.rowIndex,w)}),b},[r]),d=(b,S)=>{const w=["tile-card"];return S===n&&w.push("selected"),b._isNew?w.push("is-new"):b._isDirty&&w.push("is-dirty"),u.has(S)&&w.push("has-error"),w.join(" ")},f=b=>[{key:"insertBefore",label:"前に挿入",icon:ne.jsx(rS,{}),onClick:()=>s({type:"before",index:b})},{key:"insertAfter",label:"後に挿入",icon:ne.jsx(nS,{}),onClick:()=>s({type:"after",index:b})},{type:"divider"},{key:"duplicate",label:"複製",icon:ne.jsx(Wh,{}),onClick:()=>a(b)},{key:"delete",label:"削除",icon:ne.jsx(YC,{}),danger:!0,onClick:()=>i(b)}],m=(C=e.csv)==null?void 0:C.primaryKey,v=m?e.columns.find(b=>b.key===m):e.columns[0];return t.length===0?ne.jsx("div",{style:{padding:48,flex:1},children:ne.jsx(Io,{description:"データがありません"})}):ne.jsx("div",{className:`tile-grid columns-${c.columns}`,style:{alignContent:"flex-start"},children:t.map((b,S)=>{var O;const w=c.titleField||((O=e.columns[0])==null?void 0:O.key),$=w?b[w]:b._rowIndex,x=c.subtitleField?b[c.subtitleField]:void 0,E=v?b[v.key]:b._rowIndex;return ne.jsx(yc,{menu:{items:f(S)},trigger:["contextMenu"],children:ne.jsx(Xs,{className:d(b,S),onClick:()=>o(n===S?null:b._arrayIndex),size:"small",children:ne.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[ne.jsx("div",{style:{fontWeight:600,fontSize:15},children:String($||"-")}),x!==void 0&&ne.jsx("div",{children:typeof x=="boolean"?ne.jsx(Ln,{color:x?"green":"default",children:x?"Yes":"No"}):ne.jsx(Ln,{children:String(x)})}),ne.jsxs("div",{style:{borderTop:"1px solid #f0f0f0",paddingTop:8,marginTop:4,color:"#8c8c8c",fontSize:12},children:[v?`${v.label}: `:"ID: ",String(E)]}),b._isNew&&ne.jsx(Ln,{color:"green",style:{alignSelf:"flex-start"},children:"NEW"}),b._isDirty&&!b._isNew&&ne.jsx(Ln,{color:"orange",style:{alignSelf:"flex-start"},children:"変更あり"})]})})},S)})})},Eie=({schema:e,rows:t,viewMode:n,selectedRowIndex:r,errors:o,searchQuery:a,sortColumn:i,sortOrder:s,isDirty:c,readOnly:u=!1,onRowSelect:d,onInsert:f,onDuplicate:m,onDelete:v,onMoveRow:h,onSort:y,onResetSort:p,onQuickSearch:g,onViewModeChange:C,onResetChanges:b,onReload:S})=>{var D,R;const w=((R=(D=e.ui)==null?void 0:D.list)==null?void 0:R.viewMode)==="both",$=l.useMemo(()=>{var M,k,T;let N=t.map((z,j)=>({...z,_arrayIndex:j}));if(a){const z=a.toLowerCase(),j=(T=(k=(M=e.ui)==null?void 0:M.list)==null?void 0:k.quickSearch)==null?void 0:T.columns,L=j&&j.length>0?e.columns.filter(F=>j.includes(F.key)):e.columns;N=N.filter(F=>L.some(A=>{const H=F[A.key];return H!==void 0&&String(H).toLowerCase().includes(z)}))}return i&&(i==="_index"?N.sort((z,j)=>{const L=z._arrayIndex-j._arrayIndex;return s==="asc"?L:-L}):N.sort((z,j)=>{const L=z[i],F=j[i];if(L===F)return 0;if(L==null)return 1;if(F==null)return-1;const A=String(L).localeCompare(String(F),"ja",{numeric:!0});return s==="asc"?A:-A})),N},[t,a,i,s,e.columns]),x=!i&&!a,E=l.useMemo(()=>{var k,T,z;const N=(z=(T=(k=e.ui)==null?void 0:k.list)==null?void 0:T.quickSearch)==null?void 0:z.columns;return!N||N.length===0?"検索...":`検索 (${N.map(j=>{var L;return((L=e.columns.find(F=>F.key===j))==null?void 0:L.label)||j}).join(", ")})`},[e]),O=l.useMemo(()=>{if(r===null)return null;const N=$.findIndex(M=>M._arrayIndex===r);return N>=0?N:null},[$,r]),I=(N,M)=>{const k=$[N],T=$[M];k&&T&&h(k._arrayIndex,T._arrayIndex)},P=()=>{$.length!==0&&(O===null?d($[0]._arrayIndex):O<$.length-1&&d($[O+1]._arrayIndex))},_=()=>{$.length!==0&&(O===null?d($[$.length-1]._arrayIndex):O>0&&d($[O-1]._arrayIndex))};return ne.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[ne.jsxs("div",{className:"data-list-toolbar",children:[ne.jsxs("div",{className:"data-list-toolbar-left",children:[ne.jsx(Xae,{value:a,onChange:g,placeholder:E}),i?ne.jsx(Fn,{icon:ne.jsx(Jre,{}),onClick:p,type:"primary",ghost:!0,children:"ソート解除"}):ne.jsx(Yae,{selectedRowIndex:r,onInsert:f,disabled:u})]}),ne.jsxs("div",{className:"data-list-toolbar-right",children:[ne.jsxs(Ri,{size:"middle",children:[ne.jsxs("span",{style:{color:"#8c8c8c",fontSize:13},children:[$.length.toLocaleString()," 件"]}),o.length>0&&ne.jsxs("span",{style:{color:"#ff4d4f",fontSize:13},children:[o.length," エラー"]})]}),ne.jsx(xr,{title:"変更を取り消す",children:ne.jsx(Fn,{icon:ne.jsx(Yre,{}),onClick:b,disabled:!c})}),ne.jsx(xr,{title:"リロード",children:ne.jsx(Fn,{icon:ne.jsx(nQ,{}),onClick:S})}),w&&ne.jsx(iq,{value:n,onChange:N=>C(N),options:[{value:"table",icon:ne.jsx(md,{})},{value:"tile",icon:ne.jsx(Fre,{})}]})]})]}),ne.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:n==="table"?ne.jsx(wie,{schema:e,rows:$,selectedRowIndex:O,errors:o,onRowSelect:d,onSort:y,sortColumn:i,sortOrder:s,onDuplicate:m,onDelete:v,onInsert:f,onMoveRow:!u&&x?I:void 0,onSelectNext:P,onSelectPrev:_}):ne.jsx($ie,{schema:e,rows:$,selectedRowIndex:O,errors:o,onRowSelect:d,onDuplicate:m,onDelete:v,onInsert:f})})]})};var Ic=e=>e.type==="checkbox",og=e=>e.type==="file",ol=e=>e instanceof Date,jn=e=>e==null;const iS=e=>typeof e=="object";var mn=e=>!jn(e)&&!Array.isArray(e)&&iS(e)&&!ol(e),Ob=e=>mn(e)&&e.target?Ic(e.target)?e.target.checked:og(e.target)?e.target.files:e.target.value:e;const Oie=/[.[\]'"]/;var Rc=e=>e.split(Oie).filter(Boolean);function Iie(e,t){const n=Rc(t);let r=e._formValues,o=e._defaultValues;for(let a=0;a<n.length-1;a++){const i=n[a];if(r=r==null?r:r[i],o=o==null?o:o[i],r===null||o===null)return null}}var b_=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),lS=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function rn(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);const t=typeof Blob<"u"&&e instanceof Blob,n=typeof FileList<"u"&&e instanceof FileList;if(lS&&(t||n))return e;const r=Array.isArray(e),o=Object.getPrototypeOf(e);if(!r&&o&&o.constructor!==Object)return e;const a=r?new Array(e.length):Object.create(o);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=rn(e[i]));return a}const Ma={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ro={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ur={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Rie=[ur.required,ur.min,ur.max,ur.minLength,ur.maxLength,ur.pattern,ur.validate],os="form",Ib="root",sS=["__proto__","constructor","prototype"],Pie=/^\w*$/;var Hd=e=>Pie.test(e),Wt=e=>e===void 0,nt=(e,t,n)=>{if(!t||!mn(e))return n;const r=Hd(t)?[t]:Rc(t);if(r.some(a=>sS.includes(a)))return n;const o=r.reduce((a,i)=>jn(a)?void 0:a[i],e);return Wt(o)||o===e?Wt(e[t])?n:e[t]:o},Xr=e=>typeof e=="boolean",br=e=>typeof e=="function",sn=(e,t,n)=>{let r=-1;const o=Hd(t)?[t]:Rc(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let c=n;if(r!==i){const u=e[s];c=mn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(sS.includes(s))return;e[s]=c,e=e[s]}};const C_=le.createContext(null);C_.displayName="HookFormControlContext";const cS=()=>le.useContext(C_);var S_=(e,t,n,r=!0)=>{const o={};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Ro.all&&(t._proxyFormState[i]=!r||Ro.all),n&&(n[i]=!0),e[i]}});return o};const uS=typeof window<"u"?le.useLayoutEffect:le.useEffect;var Mie=e=>{const t=e.constructor&&e.constructor.prototype;return mn(t)&&t.hasOwnProperty("isPrototypeOf")},Rb=e=>jn(e)||!iS(e);const JE=(e,t)=>t.length===0&&!Array.isArray(e)&&Object.getPrototypeOf(e)!==null&&!Mie(e);function yr(e,t,n=!1,r=new WeakMap){if(e===t)return!0;if(Rb(e)||Rb(t))return Object.is(e,t);if(ol(e)&&ol(t))return Object.is(e.getTime(),t.getTime());if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;if(JE(e,o)||JE(t,a))return Object.is(e,t);if(!o.length&&Array.isArray(e)!==Array.isArray(t))return!1;const i=r.get(e);if(i&&i.has(t))return!0;if(i)i.add(t);else{const s=new WeakSet;s.add(t),r.set(e,s)}for(const s of o){const c=e[s];if(!Object.prototype.hasOwnProperty.call(t,s))return!1;if(!n||s!=="ref"){const u=t[s];if(ol(c)&&ol(u)||(mn(c)||Array.isArray(c))&&(mn(u)||Array.isArray(u))?!yr(c,u,n,r):!Object.is(c,u))return!1}}return!0}const x_=({defaultValues:e,...t})=>({...rn(t),defaultValues:e});function dS(e,t=rn){const n=le.useRef(!1),r=le.useRef(!1),o=le.useRef(void 0),a=le.useRef(0);a.current++,!r.current&&e&&(r.current=!0,o.current=t(e()));const i=le.useCallback((c,u,d)=>{if(c&&(n.current||r.current&&a.current>1)){const f=u();yr(o.current,f)||d(f)}n.current=!0},[]),s=le.useCallback((c,u)=>{c&&(o.current=t(u()))},[t]);return{resyncIfNeeded:i,snapshot:s}}function Nie(e){const t=cS(),{control:n=t,disabled:r,name:o,exact:a}=e||{},i=()=>({...n._formState,defaultValues:n._defaultValues}),[s,c]=le.useState(i),u=le.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:d,snapshot:f}=dS(i,x_);return uS(()=>{d(!r,i,c);const m=n._subscribe({name:o,formState:u.current,exact:a,callback:v=>{!r&&c({...n._formState,...v,defaultValues:n._defaultValues})}});return()=>{m(),f(!r,i)}},[n,o,r,a,d,f]),le.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),le.useMemo(()=>S_(s,n,u.current,!1),[s,n])}var fr=e=>typeof e=="string",Pb=(e,t,n,r,o)=>fr(e)?(r&&t.watch.add(e),nt(n,e,o)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),nt(n,a,nt(o,a)))):(r&&(t.watchAll=!0),n);function _ie(e){const t=cS(),{control:n=t,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},c=le.useRef(o),u=le.useRef(s),d=le.useRef(n),f=le.useRef(r);u.current=s;const m=()=>{const I=n._getWatch(r,c.current);return u.current?u.current(I):I},[v,h]=le.useState(m),y=le.useRef(v),p=le.useCallback(I=>{const P=Pb(r,n._names,I||n._formValues,!1,c.current);return u.current?u.current(P):P},[n._formValues,n._names,r]),g=le.useCallback(I=>{if(!a){const P=Pb(r,n._names,I||n._formValues,!1,c.current);if(u.current){const _=u.current(P);yr(_,y.current)||(h(_),y.current=_)}else h(P),y.current=P}},[n._formValues,n._names,a,r]),{resyncIfNeeded:C,snapshot:b}=dS(m),S=le.useRef(g);S.current=g;const w=le.useRef(p);w.current=p,uS(()=>{d.current!==n||!yr(f.current,r)?(d.current=n,f.current=r,S.current()):C(!a,()=>w.current(),P=>{const _=rn(P);h(_),y.current=_});const I=n._subscribe({name:r,formState:{values:!0},exact:i,callback:P=>{S.current(P.values)}});return()=>{I(),b(!a,()=>w.current())}},[n,i,r,a,C,b]),le.useEffect(()=>n._removeUnmounted());const $=d.current!==n,x=f.current,E=le.useMemo(()=>!$&&!yr(x,r),[$,r,x]);return($||E)&&(c.current=o),!a&&($||E)?p():v}function Al(e){const t=cS(),{name:n,disabled:r,control:o=t,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,c=b_(o._names.array,n),u=le.useMemo(()=>{const $=nt(o._formValues,n,nt(o._defaultValues,n,i));return Wt($)?Iie(o,n):$},[o,n,i]),d=_ie({control:o,name:n,defaultValue:u,exact:s}),f=Nie({control:o,name:n,exact:s}),m=le.useRef(e),v=le.useRef(a),h=le.useRef(null),y=le.useRef(void 0),p=le.useRef(o.register(n,{...e.rules,value:y.current===n&&!nt(o._fields,n)?void 0:d,...Xr(e.disabled)?{disabled:e.disabled}:{}}));y.current=n,m.current=e;const g=le.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!nt(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!nt(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!nt(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!nt(f.validatingFields,n)},error:{enumerable:!0,get:()=>nt(f.errors,n)}}),[f,n]),C=le.useCallback($=>{const x=Ob($);return nt(o._fields,n)||(p.current=o.register(n,{...m.current.rules,value:x})),p.current.onChange({target:{value:Ob($),name:n},type:Ma.CHANGE})},[n,o]),b=le.useCallback(()=>{const $=nt(o._formValues,n);return nt(o._fields,n)||(p.current=o.register(n,{...m.current.rules,value:$})),p.current.onBlur({target:{value:$,name:n},type:Ma.BLUR})},[n,o]),S=le.useCallback($=>{$&&(h.current={focus:()=>br($.focus)&&$.focus(),select:()=>br($.select)&&$.select(),setCustomValidity:E=>br($.setCustomValidity)&&$.setCustomValidity(E),reportValidity:()=>br($.reportValidity)&&$.reportValidity()});const x=nt(o._fields,n);x&&x._f&&$&&(x._f.ref=h.current,x._f._c=!0)},[o._fields,n]),w=le.useMemo(()=>({name:n,value:d,...Xr(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:C,onBlur:b,ref:S}),[n,r,f.disabled,C,b,S,d]);return le.useEffect(()=>{if(v.current=a,o._options.shouldUnregister||a){const $=rn(nt(a?o._defaultValues:o._options.values||o._defaultValues,n,nt(o._options.defaultValues,n,m.current.defaultValue)));sn(o._defaultValues,n,$),Wt(nt(o._formValues,n))&&sn(o._formValues,n,$)}else!c&&!Wt(m.current.defaultValue)&&Wt(nt(o._defaultValues,n))&&(sn(o._defaultValues,n,rn(m.current.defaultValue)),o._subjects.state.next({defaultValues:o._defaultValues}))},[o,n,c,a]),le.useEffect(()=>{p.current=o.register(n,{...m.current.rules,...Xr(m.current.disabled)?{disabled:m.current.disabled}:{}});const $=(x,E)=>{const O=nt(o._fields,x);O&&O._f&&(O._f.mount=E,O._f._c=E)};if($(n,!0),!c&&o.register(n,{...m.current.rules,...Xr(m.current.disabled)?{disabled:m.current.disabled}:{}}),h.current){const x=nt(o._fields,n);x&&x._f&&(x._f.ref=h.current)}return()=>{const x=o._options.shouldUnregister||v.current;(c?x&&!o._state.action:x)?o.unregister(n):$(n,!1)}},[n,o,c]),le.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),le.useMemo(()=>({field:w,formState:f,fieldState:g}),[w,f,g])}var Af=e=>({isOnSubmit:!e||e===Ro.onSubmit,isOnBlur:e===Ro.onBlur,isOnChange:e===Ro.onChange,isOnAll:e===Ro.all,isOnTouch:e===Ro.onTouched}),qp=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const r of t.watch)if(e.startsWith(r)&&e.charAt(r.length)===".")return!0;return!1};const xs=(e,t,n)=>{var r;for(const o of n||Object.keys(e)){if(o==="_f")continue;const a=n?nt(e,o):e[o];if(a){const{_f:i}=a;if(i){const s=(r=i.refs)===null||r===void 0?void 0:r.find(c=>!c.disabled);if(s&&t(s,i.name))return!0;if(i.ref&&t(i.ref,i.name))return!0;if(xs(a,t))return!0}else if((mn(a)||Array.isArray(a))&&xs(a,t))return!0}}};var ZE=(e,t,n)=>{const r=nt(e,n),o=Array.isArray(r)?r:[];return sn(o,Ib,nt(t[n],Ib,t[n])),sn(e,n,o),e},Vn=e=>mn(e)&&!Object.keys(e).length,yv=e=>{if(!lS)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ag=e=>e.type==="radio",bv=e=>e instanceof RegExp,Tie=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{};const eO={value:!1,isValid:!1},tO={value:!0,isValid:!0};var w_=e=>{if(!Array.isArray(e))return eO;if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}const t=e[0];return!t||!t.checked||t.disabled?eO:!t.attributes||!("value"in t.attributes)||Wt(t.value)||t.value===""?tO:{value:t.value,isValid:!0}};const nO={isValid:!1,value:null};var $_=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,nO):nO;function rO(e,t,n="validate"){if(fr(e)||Array.isArray(e)&&e.length&&e.every(fr)||Xr(e)&&!e)return{type:n,message:fr(e)?e:"",ref:t}}var ns=e=>mn(e)&&!bv(e)?e:{value:e,message:""},oO=async(e,t,n,r,o,a)=>{const{ref:i,refs:s,required:c,maxLength:u,minLength:d,min:f,max:m,pattern:v,validate:h,name:y,valueAsNumber:p,mount:g,_c:C}=e._f,b=nt(n,y);if(!g||t.has(y))return{};const S=s?s[0]:i,w=R=>{if(o&&S.reportValidity){const N=Xr(R)?"":R||"";s?s.forEach(M=>br(M.setCustomValidity)&&M.setCustomValidity(N)):S.setCustomValidity(N),S.reportValidity()}},$={},x=!C&&ag(i),E=!C&&Ic(i),O=x||E,I=(p||og(i))&&Wt(i.value)&&Wt(b)||yv(i)&&i.value===""&&!C||b===""||Array.isArray(b)&&!b.length,P=Tie.bind(null,y,r,$),_=(R,N,M,k=ur.maxLength,T=ur.minLength)=>{const z=R?N:M;$[y]={type:R?k:T,message:z,ref:i,...P(R?k:T,z)}};if(a?!Array.isArray(b)||!b.length:c&&(!O&&(I||jn(b))||Xr(b)&&!b||E&&!w_(s).isValid||x&&!$_(s).isValid)){const{value:R,message:N}=fr(c)?{value:!!c,message:c}:ns(c);if(R&&($[y]={type:ur.required,message:N,ref:S,...P(ur.required,N)},!r))return w(N),$}if(!I&&(!jn(f)||!jn(m))){let R,N;const M=ns(m),k=ns(f);if(!jn(b)&&!ol(b)&&!isNaN(b)){const T=!C&&i.valueAsNumber||b&&+b;jn(M.value)||(R=T>M.value),jn(k.value)||(N=T<k.value)}else{const T=!C&&i.valueAsDate||new Date(b),z=F=>new Date(new Date().toDateString()+" "+F),j=i.type=="time",L=i.type=="week";fr(M.value)&&b&&(R=j?z(b)>z(M.value):L?b>M.value:T>new Date(M.value)),fr(k.value)&&b&&(N=j?z(b)<z(k.value):L?b<k.value:T<new Date(k.value))}if((R||N)&&(_(!!R,M.message,k.message,ur.max,ur.min),!r))return w($[y].message),$}if((!jn(u)||!jn(d))&&!I&&(fr(b)||a&&Array.isArray(b))){const R=ns(u),N=ns(d),M=!jn(R.value)&&b.length>+R.value,k=!jn(N.value)&&b.length<+N.value;if((M||k)&&(_(M,R.message,N.message),!r))return w($[y].message),$}if(v&&!I&&fr(b)){const{value:R,message:N}=ns(v);if(bv(R)&&!b.match(R)&&($[y]={type:ur.pattern,message:N,ref:i,...P(ur.pattern,N)},!r))return w(N),$}if(h){if(br(h)){const R=await h(b,n),N=rO(R,S);if(N&&($[y]={...N,...P(ur.validate,N.message)},!r))return w(N.message),$}else if(mn(h)){let R={};for(const N in h){if(!Vn(R)&&!r)break;const M=rO(await h[N](b,n),S,N);M&&(R={...M,...P(N,M.message)},r||w(M.message),r&&($[y]=R))}if(!Vn(R)&&($[y]={ref:S,...R},!r))return $}}const D=$[y];return w(D?D.message:!0),$},Gp=e=>Array.isArray(e)?e:[e],E_=e=>Array.isArray(e)?e.filter(Boolean):[];function Die(e,t){const n=t.length-1;let r=0;for(;r<n;){if(jn(e)){e=void 0;break}e=e[t[r]],r++}return e}function kie(e){for(const t in e)if(e.hasOwnProperty(t)&&!Wt(e[t]))return!1;return!0}function Hn(e,t){if(!mn(e)&&!Array.isArray(e))return e;if(fr(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:Hd(t)?[t]:Rc(t);if(n.some(i=>sS.includes(String(i))))return e;const r=n.length===1?e:Die(e,n),o=n.length-1,a=n[o];return r&&(mn(r)||Array.isArray(r))&&delete r[a],o!==0&&(mn(r)&&Vn(r)||Array.isArray(r)&&kie(r))&&Hn(e,n.slice(0,-1)),e}var aO=()=>{let e=new Set,t=0;return{get observers(){return Array.from(e)},next:a=>{const i=e;t++;for(const s of i)s.next&&s.next(a);i===e&&t--},subscribe:a=>(e.add(a),{unsubscribe:()=>{t&&(e=new Set(e),t=0),e.delete(a)}}),unsubscribe:()=>{e=new Set,t=0}}};function O_(e,t){const n=Array.isArray(e)?[]:{};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r],a=t[r];o&&(mn(o)||Array.isArray(o))&&a?n[r]=O_(o,a):e[r]&&(n[r]=a)}return n}const iO=(e,t)=>e!==null&&iS(e)&&Object.prototype.hasOwnProperty.call(e,t);var Yp=(e,t)=>{if(!t)return!1;let n=e;for(const r of Hd(t)?[t]:Rc(t)){if(!iO(n,r))return iO(e,t);n=n[r]}return!0},fS=e=>e.type==="select-multiple";const jie=e=>{const t=[...e.options];return!e.multiple&&e.size<2&&!t.some(n=>n.defaultSelected)?e.selectedIndex!==t.findIndex(n=>{var r;return!n.disabled&&!(!((r=n.parentElement)===null||r===void 0)&&r.matches("optgroup[disabled]"))}):t.some(n=>n.selected!==n.defaultSelected)};var zie=e=>Ic(e)?e.checked!==e.defaultChecked:e.type==="select-one"||fS(e)?jie(e):!ag(e)&&e.type!=="range"&&e.type!=="color"&&"defaultValue"in e&&e.value!==e.defaultValue,Lie=e=>ag(e)||Ic(e),Xp=e=>yv(e)&&e.isConnected;function lO(e){return Array.isArray(e)||mn(e)}function I_(e,t,n="",r=[]){for(const o in e){const a=n?`${n}.${o}`:o,i=e[o];lO(i)&&lO(nt(t,a))?I_(i,t,a,r):i&&r.push(a)}return r}var Fie=e=>{for(const t in e)if(br(e[t]))return!0;return!1};function R_(e){return Array.isArray(e)||mn(e)&&!Fie(e)}function P_(e){return!!(e&&"_f"in e)}function M_(e){return Array.isArray(e)?!e.some(t=>!Wt(t)):!Object.keys(e).length}function Mb(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Nb(e,t={},n){for(const r in e){const o=e[r],a=n&&n[r];R_(o)&&(!Array.isArray(o)||!P_(a))?(t[r]=Array.isArray(o)?[]:{},Nb(o,t[r],a),M_(t[r])&&Mb(t,r)):Wt(o)||(t[r]=!0)}return t}function Ra(e,t,n,r){n||(n=Nb(t,Array.isArray(jn(t)?e:t)?[]:{},r));for(const o in e){const a=e[o],i=r&&r[o];R_(a)&&(!Array.isArray(a)||!P_(i))?(Wt(t)||Rb(n[o])?n[o]=Nb(a,Array.isArray(a)?[]:{},i):Ra(a,jn(t)?{}:t[o],n[o],i),M_(n[o])&&Mb(n,o)):yr(a,jn(t)?void 0:t[o])?Mb(n,o):n[o]=!0}return n}var Aie=(e,t)=>{const n=t.split("."),r=[];let o=n[0];for(let a=1;a<n.length;o+="."+n[a++])!isNaN(+n[a])&&e.has(o)&&r.push(`${o}.${n[a]}`);return r},_b=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wt(e)?e:t?e===""?NaN:e&&+e:n&&fr(e)?new Date(e):r?r(e):e;function sO(e){const t=e.ref;return og(t)?t.files:ag(t)?$_(e.refs).value:fS(t)?[...t.selectedOptions].filter(n=>{var r;return!n.disabled&&!(!((r=n.closest)===null||r===void 0)&&r.call(n,"optgroup[disabled]"))}).map(({value:n})=>n):Ic(t)?w_(e.refs).value:_b(t.value,e)}var Bie=(e,t,n,r)=>{const o={};for(const a of e){const i=nt(t,a);i&&sn(o,a,rn(i._f))}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},rs=e=>Wt(e)?e:bv(e)?e.source:mn(e)?bv(e.value)?e.value.source:e.value:e;const cO="AsyncFunction";var Hie=e=>{if(!e||!e.validate)return!1;if(br(e.validate))return e.validate.constructor.name===cO;if(mn(e.validate)){for(const t in e.validate)if(e.validate[t].constructor.name===cO)return!0}return!1},Vie=e=>e.mount&&(e.required||!Wt(e.required)&&e.required!==!1||!Wt(e.min)||!Wt(e.max)||!Wt(e.maxLength)||!Wt(e.minLength)||e.pattern||e.validate);function uO(e,t,n){const r=nt(e,n);if(r&&(r.type||r.message)||Array.isArray(r))return{error:r,name:n};const o=n.split(".");for(;o.length;){const a=o.join("."),i=nt(t,a),s=nt(e,a);if(i&&!Array.isArray(i)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};o.pop()}return{name:n}}var Wie=(e,t,n)=>{const r=Object.keys(e).filter(o=>o!=="name");return!r.length||n&&r.length>=Object.keys(t).length||r.find(o=>t[o]===(!n||Ro.all))};const dO=(e,t,n)=>n?e===t||e.startsWith(t+"."):e.startsWith(t)||t.startsWith(e);var fO=(e,t,n)=>{if(!e||!t||e===t)return!0;if(!Array.isArray(e))return dO(e,t,n);for(const r of e)if(r&&dO(r,t,n))return!0;return!1},Kie=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Uie=(e,t)=>{const n=nt(e,t);!E_(n).length&&!(n&&n.root)&&Hn(e,t)};const pm={mode:Ro.onSubmit,reValidateMode:Ro.onChange,shouldFocusError:!0},qie=(e,t)=>{for(const n in e)delete e[n];Object.assign(e,t)},N_={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Gie(e={}){let t={...pm,...e},n={...rn(N_),isLoading:br(t.defaultValues),errors:rn(t.errors)||{},disabled:t.disabled||!1},r={},o=mn(t.defaultValues)||mn(t.values)?rn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:rn(o),i={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s=!1,c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const u={},d={},f=new Set;let m=Af(t.mode),v=Af(t.reValidateMode);const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},y={...h},p={},g=(...V)=>V.some(ae=>y[ae]||p[ae]),C=V=>{for(const ae of f)if(fO(ae.name,V,ae.exact))return!0;return!1},b={array:aO(),state:aO()};let S=0,w=0,$=0,x=0;const E={};let O=t.criteriaMode===Ro.all;const I=(V,ae)=>me=>{clearTimeout(d[V]),d[V]=setTimeout(ae,me)},P=V=>{clearTimeout(d[V]),delete d[V],delete u[V]},_=V=>{P(V);const ae=`${V}.`;for(const me of Object.keys(u))me.startsWith(ae)&&P(me)},D=async V=>{if(!i.keepIsValid&&!t.disabled&&(g("isValid")||V)){const ae=++S,me=$;let Ce;if(t.resolver?(Ce=Vn((await ee()).errors),ae===S&&N()):Ce=await ue({fields:r,onlyCheckValid:!0,eventType:Ma.VALID}),ae!==S)return;if(me!==$)return D(V);Ce!==n.isValid&&b.state.next({isValid:Ce})}},R=(V,ae)=>{const me=[...V];if(!me.some(pe=>pe&&(ae?nt(n.validatingFields,pe)!==!0:Yp(n.validatingFields,pe))))return;const Ce=rn(n.validatingFields);for(const pe of me)pe&&(ae?sn(Ce,pe,!0):Hn(Ce,pe));yr(n.validatingFields,Ce)||(n.validatingFields=Ce)},N=(V,ae)=>{!t.disabled&&g("isValidating","validatingFields")&&(R(V||c.mount,ae),b.state.next({validatingFields:n.validatingFields,isValidating:!Vn(n.validatingFields)}))},M=()=>{n.dirtyFields=Ra(o,a,void 0,r)},k=(V,ae=[],me,Ce,pe=!0,Re=!0)=>{if(Ce&&me&&!t.disabled){i.action=!0,i.keepIsValid=!1;const W=nt(r,V),K=W&&W._f,G=K?Object.assign([],W):W;if(i.actionArrayLengths.has(V)||i.actionArrayLengths.set(V,Array.isArray(G)?G.length:0),Re&&Array.isArray(G)){const Ve=me(G,Ce.argA,Ce.argB)||G;K?sn(r,V,{...Ve,_f:K}):pe&&sn(r,V,Ve)}const ce=nt(n.errors,V);if(Re&&Array.isArray(ce)){const Ve=ce.root,ke=me(ce,Ce.argA,Ce.argB)||ce;Ve&&(ke.root=Ve),pe&&sn(n.errors,V,ke),Uie(n.errors,V),n.errors={...n.errors}}const ye=nt(n.touchedFields,V),De=Re&&Array.isArray(ye);if(De){const Ve=me(ye,Ce.argA,Ce.argB);pe&&sn(n.touchedFields,V,Ve)}const Be=nt(n.dirtyFields,V);if(Re&&Array.isArray(Be)){const Ve=me(Be,Ce.argA,Ce.argB)||Be;pe&&sn(n.dirtyFields,V,Ve)}g("dirtyFields")?M():s=!0,b.state.next({name:V,isDirty:Q(V,ae),dirtyFields:n.dirtyFields,...De&&{touchedFields:n.touchedFields},errors:n.errors,isValid:n.isValid})}else sn(a,V,ae)},T=(V,ae)=>{sn(n.errors,V,ae),n.errors={...n.errors},b.state.next({errors:n.errors})},z=V=>{Object.keys(u).forEach(P);const ae=!Vn(V);n.errors=rn(V),b.state.next({errors:n.errors,...ae?{isValid:!1}:{}}),!ae&&i.mount&&D()},j=V=>Hd(V)?[V]:Rc(V),L=V=>{const ae=j(V);let me=a,Ce=o;for(let pe=0;pe<ae.length-1;pe++){const Re=ae[pe];if(me=jn(me)?me:me[Re],Ce=jn(Ce)?Ce:Ce[Re],me===null&&Ce!==null)return!0}return!1},F=V=>{if(!i.actionArrayLengths.size)return!1;const ae=j(V);let me=a,Ce="",pe=-1,Re=0;for(let W=0;W<ae.length;W++){if(jn(me))return!1;const K=ae[W];if(Ce=Ce?`${Ce}.${K}`:K,Array.isArray(me)&&+K>=me.length)return pe===-1?!1:W===pe?+K<Re:!0;if(i.actionArrayLengths.has(Ce)&&(pe=W+1,Re=i.actionArrayLengths.get(Ce)),me=me[K],Wt(me)&&pe!==-1&&W>pe&&+ae[pe]<Re)return!0}return!1},A=V=>{let ae=a;for(const me of j(V)){if(Array.isArray(ae)&&+me>=ae.length)return!0;ae=ae&&ae[me]}return!1},H=(V,ae,me,Ce)=>{const pe=nt(r,V);if(pe){if(L(V)||F(V))return;const Re=Wt(nt(a,V)),W=nt(a,V,Wt(me)?nt(o,V):me),K=!!Ce&&!n.isReady&&zie(Ce);if(Wt(W)||Ce&&Ce.defaultChecked||K||ae){const G=ae?W:sO(pe._f);(!Wt(G)||!A(V))&&(g("dirtyFields")&&!yr(nt(a,V),G)&&(s=!0),sn(a,V,G),K&&U(V,G))}else ie(V,W);i.mount&&!i.action&&(t.resolver&&g("isValidating","validatingFields")?Promise.resolve().then(()=>D()):D(),Re&&n.isDirty&&g("isDirty")&&(Q()||(n.isDirty=!1,b.state.next({...n}))),t.shouldUnregister&&Re&&!Wt(nt(a,V))&&qp(V,c)&&(i.watch=!0))}},U=(V,ae,me,Ce,pe)=>{let Re=!1,W=!1;const K={name:V};if(!t.disabled||Ce===!0){if(!me||Ce){const G=yr(nt(o,V),ae);if(g("isDirty")&&(W=n.isDirty,n.isDirty=K.isDirty=!G||Q(),Re=W!==K.isDirty),W=!!nt(n.dirtyFields,V),G)Hn(n.dirtyFields,V);else{const ye=nt(o,V),De=nt(r,V),Be=!(De&&De._f)&&(mn(ye)||Array.isArray(ye))?Ra(ye,ae,void 0,De):!0;sn(n.dirtyFields,V,Be)}let ce=!1;if(s||G&&(g("isDirty")?n.isDirty:Q())){s=!1;const ye=Ra(o,a,void 0,r);yr(n.dirtyFields,ye)||(ce=!0,qie(n.dirtyFields,ye))}K.dirtyFields=n.dirtyFields,Re=Re||g("dirtyFields")&&(ce||W!==!G)}if(me){const G=Yp(n.touchedFields,V)?nt(n.touchedFields,V):void 0;G||(sn(n.touchedFields,V,me),K.touchedFields=n.touchedFields,Re=Re||g("touchedFields")&&G!==me)}Re&&pe&&b.state.next(K)}return Re?K:{}},X=(V,ae,me,Ce)=>{const pe=nt(n.errors,V),Re=g("isValid")&&Xr(ae)&&n.isValid!==ae;if(t.delayError&&me?(u[V]=I(V,()=>T(V,me)),u[V](t.delayError)):(P(V),me?sn(n.errors,V,me):Hn(n.errors,V),n.errors={...n.errors}),(me?!yr(pe,me,!0):pe)||!Vn(Ce)||Re){const W={...Ce,...Re&&Xr(ae)?{isValid:ae}:{},errors:n.errors,name:V};b.state.next(W)}},ee=async V=>(N(V,!0),await t.resolver(a,t.context,Bie(V||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),J=async V=>{const ae=$,me=x,Ce=V?V.filter(Re=>nt(r,Re)):[],{errors:pe}=await ee(V);if(ae!==$)return pe;if(N(V),V){for(const Re of V){if(Ce.includes(Re)&&(!nt(r,Re)||E[Re]>me)){Hn(pe,Re);continue}const W=nt(pe,Re);_(Re);const K=c.array.has(Re)&&mn(W)&&!Object.keys(W).some(ye=>!Number.isNaN(Number(ye))),G=nt(r,Re),ce=mn(G)&&Object.keys(G).some(ye=>ye!=="_f");K?ZE(n.errors,{[Re]:W},Re):W&&(W.type||W.message)||Array.isArray(W)||mn(W)&&ce?sn(n.errors,Re,W):Hn(n.errors,Re)}n.errors={...n.errors}}else Object.keys(u).forEach(P),n.errors=pe;return pe},oe=async({name:V,eventType:ae,onlyCheckValid:me})=>{if(t.validate){const Ce=$,pe=++w,Re=await t.validate({formValues:a,formState:n,name:V,eventType:ae});if(Ce!==$||ae!==Ma.SUBMIT&&pe!==w)return!0;if(me&&(mn(Re)?Object.values(Re).some(Boolean):fr(Re)||!Re))return!1;if(mn(Re)){let W=!0;Le(os);for(const K in Re){const G=Re[K];G&&(W=!1,Ye(`${os}.${K}`,{message:fr(G.message)?G.message:"",type:G.type||ur.validate}))}return W}else return fr(Re)||!Re?(Le(os),Ye(os,{message:Re||"",type:ur.validate}),!1):(Le(os),!0)}return!0},ue=async({fields:V,onlyCheckValid:ae,name:me,eventType:Ce,context:pe={valid:!0,runRootValidation:!1}})=>{const Re=$;if(t.validate&&!pe.runRootValidation&&(pe.runRootValidation=!0,!await oe({name:me,eventType:Ce,onlyCheckValid:ae})&&(pe.valid=!1,ae)))return pe.valid;for(const W in V){const K=V[W];if(K){const{_f:G,...ce}=K;if(G){const ye=c.array.has(G.name),De=K._f&&Hie(K._f),Be=g("isValidating","validatingFields");De&&Be&&N([G.name],!0);const Ve=x,ke=await oO(K,c.disabled,a,O,t.shouldUseNativeValidation&&!ae,ye);if(Re!==$)return pe.valid;if(De&&Be&&N([G.name]),!nt(r,G.name)||E[G.name]>Ve)continue;if(ke[G.name]&&(pe.valid=!1,ae)||(ae||(P(G.name),nt(ke,G.name)?ye?ZE(n.errors,ke,G.name):sn(n.errors,G.name,ke[G.name]):Hn(n.errors,G.name)),t.shouldUseNativeValidation&&ke[G.name]))break}!Vn(ce)&&await ue({context:pe,onlyCheckValid:ae,fields:ce,name:W,eventType:Ce})}}return pe.valid},se=()=>{for(const V of c.unMount){const ae=nt(r,V);ae&&(ae._f.refs?ae._f.refs.every(me=>!Xp(me)):!Xp(ae._f.ref))&&Me(V)}c.unMount=new Set},Q=(V,ae)=>(V&&!Wt(ae)&&sn(a,V,ae),!yr(i.mount?a:o,o)),fe=(V,ae,me)=>{const Ce=i.mount?a:Wt(ae)||!Wt(V)?o:ae;return Pb(V,c,Wt(V)?{...Ce}:Ce,me,ae)},de=V=>E_(nt(i.mount?a:o,V,t.shouldUnregister?nt(o,V,[]):[])),ie=(V,ae,me={},Ce=!1,pe=!1,Re=!1)=>{const W=nt(r,V);let K=ae;if(W){const G=W._f;G&&(!G.disabled&&sn(a,V,_b(ae,G)),K=yv(G.ref)&&jn(ae)?"":ae,fS(G.ref)?[...G.ref.options].forEach(ce=>ce.selected=K.includes(ce.value)):G.refs?Ic(G.ref)?G.refs.forEach(ce=>{(!ce.defaultChecked||!ce.disabled)&&(Array.isArray(K)?ce.checked=!Wt(ce.value)&&K.includes(ce.value):ce.checked=K===ce.value||!!K)}):G.refs.forEach(ce=>ce.checked=ce.value===K):og(G.ref)?G.ref.value="":(G.ref.value=K,!G.ref.type&&!pe&&!Re&&b.state.next({name:V,values:Ce?a:C(V)?rn(a):void 0})))}(me.shouldDirty||me.shouldTouch)&&U(V,W&&W._f&&!W._f.disabled&&(W._f.valueAsNumber||W._f.valueAsDate||W._f.setValueAs)?_b(ae,W._f):K,me.shouldTouch,me.shouldDirty,!pe),me.shouldValidate&&$e(V,{delayError:me.delayError}),me.shouldValidate&&W&&W._f&&W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&$e(W._f.deps)},re=(V,ae,me,Ce=!1,pe=!1,Re=!1)=>{for(const W in ae){if(!Object.prototype.hasOwnProperty.call(ae,W))continue;const K=ae[W],G=V+"."+W,ce=nt(r,G);c.array.has(G)&&b.array.next({name:G,values:Ce?a:rn(a)}),(c.array.has(V)||mn(K)||ce&&!ce._f)&&!ol(K)?re(G,K,me,Ce,pe,Re):ie(G,K,me,Ce,pe,Re)}},he=(V,ae,me,Ce,pe=!1)=>{const Re=nt(r,V),W=c.array.has(V),K=Ce?ae:rn(ae),G=nt(a,V),ce=yr(G,K);if(ce||sn(a,V,K),W)b.array.next({name:V,values:Ce?a:rn(a)}),g("isDirty","dirtyFields")&&me.shouldDirty&&(M(),n.isDirty=Q(V,K),pe||b.state.next({name:V,dirtyFields:n.dirtyFields,isDirty:n.isDirty})),me.shouldValidate&&$e(V,{delayError:me.delayError});else{const ye=Array.isArray(K)&&!K.length||Vn(K),De=!ce&&!pe;!Re||Re._f||jn(K)||ye?ie(V,K,me,Ce,pe,De):re(V,K,me,Ce,pe,De)}if(!ce&&!pe){const ye=qp(V,c),De=i.mount||ye?V:void 0,Be=W?[]:Aie(c.array,V),Ve=Ce?a:C(De)||Be.some(C)?rn(a):void 0;b.state.next({...ye&&n,name:De,values:Ve});for(const ke of Be)b.state.next({name:ke,values:Ve&&rn(a)})}},ge=(V,ae,me={})=>he(V,ae,me,!1),Ne=(V,ae={})=>{const me=br(V)?V(a):V;if(!yr(a,me)||ae.shouldValidate||ae.shouldDirty||ae.shouldTouch){a={...a,...me};for(const Ce of new Set([...c.mount,...c.array]))Yp(me,Ce)&&he(Ce,nt(me,Ce),ae,!0,!0);if(ae.shouldDirty&&g("isDirty","dirtyFields"))for(const Ce of Object.keys(me))U(Ce,a[Ce],!1,!0);b.state.next({...n,name:void 0,type:void 0,...f.size?{values:a}:{}}),ae.shouldValidate&&D()}},Pe=async V=>{i.mount=!0;const ae=V.target;let me=ae.name,Ce=!0;const pe=nt(r,me),Re=x,W=K=>{Ce=!!nt(r,me)&&!(E[me]>Re)&&yr(K,nt(a,me,K))};if(pe){i.keepIsValid=!1;let K,G,ce=!1;const ye=ae.type?sO(pe._f):Ob(V),De=V.type===Ma.BLUR||V.type===Ma.FOCUS_OUT,Be=!Vie(pe._f)&&!t.validate&&!t.resolver&&!nt(n.errors,me)&&!pe._f.deps,Ve=Be||Kie(De,nt(n.touchedFields,me),n.isSubmitted,v,m),ke=qp(me,c,De);sn(a,me,rn(ye)),De?(!ae||!ae.readOnly)&&(pe._f.onBlur&&pe._f.onBlur(V),Object.prototype.hasOwnProperty.call(u,me)&&(ce=!0,u[me](0))):pe._f.onChange&&pe._f.onChange(V);const _e=U(me,ye,De),We=!Vn(_e)||ke;if(!De&&b.state.next({name:me,type:V.type,...C(me)?{values:rn(a)}:{}}),Ve)return(!Be||!n.isValid)&&g("isValid")&&(t.mode==="onBlur"?De&&D():De||D()),We&&b.state.next({name:me,...ke?{}:_e});if(!t.resolver&&t.validate&&await oe({name:me,eventType:V.type}),!De&&ke&&b.state.next({...n}),t.resolver){const Ze=$,{errors:st}=await ee([me]);if(Ze!==$)return;if(N([me]),W(ye),!Ce){!Vn(_e)&&b.state.next(_e);return}const $t=uO(n.errors,r,me),Ot=uO(st,r,$t.name||me);K=Ot.error,me=Ot.name,G=Vn(st)}else{const Ze=$,st=++S;if(N([me],!0),K=(await oO(pe,c.disabled,a,O,t.shouldUseNativeValidation))[me],Ze!==$)return;if(N([me]),W(ye),Ce){if(K)G=!1;else if(g("isValid")){if(G=await ue({fields:r,onlyCheckValid:!0,name:me,eventType:V.type}),Ze!==$)return;W(ye),st!==S&&(G=void 0)}}}Ce&&(pe._f.deps&&(!Array.isArray(pe._f.deps)||pe._f.deps.length>0)&&$e(pe._f.deps),X(me,G,K,_e),ce&&Object.prototype.hasOwnProperty.call(u,me)&&u[me](0))}},ve=(V,ae)=>{if(nt(n.errors,ae)&&V.focus)return V.focus(),1},$e=async(V,ae={})=>{i.keepIsValid=!1;let me,Ce;const pe=Gp(V),Re=$;if(t.resolver){const W=await J(Wt(V)?V:pe);me=Vn(W),Ce=V?!pe.some(K=>nt(W,K)):me}else V?(Ce=(await Promise.all(pe.map(async W=>{const K=nt(r,W);return await ue({fields:K&&K._f?{[W]:K}:K,eventType:Ma.TRIGGER})}))).every(Boolean),!(!Ce&&!n.isValid)&&D()):Ce=me=await ue({fields:r,name:V,eventType:Ma.TRIGGER});if(Re!==$)return Ce;if(ae.delayError&&t.delayError&&fr(V)){const W=nt(n.errors,V);W?(Hn(n.errors,V),u[V]=I(V,()=>T(V,W)),u[V](t.delayError)):P(V)}if(ae.shouldTouch){const W=K=>{!c.array.has(K)&&sn(n.touchedFields,K,!0)};for(const K of V?pe:c.mount){const G=nt(r,K);mn(G)||Array.isArray(G)?xs(r,(ce,ye)=>W(ye),[K]):W(K)}}return n.errors={...n.errors},b.state.next({...!fr(V)||g("isValid")&&me!==n.isValid?{}:{name:V},...t.resolver||!V?{isValid:me}:{},...ae.shouldTouch&&g("touchedFields")?{touchedFields:n.touchedFields}:{},errors:n.errors}),ae.shouldFocus&&!Ce&&xs(r,ve,V?pe:c.mount),Ce},Ee=(V,ae)=>{let me=Wt(V)&&!ae?{...i.mount?a:o}:i.mount?a:o;return ae&&(me=O_(ae.dirtyFields?n.dirtyFields:n.touchedFields,me)),Wt(V)?me:fr(V)?nt(me,V):V.map(Ce=>nt(me,Ce))},we=V=>Wt(V)?{...n.errors}:fr(V)?nt(n.errors,V):V.map(ae=>nt(n.errors,ae)),Ae=(V,ae)=>{const me=ae||n,Ce=nt(me.errors,V);return{invalid:!!Ce,isDirty:!!nt(me.dirtyFields,V),error:Ce,isValidating:!!nt(me.validatingFields,V),isTouched:!!nt(me.touchedFields,V)}},Le=V=>{const ae=V?Gp(V):void 0;ae?ae.forEach(me=>{_(me),Hn(n.errors,me),n.errors={...n.errors},b.state.next({name:me,errors:n.errors})}):(Object.keys(u).forEach(P),n.errors={},b.state.next({errors:n.errors}))},Ye=(V,ae,me)=>{var Ce;_(V);const pe=nt(r,V,{_f:{}}),Re=pe._f&&pe._f.ref,W=nt(n.errors,V)||{},{ref:K,message:G,type:ce,types:ye,...De}=W;if(sn(n.errors,V,{...De,...ae,ref:Re}),n.errors={...n.errors},b.state.next({name:V,errors:n.errors,isValid:!1}),me&&me.shouldFocus){const Be=!((Ce=pe._f)===null||Ce===void 0)&&Ce.refs?pe._f.refs.find(Ve=>!Ve.disabled)||pe._f.refs[0]:Re;Be&&Be.focus&&Be.focus()}},Ke=(V,ae)=>{if(br(V)){const me={};f.add(me);const{unsubscribe:Ce}=b.state.subscribe({next:pe=>"values"in pe&&V(pe.values||fe(void 0,ae),pe)});return{unsubscribe:()=>{f.delete(me),Ce()}}}return fe(V,ae,!0)},He=V=>{const ae={name:V.name,exact:V.exact};V.formState&&V.formState.values&&f.add(ae);const{unsubscribe:me}=b.state.subscribe({next:Ce=>{if(fO(V.name,Ce.name,V.exact)&&Wie(Ce,V.formState||y,V.reRenderRoot)){const pe=Ce.values||{...a};V.callback({...n,...Ce,validatingFields:n.validatingFields,isValidating:n.isValidating,values:pe,defaultValues:o})}}});return()=>{f.delete(ae),me()}},Ue=V=>{i.mount=!0;const ae=Object.keys(V.formState||{}).filter(Ce=>V.formState&&V.formState[Ce]);for(const Ce of ae)p[Ce]=(p[Ce]||0)+1;const me=He({...V,formState:{...h,...V.formState}});return()=>{for(const Ce of ae.splice(0))p[Ce]--;me()}},Me=(V,ae={})=>{const me=V?Gp(V):[...c.mount],Ce=new Set(me);if(V)for(const pe of c.mount)me.some(Re=>pe.startsWith(`${Re}.`))&&Ce.add(pe);ae.keepIsValidating||R(Ce);for(const pe of Ce)c.mount.delete(pe),c.array.delete(pe),c.disabled.delete(pe),Hn(r,pe),!ae.keepValue&&Hn(a,pe),ae.keepError||(_(pe),Hn(n.errors,pe)),!ae.keepDirty&&Hn(n.dirtyFields,pe),!ae.keepTouched&&Hn(n.touchedFields,pe),!t.shouldUnregister&&!ae.keepDefaultValue&&Hn(o,pe);ae.keepError||(n.errors={...n.errors}),f.size&&b.state.next({values:rn(a)}),b.state.next({...n,...ae.keepDirty?{}:{isDirty:Q()},...ae.keepIsValidating?{}:{isValidating:!Vn(n.validatingFields)}}),!ae.keepIsValid&&D()},Se=({disabled:V,name:ae})=>{if(Xr(V)&&i.mount||V||c.disabled.has(ae)){const pe=c.disabled.has(ae)!==!!V;V?c.disabled.add(ae):c.disabled.delete(ae),pe&&i.mount&&!i.action&&D()}},Fe=(V,ae={})=>{let me=nt(r,V);const Ce=Xr(ae.disabled)||Xr(t.disabled),pe=!c.registerName.has(V)&&me&&me._f&&!me._f.mount;if((!me||!me._f)&&(E[V]=++x),sn(r,V,{...me||{},_f:{...me&&me._f?me._f:{ref:{name:V}},name:V,mount:!0,...ae}}),c.mount.add(V),me&&me._f){const Re=nt(r,V);for(const W of Rie)W in ae||delete Re._f[W]}return me&&!pe?Se({disabled:Xr(ae.disabled)?ae.disabled:t.disabled,name:V}):H(V,!0,ae.value),{...Ce?{disabled:ae.disabled||t.disabled}:{},...t.progressive?{required:!!rs(ae.required),min:rs(ae.min),max:rs(ae.max),minLength:rs(ae.minLength),maxLength:rs(ae.maxLength),pattern:rs(ae.pattern)}:{},name:V,onChange:Pe,onBlur:Pe,ref:Re=>{if(Re){c.registerName.add(V),Fe(V,ae),c.registerName.delete(V),me=nt(r,V);const W=Wt(Re.value)&&Re.querySelectorAll&&Re.querySelectorAll("input,select,textarea")[0]||Re,K=Lie(W),G=me._f.refs||[];if(K?G.find(ye=>ye===W):W===me._f.ref)return;const ce={...me._f};K?(ce.refs=[...G.filter(Xp),W,...Array.isArray(nt(o,V))?[{}]:[]],ce.ref={type:W.type,name:V}):(ce.ref=W,delete ce.refs),sn(r,V,{_f:ce}),H(V,!1,void 0,W)}else me=nt(r,V,{}),me._f&&(me._f.mount=!1),(t.shouldUnregister||ae.shouldUnregister)&&!(b_(c.array,V)&&i.action)&&c.unMount.add(V)}}},xe=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&xs(r,ve,c.mount),Te=V=>{Xr(V)&&(b.state.next({disabled:V}),xs(r,(ae,me)=>{const Ce=nt(r,me);Ce&&(ae.disabled=Ce._f.disabled||V,Array.isArray(Ce._f.refs)&&Ce._f.refs.forEach(pe=>{pe.disabled=Ce._f.disabled||V}))},0))},Oe=(V,ae)=>async me=>{let Ce,pe,Re=!1;me&&(me.preventDefault&&me.preventDefault(),me.persist&&me.persist());let W=rn(a);b.state.next({isSubmitting:!0});const K=$,G=ce=>{throw K===$&&b.state.next({isSubmitting:!1}),ce};if(t.resolver){let ce;try{ce=await ee()}catch(Be){G(Be)}const{errors:ye,values:De}=ce;if(K!==$)return;N(),Object.keys(u).forEach(P),n.errors=ye,W=rn(De)}else{try{await ue({fields:r,eventType:Ma.SUBMIT})}catch(ce){G(ce)}if(K!==$)return;Hn(n.errors,Ib),n.errors={...n.errors}}if(c.disabled.size&&(mn(W)||Array.isArray(W)))for(const ce of c.disabled)Hn(W,ce);if(Vn(n.errors)){b.state.next({errors:{}});try{Ce=await V(W,me)}catch(ce){Re=!0,pe=ce}}else{if(ae)try{await ae({...n.errors},me)}catch(ce){G(ce)}K===$&&(xe(),setTimeout(xe))}if(K===$&&b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Vn(n.errors)&&!Re,submitCount:n.submitCount+1,errors:n.errors}),Re)throw pe;return Ce},Ie=(V,ae={})=>{nt(r,V)&&(R([V]),Wt(ae.defaultValue)?ge(V,rn(nt(o,V))):(ge(V,ae.defaultValue),o=rn(o),sn(o,V,rn(ae.defaultValue))),ae.keepTouched||Hn(n.touchedFields,V),ae.keepDirty||(Hn(n.dirtyFields,V),n.isDirty=Wt(ae.defaultValue)?Q():Q(V,rn(nt(o,V)))),ae.keepError||(_(V),Hn(n.errors,V),n.errors={...n.errors},D()),b.state.next({...n,isValidating:!Vn(n.validatingFields)}))},je=(V,ae={})=>{$++;const me=V?rn(V):o,Ce=rn(me),pe=Vn(V),Re=Ce,W=r;if(Object.keys(u).forEach(P),ae.keepDefaultValues||(o=me),!ae.keepValues){if(ae.keepDirtyValues){const K=new Set([...c.mount,...I_(Ra(o,a,void 0,W),n.dirtyFields)]);for(const G of K){const ce=nt(n.dirtyFields,G),ye=nt(a,G),De=nt(Re,G);ce&&!Wt(ye)?sn(Re,G,ye):!ce&&!Wt(De)&&ge(G,De)}}else{if(lS&&Wt(V))for(const K of c.mount){const G=nt(r,K);if(G&&G._f){const ce=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(yv(ce)){const ye=ce.closest("form");if(ye){ye.reset();break}}}}if(ae.keepFieldsRef)for(const K of c.mount)ge(K,nt(Re,K));else r={}}if(t.shouldUnregister){if(a=ae.keepDefaultValues?rn(o):{},ae.keepFieldsRef)for(const K of c.mount)sn(a,K,nt(Re,K))}else a=rn(Re);b.array.next({values:{...Re}}),b.state.next({name:void 0,type:void 0,values:{...Re}})}c={mount:ae.keepDirtyValues||ae.keepFieldsRef?c.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:ae.keepValues||ae.keepDirtyValues||ae.keepFieldsRef?new Set([...c.disabled].filter(K=>nt(r,K))):new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!y.isValid||!!ae.keepIsValid||!!ae.keepDirtyValues||!t.shouldUnregister&&!Vn(Re),i.watch=!!t.shouldUnregister,i.keepIsValid=!!ae.keepIsValid,i.action=!1,i.actionArrayLengths.clear(),s=!1,ae.keepErrors||(n.errors={}),b.state.next({submitCount:ae.keepSubmitCount?n.submitCount:0,isDirty:pe?!1:ae.keepDirty?n.isDirty:ae.keepValues?Q():!!(ae.keepDefaultValues&&V&&!yr(V,o)),isSubmitted:ae.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:pe?{}:ae.keepDirtyValues?ae.keepDefaultValues&&a?Ra(o,a,void 0,W):n.dirtyFields:ae.keepDefaultValues&&V?Ra(o,V,void 0,W):ae.keepDirty?n.dirtyFields:ae.keepValues?Ra(o,a,void 0,W):{},touchedFields:ae.keepTouched?n.touchedFields:{},...!ae.keepIsValidating&&(n.isValidating||!Vn(n.validatingFields))?{validatingFields:{},isValidating:!1}:null,errors:ae.keepErrors?n.errors:{},isSubmitSuccessful:ae.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},qe=(V,ae)=>je(br(V)?V(a):V,{...t.resetOptions,...ae}),ut=(V,ae={})=>{const me=nt(r,V),Ce=me&&me._f;if(Ce){const pe=Ce.refs?Ce.refs.find(Re=>!Re.disabled)||Ce.refs[0]:Ce.ref;pe.focus&&setTimeout(()=>{pe.focus(),ae.shouldSelect&&br(pe.select)&&pe.select()})}},bt=V=>{const{name:ae,type:me,values:Ce,...pe}=V;Object.keys(pe).length&&(n={...n,...pe})};b.state.subscribe({next:bt});const rt={control:{register:Fe,unregister:Me,getFieldState:Ae,handleSubmit:Oe,setError:Ye,_subscribe:He,_runSchema:ee,_updateIsValidating:N,_focusError:xe,_getWatch:fe,_getDirty:Q,_setValid:D,_setFieldArray:k,_setDisabledField:Se,_setErrors:z,_getFieldArray:de,_reset:je,_resetDefaultValues:()=>br(t.defaultValues)&&t.defaultValues().then(V=>{qe(V,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:se,_disableForm:Te,_subjects:b,_proxyFormState:y,get _fields(){return r},get _formValues(){return a},get _state(){return i},set _state(V){i=V},get _defaultValues(){return o},get _names(){return c},set _names(V){c=V},get _formState(){return n},get _options(){return t},set _options(V){t={...t,...V},m=Af(t.mode),v=Af(t.reValidateMode),O=t.criteriaMode===Ro.all}},subscribe:Ue,trigger:$e,register:Fe,handleSubmit:Oe,watch:Ke,setValue:ge,setValues:Ne,getValues:Ee,getErrors:we,reset:qe,resetField:Ie,resetDefaultValues:(V,ae={})=>{if(o=rn(V),!ae.keepDirty){const me=Ra(o,a,void 0,r);n.dirtyFields=me,n.isDirty=!Vn(me)}ae.keepIsValid||D(),b.state.next({...n,defaultValues:o})},clearErrors:Le,unregister:Me,setError:Ye,setFocus:ut,getFieldState:Ae};return{...rt,formControl:rt}}const mO={mode:pm.mode,reValidateMode:pm.reValidateMode,shouldFocusError:pm.shouldFocusError,resolver:void 0,criteriaMode:void 0,delayError:void 0,shouldUnregister:void 0,shouldUseNativeValidation:void 0,context:void 0,progressive:void 0,resetOptions:void 0};function Yie(e={}){const t=le.useRef(void 0),n=le.useRef(void 0),r=le.useRef(e.formControl),o=le.useRef(!1),a=le.useRef(!!e.validate),i=le.useRef(!!e.errors),s=le.useRef(!1),[c,u]=le.useState(()=>({...rn(N_),isLoading:br(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:br(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,o.current=!1,e.formControl)t.current={...e.formControl,formState:c},e.defaultValues&&!br(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:p,...g}=Gie(e);t.current={...g,formState:c}}const d=t.current.control,f=d._options,m={};for(const p in mO)p in f&&!(p in e)&&(m[p]=mO[p]);o.current&&!e.disabled&&(m.disabled=!1),d._options={...m,...e,validate:e.validate};const v=()=>({...d._formState,defaultValues:d._defaultValues}),{resyncIfNeeded:h,snapshot:y}=dS(v,x_);return uS(()=>{h(!0,v,u);const p=d._subscribe({formState:d._proxyFormState,callback:()=>u({...d._formState,defaultValues:d._defaultValues}),reRenderRoot:!0});return u(g=>({...g,isReady:!0})),d._formState.isReady=!0,d._subjects.state.next({isReady:!0}),()=>{p(),y(!0,v)}},[d,h,y]),le.useEffect(()=>{d._disableForm(o.current&&!e.disabled?!1:e.disabled),o.current=!!e.disabled},[d,e.disabled]),le.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),le.useEffect(()=>{e.errors?(d._setErrors(e.errors),d._focusError()):i.current&&d._setErrors({}),i.current=!!e.errors},[d,e.errors]),le.useEffect(()=>{a.current&&!e.validate&&t.current&&t.current.clearErrors(os),a.current=!!e.validate},[e.validate]),le.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),le.useEffect(()=>{if(d._proxyFormState.isDirty){const p=d._getDirty();p!==c.isDirty&&d._subjects.state.next({isDirty:p})}},[d,c.isDirty]),le.useEffect(()=>{e.values&&!yr(e.values,n.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),d._options.resetOptions&&d._options.resetOptions.keepIsValid||d._setValid(),n.current=e.values,u(p=>({...p}))):d._resetDefaultValues()},[d,e.values]),le.useEffect(()=>{(!d._state.mount||!s.current&&!e.values)&&(d._setValid(),d._state.mount=!0),s.current=!0,d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=le.useMemo(()=>S_(c,d),[d,c]),t.current}const Xie=le.createContext(null);Xie.displayName="HookFormContext";const{TextArea:Qie}=Ka;function Qp({name:e,label:t,required:n=!1,readOnly:r=!1,placeholder:o,helpText:a,multiline:i=!1,control:s}){const{field:c,fieldState:{error:u}}=Al({name:e,control:s});return ne.jsx(Or.Item,{label:t,required:n,validateStatus:u?"error":void 0,help:(u==null?void 0:u.message)||a,children:i?ne.jsx(Qie,{...c,value:c.value??"",placeholder:o,disabled:r,rows:4}):ne.jsx(Ka,{...c,value:c.value??"",placeholder:o,disabled:r})})}function Jie({name:e,label:t,required:n=!1,readOnly:r=!1,min:o,max:a,step:i=1,helpText:s,control:c}){const{field:u,fieldState:{error:d}}=Al({name:e,control:c});return ne.jsx(Or.Item,{label:t,required:n,validateStatus:d?"error":void 0,help:(d==null?void 0:d.message)||s,children:ne.jsx(b6,{...u,value:u.value??void 0,onChange:f=>u.onChange(f),min:o,max:a,step:i,disabled:r,style:{width:"100%"}})})}function Zie({name:e,label:t,required:n=!1,readOnly:r=!1,options:o,helpText:a,control:i}){const{field:s,fieldState:{error:c}}=Al({name:e,control:i});return ne.jsx(Or.Item,{label:t,required:n,validateStatus:c?"error":void 0,help:(c==null?void 0:c.message)||a,children:ne.jsx(Tl,{...s,value:s.value??void 0,onChange:u=>s.onChange(u),options:o,disabled:r,allowClear:!n,placeholder:"選択してください"})})}function ele({name:e,label:t,readOnly:n=!1,helpText:r,useSwitch:o=!1,control:a}){const{field:i,fieldState:{error:s}}=Al({name:e,control:a});return ne.jsx(Or.Item,{label:t,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||r,children:o?ne.jsx(U6,{checked:!!i.value,onChange:c=>i.onChange(c),disabled:n}):ne.jsx(Cl,{checked:!!i.value,onChange:c=>i.onChange(c.target.checked),disabled:n,children:t})})}function tle({name:e,label:t,required:n=!1,readOnly:r=!1,helpText:o,control:a}){const{field:i,fieldState:{error:s}}=Al({name:e,control:a}),c=i.value?Tr(i.value):null;return ne.jsx(Or.Item,{label:t,required:n,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||o,children:ne.jsx(Fl,{value:c,onChange:u=>{i.onChange(u?u.format("YYYY-MM-DD"):"")},disabled:r,format:"YYYY-MM-DD",style:{width:"100%"}})})}function nle({name:e,label:t,required:n=!1,readOnly:r=!1,helpText:o,control:a}){const{field:i,fieldState:{error:s}}=Al({name:e,control:a}),c=i.value?Tr(i.value):null;return ne.jsx(Or.Item,{label:t,required:n,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||o,children:ne.jsx(Fl,{showTime:!0,value:c,onChange:u=>{i.onChange(u?u.format("YYYY-MM-DDTHH:mm:ss"):"")},disabled:r,format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}})})}const{TextArea:rle}=Ka;function ole({name:e,label:t,required:n=!1,readOnly:r=!1,helpText:o,control:a}){const{field:i,fieldState:{error:s}}=Al({name:e,control:a});return ne.jsx(Or.Item,{label:t,required:n,validateStatus:s?"error":void 0,help:(s==null?void 0:s.message)||o||"Markdown形式で入力できます",children:ne.jsx(rle,{...i,value:i.value??"",placeholder:"# 見出し\\n\\n本文...",disabled:r,rows:8,style:{fontFamily:"monospace"}})})}const ale=({schema:e,row:t,isNew:n,errors:r,onChange:o,readOnly:a=!1})=>{var y,p;const i=l.useRef(t._rowIndex),s=l.useRef(!1),c=l.useCallback(()=>{const g={};return e.columns.forEach(C=>{g[C.key]=t[C.key]??C.default??""}),g},[e.columns,t]),{control:u,watch:d,reset:f}=Yie({defaultValues:c(),mode:"onChange"});l.useEffect(()=>{i.current!==t._rowIndex&&(i.current=t._rowIndex,s.current=!1,f(c()))},[t._rowIndex,f,c]),l.useEffect(()=>{const g=setTimeout(()=>{s.current=!0},100);return()=>clearTimeout(g)},[t._rowIndex]),l.useEffect(()=>{const g=d(C=>{s.current&&i.current===t._rowIndex&&o(C)});return()=>g.unsubscribe()},[d,o,t._rowIndex]);const m=g=>{const C=r.find(b=>b.columnKey===g);return C==null?void 0:C.message},v=g=>{var $,x,E,O,I,P;const C=e.columns.find(_=>_.key===g);if(!C)return null;const b=a||!n&&(($=C.ui)==null?void 0:$.readonlyOnEdit),S={name:C.key,label:C.label,required:C.required,readOnly:b,helpText:((x=C.ui)==null?void 0:x.helpText)||m(C.key),control:u},w=(E=C.ui)==null?void 0:E.widget;if(w==="markdown")return ne.jsx(ole,{...S},C.key);if(w==="textarea")return ne.jsx(Qp,{...S,multiline:!0,placeholder:(O=C.ui)==null?void 0:O.placeholder},C.key);switch(C.type){case"string":return ne.jsx(Qp,{...S,placeholder:(I=C.ui)==null?void 0:I.placeholder},C.key);case"integer":case"number":return ne.jsx(Jie,{...S,min:C.min,max:C.max},C.key);case"boolean":return ne.jsx(ele,{...S,useSwitch:w==="switch"},C.key);case"enum":return ne.jsx(Zie,{...S,options:C.enum||[]},C.key);case"date":return ne.jsx(tle,{...S},C.key);case"datetime":return ne.jsx(nle,{...S},C.key);default:return ne.jsx(Qp,{...S,placeholder:(P=C.ui)==null?void 0:P.placeholder},C.key)}},h=(p=(y=e.ui)==null?void 0:y.form)==null?void 0:p.layout;return(h==null?void 0:h.type)==="sections"&&h.sections?ne.jsx(Or,{layout:"vertical",children:h.sections.map((g,C)=>ne.jsx(Xs,{size:"small",title:g.title||void 0,style:{marginBottom:16},styles:g.title?void 0:{body:{paddingTop:16}},children:ne.jsx("div",{className:`form-grid columns-${g.columns||h.columns||1}`,children:g.fields.map(b=>v(b))})},C))}):ne.jsx(Or,{layout:"vertical",children:ne.jsx("div",{className:`form-grid columns-${(h==null?void 0:h.columns)||1}`,children:e.columns.map(g=>v(g.key))})})},{Text:Jp}=wc,ile=({schema:e})=>{var a,i,s;const t=(a=e.csv)==null?void 0:a.primaryKey,n=e.columns.map((c,u)=>({tableKey:u,...c,isPrimaryKey:c.key===t})),r=[{title:"カラム名",dataIndex:"key",key:"key",render:(c,u)=>ne.jsxs("span",{children:[u.isPrimaryKey&&ne.jsx(kE,{style:{color:"#faad14",marginRight:4}}),ne.jsx(Jp,{code:!0,children:c})]})},{title:"型",dataIndex:"type",key:"type",render:c=>ne.jsx(Ln,{children:c})},{title:"必須",dataIndex:"required",key:"required",render:c=>c?ne.jsx(Ure,{style:{color:"#52c41a"}}):ne.jsx("span",{style:{color:"#d9d9d9"},children:"-"})},{title:"制約",key:"constraints",render:(c,u)=>{const d=[];return u.unique&&d.push("ユニーク"),u.min!==void 0&&d.push(`min: ${u.min}`),u.max!==void 0&&d.push(`max: ${u.max}`),u.pattern&&d.push(`pattern: ${u.pattern}`),d.length>0?ne.jsx("span",{style:{fontSize:12},children:d.join(", ")}):ne.jsx("span",{style:{color:"#d9d9d9"},children:"-"})}}],o=(i=e.csv)==null?void 0:i.normalize;return ne.jsxs("div",{className:"schema-viewer",children:[ne.jsxs("div",{className:"schema-viewer-section",children:[ne.jsx("h4",{children:"基本情報"}),ne.jsxs(Oa,{column:1,size:"small",bordered:!0,children:[ne.jsx(Oa.Item,{label:"ID",children:e.id}),ne.jsx(Oa.Item,{label:"タイトル",children:e.title}),t&&ne.jsx(Oa.Item,{label:"Primary Key",children:ne.jsx(Ln,{icon:ne.jsx(kE,{}),color:"gold",children:t})})]})]}),ne.jsxs("div",{className:"schema-viewer-section",children:[ne.jsxs("h4",{children:[ne.jsx($oe,{})," カラム定義(",e.columns.length,")"]}),ne.jsx(Ua,{dataSource:n,columns:r,rowKey:"tableKey",pagination:!1,size:"small",bordered:!0})]}),((s=e.validation)==null?void 0:s.rowRules)&&e.validation.rowRules.length>0&&ne.jsxs("div",{className:"schema-viewer-section",children:[ne.jsxs("h4",{children:[ne.jsx(JN,{})," バリデーションルール"]}),ne.jsx("ul",{style:{paddingLeft:20,margin:0},children:e.validation.rowRules.map((c,u)=>ne.jsxs("li",{style:{marginBottom:8},children:[ne.jsx(Jp,{children:c.message}),ne.jsx("br",{}),ne.jsx(Jp,{code:!0,style:{fontSize:11},children:c.expr})]},u))})]}),o&&ne.jsxs("div",{className:"schema-viewer-section",children:[ne.jsx("h4",{children:"正規化設定"}),ne.jsxs(Oa,{column:1,size:"small",children:[o.sortKeys&&o.sortKeys.length>0&&ne.jsx(Oa.Item,{label:"ソート",children:o.sortKeys.map((c,u)=>ne.jsxs(Ln,{children:[c.column," (",c.order,")"]},u))}),o.quotePolicy&&ne.jsx(Oa.Item,{label:"クォート",children:o.quotePolicy}),o.newline&&ne.jsx(Oa.Item,{label:"改行コード",children:o.newline.toUpperCase()})]})]})]})},lle=({schema:e,row:t,rowIndex:n,errors:r,onChange:o,onDuplicate:a,onDelete:i,readOnly:s=!1})=>{var m;const c=r.filter(v=>v.rowIndex===n),u=(m=e.csv)==null?void 0:m.primaryKey,d=u?e.columns.find(v=>v.key===u):null,f=t&&d?t[d.key]:null;return!t||n===null?ne.jsxs("div",{className:"detail-panel",children:[ne.jsx("div",{className:"detail-panel-header",children:ne.jsxs("h3",{children:[ne.jsx(doe,{style:{marginRight:8}}),"スキーマ情報"]})}),ne.jsx("div",{className:"detail-panel-content",children:ne.jsx(ile,{schema:e})})]}):ne.jsxs("div",{className:"detail-panel",children:[ne.jsxs("div",{className:"detail-panel-header",children:[ne.jsxs("div",{children:[ne.jsxs("h3",{style:{marginBottom:4},children:["編集: ",f?String(f):`行 ${n+1}`]}),ne.jsxs(Ri,{size:"small",children:[t._isNew&&ne.jsx(Ln,{color:"green",children:"新規"}),t._isDirty&&!t._isNew&&ne.jsx(Ln,{color:"orange",children:"変更あり"}),c.length>0&&ne.jsxs(Ln,{color:"red",children:[c.length,"件のエラー"]})]})]}),ne.jsxs(Ri,{children:[ne.jsx(xr,{title:"複製",children:ne.jsx(Fn,{icon:ne.jsx(Wh,{}),onClick:a,disabled:s})}),ne.jsx(W6,{title:"この行を削除しますか?",description:"この操作は取り消せません",onConfirm:i,okText:"削除",cancelText:"キャンセル",okButtonProps:{danger:!0},children:ne.jsx(xr,{title:"削除",children:ne.jsx(Fn,{icon:ne.jsx(YC,{}),danger:!0,disabled:s})})})]})]}),ne.jsx("div",{className:"detail-panel-content",children:ne.jsx(ale,{schema:e,row:t,isNew:t._isNew??!1,errors:c,onChange:o,readOnly:s})})]})},sle=()=>{const{id:e}=UN(),{isReadOnly:t}=aS(),{meta:n,rows:r,selectedRowIndex:o,validationErrors:a,isDirty:i,viewMode:s,searchQuery:c,sortColumn:u,sortOrder:d,detailPanelVisible:f,detailPanelWidth:m,loadDataset:v,updateRow:h,insertRow:y,duplicateRow:p,deleteRow:g,moveRow:C,selectRow:b,setViewMode:S,setSearchQuery:w,setSortColumn:$,resetSort:x,resetChanges:E,reload:O,setDetailPanelWidth:I}=g_();l.useEffect(()=>{e&&v(e).catch(M=>{Ts.error(`データセットの読み込みに失敗しました: ${M.message}`)})},[e,v]);const P=o!==null?r[o]:null,_=M=>{o!==null&&h(o,M)},D=()=>{o!==null&&(p(o),Ts.success("行を複製しました"))},R=()=>{o!==null&&(g(o),Ts.success("行を削除しました"))},N=l.useCallback(M=>{I(m+M)},[m,I]);return n?e?ne.jsxs("div",{style:{height:"100%",display:"flex",overflow:"hidden"},children:[ne.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column",minWidth:0},children:ne.jsx(Eie,{schema:n.schema,rows:r,viewMode:s,selectedRowIndex:o,errors:a,searchQuery:c,sortColumn:u,sortOrder:d,isDirty:i,readOnly:t,onRowSelect:b,onInsert:y,onDuplicate:p,onDelete:g,onMoveRow:C,onSort:$,onResetSort:x,onQuickSearch:w,onViewModeChange:S,onResetChanges:E,onReload:O})}),f&&ne.jsxs(ne.Fragment,{children:[ne.jsx(qae,{onResize:N}),ne.jsx("div",{style:{width:m,flexShrink:0,overflow:"hidden",background:"#fff"},children:ne.jsx(lle,{schema:n.schema,row:P,rowIndex:o,errors:a,onChange:_,onDuplicate:D,onDelete:R,readOnly:t})})]})]}):ne.jsx(Ah,{status:"404",title:"Dataset not found",subTitle:"指定されたデータセットは存在しません"}):ne.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:ne.jsx(zd,{size:"large",tip:"データセットを読み込み中..."})})},cle=xre([{path:"/",element:ne.jsx(Uae,{}),children:[{index:!0,element:ne.jsx(Gae,{})},{path:"datasets/:id",element:ne.jsx(sle,{})}]}]),ule=()=>ne.jsx(Nre,{router:cle}),dle=()=>ne.jsx(jo,{theme:ene,locale:Zte,children:ne.jsx(ule,{})});Zp.createRoot(document.getElementById("root")).render(ne.jsx(le.StrictMode,{children:ne.jsx(dle,{})}));